static.db-scheduler.assets.index-ed4b70bb.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db-scheduler-ui Show documentation
Show all versions of db-scheduler-ui Show documentation
Provides a UI for db-scheduler
function EM(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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tk={exports:{}},xf={},rk={exports:{}},ge={};/**
* @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 gu=Symbol.for("react.element"),_M=Symbol.for("react.portal"),DM=Symbol.for("react.fragment"),MM=Symbol.for("react.strict_mode"),OM=Symbol.for("react.profiler"),RM=Symbol.for("react.provider"),IM=Symbol.for("react.context"),AM=Symbol.for("react.forward_ref"),NM=Symbol.for("react.suspense"),FM=Symbol.for("react.memo"),$M=Symbol.for("react.lazy"),ub=Symbol.iterator;function LM(e){return e===null||typeof e!="object"?null:(e=ub&&e[ub]||e["@@iterator"],typeof e=="function"?e:null)}var nk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ok=Object.assign,ak={};function ps(e,t,r){this.props=e,this.context=t,this.refs=ak,this.updater=r||nk}ps.prototype.isReactComponent={};ps.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")};ps.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ik(){}ik.prototype=ps.prototype;function bg(e,t,r){this.props=e,this.context=t,this.refs=ak,this.updater=r||nk}var wg=bg.prototype=new ik;wg.constructor=bg;ok(wg,ps.prototype);wg.isPureReactComponent=!0;var cb=Array.isArray,sk=Object.prototype.hasOwnProperty,xg={current:null},lk={key:!0,ref:!0,__self:!0,__source:!0};function uk(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)sk.call(t,n)&&!lk.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ie=j[G];if(0>>1;Go(ve,ee))peo(ye,ve)?(j[G]=ye,j[pe]=ee,G=pe):(j[G]=ve,j[J]=ee,G=J);else if(peo(ye,ee))j[G]=ye,j[pe]=ee,G=pe;else break e}}return U}function o(j,U){var ee=j.sortIndex-U.sortIndex;return ee!==0?ee:j.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var U=r(u);U!==null;){if(U.callback===null)n(u);else if(U.startTime<=j)n(u),U.sortIndex=U.expirationTime,t(l,U);else break;U=r(u)}}function S(j){if(v=!1,b(j),!h)if(r(l)!==null)h=!0,Z(E);else{var U=r(u);U!==null&&$(S,U.startTime-j)}}function E(j,U){h=!1,v&&(v=!1,y(D),D=-1),p=!0;var ee=f;try{for(b(U),d=r(l);d!==null&&(!(d.expirationTime>U)||j&&!L());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var ie=G(d.expirationTime<=U);U=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===r(l)&&n(l),b(U)}else n(l);d=r(l)}if(d!==null)var Q=!0;else{var J=r(u);J!==null&&$(S,J.startTime-U),Q=!1}return Q}finally{d=null,f=ee,p=!1}}var T=!1,C=null,D=-1,R=5,I=-1;function L(){return!(e.unstable_now()-Ij||125G?(j.sortIndex=ee,t(u,j),r(l)===null&&j===r(u)&&(v?(y(D),D=-1):v=!0,$(S,ee-G))):(j.sortIndex=ie,t(l,j),h||p||(h=!0,Z(E))),j},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(j){var U=f;return function(){var ee=f;f=U;try{return j.apply(this,arguments)}finally{f=ee}}}})(pk);fk.exports=pk;var KM=fk.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 hk=g,xr=KM;function B(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"),ym=Object.prototype.hasOwnProperty,GM=/^[: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]*$/,fb={},pb={};function XM(e){return ym.call(pb,e)?!0:ym.call(fb,e)?!1:GM.test(e)?pb[e]=!0:(fb[e]=!0,!1)}function ZM(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 JM(e,t,r,n){if(t===null||typeof t>"u"||ZM(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 er(e,t,r,n,o,a,i){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=a,this.removeEmptyString=i}var It={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){It[e]=new er(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];It[t]=new er(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){It[e]=new er(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){It[e]=new er(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){It[e]=new er(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){It[e]=new er(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){It[e]=new er(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){It[e]=new er(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){It[e]=new er(e,5,!1,e.toLowerCase(),null,!1,!1)});var kg=/[\-:]([a-z])/g;function Cg(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(kg,Cg);It[t]=new er(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(kg,Cg);It[t]=new er(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(kg,Cg);It[t]=new er(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){It[e]=new er(e,1,!1,e.toLowerCase(),null,!1,!1)});It.xlinkHref=new er("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){It[e]=new er(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tg(e,t,r,n){var o=It.hasOwnProperty(t)?It[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var l=`
`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Vp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ws(e):""}function eO(e){switch(e.tag){case 5:return Ws(e.type);case 16:return Ws("Lazy");case 13:return Ws("Suspense");case 19:return Ws("SuspenseList");case 0:case 2:case 15:return e=Up(e.type,!1),e;case 11:return e=Up(e.type.render,!1),e;case 1:return e=Up(e.type,!0),e;default:return""}}function Sm(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 oi:return"Fragment";case ni:return"Portal";case bm:return"Profiler";case Pg:return"StrictMode";case wm:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gk:return(e.displayName||"Context")+".Consumer";case vk:return(e._context.displayName||"Context")+".Provider";case Eg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _g:return t=e.displayName||null,t!==null?t:Sm(e.type)||"Memo";case ho:t=e._payload,e=e._init;try{return Sm(e(t))}catch{}}return null}function tO(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 Sm(t);case 8:return t===Pg?"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 jo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rO(e){var t=bk(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,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){e._valueTracker||(e._valueTracker=rO(e))}function wk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=bk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function cd(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 km(e,t){var r=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=jo(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 xk(e,t){t=t.checked,t!=null&&Tg(e,"checked",t,!1)}function Cm(e,t){xk(e,t);var r=jo(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")?Tm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Tm(e,t.type,jo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vb(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 Tm(e,t,r){(t!=="number"||cd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ys=Array.isArray;function Mi(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ku.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rl={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},nO=["Webkit","ms","Moz","O"];Object.keys(rl).forEach(function(e){nO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rl[t]=rl[e]})});function Tk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rl.hasOwnProperty(e)&&rl[e]?(""+t).trim():t+"px"}function Pk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Tk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var oO=ot({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 _m(e,t){if(t){if(oO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function Dm(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 Mm=null;function Dg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Om=null,Oi=null,Ri=null;function bb(e){if(e=wu(e)){if(typeof Om!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Pf(t),Om(e.stateNode,e.type,t))}}function Ek(e){Oi?Ri?Ri.push(e):Ri=[e]:Oi=e}function _k(){if(Oi){var e=Oi,t=Ri;if(Ri=Oi=null,bb(e),t)for(e=0;e>>=0,e===0?32:31-(mO(e)/vO|0)|0}var Gu=64,Xu=4194304;function Hs(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 hd(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Hs(s):(a&=i,a!==0&&(n=Hs(a)))}else i=r&~o,i!==0?n=Hs(i):a!==0&&(n=Hs(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&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 yu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=r}function wO(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=ol),_b=String.fromCharCode(32),Db=!1;function qk(e,t){switch(e){case"keyup":return qO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function GO(e,t){switch(e){case"compositionend":return Kk(t);case"keypress":return t.which!==32?null:(Db=!0,_b);case"textInput":return e=t.data,e===_b&&Db?null:e;default:return null}}function XO(e,t){if(ai)return e==="compositionend"||!$g&&qk(e,t)?(e=Hk(),Ac=Ag=So=null,ai=!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=Ib(r)}}function Jk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eC(){for(var e=window,t=cd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=cd(e.document)}return t}function Lg(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 iR(e){var t=eC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jk(r.ownerDocument.documentElement,r)){if(n!==null&&Lg(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,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=Ab(r,a);var i=Ab(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,ii=null,$m=null,il=null,Lm=!1;function Nb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lm||ii==null||ii!==cd(n)||(n=ii,"selectionStart"in n&&Lg(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}),il&&Fl(il,n)||(il=n,n=gd($m,"onSelect"),0ui||(e.current=Wm[ui],Wm[ui]=null,ui--)}function ze(e,t){ui++,Wm[ui]=e.current,e.current=t}var Bo={},Vt=Yo(Bo),ar=Yo(!1),Ta=Bo;function Yi(e,t){var r=e.type.contextTypes;if(!r)return Bo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ir(e){return e=e.childContextTypes,e!=null}function bd(){He(ar),He(Vt)}function Vb(e,t,r){if(Vt.current!==Bo)throw Error(B(168));ze(Vt,t),ze(ar,r)}function uC(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(B(108,tO(e)||"Unknown",o));return ot({},r,n)}function wd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bo,Ta=Vt.current,ze(Vt,e),ze(ar,ar.current),!0}function Ub(e,t,r){var n=e.stateNode;if(!n)throw Error(B(169));r?(e=uC(e,t,Ta),n.__reactInternalMemoizedMergedChildContext=e,He(ar),He(Vt),ze(Vt,e)):He(ar),ze(ar,r)}var In=null,Ef=!1,nh=!1;function cC(e){In===null?In=[e]:In.push(e)}function yR(e){Ef=!0,cC(e)}function Ho(){if(!nh&&In!==null){nh=!0;var e=0,t=$e;try{var r=In;for($e=1;e>=i,o-=i,$n=1<<32-tn(t)+o|r<D?(R=C,C=null):R=C.sibling;var I=f(y,C,b[D],S);if(I===null){C===null&&(C=R);break}e&&C&&I.alternate===null&&t(y,C),m=a(I,m,D),T===null?E=I:T.sibling=I,T=I,C=R}if(D===b.length)return r(y,C),Ke&&ra(y,D),E;if(C===null){for(;DD?(R=C,C=null):R=C.sibling;var L=f(y,C,I.value,S);if(L===null){C===null&&(C=R);break}e&&C&&L.alternate===null&&t(y,C),m=a(L,m,D),T===null?E=L:T.sibling=L,T=L,C=R}if(I.done)return r(y,C),Ke&&ra(y,D),E;if(C===null){for(;!I.done;D++,I=b.next())I=d(y,I.value,S),I!==null&&(m=a(I,m,D),T===null?E=I:T.sibling=I,T=I);return Ke&&ra(y,D),E}for(C=n(y,C);!I.done;D++,I=b.next())I=p(C,y,D,I.value,S),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?D:I.key),m=a(I,m,D),T===null?E=I:T.sibling=I,T=I);return e&&C.forEach(function(te){return t(y,te)}),Ke&&ra(y,D),E}function w(y,m,b,S){if(typeof b=="object"&&b!==null&&b.type===oi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Qu:e:{for(var E=b.key,T=m;T!==null;){if(T.key===E){if(E=b.type,E===oi){if(T.tag===7){r(y,T.sibling),m=o(T,b.props.children),m.return=y,y=m;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ho&&Gb(E)===T.type){r(y,T.sibling),m=o(T,b.props),m.ref=Os(y,T,b),m.return=y,y=m;break e}r(y,T);break}else t(y,T);T=T.sibling}b.type===oi?(m=va(b.props.children,y.mode,S,b.key),m.return=y,y=m):(S=Vc(b.type,b.key,b.props,null,y.mode,S),S.ref=Os(y,m,b),S.return=y,y=S)}return i(y);case ni:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(y,m.sibling),m=o(m,b.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=dh(b,y.mode,S),m.return=y,y=m}return i(y);case ho:return T=b._init,w(y,m,T(b._payload),S)}if(Ys(b))return h(y,m,b,S);if(Ps(b))return v(y,m,b,S);oc(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(y,m.sibling),m=o(m,b),m.return=y,y=m):(r(y,m),m=ch(b,y.mode,S),m.return=y,y=m),i(y)):r(y,m)}return w}var Qi=yC(!0),bC=yC(!1),xu={},xn=Yo(xu),Bl=Yo(xu),zl=Yo(xu);function da(e){if(e===xu)throw Error(B(174));return e}function Qg(e,t){switch(ze(zl,t),ze(Bl,e),ze(xn,xu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Em(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Em(t,e)}He(xn),ze(xn,t)}function qi(){He(xn),He(Bl),He(zl)}function wC(e){da(zl.current);var t=da(xn.current),r=Em(t,e.type);t!==r&&(ze(Bl,e),ze(xn,r))}function qg(e){Bl.current===e&&(He(xn),He(Bl))}var et=Yo(0);function Pd(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 oh=[];function Kg(){for(var e=0;er?r:4,e(!0);var n=ah.transition;ah.transition={};try{e(!1),t()}finally{$e=r,ah.transition=n}}function FC(){return Ur().memoizedState}function SR(e,t,r){var n=Io(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$C(e))LC(t,r);else if(r=hC(e,t,r,n),r!==null){var o=Kt();rn(r,e,n,o),jC(r,t,n)}}function kR(e,t,r){var n=Io(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($C(e))LC(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,on(s,i)){var l=t.interleaved;l===null?(o.next=o,Yg(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=hC(e,t,o,n),r!==null&&(o=Kt(),rn(r,e,n,o),jC(r,t,n))}}function $C(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function LC(e,t){sl=Ed=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function jC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Og(e,r)}}var _d={readContext:Vr,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},CR={readContext:Vr,useCallback:function(e,t){return dn().memoizedState=[e,t===void 0?null:t],e},useContext:Vr,useEffect:Zb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Lc(4194308,4,OC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Lc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lc(4,2,e,t)},useMemo:function(e,t){var r=dn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=dn();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=SR.bind(null,nt,e),[n.memoizedState,e]},useRef:function(e){var t=dn();return e={current:e},t.memoizedState=e},useState:Xb,useDebugValue:e0,useDeferredValue:function(e){return dn().memoizedState=e},useTransition:function(){var e=Xb(!1),t=e[0];return e=xR.bind(null,e[1]),dn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=nt,o=dn();if(Ke){if(r===void 0)throw Error(B(407));r=r()}else{if(r=t(),St===null)throw Error(B(349));Ea&30||kC(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Zb(TC.bind(null,n,a,e),[e]),n.flags|=2048,Wl(9,CC.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=dn(),t=St.identifierPrefix;if(Ke){var r=Ln,n=$n;r=(n&~(1<<32-tn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Vl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[vn]=t,e[jl]=n,qC(e,t,!1,!1),t.stateNode=e;e:{switch(i=Dm(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;oGi&&(t.flags|=128,n=!0,Rs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Pd(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ke)return $t(t),null}else 2*ut()-a.renderingStartTime>Gi&&r!==1073741824&&(t.flags|=128,n=!0,Rs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ut(),t.sibling=null,r=et.current,ze(et,n?r&1|2:r&1),t):($t(t),null);case 22:case 23:return i0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?pr&1073741824&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function RR(e,t){switch(Bg(t),t.tag){case 1:return ir(t.type)&&bd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(),He(ar),He(Vt),Kg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qg(t),null;case 13:if(He(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(et),null;case 4:return qi(),null;case 10:return Wg(t.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var ic=!1,Bt=!1,IR=typeof WeakSet=="function"?WeakSet:Set,q=null;function pi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){it(e,t,n)}else r.current=null}function rv(e,t,r){try{r()}catch(n){it(e,t,n)}}var s1=!1;function AR(e,t){if(jm=md,e=eC(),Lg(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,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=i+o),d!==a||n!==0&&d.nodeType!==3||(l=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bm={focusedElem:e,selectionRange:r},md=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,w=h.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Gr(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(S){it(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=s1,s1=!1,h}function ll(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 a=o.destroy;o.destroy=void 0,a!==void 0&&rv(t,r,a)}o=o.next}while(o!==n)}}function Mf(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 nv(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 XC(e){var t=e.alternate;t!==null&&(e.alternate=null,XC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[jl],delete t[Um],delete t[vR],delete t[gR])),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 ZC(e){return e.tag===5||e.tag===3||e.tag===4}function l1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZC(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 ov(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=yd));else if(n!==4&&(e=e.child,e!==null))for(ov(e,t,r),e=e.sibling;e!==null;)ov(e,t,r),e=e.sibling}function av(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(av(e,t,r),e=e.sibling;e!==null;)av(e,t,r),e=e.sibling}var Mt=null,Xr=!1;function io(e,t,r){for(r=r.child;r!==null;)JC(e,t,r),r=r.sibling}function JC(e,t,r){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(Sf,r)}catch{}switch(r.tag){case 5:Bt||pi(r,t);case 6:var n=Mt,o=Xr;Mt=null,io(e,t,r),Mt=n,Xr=o,Mt!==null&&(Xr?(e=Mt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Mt.removeChild(r.stateNode));break;case 18:Mt!==null&&(Xr?(e=Mt,r=r.stateNode,e.nodeType===8?rh(e.parentNode,r):e.nodeType===1&&rh(e,r),Al(e)):rh(Mt,r.stateNode));break;case 4:n=Mt,o=Xr,Mt=r.stateNode.containerInfo,Xr=!0,io(e,t,r),Mt=n,Xr=o;break;case 0:case 11:case 14:case 15:if(!Bt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&rv(r,t,i),o=o.next}while(o!==n)}io(e,t,r);break;case 1:if(!Bt&&(pi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){it(r,t,s)}io(e,t,r);break;case 21:io(e,t,r);break;case 22:r.mode&1?(Bt=(n=Bt)||r.memoizedState!==null,io(e,t,r),Bt=n):io(e,t,r);break;default:io(e,t,r)}}function u1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new IR),t.forEach(function(n){var o=UR.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function qr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=ut()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*FR(n/1960))-n,10e?16:e,ko===null)var n=!1;else{if(e=ko,ko=null,Od=0,Ce&6)throw Error(B(331));var o=Ce;for(Ce|=4,q=e.current;q!==null;){var a=q,i=a.child;if(q.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lut()-o0?ma(e,0):n0|=r),sr(e,t)}function sT(e,t){t===0&&(e.mode&1?(t=Xu,Xu<<=1,!(Xu&130023424)&&(Xu=4194304)):t=1);var r=Kt();e=Gn(e,t),e!==null&&(yu(e,t,r),sr(e,r))}function VR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sT(e,r)}function UR(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(B(314))}n!==null&&n.delete(t),sT(e,r)}var lT;lT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)or=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return or=!1,MR(e,t,r);or=!!(e.flags&131072)}else or=!1,Ke&&t.flags&1048576&&dC(t,Sd,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jc(e,t),e=t.pendingProps;var o=Yi(t,Vt.current);Ai(t,r),o=Xg(null,t,n,e,o,r);var a=Zg();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,ir(n)?(a=!0,wd(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hg(t),o.updater=_f,t.stateNode=o,o._reactInternals=t,Km(t,n,e,r),t=Zm(null,t,n,!0,a,r)):(t.tag=0,Ke&&a&&jg(t),Yt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jc(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YR(n),e=Gr(n,e),o){case 0:t=Xm(null,t,n,e,r);break e;case 1:t=o1(null,t,n,e,r);break e;case 11:t=r1(null,t,n,e,r);break e;case 14:t=n1(null,t,n,Gr(n.type,e),r);break e}throw Error(B(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gr(n,o),Xm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gr(n,o),o1(e,t,n,o,r);case 3:e:{if(YC(t),e===null)throw Error(B(387));n=t.pendingProps,a=t.memoizedState,o=a.element,mC(e,t),Td(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ki(Error(B(423)),t),t=a1(e,t,n,r,o);break e}else if(n!==o){o=Ki(Error(B(424)),t),t=a1(e,t,n,r,o);break e}else for(mr=Mo(t.stateNode.containerInfo.firstChild),yr=t,Ke=!0,Zr=null,r=bC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Hi(),n===o){t=Xn(e,t,r);break e}Yt(e,t,n,r)}t=t.child}return t;case 5:return wC(t),e===null&&Hm(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,zm(n,o)?i=null:a!==null&&zm(n,a)&&(t.flags|=32),WC(e,t),Yt(e,t,i,r),t.child;case 6:return e===null&&Hm(t),null;case 13:return HC(e,t,r);case 4:return Qg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Qi(t,null,n,r):Yt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gr(n,o),r1(e,t,n,o,r);case 7:return Yt(e,t,t.pendingProps,r),t.child;case 8:return Yt(e,t,t.pendingProps.children,r),t.child;case 12:return Yt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,ze(kd,n._currentValue),n._currentValue=i,a!==null)if(on(a.value,i)){if(a.children===o.children&&!ar.current){t=Xn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Un(-1,r&-r),l.tag=2;var u=a.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}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Qm(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(B(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Qm(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Yt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ai(t,r),o=Vr(o),n=n(o),t.flags|=1,Yt(e,t,n,r),t.child;case 14:return n=t.type,o=Gr(n,t.pendingProps),o=Gr(n.type,o),n1(e,t,n,o,r);case 15:return VC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gr(n,o),jc(e,t),t.tag=1,ir(n)?(e=!0,wd(t)):e=!1,Ai(t,r),gC(t,n,o),Km(t,n,o,r),Zm(null,t,n,!0,e,r);case 19:return QC(e,t,r);case 22:return UC(e,t,r)}throw Error(B(156,t.tag))};function uT(e,t){return Nk(e,t)}function WR(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 $r(e,t,r,n){return new WR(e,t,r,n)}function l0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YR(e){if(typeof e=="function")return l0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eg)return 11;if(e===_g)return 14}return 2}function Ao(e,t){var r=e.alternate;return r===null?(r=$r(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 Vc(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")l0(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case oi:return va(r.children,o,a,t);case Pg:i=8,o|=8;break;case bm:return e=$r(12,r,t,o|2),e.elementType=bm,e.lanes=a,e;case wm:return e=$r(13,r,t,o),e.elementType=wm,e.lanes=a,e;case xm:return e=$r(19,r,t,o),e.elementType=xm,e.lanes=a,e;case yk:return Rf(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vk:i=10;break e;case gk:i=9;break e;case Eg:i=11;break e;case _g:i=14;break e;case ho:i=16,n=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=$r(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function va(e,t,r,n){return e=$r(7,e,n,t),e.lanes=r,e}function Rf(e,t,r,n){return e=$r(22,e,n,t),e.elementType=yk,e.lanes=r,e.stateNode={isHidden:!1},e}function ch(e,t,r){return e=$r(6,e,null,t),e.lanes=r,e}function dh(e,t,r){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HR(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=Yp(0),this.expirationTimes=Yp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yp(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function u0(e,t,r,n,o,a,i,s,l){return e=new HR(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$r(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hg(a),e}function QR(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pT)}catch(e){console.error(e)}}pT(),dk.exports=Cr;var vs=dk.exports;const ZR=fs(vs);var g1=vs;gm.createRoot=g1.createRoot,gm.hydrateRoot=g1.hydrateRoot;/**
* @remix-run/router v1.8.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function p0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eI(){return Math.random().toString(36).substr(2,8)}function b1(e,t){return{usr:e.state,key:e.key,idx:t}}function cv(e,t,r,n){return r===void 0&&(r=null),Hl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gs(t):t,{state:r,key:t&&t.key||n||eI()})}function hT(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function gs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function tI(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Co.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Hl({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){s=Co.Pop;let w=c(),y=w==null?null:w-u;u=w,l&&l({action:s,location:v.location,delta:y})}function f(w,y){s=Co.Push;let m=cv(v.location,w,y);r&&r(m,w),u=c()+1;let b=b1(m,u),S=v.createHref(m);try{i.pushState(b,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}a&&l&&l({action:s,location:v.location,delta:1})}function p(w,y){s=Co.Replace;let m=cv(v.location,w,y);r&&r(m,w),u=c();let b=b1(m,u),S=v.createHref(m);i.replaceState(b,"",S),a&&l&&l({action:s,location:v.location,delta:0})}function h(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:hT(w);return bt(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let v={get action(){return s},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(y1,d),l=w,()=>{o.removeEventListener(y1,d),l=null}},createHref(w){return t(o,w)},createURL:h,encodeLocation(w){let y=h(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(w){return i.go(w)}};return v}var w1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(w1||(w1={}));function rI(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?gs(t):t,o=gT(n.pathname||"/",r);if(o==null)return null;let a=mT(e);nI(a);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(bt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ga([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(bt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),mT(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:cI(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of vT(a.path))o(a,i,l)}),t}function vT(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=vT(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function nI(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:dI(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const oI=/^:\w+$/,aI=3,iI=2,sI=1,lI=10,uI=-2,x1=e=>e==="*";function cI(e,t){let r=e.split("/"),n=r.length;return r.some(x1)&&(n+=uI),t&&(n+=iI),r.filter(o=>!x1(o)).reduce((o,a)=>o+(oI.test(a)?aI:a===""?sI:lI),n)}function dI(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function fI(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{if(c==="*"){let f=s[d]||"";i=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=vI(s[d]||"",c),u},{}),pathname:a,pathnameBase:i,pattern:e}}function hI(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),p0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function mI(e){try{return decodeURI(e)}catch(t){return p0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vI(e,t){try{return decodeURIComponent(e)}catch(r){return p0(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function gT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function gI(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gs(e):e;return{pathname:r?r.startsWith("/")?r:yI(r,t):t,search:SI(n),hash:kI(o)}}function yI(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function fh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function bI(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wI(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gs(e):(o=Hl({},e),bt(!o.pathname||!o.pathname.includes("?"),fh("?","pathname","search",o)),bt(!o.pathname||!o.pathname.includes("#"),fh("#","pathname","hash",o)),bt(!o.search||!o.search.includes("#"),fh("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=gI(o,s),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ga=e=>e.join("/").replace(/\/\/+/g,"/"),xI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function CI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yT=["post","put","patch","delete"];new Set(yT);const TI=["get",...yT];new Set(TI);/**
* React Router v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),i=g.useRef(!1);return wT(()=>{i.current=!0}),g.useCallback(function(l,u){if(u===void 0&&(u={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let c=wI(l,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ga([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,o,e])}function zf(){let{matches:e}=g.useContext($a),t=e[e.length-1];return t?t.params:{}}function _I(e,t){return DI(e,t)}function DI(e,t,r){jf()||bt(!1);let{navigator:n}=g.useContext($f),{matches:o}=g.useContext($a),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=m0(),u;if(t){var c;let v=typeof t=="string"?gs(t):t;s==="/"||(c=v.pathname)!=null&&c.startsWith(s)||bt(!1),u=v}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",p=rI(e,{pathname:f}),h=AI(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:ga([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:ga([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r);return t&&h?g.createElement(Lf.Provider,{value:{location:Ad({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Co.Pop}},h):h}function MI(){let e=LI(),t=CI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:o},r):null,a)}const OI=g.createElement(MI,null);class RI extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?g.createElement($a.Provider,{value:this.props.routeContext},g.createElement(bT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function II(e){let{routeContext:t,match:r,children:n}=e,o=g.useContext(h0);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement($a.Provider,{value:t},n)}function AI(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=a.findIndex(l=>l.route.id&&i?.[l.route.id]);s>=0||bt(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,u)=>{let c=l.route.id?i?.[l.route.id]:null,d=null;r&&(d=l.route.errorElement||OI);let f=t.concat(a.slice(0,u+1)),p=()=>{let h;return c?h=d:l.route.Component?h=g.createElement(l.route.Component,null):l.route.element?h=l.route.element:h=s,g.createElement(II,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:r!=null},children:h})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?g.createElement(RI,{location:r.location,revalidation:r.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var xT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xT||{}),Nd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Nd||{});function NI(e){let t=g.useContext(h0);return t||bt(!1),t}function FI(e){let t=g.useContext(PI);return t||bt(!1),t}function $I(e){let t=g.useContext($a);return t||bt(!1),t}function ST(e){let t=$I(),r=t.matches[t.matches.length-1];return r.route.id||bt(!1),r.route.id}function LI(){var e;let t=g.useContext(bT),r=FI(Nd.UseRouteError),n=ST(Nd.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function jI(){let{router:e}=NI(xT.UseNavigateStable),t=ST(Nd.UseNavigateStable),r=g.useRef(!1);return wT(()=>{r.current=!0}),g.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ad({fromRouteId:t},a)))},[e,t])}function ti(e){bt(!1)}function BI(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Co.Pop,navigator:a,static:i=!1}=e;jf()&&bt(!1);let s=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=gs(n));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=n,h=g.useMemo(()=>{let v=gT(u,s);return v==null?null:{location:{pathname:v,search:c,hash:d,state:f,key:p},navigationType:o}},[s,u,c,d,f,p,o]);return h==null?null:g.createElement($f.Provider,{value:l},g.createElement(Lf.Provider,{children:r,value:h}))}function zI(e){let{children:t,location:r}=e;return _I(dv(t),r)}new Promise(()=>{});function dv(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,o)=>{if(!g.isValidElement(n))return;let a=[...t,o];if(n.type===g.Fragment){r.push.apply(r,dv(n.props.children,a));return}n.type!==ti&&bt(!1),!n.props.index||!n.props.children||bt(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=dv(n.props.children,a)),r.push(i)}),r}/**
* React Router DOM v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/const VI="startTransition",S1=vm[VI];function UI(e){let{basename:t,children:r,future:n,window:o}=e,a=g.useRef();a.current==null&&(a.current=JR({window:o,v5Compat:!0}));let i=a.current,[s,l]=g.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=g.useCallback(d=>{u&&S1?S1(()=>l(d)):l(d)},[l,u]);return g.useLayoutEffect(()=>i.listen(c),[i,c]),g.createElement(BI,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i})}var k1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(k1||(k1={}));var C1;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(C1||(C1={}));function WI(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ot(ys,--cr):0,Xi--,ht===10&&(Xi=1,Uf--),ht}function br(){return ht=cr2||ql(ht)>3?"":" "}function nA(e,t){for(;--t&&br()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return Su(e,Uc()+(t<6&&Sn()==32&&br()==32))}function pv(e){for(;br();)switch(ht){case e:return cr;case 34:case 39:e!==34&&e!==39&&pv(ht);break;case 40:e===41&&pv(e);break;case 92:br();break}return cr}function oA(e,t){for(;br()&&e+ht!==47+10;)if(e+ht===42+42&&Sn()===47)break;return"/*"+Su(t,cr-1)+"*"+Vf(e===47?e:br())}function aA(e){for(;!ql(Sn());)br();return Su(e,cr)}function iA(e){return _T(Yc("",null,null,null,[""],e=ET(e),0,[0],e))}function Yc(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,v=1,w=1,y=1,m=0,b="",S=o,E=a,T=n,C=b;w;)switch(h=m,m=br()){case 40:if(h!=108&&Ot(C,d-1)==58){fv(C+=Re(Wc(m),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=Wc(m);break;case 9:case 10:case 13:case 32:C+=rA(h);break;case 92:C+=nA(Uc()-1,7);continue;case 47:switch(Sn()){case 42:case 47:uc(sA(oA(br(),Uc()),t,r),l);break;default:C+="/"}break;case 123*v:s[u++]=hn(C)*y;case 125*v:case 59:case 0:switch(m){case 0:case 125:w=0;case 59+c:y==-1&&(C=Re(C,/\f/g,"")),p>0&&hn(C)-d&&uc(p>32?P1(C+";",n,r,d-1):P1(Re(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(uc(T=T1(C,t,r,u,c,o,s,b,S=[],E=[],d),a),m===123)if(c===0)Yc(C,t,T,T,S,a,d,s,E);else switch(f===99&&Ot(C,3)===110?100:f){case 100:case 108:case 109:case 115:Yc(e,T,T,n&&uc(T1(e,T,T,0,0,o,s,b,o,S=[],d),E),o,E,d,s,n?S:E);break;default:Yc(C,T,T,T,[""],E,0,s,E)}}u=c=p=0,v=y=1,b=C="",d=i;break;case 58:d=1+hn(C),p=h;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&tA()==125)continue}switch(C+=Vf(m),m*v){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(hn(C)-1)*y,y=1;break;case 64:Sn()===45&&(C+=Wc(br())),f=Sn(),c=d=hn(b=C+=aA(Uc())),m++;break;case 45:h===45&&hn(C)==2&&(v=0)}}return a}function T1(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=o===0?a:[""],p=y0(f),h=0,v=0,w=0;h0?f[y]+" "+m:Re(m,/&\f/g,f[y])))&&(l[w++]=b);return Wf(e,t,r,o===0?v0:s,l,u,c)}function sA(e,t,r){return Wf(e,t,r,kT,Vf(eA()),Ql(e,2,-2),0)}function P1(e,t,r,n){return Wf(e,t,r,g0,Ql(e,0,n),Ql(e,n+1,-1),n)}function Fi(e,t){for(var r="",n=y0(e),o=0;o6)switch(Ot(e,t+1)){case 109:if(Ot(e,t+4)!==45)break;case 102:return Re(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+Fd+(Ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fv(e,"stretch")?MT(Re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ot(e,t+1)!==115)break;case 6444:switch(Ot(e,hn(e)-3-(~fv(e,"!important")&&10))){case 107:return Re(e,":",":"+Oe)+e;case 101:return Re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(Ot(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return Oe+e+Lt+Re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+Lt+Re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+Lt+Re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+Lt+e+e}return e}var vA=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case g0:t.return=MT(t.value,t.length);break;case CT:return Fi([As(t,{value:Re(t.value,"@","@"+Oe)})],o);case v0:if(t.length)return JI(t.props,function(a){switch(ZI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fi([As(t,{props:[Re(a,/:(read-\w+)/,":"+Fd+"$1")]})],o);case"::placeholder":return Fi([As(t,{props:[Re(a,/:(plac\w+)/,":"+Oe+"input-$1")]}),As(t,{props:[Re(a,/:(plac\w+)/,":"+Fd+"$1")]}),As(t,{props:[Re(a,/:(plac\w+)/,Lt+"input-$1")]})],o)}return""})}},gA=[vA],yA=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(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||gA,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),y=1;y=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 MA={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},OA=/[A-Z]|^ms/g,RA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$T=function(t){return t.charCodeAt(1)===45},D1=function(t){return t!=null&&typeof t!="boolean"},ph=DT(function(e){return $T(e)?e:e.replace(OA,"-$&").toLowerCase()}),M1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(RA,function(n,o,a){return mn={name:o,styles:a,next:mn},o})}return MA[t]!==1&&!$T(t)&&typeof r=="number"&&r!==0?r+"px":r};function Kl(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 mn={name:r.name,styles:r.styles,next:mn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)mn={name:n.name,styles:n.styles,next:mn},n=n.next;var o=r.styles+";";return o}return IA(e,t,r)}case"function":{if(e!==void 0){var a=mn,i=r(e);return mn=a,Kl(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function IA(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ox.jsx(tp,{styles:VT}),zA=({scope:e=""})=>x.jsx(tp,{styles:zT`
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;
}
${VT}
`});function VA(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Nt(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,s=g.createContext(i);s.displayName=t;function l(){var u;const c=g.useContext(s);if(!c&&r){const d=new Error(a??VA(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[UA,WA]=Nt({strict:!1,name:"PortalManagerContext"});function UT(e){const{children:t,zIndex:r}=e;return x.jsx(UA,{value:{zIndex:r},children:t})}UT.displayName="PortalManager";var ya=globalThis?.document?g.useLayoutEffect:g.useEffect,[WT,YA]=Nt({strict:!1,name:"PortalContext"}),k0="chakra-portal",HA=".chakra-portal",QA=e=>x.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),qA=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=g.useState(null),a=g.useRef(null),[,i]=g.useState({});g.useEffect(()=>i({}),[]);const s=YA(),l=WA();ya(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;a.current=c.createElement("div"),a.current.className=k0,d.appendChild(a.current),i({});const f=a.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l?.zIndex?x.jsx(QA,{zIndex:l?.zIndex,children:r}):r;return a.current?vs.createPortal(x.jsx(WT,{value:a.current,children:u}),a.current):x.jsx("span",{ref:c=>{c&&o(c)}})},KA=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,a=o??(typeof window<"u"?document.body:void 0),i=g.useMemo(()=>{const l=o?.ownerDocument.createElement("div");return l&&(l.className=k0),l},[o]),[,s]=g.useState({});return ya(()=>s({}),[]),ya(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?vs.createPortal(x.jsx(WT,{value:n?i:null,children:t}),i):null};function ku(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?x.jsx(KA,{containerRef:r,...n}):x.jsx(qA,{...n})}ku.className=k0;ku.selector=HA;ku.displayName="Portal";function YT(){const e=g.useContext(Gl);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in ` ` or ` `");return e}var C0=g.createContext({});C0.displayName="ColorModeContext";function T0(){const e=g.useContext(C0);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var cc={light:"chakra-ui-light",dark:"chakra-ui-dark"};function GA(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?.()},setClassName(n){document.body.classList.add(n?cc.dark:cc.light),document.body.classList.remove(n?cc.light:cc.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(),a=i=>{n(i.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},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 XA="chakra-ui-color-mode";function ZA(e){return{ssr:!1,type:"localStorage",get(t){if(!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 JA=ZA(XA),I1=()=>{};function A1(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function HT(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:i=JA}=e,s=o==="dark"?"dark":"light",[l,u]=g.useState(()=>A1(i,s)),[c,d]=g.useState(()=>A1(i)),{getSystemTheme:f,setClassName:p,setDataset:h,addListener:v}=g.useMemo(()=>GA({preventTransition:a}),[a]),w=o==="system"&&!l?c:l,y=g.useCallback(S=>{const E=S==="system"?f():S;u(E),p(E==="dark"),h(E),i.set(E)},[i,f,p,h]);ya(()=>{o==="system"&&d(f())},[]),g.useEffect(()=>{const S=i.get();if(S){y(S);return}if(o==="system"){y("system");return}y(s)},[i,s,o,y]);const m=g.useCallback(()=>{y(w==="dark"?"light":"dark")},[w,y]);g.useEffect(()=>{if(n)return v(y)},[n,v,y]);const b=g.useMemo(()=>({colorMode:t??w,toggleColorMode:t?I1:m,setColorMode:t?I1:y,forced:t!==void 0}),[w,m,y,t]);return x.jsx(C0.Provider,{value:b,children:r})}HT.displayName="ColorModeProvider";function eN(){const e=T0(),t=YT();return{...e,theme:t}}var we=(...e)=>e.filter(Boolean).join(" ");function tN(){return!1}function Br(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Cu=e=>{const{condition:t,message:r}=e;t&&tN()&&console.warn(r)};function jn(e,...t){return rN(e)?e(...t):e}var rN=e=>typeof e=="function",Ee=e=>e?"":void 0,hh=e=>e?!0:void 0;function Je(...e){return function(r){e.some(n=>(n?.(r),r?.defaultPrevented))}}function QT(...e){return function(r){e.forEach(n=>{n?.(r)})}}var $d={exports:{}};$d.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",v="[object Map]",w="[object Number]",y="[object Null]",m="[object Object]",b="[object Proxy]",S="[object RegExp]",E="[object Set]",T="[object String]",C="[object Undefined]",D="[object WeakMap]",R="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",te="[object Float64Array]",X="[object Int8Array]",re="[object Int16Array]",H="[object Int32Array]",Z="[object Uint8Array]",$="[object Uint8ClampedArray]",j="[object Uint16Array]",U="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,Q={};Q[L]=Q[te]=Q[X]=Q[re]=Q[H]=Q[Z]=Q[$]=Q[j]=Q[U]=!0,Q[s]=Q[l]=Q[R]=Q[c]=Q[I]=Q[d]=Q[f]=Q[p]=Q[v]=Q[w]=Q[m]=Q[S]=Q[E]=Q[T]=Q[D]=!1;var J=typeof Yu=="object"&&Yu&&Yu.Object===Object&&Yu,ve=typeof self=="object"&&self&&self.Object===Object&&self,pe=J||ve||Function("return this")(),ye=t&&!t.nodeType&&t,se=ye&&!0&&e&&!e.nodeType&&e,ce=se&&se.exports===ye,De=ce&&J.process,Ze=function(){try{var k=se&&se.require&&se.require("util").types;return k||De&&De.binding&&De.binding("util")}catch{}}(),tr=Ze&&Ze.isTypedArray;function Er(k,M,N){switch(N.length){case 0:return k.call(M);case 1:return k.call(M,N[0]);case 2:return k.call(M,N[0],N[1]);case 3:return k.call(M,N[0],N[1],N[2])}return k.apply(M,N)}function no(k,M){for(var N=-1,W=Array(k);++N-1}function $2(k,M){var N=this.__data__,W=zu(N,k);return W<0?(++this.size,N.push([k,M])):N[W][1]=M,this}Dn.prototype.clear=I2,Dn.prototype.delete=A2,Dn.prototype.get=N2,Dn.prototype.has=F2,Dn.prototype.set=$2;function Wa(k){var M=-1,N=k==null?0:k.length;for(this.clear();++M1?N[ke-1]:void 0,Qe=ke>2?N[2]:void 0;for(Be=k.length>3&&typeof Be=="function"?(ke--,Be):void 0,Qe&&fM(N[0],N[1],Qe)&&(Be=ke<3?void 0:Be,ke=1),M=Object(M);++W-1&&k%1==0&&k0){if(++M>=o)return arguments[0]}else M=0;return k.apply(void 0,arguments)}}function wM(k){if(k!=null){try{return Go.call(k)}catch{}try{return k+""}catch{}}return""}function Wu(k,M){return k===M||k!==k&&M!==M}var Ap=Jy(function(){return arguments}())?Jy:function(k){return Cs(k)&&Dr.call(k,"callee")&&!k2.call(k,"callee")},Np=Array.isArray;function Fp(k){return k!=null&&ob(k.length)&&!$p(k)}function xM(k){return Cs(k)&&Fp(k)}var nb=T2||PM;function $p(k){if(!ea(k))return!1;var M=Vu(k);return M==p||M==h||M==u||M==b}function ob(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=i}function ea(k){var M=typeof k;return k!=null&&(M=="object"||M=="function")}function Cs(k){return k!=null&&typeof k=="object"}function SM(k){if(!Cs(k)||Vu(k)!=m)return!1;var M=Ky(k);if(M===null)return!0;var N=Dr.call(M,"constructor")&&M.constructor;return typeof N=="function"&&N instanceof N&&Go.call(N)==Lu}var ab=tr?de(tr):Z2;function kM(k){return sM(k,ib(k))}function ib(k){return Fp(k)?q2(k,!0):J2(k)}var CM=lM(function(k,M,N,W){eb(k,M,N,W)});function TM(k){return function(){return k}}function sb(k){return k}function PM(){return!1}e.exports=CM})($d,$d.exports);var nN=$d.exports;const Lr=fs(nN);var oN=e=>/!(important)?$/.test(e),N1=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,aN=(e,t)=>r=>{const n=String(t),o=oN(n),a=N1(n),i=e?`${e}.${a}`:a;let s=Br(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=N1(s),o?`${s} !important`:s};function P0(e){const{scale:t,transform:r,compose:n}=e;return(a,i)=>{var s;const l=aN(t,a)(i);let u=(s=r?.(l,i))!=null?s:l;return n&&(u=n(u,i)),u}}var dc=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Or(e,t){return r=>{const n={property:r,scale:e};return n.transform=P0({scale:e,transform:t}),n}}var iN=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function sN(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:iN(t),transform:r?P0({scale:r,compose:n}):n}}var qT=["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 lN(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qT].join(" ")}function uN(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qT].join(" ")}var cN={"--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(" ")},dN={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 fN(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 pN={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},hv={"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"},hN=new Set(Object.values(hv)),mv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),mN=e=>e.trim();function vN(e,t){if(e==null||mv.has(e))return e;if(!(vv(e)||mv.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=o?.[1],i=o?.[2];if(!a||!i)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...u]=i.split(",").map(mN).filter(Boolean);if(u?.length===0)return e;const c=l in hv?hv[l]:l;u.unshift(c);const d=u.map(f=>{if(hN.has(f))return f;const p=f.indexOf(" "),[h,v]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=vv(v)?v:v&&v.split(" "),y=`colors.${h}`,m=y in t.__cssMap?t.__cssMap[y].varRef:h;return w?[m,...Array.isArray(w)?w:[w]].join(" "):m});return`${s}(${d.join(", ")})`}var vv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),gN=(e,t)=>vN(e,t??{});function yN(e){return/^var\(--.+\)$/.test(e)}var bN=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},un=e=>t=>`${e}(${t})`,_e={filter(e){return e!=="auto"?e:cN},backdropFilter(e){return e!=="auto"?e:dN},ring(e){return fN(_e.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?lN():e==="auto-gpu"?uN():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=bN(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(yN(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:gN,blur:un("blur"),opacity:un("opacity"),brightness:un("brightness"),contrast:un("contrast"),dropShadow:un("drop-shadow"),grayscale:un("grayscale"),hueRotate:un("hue-rotate"),invert:un("invert"),saturate:un("saturate"),sepia:un("sepia"),bgImage(e){return e==null||vv(e)||mv.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=pN[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},O={borderWidths:Or("borderWidths"),borderStyles:Or("borderStyles"),colors:Or("colors"),borders:Or("borders"),gradients:Or("gradients",_e.gradient),radii:Or("radii",_e.px),space:Or("space",dc(_e.vh,_e.px)),spaceT:Or("space",dc(_e.vh,_e.px)),degreeT(e){return{property:e,transform:_e.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:P0({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Or("sizes",dc(_e.vh,_e.px)),sizesT:Or("sizes",dc(_e.vh,_e.fraction)),shadows:Or("shadows"),logical:sN,blur:Or("blur",_e.blur)},Hc={background:O.colors("background"),backgroundColor:O.colors("backgroundColor"),backgroundImage:O.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_e.bgClip},bgSize:O.prop("backgroundSize"),bgPosition:O.prop("backgroundPosition"),bg:O.colors("background"),bgColor:O.colors("backgroundColor"),bgPos:O.prop("backgroundPosition"),bgRepeat:O.prop("backgroundRepeat"),bgAttachment:O.prop("backgroundAttachment"),bgGradient:O.gradients("backgroundImage"),bgClip:{transform:_e.bgClip}};Object.assign(Hc,{bgImage:Hc.backgroundImage,bgImg:Hc.backgroundImage});var Me={border:O.borders("border"),borderWidth:O.borderWidths("borderWidth"),borderStyle:O.borderStyles("borderStyle"),borderColor:O.colors("borderColor"),borderRadius:O.radii("borderRadius"),borderTop:O.borders("borderTop"),borderBlockStart:O.borders("borderBlockStart"),borderTopLeftRadius:O.radii("borderTopLeftRadius"),borderStartStartRadius:O.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:O.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:O.radii("borderTopRightRadius"),borderStartEndRadius:O.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:O.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:O.borders("borderRight"),borderInlineEnd:O.borders("borderInlineEnd"),borderBottom:O.borders("borderBottom"),borderBlockEnd:O.borders("borderBlockEnd"),borderBottomLeftRadius:O.radii("borderBottomLeftRadius"),borderBottomRightRadius:O.radii("borderBottomRightRadius"),borderLeft:O.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:O.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:O.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:O.borders(["borderLeft","borderRight"]),borderInline:O.borders("borderInline"),borderY:O.borders(["borderTop","borderBottom"]),borderBlock:O.borders("borderBlock"),borderTopWidth:O.borderWidths("borderTopWidth"),borderBlockStartWidth:O.borderWidths("borderBlockStartWidth"),borderTopColor:O.colors("borderTopColor"),borderBlockStartColor:O.colors("borderBlockStartColor"),borderTopStyle:O.borderStyles("borderTopStyle"),borderBlockStartStyle:O.borderStyles("borderBlockStartStyle"),borderBottomWidth:O.borderWidths("borderBottomWidth"),borderBlockEndWidth:O.borderWidths("borderBlockEndWidth"),borderBottomColor:O.colors("borderBottomColor"),borderBlockEndColor:O.colors("borderBlockEndColor"),borderBottomStyle:O.borderStyles("borderBottomStyle"),borderBlockEndStyle:O.borderStyles("borderBlockEndStyle"),borderLeftWidth:O.borderWidths("borderLeftWidth"),borderInlineStartWidth:O.borderWidths("borderInlineStartWidth"),borderLeftColor:O.colors("borderLeftColor"),borderInlineStartColor:O.colors("borderInlineStartColor"),borderLeftStyle:O.borderStyles("borderLeftStyle"),borderInlineStartStyle:O.borderStyles("borderInlineStartStyle"),borderRightWidth:O.borderWidths("borderRightWidth"),borderInlineEndWidth:O.borderWidths("borderInlineEndWidth"),borderRightColor:O.colors("borderRightColor"),borderInlineEndColor:O.colors("borderInlineEndColor"),borderRightStyle:O.borderStyles("borderRightStyle"),borderInlineEndStyle:O.borderStyles("borderInlineEndStyle"),borderTopRadius:O.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:O.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:O.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:O.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Me,{rounded:Me.borderRadius,roundedTop:Me.borderTopRadius,roundedTopLeft:Me.borderTopLeftRadius,roundedTopRight:Me.borderTopRightRadius,roundedTopStart:Me.borderStartStartRadius,roundedTopEnd:Me.borderStartEndRadius,roundedBottom:Me.borderBottomRadius,roundedBottomLeft:Me.borderBottomLeftRadius,roundedBottomRight:Me.borderBottomRightRadius,roundedBottomStart:Me.borderEndStartRadius,roundedBottomEnd:Me.borderEndEndRadius,roundedLeft:Me.borderLeftRadius,roundedRight:Me.borderRightRadius,roundedStart:Me.borderInlineStartRadius,roundedEnd:Me.borderInlineEndRadius,borderStart:Me.borderInlineStart,borderEnd:Me.borderInlineEnd,borderTopStartRadius:Me.borderStartStartRadius,borderTopEndRadius:Me.borderStartEndRadius,borderBottomStartRadius:Me.borderEndStartRadius,borderBottomEndRadius:Me.borderEndEndRadius,borderStartRadius:Me.borderInlineStartRadius,borderEndRadius:Me.borderInlineEndRadius,borderStartWidth:Me.borderInlineStartWidth,borderEndWidth:Me.borderInlineEndWidth,borderStartColor:Me.borderInlineStartColor,borderEndColor:Me.borderInlineEndColor,borderStartStyle:Me.borderInlineStartStyle,borderEndStyle:Me.borderInlineEndStyle});var wN={color:O.colors("color"),textColor:O.colors("color"),fill:O.colors("fill"),stroke:O.colors("stroke")},gv={boxShadow:O.shadows("boxShadow"),mixBlendMode:!0,blendMode:O.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:O.prop("backgroundBlendMode"),opacity:!0};Object.assign(gv,{shadow:gv.boxShadow});var xN={filter:{transform:_e.filter},blur:O.blur("--chakra-blur"),brightness:O.propT("--chakra-brightness",_e.brightness),contrast:O.propT("--chakra-contrast",_e.contrast),hueRotate:O.degreeT("--chakra-hue-rotate"),invert:O.propT("--chakra-invert",_e.invert),saturate:O.propT("--chakra-saturate",_e.saturate),dropShadow:O.propT("--chakra-drop-shadow",_e.dropShadow),backdropFilter:{transform:_e.backdropFilter},backdropBlur:O.blur("--chakra-backdrop-blur"),backdropBrightness:O.propT("--chakra-backdrop-brightness",_e.brightness),backdropContrast:O.propT("--chakra-backdrop-contrast",_e.contrast),backdropHueRotate:O.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:O.propT("--chakra-backdrop-invert",_e.invert),backdropSaturate:O.propT("--chakra-backdrop-saturate",_e.saturate)},Ld={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_e.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:O.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:O.space("gap"),rowGap:O.space("rowGap"),columnGap:O.space("columnGap")};Object.assign(Ld,{flexDir:Ld.flexDirection});var KT={gridGap:O.space("gridGap"),gridColumnGap:O.space("gridColumnGap"),gridRowGap:O.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},SN={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_e.outline},outlineOffset:!0,outlineColor:O.colors("outlineColor")},Ir={width:O.sizesT("width"),inlineSize:O.sizesT("inlineSize"),height:O.sizes("height"),blockSize:O.sizes("blockSize"),boxSize:O.sizes(["width","height"]),minWidth:O.sizes("minWidth"),minInlineSize:O.sizes("minInlineSize"),minHeight:O.sizes("minHeight"),minBlockSize:O.sizes("minBlockSize"),maxWidth:O.sizes("maxWidth"),maxInlineSize:O.sizes("maxInlineSize"),maxHeight:O.sizes("maxHeight"),maxBlockSize:O.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:O.propT("float",_e.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ir,{w:Ir.width,h:Ir.height,minW:Ir.minWidth,maxW:Ir.maxWidth,minH:Ir.minHeight,maxH:Ir.maxHeight,overscroll:Ir.overscrollBehavior,overscrollX:Ir.overscrollBehaviorX,overscrollY:Ir.overscrollBehaviorY});var kN={listStyleType:!0,listStylePosition:!0,listStylePos:O.prop("listStylePosition"),listStyleImage:!0,listStyleImg:O.prop("listStyleImage")};function CN(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},PN=TN(CN),EN={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},_N={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},mh=(e,t,r)=>{const n={},o=PN(e,t,{});for(const a in o)a in r&&r[a]!=null||(n[a]=o[a]);return n},DN={srOnly:{transform(e){return e===!0?EN:e==="focusable"?_N:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>mh(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>mh(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>mh(t,e,r)}},dl={position:!0,pos:O.prop("position"),zIndex:O.prop("zIndex","zIndices"),inset:O.spaceT("inset"),insetX:O.spaceT(["left","right"]),insetInline:O.spaceT("insetInline"),insetY:O.spaceT(["top","bottom"]),insetBlock:O.spaceT("insetBlock"),top:O.spaceT("top"),insetBlockStart:O.spaceT("insetBlockStart"),bottom:O.spaceT("bottom"),insetBlockEnd:O.spaceT("insetBlockEnd"),left:O.spaceT("left"),insetInlineStart:O.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:O.spaceT("right"),insetInlineEnd:O.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(dl,{insetStart:dl.insetInlineStart,insetEnd:dl.insetInlineEnd});var MN={ring:{transform:_e.ring},ringColor:O.colors("--chakra-ring-color"),ringOffset:O.prop("--chakra-ring-offset-width"),ringOffsetColor:O.colors("--chakra-ring-offset-color"),ringInset:O.prop("--chakra-ring-inset")},We={margin:O.spaceT("margin"),marginTop:O.spaceT("marginTop"),marginBlockStart:O.spaceT("marginBlockStart"),marginRight:O.spaceT("marginRight"),marginInlineEnd:O.spaceT("marginInlineEnd"),marginBottom:O.spaceT("marginBottom"),marginBlockEnd:O.spaceT("marginBlockEnd"),marginLeft:O.spaceT("marginLeft"),marginInlineStart:O.spaceT("marginInlineStart"),marginX:O.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:O.spaceT("marginInline"),marginY:O.spaceT(["marginTop","marginBottom"]),marginBlock:O.spaceT("marginBlock"),padding:O.space("padding"),paddingTop:O.space("paddingTop"),paddingBlockStart:O.space("paddingBlockStart"),paddingRight:O.space("paddingRight"),paddingBottom:O.space("paddingBottom"),paddingBlockEnd:O.space("paddingBlockEnd"),paddingLeft:O.space("paddingLeft"),paddingInlineStart:O.space("paddingInlineStart"),paddingInlineEnd:O.space("paddingInlineEnd"),paddingX:O.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:O.space("paddingInline"),paddingY:O.space(["paddingTop","paddingBottom"]),paddingBlock:O.space("paddingBlock")};Object.assign(We,{m:We.margin,mt:We.marginTop,mr:We.marginRight,me:We.marginInlineEnd,marginEnd:We.marginInlineEnd,mb:We.marginBottom,ml:We.marginLeft,ms:We.marginInlineStart,marginStart:We.marginInlineStart,mx:We.marginX,my:We.marginY,p:We.padding,pt:We.paddingTop,py:We.paddingY,px:We.paddingX,pb:We.paddingBottom,pl:We.paddingLeft,ps:We.paddingInlineStart,paddingStart:We.paddingInlineStart,pr:We.paddingRight,pe:We.paddingInlineEnd,paddingEnd:We.paddingInlineEnd});var ON={textDecorationColor:O.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:O.shadows("textShadow")},RN={clipPath:!0,transform:O.propT("transform",_e.transform),transformOrigin:!0,translateX:O.spaceT("--chakra-translate-x"),translateY:O.spaceT("--chakra-translate-y"),skewX:O.degreeT("--chakra-skew-x"),skewY:O.degreeT("--chakra-skew-y"),scaleX:O.prop("--chakra-scale-x"),scaleY:O.prop("--chakra-scale-y"),scale:O.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:O.degreeT("--chakra-rotate")},IN={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:O.prop("transitionDuration","transition.duration"),transitionProperty:O.prop("transitionProperty","transition.property"),transitionTimingFunction:O.prop("transitionTimingFunction","transition.easing")},AN={fontFamily:O.prop("fontFamily","fonts"),fontSize:O.prop("fontSize","fontSizes",_e.px),fontWeight:O.prop("fontWeight","fontWeights"),lineHeight:O.prop("lineHeight","lineHeights"),letterSpacing:O.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"}},NN={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:O.spaceT("scrollMargin"),scrollMarginTop:O.spaceT("scrollMarginTop"),scrollMarginBottom:O.spaceT("scrollMarginBottom"),scrollMarginLeft:O.spaceT("scrollMarginLeft"),scrollMarginRight:O.spaceT("scrollMarginRight"),scrollMarginX:O.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:O.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:O.spaceT("scrollPadding"),scrollPaddingTop:O.spaceT("scrollPaddingTop"),scrollPaddingBottom:O.spaceT("scrollPaddingBottom"),scrollPaddingLeft:O.spaceT("scrollPaddingLeft"),scrollPaddingRight:O.spaceT("scrollPaddingRight"),scrollPaddingX:O.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:O.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function GT(e){return Br(e)&&e.reference?e.reference:String(e)}var np=(e,...t)=>t.map(GT).join(` ${e} `).replace(/calc/g,""),F1=(...e)=>`calc(${np("+",...e)})`,$1=(...e)=>`calc(${np("-",...e)})`,yv=(...e)=>`calc(${np("*",...e)})`,L1=(...e)=>`calc(${np("/",...e)})`,j1=e=>{const t=GT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:yv(t,-1)},sa=Object.assign(e=>({add:(...t)=>sa(F1(e,...t)),subtract:(...t)=>sa($1(e,...t)),multiply:(...t)=>sa(yv(e,...t)),divide:(...t)=>sa(L1(e,...t)),negate:()=>sa(j1(e)),toString:()=>e.toString()}),{add:F1,subtract:$1,multiply:yv,divide:L1,negate:j1});function FN(e,t="-"){return e.replace(/\s+/g,t)}function $N(e){const t=FN(e.toString());return jN(LN(t))}function LN(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function jN(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function BN(e,t=""){return[t,e].filter(Boolean).join("-")}function zN(e,t){return`var(${e}${t?`, ${t}`:""})`}function VN(e,t=""){return $N(`--${BN(e,t)}`)}function ae(e,t,r){const n=VN(e,r);return{variable:n,reference:zN(n,t)}}function UN(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,a]=n;r[o]=ae(`${e}-${o}`,a);continue}r[n]=ae(`${e}-${n}`)}return r}function WN(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function YN(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function bv(e){if(e==null)return e;const{unitless:t}=YN(e);return t||typeof e=="number"?`${e}px`:e}var XT=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,E0=e=>Object.fromEntries(Object.entries(e).sort(XT));function B1(e){const t=E0(e);return Object.assign(Object.values(t),t)}function HN(e){const t=Object.keys(E0(e));return new Set(t)}function z1(e){var t;if(!e)return e;e=(t=bv(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function qs(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${bv(e)})`),t&&r.push("and",`(max-width: ${bv(t)})`),r.join(" ")}function QN(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=B1(e),n=Object.entries(e).sort(XT).map(([i,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?z1(d):void 0,{_minW:z1(s),breakpoint:i,minW:s,maxW:d,maxWQuery:qs(null,d),minWQuery:qs(s),minMaxQuery:qs(s,d)}}),o=HN(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(l=>o.has(l))},asObject:E0(e),asArray:B1(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...r.map(i=>qs(i)).slice(1)],toArrayValue(i){if(!Br(i))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var u;return(u=i[l])!=null?u:null});for(;WN(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,l,u)=>{const c=a[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Dt={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}`},so=e=>ZT(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Mn=e=>ZT(t=>e(t,"~ &"),"[data-peer]",".peer"),ZT=(e,...t)=>t.map(e).join(", "),op={_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:so(Dt.hover),_peerHover:Mn(Dt.hover),_groupFocus:so(Dt.focus),_peerFocus:Mn(Dt.focus),_groupFocusVisible:so(Dt.focusVisible),_peerFocusVisible:Mn(Dt.focusVisible),_groupActive:so(Dt.active),_peerActive:Mn(Dt.active),_groupDisabled:so(Dt.disabled),_peerDisabled:Mn(Dt.disabled),_groupInvalid:so(Dt.invalid),_peerInvalid:Mn(Dt.invalid),_groupChecked:so(Dt.checked),_peerChecked:Mn(Dt.checked),_groupFocusWithin:so(Dt.focusWithin),_peerFocusWithin:Mn(Dt.focusWithin),_peerPlaceholderShown:Mn(Dt.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]"},JT=Object.keys(op);function V1(e,t){return ae(String(e).replace(/\./g,"-"),void 0,t)}function qN(e,t){let r={};const n={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:u}=V1(o,t?.cssVarPrefix);if(!i){if(o.startsWith("space")){const f=o.split("."),[p,...h]=f,v=`${p}.-${h.join(".")}`,w=sa.negate(s),y=sa.negate(u);n[v]={value:w,var:l,varRef:y}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const h=[String(o).split(".")[0],f].join(".");if(!e[h])return f;const{reference:w}=V1(h,t?.cssVarPrefix);return w},d=Br(s)?s:{default:s};r=Lr(r,Object.entries(d).reduce((f,[p,h])=>{var v,w;if(!h)return f;const y=c(`${h}`);if(p==="default")return f[l]=y,f;const m=(w=(v=op)==null?void 0:v[p])!=null?w:p;return f[m]={[l]:y},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function KN(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function GN(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function XN(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function U1(e,t,r={}){const{stop:n,getKey:o}=r;function a(i,s=[]){var l;if(XN(i)||Array.isArray(i)){const u={};for(const[c,d]of Object.entries(i)){const f=(l=o?.(c))!=null?l:c,p=[...s,f];if(n?.(i,p))return t(i,s);u[f]=a(d,p)}return u}return t(i,s)}return a(e)}var ZN=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function JN(e){return GN(e,ZN)}function e5(e){return e.semanticTokens}function t5(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var r5=e=>JT.includes(e)||e==="default";function n5({tokens:e,semanticTokens:t}){const r={};return U1(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),U1(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(r5)}),r}function o5(e){var t;const r=t5(e),n=JN(r),o=e5(r),a=n5({tokens:n,semanticTokens:o}),i=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=qN(a,{cssVarPrefix:i});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:s,__breakpoints:QN(r.breakpoints)}),r}var _0=Lr({},Hc,Me,wN,Ld,Ir,xN,MN,SN,KT,DN,dl,gv,We,NN,AN,ON,RN,kN,IN);Object.assign({},We,Ir,Ld,KT,dl);var a5=[...Object.keys(_0),...JT],i5={..._0,...op},s5=e=>e in i5,l5=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,a={};for(const i in e){let s=jn(e[i],t);if(s==null)continue;if(s=Br(s)&&r(s)?n(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!c5(t),f5=(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},a=l=>{var u;return(u=o(l))!=null?u:l},[i,s]=u5(t);return t=(n=(r=o(i))!=null?r:a(s))!=null?n:a(t),t};function p5(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(a,i=!1)=>{var s,l,u;const c=jn(a,n),d=l5(c)(n);let f={};for(let p in d){const h=d[p];let v=jn(h,n);p in r&&(p=r[p]),d5(p,v)&&(v=f5(n,v));let w=t[p];if(w===!0&&(w={property:p}),Br(v)){f[p]=(s=f[p])!=null?s:{},f[p]=Lr({},f[p],o(v,!0));continue}let y=(u=(l=w?.transform)==null?void 0:l.call(w,v,n,c))!=null?u:v;y=w?.processResult?o(y,!0):y;const m=jn(w?.property,n);if(!i&&w?.static){const b=jn(w.static,n);f=Lr({},f,b)}if(m&&Array.isArray(m)){for(const b of m)f[b]=y;continue}if(m){m==="&"&&Br(y)?f=Lr({},f,y):f[m]=y;continue}if(Br(y)){f=Lr({},f,y);continue}f[p]=y}return f};return o}var eP=e=>t=>p5({theme:t,pseudos:op,configs:_0})(e);function Ve(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function h5(e,t){if(Array.isArray(e))return e;if(Br(e))return t(e);if(e!=null)return[e]}function m5(e,t){for(let r=t+1;r{Lr(u,{[b]:f?m[b]:{[y]:m[b]}})});continue}if(!p){f?Lr(u,m):u[y]=m;continue}u[y]=m}}return u}}function g5(e){return t=>{var r;const{variant:n,size:o,theme:a}=t,i=v5(a);return Lr({},jn((r=e.baseStyle)!=null?r:{},t),i(e,"sizes",o,t),i(e,"variants",n,t))}}function sn(e){return KN(e,["styleConfig","size","variant","colorScheme"])}var y5=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function b5(e){return Br(e)?y5.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var w5={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"},x5={"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)"},S5={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},k5={property:w5,easing:x5,duration:S5},C5=k5,T5={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},P5=T5,E5={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},_5=E5,D5={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},M5=D5,O5={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"}},R5=O5,I5={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},A5=I5,N5={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"},F5=N5,$5={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},L5=$5,j5={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"}},tP=j5,rP={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"},B5={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"},z5={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},V5={...rP,...B5,container:z5},nP=V5,U5={breakpoints:M5,zIndices:P5,radii:A5,blur:L5,colors:R5,...tP,sizes:nP,shadows:F5,space:rP,borders:_5,transition:C5},{defineMultiStyleConfig:W5,definePartsStyle:Ks}=Ve(["stepper","step","title","description","indicator","separator","icon","number"]),Nn=ae("stepper-indicator-size"),mi=ae("stepper-icon-size"),vi=ae("stepper-title-font-size"),Gs=ae("stepper-description-font-size"),Ns=ae("stepper-accent-color"),Y5=Ks(({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"},[Ns.variable]:`colors.${e}.500`,_dark:{[Ns.variable]:`colors.${e}.200`}},title:{fontSize:vi.reference,fontWeight:"medium"},description:{fontSize:Gs.reference,color:"chakra-subtle-text"},number:{fontSize:vi.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:mi.reference,height:mi.reference},indicator:{flexShrink:0,borderRadius:"full",width:Nn.reference,height:Nn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ns.reference},"&[data-status=complete]":{bg:Ns.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ns.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Nn.reference} - 8px)`,top:`calc(${Nn.reference} + 4px)`,insetStart:`calc(${Nn.reference} / 2 - 1px)`}}})),H5=W5({baseStyle:Y5,sizes:{xs:Ks({stepper:{[Nn.variable]:"sizes.4",[mi.variable]:"sizes.3",[vi.variable]:"fontSizes.xs",[Gs.variable]:"fontSizes.xs"}}),sm:Ks({stepper:{[Nn.variable]:"sizes.6",[mi.variable]:"sizes.4",[vi.variable]:"fontSizes.sm",[Gs.variable]:"fontSizes.xs"}}),md:Ks({stepper:{[Nn.variable]:"sizes.8",[mi.variable]:"sizes.5",[vi.variable]:"fontSizes.md",[Gs.variable]:"fontSizes.sm"}}),lg:Ks({stepper:{[Nn.variable]:"sizes.10",[mi.variable]:"sizes.6",[vi.variable]:"fontSizes.lg",[Gs.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ne(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 Ne(e,t)}function a(...c){for(const d of c)d in t||(t[d]=l(d));return Ne(e,t)}function i(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){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:a,selectors:i,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var Q5=Ne("accordion").parts("root","container","button","panel").extend("icon"),q5=Ne("alert").parts("title","description","container").extend("icon","spinner"),K5=Ne("avatar").parts("label","badge","container").extend("excessLabel","group"),G5=Ne("breadcrumb").parts("link","item","container").extend("separator");Ne("button").parts();var X5=Ne("checkbox").parts("control","icon","container").extend("label");Ne("progress").parts("track","filledTrack").extend("label");var Z5=Ne("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),J5=Ne("editable").parts("preview","input","textarea"),eF=Ne("form").parts("container","requiredIndicator","helperText"),tF=Ne("formError").parts("text","icon"),rF=Ne("input").parts("addon","field","element","group"),nF=Ne("list").parts("container","item","icon"),oF=Ne("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),aF=Ne("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),iF=Ne("numberinput").parts("root","field","stepperGroup","stepper");Ne("pininput").parts("field");var sF=Ne("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),lF=Ne("progress").parts("label","filledTrack","track"),uF=Ne("radio").parts("container","control","label"),cF=Ne("select").parts("field","icon"),dF=Ne("slider").parts("container","track","thumb","filledTrack","mark"),fF=Ne("stat").parts("container","label","helpText","number","icon"),pF=Ne("switch").parts("container","track","thumb"),hF=Ne("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),mF=Ne("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),vF=Ne("tag").parts("container","label","closeButton"),gF=Ne("card").parts("container","header","body","footer");function fa(e,t,r){return Math.min(Math.max(e,r),t)}class yF extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Xs=yF;function D0(e){if(typeof e!="string")throw new Xs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=PF.test(e)?xF(e):e;const r=SF.exec(t);if(r){const i=Array.from(r).slice(1);return[...i.slice(0,3).map(s=>parseInt(Xl(s,2),16)),parseInt(Xl(i[3]||"f",2),16)/255]}const n=kF.exec(t);if(n){const i=Array.from(n).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,16)),parseInt(i[3]||"ff",16)/255]}const o=CF.exec(t);if(o){const i=Array.from(o).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,10)),parseFloat(i[3]||"1")]}const a=TF.exec(t);if(a){const[i,s,l,u]=Array.from(a).slice(1).map(parseFloat);if(fa(0,100,s)!==s)throw new Xs(e);if(fa(0,100,l)!==l)throw new Xs(e);return[...EF(i,s,l),Number.isNaN(u)?1:u]}throw new Xs(e)}function bF(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const W1=e=>parseInt(e.replace(/_/g,""),36),wF="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=W1(t.substring(0,3)),n=W1(t.substring(3)).toString(16);let o="";for(let a=0;a<6-n.length;a++)o+="0";return e[r]=`${o}${n}`,e},{});function xF(e){const t=e.toLowerCase().trim(),r=wF[bF(t)];if(!r)throw new Xs(e);return`#${r}`}const Xl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),SF=new RegExp(`^#${Xl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),kF=new RegExp(`^#${Xl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),CF=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Xl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),TF=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,PF=/^[a-z]+$/i,Y1=e=>Math.round(e*255),EF=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Y1);const o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*(t/100),i=a*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);const c=n-a/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(Y1)};function _F(e,t,r,n){return`rgba(${fa(0,255,e).toFixed()}, ${fa(0,255,t).toFixed()}, ${fa(0,255,r).toFixed()}, ${parseFloat(fa(0,1,n).toFixed(3))})`}function DF(e,t){const[r,n,o,a]=D0(e);return _F(r,n,o,a-t)}function MF(e){const[t,r,n,o]=D0(e);let a=i=>{const s=fa(0,255,i).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(r)}${a(n)}${o<1?a(Math.round(o*255)):""}`}function OF(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,qt=(e,t,r)=>{const n=OF(e,`colors.${t}`,t);try{return MF(n),n}catch{return r??"#000000"}},IF=e=>{const[t,r,n]=D0(e);return(t*299+r*587+n*114)/1e3},AF=e=>t=>{const r=qt(t,e);return IF(r)<128?"dark":"light"},NF=e=>t=>AF(e)(t)==="dark",Zi=(e,t)=>r=>{const n=qt(r,e);return DF(n,1-t)};function H1(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 FF=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function $F(e){const t=FF();return!e||RF(e)?t:e.string&&e.colors?jF(e.string,e.colors):e.string&&!e.colors?LF(e.string):e.colors&&!e.string?BF(e.colors):t}function LF(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 jF(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function M0(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function oP(e){return Br(e)&&e.reference?e.reference:String(e)}var ap=(e,...t)=>t.map(oP).join(` ${e} `).replace(/calc/g,""),Q1=(...e)=>`calc(${ap("+",...e)})`,q1=(...e)=>`calc(${ap("-",...e)})`,wv=(...e)=>`calc(${ap("*",...e)})`,K1=(...e)=>`calc(${ap("/",...e)})`,G1=e=>{const t=oP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:wv(t,-1)},Fn=Object.assign(e=>({add:(...t)=>Fn(Q1(e,...t)),subtract:(...t)=>Fn(q1(e,...t)),multiply:(...t)=>Fn(wv(e,...t)),divide:(...t)=>Fn(K1(e,...t)),negate:()=>Fn(G1(e)),toString:()=>e.toString()}),{add:Q1,subtract:q1,multiply:wv,divide:K1,negate:G1});function zF(e){return!Number.isInteger(parseFloat(e.toString()))}function VF(e,t="-"){return e.replace(/\s+/g,t)}function aP(e){const t=VF(e.toString());return t.includes("\\.")?e:zF(e)?t.replace(".","\\."):e}function UF(e,t=""){return[t,aP(e)].filter(Boolean).join("-")}function WF(e,t){return`var(${aP(e)}${t?`, ${t}`:""})`}function YF(e,t=""){return`--${UF(e,t)}`}function wt(e,t){const r=YF(e,t?.prefix);return{variable:r,reference:WF(r,HF(t?.fallback))}}function HF(e){return typeof e=="string"?e:e?.reference}var{defineMultiStyleConfig:QF,definePartsStyle:Qc}=Ve(pF.keys),fl=wt("switch-track-width"),ba=wt("switch-track-height"),vh=wt("switch-track-diff"),qF=Fn.subtract(fl,ba),xv=wt("switch-thumb-x"),Fs=wt("switch-bg"),KF=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[fl.reference],height:[ba.reference],transitionProperty:"common",transitionDuration:"fast",[Fs.variable]:"colors.gray.300",_dark:{[Fs.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Fs.variable]:`colors.${t}.500`,_dark:{[Fs.variable]:`colors.${t}.200`}},bg:Fs.reference}},GF={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ba.reference],height:[ba.reference],_checked:{transform:`translateX(${xv.reference})`}},XF=Qc(e=>({container:{[vh.variable]:qF,[xv.variable]:vh.reference,_rtl:{[xv.variable]:Fn(vh).negate().toString()}},track:KF(e),thumb:GF})),ZF={sm:Qc({container:{[fl.variable]:"1.375rem",[ba.variable]:"sizes.3"}}),md:Qc({container:{[fl.variable]:"1.875rem",[ba.variable]:"sizes.4"}}),lg:Qc({container:{[fl.variable]:"2.875rem",[ba.variable]:"sizes.6"}})},JF=QF({baseStyle:XF,sizes:ZF,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:e$,definePartsStyle:$i}=Ve(hF.keys),t$=$i({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"}}),jd={"&[data-is-numeric=true]":{textAlign:"end"}},r$=$i(e=>{const{colorScheme:t}=e;return{th:{color:oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...jd},td:{borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...jd},caption:{color:oe("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),n$=$i(e=>{const{colorScheme:t}=e;return{th:{color:oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...jd},td:{borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...jd},caption:{color:oe("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e)},td:{background:oe(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),o$={simple:r$,striped:n$,unstyled:{}},a$={sm:$i({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:$i({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:$i({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},i$=e$({baseStyle:t$,variants:o$,sizes:a$,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),nr=ae("tabs-color"),en=ae("tabs-bg"),fc=ae("tabs-border-color"),{defineMultiStyleConfig:s$,definePartsStyle:kn}=Ve(mF.keys),l$=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},u$=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}}},c$=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},d$={p:4},f$=kn(e=>({root:l$(e),tab:u$(e),tablist:c$(e),tabpanel:d$})),p$={sm:kn({tab:{py:1,px:4,fontSize:"sm"}}),md:kn({tab:{fontSize:"md",py:2,px:4}}),lg:kn({tab:{fontSize:"lg",py:3,px:4}})},h$=kn(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",a=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[nr.variable]:`colors.${t}.600`,_dark:{[nr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[en.variable]:"colors.gray.200",_dark:{[en.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:nr.reference,bg:en.reference}}}),m$=kn(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[fc.variable]:"transparent",_selected:{[nr.variable]:`colors.${t}.600`,[fc.variable]:"colors.white",_dark:{[nr.variable]:`colors.${t}.300`,[fc.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:fc.reference},color:nr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),v$=kn(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[en.variable]:"colors.gray.50",_dark:{[en.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[en.variable]:"colors.white",[nr.variable]:`colors.${t}.600`,_dark:{[en.variable]:"colors.gray.800",[nr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:nr.reference,bg:en.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),g$=kn(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:qt(r,`${t}.700`),bg:qt(r,`${t}.100`)}}}}),y$=kn(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[nr.variable]:"colors.gray.600",_dark:{[nr.variable]:"inherit"},_selected:{[nr.variable]:"colors.white",[en.variable]:`colors.${t}.600`,_dark:{[nr.variable]:"colors.gray.800",[en.variable]:`colors.${t}.300`}},color:nr.reference,bg:en.reference}}}),b$=kn({}),w$={line:h$,enclosed:m$,"enclosed-colored":v$,"soft-rounded":g$,"solid-rounded":y$,unstyled:b$},x$=s$({baseStyle:f$,sizes:p$,variants:w$,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ct=UN("badge",["bg","color","shadow"]),S$={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ct.bg.reference,color:ct.color.reference,boxShadow:ct.shadow.reference},k$=e=>{const{colorScheme:t,theme:r}=e,n=Zi(`${t}.500`,.6)(r);return{[ct.bg.variable]:`colors.${t}.500`,[ct.color.variable]:"colors.white",_dark:{[ct.bg.variable]:n,[ct.color.variable]:"colors.whiteAlpha.800"}}},C$=e=>{const{colorScheme:t,theme:r}=e,n=Zi(`${t}.200`,.16)(r);return{[ct.bg.variable]:`colors.${t}.100`,[ct.color.variable]:`colors.${t}.800`,_dark:{[ct.bg.variable]:n,[ct.color.variable]:`colors.${t}.200`}}},T$=e=>{const{colorScheme:t,theme:r}=e,n=Zi(`${t}.200`,.8)(r);return{[ct.color.variable]:`colors.${t}.500`,_dark:{[ct.color.variable]:n},[ct.shadow.variable]:`inset 0 0 0px 1px ${ct.color.reference}`}},P$={solid:k$,subtle:C$,outline:T$},pl={baseStyle:S$,variants:P$,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:E$,definePartsStyle:wa}=Ve(vF.keys),X1=ae("tag-bg"),Z1=ae("tag-color"),gh=ae("tag-shadow"),qc=ae("tag-min-height"),Kc=ae("tag-min-width"),Gc=ae("tag-font-size"),Xc=ae("tag-padding-inline"),_$={fontWeight:"medium",lineHeight:1.2,outline:0,[Z1.variable]:ct.color.reference,[X1.variable]:ct.bg.reference,[gh.variable]:ct.shadow.reference,color:Z1.reference,bg:X1.reference,boxShadow:gh.reference,borderRadius:"md",minH:qc.reference,minW:Kc.reference,fontSize:Gc.reference,px:Xc.reference,_focusVisible:{[gh.variable]:"shadows.outline"}},D$={lineHeight:1.2,overflow:"visible"},M$={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}},O$=wa({container:_$,label:D$,closeButton:M$}),R$={sm:wa({container:{[qc.variable]:"sizes.5",[Kc.variable]:"sizes.5",[Gc.variable]:"fontSizes.xs",[Xc.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:wa({container:{[qc.variable]:"sizes.6",[Kc.variable]:"sizes.6",[Gc.variable]:"fontSizes.sm",[Xc.variable]:"space.2"}}),lg:wa({container:{[qc.variable]:"sizes.8",[Kc.variable]:"sizes.8",[Gc.variable]:"fontSizes.md",[Xc.variable]:"space.3"}})},I$={subtle:wa(e=>{var t;return{container:(t=pl.variants)==null?void 0:t.subtle(e)}}),solid:wa(e=>{var t;return{container:(t=pl.variants)==null?void 0:t.solid(e)}}),outline:wa(e=>{var t;return{container:(t=pl.variants)==null?void 0:t.outline(e)}})},A$=E$({variants:I$,baseStyle:O$,sizes:R$,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Bn,defineMultiStyleConfig:N$}=Ve(rF.keys),gi=ae("input-height"),yi=ae("input-font-size"),bi=ae("input-padding"),wi=ae("input-border-radius"),F$=Bn({addon:{height:gi.reference,fontSize:yi.reference,px:bi.reference,borderRadius:wi.reference},field:{width:"100%",height:gi.reference,fontSize:yi.reference,px:bi.reference,borderRadius:wi.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),lo={lg:{[yi.variable]:"fontSizes.lg",[bi.variable]:"space.4",[wi.variable]:"radii.md",[gi.variable]:"sizes.12"},md:{[yi.variable]:"fontSizes.md",[bi.variable]:"space.4",[wi.variable]:"radii.md",[gi.variable]:"sizes.10"},sm:{[yi.variable]:"fontSizes.sm",[bi.variable]:"space.3",[wi.variable]:"radii.sm",[gi.variable]:"sizes.8"},xs:{[yi.variable]:"fontSizes.xs",[bi.variable]:"space.2",[wi.variable]:"radii.sm",[gi.variable]:"sizes.6"}},$$={lg:Bn({field:lo.lg,group:lo.lg}),md:Bn({field:lo.md,group:lo.md}),sm:Bn({field:lo.sm,group:lo.sm}),xs:Bn({field:lo.xs,group:lo.xs})};function O0(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||oe("blue.500","blue.300")(e),errorBorderColor:r||oe("red.500","red.300")(e)}}var L$=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=O0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:oe("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qt(t,n),boxShadow:`0 0 0 1px ${qt(t,n)}`},_focusVisible:{zIndex:1,borderColor:qt(t,r),boxShadow:`0 0 0 1px ${qt(t,r)}`}},addon:{border:"1px solid",borderColor:oe("inherit","whiteAlpha.50")(e),bg:oe("gray.100","whiteAlpha.300")(e)}}}),j$=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=O0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:oe("gray.100","whiteAlpha.50")(e),_hover:{bg:oe("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qt(t,n)},_focusVisible:{bg:"transparent",borderColor:qt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:oe("gray.100","whiteAlpha.50")(e)}}}),B$=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=O0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qt(t,n),boxShadow:`0px 1px 0px 0px ${qt(t,n)}`},_focusVisible:{borderColor:qt(t,r),boxShadow:`0px 1px 0px 0px ${qt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),z$=Bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),V$={outline:L$,filled:j$,flushed:B$,unstyled:z$},Ie=N$({baseStyle:F$,sizes:$$,variants:V$,defaultProps:{size:"md",variant:"outline"}}),J1,U$={...(J1=Ie.baseStyle)==null?void 0:J1.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ew,tw,W$={outline:e=>{var t,r;return(r=(t=Ie.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Ie.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Ie.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(tw=(ew=Ie.variants)==null?void 0:ew.unstyled.field)!=null?tw:{}},rw,nw,ow,aw,iw,sw,lw,uw,Y$={xs:(nw=(rw=Ie.sizes)==null?void 0:rw.xs.field)!=null?nw:{},sm:(aw=(ow=Ie.sizes)==null?void 0:ow.sm.field)!=null?aw:{},md:(sw=(iw=Ie.sizes)==null?void 0:iw.md.field)!=null?sw:{},lg:(uw=(lw=Ie.sizes)==null?void 0:lw.lg.field)!=null?uw:{}},H$={baseStyle:U$,sizes:Y$,variants:W$,defaultProps:{size:"md",variant:"outline"}},pc=wt("tooltip-bg"),yh=wt("tooltip-fg"),Q$=wt("popper-arrow-bg"),q$={bg:pc.reference,color:yh.reference,[pc.variable]:"colors.gray.700",[yh.variable]:"colors.whiteAlpha.900",_dark:{[pc.variable]:"colors.gray.300",[yh.variable]:"colors.gray.900"},[Q$.variable]:pc.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},K$={baseStyle:q$},{defineMultiStyleConfig:G$,definePartsStyle:Zs}=Ve(lF.keys),X$=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,a=oe(H1(),H1("1rem","rgba(0,0,0,0.1)"))(e),i=oe(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
to right,
transparent 0%,
${qt(r,i)} 50%,
transparent 100%
)`;return{...!n&&o&&a,...n?{bgImage:s}:{bgColor:i}}},Z$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},J$=e=>({bg:oe("gray.100","whiteAlpha.300")(e)}),eL=e=>({transitionProperty:"common",transitionDuration:"slow",...X$(e)}),tL=Zs(e=>({label:Z$,filledTrack:eL(e),track:J$(e)})),rL={xs:Zs({track:{h:"1"}}),sm:Zs({track:{h:"2"}}),md:Zs({track:{h:"3"}}),lg:Zs({track:{h:"4"}})},nL=G$({sizes:rL,baseStyle:tL,defaultProps:{size:"md",colorScheme:"blue"}}),oL=e=>typeof e=="function";function Gt(e,...t){return oL(e)?e(...t):e}var{definePartsStyle:Zc,defineMultiStyleConfig:aL}=Ve(X5.keys),hl=ae("checkbox-size"),iL=e=>{const{colorScheme:t}=e;return{w:hl.reference,h:hl.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:oe(`${t}.500`,`${t}.200`)(e),borderColor:oe(`${t}.500`,`${t}.200`)(e),color:oe("white","gray.900")(e),_hover:{bg:oe(`${t}.600`,`${t}.300`)(e),borderColor:oe(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:oe("gray.200","transparent")(e),bg:oe("gray.200","whiteAlpha.300")(e),color:oe("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:oe(`${t}.500`,`${t}.200`)(e),borderColor:oe(`${t}.500`,`${t}.200`)(e),color:oe("white","gray.900")(e)},_disabled:{bg:oe("gray.100","whiteAlpha.100")(e),borderColor:oe("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:oe("red.500","red.300")(e)}}},sL={_disabled:{cursor:"not-allowed"}},lL={userSelect:"none",_disabled:{opacity:.4}},uL={transitionProperty:"transform",transitionDuration:"normal"},cL=Zc(e=>({icon:uL,container:sL,control:Gt(iL,e),label:lL})),dL={sm:Zc({control:{[hl.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Zc({control:{[hl.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Zc({control:{[hl.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Bd=aL({baseStyle:cL,sizes:dL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:fL,definePartsStyle:Jc}=Ve(uF.keys),pL=e=>{var t;const r=(t=Gt(Bd.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},hL=Jc(e=>{var t,r,n,o;return{label:(r=(t=Bd).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Bd).baseStyle)==null?void 0:o.call(n,e).container,control:pL(e)}}),mL={md:Jc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Jc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Jc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},vL=fL({baseStyle:hL,sizes:mL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gL,definePartsStyle:yL}=Ve(cF.keys),hc=ae("select-bg"),cw,bL={...(cw=Ie.baseStyle)==null?void 0:cw.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:hc.reference,[hc.variable]:"colors.white",_dark:{[hc.variable]:"colors.gray.700"},"> option, > optgroup":{bg:hc.reference}},wL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},xL=yL({field:bL,icon:wL}),mc={paddingInlineEnd:"8"},dw,fw,pw,hw,mw,vw,gw,yw,SL={lg:{...(dw=Ie.sizes)==null?void 0:dw.lg,field:{...(fw=Ie.sizes)==null?void 0:fw.lg.field,...mc}},md:{...(pw=Ie.sizes)==null?void 0:pw.md,field:{...(hw=Ie.sizes)==null?void 0:hw.md.field,...mc}},sm:{...(mw=Ie.sizes)==null?void 0:mw.sm,field:{...(vw=Ie.sizes)==null?void 0:vw.sm.field,...mc}},xs:{...(gw=Ie.sizes)==null?void 0:gw.xs,field:{...(yw=Ie.sizes)==null?void 0:yw.xs.field,...mc},icon:{insetEnd:"1"}}},kL=gL({baseStyle:xL,sizes:SL,variants:Ie.variants,defaultProps:Ie.defaultProps}),bh=ae("skeleton-start-color"),wh=ae("skeleton-end-color"),CL={[bh.variable]:"colors.gray.100",[wh.variable]:"colors.gray.400",_dark:{[bh.variable]:"colors.gray.800",[wh.variable]:"colors.gray.600"},background:bh.reference,borderColor:wh.reference,opacity:.7,borderRadius:"sm"},TL={baseStyle:CL},xh=ae("skip-link-bg"),PL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[xh.variable]:"colors.white",_dark:{[xh.variable]:"colors.gray.700"},bg:xh.reference}},EL={baseStyle:PL},{defineMultiStyleConfig:_L,definePartsStyle:ip}=Ve(dF.keys),Zl=ae("slider-thumb-size"),Jl=ae("slider-track-size"),xo=ae("slider-bg"),DL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...M0({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},ML=e=>({...M0({orientation:e.orientation,horizontal:{h:Jl.reference},vertical:{w:Jl.reference}}),overflow:"hidden",borderRadius:"sm",[xo.variable]:"colors.gray.200",_dark:{[xo.variable]:"colors.whiteAlpha.200"},_disabled:{[xo.variable]:"colors.gray.300",_dark:{[xo.variable]:"colors.whiteAlpha.300"}},bg:xo.reference}),OL=e=>{const{orientation:t}=e;return{...M0({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:Zl.reference,h:Zl.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"}}},RL=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[xo.variable]:`colors.${t}.500`,_dark:{[xo.variable]:`colors.${t}.200`},bg:xo.reference}},IL=ip(e=>({container:DL(e),track:ML(e),thumb:OL(e),filledTrack:RL(e)})),AL=ip({container:{[Zl.variable]:"sizes.4",[Jl.variable]:"sizes.1"}}),NL=ip({container:{[Zl.variable]:"sizes.3.5",[Jl.variable]:"sizes.1"}}),FL=ip({container:{[Zl.variable]:"sizes.2.5",[Jl.variable]:"sizes.0.5"}}),$L={lg:AL,md:NL,sm:FL},LL=_L({baseStyle:IL,sizes:$L,defaultProps:{size:"md",colorScheme:"blue"}}),la=wt("spinner-size"),jL={width:[la.reference],height:[la.reference]},BL={xs:{[la.variable]:"sizes.3"},sm:{[la.variable]:"sizes.4"},md:{[la.variable]:"sizes.6"},lg:{[la.variable]:"sizes.8"},xl:{[la.variable]:"sizes.12"}},zL={baseStyle:jL,sizes:BL,defaultProps:{size:"md"}},{defineMultiStyleConfig:VL,definePartsStyle:iP}=Ve(fF.keys),UL={fontWeight:"medium"},WL={opacity:.8,marginBottom:"2"},YL={verticalAlign:"baseline",fontWeight:"semibold"},HL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},QL=iP({container:{},label:UL,helpText:WL,number:YL,icon:HL}),qL={md:iP({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},KL=VL({baseStyle:QL,sizes:qL,defaultProps:{size:"md"}}),Sh=ae("kbd-bg"),GL={[Sh.variable]:"colors.gray.100",_dark:{[Sh.variable]:"colors.whiteAlpha.100"},bg:Sh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},XL={baseStyle:GL},ZL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},JL={baseStyle:ZL},{defineMultiStyleConfig:e4,definePartsStyle:t4}=Ve(nF.keys),r4={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},n4=t4({icon:r4}),o4=e4({baseStyle:n4}),{defineMultiStyleConfig:a4,definePartsStyle:i4}=Ve(oF.keys),pn=ae("menu-bg"),kh=ae("menu-shadow"),s4={[pn.variable]:"#fff",[kh.variable]:"shadows.sm",_dark:{[pn.variable]:"colors.gray.700",[kh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:pn.reference,boxShadow:kh.reference},l4={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[pn.variable]:"colors.gray.100",_dark:{[pn.variable]:"colors.whiteAlpha.100"}},_active:{[pn.variable]:"colors.gray.200",_dark:{[pn.variable]:"colors.whiteAlpha.200"}},_expanded:{[pn.variable]:"colors.gray.100",_dark:{[pn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:pn.reference},u4={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},c4={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},d4={opacity:.6},f4={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},p4={transitionProperty:"common",transitionDuration:"normal"},h4=i4({button:p4,list:s4,item:l4,groupTitle:u4,icon:c4,command:d4,divider:f4}),m4=a4({baseStyle:h4}),{defineMultiStyleConfig:v4,definePartsStyle:Sv}=Ve(aF.keys),Ch=ae("modal-bg"),Th=ae("modal-shadow"),g4={bg:"blackAlpha.600",zIndex:"modal"},y4=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"}},b4=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,[Ch.variable]:"colors.white",[Th.variable]:"shadows.lg",_dark:{[Ch.variable]:"colors.gray.700",[Th.variable]:"shadows.dark-lg"},bg:Ch.reference,boxShadow:Th.reference}},w4={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},x4={position:"absolute",top:"2",insetEnd:"3"},S4=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},k4={px:"6",py:"4"},C4=Sv(e=>({overlay:g4,dialogContainer:Gt(y4,e),dialog:Gt(b4,e),header:w4,closeButton:x4,body:Gt(S4,e),footer:k4}));function Kr(e){return Sv(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var T4={xs:Kr("xs"),sm:Kr("sm"),md:Kr("md"),lg:Kr("lg"),xl:Kr("xl"),"2xl":Kr("2xl"),"3xl":Kr("3xl"),"4xl":Kr("4xl"),"5xl":Kr("5xl"),"6xl":Kr("6xl"),full:Kr("full")},P4=v4({baseStyle:C4,sizes:T4,defaultProps:{size:"md"}}),{defineMultiStyleConfig:E4,definePartsStyle:sP}=Ve(iF.keys),R0=wt("number-input-stepper-width"),lP=wt("number-input-input-padding"),_4=Fn(R0).add("0.5rem").toString(),Ph=wt("number-input-bg"),Eh=wt("number-input-color"),_h=wt("number-input-border-color"),D4={[R0.variable]:"sizes.6",[lP.variable]:_4},M4=e=>{var t,r;return(r=(t=Gt(Ie.baseStyle,e))==null?void 0:t.field)!=null?r:{}},O4={width:R0.reference},R4={borderStart:"1px solid",borderStartColor:_h.reference,color:Eh.reference,bg:Ph.reference,[Eh.variable]:"colors.chakra-body-text",[_h.variable]:"colors.chakra-border-color",_dark:{[Eh.variable]:"colors.whiteAlpha.800",[_h.variable]:"colors.whiteAlpha.300"},_active:{[Ph.variable]:"colors.gray.200",_dark:{[Ph.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},I4=sP(e=>{var t;return{root:D4,field:(t=Gt(M4,e))!=null?t:{},stepperGroup:O4,stepper:R4}});function vc(e){var t,r,n;const o=(t=Ie.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=tP.fontSizes[i];return sP({field:{...o.field,paddingInlineEnd:lP.reference,verticalAlign:"top"},stepper:{fontSize:Fn(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var A4={xs:vc("xs"),sm:vc("sm"),md:vc("md"),lg:vc("lg")},N4=E4({baseStyle:I4,sizes:A4,variants:Ie.variants,defaultProps:Ie.defaultProps}),bw,F4={...(bw=Ie.baseStyle)==null?void 0:bw.field,textAlign:"center"},$4={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"}},ww,xw,L4={outline:e=>{var t,r,n;return(n=(r=Gt((t=Ie.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Gt((t=Ie.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Gt((t=Ie.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(xw=(ww=Ie.variants)==null?void 0:ww.unstyled.field)!=null?xw:{}},j4={baseStyle:F4,sizes:$4,variants:L4,defaultProps:Ie.defaultProps},{defineMultiStyleConfig:B4,definePartsStyle:z4}=Ve(sF.keys),gc=wt("popper-bg"),V4=wt("popper-arrow-bg"),Sw=wt("popper-arrow-shadow-color"),U4={zIndex:10},W4={[gc.variable]:"colors.white",bg:gc.reference,[V4.variable]:gc.reference,[Sw.variable]:"colors.gray.200",_dark:{[gc.variable]:"colors.gray.700",[Sw.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Y4={px:3,py:2,borderBottomWidth:"1px"},H4={px:3,py:2},Q4={px:3,py:2,borderTopWidth:"1px"},q4={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},K4=z4({popper:U4,content:W4,header:Y4,body:H4,footer:Q4,closeButton:q4}),G4=B4({baseStyle:K4}),{definePartsStyle:kv,defineMultiStyleConfig:X4}=Ve(Z5.keys),Dh=ae("drawer-bg"),Mh=ae("drawer-box-shadow");function Qa(e){return kv(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Z4={bg:"blackAlpha.600",zIndex:"overlay"},J4={display:"flex",zIndex:"modal",justifyContent:"center"},e3=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Dh.variable]:"colors.white",[Mh.variable]:"shadows.lg",_dark:{[Dh.variable]:"colors.gray.700",[Mh.variable]:"shadows.dark-lg"},bg:Dh.reference,boxShadow:Mh.reference}},t3={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},r3={position:"absolute",top:"2",insetEnd:"3"},n3={px:"6",py:"2",flex:"1",overflow:"auto"},o3={px:"6",py:"4"},a3=kv(e=>({overlay:Z4,dialogContainer:J4,dialog:Gt(e3,e),header:t3,closeButton:r3,body:n3,footer:o3})),i3={xs:Qa("xs"),sm:Qa("md"),md:Qa("lg"),lg:Qa("2xl"),xl:Qa("4xl"),full:Qa("full")},s3=X4({baseStyle:a3,sizes:i3,defaultProps:{size:"xs"}}),{definePartsStyle:l3,defineMultiStyleConfig:u3}=Ve(J5.keys),c3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},d3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},f3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},p3=l3({preview:c3,input:d3,textarea:f3}),h3=u3({baseStyle:p3}),{definePartsStyle:m3,defineMultiStyleConfig:v3}=Ve(eF.keys),Li=ae("form-control-color"),g3={marginStart:"1",[Li.variable]:"colors.red.500",_dark:{[Li.variable]:"colors.red.300"},color:Li.reference},y3={mt:"2",[Li.variable]:"colors.gray.600",_dark:{[Li.variable]:"colors.whiteAlpha.600"},color:Li.reference,lineHeight:"normal",fontSize:"sm"},b3=m3({container:{width:"100%",position:"relative"},requiredIndicator:g3,helperText:y3}),w3=v3({baseStyle:b3}),{definePartsStyle:x3,defineMultiStyleConfig:S3}=Ve(tF.keys),ji=ae("form-error-color"),k3={[ji.variable]:"colors.red.500",_dark:{[ji.variable]:"colors.red.300"},color:ji.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},C3={marginEnd:"0.5em",[ji.variable]:"colors.red.500",_dark:{[ji.variable]:"colors.red.300"},color:ji.reference},T3=x3({text:k3,icon:C3}),P3=S3({baseStyle:T3}),E3={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},_3={baseStyle:E3},D3={fontFamily:"heading",fontWeight:"bold"},M3={"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}},O3={baseStyle:D3,sizes:M3,defaultProps:{size:"xl"}},{defineMultiStyleConfig:R3,definePartsStyle:I3}=Ve(G5.keys),Oh=ae("breadcrumb-link-decor"),A3={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Oh.reference,[Oh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Oh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},N3=I3({link:A3}),F3=R3({baseStyle:N3}),$3={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"}}},uP=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:oe("gray.800","whiteAlpha.900")(e),_hover:{bg:oe("gray.100","whiteAlpha.200")(e)},_active:{bg:oe("gray.200","whiteAlpha.300")(e)}};const n=Zi(`${t}.200`,.12)(r),o=Zi(`${t}.200`,.24)(r);return{color:oe(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:oe(`${t}.50`,n)(e)},_active:{bg:oe(`${t}.100`,o)(e)}}},L3=e=>{const{colorScheme:t}=e,r=oe("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"},...Gt(uP,e)}},j3={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},B3=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=oe("gray.100","whiteAlpha.200")(e);return{bg:l,color:oe("gray.800","whiteAlpha.900")(e),_hover:{bg:oe("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:oe("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:a=`${r}.600`,activeBg:i=`${r}.700`}=(t=j3[r])!=null?t:{},s=oe(n,`${r}.200`)(e);return{bg:s,color:oe(o,"gray.800")(e),_hover:{bg:oe(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:oe(i,`${r}.400`)(e)}}},z3=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:oe(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:oe(`${t}.700`,`${t}.500`)(e)}}},V3={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},U3={ghost:uP,outline:L3,solid:B3,link:z3,unstyled:V3},W3={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"}},Y3={baseStyle:$3,variants:U3,sizes:W3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:xa,defineMultiStyleConfig:H3}=Ve(gF.keys),zd=ae("card-bg"),Wn=ae("card-padding"),cP=ae("card-shadow"),ed=ae("card-radius"),dP=ae("card-border-width","0"),fP=ae("card-border-color"),Q3=xa({container:{[zd.variable]:"colors.chakra-body-bg",backgroundColor:zd.reference,boxShadow:cP.reference,borderRadius:ed.reference,color:"chakra-body-text",borderWidth:dP.reference,borderColor:fP.reference},body:{padding:Wn.reference,flex:"1 1 0%"},header:{padding:Wn.reference},footer:{padding:Wn.reference}}),q3={sm:xa({container:{[ed.variable]:"radii.base",[Wn.variable]:"space.3"}}),md:xa({container:{[ed.variable]:"radii.md",[Wn.variable]:"space.5"}}),lg:xa({container:{[ed.variable]:"radii.xl",[Wn.variable]:"space.7"}})},K3={elevated:xa({container:{[cP.variable]:"shadows.base",_dark:{[zd.variable]:"colors.gray.700"}}}),outline:xa({container:{[dP.variable]:"1px",[fP.variable]:"colors.chakra-border-color"}}),filled:xa({container:{[zd.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Wn.variable]:0},header:{[Wn.variable]:0},footer:{[Wn.variable]:0}}},G3=H3({baseStyle:Q3,variants:K3,sizes:q3,defaultProps:{variant:"elevated",size:"md"}}),ml=wt("close-button-size"),$s=wt("close-button-bg"),X3={w:[ml.reference],h:[ml.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$s.variable]:"colors.blackAlpha.100",_dark:{[$s.variable]:"colors.whiteAlpha.100"}},_active:{[$s.variable]:"colors.blackAlpha.200",_dark:{[$s.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$s.reference},Z3={lg:{[ml.variable]:"sizes.10",fontSize:"md"},md:{[ml.variable]:"sizes.8",fontSize:"xs"},sm:{[ml.variable]:"sizes.6",fontSize:"2xs"}},J3={baseStyle:X3,sizes:Z3,defaultProps:{size:"md"}},{variants:ej,defaultProps:tj}=pl,rj={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ct.bg.reference,color:ct.color.reference,boxShadow:ct.shadow.reference},nj={baseStyle:rj,variants:ej,defaultProps:tj},oj={w:"100%",mx:"auto",maxW:"prose",px:"4"},aj={baseStyle:oj},ij={opacity:.6,borderColor:"inherit"},sj={borderStyle:"solid"},lj={borderStyle:"dashed"},uj={solid:sj,dashed:lj},cj={baseStyle:ij,variants:uj,defaultProps:{variant:"solid"}},{definePartsStyle:dj,defineMultiStyleConfig:fj}=Ve(Q5.keys),pj={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},hj={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},mj={pt:"2",px:"4",pb:"5"},vj={fontSize:"1.25em"},gj=dj({container:pj,button:hj,panel:mj,icon:vj}),yj=fj({baseStyle:gj}),{definePartsStyle:Tu,defineMultiStyleConfig:bj}=Ve(q5.keys),wr=ae("alert-fg"),Zn=ae("alert-bg"),wj=Tu({container:{bg:Zn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:wr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:wr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function I0(e){const{theme:t,colorScheme:r}=e,n=Zi(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var xj=Tu(e=>{const{colorScheme:t}=e,r=I0(e);return{container:{[wr.variable]:`colors.${t}.500`,[Zn.variable]:r.light,_dark:{[wr.variable]:`colors.${t}.200`,[Zn.variable]:r.dark}}}}),Sj=Tu(e=>{const{colorScheme:t}=e,r=I0(e);return{container:{[wr.variable]:`colors.${t}.500`,[Zn.variable]:r.light,_dark:{[wr.variable]:`colors.${t}.200`,[Zn.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:wr.reference}}}),kj=Tu(e=>{const{colorScheme:t}=e,r=I0(e);return{container:{[wr.variable]:`colors.${t}.500`,[Zn.variable]:r.light,_dark:{[wr.variable]:`colors.${t}.200`,[Zn.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:wr.reference}}}),Cj=Tu(e=>{const{colorScheme:t}=e;return{container:{[wr.variable]:"colors.white",[Zn.variable]:`colors.${t}.500`,_dark:{[wr.variable]:"colors.gray.900",[Zn.variable]:`colors.${t}.200`},color:wr.reference}}}),Tj={subtle:xj,"left-accent":Sj,"top-accent":kj,solid:Cj},Pj=bj({baseStyle:wj,variants:Tj,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:pP,defineMultiStyleConfig:Ej}=Ve(K5.keys),Bi=ae("avatar-border-color"),vl=ae("avatar-bg"),eu=ae("avatar-font-size"),Ji=ae("avatar-size"),_j={borderRadius:"full",border:"0.2em solid",borderColor:Bi.reference,[Bi.variable]:"white",_dark:{[Bi.variable]:"colors.gray.800"}},Dj={bg:vl.reference,fontSize:eu.reference,width:Ji.reference,height:Ji.reference,lineHeight:"1",[vl.variable]:"colors.gray.200",_dark:{[vl.variable]:"colors.whiteAlpha.400"}},Mj=e=>{const{name:t,theme:r}=e,n=t?$F({string:t}):"colors.gray.400",o=NF(n)(r);let a="white";return o||(a="gray.800"),{bg:vl.reference,fontSize:eu.reference,color:a,borderColor:Bi.reference,verticalAlign:"top",width:Ji.reference,height:Ji.reference,"&:not([data-loaded])":{[vl.variable]:n},[Bi.variable]:"colors.white",_dark:{[Bi.variable]:"colors.gray.800"}}},Oj={fontSize:eu.reference,lineHeight:"1"},Rj=pP(e=>({badge:Gt(_j,e),excessLabel:Gt(Dj,e),container:Gt(Mj,e),label:Oj}));function uo(e){const t=e!=="100%"?nP[e]:void 0;return pP({container:{[Ji.variable]:t??e,[eu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ji.variable]:t??e,[eu.variable]:`calc(${t??e} / 2.5)`}})}var Ij={"2xs":uo(4),xs:uo(6),sm:uo(8),md:uo(12),lg:uo(16),xl:uo(24),"2xl":uo(32),full:uo("100%")},Aj=Ej({baseStyle:Rj,sizes:Ij,defaultProps:{size:"md"}}),Nj={Accordion:yj,Alert:Pj,Avatar:Aj,Badge:pl,Breadcrumb:F3,Button:Y3,Checkbox:Bd,CloseButton:J3,Code:nj,Container:aj,Divider:cj,Drawer:s3,Editable:h3,Form:w3,FormError:P3,FormLabel:_3,Heading:O3,Input:Ie,Kbd:XL,Link:JL,List:o4,Menu:m4,Modal:P4,NumberInput:N4,PinInput:j4,Popover:G4,Progress:nL,Radio:vL,Select:kL,Skeleton:TL,SkipLink:EL,Slider:LL,Spinner:zL,Stat:KL,Switch:JF,Table:i$,Tabs:x$,Tag:A$,Textarea:H$,Tooltip:K$,Card:G3,Stepper:H5},Fj={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"}}},$j={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"}}},Lj="ltr",jj={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},hP={semanticTokens:Fj,direction:Lj,...U5,components:Nj,styles:$j,config:jj};function Js(e){return typeof e=="function"}function Bj(...e){return t=>e.reduce((r,n)=>n(r),t)}var zj=e=>function(...r){let n=[...r],o=r[r.length-1];return b5(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Bj(...n.map(a=>i=>Js(a)?a(i):Uj(i,a)))(o)},Vj=zj(hP);function Uj(...e){return Lr({},...e,mP)}function mP(e,t,r,n){if((Js(e)||Js(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const a=Js(e)?e(...o):e,i=Js(t)?t(...o):t;return Lr({},a,i,mP)}}function Wj(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function Yj(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},vP=Hj(Yj);function gP(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var yP=e=>gP(e,t=>t!=null);function Qj(e){return typeof e=="function"}function bP(e,...t){return Qj(e)?e(...t):e}var qj=typeof Element<"u",Kj=typeof Map=="function",Gj=typeof Set=="function",Xj=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function td(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(!td(e[n],t[n]))return!1;return!0}var a;if(Kj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!td(n.value[1],t.get(n.value[0])))return!1;return!0}if(Gj&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Xj&&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(qj&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!td(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Zj=function(t,r){try{return td(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 wP=fs(Zj);function xP(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:a,colorMode:i}=eN(),s=e?vP(a,`components.${e}`):void 0,l=n||s,u=Lr({theme:a,colorMode:i},(r=l?.defaultProps)!=null?r:{},yP(Wj(o,["children"]))),c=g.useRef({});if(l){const f=g5(l)(u);wP(c.current,f)||(c.current=f)}return c.current}function bs(e,t={}){return xP(e,t)}function La(e,t={}){return xP(e,t)}var Jj=new Set([...a5,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),eB=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function tB(e){return eB.has(e)||!Jj.has(e)}function rB(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 nB(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var oB=/^((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)-.*))$/,aB=DT(function(e){return oB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),iB=aB,sB=function(t){return t!=="theme"},kw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?iB:sB},Cw=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},lB=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return NT(r,n,o),NA(function(){return FT(r,n,o)}),null},uB=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=Cw(t,r,n),l=s||kw(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),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:a,...i}=t,s=gP(i,(d,f)=>s5(f)),l=bP(e,t),u=rB({},o,l,yP(s),a),c=eP(u)(t.theme);return n?[c,n]:c};function Rh(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=tB);const o=fB({baseStyle:r}),a=dB(e,n)(o);return A.forwardRef(function(l,u){const{colorMode:c,forced:d}=T0();return A.createElement(a,{ref:u,"data-theme":d?c:void 0,...l})})}function pB(){const e=new Map;return new Proxy(Rh,{apply(t,r,n){return Rh(...n)},get(t,r){return e.has(r)||e.set(r,Rh(r)),e.get(r)}})}var ue=pB();function me(e){return g.forwardRef(e)}function hB(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=g.createContext(void 0);o.displayName=n;function a(){var i;const s=g.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[o.Provider,a,o]}function mB(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=g.useMemo(()=>o5(r),[r]);return x.jsxs(LA,{theme:o,children:[x.jsx(vB,{root:t}),n]})}function vB({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return x.jsx(tp,{styles:r=>({[t]:r.__cssVars})})}hB({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in ` ` "});function gB(){const{colorMode:e}=T0();return x.jsx(tp,{styles:t=>{const r=vP(t,"styles.global"),n=bP(r,{theme:t,colorMode:e});return n?eP(n)(t):void 0}})}var SP=g.createContext({getDocument(){return document},getWindow(){return window}});SP.displayName="EnvironmentContext";function kP(e){const{children:t,environment:r,disabled:n}=e,o=g.useRef(null),a=g.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),i=!n||!r;return x.jsxs(SP.Provider,{value:a,children:[t,i&&x.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}kP.displayName="EnvironmentProvider";var yB=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=x.jsx(kP,{environment:s,disabled:u,children:t});return x.jsx(mB,{theme:i,cssVarsRoot:l,children:x.jsxs(HT,{colorModeManager:r,options:i.config,children:[a?x.jsx(zA,{scope:o}):x.jsx(BA,{}),!c&&x.jsx(gB,{}),n?x.jsx(UT,{zIndex:n,children:d}):d]})})},bB=(e,t)=>e.find(r=>r.id===t);function Pw(e,t){const r=CP(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function CP(e,t){for(const[r,n]of Object.entries(e))if(bB(n,t))return r}function wB(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 xB(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,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=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:a,left:i}}function nn(e,t=[]){const r=g.useRef(e);return g.useEffect(()=>{r.current=e}),g.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function SB(e,t){const r=nn(e);g.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function es(e,t){const r=g.useRef(!1),n=g.useRef(!1);g.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const TP=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sp=g.createContext({}),Pu=g.createContext(null),lp=typeof document<"u",Ud=lp?g.useLayoutEffect:g.useEffect,PP=g.createContext({strict:!1});function kB(e,t,r,n){const{visualElement:o}=g.useContext(sp),a=g.useContext(PP),i=g.useContext(Pu),s=g.useContext(TP).reducedMotion,l=g.useRef();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return g.useInsertionEffect(()=>{u&&u.update(r,i)}),Ud(()=>{u&&u.render()}),g.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?Ud:g.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function xi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CB(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):xi(r)&&(r.current=n))},[t])}function tu(e){return typeof e=="string"||Array.isArray(e)}function up(e){return typeof e=="object"&&typeof e.start=="function"}const A0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N0=["initial",...A0];function cp(e){return up(e.animate)||N0.some(t=>tu(e[t]))}function EP(e){return!!(cp(e)||e.variants)}function TB(e,t){if(cp(e)){const{initial:r,animate:n}=e;return{initial:r===!1||tu(r)?r:void 0,animate:tu(n)?n:void 0}}return e.inherit!==!1?t:{}}function PB(e){const{initial:t,animate:r}=TB(e,g.useContext(sp));return g.useMemo(()=>({initial:t,animate:r}),[Ew(t),Ew(r)])}function Ew(e){return Array.isArray(e)?e.join(" "):e}const _w={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"]},ru={};for(const e in _w)ru[e]={isEnabled:t=>_w[e].some(r=>!!t[r])};function EB(e){for(const t in e)ru[t]={...ru[t],...e[t]}}const F0=g.createContext({}),_P=g.createContext({}),_B=Symbol.for("motionComponentSymbol");function DB({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&EB(e);function a(s,l){let u;const c={...g.useContext(TP),...s,layoutId:MB(s)},{isStatic:d}=c,f=PB(s),p=n(s,d);if(!d&&lp){f.visualElement=kB(o,p,c,t);const h=g.useContext(_P),v=g.useContext(PP).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,h))}return g.createElement(sp.Provider,{value:f},u&&f.visualElement?g.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,CB(p,f.visualElement,l),p,d,f.visualElement))}const i=g.forwardRef(a);return i[_B]=o,i}function MB({layoutId:e}){const t=g.useContext(F0).id;return t&&e!==void 0?t+"-"+e:e}function OB(e){function t(n,o={}){return DB(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 RB=["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 $0(e){return typeof e!="string"||e.includes("-")?!1:!!(RB.indexOf(e)>-1||/[A-Z]/.test(e))}const Wd={};function IB(e){Object.assign(Wd,e)}const Eu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ja=new Set(Eu);function DP(e,{layout:t,layoutId:r}){return ja.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Wd[e]||e==="opacity")}const dr=e=>!!(e&&e.getVelocity),AB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NB=Eu.length;function FB(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let a="";for(let i=0;it=>typeof t=="string"&&t.startsWith(e),OP=MP("--"),Cv=MP("var(--"),$B=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,LB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zo=(e,t,r)=>Math.min(Math.max(r,e),t),Ba={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gl={...Ba,transform:e=>zo(0,1,e)},yc={...Ba,default:1},yl=e=>Math.round(e*1e5)/1e5,dp=/(-)?([\d]*\.?[\d])+/g,RP=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jB=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _u(e){return typeof e=="string"}const Du=e=>({test:t=>_u(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),po=Du("deg"),Cn=Du("%"),le=Du("px"),BB=Du("vh"),zB=Du("vw"),Dw={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},Mw={...Ba,transform:Math.round},IP={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,radius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,size:le,top:le,right:le,bottom:le,left:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,rotate:po,rotateX:po,rotateY:po,rotateZ:po,scale:yc,scaleX:yc,scaleY:yc,scaleZ:yc,skew:po,skewX:po,skewY:po,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:gl,originX:Dw,originY:Dw,originZ:le,zIndex:Mw,fillOpacity:gl,strokeOpacity:gl,numOctaves:Mw};function L0(e,t,r,n){const{style:o,vars:a,transform:i,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(OP(d)){a[d]=f;continue}const p=IP[d],h=LB(f,p);if(ja.has(d)){if(l=!0,i[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=h):o[d]=h}if(t.transform||(l||n?o.transform=FB(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const j0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AP(e,t,r){for(const n in t)!dr(t[n])&&!DP(n,r)&&(e[n]=t[n])}function VB({transformTemplate:e},t,r){return g.useMemo(()=>{const n=j0();return L0(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function UB(e,t,r){const n=e.style||{},o={};return AP(o,n,e),Object.assign(o,VB(e,t,r)),e.transformValues?e.transformValues(o):o}function WB(e,t,r){const n={},o=UB(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 YB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Yd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||YB.has(e)}let NP=e=>!Yd(e);function HB(e){e&&(NP=t=>t.startsWith("on")?!Yd(t):e(t))}try{HB(require("@emotion/is-prop-valid").default)}catch{}function QB(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(NP(o)||r===!0&&Yd(o)||!t&&!Yd(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Ow(e,t,r){return typeof e=="string"?e:le.transform(t+r*e)}function qB(e,t,r){const n=Ow(t,e.x,e.width),o=Ow(r,e.y,e.height);return`${n} ${o}`}const KB={offset:"stroke-dashoffset",array:"stroke-dasharray"},GB={offset:"strokeDashoffset",array:"strokeDasharray"};function XB(e,t,r=1,n=0,o=!0){e.pathLength=1;const a=o?KB:GB;e[a.offset]=le.transform(-n);const i=le.transform(t),s=le.transform(r);e[a.array]=`${i} ${s}`}function B0(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(L0(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:v}=e;p.transform&&(v&&(h.transform=p.transform),delete p.transform),v&&(o!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=qB(v,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),i!==void 0&&XB(p,i,s,l,!1)}const FP=()=>({...j0(),attrs:{}}),z0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZB(e,t,r,n){const o=g.useMemo(()=>{const a=FP();return B0(a,t,{enableHardwareAcceleration:!1},z0(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};AP(a,e.style,e),o.style={...a,...o.style}}return o}function JB(e=!1){return(r,n,o,{latestValues:a},i)=>{const l=($0(r)?ZB:WB)(n,a,i,r),c={...QB(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=g.useMemo(()=>dr(d)?d.get():d,[d]);return g.createElement(r,{...c,children:f})}}const V0=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function $P(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const LP=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 jP(e,t,r,n){$P(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(LP.has(o)?o:V0(o),t.attrs[o])}function U0(e,t){const{style:r}=e,n={};for(const o in r)(dr(r[o])||t.style&&dr(t.style[o])||DP(o,e))&&(n[o]=r[o]);return n}function BP(e,t){const r=U0(e,t);for(const n in e)if(dr(e[n])||dr(t[n])){const o=Eu.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function W0(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 zP(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hd=e=>Array.isArray(e),ez=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tz=e=>Hd(e)?e[e.length-1]||0:e;function rd(e){const t=dr(e)?e.get():e;return ez(t)?t.toValue():t}function rz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){const i={latestValues:nz(n,o,a,e),renderState:t()};return r&&(i.mount=s=>r(n,s,i)),i}const VP=e=>(t,r)=>{const n=g.useContext(sp),o=g.useContext(Pu),a=()=>rz(e,t,n,o);return r?a():zP(a)};function nz(e,t,r,n){const o={},a=n(e,{});for(const f in a)o[f]=rd(a[f]);let{initial:i,animate:s}=e;const l=cp(e),u=EP(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||i===!1;const d=c?s:i;return d&&typeof d!="boolean"&&!up(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=W0(e,p);if(!h)return;const{transitionEnd:v,transition:w,...y}=h;for(const m in y){let b=y[m];if(Array.isArray(b)){const S=c?b.length-1:0;b=b[S]}b!==null&&(o[m]=b)}for(const m in v)o[m]=v[m]}),o}const oz={useVisualState:VP({scrapeMotionValuesFromProps:BP,createRenderState:FP,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}B0(r,n,{enableHardwareAcceleration:!1},z0(t.tagName),e.transformTemplate),jP(t,r)}})},az={useVisualState:VP({scrapeMotionValuesFromProps:U0,createRenderState:j0})};function iz(e,{forwardMotionProps:t=!1},r,n){return{...$0(e)?oz:az,preloadedFeatures:r,useRender:JB(t),createVisualElement:n,Component:e}}function zn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const UP=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const sz=e=>t=>UP(t)&&e(t,fp(t));function Yn(e,t,r,n){return zn(e,t,sz(r),n)}const lz=(e,t)=>r=>t(e(r)),No=(...e)=>e.reduce(lz);function WP(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Rw=WP("dragHorizontal"),Iw=WP("dragVertical");function YP(e){let t=!1;if(e==="y")t=Iw();else if(e==="x")t=Rw();else{const r=Rw(),n=Iw();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function HP(){const e=YP(!0);return e?(e(),!1):!0}class Qo{constructor(t){this.isMounted=!1,this.node=t}update(){}}const st=e=>e;function uz(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&i.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const u=r.indexOf(l);u!==-1&&r.splice(u,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let u=0;u(d[f]=uz(()=>r=!0),d),{}),i=d=>a[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,cz),1),o.timestamp=d,o.isProcessing=!0,bc.forEach(i),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:bc.reduce((d,f)=>{const p=a[f];return d[f]=(h,v=!1,w=!1)=>(r||l(),p.schedule(h,v,w)),d},{}),cancel:d=>bc.forEach(f=>a[f].cancel(d)),state:o,steps:a}}const{schedule:Xe,cancel:Jn,state:jt,steps:Ih}=dz(typeof requestAnimationFrame<"u"?requestAnimationFrame:st,!0);function Aw(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(a,i)=>{if(a.type==="touch"||HP())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Xe.update(()=>s[n](a,i))};return Yn(e.current,r,o,{passive:!e.getProps()[n]})}class fz extends Qo{mount(){this.unmount=No(Aw(this.node,!0),Aw(this.node,!1))}unmount(){}}class pz extends Qo{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=No(zn(this.node.current,"focus",()=>this.onFocus()),zn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const QP=(e,t)=>t?e===t?!0:QP(e,t.parentElement):!1;function Ah(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,fp(r))}class hz extends Qo{constructor(){super(...arguments),this.removeStartListeners=st,this.removeEndListeners=st,this.removeAccessibleListeners=st,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=Yn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Xe.update(()=>{QP(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),i=Yn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=No(a,i),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const i=s=>{s.key!=="Enter"||!this.checkPressEnd()||Ah("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Xe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=zn(this.node.current,"keyup",i),Ah("down",(s,l)=>{this.startPress(s,l)})},r=zn(this.node.current,"keydown",t),n=()=>{this.isPressing&&Ah("cancel",(a,i)=>this.cancelPress(a,i))},o=zn(this.node.current,"blur",n);this.removeAccessibleListeners=No(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&&Xe.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!HP()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xe.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Yn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=No(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tv=new WeakMap,Nh=new WeakMap,mz=e=>{const t=Tv.get(e.target);t&&t(e)},vz=e=>{e.forEach(mz)};function gz({root:e,...t}){const r=e||document;Nh.has(r)||Nh.set(r,{});const n=Nh.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(vz,{root:e,...t})),n[o]}function yz(e,t,r){const n=gz(t);return Tv.set(e,r),n.observe(e),()=>{Tv.delete(e),n.unobserve(e)}}const bz={some:0,all:1};class wz extends Qo{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:a}=t,i={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:bz[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!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 yz(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(xz(t,r))&&this.startObserver()}unmount(){}}function xz({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Sz={inView:{Feature:wz},tap:{Feature:hz},focus:{Feature:pz},hover:{Feature:fz}};function qP(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 Cz(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function pp(e,t,r){const n=e.getProps();return W0(n,t,r!==void 0?r:n.custom,kz(e),Cz(e))}const Tz="framerAppearId",Pz="data-"+V0(Tz);let Ez=st,Y0=st;const Fo=e=>e*1e3,Hn=e=>e/1e3,_z={current:!1},KP=e=>Array.isArray(e)&&typeof e[0]=="number";function GP(e){return!!(!e||typeof e=="string"&&XP[e]||KP(e)||Array.isArray(e)&&e.every(GP))}const el=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,XP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function ZP(e){if(e)return KP(e)?el(e):Array.isArray(e)?e.map(ZP):XP[e]}function Dz(e,t,r,{delay:n=0,duration:o,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=ZP(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}function Mz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const JP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Oz=1e-7,Rz=12;function Iz(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=JP(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>Oz&&++sIz(a,0,1,e,r);return a=>a===0||a===1?a:JP(o(a),t,n)}const Az=Mu(.42,0,1,1),Nz=Mu(0,0,.58,1),eE=Mu(.42,0,.58,1),Fz=e=>Array.isArray(e)&&typeof e[0]!="number",tE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rE=e=>t=>1-e(1-t),nE=e=>1-Math.sin(Math.acos(e)),H0=rE(nE),$z=tE(H0),oE=Mu(.33,1.53,.69,.99),Q0=rE(oE),Lz=tE(Q0),jz=e=>(e*=2)<1?.5*Q0(e):.5*(2-Math.pow(2,-10*(e-1))),Bz={linear:st,easeIn:Az,easeInOut:eE,easeOut:Nz,circIn:nE,circInOut:$z,circOut:H0,backIn:Q0,backInOut:Lz,backOut:oE,anticipate:jz},Nw=e=>{if(Array.isArray(e)){Y0(e.length===4);const[t,r,n,o]=e;return Mu(t,r,n,o)}else if(typeof e=="string")return Bz[e];return e},q0=(e,t)=>r=>!!(_u(r)&&jB.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),aE=(e,t,r)=>n=>{if(!_u(n))return n;const[o,a,i,s]=n.match(dp);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},zz=e=>zo(0,255,e),Fh={...Ba,transform:e=>Math.round(zz(e))},pa={test:q0("rgb","red"),parse:aE("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Fh.transform(e)+", "+Fh.transform(t)+", "+Fh.transform(r)+", "+yl(gl.transform(n))+")"};function Vz(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 Pv={test:q0("#"),parse:Vz,transform:pa.transform},Si={test:q0("hsl","hue"),parse:aE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cn.transform(yl(t))+", "+Cn.transform(yl(r))+", "+yl(gl.transform(n))+")"},Wt={test:e=>pa.test(e)||Pv.test(e)||Si.test(e),parse:e=>pa.test(e)?pa.parse(e):Si.test(e)?Si.parse(e):Pv.parse(e),transform:e=>_u(e)?e:e.hasOwnProperty("red")?pa.transform(e):Si.transform(e)},tt=(e,t,r)=>-r*e+r*t+e;function $h(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 Uz({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,i=0;if(!t)o=a=i=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=$h(l,s,e+1/3),a=$h(l,s,e),i=$h(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}const Lh=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Wz=[Pv,pa,Si],Yz=e=>Wz.find(t=>t.test(e));function Fw(e){const t=Yz(e);let r=t.parse(e);return t===Si&&(r=Uz(r)),r}const iE=(e,t)=>{const r=Fw(e),n=Fw(t),o={...r};return a=>(o.red=Lh(r.red,n.red,a),o.green=Lh(r.green,n.green,a),o.blue=Lh(r.blue,n.blue,a),o.alpha=tt(r.alpha,n.alpha,a),pa.transform(o))};function Hz(e){var t,r;return isNaN(e)&&_u(e)&&(((t=e.match(dp))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(RP))===null||r===void 0?void 0:r.length)||0)>0}const sE={regex:$B,countKey:"Vars",token:"${v}",parse:st},lE={regex:RP,countKey:"Colors",token:"${c}",parse:Wt.parse},uE={regex:dp,countKey:"Numbers",token:"${n}",parse:Ba.parse};function jh(e,{regex:t,countKey:r,token:n,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(o)))}function Qd(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&jh(r,sE),jh(r,lE),jh(r,uE),r}function cE(e){return Qd(e).values}function dE(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Qd(e),a=t.length;return i=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function qz(e){const t=cE(e);return dE(e)(t.map(Qz))}const Vo={test:Hz,parse:cE,createTransformer:dE,getAnimatableNone:qz},fE=(e,t)=>r=>`${r>0?t:e}`;function pE(e,t){return typeof e=="number"?r=>tt(e,t,r):Wt.test(e)?iE(e,t):e.startsWith("var(")?fE(e,t):mE(e,t)}const hE=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,i)=>pE(a,t[i]));return a=>{for(let i=0;i{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=pE(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}},mE=(e,t)=>{const r=Vo.createTransformer(t),n=Qd(e),o=Qd(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?No(hE(n.values,o.values),r):fE(e,t)},nu=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},$w=(e,t)=>r=>tt(e,t,r);function Gz(e){return typeof e=="number"?$w:typeof e=="string"?Wt.test(e)?iE:mE:Array.isArray(e)?hE:typeof e=="object"?Kz:$w}function Xz(e,t,r){const n=[],o=r||Gz(e[0]),a=e.length-1;for(let i=0;it[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=Xz(t,n,o),s=i.length,l=u=>{let c=0;if(s>1)for(;cl(zo(e[0],e[a-1],u)):l}function Zz(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=nu(0,t,n);e.push(tt(r,1,o))}}function Jz(e){const t=[0];return Zz(t,e.length-1),t}function e6(e,t){return e.map(r=>r*t)}function t6(e,t){return e.map(()=>t||eE).splice(0,e.length-1)}function qd({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Fz(n)?n.map(Nw):Nw(n),a={done:!1,value:t[0]},i=e6(r&&r.length===t.length?r:Jz(t),e),s=vE(i,t,{ease:Array.isArray(o)?o:t6(t,o)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function gE(e,t){return t?e*(1e3/t):0}const r6=5;function yE(e,t,r){const n=Math.max(t-r6,0);return gE(r-e(n),t-n)}const Bh=.001,n6=.01,Lw=10,o6=.05,a6=1;function i6({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ez(e<=Fo(Lw));let i=1-t;i=zo(o6,a6,i),e=zo(n6,Lw,Hn(e)),i<1?(o=u=>{const c=u*i,d=c*e,f=c-r,p=Ev(u,i),h=Math.exp(-d);return Bh-f/p*h},a=u=>{const d=u*i*e,f=d*r+r,p=Math.pow(i,2)*Math.pow(u,2)*e,h=Math.exp(-d),v=Ev(Math.pow(u,2),i);return(-o(u)+Bh>0?-1:1)*((f-p)*h)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Bh+c*d},a=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=l6(o,a,s);if(e=Fo(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:i*2*Math.sqrt(n*u),duration:e}}}const s6=12;function l6(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function d6(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jw(e,c6)&&jw(e,u6)){const r=i6(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function bE({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],a=e[e.length-1],i={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=d6(n),p=c?-Hn(c):0,h=l/(2*Math.sqrt(s*u)),v=a-o,w=Hn(Math.sqrt(s/u)),y=Math.abs(v)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let m;if(h<1){const b=Ev(w,h);m=S=>{const E=Math.exp(-h*w*S);return a-E*((p+h*w*v)/b*Math.sin(b*S)+v*Math.cos(b*S))}}else if(h===1)m=b=>a-Math.exp(-w*b)*(v+(p+w*v)*b);else{const b=w*Math.sqrt(h*h-1);m=S=>{const E=Math.exp(-h*w*S),T=Math.min(b*S,300);return a-E*((p+h*w*v)*Math.sinh(T)+b*v*Math.cosh(T))/b}}return{calculatedDuration:f&&d||null,next:b=>{const S=m(b);if(f)i.done=b>=d;else{let E=p;b!==0&&(h<1?E=yE(m,b,S):E=0);const T=Math.abs(E)<=r,C=Math.abs(a-S)<=t;i.done=T&&C}return i.value=i.done?a:S,i}}}function Bw({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=D=>s!==void 0&&Dl,h=D=>s===void 0?l:l===void 0||Math.abs(s-D)-v*Math.exp(-D/n),b=D=>y+m(D),S=D=>{const R=m(D),I=b(D);f.done=Math.abs(R)<=u,f.value=f.done?y:I};let E,T;const C=D=>{p(f.value)&&(E=D,T=bE({keyframes:[f.value,h(f.value)],velocity:yE(b,D,f.value),damping:o,stiffness:a,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:D=>{let R=!1;return!T&&E===void 0&&(R=!0,S(D),C(D)),E!==void 0&&D>E?T.next(D-E):(!R&&S(D),f)}}}const f6=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Xe.update(t,!0),stop:()=>Jn(t),now:()=>jt.isProcessing?jt.timestamp:performance.now()}},zw=2e4;function Vw(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=zw?1/0:t}const p6={decay:Bw,inertia:Bw,tween:qd,keyframes:qd,spring:bE};function Kd({autoplay:e=!0,delay:t=0,driver:r=f6,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,h=!1,v,w;const y=()=>{w=new Promise(G=>{v=G})};y();let m;const b=p6[o]||qd;let S;b!==qd&&typeof n[0]!="number"&&(S=vE([0,100],n,{clamp:!1}),n=[0,100]);const E=b({...f,keyframes:n});let T;s==="mirror"&&(T=b({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let C="idle",D=null,R=null,I=null;E.calculatedDuration===null&&a&&(E.calculatedDuration=Vw(E));const{calculatedDuration:L}=E;let te=1/0,X=1/0;L!==null&&(te=L+i,X=te*(a+1)-i);let re=0;const H=G=>{if(R===null)return;p>0&&(R=Math.min(R,G)),p<0&&(R=Math.min(G-X/p,R)),D!==null?re=D:re=Math.round(G-R)*p;const ie=re-t*(p>=0?1:-1),Q=p>=0?ie<0:ie>X;re=Math.max(ie,0),C==="finished"&&D===null&&(re=X);let J=re,ve=E;if(a){const ce=re/te;let De=Math.floor(ce),Ze=ce%1;!Ze&&ce>=1&&(Ze=1),Ze===1&&De--,De=Math.min(De,a+1);const tr=!!(De%2);tr&&(s==="reverse"?(Ze=1-Ze,i&&(Ze-=i/te)):s==="mirror"&&(ve=T));let Er=zo(0,1,Ze);re>X&&(Er=s==="reverse"&&tr?1:0),J=Er*te}const pe=Q?{done:!1,value:n[0]}:ve.next(J);S&&(pe.value=S(pe.value));let{done:ye}=pe;!Q&&L!==null&&(ye=p>=0?re>=X:re<=0);const se=D===null&&(C==="finished"||C==="running"&&ye);return d&&d(pe.value),se&&j(),pe},Z=()=>{m&&m.stop(),m=void 0},$=()=>{C="idle",Z(),v(),y(),R=I=null},j=()=>{C="finished",c&&c(),Z(),v()},U=()=>{if(h)return;m||(m=r(H));const G=m.now();l&&l(),D!==null?R=G-D:(!R||C==="finished")&&(R=G),C==="finished"&&y(),I=R,D=null,C="running",m.start()};e&&U();const ee={then(G,ie){return w.then(G,ie)},get time(){return Hn(re)},set time(G){G=Fo(G),re=G,D!==null||!m||p===0?D=G:R=m.now()-G/p},get duration(){const G=E.calculatedDuration===null?Vw(E):E.calculatedDuration;return Hn(G)},get speed(){return p},set speed(G){G===p||!m||(p=G,ee.time=Hn(re))},get state(){return C},play:U,pause:()=>{C="paused",D=re},stop:()=>{h=!0,C!=="idle"&&(C="idle",u&&u(),$())},cancel:()=>{I!==null&&H(I),$()},complete:()=>{C="finished"},sample:G=>(R=0,H(G))};return ee}function h6(e){let t;return()=>(t===void 0&&(t=e()),t)}const m6=h6(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),v6=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),wc=10,g6=2e4,y6=(e,t)=>t.type==="spring"||e==="backgroundColor"||!GP(t.ease);function b6(e,t,{onUpdate:r,onComplete:n,...o}){if(!(m6()&&v6.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let i=!1,s,l;const u=()=>{l=new Promise(m=>{s=m})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(y6(t,o)){const m=Kd({...o,repeat:0,delay:0});let b={done:!1,value:c[0]};const S=[];let E=0;for(;!b.done&&Eh.cancel(),w=()=>{Xe.update(v),s(),u()};return h.onfinish=()=>{e.set(Mz(c,o)),n&&n(),w()},{then(m,b){return l.then(m,b)},attachTimeline(m){return h.timeline=m,h.onfinish=null,st},get time(){return Hn(h.currentTime||0)},set time(m){h.currentTime=Fo(m)},get speed(){return h.playbackRate},set speed(m){h.playbackRate=m},get duration(){return Hn(d)},play:()=>{i||(h.play(),Jn(v))},pause:()=>h.pause(),stop:()=>{if(i=!0,h.playState==="idle")return;const{currentTime:m}=h;if(m){const b=Kd({...o,autoplay:!1});e.setWithVelocity(b.sample(m-wc).value,b.sample(m).value,wc)}w()},complete:()=>h.finish(),cancel:w}}function w6({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:st,pause:st,stop:st,then:a=>(a(),Promise.resolve()),cancel:st,complete:st});return t?Kd({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const x6={type:"spring",stiffness:500,damping:25,restSpeed:10},S6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),k6={type:"keyframes",duration:.8},C6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T6=(e,{keyframes:t})=>t.length>2?k6:ja.has(e)?e.startsWith("scale")?S6(t[1]):x6:C6,_v=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Vo.test(t)||t==="0")&&!t.startsWith("url(")),P6=new Set(["brightness","contrast","saturate","opacity"]);function E6(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(dp)||[];if(!n)return e;const o=r.replace(n,"");let a=P6.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const _6=/([a-z-]*)\(.*?\)/g,Dv={...Vo,getAnimatableNone:e=>{const t=e.match(_6);return t?t.map(E6).join(" "):e}},D6={...IP,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:Dv,WebkitFilter:Dv},K0=e=>D6[e];function wE(e,t){let r=K0(e);return r!==Dv&&(r=Vo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const xE=e=>/^0[^.\s]+$/.test(e);function M6(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||xE(e)}function O6(e,t,r,n){const o=_v(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const i=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const a=SE(n,e)||{},i=a.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Fo(i);const l=O6(t,e,r,a),u=l[0],c=l[l.length-1],d=_v(e,u),f=_v(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(R6(a)||(p={...p,...T6(e,p)}),p.duration&&(p.duration=Fo(p.duration)),p.repeatDelay&&(p.repeatDelay=Fo(p.repeatDelay)),!d||!f||_z.current||a.type===!1)return w6(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const h=b6(t,e,p);if(h)return h}return Kd(p)};function Gd(e){return!!(dr(e)&&e.add)}const kE=e=>/^\-?\d*\.?\d+$/.test(e);function X0(e,t){e.indexOf(t)===-1&&e.push(t)}function Z0(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class J0{constructor(){this.subscriptions=[]}add(t){return X0(this.subscriptions,t),()=>Z0(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 a=0;a!isNaN(parseFloat(e));class A6{constructor(t,r={}){this.version="10.15.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:i}=jt;this.lastUpdated!==i&&(this.timeDelta=a,this.lastUpdated=i,Xe.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Xe.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=I6(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new J0);const n=this.events[t].add(r);return t==="change"?()=>{n(),Xe.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=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?gE(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 ts(e,t){return new A6(e,t)}const CE=e=>t=>t.test(e),N6={test:e=>e==="auto",parse:e=>e},TE=[Ba,le,Cn,po,zB,BB,N6],Ls=e=>TE.find(CE(e)),F6=[...TE,Wt,Vo],$6=e=>F6.find(CE(e));function L6(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ts(r))}function j6(e,t){const r=pp(e,t);let{transitionEnd:n={},transition:o={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const i in a){const s=tz(a[i]);L6(e,i,s)}}function B6(e,t,r){var n,o;const a=Object.keys(t).filter(s=>!e.hasValue(s)),i=a.length;if(i)for(let s=0;sl.remove(d))),u.push(v)}return i&&Promise.all(u).then(()=>{i&&j6(e,i)}),u}function Mv(e,t,r={}){const n=pp(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const a=n?()=>Promise.all(PE(e,n,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return W6(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[a,i]:[i,a];return l().then(()=>u())}else return Promise.all([a(),i(r.delay)])}function W6(e,t,r=0,n=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(Y6).forEach((u,c)=>{u.notify("AnimationStart",t),i.push(Mv(u,t,{...a,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function Y6(e,t){return e.sortNodePosition(t)}function H6(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(a=>Mv(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=Mv(e,t,r);else{const o=typeof t=="function"?pp(e,t,r.custom):t;n=Promise.all(PE(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Q6=[...A0].reverse(),q6=A0.length;function K6(e){return t=>Promise.all(t.map(({animation:r,options:n})=>H6(e,r,n)))}function G6(e){let t=K6(e);const r=Z6();let n=!0;const o=(l,u)=>{const c=pp(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function a(l){t=l(e)}function i(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},v=1/0;for(let y=0;yv&&E;const I=Array.isArray(S)?S:[S];let L=I.reduce(o,{});T===!1&&(L={});const{prevResolvedValues:te={}}=b,X={...te,...L},re=H=>{R=!0,p.delete(H),b.needsAnimating[H]=!0};for(const H in X){const Z=L[H],$=te[H];h.hasOwnProperty(H)||(Z!==$?Hd(Z)&&Hd($)?!qP(Z,$)||D?re(H):b.protectedKeys[H]=!0:Z!==void 0?re(H):p.add(H):Z!==void 0&&p.has(H)?re(H):b.protectedKeys[H]=!0)}b.prevProp=S,b.prevResolvedValues=L,b.isActive&&(h={...h,...L}),n&&e.blockInitialAnimation&&(R=!1),R&&!C&&f.push(...I.map(H=>({animation:H,options:{type:m,...l}})))}if(p.size){const y={};p.forEach(m=>{const b=e.getBaseTarget(m);b!==void 0&&(y[m]=b)}),f.push({animation:y})}let w=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),r[l].isActive=u;const f=i(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>r}}function X6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qP(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Z6(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}class J6 extends Qo{constructor(t){super(t),t.animationState||(t.animationState=G6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),up(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 e8=0;class t8 extends Qo{constructor(){super(...arguments),this.id=e8++}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 a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const r8={animation:{Feature:J6},exit:{Feature:t8}},Uw=(e,t)=>Math.abs(e-t);function n8(e,t){const r=Uw(e.x,t.x),n=Uw(e.y,t.y);return Math.sqrt(r**2+n**2)}class EE{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Vh(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=n8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=jt;this.history.push({...f,timestamp:p});const{onStart:h,onMove:v}=this.handlers;c||(h&&h(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=zh(c,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=Vh(u.type==="pointercancel"?this.lastMoveEventInfo:zh(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!UP(t))return;this.handlers=r,this.transformPagePoint=n;const o=fp(t),a=zh(o,this.transformPagePoint),{point:i}=a,{timestamp:s}=jt;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=r;l&&l(t,Vh(a,this.history)),this.removeListeners=No(Yn(window,"pointermove",this.handlePointerMove),Yn(window,"pointerup",this.handlePointerUp),Yn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Jn(this.updatePoint)}}function zh(e,t){return t?{point:t(e.point)}:e}function Ww(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vh({point:e},t){return{point:e,delta:Ww(e,_E(t)),offset:Ww(e,o8(t)),velocity:a8(t,.1)}}function o8(e){return e[0]}function _E(e){return e[e.length-1]}function a8(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=_E(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Fo(t)));)r--;if(!n)return{x:0,y:0};const a=Hn(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Sr(e){return e.max-e.min}function Ov(e,t=0,r=.01){return Math.abs(e-t)<=r}function Yw(e,t,r,n=.5){e.origin=n,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Sr(r)/Sr(t),(Ov(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tt(r.min,r.max,e.origin)-e.originPoint,(Ov(e.translate)||isNaN(e.translate))&&(e.translate=0)}function bl(e,t,r,n){Yw(e.x,t.x,r.x,n?n.originX:void 0),Yw(e.y,t.y,r.y,n?n.originY:void 0)}function Hw(e,t,r){e.min=r.min+t.min,e.max=e.min+Sr(t)}function i8(e,t,r){Hw(e.x,t.x,r.x),Hw(e.y,t.y,r.y)}function Qw(e,t,r){e.min=t.min-r.min,e.max=e.min+Sr(t)}function wl(e,t,r){Qw(e.x,t.x,r.x),Qw(e.y,t.y,r.y)}function s8(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?tt(r,e,n.max):Math.min(e,r)),e}function qw(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 l8(e,{top:t,left:r,bottom:n,right:o}){return{x:qw(e.x,r,o),y:qw(e.y,t,n)}}function Kw(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=nu(t.min,t.max-n,e.min):n>o&&(r=nu(e.min,e.max-o,t.min)),zo(0,1,r)}function d8(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 Rv=.35;function f8(e=Rv){return e===!1?e=0:e===!0&&(e=Rv),{x:Gw(e,"left","right"),y:Gw(e,"top","bottom")}}function Gw(e,t,r){return{min:Xw(e,t),max:Xw(e,r)}}function Xw(e,t){return typeof e=="number"?e:e[t]||0}const Zw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ki=()=>({x:Zw(),y:Zw()}),Jw=()=>({min:0,max:0}),pt=()=>({x:Jw(),y:Jw()});function fn(e){return[e("x"),e("y")]}function DE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function p8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function h8(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 Uh(e){return e===void 0||e===1}function Iv({scale:e,scaleX:t,scaleY:r}){return!Uh(e)||!Uh(t)||!Uh(r)}function oa(e){return Iv(e)||ME(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ME(e){return ex(e.x)||ex(e.y)}function ex(e){return e&&e!=="0%"}function Xd(e,t,r){const n=e-r,o=t*n;return r+o}function tx(e,t,r,n,o){return o!==void 0&&(e=Xd(e,o,n)),Xd(e,r,n)+t}function Av(e,t=0,r=1,n,o){e.min=tx(e.min,t,r,n,o),e.max=tx(e.max,t,r,n,o)}function OE(e,{x:t,y:r}){Av(e.x,t.translate,t.scale,t.originPoint),Av(e.y,r.translate,r.scale,r.originPoint)}function m8(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let a,i;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function nx(e,t,[r,n,o]){const a=t[o]!==void 0?t[o]:.5,i=tt(e.min,e.max,a);Av(e,t[r],t[n],i,t.scale)}const v8=["x","scaleX","originX"],g8=["y","scaleY","originY"];function Ci(e,t){nx(e.x,t,v8),nx(e.y,t,g8)}function RE(e,t){return DE(h8(e.getBoundingClientRect(),t))}function y8(e,t,r){const n=RE(e,r),{scroll:o}=t;return o&&(vo(n.x,o.offset.x),vo(n.y,o.offset.y)),n}const b8=new WeakMap;class w8{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=pt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(fp(l,"page").point)},a=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=YP(c),!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),fn(h=>{let v=this.getAxisMotionValue(h).get()||0;if(Cn.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const y=w.layout.layoutBox[h];y&&(v=Sr(y)*(parseFloat(v)/100))}}this.originPoint[h]=v}),f&&Xe.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},i=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:h}=u;if(d&&this.currentDirection===null){this.currentDirection=x8(h),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,h),this.updateAxis("y",u.point,h),this.visualElement.render(),p&&p(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new EE(t,{onSessionStart:o,onStart:a,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Xe.update(()=>a(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||!xc(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=s8(i,this.constraints[t],this.elastic[t])),a.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&xi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=l8(n.layoutBox,t):this.constraints=!1,this.elastic=f8(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=d8(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!xi(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=y8(n,o.root,this.visualElement.getTransformPagePoint());let i=u8(o.layout.layoutBox,a);if(r){const s=r(p8(i));this.hasMutatedConstraints=!!s,s&&(i=DE(s))}return i}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=fn(c=>{if(!xc(c,r,this.currentDirection))return;let d=l&&l[c]||{};i&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,h={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(G0(t,n,0,r))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}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){fn(r=>{const{drag:n}=this.getProps();if(!xc(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){const{min:i,max:s}=o.layout.layoutBox[r];a.set(t[r]-tt(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!xi(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fn(i=>{const s=this.getAxisMotionValue(i);if(s){const l=s.get();o[i]=c8({min:l,max:l},this.constraints[i])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fn(i=>{if(!xc(i,t,null))return;const s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(tt(l,u,o[i]))})}addListeners(){if(!this.visualElement.current)return;b8.set(this.visualElement,this);const t=this.visualElement.current,r=Yn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();xi(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const i=zn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(fn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{i(),r(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:i=Rv,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:i,dragMomentum:s}}}function xc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function x8(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class S8 extends Qo{constructor(t){super(t),this.removeGroupControls=st,this.removeListeners=st,this.controls=new w8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||st}unmount(){this.removeGroupControls(),this.removeListeners()}}const ox=e=>(t,r)=>{e&&Xe.update(()=>e(t,r))};class k8 extends Qo{constructor(){super(...arguments),this.removePointerDownListener=st}onPointerDown(t){this.session=new EE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ox(t),onStart:ox(r),onMove:n,onEnd:(a,i)=>{delete this.session,o&&Xe.update(()=>o(a,i))}}}mount(){this.removePointerDownListener=Yn(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 IE(){const e=g.useContext(Pu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=g.useId();return g.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function C8(){return T8(g.useContext(Pu))}function T8(e){return e===null?!0:e.isPresent}const nd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ax(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const js={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(le.test(e))e=parseFloat(e);else return e;const r=ax(e,t.target.x),n=ax(e,t.target.y);return`${r}% ${n}%`}},P8={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Vo.parse(e);if(o.length>5)return n;const a=Vo.createTransformer(e),i=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+i]/=s,o[1+i]/=l;const u=tt(s,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),a(o)}};class E8 extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;IB(_8),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),nd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,i=n.projection;return i&&(i.isPresent=a,o||t.layoutDependency!==r||r===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||Xe.postRender(()=>{const s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!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 AE(e){const[t,r]=IE(),n=g.useContext(F0);return A.createElement(E8,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(_P),isPresent:t,safeToRemove:r})}const _8={borderRadius:{...js,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:js,borderTopRightRadius:js,borderBottomLeftRadius:js,borderBottomRightRadius:js,boxShadow:P8},NE=["TopLeft","TopRight","BottomLeft","BottomRight"],D8=NE.length,ix=e=>typeof e=="string"?parseFloat(e):e,sx=e=>typeof e=="number"||le.test(e);function M8(e,t,r,n,o,a){o?(e.opacity=tt(0,r.opacity!==void 0?r.opacity:1,O8(n)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,R8(n))):a&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let i=0;int?1:r(nu(e,t,n))}function ux(e,t){e.min=t.min,e.max=t.max}function Rr(e,t){ux(e.x,t.x),ux(e.y,t.y)}function cx(e,t,r,n,o){return e-=t,e=Xd(e,1/r,n),o!==void 0&&(e=Xd(e,1/o,n)),e}function I8(e,t=0,r=1,n=.5,o,a=e,i=e){if(Cn.test(t)&&(t=parseFloat(t),t=tt(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=tt(a.min,a.max,n);e===a&&(s-=t),e.min=cx(e.min,t,r,s,o),e.max=cx(e.max,t,r,s,o)}function dx(e,t,[r,n,o],a,i){I8(e,t[r],t[n],t[o],t.scale,a,i)}const A8=["x","scaleX","originX"],N8=["y","scaleY","originY"];function fx(e,t,r,n){dx(e.x,t,A8,r?r.x:void 0,n?n.x:void 0),dx(e.y,t,N8,r?r.y:void 0,n?n.y:void 0)}function px(e){return e.translate===0&&e.scale===1}function $E(e){return px(e.x)&&px(e.y)}function F8(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 LE(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 hx(e){return Sr(e.x)/Sr(e.y)}class $8{constructor(){this.members=[]}add(t){X0(this.members,t),t.scheduleRender()}remove(t){if(Z0(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 a=this.members[o];if(a.isPresent!==!1){n=a;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 mx(e,t,r){let n="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(n=`translate3d(${o}px, ${a}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 i=e.x.scale*t.x,s=e.y.scale*t.y;return(i!==1||s!==1)&&(n+=`scale(${i}, ${s})`),n||"none"}const L8=(e,t)=>e.depth-t.depth;class j8{constructor(){this.children=[],this.isDirty=!1}add(t){X0(this.children,t),this.isDirty=!0}remove(t){Z0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(L8),this.isDirty=!1,this.children.forEach(t)}}function B8(e,t){const r=performance.now(),n=({timestamp:o})=>{const a=o-r;a>=t&&(Jn(n),e(a-t))};return Xe.read(n,!0),()=>Jn(n)}function z8(e){window.MotionDebug&&window.MotionDebug.record(e)}function V8(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U8(e,t,r){const n=dr(e)?e:ts(e);return n.start(G0("",n,t,r)),n.animation}const vx=["","X","Y","Z"],gx=1e3;let W8=0;const aa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(i={},s=t?.()){this.id=W8++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{aa.totalNodes=aa.resolvedTargetDeltas=aa.recalculatedProjection=0,this.nodes.forEach(Q8),this.nodes.forEach(Z8),this.nodes.forEach(J8),this.nodes.forEach(q8),z8(aa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=B8(f,250),nd.hasAnimatedSinceResize&&(nd.hasAnimatedSinceResize=!1,this.nodes.forEach(bx))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||oV,{onLayoutAnimationStart:w,onLayoutAnimationComplete:y}=c.getProps(),m=!this.targetLayout||!LE(this.targetLayout,h)||p,b=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const S={...SE(v,"layout"),onPlay:w,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||bx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Jn(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(eV),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!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(K8),this.sharedNodes.forEach(tV)}scheduleUpdateProjection(){Xe.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Xe.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 E=S/1e3;wx(d.x,i.x,E),wx(d.y,i.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rV(this.relativeTarget,this.relativeTargetOrigin,f,E),b&&F8(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=pt()),Rr(b,this.relativeTarget)),v&&(this.animationValues=c,M8(c,u,this.latestValues,E,m,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{nd.hasAnimatedSinceResize=!0,this.currentAnimation=U8(0,gx,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&BE(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||pt();const d=Sr(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const f=Sr(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}Rr(s,l),Ci(s,c),bl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new $8),this.sharedNodes.get(i).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(yx),this.root.sharedNodes.clear()}}}function Y8(e){e.updateLayout()}function H8(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:a}=e.options,i=r.source!==e.layout.source;a==="size"?fn(d=>{const f=i?r.measuredBox[d]:r.layoutBox[d],p=Sr(f);f.min=n[d].min,f.max=f.min+p}):BE(a,r.layoutBox,n)&&fn(d=>{const f=i?r.measuredBox[d]:r.layoutBox[d],p=Sr(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=ki();bl(s,n,r.layoutBox);const l=ki();i?bl(l,e.applyTransform(o,!0),r.measuredBox):bl(l,n,r.layoutBox);const u=!$E(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=pt();wl(h,r.layoutBox,f.layoutBox);const v=pt();wl(v,n,p.layoutBox),LE(h,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Q8(e){aa.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 q8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function K8(e){e.clearSnapshot()}function yx(e){e.clearMeasurements()}function G8(e){e.isLayoutDirty=!1}function X8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Z8(e){e.resolveTargetDelta()}function J8(e){e.calcProjection()}function eV(e){e.resetRotation()}function tV(e){e.removeLeadSnapshot()}function wx(e,t,r){e.translate=tt(t.translate,0,r),e.scale=tt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function xx(e,t,r,n){e.min=tt(t.min,r.min,n),e.max=tt(t.max,r.max,n)}function rV(e,t,r,n){xx(e.x,t.x,r.x,n),xx(e.y,t.y,r.y,n)}function nV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oV={duration:.45,ease:[.4,0,.1,1]},Sx=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),kx=Sx("applewebkit/")&&!Sx("chrome/")?Math.round:st;function Cx(e){e.min=kx(e.min),e.max=kx(e.max)}function aV(e){Cx(e.x),Cx(e.y)}function BE(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ov(hx(t),hx(r),.2)}const iV=jE({attachResizeListener:(e,t)=>zn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wh={current:void 0},zE=jE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wh.current){const e=new iV({});e.mount(window),e.setOptions({layoutScroll:!0}),Wh.current=e}return Wh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sV={pan:{Feature:k8},drag:{Feature:S8,ProjectionNode:zE,MeasureLayout:AE}},lV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uV(e){const t=lV.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Nv(e,t,r=1){const[n,o]=uV(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const i=a.trim();return kE(i)?parseFloat(i):i}else return Cv(o)?Nv(o,t,r+1):o}function cV(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const a=o.get();if(!Cv(a))return;const i=Nv(a,n);i&&o.set(i)});for(const o in t){const a=t[o];if(!Cv(a))continue;const i=Nv(a,n);i&&(t[o]=i,r||(r={}),r[o]===void 0&&(r[o]=a))}return{target:t,transitionEnd:r}}const dV=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),VE=e=>dV.has(e),fV=e=>Object.keys(e).some(VE),Tx=e=>e===Ba||e===le,Px=(e,t)=>parseFloat(e.split(", ")[t]),Ex=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Px(o[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?Px(a[1],e):0}},pV=new Set(["x","y","z"]),hV=Eu.filter(e=>!pV.has(e));function mV(e){const t=[];return hV.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 rs={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:Ex(4,13),y:Ex(5,14)};rs.translateX=rs.x;rs.translateY=rs.y;const vV=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:i}=a,s={};i==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=rs[u](n,a)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=rs[u](l,a)}),e},gV=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(VE);let a=[],i=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=Ls(c);const f=t[l];let p;if(Hd(f)){const h=f.length,v=f[0]===null?1:0;c=f[v],d=Ls(c);for(let w=v;w=0?window.pageYOffset:null,u=vV(t,e,s);return a.length&&a.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),lp&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function yV(e,t,r,n){return fV(t)?gV(e,t,r,n):{target:t,transitionEnd:n}}const bV=(e,t,r,n)=>{const o=cV(e,t,n);return t=o.target,n=o.transitionEnd,yV(e,t,r,n)},Fv={current:null},UE={current:!1};function wV(){if(UE.current=!0,!!lp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fv.current=e.matches;e.addListener(t),t()}else Fv.current=!1}function xV(e,t,r){const{willChange:n}=t;for(const o in t){const a=t[o],i=r[o];if(dr(a))e.addValue(o,a),Gd(n)&&n.add(o);else if(dr(i))e.addValue(o,ts(a,{owner:e})),Gd(n)&&n.remove(o);else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,ts(s!==void 0?s:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const _x=new WeakMap,WE=Object.keys(ru),SV=WE.length,Dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kV=N0.length;class CV{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:a},i={}){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=()=>Xe.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=cp(r),this.isVariantNode=EP(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];s[d]!==void 0&&dr(f)&&(f.set(s[d],!1),Gd(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,_x.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)),UE.current||wV(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_x.delete(this.current),this.projection&&this.projection.unmount(),Jn(this.notifyUpdate),Jn(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=ja.has(t),o=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Xe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,a){let i,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:a,layoutScroll:f,layoutRoot:p})}return s}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):pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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=ts(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=W0(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!dr(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new J0),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class YE extends CV{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},{transformValues:o},a){let i=V6(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),i&&(i=o(i))),a){B6(this,n,i);const s=bV(this,n,i,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function TV(e){return window.getComputedStyle(e)}class PV extends YE{readValueFromInstance(t,r){if(ja.has(r)){const n=K0(r);return n&&n.default||0}else{const n=TV(t),o=(OP(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return RE(t,r)}build(t,r,n,o){L0(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return U0(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){$P(t,r,n,o)}}class EV extends YE{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ja.has(r)){const n=K0(r);return n&&n.default||0}return r=LP.has(r)?r:V0(r),t.getAttribute(r)}measureInstanceViewportBox(){return pt()}scrapeMotionValuesFromProps(t,r){return BP(t,r)}build(t,r,n,o){B0(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){jP(t,r,n,o)}mount(t){this.isSVGTag=z0(t.tagName),super.mount(t)}}const _V=(e,t)=>$0(e)?new EV(t,{enableHardwareAcceleration:!1}):new PV(t,{enableHardwareAcceleration:!0}),DV={layout:{ProjectionNode:zE,MeasureLayout:AE}},MV={...r8,...Sz,...sV,...DV},qo=OB((e,t)=>iz(e,t,MV,_V));function HE(){const e=g.useRef(!1);return Ud(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function OV(){const e=HE(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>Xe.postRender(n),[n]),t]}class RV extends g.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 IV({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:a,height:i,top:s,left:l}=o.current;if(t||!n.current||!a||!i)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: ${a}px !important;
height: ${i}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),g.createElement(RV,{isPresent:t,childRef:n,sizeRef:o},g.cloneElement(e,{ref:n}))}const Yh=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:i})=>{const s=zP(AV),l=g.useId(),u=g.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[r]);return g.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),g.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),i==="popLayout"&&(e=g.createElement(IV,{isPresent:r},e)),g.createElement(Pu.Provider,{value:u},e)};function AV(){return new Map}function NV(e){return g.useEffect(()=>()=>e(),[])}const ri=e=>e.key||"";function FV(e,t){e.forEach(r=>{const n=ri(r);t.set(n,r)})}function $V(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const ws=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:i="sync"})=>{const s=g.useContext(F0).forceRender||OV()[0],l=HE(),u=$V(e);let c=u;const d=g.useRef(new Map).current,f=g.useRef(c),p=g.useRef(new Map).current,h=g.useRef(!0);if(Ud(()=>{h.current=!1,FV(u,p),f.current=c}),NV(()=>{h.current=!0,p.clear(),d.clear()}),h.current)return g.createElement(g.Fragment,null,c.map(m=>g.createElement(Yh,{key:ri(m),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:i},m)));c=[...c];const v=f.current.map(ri),w=u.map(ri),y=v.length;for(let m=0;m{if(w.indexOf(b)!==-1)return;const S=p.get(b);if(!S)return;const E=v.indexOf(b);let T=m;if(!T){const C=()=>{p.delete(b),d.delete(b);const D=f.current.findIndex(R=>R.key===b);if(f.current.splice(D,1),!d.size){if(f.current=u,l.current===!1)return;s(),n&&n()}};T=g.createElement(Yh,{key:ri(S),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:a,mode:i},S),d.set(b,T)}c.splice(E,0,T)}),c=c.map(m=>{const b=m.key;return d.has(b)?m:g.createElement(Yh,{key:ri(m),isPresent:!0,presenceAffectsLayout:a,mode:i},m)}),g.createElement(g.Fragment,null,d.size?c:c.map(m=>g.cloneElement(m)))};var LV={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]}}},QE=g.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:a=!1,position:i="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=LV,toastSpacing:c="0.5rem"}=e,[d,f]=g.useState(s),p=C8();es(()=>{p||n?.()},[p]),es(()=>{f(s)},[s]);const h=()=>f(null),v=()=>f(s),w=()=>{p&&o()};g.useEffect(()=>{p&&a&&o()},[p,a,o]),SB(w,d);const y=g.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),m=g.useMemo(()=>wB(i),[i]);return x.jsx(qo.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:h,onHoverEnd:v,custom:{position:i},style:m,children:x.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:jn(r,{id:t,onClose:w})})})});QE.displayName="ToastComponent";var Mx={path:x.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[x.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"}),x.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"}),x.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},za=me((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...u}=e,c=we("chakra-icon",s),d=bs("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:a,className:c,__css:f},h=n??Mx.viewBox;if(r&&typeof r!="string")return x.jsx(ue.svg,{as:r,...p,...u});const v=i??Mx.path;return x.jsx(ue.svg,{verticalAlign:"middle",viewBox:h,...p,...u,children:v})});za.displayName="Icon";function Qr(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,a=g.Children.toArray(e.path),i=me((s,l)=>x.jsx(za,{ref:l,viewBox:t,...o,...s,children:a.length?a:x.jsx("path",{fill:"currentColor",d:r})}));return i.displayName=n,i}function jV(e){return x.jsx(za,{viewBox:"0 0 24 24",...e,children:x.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 BV(e){return x.jsx(za,{viewBox:"0 0 24 24",...e,children:x.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 Ox(e){return x.jsx(za,{viewBox:"0 0 24 24",...e,children:x.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 zV=rp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ey=me((e,t)=>{const r=bs("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=sn(e),u=we("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${zV} ${a} linear infinite`,...r};return x.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:n&&x.jsx(ue.span,{srOnly:!0,children:n})})});ey.displayName="Spinner";var[VV,ty]=Nt({name:"AlertContext",hookName:"useAlertContext",providerName:" "}),[UV,ry]=Nt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:" "}),qE={info:{icon:BV,colorScheme:"blue"},warning:{icon:Ox,colorScheme:"orange"},success:{icon:jV,colorScheme:"green"},error:{icon:Ox,colorScheme:"red"},loading:{icon:ey,colorScheme:"blue"}};function WV(e){return qE[e].colorScheme}function YV(e){return qE[e].icon}var KE=me(function(t,r){const n=ry(),{status:o}=ty(),a={display:"inline",...n.description};return x.jsx(ue.div,{ref:r,"data-status":o,...t,className:we("chakra-alert__desc",t.className),__css:a})});KE.displayName="AlertDescription";function GE(e){const{status:t}=ty(),r=YV(t),n=ry(),o=t==="loading"?n.spinner:n.icon;return x.jsx(ue.span,{display:"inherit","data-status":t,...e,className:we("chakra-alert__icon",e.className),__css:o,children:e.children||x.jsx(r,{h:"100%",w:"100%"})})}GE.displayName="AlertIcon";var XE=me(function(t,r){const n=ry(),{status:o}=ty();return x.jsx(ue.div,{ref:r,"data-status":o,...t,className:we("chakra-alert__title",t.className),__css:n.title})});XE.displayName="AlertTitle";var ZE=me(function(t,r){var n;const{status:o="info",addRole:a=!0,...i}=sn(t),s=(n=t.colorScheme)!=null?n:WV(o),l=La("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return x.jsx(VV,{value:{status:o},children:x.jsx(UV,{value:l,children:x.jsx(ue.div,{"data-status":o,role:a?"alert":void 0,ref:r,...i,className:we("chakra-alert",t.className),__css:u})})})});ZE.displayName="Alert";function HV(e){return x.jsx(za,{focusable:"false","aria-hidden":!0,...e,children:x.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 JE=me(function(t,r){const n=bs("CloseButton",t),{children:o,isDisabled:a,__css:i,...s}=sn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return x.jsx(ue.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...l,...n,...i},...s,children:o||x.jsx(HV,{width:"1em",height:"1em"})})});JE.displayName="CloseButton";var QV={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},xl=qV(QV);function qV(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,a)=>{n(i=>({...i,[a]:i[a].filter(s=>s.id!=o)}))},notify:(o,a)=>{const i=KV(o,a),{position:s,id:l}=i;return n(u=>{var c,d;const p=s.includes("top")?[i,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],i];return{...u,[s]:p}}),l},update:(o,a)=>{o&&n(i=>{const s={...i},{position:l,index:u}=Pw(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...a,message:XV(a)}),s})},closeAll:({positions:o}={})=>{n(a=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=a[u].map(c=>({...c,requestClose:!0})),l),{...a}))},close:o=>{n(a=>{const i=CP(a,o);return i?{...a,[i]:a[i].map(s=>s.id==o?{...s,requestClose:!0}:s)}:a})},isActive:o=>!!Pw(xl.getState(),o).position}}var Rx=0;function KV(e,t={}){var r,n;Rx+=1;const o=(r=t.id)!=null?r:Rx,a=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>xl.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var GV=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:a,onClose:i,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return x.jsxs(ZE,{addRole:!1,status:t,variant:r,id:c?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[x.jsx(GE,{children:u}),x.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&x.jsx(XE,{id:c?.title,children:o}),s&&x.jsx(KE,{id:c?.description,display:"block",children:s})]}),a&&x.jsx(JE,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function XV(e={}){const{render:t,toastComponent:r=GV}=e;return o=>typeof t=="function"?t({...o,...e}):x.jsx(r,{...o,...e})}var[ZV,zX]=Nt({name:"ToastOptionsContext",strict:!1}),JV=e=>{const t=g.useSyncExternalStore(xl.subscribe,xl.getState,xl.getState),{motionVariants:r,component:n=QE,portalProps:o}=e,i=Object.keys(t).map(s=>{const l=t[s];return x.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:xB(s),children:x.jsx(ws,{initial:!1,children:l.map(u=>x.jsx(n,{motionVariants:r,...u},u.id))})},s)});return x.jsx(ku,{...o,children:i})},e9=e=>function({children:r,theme:n=e,toastOptions:o,...a}){return x.jsxs(yB,{theme:n,...a,children:[x.jsx(ZV,{value:o?.defaultOptions,children:r}),x.jsx(JV,{...o})]})},t9=e9(hP),r9=Object.defineProperty,n9=(e,t,r)=>t in e?r9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,at=(e,t,r)=>(n9(e,typeof t!="symbol"?t+"":t,r),r);function Ix(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var o9=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Ax(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Nx(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var $v=typeof window<"u"?g.useLayoutEffect:g.useEffect,Zd=e=>e,a9=class{constructor(){at(this,"descendants",new Map),at(this,"register",e=>{if(e!=null)return o9(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),at(this,"unregister",e=>{this.descendants.delete(e);const t=Ix(Array.from(this.descendants.keys()));this.assignIndex(t)}),at(this,"destroy",()=>{this.descendants.clear()}),at(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),at(this,"count",()=>this.descendants.size),at(this,"enabledCount",()=>this.enabledValues().length),at(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),at(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),at(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),at(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),at(this,"first",()=>this.item(0)),at(this,"firstEnabled",()=>this.enabledItem(0)),at(this,"last",()=>this.item(this.descendants.size-1)),at(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),at(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),at(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),at(this,"next",(e,t=!0)=>{const r=Ax(e,this.count(),t);return this.item(r)}),at(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Ax(n,this.enabledCount(),t);return this.enabledItem(o)}),at(this,"prev",(e,t=!0)=>{const r=Nx(e,this.count()-1,t);return this.item(r)}),at(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Nx(n,this.enabledCount()-1,t);return this.enabledItem(o)}),at(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=Ix(r);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(n)})}};function i9(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 Zt(...e){return t=>{e.forEach(r=>{i9(r,t)})}}function s9(...e){return g.useMemo(()=>Zt(...e),e)}function l9(){const e=g.useRef(new a9);return $v(()=>()=>e.current.destroy()),e.current}var[u9,e_]=Nt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function c9(e){const t=e_(),[r,n]=g.useState(-1),o=g.useRef(null);$v(()=>()=>{o.current&&t.unregister(o.current)},[]),$v(()=>{if(!o.current)return;const i=Number(o.current.dataset.index);r!=i&&!Number.isNaN(i)&&n(i)});const a=Zd(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Zt(a,o)}}function t_(){return[Zd(u9),()=>Zd(e_()),()=>l9(),o=>c9(o)]}var[d9,hp]=Nt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:" "}),[f9,ny]=Nt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:" "}),[p9,VX,h9,m9]=t_(),oy=me(function(t,r){const{getButtonProps:n}=ny(),o=n(t,r),i={display:"flex",alignItems:"center",width:"100%",outline:0,...hp().button};return x.jsx(ue.button,{...o,className:we("chakra-accordion__button",t.className),__css:i})});oy.displayName="AccordionButton";function v9(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(f,p)=>f!==p}=e,a=nn(n),i=nn(o),[s,l]=g.useState(r),u=t!==void 0,c=u?t:s,d=nn(f=>{const h=typeof f=="function"?f(c):f;i(c,h)&&(u||l(h),a(h))},[u,a,c,i]);return[c,d]}function g9(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:a,...i}=e;w9(e),x9(e);const s=h9(),[l,u]=g.useState(-1);g.useEffect(()=>()=>{u(-1)},[]);const[c,d]=v9({value:n,defaultValue(){return o?r??[]:r??-1},onChange:t});return{index:c,setIndex:d,htmlProps:i,getAccordionItemProps:p=>{let h=!1;return p!==null&&(h=Array.isArray(c)?c.includes(p):c===p),{isOpen:h,onChange:w=>{if(p!==null)if(o&&Array.isArray(c)){const y=w?c.concat(p):c.filter(m=>m!==p);d(y)}else w?d(p):a&&d(-1)}}},focusedIndex:l,setFocusedIndex:u,descendants:s}}var[y9,ay]=Nt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function b9(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:a,setFocusedIndex:i}=ay(),s=g.useRef(null),l=g.useId(),u=n??l,c=`accordion-button-${u}`,d=`accordion-panel-${u}`;S9(e);const{register:f,index:p,descendants:h}=m9({disabled:t&&!r}),{isOpen:v,onChange:w}=a(p===-1?null:p);k9({isOpen:v,isDisabled:t});const y=()=>{w?.(!0)},m=()=>{w?.(!1)},b=g.useCallback(()=>{w?.(!v),i(p)},[p,i,v,w]),S=g.useCallback(D=>{const I={ArrowDown:()=>{const L=h.nextEnabled(p);L?.node.focus()},ArrowUp:()=>{const L=h.prevEnabled(p);L?.node.focus()},Home:()=>{const L=h.firstEnabled();L?.node.focus()},End:()=>{const L=h.lastEnabled();L?.node.focus()}}[D.key];I&&(D.preventDefault(),I(D))},[h,p]),E=g.useCallback(()=>{i(p)},[i,p]),T=g.useCallback(function(R={},I=null){return{...R,type:"button",ref:Zt(f,s,I),id:c,disabled:!!t,"aria-expanded":!!v,"aria-controls":d,onClick:Je(R.onClick,b),onFocus:Je(R.onFocus,E),onKeyDown:Je(R.onKeyDown,S)}},[c,t,v,b,E,S,d,f]),C=g.useCallback(function(R={},I=null){return{...R,ref:I,role:"region",id:d,"aria-labelledby":c,hidden:!v}},[c,v,d]);return{isOpen:v,isDisabled:t,isFocusable:r,onOpen:y,onClose:m,getButtonProps:T,getPanelProps:C,htmlProps:o}}function w9(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;Cu({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function x9(e){Cu({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function S9(e){Cu({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
`})}function k9(e){Cu({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function iy(e){const{isOpen:t,isDisabled:r}=ny(),{reduceMotion:n}=ay(),o=we("chakra-accordion__icon",e.className),a=hp(),i={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return x.jsx(za,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:i,...e,children:x.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}iy.displayName="AccordionIcon";var sy=me(function(t,r){const{children:n,className:o}=t,{htmlProps:a,...i}=b9(t),l={...hp().container,overflowAnchor:"none"},u=g.useMemo(()=>i,[i]);return x.jsx(f9,{value:u,children:x.jsx(ue.div,{ref:r,...a,className:we("chakra-accordion__item",o),__css:l,children:typeof n=="function"?n({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):n})})});sy.displayName="AccordionItem";var Ti={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Sa={enter:{duration:.2,ease:Ti.easeOut},exit:{duration:.1,ease:Ti.easeIn}},Qn={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},C9=e=>e!=null&&parseInt(e.toString(),10)>0,Fx={exit:{height:{duration:.2,ease:Ti.ease},opacity:{duration:.3,ease:Ti.ease}},enter:{height:{duration:.3,ease:Ti.ease},opacity:{duration:.4,ease:Ti.ease}}},T9={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:C9(t)?1:0},height:t,transitionEnd:n?.exit,transition:(a=r?.exit)!=null?a:Qn.exit(Fx.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:n?.enter,transition:(a=r?.enter)!=null?a:Qn.enter(Fx.enter,o)}}},r_=g.forwardRef((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:u,transitionEnd:c,...d}=e,[f,p]=g.useState(!1);g.useEffect(()=>{const m=setTimeout(()=>{p(!0)});return()=>clearTimeout(m)},[]),Cu({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const h=parseFloat(a.toString())>0,v={startingHeight:a,endingHeight:i,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:c?.enter,exit:n?c?.exit:{...c?.exit,display:h?"block":"none"}}},w=n?r:!0,y=r||n?"enter":"exit";return x.jsx(ws,{initial:!1,custom:v,children:w&&x.jsx(qo.div,{ref:t,...d,className:we("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:v,variants:T9,initial:n?"exit":!1,animate:y,exit:"exit"})})});r_.displayName="Collapse";var P9={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e?.enter)!=null?n:Qn.enter(Sa.enter,r),transitionEnd:t?.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e?.exit)!=null?n:Qn.exit(Sa.exit,r),transitionEnd:t?.exit}}},n_={initial:"exit",animate:"enter",exit:"exit",variants:P9},E9=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:a,transition:i,transitionEnd:s,delay:l,...u}=t,c=o||n?"enter":"exit",d=n?o&&n:!0,f={transition:i,transitionEnd:s,delay:l};return x.jsx(ws,{custom:f,children:d&&x.jsx(qo.div,{ref:r,className:we("chakra-fade",a),custom:f,...n_,animate:c,...u})})});E9.displayName="Fade";var _9={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:n?.exit}:{transitionEnd:{scale:t,...n?.exit}},transition:(a=r?.exit)!=null?a:Qn.exit(Sa.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t?.enter)!=null?n:Qn.enter(Sa.enter,r),transitionEnd:e?.enter}}},o_={initial:"exit",animate:"enter",exit:"exit",variants:_9},D9=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,initialScale:i=.95,className:s,transition:l,transitionEnd:u,delay:c,...d}=t,f=n?o&&n:!0,p=o||n?"enter":"exit",h={initialScale:i,reverse:a,transition:l,transitionEnd:u,delay:c};return x.jsx(ws,{custom:h,children:f&&x.jsx(qo.div,{ref:r,className:we("chakra-offset-slide",s),...o_,animate:p,custom:h,...d})})});D9.displayName="ScaleFade";var M9={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:(a=r?.exit)!=null?a:Qn.exit(Sa.exit,o),transitionEnd:n?.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e?.enter)!=null?n:Qn.enter(Sa.enter,r),transitionEnd:t?.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:a})=>{var i;const s={x:t,y:e};return{opacity:0,transition:(i=r?.exit)!=null?i:Qn.exit(Sa.exit,a),...o?{...s,transitionEnd:n?.exit}:{transitionEnd:{...s,...n?.exit}}}}},Lv={initial:"initial",animate:"enter",exit:"exit",variants:M9},O9=g.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,className:i,offsetX:s=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,p=n?o&&n:!0,h=o||n?"enter":"exit",v={offsetX:s,offsetY:l,reverse:a,transition:u,transitionEnd:c,delay:d};return x.jsx(ws,{custom:v,children:p&&x.jsx(qo.div,{ref:r,className:we("chakra-offset-slide",i),custom:v,...Lv,animate:h,...f})})});O9.displayName="SlideFade";var ly=me(function(t,r){const{className:n,motionProps:o,...a}=t,{reduceMotion:i}=ay(),{getPanelProps:s,isOpen:l}=ny(),u=s(a,r),c=we("chakra-accordion__panel",n),d=hp();i||delete u.hidden;const f=x.jsx(ue.div,{...u,__css:d.panel,className:c});return i?f:x.jsx(r_,{in:l,...o,children:f})});ly.displayName="AccordionPanel";var uy=me(function({children:t,reduceMotion:r,...n},o){const a=La("Accordion",n),i=sn(n),{htmlProps:s,descendants:l,...u}=g9(i),c=g.useMemo(()=>({...u,reduceMotion:!!r}),[u,r]);return x.jsx(p9,{value:l,children:x.jsx(y9,{value:c,children:x.jsx(d9,{value:a,children:x.jsx(ue.div,{ref:o,...s,className:we("chakra-accordion",n.className),__css:a.root,children:t})})})})});uy.displayName="Accordion";function R9(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}var[UX,I9]=Nt({strict:!1,name:"ButtonGroupContext"});function A9(e){const[t,r]=g.useState(!e);return{ref:g.useCallback(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function jv(e){const{children:t,className:r,...n}=e,o=g.isValidElement(t)?g.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=we("chakra-button__icon",r);return x.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:o})}jv.displayName="ButtonIcon";function Bv(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=x.jsx(ey,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=we("chakra-button__spinner",a),u=r==="start"?"marginEnd":"marginStart",c=g.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,u,n]);return x.jsx(ue.div,{className:l,...s,__css:c,children:o})}Bv.displayName="ButtonSpinner";var At=me((e,t)=>{const r=I9(),n=bs("Button",{...r,...e}),{isDisabled:o=r?.isDisabled,isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:h="start",className:v,as:w,...y}=sn(e),m=g.useMemo(()=>{const T={...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:T}}},[n,r]),{ref:b,type:S}=A9(w),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return x.jsxs(ue.button,{ref:s9(t,b),as:w,type:f??S,"data-active":Ee(i),"data-loading":Ee(a),__css:m,className:we("chakra-button",v),...y,disabled:o||a,children:[a&&h==="start"&&x.jsx(Bv,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),a?c||x.jsx(ue.span,{opacity:0,children:x.jsx($x,{...E})}):x.jsx($x,{...E}),a&&h==="end"&&x.jsx(Bv,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});At.displayName="Button";function $x(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return x.jsxs(x.Fragment,{children:[t&&x.jsx(jv,{marginEnd:o,children:t}),n,r&&x.jsx(jv,{marginStart:o,children:r})]})}var a_=me((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":a,...i}=e,s=r||n,l=g.isValidElement(s)?g.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return x.jsx(At,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i,children:l})});a_.displayName="IconButton";var[WX,N9]=Nt({name:"CheckboxGroupContext",strict:!1});function F9(e){const[t,r]=g.useState(e),[n,o]=g.useState(!1);return e!==t&&(o(!0),r(e)),n}function $9(e){return x.jsx(ue.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:x.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function L9(e){return x.jsx(ue.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:x.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function j9(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?L9:$9;return r||t?x.jsx(ue.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:x.jsx(o,{...n})}):null}var[B9,z9]=Nt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in " " `}),[V9,i_]=Nt({strict:!1,name:"FormControlContext"});function U9(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...i}=e,s=g.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=g.useState(!1),[h,v]=g.useState(!1),[w,y]=g.useState(!1),m=g.useCallback((C={},D=null)=>({id:d,...C,ref:Zt(D,R=>{R&&v(!0)})}),[d]),b=g.useCallback((C={},D=null)=>({...C,ref:D,"data-focus":Ee(w),"data-disabled":Ee(o),"data-invalid":Ee(n),"data-readonly":Ee(a),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,w,n,a,u]),S=g.useCallback((C={},D=null)=>({id:c,...C,ref:Zt(D,R=>{R&&p(!0)}),"aria-live":"polite"}),[c]),E=g.useCallback((C={},D=null)=>({...C,...i,ref:D,role:"group"}),[i]),T=g.useCallback((C={},D=null)=>({...C,ref:D,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!w,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:h,setHasHelpText:v,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:i,getHelpTextProps:m,getErrorMessageProps:S,getRootProps:E,getLabelProps:b,getRequiredIndicatorProps:T}}var W9=me(function(t,r){const n=La("Form",t),o=sn(t),{getRootProps:a,htmlProps:i,...s}=U9(o),l=we("chakra-form-control",t.className);return x.jsx(V9,{value:s,children:x.jsx(B9,{value:n,children:x.jsx(ue.div,{...a({},r),className:l,__css:n.container})})})});W9.displayName="FormControl";var Y9=me(function(t,r){const n=i_(),o=z9(),a=we("chakra-form__helper-text",t.className);return x.jsx(ue.div,{...n?.getHelpTextProps(t,r),__css:o.helperText,className:a})});Y9.displayName="FormHelperText";function H9(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...a}=s_(e);return{...a,disabled:t,readOnly:n,required:o,"aria-invalid":hh(r),"aria-required":hh(o),"aria-readonly":hh(n)}}function s_(e){var t,r,n;const o=i_(),{id:a,disabled:i,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:h,...v}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o?.hasFeedbackText&&o?.isInvalid&&w.push(o.feedbackId),o?.hasHelpText&&w.push(o.helpTextId),{...v,"aria-describedby":w.join(" ")||void 0,id:a??o?.id,isDisabled:(t=i??f)!=null?t:o?.isDisabled,isReadOnly:(r=s??d)!=null?r:o?.isReadOnly,isRequired:(n=l??u)!=null?n:o?.isRequired,isInvalid:c??o?.isInvalid,onFocus:Je(o?.onFocus,p),onBlur:Je(o?.onBlur,h)}}var Q9={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};const q9=()=>typeof document<"u";let Lx=!1,Ou=null,Oa=!1,zv=!1;const Vv=new Set;function cy(e,t){Vv.forEach(r=>r(e,t))}const K9=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function G9(e){return!(e.metaKey||!K9&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function jx(e){Oa=!0,G9(e)&&(Ou="keyboard",cy("keyboard",e))}function qa(e){if(Ou="pointer",e.type==="mousedown"||e.type==="pointerdown"){Oa=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;cy("pointer",e)}}function X9(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Z9(e){X9(e)&&(Oa=!0,Ou="virtual")}function J9(e){e.target===window||e.target===document||(!Oa&&!zv&&(Ou="virtual",cy("virtual",e)),Oa=!1,zv=!1)}function eU(){Oa=!1,zv=!0}function Bx(){return Ou!=="pointer"}function tU(){if(!q9()||Lx)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Oa=!0,e.apply(this,r)},document.addEventListener("keydown",jx,!0),document.addEventListener("keyup",jx,!0),document.addEventListener("click",Z9,!0),window.addEventListener("focus",J9,!0),window.addEventListener("blur",eU,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",qa,!0),document.addEventListener("pointermove",qa,!0),document.addEventListener("pointerup",qa,!0)):(document.addEventListener("mousedown",qa,!0),document.addEventListener("mousemove",qa,!0),document.addEventListener("mouseup",qa,!0)),Lx=!0}function rU(e){tU(),e(Bx());const t=()=>e(Bx());return Vv.add(t),()=>{Vv.delete(t)}}function nU(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function oU(e={}){const t=s_(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:h,name:v,value:w,tabIndex:y=void 0,"aria-label":m,"aria-labelledby":b,"aria-invalid":S,...E}=e,T=nU(E,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=nn(p),D=nn(s),R=nn(l),[I,L]=g.useState(!1),[te,X]=g.useState(!1),[re,H]=g.useState(!1),[Z,$]=g.useState(!1);g.useEffect(()=>rU(L),[]);const j=g.useRef(null),[U,ee]=g.useState(!0),[G,ie]=g.useState(!!c),Q=d!==void 0,J=Q?d:G,ve=g.useCallback(de=>{if(n||r){de.preventDefault();return}Q||ie(J?de.target.checked:h?!0:de.target.checked),C?.(de)},[n,r,J,Q,h,C]);ya(()=>{j.current&&(j.current.indeterminate=!!h)},[h]),es(()=>{r&&X(!1)},[r,X]),ya(()=>{const de=j.current;if(!de?.form)return;const _t=()=>{ie(!!c)};return de.form.addEventListener("reset",_t),()=>{var Ut;return(Ut=de.form)==null?void 0:Ut.removeEventListener("reset",_t)}},[]);const pe=r&&!f,ye=g.useCallback(de=>{de.key===" "&&$(!0)},[$]),se=g.useCallback(de=>{de.key===" "&&$(!1)},[$]);ya(()=>{if(!j.current)return;j.current.checked!==J&&ie(j.current.checked)},[j.current]);const ce=g.useCallback((de={},_t=null)=>{const Ut=oo=>{te&&oo.preventDefault(),$(!0)};return{...de,ref:_t,"data-active":Ee(Z),"data-hover":Ee(re),"data-checked":Ee(J),"data-focus":Ee(te),"data-focus-visible":Ee(te&&I),"data-indeterminate":Ee(h),"data-disabled":Ee(r),"data-invalid":Ee(a),"data-readonly":Ee(n),"aria-hidden":!0,onMouseDown:Je(de.onMouseDown,Ut),onMouseUp:Je(de.onMouseUp,()=>$(!1)),onMouseEnter:Je(de.onMouseEnter,()=>H(!0)),onMouseLeave:Je(de.onMouseLeave,()=>H(!1))}},[Z,J,r,te,I,re,h,a,n]),De=g.useCallback((de={},_t=null)=>({...de,ref:_t,"data-active":Ee(Z),"data-hover":Ee(re),"data-checked":Ee(J),"data-focus":Ee(te),"data-focus-visible":Ee(te&&I),"data-indeterminate":Ee(h),"data-disabled":Ee(r),"data-invalid":Ee(a),"data-readonly":Ee(n)}),[Z,J,r,te,I,re,h,a,n]),Ze=g.useCallback((de={},_t=null)=>({...T,...de,ref:Zt(_t,Ut=>{Ut&&ee(Ut.tagName==="LABEL")}),onClick:Je(de.onClick,()=>{var Ut;U||((Ut=j.current)==null||Ut.click(),requestAnimationFrame(()=>{var oo;(oo=j.current)==null||oo.focus({preventScroll:!0})}))}),"data-disabled":Ee(r),"data-checked":Ee(J),"data-invalid":Ee(a)}),[T,r,J,a,U]),tr=g.useCallback((de={},_t=null)=>({...de,ref:Zt(j,_t),type:"checkbox",name:v,value:w,id:i,tabIndex:y,onChange:Je(de.onChange,ve),onBlur:Je(de.onBlur,D,()=>X(!1)),onFocus:Je(de.onFocus,R,()=>X(!0)),onKeyDown:Je(de.onKeyDown,ye),onKeyUp:Je(de.onKeyUp,se),required:o,checked:J,disabled:pe,readOnly:n,"aria-label":m,"aria-labelledby":b,"aria-invalid":S?!!S:a,"aria-describedby":u,"aria-disabled":r,style:Q9}),[v,w,i,ve,D,R,ye,se,o,J,pe,n,m,b,S,a,u,r,y]),Er=g.useCallback((de={},_t=null)=>({...de,ref:_t,onMouseDown:Je(de.onMouseDown,aU),"data-disabled":Ee(r),"data-checked":Ee(J),"data-invalid":Ee(a)}),[J,r,a]);return{state:{isInvalid:a,isFocused:te,isChecked:J,isActive:Z,isHovered:re,isIndeterminate:h,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ze,getCheckboxProps:ce,getIndicatorProps:De,getInputProps:tr,getLabelProps:Er,htmlProps:T}}function aU(e){e.preventDefault(),e.stopPropagation()}var iU={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},sU={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},lU=rp({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),uU=rp({from:{opacity:0},to:{opacity:1}}),cU=rp({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Uv=me(function(t,r){const n=N9(),o={...n,...t},a=La("Checkbox",o),i=sn(t),{spacing:s="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:f=x.jsx(j9,{}),isChecked:p,isDisabled:h=n?.isDisabled,onChange:v,inputProps:w,...y}=i;let m=p;n?.value&&i.value&&(m=n.value.includes(i.value));let b=v;n?.onChange&&i.value&&(b=QT(n.onChange,v));const{state:S,getInputProps:E,getCheckboxProps:T,getLabelProps:C,getRootProps:D}=oU({...y,isDisabled:h,isChecked:m,onChange:b}),R=F9(S.isChecked),I=g.useMemo(()=>({animation:R?S.isIndeterminate?`${uU} 20ms linear, ${cU} 200ms linear`:`${lU} 200ms linear`:void 0,fontSize:d,color:c,...a.icon}),[c,d,R,S.isIndeterminate,a.icon]),L=g.cloneElement(f,{__css:I,isIndeterminate:S.isIndeterminate,isChecked:S.isChecked});return x.jsxs(ue.label,{__css:{...sU,...a.container},className:we("chakra-checkbox",l),...D(),children:[x.jsx("input",{className:"chakra-checkbox__input",...E(w,r)}),x.jsx(ue.span,{__css:{...iU,...a.control},className:"chakra-checkbox__control",...T(),children:L}),u&&x.jsx(ue.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:s,...a.label},children:u})]})});Uv.displayName="Checkbox";function dU(e,t,r,n){const o=nn(r);return g.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const a=typeof e=="function"?e():e??document;a?.removeEventListener(t,o,n)}}function fU(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Wv="data-focus-lock",l_="data-focus-lock-disabled",pU="data-no-focus-lock",hU="data-autofocus-inside",mU="data-no-autofocus";function vU(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gU(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function u_(e,t){return gU(t||null,function(r){return e.forEach(function(n){return vU(n,r)})})}var Hh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},gn=function(){return gn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0}).sort(IU)},AU=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],hy=AU.join(","),NU="".concat(hy,", [data-focus-guard]"),__=function(e,t){return _n((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?NU:hy)?[n]:[],__(n))},[])},FU=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?mp([e.contentDocument.body],t):[e]},mp=function(e,t){return e.reduce(function(r,n){var o,a=__(n,t),i=(o=[]).concat.apply(o,a.map(function(s){return FU(s,t)}));return r.concat(i,n.parentNode?_n(n.parentNode.querySelectorAll(hy)).filter(function(s){return s===n}):[])},[])},$U=function(e){var t=e.querySelectorAll("[".concat(hU,"]"));return _n(t).map(function(r){return mp([r])}).reduce(function(r,n){return r.concat(n)},[])},my=function(e,t){return _n(e).filter(function(r){return S_(t,r)}).filter(function(r){return MU(r)})},zx=function(e,t){return t===void 0&&(t=new Map),_n(e).filter(function(r){return k_(t,r)})},Yv=function(e,t,r){return E_(my(mp(e,r),t),!0,r)},Vx=function(e,t){return E_(my(mp(e),t),!1)},LU=function(e,t){return my($U(e),t)},zi=function(e,t){return e.shadowRoot?zi(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:_n(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?zi(o,t):!1}return zi(r,t)})},jU=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,s){return!t.has(s)})},D_=function(e){return e.parentNode?D_(e.parentNode):e},vy=function(e){var t=ef(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Wv);return r.push.apply(r,o?jU(_n(D_(n).querySelectorAll("[".concat(Wv,'="').concat(o,'"]:not([').concat(l_,'="disabled"])')))):[n]),r},[])},BU=function(e){try{return e()}catch{return}},ou=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ou(t.shadowRoot):t instanceof HTMLIFrameElement&&BU(function(){return t.contentWindow.document})?ou(t.contentWindow.document):t}},zU=function(e,t){return e===t},VU=function(e,t){return!!_n(e.querySelectorAll("iframe")).some(function(r){return zU(r,t)})},M_=function(e,t){return t===void 0&&(t=ou(b_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:vy(e).some(function(r){return zi(r,t)||VU(r,t)})},UU=function(e){e===void 0&&(e=document);var t=ou(e);return t?_n(e.querySelectorAll("[".concat(pU,"]"))).some(function(r){return zi(r,t)}):!1},WU=function(e,t){return t.filter(P_).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},gy=function(e,t){return P_(e)&&e.name?WU(e,t):e},YU=function(e){var t=new Set;return e.forEach(function(r){return t.add(gy(r,e))}),e.filter(function(r){return t.has(r)})},Ux=function(e){return e[0]&&e.length>1?gy(e[0],e):e[0]},Wx=function(e,t){return e.length>1?e.indexOf(gy(e[t],e)):t},O_="NEW_FOCUS",HU=function(e,t,r,n){var o=e.length,a=e[0],i=e[o-1],s=py(r);if(!(r&&e.indexOf(r)>=0)){var l=r!==void 0?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,f=t.indexOf(a),p=t.indexOf(i),h=YU(t),v=r!==void 0?h.indexOf(r):-1,w=v-(n?h.indexOf(n):l),y=Wx(e,0),m=Wx(e,o-1);if(l===-1||c===-1)return O_;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return m;if(l>=p&&s&&Math.abs(d)>1)return y;if(d&&Math.abs(w)>1)return c;if(l<=f)return m;if(l>p)return y;if(d)return Math.abs(d)>1?c:(o+c+d)%o}},QU=function(e){return function(t){var r,n=(r=C_(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},qU=function(e,t,r){var n=e.map(function(a){var i=a.node;return i}),o=zx(n.filter(QU(r)));return o&&o.length?Ux(o):Ux(zx(t))},Hv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Hv(e.parentNode.host||e.parentNode,t),t},Qh=function(e,t){for(var r=Hv(e),n=Hv(t),o=0;o=0)return a}return!1},R_=function(e,t,r){var n=ef(e),o=ef(t),a=n[0],i=!1;return o.filter(Boolean).forEach(function(s){i=Qh(i||s,s)||i,r.filter(Boolean).forEach(function(l){var u=Qh(a,l);u&&(!i||zi(u,i)?i=u:i=Qh(u,i))})}),i},KU=function(e,t){return e.reduce(function(r,n){return r.concat(LU(n,t))},[])},GU=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(RU)},XU=function(e,t){var r=ou(ef(e).length>0?document:b_(e).ownerDocument),n=vy(e).filter(tf),o=R_(r||e,e,n),a=new Map,i=Vx(n,a),s=Yv(n,a).filter(function(p){var h=p.node;return tf(h)});if(!(!s[0]&&(s=i,!s[0]))){var l=Vx([o],a).map(function(p){var h=p.node;return h}),u=GU(l,s),c=u.map(function(p){var h=p.node;return h}),d=HU(c,l,r,t);if(d===O_){var f=qU(i,c,KU(n,a));if(f)return{node:f};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},ZU=function(e){var t=vy(e).filter(tf),r=R_(e,e,t),n=new Map,o=Yv([r],n,!0),a=Yv(t,n).filter(function(i){var s=i.node;return tf(s)}).map(function(i){var s=i.node;return s});return o.map(function(i){var s=i.node,l=i.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:py(s)}})},JU=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},qh=0,Kh=!1,I_=function(e,t,r){r===void 0&&(r={});var n=XU(e,t);if(!Kh&&n){if(qh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Kh=!0,setTimeout(function(){Kh=!1},1);return}qh++,JU(n.node,r.focusOptions),qh--}};function yy(e){setTimeout(e,1)}var eW=function(){return document&&document.activeElement===document.body},tW=function(){return eW()||UU()},Vi=null,Pi=null,Ui=null,au=!1,rW=function(){return!0},nW=function(t){return(Vi.whiteList||rW)(t)},oW=function(t,r){Ui={observerNode:t,portaledElement:r}},aW=function(t){return Ui&&Ui.portaledElement===t};function Yx(e,t,r,n){var o=null,a=e;do{var i=n[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=r)!==t);o&&(o.node.tabIndex=0)}var iW=function(t){return t&&"current"in t?t.current:t},sW=function(t){return t?!!au:au==="meanwhile"},lW=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},uW=function(t,r){return r.some(function(n){return lW(t,n,n)})},rf=function(){var t=!1;if(Vi){var r=Vi,n=r.observed,o=r.persistentFocus,a=r.autoFocus,i=r.shards,s=r.crossFrame,l=r.focusOptions,u=n||Ui&&Ui.portaledElement,c=document&&document.activeElement;if(u){var d=[u].concat(i.map(iW).filter(Boolean));if((!c||nW(c))&&(o||sW(s)||!tW()||!Pi&&a)&&(u&&!(M_(d)||c&&uW(c,d)||aW(c))&&(document&&!Pi&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=I_(d,Pi,{focusOptions:l}),Ui={})),au=!1,Pi=document&&document.activeElement),document){var f=document&&document.activeElement,p=ZU(d),h=p.map(function(v){var w=v.node;return w}).indexOf(f);h>-1&&(p.filter(function(v){var w=v.guard,y=v.node;return w&&y.dataset.focusAutoGuard}).forEach(function(v){var w=v.node;return w.removeAttribute("tabIndex")}),Yx(h,p.length,1,p),Yx(h,-1,-1,p))}}}return t},A_=function(t){rf()&&t&&(t.stopPropagation(),t.preventDefault())},by=function(){return yy(rf)},cW=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||oW(n,r)},dW=function(){return null},N_=function(){au="just",yy(function(){au="meanwhile"})},fW=function(){document.addEventListener("focusin",A_),document.addEventListener("focusout",by),window.addEventListener("blur",N_)},pW=function(){document.removeEventListener("focusin",A_),document.removeEventListener("focusout",by),window.removeEventListener("blur",N_)};function hW(e){return e.filter(function(t){var r=t.disabled;return!r})}function mW(e){var t=e.slice(-1)[0];t&&!Vi&&fW();var r=Vi,n=r&&t&&t.id===r.id;Vi=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var a=o.id;return a===r.id}).length||r.returnFocus(!t)),t?(Pi=null,(!n||r.observed!==t.observed)&&t.onActivation(),rf(),yy(rf)):(pW(),Pi=null)}m_.assignSyncMedium(cW);v_.assignMedium(by);wU.assignMedium(function(e){return e({moveFocusInside:I_,focusInside:M_})});const vW=TU(hW,mW)(dW);var F_=g.forwardRef(function(t,r){return g.createElement(g_,Ma({sideCar:vW,ref:r},t))}),$_=g_.propTypes||{};$_.sideCar;fU($_,["sideCar"]);F_.propTypes={};const Hx=F_;function L_(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function j_(e){var t;if(!L_(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function gW(e){var t,r;return(r=(t=B_(e))==null?void 0:t.defaultView)!=null?r:window}function B_(e){return L_(e)?e.ownerDocument:document}function yW(e){return B_(e).activeElement}var z_=e=>e.hasAttribute("tabindex"),bW=e=>z_(e)&&e.tabIndex===-1;function wW(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function V_(e){return e.parentElement&&V_(e.parentElement)?!0:e.hidden}function xW(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function U_(e){if(!j_(e)||V_(e)||wW(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():xW(e)?!0:z_(e)}function SW(e){return e?j_(e)&&U_(e)&&!bW(e):!1}var kW=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],CW=kW.join(),TW=e=>e.offsetWidth>0&&e.offsetHeight>0;function PW(e){const t=Array.from(e.querySelectorAll(CW));return t.unshift(e),t.filter(r=>U_(r)&&TW(r))}var Qx,EW=(Qx=Hx.default)!=null?Qx:Hx,W_=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:a,isDisabled:i,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=g.useCallback(()=>{t?.current?t.current.focus():n?.current&&PW(n.current).length===0&&requestAnimationFrame(()=>{var h;(h=n.current)==null||h.focus()})},[t,n]),d=g.useCallback(()=>{var p;(p=r?.current)==null||p.focus()},[r]),f=o&&!r;return x.jsx(EW,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:i,onActivation:c,onDeactivation:d,returnFocus:f,children:a})};W_.displayName="FocusLock";var nf=me(function(t,r){const{htmlSize:n,...o}=t,a=La("Input",o),i=sn(o),s=H9(i),l=we("chakra-input",t.className);return x.jsx(ue.input,{size:n,...s,__css:a.field,ref:r,className:l})});nf.displayName="Input";nf.id="Input";function _W(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Br(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var eo=me(function(t,r){const n=bs("Text",t),{className:o,align:a,decoration:i,casing:s,...l}=sn(t),u=nB({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return x.jsx(ue.p,{ref:r,className:we("chakra-text",t.className),...u,...l,__css:n})});eo.displayName="Text";var Y_=e=>x.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Y_.displayName="StackItem";function DW(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":_W(r,o=>n[o])}}var wy=me((e,t)=>{const{isInline:r,direction:n,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=r?"row":n??"column",h=g.useMemo(()=>DW({spacing:i,direction:p}),[i,p]),v=!!u,w=!d&&!v,y=g.useMemo(()=>{const b=R9(l);return w?b:b.map((S,E)=>{const T=typeof S.key<"u"?S.key:E,C=E+1===b.length,R=d?x.jsx(Y_,{children:S},T):S;if(!v)return R;const I=g.cloneElement(u,{__css:h}),L=C?null:I;return x.jsxs(g.Fragment,{children:[R,L]},T)})},[u,h,v,w,d,l]),m=we("chakra-stack",c);return x.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p,flexWrap:s,gap:v?void 0:i,className:m,...f,children:y})});wy.displayName="Stack";var iu=me((e,t)=>x.jsx(wy,{align:"center",...e,direction:"column",ref:t}));iu.displayName="VStack";var Ra=me((e,t)=>x.jsx(wy,{align:"center",...e,direction:"row",ref:t}));Ra.displayName="HStack";var ne=ue("div");ne.displayName="Box";var H_=me(function(t,r){const{size:n,centerContent:o=!0,...a}=t,i=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return x.jsx(ne,{ref:r,boxSize:n,__css:{...i,flexShrink:0,flexGrow:0},...a})});H_.displayName="Square";var MW=me(function(t,r){const{size:n,...o}=t;return x.jsx(H_,{size:n,ref:r,borderRadius:"9999px",...o})});MW.displayName="Circle";var vp=me(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:a,borderRightWidth:i,borderWidth:s,borderStyle:l,borderColor:u,...c}=bs("Divider",t),{className:d,orientation:f="horizontal",__css:p,...h}=sn(t),v={vertical:{borderLeftWidth:n||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}};return x.jsx(ue.hr,{ref:r,"aria-orientation":f,...h,__css:{...c,border:"0",borderColor:u,borderStyle:l,...v[f],...p},className:we("chakra-divider",d)})});vp.displayName="Divider";var su=me(function(t,r){const{direction:n,align:o,justify:a,wrap:i,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:i,flexBasis:s,flexGrow:l,flexShrink:u};return x.jsx(ue.div,{ref:r,__css:d,...c})});su.displayName="Flex";function OW(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function RW(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=g.useState([]),a=g.useRef(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)},s=()=>{i(),a.current=setTimeout(()=>{o([]),a.current=null},t)};g.useEffect(()=>i,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...n];d.pop(),o(d);return}if(OW(c)){const d=n.concat(c.key);r(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),s()}}}return l}function IW(e,t,r,n){if(t==null)return n;if(!n)return e.find(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(a=>r(a).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let a;return o.includes(n)?(a=o.indexOf(n)+1,a===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a])}return n}function AW(){const e=g.useRef(new Map),t=e.current,r=g.useCallback((o,a,i,s)=>{e.current.set(i,{type:a,el:o,options:s}),o.addEventListener(a,i,s)},[]),n=g.useCallback((o,a,i,s)=>{o.removeEventListener(a,i,s),e.current.delete(i)},[]);return g.useEffect(()=>()=>{t.forEach((o,a)=>{n(o.el,o.type,a,o.options)})},[n,t]),{add:r,remove:n}}function Gh(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function NW(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...h}=e,[v,w]=g.useState(!0),[y,m]=g.useState(!1),b=AW(),S=$=>{$&&$.tagName!=="BUTTON"&&w(!1)},E=v?d:d||0,T=r&&!n,C=g.useCallback($=>{if(r){$.stopPropagation(),$.preventDefault();return}$.currentTarget.focus(),l?.($)},[r,l]),D=g.useCallback($=>{y&&Gh($)&&($.preventDefault(),$.stopPropagation(),m(!1),b.remove(document,"keyup",D,!1))},[y,b]),R=g.useCallback($=>{if(u?.($),r||$.defaultPrevented||$.metaKey||!Gh($.nativeEvent)||v)return;const j=o&&$.key==="Enter";a&&$.key===" "&&($.preventDefault(),m(!0)),j&&($.preventDefault(),$.currentTarget.click()),b.add(document,"keyup",D,!1)},[r,v,u,o,a,b,D]),I=g.useCallback($=>{if(c?.($),r||$.defaultPrevented||$.metaKey||!Gh($.nativeEvent)||v)return;a&&$.key===" "&&($.preventDefault(),m(!1),$.currentTarget.click())},[a,v,r,c]),L=g.useCallback($=>{$.button===0&&(m(!1),b.remove(document,"mouseup",L,!1))},[b]),te=g.useCallback($=>{if($.button!==0)return;if(r){$.stopPropagation(),$.preventDefault();return}v||m(!0),$.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",L,!1),i?.($)},[r,v,i,b,L]),X=g.useCallback($=>{$.button===0&&(v||m(!1),s?.($))},[s,v]),re=g.useCallback($=>{if(r){$.preventDefault();return}f?.($)},[r,f]),H=g.useCallback($=>{y&&($.preventDefault(),m(!1)),p?.($)},[y,p]),Z=Zt(t,S);return v?{...h,ref:Z,type:"button","aria-disabled":T?void 0:r,disabled:T,onClick:C,onMouseDown:i,onMouseUp:s,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...h,ref:Z,role:"button","data-active":Ee(y),"aria-disabled":r?"true":void 0,tabIndex:T?void 0:E,onClick:C,onMouseDown:te,onMouseUp:X,onKeyUp:I,onKeyDown:R,onMouseOver:re,onMouseLeave:H}}function FW(e){const t=e.current;if(!t)return!1;const r=yW(t);return!r||t.contains(r)?!1:!!SW(r)}function $W(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,a=r&&!n;es(()=>{if(!a||FW(e))return;const i=o?.current||e.current;let s;if(i)return s=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,o])}var Ka=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),hr={arrowShadowColor:Ka("--popper-arrow-shadow-color"),arrowSize:Ka("--popper-arrow-size","8px"),arrowSizeHalf:Ka("--popper-arrow-size-half"),arrowBg:Ka("--popper-arrow-bg"),transformOrigin:Ka("--popper-transform-origin"),arrowOffset:Ka("--popper-arrow-offset")};function LW(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var jW={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},BW=e=>jW[e],qx={scroll:!0,resize:!0};function zW(e){let t;return typeof e=="object"?t={enabled:!0,options:{...qx,...e}}:t={enabled:e,options:qx},t}var VW={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},UW={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Kx(e)},effect:({state:e})=>()=>{Kx(e)}},Kx=e=>{e.elements.popper.style.setProperty(hr.transformOrigin.var,BW(e.placement))},WW={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{YW(e)}},YW=e=>{var t;if(!e.placement)return;const r=HW(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:hr.arrowSize.varRef,height:hr.arrowSize.varRef,zIndex:-1});const n={[hr.arrowSizeHalf.var]:`calc(${hr.arrowSize.varRef} / 2 - 1px)`,[hr.arrowOffset.var]:`calc(${hr.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},HW=e=>{if(e.startsWith("top"))return{property:"bottom",value:hr.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:hr.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:hr.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:hr.arrowOffset.varRef}},QW={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Gx(e)},effect:({state:e})=>()=>{Gx(e)}},Gx=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=LW(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:hr.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},qW={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},KW={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function GW(e,t="ltr"){var r,n;const o=((r=qW[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=KW[e])!=null?n:o}var lr="top",Yr="bottom",Hr="right",ur="left",xy="auto",Ru=[lr,Yr,Hr,ur],ns="start",lu="end",XW="clippingParents",Q_="viewport",Bs="popper",ZW="reference",Xx=Ru.reduce(function(e,t){return e.concat([t+"-"+ns,t+"-"+lu])},[]),q_=[].concat(Ru,[xy]).reduce(function(e,t){return e.concat([t,t+"-"+ns,t+"-"+lu])},[]),JW="beforeRead",e7="read",t7="afterRead",r7="beforeMain",n7="main",o7="afterMain",a7="beforeWrite",i7="write",s7="afterWrite",l7=[JW,e7,t7,r7,n7,o7,a7,i7,s7];function En(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ia(e){var t=kr(e).Element;return e instanceof t||e instanceof Element}function zr(e){var t=kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sy(e){if(typeof ShadowRoot>"u")return!1;var t=kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function u7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!zr(a)||!En(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function c7(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,u){return l[u]="",l},{});!zr(o)||!En(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const d7={name:"applyStyles",enabled:!0,phase:"write",fn:u7,effect:c7,requires:["computeStyles"]};function Tn(e){return e.split("-")[0]}var ka=Math.max,of=Math.min,os=Math.round;function Qv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function K_(){return!/^((?!chrome|android).)*safari/i.test(Qv())}function as(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&zr(e)&&(o=e.offsetWidth>0&&os(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&os(n.height)/e.offsetHeight||1);var i=Ia(e)?kr(e):window,s=i.visualViewport,l=!K_()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/o,c=(n.top+(l&&s?s.offsetTop:0))/a,d=n.width/o,f=n.height/a;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function ky(e){var t=as(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function G_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Sy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function to(e){return kr(e).getComputedStyle(e)}function f7(e){return["table","td","th"].indexOf(En(e))>=0}function Ko(e){return((Ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function gp(e){return En(e)==="html"?e:e.assignedSlot||e.parentNode||(Sy(e)?e.host:null)||Ko(e)}function Zx(e){return!zr(e)||to(e).position==="fixed"?null:e.offsetParent}function p7(e){var t=/firefox/i.test(Qv()),r=/Trident/i.test(Qv());if(r&&zr(e)){var n=to(e);if(n.position==="fixed")return null}var o=gp(e);for(Sy(o)&&(o=o.host);zr(o)&&["html","body"].indexOf(En(o))<0;){var a=to(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Iu(e){for(var t=kr(e),r=Zx(e);r&&f7(r)&&to(r).position==="static";)r=Zx(r);return r&&(En(r)==="html"||En(r)==="body"&&to(r).position==="static")?t:r||p7(e)||t}function Cy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sl(e,t,r){return ka(e,of(t,r))}function h7(e,t,r){var n=Sl(e,t,r);return n>r?r:n}function X_(){return{top:0,right:0,bottom:0,left:0}}function Z_(e){return Object.assign({},X_(),e)}function J_(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var m7=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Z_(typeof t!="number"?t:J_(t,Ru))};function v7(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Tn(r.placement),l=Cy(s),u=[ur,Hr].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!i)){var d=m7(o.padding,r),f=ky(a),p=l==="y"?lr:ur,h=l==="y"?Yr:Hr,v=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],w=i[l]-r.rects.reference[l],y=Iu(a),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=v/2-w/2,S=d[p],E=m-f[c]-d[h],T=m/2-f[c]/2+b,C=Sl(S,T,E),D=l;r.modifiersData[n]=(t={},t[D]=C,t.centerOffset=C-T,t)}}function g7(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||G_(t.elements.popper,o)&&(t.elements.arrow=o))}const y7={name:"arrow",enabled:!0,phase:"main",fn:v7,effect:g7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function is(e){return e.split("-")[1]}var b7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function w7(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:os(r*o)/o||0,y:os(n*o)/o||0}}function Jx(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=f===void 0?0:f,h=i.y,v=h===void 0?0:h,w=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=w.x,v=w.y;var y=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=ur,S=lr,E=window;if(u){var T=Iu(r),C="clientHeight",D="clientWidth";if(T===kr(r)&&(T=Ko(r),to(T).position!=="static"&&s==="absolute"&&(C="scrollHeight",D="scrollWidth")),T=T,o===lr||(o===ur||o===Hr)&&a===lu){S=Yr;var R=d&&T===E&&E.visualViewport?E.visualViewport.height:T[C];v-=R-n.height,v*=l?1:-1}if(o===ur||(o===lr||o===Yr)&&a===lu){b=Hr;var I=d&&T===E&&E.visualViewport?E.visualViewport.width:T[D];p-=I-n.width,p*=l?1:-1}}var L=Object.assign({position:s},u&&b7),te=c===!0?w7({x:p,y:v},kr(r)):{x:p,y:v};if(p=te.x,v=te.y,l){var X;return Object.assign({},L,(X={},X[S]=m?"0":"",X[b]=y?"0":"",X.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",X))}return Object.assign({},L,(t={},t[S]=m?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}function x7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Tn(t.placement),variation:is(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Jx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const S7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x7,data:{}};var Sc={passive:!0};function k7(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,l=kr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,Sc)}),s&&l.addEventListener("resize",r.update,Sc),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Sc)}),s&&l.removeEventListener("resize",r.update,Sc)}}const C7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k7,data:{}};var T7={left:"right",right:"left",bottom:"top",top:"bottom"};function od(e){return e.replace(/left|right|bottom|top/g,function(t){return T7[t]})}var P7={start:"end",end:"start"};function eS(e){return e.replace(/start|end/g,function(t){return P7[t]})}function Ty(e){var t=kr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Py(e){return as(Ko(e)).left+Ty(e).scrollLeft}function E7(e,t){var r=kr(e),n=Ko(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var u=K_();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Py(e),y:l}}function _7(e){var t,r=Ko(e),n=Ty(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ka(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ka(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Py(e),l=-n.scrollTop;return to(o||r).direction==="rtl"&&(s+=ka(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function Ey(e){var t=to(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function eD(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:zr(e)&&Ey(e)?e:eD(gp(e))}function kl(e,t){var r;t===void 0&&(t=[]);var n=eD(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=kr(n),i=o?[a].concat(a.visualViewport||[],Ey(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(kl(gp(i)))}function qv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function D7(e,t){var r=as(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function tS(e,t,r){return t===Q_?qv(E7(e,r)):Ia(t)?D7(t,r):qv(_7(Ko(e)))}function M7(e){var t=kl(gp(e)),r=["absolute","fixed"].indexOf(to(e).position)>=0,n=r&&zr(e)?Iu(e):e;return Ia(n)?t.filter(function(o){return Ia(o)&&G_(o,n)&&En(o)!=="body"}):[]}function O7(e,t,r,n){var o=t==="clippingParents"?M7(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(l,u){var c=tS(e,u,n);return l.top=ka(c.top,l.top),l.right=of(c.right,l.right),l.bottom=of(c.bottom,l.bottom),l.left=ka(c.left,l.left),l},tS(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function tD(e){var t=e.reference,r=e.element,n=e.placement,o=n?Tn(n):null,a=n?is(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case lr:l={x:i,y:t.y-r.height};break;case Yr:l={x:i,y:t.y+t.height};break;case Hr:l={x:t.x+t.width,y:s};break;case ur:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?Cy(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case ns:l[u]=l[u]-(t[c]/2-r[c]/2);break;case lu:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function uu(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?XW:s,u=r.rootBoundary,c=u===void 0?Q_:u,d=r.elementContext,f=d===void 0?Bs:d,p=r.altBoundary,h=p===void 0?!1:p,v=r.padding,w=v===void 0?0:v,y=Z_(typeof w!="number"?w:J_(w,Ru)),m=f===Bs?ZW:Bs,b=e.rects.popper,S=e.elements[h?m:f],E=O7(Ia(S)?S:S.contextElement||Ko(e.elements.popper),l,c,i),T=as(e.elements.reference),C=tD({reference:T,element:b,strategy:"absolute",placement:o}),D=qv(Object.assign({},b,C)),R=f===Bs?D:T,I={top:E.top-R.top+y.top,bottom:R.bottom-E.bottom+y.bottom,left:E.left-R.left+y.left,right:R.right-E.right+y.right},L=e.modifiersData.offset;if(f===Bs&&L){var te=L[o];Object.keys(I).forEach(function(X){var re=[Hr,Yr].indexOf(X)>=0?1:-1,H=[lr,Yr].indexOf(X)>=0?"y":"x";I[X]+=te[H]*re})}return I}function R7(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?q_:l,c=is(n),d=c?s?Xx:Xx.filter(function(h){return is(h)===c}):Ru,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,v){return h[v]=uu(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[Tn(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function I7(e){if(Tn(e)===xy)return[];var t=od(e);return[eS(e),t,eS(t)]}function A7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=p===void 0?!0:p,v=r.allowedAutoPlacements,w=t.options.placement,y=Tn(w),m=y===w,b=l||(m||!h?[od(w)]:I7(w)),S=[w].concat(b).reduce(function(J,ve){return J.concat(Tn(ve)===xy?R7(t,{placement:ve,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):ve)},[]),E=t.rects.reference,T=t.rects.popper,C=new Map,D=!0,R=S[0],I=0;I=0,H=re?"width":"height",Z=uu(t,{placement:L,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),$=re?X?Hr:ur:X?Yr:lr;E[H]>T[H]&&($=od($));var j=od($),U=[];if(a&&U.push(Z[te]<=0),s&&U.push(Z[$]<=0,Z[j]<=0),U.every(function(J){return J})){R=L,D=!1;break}C.set(L,U)}if(D)for(var ee=h?3:1,G=function(ve){var pe=S.find(function(ye){var se=C.get(ye);if(se)return se.slice(0,ve).every(function(ce){return ce})});if(pe)return R=pe,"break"},ie=ee;ie>0;ie--){var Q=G(ie);if(Q==="break")break}t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}}const N7={name:"flip",enabled:!0,phase:"main",fn:A7,requiresIfExists:["offset"],data:{_skip:!1}};function rS(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function nS(e){return[lr,Hr,Yr,ur].some(function(t){return e[t]>=0})}function F7(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=uu(t,{elementContext:"reference"}),s=uu(t,{altBoundary:!0}),l=rS(i,n),u=rS(s,o,a),c=nS(l),d=nS(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const $7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F7};function L7(e,t,r){var n=Tn(e),o=[ur,lr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ur,Hr].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function j7(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=q_.reduce(function(c,d){return c[d]=L7(d,t.rects,a),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const B7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j7};function z7(e){var t=e.state,r=e.name;t.modifiersData[r]=tD({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const V7={name:"popperOffsets",enabled:!0,phase:"read",fn:z7,data:{}};function U7(e){return e==="x"?"y":"x"}function W7(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,h=r.tetherOffset,v=h===void 0?0:h,w=uu(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Tn(t.placement),m=is(t.placement),b=!m,S=Cy(y),E=U7(S),T=t.modifiersData.popperOffsets,C=t.rects.reference,D=t.rects.popper,R=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(T){if(a){var X,re=S==="y"?lr:ur,H=S==="y"?Yr:Hr,Z=S==="y"?"height":"width",$=T[S],j=$+w[re],U=$-w[H],ee=p?-D[Z]/2:0,G=m===ns?C[Z]:D[Z],ie=m===ns?-D[Z]:-C[Z],Q=t.elements.arrow,J=p&&Q?ky(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:X_(),pe=ve[re],ye=ve[H],se=Sl(0,C[Z],J[Z]),ce=b?C[Z]/2-ee-se-pe-I.mainAxis:G-se-pe-I.mainAxis,De=b?-C[Z]/2+ee+se+ye+I.mainAxis:ie+se+ye+I.mainAxis,Ze=t.elements.arrow&&Iu(t.elements.arrow),tr=Ze?S==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,Er=(X=L?.[S])!=null?X:0,no=$+ce-Er-tr,de=$+De-Er,_t=Sl(p?of(j,no):j,$,p?ka(U,de):U);T[S]=_t,te[S]=_t-$}if(s){var Ut,oo=S==="x"?lr:ur,Dp=S==="x"?Yr:Hr,_r=T[E],ao=E==="y"?"height":"width",Go=_r+w[oo],Dr=_r-w[Dp],Ua=[lr,ur].indexOf(y)!==-1,Ss=(Ut=L?.[E])!=null?Ut:0,Lu=Ua?Go:_r-C[ao]-D[ao]-Ss+I.altAxis,ju=Ua?_r+C[ao]+D[ao]-Ss-I.altAxis:Dr,Xo=p&&Ua?h7(Lu,_r,ju):Sl(p?Lu:Go,_r,p?ju:Dr);T[E]=Xo,te[E]=Xo-_r}t.modifiersData[n]=te}}const Y7={name:"preventOverflow",enabled:!0,phase:"main",fn:W7,requiresIfExists:["offset"]};function H7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Q7(e){return e===kr(e)||!zr(e)?Ty(e):H7(e)}function q7(e){var t=e.getBoundingClientRect(),r=os(t.width)/e.offsetWidth||1,n=os(t.height)/e.offsetHeight||1;return r!==1||n!==1}function K7(e,t,r){r===void 0&&(r=!1);var n=zr(t),o=zr(t)&&q7(t),a=Ko(t),i=as(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((En(t)!=="body"||Ey(a))&&(s=Q7(t)),zr(t)?(l=as(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Py(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function G7(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function X7(e){var t=G7(e);return l7.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Z7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function J7(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var oS={placement:"bottom",modifiers:[],strategy:"absolute"};function aS(){for(var e=arguments.length,t=new Array(e),r=0;r{}),b=g.useCallback(()=>{var I;!t||!h.current||!v.current||((I=m.current)==null||I.call(m),w.current=rD(h.current,v.current,{placement:y,modifiers:[QW,WW,UW,{...VW,enabled:!!f},{name:"eventListeners",...zW(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:o}),w.current.forceUpdate(),m.current=w.current.destroy)},[y,t,r,f,i,a,s,l,u,d,c,o]);g.useEffect(()=>()=>{var I;!h.current&&!v.current&&((I=w.current)==null||I.destroy(),w.current=null)},[]);const S=g.useCallback(I=>{h.current=I,b()},[b]),E=g.useCallback((I={},L=null)=>({...I,ref:Zt(S,L)}),[S]),T=g.useCallback(I=>{v.current=I,b()},[b]),C=g.useCallback((I={},L=null)=>({...I,ref:Zt(T,L),style:{...I.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,f]),D=g.useCallback((I={},L=null)=>{const{size:te,shadowColor:X,bg:re,style:H,...Z}=I;return{...Z,ref:L,"data-popper-arrow":"",style:nY(I)}},[]),R=g.useCallback((I={},L=null)=>({...I,ref:L,"data-popper-arrow-inner":""}),[]);return{update(){var I;(I=w.current)==null||I.update()},forceUpdate(){var I;(I=w.current)==null||I.forceUpdate()},transformOrigin:hr.transformOrigin.varRef,referenceRef:S,popperRef:T,getPopperProps:C,getArrowProps:D,getArrowInnerProps:R,getReferenceProps:E}}function nY(e){const{size:t,shadowColor:r,bg:n,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function oY(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=nn(r),i=nn(t),[s,l]=g.useState(e.defaultIsOpen||!1),u=n!==void 0?n:s,c=n!==void 0,d=g.useId(),f=o??`disclosure-${d}`,p=g.useCallback(()=>{c||l(!1),i?.()},[c,i]),h=g.useCallback(()=>{c||l(!0),a?.()},[c,a]),v=g.useCallback(()=>{u?p():h()},[u,h,p]);function w(m={}){return{...m,"aria-expanded":u,"aria-controls":f,onClick(b){var S;(S=m.onClick)==null||S.call(m,b),v()}}}function y(m={}){return{...m,hidden:!u,id:f}}return{isOpen:u,onOpen:h,onClose:p,onToggle:v,isControlled:c,getButtonProps:w,getDisclosureProps:y}}function aY(e){const{ref:t,handler:r,enabled:n=!0}=e,o=nn(r),i=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;g.useEffect(()=>{if(!n)return;const s=d=>{Xh(d,t)&&(i.isPointerDown=!0)},l=d=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&r&&Xh(d,t)&&(i.isPointerDown=!1,o(d))},u=d=>{i.ignoreEmulatedMouseEvents=!0,r&&i.isPointerDown&&Xh(d,t)&&(i.isPointerDown=!1,o(d))},c=nD(t.current);return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",u,!0)}},[r,t,o,i,n])}function Xh(e,t){var r;const n=e.target;return n&&!nD(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function nD(e){var t;return(t=e?.ownerDocument)!=null?t:document}function iY(e){const{isOpen:t,ref:r}=e,[n,o]=g.useState(t),[a,i]=g.useState(!1);return g.useEffect(()=>{a||(o(t),i(!0))},[t,a,n]),dU(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=gW(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}function sY(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[lY,uY,cY,dY]=t_(),[fY,Au]=Nt({strict:!1,name:"MenuContext"});function pY(e,...t){const r=g.useId(),n=e||r;return g.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}function oD(e){var t;return(t=e?.ownerDocument)!=null?t:document}function iS(e){return oD(e).activeElement===e}function hY(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:i,isOpen:s,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:h=!1,...v}=e,w=g.useRef(null),y=g.useRef(null),m=cY(),b=g.useCallback(()=>{requestAnimationFrame(()=>{var Q;(Q=w.current)==null||Q.focus({preventScroll:!1})})},[]),S=g.useCallback(()=>{const Q=setTimeout(()=>{var J;if(o)(J=o.current)==null||J.focus();else{const ve=m.firstEnabled();ve&&X(ve.index)}});j.current.add(Q)},[m,o]),E=g.useCallback(()=>{const Q=setTimeout(()=>{const J=m.lastEnabled();J&&X(J.index)});j.current.add(Q)},[m]),T=g.useCallback(()=>{c?.(),a?S():b()},[a,S,b,c]),{isOpen:C,onOpen:D,onClose:R,onToggle:I}=oY({isOpen:s,defaultIsOpen:l,onClose:u,onOpen:T});aY({enabled:C&&n,ref:w,handler:Q=>{var J;(J=y.current)!=null&&J.contains(Q.target)||R()}});const L=rY({...v,enabled:C||h,placement:d,direction:p}),[te,X]=g.useState(-1);es(()=>{C||X(-1)},[C]),$W(w,{focusRef:y,visible:C,shouldFocus:!0});const re=iY({isOpen:C,ref:w}),[H,Z]=pY(t,"menu-button","menu-list"),$=g.useCallback(()=>{D(),b()},[D,b]),j=g.useRef(new Set([]));xY(()=>{j.current.forEach(Q=>clearTimeout(Q)),j.current.clear()});const U=g.useCallback(()=>{D(),S()},[S,D]),ee=g.useCallback(()=>{D(),E()},[D,E]),G=g.useCallback(()=>{var Q,J;const ve=oD(w.current),pe=(Q=w.current)==null?void 0:Q.contains(ve.activeElement);if(!(C&&!pe))return;const se=(J=m.item(te))==null?void 0:J.node;se?.focus()},[C,te,m]),ie=g.useRef(null);return{openAndFocusMenu:$,openAndFocusFirstItem:U,openAndFocusLastItem:ee,onTransitionEnd:G,unstable__animationState:re,descendants:m,popper:L,buttonId:H,menuId:Z,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:C,onToggle:I,onOpen:D,onClose:R,menuRef:w,buttonRef:y,focusedIndex:te,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:X,isLazy:i,lazyBehavior:f,initialFocusRef:o,rafId:ie}}function mY(e={},t=null){const r=Au(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=r,s=g.useCallback(l=>{const u=l.key,d={Enter:a,ArrowDown:a,ArrowUp:i}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[a,i]);return{...e,ref:Zt(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":Ee(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:Je(e.onClick,n),onKeyDown:Je(e.onKeyDown,s)}}function Kv(e){var t;return bY(e)&&!!((t=e?.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function vY(e={},t=null){const r=Au();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within