diff --git a/assets/favicon-nx8-wciH.ico b/assets/favicon-nx8-wciH.ico new file mode 100644 index 0000000..82c56a0 Binary files /dev/null and b/assets/favicon-nx8-wciH.ico differ diff --git a/assets/index-_GJkQ6Gt.js b/assets/index-_GJkQ6Gt.js new file mode 100644 index 0000000..cf6ec8c --- /dev/null +++ b/assets/index-_GJkQ6Gt.js @@ -0,0 +1,450 @@ +var u3=Object.defineProperty;var c3=(e,t,n)=>t in e?u3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Tg=(e,t,n)=>(c3(e,typeof t!="symbol"?t+"":t,n),n);function f3(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wE={exports:{}},Lp={},_E={exports:{}},Ve={};/** + * @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 Qc=Symbol.for("react.element"),d3=Symbol.for("react.portal"),h3=Symbol.for("react.fragment"),p3=Symbol.for("react.strict_mode"),m3=Symbol.for("react.profiler"),v3=Symbol.for("react.provider"),g3=Symbol.for("react.context"),y3=Symbol.for("react.forward_ref"),b3=Symbol.for("react.suspense"),x3=Symbol.for("react.memo"),S3=Symbol.for("react.lazy"),s_=Symbol.iterator;function w3(e){return e===null||typeof e!="object"?null:(e=s_&&e[s_]||e["@@iterator"],typeof e=="function"?e:null)}var CE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kE=Object.assign,PE={};function Dl(e,t,n){this.props=e,this.context=t,this.refs=PE,this.updater=n||CE}Dl.prototype.isReactComponent={};Dl.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")};Dl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EE(){}EE.prototype=Dl.prototype;function K1(e,t,n){this.props=e,this.context=t,this.refs=PE,this.updater=n||CE}var q1=K1.prototype=new EE;q1.constructor=K1;kE(q1,Dl.prototype);q1.isPureReactComponent=!0;var l_=Array.isArray,TE=Object.prototype.hasOwnProperty,Y1={current:null},AE={key:!0,ref:!0,__self:!0,__source:!0};function RE(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)TE.call(t,r)&&!AE.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,De=W[oe];if(0>>1;oei(Se,ne))Oei(et,Se)?(W[oe]=et,W[Oe]=ne,oe=Oe):(W[oe]=Se,W[Ce]=ne,oe=Ce);else if(Oei(et,ne))W[oe]=et,W[Oe]=ne,oe=Oe;else break e}}return re}function i(W,re){var ne=W.sortIndex-re.sortIndex;return ne!==0?ne:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],d=[],h=1,p=null,v=3,g=!1,_=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=W)r(d),re.sortIndex=re.expirationTime,t(c,re);else break;re=n(d)}}function R(W){if(S=!1,C(W),!_)if(n(c)!==null)_=!0,we(M);else{var re=n(d);re!==null&&Z(R,re.startTime-W)}}function M(W,re){_=!1,S&&(S=!1,x(B),B=-1),g=!0;var ne=v;try{for(C(re),p=n(c);p!==null&&(!(p.expirationTime>re)||W&&!J());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,v=p.priorityLevel;var De=oe(p.expirationTime<=re);re=e.unstable_now(),typeof De=="function"?p.callback=De:p===n(c)&&r(c),C(re)}else r(c);p=n(c)}if(p!==null)var be=!0;else{var Ce=n(d);Ce!==null&&Z(R,Ce.startTime-re),be=!1}return be}finally{p=null,v=ne,g=!1}}var z=!1,N=null,B=-1,q=5,H=-1;function J(){return!(e.unstable_now()-HW||125oe?(W.sortIndex=ne,t(d,W),n(c)===null&&W===n(d)&&(S?(x(B),B=-1):S=!0,Z(R,ne-oe))):(W.sortIndex=De,t(c,W),_||g||(_=!0,we(M))),W},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(W){var re=v;return function(){var ne=v;v=re;try{return W.apply(this,arguments)}finally{v=ne}}}})(FE);$E.exports=FE;var $3=$E.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 DE=y,pr=$3;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),J0=Object.prototype.hasOwnProperty,F3=/^[: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]*$/,c_={},f_={};function D3(e){return J0.call(f_,e)?!0:J0.call(c_,e)?!1:F3.test(e)?f_[e]=!0:(c_[e]=!0,!1)}function O3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N3(e,t,n,r){if(t===null||typeof t>"u"||O3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ln(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var gn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gn[e]=new Ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gn[t]=new Ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gn[e]=new Ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gn[e]=new Ln(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){gn[e]=new Ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gn[e]=new Ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gn[e]=new Ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gn[e]=new Ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gn[e]=new Ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q1=/[\-:]([a-z])/g;function Z1(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(Q1,Z1);gn[t]=new Ln(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(Q1,Z1);gn[t]=new Ln(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(Q1,Z1);gn[t]=new Ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gn[e]=new Ln(e,1,!1,e.toLowerCase(),null,!1,!1)});gn.xlinkHref=new Ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gn[e]=new Ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function J1(e,t,n,r){var i=gn.hasOwnProperty(t)?gn[t]:null;(i!==null?i.type!==0:r||!(2u||i[s]!==a[u]){var c=` +`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{Ig=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Iu(e):""}function L3(e){switch(e.tag){case 5:return Iu(e.type);case 16:return Iu("Lazy");case 13:return Iu("Suspense");case 19:return Iu("SuspenseList");case 0:case 2:case 15:return e=Mg(e.type,!1),e;case 11:return e=Mg(e.type.render,!1),e;case 1:return e=Mg(e.type,!0),e;default:return""}}function ry(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 Ns:return"Fragment";case Os:return"Portal";case ey:return"Profiler";case eb:return"StrictMode";case ty:return"Suspense";case ny:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case LE:return(e.displayName||"Context")+".Consumer";case NE:return(e._context.displayName||"Context")+".Provider";case tb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nb:return t=e.displayName||null,t!==null?t:ry(e.type)||"Memo";case Mo:t=e._payload,e=e._init;try{return ry(e(t))}catch{}}return null}function z3(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 ry(t);case 8:return t===eb?"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 ra(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B3(e){var t=BE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pd(e){e._valueTracker||(e._valueTracker=B3(e))}function jE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vh(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 iy(e,t){var n=t.checked;return Tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function h_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ra(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VE(e,t){t=t.checked,t!=null&&J1(e,"checked",t,!1)}function oy(e,t){VE(e,t);var n=ra(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ay(e,t.type,n):t.hasOwnProperty("defaultValue")&&ay(e,t.type,ra(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function p_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ay(e,t,n){(t!=="number"||Vh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mu=Array.isArray;function al(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uu={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},j3=["Webkit","ms","Moz","O"];Object.keys(Uu).forEach(function(e){j3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Uu[t]=Uu[e]})});function GE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Uu.hasOwnProperty(e)&&Uu[e]?(""+t).trim():t+"px"}function KE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var V3=Tt({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 uy(e,t){if(t){if(V3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function cy(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 fy=null;function rb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dy=null,sl=null,ll=null;function g_(e){if(e=ef(e)){if(typeof dy!="function")throw Error(X(280));var t=e.stateNode;t&&(t=Wp(t),dy(e.stateNode,e.type,t))}}function qE(e){sl?ll?ll.push(e):ll=[e]:sl=e}function YE(){if(sl){var e=sl,t=ll;if(ll=sl=null,g_(e),t)for(e=0;e>>=0,e===0?32:31-(J3(e)/ez|0)|0}var Td=64,Ad=4194304;function $u(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 Gh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=$u(u):(a&=s,a!==0&&(r=$u(a)))}else s=n&~i,s!==0?r=$u(s):a!==0&&(r=$u(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ri(t),e[t]=n}function iz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gu),P_=" ",E_=!1;function mT(e,t){switch(e){case"keyup":return Mz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ls=!1;function Fz(e,t){switch(e){case"compositionend":return vT(t);case"keypress":return t.which!==32?null:(E_=!0,P_);case"textInput":return e=t.data,e===P_&&E_?null:e;default:return null}}function Dz(e,t){if(Ls)return e==="compositionend"||!fb&&mT(e,t)?(e=hT(),dh=lb=Lo=null,Ls=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=I_(n)}}function xT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ST(){for(var e=window,t=Vh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vh(e.document)}return t}function db(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 Uz(e){var t=ST(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xT(n.ownerDocument.documentElement,n)){if(r!==null&&db(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=M_(n,a);var s=M_(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zs=null,yy=null,qu=null,by=!1;function $_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;by||zs==null||zs!==Vh(r)||(r=zs,"selectionStart"in r&&db(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qu&&yc(qu,r)||(qu=r,r=Yh(yy,"onSelect"),0Vs||(e.current=ky[Vs],ky[Vs]=null,Vs--)}function pt(e,t){Vs++,ky[Vs]=e.current,e.current=t}var ia={},En=ca(ia),qn=ca(!1),Ha=ia;function _l(e,t){var n=e.type.contextTypes;if(!n)return ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yn(e){return e=e.childContextTypes,e!=null}function Qh(){xt(qn),xt(En)}function B_(e,t,n){if(En.current!==ia)throw Error(X(168));pt(En,t),pt(qn,n)}function RT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(X(108,z3(e)||"Unknown",i));return Tt({},n,r)}function Zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ia,Ha=En.current,pt(En,e),pt(qn,qn.current),!0}function j_(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=RT(e,t,Ha),r.__reactInternalMemoizedMergedChildContext=e,xt(qn),xt(En),pt(En,e)):xt(qn),pt(qn,n)}var Ui=null,Up=!1,Gg=!1;function IT(e){Ui===null?Ui=[e]:Ui.push(e)}function n4(e){Up=!0,IT(e)}function fa(){if(!Gg&&Ui!==null){Gg=!0;var e=0,t=at;try{var n=Ui;for(at=1;e>=s,i-=s,Yi=1<<32-ri(t)+i|n<B?(q=N,N=null):q=N.sibling;var H=v(x,N,C[B],R);if(H===null){N===null&&(N=q);break}e&&N&&H.alternate===null&&t(x,N),b=a(H,b,B),z===null?M=H:z.sibling=H,z=H,N=q}if(B===C.length)return n(x,N),wt&&Ca(x,B),M;if(N===null){for(;BB?(q=N,N=null):q=N.sibling;var J=v(x,N,H.value,R);if(J===null){N===null&&(N=q);break}e&&N&&J.alternate===null&&t(x,N),b=a(J,b,B),z===null?M=J:z.sibling=J,z=J,N=q}if(H.done)return n(x,N),wt&&Ca(x,B),M;if(N===null){for(;!H.done;B++,H=C.next())H=p(x,H.value,R),H!==null&&(b=a(H,b,B),z===null?M=H:z.sibling=H,z=H);return wt&&Ca(x,B),M}for(N=r(x,N);!H.done;B++,H=C.next())H=g(N,x,B,H.value,R),H!==null&&(e&&H.alternate!==null&&N.delete(H.key===null?B:H.key),b=a(H,b,B),z===null?M=H:z.sibling=H,z=H);return e&&N.forEach(function(Pe){return t(x,Pe)}),wt&&Ca(x,B),M}function k(x,b,C,R){if(typeof C=="object"&&C!==null&&C.type===Ns&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case kd:e:{for(var M=C.key,z=b;z!==null;){if(z.key===M){if(M=C.type,M===Ns){if(z.tag===7){n(x,z.sibling),b=i(z,C.props.children),b.return=x,x=b;break e}}else if(z.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Mo&&q_(M)===z.type){n(x,z.sibling),b=i(z,C.props),b.ref=wu(x,z,C),b.return=x,x=b;break e}n(x,z);break}else t(x,z);z=z.sibling}C.type===Ns?(b=La(C.props.children,x.mode,R,C.key),b.return=x,x=b):(R=xh(C.type,C.key,C.props,null,x.mode,R),R.ref=wu(x,b,C),R.return=x,x=R)}return s(x);case Os:e:{for(z=C.key;b!==null;){if(b.key===z)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(x,b.sibling),b=i(b,C.children||[]),b.return=x,x=b;break e}else{n(x,b);break}else t(x,b);b=b.sibling}b=e0(C,x.mode,R),b.return=x,x=b}return s(x);case Mo:return z=C._init,k(x,b,z(C._payload),R)}if(Mu(C))return _(x,b,C,R);if(gu(C))return S(x,b,C,R);Od(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(x,b.sibling),b=i(b,C),b.return=x,x=b):(n(x,b),b=Jg(C,x.mode,R),b.return=x,x=b),s(x)):n(x,b)}return k}var kl=zT(!0),BT=zT(!1),tf={},wi=ca(tf),wc=ca(tf),_c=ca(tf);function Fa(e){if(e===tf)throw Error(X(174));return e}function Sb(e,t){switch(pt(_c,t),pt(wc,e),pt(wi,tf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ly(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ly(t,e)}xt(wi),pt(wi,t)}function Pl(){xt(wi),xt(wc),xt(_c)}function jT(e){Fa(_c.current);var t=Fa(wi.current),n=ly(t,e.type);t!==n&&(pt(wc,e),pt(wi,n))}function wb(e){wc.current===e&&(xt(wi),xt(wc))}var kt=ca(0);function ip(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Kg=[];function _b(){for(var e=0;en?n:4,e(!0);var r=qg.transition;qg.transition={};try{e(!1),t()}finally{at=n,qg.transition=r}}function r2(){return jr().memoizedState}function a4(e,t,n){var r=qo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i2(e))o2(t,n);else if(n=DT(e,t,n,r),n!==null){var i=Dn();ii(n,e,r,i),a2(n,t,r)}}function s4(e,t,n){var r=qo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i2(e))o2(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,u=a(s,n);if(i.hasEagerState=!0,i.eagerState=u,ai(u,s)){var c=t.interleaved;c===null?(i.next=i,bb(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=DT(e,t,i,r),n!==null&&(i=Dn(),ii(n,e,r,i),a2(n,t,r))}}function i2(e){var t=e.alternate;return e===Et||t!==null&&t===Et}function o2(e,t){Yu=op=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ob(e,n)}}var ap={readContext:Br,useCallback:wn,useContext:wn,useEffect:wn,useImperativeHandle:wn,useInsertionEffect:wn,useLayoutEffect:wn,useMemo:wn,useReducer:wn,useRef:wn,useState:wn,useDebugValue:wn,useDeferredValue:wn,useTransition:wn,useMutableSource:wn,useSyncExternalStore:wn,useId:wn,unstable_isNewReconciler:!1},l4={readContext:Br,useCallback:function(e,t){return pi().memoizedState=[e,t===void 0?null:t],e},useContext:Br,useEffect:X_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vh(4194308,4,ZT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vh(4194308,4,e,t)},useInsertionEffect:function(e,t){return vh(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=a4.bind(null,Et,e),[r.memoizedState,e]},useRef:function(e){var t=pi();return e={current:e},t.memoizedState=e},useState:Y_,useDebugValue:Tb,useDeferredValue:function(e){return pi().memoizedState=e},useTransition:function(){var e=Y_(!1),t=e[0];return e=o4.bind(null,e[1]),pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Et,i=pi();if(wt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),an===null)throw Error(X(349));Ka&30||UT(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,X_(GT.bind(null,r,a,e),[e]),r.flags|=2048,Pc(9,HT.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=pi(),t=an.identifierPrefix;if(wt){var n=Xi,r=Yi;n=(r&~(1<<32-ri(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yi]=t,e[Sc]=r,m2(e,t,!1,!1),t.stateNode=e;e:{switch(s=cy(n,r),n){case"dialog":yt("cancel",e),yt("close",e),i=r;break;case"iframe":case"object":case"embed":yt("load",e),i=r;break;case"video":case"audio":for(i=0;iTl&&(t.flags|=128,r=!0,_u(a,!1),t.lanes=4194304)}else{if(!r)if(e=ip(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_u(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!wt)return _n(t),null}else 2*Bt()-a.renderingStartTime>Tl&&n!==1073741824&&(t.flags|=128,r=!0,_u(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Bt(),t.sibling=null,n=kt.current,pt(kt,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return Fb(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ar&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function v4(e,t){switch(pb(t),t.tag){case 1:return Yn(t.type)&&Qh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pl(),xt(qn),xt(En),_b(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wb(t),null;case 13:if(xt(kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(kt),null;case 4:return Pl(),null;case 10:return yb(t.type._context),null;case 22:case 23:return Fb(),null;case 24:return null;default:return null}}var Ld=!1,Pn=!1,g4=typeof WeakSet=="function"?WeakSet:Set,le=null;function Gs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mt(e,t,r)}else n.current=null}function Ny(e,t,n){try{n()}catch(r){Mt(e,t,r)}}var oC=!1;function y4(e,t){if(xy=Kh,e=ST(),db(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,d=0,h=0,p=e,v=null;t:for(;;){for(var g;p!==n||i!==0&&p.nodeType!==3||(u=s+i),p!==a||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(g=p.firstChild)!==null;)v=p,p=g;for(;;){if(p===e)break t;if(v===n&&++d===i&&(u=s),v===a&&++h===r&&(c=s),(g=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=g}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sy={focusedElem:e,selectionRange:n},Kh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var S=_.memoizedProps,k=_.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?S:Zr(t.type,S),k);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(R){Mt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return _=oC,oC=!1,_}function Xu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ny(t,n,a)}i=i.next}while(i!==r)}}function Kp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ly(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y2(e){var t=e.alternate;t!==null&&(e.alternate=null,y2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yi],delete t[Sc],delete t[Cy],delete t[e4],delete t[t4])),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 b2(e){return e.tag===5||e.tag===3||e.tag===4}function aC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b2(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 zy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xh));else if(r!==4&&(e=e.child,e!==null))for(zy(e,t,n),e=e.sibling;e!==null;)zy(e,t,n),e=e.sibling}function By(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(By(e,t,n),e=e.sibling;e!==null;)By(e,t,n),e=e.sibling}var hn=null,Jr=!1;function Po(e,t,n){for(n=n.child;n!==null;)x2(e,t,n),n=n.sibling}function x2(e,t,n){if(Si&&typeof Si.onCommitFiberUnmount=="function")try{Si.onCommitFiberUnmount(zp,n)}catch{}switch(n.tag){case 5:Pn||Gs(n,t);case 6:var r=hn,i=Jr;hn=null,Po(e,t,n),hn=r,Jr=i,hn!==null&&(Jr?(e=hn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hn.removeChild(n.stateNode));break;case 18:hn!==null&&(Jr?(e=hn,n=n.stateNode,e.nodeType===8?Hg(e.parentNode,n):e.nodeType===1&&Hg(e,n),vc(e)):Hg(hn,n.stateNode));break;case 4:r=hn,i=Jr,hn=n.stateNode.containerInfo,Jr=!0,Po(e,t,n),hn=r,Jr=i;break;case 0:case 11:case 14:case 15:if(!Pn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Ny(n,t,s),i=i.next}while(i!==r)}Po(e,t,n);break;case 1:if(!Pn&&(Gs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Mt(n,t,u)}Po(e,t,n);break;case 21:Po(e,t,n);break;case 22:n.mode&1?(Pn=(r=Pn)||n.memoizedState!==null,Po(e,t,n),Pn=r):Po(e,t,n);break;default:Po(e,t,n)}}function sC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new g4),t.forEach(function(r){var i=E4.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Yr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Bt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x4(r/1960))-r,10e?16:e,zo===null)var r=!1;else{if(e=zo,zo=null,up=0,Ge&6)throw Error(X(331));var i=Ge;for(Ge|=4,le=e.current;le!==null;){var a=le,s=a.child;if(le.flags&16){var u=a.deletions;if(u!==null){for(var c=0;cBt()-Mb?Na(e,0):Ib|=n),Xn(e,t)}function T2(e,t){t===0&&(e.mode&1?(t=Ad,Ad<<=1,!(Ad&130023424)&&(Ad=4194304)):t=1);var n=Dn();e=ao(e,t),e!==null&&(Zc(e,t,n),Xn(e,n))}function P4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T2(e,n)}function E4(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),T2(e,n)}var A2;A2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qn.current)Kn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kn=!1,p4(e,t,n);Kn=!!(e.flags&131072)}else Kn=!1,wt&&t.flags&1048576&&MT(t,ep,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gh(e,t),e=t.pendingProps;var i=_l(t,En.current);cl(t,n),i=kb(null,t,r,e,i,n);var a=Pb();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yn(r)?(a=!0,Zh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xb(t),i.updater=Hp,t.stateNode=i,i._reactInternals=t,Ry(t,r,e,n),t=$y(null,t,r,!0,a,n)):(t.tag=0,wt&&a&&hb(t),$n(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=A4(r),e=Zr(r,e),i){case 0:t=My(null,t,r,e,n);break e;case 1:t=nC(null,t,r,e,n);break e;case 11:t=eC(null,t,r,e,n);break e;case 14:t=tC(null,t,r,Zr(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zr(r,i),My(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zr(r,i),nC(e,t,r,i,n);case 3:e:{if(d2(t),e===null)throw Error(X(387));r=t.pendingProps,a=t.memoizedState,i=a.element,OT(e,t),rp(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=El(Error(X(423)),t),t=rC(e,t,r,n,i);break e}else if(r!==i){i=El(Error(X(424)),t),t=rC(e,t,r,n,i);break e}else for(sr=Ho(t.stateNode.containerInfo.firstChild),cr=t,wt=!0,ei=null,n=BT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cl(),r===i){t=so(e,t,n);break e}$n(e,t,r,n)}t=t.child}return t;case 5:return jT(t),e===null&&Ey(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,wy(r,i)?s=null:a!==null&&wy(r,a)&&(t.flags|=32),f2(e,t),$n(e,t,s,n),t.child;case 6:return e===null&&Ey(t),null;case 13:return h2(e,t,n);case 4:return Sb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kl(t,null,r,n):$n(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zr(r,i),eC(e,t,r,i,n);case 7:return $n(e,t,t.pendingProps,n),t.child;case 8:return $n(e,t,t.pendingProps.children,n),t.child;case 12:return $n(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,pt(tp,r._currentValue),r._currentValue=s,a!==null)if(ai(a.value,s)){if(a.children===i.children&&!qn.current){t=so(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){s=a.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Ji(-1,n&-n),c.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ty(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(X(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ty(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}$n(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cl(t,n),i=Br(i),r=r(i),t.flags|=1,$n(e,t,r,n),t.child;case 14:return r=t.type,i=Zr(r,t.pendingProps),i=Zr(r.type,i),tC(e,t,r,i,n);case 15:return u2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zr(r,i),gh(e,t),t.tag=1,Yn(r)?(e=!0,Zh(t)):e=!1,cl(t,n),LT(t,r,i),Ry(t,r,i,n),$y(null,t,r,!0,e,n);case 19:return p2(e,t,n);case 22:return c2(e,t,n)}throw Error(X(156,t.tag))};function R2(e,t){return nT(e,t)}function T4(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(e,t,n,r){return new T4(e,t,n,r)}function Ob(e){return e=e.prototype,!(!e||!e.isReactComponent)}function A4(e){if(typeof e=="function")return Ob(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tb)return 11;if(e===nb)return 14}return 2}function Yo(e,t){var n=e.alternate;return n===null?(n=Or(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xh(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")Ob(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ns:return La(n.children,i,a,t);case eb:s=8,i|=8;break;case ey:return e=Or(12,n,t,i|2),e.elementType=ey,e.lanes=a,e;case ty:return e=Or(13,n,t,i),e.elementType=ty,e.lanes=a,e;case ny:return e=Or(19,n,t,i),e.elementType=ny,e.lanes=a,e;case zE:return Yp(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case NE:s=10;break e;case LE:s=9;break e;case tb:s=11;break e;case nb:s=14;break e;case Mo:s=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Or(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function La(e,t,n,r){return e=Or(7,e,r,t),e.lanes=n,e}function Yp(e,t,n,r){return e=Or(22,e,r,t),e.elementType=zE,e.lanes=n,e.stateNode={isHidden:!1},e}function Jg(e,t,n){return e=Or(6,e,null,t),e.lanes=n,e}function e0(e,t,n){return t=Or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function R4(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fg(0),this.expirationTimes=Fg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fg(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Nb(e,t,n,r,i,a,s,u,c){return e=new R4(e,t,n,u,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Or(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xb(a),e}function I4(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F2)}catch(e){console.error(e)}}F2(),ME.exports=yr;var jb=ME.exports,mC=jb;Z0.createRoot=mC.createRoot,Z0.hydrateRoot=mC.hydrateRoot;var D2={exports:{}},O2={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var nf=y;function O4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var N4=typeof Object.is=="function"?Object.is:O4,L4=nf.useSyncExternalStore,z4=nf.useRef,B4=nf.useEffect,j4=nf.useMemo,V4=nf.useDebugValue;O2.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=z4(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=j4(function(){function c(g){if(!d){if(d=!0,h=g,g=r(g),i!==void 0&&s.hasValue){var _=s.value;if(i(_,g))return p=_}return p=g}if(_=p,N4(h,g))return _;var S=r(g);return i!==void 0&&i(_,S)?_:(h=g,p=S)}var d=!1,h,p,v=n===void 0?null:n;return[function(){return c(t())},v===null?void 0:function(){return c(v())}]},[t,n,r,i]);var u=L4(e,a[0],a[1]);return B4(function(){s.hasValue=!0,s.value=u},[u]),V4(u),u};D2.exports=O2;var W4=D2.exports,lr="default"in cc?na:cc,vC=Symbol.for("react-redux-context"),gC=typeof globalThis<"u"?globalThis:{};function U4(){if(!lr.createContext)return{};const e=gC[vC]??(gC[vC]=new Map);let t=e.get(lr.createContext);return t||(t=lr.createContext(null),e.set(lr.createContext,t)),t}var oa=U4(),H4=()=>{throw new Error("uSES not initialized!")};function Vb(e=oa){return function(){return lr.useContext(e)}}var N2=Vb(),L2=H4,G4=e=>{L2=e},K4=(e,t)=>e===t;function q4(e=oa){const t=e===oa?N2:Vb(e);return function(r,i={}){const{equalityFn:a=K4,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:d,stabilityCheck:h,identityFunctionCheck:p}=t();lr.useRef(!0);const v=lr.useCallback({[r.name](_){return r(_)}}[r.name],[r,h,s.stabilityCheck]),g=L2(c.addNestedSub,u.getState,d||u.getState,v,a);return lr.useDebugValue(g),g}}var Xo=q4();function Y4(e){e()}function X4(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Y4(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var yC={notify(){},get:()=>[]};function Q4(e,t){let n,r=yC,i=0,a=!1;function s(S){h();const k=r.subscribe(S);let x=!1;return()=>{x||(x=!0,k(),p())}}function u(){r.notify()}function c(){_.onStateChange&&_.onStateChange()}function d(){return a}function h(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=X4())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=yC)}function v(){a||(a=!0,h())}function g(){a&&(a=!1,p())}const _={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:d,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>r};return _}var Z4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",J4=Z4?lr.useLayoutEffect:lr.useEffect;function eB({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=lr.useMemo(()=>{const d=Q4(e);return{store:e,subscription:d,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),u=lr.useMemo(()=>e.getState(),[e]);J4(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),u!==e.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,u]);const c=t||oa;return lr.createElement(c.Provider,{value:s},n)}var tB=eB;function z2(e=oa){const t=e===oa?N2:Vb(e);return function(){const{store:r}=t();return r}}var nB=z2();function rB(e=oa){const t=e===oa?nB:z2(e);return function(){return t().dispatch}}var rf=rB();G4(W4.useSyncExternalStoreWithSelector);function dn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var iB=typeof Symbol=="function"&&Symbol.observable||"@@observable",bC=iB,t0=()=>Math.random().toString(36).substring(7).split("").join("."),oB={INIT:`@@redux/INIT${t0()}`,REPLACE:`@@redux/REPLACE${t0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${t0()}`},dp=oB;function Wb(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function B2(e,t,n){if(typeof e!="function")throw new Error(dn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(dn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(dn(1));return n(B2)(e,t)}let r=e,i=t,a=new Map,s=a,u=0,c=!1;function d(){s===a&&(s=new Map,a.forEach((k,x)=>{s.set(x,k)}))}function h(){if(c)throw new Error(dn(3));return i}function p(k){if(typeof k!="function")throw new Error(dn(4));if(c)throw new Error(dn(5));let x=!0;d();const b=u++;return s.set(b,k),function(){if(x){if(c)throw new Error(dn(6));x=!1,d(),s.delete(b),a=null}}}function v(k){if(!Wb(k))throw new Error(dn(7));if(typeof k.type>"u")throw new Error(dn(8));if(typeof k.type!="string")throw new Error(dn(17));if(c)throw new Error(dn(9));try{c=!0,i=r(i,k)}finally{c=!1}return(a=s).forEach(b=>{b()}),k}function g(k){if(typeof k!="function")throw new Error(dn(10));r=k,v({type:dp.REPLACE})}function _(){const k=p;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(dn(11));function b(){const R=x;R.next&&R.next(h())}return b(),{unsubscribe:k(b)}},[bC](){return this}}}return v({type:dp.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:g,[bC]:_}}function aB(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:dp.INIT})>"u")throw new Error(dn(12));if(typeof n(void 0,{type:dp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(dn(13))})}function sB(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw u&&u.type,new Error(dn(14));d[p]=_,c=c||_!==g}return c=c||r.length!==Object.keys(s).length,c?d:s}}function hp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function lB(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(dn(15))};const s={getState:i.getState,dispatch:(c,...d)=>a(c,...d)},u=e.map(c=>c(s));return a=hp(...u)(i.dispatch),{...i,dispatch:a}}}function uB(e){return Wb(e)&&"type"in e&&typeof e.type=="string"}var j2=Symbol.for("immer-nothing"),xC=Symbol.for("immer-draftable"),mr=Symbol.for("immer-state");function ti(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Al=Object.getPrototypeOf;function aa(e){return!!e&&!!e[mr]}function lo(e){var t;return e?V2(e)||Array.isArray(e)||!!e[xC]||!!((t=e.constructor)!=null&&t[xC])||tm(e)||nm(e):!1}var cB=Object.prototype.constructor.toString();function V2(e){if(!e||typeof e!="object")return!1;const t=Al(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===cB}function Tc(e,t){em(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function em(e){const t=e[mr];return t?t.type_:Array.isArray(e)?1:tm(e)?2:nm(e)?3:0}function Hy(e,t){return em(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function W2(e,t,n){const r=em(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function fB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function tm(e){return e instanceof Map}function nm(e){return e instanceof Set}function Pa(e){return e.copy_||e.base_}function Gy(e,t){if(tm(e))return new Map(e);if(nm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&V2(e))return Al(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[mr];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=dB),Object.freeze(e),t&&Tc(e,(n,r)=>Ub(r,!0))),e}function dB(){ti(2)}function rm(e){return Object.isFrozen(e)}var hB={};function Xa(e){const t=hB[e];return t||ti(0,e),t}var Ac;function U2(){return Ac}function pB(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function SC(e,t){t&&(Xa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ky(e){qy(e),e.drafts_.forEach(mB),e.drafts_=null}function qy(e){e===Ac&&(Ac=e.parent_)}function wC(e){return Ac=pB(Ac,e)}function mB(e){const t=e[mr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _C(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[mr].modified_&&(Ky(t),ti(4)),lo(e)&&(e=pp(t,e),t.parent_||mp(t,e)),t.patches_&&Xa("Patches").generateReplacementPatches_(n[mr].base_,e,t.patches_,t.inversePatches_)):e=pp(t,n,[]),Ky(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==j2?e:void 0}function pp(e,t,n){if(rm(t))return t;const r=t[mr];if(!r)return Tc(t,(i,a)=>CC(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return mp(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Tc(a,(u,c)=>CC(e,r,i,u,c,n,s)),mp(e,i,!1),n&&e.patches_&&Xa("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function CC(e,t,n,r,i,a,s){if(aa(i)){const u=a&&t&&t.type_!==3&&!Hy(t.assigned_,r)?a.concat(r):void 0,c=pp(e,i,u);if(W2(n,r,c),aa(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(lo(i)&&!rm(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pp(e,i),(!t||!t.scope_.parent_)&&mp(e,i)}}function mp(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ub(t,n)}function vB(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:U2(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Hb;n&&(i=[r],a=Rc);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,u}var Hb={get(e,t){if(t===mr)return e;const n=Pa(e);if(!Hy(n,t))return gB(e,n,t);const r=n[t];return e.finalized_||!lo(r)?r:r===n0(e.base_,t)?(r0(e),e.copy_[t]=Xy(r,e)):r},has(e,t){return t in Pa(e)},ownKeys(e){return Reflect.ownKeys(Pa(e))},set(e,t,n){const r=H2(Pa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=n0(Pa(e),t),a=i==null?void 0:i[mr];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(fB(n,i)&&(n!==void 0||Hy(e.base_,t)))return!0;r0(e),Yy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return n0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,r0(e),Yy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Pa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ti(11)},getPrototypeOf(e){return Al(e.base_)},setPrototypeOf(){ti(12)}},Rc={};Tc(Hb,(e,t)=>{Rc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Rc.deleteProperty=function(e,t){return Rc.set.call(this,e,t,void 0)};Rc.set=function(e,t,n){return Hb.set.call(this,e[0],t,n,e[0])};function n0(e,t){const n=e[mr];return(n?Pa(n):e)[t]}function gB(e,t,n){var i;const r=H2(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function H2(e,t){if(!(t in e))return;let n=Al(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Al(n)}}function Yy(e){e.modified_||(e.modified_=!0,e.parent_&&Yy(e.parent_))}function r0(e){e.copy_||(e.copy_=Gy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...d){return s.produce(c,h=>n.call(this,h,...d))}}typeof n!="function"&&ti(6),r!==void 0&&typeof r!="function"&&ti(7);let i;if(lo(t)){const a=wC(this),s=Xy(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?Ky(a):qy(a)}return SC(a,r),_C(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===j2&&(i=void 0),this.autoFreeze_&&Ub(i,!0),r){const a=[],s=[];Xa("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else ti(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){lo(e)||ti(8),aa(e)&&(e=G2(e));const t=wC(this),n=Xy(e,void 0);return n[mr].isManual_=!0,qy(t),n}finishDraft(e,t){const n=e&&e[mr];(!n||!n.isManual_)&&ti(9);const{scope_:r}=n;return SC(r,t),_C(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Xa("Patches").applyPatches_;return aa(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Xy(e,t){const n=tm(e)?Xa("MapSet").proxyMap_(e,t):nm(e)?Xa("MapSet").proxySet_(e,t):vB(e,t);return(t?t.scope_:U2()).drafts_.push(n),n}function G2(e){return aa(e)||ti(10,e),K2(e)}function K2(e){if(!lo(e)||rm(e))return e;const t=e[mr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gy(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Gy(e,!0);return Tc(n,(r,i)=>{W2(n,r,K2(i))}),t&&(t.finalized_=!1),n}var vr=new yB,q2=vr.produce;vr.produceWithPatches.bind(vr);vr.setAutoFreeze.bind(vr);vr.setUseStrictShallowCopy.bind(vr);vr.applyPatches.bind(vr);vr.createDraft.bind(vr);vr.finishDraft.bind(vr);function bB(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xB(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var kC=e=>Array.isArray(e)?e:[e];function SB(e){const t=Array.isArray(e[0])?e[0]:e;return xB(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wB(e,t){const n=[],{length:r}=e;for(let i=0;i{n=jd(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function PB(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let a=0,s=0,u,c={},d=i.pop();typeof d=="object"&&(c=d,d=i.pop()),bB(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const h={...n,...c},{memoize:p,memoizeOptions:v=[],argsMemoize:g=Y2,argsMemoizeOptions:_=[],devModeChecks:S={}}=h,k=kC(v),x=kC(_),b=SB(i),C=p(function(){return a++,d.apply(null,arguments)},...k),R=g(function(){s++;const z=wB(b,arguments);return u=C.apply(null,z),u},...x);return Object.assign(R,{resultFunc:d,memoizedResultFunc:C,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:g})}}function X2(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var EB=X2(),TB=X2,AB=(...e)=>{const t=PB(...e);return(...n)=>{const r=t(...n),i=(a,...s)=>r(aa(a)?G2(a):a,...s);return Object.assign(i,r),i}};AB(Y2);var RB=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hp:hp.apply(null,arguments)},IB=e=>e&&typeof e.match=="function";function Qo(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(oi(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>uB(r)&&r.type===e,n}var Q2=class Du extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Du.prototype)}static get[Symbol.species](){return Du}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Du(...t[0].concat(this)):new Du(...t.concat(this))}};function EC(e){return lo(e)?q2(e,()=>{}):e}function TC(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(oi(10));const r=n.insert(t,e);return e.set(t,r),r}function MB(e){return typeof e=="boolean"}var $B=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Q2;return n&&(MB(n)?s.push(EB):s.push(TB(n.extraArgument))),s},FB="RTK_autoBatch",Z2=e=>t=>{setTimeout(t,e)},DB=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Z2(10),OB=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?DB:e.type==="callback"?e.queueNotification:Z2(e.timeout),d=()=>{s=!1,a&&(a=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),v=r.subscribe(p);return u.add(h),()=>{v(),u.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[FB]),a=!i,a&&(s||(s=!0,c(d))),r.dispatch(h)}finally{i=!0}}})},NB=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Q2(e);return r&&i.push(OB(typeof r=="object"?r:void 0)),i},LB=!0;function zB(e){const t=$B(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Wb(n))u=sB(n);else throw new Error(oi(1));let c;typeof r=="function"?c=r(t):c=t();let d=hp;i&&(d=RB({trace:!LB,...typeof i=="object"&&i}));const h=lB(...c),p=NB(h);let v=typeof s=="function"?s(p):p();const g=d(...v);return B2(u,a,g)}function J2(e){const t={},n=[];let r;const i={addCase(a,s){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(oi(28));if(u in t)throw new Error(oi(29));return t[u]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function BB(e){return typeof e=="function"}function jB(e,t){let[n,r,i]=J2(t),a;if(BB(e))a=()=>EC(e());else{const u=EC(e);a=()=>u}function s(u=a(),c){let d=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return d.filter(h=>!!h).length===0&&(d=[i]),d.reduce((h,p)=>{if(p)if(aa(h)){const g=p(h,c);return g===void 0?h:g}else{if(lo(h))return q2(h,v=>p(v,c));{const v=p(h,c);if(v===void 0){if(h===null)return h;throw new Error(oi(9))}return v}}return h},u)}return s.getInitialState=a,s}var VB="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",WB=(e=21)=>{let t="",n=e;for(;n--;)t+=VB[Math.random()*64|0];return t},UB=(e,t)=>IB(e)?e.match(t):e(t);function HB(...e){return t=>e.some(n=>UB(n,t))}var GB=["name","message","stack","code"],i0=class{constructor(e,t){Tg(this,"_type");this.payload=e,this.meta=t}},AC=class{constructor(e,t){Tg(this,"_type");this.payload=e,this.meta=t}},KB=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of GB)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},im=(()=>{function e(t,n,r){const i=Qo(t+"/fulfilled",(c,d,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:d,requestStatus:"fulfilled"}})),a=Qo(t+"/pending",(c,d,h)=>({payload:void 0,meta:{...h||{},arg:d,requestId:c,requestStatus:"pending"}})),s=Qo(t+"/rejected",(c,d,h,p,v)=>({payload:p,error:(r&&r.serializeError||KB)(c||"Rejected"),meta:{...v||{},arg:h,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c){return(d,h,p)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):WB(),g=new AbortController;let _;function S(x){_=x,g.abort()}const k=async function(){var C,R;let x;try{let M=(C=r==null?void 0:r.condition)==null?void 0:C.call(r,c,{getState:h,extra:p});if(YB(M)&&(M=await M),M===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((N,B)=>g.signal.addEventListener("abort",()=>B({name:"AbortError",message:_||"Aborted"})));d(a(v,c,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:v,arg:c},{getState:h,extra:p}))),x=await Promise.race([z,Promise.resolve(n(c,{dispatch:d,getState:h,extra:p,requestId:v,signal:g.signal,abort:S,rejectWithValue:(N,B)=>new i0(N,B),fulfillWithValue:(N,B)=>new AC(N,B)})).then(N=>{if(N instanceof i0)throw N;return N instanceof AC?i(N.payload,v,c,N.meta):i(N,v,c)})])}catch(M){x=M instanceof i0?s(null,v,c,M.payload,M.meta):s(M,v,c)}return r&&!r.dispatchConditionRejection&&s.match(x)&&x.meta.condition||d(x),x}();return Object.assign(k,{abort:S,requestId:v,arg:c,unwrap(){return k.then(qB)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,settled:HB(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function qB(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function YB(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var XB=Symbol.for("rtk-slice-createasyncthunk");function QB(e,t){return`${e}/${t}`}function ZB({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[XB];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(oi(11));typeof process<"u";const u=(typeof i.reducers=="function"?i.reducers(tj()):i.reducers)||{},c=Object.keys(u),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(k,x){const b=typeof k=="string"?k:k.type;if(!b)throw new Error(oi(12));if(b in d.sliceCaseReducersByType)throw new Error(oi(13));return d.sliceCaseReducersByType[b]=x,h},addMatcher(k,x){return d.sliceMatchers.push({matcher:k,reducer:x}),h},exposeAction(k,x){return d.actionCreators[k]=x,h},exposeCaseReducer(k,x){return d.sliceCaseReducersByName[k]=x,h}};c.forEach(k=>{const x=u[k],b={reducerName:k,type:QB(a,k),createNotation:typeof i.reducers=="function"};rj(x)?oj(b,x,h,t):nj(b,x,h)});function p(){const[k={},x=[],b=void 0]=typeof i.extraReducers=="function"?J2(i.extraReducers):[i.extraReducers],C={...k,...d.sliceCaseReducersByType};return jB(i.initialState,R=>{for(let M in C)R.addCase(M,C[M]);for(let M of d.sliceMatchers)R.addMatcher(M.matcher,M.reducer);for(let M of x)R.addMatcher(M.matcher,M.reducer);b&&R.addDefaultCase(b)})}const v=k=>k,g=new WeakMap;let _;const S={name:a,reducerPath:s,reducer(k,x){return _||(_=p()),_(k,x)},actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState(){return _||(_=p()),_.getInitialState()},getSelectors(k=v){const x=TC(g,this,{insert:()=>new WeakMap});return TC(x,k,{insert:()=>{const b={};for(const[C,R]of Object.entries(i.selectors??{}))b[C]=JB(this,R,k,this!==S);return b}})},selectSlice(k){let x=k[this.reducerPath];return typeof x>"u"&&this!==S&&(x=this.getInitialState()),x},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(k,{reducerPath:x,...b}={}){const C=x??this.reducerPath;return k.inject({reducerPath:C,reducer:this.reducer},b),{...this,reducerPath:C}}};return S}}function JB(e,t,n,r){function i(a,...s){let u=n.call(e,a);return typeof u>"u"&&r&&(u=e.getInitialState()),t(u,...s)}return i.unwrapped=t,i}var ej=ZB();function tj(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function nj({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!ij(r))throw new Error(oi(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?Qo(e,s):Qo(e))}function rj(e){return e._reducerDefinitionType==="asyncThunk"}function ij(e){return e._reducerDefinitionType==="reducerWithPrepare"}function oj({type:e,reducerName:t},n,r,i){if(!i)throw new Error(oi(18));const{payloadCreator:a,fulfilled:s,pending:u,rejected:c,settled:d,options:h}=n,p=i(e,a,h);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),c&&r.addCase(p.rejected,c),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(t,{fulfilled:s||Vd,pending:u||Vd,rejected:c||Vd,settled:d||Vd})}function Vd(){}var Gb="listenerMiddleware";Qo(`${Gb}/add`);Qo(`${Gb}/removeAll`);Qo(`${Gb}/remove`);function oi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vp={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vp.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,v=2,g=4,_=1,S=2,k=1,x=2,b=4,C=8,R=16,M=32,z=64,N=128,B=256,q=512,H=30,J="...",Pe=800,Fe=16,Te=1,nt=2,we=3,Z=1/0,W=9007199254740991,re=17976931348623157e292,ne=NaN,oe=4294967295,De=oe-1,be=oe>>>1,Ce=[["ary",N],["bind",k],["bindKey",x],["curry",C],["curryRight",R],["flip",q],["partial",M],["partialRight",z],["rearg",B]],Se="[object Arguments]",Oe="[object Array]",et="[object AsyncFunction]",lt="[object Boolean]",gt="[object Date]",_t="[object DOMException]",ft="[object Error]",Jt="[object Function]",Jn="[object GeneratorFunction]",Ne="[object Map]",ce="[object Number]",At="[object Null]",ut="[object Object]",yn="[object Promise]",Ei="[object Proxy]",bn="[object RegExp]",Dt="[object Set]",en="[object String]",Vt="[object Symbol]",li="[object Undefined]",Sr="[object WeakMap]",ha="[object WeakSet]",Vr="[object ArrayBuffer]",Q="[object DataView]",Re="[object Float32Array]",rt="[object Float64Array]",Ot="[object Int8Array]",ee="[object Int16Array]",fe="[object Int32Array]",zn="[object Uint8Array]",Gt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",wr="[object Uint32Array]",Vl=/\b__p \+= '';/g,as=/\b(__p \+=) '' \+/g,Wl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ti=/&(?:amp|lt|gt|quot|#39);/g,Bn=/[&<>"']/g,Ym=RegExp(Ti.source),Ai=RegExp(Bn.source),Xm=/<%-([\s\S]+?)%>/g,Qm=/<%([\s\S]+?)%>/g,gf=/<%=([\s\S]+?)%>/g,Zm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jm=/^\w*$/,Wr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ul=/[\\^$.*+?()[\]{}|]/g,ev=RegExp(Ul.source),Hl=/^\s+/,tv=/\s/,nv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mo=/\{\n\/\* \[wrapped with (.+)\] \*/,rv=/,? & /,iv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ov=/[()=,{}\[\]\/\s]/,av=/\\(\\)?/g,sv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ri=/\w*$/,lv=/^[-+]0x[0-9a-f]+$/i,uv=/^0b[01]+$/i,cv=/^\[object .+?Constructor\]$/,fv=/^0o[0-7]+$/i,dv=/^(?:0|[1-9]\d*)$/,hv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vo=/($^)/,pv=/['\n\r\u2028\u2029\\]/g,Ii="\\ud800-\\udfff",Gl="\\u0300-\\u036f",mv="\\ufe20-\\ufe2f",ss="\\u20d0-\\u20ff",Kl=Gl+mv+ss,yf="\\u2700-\\u27bf",bf="a-z\\xdf-\\xf6\\xf8-\\xff",vv="\\xac\\xb1\\xd7\\xf7",xf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gv="\\u2000-\\u206f",yv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sf="A-Z\\xc0-\\xd6\\xd8-\\xde",wf="\\ufe0e\\ufe0f",_f=vv+xf+gv+yv,ql="['’]",bv="["+Ii+"]",Cf="["+_f+"]",ls="["+Kl+"]",kf="\\d+",us="["+yf+"]",cs="["+bf+"]",Pf="[^"+Ii+_f+kf+yf+bf+Sf+"]",Yl="\\ud83c[\\udffb-\\udfff]",Ef="(?:"+ls+"|"+Yl+")",Tf="[^"+Ii+"]",Xl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ql="[\\ud800-\\udbff][\\udc00-\\udfff]",Mi="["+Sf+"]",Af="\\u200d",Rf="(?:"+cs+"|"+Pf+")",xv="(?:"+Mi+"|"+Pf+")",fs="(?:"+ql+"(?:d|ll|m|re|s|t|ve))?",If="(?:"+ql+"(?:D|LL|M|RE|S|T|VE))?",Mf=Ef+"?",$f="["+wf+"]?",ds="(?:"+Af+"(?:"+[Tf,Xl,Ql].join("|")+")"+$f+Mf+")*",Zl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hs=$f+Mf+ds,Sv="(?:"+[us,Xl,Ql].join("|")+")"+hs,Ff="(?:"+[Tf+ls+"?",ls,Xl,Ql,bv].join("|")+")",eu=RegExp(ql,"g"),Df=RegExp(ls,"g"),Ur=RegExp(Yl+"(?="+Yl+")|"+Ff+hs,"g"),pa=RegExp([Mi+"?"+cs+"+"+fs+"(?="+[Cf,Mi,"$"].join("|")+")",xv+"+"+If+"(?="+[Cf,Mi+Rf,"$"].join("|")+")",Mi+"?"+Rf+"+"+fs,Mi+"+"+If,Jl,Zl,kf,Sv].join("|"),"g"),wv=RegExp("["+Af+Ii+Kl+wf+"]"),Of=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_v=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nf=-1,dt={};dt[Re]=dt[rt]=dt[Ot]=dt[ee]=dt[fe]=dt[zn]=dt[Gt]=dt[Nt]=dt[wr]=!0,dt[Se]=dt[Oe]=dt[Vr]=dt[lt]=dt[Q]=dt[gt]=dt[ft]=dt[Jt]=dt[Ne]=dt[ce]=dt[ut]=dt[bn]=dt[Dt]=dt[en]=dt[Sr]=!1;var ct={};ct[Se]=ct[Oe]=ct[Vr]=ct[Q]=ct[lt]=ct[gt]=ct[Re]=ct[rt]=ct[Ot]=ct[ee]=ct[fe]=ct[Ne]=ct[ce]=ct[ut]=ct[bn]=ct[Dt]=ct[en]=ct[Vt]=ct[zn]=ct[Gt]=ct[Nt]=ct[wr]=!0,ct[ft]=ct[Jt]=ct[Sr]=!1;var Lf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cv={"&":"&","<":"<",">":">",'"':""","'":"'"},A={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},j=parseFloat,ie=parseInt,Le=typeof Gi=="object"&&Gi&&Gi.Object===Object&&Gi,it=typeof self=="object"&&self&&self.Object===Object&&self,Ee=Le||it||Function("return this")(),Me=t&&!t.nodeType&&t,Ke=Me&&!0&&e&&!e.nodeType&&e,Tn=Ke&&Ke.exports===Me,un=Tn&&Le.process,tn=function(){try{var O=Ke&&Ke.require&&Ke.require("util").types;return O||un&&un.binding&&un.binding("util")}catch{}}(),ps=tn&&tn.isArrayBuffer,ms=tn&&tn.isDate,tu=tn&&tn.isMap,oS=tn&&tn.isRegExp,aS=tn&&tn.isSet,sS=tn&&tn.isTypedArray;function er(O,U,V){switch(V.length){case 0:return O.call(U);case 1:return O.call(U,V[0]);case 2:return O.call(U,V[0],V[1]);case 3:return O.call(U,V[0],V[1],V[2])}return O.apply(U,V)}function M$(O,U,V,ae){for(var _e=-1,qe=O==null?0:O.length;++_e-1}function kv(O,U,V){for(var ae=-1,_e=O==null?0:O.length;++ae<_e;)if(V(U,O[ae]))return!0;return!1}function St(O,U){for(var V=-1,ae=O==null?0:O.length,_e=Array(ae);++V-1;);return V}function mS(O,U){for(var V=O.length;V--&&vs(U,O[V],0)>-1;);return V}function j$(O,U){for(var V=O.length,ae=0;V--;)O[V]===U&&++ae;return ae}var V$=Av(Lf),W$=Av(Cv);function U$(O){return"\\"+F[O]}function H$(O,U){return O==null?n:O[U]}function gs(O){return wv.test(O)}function G$(O){return Of.test(O)}function K$(O){for(var U,V=[];!(U=O.next()).done;)V.push(U.value);return V}function $v(O){var U=-1,V=Array(O.size);return O.forEach(function(ae,_e){V[++U]=[_e,ae]}),V}function vS(O,U){return function(V){return O(U(V))}}function bo(O,U){for(var V=-1,ae=O.length,_e=0,qe=[];++V-1}function F5(o,l){var f=this.__data__,m=nd(f,o);return m<0?(++this.size,f.push([o,l])):f[m][1]=l,this}$i.prototype.clear=R5,$i.prototype.delete=I5,$i.prototype.get=M5,$i.prototype.has=$5,$i.prototype.set=F5;function Fi(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l=l?o:l)),o}function Pr(o,l,f,m,w,T){var I,$=l&p,L=l&v,G=l&g;if(f&&(I=w?f(o,m,w,T):f(o)),I!==n)return I;if(!Ct(o))return o;var K=ke(o);if(K){if(I=LF(o),!$)return jn(o,I)}else{var Y=Sn(o),te=Y==Jt||Y==Jn;if(ko(o))return ZS(o,$);if(Y==ut||Y==Se||te&&!w){if(I=L||te?{}:gw(o),!$)return L?EF(o,X5(I,o)):PF(o,TS(I,o))}else{if(!ct[Y])return w?o:{};I=zF(o,Y,$)}}T||(T=new Gr);var ue=T.get(o);if(ue)return ue;T.set(o,I),Gw(o)?o.forEach(function(ge){I.add(Pr(ge,l,f,ge,o,T))}):Uw(o)&&o.forEach(function(ge,ze){I.set(ze,Pr(ge,l,f,ze,o,T))});var ve=G?L?og:ig:L?Wn:nn,Ie=K?n:ve(o);return _r(Ie||o,function(ge,ze){Ie&&(ze=ge,ge=o[ze]),lu(I,ze,Pr(ge,l,f,ze,o,T))}),I}function Q5(o){var l=nn(o);return function(f){return AS(f,o,l)}}function AS(o,l,f){var m=f.length;if(o==null)return!m;for(o=ht(o);m--;){var w=f[m],T=l[w],I=o[w];if(I===n&&!(w in o)||!T(I))return!1}return!0}function RS(o,l,f){if(typeof o!="function")throw new Cr(s);return mu(function(){o.apply(n,f)},l)}function uu(o,l,f,m){var w=-1,T=zf,I=!0,$=o.length,L=[],G=l.length;if(!$)return L;f&&(l=St(l,tr(f))),m?(T=kv,I=!1):l.length>=i&&(T=nu,I=!1,l=new ga(l));e:for(;++w<$;){var K=o[w],Y=f==null?K:f(K);if(K=m||K!==0?K:0,I&&Y===Y){for(var te=G;te--;)if(l[te]===Y)continue e;L.push(K)}else T(l,Y,m)||L.push(K)}return L}var So=rw(ui),IS=rw(jv,!0);function Z5(o,l){var f=!0;return So(o,function(m,w,T){return f=!!l(m,w,T),f}),f}function rd(o,l,f){for(var m=-1,w=o.length;++mw?0:w+f),m=m===n||m>w?w:Ae(m),m<0&&(m+=w),m=f>m?0:qw(m);f0&&f($)?l>1?cn($,l-1,f,m,w):yo(w,$):m||(w[w.length]=$)}return w}var Bv=iw(),$S=iw(!0);function ui(o,l){return o&&Bv(o,l,nn)}function jv(o,l){return o&&$S(o,l,nn)}function id(o,l){return go(l,function(f){return zi(o[f])})}function ba(o,l){l=_o(l,o);for(var f=0,m=l.length;o!=null&&fl}function eF(o,l){return o!=null&&ot.call(o,l)}function tF(o,l){return o!=null&&l in ht(o)}function nF(o,l,f){return o>=xn(l,f)&&o=120&&K.length>=120)?new ga(I&&K):n}K=o[0];var Y=-1,te=$[0];e:for(;++Y-1;)$!==o&&Yf.call($,L,1),Yf.call(o,L,1);return o}function US(o,l){for(var f=o?l.length:0,m=f-1;f--;){var w=l[f];if(f==m||w!==T){var T=w;Li(w)?Yf.call(o,w,1):Qv(o,w)}}return o}function qv(o,l){return o+Zf(CS()*(l-o+1))}function mF(o,l,f,m){for(var w=-1,T=qt(Qf((l-o)/(f||1)),0),I=V(T);T--;)I[m?T:++w]=o,o+=f;return I}function Yv(o,l){var f="";if(!o||l<1||l>W)return f;do l%2&&(f+=o),l=Zf(l/2),l&&(o+=o);while(l);return f}function $e(o,l){return dg(xw(o,l,Un),o+"")}function vF(o){return ES(Ts(o))}function gF(o,l){var f=Ts(o);return md(f,ya(l,0,f.length))}function du(o,l,f,m){if(!Ct(o))return o;l=_o(l,o);for(var w=-1,T=l.length,I=T-1,$=o;$!=null&&++ww?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var T=V(w);++m>>1,I=o[T];I!==null&&!rr(I)&&(f?I<=l:I=i){var G=l?null:IF(o);if(G)return jf(G);I=!1,w=nu,L=new ga}else L=l?[]:$;e:for(;++m=m?o:Er(o,l,f)}var QS=l5||function(o){return Ee.clearTimeout(o)};function ZS(o,l){if(l)return o.slice();var f=o.length,m=bS?bS(f):new o.constructor(f);return o.copy(m),m}function tg(o){var l=new o.constructor(o.byteLength);return new Kf(l).set(new Kf(o)),l}function wF(o,l){var f=l?tg(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function _F(o){var l=new o.constructor(o.source,Ri.exec(o));return l.lastIndex=o.lastIndex,l}function CF(o){return su?ht(su.call(o)):{}}function JS(o,l){var f=l?tg(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function ew(o,l){if(o!==l){var f=o!==n,m=o===null,w=o===o,T=rr(o),I=l!==n,$=l===null,L=l===l,G=rr(l);if(!$&&!G&&!T&&o>l||T&&I&&L&&!$&&!G||m&&I&&L||!f&&L||!w)return 1;if(!m&&!T&&!G&&o=$)return L;var G=f[m];return L*(G=="desc"?-1:1)}}return o.index-l.index}function tw(o,l,f,m){for(var w=-1,T=o.length,I=f.length,$=-1,L=l.length,G=qt(T-I,0),K=V(L+G),Y=!m;++$1?f[w-1]:n,I=w>2?f[2]:n;for(T=o.length>3&&typeof T=="function"?(w--,T):n,I&&Rn(f[0],f[1],I)&&(T=w<3?n:T,w=1),l=ht(l);++m-1?w[T?l[I]:I]:n}}function sw(o){return Ni(function(l){var f=l.length,m=f,w=kr.prototype.thru;for(o&&l.reverse();m--;){var T=l[m];if(typeof T!="function")throw new Cr(s);if(w&&!I&&hd(T)=="wrapper")var I=new kr([],!0)}for(m=I?m:f;++m1&&We.reverse(),K&&L$))return!1;var G=T.get(o),K=T.get(l);if(G&&K)return G==l&&K==o;var Y=-1,te=!0,ue=f&S?new ga:n;for(T.set(o,l),T.set(l,o);++Y<$;){var ve=o[Y],Ie=l[Y];if(m)var ge=I?m(Ie,ve,Y,l,o,T):m(ve,Ie,Y,o,l,T);if(ge!==n){if(ge)continue;te=!1;break}if(ue){if(!Ev(l,function(ze,We){if(!nu(ue,We)&&(ve===ze||w(ve,ze,f,m,T)))return ue.push(We)})){te=!1;break}}else if(!(ve===Ie||w(ve,Ie,f,m,T))){te=!1;break}}return T.delete(o),T.delete(l),te}function $F(o,l,f,m,w,T,I){switch(f){case Q:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case Vr:return!(o.byteLength!=l.byteLength||!T(new Kf(o),new Kf(l)));case lt:case gt:case ce:return Kr(+o,+l);case ft:return o.name==l.name&&o.message==l.message;case bn:case en:return o==l+"";case Ne:var $=$v;case Dt:var L=m&_;if($||($=jf),o.size!=l.size&&!L)return!1;var G=I.get(o);if(G)return G==l;m|=S,I.set(o,l);var K=pw($(o),$(l),m,w,T,I);return I.delete(o),K;case Vt:if(su)return su.call(o)==su.call(l)}return!1}function FF(o,l,f,m,w,T){var I=f&_,$=ig(o),L=$.length,G=ig(l),K=G.length;if(L!=K&&!I)return!1;for(var Y=L;Y--;){var te=$[Y];if(!(I?te in l:ot.call(l,te)))return!1}var ue=T.get(o),ve=T.get(l);if(ue&&ve)return ue==l&&ve==o;var Ie=!0;T.set(o,l),T.set(l,o);for(var ge=I;++Y1?"& ":"")+l[m],l=l.join(f>2?", ":" "),o.replace(nv,`{ +/* [wrapped with `+l+`] */ +`)}function jF(o){return ke(o)||wa(o)||!!(wS&&o&&o[wS])}function Li(o,l){var f=typeof o;return l=l??W,!!l&&(f=="number"||f!="symbol"&&dv.test(o))&&o>-1&&o%1==0&&o0){if(++l>=Pe)return arguments[0]}else l=0;return o.apply(n,arguments)}}function md(o,l){var f=-1,m=o.length,w=m-1;for(l=l===n?m:l;++f1?o[l-1]:n;return f=typeof f=="function"?(o.pop(),f):n,Mw(o,f)});function $w(o){var l=P(o);return l.__chain__=!0,l}function ZD(o,l){return l(o),o}function vd(o,l){return l(o)}var JD=Ni(function(o){var l=o.length,f=l?o[0]:0,m=this.__wrapped__,w=function(T){return zv(T,o)};return l>1||this.__actions__.length||!(m instanceof Be)||!Li(f)?this.thru(w):(m=m.slice(f,+f+(l?1:0)),m.__actions__.push({func:vd,args:[w],thisArg:n}),new kr(m,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function eO(){return $w(this)}function tO(){return new kr(this.value(),this.__chain__)}function nO(){this.__values__===n&&(this.__values__=Kw(this.value()));var o=this.__index__>=this.__values__.length,l=o?n:this.__values__[this.__index__++];return{done:o,value:l}}function rO(){return this}function iO(o){for(var l,f=this;f instanceof td;){var m=Pw(f);m.__index__=0,m.__values__=n,l?w.__wrapped__=m:l=m;var w=m;f=f.__wrapped__}return w.__wrapped__=o,l}function oO(){var o=this.__wrapped__;if(o instanceof Be){var l=o;return this.__actions__.length&&(l=new Be(this)),l=l.reverse(),l.__actions__.push({func:vd,args:[hg],thisArg:n}),new kr(l,this.__chain__)}return this.thru(hg)}function aO(){return YS(this.__wrapped__,this.__actions__)}var sO=ld(function(o,l,f){ot.call(o,f)?++o[f]:Di(o,f,1)});function lO(o,l,f){var m=ke(o)?lS:Z5;return f&&Rn(o,l,f)&&(l=n),m(o,me(l,3))}function uO(o,l){var f=ke(o)?go:MS;return f(o,me(l,3))}var cO=aw(Ew),fO=aw(Tw);function dO(o,l){return cn(gd(o,l),1)}function hO(o,l){return cn(gd(o,l),Z)}function pO(o,l,f){return f=f===n?1:Ae(f),cn(gd(o,l),f)}function Fw(o,l){var f=ke(o)?_r:So;return f(o,me(l,3))}function Dw(o,l){var f=ke(o)?$$:IS;return f(o,me(l,3))}var mO=ld(function(o,l,f){ot.call(o,f)?o[f].push(l):Di(o,f,[l])});function vO(o,l,f,m){o=Vn(o)?o:Ts(o),f=f&&!m?Ae(f):0;var w=o.length;return f<0&&(f=qt(w+f,0)),wd(o)?f<=w&&o.indexOf(l,f)>-1:!!w&&vs(o,l,f)>-1}var gO=$e(function(o,l,f){var m=-1,w=typeof l=="function",T=Vn(o)?V(o.length):[];return So(o,function(I){T[++m]=w?er(l,I,f):cu(I,l,f)}),T}),yO=ld(function(o,l,f){Di(o,f,l)});function gd(o,l){var f=ke(o)?St:LS;return f(o,me(l,3))}function bO(o,l,f,m){return o==null?[]:(ke(l)||(l=l==null?[]:[l]),f=m?n:f,ke(f)||(f=f==null?[]:[f]),VS(o,l,f))}var xO=ld(function(o,l,f){o[f?0:1].push(l)},function(){return[[],[]]});function SO(o,l,f){var m=ke(o)?Pv:dS,w=arguments.length<3;return m(o,me(l,4),f,w,So)}function wO(o,l,f){var m=ke(o)?F$:dS,w=arguments.length<3;return m(o,me(l,4),f,w,IS)}function _O(o,l){var f=ke(o)?go:MS;return f(o,xd(me(l,3)))}function CO(o){var l=ke(o)?ES:vF;return l(o)}function kO(o,l,f){(f?Rn(o,l,f):l===n)?l=1:l=Ae(l);var m=ke(o)?K5:gF;return m(o,l)}function PO(o){var l=ke(o)?q5:bF;return l(o)}function EO(o){if(o==null)return 0;if(Vn(o))return wd(o)?ys(o):o.length;var l=Sn(o);return l==Ne||l==Dt?o.size:Hv(o).length}function TO(o,l,f){var m=ke(o)?Ev:xF;return f&&Rn(o,l,f)&&(l=n),m(o,me(l,3))}var AO=$e(function(o,l){if(o==null)return[];var f=l.length;return f>1&&Rn(o,l[0],l[1])?l=[]:f>2&&Rn(l[0],l[1],l[2])&&(l=[l[0]]),VS(o,cn(l,1),[])}),yd=u5||function(){return Ee.Date.now()};function RO(o,l){if(typeof l!="function")throw new Cr(s);return o=Ae(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ow(o,l,f){return l=f?n:l,l=o&&l==null?o.length:l,Oi(o,N,n,n,n,n,l)}function Nw(o,l){var f;if(typeof l!="function")throw new Cr(s);return o=Ae(o),function(){return--o>0&&(f=l.apply(this,arguments)),o<=1&&(l=n),f}}var mg=$e(function(o,l,f){var m=k;if(f.length){var w=bo(f,Ps(mg));m|=M}return Oi(o,m,l,f,w)}),Lw=$e(function(o,l,f){var m=k|x;if(f.length){var w=bo(f,Ps(Lw));m|=M}return Oi(l,m,o,f,w)});function zw(o,l,f){l=f?n:l;var m=Oi(o,C,n,n,n,n,n,l);return m.placeholder=zw.placeholder,m}function Bw(o,l,f){l=f?n:l;var m=Oi(o,R,n,n,n,n,n,l);return m.placeholder=Bw.placeholder,m}function jw(o,l,f){var m,w,T,I,$,L,G=0,K=!1,Y=!1,te=!0;if(typeof o!="function")throw new Cr(s);l=Ar(l)||0,Ct(f)&&(K=!!f.leading,Y="maxWait"in f,T=Y?qt(Ar(f.maxWait)||0,l):T,te="trailing"in f?!!f.trailing:te);function ue(zt){var qr=m,ji=w;return m=w=n,G=zt,I=o.apply(ji,qr),I}function ve(zt){return G=zt,$=mu(ze,l),K?ue(zt):I}function Ie(zt){var qr=zt-L,ji=zt-G,a_=l-qr;return Y?xn(a_,T-ji):a_}function ge(zt){var qr=zt-L,ji=zt-G;return L===n||qr>=l||qr<0||Y&&ji>=T}function ze(){var zt=yd();if(ge(zt))return We(zt);$=mu(ze,Ie(zt))}function We(zt){return $=n,te&&m?ue(zt):(m=w=n,I)}function ir(){$!==n&&QS($),G=0,m=L=w=$=n}function In(){return $===n?I:We(yd())}function or(){var zt=yd(),qr=ge(zt);if(m=arguments,w=this,L=zt,qr){if($===n)return ve(L);if(Y)return QS($),$=mu(ze,l),ue(L)}return $===n&&($=mu(ze,l)),I}return or.cancel=ir,or.flush=In,or}var IO=$e(function(o,l){return RS(o,1,l)}),MO=$e(function(o,l,f){return RS(o,Ar(l)||0,f)});function $O(o){return Oi(o,q)}function bd(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new Cr(s);var f=function(){var m=arguments,w=l?l.apply(this,m):m[0],T=f.cache;if(T.has(w))return T.get(w);var I=o.apply(this,m);return f.cache=T.set(w,I)||T,I};return f.cache=new(bd.Cache||Fi),f}bd.Cache=Fi;function xd(o){if(typeof o!="function")throw new Cr(s);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function FO(o){return Nw(2,o)}var DO=SF(function(o,l){l=l.length==1&&ke(l[0])?St(l[0],tr(me())):St(cn(l,1),tr(me()));var f=l.length;return $e(function(m){for(var w=-1,T=xn(m.length,f);++w=l}),wa=DS(function(){return arguments}())?DS:function(o){return Rt(o)&&ot.call(o,"callee")&&!SS.call(o,"callee")},ke=V.isArray,XO=ps?tr(ps):iF;function Vn(o){return o!=null&&Sd(o.length)&&!zi(o)}function Lt(o){return Rt(o)&&Vn(o)}function QO(o){return o===!0||o===!1||Rt(o)&&An(o)==lt}var ko=f5||Eg,ZO=ms?tr(ms):oF;function JO(o){return Rt(o)&&o.nodeType===1&&!vu(o)}function eN(o){if(o==null)return!0;if(Vn(o)&&(ke(o)||typeof o=="string"||typeof o.splice=="function"||ko(o)||Es(o)||wa(o)))return!o.length;var l=Sn(o);if(l==Ne||l==Dt)return!o.size;if(pu(o))return!Hv(o).length;for(var f in o)if(ot.call(o,f))return!1;return!0}function tN(o,l){return fu(o,l)}function nN(o,l,f){f=typeof f=="function"?f:n;var m=f?f(o,l):n;return m===n?fu(o,l,n,f):!!m}function gg(o){if(!Rt(o))return!1;var l=An(o);return l==ft||l==_t||typeof o.message=="string"&&typeof o.name=="string"&&!vu(o)}function rN(o){return typeof o=="number"&&_S(o)}function zi(o){if(!Ct(o))return!1;var l=An(o);return l==Jt||l==Jn||l==et||l==Ei}function Ww(o){return typeof o=="number"&&o==Ae(o)}function Sd(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=W}function Ct(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function Rt(o){return o!=null&&typeof o=="object"}var Uw=tu?tr(tu):sF;function iN(o,l){return o===l||Uv(o,l,sg(l))}function oN(o,l,f){return f=typeof f=="function"?f:n,Uv(o,l,sg(l),f)}function aN(o){return Hw(o)&&o!=+o}function sN(o){if(UF(o))throw new _e(a);return OS(o)}function lN(o){return o===null}function uN(o){return o==null}function Hw(o){return typeof o=="number"||Rt(o)&&An(o)==ce}function vu(o){if(!Rt(o)||An(o)!=ut)return!1;var l=qf(o);if(l===null)return!0;var f=ot.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Uf.call(f)==o5}var yg=oS?tr(oS):lF;function cN(o){return Ww(o)&&o>=-W&&o<=W}var Gw=aS?tr(aS):uF;function wd(o){return typeof o=="string"||!ke(o)&&Rt(o)&&An(o)==en}function rr(o){return typeof o=="symbol"||Rt(o)&&An(o)==Vt}var Es=sS?tr(sS):cF;function fN(o){return o===n}function dN(o){return Rt(o)&&Sn(o)==Sr}function hN(o){return Rt(o)&&An(o)==ha}var pN=dd(Gv),mN=dd(function(o,l){return o<=l});function Kw(o){if(!o)return[];if(Vn(o))return wd(o)?Hr(o):jn(o);if(ru&&o[ru])return K$(o[ru]());var l=Sn(o),f=l==Ne?$v:l==Dt?jf:Ts;return f(o)}function Bi(o){if(!o)return o===0?o:0;if(o=Ar(o),o===Z||o===-Z){var l=o<0?-1:1;return l*re}return o===o?o:0}function Ae(o){var l=Bi(o),f=l%1;return l===l?f?l-f:l:0}function qw(o){return o?ya(Ae(o),0,oe):0}function Ar(o){if(typeof o=="number")return o;if(rr(o))return ne;if(Ct(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=Ct(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=hS(o);var f=uv.test(o);return f||fv.test(o)?ie(o.slice(2),f?2:8):lv.test(o)?ne:+o}function Yw(o){return ci(o,Wn(o))}function vN(o){return o?ya(Ae(o),-W,W):o===0?o:0}function tt(o){return o==null?"":nr(o)}var gN=Cs(function(o,l){if(pu(l)||Vn(l)){ci(l,nn(l),o);return}for(var f in l)ot.call(l,f)&&lu(o,f,l[f])}),Xw=Cs(function(o,l){ci(l,Wn(l),o)}),_d=Cs(function(o,l,f,m){ci(l,Wn(l),o,m)}),yN=Cs(function(o,l,f,m){ci(l,nn(l),o,m)}),bN=Ni(zv);function xN(o,l){var f=_s(o);return l==null?f:TS(f,l)}var SN=$e(function(o,l){o=ht(o);var f=-1,m=l.length,w=m>2?l[2]:n;for(w&&Rn(l[0],l[1],w)&&(m=1);++f1),T}),ci(o,og(o),f),m&&(f=Pr(f,p|v|g,MF));for(var w=l.length;w--;)Qv(f,l[w]);return f});function zN(o,l){return Zw(o,xd(me(l)))}var BN=Ni(function(o,l){return o==null?{}:hF(o,l)});function Zw(o,l){if(o==null)return{};var f=St(og(o),function(m){return[m]});return l=me(l),WS(o,f,function(m,w){return l(m,w[0])})}function jN(o,l,f){l=_o(l,o);var m=-1,w=l.length;for(w||(w=1,o=n);++ml){var m=o;o=l,l=m}if(f||o%1||l%1){var w=CS();return xn(o+w*(l-o+j("1e-"+((w+"").length-1))),l)}return qv(o,l)}var ZN=ks(function(o,l,f){return l=l.toLowerCase(),o+(f?t_(l):l)});function t_(o){return Sg(tt(o).toLowerCase())}function n_(o){return o=tt(o),o&&o.replace(hv,V$).replace(Df,"")}function JN(o,l,f){o=tt(o),l=nr(l);var m=o.length;f=f===n?m:ya(Ae(f),0,m);var w=f;return f-=l.length,f>=0&&o.slice(f,w)==l}function eL(o){return o=tt(o),o&&Ai.test(o)?o.replace(Bn,W$):o}function tL(o){return o=tt(o),o&&ev.test(o)?o.replace(Ul,"\\$&"):o}var nL=ks(function(o,l,f){return o+(f?"-":"")+l.toLowerCase()}),rL=ks(function(o,l,f){return o+(f?" ":"")+l.toLowerCase()}),iL=ow("toLowerCase");function oL(o,l,f){o=tt(o),l=Ae(l);var m=l?ys(o):0;if(!l||m>=l)return o;var w=(l-m)/2;return fd(Zf(w),f)+o+fd(Qf(w),f)}function aL(o,l,f){o=tt(o),l=Ae(l);var m=l?ys(o):0;return l&&m>>0,f?(o=tt(o),o&&(typeof l=="string"||l!=null&&!yg(l))&&(l=nr(l),!l&&gs(o))?Co(Hr(o),0,f):o.split(l,f)):[]}var hL=ks(function(o,l,f){return o+(f?" ":"")+Sg(l)});function pL(o,l,f){return o=tt(o),f=f==null?0:ya(Ae(f),0,o.length),l=nr(l),o.slice(f,f+l.length)==l}function mL(o,l,f){var m=P.templateSettings;f&&Rn(o,l,f)&&(l=n),o=tt(o),l=_d({},l,m,dw);var w=_d({},l.imports,m.imports,dw),T=nn(w),I=Mv(w,T),$,L,G=0,K=l.interpolate||vo,Y="__p += '",te=Fv((l.escape||vo).source+"|"+K.source+"|"+(K===gf?sv:vo).source+"|"+(l.evaluate||vo).source+"|$","g"),ue="//# sourceURL="+(ot.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nf+"]")+` +`;o.replace(te,function(ge,ze,We,ir,In,or){return We||(We=ir),Y+=o.slice(G,or).replace(pv,U$),ze&&($=!0,Y+=`' + +__e(`+ze+`) + +'`),In&&(L=!0,Y+=`'; +`+In+`; +__p += '`),We&&(Y+=`' + +((__t = (`+We+`)) == null ? '' : __t) + +'`),G=or+ge.length,ge}),Y+=`'; +`;var ve=ot.call(l,"variable")&&l.variable;if(!ve)Y=`with (obj) { +`+Y+` +} +`;else if(ov.test(ve))throw new _e(u);Y=(L?Y.replace(Vl,""):Y).replace(as,"$1").replace(Wl,"$1;"),Y="function("+(ve||"obj")+`) { +`+(ve?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(L?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Y+`return __p +}`;var Ie=i_(function(){return qe(T,ue+"return "+Y).apply(n,I)});if(Ie.source=Y,gg(Ie))throw Ie;return Ie}function vL(o){return tt(o).toLowerCase()}function gL(o){return tt(o).toUpperCase()}function yL(o,l,f){if(o=tt(o),o&&(f||l===n))return hS(o);if(!o||!(l=nr(l)))return o;var m=Hr(o),w=Hr(l),T=pS(m,w),I=mS(m,w)+1;return Co(m,T,I).join("")}function bL(o,l,f){if(o=tt(o),o&&(f||l===n))return o.slice(0,gS(o)+1);if(!o||!(l=nr(l)))return o;var m=Hr(o),w=mS(m,Hr(l))+1;return Co(m,0,w).join("")}function xL(o,l,f){if(o=tt(o),o&&(f||l===n))return o.replace(Hl,"");if(!o||!(l=nr(l)))return o;var m=Hr(o),w=pS(m,Hr(l));return Co(m,w).join("")}function SL(o,l){var f=H,m=J;if(Ct(l)){var w="separator"in l?l.separator:w;f="length"in l?Ae(l.length):f,m="omission"in l?nr(l.omission):m}o=tt(o);var T=o.length;if(gs(o)){var I=Hr(o);T=I.length}if(f>=T)return o;var $=f-ys(m);if($<1)return m;var L=I?Co(I,0,$).join(""):o.slice(0,$);if(w===n)return L+m;if(I&&($+=L.length-$),yg(w)){if(o.slice($).search(w)){var G,K=L;for(w.global||(w=Fv(w.source,tt(Ri.exec(w))+"g")),w.lastIndex=0;G=w.exec(K);)var Y=G.index;L=L.slice(0,Y===n?$:Y)}}else if(o.indexOf(nr(w),$)!=$){var te=L.lastIndexOf(w);te>-1&&(L=L.slice(0,te))}return L+m}function wL(o){return o=tt(o),o&&Ym.test(o)?o.replace(Ti,Q$):o}var _L=ks(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),Sg=ow("toUpperCase");function r_(o,l,f){return o=tt(o),l=f?n:l,l===n?G$(o)?e5(o):N$(o):o.match(l)||[]}var i_=$e(function(o,l){try{return er(o,n,l)}catch(f){return gg(f)?f:new _e(f)}}),CL=Ni(function(o,l){return _r(l,function(f){f=fi(f),Di(o,f,mg(o[f],o))}),o});function kL(o){var l=o==null?0:o.length,f=me();return o=l?St(o,function(m){if(typeof m[1]!="function")throw new Cr(s);return[f(m[0]),m[1]]}):[],$e(function(m){for(var w=-1;++wW)return[];var f=oe,m=xn(o,oe);l=me(l),o-=oe;for(var w=Iv(m,l);++f0||l<0)?new Be(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==n&&(l=Ae(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},Be.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Be.prototype.toArray=function(){return this.take(oe)},ui(Be.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),w=P[m?"take"+(l=="last"?"Right":""):l],T=m||/^find/.test(l);w&&(P.prototype[l]=function(){var I=this.__wrapped__,$=m?[1]:arguments,L=I instanceof Be,G=$[0],K=L||ke(I),Y=function(ze){var We=w.apply(P,yo([ze],$));return m&&te?We[0]:We};K&&f&&typeof G=="function"&&G.length!=1&&(L=K=!1);var te=this.__chain__,ue=!!this.__actions__.length,ve=T&&!te,Ie=L&&!ue;if(!T&&K){I=Ie?I:new Be(this);var ge=o.apply(I,$);return ge.__actions__.push({func:vd,args:[Y],thisArg:n}),new kr(ge,te)}return ve&&Ie?o.apply(this,$):(ge=this.thru(Y),ve?m?ge.value()[0]:ge.value():ge)})}),_r(["pop","push","shift","sort","splice","unshift"],function(o){var l=Vf[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);P.prototype[o]=function(){var w=arguments;if(m&&!this.__chain__){var T=this.value();return l.apply(ke(T)?T:[],w)}return this[f](function(I){return l.apply(ke(I)?I:[],w)})}}),ui(Be.prototype,function(o,l){var f=P[l];if(f){var m=f.name+"";ot.call(ws,m)||(ws[m]=[]),ws[m].push({name:l,func:f})}}),ws[ud(n,x).name]=[{name:"wrapper",func:n}],Be.prototype.clone=w5,Be.prototype.reverse=_5,Be.prototype.value=C5,P.prototype.at=JD,P.prototype.chain=eO,P.prototype.commit=tO,P.prototype.next=nO,P.prototype.plant=iO,P.prototype.reverse=oO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=aO,P.prototype.first=P.prototype.head,ru&&(P.prototype[ru]=rO),P},bs=t5();Ke?((Ke.exports=bs)._=bs,Me._=bs):Ee._=bs}).call(Gi)})(vp,vp.exports);var bi=vp.exports;function RC(e){window.localStorage.setItem("hhd_url",e)}function eA(){return window.localStorage.getItem("hhd_url")||"http://localhost:5335"}function IC(e){window.localStorage.setItem("hhd_token",e)}function tA(){return window.localStorage.getItem("hhd_token")||""}function aj(){window.localStorage.setItem("hhd_logged_in","true")}function sj(){return window.localStorage.getItem("hhd_logged_in")==="true"}function lj(){window.localStorage.setItem("hhd_logged_in","false")}const om=async(e,t)=>{const n={Authorization:`Bearer ${tA()}`};return t||(t={method:"GET"}),t.headers={...t==null?void 0:t.headers,...n},fetch(`${eA()}/api/v1/${e}`,t).then(r=>{if(r.ok)return r.json()}).catch(console.log)},Qy=im("hhd/fetchHhdSettings",async()=>await om("settings")),Zy=im("hhd/fetchHhdSettingsState",async()=>await om("state")),Jy=im("hhd/updateHhdState",async({path:e,value:t},n)=>{const r=bi.set({},e,t),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)};return await om("state",i)}),nA=im("hhd/fetchSectionNames",async()=>await om("sections"));var Kb=(e=>(e.LoginFailed="LoginFailed",e))(Kb||{});const Wd={settingsState:{},settings:{},loading:{settings:"idle",settingsState:"idle",updateHhdState:"idle"},error:{},sectionNames:{}},Ic=ej({name:"hhd",initialState:Wd,reducers:{updateHhdState:(e,t)=>{const{path:n,value:r}=t.payload;bi.set(e.settingsState,n,r)},resetHhdState:(e,t)=>{e.loading=Wd.loading,e.settings=Wd.settings,e.settingsState=Wd.settingsState},setError:(e,t)=>{const{errorName:n,errorMessage:r}=t.payload;bi.set(e.error,n,r)},clearError:(e,t)=>{const n=t.payload;delete e.error[n]}},extraReducers:e=>{e.addCase(Qy.pending,t=>{t.loading.settings="pending"}),e.addCase(Qy.fulfilled,(t,n)=>{t.settings=n.payload,t.loading.settings="succeeded"}),e.addCase(Zy.pending,t=>{t.loading.settingsState="pending"}),e.addCase(Zy.fulfilled,(t,n)=>{t.settingsState=n.payload,t.loading.settingsState="succeeded"}),e.addCase(Jy.pending,t=>{t.loading.updateHhdState="pending"}),e.addCase(Jy.fulfilled,(t,n)=>{t.settingsState=n.payload,t.loading.updateHhdState="succeeded"}),e.addCase(nA.fulfilled,(t,n)=>{t.sectionNames=n.payload||{}})}}),rA=e=>e.hhd.settings,iA=e=>e.hhd.settingsState,uj=e=>e.hhd.loading.settings,cj=e=>e.hhd.loading.settingsState,fj=e=>e.hhd.loading.updateHhdState==="pending",dj=e=>({stateLoading:cj(e),settingsLoading:uj(e)}),hj=e=>e.hhd.error.LoginFailed,pj=e=>e.hhd.sectionNames;function mj(e){if(e.sheet)return e.sheet;for(var t=0;t0?pn(Ll,--Qn):0,Rl--,Ut===10&&(Rl=1,sm--),Ut}function fr(){return Ut=Qn2||$c(Ut)>3?"":" "}function Tj(e,t){for(;--t&&fr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return of(e,Sh()+(t<6&&_i()==32&&fr()==32))}function t1(e){for(;fr();)switch(Ut){case e:return Qn;case 34:case 39:e!==34&&e!==39&&t1(Ut);break;case 40:e===41&&t1(e);break;case 92:fr();break}return Qn}function Aj(e,t){for(;fr()&&e+Ut!==57;)if(e+Ut===84&&_i()===47)break;return"/*"+of(t,Qn-1)+"*"+am(e===47?e:fr())}function Rj(e){for(;!$c(_i());)fr();return of(e,Qn)}function Ij(e){return cA(_h("",null,null,null,[""],e=uA(e),0,[0],e))}function _h(e,t,n,r,i,a,s,u,c){for(var d=0,h=0,p=s,v=0,g=0,_=0,S=1,k=1,x=1,b=0,C="",R=i,M=a,z=r,N=C;k;)switch(_=b,b=fr()){case 40:if(_!=108&&pn(N,p-1)==58){e1(N+=Qe(wh(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=wh(b);break;case 9:case 10:case 13:case 32:N+=Ej(_);break;case 92:N+=Tj(Sh()-1,7);continue;case 47:switch(_i()){case 42:case 47:Ud(Mj(Aj(fr(),Sh()),t,n),c);break;default:N+="/"}break;case 123*S:u[d++]=vi(N)*x;case 125*S:case 59:case 0:switch(b){case 0:case 125:k=0;case 59+h:x==-1&&(N=Qe(N,/\f/g,"")),g>0&&vi(N)-p&&Ud(g>32?$C(N+";",r,n,p-1):$C(Qe(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(Ud(z=MC(N,t,n,d,h,i,u,C,R=[],M=[],p),a),b===123)if(h===0)_h(N,t,z,z,R,a,p,u,M);else switch(v===99&&pn(N,3)===110?100:v){case 100:case 108:case 109:case 115:_h(e,z,z,r&&Ud(MC(e,z,z,0,0,i,u,C,i,R=[],p),M),i,M,p,u,r?R:M);break;default:_h(N,z,z,z,[""],M,0,u,M)}}d=h=g=0,S=x=1,C=N="",p=s;break;case 58:p=1+vi(N),g=_;default:if(S<1){if(b==123)--S;else if(b==125&&S++==0&&Pj()==125)continue}switch(N+=am(b),b*S){case 38:x=h>0?1:(N+="\f",-1);break;case 44:u[d++]=(vi(N)-1)*x,x=1;break;case 64:_i()===45&&(N+=wh(fr())),v=_i(),h=p=vi(C=N+=Rj(Sh())),b++;break;case 45:_===45&&vi(N)==2&&(S=0)}}return a}function MC(e,t,n,r,i,a,s,u,c,d,h){for(var p=i-1,v=i===0?a:[""],g=Xb(v),_=0,S=0,k=0;_0?v[x]+" "+b:Qe(b,/&\f/g,v[x])))&&(c[k++]=C);return lm(e,t,n,i===0?qb:u,c,d,h)}function Mj(e,t,n){return lm(e,t,n,oA,am(kj()),Mc(e,2,-2),0)}function $C(e,t,n,r){return lm(e,t,n,Yb,Mc(e,0,r),Mc(e,r+1,-1),r)}function dl(e,t){for(var n="",r=Xb(e),i=0;i6)switch(pn(e,t+1)){case 109:if(pn(e,t+4)!==45)break;case 102:return Qe(e,/(.+:)(.+)-([^]+)/,"$1"+Xe+"$2-$3$1"+gp+(pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~e1(e,"stretch")?dA(Qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pn(e,t+1)!==115)break;case 6444:switch(pn(e,vi(e)-3-(~e1(e,"!important")&&10))){case 107:return Qe(e,":",":"+Xe)+e;case 101:return Qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xe+(pn(e,14)===45?"inline-":"")+"box$3$1"+Xe+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(pn(e,t+11)){case 114:return Xe+e+Cn+Qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xe+e+Cn+Qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xe+e+Cn+Qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xe+e+Cn+e+e}return e}var jj=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Yb:t.return=dA(t.value,t.length);break;case aA:return dl([ku(t,{value:Qe(t.value,"@","@"+Xe)})],i);case qb:if(t.length)return Cj(t.props,function(a){switch(_j(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return dl([ku(t,{props:[Qe(a,/:(read-\w+)/,":"+gp+"$1")]})],i);case"::placeholder":return dl([ku(t,{props:[Qe(a,/:(plac\w+)/,":"+Xe+"input-$1")]}),ku(t,{props:[Qe(a,/:(plac\w+)/,":"+gp+"$1")]}),ku(t,{props:[Qe(a,/:(plac\w+)/,Cn+"input-$1")]})],i)}return""})}},Vj=[jj],Wj=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||Vj,a={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),x=1;x=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var t6={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},n6=/[A-Z]|^ms/g,r6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bA=function(t){return t.charCodeAt(1)===45},OC=function(t){return t!=null&&typeof t!="boolean"},o0=fA(function(e){return bA(e)?e:e.replace(n6,"-$&").toLowerCase()}),NC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(r6,function(r,i,a){return gi={name:i,styles:a,next:gi},i})}return t6[t]!==1&&!bA(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fc(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return gi={name:n.name,styles:n.styles,next:gi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)gi={name:r.name,styles:r.styles,next:gi},r=r.next;var i=n.styles+";";return i}return i6(e,t,n)}case"function":{if(e!==void 0){var a=gi,s=n(e);return gi=a,Fc(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function i6(e,t,n){var r="";if(Array.isArray(n))for(var i=0;iE.jsx(bm,{styles:CA}),d6=({scope:e=""})=>E.jsx(bm,{styles:_A` + 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; + } + + ${CA} + `});function h6(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ft(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=e,u=y.createContext(s);u.displayName=t;function c(){var d;const h=y.useContext(u);if(!h&&n){const p=new Error(a??h6(r,i));throw p.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,p,c),p}return h}return[u.Provider,c,u]}var[p6,m6]=Ft({strict:!1,name:"PortalManagerContext"});function kA(e){const{children:t,zIndex:n}=e;return E.jsx(p6,{value:{zIndex:n},children:t})}kA.displayName="PortalManager";var Zo=globalThis!=null&&globalThis.document?y.useLayoutEffect:y.useEffect,[PA,v6]=Ft({strict:!1,name:"PortalContext"}),tx="chakra-portal",g6=".chakra-portal",y6=e=>E.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),b6=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=y.useState(null),a=y.useRef(null),[,s]=y.useState({});y.useEffect(()=>s({}),[]);const u=v6(),c=m6();Zo(()=>{if(!r)return;const h=r.ownerDocument,p=t?u??h.body:h.body;if(!p)return;a.current=h.createElement("div"),a.current.className=tx,p.appendChild(a.current),s({});const v=a.current;return()=>{p.contains(v)&&p.removeChild(v)}},[r]);const d=c!=null&&c.zIndex?E.jsx(y6,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return a.current?jb.createPortal(E.jsx(PA,{value:a.current,children:d}),a.current):E.jsx("span",{ref:h=>{h&&i(h)}})},x6=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,a=i??(typeof window<"u"?document.body:void 0),s=y.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=tx),c},[i]),[,u]=y.useState({});return Zo(()=>u({}),[]),Zo(()=>{if(!(!s||!a))return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?jb.createPortal(E.jsx(PA,{value:r?s:null,children:t}),s):null};function af(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?E.jsx(x6,{containerRef:n,...r}):E.jsx(b6,{...r})}af.className=tx;af.selector=g6;af.displayName="Portal";function EA(){const e=y.useContext(Dc);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var nx=y.createContext({});nx.displayName="ColorModeContext";function rx(){const e=y.useContext(nx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Hd={light:"chakra-ui-light",dark:"chakra-ui-dark"};function S6(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?Hd.dark:Hd.light),document.body.classList.remove(r?Hd.light:Hd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),a=s=>{r(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var w6="chakra-ui-color-mode";function _6(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var C6=_6(w6),BC=()=>{};function jC(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function TA(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=C6}=e,u=i==="dark"?"dark":"light",[c,d]=y.useState(()=>jC(s,u)),[h,p]=y.useState(()=>jC(s)),{getSystemTheme:v,setClassName:g,setDataset:_,addListener:S}=y.useMemo(()=>S6({preventTransition:a}),[a]),k=i==="system"&&!c?h:c,x=y.useCallback(R=>{const M=R==="system"?v():R;d(M),g(M==="dark"),_(M),s.set(M)},[s,v,g,_]);Zo(()=>{i==="system"&&p(v())},[]),y.useEffect(()=>{const R=s.get();if(R){x(R);return}if(i==="system"){x("system");return}x(u)},[s,u,i,x]);const b=y.useCallback(()=>{x(k==="dark"?"light":"dark")},[k,x]);y.useEffect(()=>{if(r)return S(x)},[r,S,x]);const C=y.useMemo(()=>({colorMode:t??k,toggleColorMode:t?BC:b,setColorMode:t?BC:x,forced:t!==void 0}),[k,b,x,t]);return E.jsx(nx.Provider,{value:C,children:n})}TA.displayName="ColorModeProvider";function k6(){const e=rx(),t=EA();return{...e,theme:t}}var xe=(...e)=>e.filter(Boolean).join(" ");function P6(){return!1}function zr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var sf=e=>{const{condition:t,message:n}=e;t&&P6()&&console.warn(n)};function Bo(e,...t){return E6(e)?e(...t):e}var E6=e=>typeof e=="function",je=e=>e?"":void 0,hl=e=>e?!0:void 0;function He(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function T6(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var yp={exports:{}};yp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",h="[object Boolean]",p="[object Date]",v="[object Error]",g="[object Function]",_="[object GeneratorFunction]",S="[object Map]",k="[object Number]",x="[object Null]",b="[object Object]",C="[object Proxy]",R="[object RegExp]",M="[object Set]",z="[object String]",N="[object Undefined]",B="[object WeakMap]",q="[object ArrayBuffer]",H="[object DataView]",J="[object Float32Array]",Pe="[object Float64Array]",Fe="[object Int8Array]",Te="[object Int16Array]",nt="[object Int32Array]",we="[object Uint8Array]",Z="[object Uint8ClampedArray]",W="[object Uint16Array]",re="[object Uint32Array]",ne=/[\\^$.*+?()[\]{}|]/g,oe=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,be={};be[J]=be[Pe]=be[Fe]=be[Te]=be[nt]=be[we]=be[Z]=be[W]=be[re]=!0,be[u]=be[c]=be[q]=be[h]=be[H]=be[p]=be[v]=be[g]=be[S]=be[k]=be[b]=be[R]=be[M]=be[z]=be[B]=!1;var Ce=typeof Gi=="object"&&Gi&&Gi.Object===Object&&Gi,Se=typeof self=="object"&&self&&self.Object===Object&&self,Oe=Ce||Se||Function("return this")(),et=t&&!t.nodeType&&t,lt=et&&!0&&e&&!e.nodeType&&e,gt=lt&<.exports===et,_t=gt&&Ce.process,ft=function(){try{var A=lt&<.require&<.require("util").types;return A||_t&&_t.binding&&_t.binding("util")}catch{}}(),Jt=ft&&ft.isTypedArray;function Jn(A,F,j){switch(j.length){case 0:return A.call(F);case 1:return A.call(F,j[0]);case 2:return A.call(F,j[0],j[1]);case 3:return A.call(F,j[0],j[1],j[2])}return A.apply(F,j)}function Ne(A,F){for(var j=-1,ie=Array(A);++j-1}function nv(A,F){var j=this.__data__,ie=Ii(j,A);return ie<0?(++this.size,j.push([A,F])):j[ie][1]=F,this}Wr.prototype.clear=Ul,Wr.prototype.delete=ev,Wr.prototype.get=Hl,Wr.prototype.has=tv,Wr.prototype.set=nv;function mo(A){var F=-1,j=A==null?0:A.length;for(this.clear();++F1?j[Le-1]:void 0,Ee=Le>2?j[2]:void 0;for(it=A.length>3&&typeof it=="function"?(Le--,it):void 0,Ee&&Tf(j[0],j[1],Ee)&&(it=Le<3?void 0:it,Le=1),F=Object(F);++ie-1&&A%1==0&&A0){if(++F>=i)return arguments[0]}else F=0;return A.apply(void 0,arguments)}}function $f(A){if(A!=null){try{return en.call(A)}catch{}try{return A+""}catch{}}return""}function ds(A,F){return A===F||A!==A&&F!==F}var Zl=Kl(function(){return arguments}())?Kl:function(A){return pa(A)&&Vt.call(A,"callee")&&!zn.call(A,"callee")},Jl=Array.isArray;function hs(A){return A!=null&&Df(A.length)&&!eu(A)}function Sv(A){return pa(A)&&hs(A)}var Ff=Vl||Cv;function eu(A){if(!Ur(A))return!1;var F=ss(A);return F==g||F==_||F==d||F==C}function Df(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=s}function Ur(A){var F=typeof A;return A!=null&&(F=="object"||F=="function")}function pa(A){return A!=null&&typeof A=="object"}function wv(A){if(!pa(A)||ss(A)!=b)return!1;var F=ee(A);if(F===null)return!0;var j=Vt.call(F,"constructor")&&F.constructor;return typeof j=="function"&&j instanceof j&&en.call(j)==ha}var Of=Jt?ce(Jt):bf;function _v(A){return Cf(A,Nf(A))}function Nf(A){return hs(A)?hv(A,!0):vv(A)}var dt=ls(function(A,F,j,ie){xf(A,F,j,ie)});function ct(A){return function(){return A}}function Lf(A){return A}function Cv(){return!1}e.exports=dt})(yp,yp.exports);var A6=yp.exports;const Nr=G1(A6);var R6=e=>/!(important)?$/.test(e),VC=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,I6=(e,t)=>n=>{const r=String(t),i=R6(r),a=VC(r),s=e?`${e}.${a}`:a;let u=zr(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=VC(u),i?`${u} !important`:u};function ix(e){const{scale:t,transform:n,compose:r}=e;return(a,s)=>{var u;const c=I6(t,a)(s);let d=(u=n==null?void 0:n(c,s))!=null?u:c;return r&&(d=r(d,s)),d}}var Gd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Rr(e,t){return n=>{const r={property:n,scale:e};return r.transform=ix({scale:e,transform:t}),r}}var M6=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function $6(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:M6(t),transform:n?ix({scale:n,compose:r}):r}}var AA=["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 F6(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...AA].join(" ")}function D6(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...AA].join(" ")}var O6={"--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(" ")},N6={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 L6(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 z6={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},n1={"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"},B6=new Set(Object.values(n1)),r1=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),j6=e=>e.trim();function V6(e,t){if(e==null||r1.has(e))return e;if(!(i1(e)||r1.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!a||!s)return e;const u=a.includes("-gradient")?a:`${a}-gradient`,[c,...d]=s.split(",").map(j6).filter(Boolean);if((d==null?void 0:d.length)===0)return e;const h=c in n1?n1[c]:c;d.unshift(h);const p=d.map(v=>{if(B6.has(v))return v;const g=v.indexOf(" "),[_,S]=g!==-1?[v.substr(0,g),v.substr(g+1)]:[v],k=i1(S)?S:S&&S.split(" "),x=`colors.${_}`,b=x in t.__cssMap?t.__cssMap[x].varRef:_;return k?[b,...Array.isArray(k)?k:[k]].join(" "):b});return`${u}(${p.join(", ")})`}var i1=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),W6=(e,t)=>V6(e,t??{});function U6(e){return/^var\(--.+\)$/.test(e)}var H6=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},hi=e=>t=>`${e}(${t})`,Ue={filter(e){return e!=="auto"?e:O6},backdropFilter(e){return e!=="auto"?e:N6},ring(e){return L6(Ue.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?F6():e==="auto-gpu"?D6():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=H6(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(U6(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:W6,blur:hi("blur"),opacity:hi("opacity"),brightness:hi("brightness"),contrast:hi("contrast"),dropShadow:hi("drop-shadow"),grayscale:hi("grayscale"),hueRotate:e=>hi("hue-rotate")(Ue.degree(e)),invert:hi("invert"),saturate:hi("saturate"),sepia:hi("sepia"),bgImage(e){return e==null||i1(e)||r1.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=z6[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},D={borderWidths:Rr("borderWidths"),borderStyles:Rr("borderStyles"),colors:Rr("colors"),borders:Rr("borders"),gradients:Rr("gradients",Ue.gradient),radii:Rr("radii",Ue.px),space:Rr("space",Gd(Ue.vh,Ue.px)),spaceT:Rr("space",Gd(Ue.vh,Ue.px)),degreeT(e){return{property:e,transform:Ue.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:ix({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Rr("sizes",Gd(Ue.vh,Ue.px)),sizesT:Rr("sizes",Gd(Ue.vh,Ue.fraction)),shadows:Rr("shadows"),logical:$6,blur:Rr("blur",Ue.blur)},Ch={background:D.colors("background"),backgroundColor:D.colors("backgroundColor"),backgroundImage:D.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ue.bgClip},bgSize:D.prop("backgroundSize"),bgPosition:D.prop("backgroundPosition"),bg:D.colors("background"),bgColor:D.colors("backgroundColor"),bgPos:D.prop("backgroundPosition"),bgRepeat:D.prop("backgroundRepeat"),bgAttachment:D.prop("backgroundAttachment"),bgGradient:D.gradients("backgroundImage"),bgClip:{transform:Ue.bgClip}};Object.assign(Ch,{bgImage:Ch.backgroundImage,bgImg:Ch.backgroundImage});var Ye={border:D.borders("border"),borderWidth:D.borderWidths("borderWidth"),borderStyle:D.borderStyles("borderStyle"),borderColor:D.colors("borderColor"),borderRadius:D.radii("borderRadius"),borderTop:D.borders("borderTop"),borderBlockStart:D.borders("borderBlockStart"),borderTopLeftRadius:D.radii("borderTopLeftRadius"),borderStartStartRadius:D.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:D.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:D.radii("borderTopRightRadius"),borderStartEndRadius:D.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:D.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:D.borders("borderRight"),borderInlineEnd:D.borders("borderInlineEnd"),borderBottom:D.borders("borderBottom"),borderBlockEnd:D.borders("borderBlockEnd"),borderBottomLeftRadius:D.radii("borderBottomLeftRadius"),borderBottomRightRadius:D.radii("borderBottomRightRadius"),borderLeft:D.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:D.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:D.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:D.borders(["borderLeft","borderRight"]),borderInline:D.borders("borderInline"),borderY:D.borders(["borderTop","borderBottom"]),borderBlock:D.borders("borderBlock"),borderTopWidth:D.borderWidths("borderTopWidth"),borderBlockStartWidth:D.borderWidths("borderBlockStartWidth"),borderTopColor:D.colors("borderTopColor"),borderBlockStartColor:D.colors("borderBlockStartColor"),borderTopStyle:D.borderStyles("borderTopStyle"),borderBlockStartStyle:D.borderStyles("borderBlockStartStyle"),borderBottomWidth:D.borderWidths("borderBottomWidth"),borderBlockEndWidth:D.borderWidths("borderBlockEndWidth"),borderBottomColor:D.colors("borderBottomColor"),borderBlockEndColor:D.colors("borderBlockEndColor"),borderBottomStyle:D.borderStyles("borderBottomStyle"),borderBlockEndStyle:D.borderStyles("borderBlockEndStyle"),borderLeftWidth:D.borderWidths("borderLeftWidth"),borderInlineStartWidth:D.borderWidths("borderInlineStartWidth"),borderLeftColor:D.colors("borderLeftColor"),borderInlineStartColor:D.colors("borderInlineStartColor"),borderLeftStyle:D.borderStyles("borderLeftStyle"),borderInlineStartStyle:D.borderStyles("borderInlineStartStyle"),borderRightWidth:D.borderWidths("borderRightWidth"),borderInlineEndWidth:D.borderWidths("borderInlineEndWidth"),borderRightColor:D.colors("borderRightColor"),borderInlineEndColor:D.colors("borderInlineEndColor"),borderRightStyle:D.borderStyles("borderRightStyle"),borderInlineEndStyle:D.borderStyles("borderInlineEndStyle"),borderTopRadius:D.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:D.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:D.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:D.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ye,{rounded:Ye.borderRadius,roundedTop:Ye.borderTopRadius,roundedTopLeft:Ye.borderTopLeftRadius,roundedTopRight:Ye.borderTopRightRadius,roundedTopStart:Ye.borderStartStartRadius,roundedTopEnd:Ye.borderStartEndRadius,roundedBottom:Ye.borderBottomRadius,roundedBottomLeft:Ye.borderBottomLeftRadius,roundedBottomRight:Ye.borderBottomRightRadius,roundedBottomStart:Ye.borderEndStartRadius,roundedBottomEnd:Ye.borderEndEndRadius,roundedLeft:Ye.borderLeftRadius,roundedRight:Ye.borderRightRadius,roundedStart:Ye.borderInlineStartRadius,roundedEnd:Ye.borderInlineEndRadius,borderStart:Ye.borderInlineStart,borderEnd:Ye.borderInlineEnd,borderTopStartRadius:Ye.borderStartStartRadius,borderTopEndRadius:Ye.borderStartEndRadius,borderBottomStartRadius:Ye.borderEndStartRadius,borderBottomEndRadius:Ye.borderEndEndRadius,borderStartRadius:Ye.borderInlineStartRadius,borderEndRadius:Ye.borderInlineEndRadius,borderStartWidth:Ye.borderInlineStartWidth,borderEndWidth:Ye.borderInlineEndWidth,borderStartColor:Ye.borderInlineStartColor,borderEndColor:Ye.borderInlineEndColor,borderStartStyle:Ye.borderInlineStartStyle,borderEndStyle:Ye.borderInlineEndStyle});var G6={color:D.colors("color"),textColor:D.colors("color"),fill:D.colors("fill"),stroke:D.colors("stroke")},o1={boxShadow:D.shadows("boxShadow"),mixBlendMode:!0,blendMode:D.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:D.prop("backgroundBlendMode"),opacity:!0};Object.assign(o1,{shadow:o1.boxShadow});var K6={filter:{transform:Ue.filter},blur:D.blur("--chakra-blur"),brightness:D.propT("--chakra-brightness",Ue.brightness),contrast:D.propT("--chakra-contrast",Ue.contrast),hueRotate:D.propT("--chakra-hue-rotate",Ue.hueRotate),invert:D.propT("--chakra-invert",Ue.invert),saturate:D.propT("--chakra-saturate",Ue.saturate),dropShadow:D.propT("--chakra-drop-shadow",Ue.dropShadow),backdropFilter:{transform:Ue.backdropFilter},backdropBlur:D.blur("--chakra-backdrop-blur"),backdropBrightness:D.propT("--chakra-backdrop-brightness",Ue.brightness),backdropContrast:D.propT("--chakra-backdrop-contrast",Ue.contrast),backdropHueRotate:D.propT("--chakra-backdrop-hue-rotate",Ue.hueRotate),backdropInvert:D.propT("--chakra-backdrop-invert",Ue.invert),backdropSaturate:D.propT("--chakra-backdrop-saturate",Ue.saturate)},bp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ue.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:D.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:D.space("gap"),rowGap:D.space("rowGap"),columnGap:D.space("columnGap")};Object.assign(bp,{flexDir:bp.flexDirection});var RA={gridGap:D.space("gridGap"),gridColumnGap:D.space("gridColumnGap"),gridRowGap:D.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},q6={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ue.outline},outlineOffset:!0,outlineColor:D.colors("outlineColor")},Mr={width:D.sizesT("width"),inlineSize:D.sizesT("inlineSize"),height:D.sizes("height"),blockSize:D.sizes("blockSize"),boxSize:D.sizes(["width","height"]),minWidth:D.sizes("minWidth"),minInlineSize:D.sizes("minInlineSize"),minHeight:D.sizes("minHeight"),minBlockSize:D.sizes("minBlockSize"),maxWidth:D.sizes("maxWidth"),maxInlineSize:D.sizes("maxInlineSize"),maxHeight:D.sizes("maxHeight"),maxBlockSize:D.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:D.propT("float",Ue.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Mr,{w:Mr.width,h:Mr.height,minW:Mr.minWidth,maxW:Mr.maxWidth,minH:Mr.minHeight,maxH:Mr.maxHeight,overscroll:Mr.overscrollBehavior,overscrollX:Mr.overscrollBehaviorX,overscrollY:Mr.overscrollBehaviorY});var Y6={listStyleType:!0,listStylePosition:!0,listStylePos:D.prop("listStylePosition"),listStyleImage:!0,listStyleImg:D.prop("listStyleImage")};function X6(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,a,s)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,a,s);return u.set(i,c),c}},Z6=Q6(X6),J6={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},eV={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},a0=(e,t,n)=>{const r={},i=Z6(e,t,{});for(const a in i)a in n&&n[a]!=null||(r[a]=i[a]);return r},tV={srOnly:{transform(e){return e===!0?J6:e==="focusable"?eV:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>a0(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>a0(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>a0(t,e,n)}},Ju={position:!0,pos:D.prop("position"),zIndex:D.prop("zIndex","zIndices"),inset:D.spaceT("inset"),insetX:D.spaceT(["left","right"]),insetInline:D.spaceT("insetInline"),insetY:D.spaceT(["top","bottom"]),insetBlock:D.spaceT("insetBlock"),top:D.spaceT("top"),insetBlockStart:D.spaceT("insetBlockStart"),bottom:D.spaceT("bottom"),insetBlockEnd:D.spaceT("insetBlockEnd"),left:D.spaceT("left"),insetInlineStart:D.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:D.spaceT("right"),insetInlineEnd:D.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ju,{insetStart:Ju.insetInlineStart,insetEnd:Ju.insetInlineEnd});var nV={ring:{transform:Ue.ring},ringColor:D.colors("--chakra-ring-color"),ringOffset:D.prop("--chakra-ring-offset-width"),ringOffsetColor:D.colors("--chakra-ring-offset-color"),ringInset:D.prop("--chakra-ring-inset")},bt={margin:D.spaceT("margin"),marginTop:D.spaceT("marginTop"),marginBlockStart:D.spaceT("marginBlockStart"),marginRight:D.spaceT("marginRight"),marginInlineEnd:D.spaceT("marginInlineEnd"),marginBottom:D.spaceT("marginBottom"),marginBlockEnd:D.spaceT("marginBlockEnd"),marginLeft:D.spaceT("marginLeft"),marginInlineStart:D.spaceT("marginInlineStart"),marginX:D.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:D.spaceT("marginInline"),marginY:D.spaceT(["marginTop","marginBottom"]),marginBlock:D.spaceT("marginBlock"),padding:D.space("padding"),paddingTop:D.space("paddingTop"),paddingBlockStart:D.space("paddingBlockStart"),paddingRight:D.space("paddingRight"),paddingBottom:D.space("paddingBottom"),paddingBlockEnd:D.space("paddingBlockEnd"),paddingLeft:D.space("paddingLeft"),paddingInlineStart:D.space("paddingInlineStart"),paddingInlineEnd:D.space("paddingInlineEnd"),paddingX:D.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:D.space("paddingInline"),paddingY:D.space(["paddingTop","paddingBottom"]),paddingBlock:D.space("paddingBlock")};Object.assign(bt,{m:bt.margin,mt:bt.marginTop,mr:bt.marginRight,me:bt.marginInlineEnd,marginEnd:bt.marginInlineEnd,mb:bt.marginBottom,ml:bt.marginLeft,ms:bt.marginInlineStart,marginStart:bt.marginInlineStart,mx:bt.marginX,my:bt.marginY,p:bt.padding,pt:bt.paddingTop,py:bt.paddingY,px:bt.paddingX,pb:bt.paddingBottom,pl:bt.paddingLeft,ps:bt.paddingInlineStart,paddingStart:bt.paddingInlineStart,pr:bt.paddingRight,pe:bt.paddingInlineEnd,paddingEnd:bt.paddingInlineEnd});var rV={textDecorationColor:D.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:D.shadows("textShadow")},iV={clipPath:!0,transform:D.propT("transform",Ue.transform),transformOrigin:!0,translateX:D.spaceT("--chakra-translate-x"),translateY:D.spaceT("--chakra-translate-y"),skewX:D.degreeT("--chakra-skew-x"),skewY:D.degreeT("--chakra-skew-y"),scaleX:D.prop("--chakra-scale-x"),scaleY:D.prop("--chakra-scale-y"),scale:D.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:D.degreeT("--chakra-rotate")},oV={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:D.prop("transitionDuration","transition.duration"),transitionProperty:D.prop("transitionProperty","transition.property"),transitionTimingFunction:D.prop("transitionTimingFunction","transition.easing")},aV={fontFamily:D.prop("fontFamily","fonts"),fontSize:D.prop("fontSize","fontSizes",Ue.px),fontWeight:D.prop("fontWeight","fontWeights"),lineHeight:D.prop("lineHeight","lineHeights"),letterSpacing:D.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"}},sV={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:D.spaceT("scrollMargin"),scrollMarginTop:D.spaceT("scrollMarginTop"),scrollMarginBottom:D.spaceT("scrollMarginBottom"),scrollMarginLeft:D.spaceT("scrollMarginLeft"),scrollMarginRight:D.spaceT("scrollMarginRight"),scrollMarginX:D.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:D.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:D.spaceT("scrollPadding"),scrollPaddingTop:D.spaceT("scrollPaddingTop"),scrollPaddingBottom:D.spaceT("scrollPaddingBottom"),scrollPaddingLeft:D.spaceT("scrollPaddingLeft"),scrollPaddingRight:D.spaceT("scrollPaddingRight"),scrollPaddingX:D.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:D.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function IA(e){return zr(e)&&e.reference?e.reference:String(e)}var Sm=(e,...t)=>t.map(IA).join(` ${e} `).replace(/calc/g,""),WC=(...e)=>`calc(${Sm("+",...e)})`,UC=(...e)=>`calc(${Sm("-",...e)})`,a1=(...e)=>`calc(${Sm("*",...e)})`,HC=(...e)=>`calc(${Sm("/",...e)})`,GC=e=>{const t=IA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:a1(t,-1)},Ra=Object.assign(e=>({add:(...t)=>Ra(WC(e,...t)),subtract:(...t)=>Ra(UC(e,...t)),multiply:(...t)=>Ra(a1(e,...t)),divide:(...t)=>Ra(HC(e,...t)),negate:()=>Ra(GC(e)),toString:()=>e.toString()}),{add:WC,subtract:UC,multiply:a1,divide:HC,negate:GC});function lV(e,t="-"){return e.replace(/\s+/g,t)}function uV(e){const t=lV(e.toString());return fV(cV(t))}function cV(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function fV(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function dV(e,t=""){return[t,e].filter(Boolean).join("-")}function hV(e,t){return`var(${e}${t?`, ${t}`:""})`}function pV(e,t=""){return uV(`--${dV(e,t)}`)}function pe(e,t,n){const r=pV(e,n);return{variable:r,reference:hV(r,t)}}function mV(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,a]=r;n[i]=pe(`${e}-${i}`,a);continue}n[r]=pe(`${e}-${r}`)}return n}function vV(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function gV(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function s1(e){if(e==null)return e;const{unitless:t}=gV(e);return t||typeof e=="number"?`${e}px`:e}var MA=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ox=e=>Object.fromEntries(Object.entries(e).sort(MA));function KC(e){const t=ox(e);return Object.assign(Object.values(t),t)}function yV(e){const t=Object.keys(ox(e));return new Set(t)}function qC(e){var t;if(!e)return e;e=(t=s1(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function Ou(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${s1(e)})`),t&&n.push("and",`(max-width: ${s1(t)})`),n.join(" ")}function bV(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=KC(e),r=Object.entries(e).sort(MA).map(([s,u],c,d)=>{var h;let[,p]=(h=d[c+1])!=null?h:[];return p=parseFloat(p)>0?qC(p):void 0,{_minW:qC(u),breakpoint:s,minW:u,maxW:p,maxWQuery:Ou(null,p),minWQuery:Ou(u),minMaxQuery:Ou(u,p)}}),i=yV(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(c=>i.has(c))},asObject:ox(e),asArray:KC(e),details:r,get(s){return r.find(u=>u.breakpoint===s)},media:[null,...n.map(s=>Ou(s)).slice(1)],toArrayValue(s){if(!zr(s))throw new Error("toArrayValue: value must be an object");const u=a.map(c=>{var d;return(d=s[c])!=null?d:null});for(;vV(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,c,d)=>{const h=a[d];return h!=null&&c!=null&&(u[h]=c),u},{})}}}var fn={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}`},Eo=e=>$A(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Vi=e=>$A(t=>e(t,"~ &"),"[data-peer]",".peer"),$A=(e,...t)=>t.map(e).join(", "),wm={_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:Eo(fn.hover),_peerHover:Vi(fn.hover),_groupFocus:Eo(fn.focus),_peerFocus:Vi(fn.focus),_groupFocusVisible:Eo(fn.focusVisible),_peerFocusVisible:Vi(fn.focusVisible),_groupActive:Eo(fn.active),_peerActive:Vi(fn.active),_groupDisabled:Eo(fn.disabled),_peerDisabled:Vi(fn.disabled),_groupInvalid:Eo(fn.invalid),_peerInvalid:Vi(fn.invalid),_groupChecked:Eo(fn.checked),_peerChecked:Vi(fn.checked),_groupFocusWithin:Eo(fn.focusWithin),_peerFocusWithin:Vi(fn.focusWithin),_peerPlaceholderShown:Vi(fn.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]"},FA=Object.keys(wm);function YC(e,t){return pe(String(e).replace(/\./g,"-"),void 0,t)}function xV(e,t){let n={};const r={};for(const[i,a]of Object.entries(e)){const{isSemantic:s,value:u}=a,{variable:c,reference:d}=YC(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const v=i.split("."),[g,..._]=v,S=`${g}.-${_.join(".")}`,k=Ra.negate(u),x=Ra.negate(d);r[S]={value:k,var:c,varRef:x}}n[c]=u,r[i]={value:u,var:c,varRef:d};continue}const h=v=>{const _=[String(i).split(".")[0],v].join(".");if(!e[_])return v;const{reference:k}=YC(_,t==null?void 0:t.cssVarPrefix);return k},p=zr(u)?u:{default:u};n=Nr(n,Object.entries(p).reduce((v,[g,_])=>{var S,k;if(!_)return v;const x=h(`${_}`);if(g==="default")return v[c]=x,v;const b=(k=(S=wm)==null?void 0:S[g])!=null?k:g;return v[b]={[c]:x},v},{})),r[i]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:r}}function SV(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function wV(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function _V(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function XC(e,t,n={}){const{stop:r,getKey:i}=n;function a(s,u=[]){var c;if(_V(s)||Array.isArray(s)){const d={};for(const[h,p]of Object.entries(s)){const v=(c=i==null?void 0:i(h))!=null?c:h,g=[...u,v];if(r!=null&&r(s,g))return t(s,u);d[v]=a(p,g)}return d}return t(s,u)}return a(e)}var CV=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function kV(e){return wV(e,CV)}function PV(e){return e.semanticTokens}function EV(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var TV=e=>FA.includes(e)||e==="default";function AV({tokens:e,semanticTokens:t}){const n={};return XC(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),XC(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(TV)}),n}function RV(e){var t;const n=EV(e),r=kV(n),i=PV(n),a=AV({tokens:r,semanticTokens:i}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=xV(a,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:bV(n.breakpoints)}),n}var ax=Nr({},Ch,Ye,G6,bp,Mr,K6,nV,q6,RA,tV,Ju,o1,bt,sV,aV,rV,iV,Y6,oV),IV=Object.assign({},bt,Mr,bp,RA,Ju),MV=Object.keys(IV),$V=[...Object.keys(ax),...FA],FV={...ax,...wm},DV=e=>e in FV,OV=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,a={};for(const s in e){let u=Bo(e[s],t);if(u==null)continue;if(u=zr(u)&&n(u)?r(u):u,!Array.isArray(u)){a[s]=u;continue}const c=u.slice(0,i.length).length;for(let d=0;de.startsWith("--")&&typeof t=="string"&&!LV(t),BV=(e,t)=>{var n,r;if(t==null)return t;const i=c=>{var d,h;return(h=(d=e.__cssMap)==null?void 0:d[c])==null?void 0:h.varRef},a=c=>{var d;return(d=i(c))!=null?d:c},[s,u]=NV(t);return t=(r=(n=i(s))!=null?n:a(u))!=null?r:a(t),t};function jV(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(a,s=!1)=>{var u,c,d;const h=Bo(a,r),p=OV(h)(r);let v={};for(let g in p){const _=p[g];let S=Bo(_,r);g in n&&(g=n[g]),zV(g,S)&&(S=BV(r,S));let k=t[g];if(k===!0&&(k={property:g}),zr(S)){v[g]=(u=v[g])!=null?u:{},v[g]=Nr({},v[g],i(S,!0));continue}let x=(d=(c=k==null?void 0:k.transform)==null?void 0:c.call(k,S,r,h))!=null?d:S;x=k!=null&&k.processResult?i(x,!0):x;const b=Bo(k==null?void 0:k.property,r);if(!s&&(k!=null&&k.static)){const C=Bo(k.static,r);v=Nr({},v,C)}if(b&&Array.isArray(b)){for(const C of b)v[C]=x;continue}if(b){b==="&"&&zr(x)?v=Nr({},v,x):v[b]=x;continue}if(zr(x)){v=Nr({},v,x);continue}v[g]=x}return v};return i}var DA=e=>t=>jV({theme:t,pseudos:wm,configs:ax})(e);function vt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function VV(e,t){if(Array.isArray(e))return e;if(zr(e))return t(e);if(e!=null)return[e]}function WV(e,t){for(let n=t+1;n{Nr(d,{[C]:v?b[C]:{[x]:b[C]}})});continue}if(!g){v?Nr(d,b):d[x]=b;continue}d[x]=b}}return d}}function HV(e){return t=>{var n;const{variant:r,size:i,theme:a}=t,s=UV(a);return Nr({},Bo((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",i,t),s(e,"variants",r,t))}}function ln(e){return SV(e,["styleConfig","size","variant","colorScheme"])}var GV=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function KV(e){return zr(e)?GV.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var qV={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"},YV={"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)"},XV={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},QV={property:qV,easing:YV,duration:XV},ZV=QV,JV={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},e8=JV,t8={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},n8=t8,r8={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},i8=r8,o8={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"}},a8=o8,s8={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},l8=s8,u8={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"},c8=u8,f8={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},d8=f8,h8={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"}},OA=h8,NA={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"},p8={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"},m8={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},v8={...NA,...p8,container:m8},LA=v8,g8={breakpoints:i8,zIndices:e8,radii:l8,blur:d8,colors:a8,...OA,sizes:LA,shadows:c8,space:NA,borders:n8,transition:ZV},{defineMultiStyleConfig:y8,definePartsStyle:Nu}=vt(["stepper","step","title","description","indicator","separator","icon","number"]),Ki=pe("stepper-indicator-size"),qs=pe("stepper-icon-size"),Ys=pe("stepper-title-font-size"),Lu=pe("stepper-description-font-size"),Pu=pe("stepper-accent-color"),b8=Nu(({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"},[Pu.variable]:`colors.${e}.500`,_dark:{[Pu.variable]:`colors.${e}.200`}},title:{fontSize:Ys.reference,fontWeight:"medium"},description:{fontSize:Lu.reference,color:"chakra-subtle-text"},number:{fontSize:Ys.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:qs.reference,height:qs.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ki.reference,height:Ki.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Pu.reference},"&[data-status=complete]":{bg:Pu.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Pu.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ki.reference} - 8px)`,top:`calc(${Ki.reference} + 4px)`,insetStart:`calc(${Ki.reference} / 2 - 1px)`}}})),x8=y8({baseStyle:b8,sizes:{xs:Nu({stepper:{[Ki.variable]:"sizes.4",[qs.variable]:"sizes.3",[Ys.variable]:"fontSizes.xs",[Lu.variable]:"fontSizes.xs"}}),sm:Nu({stepper:{[Ki.variable]:"sizes.6",[qs.variable]:"sizes.4",[Ys.variable]:"fontSizes.sm",[Lu.variable]:"fontSizes.xs"}}),md:Nu({stepper:{[Ki.variable]:"sizes.8",[qs.variable]:"sizes.5",[Ys.variable]:"fontSizes.md",[Lu.variable]:"fontSizes.sm"}}),lg:Nu({stepper:{[Ki.variable]:"sizes.10",[qs.variable]:"sizes.6",[Ys.variable]:"fontSizes.lg",[Lu.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Je(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...h){r();for(const p of h)t[p]=c(p);return Je(e,t)}function a(...h){for(const p of h)p in t||(t[p]=c(p));return Je(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([p,v])=>[p,v.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([p,v])=>[p,v.className]))}function c(h){const g=`chakra-${(["container","root"].includes(h??"")?[e]:[e,h]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>h}}return{parts:i,toPart:c,extend:a,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var S8=Je("accordion").parts("root","container","button","panel").extend("icon"),w8=Je("alert").parts("title","description","container").extend("icon","spinner"),_8=Je("avatar").parts("label","badge","container").extend("excessLabel","group"),C8=Je("breadcrumb").parts("link","item","container").extend("separator");Je("button").parts();var k8=Je("checkbox").parts("control","icon","container").extend("label");Je("progress").parts("track","filledTrack").extend("label");var P8=Je("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),E8=Je("editable").parts("preview","input","textarea"),T8=Je("form").parts("container","requiredIndicator","helperText"),A8=Je("formError").parts("text","icon"),R8=Je("input").parts("addon","field","element","group"),I8=Je("list").parts("container","item","icon"),M8=Je("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),$8=Je("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),F8=Je("numberinput").parts("root","field","stepperGroup","stepper");Je("pininput").parts("field");var D8=Je("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),O8=Je("progress").parts("label","filledTrack","track"),N8=Je("radio").parts("container","control","label"),L8=Je("select").parts("field","icon"),z8=Je("slider").parts("container","track","thumb","filledTrack","mark"),B8=Je("stat").parts("container","label","helpText","number","icon"),j8=Je("switch").parts("container","track","thumb","label"),V8=Je("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),W8=Je("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),U8=Je("tag").parts("container","label","closeButton"),H8=Je("card").parts("container","header","body","footer");Je("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Da(e,t,n){return Math.min(Math.max(e,n),t)}class G8 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var zu=G8;function sx(e){if(typeof e!="string")throw new zu(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=e9.test(e)?Y8(e):e;const n=X8.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(u=>parseInt(Oc(u,2),16)),parseInt(Oc(s[3]||"f",2),16)/255]}const r=Q8.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,16)),parseInt(s[3]||"ff",16)/255]}const i=Z8.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,10)),parseFloat(s[3]||"1")]}const a=J8.exec(t);if(a){const[s,u,c,d]=Array.from(a).slice(1).map(parseFloat);if(Da(0,100,u)!==u)throw new zu(e);if(Da(0,100,c)!==c)throw new zu(e);return[...t9(s,u,c),Number.isNaN(d)?1:d]}throw new zu(e)}function K8(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const QC=e=>parseInt(e.replace(/_/g,""),36),q8="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=QC(t.substring(0,3)),r=QC(t.substring(3)).toString(16);let i="";for(let a=0;a<6-r.length;a++)i+="0";return e[n]=`${i}${r}`,e},{});function Y8(e){const t=e.toLowerCase().trim(),n=q8[K8(t)];if(!n)throw new zu(e);return`#${n}`}const Oc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),X8=new RegExp(`^#${Oc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Q8=new RegExp(`^#${Oc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Z8=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Oc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),J8=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,e9=/^[a-z]+$/i,ZC=e=>Math.round(e*255),t9=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(ZC);const i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),s=a*(1-Math.abs(i%2-1));let u=0,c=0,d=0;i>=0&&i<1?(u=a,c=s):i>=1&&i<2?(u=s,c=a):i>=2&&i<3?(c=a,d=s):i>=3&&i<4?(c=s,d=a):i>=4&&i<5?(u=s,d=a):i>=5&&i<6&&(u=a,d=s);const h=r-a/2,p=u+h,v=c+h,g=d+h;return[p,v,g].map(ZC)};function n9(e,t,n,r){return`rgba(${Da(0,255,e).toFixed()}, ${Da(0,255,t).toFixed()}, ${Da(0,255,n).toFixed()}, ${parseFloat(Da(0,1,r).toFixed(3))})`}function r9(e,t){const[n,r,i,a]=sx(e);return n9(n,r,i,a-t)}function i9(e){const[t,n,r,i]=sx(e);let a=s=>{const u=Da(0,255,s).toString(16);return u.length===1?`0${u}`:u};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):""}`}function o9(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Fn=(e,t,n)=>{const r=o9(e,`colors.${t}`,t);try{return i9(r),r}catch{return n??"#000000"}},s9=e=>{const[t,n,r]=sx(e);return(t*299+n*587+r*114)/1e3},l9=e=>t=>{const n=Fn(t,e);return s9(n)<128?"dark":"light"},u9=e=>t=>l9(e)(t)==="dark",Il=(e,t)=>n=>{const r=Fn(n,e);return r9(r,1-t)};function JC(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 c9=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function f9(e){const t=c9();return!e||a9(e)?t:e.string&&e.colors?h9(e.string,e.colors):e.string&&!e.colors?d9(e.string):e.colors&&!e.string?p9(e.colors):t}function d9(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function h9(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function lx(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function zA(e){return zr(e)&&e.reference?e.reference:String(e)}var _m=(e,...t)=>t.map(zA).join(` ${e} `).replace(/calc/g,""),ek=(...e)=>`calc(${_m("+",...e)})`,tk=(...e)=>`calc(${_m("-",...e)})`,l1=(...e)=>`calc(${_m("*",...e)})`,nk=(...e)=>`calc(${_m("/",...e)})`,rk=e=>{const t=zA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:l1(t,-1)},qi=Object.assign(e=>({add:(...t)=>qi(ek(e,...t)),subtract:(...t)=>qi(tk(e,...t)),multiply:(...t)=>qi(l1(e,...t)),divide:(...t)=>qi(nk(e,...t)),negate:()=>qi(rk(e)),toString:()=>e.toString()}),{add:ek,subtract:tk,multiply:l1,divide:nk,negate:rk});function m9(e){return!Number.isInteger(parseFloat(e.toString()))}function v9(e,t="-"){return e.replace(/\s+/g,t)}function BA(e){const t=v9(e.toString());return t.includes("\\.")?e:m9(e)?t.replace(".","\\."):e}function g9(e,t=""){return[t,BA(e)].filter(Boolean).join("-")}function y9(e,t){return`var(${BA(e)}${t?`, ${t}`:""})`}function b9(e,t=""){return`--${g9(e,t)}`}function Zt(e,t){const n=b9(e,t==null?void 0:t.prefix);return{variable:n,reference:y9(n,x9(t==null?void 0:t.fallback))}}function x9(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:S9,definePartsStyle:kh}=vt(j8.keys),ec=Zt("switch-track-width"),za=Zt("switch-track-height"),s0=Zt("switch-track-diff"),w9=qi.subtract(ec,za),u1=Zt("switch-thumb-x"),Eu=Zt("switch-bg"),_9=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ec.reference],height:[za.reference],transitionProperty:"common",transitionDuration:"fast",[Eu.variable]:"colors.gray.300",_dark:{[Eu.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Eu.variable]:`colors.${t}.500`,_dark:{[Eu.variable]:`colors.${t}.200`}},bg:Eu.reference}},C9={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[za.reference],height:[za.reference],_checked:{transform:`translateX(${u1.reference})`}},k9=kh(e=>({container:{[s0.variable]:w9,[u1.variable]:s0.reference,_rtl:{[u1.variable]:qi(s0).negate().toString()}},track:_9(e),thumb:C9})),P9={sm:kh({container:{[ec.variable]:"1.375rem",[za.variable]:"sizes.3"}}),md:kh({container:{[ec.variable]:"1.875rem",[za.variable]:"sizes.4"}}),lg:kh({container:{[ec.variable]:"2.875rem",[za.variable]:"sizes.6"}})},E9=S9({baseStyle:k9,sizes:P9,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:T9,definePartsStyle:pl}=vt(V8.keys),A9=pl({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"}}),xp={"&[data-is-numeric=true]":{textAlign:"end"}},R9=pl(e=>{const{colorScheme:t}=e;return{th:{color:he("gray.600","gray.400")(e),borderBottom:"1px",borderColor:he(`${t}.100`,`${t}.700`)(e),...xp},td:{borderBottom:"1px",borderColor:he(`${t}.100`,`${t}.700`)(e),...xp},caption:{color:he("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),I9=pl(e=>{const{colorScheme:t}=e;return{th:{color:he("gray.600","gray.400")(e),borderBottom:"1px",borderColor:he(`${t}.100`,`${t}.700`)(e),...xp},td:{borderBottom:"1px",borderColor:he(`${t}.100`,`${t}.700`)(e),...xp},caption:{color:he("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:he(`${t}.100`,`${t}.700`)(e)},td:{background:he(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),M9={simple:R9,striped:I9,unstyled:{}},$9={sm:pl({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:pl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:pl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},F9=T9({baseStyle:A9,variants:M9,sizes:$9,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Gn=pe("tabs-color"),ni=pe("tabs-bg"),Kd=pe("tabs-border-color"),{defineMultiStyleConfig:D9,definePartsStyle:Ci}=vt(W8.keys),O9=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},N9=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}}},L9=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},z9={p:4},B9=Ci(e=>({root:O9(e),tab:N9(e),tablist:L9(e),tabpanel:z9})),j9={sm:Ci({tab:{py:1,px:4,fontSize:"sm"}}),md:Ci({tab:{fontSize:"md",py:2,px:4}}),lg:Ci({tab:{fontSize:"lg",py:3,px:4}})},V9=Ci(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Gn.variable]:`colors.${t}.600`,_dark:{[Gn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[ni.variable]:"colors.gray.200",_dark:{[ni.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Gn.reference,bg:ni.reference}}}),W9=Ci(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Kd.variable]:"transparent",_selected:{[Gn.variable]:`colors.${t}.600`,[Kd.variable]:"colors.white",_dark:{[Gn.variable]:`colors.${t}.300`,[Kd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Kd.reference},color:Gn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),U9=Ci(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[ni.variable]:"colors.gray.50",_dark:{[ni.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[ni.variable]:"colors.white",[Gn.variable]:`colors.${t}.600`,_dark:{[ni.variable]:"colors.gray.800",[Gn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Gn.reference,bg:ni.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),H9=Ci(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Fn(n,`${t}.700`),bg:Fn(n,`${t}.100`)}}}}),G9=Ci(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Gn.variable]:"colors.gray.600",_dark:{[Gn.variable]:"inherit"},_selected:{[Gn.variable]:"colors.white",[ni.variable]:`colors.${t}.600`,_dark:{[Gn.variable]:"colors.gray.800",[ni.variable]:`colors.${t}.300`}},color:Gn.reference,bg:ni.reference}}}),K9=Ci({}),q9={line:V9,enclosed:W9,"enclosed-colored":U9,"soft-rounded":H9,"solid-rounded":G9,unstyled:K9},Y9=D9({baseStyle:B9,sizes:j9,variants:q9,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),jt=mV("badge",["bg","color","shadow"]),X9={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},Q9=e=>{const{colorScheme:t,theme:n}=e,r=Il(`${t}.500`,.6)(n);return{[jt.bg.variable]:`colors.${t}.500`,[jt.color.variable]:"colors.white",_dark:{[jt.bg.variable]:r,[jt.color.variable]:"colors.whiteAlpha.800"}}},Z9=e=>{const{colorScheme:t,theme:n}=e,r=Il(`${t}.200`,.16)(n);return{[jt.bg.variable]:`colors.${t}.100`,[jt.color.variable]:`colors.${t}.800`,_dark:{[jt.bg.variable]:r,[jt.color.variable]:`colors.${t}.200`}}},J9=e=>{const{colorScheme:t,theme:n}=e,r=Il(`${t}.200`,.8)(n);return{[jt.color.variable]:`colors.${t}.500`,_dark:{[jt.color.variable]:r},[jt.shadow.variable]:`inset 0 0 0px 1px ${jt.color.reference}`}},eW={solid:Q9,subtle:Z9,outline:J9},tc={baseStyle:X9,variants:eW,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:tW,definePartsStyle:Ba}=vt(U8.keys),ik=pe("tag-bg"),ok=pe("tag-color"),l0=pe("tag-shadow"),Ph=pe("tag-min-height"),Eh=pe("tag-min-width"),Th=pe("tag-font-size"),Ah=pe("tag-padding-inline"),nW={fontWeight:"medium",lineHeight:1.2,outline:0,[ok.variable]:jt.color.reference,[ik.variable]:jt.bg.reference,[l0.variable]:jt.shadow.reference,color:ok.reference,bg:ik.reference,boxShadow:l0.reference,borderRadius:"md",minH:Ph.reference,minW:Eh.reference,fontSize:Th.reference,px:Ah.reference,_focusVisible:{[l0.variable]:"shadows.outline"}},rW={lineHeight:1.2,overflow:"visible"},iW={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}},oW=Ba({container:nW,label:rW,closeButton:iW}),aW={sm:Ba({container:{[Ph.variable]:"sizes.5",[Eh.variable]:"sizes.5",[Th.variable]:"fontSizes.xs",[Ah.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ba({container:{[Ph.variable]:"sizes.6",[Eh.variable]:"sizes.6",[Th.variable]:"fontSizes.sm",[Ah.variable]:"space.2"}}),lg:Ba({container:{[Ph.variable]:"sizes.8",[Eh.variable]:"sizes.8",[Th.variable]:"fontSizes.md",[Ah.variable]:"space.3"}})},sW={subtle:Ba(e=>{var t;return{container:(t=tc.variants)==null?void 0:t.subtle(e)}}),solid:Ba(e=>{var t;return{container:(t=tc.variants)==null?void 0:t.solid(e)}}),outline:Ba(e=>{var t;return{container:(t=tc.variants)==null?void 0:t.outline(e)}})},lW=tW({variants:sW,baseStyle:oW,sizes:aW,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Qi,defineMultiStyleConfig:uW}=vt(R8.keys),Xs=pe("input-height"),Qs=pe("input-font-size"),Zs=pe("input-padding"),Js=pe("input-border-radius"),cW=Qi({addon:{height:Xs.reference,fontSize:Qs.reference,px:Zs.reference,borderRadius:Js.reference},field:{width:"100%",height:Xs.reference,fontSize:Qs.reference,px:Zs.reference,borderRadius:Js.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),To={lg:{[Qs.variable]:"fontSizes.lg",[Zs.variable]:"space.4",[Js.variable]:"radii.md",[Xs.variable]:"sizes.12"},md:{[Qs.variable]:"fontSizes.md",[Zs.variable]:"space.4",[Js.variable]:"radii.md",[Xs.variable]:"sizes.10"},sm:{[Qs.variable]:"fontSizes.sm",[Zs.variable]:"space.3",[Js.variable]:"radii.sm",[Xs.variable]:"sizes.8"},xs:{[Qs.variable]:"fontSizes.xs",[Zs.variable]:"space.2",[Js.variable]:"radii.sm",[Xs.variable]:"sizes.6"}},fW={lg:Qi({field:To.lg,group:To.lg}),md:Qi({field:To.md,group:To.md}),sm:Qi({field:To.sm,group:To.sm}),xs:Qi({field:To.xs,group:To.xs})};function ux(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||he("blue.500","blue.300")(e),errorBorderColor:n||he("red.500","red.300")(e)}}var dW=Qi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:he("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fn(t,r),boxShadow:`0 0 0 1px ${Fn(t,r)}`},_focusVisible:{zIndex:1,borderColor:Fn(t,n),boxShadow:`0 0 0 1px ${Fn(t,n)}`}},addon:{border:"1px solid",borderColor:he("inherit","whiteAlpha.50")(e),bg:he("gray.100","whiteAlpha.300")(e)}}}),hW=Qi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{border:"2px solid",borderColor:"transparent",bg:he("gray.100","whiteAlpha.50")(e),_hover:{bg:he("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fn(t,r)},_focusVisible:{bg:"transparent",borderColor:Fn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:he("gray.100","whiteAlpha.50")(e)}}}),pW=Qi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fn(t,r),boxShadow:`0px 1px 0px 0px ${Fn(t,r)}`},_focusVisible:{borderColor:Fn(t,n),boxShadow:`0px 1px 0px 0px ${Fn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),mW=Qi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),vW={outline:dW,filled:hW,flushed:pW,unstyled:mW},Ze=uW({baseStyle:cW,sizes:fW,variants:vW,defaultProps:{size:"md",variant:"outline"}}),ak,gW={...(ak=Ze.baseStyle)==null?void 0:ak.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},sk,lk,yW={outline:e=>{var t,n;return(n=(t=Ze.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=Ze.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=Ze.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(lk=(sk=Ze.variants)==null?void 0:sk.unstyled.field)!=null?lk:{}},uk,ck,fk,dk,hk,pk,mk,vk,bW={xs:(ck=(uk=Ze.sizes)==null?void 0:uk.xs.field)!=null?ck:{},sm:(dk=(fk=Ze.sizes)==null?void 0:fk.sm.field)!=null?dk:{},md:(pk=(hk=Ze.sizes)==null?void 0:hk.md.field)!=null?pk:{},lg:(vk=(mk=Ze.sizes)==null?void 0:mk.lg.field)!=null?vk:{}},xW={baseStyle:gW,sizes:bW,variants:yW,defaultProps:{size:"md",variant:"outline"}},qd=Zt("tooltip-bg"),u0=Zt("tooltip-fg"),SW=Zt("popper-arrow-bg"),wW={bg:qd.reference,color:u0.reference,[qd.variable]:"colors.gray.700",[u0.variable]:"colors.whiteAlpha.900",_dark:{[qd.variable]:"colors.gray.300",[u0.variable]:"colors.gray.900"},[SW.variable]:qd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},_W={baseStyle:wW},{defineMultiStyleConfig:CW,definePartsStyle:Bu}=vt(O8.keys),kW=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,a=he(JC(),JC("1rem","rgba(0,0,0,0.1)"))(e),s=he(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( + to right, + transparent 0%, + ${Fn(n,s)} 50%, + transparent 100% + )`;return{...!r&&i&&a,...r?{bgImage:u}:{bgColor:s}}},PW={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},EW=e=>({bg:he("gray.100","whiteAlpha.300")(e)}),TW=e=>({transitionProperty:"common",transitionDuration:"slow",...kW(e)}),AW=Bu(e=>({label:PW,filledTrack:TW(e),track:EW(e)})),RW={xs:Bu({track:{h:"1"}}),sm:Bu({track:{h:"2"}}),md:Bu({track:{h:"3"}}),lg:Bu({track:{h:"4"}})},IW=CW({sizes:RW,baseStyle:AW,defaultProps:{size:"md",colorScheme:"blue"}}),MW=e=>typeof e=="function";function On(e,...t){return MW(e)?e(...t):e}var{definePartsStyle:Rh,defineMultiStyleConfig:$W}=vt(k8.keys),nc=pe("checkbox-size"),FW=e=>{const{colorScheme:t}=e;return{w:nc.reference,h:nc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:he(`${t}.500`,`${t}.200`)(e),borderColor:he(`${t}.500`,`${t}.200`)(e),color:he("white","gray.900")(e),_hover:{bg:he(`${t}.600`,`${t}.300`)(e),borderColor:he(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:he("gray.200","transparent")(e),bg:he("gray.200","whiteAlpha.300")(e),color:he("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:he(`${t}.500`,`${t}.200`)(e),borderColor:he(`${t}.500`,`${t}.200`)(e),color:he("white","gray.900")(e)},_disabled:{bg:he("gray.100","whiteAlpha.100")(e),borderColor:he("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:he("red.500","red.300")(e)}}},DW={_disabled:{cursor:"not-allowed"}},OW={userSelect:"none",_disabled:{opacity:.4}},NW={transitionProperty:"transform",transitionDuration:"normal"},LW=Rh(e=>({icon:NW,container:DW,control:On(FW,e),label:OW})),zW={sm:Rh({control:{[nc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Rh({control:{[nc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Rh({control:{[nc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Sp=$W({baseStyle:LW,sizes:zW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BW,definePartsStyle:Ih}=vt(N8.keys),jW=e=>{var t;const n=(t=On(Sp.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},VW=Ih(e=>{var t,n,r,i;return{label:(n=(t=Sp).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=Sp).baseStyle)==null?void 0:i.call(r,e).container,control:jW(e)}}),WW={md:Ih({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ih({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ih({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},UW=BW({baseStyle:VW,sizes:WW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:HW,definePartsStyle:GW}=vt(L8.keys),Yd=pe("select-bg"),gk,KW={...(gk=Ze.baseStyle)==null?void 0:gk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Yd.reference,[Yd.variable]:"colors.white",_dark:{[Yd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Yd.reference}},qW={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},YW=GW({field:KW,icon:qW}),Xd={paddingInlineEnd:"8"},yk,bk,xk,Sk,wk,_k,Ck,kk,XW={lg:{...(yk=Ze.sizes)==null?void 0:yk.lg,field:{...(bk=Ze.sizes)==null?void 0:bk.lg.field,...Xd}},md:{...(xk=Ze.sizes)==null?void 0:xk.md,field:{...(Sk=Ze.sizes)==null?void 0:Sk.md.field,...Xd}},sm:{...(wk=Ze.sizes)==null?void 0:wk.sm,field:{...(_k=Ze.sizes)==null?void 0:_k.sm.field,...Xd}},xs:{...(Ck=Ze.sizes)==null?void 0:Ck.xs,field:{...(kk=Ze.sizes)==null?void 0:kk.xs.field,...Xd},icon:{insetEnd:"1"}}},QW=HW({baseStyle:YW,sizes:XW,variants:Ze.variants,defaultProps:Ze.defaultProps}),c0=pe("skeleton-start-color"),f0=pe("skeleton-end-color"),ZW={[c0.variable]:"colors.gray.100",[f0.variable]:"colors.gray.400",_dark:{[c0.variable]:"colors.gray.800",[f0.variable]:"colors.gray.600"},background:c0.reference,borderColor:f0.reference,opacity:.7,borderRadius:"sm"},JW={baseStyle:ZW},d0=pe("skip-link-bg"),eU={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[d0.variable]:"colors.white",_dark:{[d0.variable]:"colors.gray.700"},bg:d0.reference}},tU={baseStyle:eU},{defineMultiStyleConfig:nU,definePartsStyle:Cm}=vt(z8.keys),Nc=pe("slider-thumb-size"),Lc=pe("slider-track-size"),No=pe("slider-bg"),rU=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...lx({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},iU=e=>({...lx({orientation:e.orientation,horizontal:{h:Lc.reference},vertical:{w:Lc.reference}}),overflow:"hidden",borderRadius:"sm",[No.variable]:"colors.gray.200",_dark:{[No.variable]:"colors.whiteAlpha.200"},_disabled:{[No.variable]:"colors.gray.300",_dark:{[No.variable]:"colors.whiteAlpha.300"}},bg:No.reference}),oU=e=>{const{orientation:t}=e;return{...lx({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:Nc.reference,h:Nc.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"}}},aU=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[No.variable]:`colors.${t}.500`,_dark:{[No.variable]:`colors.${t}.200`},bg:No.reference}},sU=Cm(e=>({container:rU(e),track:iU(e),thumb:oU(e),filledTrack:aU(e)})),lU=Cm({container:{[Nc.variable]:"sizes.4",[Lc.variable]:"sizes.1"}}),uU=Cm({container:{[Nc.variable]:"sizes.3.5",[Lc.variable]:"sizes.1"}}),cU=Cm({container:{[Nc.variable]:"sizes.2.5",[Lc.variable]:"sizes.0.5"}}),fU={lg:lU,md:uU,sm:cU},dU=nU({baseStyle:sU,sizes:fU,defaultProps:{size:"md",colorScheme:"blue"}}),Ia=Zt("spinner-size"),hU={width:[Ia.reference],height:[Ia.reference]},pU={xs:{[Ia.variable]:"sizes.3"},sm:{[Ia.variable]:"sizes.4"},md:{[Ia.variable]:"sizes.6"},lg:{[Ia.variable]:"sizes.8"},xl:{[Ia.variable]:"sizes.12"}},mU={baseStyle:hU,sizes:pU,defaultProps:{size:"md"}},{defineMultiStyleConfig:vU,definePartsStyle:jA}=vt(B8.keys),gU={fontWeight:"medium"},yU={opacity:.8,marginBottom:"2"},bU={verticalAlign:"baseline",fontWeight:"semibold"},xU={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},SU=jA({container:{},label:gU,helpText:yU,number:bU,icon:xU}),wU={md:jA({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},_U=vU({baseStyle:SU,sizes:wU,defaultProps:{size:"md"}}),h0=pe("kbd-bg"),CU={[h0.variable]:"colors.gray.100",_dark:{[h0.variable]:"colors.whiteAlpha.100"},bg:h0.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},kU={baseStyle:CU},PU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},EU={baseStyle:PU},{defineMultiStyleConfig:TU,definePartsStyle:AU}=vt(I8.keys),RU={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},IU=AU({icon:RU}),MU=TU({baseStyle:IU}),{defineMultiStyleConfig:$U,definePartsStyle:FU}=vt(M8.keys),mi=pe("menu-bg"),p0=pe("menu-shadow"),DU={[mi.variable]:"#fff",[p0.variable]:"shadows.sm",_dark:{[mi.variable]:"colors.gray.700",[p0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:mi.reference,boxShadow:p0.reference},OU={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[mi.variable]:"colors.gray.100",_dark:{[mi.variable]:"colors.whiteAlpha.100"}},_active:{[mi.variable]:"colors.gray.200",_dark:{[mi.variable]:"colors.whiteAlpha.200"}},_expanded:{[mi.variable]:"colors.gray.100",_dark:{[mi.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:mi.reference},NU={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},LU={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},zU={opacity:.6},BU={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},jU={transitionProperty:"common",transitionDuration:"normal"},VU=FU({button:jU,list:DU,item:OU,groupTitle:NU,icon:LU,command:zU,divider:BU}),WU=$U({baseStyle:VU}),{defineMultiStyleConfig:UU,definePartsStyle:c1}=vt($8.keys),m0=pe("modal-bg"),v0=pe("modal-shadow"),HU={bg:"blackAlpha.600",zIndex:"modal"},GU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},KU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[m0.variable]:"colors.white",[v0.variable]:"shadows.lg",_dark:{[m0.variable]:"colors.gray.700",[v0.variable]:"shadows.dark-lg"},bg:m0.reference,boxShadow:v0.reference}},qU={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YU={position:"absolute",top:"2",insetEnd:"3"},XU=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},QU={px:"6",py:"4"},ZU=c1(e=>({overlay:HU,dialogContainer:On(GU,e),dialog:On(KU,e),header:qU,closeButton:YU,body:On(XU,e),footer:QU}));function Xr(e){return c1(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var JU={xs:Xr("xs"),sm:Xr("sm"),md:Xr("md"),lg:Xr("lg"),xl:Xr("xl"),"2xl":Xr("2xl"),"3xl":Xr("3xl"),"4xl":Xr("4xl"),"5xl":Xr("5xl"),"6xl":Xr("6xl"),full:Xr("full")},e7=UU({baseStyle:ZU,sizes:JU,defaultProps:{size:"md"}}),{defineMultiStyleConfig:t7,definePartsStyle:VA}=vt(F8.keys),cx=Zt("number-input-stepper-width"),WA=Zt("number-input-input-padding"),n7=qi(cx).add("0.5rem").toString(),g0=Zt("number-input-bg"),y0=Zt("number-input-color"),b0=Zt("number-input-border-color"),r7={[cx.variable]:"sizes.6",[WA.variable]:n7},i7=e=>{var t,n;return(n=(t=On(Ze.baseStyle,e))==null?void 0:t.field)!=null?n:{}},o7={width:cx.reference},a7={borderStart:"1px solid",borderStartColor:b0.reference,color:y0.reference,bg:g0.reference,[y0.variable]:"colors.chakra-body-text",[b0.variable]:"colors.chakra-border-color",_dark:{[y0.variable]:"colors.whiteAlpha.800",[b0.variable]:"colors.whiteAlpha.300"},_active:{[g0.variable]:"colors.gray.200",_dark:{[g0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},s7=VA(e=>{var t;return{root:r7,field:(t=On(i7,e))!=null?t:{},stepperGroup:o7,stepper:a7}});function Qd(e){var t,n,r;const i=(t=Ze.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",u=OA.fontSizes[s];return VA({field:{...i.field,paddingInlineEnd:WA.reference,verticalAlign:"top"},stepper:{fontSize:qi(u).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var l7={xs:Qd("xs"),sm:Qd("sm"),md:Qd("md"),lg:Qd("lg")},u7=t7({baseStyle:s7,sizes:l7,variants:Ze.variants,defaultProps:Ze.defaultProps}),Pk,c7={...(Pk=Ze.baseStyle)==null?void 0:Pk.field,textAlign:"center"},f7={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"}},Ek,Tk,d7={outline:e=>{var t,n,r;return(r=(n=On((t=Ze.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=On((t=Ze.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=On((t=Ze.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Tk=(Ek=Ze.variants)==null?void 0:Ek.unstyled.field)!=null?Tk:{}},h7={baseStyle:c7,sizes:f7,variants:d7,defaultProps:Ze.defaultProps},{defineMultiStyleConfig:p7,definePartsStyle:m7}=vt(D8.keys),Zd=Zt("popper-bg"),v7=Zt("popper-arrow-bg"),Ak=Zt("popper-arrow-shadow-color"),g7={zIndex:10},y7={[Zd.variable]:"colors.white",bg:Zd.reference,[v7.variable]:Zd.reference,[Ak.variable]:"colors.gray.200",_dark:{[Zd.variable]:"colors.gray.700",[Ak.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},b7={px:3,py:2,borderBottomWidth:"1px"},x7={px:3,py:2},S7={px:3,py:2,borderTopWidth:"1px"},w7={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},_7=m7({popper:g7,content:y7,header:b7,body:x7,footer:S7,closeButton:w7}),C7=p7({baseStyle:_7}),{definePartsStyle:f1,defineMultiStyleConfig:k7}=vt(P8.keys),x0=pe("drawer-bg"),S0=pe("drawer-box-shadow");function Rs(e){return f1(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var P7={bg:"blackAlpha.600",zIndex:"modal"},E7={display:"flex",zIndex:"modal",justifyContent:"center"},T7=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[x0.variable]:"colors.white",[S0.variable]:"shadows.lg",_dark:{[x0.variable]:"colors.gray.700",[S0.variable]:"shadows.dark-lg"},bg:x0.reference,boxShadow:S0.reference}},A7={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},R7={position:"absolute",top:"2",insetEnd:"3"},I7={px:"6",py:"2",flex:"1",overflow:"auto"},M7={px:"6",py:"4"},$7=f1(e=>({overlay:P7,dialogContainer:E7,dialog:On(T7,e),header:A7,closeButton:R7,body:I7,footer:M7})),F7={xs:Rs("xs"),sm:Rs("md"),md:Rs("lg"),lg:Rs("2xl"),xl:Rs("4xl"),full:Rs("full")},D7=k7({baseStyle:$7,sizes:F7,defaultProps:{size:"xs"}}),{definePartsStyle:O7,defineMultiStyleConfig:N7}=vt(E8.keys),L7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},z7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},B7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},j7=O7({preview:L7,input:z7,textarea:B7}),V7=N7({baseStyle:j7}),{definePartsStyle:W7,defineMultiStyleConfig:U7}=vt(T8.keys),ml=pe("form-control-color"),H7={marginStart:"1",[ml.variable]:"colors.red.500",_dark:{[ml.variable]:"colors.red.300"},color:ml.reference},G7={mt:"2",[ml.variable]:"colors.gray.600",_dark:{[ml.variable]:"colors.whiteAlpha.600"},color:ml.reference,lineHeight:"normal",fontSize:"sm"},K7=W7({container:{width:"100%",position:"relative"},requiredIndicator:H7,helperText:G7}),q7=U7({baseStyle:K7}),{definePartsStyle:Y7,defineMultiStyleConfig:X7}=vt(A8.keys),vl=pe("form-error-color"),Q7={[vl.variable]:"colors.red.500",_dark:{[vl.variable]:"colors.red.300"},color:vl.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Z7={marginEnd:"0.5em",[vl.variable]:"colors.red.500",_dark:{[vl.variable]:"colors.red.300"},color:vl.reference},J7=Y7({text:Q7,icon:Z7}),eH=X7({baseStyle:J7}),tH={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},nH={baseStyle:tH},rH={fontFamily:"heading",fontWeight:"bold"},iH={"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}},oH={baseStyle:rH,sizes:iH,defaultProps:{size:"xl"}},{defineMultiStyleConfig:aH,definePartsStyle:sH}=vt(C8.keys),w0=pe("breadcrumb-link-decor"),lH={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:w0.reference,[w0.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[w0.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},uH=sH({link:lH}),cH=aH({baseStyle:uH}),fH={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"}}},UA=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:he("gray.800","whiteAlpha.900")(e),_hover:{bg:he("gray.100","whiteAlpha.200")(e)},_active:{bg:he("gray.200","whiteAlpha.300")(e)}};const r=Il(`${t}.200`,.12)(n),i=Il(`${t}.200`,.24)(n);return{color:he(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:he(`${t}.50`,r)(e)},_active:{bg:he(`${t}.100`,i)(e)}}},dH=e=>{const{colorScheme:t}=e,n=he("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...On(UA,e)}},hH={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},pH=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const c=he("gray.100","whiteAlpha.200")(e);return{bg:c,color:he("gray.800","whiteAlpha.900")(e),_hover:{bg:he("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:he("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:a=`${n}.600`,activeBg:s=`${n}.700`}=(t=hH[n])!=null?t:{},u=he(r,`${n}.200`)(e);return{bg:u,color:he(i,"gray.800")(e),_hover:{bg:he(a,`${n}.300`)(e),_disabled:{bg:u}},_active:{bg:he(s,`${n}.400`)(e)}}},mH=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:he(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:he(`${t}.700`,`${t}.500`)(e)}}},vH={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},gH={ghost:UA,outline:dH,solid:pH,link:mH,unstyled:vH},yH={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"}},bH={baseStyle:fH,variants:gH,sizes:yH,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ja,defineMultiStyleConfig:xH}=vt(H8.keys),wp=pe("card-bg"),eo=pe("card-padding"),HA=pe("card-shadow"),Mh=pe("card-radius"),GA=pe("card-border-width","0"),KA=pe("card-border-color"),SH=ja({container:{[wp.variable]:"colors.chakra-body-bg",backgroundColor:wp.reference,boxShadow:HA.reference,borderRadius:Mh.reference,color:"chakra-body-text",borderWidth:GA.reference,borderColor:KA.reference},body:{padding:eo.reference,flex:"1 1 0%"},header:{padding:eo.reference},footer:{padding:eo.reference}}),wH={sm:ja({container:{[Mh.variable]:"radii.base",[eo.variable]:"space.3"}}),md:ja({container:{[Mh.variable]:"radii.md",[eo.variable]:"space.5"}}),lg:ja({container:{[Mh.variable]:"radii.xl",[eo.variable]:"space.7"}})},_H={elevated:ja({container:{[HA.variable]:"shadows.base",_dark:{[wp.variable]:"colors.gray.700"}}}),outline:ja({container:{[GA.variable]:"1px",[KA.variable]:"colors.chakra-border-color"}}),filled:ja({container:{[wp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[eo.variable]:0},header:{[eo.variable]:0},footer:{[eo.variable]:0}}},CH=xH({baseStyle:SH,variants:_H,sizes:wH,defaultProps:{variant:"elevated",size:"md"}}),rc=Zt("close-button-size"),Tu=Zt("close-button-bg"),kH={w:[rc.reference],h:[rc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Tu.variable]:"colors.blackAlpha.100",_dark:{[Tu.variable]:"colors.whiteAlpha.100"}},_active:{[Tu.variable]:"colors.blackAlpha.200",_dark:{[Tu.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Tu.reference},PH={lg:{[rc.variable]:"sizes.10",fontSize:"md"},md:{[rc.variable]:"sizes.8",fontSize:"xs"},sm:{[rc.variable]:"sizes.6",fontSize:"2xs"}},EH={baseStyle:kH,sizes:PH,defaultProps:{size:"md"}},{variants:TH,defaultProps:AH}=tc,RH={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},IH={baseStyle:RH,variants:TH,defaultProps:AH},MH={w:"100%",mx:"auto",maxW:"prose",px:"4"},$H={baseStyle:MH},FH={opacity:.6,borderColor:"inherit"},DH={borderStyle:"solid"},OH={borderStyle:"dashed"},NH={solid:DH,dashed:OH},LH={baseStyle:FH,variants:NH,defaultProps:{variant:"solid"}},{definePartsStyle:zH,defineMultiStyleConfig:BH}=vt(S8.keys),jH={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},VH={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},WH={pt:"2",px:"4",pb:"5"},UH={fontSize:"1.25em"},HH=zH({container:jH,button:VH,panel:WH,icon:UH}),GH=BH({baseStyle:HH}),{definePartsStyle:lf,defineMultiStyleConfig:KH}=vt(w8.keys),dr=pe("alert-fg"),uo=pe("alert-bg"),qH=lf({container:{bg:uo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:dr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:dr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function fx(e){const{theme:t,colorScheme:n}=e,r=Il(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var YH=lf(e=>{const{colorScheme:t}=e,n=fx(e);return{container:{[dr.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[dr.variable]:`colors.${t}.200`,[uo.variable]:n.dark}}}}),XH=lf(e=>{const{colorScheme:t}=e,n=fx(e);return{container:{[dr.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[dr.variable]:`colors.${t}.200`,[uo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:dr.reference}}}),QH=lf(e=>{const{colorScheme:t}=e,n=fx(e);return{container:{[dr.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[dr.variable]:`colors.${t}.200`,[uo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:dr.reference}}}),ZH=lf(e=>{const{colorScheme:t}=e;return{container:{[dr.variable]:"colors.white",[uo.variable]:`colors.${t}.600`,_dark:{[dr.variable]:"colors.gray.900",[uo.variable]:`colors.${t}.200`},color:dr.reference}}}),JH={subtle:YH,"left-accent":XH,"top-accent":QH,solid:ZH},eG=KH({baseStyle:qH,variants:JH,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:qA,defineMultiStyleConfig:tG}=vt(_8.keys),gl=pe("avatar-border-color"),ic=pe("avatar-bg"),zc=pe("avatar-font-size"),Ml=pe("avatar-size"),nG={borderRadius:"full",border:"0.2em solid",borderColor:gl.reference,[gl.variable]:"white",_dark:{[gl.variable]:"colors.gray.800"}},rG={bg:ic.reference,fontSize:zc.reference,width:Ml.reference,height:Ml.reference,lineHeight:"1",[ic.variable]:"colors.gray.200",_dark:{[ic.variable]:"colors.whiteAlpha.400"}},iG=e=>{const{name:t,theme:n}=e,r=t?f9({string:t}):"colors.gray.400",i=u9(r)(n);let a="white";return i||(a="gray.800"),{bg:ic.reference,fontSize:zc.reference,color:a,borderColor:gl.reference,verticalAlign:"top",width:Ml.reference,height:Ml.reference,"&:not([data-loaded])":{[ic.variable]:r},[gl.variable]:"colors.white",_dark:{[gl.variable]:"colors.gray.800"}}},oG={fontSize:zc.reference,lineHeight:"1"},aG=qA(e=>({badge:On(nG,e),excessLabel:On(rG,e),container:On(iG,e),label:oG}));function Ao(e){const t=e!=="100%"?LA[e]:void 0;return qA({container:{[Ml.variable]:t??e,[zc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ml.variable]:t??e,[zc.variable]:`calc(${t??e} / 2.5)`}})}var sG={"2xs":Ao(4),xs:Ao(6),sm:Ao(8),md:Ao(12),lg:Ao(16),xl:Ao(24),"2xl":Ao(32),full:Ao("100%")},lG=tG({baseStyle:aG,sizes:sG,defaultProps:{size:"md"}}),uG={Accordion:GH,Alert:eG,Avatar:lG,Badge:tc,Breadcrumb:cH,Button:bH,Checkbox:Sp,CloseButton:EH,Code:IH,Container:$H,Divider:LH,Drawer:D7,Editable:V7,Form:q7,FormError:eH,FormLabel:nH,Heading:oH,Input:Ze,Kbd:kU,Link:EU,List:MU,Menu:WU,Modal:e7,NumberInput:u7,PinInput:h7,Popover:C7,Progress:IW,Radio:UW,Select:QW,Skeleton:JW,SkipLink:tU,Slider:dU,Spinner:mU,Stat:_U,Switch:E9,Table:F9,Tabs:Y9,Tag:lW,Textarea:xW,Tooltip:_W,Card:CH,Stepper:x8},cG={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"}}},fG={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"}}},dG="ltr",hG={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},YA={semanticTokens:cG,direction:dG,...g8,components:uG,styles:fG,config:hG};function ju(e){return typeof e=="function"}function pG(...e){return t=>e.reduce((n,r)=>r(n),t)}var mG=e=>function(...n){let r=[...n],i=n[n.length-1];return KV(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,pG(...r.map(a=>s=>ju(a)?a(s):gG(s,a)))(i)},vG=mG(YA);function gG(...e){return Nr({},...e,XA)}function XA(e,t,n,r){if((ju(e)||ju(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const a=ju(e)?e(...i):e,s=ju(t)?t(...i):t;return Nr({},a,s,XA)}}function yG(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function bG(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,a,s)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,a,s);return u.set(i,c),c}},QA=xG(bG);function ZA(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var JA=e=>ZA(e,t=>t!=null);function SG(e){return typeof e=="function"}function eR(e,...t){return SG(e)?e(...t):e}const tR=1/60*1e3,wG=typeof performance<"u"?()=>performance.now():()=>Date.now(),nR=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(wG()),tR);function _G(e){let t=[],n=[],r=0,i=!1,a=!1;const s=new WeakSet,u={schedule:(c,d=!1,h=!1)=>{const p=h&&i,v=p?t:n;return d&&s.add(c),v.indexOf(c)===-1&&(v.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d(e[t]=_G(()=>Bc=!0),e),{}),kG=uf.reduce((e,t)=>{const n=km[t];return e[t]=(r,i=!1,a=!1)=>(Bc||TG(),n.schedule(r,i,a)),e},{}),PG=uf.reduce((e,t)=>(e[t]=km[t].cancel,e),{});uf.reduce((e,t)=>(e[t]=()=>km[t].process(yl),e),{});const EG=e=>km[e].process(yl),rR=e=>{Bc=!1,yl.delta=d1?tR:Math.max(Math.min(e-yl.timestamp,CG),1),yl.timestamp=e,h1=!0,uf.forEach(EG),h1=!1,Bc&&(d1=!1,nR(rR))},TG=()=>{Bc=!0,d1=!0,h1||nR(rR)},Rk=()=>yl;var AG=typeof Element<"u",RG=typeof Map=="function",IG=typeof Set=="function",MG=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $h(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!$h(e[r],t[r]))return!1;return!0}var a;if(RG&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!$h(r.value[1],t.get(r.value[0])))return!1;return!0}if(IG&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(MG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(AG&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!$h(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var $G=function(t,n){try{return $h(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const FG=G1($G);function iR(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:a,colorMode:s}=k6(),u=e?QA(a,`components.${e}`):void 0,c=r||u,d=Nr({theme:a,colorMode:s},(n=c==null?void 0:c.defaultProps)!=null?n:{},JA(yG(i,["children"]))),h=y.useRef({});if(c){const v=HV(c)(d);FG(h.current,v)||(h.current=v)}return h.current}function ho(e,t={}){return iR(e,t)}function si(e,t={}){return iR(e,t)}var DG=new Set([...$V,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),OG=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function NG(e){return OG.has(e)||!DG.has(e)}function LG(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function zG(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var BG=/^((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)-.*))$/,jG=fA(function(e){return BG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),VG=jG,WG=function(t){return t!=="theme"},Ik=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?VG:WG},Mk=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},UG=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gA(n,r,i),a6(function(){return yA(n,r,i)}),null},HG=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var u=Mk(t,n,r),c=u||Ik(i),d=!c("as");return function(){var h=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)p.push.apply(p,h);else{p.push(h[0][0]);for(var v=h.length,g=1;gt=>{const{theme:n,css:r,__css:i,sx:a,...s}=t,u=ZA(s,(p,v)=>DV(v)),c=eR(e,t),d=LG({},i,c,JA(u),a),h=DA(d)(t.theme);return r?[h,r]:h};function _0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=NG);const i=qG({baseStyle:n}),a=KG(e,r)(i);return na.forwardRef(function(c,d){const{colorMode:h,forced:p}=rx();return na.createElement(a,{ref:d,"data-theme":p?h:void 0,...c})})}function YG(){const e=new Map;return new Proxy(_0,{apply(t,n,r){return _0(...r)},get(t,n){return e.has(n)||e.set(n,_0(n)),e.get(n)}})}var se=YG();function de(e){return y.forwardRef(e)}function oR(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=y.createContext(void 0);i.displayName=r;function a(){var s;const u=y.useContext(i);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,a),c}return u}return[i.Provider,a,i]}function XG(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=y.useMemo(()=>RV(n),[n]);return E.jsxs(u6,{theme:i,children:[E.jsx(QG,{root:t}),r]})}function QG({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E.jsx(bm,{styles:n=>({[t]:n.__cssVars})})}oR({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function ZG(e){return oR({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function JG(){const{colorMode:e}=rx();return E.jsx(bm,{styles:t=>{const n=QA(t,"styles.global"),r=eR(n,{theme:t,colorMode:e});return r?DA(r)(t):void 0}})}var aR=y.createContext({getDocument(){return document},getWindow(){return window}});aR.displayName="EnvironmentContext";function sR(e){const{children:t,environment:n,disabled:r}=e,i=y.useRef(null),a=y.useMemo(()=>n||{getDocument:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument)!=null?c:document},getWindow:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?c:window}},[n]),s=!r||!n;return E.jsxs(aR.Provider,{value:a,children:[t,s&&E.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}sR.displayName="EnvironmentProvider";var eK=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:s={},environment:u,cssVarsRoot:c,disableEnvironment:d,disableGlobalStyle:h}=e,p=E.jsx(sR,{environment:u,disabled:d,children:t});return E.jsx(XG,{theme:s,cssVarsRoot:c,children:E.jsxs(TA,{colorModeManager:n,options:s.config,children:[a?E.jsx(d6,{scope:i}):E.jsx(f6,{}),!h&&E.jsx(JG,{}),r?E.jsx(kA,{zIndex:r,children:p}):p]})})},tK=(e,t)=>e.find(n=>n.id===t);function Fk(e,t){const n=lR(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function lR(e,t){for(const[n,r]of Object.entries(e))if(tK(r,t))return n}function nK(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function rK(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:a,left:s}}function on(e,t=[]){const n=y.useRef(e);return y.useEffect(()=>{n.current=e}),y.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function iK(e,t){const n=on(e);y.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function jc(e,t){const n=y.useRef(!1),r=y.useRef(!1);y.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),y.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const uR=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Pm=y.createContext({}),cf=y.createContext(null),Em=typeof document<"u",dx=Em?y.useLayoutEffect:y.useEffect,cR=y.createContext({strict:!1}),hx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oK="framerAppearId",fR="data-"+hx(oK);function aK(e,t,n,r){const{visualElement:i}=y.useContext(Pm),a=y.useContext(cR),s=y.useContext(cf),u=y.useContext(uR).reducedMotion,c=y.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const d=c.current;y.useInsertionEffect(()=>{d&&d.update(n,s)});const h=y.useRef(!!(n[fR]&&!window.HandoffComplete));return dx(()=>{d&&(d.render(),h.current&&d.animationState&&d.animationState.animateChanges())}),y.useEffect(()=>{d&&(d.updateFeatures(),!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))}),d}function el(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sK(e,t,n){return y.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):el(n)&&(n.current=r))},[t])}function Vc(e){return typeof e=="string"||Array.isArray(e)}function Tm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const px=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mx=["initial",...px];function Am(e){return Tm(e.animate)||mx.some(t=>Vc(e[t]))}function dR(e){return!!(Am(e)||e.variants)}function lK(e,t){if(Am(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Vc(n)?n:void 0,animate:Vc(r)?r:void 0}}return e.inherit!==!1?t:{}}function uK(e){const{initial:t,animate:n}=lK(e,y.useContext(Pm));return y.useMemo(()=>({initial:t,animate:n}),[Dk(t),Dk(n)])}function Dk(e){return Array.isArray(e)?e.join(" "):e}const Ok={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"]},Wc={};for(const e in Ok)Wc[e]={isEnabled:t=>Ok[e].some(n=>!!t[n])};function cK(e){for(const t in e)Wc[t]={...Wc[t],...e[t]}}const vx=y.createContext({}),hR=y.createContext({}),fK=Symbol.for("motionComponentSymbol");function dK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&cK(e);function a(u,c){let d;const h={...y.useContext(uR),...u,layoutId:hK(u)},{isStatic:p}=h,v=uK(u),g=r(u,p);if(!p&&Em){v.visualElement=aK(i,g,h,t);const _=y.useContext(hR),S=y.useContext(cR).strict;v.visualElement&&(d=v.visualElement.loadFeatures(h,S,e,_))}return y.createElement(Pm.Provider,{value:v},d&&v.visualElement?y.createElement(d,{visualElement:v.visualElement,...h}):null,n(i,u,sK(g,v.visualElement,c),g,p,v.visualElement))}const s=y.forwardRef(a);return s[fK]=i,s}function hK({layoutId:e}){const t=y.useContext(vx).id;return t&&e!==void 0?t+"-"+e:e}function pK(e){function t(r,i={}){return dK(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const mK=["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 gx(e){return typeof e!="string"||e.includes("-")?!1:!!(mK.indexOf(e)>-1||/[A-Z]/.test(e))}const Cp={};function vK(e){Object.assign(Cp,e)}const ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ns=new Set(ff);function pR(e,{layout:t,layoutId:n}){return ns.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Cp[e]||e==="opacity")}const Zn=e=>!!(e&&e.getVelocity),gK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yK=ff.length;function bK(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),vR=mR("--"),p1=mR("var(--"),xK=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,SK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sa=(e,t,n)=>Math.min(Math.max(n,e),t),rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oc={...rs,transform:e=>sa(0,1,e)},Jd={...rs,default:1},ac=e=>Math.round(e*1e5)/1e5,Rm=/(-)?([\d]*\.?[\d])+/g,gR=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,wK=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function df(e){return typeof e=="string"}const hf=e=>({test:t=>df(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ro=hf("deg"),ki=hf("%"),ye=hf("px"),_K=hf("vh"),CK=hf("vw"),Nk={...ki,parse:e=>ki.parse(e)/100,transform:e=>ki.transform(e*100)},Lk={...rs,transform:Math.round},yR={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,size:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,rotate:Ro,rotateX:Ro,rotateY:Ro,rotateZ:Ro,scale:Jd,scaleX:Jd,scaleY:Jd,scaleZ:Jd,skew:Ro,skewX:Ro,skewY:Ro,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:oc,originX:Nk,originY:Nk,originZ:ye,zIndex:Lk,fillOpacity:oc,strokeOpacity:oc,numOctaves:Lk};function yx(e,t,n,r){const{style:i,vars:a,transform:s,transformOrigin:u}=e;let c=!1,d=!1,h=!0;for(const p in t){const v=t[p];if(vR(p)){a[p]=v;continue}const g=yR[p],_=SK(v,g);if(ns.has(p)){if(c=!0,s[p]=_,!h)continue;v!==(g.default||0)&&(h=!1)}else p.startsWith("origin")?(d=!0,u[p]=_):i[p]=_}if(t.transform||(c||r?i.transform=bK(e.transform,n,h,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:v="50%",originZ:g=0}=u;i.transformOrigin=`${p} ${v} ${g}`}}const bx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bR(e,t,n){for(const r in t)!Zn(t[r])&&!pR(r,n)&&(e[r]=t[r])}function kK({transformTemplate:e},t,n){return y.useMemo(()=>{const r=bx();return yx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function PK(e,t,n){const r=e.style||{},i={};return bR(i,r,e),Object.assign(i,kK(e,t,n)),e.transformValues?e.transformValues(i):i}function EK(e,t,n){const r={},i=PK(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const TK=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 kp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||TK.has(e)}let xR=e=>!kp(e);function AK(e){e&&(xR=t=>t.startsWith("on")?!kp(t):e(t))}try{AK(require("@emotion/is-prop-valid").default)}catch{}function RK(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xR(i)||n===!0&&kp(i)||!t&&!kp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function zk(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function IK(e,t,n){const r=zk(t,e.x,e.width),i=zk(n,e.y,e.height);return`${r} ${i}`}const MK={offset:"stroke-dashoffset",array:"stroke-dasharray"},$K={offset:"strokeDashoffset",array:"strokeDasharray"};function FK(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?MK:$K;e[a.offset]=ye.transform(-r);const s=ye.transform(t),u=ye.transform(n);e[a.array]=`${s} ${u}`}function xx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:u=1,pathOffset:c=0,...d},h,p,v){if(yx(e,d,h,v),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(i!==void 0||a!==void 0||_.transform)&&(_.transformOrigin=IK(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&FK(g,s,u,c,!1)}const SR=()=>({...bx(),attrs:{}}),Sx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DK(e,t,n,r){const i=y.useMemo(()=>{const a=SR();return xx(a,t,{enableHardwareAcceleration:!1},Sx(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};bR(a,e.style,e),i.style={...a,...i.style}}return i}function OK(e=!1){return(n,r,i,{latestValues:a},s)=>{const c=(gx(n)?DK:EK)(r,a,s,n),h={...RK(r,typeof n=="string",e),...c,ref:i},{children:p}=r,v=y.useMemo(()=>Zn(p)?p.get():p,[p]);return y.createElement(n,{...h,children:v})}}function wR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const _R=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 CR(e,t,n,r){wR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_R.has(i)?i:hx(i),t.attrs[i])}function wx(e,t){const{style:n}=e,r={};for(const i in n)(Zn(n[i])||t.style&&Zn(t.style[i])||pR(i,e))&&(r[i]=n[i]);return r}function kR(e,t){const n=wx(e,t);for(const r in e)if(Zn(e[r])||Zn(t[r])){const i=ff.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function _x(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function PR(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Pp=e=>Array.isArray(e),NK=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LK=e=>Pp(e)?e[e.length-1]||0:e;function Fh(e){const t=Zn(e)?e.get():e;return NK(t)?t.toValue():t}function zK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const s={latestValues:BK(r,i,a,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const ER=e=>(t,n)=>{const r=y.useContext(Pm),i=y.useContext(cf),a=()=>zK(e,t,r,i);return n?a():PR(a)};function BK(e,t,n,r){const i={},a=r(e,{});for(const v in a)i[v]=Fh(a[v]);let{initial:s,animate:u}=e;const c=Am(e),d=dR(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const p=h?u:s;return p&&typeof p!="boolean"&&!Tm(p)&&(Array.isArray(p)?p:[p]).forEach(g=>{const _=_x(e,g);if(!_)return;const{transitionEnd:S,transition:k,...x}=_;for(const b in x){let C=x[b];if(Array.isArray(C)){const R=h?C.length-1:0;C=C[R]}C!==null&&(i[b]=C)}for(const b in S)i[b]=S[b]}),i}const $t=e=>e;class Bk{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function jK(e){let t=new Bk,n=new Bk,r=0,i=!1,a=!1;const s=new WeakSet,u={schedule:(c,d=!1,h=!1)=>{const p=h&&i,v=p?t:n;return d&&s.add(c),v.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d(p[v]=jK(()=>n=!0),p),{}),s=p=>a[p].process(i),u=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,VK),1),i.timestamp=p,i.isProcessing=!0,eh.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:eh.reduce((p,v)=>{const g=a[v];return p[v]=(_,S=!1,k=!1)=>(n||c(),g.schedule(_,S,k)),p},{}),cancel:p=>eh.forEach(v=>a[v].cancel(p)),state:i,steps:a}}const{schedule:mt,cancel:co,state:kn,steps:C0}=WK(typeof requestAnimationFrame<"u"?requestAnimationFrame:$t,!0),UK={useVisualState:ER({scrapeMotionValuesFromProps:kR,createRenderState:SR,onMount:(e,t,{renderState:n,latestValues:r})=>{mt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),mt.render(()=>{xx(n,r,{enableHardwareAcceleration:!1},Sx(t.tagName),e.transformTemplate),CR(t,n)})}})},HK={useVisualState:ER({scrapeMotionValuesFromProps:wx,createRenderState:bx})};function GK(e,{forwardMotionProps:t=!1},n,r){return{...gx(e)?UK:HK,preloadedFeatures:n,useRender:OK(t),createVisualElement:r,Component:e}}function Zi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const TR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Im(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const KK=e=>t=>TR(t)&&e(t,Im(t));function to(e,t,n,r){return Zi(e,t,KK(n),r)}const qK=(e,t)=>n=>t(e(n)),Jo=(...e)=>e.reduce(qK);function AR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const jk=AR("dragHorizontal"),Vk=AR("dragVertical");function RR(e){let t=!1;if(e==="y")t=Vk();else if(e==="x")t=jk();else{const n=jk(),r=Vk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function IR(){const e=RR(!0);return e?(e(),!1):!0}class da{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Wk(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,s)=>{if(a.pointerType==="touch"||IR())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&mt.update(()=>u[r](a,s))};return to(e.current,n,i,{passive:!e.getProps()[r]})}class YK extends da{mount(){this.unmount=Jo(Wk(this.node,!0),Wk(this.node,!1))}unmount(){}}class XK extends da{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=Jo(Zi(this.node.current,"focus",()=>this.onFocus()),Zi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const MR=(e,t)=>t?e===t?!0:MR(e,t.parentElement):!1;function k0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Im(n))}class QK extends da{constructor(){super(...arguments),this.removeStartListeners=$t,this.removeEndListeners=$t,this.removeAccessibleListeners=$t,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=to(window,"pointerup",(u,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:h}=this.node.getProps();mt.update(()=>{MR(this.node.current,u.target)?d&&d(u,c):h&&h(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=to(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Jo(a,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||k0("up",(c,d)=>{const{onTap:h}=this.node.getProps();h&&mt.update(()=>h(c,d))})};this.removeEndListeners(),this.removeEndListeners=Zi(this.node.current,"keyup",s),k0("down",(u,c)=>{this.startPress(u,c)})},n=Zi(this.node.current,"keydown",t),r=()=>{this.isPressing&&k0("cancel",(a,s)=>this.cancelPress(a,s))},i=Zi(this.node.current,"blur",r);this.removeAccessibleListeners=Jo(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&mt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!IR()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&mt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=to(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Zi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const m1=new WeakMap,P0=new WeakMap,ZK=e=>{const t=m1.get(e.target);t&&t(e)},JK=e=>{e.forEach(ZK)};function eq({root:e,...t}){const n=e||document;P0.has(n)||P0.set(n,{});const r=P0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(JK,{root:e,...t})),r[i]}function tq(e,t,n){const r=eq(t);return m1.set(e,n),r.observe(e),()=>{m1.delete(e),r.unobserve(e)}}const nq={some:0,all:1};class rq extends da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nq[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),v=d?h:p;v&&v(c)};return tq(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iq(t,n))&&this.startObserver()}unmount(){}}function iq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oq={inView:{Feature:rq},tap:{Feature:QK},focus:{Feature:XK},hover:{Feature:YK}};function $R(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function sq(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Mm(e,t,n){const r=e.getProps();return _x(r,t,n!==void 0?n:r.custom,aq(e),sq(e))}let lq=$t,Cx=$t;const ea=e=>e*1e3,no=e=>e/1e3,uq={current:!1},FR=e=>Array.isArray(e)&&typeof e[0]=="number";function DR(e){return!!(!e||typeof e=="string"&&OR[e]||FR(e)||Array.isArray(e)&&e.every(DR))}const Vu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,OR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vu([0,.65,.55,1]),circOut:Vu([.55,0,1,.45]),backIn:Vu([.31,.01,.66,-.59]),backOut:Vu([.33,1.53,.69,.99])};function NR(e){if(e)return FR(e)?Vu(e):Array.isArray(e)?e.map(NR):OR[e]}function cq(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:s="loop",ease:u,times:c}={}){const d={[t]:n};c&&(d.offset=c);const h=NR(u);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function fq(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const LR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dq=1e-7,hq=12;function pq(e,t,n,r,i){let a,s,u=0;do s=t+(n-t)/2,a=LR(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>dq&&++upq(a,0,1,e,n);return a=>a===0||a===1?a:LR(i(a),t,r)}const mq=pf(.42,0,1,1),vq=pf(0,0,.58,1),zR=pf(.42,0,.58,1),gq=e=>Array.isArray(e)&&typeof e[0]!="number",BR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jR=e=>t=>1-e(1-t),kx=e=>1-Math.sin(Math.acos(e)),VR=jR(kx),yq=BR(kx),WR=pf(.33,1.53,.69,.99),Px=jR(WR),bq=BR(Px),xq=e=>(e*=2)<1?.5*Px(e):.5*(2-Math.pow(2,-10*(e-1))),Sq={linear:$t,easeIn:mq,easeInOut:zR,easeOut:vq,circIn:kx,circInOut:yq,circOut:VR,backIn:Px,backInOut:bq,backOut:WR,anticipate:xq},Uk=e=>{if(Array.isArray(e)){Cx(e.length===4);const[t,n,r,i]=e;return pf(t,n,r,i)}else if(typeof e=="string")return Sq[e];return e},Ex=(e,t)=>n=>!!(df(n)&&wK.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UR=(e,t,n)=>r=>{if(!df(r))return r;const[i,a,s,u]=r.match(Rm);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},wq=e=>sa(0,255,e),E0={...rs,transform:e=>Math.round(wq(e))},Oa={test:Ex("rgb","red"),parse:UR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+E0.transform(e)+", "+E0.transform(t)+", "+E0.transform(n)+", "+ac(oc.transform(r))+")"};function _q(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const v1={test:Ex("#"),parse:_q,transform:Oa.transform},tl={test:Ex("hsl","hue"),parse:UR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ki.transform(ac(t))+", "+ki.transform(ac(n))+", "+ac(oc.transform(r))+")"},Mn={test:e=>Oa.test(e)||v1.test(e)||tl.test(e),parse:e=>Oa.test(e)?Oa.parse(e):tl.test(e)?tl.parse(e):v1.parse(e),transform:e=>df(e)?e:e.hasOwnProperty("red")?Oa.transform(e):tl.transform(e)},Pt=(e,t,n)=>-n*e+n*t+e;function T0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=T0(c,u,e+1/3),a=T0(c,u,e),s=T0(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}const A0=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},kq=[v1,Oa,tl],Pq=e=>kq.find(t=>t.test(e));function Hk(e){const t=Pq(e);let n=t.parse(e);return t===tl&&(n=Cq(n)),n}const HR=(e,t)=>{const n=Hk(e),r=Hk(t),i={...n};return a=>(i.red=A0(n.red,r.red,a),i.green=A0(n.green,r.green,a),i.blue=A0(n.blue,r.blue,a),i.alpha=Pt(n.alpha,r.alpha,a),Oa.transform(i))};function Eq(e){var t,n;return isNaN(e)&&df(e)&&(((t=e.match(Rm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(gR))===null||n===void 0?void 0:n.length)||0)>0}const GR={regex:xK,countKey:"Vars",token:"${v}",parse:$t},KR={regex:gR,countKey:"Colors",token:"${c}",parse:Mn.parse},qR={regex:Rm,countKey:"Numbers",token:"${n}",parse:rs.parse};function R0(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function Ep(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&R0(n,GR),R0(n,KR),R0(n,qR),n}function YR(e){return Ep(e).values}function XR(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ep(e),a=t.length;return s=>{let u=i;for(let c=0;ctypeof e=="number"?0:e;function Aq(e){const t=YR(e);return XR(e)(t.map(Tq))}const la={test:Eq,parse:YR,createTransformer:XR,getAnimatableNone:Aq},QR=(e,t)=>n=>`${n>0?t:e}`;function ZR(e,t){return typeof e=="number"?n=>Pt(e,t,n):Mn.test(e)?HR(e,t):e.startsWith("var(")?QR(e,t):eI(e,t)}const JR=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,s)=>ZR(a,t[s]));return a=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ZR(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},eI=(e,t)=>{const n=la.createTransformer(t),r=Ep(e),i=Ep(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Jo(JR(r.values,i.values),n):QR(e,t)},Uc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gk=(e,t)=>n=>Pt(e,t,n);function Iq(e){return typeof e=="number"?Gk:typeof e=="string"?Mn.test(e)?HR:eI:Array.isArray(e)?JR:typeof e=="object"?Rq:Gk}function Mq(e,t,n){const r=[],i=n||Iq(e[0]),a=e.length-1;for(let s=0;st[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Mq(t,r,i),u=s.length,c=d=>{let h=0;if(u>1)for(;hc(sa(e[0],e[a-1],d)):c}function $q(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Uc(0,t,r);e.push(Pt(n,1,i))}}function Fq(e){const t=[0];return $q(t,e.length-1),t}function Dq(e,t){return e.map(n=>n*t)}function Oq(e,t){return e.map(()=>t||zR).splice(0,e.length-1)}function Tp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=gq(r)?r.map(Uk):Uk(r),a={done:!1,value:t[0]},s=Dq(n&&n.length===t.length?n:Fq(t),e),u=tI(s,t,{ease:Array.isArray(i)?i:Oq(t,i)});return{calculatedDuration:e,next:c=>(a.value=u(c),a.done=c>=e,a)}}function nI(e,t){return t?e*(1e3/t):0}const Nq=5;function rI(e,t,n){const r=Math.max(t-Nq,0);return nI(n-e(r),t-r)}const I0=.001,Lq=.01,Kk=10,zq=.05,Bq=1;function jq({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;lq(e<=ea(Kk));let s=1-t;s=sa(zq,Bq,s),e=sa(Lq,Kk,no(e)),s<1?(i=d=>{const h=d*s,p=h*e,v=h-n,g=g1(d,s),_=Math.exp(-p);return I0-v/g*_},a=d=>{const p=d*s*e,v=p*n+n,g=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),S=g1(Math.pow(d,2),s);return(-i(d)+I0>0?-1:1)*((v-g)*_)/S}):(i=d=>{const h=Math.exp(-d*e),p=(d-n)*e+1;return-I0+h*p},a=d=>{const h=Math.exp(-d*e),p=(n-d)*(e*e);return h*p});const u=5/e,c=Wq(i,a,u);if(e=ea(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Vq=12;function Wq(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Gq(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!qk(e,Hq)&&qk(e,Uq)){const n=jq(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function iI({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:p,isResolvedFromDuration:v}=Gq({...r,velocity:-no(r.velocity||0)}),g=p||0,_=c/(2*Math.sqrt(u*d)),S=a-i,k=no(Math.sqrt(u/d)),x=Math.abs(S)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let b;if(_<1){const C=g1(k,_);b=R=>{const M=Math.exp(-_*k*R);return a-M*((g+_*k*S)/C*Math.sin(C*R)+S*Math.cos(C*R))}}else if(_===1)b=C=>a-Math.exp(-k*C)*(S+(g+k*S)*C);else{const C=k*Math.sqrt(_*_-1);b=R=>{const M=Math.exp(-_*k*R),z=Math.min(C*R,300);return a-M*((g+_*k*S)*Math.sinh(z)+C*S*Math.cosh(z))/C}}return{calculatedDuration:v&&h||null,next:C=>{const R=b(C);if(v)s.done=C>=h;else{let M=g;C!==0&&(_<1?M=rI(b,C,R):M=0);const z=Math.abs(M)<=n,N=Math.abs(a-R)<=t;s.done=z&&N}return s.value=s.done?a:R,s}}}function Yk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:c,restDelta:d=.5,restSpeed:h}){const p=e[0],v={done:!1,value:p},g=B=>u!==void 0&&Bc,_=B=>u===void 0?c:c===void 0||Math.abs(u-B)-S*Math.exp(-B/r),C=B=>x+b(B),R=B=>{const q=b(B),H=C(B);v.done=Math.abs(q)<=d,v.value=v.done?x:H};let M,z;const N=B=>{g(v.value)&&(M=B,z=iI({keyframes:[v.value,_(v.value)],velocity:rI(C,B,v.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:B=>{let q=!1;return!z&&M===void 0&&(q=!0,R(B),N(B)),M!==void 0&&B>M?z.next(B-M):(!q&&R(B),v)}}}const Kq=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mt.update(t,!0),stop:()=>co(t),now:()=>kn.isProcessing?kn.timestamp:performance.now()}},Xk=2e4;function Qk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Xk?1/0:t}const qq={decay:Yk,inertia:Yk,tween:Tp,keyframes:Tp,spring:iI};function Ap({autoplay:e=!0,delay:t=0,driver:n=Kq,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:u="loop",onPlay:c,onStop:d,onComplete:h,onUpdate:p,...v}){let g=1,_=!1,S,k;const x=()=>{k=new Promise(oe=>{S=oe})};x();let b;const C=qq[i]||Tp;let R;C!==Tp&&typeof r[0]!="number"&&(R=tI([0,100],r,{clamp:!1}),r=[0,100]);const M=C({...v,keyframes:r});let z;u==="mirror"&&(z=C({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let N="idle",B=null,q=null,H=null;M.calculatedDuration===null&&a&&(M.calculatedDuration=Qk(M));const{calculatedDuration:J}=M;let Pe=1/0,Fe=1/0;J!==null&&(Pe=J+s,Fe=Pe*(a+1)-s);let Te=0;const nt=oe=>{if(q===null)return;g>0&&(q=Math.min(q,oe)),g<0&&(q=Math.min(oe-Fe/g,q)),B!==null?Te=B:Te=Math.round(oe-q)*g;const De=Te-t*(g>=0?1:-1),be=g>=0?De<0:De>Fe;Te=Math.max(De,0),N==="finished"&&B===null&&(Te=Fe);let Ce=Te,Se=M;if(a){const gt=Math.min(Te,Fe)/Pe;let _t=Math.floor(gt),ft=gt%1;!ft&>>=1&&(ft=1),ft===1&&_t--,_t=Math.min(_t,a+1),!!(_t%2)&&(u==="reverse"?(ft=1-ft,s&&(ft-=s/Pe)):u==="mirror"&&(Se=z)),Ce=sa(0,1,ft)*Pe}const Oe=be?{done:!1,value:r[0]}:Se.next(Ce);R&&(Oe.value=R(Oe.value));let{done:et}=Oe;!be&&J!==null&&(et=g>=0?Te>=Fe:Te<=0);const lt=B===null&&(N==="finished"||N==="running"&&et);return p&&p(Oe.value),lt&&W(),Oe},we=()=>{b&&b.stop(),b=void 0},Z=()=>{N="idle",we(),S(),x(),q=H=null},W=()=>{N="finished",h&&h(),we(),S()},re=()=>{if(_)return;b||(b=n(nt));const oe=b.now();c&&c(),B!==null?q=oe-B:(!q||N==="finished")&&(q=oe),N==="finished"&&x(),H=q,B=null,N="running",b.start()};e&&re();const ne={then(oe,De){return k.then(oe,De)},get time(){return no(Te)},set time(oe){oe=ea(oe),Te=oe,B!==null||!b||g===0?B=oe:q=b.now()-oe/g},get duration(){const oe=M.calculatedDuration===null?Qk(M):M.calculatedDuration;return no(oe)},get speed(){return g},set speed(oe){oe===g||!b||(g=oe,ne.time=no(Te))},get state(){return N},play:re,pause:()=>{N="paused",B=Te},stop:()=>{_=!0,N!=="idle"&&(N="idle",d&&d(),Z())},cancel:()=>{H!==null&&nt(H),Z()},complete:()=>{N="finished"},sample:oe=>(q=0,nt(oe))};return ne}function Yq(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xq=Yq(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qq=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),th=10,Zq=2e4,Jq=(e,t)=>t.type==="spring"||e==="backgroundColor"||!DR(t.ease);function eY(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Xq()&&Qq.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,c,d=!1;const h=()=>{c=new Promise(C=>{u=C})};h();let{keyframes:p,duration:v=300,ease:g,times:_}=i;if(Jq(t,i)){const C=Ap({...i,repeat:0,delay:0});let R={done:!1,value:p[0]};const M=[];let z=0;for(;!R.done&&z{d=!1,S.cancel()},x=()=>{d=!0,mt.update(k),u(),h()};return S.onfinish=()=>{d||(e.set(fq(p,i)),r&&r(),x())},{then(C,R){return c.then(C,R)},attachTimeline(C){return S.timeline=C,S.onfinish=null,$t},get time(){return no(S.currentTime||0)},set time(C){S.currentTime=ea(C)},get speed(){return S.playbackRate},set speed(C){S.playbackRate=C},get duration(){return no(v)},play:()=>{s||(S.play(),co(k))},pause:()=>S.pause(),stop:()=>{if(s=!0,S.playState==="idle")return;const{currentTime:C}=S;if(C){const R=Ap({...i,autoplay:!1});e.setWithVelocity(R.sample(C-th).value,R.sample(C).value,th)}x()},complete:()=>{d||S.finish()},cancel:x}}function tY({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:$t,pause:$t,stop:$t,then:a=>(a(),Promise.resolve()),cancel:$t,complete:$t});return t?Ap({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const nY={type:"spring",stiffness:500,damping:25,restSpeed:10},rY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),iY={type:"keyframes",duration:.8},oY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aY=(e,{keyframes:t})=>t.length>2?iY:ns.has(e)?e.startsWith("scale")?rY(t[1]):nY:oY,y1=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(la.test(t)||t==="0")&&!t.startsWith("url(")),sY=new Set(["brightness","contrast","saturate","opacity"]);function lY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Rm)||[];if(!r)return e;const i=n.replace(r,"");let a=sY.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const uY=/([a-z-]*)\(.*?\)/g,b1={...la,getAnimatableNone:e=>{const t=e.match(uY);return t?t.map(lY).join(" "):e}},cY={...yR,color:Mn,backgroundColor:Mn,outlineColor:Mn,fill:Mn,stroke:Mn,borderColor:Mn,borderTopColor:Mn,borderRightColor:Mn,borderBottomColor:Mn,borderLeftColor:Mn,filter:b1,WebkitFilter:b1},Tx=e=>cY[e];function oI(e,t){let n=Tx(e);return n!==b1&&(n=la),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aI=e=>/^0[^.\s]+$/.test(e);function fY(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||aI(e)}function dY(e,t,n,r){const i=y1(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const s=r.from!==void 0?r.from:e.get();let u;const c=[];for(let d=0;di=>{const a=Ax(r,e)||{},s=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ea(s);const c=dY(t,e,n,a),d=c[0],h=c[c.length-1],p=y1(e,d),v=y1(e,h);let g={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-u,onUpdate:_=>{t.set(_),a.onUpdate&&a.onUpdate(_)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(hY(a)||(g={...g,...aY(e,g)}),g.duration&&(g.duration=ea(g.duration)),g.repeatDelay&&(g.repeatDelay=ea(g.repeatDelay)),!p||!v||uq.current||a.type===!1||pY.skipAnimations)return tY(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=eY(t,e,g);if(_)return _}return Ap(g)};function Rp(e){return!!(Zn(e)&&e.add)}const sI=e=>/^\-?\d*\.?\d+$/.test(e);function Ix(e,t){e.indexOf(t)===-1&&e.push(t)}function Mx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class $x{constructor(){this.subscriptions=[]}add(t){return Ix(this.subscriptions,t),()=>Mx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a!isNaN(parseFloat(e));class vY{constructor(t,n={}){this.version="10.17.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:s}=kn;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,mt.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>mt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==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=mY(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new $x);const r=this.events[t].add(n);return t==="change"?()=>{r(),mt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}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?nI(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $l(e,t){return new vY(e,t)}const lI=e=>t=>t.test(e),gY={test:e=>e==="auto",parse:e=>e},uI=[rs,ye,ki,Ro,CK,_K,gY],Au=e=>uI.find(lI(e)),yY=[...uI,Mn,la],bY=e=>yY.find(lI(e));function xY(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$l(n))}function SY(e,t){const n=Mm(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const s in a){const u=LK(a[s]);xY(e,s,u)}}function wY(e,t,n){var r,i;const a=Object.keys(t).filter(u=>!e.hasValue(u)),s=a.length;if(s)for(let u=0;uc.remove(p))),d.push(k)}return s&&Promise.all(d).then(()=>{s&&SY(e,s)}),d}function x1(e,t,n={}){const r=Mm(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(cI(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=i;return EY(e,t,d+c,h,p,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[a,s]:[s,a];return c().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function EY(e,t,n=0,r=0,i=1,a){const s=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(TY).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(x1(d,t,{...a,delay:n+c(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function TY(e,t){return e.sortNodePosition(t)}function AY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>x1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=x1(e,t,n);else{const i=typeof t=="function"?Mm(e,t,n.custom):t;r=Promise.all(cI(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const RY=[...px].reverse(),IY=px.length;function MY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AY(e,n,r)))}function $Y(e){let t=MY(e);const n=DY();let r=!0;const i=(c,d)=>{const h=Mm(e,d);if(h){const{transition:p,transitionEnd:v,...g}=h;c={...c,...g,...v}}return c};function a(c){t=c(e)}function s(c,d){const h=e.getProps(),p=e.getVariantContext(!0)||{},v=[],g=new Set;let _={},S=1/0;for(let x=0;xS&&M,H=!1;const J=Array.isArray(R)?R:[R];let Pe=J.reduce(i,{});z===!1&&(Pe={});const{prevResolvedValues:Fe={}}=C,Te={...Fe,...Pe},nt=we=>{q=!0,g.has(we)&&(H=!0,g.delete(we)),C.needsAnimating[we]=!0};for(const we in Te){const Z=Pe[we],W=Fe[we];if(_.hasOwnProperty(we))continue;let re=!1;Pp(Z)&&Pp(W)?re=!$R(Z,W):re=Z!==W,re?Z!==void 0?nt(we):g.add(we):Z!==void 0&&g.has(we)?nt(we):C.protectedKeys[we]=!0}C.prevProp=R,C.prevResolvedValues=Pe,C.isActive&&(_={..._,...Pe}),r&&e.blockInitialAnimation&&(q=!1),q&&(!N||H)&&v.push(...J.map(we=>({animation:we,options:{type:b,...c}})))}if(g.size){const x={};g.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),v.push({animation:x})}let k=!!v.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?t(v):Promise.resolve()}function u(c,d,h){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const v=s(h,c);for(const g in n)n[g].protectedKeys={};return v}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>n}}function FY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$R(t,e):!1}function _a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function DY(){return{animate:_a(!0),whileInView:_a(),whileHover:_a(),whileTap:_a(),whileDrag:_a(),whileFocus:_a(),exit:_a()}}class OY extends da{constructor(t){super(t),t.animationState||(t.animationState=$Y(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Tm(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let NY=0;class LY extends da{constructor(){super(...arguments),this.id=NY++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const zY={animation:{Feature:OY},exit:{Feature:LY}},Zk=(e,t)=>Math.abs(e-t);function BY(e,t){const n=Zk(e.x,t.x),r=Zk(e.y,t.y);return Math.sqrt(n**2+r**2)}class fI{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=$0(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,g=BY(p.offset,{x:0,y:0})>=3;if(!v&&!g)return;const{point:_}=p,{timestamp:S}=kn;this.history.push({..._,timestamp:S});const{onStart:k,onMove:x}=this.handlers;v||(k&&k(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,v)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=M0(v,this.transformPagePoint),mt.update(this.updatePoint,!0)},this.handlePointerUp=(p,v)=>{this.end();const{onEnd:g,onSessionEnd:_,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=$0(p.type==="pointercancel"?this.lastMoveEventInfo:M0(v,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,k),_&&_(p,k)},!TR(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Im(t),u=M0(s,this.transformPagePoint),{point:c}=u,{timestamp:d}=kn;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,$0(u,this.history)),this.removeListeners=Jo(to(this.contextWindow,"pointermove",this.handlePointerMove),to(this.contextWindow,"pointerup",this.handlePointerUp),to(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),co(this.updatePoint)}}function M0(e,t){return t?{point:t(e.point)}:e}function Jk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $0({point:e},t){return{point:e,delta:Jk(e,dI(t)),offset:Jk(e,jY(t)),velocity:VY(t,.1)}}function jY(e){return e[0]}function dI(e){return e[e.length-1]}function VY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dI(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ea(t)));)n--;if(!r)return{x:0,y:0};const a=no(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function gr(e){return e.max-e.min}function S1(e,t=0,n=.01){return Math.abs(e-t)<=n}function eP(e,t,n,r=.5){e.origin=r,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=gr(n)/gr(t),(S1(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(S1(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sc(e,t,n,r){eP(e.x,t.x,n.x,r?r.originX:void 0),eP(e.y,t.y,n.y,r?r.originY:void 0)}function tP(e,t,n){e.min=n.min+t.min,e.max=e.min+gr(t)}function WY(e,t,n){tP(e.x,t.x,n.x),tP(e.y,t.y,n.y)}function nP(e,t,n){e.min=t.min-n.min,e.max=e.min+gr(t)}function lc(e,t,n){nP(e.x,t.x,n.x),nP(e.y,t.y,n.y)}function UY(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Pt(n,e,r.max):Math.min(e,n)),e}function rP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function HY(e,{top:t,left:n,bottom:r,right:i}){return{x:rP(e.x,n,i),y:rP(e.y,t,r)}}function iP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Uc(t.min,t.max-r,e.min):r>i&&(n=Uc(e.min,e.max-i,t.min)),sa(0,1,n)}function qY(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const w1=.35;function YY(e=w1){return e===!1?e=0:e===!0&&(e=w1),{x:oP(e,"left","right"),y:oP(e,"top","bottom")}}function oP(e,t,n){return{min:aP(e,t),max:aP(e,n)}}function aP(e,t){return typeof e=="number"?e:e[t]||0}const sP=()=>({translate:0,scale:1,origin:0,originPoint:0}),nl=()=>({x:sP(),y:sP()}),lP=()=>({min:0,max:0}),Wt=()=>({x:lP(),y:lP()});function $r(e){return[e("x"),e("y")]}function hI({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function QY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function F0(e){return e===void 0||e===1}function _1({scale:e,scaleX:t,scaleY:n}){return!F0(e)||!F0(t)||!F0(n)}function Ea(e){return _1(e)||pI(e)||e.z||e.rotate||e.rotateX||e.rotateY}function pI(e){return uP(e.x)||uP(e.y)}function uP(e){return e&&e!=="0%"}function Ip(e,t,n){const r=e-n,i=t*r;return n+i}function cP(e,t,n,r,i){return i!==void 0&&(e=Ip(e,i,r)),Ip(e,n,r)+t}function C1(e,t=0,n=1,r,i){e.min=cP(e.min,t,n,r,i),e.max=cP(e.max,t,n,r,i)}function mI(e,{x:t,y:n}){C1(e.x,t.translate,t.scale,t.originPoint),C1(e.y,n.translate,n.scale,n.originPoint)}function ZY(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Fo(e,t){e.min=e.min+t,e.max=e.max+t}function dP(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,s=Pt(e.min,e.max,a);C1(e,t[n],t[r],s,t.scale)}const JY=["x","scaleX","originX"],eX=["y","scaleY","originY"];function rl(e,t){dP(e.x,t,JY),dP(e.y,t,eX)}function vI(e,t){return hI(QY(e.getBoundingClientRect(),t))}function tX(e,t,n){const r=vI(e,n),{scroll:i}=t;return i&&(Fo(r.x,i.offset.x),Fo(r.y,i.offset.y)),r}const gI=({current:e})=>e?e.ownerDocument.defaultView:null,nX=new WeakMap;class rX{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=Wt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Im(h,"page").point)},a=(h,p)=>{const{drag:v,dragPropagation:g,onDragStart:_}=this.getProps();if(v&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=RR(v),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$r(k=>{let x=this.getAxisMotionValue(k).get()||0;if(ki.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[k];C&&(x=gr(C)*(parseFloat(x)/100))}}this.originPoint[k]=x}),_&&mt.update(()=>_(h,p),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(h,p)=>{const{dragPropagation:v,dragDirectionLock:g,onDirectionLock:_,onDrag:S}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:k}=p;if(g&&this.currentDirection===null){this.currentDirection=iX(k),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",p.point,k),this.updateAxis("y",p.point,k),this.visualElement.render(),S&&S(h,p)},u=(h,p)=>this.stop(h,p),c=()=>$r(h=>{var p;return this.getAnimationState(h)==="paused"&&((p=this.getAxisMotionValue(h).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fI(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:gI(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&mt.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!nh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=UY(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&el(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=HY(i.layoutBox,n):this.constraints=!1,this.elastic=YY(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$r(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=qY(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!el(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=tX(r,i.root,this.visualElement.getTransformPagePoint());let s=GY(i.layout.layoutBox,a);if(n){const u=n(XY(s));this.hasMutatedConstraints=!!u,u&&(s=hI(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=$r(h=>{if(!nh(h,n,this.currentDirection))return;let p=c&&c[h]||{};s&&(p={min:0,max:0});const v=i?200:1e6,g=i?40:1e7,_={type:"inertia",velocity:r?t[h]:0,bounceStiffness:v,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...p};return this.startAxisValueAnimation(h,_)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Rx(t,r,0,n))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$r(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$r(n=>{const{drag:r}=this.getProps();if(!nh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];a.set(t[n]-Pt(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!el(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$r(s=>{const u=this.getAxisMotionValue(s);if(u){const c=u.get();i[s]=KY({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$r(s=>{if(!nh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];u.set(Pt(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;nX.set(this.visualElement,this);const t=this.visualElement.current,n=to(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();el(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Zi(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&($r(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=c[h].translate,p.set(p.get()+c[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=w1,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:u}}}function nh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oX extends da{constructor(t){super(t),this.removeGroupControls=$t,this.removeListeners=$t,this.controls=new rX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$t}unmount(){this.removeGroupControls(),this.removeListeners()}}const hP=e=>(t,n)=>{e&&mt.update(()=>e(t,n))};class aX extends da{constructor(){super(...arguments),this.removePointerDownListener=$t}onPointerDown(t){this.session=new fI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hP(t),onStart:hP(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&mt.update(()=>i(a,s))}}}mount(){this.removePointerDownListener=to(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 yI(){const e=y.useContext(cf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=y.useId();return y.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function sX(){return lX(y.useContext(cf))}function lX(e){return e===null?!0:e.isPresent}const Dh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ru={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=pP(e,t.target.x),r=pP(e,t.target.y);return`${n}% ${r}%`}},uX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=la.parse(e);if(i.length>5)return r;const a=la.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=c;const d=Pt(u,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};class cX extends na.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;vK(fX),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Dh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||mt.postRender(()=>{const u=s.getStack();(!u||!u.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:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bI(e){const[t,n]=yI(),r=y.useContext(vx);return na.createElement(cX,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(hR),isPresent:t,safeToRemove:n})}const fX={borderRadius:{...Ru,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ru,borderTopRightRadius:Ru,borderBottomLeftRadius:Ru,borderBottomRightRadius:Ru,boxShadow:uX},xI=["TopLeft","TopRight","BottomLeft","BottomRight"],dX=xI.length,mP=e=>typeof e=="string"?parseFloat(e):e,vP=e=>typeof e=="number"||ye.test(e);function hX(e,t,n,r,i,a){i?(e.opacity=Pt(0,n.opacity!==void 0?n.opacity:1,pX(r)),e.opacityExit=Pt(t.opacity!==void 0?t.opacity:1,0,mX(r))):a&&(e.opacity=Pt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Uc(e,t,r))}function yP(e,t){e.min=t.min,e.max=t.max}function Ir(e,t){yP(e.x,t.x),yP(e.y,t.y)}function bP(e,t,n,r,i){return e-=t,e=Ip(e,1/n,r),i!==void 0&&(e=Ip(e,1/i,r)),e}function vX(e,t=0,n=1,r=.5,i,a=e,s=e){if(ki.test(t)&&(t=parseFloat(t),t=Pt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Pt(a.min,a.max,r);e===a&&(u-=t),e.min=bP(e.min,t,n,u,i),e.max=bP(e.max,t,n,u,i)}function xP(e,t,[n,r,i],a,s){vX(e,t[n],t[r],t[i],t.scale,a,s)}const gX=["x","scaleX","originX"],yX=["y","scaleY","originY"];function SP(e,t,n,r){xP(e.x,t,gX,n?n.x:void 0,r?r.x:void 0),xP(e.y,t,yX,n?n.y:void 0,r?r.y:void 0)}function wP(e){return e.translate===0&&e.scale===1}function wI(e){return wP(e.x)&&wP(e.y)}function bX(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 _I(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 _P(e){return gr(e.x)/gr(e.y)}class xX{constructor(){this.members=[]}add(t){Ix(this.members,t),t.scheduleRender()}remove(t){if(Mx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function CP(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:h}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const SX=(e,t)=>e.depth-t.depth;class wX{constructor(){this.children=[],this.isDirty=!1}add(t){Ix(this.children,t),this.isDirty=!0}remove(t){Mx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SX),this.isDirty=!1,this.children.forEach(t)}}function _X(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(co(r),e(a-t))};return mt.read(r,!0),()=>co(r)}function CX(e){window.MotionDebug&&window.MotionDebug.record(e)}function kX(e){return e instanceof SVGElement&&e.tagName!=="svg"}function PX(e,t,n){const r=Zn(e)?e:$l(e);return r.start(Rx("",r,t,n)),r.animation}const kP=["","X","Y","Z"],EX={visibility:"hidden"},PP=1e3;let TX=0;const Ta={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function CI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=TX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ta.totalNodes=Ta.resolvedTargetDeltas=Ta.recalculatedProjection=0,this.nodes.forEach(IX),this.nodes.forEach(OX),this.nodes.forEach(NX),this.nodes.forEach(MX),CX(Ta)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=_X(v,250),Dh.hasAnimatedSinceResize&&(Dh.hasAnimatedSinceResize=!1,this.nodes.forEach(TP))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:v,hasRelativeTargetChanged:g,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||VX,{onLayoutAnimationStart:k,onLayoutAnimationComplete:x}=h.getProps(),b=!this.targetLayout||!_I(this.targetLayout,_)||g,C=!v&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||v&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const R={...Ax(S,"layout"),onPlay:k,onComplete:x};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else v||TP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,co(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(LX),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;hthis.update()))}clearAllSnapshots(){this.nodes.forEach($X),this.sharedNodes.forEach(zX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mt.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 c=0;c{const M=R/1e3;AP(p.x,s.x,M),AP(p.y,s.y,M),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BX(this.relativeTarget,this.relativeTargetOrigin,v,M),C&&bX(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Wt()),Ir(C,this.relativeTarget)),S&&(this.animationValues=h,hX(h,d,this.latestValues,M,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mt.update(()=>{Dh.hasAnimatedSinceResize=!0,this.currentAnimation=PX(0,PP,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:h}=s;if(!(!u||!c||!d)){if(this!==s&&this.layout&&d&&kI(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Wt();const p=gr(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const v=gr(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+v}Ir(u,c),rl(u,h),sc(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new xX),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const d={};for(let h=0;h{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(EP),this.root.sharedNodes.clear()}}}function AX(e){e.updateLayout()}function RX(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?$r(p=>{const v=s?n.measuredBox[p]:n.layoutBox[p],g=gr(v);v.min=r[p].min,v.max=v.min+g}):kI(a,n.layoutBox,r)&&$r(p=>{const v=s?n.measuredBox[p]:n.layoutBox[p],g=gr(r[p]);v.max=v.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const u=nl();sc(u,r,n.layoutBox);const c=nl();s?sc(c,e.applyTransform(i,!0),n.measuredBox):sc(c,r,n.layoutBox);const d=!wI(u);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:g}=p;if(v&&g){const _=Wt();lc(_,n.layoutBox,v.layoutBox);const S=Wt();lc(S,r,g.layoutBox),_I(_,S)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function IX(e){Ta.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 MX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $X(e){e.clearSnapshot()}function EP(e){e.clearMeasurements()}function FX(e){e.isLayoutDirty=!1}function DX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OX(e){e.resolveTargetDelta()}function NX(e){e.calcProjection()}function LX(e){e.resetRotation()}function zX(e){e.removeLeadSnapshot()}function AP(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function RP(e,t,n,r){e.min=Pt(t.min,n.min,r),e.max=Pt(t.max,n.max,r)}function BX(e,t,n,r){RP(e.x,t.x,n.x,r),RP(e.y,t.y,n.y,r)}function jX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VX={duration:.45,ease:[.4,0,.1,1]},IP=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),MP=IP("applewebkit/")&&!IP("chrome/")?Math.round:$t;function $P(e){e.min=MP(e.min),e.max=MP(e.max)}function WX(e){$P(e.x),$P(e.y)}function kI(e,t,n){return e==="position"||e==="preserve-aspect"&&!S1(_P(t),_P(n),.2)}const UX=CI({attachResizeListener:(e,t)=>Zi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),D0={current:void 0},PI=CI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!D0.current){const e=new UX({});e.mount(window),e.setOptions({layoutScroll:!0}),D0.current=e}return D0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HX={pan:{Feature:aX},drag:{Feature:oX,ProjectionNode:PI,MeasureLayout:bI}},GX=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function KX(e){const t=GX.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function k1(e,t,n=1){const[r,i]=KX(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return sI(s)?parseFloat(s):s}else return p1(i)?k1(i,t,n+1):i}function qX(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!p1(a))return;const s=k1(a,r);s&&i.set(s)});for(const i in t){const a=t[i];if(!p1(a))continue;const s=k1(a,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const YX=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),EI=e=>YX.has(e),XX=e=>Object.keys(e).some(EI),FP=e=>e===rs||e===ye,DP=(e,t)=>parseFloat(e.split(", ")[t]),OP=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return DP(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?DP(a[1],e):0}},QX=new Set(["x","y","z"]),ZX=ff.filter(e=>!QX.has(e));function JX(e){const t=[];return ZX.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Fl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:OP(4,13),y:OP(5,14)};Fl.translateX=Fl.x;Fl.translateY=Fl.y;const eQ=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:s}=a,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{u[d]=Fl[d](r,a)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const h=t.getValue(d);h&&h.jump(u[d]),e[d]=Fl[d](c,a)}),e},tQ=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(EI);let a=[],s=!1;const u=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let h=n[c],p=Au(h);const v=t[c];let g;if(Pp(v)){const _=v.length,S=v[0]===null?1:0;h=v[S],p=Au(h);for(let k=S;k<_&&v[k]!==null;k++)g?Cx(Au(v[k])===g):g=Au(v[k])}else g=Au(v);if(p!==g)if(FP(p)&&FP(g)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof v=="string"?t[c]=parseFloat(v):Array.isArray(v)&&g===ye&&(t[c]=v.map(parseFloat))}else p!=null&&p.transform&&(g!=null&&g.transform)&&(h===0||v===0)?h===0?d.set(g.transform(h)):t[c]=p.transform(v):(s||(a=JX(e),s=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(v))}),u.length){const c=u.indexOf("height")>=0?window.pageYOffset:null,d=eQ(t,e,u);return a.length&&a.forEach(([h,p])=>{e.getValue(h).set(p)}),e.render(),Em&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function nQ(e,t,n,r){return XX(t)?tQ(e,t,n,r):{target:t,transitionEnd:r}}const rQ=(e,t,n,r)=>{const i=qX(e,t,r);return t=i.target,r=i.transitionEnd,nQ(e,t,n,r)},P1={current:null},TI={current:!1};function iQ(){if(TI.current=!0,!!Em)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>P1.current=e.matches;e.addListener(t),t()}else P1.current=!1}function oQ(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],s=n[i];if(Zn(a))e.addValue(i,a),Rp(r)&&r.add(i);else if(Zn(s))e.addValue(i,$l(a,{owner:e})),Rp(r)&&r.remove(i);else if(s!==a)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,$l(u!==void 0?u:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const NP=new WeakMap,AI=Object.keys(Wc),aQ=AI.length,LP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sQ=mx.length;class lQ{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>mt.render(this.render,!1,!0);const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Am(n),this.isVariantNode=dR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{});for(const p in h){const v=h[p];u[p]!==void 0&&Zn(v)&&(v.set(u[p],!1),Rp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,NP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),TI.current||iQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:P1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){NP.delete(this.current),this.projection&&this.projection.unmount(),co(this.notifyUpdate),co(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,n){const r=ns.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&mt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let s,u;for(let c=0;cthis.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:v,layoutRoot:g})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=$l(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=_x(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Zn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new $x),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class RI extends lQ{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let s=CY(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),a){wY(this,r,s);const u=rQ(this,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function uQ(e){return window.getComputedStyle(e)}class cQ extends RI{readValueFromInstance(t,n){if(ns.has(n)){const r=Tx(n);return r&&r.default||0}else{const r=uQ(t),i=(vR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vI(t,n)}build(t,n,r,i){yx(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return wx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){wR(t,n,r,i)}}class fQ extends RI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ns.has(n)){const r=Tx(n);return r&&r.default||0}return n=_R.has(n)?n:hx(n),t.getAttribute(n)}measureInstanceViewportBox(){return Wt()}scrapeMotionValuesFromProps(t,n){return kR(t,n)}build(t,n,r,i){xx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){CR(t,n,r,i)}mount(t){this.isSVGTag=Sx(t.tagName),super.mount(t)}}const dQ=(e,t)=>gx(e)?new fQ(t,{enableHardwareAcceleration:!1}):new cQ(t,{enableHardwareAcceleration:!0}),hQ={layout:{ProjectionNode:PI,MeasureLayout:bI}},pQ={...zY,...oq,...HX,...hQ},is=pK((e,t)=>GK(e,t,pQ,dQ));function II(){const e=y.useRef(!1);return dx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function mQ(){const e=II(),[t,n]=y.useState(0),r=y.useCallback(()=>{e.current&&n(t+1)},[t]);return[y.useCallback(()=>mt.postRender(r),[r]),t]}class vQ extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function gQ({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0});return y.useInsertionEffect(()=>{const{width:a,height:s,top:u,left:c}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${a}px !important; + height: ${s}px !important; + top: ${u}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(d)}},[t]),y.createElement(vQ,{isPresent:t,childRef:r,sizeRef:i},y.cloneElement(e,{ref:r}))}const O0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s})=>{const u=PR(yQ),c=y.useId(),d=y.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:h=>{u.set(h,!0);for(const p of u.values())if(!p)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),a?void 0:[n]);return y.useMemo(()=>{u.forEach((h,p)=>u.set(p,!1))},[n]),y.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=y.createElement(gQ,{isPresent:n},e)),y.createElement(cf.Provider,{value:d},e)};function yQ(){return new Map}function bQ(e){return y.useEffect(()=>()=>e(),[])}const Aa=e=>e.key||"";function xQ(e,t){e.forEach(n=>{const r=Aa(n);t.set(r,n)})}function SQ(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const zl=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{const u=y.useContext(vx).forceRender||mQ()[0],c=II(),d=SQ(e);let h=d;const p=y.useRef(new Map).current,v=y.useRef(h),g=y.useRef(new Map).current,_=y.useRef(!0);if(dx(()=>{_.current=!1,xQ(d,g),v.current=h}),bQ(()=>{_.current=!0,g.clear(),p.clear()}),_.current)return y.createElement(y.Fragment,null,h.map(b=>y.createElement(O0,{key:Aa(b),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:s},b)));h=[...h];const S=v.current.map(Aa),k=d.map(Aa),x=S.length;for(let b=0;b{if(k.indexOf(C)!==-1)return;const R=g.get(C);if(!R)return;const M=S.indexOf(C);let z=b;if(!z){const N=()=>{p.delete(C);const B=Array.from(g.keys()).filter(q=>!k.includes(q));if(B.forEach(q=>g.delete(q)),v.current=d.filter(q=>{const H=Aa(q);return H===C||B.includes(H)}),!p.size){if(c.current===!1)return;u(),r&&r()}};z=y.createElement(O0,{key:Aa(R),isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:a,mode:s},R),p.set(C,z)}h.splice(M,0,z)}),h=h.map(b=>{const C=b.key;return p.has(C)?b:y.createElement(O0,{key:Aa(b),isPresent:!0,presenceAffectsLayout:a,mode:s},b)}),y.createElement(y.Fragment,null,p.size?h:h.map(b=>y.cloneElement(b)))};var wQ={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},MI=y.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:d=wQ,toastSpacing:h="0.5rem"}=e,[p,v]=y.useState(u),g=sX();jc(()=>{g||r==null||r()},[g]),jc(()=>{v(u)},[u]);const _=()=>v(null),S=()=>v(u),k=()=>{g&&i()};y.useEffect(()=>{g&&a&&i()},[g,a,i]),iK(k,p);const x=y.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...c}),[c,h]),b=y.useMemo(()=>nK(s),[s]);return E.jsx(is.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:_,onHoverEnd:S,custom:{position:s},style:b,children:E.jsx(se.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:x,children:Bo(n,{id:t,onClose:k})})})});MI.displayName="ToastComponent";var zP={path:E.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),E.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),E.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},po=de((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:a=!1,children:s,className:u,__css:c,...d}=e,h=xe("chakra-icon",u),p=ho("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...p},g={ref:t,focusable:a,className:h,__css:v},_=r??zP.viewBox;if(n&&typeof n!="string")return E.jsx(se.svg,{as:n,...g,...d});const S=s??zP.path;return E.jsx(se.svg,{verticalAlign:"middle",viewBox:_,...g,...d,children:S})});po.displayName="Icon";function _Q(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=y.Children.toArray(e.path),s=de((u,c)=>E.jsx(po,{ref:c,viewBox:t,...i,...u,children:a.length?a:E.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function CQ(e){return E.jsx(po,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function kQ(e){return E.jsx(po,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function BP(e){return E.jsx(po,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var PQ=xm({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Fx=de((e,t)=>{const n=ho("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:s="transparent",className:u,...c}=ln(e),d=xe("chakra-spinner",u),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${PQ} ${a} linear infinite`,...n};return E.jsx(se.div,{ref:t,__css:h,className:d,...c,children:r&&E.jsx(se.span,{srOnly:!0,children:r})})});Fx.displayName="Spinner";var[EQ,Dx]=Ft({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TQ,Ox]=Ft({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),$I={info:{icon:kQ,colorScheme:"blue"},warning:{icon:BP,colorScheme:"orange"},success:{icon:CQ,colorScheme:"green"},error:{icon:BP,colorScheme:"red"},loading:{icon:Fx,colorScheme:"blue"}};function AQ(e){return $I[e].colorScheme}function RQ(e){return $I[e].icon}var FI=de(function(t,n){const r=Ox(),{status:i}=Dx(),a={display:"inline",...r.description};return E.jsx(se.div,{ref:n,"data-status":i,...t,className:xe("chakra-alert__desc",t.className),__css:a})});FI.displayName="AlertDescription";function $m(e){const{status:t}=Dx(),n=RQ(t),r=Ox(),i=t==="loading"?r.spinner:r.icon;return E.jsx(se.span,{display:"inherit","data-status":t,...e,className:xe("chakra-alert__icon",e.className),__css:i,children:e.children||E.jsx(n,{h:"100%",w:"100%"})})}$m.displayName="AlertIcon";var DI=de(function(t,n){const r=Ox(),{status:i}=Dx();return E.jsx(se.div,{ref:n,"data-status":i,...t,className:xe("chakra-alert__title",t.className),__css:r.title})});DI.displayName="AlertTitle";var Fm=de(function(t,n){var r;const{status:i="info",addRole:a=!0,...s}=ln(t),u=(r=t.colorScheme)!=null?r:AQ(i),c=si("Alert",{...t,colorScheme:u}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return E.jsx(EQ,{value:{status:i},children:E.jsx(TQ,{value:c,children:E.jsx(se.div,{"data-status":i,role:a?"alert":void 0,ref:n,...s,className:xe("chakra-alert",t.className),__css:d})})})});Fm.displayName="Alert";function IQ(e){return E.jsx(po,{focusable:"false","aria-hidden":!0,...e,children:E.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Nx=de(function(t,n){const r=ho("CloseButton",t),{children:i,isDisabled:a,__css:s,...u}=ln(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return E.jsx(se.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...c,...r,...s},...u,children:i||E.jsx(IQ,{width:"1em",height:"1em"})})});Nx.displayName="CloseButton";var MQ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},uc=$Q(MQ);function $Q(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,a)=>{r(s=>({...s,[a]:s[a].filter(u=>u.id!=i)}))},notify:(i,a)=>{const s=FQ(i,a),{position:u,id:c}=s;return r(d=>{var h,p;const g=u.includes("top")?[s,...(h=d[u])!=null?h:[]]:[...(p=d[u])!=null?p:[],s];return{...d,[u]:g}}),c},update:(i,a)=>{i&&r(s=>{const u={...s},{position:c,index:d}=Fk(u,i);return c&&d!==-1&&(u[c][d]={...u[c][d],...a,message:OQ(a)}),u})},closeAll:({positions:i}={})=>{r(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,d)=>(c[d]=a[d].map(h=>({...h,requestClose:!0})),c),{...a}))},close:i=>{r(a=>{const s=lR(a,i);return s?{...a,[s]:a[s].map(u=>u.id==i?{...u,requestClose:!0}:u)}:a})},isActive:i=>!!Fk(uc.getState(),i).position}}var jP=0;function FQ(e,t={}){var n,r;jP+=1;const i=(n=t.id)!=null?n:jP,a=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>uc.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var DQ=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:a,onClose:s,description:u,colorScheme:c,icon:d}=e,h=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return E.jsxs(Fm,{addRole:!1,status:t,variant:n,id:h==null?void 0:h.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[E.jsx($m,{children:d}),E.jsxs(se.div,{flex:"1",maxWidth:"100%",children:[i&&E.jsx(DI,{id:h==null?void 0:h.title,children:i}),u&&E.jsx(FI,{id:h==null?void 0:h.description,display:"block",children:u})]}),a&&E.jsx(Nx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function OQ(e={}){const{render:t,toastComponent:n=DQ}=e;return i=>typeof t=="function"?t({...i,...e}):E.jsx(n,{...i,...e})}var[NQ,Rre]=Ft({name:"ToastOptionsContext",strict:!1}),LQ=e=>{const t=y.useSyncExternalStore(uc.subscribe,uc.getState,uc.getState),{motionVariants:n,component:r=MI,portalProps:i}=e,s=Object.keys(t).map(u=>{const c=t[u];return E.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:rK(u),children:E.jsx(zl,{initial:!1,children:c.map(d=>E.jsx(r,{motionVariants:n,...d},d.id))})},u)});return E.jsx(af,{...i,children:s})},zQ=e=>function({children:n,theme:r=e,toastOptions:i,...a}){return E.jsxs(eK,{theme:r,...a,children:[E.jsx(NQ,{value:i==null?void 0:i.defaultOptions,children:n}),E.jsx(LQ,{...i})]})},BQ=zQ(YA),jQ=Object.defineProperty,VQ=(e,t,n)=>t in e?jQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,It=(e,t,n)=>(VQ(e,typeof t!="symbol"?t+"":t,n),n);function VP(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var WQ=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function WP(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function UP(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var E1=typeof window<"u"?y.useLayoutEffect:y.useEffect,Mp=e=>e,UQ=class{constructor(){It(this,"descendants",new Map),It(this,"register",e=>{if(e!=null)return WQ(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),It(this,"unregister",e=>{this.descendants.delete(e);const t=VP(Array.from(this.descendants.keys()));this.assignIndex(t)}),It(this,"destroy",()=>{this.descendants.clear()}),It(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),It(this,"count",()=>this.descendants.size),It(this,"enabledCount",()=>this.enabledValues().length),It(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),It(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),It(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),It(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),It(this,"first",()=>this.item(0)),It(this,"firstEnabled",()=>this.enabledItem(0)),It(this,"last",()=>this.item(this.descendants.size-1)),It(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),It(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),It(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),It(this,"next",(e,t=!0)=>{const n=WP(e,this.count(),t);return this.item(n)}),It(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=WP(r,this.enabledCount(),t);return this.enabledItem(i)}),It(this,"prev",(e,t=!0)=>{const n=UP(e,this.count()-1,t);return this.item(n)}),It(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=UP(r,this.enabledCount()-1,t);return this.enabledItem(i)}),It(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=VP(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function HQ(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 vn(...e){return t=>{e.forEach(n=>{HQ(n,t)})}}function GQ(...e){return y.useMemo(()=>vn(...e),e)}function KQ(){const e=y.useRef(new UQ);return E1(()=>()=>e.current.destroy()),e.current}var[qQ,OI]=Ft({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function YQ(e){const t=OI(),[n,r]=y.useState(-1),i=y.useRef(null);E1(()=>()=>{i.current&&t.unregister(i.current)},[]),E1(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const a=Mp(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:vn(a,i)}}function NI(){return[Mp(qQ),()=>Mp(OI()),()=>KQ(),i=>YQ(i)]}var[XQ,Dm]=Ft({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[QQ,Lx]=Ft({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[ZQ,Ire,JQ,eZ]=NI(),T1=de(function(t,n){const{getButtonProps:r}=Lx(),i=r(t,n),s={display:"flex",alignItems:"center",width:"100%",outline:0,...Dm().button};return E.jsx(se.button,{...i,className:xe("chakra-accordion__button",t.className),__css:s})});T1.displayName="AccordionButton";function zx(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(v,g)=>v!==g}=e,a=on(r),s=on(i),[u,c]=y.useState(n),d=t!==void 0,h=d?t:u,p=on(v=>{const _=typeof v=="function"?v(h):v;s(h,_)&&(d||c(_),a(_))},[d,a,h,s]);return[h,p]}function tZ(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:a,...s}=e;iZ(e),oZ(e);const u=JQ(),[c,d]=y.useState(-1);y.useEffect(()=>()=>{d(-1)},[]);const[h,p]=zx({value:r,defaultValue(){return i?n??[]:n??-1},onChange:t});return{index:h,setIndex:p,htmlProps:s,getAccordionItemProps:g=>{let _=!1;return g!==null&&(_=Array.isArray(h)?h.includes(g):h===g),{isOpen:_,onChange:k=>{if(g!==null)if(i&&Array.isArray(h)){const x=k?h.concat(g):h.filter(b=>b!==g);p(x)}else k?p(g):a&&p(-1)}}},focusedIndex:c,setFocusedIndex:d,descendants:u}}var[nZ,Bx]=Ft({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function rZ(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:a,setFocusedIndex:s}=Bx(),u=y.useRef(null),c=y.useId(),d=r??c,h=`accordion-button-${d}`,p=`accordion-panel-${d}`;aZ(e);const{register:v,index:g,descendants:_}=eZ({disabled:t&&!n}),{isOpen:S,onChange:k}=a(g===-1?null:g);sZ({isOpen:S,isDisabled:t});const x=()=>{k==null||k(!0)},b=()=>{k==null||k(!1)},C=y.useCallback(()=>{k==null||k(!S),s(g)},[g,s,S,k]),R=y.useCallback(B=>{const H={ArrowDown:()=>{const J=_.nextEnabled(g);J==null||J.node.focus()},ArrowUp:()=>{const J=_.prevEnabled(g);J==null||J.node.focus()},Home:()=>{const J=_.firstEnabled();J==null||J.node.focus()},End:()=>{const J=_.lastEnabled();J==null||J.node.focus()}}[B.key];H&&(B.preventDefault(),H(B))},[_,g]),M=y.useCallback(()=>{s(g)},[s,g]),z=y.useCallback(function(q={},H=null){return{...q,type:"button",ref:vn(v,u,H),id:h,disabled:!!t,"aria-expanded":!!S,"aria-controls":p,onClick:He(q.onClick,C),onFocus:He(q.onFocus,M),onKeyDown:He(q.onKeyDown,R)}},[h,t,S,C,M,R,p,v]),N=y.useCallback(function(q={},H=null){return{...q,ref:H,role:"region",id:p,"aria-labelledby":h,hidden:!S}},[h,S,p]);return{isOpen:S,isDisabled:t,isFocusable:n,onOpen:x,onClose:b,getButtonProps:z,getPanelProps:N,htmlProps:i}}function iZ(e){const t=e.index||e.defaultIndex,n=t!=null&&!Array.isArray(t)&&e.allowMultiple;sf({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function oZ(e){sf({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 aZ(e){sf({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 sZ(e){sf({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function LI(e){const{isOpen:t,isDisabled:n}=Lx(),{reduceMotion:r}=Bx(),i=xe("chakra-accordion__icon",e.className),a=Dm(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return E.jsx(po,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:s,...e,children:E.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}LI.displayName="AccordionIcon";var A1=de(function(t,n){const{children:r,className:i}=t,{htmlProps:a,...s}=rZ(t),c={...Dm().container,overflowAnchor:"none"},d=y.useMemo(()=>s,[s]);return E.jsx(QQ,{value:d,children:E.jsx(se.div,{ref:n,...a,className:xe("chakra-accordion__item",i),__css:c,children:typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r})})});A1.displayName="AccordionItem";var il={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Va={enter:{duration:.2,ease:il.easeOut},exit:{duration:.1,ease:il.easeIn}},ro={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},lZ=e=>e!=null&&parseInt(e.toString(),10)>0,HP={exit:{height:{duration:.2,ease:il.ease},opacity:{duration:.3,ease:il.ease}},enter:{height:{duration:.3,ease:il.ease},opacity:{duration:.4,ease:il.ease}}},uZ={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:lZ(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(a=n==null?void 0:n.exit)!=null?a:ro.exit(HP.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(a=n==null?void 0:n.enter)!=null?a:ro.enter(HP.enter,i)}}},zI=y.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:a=0,endingHeight:s="auto",style:u,className:c,transition:d,transitionEnd:h,...p}=e,[v,g]=y.useState(!1);y.useEffect(()=>{const b=setTimeout(()=>{g(!0)});return()=>clearTimeout(b)},[]),sf({condition:Number(a)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const _=parseFloat(a.toString())>0,S={startingHeight:a,endingHeight:s,animateOpacity:i,transition:v?d:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:r?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:_?"block":"none"}}},k=r?n:!0,x=n||r?"enter":"exit";return E.jsx(zl,{initial:!1,custom:S,children:k&&E.jsx(is.div,{ref:t,...p,className:xe("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:S,variants:uZ,initial:r?"exit":!1,animate:x,exit:"exit"})})});zI.displayName="Collapse";var cZ={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:ro.enter(Va.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:ro.exit(Va.exit,n),transitionEnd:t==null?void 0:t.exit}}},BI={initial:"exit",animate:"enter",exit:"exit",variants:cZ},fZ=y.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:a,transition:s,transitionEnd:u,delay:c,...d}=t,h=i||r?"enter":"exit",p=r?i&&r:!0,v={transition:s,transitionEnd:u,delay:c};return E.jsx(zl,{custom:v,children:p&&E.jsx(is.div,{ref:n,className:xe("chakra-fade",a),custom:v,...BI,animate:h,...d})})});fZ.displayName="Fade";var dZ={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:ro.exit(Va.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:ro.enter(Va.enter,n),transitionEnd:e==null?void 0:e.enter}}},jI={initial:"exit",animate:"enter",exit:"exit",variants:dZ},hZ=y.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:d,delay:h,...p}=t,v=r?i&&r:!0,g=i||r?"enter":"exit",_={initialScale:s,reverse:a,transition:c,transitionEnd:d,delay:h};return E.jsx(zl,{custom:_,children:v&&E.jsx(is.div,{ref:n,className:xe("chakra-offset-slide",u),...jI,animate:g,custom:_,...p})})});hZ.displayName="ScaleFade";var pZ={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:ro.exit(Va.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:ro.enter(Va.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:a})=>{var s;const u={x:t,y:e};return{opacity:0,transition:(s=n==null?void 0:n.exit)!=null?s:ro.exit(Va.exit,a),...i?{...u,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...u,...r==null?void 0:r.exit}}}}},Wu={initial:"initial",animate:"enter",exit:"exit",variants:pZ},mZ=y.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,className:s,offsetX:u=0,offsetY:c=8,transition:d,transitionEnd:h,delay:p,...v}=t,g=r?i&&r:!0,_=i||r?"enter":"exit",S={offsetX:u,offsetY:c,reverse:a,transition:d,transitionEnd:h,delay:p};return E.jsx(zl,{custom:S,children:g&&E.jsx(is.div,{ref:n,className:xe("chakra-offset-slide",s),custom:S,...Wu,animate:_,...v})})});mZ.displayName="SlideFade";var VI=de(function(t,n){const{className:r,motionProps:i,...a}=t,{reduceMotion:s}=Bx(),{getPanelProps:u,isOpen:c}=Lx(),d=u(a,n),h=xe("chakra-accordion__panel",r),p=Dm();s||delete d.hidden;const v=E.jsx(se.div,{...d,__css:p.panel,className:h});return s?v:E.jsx(zI,{in:c,...i,children:v})});VI.displayName="AccordionPanel";var WI=de(function({children:t,reduceMotion:n,...r},i){const a=si("Accordion",r),s=ln(r),{htmlProps:u,descendants:c,...d}=tZ(s),h=y.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return E.jsx(ZQ,{value:c,children:E.jsx(nZ,{value:h,children:E.jsx(XQ,{value:a,children:E.jsx(se.div,{ref:i,...u,className:xe("chakra-accordion",r.className),__css:a.root,children:t})})})})});WI.displayName="Accordion";function UI(e){return y.Children.toArray(e).filter(t=>y.isValidElement(t))}var[Mre,vZ]=Ft({strict:!1,name:"ButtonGroupContext"});function gZ(e){const[t,n]=y.useState(!e);return{ref:y.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function R1(e){const{children:t,className:n,...r}=e,i=y.isValidElement(t)?y.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=xe("chakra-button__icon",n);return E.jsx(se.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:i})}R1.displayName="ButtonIcon";function I1(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=E.jsx(Fx,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...u}=e,c=xe("chakra-button__spinner",a),d=n==="start"?"marginEnd":"marginStart",h=y.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,d,r]);return E.jsx(se.div,{className:c,...u,__css:h,children:i})}I1.displayName="ButtonSpinner";var ta=de((e,t)=>{const n=vZ(),r=ho("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:a,isActive:s,children:u,leftIcon:c,rightIcon:d,loadingText:h,iconSpacing:p="0.5rem",type:v,spinner:g,spinnerPlacement:_="start",className:S,as:k,...x}=ln(e),b=y.useMemo(()=>{const z={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:z}}},[r,n]),{ref:C,type:R}=gZ(k),M={rightIcon:d,leftIcon:c,iconSpacing:p,children:u};return E.jsxs(se.button,{ref:GQ(t,C),as:k,type:v??R,"data-active":je(s),"data-loading":je(a),__css:b,className:xe("chakra-button",S),...x,disabled:i||a,children:[a&&_==="start"&&E.jsx(I1,{className:"chakra-button__spinner--start",label:h,placement:"start",spacing:p,children:g}),a?h||E.jsx(se.span,{opacity:0,children:E.jsx(GP,{...M})}):E.jsx(GP,{...M}),a&&_==="end"&&E.jsx(I1,{className:"chakra-button__spinner--end",label:h,placement:"end",spacing:p,children:g})]})});ta.displayName="Button";function GP(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return E.jsxs(E.Fragment,{children:[t&&E.jsx(R1,{marginEnd:i,children:t}),r,n&&E.jsx(R1,{marginStart:i,children:n})]})}var[yZ,HI]=ZG("Card"),GI=de(function(t,n){const{className:r,...i}=t,a=HI();return E.jsx(se.div,{ref:n,className:xe("chakra-card__body",r),__css:a.body,...i})}),bZ=de(function(t,n){const{className:r,...i}=t,a=HI();return E.jsx(se.div,{ref:n,className:xe("chakra-card__header",r),__css:a.header,...i})}),KI=de(function(t,n){const{className:r,children:i,direction:a="column",justify:s,align:u,...c}=ln(t),d=si("Card",t);return E.jsx(se.div,{ref:n,className:xe("chakra-card",r),__css:{display:"flex",flexDirection:a,justifyContent:s,alignItems:u,position:"relative",minWidth:0,wordWrap:"break-word",...d.container},...c,children:E.jsx(yZ,{value:d,children:i})})}),[$re,xZ]=Ft({name:"CheckboxGroupContext",strict:!1});function SZ(e){const[t,n]=y.useState(e),[r,i]=y.useState(!1);return e!==t&&(i(!0),n(e)),r}function wZ(e){return E.jsx(se.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:E.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function _Z(e){return E.jsx(se.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:E.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function CZ(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?_Z:wZ;return n||t?E.jsx(se.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:E.jsx(i,{...r})}):null}var[kZ,qI]=Ft({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[PZ,Om]=Ft({strict:!1,name:"FormControlContext"});function EZ(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:a,...s}=e,u=y.useId(),c=t||`field-${u}`,d=`${c}-label`,h=`${c}-feedback`,p=`${c}-helptext`,[v,g]=y.useState(!1),[_,S]=y.useState(!1),[k,x]=y.useState(!1),b=y.useCallback((N={},B=null)=>({id:p,...N,ref:vn(B,q=>{q&&S(!0)})}),[p]),C=y.useCallback((N={},B=null)=>({...N,ref:B,"data-focus":je(k),"data-disabled":je(i),"data-invalid":je(r),"data-readonly":je(a),id:N.id!==void 0?N.id:d,htmlFor:N.htmlFor!==void 0?N.htmlFor:c}),[c,i,k,r,a,d]),R=y.useCallback((N={},B=null)=>({id:h,...N,ref:vn(B,q=>{q&&g(!0)}),"aria-live":"polite"}),[h]),M=y.useCallback((N={},B=null)=>({...N,...s,ref:B,role:"group","data-focus":je(k),"data-disabled":je(i),"data-invalid":je(r),"data-readonly":je(a)}),[s,i,k,r,a]),z=y.useCallback((N={},B=null)=>({...N,ref:B,role:"presentation","aria-hidden":!0,children:N.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!k,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:v,setHasFeedbackText:g,hasHelpText:_,setHasHelpText:S,id:c,labelId:d,feedbackId:h,helpTextId:p,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:R,getRootProps:M,getLabelProps:C,getRequiredIndicatorProps:z}}var TZ=de(function(t,n){const r=si("Form",t),i=ln(t),{getRootProps:a,htmlProps:s,...u}=EZ(i),c=xe("chakra-form-control",t.className);return E.jsx(PZ,{value:u,children:E.jsx(kZ,{value:r,children:E.jsx(se.div,{...a({},n),className:c,__css:r.container})})})});TZ.displayName="FormControl";var AZ=de(function(t,n){const r=Om(),i=qI(),a=xe("chakra-form__helper-text",t.className);return E.jsx(se.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:a})});AZ.displayName="FormHelperText";var Wa=de(function(t,n){var r;const i=ho("FormLabel",t),a=ln(t),{className:s,children:u,requiredIndicator:c=E.jsx(YI,{}),optionalIndicator:d=null,...h}=a,p=Om(),v=(r=p==null?void 0:p.getLabelProps(h,n))!=null?r:{ref:n,...h};return E.jsxs(se.label,{...v,className:xe("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...i},children:[u,p!=null&&p.isRequired?c:d]})});Wa.displayName="FormLabel";var YI=de(function(t,n){const r=Om(),i=qI();if(!(r!=null&&r.isRequired))return null;const a=xe("chakra-form__required-indicator",t.className);return E.jsx(se.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:a})});YI.displayName="RequiredIndicator";function XI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...a}=jx(e);return{...a,disabled:t,readOnly:r,required:i,"aria-invalid":hl(n),"aria-required":hl(i),"aria-readonly":hl(r)}}function jx(e){var t,n,r;const i=Om(),{id:a,disabled:s,readOnly:u,required:c,isRequired:d,isInvalid:h,isReadOnly:p,isDisabled:v,onFocus:g,onBlur:_,...S}=e,k=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&k.push(i.feedbackId),i!=null&&i.hasHelpText&&k.push(i.helpTextId),{...S,"aria-describedby":k.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=s??v)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=u??p)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=c??d)!=null?r:i==null?void 0:i.isRequired,isInvalid:h??(i==null?void 0:i.isInvalid),onFocus:He(i==null?void 0:i.onFocus,g),onBlur:He(i==null?void 0:i.onBlur,_)}}var RZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},IZ=()=>typeof document<"u",KP=!1,mf=null,Za=!1,M1=!1,$1=new Set;function Vx(e,t){$1.forEach(n=>n(e,t))}var MZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function $Z(e){return!(e.metaKey||!MZ&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qP(e){Za=!0,$Z(e)&&(mf="keyboard",Vx("keyboard",e))}function Is(e){if(mf="pointer",e.type==="mousedown"||e.type==="pointerdown"){Za=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Vx("pointer",e)}}function FZ(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function DZ(e){FZ(e)&&(Za=!0,mf="virtual")}function OZ(e){e.target===window||e.target===document||(!Za&&!M1&&(mf="virtual",Vx("virtual",e)),Za=!1,M1=!1)}function NZ(){Za=!1,M1=!0}function YP(){return mf!=="pointer"}function LZ(){if(!IZ()||KP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Za=!0,e.apply(this,n)},document.addEventListener("keydown",qP,!0),document.addEventListener("keyup",qP,!0),document.addEventListener("click",DZ,!0),window.addEventListener("focus",OZ,!0),window.addEventListener("blur",NZ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Is,!0),document.addEventListener("pointermove",Is,!0),document.addEventListener("pointerup",Is,!0)):(document.addEventListener("mousedown",Is,!0),document.addEventListener("mousemove",Is,!0),document.addEventListener("mouseup",Is,!0)),KP=!0}function zZ(e){LZ(),e(YP());const t=()=>e(YP());return $1.add(t),()=>{$1.delete(t)}}function BZ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function jZ(e={}){const t=jx(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:a,id:s,onBlur:u,onFocus:c,"aria-describedby":d}=t,{defaultChecked:h,isChecked:p,isFocusable:v,onChange:g,isIndeterminate:_,name:S,value:k,tabIndex:x=void 0,"aria-label":b,"aria-labelledby":C,"aria-invalid":R,...M}=e,z=BZ(M,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=on(g),B=on(u),q=on(c),[H,J]=y.useState(!1),[Pe,Fe]=y.useState(!1),[Te,nt]=y.useState(!1),[we,Z]=y.useState(!1);y.useEffect(()=>zZ(J),[]);const W=y.useRef(null),[re,ne]=y.useState(!0),[oe,De]=y.useState(!!h),be=p!==void 0,Ce=be?p:oe,Se=y.useCallback(ce=>{if(r||n){ce.preventDefault();return}be||De(Ce?ce.target.checked:_?!0:ce.target.checked),N==null||N(ce)},[r,n,Ce,be,_,N]);Zo(()=>{W.current&&(W.current.indeterminate=!!_)},[_]),jc(()=>{n&&Fe(!1)},[n,Fe]),Zo(()=>{const ce=W.current;if(!(ce!=null&&ce.form))return;const At=()=>{De(!!h)};return ce.form.addEventListener("reset",At),()=>{var ut;return(ut=ce.form)==null?void 0:ut.removeEventListener("reset",At)}},[]);const Oe=n&&!v,et=y.useCallback(ce=>{ce.key===" "&&Z(!0)},[Z]),lt=y.useCallback(ce=>{ce.key===" "&&Z(!1)},[Z]);Zo(()=>{if(!W.current)return;W.current.checked!==Ce&&De(W.current.checked)},[W.current]);const gt=y.useCallback((ce={},At=null)=>{const ut=yn=>{Pe&&yn.preventDefault(),Z(!0)};return{...ce,ref:At,"data-active":je(we),"data-hover":je(Te),"data-checked":je(Ce),"data-focus":je(Pe),"data-focus-visible":je(Pe&&H),"data-indeterminate":je(_),"data-disabled":je(n),"data-invalid":je(a),"data-readonly":je(r),"aria-hidden":!0,onMouseDown:He(ce.onMouseDown,ut),onMouseUp:He(ce.onMouseUp,()=>Z(!1)),onMouseEnter:He(ce.onMouseEnter,()=>nt(!0)),onMouseLeave:He(ce.onMouseLeave,()=>nt(!1))}},[we,Ce,n,Pe,H,Te,_,a,r]),_t=y.useCallback((ce={},At=null)=>({...ce,ref:At,"data-active":je(we),"data-hover":je(Te),"data-checked":je(Ce),"data-focus":je(Pe),"data-focus-visible":je(Pe&&H),"data-indeterminate":je(_),"data-disabled":je(n),"data-invalid":je(a),"data-readonly":je(r)}),[we,Ce,n,Pe,H,Te,_,a,r]),ft=y.useCallback((ce={},At=null)=>({...z,...ce,ref:vn(At,ut=>{ut&&ne(ut.tagName==="LABEL")}),onClick:He(ce.onClick,()=>{var ut;re||((ut=W.current)==null||ut.click(),requestAnimationFrame(()=>{var yn;(yn=W.current)==null||yn.focus({preventScroll:!0})}))}),"data-disabled":je(n),"data-checked":je(Ce),"data-invalid":je(a)}),[z,n,Ce,a,re]),Jt=y.useCallback((ce={},At=null)=>({...ce,ref:vn(W,At),type:"checkbox",name:S,value:k,id:s,tabIndex:x,onChange:He(ce.onChange,Se),onBlur:He(ce.onBlur,B,()=>Fe(!1)),onFocus:He(ce.onFocus,q,()=>Fe(!0)),onKeyDown:He(ce.onKeyDown,et),onKeyUp:He(ce.onKeyUp,lt),required:i,checked:Ce,disabled:Oe,readOnly:r,"aria-label":b,"aria-labelledby":C,"aria-invalid":R?!!R:a,"aria-describedby":d,"aria-disabled":n,style:RZ}),[S,k,s,Se,B,q,et,lt,i,Ce,Oe,r,b,C,R,a,d,n,x]),Jn=y.useCallback((ce={},At=null)=>({...ce,ref:At,onMouseDown:He(ce.onMouseDown,VZ),"data-disabled":je(n),"data-checked":je(Ce),"data-invalid":je(a)}),[Ce,n,a]);return{state:{isInvalid:a,isFocused:Pe,isChecked:Ce,isActive:we,isHovered:Te,isIndeterminate:_,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:ft,getCheckboxProps:gt,getIndicatorProps:_t,getInputProps:Jt,getLabelProps:Jn,htmlProps:z}}function VZ(e){e.preventDefault(),e.stopPropagation()}var WZ={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},UZ={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},HZ=xm({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),GZ=xm({from:{opacity:0},to:{opacity:1}}),KZ=xm({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),QI=de(function(t,n){const r=xZ(),i={...r,...t},a=si("Checkbox",i),s=ln(t),{spacing:u="0.5rem",className:c,children:d,iconColor:h,iconSize:p,icon:v=E.jsx(CZ,{}),isChecked:g,isDisabled:_=r==null?void 0:r.isDisabled,onChange:S,inputProps:k,...x}=s;let b=g;r!=null&&r.value&&s.value&&(b=r.value.includes(s.value));let C=S;r!=null&&r.onChange&&s.value&&(C=T6(r.onChange,S));const{state:R,getInputProps:M,getCheckboxProps:z,getLabelProps:N,getRootProps:B}=jZ({...x,isDisabled:_,isChecked:b,onChange:C}),q=SZ(R.isChecked),H=y.useMemo(()=>({animation:q?R.isIndeterminate?`${GZ} 20ms linear, ${KZ} 200ms linear`:`${HZ} 200ms linear`:void 0,fontSize:p,color:h,...a.icon}),[h,p,q,R.isIndeterminate,a.icon]),J=y.cloneElement(v,{__css:H,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return E.jsxs(se.label,{__css:{...UZ,...a.container},className:xe("chakra-checkbox",c),...B(),children:[E.jsx("input",{className:"chakra-checkbox__input",...M(k,n)}),E.jsx(se.span,{__css:{...WZ,...a.control},className:"chakra-checkbox__control",...z(),children:J}),d&&E.jsx(se.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:u,...a.label},children:d})]})});QI.displayName="Checkbox";function qZ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Wx(e,t){let n=qZ(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function F1(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function XP(e,t,n){return(e-t)*100/(n-t)}function YZ(e,t,n){return(n-t)*e+t}function QP(e,t,n){const r=Math.round((e-t)/n)*n+t,i=F1(n);return Wx(r,i)}function Oh(e,t,n){return e==null?e:(n{var H;return r==null?"":(H=N0(r,a,n))!=null?H:""}),v=typeof i<"u",g=v?i:h,_=ZI(Io(g),a),S=n??_,k=y.useCallback(H=>{H!==g&&(v||p(H.toString()),d==null||d(H.toString(),Io(H)))},[d,v,g]),x=y.useCallback(H=>{let J=H;return c&&(J=Oh(J,s,u)),Wx(J,S)},[S,c,u,s]),b=y.useCallback((H=a)=>{let J;g===""?J=Io(H):J=Io(g)+H,J=x(J),k(J)},[x,a,k,g]),C=y.useCallback((H=a)=>{let J;g===""?J=Io(-H):J=Io(g)-H,J=x(J),k(J)},[x,a,k,g]),R=y.useCallback(()=>{var H;let J;r==null?J="":J=(H=N0(r,a,n))!=null?H:s,k(J)},[r,n,a,k,s]),M=y.useCallback(H=>{var J;const Pe=(J=N0(H,a,S))!=null?J:s;k(Pe)},[S,a,k,s]),z=Io(g);return{isOutOfRange:z>u||z{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,r)}}function ZZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var D1="data-focus-lock",JI="data-focus-lock-disabled",JZ="data-no-focus-lock",eJ="data-autofocus-inside",tJ="data-no-autofocus";function L0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function nJ(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var ZP=new WeakMap;function eM(e,t){var n=nJ(t||null,function(r){return e.forEach(function(i){return L0(i,r)})});return y.useLayoutEffect(function(){var r=ZP.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(u){a.has(u)||L0(u,null)}),a.forEach(function(u){i.has(u)||L0(u,s)})}ZP.set(n,e)},[e]),n}var z0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},xi=function(){return xi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(xJ)},SJ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Kx=SJ.join(","),wJ="".concat(Kx,", [data-focus-guard]"),yM=function(e,t){return Pi((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?wJ:Kx)?[r]:[],yM(r))},[])},_J=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Nm([e.contentDocument.body],t):[e]},Nm=function(e,t){return e.reduce(function(n,r){var i,a=yM(r,t),s=(i=[]).concat.apply(i,a.map(function(u){return _J(u,t)}));return n.concat(s,r.parentNode?Pi(r.parentNode.querySelectorAll(Kx)).filter(function(u){return u===r}):[])},[])},CJ=function(e){var t=e.querySelectorAll("[".concat(eJ,"]"));return Pi(t).map(function(n){return Nm([n])}).reduce(function(n,r){return n.concat(r)},[])},qx=function(e,t){return Pi(e).filter(function(n){return dM(t,n)}).filter(function(n){return gJ(n)})},JP=function(e,t){return t===void 0&&(t=new Map),Pi(e).filter(function(n){return hM(t,n)})},N1=function(e,t,n){return gM(qx(Nm(e,n),t),!0,n)},eE=function(e,t){return gM(qx(Nm(e),t),!1)},kJ=function(e,t){return qx(CJ(e),t)},bl=function(e,t){return e.shadowRoot?bl(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Pi(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?bl(i,t):!1}return bl(n,t)})},PJ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},bM=function(e){return e.parentNode?bM(e.parentNode):e},Yx=function(e){var t=$p(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(D1);return n.push.apply(n,i?PJ(Pi(bM(r).querySelectorAll("[".concat(D1,'="').concat(i,'"]:not([').concat(JI,'="disabled"])')))):[r]),n},[])},EJ=function(e){try{return e()}catch{return}},Gc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Gc(t.shadowRoot):t instanceof HTMLIFrameElement&&EJ(function(){return t.contentWindow.document})?Gc(t.contentWindow.document):t}},TJ=function(e,t){return e===t},AJ=function(e,t){return!!Pi(e.querySelectorAll("iframe")).some(function(n){return TJ(n,t)})},xM=function(e,t){return t===void 0&&(t=Gc(uM(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Yx(e).some(function(n){return bl(n,t)||AJ(n,t)})},RJ=function(e){e===void 0&&(e=document);var t=Gc(e);return t?Pi(e.querySelectorAll("[".concat(JZ,"]"))).some(function(n){return bl(n,t)}):!1},IJ=function(e,t){return t.filter(vM).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Xx=function(e,t){return vM(e)&&e.name?IJ(e,t):e},MJ=function(e){var t=new Set;return e.forEach(function(n){return t.add(Xx(n,e))}),e.filter(function(n){return t.has(n)})},tE=function(e){return e[0]&&e.length>1?Xx(e[0],e):e[0]},nE=function(e,t){return e.length>1?e.indexOf(Xx(e[t],e)):t},SM="NEW_FOCUS",$J=function(e,t,n,r){var i=e.length,a=e[0],s=e[i-1],u=Gx(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,d=r?t.indexOf(r):c,h=r?e.indexOf(r):-1,p=c-d,v=t.indexOf(a),g=t.indexOf(s),_=MJ(t),S=n!==void 0?_.indexOf(n):-1,k=S-(r?_.indexOf(r):c),x=nE(e,0),b=nE(e,i-1);if(c===-1||h===-1)return SM;if(!p&&h>=0)return h;if(c<=v&&u&&Math.abs(p)>1)return b;if(c>=g&&u&&Math.abs(p)>1)return x;if(p&&Math.abs(k)>1)return h;if(c<=v)return b;if(c>g)return x;if(p)return Math.abs(p)>1?h:(i+h+p)%i}},FJ=function(e){return function(t){var n,r=(n=pM(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},DJ=function(e,t,n){var r=e.map(function(a){var s=a.node;return s}),i=JP(r.filter(FJ(n)));return i&&i.length?tE(i):tE(JP(t))},L1=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&L1(e.parentNode.host||e.parentNode,t),t},B0=function(e,t){for(var n=L1(e),r=L1(t),i=0;i=0)return a}return!1},wM=function(e,t,n){var r=$p(e),i=$p(t),a=r[0],s=!1;return i.filter(Boolean).forEach(function(u){s=B0(s||u,u)||s,n.filter(Boolean).forEach(function(c){var d=B0(a,c);d&&(!s||bl(d,s)?s=d:s=B0(d,s))})}),s},OJ=function(e,t){return e.reduce(function(n,r){return n.concat(kJ(r,t))},[])},NJ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(bJ)},LJ=function(e,t){var n=Gc($p(e).length>0?document:uM(e).ownerDocument),r=Yx(e).filter(Fp),i=wM(n||e,e,r),a=new Map,s=eE(r,a),u=N1(r,a).filter(function(g){var _=g.node;return Fp(_)});if(!(!u[0]&&(u=s,!u[0]))){var c=eE([i],a).map(function(g){var _=g.node;return _}),d=NJ(c,u),h=d.map(function(g){var _=g.node;return _}),p=$J(h,c,n,t);if(p===SM){var v=DJ(s,h,OJ(r,a));if(v)return{node:v};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:d[p]}},zJ=function(e){var t=Yx(e).filter(Fp),n=wM(e,e,t),r=new Map,i=N1([n],r,!0),a=N1(t,r).filter(function(s){var u=s.node;return Fp(u)}).map(function(s){var u=s.node;return u});return i.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:a.indexOf(u)>=0,guard:Gx(u)}})},BJ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},j0=0,V0=!1,_M=function(e,t,n){n===void 0&&(n={});var r=LJ(e,t);if(!V0&&r){if(j0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),V0=!0,setTimeout(function(){V0=!1},1);return}j0++,BJ(r.node,n.focusOptions),j0--}};function Qx(e){setTimeout(e,1)}var jJ=function(){return document&&document.activeElement===document.body},VJ=function(){return jJ()||RJ()},xl=null,ol=null,Sl=null,Kc=!1,WJ=function(){return!0},UJ=function(t){return(xl.whiteList||WJ)(t)},HJ=function(t,n){Sl={observerNode:t,portaledElement:n}},GJ=function(t){return Sl&&Sl.portaledElement===t};function rE(e,t,n,r){var i=null,a=e;do{var s=r[a];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var KJ=function(t){return t&&"current"in t?t.current:t},qJ=function(t){return t?!!Kc:Kc==="meanwhile"},YJ=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},XJ=function(t,n){return n.some(function(r){return YJ(t,r,r)})},Dp=function(){var t=!1;if(xl){var n=xl,r=n.observed,i=n.persistentFocus,a=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,d=r||Sl&&Sl.portaledElement,h=document&&document.activeElement;if(d){var p=[d].concat(s.map(KJ).filter(Boolean));if((!h||UJ(h))&&(i||qJ(u)||!VJ()||!ol&&a)&&(d&&!(xM(p)||h&&XJ(h,p)||GJ(h))&&(document&&!ol&&h&&!a?(h.blur&&h.blur(),document.body.focus()):(t=_M(p,ol,{focusOptions:c}),Sl={})),Kc=!1,ol=document&&document.activeElement),document){var v=document&&document.activeElement,g=zJ(p),_=g.map(function(S){var k=S.node;return k}).indexOf(v);_>-1&&(g.filter(function(S){var k=S.guard,x=S.node;return k&&x.dataset.focusAutoGuard}).forEach(function(S){var k=S.node;return k.removeAttribute("tabIndex")}),rE(_,g.length,1,g),rE(_,-1,-1,g))}}}return t},CM=function(t){Dp()&&t&&(t.stopPropagation(),t.preventDefault())},Zx=function(){return Qx(Dp)},QJ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||HJ(r,n)},ZJ=function(){return null},kM=function(){Kc="just",Qx(function(){Kc="meanwhile"})},JJ=function(){document.addEventListener("focusin",CM),document.addEventListener("focusout",Zx),window.addEventListener("blur",kM)},eee=function(){document.removeEventListener("focusin",CM),document.removeEventListener("focusout",Zx),window.removeEventListener("blur",kM)};function tee(e){return e.filter(function(t){var n=t.disabled;return!n})}function nee(e){var t=e.slice(-1)[0];t&&!xl&&JJ();var n=xl,r=n&&t&&t.id===n.id;xl=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var a=i.id;return a===n.id}).length||n.returnFocus(!t)),t?(ol=null,(!r||n.observed!==t.observed)&&t.onActivation(),Dp(),Qx(Dp)):(eee(),ol=null)}aM.assignSyncMedium(QJ);sM.assignMedium(Zx);oJ.assignMedium(function(e){return e({moveFocusInside:_M,focusInside:xM})});const ree=dJ(tee,nee)(ZJ);var PM=y.forwardRef(function(t,n){return y.createElement(lM,Qa({sideCar:ree,ref:n},t))}),EM=lM.propTypes||{};EM.sideCar;ZZ(EM,["sideCar"]);PM.propTypes={};const iE=PM;function iee(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function oee(e){var t;if(!iee(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}var aee=e=>e.hasAttribute("tabindex");function see(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function TM(e){return e.parentElement&&TM(e.parentElement)?!0:e.hidden}function lee(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function uee(e){if(!oee(e)||TM(e)||see(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():lee(e)?!0:aee(e)}var cee=["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]"],fee=cee.join(),dee=e=>e.offsetWidth>0&&e.offsetHeight>0;function hee(e){const t=Array.from(e.querySelectorAll(fee));return t.unshift(e),t.filter(n=>uee(n)&&dee(n))}var oE,pee=(oE=iE.default)!=null?oE:iE,AM=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:d}=e,h=y.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&hee(r.current).length===0&&requestAnimationFrame(()=>{var _;(_=r.current)==null||_.focus()})},[t,r]),p=y.useCallback(()=>{var g;(g=n==null?void 0:n.current)==null||g.focus()},[n]),v=i&&!n;return E.jsx(pee,{crossFrame:d,persistentFocus:c,autoFocus:u,disabled:s,onActivation:h,onDeactivation:p,returnFocus:v,children:a})};AM.displayName="FocusLock";var Op=de(function(t,n){const{htmlSize:r,...i}=t,a=si("Input",i),s=ln(i),u=XI(s),c=xe("chakra-input",t.className);return E.jsx(se.input,{size:r,...u,__css:a.field,ref:n,className:c})});Op.displayName="Input";Op.id="Input";function mee(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):zr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var Nh=de(function(t,n){const r=ho("Text",t),{className:i,align:a,decoration:s,casing:u,...c}=ln(t),d=zG({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return E.jsx(se.p,{ref:n,className:xe("chakra-text",t.className),...d,...c,__css:r})});Nh.displayName="Text";var RM=e=>E.jsx(se.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});RM.displayName="StackDivider";var IM=e=>E.jsx(se.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});IM.displayName="StackItem";function vee(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mee(n,i=>r[i])}}var qc=de((e,t)=>{const{isInline:n,direction:r,align:i,justify:a,spacing:s="0.5rem",wrap:u,children:c,divider:d,className:h,shouldWrapChildren:p,...v}=e,g=n?"row":r??"column",_=y.useMemo(()=>vee({spacing:s,direction:g}),[s,g]),S=!!d,k=!p&&!S,x=y.useMemo(()=>{const C=UI(c);return k?C:C.map((R,M)=>{const z=typeof R.key<"u"?R.key:M,N=M+1===C.length,q=p?E.jsx(IM,{children:R},z):R;if(!S)return q;const H=y.cloneElement(d,{__css:_}),J=N?null:H;return E.jsxs(y.Fragment,{children:[q,J]},z)})},[d,_,S,k,p,c]),b=xe("chakra-stack",h);return E.jsx(se.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:g,flexWrap:u,gap:S?void 0:s,className:b,...v,children:x})});qc.displayName="Stack";var Lm=de(function(t,n){const r=ho("Heading",t),{className:i,...a}=ln(t);return E.jsx(se.h2,{ref:n,className:xe("chakra-heading",t.className),...a,__css:r})});Lm.displayName="Heading";var hr=se("div");hr.displayName="Box";var MM=de(function(t,n){const{size:r,centerContent:i=!0,...a}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return E.jsx(hr,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...a})});MM.displayName="Square";var gee=de(function(t,n){const{size:r,...i}=t;return E.jsx(MM,{size:r,ref:n,borderRadius:"9999px",...i})});gee.displayName="Circle";var Jx=se("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Jx.displayName="Center";var yee={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};de(function(t,n){const{axis:r="both",...i}=t;return E.jsx(se.div,{ref:n,__css:yee[r],...i,position:"absolute"})});var eS=de(function(t,n){const r=ho("Code",t),{className:i,...a}=ln(t);return E.jsx(se.code,{ref:n,className:xe("chakra-code",t.className),...a,__css:{display:"inline-block",...r}})});eS.displayName="Code";var $M=de(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:a,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:d,...h}=ho("Divider",t),{className:p,orientation:v="horizontal",__css:g,..._}=ln(t),S={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||a||u||"1px",width:"100%"}};return E.jsx(se.hr,{ref:n,"aria-orientation":v,..._,__css:{...h,border:"0",borderColor:d,borderStyle:c,...S[v],...g},className:xe("chakra-divider",p)})});$M.displayName="Divider";var ur=de(function(t,n){const{direction:r,align:i,justify:a,wrap:s,basis:u,grow:c,shrink:d,...h}=t,p={display:"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:d};return E.jsx(se.div,{ref:n,__css:p,...h})});ur.displayName="Flex";function bee(){const e=y.useRef(new Map),t=e.current,n=y.useCallback((i,a,s,u)=>{e.current.set(s,{type:a,el:i,options:u}),i.addEventListener(a,s,u)},[]),r=y.useCallback((i,a,s,u)=>{i.removeEventListener(a,s,u),e.current.delete(s)},[]);return y.useEffect(()=>()=>{t.forEach((i,a)=>{r(i.el,i.type,a,i.options)})},[r,t]),{add:n,remove:r}}function W0(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function xee(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:u,onClick:c,onKeyDown:d,onKeyUp:h,tabIndex:p,onMouseOver:v,onMouseLeave:g,..._}=e,[S,k]=y.useState(!0),[x,b]=y.useState(!1),C=bee(),R=Z=>{Z&&Z.tagName!=="BUTTON"&&k(!1)},M=S?p:p||0,z=n&&!r,N=y.useCallback(Z=>{if(n){Z.stopPropagation(),Z.preventDefault();return}Z.currentTarget.focus(),c==null||c(Z)},[n,c]),B=y.useCallback(Z=>{x&&W0(Z)&&(Z.preventDefault(),Z.stopPropagation(),b(!1),C.remove(document,"keyup",B,!1))},[x,C]),q=y.useCallback(Z=>{if(d==null||d(Z),n||Z.defaultPrevented||Z.metaKey||!W0(Z.nativeEvent)||S)return;const W=i&&Z.key==="Enter";a&&Z.key===" "&&(Z.preventDefault(),b(!0)),W&&(Z.preventDefault(),Z.currentTarget.click()),C.add(document,"keyup",B,!1)},[n,S,d,i,a,C,B]),H=y.useCallback(Z=>{if(h==null||h(Z),n||Z.defaultPrevented||Z.metaKey||!W0(Z.nativeEvent)||S)return;a&&Z.key===" "&&(Z.preventDefault(),b(!1),Z.currentTarget.click())},[a,S,n,h]),J=y.useCallback(Z=>{Z.button===0&&(b(!1),C.remove(document,"mouseup",J,!1))},[C]),Pe=y.useCallback(Z=>{if(Z.button!==0)return;if(n){Z.stopPropagation(),Z.preventDefault();return}S||b(!0),Z.currentTarget.focus({preventScroll:!0}),C.add(document,"mouseup",J,!1),s==null||s(Z)},[n,S,s,C,J]),Fe=y.useCallback(Z=>{Z.button===0&&(S||b(!1),u==null||u(Z))},[u,S]),Te=y.useCallback(Z=>{if(n){Z.preventDefault();return}v==null||v(Z)},[n,v]),nt=y.useCallback(Z=>{x&&(Z.preventDefault(),b(!1)),g==null||g(Z)},[x,g]),we=vn(t,R);return S?{..._,ref:we,type:"button","aria-disabled":z?void 0:n,disabled:z,onClick:N,onMouseDown:s,onMouseUp:u,onKeyUp:h,onKeyDown:d,onMouseOver:v,onMouseLeave:g}:{..._,ref:we,role:"button","data-active":je(x),"aria-disabled":n?"true":void 0,tabIndex:z?void 0:M,onClick:N,onMouseDown:Pe,onMouseUp:Fe,onKeyUp:H,onKeyDown:q,onMouseOver:Te,onMouseLeave:nt}}function See(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var wee={slideInBottom:{...Wu,custom:{offsetY:16,reverse:!0}},slideInRight:{...Wu,custom:{offsetX:16,reverse:!0}},slideInTop:{...Wu,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Wu,custom:{offsetX:-16,reverse:!0}},scale:{...jI,custom:{initialScale:.95,reverse:!0}},none:{}},_ee=se(is.section),Cee=e=>wee[e||"none"],FM=y.forwardRef((e,t)=>{const{preset:n,motionProps:r=Cee(n),...i}=e;return E.jsx(_ee,{ref:t,...r,...i})});FM.displayName="ModalTransition";var kee=Object.defineProperty,Pee=(e,t,n)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eee=(e,t,n)=>(Pee(e,typeof t!="symbol"?t+"":t,n),n),Tee=class{constructor(){Eee(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},z1=new Tee;function DM(e,t){const[n,r]=y.useState(0);return y.useEffect(()=>{const i=e.current;if(i){if(t){const a=z1.add(i);r(a)}return()=>{z1.remove(i),r(0)}}},[t,e]),n}var Aee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,rh=new WeakMap,ih={},U0=0,OM=function(e){return e&&(e.host||OM(e.parentNode))},Ree=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=OM(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Iee=function(e,t,n,r){var i=Ree(t,Array.isArray(e)?e:[e]);ih[n]||(ih[n]=new WeakMap);var a=ih[n],s=[],u=new Set,c=new Set(i),d=function(p){!p||u.has(p)||(u.add(p),d(p.parentNode))};i.forEach(d);var h=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(v){if(u.has(v))h(v);else{var g=v.getAttribute(r),_=g!==null&&g!=="false",S=(Ms.get(v)||0)+1,k=(a.get(v)||0)+1;Ms.set(v,S),a.set(v,k),s.push(v),S===1&&_&&rh.set(v,!0),k===1&&v.setAttribute(n,"true"),_||v.setAttribute(r,"true")}})};return h(t),u.clear(),U0++,function(){s.forEach(function(p){var v=Ms.get(p)-1,g=a.get(p)-1;Ms.set(p,v),a.set(p,g),v||(rh.has(p)||p.removeAttribute(r),rh.delete(p)),g||p.removeAttribute(n)}),U0--,U0||(Ms=new WeakMap,Ms=new WeakMap,rh=new WeakMap,ih={})}},Mee=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Aee(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Iee(r,i,n,"aria-hidden")):function(){return null}};function $ee(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,d=y.useRef(null),h=y.useRef(null),[p,v,g]=Dee(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Fee(d,t&&s);const _=DM(d,t),S=y.useRef(null),k=y.useCallback(q=>{S.current=q.target},[]),x=y.useCallback(q=>{q.key==="Escape"&&(q.stopPropagation(),a&&(n==null||n()),c==null||c())},[a,n,c]),[b,C]=y.useState(!1),[R,M]=y.useState(!1),z=y.useCallback((q={},H=null)=>({role:"dialog",...q,ref:vn(H,d),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?v:void 0,"aria-describedby":R?g:void 0,onClick:He(q.onClick,J=>J.stopPropagation())}),[g,R,p,v,b]),N=y.useCallback(q=>{q.stopPropagation(),S.current===q.target&&z1.isTopModal(d.current)&&(i&&(n==null||n()),u==null||u())},[n,i,u]),B=y.useCallback((q={},H=null)=>({...q,ref:vn(H,h),onClick:He(q.onClick,N),onKeyDown:He(q.onKeyDown,x),onMouseDown:He(q.onMouseDown,k)}),[x,k,N]);return{isOpen:t,onClose:n,headerId:v,bodyId:g,setBodyMounted:M,setHeaderMounted:C,dialogRef:d,overlayRef:h,getDialogProps:z,getDialogContainerProps:B,index:_}}function Fee(e,t){const n=e.current;y.useEffect(()=>{if(!(!e.current||!t))return Mee(e.current)},[t,e,n])}function Dee(e,...t){const n=y.useId(),r=e||n;return y.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[Oee,Bl]=Ft({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Nee,Ja]=Ft({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),NM=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:a,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:h,preserveScrollBarGap:p,motionPreset:v,lockFocusAcrossFrames:g,onCloseComplete:_}=t,S=si("Modal",t),x={...$ee(t),autoFocus:i,trapFocus:a,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:h,preserveScrollBarGap:p,motionPreset:v,lockFocusAcrossFrames:g};return E.jsx(Nee,{value:x,children:E.jsx(Oee,{value:S,children:E.jsx(zl,{onExitComplete:_,children:x.isOpen&&E.jsx(af,{...n,children:r})})})})};NM.displayName="Modal";var Lh="right-scroll-bar-position",zh="width-before-scroll-bar",Lee="with-scroll-bars-hidden",zee="--removed-body-scroll-bar-size",LM=iM(),H0=function(){},zm=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:H0,onWheelCapture:H0,onTouchMoveCapture:H0}),i=r[0],a=r[1],s=e.forwardProps,u=e.children,c=e.className,d=e.removeScrollBar,h=e.enabled,p=e.shards,v=e.sideCar,g=e.noIsolation,_=e.inert,S=e.allowPinchZoom,k=e.as,x=k===void 0?"div":k,b=e.gapMode,C=tM(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,M=eM([n,t]),z=xi(xi({},C),i);return y.createElement(y.Fragment,null,h&&y.createElement(R,{sideCar:LM,removeScrollBar:d,shards:p,noIsolation:g,inert:_,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:b}),s?y.cloneElement(y.Children.only(u),xi(xi({},z),{ref:M})):y.createElement(x,xi({},z,{className:c,ref:M}),u))});zm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zm.classNames={fullWidth:zh,zeroRight:Lh};var aE,Bee=function(){if(aE)return aE;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bee();return t&&e.setAttribute("nonce",t),e}function Vee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uee=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jee())&&(Vee(t,n),Wee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hee=function(){var e=Uee();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zM=function(){var e=Hee(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Gee={left:0,top:0,right:0,gap:0},G0=function(e){return parseInt(e||"",10)||0},Kee=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[G0(n),G0(r),G0(i)]},qee=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gee;var t=Kee(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Yee=zM(),Xee=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` + .`.concat(Lee,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(u,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(u,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Lh,` { + right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(zh,` { + margin-right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(Lh," .").concat(Lh,` { + right: 0 `).concat(r,`; + } + + .`).concat(zh," .").concat(zh,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(zee,": ").concat(u,`px; + } +`)},Qee=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=y.useMemo(function(){return qee(i)},[i]);return y.createElement(Yee,{styles:Xee(a,!t,i,n?"":"!important")})},B1=!1;if(typeof window<"u")try{var oh=Object.defineProperty({},"passive",{get:function(){return B1=!0,!0}});window.addEventListener("test",oh,oh),window.removeEventListener("test",oh,oh)}catch{B1=!1}var $s=B1?{passive:!1}:!1,Zee=function(e){return e.tagName==="TEXTAREA"},BM=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zee(e)&&n[t]==="visible")},Jee=function(e){return BM(e,"overflowY")},ete=function(e){return BM(e,"overflowX")},sE=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=jM(e,r);if(i){var a=VM(e,r),s=a[1],u=a[2];if(s>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tte=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nte=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jM=function(e,t){return e==="v"?Jee(t):ete(t)},VM=function(e,t){return e==="v"?tte(t):nte(t)},rte=function(e,t){return e==="h"&&t==="rtl"?-1:1},ite=function(e,t,n,r,i){var a=rte(e,window.getComputedStyle(t).direction),s=a*r,u=n.target,c=t.contains(u),d=!1,h=s>0,p=0,v=0;do{var g=VM(e,u),_=g[0],S=g[1],k=g[2],x=S-k-a*_;(_||x)&&jM(e,u)&&(p+=x,v+=_),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(h&&(i&&Math.abs(p)<1||!i&&s>p)||!h&&(i&&Math.abs(v)<1||!i&&-s>v))&&(d=!0),d},ah=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lE=function(e){return[e.deltaX,e.deltaY]},uE=function(e){return e&&"current"in e?e.current:e},ote=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ate=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},ste=0,Fs=[];function lte(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(ste++)[0],a=y.useState(zM)[0],s=y.useRef(e);y.useEffect(function(){s.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=rJ([e.lockRef.current],(e.shards||[]).map(uE),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=y.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!s.current.allowPinchZoom;var x=ah(S),b=n.current,C="deltaX"in S?S.deltaX:b[0]-x[0],R="deltaY"in S?S.deltaY:b[1]-x[1],M,z=S.target,N=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in S&&N==="h"&&z.type==="range")return!1;var B=sE(N,z);if(!B)return!0;if(B?M=N:(M=N==="v"?"h":"v",B=sE(N,z)),!B)return!1;if(!r.current&&"changedTouches"in S&&(C||R)&&(r.current=M),!M)return!0;var q=r.current||M;return ite(q,k,S,q==="h"?C:R,!0)},[]),c=y.useCallback(function(S){var k=S;if(!(!Fs.length||Fs[Fs.length-1]!==a)){var x="deltaY"in k?lE(k):ah(k),b=t.current.filter(function(M){return M.name===k.type&&(M.target===k.target||k.target===M.shadowParent)&&ote(M.delta,x)})[0];if(b&&b.should){k.cancelable&&k.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(uE).filter(Boolean).filter(function(M){return M.contains(k.target)}),R=C.length>0?u(k,C[0]):!s.current.noIsolation;R&&k.cancelable&&k.preventDefault()}}},[]),d=y.useCallback(function(S,k,x,b){var C={name:S,delta:k,target:x,should:b,shadowParent:ute(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),h=y.useCallback(function(S){n.current=ah(S),r.current=void 0},[]),p=y.useCallback(function(S){d(S.type,lE(S),S.target,u(S,e.lockRef.current))},[]),v=y.useCallback(function(S){d(S.type,ah(S),S.target,u(S,e.lockRef.current))},[]);y.useEffect(function(){return Fs.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",c,$s),document.addEventListener("touchmove",c,$s),document.addEventListener("touchstart",h,$s),function(){Fs=Fs.filter(function(S){return S!==a}),document.removeEventListener("wheel",c,$s),document.removeEventListener("touchmove",c,$s),document.removeEventListener("touchstart",h,$s)}},[]);var g=e.removeScrollBar,_=e.inert;return y.createElement(y.Fragment,null,_?y.createElement(a,{styles:ate(i)}):null,g?y.createElement(Qee,{gapMode:e.gapMode}):null)}function ute(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cte=iJ(LM,lte);var WM=y.forwardRef(function(e,t){return y.createElement(zm,xi({},e,{ref:t,sideCar:cte}))});WM.classNames=zm.classNames;const fte=WM;function dte(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:d,lockFocusAcrossFrames:h,isOpen:p}=Ja(),[v,g]=yI();y.useEffect(()=>{!v&&g&&setTimeout(g)},[v,g]);const _=DM(r,p);return E.jsx(AM,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:h,children:E.jsx(fte,{removeScrollBar:!d,allowPinchZoom:s,enabled:_===1&&a,forwardProps:!0,children:e.children})})}var UM=de((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:a,...s}=e,{getDialogProps:u,getDialogContainerProps:c}=Ja(),d=u(s,t),h=c(i),p=xe("chakra-modal__content",n),v=Bl(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},_={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:S}=Ja();return E.jsx(dte,{children:E.jsx(se.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:_,children:E.jsx(FM,{preset:S,motionProps:a,className:p,...d,__css:g,children:r})})})});UM.displayName="ModalContent";var HM=de((e,t)=>{const{className:n,...r}=e,i=xe("chakra-modal__footer",n),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...Bl().footer};return E.jsx(se.footer,{ref:t,...r,__css:s,className:i})});HM.displayName="ModalFooter";var GM=de((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:a}=Ja();y.useEffect(()=>(a(!0),()=>a(!1)),[a]);const s=xe("chakra-modal__header",n),c={flex:0,...Bl().header};return E.jsx(se.header,{ref:t,className:s,id:i,...r,__css:c})});GM.displayName="ModalHeader";var hte=se(is.div),KM=de((e,t)=>{const{className:n,transition:r,motionProps:i,...a}=e,s=xe("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Bl().overlay},{motionPreset:d}=Ja(),p=i||(d==="none"?{}:BI);return E.jsx(hte,{...p,__css:c,ref:t,className:s,...a})});KM.displayName="ModalOverlay";var qM=de((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:a}=Ja();y.useEffect(()=>(a(!0),()=>a(!1)),[a]);const s=xe("chakra-modal__body",n),u=Bl();return E.jsx(se.div,{ref:t,className:s,id:i,...r,__css:u.body})});qM.displayName="ModalBody";var YM=de((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:a}=Ja(),s=xe("chakra-modal__close-btn",r),u=Bl();return E.jsx(Nx,{ref:t,__css:u.closeButton,className:s,onClick:He(n,c=>{c.stopPropagation(),a()}),...i})});YM.displayName="ModalCloseButton";var pte=e=>E.jsx(po,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),mte=e=>E.jsx(po,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function cE(e,t,n,r){y.useEffect(()=>{var i;if(!e.current||!r)return;const a=(i=e.current.ownerDocument.defaultView)!=null?i:window,s=Array.isArray(t)?t:[t],u=new a.MutationObserver(c=>{for(const d of c)d.type==="attributes"&&d.attributeName&&s.includes(d.attributeName)&&n(d)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}function vte(e,t){const n=on(e);y.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var gte=50,fE=300;function yte(e,t){const[n,r]=y.useState(!1),[i,a]=y.useState(null),[s,u]=y.useState(!0),c=y.useRef(null),d=()=>clearTimeout(c.current);vte(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?gte:null);const h=y.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),a("increment")},fE)},[e,s]),p=y.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),a("decrement")},fE)},[t,s]),v=y.useCallback(()=>{u(!0),r(!1),d()},[]);return y.useEffect(()=>()=>d(),[]),{up:h,down:p,stop:v,isSpinning:n}}var bte=/^[Ee0-9+\-.]$/;function xte(e){return bte.test(e)}function Ste(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function wte(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:d,isInvalid:h,pattern:p="[0-9]*(.[0-9]+)?",inputMode:v="decimal",allowMouseWheel:g,id:_,onChange:S,precision:k,name:x,"aria-describedby":b,"aria-label":C,"aria-labelledby":R,onFocus:M,onBlur:z,onInvalid:N,getAriaValueText:B,isValidCharacter:q,format:H,parse:J,...Pe}=e,Fe=on(M),Te=on(z),nt=on(N),we=on(q??xte),Z=on(B),W=XZ(e),{update:re,increment:ne,decrement:oe}=W,[De,be]=y.useState(!1),Ce=!(u||c),Se=y.useRef(null),Oe=y.useRef(null),et=y.useRef(null),lt=y.useRef(null),gt=y.useCallback(Q=>Q.split("").filter(we).join(""),[we]),_t=y.useCallback(Q=>{var Re;return(Re=J==null?void 0:J(Q))!=null?Re:Q},[J]),ft=y.useCallback(Q=>{var Re;return((Re=H==null?void 0:H(Q))!=null?Re:Q).toString()},[H]);jc(()=>{(W.valueAsNumber>a||W.valueAsNumber{if(!Se.current)return;if(Se.current.value!=W.value){const Re=_t(Se.current.value);W.setValue(gt(Re))}},[_t,gt]);const Jt=y.useCallback((Q=s)=>{Ce&&ne(Q)},[ne,Ce,s]),Jn=y.useCallback((Q=s)=>{Ce&&oe(Q)},[oe,Ce,s]),Ne=yte(Jt,Jn);cE(et,"disabled",Ne.stop,Ne.isSpinning),cE(lt,"disabled",Ne.stop,Ne.isSpinning);const ce=y.useCallback(Q=>{if(Q.nativeEvent.isComposing)return;const rt=_t(Q.currentTarget.value);re(gt(rt)),Oe.current={start:Q.currentTarget.selectionStart,end:Q.currentTarget.selectionEnd}},[re,gt,_t]),At=y.useCallback(Q=>{var Re,rt,Ot;Fe==null||Fe(Q),Oe.current&&(Q.target.selectionStart=(rt=Oe.current.start)!=null?rt:(Re=Q.currentTarget.value)==null?void 0:Re.length,Q.currentTarget.selectionEnd=(Ot=Oe.current.end)!=null?Ot:Q.currentTarget.selectionStart)},[Fe]),ut=y.useCallback(Q=>{if(Q.nativeEvent.isComposing)return;Ste(Q,we)||Q.preventDefault();const Re=yn(Q)*s,rt=Q.key,ee={ArrowUp:()=>Jt(Re),ArrowDown:()=>Jn(Re),Home:()=>re(i),End:()=>re(a)}[rt];ee&&(Q.preventDefault(),ee(Q))},[we,s,Jt,Jn,re,i,a]),yn=Q=>{let Re=1;return(Q.metaKey||Q.ctrlKey)&&(Re=.1),Q.shiftKey&&(Re=10),Re},Ei=y.useMemo(()=>{const Q=Z==null?void 0:Z(W.value);if(Q!=null)return Q;const Re=W.value.toString();return Re||void 0},[W.value,Z]),bn=y.useCallback(()=>{let Q=W.value;if(W.value==="")return;/^[eE]/.test(W.value.toString())?W.setValue(""):(W.valueAsNumbera&&(Q=a),W.cast(Q))},[W,a,i]),Dt=y.useCallback(()=>{be(!1),n&&bn()},[n,be,bn]),en=y.useCallback(()=>{t&&requestAnimationFrame(()=>{var Q;(Q=Se.current)==null||Q.focus()})},[t]),Vt=y.useCallback(Q=>{Q.preventDefault(),Ne.up(),en()},[en,Ne]),li=y.useCallback(Q=>{Q.preventDefault(),Ne.down(),en()},[en,Ne]);QZ(()=>Se.current,"wheel",Q=>{var Re,rt;const ee=((rt=(Re=Se.current)==null?void 0:Re.ownerDocument)!=null?rt:document).activeElement===Se.current;if(!g||!ee)return;Q.preventDefault();const fe=yn(Q)*s,zn=Math.sign(Q.deltaY);zn===-1?Jt(fe):zn===1&&Jn(fe)},{passive:!1});const Sr=y.useCallback((Q={},Re=null)=>{const rt=c||r&&W.isAtMax;return{...Q,ref:vn(Re,et),role:"button",tabIndex:-1,onPointerDown:He(Q.onPointerDown,Ot=>{Ot.button!==0||rt||Vt(Ot)}),onPointerLeave:He(Q.onPointerLeave,Ne.stop),onPointerUp:He(Q.onPointerUp,Ne.stop),disabled:rt,"aria-disabled":hl(rt)}},[W.isAtMax,r,Vt,Ne.stop,c]),ha=y.useCallback((Q={},Re=null)=>{const rt=c||r&&W.isAtMin;return{...Q,ref:vn(Re,lt),role:"button",tabIndex:-1,onPointerDown:He(Q.onPointerDown,Ot=>{Ot.button!==0||rt||li(Ot)}),onPointerLeave:He(Q.onPointerLeave,Ne.stop),onPointerUp:He(Q.onPointerUp,Ne.stop),disabled:rt,"aria-disabled":hl(rt)}},[W.isAtMin,r,li,Ne.stop,c]),Vr=y.useCallback((Q={},Re=null)=>{var rt,Ot,ee,fe;return{name:x,inputMode:v,type:"text",pattern:p,"aria-labelledby":R,"aria-label":C,"aria-describedby":b,id:_,disabled:c,...Q,readOnly:(rt=Q.readOnly)!=null?rt:u,"aria-readonly":(Ot=Q.readOnly)!=null?Ot:u,"aria-required":(ee=Q.required)!=null?ee:d,required:(fe=Q.required)!=null?fe:d,ref:vn(Se,Re),value:ft(W.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":hl(h??W.isOutOfRange),"aria-valuetext":Ei,autoComplete:"off",autoCorrect:"off",onChange:He(Q.onChange,ce),onKeyDown:He(Q.onKeyDown,ut),onFocus:He(Q.onFocus,At,()=>be(!0)),onBlur:He(Q.onBlur,Te,Dt)}},[x,v,p,R,C,ft,b,_,c,d,u,h,W.value,W.valueAsNumber,W.isOutOfRange,i,a,Ei,ce,ut,At,Te,Dt]);return{value:ft(W.value),valueAsNumber:W.valueAsNumber,isFocused:De,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Sr,getDecrementButtonProps:ha,getInputProps:Vr,htmlProps:Pe}}var[_te,Bm]=Ft({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Cte,tS]=Ft({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),XM=de(function(t,n){const r=si("NumberInput",t),i=ln(t),a=jx(i),{htmlProps:s,...u}=wte(a),c=y.useMemo(()=>u,[u]);return E.jsx(Cte,{value:c,children:E.jsx(_te,{value:r,children:E.jsx(se.div,{...s,ref:n,className:xe("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});XM.displayName="NumberInput";var QM=de(function(t,n){const r=Bm();return E.jsx(se.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});QM.displayName="NumberInputStepper";var ZM=de(function(t,n){const{getInputProps:r}=tS(),i=r(t,n),a=Bm();return E.jsx(se.input,{...i,className:xe("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});ZM.displayName="NumberInputField";var JM=se("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),e$=de(function(t,n){var r;const i=Bm(),{getDecrementButtonProps:a}=tS(),s=a(t,n);return E.jsx(JM,{...s,__css:i.stepper,children:(r=t.children)!=null?r:E.jsx(pte,{})})});e$.displayName="NumberDecrementStepper";var t$=de(function(t,n){var r;const{getIncrementButtonProps:i}=tS(),a=i(t,n),s=Bm();return E.jsx(JM,{...a,__css:s.stepper,children:(r=t.children)!=null?r:E.jsx(mte,{})})});t$.displayName="NumberIncrementStepper";var n$=de(function(t,n){const{children:r,placeholder:i,className:a,...s}=t;return E.jsxs(se.select,{...s,ref:n,className:xe("chakra-select",a),children:[i&&E.jsx("option",{value:"",children:i}),r]})});n$.displayName="SelectField";function kte(e,t){const n={},r={};for(const[i,a]of Object.entries(e))t.includes(i)?n[i]=a:r[i]=a;return[n,r]}var nS=de((e,t)=>{var n;const r=si("Select",e),{rootProps:i,placeholder:a,icon:s,color:u,height:c,h:d,minH:h,minHeight:p,iconColor:v,iconSize:g,..._}=ln(e),[S,k]=kte(_,MV),x=XI(k),b={width:"100%",height:"fit-content",position:"relative",color:u},C={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return E.jsxs(se.div,{className:"chakra-select__wrapper",__css:b,...S,...i,children:[E.jsx(n$,{ref:t,height:d??c,minH:h??p,placeholder:a,...x,__css:C,children:e.children}),E.jsx(r$,{"data-disabled":je(x.disabled),...(v||u)&&{color:v||u},__css:r.icon,...g&&{fontSize:g},children:s})]})});nS.displayName="Select";var Pte=e=>E.jsx("svg",{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Ete=se("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),r$=e=>{const{children:t=E.jsx(Pte,{}),...n}=e,r=y.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return E.jsx(Ete,{...n,className:"chakra-select__icon-wrapper",children:y.isValidElement(t)?r:null})};r$.displayName="SelectIcon";var Ds=e=>e?"":void 0,K0=e=>e?!0:void 0,vf=(...e)=>e.filter(Boolean).join(" ");function q0(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function sh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var Bh={width:0,height:0},lh=e=>e||Bh;function Tte(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,a=S=>{var k;const x=(k=r[S])!=null?k:Bh;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...sh({orientation:t,vertical:{bottom:`calc(${n[S]}% - ${x.height/2}px)`},horizontal:{left:`calc(${n[S]}% - ${x.width/2}px)`}})}},s=t==="vertical"?r.reduce((S,k)=>lh(S).height>lh(k).height?S:k,Bh):r.reduce((S,k)=>lh(S).width>lh(k).width?S:k,Bh),u={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...sh({orientation:t,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},c={position:"absolute",...sh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=n.length===1,h=[0,i?100-n[0]:n[0]],p=d?h:n;let v=p[0];!d&&i&&(v=100-v);const g=Math.abs(p[p.length-1]-p[0]),_={...c,...sh({orientation:t,vertical:i?{height:`${g}%`,top:`${v}%`}:{height:`${g}%`,bottom:`${v}%`},horizontal:i?{width:`${g}%`,right:`${v}%`}:{width:`${g}%`,left:`${v}%`}})};return{trackStyle:c,innerTrackStyle:_,rootStyle:u,getThumbStyle:a}}function Ate(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function Rte(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ite(e){const t=$te(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function i$(e){return!!e.touches}function Mte(e){return i$(e)&&e.touches.length>1}function $te(e){var t;return(t=e.view)!=null?t:window}function Fte(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function Dte(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function o$(e,t="page"){return i$(e)?Fte(e,t):Dte(e,t)}function Ote(e){return t=>{const n=Ite(t);(!n||n&&t.button===0)&&e(t)}}function Nte(e,t=!1){function n(i){e(i,{point:o$(i)})}return t?Ote(n):n}function jh(e,t,n,r){return Rte(e,t,Nte(n,t==="pointerdown"),r)}var Lte=Object.defineProperty,zte=(e,t,n)=>t in e?Lte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qr=(e,t,n)=>(zte(e,typeof t!="symbol"?t+"":t,n),n),Bte=class{constructor(e,t,n){Qr(this,"history",[]),Qr(this,"startEvent",null),Qr(this,"lastEvent",null),Qr(this,"lastEventInfo",null),Qr(this,"handlers",{}),Qr(this,"removeListeners",()=>{}),Qr(this,"threshold",3),Qr(this,"win"),Qr(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const u=Y0(this.lastEventInfo,this.history),c=this.startEvent!==null,d=Ute(u.offset,{x:0,y:0})>=this.threshold;if(!c&&!d)return;const{timestamp:h}=Rk();this.history.push({...u.point,timestamp:h});const{onStart:p,onMove:v}=this.handlers;c||(p==null||p(this.lastEvent,u),this.startEvent=this.lastEvent),v==null||v(this.lastEvent,u)}),Qr(this,"onPointerMove",(u,c)=>{this.lastEvent=u,this.lastEventInfo=c,kG.update(this.updatePoint,!0)}),Qr(this,"onPointerUp",(u,c)=>{const d=Y0(c,this.history),{onEnd:h,onSessionEnd:p}=this.handlers;p==null||p(u,d),this.end(),!(!h||!this.startEvent)&&(h==null||h(u,d))});var r;if(this.win=(r=e.view)!=null?r:window,Mte(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:o$(e)},{timestamp:a}=Rk();this.history=[{...i.point,timestamp:a}];const{onSessionStart:s}=t;s==null||s(e,Y0(i,this.history)),this.removeListeners=Wte(jh(this.win,"pointermove",this.onPointerMove),jh(this.win,"pointerup",this.onPointerUp),jh(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),PG.update(this.updatePoint)}};function dE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Y0(e,t){return{point:e.point,delta:dE(e.point,t[t.length-1]),offset:dE(e.point,t[0]),velocity:Vte(t,.1)}}var jte=e=>e*1e3;function Vte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>jte(t)));)n--;if(!r)return{x:0,y:0};const a=(i.timestamp-r.timestamp)/1e3;if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Wte(...e){return t=>e.reduce((n,r)=>r(n),t)}function X0(e,t){return Math.abs(e-t)}function hE(e){return"x"in e&&"y"in e}function Ute(e,t){if(typeof e=="number"&&typeof t=="number")return X0(e,t);if(hE(e)&&hE(t)){const n=X0(e.x,t.x),r=X0(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function a$(e){const t=y.useRef(null);return t.current=e,t}function Hte(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:a,onPanSessionEnd:s,threshold:u}=t,c=!!(n||r||i||a||s),d=y.useRef(null),h=a$({onSessionStart:a,onSessionEnd:s,onStart:r,onMove:n,onEnd(p,v){d.current=null,i==null||i(p,v)}});y.useEffect(()=>{var p;(p=d.current)==null||p.updateHandlers(h.current)}),y.useEffect(()=>{const p=e.current;if(!p||!c)return;function v(g){d.current=new Bte(g,h.current,u)}return jh(p,"pointerdown",v)},[e,c,h,u]),y.useEffect(()=>()=>{var p;(p=d.current)==null||p.end(),d.current=null},[])}function Gte(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=e.ownerDocument.defaultView??window,r=new n.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[a]=i;let s,u;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,u=d.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var Kte=globalThis!=null&&globalThis.document?y.useLayoutEffect:y.useEffect;function qte(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,a=new i.MutationObserver(()=>{t()});return a.observe(e.parentElement,{childList:!0}),()=>{a.disconnect()}}function Yte({getNodes:e,observeMutation:t=!0}){const[n,r]=y.useState([]),[i,a]=y.useState(0);return Kte(()=>{const s=e(),u=s.map((c,d)=>Gte(c,h=>{r(p=>[...p.slice(0,d),h,...p.slice(d+1)])}));if(t){const c=s[0];u.push(qte(c,()=>{a(d=>d+1)}))}return()=>{u.forEach(c=>{c==null||c()})}},[i]),n}function Xte(e){return typeof e=="object"&&e!==null&&"current"in e}function Qte(e){const[t]=Yte({observeMutation:!1,getNodes(){return[Xte(e)?e.current:e]}});return t}function Zte(e){var t;const{min:n=0,max:r=100,onChange:i,value:a,defaultValue:s,isReversed:u,direction:c="ltr",orientation:d="horizontal",id:h,isDisabled:p,isReadOnly:v,onChangeStart:g,onChangeEnd:_,step:S=1,getAriaValueText:k,"aria-valuetext":x,"aria-label":b,"aria-labelledby":C,name:R,focusThumbOnChange:M=!0,...z}=e,N=on(g),B=on(_),q=on(k),H=Ate({isReversed:u,direction:c,orientation:d}),[J,Pe]=zx({value:a,defaultValue:s??ene(n,r),onChange:i}),[Fe,Te]=y.useState(!1),[nt,we]=y.useState(!1),Z=!(p||v),W=(r-n)/10,re=S||(r-n)/100,ne=Oh(J,n,r),oe=r-ne+n,be=XP(H?oe:ne,n,r),Ce=d==="vertical",Se=a$({min:n,max:r,step:S,isDisabled:p,value:ne,isInteractive:Z,isReversed:H,isVertical:Ce,eventSource:null,focusThumbOnChange:M,orientation:d}),Oe=y.useRef(null),et=y.useRef(null),lt=y.useRef(null),gt=y.useId(),_t=h??gt,[ft,Jt]=[`slider-thumb-${_t}`,`slider-track-${_t}`],Jn=y.useCallback(ee=>{var fe,zn;if(!Oe.current)return;const Gt=Se.current;Gt.eventSource="pointer";const Nt=Oe.current.getBoundingClientRect(),{clientX:wr,clientY:Vl}=(zn=(fe=ee.touches)==null?void 0:fe[0])!=null?zn:ee,as=Ce?Nt.bottom-Vl:wr-Nt.left,Wl=Ce?Nt.height:Nt.width;let Ti=as/Wl;H&&(Ti=1-Ti);let Bn=YZ(Ti,Gt.min,Gt.max);return Gt.step&&(Bn=parseFloat(QP(Bn,Gt.min,Gt.step))),Bn=Oh(Bn,Gt.min,Gt.max),Bn},[Ce,H,Se]),Ne=y.useCallback(ee=>{const fe=Se.current;fe.isInteractive&&(ee=parseFloat(QP(ee,fe.min,re)),ee=Oh(ee,fe.min,fe.max),Pe(ee))},[re,Pe,Se]),ce=y.useMemo(()=>({stepUp(ee=re){const fe=H?ne-ee:ne+ee;Ne(fe)},stepDown(ee=re){const fe=H?ne+ee:ne-ee;Ne(fe)},reset(){Ne(s||0)},stepTo(ee){Ne(ee)}}),[Ne,H,ne,re,s]),At=y.useCallback(ee=>{const fe=Se.current,Gt={ArrowRight:()=>ce.stepUp(),ArrowUp:()=>ce.stepUp(),ArrowLeft:()=>ce.stepDown(),ArrowDown:()=>ce.stepDown(),PageUp:()=>ce.stepUp(W),PageDown:()=>ce.stepDown(W),Home:()=>Ne(fe.min),End:()=>Ne(fe.max)}[ee.key];Gt&&(ee.preventDefault(),ee.stopPropagation(),Gt(ee),fe.eventSource="keyboard")},[ce,Ne,W,Se]),ut=(t=q==null?void 0:q(ne))!=null?t:x,yn=Qte(et),{getThumbStyle:Ei,rootStyle:bn,trackStyle:Dt,innerTrackStyle:en}=y.useMemo(()=>{const ee=Se.current,fe=yn??{width:0,height:0};return Tte({isReversed:H,orientation:ee.orientation,thumbRects:[fe],thumbPercents:[be]})},[H,yn,be,Se]),Vt=y.useCallback(()=>{Se.current.focusThumbOnChange&&setTimeout(()=>{var fe;return(fe=et.current)==null?void 0:fe.focus()})},[Se]);jc(()=>{const ee=Se.current;Vt(),ee.eventSource==="keyboard"&&(B==null||B(ee.value))},[ne,B]);function li(ee){const fe=Jn(ee);fe!=null&&fe!==Se.current.value&&Pe(fe)}Hte(lt,{onPanSessionStart(ee){const fe=Se.current;fe.isInteractive&&(Te(!0),Vt(),li(ee),N==null||N(fe.value))},onPanSessionEnd(){const ee=Se.current;ee.isInteractive&&(Te(!1),B==null||B(ee.value))},onPan(ee){Se.current.isInteractive&&li(ee)}});const Sr=y.useCallback((ee={},fe=null)=>({...ee,...z,ref:vn(fe,lt),tabIndex:-1,"aria-disabled":K0(p),"data-focused":Ds(nt),style:{...ee.style,...bn}}),[z,p,nt,bn]),ha=y.useCallback((ee={},fe=null)=>({...ee,ref:vn(fe,Oe),id:Jt,"data-disabled":Ds(p),style:{...ee.style,...Dt}}),[p,Jt,Dt]),Vr=y.useCallback((ee={},fe=null)=>({...ee,ref:fe,style:{...ee.style,...en}}),[en]),Q=y.useCallback((ee={},fe=null)=>({...ee,ref:vn(fe,et),role:"slider",tabIndex:Z?0:void 0,id:ft,"data-active":Ds(Fe),"aria-valuetext":ut,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":ne,"aria-orientation":d,"aria-disabled":K0(p),"aria-readonly":K0(v),"aria-label":b,"aria-labelledby":b?void 0:C,style:{...ee.style,...Ei(0)},onKeyDown:q0(ee.onKeyDown,At),onFocus:q0(ee.onFocus,()=>we(!0)),onBlur:q0(ee.onBlur,()=>we(!1))}),[Z,ft,Fe,ut,n,r,ne,d,p,v,b,C,Ei,At]),Re=y.useCallback((ee,fe=null)=>{const zn=!(ee.valuer),Gt=ne>=ee.value,Nt=XP(ee.value,n,r),wr={position:"absolute",pointerEvents:"none",...Jte({orientation:d,vertical:{bottom:H?`${100-Nt}%`:`${Nt}%`},horizontal:{left:H?`${100-Nt}%`:`${Nt}%`}})};return{...ee,ref:fe,role:"presentation","aria-hidden":!0,"data-disabled":Ds(p),"data-invalid":Ds(!zn),"data-highlighted":Ds(Gt),style:{...ee.style,...wr}}},[p,H,r,n,d,ne]),rt=y.useCallback((ee={},fe=null)=>({...ee,ref:fe,type:"hidden",value:ne,name:R}),[R,ne]);return{state:{value:ne,isFocused:nt,isDragging:Fe},actions:ce,getRootProps:Sr,getTrackProps:ha,getInnerTrackProps:Vr,getThumbProps:Q,getMarkerProps:Re,getInputProps:rt}}function Jte(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function ene(e,t){return t"}),[nne,Vm]=Ft({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),s$=de((e,t)=>{var n;const r={...e,orientation:(n=e==null?void 0:e.orientation)!=null?n:"horizontal"},i=si("Slider",r),a=ln(r),{direction:s}=EA();a.direction=s;const{getInputProps:u,getRootProps:c,...d}=Zte(a),h=c(),p=u({},t);return E.jsx(tne,{value:d,children:E.jsx(nne,{value:i,children:E.jsxs(se.div,{...h,className:vf("chakra-slider",r.className),__css:i.container,children:[r.children,E.jsx("input",{...p})]})})})});s$.displayName="Slider";var l$=de((e,t)=>{const{getThumbProps:n}=jm(),r=Vm(),i=n(e,t);return E.jsx(se.div,{...i,className:vf("chakra-slider__thumb",e.className),__css:r.thumb})});l$.displayName="SliderThumb";var u$=de((e,t)=>{const{getTrackProps:n}=jm(),r=Vm(),i=n(e,t);return E.jsx(se.div,{...i,className:vf("chakra-slider__track",e.className),__css:r.track})});u$.displayName="SliderTrack";var c$=de((e,t)=>{const{getInnerTrackProps:n}=jm(),r=Vm(),i=n(e,t);return E.jsx(se.div,{...i,className:vf("chakra-slider__filled-track",e.className),__css:r.filledTrack})});c$.displayName="SliderFilledTrack";var rne=de((e,t)=>{const{getMarkerProps:n}=jm(),r=Vm(),i=n(e,t);return E.jsx(se.div,{...i,className:vf("chakra-slider__marker",e.className),__css:r.mark})});rne.displayName="SliderMark";var[ine,one,ane,sne]=NI();function lne(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:a,isLazy:s,lazyBehavior:u="unmount",orientation:c="horizontal",direction:d="ltr",...h}=e,[p,v]=y.useState(n??0),[g,_]=zx({defaultValue:n??0,value:i,onChange:r});y.useEffect(()=>{i!=null&&v(i)},[i]);const S=ane(),k=y.useId();return{id:`tabs-${(t=e.id)!=null?t:k}`,selectedIndex:g,focusedIndex:p,setSelectedIndex:_,setFocusedIndex:v,isManual:a,isLazy:s,lazyBehavior:u,orientation:c,descendants:S,direction:d,htmlProps:h}}var[une,Wm]=Ft({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function cne(e){const{focusedIndex:t,orientation:n,direction:r}=Wm(),i=one(),a=y.useCallback(s=>{const u=()=>{var b;const C=i.nextEnabled(t);C&&((b=C.node)==null||b.focus())},c=()=>{var b;const C=i.prevEnabled(t);C&&((b=C.node)==null||b.focus())},d=()=>{var b;const C=i.firstEnabled();C&&((b=C.node)==null||b.focus())},h=()=>{var b;const C=i.lastEnabled();C&&((b=C.node)==null||b.focus())},p=n==="horizontal",v=n==="vertical",g=s.key,_=r==="ltr"?"ArrowLeft":"ArrowRight",S=r==="ltr"?"ArrowRight":"ArrowLeft",x={[_]:()=>p&&c(),[S]:()=>p&&u(),ArrowDown:()=>v&&u(),ArrowUp:()=>v&&c(),Home:d,End:h}[g];x&&(s.preventDefault(),x(s))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:He(e.onKeyDown,a)}}function fne(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:a,id:s,setFocusedIndex:u,selectedIndex:c}=Wm(),{index:d,register:h}=sne({disabled:t&&!n}),p=d===c,v=()=>{i(d)},g=()=>{u(d),!a&&!(t&&n)&&i(d)},_=xee({...r,ref:vn(h,e.ref),isDisabled:t,isFocusable:n,onClick:He(e.onClick,v)}),S="button";return{..._,id:f$(s,d),role:"tab",tabIndex:p?0:-1,type:S,"aria-selected":p,"aria-controls":d$(s,d),onFocus:t?void 0:He(e.onFocus,g)}}var[dne,hne]=Ft({});function pne(e){const t=Wm(),{id:n,selectedIndex:r}=t,a=UI(e.children).map((s,u)=>y.createElement(dne,{key:u,value:{isSelected:u===r,id:d$(n,u),tabId:f$(n,u),selectedIndex:r}},s));return{...e,children:a}}function mne(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=Wm(),{isSelected:a,id:s,tabId:u}=hne(),c=y.useRef(!1);a&&(c.current=!0);const d=See({wasSelected:c.current,isSelected:a,enabled:r,mode:i});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":u,hidden:!a,id:s}}function f$(e,t){return`${e}--tab-${t}`}function d$(e,t){return`${e}--tabpanel-${t}`}var[vne,Um]=Ft({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),h$=de(function(t,n){const r=si("Tabs",t),{children:i,className:a,...s}=ln(t),{htmlProps:u,descendants:c,...d}=lne(s),h=y.useMemo(()=>d,[d]),{isFitted:p,...v}=u,g={position:"relative",...r.root};return E.jsx(ine,{value:c,children:E.jsx(une,{value:h,children:E.jsx(vne,{value:r,children:E.jsx(se.div,{className:xe("chakra-tabs",a),ref:n,...v,__css:g,children:i})})})})});h$.displayName="Tabs";var p$=de(function(t,n){const r=cne({...t,ref:n}),a={display:"flex",...Um().tablist};return E.jsx(se.div,{...r,className:xe("chakra-tabs__tablist",t.className),__css:a})});p$.displayName="TabList";var m$=de(function(t,n){const r=mne({...t,ref:n}),i=Um();return E.jsx(se.div,{outline:"0",...r,className:xe("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});m$.displayName="TabPanel";var v$=de(function(t,n){const r=pne(t),i=Um();return E.jsx(se.div,{...r,width:"100%",ref:n,className:xe("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});v$.displayName="TabPanels";var g$=de(function(t,n){const r=Um(),i=fne({...t,ref:n}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return E.jsx(se.button,{...i,className:xe("chakra-tabs__tab",t.className),__css:a})});g$.displayName="Tab";const gne=()=>{const e=rf();return(n,r)=>{const i=Jy({path:n,value:r});return e(i)}},yne=()=>Xo(fj),bne=({modes:e,defaultValue:t,selectedValue:n,title:r,hint:i,depth:a,state:s,statePath:u,updateState:c,renderChild:d,updating:h})=>{const p=e[n],v=p?p.type:null,g=p?Object.entries(p.children):[];return E.jsxs(E.Fragment,{children:[E.jsxs(hr,{children:[E.jsx(Wa,{htmlFor:`${u}`,children:r}),E.jsx(nS,{id:`${u}`,onChange:_=>{if(!h)return c(`${u}.mode`,_.target.value)},value:n,children:Object.entries(e).map(([_,{title:S}],k)=>E.jsx("option",{value:_,children:S},k))})]}),E.jsxs(ur,{direction:"row",children:[E.jsx(Jx,{children:E.jsx($M,{orientation:"vertical",marginRight:"0.75rem",alignSelf:"stretch"})}),E.jsx(qc,{flexGrow:"1",children:g&&g.length>0&&g.map(([_,S],k)=>d({childName:_,child:S,childOrder:k,depth:a+1,parentType:v,state:s,updateState:c,statePath:`${u}.${n}.${_}`}))})]})]})},xne=({type:e,options:t})=>e==="discrete"?E.jsx(E.Fragment,{children:t.map((n,r)=>E.jsx("option",{value:n,children:n},r))}):e==="multiple"?E.jsx(E.Fragment,{children:Object.entries(t).map(([n,r],i)=>E.jsx("option",{value:n,children:r},i))}):null;var Sne=_Q({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"});const wne=({settings:e})=>{const{hint:t,children:n}=e;return E.jsx(WI,{defaultIndex:[0],allowMultiple:!0,children:E.jsxs(ur,{direction:"column",children:[E.jsx(hr,{paddingBottom:"0.5rem",children:t}),Object.values(n).map((r,i)=>r?j1(r,i):null)]})})};function j1(e,t){const{title:n,hint:r,children:i,modes:a}=e;return!i&&!a&&!r?E.jsx(A1,{children:E.jsx(T1,{children:E.jsx(hr,{as:"span",flex:"1",textAlign:"left",children:n})})},t):E.jsxs(A1,{children:[E.jsx(Lm,{as:"h4",children:E.jsxs(T1,{children:[E.jsx(hr,{as:"span",flex:"1",textAlign:"left",children:n}),E.jsx(LI,{})]})}),E.jsxs(VI,{pb:4,children:[E.jsx(hr,{paddingBottom:"0.5rem",children:r}),i&&Object.values(i).map((s,u)=>j1(s,u)),a&&Object.values(a).map((s,u)=>j1(s,u))]})]},t)}const _ne=({path:e})=>{const t=Xo(rA),[n,r]=y.useState(!1),i=()=>r(!0),a=()=>r(!1),s=bi.get(t,e,null);if(!s)return E.jsx(E.Fragment,{});if(!(!s.children&&!s.hint))return E.jsxs(E.Fragment,{children:[E.jsx(ta,{backgroundColor:"transparent",onClick:i,children:E.jsx(Sne,{})}),E.jsxs(NM,{isOpen:n,onClose:a,children:[E.jsx(KM,{}),E.jsxs(UM,{children:[E.jsx(GM,{children:s.title}),E.jsx(YM,{}),E.jsx(qM,{children:E.jsx(wne,{settings:s})}),E.jsx(HM,{children:E.jsx(ta,{colorScheme:"blue",mr:3,onClick:a,children:"Close"})})]})]})]})};class Hi extends y.Component{constructor(t){super(t),this.state={hasError:!1,title:t==null?void 0:t.title}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.log(t,n)}render(){return this.state.hasError?E.jsxs(Fm,{status:"error",children:[E.jsx($m,{}),"Error while trying to render ",this.props.title]}):this.props.children}}const Cne=({value:e,title:t,statePath:n,onChange:r,tags:i,min:a,max:s})=>{const u=e?{value:e}:{};return i!=null&&i.includes("dropdown")?E.jsx("div",{children:E.jsxs(Hi,{title:t,children:[E.jsx(Wa,{htmlFor:`${n}`,children:t}),E.jsxs(XM,{id:`${n}`,...u,onChange:r,min:a,max:s,children:[E.jsx(ZM,{}),E.jsxs(QM,{children:[E.jsx(t$,{}),E.jsx(e$,{})]})]})]})}):E.jsx("div",{children:E.jsxs(Hi,{title:t,children:[E.jsxs(ur,{direction:"row",alignItems:"center",children:[E.jsx(Wa,{htmlFor:`${n}`,children:t}),E.jsx(hr,{flexGrow:"1",minW:"2rem"}),e&&E.jsx(Wa,{children:e})]}),E.jsxs(s$,{min:a,max:s,...u,onChange:r,children:[E.jsx(u$,{children:E.jsx(c$,{})}),E.jsx(l$,{})]})]})})},y$=({type:e,title:t,childName:n,hint:r,parentType:i,statePath:a,children:s,options:u,renderChild:c,modes:d,depth:h=0,state:p,min:v,max:g,tags:_,updateState:S,default:k})=>{const x=yne(),b=y.useRef(null);if(_&&(_.indexOf("hhd-update-decky")>=0||_.indexOf("hhd-version-display-decky")>=0))return null;const C=()=>{if(s)return Object.entries(s).map(([R,M],z)=>c({childName:R,child:M,childOrder:z,depth:h+1,parentType:e,state:p,updateState:S,tags:_,statePath:a?`${a}.${R}`:`${R}`}))};if(e==="container")return E.jsx(E.Fragment,{children:E.jsxs(GI,{style:{display:"flex",flexDirection:"column",padding:0},children:[E.jsxs(ur,{direction:"row",marginBottom:"1rem",alignItems:"center",children:[E.jsx(Lm,{as:"h1",fontSize:"xl",children:t}),E.jsx(hr,{flexGrow:"1",minW:"2rem"}),E.jsx(_ne,{path:`${a}`})]}),E.jsx(qc,{spacing:"3",children:E.jsx(Hi,{title:t,children:c&&typeof c=="function"&&C()})})]})});if(e==="mode"&&d&&a){const R=bi.get(p,`${a}.mode`,k);return E.jsx(Hi,{title:t,children:E.jsx(bne,{modes:d,defaultValue:k,selectedValue:R,title:t,depth:h,state:p,statePath:a,updateState:S,hint:r,renderChild:c,updating:x})})}if(e==="int"&&typeof v=="number"&&typeof g=="number"&&v{if(!x)return S(`${a}`,Number(z))};return E.jsx(Cne,{value:R,onChange:M,tags:_||[],title:t,statePath:`${a}`,min:v,max:g})}if(e==="bool"){const R=bi.get(p,`${a}`,k);return E.jsx(ur,{flexDirection:"row",children:E.jsxs(Hi,{title:t,children:[E.jsx(Wa,{htmlFor:`${a}`,children:t}),E.jsx(hr,{flexGrow:"1"}),E.jsx(QI,{id:`${a}`,ref:b,isChecked:!!R,onKeyDown:M=>{var z;if(M.code==="Enter")return x?void 0:S(`${a}`,!((z=b.current)!=null&&z.checked))},onChange:M=>{if(!x)return S(`${a}`,M.target.checked)}})]})})}if((e==="discrete"||e==="multiple")&&u){const R=bi.get(p,`${a}`,k);return E.jsx(ur,{flexDirection:"column",children:E.jsxs(Hi,{title:t,children:[E.jsx(Wa,{htmlFor:`${a}`,children:t}),E.jsx(nS,{id:`${a}`,onChange:M=>{if(!x)return e==="discrete"?S(`${a}`,Number(M.target.value)):S(`${a}`,M.target.value)},value:R,children:E.jsx(xne,{type:e,options:u})})]})})}if(e==="display"&&t){const R=bi.get(p,`${a}`);return R?E.jsx(Hi,{title:t,children:E.jsxs(eS,{padding:"1rem",children:[t," - ",R]})}):null}return e==="action"&&t?E.jsx(Hi,{title:t,children:E.jsx(ta,{onClick:()=>S(`${a}`,!0),children:t})}):null},b$=({childName:e,child:t,childOrder:n,parentType:r,statePath:i,state:a,tags:s,updateState:u,depth:c})=>E.jsx(y$,{childName:e,renderChild:b$,depth:c,parentType:r,statePath:i,state:a,tags:s,updateState:u,...t},n),V1="500px",kne={initialColorMode:"dark",useSystemColorMode:!0},Pne=vG({config:kne}),Ene=()=>{const e=Xo(iA),t=Xo(rA),n=Xo(pj),r=gne();return E.jsx(KI,{width:V1,children:E.jsxs(h$,{defaultIndex:0,size:"md",orientation:"vertical",children:[E.jsx(p$,{style:{padding:"1rem 0"},children:Object.keys(t).map((i,a)=>{let s=i.split("_").map(bi.capitalize).join(" ");return n&&n[i]&&(s=n[i]),E.jsx(g$,{children:s},`tablist-tab-${a}`)})}),E.jsx(v$,{children:Object.entries(t).map(([i,a],s)=>E.jsx("div",{children:Object.keys(a).map((u,c)=>{const d=a[u],h=`${i}.${u}`;return E.jsx(m$,{children:E.jsx(Hi,{children:E.jsx(y$,{...d,state:e,childName:u,renderChild:b$,statePath:h,updateState:r})})},`${h}${s}${c}`)})},s))})]})})};/** + * @remix-run/router v1.14.1 + * + * 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 Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ane(){return Math.random().toString(36).substr(2,8)}function mE(e,t){return{usr:e.state,key:e.key,idx:t}}function W1(e,t,n,r){return n===void 0&&(n=null),Yc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?os(t):t,{state:n,key:t&&t.key||r||Ane()})}function x$(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function os(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Rne(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u=jo.Pop,c=null,d=h();d==null&&(d=0,s.replaceState(Yc({},s.state,{idx:d}),""));function h(){return(s.state||{idx:null}).idx}function p(){u=jo.Pop;let k=h(),x=k==null?null:k-d;d=k,c&&c({action:u,location:S.location,delta:x})}function v(k,x){u=jo.Push;let b=W1(S.location,k,x);n&&n(b,k),d=h()+1;let C=mE(b,d),R=S.createHref(b);try{s.pushState(C,"",R)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;i.location.assign(R)}a&&c&&c({action:u,location:S.location,delta:1})}function g(k,x){u=jo.Replace;let b=W1(S.location,k,x);n&&n(b,k),d=h();let C=mE(b,d),R=S.createHref(b);s.replaceState(C,"",R),a&&c&&c({action:u,location:S.location,delta:0})}function _(k){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof k=="string"?k:x$(k);return Qt(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let S={get action(){return u},get location(){return e(i,s)},listen(k){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(pE,p),c=k,()=>{i.removeEventListener(pE,p),c=null}},createHref(k){return t(i,k)},createURL:_,encodeLocation(k){let x=_(k);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:g,go(k){return s.go(k)}};return S}var vE;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vE||(vE={}));function Ine(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?os(t):t,i=_$(r.pathname||"/",n);if(i==null)return null;let a=S$(e);Mne(a);let s=null;for(let u=0;s==null&&u{let c={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(Qt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ua([r,c.relativePath]),h=n.concat(c);a.children&&a.children.length>0&&(Qt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),S$(a.children,t,h,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:zne(d,a.index),routesMeta:h})};return e.forEach((a,s)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,s);else for(let c of w$(a.path))i(a,s,c)}),t}function w$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=w$(r.join("/")),u=[];return u.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function Mne(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bne(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $ne=/^:\w+$/,Fne=3,Dne=2,One=1,Nne=10,Lne=-2,gE=e=>e==="*";function zne(e,t){let n=e.split("/"),r=n.length;return n.some(gE)&&(r+=Lne),t&&(r+=Dne),n.filter(i=>!gE(i)).reduce((i,a)=>i+($ne.test(a)?Fne:a===""?One:Nne),r)}function Bne(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function jne(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:v,isOptional:g}=h;if(v==="*"){let S=u[p]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const _=u[p];return g&&!_?d[v]=void 0:d[v]=Hne(_||"",v),d},{}),pathname:a,pathnameBase:s,pattern:e}}function Wne(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hm(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Une(e){try{return decodeURI(e)}catch(t){return Hm(!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 Hne(e,t){try{return decodeURIComponent(e)}catch(n){return Hm(!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 ("+n+").")),e}}function _$(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Gne(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?os(e):e;return{pathname:n?n.startsWith("/")?n:Kne(n,t):t,search:Zne(r),hash:Jne(i)}}function Kne(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Q0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qne(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yne(e,t){let n=qne(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Xne(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=os(e):(i=Yc({},e),Qt(!i.pathname||!i.pathname.includes("?"),Q0("?","pathname","search",i)),Qt(!i.pathname||!i.pathname.includes("#"),Q0("#","pathname","hash",i)),Qt(!i.search||!i.search.includes("#"),Q0("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}u=p>=0?t[p]:"/"}let c=Gne(i,u),d=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}const Ua=e=>e.join("/").replace(/\/\/+/g,"/"),Qne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ere(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const C$=["post","put","patch","delete"];new Set(C$);const tre=["get",...C$];new Set(tre);/** + * React Router v6.21.1 + * + * 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 Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),y.useCallback(function(d,h){if(h===void 0&&(h={}),!u.current)return;if(typeof d=="number"){r.go(d);return}let p=Xne(d,JSON.parse(s),a,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ua([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,s,a,e])}function ire(e,t){return ore(e,t)}function ore(e,t,n,r){qm()||Qt(!1);let{navigator:i}=y.useContext(Gm),{matches:a}=y.useContext(jl),s=a[a.length-1],u=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let d=P$(),h;if(t){var p;let k=typeof t=="string"?os(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||Qt(!1),h=k}else h=d;let v=h.pathname||"/",g=c==="/"?v:v.slice(c.length)||"/",_=Ine(e,{pathname:g}),S=cre(_&&_.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:Ua([c,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Ua([c,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),a,n,r);return t&&S?y.createElement(Km.Provider,{value:{location:Xc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:jo.Pop}},S):S}function are(){let e=pre(),t=ere(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,a)}const sre=y.createElement(are,null);class lre extends y.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(jl.Provider,{value:this.props.routeContext},y.createElement(k$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ure(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(rS);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(jl.Provider,{value:t},r)}function cre(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let h=s.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id]));h>=0||Qt(!1),s=s.slice(0,Math.min(s.length,h+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,p,v)=>{let g,_=!1,S=null,k=null;n&&(g=u&&p.route.id?u[p.route.id]:void 0,S=p.route.errorElement||sre,c&&(d<0&&v===0?(vre("route-fallback",!1),_=!0,k=null):d===v&&(_=!0,k=p.route.hydrateFallbackElement||null)));let x=t.concat(s.slice(0,v+1)),b=()=>{let C;return g?C=S:_?C=k:p.route.Component?C=y.createElement(p.route.Component,null):p.route.element?C=p.route.element:C=h,y.createElement(ure,{match:p,routeContext:{outlet:h,matches:x,isDataRoute:n!=null},children:C})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?y.createElement(lre,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var T$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T$||{}),Np=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}(Np||{});function fre(e){let t=y.useContext(rS);return t||Qt(!1),t}function dre(e){let t=y.useContext(nre);return t||Qt(!1),t}function hre(e){let t=y.useContext(jl);return t||Qt(!1),t}function A$(e){let t=hre(),n=t.matches[t.matches.length-1];return n.route.id||Qt(!1),n.route.id}function pre(){var e;let t=y.useContext(k$),n=dre(Np.UseRouteError),r=A$(Np.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mre(){let{router:e}=fre(T$.UseNavigateStable),t=A$(Np.UseNavigateStable),n=y.useRef(!1);return E$(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Xc({fromRouteId:t},a)))},[e,t])}const yE={};function vre(e,t,n){!t&&!yE[e]&&(yE[e]=!0)}function U1(e){Qt(!1)}function gre(e){let{basename:t="/",children:n=null,location:r,navigationType:i=jo.Pop,navigator:a,static:s=!1,future:u}=e;qm()&&Qt(!1);let c=t.replace(/^\/*/,"/"),d=y.useMemo(()=>({basename:c,navigator:a,static:s,future:Xc({v7_relativeSplatPath:!1},u)}),[c,u,a,s]);typeof r=="string"&&(r=os(r));let{pathname:h="/",search:p="",hash:v="",state:g=null,key:_="default"}=r,S=y.useMemo(()=>{let k=_$(h,c);return k==null?null:{location:{pathname:k,search:p,hash:v,state:g,key:_},navigationType:i}},[c,h,p,v,g,_,i]);return S==null?null:y.createElement(Gm.Provider,{value:d},y.createElement(Km.Provider,{children:n,value:S}))}function yre(e){let{children:t,location:n}=e;return ire(H1(t),n)}new Promise(()=>{});function H1(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let a=[...t,i];if(r.type===y.Fragment){n.push.apply(n,H1(r.props.children,a));return}r.type!==U1&&Qt(!1),!r.props.index||!r.props.children||Qt(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=H1(r.props.children,a)),n.push(s)}),n}/** + * React Router DOM v6.21.1 + * + * 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 bre="startTransition",bE=cc[bre];function xre(e){let{basename:t,children:n,future:r,window:i}=e,a=y.useRef();a.current==null&&(a.current=Tne({window:i,v5Compat:!0}));let s=a.current,[u,c]=y.useState({action:s.action,location:s.location}),{v7_startTransition:d}=r||{},h=y.useCallback(p=>{d&&bE?bE(()=>c(p)):c(p)},[c,d]);return y.useLayoutEffect(()=>s.listen(h),[s,h]),y.createElement(gre,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:s,future:r})}var xE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xE||(xE={}));var SE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(SE||(SE={}));const Sre=()=>{const e=rf();return()=>e(Ic.actions.resetHhdState())},wre=()=>{const e=rf();return t=>e(Ic.actions.setError({errorName:Kb.LoginFailed,errorMessage:t}))},R$=()=>{const e=wre(),t=iS(),n=Sre();return i=>{lj(),i&&e(i),n(),t("/")}},_re=()=>{const e=rf(),t=iS(),n=()=>{aj(),e(Ic.actions.resetHhdState()),e(Ic.actions.clearError(Kb.LoginFailed)),t("/ui")},r=Xo(hj);return{login:n,errorMessage:r}},I$=({width:e,...t})=>E.jsx(E.Fragment,{children:E.jsxs("picture",{children:[E.jsx("source",{media:"(prefers-color-scheme: dark)",srcSet:"src/assets/logo_dark.svg",width:`${e}%`}),E.jsx("source",{media:"(prefers-color-scheme: light)",srcSet:"src/assets/logo_light.svg",width:`${e}%`}),E.jsx("img",{alt:"Handheld Daemon Logo.",src:"src/assets/logo_light.svg",width:`${e}%`,...t})]})}),Cre=y.memo(()=>{const e=rf(),t=R$(),{stateLoading:n,settingsLoading:r}=Xo(dj),i=Xo(iA);return y.useEffect(()=>{e(Qy()),e(Zy()),e(nA())},[]),kre(n,r,i),!i||n=="pending"||r=="pending"?null:E.jsxs(ur,{w:"100%",flexDirection:"column",alignItems:"center",children:[E.jsx(ur,{margin:"15px",children:E.jsxs(ur,{w:V1,flexDirection:"row",alignItems:"start",justifyContent:"start",children:[E.jsx(Lm,{children:E.jsx(I$,{width:30})}),E.jsx(hr,{flexGrow:"3"}),E.jsx(ta,{onClick:()=>{t()},children:"Disconnect"})]})}),E.jsx(hr,{w:"50px"}),E.jsx(ur,{w:V1,flexDirection:"column",alignItems:"center",justifyContent:"center",children:E.jsx(Ene,{})})]})});function kre(e,t,n){const r=R$();y.useEffect(()=>{var i;e==="succeeded"&&t==="succeeded"&&!((i=n==null?void 0:n.hhd)!=null&&i.http)&&r("Error while verifying your token. Either the token is incorrect, or the web server is not working.")},[e,t,n])}const Pre=zB({reducer:{hhd:Ic.reducer},devTools:!0});function Ere(){const e=iS(),[t,n]=y.useState(eA()),[r,i]=y.useState(tA()),{login:a,errorMessage:s}=_re();return y.useEffect(()=>{sj()&&e("/ui")},[]),E.jsx(Jx,{minW:"100vw",minH:"100vh",children:E.jsx(hr,{children:E.jsxs(KI,{maxW:"md",margin:"1rem 0",children:[E.jsx(bZ,{children:E.jsx(I$,{width:60,style:{margin:"auto"}})}),E.jsx(GI,{children:E.jsxs(qc,{divider:E.jsx(RM,{}),spacing:"4",children:[E.jsx(Nh,{children:"Welcome to the Handheld Daemon Configurator!"}),E.jsx(Nh,{children:"This is a static website you can use to configure your device (everything is done locally and there is no server). With the default security settings, you need to visit this webpage from your device and enter a security token. This token can be found below. Have fun!"}),E.jsx(eS,{textAlign:"center",padding:"1rem",lang:"bash",children:"cat $HOME/.config/hhd/token"}),E.jsxs(Nh,{children:["Example token: ",E.jsx("b",{children:"2f7abbc42dc7"})]}),E.jsxs(qc,{spacing:"2",children:[E.jsxs(ur,{children:[E.jsx(Op,{type:"text",id:"token-input",value:t,onChange:u=>{RC(u.target.value),n(u.target.value)},borderRightRadius:"0",placeholder:"URL"}),E.jsx(ta,{w:"5rem",onClick:()=>{RC(""),n("")},borderLeftRadius:"0",children:"Reset"})]}),E.jsxs(ur,{children:[E.jsx(Op,{type:"text",display:"Token",id:"token-input",onChange:u=>{IC(u.target.value),i(u.target.value)},value:r,borderRightRadius:"0",placeholder:"Token (empty if disabled)"}),E.jsx(ta,{w:"5rem",onClick:()=>{IC(""),i("")},borderLeftRadius:"0",children:"Clear"})]}),E.jsx(ta,{onClick:()=>{a()},borderLeftRadius:"0",children:"Connect"}),s&&E.jsxs(Fm,{status:"error",children:[E.jsx($m,{}),s]})]})]})})]})})})}Z0.createRoot(document.getElementById("root")).render(E.jsx(na.StrictMode,{children:E.jsx(tB,{store:Pre,children:E.jsx(BQ,{theme:Pne,children:E.jsx(xre,{children:E.jsxs(yre,{children:[E.jsx(U1,{path:"/",Component:Ere}),E.jsx(U1,{path:"/ui",Component:Cre})]})})})})})); diff --git a/assets/index-b089Zlqo.js b/assets/index-b089Zlqo.js deleted file mode 100644 index fc11785..0000000 --- a/assets/index-b089Zlqo.js +++ /dev/null @@ -1,450 +0,0 @@ -var f3=Object.defineProperty;var d3=(e,t,n)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cg=(e,t,n)=>(d3(e,typeof t!="symbol"?t+"":t,n),n);function h3(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H2={exports:{}},Ep={},G2={exports:{}},Fe={};/** - * @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 Wc=Symbol.for("react.element"),p3=Symbol.for("react.portal"),m3=Symbol.for("react.fragment"),v3=Symbol.for("react.strict_mode"),g3=Symbol.for("react.profiler"),y3=Symbol.for("react.provider"),b3=Symbol.for("react.context"),x3=Symbol.for("react.forward_ref"),S3=Symbol.for("react.suspense"),w3=Symbol.for("react.memo"),_3=Symbol.for("react.lazy"),Fw=Symbol.iterator;function C3(e){return e===null||typeof e!="object"?null:(e=Fw&&e[Fw]||e["@@iterator"],typeof e=="function"?e:null)}var K2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q2=Object.assign,Y2={};function Pl(e,t,n){this.props=e,this.context=t,this.refs=Y2,this.updater=n||K2}Pl.prototype.isReactComponent={};Pl.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")};Pl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function X2(){}X2.prototype=Pl.prototype;function x1(e,t,n){this.props=e,this.context=t,this.refs=Y2,this.updater=n||K2}var S1=x1.prototype=new X2;S1.constructor=x1;q2(S1,Pl.prototype);S1.isPureReactComponent=!0;var Ow=Array.isArray,Q2=Object.prototype.hasOwnProperty,w1={current:null},Z2={key:!0,ref:!0,__self:!0,__source:!0};function J2(e,t,n){var r,i={},a=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(a=""+t.key),t)Q2.call(t,r)&&!Z2.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,Te=W[re];if(0>>1;rei(Qe,se))zei(st,Qe)?(W[re]=st,W[ze]=se,re=ze):(W[re]=Qe,W[Ee]=se,re=Ee);else if(zei(st,se))W[re]=st,W[ze]=se,re=ze;else break e}}return ie}function i(W,ie){var se=W.sortIndex-ie.sortIndex;return se!==0?se:W.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var c=[],d=[],h=1,p=null,v=3,g=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var ie=n(d);ie!==null;){if(ie.callback===null)r(d);else if(ie.startTime<=W)r(d),ie.sortIndex=ie.expirationTime,t(c,ie);else break;ie=n(d)}}function R(W){if(S=!1,C(W),!w)if(n(c)!==null)w=!0,ke($);else{var ie=n(d);ie!==null&&Oe(R,ie.startTime-W)}}function $(W,ie){w=!1,S&&(S=!1,b(j),j=-1),g=!0;var se=v;try{for(C(ie),p=n(c);p!==null&&(!(p.expirationTime>ie)||W&&!J());){var re=p.callback;if(typeof re=="function"){p.callback=null,v=p.priorityLevel;var Te=re(p.expirationTime<=ie);ie=e.unstable_now(),typeof Te=="function"?p.callback=Te:p===n(c)&&r(c),C(ie)}else r(c);p=n(c)}if(p!==null)var me=!0;else{var Ee=n(d);Ee!==null&&Oe(R,Ee.startTime-ie),me=!1}return me}finally{p=null,v=se,g=!1}}var z=!1,L=null,j=-1,K=5,q=-1;function J(){return!(e.unstable_now()-qW||125re?(W.sortIndex=se,t(d,W),n(c)===null&&W===n(d)&&(S?(b(j),j=-1):S=!0,Oe(R,se-re))):(W.sortIndex=Te,t(c,W),w||g||(w=!0,ke($))),W},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(W){var ie=v;return function(){var se=v;v=ie;try{return W.apply(this,arguments)}finally{v=se}}}})(rE);nE.exports=rE;var O3=nE.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 iE=_,ir=O3;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R0=Object.prototype.hasOwnProperty,D3=/^[: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]*$/,Nw={},Lw={};function N3(e){return R0.call(Lw,e)?!0:R0.call(Nw,e)?!1:D3.test(e)?Lw[e]=!0:(Nw[e]=!0,!1)}function L3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z3(e,t,n,r){if(t===null||typeof t>"u"||L3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function In(e,t,n,r,i,a,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){sn[e]=new In(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];sn[t]=new In(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){sn[e]=new In(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){sn[e]=new In(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){sn[e]=new In(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){sn[e]=new In(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){sn[e]=new In(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){sn[e]=new In(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){sn[e]=new In(e,5,!1,e.toLowerCase(),null,!1,!1)});var C1=/[\-:]([a-z])/g;function k1(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(C1,k1);sn[t]=new In(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(C1,k1);sn[t]=new In(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(C1,k1);sn[t]=new In(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){sn[e]=new In(e,1,!1,e.toLowerCase(),null,!1,!1)});sn.xlinkHref=new In("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){sn[e]=new In(e,1,!1,e.toLowerCase(),null,!0,!0)});function E1(e,t,n,r){var i=sn.hasOwnProperty(t)?sn[t]:null;(i!==null?i.type!==0:r||!(2u||i[l]!==a[u]){var c=` -`+i[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=u);break}}}finally{hg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cu(e):""}function B3(e){switch(e.tag){case 5:return Cu(e.type);case 16:return Cu("Lazy");case 13:return Cu("Suspense");case 19:return Cu("SuspenseList");case 0:case 2:case 15:return e=pg(e.type,!1),e;case 11:return e=pg(e.type.render,!1),e;case 1:return e=pg(e.type,!0),e;default:return""}}function F0(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 Rs:return"Fragment";case As:return"Portal";case I0:return"Profiler";case P1:return"StrictMode";case M0:return"Suspense";case $0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sE:return(e.displayName||"Context")+".Consumer";case aE:return(e._context.displayName||"Context")+".Provider";case T1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A1:return t=e.displayName||null,t!==null?t:F0(e.type)||"Memo";case Po:t=e._payload,e=e._init;try{return F0(e(t))}catch{}}return null}function j3(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 F0(t);case 8:return t===P1?"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 Qo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V3(e){var t=uE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,a.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yd(e){e._valueTracker||(e._valueTracker=V3(e))}function cE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ah(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 O0(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fE(e,t){t=t.checked,t!=null&&E1(e,"checked",t,!1)}function D0(e,t){fE(e,t);var n=Qo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?N0(e,t.type,n):t.hasOwnProperty("defaultValue")&&N0(e,t.type,Qo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function N0(e,t,n){(t!=="number"||Ah(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ku=Array.isArray;function Js(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ac(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nu={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},W3=["Webkit","ms","Moz","O"];Object.keys(Nu).forEach(function(e){W3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nu[t]=Nu[e]})});function mE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nu.hasOwnProperty(e)&&Nu[e]?(""+t).trim():t+"px"}function vE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=mE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var U3=kt({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 B0(e,t){if(t){if(U3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function j0(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 V0=null;function R1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W0=null,el=null,tl=null;function Uw(e){if(e=Gc(e)){if(typeof W0!="function")throw Error(X(280));var t=e.stateNode;t&&(t=Ip(t),W0(e.stateNode,e.type,t))}}function gE(e){el?tl?tl.push(e):tl=[e]:el=e}function yE(){if(el){var e=el,t=tl;if(tl=el=null,Uw(e),t)for(e=0;e>>=0,e===0?32:31-(tL(e)/nL|0)|0}var xd=64,Sd=4194304;function Eu(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 $h(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=Eu(u):(a&=l,a!==0&&(r=Eu(a)))}else l=n&~i,l!==0?r=Eu(l):a!==0&&(r=Eu(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Uc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xr(t),e[t]=n}function aL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zu),Jw=" ",e_=!1;function LE(e,t){switch(e){case"keyup":return FL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Is=!1;function DL(e,t){switch(e){case"compositionend":return zE(t);case"keypress":return t.which!==32?null:(e_=!0,Jw);case"textInput":return e=t.data,e===Jw&&e_?null:e;default:return null}}function NL(e,t){if(Is)return e==="compositionend"||!L1&&LE(e,t)?(e=DE(),nh=O1=$o=null,Is=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=i_(n)}}function WE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function UE(){for(var e=window,t=Ah();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ah(e.document)}return t}function z1(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 GL(e){var t=UE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WE(n.ownerDocument.documentElement,n)){if(r!==null&&z1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=o_(n,a);var l=o_(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ms=null,Y0=null,ju=null,X0=!1;function a_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;X0||Ms==null||Ms!==Ah(r)||(r=Ms,"selectionStart"in r&&z1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ju&&dc(ju,r)||(ju=r,r=Dh(Y0,"onSelect"),0Os||(e.current=ny[Os],ny[Os]=null,Os--)}function lt(e,t){Os++,ny[Os]=e.current,e.current=t}var Zo={},vn=ia(Zo),Bn=ia(!1),La=Zo;function ml(e,t){var n=e.type.contextTypes;if(!n)return Zo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jn(e){return e=e.childContextTypes,e!=null}function Lh(){mt(Bn),mt(vn)}function h_(e,t,n){if(vn.current!==Zo)throw Error(X(168));lt(vn,t),lt(Bn,n)}function JE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(X(108,j3(e)||"Unknown",i));return kt({},n,r)}function zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zo,La=vn.current,lt(vn,e),lt(Bn,Bn.current),!0}function p_(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=JE(e,t,La),r.__reactInternalMemoizedMergedChildContext=e,mt(Bn),mt(vn),lt(vn,e)):mt(Bn),lt(Bn,n)}var Fi=null,Mp=!1,Tg=!1;function eP(e){Fi===null?Fi=[e]:Fi.push(e)}function iz(e){Mp=!0,eP(e)}function oa(){if(!Tg&&Fi!==null){Tg=!0;var e=0,t=tt;try{var n=Fi;for(tt=1;e>=l,i-=l,zi=1<<32-Xr(t)+i|n<j?(K=L,L=null):K=L.sibling;var q=v(b,L,C[j],R);if(q===null){L===null&&(L=K);break}e&&L&&q.alternate===null&&t(b,L),x=a(q,x,j),z===null?$=q:z.sibling=q,z=q,L=K}if(j===C.length)return n(b,L),yt&&ya(b,j),$;if(L===null){for(;jj?(K=L,L=null):K=L.sibling;var J=v(b,L,q.value,R);if(J===null){L===null&&(L=K);break}e&&L&&J.alternate===null&&t(b,L),x=a(J,x,j),z===null?$=J:z.sibling=J,z=J,L=K}if(q.done)return n(b,L),yt&&ya(b,j),$;if(L===null){for(;!q.done;j++,q=C.next())q=p(b,q.value,R),q!==null&&(x=a(q,x,j),z===null?$=q:z.sibling=q,z=q);return yt&&ya(b,j),$}for(L=r(b,L);!q.done;j++,q=C.next())q=g(L,b,j,q.value,R),q!==null&&(e&&q.alternate!==null&&L.delete(q.key===null?j:q.key),x=a(q,x,j),z===null?$=q:z.sibling=q,z=q);return e&&L.forEach(function(Ie){return t(b,Ie)}),yt&&ya(b,j),$}function k(b,x,C,R){if(typeof C=="object"&&C!==null&&C.type===Rs&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case gd:e:{for(var $=C.key,z=x;z!==null;){if(z.key===$){if($=C.type,$===Rs){if(z.tag===7){n(b,z.sibling),x=i(z,C.props.children),x.return=b,b=x;break e}}else if(z.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Po&&S_($)===z.type){n(b,z.sibling),x=i(z,C.props),x.ref=mu(b,z,C),x.return=b,b=x;break e}n(b,z);break}else t(b,z);z=z.sibling}C.type===Rs?(x=Ma(C.props.children,b.mode,R,C.key),x.return=b,b=x):(R=ch(C.type,C.key,C.props,null,b.mode,R),R.ref=mu(b,x,C),R.return=b,b=R)}return l(b);case As:e:{for(z=C.key;x!==null;){if(x.key===z)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(b,x.sibling),x=i(x,C.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=Dg(C,b.mode,R),x.return=b,b=x}return l(b);case Po:return z=C._init,k(b,x,z(C._payload),R)}if(ku(C))return w(b,x,C,R);if(cu(C))return S(b,x,C,R);Td(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(b,x.sibling),x=i(x,C),x.return=b,b=x):(n(b,x),x=Og(C,b.mode,R),x.return=b,b=x),l(b)):n(b,x)}return k}var gl=lP(!0),uP=lP(!1),Kc={},hi=ia(Kc),vc=ia(Kc),gc=ia(Kc);function Ta(e){if(e===Kc)throw Error(X(174));return e}function q1(e,t){switch(lt(gc,t),lt(vc,e),lt(hi,Kc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:z0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=z0(t,e)}mt(hi),lt(hi,t)}function yl(){mt(hi),mt(vc),mt(gc)}function cP(e){Ta(gc.current);var t=Ta(hi.current),n=z0(t,e.type);t!==n&&(lt(vc,e),lt(hi,n))}function Y1(e){vc.current===e&&(mt(hi),mt(vc))}var wt=ia(0);function Hh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Ag=[];function X1(){for(var e=0;en?n:4,e(!0);var r=Rg.transition;Rg.transition={};try{e(!1),t()}finally{tt=n,Rg.transition=r}}function EP(){return Fr().memoizedState}function lz(e,t,n){var r=Wo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},PP(e))TP(t,n);else if(n=iP(e,t,n,r),n!==null){var i=Tn();Qr(n,e,r,i),AP(n,t,r)}}function uz(e,t,n){var r=Wo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(PP(e))TP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var l=t.lastRenderedState,u=a(l,n);if(i.hasEagerState=!0,i.eagerState=u,Jr(u,l)){var c=t.interleaved;c===null?(i.next=i,G1(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=iP(e,t,i,r),n!==null&&(i=Tn(),Qr(n,e,r,i),AP(n,t,r))}}function PP(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function TP(e,t){Vu=Gh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,M1(e,n)}}var Kh={readContext:$r,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},cz={readContext:$r,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:$r,useEffect:__,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ah(4194308,4,SP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ah(4194308,4,e,t)},useInsertionEffect:function(e,t){return ah(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lz.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:w_,useDebugValue:tb,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=w_(!1),t=e[0];return e=sz.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,i=ai();if(yt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),Xt===null)throw Error(X(349));Ba&30||hP(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,__(mP.bind(null,r,a,e),[e]),r.flags|=2048,xc(9,pP.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ai(),t=Xt.identifierPrefix;if(yt){var n=Bi,r=zi;n=(r&~(1<<32-Xr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ci]=t,e[mc]=r,LP(e,t,!1,!1),t.stateNode=e;e:{switch(l=j0(n,r),n){case"dialog":ht("cancel",e),ht("close",e),i=r;break;case"iframe":case"object":case"embed":ht("load",e),i=r;break;case"video":case"audio":for(i=0;ixl&&(t.flags|=128,r=!0,vu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hh(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!yt)return dn(t),null}else 2*Mt()-a.renderingStartTime>xl&&n!==1073741824&&(t.flags|=128,r=!0,vu(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(n=a.last,n!==null?n.sibling=l:t.child=l,a.last=l)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Mt(),t.sibling=null,n=wt.current,lt(wt,r?n&1|2:n&1),t):(dn(t),null);case 22:case 23:return sb(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zn&1073741824&&(dn(t),t.subtreeFlags&6&&(t.flags|=8192)):dn(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function yz(e,t){switch(j1(t),t.tag){case 1:return jn(t.type)&&Lh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yl(),mt(Bn),mt(vn),X1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Y1(t),null;case 13:if(mt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mt(wt),null;case 4:return yl(),null;case 10:return H1(t.type._context),null;case 22:case 23:return sb(),null;case 24:return null;default:return null}}var Rd=!1,mn=!1,bz=typeof WeakSet=="function"?WeakSet:Set,ne=null;function zs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tt(e,t,r)}else n.current=null}function py(e,t,n){try{n()}catch(r){Tt(e,t,r)}}var M_=!1;function xz(e,t){if(Q0=Fh,e=UE(),z1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var l=0,u=-1,c=-1,d=0,h=0,p=e,v=null;t:for(;;){for(var g;p!==n||i!==0&&p.nodeType!==3||(u=l+i),p!==a||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(g=p.firstChild)!==null;)v=p,p=g;for(;;){if(p===e)break t;if(v===n&&++d===i&&(u=l),v===a&&++h===r&&(c=l),(g=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=g}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Z0={focusedElem:e,selectionRange:n},Fh=!1,ne=t;ne!==null;)if(t=ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ne=e;else for(;ne!==null;){t=ne;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,k=w.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?S:Hr(t.type,S),k);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(R){Tt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,ne=e;break}ne=t.return}return w=M_,M_=!1,w}function Wu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&py(t,n,a)}i=i.next}while(i!==r)}}function Op(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function my(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jP(e){var t=e.alternate;t!==null&&(e.alternate=null,jP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[mc],delete t[ty],delete t[nz],delete t[rz])),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 VP(e){return e.tag===5||e.tag===3||e.tag===4}function $_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VP(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 vy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nh));else if(r!==4&&(e=e.child,e!==null))for(vy(e,t,n),e=e.sibling;e!==null;)vy(e,t,n),e=e.sibling}function gy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gy(e,t,n),e=e.sibling;e!==null;)gy(e,t,n),e=e.sibling}var rn=null,Gr=!1;function xo(e,t,n){for(n=n.child;n!==null;)WP(e,t,n),n=n.sibling}function WP(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(Pp,n)}catch{}switch(n.tag){case 5:mn||zs(n,t);case 6:var r=rn,i=Gr;rn=null,xo(e,t,n),rn=r,Gr=i,rn!==null&&(Gr?(e=rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rn.removeChild(n.stateNode));break;case 18:rn!==null&&(Gr?(e=rn,n=n.stateNode,e.nodeType===8?Pg(e.parentNode,n):e.nodeType===1&&Pg(e,n),cc(e)):Pg(rn,n.stateNode));break;case 4:r=rn,i=Gr,rn=n.stateNode.containerInfo,Gr=!0,xo(e,t,n),rn=r,Gr=i;break;case 0:case 11:case 14:case 15:if(!mn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,l=a.destroy;a=a.tag,l!==void 0&&(a&2||a&4)&&py(n,t,l),i=i.next}while(i!==r)}xo(e,t,n);break;case 1:if(!mn&&(zs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Tt(n,t,u)}xo(e,t,n);break;case 21:xo(e,t,n);break;case 22:n.mode&1?(mn=(r=mn)||n.memoizedState!==null,xo(e,t,n),mn=r):xo(e,t,n);break;default:xo(e,t,n)}}function F_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bz),t.forEach(function(r){var i=Az.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~a}if(r=i,r=Mt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wz(r/1960))-r,10e?16:e,Fo===null)var r=!1;else{if(e=Fo,Fo=null,Xh=0,Be&6)throw Error(X(331));var i=Be;for(Be|=4,ne=e.current;ne!==null;){var a=ne,l=a.child;if(ne.flags&16){var u=a.deletions;if(u!==null){for(var c=0;cMt()-ob?Ia(e,0):ib|=n),Vn(e,t)}function QP(e,t){t===0&&(e.mode&1?(t=Sd,Sd<<=1,!(Sd&130023424)&&(Sd=4194304)):t=1);var n=Tn();e=Xi(e,t),e!==null&&(Uc(e,t,n),Vn(e,n))}function Tz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QP(e,n)}function Az(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),QP(e,n)}var ZP;ZP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bn.current)zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zn=!1,vz(e,t,n);zn=!!(e.flags&131072)}else zn=!1,yt&&t.flags&1048576&&tP(t,jh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sh(e,t),e=t.pendingProps;var i=ml(t,vn.current);rl(t,n),i=Z1(null,t,r,e,i,n);var a=J1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jn(r)?(a=!0,zh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,K1(t),i.updater=$p,t.stateNode=i,i._reactInternals=t,sy(t,r,e,n),t=cy(null,t,r,!0,a,n)):(t.tag=0,yt&&a&&B1(t),kn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Iz(r),e=Hr(r,e),i){case 0:t=uy(null,t,r,e,n);break e;case 1:t=A_(null,t,r,e,n);break e;case 11:t=P_(null,t,r,e,n);break e;case 14:t=T_(null,t,r,Hr(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),uy(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),A_(e,t,r,i,n);case 3:e:{if(OP(t),e===null)throw Error(X(387));r=t.pendingProps,a=t.memoizedState,i=a.element,oP(e,t),Uh(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=bl(Error(X(423)),t),t=R_(e,t,r,n,i);break e}else if(r!==i){i=bl(Error(X(424)),t),t=R_(e,t,r,n,i);break e}else for(Jn=Bo(t.stateNode.containerInfo.firstChild),tr=t,yt=!0,Kr=null,n=uP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vl(),r===i){t=Qi(e,t,n);break e}kn(e,t,r,n)}t=t.child}return t;case 5:return cP(t),e===null&&iy(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,l=i.children,J0(r,i)?l=null:a!==null&&J0(r,a)&&(t.flags|=32),FP(e,t),kn(e,t,l,n),t.child;case 6:return e===null&&iy(t),null;case 13:return DP(e,t,n);case 4:return q1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gl(t,null,r,n):kn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),P_(e,t,r,i,n);case 7:return kn(e,t,t.pendingProps,n),t.child;case 8:return kn(e,t,t.pendingProps.children,n),t.child;case 12:return kn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,lt(Vh,r._currentValue),r._currentValue=l,a!==null)if(Jr(a.value,l)){if(a.children===i.children&&!Bn.current){t=Qi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){l=a.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Wi(-1,n&-n),c.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),oy(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(a.tag===10)l=a.type===t.type?null:a.child;else if(a.tag===18){if(l=a.return,l===null)throw Error(X(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),oy(l,n,t),l=a.sibling}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===t){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}kn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rl(t,n),i=$r(i),r=r(i),t.flags|=1,kn(e,t,r,n),t.child;case 14:return r=t.type,i=Hr(r,t.pendingProps),i=Hr(r.type,i),T_(e,t,r,i,n);case 15:return MP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),sh(e,t),t.tag=1,jn(r)?(e=!0,zh(t)):e=!1,rl(t,n),sP(t,r,i),sy(t,r,i,n),cy(null,t,r,!0,e,n);case 19:return NP(e,t,n);case 22:return $P(e,t,n)}throw Error(X(156,t.tag))};function JP(e,t){return kE(e,t)}function Rz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(e,t,n,r){return new Rz(e,t,n,r)}function ub(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Iz(e){if(typeof e=="function")return ub(e)?1:0;if(e!=null){if(e=e.$$typeof,e===T1)return 11;if(e===A1)return 14}return 2}function Uo(e,t){var n=e.alternate;return n===null?(n=Er(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ch(e,t,n,r,i,a){var l=2;if(r=e,typeof e=="function")ub(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Rs:return Ma(n.children,i,a,t);case P1:l=8,i|=8;break;case I0:return e=Er(12,n,t,i|2),e.elementType=I0,e.lanes=a,e;case M0:return e=Er(13,n,t,i),e.elementType=M0,e.lanes=a,e;case $0:return e=Er(19,n,t,i),e.elementType=$0,e.lanes=a,e;case lE:return Np(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case aE:l=10;break e;case sE:l=9;break e;case T1:l=11;break e;case A1:l=14;break e;case Po:l=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Er(l,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ma(e,t,n,r){return e=Er(7,e,r,t),e.lanes=n,e}function Np(e,t,n,r){return e=Er(22,e,r,t),e.elementType=lE,e.lanes=n,e.stateNode={isHidden:!1},e}function Og(e,t,n){return e=Er(6,e,null,t),e.lanes=n,e}function Dg(e,t,n){return t=Er(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mz(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vg(0),this.expirationTimes=vg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vg(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cb(e,t,n,r,i,a,l,u,c){return e=new Mz(e,t,n,u,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Er(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},K1(a),e}function $z(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rT)}catch(e){console.error(e)}}rT(),tE.exports=lr;var pb=tE.exports,V_=pb;A0.createRoot=V_.createRoot,A0.hydrateRoot=V_.hydrateRoot;var iT={exports:{}},oT={};/** - * @license React - * use-sync-external-store-with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var qc=_;function Lz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zz=typeof Object.is=="function"?Object.is:Lz,Bz=qc.useSyncExternalStore,jz=qc.useRef,Vz=qc.useEffect,Wz=qc.useMemo,Uz=qc.useDebugValue;oT.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=jz(null);if(a.current===null){var l={hasValue:!1,value:null};a.current=l}else l=a.current;a=Wz(function(){function c(g){if(!d){if(d=!0,h=g,g=r(g),i!==void 0&&l.hasValue){var w=l.value;if(i(w,g))return p=w}return p=g}if(w=p,zz(h,g))return w;var S=r(g);return i!==void 0&&i(w,S)?w:(h=g,p=S)}var d=!1,h,p,v=n===void 0?null:n;return[function(){return c(t())},v===null?void 0:function(){return c(v())}]},[t,n,r,i]);var u=Bz(e,a[0],a[1]);return Vz(function(){l.hasValue=!0,l.value=u},[u]),Uz(u),u};iT.exports=oT;var Hz=iT.exports,er="default"in ic?Xo:ic,W_=Symbol.for("react-redux-context"),U_=typeof globalThis<"u"?globalThis:{};function Gz(){if(!er.createContext)return{};const e=U_[W_]??(U_[W_]=new Map);let t=e.get(er.createContext);return t||(t=er.createContext(null),e.set(er.createContext,t)),t}var Jo=Gz(),Kz=()=>{throw new Error("uSES not initialized!")};function mb(e=Jo){return function(){return er.useContext(e)}}var aT=mb(),sT=Kz,qz=e=>{sT=e},Yz=(e,t)=>e===t;function Xz(e=Jo){const t=e===Jo?aT:mb(e);return function(r,i={}){const{equalityFn:a=Yz,devModeChecks:l={}}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:d,stabilityCheck:h,identityFunctionCheck:p}=t();er.useRef(!0);const v=er.useCallback({[r.name](w){return r(w)}}[r.name],[r,h,l.stabilityCheck]),g=sT(c.addNestedSub,u.getState,d||u.getState,v,a);return er.useDebugValue(g),g}}var Wa=Xz();function Qz(e){e()}function Zz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Qz(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var H_={notify(){},get:()=>[]};function Jz(e,t){let n,r=H_,i=0,a=!1;function l(S){h();const k=r.subscribe(S);let b=!1;return()=>{b||(b=!0,k(),p())}}function u(){r.notify()}function c(){w.onStateChange&&w.onStateChange()}function d(){return a}function h(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Zz())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=H_)}function v(){a||(a=!0,h())}function g(){a&&(a=!1,p())}const w={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:d,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>r};return w}var e4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",t4=e4?er.useLayoutEffect:er.useEffect;function n4({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const l=er.useMemo(()=>{const d=Jz(e);return{store:e,subscription:d,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),u=er.useMemo(()=>e.getState(),[e]);t4(()=>{const{subscription:d}=l;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),u!==e.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[l,u]);const c=t||Jo;return er.createElement(c.Provider,{value:l},n)}var r4=n4;function lT(e=Jo){const t=e===Jo?aT:mb(e);return function(){const{store:r}=t();return r}}var i4=lT();function o4(e=Jo){const t=e===Jo?i4:lT(e);return function(){return t().dispatch}}var Yc=o4();qz(Hz.useSyncExternalStoreWithSelector);function nn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var a4=typeof Symbol=="function"&&Symbol.observable||"@@observable",G_=a4,Ng=()=>Math.random().toString(36).substring(7).split("").join("."),s4={INIT:`@@redux/INIT${Ng()}`,REPLACE:`@@redux/REPLACE${Ng()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ng()}`},Jh=s4;function vb(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function uT(e,t,n){if(typeof e!="function")throw new Error(nn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(nn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(nn(1));return n(uT)(e,t)}let r=e,i=t,a=new Map,l=a,u=0,c=!1;function d(){l===a&&(l=new Map,a.forEach((k,b)=>{l.set(b,k)}))}function h(){if(c)throw new Error(nn(3));return i}function p(k){if(typeof k!="function")throw new Error(nn(4));if(c)throw new Error(nn(5));let b=!0;d();const x=u++;return l.set(x,k),function(){if(b){if(c)throw new Error(nn(6));b=!1,d(),l.delete(x),a=null}}}function v(k){if(!vb(k))throw new Error(nn(7));if(typeof k.type>"u")throw new Error(nn(8));if(typeof k.type!="string")throw new Error(nn(17));if(c)throw new Error(nn(9));try{c=!0,i=r(i,k)}finally{c=!1}return(a=l).forEach(x=>{x()}),k}function g(k){if(typeof k!="function")throw new Error(nn(10));r=k,v({type:Jh.REPLACE})}function w(){const k=p;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(nn(11));function x(){const R=b;R.next&&R.next(h())}return x(),{unsubscribe:k(x)}},[G_](){return this}}}return v({type:Jh.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:g,[G_]:w}}function l4(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Jh.INIT})>"u")throw new Error(nn(12));if(typeof n(void 0,{type:Jh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nn(13))})}function u4(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw u&&u.type,new Error(nn(14));d[p]=w,c=c||w!==g}return c=c||r.length!==Object.keys(l).length,c?d:l}}function ep(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function c4(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(nn(15))};const l={getState:i.getState,dispatch:(c,...d)=>a(c,...d)},u=e.map(c=>c(l));return a=ep(...u)(i.dispatch),{...i,dispatch:a}}}function f4(e){return vb(e)&&"type"in e&&typeof e.type=="string"}var cT=Symbol.for("immer-nothing"),K_=Symbol.for("immer-draftable"),or=Symbol.for("immer-state");function qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sl=Object.getPrototypeOf;function ea(e){return!!e&&!!e[or]}function Zi(e){var t;return e?fT(e)||Array.isArray(e)||!!e[K_]||!!((t=e.constructor)!=null&&t[K_])||Wp(e)||Up(e):!1}var d4=Object.prototype.constructor.toString();function fT(e){if(!e||typeof e!="object")return!1;const t=Sl(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===d4}function wc(e,t){Vp(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Vp(e){const t=e[or];return t?t.type_:Array.isArray(e)?1:Wp(e)?2:Up(e)?3:0}function wy(e,t){return Vp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dT(e,t,n){const r=Vp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function h4(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Wp(e){return e instanceof Map}function Up(e){return e instanceof Set}function xa(e){return e.copy_||e.base_}function _y(e,t){if(Wp(e))return new Map(e);if(Up(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&fT(e))return Sl(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[or];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=p4),Object.freeze(e),t&&wc(e,(n,r)=>gb(r,!0))),e}function p4(){qr(2)}function Hp(e){return Object.isFrozen(e)}var m4={};function Ua(e){const t=m4[e];return t||qr(0,e),t}var _c;function hT(){return _c}function v4(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function q_(e,t){t&&(Ua("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cy(e){ky(e),e.drafts_.forEach(g4),e.drafts_=null}function ky(e){e===_c&&(_c=e.parent_)}function Y_(e){return _c=v4(_c,e)}function g4(e){const t=e[or];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function X_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[or].modified_&&(Cy(t),qr(4)),Zi(e)&&(e=tp(t,e),t.parent_||np(t,e)),t.patches_&&Ua("Patches").generateReplacementPatches_(n[or].base_,e,t.patches_,t.inversePatches_)):e=tp(t,n,[]),Cy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==cT?e:void 0}function tp(e,t,n){if(Hp(t))return t;const r=t[or];if(!r)return wc(t,(i,a)=>Q_(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return np(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,l=!1;r.type_===3&&(a=new Set(i),i.clear(),l=!0),wc(a,(u,c)=>Q_(e,r,i,u,c,n,l)),np(e,i,!1),n&&e.patches_&&Ua("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Q_(e,t,n,r,i,a,l){if(ea(i)){const u=a&&t&&t.type_!==3&&!wy(t.assigned_,r)?a.concat(r):void 0,c=tp(e,i,u);if(dT(n,r,c),ea(c))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Zi(i)&&!Hp(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tp(e,i),(!t||!t.scope_.parent_)&&np(e,i)}}function np(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gb(t,n)}function y4(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:hT(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=yb;n&&(i=[r],a=Cc);const{revoke:l,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=l,u}var yb={get(e,t){if(t===or)return e;const n=xa(e);if(!wy(n,t))return b4(e,n,t);const r=n[t];return e.finalized_||!Zi(r)?r:r===Lg(e.base_,t)?(zg(e),e.copy_[t]=Py(r,e)):r},has(e,t){return t in xa(e)},ownKeys(e){return Reflect.ownKeys(xa(e))},set(e,t,n){const r=pT(xa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Lg(xa(e),t),a=i==null?void 0:i[or];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(h4(n,i)&&(n!==void 0||wy(e.base_,t)))return!0;zg(e),Ey(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Lg(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zg(e),Ey(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=xa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){qr(11)},getPrototypeOf(e){return Sl(e.base_)},setPrototypeOf(){qr(12)}},Cc={};wc(yb,(e,t)=>{Cc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Cc.deleteProperty=function(e,t){return Cc.set.call(this,e,t,void 0)};Cc.set=function(e,t,n){return yb.set.call(this,e[0],t,n,e[0])};function Lg(e,t){const n=e[or];return(n?xa(n):e)[t]}function b4(e,t,n){var i;const r=pT(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function pT(e,t){if(!(t in e))return;let n=Sl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sl(n)}}function Ey(e){e.modified_||(e.modified_=!0,e.parent_&&Ey(e.parent_))}function zg(e){e.copy_||(e.copy_=_y(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var x4=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const l=this;return function(c=a,...d){return l.produce(c,h=>n.call(this,h,...d))}}typeof n!="function"&&qr(6),r!==void 0&&typeof r!="function"&&qr(7);let i;if(Zi(t)){const a=Y_(this),l=Py(t,void 0);let u=!0;try{i=n(l),u=!1}finally{u?Cy(a):ky(a)}return q_(a,r),X_(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===cT&&(i=void 0),this.autoFreeze_&&gb(i,!0),r){const a=[],l=[];Ua("Patches").generateReplacementPatches_(t,i,a,l),r(a,l)}return i}else qr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...u)=>this.produceWithPatches(l,c=>t(c,...u));let r,i;return[this.produce(t,n,(l,u)=>{r=l,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zi(e)||qr(8),ea(e)&&(e=mT(e));const t=Y_(this),n=Py(e,void 0);return n[or].isManual_=!0,ky(t),n}finishDraft(e,t){const n=e&&e[or];(!n||!n.isManual_)&&qr(9);const{scope_:r}=n;return q_(r,t),X_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ua("Patches").applyPatches_;return ea(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Py(e,t){const n=Wp(e)?Ua("MapSet").proxyMap_(e,t):Up(e)?Ua("MapSet").proxySet_(e,t):y4(e,t);return(t?t.scope_:hT()).drafts_.push(n),n}function mT(e){return ea(e)||qr(10,e),vT(e)}function vT(e){if(!Zi(e)||Hp(e))return e;const t=e[or];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_y(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_y(e,!0);return wc(n,(r,i)=>{dT(n,r,vT(i))}),t&&(t.finalized_=!1),n}var ar=new x4,gT=ar.produce;ar.produceWithPatches.bind(ar);ar.setAutoFreeze.bind(ar);ar.setUseStrictShallowCopy.bind(ar);ar.applyPatches.bind(ar);ar.createDraft.bind(ar);ar.finishDraft.bind(ar);function S4(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function w4(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Z_=e=>Array.isArray(e)?e:[e];function _4(e){const t=Array.isArray(e[0])?e[0]:e;return w4(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function C4(e,t){const n=[],{length:r}=e;for(let i=0;i{n=$d(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}function T4(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let a=0,l=0,u,c={},d=i.pop();typeof d=="object"&&(c=d,d=i.pop()),S4(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const h={...n,...c},{memoize:p,memoizeOptions:v=[],argsMemoize:g=yT,argsMemoizeOptions:w=[],devModeChecks:S={}}=h,k=Z_(v),b=Z_(w),x=_4(i),C=p(function(){return a++,d.apply(null,arguments)},...k),R=g(function(){l++;const z=C4(x,arguments);return u=C.apply(null,z),u},...b);return Object.assign(R,{resultFunc:d,memoizedResultFunc:C,dependencies:x,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:g})}}function bT(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var A4=bT(),R4=bT,I4=(...e)=>{const t=T4(...e);return(...n)=>{const r=t(...n),i=(a,...l)=>r(ea(a)?mT(a):a,...l);return Object.assign(i,r),i}};I4(yT);var M4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ep:ep.apply(null,arguments)},$4=e=>e&&typeof e.match=="function";function Ho(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Zr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>f4(r)&&r.type===e,n}var xT=class Tu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Tu.prototype)}static get[Symbol.species](){return Tu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Tu(...t[0].concat(this)):new Tu(...t.concat(this))}};function eC(e){return Zi(e)?gT(e,()=>{}):e}function tC(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Zr(10));const r=n.insert(t,e);return e.set(t,r),r}function F4(e){return typeof e=="boolean"}var O4=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let l=new xT;return n&&(F4(n)?l.push(A4):l.push(R4(n.extraArgument))),l},D4="RTK_autoBatch",ST=e=>t=>{setTimeout(t,e)},N4=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ST(10),L4=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,l=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?N4:e.type==="callback"?e.queueNotification:ST(e.timeout),d=()=>{l=!1,a&&(a=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),v=r.subscribe(p);return u.add(h),()=>{v(),u.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[D4]),a=!i,a&&(l||(l=!0,c(d))),r.dispatch(h)}finally{i=!0}}})},z4=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new xT(e);return r&&i.push(L4(typeof r=="object"?r:void 0)),i},B4=!0;function j4(e){const t=O4(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(vb(n))u=u4(n);else throw new Error(Zr(1));let c;typeof r=="function"?c=r(t):c=t();let d=ep;i&&(d=M4({trace:!B4,...typeof i=="object"&&i}));const h=c4(...c),p=z4(h);let v=typeof l=="function"?l(p):p();const g=d(...v);return uT(u,a,g)}function wT(e){const t={},n=[];let r;const i={addCase(a,l){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Zr(28));if(u in t)throw new Error(Zr(29));return t[u]=l,i},addMatcher(a,l){return n.push({matcher:a,reducer:l}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function V4(e){return typeof e=="function"}function W4(e,t){let[n,r,i]=wT(t),a;if(V4(e))a=()=>eC(e());else{const u=eC(e);a=()=>u}function l(u=a(),c){let d=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return d.filter(h=>!!h).length===0&&(d=[i]),d.reduce((h,p)=>{if(p)if(ea(h)){const g=p(h,c);return g===void 0?h:g}else{if(Zi(h))return gT(h,v=>p(v,c));{const v=p(h,c);if(v===void 0){if(h===null)return h;throw new Error(Zr(9))}return v}}return h},u)}return l.getInitialState=a,l}var U4="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",H4=(e=21)=>{let t="",n=e;for(;n--;)t+=U4[Math.random()*64|0];return t},G4=(e,t)=>$4(e)?e.match(t):e(t);function K4(...e){return t=>e.some(n=>G4(n,t))}var q4=["name","message","stack","code"],Bg=class{constructor(e,t){cg(this,"_type");this.payload=e,this.meta=t}},nC=class{constructor(e,t){cg(this,"_type");this.payload=e,this.meta=t}},Y4=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of q4)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},bb=(()=>{function e(t,n,r){const i=Ho(t+"/fulfilled",(c,d,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:d,requestStatus:"fulfilled"}})),a=Ho(t+"/pending",(c,d,h)=>({payload:void 0,meta:{...h||{},arg:d,requestId:c,requestStatus:"pending"}})),l=Ho(t+"/rejected",(c,d,h,p,v)=>({payload:p,error:(r&&r.serializeError||Y4)(c||"Rejected"),meta:{...v||{},arg:h,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c){return(d,h,p)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):H4(),g=new AbortController;let w;function S(b){w=b,g.abort()}const k=async function(){var C,R;let b;try{let $=(C=r==null?void 0:r.condition)==null?void 0:C.call(r,c,{getState:h,extra:p});if(Q4($)&&($=await $),$===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((L,j)=>g.signal.addEventListener("abort",()=>j({name:"AbortError",message:w||"Aborted"})));d(a(v,c,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:v,arg:c},{getState:h,extra:p}))),b=await Promise.race([z,Promise.resolve(n(c,{dispatch:d,getState:h,extra:p,requestId:v,signal:g.signal,abort:S,rejectWithValue:(L,j)=>new Bg(L,j),fulfillWithValue:(L,j)=>new nC(L,j)})).then(L=>{if(L instanceof Bg)throw L;return L instanceof nC?i(L.payload,v,c,L.meta):i(L,v,c)})])}catch($){b=$ instanceof Bg?l(null,v,c,$.payload,$.meta):l($,v,c)}return r&&!r.dispatchConditionRejection&&l.match(b)&&b.meta.condition||d(b),b}();return Object.assign(k,{abort:S,requestId:v,arg:c,unwrap(){return k.then(X4)}})}}return Object.assign(u,{pending:a,rejected:l,fulfilled:i,settled:K4(l,i),typePrefix:t})}return e.withTypes=()=>e,e})();function X4(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Q4(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Z4=Symbol.for("rtk-slice-createasyncthunk");function J4(e,t){return`${e}/${t}`}function eB({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Z4];return function(i){const{name:a,reducerPath:l=a}=i;if(!a)throw new Error(Zr(11));typeof process<"u";const u=(typeof i.reducers=="function"?i.reducers(rB()):i.reducers)||{},c=Object.keys(u),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(k,b){const x=typeof k=="string"?k:k.type;if(!x)throw new Error(Zr(12));if(x in d.sliceCaseReducersByType)throw new Error(Zr(13));return d.sliceCaseReducersByType[x]=b,h},addMatcher(k,b){return d.sliceMatchers.push({matcher:k,reducer:b}),h},exposeAction(k,b){return d.actionCreators[k]=b,h},exposeCaseReducer(k,b){return d.sliceCaseReducersByName[k]=b,h}};c.forEach(k=>{const b=u[k],x={reducerName:k,type:J4(a,k),createNotation:typeof i.reducers=="function"};oB(b)?sB(x,b,h,t):iB(x,b,h)});function p(){const[k={},b=[],x=void 0]=typeof i.extraReducers=="function"?wT(i.extraReducers):[i.extraReducers],C={...k,...d.sliceCaseReducersByType};return W4(i.initialState,R=>{for(let $ in C)R.addCase($,C[$]);for(let $ of d.sliceMatchers)R.addMatcher($.matcher,$.reducer);for(let $ of b)R.addMatcher($.matcher,$.reducer);x&&R.addDefaultCase(x)})}const v=k=>k,g=new WeakMap;let w;const S={name:a,reducerPath:l,reducer(k,b){return w||(w=p()),w(k,b)},actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState(){return w||(w=p()),w.getInitialState()},getSelectors(k=v){const b=tC(g,this,{insert:()=>new WeakMap});return tC(b,k,{insert:()=>{const x={};for(const[C,R]of Object.entries(i.selectors??{}))x[C]=tB(this,R,k,this!==S);return x}})},selectSlice(k){let b=k[this.reducerPath];return typeof b>"u"&&this!==S&&(b=this.getInitialState()),b},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(k,{reducerPath:b,...x}={}){const C=b??this.reducerPath;return k.inject({reducerPath:C,reducer:this.reducer},x),{...this,reducerPath:C}}};return S}}function tB(e,t,n,r){function i(a,...l){let u=n.call(e,a);return typeof u>"u"&&r&&(u=e.getInitialState()),t(u,...l)}return i.unwrapped=t,i}var nB=eB();function rB(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function iB({type:e,reducerName:t,createNotation:n},r,i){let a,l;if("reducer"in r){if(n&&!aB(r))throw new Error(Zr(17));a=r.reducer,l=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,l?Ho(e,l):Ho(e))}function oB(e){return e._reducerDefinitionType==="asyncThunk"}function aB(e){return e._reducerDefinitionType==="reducerWithPrepare"}function sB({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Zr(18));const{payloadCreator:a,fulfilled:l,pending:u,rejected:c,settled:d,options:h}=n,p=i(e,a,h);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),u&&r.addCase(p.pending,u),c&&r.addCase(p.rejected,c),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(t,{fulfilled:l||Fd,pending:u||Fd,rejected:c||Fd,settled:d||Fd})}function Fd(){}var xb="listenerMiddleware";Ho(`${xb}/add`);Ho(`${xb}/removeAll`);Ho(`${xb}/remove`);function Zr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var rp={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rp.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,v=2,g=4,w=1,S=2,k=1,b=2,x=4,C=8,R=16,$=32,z=64,L=128,j=256,K=512,q=30,J="...",Ie=800,je=16,Me=1,bt=2,ke=3,Oe=1/0,W=9007199254740991,ie=17976931348623157e292,se=NaN,re=4294967295,Te=re-1,me=re>>>1,Ee=[["ary",L],["bind",k],["bindKey",b],["curry",C],["curryRight",R],["flip",K],["partial",$],["partialRight",z],["rearg",j]],Qe="[object Arguments]",ze="[object Array]",st="[object AsyncFunction]",ft="[object Boolean]",xt="[object Date]",Ft="[object DOMException]",vt="[object Error]",yn="[object Function]",Or="[object GeneratorFunction]",Ze="[object Map]",pe="[object Number]",zt="[object Null]",dt="[object Object]",fr="[object Promise]",es="[object Proxy]",Hn="[object RegExp]",Gt="[object Set]",bn="[object String]",Zt="[object Symbol]",sa="[object Undefined]",ei="[object WeakMap]",Fl="[object WeakSet]",yi="[object ArrayBuffer]",Q="[object DataView]",Pe="[object Float32Array]",it="[object Float64Array]",Ot="[object Int8Array]",Mn="[object Int16Array]",dr="[object Int32Array]",oo="[object Uint8Array]",Ol="[object Uint8ClampedArray]",Dr="[object Uint16Array]",ao="[object Uint32Array]",Am=/\b__p \+= '';/g,lf=/\b(__p \+=) '' \+/g,Rm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dl=/&(?:amp|lt|gt|quot|#39);/g,so=/[&<>"']/g,Im=RegExp(Dl.source),bi=RegExp(so.source),Mm=/<%-([\s\S]+?)%>/g,$m=/<%([\s\S]+?)%>/g,uf=/<%=([\s\S]+?)%>/g,Fm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Om=/^\w*$/,Nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nl=/[\\^$.*+?()[\]{}|]/g,Dm=RegExp(Nl.source),Ll=/^\s+/,Nm=/\s/,Lm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lo=/\{\n\/\* \[wrapped with (.+)\] \*/,zm=/,? & /,Bm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jm=/[()=,{}\[\]\/\s]/,Vm=/\\(\\)?/g,Wm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xi=/\w*$/,Um=/^[-+]0x[0-9a-f]+$/i,Hm=/^0b[01]+$/i,Gm=/^\[object .+?Constructor\]$/,Km=/^0o[0-7]+$/i,qm=/^(?:0|[1-9]\d*)$/,Ym=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uo=/($^)/,Xm=/['\n\r\u2028\u2029\\]/g,Si="\\ud800-\\udfff",zl="\\u0300-\\u036f",Qm="\\ufe20-\\ufe2f",ts="\\u20d0-\\u20ff",Bl=zl+Qm+ts,cf="\\u2700-\\u27bf",ff="a-z\\xdf-\\xf6\\xf8-\\xff",Zm="\\xac\\xb1\\xd7\\xf7",df="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jm="\\u2000-\\u206f",ev=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hf="A-Z\\xc0-\\xd6\\xd8-\\xde",pf="\\ufe0e\\ufe0f",mf=Zm+df+Jm+ev,jl="['’]",tv="["+Si+"]",vf="["+mf+"]",ns="["+Bl+"]",gf="\\d+",rs="["+cf+"]",is="["+ff+"]",yf="[^"+Si+mf+gf+cf+ff+hf+"]",Vl="\\ud83c[\\udffb-\\udfff]",bf="(?:"+ns+"|"+Vl+")",xf="[^"+Si+"]",Wl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ul="[\\ud800-\\udbff][\\udc00-\\udfff]",wi="["+hf+"]",Sf="\\u200d",wf="(?:"+is+"|"+yf+")",nv="(?:"+wi+"|"+yf+")",os="(?:"+jl+"(?:d|ll|m|re|s|t|ve))?",_f="(?:"+jl+"(?:D|LL|M|RE|S|T|VE))?",Cf=bf+"?",kf="["+pf+"]?",as="(?:"+Sf+"(?:"+[xf,Wl,Ul].join("|")+")"+kf+Cf+")*",Hl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ss=kf+Cf+as,rv="(?:"+[rs,Wl,Ul].join("|")+")"+ss,Ef="(?:"+[xf+ns+"?",ns,Wl,Ul,tv].join("|")+")",Kl=RegExp(jl,"g"),Pf=RegExp(ns,"g"),Lr=RegExp(Vl+"(?="+Vl+")|"+Ef+ss,"g"),la=RegExp([wi+"?"+is+"+"+os+"(?="+[vf,wi,"$"].join("|")+")",nv+"+"+_f+"(?="+[vf,wi+wf,"$"].join("|")+")",wi+"?"+wf+"+"+os,wi+"+"+_f,Gl,Hl,gf,rv].join("|"),"g"),iv=RegExp("["+Sf+Si+Bl+pf+"]"),Tf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ov=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Af=-1,ot={};ot[Pe]=ot[it]=ot[Ot]=ot[Mn]=ot[dr]=ot[oo]=ot[Ol]=ot[Dr]=ot[ao]=!0,ot[Qe]=ot[ze]=ot[yi]=ot[ft]=ot[Q]=ot[xt]=ot[vt]=ot[yn]=ot[Ze]=ot[pe]=ot[dt]=ot[Hn]=ot[Gt]=ot[bn]=ot[ei]=!1;var rt={};rt[Qe]=rt[ze]=rt[yi]=rt[Q]=rt[ft]=rt[xt]=rt[Pe]=rt[it]=rt[Ot]=rt[Mn]=rt[dr]=rt[Ze]=rt[pe]=rt[dt]=rt[Hn]=rt[Gt]=rt[bn]=rt[Zt]=rt[oo]=rt[Ol]=rt[Dr]=rt[ao]=!0,rt[vt]=rt[yn]=rt[ei]=!1;var Rf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},av={"&":"&","<":"<",">":">",'"':""","'":"'"},A={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},B=parseFloat,ee=parseInt,Ae=typeof Oi=="object"&&Oi&&Oi.Object===Object&&Oi,Je=typeof self=="object"&&self&&self.Object===Object&&self,be=Ae||Je||Function("return this")(),_e=t&&!t.nodeType&&t,Ve=_e&&!0&&e&&!e.nodeType&&e,xn=Ve&&Ve.exports===_e,Jt=xn&&Ae.process,Kt=function(){try{var D=Ve&&Ve.require&&Ve.require("util").types;return D||Jt&&Jt.binding&&Jt.binding("util")}catch{}}(),ls=Kt&&Kt.isArrayBuffer,us=Kt&&Kt.isDate,ql=Kt&&Kt.isMap,Mx=Kt&&Kt.isRegExp,$x=Kt&&Kt.isSet,Fx=Kt&&Kt.isTypedArray;function Gn(D,U,V){switch(V.length){case 0:return D.call(U);case 1:return D.call(U,V[0]);case 2:return D.call(U,V[0],V[1]);case 3:return D.call(U,V[0],V[1],V[2])}return D.apply(U,V)}function FM(D,U,V,te){for(var ve=-1,We=D==null?0:D.length;++ve-1}function sv(D,U,V){for(var te=-1,ve=D==null?0:D.length;++te-1;);return V}function Vx(D,U){for(var V=D.length;V--&&cs(U,D[V],0)>-1;);return V}function WM(D,U){for(var V=D.length,te=0;V--;)D[V]===U&&++te;return te}var UM=fv(Rf),HM=fv(av);function GM(D){return"\\"+F[D]}function KM(D,U){return D==null?n:D[U]}function fs(D){return iv.test(D)}function qM(D){return Tf.test(D)}function YM(D){for(var U,V=[];!(U=D.next()).done;)V.push(U.value);return V}function mv(D){var U=-1,V=Array(D.size);return D.forEach(function(te,ve){V[++U]=[ve,te]}),V}function Wx(D,U){return function(V){return D(U(V))}}function ho(D,U){for(var V=-1,te=D.length,ve=0,We=[];++V-1}function D$(o,s){var f=this.__data__,m=qf(f,o);return m<0?(++this.size,f.push([o,s])):f[m][1]=s,this}_i.prototype.clear=M$,_i.prototype.delete=$$,_i.prototype.get=F$,_i.prototype.has=O$,_i.prototype.set=D$;function Ci(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s=s?o:s)),o}function vr(o,s,f,m,y,P){var I,M=s&p,N=s&v,H=s&g;if(f&&(I=y?f(o,m,y,P):f(o)),I!==n)return I;if(!St(o))return o;var G=ge(o);if(G){if(I=B5(o),!M)return $n(o,I)}else{var Y=cn(o),Z=Y==yn||Y==Or;if(bo(o))return kS(o,M);if(Y==dt||Y==Qe||Z&&!y){if(I=N||Z?{}:US(o),!M)return N?A5(o,Z$(I,o)):T5(o,tS(I,o))}else{if(!rt[Y])return y?o:{};I=j5(o,Y,M)}}P||(P=new Br);var oe=P.get(o);if(oe)return oe;P.set(o,I),bw(o)?o.forEach(function(de){I.add(vr(de,s,f,de,o,P))}):gw(o)&&o.forEach(function(de,Re){I.set(Re,vr(de,s,f,Re,o,P))});var fe=H?N?jv:Bv:N?On:qt,we=G?n:fe(o);return hr(we||o,function(de,Re){we&&(Re=de,de=o[Re]),tu(I,Re,vr(de,s,f,Re,o,P))}),I}function J$(o){var s=qt(o);return function(f){return nS(f,o,s)}}function nS(o,s,f){var m=f.length;if(o==null)return!m;for(o=at(o);m--;){var y=f[m],P=s[y],I=o[y];if(I===n&&!(y in o)||!P(I))return!1}return!0}function rS(o,s,f){if(typeof o!="function")throw new pr(l);return lu(function(){o.apply(n,f)},s)}function nu(o,s,f,m){var y=-1,P=If,I=!0,M=o.length,N=[],H=s.length;if(!M)return N;f&&(s=gt(s,Kn(f))),m?(P=sv,I=!1):s.length>=i&&(P=Yl,I=!1,s=new fa(s));e:for(;++yy?0:y+f),m=m===n||m>y?y:xe(m),m<0&&(m+=y),m=f>m?0:Sw(m);f0&&f(M)?s>1?en(M,s-1,f,m,y):fo(y,M):m||(y[y.length]=M)}return y}var wv=IS(),aS=IS(!0);function ti(o,s){return o&&wv(o,s,qt)}function _v(o,s){return o&&aS(o,s,qt)}function Xf(o,s){return co(s,function(f){return Ai(o[f])})}function ha(o,s){s=go(s,o);for(var f=0,m=s.length;o!=null&&fs}function n5(o,s){return o!=null&&et.call(o,s)}function r5(o,s){return o!=null&&s in at(o)}function i5(o,s,f){return o>=un(s,f)&&o=120&&G.length>=120)?new fa(I&&G):n}G=o[0];var Y=-1,Z=M[0];e:for(;++Y-1;)M!==o&&jf.call(M,N,1),jf.call(o,N,1);return o}function gS(o,s){for(var f=o?s.length:0,m=f-1;f--;){var y=s[f];if(f==m||y!==P){var P=y;Ti(y)?jf.call(o,y,1):$v(o,y)}}return o}function Rv(o,s){return o+Uf(Qx()*(s-o+1))}function g5(o,s,f,m){for(var y=-1,P=jt(Wf((s-o)/(f||1)),0),I=V(P);P--;)I[m?P:++y]=o,o+=f;return I}function Iv(o,s){var f="";if(!o||s<1||s>W)return f;do s%2&&(f+=o),s=Uf(s/2),s&&(o+=o);while(s);return f}function Ce(o,s){return qv(KS(o,s,Dn),o+"")}function y5(o){return eS(ws(o))}function b5(o,s){var f=ws(o);return sd(f,da(s,0,f.length))}function ou(o,s,f,m){if(!St(o))return o;s=go(s,o);for(var y=-1,P=s.length,I=P-1,M=o;M!=null&&++yy?0:y+s),f=f>y?y:f,f<0&&(f+=y),y=s>f?0:f-s>>>0,s>>>=0;for(var P=V(y);++m>>1,I=o[P];I!==null&&!Yn(I)&&(f?I<=s:I=i){var H=s?null:$5(o);if(H)return $f(H);I=!1,y=Yl,N=new fa}else N=s?[]:M;e:for(;++m=m?o:gr(o,s,f)}var CS=c$||function(o){return be.clearTimeout(o)};function kS(o,s){if(s)return o.slice();var f=o.length,m=Gx?Gx(f):new o.constructor(f);return o.copy(m),m}function Nv(o){var s=new o.constructor(o.byteLength);return new zf(s).set(new zf(o)),s}function C5(o,s){var f=s?Nv(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function k5(o){var s=new o.constructor(o.source,xi.exec(o));return s.lastIndex=o.lastIndex,s}function E5(o){return eu?at(eu.call(o)):{}}function ES(o,s){var f=s?Nv(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function PS(o,s){if(o!==s){var f=o!==n,m=o===null,y=o===o,P=Yn(o),I=s!==n,M=s===null,N=s===s,H=Yn(s);if(!M&&!H&&!P&&o>s||P&&I&&N&&!M&&!H||m&&I&&N||!f&&N||!y)return 1;if(!m&&!P&&!H&&o=M)return N;var H=f[m];return N*(H=="desc"?-1:1)}}return o.index-s.index}function TS(o,s,f,m){for(var y=-1,P=o.length,I=f.length,M=-1,N=s.length,H=jt(P-I,0),G=V(N+H),Y=!m;++M1?f[y-1]:n,I=y>2?f[2]:n;for(P=o.length>3&&typeof P=="function"?(y--,P):n,I&&wn(f[0],f[1],I)&&(P=y<3?n:P,y=1),s=at(s);++m-1?y[P?s[I]:I]:n}}function FS(o){return Pi(function(s){var f=s.length,m=f,y=mr.prototype.thru;for(o&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new pr(l);if(y&&!I&&od(P)=="wrapper")var I=new mr([],!0)}for(m=I?m:f;++m1&&De.reverse(),G&&NM))return!1;var H=P.get(o),G=P.get(s);if(H&&G)return H==s&&G==o;var Y=-1,Z=!0,oe=f&S?new fa:n;for(P.set(o,s),P.set(s,o);++Y1?"& ":"")+s[m],s=s.join(f>2?", ":" "),o.replace(Lm,`{ -/* [wrapped with `+s+`] */ -`)}function W5(o){return ge(o)||va(o)||!!(Yx&&o&&o[Yx])}function Ti(o,s){var f=typeof o;return s=s??W,!!s&&(f=="number"||f!="symbol"&&qm.test(o))&&o>-1&&o%1==0&&o0){if(++s>=Ie)return arguments[0]}else s=0;return o.apply(n,arguments)}}function sd(o,s){var f=-1,m=o.length,y=m-1;for(s=s===n?m:s;++f1?o[s-1]:n;return f=typeof f=="function"?(o.pop(),f):n,ow(o,f)});function aw(o){var s=E(o);return s.__chain__=!0,s}function eO(o,s){return s(o),o}function ld(o,s){return s(o)}var tO=Pi(function(o){var s=o.length,f=s?o[0]:0,m=this.__wrapped__,y=function(P){return Sv(P,o)};return s>1||this.__actions__.length||!(m instanceof $e)||!Ti(f)?this.thru(y):(m=m.slice(f,+f+(s?1:0)),m.__actions__.push({func:ld,args:[y],thisArg:n}),new mr(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function nO(){return aw(this)}function rO(){return new mr(this.value(),this.__chain__)}function iO(){this.__values__===n&&(this.__values__=xw(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function oO(){return this}function aO(o){for(var s,f=this;f instanceof Kf;){var m=JS(f);m.__index__=0,m.__values__=n,s?y.__wrapped__=m:s=m;var y=m;f=f.__wrapped__}return y.__wrapped__=o,s}function sO(){var o=this.__wrapped__;if(o instanceof $e){var s=o;return this.__actions__.length&&(s=new $e(this)),s=s.reverse(),s.__actions__.push({func:ld,args:[Yv],thisArg:n}),new mr(s,this.__chain__)}return this.thru(Yv)}function lO(){return wS(this.__wrapped__,this.__actions__)}var uO=ed(function(o,s,f){et.call(o,f)?++o[f]:ki(o,f,1)});function cO(o,s,f){var m=ge(o)?Ox:e5;return f&&wn(o,s,f)&&(s=n),m(o,ce(s,3))}function fO(o,s){var f=ge(o)?co:oS;return f(o,ce(s,3))}var dO=$S(ew),hO=$S(tw);function pO(o,s){return en(ud(o,s),1)}function mO(o,s){return en(ud(o,s),Oe)}function vO(o,s,f){return f=f===n?1:xe(f),en(ud(o,s),f)}function sw(o,s){var f=ge(o)?hr:mo;return f(o,ce(s,3))}function lw(o,s){var f=ge(o)?OM:iS;return f(o,ce(s,3))}var gO=ed(function(o,s,f){et.call(o,f)?o[f].push(s):ki(o,f,[s])});function yO(o,s,f,m){o=Fn(o)?o:ws(o),f=f&&!m?xe(f):0;var y=o.length;return f<0&&(f=jt(y+f,0)),pd(o)?f<=y&&o.indexOf(s,f)>-1:!!y&&cs(o,s,f)>-1}var bO=Ce(function(o,s,f){var m=-1,y=typeof s=="function",P=Fn(o)?V(o.length):[];return mo(o,function(I){P[++m]=y?Gn(s,I,f):ru(I,s,f)}),P}),xO=ed(function(o,s,f){ki(o,f,s)});function ud(o,s){var f=ge(o)?gt:fS;return f(o,ce(s,3))}function SO(o,s,f,m){return o==null?[]:(ge(s)||(s=s==null?[]:[s]),f=m?n:f,ge(f)||(f=f==null?[]:[f]),mS(o,s,f))}var wO=ed(function(o,s,f){o[f?0:1].push(s)},function(){return[[],[]]});function _O(o,s,f){var m=ge(o)?lv:zx,y=arguments.length<3;return m(o,ce(s,4),f,y,mo)}function CO(o,s,f){var m=ge(o)?DM:zx,y=arguments.length<3;return m(o,ce(s,4),f,y,iS)}function kO(o,s){var f=ge(o)?co:oS;return f(o,dd(ce(s,3)))}function EO(o){var s=ge(o)?eS:y5;return s(o)}function PO(o,s,f){(f?wn(o,s,f):s===n)?s=1:s=xe(s);var m=ge(o)?Y$:b5;return m(o,s)}function TO(o){var s=ge(o)?X$:S5;return s(o)}function AO(o){if(o==null)return 0;if(Fn(o))return pd(o)?ds(o):o.length;var s=cn(o);return s==Ze||s==Gt?o.size:Pv(o).length}function RO(o,s,f){var m=ge(o)?uv:w5;return f&&wn(o,s,f)&&(s=n),m(o,ce(s,3))}var IO=Ce(function(o,s){if(o==null)return[];var f=s.length;return f>1&&wn(o,s[0],s[1])?s=[]:f>2&&wn(s[0],s[1],s[2])&&(s=[s[0]]),mS(o,en(s,1),[])}),cd=f$||function(){return be.Date.now()};function MO(o,s){if(typeof s!="function")throw new pr(l);return o=xe(o),function(){if(--o<1)return s.apply(this,arguments)}}function uw(o,s,f){return s=f?n:s,s=o&&s==null?o.length:s,Ei(o,L,n,n,n,n,s)}function cw(o,s){var f;if(typeof s!="function")throw new pr(l);return o=xe(o),function(){return--o>0&&(f=s.apply(this,arguments)),o<=1&&(s=n),f}}var Qv=Ce(function(o,s,f){var m=k;if(f.length){var y=ho(f,xs(Qv));m|=$}return Ei(o,m,s,f,y)}),fw=Ce(function(o,s,f){var m=k|b;if(f.length){var y=ho(f,xs(fw));m|=$}return Ei(s,m,o,f,y)});function dw(o,s,f){s=f?n:s;var m=Ei(o,C,n,n,n,n,n,s);return m.placeholder=dw.placeholder,m}function hw(o,s,f){s=f?n:s;var m=Ei(o,R,n,n,n,n,n,s);return m.placeholder=hw.placeholder,m}function pw(o,s,f){var m,y,P,I,M,N,H=0,G=!1,Y=!1,Z=!0;if(typeof o!="function")throw new pr(l);s=br(s)||0,St(f)&&(G=!!f.leading,Y="maxWait"in f,P=Y?jt(br(f.maxWait)||0,s):P,Z="trailing"in f?!!f.trailing:Z);function oe(It){var Vr=m,Ii=y;return m=y=n,H=It,I=o.apply(Ii,Vr),I}function fe(It){return H=It,M=lu(Re,s),G?oe(It):I}function we(It){var Vr=It-N,Ii=It-H,$w=s-Vr;return Y?un($w,P-Ii):$w}function de(It){var Vr=It-N,Ii=It-H;return N===n||Vr>=s||Vr<0||Y&&Ii>=P}function Re(){var It=cd();if(de(It))return De(It);M=lu(Re,we(It))}function De(It){return M=n,Z&&m?oe(It):(m=y=n,I)}function Xn(){M!==n&&CS(M),H=0,m=N=y=M=n}function _n(){return M===n?I:De(cd())}function Qn(){var It=cd(),Vr=de(It);if(m=arguments,y=this,N=It,Vr){if(M===n)return fe(N);if(Y)return CS(M),M=lu(Re,s),oe(N)}return M===n&&(M=lu(Re,s)),I}return Qn.cancel=Xn,Qn.flush=_n,Qn}var $O=Ce(function(o,s){return rS(o,1,s)}),FO=Ce(function(o,s,f){return rS(o,br(s)||0,f)});function OO(o){return Ei(o,K)}function fd(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new pr(l);var f=function(){var m=arguments,y=s?s.apply(this,m):m[0],P=f.cache;if(P.has(y))return P.get(y);var I=o.apply(this,m);return f.cache=P.set(y,I)||P,I};return f.cache=new(fd.Cache||Ci),f}fd.Cache=Ci;function dd(o){if(typeof o!="function")throw new pr(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function DO(o){return cw(2,o)}var NO=_5(function(o,s){s=s.length==1&&ge(s[0])?gt(s[0],Kn(ce())):gt(en(s,1),Kn(ce()));var f=s.length;return Ce(function(m){for(var y=-1,P=un(m.length,f);++y=s}),va=lS(function(){return arguments}())?lS:function(o){return Et(o)&&et.call(o,"callee")&&!qx.call(o,"callee")},ge=V.isArray,ZO=ls?Kn(ls):a5;function Fn(o){return o!=null&&hd(o.length)&&!Ai(o)}function Rt(o){return Et(o)&&Fn(o)}function JO(o){return o===!0||o===!1||Et(o)&&Sn(o)==ft}var bo=h$||ug,eD=us?Kn(us):s5;function tD(o){return Et(o)&&o.nodeType===1&&!uu(o)}function nD(o){if(o==null)return!0;if(Fn(o)&&(ge(o)||typeof o=="string"||typeof o.splice=="function"||bo(o)||Ss(o)||va(o)))return!o.length;var s=cn(o);if(s==Ze||s==Gt)return!o.size;if(su(o))return!Pv(o).length;for(var f in o)if(et.call(o,f))return!1;return!0}function rD(o,s){return iu(o,s)}function iD(o,s,f){f=typeof f=="function"?f:n;var m=f?f(o,s):n;return m===n?iu(o,s,n,f):!!m}function Jv(o){if(!Et(o))return!1;var s=Sn(o);return s==vt||s==Ft||typeof o.message=="string"&&typeof o.name=="string"&&!uu(o)}function oD(o){return typeof o=="number"&&Xx(o)}function Ai(o){if(!St(o))return!1;var s=Sn(o);return s==yn||s==Or||s==st||s==es}function vw(o){return typeof o=="number"&&o==xe(o)}function hd(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=W}function St(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Et(o){return o!=null&&typeof o=="object"}var gw=ql?Kn(ql):u5;function aD(o,s){return o===s||Ev(o,s,Wv(s))}function sD(o,s,f){return f=typeof f=="function"?f:n,Ev(o,s,Wv(s),f)}function lD(o){return yw(o)&&o!=+o}function uD(o){if(G5(o))throw new ve(a);return uS(o)}function cD(o){return o===null}function fD(o){return o==null}function yw(o){return typeof o=="number"||Et(o)&&Sn(o)==pe}function uu(o){if(!Et(o)||Sn(o)!=dt)return!1;var s=Bf(o);if(s===null)return!0;var f=et.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&Df.call(f)==s$}var eg=Mx?Kn(Mx):c5;function dD(o){return vw(o)&&o>=-W&&o<=W}var bw=$x?Kn($x):f5;function pd(o){return typeof o=="string"||!ge(o)&&Et(o)&&Sn(o)==bn}function Yn(o){return typeof o=="symbol"||Et(o)&&Sn(o)==Zt}var Ss=Fx?Kn(Fx):d5;function hD(o){return o===n}function pD(o){return Et(o)&&cn(o)==ei}function mD(o){return Et(o)&&Sn(o)==Fl}var vD=id(Tv),gD=id(function(o,s){return o<=s});function xw(o){if(!o)return[];if(Fn(o))return pd(o)?zr(o):$n(o);if(Xl&&o[Xl])return YM(o[Xl]());var s=cn(o),f=s==Ze?mv:s==Gt?$f:ws;return f(o)}function Ri(o){if(!o)return o===0?o:0;if(o=br(o),o===Oe||o===-Oe){var s=o<0?-1:1;return s*ie}return o===o?o:0}function xe(o){var s=Ri(o),f=s%1;return s===s?f?s-f:s:0}function Sw(o){return o?da(xe(o),0,re):0}function br(o){if(typeof o=="number")return o;if(Yn(o))return se;if(St(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=St(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=Bx(o);var f=Hm.test(o);return f||Km.test(o)?ee(o.slice(2),f?2:8):Um.test(o)?se:+o}function ww(o){return ni(o,On(o))}function yD(o){return o?da(xe(o),-W,W):o===0?o:0}function Xe(o){return o==null?"":qn(o)}var bD=ys(function(o,s){if(su(s)||Fn(s)){ni(s,qt(s),o);return}for(var f in s)et.call(s,f)&&tu(o,f,s[f])}),_w=ys(function(o,s){ni(s,On(s),o)}),md=ys(function(o,s,f,m){ni(s,On(s),o,m)}),xD=ys(function(o,s,f,m){ni(s,qt(s),o,m)}),SD=Pi(Sv);function wD(o,s){var f=gs(o);return s==null?f:tS(f,s)}var _D=Ce(function(o,s){o=at(o);var f=-1,m=s.length,y=m>2?s[2]:n;for(y&&wn(s[0],s[1],y)&&(m=1);++f1),P}),ni(o,jv(o),f),m&&(f=vr(f,p|v|g,F5));for(var y=s.length;y--;)$v(f,s[y]);return f});function jD(o,s){return kw(o,dd(ce(s)))}var VD=Pi(function(o,s){return o==null?{}:m5(o,s)});function kw(o,s){if(o==null)return{};var f=gt(jv(o),function(m){return[m]});return s=ce(s),vS(o,f,function(m,y){return s(m,y[0])})}function WD(o,s,f){s=go(s,o);var m=-1,y=s.length;for(y||(y=1,o=n);++ms){var m=o;o=s,s=m}if(f||o%1||s%1){var y=Qx();return un(o+y*(s-o+B("1e-"+((y+"").length-1))),s)}return Rv(o,s)}var eN=bs(function(o,s,f){return s=s.toLowerCase(),o+(f?Tw(s):s)});function Tw(o){return rg(Xe(o).toLowerCase())}function Aw(o){return o=Xe(o),o&&o.replace(Ym,UM).replace(Pf,"")}function tN(o,s,f){o=Xe(o),s=qn(s);var m=o.length;f=f===n?m:da(xe(f),0,m);var y=f;return f-=s.length,f>=0&&o.slice(f,y)==s}function nN(o){return o=Xe(o),o&&bi.test(o)?o.replace(so,HM):o}function rN(o){return o=Xe(o),o&&Dm.test(o)?o.replace(Nl,"\\$&"):o}var iN=bs(function(o,s,f){return o+(f?"-":"")+s.toLowerCase()}),oN=bs(function(o,s,f){return o+(f?" ":"")+s.toLowerCase()}),aN=MS("toLowerCase");function sN(o,s,f){o=Xe(o),s=xe(s);var m=s?ds(o):0;if(!s||m>=s)return o;var y=(s-m)/2;return rd(Uf(y),f)+o+rd(Wf(y),f)}function lN(o,s,f){o=Xe(o),s=xe(s);var m=s?ds(o):0;return s&&m>>0,f?(o=Xe(o),o&&(typeof s=="string"||s!=null&&!eg(s))&&(s=qn(s),!s&&fs(o))?yo(zr(o),0,f):o.split(s,f)):[]}var mN=bs(function(o,s,f){return o+(f?" ":"")+rg(s)});function vN(o,s,f){return o=Xe(o),f=f==null?0:da(xe(f),0,o.length),s=qn(s),o.slice(f,f+s.length)==s}function gN(o,s,f){var m=E.templateSettings;f&&wn(o,s,f)&&(s=n),o=Xe(o),s=md({},s,m,zS);var y=md({},s.imports,m.imports,zS),P=qt(y),I=pv(y,P),M,N,H=0,G=s.interpolate||uo,Y="__p += '",Z=vv((s.escape||uo).source+"|"+G.source+"|"+(G===uf?Wm:uo).source+"|"+(s.evaluate||uo).source+"|$","g"),oe="//# sourceURL="+(et.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Af+"]")+` -`;o.replace(Z,function(de,Re,De,Xn,_n,Qn){return De||(De=Xn),Y+=o.slice(H,Qn).replace(Xm,GM),Re&&(M=!0,Y+=`' + -__e(`+Re+`) + -'`),_n&&(N=!0,Y+=`'; -`+_n+`; -__p += '`),De&&(Y+=`' + -((__t = (`+De+`)) == null ? '' : __t) + -'`),H=Qn+de.length,de}),Y+=`'; -`;var fe=et.call(s,"variable")&&s.variable;if(!fe)Y=`with (obj) { -`+Y+` -} -`;else if(jm.test(fe))throw new ve(u);Y=(N?Y.replace(Am,""):Y).replace(lf,"$1").replace(Rm,"$1;"),Y="function("+(fe||"obj")+`) { -`+(fe?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(N?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Y+`return __p -}`;var we=Iw(function(){return We(P,oe+"return "+Y).apply(n,I)});if(we.source=Y,Jv(we))throw we;return we}function yN(o){return Xe(o).toLowerCase()}function bN(o){return Xe(o).toUpperCase()}function xN(o,s,f){if(o=Xe(o),o&&(f||s===n))return Bx(o);if(!o||!(s=qn(s)))return o;var m=zr(o),y=zr(s),P=jx(m,y),I=Vx(m,y)+1;return yo(m,P,I).join("")}function SN(o,s,f){if(o=Xe(o),o&&(f||s===n))return o.slice(0,Ux(o)+1);if(!o||!(s=qn(s)))return o;var m=zr(o),y=Vx(m,zr(s))+1;return yo(m,0,y).join("")}function wN(o,s,f){if(o=Xe(o),o&&(f||s===n))return o.replace(Ll,"");if(!o||!(s=qn(s)))return o;var m=zr(o),y=jx(m,zr(s));return yo(m,y).join("")}function _N(o,s){var f=q,m=J;if(St(s)){var y="separator"in s?s.separator:y;f="length"in s?xe(s.length):f,m="omission"in s?qn(s.omission):m}o=Xe(o);var P=o.length;if(fs(o)){var I=zr(o);P=I.length}if(f>=P)return o;var M=f-ds(m);if(M<1)return m;var N=I?yo(I,0,M).join(""):o.slice(0,M);if(y===n)return N+m;if(I&&(M+=N.length-M),eg(y)){if(o.slice(M).search(y)){var H,G=N;for(y.global||(y=vv(y.source,Xe(xi.exec(y))+"g")),y.lastIndex=0;H=y.exec(G);)var Y=H.index;N=N.slice(0,Y===n?M:Y)}}else if(o.indexOf(qn(y),M)!=M){var Z=N.lastIndexOf(y);Z>-1&&(N=N.slice(0,Z))}return N+m}function CN(o){return o=Xe(o),o&&Im.test(o)?o.replace(Dl,JM):o}var kN=bs(function(o,s,f){return o+(f?" ":"")+s.toUpperCase()}),rg=MS("toUpperCase");function Rw(o,s,f){return o=Xe(o),s=f?n:s,s===n?qM(o)?n$(o):zM(o):o.match(s)||[]}var Iw=Ce(function(o,s){try{return Gn(o,n,s)}catch(f){return Jv(f)?f:new ve(f)}}),EN=Pi(function(o,s){return hr(s,function(f){f=ri(f),ki(o,f,Qv(o[f],o))}),o});function PN(o){var s=o==null?0:o.length,f=ce();return o=s?gt(o,function(m){if(typeof m[1]!="function")throw new pr(l);return[f(m[0]),m[1]]}):[],Ce(function(m){for(var y=-1;++yW)return[];var f=re,m=un(o,re);s=ce(s),o-=re;for(var y=hv(m,s);++f0||s<0)?new $e(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),s!==n&&(s=xe(s),f=s<0?f.dropRight(-s):f.take(s-o)),f)},$e.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$e.prototype.toArray=function(){return this.take(re)},ti($e.prototype,function(o,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),y=E[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);y&&(E.prototype[s]=function(){var I=this.__wrapped__,M=m?[1]:arguments,N=I instanceof $e,H=M[0],G=N||ge(I),Y=function(Re){var De=y.apply(E,fo([Re],M));return m&&Z?De[0]:De};G&&f&&typeof H=="function"&&H.length!=1&&(N=G=!1);var Z=this.__chain__,oe=!!this.__actions__.length,fe=P&&!Z,we=N&&!oe;if(!P&&G){I=we?I:new $e(this);var de=o.apply(I,M);return de.__actions__.push({func:ld,args:[Y],thisArg:n}),new mr(de,Z)}return fe&&we?o.apply(this,M):(de=this.thru(Y),fe?m?de.value()[0]:de.value():de)})}),hr(["pop","push","shift","sort","splice","unshift"],function(o){var s=Ff[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);E.prototype[o]=function(){var y=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(ge(P)?P:[],y)}return this[f](function(I){return s.apply(ge(I)?I:[],y)})}}),ti($e.prototype,function(o,s){var f=E[s];if(f){var m=f.name+"";et.call(vs,m)||(vs[m]=[]),vs[m].push({name:s,func:f})}}),vs[td(n,b).name]=[{name:"wrapper",func:n}],$e.prototype.clone=C$,$e.prototype.reverse=k$,$e.prototype.value=E$,E.prototype.at=tO,E.prototype.chain=nO,E.prototype.commit=rO,E.prototype.next=iO,E.prototype.plant=aO,E.prototype.reverse=sO,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=lO,E.prototype.first=E.prototype.head,Xl&&(E.prototype[Xl]=oO),E},hs=r$();Ve?((Ve.exports=hs)._=hs,_e._=hs):be._=hs}).call(Oi)})(rp,rp.exports);var Di=rp.exports;function rC(e){window.localStorage.setItem("hhd_url",e)}function _T(){return window.localStorage.getItem("hhd_url")||"http://localhost:5335"}function iC(e){window.localStorage.setItem("hhd_token",e)}function CT(){return window.localStorage.getItem("hhd_token")||""}function lB(){window.localStorage.setItem("hhd_logged_in","true")}function uB(){return window.localStorage.getItem("hhd_logged_in")==="true"}function cB(){window.localStorage.setItem("hhd_logged_in","false")}const Sb=async(e,t)=>{const n={Authorization:`Bearer ${CT()}`};return t||(t={method:"GET"}),t.headers={...t==null?void 0:t.headers,...n},fetch(`${_T()}/api/v1/${e}`,t).then(r=>{if(r.ok)return r.json()}).catch(console.log)},Ty=bb("hhd/fetchHhdSettings",async()=>await Sb("settings")),Ay=bb("hhd/fetchHhdSettingsState",async()=>await Sb("state")),Ry=bb("hhd/updateHhdState",async({path:e,value:t},n)=>{const r=Di.set({},e,t),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)};return await Sb("state",i)});var wb=(e=>(e.LoginFailed="LoginFailed",e))(wb||{});const Od={settingsState:{},settings:{},loading:{settings:"idle",settingsState:"idle",updateHhdState:"idle"},error:{}},kc=nB({name:"hhd",initialState:Od,reducers:{updateHhdState:(e,t)=>{const{path:n,value:r}=t.payload;Di.set(e.settingsState,n,r)},resetHhdState:(e,t)=>{e.loading=Od.loading,e.settings=Od.settings,e.settingsState=Od.settingsState},setError:(e,t)=>{const{errorName:n,errorMessage:r}=t.payload;Di.set(e.error,n,r)},clearError:(e,t)=>{const n=t.payload;delete e.error[n]}},extraReducers:e=>{e.addCase(Ty.pending,t=>{t.loading.settings="pending"}),e.addCase(Ty.fulfilled,(t,n)=>{t.settings=n.payload,t.loading.settings="succeeded"}),e.addCase(Ay.pending,t=>{t.loading.settingsState="pending"}),e.addCase(Ay.fulfilled,(t,n)=>{t.settingsState=n.payload,t.loading.settingsState="succeeded"}),e.addCase(Ry.pending,t=>{t.loading.updateHhdState="pending"}),e.addCase(Ry.fulfilled,(t,n)=>{t.settingsState=n.payload,t.loading.updateHhdState="succeeded"})}}),kT=e=>e.hhd.settings,ET=e=>e.hhd.settingsState,fB=e=>e.hhd.loading.settings,dB=e=>e.hhd.loading.settingsState,hB=e=>e.hhd.loading.updateHhdState==="pending",pB=e=>({stateLoading:dB(e),settingsLoading:fB(e)}),mB=e=>e.hhd.error.LoginFailed;function vB(e){if(e.sheet)return e.sheet;for(var t=0;t0?on(Rl,--Wn):0,wl--,Nt===10&&(wl=1,Kp--),Nt}function nr(){return Nt=Wn2||Pc(Nt)>3?"":" "}function AB(e,t){for(;--t&&nr()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return Xc(e,fh()+(t<6&&pi()==32&&nr()==32))}function My(e){for(;nr();)switch(Nt){case e:return Wn;case 34:case 39:e!==34&&e!==39&&My(Nt);break;case 40:e===41&&My(e);break;case 92:nr();break}return Wn}function RB(e,t){for(;nr()&&e+Nt!==57;)if(e+Nt===84&&pi()===47)break;return"/*"+Xc(t,Wn-1)+"*"+Gp(e===47?e:nr())}function IB(e){for(;!Pc(pi());)nr();return Xc(e,Wn)}function MB(e){return MT(hh("",null,null,null,[""],e=IT(e),0,[0],e))}function hh(e,t,n,r,i,a,l,u,c){for(var d=0,h=0,p=l,v=0,g=0,w=0,S=1,k=1,b=1,x=0,C="",R=i,$=a,z=r,L=C;k;)switch(w=x,x=nr()){case 40:if(w!=108&&on(L,p-1)==58){Iy(L+=Ge(dh(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:L+=dh(x);break;case 9:case 10:case 13:case 32:L+=TB(w);break;case 92:L+=AB(fh()-1,7);continue;case 47:switch(pi()){case 42:case 47:Dd($B(RB(nr(),fh()),t,n),c);break;default:L+="/"}break;case 123*S:u[d++]=li(L)*b;case 125*S:case 59:case 0:switch(x){case 0:case 125:k=0;case 59+h:b==-1&&(L=Ge(L,/\f/g,"")),g>0&&li(L)-p&&Dd(g>32?aC(L+";",r,n,p-1):aC(Ge(L," ","")+";",r,n,p-2),c);break;case 59:L+=";";default:if(Dd(z=oC(L,t,n,d,h,i,u,C,R=[],$=[],p),a),x===123)if(h===0)hh(L,t,z,z,R,a,p,u,$);else switch(v===99&&on(L,3)===110?100:v){case 100:case 108:case 109:case 115:hh(e,z,z,r&&Dd(oC(e,z,z,0,0,i,u,C,i,R=[],p),$),i,$,p,u,r?R:$);break;default:hh(L,z,z,z,[""],$,0,u,$)}}d=h=g=0,S=b=1,C=L="",p=l;break;case 58:p=1+li(L),g=w;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&PB()==125)continue}switch(L+=Gp(x),x*S){case 38:b=h>0?1:(L+="\f",-1);break;case 44:u[d++]=(li(L)-1)*b,b=1;break;case 64:pi()===45&&(L+=dh(nr())),v=pi(),h=p=li(C=L+=IB(fh())),x++;break;case 45:w===45&&li(L)==2&&(S=0)}}return a}function oC(e,t,n,r,i,a,l,u,c,d,h){for(var p=i-1,v=i===0?a:[""],g=kb(v),w=0,S=0,k=0;w0?v[b]+" "+x:Ge(x,/&\f/g,v[b])))&&(c[k++]=C);return qp(e,t,n,i===0?_b:u,c,d,h)}function $B(e,t,n){return qp(e,t,n,PT,Gp(EB()),Ec(e,2,-2),0)}function aC(e,t,n,r){return qp(e,t,n,Cb,Ec(e,0,r),Ec(e,r+1,-1),r)}function ol(e,t){for(var n="",r=kb(e),i=0;i6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+ip+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Iy(e,"stretch")?FT(Ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,li(e)-3-(~Iy(e,"!important")&&10))){case 107:return Ge(e,":",":"+He)+e;case 101:return Ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(on(e,14)===45?"inline-":"")+"box$3$1"+He+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return He+e+hn+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return He+e+hn+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return He+e+hn+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return He+e+hn+e+e}return e}var VB=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Cb:t.return=FT(t.value,t.length);break;case TT:return ol([yu(t,{value:Ge(t.value,"@","@"+He)})],i);case _b:if(t.length)return kB(t.props,function(a){switch(CB(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ol([yu(t,{props:[Ge(a,/:(read-\w+)/,":"+ip+"$1")]})],i);case"::placeholder":return ol([yu(t,{props:[Ge(a,/:(plac\w+)/,":"+He+"input-$1")]}),yu(t,{props:[Ge(a,/:(plac\w+)/,":"+ip+"$1")]}),yu(t,{props:[Ge(a,/:(plac\w+)/,hn+"input-$1")]})],i)}return""})}},WB=[VB],UB=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||WB,a={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),b=1;b=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nj={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},rj=/[A-Z]|^ms/g,ij=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jT=function(t){return t.charCodeAt(1)===45},uC=function(t){return t!=null&&typeof t!="boolean"},jg=$T(function(e){return jT(e)?e:e.replace(rj,"-$&").toLowerCase()}),cC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ij,function(r,i,a){return ui={name:i,styles:a,next:ui},i})}return nj[t]!==1&&!jT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Tc(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ui={name:n.name,styles:n.styles,next:ui},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ui={name:r.name,styles:r.styles,next:ui},r=r.next;var i=n.styles+";";return i}return oj(e,t,n)}case"function":{if(e!==void 0){var a=ui,l=n(e);return ui=a,Tc(e,t,l)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function oj(e,t,n){var r="";if(Array.isArray(n))for(var i=0;iT.jsx(om,{styles:GT}),hj=({scope:e=""})=>T.jsx(om,{styles:HT` - 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; - } - - ${GT} - `});function pj(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ln(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:l}=e,u=_.createContext(l);u.displayName=t;function c(){var d;const h=_.useContext(u);if(!h&&n){const p=new Error(a??pj(r,i));throw p.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,p,c),p}return h}return[u.Provider,c,u]}var[mj,vj]=ln({strict:!1,name:"PortalManagerContext"});function KT(e){const{children:t,zIndex:n}=e;return T.jsx(mj,{value:{zIndex:n},children:t})}KT.displayName="PortalManager";var Go=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,[qT,gj]=ln({strict:!1,name:"PortalContext"}),Rb="chakra-portal",yj=".chakra-portal",bj=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),xj=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=_.useState(null),a=_.useRef(null),[,l]=_.useState({});_.useEffect(()=>l({}),[]);const u=gj(),c=vj();Go(()=>{if(!r)return;const h=r.ownerDocument,p=t?u??h.body:h.body;if(!p)return;a.current=h.createElement("div"),a.current.className=Rb,p.appendChild(a.current),l({});const v=a.current;return()=>{p.contains(v)&&p.removeChild(v)}},[r]);const d=c!=null&&c.zIndex?T.jsx(bj,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return a.current?pb.createPortal(T.jsx(qT,{value:a.current,children:d}),a.current):T.jsx("span",{ref:h=>{h&&i(h)}})},Sj=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,a=i??(typeof window<"u"?document.body:void 0),l=_.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=Rb),c},[i]),[,u]=_.useState({});return Go(()=>u({}),[]),Go(()=>{if(!(!l||!a))return a.appendChild(l),()=>{a.removeChild(l)}},[l,a]),a&&l?pb.createPortal(T.jsx(qT,{value:r?l:null,children:t}),l):null};function Qc(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(Sj,{containerRef:n,...r}):T.jsx(xj,{...r})}Qc.className=Rb;Qc.selector=yj;Qc.displayName="Portal";function wj(){const e=_.useContext(Ac);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Ib=_.createContext({});Ib.displayName="ColorModeContext";function Mb(){const e=_.useContext(Ib);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Nd={light:"chakra-ui-light",dark:"chakra-ui-dark"};function _j(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?Nd.dark:Nd.light),document.body.classList.remove(r?Nd.light:Nd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),a=l=>{r(l.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var Cj="chakra-ui-color-mode";function kj(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var Ej=kj(Cj),hC=()=>{};function pC(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function YT(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:l=Ej}=e,u=i==="dark"?"dark":"light",[c,d]=_.useState(()=>pC(l,u)),[h,p]=_.useState(()=>pC(l)),{getSystemTheme:v,setClassName:g,setDataset:w,addListener:S}=_.useMemo(()=>_j({preventTransition:a}),[a]),k=i==="system"&&!c?h:c,b=_.useCallback(R=>{const $=R==="system"?v():R;d($),g($==="dark"),w($),l.set($)},[l,v,g,w]);Go(()=>{i==="system"&&p(v())},[]),_.useEffect(()=>{const R=l.get();if(R){b(R);return}if(i==="system"){b("system");return}b(u)},[l,u,i,b]);const x=_.useCallback(()=>{b(k==="dark"?"light":"dark")},[k,b]);_.useEffect(()=>{if(r)return S(b)},[r,S,b]);const C=_.useMemo(()=>({colorMode:t??k,toggleColorMode:t?hC:x,setColorMode:t?hC:b,forced:t!==void 0}),[k,x,b,t]);return T.jsx(Ib.Provider,{value:C,children:n})}YT.displayName="ColorModeProvider";function Pj(){const e=Mb(),t=wj();return{...e,theme:t}}var Se=(...e)=>e.filter(Boolean).join(" ");function Tj(){return!1}function Rr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Zc=e=>{const{condition:t,message:n}=e;t&&Tj()&&console.warn(n)};function Oo(e,...t){return Aj(e)?e(...t):e}var Aj=e=>typeof e=="function",Ne=e=>e?"":void 0,al=e=>e?!0:void 0;function Ke(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function Rj(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var op={exports:{}};op.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,l=9007199254740991,u="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",h="[object Boolean]",p="[object Date]",v="[object Error]",g="[object Function]",w="[object GeneratorFunction]",S="[object Map]",k="[object Number]",b="[object Null]",x="[object Object]",C="[object Proxy]",R="[object RegExp]",$="[object Set]",z="[object String]",L="[object Undefined]",j="[object WeakMap]",K="[object ArrayBuffer]",q="[object DataView]",J="[object Float32Array]",Ie="[object Float64Array]",je="[object Int8Array]",Me="[object Int16Array]",bt="[object Int32Array]",ke="[object Uint8Array]",Oe="[object Uint8ClampedArray]",W="[object Uint16Array]",ie="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,re=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,me={};me[J]=me[Ie]=me[je]=me[Me]=me[bt]=me[ke]=me[Oe]=me[W]=me[ie]=!0,me[u]=me[c]=me[K]=me[h]=me[q]=me[p]=me[v]=me[g]=me[S]=me[k]=me[x]=me[R]=me[$]=me[z]=me[j]=!1;var Ee=typeof Oi=="object"&&Oi&&Oi.Object===Object&&Oi,Qe=typeof self=="object"&&self&&self.Object===Object&&self,ze=Ee||Qe||Function("return this")(),st=t&&!t.nodeType&&t,ft=st&&!0&&e&&!e.nodeType&&e,xt=ft&&ft.exports===st,Ft=xt&&Ee.process,vt=function(){try{var A=ft&&ft.require&&ft.require("util").types;return A||Ft&&Ft.binding&&Ft.binding("util")}catch{}}(),yn=vt&&vt.isTypedArray;function Or(A,F,B){switch(B.length){case 0:return A.call(F);case 1:return A.call(F,B[0]);case 2:return A.call(F,B[0],B[1]);case 3:return A.call(F,B[0],B[1],B[2])}return A.apply(F,B)}function Ze(A,F){for(var B=-1,ee=Array(A);++B-1}function Lm(A,F){var B=this.__data__,ee=Si(B,A);return ee<0?(++this.size,B.push([A,F])):B[ee][1]=F,this}Nr.prototype.clear=Nl,Nr.prototype.delete=Dm,Nr.prototype.get=Ll,Nr.prototype.has=Nm,Nr.prototype.set=Lm;function lo(A){var F=-1,B=A==null?0:A.length;for(this.clear();++F1?B[Ae-1]:void 0,be=Ae>2?B[2]:void 0;for(Je=A.length>3&&typeof Je=="function"?(Ae--,Je):void 0,be&&xf(B[0],B[1],be)&&(Je=Ae<3?void 0:Je,Ae=1),F=Object(F);++ee-1&&A%1==0&&A0){if(++F>=i)return arguments[0]}else F=0;return A.apply(void 0,arguments)}}function kf(A){if(A!=null){try{return bn.call(A)}catch{}try{return A+""}catch{}}return""}function as(A,F){return A===F||A!==A&&F!==F}var Hl=Bl(function(){return arguments}())?Bl:function(A){return la(A)&&Zt.call(A,"callee")&&!oo.call(A,"callee")},Gl=Array.isArray;function ss(A){return A!=null&&Pf(A.length)&&!Kl(A)}function rv(A){return la(A)&&ss(A)}var Ef=Am||av;function Kl(A){if(!Lr(A))return!1;var F=ts(A);return F==g||F==w||F==d||F==C}function Pf(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=l}function Lr(A){var F=typeof A;return A!=null&&(F=="object"||F=="function")}function la(A){return A!=null&&typeof A=="object"}function iv(A){if(!la(A)||ts(A)!=x)return!1;var F=Mn(A);if(F===null)return!0;var B=Zt.call(F,"constructor")&&F.constructor;return typeof B=="function"&&B instanceof B&&bn.call(B)==Fl}var Tf=yn?pe(yn):ff;function ov(A){return vf(A,Af(A))}function Af(A){return ss(A)?Ym(A,!0):Zm(A)}var ot=ns(function(A,F,B,ee){df(A,F,B,ee)});function rt(A){return function(){return A}}function Rf(A){return A}function av(){return!1}e.exports=ot})(op,op.exports);var Ij=op.exports;const Pr=b1(Ij);var Mj=e=>/!(important)?$/.test(e),mC=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,$j=(e,t)=>n=>{const r=String(t),i=Mj(r),a=mC(r),l=e?`${e}.${a}`:a;let u=Rr(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return u=mC(u),i?`${u} !important`:u};function $b(e){const{scale:t,transform:n,compose:r}=e;return(a,l)=>{var u;const c=$j(t,a)(l);let d=(u=n==null?void 0:n(c,l))!=null?u:c;return r&&(d=r(d,l)),d}}var Ld=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xr(e,t){return n=>{const r={property:n,scale:e};return r.transform=$b({scale:e,transform:t}),r}}var Fj=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Oj(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Fj(t),transform:n?$b({scale:n,compose:r}):r}}var XT=["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 Dj(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...XT].join(" ")}function Nj(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...XT].join(" ")}var Lj={"--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(" ")},zj={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 Bj(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 jj={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},$y={"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"},Vj=new Set(Object.values($y)),Fy=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Wj=e=>e.trim();function Uj(e,t){if(e==null||Fy.has(e))return e;if(!(Oy(e)||Fy.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],l=i==null?void 0:i[2];if(!a||!l)return e;const u=a.includes("-gradient")?a:`${a}-gradient`,[c,...d]=l.split(",").map(Wj).filter(Boolean);if((d==null?void 0:d.length)===0)return e;const h=c in $y?$y[c]:c;d.unshift(h);const p=d.map(v=>{if(Vj.has(v))return v;const g=v.indexOf(" "),[w,S]=g!==-1?[v.substr(0,g),v.substr(g+1)]:[v],k=Oy(S)?S:S&&S.split(" "),b=`colors.${w}`,x=b in t.__cssMap?t.__cssMap[b].varRef:w;return k?[x,...Array.isArray(k)?k:[k]].join(" "):x});return`${u}(${p.join(", ")})`}var Oy=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Hj=(e,t)=>Uj(e,t??{});function Gj(e){return/^var\(--.+\)$/.test(e)}var Kj=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},oi=e=>t=>`${e}(${t})`,Le={filter(e){return e!=="auto"?e:Lj},backdropFilter(e){return e!=="auto"?e:zj},ring(e){return Bj(Le.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Dj():e==="auto-gpu"?Nj():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Kj(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Gj(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Hj,blur:oi("blur"),opacity:oi("opacity"),brightness:oi("brightness"),contrast:oi("contrast"),dropShadow:oi("drop-shadow"),grayscale:oi("grayscale"),hueRotate:e=>oi("hue-rotate")(Le.degree(e)),invert:oi("invert"),saturate:oi("saturate"),sepia:oi("sepia"),bgImage(e){return e==null||Oy(e)||Fy.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=jj[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},O={borderWidths:xr("borderWidths"),borderStyles:xr("borderStyles"),colors:xr("colors"),borders:xr("borders"),gradients:xr("gradients",Le.gradient),radii:xr("radii",Le.px),space:xr("space",Ld(Le.vh,Le.px)),spaceT:xr("space",Ld(Le.vh,Le.px)),degreeT(e){return{property:e,transform:Le.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:$b({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xr("sizes",Ld(Le.vh,Le.px)),sizesT:xr("sizes",Ld(Le.vh,Le.fraction)),shadows:xr("shadows"),logical:Oj,blur:xr("blur",Le.blur)},ph={background:O.colors("background"),backgroundColor:O.colors("backgroundColor"),backgroundImage:O.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Le.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:Le.bgClip}};Object.assign(ph,{bgImage:ph.backgroundImage,bgImg:ph.backgroundImage});var Ue={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(Ue,{rounded:Ue.borderRadius,roundedTop:Ue.borderTopRadius,roundedTopLeft:Ue.borderTopLeftRadius,roundedTopRight:Ue.borderTopRightRadius,roundedTopStart:Ue.borderStartStartRadius,roundedTopEnd:Ue.borderStartEndRadius,roundedBottom:Ue.borderBottomRadius,roundedBottomLeft:Ue.borderBottomLeftRadius,roundedBottomRight:Ue.borderBottomRightRadius,roundedBottomStart:Ue.borderEndStartRadius,roundedBottomEnd:Ue.borderEndEndRadius,roundedLeft:Ue.borderLeftRadius,roundedRight:Ue.borderRightRadius,roundedStart:Ue.borderInlineStartRadius,roundedEnd:Ue.borderInlineEndRadius,borderStart:Ue.borderInlineStart,borderEnd:Ue.borderInlineEnd,borderTopStartRadius:Ue.borderStartStartRadius,borderTopEndRadius:Ue.borderStartEndRadius,borderBottomStartRadius:Ue.borderEndStartRadius,borderBottomEndRadius:Ue.borderEndEndRadius,borderStartRadius:Ue.borderInlineStartRadius,borderEndRadius:Ue.borderInlineEndRadius,borderStartWidth:Ue.borderInlineStartWidth,borderEndWidth:Ue.borderInlineEndWidth,borderStartColor:Ue.borderInlineStartColor,borderEndColor:Ue.borderInlineEndColor,borderStartStyle:Ue.borderInlineStartStyle,borderEndStyle:Ue.borderInlineEndStyle});var qj={color:O.colors("color"),textColor:O.colors("color"),fill:O.colors("fill"),stroke:O.colors("stroke")},Dy={boxShadow:O.shadows("boxShadow"),mixBlendMode:!0,blendMode:O.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:O.prop("backgroundBlendMode"),opacity:!0};Object.assign(Dy,{shadow:Dy.boxShadow});var Yj={filter:{transform:Le.filter},blur:O.blur("--chakra-blur"),brightness:O.propT("--chakra-brightness",Le.brightness),contrast:O.propT("--chakra-contrast",Le.contrast),hueRotate:O.propT("--chakra-hue-rotate",Le.hueRotate),invert:O.propT("--chakra-invert",Le.invert),saturate:O.propT("--chakra-saturate",Le.saturate),dropShadow:O.propT("--chakra-drop-shadow",Le.dropShadow),backdropFilter:{transform:Le.backdropFilter},backdropBlur:O.blur("--chakra-backdrop-blur"),backdropBrightness:O.propT("--chakra-backdrop-brightness",Le.brightness),backdropContrast:O.propT("--chakra-backdrop-contrast",Le.contrast),backdropHueRotate:O.propT("--chakra-backdrop-hue-rotate",Le.hueRotate),backdropInvert:O.propT("--chakra-backdrop-invert",Le.invert),backdropSaturate:O.propT("--chakra-backdrop-saturate",Le.saturate)},ap={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Le.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(ap,{flexDir:ap.flexDirection});var QT={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},Xj={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Le.outline},outlineOffset:!0,outlineColor:O.colors("outlineColor")},wr={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 n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:O.propT("float",Le.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(wr,{w:wr.width,h:wr.height,minW:wr.minWidth,maxW:wr.maxWidth,minH:wr.minHeight,maxH:wr.maxHeight,overscroll:wr.overscrollBehavior,overscrollX:wr.overscrollBehaviorX,overscrollY:wr.overscrollBehaviorY});var Qj={listStyleType:!0,listStylePosition:!0,listStylePos:O.prop("listStylePosition"),listStyleImage:!0,listStyleImg:O.prop("listStyleImage")};function Zj(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,a,l)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,a,l);return u.set(i,c),c}},e6=Jj(Zj),t6={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},n6={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Vg=(e,t,n)=>{const r={},i=e6(e,t,{});for(const a in i)a in n&&n[a]!=null||(r[a]=i[a]);return r},r6={srOnly:{transform(e){return e===!0?t6:e==="focusable"?n6:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Vg(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Vg(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Vg(t,e,n)}},Gu={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(Gu,{insetStart:Gu.insetInlineStart,insetEnd:Gu.insetInlineEnd});var i6={ring:{transform:Le.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")},pt={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(pt,{m:pt.margin,mt:pt.marginTop,mr:pt.marginRight,me:pt.marginInlineEnd,marginEnd:pt.marginInlineEnd,mb:pt.marginBottom,ml:pt.marginLeft,ms:pt.marginInlineStart,marginStart:pt.marginInlineStart,mx:pt.marginX,my:pt.marginY,p:pt.padding,pt:pt.paddingTop,py:pt.paddingY,px:pt.paddingX,pb:pt.paddingBottom,pl:pt.paddingLeft,ps:pt.paddingInlineStart,paddingStart:pt.paddingInlineStart,pr:pt.paddingRight,pe:pt.paddingInlineEnd,paddingEnd:pt.paddingInlineEnd});var o6={textDecorationColor:O.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:O.shadows("textShadow")},a6={clipPath:!0,transform:O.propT("transform",Le.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")},s6={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")},l6={fontFamily:O.prop("fontFamily","fonts"),fontSize:O.prop("fontSize","fontSizes",Le.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"}},u6={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 ZT(e){return Rr(e)&&e.reference?e.reference:String(e)}var sm=(e,...t)=>t.map(ZT).join(` ${e} `).replace(/calc/g,""),vC=(...e)=>`calc(${sm("+",...e)})`,gC=(...e)=>`calc(${sm("-",...e)})`,Ny=(...e)=>`calc(${sm("*",...e)})`,yC=(...e)=>`calc(${sm("/",...e)})`,bC=e=>{const t=ZT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ny(t,-1)},Ca=Object.assign(e=>({add:(...t)=>Ca(vC(e,...t)),subtract:(...t)=>Ca(gC(e,...t)),multiply:(...t)=>Ca(Ny(e,...t)),divide:(...t)=>Ca(yC(e,...t)),negate:()=>Ca(bC(e)),toString:()=>e.toString()}),{add:vC,subtract:gC,multiply:Ny,divide:yC,negate:bC});function c6(e,t="-"){return e.replace(/\s+/g,t)}function f6(e){const t=c6(e.toString());return h6(d6(t))}function d6(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function h6(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function p6(e,t=""){return[t,e].filter(Boolean).join("-")}function m6(e,t){return`var(${e}${t?`, ${t}`:""})`}function v6(e,t=""){return f6(`--${p6(e,t)}`)}function ue(e,t,n){const r=v6(e,n);return{variable:r,reference:m6(r,t)}}function g6(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,a]=r;n[i]=ue(`${e}-${i}`,a);continue}n[r]=ue(`${e}-${r}`)}return n}function y6(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function b6(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Ly(e){if(e==null)return e;const{unitless:t}=b6(e);return t||typeof e=="number"?`${e}px`:e}var JT=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Fb=e=>Object.fromEntries(Object.entries(e).sort(JT));function xC(e){const t=Fb(e);return Object.assign(Object.values(t),t)}function x6(e){const t=Object.keys(Fb(e));return new Set(t)}function SC(e){var t;if(!e)return e;e=(t=Ly(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function Au(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ly(e)})`),t&&n.push("and",`(max-width: ${Ly(t)})`),n.join(" ")}function S6(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=xC(e),r=Object.entries(e).sort(JT).map(([l,u],c,d)=>{var h;let[,p]=(h=d[c+1])!=null?h:[];return p=parseFloat(p)>0?SC(p):void 0,{_minW:SC(u),breakpoint:l,minW:u,maxW:p,maxWQuery:Au(null,p),minWQuery:Au(u),minMaxQuery:Au(u,p)}}),i=x6(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive(l){const u=Object.keys(l);return u.length>0&&u.every(c=>i.has(c))},asObject:Fb(e),asArray:xC(e),details:r,get(l){return r.find(u=>u.breakpoint===l)},media:[null,...n.map(l=>Au(l)).slice(1)],toArrayValue(l){if(!Rr(l))throw new Error("toArrayValue: value must be an object");const u=a.map(c=>{var d;return(d=l[c])!=null?d:null});for(;y6(u)===null;)u.pop();return u},toObjectValue(l){if(!Array.isArray(l))throw new Error("toObjectValue: value must be an array");return l.reduce((u,c,d)=>{const h=a[d];return h!=null&&c!=null&&(u[h]=c),u},{})}}}var tn={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=>eA(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Mi=e=>eA(t=>e(t,"~ &"),"[data-peer]",".peer"),eA=(e,...t)=>t.map(e).join(", "),lm={_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(tn.hover),_peerHover:Mi(tn.hover),_groupFocus:So(tn.focus),_peerFocus:Mi(tn.focus),_groupFocusVisible:So(tn.focusVisible),_peerFocusVisible:Mi(tn.focusVisible),_groupActive:So(tn.active),_peerActive:Mi(tn.active),_groupDisabled:So(tn.disabled),_peerDisabled:Mi(tn.disabled),_groupInvalid:So(tn.invalid),_peerInvalid:Mi(tn.invalid),_groupChecked:So(tn.checked),_peerChecked:Mi(tn.checked),_groupFocusWithin:So(tn.focusWithin),_peerFocusWithin:Mi(tn.focusWithin),_peerPlaceholderShown:Mi(tn.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]"},tA=Object.keys(lm);function wC(e,t){return ue(String(e).replace(/\./g,"-"),void 0,t)}function w6(e,t){let n={};const r={};for(const[i,a]of Object.entries(e)){const{isSemantic:l,value:u}=a,{variable:c,reference:d}=wC(i,t==null?void 0:t.cssVarPrefix);if(!l){if(i.startsWith("space")){const v=i.split("."),[g,...w]=v,S=`${g}.-${w.join(".")}`,k=Ca.negate(u),b=Ca.negate(d);r[S]={value:k,var:c,varRef:b}}n[c]=u,r[i]={value:u,var:c,varRef:d};continue}const h=v=>{const w=[String(i).split(".")[0],v].join(".");if(!e[w])return v;const{reference:k}=wC(w,t==null?void 0:t.cssVarPrefix);return k},p=Rr(u)?u:{default:u};n=Pr(n,Object.entries(p).reduce((v,[g,w])=>{var S,k;if(!w)return v;const b=h(`${w}`);if(g==="default")return v[c]=b,v;const x=(k=(S=lm)==null?void 0:S[g])!=null?k:g;return v[x]={[c]:b},v},{})),r[i]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:r}}function _6(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function C6(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function k6(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function _C(e,t,n={}){const{stop:r,getKey:i}=n;function a(l,u=[]){var c;if(k6(l)||Array.isArray(l)){const d={};for(const[h,p]of Object.entries(l)){const v=(c=i==null?void 0:i(h))!=null?c:h,g=[...u,v];if(r!=null&&r(l,g))return t(l,u);d[v]=a(p,g)}return d}return t(l,u)}return a(e)}var E6=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function P6(e){return C6(e,E6)}function T6(e){return e.semanticTokens}function A6(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var R6=e=>tA.includes(e)||e==="default";function I6({tokens:e,semanticTokens:t}){const n={};return _C(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),_C(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(R6)}),n}function M6(e){var t;const n=A6(e),r=P6(n),i=T6(n),a=I6({tokens:r,semanticTokens:i}),l=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=w6(a,{cssVarPrefix:l});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:S6(n.breakpoints)}),n}var Ob=Pr({},ph,Ue,qj,ap,wr,Yj,i6,Xj,QT,r6,Gu,Dy,pt,u6,l6,o6,a6,Qj,s6),$6=Object.assign({},pt,wr,ap,QT,Gu),F6=Object.keys($6),O6=[...Object.keys(Ob),...tA],D6={...Ob,...lm},N6=e=>e in D6,L6=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,a={};for(const l in e){let u=Oo(e[l],t);if(u==null)continue;if(u=Rr(u)&&n(u)?r(u):u,!Array.isArray(u)){a[l]=u;continue}const c=u.slice(0,i.length).length;for(let d=0;de.startsWith("--")&&typeof t=="string"&&!B6(t),V6=(e,t)=>{var n,r;if(t==null)return t;const i=c=>{var d,h;return(h=(d=e.__cssMap)==null?void 0:d[c])==null?void 0:h.varRef},a=c=>{var d;return(d=i(c))!=null?d:c},[l,u]=z6(t);return t=(r=(n=i(l))!=null?n:a(u))!=null?r:a(t),t};function W6(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(a,l=!1)=>{var u,c,d;const h=Oo(a,r),p=L6(h)(r);let v={};for(let g in p){const w=p[g];let S=Oo(w,r);g in n&&(g=n[g]),j6(g,S)&&(S=V6(r,S));let k=t[g];if(k===!0&&(k={property:g}),Rr(S)){v[g]=(u=v[g])!=null?u:{},v[g]=Pr({},v[g],i(S,!0));continue}let b=(d=(c=k==null?void 0:k.transform)==null?void 0:c.call(k,S,r,h))!=null?d:S;b=k!=null&&k.processResult?i(b,!0):b;const x=Oo(k==null?void 0:k.property,r);if(!l&&(k!=null&&k.static)){const C=Oo(k.static,r);v=Pr({},v,C)}if(x&&Array.isArray(x)){for(const C of x)v[C]=b;continue}if(x){x==="&"&&Rr(b)?v=Pr({},v,b):v[x]=b;continue}if(Rr(b)){v=Pr({},v,b);continue}v[g]=b}return v};return i}var nA=e=>t=>W6({theme:t,pseudos:lm,configs:Ob})(e);function ct(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function U6(e,t){if(Array.isArray(e))return e;if(Rr(e))return t(e);if(e!=null)return[e]}function H6(e,t){for(let n=t+1;n{Pr(d,{[C]:v?x[C]:{[b]:x[C]}})});continue}if(!g){v?Pr(d,x):d[b]=x;continue}d[b]=x}}return d}}function K6(e){return t=>{var n;const{variant:r,size:i,theme:a}=t,l=G6(a);return Pr({},Oo((n=e.baseStyle)!=null?n:{},t),l(e,"sizes",i,t),l(e,"variants",r,t))}}function gn(e){return _6(e,["styleConfig","size","variant","colorScheme"])}var q6=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Y6(e){return Rr(e)?q6.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var X6={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"},Q6={"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)"},Z6={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},J6={property:X6,easing:Q6,duration:Z6},eV=J6,tV={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},nV=tV,rV={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},iV=rV,oV={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},aV=oV,sV={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"}},lV=sV,uV={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},cV=uV,fV={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"},dV=fV,hV={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},pV=hV,mV={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"}},rA=mV,iA={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"},vV={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"},gV={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},yV={...iA,...vV,container:gV},oA=yV,bV={breakpoints:aV,zIndices:nV,radii:cV,blur:pV,colors:lV,...rA,sizes:oA,shadows:dV,space:iA,borders:iV,transition:eV},{defineMultiStyleConfig:xV,definePartsStyle:Ru}=ct(["stepper","step","title","description","indicator","separator","icon","number"]),Ni=ue("stepper-indicator-size"),js=ue("stepper-icon-size"),Vs=ue("stepper-title-font-size"),Iu=ue("stepper-description-font-size"),bu=ue("stepper-accent-color"),SV=Ru(({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"},[bu.variable]:`colors.${e}.500`,_dark:{[bu.variable]:`colors.${e}.200`}},title:{fontSize:Vs.reference,fontWeight:"medium"},description:{fontSize:Iu.reference,color:"chakra-subtle-text"},number:{fontSize:Vs.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:js.reference,height:js.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ni.reference,height:Ni.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:bu.reference},"&[data-status=complete]":{bg:bu.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:bu.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ni.reference} - 8px)`,top:`calc(${Ni.reference} + 4px)`,insetStart:`calc(${Ni.reference} / 2 - 1px)`}}})),wV=xV({baseStyle:SV,sizes:{xs:Ru({stepper:{[Ni.variable]:"sizes.4",[js.variable]:"sizes.3",[Vs.variable]:"fontSizes.xs",[Iu.variable]:"fontSizes.xs"}}),sm:Ru({stepper:{[Ni.variable]:"sizes.6",[js.variable]:"sizes.4",[Vs.variable]:"fontSizes.sm",[Iu.variable]:"fontSizes.xs"}}),md:Ru({stepper:{[Ni.variable]:"sizes.8",[js.variable]:"sizes.5",[Vs.variable]:"fontSizes.md",[Iu.variable]:"fontSizes.sm"}}),lg:Ru({stepper:{[Ni.variable]:"sizes.10",[js.variable]:"sizes.6",[Vs.variable]:"fontSizes.lg",[Iu.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ye(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...h){r();for(const p of h)t[p]=c(p);return Ye(e,t)}function a(...h){for(const p of h)p in t||(t[p]=c(p));return Ye(e,t)}function l(){return Object.fromEntries(Object.entries(t).map(([p,v])=>[p,v.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([p,v])=>[p,v.className]))}function c(h){const g=`chakra-${(["container","root"].includes(h??"")?[e]:[e,h]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>h}}return{parts:i,toPart:c,extend:a,selectors:l,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var _V=Ye("accordion").parts("root","container","button","panel").extend("icon"),CV=Ye("alert").parts("title","description","container").extend("icon","spinner"),kV=Ye("avatar").parts("label","badge","container").extend("excessLabel","group"),EV=Ye("breadcrumb").parts("link","item","container").extend("separator");Ye("button").parts();var PV=Ye("checkbox").parts("control","icon","container").extend("label");Ye("progress").parts("track","filledTrack").extend("label");var TV=Ye("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),AV=Ye("editable").parts("preview","input","textarea"),RV=Ye("form").parts("container","requiredIndicator","helperText"),IV=Ye("formError").parts("text","icon"),MV=Ye("input").parts("addon","field","element","group"),$V=Ye("list").parts("container","item","icon"),FV=Ye("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),OV=Ye("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),DV=Ye("numberinput").parts("root","field","stepperGroup","stepper");Ye("pininput").parts("field");var NV=Ye("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),LV=Ye("progress").parts("label","filledTrack","track"),zV=Ye("radio").parts("container","control","label"),BV=Ye("select").parts("field","icon"),jV=Ye("slider").parts("container","track","thumb","filledTrack","mark"),VV=Ye("stat").parts("container","label","helpText","number","icon"),WV=Ye("switch").parts("container","track","thumb","label"),UV=Ye("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),HV=Ye("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),GV=Ye("tag").parts("container","label","closeButton"),KV=Ye("card").parts("container","header","body","footer");Ye("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Aa(e,t,n){return Math.min(Math.max(e,n),t)}class qV extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Mu=qV;function Db(e){if(typeof e!="string")throw new Mu(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=n8.test(e)?QV(e):e;const n=ZV.exec(t);if(n){const l=Array.from(n).slice(1);return[...l.slice(0,3).map(u=>parseInt(Rc(u,2),16)),parseInt(Rc(l[3]||"f",2),16)/255]}const r=JV.exec(t);if(r){const l=Array.from(r).slice(1);return[...l.slice(0,3).map(u=>parseInt(u,16)),parseInt(l[3]||"ff",16)/255]}const i=e8.exec(t);if(i){const l=Array.from(i).slice(1);return[...l.slice(0,3).map(u=>parseInt(u,10)),parseFloat(l[3]||"1")]}const a=t8.exec(t);if(a){const[l,u,c,d]=Array.from(a).slice(1).map(parseFloat);if(Aa(0,100,u)!==u)throw new Mu(e);if(Aa(0,100,c)!==c)throw new Mu(e);return[...r8(l,u,c),Number.isNaN(d)?1:d]}throw new Mu(e)}function YV(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const CC=e=>parseInt(e.replace(/_/g,""),36),XV="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=CC(t.substring(0,3)),r=CC(t.substring(3)).toString(16);let i="";for(let a=0;a<6-r.length;a++)i+="0";return e[n]=`${i}${r}`,e},{});function QV(e){const t=e.toLowerCase().trim(),n=XV[YV(t)];if(!n)throw new Mu(e);return`#${n}`}const Rc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),ZV=new RegExp(`^#${Rc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),JV=new RegExp(`^#${Rc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),e8=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Rc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),t8=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,n8=/^[a-z]+$/i,kC=e=>Math.round(e*255),r8=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(kC);const i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),l=a*(1-Math.abs(i%2-1));let u=0,c=0,d=0;i>=0&&i<1?(u=a,c=l):i>=1&&i<2?(u=l,c=a):i>=2&&i<3?(c=a,d=l):i>=3&&i<4?(c=l,d=a):i>=4&&i<5?(u=l,d=a):i>=5&&i<6&&(u=a,d=l);const h=r-a/2,p=u+h,v=c+h,g=d+h;return[p,v,g].map(kC)};function i8(e,t,n,r){return`rgba(${Aa(0,255,e).toFixed()}, ${Aa(0,255,t).toFixed()}, ${Aa(0,255,n).toFixed()}, ${parseFloat(Aa(0,1,r).toFixed(3))})`}function o8(e,t){const[n,r,i,a]=Db(e);return i8(n,r,i,a-t)}function a8(e){const[t,n,r,i]=Db(e);let a=l=>{const u=Aa(0,255,l).toString(16);return u.length===1?`0${u}`:u};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):""}`}function s8(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Pn=(e,t,n)=>{const r=s8(e,`colors.${t}`,t);try{return a8(r),r}catch{return n??"#000000"}},u8=e=>{const[t,n,r]=Db(e);return(t*299+n*587+r*114)/1e3},c8=e=>t=>{const n=Pn(t,e);return u8(n)<128?"dark":"light"},f8=e=>t=>c8(e)(t)==="dark",_l=(e,t)=>n=>{const r=Pn(n,e);return o8(r,1-t)};function EC(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 d8=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function h8(e){const t=d8();return!e||l8(e)?t:e.string&&e.colors?m8(e.string,e.colors):e.string&&!e.colors?p8(e.string):e.colors&&!e.string?v8(e.colors):t}function p8(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function m8(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Nb(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function aA(e){return Rr(e)&&e.reference?e.reference:String(e)}var um=(e,...t)=>t.map(aA).join(` ${e} `).replace(/calc/g,""),PC=(...e)=>`calc(${um("+",...e)})`,TC=(...e)=>`calc(${um("-",...e)})`,zy=(...e)=>`calc(${um("*",...e)})`,AC=(...e)=>`calc(${um("/",...e)})`,RC=e=>{const t=aA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:zy(t,-1)},Li=Object.assign(e=>({add:(...t)=>Li(PC(e,...t)),subtract:(...t)=>Li(TC(e,...t)),multiply:(...t)=>Li(zy(e,...t)),divide:(...t)=>Li(AC(e,...t)),negate:()=>Li(RC(e)),toString:()=>e.toString()}),{add:PC,subtract:TC,multiply:zy,divide:AC,negate:RC});function g8(e){return!Number.isInteger(parseFloat(e.toString()))}function y8(e,t="-"){return e.replace(/\s+/g,t)}function sA(e){const t=y8(e.toString());return t.includes("\\.")?e:g8(e)?t.replace(".","\\."):e}function b8(e,t=""){return[t,sA(e)].filter(Boolean).join("-")}function x8(e,t){return`var(${sA(e)}${t?`, ${t}`:""})`}function S8(e,t=""){return`--${b8(e,t)}`}function Ht(e,t){const n=S8(e,t==null?void 0:t.prefix);return{variable:n,reference:x8(n,w8(t==null?void 0:t.fallback))}}function w8(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:_8,definePartsStyle:mh}=ct(WV.keys),Ku=Ht("switch-track-width"),$a=Ht("switch-track-height"),Wg=Ht("switch-track-diff"),C8=Li.subtract(Ku,$a),By=Ht("switch-thumb-x"),xu=Ht("switch-bg"),k8=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ku.reference],height:[$a.reference],transitionProperty:"common",transitionDuration:"fast",[xu.variable]:"colors.gray.300",_dark:{[xu.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[xu.variable]:`colors.${t}.500`,_dark:{[xu.variable]:`colors.${t}.200`}},bg:xu.reference}},E8={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$a.reference],height:[$a.reference],_checked:{transform:`translateX(${By.reference})`}},P8=mh(e=>({container:{[Wg.variable]:C8,[By.variable]:Wg.reference,_rtl:{[By.variable]:Li(Wg).negate().toString()}},track:k8(e),thumb:E8})),T8={sm:mh({container:{[Ku.variable]:"1.375rem",[$a.variable]:"sizes.3"}}),md:mh({container:{[Ku.variable]:"1.875rem",[$a.variable]:"sizes.4"}}),lg:mh({container:{[Ku.variable]:"2.875rem",[$a.variable]:"sizes.6"}})},A8=_8({baseStyle:P8,sizes:T8,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:R8,definePartsStyle:sl}=ct(UV.keys),I8=sl({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"}}),sp={"&[data-is-numeric=true]":{textAlign:"end"}},M8=sl(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...sp},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...sp},caption:{color:le("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),$8=sl(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...sp},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...sp},caption:{color:le("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e)},td:{background:le(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),F8={simple:M8,striped:$8,unstyled:{}},O8={sm:sl({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:sl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:sl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},D8=R8({baseStyle:I8,variants:F8,sizes:O8,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ln=ue("tabs-color"),Yr=ue("tabs-bg"),zd=ue("tabs-border-color"),{defineMultiStyleConfig:N8,definePartsStyle:mi}=ct(HV.keys),L8=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},z8=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}}},B8=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},j8={p:4},V8=mi(e=>({root:L8(e),tab:z8(e),tablist:B8(e),tabpanel:j8})),W8={sm:mi({tab:{py:1,px:4,fontSize:"sm"}}),md:mi({tab:{fontSize:"md",py:2,px:4}}),lg:mi({tab:{fontSize:"lg",py:3,px:4}})},U8=mi(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Ln.variable]:`colors.${t}.600`,_dark:{[Ln.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Yr.variable]:"colors.gray.200",_dark:{[Yr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ln.reference,bg:Yr.reference}}}),H8=mi(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[zd.variable]:"transparent",_selected:{[Ln.variable]:`colors.${t}.600`,[zd.variable]:"colors.white",_dark:{[Ln.variable]:`colors.${t}.300`,[zd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:zd.reference},color:Ln.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),G8=mi(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Yr.variable]:"colors.gray.50",_dark:{[Yr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Yr.variable]:"colors.white",[Ln.variable]:`colors.${t}.600`,_dark:{[Yr.variable]:"colors.gray.800",[Ln.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ln.reference,bg:Yr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),K8=mi(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Pn(n,`${t}.700`),bg:Pn(n,`${t}.100`)}}}}),q8=mi(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ln.variable]:"colors.gray.600",_dark:{[Ln.variable]:"inherit"},_selected:{[Ln.variable]:"colors.white",[Yr.variable]:`colors.${t}.600`,_dark:{[Ln.variable]:"colors.gray.800",[Yr.variable]:`colors.${t}.300`}},color:Ln.reference,bg:Yr.reference}}}),Y8=mi({}),X8={line:U8,enclosed:H8,"enclosed-colored":G8,"soft-rounded":K8,"solid-rounded":q8,unstyled:Y8},Q8=N8({baseStyle:V8,sizes:W8,variants:X8,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),$t=g6("badge",["bg","color","shadow"]),Z8={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:$t.bg.reference,color:$t.color.reference,boxShadow:$t.shadow.reference},J8=e=>{const{colorScheme:t,theme:n}=e,r=_l(`${t}.500`,.6)(n);return{[$t.bg.variable]:`colors.${t}.500`,[$t.color.variable]:"colors.white",_dark:{[$t.bg.variable]:r,[$t.color.variable]:"colors.whiteAlpha.800"}}},e9=e=>{const{colorScheme:t,theme:n}=e,r=_l(`${t}.200`,.16)(n);return{[$t.bg.variable]:`colors.${t}.100`,[$t.color.variable]:`colors.${t}.800`,_dark:{[$t.bg.variable]:r,[$t.color.variable]:`colors.${t}.200`}}},t9=e=>{const{colorScheme:t,theme:n}=e,r=_l(`${t}.200`,.8)(n);return{[$t.color.variable]:`colors.${t}.500`,_dark:{[$t.color.variable]:r},[$t.shadow.variable]:`inset 0 0 0px 1px ${$t.color.reference}`}},n9={solid:J8,subtle:e9,outline:t9},qu={baseStyle:Z8,variants:n9,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:r9,definePartsStyle:Fa}=ct(GV.keys),IC=ue("tag-bg"),MC=ue("tag-color"),Ug=ue("tag-shadow"),vh=ue("tag-min-height"),gh=ue("tag-min-width"),yh=ue("tag-font-size"),bh=ue("tag-padding-inline"),i9={fontWeight:"medium",lineHeight:1.2,outline:0,[MC.variable]:$t.color.reference,[IC.variable]:$t.bg.reference,[Ug.variable]:$t.shadow.reference,color:MC.reference,bg:IC.reference,boxShadow:Ug.reference,borderRadius:"md",minH:vh.reference,minW:gh.reference,fontSize:yh.reference,px:bh.reference,_focusVisible:{[Ug.variable]:"shadows.outline"}},o9={lineHeight:1.2,overflow:"visible"},a9={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}},s9=Fa({container:i9,label:o9,closeButton:a9}),l9={sm:Fa({container:{[vh.variable]:"sizes.5",[gh.variable]:"sizes.5",[yh.variable]:"fontSizes.xs",[bh.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Fa({container:{[vh.variable]:"sizes.6",[gh.variable]:"sizes.6",[yh.variable]:"fontSizes.sm",[bh.variable]:"space.2"}}),lg:Fa({container:{[vh.variable]:"sizes.8",[gh.variable]:"sizes.8",[yh.variable]:"fontSizes.md",[bh.variable]:"space.3"}})},u9={subtle:Fa(e=>{var t;return{container:(t=qu.variants)==null?void 0:t.subtle(e)}}),solid:Fa(e=>{var t;return{container:(t=qu.variants)==null?void 0:t.solid(e)}}),outline:Fa(e=>{var t;return{container:(t=qu.variants)==null?void 0:t.outline(e)}})},c9=r9({variants:u9,baseStyle:s9,sizes:l9,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ji,defineMultiStyleConfig:f9}=ct(MV.keys),Ws=ue("input-height"),Us=ue("input-font-size"),Hs=ue("input-padding"),Gs=ue("input-border-radius"),d9=ji({addon:{height:Ws.reference,fontSize:Us.reference,px:Hs.reference,borderRadius:Gs.reference},field:{width:"100%",height:Ws.reference,fontSize:Us.reference,px:Hs.reference,borderRadius:Gs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),wo={lg:{[Us.variable]:"fontSizes.lg",[Hs.variable]:"space.4",[Gs.variable]:"radii.md",[Ws.variable]:"sizes.12"},md:{[Us.variable]:"fontSizes.md",[Hs.variable]:"space.4",[Gs.variable]:"radii.md",[Ws.variable]:"sizes.10"},sm:{[Us.variable]:"fontSizes.sm",[Hs.variable]:"space.3",[Gs.variable]:"radii.sm",[Ws.variable]:"sizes.8"},xs:{[Us.variable]:"fontSizes.xs",[Hs.variable]:"space.2",[Gs.variable]:"radii.sm",[Ws.variable]:"sizes.6"}},h9={lg:ji({field:wo.lg,group:wo.lg}),md:ji({field:wo.md,group:wo.md}),sm:ji({field:wo.sm,group:wo.sm}),xs:ji({field:wo.xs,group:wo.xs})};function Lb(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||le("blue.500","blue.300")(e),errorBorderColor:n||le("red.500","red.300")(e)}}var p9=ji(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Lb(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:le("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pn(t,r),boxShadow:`0 0 0 1px ${Pn(t,r)}`},_focusVisible:{zIndex:1,borderColor:Pn(t,n),boxShadow:`0 0 0 1px ${Pn(t,n)}`}},addon:{border:"1px solid",borderColor:le("inherit","whiteAlpha.50")(e),bg:le("gray.100","whiteAlpha.300")(e)}}}),m9=ji(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Lb(e);return{field:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e),_hover:{bg:le("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pn(t,r)},_focusVisible:{bg:"transparent",borderColor:Pn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e)}}}),v9=ji(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Lb(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pn(t,r),boxShadow:`0px 1px 0px 0px ${Pn(t,r)}`},_focusVisible:{borderColor:Pn(t,n),boxShadow:`0px 1px 0px 0px ${Pn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),g9=ji({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),y9={outline:p9,filled:m9,flushed:v9,unstyled:g9},qe=f9({baseStyle:d9,sizes:h9,variants:y9,defaultProps:{size:"md",variant:"outline"}}),$C,b9={...($C=qe.baseStyle)==null?void 0:$C.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},FC,OC,x9={outline:e=>{var t,n;return(n=(t=qe.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=qe.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=qe.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(OC=(FC=qe.variants)==null?void 0:FC.unstyled.field)!=null?OC:{}},DC,NC,LC,zC,BC,jC,VC,WC,S9={xs:(NC=(DC=qe.sizes)==null?void 0:DC.xs.field)!=null?NC:{},sm:(zC=(LC=qe.sizes)==null?void 0:LC.sm.field)!=null?zC:{},md:(jC=(BC=qe.sizes)==null?void 0:BC.md.field)!=null?jC:{},lg:(WC=(VC=qe.sizes)==null?void 0:VC.lg.field)!=null?WC:{}},w9={baseStyle:b9,sizes:S9,variants:x9,defaultProps:{size:"md",variant:"outline"}},Bd=Ht("tooltip-bg"),Hg=Ht("tooltip-fg"),_9=Ht("popper-arrow-bg"),C9={bg:Bd.reference,color:Hg.reference,[Bd.variable]:"colors.gray.700",[Hg.variable]:"colors.whiteAlpha.900",_dark:{[Bd.variable]:"colors.gray.300",[Hg.variable]:"colors.gray.900"},[_9.variable]:Bd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},k9={baseStyle:C9},{defineMultiStyleConfig:E9,definePartsStyle:$u}=ct(LV.keys),P9=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,a=le(EC(),EC("1rem","rgba(0,0,0,0.1)"))(e),l=le(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( - to right, - transparent 0%, - ${Pn(n,l)} 50%, - transparent 100% - )`;return{...!r&&i&&a,...r?{bgImage:u}:{bgColor:l}}},T9={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},A9=e=>({bg:le("gray.100","whiteAlpha.300")(e)}),R9=e=>({transitionProperty:"common",transitionDuration:"slow",...P9(e)}),I9=$u(e=>({label:T9,filledTrack:R9(e),track:A9(e)})),M9={xs:$u({track:{h:"1"}}),sm:$u({track:{h:"2"}}),md:$u({track:{h:"3"}}),lg:$u({track:{h:"4"}})},$9=E9({sizes:M9,baseStyle:I9,defaultProps:{size:"md",colorScheme:"blue"}}),F9=e=>typeof e=="function";function An(e,...t){return F9(e)?e(...t):e}var{definePartsStyle:xh,defineMultiStyleConfig:O9}=ct(PV.keys),Yu=ue("checkbox-size"),D9=e=>{const{colorScheme:t}=e;return{w:Yu.reference,h:Yu.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e),_hover:{bg:le(`${t}.600`,`${t}.300`)(e),borderColor:le(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:le("gray.200","transparent")(e),bg:le("gray.200","whiteAlpha.300")(e),color:le("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e)},_disabled:{bg:le("gray.100","whiteAlpha.100")(e),borderColor:le("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:le("red.500","red.300")(e)}}},N9={_disabled:{cursor:"not-allowed"}},L9={userSelect:"none",_disabled:{opacity:.4}},z9={transitionProperty:"transform",transitionDuration:"normal"},B9=xh(e=>({icon:z9,container:N9,control:An(D9,e),label:L9})),j9={sm:xh({control:{[Yu.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:xh({control:{[Yu.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:xh({control:{[Yu.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},lp=O9({baseStyle:B9,sizes:j9,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:V9,definePartsStyle:Sh}=ct(zV.keys),W9=e=>{var t;const n=(t=An(lp.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},U9=Sh(e=>{var t,n,r,i;return{label:(n=(t=lp).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=lp).baseStyle)==null?void 0:i.call(r,e).container,control:W9(e)}}),H9={md:Sh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Sh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Sh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},G9=V9({baseStyle:U9,sizes:H9,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:K9,definePartsStyle:q9}=ct(BV.keys),jd=ue("select-bg"),UC,Y9={...(UC=qe.baseStyle)==null?void 0:UC.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:jd.reference,[jd.variable]:"colors.white",_dark:{[jd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:jd.reference}},X9={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Q9=q9({field:Y9,icon:X9}),Vd={paddingInlineEnd:"8"},HC,GC,KC,qC,YC,XC,QC,ZC,Z9={lg:{...(HC=qe.sizes)==null?void 0:HC.lg,field:{...(GC=qe.sizes)==null?void 0:GC.lg.field,...Vd}},md:{...(KC=qe.sizes)==null?void 0:KC.md,field:{...(qC=qe.sizes)==null?void 0:qC.md.field,...Vd}},sm:{...(YC=qe.sizes)==null?void 0:YC.sm,field:{...(XC=qe.sizes)==null?void 0:XC.sm.field,...Vd}},xs:{...(QC=qe.sizes)==null?void 0:QC.xs,field:{...(ZC=qe.sizes)==null?void 0:ZC.xs.field,...Vd},icon:{insetEnd:"1"}}},J9=K9({baseStyle:Q9,sizes:Z9,variants:qe.variants,defaultProps:qe.defaultProps}),Gg=ue("skeleton-start-color"),Kg=ue("skeleton-end-color"),eW={[Gg.variable]:"colors.gray.100",[Kg.variable]:"colors.gray.400",_dark:{[Gg.variable]:"colors.gray.800",[Kg.variable]:"colors.gray.600"},background:Gg.reference,borderColor:Kg.reference,opacity:.7,borderRadius:"sm"},tW={baseStyle:eW},qg=ue("skip-link-bg"),nW={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[qg.variable]:"colors.white",_dark:{[qg.variable]:"colors.gray.700"},bg:qg.reference}},rW={baseStyle:nW},{defineMultiStyleConfig:iW,definePartsStyle:cm}=ct(jV.keys),Ic=ue("slider-thumb-size"),Mc=ue("slider-track-size"),Mo=ue("slider-bg"),oW=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Nb({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},aW=e=>({...Nb({orientation:e.orientation,horizontal:{h:Mc.reference},vertical:{w:Mc.reference}}),overflow:"hidden",borderRadius:"sm",[Mo.variable]:"colors.gray.200",_dark:{[Mo.variable]:"colors.whiteAlpha.200"},_disabled:{[Mo.variable]:"colors.gray.300",_dark:{[Mo.variable]:"colors.whiteAlpha.300"}},bg:Mo.reference}),sW=e=>{const{orientation:t}=e;return{...Nb({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:Ic.reference,h:Ic.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"}}},lW=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Mo.variable]:`colors.${t}.500`,_dark:{[Mo.variable]:`colors.${t}.200`},bg:Mo.reference}},uW=cm(e=>({container:oW(e),track:aW(e),thumb:sW(e),filledTrack:lW(e)})),cW=cm({container:{[Ic.variable]:"sizes.4",[Mc.variable]:"sizes.1"}}),fW=cm({container:{[Ic.variable]:"sizes.3.5",[Mc.variable]:"sizes.1"}}),dW=cm({container:{[Ic.variable]:"sizes.2.5",[Mc.variable]:"sizes.0.5"}}),hW={lg:cW,md:fW,sm:dW},pW=iW({baseStyle:uW,sizes:hW,defaultProps:{size:"md",colorScheme:"blue"}}),ka=Ht("spinner-size"),mW={width:[ka.reference],height:[ka.reference]},vW={xs:{[ka.variable]:"sizes.3"},sm:{[ka.variable]:"sizes.4"},md:{[ka.variable]:"sizes.6"},lg:{[ka.variable]:"sizes.8"},xl:{[ka.variable]:"sizes.12"}},gW={baseStyle:mW,sizes:vW,defaultProps:{size:"md"}},{defineMultiStyleConfig:yW,definePartsStyle:lA}=ct(VV.keys),bW={fontWeight:"medium"},xW={opacity:.8,marginBottom:"2"},SW={verticalAlign:"baseline",fontWeight:"semibold"},wW={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},_W=lA({container:{},label:bW,helpText:xW,number:SW,icon:wW}),CW={md:lA({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},kW=yW({baseStyle:_W,sizes:CW,defaultProps:{size:"md"}}),Yg=ue("kbd-bg"),EW={[Yg.variable]:"colors.gray.100",_dark:{[Yg.variable]:"colors.whiteAlpha.100"},bg:Yg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},PW={baseStyle:EW},TW={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},AW={baseStyle:TW},{defineMultiStyleConfig:RW,definePartsStyle:IW}=ct($V.keys),MW={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},$W=IW({icon:MW}),FW=RW({baseStyle:$W}),{defineMultiStyleConfig:OW,definePartsStyle:DW}=ct(FV.keys),si=ue("menu-bg"),Xg=ue("menu-shadow"),NW={[si.variable]:"#fff",[Xg.variable]:"shadows.sm",_dark:{[si.variable]:"colors.gray.700",[Xg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:si.reference,boxShadow:Xg.reference},LW={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[si.variable]:"colors.gray.100",_dark:{[si.variable]:"colors.whiteAlpha.100"}},_active:{[si.variable]:"colors.gray.200",_dark:{[si.variable]:"colors.whiteAlpha.200"}},_expanded:{[si.variable]:"colors.gray.100",_dark:{[si.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:si.reference},zW={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},BW={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},jW={opacity:.6},VW={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},WW={transitionProperty:"common",transitionDuration:"normal"},UW=DW({button:WW,list:NW,item:LW,groupTitle:zW,icon:BW,command:jW,divider:VW}),HW=OW({baseStyle:UW}),{defineMultiStyleConfig:GW,definePartsStyle:jy}=ct(OV.keys),Qg=ue("modal-bg"),Zg=ue("modal-shadow"),KW={bg:"blackAlpha.600",zIndex:"modal"},qW=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},YW=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Qg.variable]:"colors.white",[Zg.variable]:"shadows.lg",_dark:{[Qg.variable]:"colors.gray.700",[Zg.variable]:"shadows.dark-lg"},bg:Qg.reference,boxShadow:Zg.reference}},XW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},QW={position:"absolute",top:"2",insetEnd:"3"},ZW=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},JW={px:"6",py:"4"},e7=jy(e=>({overlay:KW,dialogContainer:An(qW,e),dialog:An(YW,e),header:XW,closeButton:QW,body:An(ZW,e),footer:JW}));function Ur(e){return jy(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var t7={xs:Ur("xs"),sm:Ur("sm"),md:Ur("md"),lg:Ur("lg"),xl:Ur("xl"),"2xl":Ur("2xl"),"3xl":Ur("3xl"),"4xl":Ur("4xl"),"5xl":Ur("5xl"),"6xl":Ur("6xl"),full:Ur("full")},n7=GW({baseStyle:e7,sizes:t7,defaultProps:{size:"md"}}),{defineMultiStyleConfig:r7,definePartsStyle:uA}=ct(DV.keys),zb=Ht("number-input-stepper-width"),cA=Ht("number-input-input-padding"),i7=Li(zb).add("0.5rem").toString(),Jg=Ht("number-input-bg"),e0=Ht("number-input-color"),t0=Ht("number-input-border-color"),o7={[zb.variable]:"sizes.6",[cA.variable]:i7},a7=e=>{var t,n;return(n=(t=An(qe.baseStyle,e))==null?void 0:t.field)!=null?n:{}},s7={width:zb.reference},l7={borderStart:"1px solid",borderStartColor:t0.reference,color:e0.reference,bg:Jg.reference,[e0.variable]:"colors.chakra-body-text",[t0.variable]:"colors.chakra-border-color",_dark:{[e0.variable]:"colors.whiteAlpha.800",[t0.variable]:"colors.whiteAlpha.300"},_active:{[Jg.variable]:"colors.gray.200",_dark:{[Jg.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},u7=uA(e=>{var t;return{root:o7,field:(t=An(a7,e))!=null?t:{},stepperGroup:s7,stepper:l7}});function Wd(e){var t,n,r;const i=(t=qe.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},l=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",u=rA.fontSizes[l];return uA({field:{...i.field,paddingInlineEnd:cA.reference,verticalAlign:"top"},stepper:{fontSize:Li(u).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var c7={xs:Wd("xs"),sm:Wd("sm"),md:Wd("md"),lg:Wd("lg")},f7=r7({baseStyle:u7,sizes:c7,variants:qe.variants,defaultProps:qe.defaultProps}),JC,d7={...(JC=qe.baseStyle)==null?void 0:JC.field,textAlign:"center"},h7={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"}},ek,tk,p7={outline:e=>{var t,n,r;return(r=(n=An((t=qe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=An((t=qe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=An((t=qe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(tk=(ek=qe.variants)==null?void 0:ek.unstyled.field)!=null?tk:{}},m7={baseStyle:d7,sizes:h7,variants:p7,defaultProps:qe.defaultProps},{defineMultiStyleConfig:v7,definePartsStyle:g7}=ct(NV.keys),Ud=Ht("popper-bg"),y7=Ht("popper-arrow-bg"),nk=Ht("popper-arrow-shadow-color"),b7={zIndex:10},x7={[Ud.variable]:"colors.white",bg:Ud.reference,[y7.variable]:Ud.reference,[nk.variable]:"colors.gray.200",_dark:{[Ud.variable]:"colors.gray.700",[nk.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},S7={px:3,py:2,borderBottomWidth:"1px"},w7={px:3,py:2},_7={px:3,py:2,borderTopWidth:"1px"},C7={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},k7=g7({popper:b7,content:x7,header:S7,body:w7,footer:_7,closeButton:C7}),E7=v7({baseStyle:k7}),{definePartsStyle:Vy,defineMultiStyleConfig:P7}=ct(TV.keys),n0=ue("drawer-bg"),r0=ue("drawer-box-shadow");function Cs(e){return Vy(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var T7={bg:"blackAlpha.600",zIndex:"modal"},A7={display:"flex",zIndex:"modal",justifyContent:"center"},R7=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[n0.variable]:"colors.white",[r0.variable]:"shadows.lg",_dark:{[n0.variable]:"colors.gray.700",[r0.variable]:"shadows.dark-lg"},bg:n0.reference,boxShadow:r0.reference}},I7={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},M7={position:"absolute",top:"2",insetEnd:"3"},$7={px:"6",py:"2",flex:"1",overflow:"auto"},F7={px:"6",py:"4"},O7=Vy(e=>({overlay:T7,dialogContainer:A7,dialog:An(R7,e),header:I7,closeButton:M7,body:$7,footer:F7})),D7={xs:Cs("xs"),sm:Cs("md"),md:Cs("lg"),lg:Cs("2xl"),xl:Cs("4xl"),full:Cs("full")},N7=P7({baseStyle:O7,sizes:D7,defaultProps:{size:"xs"}}),{definePartsStyle:L7,defineMultiStyleConfig:z7}=ct(AV.keys),B7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},j7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},V7={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},W7=L7({preview:B7,input:j7,textarea:V7}),U7=z7({baseStyle:W7}),{definePartsStyle:H7,defineMultiStyleConfig:G7}=ct(RV.keys),ll=ue("form-control-color"),K7={marginStart:"1",[ll.variable]:"colors.red.500",_dark:{[ll.variable]:"colors.red.300"},color:ll.reference},q7={mt:"2",[ll.variable]:"colors.gray.600",_dark:{[ll.variable]:"colors.whiteAlpha.600"},color:ll.reference,lineHeight:"normal",fontSize:"sm"},Y7=H7({container:{width:"100%",position:"relative"},requiredIndicator:K7,helperText:q7}),X7=G7({baseStyle:Y7}),{definePartsStyle:Q7,defineMultiStyleConfig:Z7}=ct(IV.keys),ul=ue("form-error-color"),J7={[ul.variable]:"colors.red.500",_dark:{[ul.variable]:"colors.red.300"},color:ul.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},eU={marginEnd:"0.5em",[ul.variable]:"colors.red.500",_dark:{[ul.variable]:"colors.red.300"},color:ul.reference},tU=Q7({text:J7,icon:eU}),nU=Z7({baseStyle:tU}),rU={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},iU={baseStyle:rU},oU={fontFamily:"heading",fontWeight:"bold"},aU={"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}},sU={baseStyle:oU,sizes:aU,defaultProps:{size:"xl"}},{defineMultiStyleConfig:lU,definePartsStyle:uU}=ct(EV.keys),i0=ue("breadcrumb-link-decor"),cU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:i0.reference,[i0.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[i0.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},fU=uU({link:cU}),dU=lU({baseStyle:fU}),hU={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"}}},fA=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.100","whiteAlpha.200")(e)},_active:{bg:le("gray.200","whiteAlpha.300")(e)}};const r=_l(`${t}.200`,.12)(n),i=_l(`${t}.200`,.24)(n);return{color:le(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:le(`${t}.50`,r)(e)},_active:{bg:le(`${t}.100`,i)(e)}}},pU=e=>{const{colorScheme:t}=e,n=le("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...An(fA,e)}},mU={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},vU=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const c=le("gray.100","whiteAlpha.200")(e);return{bg:c,color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:le("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:a=`${n}.600`,activeBg:l=`${n}.700`}=(t=mU[n])!=null?t:{},u=le(r,`${n}.200`)(e);return{bg:u,color:le(i,"gray.800")(e),_hover:{bg:le(a,`${n}.300`)(e),_disabled:{bg:u}},_active:{bg:le(l,`${n}.400`)(e)}}},gU=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:le(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:le(`${t}.700`,`${t}.500`)(e)}}},yU={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},bU={ghost:fA,outline:pU,solid:vU,link:gU,unstyled:yU},xU={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"}},SU={baseStyle:hU,variants:bU,sizes:xU,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Oa,defineMultiStyleConfig:wU}=ct(KV.keys),up=ue("card-bg"),Ui=ue("card-padding"),dA=ue("card-shadow"),wh=ue("card-radius"),hA=ue("card-border-width","0"),pA=ue("card-border-color"),_U=Oa({container:{[up.variable]:"colors.chakra-body-bg",backgroundColor:up.reference,boxShadow:dA.reference,borderRadius:wh.reference,color:"chakra-body-text",borderWidth:hA.reference,borderColor:pA.reference},body:{padding:Ui.reference,flex:"1 1 0%"},header:{padding:Ui.reference},footer:{padding:Ui.reference}}),CU={sm:Oa({container:{[wh.variable]:"radii.base",[Ui.variable]:"space.3"}}),md:Oa({container:{[wh.variable]:"radii.md",[Ui.variable]:"space.5"}}),lg:Oa({container:{[wh.variable]:"radii.xl",[Ui.variable]:"space.7"}})},kU={elevated:Oa({container:{[dA.variable]:"shadows.base",_dark:{[up.variable]:"colors.gray.700"}}}),outline:Oa({container:{[hA.variable]:"1px",[pA.variable]:"colors.chakra-border-color"}}),filled:Oa({container:{[up.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ui.variable]:0},header:{[Ui.variable]:0},footer:{[Ui.variable]:0}}},EU=wU({baseStyle:_U,variants:kU,sizes:CU,defaultProps:{variant:"elevated",size:"md"}}),Xu=Ht("close-button-size"),Su=Ht("close-button-bg"),PU={w:[Xu.reference],h:[Xu.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Su.variable]:"colors.blackAlpha.100",_dark:{[Su.variable]:"colors.whiteAlpha.100"}},_active:{[Su.variable]:"colors.blackAlpha.200",_dark:{[Su.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Su.reference},TU={lg:{[Xu.variable]:"sizes.10",fontSize:"md"},md:{[Xu.variable]:"sizes.8",fontSize:"xs"},sm:{[Xu.variable]:"sizes.6",fontSize:"2xs"}},AU={baseStyle:PU,sizes:TU,defaultProps:{size:"md"}},{variants:RU,defaultProps:IU}=qu,MU={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:$t.bg.reference,color:$t.color.reference,boxShadow:$t.shadow.reference},$U={baseStyle:MU,variants:RU,defaultProps:IU},FU={w:"100%",mx:"auto",maxW:"prose",px:"4"},OU={baseStyle:FU},DU={opacity:.6,borderColor:"inherit"},NU={borderStyle:"solid"},LU={borderStyle:"dashed"},zU={solid:NU,dashed:LU},BU={baseStyle:DU,variants:zU,defaultProps:{variant:"solid"}},{definePartsStyle:jU,defineMultiStyleConfig:VU}=ct(_V.keys),WU={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},UU={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},HU={pt:"2",px:"4",pb:"5"},GU={fontSize:"1.25em"},KU=jU({container:WU,button:UU,panel:HU,icon:GU}),qU=VU({baseStyle:KU}),{definePartsStyle:Jc,defineMultiStyleConfig:YU}=ct(CV.keys),rr=ue("alert-fg"),Ji=ue("alert-bg"),XU=Jc({container:{bg:Ji.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:rr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:rr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Bb(e){const{theme:t,colorScheme:n}=e,r=_l(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var QU=Jc(e=>{const{colorScheme:t}=e,n=Bb(e);return{container:{[rr.variable]:`colors.${t}.600`,[Ji.variable]:n.light,_dark:{[rr.variable]:`colors.${t}.200`,[Ji.variable]:n.dark}}}}),ZU=Jc(e=>{const{colorScheme:t}=e,n=Bb(e);return{container:{[rr.variable]:`colors.${t}.600`,[Ji.variable]:n.light,_dark:{[rr.variable]:`colors.${t}.200`,[Ji.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:rr.reference}}}),JU=Jc(e=>{const{colorScheme:t}=e,n=Bb(e);return{container:{[rr.variable]:`colors.${t}.600`,[Ji.variable]:n.light,_dark:{[rr.variable]:`colors.${t}.200`,[Ji.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:rr.reference}}}),eH=Jc(e=>{const{colorScheme:t}=e;return{container:{[rr.variable]:"colors.white",[Ji.variable]:`colors.${t}.600`,_dark:{[rr.variable]:"colors.gray.900",[Ji.variable]:`colors.${t}.200`},color:rr.reference}}}),tH={subtle:QU,"left-accent":ZU,"top-accent":JU,solid:eH},nH=YU({baseStyle:XU,variants:tH,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:mA,defineMultiStyleConfig:rH}=ct(kV.keys),cl=ue("avatar-border-color"),Qu=ue("avatar-bg"),$c=ue("avatar-font-size"),Cl=ue("avatar-size"),iH={borderRadius:"full",border:"0.2em solid",borderColor:cl.reference,[cl.variable]:"white",_dark:{[cl.variable]:"colors.gray.800"}},oH={bg:Qu.reference,fontSize:$c.reference,width:Cl.reference,height:Cl.reference,lineHeight:"1",[Qu.variable]:"colors.gray.200",_dark:{[Qu.variable]:"colors.whiteAlpha.400"}},aH=e=>{const{name:t,theme:n}=e,r=t?h8({string:t}):"colors.gray.400",i=f8(r)(n);let a="white";return i||(a="gray.800"),{bg:Qu.reference,fontSize:$c.reference,color:a,borderColor:cl.reference,verticalAlign:"top",width:Cl.reference,height:Cl.reference,"&:not([data-loaded])":{[Qu.variable]:r},[cl.variable]:"colors.white",_dark:{[cl.variable]:"colors.gray.800"}}},sH={fontSize:$c.reference,lineHeight:"1"},lH=mA(e=>({badge:An(iH,e),excessLabel:An(oH,e),container:An(aH,e),label:sH}));function _o(e){const t=e!=="100%"?oA[e]:void 0;return mA({container:{[Cl.variable]:t??e,[$c.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Cl.variable]:t??e,[$c.variable]:`calc(${t??e} / 2.5)`}})}var uH={"2xs":_o(4),xs:_o(6),sm:_o(8),md:_o(12),lg:_o(16),xl:_o(24),"2xl":_o(32),full:_o("100%")},cH=rH({baseStyle:lH,sizes:uH,defaultProps:{size:"md"}}),fH={Accordion:qU,Alert:nH,Avatar:cH,Badge:qu,Breadcrumb:dU,Button:SU,Checkbox:lp,CloseButton:AU,Code:$U,Container:OU,Divider:BU,Drawer:N7,Editable:U7,Form:X7,FormError:nU,FormLabel:iU,Heading:sU,Input:qe,Kbd:PW,Link:AW,List:FW,Menu:HW,Modal:n7,NumberInput:f7,PinInput:m7,Popover:E7,Progress:$9,Radio:G9,Select:J9,Skeleton:tW,SkipLink:rW,Slider:pW,Spinner:gW,Stat:kW,Switch:A8,Table:D8,Tabs:Q8,Tag:c9,Textarea:w9,Tooltip:k9,Card:EU,Stepper:wV},dH={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"}}},hH={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"}}},pH="ltr",mH={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},vA={semanticTokens:dH,direction:pH,...bV,components:fH,styles:hH,config:mH};function Fu(e){return typeof e=="function"}function vH(...e){return t=>e.reduce((n,r)=>r(n),t)}var gH=e=>function(...n){let r=[...n],i=n[n.length-1];return Y6(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,vH(...r.map(a=>l=>Fu(a)?a(l):bH(l,a)))(i)},yH=gH(vA);function bH(...e){return Pr({},...e,gA)}function gA(e,t,n,r){if((Fu(e)||Fu(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const a=Fu(e)?e(...i):e,l=Fu(t)?t(...i):t;return Pr({},a,l,gA)}}function xH(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function SH(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,a,l)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,a,l);return u.set(i,c),c}},yA=wH(SH);function bA(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var xA=e=>bA(e,t=>t!=null);function _H(e){return typeof e=="function"}function SA(e,...t){return _H(e)?e(...t):e}var CH=typeof Element<"u",kH=typeof Map=="function",EH=typeof Set=="function",PH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _h(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_h(e[r],t[r]))return!1;return!0}var a;if(kH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!_h(r.value[1],t.get(r.value[0])))return!1;return!0}if(EH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(PH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(CH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!_h(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var TH=function(t,n){try{return _h(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const AH=b1(TH);function wA(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:a,colorMode:l}=Pj(),u=e?yA(a,`components.${e}`):void 0,c=r||u,d=Pr({theme:a,colorMode:l},(n=c==null?void 0:c.defaultProps)!=null?n:{},xA(xH(i,["children"]))),h=_.useRef({});if(c){const v=K6(c)(d);AH(h.current,v)||(h.current=v)}return h.current}function no(e,t={}){return wA(e,t)}function ro(e,t={}){return wA(e,t)}var RH=new Set([...O6,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),IH=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function MH(e){return IH.has(e)||!RH.has(e)}function $H(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function FH(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var OH=/^((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)-.*))$/,DH=$T(function(e){return OH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),NH=DH,LH=function(t){return t!=="theme"},rk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?NH:LH},ik=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},zH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return zT(n,r,i),sj(function(){return BT(n,r,i)}),null},BH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var u=ik(t,n,r),c=u||rk(i),d=!c("as");return function(){var h=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)p.push.apply(p,h);else{p.push(h[0][0]);for(var v=h.length,g=1;gt=>{const{theme:n,css:r,__css:i,sx:a,...l}=t,u=bA(l,(p,v)=>N6(v)),c=SA(e,t),d=$H({},i,c,xA(u),a),h=nA(d)(t.theme);return r?[h,r]:h};function o0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=MH);const i=WH({baseStyle:n}),a=VH(e,r)(i);return Xo.forwardRef(function(c,d){const{colorMode:h,forced:p}=Mb();return Xo.createElement(a,{ref:d,"data-theme":p?h:void 0,...c})})}function UH(){const e=new Map;return new Proxy(o0,{apply(t,n,r){return o0(...r)},get(t,n){return e.has(n)||e.set(n,o0(n)),e.get(n)}})}var ae=UH();function ye(e){return _.forwardRef(e)}function _A(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=_.createContext(void 0);i.displayName=r;function a(){var l;const u=_.useContext(i);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,c,a),c}return u}return[i.Provider,a,i]}function HH(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=_.useMemo(()=>M6(n),[n]);return T.jsxs(cj,{theme:i,children:[T.jsx(GH,{root:t}),r]})}function GH({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(om,{styles:n=>({[t]:n.__cssVars})})}_A({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function KH(e){return _A({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function qH(){const{colorMode:e}=Mb();return T.jsx(om,{styles:t=>{const n=yA(t,"styles.global"),r=SA(n,{theme:t,colorMode:e});return r?nA(r)(t):void 0}})}var CA=_.createContext({getDocument(){return document},getWindow(){return window}});CA.displayName="EnvironmentContext";function kA(e){const{children:t,environment:n,disabled:r}=e,i=_.useRef(null),a=_.useMemo(()=>n||{getDocument:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument)!=null?c:document},getWindow:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?c:window}},[n]),l=!r||!n;return T.jsxs(CA.Provider,{value:a,children:[t,l&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}kA.displayName="EnvironmentProvider";var YH=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:l={},environment:u,cssVarsRoot:c,disableEnvironment:d,disableGlobalStyle:h}=e,p=T.jsx(kA,{environment:u,disabled:d,children:t});return T.jsx(HH,{theme:l,cssVarsRoot:c,children:T.jsxs(YT,{colorModeManager:n,options:l.config,children:[a?T.jsx(hj,{scope:i}):T.jsx(dj,{}),!h&&T.jsx(qH,{}),r?T.jsx(KT,{zIndex:r,children:p}):p]})})},XH=(e,t)=>e.find(n=>n.id===t);function ak(e,t){const n=EA(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function EA(e,t){for(const[n,r]of Object.entries(e))if(XH(r,t))return n}function QH(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ZH(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",l=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:a,left:l}}function En(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function JH(e,t){const n=En(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function fp(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const PA=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),fm=_.createContext({}),ef=_.createContext(null),dm=typeof document<"u",jb=dm?_.useLayoutEffect:_.useEffect,TA=_.createContext({strict:!1}),Vb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),eG="framerAppearId",AA="data-"+Vb(eG);function tG(e,t,n,r){const{visualElement:i}=_.useContext(fm),a=_.useContext(TA),l=_.useContext(ef),u=_.useContext(PA).reducedMotion,c=_.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=c.current;_.useInsertionEffect(()=>{d&&d.update(n,l)});const h=_.useRef(!!(n[AA]&&!window.HandoffComplete));return jb(()=>{d&&(d.render(),h.current&&d.animationState&&d.animationState.animateChanges())}),_.useEffect(()=>{d&&(d.updateFeatures(),!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))}),d}function Ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nG(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ks(n)&&(n.current=r))},[t])}function Fc(e){return typeof e=="string"||Array.isArray(e)}function hm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Wb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ub=["initial",...Wb];function pm(e){return hm(e.animate)||Ub.some(t=>Fc(e[t]))}function RA(e){return!!(pm(e)||e.variants)}function rG(e,t){if(pm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fc(n)?n:void 0,animate:Fc(r)?r:void 0}}return e.inherit!==!1?t:{}}function iG(e){const{initial:t,animate:n}=rG(e,_.useContext(fm));return _.useMemo(()=>({initial:t,animate:n}),[sk(t),sk(n)])}function sk(e){return Array.isArray(e)?e.join(" "):e}const lk={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"]},Oc={};for(const e in lk)Oc[e]={isEnabled:t=>lk[e].some(n=>!!t[n])};function oG(e){for(const t in e)Oc[t]={...Oc[t],...e[t]}}const Hb=_.createContext({}),IA=_.createContext({}),aG=Symbol.for("motionComponentSymbol");function sG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&oG(e);function a(u,c){let d;const h={..._.useContext(PA),...u,layoutId:lG(u)},{isStatic:p}=h,v=iG(u),g=r(u,p);if(!p&&dm){v.visualElement=tG(i,g,h,t);const w=_.useContext(IA),S=_.useContext(TA).strict;v.visualElement&&(d=v.visualElement.loadFeatures(h,S,e,w))}return _.createElement(fm.Provider,{value:v},d&&v.visualElement?_.createElement(d,{visualElement:v.visualElement,...h}):null,n(i,u,nG(g,v.visualElement,c),g,p,v.visualElement))}const l=_.forwardRef(a);return l[aG]=i,l}function lG({layoutId:e}){const t=_.useContext(Hb).id;return t&&e!==void 0?t+"-"+e:e}function uG(e){function t(r,i={}){return sG(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const cG=["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 Gb(e){return typeof e!="string"||e.includes("-")?!1:!!(cG.indexOf(e)>-1||/[A-Z]/.test(e))}const dp={};function fG(e){Object.assign(dp,e)}const tf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xa=new Set(tf);function MA(e,{layout:t,layoutId:n}){return Xa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dp[e]||e==="opacity")}const Un=e=>!!(e&&e.getVelocity),dG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hG=tf.length;function pG(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let l=0;lt=>typeof t=="string"&&t.startsWith(e),FA=$A("--"),Wy=$A("var(--"),mG=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,vG=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ta=(e,t,n)=>Math.min(Math.max(n,e),t),Qa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zu={...Qa,transform:e=>ta(0,1,e)},Hd={...Qa,default:1},Ju=e=>Math.round(e*1e5)/1e5,mm=/(-)?([\d]*\.?[\d])+/g,OA=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gG=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nf(e){return typeof e=="string"}const rf=e=>({test:t=>nf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Co=rf("deg"),vi=rf("%"),he=rf("px"),yG=rf("vh"),bG=rf("vw"),uk={...vi,parse:e=>vi.parse(e)/100,transform:e=>vi.transform(e*100)},ck={...Qa,transform:Math.round},DA={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,size:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,rotate:Co,rotateX:Co,rotateY:Co,rotateZ:Co,scale:Hd,scaleX:Hd,scaleY:Hd,scaleZ:Hd,skew:Co,skewX:Co,skewY:Co,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Zu,originX:uk,originY:uk,originZ:he,zIndex:ck,fillOpacity:Zu,strokeOpacity:Zu,numOctaves:ck};function Kb(e,t,n,r){const{style:i,vars:a,transform:l,transformOrigin:u}=e;let c=!1,d=!1,h=!0;for(const p in t){const v=t[p];if(FA(p)){a[p]=v;continue}const g=DA[p],w=vG(v,g);if(Xa.has(p)){if(c=!0,l[p]=w,!h)continue;v!==(g.default||0)&&(h=!1)}else p.startsWith("origin")?(d=!0,u[p]=w):i[p]=w}if(t.transform||(c||r?i.transform=pG(e.transform,n,h,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:v="50%",originZ:g=0}=u;i.transformOrigin=`${p} ${v} ${g}`}}const qb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function NA(e,t,n){for(const r in t)!Un(t[r])&&!MA(r,n)&&(e[r]=t[r])}function xG({transformTemplate:e},t,n){return _.useMemo(()=>{const r=qb();return Kb(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function SG(e,t,n){const r=e.style||{},i={};return NA(i,r,e),Object.assign(i,xG(e,t,n)),e.transformValues?e.transformValues(i):i}function wG(e,t,n){const r={},i=SG(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const _G=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 hp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||_G.has(e)}let LA=e=>!hp(e);function CG(e){e&&(LA=t=>t.startsWith("on")?!hp(t):e(t))}try{CG(require("@emotion/is-prop-valid").default)}catch{}function kG(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(LA(i)||n===!0&&hp(i)||!t&&!hp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function fk(e,t,n){return typeof e=="string"?e:he.transform(t+n*e)}function EG(e,t,n){const r=fk(t,e.x,e.width),i=fk(n,e.y,e.height);return`${r} ${i}`}const PG={offset:"stroke-dashoffset",array:"stroke-dasharray"},TG={offset:"strokeDashoffset",array:"strokeDasharray"};function AG(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?PG:TG;e[a.offset]=he.transform(-r);const l=he.transform(t),u=he.transform(n);e[a.array]=`${l} ${u}`}function Yb(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...d},h,p,v){if(Kb(e,d,h,v),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:w,dimensions:S}=e;g.transform&&(S&&(w.transform=g.transform),delete g.transform),S&&(i!==void 0||a!==void 0||w.transform)&&(w.transformOrigin=EG(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&AG(g,l,u,c,!1)}const zA=()=>({...qb(),attrs:{}}),Xb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function RG(e,t,n,r){const i=_.useMemo(()=>{const a=zA();return Yb(a,t,{enableHardwareAcceleration:!1},Xb(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};NA(a,e.style,e),i.style={...a,...i.style}}return i}function IG(e=!1){return(n,r,i,{latestValues:a},l)=>{const c=(Gb(n)?RG:wG)(r,a,l,n),h={...kG(r,typeof n=="string",e),...c,ref:i},{children:p}=r,v=_.useMemo(()=>Un(p)?p.get():p,[p]);return _.createElement(n,{...h,children:v})}}function BA(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const jA=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 VA(e,t,n,r){BA(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(jA.has(i)?i:Vb(i),t.attrs[i])}function Qb(e,t){const{style:n}=e,r={};for(const i in n)(Un(n[i])||t.style&&Un(t.style[i])||MA(i,e))&&(r[i]=n[i]);return r}function WA(e,t){const n=Qb(e,t);for(const r in e)if(Un(e[r])||Un(t[r])){const i=tf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Zb(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function UA(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const pp=e=>Array.isArray(e),MG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$G=e=>pp(e)?e[e.length-1]||0:e;function Ch(e){const t=Un(e)?e.get():e;return MG(t)?t.toValue():t}function FG({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const l={latestValues:OG(r,i,a,e),renderState:t()};return n&&(l.mount=u=>n(r,u,l)),l}const HA=e=>(t,n)=>{const r=_.useContext(fm),i=_.useContext(ef),a=()=>FG(e,t,r,i);return n?a():UA(a)};function OG(e,t,n,r){const i={},a=r(e,{});for(const v in a)i[v]=Ch(a[v]);let{initial:l,animate:u}=e;const c=pm(e),d=RA(e);t&&d&&!c&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||l===!1;const p=h?u:l;return p&&typeof p!="boolean"&&!hm(p)&&(Array.isArray(p)?p:[p]).forEach(g=>{const w=Zb(e,g);if(!w)return;const{transitionEnd:S,transition:k,...b}=w;for(const x in b){let C=b[x];if(Array.isArray(C)){const R=h?C.length-1:0;C=C[R]}C!==null&&(i[x]=C)}for(const x in S)i[x]=S[x]}),i}const At=e=>e;class dk{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function DG(e){let t=new dk,n=new dk,r=0,i=!1,a=!1;const l=new WeakSet,u={schedule:(c,d=!1,h=!1)=>{const p=h&&i,v=p?t:n;return d&&l.add(c),v.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),l.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d(p[v]=DG(()=>n=!0),p),{}),l=p=>a[p].process(i),u=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,NG),1),i.timestamp=p,i.isProcessing=!0,Gd.forEach(l),i.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Gd.reduce((p,v)=>{const g=a[v];return p[v]=(w,S=!1,k=!1)=>(n||c(),g.schedule(w,S,k)),p},{}),cancel:p=>Gd.forEach(v=>a[v].cancel(p)),state:i,steps:a}}const{schedule:ut,cancel:eo,state:pn,steps:a0}=LG(typeof requestAnimationFrame<"u"?requestAnimationFrame:At,!0),zG={useVisualState:HA({scrapeMotionValuesFromProps:WA,createRenderState:zA,onMount:(e,t,{renderState:n,latestValues:r})=>{ut.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ut.render(()=>{Yb(n,r,{enableHardwareAcceleration:!1},Xb(t.tagName),e.transformTemplate),VA(t,n)})}})},BG={useVisualState:HA({scrapeMotionValuesFromProps:Qb,createRenderState:qb})};function jG(e,{forwardMotionProps:t=!1},n,r){return{...Gb(e)?zG:BG,preloadedFeatures:n,useRender:IG(t),createVisualElement:r,Component:e}}function Vi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const GA=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function vm(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const VG=e=>t=>GA(t)&&e(t,vm(t));function Hi(e,t,n,r){return Vi(e,t,VG(n),r)}const WG=(e,t)=>n=>t(e(n)),Ko=(...e)=>e.reduce(WG);function KA(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const hk=KA("dragHorizontal"),pk=KA("dragVertical");function qA(e){let t=!1;if(e==="y")t=pk();else if(e==="x")t=hk();else{const n=hk(),r=pk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function YA(){const e=qA(!0);return e?(e(),!1):!0}class aa{constructor(t){this.isMounted=!1,this.node=t}update(){}}function mk(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,l)=>{if(a.pointerType==="touch"||YA())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&ut.update(()=>u[r](a,l))};return Hi(e.current,n,i,{passive:!e.getProps()[r]})}class UG extends aa{mount(){this.unmount=Ko(mk(this.node,!0),mk(this.node,!1))}unmount(){}}class HG extends aa{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=Ko(Vi(this.node.current,"focus",()=>this.onFocus()),Vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const XA=(e,t)=>t?e===t?!0:XA(e,t.parentElement):!1;function s0(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,vm(n))}class GG extends aa{constructor(){super(...arguments),this.removeStartListeners=At,this.removeEndListeners=At,this.removeAccessibleListeners=At,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Hi(window,"pointerup",(u,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:h}=this.node.getProps();ut.update(()=>{XA(this.node.current,u.target)?d&&d(u,c):h&&h(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),l=Hi(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ko(a,l),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const l=u=>{u.key!=="Enter"||!this.checkPressEnd()||s0("up",(c,d)=>{const{onTap:h}=this.node.getProps();h&&ut.update(()=>h(c,d))})};this.removeEndListeners(),this.removeEndListeners=Vi(this.node.current,"keyup",l),s0("down",(u,c)=>{this.startPress(u,c)})},n=Vi(this.node.current,"keydown",t),r=()=>{this.isPressing&&s0("cancel",(a,l)=>this.cancelPress(a,l))},i=Vi(this.node.current,"blur",r);this.removeAccessibleListeners=Ko(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ut.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!YA()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ut.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Hi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Vi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ko(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Uy=new WeakMap,l0=new WeakMap,KG=e=>{const t=Uy.get(e.target);t&&t(e)},qG=e=>{e.forEach(KG)};function YG({root:e,...t}){const n=e||document;l0.has(n)||l0.set(n,{});const r=l0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(qG,{root:e,...t})),r[i]}function XG(e,t,n){const r=YG(t);return Uy.set(e,n),r.observe(e),()=>{Uy.delete(e),r.unobserve(e)}}const QG={some:0,all:1};class ZG extends aa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:QG[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),v=d?h:p;v&&v(c)};return XG(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JG(t,n))&&this.startObserver()}unmount(){}}function JG({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eK={inView:{Feature:ZG},tap:{Feature:GG},focus:{Feature:HG},hover:{Feature:UG}};function QA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function nK(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function gm(e,t,n){const r=e.getProps();return Zb(r,t,n!==void 0?n:r.custom,tK(e),nK(e))}let rK=At,Jb=At;const qo=e=>e*1e3,Gi=e=>e/1e3,iK={current:!1},ZA=e=>Array.isArray(e)&&typeof e[0]=="number";function JA(e){return!!(!e||typeof e=="string"&&eR[e]||ZA(e)||Array.isArray(e)&&e.every(JA))}const Ou=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,eR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ou([0,.65,.55,1]),circOut:Ou([.55,0,1,.45]),backIn:Ou([.31,.01,.66,-.59]),backOut:Ou([.33,1.53,.69,.99])};function tR(e){if(e)return ZA(e)?Ou(e):Array.isArray(e)?e.map(tR):eR[e]}function oK(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:l="loop",ease:u,times:c}={}){const d={[t]:n};c&&(d.offset=c);const h=tR(u);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}function aK(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const nR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sK=1e-7,lK=12;function uK(e,t,n,r,i){let a,l,u=0;do l=t+(n-t)/2,a=nR(l,r,i)-e,a>0?n=l:t=l;while(Math.abs(a)>sK&&++uuK(a,0,1,e,n);return a=>a===0||a===1?a:nR(i(a),t,r)}const cK=of(.42,0,1,1),fK=of(0,0,.58,1),rR=of(.42,0,.58,1),dK=e=>Array.isArray(e)&&typeof e[0]!="number",iR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oR=e=>t=>1-e(1-t),ex=e=>1-Math.sin(Math.acos(e)),aR=oR(ex),hK=iR(ex),sR=of(.33,1.53,.69,.99),tx=oR(sR),pK=iR(tx),mK=e=>(e*=2)<1?.5*tx(e):.5*(2-Math.pow(2,-10*(e-1))),vK={linear:At,easeIn:cK,easeInOut:rR,easeOut:fK,circIn:ex,circInOut:hK,circOut:aR,backIn:tx,backInOut:pK,backOut:sR,anticipate:mK},vk=e=>{if(Array.isArray(e)){Jb(e.length===4);const[t,n,r,i]=e;return of(t,n,r,i)}else if(typeof e=="string")return vK[e];return e},nx=(e,t)=>n=>!!(nf(n)&&gG.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),lR=(e,t,n)=>r=>{if(!nf(r))return r;const[i,a,l,u]=r.match(mm);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},gK=e=>ta(0,255,e),u0={...Qa,transform:e=>Math.round(gK(e))},Ra={test:nx("rgb","red"),parse:lR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+u0.transform(e)+", "+u0.transform(t)+", "+u0.transform(n)+", "+Ju(Zu.transform(r))+")"};function yK(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hy={test:nx("#"),parse:yK,transform:Ra.transform},qs={test:nx("hsl","hue"),parse:lR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vi.transform(Ju(t))+", "+vi.transform(Ju(n))+", "+Ju(Zu.transform(r))+")"},Cn={test:e=>Ra.test(e)||Hy.test(e)||qs.test(e),parse:e=>Ra.test(e)?Ra.parse(e):qs.test(e)?qs.parse(e):Hy.parse(e),transform:e=>nf(e)?e:e.hasOwnProperty("red")?Ra.transform(e):qs.transform(e)},_t=(e,t,n)=>-n*e+n*t+e;function c0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bK({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,l=0;if(!t)i=a=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=c0(c,u,e+1/3),a=c0(c,u,e),l=c0(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}const f0=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},xK=[Hy,Ra,qs],SK=e=>xK.find(t=>t.test(e));function gk(e){const t=SK(e);let n=t.parse(e);return t===qs&&(n=bK(n)),n}const uR=(e,t)=>{const n=gk(e),r=gk(t),i={...n};return a=>(i.red=f0(n.red,r.red,a),i.green=f0(n.green,r.green,a),i.blue=f0(n.blue,r.blue,a),i.alpha=_t(n.alpha,r.alpha,a),Ra.transform(i))};function wK(e){var t,n;return isNaN(e)&&nf(e)&&(((t=e.match(mm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(OA))===null||n===void 0?void 0:n.length)||0)>0}const cR={regex:mG,countKey:"Vars",token:"${v}",parse:At},fR={regex:OA,countKey:"Colors",token:"${c}",parse:Cn.parse},dR={regex:mm,countKey:"Numbers",token:"${n}",parse:Qa.parse};function d0(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function mp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&d0(n,cR),d0(n,fR),d0(n,dR),n}function hR(e){return mp(e).values}function pR(e){const{values:t,numColors:n,numVars:r,tokenised:i}=mp(e),a=t.length;return l=>{let u=i;for(let c=0;ctypeof e=="number"?0:e;function CK(e){const t=hR(e);return pR(e)(t.map(_K))}const na={test:wK,parse:hR,createTransformer:pR,getAnimatableNone:CK},mR=(e,t)=>n=>`${n>0?t:e}`;function vR(e,t){return typeof e=="number"?n=>_t(e,t,n):Cn.test(e)?uR(e,t):e.startsWith("var(")?mR(e,t):yR(e,t)}const gR=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,l)=>vR(a,t[l]));return a=>{for(let l=0;l{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vR(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},yR=(e,t)=>{const n=na.createTransformer(t),r=mp(e),i=mp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ko(gR(r.values,i.values),n):mR(e,t)},Dc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},yk=(e,t)=>n=>_t(e,t,n);function EK(e){return typeof e=="number"?yk:typeof e=="string"?Cn.test(e)?uR:yR:Array.isArray(e)?gR:typeof e=="object"?kK:yk}function PK(e,t,n){const r=[],i=n||EK(e[0]),a=e.length-1;for(let l=0;lt[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=PK(t,r,i),u=l.length,c=d=>{let h=0;if(u>1)for(;hc(ta(e[0],e[a-1],d)):c}function TK(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Dc(0,t,r);e.push(_t(n,1,i))}}function AK(e){const t=[0];return TK(t,e.length-1),t}function RK(e,t){return e.map(n=>n*t)}function IK(e,t){return e.map(()=>t||rR).splice(0,e.length-1)}function vp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=dK(r)?r.map(vk):vk(r),a={done:!1,value:t[0]},l=RK(n&&n.length===t.length?n:AK(t),e),u=bR(l,t,{ease:Array.isArray(i)?i:IK(t,i)});return{calculatedDuration:e,next:c=>(a.value=u(c),a.done=c>=e,a)}}function xR(e,t){return t?e*(1e3/t):0}const MK=5;function SR(e,t,n){const r=Math.max(t-MK,0);return xR(n-e(r),t-r)}const h0=.001,$K=.01,bk=10,FK=.05,OK=1;function DK({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;rK(e<=qo(bk));let l=1-t;l=ta(FK,OK,l),e=ta($K,bk,Gi(e)),l<1?(i=d=>{const h=d*l,p=h*e,v=h-n,g=Gy(d,l),w=Math.exp(-p);return h0-v/g*w},a=d=>{const p=d*l*e,v=p*n+n,g=Math.pow(l,2)*Math.pow(d,2)*e,w=Math.exp(-p),S=Gy(Math.pow(d,2),l);return(-i(d)+h0>0?-1:1)*((v-g)*w)/S}):(i=d=>{const h=Math.exp(-d*e),p=(d-n)*e+1;return-h0+h*p},a=d=>{const h=Math.exp(-d*e),p=(n-d)*(e*e);return h*p});const u=5/e,c=LK(i,a,u);if(e=qo(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const NK=12;function LK(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function jK(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xk(e,BK)&&xk(e,zK)){const n=DK(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wR({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:p,isResolvedFromDuration:v}=jK({...r,velocity:-Gi(r.velocity||0)}),g=p||0,w=c/(2*Math.sqrt(u*d)),S=a-i,k=Gi(Math.sqrt(u/d)),b=Math.abs(S)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let x;if(w<1){const C=Gy(k,w);x=R=>{const $=Math.exp(-w*k*R);return a-$*((g+w*k*S)/C*Math.sin(C*R)+S*Math.cos(C*R))}}else if(w===1)x=C=>a-Math.exp(-k*C)*(S+(g+k*S)*C);else{const C=k*Math.sqrt(w*w-1);x=R=>{const $=Math.exp(-w*k*R),z=Math.min(C*R,300);return a-$*((g+w*k*S)*Math.sinh(z)+C*S*Math.cosh(z))/C}}return{calculatedDuration:v&&h||null,next:C=>{const R=x(C);if(v)l.done=C>=h;else{let $=g;C!==0&&(w<1?$=SR(x,C,R):$=0);const z=Math.abs($)<=n,L=Math.abs(a-R)<=t;l.done=z&&L}return l.value=l.done?a:R,l}}}function Sk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:c,restDelta:d=.5,restSpeed:h}){const p=e[0],v={done:!1,value:p},g=j=>u!==void 0&&jc,w=j=>u===void 0?c:c===void 0||Math.abs(u-j)-S*Math.exp(-j/r),C=j=>b+x(j),R=j=>{const K=x(j),q=C(j);v.done=Math.abs(K)<=d,v.value=v.done?b:q};let $,z;const L=j=>{g(v.value)&&($=j,z=wR({keyframes:[v.value,w(v.value)],velocity:SR(C,j,v.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return L(0),{calculatedDuration:null,next:j=>{let K=!1;return!z&&$===void 0&&(K=!0,R(j),L(j)),$!==void 0&&j>$?z.next(j-$):(!K&&R(j),v)}}}const VK=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ut.update(t,!0),stop:()=>eo(t),now:()=>pn.isProcessing?pn.timestamp:performance.now()}},wk=2e4;function _k(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=wk?1/0:t}const WK={decay:Sk,inertia:Sk,tween:vp,keyframes:vp,spring:wR};function gp({autoplay:e=!0,delay:t=0,driver:n=VK,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",onPlay:c,onStop:d,onComplete:h,onUpdate:p,...v}){let g=1,w=!1,S,k;const b=()=>{k=new Promise(re=>{S=re})};b();let x;const C=WK[i]||vp;let R;C!==vp&&typeof r[0]!="number"&&(R=bR([0,100],r,{clamp:!1}),r=[0,100]);const $=C({...v,keyframes:r});let z;u==="mirror"&&(z=C({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let L="idle",j=null,K=null,q=null;$.calculatedDuration===null&&a&&($.calculatedDuration=_k($));const{calculatedDuration:J}=$;let Ie=1/0,je=1/0;J!==null&&(Ie=J+l,je=Ie*(a+1)-l);let Me=0;const bt=re=>{if(K===null)return;g>0&&(K=Math.min(K,re)),g<0&&(K=Math.min(re-je/g,K)),j!==null?Me=j:Me=Math.round(re-K)*g;const Te=Me-t*(g>=0?1:-1),me=g>=0?Te<0:Te>je;Me=Math.max(Te,0),L==="finished"&&j===null&&(Me=je);let Ee=Me,Qe=$;if(a){const xt=Math.min(Me,je)/Ie;let Ft=Math.floor(xt),vt=xt%1;!vt&&xt>=1&&(vt=1),vt===1&&Ft--,Ft=Math.min(Ft,a+1),!!(Ft%2)&&(u==="reverse"?(vt=1-vt,l&&(vt-=l/Ie)):u==="mirror"&&(Qe=z)),Ee=ta(0,1,vt)*Ie}const ze=me?{done:!1,value:r[0]}:Qe.next(Ee);R&&(ze.value=R(ze.value));let{done:st}=ze;!me&&J!==null&&(st=g>=0?Me>=je:Me<=0);const ft=j===null&&(L==="finished"||L==="running"&&st);return p&&p(ze.value),ft&&W(),ze},ke=()=>{x&&x.stop(),x=void 0},Oe=()=>{L="idle",ke(),S(),b(),K=q=null},W=()=>{L="finished",h&&h(),ke(),S()},ie=()=>{if(w)return;x||(x=n(bt));const re=x.now();c&&c(),j!==null?K=re-j:(!K||L==="finished")&&(K=re),L==="finished"&&b(),q=K,j=null,L="running",x.start()};e&&ie();const se={then(re,Te){return k.then(re,Te)},get time(){return Gi(Me)},set time(re){re=qo(re),Me=re,j!==null||!x||g===0?j=re:K=x.now()-re/g},get duration(){const re=$.calculatedDuration===null?_k($):$.calculatedDuration;return Gi(re)},get speed(){return g},set speed(re){re===g||!x||(g=re,se.time=Gi(Me))},get state(){return L},play:ie,pause:()=>{L="paused",j=Me},stop:()=>{w=!0,L!=="idle"&&(L="idle",d&&d(),Oe())},cancel:()=>{q!==null&&bt(q),Oe()},complete:()=>{L="finished"},sample:re=>(K=0,bt(re))};return se}function UK(e){let t;return()=>(t===void 0&&(t=e()),t)}const HK=UK(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),GK=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Kd=10,KK=2e4,qK=(e,t)=>t.type==="spring"||e==="backgroundColor"||!JA(t.ease);function YK(e,t,{onUpdate:n,onComplete:r,...i}){if(!(HK()&&GK.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let l=!1,u,c,d=!1;const h=()=>{c=new Promise(C=>{u=C})};h();let{keyframes:p,duration:v=300,ease:g,times:w}=i;if(qK(t,i)){const C=gp({...i,repeat:0,delay:0});let R={done:!1,value:p[0]};const $=[];let z=0;for(;!R.done&&z{d=!1,S.cancel()},b=()=>{d=!0,ut.update(k),u(),h()};return S.onfinish=()=>{d||(e.set(aK(p,i)),r&&r(),b())},{then(C,R){return c.then(C,R)},attachTimeline(C){return S.timeline=C,S.onfinish=null,At},get time(){return Gi(S.currentTime||0)},set time(C){S.currentTime=qo(C)},get speed(){return S.playbackRate},set speed(C){S.playbackRate=C},get duration(){return Gi(v)},play:()=>{l||(S.play(),eo(k))},pause:()=>S.pause(),stop:()=>{if(l=!0,S.playState==="idle")return;const{currentTime:C}=S;if(C){const R=gp({...i,autoplay:!1});e.setWithVelocity(R.sample(C-Kd).value,R.sample(C).value,Kd)}b()},complete:()=>{d||S.finish()},cancel:b}}function XK({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:At,pause:At,stop:At,then:a=>(a(),Promise.resolve()),cancel:At,complete:At});return t?gp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const QK={type:"spring",stiffness:500,damping:25,restSpeed:10},ZK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JK={type:"keyframes",duration:.8},eq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tq=(e,{keyframes:t})=>t.length>2?JK:Xa.has(e)?e.startsWith("scale")?ZK(t[1]):QK:eq,Ky=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(na.test(t)||t==="0")&&!t.startsWith("url(")),nq=new Set(["brightness","contrast","saturate","opacity"]);function rq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mm)||[];if(!r)return e;const i=n.replace(r,"");let a=nq.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const iq=/([a-z-]*)\(.*?\)/g,qy={...na,getAnimatableNone:e=>{const t=e.match(iq);return t?t.map(rq).join(" "):e}},oq={...DA,color:Cn,backgroundColor:Cn,outlineColor:Cn,fill:Cn,stroke:Cn,borderColor:Cn,borderTopColor:Cn,borderRightColor:Cn,borderBottomColor:Cn,borderLeftColor:Cn,filter:qy,WebkitFilter:qy},rx=e=>oq[e];function _R(e,t){let n=rx(e);return n!==qy&&(n=na),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const CR=e=>/^0[^.\s]+$/.test(e);function aq(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||CR(e)}function sq(e,t,n,r){const i=Ky(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const l=r.from!==void 0?r.from:e.get();let u;const c=[];for(let d=0;di=>{const a=ix(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-qo(l);const c=sq(t,e,n,a),d=c[0],h=c[c.length-1],p=Ky(e,d),v=Ky(e,h);let g={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-u,onUpdate:w=>{t.set(w),a.onUpdate&&a.onUpdate(w)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(lq(a)||(g={...g,...tq(e,g)}),g.duration&&(g.duration=qo(g.duration)),g.repeatDelay&&(g.repeatDelay=qo(g.repeatDelay)),!p||!v||iK.current||a.type===!1||uq.skipAnimations)return XK(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const w=YK(t,e,g);if(w)return w}return gp(g)};function yp(e){return!!(Un(e)&&e.add)}const kR=e=>/^\-?\d*\.?\d+$/.test(e);function ax(e,t){e.indexOf(t)===-1&&e.push(t)}function sx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lx{constructor(){this.subscriptions=[]}add(t){return ax(this.subscriptions,t),()=>sx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a!isNaN(parseFloat(e));class fq{constructor(t,n={}){this.version="10.17.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:l}=pn;this.lastUpdated!==l&&(this.timeDelta=a,this.lastUpdated=l,ut.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ut.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==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=cq(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lx);const r=this.events[t].add(n);return t==="change"?()=>{r(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}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?xR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kl(e,t){return new fq(e,t)}const ER=e=>t=>t.test(e),dq={test:e=>e==="auto",parse:e=>e},PR=[Qa,he,vi,Co,bG,yG,dq],wu=e=>PR.find(ER(e)),hq=[...PR,Cn,na],pq=e=>hq.find(ER(e));function mq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kl(n))}function vq(e,t){const n=gm(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const l in a){const u=$G(a[l]);mq(e,l,u)}}function gq(e,t,n){var r,i;const a=Object.keys(t).filter(u=>!e.hasValue(u)),l=a.length;if(l)for(let u=0;uc.remove(p))),d.push(k)}return l&&Promise.all(d).then(()=>{l&&vq(e,l)}),d}function Yy(e,t,n={}){const r=gm(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(TR(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=i;return wq(e,t,d+c,h,p,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[a,l]:[l,a];return c().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function wq(e,t,n=0,r=0,i=1,a){const l=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(_q).forEach((d,h)=>{d.notify("AnimationStart",t),l.push(Yy(d,t,{...a,delay:n+c(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(l)}function _q(e,t){return e.sortNodePosition(t)}function Cq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Yy(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Yy(e,t,n);else{const i=typeof t=="function"?gm(e,t,n.custom):t;r=Promise.all(TR(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const kq=[...Wb].reverse(),Eq=Wb.length;function Pq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Cq(e,n,r)))}function Tq(e){let t=Pq(e);const n=Rq();let r=!0;const i=(c,d)=>{const h=gm(e,d);if(h){const{transition:p,transitionEnd:v,...g}=h;c={...c,...g,...v}}return c};function a(c){t=c(e)}function l(c,d){const h=e.getProps(),p=e.getVariantContext(!0)||{},v=[],g=new Set;let w={},S=1/0;for(let b=0;bS&&$,q=!1;const J=Array.isArray(R)?R:[R];let Ie=J.reduce(i,{});z===!1&&(Ie={});const{prevResolvedValues:je={}}=C,Me={...je,...Ie},bt=ke=>{K=!0,g.has(ke)&&(q=!0,g.delete(ke)),C.needsAnimating[ke]=!0};for(const ke in Me){const Oe=Ie[ke],W=je[ke];if(w.hasOwnProperty(ke))continue;let ie=!1;pp(Oe)&&pp(W)?ie=!QA(Oe,W):ie=Oe!==W,ie?Oe!==void 0?bt(ke):g.add(ke):Oe!==void 0&&g.has(ke)?bt(ke):C.protectedKeys[ke]=!0}C.prevProp=R,C.prevResolvedValues=Ie,C.isActive&&(w={...w,...Ie}),r&&e.blockInitialAnimation&&(K=!1),K&&(!L||q)&&v.push(...J.map(ke=>({animation:ke,options:{type:x,...c}})))}if(g.size){const b={};g.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(b[x]=C)}),v.push({animation:b})}let k=!!v.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?t(v):Promise.resolve()}function u(c,d,h){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(g=>{var w;return(w=g.animationState)===null||w===void 0?void 0:w.setActive(c,d)}),n[c].isActive=d;const v=l(h,c);for(const g in n)n[g].protectedKeys={};return v}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>n}}function Aq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!QA(t,e):!1}function ga(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rq(){return{animate:ga(!0),whileInView:ga(),whileHover:ga(),whileTap:ga(),whileDrag:ga(),whileFocus:ga(),exit:ga()}}class Iq extends aa{constructor(t){super(t),t.animationState||(t.animationState=Tq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),hm(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Mq=0;class $q extends aa{constructor(){super(...arguments),this.id=Mq++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Fq={animation:{Feature:Iq},exit:{Feature:$q}},Ck=(e,t)=>Math.abs(e-t);function Oq(e,t){const n=Ck(e.x,t.x),r=Ck(e.y,t.y);return Math.sqrt(n**2+r**2)}class AR{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=m0(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,g=Oq(p.offset,{x:0,y:0})>=3;if(!v&&!g)return;const{point:w}=p,{timestamp:S}=pn;this.history.push({...w,timestamp:S});const{onStart:k,onMove:b}=this.handlers;v||(k&&k(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,v)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=p0(v,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(p,v)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=m0(p.type==="pointercancel"?this.lastMoveEventInfo:p0(v,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,k),w&&w(p,k)},!GA(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=vm(t),u=p0(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=pn;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,m0(u,this.history)),this.removeListeners=Ko(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}}function p0(e,t){return t?{point:t(e.point)}:e}function kk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function m0({point:e},t){return{point:e,delta:kk(e,RR(t)),offset:kk(e,Dq(t)),velocity:Nq(t,.1)}}function Dq(e){return e[0]}function RR(e){return e[e.length-1]}function Nq(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=RR(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qo(t)));)n--;if(!r)return{x:0,y:0};const a=Gi(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function sr(e){return e.max-e.min}function Xy(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ek(e,t,n,r=.5){e.origin=r,e.originPoint=_t(t.min,t.max,e.origin),e.scale=sr(n)/sr(t),(Xy(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_t(n.min,n.max,e.origin)-e.originPoint,(Xy(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ec(e,t,n,r){Ek(e.x,t.x,n.x,r?r.originX:void 0),Ek(e.y,t.y,n.y,r?r.originY:void 0)}function Pk(e,t,n){e.min=n.min+t.min,e.max=e.min+sr(t)}function Lq(e,t,n){Pk(e.x,t.x,n.x),Pk(e.y,t.y,n.y)}function Tk(e,t,n){e.min=t.min-n.min,e.max=e.min+sr(t)}function tc(e,t,n){Tk(e.x,t.x,n.x),Tk(e.y,t.y,n.y)}function zq(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?_t(n,e,r.max):Math.min(e,n)),e}function Ak(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Bq(e,{top:t,left:n,bottom:r,right:i}){return{x:Ak(e.x,n,i),y:Ak(e.y,t,r)}}function Rk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Dc(t.min,t.max-r,e.min):r>i&&(n=Dc(e.min,e.max-i,t.min)),ta(0,1,n)}function Wq(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qy=.35;function Uq(e=Qy){return e===!1?e=0:e===!0&&(e=Qy),{x:Ik(e,"left","right"),y:Ik(e,"top","bottom")}}function Ik(e,t,n){return{min:Mk(e,t),max:Mk(e,n)}}function Mk(e,t){return typeof e=="number"?e:e[t]||0}const $k=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:$k(),y:$k()}),Fk=()=>({min:0,max:0}),Dt=()=>({x:Fk(),y:Fk()});function _r(e){return[e("x"),e("y")]}function IR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Gq(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function v0(e){return e===void 0||e===1}function Zy({scale:e,scaleX:t,scaleY:n}){return!v0(e)||!v0(t)||!v0(n)}function Sa(e){return Zy(e)||MR(e)||e.z||e.rotate||e.rotateX||e.rotateY}function MR(e){return Ok(e.x)||Ok(e.y)}function Ok(e){return e&&e!=="0%"}function bp(e,t,n){const r=e-n,i=t*r;return n+i}function Dk(e,t,n,r,i){return i!==void 0&&(e=bp(e,i,r)),bp(e,n,r)+t}function Jy(e,t=0,n=1,r,i){e.min=Dk(e.min,t,n,r,i),e.max=Dk(e.max,t,n,r,i)}function $R(e,{x:t,y:n}){Jy(e.x,t.translate,t.scale,t.originPoint),Jy(e.y,n.translate,n.scale,n.originPoint)}function Kq(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,l;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Ao(e,t){e.min=e.min+t,e.max=e.max+t}function Lk(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,l=_t(e.min,e.max,a);Jy(e,t[n],t[r],l,t.scale)}const qq=["x","scaleX","originX"],Yq=["y","scaleY","originY"];function Xs(e,t){Lk(e.x,t,qq),Lk(e.y,t,Yq)}function FR(e,t){return IR(Gq(e.getBoundingClientRect(),t))}function Xq(e,t,n){const r=FR(e,n),{scroll:i}=t;return i&&(Ao(r.x,i.offset.x),Ao(r.y,i.offset.y)),r}const OR=({current:e})=>e?e.ownerDocument.defaultView:null,Qq=new WeakMap;class Zq{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=Dt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(vm(h,"page").point)},a=(h,p)=>{const{drag:v,dragPropagation:g,onDragStart:w}=this.getProps();if(v&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=qA(v),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_r(k=>{let b=this.getAxisMotionValue(k).get()||0;if(vi.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const C=x.layout.layoutBox[k];C&&(b=sr(C)*(parseFloat(b)/100))}}this.originPoint[k]=b}),w&&ut.update(()=>w(h,p),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},l=(h,p)=>{const{dragPropagation:v,dragDirectionLock:g,onDirectionLock:w,onDrag:S}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:k}=p;if(g&&this.currentDirection===null){this.currentDirection=Jq(k),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",p.point,k),this.updateAxis("y",p.point,k),this.visualElement.render(),S&&S(h,p)},u=(h,p)=>this.stop(h,p),c=()=>_r(h=>{var p;return this.getAnimationState(h)==="paused"&&((p=this.getAxisMotionValue(h).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new AR(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:OR(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ut.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!qd(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=zq(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Ks(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Bq(i.layoutBox,n):this.constraints=!1,this.elastic=Uq(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_r(l=>{this.getAxisMotionValue(l)&&(this.constraints[l]=Wq(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ks(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Xq(r,i.root,this.visualElement.getTransformPagePoint());let l=jq(i.layout.layoutBox,a);if(n){const u=n(Hq(l));this.hasMutatedConstraints=!!u,u&&(l=IR(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=_r(h=>{if(!qd(h,n,this.currentDirection))return;let p=c&&c[h]||{};l&&(p={min:0,max:0});const v=i?200:1e6,g=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:v,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...p};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ox(t,r,0,n))}stopAnimation(){_r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_r(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){_r(n=>{const{drag:r}=this.getProps();if(!qd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];a.set(t[n]-_t(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ks(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_r(l=>{const u=this.getAxisMotionValue(l);if(u){const c=u.get();i[l]=Vq({min:c,max:c},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_r(l=>{if(!qd(l,t,null))return;const u=this.getAxisMotionValue(l),{min:c,max:d}=this.constraints[l];u.set(_t(c,d,i[l]))})}addListeners(){if(!this.visualElement.current)return;Qq.set(this.visualElement,this);const t=this.visualElement.current,n=Hi(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Ks(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const l=Vi(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(_r(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=c[h].translate,p.set(p.get()+c[h].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:l=Qy,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function qd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jq(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class eY extends aa{constructor(t){super(t),this.removeGroupControls=At,this.removeListeners=At,this.controls=new Zq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||At}unmount(){this.removeGroupControls(),this.removeListeners()}}const zk=e=>(t,n)=>{e&&ut.update(()=>e(t,n))};class tY extends aa{constructor(){super(...arguments),this.removePointerDownListener=At}onPointerDown(t){this.session=new AR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OR(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:zk(t),onStart:zk(n),onMove:r,onEnd:(a,l)=>{delete this.session,i&&ut.update(()=>i(a,l))}}}mount(){this.removePointerDownListener=Hi(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 DR(){const e=_.useContext(ef);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function nY(){return rY(_.useContext(ef))}function rY(e){return e===null?!0:e.isPresent}const kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _u={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=Bk(e,t.target.x),r=Bk(e,t.target.y);return`${n}% ${r}%`}},iY={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=na.parse(e);if(i.length>5)return r;const a=na.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=c;const d=_t(u,c,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),a(i)}};class oY extends Xo.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;fG(aY),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),kh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||ut.postRender(()=>{const u=l.getStack();(!u||!u.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:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function NR(e){const[t,n]=DR(),r=_.useContext(Hb);return Xo.createElement(oY,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(IA),isPresent:t,safeToRemove:n})}const aY={borderRadius:{..._u,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_u,borderTopRightRadius:_u,borderBottomLeftRadius:_u,borderBottomRightRadius:_u,boxShadow:iY},LR=["TopLeft","TopRight","BottomLeft","BottomRight"],sY=LR.length,jk=e=>typeof e=="string"?parseFloat(e):e,Vk=e=>typeof e=="number"||he.test(e);function lY(e,t,n,r,i,a){i?(e.opacity=_t(0,n.opacity!==void 0?n.opacity:1,uY(r)),e.opacityExit=_t(t.opacity!==void 0?t.opacity:1,0,cY(r))):a&&(e.opacity=_t(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;lrt?1:n(Dc(e,t,r))}function Uk(e,t){e.min=t.min,e.max=t.max}function Sr(e,t){Uk(e.x,t.x),Uk(e.y,t.y)}function Hk(e,t,n,r,i){return e-=t,e=bp(e,1/n,r),i!==void 0&&(e=bp(e,1/i,r)),e}function fY(e,t=0,n=1,r=.5,i,a=e,l=e){if(vi.test(t)&&(t=parseFloat(t),t=_t(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=_t(a.min,a.max,r);e===a&&(u-=t),e.min=Hk(e.min,t,n,u,i),e.max=Hk(e.max,t,n,u,i)}function Gk(e,t,[n,r,i],a,l){fY(e,t[n],t[r],t[i],t.scale,a,l)}const dY=["x","scaleX","originX"],hY=["y","scaleY","originY"];function Kk(e,t,n,r){Gk(e.x,t,dY,n?n.x:void 0,r?r.x:void 0),Gk(e.y,t,hY,n?n.y:void 0,r?r.y:void 0)}function qk(e){return e.translate===0&&e.scale===1}function BR(e){return qk(e.x)&&qk(e.y)}function pY(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 jR(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 Yk(e){return sr(e.x)/sr(e.y)}class mY{constructor(){this.members=[]}add(t){ax(this.members,t),t.scheduleRender()}remove(t){if(sx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xk(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:h}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const vY=(e,t)=>e.depth-t.depth;class gY{constructor(){this.children=[],this.isDirty=!1}add(t){ax(this.children,t),this.isDirty=!0}remove(t){sx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vY),this.isDirty=!1,this.children.forEach(t)}}function yY(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(eo(r),e(a-t))};return ut.read(r,!0),()=>eo(r)}function bY(e){window.MotionDebug&&window.MotionDebug.record(e)}function xY(e){return e instanceof SVGElement&&e.tagName!=="svg"}function SY(e,t,n){const r=Un(e)?e:kl(e);return r.start(ox("",r,t,n)),r.animation}const Qk=["","X","Y","Z"],wY={visibility:"hidden"},Zk=1e3;let _Y=0;const wa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function VR({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=_Y++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wa.totalNodes=wa.resolvedTargetDeltas=wa.recalculatedProjection=0,this.nodes.forEach(EY),this.nodes.forEach(IY),this.nodes.forEach(MY),this.nodes.forEach(PY),bY(wa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=yY(v,250),kh.hasAnimatedSinceResize&&(kh.hasAnimatedSinceResize=!1,this.nodes.forEach(e2))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:v,hasRelativeTargetChanged:g,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||NY,{onLayoutAnimationStart:k,onLayoutAnimationComplete:b}=h.getProps(),x=!this.targetLayout||!jR(this.targetLayout,w)||g,C=!v&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||v&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const R={...ix(S,"layout"),onPlay:k,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else v||e2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,eo(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($Y),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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 h=0;hthis.update()))}clearAllSnapshots(){this.nodes.forEach(TY),this.sharedNodes.forEach(FY)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ut.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 c=0;c{const $=R/1e3;t2(p.x,l.x,$),t2(p.y,l.y,$),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),OY(this.relativeTarget,this.relativeTargetOrigin,v,$),C&&pY(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Dt()),Sr(C,this.relativeTarget)),S&&(this.animationValues=h,lY(h,d,this.latestValues,$,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{kh.hasAnimatedSinceResize=!0,this.currentAnimation=SY(0,Zk,{...l,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:h}=l;if(!(!u||!c||!d)){if(this!==l&&this.layout&&d&&WR(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Dt();const p=sr(this.layout.layoutBox.x);c.x.min=l.target.x.min,c.x.max=c.x.min+p;const v=sr(this.layout.layoutBox.y);c.y.min=l.target.y.min,c.y.max=c.y.min+v}Sr(u,c),Xs(u,h),ec(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new mY),this.sharedNodes.get(l).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:c}=l;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const d={};for(let h=0;h{var u;return(u=l.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Jk),this.root.sharedNodes.clear()}}}function CY(e){e.updateLayout()}function kY(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?_r(p=>{const v=l?n.measuredBox[p]:n.layoutBox[p],g=sr(v);v.min=r[p].min,v.max=v.min+g}):WR(a,n.layoutBox,r)&&_r(p=>{const v=l?n.measuredBox[p]:n.layoutBox[p],g=sr(r[p]);v.max=v.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const u=Ys();ec(u,r,n.layoutBox);const c=Ys();l?ec(c,e.applyTransform(i,!0),n.measuredBox):ec(c,r,n.layoutBox);const d=!BR(u);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:g}=p;if(v&&g){const w=Dt();tc(w,n.layoutBox,v.layoutBox);const S=Dt();tc(S,r,g.layoutBox),jR(w,S)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=w,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function EY(e){wa.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 PY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TY(e){e.clearSnapshot()}function Jk(e){e.clearMeasurements()}function AY(e){e.isLayoutDirty=!1}function RY(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function e2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function IY(e){e.resolveTargetDelta()}function MY(e){e.calcProjection()}function $Y(e){e.resetRotation()}function FY(e){e.removeLeadSnapshot()}function t2(e,t,n){e.translate=_t(t.translate,0,n),e.scale=_t(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n2(e,t,n,r){e.min=_t(t.min,n.min,r),e.max=_t(t.max,n.max,r)}function OY(e,t,n,r){n2(e.x,t.x,n.x,r),n2(e.y,t.y,n.y,r)}function DY(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const NY={duration:.45,ease:[.4,0,.1,1]},r2=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),i2=r2("applewebkit/")&&!r2("chrome/")?Math.round:At;function o2(e){e.min=i2(e.min),e.max=i2(e.max)}function LY(e){o2(e.x),o2(e.y)}function WR(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xy(Yk(t),Yk(n),.2)}const zY=VR({attachResizeListener:(e,t)=>Vi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),g0={current:void 0},UR=VR({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g0.current){const e=new zY({});e.mount(window),e.setOptions({layoutScroll:!0}),g0.current=e}return g0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),BY={pan:{Feature:tY},drag:{Feature:eY,ProjectionNode:UR,MeasureLayout:NR}},jY=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function VY(e){const t=jY.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function e1(e,t,n=1){const[r,i]=VY(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return kR(l)?parseFloat(l):l}else return Wy(i)?e1(i,t,n+1):i}function WY(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!Wy(a))return;const l=e1(a,r);l&&i.set(l)});for(const i in t){const a=t[i];if(!Wy(a))continue;const l=e1(a,r);l&&(t[i]=l,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const UY=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),HR=e=>UY.has(e),HY=e=>Object.keys(e).some(HR),a2=e=>e===Qa||e===he,s2=(e,t)=>parseFloat(e.split(", ")[t]),l2=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return s2(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?s2(a[1],e):0}},GY=new Set(["x","y","z"]),KY=tf.filter(e=>!GY.has(e));function qY(e){const t=[];return KY.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const El={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:l2(4,13),y:l2(5,14)};El.translateX=El.x;El.translateY=El.y;const YY=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:l}=a,u={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{u[d]=El[d](r,a)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const h=t.getValue(d);h&&h.jump(u[d]),e[d]=El[d](c,a)}),e},XY=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(HR);let a=[],l=!1;const u=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let h=n[c],p=wu(h);const v=t[c];let g;if(pp(v)){const w=v.length,S=v[0]===null?1:0;h=v[S],p=wu(h);for(let k=S;k=0?window.pageYOffset:null,d=YY(t,e,u);return a.length&&a.forEach(([h,p])=>{e.getValue(h).set(p)}),e.render(),dm&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function QY(e,t,n,r){return HY(t)?XY(e,t,n,r):{target:t,transitionEnd:r}}const ZY=(e,t,n,r)=>{const i=WY(e,t,r);return t=i.target,r=i.transitionEnd,QY(e,t,n,r)},t1={current:null},GR={current:!1};function JY(){if(GR.current=!0,!!dm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t1.current=e.matches;e.addListener(t),t()}else t1.current=!1}function eX(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],l=n[i];if(Un(a))e.addValue(i,a),yp(r)&&r.add(i);else if(Un(l))e.addValue(i,kl(a,{owner:e})),yp(r)&&r.remove(i);else if(l!==a)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,kl(u!==void 0?u:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const u2=new WeakMap,KR=Object.keys(Oc),tX=KR.length,c2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nX=Ub.length;class rX{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},l={}){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=()=>ut.render(this.render,!1,!0);const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.isControllingVariants=pm(n),this.isVariantNode=RA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{});for(const p in h){const v=h[p];u[p]!==void 0&&Un(v)&&(v.set(u[p],!1),yp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,u2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),GR.current||JY(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:t1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){u2.delete(this.current),this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(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,n){const r=Xa.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ut.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let l,u;for(let c=0;cthis.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:v,layoutRoot:g})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Dt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=kl(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Zb(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Un(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class qR extends rX{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let l=bq(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),l&&(l=i(l))),a){gq(this,r,l);const u=ZY(this,r,l,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function iX(e){return window.getComputedStyle(e)}class oX extends qR{readValueFromInstance(t,n){if(Xa.has(n)){const r=rx(n);return r&&r.default||0}else{const r=iX(t),i=(FA(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return FR(t,n)}build(t,n,r,i){Kb(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Qb(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){BA(t,n,r,i)}}class aX extends qR{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xa.has(n)){const r=rx(n);return r&&r.default||0}return n=jA.has(n)?n:Vb(n),t.getAttribute(n)}measureInstanceViewportBox(){return Dt()}scrapeMotionValuesFromProps(t,n){return WA(t,n)}build(t,n,r,i){Yb(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){VA(t,n,r,i)}mount(t){this.isSVGTag=Xb(t.tagName),super.mount(t)}}const sX=(e,t)=>Gb(e)?new aX(t,{enableHardwareAcceleration:!1}):new oX(t,{enableHardwareAcceleration:!0}),lX={layout:{ProjectionNode:UR,MeasureLayout:NR}},uX={...Fq,...eK,...BY,...lX},Za=uG((e,t)=>jG(e,t,uX,sX));function YR(){const e=_.useRef(!1);return jb(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function cX(){const e=YR(),[t,n]=_.useState(0),r=_.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.useCallback(()=>ut.postRender(r),[r]),t]}class fX extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dX({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:c}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${a}px !important; - height: ${l}px !important; - top: ${u}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(d)}},[t]),_.createElement(fX,{isPresent:t,childRef:r,sizeRef:i},_.cloneElement(e,{ref:r}))}const y0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const u=UA(hX),c=_.useId(),d=_.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:h=>{u.set(h,!0);for(const p of u.values())if(!p)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),a?void 0:[n]);return _.useMemo(()=>{u.forEach((h,p)=>u.set(p,!1))},[n]),_.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=_.createElement(dX,{isPresent:n},e)),_.createElement(ef.Provider,{value:d},e)};function hX(){return new Map}function pX(e){return _.useEffect(()=>()=>e(),[])}const _a=e=>e.key||"";function mX(e,t){e.forEach(n=>{const r=_a(n);t.set(r,n)})}function vX(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Il=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:l="sync"})=>{const u=_.useContext(Hb).forceRender||cX()[0],c=YR(),d=vX(e);let h=d;const p=_.useRef(new Map).current,v=_.useRef(h),g=_.useRef(new Map).current,w=_.useRef(!0);if(jb(()=>{w.current=!1,mX(d,g),v.current=h}),pX(()=>{w.current=!0,g.clear(),p.clear()}),w.current)return _.createElement(_.Fragment,null,h.map(x=>_.createElement(y0,{key:_a(x),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:l},x)));h=[...h];const S=v.current.map(_a),k=d.map(_a),b=S.length;for(let x=0;x{if(k.indexOf(C)!==-1)return;const R=g.get(C);if(!R)return;const $=S.indexOf(C);let z=x;if(!z){const L=()=>{p.delete(C);const j=Array.from(g.keys()).filter(K=>!k.includes(K));if(j.forEach(K=>g.delete(K)),v.current=d.filter(K=>{const q=_a(K);return q===C||j.includes(q)}),!p.size){if(c.current===!1)return;u(),r&&r()}};z=_.createElement(y0,{key:_a(R),isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:a,mode:l},R),p.set(C,z)}h.splice($,0,z)}),h=h.map(x=>{const C=x.key;return p.has(C)?x:_.createElement(y0,{key:_a(x),isPresent:!0,presenceAffectsLayout:a,mode:l},x)}),_.createElement(_.Fragment,null,p.size?h:h.map(x=>_.cloneElement(x)))};var gX={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},XR=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:a=!1,position:l="bottom",duration:u=5e3,containerStyle:c,motionVariants:d=gX,toastSpacing:h="0.5rem"}=e,[p,v]=_.useState(u),g=nY();fp(()=>{g||r==null||r()},[g]),fp(()=>{v(u)},[u]);const w=()=>v(null),S=()=>v(u),k=()=>{g&&i()};_.useEffect(()=>{g&&a&&i()},[g,a,i]),JH(k,p);const b=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...c}),[c,h]),x=_.useMemo(()=>QH(l),[l]);return T.jsx(Za.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:w,onHoverEnd:S,custom:{position:l},style:x,children:T.jsx(ae.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Oo(n,{id:t,onClose:k})})})});XR.displayName="ToastComponent";var f2={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),T.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},io=ye((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:a=!1,children:l,className:u,__css:c,...d}=e,h=Se("chakra-icon",u),p=no("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...p},g={ref:t,focusable:a,className:h,__css:v},w=r??f2.viewBox;if(n&&typeof n!="string")return T.jsx(ae.svg,{as:n,...g,...d});const S=l??f2.path;return T.jsx(ae.svg,{verticalAlign:"middle",viewBox:w,...g,...d,children:S})});io.displayName="Icon";function yX(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=_.Children.toArray(e.path),l=ye((u,c)=>T.jsx(io,{ref:c,viewBox:t,...i,...u,children:a.length?a:T.jsx("path",{fill:"currentColor",d:n})}));return l.displayName=r,l}function bX(e){return T.jsx(io,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function xX(e){return T.jsx(io,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function d2(e){return T.jsx(io,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var SX=am({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ux=ye((e,t)=>{const n=no("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:l="transparent",className:u,...c}=gn(e),d=Se("chakra-spinner",u),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:l,borderLeftColor:l,animation:`${SX} ${a} linear infinite`,...n};return T.jsx(ae.div,{ref:t,__css:h,className:d,...c,children:r&&T.jsx(ae.span,{srOnly:!0,children:r})})});ux.displayName="Spinner";var[wX,cx]=ln({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[_X,fx]=ln({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),QR={info:{icon:xX,colorScheme:"blue"},warning:{icon:d2,colorScheme:"orange"},success:{icon:bX,colorScheme:"green"},error:{icon:d2,colorScheme:"red"},loading:{icon:ux,colorScheme:"blue"}};function CX(e){return QR[e].colorScheme}function kX(e){return QR[e].icon}var ZR=ye(function(t,n){const r=fx(),{status:i}=cx(),a={display:"inline",...r.description};return T.jsx(ae.div,{ref:n,"data-status":i,...t,className:Se("chakra-alert__desc",t.className),__css:a})});ZR.displayName="AlertDescription";function ym(e){const{status:t}=cx(),n=kX(t),r=fx(),i=t==="loading"?r.spinner:r.icon;return T.jsx(ae.span,{display:"inherit","data-status":t,...e,className:Se("chakra-alert__icon",e.className),__css:i,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}ym.displayName="AlertIcon";var JR=ye(function(t,n){const r=fx(),{status:i}=cx();return T.jsx(ae.div,{ref:n,"data-status":i,...t,className:Se("chakra-alert__title",t.className),__css:r.title})});JR.displayName="AlertTitle";var bm=ye(function(t,n){var r;const{status:i="info",addRole:a=!0,...l}=gn(t),u=(r=t.colorScheme)!=null?r:CX(i),c=ro("Alert",{...t,colorScheme:u}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return T.jsx(wX,{value:{status:i},children:T.jsx(_X,{value:c,children:T.jsx(ae.div,{"data-status":i,role:a?"alert":void 0,ref:n,...l,className:Se("chakra-alert",t.className),__css:d})})})});bm.displayName="Alert";function EX(e){return T.jsx(io,{focusable:"false","aria-hidden":!0,...e,children:T.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var dx=ye(function(t,n){const r=no("CloseButton",t),{children:i,isDisabled:a,__css:l,...u}=gn(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ae.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...c,...r,...l},...u,children:i||T.jsx(EX,{width:"1em",height:"1em"})})});dx.displayName="CloseButton";var PX={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nc=TX(PX);function TX(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,a)=>{r(l=>({...l,[a]:l[a].filter(u=>u.id!=i)}))},notify:(i,a)=>{const l=AX(i,a),{position:u,id:c}=l;return r(d=>{var h,p;const g=u.includes("top")?[l,...(h=d[u])!=null?h:[]]:[...(p=d[u])!=null?p:[],l];return{...d,[u]:g}}),c},update:(i,a)=>{i&&r(l=>{const u={...l},{position:c,index:d}=ak(u,i);return c&&d!==-1&&(u[c][d]={...u[c][d],...a,message:IX(a)}),u})},closeAll:({positions:i}={})=>{r(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,d)=>(c[d]=a[d].map(h=>({...h,requestClose:!0})),c),{...a}))},close:i=>{r(a=>{const l=EA(a,i);return l?{...a,[l]:a[l].map(u=>u.id==i?{...u,requestClose:!0}:u)}:a})},isActive:i=>!!ak(nc.getState(),i).position}}var h2=0;function AX(e,t={}){var n,r;h2+=1;const i=(n=t.id)!=null?n:h2,a=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>nc.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var RX=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:a,onClose:l,description:u,colorScheme:c,icon:d}=e,h=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return T.jsxs(bm,{addRole:!1,status:t,variant:n,id:h==null?void 0:h.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[T.jsx(ym,{children:d}),T.jsxs(ae.div,{flex:"1",maxWidth:"100%",children:[i&&T.jsx(JR,{id:h==null?void 0:h.title,children:i}),u&&T.jsx(ZR,{id:h==null?void 0:h.description,display:"block",children:u})]}),a&&T.jsx(dx,{size:"sm",onClick:l,position:"absolute",insetEnd:1,top:1})]})};function IX(e={}){const{render:t,toastComponent:n=RX}=e;return i=>typeof t=="function"?t({...i,...e}):T.jsx(n,{...i,...e})}var[MX,Ote]=ln({name:"ToastOptionsContext",strict:!1}),$X=e=>{const t=_.useSyncExternalStore(nc.subscribe,nc.getState,nc.getState),{motionVariants:n,component:r=XR,portalProps:i}=e,l=Object.keys(t).map(u=>{const c=t[u];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:ZH(u),children:T.jsx(Il,{initial:!1,children:c.map(d=>T.jsx(r,{motionVariants:n,...d},d.id))})},u)});return T.jsx(Qc,{...i,children:l})},FX=e=>function({children:n,theme:r=e,toastOptions:i,...a}){return T.jsxs(YH,{theme:r,...a,children:[T.jsx(MX,{value:i==null?void 0:i.defaultOptions,children:n}),T.jsx($X,{...i})]})},OX=FX(vA),DX=Object.defineProperty,NX=(e,t,n)=>t in e?DX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t,n)=>(NX(e,typeof t!="symbol"?t+"":t,n),n);function p2(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var LX=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function m2(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function v2(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var n1=typeof window<"u"?_.useLayoutEffect:_.useEffect,xp=e=>e,zX=class{constructor(){Pt(this,"descendants",new Map),Pt(this,"register",e=>{if(e!=null)return LX(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Pt(this,"unregister",e=>{this.descendants.delete(e);const t=p2(Array.from(this.descendants.keys()));this.assignIndex(t)}),Pt(this,"destroy",()=>{this.descendants.clear()}),Pt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Pt(this,"count",()=>this.descendants.size),Pt(this,"enabledCount",()=>this.enabledValues().length),Pt(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Pt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Pt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Pt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Pt(this,"first",()=>this.item(0)),Pt(this,"firstEnabled",()=>this.enabledItem(0)),Pt(this,"last",()=>this.item(this.descendants.size-1)),Pt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Pt(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Pt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Pt(this,"next",(e,t=!0)=>{const n=m2(e,this.count(),t);return this.item(n)}),Pt(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=m2(r,this.enabledCount(),t);return this.enabledItem(i)}),Pt(this,"prev",(e,t=!0)=>{const n=v2(e,this.count()-1,t);return this.item(n)}),Pt(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=v2(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Pt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=p2(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function BX(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 Ir(...e){return t=>{e.forEach(n=>{BX(n,t)})}}function jX(...e){return _.useMemo(()=>Ir(...e),e)}function VX(){const e=_.useRef(new zX);return n1(()=>()=>e.current.destroy()),e.current}var[WX,eI]=ln({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function UX(e){const t=eI(),[n,r]=_.useState(-1),i=_.useRef(null);n1(()=>()=>{i.current&&t.unregister(i.current)},[]),n1(()=>{if(!i.current)return;const l=Number(i.current.dataset.index);n!=l&&!Number.isNaN(l)&&r(l)});const a=xp(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:Ir(a,i)}}function HX(){return[xp(WX),()=>xp(eI()),()=>VX(),i=>UX(i)]}var[GX,xm]=ln({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[KX,hx]=ln({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[qX,Dte,YX,XX]=HX(),r1=ye(function(t,n){const{getButtonProps:r}=hx(),i=r(t,n),l={display:"flex",alignItems:"center",width:"100%",outline:0,...xm().button};return T.jsx(ae.button,{...i,className:Se("chakra-accordion__button",t.className),__css:l})});r1.displayName="AccordionButton";function QX(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(v,g)=>v!==g}=e,a=En(r),l=En(i),[u,c]=_.useState(n),d=t!==void 0,h=d?t:u,p=En(v=>{const w=typeof v=="function"?v(h):v;l(h,w)&&(d||c(w),a(w))},[d,a,h,l]);return[h,p]}function ZX(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:a,...l}=e;tQ(e),nQ(e);const u=YX(),[c,d]=_.useState(-1);_.useEffect(()=>()=>{d(-1)},[]);const[h,p]=QX({value:r,defaultValue(){return i?n??[]:n??-1},onChange:t});return{index:h,setIndex:p,htmlProps:l,getAccordionItemProps:g=>{let w=!1;return g!==null&&(w=Array.isArray(h)?h.includes(g):h===g),{isOpen:w,onChange:k=>{if(g!==null)if(i&&Array.isArray(h)){const b=k?h.concat(g):h.filter(x=>x!==g);p(b)}else k?p(g):a&&p(-1)}}},focusedIndex:c,setFocusedIndex:d,descendants:u}}var[JX,px]=ln({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function eQ(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:a,setFocusedIndex:l}=px(),u=_.useRef(null),c=_.useId(),d=r??c,h=`accordion-button-${d}`,p=`accordion-panel-${d}`;rQ(e);const{register:v,index:g,descendants:w}=XX({disabled:t&&!n}),{isOpen:S,onChange:k}=a(g===-1?null:g);iQ({isOpen:S,isDisabled:t});const b=()=>{k==null||k(!0)},x=()=>{k==null||k(!1)},C=_.useCallback(()=>{k==null||k(!S),l(g)},[g,l,S,k]),R=_.useCallback(j=>{const q={ArrowDown:()=>{const J=w.nextEnabled(g);J==null||J.node.focus()},ArrowUp:()=>{const J=w.prevEnabled(g);J==null||J.node.focus()},Home:()=>{const J=w.firstEnabled();J==null||J.node.focus()},End:()=>{const J=w.lastEnabled();J==null||J.node.focus()}}[j.key];q&&(j.preventDefault(),q(j))},[w,g]),$=_.useCallback(()=>{l(g)},[l,g]),z=_.useCallback(function(K={},q=null){return{...K,type:"button",ref:Ir(v,u,q),id:h,disabled:!!t,"aria-expanded":!!S,"aria-controls":p,onClick:Ke(K.onClick,C),onFocus:Ke(K.onFocus,$),onKeyDown:Ke(K.onKeyDown,R)}},[h,t,S,C,$,R,p,v]),L=_.useCallback(function(K={},q=null){return{...K,ref:q,role:"region",id:p,"aria-labelledby":h,hidden:!S}},[h,S,p]);return{isOpen:S,isDisabled:t,isFocusable:n,onOpen:b,onClose:x,getButtonProps:z,getPanelProps:L,htmlProps:i}}function tQ(e){const t=e.index||e.defaultIndex,n=t!=null&&!Array.isArray(t)&&e.allowMultiple;Zc({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function nQ(e){Zc({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 rQ(e){Zc({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 iQ(e){Zc({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function tI(e){const{isOpen:t,isDisabled:n}=hx(),{reduceMotion:r}=px(),i=Se("chakra-accordion__icon",e.className),a=xm(),l={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return T.jsx(io,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:l,...e,children:T.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}tI.displayName="AccordionIcon";var i1=ye(function(t,n){const{children:r,className:i}=t,{htmlProps:a,...l}=eQ(t),c={...xm().container,overflowAnchor:"none"},d=_.useMemo(()=>l,[l]);return T.jsx(KX,{value:d,children:T.jsx(ae.div,{ref:n,...a,className:Se("chakra-accordion__item",i),__css:c,children:typeof r=="function"?r({isExpanded:!!l.isOpen,isDisabled:!!l.isDisabled}):r})})});i1.displayName="AccordionItem";var Qs={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Da={enter:{duration:.2,ease:Qs.easeOut},exit:{duration:.1,ease:Qs.easeIn}},Ki={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},oQ=e=>e!=null&&parseInt(e.toString(),10)>0,g2={exit:{height:{duration:.2,ease:Qs.ease},opacity:{duration:.3,ease:Qs.ease}},enter:{height:{duration:.3,ease:Qs.ease},opacity:{duration:.4,ease:Qs.ease}}},aQ={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:oQ(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(a=n==null?void 0:n.exit)!=null?a:Ki.exit(g2.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(a=n==null?void 0:n.enter)!=null?a:Ki.enter(g2.enter,i)}}},nI=_.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:a=0,endingHeight:l="auto",style:u,className:c,transition:d,transitionEnd:h,...p}=e,[v,g]=_.useState(!1);_.useEffect(()=>{const x=setTimeout(()=>{g(!0)});return()=>clearTimeout(x)},[]),Zc({condition:Number(a)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const w=parseFloat(a.toString())>0,S={startingHeight:a,endingHeight:l,animateOpacity:i,transition:v?d:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:r?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:w?"block":"none"}}},k=r?n:!0,b=n||r?"enter":"exit";return T.jsx(Il,{initial:!1,custom:S,children:k&&T.jsx(Za.div,{ref:t,...p,className:Se("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:S,variants:aQ,initial:r?"exit":!1,animate:b,exit:"exit"})})});nI.displayName="Collapse";var sQ={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Ki.enter(Da.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Ki.exit(Da.exit,n),transitionEnd:t==null?void 0:t.exit}}},rI={initial:"exit",animate:"enter",exit:"exit",variants:sQ},lQ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:a,transition:l,transitionEnd:u,delay:c,...d}=t,h=i||r?"enter":"exit",p=r?i&&r:!0,v={transition:l,transitionEnd:u,delay:c};return T.jsx(Il,{custom:v,children:p&&T.jsx(Za.div,{ref:n,className:Se("chakra-fade",a),custom:v,...rI,animate:h,...d})})});lQ.displayName="Fade";var uQ={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:Ki.exit(Da.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Ki.enter(Da.enter,n),transitionEnd:e==null?void 0:e.enter}}},iI={initial:"exit",animate:"enter",exit:"exit",variants:uQ},cQ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,initialScale:l=.95,className:u,transition:c,transitionEnd:d,delay:h,...p}=t,v=r?i&&r:!0,g=i||r?"enter":"exit",w={initialScale:l,reverse:a,transition:c,transitionEnd:d,delay:h};return T.jsx(Il,{custom:w,children:v&&T.jsx(Za.div,{ref:n,className:Se("chakra-offset-slide",u),...iI,animate:g,custom:w,...p})})});cQ.displayName="ScaleFade";var fQ={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:Ki.exit(Da.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Ki.enter(Da.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:a})=>{var l;const u={x:t,y:e};return{opacity:0,transition:(l=n==null?void 0:n.exit)!=null?l:Ki.exit(Da.exit,a),...i?{...u,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...u,...r==null?void 0:r.exit}}}}},Du={initial:"initial",animate:"enter",exit:"exit",variants:fQ},dQ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,className:l,offsetX:u=0,offsetY:c=8,transition:d,transitionEnd:h,delay:p,...v}=t,g=r?i&&r:!0,w=i||r?"enter":"exit",S={offsetX:u,offsetY:c,reverse:a,transition:d,transitionEnd:h,delay:p};return T.jsx(Il,{custom:S,children:g&&T.jsx(Za.div,{ref:n,className:Se("chakra-offset-slide",l),custom:S,...Du,animate:w,...v})})});dQ.displayName="SlideFade";var oI=ye(function(t,n){const{className:r,motionProps:i,...a}=t,{reduceMotion:l}=px(),{getPanelProps:u,isOpen:c}=hx(),d=u(a,n),h=Se("chakra-accordion__panel",r),p=xm();l||delete d.hidden;const v=T.jsx(ae.div,{...d,__css:p.panel,className:h});return l?v:T.jsx(nI,{in:c,...i,children:v})});oI.displayName="AccordionPanel";var aI=ye(function({children:t,reduceMotion:n,...r},i){const a=ro("Accordion",r),l=gn(r),{htmlProps:u,descendants:c,...d}=ZX(l),h=_.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return T.jsx(qX,{value:c,children:T.jsx(JX,{value:h,children:T.jsx(GX,{value:a,children:T.jsx(ae.div,{ref:i,...u,className:Se("chakra-accordion",r.className),__css:a.root,children:t})})})})});aI.displayName="Accordion";function hQ(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[Nte,pQ]=ln({strict:!1,name:"ButtonGroupContext"});function mQ(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function o1(e){const{children:t,className:n,...r}=e,i=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=Se("chakra-button__icon",n);return T.jsx(ae.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:i})}o1.displayName="ButtonIcon";function a1(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=T.jsx(ux,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:l,...u}=e,c=Se("chakra-button__spinner",a),d=n==="start"?"marginEnd":"marginStart",h=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...l}),[l,t,d,r]);return T.jsx(ae.div,{className:c,...u,__css:h,children:i})}a1.displayName="ButtonSpinner";var Yo=ye((e,t)=>{const n=pQ(),r=no("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:a,isActive:l,children:u,leftIcon:c,rightIcon:d,loadingText:h,iconSpacing:p="0.5rem",type:v,spinner:g,spinnerPlacement:w="start",className:S,as:k,...b}=gn(e),x=_.useMemo(()=>{const z={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:z}}},[r,n]),{ref:C,type:R}=mQ(k),$={rightIcon:d,leftIcon:c,iconSpacing:p,children:u};return T.jsxs(ae.button,{ref:jX(t,C),as:k,type:v??R,"data-active":Ne(l),"data-loading":Ne(a),__css:x,className:Se("chakra-button",S),...b,disabled:i||a,children:[a&&w==="start"&&T.jsx(a1,{className:"chakra-button__spinner--start",label:h,placement:"start",spacing:p,children:g}),a?h||T.jsx(ae.span,{opacity:0,children:T.jsx(y2,{...$})}):T.jsx(y2,{...$}),a&&w==="end"&&T.jsx(a1,{className:"chakra-button__spinner--end",label:h,placement:"end",spacing:p,children:g})]})});Yo.displayName="Button";function y2(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(o1,{marginEnd:i,children:t}),r,n&&T.jsx(o1,{marginStart:i,children:n})]})}var[vQ,sI]=KH("Card"),lI=ye(function(t,n){const{className:r,...i}=t,a=sI();return T.jsx(ae.div,{ref:n,className:Se("chakra-card__body",r),__css:a.body,...i})}),gQ=ye(function(t,n){const{className:r,...i}=t,a=sI();return T.jsx(ae.div,{ref:n,className:Se("chakra-card__header",r),__css:a.header,...i})}),uI=ye(function(t,n){const{className:r,children:i,direction:a="column",justify:l,align:u,...c}=gn(t),d=ro("Card",t);return T.jsx(ae.div,{ref:n,className:Se("chakra-card",r),__css:{display:"flex",flexDirection:a,justifyContent:l,alignItems:u,position:"relative",minWidth:0,wordWrap:"break-word",...d.container},...c,children:T.jsx(vQ,{value:d,children:i})})}),[Lte,yQ]=ln({name:"CheckboxGroupContext",strict:!1});function bQ(e){const[t,n]=_.useState(e),[r,i]=_.useState(!1);return e!==t&&(i(!0),n(e)),r}function xQ(e){return T.jsx(ae.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:T.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function SQ(e){return T.jsx(ae.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:T.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function wQ(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?SQ:xQ;return n||t?T.jsx(ae.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:T.jsx(i,{...r})}):null}var[_Q,cI]=ln({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[CQ,Sm]=ln({strict:!1,name:"FormControlContext"});function kQ(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:a,...l}=e,u=_.useId(),c=t||`field-${u}`,d=`${c}-label`,h=`${c}-feedback`,p=`${c}-helptext`,[v,g]=_.useState(!1),[w,S]=_.useState(!1),[k,b]=_.useState(!1),x=_.useCallback((L={},j=null)=>({id:p,...L,ref:Ir(j,K=>{K&&S(!0)})}),[p]),C=_.useCallback((L={},j=null)=>({...L,ref:j,"data-focus":Ne(k),"data-disabled":Ne(i),"data-invalid":Ne(r),"data-readonly":Ne(a),id:L.id!==void 0?L.id:d,htmlFor:L.htmlFor!==void 0?L.htmlFor:c}),[c,i,k,r,a,d]),R=_.useCallback((L={},j=null)=>({id:h,...L,ref:Ir(j,K=>{K&&g(!0)}),"aria-live":"polite"}),[h]),$=_.useCallback((L={},j=null)=>({...L,...l,ref:j,role:"group","data-focus":Ne(k),"data-disabled":Ne(i),"data-invalid":Ne(r),"data-readonly":Ne(a)}),[l,i,k,r,a]),z=_.useCallback((L={},j=null)=>({...L,ref:j,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!k,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:v,setHasFeedbackText:g,hasHelpText:w,setHasHelpText:S,id:c,labelId:d,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:x,getErrorMessageProps:R,getRootProps:$,getLabelProps:C,getRequiredIndicatorProps:z}}var EQ=ye(function(t,n){const r=ro("Form",t),i=gn(t),{getRootProps:a,htmlProps:l,...u}=kQ(i),c=Se("chakra-form-control",t.className);return T.jsx(CQ,{value:u,children:T.jsx(_Q,{value:r,children:T.jsx(ae.div,{...a({},n),className:c,__css:r.container})})})});EQ.displayName="FormControl";var PQ=ye(function(t,n){const r=Sm(),i=cI(),a=Se("chakra-form__helper-text",t.className);return T.jsx(ae.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:a})});PQ.displayName="FormHelperText";var rc=ye(function(t,n){var r;const i=no("FormLabel",t),a=gn(t),{className:l,children:u,requiredIndicator:c=T.jsx(fI,{}),optionalIndicator:d=null,...h}=a,p=Sm(),v=(r=p==null?void 0:p.getLabelProps(h,n))!=null?r:{ref:n,...h};return T.jsxs(ae.label,{...v,className:Se("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...i},children:[u,p!=null&&p.isRequired?c:d]})});rc.displayName="FormLabel";var fI=ye(function(t,n){const r=Sm(),i=cI();if(!(r!=null&&r.isRequired))return null;const a=Se("chakra-form__required-indicator",t.className);return T.jsx(ae.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:a})});fI.displayName="RequiredIndicator";function dI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...a}=mx(e);return{...a,disabled:t,readOnly:r,required:i,"aria-invalid":al(n),"aria-required":al(i),"aria-readonly":al(r)}}function mx(e){var t,n,r;const i=Sm(),{id:a,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:h,isReadOnly:p,isDisabled:v,onFocus:g,onBlur:w,...S}=e,k=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&k.push(i.feedbackId),i!=null&&i.hasHelpText&&k.push(i.helpTextId),{...S,"aria-describedby":k.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=l??v)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=u??p)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=c??d)!=null?r:i==null?void 0:i.isRequired,isInvalid:h??(i==null?void 0:i.isInvalid),onFocus:Ke(i==null?void 0:i.onFocus,g),onBlur:Ke(i==null?void 0:i.onBlur,w)}}var TQ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},AQ=()=>typeof document<"u",b2=!1,af=null,Ga=!1,s1=!1,l1=new Set;function vx(e,t){l1.forEach(n=>n(e,t))}var RQ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function IQ(e){return!(e.metaKey||!RQ&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function x2(e){Ga=!0,IQ(e)&&(af="keyboard",vx("keyboard",e))}function ks(e){if(af="pointer",e.type==="mousedown"||e.type==="pointerdown"){Ga=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;vx("pointer",e)}}function MQ(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function $Q(e){MQ(e)&&(Ga=!0,af="virtual")}function FQ(e){e.target===window||e.target===document||(!Ga&&!s1&&(af="virtual",vx("virtual",e)),Ga=!1,s1=!1)}function OQ(){Ga=!1,s1=!0}function S2(){return af!=="pointer"}function DQ(){if(!AQ()||b2)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Ga=!0,e.apply(this,n)},document.addEventListener("keydown",x2,!0),document.addEventListener("keyup",x2,!0),document.addEventListener("click",$Q,!0),window.addEventListener("focus",FQ,!0),window.addEventListener("blur",OQ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ks,!0),document.addEventListener("pointermove",ks,!0),document.addEventListener("pointerup",ks,!0)):(document.addEventListener("mousedown",ks,!0),document.addEventListener("mousemove",ks,!0),document.addEventListener("mouseup",ks,!0)),b2=!0}function NQ(e){DQ(),e(S2());const t=()=>e(S2());return l1.add(t),()=>{l1.delete(t)}}function LQ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function zQ(e={}){const t=mx(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:a,id:l,onBlur:u,onFocus:c,"aria-describedby":d}=t,{defaultChecked:h,isChecked:p,isFocusable:v,onChange:g,isIndeterminate:w,name:S,value:k,tabIndex:b=void 0,"aria-label":x,"aria-labelledby":C,"aria-invalid":R,...$}=e,z=LQ($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),L=En(g),j=En(u),K=En(c),[q,J]=_.useState(!1),[Ie,je]=_.useState(!1),[Me,bt]=_.useState(!1),[ke,Oe]=_.useState(!1);_.useEffect(()=>NQ(J),[]);const W=_.useRef(null),[ie,se]=_.useState(!0),[re,Te]=_.useState(!!h),me=p!==void 0,Ee=me?p:re,Qe=_.useCallback(pe=>{if(r||n){pe.preventDefault();return}me||Te(Ee?pe.target.checked:w?!0:pe.target.checked),L==null||L(pe)},[r,n,Ee,me,w,L]);Go(()=>{W.current&&(W.current.indeterminate=!!w)},[w]),fp(()=>{n&&je(!1)},[n,je]),Go(()=>{const pe=W.current;if(!(pe!=null&&pe.form))return;const zt=()=>{Te(!!h)};return pe.form.addEventListener("reset",zt),()=>{var dt;return(dt=pe.form)==null?void 0:dt.removeEventListener("reset",zt)}},[]);const ze=n&&!v,st=_.useCallback(pe=>{pe.key===" "&&Oe(!0)},[Oe]),ft=_.useCallback(pe=>{pe.key===" "&&Oe(!1)},[Oe]);Go(()=>{if(!W.current)return;W.current.checked!==Ee&&Te(W.current.checked)},[W.current]);const xt=_.useCallback((pe={},zt=null)=>{const dt=fr=>{Ie&&fr.preventDefault(),Oe(!0)};return{...pe,ref:zt,"data-active":Ne(ke),"data-hover":Ne(Me),"data-checked":Ne(Ee),"data-focus":Ne(Ie),"data-focus-visible":Ne(Ie&&q),"data-indeterminate":Ne(w),"data-disabled":Ne(n),"data-invalid":Ne(a),"data-readonly":Ne(r),"aria-hidden":!0,onMouseDown:Ke(pe.onMouseDown,dt),onMouseUp:Ke(pe.onMouseUp,()=>Oe(!1)),onMouseEnter:Ke(pe.onMouseEnter,()=>bt(!0)),onMouseLeave:Ke(pe.onMouseLeave,()=>bt(!1))}},[ke,Ee,n,Ie,q,Me,w,a,r]),Ft=_.useCallback((pe={},zt=null)=>({...pe,ref:zt,"data-active":Ne(ke),"data-hover":Ne(Me),"data-checked":Ne(Ee),"data-focus":Ne(Ie),"data-focus-visible":Ne(Ie&&q),"data-indeterminate":Ne(w),"data-disabled":Ne(n),"data-invalid":Ne(a),"data-readonly":Ne(r)}),[ke,Ee,n,Ie,q,Me,w,a,r]),vt=_.useCallback((pe={},zt=null)=>({...z,...pe,ref:Ir(zt,dt=>{dt&&se(dt.tagName==="LABEL")}),onClick:Ke(pe.onClick,()=>{var dt;ie||((dt=W.current)==null||dt.click(),requestAnimationFrame(()=>{var fr;(fr=W.current)==null||fr.focus({preventScroll:!0})}))}),"data-disabled":Ne(n),"data-checked":Ne(Ee),"data-invalid":Ne(a)}),[z,n,Ee,a,ie]),yn=_.useCallback((pe={},zt=null)=>({...pe,ref:Ir(W,zt),type:"checkbox",name:S,value:k,id:l,tabIndex:b,onChange:Ke(pe.onChange,Qe),onBlur:Ke(pe.onBlur,j,()=>je(!1)),onFocus:Ke(pe.onFocus,K,()=>je(!0)),onKeyDown:Ke(pe.onKeyDown,st),onKeyUp:Ke(pe.onKeyUp,ft),required:i,checked:Ee,disabled:ze,readOnly:r,"aria-label":x,"aria-labelledby":C,"aria-invalid":R?!!R:a,"aria-describedby":d,"aria-disabled":n,style:TQ}),[S,k,l,Qe,j,K,st,ft,i,Ee,ze,r,x,C,R,a,d,n,b]),Or=_.useCallback((pe={},zt=null)=>({...pe,ref:zt,onMouseDown:Ke(pe.onMouseDown,BQ),"data-disabled":Ne(n),"data-checked":Ne(Ee),"data-invalid":Ne(a)}),[Ee,n,a]);return{state:{isInvalid:a,isFocused:Ie,isChecked:Ee,isActive:ke,isHovered:Me,isIndeterminate:w,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:vt,getCheckboxProps:xt,getIndicatorProps:Ft,getInputProps:yn,getLabelProps:Or,htmlProps:z}}function BQ(e){e.preventDefault(),e.stopPropagation()}var jQ={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},VQ={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},WQ=am({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),UQ=am({from:{opacity:0},to:{opacity:1}}),HQ=am({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),hI=ye(function(t,n){const r=yQ(),i={...r,...t},a=ro("Checkbox",i),l=gn(t),{spacing:u="0.5rem",className:c,children:d,iconColor:h,iconSize:p,icon:v=T.jsx(wQ,{}),isChecked:g,isDisabled:w=r==null?void 0:r.isDisabled,onChange:S,inputProps:k,...b}=l;let x=g;r!=null&&r.value&&l.value&&(x=r.value.includes(l.value));let C=S;r!=null&&r.onChange&&l.value&&(C=Rj(r.onChange,S));const{state:R,getInputProps:$,getCheckboxProps:z,getLabelProps:L,getRootProps:j}=zQ({...b,isDisabled:w,isChecked:x,onChange:C}),K=bQ(R.isChecked),q=_.useMemo(()=>({animation:K?R.isIndeterminate?`${UQ} 20ms linear, ${HQ} 200ms linear`:`${WQ} 200ms linear`:void 0,fontSize:p,color:h,...a.icon}),[h,p,K,R.isIndeterminate,a.icon]),J=_.cloneElement(v,{__css:q,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return T.jsxs(ae.label,{__css:{...VQ,...a.container},className:Se("chakra-checkbox",c),...j(),children:[T.jsx("input",{className:"chakra-checkbox__input",...$(k,n)}),T.jsx(ae.span,{__css:{...jQ,...a.control},className:"chakra-checkbox__control",...z(),children:J}),d&&T.jsx(ae.span,{className:"chakra-checkbox__label",...L(),__css:{marginStart:u,...a.label},children:d})]})});hI.displayName="Checkbox";function GQ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function pI(e,t){let n=GQ(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function w2(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function KQ(e,t,n){return e==null?e:(n{var q;return r==null?"":(q=b0(r,a,n))!=null?q:""}),v=typeof i<"u",g=v?i:h,w=mI(ko(g),a),S=n??w,k=_.useCallback(q=>{q!==g&&(v||p(q.toString()),d==null||d(q.toString(),ko(q)))},[d,v,g]),b=_.useCallback(q=>{let J=q;return c&&(J=KQ(J,l,u)),pI(J,S)},[S,c,u,l]),x=_.useCallback((q=a)=>{let J;g===""?J=ko(q):J=ko(g)+q,J=b(J),k(J)},[b,a,k,g]),C=_.useCallback((q=a)=>{let J;g===""?J=ko(-q):J=ko(g)-q,J=b(J),k(J)},[b,a,k,g]),R=_.useCallback(()=>{var q;let J;r==null?J="":J=(q=b0(r,a,n))!=null?q:l,k(J)},[r,n,a,k,l]),$=_.useCallback(q=>{var J;const Ie=(J=b0(q,a,S))!=null?J:l;k(Ie)},[S,a,k,l]),z=ko(g);return{isOutOfRange:z>u||z{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,r)}}function XQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var u1="data-focus-lock",vI="data-focus-lock-disabled",QQ="data-no-focus-lock",ZQ="data-autofocus-inside",JQ="data-no-autofocus";function x0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eZ(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var _2=new WeakMap;function gI(e,t){var n=eZ(t||null,function(r){return e.forEach(function(i){return x0(i,r)})});return _.useLayoutEffect(function(){var r=_2.get(n);if(r){var i=new Set(r),a=new Set(e),l=n.current;i.forEach(function(u){a.has(u)||x0(u,null)}),a.forEach(function(u){i.has(u)||x0(u,l)})}_2.set(n,e)},[e]),n}var S0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},fi=function(){return fi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(yZ)},bZ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],xx=bZ.join(","),xZ="".concat(xx,", [data-focus-guard]"),OI=function(e,t){return gi((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?xZ:xx)?[r]:[],OI(r))},[])},SZ=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?wm([e.contentDocument.body],t):[e]},wm=function(e,t){return e.reduce(function(n,r){var i,a=OI(r,t),l=(i=[]).concat.apply(i,a.map(function(u){return SZ(u,t)}));return n.concat(l,r.parentNode?gi(r.parentNode.querySelectorAll(xx)).filter(function(u){return u===r}):[])},[])},wZ=function(e){var t=e.querySelectorAll("[".concat(ZQ,"]"));return gi(t).map(function(n){return wm([n])}).reduce(function(n,r){return n.concat(r)},[])},Sx=function(e,t){return gi(e).filter(function(n){return AI(t,n)}).filter(function(n){return mZ(n)})},C2=function(e,t){return t===void 0&&(t=new Map),gi(e).filter(function(n){return RI(t,n)})},f1=function(e,t,n){return FI(Sx(wm(e,n),t),!0,n)},k2=function(e,t){return FI(Sx(wm(e),t),!1)},_Z=function(e,t){return Sx(wZ(e),t)},fl=function(e,t){return e.shadowRoot?fl(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:gi(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?fl(i,t):!1}return fl(n,t)})},CZ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(l,u){return!t.has(u)})},DI=function(e){return e.parentNode?DI(e.parentNode):e},wx=function(e){var t=Sp(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(u1);return n.push.apply(n,i?CZ(gi(DI(r).querySelectorAll("[".concat(u1,'="').concat(i,'"]:not([').concat(vI,'="disabled"])')))):[r]),n},[])},kZ=function(e){try{return e()}catch{return}},Lc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Lc(t.shadowRoot):t instanceof HTMLIFrameElement&&kZ(function(){return t.contentWindow.document})?Lc(t.contentWindow.document):t}},EZ=function(e,t){return e===t},PZ=function(e,t){return!!gi(e.querySelectorAll("iframe")).some(function(n){return EZ(n,t)})},NI=function(e,t){return t===void 0&&(t=Lc(EI(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:wx(e).some(function(n){return fl(n,t)||PZ(n,t)})},TZ=function(e){e===void 0&&(e=document);var t=Lc(e);return t?gi(e.querySelectorAll("[".concat(QQ,"]"))).some(function(n){return fl(n,t)}):!1},AZ=function(e,t){return t.filter($I).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},_x=function(e,t){return $I(e)&&e.name?AZ(e,t):e},RZ=function(e){var t=new Set;return e.forEach(function(n){return t.add(_x(n,e))}),e.filter(function(n){return t.has(n)})},E2=function(e){return e[0]&&e.length>1?_x(e[0],e):e[0]},P2=function(e,t){return e.length>1?e.indexOf(_x(e[t],e)):t},LI="NEW_FOCUS",IZ=function(e,t,n,r){var i=e.length,a=e[0],l=e[i-1],u=bx(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,d=r?t.indexOf(r):c,h=r?e.indexOf(r):-1,p=c-d,v=t.indexOf(a),g=t.indexOf(l),w=RZ(t),S=n!==void 0?w.indexOf(n):-1,k=S-(r?w.indexOf(r):c),b=P2(e,0),x=P2(e,i-1);if(c===-1||h===-1)return LI;if(!p&&h>=0)return h;if(c<=v&&u&&Math.abs(p)>1)return x;if(c>=g&&u&&Math.abs(p)>1)return b;if(p&&Math.abs(k)>1)return h;if(c<=v)return x;if(c>g)return b;if(p)return Math.abs(p)>1?h:(i+h+p)%i}},MZ=function(e){return function(t){var n,r=(n=II(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$Z=function(e,t,n){var r=e.map(function(a){var l=a.node;return l}),i=C2(r.filter(MZ(n)));return i&&i.length?E2(i):E2(C2(t))},d1=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&d1(e.parentNode.host||e.parentNode,t),t},w0=function(e,t){for(var n=d1(e),r=d1(t),i=0;i=0)return a}return!1},zI=function(e,t,n){var r=Sp(e),i=Sp(t),a=r[0],l=!1;return i.filter(Boolean).forEach(function(u){l=w0(l||u,u)||l,n.filter(Boolean).forEach(function(c){var d=w0(a,c);d&&(!l||fl(d,l)?l=d:l=w0(d,l))})}),l},FZ=function(e,t){return e.reduce(function(n,r){return n.concat(_Z(r,t))},[])},OZ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(gZ)},DZ=function(e,t){var n=Lc(Sp(e).length>0?document:EI(e).ownerDocument),r=wx(e).filter(wp),i=zI(n||e,e,r),a=new Map,l=k2(r,a),u=f1(r,a).filter(function(g){var w=g.node;return wp(w)});if(!(!u[0]&&(u=l,!u[0]))){var c=k2([i],a).map(function(g){var w=g.node;return w}),d=OZ(c,u),h=d.map(function(g){var w=g.node;return w}),p=IZ(h,c,n,t);if(p===LI){var v=$Z(l,h,FZ(r,a));if(v)return{node:v};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:d[p]}},NZ=function(e){var t=wx(e).filter(wp),n=zI(e,e,t),r=new Map,i=f1([n],r,!0),a=f1(t,r).filter(function(l){var u=l.node;return wp(u)}).map(function(l){var u=l.node;return u});return i.map(function(l){var u=l.node,c=l.index;return{node:u,index:c,lockItem:a.indexOf(u)>=0,guard:bx(u)}})},LZ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},_0=0,C0=!1,BI=function(e,t,n){n===void 0&&(n={});var r=DZ(e,t);if(!C0&&r){if(_0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),C0=!0,setTimeout(function(){C0=!1},1);return}_0++,LZ(r.node,n.focusOptions),_0--}};function Cx(e){setTimeout(e,1)}var zZ=function(){return document&&document.activeElement===document.body},BZ=function(){return zZ()||TZ()},dl=null,Zs=null,hl=null,zc=!1,jZ=function(){return!0},VZ=function(t){return(dl.whiteList||jZ)(t)},WZ=function(t,n){hl={observerNode:t,portaledElement:n}},UZ=function(t){return hl&&hl.portaledElement===t};function T2(e,t,n,r){var i=null,a=e;do{var l=r[a];if(l.guard)l.node.dataset.focusAutoGuard&&(i=l);else if(l.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var HZ=function(t){return t&&"current"in t?t.current:t},GZ=function(t){return t?!!zc:zc==="meanwhile"},KZ=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},qZ=function(t,n){return n.some(function(r){return KZ(t,r,r)})},_p=function(){var t=!1;if(dl){var n=dl,r=n.observed,i=n.persistentFocus,a=n.autoFocus,l=n.shards,u=n.crossFrame,c=n.focusOptions,d=r||hl&&hl.portaledElement,h=document&&document.activeElement;if(d){var p=[d].concat(l.map(HZ).filter(Boolean));if((!h||VZ(h))&&(i||GZ(u)||!BZ()||!Zs&&a)&&(d&&!(NI(p)||h&&qZ(h,p)||UZ(h))&&(document&&!Zs&&h&&!a?(h.blur&&h.blur(),document.body.focus()):(t=BI(p,Zs,{focusOptions:c}),hl={})),zc=!1,Zs=document&&document.activeElement),document){var v=document&&document.activeElement,g=NZ(p),w=g.map(function(S){var k=S.node;return k}).indexOf(v);w>-1&&(g.filter(function(S){var k=S.guard,b=S.node;return k&&b.dataset.focusAutoGuard}).forEach(function(S){var k=S.node;return k.removeAttribute("tabIndex")}),T2(w,g.length,1,g),T2(w,-1,-1,g))}}}return t},jI=function(t){_p()&&t&&(t.stopPropagation(),t.preventDefault())},kx=function(){return Cx(_p)},YZ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||WZ(r,n)},XZ=function(){return null},VI=function(){zc="just",Cx(function(){zc="meanwhile"})},QZ=function(){document.addEventListener("focusin",jI),document.addEventListener("focusout",kx),window.addEventListener("blur",VI)},ZZ=function(){document.removeEventListener("focusin",jI),document.removeEventListener("focusout",kx),window.removeEventListener("blur",VI)};function JZ(e){return e.filter(function(t){var n=t.disabled;return!n})}function eJ(e){var t=e.slice(-1)[0];t&&!dl&&QZ();var n=dl,r=n&&t&&t.id===n.id;dl=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var a=i.id;return a===n.id}).length||n.returnFocus(!t)),t?(Zs=null,(!r||n.observed!==t.observed)&&t.onActivation(),_p(),Cx(_p)):(ZZ(),Zs=null)}_I.assignSyncMedium(YZ);CI.assignMedium(kx);rZ.assignMedium(function(e){return e({moveFocusInside:BI,focusInside:NI})});const tJ=cZ(JZ,eJ)(XZ);var WI=_.forwardRef(function(t,n){return _.createElement(kI,Ha({sideCar:tJ,ref:n},t))}),UI=kI.propTypes||{};UI.sideCar;XQ(UI,["sideCar"]);WI.propTypes={};const A2=WI;function nJ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function rJ(e){var t;if(!nJ(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}var iJ=e=>e.hasAttribute("tabindex");function oJ(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function HI(e){return e.parentElement&&HI(e.parentElement)?!0:e.hidden}function aJ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function sJ(e){if(!rJ(e)||HI(e)||oJ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():aJ(e)?!0:iJ(e)}var lJ=["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]"],uJ=lJ.join(),cJ=e=>e.offsetWidth>0&&e.offsetHeight>0;function fJ(e){const t=Array.from(e.querySelectorAll(uJ));return t.unshift(e),t.filter(n=>sJ(n)&&cJ(n))}var R2,dJ=(R2=A2.default)!=null?R2:A2,GI=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:l,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:d}=e,h=_.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&fJ(r.current).length===0&&requestAnimationFrame(()=>{var w;(w=r.current)==null||w.focus()})},[t,r]),p=_.useCallback(()=>{var g;(g=n==null?void 0:n.current)==null||g.focus()},[n]),v=i&&!n;return T.jsx(dJ,{crossFrame:d,persistentFocus:c,autoFocus:u,disabled:l,onActivation:h,onDeactivation:p,returnFocus:v,children:a})};GI.displayName="FocusLock";var Cp=ye(function(t,n){const{htmlSize:r,...i}=t,a=ro("Input",i),l=gn(i),u=dI(l),c=Se("chakra-input",t.className);return T.jsx(ae.input,{size:r,...u,__css:a.field,ref:n,className:c})});Cp.displayName="Input";Cp.id="Input";function hJ(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Rr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var Eh=ye(function(t,n){const r=no("Text",t),{className:i,align:a,decoration:l,casing:u,...c}=gn(t),d=FH({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ae.p,{ref:n,className:Se("chakra-text",t.className),...d,...c,__css:r})});Eh.displayName="Text";var KI=e=>T.jsx(ae.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});KI.displayName="StackDivider";var qI=e=>T.jsx(ae.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});qI.displayName="StackItem";function pJ(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":hJ(n,i=>r[i])}}var Bc=ye((e,t)=>{const{isInline:n,direction:r,align:i,justify:a,spacing:l="0.5rem",wrap:u,children:c,divider:d,className:h,shouldWrapChildren:p,...v}=e,g=n?"row":r??"column",w=_.useMemo(()=>pJ({spacing:l,direction:g}),[l,g]),S=!!d,k=!p&&!S,b=_.useMemo(()=>{const C=hQ(c);return k?C:C.map((R,$)=>{const z=typeof R.key<"u"?R.key:$,L=$+1===C.length,K=p?T.jsx(qI,{children:R},z):R;if(!S)return K;const q=_.cloneElement(d,{__css:w}),J=L?null:q;return T.jsxs(_.Fragment,{children:[K,J]},z)})},[d,w,S,k,p,c]),x=Se("chakra-stack",h);return T.jsx(ae.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:g,flexWrap:u,gap:S?void 0:l,className:x,...v,children:b})});Bc.displayName="Stack";var sf=ye(function(t,n){const r=no("Heading",t),{className:i,...a}=gn(t);return T.jsx(ae.h2,{ref:n,className:Se("chakra-heading",t.className),...a,__css:r})});sf.displayName="Heading";var Mr=ae("div");Mr.displayName="Box";var YI=ye(function(t,n){const{size:r,centerContent:i=!0,...a}=t,l=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return T.jsx(Mr,{ref:n,boxSize:r,__css:{...l,flexShrink:0,flexGrow:0},...a})});YI.displayName="Square";var mJ=ye(function(t,n){const{size:r,...i}=t;return T.jsx(YI,{size:r,ref:n,borderRadius:"9999px",...i})});mJ.displayName="Circle";var Ex=ae("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Ex.displayName="Center";var vJ={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};ye(function(t,n){const{axis:r="both",...i}=t;return T.jsx(ae.div,{ref:n,__css:vJ[r],...i,position:"absolute"})});var Px=ye(function(t,n){const r=no("Code",t),{className:i,...a}=gn(t);return T.jsx(ae.code,{ref:n,className:Se("chakra-code",t.className),...a,__css:{display:"inline-block",...r}})});Px.displayName="Code";var XI=ye(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:a,borderRightWidth:l,borderWidth:u,borderStyle:c,borderColor:d,...h}=no("Divider",t),{className:p,orientation:v="horizontal",__css:g,...w}=gn(t),S={vertical:{borderLeftWidth:r||l||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||a||u||"1px",width:"100%"}};return T.jsx(ae.hr,{ref:n,"aria-orientation":v,...w,__css:{...h,border:"0",borderColor:d,borderStyle:c,...S[v],...g},className:Se("chakra-divider",p)})});XI.displayName="Divider";var Tr=ye(function(t,n){const{direction:r,align:i,justify:a,wrap:l,basis:u,grow:c,shrink:d,...h}=t,p={display:"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:l,flexBasis:u,flexGrow:c,flexShrink:d};return T.jsx(ae.div,{ref:n,__css:p,...h})});Tr.displayName="Flex";var gJ={slideInBottom:{...Du,custom:{offsetY:16,reverse:!0}},slideInRight:{...Du,custom:{offsetX:16,reverse:!0}},slideInTop:{...Du,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Du,custom:{offsetX:-16,reverse:!0}},scale:{...iI,custom:{initialScale:.95,reverse:!0}},none:{}},yJ=ae(Za.section),bJ=e=>gJ[e||"none"],QI=_.forwardRef((e,t)=>{const{preset:n,motionProps:r=bJ(n),...i}=e;return T.jsx(yJ,{ref:t,...r,...i})});QI.displayName="ModalTransition";var xJ=Object.defineProperty,SJ=(e,t,n)=>t in e?xJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wJ=(e,t,n)=>(SJ(e,typeof t!="symbol"?t+"":t,n),n),_J=class{constructor(){wJ(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},h1=new _J;function ZI(e,t){const[n,r]=_.useState(0);return _.useEffect(()=>{const i=e.current;if(i){if(t){const a=h1.add(i);r(a)}return()=>{h1.remove(i),r(0)}}},[t,e]),n}var CJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Es=new WeakMap,Yd=new WeakMap,Xd={},k0=0,JI=function(e){return e&&(e.host||JI(e.parentNode))},kJ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=JI(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EJ=function(e,t,n,r){var i=kJ(t,Array.isArray(e)?e:[e]);Xd[n]||(Xd[n]=new WeakMap);var a=Xd[n],l=[],u=new Set,c=new Set(i),d=function(p){!p||u.has(p)||(u.add(p),d(p.parentNode))};i.forEach(d);var h=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(v){if(u.has(v))h(v);else{var g=v.getAttribute(r),w=g!==null&&g!=="false",S=(Es.get(v)||0)+1,k=(a.get(v)||0)+1;Es.set(v,S),a.set(v,k),l.push(v),S===1&&w&&Yd.set(v,!0),k===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}})};return h(t),u.clear(),k0++,function(){l.forEach(function(p){var v=Es.get(p)-1,g=a.get(p)-1;Es.set(p,v),a.set(p,g),v||(Yd.has(p)||p.removeAttribute(r),Yd.delete(p)),g||p.removeAttribute(n)}),k0--,k0||(Es=new WeakMap,Es=new WeakMap,Yd=new WeakMap,Xd={})}},PJ=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||CJ(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),EJ(r,i,n,"aria-hidden")):function(){return null}};function TJ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:l=!0,onOverlayClick:u,onEsc:c}=e,d=_.useRef(null),h=_.useRef(null),[p,v,g]=RJ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");AJ(d,t&&l);const w=ZI(d,t),S=_.useRef(null),k=_.useCallback(K=>{S.current=K.target},[]),b=_.useCallback(K=>{K.key==="Escape"&&(K.stopPropagation(),a&&(n==null||n()),c==null||c())},[a,n,c]),[x,C]=_.useState(!1),[R,$]=_.useState(!1),z=_.useCallback((K={},q=null)=>({role:"dialog",...K,ref:Ir(q,d),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?v:void 0,"aria-describedby":R?g:void 0,onClick:Ke(K.onClick,J=>J.stopPropagation())}),[g,R,p,v,x]),L=_.useCallback(K=>{K.stopPropagation(),S.current===K.target&&h1.isTopModal(d.current)&&(i&&(n==null||n()),u==null||u())},[n,i,u]),j=_.useCallback((K={},q=null)=>({...K,ref:Ir(q,h),onClick:Ke(K.onClick,L),onKeyDown:Ke(K.onKeyDown,b),onMouseDown:Ke(K.onMouseDown,k)}),[b,k,L]);return{isOpen:t,onClose:n,headerId:v,bodyId:g,setBodyMounted:$,setHeaderMounted:C,dialogRef:d,overlayRef:h,getDialogProps:z,getDialogContainerProps:j,index:w}}function AJ(e,t){const n=e.current;_.useEffect(()=>{if(!(!e.current||!t))return PJ(e.current)},[t,e,n])}function RJ(e,...t){const n=_.useId(),r=e||n;return _.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[IJ,Ml]=ln({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[MJ,Ka]=ln({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),eM=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:a,initialFocusRef:l,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:h,preserveScrollBarGap:p,motionPreset:v,lockFocusAcrossFrames:g,onCloseComplete:w}=t,S=ro("Modal",t),b={...TJ(t),autoFocus:i,trapFocus:a,initialFocusRef:l,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:h,preserveScrollBarGap:p,motionPreset:v,lockFocusAcrossFrames:g};return T.jsx(MJ,{value:b,children:T.jsx(IJ,{value:S,children:T.jsx(Il,{onExitComplete:w,children:b.isOpen&&T.jsx(Qc,{...n,children:r})})})})};eM.displayName="Modal";var Ph="right-scroll-bar-position",Th="width-before-scroll-bar",$J="with-scroll-bars-hidden",FJ="--removed-body-scroll-bar-size",tM=SI(),E0=function(){},_m=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:E0,onWheelCapture:E0,onTouchMoveCapture:E0}),i=r[0],a=r[1],l=e.forwardProps,u=e.children,c=e.className,d=e.removeScrollBar,h=e.enabled,p=e.shards,v=e.sideCar,g=e.noIsolation,w=e.inert,S=e.allowPinchZoom,k=e.as,b=k===void 0?"div":k,x=e.gapMode,C=yI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,$=gI([n,t]),z=fi(fi({},C),i);return _.createElement(_.Fragment,null,h&&_.createElement(R,{sideCar:tM,removeScrollBar:d,shards:p,noIsolation:g,inert:w,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:x}),l?_.cloneElement(_.Children.only(u),fi(fi({},z),{ref:$})):_.createElement(b,fi({},z,{className:c,ref:$}),u))});_m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_m.classNames={fullWidth:Th,zeroRight:Ph};var I2,OJ=function(){if(I2)return I2;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function DJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OJ();return t&&e.setAttribute("nonce",t),e}function NJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function LJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zJ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=DJ())&&(NJ(t,n),LJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BJ=function(){var e=zJ();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nM=function(){var e=BJ(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},jJ={left:0,top:0,right:0,gap:0},P0=function(e){return parseInt(e||"",10)||0},VJ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[P0(n),P0(r),P0(i)]},WJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jJ;var t=VJ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},UJ=nM(),HJ=function(e,t,n,r){var i=e.left,a=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),` - .`.concat($J,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(u,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(l,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Ph,` { - right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(Th,` { - margin-right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(Ph," .").concat(Ph,` { - right: 0 `).concat(r,`; - } - - .`).concat(Th," .").concat(Th,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(FJ,": ").concat(u,`px; - } -`)},GJ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=_.useMemo(function(){return WJ(i)},[i]);return _.createElement(UJ,{styles:HJ(a,!t,i,n?"":"!important")})},p1=!1;if(typeof window<"u")try{var Qd=Object.defineProperty({},"passive",{get:function(){return p1=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch{p1=!1}var Ps=p1?{passive:!1}:!1,KJ=function(e){return e.tagName==="TEXTAREA"},rM=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KJ(e)&&n[t]==="visible")},qJ=function(e){return rM(e,"overflowY")},YJ=function(e){return rM(e,"overflowX")},M2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=iM(e,r);if(i){var a=oM(e,r),l=a[1],u=a[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},XJ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},QJ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},iM=function(e,t){return e==="v"?qJ(t):YJ(t)},oM=function(e,t){return e==="v"?XJ(t):QJ(t)},ZJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},JJ=function(e,t,n,r,i){var a=ZJ(e,window.getComputedStyle(t).direction),l=a*r,u=n.target,c=t.contains(u),d=!1,h=l>0,p=0,v=0;do{var g=oM(e,u),w=g[0],S=g[1],k=g[2],b=S-k-a*w;(w||b)&&iM(e,u)&&(p+=b,v+=w),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(h&&(i&&Math.abs(p)<1||!i&&l>p)||!h&&(i&&Math.abs(v)<1||!i&&-l>v))&&(d=!0),d},Zd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$2=function(e){return[e.deltaX,e.deltaY]},F2=function(e){return e&&"current"in e?e.current:e},eee=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tee=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},nee=0,Ts=[];function ree(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(nee++)[0],a=_.useState(nM)[0],l=_.useRef(e);_.useEffect(function(){l.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=tZ([e.lockRef.current],(e.shards||[]).map(F2),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!l.current.allowPinchZoom;var b=Zd(S),x=n.current,C="deltaX"in S?S.deltaX:x[0]-b[0],R="deltaY"in S?S.deltaY:x[1]-b[1],$,z=S.target,L=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in S&&L==="h"&&z.type==="range")return!1;var j=M2(L,z);if(!j)return!0;if(j?$=L:($=L==="v"?"h":"v",j=M2(L,z)),!j)return!1;if(!r.current&&"changedTouches"in S&&(C||R)&&(r.current=$),!$)return!0;var K=r.current||$;return JJ(K,k,S,K==="h"?C:R,!0)},[]),c=_.useCallback(function(S){var k=S;if(!(!Ts.length||Ts[Ts.length-1]!==a)){var b="deltaY"in k?$2(k):Zd(k),x=t.current.filter(function($){return $.name===k.type&&($.target===k.target||k.target===$.shadowParent)&&eee($.delta,b)})[0];if(x&&x.should){k.cancelable&&k.preventDefault();return}if(!x){var C=(l.current.shards||[]).map(F2).filter(Boolean).filter(function($){return $.contains(k.target)}),R=C.length>0?u(k,C[0]):!l.current.noIsolation;R&&k.cancelable&&k.preventDefault()}}},[]),d=_.useCallback(function(S,k,b,x){var C={name:S,delta:k,target:b,should:x,shadowParent:iee(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),h=_.useCallback(function(S){n.current=Zd(S),r.current=void 0},[]),p=_.useCallback(function(S){d(S.type,$2(S),S.target,u(S,e.lockRef.current))},[]),v=_.useCallback(function(S){d(S.type,Zd(S),S.target,u(S,e.lockRef.current))},[]);_.useEffect(function(){return Ts.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",c,Ps),document.addEventListener("touchmove",c,Ps),document.addEventListener("touchstart",h,Ps),function(){Ts=Ts.filter(function(S){return S!==a}),document.removeEventListener("wheel",c,Ps),document.removeEventListener("touchmove",c,Ps),document.removeEventListener("touchstart",h,Ps)}},[]);var g=e.removeScrollBar,w=e.inert;return _.createElement(_.Fragment,null,w?_.createElement(a,{styles:tee(i)}):null,g?_.createElement(GJ,{gapMode:e.gapMode}):null)}function iee(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oee=nZ(tM,ree);var aM=_.forwardRef(function(e,t){return _.createElement(_m,fi({},e,{ref:t,sideCar:oee}))});aM.classNames=_m.classNames;const aee=aM;function see(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:l,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:d,lockFocusAcrossFrames:h,isOpen:p}=Ka(),[v,g]=DR();_.useEffect(()=>{!v&&g&&setTimeout(g)},[v,g]);const w=ZI(r,p);return T.jsx(GI,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:h,children:T.jsx(aee,{removeScrollBar:!d,allowPinchZoom:l,enabled:w===1&&a,forwardProps:!0,children:e.children})})}var sM=ye((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:a,...l}=e,{getDialogProps:u,getDialogContainerProps:c}=Ka(),d=u(l,t),h=c(i),p=Se("chakra-modal__content",n),v=Ml(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:S}=Ka();return T.jsx(see,{children:T.jsx(ae.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:T.jsx(QI,{preset:S,motionProps:a,className:p,...d,__css:g,children:r})})})});sM.displayName="ModalContent";var lM=ye((e,t)=>{const{className:n,...r}=e,i=Se("chakra-modal__footer",n),l={display:"flex",alignItems:"center",justifyContent:"flex-end",...Ml().footer};return T.jsx(ae.footer,{ref:t,...r,__css:l,className:i})});lM.displayName="ModalFooter";var uM=ye((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:a}=Ka();_.useEffect(()=>(a(!0),()=>a(!1)),[a]);const l=Se("chakra-modal__header",n),c={flex:0,...Ml().header};return T.jsx(ae.header,{ref:t,className:l,id:i,...r,__css:c})});uM.displayName="ModalHeader";var lee=ae(Za.div),cM=ye((e,t)=>{const{className:n,transition:r,motionProps:i,...a}=e,l=Se("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ml().overlay},{motionPreset:d}=Ka(),p=i||(d==="none"?{}:rI);return T.jsx(lee,{...p,__css:c,ref:t,className:l,...a})});cM.displayName="ModalOverlay";var fM=ye((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:a}=Ka();_.useEffect(()=>(a(!0),()=>a(!1)),[a]);const l=Se("chakra-modal__body",n),u=Ml();return T.jsx(ae.div,{ref:t,className:l,id:i,...r,__css:u.body})});fM.displayName="ModalBody";var dM=ye((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:a}=Ka(),l=Se("chakra-modal__close-btn",r),u=Ml();return T.jsx(dx,{ref:t,__css:u.closeButton,className:l,onClick:Ke(n,c=>{c.stopPropagation(),a()}),...i})});dM.displayName="ModalCloseButton";var uee=e=>T.jsx(io,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),cee=e=>T.jsx(io,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function O2(e,t,n,r){_.useEffect(()=>{var i;if(!e.current||!r)return;const a=(i=e.current.ownerDocument.defaultView)!=null?i:window,l=Array.isArray(t)?t:[t],u=new a.MutationObserver(c=>{for(const d of c)d.type==="attributes"&&d.attributeName&&l.includes(d.attributeName)&&n(d)});return u.observe(e.current,{attributes:!0,attributeFilter:l}),()=>u.disconnect()})}function fee(e,t){const n=En(e);_.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var dee=50,D2=300;function hee(e,t){const[n,r]=_.useState(!1),[i,a]=_.useState(null),[l,u]=_.useState(!0),c=_.useRef(null),d=()=>clearTimeout(c.current);fee(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?dee:null);const h=_.useCallback(()=>{l&&e(),c.current=setTimeout(()=>{u(!1),r(!0),a("increment")},D2)},[e,l]),p=_.useCallback(()=>{l&&t(),c.current=setTimeout(()=>{u(!1),r(!0),a("decrement")},D2)},[t,l]),v=_.useCallback(()=>{u(!0),r(!1),d()},[]);return _.useEffect(()=>()=>d(),[]),{up:h,down:p,stop:v,isSpinning:n}}var pee=/^[Ee0-9+\-.]$/;function mee(e){return pee.test(e)}function vee(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function gee(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:l=1,isReadOnly:u,isDisabled:c,isRequired:d,isInvalid:h,pattern:p="[0-9]*(.[0-9]+)?",inputMode:v="decimal",allowMouseWheel:g,id:w,onChange:S,precision:k,name:b,"aria-describedby":x,"aria-label":C,"aria-labelledby":R,onFocus:$,onBlur:z,onInvalid:L,getAriaValueText:j,isValidCharacter:K,format:q,parse:J,...Ie}=e,je=En($),Me=En(z),bt=En(L),ke=En(K??mee),Oe=En(j),W=qQ(e),{update:ie,increment:se,decrement:re}=W,[Te,me]=_.useState(!1),Ee=!(u||c),Qe=_.useRef(null),ze=_.useRef(null),st=_.useRef(null),ft=_.useRef(null),xt=_.useCallback(Q=>Q.split("").filter(ke).join(""),[ke]),Ft=_.useCallback(Q=>{var Pe;return(Pe=J==null?void 0:J(Q))!=null?Pe:Q},[J]),vt=_.useCallback(Q=>{var Pe;return((Pe=q==null?void 0:q(Q))!=null?Pe:Q).toString()},[q]);fp(()=>{(W.valueAsNumber>a||W.valueAsNumber{if(!Qe.current)return;if(Qe.current.value!=W.value){const Pe=Ft(Qe.current.value);W.setValue(xt(Pe))}},[Ft,xt]);const yn=_.useCallback((Q=l)=>{Ee&&se(Q)},[se,Ee,l]),Or=_.useCallback((Q=l)=>{Ee&&re(Q)},[re,Ee,l]),Ze=hee(yn,Or);O2(st,"disabled",Ze.stop,Ze.isSpinning),O2(ft,"disabled",Ze.stop,Ze.isSpinning);const pe=_.useCallback(Q=>{if(Q.nativeEvent.isComposing)return;const it=Ft(Q.currentTarget.value);ie(xt(it)),ze.current={start:Q.currentTarget.selectionStart,end:Q.currentTarget.selectionEnd}},[ie,xt,Ft]),zt=_.useCallback(Q=>{var Pe,it,Ot;je==null||je(Q),ze.current&&(Q.target.selectionStart=(it=ze.current.start)!=null?it:(Pe=Q.currentTarget.value)==null?void 0:Pe.length,Q.currentTarget.selectionEnd=(Ot=ze.current.end)!=null?Ot:Q.currentTarget.selectionStart)},[je]),dt=_.useCallback(Q=>{if(Q.nativeEvent.isComposing)return;vee(Q,ke)||Q.preventDefault();const Pe=fr(Q)*l,it=Q.key,Mn={ArrowUp:()=>yn(Pe),ArrowDown:()=>Or(Pe),Home:()=>ie(i),End:()=>ie(a)}[it];Mn&&(Q.preventDefault(),Mn(Q))},[ke,l,yn,Or,ie,i,a]),fr=Q=>{let Pe=1;return(Q.metaKey||Q.ctrlKey)&&(Pe=.1),Q.shiftKey&&(Pe=10),Pe},es=_.useMemo(()=>{const Q=Oe==null?void 0:Oe(W.value);if(Q!=null)return Q;const Pe=W.value.toString();return Pe||void 0},[W.value,Oe]),Hn=_.useCallback(()=>{let Q=W.value;if(W.value==="")return;/^[eE]/.test(W.value.toString())?W.setValue(""):(W.valueAsNumbera&&(Q=a),W.cast(Q))},[W,a,i]),Gt=_.useCallback(()=>{me(!1),n&&Hn()},[n,me,Hn]),bn=_.useCallback(()=>{t&&requestAnimationFrame(()=>{var Q;(Q=Qe.current)==null||Q.focus()})},[t]),Zt=_.useCallback(Q=>{Q.preventDefault(),Ze.up(),bn()},[bn,Ze]),sa=_.useCallback(Q=>{Q.preventDefault(),Ze.down(),bn()},[bn,Ze]);YQ(()=>Qe.current,"wheel",Q=>{var Pe,it;const Mn=((it=(Pe=Qe.current)==null?void 0:Pe.ownerDocument)!=null?it:document).activeElement===Qe.current;if(!g||!Mn)return;Q.preventDefault();const dr=fr(Q)*l,oo=Math.sign(Q.deltaY);oo===-1?yn(dr):oo===1&&Or(dr)},{passive:!1});const ei=_.useCallback((Q={},Pe=null)=>{const it=c||r&&W.isAtMax;return{...Q,ref:Ir(Pe,st),role:"button",tabIndex:-1,onPointerDown:Ke(Q.onPointerDown,Ot=>{Ot.button!==0||it||Zt(Ot)}),onPointerLeave:Ke(Q.onPointerLeave,Ze.stop),onPointerUp:Ke(Q.onPointerUp,Ze.stop),disabled:it,"aria-disabled":al(it)}},[W.isAtMax,r,Zt,Ze.stop,c]),Fl=_.useCallback((Q={},Pe=null)=>{const it=c||r&&W.isAtMin;return{...Q,ref:Ir(Pe,ft),role:"button",tabIndex:-1,onPointerDown:Ke(Q.onPointerDown,Ot=>{Ot.button!==0||it||sa(Ot)}),onPointerLeave:Ke(Q.onPointerLeave,Ze.stop),onPointerUp:Ke(Q.onPointerUp,Ze.stop),disabled:it,"aria-disabled":al(it)}},[W.isAtMin,r,sa,Ze.stop,c]),yi=_.useCallback((Q={},Pe=null)=>{var it,Ot,Mn,dr;return{name:b,inputMode:v,type:"text",pattern:p,"aria-labelledby":R,"aria-label":C,"aria-describedby":x,id:w,disabled:c,...Q,readOnly:(it=Q.readOnly)!=null?it:u,"aria-readonly":(Ot=Q.readOnly)!=null?Ot:u,"aria-required":(Mn=Q.required)!=null?Mn:d,required:(dr=Q.required)!=null?dr:d,ref:Ir(Qe,Pe),value:vt(W.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":al(h??W.isOutOfRange),"aria-valuetext":es,autoComplete:"off",autoCorrect:"off",onChange:Ke(Q.onChange,pe),onKeyDown:Ke(Q.onKeyDown,dt),onFocus:Ke(Q.onFocus,zt,()=>me(!0)),onBlur:Ke(Q.onBlur,Me,Gt)}},[b,v,p,R,C,vt,x,w,c,d,u,h,W.value,W.valueAsNumber,W.isOutOfRange,i,a,es,pe,dt,zt,Me,Gt]);return{value:vt(W.value),valueAsNumber:W.valueAsNumber,isFocused:Te,isDisabled:c,isReadOnly:u,getIncrementButtonProps:ei,getDecrementButtonProps:Fl,getInputProps:yi,htmlProps:Ie}}var[yee,Cm]=ln({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[bee,Tx]=ln({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),hM=ye(function(t,n){const r=ro("NumberInput",t),i=gn(t),a=mx(i),{htmlProps:l,...u}=gee(a),c=_.useMemo(()=>u,[u]);return T.jsx(bee,{value:c,children:T.jsx(yee,{value:r,children:T.jsx(ae.div,{...l,ref:n,className:Se("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});hM.displayName="NumberInput";var pM=ye(function(t,n){const r=Cm();return T.jsx(ae.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});pM.displayName="NumberInputStepper";var mM=ye(function(t,n){const{getInputProps:r}=Tx(),i=r(t,n),a=Cm();return T.jsx(ae.input,{...i,className:Se("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});mM.displayName="NumberInputField";var vM=ae("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),gM=ye(function(t,n){var r;const i=Cm(),{getDecrementButtonProps:a}=Tx(),l=a(t,n);return T.jsx(vM,{...l,__css:i.stepper,children:(r=t.children)!=null?r:T.jsx(uee,{})})});gM.displayName="NumberDecrementStepper";var yM=ye(function(t,n){var r;const{getIncrementButtonProps:i}=Tx(),a=i(t,n),l=Cm();return T.jsx(vM,{...a,__css:l.stepper,children:(r=t.children)!=null?r:T.jsx(cee,{})})});yM.displayName="NumberIncrementStepper";var bM=ye(function(t,n){const{children:r,placeholder:i,className:a,...l}=t;return T.jsxs(ae.select,{...l,ref:n,className:Se("chakra-select",a),children:[i&&T.jsx("option",{value:"",children:i}),r]})});bM.displayName="SelectField";function xee(e,t){const n={},r={};for(const[i,a]of Object.entries(e))t.includes(i)?n[i]=a:r[i]=a;return[n,r]}var Ax=ye((e,t)=>{var n;const r=ro("Select",e),{rootProps:i,placeholder:a,icon:l,color:u,height:c,h:d,minH:h,minHeight:p,iconColor:v,iconSize:g,...w}=gn(e),[S,k]=xee(w,F6),b=dI(k),x={width:"100%",height:"fit-content",position:"relative",color:u},C={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return T.jsxs(ae.div,{className:"chakra-select__wrapper",__css:x,...S,...i,children:[T.jsx(bM,{ref:t,height:d??c,minH:h??p,placeholder:a,...b,__css:C,children:e.children}),T.jsx(xM,{"data-disabled":Ne(b.disabled),...(v||u)&&{color:v||u},__css:r.icon,...g&&{fontSize:g},children:l})]})});Ax.displayName="Select";var See=e=>T.jsx("svg",{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),wee=ae("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),xM=e=>{const{children:t=T.jsx(See,{}),...n}=e,r=_.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return T.jsx(wee,{...n,className:"chakra-select__icon-wrapper",children:_.isValidElement(t)?r:null})};xM.displayName="SelectIcon";const _ee=()=>{const e=Yc();return(n,r)=>{const i=Ry({path:n,value:r});return e(i)}},Cee=()=>Wa(hB),kee=({modes:e,defaultValue:t,selectedValue:n,title:r,hint:i,depth:a,state:l,statePath:u,updateState:c,renderChild:d,updating:h})=>{const p=e[n],{type:v}=p,g=Object.entries(p.children);return T.jsxs(T.Fragment,{children:[T.jsxs(Mr,{children:[T.jsx(rc,{htmlFor:`${u}`,children:r}),T.jsx(Ax,{id:`${u}`,onChange:w=>{if(!h)return c(`${u}.mode`,w.target.value)},value:n,children:Object.entries(e).map(([w,{title:S}],k)=>T.jsx("option",{value:w,children:S},k))})]}),T.jsxs(Tr,{direction:"row",children:[T.jsx(Ex,{children:T.jsx(XI,{orientation:"vertical",marginRight:"0.75rem",alignSelf:"stretch"})}),T.jsx(Bc,{flexGrow:"1",children:g&&g.length>0&&g.map(([w,S],k)=>d({childName:w,child:S,childOrder:k,depth:a+1,parentType:v,state:l,updateState:c,statePath:`${u}.${n}.${w}`}))})]})]})},Eee=({type:e,options:t})=>e==="discrete"?T.jsx(T.Fragment,{children:t.map((n,r)=>T.jsx("option",{value:n,children:n},r))}):e==="multiple"?T.jsx(T.Fragment,{children:Object.entries(t).map(([n,r],i)=>T.jsx("option",{value:n,children:r},i))}):null;var Pee=yX({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"});const Tee=({settings:e})=>{const{hint:t,children:n}=e;return T.jsx(aI,{defaultIndex:[0],allowMultiple:!0,children:T.jsxs(Tr,{direction:"column",children:[T.jsx(Mr,{paddingBottom:"0.5rem",children:t}),Object.values(n).map((r,i)=>r?m1(r,i):null)]})})};function m1(e,t){const{title:n,hint:r,children:i,modes:a}=e;return!i&&!a&&!r?T.jsx(i1,{children:T.jsx(r1,{children:T.jsx(Mr,{as:"span",flex:"1",textAlign:"left",children:n})})},t):T.jsxs(i1,{children:[T.jsx(sf,{as:"h4",children:T.jsxs(r1,{children:[T.jsx(Mr,{as:"span",flex:"1",textAlign:"left",children:n}),T.jsx(tI,{})]})}),T.jsxs(oI,{pb:4,children:[T.jsx(Mr,{paddingBottom:"0.5rem",children:r}),i&&Object.values(i).map((l,u)=>m1(l,u)),a&&Object.values(a).map((l,u)=>m1(l,u))]})]},t)}const Aee=({path:e})=>{const t=Wa(kT),[n,r]=_.useState(!1),i=()=>r(!0),a=()=>r(!1),l=Di.get(t,e,null);if(!l)return T.jsx(T.Fragment,{});if(!(!l.children&&!l.hint))return T.jsxs(T.Fragment,{children:[T.jsx(Yo,{backgroundColor:"transparent",onClick:i,children:T.jsx(Pee,{})}),T.jsxs(eM,{isOpen:n,onClose:a,children:[T.jsx(cM,{}),T.jsxs(sM,{children:[T.jsx(uM,{children:l.title}),T.jsx(dM,{}),T.jsx(fM,{children:T.jsx(Tee,{settings:l})}),T.jsx(lM,{children:T.jsx(Yo,{colorScheme:"blue",mr:3,onClick:a,children:"Close"})})]})]})]})};class Eo extends _.Component{constructor(t){super(t),this.state={hasError:!1,title:t==null?void 0:t.title}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.log(t,n)}render(){return this.state.hasError?T.jsxs(bm,{status:"error",children:[T.jsx(ym,{}),"Error while trying to render ",this.props.title]}):this.props.children}}const SM=({type:e,title:t,childName:n,hint:r,parentType:i,statePath:a,children:l,options:u,renderChild:c,modes:d,depth:h=0,state:p,min:v,max:g,tags:w,updateState:S,default:k})=>{const b=Cee(),x=()=>{if(l)return Object.entries(l).map(([C,R],$)=>c({childName:C,child:R,childOrder:$,depth:h+1,parentType:e,state:p,updateState:S,tags:w,statePath:a?`${a}.${C}`:`${C}`}))};if(e==="container")return T.jsx(T.Fragment,{children:T.jsxs(lI,{style:{display:"flex",flexDirection:"column"},children:[T.jsxs(Tr,{direction:"row",marginBottom:"1rem",alignItems:"center",children:[T.jsx(sf,{as:"h1",fontSize:"xl",children:t}),T.jsx(Mr,{flexGrow:"1",minW:"2rem"}),T.jsx(Aee,{path:`${a}`})]}),T.jsx(Bc,{spacing:"3",children:T.jsx(Eo,{title:t,children:c&&typeof c=="function"&&x()})})]})});if(e==="mode"&&d&&a){const C=Di.get(p,`${a}.mode`,k);return T.jsx(Eo,{title:t,children:T.jsx(kee,{modes:d,defaultValue:k,selectedValue:C,title:t,depth:h,state:p,statePath:a,updateState:S,hint:r,renderChild:c,updating:b})})}if(e==="int"&&typeof v=="number"&&typeof g=="number"&&v{if(!b)return S(`${a}`,Number($))},min:v,max:g,children:[T.jsx(mM,{}),T.jsxs(pM,{children:[T.jsx(yM,{}),T.jsx(gM,{})]})]})]})})}if(e==="bool"){const C=Di.get(p,`${a}`,k);return T.jsx(Tr,{flexDirection:"row",children:T.jsxs(Eo,{title:t,children:[T.jsx(rc,{htmlFor:`${a}`,children:t}),T.jsx(Mr,{flexGrow:"1"}),T.jsx(hI,{id:`${a}`,isChecked:!!C,onChange:R=>{if(!b)return S(`${a}`,R.target.checked)}})]})})}if((e==="discrete"||e==="multiple")&&u){const C=Di.get(p,`${a}`,k);return T.jsx(Tr,{flexDirection:"column",children:T.jsxs(Eo,{title:t,children:[T.jsx(rc,{htmlFor:`${a}`,children:t}),T.jsx(Ax,{id:`${a}`,onChange:R=>{if(!b)return e==="discrete"?S(`${a}`,Number(R.target.value)):S(`${a}`,R.target.value)},value:C,children:T.jsx(Eee,{type:e,options:u})})]})})}if(e==="display"&&t){const C=Di.get(p,`${a}`);return C?T.jsx(Eo,{title:t,children:T.jsxs(Px,{padding:"1rem",children:[t," - ",C]})}):null}return e==="action"&&t?T.jsx(Eo,{title:t,children:T.jsx(Yo,{onClick:()=>S(`${a}`,!0),children:t})}):null},wM=({childName:e,child:t,childOrder:n,parentType:r,statePath:i,state:a,tags:l,updateState:u,depth:c})=>T.jsx(SM,{childName:e,renderChild:wM,depth:c,parentType:r,statePath:i,state:a,tags:l,updateState:u,...t},n),Ree=()=>{const e=Wa(ET),t=Wa(kT),n=_ee();return T.jsx(uI,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},backgroundColor:"white.50",children:T.jsx(Eo,{children:Object.entries(t).map(([r,i],a)=>T.jsx("div",{children:Object.keys(i).map((l,u)=>{const c=i[l],d=`${r}.${l}`;return T.jsx(SM,{...c,state:e,childName:l,renderChild:wM,statePath:d,updateState:n},`${d}${a}${u}`)})},a))})})};/** - * @remix-run/router v1.14.1 - * - * 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 jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function km(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mee(){return Math.random().toString(36).substr(2,8)}function L2(e,t){return{usr:e.state,key:e.key,idx:t}}function v1(e,t,n,r){return n===void 0&&(n=null),jc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ja(t):t,{state:n,key:t&&t.key||r||Mee()})}function _M(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ja(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $ee(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,u=Do.Pop,c=null,d=h();d==null&&(d=0,l.replaceState(jc({},l.state,{idx:d}),""));function h(){return(l.state||{idx:null}).idx}function p(){u=Do.Pop;let k=h(),b=k==null?null:k-d;d=k,c&&c({action:u,location:S.location,delta:b})}function v(k,b){u=Do.Push;let x=v1(S.location,k,b);n&&n(x,k),d=h()+1;let C=L2(x,d),R=S.createHref(x);try{l.pushState(C,"",R)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;i.location.assign(R)}a&&c&&c({action:u,location:S.location,delta:1})}function g(k,b){u=Do.Replace;let x=v1(S.location,k,b);n&&n(x,k),d=h();let C=L2(x,d),R=S.createHref(x);l.replaceState(C,"",R),a&&c&&c({action:u,location:S.location,delta:0})}function w(k){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof k=="string"?k:_M(k);return Ut(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let S={get action(){return u},get location(){return e(i,l)},listen(k){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(N2,p),c=k,()=>{i.removeEventListener(N2,p),c=null}},createHref(k){return t(i,k)},createURL:w,encodeLocation(k){let b=w(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:v,replace:g,go(k){return l.go(k)}};return S}var z2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(z2||(z2={}));function Fee(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ja(t):t,i=EM(r.pathname||"/",n);if(i==null)return null;let a=CM(e);Oee(a);let l=null;for(let u=0;l==null&&u{let c={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};c.relativePath.startsWith("/")&&(Ut(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Na([r,c.relativePath]),h=n.concat(c);a.children&&a.children.length>0&&(Ut(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),CM(a.children,t,h,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:Vee(d,a.index),routesMeta:h})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,l);else for(let c of kM(a.path))i(a,l,c)}),t}function kM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let l=kM(r.join("/")),u=[];return u.push(...l.map(c=>c===""?a:[a,c].join("/"))),i&&u.push(...l),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function Oee(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Wee(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Dee=/^:\w+$/,Nee=3,Lee=2,zee=1,Bee=10,jee=-2,B2=e=>e==="*";function Vee(e,t){let n=e.split("/"),r=n.length;return n.some(B2)&&(r+=jee),t&&(r+=Lee),n.filter(i=>!B2(i)).reduce((i,a)=>i+(Dee.test(a)?Nee:a===""?zee:Bee),r)}function Wee(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Uee(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let l=0;l{let{paramName:v,isOptional:g}=h;if(v==="*"){let S=u[p]||"";l=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const w=u[p];return g&&!w?d[v]=void 0:d[v]=qee(w||"",v),d},{}),pathname:a,pathnameBase:l,pattern:e}}function Gee(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),km(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(l,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Kee(e){try{return decodeURI(e)}catch(t){return km(!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 qee(e,t){try{return decodeURIComponent(e)}catch(n){return km(!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 ("+n+").")),e}}function EM(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yee(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ja(e):e;return{pathname:n?n.startsWith("/")?n:Xee(n,t):t,search:tte(r),hash:nte(i)}}function Xee(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function T0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Qee(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zee(e,t){let n=Qee(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jee(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ja(e):(i=jc({},e),Ut(!i.pathname||!i.pathname.includes("?"),T0("?","pathname","search",i)),Ut(!i.pathname||!i.pathname.includes("#"),T0("#","pathname","hash",i)),Ut(!i.search||!i.search.includes("#"),T0("#","search","hash",i)));let a=e===""||i.pathname==="",l=a?"/":i.pathname,u;if(l==null)u=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}u=p>=0?t[p]:"/"}let c=Yee(i,u),d=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}const Na=e=>e.join("/").replace(/\/\/+/g,"/"),ete=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rte(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PM=["post","put","patch","delete"];new Set(PM);const ite=["get",...PM];new Set(ite);/** - * React Router v6.21.1 - * - * 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 Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),_.useCallback(function(d,h){if(h===void 0&&(h={}),!u.current)return;if(typeof d=="number"){r.go(d);return}let p=Jee(d,JSON.parse(l),a,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Na([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,l,a,e])}function ste(e,t){return lte(e,t)}function lte(e,t,n,r){Tm()||Ut(!1);let{navigator:i}=_.useContext(Em),{matches:a}=_.useContext($l),l=a[a.length-1],u=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=AM(),h;if(t){var p;let k=typeof t=="string"?Ja(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||Ut(!1),h=k}else h=d;let v=h.pathname||"/",g=c==="/"?v:v.slice(c.length)||"/",w=Fee(e,{pathname:g}),S=hte(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:Na([c,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Na([c,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),a,n,r);return t&&S?_.createElement(Pm.Provider,{value:{location:Vc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Do.Pop}},S):S}function ute(){let e=gte(),t=rte(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,a)}const cte=_.createElement(ute,null);class fte extends _.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement($l.Provider,{value:this.props.routeContext},_.createElement(TM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dte(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(Rx);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement($l.Provider,{value:t},r)}function hte(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let l=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let h=l.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id]));h>=0||Ut(!1),l=l.slice(0,Math.min(l.length,h+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((h,p,v)=>{let g,w=!1,S=null,k=null;n&&(g=u&&p.route.id?u[p.route.id]:void 0,S=p.route.errorElement||cte,c&&(d<0&&v===0?(bte("route-fallback",!1),w=!0,k=null):d===v&&(w=!0,k=p.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,v+1)),x=()=>{let C;return g?C=S:w?C=k:p.route.Component?C=_.createElement(p.route.Component,null):p.route.element?C=p.route.element:C=h,_.createElement(dte,{match:p,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:C})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?_.createElement(fte,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var IM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(IM||{}),kp=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}(kp||{});function pte(e){let t=_.useContext(Rx);return t||Ut(!1),t}function mte(e){let t=_.useContext(ote);return t||Ut(!1),t}function vte(e){let t=_.useContext($l);return t||Ut(!1),t}function MM(e){let t=vte(),n=t.matches[t.matches.length-1];return n.route.id||Ut(!1),n.route.id}function gte(){var e;let t=_.useContext(TM),n=mte(kp.UseRouteError),r=MM(kp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yte(){let{router:e}=pte(IM.UseNavigateStable),t=MM(kp.UseNavigateStable),n=_.useRef(!1);return RM(()=>{n.current=!0}),_.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Vc({fromRouteId:t},a)))},[e,t])}const j2={};function bte(e,t,n){!t&&!j2[e]&&(j2[e]=!0)}function g1(e){Ut(!1)}function xte(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Do.Pop,navigator:a,static:l=!1,future:u}=e;Tm()&&Ut(!1);let c=t.replace(/^\/*/,"/"),d=_.useMemo(()=>({basename:c,navigator:a,static:l,future:Vc({v7_relativeSplatPath:!1},u)}),[c,u,a,l]);typeof r=="string"&&(r=Ja(r));let{pathname:h="/",search:p="",hash:v="",state:g=null,key:w="default"}=r,S=_.useMemo(()=>{let k=EM(h,c);return k==null?null:{location:{pathname:k,search:p,hash:v,state:g,key:w},navigationType:i}},[c,h,p,v,g,w,i]);return S==null?null:_.createElement(Em.Provider,{value:d},_.createElement(Pm.Provider,{children:n,value:S}))}function Ste(e){let{children:t,location:n}=e;return ste(y1(t),n)}new Promise(()=>{});function y1(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let a=[...t,i];if(r.type===_.Fragment){n.push.apply(n,y1(r.props.children,a));return}r.type!==g1&&Ut(!1),!r.props.index||!r.props.children||Ut(!1);let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=y1(r.props.children,a)),n.push(l)}),n}/** - * React Router DOM v6.21.1 - * - * 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 wte="startTransition",V2=ic[wte];function _te(e){let{basename:t,children:n,future:r,window:i}=e,a=_.useRef();a.current==null&&(a.current=Iee({window:i,v5Compat:!0}));let l=a.current,[u,c]=_.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},h=_.useCallback(p=>{d&&V2?V2(()=>c(p)):c(p)},[c,d]);return _.useLayoutEffect(()=>l.listen(h),[l,h]),_.createElement(xte,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}var W2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(W2||(W2={}));var U2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(U2||(U2={}));const Cte=()=>{const e=Yc();return()=>e(kc.actions.resetHhdState())},kte=()=>{const e=Yc();return t=>e(kc.actions.setError({errorName:wb.LoginFailed,errorMessage:t}))},$M=()=>{const e=kte(),t=Ix(),n=Cte();return i=>{cB(),i&&e(i),n(),t("/")}},Ete=()=>{const e=Yc(),t=Ix(),n=()=>{lB(),e(kc.actions.resetHhdState()),e(kc.actions.clearError(wb.LoginFailed)),t("/ui")},r=Wa(mB);return{login:n,errorMessage:r}},Pte=_.memo(()=>{const e=Yc(),t=$M(),{stateLoading:n,settingsLoading:r}=Wa(pB),i=Wa(ET);return _.useEffect(()=>{e(Ty()),e(Ay())},[]),Tte(n,r,i),!i||n=="pending"||r=="pending"?null:T.jsxs(Tr,{w:"100%",flexDirection:"column",alignItems:"center",children:[T.jsx(Tr,{margin:"15px",children:T.jsxs(Tr,{w:"800px",flexDirection:"row",alignItems:"start",justifyContent:"start",children:[T.jsx(sf,{children:"Handheld Daemon"}),T.jsx(Mr,{flexGrow:"3"}),T.jsx(Yo,{onClick:()=>{t()},children:"Disconnect"})]})}),T.jsx(Mr,{w:"50px"}),T.jsx(Tr,{flexDirection:"column",alignItems:"center",justifyContent:"center",children:T.jsx(Ree,{})})]})});function Tte(e,t,n){const r=$M();_.useEffect(()=>{var i;e==="succeeded"&&t==="succeeded"&&!((i=n==null?void 0:n.hhd)!=null&&i.http)&&r("Error while verifying your token. Either the token is incorrect, or the web server is not working.")},[e,t,n])}const Ate=j4({reducer:{hhd:kc.reducer},devTools:!0});function Rte(){const e=Ix(),[t,n]=_.useState(_T()),[r,i]=_.useState(CT()),{login:a,errorMessage:l}=Ete();return _.useEffect(()=>{uB()&&e("/ui")},[]),T.jsx(Ex,{minW:"100vw",minH:"100vh",children:T.jsx(Mr,{children:T.jsxs(uI,{maxW:"md",margin:"1rem 0",children:[T.jsx(gQ,{children:T.jsx(sf,{textAlign:"center",as:"h1",size:"4xl",noOfLines:2,children:"Handheld Daemon"})}),T.jsx(lI,{children:T.jsxs(Bc,{divider:T.jsx(KI,{}),spacing:"4",children:[T.jsx(Eh,{children:"Welcome to the Handheld Daemon Configurator!"}),T.jsx(Eh,{children:"This is a static website you can use to configure your device (everything is done locally and there is no server). With the default security settings, you need to visit this webpage from your device and enter a security token. This token can be found below. Have fun!"}),T.jsx(Px,{textAlign:"center",padding:"1rem",lang:"bash",children:"cat $HOME/.config/hhd/token"}),T.jsxs(Eh,{children:["Example token: ",T.jsx("b",{children:"2f7abbc42dc7"})]}),T.jsxs(Bc,{spacing:"2",children:[T.jsxs(Tr,{children:[T.jsx(Cp,{type:"text",id:"token-input",value:t,onChange:u=>{rC(u.target.value),n(u.target.value)},borderRightRadius:"0",placeholder:"URL"}),T.jsx(Yo,{w:"5rem",onClick:()=>{rC(""),n("")},borderLeftRadius:"0",children:"Reset"})]}),T.jsxs(Tr,{children:[T.jsx(Cp,{type:"text",display:"Token",id:"token-input",onChange:u=>{iC(u.target.value),i(u.target.value)},value:r,borderRightRadius:"0",placeholder:"Token (empty if disabled)"}),T.jsx(Yo,{w:"5rem",onClick:()=>{iC(""),i("")},borderLeftRadius:"0",children:"Clear"})]}),T.jsx(Yo,{onClick:()=>{a()},borderLeftRadius:"0",children:"Connect"}),l&&T.jsxs(bm,{status:"error",children:[T.jsx(ym,{}),l]})]})]})})]})})})}const Ite={initialColorMode:"dark",useSystemColorMode:!1},Mte=yH({config:Ite});A0.createRoot(document.getElementById("root")).render(T.jsx(Xo.StrictMode,{children:T.jsx(r4,{store:Ate,children:T.jsx(OX,{theme:Mte,children:T.jsx(_te,{children:T.jsxs(Ste,{children:[T.jsx(g1,{path:"/",Component:Rte}),T.jsx(g1,{path:"/ui",Component:Pte})]})})})})})); diff --git a/index.html b/index.html index 6a164dd..4fd41bf 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,8 @@ Handheld Daemon - + +