diff --git a/assets/index-DS7c_w5r.js b/assets/index-DS7c_w5r.js deleted file mode 100644 index 6fc2956..0000000 --- a/assets/index-DS7c_w5r.js +++ /dev/null @@ -1,356 +0,0 @@ -function fk(e,t){for(var r=0;rn[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"]'))n(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"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wy={exports:{}},su={},Uy={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 Fs=Symbol.for("react.element"),hk=Symbol.for("react.portal"),pk=Symbol.for("react.fragment"),mk=Symbol.for("react.strict_mode"),gk=Symbol.for("react.profiler"),yk=Symbol.for("react.provider"),vk=Symbol.for("react.context"),Sk=Symbol.for("react.forward_ref"),bk=Symbol.for("react.suspense"),xk=Symbol.for("react.memo"),wk=Symbol.for("react.lazy"),om=Symbol.iterator;function kk(e){return e===null||typeof e!="object"?null:(e=om&&e[om]||e["@@iterator"],typeof e=="function"?e:null)}var Hy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gy=Object.assign,Ky={};function ni(e,t,r){this.props=e,this.context=t,this.refs=Ky,this.updater=r||Hy}ni.prototype.isReactComponent={};ni.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")};ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yy(){}Yy.prototype=ni.prototype;function Gf(e,t,r){this.props=e,this.context=t,this.refs=Ky,this.updater=r||Hy}var Kf=Gf.prototype=new Yy;Kf.constructor=Gf;Gy(Kf,ni.prototype);Kf.isPureReactComponent=!0;var im=Array.isArray,Xy=Object.prototype.hasOwnProperty,Yf={current:null},qy={key:!0,ref:!0,__self:!0,__source:!0};function Qy(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Xy.call(t,n)&&!qy.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,ie=A[V];if(0>>1;Vo(Lr,N))Reo(tr,Lr)?(A[V]=tr,A[Re]=N,V=Re):(A[V]=Lr,A[pt]=N,V=pt);else if(Reo(tr,N))A[V]=tr,A[Re]=N,V=Re;else break e}}return L}function o(A,L){var N=A.sortIndex-L.sortIndex;return N!==0?N:A.id-L.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,p=!1,y=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,g=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(A){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=A)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function b(A){if(S=!1,m(A),!y)if(r(l)!==null)y=!0,me(P);else{var L=r(u);L!==null&&ot(b,L.startTime-A)}}function P(A,L){y=!1,S&&(S=!1,g(z),z=-1),p=!0;var N=f;try{for(m(L),d=r(l);d!==null&&(!(d.expirationTime>L)||A&&!xe());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var ie=V(d.expirationTime<=L);L=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===r(l)&&n(l),m(L)}else n(l);d=r(l)}if(d!==null)var Y=!0;else{var pt=r(u);pt!==null&&ot(b,pt.startTime-L),Y=!1}return Y}finally{d=null,f=N,p=!1}}var $=!1,E=null,z=-1,D=5,I=-1;function xe(){return!(e.unstable_now()-IA||125V?(A.sortIndex=N,t(u,A),r(l)===null&&A===r(u)&&(S?(g(z),z=-1):S=!0,ot(b,N-V))):(A.sortIndex=ie,t(l,A),y||p||(y=!0,me(P))),A},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(A){var L=f;return function(){var N=f;f=L;try{return A.apply(this,arguments)}finally{f=N}}}})(tv);ev.exports=tv;var jk=ev.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 rv=_,kt=jk;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vd=Object.prototype.hasOwnProperty,Dk=/^[: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]*$/,am={},lm={};function Ik(e){return vd.call(lm,e)?!0:vd.call(am,e)?!1:Dk.test(e)?lm[e]=!0:(am[e]=!0,!1)}function Fk(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ok(e,t,r,n){if(t===null||typeof t>"u"||Fk(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 nt(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new nt(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){He[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var qf=/[\-:]([a-z])/g;function Qf(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(qf,Qf);He[t]=new nt(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(qf,Qf);He[t]=new nt(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(qf,Qf);He[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zf(e,t,r,n){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:n||!(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{dc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Pi(e):""}function Lk(e){switch(e.tag){case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return e=fc(e.type,!1),e;case 11:return e=fc(e.type.render,!1),e;case 1:return e=fc(e.type,!0),e;default:return""}}function wd(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 co:return"Fragment";case uo:return"Portal";case Sd:return"Profiler";case Jf:return"StrictMode";case bd:return"Suspense";case xd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iv:return(e.displayName||"Context")+".Consumer";case ov:return(e._context.displayName||"Context")+".Provider";case eh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case th:return t=e.displayName||null,t!==null?t:wd(e.type)||"Memo";case Gr:t=e._payload,e=e._init;try{return wd(e(t))}catch{}}return null}function Bk(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 wd(t);case 8:return t===Jf?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function av(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vk(e){var t=av(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ua(e){e._valueTracker||(e._valueTracker=Vk(e))}function lv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=av(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ml(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 kd(e,t){var r=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function cm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=dn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uv(e,t){t=t.checked,t!=null&&Zf(e,"checked",t,!1)}function Cd(e,t){uv(e,t);var r=dn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_d(e,t.type,r):t.hasOwnProperty("defaultValue")&&_d(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _d(e,t,r){(t!=="number"||ml(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ei=Array.isArray;function Ao(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ca.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ss(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Li={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},Nk=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(e){Nk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Li[t]=Li[e]})});function hv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Li.hasOwnProperty(e)&&Li[e]?(""+t).trim():t+"px"}function pv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=hv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Wk=Se({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 Ed(e,t){if(t){if(Wk[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 $d(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 zd=null;function rh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rd=null,Mo=null,jo=null;function pm(e){if(e=Bs(e)){if(typeof Rd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Rd(e.stateNode,e.type,t))}}function mv(e){Mo?jo?jo.push(e):jo=[e]:Mo=e}function gv(){if(Mo){var e=Mo,t=jo;if(jo=Mo=null,pm(e),t)for(e=0;e>>=0,e===0?32:31-(eC(e)/tC|0)|0}var da=64,fa=4194304;function $i(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 Sl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=$i(a):(i&=s,i!==0&&(n=$i(i)))}else s=r&~o,s!==0?n=$i(s):i!==0&&(n=$i(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Os(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=r}function iC(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Vi),km=" ",Cm=!1;function Iv(e,t){switch(e){case"keyup":return MC.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 fo=!1;function DC(e,t){switch(e){case"compositionend":return Fv(t);case"keypress":return t.which!==32?null:(Cm=!0,km);case"textInput":return e=t.data,e===km&&Cm?null:e;default:return null}}function IC(e,t){if(fo)return e==="compositionend"||!ch&&Iv(e,t)?(e=jv(),Na=ah=Zr=null,fo=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Em(r)}}function Vv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nv(){for(var e=window,t=ml();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ml(e.document)}return t}function dh(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 HC(e){var t=Nv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Vv(r.ownerDocument.documentElement,r)){if(n!==null&&dh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=$m(r,i);var s=$m(r,n);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>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ho=null,Fd=null,Wi=null,Od=!1;function zm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Od||ho==null||ho!==ml(n)||(n=ho,"selectionStart"in n&&dh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wi&&fs(Wi,n)||(Wi=n,n=wl(Fd,"onSelect"),0go||(e.current=Ud[go],Ud[go]=null,go--)}function se(e,t){go++,Ud[go]=e.current,e.current=t}var fn={},Qe=vn(fn),lt=vn(!1),Kn=fn;function Uo(e,t){var r=e.type.contextTypes;if(!r)return fn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function Cl(){ce(lt),ce(Qe)}function Fm(e,t,r){if(Qe.current!==fn)throw Error(R(168));se(Qe,t),se(lt,r)}function Qv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(R(108,Bk(e)||"Unknown",o));return Se({},r,n)}function _l(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Kn=Qe.current,se(Qe,e),se(lt,lt.current),!0}function Om(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=Qv(e,t,Kn),n.__reactInternalMemoizedMergedChildContext=e,ce(lt),ce(Qe),se(Qe,e)):ce(lt),se(lt,r)}var Sr=null,fu=!1,Tc=!1;function Zv(e){Sr===null?Sr=[e]:Sr.push(e)}function n_(e){fu=!0,Zv(e)}function Sn(){if(!Tc&&Sr!==null){Tc=!0;var e=0,t=re;try{var r=Sr;for(re=1;e>=s,o-=s,wr=1<<32-qt(t)+o|r<z?(D=E,E=null):D=E.sibling;var I=f(g,E,m[z],b);if(I===null){E===null&&(E=D);break}e&&E&&I.alternate===null&&t(g,E),h=i(I,h,z),$===null?P=I:$.sibling=I,$=I,E=D}if(z===m.length)return r(g,E),he&&Tn(g,z),P;if(E===null){for(;zz?(D=E,E=null):D=E.sibling;var xe=f(g,E,I.value,b);if(xe===null){E===null&&(E=D);break}e&&E&&xe.alternate===null&&t(g,E),h=i(xe,h,z),$===null?P=xe:$.sibling=xe,$=xe,E=D}if(I.done)return r(g,E),he&&Tn(g,z),P;if(E===null){for(;!I.done;z++,I=m.next())I=d(g,I.value,b),I!==null&&(h=i(I,h,z),$===null?P=I:$.sibling=I,$=I);return he&&Tn(g,z),P}for(E=n(g,E);!I.done;z++,I=m.next())I=p(E,g,z,I.value,b),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?z:I.key),h=i(I,h,z),$===null?P=I:$.sibling=I,$=I);return e&&E.forEach(function(ze){return t(g,ze)}),he&&Tn(g,z),P}function C(g,h,m,b){if(typeof m=="object"&&m!==null&&m.type===co&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case la:e:{for(var P=m.key,$=h;$!==null;){if($.key===P){if(P=m.type,P===co){if($.tag===7){r(g,$.sibling),h=o($,m.props.children),h.return=g,g=h;break e}}else if($.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Gr&&Hm(P)===$.type){r(g,$.sibling),h=o($,m.props),h.ref=vi(g,$,m),h.return=g,g=h;break e}r(g,$);break}else t(g,$);$=$.sibling}m.type===co?(h=Bn(m.props.children,g.mode,b,m.key),h.return=g,g=h):(b=qa(m.type,m.key,m.props,null,g.mode,b),b.ref=vi(g,h,m),b.return=g,g=b)}return s(g);case uo:e:{for($=m.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){r(g,h.sibling),h=o(h,m.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=jc(m,g.mode,b),h.return=g,g=h}return s(g);case Gr:return $=m._init,C(g,h,$(m._payload),b)}if(Ei(m))return y(g,h,m,b);if(hi(m))return S(g,h,m,b);Sa(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,m),h.return=g,g=h):(r(g,h),h=Mc(m,g.mode,b),h.return=g,g=h),s(g)):r(g,h)}return C}var Go=s1(!0),a1=s1(!1),Vs={},dr=vn(Vs),gs=vn(Vs),ys=vn(Vs);function In(e){if(e===Vs)throw Error(R(174));return e}function bh(e,t){switch(se(ys,t),se(gs,e),se(dr,Vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pd(t,e)}ce(dr),se(dr,t)}function Ko(){ce(dr),ce(gs),ce(ys)}function l1(e){In(ys.current);var t=In(dr.current),r=Pd(t,e.type);t!==r&&(se(gs,e),se(dr,r))}function xh(e){gs.current===e&&(ce(dr),ce(gs))}var ge=vn(0);function Rl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pc=[];function wh(){for(var e=0;er?r:4,e(!0);var n=Ec.transition;Ec.transition={};try{e(!1),t()}finally{re=r,Ec.transition=n}}function C1(){return Nt().memoizedState}function a_(e,t,r){var n=ln(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},_1(e))T1(t,r);else if(r=r1(e,t,r,n),r!==null){var o=et();Qt(r,e,n,o),P1(r,t,n)}}function l_(e,t,r){var n=ln(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(_1(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,r);if(o.hasEagerState=!0,o.eagerState=a,Jt(a,s)){var l=t.interleaved;l===null?(o.next=o,vh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=r1(e,t,o,n),r!==null&&(o=et(),Qt(r,e,n,o),P1(r,t,n))}}function _1(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function T1(e,t){Ui=Al=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function P1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oh(e,r)}}var Ml={readContext:Vt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},u_={readContext:Vt,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Km,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ga(4194308,4,S1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ga(4,2,e,t)},useMemo:function(e,t){var r=ir();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ir();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=a_.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:Gm,useDebugValue:Ph,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=Gm(!1),t=e[0];return e=s_.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,o=ir();if(he){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ie===null)throw Error(R(349));Xn&30||d1(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Km(h1.bind(null,n,i,e),[e]),n.flags|=2048,bs(9,f1.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ir(),t=Ie.identifierPrefix;if(he){var r=kr,n=wr;r=(n&~(1<<32-qt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=vs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[ur]=t,e[ms]=n,I1(e,t,!1,!1),t.stateNode=e;e:{switch(s=$d(r,n),r){case"dialog":le("cancel",e),le("close",e),o=n;break;case"iframe":case"object":case"embed":le("load",e),o=n;break;case"video":case"audio":for(o=0;oXo&&(t.flags|=128,n=!0,Si(i,!1),t.lanes=4194304)}else{if(!n)if(e=Rl(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Ke(t),null}else 2*Ce()-i.renderingStartTime>Xo&&r!==1073741824&&(t.flags|=128,n=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.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,r=ge.current,se(ge,n?r&1|2:r&1),t):(Ke(t),null);case 22:case 23:return Mh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?gt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function y_(e,t){switch(hh(t),t.tag){case 1:return ut(t.type)&&Cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ko(),ce(lt),ce(Qe),wh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xh(t),null;case 13:if(ce(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ge),null;case 4:return Ko(),null;case 10:return yh(t.type._context),null;case 22:case 23:return Mh(),null;case 24:return null;default:return null}}var xa=!1,qe=!1,v_=typeof WeakSet=="function"?WeakSet:Set,j=null;function bo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function rf(e,t,r){try{r()}catch(n){we(e,t,n)}}var rg=!1;function S_(e,t){if(Ld=bl,e=Nv(),dh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(a=s+o),d!==i||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(a=s),f===i&&++c===n&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bd={focusedElem:e,selectionRange:r},bl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,C=y.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ht(t.type,S),C);g.__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(b){we(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=rg,rg=!1,y}function Hi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rf(t,r,i)}o=o.next}while(o!==n)}}function mu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function nf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function L1(e){var t=e.alternate;t!==null&&(e.alternate=null,L1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[ms],delete t[Wd],delete t[t_],delete t[r_])),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 B1(e){return e.tag===5||e.tag===3||e.tag===4}function ng(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B1(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 of(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=kl));else if(n!==4&&(e=e.child,e!==null))for(of(e,t,r),e=e.sibling;e!==null;)of(e,t,r),e=e.sibling}function sf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(sf(e,t,r),e=e.sibling;e!==null;)sf(e,t,r),e=e.sibling}var Ve=null,Gt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)V1(e,t,r),r=r.sibling}function V1(e,t,r){if(cr&&typeof cr.onCommitFiberUnmount=="function")try{cr.onCommitFiberUnmount(au,r)}catch{}switch(r.tag){case 5:qe||bo(r,t);case 6:var n=Ve,o=Gt;Ve=null,Vr(e,t,r),Ve=n,Gt=o,Ve!==null&&(Gt?(e=Ve,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ve.removeChild(r.stateNode));break;case 18:Ve!==null&&(Gt?(e=Ve,r=r.stateNode,e.nodeType===8?_c(e.parentNode,r):e.nodeType===1&&_c(e,r),cs(e)):_c(Ve,r.stateNode));break;case 4:n=Ve,o=Gt,Ve=r.stateNode.containerInfo,Gt=!0,Vr(e,t,r),Ve=n,Gt=o;break;case 0:case 11:case 14:case 15:if(!qe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&rf(r,t,s),o=o.next}while(o!==n)}Vr(e,t,r);break;case 1:if(!qe&&(bo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){we(r,t,a)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(qe=(n=qe)||r.memoizedState!==null,Vr(e,t,r),qe=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function og(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new v_),t.forEach(function(n){var o=E_.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Wt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=Ce()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*x_(n/1960))-n,10e?16:e,Jr===null)var n=!1;else{if(e=Jr,Jr=null,Il=0,X&6)throw Error(R(331));var o=X;for(X|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lCe()-Rh?Ln(e,0):zh|=r),ct(e,t)}function X1(e,t){t===0&&(e.mode&1?(t=fa,fa<<=1,!(fa&130023424)&&(fa=4194304)):t=1);var r=et();e=Mr(e,t),e!==null&&(Os(e,t,r),ct(e,r))}function P_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),X1(e,r)}function E_(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),X1(e,r)}var q1;q1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)at=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return at=!1,m_(e,t,r);at=!!(e.flags&131072)}else at=!1,he&&t.flags&1048576&&Jv(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ka(e,t),e=t.pendingProps;var o=Uo(t,Qe.current);Io(t,r),o=Ch(null,t,n,e,o,r);var i=_h();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(n)?(i=!0,_l(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sh(t),o.updater=hu,t.stateNode=o,o._reactInternals=t,Xd(t,n,e,r),t=Zd(null,t,n,!0,i,r)):(t.tag=0,he&&i&&fh(t),Ze(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ka(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=z_(n),e=Ht(n,e),o){case 0:t=Qd(null,t,n,e,r);break e;case 1:t=Jm(null,t,n,e,r);break e;case 11:t=Qm(null,t,n,e,r);break e;case 14:t=Zm(null,t,n,Ht(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),Qd(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),Jm(e,t,n,o,r);case 3:e:{if(M1(t),e===null)throw Error(R(387));n=t.pendingProps,i=t.memoizedState,o=i.element,n1(e,t),zl(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yo(Error(R(423)),t),t=eg(e,t,n,r,o);break e}else if(n!==o){o=Yo(Error(R(424)),t),t=eg(e,t,n,r,o);break e}else for(yt=on(t.stateNode.containerInfo.firstChild),bt=t,he=!0,Kt=null,r=a1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ho(),n===o){t=jr(e,t,r);break e}Ze(e,t,n,r)}t=t.child}return t;case 5:return l1(t),e===null&&Gd(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Vd(n,o)?s=null:i!==null&&Vd(n,i)&&(t.flags|=32),A1(e,t),Ze(e,t,s,r),t.child;case 6:return e===null&&Gd(t),null;case 13:return j1(e,t,r);case 4:return bh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Go(t,null,n,r):Ze(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),Qm(e,t,n,o,r);case 7:return Ze(e,t,t.pendingProps,r),t.child;case 8:return Ze(e,t,t.pendingProps.children,r),t.child;case 12:return Ze(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,se(El,n._currentValue),n._currentValue=s,i!==null)if(Jt(i.value,s)){if(i.children===o.children&&!lt.current){t=jr(e,t,r);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===n){if(i.tag===1){l=Tr(-1,r&-r),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|=r,l=i.alternate,l!==null&&(l.lanes|=r),Kd(i.return,r,t),a.lanes|=r;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|=r,a=s.alternate,a!==null&&(a.lanes|=r),Kd(s,r,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}Ze(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Io(t,r),o=Vt(o),n=n(o),t.flags|=1,Ze(e,t,n,r),t.child;case 14:return n=t.type,o=Ht(n,t.pendingProps),o=Ht(n.type,o),Zm(e,t,n,o,r);case 15:return z1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),Ka(e,t),t.tag=1,ut(n)?(e=!0,_l(t)):e=!1,Io(t,r),i1(t,n,o),Xd(t,n,o,r),Zd(null,t,n,!0,e,r);case 19:return D1(e,t,r);case 22:return R1(e,t,r)}throw Error(R(156,t.tag))};function Q1(e,t){return kv(e,t)}function $_(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,r,n){return new $_(e,t,r,n)}function Dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function z_(e){if(typeof e=="function")return Dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eh)return 11;if(e===th)return 14}return 2}function un(e,t){var r=e.alternate;return r===null?(r=Ot(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qa(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Dh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case co:return Bn(r.children,o,i,t);case Jf:s=8,o|=8;break;case Sd:return e=Ot(12,r,t,o|2),e.elementType=Sd,e.lanes=i,e;case bd:return e=Ot(13,r,t,o),e.elementType=bd,e.lanes=i,e;case xd:return e=Ot(19,r,t,o),e.elementType=xd,e.lanes=i,e;case sv:return yu(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ov:s=10;break e;case iv:s=9;break e;case eh:s=11;break e;case th:s=14;break e;case Gr:s=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ot(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Bn(e,t,r,n){return e=Ot(7,e,n,t),e.lanes=r,e}function yu(e,t,r,n){return e=Ot(22,e,n,t),e.elementType=sv,e.lanes=r,e.stateNode={isHidden:!1},e}function Mc(e,t,r){return e=Ot(6,e,null,t),e.lanes=r,e}function jc(e,t,r){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function R_(e,t,r,n,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=pc(0),this.expirationTimes=pc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ih(e,t,r,n,o,i,s,a,l){return e=new R_(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sh(i),e}function A_(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tS)}catch(e){console.error(e)}}tS(),Jy.exports=Pt;var Bh=Jy.exports,fg=Bh;yd.createRoot=fg.createRoot,yd.hydrateRoot=fg.hydrateRoot;function F_(e){if(e.sheet)return e.sheet;for(var t=0;t0?We(si,--ft):0,qo--,Pe===10&&(qo=1,ku--),Pe}function xt(){return Pe=ft2||ks(Pe)>3?"":" "}function q_(e,t){for(;--t&&xt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Ns(e,Qa()+(t<6&&fr()==32&&xt()==32))}function ff(e){for(;xt();)switch(Pe){case e:return ft;case 34:case 39:e!==34&&e!==39&&ff(Pe);break;case 40:e===41&&ff(e);break;case 92:xt();break}return ft}function Q_(e,t){for(;xt()&&e+Pe!==57;)if(e+Pe===84&&fr()===47)break;return"/*"+Ns(t,ft-1)+"*"+wu(e===47?e:xt())}function Z_(e){for(;!ks(fr());)xt();return Ns(e,ft)}function J_(e){return aS(Ja("",null,null,null,[""],e=sS(e),0,[0],e))}function Ja(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,y=0,S=1,C=1,g=1,h=0,m="",b=o,P=i,$=n,E=m;C;)switch(y=h,h=xt()){case 40:if(y!=108&&We(E,d-1)==58){df(E+=Z(Za(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Za(h);break;case 9:case 10:case 13:case 32:E+=X_(y);break;case 92:E+=q_(Qa()-1,7);continue;case 47:switch(fr()){case 42:case 47:Ca(e2(Q_(xt(),Qa()),t,r),l);break;default:E+="/"}break;case 123*S:a[u++]=ar(E)*g;case 125*S:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+c:g==-1&&(E=Z(E,/\f/g,"")),p>0&&ar(E)-d&&Ca(p>32?pg(E+";",n,r,d-1):pg(Z(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(Ca($=hg(E,t,r,u,c,o,a,m,b=[],P=[],d),i),h===123)if(c===0)Ja(E,t,$,$,b,i,d,a,P);else switch(f===99&&We(E,3)===110?100:f){case 100:case 108:case 109:case 115:Ja(e,$,$,n&&Ca(hg(e,$,$,0,0,o,a,m,o,b=[],d),P),o,P,d,a,n?b:P);break;default:Ja(E,$,$,$,[""],P,0,a,P)}}u=c=p=0,S=g=1,m=E="",d=s;break;case 58:d=1+ar(E),p=y;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&Y_()==125)continue}switch(E+=wu(h),h*S){case 38:g=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(ar(E)-1)*g,g=1;break;case 64:fr()===45&&(E+=Za(xt())),f=fr(),c=d=ar(m=E+=Z_(Qa())),h++;break;case 45:y===45&&ar(E)==2&&(S=0)}}return i}function hg(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=Wh(f),y=0,S=0,C=0;y0?f[g]+" "+h:Z(h,/&\f/g,f[g])))&&(l[C++]=m);return Cu(e,t,r,o===0?Vh:a,l,u,c)}function e2(e,t,r){return Cu(e,t,r,rS,wu(K_()),ws(e,2,-2),0)}function pg(e,t,r,n){return Cu(e,t,r,Nh,ws(e,0,n),ws(e,n+1,-1),n)}function Oo(e,t){for(var r="",n=Wh(e),o=0;o6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+Ll+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~df(e,"stretch")?uS(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,ar(e)-3-(~df(e,"!important")&&10))){case 107:return Z(e,":",":"+Q)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(We(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return Q+e+Ye+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Ye+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Ye+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Ye+e+e}return e}var u2=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Nh:t.return=uS(t.value,t.length);break;case nS:return Oo([xi(t,{value:Z(t.value,"@","@"+Q)})],o);case Vh:if(t.length)return G_(t.props,function(i){switch(H_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oo([xi(t,{props:[Z(i,/:(read-\w+)/,":"+Ll+"$1")]})],o);case"::placeholder":return Oo([xi(t,{props:[Z(i,/:(plac\w+)/,":"+Q+"input-$1")]}),xi(t,{props:[Z(i,/:(plac\w+)/,":"+Ll+"$1")]}),xi(t,{props:[Z(i,/:(plac\w+)/,Ye+"input-$1")]})],o)}return""})}},c2=[u2],d2=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||c2,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 k2={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,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},C2=/[A-Z]|^ms/g,_2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gS=function(t){return t.charCodeAt(1)===45},yg=function(t){return t!=null&&typeof t!="boolean"},Dc=lS(function(e){return gS(e)?e:e.replace(C2,"-$&").toLowerCase()}),vg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(_2,function(n,o,i){return lr={name:o,styles:i,next:lr},o})}return k2[t]!==1&&!gS(t)&&typeof r=="number"&&r!==0?r+"px":r};function Cs(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return lr={name:r.name,styles:r.styles,next:lr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)lr={name:n.name,styles:n.styles,next:lr},n=n.next;var o=r.styles+";";return o}return T2(e,t,r)}case"function":{if(e!==void 0){var i=lr,s=r(e);return lr=i,Cs(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function T2(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ok.jsx(Du,{styles:xS}),D2=({scope:e=""})=>k.jsx(Du,{styles:bS` - 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; - } - - ${xS} - `});function I2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function to(e={}){const{name:t,strict:r=!0,hookName:n="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&&r){const d=new Error(i??I2(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[F2,O2]=to({strict:!1,name:"PortalManagerContext"});function wS(e){const{children:t,zIndex:r}=e;return k.jsx(F2,{value:{zIndex:r},children:t})}wS.displayName="PortalManager";var Ts=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,[kS,L2]=to({strict:!1,name:"PortalContext"}),Yh="chakra-portal",B2=".chakra-portal",V2=e=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),N2=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=L2(),l=O2();Ts(()=>{if(!n)return;const c=n.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=Yh,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?k.jsx(V2,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Bh.createPortal(k.jsx(kS,{value:i.current,children:u}),i.current):k.jsx("span",{ref:c=>{c&&o(c)}})},W2=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.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=Yh),l},[o]),[,a]=_.useState({});return Ts(()=>a({}),[]),Ts(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Bh.createPortal(k.jsx(kS,{value:n?s:null,children:t}),s):null};function Iu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?k.jsx(W2,{containerRef:r,...n}):k.jsx(N2,{...n})}Iu.className=Yh;Iu.selector=B2;Iu.displayName="Portal";function U2(){const e=_.useContext(_s);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 qh(){const e=_.useContext(Xh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var _a={light:"chakra-ui-light",dark:"chakra-ui-dark"};function H2(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?_a.dark:_a.light),document.body.classList.remove(n?_a.light:_a.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=s=>{n(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 n=document.createElement("style");return n.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(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var G2="chakra-ui-color-mode";function K2(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var Y2=K2(G2),xg=()=>{};function wg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function CS(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=Y2}=e,a=o==="dark"?"dark":"light",[l,u]=_.useState(()=>wg(s,a)),[c,d]=_.useState(()=>wg(s)),{getSystemTheme:f,setClassName:p,setDataset:y,addListener:S}=_.useMemo(()=>H2({preventTransition:i}),[i]),C=o==="system"&&!l?c:l,g=_.useCallback(b=>{const P=b==="system"?f():b;u(P),p(P==="dark"),y(P),s.set(P)},[s,f,p,y]);Ts(()=>{o==="system"&&d(f())},[]),_.useEffect(()=>{const b=s.get();if(b){g(b);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=_.useCallback(()=>{g(C==="dark"?"light":"dark")},[C,g]);_.useEffect(()=>{if(n)return S(g)},[n,S,g]);const m=_.useMemo(()=>({colorMode:t??C,toggleColorMode:t?xg:h,setColorMode:t?xg:g,forced:t!==void 0}),[C,h,g,t]);return k.jsx(Xh.Provider,{value:m,children:r})}CS.displayName="ColorModeProvider";function X2(){const e=qh(),t=U2();return{...e,theme:t}}var zt=(...e)=>e.filter(Boolean).join(" ");function Zt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function en(e,...t){return q2(e)?e(...t):e}var q2=e=>typeof e=="function",kg=e=>e?"":void 0,Vl={exports:{}};Vl.exports;(function(e,t){var r=200,n="__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]",p="[object Function]",y="[object GeneratorFunction]",S="[object Map]",C="[object Number]",g="[object Null]",h="[object Object]",m="[object Proxy]",b="[object RegExp]",P="[object Set]",$="[object String]",E="[object Undefined]",z="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",xe="[object Float32Array]",ze="[object Float64Array]",Oe="[object Int8Array]",Te="[object Int16Array]",er="[object Int32Array]",me="[object Uint8Array]",ot="[object Uint8ClampedArray]",A="[object Uint16Array]",L="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,Y={};Y[xe]=Y[ze]=Y[Oe]=Y[Te]=Y[er]=Y[me]=Y[ot]=Y[A]=Y[L]=!0,Y[a]=Y[l]=Y[D]=Y[c]=Y[I]=Y[d]=Y[f]=Y[p]=Y[S]=Y[C]=Y[h]=Y[b]=Y[P]=Y[$]=Y[z]=!1;var pt=typeof sa=="object"&&sa&&sa.Object===Object&&sa,Lr=typeof self=="object"&&self&&self.Object===Object&&self,Re=pt||Lr||Function("return this")(),tr=t&&!t.nodeType&&t,xn=tr&&!0&&e&&!e.nodeType&&e,oo=xn&&xn.exports===tr,Br=oo&&pt.process,rr=function(){try{var v=xn&&xn.require&&xn.require("util").types;return v||Br&&Br.binding&&Br.binding("util")}catch{}}(),Qu=rr&&rr.isTypedArray;function Jx(v,x,T){switch(T.length){case 0:return v.call(x);case 1:return v.call(x,T[0]);case 2:return v.call(x,T[0],T[1]);case 3:return v.call(x,T[0],T[1],T[2])}return v.apply(x,T)}function ew(v,x){for(var T=-1,M=Array(v);++T-1}function ww(v,x){var T=this.__data__,M=ra(T,v);return M<0?(++this.size,T.push([v,x])):T[M][1]=x,this}gr.prototype.clear=vw,gr.prototype.delete=Sw,gr.prototype.get=bw,gr.prototype.has=xw,gr.prototype.set=ww;function io(v){var x=-1,T=v==null?0:v.length;for(this.clear();++x1?T[K-1]:void 0,de=K>2?T[2]:void 0;for(oe=v.length>3&&typeof oe=="function"?(K--,oe):void 0,de&&Qw(T[0],T[1],de)&&(oe=K<3?void 0:oe,K=1),x=Object(x);++M-1&&v%1==0&&v0){if(++x>=o)return arguments[0]}else x=0;return v.apply(void 0,arguments)}}function ik(v){if(v!=null){try{return Js.call(v)}catch{}try{return v+""}catch{}}return""}function ia(v,x){return v===x||v!==v&&x!==x}var nc=Yp(function(){return arguments}())?Yp:function(v){return di(v)&&mr.call(v,"callee")&&!lw.call(v,"callee")},oc=Array.isArray;function ic(v){return v!=null&&Jp(v.length)&&!sc(v)}function sk(v){return di(v)&&ic(v)}var Zp=cw||dk;function sc(v){if(!Cn(v))return!1;var x=na(v);return x==p||x==y||x==u||x==m}function Jp(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=s}function Cn(v){var x=typeof v;return v!=null&&(x=="object"||x=="function")}function di(v){return v!=null&&typeof v=="object"}function ak(v){if(!di(v)||na(v)!=h)return!1;var x=Up(v);if(x===null)return!0;var T=mr.call(x,"constructor")&&x.constructor;return typeof T=="function"&&T instanceof T&&Js.call(T)==sw}var em=Qu?tw(Qu):Fw;function lk(v){return Gw(v,tm(v))}function tm(v){return ic(v)?Mw(v,!0):Ow(v)}var uk=Kw(function(v,x,T,M){Xp(v,x,T,M)});function ck(v){return function(){return v}}function rm(v){return v}function dk(){return!1}e.exports=uk})(Vl,Vl.exports);var Q2=Vl.exports;const Lt=Hf(Q2);var Z2=e=>/!(important)?$/.test(e),Cg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,J2=(e,t)=>r=>{const n=String(t),o=Z2(n),i=Cg(n),s=e?`${e}.${i}`:i;let a=Zt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=Cg(a),o?`${a} !important`:a};function Qh(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var a;const l=J2(t,i)(s);let u=(a=r==null?void 0:r(l,s))!=null?a:l;return n&&(u=n(u,s)),u}}var Ta=(...e)=>t=>e.reduce((r,n)=>n(r),t);function At(e,t){return r=>{const n={property:r,scale:e};return n.transform=Qh({scale:e,transform:t}),n}}var eT=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function tT(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:eT(t),transform:r?Qh({scale:r,compose:n}):n}}var _S=["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 rT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._S].join(" ")}function nT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._S].join(" ")}var oT={"--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(" ")},iT={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 sT(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 aT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},hf={"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"},lT=new Set(Object.values(hf)),pf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),uT=e=>e.trim();function cT(e,t){if(e==null||pf.has(e))return e;if(!(mf(e)||pf.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(uT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in hf?hf[l]:l;u.unshift(c);const d=u.map(f=>{if(lT.has(f))return f;const p=f.indexOf(" "),[y,S]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],C=mf(S)?S:S&&S.split(" "),g=`colors.${y}`,h=g in t.__cssMap?t.__cssMap[g].varRef:y;return C?[h,...Array.isArray(C)?C:[C]].join(" "):h});return`${a}(${d.join(", ")})`}var mf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),dT=(e,t)=>cT(e,t??{});function fT(e){return/^var\(--.+\)$/.test(e)}var hT=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},or=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:oT},backdropFilter(e){return e!=="auto"?e:iT},ring(e){return sT(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?rT():e==="auto-gpu"?nT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=hT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(fT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:dT,blur:or("blur"),opacity:or("opacity"),brightness:or("brightness"),contrast:or("contrast"),dropShadow:or("drop-shadow"),grayscale:or("grayscale"),hueRotate:e=>or("hue-rotate")(G.degree(e)),invert:or("invert"),saturate:or("saturate"),sepia:or("sepia"),bgImage(e){return e==null||mf(e)||pf.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:r,divide:n}=(t=aT[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:At("borderWidths"),borderStyles:At("borderStyles"),colors:At("colors"),borders:At("borders"),gradients:At("gradients",G.gradient),radii:At("radii",G.px),space:At("space",Ta(G.vh,G.px)),spaceT:At("space",Ta(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Qh({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:At("sizes",Ta(G.vh,G.px)),sizesT:At("sizes",Ta(G.vh,G.fraction)),shadows:At("shadows"),logical:tT,blur:At("blur",G.blur)},el={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.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:G.bgClip}};Object.assign(el,{bgImage:el.backgroundImage,bgImg:el.backgroundImage});var q={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(q,{rounded:q.borderRadius,roundedTop:q.borderTopRadius,roundedTopLeft:q.borderTopLeftRadius,roundedTopRight:q.borderTopRightRadius,roundedTopStart:q.borderStartStartRadius,roundedTopEnd:q.borderStartEndRadius,roundedBottom:q.borderBottomRadius,roundedBottomLeft:q.borderBottomLeftRadius,roundedBottomRight:q.borderBottomRightRadius,roundedBottomStart:q.borderEndStartRadius,roundedBottomEnd:q.borderEndEndRadius,roundedLeft:q.borderLeftRadius,roundedRight:q.borderRightRadius,roundedStart:q.borderInlineStartRadius,roundedEnd:q.borderInlineEndRadius,borderStart:q.borderInlineStart,borderEnd:q.borderInlineEnd,borderTopStartRadius:q.borderStartStartRadius,borderTopEndRadius:q.borderStartEndRadius,borderBottomStartRadius:q.borderEndStartRadius,borderBottomEndRadius:q.borderEndEndRadius,borderStartRadius:q.borderInlineStartRadius,borderEndRadius:q.borderInlineEndRadius,borderStartWidth:q.borderInlineStartWidth,borderEndWidth:q.borderInlineEndWidth,borderStartColor:q.borderInlineStartColor,borderEndColor:q.borderInlineEndColor,borderStartStyle:q.borderInlineStartStyle,borderEndStyle:q.borderInlineEndStyle});var pT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},gf={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(gf,{shadow:gf.boxShadow});var mT={filter:{transform:G.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",G.brightness),contrast:w.propT("--chakra-contrast",G.contrast),hueRotate:w.propT("--chakra-hue-rotate",G.hueRotate),invert:w.propT("--chakra-invert",G.invert),saturate:w.propT("--chakra-saturate",G.saturate),dropShadow:w.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",G.saturate)},Nl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.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(Nl,{flexDir:Nl.flexDirection});var TS={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},gT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},jt={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 r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(jt,{w:jt.width,h:jt.height,minW:jt.minWidth,maxW:jt.maxWidth,minH:jt.minHeight,maxH:jt.maxHeight,overscroll:jt.overscrollBehavior,overscrollX:jt.overscrollBehaviorX,overscrollY:jt.overscrollBehaviorY});var yT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function vT(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},bT=ST(vT),xT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},wT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ic=(e,t,r)=>{const n={},o=bT(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},kT={srOnly:{transform(e){return e===!0?xT:e==="focusable"?wT:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Ic(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Ic(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Ic(t,e,r)}},Yi={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(Yi,{insetStart:Yi.insetInlineStart,insetEnd:Yi.insetInlineEnd});var CT={ring:{transform:G.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")},ue={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(ue,{m:ue.margin,mt:ue.marginTop,mr:ue.marginRight,me:ue.marginInlineEnd,marginEnd:ue.marginInlineEnd,mb:ue.marginBottom,ml:ue.marginLeft,ms:ue.marginInlineStart,marginStart:ue.marginInlineStart,mx:ue.marginX,my:ue.marginY,p:ue.padding,pt:ue.paddingTop,py:ue.paddingY,px:ue.paddingX,pb:ue.paddingBottom,pl:ue.paddingLeft,ps:ue.paddingInlineStart,paddingStart:ue.paddingInlineStart,pr:ue.paddingRight,pe:ue.paddingInlineEnd,paddingEnd:ue.paddingInlineEnd});var _T={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},TT={clipPath:!0,transform:w.propT("transform",G.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")},PT={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")},ET={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",G.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"}},$T={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 PS(e){return Zt(e)&&e.reference?e.reference:String(e)}var Fu=(e,...t)=>t.map(PS).join(` ${e} `).replace(/calc/g,""),_g=(...e)=>`calc(${Fu("+",...e)})`,Tg=(...e)=>`calc(${Fu("-",...e)})`,yf=(...e)=>`calc(${Fu("*",...e)})`,Pg=(...e)=>`calc(${Fu("/",...e)})`,Eg=e=>{const t=PS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:yf(t,-1)},An=Object.assign(e=>({add:(...t)=>An(_g(e,...t)),subtract:(...t)=>An(Tg(e,...t)),multiply:(...t)=>An(yf(e,...t)),divide:(...t)=>An(Pg(e,...t)),negate:()=>An(Eg(e)),toString:()=>e.toString()}),{add:_g,subtract:Tg,multiply:yf,divide:Pg,negate:Eg});function zT(e,t="-"){return e.replace(/\s+/g,t)}function RT(e){const t=zT(e.toString());return MT(AT(t))}function AT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function MT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function jT(e,t=""){return[t,e].filter(Boolean).join("-")}function DT(e,t){return`var(${e}${t?`, ${t}`:""})`}function IT(e,t=""){return RT(`--${jT(e,t)}`)}function O(e,t,r){const n=IT(e,r);return{variable:n,reference:DT(n,t)}}function FT(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=O(`${e}-${o}`,i);continue}r[n]=O(`${e}-${n}`)}return r}function OT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function LT(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function vf(e){if(e==null)return e;const{unitless:t}=LT(e);return t||typeof e=="number"?`${e}px`:e}var ES=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Zh=e=>Object.fromEntries(Object.entries(e).sort(ES));function $g(e){const t=Zh(e);return Object.assign(Object.values(t),t)}function BT(e){const t=Object.keys(Zh(e));return new Set(t)}function zg(e){var t;if(!e)return e;e=(t=vf(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ri(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${vf(e)})`),t&&r.push("and",`(max-width: ${vf(t)})`),r.join(" ")}function VT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=$g(e),n=Object.entries(e).sort(ES).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?zg(d):void 0,{_minW:zg(a),breakpoint:s,minW:a,maxW:d,maxWQuery:Ri(null,d),minWQuery:Ri(a),minMaxQuery:Ri(a,d)}}),o=BT(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:Zh(e),asArray:$g(e),details:n,get(s){return n.find(a=>a.breakpoint===s)},media:[null,...r.map(s=>Ri(s)).slice(1)],toArrayValue(s){if(!Zt(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(;OT(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 Le={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}`},Nr=e=>$S(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yr=e=>$S(t=>e(t,"~ &"),"[data-peer]",".peer"),$S=(e,...t)=>t.map(e).join(", "),Ou={_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:Nr(Le.hover),_peerHover:yr(Le.hover),_groupFocus:Nr(Le.focus),_peerFocus:yr(Le.focus),_groupFocusVisible:Nr(Le.focusVisible),_peerFocusVisible:yr(Le.focusVisible),_groupActive:Nr(Le.active),_peerActive:yr(Le.active),_groupDisabled:Nr(Le.disabled),_peerDisabled:yr(Le.disabled),_groupInvalid:Nr(Le.invalid),_peerInvalid:yr(Le.invalid),_groupChecked:Nr(Le.checked),_peerChecked:yr(Le.checked),_groupFocusWithin:Nr(Le.focusWithin),_peerFocusWithin:yr(Le.focusWithin),_peerPlaceholderShown:yr(Le.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]"},zS=Object.keys(Ou);function Rg(e,t){return O(String(e).replace(/\./g,"-"),void 0,t)}function NT(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=Rg(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...y]=f,S=`${p}.-${y.join(".")}`,C=An.negate(a),g=An.negate(u);n[S]={value:C,var:l,varRef:g}}r[l]=a,n[o]={value:a,var:l,varRef:u};continue}const c=f=>{const y=[String(o).split(".")[0],f].join(".");if(!e[y])return f;const{reference:C}=Rg(y,t==null?void 0:t.cssVarPrefix);return C},d=Zt(a)?a:{default:a};r=Lt(r,Object.entries(d).reduce((f,[p,y])=>{var S,C;if(!y)return f;const g=c(`${y}`);if(p==="default")return f[l]=g,f;const h=(C=(S=Ou)==null?void 0:S[p])!=null?C:p;return f[h]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function WT(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function UT(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function HT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Ag(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){var l;if(HT(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(n!=null&&n(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var GT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function KT(e){return UT(e,GT)}function YT(e){return e.semanticTokens}function XT(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var qT=e=>zS.includes(e)||e==="default";function QT({tokens:e,semanticTokens:t}){const r={};return Ag(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Ag(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(qT)}),r}function ZT(e){var t;const r=XT(e),n=KT(r),o=YT(r),i=QT({tokens:n,semanticTokens:o}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=NT(i,{cssVarPrefix:s});return Object.assign(r,{__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:VT(r.breakpoints)}),r}var Jh=Lt({},el,q,pT,Nl,jt,mT,CT,gT,TS,kT,Yi,gf,ue,$T,ET,_T,TT,yT,PT);Object.assign({},ue,jt,Nl,TS,Yi);var JT=[...Object.keys(Jh),...zS],eP={...Jh,...Ou},tP=e=>e in eP,rP=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=en(e[s],t);if(a==null)continue;if(a=Zt(a)&&r(a)?n(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"&&!oP(t),sP=(e,t)=>{var r,n;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]=nP(t);return t=(n=(r=o(s))!=null?r:i(a))!=null?n:i(t),t};function aP(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var a,l,u;const c=en(i,n),d=rP(c)(n);let f={};for(let p in d){const y=d[p];let S=en(y,n);p in r&&(p=r[p]),iP(p,S)&&(S=sP(n,S));let C=t[p];if(C===!0&&(C={property:p}),Zt(S)){f[p]=(a=f[p])!=null?a:{},f[p]=Lt({},f[p],o(S,!0));continue}let g=(u=(l=C==null?void 0:C.transform)==null?void 0:l.call(C,S,n,c))!=null?u:S;g=C!=null&&C.processResult?o(g,!0):g;const h=en(C==null?void 0:C.property,n);if(!s&&(C!=null&&C.static)){const m=en(C.static,n);f=Lt({},f,m)}if(h&&Array.isArray(h)){for(const m of h)f[m]=g;continue}if(h){h==="&"&&Zt(g)?f=Lt({},f,g):f[h]=g;continue}if(Zt(g)){f=Lt({},f,g);continue}f[p]=g}return f};return o}var RS=e=>t=>aP({theme:t,pseudos:Ou,configs:Jh})(e);function ae(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function lP(e,t){if(Array.isArray(e))return e;if(Zt(e))return t(e);if(e!=null)return[e]}function uP(e,t){for(let r=t+1;r{Lt(u,{[m]:f?h[m]:{[g]:h[m]}})});continue}if(!p){f?Lt(u,h):u[g]=h;continue}u[g]=h}}return u}}function dP(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,s=cP(i);return Lt({},en((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",o,t),s(e,"variants",n,t))}}function ro(e){return WT(e,["styleConfig","size","variant","colorScheme"])}var fP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function hP(e){return Zt(e)?fP.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var pP={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"},mP={"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)"},gP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},yP={property:pP,easing:mP,duration:gP},vP=yP,SP={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},bP=SP,xP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},wP=xP,kP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},CP=kP,_P={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"}},TP=_P,PP={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},EP=PP,$P={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"},zP=$P,RP={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},AP=RP,MP={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"}},AS=MP,MS={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"},jP={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"},DP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},IP={...MS,...jP,container:DP},jS=IP,FP={breakpoints:CP,zIndices:bP,radii:EP,blur:AP,colors:TP,...AS,sizes:jS,shadows:zP,space:MS,borders:wP,transition:vP},{defineMultiStyleConfig:OP,definePartsStyle:Ai}=ae(["stepper","step","title","description","indicator","separator","icon","number"]),br=O("stepper-indicator-size"),wo=O("stepper-icon-size"),ko=O("stepper-title-font-size"),Mi=O("stepper-description-font-size"),wi=O("stepper-accent-color"),LP=Ai(({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"},[wi.variable]:`colors.${e}.500`,_dark:{[wi.variable]:`colors.${e}.200`}},title:{fontSize:ko.reference,fontWeight:"medium"},description:{fontSize:Mi.reference,color:"chakra-subtle-text"},number:{fontSize:ko.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:wo.reference,height:wo.reference},indicator:{flexShrink:0,borderRadius:"full",width:br.reference,height:br.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:wi.reference},"&[data-status=complete]":{bg:wi.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:wi.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${br.reference} - 8px)`,top:`calc(${br.reference} + 4px)`,insetStart:`calc(${br.reference} / 2 - 1px)`}}})),BP=OP({baseStyle:LP,sizes:{xs:Ai({stepper:{[br.variable]:"sizes.4",[wo.variable]:"sizes.3",[ko.variable]:"fontSizes.xs",[Mi.variable]:"fontSizes.xs"}}),sm:Ai({stepper:{[br.variable]:"sizes.6",[wo.variable]:"sizes.4",[ko.variable]:"fontSizes.sm",[Mi.variable]:"fontSizes.xs"}}),md:Ai({stepper:{[br.variable]:"sizes.8",[wo.variable]:"sizes.5",[ko.variable]:"fontSizes.md",[Mi.variable]:"fontSizes.sm"}}),lg:Ai({stepper:{[br.variable]:"sizes.10",[wo.variable]:"sizes.6",[ko.variable]:"fontSizes.lg",[Mi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ee(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return ee(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return ee(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 p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var VP=ee("accordion").parts("root","container","button","panel").extend("icon"),NP=ee("alert").parts("title","description","container").extend("icon","spinner"),WP=ee("avatar").parts("label","badge","container").extend("excessLabel","group"),UP=ee("breadcrumb").parts("link","item","container").extend("separator");ee("button").parts();var HP=ee("checkbox").parts("control","icon","container").extend("label");ee("progress").parts("track","filledTrack").extend("label");var GP=ee("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),KP=ee("editable").parts("preview","input","textarea"),YP=ee("form").parts("container","requiredIndicator","helperText"),XP=ee("formError").parts("text","icon"),qP=ee("input").parts("addon","field","element","group"),QP=ee("list").parts("container","item","icon"),ZP=ee("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),JP=ee("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),eE=ee("numberinput").parts("root","field","stepperGroup","stepper");ee("pininput").parts("field");var tE=ee("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),rE=ee("progress").parts("label","filledTrack","track"),nE=ee("radio").parts("container","control","label"),oE=ee("select").parts("field","icon"),iE=ee("slider").parts("container","track","thumb","filledTrack","mark"),sE=ee("stat").parts("container","label","helpText","number","icon"),aE=ee("switch").parts("container","track","thumb","label"),lE=ee("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),uE=ee("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),cE=ee("tag").parts("container","label","closeButton"),dE=ee("card").parts("container","header","body","footer");ee("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Fn(e,t,r){return Math.min(Math.max(e,r),t)}class fE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var ji=fE;function ep(e){if(typeof e!="string")throw new ji(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=bE.test(e)?mE(e):e;const r=gE.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(Ps(a,2),16)),parseInt(Ps(s[3]||"f",2),16)/255]}const n=yE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=vE.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=SE.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Fn(0,100,a)!==a)throw new ji(e);if(Fn(0,100,l)!==l)throw new ji(e);return[...xE(s,a,l),Number.isNaN(u)?1:u]}throw new ji(e)}function hE(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Mg=e=>parseInt(e.replace(/_/g,""),36),pE="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 r=Mg(t.substring(0,3)),n=Mg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function mE(e){const t=e.toLowerCase().trim(),r=pE[hE(t)];if(!r)throw new ji(e);return`#${r}`}const Ps=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),gE=new RegExp(`^#${Ps("([a-f0-9])",3)}([a-f0-9])?$`,"i"),yE=new RegExp(`^#${Ps("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),vE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ps(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),SE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bE=/^[a-z]+$/i,jg=e=>Math.round(e*255),xE=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(jg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-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=n-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(jg)};function wE(e,t,r,n){return`rgba(${Fn(0,255,e).toFixed()}, ${Fn(0,255,t).toFixed()}, ${Fn(0,255,r).toFixed()}, ${parseFloat(Fn(0,1,n).toFixed(3))})`}function kE(e,t){const[r,n,o,i]=ep(e);return wE(r,n,o,i-t)}function CE(e){const[t,r,n,o]=ep(e);let i=s=>{const a=Fn(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function _E(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,Je=(e,t,r)=>{const n=_E(e,`colors.${t}`,t);try{return CE(n),n}catch{return r??"#000000"}},PE=e=>{const[t,r,n]=ep(e);return(t*299+r*587+n*114)/1e3},EE=e=>t=>{const r=Je(t,e);return PE(r)<128?"dark":"light"},$E=e=>t=>EE(e)(t)==="dark",Qo=(e,t)=>r=>{const n=Je(r,e);return kE(n,1-t)};function Dg(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 zE=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function RE(e){const t=zE();return!e||TE(e)?t:e.string&&e.colors?ME(e.string,e.colors):e.string&&!e.colors?AE(e.string):e.colors&&!e.string?jE(e.colors):t}function AE(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function ME(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function tp(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function DS(e){return Zt(e)&&e.reference?e.reference:String(e)}var Lu=(e,...t)=>t.map(DS).join(` ${e} `).replace(/calc/g,""),Ig=(...e)=>`calc(${Lu("+",...e)})`,Fg=(...e)=>`calc(${Lu("-",...e)})`,Sf=(...e)=>`calc(${Lu("*",...e)})`,Og=(...e)=>`calc(${Lu("/",...e)})`,Lg=e=>{const t=DS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sf(t,-1)},xr=Object.assign(e=>({add:(...t)=>xr(Ig(e,...t)),subtract:(...t)=>xr(Fg(e,...t)),multiply:(...t)=>xr(Sf(e,...t)),divide:(...t)=>xr(Og(e,...t)),negate:()=>xr(Lg(e)),toString:()=>e.toString()}),{add:Ig,subtract:Fg,multiply:Sf,divide:Og,negate:Lg});function DE(e){return!Number.isInteger(parseFloat(e.toString()))}function IE(e,t="-"){return e.replace(/\s+/g,t)}function IS(e){const t=IE(e.toString());return t.includes("\\.")?e:DE(e)?t.replace(".","\\."):e}function FE(e,t=""){return[t,IS(e)].filter(Boolean).join("-")}function OE(e,t){return`var(${IS(e)}${t?`, ${t}`:""})`}function LE(e,t=""){return`--${FE(e,t)}`}function je(e,t){const r=LE(e,t==null?void 0:t.prefix);return{variable:r,reference:OE(r,BE(t==null?void 0:t.fallback))}}function BE(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:VE,definePartsStyle:tl}=ae(aE.keys),Xi=je("switch-track-width"),Vn=je("switch-track-height"),Fc=je("switch-track-diff"),NE=xr.subtract(Xi,Vn),bf=je("switch-thumb-x"),ki=je("switch-bg"),WE=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xi.reference],height:[Vn.reference],transitionProperty:"common",transitionDuration:"fast",[ki.variable]:"colors.gray.300",_dark:{[ki.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ki.variable]:`colors.${t}.500`,_dark:{[ki.variable]:`colors.${t}.200`}},bg:ki.reference}},UE={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Vn.reference],height:[Vn.reference],_checked:{transform:`translateX(${bf.reference})`}},HE=tl(e=>({container:{[Fc.variable]:NE,[bf.variable]:Fc.reference,_rtl:{[bf.variable]:xr(Fc).negate().toString()}},track:WE(e),thumb:UE})),GE={sm:tl({container:{[Xi.variable]:"1.375rem",[Vn.variable]:"sizes.3"}}),md:tl({container:{[Xi.variable]:"1.875rem",[Vn.variable]:"sizes.4"}}),lg:tl({container:{[Xi.variable]:"2.875rem",[Vn.variable]:"sizes.6"}})},KE=VE({baseStyle:HE,sizes:GE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:YE,definePartsStyle:Lo}=ae(lE.keys),XE=Lo({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"}}),Wl={"&[data-is-numeric=true]":{textAlign:"end"}},qE=Lo(e=>{const{colorScheme:t}=e;return{th:{color:F("gray.600","gray.400")(e),borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Wl},td:{borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Wl},caption:{color:F("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),QE=Lo(e=>{const{colorScheme:t}=e;return{th:{color:F("gray.600","gray.400")(e),borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Wl},td:{borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Wl},caption:{color:F("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e)},td:{background:F(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ZE={simple:qE,striped:QE,unstyled:{}},JE={sm:Lo({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:Lo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Lo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},e$=YE({baseStyle:XE,variants:ZE,sizes:JE,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),st=O("tabs-color"),Yt=O("tabs-bg"),Pa=O("tabs-border-color"),{defineMultiStyleConfig:t$,definePartsStyle:hr}=ae(uE.keys),r$=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},n$=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}}},o$=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},i$={p:4},s$=hr(e=>({root:r$(e),tab:n$(e),tablist:o$(e),tabpanel:i$})),a$={sm:hr({tab:{py:1,px:4,fontSize:"sm"}}),md:hr({tab:{fontSize:"md",py:2,px:4}}),lg:hr({tab:{fontSize:"lg",py:3,px:4}})},l$=hr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"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:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:st.reference,bg:Yt.reference}}}),u$=hr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Pa.variable]:"transparent",_selected:{[st.variable]:`colors.${t}.600`,[Pa.variable]:"colors.white",_dark:{[st.variable]:`colors.${t}.300`,[Pa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Pa.reference},color:st.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),c$=hr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Yt.variable]:"colors.gray.50",_dark:{[Yt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Yt.variable]:"colors.white",[st.variable]:`colors.${t}.600`,_dark:{[Yt.variable]:"colors.gray.800",[st.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:st.reference,bg:Yt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),d$=hr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Je(r,`${t}.700`),bg:Je(r,`${t}.100`)}}}}),f$=hr(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",[Yt.variable]:`colors.${t}.600`,_dark:{[st.variable]:"colors.gray.800",[Yt.variable]:`colors.${t}.300`}},color:st.reference,bg:Yt.reference}}}),h$=hr({}),p$={line:l$,enclosed:u$,"enclosed-colored":c$,"soft-rounded":d$,"solid-rounded":f$,unstyled:h$},m$=t$({baseStyle:s$,sizes:a$,variants:p$,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),_e=FT("badge",["bg","color","shadow"]),g$={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:_e.bg.reference,color:_e.color.reference,boxShadow:_e.shadow.reference},y$=e=>{const{colorScheme:t,theme:r}=e,n=Qo(`${t}.500`,.6)(r);return{[_e.bg.variable]:`colors.${t}.500`,[_e.color.variable]:"colors.white",_dark:{[_e.bg.variable]:n,[_e.color.variable]:"colors.whiteAlpha.800"}}},v$=e=>{const{colorScheme:t,theme:r}=e,n=Qo(`${t}.200`,.16)(r);return{[_e.bg.variable]:`colors.${t}.100`,[_e.color.variable]:`colors.${t}.800`,_dark:{[_e.bg.variable]:n,[_e.color.variable]:`colors.${t}.200`}}},S$=e=>{const{colorScheme:t,theme:r}=e,n=Qo(`${t}.200`,.8)(r);return{[_e.color.variable]:`colors.${t}.500`,_dark:{[_e.color.variable]:n},[_e.shadow.variable]:`inset 0 0 0px 1px ${_e.color.reference}`}},b$={solid:y$,subtle:v$,outline:S$},qi={baseStyle:g$,variants:b$,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:x$,definePartsStyle:Nn}=ae(cE.keys),Bg=O("tag-bg"),Vg=O("tag-color"),Oc=O("tag-shadow"),rl=O("tag-min-height"),nl=O("tag-min-width"),ol=O("tag-font-size"),il=O("tag-padding-inline"),w$={fontWeight:"medium",lineHeight:1.2,outline:0,[Vg.variable]:_e.color.reference,[Bg.variable]:_e.bg.reference,[Oc.variable]:_e.shadow.reference,color:Vg.reference,bg:Bg.reference,boxShadow:Oc.reference,borderRadius:"md",minH:rl.reference,minW:nl.reference,fontSize:ol.reference,px:il.reference,_focusVisible:{[Oc.variable]:"shadows.outline"}},k$={lineHeight:1.2,overflow:"visible"},C$={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}},_$=Nn({container:w$,label:k$,closeButton:C$}),T$={sm:Nn({container:{[rl.variable]:"sizes.5",[nl.variable]:"sizes.5",[ol.variable]:"fontSizes.xs",[il.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Nn({container:{[rl.variable]:"sizes.6",[nl.variable]:"sizes.6",[ol.variable]:"fontSizes.sm",[il.variable]:"space.2"}}),lg:Nn({container:{[rl.variable]:"sizes.8",[nl.variable]:"sizes.8",[ol.variable]:"fontSizes.md",[il.variable]:"space.3"}})},P$={subtle:Nn(e=>{var t;return{container:(t=qi.variants)==null?void 0:t.subtle(e)}}),solid:Nn(e=>{var t;return{container:(t=qi.variants)==null?void 0:t.solid(e)}}),outline:Nn(e=>{var t;return{container:(t=qi.variants)==null?void 0:t.outline(e)}})},E$=x$({variants:P$,baseStyle:_$,sizes:T$,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Cr,defineMultiStyleConfig:$$}=ae(qP.keys),Co=O("input-height"),_o=O("input-font-size"),To=O("input-padding"),Po=O("input-border-radius"),z$=Cr({addon:{height:Co.reference,fontSize:_o.reference,px:To.reference,borderRadius:Po.reference},field:{width:"100%",height:Co.reference,fontSize:_o.reference,px:To.reference,borderRadius:Po.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Wr={lg:{[_o.variable]:"fontSizes.lg",[To.variable]:"space.4",[Po.variable]:"radii.md",[Co.variable]:"sizes.12"},md:{[_o.variable]:"fontSizes.md",[To.variable]:"space.4",[Po.variable]:"radii.md",[Co.variable]:"sizes.10"},sm:{[_o.variable]:"fontSizes.sm",[To.variable]:"space.3",[Po.variable]:"radii.sm",[Co.variable]:"sizes.8"},xs:{[_o.variable]:"fontSizes.xs",[To.variable]:"space.2",[Po.variable]:"radii.sm",[Co.variable]:"sizes.6"}},R$={lg:Cr({field:Wr.lg,group:Wr.lg}),md:Cr({field:Wr.md,group:Wr.md}),sm:Cr({field:Wr.sm,group:Wr.sm}),xs:Cr({field:Wr.xs,group:Wr.xs})};function rp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||F("blue.500","blue.300")(e),errorBorderColor:r||F("red.500","red.300")(e)}}var A$=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rp(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:F("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,n),boxShadow:`0 0 0 1px ${Je(t,n)}`},_focusVisible:{zIndex:1,borderColor:Je(t,r),boxShadow:`0 0 0 1px ${Je(t,r)}`}},addon:{border:"1px solid",borderColor:F("inherit","whiteAlpha.50")(e),bg:F("gray.100","whiteAlpha.300")(e)}}}),M$=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rp(e);return{field:{border:"2px solid",borderColor:"transparent",bg:F("gray.100","whiteAlpha.50")(e),_hover:{bg:F("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,n)},_focusVisible:{bg:"transparent",borderColor:Je(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:F("gray.100","whiteAlpha.50")(e)}}}),j$=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,n),boxShadow:`0px 1px 0px 0px ${Je(t,n)}`},_focusVisible:{borderColor:Je(t,r),boxShadow:`0px 1px 0px 0px ${Je(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),D$=Cr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),I$={outline:A$,filled:M$,flushed:j$,unstyled:D$},J=$$({baseStyle:z$,sizes:R$,variants:I$,defaultProps:{size:"md",variant:"outline"}}),Ng,F$={...(Ng=J.baseStyle)==null?void 0:Ng.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Wg,Ug,O$={outline:e=>{var t,r;return(r=(t=J.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=J.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=J.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Ug=(Wg=J.variants)==null?void 0:Wg.unstyled.field)!=null?Ug:{}},Hg,Gg,Kg,Yg,Xg,qg,Qg,Zg,L$={xs:(Gg=(Hg=J.sizes)==null?void 0:Hg.xs.field)!=null?Gg:{},sm:(Yg=(Kg=J.sizes)==null?void 0:Kg.sm.field)!=null?Yg:{},md:(qg=(Xg=J.sizes)==null?void 0:Xg.md.field)!=null?qg:{},lg:(Zg=(Qg=J.sizes)==null?void 0:Qg.lg.field)!=null?Zg:{}},B$={baseStyle:F$,sizes:L$,variants:O$,defaultProps:{size:"md",variant:"outline"}},Ea=je("tooltip-bg"),Lc=je("tooltip-fg"),V$=je("popper-arrow-bg"),N$={bg:Ea.reference,color:Lc.reference,[Ea.variable]:"colors.gray.700",[Lc.variable]:"colors.whiteAlpha.900",_dark:{[Ea.variable]:"colors.gray.300",[Lc.variable]:"colors.gray.900"},[V$.variable]:Ea.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},W$={baseStyle:N$},{defineMultiStyleConfig:U$,definePartsStyle:Di}=ae(rE.keys),H$=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=F(Dg(),Dg("1rem","rgba(0,0,0,0.1)"))(e),s=F(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${Je(r,s)} 50%, - transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},G$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},K$=e=>({bg:F("gray.100","whiteAlpha.300")(e)}),Y$=e=>({transitionProperty:"common",transitionDuration:"slow",...H$(e)}),X$=Di(e=>({label:G$,filledTrack:Y$(e),track:K$(e)})),q$={xs:Di({track:{h:"1"}}),sm:Di({track:{h:"2"}}),md:Di({track:{h:"3"}}),lg:Di({track:{h:"4"}})},Q$=U$({sizes:q$,baseStyle:X$,defaultProps:{size:"md",colorScheme:"blue"}}),Z$=e=>typeof e=="function";function tt(e,...t){return Z$(e)?e(...t):e}var{definePartsStyle:sl,defineMultiStyleConfig:J$}=ae(HP.keys),Qi=O("checkbox-size"),e5=e=>{const{colorScheme:t}=e;return{w:Qi.reference,h:Qi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:F(`${t}.500`,`${t}.200`)(e),borderColor:F(`${t}.500`,`${t}.200`)(e),color:F("white","gray.900")(e),_hover:{bg:F(`${t}.600`,`${t}.300`)(e),borderColor:F(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:F("gray.200","transparent")(e),bg:F("gray.200","whiteAlpha.300")(e),color:F("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:F(`${t}.500`,`${t}.200`)(e),borderColor:F(`${t}.500`,`${t}.200`)(e),color:F("white","gray.900")(e)},_disabled:{bg:F("gray.100","whiteAlpha.100")(e),borderColor:F("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:F("red.500","red.300")(e)}}},t5={_disabled:{cursor:"not-allowed"}},r5={userSelect:"none",_disabled:{opacity:.4}},n5={transitionProperty:"transform",transitionDuration:"normal"},o5=sl(e=>({icon:n5,container:t5,control:tt(e5,e),label:r5})),i5={sm:sl({control:{[Qi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:sl({control:{[Qi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:sl({control:{[Qi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ul=J$({baseStyle:o5,sizes:i5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:s5,definePartsStyle:al}=ae(nE.keys),a5=e=>{var t;const r=(t=tt(Ul.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},l5=al(e=>{var t,r,n,o;return{label:(r=(t=Ul).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Ul).baseStyle)==null?void 0:o.call(n,e).container,control:a5(e)}}),u5={md:al({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:al({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:al({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},c5=s5({baseStyle:l5,sizes:u5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:d5,definePartsStyle:f5}=ae(oE.keys),$a=O("select-bg"),Jg,h5={...(Jg=J.baseStyle)==null?void 0:Jg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$a.reference,[$a.variable]:"colors.white",_dark:{[$a.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$a.reference}},p5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},m5=f5({field:h5,icon:p5}),za={paddingInlineEnd:"8"},e0,t0,r0,n0,o0,i0,s0,a0,g5={lg:{...(e0=J.sizes)==null?void 0:e0.lg,field:{...(t0=J.sizes)==null?void 0:t0.lg.field,...za}},md:{...(r0=J.sizes)==null?void 0:r0.md,field:{...(n0=J.sizes)==null?void 0:n0.md.field,...za}},sm:{...(o0=J.sizes)==null?void 0:o0.sm,field:{...(i0=J.sizes)==null?void 0:i0.sm.field,...za}},xs:{...(s0=J.sizes)==null?void 0:s0.xs,field:{...(a0=J.sizes)==null?void 0:a0.xs.field,...za},icon:{insetEnd:"1"}}},y5=d5({baseStyle:m5,sizes:g5,variants:J.variants,defaultProps:J.defaultProps}),Bc=O("skeleton-start-color"),Vc=O("skeleton-end-color"),v5={[Bc.variable]:"colors.gray.100",[Vc.variable]:"colors.gray.400",_dark:{[Bc.variable]:"colors.gray.800",[Vc.variable]:"colors.gray.600"},background:Bc.reference,borderColor:Vc.reference,opacity:.7,borderRadius:"sm"},S5={baseStyle:v5},Nc=O("skip-link-bg"),b5={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Nc.variable]:"colors.white",_dark:{[Nc.variable]:"colors.gray.700"},bg:Nc.reference}},x5={baseStyle:b5},{defineMultiStyleConfig:w5,definePartsStyle:Bu}=ae(iE.keys),Es=O("slider-thumb-size"),$s=O("slider-track-size"),Qr=O("slider-bg"),k5=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...tp({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},C5=e=>({...tp({orientation:e.orientation,horizontal:{h:$s.reference},vertical:{w:$s.reference}}),overflow:"hidden",borderRadius:"sm",[Qr.variable]:"colors.gray.200",_dark:{[Qr.variable]:"colors.whiteAlpha.200"},_disabled:{[Qr.variable]:"colors.gray.300",_dark:{[Qr.variable]:"colors.whiteAlpha.300"}},bg:Qr.reference}),_5=e=>{const{orientation:t}=e;return{...tp({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:Es.reference,h:Es.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"}}},T5=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Qr.variable]:`colors.${t}.500`,_dark:{[Qr.variable]:`colors.${t}.200`},bg:Qr.reference}},P5=Bu(e=>({container:k5(e),track:C5(e),thumb:_5(e),filledTrack:T5(e)})),E5=Bu({container:{[Es.variable]:"sizes.4",[$s.variable]:"sizes.1"}}),$5=Bu({container:{[Es.variable]:"sizes.3.5",[$s.variable]:"sizes.1"}}),z5=Bu({container:{[Es.variable]:"sizes.2.5",[$s.variable]:"sizes.0.5"}}),R5={lg:E5,md:$5,sm:z5},A5=w5({baseStyle:P5,sizes:R5,defaultProps:{size:"md",colorScheme:"blue"}}),Mn=je("spinner-size"),M5={width:[Mn.reference],height:[Mn.reference]},j5={xs:{[Mn.variable]:"sizes.3"},sm:{[Mn.variable]:"sizes.4"},md:{[Mn.variable]:"sizes.6"},lg:{[Mn.variable]:"sizes.8"},xl:{[Mn.variable]:"sizes.12"}},D5={baseStyle:M5,sizes:j5,defaultProps:{size:"md"}},{defineMultiStyleConfig:I5,definePartsStyle:FS}=ae(sE.keys),F5={fontWeight:"medium"},O5={opacity:.8,marginBottom:"2"},L5={verticalAlign:"baseline",fontWeight:"semibold"},B5={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},V5=FS({container:{},label:F5,helpText:O5,number:L5,icon:B5}),N5={md:FS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},W5=I5({baseStyle:V5,sizes:N5,defaultProps:{size:"md"}}),Wc=O("kbd-bg"),U5={[Wc.variable]:"colors.gray.100",_dark:{[Wc.variable]:"colors.whiteAlpha.100"},bg:Wc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},H5={baseStyle:U5},G5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},K5={baseStyle:G5},{defineMultiStyleConfig:Y5,definePartsStyle:X5}=ae(QP.keys),q5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Q5=X5({icon:q5}),Z5=Y5({baseStyle:Q5}),{defineMultiStyleConfig:J5,definePartsStyle:ez}=ae(ZP.keys),sr=O("menu-bg"),Uc=O("menu-shadow"),tz={[sr.variable]:"#fff",[Uc.variable]:"shadows.sm",_dark:{[sr.variable]:"colors.gray.700",[Uc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:sr.reference,boxShadow:Uc.reference},rz={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_active:{[sr.variable]:"colors.gray.200",_dark:{[sr.variable]:"colors.whiteAlpha.200"}},_expanded:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:sr.reference},nz={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},oz={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},iz={opacity:.6},sz={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},az={transitionProperty:"common",transitionDuration:"normal"},lz=ez({button:az,list:tz,item:rz,groupTitle:nz,icon:oz,command:iz,divider:sz}),uz=J5({baseStyle:lz}),{defineMultiStyleConfig:cz,definePartsStyle:xf}=ae(JP.keys),Hc=O("modal-bg"),Gc=O("modal-shadow"),dz={bg:"blackAlpha.600",zIndex:"modal"},fz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},hz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Hc.variable]:"colors.white",[Gc.variable]:"shadows.lg",_dark:{[Hc.variable]:"colors.gray.700",[Gc.variable]:"shadows.dark-lg"},bg:Hc.reference,boxShadow:Gc.reference}},pz={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mz={position:"absolute",top:"2",insetEnd:"3"},gz=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},yz={px:"6",py:"4"},vz=xf(e=>({overlay:dz,dialogContainer:tt(fz,e),dialog:tt(hz,e),header:pz,closeButton:mz,body:tt(gz,e),footer:yz}));function Ut(e){return xf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Sz={xs:Ut("xs"),sm:Ut("sm"),md:Ut("md"),lg:Ut("lg"),xl:Ut("xl"),"2xl":Ut("2xl"),"3xl":Ut("3xl"),"4xl":Ut("4xl"),"5xl":Ut("5xl"),"6xl":Ut("6xl"),full:Ut("full")},bz=cz({baseStyle:vz,sizes:Sz,defaultProps:{size:"md"}}),{defineMultiStyleConfig:xz,definePartsStyle:OS}=ae(eE.keys),np=je("number-input-stepper-width"),LS=je("number-input-input-padding"),wz=xr(np).add("0.5rem").toString(),Kc=je("number-input-bg"),Yc=je("number-input-color"),Xc=je("number-input-border-color"),kz={[np.variable]:"sizes.6",[LS.variable]:wz},Cz=e=>{var t,r;return(r=(t=tt(J.baseStyle,e))==null?void 0:t.field)!=null?r:{}},_z={width:np.reference},Tz={borderStart:"1px solid",borderStartColor:Xc.reference,color:Yc.reference,bg:Kc.reference,[Yc.variable]:"colors.chakra-body-text",[Xc.variable]:"colors.chakra-border-color",_dark:{[Yc.variable]:"colors.whiteAlpha.800",[Xc.variable]:"colors.whiteAlpha.300"},_active:{[Kc.variable]:"colors.gray.200",_dark:{[Kc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Pz=OS(e=>{var t;return{root:kz,field:(t=tt(Cz,e))!=null?t:{},stepperGroup:_z,stepper:Tz}});function Ra(e){var t,r,n;const o=(t=J.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",a=AS.fontSizes[s];return OS({field:{...o.field,paddingInlineEnd:LS.reference,verticalAlign:"top"},stepper:{fontSize:xr(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Ez={xs:Ra("xs"),sm:Ra("sm"),md:Ra("md"),lg:Ra("lg")},$z=xz({baseStyle:Pz,sizes:Ez,variants:J.variants,defaultProps:J.defaultProps}),l0,zz={...(l0=J.baseStyle)==null?void 0:l0.field,textAlign:"center"},Rz={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"}},u0,c0,Az={outline:e=>{var t,r,n;return(n=(r=tt((t=J.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=tt((t=J.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=tt((t=J.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(c0=(u0=J.variants)==null?void 0:u0.unstyled.field)!=null?c0:{}},Mz={baseStyle:zz,sizes:Rz,variants:Az,defaultProps:J.defaultProps},{defineMultiStyleConfig:jz,definePartsStyle:Dz}=ae(tE.keys),Aa=je("popper-bg"),Iz=je("popper-arrow-bg"),d0=je("popper-arrow-shadow-color"),Fz={zIndex:10},Oz={[Aa.variable]:"colors.white",bg:Aa.reference,[Iz.variable]:Aa.reference,[d0.variable]:"colors.gray.200",_dark:{[Aa.variable]:"colors.gray.700",[d0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Lz={px:3,py:2,borderBottomWidth:"1px"},Bz={px:3,py:2},Vz={px:3,py:2,borderTopWidth:"1px"},Nz={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Wz=Dz({popper:Fz,content:Oz,header:Lz,body:Bz,footer:Vz,closeButton:Nz}),Uz=jz({baseStyle:Wz}),{definePartsStyle:wf,defineMultiStyleConfig:Hz}=ae(GP.keys),qc=O("drawer-bg"),Qc=O("drawer-box-shadow");function lo(e){return wf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Gz={bg:"blackAlpha.600",zIndex:"modal"},Kz={display:"flex",zIndex:"modal",justifyContent:"center"},Yz=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[qc.variable]:"colors.white",[Qc.variable]:"shadows.lg",_dark:{[qc.variable]:"colors.gray.700",[Qc.variable]:"shadows.dark-lg"},bg:qc.reference,boxShadow:Qc.reference}},Xz={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},qz={position:"absolute",top:"2",insetEnd:"3"},Qz={px:"6",py:"2",flex:"1",overflow:"auto"},Zz={px:"6",py:"4"},Jz=wf(e=>({overlay:Gz,dialogContainer:Kz,dialog:tt(Yz,e),header:Xz,closeButton:qz,body:Qz,footer:Zz})),eR={xs:lo("xs"),sm:lo("md"),md:lo("lg"),lg:lo("2xl"),xl:lo("4xl"),full:lo("full")},tR=Hz({baseStyle:Jz,sizes:eR,defaultProps:{size:"xs"}}),{definePartsStyle:rR,defineMultiStyleConfig:nR}=ae(KP.keys),oR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},iR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},sR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},aR=rR({preview:oR,input:iR,textarea:sR}),lR=nR({baseStyle:aR}),{definePartsStyle:uR,defineMultiStyleConfig:cR}=ae(YP.keys),Bo=O("form-control-color"),dR={marginStart:"1",[Bo.variable]:"colors.red.500",_dark:{[Bo.variable]:"colors.red.300"},color:Bo.reference},fR={mt:"2",[Bo.variable]:"colors.gray.600",_dark:{[Bo.variable]:"colors.whiteAlpha.600"},color:Bo.reference,lineHeight:"normal",fontSize:"sm"},hR=uR({container:{width:"100%",position:"relative"},requiredIndicator:dR,helperText:fR}),pR=cR({baseStyle:hR}),{definePartsStyle:mR,defineMultiStyleConfig:gR}=ae(XP.keys),Vo=O("form-error-color"),yR={[Vo.variable]:"colors.red.500",_dark:{[Vo.variable]:"colors.red.300"},color:Vo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},vR={marginEnd:"0.5em",[Vo.variable]:"colors.red.500",_dark:{[Vo.variable]:"colors.red.300"},color:Vo.reference},SR=mR({text:yR,icon:vR}),bR=gR({baseStyle:SR}),xR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},wR={baseStyle:xR},kR={fontFamily:"heading",fontWeight:"bold"},CR={"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}},_R={baseStyle:kR,sizes:CR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:TR,definePartsStyle:PR}=ae(UP.keys),Zc=O("breadcrumb-link-decor"),ER={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Zc.reference,[Zc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Zc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},$R=PR({link:ER}),zR=TR({baseStyle:$R}),RR={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"}}},BS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:F("gray.800","whiteAlpha.900")(e),_hover:{bg:F("gray.100","whiteAlpha.200")(e)},_active:{bg:F("gray.200","whiteAlpha.300")(e)}};const n=Qo(`${t}.200`,.12)(r),o=Qo(`${t}.200`,.24)(r);return{color:F(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:F(`${t}.50`,n)(e)},_active:{bg:F(`${t}.100`,o)(e)}}},AR=e=>{const{colorScheme:t}=e,r=F("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...tt(BS,e)}},MR={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},jR=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=F("gray.100","whiteAlpha.200")(e);return{bg:l,color:F("gray.800","whiteAlpha.900")(e),_hover:{bg:F("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:F("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=MR[r])!=null?t:{},a=F(n,`${r}.200`)(e);return{bg:a,color:F(o,"gray.800")(e),_hover:{bg:F(i,`${r}.300`)(e),_disabled:{bg:a}},_active:{bg:F(s,`${r}.400`)(e)}}},DR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:F(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:F(`${t}.700`,`${t}.500`)(e)}}},IR={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},FR={ghost:BS,outline:AR,solid:jR,link:DR,unstyled:IR},OR={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"}},LR={baseStyle:RR,variants:FR,sizes:OR,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Wn,defineMultiStyleConfig:BR}=ae(dE.keys),Hl=O("card-bg"),Pr=O("card-padding"),VS=O("card-shadow"),ll=O("card-radius"),NS=O("card-border-width","0"),WS=O("card-border-color"),VR=Wn({container:{[Hl.variable]:"colors.chakra-body-bg",backgroundColor:Hl.reference,boxShadow:VS.reference,borderRadius:ll.reference,color:"chakra-body-text",borderWidth:NS.reference,borderColor:WS.reference},body:{padding:Pr.reference,flex:"1 1 0%"},header:{padding:Pr.reference},footer:{padding:Pr.reference}}),NR={sm:Wn({container:{[ll.variable]:"radii.base",[Pr.variable]:"space.3"}}),md:Wn({container:{[ll.variable]:"radii.md",[Pr.variable]:"space.5"}}),lg:Wn({container:{[ll.variable]:"radii.xl",[Pr.variable]:"space.7"}})},WR={elevated:Wn({container:{[VS.variable]:"shadows.base",_dark:{[Hl.variable]:"colors.gray.700"}}}),outline:Wn({container:{[NS.variable]:"1px",[WS.variable]:"colors.chakra-border-color"}}),filled:Wn({container:{[Hl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Pr.variable]:0},header:{[Pr.variable]:0},footer:{[Pr.variable]:0}}},UR=BR({baseStyle:VR,variants:WR,sizes:NR,defaultProps:{variant:"elevated",size:"md"}}),Zi=je("close-button-size"),Ci=je("close-button-bg"),HR={w:[Zi.reference],h:[Zi.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ci.variable]:"colors.blackAlpha.100",_dark:{[Ci.variable]:"colors.whiteAlpha.100"}},_active:{[Ci.variable]:"colors.blackAlpha.200",_dark:{[Ci.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ci.reference},GR={lg:{[Zi.variable]:"sizes.10",fontSize:"md"},md:{[Zi.variable]:"sizes.8",fontSize:"xs"},sm:{[Zi.variable]:"sizes.6",fontSize:"2xs"}},KR={baseStyle:HR,sizes:GR,defaultProps:{size:"md"}},{variants:YR,defaultProps:XR}=qi,qR={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:_e.bg.reference,color:_e.color.reference,boxShadow:_e.shadow.reference},QR={baseStyle:qR,variants:YR,defaultProps:XR},ZR={w:"100%",mx:"auto",maxW:"prose",px:"4"},JR={baseStyle:ZR},eA={opacity:.6,borderColor:"inherit"},tA={borderStyle:"solid"},rA={borderStyle:"dashed"},nA={solid:tA,dashed:rA},oA={baseStyle:eA,variants:nA,defaultProps:{variant:"solid"}},{definePartsStyle:iA,defineMultiStyleConfig:sA}=ae(VP.keys),aA={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},lA={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},uA={pt:"2",px:"4",pb:"5"},cA={fontSize:"1.25em"},dA=iA({container:aA,button:lA,panel:uA,icon:cA}),fA=sA({baseStyle:dA}),{definePartsStyle:Ws,defineMultiStyleConfig:hA}=ae(NP.keys),wt=O("alert-fg"),Dr=O("alert-bg"),pA=Ws({container:{bg:Dr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:wt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:wt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function op(e){const{theme:t,colorScheme:r}=e,n=Qo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var mA=Ws(e=>{const{colorScheme:t}=e,r=op(e);return{container:{[wt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[wt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark}}}}),gA=Ws(e=>{const{colorScheme:t}=e,r=op(e);return{container:{[wt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[wt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:wt.reference}}}),yA=Ws(e=>{const{colorScheme:t}=e,r=op(e);return{container:{[wt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[wt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:wt.reference}}}),vA=Ws(e=>{const{colorScheme:t}=e;return{container:{[wt.variable]:"colors.white",[Dr.variable]:`colors.${t}.600`,_dark:{[wt.variable]:"colors.gray.900",[Dr.variable]:`colors.${t}.200`},color:wt.reference}}}),SA={subtle:mA,"left-accent":gA,"top-accent":yA,solid:vA},bA=hA({baseStyle:pA,variants:SA,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:US,defineMultiStyleConfig:xA}=ae(WP.keys),No=O("avatar-border-color"),Ji=O("avatar-bg"),zs=O("avatar-font-size"),Zo=O("avatar-size"),wA={borderRadius:"full",border:"0.2em solid",borderColor:No.reference,[No.variable]:"white",_dark:{[No.variable]:"colors.gray.800"}},kA={bg:Ji.reference,fontSize:zs.reference,width:Zo.reference,height:Zo.reference,lineHeight:"1",[Ji.variable]:"colors.gray.200",_dark:{[Ji.variable]:"colors.whiteAlpha.400"}},CA=e=>{const{name:t,theme:r}=e,n=t?RE({string:t}):"colors.gray.400",o=$E(n)(r);let i="white";return o||(i="gray.800"),{bg:Ji.reference,fontSize:zs.reference,color:i,borderColor:No.reference,verticalAlign:"top",width:Zo.reference,height:Zo.reference,"&:not([data-loaded])":{[Ji.variable]:n},[No.variable]:"colors.white",_dark:{[No.variable]:"colors.gray.800"}}},_A={fontSize:zs.reference,lineHeight:"1"},TA=US(e=>({badge:tt(wA,e),excessLabel:tt(kA,e),container:tt(CA,e),label:_A}));function Ur(e){const t=e!=="100%"?jS[e]:void 0;return US({container:{[Zo.variable]:t??e,[zs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Zo.variable]:t??e,[zs.variable]:`calc(${t??e} / 2.5)`}})}var PA={"2xs":Ur(4),xs:Ur(6),sm:Ur(8),md:Ur(12),lg:Ur(16),xl:Ur(24),"2xl":Ur(32),full:Ur("100%")},EA=xA({baseStyle:TA,sizes:PA,defaultProps:{size:"md"}}),$A={Accordion:fA,Alert:bA,Avatar:EA,Badge:qi,Breadcrumb:zR,Button:LR,Checkbox:Ul,CloseButton:KR,Code:QR,Container:JR,Divider:oA,Drawer:tR,Editable:lR,Form:pR,FormError:bR,FormLabel:wR,Heading:_R,Input:J,Kbd:H5,Link:K5,List:Z5,Menu:uz,Modal:bz,NumberInput:$z,PinInput:Mz,Popover:Uz,Progress:Q$,Radio:c5,Select:y5,Skeleton:S5,SkipLink:x5,Slider:A5,Spinner:D5,Stat:W5,Switch:KE,Table:e$,Tabs:m$,Tag:E$,Textarea:B$,Tooltip:W$,Card:UR,Stepper:BP},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"}}},RA={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"}}},AA="ltr",MA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},HS={semanticTokens:zA,direction:AA,...FP,components:$A,styles:RA,config:MA};function Ii(e){return typeof e=="function"}function jA(...e){return t=>e.reduce((r,n)=>n(r),t)}var DA=e=>function(...r){let n=[...r],o=r[r.length-1];return hP(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,jA(...n.map(i=>s=>Ii(i)?i(s):FA(s,i)))(o)},IA=DA(HS);function FA(...e){return Lt({},...e,GS)}function GS(e,t,r,n){if((Ii(e)||Ii(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Ii(e)?e(...o):e,s=Ii(t)?t(...o):t;return Lt({},i,s,GS)}}function OA(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function LA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},KS=BA(LA);function YS(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var XS=e=>YS(e,t=>t!=null);function VA(e){return typeof e=="function"}function qS(e,...t){return VA(e)?e(...t):e}var NA=typeof Element<"u",WA=typeof Map=="function",UA=typeof Set=="function",HA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ul(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ul(e[n],t[n]))return!1;return!0}var i;if(WA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ul(n.value[1],t.get(n.value[0])))return!1;return!0}if(UA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(HA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])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),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(NA&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ul(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var GA=function(t,r){try{return ul(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const KA=Hf(GA);function QS(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:s}=X2(),a=e?KS(i,`components.${e}`):void 0,l=n||a,u=Lt({theme:i,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},XS(OA(o,["children"]))),c=_.useRef({});if(l){const f=dP(l)(u);KA(c.current,f)||(c.current=f)}return c.current}function ai(e,t={}){return QS(e,t)}function ZS(e,t={}){return QS(e,t)}var YA=new Set([...JT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),XA=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function qA(e){return XA.has(e)||!YA.has(e)}function QA(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function ZA(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var JA=/^((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|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)-.*))$/,e3=lS(function(e){return JA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),t3=e3,r3=function(t){return t!=="theme"},f0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?t3:r3},h0=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},n3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return pS(r,n,o),E2(function(){return mS(r,n,o)}),null},o3=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=h0(t,r,n),l=a||f0(o),u=!l("as");return function(){var c=arguments,d=n&&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,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,a=YS(s,(d,f)=>tP(f)),l=qS(e,t),u=QA({},o,l,XS(a),i),c=RS(u)(t.theme);return n?[c,n]:c};function Jc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=qA);const o=a3({baseStyle:r}),i=s3(e,n)(o);return Gn.forwardRef(function(l,u){const{colorMode:c,forced:d}=qh();return Gn.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function l3(){const e=new Map;return new Proxy(Jc,{apply(t,r,n){return Jc(...n)},get(t,r){return e.has(r)||e.set(r,Jc(r)),e.get(r)}})}var te=l3();function be(e){return _.forwardRef(e)}function u3(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=_.createContext(void 0);o.displayName=n;function i(){var s;const a=_.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function c3(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=_.useMemo(()=>ZT(r),[r]);return k.jsxs(R2,{theme:o,children:[k.jsx(d3,{root:t}),n]})}function d3({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k.jsx(Du,{styles:r=>({[t]:r.__cssVars})})}u3({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function f3(){const{colorMode:e}=qh();return k.jsx(Du,{styles:t=>{const r=KS(t,"styles.global"),n=qS(r,{theme:t,colorMode:e});return n?RS(n)(t):void 0}})}var JS=_.createContext({getDocument(){return document},getWindow(){return window}});JS.displayName="EnvironmentContext";function eb(e){const{children:t,environment:r,disabled:n}=e,o=_.useRef(null),i=_.useMemo(()=>r||{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}},[r]),s=!n||!r;return k.jsxs(JS.Provider,{value:i,children:[t,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}eb.displayName="EnvironmentProvider";var h3=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=k.jsx(eb,{environment:a,disabled:u,children:t});return k.jsx(c3,{theme:s,cssVarsRoot:l,children:k.jsxs(CS,{colorModeManager:r,options:s.config,children:[i?k.jsx(D2,{scope:o}):k.jsx(j2,{}),!c&&k.jsx(f3,{}),n?k.jsx(wS,{zIndex:n,children:d}):d]})})},p3=(e,t)=>e.find(r=>r.id===t);function m0(e,t){const r=tb(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function tb(e,t){for(const[r,n]of Object.entries(e))if(p3(n,t))return r}function m3(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function g3(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=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:r,top:n,bottom:o,right:i,left:s}}function y3(e,t=[]){const r=_.useRef(e);return _.useEffect(()=>{r.current=e}),_.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function v3(e,t){const r=y3(e);_.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function g0(e,t){const r=_.useRef(!1),n=_.useRef(!1);_.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),_.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const rb=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vu=_.createContext({}),Us=_.createContext(null),Nu=typeof document<"u",ip=Nu?_.useLayoutEffect:_.useEffect,nb=_.createContext({strict:!1}),sp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),S3="framerAppearId",ob="data-"+sp(S3),ib={skipAnimations:!1,useManualTiming:!1};class y0{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function b3(e){let t=new y0,r=new y0,n=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&s.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=b3(()=>r=!0),d),{}),s=d=>{i[d].process(o)},a=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,x3),1),o.timestamp=d,o.isProcessing=!0,Ma.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,o.isProcessing||e(a)};return{schedule:Ma.reduce((d,f)=>{const p=i[f];return d[f]=(y,S=!1,C=!1)=>(r||l(),p.schedule(y,S,C)),d},{}),cancel:d=>Ma.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:ap,cancel:nO}=sb(queueMicrotask,!1);function w3(e,t,r,n){const{visualElement:o}=_.useContext(Vu),i=_.useContext(nb),s=_.useContext(Us),a=_.useContext(rb).reducedMotion,l=_.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;_.useInsertionEffect(()=>{u&&u.update(r,s)});const c=_.useRef(!!(r[ob]&&!window.HandoffComplete));return ip(()=>{u&&(ap.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),_.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function k3(e,t,r){return _.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Eo(r)&&(r.current=n))},[t])}function Rs(e){return typeof e=="string"||Array.isArray(e)}function Wu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],up=["initial",...lp];function Uu(e){return Wu(e.animate)||up.some(t=>Rs(e[t]))}function ab(e){return!!(Uu(e)||e.variants)}function C3(e,t){if(Uu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Rs(r)?r:void 0,animate:Rs(n)?n:void 0}}return e.inherit!==!1?t:{}}function _3(e){const{initial:t,animate:r}=C3(e,_.useContext(Vu));return _.useMemo(()=>({initial:t,animate:r}),[v0(t),v0(r)])}function v0(e){return Array.isArray(e)?e.join(" "):e}const S0={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"]},As={};for(const e in S0)As[e]={isEnabled:t=>S0[e].some(r=>!!t[r])};function T3(e){for(const t in e)As[t]={...As[t],...e[t]}}const cp=_.createContext({}),lb=_.createContext({}),P3=Symbol.for("motionComponentSymbol");function E3({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&T3(e);function i(a,l){let u;const c={..._.useContext(rb),...a,layoutId:$3(a)},{isStatic:d}=c,f=_3(a),p=n(a,d);if(!d&&Nu){f.visualElement=w3(o,p,c,t);const y=_.useContext(lb),S=_.useContext(nb).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,S,e,y))}return _.createElement(Vu.Provider,{value:f},u&&f.visualElement?_.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,a,k3(p,f.visualElement,l),p,d,f.visualElement))}const s=_.forwardRef(i);return s[P3]=o,s}function $3({layoutId:e}){const t=_.useContext(cp).id;return t&&e!==void 0?t+"-"+e:e}function z3(e){function t(n,o={}){return E3(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const R3=["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 dp(e){return typeof e!="string"||e.includes("-")?!1:!!(R3.indexOf(e)>-1||/[A-Z]/.test(e))}const Kl={};function A3(e){Object.assign(Kl,e)}const Hs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],no=new Set(Hs);function ub(e,{layout:t,layoutId:r}){return no.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kl[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),M3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j3=Hs.length;function D3(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),db=cb("--"),I3=cb("var(--"),Yl=e=>I3(e)&&F3.test(e),F3=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,O3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hn=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},es={...li,transform:e=>hn(0,1,e)},ja={...li,default:1},ts=e=>Math.round(e*1e5)/1e5,fp=/(-)?([\d]*\.?[\d])+/g,L3=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,B3=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gs(e){return typeof e=="string"}const Ks=e=>({test:t=>Gs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hr=Ks("deg"),pr=Ks("%"),B=Ks("px"),V3=Ks("vh"),N3=Ks("vw"),b0={...pr,parse:e=>pr.parse(e)/100,transform:e=>pr.transform(e*100)},x0={...li,transform:Math.round},fb={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:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scale:ja,scaleX:ja,scaleY:ja,scaleZ:ja,skew:Hr,skewX:Hr,skewY:Hr,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:es,originX:b0,originY:b0,originZ:B,zIndex:x0,fillOpacity:es,strokeOpacity:es,numOctaves:x0};function hp(e,t,r,n){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(db(d)){i[d]=f;continue}const p=fb[d],y=O3(f,p);if(no.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||n?o.transform=D3(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const pp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hb(e,t,r){for(const n in t)!ht(t[n])&&!ub(n,r)&&(e[n]=t[n])}function W3({transformTemplate:e},t,r){return _.useMemo(()=>{const n=pp();return hp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function U3(e,t,r){const n=e.style||{},o={};return hb(o,n,e),Object.assign(o,W3(e,t,r)),o}function H3(e,t,r){const n={},o=U3(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const G3=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 Xl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G3.has(e)}let pb=e=>!Xl(e);function K3(e){e&&(pb=t=>t.startsWith("on")?!Xl(t):e(t))}try{K3(require("@emotion/is-prop-valid").default)}catch{}function Y3(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(pb(o)||r===!0&&Xl(o)||!t&&!Xl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function w0(e,t,r){return typeof e=="string"?e:B.transform(t+r*e)}function X3(e,t,r){const n=w0(t,e.x,e.width),o=w0(r,e.y,e.height);return`${n} ${o}`}const q3={offset:"stroke-dashoffset",array:"stroke-dasharray"},Q3={offset:"strokeDashoffset",array:"strokeDasharray"};function Z3(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?q3:Q3;e[i.offset]=B.transform(-n);const s=B.transform(t),a=B.transform(r);e[i.array]=`${s} ${a}`}function mp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(hp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=X3(S,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),s!==void 0&&Z3(p,s,a,l,!1)}const mb=()=>({...pp(),attrs:{}}),gp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J3(e,t,r,n){const o=_.useMemo(()=>{const i=mb();return mp(i,t,{enableHardwareAcceleration:!1},gp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};hb(i,e.style,e),o.style={...i,...o.style}}return o}function e4(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(dp(r)?J3:H3)(n,i,s,r),c={...Y3(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=_.useMemo(()=>ht(d)?d.get():d,[d]);return _.createElement(r,{...c,children:f})}}function gb(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const yb=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 vb(e,t,r,n){gb(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(yb.has(o)?o:sp(o),t.attrs[o])}function yp(e,t){const{style:r}=e,n={};for(const o in r)(ht(r[o])||t.style&&ht(t.style[o])||ub(o,e))&&(n[o]=r[o]);return n}function Sb(e,t){const r=yp(e,t);for(const n in e)if(ht(e[n])||ht(t[n])){const o=Hs.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function vp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function bb(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const ql=e=>Array.isArray(e),t4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),r4=e=>ql(e)?e[e.length-1]||0:e;function cl(e){const t=ht(e)?e.get():e;return t4(t)?t.toValue():t}function n4({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:o4(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const xb=e=>(t,r)=>{const n=_.useContext(Vu),o=_.useContext(Us),i=()=>n4(e,t,n,o);return r?i():bb(i)};function o4(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=cl(i[f]);let{initial:s,animate:a}=e;const l=Uu(e),u=ab(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Wu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const y=vp(e,p);if(!y)return;const{transitionEnd:S,transition:C,...g}=y;for(const h in g){let m=g[h];if(Array.isArray(m)){const b=c?m.length-1:0;m=m[b]}m!==null&&(o[h]=m)}for(const h in S)o[h]=S[h]}),o}const $e=e=>e,{schedule:pe,cancel:Ir,state:Ne,steps:ed}=sb(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0),i4={useVisualState:xb({scrapeMotionValuesFromProps:Sb,createRenderState:mb,onMount:(e,t,{renderState:r,latestValues:n})=>{pe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{mp(r,n,{enableHardwareAcceleration:!1},gp(t.tagName),e.transformTemplate),vb(t,r)})}})},s4={useVisualState:xb({scrapeMotionValuesFromProps:yp,createRenderState:pp})};function a4(e,{forwardMotionProps:t=!1},r,n){return{...dp(e)?i4:s4,preloadedFeatures:r,useRender:e4(t),createVisualElement:n,Component:e}}function _r(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const wb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const l4=e=>t=>wb(t)&&e(t,Hu(t));function Er(e,t,r,n){return _r(e,t,l4(r),n)}const u4=(e,t)=>r=>t(e(r)),$r=(...e)=>e.reduce(u4);function kb(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const k0=kb("dragHorizontal"),C0=kb("dragVertical");function Cb(e){let t=!1;if(e==="y")t=C0();else if(e==="x")t=k0();else{const r=k0(),n=C0();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function _b(){const e=Cb(!0);return e?(e(),!1):!0}class bn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _0(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||_b())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&pe.update(()=>a[n](i,s))};return Er(e.current,r,o,{passive:!e.getProps()[n]})}class c4 extends bn{mount(){this.unmount=$r(_0(this.node,!0),_0(this.node,!1))}unmount(){}}class d4 extends bn{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=$r(_r(this.node.current,"focus",()=>this.onFocus()),_r(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tb=(e,t)=>t?e===t?!0:Tb(e,t.parentElement):!1;function td(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Hu(r))}class f4 extends bn{constructor(){super(...arguments),this.removeStartListeners=$e,this.removeEndListeners=$e,this.removeAccessibleListeners=$e,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Er(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();pe.update(()=>{!d&&!Tb(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=Er(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$r(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||td("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&pe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_r(this.node.current,"keyup",s),td("down",(a,l)=>{this.startPress(a,l)})},r=_r(this.node.current,"keydown",t),n=()=>{this.isPressing&&td("cancel",(i,s)=>this.cancelPress(i,s))},o=_r(this.node.current,"blur",n);this.removeAccessibleListeners=$r(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&pe.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_b()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&pe.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Er(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=_r(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$r(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kf=new WeakMap,rd=new WeakMap,h4=e=>{const t=kf.get(e.target);t&&t(e)},p4=e=>{e.forEach(h4)};function m4({root:e,...t}){const r=e||document;rd.has(r)||rd.set(r,{});const n=rd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(p4,{root:e,...t})),n[o]}function g4(e,t,r){const n=m4(t);return kf.set(e,r),n.observe(e),()=>{kf.delete(e),n.unobserve(e)}}const y4={some:0,all:1};class v4 extends bn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:y4[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 g4(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(S4(t,r))&&this.startObserver()}unmount(){}}function S4({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const b4={inView:{Feature:v4},tap:{Feature:f4},focus:{Feature:d4},hover:{Feature:c4}};function Pb(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function w4(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Gu(e,t,r){const n=e.getProps();return vp(n,t,r!==void 0?r:n.custom,x4(e),w4(e))}let Sp=$e;const Un=e=>e*1e3,zr=e=>e/1e3,k4={current:!1},Eb=e=>Array.isArray(e)&&typeof e[0]=="number";function $b(e){return!!(!e||typeof e=="string"&&zb[e]||Eb(e)||Array.isArray(e)&&e.every($b))}const Fi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,zb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fi([0,.65,.55,1]),circOut:Fi([.55,0,1,.45]),backIn:Fi([.31,.01,.66,-.59]),backOut:Fi([.33,1.53,.69,.99])};function Rb(e){if(e)return Eb(e)?Fi(e):Array.isArray(e)?e.map(Rb):zb[e]}function C4(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=Rb(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function _4(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Ab=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,T4=1e-7,P4=12;function E4(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=Ab(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>T4&&++aE4(i,0,1,e,r);return i=>i===0||i===1?i:Ab(o(i),t,n)}const $4=Ys(.42,0,1,1),z4=Ys(0,0,.58,1),Mb=Ys(.42,0,.58,1),R4=e=>Array.isArray(e)&&typeof e[0]!="number",jb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Db=e=>t=>1-e(1-t),bp=e=>1-Math.sin(Math.acos(e)),Ib=Db(bp),A4=jb(bp),Fb=Ys(.33,1.53,.69,.99),xp=Db(Fb),M4=jb(xp),j4=e=>(e*=2)<1?.5*xp(e):.5*(2-Math.pow(2,-10*(e-1))),D4={linear:$e,easeIn:$4,easeInOut:Mb,easeOut:z4,circIn:bp,circInOut:A4,circOut:Ib,backIn:xp,backInOut:M4,backOut:Fb,anticipate:j4},T0=e=>{if(Array.isArray(e)){Sp(e.length===4);const[t,r,n,o]=e;return Ys(t,r,n,o)}else if(typeof e=="string")return D4[e];return e},Ms=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},ye=(e,t,r)=>e+(t-e)*r;function nd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function I4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=nd(l,a,e+1/3),i=nd(l,a,e),s=nd(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}const wp=(e,t)=>r=>!!(Gs(r)&&B3.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Ob=(e,t,r)=>n=>{if(!Gs(n))return n;const[o,i,s,a]=n.match(fp);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},F4=e=>hn(0,255,e),od={...li,transform:e=>Math.round(F4(e))},On={test:wp("rgb","red"),parse:Ob("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+od.transform(e)+", "+od.transform(t)+", "+od.transform(r)+", "+ts(es.transform(n))+")"};function O4(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Cf={test:wp("#"),parse:O4,transform:On.transform},$o={test:wp("hsl","hue"),parse:Ob("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+pr.transform(ts(t))+", "+pr.transform(ts(r))+", "+ts(es.transform(n))+")"},id=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},L4=[Cf,On,$o],B4=e=>L4.find(t=>t.test(e));function P0(e){const t=B4(e);let r=t.parse(e);return t===$o&&(r=I4(r)),r}const E0=(e,t)=>{const r=P0(e),n=P0(t),o={...r};return i=>(o.red=id(r.red,n.red,i),o.green=id(r.green,n.green,i),o.blue=id(r.blue,n.blue,i),o.alpha=ye(r.alpha,n.alpha,i),On.transform(o))},Xe={test:e=>On.test(e)||Cf.test(e)||$o.test(e),parse:e=>On.test(e)?On.parse(e):$o.test(e)?$o.parse(e):Cf.parse(e),transform:e=>Gs(e)?e:e.hasOwnProperty("red")?On.transform(e):$o.transform(e)};function V4(e){var t,r;return isNaN(e)&&Gs(e)&&(((t=e.match(fp))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(L3))===null||r===void 0?void 0:r.length)||0)>0}const Lb="number",Bb="color",N4="var",W4="var(",$0="${}",z0=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Ql(e){const t=e.toString(),r=t.match(z0)||[],n=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l{let i="";for(let s=0;stypeof e=="number"?0:e;function H4(e){const t=Vb(e);return Nb(e)(t.map(U4))}const pn={test:V4,parse:Vb,createTransformer:Nb,getAnimatableNone:H4};function _f(e,t){return r=>r>0?t:e}function G4(e,t){return r=>ye(e,t,r)}function kp(e){return typeof e=="number"?G4:typeof e=="string"?Yl(e)?_f:Xe.test(e)?E0:X4:Array.isArray(e)?Wb:typeof e=="object"?Xe.test(e)?E0:K4:_f}function Wb(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>kp(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in n)r[i]=n[i](o);return r}}function Y4(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i{const r=pn.createTransformer(t),n=Ql(e),o=Ql(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?$r(Wb(Y4(n,o),o.values),r):_f(e,t)};function Ub(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ye(e,t,r):kp(e)(e,t)}function q4(e,t,r){const n=[],o=r||Ub,i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=q4(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(hn(e[0],e[i-1],u)):l}function Z4(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Ms(0,t,n);e.push(ye(r,1,o))}}function J4(e){const t=[0];return Z4(t,e.length-1),t}function eM(e,t){return e.map(r=>r*t)}function tM(e,t){return e.map(()=>t||Mb).splice(0,e.length-1)}function Zl({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=R4(n)?n.map(T0):T0(n),i={done:!1,value:t[0]},s=eM(r&&r.length===t.length?r:J4(t),e),a=Q4(s,t,{ease:Array.isArray(o)?o:tM(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Hb(e,t){return t?e*(1e3/t):0}const rM=5;function Gb(e,t,r){const n=Math.max(t-rM,0);return Hb(r-e(n),t-n)}const sd=.001,nM=.01,oM=10,iM=.05,sM=1;function aM({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,s=1-t;s=hn(iM,sM,s),e=hn(nM,oM,zr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,p=Tf(u,s),y=Math.exp(-d);return sd-f/p*y},i=u=>{const d=u*s*e,f=d*r+r,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),S=Tf(Math.pow(u,2),s);return(-o(u)+sd>0?-1:1)*((f-p)*y)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-sd+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=uM(o,i,a);if(e=Un(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const lM=12;function uM(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function fM(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!R0(e,dM)&&R0(e,cM)){const r=aM(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Kb({keyframes:e,restDelta:t,restSpeed:r,...n}){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:f}=fM({...n,velocity:-zr(n.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(a*u)),S=i-o,C=zr(Math.sqrt(a/u)),g=Math.abs(S)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let h;if(y<1){const m=Tf(C,y);h=b=>{const P=Math.exp(-y*C*b);return i-P*((p+y*C*S)/m*Math.sin(m*b)+S*Math.cos(m*b))}}else if(y===1)h=m=>i-Math.exp(-C*m)*(S+(p+C*S)*m);else{const m=C*Math.sqrt(y*y-1);h=b=>{const P=Math.exp(-y*C*b),$=Math.min(m*b,300);return i-P*((p+y*C*S)*Math.sinh($)+m*S*Math.cosh($))/m}}return{calculatedDuration:f&&c||null,next:m=>{const b=h(m);if(f)s.done=m>=c;else{let P=p;m!==0&&(y<1?P=Gb(h,m,b):P=0);const $=Math.abs(P)<=r,E=Math.abs(i-b)<=t;s.done=$&&E}return s.value=s.done?i:b,s}}}function A0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=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},p=z=>a!==void 0&&zl,y=z=>a===void 0?l:l===void 0||Math.abs(a-z)-S*Math.exp(-z/n),m=z=>g+h(z),b=z=>{const D=h(z),I=m(z);f.done=Math.abs(D)<=u,f.value=f.done?g:I};let P,$;const E=z=>{p(f.value)&&(P=z,$=Kb({keyframes:[f.value,y(f.value)],velocity:Gb(m,z,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:z=>{let D=!1;return!$&&P===void 0&&(D=!0,b(z),E(z)),P!==void 0&&z>P?$.next(z-P):(!D&&b(z),f)}}}let dl;function hM(){dl=void 0}const Hn={now:()=>(dl===void 0&&Hn.set(Ne.isProcessing||ib.useManualTiming?Ne.timestamp:performance.now()),dl),set:e=>{dl=e,queueMicrotask(hM)}},pM=e=>{const t=({timestamp:r})=>e(r);return{start:()=>pe.update(t,!0),stop:()=>Ir(t),now:()=>Ne.isProcessing?Ne.timestamp:Hn.now()}},M0=2e4;function j0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=M0?1/0:t}const mM={decay:A0,inertia:A0,tween:Zl,keyframes:Zl,spring:Kb},gM=e=>e/100;function Jl({autoplay:e=!0,delay:t=0,driver:r=pM,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,y=!1,S,C;const g=()=>{C=new Promise(V=>{S=V})};g();let h;const m=mM[o]||Zl;let b;m!==Zl&&typeof n[0]!="number"&&(b=$r(gM,Ub(n[0],n[1])),n=[0,100]);const P=m({...f,keyframes:n});let $;a==="mirror"&&($=m({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let E="idle",z=null,D=null,I=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=j0(P));const{calculatedDuration:xe}=P;let ze=1/0,Oe=1/0;xe!==null&&(ze=xe+s,Oe=ze*(i+1)-s);let Te=0;const er=V=>{if(D===null)return;p>0&&(D=Math.min(D,V)),p<0&&(D=Math.min(V-Oe/p,D)),z!==null?Te=z:Te=Math.round(V-D)*p;const ie=Te-t*(p>=0?1:-1),Y=p>=0?ie<0:ie>Oe;Te=Math.max(ie,0),E==="finished"&&z===null&&(Te=Oe);let pt=Te,Lr=P;if(i){const oo=Math.min(Te,Oe)/ze;let Br=Math.floor(oo),rr=oo%1;!rr&&oo>=1&&(rr=1),rr===1&&Br--,Br=Math.min(Br,i+1),!!(Br%2)&&(a==="reverse"?(rr=1-rr,s&&(rr-=s/ze)):a==="mirror"&&(Lr=$)),pt=hn(0,1,rr)*ze}const Re=Y?{done:!1,value:n[0]}:Lr.next(pt);b&&(Re.value=b(Re.value));let{done:tr}=Re;!Y&&xe!==null&&(tr=p>=0?Te>=Oe:Te<=0);const xn=z===null&&(E==="finished"||E==="running"&&tr);return d&&d(Re.value),xn&&A(),Re},me=()=>{h&&h.stop(),h=void 0},ot=()=>{E="idle",me(),S(),g(),D=I=null},A=()=>{E="finished",c&&c(),me(),S()},L=()=>{if(y)return;h||(h=r(er));const V=h.now();l&&l(),z!==null?D=V-z:(!D||E==="finished")&&(D=V),E==="finished"&&g(),I=D,z=null,E="running",h.start()};e&&L();const N={then(V,ie){return C.then(V,ie)},get time(){return zr(Te)},set time(V){V=Un(V),Te=V,z!==null||!h||p===0?z=V:D=h.now()-V/p},get duration(){const V=P.calculatedDuration===null?j0(P):P.calculatedDuration;return zr(V)},get speed(){return p},set speed(V){V===p||!h||(p=V,N.time=zr(Te))},get state(){return E},play:L,pause:()=>{E="paused",z=Te},stop:()=>{y=!0,E!=="idle"&&(E="idle",u&&u(),ot())},cancel:()=>{I!==null&&er(I),ot()},complete:()=>{E="finished"},sample:V=>(D=0,er(V))};return N}function yM(e){let t;return()=>(t===void 0&&(t=e()),t)}const vM=yM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),SM=new Set(["opacity","clipPath","filter","transform"]),Da=10,bM=2e4,xM=(e,t)=>t.type==="spring"||e==="backgroundColor"||!$b(t.ease);function wM(e,t,{onUpdate:r,onComplete:n,...o}){if(!(vM()&&SM.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:p,times:y}=o;if(xM(t,o)){const m=Jl({...o,repeat:0,delay:0});let b={done:!1,value:d[0]};const P=[];let $=0;for(;!b.done&&${u=!1,S.cancel()},g=()=>{u=!0,pe.update(C),a(),c()};return S.onfinish=()=>{u||(e.set(_4(d,o)),n&&n(),g())},{then(m,b){return l.then(m,b)},attachTimeline(m){return S.timeline=m,S.onfinish=null,$e},get time(){return zr(S.currentTime||0)},set time(m){S.currentTime=Un(m)},get speed(){return S.playbackRate},set speed(m){S.playbackRate=m},get duration(){return zr(f)},play:()=>{s||(S.play(),Ir(C))},pause:()=>S.pause(),stop:()=>{if(s=!0,S.playState==="idle")return;const{currentTime:m}=S;if(m){const b=Jl({...o,autoplay:!1});e.setWithVelocity(b.sample(m-Da).value,b.sample(m).value,Da)}g()},complete:()=>{u||S.finish()},cancel:g}}function kM({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:$e,pause:$e,stop:$e,then:i=>(i(),Promise.resolve()),cancel:$e,complete:$e});return t?Jl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const CM={type:"spring",stiffness:500,damping:25,restSpeed:10},_M=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TM={type:"keyframes",duration:.8},PM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EM=(e,{keyframes:t})=>t.length>2?TM:no.has(e)?e.startsWith("scale")?_M(t[1]):CM:PM,Pf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(pn.test(t)||t==="0")&&!t.startsWith("url(")),$M=new Set(["brightness","contrast","saturate","opacity"]);function zM(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(fp)||[];if(!n)return e;const o=r.replace(n,"");let i=$M.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const RM=/([a-z-]*)\(.*?\)/g,Ef={...pn,getAnimatableNone:e=>{const t=e.match(RM);return t?t.map(zM).join(" "):e}},AM={...fb,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:Ef,WebkitFilter:Ef},Cp=e=>AM[e];function Yb(e,t){let r=Cp(e);return r!==Ef&&(r=pn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Xb=e=>/^0[^.\s]+$/.test(e);function MM(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Xb(e)}function jM(e,t,r,n){const o=Pf(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const s=n.from!==void 0?n.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=_p(n,e)||{},s=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Un(s);const l=jM(t,e,r,i),u=l[0],c=l[l.length-1],d=Pf(e,u),f=Pf(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(DM(i)||(p={...p,...EM(e,p)}),p.duration&&(p.duration=Un(p.duration)),p.repeatDelay&&(p.repeatDelay=Un(p.repeatDelay)),!d||!f||k4.current||i.type===!1||ib.skipAnimations)return kM(p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=wM(t,e,p);if(y)return y}return Jl(p)};function eu(e){return!!(ht(e)&&e.add)}const qb=e=>/^\-?\d*\.?\d+$/.test(e);function Pp(e,t){e.indexOf(t)===-1&&e.push(t)}function Ep(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class $p{constructor(){this.subscriptions=[]}add(t){return Pp(this.subscriptions,t),()=>Ep(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class FM{constructor(t,r={}){this.version="11.0.5",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=Hn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=IM(this.current),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Hn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new $p);const n=this.events[t].add(r);return t==="change"?()=>{n(),pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Hn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>D0)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,D0);return Hb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Jo(e,t){return new FM(e,t)}const Qb=e=>t=>t.test(e),OM={test:e=>e==="auto",parse:e=>e},Zb=[li,B,pr,Hr,N3,V3,OM],_i=e=>Zb.find(Qb(e)),LM=[...Zb,Xe,pn],BM=e=>LM.find(Qb(e));function VM(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jo(r))}function NM(e,t){const r=Gu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const s in i){const a=r4(i[s]);VM(e,s,a)}}function WM(e,t,r){var n,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(C)}return s&&Promise.all(u).then(()=>{s&&NM(e,s)}),u}function $f(e,t,r={}){const n=Gu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(Jb(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return YM(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function YM(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(XM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push($f(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function XM(e,t){return e.sortNodePosition(t)}function qM(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>$f(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=$f(e,t,r);else{const o=typeof t=="function"?Gu(e,t,r.custom):t;n=Promise.all(Jb(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const QM=[...lp].reverse(),ZM=lp.length;function JM(e){return t=>Promise.all(t.map(({animation:r,options:n})=>qM(e,r,n)))}function ej(e){let t=JM(e);const r=rj();let n=!0;const o=(l,u)=>{const c=Gu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let y={},S=1/0;for(let g=0;gS&&P,I=!1;const xe=Array.isArray(b)?b:[b];let ze=xe.reduce(o,{});$===!1&&(ze={});const{prevResolvedValues:Oe={}}=m,Te={...Oe,...ze},er=me=>{D=!0,p.has(me)&&(I=!0,p.delete(me)),m.needsAnimating[me]=!0};for(const me in Te){const ot=ze[me],A=Oe[me];if(y.hasOwnProperty(me))continue;let L=!1;ql(ot)&&ql(A)?L=!Pb(ot,A):L=ot!==A,L?ot!==void 0?er(me):p.add(me):ot!==void 0&&p.has(me)?er(me):m.protectedKeys[me]=!0}m.prevProp=b,m.prevResolvedValues=ze,m.isActive&&(y={...y,...ze}),n&&e.blockInitialAnimation&&(D=!1),D&&(!E||I)&&f.push(...xe.map(me=>({animation:me,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const m=e.getBaseTarget(h);m!==void 0&&(g[h]=m)}),f.push({animation:g})}let C=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(f):Promise.resolve()}function a(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),r[l].isActive=u;const f=s(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function tj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pb(t,e):!1}function _n(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rj(){return{animate:_n(!0),whileInView:_n(),whileHover:_n(),whileTap:_n(),whileDrag:_n(),whileFocus:_n(),exit:_n()}}class nj extends bn{constructor(t){super(t),t.animationState||(t.animationState=ej(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Wu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let oj=0;class ij extends bn{constructor(){super(...arguments),this.id=oj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sj={animation:{Feature:nj},exit:{Feature:ij}},I0=(e,t)=>Math.abs(e-t);function aj(e,t){const r=I0(e.x,t.x),n=I0(e.y,t.y);return Math.sqrt(r**2+n**2)}class ex{constructor(t,r,{transformPagePoint:n,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=ld(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=aj(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:S}=Ne;this.history.push({...y,timestamp:S});const{onStart:C,onMove:g}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ad(f,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ld(d.type==="pointercancel"?this.lastMoveEventInfo:ad(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,C),y&&y(d,C)},!wb(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const s=Hu(t),a=ad(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ne;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,ld(a,this.history)),this.removeListeners=$r(Er(this.contextWindow,"pointermove",this.handlePointerMove),Er(this.contextWindow,"pointerup",this.handlePointerUp),Er(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ir(this.updatePoint)}}function ad(e,t){return t?{point:t(e.point)}:e}function F0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ld({point:e},t){return{point:e,delta:F0(e,tx(t)),offset:F0(e,lj(t)),velocity:uj(t,.1)}}function lj(e){return e[0]}function tx(e){return e[e.length-1]}function uj(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=tx(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Un(t)));)r--;if(!n)return{x:0,y:0};const i=zr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ct(e){return e.max-e.min}function zf(e,t=0,r=.01){return Math.abs(e-t)<=r}function O0(e,t,r,n=.5){e.origin=n,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Ct(r)/Ct(t),(zf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ye(r.min,r.max,e.origin)-e.originPoint,(zf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,r,n){O0(e.x,t.x,r.x,n?n.originX:void 0),O0(e.y,t.y,r.y,n?n.originY:void 0)}function L0(e,t,r){e.min=r.min+t.min,e.max=e.min+Ct(t)}function cj(e,t,r){L0(e.x,t.x,r.x),L0(e.y,t.y,r.y)}function B0(e,t,r){e.min=t.min-r.min,e.max=e.min+Ct(t)}function ns(e,t,r){B0(e.x,t.x,r.x),B0(e.y,t.y,r.y)}function dj(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ye(r,e,n.max):Math.min(e,r)),e}function V0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function fj(e,{top:t,left:r,bottom:n,right:o}){return{x:V0(e.x,r,o),y:V0(e.y,t,n)}}function N0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Ms(t.min,t.max-n,e.min):n>o&&(r=Ms(e.min,e.max-o,t.min)),hn(0,1,r)}function mj(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Rf=.35;function gj(e=Rf){return e===!1?e=0:e===!0&&(e=Rf),{x:W0(e,"left","right"),y:W0(e,"top","bottom")}}function W0(e,t,r){return{min:U0(e,t),max:U0(e,r)}}function U0(e,t){return typeof e=="number"?e:e[t]||0}const H0=()=>({translate:0,scale:1,origin:0,originPoint:0}),zo=()=>({x:H0(),y:H0()}),G0=()=>({min:0,max:0}),ke=()=>({x:G0(),y:G0()});function Dt(e){return[e("x"),e("y")]}function rx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function yj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vj(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ud(e){return e===void 0||e===1}function Af({scale:e,scaleX:t,scaleY:r}){return!ud(e)||!ud(t)||!ud(r)}function En(e){return Af(e)||nx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function nx(e){return K0(e.x)||K0(e.y)}function K0(e){return e&&e!=="0%"}function tu(e,t,r){const n=e-r,o=t*n;return r+o}function Y0(e,t,r,n,o){return o!==void 0&&(e=tu(e,o,n)),tu(e,r,n)+t}function Mf(e,t=0,r=1,n,o){e.min=Y0(e.min,t,r,n,o),e.max=Y0(e.max,t,r,n,o)}function ox(e,{x:t,y:r}){Mf(e.x,t.translate,t.scale,t.originPoint),Mf(e.y,r.translate,r.scale,r.originPoint)}function Sj(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Yr(e,t){e.min=e.min+t,e.max=e.max+t}function q0(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,s=ye(e.min,e.max,i);Mf(e,t[r],t[n],s,t.scale)}const bj=["x","scaleX","originX"],xj=["y","scaleY","originY"];function Ro(e,t){q0(e.x,t,bj),q0(e.y,t,xj)}function ix(e,t){return rx(vj(e.getBoundingClientRect(),t))}function wj(e,t,r){const n=ix(e,r),{scroll:o}=t;return o&&(Yr(n.x,o.offset.x),Yr(n.y,o.offset.y)),n}const sx=({current:e})=>e?e.ownerDocument.defaultView:null,kj=new WeakMap;class Cj{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=ke(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Hu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Cb(f),!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),Dt(C=>{let g=this.getAxisMotionValue(C).get()||0;if(pr.test(g)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[C];m&&(g=Ct(m)*(parseFloat(g)/100))}}this.originPoint[C]=g}),y&&pe.update(()=>y(c,d),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(p&&this.currentDirection===null){this.currentDirection=_j(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Dt(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 ex(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:sx(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&pe.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ia(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=dj(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=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;r&&Eo(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=fj(o.layoutBox,r):this.constraints=!1,this.elastic=gj(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Dt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=mj(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Eo(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=wj(n,o.root,this.visualElement.getTransformPagePoint());let s=hj(o.layout.layoutBox,i);if(r){const a=r(yj(s));this.hasMutatedConstraints=!!a,a&&(s=rx(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Dt(c=>{if(!Ia(c,r,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Tp(t,n,0,r))}stopAnimation(){Dt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Dt(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Dt(r=>{const{drag:n}=this.getProps();if(!Ia(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-ye(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Eo(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Dt(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=pj({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Dt(s=>{if(!Ia(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ye(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;kj.set(this.visualElement,this);const t=this.visualElement.current,r=Er(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Eo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=_r(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Dt(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(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Rf,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ia(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _j(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Tj extends bn{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new Cj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}unmount(){this.removeGroupControls(),this.removeListeners()}}const Q0=e=>(t,r)=>{e&&pe.update(()=>e(t,r))};class Pj extends bn{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new ex(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Q0(t),onStart:Q0(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&pe.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ej(){const e=_.useContext(Us);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=_.useId();return _.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function $j(){return zj(_.useContext(Us))}function zj(e){return e===null?!0:e.isPresent}const fl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ti={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const r=Z0(e,t.target.x),n=Z0(e,t.target.y);return`${r}% ${n}%`}},Rj={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=pn.parse(e);if(o.length>5)return n;const i=pn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ye(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class Aj extends Gn.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;A3(Mj),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||pe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ap.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ax(e){const[t,r]=Ej(),n=_.useContext(cp);return Gn.createElement(Aj,{...e,layoutGroup:n,switchLayoutGroup:_.useContext(lb),isPresent:t,safeToRemove:r})}const Mj={borderRadius:{...Ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ti,borderTopRightRadius:Ti,borderBottomLeftRadius:Ti,borderBottomRightRadius:Ti,boxShadow:Rj},lx=["TopLeft","TopRight","BottomLeft","BottomRight"],jj=lx.length,J0=e=>typeof e=="string"?parseFloat(e):e,ey=e=>typeof e=="number"||B.test(e);function Dj(e,t,r,n,o,i){o?(e.opacity=ye(0,r.opacity!==void 0?r.opacity:1,Ij(n)),e.opacityExit=ye(t.opacity!==void 0?t.opacity:1,0,Fj(n))):i&&(e.opacity=ye(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Ms(e,t,n))}function ry(e,t){e.min=t.min,e.max=t.max}function Mt(e,t){ry(e.x,t.x),ry(e.y,t.y)}function ny(e,t,r,n,o){return e-=t,e=tu(e,1/r,n),o!==void 0&&(e=tu(e,1/o,n)),e}function Oj(e,t=0,r=1,n=.5,o,i=e,s=e){if(pr.test(t)&&(t=parseFloat(t),t=ye(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ye(i.min,i.max,n);e===i&&(a-=t),e.min=ny(e.min,t,r,a,o),e.max=ny(e.max,t,r,a,o)}function oy(e,t,[r,n,o],i,s){Oj(e,t[r],t[n],t[o],t.scale,i,s)}const Lj=["x","scaleX","originX"],Bj=["y","scaleY","originY"];function iy(e,t,r,n){oy(e.x,t,Lj,r?r.x:void 0,n?n.x:void 0),oy(e.y,t,Bj,r?r.y:void 0,n?n.y:void 0)}function sy(e){return e.translate===0&&e.scale===1}function cx(e){return sy(e.x)&&sy(e.y)}function Vj(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function dx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ay(e){return Ct(e.x)/Ct(e.y)}class Nj{constructor(){this.members=[]}add(t){Pp(this.members,t),t.scheduleRender()}remove(t){if(Ep(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ly(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}const Wj=(e,t)=>e.depth-t.depth;class Uj{constructor(){this.children=[],this.isDirty=!1}add(t){Pp(this.children,t),this.isDirty=!0}remove(t){Ep(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Wj),this.isDirty=!1,this.children.forEach(t)}}function Hj(e,t){const r=Hn.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Ir(n),e(i-t))};return pe.read(n,!0),()=>Ir(n)}function Gj(e){window.MotionDebug&&window.MotionDebug.record(e)}function Kj(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Yj(e,t,r){const n=ht(e)?e:Jo(e);return n.start(Tp("",n,t,r)),n.animation}const uy=["","X","Y","Z"],Xj={visibility:"hidden"},cy=1e3;let qj=0;const $n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=qj++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$n.totalNodes=$n.resolvedTargetDeltas=$n.recalculatedProjection=0,this.nodes.forEach(Jj),this.nodes.forEach(oD),this.nodes.forEach(iD),this.nodes.forEach(eD),Gj($n)},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=Hj(f,250),fl.hasAnimatedSinceResize&&(fl.hasAnimatedSinceResize=!1,this.nodes.forEach(fy))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||cD,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!dx(this.targetLayout,y)||p,m=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const b={..._p(S,"layout"),onPlay:C,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||fy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,Ir(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(sD),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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(tD),this.sharedNodes.forEach(aD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=b/1e3;hy(d.x,s.x,P),hy(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lD(this.relativeTarget,this.relativeTargetOrigin,f,P),m&&Vj(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ke()),Mt(m,this.relativeTarget)),S&&(this.animationValues=c,Dj(c,u,this.latestValues,P,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(Ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{fl.hasAnimatedSinceResize=!0,this.currentAnimation=Yj(0,cy,{...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(cy),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&&hx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const d=Ct(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ct(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Mt(a,l),Ro(a,c),rs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Nj),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}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(dy),this.root.sharedNodes.clear()}}}function Qj(e){e.updateLayout()}function Zj(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?Dt(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Ct(f);f.min=n[d].min,f.max=f.min+p}):hx(i,r.layoutBox,n)&&Dt(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Ct(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=zo();rs(a,n,r.layoutBox);const l=zo();s?rs(l,e.applyTransform(o,!0),r.measuredBox):rs(l,n,r.layoutBox);const u=!cx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=ke();ns(y,r.layoutBox,f.layoutBox);const S=ke();ns(S,n,p.layoutBox),dx(y,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Jj(e){$n.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 eD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tD(e){e.clearSnapshot()}function dy(e){e.clearMeasurements()}function rD(e){e.isLayoutDirty=!1}function nD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oD(e){e.resolveTargetDelta()}function iD(e){e.calcProjection()}function sD(e){e.resetRotation()}function aD(e){e.removeLeadSnapshot()}function hy(e,t,r){e.translate=ye(t.translate,0,r),e.scale=ye(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function py(e,t,r,n){e.min=ye(t.min,r.min,n),e.max=ye(t.max,r.max,n)}function lD(e,t,r,n){py(e.x,t.x,r.x,n),py(e.y,t.y,r.y,n)}function uD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cD={duration:.45,ease:[.4,0,.1,1]},my=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gy=my("applewebkit/")&&!my("chrome/")?Math.round:$e;function yy(e){e.min=gy(e.min),e.max=gy(e.max)}function dD(e){yy(e.x),yy(e.y)}function hx(e,t,r){return e==="position"||e==="preserve-aspect"&&!zf(ay(t),ay(r),.2)}const fD=fx({attachResizeListener:(e,t)=>_r(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cd={current:void 0},px=fx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cd.current){const e=new fD({});e.mount(window),e.setOptions({layoutScroll:!0}),cd.current=e}return cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hD={pan:{Feature:Pj},drag:{Feature:Tj,ProjectionNode:px,MeasureLayout:ax}},pD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function mD(e){const t=pD.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function jf(e,t,r=1){const[n,o]=mD(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return qb(s)?parseFloat(s):s}else return Yl(o)?jf(o,t,r+1):o}function gD(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Yl(i))return;const s=jf(i,n);s&&o.set(s)});for(const o in t){const i=t[o];if(!Yl(i))continue;const s=jf(i,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const yD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),mx=e=>yD.has(e),vD=e=>Object.keys(e).some(mx),vy=e=>e===li||e===B,Sy=(e,t)=>parseFloat(e.split(", ")[t]),by=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Sy(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?Sy(i[1],e):0}},SD=new Set(["x","y","z"]),bD=Hs.filter(e=>!SD.has(e));function xD(e){const t=[];return bD.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ei={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:by(4,13),y:by(5,14)};ei.translateX=ei.x;ei.translateY=ei.y;const wD=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{a[u]=ei[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=ei[u](l,i)}),e},kD=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(mx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=_i(c);const f=t[l];let p;if(ql(f)){const y=f.length,S=f[0]===null?1:0;c=f[S],d=_i(c);for(let C=S;C=0?window.pageYOffset:null,u=wD(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Nu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function CD(e,t,r,n){return vD(t)?kD(e,t,r,n):{target:t,transitionEnd:n}}const _D=(e,t,r,n)=>{const o=gD(e,t,n);return t=o.target,n=o.transitionEnd,CD(e,t,r,n)},Df={current:null},gx={current:!1};function TD(){if(gx.current=!0,!!Nu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Df.current=e.matches;e.addListener(t),t()}else Df.current=!1}function PD(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],s=r[o];if(ht(i))e.addValue(o,i),eu(n)&&n.add(o);else if(ht(s))e.addValue(o,Jo(i,{owner:e})),eu(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,Jo(a!==void 0?a:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const xy=new WeakMap,yx=Object.keys(As),ED=yx.length,wy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$D=up.length;class zD{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>pe.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Uu(r),this.isVariantNode=ab(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];a[d]!==void 0&&ht(f)&&(f.set(a[d],!1),eu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,xy.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((r,n)=>this.bindToMotionValue(n,r)),gx.current||TD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Df.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xy.delete(this.current),this.projection&&this.projection.unmount(),Ir(this.notifyUpdate),Ir(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=no.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&pe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jo(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return 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)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=vp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new $p),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class vx extends zD{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},o){const i=HM(n,t||{},this);if(o){WM(this,n,i);const s=_D(this,n,i,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function RD(e){return window.getComputedStyle(e)}class AD extends vx{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(no.has(r)){const n=Cp(r);return n&&n.default||0}else{const n=RD(t),o=(db(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ix(t,r)}build(t,r,n,o){hp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return yp(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){gb(t,r,n,o)}}class MD extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(no.has(r)){const n=Cp(r);return n&&n.default||0}return r=yb.has(r)?r:sp(r),t.getAttribute(r)}measureInstanceViewportBox(){return ke()}scrapeMotionValuesFromProps(t,r){return Sb(t,r)}build(t,r,n,o){mp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){vb(t,r,n,o)}mount(t){this.isSVGTag=gp(t.tagName),super.mount(t)}}const jD=(e,t)=>dp(e)?new MD(t,{enableHardwareAcceleration:!1}):new AD(t,{enableHardwareAcceleration:!0}),DD={layout:{ProjectionNode:px,MeasureLayout:ax}},ID={...sj,...b4,...hD,...DD},FD=z3((e,t)=>a4(e,t,ID,jD));function Sx(){const e=_.useRef(!1);return ip(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function OD(){const e=Sx(),[t,r]=_.useState(0),n=_.useCallback(()=>{e.current&&r(t+1)},[t]);return[_.useCallback(()=>pe.postRender(n),[n]),t]}class LD extends _.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function BD({children:e,isPresent:t}){const r=_.useId(),n=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${i}px !important; - height: ${s}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(u)}},[t]),_.createElement(LD,{isPresent:t,childRef:n,sizeRef:o},_.cloneElement(e,{ref:n}))}const dd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=bb(VD),l=_.useId(),u=_.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;n&&n()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[r]);return _.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[r]),_.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=_.createElement(BD,{isPresent:r},e)),_.createElement(Us.Provider,{value:u},e)};function VD(){return new Map}function ND(e){return _.useEffect(()=>()=>e(),[])}const zn=e=>e.key||"";function WD(e,t){e.forEach(r=>{const n=zn(r);t.set(n,r)})}function UD(e){const t=[];return _.Children.forEach(e,r=>{_.isValidElement(r)&&t.push(r)}),t}const HD=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useContext(cp).forceRender||OD()[0],l=Sx(),u=UD(e);let c=u;const d=_.useRef(new Map).current,f=_.useRef(c),p=_.useRef(new Map).current,y=_.useRef(!0);if(ip(()=>{y.current=!1,WD(u,p),f.current=c}),ND(()=>{y.current=!0,p.clear(),d.clear()}),y.current)return _.createElement(_.Fragment,null,c.map(h=>_.createElement(dd,{key:zn(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const S=f.current.map(zn),C=u.map(zn),g=S.length;for(let h=0;h{if(C.indexOf(m)!==-1)return;const b=p.get(m);if(!b)return;const P=S.indexOf(m);let $=h;if(!$){const E=()=>{d.delete(m);const z=Array.from(p.keys()).filter(D=>!C.includes(D));if(z.forEach(D=>p.delete(D)),f.current=u.filter(D=>{const I=zn(D);return I===m||z.includes(I)}),!d.size){if(l.current===!1)return;a(),n&&n()}};$=_.createElement(dd,{key:zn(b),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},b),d.set(m,$)}c.splice(P,0,$)}),c=c.map(h=>{const m=h.key;return d.has(m)?h:_.createElement(dd,{key:zn(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),_.createElement(_.Fragment,null,d.size?c:c.map(h=>_.cloneElement(h)))};var GD={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*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]}}},bx=_.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=GD,toastSpacing:c="0.5rem"}=e,[d,f]=_.useState(a),p=$j();g0(()=>{p||n==null||n()},[p]),g0(()=>{f(a)},[a]);const y=()=>f(null),S=()=>f(a),C=()=>{p&&o()};_.useEffect(()=>{p&&i&&o()},[p,i,o]),v3(C,d);const g=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>m3(s),[s]);return k.jsx(FD.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:s},style:h,children:k.jsx(te.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:en(r,{id:t,onClose:C})})})});bx.displayName="ToastComponent";var ky={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.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"}),k.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"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Xs=be((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=zt("chakra-icon",a),d=ai("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},y=n??ky.viewBox;if(r&&typeof r!="string")return k.jsx(te.svg,{as:r,...p,...u});const S=s??ky.path;return k.jsx(te.svg,{verticalAlign:"middle",viewBox:y,...p,...u,children:S})});Xs.displayName="Icon";function KD(e){return k.jsx(Xs,{viewBox:"0 0 24 24",...e,children:k.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 YD(e){return k.jsx(Xs,{viewBox:"0 0 24 24",...e,children:k.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 Cy(e){return k.jsx(Xs,{viewBox:"0 0 24 24",...e,children:k.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 XD=M2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),qs=be((e,t)=>{const r=ai("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=ro(e),u=zt("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${XD} ${i} linear infinite`,...r};return k.jsx(te.div,{ref:t,__css:c,className:u,...l,children:n&&k.jsx(te.span,{srOnly:!0,children:n})})});qs.displayName="Spinner";var[qD,zp]=to({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[QD,Rp]=to({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),xx={info:{icon:YD,colorScheme:"blue"},warning:{icon:Cy,colorScheme:"orange"},success:{icon:KD,colorScheme:"green"},error:{icon:Cy,colorScheme:"red"},loading:{icon:qs,colorScheme:"blue"}};function ZD(e){return xx[e].colorScheme}function JD(e){return xx[e].icon}var wx=be(function(t,r){const n=Rp(),{status:o}=zp(),i={display:"inline",...n.description};return k.jsx(te.div,{ref:r,"data-status":o,...t,className:zt("chakra-alert__desc",t.className),__css:i})});wx.displayName="AlertDescription";function kx(e){const{status:t}=zp(),r=JD(t),n=Rp(),o=t==="loading"?n.spinner:n.icon;return k.jsx(te.span,{display:"inherit","data-status":t,...e,className:zt("chakra-alert__icon",e.className),__css:o,children:e.children||k.jsx(r,{h:"100%",w:"100%"})})}kx.displayName="AlertIcon";var Cx=be(function(t,r){const n=Rp(),{status:o}=zp();return k.jsx(te.div,{ref:r,"data-status":o,...t,className:zt("chakra-alert__title",t.className),__css:n.title})});Cx.displayName="AlertTitle";var _x=be(function(t,r){var n;const{status:o="info",addRole:i=!0,...s}=ro(t),a=(n=t.colorScheme)!=null?n:ZD(o),l=ZS("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(qD,{value:{status:o},children:k.jsx(QD,{value:l,children:k.jsx(te.div,{"data-status":o,role:i?"alert":void 0,ref:r,...s,className:zt("chakra-alert",t.className),__css:u})})})});_x.displayName="Alert";function eI(e){return k.jsx(Xs,{focusable:"false","aria-hidden":!0,...e,children:k.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 Tx=be(function(t,r){const n=ai("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=ro(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(te.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||k.jsx(eI,{width:"1em",height:"1em"})})});Tx.displayName="CloseButton";var tI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},os=rI(tI);function rI(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=nI(o,i),{position:a,id:l}=s;return n(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&n(s=>{const a={...s},{position:l,index:u}=m0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:iI(i)}),a})},closeAll:({positions:o}={})=>{n(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=>{n(i=>{const s=tb(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!m0(os.getState(),o).position}}var _y=0;function nI(e,t={}){var r,n;_y+=1;const o=(r=t.id)!=null?r:_y,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>os.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var oI=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return k.jsxs(_x,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[k.jsx(kx,{children:u}),k.jsxs(te.div,{flex:"1",maxWidth:"100%",children:[o&&k.jsx(Cx,{id:c==null?void 0:c.title,children:o}),a&&k.jsx(wx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&k.jsx(Tx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function iI(e={}){const{render:t,toastComponent:r=oI}=e;return o=>typeof t=="function"?t({...o,...e}):k.jsx(r,{...o,...e})}var[sI,iO]=to({name:"ToastOptionsContext",strict:!1}),aI=e=>{const t=_.useSyncExternalStore(os.subscribe,os.getState,os.getState),{motionVariants:r,component:n=bx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:g3(a),children:k.jsx(HD,{initial:!1,children:l.map(u=>k.jsx(n,{motionVariants:r,...u},u.id))})},a)});return k.jsx(Iu,{...o,children:s})},lI=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return k.jsxs(h3,{theme:n,...i,children:[k.jsx(sI,{value:o==null?void 0:o.defaultOptions,children:r}),k.jsx(aI,{...o})]})},uI=lI(HS);function cI(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 dI(...e){return t=>{e.forEach(r=>{cI(r,t)})}}function fI(...e){return _.useMemo(()=>dI(...e),e)}var If=be(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return k.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});If.displayName="NativeImage";function hI(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=_.useState("pending");_.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=_.useRef(),f=_.useCallback(()=>{if(!r)return;p();const y=new Image;y.src=r,s&&(y.crossOrigin=s),n&&(y.srcset=n),a&&(y.sizes=a),t&&(y.loading=t),y.onload=S=>{p(),c("loaded"),o==null||o(S)},y.onerror=S=>{p(),c("failed"),i==null||i(S)},d.current=y},[r,s,n,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ts(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var pI=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function mI(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Px=be(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...y}=t,S=n!==void 0||o!==void 0,C=u!=null||c||!S,g=hI({...t,crossOrigin:d,ignoreFallback:C}),h=pI(g,f),m={ref:r,objectFit:l,objectPosition:a,...C?y:mI(y,["onError","onLoad"])};return h?o||k.jsx(te.img,{as:If,className:"chakra-image__placeholder",src:n,...m}):k.jsx(te.img,{as:If,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...m})});Px.displayName="Image";var[sO,gI]=to({strict:!1,name:"ButtonGroupContext"});function yI(e){const[t,r]=_.useState(!e);return{ref:_.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Ff(e){const{children:t,className:r,...n}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=zt("chakra-button__icon",r);return k.jsx(te.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Ff.displayName="ButtonIcon";function Of(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=k.jsx(qs,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=zt("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return k.jsx(te.div,{className:l,...a,__css:c,children:o})}Of.displayName="ButtonSpinner";var cn=be((e,t)=>{const r=gI(),n=ai("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:y="start",className:S,as:C,...g}=ro(e),h=_.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:m,type:b}=yI(C),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return k.jsxs(te.button,{ref:fI(t,m),as:C,type:f??b,"data-active":kg(s),"data-loading":kg(i),__css:h,className:zt("chakra-button",S),...g,disabled:o||i,children:[i&&y==="start"&&k.jsx(Of,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||k.jsx(te.span,{opacity:0,children:k.jsx(Ty,{...P})}):k.jsx(Ty,{...P}),i&&y==="end"&&k.jsx(Of,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});cn.displayName="Button";function Ty(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return k.jsxs(k.Fragment,{children:[t&&k.jsx(Ff,{marginEnd:o,children:t}),n,r&&k.jsx(Ff,{marginStart:o,children:r})]})}var hl=be(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...y}=t,S={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return k.jsx(te.div,{ref:r,__css:S,...y})});hl.displayName="Grid";var W=be(function(t,r){const n=ai("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=ro(t),u=ZA({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return k.jsx(te.p,{ref:r,className:zt("chakra-text",t.className),...u,...l,__css:n})});W.displayName="Text";var Ap=te("div");Ap.displayName="Box";var Ex=be(function(t,r){const{size:n,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Ap,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});Ex.displayName="Square";var vI=be(function(t,r){const{size:n,...o}=t;return k.jsx(Ex,{size:n,ref:r,borderRadius:"9999px",...o})});vI.displayName="Circle";var $x=be(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:l,borderColor:u,...c}=ai("Divider",t),{className:d,orientation:f="horizontal",__css:p,...y}=ro(t),S={vertical:{borderLeftWidth:n||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return k.jsx(te.hr,{ref:r,"aria-orientation":f,...y,__css:{...c,border:"0",borderColor:u,borderStyle:l,...S[f],...p},className:zt("chakra-divider",d)})});$x.displayName="Divider";var vt=be(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:u};return k.jsx(te.div,{ref:r,__css:d,...c})});vt.displayName="Flex";var[SI,ui]=to({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),zx=be((e,t)=>{const r=ZS("Table",e),{className:n,layout:o,...i}=ro(e);return k.jsx(SI,{value:r,children:k.jsx(te.table,{ref:t,__css:{tableLayout:o,...r.table},className:zt("chakra-table",n),...i})})});zx.displayName="Table";var bI=be((e,t)=>{const r=ui();return k.jsx(te.thead,{...e,ref:t,__css:r.thead})}),Py=be((e,t)=>{const r=ui();return k.jsx(te.tr,{...e,ref:t,__css:r.tr})}),Rx=be((e,t)=>{const{placement:r="bottom",...n}=e,o=ui();return k.jsx(te.caption,{...n,ref:t,__css:{...o.caption,captionSide:r}})});Rx.displayName="TableCaption";var xI=be((e,t)=>{var r;const{overflow:n,overflowX:o,className:i,...s}=e;return k.jsx(te.div,{ref:t,className:zt("chakra-table__container",i),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??o)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),wI=be((e,t)=>{const r=ui();return k.jsx(te.tbody,{...e,ref:t,__css:r.tbody})}),fd=be(({isNumeric:e,...t},r)=>{const n=ui();return k.jsx(te.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),hd=be(({isNumeric:e,...t},r)=>{const n=ui();return k.jsx(te.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),Ax={exports:{}},Mx={};/** - * @license React - * use-sync-external-store-with-selector.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 Qs=_;function kI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CI=typeof Object.is=="function"?Object.is:kI,_I=Qs.useSyncExternalStore,TI=Qs.useRef,PI=Qs.useEffect,EI=Qs.useMemo,$I=Qs.useDebugValue;Mx.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=TI(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=EI(function(){function l(p){if(!u){if(u=!0,c=p,p=n(p),o!==void 0&&s.hasValue){var y=s.value;if(o(y,p))return d=y}return d=p}if(y=d,CI(c,p))return y;var S=n(p);return o!==void 0&&o(y,S)?y:(c=p,d=S)}var u=!1,c,d,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,n,o]);var a=_I(e,i[0],i[1]);return PI(function(){s.hasValue=!0,s.value=a},[a]),$I(a),a};Ax.exports=Mx;var zI=Ax.exports,St="default"in pl?Gn:pl,Ey=Symbol.for("react-redux-context"),$y=typeof globalThis<"u"?globalThis:{};function RI(){if(!St.createContext)return{};const e=$y[Ey]??($y[Ey]=new Map);let t=e.get(St.createContext);return t||(t=St.createContext(null),e.set(St.createContext,t)),t}var mn=RI(),AI=()=>{throw new Error("uSES not initialized!")};function Mp(e=mn){return function(){return St.useContext(e)}}var jx=Mp(),Dx=AI,MI=e=>{Dx=e},jI=(e,t)=>e===t;function DI(e=mn){const t=e===mn?jx:Mp(e),r=(n,o={})=>{const{equalityFn:i=jI,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();St.useRef(!0);const f=St.useCallback({[n.name](y){return n(y)}}[n.name],[n,c,s.stabilityCheck]),p=Dx(l.addNestedSub,a.getState,u||a.getState,f,i);return St.useDebugValue(p),p};return Object.assign(r,{withTypes:()=>r}),r}var Ix=DI();function II(e){e()}function FI(){let e=null,t=null;return{clear(){e=null,t=null},notify(){II(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var zy={notify(){},get:()=>[]};function OI(e,t){let r,n=zy,o=0,i=!1;function s(S){c();const C=n.subscribe(S);let g=!1;return()=>{g||(g=!0,C(),d())}}function a(){n.notify()}function l(){y.onStateChange&&y.onStateChange()}function u(){return i}function c(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=FI())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=zy)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const y={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>n};return y}var LI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BI=LI?St.useLayoutEffect:St.useEffect;function VI({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const s=St.useMemo(()=>{const u=OI(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,n,o,i]),a=St.useMemo(()=>e.getState(),[e]);BI(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||mn;return St.createElement(l.Provider,{value:s},r)}var NI=VI;function Fx(e=mn){const t=e===mn?jx:Mp(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var WI=Fx();function UI(e=mn){const t=e===mn?WI:Fx(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var HI=UI();MI(zI.useSyncExternalStoreWithSelector);const GI=IA({styles:{global:{body:{bg:"#242424",color:"white"}}}});function Be(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var KI=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ry=KI,pd=()=>Math.random().toString(36).substring(7).split("").join("."),YI={INIT:`@@redux/INIT${pd()}`,REPLACE:`@@redux/REPLACE${pd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pd()}`},ru=YI;function jp(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ox(e,t,r){if(typeof e!="function")throw new Error(Be(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Be(1));return r(Ox)(e,t)}let n=e,o=t,i=new Map,s=i,a=0,l=!1;function u(){s===i&&(s=new Map,i.forEach((C,g)=>{s.set(g,C)}))}function c(){if(l)throw new Error(Be(3));return o}function d(C){if(typeof C!="function")throw new Error(Be(4));if(l)throw new Error(Be(5));let g=!0;u();const h=a++;return s.set(h,C),function(){if(g){if(l)throw new Error(Be(6));g=!1,u(),s.delete(h),i=null}}}function f(C){if(!jp(C))throw new Error(Be(7));if(typeof C.type>"u")throw new Error(Be(8));if(typeof C.type!="string")throw new Error(Be(17));if(l)throw new Error(Be(9));try{l=!0,o=n(o,C)}finally{l=!1}return(i=s).forEach(h=>{h()}),C}function p(C){if(typeof C!="function")throw new Error(Be(10));n=C,f({type:ru.REPLACE})}function y(){const C=d;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Be(11));function h(){const b=g;b.next&&b.next(c())}return h(),{unsubscribe:C(h)}},[Ry](){return this}}}return f({type:ru.INIT}),{dispatch:f,subscribe:d,getState:c,replaceReducer:p,[Ry]:y}}function XI(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:ru.INIT})>"u")throw new Error(Be(12));if(typeof r(void 0,{type:ru.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function qI(e){const t=Object.keys(e),r={};for(let i=0;i"u")throw a&&a.type,new Error(Be(14));u[d]=y,l=l||y!==p}return l=l||n.length!==Object.keys(s).length,l?u:s}}function nu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function QI(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(Be(15))};const s={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},a=e.map(l=>l(s));return i=nu(...a)(o.dispatch),{...o,dispatch:i}}}function ZI(e){return jp(e)&&"type"in e&&typeof e.type=="string"}var Lx=Symbol.for("immer-nothing"),Ay=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state");function Xt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ti=Object.getPrototypeOf;function gn(e){return!!e&&!!e[_t]}function Fr(e){var t;return e?Bx(e)||Array.isArray(e)||!!e[Ay]||!!((t=e.constructor)!=null&&t[Ay])||Yu(e)||Xu(e):!1}var JI=Object.prototype.constructor.toString();function Bx(e){if(!e||typeof e!="object")return!1;const t=ti(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===JI}function js(e,t){Ku(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function Ku(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Yu(e)?2:Xu(e)?3:0}function Lf(e,t){return Ku(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vx(e,t,r){const n=Ku(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function eF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Yu(e){return e instanceof Map}function Xu(e){return e instanceof Set}function Rn(e){return e.copy_||e.base_}function Bf(e,t){if(Yu(e))return new Map(e);if(Xu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Bx(e))return ti(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[_t];let n=Reflect.ownKeys(r);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=tF),Object.freeze(e),t&&js(e,(r,n)=>Dp(n,!0))),e}function tF(){Xt(2)}function qu(e){return Object.isFrozen(e)}var rF={};function Zn(e){const t=rF[e];return t||Xt(0,e),t}var Ds;function Nx(){return Ds}function nF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function My(e,t){t&&(Zn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vf(e){Nf(e),e.drafts_.forEach(oF),e.drafts_=null}function Nf(e){e===Ds&&(Ds=e.parent_)}function jy(e){return Ds=nF(Ds,e)}function oF(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Dy(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Vf(t),Xt(4)),Fr(e)&&(e=ou(t,e),t.parent_||iu(t,e)),t.patches_&&Zn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ou(t,r,[]),Vf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Lx?e:void 0}function ou(e,t,r){if(qu(t))return t;const n=t[_t];if(!n)return js(t,(o,i)=>Iy(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return iu(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),js(i,(a,l)=>Iy(e,n,o,a,l,r,s)),iu(e,o,!1),r&&e.patches_&&Zn("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Iy(e,t,r,n,o,i,s){if(gn(o)){const a=i&&t&&t.type_!==3&&!Lf(t.assigned_,n)?i.concat(n):void 0,l=ou(e,o,a);if(Vx(r,n,l),gn(l))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(Fr(o)&&!qu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ou(e,o),(!t||!t.scope_.parent_)&&iu(e,o)}}function iu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Dp(t,r)}function iF(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Nx(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Ip;r&&(o=[n],i=Is);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return n.draft_=a,n.revoke_=s,a}var Ip={get(e,t){if(t===_t)return e;const r=Rn(e);if(!Lf(r,t))return sF(e,r,t);const n=r[t];return e.finalized_||!Fr(n)?n:n===md(e.base_,t)?(gd(e),e.copy_[t]=Uf(n,e)):n},has(e,t){return t in Rn(e)},ownKeys(e){return Reflect.ownKeys(Rn(e))},set(e,t,r){const n=Wx(Rn(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=md(Rn(e),t),i=o==null?void 0:o[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(eF(r,o)&&(r!==void 0||Lf(e.base_,t)))return!0;gd(e),Wf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return md(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,gd(e),Wf(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Rn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Xt(11)},getPrototypeOf(e){return ti(e.base_)},setPrototypeOf(){Xt(12)}},Is={};js(Ip,(e,t)=>{Is[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Is.deleteProperty=function(e,t){return Is.set.call(this,e,t,void 0)};Is.set=function(e,t,r){return Ip.set.call(this,e[0],t,r,e[0])};function md(e,t){const r=e[_t];return(r?Rn(r):e)[t]}function sF(e,t,r){var o;const n=Wx(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Wx(e,t){if(!(t in e))return;let r=ti(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ti(r)}}function Wf(e){e.modified_||(e.modified_=!0,e.parent_&&Wf(e.parent_))}function gd(e){e.copy_||(e.copy_=Bf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var aF=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const s=this;return function(l=i,...u){return s.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&Xt(6),n!==void 0&&typeof n!="function"&&Xt(7);let o;if(Fr(t)){const i=jy(this),s=Uf(t,void 0);let a=!0;try{o=r(s),a=!1}finally{a?Vf(i):Nf(i)}return My(i,n),Dy(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===Lx&&(o=void 0),this.autoFreeze_&&Dp(o,!0),n){const i=[],s=[];Zn("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else Xt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,o;return[this.produce(t,r,(s,a)=>{n=s,o=a}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Fr(e)||Xt(8),gn(e)&&(e=Ux(e));const t=jy(this),r=Uf(e,void 0);return r[_t].isManual_=!0,Nf(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&&Xt(9);const{scope_:n}=r;return My(n,t),Dy(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=Zn("Patches").applyPatches_;return gn(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Uf(e,t){const r=Yu(e)?Zn("MapSet").proxyMap_(e,t):Xu(e)?Zn("MapSet").proxySet_(e,t):iF(e,t);return(t?t.scope_:Nx()).drafts_.push(r),r}function Ux(e){return gn(e)||Xt(10,e),Hx(e)}function Hx(e){if(!Fr(e)||qu(e))return e;const t=e[_t];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Bf(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Bf(e,!0);return js(r,(n,o)=>{Vx(r,n,Hx(o))}),t&&(t.finalized_=!1),r}var Tt=new aF,Gx=Tt.produce;Tt.produceWithPatches.bind(Tt);Tt.setAutoFreeze.bind(Tt);Tt.setUseStrictShallowCopy.bind(Tt);Tt.applyPatches.bind(Tt);Tt.createDraft.bind(Tt);Tt.finishDraft.bind(Tt);function lF(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function uF(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function cF(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Fy=e=>Array.isArray(e)?e:[e];function dF(e){const t=Array.isArray(e[0])?e[0]:e;return cF(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fF(e,t){const r=[],{length:n}=e;for(let o=0;o{r=Fa(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Kx(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),lF(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=Fp,argsMemoizeOptions:y=[],devModeChecks:S={}}=c,C=Fy(f),g=Fy(y),h=dF(o),m=d(function(){return i++,u.apply(null,arguments)},...C),b=p(function(){s++;const $=fF(h,arguments);return a=m.apply(null,$),a},...g);return Object.assign(b,{resultFunc:u,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var gF=Kx(Fp),yF=Object.assign((e,t=gF)=>{uF(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,a,l)=>(s[r[l]]=a,s),{}))},{withTypes:()=>yF});function Yx(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var vF=Yx(),SF=Yx,bF=(...e)=>{const t=Kx(...e),r=Object.assign((...n)=>{const o=t(...n),i=(s,...a)=>o(gn(s)?Ux(s):s,...a);return Object.assign(i,o),i},{withTypes:()=>r});return r};bF(Fp);var xF=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nu:nu.apply(null,arguments)};function ri(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(dt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ZI(n)&&n.type===e,r}var Xx=class Oi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Oi.prototype)}static get[Symbol.species](){return Oi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Oi(...t[0].concat(this)):new Oi(...t.concat(this))}};function Ly(e){return Fr(e)?Gx(e,()=>{}):e}function By(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(dt(10));const n=r.insert(t,e);return e.set(t,n),n}function wF(e){return typeof e=="boolean"}var kF=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new Xx;return r&&(wF(r)?s.push(vF):s.push(SF(r.extraArgument))),s},CF="RTK_autoBatch",qx=e=>t=>{setTimeout(t,e)},_F=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qx(10),TF=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?_F:e.type==="callback"?e.queueNotification:qx(e.timeout),u=()=>{s=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const d=()=>o&&c(),f=n.subscribe(d);return a.add(c),()=>{f(),a.delete(c)}},dispatch(c){var d;try{return o=!((d=c==null?void 0:c.meta)!=null&&d[CF]),i=!o,i&&(s||(s=!0,l(u))),n.dispatch(c)}finally{o=!0}}})},PF=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new Xx(e);return n&&o.push(TF(typeof n=="object"?n:void 0)),o},EF=!0;function $F(e){const t=kF(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(jp(r))a=qI(r);else throw new Error(dt(1));let l;typeof n=="function"?l=n(t):l=t();let u=nu;o&&(u=xF({trace:!EF,...typeof o=="object"&&o}));const c=QI(...l),d=PF(c);let f=typeof s=="function"?s(d):d();const p=u(...f);return Ox(a,i,p)}function Qx(e){const t={},r=[];let n;const o={addCase(i,s){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(dt(28));if(a in t)throw new Error(dt(29));return t[a]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function zF(e){return typeof e=="function"}function RF(e,t){let[r,n,o]=Qx(t),i;if(zF(e))i=()=>Ly(e());else{const a=Ly(e);i=()=>a}function s(a=i(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,d)=>{if(d)if(gn(c)){const p=d(c,l);return p===void 0?c:p}else{if(Fr(c))return Gx(c,f=>d(f,l));{const f=d(c,l);if(f===void 0){if(c===null)return c;throw new Error(dt(9))}return f}}return c},a)}return s.getInitialState=i,s}var AF="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",MF=(e=21)=>{let t="",r=e;for(;r--;)t+=AF[Math.random()*64|0];return t},jF=Symbol.for("rtk-slice-createasyncthunk");function DF(e,t){return`${e}/${t}`}function IF({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[jF];return function(o){const{name:i,reducerPath:s=i}=o;if(!i)throw new Error(dt(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(LF()):o.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,b){const P=typeof m=="string"?m:m.type;if(!P)throw new Error(dt(12));if(P in u.sliceCaseReducersByType)throw new Error(dt(13));return u.sliceCaseReducersByType[P]=b,c},addMatcher(m,b){return u.sliceMatchers.push({matcher:m,reducer:b}),c},exposeAction(m,b){return u.actionCreators[m]=b,c},exposeCaseReducer(m,b){return u.sliceCaseReducersByName[m]=b,c}};l.forEach(m=>{const b=a[m],P={reducerName:m,type:DF(i,m),createNotation:typeof o.reducers=="function"};VF(b)?WF(P,b,c,t):BF(P,b,c)});function d(){const[m={},b=[],P=void 0]=typeof o.extraReducers=="function"?Qx(o.extraReducers):[o.extraReducers],$={...m,...u.sliceCaseReducersByType};return RF(o.initialState,E=>{for(let z in $)E.addCase(z,$[z]);for(let z of u.sliceMatchers)E.addMatcher(z.matcher,z.reducer);for(let z of b)E.addMatcher(z.matcher,z.reducer);P&&E.addDefaultCase(P)})}const f=m=>m,p=new Map;let y;function S(m,b){return y||(y=d()),y(m,b)}function C(){return y||(y=d()),y.getInitialState()}function g(m,b=!1){function P(E){let z=E[m];return typeof z>"u"&&b&&(z=C()),z}function $(E=f){const z=By(p,b,{insert:()=>new WeakMap});return By(z,E,{insert:()=>{const D={};for(const[I,xe]of Object.entries(o.selectors??{}))D[I]=FF(xe,E,C,b);return D}})}return{reducerPath:m,getSelectors:$,get selectors(){return $(P)},selectSlice:P}}const h={name:i,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...g(s),injectInto(m,{reducerPath:b,...P}={}){const $=b??s;return m.inject({reducerPath:$,reducer:S},P),{...h,...g($,!0)}}};return h}}function FF(e,t,r,n){function o(i,...s){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return o.unwrapped=e,o}var OF=IF();function LF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function BF({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!NF(n))throw new Error(dt(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?ri(e,s):ri(e))}function VF(e){return e._reducerDefinitionType==="asyncThunk"}function NF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function WF({type:e,reducerName:t},r,n,o){if(!o)throw new Error(dt(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=r,d=o(e,i,c);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:s||Oa,pending:a||Oa,rejected:l||Oa,settled:u||Oa})}function Oa(){}var UF=(e,t)=>{if(typeof e!="function")throw new Error(dt(32))},Op="listenerMiddleware",HF=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=ri(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(dt(21));return UF(i),{predicate:o,type:t,effect:i}},GF=Object.assign(e=>{const{type:t,predicate:r,effect:n}=HF(e);return{id:MF(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(dt(22))}}},{withTypes:()=>GF}),KF=Object.assign(ri(`${Op}/add`),{withTypes:()=>KF});ri(`${Op}/removeAll`);var YF=Object.assign(ri(`${Op}/remove`),{withTypes:()=>YF});function dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Zx=OF({name:"main",initialState:{selectedContent:"layers"},reducers:{selectContent:(e,t)=>{e.selectedContent=t.payload}}}),{selectContent:XF}=Zx.actions,qF=Zx.reducer,QF=$F({reducer:{main:qF}}),ZF=()=>k.jsx(vt,{bgColor:"#242424",color:"white",justifyContent:"space-between",alignItems:"center",p:4,borderBottom:"1px solid #FFFFFF",children:k.jsxs(vt,{alignItems:"center",children:[k.jsx(Px,{src:"/EIC-Monitor/logo.png",alt:"Logo",mr:2,height:"50px"}),k.jsx(W,{fontSize:"3xl",children:"EIC Monitor"})]})}),JF=()=>{const e=HI(),t=Ix(n=>n.main.selectedContent),r=n=>{e(XF(n))};return k.jsx(vt,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:k.jsxs(vt,{justifyContent:"space-around",width:"lg",maxWidth:"100%",children:[k.jsx(cn,{colorScheme:"blue",variant:t==="scenarios"?"solid":"outline",onClick:()=>r("scenarios"),children:"Scenarios"}),k.jsx(cn,{colorScheme:"blue",variant:t==="layers"?"solid":"outline",onClick:()=>r("layers"),children:"Layers"}),k.jsx(cn,{colorScheme:"blue",variant:t==="worldview"?"solid":"outline",onClick:()=>r("worldview"),children:"Worldview"})]})})},Vy={1:["MODIS_Terra_CorrectedReflectance_TrueColor"],2:["GOES-East_ABI_GeoColor","GOES-West_ABI_GeoColor","Himawari_AHI_Band3_Red_Visible_1km"],3:["VIIRS_SNPP_CorrectedReflectance_TrueColor"],4:["VIIRS_SNPP_DayNightBand_At_Sensor_Radiance"],5:["IMERG_Precipitation_Rate"],6:["GHRSST_L4_MUR_Sea_Surface_Temperature"],7:["MODIS_Aqua_Land_Surface_Temp_Day","MODIS_Aqua_CorrectedReflectance_TrueColor"],8:["AMSRU2_Sea_Ice_Concentration_12km"],9:["AMSRU2_Sea_Ice_Concentration_12km"],10:["VIIRS_SNPP_CorrectedReflectance_TrueColor"],11:["OMI_Nitrogen_Dioxide_Tropo_Column","VIIRS_NOAA20_CorrectedReflectance_TrueColor"],12:["AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Night","AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Day"],13:["VIIRS_SNPP_AOT_Dark_Target_Land_Ocean","VIIRS_SNPP_AOT_Deep_Blue_Best_Estimate","VIIRS_SNPP_CorrectedReflectance_TrueColor"]},eO=()=>{const[e,t]=_.useState([]),r=async()=>{const o="https://m80gyw03f7.execute-api.us-east-1.amazonaws.com/dev/all-scenarios";try{const s=await(await fetch(o)).json();t(s.items)}catch(i){console.log(i)}};_.useEffect(()=>{r()},[]);const n=()=>{if(e.length){const i=(()=>{const s=[],a=e.reduce((l,u)=>(l[u.item_id]=u.resolution_date,l),{});return Object.keys(Vy).forEach(l=>{const u=a[l]||"No valid date found",c=Vy[l];s.push({id:l,layers:c,date:u})}),s.sort((l,u)=>parseInt(l.id)-parseInt(u.id)),s})();return k.jsx(xI,{children:k.jsxs(zx,{children:[k.jsx(Rx,{color:"whiteAlpha.900",fontSize:"md",children:"Resolution date represents the most recent date that each layer in a scenario shares available imagery"}),k.jsx(bI,{children:k.jsxs(Py,{children:[k.jsx(hd,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"Scenario"}),k.jsx(hd,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"Layers"}),k.jsx(hd,{color:"whiteAlpha.900",fontSize:"lg",children:"Resolution Date"})]})}),k.jsx(wI,{children:i.map(s=>k.jsxs(Py,{children:[k.jsx(fd,{textAlign:"center",children:s.id}),k.jsx(fd,{children:s.layers.map((a,l)=>k.jsx(W,{as:"div",textAlign:"center",children:a},l))}),k.jsx(fd,{textAlign:"center",children:s.date})]},s.id))})]})})}else return k.jsx(vt,{justifyContent:"center",alignItems:"center",children:k.jsx(qs,{size:"xl",color:"red.500"})})};return k.jsxs(vt,{width:"full",justifyContent:"start",alignItems:"center",flexDirection:"column",children:[k.jsxs(vt,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:[k.jsx(W,{as:"h1",fontSize:"3xl",children:"Scenarios"}),k.jsx(cn,{colorScheme:"blue",variant:"solid",ml:"4",onClick:()=>r(),children:"Refresh Scenarios"})]}),n()]})},Ny=()=>{const[e,t]=_.useState([]),r=async()=>{const o="https://m80gyw03f7.execute-api.us-east-1.amazonaws.com/dev/all-layers";try{const s=await(await fetch(o)).json();t(s.Items)}catch(i){console.log(i.message)}},n=()=>e.length?e.map(o=>{const i=o.item_id,{threshold:s,period:a}=o.config,l=(o==null?void 0:o.successful_dates)||[],u=o.last_request,c=o.last_request.url,d=o.last_request.black_pixels,f=o.last_request.difference,p=d>s?"red":"green",y=o.last_successful_request;return k.jsxs(vt,{direction:"column",my:"2",p:"2",boxShadow:"md",width:"80%",borderRadius:"md",children:[k.jsx($x,{mb:"2"}),k.jsx(W,{fontSize:"2xl",fontWeight:"bold",mb:"2",children:i}),k.jsxs(hl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,children:[k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Period:"}),k.jsx(W,{fontSize:"md",children:a.toUpperCase()}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Threshold:"}),k.jsx(W,{fontSize:"md",children:s})]}),k.jsx(W,{fontSize:"lg",fontWeight:"bold",mt:"4",mb:"2",children:"LAST REQUEST"}),k.jsxs(hl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,alignItems:"center",children:[k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Time of Search:"}),k.jsx(W,{fontSize:"md",children:u.time_of_search}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Imagery Date:"}),k.jsx(W,{fontSize:"md",children:u.date}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Status:"}),k.jsx(W,{fontSize:"md",children:u.status.toUpperCase()}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Failure Reason:"}),k.jsx(W,{fontSize:"md",children:u.failure_reason.toUpperCase()}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Black Pixels:"}),k.jsx(W,{fontSize:"md",children:d}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Difference:"}),k.jsx(W,{fontSize:"md",fontWeight:"bold",color:p,children:f}),k.jsx(cn,{colorScheme:"blue",size:"sm",mb:"2",onClick:()=>window.open(c,"_blank"),children:"View Imagery"})]}),k.jsx(W,{fontSize:"lg",fontWeight:"bold",mt:"4",mb:"2",children:"LAST SUCCESSFUL REQUEST"}),k.jsxs(hl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,alignItems:"center",children:[k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Time of Search:"}),k.jsx(W,{fontSize:"md",children:y.time_of_search}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Imagery Date:"}),k.jsx(W,{fontSize:"md",children:y.date}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Status:"}),k.jsx(W,{fontSize:"md",children:y.status.toUpperCase()}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Failure Reason:"}),k.jsx(W,{fontSize:"md",children:y.failure_reason.toUpperCase()}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Black Pixels:"}),k.jsx(W,{fontSize:"md",children:y.black_pixels}),k.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Difference:"}),k.jsx(W,{fontSize:"md",fontWeight:"bold",color:"green",children:y.difference}),k.jsx(cn,{colorScheme:"blue",size:"sm",mb:"2",onClick:()=>window.open(y.url,"_blank"),children:"View Imagery"})]}),k.jsx(W,{fontSize:"lg",fontWeight:"semibold",mt:"4",children:"Successful Dates:"}),k.jsx(Ap,{pl:"150px",children:l.map((S,C)=>k.jsx(W,{fontSize:"md",children:S},C))})]},i)}):k.jsx(vt,{justifyContent:"center",alignItems:"center",children:k.jsx(qs,{size:"xl",color:"red.500"})});return _.useEffect(()=>{r()},[]),k.jsxs(vt,{width:"full",justifyContent:"start",alignItems:"center",flexDirection:"column",children:[k.jsxs(vt,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:[k.jsx(W,{as:"h1",fontSize:"3xl",children:"Layers"}),k.jsx(cn,{colorScheme:"blue",variant:"solid",ml:"4",onClick:r,children:"Refresh Layers"})]}),n()]})},tO=()=>{const e=Ix(r=>r.main.selectedContent),t=()=>{switch(e){case"scenarios":return k.jsx(eO,{});case"layers":return k.jsx(Ny,{});default:return k.jsx(Ny,{})}};return k.jsx(vt,{width:"80%",border:"1px solid #FFFFFF",minHeight:"75vh",mt:"4",m:"auto",children:t()})};function rO(){return k.jsxs(k.Fragment,{children:[k.jsx(ZF,{}),k.jsx(JF,{}),k.jsx(tO,{})]})}yd.createRoot(document.getElementById("root")).render(k.jsx(Gn.StrictMode,{children:k.jsx(NI,{store:QF,children:k.jsx(uI,{theme:GI,children:k.jsx(rO,{})})})})); diff --git a/assets/index-DslLrW79.js b/assets/index-DslLrW79.js new file mode 100644 index 0000000..88139ca --- /dev/null +++ b/assets/index-DslLrW79.js @@ -0,0 +1,356 @@ +function __(e,t){for(var r=0;rn[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"]'))n(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"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var aa=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 Xy={exports:{}},uu={},Qy={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 Os=Symbol.for("react.element"),k_=Symbol.for("react.portal"),C_=Symbol.for("react.fragment"),T_=Symbol.for("react.strict_mode"),P_=Symbol.for("react.profiler"),E_=Symbol.for("react.provider"),R_=Symbol.for("react.context"),$_=Symbol.for("react.forward_ref"),A_=Symbol.for("react.suspense"),z_=Symbol.for("react.memo"),M_=Symbol.for("react.lazy"),cm=Symbol.iterator;function I_(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var Zy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jy=Object.assign,ev={};function oi(e,t,r){this.props=e,this.context=t,this.refs=ev,this.updater=r||Zy}oi.prototype.isReactComponent={};oi.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")};oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tv(){}tv.prototype=oi.prototype;function Xf(e,t,r){this.props=e,this.context=t,this.refs=ev,this.updater=r||Zy}var Qf=Xf.prototype=new tv;Qf.constructor=Xf;Jy(Qf,oi.prototype);Qf.isPureReactComponent=!0;var dm=Array.isArray,rv=Object.prototype.hasOwnProperty,Zf={current:null},nv={key:!0,ref:!0,__self:!0,__source:!0};function ov(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)rv.call(t,n)&&!nv.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,se=z[N];if(0>>1;No(Wr,V))Aeo(rr,Wr)?(z[N]=rr,z[Ae]=V,N=Ae):(z[N]=Wr,z[gt]=V,N=gt);else if(Aeo(rr,V))z[N]=rr,z[Ae]=V,N=Ae;else break e}}return L}function o(z,L){var V=z.sortIndex-L.sortIndex;return V!==0?V:z.id-L.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,h=!1,y=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=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(z){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=z)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function x(z){if(S=!1,m(z),!y)if(r(l)!==null)y=!0,ge(T);else{var L=r(u);L!==null&&it(x,L.startTime-z)}}function T(z,L){y=!1,S&&(S=!1,g(R),R=-1),h=!0;var V=f;try{for(m(L),d=r(l);d!==null&&(!(d.expirationTime>L)||z&&!xe());){var N=d.callback;if(typeof N=="function"){d.callback=null,f=d.priorityLevel;var se=N(d.expirationTime<=L);L=e.unstable_now(),typeof se=="function"?d.callback=se:d===r(l)&&n(l),m(L)}else n(l);d=r(l)}if(d!==null)var Y=!0;else{var gt=r(u);gt!==null&&it(x,gt.startTime-L),Y=!1}return Y}finally{d=null,f=V,h=!1}}var $=!1,E=null,R=-1,j=5,D=-1;function xe(){return!(e.unstable_now()-Dz||125N?(z.sortIndex=V,t(u,z),r(l)===null&&z===r(u)&&(S?(g(R),R=-1):S=!0,it(x,V-N))):(z.sortIndex=se,t(l,z),y||h||(y=!0,ge(T))),z},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(z){var L=f;return function(){var V=f;f=L;try{return z.apply(this,arguments)}finally{f=V}}}})(lv);av.exports=lv;var H_=av.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 uv=C,kt=H_;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xd=Object.prototype.hasOwnProperty,G_=/^[: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]*$/,hm={},pm={};function K_(e){return xd.call(pm,e)?!0:xd.call(hm,e)?!1:G_.test(e)?pm[e]=!0:(hm[e]=!0,!1)}function q_(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y_(e,t,r,n){if(t===null||typeof t>"u"||q_(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[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];He[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[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){He[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var eh=/[\-:]([a-z])/g;function th(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(eh,th);He[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(eh,th);He[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(eh,th);He[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function rh(e,t,r,n){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:n||!(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{mc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ei(e):""}function X_(e){switch(e.tag){case 5:return Ei(e.type);case 16:return Ei("Lazy");case 13:return Ei("Suspense");case 19:return Ei("SuspenseList");case 0:case 2:case 15:return e=gc(e.type,!1),e;case 11:return e=gc(e.type.render,!1),e;case 1:return e=gc(e.type,!0),e;default:return""}}function Cd(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 fo:return"Fragment";case co:return"Portal";case wd:return"Profiler";case nh:return"StrictMode";case _d:return"Suspense";case kd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fv:return(e.displayName||"Context")+".Consumer";case dv:return(e._context.displayName||"Context")+".Provider";case oh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ih:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case Xr:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}function Q_(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 Cd(t);case 8:return t===nh?"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 pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z_(e){var t=pv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ca(e){e._valueTracker||(e._valueTracker=Z_(e))}function mv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=pv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vl(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 Td(e,t){var r=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=pn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gv(e,t){t=t.checked,t!=null&&rh(e,"checked",t,!1)}function Pd(e,t){gv(e,t);var r=pn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ed(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ed(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ym(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ed(e,t,r){(t!=="number"||vl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ri=Array.isArray;function Mo(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=da.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Bi={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},J_=["Webkit","ms","Moz","O"];Object.keys(Bi).forEach(function(e){J_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bi[t]=Bi[e]})});function bv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Bi.hasOwnProperty(e)&&Bi[e]?(""+t).trim():t+"px"}function xv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=bv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var ek=be({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 Ad(e,t){if(t){if(ek[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function zd(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 Md=null;function sh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Id=null,Io=null,jo=null;function bm(e){if(e=Ns(e)){if(typeof Id!="function")throw Error(A(280));var t=e.stateNode;t&&(t=pu(t),Id(e.stateNode,e.type,t))}}function wv(e){Io?jo?jo.push(e):jo=[e]:Io=e}function _v(){if(Io){var e=Io,t=jo;if(jo=Io=null,bm(e),t)for(e=0;e>>=0,e===0?32:31-(dk(e)/fk|0)|0}var fa=64,ha=4194304;function $i(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 wl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=$i(a):(i&=s,i!==0&&(n=$i(i)))}else s=r&~o,s!==0?n=$i(s):i!==0&&(n=$i(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ls(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=r}function gk(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Vi),Rm=" ",$m=!1;function Wv(e,t){switch(e){case"keyup":return Uk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function Gk(e,t){switch(e){case"compositionend":return Uv(t);case"keypress":return t.which!==32?null:($m=!0,Rm);case"textInput":return e=t.data,e===Rm&&$m?null:e;default:return null}}function Kk(e,t){if(ho)return e==="compositionend"||!ph&&Wv(e,t)?(e=Nv(),Ha=dh=rn=null,ho=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Im(r)}}function qv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yv(){for(var e=window,t=vl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vl(e.document)}return t}function mh(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 rC(e){var t=Yv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&qv(r.ownerDocument.documentElement,r)){if(n!==null&&mh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=jm(r,i);var s=jm(r,n);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>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,po=null,Bd=null,Ui=null,Nd=!1;function Dm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nd||po==null||po!==vl(n)||(n=po,"selectionStart"in n&&mh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ui&&hs(Ui,n)||(Ui=n,n=Cl(Bd,"onSelect"),0yo||(e.current=Kd[yo],Kd[yo]=null,yo--)}function ae(e,t){yo++,Kd[yo]=e.current,e.current=t}var mn={},Qe=xn(mn),ct=xn(!1),Xn=mn;function Ho(e,t){var r=e.type.contextTypes;if(!r)return mn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Pl(){de(ct),de(Qe)}function Wm(e,t,r){if(Qe.current!==mn)throw Error(A(168));ae(Qe,t),ae(ct,r)}function o1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(A(108,Q_(e)||"Unknown",o));return be({},r,n)}function El(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Xn=Qe.current,ae(Qe,e),ae(ct,ct.current),!0}function Um(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=o1(e,t,Xn),n.__reactInternalMemoizedMergedChildContext=e,de(ct),de(Qe),ae(Qe,e)):de(ct),ae(ct,r)}var br=null,mu=!1,$c=!1;function i1(e){br===null?br=[e]:br.push(e)}function pC(e){mu=!0,i1(e)}function wn(){if(!$c&&br!==null){$c=!0;var e=0,t=re;try{var r=br;for(re=1;e>=s,o-=s,_r=1<<32-Qt(t)+o|r<R?(j=E,E=null):j=E.sibling;var D=f(g,E,m[R],x);if(D===null){E===null&&(E=j);break}e&&E&&D.alternate===null&&t(g,E),p=i(D,p,R),$===null?T=D:$.sibling=D,$=D,E=j}if(R===m.length)return r(g,E),pe&&Rn(g,R),T;if(E===null){for(;RR?(j=E,E=null):j=E.sibling;var xe=f(g,E,D.value,x);if(xe===null){E===null&&(E=j);break}e&&E&&xe.alternate===null&&t(g,E),p=i(xe,p,R),$===null?T=xe:$.sibling=xe,$=xe,E=j}if(D.done)return r(g,E),pe&&Rn(g,R),T;if(E===null){for(;!D.done;R++,D=m.next())D=d(g,D.value,x),D!==null&&(p=i(D,p,R),$===null?T=D:$.sibling=D,$=D);return pe&&Rn(g,R),T}for(E=n(g,E);!D.done;R++,D=m.next())D=h(E,g,R,D.value,x),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?R:D.key),p=i(D,p,R),$===null?T=D:$.sibling=D,$=D);return e&&E.forEach(function($e){return t(g,$e)}),pe&&Rn(g,R),T}function w(g,p,m,x){if(typeof m=="object"&&m!==null&&m.type===fo&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ua:e:{for(var T=m.key,$=p;$!==null;){if($.key===T){if(T=m.type,T===fo){if($.tag===7){r(g,$.sibling),p=o($,m.props.children),p.return=g,g=p;break e}}else if($.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xr&&Qm(T)===$.type){r(g,$.sibling),p=o($,m.props),p.ref=Si(g,$,m),p.return=g,g=p;break e}r(g,$);break}else t(g,$);$=$.sibling}m.type===fo?(p=Wn(m.props.children,g.mode,x,m.key),p.return=g,g=p):(x=Ja(m.type,m.key,m.props,null,g.mode,x),x.ref=Si(g,p,m),x.return=g,g=x)}return s(g);case co:e:{for($=m.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){r(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=Oc(m,g.mode,x),p.return=g,g=p}return s(g);case Xr:return $=m._init,w(g,p,$(m._payload),x)}if(Ri(m))return y(g,p,m,x);if(pi(m))return S(g,p,m,x);ba(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,m),p.return=g,g=p):(r(g,p),p=Fc(m,g.mode,x),p.return=g,g=p),s(g)):r(g,p)}return w}var Ko=h1(!0),p1=h1(!1),Vs={},fr=xn(Vs),ys=xn(Vs),vs=xn(Vs);function Ln(e){if(e===Vs)throw Error(A(174));return e}function kh(e,t){switch(ae(vs,t),ae(ys,e),ae(fr,Vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$d(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$d(t,e)}de(fr),ae(fr,t)}function qo(){de(fr),de(ys),de(vs)}function m1(e){Ln(vs.current);var t=Ln(fr.current),r=$d(t,e.type);t!==r&&(ae(ys,e),ae(fr,r))}function Ch(e){ys.current===e&&(de(fr),de(ys))}var ye=xn(0);function Il(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ac=[];function Th(){for(var e=0;er?r:4,e(!0);var n=zc.transition;zc.transition={};try{e(!1),t()}finally{re=r,zc.transition=n}}function A1(){return Vt().memoizedState}function vC(e,t,r){var n=fn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},z1(e))M1(t,r);else if(r=u1(e,t,r,n),r!==null){var o=tt();Zt(r,e,n,o),I1(r,t,n)}}function SC(e,t,r){var n=fn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(z1(e))M1(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,r);if(o.hasEagerState=!0,o.eagerState=a,er(a,s)){var l=t.interleaved;l===null?(o.next=o,wh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=u1(e,t,o,n),r!==null&&(o=tt(),Zt(r,e,n,o),I1(r,t,n))}}function z1(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function M1(e,t){Hi=jl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function I1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lh(e,r)}}var Dl={readContext:Nt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},bC={readContext:Nt,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Jm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ya(4194308,4,T1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ya(4,2,e,t)},useMemo:function(e,t){var r=sr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=vC.bind(null,Se,e),[n.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:Zm,useDebugValue:Ah,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=Zm(!1),t=e[0];return e=yC.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Se,o=sr();if(pe){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),De===null)throw Error(A(349));Zn&30||v1(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Jm(b1.bind(null,n,i,e),[e]),n.flags|=2048,xs(9,S1.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sr(),t=De.identifierPrefix;if(pe){var r=kr,n=_r;r=(n&~(1<<32-Qt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ss++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[cr]=t,e[gs]=n,W1(e,t,!1,!1),t.stateNode=e;e:{switch(s=zd(r,n),r){case"dialog":ue("cancel",e),ue("close",e),o=n;break;case"iframe":case"object":case"embed":ue("load",e),o=n;break;case"video":case"audio":for(o=0;oXo&&(t.flags|=128,n=!0,bi(i,!1),t.lanes=4194304)}else{if(!n)if(e=Il(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!pe)return Ke(t),null}else 2*ke()-i.renderingStartTime>Xo&&r!==1073741824&&(t.flags|=128,n=!0,bi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,r=ye.current,ae(ye,n?r&1|2:r&1),t):(Ke(t),null);case 22:case 23:return Fh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?vt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function EC(e,t){switch(yh(t),t.tag){case 1:return dt(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),de(ct),de(Qe),Th(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ch(t),null;case 13:if(de(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(ye),null;case 4:return qo(),null;case 10:return xh(t.type._context),null;case 22:case 23:return Fh(),null;case 24:return null;default:return null}}var wa=!1,Xe=!1,RC=typeof WeakSet=="function"?WeakSet:Set,I=null;function xo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function sf(e,t,r){try{r()}catch(n){we(e,t,n)}}var l0=!1;function $C(e,t){if(Vd=_l,e=Yv(),mh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(a=s+o),d!==i||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++u===o&&(a=s),f===i&&++c===n&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wd={focusedElem:e,selectionRange:r},_l=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,w=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ht(t.type,S),w);g.__reactInternalSnapshotBeforeUpdate=p}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(A(163))}}catch(x){we(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=l0,l0=!1,y}function Gi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&sf(t,r,i)}o=o.next}while(o!==n)}}function vu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function af(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function G1(e){var t=e.alternate;t!==null&&(e.alternate=null,G1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[gs],delete t[Gd],delete t[fC],delete t[hC])),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 K1(e){return e.tag===5||e.tag===3||e.tag===4}function u0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K1(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 lf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Tl));else if(n!==4&&(e=e.child,e!==null))for(lf(e,t,r),e=e.sibling;e!==null;)lf(e,t,r),e=e.sibling}function uf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(uf(e,t,r),e=e.sibling;e!==null;)uf(e,t,r),e=e.sibling}var Ne=null,Kt=!1;function Hr(e,t,r){for(r=r.child;r!==null;)q1(e,t,r),r=r.sibling}function q1(e,t,r){if(dr&&typeof dr.onCommitFiberUnmount=="function")try{dr.onCommitFiberUnmount(cu,r)}catch{}switch(r.tag){case 5:Xe||xo(r,t);case 6:var n=Ne,o=Kt;Ne=null,Hr(e,t,r),Ne=n,Kt=o,Ne!==null&&(Kt?(e=Ne,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ne.removeChild(r.stateNode));break;case 18:Ne!==null&&(Kt?(e=Ne,r=r.stateNode,e.nodeType===8?Rc(e.parentNode,r):e.nodeType===1&&Rc(e,r),ds(e)):Rc(Ne,r.stateNode));break;case 4:n=Ne,o=Kt,Ne=r.stateNode.containerInfo,Kt=!0,Hr(e,t,r),Ne=n,Kt=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&sf(r,t,s),o=o.next}while(o!==n)}Hr(e,t,r);break;case 1:if(!Xe&&(xo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){we(r,t,a)}Hr(e,t,r);break;case 21:Hr(e,t,r);break;case 22:r.mode&1?(Xe=(n=Xe)||r.memoizedState!==null,Hr(e,t,r),Xe=n):Hr(e,t,r);break;default:Hr(e,t,r)}}function c0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new RC),t.forEach(function(n){var o=LC.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Wt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=ke()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zC(n/1960))-n,10e?16:e,nn===null)var n=!1;else{if(e=nn,nn=null,Ll=0,X&6)throw Error(A(331));var o=X;for(X|=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;lke()-jh?Vn(e,0):Ih|=r),ft(e,t)}function rS(e,t){t===0&&(e.mode&1?(t=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):t=1);var r=tt();e=jr(e,t),e!==null&&(Ls(e,t,r),ft(e,r))}function OC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),rS(e,r)}function LC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),rS(e,r)}var nS;nS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)lt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return lt=!1,TC(e,t,r);lt=!!(e.flags&131072)}else lt=!1,pe&&t.flags&1048576&&s1(t,$l,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Xa(e,t),e=t.pendingProps;var o=Ho(t,Qe.current);Fo(t,r),o=Eh(null,t,n,e,o,r);var i=Rh();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,dt(n)?(i=!0,El(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_h(t),o.updater=gu,t.stateNode=o,o._reactInternals=t,Zd(t,n,e,r),t=tf(null,t,n,!0,i,r)):(t.tag=0,pe&&i&&gh(t),Je(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Xa(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=NC(n),e=Ht(n,e),o){case 0:t=ef(null,t,n,e,r);break e;case 1:t=i0(null,t,n,e,r);break e;case 11:t=n0(null,t,n,e,r);break e;case 14:t=o0(null,t,n,Ht(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),ef(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),i0(e,t,n,o,r);case 3:e:{if(B1(t),e===null)throw Error(A(387));n=t.pendingProps,i=t.memoizedState,o=i.element,c1(e,t),Ml(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yo(Error(A(423)),t),t=s0(e,t,n,r,o);break e}else if(n!==o){o=Yo(Error(A(424)),t),t=s0(e,t,n,r,o);break e}else for(St=un(t.stateNode.containerInfo.firstChild),xt=t,pe=!0,qt=null,r=p1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Go(),n===o){t=Dr(e,t,r);break e}Je(e,t,n,r)}t=t.child}return t;case 5:return m1(t),e===null&&Yd(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ud(n,o)?s=null:i!==null&&Ud(n,i)&&(t.flags|=32),L1(e,t),Je(e,t,s,r),t.child;case 6:return e===null&&Yd(t),null;case 13:return N1(e,t,r);case 4:return kh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ko(t,null,n,r):Je(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),n0(e,t,n,o,r);case 7:return Je(e,t,t.pendingProps,r),t.child;case 8:return Je(e,t,t.pendingProps.children,r),t.child;case 12:return Je(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ae(Al,n._currentValue),n._currentValue=s,i!==null)if(er(i.value,s)){if(i.children===o.children&&!ct.current){t=Dr(e,t,r);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===n){if(i.tag===1){l=Pr(-1,r&-r),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|=r,l=i.alternate,l!==null&&(l.lanes|=r),Xd(i.return,r,t),a.lanes|=r;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(A(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Xd(s,r,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,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Fo(t,r),o=Nt(o),n=n(o),t.flags|=1,Je(e,t,n,r),t.child;case 14:return n=t.type,o=Ht(n,t.pendingProps),o=Ht(n.type,o),o0(e,t,n,o,r);case 15:return F1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ht(n,o),Xa(e,t),t.tag=1,dt(n)?(e=!0,El(t)):e=!1,Fo(t,r),f1(t,n,o),Zd(t,n,o,r),tf(null,t,n,!0,e,r);case 19:return V1(e,t,r);case 22:return O1(e,t,r)}throw Error(A(156,t.tag))};function oS(e,t){return $v(e,t)}function BC(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,r,n){return new BC(e,t,r,n)}function Lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NC(e){if(typeof e=="function")return Lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oh)return 11;if(e===ih)return 14}return 2}function hn(e,t){var r=e.alternate;return r===null?(r=Ot(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ja(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fo:return Wn(r.children,o,i,t);case nh:s=8,o|=8;break;case wd:return e=Ot(12,r,t,o|2),e.elementType=wd,e.lanes=i,e;case _d:return e=Ot(13,r,t,o),e.elementType=_d,e.lanes=i,e;case kd:return e=Ot(19,r,t,o),e.elementType=kd,e.lanes=i,e;case hv:return bu(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dv:s=10;break e;case fv:s=9;break e;case oh:s=11;break e;case ih:s=14;break e;case Xr:s=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ot(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Wn(e,t,r,n){return e=Ot(7,e,n,t),e.lanes=r,e}function bu(e,t,r,n){return e=Ot(22,e,n,t),e.elementType=hv,e.lanes=r,e.stateNode={isHidden:!1},e}function Fc(e,t,r){return e=Ot(6,e,null,t),e.lanes=r,e}function Oc(e,t,r){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function VC(e,t,r,n,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=vc(0),this.expirationTimes=vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bh(e,t,r,n,o,i,s,a,l){return e=new VC(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_h(i),e}function WC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lS)}catch(e){console.error(e)}}lS(),sv.exports=Et;var Uh=sv.exports,v0=Uh;bd.createRoot=v0.createRoot,bd.hydrateRoot=v0.hydrateRoot;function qC(e){if(e.sheet)return e.sheet;for(var t=0;t0?We(ai,--pt):0,Qo--,Pe===10&&(Qo=1,Tu--),Pe}function wt(){return Pe=pt2||ks(Pe)>3?"":" "}function a2(e,t){for(;--t&&wt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Ws(e,el()+(t<6&&hr()==32&&wt()==32))}function mf(e){for(;wt();)switch(Pe){case e:return pt;case 34:case 39:e!==34&&e!==39&&mf(Pe);break;case 40:e===41&&mf(e);break;case 92:wt();break}return pt}function l2(e,t){for(;wt()&&e+Pe!==57;)if(e+Pe===84&&hr()===47)break;return"/*"+Ws(t,pt-1)+"*"+Cu(e===47?e:wt())}function u2(e){for(;!ks(hr());)wt();return Ws(e,pt)}function c2(e){return pS(rl("",null,null,null,[""],e=hS(e),0,[0],e))}function rl(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,h=0,y=0,S=1,w=1,g=1,p=0,m="",x=o,T=i,$=n,E=m;w;)switch(y=p,p=wt()){case 40:if(y!=108&&We(E,d-1)==58){pf(E+=J(tl(p),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=tl(p);break;case 9:case 10:case 13:case 32:E+=s2(y);break;case 92:E+=a2(el()-1,7);continue;case 47:switch(hr()){case 42:case 47:Ca(d2(l2(wt(),el()),t,r),l);break;default:E+="/"}break;case 123*S:a[u++]=lr(E)*g;case 125*S:case 59:case 0:switch(p){case 0:case 125:w=0;case 59+c:g==-1&&(E=J(E,/\f/g,"")),h>0&&lr(E)-d&&Ca(h>32?b0(E+";",n,r,d-1):b0(J(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(Ca($=S0(E,t,r,u,c,o,a,m,x=[],T=[],d),i),p===123)if(c===0)rl(E,t,$,$,x,i,d,a,T);else switch(f===99&&We(E,3)===110?100:f){case 100:case 108:case 109:case 115:rl(e,$,$,n&&Ca(S0(e,$,$,0,0,o,a,m,o,x=[],d),T),o,T,d,a,n?x:T);break;default:rl(E,$,$,$,[""],T,0,a,T)}}u=c=h=0,S=g=1,m=E="",d=s;break;case 58:d=1+lr(E),h=y;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&i2()==125)continue}switch(E+=Cu(p),p*S){case 38:g=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(lr(E)-1)*g,g=1;break;case 64:hr()===45&&(E+=tl(wt())),f=hr(),c=d=lr(m=E+=u2(el())),p++;break;case 45:y===45&&lr(E)==2&&(S=0)}}return i}function S0(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],h=Kh(f),y=0,S=0,w=0;y0?f[g]+" "+p:J(p,/&\f/g,f[g])))&&(l[w++]=m);return Pu(e,t,r,o===0?Hh:a,l,u,c)}function d2(e,t,r){return Pu(e,t,r,uS,Cu(o2()),_s(e,2,-2),0)}function b0(e,t,r,n){return Pu(e,t,r,Gh,_s(e,0,n),_s(e,n+1,-1),n)}function Lo(e,t){for(var r="",n=Kh(e),o=0;o6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+Vl+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pf(e,"stretch")?gS(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,lr(e)-3-(~pf(e,"!important")&&10))){case 107:return J(e,":",":"+Z)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(We(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+qe+e+e}return e}var b2=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Gh:t.return=gS(t.value,t.length);break;case cS:return Lo([wi(t,{value:J(t.value,"@","@"+Z)})],o);case Hh:if(t.length)return n2(t.props,function(i){switch(r2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lo([wi(t,{props:[J(i,/:(read-\w+)/,":"+Vl+"$1")]})],o);case"::placeholder":return Lo([wi(t,{props:[J(i,/:(plac\w+)/,":"+Z+"input-$1")]}),wi(t,{props:[J(i,/:(plac\w+)/,":"+Vl+"$1")]}),wi(t,{props:[J(i,/:(plac\w+)/,qe+"input-$1")]})],o)}return""})}},x2=[b2],w2=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||x2,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 I2={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,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},j2=/[A-Z]|^ms/g,D2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_S=function(t){return t.charCodeAt(1)===45},_0=function(t){return t!=null&&typeof t!="boolean"},Lc=mS(function(e){return _S(e)?e:e.replace(j2,"-$&").toLowerCase()}),k0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(D2,function(n,o,i){return ur={name:o,styles:i,next:ur},o})}return I2[t]!==1&&!_S(t)&&typeof r=="number"&&r!==0?r+"px":r};function Cs(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ur={name:r.name,styles:r.styles,next:ur},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ur={name:n.name,styles:n.styles,next:ur},n=n.next;var o=r.styles+";";return o}return F2(e,t,r)}case"function":{if(e!==void 0){var i=ur,s=r(e);return ur=i,Cs(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function F2(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ob.jsx(Ou,{styles:ES}),G2=({scope:e=""})=>b.jsx(Ou,{styles:PS` + 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; + } + + ${ES} + `});function K2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Nr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){var u;const c=C.useContext(a);if(!c&&r){const d=new Error(i??K2(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[q2,Y2]=Nr({strict:!1,name:"PortalManagerContext"});function RS(e){const{children:t,zIndex:r}=e;return b.jsx(q2,{value:{zIndex:r},children:t})}RS.displayName="PortalManager";var Ps=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,[$S,X2]=Nr({strict:!1,name:"PortalContext"}),Zh="chakra-portal",Q2=".chakra-portal",Z2=e=>b.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),J2=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=C.useState(null),i=C.useRef(null),[,s]=C.useState({});C.useEffect(()=>s({}),[]);const a=X2(),l=Y2();Ps(()=>{if(!n)return;const c=n.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=Zh,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?b.jsx(Z2,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Uh.createPortal(b.jsx($S,{value:i.current,children:u}),i.current):b.jsx("span",{ref:c=>{c&&o(c)}})},eT=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=C.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Zh),l},[o]),[,a]=C.useState({});return Ps(()=>a({}),[]),Ps(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Uh.createPortal(b.jsx($S,{value:n?s:null,children:t}),s):null};function Lu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?b.jsx(eT,{containerRef:r,...n}):b.jsx(J2,{...n})}Lu.className=Zh;Lu.selector=Q2;Lu.displayName="Portal";function tT(){const e=C.useContext(Ts);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Jh=C.createContext({});Jh.displayName="ColorModeContext";function ep(){const e=C.useContext(Jh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ta={light:"chakra-ui-light",dark:"chakra-ui-dark"};function rT(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Ta.dark:Ta.light),document.body.classList.remove(n?Ta.light:Ta.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=s=>{n(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 n=document.createElement("style");return n.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(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var nT="chakra-ui-color-mode";function oT(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var iT=oT(nT),P0=()=>{};function E0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function AS(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=iT}=e,a=o==="dark"?"dark":"light",[l,u]=C.useState(()=>E0(s,a)),[c,d]=C.useState(()=>E0(s)),{getSystemTheme:f,setClassName:h,setDataset:y,addListener:S}=C.useMemo(()=>rT({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,g=C.useCallback(x=>{const T=x==="system"?f():x;u(T),h(T==="dark"),y(T),s.set(T)},[s,f,h,y]);Ps(()=>{o==="system"&&d(f())},[]),C.useEffect(()=>{const x=s.get();if(x){g(x);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const p=C.useCallback(()=>{g(w==="dark"?"light":"dark")},[w,g]);C.useEffect(()=>{if(n)return S(g)},[n,S,g]);const m=C.useMemo(()=>({colorMode:t??w,toggleColorMode:t?P0:p,setColorMode:t?P0:g,forced:t!==void 0}),[w,p,g,t]);return b.jsx(Jh.Provider,{value:m,children:r})}AS.displayName="ColorModeProvider";function sT(){const e=ep(),t=tT();return{...e,theme:t}}var Ze=(...e)=>e.filter(Boolean).join(" ");function Jt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function on(e,...t){return aT(e)?e(...t):e}var aT=e=>typeof e=="function",Gt=e=>e?"":void 0,Bc=e=>e?!0:void 0;function R0(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Ul={exports:{}};Ul.exports;(function(e,t){var r=200,n="__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]",h="[object Function]",y="[object GeneratorFunction]",S="[object Map]",w="[object Number]",g="[object Null]",p="[object Object]",m="[object Proxy]",x="[object RegExp]",T="[object Set]",$="[object String]",E="[object Undefined]",R="[object WeakMap]",j="[object ArrayBuffer]",D="[object DataView]",xe="[object Float32Array]",$e="[object Float64Array]",Oe="[object Int8Array]",Te="[object Int16Array]",tr="[object Int32Array]",ge="[object Uint8Array]",it="[object Uint8ClampedArray]",z="[object Uint16Array]",L="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,Y={};Y[xe]=Y[$e]=Y[Oe]=Y[Te]=Y[tr]=Y[ge]=Y[it]=Y[z]=Y[L]=!0,Y[a]=Y[l]=Y[j]=Y[c]=Y[D]=Y[d]=Y[f]=Y[h]=Y[S]=Y[w]=Y[p]=Y[x]=Y[T]=Y[$]=Y[R]=!1;var gt=typeof aa=="object"&&aa&&aa.Object===Object&&aa,Wr=typeof self=="object"&&self&&self.Object===Object&&self,Ae=gt||Wr||Function("return this")(),rr=t&&!t.nodeType&&t,kn=rr&&!0&&e&&!e.nodeType&&e,io=kn&&kn.exports===rr,Ur=io&>.process,nr=function(){try{var v=kn&&kn.require&&kn.require("util").types;return v||Ur&&Ur.binding&&Ur.binding("util")}catch{}}(),tc=nr&&nr.isTypedArray;function cw(v,_,P){switch(P.length){case 0:return v.call(_);case 1:return v.call(_,P[0]);case 2:return v.call(_,P[0],P[1]);case 3:return v.call(_,P[0],P[1],P[2])}return v.apply(_,P)}function dw(v,_){for(var P=-1,M=Array(v);++P-1}function Mw(v,_){var P=this.__data__,M=na(P,v);return M<0?(++this.size,P.push([v,_])):P[M][1]=_,this}yr.prototype.clear=Rw,yr.prototype.delete=$w,yr.prototype.get=Aw,yr.prototype.has=zw,yr.prototype.set=Mw;function so(v){var _=-1,P=v==null?0:v.length;for(this.clear();++_1?P[q-1]:void 0,fe=q>2?P[2]:void 0;for(oe=v.length>3&&typeof oe=="function"?(q--,oe):void 0,fe&&l_(P[0],P[1],fe)&&(oe=q<3?void 0:oe,q=1),_=Object(_);++M-1&&v%1==0&&v<_}function l_(v,_,P){if(!Pn(P))return!1;var M=typeof _;return(M=="number"?uc(P)&&rm(_,P.length):M=="string"&&_ in P)?sa(P[_],v):!1}function u_(v){var _=typeof v;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?v!=="__proto__":v===null}function c_(v){return!!Hp&&Hp in v}function nm(v){var _=v&&v.constructor,P=typeof _=="function"&&_.prototype||Js;return v===P}function d_(v){var _=[];if(v!=null)for(var P in Object(v))_.push(P);return _}function f_(v){return Gp.call(v)}function h_(v,_,P){return _=Zp(_===void 0?v.length-1:_,0),function(){for(var M=arguments,q=-1,oe=Zp(M.length-_,0),fe=Array(oe);++q0){if(++_>=o)return arguments[0]}else _=0;return v.apply(void 0,arguments)}}function g_(v){if(v!=null){try{return ea.call(v)}catch{}try{return v+""}catch{}}return""}function sa(v,_){return v===_||v!==v&&_!==_}var ac=em(function(){return arguments}())?em:function(v){return fi(v)&&gr.call(v,"callee")&&!Sw.call(v,"callee")},lc=Array.isArray;function uc(v){return v!=null&&im(v.length)&&!cc(v)}function y_(v){return fi(v)&&uc(v)}var om=xw||w_;function cc(v){if(!Pn(v))return!1;var _=oa(v);return _==h||_==y||_==u||_==m}function im(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=s}function Pn(v){var _=typeof v;return v!=null&&(_=="object"||_=="function")}function fi(v){return v!=null&&typeof v=="object"}function v_(v){if(!fi(v)||oa(v)!=p)return!1;var _=Xp(v);if(_===null)return!0;var P=gr.call(_,"constructor")&&_.constructor;return typeof P=="function"&&P instanceof P&&ea.call(P)==yw}var sm=tc?fw(tc):qw;function S_(v){return n_(v,am(v))}function am(v){return uc(v)?Uw(v,!0):Yw(v)}var b_=o_(function(v,_,P,M){tm(v,_,P,M)});function x_(v){return function(){return v}}function lm(v){return v}function w_(){return!1}e.exports=b_})(Ul,Ul.exports);var lT=Ul.exports;const Lt=Yf(lT);var uT=e=>/!(important)?$/.test(e),$0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,cT=(e,t)=>r=>{const n=String(t),o=uT(n),i=$0(n),s=e?`${e}.${i}`:i;let a=Jt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=$0(a),o?`${a} !important`:a};function tp(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var a;const l=cT(t,i)(s);let u=(a=r==null?void 0:r(l,s))!=null?a:l;return n&&(u=n(u,s)),u}}var Pa=(...e)=>t=>e.reduce((r,n)=>n(r),t);function zt(e,t){return r=>{const n={property:r,scale:e};return n.transform=tp({scale:e,transform:t}),n}}var dT=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function fT(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:dT(t),transform:r?tp({scale:r,compose:n}):n}}var zS=["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 hT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...zS].join(" ")}function pT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...zS].join(" ")}var mT={"--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(" ")},gT={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 yT(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 vT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},gf={"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"},ST=new Set(Object.values(gf)),yf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),bT=e=>e.trim();function xT(e,t){if(e==null||yf.has(e))return e;if(!(vf(e)||yf.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(bT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in gf?gf[l]:l;u.unshift(c);const d=u.map(f=>{if(ST.has(f))return f;const h=f.indexOf(" "),[y,S]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],w=vf(S)?S:S&&S.split(" "),g=`colors.${y}`,p=g in t.__cssMap?t.__cssMap[g].varRef:y;return w?[p,...Array.isArray(w)?w:[w]].join(" "):p});return`${a}(${d.join(", ")})`}var vf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),wT=(e,t)=>xT(e,t??{});function _T(e){return/^var\(--.+\)$/.test(e)}var kT=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},ir=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:mT},backdropFilter(e){return e!=="auto"?e:gT},ring(e){return yT(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?hT():e==="auto-gpu"?pT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=kT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(_T(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:wT,blur:ir("blur"),opacity:ir("opacity"),brightness:ir("brightness"),contrast:ir("contrast"),dropShadow:ir("drop-shadow"),grayscale:ir("grayscale"),hueRotate:e=>ir("hue-rotate")(G.degree(e)),invert:ir("invert"),saturate:ir("saturate"),sepia:ir("sepia"),bgImage(e){return e==null||vf(e)||yf.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:r,divide:n}=(t=vT[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},k={borderWidths:zt("borderWidths"),borderStyles:zt("borderStyles"),colors:zt("colors"),borders:zt("borders"),gradients:zt("gradients",G.gradient),radii:zt("radii",G.px),space:zt("space",Pa(G.vh,G.px)),spaceT:zt("space",Pa(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:tp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:zt("sizes",Pa(G.vh,G.px)),sizesT:zt("sizes",Pa(G.vh,G.fraction)),shadows:zt("shadows"),logical:fT,blur:zt("blur",G.blur)},nl={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:G.bgClip}};Object.assign(nl,{bgImage:nl.backgroundImage,bgImg:nl.backgroundImage});var Q={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Q,{rounded:Q.borderRadius,roundedTop:Q.borderTopRadius,roundedTopLeft:Q.borderTopLeftRadius,roundedTopRight:Q.borderTopRightRadius,roundedTopStart:Q.borderStartStartRadius,roundedTopEnd:Q.borderStartEndRadius,roundedBottom:Q.borderBottomRadius,roundedBottomLeft:Q.borderBottomLeftRadius,roundedBottomRight:Q.borderBottomRightRadius,roundedBottomStart:Q.borderEndStartRadius,roundedBottomEnd:Q.borderEndEndRadius,roundedLeft:Q.borderLeftRadius,roundedRight:Q.borderRightRadius,roundedStart:Q.borderInlineStartRadius,roundedEnd:Q.borderInlineEndRadius,borderStart:Q.borderInlineStart,borderEnd:Q.borderInlineEnd,borderTopStartRadius:Q.borderStartStartRadius,borderTopEndRadius:Q.borderStartEndRadius,borderBottomStartRadius:Q.borderEndStartRadius,borderBottomEndRadius:Q.borderEndEndRadius,borderStartRadius:Q.borderInlineStartRadius,borderEndRadius:Q.borderInlineEndRadius,borderStartWidth:Q.borderInlineStartWidth,borderEndWidth:Q.borderInlineEndWidth,borderStartColor:Q.borderInlineStartColor,borderEndColor:Q.borderInlineEndColor,borderStartStyle:Q.borderInlineStartStyle,borderEndStyle:Q.borderInlineEndStyle});var CT={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")},Sf={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Sf,{shadow:Sf.boxShadow});var TT={filter:{transform:G.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",G.brightness),contrast:k.propT("--chakra-contrast",G.contrast),hueRotate:k.propT("--chakra-hue-rotate",G.hueRotate),invert:k.propT("--chakra-invert",G.invert),saturate:k.propT("--chakra-saturate",G.saturate),dropShadow:k.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",G.saturate)},Hl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Hl,{flexDir:Hl.flexDirection});var MS={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.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},PT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},It={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.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 r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(It,{w:It.width,h:It.height,minW:It.minWidth,maxW:It.maxWidth,minH:It.minHeight,maxH:It.maxHeight,overscroll:It.overscrollBehavior,overscrollX:It.overscrollBehaviorX,overscrollY:It.overscrollBehaviorY});var ET={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")};function RT(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},AT=$T(RT),zT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},MT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Nc=(e,t,r)=>{const n={},o=AT(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},IT={srOnly:{transform(e){return e===!0?zT:e==="focusable"?MT:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Nc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Nc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Nc(t,e,r)}},Yi={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Yi,{insetStart:Yi.insetInlineStart,insetEnd:Yi.insetInlineEnd});var jT={ring:{transform:G.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},ce={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(ce,{m:ce.margin,mt:ce.marginTop,mr:ce.marginRight,me:ce.marginInlineEnd,marginEnd:ce.marginInlineEnd,mb:ce.marginBottom,ml:ce.marginLeft,ms:ce.marginInlineStart,marginStart:ce.marginInlineStart,mx:ce.marginX,my:ce.marginY,p:ce.padding,pt:ce.paddingTop,py:ce.paddingY,px:ce.paddingX,pb:ce.paddingBottom,pl:ce.paddingLeft,ps:ce.paddingInlineStart,paddingStart:ce.paddingInlineStart,pr:ce.paddingRight,pe:ce.paddingInlineEnd,paddingEnd:ce.paddingInlineEnd});var DT={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},FT={clipPath:!0,transform:k.propT("transform",G.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},OT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},LT={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",G.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.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"}},BT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function IS(e){return Jt(e)&&e.reference?e.reference:String(e)}var Bu=(e,...t)=>t.map(IS).join(` ${e} `).replace(/calc/g,""),A0=(...e)=>`calc(${Bu("+",...e)})`,z0=(...e)=>`calc(${Bu("-",...e)})`,bf=(...e)=>`calc(${Bu("*",...e)})`,M0=(...e)=>`calc(${Bu("/",...e)})`,I0=e=>{const t=IS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:bf(t,-1)},jn=Object.assign(e=>({add:(...t)=>jn(A0(e,...t)),subtract:(...t)=>jn(z0(e,...t)),multiply:(...t)=>jn(bf(e,...t)),divide:(...t)=>jn(M0(e,...t)),negate:()=>jn(I0(e)),toString:()=>e.toString()}),{add:A0,subtract:z0,multiply:bf,divide:M0,negate:I0});function NT(e,t="-"){return e.replace(/\s+/g,t)}function VT(e){const t=NT(e.toString());return UT(WT(t))}function WT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function UT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function HT(e,t=""){return[t,e].filter(Boolean).join("-")}function GT(e,t){return`var(${e}${t?`, ${t}`:""})`}function KT(e,t=""){return VT(`--${HT(e,t)}`)}function O(e,t,r){const n=KT(e,r);return{variable:n,reference:GT(n,t)}}function qT(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=O(`${e}-${o}`,i);continue}r[n]=O(`${e}-${n}`)}return r}function YT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function XT(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function xf(e){if(e==null)return e;const{unitless:t}=XT(e);return t||typeof e=="number"?`${e}px`:e}var jS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,rp=e=>Object.fromEntries(Object.entries(e).sort(jS));function j0(e){const t=rp(e);return Object.assign(Object.values(t),t)}function QT(e){const t=Object.keys(rp(e));return new Set(t)}function D0(e){var t;if(!e)return e;e=(t=xf(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function zi(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${xf(e)})`),t&&r.push("and",`(max-width: ${xf(t)})`),r.join(" ")}function ZT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=j0(e),n=Object.entries(e).sort(jS).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?D0(d):void 0,{_minW:D0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:zi(null,d),minWQuery:zi(a),minMaxQuery:zi(a,d)}}),o=QT(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:rp(e),asArray:j0(e),details:n,get(s){return n.find(a=>a.breakpoint===s)},media:[null,...r.map(s=>zi(s)).slice(1)],toArrayValue(s){if(!Jt(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(;YT(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 Le={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}`},Gr=e=>DS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),vr=e=>DS(t=>e(t,"~ &"),"[data-peer]",".peer"),DS=(e,...t)=>t.map(e).join(", "),Nu={_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:Gr(Le.hover),_peerHover:vr(Le.hover),_groupFocus:Gr(Le.focus),_peerFocus:vr(Le.focus),_groupFocusVisible:Gr(Le.focusVisible),_peerFocusVisible:vr(Le.focusVisible),_groupActive:Gr(Le.active),_peerActive:vr(Le.active),_groupDisabled:Gr(Le.disabled),_peerDisabled:vr(Le.disabled),_groupInvalid:Gr(Le.invalid),_peerInvalid:vr(Le.invalid),_groupChecked:Gr(Le.checked),_peerChecked:vr(Le.checked),_groupFocusWithin:Gr(Le.focusWithin),_peerFocusWithin:vr(Le.focusWithin),_peerPlaceholderShown:vr(Le.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]"},FS=Object.keys(Nu);function F0(e,t){return O(String(e).replace(/\./g,"-"),void 0,t)}function JT(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=F0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[h,...y]=f,S=`${h}.-${y.join(".")}`,w=jn.negate(a),g=jn.negate(u);n[S]={value:w,var:l,varRef:g}}r[l]=a,n[o]={value:a,var:l,varRef:u};continue}const c=f=>{const y=[String(o).split(".")[0],f].join(".");if(!e[y])return f;const{reference:w}=F0(y,t==null?void 0:t.cssVarPrefix);return w},d=Jt(a)?a:{default:a};r=Lt(r,Object.entries(d).reduce((f,[h,y])=>{var S,w;if(!y)return f;const g=c(`${y}`);if(h==="default")return f[l]=g,f;const p=(w=(S=Nu)==null?void 0:S[h])!=null?w:h;return f[p]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function eP(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function tP(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function rP(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function O0(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){var l;if(rP(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,h=[...a,f];if(n!=null&&n(s,h))return t(s,a);u[f]=i(d,h)}return u}return t(s,a)}return i(e)}var nP=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function oP(e){return tP(e,nP)}function iP(e){return e.semanticTokens}function sP(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var aP=e=>FS.includes(e)||e==="default";function lP({tokens:e,semanticTokens:t}){const r={};return O0(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),O0(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(aP)}),r}function uP(e){var t;const r=sP(e),n=oP(r),o=iP(r),i=lP({tokens:n,semanticTokens:o}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=JT(i,{cssVarPrefix:s});return Object.assign(r,{__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:ZT(r.breakpoints)}),r}var np=Lt({},nl,Q,CT,Hl,It,TT,jT,PT,MS,IT,Yi,Sf,ce,BT,LT,DT,FT,ET,OT),cP=Object.assign({},ce,It,Hl,MS,Yi),dP=Object.keys(cP),fP=[...Object.keys(np),...FS],hP={...np,...Nu},pP=e=>e in hP,mP=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=on(e[s],t);if(a==null)continue;if(a=Jt(a)&&r(a)?n(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"&&!yP(t),SP=(e,t)=>{var r,n;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]=gP(t);return t=(n=(r=o(s))!=null?r:i(a))!=null?n:i(t),t};function bP(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var a,l,u;const c=on(i,n),d=mP(c)(n);let f={};for(let h in d){const y=d[h];let S=on(y,n);h in r&&(h=r[h]),vP(h,S)&&(S=SP(n,S));let w=t[h];if(w===!0&&(w={property:h}),Jt(S)){f[h]=(a=f[h])!=null?a:{},f[h]=Lt({},f[h],o(S,!0));continue}let g=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,S,n,c))!=null?u:S;g=w!=null&&w.processResult?o(g,!0):g;const p=on(w==null?void 0:w.property,n);if(!s&&(w!=null&&w.static)){const m=on(w.static,n);f=Lt({},f,m)}if(p&&Array.isArray(p)){for(const m of p)f[m]=g;continue}if(p){p==="&"&&Jt(g)?f=Lt({},f,g):f[p]=g;continue}if(Jt(g)){f=Lt({},f,g);continue}f[h]=g}return f};return o}var OS=e=>t=>bP({theme:t,pseudos:Nu,configs:np})(e);function le(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function xP(e,t){if(Array.isArray(e))return e;if(Jt(e))return t(e);if(e!=null)return[e]}function wP(e,t){for(let r=t+1;r{Lt(u,{[m]:f?p[m]:{[g]:p[m]}})});continue}if(!h){f?Lt(u,p):u[g]=p;continue}u[g]=p}}return u}}function kP(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,s=_P(i);return Lt({},on((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",o,t),s(e,"variants",n,t))}}function Vr(e){return eP(e,["styleConfig","size","variant","colorScheme"])}var CP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function TP(e){return Jt(e)?CP.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var PP={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"},EP={"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)"},RP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},$P={property:PP,easing:EP,duration:RP},AP=$P,zP={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},MP=zP,IP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},jP=IP,DP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},FP=DP,OP={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"}},LP=OP,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"},NP=BP,VP={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=VP,UP={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},HP=UP,GP={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"}},LS=GP,BS={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"},KP={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"},qP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},YP={...BS,...KP,container:qP},NS=YP,XP={breakpoints:FP,zIndices:MP,radii:NP,blur:HP,colors:LP,...LS,sizes:NS,shadows:WP,space:BS,borders:jP,transition:AP},{defineMultiStyleConfig:QP,definePartsStyle:Mi}=le(["stepper","step","title","description","indicator","separator","icon","number"]),xr=O("stepper-indicator-size"),_o=O("stepper-icon-size"),ko=O("stepper-title-font-size"),Ii=O("stepper-description-font-size"),_i=O("stepper-accent-color"),ZP=Mi(({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"},[_i.variable]:`colors.${e}.500`,_dark:{[_i.variable]:`colors.${e}.200`}},title:{fontSize:ko.reference,fontWeight:"medium"},description:{fontSize:Ii.reference,color:"chakra-subtle-text"},number:{fontSize:ko.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:_o.reference,height:_o.reference},indicator:{flexShrink:0,borderRadius:"full",width:xr.reference,height:xr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:_i.reference},"&[data-status=complete]":{bg:_i.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:_i.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${xr.reference} - 8px)`,top:`calc(${xr.reference} + 4px)`,insetStart:`calc(${xr.reference} / 2 - 1px)`}}})),JP=QP({baseStyle:ZP,sizes:{xs:Mi({stepper:{[xr.variable]:"sizes.4",[_o.variable]:"sizes.3",[ko.variable]:"fontSizes.xs",[Ii.variable]:"fontSizes.xs"}}),sm:Mi({stepper:{[xr.variable]:"sizes.6",[_o.variable]:"sizes.4",[ko.variable]:"fontSizes.sm",[Ii.variable]:"fontSizes.xs"}}),md:Mi({stepper:{[xr.variable]:"sizes.8",[_o.variable]:"sizes.5",[ko.variable]:"fontSizes.md",[Ii.variable]:"fontSizes.sm"}}),lg:Mi({stepper:{[xr.variable]:"sizes.10",[_o.variable]:"sizes.6",[ko.variable]:"fontSizes.lg",[Ii.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function te(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return te(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return te(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 h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var e5=te("accordion").parts("root","container","button","panel").extend("icon"),t5=te("alert").parts("title","description","container").extend("icon","spinner"),r5=te("avatar").parts("label","badge","container").extend("excessLabel","group"),n5=te("breadcrumb").parts("link","item","container").extend("separator");te("button").parts();var o5=te("checkbox").parts("control","icon","container").extend("label");te("progress").parts("track","filledTrack").extend("label");var i5=te("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),s5=te("editable").parts("preview","input","textarea"),a5=te("form").parts("container","requiredIndicator","helperText"),l5=te("formError").parts("text","icon"),u5=te("input").parts("addon","field","element","group"),c5=te("list").parts("container","item","icon"),d5=te("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),f5=te("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h5=te("numberinput").parts("root","field","stepperGroup","stepper");te("pininput").parts("field");var p5=te("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),m5=te("progress").parts("label","filledTrack","track"),g5=te("radio").parts("container","control","label"),y5=te("select").parts("field","icon"),v5=te("slider").parts("container","track","thumb","filledTrack","mark"),S5=te("stat").parts("container","label","helpText","number","icon"),b5=te("switch").parts("container","track","thumb","label"),x5=te("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),w5=te("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),_5=te("tag").parts("container","label","closeButton"),k5=te("card").parts("container","header","body","footer");te("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Bn(e,t,r){return Math.min(Math.max(e,r),t)}class C5 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var ji=C5;function op(e){if(typeof e!="string")throw new ji(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=M5.test(e)?E5(e):e;const r=R5.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(Es(a,2),16)),parseInt(Es(s[3]||"f",2),16)/255]}const n=$5.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=A5.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=z5.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Bn(0,100,a)!==a)throw new ji(e);if(Bn(0,100,l)!==l)throw new ji(e);return[...I5(s,a,l),Number.isNaN(u)?1:u]}throw new ji(e)}function T5(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const L0=e=>parseInt(e.replace(/_/g,""),36),P5="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 r=L0(t.substring(0,3)),n=L0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function E5(e){const t=e.toLowerCase().trim(),r=P5[T5(t)];if(!r)throw new ji(e);return`#${r}`}const Es=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),R5=new RegExp(`^#${Es("([a-f0-9])",3)}([a-f0-9])?$`,"i"),$5=new RegExp(`^#${Es("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),A5=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Es(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),z5=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,M5=/^[a-z]+$/i,B0=e=>Math.round(e*255),I5=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(B0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-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=n-i/2,d=a+c,f=l+c,h=u+c;return[d,f,h].map(B0)};function j5(e,t,r,n){return`rgba(${Bn(0,255,e).toFixed()}, ${Bn(0,255,t).toFixed()}, ${Bn(0,255,r).toFixed()}, ${parseFloat(Bn(0,1,n).toFixed(3))})`}function D5(e,t){const[r,n,o,i]=op(e);return j5(r,n,o,i-t)}function F5(e){const[t,r,n,o]=op(e);let i=s=>{const a=Bn(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function O5(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,et=(e,t,r)=>{const n=O5(e,`colors.${t}`,t);try{return F5(n),n}catch{return r??"#000000"}},B5=e=>{const[t,r,n]=op(e);return(t*299+r*587+n*114)/1e3},N5=e=>t=>{const r=et(t,e);return B5(r)<128?"dark":"light"},V5=e=>t=>N5(e)(t)==="dark",Zo=(e,t)=>r=>{const n=et(r,e);return D5(n,1-t)};function N0(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 W5=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function U5(e){const t=W5();return!e||L5(e)?t:e.string&&e.colors?G5(e.string,e.colors):e.string&&!e.colors?H5(e.string):e.colors&&!e.string?K5(e.colors):t}function H5(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function G5(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function ip(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function VS(e){return Jt(e)&&e.reference?e.reference:String(e)}var Vu=(e,...t)=>t.map(VS).join(` ${e} `).replace(/calc/g,""),V0=(...e)=>`calc(${Vu("+",...e)})`,W0=(...e)=>`calc(${Vu("-",...e)})`,wf=(...e)=>`calc(${Vu("*",...e)})`,U0=(...e)=>`calc(${Vu("/",...e)})`,H0=e=>{const t=VS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:wf(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(V0(e,...t)),subtract:(...t)=>wr(W0(e,...t)),multiply:(...t)=>wr(wf(e,...t)),divide:(...t)=>wr(U0(e,...t)),negate:()=>wr(H0(e)),toString:()=>e.toString()}),{add:V0,subtract:W0,multiply:wf,divide:U0,negate:H0});function q5(e){return!Number.isInteger(parseFloat(e.toString()))}function Y5(e,t="-"){return e.replace(/\s+/g,t)}function WS(e){const t=Y5(e.toString());return t.includes("\\.")?e:q5(e)?t.replace(".","\\."):e}function X5(e,t=""){return[t,WS(e)].filter(Boolean).join("-")}function Q5(e,t){return`var(${WS(e)}${t?`, ${t}`:""})`}function Z5(e,t=""){return`--${X5(e,t)}`}function Ie(e,t){const r=Z5(e,t==null?void 0:t.prefix);return{variable:r,reference:Q5(r,J5(t==null?void 0:t.fallback))}}function J5(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:eE,definePartsStyle:ol}=le(b5.keys),Xi=Ie("switch-track-width"),Un=Ie("switch-track-height"),Vc=Ie("switch-track-diff"),tE=wr.subtract(Xi,Un),_f=Ie("switch-thumb-x"),ki=Ie("switch-bg"),rE=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xi.reference],height:[Un.reference],transitionProperty:"common",transitionDuration:"fast",[ki.variable]:"colors.gray.300",_dark:{[ki.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ki.variable]:`colors.${t}.500`,_dark:{[ki.variable]:`colors.${t}.200`}},bg:ki.reference}},nE={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Un.reference],height:[Un.reference],_checked:{transform:`translateX(${_f.reference})`}},oE=ol(e=>({container:{[Vc.variable]:tE,[_f.variable]:Vc.reference,_rtl:{[_f.variable]:wr(Vc).negate().toString()}},track:rE(e),thumb:nE})),iE={sm:ol({container:{[Xi.variable]:"1.375rem",[Un.variable]:"sizes.3"}}),md:ol({container:{[Xi.variable]:"1.875rem",[Un.variable]:"sizes.4"}}),lg:ol({container:{[Xi.variable]:"2.875rem",[Un.variable]:"sizes.6"}})},sE=eE({baseStyle:oE,sizes:iE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aE,definePartsStyle:Bo}=le(x5.keys),lE=Bo({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"}}),Gl={"&[data-is-numeric=true]":{textAlign:"end"}},uE=Bo(e=>{const{colorScheme:t}=e;return{th:{color:F("gray.600","gray.400")(e),borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Gl},td:{borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Gl},caption:{color:F("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),cE=Bo(e=>{const{colorScheme:t}=e;return{th:{color:F("gray.600","gray.400")(e),borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Gl},td:{borderBottom:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e),...Gl},caption:{color:F("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:F(`${t}.100`,`${t}.700`)(e)},td:{background:F(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dE={simple:uE,striped:cE,unstyled:{}},fE={sm:Bo({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:Bo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Bo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},hE=aE({baseStyle:lE,variants:dE,sizes:fE,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),at=O("tabs-color"),Yt=O("tabs-bg"),Ea=O("tabs-border-color"),{defineMultiStyleConfig:pE,definePartsStyle:pr}=le(w5.keys),mE=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gE=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}}},yE=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},vE={p:4},SE=pr(e=>({root:mE(e),tab:gE(e),tablist:yE(e),tabpanel:vE})),bE={sm:pr({tab:{py:1,px:4,fontSize:"sm"}}),md:pr({tab:{fontSize:"md",py:2,px:4}}),lg:pr({tab:{fontSize:"lg",py:3,px:4}})},xE=pr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[at.variable]:`colors.${t}.600`,_dark:{[at.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:at.reference,bg:Yt.reference}}}),wE=pr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ea.variable]:"transparent",_selected:{[at.variable]:`colors.${t}.600`,[Ea.variable]:"colors.white",_dark:{[at.variable]:`colors.${t}.300`,[Ea.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ea.reference},color:at.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),_E=pr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Yt.variable]:"colors.gray.50",_dark:{[Yt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Yt.variable]:"colors.white",[at.variable]:`colors.${t}.600`,_dark:{[Yt.variable]:"colors.gray.800",[at.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:at.reference,bg:Yt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),kE=pr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:et(r,`${t}.700`),bg:et(r,`${t}.100`)}}}}),CE=pr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[at.variable]:"colors.gray.600",_dark:{[at.variable]:"inherit"},_selected:{[at.variable]:"colors.white",[Yt.variable]:`colors.${t}.600`,_dark:{[at.variable]:"colors.gray.800",[Yt.variable]:`colors.${t}.300`}},color:at.reference,bg:Yt.reference}}}),TE=pr({}),PE={line:xE,enclosed:wE,"enclosed-colored":_E,"soft-rounded":kE,"solid-rounded":CE,unstyled:TE},EE=pE({baseStyle:SE,sizes:bE,variants:PE,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ce=qT("badge",["bg","color","shadow"]),RE={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},$E=e=>{const{colorScheme:t,theme:r}=e,n=Zo(`${t}.500`,.6)(r);return{[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:n,[Ce.color.variable]:"colors.whiteAlpha.800"}}},AE=e=>{const{colorScheme:t,theme:r}=e,n=Zo(`${t}.200`,.16)(r);return{[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:n,[Ce.color.variable]:`colors.${t}.200`}}},zE=e=>{const{colorScheme:t,theme:r}=e,n=Zo(`${t}.200`,.8)(r);return{[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:n},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},ME={solid:$E,subtle:AE,outline:zE},Qi={baseStyle:RE,variants:ME,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:IE,definePartsStyle:Hn}=le(_5.keys),G0=O("tag-bg"),K0=O("tag-color"),Wc=O("tag-shadow"),il=O("tag-min-height"),sl=O("tag-min-width"),al=O("tag-font-size"),ll=O("tag-padding-inline"),jE={fontWeight:"medium",lineHeight:1.2,outline:0,[K0.variable]:Ce.color.reference,[G0.variable]:Ce.bg.reference,[Wc.variable]:Ce.shadow.reference,color:K0.reference,bg:G0.reference,boxShadow:Wc.reference,borderRadius:"md",minH:il.reference,minW:sl.reference,fontSize:al.reference,px:ll.reference,_focusVisible:{[Wc.variable]:"shadows.outline"}},DE={lineHeight:1.2,overflow:"visible"},FE={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}},OE=Hn({container:jE,label:DE,closeButton:FE}),LE={sm:Hn({container:{[il.variable]:"sizes.5",[sl.variable]:"sizes.5",[al.variable]:"fontSizes.xs",[ll.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Hn({container:{[il.variable]:"sizes.6",[sl.variable]:"sizes.6",[al.variable]:"fontSizes.sm",[ll.variable]:"space.2"}}),lg:Hn({container:{[il.variable]:"sizes.8",[sl.variable]:"sizes.8",[al.variable]:"fontSizes.md",[ll.variable]:"space.3"}})},BE={subtle:Hn(e=>{var t;return{container:(t=Qi.variants)==null?void 0:t.subtle(e)}}),solid:Hn(e=>{var t;return{container:(t=Qi.variants)==null?void 0:t.solid(e)}}),outline:Hn(e=>{var t;return{container:(t=Qi.variants)==null?void 0:t.outline(e)}})},NE=IE({variants:BE,baseStyle:OE,sizes:LE,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Cr,defineMultiStyleConfig:VE}=le(u5.keys),Co=O("input-height"),To=O("input-font-size"),Po=O("input-padding"),Eo=O("input-border-radius"),WE=Cr({addon:{height:Co.reference,fontSize:To.reference,px:Po.reference,borderRadius:Eo.reference},field:{width:"100%",height:Co.reference,fontSize:To.reference,px:Po.reference,borderRadius:Eo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Kr={lg:{[To.variable]:"fontSizes.lg",[Po.variable]:"space.4",[Eo.variable]:"radii.md",[Co.variable]:"sizes.12"},md:{[To.variable]:"fontSizes.md",[Po.variable]:"space.4",[Eo.variable]:"radii.md",[Co.variable]:"sizes.10"},sm:{[To.variable]:"fontSizes.sm",[Po.variable]:"space.3",[Eo.variable]:"radii.sm",[Co.variable]:"sizes.8"},xs:{[To.variable]:"fontSizes.xs",[Po.variable]:"space.2",[Eo.variable]:"radii.sm",[Co.variable]:"sizes.6"}},UE={lg:Cr({field:Kr.lg,group:Kr.lg}),md:Cr({field:Kr.md,group:Kr.md}),sm:Cr({field:Kr.sm,group:Kr.sm}),xs:Cr({field:Kr.xs,group:Kr.xs})};function sp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||F("blue.500","blue.300")(e),errorBorderColor:r||F("red.500","red.300")(e)}}var HE=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=sp(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:F("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,n),boxShadow:`0 0 0 1px ${et(t,n)}`},_focusVisible:{zIndex:1,borderColor:et(t,r),boxShadow:`0 0 0 1px ${et(t,r)}`}},addon:{border:"1px solid",borderColor:F("inherit","whiteAlpha.50")(e),bg:F("gray.100","whiteAlpha.300")(e)}}}),GE=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=sp(e);return{field:{border:"2px solid",borderColor:"transparent",bg:F("gray.100","whiteAlpha.50")(e),_hover:{bg:F("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,n)},_focusVisible:{bg:"transparent",borderColor:et(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:F("gray.100","whiteAlpha.50")(e)}}}),KE=Cr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=sp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,n),boxShadow:`0px 1px 0px 0px ${et(t,n)}`},_focusVisible:{borderColor:et(t,r),boxShadow:`0px 1px 0px 0px ${et(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),qE=Cr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),YE={outline:HE,filled:GE,flushed:KE,unstyled:qE},ee=VE({baseStyle:WE,sizes:UE,variants:YE,defaultProps:{size:"md",variant:"outline"}}),q0,XE={...(q0=ee.baseStyle)==null?void 0:q0.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Y0,X0,QE={outline:e=>{var t,r;return(r=(t=ee.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ee.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ee.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(X0=(Y0=ee.variants)==null?void 0:Y0.unstyled.field)!=null?X0:{}},Q0,Z0,J0,eg,tg,rg,ng,og,ZE={xs:(Z0=(Q0=ee.sizes)==null?void 0:Q0.xs.field)!=null?Z0:{},sm:(eg=(J0=ee.sizes)==null?void 0:J0.sm.field)!=null?eg:{},md:(rg=(tg=ee.sizes)==null?void 0:tg.md.field)!=null?rg:{},lg:(og=(ng=ee.sizes)==null?void 0:ng.lg.field)!=null?og:{}},JE={baseStyle:XE,sizes:ZE,variants:QE,defaultProps:{size:"md",variant:"outline"}},Ra=Ie("tooltip-bg"),Uc=Ie("tooltip-fg"),e3=Ie("popper-arrow-bg"),t3={bg:Ra.reference,color:Uc.reference,[Ra.variable]:"colors.gray.700",[Uc.variable]:"colors.whiteAlpha.900",_dark:{[Ra.variable]:"colors.gray.300",[Uc.variable]:"colors.gray.900"},[e3.variable]:Ra.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},r3={baseStyle:t3},{defineMultiStyleConfig:n3,definePartsStyle:Di}=le(m5.keys),o3=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=F(N0(),N0("1rem","rgba(0,0,0,0.1)"))(e),s=F(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${et(r,s)} 50%, + transparent 100% + )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},i3={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},s3=e=>({bg:F("gray.100","whiteAlpha.300")(e)}),a3=e=>({transitionProperty:"common",transitionDuration:"slow",...o3(e)}),l3=Di(e=>({label:i3,filledTrack:a3(e),track:s3(e)})),u3={xs:Di({track:{h:"1"}}),sm:Di({track:{h:"2"}}),md:Di({track:{h:"3"}}),lg:Di({track:{h:"4"}})},c3=n3({sizes:u3,baseStyle:l3,defaultProps:{size:"md",colorScheme:"blue"}}),d3=e=>typeof e=="function";function rt(e,...t){return d3(e)?e(...t):e}var{definePartsStyle:ul,defineMultiStyleConfig:f3}=le(o5.keys),Zi=O("checkbox-size"),h3=e=>{const{colorScheme:t}=e;return{w:Zi.reference,h:Zi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:F(`${t}.500`,`${t}.200`)(e),borderColor:F(`${t}.500`,`${t}.200`)(e),color:F("white","gray.900")(e),_hover:{bg:F(`${t}.600`,`${t}.300`)(e),borderColor:F(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:F("gray.200","transparent")(e),bg:F("gray.200","whiteAlpha.300")(e),color:F("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:F(`${t}.500`,`${t}.200`)(e),borderColor:F(`${t}.500`,`${t}.200`)(e),color:F("white","gray.900")(e)},_disabled:{bg:F("gray.100","whiteAlpha.100")(e),borderColor:F("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:F("red.500","red.300")(e)}}},p3={_disabled:{cursor:"not-allowed"}},m3={userSelect:"none",_disabled:{opacity:.4}},g3={transitionProperty:"transform",transitionDuration:"normal"},y3=ul(e=>({icon:g3,container:p3,control:rt(h3,e),label:m3})),v3={sm:ul({control:{[Zi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ul({control:{[Zi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ul({control:{[Zi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Kl=f3({baseStyle:y3,sizes:v3,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S3,definePartsStyle:cl}=le(g5.keys),b3=e=>{var t;const r=(t=rt(Kl.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},x3=cl(e=>{var t,r,n,o;return{label:(r=(t=Kl).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Kl).baseStyle)==null?void 0:o.call(n,e).container,control:b3(e)}}),w3={md:cl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:cl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:cl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},_3=S3({baseStyle:x3,sizes:w3,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:k3,definePartsStyle:C3}=le(y5.keys),$a=O("select-bg"),ig,T3={...(ig=ee.baseStyle)==null?void 0:ig.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$a.reference,[$a.variable]:"colors.white",_dark:{[$a.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$a.reference}},P3={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},E3=C3({field:T3,icon:P3}),Aa={paddingInlineEnd:"8"},sg,ag,lg,ug,cg,dg,fg,hg,R3={lg:{...(sg=ee.sizes)==null?void 0:sg.lg,field:{...(ag=ee.sizes)==null?void 0:ag.lg.field,...Aa}},md:{...(lg=ee.sizes)==null?void 0:lg.md,field:{...(ug=ee.sizes)==null?void 0:ug.md.field,...Aa}},sm:{...(cg=ee.sizes)==null?void 0:cg.sm,field:{...(dg=ee.sizes)==null?void 0:dg.sm.field,...Aa}},xs:{...(fg=ee.sizes)==null?void 0:fg.xs,field:{...(hg=ee.sizes)==null?void 0:hg.xs.field,...Aa},icon:{insetEnd:"1"}}},$3=k3({baseStyle:E3,sizes:R3,variants:ee.variants,defaultProps:ee.defaultProps}),Hc=O("skeleton-start-color"),Gc=O("skeleton-end-color"),A3={[Hc.variable]:"colors.gray.100",[Gc.variable]:"colors.gray.400",_dark:{[Hc.variable]:"colors.gray.800",[Gc.variable]:"colors.gray.600"},background:Hc.reference,borderColor:Gc.reference,opacity:.7,borderRadius:"sm"},z3={baseStyle:A3},Kc=O("skip-link-bg"),M3={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Kc.variable]:"colors.white",_dark:{[Kc.variable]:"colors.gray.700"},bg:Kc.reference}},I3={baseStyle:M3},{defineMultiStyleConfig:j3,definePartsStyle:Wu}=le(v5.keys),Rs=O("slider-thumb-size"),$s=O("slider-track-size"),tn=O("slider-bg"),D3=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ip({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},F3=e=>({...ip({orientation:e.orientation,horizontal:{h:$s.reference},vertical:{w:$s.reference}}),overflow:"hidden",borderRadius:"sm",[tn.variable]:"colors.gray.200",_dark:{[tn.variable]:"colors.whiteAlpha.200"},_disabled:{[tn.variable]:"colors.gray.300",_dark:{[tn.variable]:"colors.whiteAlpha.300"}},bg:tn.reference}),O3=e=>{const{orientation:t}=e;return{...ip({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:Rs.reference,h:Rs.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"}}},L3=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[tn.variable]:`colors.${t}.500`,_dark:{[tn.variable]:`colors.${t}.200`},bg:tn.reference}},B3=Wu(e=>({container:D3(e),track:F3(e),thumb:O3(e),filledTrack:L3(e)})),N3=Wu({container:{[Rs.variable]:"sizes.4",[$s.variable]:"sizes.1"}}),V3=Wu({container:{[Rs.variable]:"sizes.3.5",[$s.variable]:"sizes.1"}}),W3=Wu({container:{[Rs.variable]:"sizes.2.5",[$s.variable]:"sizes.0.5"}}),U3={lg:N3,md:V3,sm:W3},H3=j3({baseStyle:B3,sizes:U3,defaultProps:{size:"md",colorScheme:"blue"}}),Dn=Ie("spinner-size"),G3={width:[Dn.reference],height:[Dn.reference]},K3={xs:{[Dn.variable]:"sizes.3"},sm:{[Dn.variable]:"sizes.4"},md:{[Dn.variable]:"sizes.6"},lg:{[Dn.variable]:"sizes.8"},xl:{[Dn.variable]:"sizes.12"}},q3={baseStyle:G3,sizes:K3,defaultProps:{size:"md"}},{defineMultiStyleConfig:Y3,definePartsStyle:US}=le(S5.keys),X3={fontWeight:"medium"},Q3={opacity:.8,marginBottom:"2"},Z3={verticalAlign:"baseline",fontWeight:"semibold"},J3={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},eR=US({container:{},label:X3,helpText:Q3,number:Z3,icon:J3}),tR={md:US({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},rR=Y3({baseStyle:eR,sizes:tR,defaultProps:{size:"md"}}),qc=O("kbd-bg"),nR={[qc.variable]:"colors.gray.100",_dark:{[qc.variable]:"colors.whiteAlpha.100"},bg:qc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},oR={baseStyle:nR},iR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},sR={baseStyle:iR},{defineMultiStyleConfig:aR,definePartsStyle:lR}=le(c5.keys),uR={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},cR=lR({icon:uR}),dR=aR({baseStyle:cR}),{defineMultiStyleConfig:fR,definePartsStyle:hR}=le(d5.keys),ar=O("menu-bg"),Yc=O("menu-shadow"),pR={[ar.variable]:"#fff",[Yc.variable]:"shadows.sm",_dark:{[ar.variable]:"colors.gray.700",[Yc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ar.reference,boxShadow:Yc.reference},mR={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ar.variable]:"colors.gray.100",_dark:{[ar.variable]:"colors.whiteAlpha.100"}},_active:{[ar.variable]:"colors.gray.200",_dark:{[ar.variable]:"colors.whiteAlpha.200"}},_expanded:{[ar.variable]:"colors.gray.100",_dark:{[ar.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ar.reference},gR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yR={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},vR={opacity:.6},SR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},bR={transitionProperty:"common",transitionDuration:"normal"},xR=hR({button:bR,list:pR,item:mR,groupTitle:gR,icon:yR,command:vR,divider:SR}),wR=fR({baseStyle:xR}),{defineMultiStyleConfig:_R,definePartsStyle:kf}=le(f5.keys),Xc=O("modal-bg"),Qc=O("modal-shadow"),kR={bg:"blackAlpha.600",zIndex:"modal"},CR=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},TR=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Xc.variable]:"colors.white",[Qc.variable]:"shadows.lg",_dark:{[Xc.variable]:"colors.gray.700",[Qc.variable]:"shadows.dark-lg"},bg:Xc.reference,boxShadow:Qc.reference}},PR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ER={position:"absolute",top:"2",insetEnd:"3"},RR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},$R={px:"6",py:"4"},AR=kf(e=>({overlay:kR,dialogContainer:rt(CR,e),dialog:rt(TR,e),header:PR,closeButton:ER,body:rt(RR,e),footer:$R}));function Ut(e){return kf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var zR={xs:Ut("xs"),sm:Ut("sm"),md:Ut("md"),lg:Ut("lg"),xl:Ut("xl"),"2xl":Ut("2xl"),"3xl":Ut("3xl"),"4xl":Ut("4xl"),"5xl":Ut("5xl"),"6xl":Ut("6xl"),full:Ut("full")},MR=_R({baseStyle:AR,sizes:zR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:IR,definePartsStyle:HS}=le(h5.keys),ap=Ie("number-input-stepper-width"),GS=Ie("number-input-input-padding"),jR=wr(ap).add("0.5rem").toString(),Zc=Ie("number-input-bg"),Jc=Ie("number-input-color"),ed=Ie("number-input-border-color"),DR={[ap.variable]:"sizes.6",[GS.variable]:jR},FR=e=>{var t,r;return(r=(t=rt(ee.baseStyle,e))==null?void 0:t.field)!=null?r:{}},OR={width:ap.reference},LR={borderStart:"1px solid",borderStartColor:ed.reference,color:Jc.reference,bg:Zc.reference,[Jc.variable]:"colors.chakra-body-text",[ed.variable]:"colors.chakra-border-color",_dark:{[Jc.variable]:"colors.whiteAlpha.800",[ed.variable]:"colors.whiteAlpha.300"},_active:{[Zc.variable]:"colors.gray.200",_dark:{[Zc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},BR=HS(e=>{var t;return{root:DR,field:(t=rt(FR,e))!=null?t:{},stepperGroup:OR,stepper:LR}});function za(e){var t,r,n;const o=(t=ee.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",a=LS.fontSizes[s];return HS({field:{...o.field,paddingInlineEnd:GS.reference,verticalAlign:"top"},stepper:{fontSize:wr(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var NR={xs:za("xs"),sm:za("sm"),md:za("md"),lg:za("lg")},VR=IR({baseStyle:BR,sizes:NR,variants:ee.variants,defaultProps:ee.defaultProps}),pg,WR={...(pg=ee.baseStyle)==null?void 0:pg.field,textAlign:"center"},UR={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"}},mg,gg,HR={outline:e=>{var t,r,n;return(n=(r=rt((t=ee.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=rt((t=ee.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=rt((t=ee.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(gg=(mg=ee.variants)==null?void 0:mg.unstyled.field)!=null?gg:{}},GR={baseStyle:WR,sizes:UR,variants:HR,defaultProps:ee.defaultProps},{defineMultiStyleConfig:KR,definePartsStyle:qR}=le(p5.keys),Ma=Ie("popper-bg"),YR=Ie("popper-arrow-bg"),yg=Ie("popper-arrow-shadow-color"),XR={zIndex:10},QR={[Ma.variable]:"colors.white",bg:Ma.reference,[YR.variable]:Ma.reference,[yg.variable]:"colors.gray.200",_dark:{[Ma.variable]:"colors.gray.700",[yg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},ZR={px:3,py:2,borderBottomWidth:"1px"},JR={px:3,py:2},e$={px:3,py:2,borderTopWidth:"1px"},t$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},r$=qR({popper:XR,content:QR,header:ZR,body:JR,footer:e$,closeButton:t$}),n$=KR({baseStyle:r$}),{definePartsStyle:Cf,defineMultiStyleConfig:o$}=le(i5.keys),td=O("drawer-bg"),rd=O("drawer-box-shadow");function uo(e){return Cf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var i$={bg:"blackAlpha.600",zIndex:"modal"},s$={display:"flex",zIndex:"modal",justifyContent:"center"},a$=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[td.variable]:"colors.white",[rd.variable]:"shadows.lg",_dark:{[td.variable]:"colors.gray.700",[rd.variable]:"shadows.dark-lg"},bg:td.reference,boxShadow:rd.reference}},l$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},u$={position:"absolute",top:"2",insetEnd:"3"},c$={px:"6",py:"2",flex:"1",overflow:"auto"},d$={px:"6",py:"4"},f$=Cf(e=>({overlay:i$,dialogContainer:s$,dialog:rt(a$,e),header:l$,closeButton:u$,body:c$,footer:d$})),h$={xs:uo("xs"),sm:uo("md"),md:uo("lg"),lg:uo("2xl"),xl:uo("4xl"),full:uo("full")},p$=o$({baseStyle:f$,sizes:h$,defaultProps:{size:"xs"}}),{definePartsStyle:m$,defineMultiStyleConfig:g$}=le(s5.keys),y$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},v$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},S$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},b$=m$({preview:y$,input:v$,textarea:S$}),x$=g$({baseStyle:b$}),{definePartsStyle:w$,defineMultiStyleConfig:_$}=le(a5.keys),No=O("form-control-color"),k$={marginStart:"1",[No.variable]:"colors.red.500",_dark:{[No.variable]:"colors.red.300"},color:No.reference},C$={mt:"2",[No.variable]:"colors.gray.600",_dark:{[No.variable]:"colors.whiteAlpha.600"},color:No.reference,lineHeight:"normal",fontSize:"sm"},T$=w$({container:{width:"100%",position:"relative"},requiredIndicator:k$,helperText:C$}),P$=_$({baseStyle:T$}),{definePartsStyle:E$,defineMultiStyleConfig:R$}=le(l5.keys),Vo=O("form-error-color"),$$={[Vo.variable]:"colors.red.500",_dark:{[Vo.variable]:"colors.red.300"},color:Vo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},A$={marginEnd:"0.5em",[Vo.variable]:"colors.red.500",_dark:{[Vo.variable]:"colors.red.300"},color:Vo.reference},z$=E$({text:$$,icon:A$}),M$=R$({baseStyle:z$}),I$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},j$={baseStyle:I$},D$={fontFamily:"heading",fontWeight:"bold"},F$={"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}},O$={baseStyle:D$,sizes:F$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:L$,definePartsStyle:B$}=le(n5.keys),nd=O("breadcrumb-link-decor"),N$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:nd.reference,[nd.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[nd.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},V$=B$({link:N$}),W$=L$({baseStyle:V$}),U$={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"}}},KS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:F("gray.800","whiteAlpha.900")(e),_hover:{bg:F("gray.100","whiteAlpha.200")(e)},_active:{bg:F("gray.200","whiteAlpha.300")(e)}};const n=Zo(`${t}.200`,.12)(r),o=Zo(`${t}.200`,.24)(r);return{color:F(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:F(`${t}.50`,n)(e)},_active:{bg:F(`${t}.100`,o)(e)}}},H$=e=>{const{colorScheme:t}=e,r=F("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...rt(KS,e)}},G$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},K$=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=F("gray.100","whiteAlpha.200")(e);return{bg:l,color:F("gray.800","whiteAlpha.900")(e),_hover:{bg:F("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:F("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=G$[r])!=null?t:{},a=F(n,`${r}.200`)(e);return{bg:a,color:F(o,"gray.800")(e),_hover:{bg:F(i,`${r}.300`)(e),_disabled:{bg:a}},_active:{bg:F(s,`${r}.400`)(e)}}},q$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:F(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:F(`${t}.700`,`${t}.500`)(e)}}},Y$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},X$={ghost:KS,outline:H$,solid:K$,link:q$,unstyled:Y$},Q$={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"}},Z$={baseStyle:U$,variants:X$,sizes:Q$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Gn,defineMultiStyleConfig:J$}=le(k5.keys),ql=O("card-bg"),Er=O("card-padding"),qS=O("card-shadow"),dl=O("card-radius"),YS=O("card-border-width","0"),XS=O("card-border-color"),eA=Gn({container:{[ql.variable]:"colors.chakra-body-bg",backgroundColor:ql.reference,boxShadow:qS.reference,borderRadius:dl.reference,color:"chakra-body-text",borderWidth:YS.reference,borderColor:XS.reference},body:{padding:Er.reference,flex:"1 1 0%"},header:{padding:Er.reference},footer:{padding:Er.reference}}),tA={sm:Gn({container:{[dl.variable]:"radii.base",[Er.variable]:"space.3"}}),md:Gn({container:{[dl.variable]:"radii.md",[Er.variable]:"space.5"}}),lg:Gn({container:{[dl.variable]:"radii.xl",[Er.variable]:"space.7"}})},rA={elevated:Gn({container:{[qS.variable]:"shadows.base",_dark:{[ql.variable]:"colors.gray.700"}}}),outline:Gn({container:{[YS.variable]:"1px",[XS.variable]:"colors.chakra-border-color"}}),filled:Gn({container:{[ql.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Er.variable]:0},header:{[Er.variable]:0},footer:{[Er.variable]:0}}},nA=J$({baseStyle:eA,variants:rA,sizes:tA,defaultProps:{variant:"elevated",size:"md"}}),Ji=Ie("close-button-size"),Ci=Ie("close-button-bg"),oA={w:[Ji.reference],h:[Ji.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ci.variable]:"colors.blackAlpha.100",_dark:{[Ci.variable]:"colors.whiteAlpha.100"}},_active:{[Ci.variable]:"colors.blackAlpha.200",_dark:{[Ci.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ci.reference},iA={lg:{[Ji.variable]:"sizes.10",fontSize:"md"},md:{[Ji.variable]:"sizes.8",fontSize:"xs"},sm:{[Ji.variable]:"sizes.6",fontSize:"2xs"}},sA={baseStyle:oA,sizes:iA,defaultProps:{size:"md"}},{variants:aA,defaultProps:lA}=Qi,uA={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},cA={baseStyle:uA,variants:aA,defaultProps:lA},dA={w:"100%",mx:"auto",maxW:"prose",px:"4"},fA={baseStyle:dA},hA={opacity:.6,borderColor:"inherit"},pA={borderStyle:"solid"},mA={borderStyle:"dashed"},gA={solid:pA,dashed:mA},yA={baseStyle:hA,variants:gA,defaultProps:{variant:"solid"}},{definePartsStyle:vA,defineMultiStyleConfig:SA}=le(e5.keys),bA={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},xA={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},wA={pt:"2",px:"4",pb:"5"},_A={fontSize:"1.25em"},kA=vA({container:bA,button:xA,panel:wA,icon:_A}),CA=SA({baseStyle:kA}),{definePartsStyle:Us,defineMultiStyleConfig:TA}=le(t5.keys),_t=O("alert-fg"),Fr=O("alert-bg"),PA=Us({container:{bg:Fr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:_t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:_t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function lp(e){const{theme:t,colorScheme:r}=e,n=Zo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var EA=Us(e=>{const{colorScheme:t}=e,r=lp(e);return{container:{[_t.variable]:`colors.${t}.600`,[Fr.variable]:r.light,_dark:{[_t.variable]:`colors.${t}.200`,[Fr.variable]:r.dark}}}}),RA=Us(e=>{const{colorScheme:t}=e,r=lp(e);return{container:{[_t.variable]:`colors.${t}.600`,[Fr.variable]:r.light,_dark:{[_t.variable]:`colors.${t}.200`,[Fr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:_t.reference}}}),$A=Us(e=>{const{colorScheme:t}=e,r=lp(e);return{container:{[_t.variable]:`colors.${t}.600`,[Fr.variable]:r.light,_dark:{[_t.variable]:`colors.${t}.200`,[Fr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:_t.reference}}}),AA=Us(e=>{const{colorScheme:t}=e;return{container:{[_t.variable]:"colors.white",[Fr.variable]:`colors.${t}.600`,_dark:{[_t.variable]:"colors.gray.900",[Fr.variable]:`colors.${t}.200`},color:_t.reference}}}),zA={subtle:EA,"left-accent":RA,"top-accent":$A,solid:AA},MA=TA({baseStyle:PA,variants:zA,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:QS,defineMultiStyleConfig:IA}=le(r5.keys),Wo=O("avatar-border-color"),es=O("avatar-bg"),As=O("avatar-font-size"),Jo=O("avatar-size"),jA={borderRadius:"full",border:"0.2em solid",borderColor:Wo.reference,[Wo.variable]:"white",_dark:{[Wo.variable]:"colors.gray.800"}},DA={bg:es.reference,fontSize:As.reference,width:Jo.reference,height:Jo.reference,lineHeight:"1",[es.variable]:"colors.gray.200",_dark:{[es.variable]:"colors.whiteAlpha.400"}},FA=e=>{const{name:t,theme:r}=e,n=t?U5({string:t}):"colors.gray.400",o=V5(n)(r);let i="white";return o||(i="gray.800"),{bg:es.reference,fontSize:As.reference,color:i,borderColor:Wo.reference,verticalAlign:"top",width:Jo.reference,height:Jo.reference,"&:not([data-loaded])":{[es.variable]:n},[Wo.variable]:"colors.white",_dark:{[Wo.variable]:"colors.gray.800"}}},OA={fontSize:As.reference,lineHeight:"1"},LA=QS(e=>({badge:rt(jA,e),excessLabel:rt(DA,e),container:rt(FA,e),label:OA}));function qr(e){const t=e!=="100%"?NS[e]:void 0;return QS({container:{[Jo.variable]:t??e,[As.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Jo.variable]:t??e,[As.variable]:`calc(${t??e} / 2.5)`}})}var BA={"2xs":qr(4),xs:qr(6),sm:qr(8),md:qr(12),lg:qr(16),xl:qr(24),"2xl":qr(32),full:qr("100%")},NA=IA({baseStyle:LA,sizes:BA,defaultProps:{size:"md"}}),VA={Accordion:CA,Alert:MA,Avatar:NA,Badge:Qi,Breadcrumb:W$,Button:Z$,Checkbox:Kl,CloseButton:sA,Code:cA,Container:fA,Divider:yA,Drawer:p$,Editable:x$,Form:P$,FormError:M$,FormLabel:j$,Heading:O$,Input:ee,Kbd:oR,Link:sR,List:dR,Menu:wR,Modal:MR,NumberInput:VR,PinInput:GR,Popover:n$,Progress:c3,Radio:_3,Select:$3,Skeleton:z3,SkipLink:I3,Slider:H3,Spinner:q3,Stat:rR,Switch:sE,Table:hE,Tabs:EE,Tag:NE,Textarea:JE,Tooltip:r3,Card:nA,Stepper:JP},WA={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"}}},UA={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"}}},HA="ltr",GA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ZS={semanticTokens:WA,direction:HA,...XP,components:VA,styles:UA,config:GA};function Fi(e){return typeof e=="function"}function KA(...e){return t=>e.reduce((r,n)=>n(r),t)}var qA=e=>function(...r){let n=[...r],o=r[r.length-1];return TP(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,KA(...n.map(i=>s=>Fi(i)?i(s):XA(s,i)))(o)},YA=qA(ZS);function XA(...e){return Lt({},...e,JS)}function JS(e,t,r,n){if((Fi(e)||Fi(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Fi(e)?e(...o):e,s=Fi(t)?t(...o):t;return Lt({},i,s,JS)}}function QA(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function ZA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},eb=JA(ZA);function tb(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var rb=e=>tb(e,t=>t!=null);function e4(e){return typeof e=="function"}function nb(e,...t){return e4(e)?e(...t):e}var t4=typeof Element<"u",r4=typeof Map=="function",n4=typeof Set=="function",o4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!fl(e[n],t[n]))return!1;return!0}var i;if(r4&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!fl(n.value[1],t.get(n.value[0])))return!1;return!0}if(n4&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(o4&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])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),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(t4&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!fl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var i4=function(t,r){try{return fl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const s4=Yf(i4);function ob(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:s}=sT(),a=e?eb(i,`components.${e}`):void 0,l=n||a,u=Lt({theme:i,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},rb(QA(o,["children"]))),c=C.useRef({});if(l){const f=kP(l)(u);s4(c.current,f)||(c.current=f)}return c.current}function li(e,t={}){return ob(e,t)}function Uu(e,t={}){return ob(e,t)}var a4=new Set([...fP,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),l4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function u4(e){return l4.has(e)||!a4.has(e)}function c4(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function d4(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var f4=/^((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|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)-.*))$/,h4=mS(function(e){return f4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),p4=h4,m4=function(t){return t!=="theme"},vg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?p4:m4},Sg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},g4=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return xS(r,n,o),L2(function(){return wS(r,n,o)}),null},y4=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Sg(t,r,n),l=a||vg(o),u=!l("as");return function(){var c=arguments,d=n&&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,h=1;ht=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,a=tb(s,(d,f)=>pP(f)),l=nb(e,t),u=c4({},o,l,rb(a),i),c=OS(u)(t.theme);return n?[c,n]:c};function od(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=u4);const o=b4({baseStyle:r}),i=S4(e,n)(o);return Yn.forwardRef(function(l,u){const{colorMode:c,forced:d}=ep();return Yn.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function x4(){const e=new Map;return new Proxy(od,{apply(t,r,n){return od(...n)},get(t,r){return e.has(r)||e.set(r,od(r)),e.get(r)}})}var K=x4();function ie(e){return C.forwardRef(e)}function w4(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=C.createContext(void 0);o.displayName=n;function i(){var s;const a=C.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function _4(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=C.useMemo(()=>uP(r),[r]);return b.jsxs(V2,{theme:o,children:[b.jsx(k4,{root:t}),n]})}function k4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return b.jsx(Ou,{styles:r=>({[t]:r.__cssVars})})}w4({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function C4(){const{colorMode:e}=ep();return b.jsx(Ou,{styles:t=>{const r=eb(t,"styles.global"),n=nb(r,{theme:t,colorMode:e});return n?OS(n)(t):void 0}})}var ib=C.createContext({getDocument(){return document},getWindow(){return window}});ib.displayName="EnvironmentContext";function sb(e){const{children:t,environment:r,disabled:n}=e,o=C.useRef(null),i=C.useMemo(()=>r||{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}},[r]),s=!n||!r;return b.jsxs(ib.Provider,{value:i,children:[t,s&&b.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}sb.displayName="EnvironmentProvider";var T4=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=b.jsx(sb,{environment:a,disabled:u,children:t});return b.jsx(_4,{theme:s,cssVarsRoot:l,children:b.jsxs(AS,{colorModeManager:r,options:s.config,children:[i?b.jsx(G2,{scope:o}):b.jsx(H2,{}),!c&&b.jsx(C4,{}),n?b.jsx(RS,{zIndex:n,children:d}):d]})})},P4=(e,t)=>e.find(r=>r.id===t);function xg(e,t){const r=ab(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function ab(e,t){for(const[r,n]of Object.entries(e))if(P4(n,t))return r}function E4(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function R4(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=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:r,top:n,bottom:o,right:i,left:s}}function $4(e,t=[]){const r=C.useRef(e);return C.useEffect(()=>{r.current=e}),C.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function A4(e,t){const r=$4(e);C.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function wg(e,t){const r=C.useRef(!1),n=C.useRef(!1);C.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),C.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const lb=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Hu=C.createContext({}),Hs=C.createContext(null),Gu=typeof document<"u",up=Gu?C.useLayoutEffect:C.useEffect,ub=C.createContext({strict:!1}),cp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),z4="framerAppearId",cb="data-"+cp(z4),db={skipAnimations:!1,useManualTiming:!1};class _g{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function M4(e){let t=new _g,r=new _g,n=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&s.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=M4(()=>r=!0),d),{}),s=d=>{i[d].process(o)},a=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,I4),1),o.timestamp=d,o.isProcessing=!0,Ia.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,o.isProcessing||e(a)};return{schedule:Ia.reduce((d,f)=>{const h=i[f];return d[f]=(y,S=!1,w=!1)=>(r||l(),h.schedule(y,S,w)),d},{}),cancel:d=>Ia.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:dp,cancel:PD}=fb(queueMicrotask,!1);function j4(e,t,r,n){const{visualElement:o}=C.useContext(Hu),i=C.useContext(ub),s=C.useContext(Hs),a=C.useContext(lb).reducedMotion,l=C.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;C.useInsertionEffect(()=>{u&&u.update(r,s)});const c=C.useRef(!!(r[cb]&&!window.HandoffComplete));return up(()=>{u&&(dp.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),C.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function D4(e,t,r){return C.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ro(r)&&(r.current=n))},[t])}function zs(e){return typeof e=="string"||Array.isArray(e)}function Ku(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hp=["initial",...fp];function qu(e){return Ku(e.animate)||hp.some(t=>zs(e[t]))}function hb(e){return!!(qu(e)||e.variants)}function F4(e,t){if(qu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||zs(r)?r:void 0,animate:zs(n)?n:void 0}}return e.inherit!==!1?t:{}}function O4(e){const{initial:t,animate:r}=F4(e,C.useContext(Hu));return C.useMemo(()=>({initial:t,animate:r}),[kg(t),kg(r)])}function kg(e){return Array.isArray(e)?e.join(" "):e}const Cg={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"]},Ms={};for(const e in Cg)Ms[e]={isEnabled:t=>Cg[e].some(r=>!!t[r])};function L4(e){for(const t in e)Ms[t]={...Ms[t],...e[t]}}const pp=C.createContext({}),pb=C.createContext({}),B4=Symbol.for("motionComponentSymbol");function N4({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&L4(e);function i(a,l){let u;const c={...C.useContext(lb),...a,layoutId:V4(a)},{isStatic:d}=c,f=O4(a),h=n(a,d);if(!d&&Gu){f.visualElement=j4(o,h,c,t);const y=C.useContext(pb),S=C.useContext(ub).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,S,e,y))}return C.createElement(Hu.Provider,{value:f},u&&f.visualElement?C.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,a,D4(h,f.visualElement,l),h,d,f.visualElement))}const s=C.forwardRef(i);return s[B4]=o,s}function V4({layoutId:e}){const t=C.useContext(pp).id;return t&&e!==void 0?t+"-"+e:e}function W4(e){function t(n,o={}){return N4(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const U4=["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 mp(e){return typeof e!="string"||e.includes("-")?!1:!!(U4.indexOf(e)>-1||/[A-Z]/.test(e))}const Xl={};function H4(e){Object.assign(Xl,e)}const Gs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oo=new Set(Gs);function mb(e,{layout:t,layoutId:r}){return oo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Xl[e]||e==="opacity")}const mt=e=>!!(e&&e.getVelocity),G4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K4=Gs.length;function q4(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),yb=gb("--"),Y4=gb("var(--"),Ql=e=>Y4(e)&&X4.test(e),X4=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Q4=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gn=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},ts={...ui,transform:e=>gn(0,1,e)},ja={...ui,default:1},rs=e=>Math.round(e*1e5)/1e5,gp=/(-)?([\d]*\.?[\d])+/g,Z4=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,J4=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ks(e){return typeof e=="string"}const qs=e=>({test:t=>Ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yr=qs("deg"),mr=qs("%"),B=qs("px"),ez=qs("vh"),tz=qs("vw"),Tg={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},Pg={...ui,transform:Math.round},vb={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:Yr,rotateX:Yr,rotateY:Yr,rotateZ:Yr,scale:ja,scaleX:ja,scaleY:ja,scaleZ:ja,skew:Yr,skewX:Yr,skewY:Yr,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:ts,originX:Tg,originY:Tg,originZ:B,zIndex:Pg,fillOpacity:ts,strokeOpacity:ts,numOctaves:Pg};function yp(e,t,r,n){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(yb(d)){i[d]=f;continue}const h=vb[d],y=Q4(f,h);if(oo.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||n?o.transform=q4(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;o.transformOrigin=`${d} ${f} ${h}`}}const vp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sb(e,t,r){for(const n in t)!mt(t[n])&&!mb(n,r)&&(e[n]=t[n])}function rz({transformTemplate:e},t,r){return C.useMemo(()=>{const n=vp();return yp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function nz(e,t,r){const n=e.style||{},o={};return Sb(o,n,e),Object.assign(o,rz(e,t,r)),o}function oz(e,t,r){const n={},o=nz(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const iz=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")||iz.has(e)}let bb=e=>!Zl(e);function sz(e){e&&(bb=t=>t.startsWith("on")?!Zl(t):e(t))}try{sz(require("@emotion/is-prop-valid").default)}catch{}function az(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(bb(o)||r===!0&&Zl(o)||!t&&!Zl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Eg(e,t,r){return typeof e=="string"?e:B.transform(t+r*e)}function lz(e,t,r){const n=Eg(t,e.x,e.width),o=Eg(r,e.y,e.height);return`${n} ${o}`}const uz={offset:"stroke-dashoffset",array:"stroke-dasharray"},cz={offset:"strokeDashoffset",array:"strokeDasharray"};function dz(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?uz:cz;e[i.offset]=B.transform(-n);const s=B.transform(t),a=B.transform(r);e[i.array]=`${s} ${a}`}function Sp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(yp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:S}=e;h.transform&&(S&&(y.transform=h.transform),delete h.transform),S&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=lz(S,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&dz(h,s,a,l,!1)}const xb=()=>({...vp(),attrs:{}}),bp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fz(e,t,r,n){const o=C.useMemo(()=>{const i=xb();return Sp(i,t,{enableHardwareAcceleration:!1},bp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Sb(i,e.style,e),o.style={...i,...o.style}}return o}function hz(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(mp(r)?fz:oz)(n,i,s,r),c={...az(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=C.useMemo(()=>mt(d)?d.get():d,[d]);return C.createElement(r,{...c,children:f})}}function wb(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const _b=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 kb(e,t,r,n){wb(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(_b.has(o)?o:cp(o),t.attrs[o])}function xp(e,t){const{style:r}=e,n={};for(const o in r)(mt(r[o])||t.style&&mt(t.style[o])||mb(o,e))&&(n[o]=r[o]);return n}function Cb(e,t){const r=xp(e,t);for(const n in e)if(mt(e[n])||mt(t[n])){const o=Gs.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function wp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Tb(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jl=e=>Array.isArray(e),pz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mz=e=>Jl(e)?e[e.length-1]||0:e;function hl(e){const t=mt(e)?e.get():e;return pz(t)?t.toValue():t}function gz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:yz(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const Pb=e=>(t,r)=>{const n=C.useContext(Hu),o=C.useContext(Hs),i=()=>gz(e,t,n,o);return r?i():Tb(i)};function yz(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=hl(i[f]);let{initial:s,animate:a}=e;const l=qu(e),u=hb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Ku(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const y=wp(e,h);if(!y)return;const{transitionEnd:S,transition:w,...g}=y;for(const p in g){let m=g[p];if(Array.isArray(m)){const x=c?m.length-1:0;m=m[x]}m!==null&&(o[p]=m)}for(const p in S)o[p]=S[p]}),o}const Re=e=>e,{schedule:me,cancel:Or,state:Ve,steps:id}=fb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Re,!0),vz={useVisualState:Pb({scrapeMotionValuesFromProps:Cb,createRenderState:xb,onMount:(e,t,{renderState:r,latestValues:n})=>{me.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),me.render(()=>{Sp(r,n,{enableHardwareAcceleration:!1},bp(t.tagName),e.transformTemplate),kb(t,r)})}})},Sz={useVisualState:Pb({scrapeMotionValuesFromProps:xp,createRenderState:vp})};function bz(e,{forwardMotionProps:t=!1},r,n){return{...mp(e)?vz:Sz,preloadedFeatures:r,useRender:hz(t),createVisualElement:n,Component:e}}function Tr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Eb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xz=e=>t=>Eb(t)&&e(t,Yu(t));function Rr(e,t,r,n){return Tr(e,t,xz(r),n)}const wz=(e,t)=>r=>t(e(r)),$r=(...e)=>e.reduce(wz);function Rb(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Rg=Rb("dragHorizontal"),$g=Rb("dragVertical");function $b(e){let t=!1;if(e==="y")t=$g();else if(e==="x")t=Rg();else{const r=Rg(),n=$g();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Ab(){const e=$b(!0);return e?(e(),!1):!0}class _n{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ag(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||Ab())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&me.update(()=>a[n](i,s))};return Rr(e.current,r,o,{passive:!e.getProps()[n]})}class _z extends _n{mount(){this.unmount=$r(Ag(this.node,!0),Ag(this.node,!1))}unmount(){}}class kz extends _n{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=$r(Tr(this.node.current,"focus",()=>this.onFocus()),Tr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zb=(e,t)=>t?e===t?!0:zb(e,t.parentElement):!1;function sd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Yu(r))}class Cz extends _n{constructor(){super(...arguments),this.removeStartListeners=Re,this.removeEndListeners=Re,this.removeAccessibleListeners=Re,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Rr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();me.update(()=>{!d&&!zb(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=Rr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$r(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||sd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&me.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Tr(this.node.current,"keyup",s),sd("down",(a,l)=>{this.startPress(a,l)})},r=Tr(this.node.current,"keydown",t),n=()=>{this.isPressing&&sd("cancel",(i,s)=>this.cancelPress(i,s))},o=Tr(this.node.current,"blur",n);this.removeAccessibleListeners=$r(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&me.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ab()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&me.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Rr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Tr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$r(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tf=new WeakMap,ad=new WeakMap,Tz=e=>{const t=Tf.get(e.target);t&&t(e)},Pz=e=>{e.forEach(Tz)};function Ez({root:e,...t}){const r=e||document;ad.has(r)||ad.set(r,{});const n=ad.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Pz,{root:e,...t})),n[o]}function Rz(e,t,r){const n=Ez(t);return Tf.set(e,r),n.observe(e),()=>{Tf.delete(e),n.unobserve(e)}}const $z={some:0,all:1};class Az extends _n{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:$z[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 Rz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(zz(t,r))&&this.startObserver()}unmount(){}}function zz({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Mz={inView:{Feature:Az},tap:{Feature:Cz},focus:{Feature:kz},hover:{Feature:_z}};function Mb(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function jz(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Xu(e,t,r){const n=e.getProps();return wp(n,t,r!==void 0?r:n.custom,Iz(e),jz(e))}let _p=Re;const Kn=e=>e*1e3,Ar=e=>e/1e3,Dz={current:!1},Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function jb(e){return!!(!e||typeof e=="string"&&Db[e]||Ib(e)||Array.isArray(e)&&e.every(jb))}const Oi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Db={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Oi([0,.65,.55,1]),circOut:Oi([.55,0,1,.45]),backIn:Oi([.31,.01,.66,-.59]),backOut:Oi([.33,1.53,.69,.99])};function Fb(e){if(e)return Ib(e)?Oi(e):Array.isArray(e)?e.map(Fb):Db[e]}function Fz(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=Fb(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Oz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Ob=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Lz=1e-7,Bz=12;function Nz(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=Ob(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>Lz&&++aNz(i,0,1,e,r);return i=>i===0||i===1?i:Ob(o(i),t,n)}const Vz=Ys(.42,0,1,1),Wz=Ys(0,0,.58,1),Lb=Ys(.42,0,.58,1),Uz=e=>Array.isArray(e)&&typeof e[0]!="number",Bb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Nb=e=>t=>1-e(1-t),kp=e=>1-Math.sin(Math.acos(e)),Vb=Nb(kp),Hz=Bb(kp),Wb=Ys(.33,1.53,.69,.99),Cp=Nb(Wb),Gz=Bb(Cp),Kz=e=>(e*=2)<1?.5*Cp(e):.5*(2-Math.pow(2,-10*(e-1))),qz={linear:Re,easeIn:Vz,easeInOut:Lb,easeOut:Wz,circIn:kp,circInOut:Hz,circOut:Vb,backIn:Cp,backInOut:Gz,backOut:Wb,anticipate:Kz},zg=e=>{if(Array.isArray(e)){_p(e.length===4);const[t,r,n,o]=e;return Ys(t,r,n,o)}else if(typeof e=="string")return qz[e];return e},Is=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},ve=(e,t,r)=>e+(t-e)*r;function ld(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Yz({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=ld(l,a,e+1/3),i=ld(l,a,e),s=ld(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}const Tp=(e,t)=>r=>!!(Ks(r)&&J4.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Ub=(e,t,r)=>n=>{if(!Ks(n))return n;const[o,i,s,a]=n.match(gp);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Xz=e=>gn(0,255,e),ud={...ui,transform:e=>Math.round(Xz(e))},Nn={test:Tp("rgb","red"),parse:Ub("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ud.transform(e)+", "+ud.transform(t)+", "+ud.transform(r)+", "+rs(ts.transform(n))+")"};function Qz(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Pf={test:Tp("#"),parse:Qz,transform:Nn.transform},$o={test:Tp("hsl","hue"),parse:Ub("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+mr.transform(rs(t))+", "+mr.transform(rs(r))+", "+rs(ts.transform(n))+")"},cd=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Zz=[Pf,Nn,$o],Jz=e=>Zz.find(t=>t.test(e));function Mg(e){const t=Jz(e);let r=t.parse(e);return t===$o&&(r=Yz(r)),r}const Ig=(e,t)=>{const r=Mg(e),n=Mg(t),o={...r};return i=>(o.red=cd(r.red,n.red,i),o.green=cd(r.green,n.green,i),o.blue=cd(r.blue,n.blue,i),o.alpha=ve(r.alpha,n.alpha,i),Nn.transform(o))},Ye={test:e=>Nn.test(e)||Pf.test(e)||$o.test(e),parse:e=>Nn.test(e)?Nn.parse(e):$o.test(e)?$o.parse(e):Pf.parse(e),transform:e=>Ks(e)?e:e.hasOwnProperty("red")?Nn.transform(e):$o.transform(e)};function eM(e){var t,r;return isNaN(e)&&Ks(e)&&(((t=e.match(gp))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Z4))===null||r===void 0?void 0:r.length)||0)>0}const Hb="number",Gb="color",tM="var",rM="var(",jg="${}",Dg=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function eu(e){const t=e.toString(),r=t.match(Dg)||[],n=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l{let i="";for(let s=0;stypeof e=="number"?0:e;function oM(e){const t=Kb(e);return qb(e)(t.map(nM))}const yn={test:eM,parse:Kb,createTransformer:qb,getAnimatableNone:oM};function Ef(e,t){return r=>r>0?t:e}function iM(e,t){return r=>ve(e,t,r)}function Pp(e){return typeof e=="number"?iM:typeof e=="string"?Ql(e)?Ef:Ye.test(e)?Ig:lM:Array.isArray(e)?Yb:typeof e=="object"?Ye.test(e)?Ig:sM:Ef}function Yb(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>Pp(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in n)r[i]=n[i](o);return r}}function aM(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i{const r=yn.createTransformer(t),n=eu(e),o=eu(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?$r(Yb(aM(n,o),o.values),r):Ef(e,t)};function Xb(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ve(e,t,r):Pp(e)(e,t)}function uM(e,t,r){const n=[],o=r||Xb,i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=uM(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(gn(e[0],e[i-1],u)):l}function dM(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Is(0,t,n);e.push(ve(r,1,o))}}function fM(e){const t=[0];return dM(t,e.length-1),t}function hM(e,t){return e.map(r=>r*t)}function pM(e,t){return e.map(()=>t||Lb).splice(0,e.length-1)}function tu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Uz(n)?n.map(zg):zg(n),i={done:!1,value:t[0]},s=hM(r&&r.length===t.length?r:fM(t),e),a=cM(s,t,{ease:Array.isArray(o)?o:pM(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Qb(e,t){return t?e*(1e3/t):0}const mM=5;function Zb(e,t,r){const n=Math.max(t-mM,0);return Qb(r-e(n),t-n)}const dd=.001,gM=.01,yM=10,vM=.05,SM=1;function bM({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,s=1-t;s=gn(vM,SM,s),e=gn(gM,yM,Ar(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,h=Rf(u,s),y=Math.exp(-d);return dd-f/h*y},i=u=>{const d=u*s*e,f=d*r+r,h=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),S=Rf(Math.pow(u,2),s);return(-o(u)+dd>0?-1:1)*((f-h)*y)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-dd+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=wM(o,i,a);if(e=Kn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const xM=12;function wM(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function CM(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Fg(e,kM)&&Fg(e,_M)){const r=bM(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Jb({keyframes:e,restDelta:t,restSpeed:r,...n}){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:f}=CM({...n,velocity:-Ar(n.velocity||0)}),h=d||0,y=l/(2*Math.sqrt(a*u)),S=i-o,w=Ar(Math.sqrt(a/u)),g=Math.abs(S)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let p;if(y<1){const m=Rf(w,y);p=x=>{const T=Math.exp(-y*w*x);return i-T*((h+y*w*S)/m*Math.sin(m*x)+S*Math.cos(m*x))}}else if(y===1)p=m=>i-Math.exp(-w*m)*(S+(h+w*S)*m);else{const m=w*Math.sqrt(y*y-1);p=x=>{const T=Math.exp(-y*w*x),$=Math.min(m*x,300);return i-T*((h+y*w*S)*Math.sinh($)+m*S*Math.cosh($))/m}}return{calculatedDuration:f&&c||null,next:m=>{const x=p(m);if(f)s.done=m>=c;else{let T=h;m!==0&&(y<1?T=Zb(p,m,x):T=0);const $=Math.abs(T)<=r,E=Math.abs(i-x)<=t;s.done=$&&E}return s.value=s.done?i:x,s}}}function Og({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=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},h=R=>a!==void 0&&Rl,y=R=>a===void 0?l:l===void 0||Math.abs(a-R)-S*Math.exp(-R/n),m=R=>g+p(R),x=R=>{const j=p(R),D=m(R);f.done=Math.abs(j)<=u,f.value=f.done?g:D};let T,$;const E=R=>{h(f.value)&&(T=R,$=Jb({keyframes:[f.value,y(f.value)],velocity:Zb(m,R,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:R=>{let j=!1;return!$&&T===void 0&&(j=!0,x(R),E(R)),T!==void 0&&R>T?$.next(R-T):(!j&&x(R),f)}}}let pl;function TM(){pl=void 0}const qn={now:()=>(pl===void 0&&qn.set(Ve.isProcessing||db.useManualTiming?Ve.timestamp:performance.now()),pl),set:e=>{pl=e,queueMicrotask(TM)}},PM=e=>{const t=({timestamp:r})=>e(r);return{start:()=>me.update(t,!0),stop:()=>Or(t),now:()=>Ve.isProcessing?Ve.timestamp:qn.now()}},Lg=2e4;function Bg(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Lg?1/0:t}const EM={decay:Og,inertia:Og,tween:tu,keyframes:tu,spring:Jb},RM=e=>e/100;function ru({autoplay:e=!0,delay:t=0,driver:r=PM,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,y=!1,S,w;const g=()=>{w=new Promise(N=>{S=N})};g();let p;const m=EM[o]||tu;let x;m!==tu&&typeof n[0]!="number"&&(x=$r(RM,Xb(n[0],n[1])),n=[0,100]);const T=m({...f,keyframes:n});let $;a==="mirror"&&($=m({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let E="idle",R=null,j=null,D=null;T.calculatedDuration===null&&i&&(T.calculatedDuration=Bg(T));const{calculatedDuration:xe}=T;let $e=1/0,Oe=1/0;xe!==null&&($e=xe+s,Oe=$e*(i+1)-s);let Te=0;const tr=N=>{if(j===null)return;h>0&&(j=Math.min(j,N)),h<0&&(j=Math.min(N-Oe/h,j)),R!==null?Te=R:Te=Math.round(N-j)*h;const se=Te-t*(h>=0?1:-1),Y=h>=0?se<0:se>Oe;Te=Math.max(se,0),E==="finished"&&R===null&&(Te=Oe);let gt=Te,Wr=T;if(i){const io=Math.min(Te,Oe)/$e;let Ur=Math.floor(io),nr=io%1;!nr&&io>=1&&(nr=1),nr===1&&Ur--,Ur=Math.min(Ur,i+1),!!(Ur%2)&&(a==="reverse"?(nr=1-nr,s&&(nr-=s/$e)):a==="mirror"&&(Wr=$)),gt=gn(0,1,nr)*$e}const Ae=Y?{done:!1,value:n[0]}:Wr.next(gt);x&&(Ae.value=x(Ae.value));let{done:rr}=Ae;!Y&&xe!==null&&(rr=h>=0?Te>=Oe:Te<=0);const kn=R===null&&(E==="finished"||E==="running"&&rr);return d&&d(Ae.value),kn&&z(),Ae},ge=()=>{p&&p.stop(),p=void 0},it=()=>{E="idle",ge(),S(),g(),j=D=null},z=()=>{E="finished",c&&c(),ge(),S()},L=()=>{if(y)return;p||(p=r(tr));const N=p.now();l&&l(),R!==null?j=N-R:(!j||E==="finished")&&(j=N),E==="finished"&&g(),D=j,R=null,E="running",p.start()};e&&L();const V={then(N,se){return w.then(N,se)},get time(){return Ar(Te)},set time(N){N=Kn(N),Te=N,R!==null||!p||h===0?R=N:j=p.now()-N/h},get duration(){const N=T.calculatedDuration===null?Bg(T):T.calculatedDuration;return Ar(N)},get speed(){return h},set speed(N){N===h||!p||(h=N,V.time=Ar(Te))},get state(){return E},play:L,pause:()=>{E="paused",R=Te},stop:()=>{y=!0,E!=="idle"&&(E="idle",u&&u(),it())},cancel:()=>{D!==null&&tr(D),it()},complete:()=>{E="finished"},sample:N=>(j=0,tr(N))};return V}function $M(e){let t;return()=>(t===void 0&&(t=e()),t)}const AM=$M(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zM=new Set(["opacity","clipPath","filter","transform"]),Da=10,MM=2e4,IM=(e,t)=>t.type==="spring"||e==="backgroundColor"||!jb(t.ease);function jM(e,t,{onUpdate:r,onComplete:n,...o}){if(!(AM()&&zM.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:h,times:y}=o;if(IM(t,o)){const m=ru({...o,repeat:0,delay:0});let x={done:!1,value:d[0]};const T=[];let $=0;for(;!x.done&&${u=!1,S.cancel()},g=()=>{u=!0,me.update(w),a(),c()};return S.onfinish=()=>{u||(e.set(Oz(d,o)),n&&n(),g())},{then(m,x){return l.then(m,x)},attachTimeline(m){return S.timeline=m,S.onfinish=null,Re},get time(){return Ar(S.currentTime||0)},set time(m){S.currentTime=Kn(m)},get speed(){return S.playbackRate},set speed(m){S.playbackRate=m},get duration(){return Ar(f)},play:()=>{s||(S.play(),Or(w))},pause:()=>S.pause(),stop:()=>{if(s=!0,S.playState==="idle")return;const{currentTime:m}=S;if(m){const x=ru({...o,autoplay:!1});e.setWithVelocity(x.sample(m-Da).value,x.sample(m).value,Da)}g()},complete:()=>{u||S.finish()},cancel:g}}function DM({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Re,pause:Re,stop:Re,then:i=>(i(),Promise.resolve()),cancel:Re,complete:Re});return t?ru({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const FM={type:"spring",stiffness:500,damping:25,restSpeed:10},OM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LM={type:"keyframes",duration:.8},BM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NM=(e,{keyframes:t})=>t.length>2?LM:oo.has(e)?e.startsWith("scale")?OM(t[1]):FM:BM,$f=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yn.test(t)||t==="0")&&!t.startsWith("url(")),VM=new Set(["brightness","contrast","saturate","opacity"]);function WM(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(gp)||[];if(!n)return e;const o=r.replace(n,"");let i=VM.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const UM=/([a-z-]*)\(.*?\)/g,Af={...yn,getAnimatableNone:e=>{const t=e.match(UM);return t?t.map(WM).join(" "):e}},HM={...vb,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:Af,WebkitFilter:Af},Ep=e=>HM[e];function ex(e,t){let r=Ep(e);return r!==Af&&(r=yn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tx=e=>/^0[^.\s]+$/.test(e);function GM(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tx(e)}function KM(e,t,r,n){const o=$f(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const s=n.from!==void 0?n.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Rp(n,e)||{},s=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Kn(s);const l=KM(t,e,r,i),u=l[0],c=l[l.length-1],d=$f(e,u),f=$f(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(qM(i)||(h={...h,...NM(e,h)}),h.duration&&(h.duration=Kn(h.duration)),h.repeatDelay&&(h.repeatDelay=Kn(h.repeatDelay)),!d||!f||Dz.current||i.type===!1||db.skipAnimations)return DM(h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=jM(t,e,h);if(y)return y}return ru(h)};function nu(e){return!!(mt(e)&&e.add)}const rx=e=>/^\-?\d*\.?\d+$/.test(e);function Ap(e,t){e.indexOf(t)===-1&&e.push(t)}function zp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mp{constructor(){this.subscriptions=[]}add(t){return Ap(this.subscriptions,t),()=>zp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class XM{constructor(t,r={}){this.version="11.0.5",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=qn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=YM(this.current),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=qn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mp);const n=this.events[t].add(r);return t==="change"?()=>{n(),me.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=qn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ng)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Ng);return Qb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 ei(e,t){return new XM(e,t)}const nx=e=>t=>t.test(e),QM={test:e=>e==="auto",parse:e=>e},ox=[ui,B,mr,Yr,tz,ez,QM],Ti=e=>ox.find(nx(e)),ZM=[...ox,Ye,yn],JM=e=>ZM.find(nx(e));function e6(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ei(r))}function t6(e,t){const r=Xu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const s in i){const a=mz(i[s]);e6(e,s,a)}}function r6(e,t,r){var n,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&t6(e,s)}),u}function zf(e,t,r={}){const n=Xu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(ix(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return a6(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function a6(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(l6).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(zf(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function l6(e,t){return e.sortNodePosition(t)}function u6(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>zf(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=zf(e,t,r);else{const o=typeof t=="function"?Xu(e,t,r.custom):t;n=Promise.all(ix(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const c6=[...fp].reverse(),d6=fp.length;function f6(e){return t=>Promise.all(t.map(({animation:r,options:n})=>u6(e,r,n)))}function h6(e){let t=f6(e);const r=m6();let n=!0;const o=(l,u)=>{const c=Xu(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let y={},S=1/0;for(let g=0;gS&&T,D=!1;const xe=Array.isArray(x)?x:[x];let $e=xe.reduce(o,{});$===!1&&($e={});const{prevResolvedValues:Oe={}}=m,Te={...Oe,...$e},tr=ge=>{j=!0,h.has(ge)&&(D=!0,h.delete(ge)),m.needsAnimating[ge]=!0};for(const ge in Te){const it=$e[ge],z=Oe[ge];if(y.hasOwnProperty(ge))continue;let L=!1;Jl(it)&&Jl(z)?L=!Mb(it,z):L=it!==z,L?it!==void 0?tr(ge):h.add(ge):it!==void 0&&h.has(ge)?tr(ge):m.protectedKeys[ge]=!0}m.prevProp=x,m.prevResolvedValues=$e,m.isActive&&(y={...y,...$e}),n&&e.blockInitialAnimation&&(j=!1),j&&(!E||D)&&f.push(...xe.map(ge=>({animation:ge,options:{type:p,...l}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),f.push({animation:g})}let w=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),r[l].isActive=u;const f=s(c,l);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function p6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mb(t,e):!1}function En(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function m6(){return{animate:En(!0),whileInView:En(),whileHover:En(),whileTap:En(),whileDrag:En(),whileFocus:En(),exit:En()}}class g6 extends _n{constructor(t){super(t),t.animationState||(t.animationState=h6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ku(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let y6=0;class v6 extends _n{constructor(){super(...arguments),this.id=y6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const S6={animation:{Feature:g6},exit:{Feature:v6}},Vg=(e,t)=>Math.abs(e-t);function b6(e,t){const r=Vg(e.x,t.x),n=Vg(e.y,t.y);return Math.sqrt(r**2+n**2)}class sx{constructor(t,r,{transformPagePoint:n,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=hd(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=b6(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:y}=d,{timestamp:S}=Ve;this.history.push({...y,timestamp:S});const{onStart:w,onMove:g}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=fd(f,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=hd(d.type==="pointercancel"?this.lastMoveEventInfo:fd(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,w),y&&y(d,w)},!Eb(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const s=Yu(t),a=fd(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ve;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,hd(a,this.history)),this.removeListeners=$r(Rr(this.contextWindow,"pointermove",this.handlePointerMove),Rr(this.contextWindow,"pointerup",this.handlePointerUp),Rr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Or(this.updatePoint)}}function fd(e,t){return t?{point:t(e.point)}:e}function Wg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hd({point:e},t){return{point:e,delta:Wg(e,ax(t)),offset:Wg(e,x6(t)),velocity:w6(t,.1)}}function x6(e){return e[0]}function ax(e){return e[e.length-1]}function w6(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=ax(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Kn(t)));)r--;if(!n)return{x:0,y:0};const i=Ar(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ct(e){return e.max-e.min}function Mf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ug(e,t,r,n=.5){e.origin=n,e.originPoint=ve(t.min,t.max,e.origin),e.scale=Ct(r)/Ct(t),(Mf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ve(r.min,r.max,e.origin)-e.originPoint,(Mf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ns(e,t,r,n){Ug(e.x,t.x,r.x,n?n.originX:void 0),Ug(e.y,t.y,r.y,n?n.originY:void 0)}function Hg(e,t,r){e.min=r.min+t.min,e.max=e.min+Ct(t)}function _6(e,t,r){Hg(e.x,t.x,r.x),Hg(e.y,t.y,r.y)}function Gg(e,t,r){e.min=t.min-r.min,e.max=e.min+Ct(t)}function os(e,t,r){Gg(e.x,t.x,r.x),Gg(e.y,t.y,r.y)}function k6(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ve(r,e,n.max):Math.min(e,r)),e}function Kg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function C6(e,{top:t,left:r,bottom:n,right:o}){return{x:Kg(e.x,r,o),y:Kg(e.y,t,n)}}function qg(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Is(t.min,t.max-n,e.min):n>o&&(r=Is(e.min,e.max-o,t.min)),gn(0,1,r)}function E6(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const If=.35;function R6(e=If){return e===!1?e=0:e===!0&&(e=If),{x:Yg(e,"left","right"),y:Yg(e,"top","bottom")}}function Yg(e,t,r){return{min:Xg(e,t),max:Xg(e,r)}}function Xg(e,t){return typeof e=="number"?e:e[t]||0}const Qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ao=()=>({x:Qg(),y:Qg()}),Zg=()=>({min:0,max:0}),_e=()=>({x:Zg(),y:Zg()});function jt(e){return[e("x"),e("y")]}function lx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function $6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function A6(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function pd(e){return e===void 0||e===1}function jf({scale:e,scaleX:t,scaleY:r}){return!pd(e)||!pd(t)||!pd(r)}function An(e){return jf(e)||ux(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ux(e){return Jg(e.x)||Jg(e.y)}function Jg(e){return e&&e!=="0%"}function ou(e,t,r){const n=e-r,o=t*n;return r+o}function ey(e,t,r,n,o){return o!==void 0&&(e=ou(e,o,n)),ou(e,r,n)+t}function Df(e,t=0,r=1,n,o){e.min=ey(e.min,t,r,n,o),e.max=ey(e.max,t,r,n,o)}function cx(e,{x:t,y:r}){Df(e.x,t.translate,t.scale,t.originPoint),Df(e.y,r.translate,r.scale,r.originPoint)}function z6(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Zr(e,t){e.min=e.min+t,e.max=e.max+t}function ry(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,s=ve(e.min,e.max,i);Df(e,t[r],t[n],s,t.scale)}const M6=["x","scaleX","originX"],I6=["y","scaleY","originY"];function zo(e,t){ry(e.x,t,M6),ry(e.y,t,I6)}function dx(e,t){return lx(A6(e.getBoundingClientRect(),t))}function j6(e,t,r){const n=dx(e,r),{scroll:o}=t;return o&&(Zr(n.x,o.offset.x),Zr(n.y,o.offset.y)),n}const fx=({current:e})=>e?e.ownerDocument.defaultView:null,D6=new WeakMap;class F6{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=_e(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Yu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:y}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=$b(f),!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),jt(w=>{let g=this.getAxisMotionValue(w).get()||0;if(mr.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[w];m&&(g=Ct(m)*(parseFloat(g)/100))}}this.originPoint[w]=g}),y&&me.update(()=>y(c,d),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(h&&this.currentDirection===null){this.currentDirection=O6(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>jt(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 sx(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:fx(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&me.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Fa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=k6(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=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;r&&Ro(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=C6(o.layoutBox,r):this.constraints=!1,this.elastic=R6(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&jt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=E6(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ro(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=j6(n,o.root,this.visualElement.getTransformPagePoint());let s=T6(o.layout.layoutBox,i);if(r){const a=r($6(s));this.hasMutatedConstraints=!!a,a&&(s=lx(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=jt(c=>{if(!Fa(c,r,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,y={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($p(t,n,0,r))}stopAnimation(){jt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jt(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){jt(r=>{const{drag:n}=this.getProps();if(!Fa(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-ve(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ro(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};jt(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=P6({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),jt(s=>{if(!Fa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ve(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;D6.set(this.visualElement,this);const t=this.visualElement.current,r=Rr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Ro(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=Tr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(jt(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(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=If,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Fa(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function O6(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class L6 extends _n{constructor(t){super(t),this.removeGroupControls=Re,this.removeListeners=Re,this.controls=new F6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Re}unmount(){this.removeGroupControls(),this.removeListeners()}}const ny=e=>(t,r)=>{e&&me.update(()=>e(t,r))};class B6 extends _n{constructor(){super(...arguments),this.removePointerDownListener=Re}onPointerDown(t){this.session=new sx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ny(t),onStart:ny(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&me.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Rr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function N6(){const e=C.useContext(Hs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=C.useId();return C.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function V6(){return W6(C.useContext(Hs))}function W6(e){return e===null?!0:e.isPresent}const ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const r=oy(e,t.target.x),n=oy(e,t.target.y);return`${r}% ${n}%`}},U6={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=yn.parse(e);if(o.length>5)return n;const i=yn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ve(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class H6 extends Yn.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;H4(G6),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ml.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||me.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),dp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function hx(e){const[t,r]=N6(),n=C.useContext(pp);return Yn.createElement(H6,{...e,layoutGroup:n,switchLayoutGroup:C.useContext(pb),isPresent:t,safeToRemove:r})}const G6={borderRadius:{...Pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pi,borderTopRightRadius:Pi,borderBottomLeftRadius:Pi,borderBottomRightRadius:Pi,boxShadow:U6},px=["TopLeft","TopRight","BottomLeft","BottomRight"],K6=px.length,iy=e=>typeof e=="string"?parseFloat(e):e,sy=e=>typeof e=="number"||B.test(e);function q6(e,t,r,n,o,i){o?(e.opacity=ve(0,r.opacity!==void 0?r.opacity:1,Y6(n)),e.opacityExit=ve(t.opacity!==void 0?t.opacity:1,0,X6(n))):i&&(e.opacity=ve(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Is(e,t,n))}function ly(e,t){e.min=t.min,e.max=t.max}function Mt(e,t){ly(e.x,t.x),ly(e.y,t.y)}function uy(e,t,r,n,o){return e-=t,e=ou(e,1/r,n),o!==void 0&&(e=ou(e,1/o,n)),e}function Q6(e,t=0,r=1,n=.5,o,i=e,s=e){if(mr.test(t)&&(t=parseFloat(t),t=ve(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ve(i.min,i.max,n);e===i&&(a-=t),e.min=uy(e.min,t,r,a,o),e.max=uy(e.max,t,r,a,o)}function cy(e,t,[r,n,o],i,s){Q6(e,t[r],t[n],t[o],t.scale,i,s)}const Z6=["x","scaleX","originX"],J6=["y","scaleY","originY"];function dy(e,t,r,n){cy(e.x,t,Z6,r?r.x:void 0,n?n.x:void 0),cy(e.y,t,J6,r?r.y:void 0,n?n.y:void 0)}function fy(e){return e.translate===0&&e.scale===1}function gx(e){return fy(e.x)&&fy(e.y)}function eI(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function yx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function hy(e){return Ct(e.x)/Ct(e.y)}class tI{constructor(){this.members=[]}add(t){Ap(this.members,t),t.scheduleRender()}remove(t){if(zp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function py(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}const rI=(e,t)=>e.depth-t.depth;class nI{constructor(){this.children=[],this.isDirty=!1}add(t){Ap(this.children,t),this.isDirty=!0}remove(t){zp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rI),this.isDirty=!1,this.children.forEach(t)}}function oI(e,t){const r=qn.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Or(n),e(i-t))};return me.read(n,!0),()=>Or(n)}function iI(e){window.MotionDebug&&window.MotionDebug.record(e)}function sI(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aI(e,t,r){const n=mt(e)?e:ei(e);return n.start($p("",n,t,r)),n.animation}const my=["","X","Y","Z"],lI={visibility:"hidden"},gy=1e3;let uI=0;const zn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=uI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,zn.totalNodes=zn.resolvedTargetDeltas=zn.recalculatedProjection=0,this.nodes.forEach(fI),this.nodes.forEach(yI),this.nodes.forEach(vI),this.nodes.forEach(hI),iI(zn)},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=oI(f,250),ml.hasAnimatedSinceResize&&(ml.hasAnimatedSinceResize=!1,this.nodes.forEach(vy))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||_I,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!yx(this.targetLayout,y)||h,m=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const x={...Rp(S,"layout"),onPlay:w,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||vy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,Or(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(SI),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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(pI),this.sharedNodes.forEach(bI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=x/1e3;Sy(d.x,s.x,T),Sy(d.y,s.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(os(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xI(this.relativeTarget,this.relativeTargetOrigin,f,T),m&&eI(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=_e()),Mt(m,this.relativeTarget)),S&&(this.animationValues=c,q6(c,u,this.latestValues,T,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},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&&(Or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{ml.hasAnimatedSinceResize=!0,this.currentAnimation=aI(0,gy,{...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(gy),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&&Sx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_e();const d=Ct(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ct(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Mt(a,l),zo(a,c),ns(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tI),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}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(yy),this.root.sharedNodes.clear()}}}function cI(e){e.updateLayout()}function dI(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?jt(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],h=Ct(f);f.min=n[d].min,f.max=f.min+h}):Sx(i,r.layoutBox,n)&&jt(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],h=Ct(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=Ao();ns(a,n,r.layoutBox);const l=Ao();s?ns(l,e.applyTransform(o,!0),r.measuredBox):ns(l,n,r.layoutBox);const u=!gx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const y=_e();os(y,r.layoutBox,f.layoutBox);const S=_e();os(S,n,h.layoutBox),yx(y,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function fI(e){zn.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 hI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pI(e){e.clearSnapshot()}function yy(e){e.clearMeasurements()}function mI(e){e.isLayoutDirty=!1}function gI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yI(e){e.resolveTargetDelta()}function vI(e){e.calcProjection()}function SI(e){e.resetRotation()}function bI(e){e.removeLeadSnapshot()}function Sy(e,t,r){e.translate=ve(t.translate,0,r),e.scale=ve(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function by(e,t,r,n){e.min=ve(t.min,r.min,n),e.max=ve(t.max,r.max,n)}function xI(e,t,r,n){by(e.x,t.x,r.x,n),by(e.y,t.y,r.y,n)}function wI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _I={duration:.45,ease:[.4,0,.1,1]},xy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wy=xy("applewebkit/")&&!xy("chrome/")?Math.round:Re;function _y(e){e.min=wy(e.min),e.max=wy(e.max)}function kI(e){_y(e.x),_y(e.y)}function Sx(e,t,r){return e==="position"||e==="preserve-aspect"&&!Mf(hy(t),hy(r),.2)}const CI=vx({attachResizeListener:(e,t)=>Tr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),md={current:void 0},bx=vx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!md.current){const e=new CI({});e.mount(window),e.setOptions({layoutScroll:!0}),md.current=e}return md.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TI={pan:{Feature:B6},drag:{Feature:L6,ProjectionNode:bx,MeasureLayout:hx}},PI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function EI(e){const t=PI.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Ff(e,t,r=1){const[n,o]=EI(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return rx(s)?parseFloat(s):s}else return Ql(o)?Ff(o,t,r+1):o}function RI(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Ql(i))return;const s=Ff(i,n);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ql(i))continue;const s=Ff(i,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const $I=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xx=e=>$I.has(e),AI=e=>Object.keys(e).some(xx),ky=e=>e===ui||e===B,Cy=(e,t)=>parseFloat(e.split(", ")[t]),Ty=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Cy(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?Cy(i[1],e):0}},zI=new Set(["x","y","z"]),MI=Gs.filter(e=>!zI.has(e));function II(e){const t=[];return MI.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ti={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Ty(4,13),y:Ty(5,14)};ti.translateX=ti.x;ti.translateY=ti.y;const jI=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{a[u]=ti[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=ti[u](l,i)}),e},DI=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(xx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=Ti(c);const f=t[l];let h;if(Jl(f)){const y=f.length,S=f[0]===null?1:0;c=f[S],d=Ti(c);for(let w=S;w=0?window.pageYOffset:null,u=jI(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Gu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function FI(e,t,r,n){return AI(t)?DI(e,t,r,n):{target:t,transitionEnd:n}}const OI=(e,t,r,n)=>{const o=RI(e,t,n);return t=o.target,n=o.transitionEnd,FI(e,t,r,n)},Of={current:null},wx={current:!1};function LI(){if(wx.current=!0,!!Gu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Of.current=e.matches;e.addListener(t),t()}else Of.current=!1}function BI(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],s=r[o];if(mt(i))e.addValue(o,i),nu(n)&&n.add(o);else if(mt(s))e.addValue(o,ei(i,{owner:e})),nu(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,ei(a!==void 0?a:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Py=new WeakMap,_x=Object.keys(Ms),NI=_x.length,Ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],VI=hp.length;class WI{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>me.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=qu(r),this.isVariantNode=hb(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];a[d]!==void 0&&mt(f)&&(f.set(a[d],!1),nu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Py.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((r,n)=>this.bindToMotionValue(n,r)),wx.current||LI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Of.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Py.delete(this.current),this.projection&&this.projection.unmount(),Or(this.notifyUpdate),Or(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=oo.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&me.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ei(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return 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)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=wp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!mt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class kx extends WI{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},o){const i=o6(n,t||{},this);if(o){r6(this,n,i);const s=OI(this,n,i,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function UI(e){return window.getComputedStyle(e)}class HI extends kx{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(oo.has(r)){const n=Ep(r);return n&&n.default||0}else{const n=UI(t),o=(yb(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return dx(t,r)}build(t,r,n,o){yp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return xp(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){wb(t,r,n,o)}}class GI extends kx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(oo.has(r)){const n=Ep(r);return n&&n.default||0}return r=_b.has(r)?r:cp(r),t.getAttribute(r)}measureInstanceViewportBox(){return _e()}scrapeMotionValuesFromProps(t,r){return Cb(t,r)}build(t,r,n,o){Sp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){kb(t,r,n,o)}mount(t){this.isSVGTag=bp(t.tagName),super.mount(t)}}const KI=(e,t)=>mp(e)?new GI(t,{enableHardwareAcceleration:!1}):new HI(t,{enableHardwareAcceleration:!0}),qI={layout:{ProjectionNode:bx,MeasureLayout:hx}},YI={...S6,...Mz,...TI,...qI},XI=W4((e,t)=>bz(e,t,YI,KI));function Cx(){const e=C.useRef(!1);return up(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function QI(){const e=Cx(),[t,r]=C.useState(0),n=C.useCallback(()=>{e.current&&r(t+1)},[t]);return[C.useCallback(()=>me.postRender(n),[n]),t]}class ZI extends C.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function JI({children:e,isPresent:t}){const r=C.useId(),n=C.useRef(null),o=C.useRef({width:0,height:0,top:0,left:0});return C.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${s}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),C.createElement(ZI,{isPresent:t,childRef:n,sizeRef:o},C.cloneElement(e,{ref:n}))}const gd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Tb(ej),l=C.useId(),u=C.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;n&&n()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[r]);return C.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[r]),C.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=C.createElement(JI,{isPresent:r},e)),C.createElement(Hs.Provider,{value:u},e)};function ej(){return new Map}function tj(e){return C.useEffect(()=>()=>e(),[])}const Mn=e=>e.key||"";function rj(e,t){e.forEach(r=>{const n=Mn(r);t.set(n,r)})}function nj(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const oj=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=C.useContext(pp).forceRender||QI()[0],l=Cx(),u=nj(e);let c=u;const d=C.useRef(new Map).current,f=C.useRef(c),h=C.useRef(new Map).current,y=C.useRef(!0);if(up(()=>{y.current=!1,rj(u,h),f.current=c}),tj(()=>{y.current=!0,h.clear(),d.clear()}),y.current)return C.createElement(C.Fragment,null,c.map(p=>C.createElement(gd,{key:Mn(p),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},p)));c=[...c];const S=f.current.map(Mn),w=u.map(Mn),g=S.length;for(let p=0;p{if(w.indexOf(m)!==-1)return;const x=h.get(m);if(!x)return;const T=S.indexOf(m);let $=p;if(!$){const E=()=>{d.delete(m);const R=Array.from(h.keys()).filter(j=>!w.includes(j));if(R.forEach(j=>h.delete(j)),f.current=u.filter(j=>{const D=Mn(j);return D===m||R.includes(D)}),!d.size){if(l.current===!1)return;a(),n&&n()}};$=C.createElement(gd,{key:Mn(x),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},x),d.set(m,$)}c.splice(T,0,$)}),c=c.map(p=>{const m=p.key;return d.has(m)?p:C.createElement(gd,{key:Mn(p),isPresent:!0,presenceAffectsLayout:i,mode:s},p)}),C.createElement(C.Fragment,null,d.size?c:c.map(p=>C.cloneElement(p)))};var ij={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*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=C.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=ij,toastSpacing:c="0.5rem"}=e,[d,f]=C.useState(a),h=V6();wg(()=>{h||n==null||n()},[h]),wg(()=>{f(a)},[a]);const y=()=>f(null),S=()=>f(a),w=()=>{h&&o()};C.useEffect(()=>{h&&i&&o()},[h,i,o]),A4(w,d);const g=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),p=C.useMemo(()=>E4(s),[s]);return b.jsx(XI.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:s},style:p,children:b.jsx(K.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:on(r,{id:t,onClose:w})})})});Tx.displayName="ToastComponent";var Ry={path:b.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[b.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"}),b.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"}),b.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Xs=ie((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ze("chakra-icon",a),d=li("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},y=n??Ry.viewBox;if(r&&typeof r!="string")return b.jsx(K.svg,{as:r,...h,...u});const S=s??Ry.path;return b.jsx(K.svg,{verticalAlign:"middle",viewBox:y,...h,...u,children:S})});Xs.displayName="Icon";function sj(e){return b.jsx(Xs,{viewBox:"0 0 24 24",...e,children:b.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 aj(e){return b.jsx(Xs,{viewBox:"0 0 24 24",...e,children:b.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 $y(e){return b.jsx(Xs,{viewBox:"0 0 24 24",...e,children:b.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 lj=U2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Qs=ie((e,t)=>{const r=li("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Vr(e),u=Ze("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${lj} ${i} linear infinite`,...r};return b.jsx(K.div,{ref:t,__css:c,className:u,...l,children:n&&b.jsx(K.span,{srOnly:!0,children:n})})});Qs.displayName="Spinner";var[uj,Ip]=Nr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[cj,jp]=Nr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Px={info:{icon:aj,colorScheme:"blue"},warning:{icon:$y,colorScheme:"orange"},success:{icon:sj,colorScheme:"green"},error:{icon:$y,colorScheme:"red"},loading:{icon:Qs,colorScheme:"blue"}};function dj(e){return Px[e].colorScheme}function fj(e){return Px[e].icon}var Ex=ie(function(t,r){const n=jp(),{status:o}=Ip(),i={display:"inline",...n.description};return b.jsx(K.div,{ref:r,"data-status":o,...t,className:Ze("chakra-alert__desc",t.className),__css:i})});Ex.displayName="AlertDescription";function Rx(e){const{status:t}=Ip(),r=fj(t),n=jp(),o=t==="loading"?n.spinner:n.icon;return b.jsx(K.span,{display:"inherit","data-status":t,...e,className:Ze("chakra-alert__icon",e.className),__css:o,children:e.children||b.jsx(r,{h:"100%",w:"100%"})})}Rx.displayName="AlertIcon";var $x=ie(function(t,r){const n=jp(),{status:o}=Ip();return b.jsx(K.div,{ref:r,"data-status":o,...t,className:Ze("chakra-alert__title",t.className),__css:n.title})});$x.displayName="AlertTitle";var Ax=ie(function(t,r){var n;const{status:o="info",addRole:i=!0,...s}=Vr(t),a=(n=t.colorScheme)!=null?n:dj(o),l=Uu("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return b.jsx(uj,{value:{status:o},children:b.jsx(cj,{value:l,children:b.jsx(K.div,{"data-status":o,role:i?"alert":void 0,ref:r,...s,className:Ze("chakra-alert",t.className),__css:u})})})});Ax.displayName="Alert";function hj(e){return b.jsx(Xs,{focusable:"false","aria-hidden":!0,...e,children:b.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 zx=ie(function(t,r){const n=li("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Vr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return b.jsx(K.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||b.jsx(hj,{width:"1em",height:"1em"})})});zx.displayName="CloseButton";var pj={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},is=mj(pj);function mj(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=gj(o,i),{position:a,id:l}=s;return n(u=>{var c,d;const h=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:h}}),l},update:(o,i)=>{o&&n(s=>{const a={...s},{position:l,index:u}=xg(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:vj(i)}),a})},closeAll:({positions:o}={})=>{n(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=>{n(i=>{const s=ab(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!xg(is.getState(),o).position}}var Ay=0;function gj(e,t={}){var r,n;Ay+=1;const o=(r=t.id)!=null?r:Ay,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>is.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var yj=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return b.jsxs(Ax,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[b.jsx(Rx,{children:u}),b.jsxs(K.div,{flex:"1",maxWidth:"100%",children:[o&&b.jsx($x,{id:c==null?void 0:c.title,children:o}),a&&b.jsx(Ex,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&b.jsx(zx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function vj(e={}){const{render:t,toastComponent:r=yj}=e;return o=>typeof t=="function"?t({...o,...e}):b.jsx(r,{...o,...e})}var[Sj,RD]=Nr({name:"ToastOptionsContext",strict:!1}),bj=e=>{const t=C.useSyncExternalStore(is.subscribe,is.getState,is.getState),{motionVariants:r,component:n=Tx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return b.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:R4(a),children:b.jsx(oj,{initial:!1,children:l.map(u=>b.jsx(n,{motionVariants:r,...u},u.id))})},a)});return b.jsx(Lu,{...o,children:s})},xj=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return b.jsxs(T4,{theme:n,...i,children:[b.jsx(Sj,{value:o==null?void 0:o.defaultOptions,children:r}),b.jsx(bj,{...o})]})},wj=xj(ZS);function _j(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 Lf(...e){return t=>{e.forEach(r=>{_j(r,t)})}}function kj(...e){return C.useMemo(()=>Lf(...e),e)}var Bf=ie(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return b.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});Bf.displayName="NativeImage";function Cj(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=C.useState("pending");C.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=C.useRef(),f=C.useCallback(()=>{if(!r)return;h();const y=new Image;y.src=r,s&&(y.crossOrigin=s),n&&(y.srcset=n),a&&(y.sizes=a),t&&(y.loading=t),y.onload=S=>{h(),c("loaded"),o==null||o(S)},y.onerror=S=>{h(),c("failed"),i==null||i(S)},d.current=y},[r,s,n,a,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ps(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var Tj=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function Pj(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Mx=ie(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...y}=t,S=n!==void 0||o!==void 0,w=u!=null||c||!S,g=Cj({...t,crossOrigin:d,ignoreFallback:w}),p=Tj(g,f),m={ref:r,objectFit:l,objectPosition:a,...w?y:Pj(y,["onError","onLoad"])};return p?o||b.jsx(K.img,{as:Bf,className:"chakra-image__placeholder",src:n,...m}):b.jsx(K.img,{as:Bf,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:h,className:"chakra-image",...m})});Mx.displayName="Image";var[$D,Ej]=Nr({strict:!1,name:"ButtonGroupContext"});function Rj(e){const[t,r]=C.useState(!e);return{ref:C.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Nf(e){const{children:t,className:r,...n}=e,o=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ze("chakra-button__icon",r);return b.jsx(K.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Nf.displayName="ButtonIcon";function Vf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=b.jsx(Qs,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ze("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return b.jsx(K.div,{className:l,...a,__css:c,children:o})}Vf.displayName="ButtonSpinner";var zr=ie((e,t)=>{const r=Ej(),n=li("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:y="start",className:S,as:w,...g}=Vr(e),p=C.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:m,type:x}=Rj(w),T={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return b.jsxs(K.button,{ref:kj(t,m),as:w,type:f??x,"data-active":Gt(s),"data-loading":Gt(i),__css:p,className:Ze("chakra-button",S),...g,disabled:o||i,children:[i&&y==="start"&&b.jsx(Vf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:h}),i?c||b.jsx(K.span,{opacity:0,children:b.jsx(zy,{...T})}):b.jsx(zy,{...T}),i&&y==="end"&&b.jsx(Vf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:h})]})});zr.displayName="Button";function zy(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return b.jsxs(b.Fragment,{children:[t&&b.jsx(Nf,{marginEnd:o,children:t}),n,r&&b.jsx(Nf,{marginStart:o,children:r})]})}var[$j,Aj]=Nr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[zj,Ix]=Nr({strict:!1,name:"FormControlContext"});function Mj(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...s}=e,a=C.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,h]=C.useState(!1),[y,S]=C.useState(!1),[w,g]=C.useState(!1),p=C.useCallback((E={},R=null)=>({id:d,...E,ref:Lf(R,j=>{j&&S(!0)})}),[d]),m=C.useCallback((E={},R=null)=>({...E,ref:R,"data-focus":Gt(w),"data-disabled":Gt(o),"data-invalid":Gt(n),"data-readonly":Gt(i),id:E.id!==void 0?E.id:u,htmlFor:E.htmlFor!==void 0?E.htmlFor:l}),[l,o,w,n,i,u]),x=C.useCallback((E={},R=null)=>({id:c,...E,ref:Lf(R,j=>{j&&h(!0)}),"aria-live":"polite"}),[c]),T=C.useCallback((E={},R=null)=>({...E,...s,ref:R,role:"group","data-focus":Gt(w),"data-disabled":Gt(o),"data-invalid":Gt(n),"data-readonly":Gt(i)}),[s,o,w,n,i]),$=C.useCallback((E={},R=null)=>({...E,ref:R,role:"presentation","aria-hidden":!0,children:E.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!w,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:y,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:p,getErrorMessageProps:x,getRootProps:T,getLabelProps:m,getRequiredIndicatorProps:$}}var Ij=ie(function(t,r){const n=Uu("Form",t),o=Vr(t),{getRootProps:i,htmlProps:s,...a}=Mj(o),l=Ze("chakra-form-control",t.className);return b.jsx(zj,{value:a,children:b.jsx($j,{value:n,children:b.jsx(K.div,{...i({},r),className:l,__css:n.container})})})});Ij.displayName="FormControl";var jj=ie(function(t,r){const n=Ix(),o=Aj(),i=Ze("chakra-form__helper-text",t.className);return b.jsx(K.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});jj.displayName="FormHelperText";function Dj(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=Fj(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Bc(r),"aria-required":Bc(o),"aria-readonly":Bc(n)}}function Fj(e){var t,r,n;const o=Ix(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:y,...S}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...S,"aria-describedby":w.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=a??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:R0(o==null?void 0:o.onFocus,h),onBlur:R0(o==null?void 0:o.onBlur,y)}}var gl=ie(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:h,...y}=t,S={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:h};return b.jsx(K.div,{ref:r,__css:S,...y})});gl.displayName="Grid";var W=ie(function(t,r){const n=li("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Vr(t),u=d4({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return b.jsx(K.p,{ref:r,className:Ze("chakra-text",t.className),...u,...l,__css:n})});W.displayName="Text";var Dp=K("div");Dp.displayName="Box";var jx=ie(function(t,r){const{size:n,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return b.jsx(Dp,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});jx.displayName="Square";var Oj=ie(function(t,r){const{size:n,...o}=t;return b.jsx(jx,{size:n,ref:r,borderRadius:"9999px",...o})});Oj.displayName="Circle";var Dx=ie(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:l,borderColor:u,...c}=li("Divider",t),{className:d,orientation:f="horizontal",__css:h,...y}=Vr(t),S={vertical:{borderLeftWidth:n||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return b.jsx(K.hr,{ref:r,"aria-orientation":f,...y,__css:{...c,border:"0",borderColor:u,borderStyle:l,...S[f],...h},className:Ze("chakra-divider",d)})});Dx.displayName="Divider";var ut=ie(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:u};return b.jsx(K.div,{ref:r,__css:d,...c})});ut.displayName="Flex";var Fx=ie(function(t,r){const{children:n,placeholder:o,className:i,...s}=t;return b.jsxs(K.select,{...s,ref:r,className:Ze("chakra-select",i),children:[o&&b.jsx("option",{value:"",children:o}),n]})});Fx.displayName="SelectField";function Lj(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}var Ox=ie((e,t)=>{var r;const n=Uu("Select",e),{rootProps:o,placeholder:i,icon:s,color:a,height:l,h:u,minH:c,minHeight:d,iconColor:f,iconSize:h,...y}=Vr(e),[S,w]=Lj(y,dP),g=Dj(w),p={width:"100%",height:"fit-content",position:"relative",color:a},m={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return b.jsxs(K.div,{className:"chakra-select__wrapper",__css:p,...S,...o,children:[b.jsx(Fx,{ref:t,height:u??l,minH:c??d,placeholder:i,...g,__css:m,children:e.children}),b.jsx(Lx,{"data-disabled":Gt(g.disabled),...(f||a)&&{color:f||a},__css:n.icon,...h&&{fontSize:h},children:s})]})});Ox.displayName="Select";var Bj=e=>b.jsx("svg",{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Nj=K("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Lx=e=>{const{children:t=b.jsx(Bj,{}),...r}=e,n=C.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return b.jsx(Nj,{...r,className:"chakra-select__icon-wrapper",children:C.isValidElement(t)?n:null})};Lx.displayName="SelectIcon";var[Vj,ci]=Nr({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),Bx=ie((e,t)=>{const r=Uu("Table",e),{className:n,layout:o,...i}=Vr(e);return b.jsx(Vj,{value:r,children:b.jsx(K.table,{ref:t,__css:{tableLayout:o,...r.table},className:Ze("chakra-table",n),...i})})});Bx.displayName="Table";var Wj=ie((e,t)=>{const r=ci();return b.jsx(K.thead,{...e,ref:t,__css:r.thead})}),My=ie((e,t)=>{const r=ci();return b.jsx(K.tr,{...e,ref:t,__css:r.tr})}),Nx=ie((e,t)=>{const{placement:r="bottom",...n}=e,o=ci();return b.jsx(K.caption,{...n,ref:t,__css:{...o.caption,captionSide:r}})});Nx.displayName="TableCaption";var Uj=ie((e,t)=>{var r;const{overflow:n,overflowX:o,className:i,...s}=e;return b.jsx(K.div,{ref:t,className:Ze("chakra-table__container",i),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??o)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),Hj=ie((e,t)=>{const r=ci();return b.jsx(K.tbody,{...e,ref:t,__css:r.tbody})}),Oa=ie(({isNumeric:e,...t},r)=>{const n=ci();return b.jsx(K.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),La=ie(({isNumeric:e,...t},r)=>{const n=ci();return b.jsx(K.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),Vx={exports:{}},Wx={};/** + * @license React + * use-sync-external-store-with-selector.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 Zs=C;function Gj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kj=typeof Object.is=="function"?Object.is:Gj,qj=Zs.useSyncExternalStore,Yj=Zs.useRef,Xj=Zs.useEffect,Qj=Zs.useMemo,Zj=Zs.useDebugValue;Wx.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=Yj(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Qj(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),o!==void 0&&s.hasValue){var y=s.value;if(o(y,h))return d=y}return d=h}if(y=d,Kj(c,h))return y;var S=n(h);return o!==void 0&&o(y,S)?y:(c=h,d=S)}var u=!1,c,d,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,n,o]);var a=qj(e,i[0],i[1]);return Xj(function(){s.hasValue=!0,s.value=a},[a]),Zj(a),a};Vx.exports=Wx;var Jj=Vx.exports,bt="default"in yl?Yn:yl,Iy=Symbol.for("react-redux-context"),jy=typeof globalThis<"u"?globalThis:{};function e8(){if(!bt.createContext)return{};const e=jy[Iy]??(jy[Iy]=new Map);let t=e.get(bt.createContext);return t||(t=bt.createContext(null),e.set(bt.createContext,t)),t}var vn=e8(),t8=()=>{throw new Error("uSES not initialized!")};function Fp(e=vn){return function(){return bt.useContext(e)}}var Ux=Fp(),Hx=t8,r8=e=>{Hx=e},n8=(e,t)=>e===t;function o8(e=vn){const t=e===vn?Ux:Fp(e),r=(n,o={})=>{const{equalityFn:i=n8,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();bt.useRef(!0);const f=bt.useCallback({[n.name](y){return n(y)}}[n.name],[n,c,s.stabilityCheck]),h=Hx(l.addNestedSub,a.getState,u||a.getState,f,i);return bt.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var Op=o8();function i8(e){e()}function s8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){i8(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Dy={notify(){},get:()=>[]};function a8(e,t){let r,n=Dy,o=0,i=!1;function s(S){c();const w=n.subscribe(S);let g=!1;return()=>{g||(g=!0,w(),d())}}function a(){n.notify()}function l(){y.onStateChange&&y.onStateChange()}function u(){return i}function c(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=s8())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Dy)}function f(){i||(i=!0,c())}function h(){i&&(i=!1,d())}const y={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>n};return y}var l8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u8=l8?bt.useLayoutEffect:bt.useEffect;function c8({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const s=bt.useMemo(()=>{const u=a8(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,n,o,i]),a=bt.useMemo(()=>e.getState(),[e]);u8(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||vn;return bt.createElement(l.Provider,{value:s},r)}var d8=c8;function Gx(e=vn){const t=e===vn?Ux:Fp(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var f8=Gx();function h8(e=vn){const t=e===vn?f8:Gx(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Lp=h8();r8(Jj.useSyncExternalStoreWithSelector);const p8=YA({styles:{global:{body:{bg:"#242424",color:"white"}}}});function Be(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var m8=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fy=m8,yd=()=>Math.random().toString(36).substring(7).split("").join("."),g8={INIT:`@@redux/INIT${yd()}`,REPLACE:`@@redux/REPLACE${yd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yd()}`},iu=g8;function Bp(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Kx(e,t,r){if(typeof e!="function")throw new Error(Be(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Be(1));return r(Kx)(e,t)}let n=e,o=t,i=new Map,s=i,a=0,l=!1;function u(){s===i&&(s=new Map,i.forEach((w,g)=>{s.set(g,w)}))}function c(){if(l)throw new Error(Be(3));return o}function d(w){if(typeof w!="function")throw new Error(Be(4));if(l)throw new Error(Be(5));let g=!0;u();const p=a++;return s.set(p,w),function(){if(g){if(l)throw new Error(Be(6));g=!1,u(),s.delete(p),i=null}}}function f(w){if(!Bp(w))throw new Error(Be(7));if(typeof w.type>"u")throw new Error(Be(8));if(typeof w.type!="string")throw new Error(Be(17));if(l)throw new Error(Be(9));try{l=!0,o=n(o,w)}finally{l=!1}return(i=s).forEach(p=>{p()}),w}function h(w){if(typeof w!="function")throw new Error(Be(10));n=w,f({type:iu.REPLACE})}function y(){const w=d;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Be(11));function p(){const x=g;x.next&&x.next(c())}return p(),{unsubscribe:w(p)}},[Fy](){return this}}}return f({type:iu.INIT}),{dispatch:f,subscribe:d,getState:c,replaceReducer:h,[Fy]:y}}function y8(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:iu.INIT})>"u")throw new Error(Be(12));if(typeof r(void 0,{type:iu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function v8(e){const t=Object.keys(e),r={};for(let i=0;i"u")throw a&&a.type,new Error(Be(14));u[d]=y,l=l||y!==h}return l=l||n.length!==Object.keys(s).length,l?u:s}}function su(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function S8(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(Be(15))};const s={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},a=e.map(l=>l(s));return i=su(...a)(o.dispatch),{...o,dispatch:i}}}function b8(e){return Bp(e)&&"type"in e&&typeof e.type=="string"}var qx=Symbol.for("immer-nothing"),Oy=Symbol.for("immer-draftable"),Tt=Symbol.for("immer-state");function Xt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ri=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Tt]}function Lr(e){var t;return e?Yx(e)||Array.isArray(e)||!!e[Oy]||!!((t=e.constructor)!=null&&t[Oy])||Zu(e)||Ju(e):!1}var x8=Object.prototype.constructor.toString();function Yx(e){if(!e||typeof e!="object")return!1;const t=ri(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===x8}function js(e,t){Qu(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function Qu(e){const t=e[Tt];return t?t.type_:Array.isArray(e)?1:Zu(e)?2:Ju(e)?3:0}function Wf(e,t){return Qu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xx(e,t,r){const n=Qu(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function w8(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Zu(e){return e instanceof Map}function Ju(e){return e instanceof Set}function In(e){return e.copy_||e.base_}function Uf(e,t){if(Zu(e))return new Map(e);if(Ju(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Yx(e))return ri(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[Tt];let n=Reflect.ownKeys(r);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=_8),Object.freeze(e),t&&js(e,(r,n)=>Np(n,!0))),e}function _8(){Xt(2)}function ec(e){return Object.isFrozen(e)}var k8={};function to(e){const t=k8[e];return t||Xt(0,e),t}var Ds;function Qx(){return Ds}function C8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ly(e,t){t&&(to("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hf(e){Gf(e),e.drafts_.forEach(T8),e.drafts_=null}function Gf(e){e===Ds&&(Ds=e.parent_)}function By(e){return Ds=C8(Ds,e)}function T8(e){const t=e[Tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ny(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Tt].modified_&&(Hf(t),Xt(4)),Lr(e)&&(e=au(t,e),t.parent_||lu(t,e)),t.patches_&&to("Patches").generateReplacementPatches_(r[Tt].base_,e,t.patches_,t.inversePatches_)):e=au(t,r,[]),Hf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qx?e:void 0}function au(e,t,r){if(ec(t))return t;const n=t[Tt];if(!n)return js(t,(o,i)=>Vy(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return lu(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),js(i,(a,l)=>Vy(e,n,o,a,l,r,s)),lu(e,o,!1),r&&e.patches_&&to("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Vy(e,t,r,n,o,i,s){if(Sn(o)){const a=i&&t&&t.type_!==3&&!Wf(t.assigned_,n)?i.concat(n):void 0,l=au(e,o,a);if(Xx(r,n,l),Sn(l))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(Lr(o)&&!ec(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;au(e,o),(!t||!t.scope_.parent_)&&lu(e,o)}}function lu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Np(t,r)}function P8(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Qx(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Vp;r&&(o=[n],i=Fs);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return n.draft_=a,n.revoke_=s,a}var Vp={get(e,t){if(t===Tt)return e;const r=In(e);if(!Wf(r,t))return E8(e,r,t);const n=r[t];return e.finalized_||!Lr(n)?n:n===vd(e.base_,t)?(Sd(e),e.copy_[t]=qf(n,e)):n},has(e,t){return t in In(e)},ownKeys(e){return Reflect.ownKeys(In(e))},set(e,t,r){const n=Zx(In(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=vd(In(e),t),i=o==null?void 0:o[Tt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(w8(r,o)&&(r!==void 0||Wf(e.base_,t)))return!0;Sd(e),Kf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return vd(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Sd(e),Kf(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=In(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Xt(11)},getPrototypeOf(e){return ri(e.base_)},setPrototypeOf(){Xt(12)}},Fs={};js(Vp,(e,t)=>{Fs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fs.deleteProperty=function(e,t){return Fs.set.call(this,e,t,void 0)};Fs.set=function(e,t,r){return Vp.set.call(this,e[0],t,r,e[0])};function vd(e,t){const r=e[Tt];return(r?In(r):e)[t]}function E8(e,t,r){var o;const n=Zx(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Zx(e,t){if(!(t in e))return;let r=ri(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ri(r)}}function Kf(e){e.modified_||(e.modified_=!0,e.parent_&&Kf(e.parent_))}function Sd(e){e.copy_||(e.copy_=Uf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var R8=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const s=this;return function(l=i,...u){return s.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&Xt(6),n!==void 0&&typeof n!="function"&&Xt(7);let o;if(Lr(t)){const i=By(this),s=qf(t,void 0);let a=!0;try{o=r(s),a=!1}finally{a?Hf(i):Gf(i)}return Ly(i,n),Ny(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===qx&&(o=void 0),this.autoFreeze_&&Np(o,!0),n){const i=[],s=[];to("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else Xt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,o;return[this.produce(t,r,(s,a)=>{n=s,o=a}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Lr(e)||Xt(8),Sn(e)&&(e=Jx(e));const t=By(this),r=qf(e,void 0);return r[Tt].isManual_=!0,Gf(t),r}finishDraft(e,t){const r=e&&e[Tt];(!r||!r.isManual_)&&Xt(9);const{scope_:n}=r;return Ly(n,t),Ny(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=to("Patches").applyPatches_;return Sn(e)?n(e,t):this.produce(e,o=>n(o,t))}};function qf(e,t){const r=Zu(e)?to("MapSet").proxyMap_(e,t):Ju(e)?to("MapSet").proxySet_(e,t):P8(e,t);return(t?t.scope_:Qx()).drafts_.push(r),r}function Jx(e){return Sn(e)||Xt(10,e),ew(e)}function ew(e){if(!Lr(e)||ec(e))return e;const t=e[Tt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Uf(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Uf(e,!0);return js(r,(n,o)=>{Xx(r,n,ew(o))}),t&&(t.finalized_=!1),r}var Pt=new R8,tw=Pt.produce;Pt.produceWithPatches.bind(Pt);Pt.setAutoFreeze.bind(Pt);Pt.setUseStrictShallowCopy.bind(Pt);Pt.applyPatches.bind(Pt);Pt.createDraft.bind(Pt);Pt.finishDraft.bind(Pt);function $8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function A8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function z8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Wy=e=>Array.isArray(e)?e:[e];function M8(e){const t=Array.isArray(e[0])?e[0]:e;return z8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function I8(e,t){const r=[],{length:n}=e;for(let o=0;o{r=Ba(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function rw(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),$8(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=Wp,argsMemoizeOptions:y=[],devModeChecks:S={}}=c,w=Wy(f),g=Wy(y),p=M8(o),m=d(function(){return i++,u.apply(null,arguments)},...w),x=h(function(){s++;const $=I8(p,arguments);return a=m.apply(null,$),a},...g);return Object.assign(x,{resultFunc:u,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var O8=rw(Wp),L8=Object.assign((e,t=O8)=>{A8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,a,l)=>(s[r[l]]=a,s),{}))},{withTypes:()=>L8});function nw(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var B8=nw(),N8=nw,V8=(...e)=>{const t=rw(...e),r=Object.assign((...n)=>{const o=t(...n),i=(s,...a)=>o(Sn(s)?Jx(s):s,...a);return Object.assign(i,o),i},{withTypes:()=>r});return r};V8(Wp);var W8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?su:su.apply(null,arguments)};function ni(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(ht(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>b8(n)&&n.type===e,r}var ow=class Li extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Li.prototype)}static get[Symbol.species](){return Li}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Li(...t[0].concat(this)):new Li(...t.concat(this))}};function Hy(e){return Lr(e)?tw(e,()=>{}):e}function Gy(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(ht(10));const n=r.insert(t,e);return e.set(t,n),n}function U8(e){return typeof e=="boolean"}var H8=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new ow;return r&&(U8(r)?s.push(B8):s.push(N8(r.extraArgument))),s},G8="RTK_autoBatch",iw=e=>t=>{setTimeout(t,e)},K8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:iw(10),q8=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?K8:e.type==="callback"?e.queueNotification:iw(e.timeout),u=()=>{s=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const d=()=>o&&c(),f=n.subscribe(d);return a.add(c),()=>{f(),a.delete(c)}},dispatch(c){var d;try{return o=!((d=c==null?void 0:c.meta)!=null&&d[G8]),i=!o,i&&(s||(s=!0,l(u))),n.dispatch(c)}finally{o=!0}}})},Y8=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new ow(e);return n&&o.push(q8(typeof n=="object"?n:void 0)),o},X8=!0;function Q8(e){const t=H8(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(Bp(r))a=v8(r);else throw new Error(ht(1));let l;typeof n=="function"?l=n(t):l=t();let u=su;o&&(u=W8({trace:!X8,...typeof o=="object"&&o}));const c=S8(...l),d=Y8(c);let f=typeof s=="function"?s(d):d();const h=u(...f);return Kx(a,i,h)}function sw(e){const t={},r=[];let n;const o={addCase(i,s){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(ht(28));if(a in t)throw new Error(ht(29));return t[a]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function Z8(e){return typeof e=="function"}function J8(e,t){let[r,n,o]=sw(t),i;if(Z8(e))i=()=>Hy(e());else{const a=Hy(e);i=()=>a}function s(a=i(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,d)=>{if(d)if(Sn(c)){const h=d(c,l);return h===void 0?c:h}else{if(Lr(c))return tw(c,f=>d(f,l));{const f=d(c,l);if(f===void 0){if(c===null)return c;throw new Error(ht(9))}return f}}return c},a)}return s.getInitialState=i,s}var eD="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tD=(e=21)=>{let t="",r=e;for(;r--;)t+=eD[Math.random()*64|0];return t},rD=Symbol.for("rtk-slice-createasyncthunk");function nD(e,t){return`${e}/${t}`}function oD({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[rD];return function(o){const{name:i,reducerPath:s=i}=o;if(!i)throw new Error(ht(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(aD()):o.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,x){const T=typeof m=="string"?m:m.type;if(!T)throw new Error(ht(12));if(T in u.sliceCaseReducersByType)throw new Error(ht(13));return u.sliceCaseReducersByType[T]=x,c},addMatcher(m,x){return u.sliceMatchers.push({matcher:m,reducer:x}),c},exposeAction(m,x){return u.actionCreators[m]=x,c},exposeCaseReducer(m,x){return u.sliceCaseReducersByName[m]=x,c}};l.forEach(m=>{const x=a[m],T={reducerName:m,type:nD(i,m),createNotation:typeof o.reducers=="function"};uD(x)?dD(T,x,c,t):lD(T,x,c)});function d(){const[m={},x=[],T=void 0]=typeof o.extraReducers=="function"?sw(o.extraReducers):[o.extraReducers],$={...m,...u.sliceCaseReducersByType};return J8(o.initialState,E=>{for(let R in $)E.addCase(R,$[R]);for(let R of u.sliceMatchers)E.addMatcher(R.matcher,R.reducer);for(let R of x)E.addMatcher(R.matcher,R.reducer);T&&E.addDefaultCase(T)})}const f=m=>m,h=new Map;let y;function S(m,x){return y||(y=d()),y(m,x)}function w(){return y||(y=d()),y.getInitialState()}function g(m,x=!1){function T(E){let R=E[m];return typeof R>"u"&&x&&(R=w()),R}function $(E=f){const R=Gy(h,x,{insert:()=>new WeakMap});return Gy(R,E,{insert:()=>{const j={};for(const[D,xe]of Object.entries(o.selectors??{}))j[D]=iD(xe,E,w,x);return j}})}return{reducerPath:m,getSelectors:$,get selectors(){return $(T)},selectSlice:T}}const p={name:i,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...g(s),injectInto(m,{reducerPath:x,...T}={}){const $=x??s;return m.inject({reducerPath:$,reducer:S},T),{...p,...g($,!0)}}};return p}}function iD(e,t,r,n){function o(i,...s){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return o.unwrapped=e,o}var sD=oD();function aD(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function lD({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!cD(n))throw new Error(ht(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?ni(e,s):ni(e))}function uD(e){return e._reducerDefinitionType==="asyncThunk"}function cD(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dD({type:e,reducerName:t},r,n,o){if(!o)throw new Error(ht(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=r,d=o(e,i,c);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:s||Na,pending:a||Na,rejected:l||Na,settled:u||Na})}function Na(){}var fD=(e,t)=>{if(typeof e!="function")throw new Error(ht(32))},Up="listenerMiddleware",hD=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=ni(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(ht(21));return fD(i),{predicate:o,type:t,effect:i}},pD=Object.assign(e=>{const{type:t,predicate:r,effect:n}=hD(e);return{id:tD(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(ht(22))}}},{withTypes:()=>pD}),mD=Object.assign(ni(`${Up}/add`),{withTypes:()=>mD});ni(`${Up}/removeAll`);var gD=Object.assign(ni(`${Up}/remove`),{withTypes:()=>gD});function ht(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const aw=sD({name:"main",initialState:{selectedContent:"eic",selectedScenario:1},reducers:{selectContent:(e,t)=>{e.selectedContent=t.payload},selectScenario:(e,t)=>{e.selectedScenario=t.payload}}}),{selectContent:lw,selectScenario:uw}=aw.actions,yD=aw.reducer,vD=Q8({reducer:{main:yD}}),SD=()=>b.jsx(ut,{bgColor:"#242424",color:"white",justifyContent:"space-between",alignItems:"center",p:4,borderBottom:"1px solid #FFFFFF",children:b.jsxs(ut,{alignItems:"center",children:[b.jsx(Mx,{src:"/EIC-Monitor/logo.png",alt:"Logo",mr:2,height:"50px"}),b.jsx(W,{fontSize:"3xl",children:"EIC Monitor"})]})}),bD=()=>{const e=Lp(),t=Op(n=>n.main.selectedContent),r=n=>{e(lw(n))};return b.jsx(ut,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:b.jsxs(ut,{justifyContent:"space-around",width:"lg",maxWidth:"100%",children:[b.jsx(zr,{colorScheme:"blue",variant:t==="scenarios"?"solid":"outline",onClick:()=>r("scenarios"),children:"Scenarios"}),b.jsx(zr,{colorScheme:"blue",variant:t==="layers"?"solid":"outline",onClick:()=>r("layers"),children:"Layers"}),b.jsx(zr,{colorScheme:"blue",variant:t==="eic"?"solid":"outline",onClick:()=>r("eic"),children:"EIC"})]})})},Ky={1:["MODIS_Terra_CorrectedReflectance_TrueColor"],2:["GOES-East_ABI_GeoColor","GOES-West_ABI_GeoColor","Himawari_AHI_Band3_Red_Visible_1km"],3:["VIIRS_SNPP_CorrectedReflectance_TrueColor"],4:["VIIRS_SNPP_DayNightBand_At_Sensor_Radiance"],5:["IMERG_Precipitation_Rate"],6:["GHRSST_L4_MUR_Sea_Surface_Temperature"],7:["MODIS_Aqua_Land_Surface_Temp_Day","MODIS_Aqua_CorrectedReflectance_TrueColor"],8:["AMSRU2_Sea_Ice_Concentration_12km"],9:["AMSRU2_Sea_Ice_Concentration_12km"],10:["VIIRS_SNPP_CorrectedReflectance_TrueColor"],11:["OMI_Nitrogen_Dioxide_Tropo_Column","VIIRS_NOAA20_CorrectedReflectance_TrueColor"],12:["AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Night","AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Day"],13:["VIIRS_SNPP_AOT_Dark_Target_Land_Ocean","VIIRS_SNPP_AOT_Deep_Blue_Best_Estimate","VIIRS_SNPP_CorrectedReflectance_TrueColor"]},xD={1:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&scenario=1&l=OrbitTracks_Terra_Descending(opacity=0.9),Coastlines_15m,MODIS_Terra_CorrectedReflectance_TrueColor&lg=false",2:"http://localhost:3000/?v=-218.05641352247375,-98.53068072538338,146.49566203427042,106.52986177528524&ics=true&ici=5&icd=10&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.77),GOES-East_ABI_GeoColor,GOES-West_ABI_GeoColor,Himawari_AHI_Band3_Red_Visible_1km&lg=false&scenario=2",3:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_Thermal_Anomalies_375m_Day,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=true&scenario=3",4:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.63),VIIRS_SNPP_DayNightBand_At_Sensor_Radiance&lg=true&scenario=4",5:"http://localhost:3000/?v=-205.72171420740915,-98.53068072538338,206.78657152152607,106.52986177528524&df=true&kiosk=true&eic=si&l=IMERG_Precipitation_Rate,Land_Mask&lg=false&scenario=5",6:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.71),GHRSST_L4_MUR_Sea_Surface_Temperature(palette=divergent_1)&lg=true&scenario=6",7:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,MODIS_Aqua_Land_Surface_Temp_Day,MODIS_Aqua_CorrectedReflectance_TrueColor(opacity=0.8)&lg=true&scenario=7",10:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_Thermal_Anomalies_375m_All,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=false&scenario=10",11:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,OMI_Nitrogen_Dioxide_Tropo_Column(palette=rainbow_5,max=14800000000000000,squash=true),VIIRS_NOAA20_CorrectedReflectance_TrueColor&lg=false&scenario=11",12:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Night,AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Day&lg=false&scenario=12",13:"http://localhost:3000/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_AOT_Dark_Target_Land_Ocean,VIIRS_SNPP_AOT_Deep_Blue_Best_Estimate,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=false&scenario=13"},qy={1:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&scenario=1&l=OrbitTracks_Terra_Descending(opacity=0.9),Coastlines_15m,MODIS_Terra_CorrectedReflectance_TrueColor&lg=false",2:"https://worldview.earthdata.nasa.gov/?v=-218.05641352247375,-98.53068072538338,146.49566203427042,106.52986177528524&ics=true&ici=5&icd=10&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.77),GOES-East_ABI_GeoColor,GOES-West_ABI_GeoColor,Himawari_AHI_Band3_Red_Visible_1km&lg=false&scenario=2",3:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_Thermal_Anomalies_375m_Day,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=true&scenario=3",4:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.63),VIIRS_SNPP_DayNightBand_At_Sensor_Radiance&lg=true&scenario=4",5:"https://worldview.earthdata.nasa.gov/?v=-205.72171420740915,-98.53068072538338,206.78657152152607,106.52986177528524&df=true&kiosk=true&eic=si&l=IMERG_Precipitation_Rate,Land_Mask&lg=false&scenario=5",6:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m(opacity=0.71),GHRSST_L4_MUR_Sea_Surface_Temperature(palette=divergent_1)&lg=true&scenario=6",7:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,MODIS_Aqua_Land_Surface_Temp_Day,MODIS_Aqua_CorrectedReflectance_TrueColor(opacity=0.8)&lg=true&scenario=7",10:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_Thermal_Anomalies_375m_All,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=false&scenario=10",11:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,OMI_Nitrogen_Dioxide_Tropo_Column(palette=rainbow_5,max=14800000000000000,squash=true),VIIRS_NOAA20_CorrectedReflectance_TrueColor&lg=false&scenario=11",12:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Night,AIRS_L3_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Daily_Day&lg=false&scenario=12",13:"https://worldview.earthdata.nasa.gov/?v=-181.74360912131363,-98.53068072538338,182.80846643543055,106.52986177528524&df=true&kiosk=true&eic=si&l=Coastlines_15m,VIIRS_SNPP_AOT_Dark_Target_Land_Ocean,VIIRS_SNPP_AOT_Deep_Blue_Best_Estimate,VIIRS_SNPP_CorrectedReflectance_TrueColor&lg=false&scenario=13"},wD={1:"True color imagery from Terra satellite",2:"Geostationary imagery from NOAA and JAXA Satellites",3:"Active fires detected by Suomi NPP satellite",4:"Black Marble night time imagery from Suomi NPP satellite",5:"Rain and Snow",6:"Sea Surface Temperature",7:"Land Surface Temperature",10:"Active fires detected by NOAA-20 satellite",11:"Nitrogen Dioxide (NO2) by Aura satellite",12:"Carbon Monoxide (CO) by Aqua satellite",13:"Aerosol Optical Depth (AOD) by Suomi NPP satellite"},_D=()=>{const e=Lp(),t=l=>{e(lw(l))},r=l=>{e(uw(l))},[n,o]=C.useState([]),i=async()=>{const l="https://m80gyw03f7.execute-api.us-east-1.amazonaws.com/dev/all-scenarios";try{const c=await(await fetch(l)).json();o(c.items)}catch(u){console.log(u)}},s=l=>{r(l),t("eic")};C.useEffect(()=>{i()},[]);const a=()=>{if(n.length){const u=(()=>{const c=[],d=n.reduce((f,h)=>(f[h.item_id]=h.resolution_date,f),{});return Object.keys(Ky).forEach(f=>{const h=d[f]||"No valid date found",y=Ky[f];c.push({id:f,layers:y,date:h})}),c.sort((f,h)=>parseInt(f.id)-parseInt(h.id)),c})();return b.jsx(Uj,{children:b.jsxs(Bx,{children:[b.jsx(Nx,{color:"whiteAlpha.900",fontSize:"md",children:"Resolution date represents the most recent date that each layer in a scenario shares available imagery"}),b.jsx(Wj,{children:b.jsxs(My,{children:[b.jsx(La,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"Scenario"}),b.jsx(La,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"Layers"}),b.jsx(La,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"Resolution Date"}),b.jsx(La,{color:"whiteAlpha.900",fontSize:"lg",textAlign:"center",children:"EIC"})]})}),b.jsx(Hj,{children:u.map(c=>b.jsxs(My,{children:[b.jsx(Oa,{textAlign:"center",children:c.id}),b.jsx(Oa,{children:c.layers.map((d,f)=>b.jsx(W,{as:"div",textAlign:"center",children:d},f))}),b.jsx(Oa,{textAlign:"center",children:c.date}),b.jsx(Oa,{children:xD[c.id]&&b.jsx(zr,{colorScheme:"blue",variant:"solid",onClick:()=>s(c.id),children:"See EIC"})})]},c.id))})]})})}else return b.jsx(ut,{justifyContent:"center",alignItems:"center",children:b.jsx(Qs,{size:"xl",color:"red.500"})})};return b.jsxs(ut,{width:"full",justifyContent:"start",alignItems:"center",flexDirection:"column",children:[b.jsxs(ut,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:[b.jsx(W,{as:"h1",fontSize:"3xl",children:"Scenarios"}),b.jsx(zr,{colorScheme:"blue",variant:"solid",ml:"4",onClick:()=>i(),children:"Refresh Scenarios"})]}),a()]})},Yy=()=>{const[e,t]=C.useState([]),r=async()=>{const o="https://m80gyw03f7.execute-api.us-east-1.amazonaws.com/dev/all-layers";try{const s=await(await fetch(o)).json();t(s.Items)}catch(i){console.log(i.message)}},n=()=>e.length?e.map(o=>{const i=o.item_id,{threshold:s,period:a}=o.config,l=(o==null?void 0:o.successful_dates)||[],u=o.last_request,c=o.last_request.url,d=o.last_request.black_pixels,f=o.last_request.difference,h=d>s?"red":"green",y=o.last_successful_request;return b.jsxs(ut,{direction:"column",my:"2",p:"2",boxShadow:"md",width:"80%",borderRadius:"md",children:[b.jsx(Dx,{mb:"2"}),b.jsx(W,{fontSize:"2xl",fontWeight:"bold",mb:"2",children:i}),b.jsxs(gl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,children:[b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Period:"}),b.jsx(W,{fontSize:"md",children:a.toUpperCase()}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Threshold:"}),b.jsx(W,{fontSize:"md",children:s})]}),b.jsx(W,{fontSize:"lg",fontWeight:"bold",mt:"4",mb:"2",children:"LAST REQUEST"}),b.jsxs(gl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,alignItems:"center",children:[b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Time of Search:"}),b.jsx(W,{fontSize:"md",children:u.time_of_search}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Imagery Date:"}),b.jsx(W,{fontSize:"md",children:u.date}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Status:"}),b.jsx(W,{fontSize:"md",children:u.status.toUpperCase()}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Failure Reason:"}),b.jsx(W,{fontSize:"md",children:u.failure_reason.toUpperCase()}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Black Pixels:"}),b.jsx(W,{fontSize:"md",children:d}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Difference:"}),b.jsx(W,{fontSize:"md",fontWeight:"bold",color:h,children:f}),b.jsx(zr,{colorScheme:"blue",size:"sm",mb:"2",onClick:()=>window.open(c,"_blank"),children:"View Imagery"})]}),b.jsx(W,{fontSize:"lg",fontWeight:"bold",mt:"4",mb:"2",children:"LAST SUCCESSFUL REQUEST"}),b.jsxs(gl,{templateColumns:"minmax(150px, auto) 1fr",gap:2,alignItems:"center",children:[b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Time of Search:"}),b.jsx(W,{fontSize:"md",children:y.time_of_search}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Imagery Date:"}),b.jsx(W,{fontSize:"md",children:y.date}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Status:"}),b.jsx(W,{fontSize:"md",children:y.status.toUpperCase()}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Failure Reason:"}),b.jsx(W,{fontSize:"md",children:y.failure_reason.toUpperCase()}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Black Pixels:"}),b.jsx(W,{fontSize:"md",children:y.black_pixels}),b.jsx(W,{fontSize:"md",fontWeight:"semibold",children:"Difference:"}),b.jsx(W,{fontSize:"md",fontWeight:"bold",color:"green",children:y.difference}),b.jsx(zr,{colorScheme:"blue",size:"sm",mb:"2",onClick:()=>window.open(y.url,"_blank"),children:"View Imagery"})]}),b.jsx(W,{fontSize:"lg",fontWeight:"semibold",mt:"4",children:"Successful Dates:"}),b.jsx(Dp,{pl:"150px",children:l.map((S,w)=>b.jsx(W,{fontSize:"md",children:S},w))})]},i)}):b.jsx(ut,{justifyContent:"center",alignItems:"center",children:b.jsx(Qs,{size:"xl",color:"red.500"})});return C.useEffect(()=>{r()},[]),b.jsxs(ut,{width:"full",justifyContent:"start",alignItems:"center",flexDirection:"column",children:[b.jsxs(ut,{justifyContent:"center",alignItems:"center",width:"full",mt:"4",mb:"4",children:[b.jsx(W,{as:"h1",fontSize:"3xl",children:"Layers"}),b.jsx(zr,{colorScheme:"blue",variant:"solid",ml:"4",onClick:r,children:"Refresh Layers"})]}),n()]})},kD=()=>{const e=Lp(),t=i=>{e(uw(i))},r=Op(i=>i.main.selectedScenario),n={height:"800px",width:"100%"},o=i=>{const s=i.target.value;t(s)};return b.jsx(b.Fragment,{children:b.jsxs(ut,{direction:"column",align:"center",justify:"center",p:4,width:"100%",children:[b.jsx(Ox,{placeholder:"Select scenario",onChange:o,value:r,mb:4,children:Object.keys(qy).map(i=>b.jsxs("option",{value:i,children:["Scenario ",i,": ",wD[i]]},i))}),b.jsx("div",{className:"embed-container",style:n,children:b.jsx("iframe",{src:qy[r],role:"application",sandbox:"allow-modals allow-scripts allow-same-origin allow-forms allow-popups",width:"100%",height:"100%",allow:"fullscreen; autoplay;",loading:"lazy"})})]})})},CD=()=>{const e=Op(r=>r.main.selectedContent),t=()=>{switch(e){case"scenarios":return b.jsx(_D,{});case"layers":return b.jsx(Yy,{});case"eic":return b.jsx(kD,{});default:return b.jsx(Yy,{})}};return b.jsx(ut,{width:"80%",border:"1px solid #FFFFFF",minHeight:"75vh",mt:"4",m:"auto",children:t()})};function TD(){return b.jsxs(b.Fragment,{children:[b.jsx(SD,{}),b.jsx(bD,{}),b.jsx(CD,{})]})}bd.createRoot(document.getElementById("root")).render(b.jsx(Yn.StrictMode,{children:b.jsx(d8,{store:vD,children:b.jsx(wj,{theme:p8,children:b.jsx(TD,{})})})})); diff --git a/index.html b/index.html index d22cb2c..7ee7ee0 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ EIC Monitor - +