diff --git a/.gitignore b/.gitignore index a547bf3..cf7ff2f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +# dist dist-ssr *.local diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fe8c7a7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Akatsuki 2023 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 39587be..e13f542 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,11 @@ # mmxpg -Megaman X Password Generator (ロックマンX パスワードジェネレーター) +Mega Man X Password Generator (ロックマンX パスワードジェネレータ) ## パスワードの仕組み(Japanese only) ロックマンXは同じセーブデータを表すパスワードが複数存在します。ここではそのうちの1つのパスワードの仕組みを説明します。 -ロックマンXのパスワードが記録するのは24のbool値だけです。この24個のbool値で8体のボスを倒したか倒してないか、どのライフアップを取ったか、どのサブタンクを取ったか、どの強化パーツを取ったかのみを記録しています。 - -``` -Oxxx -xxxx -xxxx -``` - -この数字は、ボスを倒すたびに影響を受ける。 ただし、この数字は2種類しかない: 4か1だ。 具体的には、ボスを倒した数が偶数か奇数かを記録する。 4は偶数、1は奇数だ。 つまり、3体のボスを倒した場合、その数は1となる、 1になりますが、8体全部倒した場合は4になります。 - -他の桁の数字もこのように機能する。 ほとんどの場合、ボスとアイテムの組み合わせを記録している。しかし、どれも桁を変化させる要因のリストを持っており、その要因を偶数個発動させたか、奇数個発動させたかによって、桁は常に2つの数字のどちらかになる。 - -しかし、もうひとつ複雑な問題がある。 各桁は1組の数字しか使えないにもかかわらず、どの組を使うかを変える要素が常に2つあるのだ。左上の桁の例に戻ろう。 先ほども言ったように、ボスを何体倒したかによって4か1のどちらかになるのが一般的だ。 しかし、チルペンギンのステージでハートタンクを回収した場合、使用される数字は4と1ではなく、2と7になる。 つまり、ゲームを起動して2体のボスと戦った場合、この数字は4→1→4と変化するが、その後チルペンギンのステージでハートタンクを回収した場合は2に変化し、その後ボスと戦うたびに7と2の間で反転する。 - -各桁には、これらの "外部変数"がいくつ影響するかに応じて、 上の例では `4 or 1`である。 ペンギーゴのステージでライフアップを手に入れている場合は`2 or 7`。 アーマー・アルマージのステージでサブタンクを手に入れている場合は`6 or 5`です。 ライフアップとサブタンクの両方をゲットしている場合は `8 or 3`になる。 - -まとめると、各桁に影響を与える要因は基本的に2種類ある。 メイン・ファクターは、新しいメイン・ファクターを集めるごとに、2つの数字のペアの間で桁が反転する。ごちゃごちゃしていますが、この説明ではよくわからなくても、以下に示すガイドラインを読めば、(比較的)簡単に自分のパスワードを作ることができるはずです。 - -以下の数字の山に飛び込む前に、すべての用語の意味をよりよく理解しておく必要があると思います。 各パスワードの桁の基本構造は以下の通りである。 - -``` ----------------------------------------------------- -| Position (#,#) - N[#,#] X[#,#] Y[#,#] XY[#,#] | -| X Factor: (ボス or アイテム) | -| Y Factor: (ボス or アイテム) | -| Main Factors: (List of bosses and/or items) | ----------------------------------------------------- -``` - -では、そのプロセスを順を追って見ていこう。 まず、パスワードでカバーしたい項目をリストアップします。 次に、各桁を1つずつ確認し、どの数字が各桁に入るかを決定する必要があります。各桁の位置は以下のようになります。 - -Digits are labeled based on standard graphing coordinates, with the first number representing the horizontal axis and the second representing the vertical axis, numbers increasing as you move right and up. For example, it starts with (1,1), one right and one up. - ``` Digit = N[M%2] or X[M%2] or Y[M%2] or XY[M%2] X, Y を両方満たしているならXY, どっちも満たしていないならN @@ -79,7 +46,7 @@ E: N[5,7] X[3,2] Y[1,8] XY[6,4] X: オクトパルド💀 Y: 胸パーツ - M: アルマジロ💀, クワンガー💀, ペンギーゴ💀, ナウマンダー💀, アルマジロ🩷, クワンガー🩷, アルマジロ🔋, 腕パーツ + M: アルマジロ💀, クワンガー💀, ペンギーゴ💀, ナウマンダー💀, イーグリード💀, アルマジロ🩷, クワンガー🩷, アルマジロ🔋, 腕パーツ F: N[8,2] X[4,7] Y[1,3] XY[6,5] @@ -96,7 +63,7 @@ G: H: N[2] X[6] Y[8] XY[7] X: マンドリラー💀 - Y: カメリーオ🔋 + Y: カメリーオ🩷 I: N[1,8] X[4,6] Y[3,7] XY[2,5] @@ -120,3 +87,13 @@ L: X: ペンギーゴ💀 Y: マンドリラー🩷 ``` + +## LICENSE + +The images are © CAPCOM CO., LTD. + +Everything else, and the programming code, is governed by the MIT license. + +## 参考 + +- [Mega Man X Password Guide](https://gamefaqs.gamespot.com/snes/588479-mega-man-x/faqs/52749) diff --git a/docs/assets/index-94384f7e.js b/docs/assets/index-94384f7e.js new file mode 100644 index 0000000..009d91b --- /dev/null +++ b/docs/assets/index-94384f7e.js @@ -0,0 +1,350 @@ +function mk(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uv={exports:{}},Jl={},cv={exports:{}},K={};/** + * @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 Ba=Symbol.for("react.element"),gk=Symbol.for("react.portal"),vk=Symbol.for("react.fragment"),yk=Symbol.for("react.strict_mode"),bk=Symbol.for("react.profiler"),xk=Symbol.for("react.provider"),Sk=Symbol.for("react.context"),kk=Symbol.for("react.forward_ref"),wk=Symbol.for("react.suspense"),Ck=Symbol.for("react.memo"),_k=Symbol.for("react.lazy"),Fp=Symbol.iterator;function Tk(e){return e===null||typeof e!="object"?null:(e=Fp&&e[Fp]||e["@@iterator"],typeof e=="function"?e:null)}var dv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fv=Object.assign,hv={};function hi(e,t,r){this.props=e,this.context=t,this.refs=hv,this.updater=r||dv}hi.prototype.isReactComponent={};hi.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")};hi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pv(){}pv.prototype=hi.prototype;function zf(e,t,r){this.props=e,this.context=t,this.refs=hv,this.updater=r||dv}var Rf=zf.prototype=new pv;Rf.constructor=zf;fv(Rf,hi.prototype);Rf.isPureReactComponent=!0;var Ip=Array.isArray,mv=Object.prototype.hasOwnProperty,jf={current:null},gv={key:!0,ref:!0,__self:!0,__source:!0};function vv(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)mv.call(t,n)&&!gv.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,Z=R[O];if(0>>1;Oo(qt,W))$eo(kt,qt)?(R[O]=kt,R[$e]=W,O=$e):(R[O]=qt,R[ue]=W,O=ue);else if($eo(kt,W))R[O]=kt,R[$e]=W,O=$e;else break e}}return V}function o(R,V){var W=R.sortIndex-V.sortIndex;return W!==0?W:R.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,v=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=R)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function C(R){if(x=!1,m(R),!v)if(r(l)!==null)v=!0,De(E);else{var V=r(u);V!==null&&Ve(C,V.startTime-R)}}function E(R,V){v=!1,x&&(x=!1,g($),$=-1),p=!0;var W=f;try{for(m(V),d=r(l);d!==null&&(!(d.expirationTime>V)||R&&!ie());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var Z=O(d.expirationTime<=V);V=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===r(l)&&n(l),m(V)}else n(l);d=r(l)}if(d!==null)var H=!0;else{var ue=r(u);ue!==null&&Ve(C,ue.startTime-V),H=!1}return H}finally{d=null,f=W,p=!1}}var A=!1,P=null,$=-1,M=5,F=-1;function ie(){return!(e.unstable_now()-FR||125O?(R.sortIndex=W,t(u,R),r(l)===null&&R===r(u)&&(x?(g($),$=-1):x=!0,Ve(C,W-O))):(R.sortIndex=Z,t(l,R),v||p||(v=!0,De(E))),R},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(R){var V=f;return function(){var W=f;f=V;try{return R.apply(this,arguments)}finally{f=W}}}})(Sv);xv.exports=Sv;var Ik=xv.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 kv=S,zt=Ik;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ad=Object.prototype.hasOwnProperty,Lk=/^[: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]*$/,Vp={},Op={};function Bk(e){return ad.call(Op,e)?!0:ad.call(Vp,e)?!1:Lk.test(e)?Op[e]=!0:(Vp[e]=!0,!1)}function Vk(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ok(e,t,r,n){if(t===null||typeof t>"u"||Vk(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new dt(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){Je[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Df=/[\-:]([a-z])/g;function Ff(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(Df,Ff);Je[t]=new dt(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(Df,Ff);Je[t]=new dt(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(Df,Ff);Je[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function If(e,t,r,n){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{rc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Mi(e):""}function Nk(e){switch(e.tag){case 5:return Mi(e.type);case 16:return Mi("Lazy");case 13:return Mi("Suspense");case 19:return Mi("SuspenseList");case 0:case 2:case 15:return e=nc(e.type,!1),e;case 11:return e=nc(e.type.render,!1),e;case 1:return e=nc(e.type,!0),e;default:return""}}function cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ko:return"Fragment";case So:return"Portal";case sd:return"Profiler";case Lf:return"StrictMode";case ld:return"Suspense";case ud:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _v:return(e.displayName||"Context")+".Consumer";case Cv:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vf:return t=e.displayName||null,t!==null?t:cd(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return cd(e(t))}catch{}}return null}function Wk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cd(t);case 8:return t===Lf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uk(e){var t=Pv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cs(e){e._valueTracker||(e._valueTracker=Uk(e))}function Ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Pv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function fl(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 dd(e,t){var r=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Wp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $v(e,t){t=t.checked,t!=null&&If(e,"checked",t,!1)}function fd(e,t){$v(e,t);var r=Pn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hd(e,t.type,r):t.hasOwnProperty("defaultValue")&&hd(e,t.type,Pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Up(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function hd(e,t,r){(t!=="number"||fl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Di=Array.isArray;function Wo(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function da(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Hi={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},Hk=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){Hk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function jv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function Mv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=jv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Gk=Ee({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 gd(e,t){if(t){if(Gk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function vd(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 yd=null;function Of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bd=null,Uo=null,Ho=null;function Kp(e){if(e=Na(e)){if(typeof bd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=ou(t),bd(e.stateNode,e.type,t))}}function Dv(e){Uo?Ho?Ho.push(e):Ho=[e]:Uo=e}function Fv(){if(Uo){var e=Uo,t=Ho;if(Ho=Uo=null,Kp(e),t)for(e=0;e>>=0,e===0?32:31-(nw(e)/ow|0)|0}var fs=64,hs=4194304;function Fi(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 gl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Fi(s):(i&=a,i!==0&&(n=Fi(i)))}else a=r&~o,a!==0?n=Fi(a):i!==0&&(n=Fi(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Va(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=r}function lw(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Ki),rm=String.fromCharCode(32),nm=!1;function ry(e,t){switch(e){case"keyup":return Fw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ny(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wo=!1;function Lw(e,t){switch(e){case"compositionend":return ny(t);case"keypress":return t.which!==32?null:(nm=!0,rm);case"textInput":return e=t.data,e===rm&&nm?null:e;default:return null}}function Bw(e,t){if(wo)return e==="compositionend"||!Xf&&ry(e,t)?(e=ey(),Os=Gf=hn=null,wo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sm(r)}}function sy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ly(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=fl(e.document)}return t}function qf(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 Yw(e){var t=ly(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&sy(r.ownerDocument.documentElement,r)){if(n!==null&&qf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=lm(r,i);var a=lm(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Co=null,_d=null,Xi=null,Td=!1;function um(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Td||Co==null||Co!==fl(n)||(n=Co,"selectionStart"in n&&qf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xi&&va(Xi,n)||(Xi=n,n=bl(_d,"onSelect"),0Po||(e.current=Rd[Po],Rd[Po]=null,Po--)}function fe(e,t){Po++,Rd[Po]=e.current,e.current=t}var En={},ot=Rn(En),gt=Rn(!1),ro=En;function ri(e,t){var r=e.type.contextTypes;if(!r)return En;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vt(e){return e=e.childContextTypes,e!=null}function Sl(){be(gt),be(ot)}function gm(e,t,r){if(ot.current!==En)throw Error(z(168));fe(ot,t),fe(gt,r)}function vy(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(z(108,Wk(e)||"Unknown",o));return Ee({},r,n)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,ro=ot.current,fe(ot,e),fe(gt,gt.current),!0}function vm(e,t,r){var n=e.stateNode;if(!n)throw Error(z(169));r?(e=vy(e,t,ro),n.__reactInternalMemoizedMergedChildContext=e,be(gt),be(ot),fe(ot,e)):be(gt),fe(gt,r)}var jr=null,iu=!1,vc=!1;function yy(e){jr===null?jr=[e]:jr.push(e)}function aC(e){iu=!0,yy(e)}function jn(){if(!vc&&jr!==null){vc=!0;var e=0,t=se;try{var r=jr;for(se=1;e>=a,o-=a,Fr=1<<32-or(t)+o|r<$?(M=P,P=null):M=P.sibling;var F=f(g,P,m[$],C);if(F===null){P===null&&(P=M);break}e&&P&&F.alternate===null&&t(g,P),h=i(F,h,$),A===null?E=F:A.sibling=F,A=F,P=M}if($===m.length)return r(g,P),Ce&&Vn(g,$),E;if(P===null){for(;$$?(M=P,P=null):M=P.sibling;var ie=f(g,P,F.value,C);if(ie===null){P===null&&(P=M);break}e&&P&&ie.alternate===null&&t(g,P),h=i(ie,h,$),A===null?E=ie:A.sibling=ie,A=ie,P=M}if(F.done)return r(g,P),Ce&&Vn(g,$),E;if(P===null){for(;!F.done;$++,F=m.next())F=d(g,F.value,C),F!==null&&(h=i(F,h,$),A===null?E=F:A.sibling=F,A=F);return Ce&&Vn(g,$),E}for(P=n(g,P);!F.done;$++,F=m.next())F=p(P,g,$,F.value,C),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?$:F.key),h=i(F,h,$),A===null?E=F:A.sibling=F,A=F);return e&&P.forEach(function(me){return t(g,me)}),Ce&&Vn(g,$),E}function _(g,h,m,C){if(typeof m=="object"&&m!==null&&m.type===ko&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case us:e:{for(var E=m.key,A=h;A!==null;){if(A.key===E){if(E=m.type,E===ko){if(A.tag===7){r(g,A.sibling),h=o(A,m.props.children),h.return=g,g=h;break e}}else if(A.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===sn&&Cm(E)===A.type){r(g,A.sibling),h=o(A,m.props),h.ref=_i(g,A,m),h.return=g,g=h;break e}r(g,A);break}else t(g,A);A=A.sibling}m.type===ko?(h=Zn(m.props.children,g.mode,C,m.key),h.return=g,g=h):(C=Xs(m.type,m.key,m.props,null,g.mode,C),C.ref=_i(g,h,m),C.return=g,g=C)}return a(g);case So:e:{for(A=m.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){r(g,h.sibling),h=o(h,m.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=_c(m,g.mode,C),h.return=g,g=h}return a(g);case sn:return A=m._init,_(g,h,A(m._payload),C)}if(Di(m))return v(g,h,m,C);if(xi(m))return x(g,h,m,C);xs(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,m),h.return=g,g=h):(r(g,h),h=Cc(m,g.mode,C),h.return=g,g=h),a(g)):r(g,h)}return _}var oi=Ty(!0),Py=Ty(!1),Wa={},Sr=Rn(Wa),Sa=Rn(Wa),ka=Rn(Wa);function Yn(e){if(e===Wa)throw Error(z(174));return e}function ih(e,t){switch(fe(ka,t),fe(Sa,e),fe(Sr,Wa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:md(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=md(t,e)}be(Sr),fe(Sr,t)}function ii(){be(Sr),be(Sa),be(ka)}function Ey(e){Yn(ka.current);var t=Yn(Sr.current),r=md(t,e.type);t!==r&&(fe(Sa,e),fe(Sr,r))}function ah(e){Sa.current===e&&(be(Sr),be(Sa))}var _e=Rn(0);function El(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yc=[];function sh(){for(var e=0;er?r:4,e(!0);var n=bc.transition;bc.transition={};try{e(!1),t()}finally{se=r,bc.transition=n}}function Uy(){return Yt().memoizedState}function cC(e,t,r){var n=Sn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Hy(e))Gy(t,r);else if(r=ky(e,t,r,n),r!==null){var o=lt();ir(r,e,n,o),Ky(r,t,n)}}function dC(e,t,r){var n=Sn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Hy(e))Gy(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,ar(s,a)){var l=t.interleaved;l===null?(o.next=o,nh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=ky(e,t,o,n),r!==null&&(o=lt(),ir(r,e,n,o),Ky(r,t,n))}}function Hy(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Gy(e,t){qi=$l=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ky(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Wf(e,r)}}var Al={readContext:Kt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},fC={readContext:Kt,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Tm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Hs(4194308,4,By.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hs(4,2,e,t)},useMemo:function(e,t){var r=fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=cC.bind(null,Pe,e),[n.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:_m,useDebugValue:fh,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=_m(!1),t=e[0];return e=uC.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pe,o=fr();if(Ce){if(r===void 0)throw Error(z(407));r=r()}else{if(r=t(),Ke===null)throw Error(z(349));oo&30||zy(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Tm(jy.bind(null,n,i,e),[e]),n.flags|=2048,_a(9,Ry.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=fr(),t=Ke.identifierPrefix;if(Ce){var r=Ir,n=Fr;r=(n&~(1<<32-or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=wa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[vr]=t,e[xa]=n,r1(e,t,!1,!1),t.stateNode=e;e:{switch(a=vd(r,n),r){case"dialog":ge("cancel",e),ge("close",e),o=n;break;case"iframe":case"object":case"embed":ge("load",e),o=n;break;case"video":case"audio":for(o=0;osi&&(t.flags|=128,n=!0,Ti(i,!1),t.lanes=4194304)}else{if(!n)if(e=El(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ti(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return tt(t),null}else 2*je()-i.renderingStartTime>si&&r!==1073741824&&(t.flags|=128,n=!0,Ti(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,r=_e.current,fe(_e,n?r&1|2:r&1),t):(tt(t),null);case 22:case 23:return yh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Tt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function xC(e,t){switch(Zf(t),t.tag){case 1:return vt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ii(),be(gt),be(ot),sh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ah(t),null;case 13:if(be(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(_e),null;case 4:return ii(),null;case 10:return rh(t.type._context),null;case 22:case 23:return yh(),null;case 24:return null;default:return null}}var ks=!1,nt=!1,SC=typeof WeakSet=="function"?WeakSet:Set,D=null;function zo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ae(e,t,n)}else r.current=null}function Ud(e,t,r){try{r()}catch(n){Ae(e,t,n)}}var Dm=!1;function kC(e,t){if(Pd=vl,e=ly(),qf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=a),f===i&&++c===n&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ed={focusedElem:e,selectionRange:r},vl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,_=v.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:er(t.type,x),_);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(C){Ae(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return v=Dm,Dm=!1,v}function Qi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ud(t,r,i)}o=o.next}while(o!==n)}}function lu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Hd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function i1(e){var t=e.alternate;t!==null&&(e.alternate=null,i1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vr],delete t[xa],delete t[zd],delete t[oC],delete t[iC])),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 a1(e){return e.tag===5||e.tag===3||e.tag===4}function Fm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||a1(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 Gd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xl));else if(n!==4&&(e=e.child,e!==null))for(Gd(e,t,r),e=e.sibling;e!==null;)Gd(e,t,r),e=e.sibling}function Kd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Kd(e,t,r),e=e.sibling;e!==null;)Kd(e,t,r),e=e.sibling}var qe=null,tr=!1;function tn(e,t,r){for(r=r.child;r!==null;)s1(e,t,r),r=r.sibling}function s1(e,t,r){if(xr&&typeof xr.onCommitFiberUnmount=="function")try{xr.onCommitFiberUnmount(eu,r)}catch{}switch(r.tag){case 5:nt||zo(r,t);case 6:var n=qe,o=tr;qe=null,tn(e,t,r),qe=n,tr=o,qe!==null&&(tr?(e=qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):qe.removeChild(r.stateNode));break;case 18:qe!==null&&(tr?(e=qe,r=r.stateNode,e.nodeType===8?gc(e.parentNode,r):e.nodeType===1&&gc(e,r),ma(e)):gc(qe,r.stateNode));break;case 4:n=qe,o=tr,qe=r.stateNode.containerInfo,tr=!0,tn(e,t,r),qe=n,tr=o;break;case 0:case 11:case 14:case 15:if(!nt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Ud(r,t,a),o=o.next}while(o!==n)}tn(e,t,r);break;case 1:if(!nt&&(zo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ae(r,t,s)}tn(e,t,r);break;case 21:tn(e,t,r);break;case 22:r.mode&1?(nt=(n=nt)||r.memoizedState!==null,tn(e,t,r),nt=n):tn(e,t,r);break;default:tn(e,t,r)}}function Im(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new SC),t.forEach(function(n){var o=zC.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*CC(n/1960))-n,10e?16:e,pn===null)var n=!1;else{if(e=pn,pn=null,jl=0,q&6)throw Error(z(331));var o=q;for(q|=4,D=e.current;D!==null;){var i=D,a=i.child;if(D.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lje()-gh?Qn(e,0):mh|=r),yt(e,t)}function m1(e,t){t===0&&(e.mode&1?(t=hs,hs<<=1,!(hs&130023424)&&(hs=4194304)):t=1);var r=lt();e=Kr(e,t),e!==null&&(Va(e,t,r),yt(e,r))}function AC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),m1(e,r)}function zC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(z(314))}n!==null&&n.delete(t),m1(e,r)}var g1;g1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mt=!1,yC(e,t,r);mt=!!(e.flags&131072)}else mt=!1,Ce&&t.flags&1048576&&by(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Gs(e,t),e=t.pendingProps;var o=ri(t,ot.current);Ko(t,r),o=uh(null,t,n,e,o,r);var i=ch();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(n)?(i=!0,kl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oh(t),o.updater=au,t.stateNode=o,o._reactInternals=t,Id(t,n,e,r),t=Vd(null,t,n,!0,i,r)):(t.tag=0,Ce&&i&&Qf(t),at(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=jC(n),e=er(n,e),o){case 0:t=Bd(null,t,n,e,r);break e;case 1:t=Rm(null,t,n,e,r);break e;case 11:t=Am(null,t,n,e,r);break e;case 14:t=zm(null,t,n,er(n.type,e),r);break e}throw Error(z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:er(n,o),Bd(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:er(n,o),Rm(e,t,n,o,r);case 3:e:{if(Jy(t),e===null)throw Error(z(387));n=t.pendingProps,i=t.memoizedState,o=i.element,wy(e,t),Pl(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ai(Error(z(423)),t),t=jm(e,t,n,r,o);break e}else if(n!==o){o=ai(Error(z(424)),t),t=jm(e,t,n,r,o);break e}else for(Pt=yn(t.stateNode.containerInfo.firstChild),Et=t,Ce=!0,rr=null,r=Py(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ni(),n===o){t=Yr(e,t,r);break e}at(e,t,n,r)}t=t.child}return t;case 5:return Ey(t),e===null&&Md(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$d(n,o)?a=null:i!==null&&$d(n,i)&&(t.flags|=32),Zy(e,t),at(e,t,a,r),t.child;case 6:return e===null&&Md(t),null;case 13:return e1(e,t,r);case 4:return ih(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=oi(t,null,n,r):at(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:er(n,o),Am(e,t,n,o,r);case 7:return at(e,t,t.pendingProps,r),t.child;case 8:return at(e,t,t.pendingProps.children,r),t.child;case 12:return at(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,fe(_l,n._currentValue),n._currentValue=a,i!==null)if(ar(i.value,a)){if(i.children===o.children&&!gt.current){t=Yr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Or(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Dd(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(z(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Dd(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}at(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ko(t,r),o=Kt(o),n=n(o),t.flags|=1,at(e,t,n,r),t.child;case 14:return n=t.type,o=er(n,t.pendingProps),o=er(n.type,o),zm(e,t,n,o,r);case 15:return qy(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:er(n,o),Gs(e,t),t.tag=1,vt(n)?(e=!0,kl(t)):e=!1,Ko(t,r),_y(t,n,o),Id(t,n,o,r),Vd(null,t,n,!0,e,r);case 19:return t1(e,t,r);case 22:return Qy(e,t,r)}throw Error(z(156,t.tag))};function v1(e,t){return Wv(e,t)}function RC(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,r,n){return new RC(e,t,r,n)}function xh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jC(e){if(typeof e=="function")return xh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Vf)return 14}return 2}function kn(e,t){var r=e.alternate;return r===null?(r=Ut(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Xs(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")xh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ko:return Zn(r.children,o,i,t);case Lf:a=8,o|=8;break;case sd:return e=Ut(12,r,t,o|2),e.elementType=sd,e.lanes=i,e;case ld:return e=Ut(13,r,t,o),e.elementType=ld,e.lanes=i,e;case ud:return e=Ut(19,r,t,o),e.elementType=ud,e.lanes=i,e;case Tv:return cu(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cv:a=10;break e;case _v:a=9;break e;case Bf:a=11;break e;case Vf:a=14;break e;case sn:a=16,n=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ut(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Zn(e,t,r,n){return e=Ut(7,e,n,t),e.lanes=r,e}function cu(e,t,r,n){return e=Ut(22,e,n,t),e.elementType=Tv,e.lanes=r,e.stateNode={isHidden:!1},e}function Cc(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function _c(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MC(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ic(0),this.expirationTimes=ic(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sh(e,t,r,n,o,i,a,s,l){return e=new MC(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},oh(i),e}function DC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S1)}catch(e){console.error(e)}}S1(),bv.exports=jt;var _h=bv.exports,Hm=_h;id.createRoot=Hm.createRoot,id.hydrateRoot=Hm.hydrateRoot;function VC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Qe(gi,--xt):0,li--,Ie===10&&(li=1,gu--),Ie}function $t(){return Ie=xt<_1?Qe(gi,xt++):0,li++,Ie===10&&(li=1,gu++),Ie}function kr(){return Qe(gi,xt)}function qs(){return xt}function Ua(e,t){return Pa(gi,e,t)}function Ea(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T1(e){return gu=li=1,_1=mr(gi=e),xt=0,[]}function P1(e){return gi="",e}function Qs(e){return C1(Ua(xt-1,Jd(e===91?e+2:e===40?e+1:e)))}function ZC(e){for(;(Ie=kr())&&Ie<33;)$t();return Ea(e)>2||Ea(Ie)>3?"":" "}function JC(e,t){for(;--t&&$t()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Ua(e,qs()+(t<6&&kr()==32&&$t()==32))}function Jd(e){for(;$t();)switch(Ie){case e:return xt;case 34:case 39:e!==34&&e!==39&&Jd(Ie);break;case 40:e===41&&Jd(e);break;case 92:$t();break}return xt}function e2(e,t){for(;$t()&&e+Ie!==47+10;)if(e+Ie===42+42&&kr()===47)break;return"/*"+Ua(t,xt-1)+"*"+mu(e===47?e:$t())}function t2(e){for(;!Ea(kr());)$t();return Ua(e,xt)}function r2(e){return P1(Zs("",null,null,null,[""],e=T1(e),0,[0],e))}function Zs(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,v=0,x=1,_=1,g=1,h=0,m="",C=o,E=i,A=n,P=m;_;)switch(v=h,h=$t()){case 40:if(v!=108&&Qe(P,d-1)==58){Zd(P+=te(Qs(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:P+=Qs(h);break;case 9:case 10:case 13:case 32:P+=ZC(v);break;case 92:P+=JC(qs()-1,7);continue;case 47:switch(kr()){case 42:case 47:_s(n2(e2($t(),qs()),t,r),l);break;default:P+="/"}break;case 123*x:s[u++]=mr(P)*g;case 125*x:case 59:case 0:switch(h){case 0:case 125:_=0;case 59+c:g==-1&&(P=te(P,/\f/g,"")),p>0&&mr(P)-d&&_s(p>32?Km(P+";",n,r,d-1):Km(te(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(_s(A=Gm(P,t,r,u,c,o,s,m,C=[],E=[],d),i),h===123)if(c===0)Zs(P,t,A,A,C,i,d,s,E);else switch(f===99&&Qe(P,3)===110?100:f){case 100:case 108:case 109:case 115:Zs(e,A,A,n&&_s(Gm(e,A,A,0,0,o,s,m,o,C=[],d),E),o,E,d,s,n?C:E);break;default:Zs(P,A,A,A,[""],E,0,s,E)}}u=c=p=0,x=g=1,m=P="",d=a;break;case 58:d=1+mr(P),p=v;default:if(x<1){if(h==123)--x;else if(h==125&&x++==0&&QC()==125)continue}switch(P+=mu(h),h*x){case 38:g=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(mr(P)-1)*g,g=1;break;case 64:kr()===45&&(P+=Qs($t())),f=kr(),c=d=mr(m=P+=t2(qs())),h++;break;case 45:v===45&&mr(P)==2&&(x=0)}}return i}function Gm(e,t,r,n,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],p=Eh(f),v=0,x=0,_=0;v0?f[g]+" "+h:te(h,/&\f/g,f[g])))&&(l[_++]=m);return vu(e,t,r,o===0?Th:s,l,u,c)}function n2(e,t,r){return vu(e,t,r,k1,mu(qC()),Pa(e,2,-2),0)}function Km(e,t,r,n){return vu(e,t,r,Ph,Pa(e,0,n),Pa(e,n+1,-1),n)}function Xo(e,t){for(var r="",n=Eh(e),o=0;o6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Fl+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zd(e,"stretch")?$1(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,mr(e)-3-(~Zd(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Qe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+rt+e+e}return e}var f2=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ph:t.return=$1(t.value,t.length);break;case w1:return Xo([Ei(t,{value:te(t.value,"@","@"+ee)})],o);case Th:if(t.length)return XC(t.props,function(i){switch(YC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xo([Ei(t,{props:[te(i,/:(read-\w+)/,":"+Fl+"$1")]})],o);case"::placeholder":return Xo([Ei(t,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Ei(t,{props:[te(i,/:(plac\w+)/,":"+Fl+"$1")]}),Ei(t,{props:[te(i,/:(plac\w+)/,rt+"input-$1")]})],o)}return""})}},h2=[f2],p2=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var _=x.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||h2,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var _=x.getAttribute("data-emotion").split(" "),g=1;g<_.length;g++)i[_[g]]=!0;s.push(x)});var l,u=[c2,d2];{var c,d=[o2,a2(function(x){c.insert(x)})],f=i2(u.concat(o,d)),p=function(_){return Xo(r2(_),f)};l=function(_,g,h,m){c=h,p(_?_+"{"+g.styles+"}":g.styles),m&&(v.inserted[g.name]=!0)}}var v={key:r,sheet:new NC({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var T2={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},P2=/[A-Z]|^ms/g,E2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F1=function(t){return t.charCodeAt(1)===45},qm=function(t){return t!=null&&typeof t!="boolean"},Tc=E1(function(e){return F1(e)?e:e.replace(P2,"-$&").toLowerCase()}),Qm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(E2,function(n,o,i){return gr={name:o,styles:i,next:gr},o})}return T2[t]!==1&&!F1(t)&&typeof r=="number"&&r!==0?r+"px":r};function $a(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return gr={name:r.name,styles:r.styles,next:gr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)gr={name:n.name,styles:n.styles,next:gr},n=n.next;var o=r.styles+";";return o}return $2(e,t,r)}case"function":{if(e!==void 0){var i=gr,a=r(e);return gr=i,$a(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function $2(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ob.jsx(Eu,{styles:O1}),I2=({scope:e=""})=>b.jsx(Eu,{styles:V1` + 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; + } + + ${O1} + `});function L2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Zr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=S.createContext(a);s.displayName=t;function l(){var u;const c=S.useContext(s);if(!c&&r){const d=new Error(i??L2(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[B2,V2]=Zr({strict:!1,name:"PortalManagerContext"});function N1(e){const{children:t,zIndex:r}=e;return b.jsx(B2,{value:{zIndex:r},children:t})}N1.displayName="PortalManager";var wn=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[W1,O2]=Zr({strict:!1,name:"PortalContext"}),jh="chakra-portal",N2=".chakra-portal",W2=e=>b.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),U2=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,a]=S.useState({});S.useEffect(()=>a({}),[]);const s=O2(),l=V2();wn(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=jh,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?b.jsx(W2,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?_h.createPortal(b.jsx(W1,{value:i.current,children:u}),i.current):b.jsx("span",{ref:c=>{c&&o(c)}})},H2=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=jh),l},[o]),[,s]=S.useState({});return wn(()=>s({}),[]),wn(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?_h.createPortal(b.jsx(W1,{value:n?a:null,children:t}),a):null};function Au(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?b.jsx(H2,{containerRef:r,...n}):b.jsx(U2,{...n})}Au.className=jh;Au.selector=N2;Au.displayName="Portal";function U1(){const e=S.useContext(Aa);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Mh=S.createContext({});Mh.displayName="ColorModeContext";function Dh(){const e=S.useContext(Mh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ts={light:"chakra-ui-light",dark:"chakra-ui-dark"};function G2(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Ts.dark:Ts.light),document.body.classList.remove(n?Ts.light:Ts.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var K2="chakra-ui-color-mode";function Y2(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var X2=Y2(K2),eg=()=>{};function tg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function H1(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=X2}=e,s=o==="dark"?"dark":"light",[l,u]=S.useState(()=>tg(a,s)),[c,d]=S.useState(()=>tg(a)),{getSystemTheme:f,setClassName:p,setDataset:v,addListener:x}=S.useMemo(()=>G2({preventTransition:i}),[i]),_=o==="system"&&!l?c:l,g=S.useCallback(C=>{const E=C==="system"?f():C;u(E),p(E==="dark"),v(E),a.set(E)},[a,f,p,v]);wn(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const C=a.get();if(C){g(C);return}if(o==="system"){g("system");return}g(s)},[a,s,o,g]);const h=S.useCallback(()=>{g(_==="dark"?"light":"dark")},[_,g]);S.useEffect(()=>{if(n)return x(g)},[n,x,g]);const m=S.useMemo(()=>({colorMode:t??_,toggleColorMode:t?eg:h,setColorMode:t?eg:g,forced:t!==void 0}),[_,h,g,t]);return b.jsx(Mh.Provider,{value:m,children:r})}H1.displayName="ColorModeProvider";function G1(){const e=Dh(),t=U1();return{...e,theme:t}}function q2(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function Q2(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function Z2(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,u)=>{var c,d;if(e==="breakpoints")return q2(i,l,(c=a[u])!=null?c:l);const f=`${e}.${l}`;return Q2(i,f,(d=a[u])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var Be=(...e)=>e.filter(Boolean).join(" ");function bt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function br(e,...t){return J2(e)?e(...t):e}var J2=e=>typeof e=="function",ne=e=>e?"":void 0,Pc=e=>e?!0:void 0;function Ct(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function e_(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Ll={exports:{}};Ll.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",x="[object Map]",_="[object Number]",g="[object Null]",h="[object Object]",m="[object Proxy]",C="[object RegExp]",E="[object Set]",A="[object String]",P="[object Undefined]",$="[object WeakMap]",M="[object ArrayBuffer]",F="[object DataView]",ie="[object Float32Array]",me="[object Float64Array]",Re="[object Int8Array]",ae="[object Int16Array]",de="[object Int32Array]",De="[object Uint8Array]",Ve="[object Uint8ClampedArray]",R="[object Uint16Array]",V="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,O=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,H={};H[ie]=H[me]=H[Re]=H[ae]=H[de]=H[De]=H[Ve]=H[R]=H[V]=!0,H[s]=H[l]=H[M]=H[c]=H[F]=H[d]=H[f]=H[p]=H[x]=H[_]=H[h]=H[C]=H[E]=H[A]=H[$]=!1;var ue=typeof ss=="object"&&ss&&ss.Object===Object&&ss,qt=typeof self=="object"&&self&&self.Object===Object&&self,$e=ue||qt||Function("return this")(),kt=t&&!t.nodeType&&t,sr=kt&&!0&&e&&!e.nodeType&&e,en=sr&&sr.exports===kt,lr=en&&ue.process,Ft=function(){try{var y=sr&&sr.require&&sr.require("util").types;return y||lr&&lr.binding&&lr.binding("util")}catch{}}(),Dn=Ft&&Ft.isTypedArray;function ho(y,k,T){switch(T.length){case 0:return y.call(k);case 1:return y.call(k,T[0]);case 2:return y.call(k,T[0],T[1]);case 3:return y.call(k,T[0],T[1],T[2])}return y.apply(k,T)}function gp(y,k){for(var T=-1,j=Array(y);++T-1}function _S(y,k){var T=this.__data__,j=ns(T,y);return j<0?(++this.size,T.push([y,k])):T[j][1]=k,this}Tr.prototype.clear=SS,Tr.prototype.delete=kS,Tr.prototype.get=wS,Tr.prototype.has=CS,Tr.prototype.set=_S;function mo(y){var k=-1,T=y==null?0:y.length;for(this.clear();++k1?T[X-1]:void 0,Se=X>2?T[2]:void 0;for(ce=y.length>3&&typeof ce=="function"?(X--,ce):void 0,Se&&ek(T[0],T[1],Se)&&(ce=X<3?void 0:ce,X=1),k=Object(k);++j-1&&y%1==0&&y0){if(++k>=o)return arguments[0]}else k=0;return y.apply(void 0,arguments)}}function lk(y){if(y!=null){try{return es.call(y)}catch{}try{return y+""}catch{}}return""}function as(y,k){return y===k||y!==y&&k!==k}var Yu=Tp(function(){return arguments}())?Tp:function(y){return yi(y)&&_r.call(y,"callee")&&!dS.call(y,"callee")},Xu=Array.isArray;function qu(y){return y!=null&&zp(y.length)&&!Qu(y)}function uk(y){return yi(y)&&qu(y)}var Ap=hS||pk;function Qu(y){if(!Ln(y))return!1;var k=os(y);return k==p||k==v||k==u||k==m}function zp(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function Ln(y){var k=typeof y;return y!=null&&(k=="object"||k=="function")}function yi(y){return y!=null&&typeof y=="object"}function ck(y){if(!yi(y)||os(y)!=h)return!1;var k=kp(y);if(k===null)return!0;var T=_r.call(k,"constructor")&&k.constructor;return typeof T=="function"&&T instanceof T&&es.call(T)==uS}var Rp=Dn?G(Dn):VS;function dk(y){return XS(y,jp(y))}function jp(y){return qu(y)?FS(y,!0):OS(y)}var fk=qS(function(y,k,T,j){Pp(y,k,T,j)});function hk(y){return function(){return y}}function Mp(y){return y}function pk(){return!1}e.exports=fk})(Ll,Ll.exports);var t_=Ll.exports;const Ht=Zl(t_);var r_=e=>/!(important)?$/.test(e),rg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,n_=(e,t)=>r=>{const n=String(t),o=r_(n),i=rg(n),a=e?`${e}.${i}`:i;let s=bt(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=rg(s),o?`${s} !important`:s};function Fh(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=n_(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var Ps=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Bt(e,t){return r=>{const n={property:r,scale:e};return n.transform=Fh({scale:e,transform:t}),n}}var o_=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function i_(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:o_(t),transform:r?Fh({scale:r,compose:n}):n}}var K1=["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 a_(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...K1].join(" ")}function s_(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...K1].join(" ")}var l_={"--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(" ")},u_={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 c_(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 d_={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ef={"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"},f_=new Set(Object.values(ef)),tf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),h_=e=>e.trim();function p_(e,t){if(e==null||tf.has(e))return e;if(!(rf(e)||tf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(h_).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in ef?ef[l]:l;u.unshift(c);const d=u.map(f=>{if(f_.has(f))return f;const p=f.indexOf(" "),[v,x]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],_=rf(x)?x:x&&x.split(" "),g=`colors.${v}`,h=g in t.__cssMap?t.__cssMap[g].varRef:v;return _?[h,...Array.isArray(_)?_:[_]].join(" "):h});return`${s}(${d.join(", ")})`}var rf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),m_=(e,t)=>p_(e,t??{});function g_(e){return/^var\(--.+\)$/.test(e)}var v_=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},cr=e=>t=>`${e}(${t})`,Q={filter(e){return e!=="auto"?e:l_},backdropFilter(e){return e!=="auto"?e:u_},ring(e){return c_(Q.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?a_():e==="auto-gpu"?s_():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=v_(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(g_(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:m_,blur:cr("blur"),opacity:cr("opacity"),brightness:cr("brightness"),contrast:cr("contrast"),dropShadow:cr("drop-shadow"),grayscale:cr("grayscale"),hueRotate:cr("hue-rotate"),invert:cr("invert"),saturate:cr("saturate"),sepia:cr("sepia"),bgImage(e){return e==null||rf(e)||tf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=d_[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:Bt("borderWidths"),borderStyles:Bt("borderStyles"),colors:Bt("colors"),borders:Bt("borders"),gradients:Bt("gradients",Q.gradient),radii:Bt("radii",Q.px),space:Bt("space",Ps(Q.vh,Q.px)),spaceT:Bt("space",Ps(Q.vh,Q.px)),degreeT(e){return{property:e,transform:Q.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Fh({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Bt("sizes",Ps(Q.vh,Q.px)),sizesT:Bt("sizes",Ps(Q.vh,Q.fraction)),shadows:Bt("shadows"),logical:i_,blur:Bt("blur",Q.blur)},Js={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Q.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:Q.bgClip}};Object.assign(Js,{bgImage:Js.backgroundImage,bgImg:Js.backgroundImage});var J={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(J,{rounded:J.borderRadius,roundedTop:J.borderTopRadius,roundedTopLeft:J.borderTopLeftRadius,roundedTopRight:J.borderTopRightRadius,roundedTopStart:J.borderStartStartRadius,roundedTopEnd:J.borderStartEndRadius,roundedBottom:J.borderBottomRadius,roundedBottomLeft:J.borderBottomLeftRadius,roundedBottomRight:J.borderBottomRightRadius,roundedBottomStart:J.borderEndStartRadius,roundedBottomEnd:J.borderEndEndRadius,roundedLeft:J.borderLeftRadius,roundedRight:J.borderRightRadius,roundedStart:J.borderInlineStartRadius,roundedEnd:J.borderInlineEndRadius,borderStart:J.borderInlineStart,borderEnd:J.borderInlineEnd,borderTopStartRadius:J.borderStartStartRadius,borderTopEndRadius:J.borderStartEndRadius,borderBottomStartRadius:J.borderEndStartRadius,borderBottomEndRadius:J.borderEndEndRadius,borderStartRadius:J.borderInlineStartRadius,borderEndRadius:J.borderInlineEndRadius,borderStartWidth:J.borderInlineStartWidth,borderEndWidth:J.borderInlineEndWidth,borderStartColor:J.borderInlineStartColor,borderEndColor:J.borderInlineEndColor,borderStartStyle:J.borderInlineStartStyle,borderEndStyle:J.borderInlineEndStyle});var y_={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},nf={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(nf,{shadow:nf.boxShadow});var b_={filter:{transform:Q.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",Q.brightness),contrast:w.propT("--chakra-contrast",Q.contrast),hueRotate:w.degreeT("--chakra-hue-rotate"),invert:w.propT("--chakra-invert",Q.invert),saturate:w.propT("--chakra-saturate",Q.saturate),dropShadow:w.propT("--chakra-drop-shadow",Q.dropShadow),backdropFilter:{transform:Q.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",Q.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",Q.contrast),backdropHueRotate:w.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:w.propT("--chakra-backdrop-invert",Q.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",Q.saturate)},Bl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Q.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(Bl,{flexDir:Bl.flexDirection});var Y1={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},x_={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Q.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},Ot={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",Q.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ot,{w:Ot.width,h:Ot.height,minW:Ot.minWidth,maxW:Ot.maxWidth,minH:Ot.minHeight,maxH:Ot.maxHeight,overscroll:Ot.overscrollBehavior,overscrollX:Ot.overscrollBehaviorX,overscrollY:Ot.overscrollBehaviorY});var S_={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function k_(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},C_=w_(k_),__={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},T_={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ec=(e,t,r)=>{const n={},o=C_(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},P_={srOnly:{transform(e){return e===!0?__:e==="focusable"?T_:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Ec(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Ec(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Ec(t,e,r)}},ea={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ea,{insetStart:ea.insetInlineStart,insetEnd:ea.insetInlineEnd});var E_={ring:{transform:Q.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},ye={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(ye,{m:ye.margin,mt:ye.marginTop,mr:ye.marginRight,me:ye.marginInlineEnd,marginEnd:ye.marginInlineEnd,mb:ye.marginBottom,ml:ye.marginLeft,ms:ye.marginInlineStart,marginStart:ye.marginInlineStart,mx:ye.marginX,my:ye.marginY,p:ye.padding,pt:ye.paddingTop,py:ye.paddingY,px:ye.paddingX,pb:ye.paddingBottom,pl:ye.paddingLeft,ps:ye.paddingInlineStart,paddingStart:ye.paddingInlineStart,pr:ye.paddingRight,pe:ye.paddingInlineEnd,paddingEnd:ye.paddingInlineEnd});var $_={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},A_={clipPath:!0,transform:w.propT("transform",Q.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},z_={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},R_={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",Q.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},j_={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function X1(e){return bt(e)&&e.reference?e.reference:String(e)}var zu=(e,...t)=>t.map(X1).join(` ${e} `).replace(/calc/g,""),ng=(...e)=>`calc(${zu("+",...e)})`,og=(...e)=>`calc(${zu("-",...e)})`,of=(...e)=>`calc(${zu("*",...e)})`,ig=(...e)=>`calc(${zu("/",...e)})`,ag=e=>{const t=X1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:of(t,-1)},Un=Object.assign(e=>({add:(...t)=>Un(ng(e,...t)),subtract:(...t)=>Un(og(e,...t)),multiply:(...t)=>Un(of(e,...t)),divide:(...t)=>Un(ig(e,...t)),negate:()=>Un(ag(e)),toString:()=>e.toString()}),{add:ng,subtract:og,multiply:of,divide:ig,negate:ag});function M_(e,t="-"){return e.replace(/\s+/g,t)}function D_(e){const t=M_(e.toString());return I_(F_(t))}function F_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function I_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function L_(e,t=""){return[t,e].filter(Boolean).join("-")}function B_(e,t){return`var(${e}${t?`, ${t}`:""})`}function V_(e,t=""){return D_(`--${L_(e,t)}`)}function B(e,t,r){const n=V_(e,r);return{variable:n,reference:B_(n,t)}}function O_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=B(`${e}-${o}`,i);continue}r[n]=B(`${e}-${n}`)}return r}function N_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function W_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function af(e){if(e==null)return e;const{unitless:t}=W_(e);return t||typeof e=="number"?`${e}px`:e}var q1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Ih=e=>Object.fromEntries(Object.entries(e).sort(q1));function sg(e){const t=Ih(e);return Object.assign(Object.values(t),t)}function U_(e){const t=Object.keys(Ih(e));return new Set(t)}function lg(e){var t;if(!e)return e;e=(t=af(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Li(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${af(e)})`),t&&r.push("and",`(max-width: ${af(t)})`),r.join(" ")}function H_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=sg(e),n=Object.entries(e).sort(q1).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?lg(d):void 0,{_minW:lg(s),breakpoint:a,minW:s,maxW:d,maxWQuery:Li(null,d),minWQuery:Li(s),minMaxQuery:Li(s,d)}}),o=U_(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:Ih(e),asArray:sg(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>Li(a)).slice(1)],toArrayValue(a){if(!bt(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;N_(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Xe={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}`},rn=e=>Q1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Pr=e=>Q1(t=>e(t,"~ &"),"[data-peer]",".peer"),Q1=(e,...t)=>t.map(e).join(", "),Ru={_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:rn(Xe.hover),_peerHover:Pr(Xe.hover),_groupFocus:rn(Xe.focus),_peerFocus:Pr(Xe.focus),_groupFocusVisible:rn(Xe.focusVisible),_peerFocusVisible:Pr(Xe.focusVisible),_groupActive:rn(Xe.active),_peerActive:Pr(Xe.active),_groupDisabled:rn(Xe.disabled),_peerDisabled:Pr(Xe.disabled),_groupInvalid:rn(Xe.invalid),_peerInvalid:Pr(Xe.invalid),_groupChecked:rn(Xe.checked),_peerChecked:Pr(Xe.checked),_groupFocusWithin:rn(Xe.focusWithin),_peerFocusWithin:Pr(Xe.focusWithin),_peerPlaceholderShown:Pr(Xe.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]"},Z1=Object.keys(Ru);function ug(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function G_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=ug(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[p,...v]=f,x=`${p}.-${v.join(".")}`,_=Un.negate(s),g=Un.negate(u);n[x]={value:_,var:l,varRef:g}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const v=[String(o).split(".")[0],f].join(".");if(!e[v])return f;const{reference:_}=ug(v,t==null?void 0:t.cssVarPrefix);return _},d=bt(s)?s:{default:s};r=Ht(r,Object.entries(d).reduce((f,[p,v])=>{var x,_;if(!v)return f;const g=c(`${v}`);if(p==="default")return f[l]=g,f;const h=(_=(x=Ru)==null?void 0:x[p])!=null?_:p;return f[h]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function K_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Y_(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function X_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function cg(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(X_(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...s,f];if(n!=null&&n(a,p))return t(a,s);u[f]=i(d,p)}return u}return t(a,s)}return i(e)}var q_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Q_(e){return Y_(e,q_)}function Z_(e){return e.semanticTokens}function J_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var eT=e=>Z1.includes(e)||e==="default";function tT({tokens:e,semanticTokens:t}){const r={};return cg(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),cg(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(eT)}),r}function rT(e){var t;const r=J_(e),n=Q_(r),o=Z_(r),i=tT({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=G_(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:H_(r.breakpoints)}),r}var Lh=Ht({},Js,J,y_,Bl,Ot,b_,E_,x_,Y1,P_,ea,nf,ye,j_,R_,$_,A_,S_,z_);Object.assign({},ye,Ot,Bl,Y1,ea);var nT=[...Object.keys(Lh),...Z1],oT={...Lh,...Ru},iT=e=>e in oT,aT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=br(e[a],t);if(s==null)continue;if(s=bt(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!lT(t),cT=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=sT(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function dT(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=br(i,n),d=aT(c)(n);let f={};for(let p in d){const v=d[p];let x=br(v,n);p in r&&(p=r[p]),uT(p,x)&&(x=cT(n,x));let _=t[p];if(_===!0&&(_={property:p}),bt(x)){f[p]=(s=f[p])!=null?s:{},f[p]=Ht({},f[p],o(x,!0));continue}let g=(u=(l=_==null?void 0:_.transform)==null?void 0:l.call(_,x,n,c))!=null?u:x;g=_!=null&&_.processResult?o(g,!0):g;const h=br(_==null?void 0:_.property,n);if(!a&&(_!=null&&_.static)){const m=br(_.static,n);f=Ht({},f,m)}if(h&&Array.isArray(h)){for(const m of h)f[m]=g;continue}if(h){h==="&"&&bt(g)?f=Ht({},f,g):f[h]=g;continue}if(bt(g)){f=Ht({},f,g);continue}f[p]=g}return f};return o}var J1=e=>t=>dT({theme:t,pseudos:Ru,configs:Lh})(e);function pe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function fT(e,t){if(Array.isArray(e))return e;if(bt(e))return t(e);if(e!=null)return[e]}function hT(e,t){for(let r=t+1;r{Ht(u,{[m]:f?h[m]:{[g]:h[m]}})});continue}if(!p){f?Ht(u,h):u[g]=h;continue}u[g]=h}}return u}}function mT(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=pT(i);return Ht({},br((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function Xt(e){return K_(e,["styleConfig","size","variant","colorScheme"])}var gT=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function vT(e){return bt(e)?gT.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var yT={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"},bT={"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)"},xT={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},ST={property:yT,easing:bT,duration:xT},kT=ST,wT={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},CT=wT,_T={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},TT=_T,PT={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},ET=PT,$T={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"}},AT=$T,zT={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},RT=zT,jT={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"},MT=jT,DT={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},FT=DT,IT={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"}},eb=IT,tb={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"},LT={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"},BT={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},VT={...tb,...LT,container:BT},rb=VT,OT={breakpoints:ET,zIndices:CT,radii:RT,blur:FT,colors:AT,...eb,sizes:rb,shadows:MT,space:tb,borders:TT,transition:kT},{defineMultiStyleConfig:NT,definePartsStyle:Bi}=pe(["stepper","step","title","description","indicator","separator","icon","number"]),Mr=B("stepper-indicator-size"),jo=B("stepper-icon-size"),Mo=B("stepper-title-font-size"),Vi=B("stepper-description-font-size"),$i=B("stepper-accent-color"),WT=Bi(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[$i.variable]:`colors.${e}.500`,_dark:{[$i.variable]:`colors.${e}.200`}},title:{fontSize:Mo.reference,fontWeight:"medium"},description:{fontSize:Vi.reference,color:"chakra-subtle-text"},number:{fontSize:Mo.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:jo.reference,height:jo.reference},indicator:{flexShrink:0,borderRadius:"full",width:Mr.reference,height:Mr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:$i.reference},"&[data-status=complete]":{bg:$i.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:$i.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Mr.reference} - 8px)`,top:`calc(${Mr.reference} + 4px)`,insetStart:`calc(${Mr.reference} / 2 - 1px)`}}})),UT=NT({baseStyle:WT,sizes:{xs:Bi({stepper:{[Mr.variable]:"sizes.4",[jo.variable]:"sizes.3",[Mo.variable]:"fontSizes.xs",[Vi.variable]:"fontSizes.xs"}}),sm:Bi({stepper:{[Mr.variable]:"sizes.6",[jo.variable]:"sizes.4",[Mo.variable]:"fontSizes.sm",[Vi.variable]:"fontSizes.xs"}}),md:Bi({stepper:{[Mr.variable]:"sizes.8",[jo.variable]:"sizes.5",[Mo.variable]:"fontSizes.md",[Vi.variable]:"fontSizes.sm"}}),lg:Bi({stepper:{[Mr.variable]:"sizes.10",[jo.variable]:"sizes.6",[Mo.variable]:"fontSizes.lg",[Vi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function oe(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return oe(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return oe(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var HT=oe("accordion").parts("root","container","button","panel").extend("icon"),GT=oe("alert").parts("title","description","container").extend("icon","spinner"),KT=oe("avatar").parts("label","badge","container").extend("excessLabel","group"),YT=oe("breadcrumb").parts("link","item","container").extend("separator");oe("button").parts();var XT=oe("checkbox").parts("control","icon","container").extend("label");oe("progress").parts("track","filledTrack").extend("label");var qT=oe("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),QT=oe("editable").parts("preview","input","textarea"),ZT=oe("form").parts("container","requiredIndicator","helperText"),JT=oe("formError").parts("text","icon"),eP=oe("input").parts("addon","field","element","group"),tP=oe("list").parts("container","item","icon"),rP=oe("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),nP=oe("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),oP=oe("numberinput").parts("root","field","stepperGroup","stepper");oe("pininput").parts("field");var iP=oe("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),aP=oe("progress").parts("label","filledTrack","track"),sP=oe("radio").parts("container","control","label"),lP=oe("select").parts("field","icon"),uP=oe("slider").parts("container","track","thumb","filledTrack","mark"),cP=oe("stat").parts("container","label","helpText","number","icon"),dP=oe("switch").parts("container","track","thumb"),fP=oe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),hP=oe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),pP=oe("tag").parts("container","label","closeButton"),mP=oe("card").parts("container","header","body","footer");function Xn(e,t,r){return Math.min(Math.max(e,r),t)}class gP extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Oi=gP;function Bh(e){if(typeof e!="string")throw new Oi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=CP.test(e)?bP(e):e;const r=xP.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(za(s,2),16)),parseInt(za(a[3]||"f",2),16)/255]}const n=SP.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=kP.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=wP.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Xn(0,100,s)!==s)throw new Oi(e);if(Xn(0,100,l)!==l)throw new Oi(e);return[..._P(a,s,l),Number.isNaN(u)?1:u]}throw new Oi(e)}function vP(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const dg=e=>parseInt(e.replace(/_/g,""),36),yP="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=dg(t.substring(0,3)),n=dg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function bP(e){const t=e.toLowerCase().trim(),r=yP[vP(t)];if(!r)throw new Oi(e);return`#${r}`}const za=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),xP=new RegExp(`^#${za("([a-f0-9])",3)}([a-f0-9])?$`,"i"),SP=new RegExp(`^#${za("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),kP=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${za(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),wP=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,CP=/^[a-z]+$/i,fg=e=>Math.round(e*255),_P=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(fg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(fg)};function TP(e,t,r,n){return`rgba(${Xn(0,255,e).toFixed()}, ${Xn(0,255,t).toFixed()}, ${Xn(0,255,r).toFixed()}, ${parseFloat(Xn(0,1,n).toFixed(3))})`}function PP(e,t){const[r,n,o,i]=Bh(e);return TP(r,n,o,i-t)}function EP(e){const[t,r,n,o]=Bh(e);let i=a=>{const s=Xn(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function $P(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,st=(e,t,r)=>{const n=$P(e,`colors.${t}`,t);try{return EP(n),n}catch{return r??"#000000"}},zP=e=>{const[t,r,n]=Bh(e);return(t*299+r*587+n*114)/1e3},RP=e=>t=>{const r=st(t,e);return zP(r)<128?"dark":"light"},jP=e=>t=>RP(e)(t)==="dark",ui=(e,t)=>r=>{const n=st(r,e);return PP(n,1-t)};function hg(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 MP=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function DP(e){const t=MP();return!e||AP(e)?t:e.string&&e.colors?IP(e.string,e.colors):e.string&&!e.colors?FP(e.string):e.colors&&!e.string?LP(e.colors):t}function FP(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function IP(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function Vh(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function nb(e){return bt(e)&&e.reference?e.reference:String(e)}var ju=(e,...t)=>t.map(nb).join(` ${e} `).replace(/calc/g,""),pg=(...e)=>`calc(${ju("+",...e)})`,mg=(...e)=>`calc(${ju("-",...e)})`,sf=(...e)=>`calc(${ju("*",...e)})`,gg=(...e)=>`calc(${ju("/",...e)})`,vg=e=>{const t=nb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:sf(t,-1)},Dr=Object.assign(e=>({add:(...t)=>Dr(pg(e,...t)),subtract:(...t)=>Dr(mg(e,...t)),multiply:(...t)=>Dr(sf(e,...t)),divide:(...t)=>Dr(gg(e,...t)),negate:()=>Dr(vg(e)),toString:()=>e.toString()}),{add:pg,subtract:mg,multiply:sf,divide:gg,negate:vg});function BP(e){return!Number.isInteger(parseFloat(e.toString()))}function VP(e,t="-"){return e.replace(/\s+/g,t)}function ob(e){const t=VP(e.toString());return t.includes("\\.")?e:BP(e)?t.replace(".","\\."):e}function OP(e,t=""){return[t,ob(e)].filter(Boolean).join("-")}function NP(e,t){return`var(${ob(e)}${t?`, ${t}`:""})`}function WP(e,t=""){return`--${OP(e,t)}`}function Ue(e,t){const r=WP(e,t==null?void 0:t.prefix);return{variable:r,reference:NP(r,UP(t==null?void 0:t.fallback))}}function UP(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:HP,definePartsStyle:el}=pe(dP.keys),ta=Ue("switch-track-width"),Jn=Ue("switch-track-height"),$c=Ue("switch-track-diff"),GP=Dr.subtract(ta,Jn),lf=Ue("switch-thumb-x"),Ai=Ue("switch-bg"),KP=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ta.reference],height:[Jn.reference],transitionProperty:"common",transitionDuration:"fast",[Ai.variable]:"colors.gray.300",_dark:{[Ai.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ai.variable]:`colors.${t}.500`,_dark:{[Ai.variable]:`colors.${t}.200`}},bg:Ai.reference}},YP={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Jn.reference],height:[Jn.reference],_checked:{transform:`translateX(${lf.reference})`}},XP=el(e=>({container:{[$c.variable]:GP,[lf.variable]:$c.reference,_rtl:{[lf.variable]:Dr($c).negate().toString()}},track:KP(e),thumb:YP})),qP={sm:el({container:{[ta.variable]:"1.375rem",[Jn.variable]:"sizes.3"}}),md:el({container:{[ta.variable]:"1.875rem",[Jn.variable]:"sizes.4"}}),lg:el({container:{[ta.variable]:"2.875rem",[Jn.variable]:"sizes.6"}})},QP=HP({baseStyle:XP,sizes:qP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZP,definePartsStyle:qo}=pe(fP.keys),JP=qo({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"}}),Vl={"&[data-is-numeric=true]":{textAlign:"end"}},e5=qo(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Vl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Vl},caption:{color:L("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),t5=qo(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Vl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Vl},caption:{color:L("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e)},td:{background:L(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),r5={simple:e5,striped:t5,unstyled:{}},n5={sm:qo({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:qo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:qo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},o5=ZP({baseStyle:JP,variants:r5,sizes:n5,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),pt=B("tabs-color"),nr=B("tabs-bg"),Es=B("tabs-border-color"),{defineMultiStyleConfig:i5,definePartsStyle:wr}=pe(hP.keys),a5=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},s5=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}}},l5=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},u5={p:4},c5=wr(e=>({root:a5(e),tab:s5(e),tablist:l5(e),tabpanel:u5})),d5={sm:wr({tab:{py:1,px:4,fontSize:"sm"}}),md:wr({tab:{fontSize:"md",py:2,px:4}}),lg:wr({tab:{fontSize:"lg",py:3,px:4}})},f5=wr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[pt.variable]:`colors.${t}.600`,_dark:{[pt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[nr.variable]:"colors.gray.200",_dark:{[nr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:pt.reference,bg:nr.reference}}}),h5=wr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Es.variable]:"transparent",_selected:{[pt.variable]:`colors.${t}.600`,[Es.variable]:"colors.white",_dark:{[pt.variable]:`colors.${t}.300`,[Es.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Es.reference},color:pt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),p5=wr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[nr.variable]:"colors.gray.50",_dark:{[nr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[nr.variable]:"colors.white",[pt.variable]:`colors.${t}.600`,_dark:{[nr.variable]:"colors.gray.800",[pt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:pt.reference,bg:nr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),m5=wr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:st(r,`${t}.700`),bg:st(r,`${t}.100`)}}}}),g5=wr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[pt.variable]:"colors.gray.600",_dark:{[pt.variable]:"inherit"},_selected:{[pt.variable]:"colors.white",[nr.variable]:`colors.${t}.600`,_dark:{[pt.variable]:"colors.gray.800",[nr.variable]:`colors.${t}.300`}},color:pt.reference,bg:nr.reference}}}),v5=wr({}),y5={line:f5,enclosed:h5,"enclosed-colored":p5,"soft-rounded":m5,"solid-rounded":g5,unstyled:v5},b5=i5({baseStyle:c5,sizes:d5,variants:y5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Me=O_("badge",["bg","color","shadow"]),x5={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},S5=e=>{const{colorScheme:t,theme:r}=e,n=ui(`${t}.500`,.6)(r);return{[Me.bg.variable]:`colors.${t}.500`,[Me.color.variable]:"colors.white",_dark:{[Me.bg.variable]:n,[Me.color.variable]:"colors.whiteAlpha.800"}}},k5=e=>{const{colorScheme:t,theme:r}=e,n=ui(`${t}.200`,.16)(r);return{[Me.bg.variable]:`colors.${t}.100`,[Me.color.variable]:`colors.${t}.800`,_dark:{[Me.bg.variable]:n,[Me.color.variable]:`colors.${t}.200`}}},w5=e=>{const{colorScheme:t,theme:r}=e,n=ui(`${t}.200`,.8)(r);return{[Me.color.variable]:`colors.${t}.500`,_dark:{[Me.color.variable]:n},[Me.shadow.variable]:`inset 0 0 0px 1px ${Me.color.reference}`}},C5={solid:S5,subtle:k5,outline:w5},ra={baseStyle:x5,variants:C5,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:_5,definePartsStyle:eo}=pe(pP.keys),yg=B("tag-bg"),bg=B("tag-color"),Ac=B("tag-shadow"),tl=B("tag-min-height"),rl=B("tag-min-width"),nl=B("tag-font-size"),ol=B("tag-padding-inline"),T5={fontWeight:"medium",lineHeight:1.2,outline:0,[bg.variable]:Me.color.reference,[yg.variable]:Me.bg.reference,[Ac.variable]:Me.shadow.reference,color:bg.reference,bg:yg.reference,boxShadow:Ac.reference,borderRadius:"md",minH:tl.reference,minW:rl.reference,fontSize:nl.reference,px:ol.reference,_focusVisible:{[Ac.variable]:"shadows.outline"}},P5={lineHeight:1.2,overflow:"visible"},E5={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}},$5=eo({container:T5,label:P5,closeButton:E5}),A5={sm:eo({container:{[tl.variable]:"sizes.5",[rl.variable]:"sizes.5",[nl.variable]:"fontSizes.xs",[ol.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:eo({container:{[tl.variable]:"sizes.6",[rl.variable]:"sizes.6",[nl.variable]:"fontSizes.sm",[ol.variable]:"space.2"}}),lg:eo({container:{[tl.variable]:"sizes.8",[rl.variable]:"sizes.8",[nl.variable]:"fontSizes.md",[ol.variable]:"space.3"}})},z5={subtle:eo(e=>{var t;return{container:(t=ra.variants)==null?void 0:t.subtle(e)}}),solid:eo(e=>{var t;return{container:(t=ra.variants)==null?void 0:t.solid(e)}}),outline:eo(e=>{var t;return{container:(t=ra.variants)==null?void 0:t.outline(e)}})},R5=_5({variants:z5,baseStyle:$5,sizes:A5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Lr,defineMultiStyleConfig:j5}=pe(eP.keys),Do=B("input-height"),Fo=B("input-font-size"),Io=B("input-padding"),Lo=B("input-border-radius"),M5=Lr({addon:{height:Do.reference,fontSize:Fo.reference,px:Io.reference,borderRadius:Lo.reference},field:{width:"100%",height:Do.reference,fontSize:Fo.reference,px:Io.reference,borderRadius:Lo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),nn={lg:{[Fo.variable]:"fontSizes.lg",[Io.variable]:"space.4",[Lo.variable]:"radii.md",[Do.variable]:"sizes.12"},md:{[Fo.variable]:"fontSizes.md",[Io.variable]:"space.4",[Lo.variable]:"radii.md",[Do.variable]:"sizes.10"},sm:{[Fo.variable]:"fontSizes.sm",[Io.variable]:"space.3",[Lo.variable]:"radii.sm",[Do.variable]:"sizes.8"},xs:{[Fo.variable]:"fontSizes.xs",[Io.variable]:"space.2",[Lo.variable]:"radii.sm",[Do.variable]:"sizes.6"}},D5={lg:Lr({field:nn.lg,group:nn.lg}),md:Lr({field:nn.md,group:nn.md}),sm:Lr({field:nn.sm,group:nn.sm}),xs:Lr({field:nn.xs,group:nn.xs})};function Oh(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||L("blue.500","blue.300")(e),errorBorderColor:r||L("red.500","red.300")(e)}}var F5=Lr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Oh(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:L("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0 0 0 1px ${st(t,n)}`},_focusVisible:{zIndex:1,borderColor:st(t,r),boxShadow:`0 0 0 1px ${st(t,r)}`}},addon:{border:"1px solid",borderColor:L("inherit","whiteAlpha.50")(e),bg:L("gray.100","whiteAlpha.300")(e)}}}),I5=Lr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Oh(e);return{field:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e),_hover:{bg:L("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n)},_focusVisible:{bg:"transparent",borderColor:st(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e)}}}),L5=Lr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Oh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0px 1px 0px 0px ${st(t,n)}`},_focusVisible:{borderColor:st(t,r),boxShadow:`0px 1px 0px 0px ${st(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),B5=Lr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),V5={outline:F5,filled:I5,flushed:L5,unstyled:B5},re=j5({baseStyle:M5,sizes:D5,variants:V5,defaultProps:{size:"md",variant:"outline"}}),xg,O5={...(xg=re.baseStyle)==null?void 0:xg.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Sg,kg,N5={outline:e=>{var t,r;return(r=(t=re.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=re.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=re.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(kg=(Sg=re.variants)==null?void 0:Sg.unstyled.field)!=null?kg:{}},wg,Cg,_g,Tg,Pg,Eg,$g,Ag,W5={xs:(Cg=(wg=re.sizes)==null?void 0:wg.xs.field)!=null?Cg:{},sm:(Tg=(_g=re.sizes)==null?void 0:_g.sm.field)!=null?Tg:{},md:(Eg=(Pg=re.sizes)==null?void 0:Pg.md.field)!=null?Eg:{},lg:(Ag=($g=re.sizes)==null?void 0:$g.lg.field)!=null?Ag:{}},U5={baseStyle:O5,sizes:W5,variants:N5,defaultProps:{size:"md",variant:"outline"}},$s=Ue("tooltip-bg"),zc=Ue("tooltip-fg"),H5=Ue("popper-arrow-bg"),G5={bg:$s.reference,color:zc.reference,[$s.variable]:"colors.gray.700",[zc.variable]:"colors.whiteAlpha.900",_dark:{[$s.variable]:"colors.gray.300",[zc.variable]:"colors.gray.900"},[H5.variable]:$s.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},K5={baseStyle:G5},{defineMultiStyleConfig:Y5,definePartsStyle:Ni}=pe(aP.keys),X5=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=L(hg(),hg("1rem","rgba(0,0,0,0.1)"))(e),a=L(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${st(r,a)} 50%, + transparent 100% + )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},q5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Q5=e=>({bg:L("gray.100","whiteAlpha.300")(e)}),Z5=e=>({transitionProperty:"common",transitionDuration:"slow",...X5(e)}),J5=Ni(e=>({label:q5,filledTrack:Z5(e),track:Q5(e)})),eE={xs:Ni({track:{h:"1"}}),sm:Ni({track:{h:"2"}}),md:Ni({track:{h:"3"}}),lg:Ni({track:{h:"4"}})},tE=Y5({sizes:eE,baseStyle:J5,defaultProps:{size:"md",colorScheme:"blue"}}),rE=e=>typeof e=="function";function ut(e,...t){return rE(e)?e(...t):e}var{definePartsStyle:il,defineMultiStyleConfig:nE}=pe(XT.keys),na=B("checkbox-size"),oE=e=>{const{colorScheme:t}=e;return{w:na.reference,h:na.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e),_hover:{bg:L(`${t}.600`,`${t}.300`)(e),borderColor:L(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:L("gray.200","transparent")(e),bg:L("gray.200","whiteAlpha.300")(e),color:L("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e)},_disabled:{bg:L("gray.100","whiteAlpha.100")(e),borderColor:L("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:L("red.500","red.300")(e)}}},iE={_disabled:{cursor:"not-allowed"}},aE={userSelect:"none",_disabled:{opacity:.4}},sE={transitionProperty:"transform",transitionDuration:"normal"},lE=il(e=>({icon:sE,container:iE,control:ut(oE,e),label:aE})),uE={sm:il({control:{[na.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:il({control:{[na.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:il({control:{[na.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ol=nE({baseStyle:lE,sizes:uE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cE,definePartsStyle:al}=pe(sP.keys),dE=e=>{var t;const r=(t=ut(Ol.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},fE=al(e=>{var t,r,n,o;return{label:(r=(t=Ol).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Ol).baseStyle)==null?void 0:o.call(n,e).container,control:dE(e)}}),hE={md:al({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:al({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:al({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},pE=cE({baseStyle:fE,sizes:hE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:mE,definePartsStyle:gE}=pe(lP.keys),As=B("select-bg"),zg,vE={...(zg=re.baseStyle)==null?void 0:zg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:As.reference,[As.variable]:"colors.white",_dark:{[As.variable]:"colors.gray.700"},"> option, > optgroup":{bg:As.reference}},yE={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},bE=gE({field:vE,icon:yE}),zs={paddingInlineEnd:"8"},Rg,jg,Mg,Dg,Fg,Ig,Lg,Bg,xE={lg:{...(Rg=re.sizes)==null?void 0:Rg.lg,field:{...(jg=re.sizes)==null?void 0:jg.lg.field,...zs}},md:{...(Mg=re.sizes)==null?void 0:Mg.md,field:{...(Dg=re.sizes)==null?void 0:Dg.md.field,...zs}},sm:{...(Fg=re.sizes)==null?void 0:Fg.sm,field:{...(Ig=re.sizes)==null?void 0:Ig.sm.field,...zs}},xs:{...(Lg=re.sizes)==null?void 0:Lg.xs,field:{...(Bg=re.sizes)==null?void 0:Bg.xs.field,...zs},icon:{insetEnd:"1"}}},SE=mE({baseStyle:bE,sizes:xE,variants:re.variants,defaultProps:re.defaultProps}),Rc=B("skeleton-start-color"),jc=B("skeleton-end-color"),kE={[Rc.variable]:"colors.gray.100",[jc.variable]:"colors.gray.400",_dark:{[Rc.variable]:"colors.gray.800",[jc.variable]:"colors.gray.600"},background:Rc.reference,borderColor:jc.reference,opacity:.7,borderRadius:"sm"},wE={baseStyle:kE},Mc=B("skip-link-bg"),CE={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Mc.variable]:"colors.white",_dark:{[Mc.variable]:"colors.gray.700"},bg:Mc.reference}},_E={baseStyle:CE},{defineMultiStyleConfig:TE,definePartsStyle:Mu}=pe(uP.keys),Ra=B("slider-thumb-size"),ja=B("slider-track-size"),fn=B("slider-bg"),PE=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Vh({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},EE=e=>({...Vh({orientation:e.orientation,horizontal:{h:ja.reference},vertical:{w:ja.reference}}),overflow:"hidden",borderRadius:"sm",[fn.variable]:"colors.gray.200",_dark:{[fn.variable]:"colors.whiteAlpha.200"},_disabled:{[fn.variable]:"colors.gray.300",_dark:{[fn.variable]:"colors.whiteAlpha.300"}},bg:fn.reference}),$E=e=>{const{orientation:t}=e;return{...Vh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Ra.reference,h:Ra.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"}}},AE=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[fn.variable]:`colors.${t}.500`,_dark:{[fn.variable]:`colors.${t}.200`},bg:fn.reference}},zE=Mu(e=>({container:PE(e),track:EE(e),thumb:$E(e),filledTrack:AE(e)})),RE=Mu({container:{[Ra.variable]:"sizes.4",[ja.variable]:"sizes.1"}}),jE=Mu({container:{[Ra.variable]:"sizes.3.5",[ja.variable]:"sizes.1"}}),ME=Mu({container:{[Ra.variable]:"sizes.2.5",[ja.variable]:"sizes.0.5"}}),DE={lg:RE,md:jE,sm:ME},FE=TE({baseStyle:zE,sizes:DE,defaultProps:{size:"md",colorScheme:"blue"}}),Hn=Ue("spinner-size"),IE={width:[Hn.reference],height:[Hn.reference]},LE={xs:{[Hn.variable]:"sizes.3"},sm:{[Hn.variable]:"sizes.4"},md:{[Hn.variable]:"sizes.6"},lg:{[Hn.variable]:"sizes.8"},xl:{[Hn.variable]:"sizes.12"}},BE={baseStyle:IE,sizes:LE,defaultProps:{size:"md"}},{defineMultiStyleConfig:VE,definePartsStyle:ib}=pe(cP.keys),OE={fontWeight:"medium"},NE={opacity:.8,marginBottom:"2"},WE={verticalAlign:"baseline",fontWeight:"semibold"},UE={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},HE=ib({container:{},label:OE,helpText:NE,number:WE,icon:UE}),GE={md:ib({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},KE=VE({baseStyle:HE,sizes:GE,defaultProps:{size:"md"}}),Dc=B("kbd-bg"),YE={[Dc.variable]:"colors.gray.100",_dark:{[Dc.variable]:"colors.whiteAlpha.100"},bg:Dc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},XE={baseStyle:YE},qE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},QE={baseStyle:qE},{defineMultiStyleConfig:ZE,definePartsStyle:JE}=pe(tP.keys),e$={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},t$=JE({icon:e$}),r$=ZE({baseStyle:t$}),{defineMultiStyleConfig:n$,definePartsStyle:o$}=pe(rP.keys),pr=B("menu-bg"),Fc=B("menu-shadow"),i$={[pr.variable]:"#fff",[Fc.variable]:"shadows.sm",_dark:{[pr.variable]:"colors.gray.700",[Fc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:pr.reference,boxShadow:Fc.reference},a$={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[pr.variable]:"colors.gray.100",_dark:{[pr.variable]:"colors.whiteAlpha.100"}},_active:{[pr.variable]:"colors.gray.200",_dark:{[pr.variable]:"colors.whiteAlpha.200"}},_expanded:{[pr.variable]:"colors.gray.100",_dark:{[pr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:pr.reference},s$={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},l$={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},u$={opacity:.6},c$={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},d$={transitionProperty:"common",transitionDuration:"normal"},f$=o$({button:d$,list:i$,item:a$,groupTitle:s$,icon:l$,command:u$,divider:c$}),h$=n$({baseStyle:f$}),{defineMultiStyleConfig:p$,definePartsStyle:uf}=pe(nP.keys),Ic=B("modal-bg"),Lc=B("modal-shadow"),m$={bg:"blackAlpha.600",zIndex:"modal"},g$=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},v$=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Ic.variable]:"colors.white",[Lc.variable]:"shadows.lg",_dark:{[Ic.variable]:"colors.gray.700",[Lc.variable]:"shadows.dark-lg"},bg:Ic.reference,boxShadow:Lc.reference}},y$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},b$={position:"absolute",top:"2",insetEnd:"3"},x$=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},S$={px:"6",py:"4"},k$=uf(e=>({overlay:m$,dialogContainer:ut(g$,e),dialog:ut(v$,e),header:y$,closeButton:b$,body:ut(x$,e),footer:S$}));function Zt(e){return uf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var w$={xs:Zt("xs"),sm:Zt("sm"),md:Zt("md"),lg:Zt("lg"),xl:Zt("xl"),"2xl":Zt("2xl"),"3xl":Zt("3xl"),"4xl":Zt("4xl"),"5xl":Zt("5xl"),"6xl":Zt("6xl"),full:Zt("full")},C$=p$({baseStyle:k$,sizes:w$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:_$,definePartsStyle:ab}=pe(oP.keys),Nh=Ue("number-input-stepper-width"),sb=Ue("number-input-input-padding"),T$=Dr(Nh).add("0.5rem").toString(),Bc=Ue("number-input-bg"),Vc=Ue("number-input-color"),Oc=Ue("number-input-border-color"),P$={[Nh.variable]:"sizes.6",[sb.variable]:T$},E$=e=>{var t,r;return(r=(t=ut(re.baseStyle,e))==null?void 0:t.field)!=null?r:{}},$$={width:Nh.reference},A$={borderStart:"1px solid",borderStartColor:Oc.reference,color:Vc.reference,bg:Bc.reference,[Vc.variable]:"colors.chakra-body-text",[Oc.variable]:"colors.chakra-border-color",_dark:{[Vc.variable]:"colors.whiteAlpha.800",[Oc.variable]:"colors.whiteAlpha.300"},_active:{[Bc.variable]:"colors.gray.200",_dark:{[Bc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},z$=ab(e=>{var t;return{root:P$,field:(t=ut(E$,e))!=null?t:{},stepperGroup:$$,stepper:A$}});function Rs(e){var t,r,n;const o=(t=re.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=eb.fontSizes[a];return ab({field:{...o.field,paddingInlineEnd:sb.reference,verticalAlign:"top"},stepper:{fontSize:Dr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var R$={xs:Rs("xs"),sm:Rs("sm"),md:Rs("md"),lg:Rs("lg")},j$=_$({baseStyle:z$,sizes:R$,variants:re.variants,defaultProps:re.defaultProps}),Vg,M$={...(Vg=re.baseStyle)==null?void 0:Vg.field,textAlign:"center"},D$={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"}},Og,Ng,F$={outline:e=>{var t,r,n;return(n=(r=ut((t=re.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=ut((t=re.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=ut((t=re.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(Ng=(Og=re.variants)==null?void 0:Og.unstyled.field)!=null?Ng:{}},I$={baseStyle:M$,sizes:D$,variants:F$,defaultProps:re.defaultProps},{defineMultiStyleConfig:L$,definePartsStyle:B$}=pe(iP.keys),js=Ue("popper-bg"),V$=Ue("popper-arrow-bg"),Wg=Ue("popper-arrow-shadow-color"),O$={zIndex:10},N$={[js.variable]:"colors.white",bg:js.reference,[V$.variable]:js.reference,[Wg.variable]:"colors.gray.200",_dark:{[js.variable]:"colors.gray.700",[Wg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},W$={px:3,py:2,borderBottomWidth:"1px"},U$={px:3,py:2},H$={px:3,py:2,borderTopWidth:"1px"},G$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},K$=B$({popper:O$,content:N$,header:W$,body:U$,footer:H$,closeButton:G$}),Y$=L$({baseStyle:K$}),{definePartsStyle:cf,defineMultiStyleConfig:X$}=pe(qT.keys),Nc=B("drawer-bg"),Wc=B("drawer-box-shadow");function yo(e){return cf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var q$={bg:"blackAlpha.600",zIndex:"modal"},Q$={display:"flex",zIndex:"modal",justifyContent:"center"},Z$=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Nc.variable]:"colors.white",[Wc.variable]:"shadows.lg",_dark:{[Nc.variable]:"colors.gray.700",[Wc.variable]:"shadows.dark-lg"},bg:Nc.reference,boxShadow:Wc.reference}},J$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},e3={position:"absolute",top:"2",insetEnd:"3"},t3={px:"6",py:"2",flex:"1",overflow:"auto"},r3={px:"6",py:"4"},n3=cf(e=>({overlay:q$,dialogContainer:Q$,dialog:ut(Z$,e),header:J$,closeButton:e3,body:t3,footer:r3})),o3={xs:yo("xs"),sm:yo("md"),md:yo("lg"),lg:yo("2xl"),xl:yo("4xl"),full:yo("full")},i3=X$({baseStyle:n3,sizes:o3,defaultProps:{size:"xs"}}),{definePartsStyle:a3,defineMultiStyleConfig:s3}=pe(QT.keys),l3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},u3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},c3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},d3=a3({preview:l3,input:u3,textarea:c3}),f3=s3({baseStyle:d3}),{definePartsStyle:h3,defineMultiStyleConfig:p3}=pe(ZT.keys),Qo=B("form-control-color"),m3={marginStart:"1",[Qo.variable]:"colors.red.500",_dark:{[Qo.variable]:"colors.red.300"},color:Qo.reference},g3={mt:"2",[Qo.variable]:"colors.gray.600",_dark:{[Qo.variable]:"colors.whiteAlpha.600"},color:Qo.reference,lineHeight:"normal",fontSize:"sm"},v3=h3({container:{width:"100%",position:"relative"},requiredIndicator:m3,helperText:g3}),y3=p3({baseStyle:v3}),{definePartsStyle:b3,defineMultiStyleConfig:x3}=pe(JT.keys),Zo=B("form-error-color"),S3={[Zo.variable]:"colors.red.500",_dark:{[Zo.variable]:"colors.red.300"},color:Zo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},k3={marginEnd:"0.5em",[Zo.variable]:"colors.red.500",_dark:{[Zo.variable]:"colors.red.300"},color:Zo.reference},w3=b3({text:S3,icon:k3}),C3=x3({baseStyle:w3}),_3={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},T3={baseStyle:_3},P3={fontFamily:"heading",fontWeight:"bold"},E3={"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}},$3={baseStyle:P3,sizes:E3,defaultProps:{size:"xl"}},{defineMultiStyleConfig:A3,definePartsStyle:z3}=pe(YT.keys),Uc=B("breadcrumb-link-decor"),R3={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Uc.reference,[Uc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Uc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},j3=z3({link:R3}),M3=A3({baseStyle:j3}),D3={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"}}},lb=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.100","whiteAlpha.200")(e)},_active:{bg:L("gray.200","whiteAlpha.300")(e)}};const n=ui(`${t}.200`,.12)(r),o=ui(`${t}.200`,.24)(r);return{color:L(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:L(`${t}.50`,n)(e)},_active:{bg:L(`${t}.100`,o)(e)}}},F3=e=>{const{colorScheme:t}=e,r=L("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...ut(lb,e)}},I3={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},L3=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=L("gray.100","whiteAlpha.200")(e);return{bg:l,color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:L("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=I3[r])!=null?t:{},s=L(n,`${r}.200`)(e);return{bg:s,color:L(o,"gray.800")(e),_hover:{bg:L(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:L(a,`${r}.400`)(e)}}},B3=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:L(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:L(`${t}.700`,`${t}.500`)(e)}}},V3={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},O3={ghost:lb,outline:F3,solid:L3,link:B3,unstyled:V3},N3={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"}},W3={baseStyle:D3,variants:O3,sizes:N3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:to,defineMultiStyleConfig:U3}=pe(mP.keys),Nl=B("card-bg"),Nr=B("card-padding"),ub=B("card-shadow"),sl=B("card-radius"),cb=B("card-border-width","0"),db=B("card-border-color"),H3=to({container:{[Nl.variable]:"colors.chakra-body-bg",backgroundColor:Nl.reference,boxShadow:ub.reference,borderRadius:sl.reference,color:"chakra-body-text",borderWidth:cb.reference,borderColor:db.reference},body:{padding:Nr.reference,flex:"1 1 0%"},header:{padding:Nr.reference},footer:{padding:Nr.reference}}),G3={sm:to({container:{[sl.variable]:"radii.base",[Nr.variable]:"space.3"}}),md:to({container:{[sl.variable]:"radii.md",[Nr.variable]:"space.5"}}),lg:to({container:{[sl.variable]:"radii.xl",[Nr.variable]:"space.7"}})},K3={elevated:to({container:{[ub.variable]:"shadows.base",_dark:{[Nl.variable]:"colors.gray.700"}}}),outline:to({container:{[cb.variable]:"1px",[db.variable]:"colors.chakra-border-color"}}),filled:to({container:{[Nl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Nr.variable]:0},header:{[Nr.variable]:0},footer:{[Nr.variable]:0}}},Y3=U3({baseStyle:H3,variants:K3,sizes:G3,defaultProps:{variant:"elevated",size:"md"}}),oa=Ue("close-button-size"),zi=Ue("close-button-bg"),X3={w:[oa.reference],h:[oa.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[zi.variable]:"colors.blackAlpha.100",_dark:{[zi.variable]:"colors.whiteAlpha.100"}},_active:{[zi.variable]:"colors.blackAlpha.200",_dark:{[zi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:zi.reference},q3={lg:{[oa.variable]:"sizes.10",fontSize:"md"},md:{[oa.variable]:"sizes.8",fontSize:"xs"},sm:{[oa.variable]:"sizes.6",fontSize:"2xs"}},Q3={baseStyle:X3,sizes:q3,defaultProps:{size:"md"}},{variants:Z3,defaultProps:J3}=ra,e4={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},t4={baseStyle:e4,variants:Z3,defaultProps:J3},r4={w:"100%",mx:"auto",maxW:"prose",px:"4"},n4={baseStyle:r4},o4={opacity:.6,borderColor:"inherit"},i4={borderStyle:"solid"},a4={borderStyle:"dashed"},s4={solid:i4,dashed:a4},l4={baseStyle:o4,variants:s4,defaultProps:{variant:"solid"}},{definePartsStyle:u4,defineMultiStyleConfig:c4}=pe(HT.keys),d4={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},f4={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},h4={pt:"2",px:"4",pb:"5"},p4={fontSize:"1.25em"},m4=u4({container:d4,button:f4,panel:h4,icon:p4}),g4=c4({baseStyle:m4}),{definePartsStyle:Ha,defineMultiStyleConfig:v4}=pe(GT.keys),At=B("alert-fg"),Xr=B("alert-bg"),y4=Ha({container:{bg:Xr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:At.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:At.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Wh(e){const{theme:t,colorScheme:r}=e,n=ui(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var b4=Ha(e=>{const{colorScheme:t}=e,r=Wh(e);return{container:{[At.variable]:`colors.${t}.500`,[Xr.variable]:r.light,_dark:{[At.variable]:`colors.${t}.200`,[Xr.variable]:r.dark}}}}),x4=Ha(e=>{const{colorScheme:t}=e,r=Wh(e);return{container:{[At.variable]:`colors.${t}.500`,[Xr.variable]:r.light,_dark:{[At.variable]:`colors.${t}.200`,[Xr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:At.reference}}}),S4=Ha(e=>{const{colorScheme:t}=e,r=Wh(e);return{container:{[At.variable]:`colors.${t}.500`,[Xr.variable]:r.light,_dark:{[At.variable]:`colors.${t}.200`,[Xr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:At.reference}}}),k4=Ha(e=>{const{colorScheme:t}=e;return{container:{[At.variable]:"colors.white",[Xr.variable]:`colors.${t}.500`,_dark:{[At.variable]:"colors.gray.900",[Xr.variable]:`colors.${t}.200`},color:At.reference}}}),w4={subtle:b4,"left-accent":x4,"top-accent":S4,solid:k4},C4=v4({baseStyle:y4,variants:w4,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:fb,defineMultiStyleConfig:_4}=pe(KT.keys),Jo=B("avatar-border-color"),ia=B("avatar-bg"),Ma=B("avatar-font-size"),ci=B("avatar-size"),T4={borderRadius:"full",border:"0.2em solid",borderColor:Jo.reference,[Jo.variable]:"white",_dark:{[Jo.variable]:"colors.gray.800"}},P4={bg:ia.reference,fontSize:Ma.reference,width:ci.reference,height:ci.reference,lineHeight:"1",[ia.variable]:"colors.gray.200",_dark:{[ia.variable]:"colors.whiteAlpha.400"}},E4=e=>{const{name:t,theme:r}=e,n=t?DP({string:t}):"colors.gray.400",o=jP(n)(r);let i="white";return o||(i="gray.800"),{bg:ia.reference,fontSize:Ma.reference,color:i,borderColor:Jo.reference,verticalAlign:"top",width:ci.reference,height:ci.reference,"&:not([data-loaded])":{[ia.variable]:n},[Jo.variable]:"colors.white",_dark:{[Jo.variable]:"colors.gray.800"}}},$4={fontSize:Ma.reference,lineHeight:"1"},A4=fb(e=>({badge:ut(T4,e),excessLabel:ut(P4,e),container:ut(E4,e),label:$4}));function on(e){const t=e!=="100%"?rb[e]:void 0;return fb({container:{[ci.variable]:t??e,[Ma.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ci.variable]:t??e,[Ma.variable]:`calc(${t??e} / 2.5)`}})}var z4={"2xs":on(4),xs:on(6),sm:on(8),md:on(12),lg:on(16),xl:on(24),"2xl":on(32),full:on("100%")},R4=_4({baseStyle:A4,sizes:z4,defaultProps:{size:"md"}}),j4={Accordion:g4,Alert:C4,Avatar:R4,Badge:ra,Breadcrumb:M3,Button:W3,Checkbox:Ol,CloseButton:Q3,Code:t4,Container:n4,Divider:l4,Drawer:i3,Editable:f3,Form:y3,FormError:C3,FormLabel:T3,Heading:$3,Input:re,Kbd:XE,Link:QE,List:r$,Menu:h$,Modal:C$,NumberInput:j$,PinInput:I$,Popover:Y$,Progress:tE,Radio:pE,Select:SE,Skeleton:wE,SkipLink:_E,Slider:FE,Spinner:BE,Stat:KE,Switch:QP,Table:o5,Tabs:b5,Tag:R5,Textarea:U5,Tooltip:K5,Card:Y3,Stepper:UT},M4={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"}}},D4={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"}}},F4="ltr",I4={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},hb={semanticTokens:M4,direction:F4,...OT,components:j4,styles:D4,config:I4};function Wi(e){return typeof e=="function"}function L4(...e){return t=>e.reduce((r,n)=>n(r),t)}var B4=e=>function(...r){let n=[...r],o=r[r.length-1];return vT(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,L4(...n.map(i=>a=>Wi(i)?i(a):O4(a,i)))(o)},V4=B4(hb);function O4(...e){return Ht({},...e,pb)}function pb(e,t,r,n){if((Wi(e)||Wi(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Wi(e)?e(...o):e,a=Wi(t)?t(...o):t;return Ht({},i,a,pb)}}function N4(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function W4(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},mb=U4(W4);function gb(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var vb=e=>gb(e,t=>t!=null);function H4(e){return typeof e=="function"}function yb(e,...t){return H4(e)?e(...t):e}var G4=typeof Element<"u",K4=typeof Map=="function",Y4=typeof Set=="function",X4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ll(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ll(e[n],t[n]))return!1;return!0}var i;if(K4&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ll(n.value[1],t.get(n.value[0])))return!1;return!0}if(Y4&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(X4&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(G4&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ll(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var q4=function(t,r){try{return ll(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Q4=Zl(q4);function bb(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=G1(),s=e?mb(i,`components.${e}`):void 0,l=n||s,u=Ht({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},vb(N4(o,["children"]))),c=S.useRef({});if(l){const f=mT(l)(u);Q4(c.current,f)||(c.current=f)}return c.current}function Jr(e,t={}){return bb(e,t)}function Du(e,t={}){return bb(e,t)}var Z4=new Set([...nT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),J4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function eA(e){return J4.has(e)||!Z4.has(e)}function tA(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function rA(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var nA=/^((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)-.*))$/,oA=E1(function(e){return nA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),iA=oA,aA=function(t){return t!=="theme"},Ug=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?iA:aA},Hg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},sA=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return M1(r,n,o),z2(function(){return D1(r,n,o)}),null},lA=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Hg(t,r,n),l=s||Ug(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=gb(a,(d,f)=>iT(f)),l=yb(e,t),u=tA({},o,l,vb(s),i),c=J1(u)(t.theme);return n?[c,n]:c};function Hc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=eA);const o=dA({baseStyle:r}),i=cA(e,n)(o);return ei.forwardRef(function(l,u){const{colorMode:c,forced:d}=Dh();return ei.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function fA(){const e=new Map;return new Proxy(Hc,{apply(t,r,n){return Hc(...n)},get(t,r){return e.has(r)||e.set(r,Hc(r)),e.get(r)}})}var U=fA();function xe(e){return S.forwardRef(e)}function xb(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var a;const s=S.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function hA(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>rT(r),[r]);return b.jsxs(M2,{theme:o,children:[b.jsx(pA,{root:t}),n]})}function pA({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return b.jsx(Eu,{styles:r=>({[t]:r.__cssVars})})}xb({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function mA(e){return xb({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function gA(){const{colorMode:e}=Dh();return b.jsx(Eu,{styles:t=>{const r=mb(t,"styles.global"),n=yb(r,{theme:t,colorMode:e});return n?J1(n)(t):void 0}})}var Sb=S.createContext({getDocument(){return document},getWindow(){return window}});Sb.displayName="EnvironmentContext";function kb(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return b.jsxs(Sb.Provider,{value:i,children:[t,a&&b.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}kb.displayName="EnvironmentProvider";var vA=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=b.jsx(kb,{environment:s,disabled:u,children:t});return b.jsx(hA,{theme:a,cssVarsRoot:l,children:b.jsxs(H1,{colorModeManager:r,options:a.config,children:[i?b.jsx(I2,{scope:o}):b.jsx(F2,{}),!c&&b.jsx(gA,{}),n?b.jsx(N1,{zIndex:n,children:d}):d]})})},yA=(e,t)=>e.find(r=>r.id===t);function Kg(e,t){const r=wb(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function wb(e,t){for(const[r,n]of Object.entries(e))if(yA(n,t))return r}function bA(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function xA(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:a}}function Cn(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function SA(e,t){const r=Cn(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function df(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const Cb=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fu=S.createContext({}),Ga=S.createContext(null),Iu=typeof document<"u",Uh=Iu?S.useLayoutEffect:S.useEffect,_b=S.createContext({strict:!1});function kA(e,t,r,n){const{visualElement:o}=S.useContext(Fu),i=S.useContext(_b),a=S.useContext(Ga),s=S.useContext(Cb).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,a)});const c=S.useRef(!!window.HandoffAppearAnimations);return Uh(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Bo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wA(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Bo(r)&&(r.current=n))},[t])}function Da(e){return typeof e=="string"||Array.isArray(e)}function Lu(e){return typeof e=="object"&&typeof e.start=="function"}const Hh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gh=["initial",...Hh];function Bu(e){return Lu(e.animate)||Gh.some(t=>Da(e[t]))}function Tb(e){return!!(Bu(e)||e.variants)}function CA(e,t){if(Bu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Da(r)?r:void 0,animate:Da(n)?n:void 0}}return e.inherit!==!1?t:{}}function _A(e){const{initial:t,animate:r}=CA(e,S.useContext(Fu));return S.useMemo(()=>({initial:t,animate:r}),[Yg(t),Yg(r)])}function Yg(e){return Array.isArray(e)?e.join(" "):e}const Xg={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"]},Fa={};for(const e in Xg)Fa[e]={isEnabled:t=>Xg[e].some(r=>!!t[r])};function TA(e){for(const t in e)Fa[t]={...Fa[t],...e[t]}}const Kh=S.createContext({}),Pb=S.createContext({}),PA=Symbol.for("motionComponentSymbol");function EA({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&TA(e);function i(s,l){let u;const c={...S.useContext(Cb),...s,layoutId:$A(s)},{isStatic:d}=c,f=_A(s),p=n(s,d);if(!d&&Iu){f.visualElement=kA(o,p,c,t);const v=S.useContext(Pb),x=S.useContext(_b).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,x,e,v))}return S.createElement(Fu.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,wA(p,f.visualElement,l),p,d,f.visualElement))}const a=S.forwardRef(i);return a[PA]=o,a}function $A({layoutId:e}){const t=S.useContext(Kh).id;return t&&e!==void 0?t+"-"+e:e}function AA(e){function t(n,o={}){return EA(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const zA=["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 Yh(e){return typeof e!="string"||e.includes("-")?!1:!!(zA.indexOf(e)>-1||/[A-Z]/.test(e))}const Ul={};function RA(e){Object.assign(Ul,e)}const Ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],co=new Set(Ka);function Eb(e,{layout:t,layoutId:r}){return co.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ul[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),jA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MA=Ka.length;function DA(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),Ab=$b("--"),ff=$b("var(--"),FA=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,IA=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$n=(e,t,r)=>Math.min(Math.max(r,e),t),fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},aa={...fo,transform:e=>$n(0,1,e)},Ms={...fo,default:1},sa=e=>Math.round(e*1e5)/1e5,Vu=/(-)?([\d]*\.?[\d])+/g,zb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,LA=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ya(e){return typeof e=="string"}const Xa=e=>({test:t=>Ya(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),an=Xa("deg"),Cr=Xa("%"),N=Xa("px"),BA=Xa("vh"),VA=Xa("vw"),qg={...Cr,parse:e=>Cr.parse(e)/100,transform:e=>Cr.transform(e*100)},Qg={...fo,transform:Math.round},Rb={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,size:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,rotate:an,rotateX:an,rotateY:an,rotateZ:an,scale:Ms,scaleX:Ms,scaleY:Ms,scaleZ:Ms,skew:an,skewX:an,skewY:an,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:aa,originX:qg,originY:qg,originZ:N,zIndex:Qg,fillOpacity:aa,strokeOpacity:aa,numOctaves:Qg};function Xh(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Ab(d)){i[d]=f;continue}const p=Rb[d],v=IA(f,p);if(co.has(d)){if(l=!0,a[d]=v,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=v):o[d]=v}if(t.transform||(l||n?o.transform=DA(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const qh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jb(e,t,r){for(const n in t)!St(t[n])&&!Eb(n,r)&&(e[n]=t[n])}function OA({transformTemplate:e},t,r){return S.useMemo(()=>{const n=qh();return Xh(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function NA(e,t,r){const n=e.style||{},o={};return jb(o,n,e),Object.assign(o,OA(e,t,r)),e.transformValues?e.transformValues(o):o}function WA(e,t,r){const n={},o=NA(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const UA=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 Hl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||UA.has(e)}let Mb=e=>!Hl(e);function HA(e){e&&(Mb=t=>t.startsWith("on")?!Hl(t):e(t))}try{HA(require("@emotion/is-prop-valid").default)}catch{}function GA(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Mb(o)||r===!0&&Hl(o)||!t&&!Hl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Zg(e,t,r){return typeof e=="string"?e:N.transform(t+r*e)}function KA(e,t,r){const n=Zg(t,e.x,e.width),o=Zg(r,e.y,e.height);return`${n} ${o}`}const YA={offset:"stroke-dashoffset",array:"stroke-dasharray"},XA={offset:"strokeDashoffset",array:"strokeDasharray"};function qA(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?YA:XA;e[i.offset]=N.transform(-n);const a=N.transform(t),s=N.transform(r);e[i.array]=`${a} ${s}`}function Qh(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(Xh(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:x}=e;p.transform&&(x&&(v.transform=p.transform),delete p.transform),x&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=KA(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),a!==void 0&&qA(p,a,s,l,!1)}const Db=()=>({...qh(),attrs:{}}),Zh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QA(e,t,r,n){const o=S.useMemo(()=>{const i=Db();return Qh(i,t,{enableHardwareAcceleration:!1},Zh(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};jb(i,e.style,e),o.style={...i,...o.style}}return o}function ZA(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(Yh(r)?QA:WA)(n,i,a,r),c={...GA(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>St(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}const Jh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Fb(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const Ib=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 Lb(e,t,r,n){Fb(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ib.has(o)?o:Jh(o),t.attrs[o])}function ep(e,t){const{style:r}=e,n={};for(const o in r)(St(r[o])||t.style&&St(t.style[o])||Eb(o,e))&&(n[o]=r[o]);return n}function Bb(e,t){const r=ep(e,t);for(const n in e)if(St(e[n])||St(t[n])){const o=Ka.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function tp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Vb(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gl=e=>Array.isArray(e),JA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ez=e=>Gl(e)?e[e.length-1]||0:e;function ul(e){const t=St(e)?e.get():e;return JA(t)?t.toValue():t}function tz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:rz(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const Ob=e=>(t,r)=>{const n=S.useContext(Fu),o=S.useContext(Ga),i=()=>tz(e,t,n,o);return r?i():Vb(i)};function rz(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=ul(i[f]);let{initial:a,animate:s}=e;const l=Bu(e),u=Tb(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!Lu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const v=tp(e,p);if(!v)return;const{transitionEnd:x,transition:_,...g}=v;for(const h in g){let m=g[h];if(Array.isArray(m)){const C=c?m.length-1:0;m=m[C]}m!==null&&(o[h]=m)}for(const h in x)o[h]=x[h]}),o}const ze=e=>e;class Jg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function nz(e){let t=new Jg,r=new Jg,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=nz(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,oz),1),o.timestamp=d,o.isProcessing=!0,Ds.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:Ds.reduce((d,f)=>{const p=i[f];return d[f]=(v,x=!1,_=!1)=>(r||l(),p.schedule(v,x,_)),d},{}),cancel:d=>Ds.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:he,cancel:qr,state:He,steps:Gc}=iz(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),az={useVisualState:Ob({scrapeMotionValuesFromProps:Bb,createRenderState:Db,onMount:(e,t,{renderState:r,latestValues:n})=>{he.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),he.render(()=>{Qh(r,n,{enableHardwareAcceleration:!1},Zh(t.tagName),e.transformTemplate),Lb(t,r)})}})},sz={useVisualState:Ob({scrapeMotionValuesFromProps:ep,createRenderState:qh})};function lz(e,{forwardMotionProps:t=!1},r,n){return{...Yh(e)?az:sz,preloadedFeatures:r,useRender:ZA(t),createVisualElement:n,Component:e}}function Br(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ou(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const uz=e=>t=>Nb(t)&&e(t,Ou(t));function Wr(e,t,r,n){return Br(e,t,uz(r),n)}const cz=(e,t)=>r=>t(e(r)),_n=(...e)=>e.reduce(cz);function Wb(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const e0=Wb("dragHorizontal"),t0=Wb("dragVertical");function Ub(e){let t=!1;if(e==="y")t=t0();else if(e==="x")t=e0();else{const r=e0(),n=t0();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Hb(){const e=Ub(!0);return e?(e(),!1):!0}class Mn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function r0(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||Hb())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&he.update(()=>s[n](i,a))};return Wr(e.current,r,o,{passive:!e.getProps()[n]})}class dz extends Mn{mount(){this.unmount=_n(r0(this.node,!0),r0(this.node,!1))}unmount(){}}class fz extends Mn{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=_n(Br(this.node.current,"focus",()=>this.onFocus()),Br(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Gb=(e,t)=>t?e===t?!0:Gb(e,t.parentElement):!1;function Kc(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ou(r))}class hz extends Mn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Wr(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();he.update(()=>{Gb(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Wr(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_n(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Kc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&he.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Br(this.node.current,"keyup",a),Kc("down",(s,l)=>{this.startPress(s,l)})},r=Br(this.node.current,"keydown",t),n=()=>{this.isPressing&&Kc("cancel",(i,a)=>this.cancelPress(i,a))},o=Br(this.node.current,"blur",n);this.removeAccessibleListeners=_n(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&he.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Hb()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&he.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Wr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Br(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_n(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hf=new WeakMap,Yc=new WeakMap,pz=e=>{const t=hf.get(e.target);t&&t(e)},mz=e=>{e.forEach(pz)};function gz({root:e,...t}){const r=e||document;Yc.has(r)||Yc.set(r,{});const n=Yc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(mz,{root:e,...t})),n[o]}function vz(e,t,r){const n=gz(t);return hf.set(e,r),n.observe(e),()=>{hf.delete(e),n.unobserve(e)}}const yz={some:0,all:1};class bz extends Mn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:yz[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return vz(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(xz(t,r))&&this.startObserver()}unmount(){}}function xz({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Sz={inView:{Feature:bz},tap:{Feature:hz},focus:{Feature:fz},hover:{Feature:dz}};function Kb(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function wz(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Nu(e,t,r){const n=e.getProps();return tp(n,t,r!==void 0?r:n.custom,kz(e),wz(e))}const Cz="framerAppearId",_z="data-"+Jh(Cz);let Tz=ze,rp=ze;const Tn=e=>e*1e3,Ur=e=>e/1e3,Pz={current:!1},Yb=e=>Array.isArray(e)&&typeof e[0]=="number";function Xb(e){return!!(!e||typeof e=="string"&&qb[e]||Yb(e)||Array.isArray(e)&&e.every(Xb))}const Ui=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,qb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ui([0,.65,.55,1]),circOut:Ui([.55,0,1,.45]),backIn:Ui([.31,.01,.66,-.59]),backOut:Ui([.33,1.53,.69,.99])};function Qb(e){if(e)return Yb(e)?Ui(e):Array.isArray(e)?e.map(Qb):qb[e]}function Ez(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=Qb(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function $z(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Zb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Az=1e-7,zz=12;function Rz(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=Zb(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Az&&++sRz(i,0,1,e,r);return i=>i===0||i===1?i:Zb(o(i),t,n)}const jz=qa(.42,0,1,1),Mz=qa(0,0,.58,1),Jb=qa(.42,0,.58,1),Dz=e=>Array.isArray(e)&&typeof e[0]!="number",ex=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tx=e=>t=>1-e(1-t),rx=e=>1-Math.sin(Math.acos(e)),np=tx(rx),Fz=ex(np),nx=qa(.33,1.53,.69,.99),op=tx(nx),Iz=ex(op),Lz=e=>(e*=2)<1?.5*op(e):.5*(2-Math.pow(2,-10*(e-1))),Bz={linear:ze,easeIn:jz,easeInOut:Jb,easeOut:Mz,circIn:rx,circInOut:Fz,circOut:np,backIn:op,backInOut:Iz,backOut:nx,anticipate:Lz},n0=e=>{if(Array.isArray(e)){rp(e.length===4);const[t,r,n,o]=e;return qa(t,r,n,o)}else if(typeof e=="string")return Bz[e];return e},ip=(e,t)=>r=>!!(Ya(r)&&LA.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),ox=(e,t,r)=>n=>{if(!Ya(n))return n;const[o,i,a,s]=n.match(Vu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Vz=e=>$n(0,255,e),Xc={...fo,transform:e=>Math.round(Vz(e))},qn={test:ip("rgb","red"),parse:ox("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Xc.transform(e)+", "+Xc.transform(t)+", "+Xc.transform(r)+", "+sa(aa.transform(n))+")"};function Oz(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const pf={test:ip("#"),parse:Oz,transform:qn.transform},Vo={test:ip("hsl","hue"),parse:ox("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cr.transform(sa(t))+", "+Cr.transform(sa(r))+", "+sa(aa.transform(n))+")"},it={test:e=>qn.test(e)||pf.test(e)||Vo.test(e),parse:e=>qn.test(e)?qn.parse(e):Vo.test(e)?Vo.parse(e):pf.parse(e),transform:e=>Ya(e)?e:e.hasOwnProperty("red")?qn.transform(e):Vo.transform(e)},Te=(e,t,r)=>-r*e+r*t+e;function qc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Nz({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=qc(l,s,e+1/3),i=qc(l,s,e),a=qc(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const Qc=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Wz=[pf,qn,Vo],Uz=e=>Wz.find(t=>t.test(e));function o0(e){const t=Uz(e);let r=t.parse(e);return t===Vo&&(r=Nz(r)),r}const ix=(e,t)=>{const r=o0(e),n=o0(t),o={...r};return i=>(o.red=Qc(r.red,n.red,i),o.green=Qc(r.green,n.green,i),o.blue=Qc(r.blue,n.blue,i),o.alpha=Te(r.alpha,n.alpha,i),qn.transform(o))};function Hz(e){var t,r;return isNaN(e)&&Ya(e)&&(((t=e.match(Vu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(zb))===null||r===void 0?void 0:r.length)||0)>0}const ax={regex:FA,countKey:"Vars",token:"${v}",parse:ze},sx={regex:zb,countKey:"Colors",token:"${c}",parse:it.parse},lx={regex:Vu,countKey:"Numbers",token:"${n}",parse:fo.parse};function Zc(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Kl(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Zc(r,ax),Zc(r,sx),Zc(r,lx),r}function ux(e){return Kl(e).values}function cx(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Kl(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function Kz(e){const t=ux(e);return cx(e)(t.map(Gz))}const An={test:Hz,parse:ux,createTransformer:cx,getAnimatableNone:Kz},dx=(e,t)=>r=>`${r>0?t:e}`;function fx(e,t){return typeof e=="number"?r=>Te(e,t,r):it.test(e)?ix(e,t):e.startsWith("var(")?dx(e,t):px(e,t)}const hx=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>fx(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=fx(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},px=(e,t)=>{const r=An.createTransformer(t),n=Kl(e),o=Kl(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?_n(hx(n.values,o.values),r):dx(e,t)},Ia=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},i0=(e,t)=>r=>Te(e,t,r);function Xz(e){return typeof e=="number"?i0:typeof e=="string"?it.test(e)?ix:px:Array.isArray(e)?hx:typeof e=="object"?Yz:i0}function qz(e,t,r){const n=[],o=r||Xz(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=qz(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl($n(e[0],e[i-1],u)):l}function Qz(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Ia(0,t,n);e.push(Te(r,1,o))}}function Zz(e){const t=[0];return Qz(t,e.length-1),t}function Jz(e,t){return e.map(r=>r*t)}function eR(e,t){return e.map(()=>t||Jb).splice(0,e.length-1)}function Yl({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Dz(n)?n.map(n0):n0(n),i={done:!1,value:t[0]},a=Jz(r&&r.length===t.length?r:Zz(t),e),s=mx(a,t,{ease:Array.isArray(o)?o:eR(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function gx(e,t){return t?e*(1e3/t):0}const tR=5;function vx(e,t,r){const n=Math.max(t-tR,0);return gx(r-e(n),t-n)}const Jc=.001,rR=.01,a0=10,nR=.05,oR=1;function iR({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Tz(e<=Tn(a0));let a=1-t;a=$n(nR,oR,a),e=$n(rR,a0,Ur(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=mf(u,a),v=Math.exp(-d);return Jc-f/p*v},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=mf(Math.pow(u,2),a);return(-o(u)+Jc>0?-1:1)*((f-p)*v)/x}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Jc+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=sR(o,i,s);if(e=Tn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const aR=12;function sR(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function cR(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!s0(e,uR)&&s0(e,lR)){const r=iR(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function yx({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=cR(n),p=c?-Ur(c):0,v=l/(2*Math.sqrt(s*u)),x=i-o,_=Ur(Math.sqrt(s/u)),g=Math.abs(x)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let h;if(v<1){const m=mf(_,v);h=C=>{const E=Math.exp(-v*_*C);return i-E*((p+v*_*x)/m*Math.sin(m*C)+x*Math.cos(m*C))}}else if(v===1)h=m=>i-Math.exp(-_*m)*(x+(p+_*x)*m);else{const m=_*Math.sqrt(v*v-1);h=C=>{const E=Math.exp(-v*_*C),A=Math.min(m*C,300);return i-E*((p+v*_*x)*Math.sinh(A)+m*x*Math.cosh(A))/m}}return{calculatedDuration:f&&d||null,next:m=>{const C=h(m);if(f)a.done=m>=d;else{let E=p;m!==0&&(v<1?E=vx(h,m,C):E=0);const A=Math.abs(E)<=r,P=Math.abs(i-C)<=t;a.done=A&&P}return a.value=a.done?i:C,a}}}function l0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=$=>s!==void 0&&$l,v=$=>s===void 0?l:l===void 0||Math.abs(s-$)-x*Math.exp(-$/n),m=$=>g+h($),C=$=>{const M=h($),F=m($);f.done=Math.abs(M)<=u,f.value=f.done?g:F};let E,A;const P=$=>{p(f.value)&&(E=$,A=yx({keyframes:[f.value,v(f.value)],velocity:vx(m,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:$=>{let M=!1;return!A&&E===void 0&&(M=!0,C($),P($)),E!==void 0&&$>E?A.next($-E):(!M&&C($),f)}}}const dR=e=>{const t=({timestamp:r})=>e(r);return{start:()=>he.update(t,!0),stop:()=>qr(t),now:()=>He.isProcessing?He.timestamp:performance.now()}},u0=2e4;function c0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=u0?1/0:t}const fR={decay:l0,inertia:l0,tween:Yl,keyframes:Yl,spring:yx};function Xl({autoplay:e=!0,delay:t=0,driver:r=dR,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,v=!1,x,_;const g=()=>{_=new Promise(O=>{x=O})};g();let h;const m=fR[o]||Yl;let C;m!==Yl&&typeof n[0]!="number"&&(C=mx([0,100],n,{clamp:!1}),n=[0,100]);const E=m({...f,keyframes:n});let A;s==="mirror"&&(A=m({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let P="idle",$=null,M=null,F=null;E.calculatedDuration===null&&i&&(E.calculatedDuration=c0(E));const{calculatedDuration:ie}=E;let me=1/0,Re=1/0;ie!==null&&(me=ie+a,Re=me*(i+1)-a);let ae=0;const de=O=>{if(M===null)return;p>0&&(M=Math.min(M,O)),p<0&&(M=Math.min(O-Re/p,M)),$!==null?ae=$:ae=Math.round(O-M)*p;const Z=ae-t*(p>=0?1:-1),H=p>=0?Z<0:Z>Re;ae=Math.max(Z,0),P==="finished"&&$===null&&(ae=Re);let ue=ae,qt=E;if(i){const en=ae/me;let lr=Math.floor(en),Ft=en%1;!Ft&&en>=1&&(Ft=1),Ft===1&&lr--,lr=Math.min(lr,i+1);const Dn=!!(lr%2);Dn&&(s==="reverse"?(Ft=1-Ft,a&&(Ft-=a/me)):s==="mirror"&&(qt=A));let ho=$n(0,1,Ft);ae>Re&&(ho=s==="reverse"&&Dn?1:0),ue=ho*me}const $e=H?{done:!1,value:n[0]}:qt.next(ue);C&&($e.value=C($e.value));let{done:kt}=$e;!H&&ie!==null&&(kt=p>=0?ae>=Re:ae<=0);const sr=$===null&&(P==="finished"||P==="running"&&kt);return d&&d($e.value),sr&&R(),$e},De=()=>{h&&h.stop(),h=void 0},Ve=()=>{P="idle",De(),x(),g(),M=F=null},R=()=>{P="finished",c&&c(),De(),x()},V=()=>{if(v)return;h||(h=r(de));const O=h.now();l&&l(),$!==null?M=O-$:(!M||P==="finished")&&(M=O),P==="finished"&&g(),F=M,$=null,P="running",h.start()};e&&V();const W={then(O,Z){return _.then(O,Z)},get time(){return Ur(ae)},set time(O){O=Tn(O),ae=O,$!==null||!h||p===0?$=O:M=h.now()-O/p},get duration(){const O=E.calculatedDuration===null?c0(E):E.calculatedDuration;return Ur(O)},get speed(){return p},set speed(O){O===p||!h||(p=O,W.time=Ur(ae))},get state(){return P},play:V,pause:()=>{P="paused",$=ae},stop:()=>{v=!0,P!=="idle"&&(P="idle",u&&u(),Ve())},cancel:()=>{F!==null&&de(F),Ve()},complete:()=>{P="finished"},sample:O=>(M=0,de(O))};return W}function hR(e){let t;return()=>(t===void 0&&(t=e()),t)}const pR=hR(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mR=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fs=10,gR=2e4,vR=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Xb(t.ease);function yR(e,t,{onUpdate:r,onComplete:n,...o}){if(!(pR()&&mR.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const u=()=>{l=new Promise(h=>{s=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(vR(t,o)){const h=Xl({...o,repeat:0,delay:0});let m={done:!1,value:c[0]};const C=[];let E=0;for(;!m.done&&Ev.cancel(),_=()=>{he.update(x),s(),u()};return v.onfinish=()=>{e.set($z(c,o)),n&&n(),_()},{then(h,m){return l.then(h,m)},attachTimeline(h){return v.timeline=h,v.onfinish=null,ze},get time(){return Ur(v.currentTime||0)},set time(h){v.currentTime=Tn(h)},get speed(){return v.playbackRate},set speed(h){v.playbackRate=h},get duration(){return Ur(d)},play:()=>{a||(v.play(),qr(x))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:h}=v;if(h){const m=Xl({...o,autoplay:!1});e.setWithVelocity(m.sample(h-Fs).value,m.sample(h).value,Fs)}_()},complete:()=>v.finish(),cancel:_}}function bR({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:ze,pause:ze,stop:ze,then:i=>(i(),Promise.resolve()),cancel:ze,complete:ze});return t?Xl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const xR={type:"spring",stiffness:500,damping:25,restSpeed:10},SR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kR={type:"keyframes",duration:.8},wR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CR=(e,{keyframes:t})=>t.length>2?kR:co.has(e)?e.startsWith("scale")?SR(t[1]):xR:wR,gf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(An.test(t)||t==="0")&&!t.startsWith("url(")),_R=new Set(["brightness","contrast","saturate","opacity"]);function TR(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Vu)||[];if(!n)return e;const o=r.replace(n,"");let i=_R.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const PR=/([a-z-]*)\(.*?\)/g,vf={...An,getAnimatableNone:e=>{const t=e.match(PR);return t?t.map(TR).join(" "):e}},ER={...Rb,color:it,backgroundColor:it,outlineColor:it,fill:it,stroke:it,borderColor:it,borderTopColor:it,borderRightColor:it,borderBottomColor:it,borderLeftColor:it,filter:vf,WebkitFilter:vf},ap=e=>ER[e];function bx(e,t){let r=ap(e);return r!==vf&&(r=An),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const xx=e=>/^0[^.\s]+$/.test(e);function $R(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||xx(e)}function AR(e,t,r,n){const o=gf(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=Sx(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Tn(a);const l=AR(t,e,r,i),u=l[0],c=l[l.length-1],d=gf(e,u),f=gf(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(zR(i)||(p={...p,...CR(e,p)}),p.duration&&(p.duration=Tn(p.duration)),p.repeatDelay&&(p.repeatDelay=Tn(p.repeatDelay)),!d||!f||Pz.current||i.type===!1)return bR(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=yR(t,e,p);if(v)return v}return Xl(p)};function ql(e){return!!(St(e)&&e.add)}const kx=e=>/^\-?\d*\.?\d+$/.test(e);function lp(e,t){e.indexOf(t)===-1&&e.push(t)}function up(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class cp{constructor(){this.subscriptions=[]}add(t){return lp(this.subscriptions,t),()=>up(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class jR{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=He;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,he.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>he.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=RR(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new cp);const n=this.events[t].add(r);return t==="change"?()=>{n(),he.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?gx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function di(e,t){return new jR(e,t)}const wx=e=>t=>t.test(e),MR={test:e=>e==="auto",parse:e=>e},Cx=[fo,N,Cr,an,VA,BA,MR],Ri=e=>Cx.find(wx(e)),DR=[...Cx,it,An],FR=e=>DR.find(wx(e));function IR(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,di(r))}function LR(e,t){const r=Nu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=ez(i[a]);IR(e,a,s)}}function BR(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(x)}return a&&Promise.all(u).then(()=>{a&&LR(e,a)}),u}function yf(e,t,r={}){const n=Nu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(_x(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return WR(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function WR(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(UR).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(yf(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function UR(e,t){return e.sortNodePosition(t)}function HR(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>yf(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=yf(e,t,r);else{const o=typeof t=="function"?Nu(e,t,r.custom):t;n=Promise.all(_x(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const GR=[...Hh].reverse(),KR=Hh.length;function YR(e){return t=>Promise.all(t.map(({animation:r,options:n})=>HR(e,r,n)))}function XR(e){let t=YR(e);const r=QR();let n=!0;const o=(l,u)=>{const c=Nu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let v={},x=1/0;for(let g=0;gx&&E;const F=Array.isArray(C)?C:[C];let ie=F.reduce(o,{});A===!1&&(ie={});const{prevResolvedValues:me={}}=m,Re={...me,...ie},ae=de=>{M=!0,p.delete(de),m.needsAnimating[de]=!0};for(const de in Re){const De=ie[de],Ve=me[de];v.hasOwnProperty(de)||(De!==Ve?Gl(De)&&Gl(Ve)?!Kb(De,Ve)||$?ae(de):m.protectedKeys[de]=!0:De!==void 0?ae(de):p.add(de):De!==void 0&&p.has(de)?ae(de):m.protectedKeys[de]=!0)}m.prevProp=C,m.prevResolvedValues=ie,m.isActive&&(v={...v,...ie}),n&&e.blockInitialAnimation&&(M=!1),M&&!P&&f.push(...F.map(de=>({animation:de,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const m=e.getBaseTarget(h);m!==void 0&&(g[h]=m)}),f.push({animation:g})}let _=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(_=!1),n=!1,_?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function qR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Kb(t,e):!1}function Bn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QR(){return{animate:Bn(!0),whileInView:Bn(),whileHover:Bn(),whileTap:Bn(),whileDrag:Bn(),whileFocus:Bn(),exit:Bn()}}class ZR extends Mn{constructor(t){super(t),t.animationState||(t.animationState=XR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Lu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let JR=0;class ej extends Mn{constructor(){super(...arguments),this.id=JR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const tj={animation:{Feature:ZR},exit:{Feature:ej}},d0=(e,t)=>Math.abs(e-t);function rj(e,t){const r=d0(e.x,t.x),n=d0(e.y,t.y);return Math.sqrt(r**2+n**2)}class Tx{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=td(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=rj(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=He;this.history.push({...f,timestamp:p});const{onStart:v,onMove:x}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=ed(c,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=td(u.type==="pointercancel"?this.lastMoveEventInfo:ed(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!Nb(t))return;this.handlers=r,this.transformPagePoint=n;const o=Ou(t),i=ed(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=He;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=r;l&&l(t,td(i,this.history)),this.removeListeners=_n(Wr(window,"pointermove",this.handlePointerMove),Wr(window,"pointerup",this.handlePointerUp),Wr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qr(this.updatePoint)}}function ed(e,t){return t?{point:t(e.point)}:e}function f0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function td({point:e},t){return{point:e,delta:f0(e,Px(t)),offset:f0(e,nj(t)),velocity:oj(t,.1)}}function nj(e){return e[0]}function Px(e){return e[e.length-1]}function oj(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Px(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Tn(t)));)r--;if(!n)return{x:0,y:0};const i=Ur(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Rt(e){return e.max-e.min}function bf(e,t=0,r=.01){return Math.abs(e-t)<=r}function h0(e,t,r,n=.5){e.origin=n,e.originPoint=Te(t.min,t.max,e.origin),e.scale=Rt(r)/Rt(t),(bf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Te(r.min,r.max,e.origin)-e.originPoint,(bf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function la(e,t,r,n){h0(e.x,t.x,r.x,n?n.originX:void 0),h0(e.y,t.y,r.y,n?n.originY:void 0)}function p0(e,t,r){e.min=r.min+t.min,e.max=e.min+Rt(t)}function ij(e,t,r){p0(e.x,t.x,r.x),p0(e.y,t.y,r.y)}function m0(e,t,r){e.min=t.min-r.min,e.max=e.min+Rt(t)}function ua(e,t,r){m0(e.x,t.x,r.x),m0(e.y,t.y,r.y)}function aj(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Te(r,e,n.max):Math.min(e,r)),e}function g0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function sj(e,{top:t,left:r,bottom:n,right:o}){return{x:g0(e.x,r,o),y:g0(e.y,t,n)}}function v0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Ia(t.min,t.max-n,e.min):n>o&&(r=Ia(e.min,e.max-o,t.min)),$n(0,1,r)}function cj(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const xf=.35;function dj(e=xf){return e===!1?e=0:e===!0&&(e=xf),{x:y0(e,"left","right"),y:y0(e,"top","bottom")}}function y0(e,t,r){return{min:b0(e,t),max:b0(e,r)}}function b0(e,t){return typeof e=="number"?e:e[t]||0}const x0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oo=()=>({x:x0(),y:x0()}),S0=()=>({min:0,max:0}),Fe=()=>({x:S0(),y:S0()});function hr(e){return[e("x"),e("y")]}function Ex({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function fj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hj(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function rd(e){return e===void 0||e===1}function Sf({scale:e,scaleX:t,scaleY:r}){return!rd(e)||!rd(t)||!rd(r)}function Nn(e){return Sf(e)||$x(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $x(e){return k0(e.x)||k0(e.y)}function k0(e){return e&&e!=="0%"}function Ql(e,t,r){const n=e-r,o=t*n;return r+o}function w0(e,t,r,n,o){return o!==void 0&&(e=Ql(e,o,n)),Ql(e,r,n)+t}function kf(e,t=0,r=1,n,o){e.min=w0(e.min,t,r,n,o),e.max=w0(e.max,t,r,n,o)}function Ax(e,{x:t,y:r}){kf(e.x,t.translate,t.scale,t.originPoint),kf(e.y,r.translate,r.scale,r.originPoint)}function pj(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function un(e,t){e.min=e.min+t,e.max=e.max+t}function _0(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=Te(e.min,e.max,i);kf(e,t[r],t[n],a,t.scale)}const mj=["x","scaleX","originX"],gj=["y","scaleY","originY"];function No(e,t){_0(e.x,t,mj),_0(e.y,t,gj)}function zx(e,t){return Ex(hj(e.getBoundingClientRect(),t))}function vj(e,t,r){const n=zx(e,r),{scroll:o}=t;return o&&(un(n.x,o.offset.x),un(n.y,o.offset.y)),n}const yj=new WeakMap;class bj{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=Fe(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Ou(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ub(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),hr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(Cr.test(x)){const{projection:_}=this.visualElement;if(_&&_.layout){const g=_.layout.layoutBox[v];g&&(x=Rt(g)*(parseFloat(x)/100))}}this.originPoint[v]=x}),f&&he.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(d&&this.currentDirection===null){this.currentDirection=xj(v),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),p&&p(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new Tx(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&he.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Is(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=aj(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Bo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=sj(n.layoutBox,t):this.constraints=!1,this.elastic=dj(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&hr(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=cj(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Bo(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=vj(n,o.root,this.visualElement.getTransformPagePoint());let a=lj(o.layout.layoutBox,i);if(r){const s=r(fj(a));this.hasMutatedConstraints=!!s,s&&(a=Ex(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=hr(c=>{if(!Is(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,v={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(sp(t,n,0,r))}stopAnimation(){hr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){hr(r=>{const{drag:n}=this.getProps();if(!Is(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-Te(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Bo(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};hr(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=uj({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),hr(a=>{if(!Is(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(Te(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;yj.set(this.visualElement,this);const t=this.visualElement.current,r=Wr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Bo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Br(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(hr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=xf,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Is(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function xj(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Sj extends Mn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new bj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const T0=e=>(t,r)=>{e&&he.update(()=>e(t,r))};class kj extends Mn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Tx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:T0(t),onStart:T0(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&he.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Wr(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 wj(){const e=S.useContext(Ga);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function Cj(){return _j(S.useContext(Ga))}function _j(e){return e===null?!0:e.isPresent}const cl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function P0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ji={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(N.test(e))e=parseFloat(e);else return e;const r=P0(e,t.target.x),n=P0(e,t.target.y);return`${r}% ${n}%`}},Tj={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=An.parse(e);if(o.length>5)return n;const i=An.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Te(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class Pj extends ei.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;RA(Ej),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),cl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||he.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rx(e){const[t,r]=wj(),n=S.useContext(Kh);return ei.createElement(Pj,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(Pb),isPresent:t,safeToRemove:r})}const Ej={borderRadius:{...ji,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ji,borderTopRightRadius:ji,borderBottomLeftRadius:ji,borderBottomRightRadius:ji,boxShadow:Tj},jx=["TopLeft","TopRight","BottomLeft","BottomRight"],$j=jx.length,E0=e=>typeof e=="string"?parseFloat(e):e,$0=e=>typeof e=="number"||N.test(e);function Aj(e,t,r,n,o,i){o?(e.opacity=Te(0,r.opacity!==void 0?r.opacity:1,zj(n)),e.opacityExit=Te(t.opacity!==void 0?t.opacity:1,0,Rj(n))):i&&(e.opacity=Te(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<$j;a++){const s=`border${jx[a]}Radius`;let l=A0(t,s),u=A0(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||$0(l)===$0(u)?(e[s]=Math.max(Te(E0(l),E0(u),n),0),(Cr.test(u)||Cr.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=Te(t.rotate||0,r.rotate||0,n))}function A0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zj=Mx(0,.5,np),Rj=Mx(.5,.95,ze);function Mx(e,t,r){return n=>nt?1:r(Ia(e,t,n))}function z0(e,t){e.min=t.min,e.max=t.max}function Vt(e,t){z0(e.x,t.x),z0(e.y,t.y)}function R0(e,t,r,n,o){return e-=t,e=Ql(e,1/r,n),o!==void 0&&(e=Ql(e,1/o,n)),e}function jj(e,t=0,r=1,n=.5,o,i=e,a=e){if(Cr.test(t)&&(t=parseFloat(t),t=Te(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Te(i.min,i.max,n);e===i&&(s-=t),e.min=R0(e.min,t,r,s,o),e.max=R0(e.max,t,r,s,o)}function j0(e,t,[r,n,o],i,a){jj(e,t[r],t[n],t[o],t.scale,i,a)}const Mj=["x","scaleX","originX"],Dj=["y","scaleY","originY"];function M0(e,t,r,n){j0(e.x,t,Mj,r?r.x:void 0,n?n.x:void 0),j0(e.y,t,Dj,r?r.y:void 0,n?n.y:void 0)}function D0(e){return e.translate===0&&e.scale===1}function Dx(e){return D0(e.x)&&D0(e.y)}function Fj(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 Fx(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 F0(e){return Rt(e.x)/Rt(e.y)}class Ij{constructor(){this.members=[]}add(t){lp(this.members,t),t.scheduleRender()}remove(t){if(up(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function I0(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const Lj=(e,t)=>e.depth-t.depth;class Bj{constructor(){this.children=[],this.isDirty=!1}add(t){lp(this.children,t),this.isDirty=!0}remove(t){up(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lj),this.isDirty=!1,this.children.forEach(t)}}function Vj(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(qr(n),e(i-t))};return he.read(n,!0),()=>qr(n)}function Oj(e){window.MotionDebug&&window.MotionDebug.record(e)}function Nj(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Wj(e,t,r){const n=St(e)?e:di(e);return n.start(sp("",n,t,r)),n.animation}const L0=["","X","Y","Z"],B0=1e3;let Uj=0;const Wn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ix({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Uj++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Wn.totalNodes=Wn.resolvedTargetDeltas=Wn.recalculatedProjection=0,this.nodes.forEach(Kj),this.nodes.forEach(Zj),this.nodes.forEach(Jj),this.nodes.forEach(Yj),Oj(Wn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Vj(f,250),cl.hasAnimatedSinceResize&&(cl.hasAnimatedSinceResize=!1,this.nodes.forEach(O0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||oM,{onLayoutAnimationStart:_,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!Fx(this.targetLayout,v)||p,m=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const C={...Sx(x,"layout"),onPlay:_,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||O0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qr(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(eM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(Xj),this.sharedNodes.forEach(tM)}scheduleUpdateProjection(){he.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){he.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=C/1e3;N0(d.x,a.x,E),N0(d.y,a.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ua(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rM(this.relativeTarget,this.relativeTargetOrigin,f,E),m&&Fj(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=Fe()),Vt(m,this.relativeTarget)),x&&(this.animationValues=c,Aj(c,u,this.latestValues,E,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{cl.hasAnimatedSinceResize=!0,this.currentAnimation=Wj(0,B0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(B0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Lx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Fe();const d=Rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Vt(s,l),No(s,c),la(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Ij),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(V0),this.root.sharedNodes.clear()}}}function Hj(e){e.updateLayout()}function Gj(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?hr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=Rt(f);f.min=n[d].min,f.max=f.min+p}):Lx(i,r.layoutBox,n)&&hr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=Rt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=Oo();la(s,n,r.layoutBox);const l=Oo();a?la(l,e.applyTransform(o,!0),r.measuredBox):la(l,n,r.layoutBox);const u=!Dx(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const v=Fe();ua(v,r.layoutBox,f.layoutBox);const x=Fe();ua(x,n,p.layoutBox),Fx(v,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Kj(e){Wn.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 Yj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xj(e){e.clearSnapshot()}function V0(e){e.clearMeasurements()}function qj(e){e.isLayoutDirty=!1}function Qj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Zj(e){e.resolveTargetDelta()}function Jj(e){e.calcProjection()}function eM(e){e.resetRotation()}function tM(e){e.removeLeadSnapshot()}function N0(e,t,r){e.translate=Te(t.translate,0,r),e.scale=Te(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function W0(e,t,r,n){e.min=Te(t.min,r.min,n),e.max=Te(t.max,r.max,n)}function rM(e,t,r,n){W0(e.x,t.x,r.x,n),W0(e.y,t.y,r.y,n)}function nM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oM={duration:.45,ease:[.4,0,.1,1]},U0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),H0=U0("applewebkit/")&&!U0("chrome/")?Math.round:ze;function G0(e){e.min=H0(e.min),e.max=H0(e.max)}function iM(e){G0(e.x),G0(e.y)}function Lx(e,t,r){return e==="position"||e==="preserve-aspect"&&!bf(F0(t),F0(r),.2)}const aM=Ix({attachResizeListener:(e,t)=>Br(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nd={current:void 0},Bx=Ix({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nd.current){const e=new aM({});e.mount(window),e.setOptions({layoutScroll:!0}),nd.current=e}return nd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sM={pan:{Feature:kj},drag:{Feature:Sj,ProjectionNode:Bx,MeasureLayout:Rx}},lM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uM(e){const t=lM.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function wf(e,t,r=1){const[n,o]=uM(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return kx(a)?parseFloat(a):a}else return ff(o)?wf(o,t,r+1):o}function cM(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!ff(i))return;const a=wf(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!ff(i))continue;const a=wf(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const dM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Vx=e=>dM.has(e),fM=e=>Object.keys(e).some(Vx),K0=e=>e===fo||e===N,Y0=(e,t)=>parseFloat(e.split(", ")[t]),X0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Y0(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?Y0(i[1],e):0}},hM=new Set(["x","y","z"]),pM=Ka.filter(e=>!hM.has(e));function mM(e){const t=[];return pM.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const fi={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:X0(4,13),y:X0(5,14)};fi.translateX=fi.x;fi.translateY=fi.y;const gM=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=fi[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=fi[u](l,i)}),e},vM=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Vx);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=Ri(c);const f=t[l];let p;if(Gl(f)){const v=f.length,x=f[0]===null?1:0;c=f[x],d=Ri(c);for(let _=x;_=0?window.pageYOffset:null,u=gM(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Iu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function yM(e,t,r,n){return fM(t)?vM(e,t,r,n):{target:t,transitionEnd:n}}const bM=(e,t,r,n)=>{const o=cM(e,t,n);return t=o.target,n=o.transitionEnd,yM(e,t,r,n)},Cf={current:null},Ox={current:!1};function xM(){if(Ox.current=!0,!!Iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cf.current=e.matches;e.addListener(t),t()}else Cf.current=!1}function SM(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(St(i))e.addValue(o,i),ql(n)&&n.add(o);else if(St(a))e.addValue(o,di(i,{owner:e})),ql(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,di(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const q0=new WeakMap,Nx=Object.keys(Fa),kM=Nx.length,Q0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],wM=Gh.length;class CM{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){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=()=>he.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Bu(r),this.isVariantNode=Tb(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&St(f)&&(f.set(s[d],!1),ql(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,q0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Ox.current||xM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){q0.delete(this.current),this.projection&&this.projection.unmount(),qr(this.notifyUpdate),qr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=co.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&he.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=di(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=tp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!St(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new cp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Wx extends CM{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=OR(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){BR(this,n,a);const s=bM(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function _M(e){return window.getComputedStyle(e)}class TM extends Wx{readValueFromInstance(t,r){if(co.has(r)){const n=ap(r);return n&&n.default||0}else{const n=_M(t),o=(Ab(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return zx(t,r)}build(t,r,n,o){Xh(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return ep(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Fb(t,r,n,o)}}class PM extends Wx{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(co.has(r)){const n=ap(r);return n&&n.default||0}return r=Ib.has(r)?r:Jh(r),t.getAttribute(r)}measureInstanceViewportBox(){return Fe()}scrapeMotionValuesFromProps(t,r){return Bb(t,r)}build(t,r,n,o){Qh(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Lb(t,r,n,o)}mount(t){this.isSVGTag=Zh(t.tagName),super.mount(t)}}const EM=(e,t)=>Yh(e)?new PM(t,{enableHardwareAcceleration:!1}):new TM(t,{enableHardwareAcceleration:!0}),$M={layout:{ProjectionNode:Bx,MeasureLayout:Rx}},AM={...tj,...Sz,...sM,...$M},zM=AA((e,t)=>lz(e,t,AM,EM));function Ux(){const e=S.useRef(!1);return Uh(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function RM(){const e=Ux(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>he.postRender(n),[n]),t]}class jM extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function MM({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${a}px !important; + top: ${s}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),S.createElement(jM,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const od=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Vb(DM),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),S.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=S.createElement(MM,{isPresent:r},e)),S.createElement(Ga.Provider,{value:u},e)};function DM(){return new Map}function FM(e){return S.useEffect(()=>()=>e(),[])}const xo=e=>e.key||"";function IM(e,t){e.forEach(r=>{const n=xo(r);t.set(n,r)})}function LM(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const BM=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=S.useContext(Kh).forceRender||RM()[0],l=Ux(),u=LM(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,v=S.useRef(!0);if(Uh(()=>{v.current=!1,IM(u,p),f.current=c}),FM(()=>{v.current=!0,p.clear(),d.clear()}),v.current)return S.createElement(S.Fragment,null,c.map(h=>S.createElement(od,{key:xo(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},h)));c=[...c];const x=f.current.map(xo),_=u.map(xo),g=x.length;for(let h=0;h{if(_.indexOf(m)!==-1)return;const C=p.get(m);if(!C)return;const E=x.indexOf(m);let A=h;if(!A){const P=()=>{p.delete(m),d.delete(m);const $=f.current.findIndex(M=>M.key===m);if(f.current.splice($,1),!d.size){if(f.current=u,l.current===!1)return;s(),n&&n()}};A=S.createElement(od,{key:xo(C),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:i,mode:a},C),d.set(m,A)}c.splice(E,0,A)}),c=c.map(h=>{const m=h.key;return d.has(m)?h:S.createElement(od,{key:xo(h),isPresent:!0,presenceAffectsLayout:i,mode:a},h)}),S.createElement(S.Fragment,null,d.size?c:c.map(h=>S.cloneElement(h)))};var VM={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Hx=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=VM,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(s),p=Cj();df(()=>{p||n==null||n()},[p]),df(()=>{f(s)},[s]);const v=()=>f(null),x=()=>f(s),_=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),SA(_,d);const g=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=S.useMemo(()=>bA(a),[a]);return b.jsx(zM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:x,custom:{position:a},style:h,children:b.jsx(U.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:br(r,{id:t,onClose:_})})})});Hx.displayName="ToastComponent";function OM(e,t){var r;const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=i==null?void 0:i[t])!=null?r:n}var Z0={path:b.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[b.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),b.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),b.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Qa=xe((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Be("chakra-icon",s),d=Jr("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},v=n??Z0.viewBox;if(r&&typeof r!="string")return b.jsx(U.svg,{as:r,...p,...u});const x=a??Z0.path;return b.jsx(U.svg,{verticalAlign:"middle",viewBox:v,...p,...u,children:x})});Qa.displayName="Icon";function NM(e){return b.jsx(Qa,{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function WM(e){return b.jsx(Qa,{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function J0(e){return b.jsx(Qa,{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var UM=$u({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),dp=xe((e,t)=>{const r=Jr("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Xt(e),u=Be("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${UM} ${i} linear infinite`,...r};return b.jsx(U.div,{ref:t,__css:c,className:u,...l,children:n&&b.jsx(U.span,{srOnly:!0,children:n})})});dp.displayName="Spinner";var[HM,fp]=Zr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[GM,hp]=Zr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Gx={info:{icon:WM,colorScheme:"blue"},warning:{icon:J0,colorScheme:"orange"},success:{icon:NM,colorScheme:"green"},error:{icon:J0,colorScheme:"red"},loading:{icon:dp,colorScheme:"blue"}};function KM(e){return Gx[e].colorScheme}function YM(e){return Gx[e].icon}var Kx=xe(function(t,r){const n=hp(),{status:o}=fp(),i={display:"inline",...n.description};return b.jsx(U.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__desc",t.className),__css:i})});Kx.displayName="AlertDescription";function Yx(e){const{status:t}=fp(),r=YM(t),n=hp(),o=t==="loading"?n.spinner:n.icon;return b.jsx(U.span,{display:"inherit","data-status":t,...e,className:Be("chakra-alert__icon",e.className),__css:o,children:e.children||b.jsx(r,{h:"100%",w:"100%"})})}Yx.displayName="AlertIcon";var Xx=xe(function(t,r){const n=hp(),{status:o}=fp();return b.jsx(U.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__title",t.className),__css:n.title})});Xx.displayName="AlertTitle";var qx=xe(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=Xt(t),s=(n=t.colorScheme)!=null?n:KM(o),l=Du("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return b.jsx(HM,{value:{status:o},children:b.jsx(GM,{value:l,children:b.jsx(U.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Be("chakra-alert",t.className),__css:u})})})});qx.displayName="Alert";function XM(e){return b.jsx(Qa,{focusable:"false","aria-hidden":!0,...e,children:b.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Qx=xe(function(t,r){const n=Jr("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Xt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return b.jsx(U.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||b.jsx(XM,{width:"1em",height:"1em"})})});Qx.displayName="CloseButton";var qM={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},yr=QM(qM);function QM(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=ZM(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const p=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:p}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=Kg(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:Zx(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=wb(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!Kg(yr.getState(),o).position}}var ev=0;function ZM(e,t={}){var r,n;ev+=1;const o=(r=t.id)!=null?r:ev,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>yr.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var JM=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return b.jsxs(qx,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[b.jsx(Yx,{children:u}),b.jsxs(U.div,{flex:"1",maxWidth:"100%",children:[o&&b.jsx(Xx,{id:c==null?void 0:c.title,children:o}),s&&b.jsx(Kx,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&b.jsx(Qx,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Zx(e={}){const{render:t,toastComponent:r=JM}=e;return o=>typeof t=="function"?t({...o,...e}):b.jsx(r,{...o,...e})}function e6(e,t){const r=o=>{var i;return{...t,...o,position:OM((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},n=o=>{const i=r(o),a=Zx(i);return yr.notify(a,i)};return n.update=(o,i)=>{yr.update(o,r(i))},n.promise=(o,i)=>{const a=n({...i.loading,status:"loading",duration:null});o.then(s=>n.update(a,{status:"success",duration:5e3,...br(i.success,s)})).catch(s=>n.update(a,{status:"error",duration:5e3,...br(i.error,s)}))},n.closeAll=yr.closeAll,n.close=yr.close,n.isActive=yr.isActive,n}var[t6,r6]=Zr({name:"ToastOptionsContext",strict:!1}),n6=e=>{const t=S.useSyncExternalStore(yr.subscribe,yr.getState,yr.getState),{motionVariants:r,component:n=Hx,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return b.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:xA(s),children:b.jsx(BM,{initial:!1,children:l.map(u=>b.jsx(n,{motionVariants:r,...u},u.id))})},s)});return b.jsx(Au,{...o,children:a})};function o6(e){const{theme:t}=G1(),r=r6();return S.useMemo(()=>e6(t.direction,{...r,...e}),[e,t.direction,r])}var i6=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return b.jsxs(vA,{theme:n,...i,children:[b.jsx(t6,{value:o==null?void 0:o.defaultOptions,children:r}),b.jsx(n6,{...o})]})},a6=i6(hb);function s6(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 La(...e){return t=>{e.forEach(r=>{s6(r,t)})}}function l6(...e){return S.useMemo(()=>La(...e),e)}function u6(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(f,p)=>f!==p}=e,i=Cn(n),a=Cn(o),[s,l]=S.useState(r),u=t!==void 0,c=u?t:s,d=Cn(f=>{const v=typeof f=="function"?f(c):f;a(c,v)&&(u||l(v),i(v))},[u,i,c,a]);return[c,d]}var _f=xe(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...a}=t;return b.jsx("img",{width:n,height:o,ref:r,alt:i,...a})});_f.displayName="NativeImage";function c6(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[u,c]=S.useState("pending");S.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=S.useRef(),f=S.useCallback(()=>{if(!r)return;p();const v=new Image;v.src=r,a&&(v.crossOrigin=a),n&&(v.srcset=n),s&&(v.sizes=s),t&&(v.loading=t),v.onload=x=>{p(),c("loaded"),o==null||o(x)},v.onerror=x=>{p(),c("failed"),i==null||i(x)},d.current=v},[r,a,n,s,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return wn(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var d6=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function f6(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var dr=xe(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...v}=t,x=n!==void 0||o!==void 0,_=u!=null||c||!x,g=c6({...t,crossOrigin:d,ignoreFallback:_}),h=d6(g,f),m={ref:r,objectFit:l,objectPosition:s,..._?v:f6(v,["onError","onLoad"])};return h?o||b.jsx(U.img,{as:_f,className:"chakra-image__placeholder",src:n,...m}):b.jsx(U.img,{as:_f,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...m})});dr.displayName="Image";function h6(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[SD,p6]=Zr({strict:!1,name:"ButtonGroupContext"});function m6(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Tf(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Be("chakra-button__icon",r);return b.jsx(U.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Tf.displayName="ButtonIcon";function Pf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=b.jsx(dp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Be("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return b.jsx(U.div,{className:l,...s,__css:c,children:o})}Pf.displayName="ButtonSpinner";var dl=xe((e,t)=>{const r=p6(),n=Jr("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:v="start",className:x,as:_,...g}=Xt(e),h=S.useMemo(()=>{const A={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:A}}},[n,r]),{ref:m,type:C}=m6(_),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return b.jsxs(U.button,{ref:l6(t,m),as:_,type:f??C,"data-active":ne(a),"data-loading":ne(i),__css:h,className:Be("chakra-button",x),...g,disabled:o||i,children:[i&&v==="start"&&b.jsx(Pf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||b.jsx(U.span,{opacity:0,children:b.jsx(tv,{...E})}):b.jsx(tv,{...E}),i&&v==="end"&&b.jsx(Pf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});dl.displayName="Button";function tv(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return b.jsxs(b.Fragment,{children:[t&&b.jsx(Tf,{marginEnd:o,children:t}),n,r&&b.jsx(Tf,{marginStart:o,children:r})]})}var[g6,v6]=mA("Card"),Er=xe(function(t,r){const{className:n,...o}=t,i=v6();return b.jsx(U.div,{ref:r,className:Be("chakra-card__body",n),__css:i.body,...o})}),$r=xe(function(t,r){const{className:n,children:o,direction:i="column",justify:a,align:s,...l}=Xt(t),u=Du("Card",t);return b.jsx(U.div,{ref:r,className:Be("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:b.jsx(g6,{value:u,children:o})})}),[y6,b6]=Zr({name:"CheckboxGroupContext",strict:!1});function rv(e){return e&&bt(e)&&bt(e.target)}function x6(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:o,isNative:i}=e,a=Cn(n),[s,l]=u6({value:r,defaultValue:t||[],onChange:a}),u=S.useCallback(d=>{if(!s)return;const f=rv(d)?d.target.checked:!s.includes(d),p=rv(d)?d.target.value:d,v=f?[...s,p]:s.filter(x=>String(x)!==String(p));l(v)},[l,s]),c=S.useCallback((d={})=>({...d,[i?"checked":"isChecked"]:s.some(p=>String(d.value)===String(p)),onChange:u}),[u,i,s]);return{value:s,isDisabled:o,onChange:u,setValue:l,getCheckboxProps:c}}function Ar(e){const{colorScheme:t,size:r,variant:n,children:o,isDisabled:i}=e,{value:a,onChange:s}=x6(e),l=S.useMemo(()=>({size:r,onChange:s,colorScheme:t,value:a,variant:n,isDisabled:i}),[r,s,t,a,n,i]);return b.jsx(y6,{value:l,children:o})}Ar.displayName="CheckboxGroup";function S6(e){const[t,r]=S.useState(e),[n,o]=S.useState(!1);return e!==t&&(o(!0),r(e)),n}function k6(e){return b.jsx(U.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:b.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function w6(e){return b.jsx(U.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function C6(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?w6:k6;return r||t?b.jsx(U.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:b.jsx(o,{...n})}):null}var[_6,T6]=Zr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[P6,Jx]=Zr({strict:!1,name:"FormControlContext"});function E6(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=S.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=S.useState(!1),[v,x]=S.useState(!1),[_,g]=S.useState(!1),h=S.useCallback((P={},$=null)=>({id:d,...P,ref:La($,M=>{M&&x(!0)})}),[d]),m=S.useCallback((P={},$=null)=>({...P,ref:$,"data-focus":ne(_),"data-disabled":ne(o),"data-invalid":ne(n),"data-readonly":ne(i),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,_,n,i,u]),C=S.useCallback((P={},$=null)=>({id:c,...P,ref:La($,M=>{M&&p(!0)}),"aria-live":"polite"}),[c]),E=S.useCallback((P={},$=null)=>({...P,...a,ref:$,role:"group"}),[a]),A=S.useCallback((P={},$=null)=>({...P,ref:$,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!_,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:v,setHasHelpText:x,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:h,getErrorMessageProps:C,getRootProps:E,getLabelProps:m,getRequiredIndicatorProps:A}}var $6=xe(function(t,r){const n=Du("Form",t),o=Xt(t),{getRootProps:i,htmlProps:a,...s}=E6(o),l=Be("chakra-form-control",t.className);return b.jsx(P6,{value:s,children:b.jsx(_6,{value:n,children:b.jsx(U.div,{...i({},r),className:l,__css:n.container})})})});$6.displayName="FormControl";var A6=xe(function(t,r){const n=Jx(),o=T6(),i=Be("chakra-form__helper-text",t.className);return b.jsx(U.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});A6.displayName="FormHelperText";function z6(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=eS(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Pc(r),"aria-required":Pc(o),"aria-readonly":Pc(n)}}function eS(e){var t,r,n;const o=Jx(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:v,...x}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&_.push(o.feedbackId),o!=null&&o.hasHelpText&&_.push(o.helpTextId),{...x,"aria-describedby":_.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Ct(o==null?void 0:o.onFocus,p),onBlur:Ct(o==null?void 0:o.onBlur,v)}}var R6={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},j6=()=>typeof document<"u",nv=!1,Za=null,so=!1,Ef=!1,$f=new Set;function pp(e,t){$f.forEach(r=>r(e,t))}var M6=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function D6(e){return!(e.metaKey||!M6&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ov(e){so=!0,D6(e)&&(Za="keyboard",pp("keyboard",e))}function bo(e){if(Za="pointer",e.type==="mousedown"||e.type==="pointerdown"){so=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;pp("pointer",e)}}function F6(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function I6(e){F6(e)&&(so=!0,Za="virtual")}function L6(e){e.target===window||e.target===document||(!so&&!Ef&&(Za="virtual",pp("virtual",e)),so=!1,Ef=!1)}function B6(){so=!1,Ef=!0}function iv(){return Za!=="pointer"}function V6(){if(!j6()||nv)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){so=!0,e.apply(this,r)},document.addEventListener("keydown",ov,!0),document.addEventListener("keyup",ov,!0),document.addEventListener("click",I6,!0),window.addEventListener("focus",L6,!0),window.addEventListener("blur",B6,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",bo,!0),document.addEventListener("pointermove",bo,!0),document.addEventListener("pointerup",bo,!0)):(document.addEventListener("mousedown",bo,!0),document.addEventListener("mousemove",bo,!0),document.addEventListener("mouseup",bo,!0)),nv=!0}function O6(e){V6(),e(iv());const t=()=>e(iv());return $f.add(t),()=>{$f.delete(t)}}function N6(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function W6(e={}){const t=eS(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:v,name:x,value:_,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":m,"aria-invalid":C,...E}=e,A=N6(E,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=Cn(p),$=Cn(s),M=Cn(l),[F,ie]=S.useState(!1),[me,Re]=S.useState(!1),[ae,de]=S.useState(!1),[De,Ve]=S.useState(!1);S.useEffect(()=>O6(ie),[]);const R=S.useRef(null),[V,W]=S.useState(!0),[O,Z]=S.useState(!!c),H=d!==void 0,ue=H?d:O,qt=S.useCallback(G=>{if(n||r){G.preventDefault();return}H||Z(ue?G.target.checked:v?!0:G.target.checked),P==null||P(G)},[n,r,ue,H,v,P]);wn(()=>{R.current&&(R.current.indeterminate=!!v)},[v]),df(()=>{r&&Re(!1)},[r,Re]),wn(()=>{const G=R.current;if(!(G!=null&&G.form))return;const ft=()=>{Z(!!c)};return G.form.addEventListener("reset",ft),()=>{var It;return(It=G.form)==null?void 0:It.removeEventListener("reset",ft)}},[]);const $e=r&&!f,kt=S.useCallback(G=>{G.key===" "&&Ve(!0)},[Ve]),sr=S.useCallback(G=>{G.key===" "&&Ve(!1)},[Ve]);wn(()=>{if(!R.current)return;R.current.checked!==ue&&Z(R.current.checked)},[R.current]);const en=S.useCallback((G={},ft=null)=>{const It=po=>{me&&po.preventDefault(),Ve(!0)};return{...G,ref:ft,"data-active":ne(De),"data-hover":ne(ae),"data-checked":ne(ue),"data-focus":ne(me),"data-focus-visible":ne(me&&F),"data-indeterminate":ne(v),"data-disabled":ne(r),"data-invalid":ne(i),"data-readonly":ne(n),"aria-hidden":!0,onMouseDown:Ct(G.onMouseDown,It),onMouseUp:Ct(G.onMouseUp,()=>Ve(!1)),onMouseEnter:Ct(G.onMouseEnter,()=>de(!0)),onMouseLeave:Ct(G.onMouseLeave,()=>de(!1))}},[De,ue,r,me,F,ae,v,i,n]),lr=S.useCallback((G={},ft=null)=>({...G,ref:ft,"data-active":ne(De),"data-hover":ne(ae),"data-checked":ne(ue),"data-focus":ne(me),"data-focus-visible":ne(me&&F),"data-indeterminate":ne(v),"data-disabled":ne(r),"data-invalid":ne(i),"data-readonly":ne(n)}),[De,ue,r,me,F,ae,v,i,n]),Ft=S.useCallback((G={},ft=null)=>({...A,...G,ref:La(ft,It=>{It&&W(It.tagName==="LABEL")}),onClick:Ct(G.onClick,()=>{var It;V||((It=R.current)==null||It.click(),requestAnimationFrame(()=>{var po;(po=R.current)==null||po.focus({preventScroll:!0})}))}),"data-disabled":ne(r),"data-checked":ne(ue),"data-invalid":ne(i)}),[A,r,ue,i,V]),Dn=S.useCallback((G={},ft=null)=>({...G,ref:La(R,ft),type:"checkbox",name:x,value:_,id:a,tabIndex:g,onChange:Ct(G.onChange,qt),onBlur:Ct(G.onBlur,$,()=>Re(!1)),onFocus:Ct(G.onFocus,M,()=>Re(!0)),onKeyDown:Ct(G.onKeyDown,kt),onKeyUp:Ct(G.onKeyUp,sr),required:o,checked:ue,disabled:$e,readOnly:n,"aria-label":h,"aria-labelledby":m,"aria-invalid":C?!!C:i,"aria-describedby":u,"aria-disabled":r,style:R6}),[x,_,a,qt,$,M,kt,sr,o,ue,$e,n,h,m,C,i,u,r,g]),ho=S.useCallback((G={},ft=null)=>({...G,ref:ft,onMouseDown:Ct(G.onMouseDown,U6),"data-disabled":ne(r),"data-checked":ne(ue),"data-invalid":ne(i)}),[ue,r,i]);return{state:{isInvalid:i,isFocused:me,isChecked:ue,isActive:De,isHovered:ae,isIndeterminate:v,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ft,getCheckboxProps:en,getIndicatorProps:lr,getInputProps:Dn,getLabelProps:ho,htmlProps:A}}function U6(e){e.preventDefault(),e.stopPropagation()}var H6={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},G6={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},K6=$u({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Y6=$u({from:{opacity:0},to:{opacity:1}}),X6=$u({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ve=xe(function(t,r){const n=b6(),o={...n,...t},i=Du("Checkbox",o),a=Xt(t),{spacing:s="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:f=b.jsx(C6,{}),isChecked:p,isDisabled:v=n==null?void 0:n.isDisabled,onChange:x,inputProps:_,...g}=a;let h=p;n!=null&&n.value&&a.value&&(h=n.value.includes(a.value));let m=x;n!=null&&n.onChange&&a.value&&(m=e_(n.onChange,x));const{state:C,getInputProps:E,getCheckboxProps:A,getLabelProps:P,getRootProps:$}=W6({...g,isDisabled:v,isChecked:h,onChange:m}),M=S6(C.isChecked),F=S.useMemo(()=>({animation:M?C.isIndeterminate?`${Y6} 20ms linear, ${X6} 200ms linear`:`${K6} 200ms linear`:void 0,fontSize:d,color:c,...i.icon}),[c,d,M,C.isIndeterminate,i.icon]),ie=S.cloneElement(f,{__css:F,isIndeterminate:C.isIndeterminate,isChecked:C.isChecked});return b.jsxs(U.label,{__css:{...G6,...i.container},className:Be("chakra-checkbox",l),...$(),children:[b.jsx("input",{className:"chakra-checkbox__input",...E(_,r)}),b.jsx(U.span,{__css:{...H6,...i.control},className:"chakra-checkbox__control",...A(),children:ie}),u&&b.jsx(U.span,{className:"chakra-checkbox__label",...P(),__css:{marginStart:s,...i.label},children:u})]})});ve.displayName="Checkbox";var q6=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=av[t.format]||av.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),n=J6("message"in t?t.message:Z6),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var tD=eD;const rD=Zl(tD);function nD(e,t={}){const[r,n]=S.useState(!1),[o,i]=S.useState(e);S.useEffect(()=>i(e),[e]);const{timeout:a=1500,...s}=typeof t=="number"?{timeout:t}:t,l=S.useCallback(()=>{const u=rD(o,s);n(u)},[o,s]);return S.useEffect(()=>{let u=null;return r&&(u=window.setTimeout(()=>{n(!1)},a)),()=>{u&&window.clearTimeout(u)}},[a,r]),{value:o,setValue:i,onCopy:l,hasCopied:r}}var tS=xe(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...v}=t,x={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:f,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return b.jsx(U.div,{ref:r,__css:x,...v})});tS.displayName="Grid";function mp(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):bt(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var rS=xe(function(t,r){const{columns:n,spacingX:o,spacingY:i,spacing:a,minChildWidth:s,...l}=t,u=U1(),c=s?iD(s,u):aD(n);return b.jsx(tS,{ref:r,gap:a,columnGap:o,rowGap:i,templateColumns:c,...l})});rS.displayName="SimpleGrid";function oD(e){return typeof e=="number"?`${e}px`:e}function iD(e,t){return mp(e,r=>{const n=Z2("sizes",r,oD(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function aD(e){return mp(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Oe=U("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Oe.displayName="Spacer";var Af=xe(function(t,r){const n=Jr("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Xt(t),u=rA({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return b.jsx(U.p,{ref:r,className:Be("chakra-text",t.className),...u,...l,__css:n})});Af.displayName="Text";var nS=e=>b.jsx(U.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});nS.displayName="StackItem";function sD(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mp(r,o=>n[o])}}var zr=xe((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=r?"row":n??"column",v=S.useMemo(()=>sD({spacing:a,direction:p}),[a,p]),x=!!u,_=!d&&!x,g=S.useMemo(()=>{const m=h6(l);return _?m:m.map((C,E)=>{const A=typeof C.key<"u"?C.key:E,P=E+1===m.length,M=d?b.jsx(nS,{children:C},A):C;if(!x)return M;const F=S.cloneElement(u,{__css:v}),ie=P?null:F;return b.jsxs(S.Fragment,{children:[M,ie]},A)})},[u,v,x,_,d,l]),h=Be("chakra-stack",c);return b.jsx(U.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:s,gap:x?void 0:a,className:h,...f,children:g})});zr.displayName="Stack";var Jt=xe(function(t,r){const n=Jr("Heading",t),{className:o,...i}=Xt(t);return b.jsx(U.h2,{ref:r,className:Be("chakra-heading",t.className),...i,__css:n})});Jt.displayName="Heading";var Vr=U("div");Vr.displayName="Box";var oS=xe(function(t,r){const{size:n,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return b.jsx(Vr,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...i})});oS.displayName="Square";var lD=xe(function(t,r){const{size:n,...o}=t;return b.jsx(oS,{size:n,ref:r,borderRadius:"9999px",...o})});lD.displayName="Circle";var iS=xe(function(t,r){const{className:n,centerContent:o,...i}=Xt(t),a=Jr("Container",t);return b.jsx(U.div,{ref:r,className:Be("chakra-container",n),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});iS.displayName="Container";var aS=xe(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...c}=Jr("Divider",t),{className:d,orientation:f="horizontal",__css:p,...v}=Xt(t),x={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return b.jsx(U.hr,{ref:r,"aria-orientation":f,...v,__css:{...c,border:"0",borderColor:u,borderStyle:l,...x[f],...p},className:Be("chakra-divider",d)})});aS.displayName="Divider";var _t=xe(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return b.jsx(U.div,{ref:r,__css:d,...c})});_t.displayName="Flex";function uD(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var cD=["h","minH","height","minHeight"],sS=xe((e,t)=>{const r=Jr("Textarea",e),{className:n,rows:o,...i}=Xt(e),a=z6(i),s=o?uD(r,cD):r;return b.jsx(U.textarea,{ref:t,rows:o,...a,className:Be("chakra-textarea",n),__css:s})});sS.displayName="Textarea";const sv=()=>{const e=()=>({defeated:!1,lifeup:!1});return{armadillo:{...e(),subtank:!1},octopus:e(),penguin:{...e(),leg:!1},mammoth:{...e(),subtank:!1,arm:!1},eagle:{...e(),subtank:!1,head:!1},mandrill:{...e(),subtank:!1},chameleon:{...e(),armor:!1},kuwanger:e()}},dD=()=>{const e=()=>({defeated:!0,lifeup:!0});return{armadillo:{...e(),subtank:!0},octopus:e(),penguin:{...e(),leg:!0},mammoth:{...e(),subtank:!0,arm:!0},eagle:{...e(),subtank:!0,head:!0},mandrill:{...e(),subtank:!0},chameleon:{...e(),armor:!0},kuwanger:e()}},fD=()=>({A:0,B:0,C:0,D:0,E:0,F:0,G:0,H:0,I:0,J:0,K:0,L:0}),I=e=>e?1:0,hD=e=>{const t=fD();{let r=[4,1];const n=I(e.penguin.defeated)+I(e.mammoth.defeated)+I(e.octopus.lifeup)+I(e.chameleon.lifeup)+I(e.mandrill.subtank)+I(e.eagle.subtank)+I(e.eagle.head)+I(e.chameleon.armor)+I(e.mammoth.arm),o=e.penguin.lifeup,i=e.armadillo.subtank;o&&(r=[2,7]),i&&(r=[6,5]),o&&i&&(r=[8,3]),t.A=r[n%2]}{let r=[3,2];const n=I(e.armadillo.lifeup)+I(e.kuwanger.lifeup)+I(e.penguin.lifeup)+I(e.mammoth.lifeup)+I(e.octopus.lifeup)+I(e.mandrill.lifeup)+I(e.chameleon.lifeup)+I(e.eagle.lifeup),o=e.mammoth.defeated,i=e.eagle.head;o&&(r=[7,8]),i&&(r=[4,1]),o&&i&&(r=[6,5]),t.B=r[n%2]}{let r=2;const n=e.mammoth.lifeup,o=e.mammoth.subtank;n&&(r=4),o&&(r=6),n&&o&&(r=7),t.C=r}{let r=5;const n=e.eagle.defeated,o=e.eagle.lifeup;n&&(r=3),o&&(r=2),n&&o&&(r=6),t.D=r}{let r=[5,7];const n=I(e.armadillo.defeated)+I(e.kuwanger.defeated)+I(e.penguin.defeated)+I(e.mammoth.defeated)+I(e.eagle.defeated)+I(e.armadillo.lifeup)+I(e.kuwanger.lifeup)+I(e.armadillo.subtank)+I(e.mammoth.arm),o=e.octopus.defeated,i=e.chameleon.armor;o&&(r=[3,2]),i&&(r=[1,8]),o&&i&&(r=[6,4]),t.E=r[n%2]}{let r=[8,2];const n=I(e.armadillo.subtank)+I(e.mammoth.subtank)+I(e.mandrill.subtank)+I(e.eagle.subtank)+I(e.eagle.head)+I(e.chameleon.armor)+I(e.mammoth.arm)+I(e.penguin.leg),o=e.kuwanger.defeated,i=e.kuwanger.lifeup;o&&(r=[4,7]),i&&(r=[1,3]),o&&i&&(r=[6,5]),t.F=r[n%2]}{let r=[5,4];const n=I(e.octopus.defeated)+I(e.eagle.defeated)+I(e.penguin.lifeup)+I(e.mammoth.lifeup)+I(e.eagle.subtank)+I(e.eagle.head),o=e.armadillo.defeated,i=e.mammoth.arm;o&&(r=[8,1]),i&&(r=[3,7]),o&&i&&(r=[6,2]),t.G=r[n%2]}{let r=2;const n=e.mandrill.defeated,o=e.chameleon.lifeup;n&&(r=6),o&&(r=8),n&&o&&(r=7),t.H=r}{let r=[1,8];const n=I(e.armadillo.defeated)+I(e.kuwanger.defeated)+I(e.kuwanger.lifeup)+I(e.penguin.lifeup)+I(e.mammoth.lifeup)+I(e.octopus.lifeup)+I(e.chameleon.lifeup)+I(e.mandrill.subtank)+I(e.chameleon.armor),o=e.armadillo.lifeup,i=e.penguin.leg;o&&(r=[4,6]),i&&(r=[3,7]),o&&i&&(r=[2,5]),t.I=r[n%2]}{let r=8;const n=e.chameleon.defeated,o=e.eagle.subtank;n&&(r=3),o&&(r=2),n&&o&&(r=1),t.J=r}{let r=[2,6];const n=I(e.armadillo.defeated)+I(e.kuwanger.defeated)+I(e.penguin.defeated)+I(e.mammoth.defeated)+I(e.octopus.defeated)+I(e.mandrill.defeated)+I(e.chameleon.defeated)+I(e.eagle.defeated),o=e.octopus.lifeup,i=e.mandrill.subtank;o&&(r=[8,7]),i&&(r=[5,3]),o&&i&&(r=[4,1]),t.K=r[n%2]}{let r=1;const n=e.penguin.defeated,o=e.mandrill.lifeup;n&&(r=4),o&&(r=6),n&&o&&(r=8),t.L=r}return t},pD=()=>b.jsx("a",{target:"_blank",rel:"noopener",href:"https://github.com/akatsuki105/mmxpg","aria-label":"GitHub",children:b.jsx("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",version:"1.1",viewBox:"0 0 32 32",focusable:"false",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M16 5.343c-6.196 0-11.219 5.023-11.219 11.219 0 4.957 3.214 9.162 7.673 10.645 0.561 0.103 0.766-0.244 0.766-0.54 0-0.267-0.010-1.152-0.016-2.088-3.12 0.678-3.779-1.323-3.779-1.323-0.511-1.296-1.246-1.641-1.246-1.641-1.020-0.696 0.077-0.682 0.077-0.682 1.126 0.078 1.72 1.156 1.72 1.156 1.001 1.715 2.627 1.219 3.265 0.931 0.102-0.723 0.392-1.219 0.712-1.498-2.49-0.283-5.11-1.246-5.11-5.545 0-1.226 0.438-2.225 1.154-3.011-0.114-0.285-0.501-1.426 0.111-2.97 0 0 0.941-0.301 3.085 1.15 0.894-0.25 1.854-0.373 2.807-0.377 0.953 0.004 1.913 0.129 2.809 0.379 2.14-1.453 3.083-1.15 3.083-1.15 0.613 1.545 0.227 2.685 0.112 2.969 0.719 0.785 1.153 1.785 1.153 3.011 0 4.31-2.624 5.259-5.123 5.537 0.404 0.348 0.761 1.030 0.761 2.076 0 1.5-0.015 2.709-0.015 3.079 0 0.299 0.204 0.648 0.772 0.538 4.455-1.486 7.666-5.69 7.666-10.645 0-6.195-5.023-11.219-11.219-11.219z"})})}),mD=()=>b.jsx("a",{target:"_blank",rel:"noopener",href:"https://x.com/akatsuki_x69","aria-label":"X",children:b.jsx("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",focusable:"false",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M492 109.5c-17.4 7.7-36 12.9-55.6 15.3 20-12 35.4-31 42.6-53.6-18.7 11.1-39.4 19.2-61.5 23.5C399.8 75.8 374.6 64 346.8 64c-53.5 0-96.8 43.4-96.8 96.9 0 7.6.8 15 2.5 22.1-80.5-4-151.9-42.6-199.6-101.3-8.3 14.3-13.1 31-13.1 48.7 0 33.6 17.2 63.3 43.2 80.7-16-.4-31-4.8-44-12.1v1.2c0 47 33.4 86.1 77.7 95-8.1 2.2-16.7 3.4-25.5 3.4-6.2 0-12.3-.6-18.2-1.8 12.3 38.5 48.1 66.5 90.5 67.3-33.1 26-74.9 41.5-120.3 41.5-7.8 0-15.5-.5-23.1-1.4C62.8 432 113.7 448 168.3 448 346.6 448 444 300.3 444 172.2c0-4.2-.1-8.4-.3-12.5C462.6 146 479 129 492 109.5z"})})}),gD=()=>b.jsxs(Vr,{color:"gray.500",children:[b.jsxs(_t,{columnGap:4,children:[b.jsx(Oe,{}),b.jsx(Vr,{w:"1.5rem",h:"1.5rem",children:b.jsx(pD,{})}),b.jsx(Vr,{w:"1.3rem",h:"1.3rem",mt:"0.1rem",children:b.jsx(mD,{})}),b.jsx(Oe,{})]}),b.jsx(Oe,{h:2}),b.jsxs(Vr,{fontSize:{base:"xs",lg:"sm"},textAlign:"center",children:[b.jsx(Af,{children:"The images are © CAPCOM CO., LTD."}),b.jsx(Af,{children:"Everything else is © 2023 Akatsuki."})]})]}),vD=()=>{const[e,t]=S.useState(sv()),r=hD(e),{onCopy:n,hasCopied:o}=nD(lv(r)),i=o6();return b.jsxs(Vr,{minH:"100vh",children:[b.jsxs(iS,{maxW:"6xl",p:4,children:[b.jsx(Oe,{h:2}),b.jsxs(_t,{children:[b.jsx(Jt,{size:"md",children:"ロックマンX パスワードジェネレータ"}),b.jsx(Oe,{}),b.jsxs(_t,{columnGap:2,mt:"-7px",display:{base:"none",lg:"flex"},children:[b.jsx(dl,{colorScheme:"blue",onClick:()=>t(dD()),children:"全部盛り"}),b.jsx(dl,{colorScheme:"blue",onClick:()=>t(sv()),children:"リセット"})]})]}),b.jsx(Oe,{h:4}),b.jsxs(rS,{columns:{base:1,lg:2},spacing:4,children:[b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/armored_armadillo.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"アーマー・アルマージ"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.armadillo.defeated,onChange:a=>t(we(e,"armadillo","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.armadillo.lifeup,onChange:a=>t(we(e,"armadillo","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.armadillo.subtank,onChange:a=>t(we(e,"armadillo","subtank",a.target.checked)),children:"サブタンク"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/launch_octopus.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"ランチャー・オクトパルド"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.octopus.defeated,onChange:a=>t(we(e,"octopus","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.octopus.lifeup,onChange:a=>t(we(e,"octopus","lifeup",a.target.checked)),children:"ライフアップ"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/chill_penguin.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"アイシー・ペンギーゴ"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.penguin.defeated,onChange:a=>t(we(e,"penguin","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.penguin.lifeup,onChange:a=>t(we(e,"penguin","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.penguin.leg,onChange:a=>t(we(e,"penguin","leg",a.target.checked)),children:"フットパーツ"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/flame_mammoth.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"バーニン・ナウマンダー"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.mammoth.defeated,onChange:a=>t(we(e,"mammoth","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.mammoth.lifeup,onChange:a=>t(we(e,"mammoth","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.mammoth.subtank,onChange:a=>t(we(e,"mammoth","subtank",a.target.checked)),children:"サブタンク"}),b.jsx(ve,{isChecked:e.mammoth.arm,onChange:a=>t(we(e,"mammoth","arm",a.target.checked)),children:"アームパーツ"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/storm_eagle.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"ストーム・イーグリード"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.eagle.defeated,onChange:a=>t(we(e,"eagle","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.eagle.lifeup,onChange:a=>t(we(e,"eagle","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.eagle.subtank,onChange:a=>t(we(e,"eagle","subtank",a.target.checked)),children:"サブタンク"}),b.jsx(ve,{isChecked:e.eagle.head,onChange:a=>t(we(e,"eagle","head",a.target.checked)),children:"ヘッドパーツ"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/spark_mandrill.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"スパーク・マンドリラー"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.mandrill.defeated,onChange:a=>t(we(e,"mandrill","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.mandrill.lifeup,onChange:a=>t(we(e,"mandrill","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.mandrill.subtank,onChange:a=>t(we(e,"mandrill","subtank",a.target.checked)),children:"サブタンク"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/sting_chameleon.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"スティング・カメリーオ"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.chameleon.defeated,onChange:a=>t(we(e,"chameleon","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.chameleon.lifeup,onChange:a=>t(we(e,"chameleon","lifeup",a.target.checked)),children:"ライフアップ"}),b.jsx(ve,{isChecked:e.chameleon.armor,onChange:a=>t(we(e,"chameleon","armor",a.target.checked)),children:"アーマー"})]})})]})}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/boss/boomer_kuwanger.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"ブーメル・クワンガー"})]}),b.jsx(Oe,{h:2}),b.jsx(Ar,{colorScheme:"blue",defaultValue:[],children:b.jsxs(zr,{spacing:[1,5],direction:["column","row"],children:[b.jsx(ve,{isChecked:e.kuwanger.defeated,onChange:a=>t(we(e,"kuwanger","defeated",a.target.checked)),children:"撃破"}),b.jsx(ve,{isChecked:e.kuwanger.lifeup,onChange:a=>t(we(e,"kuwanger","lifeup",a.target.checked)),children:"ライフアップ"})]})})]})})]}),b.jsx(aS,{m:4}),b.jsx($r,{children:b.jsxs(Er,{children:[b.jsxs(_t,{children:[b.jsx(dr,{src:"/mmxpg/password.webp",h:"1rem",mt:"1px",mr:"4px"}),b.jsx(Jt,{size:"sm",children:"パスワード"})]}),b.jsx(Oe,{h:2}),b.jsx(sS,{value:lv(r),size:"sm",isReadOnly:!0}),b.jsx(Oe,{h:2}),b.jsx(dl,{w:"100%",colorScheme:"blue",onClick:n,children:"コピー"})]})})]}),b.jsx(Vr,{children:o&&!i.isActive("copied")&&b.jsx(Vr,{children:i({id:"copied",title:"コピーされました!",duration:2e3,status:"success"})})}),b.jsx(Oe,{h:2}),b.jsx(gD,{}),b.jsx(Oe,{h:6})]})},we=(e,t,r,n)=>{const o={...e};return r in o[t]&&(o[t][r]=n),o},lv=e=>`${e.A} ${e.B} ${e.C} ${e.D} +${e.E} ${e.F} ${e.G} ${e.H} +${e.I} ${e.J} ${e.K} ${e.L}`,yD={initialColorMode:"dark",useSystemColorMode:!1},bD=V4({config:yD,fonts:{heading:"'Noto Sans JP', 'Inter', sans-serif",body:"'Noto Sans JP', 'Inter', sans-serif"}});id.createRoot(document.getElementById("root")).render(b.jsx(ei.StrictMode,{children:b.jsx(a6,{theme:bD,children:b.jsx(vD,{})})})); diff --git a/docs/boss/armored_armadillo.webp b/docs/boss/armored_armadillo.webp new file mode 100644 index 0000000..5523acb Binary files /dev/null and b/docs/boss/armored_armadillo.webp differ diff --git a/docs/boss/boomer_kuwanger.webp b/docs/boss/boomer_kuwanger.webp new file mode 100644 index 0000000..f8a0523 Binary files /dev/null and b/docs/boss/boomer_kuwanger.webp differ diff --git a/docs/boss/chill_penguin.webp b/docs/boss/chill_penguin.webp new file mode 100644 index 0000000..0c90506 Binary files /dev/null and b/docs/boss/chill_penguin.webp differ diff --git a/docs/boss/flame_mammoth.webp b/docs/boss/flame_mammoth.webp new file mode 100644 index 0000000..4773da1 Binary files /dev/null and b/docs/boss/flame_mammoth.webp differ diff --git a/docs/boss/launch_octopus.webp b/docs/boss/launch_octopus.webp new file mode 100644 index 0000000..beb5b4e Binary files /dev/null and b/docs/boss/launch_octopus.webp differ diff --git a/docs/boss/spark_mandrill.webp b/docs/boss/spark_mandrill.webp new file mode 100644 index 0000000..d10d991 Binary files /dev/null and b/docs/boss/spark_mandrill.webp differ diff --git a/docs/boss/sting_chameleon.webp b/docs/boss/sting_chameleon.webp new file mode 100644 index 0000000..aaa4d52 Binary files /dev/null and b/docs/boss/sting_chameleon.webp differ diff --git a/docs/boss/storm_eagle.webp b/docs/boss/storm_eagle.webp new file mode 100644 index 0000000..7fd0fd4 Binary files /dev/null and b/docs/boss/storm_eagle.webp differ diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..a83da0c Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..e7b0b2d --- /dev/null +++ b/docs/index.html @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + パスワードジェネレータ | ロックマンX + + + +
+ + + diff --git a/docs/ogp.webp b/docs/ogp.webp new file mode 100644 index 0000000..5fce408 Binary files /dev/null and b/docs/ogp.webp differ diff --git a/docs/password.webp b/docs/password.webp new file mode 100644 index 0000000..a7bec65 Binary files /dev/null and b/docs/password.webp differ diff --git a/index.html b/index.html index 96defe2..4421e36 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,25 @@ - + - MMX Password Generator + + + + + + + + + + + + + + + + パスワードジェネレータ | ロックマンX
diff --git a/package.json b/package.json index 8a9bf59..4345e34 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { "name": "mmxpg", + "homepage": "https://akatsuki105.github.io/mmxpg/", "private": true, - "version": "0.0.0", + "version": "1.0.0", "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc && vite build && rm -rf ./docs/ && mv ./dist/ ./docs/", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "postinstall": "typesync" diff --git a/public/boss/armored_armadillo.webp b/public/boss/armored_armadillo.webp new file mode 100644 index 0000000..5523acb Binary files /dev/null and b/public/boss/armored_armadillo.webp differ diff --git a/public/boss/boomer_kuwanger.webp b/public/boss/boomer_kuwanger.webp new file mode 100644 index 0000000..f8a0523 Binary files /dev/null and b/public/boss/boomer_kuwanger.webp differ diff --git a/public/boss/chill_penguin.webp b/public/boss/chill_penguin.webp new file mode 100644 index 0000000..0c90506 Binary files /dev/null and b/public/boss/chill_penguin.webp differ diff --git a/public/boss/flame_mammoth.webp b/public/boss/flame_mammoth.webp new file mode 100644 index 0000000..4773da1 Binary files /dev/null and b/public/boss/flame_mammoth.webp differ diff --git a/public/boss/launch_octopus.webp b/public/boss/launch_octopus.webp new file mode 100644 index 0000000..beb5b4e Binary files /dev/null and b/public/boss/launch_octopus.webp differ diff --git a/public/boss/spark_mandrill.webp b/public/boss/spark_mandrill.webp new file mode 100644 index 0000000..d10d991 Binary files /dev/null and b/public/boss/spark_mandrill.webp differ diff --git a/public/boss/sting_chameleon.webp b/public/boss/sting_chameleon.webp new file mode 100644 index 0000000..aaa4d52 Binary files /dev/null and b/public/boss/sting_chameleon.webp differ diff --git a/public/boss/storm_eagle.webp b/public/boss/storm_eagle.webp new file mode 100644 index 0000000..7fd0fd4 Binary files /dev/null and b/public/boss/storm_eagle.webp differ diff --git a/public/ogp.webp b/public/ogp.webp new file mode 100644 index 0000000..5fce408 Binary files /dev/null and b/public/ogp.webp differ diff --git a/public/password.webp b/public/password.webp new file mode 100644 index 0000000..a7bec65 Binary files /dev/null and b/public/password.webp differ diff --git a/src/App.tsx b/src/App.tsx index ba4c056..358b570 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,270 @@ -import { Box } from '@chakra-ui/react'; +import { Box, Button, Card, CardBody, Checkbox, CheckboxGroup, Container, Divider, Flex, Heading, Image, SimpleGrid, Spacer, Stack, Textarea, useToast } from '@chakra-ui/react'; +import { useState } from 'react'; +import { GameState, getCompletedState, getDefaultGameState } from './state'; +import { Password, generatePassword } from './password'; +import { useClipboard } from '@chakra-ui/react'; +import { Footer } from './Footer'; const App = () => { - return Hello mmxpg!; + const [gs, setGS] = useState(getDefaultGameState()); + const password = generatePassword(gs); + const { onCopy, hasCopied } = useClipboard(ToString(password)); + const toast = useToast(); + + return ( + + + + + ロックマンX パスワードジェネレータ + + + + + + + + + + + + + + アーマー・アルマージ + + + + + setGS(updateGameState(gs, 'armadillo', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'armadillo', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'armadillo', 'subtank', e.target.checked))}> + サブタンク + + + + + + + + + + + ランチャー・オクトパルド + + + + + setGS(updateGameState(gs, 'octopus', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'octopus', 'lifeup', e.target.checked))}> + ライフアップ + + + + + + + + + + + アイシー・ペンギーゴ + + + + + setGS(updateGameState(gs, 'penguin', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'penguin', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'penguin', 'leg', e.target.checked))}> + フットパーツ + + + + + + + + + + + バーニン・ナウマンダー + + + + + setGS(updateGameState(gs, 'mammoth', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'mammoth', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'mammoth', 'subtank', e.target.checked))}> + サブタンク + + setGS(updateGameState(gs, 'mammoth', 'arm', e.target.checked))}> + アームパーツ + + + + + + + + + + + ストーム・イーグリード + + + + + setGS(updateGameState(gs, 'eagle', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'eagle', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'eagle', 'subtank', e.target.checked))}> + サブタンク + + setGS(updateGameState(gs, 'eagle', 'head', e.target.checked))}> + ヘッドパーツ + + + + + + + + + + + スパーク・マンドリラー + + + + + setGS(updateGameState(gs, 'mandrill', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'mandrill', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'mandrill', 'subtank', e.target.checked))}> + サブタンク + + + + + + + + + + + スティング・カメリーオ + + + + + setGS(updateGameState(gs, 'chameleon', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'chameleon', 'lifeup', e.target.checked))}> + ライフアップ + + setGS(updateGameState(gs, 'chameleon', 'armor', e.target.checked))}> + アーマー + + + + + + + + + + + ブーメル・クワンガー + + + + + setGS(updateGameState(gs, 'kuwanger', 'defeated', e.target.checked))}> + 撃破 + + setGS(updateGameState(gs, 'kuwanger', 'lifeup', e.target.checked))}> + ライフアップ + + + + + + + + + + + + + + パスワード + + +