From 593b6de338b5ff3ef9c9814f3c42359589c4b6ec Mon Sep 17 00:00:00 2001 From: KavetiRohith Date: Thu, 14 Sep 2023 09:54:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20KavetiRo?= =?UTF-8?q?hith/GameHub@0883325f2b072108fc090541f46a2bd71183c279=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-ac5b03ae.js | 352 ------------------------------------- assets/index-e61ec411.js | 370 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 371 insertions(+), 353 deletions(-) delete mode 100644 assets/index-ac5b03ae.js create mode 100644 assets/index-e61ec411.js diff --git a/assets/index-ac5b03ae.js b/assets/index-ac5b03ae.js deleted file mode 100644 index 669f9d2..0000000 --- a/assets/index-ac5b03ae.js +++ /dev/null @@ -1,352 +0,0 @@ -function TC(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P1={exports:{}},qu={},T1={exports:{}},re={};/** - * @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 wa=Symbol.for("react.element"),AC=Symbol.for("react.portal"),RC=Symbol.for("react.fragment"),$C=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),zC=Symbol.for("react.provider"),OC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),IC=Symbol.for("react.suspense"),DC=Symbol.for("react.memo"),jC=Symbol.for("react.lazy"),_0=Symbol.iterator;function FC(e){return e===null||typeof e!="object"?null:(e=_0&&e[_0]||e["@@iterator"],typeof e=="function"?e:null)}var A1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R1=Object.assign,$1={};function Bi(e,t,n){this.props=e,this.context=t,this.refs=$1,this.updater=n||A1}Bi.prototype.isReactComponent={};Bi.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")};Bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function M1(){}M1.prototype=Bi.prototype;function nh(e,t,n){this.props=e,this.context=t,this.refs=$1,this.updater=n||A1}var rh=nh.prototype=new M1;rh.constructor=nh;R1(rh,Bi.prototype);rh.isPureReactComponent=!0;var P0=Array.isArray,z1=Object.prototype.hasOwnProperty,oh={current:null},O1={key:!0,ref:!0,__self:!0,__source:!0};function L1(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)z1.call(t,r)&&!O1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,te=L[V];if(0>>1;Vo(ke,W))heo(We,ke)?(L[V]=We,L[he]=W,V=he):(L[V]=ke,L[G]=W,V=G);else if(heo(We,W))L[V]=We,L[he]=W,V=he;else break e}}return N}function o(L,N){var W=L.sortIndex-N.sortIndex;return W!==0?W:L.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,y=!1,w=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 v(L){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=L)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(L){if(y=!1,v(L),!m)if(n(l)!==null)m=!0,Z(P);else{var N=n(u);N!==null&&O(S,N.startTime-L)}}function P(L,N){m=!1,y&&(y=!1,g(A),A=-1),p=!0;var W=f;try{for(v(N),d=n(l);d!==null&&(!(d.expirationTime>N)||L&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var te=V(d.expirationTime<=N);N=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),v(N)}else r(l);d=n(l)}if(d!==null)var B=!0;else{var G=n(u);G!==null&&O(S,G.startTime-N),B=!1}return B}finally{d=null,f=W,p=!1}}var T=!1,_=null,A=-1,z=5,M=-1;function F(){return!(e.unstable_now()-ML||125V?(L.sortIndex=W,t(u,L),n(l)===null&&L===n(u)&&(y?(g(A),A=-1):y=!0,O(S,W-V))):(L.sortIndex=te,t(l,L),m||p||(m=!0,Z(P))),L},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(L){var N=f;return function(){var W=f;f=N;try{return L.apply(this,arguments)}finally{f=W}}}})(F1);j1.exports=F1;var YC=j1.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 N1=x,Ft=YC;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kf=Object.prototype.hasOwnProperty,QC=/^[: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]*$/,R0={},$0={};function ZC(e){return kf.call($0,e)?!0:kf.call(R0,e)?!1:QC.test(e)?$0[e]=!0:(R0[e]=!0,!1)}function JC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function e5(e,t,n,r){if(t===null||typeof t>"u"||JC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new yt(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){rt[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sh=/[\-:]([a-z])/g;function ah(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(sh,ah);rt[t]=new yt(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(sh,ah);rt[t]=new yt(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(sh,ah);rt[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function lh(e,t,n,r){var o=rt.hasOwnProperty(t)?rt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fs(e):""}function t5(e){switch(e.tag){case 5:return fs(e.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return e=pd(e.type,!1),e;case 11:return e=pd(e.type.render,!1),e;case 1:return e=pd(e.type,!0),e;default:return""}}function Pf(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 Uo:return"Fragment";case Wo:return"Portal";case Cf:return"Profiler";case uh:return"StrictMode";case Ef:return"Suspense";case _f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case H1:return(e.displayName||"Context")+".Consumer";case V1:return(e._context.displayName||"Context")+".Provider";case ch:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dh:return t=e.displayName||null,t!==null?t:Pf(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return Pf(e(t))}catch{}}return null}function n5(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 Pf(t);case 8:return t===uh?"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 Br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r5(e){var t=U1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Za(e){e._valueTracker||(e._valueTracker=r5(e))}function G1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function su(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 Tf(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function z0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Br(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function K1(e,t){t=t.checked,t!=null&&lh(e,"checked",t,!1)}function Af(e,t){K1(e,t);var n=Br(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rf(e,t.type,Br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function O0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rf(e,t,n){(t!=="number"||su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function fi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={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},o5=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){o5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Q1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Z1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Q1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var i5=ze({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 zf(e,t){if(t){if(i5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Of(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 Lf=null;function fh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var If=null,pi=null,hi=null;function D0(e){if(e=Ea(e)){if(typeof If!="function")throw Error(I(280));var t=e.stateNode;t&&(t=ec(t),If(e.stateNode,e.type,t))}}function J1(e){pi?hi?hi.push(e):hi=[e]:pi=e}function eb(){if(pi){var e=pi,t=hi;if(hi=pi=null,D0(e),t)for(e=0;e>>=0,e===0?32:31-(g5(e)/v5|0)|0}var el=64,tl=4194304;function hs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=hs(a):(i&=s,i!==0&&(r=hs(i)))}else s=n&~o,s!==0?r=hs(s):i!==0&&(r=hs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ka(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function S5(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Es),G0=String.fromCharCode(32),K0=!1;function xb(e,t){switch(e){case"keyup":return q5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Go=!1;function Q5(e,t){switch(e){case"compositionend":return Sb(t);case"keypress":return t.which!==32?null:(K0=!0,G0);case"textInput":return e=t.data,e===G0&&K0?null:e;default:return null}}function Z5(e,t){if(Go)return e==="compositionend"||!xh&&xb(e,t)?(e=yb(),Rl=vh=Pr=null,Go=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Q0(n)}}function Eb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _b(){for(var e=window,t=su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=su(e.document)}return t}function Sh(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 aE(e){var t=_b(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eb(n.ownerDocument.documentElement,n)){if(r!==null&&Sh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Z0(n,i);var s=Z0(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ko=null,Vf=null,Ps=null,Hf=!1;function J0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hf||Ko==null||Ko!==su(r)||(r=Ko,"selectionStart"in r&&Sh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ps&&Zs(Ps,r)||(Ps=r,r=pu(Vf,"onSelect"),0Yo||(e.current=qf[Yo],qf[Yo]=null,Yo--)}function xe(e,t){Yo++,qf[Yo]=e.current,e.current=t}var Vr={},ct=Gr(Vr),kt=Gr(!1),wo=Vr;function Ci(e,t){var n=e.type.contextTypes;if(!n)return Vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function mu(){_e(kt),_e(ct)}function sg(e,t,n){if(ct.current!==Vr)throw Error(I(168));xe(ct,t),xe(kt,n)}function Lb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,n5(e)||"Unknown",o));return ze({},n,r)}function gu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vr,wo=ct.current,xe(ct,e),xe(kt,kt.current),!0}function ag(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Lb(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,_e(kt),_e(ct),xe(ct,e)):_e(kt),xe(kt,n)}var Un=null,tc=!1,Pd=!1;function Ib(e){Un===null?Un=[e]:Un.push(e)}function bE(e){tc=!0,Ib(e)}function Kr(){if(!Pd&&Un!==null){Pd=!0;var e=0,t=ge;try{var n=Un;for(ge=1;e>=s,o-=s,Xn=1<<32-xn(t)+o|n<A?(z=_,_=null):z=_.sibling;var M=f(g,_,v[A],S);if(M===null){_===null&&(_=z);break}e&&_&&M.alternate===null&&t(g,_),h=i(M,h,A),T===null?P=M:T.sibling=M,T=M,_=z}if(A===v.length)return n(g,_),Ae&&oo(g,A),P;if(_===null){for(;AA?(z=_,_=null):z=_.sibling;var F=f(g,_,M.value,S);if(F===null){_===null&&(_=z);break}e&&_&&F.alternate===null&&t(g,_),h=i(F,h,A),T===null?P=F:T.sibling=F,T=F,_=z}if(M.done)return n(g,_),Ae&&oo(g,A),P;if(_===null){for(;!M.done;A++,M=v.next())M=d(g,M.value,S),M!==null&&(h=i(M,h,A),T===null?P=M:T.sibling=M,T=M);return Ae&&oo(g,A),P}for(_=r(g,_);!M.done;A++,M=v.next())M=p(_,g,A,M.value,S),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?A:M.key),h=i(M,h,A),T===null?P=M:T.sibling=M,T=M);return e&&_.forEach(function(Y){return t(g,Y)}),Ae&&oo(g,A),P}function w(g,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Uo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Qa:e:{for(var P=v.key,T=h;T!==null;){if(T.key===P){if(P=v.type,P===Uo){if(T.tag===7){n(g,T.sibling),h=o(T,v.props.children),h.return=g,g=h;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Sr&&hg(P)===T.type){n(g,T.sibling),h=o(T,v.props),h.ref=ts(g,T,v),h.return=g,g=h;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===Uo?(h=vo(v.props.children,g.mode,S,v.key),h.return=g,g=h):(S=jl(v.type,v.key,v.props,null,g.mode,S),S.ref=ts(g,h,v),S.return=g,g=S)}return s(g);case Wo:e:{for(T=v.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=o(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ld(v,g.mode,S),h.return=g,g=h}return s(g);case Sr:return T=v._init,w(g,h,T(v._payload),S)}if(ps(v))return m(g,h,v,S);if(Yi(v))return y(g,h,v,S);ll(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,v),h.return=g,g=h):(n(g,h),h=Od(v,g.mode,S),h.return=g,g=h),s(g)):n(g,h)}return w}var _i=Wb(!0),Ub=Wb(!1),_a={},zn=Gr(_a),na=Gr(_a),ra=Gr(_a);function po(e){if(e===_a)throw Error(I(174));return e}function Rh(e,t){switch(xe(ra,t),xe(na,e),xe(zn,_a),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mf(t,e)}_e(zn),xe(zn,t)}function Pi(){_e(zn),_e(na),_e(ra)}function Gb(e){po(ra.current);var t=po(zn.current),n=Mf(t,e.type);t!==n&&(xe(na,e),xe(zn,n))}function $h(e){na.current===e&&(_e(zn),_e(na))}var Re=Gr(0);function wu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Td=[];function Mh(){for(var e=0;en?n:4,e(!0);var r=Ad.transition;Ad.transition={};try{e(!1),t()}finally{ge=n,Ad.transition=r}}function lx(){return un().memoizedState}function kE(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ux(e))cx(t,n);else if(n=Nb(e,t,n,r),n!==null){var o=mt();Sn(n,e,r,o),dx(n,t,r)}}function CE(e,t,n){var r=Lr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ux(e))cx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,wn(a,s)){var l=t.interleaved;l===null?(o.next=o,Th(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Nb(e,t,o,r),n!==null&&(o=mt(),Sn(n,e,r,o),dx(n,t,r))}}function ux(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function cx(e,t){Ts=ku=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hh(e,n)}}var Cu={readContext:ln,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},EE={readContext:ln,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:gg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,rx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kE.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:mg,useDebugValue:Dh,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=mg(!1),t=e[0];return e=wE.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=_n();if(Ae){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ye===null)throw Error(I(349));Co&30||qb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gg(Qb.bind(null,r,i,e),[e]),r.flags|=2048,sa(9,Yb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_n(),t=Ye.identifierPrefix;if(Ae){var n=qn,r=Xn;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[ta]=r,xx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Of(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;oAi&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304)}else{if(!r)if(e=wu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ae)return st(t),null}else 2*je()-i.renderingStartTime>Ai&&n!==1073741824&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,n=Re.current,xe(Re,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Hh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function zE(e,t){switch(kh(t),t.tag){case 1:return Ct(t.type)&&mu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pi(),_e(kt),_e(ct),Mh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $h(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return Pi(),null;case 10:return Ph(t.type._context),null;case 22:case 23:return Hh(),null;case 24:return null;default:return null}}var cl=!1,ut=!1,OE=typeof WeakSet=="function"?WeakSet:Set,j=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function ap(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Eg=!1;function LE(e,t){if(Wf=du,e=_b(),Sh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uf={focusedElem:e,selectionRange:n},du=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:mn(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Eg,Eg=!1,m}function As(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ap(t,n,i)}o=o.next}while(o!==r)}}function oc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kx(e){var t=e.alternate;t!==null&&(e.alternate=null,kx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[ta],delete t[Xf],delete t[vE],delete t[yE])),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 Cx(e){return e.tag===5||e.tag===3||e.tag===4}function _g(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cx(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 up(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hu));else if(r!==4&&(e=e.child,e!==null))for(up(e,t,n),e=e.sibling;e!==null;)up(e,t,n),e=e.sibling}function cp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cp(e,t,n),e=e.sibling;e!==null;)cp(e,t,n),e=e.sibling}var et=null,gn=!1;function mr(e,t,n){for(n=n.child;n!==null;)Ex(e,t,n),n=n.sibling}function Ex(e,t,n){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Yu,n)}catch{}switch(n.tag){case 5:ut||ei(n,t);case 6:var r=et,o=gn;et=null,mr(e,t,n),et=r,gn=o,et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?_d(e.parentNode,n):e.nodeType===1&&_d(e,n),Ys(e)):_d(et,n.stateNode));break;case 4:r=et,o=gn,et=n.stateNode.containerInfo,gn=!0,mr(e,t,n),et=r,gn=o;break;case 0:case 11:case 14:case 15:if(!ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ap(n,t,s),o=o.next}while(o!==r)}mr(e,t,n);break;case 1:if(!ut&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}mr(e,t,n);break;case 21:mr(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,mr(e,t,n),ut=r):mr(e,t,n);break;default:mr(e,t,n)}}function Pg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OE),t.forEach(function(r){var o=WE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DE(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,Pu=0,ae&6)throw Error(I(331));var o=ae;for(ae|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lje()-Bh?go(e,0):Nh|=n),Et(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=mt();e=ar(e,t),e!==null&&(ka(e,t,n),Et(e,n))}function HE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function WE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),zx(e,n)}var Ox;Ox=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,$E(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Ae&&t.flags&1048576&&Db(t,yu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ll(e,t),e=t.pendingProps;var o=Ci(t,ct.current);gi(t,n),o=Oh(null,t,r,e,o,n);var i=Lh();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,Ct(r)?(i=!0,gu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ah(t),o.updater=nc,t.stateNode=o,o._reactInternals=t,ep(t,r,e,n),t=rp(null,t,r,!0,i,n)):(t.tag=0,Ae&&i&&wh(t),pt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=GE(r),e=mn(r,e),o){case 0:t=np(null,t,r,e,n);break e;case 1:t=wg(null,t,r,e,n);break e;case 11:t=xg(null,t,r,e,n);break e;case 14:t=Sg(null,t,r,mn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),np(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),wg(e,t,r,o,n);case 3:e:{if(vx(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bb(e,t),Su(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ti(Error(I(423)),t),t=kg(e,t,r,n,o);break e}else if(r!==o){o=Ti(Error(I(424)),t),t=kg(e,t,r,n,o);break e}else for(Ot=Mr(t.stateNode.containerInfo.firstChild),It=t,Ae=!0,vn=null,n=Ub(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===o){t=lr(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return Gb(t),e===null&&Qf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Gf(r,o)?s=null:i!==null&&Gf(r,i)&&(t.flags|=32),gx(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&Qf(t),null;case 13:return yx(e,t,n);case 4:return Rh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_i(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),xg(e,t,r,o,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,xe(bu,r._currentValue),r._currentValue=s,i!==null)if(wn(i.value,s)){if(i.children===o.children&&!kt.current){t=lr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Zf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zf(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}pt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gi(t,n),o=ln(o),r=r(o),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Sg(e,t,r,o,n);case 15:return hx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Ll(e,t),t.tag=1,Ct(r)?(e=!0,gu(t)):e=!1,gi(t,n),Hb(t,r,o),ep(t,r,o,n),rp(null,t,r,!0,e,n);case 19:return bx(e,t,n);case 22:return mx(e,t,n)}throw Error(I(156,t.tag))};function Lx(e,t){return ab(e,t)}function UE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,n,r){return new UE(e,t,n,r)}function Uh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GE(e){if(typeof e=="function")return Uh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ch)return 11;if(e===dh)return 14}return 2}function Ir(e,t){var n=e.alternate;return n===null?(n=nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Uh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Uo:return vo(n.children,o,i,t);case uh:s=8,o|=8;break;case Cf:return e=nn(12,n,t,o|2),e.elementType=Cf,e.lanes=i,e;case Ef:return e=nn(13,n,t,o),e.elementType=Ef,e.lanes=i,e;case _f:return e=nn(19,n,t,o),e.elementType=_f,e.lanes=i,e;case W1:return sc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V1:s=10;break e;case H1:s=9;break e;case ch:s=11;break e;case dh:s=14;break e;case Sr:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=nn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function vo(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function sc(e,t,n,r){return e=nn(22,e,r,t),e.elementType=W1,e.lanes=n,e.stateNode={isHidden:!1},e}function Od(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function Ld(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=md(0),this.expirationTimes=md(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=md(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gh(e,t,n,r,o,i,s,a,l){return e=new KE(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ah(i),e}function XE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fx)}catch(e){console.error(e)}}Fx(),D1.exports=Vt;var Yh=D1.exports,Lg=Yh;wf.createRoot=Lg.createRoot,wf.hydrateRoot=Lg.hydrateRoot;function JE(e){if(e.sheet)return e.sheet;for(var t=0;t0?tt(Wi,--At):0,Ri--,Be===10&&(Ri=1,fc--),Be}function Dt(){return Be=At2||ua(Be)>3?"":" "}function f_(e,t){for(;--t&&Dt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Pa(e,Fl()+(t<6&&On()==32&&Dt()==32))}function gp(e){for(;Dt();)switch(Be){case e:return At;case 34:case 39:e!==34&&e!==39&&gp(Be);break;case 40:e===41&&gp(e);break;case 92:Dt();break}return At}function p_(e,t){for(;Dt()&&e+Be!==47+10;)if(e+Be===42+42&&On()===47)break;return"/*"+Pa(t,At-1)+"*"+dc(e===47?e:Dt())}function h_(e){for(;!ua(On());)Dt();return Pa(e,At)}function m_(e){return Ux(Bl("",null,null,null,[""],e=Wx(e),0,[0],e))}function Bl(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,y=1,w=1,g=1,h=0,v="",S=o,P=i,T=r,_=v;w;)switch(m=h,h=Dt()){case 40:if(m!=108&&tt(_,d-1)==58){mp(_+=fe(Nl(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:_+=Nl(h);break;case 9:case 10:case 13:case 32:_+=d_(m);break;case 92:_+=f_(Fl()-1,7);continue;case 47:switch(On()){case 42:case 47:pl(g_(p_(Dt(),Fl()),t,n),l);break;default:_+="/"}break;case 123*y:a[u++]=An(_)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:g==-1&&(_=fe(_,/\f/g,"")),p>0&&An(_)-d&&pl(p>32?Dg(_+";",r,n,d-1):Dg(fe(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(pl(T=Ig(_,t,n,u,c,o,a,v,S=[],P=[],d),i),h===123)if(c===0)Bl(_,t,T,T,S,i,d,a,P);else switch(f===99&&tt(_,3)===110?100:f){case 100:case 108:case 109:case 115:Bl(e,T,T,r&&pl(Ig(e,T,T,0,0,o,a,v,o,S=[],d),P),o,P,d,a,r?S:P);break;default:Bl(_,T,T,T,[""],P,0,a,P)}}u=c=p=0,y=g=1,v=_="",d=s;break;case 58:d=1+An(_),p=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&c_()==125)continue}switch(_+=dc(h),h*y){case 38:g=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(An(_)-1)*g,g=1;break;case 64:On()===45&&(_+=Nl(Dt())),f=On(),c=d=An(v=_+=h_(Fl())),h++;break;case 45:m===45&&An(_)==2&&(y=0)}}return i}function Ig(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=Jh(f),m=0,y=0,w=0;m0?f[g]+" "+h:fe(h,/&\f/g,f[g])))&&(l[w++]=v);return pc(e,t,n,o===0?Qh:a,l,u,c)}function g_(e,t,n){return pc(e,t,n,Nx,dc(u_()),la(e,2,-2),0)}function Dg(e,t,n,r){return pc(e,t,n,Zh,la(e,0,r),la(e,r+1,-1),r)}function yi(e,t){for(var n="",r=Jh(e),o=0;o6)switch(tt(e,t+1)){case 109:if(tt(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+Ru+(tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?Kx(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tt(e,t+1)!==115)break;case 6444:switch(tt(e,An(e)-3-(~mp(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(tt(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(tt(e,t+11)){case 114:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+at+e+e}return e}var E_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Zh:t.return=Kx(t.value,t.length);break;case Bx:return yi([os(t,{value:fe(t.value,"@","@"+de)})],o);case Qh:if(t.length)return l_(t.props,function(i){switch(a_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yi([os(t,{props:[fe(i,/:(read-\w+)/,":"+Ru+"$1")]})],o);case"::placeholder":return yi([os(t,{props:[fe(i,/:(plac\w+)/,":"+de+"input-$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,":"+Ru+"$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,at+"input-$1")]})],o)}return""})}},__=[E_],P_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||__,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var F_={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},N_=/[A-Z]|^ms/g,B_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eS=function(t){return t.charCodeAt(1)===45},Ng=function(t){return t!=null&&typeof t!="boolean"},Id=Gx(function(e){return eS(e)?e:e.replace(N_,"-$&").toLowerCase()}),Bg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B_,function(r,o,i){return Rn={name:o,styles:i,next:Rn},o})}return F_[t]!==1&&!eS(t)&&typeof n=="number"&&n!==0?n+"px":n};function ca(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return o}return V_(e,t,n)}case"function":{if(e!==void 0){var i=Rn,s=n(e);return Rn=i,ca(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function V_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;ok.jsx(Cc,{styles:iS}),Y_=({scope:e=""})=>k.jsx(Cc,{styles:oS` - 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; - } - - ${iS} - `});function Q_(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ut(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=x.createContext(s);a.displayName=t;function l(){var u;const c=x.useContext(a);if(!c&&n){const d=new Error(i??Q_(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[Z_,J_]=Ut({strict:!1,name:"PortalManagerContext"});function sS(e){const{children:t,zIndex:n}=e;return k.jsx(Z_,{value:{zIndex:n},children:t})}sS.displayName="PortalManager";var er=globalThis!=null&&globalThis.document?x.useLayoutEffect:x.useEffect,[aS,eP]=Ut({strict:!1,name:"PortalContext"}),im="chakra-portal",tP=".chakra-portal",nP=e=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),rP=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=x.useState(null),i=x.useRef(null),[,s]=x.useState({});x.useEffect(()=>s({}),[]);const a=eP(),l=J_();er(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=im,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?k.jsx(nP,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?Yh.createPortal(k.jsx(aS,{value:i.current,children:u}),i.current):k.jsx("span",{ref:c=>{c&&o(c)}})},oP=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=x.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=im),l},[o]),[,a]=x.useState({});return er(()=>a({}),[]),er(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Yh.createPortal(k.jsx(aS,{value:r?s:null,children:t}),s):null};function Ec(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?k.jsx(oP,{containerRef:n,...r}):k.jsx(rP,{...r})}Ec.className=im;Ec.selector=tP;Ec.displayName="Portal";function $o(){const e=x.useContext(da);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var sm=x.createContext({});sm.displayName="ColorModeContext";function _c(){const e=x.useContext(sm);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var hl={light:"chakra-ui-light",dark:"chakra-ui-dark"};function iP(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?hl.dark:hl.light),document.body.classList.remove(r?hl.light:hl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var sP="chakra-ui-color-mode";function aP(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var lP=aP(sP),Wg=()=>{};function Ug(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function lS(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=lP}=e,a=o==="dark"?"dark":"light",[l,u]=x.useState(()=>Ug(s,a)),[c,d]=x.useState(()=>Ug(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:y}=x.useMemo(()=>iP({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,g=x.useCallback(S=>{const P=S==="system"?f():S;u(P),p(P==="dark"),m(P),s.set(P)},[s,f,p,m]);er(()=>{o==="system"&&d(f())},[]),x.useEffect(()=>{const S=s.get();if(S){g(S);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=x.useCallback(()=>{g(w==="dark"?"light":"dark")},[w,g]);x.useEffect(()=>{if(r)return y(g)},[r,y,g]);const v=x.useMemo(()=>({colorMode:t??w,toggleColorMode:t?Wg:h,setColorMode:t?Wg:g,forced:t!==void 0}),[w,h,g,t]);return k.jsx(sm.Provider,{value:v,children:n})}lS.displayName="ColorModeProvider";var uP=new Set(["dark","light","system"]);function cP(e){let t=e;return uP.has(t)||(t="light"),t}function dP(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=cP(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function fP(e={}){const{nonce:t}=e;return k.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:dP(e)}})}function pP(){const e=_c(),t=$o();return{...e,theme:t}}function hP(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__breakpoints)==null?void 0:a.asArray)==null?void 0:l[s]};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function mP(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function gP(e,t,n){const r=$o();return uS(e,t,n)(r)}function uS(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,u)=>{var c,d;if(e==="breakpoints")return hP(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return mP(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var ve=(...e)=>e.filter(Boolean).join(" ");function _t(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Yn(e,...t){return vP(e)?e(...t):e}var vP=e=>typeof e=="function",le=e=>e?"":void 0,Dd=e=>e?!0:void 0;function lt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function yP(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var Mu={exports:{}};Mu.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",y="[object Map]",w="[object Number]",g="[object Null]",h="[object Object]",v="[object Proxy]",S="[object RegExp]",P="[object Set]",T="[object String]",_="[object Undefined]",A="[object WeakMap]",z="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",Y="[object Float64Array]",q="[object Int8Array]",Q="[object Int16Array]",J="[object Int32Array]",Z="[object Uint8Array]",O="[object Uint8ClampedArray]",L="[object Uint16Array]",N="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,B={};B[F]=B[Y]=B[q]=B[Q]=B[J]=B[Z]=B[O]=B[L]=B[N]=!0,B[a]=B[l]=B[z]=B[c]=B[M]=B[d]=B[f]=B[p]=B[y]=B[w]=B[h]=B[S]=B[P]=B[T]=B[A]=!1;var G=typeof qa=="object"&&qa&&qa.Object===Object&&qa,ke=typeof self=="object"&&self&&self.Object===Object&&self,he=G||ke||Function("return this")(),We=t&&!t.nodeType&&t,De=We&&!0&&e&&!e.nodeType&&e,Gt=De&&De.exports===We,Kt=Gt&&G.process,ot=function(){try{var b=De&&De.require&&De.require("util").types;return b||Kt&&Kt.binding&&Kt.binding("util")}catch{}}(),Nn=ot&&ot.isTypedArray;function Bn(b,C,R){switch(R.length){case 0:return b.call(C);case 1:return b.call(C,R[0]);case 2:return b.call(C,R[0],R[1]);case 3:return b.call(C,R[0],R[1],R[2])}return b.apply(C,R)}function Ba(b,C){for(var R=-1,D=Array(b);++R-1}function jk(b,C){var R=this.__data__,D=Ua(R,b);return D<0?(++this.size,R.push([b,C])):R[D][1]=C,this}Vn.prototype.clear=Ok,Vn.prototype.delete=Lk,Vn.prototype.get=Ik,Vn.prototype.has=Dk,Vn.prototype.set=jk;function Do(b){var C=-1,R=b==null?0:b.length;for(this.clear();++C1?R[ie-1]:void 0,Pe=ie>2?R[2]:void 0;for(be=b.length>3&&typeof be=="function"?(ie--,be):void 0,Pe&&pC(R[0],R[1],Pe)&&(be=ie<3?void 0:be,ie=1),C=Object(C);++D-1&&b%1==0&&b0){if(++C>=o)return arguments[0]}else C=0;return b.apply(void 0,arguments)}}function SC(b){if(b!=null){try{return Zr.call(b)}catch{}try{return b+""}catch{}}return""}function Xa(b,C){return b===C||b!==b&&C!==C}var od=g0(function(){return arguments}())?g0:function(b){return Xi(b)&&qt.call(b,"callee")&&!Ck.call(b,"callee")},id=Array.isArray;function sd(b){return b!=null&&S0(b.length)&&!ad(b)}function wC(b){return Xi(b)&&sd(b)}var x0=_k||PC;function ad(b){if(!no(b))return!1;var C=Ga(b);return C==p||C==m||C==u||C==v}function S0(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function no(b){var C=typeof b;return b!=null&&(C=="object"||C=="function")}function Xi(b){return b!=null&&typeof b=="object"}function kC(b){if(!Xi(b)||Ga(b)!=h)return!1;var C=f0(b);if(C===null)return!0;var R=qt.call(C,"constructor")&&C.constructor;return typeof R=="function"&&R instanceof R&&Zr.call(R)==Va}var w0=Nn?ne(Nn):Jk;function CC(b){return lC(b,k0(b))}function k0(b){return sd(b)?qk(b,!0):eC(b)}var EC=uC(function(b,C,R,D){v0(b,C,R,D)});function _C(b){return function(){return b}}function C0(b){return b}function PC(){return!1}e.exports=EC})(Mu,Mu.exports);var bP=Mu.exports;const rn=th(bP);var xP=e=>/!(important)?$/.test(e),Gg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,SP=(e,t)=>n=>{const r=String(t),o=xP(r),i=Gg(r),s=e?`${e}.${i}`:i;let a=_t(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Gg(a),o?`${a} !important`:a};function am(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=SP(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var ml=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Qt(e,t){return n=>{const r={property:n,scale:e};return r.transform=am({scale:e,transform:t}),r}}var wP=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function kP(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:wP(t),transform:n?am({scale:n,compose:r}):r}}var cS=["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 CP(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...cS].join(" ")}function EP(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...cS].join(" ")}var _P={"--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(" ")},PP={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 TP(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 AP={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},vp={"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"},RP=new Set(Object.values(vp)),yp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),$P=e=>e.trim();function MP(e,t){if(e==null||yp.has(e))return e;if(!(bp(e)||yp.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map($P).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in vp?vp[l]:l;u.unshift(c);const d=u.map(f=>{if(RP.has(f))return f;const p=f.indexOf(" "),[m,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=bp(y)?y:y&&y.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return w?[h,...Array.isArray(w)?w:[w]].join(" "):h});return`${a}(${d.join(", ")})`}var bp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),zP=(e,t)=>MP(e,t??{});function OP(e){return/^var\(--.+\)$/.test(e)}var LP=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},En=e=>t=>`${e}(${t})`,ue={filter(e){return e!=="auto"?e:_P},backdropFilter(e){return e!=="auto"?e:PP},ring(e){return TP(ue.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?CP():e==="auto-gpu"?EP():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=LP(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(OP(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:zP,blur:En("blur"),opacity:En("opacity"),brightness:En("brightness"),contrast:En("contrast"),dropShadow:En("drop-shadow"),grayscale:En("grayscale"),hueRotate:En("hue-rotate"),invert:En("invert"),saturate:En("saturate"),sepia:En("sepia"),bgImage(e){return e==null||bp(e)||yp.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=AP[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},E={borderWidths:Qt("borderWidths"),borderStyles:Qt("borderStyles"),colors:Qt("colors"),borders:Qt("borders"),gradients:Qt("gradients",ue.gradient),radii:Qt("radii",ue.px),space:Qt("space",ml(ue.vh,ue.px)),spaceT:Qt("space",ml(ue.vh,ue.px)),degreeT(e){return{property:e,transform:ue.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:am({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Qt("sizes",ml(ue.vh,ue.px)),sizesT:Qt("sizes",ml(ue.vh,ue.fraction)),shadows:Qt("shadows"),logical:kP,blur:Qt("blur",ue.blur)},Vl={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ue.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:ue.bgClip}};Object.assign(Vl,{bgImage:Vl.backgroundImage,bgImg:Vl.backgroundImage});var ce={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ce,{rounded:ce.borderRadius,roundedTop:ce.borderTopRadius,roundedTopLeft:ce.borderTopLeftRadius,roundedTopRight:ce.borderTopRightRadius,roundedTopStart:ce.borderStartStartRadius,roundedTopEnd:ce.borderStartEndRadius,roundedBottom:ce.borderBottomRadius,roundedBottomLeft:ce.borderBottomLeftRadius,roundedBottomRight:ce.borderBottomRightRadius,roundedBottomStart:ce.borderEndStartRadius,roundedBottomEnd:ce.borderEndEndRadius,roundedLeft:ce.borderLeftRadius,roundedRight:ce.borderRightRadius,roundedStart:ce.borderInlineStartRadius,roundedEnd:ce.borderInlineEndRadius,borderStart:ce.borderInlineStart,borderEnd:ce.borderInlineEnd,borderTopStartRadius:ce.borderStartStartRadius,borderTopEndRadius:ce.borderStartEndRadius,borderBottomStartRadius:ce.borderEndStartRadius,borderBottomEndRadius:ce.borderEndEndRadius,borderStartRadius:ce.borderInlineStartRadius,borderEndRadius:ce.borderInlineEndRadius,borderStartWidth:ce.borderInlineStartWidth,borderEndWidth:ce.borderInlineEndWidth,borderStartColor:ce.borderInlineStartColor,borderEndColor:ce.borderInlineEndColor,borderStartStyle:ce.borderInlineStartStyle,borderEndStyle:ce.borderInlineEndStyle});var IP={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke")},xp={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(xp,{shadow:xp.boxShadow});var DP={filter:{transform:ue.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",ue.brightness),contrast:E.propT("--chakra-contrast",ue.contrast),hueRotate:E.degreeT("--chakra-hue-rotate"),invert:E.propT("--chakra-invert",ue.invert),saturate:E.propT("--chakra-saturate",ue.saturate),dropShadow:E.propT("--chakra-drop-shadow",ue.dropShadow),backdropFilter:{transform:ue.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",ue.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",ue.contrast),backdropHueRotate:E.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:E.propT("--chakra-backdrop-invert",ue.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",ue.saturate)},zu={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ue.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(zu,{flexDir:zu.flexDirection});var dS={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.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},jP={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ue.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},Jt={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",ue.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Jt,{w:Jt.width,h:Jt.height,minW:Jt.minWidth,maxW:Jt.maxWidth,minH:Jt.minHeight,maxH:Jt.maxHeight,overscroll:Jt.overscrollBehavior,overscrollX:Jt.overscrollBehaviorX,overscrollY:Jt.overscrollBehaviorY});var FP={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")};function NP(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},VP=BP(NP),HP={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},WP={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},jd=(e,t,n)=>{const r={},o=VP(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},UP={srOnly:{transform(e){return e===!0?HP:e==="focusable"?WP:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>jd(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>jd(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>jd(t,e,n)}},Ms={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ms,{insetStart:Ms.insetInlineStart,insetEnd:Ms.insetInlineEnd});var GP={ring:{transform:ue.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},Ee={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(Ee,{m:Ee.margin,mt:Ee.marginTop,mr:Ee.marginRight,me:Ee.marginInlineEnd,marginEnd:Ee.marginInlineEnd,mb:Ee.marginBottom,ml:Ee.marginLeft,ms:Ee.marginInlineStart,marginStart:Ee.marginInlineStart,mx:Ee.marginX,my:Ee.marginY,p:Ee.padding,pt:Ee.paddingTop,py:Ee.paddingY,px:Ee.paddingX,pb:Ee.paddingBottom,pl:Ee.paddingLeft,ps:Ee.paddingInlineStart,paddingStart:Ee.paddingInlineStart,pr:Ee.paddingRight,pe:Ee.paddingInlineEnd,paddingEnd:Ee.paddingInlineEnd});var KP={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},XP={clipPath:!0,transform:E.propT("transform",ue.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},qP={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},YP={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",ue.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.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"}},QP={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function fS(e){return _t(e)&&e.reference?e.reference:String(e)}var Pc=(e,...t)=>t.map(fS).join(` ${e} `).replace(/calc/g,""),Kg=(...e)=>`calc(${Pc("+",...e)})`,Xg=(...e)=>`calc(${Pc("-",...e)})`,Sp=(...e)=>`calc(${Pc("*",...e)})`,qg=(...e)=>`calc(${Pc("/",...e)})`,Yg=e=>{const t=fS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sp(t,-1)},lo=Object.assign(e=>({add:(...t)=>lo(Kg(e,...t)),subtract:(...t)=>lo(Xg(e,...t)),multiply:(...t)=>lo(Sp(e,...t)),divide:(...t)=>lo(qg(e,...t)),negate:()=>lo(Yg(e)),toString:()=>e.toString()}),{add:Kg,subtract:Xg,multiply:Sp,divide:qg,negate:Yg});function ZP(e,t="-"){return e.replace(/\s+/g,t)}function JP(e){const t=ZP(e.toString());return t4(e4(t))}function e4(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function t4(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function n4(e,t=""){return[t,e].filter(Boolean).join("-")}function r4(e,t){return`var(${e}${t?`, ${t}`:""})`}function o4(e,t=""){return JP(`--${n4(e,t)}`)}function H(e,t,n){const r=o4(e,n);return{variable:r,reference:r4(r,t)}}function i4(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=H(`${e}-${o}`,i);continue}n[r]=H(`${e}-${r}`)}return n}function s4(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function a4(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function wp(e){if(e==null)return e;const{unitless:t}=a4(e);return t||typeof e=="number"?`${e}px`:e}var pS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,lm=e=>Object.fromEntries(Object.entries(e).sort(pS));function Qg(e){const t=lm(e);return Object.assign(Object.values(t),t)}function l4(e){const t=Object.keys(lm(e));return new Set(t)}function Zg(e){var t;if(!e)return e;e=(t=wp(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function gs(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${wp(e)})`),t&&n.push("and",`(max-width: ${wp(t)})`),n.join(" ")}function u4(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=Qg(e),r=Object.entries(e).sort(pS).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Zg(d):void 0,{_minW:Zg(a),breakpoint:s,minW:a,maxW:d,maxWQuery:gs(null,d),minWQuery:gs(a),minMaxQuery:gs(a,d)}}),o=l4(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:lm(e),asArray:Qg(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>gs(s)).slice(1)],toArrayValue(s){if(!_t(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;s4(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var Je={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},gr=e=>hS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Hn=e=>hS(t=>e(t,"~ &"),"[data-peer]",".peer"),hS=(e,...t)=>t.map(e).join(", "),Tc={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:gr(Je.hover),_peerHover:Hn(Je.hover),_groupFocus:gr(Je.focus),_peerFocus:Hn(Je.focus),_groupFocusVisible:gr(Je.focusVisible),_peerFocusVisible:Hn(Je.focusVisible),_groupActive:gr(Je.active),_peerActive:Hn(Je.active),_groupDisabled:gr(Je.disabled),_peerDisabled:Hn(Je.disabled),_groupInvalid:gr(Je.invalid),_peerInvalid:Hn(Je.invalid),_groupChecked:gr(Je.checked),_peerChecked:Hn(Je.checked),_groupFocusWithin:gr(Je.focusWithin),_peerFocusWithin:Hn(Je.focusWithin),_peerPlaceholderShown:Hn(Je.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]"},mS=Object.keys(Tc);function Jg(e,t){return H(String(e).replace(/\./g,"-"),void 0,t)}function c4(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=Jg(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,y=`${p}.-${m.join(".")}`,w=lo.negate(a),g=lo.negate(u);r[y]={value:w,var:l,varRef:g}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:w}=Jg(m,t==null?void 0:t.cssVarPrefix);return w},d=_t(a)?a:{default:a};n=rn(n,Object.entries(d).reduce((f,[p,m])=>{var y,w;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(w=(y=Tc)==null?void 0:y[p])!=null?w:p;return f[h]={[l]:g},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function d4(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function f4(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function p4(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function ev(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(p4(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(r!=null&&r(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var h4=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function m4(e){return f4(e,h4)}function g4(e){return e.semanticTokens}function v4(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var y4=e=>mS.includes(e)||e==="default";function b4({tokens:e,semanticTokens:t}){const n={};return ev(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),ev(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(y4)}),n}function x4(e){var t;const n=v4(e),r=m4(n),o=g4(n),i=b4({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=c4(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:u4(n.breakpoints)}),n}var um=rn({},Vl,ce,IP,zu,Jt,DP,GP,jP,dS,UP,Ms,xp,Ee,QP,YP,KP,XP,FP,qP);Object.assign({},Ee,Jt,zu,dS,Ms);var S4=[...Object.keys(um),...mS],w4={...um,...Tc},k4=e=>e in w4,C4=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Yn(e[s],t);if(a==null)continue;if(a=_t(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!_4(t),T4=(e,t)=>{var n,r;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[s,a]=E4(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function A4(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Yn(i,r),d=C4(c)(r);let f={};for(let p in d){const m=d[p];let y=Yn(m,r);p in n&&(p=n[p]),P4(p,y)&&(y=T4(r,y));let w=t[p];if(w===!0&&(w={property:p}),_t(y)){f[p]=(a=f[p])!=null?a:{},f[p]=rn({},f[p],o(y,!0));continue}let g=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,y,r,c))!=null?u:y;g=w!=null&&w.processResult?o(g,!0):g;const h=Yn(w==null?void 0:w.property,r);if(!s&&(w!=null&&w.static)){const v=Yn(w.static,r);f=rn({},f,v)}if(h&&Array.isArray(h)){for(const v of h)f[v]=g;continue}if(h){h==="&"&&_t(g)?f=rn({},f,g):f[h]=g;continue}if(_t(g)){f=rn({},f,g);continue}f[p]=g}return f};return o}var gS=e=>t=>A4({theme:t,pseudos:Tc,configs:um})(e);function we(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function R4(e,t){if(Array.isArray(e))return e;if(_t(e))return t(e);if(e!=null)return[e]}function $4(e,t){for(let n=t+1;n{rn(u,{[v]:f?h[v]:{[g]:h[v]}})});continue}if(!p){f?rn(u,h):u[g]=h;continue}u[g]=h}}return u}}function z4(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=M4(i);return rn({},Yn((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function bt(e){return d4(e,["styleConfig","size","variant","colorScheme"])}var O4=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function L4(e){return _t(e)?O4.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var I4={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"},D4={"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)"},j4={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},F4={property:I4,easing:D4,duration:j4},N4=F4,B4={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},V4=B4,H4={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},W4=H4,U4={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},G4=U4,K4={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"}},X4=K4,q4={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Y4=q4,Q4={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"},Z4=Q4,J4={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},e3=J4,t3={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"}},vS=t3,yS={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"},n3={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"},r3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},o3={...yS,...n3,container:r3},bS=o3,i3={breakpoints:G4,zIndices:V4,radii:Y4,blur:e3,colors:X4,...vS,sizes:bS,shadows:Z4,space:yS,borders:W4,transition:N4},{defineMultiStyleConfig:s3,definePartsStyle:vs}=we(["stepper","step","title","description","indicator","separator","icon","number"]),Gn=H("stepper-indicator-size"),ni=H("stepper-icon-size"),ri=H("stepper-title-font-size"),ys=H("stepper-description-font-size"),is=H("stepper-accent-color"),a3=vs(({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"},[is.variable]:`colors.${e}.500`,_dark:{[is.variable]:`colors.${e}.200`}},title:{fontSize:ri.reference,fontWeight:"medium"},description:{fontSize:ys.reference,color:"chakra-subtle-text"},number:{fontSize:ri.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:ni.reference,height:ni.reference},indicator:{flexShrink:0,borderRadius:"full",width:Gn.reference,height:Gn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:is.reference},"&[data-status=complete]":{bg:is.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:is.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Gn.reference} - 8px)`,top:`calc(${Gn.reference} + 4px)`,insetStart:`calc(${Gn.reference} / 2 - 1px)`}}})),l3=s3({baseStyle:a3,sizes:{xs:vs({stepper:{[Gn.variable]:"sizes.4",[ni.variable]:"sizes.3",[ri.variable]:"fontSizes.xs",[ys.variable]:"fontSizes.xs"}}),sm:vs({stepper:{[Gn.variable]:"sizes.6",[ni.variable]:"sizes.4",[ri.variable]:"fontSizes.sm",[ys.variable]:"fontSizes.xs"}}),md:vs({stepper:{[Gn.variable]:"sizes.8",[ni.variable]:"sizes.5",[ri.variable]:"fontSizes.md",[ys.variable]:"fontSizes.sm"}}),lg:vs({stepper:{[Gn.variable]:"sizes.10",[ni.variable]:"sizes.6",[ri.variable]:"fontSizes.lg",[ys.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function me(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return me(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return me(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var u3=me("accordion").parts("root","container","button","panel").extend("icon"),c3=me("alert").parts("title","description","container").extend("icon","spinner"),d3=me("avatar").parts("label","badge","container").extend("excessLabel","group"),f3=me("breadcrumb").parts("link","item","container").extend("separator");me("button").parts();var p3=me("checkbox").parts("control","icon","container").extend("label");me("progress").parts("track","filledTrack").extend("label");var h3=me("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),m3=me("editable").parts("preview","input","textarea"),g3=me("form").parts("container","requiredIndicator","helperText"),v3=me("formError").parts("text","icon"),y3=me("input").parts("addon","field","element","group"),b3=me("list").parts("container","item","icon"),x3=me("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),S3=me("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),w3=me("numberinput").parts("root","field","stepperGroup","stepper");me("pininput").parts("field");var k3=me("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),C3=me("progress").parts("label","filledTrack","track"),E3=me("radio").parts("container","control","label"),_3=me("select").parts("field","icon"),P3=me("slider").parts("container","track","thumb","filledTrack","mark"),T3=me("stat").parts("container","label","helpText","number","icon"),A3=me("switch").parts("container","track","thumb"),R3=me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),$3=me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),M3=me("tag").parts("container","label","closeButton"),z3=me("card").parts("container","header","body","footer");function ho(e,t,n){return Math.min(Math.max(e,n),t)}class O3 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var bs=O3;function cm(e){if(typeof e!="string")throw new bs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=V3.test(e)?D3(e):e;const n=j3.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(fa(a,2),16)),parseInt(fa(s[3]||"f",2),16)/255]}const r=F3.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=N3.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=B3.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(ho(0,100,a)!==a)throw new bs(e);if(ho(0,100,l)!==l)throw new bs(e);return[...H3(s,a,l),Number.isNaN(u)?1:u]}throw new bs(e)}function L3(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const tv=e=>parseInt(e.replace(/_/g,""),36),I3="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=tv(t.substring(0,3)),r=tv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function D3(e){const t=e.toLowerCase().trim(),n=I3[L3(t)];if(!n)throw new bs(e);return`#${n}`}const fa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),j3=new RegExp(`^#${fa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),F3=new RegExp(`^#${fa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),N3=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),B3=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,V3=/^[a-z]+$/i,nv=e=>Math.round(e*255),H3=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(nv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(nv)};function W3(e,t,n,r){return`rgba(${ho(0,255,e).toFixed()}, ${ho(0,255,t).toFixed()}, ${ho(0,255,n).toFixed()}, ${parseFloat(ho(0,1,r).toFixed(3))})`}function U3(e,t){const[n,r,o,i]=cm(e);return W3(n,r,o,i-t)}function G3(e){const[t,n,r,o]=cm(e);let i=s=>{const a=ho(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function K3(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ht=(e,t,n)=>{const r=K3(e,`colors.${t}`,t);try{return G3(r),r}catch{return n??"#000000"}},q3=e=>{const[t,n,r]=cm(e);return(t*299+n*587+r*114)/1e3},Y3=e=>t=>{const n=ht(t,e);return q3(n)<128?"dark":"light"},Q3=e=>t=>Y3(e)(t)==="dark",$i=(e,t)=>n=>{const r=ht(n,e);return U3(r,1-t)};function rv(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 Z3=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function J3(e){const t=Z3();return!e||X3(e)?t:e.string&&e.colors?tT(e.string,e.colors):e.string&&!e.colors?eT(e.string):e.colors&&!e.string?nT(e.colors):t}function eT(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function tT(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function dm(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function xS(e){return _t(e)&&e.reference?e.reference:String(e)}var Ac=(e,...t)=>t.map(xS).join(` ${e} `).replace(/calc/g,""),ov=(...e)=>`calc(${Ac("+",...e)})`,iv=(...e)=>`calc(${Ac("-",...e)})`,kp=(...e)=>`calc(${Ac("*",...e)})`,sv=(...e)=>`calc(${Ac("/",...e)})`,av=e=>{const t=xS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:kp(t,-1)},Kn=Object.assign(e=>({add:(...t)=>Kn(ov(e,...t)),subtract:(...t)=>Kn(iv(e,...t)),multiply:(...t)=>Kn(kp(e,...t)),divide:(...t)=>Kn(sv(e,...t)),negate:()=>Kn(av(e)),toString:()=>e.toString()}),{add:ov,subtract:iv,multiply:kp,divide:sv,negate:av});function rT(e){return!Number.isInteger(parseFloat(e.toString()))}function oT(e,t="-"){return e.replace(/\s+/g,t)}function SS(e){const t=oT(e.toString());return t.includes("\\.")?e:rT(e)?t.replace(".","\\."):e}function iT(e,t=""){return[t,SS(e)].filter(Boolean).join("-")}function sT(e,t){return`var(${SS(e)}${t?`, ${t}`:""})`}function aT(e,t=""){return`--${iT(e,t)}`}function Ke(e,t){const n=aT(e,t==null?void 0:t.prefix);return{variable:n,reference:sT(n,lT(t==null?void 0:t.fallback))}}function lT(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:uT,definePartsStyle:Hl}=we(A3.keys),zs=Ke("switch-track-width"),yo=Ke("switch-track-height"),Fd=Ke("switch-track-diff"),cT=Kn.subtract(zs,yo),Cp=Ke("switch-thumb-x"),ss=Ke("switch-bg"),dT=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[zs.reference],height:[yo.reference],transitionProperty:"common",transitionDuration:"fast",[ss.variable]:"colors.gray.300",_dark:{[ss.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ss.variable]:`colors.${t}.500`,_dark:{[ss.variable]:`colors.${t}.200`}},bg:ss.reference}},fT={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[yo.reference],height:[yo.reference],_checked:{transform:`translateX(${Cp.reference})`}},pT=Hl(e=>({container:{[Fd.variable]:cT,[Cp.variable]:Fd.reference,_rtl:{[Cp.variable]:Kn(Fd).negate().toString()}},track:dT(e),thumb:fT})),hT={sm:Hl({container:{[zs.variable]:"1.375rem",[yo.variable]:"sizes.3"}}),md:Hl({container:{[zs.variable]:"1.875rem",[yo.variable]:"sizes.4"}}),lg:Hl({container:{[zs.variable]:"2.875rem",[yo.variable]:"sizes.6"}})},mT=uT({baseStyle:pT,sizes:hT,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gT,definePartsStyle:bi}=we(R3.keys),vT=bi({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"}}),Ou={"&[data-is-numeric=true]":{textAlign:"end"}},yT=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},caption:{color:U("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),bT=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},caption:{color:U("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e)},td:{background:U(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xT={simple:yT,striped:bT,unstyled:{}},ST={sm:bi({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:bi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:bi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},wT=gT({baseStyle:vT,variants:xT,sizes:ST,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),St=H("tabs-color"),yn=H("tabs-bg"),gl=H("tabs-border-color"),{defineMultiStyleConfig:kT,definePartsStyle:Ln}=we($3.keys),CT=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},ET=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}}},_T=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},PT={p:4},TT=Ln(e=>({root:CT(e),tab:ET(e),tablist:_T(e),tabpanel:PT})),AT={sm:Ln({tab:{py:1,px:4,fontSize:"sm"}}),md:Ln({tab:{fontSize:"md",py:2,px:4}}),lg:Ln({tab:{fontSize:"lg",py:3,px:4}})},RT=Ln(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[St.variable]:`colors.${t}.600`,_dark:{[St.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yn.variable]:"colors.gray.200",_dark:{[yn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:St.reference,bg:yn.reference}}}),$T=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[gl.variable]:"transparent",_selected:{[St.variable]:`colors.${t}.600`,[gl.variable]:"colors.white",_dark:{[St.variable]:`colors.${t}.300`,[gl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:gl.reference},color:St.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),MT=Ln(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yn.variable]:"colors.gray.50",_dark:{[yn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yn.variable]:"colors.white",[St.variable]:`colors.${t}.600`,_dark:{[yn.variable]:"colors.gray.800",[St.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:St.reference,bg:yn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zT=Ln(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ht(n,`${t}.700`),bg:ht(n,`${t}.100`)}}}}),OT=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[St.variable]:"colors.gray.600",_dark:{[St.variable]:"inherit"},_selected:{[St.variable]:"colors.white",[yn.variable]:`colors.${t}.600`,_dark:{[St.variable]:"colors.gray.800",[yn.variable]:`colors.${t}.300`}},color:St.reference,bg:yn.reference}}}),LT=Ln({}),IT={line:RT,enclosed:$T,"enclosed-colored":MT,"soft-rounded":zT,"solid-rounded":OT,unstyled:LT},DT=kT({baseStyle:TT,sizes:AT,variants:IT,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Fe=i4("badge",["bg","color","shadow"]),jT={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},FT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.500`,.6)(n);return{[Fe.bg.variable]:`colors.${t}.500`,[Fe.color.variable]:"colors.white",_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:"colors.whiteAlpha.800"}}},NT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.16)(n);return{[Fe.bg.variable]:`colors.${t}.100`,[Fe.color.variable]:`colors.${t}.800`,_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:`colors.${t}.200`}}},BT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.8)(n);return{[Fe.color.variable]:`colors.${t}.500`,_dark:{[Fe.color.variable]:r},[Fe.shadow.variable]:`inset 0 0 0px 1px ${Fe.color.reference}`}},VT={solid:FT,subtle:NT,outline:BT},Os={baseStyle:jT,variants:VT,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:HT,definePartsStyle:bo}=we(M3.keys),lv=H("tag-bg"),uv=H("tag-color"),Nd=H("tag-shadow"),Wl=H("tag-min-height"),Ul=H("tag-min-width"),Gl=H("tag-font-size"),Kl=H("tag-padding-inline"),WT={fontWeight:"medium",lineHeight:1.2,outline:0,[uv.variable]:Fe.color.reference,[lv.variable]:Fe.bg.reference,[Nd.variable]:Fe.shadow.reference,color:uv.reference,bg:lv.reference,boxShadow:Nd.reference,borderRadius:"md",minH:Wl.reference,minW:Ul.reference,fontSize:Gl.reference,px:Kl.reference,_focusVisible:{[Nd.variable]:"shadows.outline"}},UT={lineHeight:1.2,overflow:"visible"},GT={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}},KT=bo({container:WT,label:UT,closeButton:GT}),XT={sm:bo({container:{[Wl.variable]:"sizes.5",[Ul.variable]:"sizes.5",[Gl.variable]:"fontSizes.xs",[Kl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:bo({container:{[Wl.variable]:"sizes.6",[Ul.variable]:"sizes.6",[Gl.variable]:"fontSizes.sm",[Kl.variable]:"space.2"}}),lg:bo({container:{[Wl.variable]:"sizes.8",[Ul.variable]:"sizes.8",[Gl.variable]:"fontSizes.md",[Kl.variable]:"space.3"}})},qT={subtle:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.subtle(e)}}),solid:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.solid(e)}}),outline:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.outline(e)}})},YT=HT({variants:qT,baseStyle:KT,sizes:XT,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Qn,defineMultiStyleConfig:QT}=we(y3.keys),oi=H("input-height"),ii=H("input-font-size"),si=H("input-padding"),ai=H("input-border-radius"),ZT=Qn({addon:{height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference},field:{width:"100%",height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vr={lg:{[ii.variable]:"fontSizes.lg",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.12"},md:{[ii.variable]:"fontSizes.md",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.10"},sm:{[ii.variable]:"fontSizes.sm",[si.variable]:"space.3",[ai.variable]:"radii.sm",[oi.variable]:"sizes.8"},xs:{[ii.variable]:"fontSizes.xs",[si.variable]:"space.2",[ai.variable]:"radii.sm",[oi.variable]:"sizes.6"}},JT={lg:Qn({field:vr.lg,group:vr.lg}),md:Qn({field:vr.md,group:vr.md}),sm:Qn({field:vr.sm,group:vr.sm}),xs:Qn({field:vr.xs,group:vr.xs})};function fm(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||U("blue.500","blue.300")(e),errorBorderColor:n||U("red.500","red.300")(e)}}var eA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:U("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r),boxShadow:`0 0 0 1px ${ht(t,r)}`},_focusVisible:{zIndex:1,borderColor:ht(t,n),boxShadow:`0 0 0 1px ${ht(t,n)}`}},addon:{border:"1px solid",borderColor:U("inherit","whiteAlpha.50")(e),bg:U("gray.100","whiteAlpha.300")(e)}}}),tA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e),_hover:{bg:U("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r)},_focusVisible:{bg:"transparent",borderColor:ht(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e)}}}),nA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r),boxShadow:`0px 1px 0px 0px ${ht(t,r)}`},_focusVisible:{borderColor:ht(t,n),boxShadow:`0px 1px 0px 0px ${ht(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),rA=Qn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),oA={outline:eA,filled:tA,flushed:nA,unstyled:rA},pe=QT({baseStyle:ZT,sizes:JT,variants:oA,defaultProps:{size:"md",variant:"outline"}}),cv,iA={...(cv=pe.baseStyle)==null?void 0:cv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},dv,fv,sA={outline:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(fv=(dv=pe.variants)==null?void 0:dv.unstyled.field)!=null?fv:{}},pv,hv,mv,gv,vv,yv,bv,xv,aA={xs:(hv=(pv=pe.sizes)==null?void 0:pv.xs.field)!=null?hv:{},sm:(gv=(mv=pe.sizes)==null?void 0:mv.sm.field)!=null?gv:{},md:(yv=(vv=pe.sizes)==null?void 0:vv.md.field)!=null?yv:{},lg:(xv=(bv=pe.sizes)==null?void 0:bv.lg.field)!=null?xv:{}},lA={baseStyle:iA,sizes:aA,variants:sA,defaultProps:{size:"md",variant:"outline"}},vl=Ke("tooltip-bg"),Bd=Ke("tooltip-fg"),uA=Ke("popper-arrow-bg"),cA={bg:vl.reference,color:Bd.reference,[vl.variable]:"colors.gray.700",[Bd.variable]:"colors.whiteAlpha.900",_dark:{[vl.variable]:"colors.gray.300",[Bd.variable]:"colors.gray.900"},[uA.variable]:vl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},dA={baseStyle:cA},{defineMultiStyleConfig:fA,definePartsStyle:xs}=we(C3.keys),pA=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=U(rv(),rv("1rem","rgba(0,0,0,0.1)"))(e),s=U(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${ht(n,s)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},hA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},mA=e=>({bg:U("gray.100","whiteAlpha.300")(e)}),gA=e=>({transitionProperty:"common",transitionDuration:"slow",...pA(e)}),vA=xs(e=>({label:hA,filledTrack:gA(e),track:mA(e)})),yA={xs:xs({track:{h:"1"}}),sm:xs({track:{h:"2"}}),md:xs({track:{h:"3"}}),lg:xs({track:{h:"4"}})},bA=fA({sizes:yA,baseStyle:vA,defaultProps:{size:"md",colorScheme:"blue"}}),xA=e=>typeof e=="function";function gt(e,...t){return xA(e)?e(...t):e}var{definePartsStyle:Xl,defineMultiStyleConfig:SA}=we(p3.keys),Ls=H("checkbox-size"),wA=e=>{const{colorScheme:t}=e;return{w:Ls.reference,h:Ls.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e),_hover:{bg:U(`${t}.600`,`${t}.300`)(e),borderColor:U(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:U("gray.200","transparent")(e),bg:U("gray.200","whiteAlpha.300")(e),color:U("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e)},_disabled:{bg:U("gray.100","whiteAlpha.100")(e),borderColor:U("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:U("red.500","red.300")(e)}}},kA={_disabled:{cursor:"not-allowed"}},CA={userSelect:"none",_disabled:{opacity:.4}},EA={transitionProperty:"transform",transitionDuration:"normal"},_A=Xl(e=>({icon:EA,container:kA,control:gt(wA,e),label:CA})),PA={sm:Xl({control:{[Ls.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Xl({control:{[Ls.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Xl({control:{[Ls.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Lu=SA({baseStyle:_A,sizes:PA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:TA,definePartsStyle:ql}=we(E3.keys),AA=e=>{var t;const n=(t=gt(Lu.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},RA=ql(e=>{var t,n,r,o;return{label:(n=(t=Lu).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Lu).baseStyle)==null?void 0:o.call(r,e).container,control:AA(e)}}),$A={md:ql({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ql({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ql({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},MA=TA({baseStyle:RA,sizes:$A,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zA,definePartsStyle:OA}=we(_3.keys),yl=H("select-bg"),Sv,LA={...(Sv=pe.baseStyle)==null?void 0:Sv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:yl.reference,[yl.variable]:"colors.white",_dark:{[yl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:yl.reference}},IA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},DA=OA({field:LA,icon:IA}),bl={paddingInlineEnd:"8"},wv,kv,Cv,Ev,_v,Pv,Tv,Av,jA={lg:{...(wv=pe.sizes)==null?void 0:wv.lg,field:{...(kv=pe.sizes)==null?void 0:kv.lg.field,...bl}},md:{...(Cv=pe.sizes)==null?void 0:Cv.md,field:{...(Ev=pe.sizes)==null?void 0:Ev.md.field,...bl}},sm:{...(_v=pe.sizes)==null?void 0:_v.sm,field:{...(Pv=pe.sizes)==null?void 0:Pv.sm.field,...bl}},xs:{...(Tv=pe.sizes)==null?void 0:Tv.xs,field:{...(Av=pe.sizes)==null?void 0:Av.xs.field,...bl},icon:{insetEnd:"1"}}},FA=zA({baseStyle:DA,sizes:jA,variants:pe.variants,defaultProps:pe.defaultProps}),Vd=H("skeleton-start-color"),Hd=H("skeleton-end-color"),NA={[Vd.variable]:"colors.gray.100",[Hd.variable]:"colors.gray.400",_dark:{[Vd.variable]:"colors.gray.800",[Hd.variable]:"colors.gray.600"},background:Vd.reference,borderColor:Hd.reference,opacity:.7,borderRadius:"sm"},BA={baseStyle:NA},Wd=H("skip-link-bg"),VA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Wd.variable]:"colors.white",_dark:{[Wd.variable]:"colors.gray.700"},bg:Wd.reference}},HA={baseStyle:VA},{defineMultiStyleConfig:WA,definePartsStyle:Rc}=we(P3.keys),pa=H("slider-thumb-size"),ha=H("slider-track-size"),_r=H("slider-bg"),UA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...dm({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},GA=e=>({...dm({orientation:e.orientation,horizontal:{h:ha.reference},vertical:{w:ha.reference}}),overflow:"hidden",borderRadius:"sm",[_r.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.whiteAlpha.200"},_disabled:{[_r.variable]:"colors.gray.300",_dark:{[_r.variable]:"colors.whiteAlpha.300"}},bg:_r.reference}),KA=e=>{const{orientation:t}=e;return{...dm({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:pa.reference,h:pa.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"}}},XA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[_r.variable]:`colors.${t}.500`,_dark:{[_r.variable]:`colors.${t}.200`},bg:_r.reference}},qA=Rc(e=>({container:UA(e),track:GA(e),thumb:KA(e),filledTrack:XA(e)})),YA=Rc({container:{[pa.variable]:"sizes.4",[ha.variable]:"sizes.1"}}),QA=Rc({container:{[pa.variable]:"sizes.3.5",[ha.variable]:"sizes.1"}}),ZA=Rc({container:{[pa.variable]:"sizes.2.5",[ha.variable]:"sizes.0.5"}}),JA={lg:YA,md:QA,sm:ZA},eR=WA({baseStyle:qA,sizes:JA,defaultProps:{size:"md",colorScheme:"blue"}}),uo=Ke("spinner-size"),tR={width:[uo.reference],height:[uo.reference]},nR={xs:{[uo.variable]:"sizes.3"},sm:{[uo.variable]:"sizes.4"},md:{[uo.variable]:"sizes.6"},lg:{[uo.variable]:"sizes.8"},xl:{[uo.variable]:"sizes.12"}},rR={baseStyle:tR,sizes:nR,defaultProps:{size:"md"}},{defineMultiStyleConfig:oR,definePartsStyle:wS}=we(T3.keys),iR={fontWeight:"medium"},sR={opacity:.8,marginBottom:"2"},aR={verticalAlign:"baseline",fontWeight:"semibold"},lR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},uR=wS({container:{},label:iR,helpText:sR,number:aR,icon:lR}),cR={md:wS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},dR=oR({baseStyle:uR,sizes:cR,defaultProps:{size:"md"}}),Ud=H("kbd-bg"),fR={[Ud.variable]:"colors.gray.100",_dark:{[Ud.variable]:"colors.whiteAlpha.100"},bg:Ud.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},pR={baseStyle:fR},hR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},mR={baseStyle:hR},{defineMultiStyleConfig:gR,definePartsStyle:vR}=we(b3.keys),yR={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},bR=vR({icon:yR}),xR=gR({baseStyle:bR}),{defineMultiStyleConfig:SR,definePartsStyle:wR}=we(x3.keys),Tn=H("menu-bg"),Gd=H("menu-shadow"),kR={[Tn.variable]:"#fff",[Gd.variable]:"shadows.sm",_dark:{[Tn.variable]:"colors.gray.700",[Gd.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Tn.reference,boxShadow:Gd.reference},CR={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Tn.variable]:"colors.gray.100",_dark:{[Tn.variable]:"colors.whiteAlpha.100"}},_active:{[Tn.variable]:"colors.gray.200",_dark:{[Tn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Tn.variable]:"colors.gray.100",_dark:{[Tn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Tn.reference},ER={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},_R={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},PR={opacity:.6},TR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},AR={transitionProperty:"common",transitionDuration:"normal"},RR=wR({button:AR,list:kR,item:CR,groupTitle:ER,icon:_R,command:PR,divider:TR}),$R=SR({baseStyle:RR}),{defineMultiStyleConfig:MR,definePartsStyle:Ep}=we(S3.keys),Kd=H("modal-bg"),Xd=H("modal-shadow"),zR={bg:"blackAlpha.600",zIndex:"modal"},OR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},LR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Kd.variable]:"colors.white",[Xd.variable]:"shadows.lg",_dark:{[Kd.variable]:"colors.gray.700",[Xd.variable]:"shadows.dark-lg"},bg:Kd.reference,boxShadow:Xd.reference}},IR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},DR={position:"absolute",top:"2",insetEnd:"3"},jR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},FR={px:"6",py:"4"},NR=Ep(e=>({overlay:zR,dialogContainer:gt(OR,e),dialog:gt(LR,e),header:IR,closeButton:DR,body:gt(jR,e),footer:FR}));function hn(e){return Ep(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var BR={xs:hn("xs"),sm:hn("sm"),md:hn("md"),lg:hn("lg"),xl:hn("xl"),"2xl":hn("2xl"),"3xl":hn("3xl"),"4xl":hn("4xl"),"5xl":hn("5xl"),"6xl":hn("6xl"),full:hn("full")},VR=MR({baseStyle:NR,sizes:BR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:HR,definePartsStyle:kS}=we(w3.keys),pm=Ke("number-input-stepper-width"),CS=Ke("number-input-input-padding"),WR=Kn(pm).add("0.5rem").toString(),qd=Ke("number-input-bg"),Yd=Ke("number-input-color"),Qd=Ke("number-input-border-color"),UR={[pm.variable]:"sizes.6",[CS.variable]:WR},GR=e=>{var t,n;return(n=(t=gt(pe.baseStyle,e))==null?void 0:t.field)!=null?n:{}},KR={width:pm.reference},XR={borderStart:"1px solid",borderStartColor:Qd.reference,color:Yd.reference,bg:qd.reference,[Yd.variable]:"colors.chakra-body-text",[Qd.variable]:"colors.chakra-border-color",_dark:{[Yd.variable]:"colors.whiteAlpha.800",[Qd.variable]:"colors.whiteAlpha.300"},_active:{[qd.variable]:"colors.gray.200",_dark:{[qd.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},qR=kS(e=>{var t;return{root:UR,field:(t=gt(GR,e))!=null?t:{},stepperGroup:KR,stepper:XR}});function xl(e){var t,n,r;const o=(t=pe.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=vS.fontSizes[s];return kS({field:{...o.field,paddingInlineEnd:CS.reference,verticalAlign:"top"},stepper:{fontSize:Kn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var YR={xs:xl("xs"),sm:xl("sm"),md:xl("md"),lg:xl("lg")},QR=HR({baseStyle:qR,sizes:YR,variants:pe.variants,defaultProps:pe.defaultProps}),Rv,ZR={...(Rv=pe.baseStyle)==null?void 0:Rv.field,textAlign:"center"},JR={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"}},$v,Mv,e6={outline:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Mv=($v=pe.variants)==null?void 0:$v.unstyled.field)!=null?Mv:{}},t6={baseStyle:ZR,sizes:JR,variants:e6,defaultProps:pe.defaultProps},{defineMultiStyleConfig:n6,definePartsStyle:r6}=we(k3.keys),Sl=Ke("popper-bg"),o6=Ke("popper-arrow-bg"),zv=Ke("popper-arrow-shadow-color"),i6={zIndex:10},s6={[Sl.variable]:"colors.white",bg:Sl.reference,[o6.variable]:Sl.reference,[zv.variable]:"colors.gray.200",_dark:{[Sl.variable]:"colors.gray.700",[zv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},a6={px:3,py:2,borderBottomWidth:"1px"},l6={px:3,py:2},u6={px:3,py:2,borderTopWidth:"1px"},c6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},d6=r6({popper:i6,content:s6,header:a6,body:l6,footer:u6,closeButton:c6}),f6=n6({baseStyle:d6}),{definePartsStyle:_p,defineMultiStyleConfig:p6}=we(h3.keys),Zd=H("drawer-bg"),Jd=H("drawer-box-shadow");function No(e){return _p(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var h6={bg:"blackAlpha.600",zIndex:"modal"},m6={display:"flex",zIndex:"modal",justifyContent:"center"},g6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Zd.variable]:"colors.white",[Jd.variable]:"shadows.lg",_dark:{[Zd.variable]:"colors.gray.700",[Jd.variable]:"shadows.dark-lg"},bg:Zd.reference,boxShadow:Jd.reference}},v6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},y6={position:"absolute",top:"2",insetEnd:"3"},b6={px:"6",py:"2",flex:"1",overflow:"auto"},x6={px:"6",py:"4"},S6=_p(e=>({overlay:h6,dialogContainer:m6,dialog:gt(g6,e),header:v6,closeButton:y6,body:b6,footer:x6})),w6={xs:No("xs"),sm:No("md"),md:No("lg"),lg:No("2xl"),xl:No("4xl"),full:No("full")},k6=p6({baseStyle:S6,sizes:w6,defaultProps:{size:"xs"}}),{definePartsStyle:C6,defineMultiStyleConfig:E6}=we(m3.keys),_6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},P6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},T6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},A6=C6({preview:_6,input:P6,textarea:T6}),R6=E6({baseStyle:A6}),{definePartsStyle:$6,defineMultiStyleConfig:M6}=we(g3.keys),xi=H("form-control-color"),z6={marginStart:"1",[xi.variable]:"colors.red.500",_dark:{[xi.variable]:"colors.red.300"},color:xi.reference},O6={mt:"2",[xi.variable]:"colors.gray.600",_dark:{[xi.variable]:"colors.whiteAlpha.600"},color:xi.reference,lineHeight:"normal",fontSize:"sm"},L6=$6({container:{width:"100%",position:"relative"},requiredIndicator:z6,helperText:O6}),I6=M6({baseStyle:L6}),{definePartsStyle:D6,defineMultiStyleConfig:j6}=we(v3.keys),Si=H("form-error-color"),F6={[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},N6={marginEnd:"0.5em",[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference},B6=D6({text:F6,icon:N6}),V6=j6({baseStyle:B6}),H6={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},W6={baseStyle:H6},U6={fontFamily:"heading",fontWeight:"bold"},G6={"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}},K6={baseStyle:U6,sizes:G6,defaultProps:{size:"xl"}},{defineMultiStyleConfig:X6,definePartsStyle:q6}=we(f3.keys),ef=H("breadcrumb-link-decor"),Y6={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ef.reference,[ef.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ef.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Q6=q6({link:Y6}),Z6=X6({baseStyle:Q6}),J6={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"}}},ES=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.100","whiteAlpha.200")(e)},_active:{bg:U("gray.200","whiteAlpha.300")(e)}};const r=$i(`${t}.200`,.12)(n),o=$i(`${t}.200`,.24)(n);return{color:U(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:U(`${t}.50`,r)(e)},_active:{bg:U(`${t}.100`,o)(e)}}},e$=e=>{const{colorScheme:t}=e,n=U("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...gt(ES,e)}},t$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},n$=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=U("gray.100","whiteAlpha.200")(e);return{bg:l,color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:U("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=t$[n])!=null?t:{},a=U(r,`${n}.200`)(e);return{bg:a,color:U(o,"gray.800")(e),_hover:{bg:U(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:U(s,`${n}.400`)(e)}}},r$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:U(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:U(`${t}.700`,`${t}.500`)(e)}}},o$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},i$={ghost:ES,outline:e$,solid:n$,link:r$,unstyled:o$},s$={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"}},a$={baseStyle:J6,variants:i$,sizes:s$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:xo,defineMultiStyleConfig:l$}=we(z3.keys),Iu=H("card-bg"),tr=H("card-padding"),_S=H("card-shadow"),Yl=H("card-radius"),PS=H("card-border-width","0"),TS=H("card-border-color"),u$=xo({container:{[Iu.variable]:"colors.chakra-body-bg",backgroundColor:Iu.reference,boxShadow:_S.reference,borderRadius:Yl.reference,color:"chakra-body-text",borderWidth:PS.reference,borderColor:TS.reference},body:{padding:tr.reference,flex:"1 1 0%"},header:{padding:tr.reference},footer:{padding:tr.reference}}),c$={sm:xo({container:{[Yl.variable]:"radii.base",[tr.variable]:"space.3"}}),md:xo({container:{[Yl.variable]:"radii.md",[tr.variable]:"space.5"}}),lg:xo({container:{[Yl.variable]:"radii.xl",[tr.variable]:"space.7"}})},d$={elevated:xo({container:{[_S.variable]:"shadows.base",_dark:{[Iu.variable]:"colors.gray.700"}}}),outline:xo({container:{[PS.variable]:"1px",[TS.variable]:"colors.chakra-border-color"}}),filled:xo({container:{[Iu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[tr.variable]:0},header:{[tr.variable]:0},footer:{[tr.variable]:0}}},f$=l$({baseStyle:u$,variants:d$,sizes:c$,defaultProps:{variant:"elevated",size:"md"}}),Is=Ke("close-button-size"),as=Ke("close-button-bg"),p$={w:[Is.reference],h:[Is.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[as.variable]:"colors.blackAlpha.100",_dark:{[as.variable]:"colors.whiteAlpha.100"}},_active:{[as.variable]:"colors.blackAlpha.200",_dark:{[as.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:as.reference},h$={lg:{[Is.variable]:"sizes.10",fontSize:"md"},md:{[Is.variable]:"sizes.8",fontSize:"xs"},sm:{[Is.variable]:"sizes.6",fontSize:"2xs"}},m$={baseStyle:p$,sizes:h$,defaultProps:{size:"md"}},{variants:g$,defaultProps:v$}=Os,y$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},b$={baseStyle:y$,variants:g$,defaultProps:v$},x$={w:"100%",mx:"auto",maxW:"prose",px:"4"},S$={baseStyle:x$},w$={opacity:.6,borderColor:"inherit"},k$={borderStyle:"solid"},C$={borderStyle:"dashed"},E$={solid:k$,dashed:C$},_$={baseStyle:w$,variants:E$,defaultProps:{variant:"solid"}},{definePartsStyle:P$,defineMultiStyleConfig:T$}=we(u3.keys),A$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},$$={pt:"2",px:"4",pb:"5"},M$={fontSize:"1.25em"},z$=P$({container:A$,button:R$,panel:$$,icon:M$}),O$=T$({baseStyle:z$}),{definePartsStyle:Ta,defineMultiStyleConfig:L$}=we(c3.keys),jt=H("alert-fg"),ur=H("alert-bg"),I$=Ta({container:{bg:ur.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function hm(e){const{theme:t,colorScheme:n}=e,r=$i(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var D$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark}}}}),j$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:jt.reference}}}),F$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:jt.reference}}}),N$=Ta(e=>{const{colorScheme:t}=e;return{container:{[jt.variable]:"colors.white",[ur.variable]:`colors.${t}.500`,_dark:{[jt.variable]:"colors.gray.900",[ur.variable]:`colors.${t}.200`},color:jt.reference}}}),B$={subtle:D$,"left-accent":j$,"top-accent":F$,solid:N$},V$=L$({baseStyle:I$,variants:B$,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:AS,defineMultiStyleConfig:H$}=we(d3.keys),wi=H("avatar-border-color"),Ds=H("avatar-bg"),ma=H("avatar-font-size"),Mi=H("avatar-size"),W$={borderRadius:"full",border:"0.2em solid",borderColor:wi.reference,[wi.variable]:"white",_dark:{[wi.variable]:"colors.gray.800"}},U$={bg:Ds.reference,fontSize:ma.reference,width:Mi.reference,height:Mi.reference,lineHeight:"1",[Ds.variable]:"colors.gray.200",_dark:{[Ds.variable]:"colors.whiteAlpha.400"}},G$=e=>{const{name:t,theme:n}=e,r=t?J3({string:t}):"colors.gray.400",o=Q3(r)(n);let i="white";return o||(i="gray.800"),{bg:Ds.reference,fontSize:ma.reference,color:i,borderColor:wi.reference,verticalAlign:"top",width:Mi.reference,height:Mi.reference,"&:not([data-loaded])":{[Ds.variable]:r},[wi.variable]:"colors.white",_dark:{[wi.variable]:"colors.gray.800"}}},K$={fontSize:ma.reference,lineHeight:"1"},X$=AS(e=>({badge:gt(W$,e),excessLabel:gt(U$,e),container:gt(G$,e),label:K$}));function yr(e){const t=e!=="100%"?bS[e]:void 0;return AS({container:{[Mi.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Mi.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`}})}var q$={"2xs":yr(4),xs:yr(6),sm:yr(8),md:yr(12),lg:yr(16),xl:yr(24),"2xl":yr(32),full:yr("100%")},Y$=H$({baseStyle:X$,sizes:q$,defaultProps:{size:"md"}}),Q$={Accordion:O$,Alert:V$,Avatar:Y$,Badge:Os,Breadcrumb:Z6,Button:a$,Checkbox:Lu,CloseButton:m$,Code:b$,Container:S$,Divider:_$,Drawer:k6,Editable:R6,Form:I6,FormError:V6,FormLabel:W6,Heading:K6,Input:pe,Kbd:pR,Link:mR,List:xR,Menu:$R,Modal:VR,NumberInput:QR,PinInput:t6,Popover:f6,Progress:bA,Radio:MA,Select:FA,Skeleton:BA,SkipLink:HA,Slider:eR,Spinner:rR,Stat:dR,Switch:mT,Table:wT,Tabs:DT,Tag:YT,Textarea:lA,Tooltip:dA,Card:f$,Stepper:l3},Z$={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},J$={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},eM="ltr",tM={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RS={semanticTokens:Z$,direction:eM,...i3,components:Q$,styles:J$,config:tM};function Ss(e){return typeof e=="function"}function nM(...e){return t=>e.reduce((n,r)=>r(n),t)}var rM=e=>function(...n){let r=[...n],o=n[n.length-1];return L4(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,nM(...r.map(i=>s=>Ss(i)?i(s):iM(s,i)))(o)},oM=rM(RS);function iM(...e){return rn({},...e,$S)}function $S(e,t,n,r){if((Ss(e)||Ss(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Ss(e)?e(...o):e,s=Ss(t)?t(...o):t;return rn({},i,s,$S)}}function sM(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function aM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},MS=lM(aM);function zS(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var OS=e=>zS(e,t=>t!=null);function uM(e){return typeof e=="function"}function LS(e,...t){return uM(e)?e(...t):e}var cM=typeof Element<"u",dM=typeof Map=="function",fM=typeof Set=="function",pM=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ql(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ql(e[r],t[r]))return!1;return!0}var i;if(dM&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ql(r.value[1],t.get(r.value[0])))return!1;return!0}if(fM&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pM&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(cM&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ql(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var hM=function(t,n){try{return Ql(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const mM=th(hM);function IS(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=pP(),a=e?MS(i,`components.${e}`):void 0,l=r||a,u=rn({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},OS(sM(o,["children"]))),c=x.useRef({});if(l){const f=z4(l)(u);mM(c.current,f)||(c.current=f)}return c.current}function Xr(e,t={}){return IS(e,t)}function qr(e,t={}){return IS(e,t)}var gM=new Set([...S4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),vM=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yM(e){return vM.has(e)||!gM.has(e)}function bM(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function mm(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var xM=/^((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)-.*))$/,SM=Gx(function(e){return xM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wM=SM,kM=function(t){return t!=="theme"},Ov=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wM:kM},Lv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},CM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Zx(n,r,o),W_(function(){return Jx(n,r,o)}),null},EM=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Lv(t,n,r),l=a||Ov(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,a=zS(s,(d,f)=>k4(f)),l=LS(e,t),u=bM({},o,l,OS(a),i),c=gS(u)(t.theme);return r?[c,r]:c};function tf(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yM);const o=TM({baseStyle:n}),i=PM(e,r)(o);return Lt.forwardRef(function(l,u){const{colorMode:c,forced:d}=_c();return Lt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function AM(){const e=new Map;return new Proxy(tf,{apply(t,n,r){return tf(...r)},get(t,n){return e.has(n)||e.set(n,tf(n)),e.get(n)}})}var X=AM();function ee(e){return x.forwardRef(e)}function DS(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=x.createContext(void 0);o.displayName=r;function i(){var s;const a=x.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function RM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=x.useMemo(()=>x4(n),[n]);return k.jsxs(K_,{theme:o,children:[k.jsx($M,{root:t}),r]})}function $M({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k.jsx(Cc,{styles:n=>({[t]:n.__cssVars})})}DS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function MM(e){return DS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function zM(){const{colorMode:e}=_c();return k.jsx(Cc,{styles:t=>{const n=MS(t,"styles.global"),r=LS(n,{theme:t,colorMode:e});return r?gS(r)(t):void 0}})}var gm=x.createContext({getDocument(){return document},getWindow(){return window}});gm.displayName="EnvironmentContext";function OM({defer:e}={}){const[,t]=x.useReducer(n=>n+1,0);return er(()=>{e&&t()},[e]),x.useContext(gm)}function jS(e){const{children:t,environment:n,disabled:r}=e,o=x.useRef(null),i=x.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return k.jsxs(gm.Provider,{value:i,children:[t,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}jS.displayName="EnvironmentProvider";var LM=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=k.jsx(jS,{environment:a,disabled:u,children:t});return k.jsx(RM,{theme:s,cssVarsRoot:l,children:k.jsxs(lS,{colorModeManager:n,options:s.config,children:[i?k.jsx(Y_,{scope:o}):k.jsx(q_,{}),!c&&k.jsx(zM,{}),r?k.jsx(sS,{zIndex:r,children:d}):d]})})},IM=(e,t)=>e.find(n=>n.id===t);function Dv(e,t){const n=FS(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function FS(e,t){for(const[n,r]of Object.entries(e))if(IM(r,t))return n}function DM(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function jM(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}function Dr(e,t=[]){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function FM(e,t){const n=Dr(e);x.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function zi(e,t){const n=x.useRef(!1),r=x.useRef(!1);x.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const NS=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$c=x.createContext({}),Aa=x.createContext(null),Mc=typeof document<"u",vm=Mc?x.useLayoutEffect:x.useEffect,BS=x.createContext({strict:!1});function NM(e,t,n,r){const{visualElement:o}=x.useContext($c),i=x.useContext(BS),s=x.useContext(Aa),a=x.useContext(NS).reducedMotion,l=x.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;x.useInsertionEffect(()=>{u&&u.update(n,s)});const c=x.useRef(!!window.HandoffAppearAnimations);return vm(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function li(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BM(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):li(n)&&(n.current=r))},[t])}function ga(e){return typeof e=="string"||Array.isArray(e)}function zc(e){return typeof e=="object"&&typeof e.start=="function"}const ym=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bm=["initial",...ym];function Oc(e){return zc(e.animate)||bm.some(t=>ga(e[t]))}function VS(e){return!!(Oc(e)||e.variants)}function VM(e,t){if(Oc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ga(n)?n:void 0,animate:ga(r)?r:void 0}}return e.inherit!==!1?t:{}}function HM(e){const{initial:t,animate:n}=VM(e,x.useContext($c));return x.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const Fv={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"]},va={};for(const e in Fv)va[e]={isEnabled:t=>Fv[e].some(n=>!!t[n])};function WM(e){for(const t in e)va[t]={...va[t],...e[t]}}const xm=x.createContext({}),HS=x.createContext({}),UM=Symbol.for("motionComponentSymbol");function GM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&WM(e);function i(a,l){let u;const c={...x.useContext(NS),...a,layoutId:KM(a)},{isStatic:d}=c,f=HM(a),p=r(a,d);if(!d&&Mc){f.visualElement=NM(o,p,c,t);const m=x.useContext(HS),y=x.useContext(BS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return x.createElement($c.Provider,{value:f},u&&f.visualElement?x.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,BM(p,f.visualElement,l),p,d,f.visualElement))}const s=x.forwardRef(i);return s[UM]=o,s}function KM({layoutId:e}){const t=x.useContext(xm).id;return t&&e!==void 0?t+"-"+e:e}function XM(e){function t(r,o={}){return GM(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const qM=["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 Sm(e){return typeof e!="string"||e.includes("-")?!1:!!(qM.indexOf(e)>-1||/[A-Z]/.test(e))}const ju={};function YM(e){Object.assign(ju,e)}const Ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mo=new Set(Ra);function WS(e,{layout:t,layoutId:n}){return Mo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),QM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZM=Ra.length;function JM(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),GS=US("--"),Pp=US("var(--"),ez=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,tz=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hr=(e,t,n)=>Math.min(Math.max(n,e),t),zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},js={...zo,transform:e=>Hr(0,1,e)},wl={...zo,default:1},Fs=e=>Math.round(e*1e5)/1e5,Lc=/(-)?([\d]*\.?[\d])+/g,KS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nz=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $a(e){return typeof e=="string"}const Ma=e=>({test:t=>$a(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ma("deg"),In=Ma("%"),K=Ma("px"),rz=Ma("vh"),oz=Ma("vw"),Nv={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},Bv={...zo,transform:Math.round},XS={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:wl,scaleX:wl,scaleY:wl,scaleZ:wl,skew:xr,skewX:xr,skewY:xr,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:js,originX:Nv,originY:Nv,originZ:K,zIndex:Bv,fillOpacity:js,strokeOpacity:js,numOctaves:Bv};function wm(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(GS(d)){i[d]=f;continue}const p=XS[d],m=tz(f,p);if(Mo.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):o[d]=m}if(t.transform||(l||r?o.transform=JM(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const km=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qS(e,t,n){for(const r in t)!Rt(t[r])&&!WS(r,n)&&(e[r]=t[r])}function iz({transformTemplate:e},t,n){return x.useMemo(()=>{const r=km();return wm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sz(e,t,n){const r=e.style||{},o={};return qS(o,r,e),Object.assign(o,iz(e,t,n)),e.transformValues?e.transformValues(o):o}function az(e,t,n){const r={},o=sz(e,t,n);return e.drag&&e.dragListener!==!1&&(r.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)&&(r.tabIndex=0),r.style=o,r}const lz=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 Fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||lz.has(e)}let YS=e=>!Fu(e);function uz(e){e&&(YS=t=>t.startsWith("on")?!Fu(t):e(t))}try{uz(require("@emotion/is-prop-valid").default)}catch{}function cz(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(YS(o)||n===!0&&Fu(o)||!t&&!Fu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vv(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function dz(e,t,n){const r=Vv(t,e.x,e.width),o=Vv(n,e.y,e.height);return`${r} ${o}`}const fz={offset:"stroke-dashoffset",array:"stroke-dasharray"},pz={offset:"strokeDashoffset",array:"strokeDasharray"};function hz(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?fz:pz;e[i.offset]=K.transform(-r);const s=K.transform(t),a=K.transform(n);e[i.array]=`${s} ${a}`}function Cm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(wm(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:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=dz(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&hz(p,s,a,l,!1)}const QS=()=>({...km(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mz(e,t,n,r){const o=x.useMemo(()=>{const i=QS();return Cm(i,t,{enableHardwareAcceleration:!1},Em(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qS(i,e.style,e),o.style={...i,...o.style}}return o}function gz(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Sm(n)?mz:az)(r,i,s,n),c={...cz(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=x.useMemo(()=>Rt(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}const _m=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ZS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const JS=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 ew(e,t,n,r){ZS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(JS.has(o)?o:_m(o),t.attrs[o])}function Pm(e,t){const{style:n}=e,r={};for(const o in n)(Rt(n[o])||t.style&&Rt(t.style[o])||WS(o,e))&&(r[o]=n[o]);return r}function tw(e,t){const n=Pm(e,t);for(const r in e)if(Rt(e[r])||Rt(t[r])){const o=Ra.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Tm(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function nw(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Nu=e=>Array.isArray(e),vz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yz=e=>Nu(e)?e[e.length-1]||0:e;function Zl(e){const t=Rt(e)?e.get():e;return vz(t)?t.toValue():t}function bz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:xz(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const rw=e=>(t,n)=>{const r=x.useContext($c),o=x.useContext(Aa),i=()=>bz(e,t,r,o);return n?i():nw(i)};function xz(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Zl(i[f]);let{initial:s,animate:a}=e;const l=Oc(e),u=VS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!zc(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Tm(e,p);if(!m)return;const{transitionEnd:y,transition:w,...g}=m;for(const h in g){let v=g[h];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const Ie=e=>e;class Hv{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Sz(e){let t=new Hv,n=new Hv,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=Sz(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,wz),1),o.timestamp=d,o.isProcessing=!0,kl.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:kl.reduce((d,f)=>{const p=i[f];return d[f]=(m,y=!1,w=!1)=>(n||l(),p.schedule(m,y,w)),d},{}),cancel:d=>kl.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Se,cancel:cr,state:Xe,steps:nf}=kz(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Cz={useVisualState:rw({scrapeMotionValuesFromProps:tw,createRenderState:QS,onMount:(e,t,{renderState:n,latestValues:r})=>{Se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{Cm(n,r,{enableHardwareAcceleration:!1},Em(t.tagName),e.transformTemplate),ew(t,n)})}})},Ez={useVisualState:rw({scrapeMotionValuesFromProps:Pm,createRenderState:km})};function _z(e,{forwardMotionProps:t=!1},n,r){return{...Sm(e)?Cz:Ez,preloadedFeatures:n,useRender:gz(t),createVisualElement:r,Component:e}}function Zn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ow=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ic(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pz=e=>t=>ow(t)&&e(t,Ic(t));function nr(e,t,n,r){return Zn(e,t,Pz(n),r)}const Tz=(e,t)=>n=>t(e(n)),jr=(...e)=>e.reduce(Tz);function iw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wv=iw("dragHorizontal"),Uv=iw("dragVertical");function sw(e){let t=!1;if(e==="y")t=Uv();else if(e==="x")t=Wv();else{const n=Wv(),r=Uv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function aw(){const e=sw(!0);return e?(e(),!1):!0}class Yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||aw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Se.update(()=>a[r](i,s))};return nr(e.current,n,o,{passive:!e.getProps()[r]})}class Az extends Yr{mount(){this.unmount=jr(Gv(this.node,!0),Gv(this.node,!1))}unmount(){}}class Rz extends Yr{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=jr(Zn(this.node.current,"focus",()=>this.onFocus()),Zn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lw=(e,t)=>t?e===t?!0:lw(e,t.parentElement):!1;function rf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ic(n))}class $z extends Yr{constructor(){super(...arguments),this.removeStartListeners=Ie,this.removeEndListeners=Ie,this.removeAccessibleListeners=Ie,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=nr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Se.update(()=>{lw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=nr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||rf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Zn(this.node.current,"keyup",s),rf("down",(a,l)=>{this.startPress(a,l)})},n=Zn(this.node.current,"keydown",t),r=()=>{this.isPressing&&rf("cancel",(i,s)=>this.cancelPress(i,s))},o=Zn(this.node.current,"blur",r);this.removeAccessibleListeners=jr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Se.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!aw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Se.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=nr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tp=new WeakMap,of=new WeakMap,Mz=e=>{const t=Tp.get(e.target);t&&t(e)},zz=e=>{e.forEach(Mz)};function Oz({root:e,...t}){const n=e||document;of.has(n)||of.set(n,{});const r=of.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zz,{root:e,...t})),r[o]}function Lz(e,t,n){const r=Oz(t);return Tp.set(e,n),r.observe(e),()=>{Tp.delete(e),r.unobserve(e)}}const Iz={some:0,all:1};class Dz extends Yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Iz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Lz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jz(t,n))&&this.startObserver()}unmount(){}}function jz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fz={inView:{Feature:Dz},tap:{Feature:$z},focus:{Feature:Rz},hover:{Feature:Az}};function uw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Bz(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Dc(e,t,n){const r=e.getProps();return Tm(r,t,n!==void 0?n:r.custom,Nz(e),Bz(e))}const Vz="framerAppearId",Hz="data-"+_m(Vz);let Wz=Ie,Am=Ie;const Fr=e=>e*1e3,rr=e=>e/1e3,Uz={current:!1},cw=e=>Array.isArray(e)&&typeof e[0]=="number";function dw(e){return!!(!e||typeof e=="string"&&fw[e]||cw(e)||Array.isArray(e)&&e.every(dw))}const ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ws([0,.65,.55,1]),circOut:ws([.55,0,1,.45]),backIn:ws([.31,.01,.66,-.59]),backOut:ws([.33,1.53,.69,.99])};function pw(e){if(e)return cw(e)?ws(e):Array.isArray(e)?e.map(pw):fw[e]}function Gz(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pw(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Kz(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xz=1e-7,qz=12;function Yz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=hw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Xz&&++aYz(i,0,1,e,n);return i=>i===0||i===1?i:hw(o(i),t,r)}const Qz=za(.42,0,1,1),Zz=za(0,0,.58,1),mw=za(.42,0,.58,1),Jz=e=>Array.isArray(e)&&typeof e[0]!="number",gw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vw=e=>t=>1-e(1-t),yw=e=>1-Math.sin(Math.acos(e)),Rm=vw(yw),eO=gw(Rm),bw=za(.33,1.53,.69,.99),$m=vw(bw),tO=gw($m),nO=e=>(e*=2)<1?.5*$m(e):.5*(2-Math.pow(2,-10*(e-1))),rO={linear:Ie,easeIn:Qz,easeInOut:mw,easeOut:Zz,circIn:yw,circInOut:eO,circOut:Rm,backIn:$m,backInOut:tO,backOut:bw,anticipate:nO},Kv=e=>{if(Array.isArray(e)){Am(e.length===4);const[t,n,r,o]=e;return za(t,n,r,o)}else if(typeof e=="string")return rO[e];return e},Mm=(e,t)=>n=>!!($a(n)&&nz.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),xw=(e,t,n)=>r=>{if(!$a(r))return r;const[o,i,s,a]=r.match(Lc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},oO=e=>Hr(0,255,e),sf={...zo,transform:e=>Math.round(oO(e))},mo={test:Mm("rgb","red"),parse:xw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sf.transform(e)+", "+sf.transform(t)+", "+sf.transform(n)+", "+Fs(js.transform(r))+")"};function iO(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ap={test:Mm("#"),parse:iO,transform:mo.transform},ui={test:Mm("hsl","hue"),parse:xw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(Fs(t))+", "+In.transform(Fs(n))+", "+Fs(js.transform(r))+")"},ft={test:e=>mo.test(e)||Ap.test(e)||ui.test(e),parse:e=>mo.test(e)?mo.parse(e):ui.test(e)?ui.parse(e):Ap.parse(e),transform:e=>$a(e)?e:e.hasOwnProperty("red")?mo.transform(e):ui.transform(e)},$e=(e,t,n)=>-n*e+n*t+e;function af(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=af(l,a,e+1/3),i=af(l,a,e),s=af(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const lf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},aO=[Ap,mo,ui],lO=e=>aO.find(t=>t.test(e));function Xv(e){const t=lO(e);let n=t.parse(e);return t===ui&&(n=sO(n)),n}const Sw=(e,t)=>{const n=Xv(e),r=Xv(t),o={...n};return i=>(o.red=lf(n.red,r.red,i),o.green=lf(n.green,r.green,i),o.blue=lf(n.blue,r.blue,i),o.alpha=$e(n.alpha,r.alpha,i),mo.transform(o))};function uO(e){var t,n;return isNaN(e)&&$a(e)&&(((t=e.match(Lc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KS))===null||n===void 0?void 0:n.length)||0)>0}const ww={regex:ez,countKey:"Vars",token:"${v}",parse:Ie},kw={regex:KS,countKey:"Colors",token:"${c}",parse:ft.parse},Cw={regex:Lc,countKey:"Numbers",token:"${n}",parse:zo.parse};function uf(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Bu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&uf(n,ww),uf(n,kw),uf(n,Cw),n}function Ew(e){return Bu(e).values}function _w(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Bu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function dO(e){const t=Ew(e);return _w(e)(t.map(cO))}const Wr={test:uO,parse:Ew,createTransformer:_w,getAnimatableNone:dO},Pw=(e,t)=>n=>`${n>0?t:e}`;function Tw(e,t){return typeof e=="number"?n=>$e(e,t,n):ft.test(e)?Sw(e,t):e.startsWith("var(")?Pw(e,t):Rw(e,t)}const Aw=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Tw(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Tw(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Rw=(e,t)=>{const n=Wr.createTransformer(t),r=Bu(e),o=Bu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?jr(Aw(r.values,o.values),n):Pw(e,t)},ya=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qv=(e,t)=>n=>$e(e,t,n);function pO(e){return typeof e=="number"?qv:typeof e=="string"?ft.test(e)?Sw:Rw:Array.isArray(e)?Aw:typeof e=="object"?fO:qv}function hO(e,t,n){const r=[],o=n||pO(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=hO(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Hr(e[0],e[i-1],u)):l}function mO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ya(0,t,r);e.push($e(n,1,o))}}function gO(e){const t=[0];return mO(t,e.length-1),t}function vO(e,t){return e.map(n=>n*t)}function yO(e,t){return e.map(()=>t||mw).splice(0,e.length-1)}function Vu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Jz(r)?r.map(Kv):Kv(r),i={done:!1,value:t[0]},s=vO(n&&n.length===t.length?n:gO(t),e),a=$w(s,t,{ease:Array.isArray(o)?o:yO(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Mw(e,t){return t?e*(1e3/t):0}const bO=5;function zw(e,t,n){const r=Math.max(t-bO,0);return Mw(n-e(r),t-r)}const cf=.001,xO=.01,Yv=10,SO=.05,wO=1;function kO({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Wz(e<=Fr(Yv));let s=1-t;s=Hr(SO,wO,s),e=Hr(xO,Yv,rr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Rp(u,s),m=Math.exp(-d);return cf-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=Rp(Math.pow(u,2),s);return(-o(u)+cf>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-cf+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=EO(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const CO=12;function EO(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function TO(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qv(e,PO)&&Qv(e,_O)){const n=kO(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Ow({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=TO(r),p=c?-rr(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,w=rr(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const v=Rp(w,m);h=S=>{const P=Math.exp(-m*w*S);return i-P*((p+m*w*y)/v*Math.sin(v*S)+y*Math.cos(v*S))}}else if(m===1)h=v=>i-Math.exp(-w*v)*(y+(p+w*y)*v);else{const v=w*Math.sqrt(m*m-1);h=S=>{const P=Math.exp(-m*w*S),T=Math.min(v*S,300);return i-P*((p+m*w*y)*Math.sinh(T)+v*y*Math.cosh(T))/v}}return{calculatedDuration:f&&d||null,next:v=>{const S=h(v);if(f)s.done=v>=d;else{let P=p;v!==0&&(m<1?P=zw(h,v,S):P=0);const T=Math.abs(P)<=n,_=Math.abs(i-S)<=t;s.done=T&&_}return s.value=s.done?i:S,s}}}function Zv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-y*Math.exp(-A/r),v=A=>g+h(A),S=A=>{const z=h(A),M=v(A);f.done=Math.abs(z)<=u,f.value=f.done?g:M};let P,T;const _=A=>{p(f.value)&&(P=A,T=Ow({keyframes:[f.value,m(f.value)],velocity:zw(v,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:A=>{let z=!1;return!T&&P===void 0&&(z=!0,S(A),_(A)),P!==void 0&&A>P?T.next(A-P):(!z&&S(A),f)}}}const AO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Se.update(t,!0),stop:()=>cr(t),now:()=>Xe.isProcessing?Xe.timestamp:performance.now()}},Jv=2e4;function ey(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jv?1/0:t}const RO={decay:Zv,inertia:Zv,tween:Vu,keyframes:Vu,spring:Ow};function Hu({autoplay:e=!0,delay:t=0,driver:n=AO,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,m=!1,y,w;const g=()=>{w=new Promise(V=>{y=V})};g();let h;const v=RO[o]||Vu;let S;v!==Vu&&typeof r[0]!="number"&&(S=$w([0,100],r,{clamp:!1}),r=[0,100]);const P=v({...f,keyframes:r});let T;a==="mirror"&&(T=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",A=null,z=null,M=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=ey(P));const{calculatedDuration:F}=P;let Y=1/0,q=1/0;F!==null&&(Y=F+s,q=Y*(i+1)-s);let Q=0;const J=V=>{if(z===null)return;p>0&&(z=Math.min(z,V)),p<0&&(z=Math.min(V-q/p,z)),A!==null?Q=A:Q=Math.round(V-z)*p;const te=Q-t*(p>=0?1:-1),B=p>=0?te<0:te>q;Q=Math.max(te,0),_==="finished"&&A===null&&(Q=q);let G=Q,ke=P;if(i){const Gt=Q/Y;let Kt=Math.floor(Gt),ot=Gt%1;!ot&&Gt>=1&&(ot=1),ot===1&&Kt--,Kt=Math.min(Kt,i+1);const Nn=!!(Kt%2);Nn&&(a==="reverse"?(ot=1-ot,s&&(ot-=s/Y)):a==="mirror"&&(ke=T));let Bn=Hr(0,1,ot);Q>q&&(Bn=a==="reverse"&&Nn?1:0),G=Bn*Y}const he=B?{done:!1,value:r[0]}:ke.next(G);S&&(he.value=S(he.value));let{done:We}=he;!B&&F!==null&&(We=p>=0?Q>=q:Q<=0);const De=A===null&&(_==="finished"||_==="running"&&We);return d&&d(he.value),De&&L(),he},Z=()=>{h&&h.stop(),h=void 0},O=()=>{_="idle",Z(),y(),g(),z=M=null},L=()=>{_="finished",c&&c(),Z(),y()},N=()=>{if(m)return;h||(h=n(J));const V=h.now();l&&l(),A!==null?z=V-A:(!z||_==="finished")&&(z=V),_==="finished"&&g(),M=z,A=null,_="running",h.start()};e&&N();const W={then(V,te){return w.then(V,te)},get time(){return rr(Q)},set time(V){V=Fr(V),Q=V,A!==null||!h||p===0?A=V:z=h.now()-V/p},get duration(){const V=P.calculatedDuration===null?ey(P):P.calculatedDuration;return rr(V)},get speed(){return p},set speed(V){V===p||!h||(p=V,W.time=rr(Q))},get state(){return _},play:N,pause:()=>{_="paused",A=Q},stop:()=>{m=!0,_!=="idle"&&(_="idle",u&&u(),O())},cancel:()=>{M!==null&&J(M),O()},complete:()=>{_="finished"},sample:V=>(z=0,J(V))};return W}function $O(e){let t;return()=>(t===void 0&&(t=e()),t)}const MO=$O(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zO=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Cl=10,OO=2e4,LO=(e,t)=>t.type==="spring"||e==="backgroundColor"||!dw(t.ease);function IO(e,t,{onUpdate:n,onComplete:r,...o}){if(!(MO()&&zO.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(h=>{a=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(LO(t,o)){const h=Hu({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const S=[];let P=0;for(;!v.done&&Pm.cancel(),w=()=>{Se.update(y),a(),u()};return m.onfinish=()=>{e.set(Kz(c,o)),r&&r(),w()},{then(h,v){return l.then(h,v)},attachTimeline(h){return m.timeline=h,m.onfinish=null,Ie},get time(){return rr(m.currentTime||0)},set time(h){m.currentTime=Fr(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return rr(d)},play:()=>{s||(m.play(),cr(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const v=Hu({...o,autoplay:!1});e.setWithVelocity(v.sample(h-Cl).value,v.sample(h).value,Cl)}w()},complete:()=>m.finish(),cancel:w}}function DO({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ie,pause:Ie,stop:Ie,then:i=>(i(),Promise.resolve()),cancel:Ie,complete:Ie});return t?Hu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const jO={type:"spring",stiffness:500,damping:25,restSpeed:10},FO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NO={type:"keyframes",duration:.8},BO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VO=(e,{keyframes:t})=>t.length>2?NO:Mo.has(e)?e.startsWith("scale")?FO(t[1]):jO:BO,$p=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wr.test(t)||t==="0")&&!t.startsWith("url(")),HO=new Set(["brightness","contrast","saturate","opacity"]);function WO(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lc)||[];if(!r)return e;const o=n.replace(r,"");let i=HO.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const UO=/([a-z-]*)\(.*?\)/g,Mp={...Wr,getAnimatableNone:e=>{const t=e.match(UO);return t?t.map(WO).join(" "):e}},GO={...XS,color:ft,backgroundColor:ft,outlineColor:ft,fill:ft,stroke:ft,borderColor:ft,borderTopColor:ft,borderRightColor:ft,borderBottomColor:ft,borderLeftColor:ft,filter:Mp,WebkitFilter:Mp},zm=e=>GO[e];function Lw(e,t){let n=zm(e);return n!==Mp&&(n=Wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Iw=e=>/^0[^.\s]+$/.test(e);function KO(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Iw(e)}function XO(e,t,n,r){const o=$p(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Dw(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Fr(s);const l=XO(t,e,n,i),u=l[0],c=l[l.length-1],d=$p(e,u),f=$p(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(qO(i)||(p={...p,...VO(e,p)}),p.duration&&(p.duration=Fr(p.duration)),p.repeatDelay&&(p.repeatDelay=Fr(p.repeatDelay)),!d||!f||Uz.current||i.type===!1)return DO(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=IO(t,e,p);if(m)return m}return Hu(p)};function Wu(e){return!!(Rt(e)&&e.add)}const jw=e=>/^\-?\d*\.?\d+$/.test(e);function Lm(e,t){e.indexOf(t)===-1&&e.push(t)}function Im(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Dm{constructor(){this.subscriptions=[]}add(t){return Lm(this.subscriptions,t),()=>Im(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class QO{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Xe;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Se.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=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=YO(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Mw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Oi(e,t){return new QO(e,t)}const Fw=e=>t=>t.test(e),ZO={test:e=>e==="auto",parse:e=>e},Nw=[zo,K,In,xr,oz,rz,ZO],ls=e=>Nw.find(Fw(e)),JO=[...Nw,ft,Wr],e8=e=>JO.find(Fw(e));function t8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oi(n))}function n8(e,t){const n=Dc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=yz(i[s]);t8(e,s,a)}}function r8(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&n8(e,s)}),u}function zp(e,t,n={}){const r=Dc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Bw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return a8(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function a8(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(l8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(zp(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function l8(e,t){return e.sortNodePosition(t)}function u8(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>zp(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=zp(e,t,n);else{const o=typeof t=="function"?Dc(e,t,n.custom):t;r=Promise.all(Bw(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const c8=[...ym].reverse(),d8=ym.length;function f8(e){return t=>Promise.all(t.map(({animation:n,options:r})=>u8(e,n,r)))}function p8(e){let t=f8(e);const n=m8();let r=!0;const o=(l,u)=>{const c=Dc(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let m={},y=1/0;for(let g=0;gy&&P;const M=Array.isArray(S)?S:[S];let F=M.reduce(o,{});T===!1&&(F={});const{prevResolvedValues:Y={}}=v,q={...Y,...F},Q=J=>{z=!0,p.delete(J),v.needsAnimating[J]=!0};for(const J in q){const Z=F[J],O=Y[J];m.hasOwnProperty(J)||(Z!==O?Nu(Z)&&Nu(O)?!uw(Z,O)||A?Q(J):v.protectedKeys[J]=!0:Z!==void 0?Q(J):p.add(J):Z!==void 0&&p.has(J)?Q(J):v.protectedKeys[J]=!0)}v.prevProp=S,v.prevResolvedValues=F,v.isActive&&(m={...m,...F}),r&&e.blockInitialAnimation&&(z=!1),z&&!_&&f.push(...M.map(J=>({animation:J,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(g[h]=v)}),f.push({animation:g})}let w=!!f.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function h8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uw(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function m8(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class g8 extends Yr{constructor(t){super(t),t.animationState||(t.animationState=p8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),zc(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let v8=0;class y8 extends Yr{constructor(){super(...arguments),this.id=v8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const b8={animation:{Feature:g8},exit:{Feature:y8}},ty=(e,t)=>Math.abs(e-t);function x8(e,t){const n=ty(e.x,t.x),r=ty(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vw{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=ff(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=x8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Xe;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=df(c,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=ff(u.type==="pointercancel"?this.lastMoveEventInfo:df(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!ow(t))return;this.handlers=n,this.transformPagePoint=r;const o=Ic(t),i=df(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Xe;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,ff(i,this.history)),this.removeListeners=jr(nr(window,"pointermove",this.handlePointerMove),nr(window,"pointerup",this.handlePointerUp),nr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function df(e,t){return t?{point:t(e.point)}:e}function ny(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ff({point:e},t){return{point:e,delta:ny(e,Hw(t)),offset:ny(e,S8(t)),velocity:w8(t,.1)}}function S8(e){return e[0]}function Hw(e){return e[e.length-1]}function w8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Hw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fr(t)));)n--;if(!r)return{x:0,y:0};const i=rr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Nt(e){return e.max-e.min}function Op(e,t=0,n=.01){return Math.abs(e-t)<=n}function ry(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),(Op(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(Op(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ns(e,t,n,r){ry(e.x,t.x,n.x,r?r.originX:void 0),ry(e.y,t.y,n.y,r?r.originY:void 0)}function oy(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function k8(e,t,n){oy(e.x,t.x,n.x),oy(e.y,t.y,n.y)}function iy(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function Bs(e,t,n){iy(e.x,t.x,n.x),iy(e.y,t.y,n.y)}function C8(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function sy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function E8(e,{top:t,left:n,bottom:r,right:o}){return{x:sy(e.x,n,o),y:sy(e.y,t,r)}}function ay(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ya(t.min,t.max-r,e.min):r>o&&(n=ya(e.min,e.max-o,t.min)),Hr(0,1,n)}function T8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Lp=.35;function A8(e=Lp){return e===!1?e=0:e===!0&&(e=Lp),{x:ly(e,"left","right"),y:ly(e,"top","bottom")}}function ly(e,t,n){return{min:uy(e,t),max:uy(e,n)}}function uy(e,t){return typeof e=="number"?e:e[t]||0}const cy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ci=()=>({x:cy(),y:cy()}),dy=()=>({min:0,max:0}),Ne=()=>({x:dy(),y:dy()});function Pn(e){return[e("x"),e("y")]}function Ww({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function R8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pf(e){return e===void 0||e===1}function Ip({scale:e,scaleX:t,scaleY:n}){return!pf(e)||!pf(t)||!pf(n)}function so(e){return Ip(e)||Uw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Uw(e){return fy(e.x)||fy(e.y)}function fy(e){return e&&e!=="0%"}function Uu(e,t,n){const r=e-n,o=t*r;return n+o}function py(e,t,n,r,o){return o!==void 0&&(e=Uu(e,o,r)),Uu(e,n,r)+t}function Dp(e,t=0,n=1,r,o){e.min=py(e.min,t,n,r,o),e.max=py(e.max,t,n,r,o)}function Gw(e,{x:t,y:n}){Dp(e.x,t.translate,t.scale,t.originPoint),Dp(e.y,n.translate,n.scale,n.originPoint)}function M8(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function kr(e,t){e.min=e.min+t,e.max=e.max+t}function my(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=$e(e.min,e.max,i);Dp(e,t[n],t[r],s,t.scale)}const z8=["x","scaleX","originX"],O8=["y","scaleY","originY"];function di(e,t){my(e.x,t,z8),my(e.y,t,O8)}function Kw(e,t){return Ww($8(e.getBoundingClientRect(),t))}function L8(e,t,n){const r=Kw(e,n),{scroll:o}=t;return o&&(kr(r.x,o.offset.x),kr(r.y,o.offset.y)),r}const I8=new WeakMap;class D8{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=Ne(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(Ic(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=sw(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),Pn(m=>{let y=this.getAxisMotionValue(m).get()||0;if(In.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const g=w.layout.layoutBox[m];g&&(y=Nt(g)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&Se.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=j8(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new Vw(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Se.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!El(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=C8(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=E8(r.layoutBox,t):this.constraints=!1,this.elastic=A8(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Pn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=T8(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!li(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=L8(r,o.root,this.visualElement.getTransformPagePoint());let s=_8(o.layout.layoutBox,i);if(n){const a=n(R8(s));this.hasMutatedConstraints=!!a,a&&(s=Ww(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pn(c=>{if(!El(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Om(t,r,0,n))}stopAnimation(){Pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pn(n=>{const{drag:r}=this.getProps();if(!El(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-$e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Pn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=P8({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pn(s=>{if(!El(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set($e(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;I8.set(this.visualElement,this);const t=this.visualElement.current,n=nr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();li(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Zn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Lp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function El(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F8 extends Yr{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new D8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const gy=e=>(t,n)=>{e&&Se.update(()=>e(t,n))};class N8 extends Yr{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new Vw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:gy(t),onStart:gy(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Se.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=nr(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 B8(){const e=x.useContext(Aa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=x.useId();return x.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function V8(){return H8(x.useContext(Aa))}function H8(e){return e===null?!0:e.isPresent}const Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=vy(e,t.target.x),r=vy(e,t.target.y);return`${n}% ${r}%`}},W8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Wr.parse(e);if(o.length>5)return r;const i=Wr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=$e(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class U8 extends Lt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;YM(G8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xw(e){const[t,n]=B8(),r=x.useContext(xm);return Lt.createElement(U8,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(HS),isPresent:t,safeToRemove:n})}const G8={borderRadius:{...us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:us,borderTopRightRadius:us,borderBottomLeftRadius:us,borderBottomRightRadius:us,boxShadow:W8},qw=["TopLeft","TopRight","BottomLeft","BottomRight"],K8=qw.length,yy=e=>typeof e=="string"?parseFloat(e):e,by=e=>typeof e=="number"||K.test(e);function X8(e,t,n,r,o,i){o?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,q8(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,Y8(r))):i&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ya(e,t,r))}function Sy(e,t){e.min=t.min,e.max=t.max}function Zt(e,t){Sy(e.x,t.x),Sy(e.y,t.y)}function wy(e,t,n,r,o){return e-=t,e=Uu(e,1/n,r),o!==void 0&&(e=Uu(e,1/o,r)),e}function Q8(e,t=0,n=1,r=.5,o,i=e,s=e){if(In.test(t)&&(t=parseFloat(t),t=$e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=$e(i.min,i.max,r);e===i&&(a-=t),e.min=wy(e.min,t,n,a,o),e.max=wy(e.max,t,n,a,o)}function ky(e,t,[n,r,o],i,s){Q8(e,t[n],t[r],t[o],t.scale,i,s)}const Z8=["x","scaleX","originX"],J8=["y","scaleY","originY"];function Cy(e,t,n,r){ky(e.x,t,Z8,n?n.x:void 0,r?r.x:void 0),ky(e.y,t,J8,n?n.y:void 0,r?r.y:void 0)}function Ey(e){return e.translate===0&&e.scale===1}function Qw(e){return Ey(e.x)&&Ey(e.y)}function eL(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 Zw(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 _y(e){return Nt(e.x)/Nt(e.y)}class tL{constructor(){this.members=[]}add(t){Lm(this.members,t),t.scheduleRender()}remove(t){if(Im(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Py(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const nL=(e,t)=>e.depth-t.depth;class rL{constructor(){this.children=[],this.isDirty=!1}add(t){Lm(this.children,t),this.isDirty=!0}remove(t){Im(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nL),this.isDirty=!1,this.children.forEach(t)}}function oL(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cr(r),e(i-t))};return Se.read(r,!0),()=>cr(r)}function iL(e){window.MotionDebug&&window.MotionDebug.record(e)}function sL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aL(e,t,n){const r=Rt(e)?e:Oi(e);return r.start(Om("",r,t,n)),r.animation}const Ty=["","X","Y","Z"],Ay=1e3;let lL=0;const ao={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Jw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=lL++,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=()=>{ao.totalNodes=ao.resolvedTargetDeltas=ao.recalculatedProjection=0,this.nodes.forEach(dL),this.nodes.forEach(gL),this.nodes.forEach(vL),this.nodes.forEach(fL),iL(ao)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=oL(f,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach($y))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||wL,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!Zw(this.targetLayout,m)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...Dw(y,"layout"),onPlay:w,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||$y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cr(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(yL),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(pL),this.sharedNodes.forEach(bL)}scheduleUpdateProjection(){Se.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=S/1e3;My(d.x,s.x,P),My(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xL(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&eL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ne()),Zt(v,this.relativeTarget)),y&&(this.animationValues=c,X8(c,u,this.latestValues,P,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{Jl.hasAnimatedSinceResize=!0,this.currentAnimation=aL(0,Ay,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ay),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&e2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ne();const d=Nt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Nt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Zt(a,l),di(a,c),Ns(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tL),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ry),this.root.sharedNodes.clear()}}}function uL(e){e.updateLayout()}function cL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Pn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Nt(f);f.min=r[d].min,f.max=f.min+p}):e2(i,n.layoutBox,r)&&Pn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Nt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=ci();Ns(a,r,n.layoutBox);const l=ci();s?Ns(l,e.applyTransform(o,!0),n.measuredBox):Ns(l,r,n.layoutBox);const u=!Qw(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ne();Bs(m,n.layoutBox,f.layoutBox);const y=Ne();Bs(y,r,p.layoutBox),Zw(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dL(e){ao.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 fL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pL(e){e.clearSnapshot()}function Ry(e){e.clearMeasurements()}function hL(e){e.isLayoutDirty=!1}function mL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gL(e){e.resolveTargetDelta()}function vL(e){e.calcProjection()}function yL(e){e.resetRotation()}function bL(e){e.removeLeadSnapshot()}function My(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function xL(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function SL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wL={duration:.45,ease:[.4,0,.1,1]},Oy=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ly=Oy("applewebkit/")&&!Oy("chrome/")?Math.round:Ie;function Iy(e){e.min=Ly(e.min),e.max=Ly(e.max)}function kL(e){Iy(e.x),Iy(e.y)}function e2(e,t,n){return e==="position"||e==="preserve-aspect"&&!Op(_y(t),_y(n),.2)}const CL=Jw({attachResizeListener:(e,t)=>Zn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hf={current:void 0},t2=Jw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hf.current){const e=new CL({});e.mount(window),e.setOptions({layoutScroll:!0}),hf.current=e}return hf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),EL={pan:{Feature:N8},drag:{Feature:F8,ProjectionNode:t2,MeasureLayout:Xw}},_L=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PL(e){const t=_L.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function jp(e,t,n=1){const[r,o]=PL(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return jw(s)?parseFloat(s):s}else return Pp(o)?jp(o,t,n+1):o}function TL(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Pp(i))return;const s=jp(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Pp(i))continue;const s=jp(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const AL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),n2=e=>AL.has(e),RL=e=>Object.keys(e).some(n2),Dy=e=>e===zo||e===K,jy=(e,t)=>parseFloat(e.split(", ")[t]),Fy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return jy(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?jy(i[1],e):0}},$L=new Set(["x","y","z"]),ML=Ra.filter(e=>!$L.has(e));function zL(e){const t=[];return ML.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Li={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Fy(4,13),y:Fy(5,14)};Li.translateX=Li.x;Li.translateY=Li.y;const OL=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Li[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Li[u](l,i)}),e},LL=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(n2);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=ls(c);const f=t[l];let p;if(Nu(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=ls(c);for(let w=y;w=0?window.pageYOffset:null,u=OL(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Mc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IL(e,t,n,r){return RL(t)?LL(e,t,n,r):{target:t,transitionEnd:r}}const DL=(e,t,n,r)=>{const o=TL(e,t,r);return t=o.target,r=o.transitionEnd,IL(e,t,n,r)},Fp={current:null},r2={current:!1};function jL(){if(r2.current=!0,!!Mc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fp.current=e.matches;e.addListener(t),t()}else Fp.current=!1}function FL(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Rt(i))e.addValue(o,i),Wu(r)&&r.add(o);else if(Rt(s))e.addValue(o,Oi(i,{owner:e})),Wu(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,Oi(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ny=new WeakMap,o2=Object.keys(va),NL=o2.length,By=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],BL=bm.length;class VL{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Se.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Oc(n),this.isVariantNode=VS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Rt(f)&&(f.set(a[d],!1),Wu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Ny.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),r2.current||jL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ny.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Mo.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.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,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Oi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Tm(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class i2 extends VL{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=i8(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){r8(this,r,s);const a=DL(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function HL(e){return window.getComputedStyle(e)}class WL extends i2{readValueFromInstance(t,n){if(Mo.has(n)){const r=zm(n);return r&&r.default||0}else{const r=HL(t),o=(GS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kw(t,n)}build(t,n,r,o){wm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Pm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){ZS(t,n,r,o)}}class UL extends i2{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mo.has(n)){const r=zm(n);return r&&r.default||0}return n=JS.has(n)?n:_m(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ne()}scrapeMotionValuesFromProps(t,n){return tw(t,n)}build(t,n,r,o){Cm(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){ew(t,n,r,o)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const GL=(e,t)=>Sm(e)?new UL(t,{enableHardwareAcceleration:!1}):new WL(t,{enableHardwareAcceleration:!0}),KL={layout:{ProjectionNode:t2,MeasureLayout:Xw}},XL={...b8,...Fz,...EL,...KL},s2=XM((e,t)=>_z(e,t,XL,GL));function a2(){const e=x.useRef(!1);return vm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qL(){const e=a2(),[t,n]=x.useState(0),r=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>Se.postRender(r),[r]),t]}class YL extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function QL({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0});return x.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${i}px !important; - height: ${s}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(u)}},[t]),x.createElement(YL,{isPresent:t,childRef:r,sizeRef:o},x.cloneElement(e,{ref:r}))}const mf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=nw(ZL),l=x.useId(),u=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return x.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=x.createElement(QL,{isPresent:n},e)),x.createElement(Aa.Provider,{value:u},e)};function ZL(){return new Map}function JL(e){return x.useEffect(()=>()=>e(),[])}const Ho=e=>e.key||"";function eI(e,t){e.forEach(n=>{const r=Ho(n);t.set(r,n)})}function tI(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const nI=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=x.useContext(xm).forceRender||qL()[0],l=a2(),u=tI(e);let c=u;const d=x.useRef(new Map).current,f=x.useRef(c),p=x.useRef(new Map).current,m=x.useRef(!0);if(vm(()=>{m.current=!1,eI(u,p),f.current=c}),JL(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return x.createElement(x.Fragment,null,c.map(h=>x.createElement(mf,{key:Ho(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(Ho),w=u.map(Ho),g=y.length;for(let h=0;h{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const P=y.indexOf(v);let T=h;if(!T){const _=()=>{p.delete(v),d.delete(v);const A=f.current.findIndex(z=>z.key===v);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};T=x.createElement(mf,{key:Ho(S),isPresent:!1,onExitComplete:_,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,T)}c.splice(P,0,T)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:x.createElement(mf,{key:Ho(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),x.createElement(x.Fragment,null,d.size?c:c.map(h=>x.cloneElement(h)))};var rI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},l2=x.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=rI,toastSpacing:c="0.5rem"}=e,[d,f]=x.useState(a),p=V8();zi(()=>{p||r==null||r()},[p]),zi(()=>{f(a)},[a]);const m=()=>f(null),y=()=>f(a),w=()=>{p&&o()};x.useEffect(()=>{p&&i&&o()},[p,i,o]),FM(w,d);const g=x.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=x.useMemo(()=>DM(s),[s]);return k.jsx(s2.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:y,custom:{position:s},style:h,children:k.jsx(X.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Yn(n,{id:t,onClose:w})})})});l2.displayName="ToastComponent";var Vy={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),k.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Oo=ee((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=ve("chakra-icon",a),d=Xr("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},m=r??Vy.viewBox;if(n&&typeof n!="string")return k.jsx(X.svg,{as:n,...p,...u});const y=s??Vy.path;return k.jsx(X.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:y})});Oo.displayName="Icon";function oI(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function iI(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Hy(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var sI=om({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),jc=ee((e,t)=>{const n=Xr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=bt(e),u=ve("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${sI} ${i} linear infinite`,...n};return k.jsx(X.div,{ref:t,__css:c,className:u,...l,children:r&&k.jsx(X.span,{srOnly:!0,children:r})})});jc.displayName="Spinner";var[aI,jm]=Ut({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[lI,Fm]=Ut({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),u2={info:{icon:iI,colorScheme:"blue"},warning:{icon:Hy,colorScheme:"orange"},success:{icon:oI,colorScheme:"green"},error:{icon:Hy,colorScheme:"red"},loading:{icon:jc,colorScheme:"blue"}};function uI(e){return u2[e].colorScheme}function cI(e){return u2[e].icon}var c2=ee(function(t,n){const r=Fm(),{status:o}=jm(),i={display:"inline",...r.description};return k.jsx(X.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__desc",t.className),__css:i})});c2.displayName="AlertDescription";function d2(e){const{status:t}=jm(),n=cI(t),r=Fm(),o=t==="loading"?r.spinner:r.icon;return k.jsx(X.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||k.jsx(n,{h:"100%",w:"100%"})})}d2.displayName="AlertIcon";var f2=ee(function(t,n){const r=Fm(),{status:o}=jm();return k.jsx(X.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});f2.displayName="AlertTitle";var p2=ee(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=bt(t),a=(r=t.colorScheme)!=null?r:uI(o),l=qr("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(aI,{value:{status:o},children:k.jsx(lI,{value:l,children:k.jsx(X.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:ve("chakra-alert",t.className),__css:u})})})});p2.displayName="Alert";function dI(e){return k.jsx(Oo,{focusable:"false","aria-hidden":!0,...e,children:k.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var h2=ee(function(t,n){const r=Xr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=bt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(X.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||k.jsx(dI,{width:"1em",height:"1em"})})});h2.displayName="CloseButton";var fI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Vs=pI(fI);function pI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=hI(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=Dv(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:gI(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=FS(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Dv(Vs.getState(),o).position}}var Wy=0;function hI(e,t={}){var n,r;Wy+=1;const o=(n=t.id)!=null?n:Wy,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Vs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return k.jsxs(p2,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[k.jsx(d2,{children:u}),k.jsxs(X.div,{flex:"1",maxWidth:"100%",children:[o&&k.jsx(f2,{id:c==null?void 0:c.title,children:o}),a&&k.jsx(c2,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&k.jsx(h2,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function gI(e={}){const{render:t,toastComponent:n=mI}=e;return o=>typeof t=="function"?t({...o,...e}):k.jsx(n,{...o,...e})}var[vI,P7]=Ut({name:"ToastOptionsContext",strict:!1}),yI=e=>{const t=x.useSyncExternalStore(Vs.subscribe,Vs.getState,Vs.getState),{motionVariants:n,component:r=l2,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:jM(a),children:k.jsx(nI,{initial:!1,children:l.map(u=>k.jsx(r,{motionVariants:n,...u},u.id))})},a)});return k.jsx(Ec,{...o,children:s})},bI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return k.jsxs(LM,{theme:r,...i,children:[k.jsx(vI,{value:o==null?void 0:o.defaultOptions,children:n}),k.jsx(yI,{...o})]})},xI=bI(RS),SI=Object.defineProperty,wI=(e,t,n)=>t in e?SI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(wI(e,typeof t!="symbol"?t+"":t,n),n);function Uy(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var kI=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Gy(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Ky(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var Np=typeof window<"u"?x.useLayoutEffect:x.useEffect,Gu=e=>e,CI=class{constructor(){Oe(this,"descendants",new Map),Oe(this,"register",e=>{if(e!=null)return kI(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Oe(this,"unregister",e=>{this.descendants.delete(e);const t=Uy(Array.from(this.descendants.keys()));this.assignIndex(t)}),Oe(this,"destroy",()=>{this.descendants.clear()}),Oe(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Oe(this,"count",()=>this.descendants.size),Oe(this,"enabledCount",()=>this.enabledValues().length),Oe(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Oe(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Oe(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Oe(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Oe(this,"first",()=>this.item(0)),Oe(this,"firstEnabled",()=>this.enabledItem(0)),Oe(this,"last",()=>this.item(this.descendants.size-1)),Oe(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Oe(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Oe(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Oe(this,"next",(e,t=!0)=>{const n=Gy(e,this.count(),t);return this.item(n)}),Oe(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Gy(r,this.enabledCount(),t);return this.enabledItem(o)}),Oe(this,"prev",(e,t=!0)=>{const n=Ky(e,this.count()-1,t);return this.item(n)}),Oe(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Ky(r,this.enabledCount()-1,t);return this.enabledItem(o)}),Oe(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=Uy(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)})}};function EI(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 cn(...e){return t=>{e.forEach(n=>{EI(n,t)})}}function _I(...e){return x.useMemo(()=>cn(...e),e)}function PI(){const e=x.useRef(new CI);return Np(()=>()=>e.current.destroy()),e.current}var[TI,m2]=Ut({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function AI(e){const t=m2(),[n,r]=x.useState(-1),o=x.useRef(null);Np(()=>()=>{o.current&&t.unregister(o.current)},[]),Np(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=Gu(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:cn(i,o)}}function RI(){return[Gu(TI),()=>Gu(m2()),()=>PI(),o=>AI(o)]}var Bp=ee(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return k.jsx("img",{width:r,height:o,ref:n,alt:i,...s})});Bp.displayName="NativeImage";function $I(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=x.useState("pending");x.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=x.useRef(),f=x.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=y=>{p(),c("loaded"),o==null||o(y)},m.onerror=y=>{p(),c("failed"),i==null||i(y)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return er(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var MI=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function zI(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var Fc=ee(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,y=r!==void 0||o!==void 0,w=u!=null||c||!y,g=$I({...t,crossOrigin:d,ignoreFallback:w}),h=MI(g,f),v={ref:n,objectFit:l,objectPosition:a,...w?m:zI(m,["onError","onLoad"])};return h?o||k.jsx(X.img,{as:Bp,className:"chakra-image__placeholder",src:r,...v}):k.jsx(X.img,{as:Bp,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...v})});Fc.displayName="Image";function Nm(e){return x.Children.toArray(e).filter(t=>x.isValidElement(t))}var[T7,OI]=Ut({strict:!1,name:"ButtonGroupContext"});function LI(e){const[t,n]=x.useState(!e);return{ref:x.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Vp(e){const{children:t,className:n,...r}=e,o=x.isValidElement(t)?x.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return k.jsx(X.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Vp.displayName="ButtonIcon";function Hp(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=k.jsx(jc,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=x.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return k.jsx(X.div,{className:l,...a,__css:c,children:o})}Hp.displayName="ButtonSpinner";var Nc=ee((e,t)=>{const n=OI(),r=Xr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:y,as:w,...g}=bt(e),h=x.useMemo(()=>{const T={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:T}}},[r,n]),{ref:v,type:S}=LI(w),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return k.jsxs(X.button,{ref:_I(t,v),as:w,type:f??S,"data-active":le(s),"data-loading":le(i),__css:h,className:ve("chakra-button",y),...g,disabled:o||i,children:[i&&m==="start"&&k.jsx(Hp,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||k.jsx(X.span,{opacity:0,children:k.jsx(Xy,{...P})}):k.jsx(Xy,{...P}),i&&m==="end"&&k.jsx(Hp,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Nc.displayName="Button";function Xy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return k.jsxs(k.Fragment,{children:[t&&k.jsx(Vp,{marginEnd:o,children:t}),r,n&&k.jsx(Vp,{marginStart:o,children:n})]})}var[II,DI]=MM("Card"),g2=ee(function(t,n){const{className:r,...o}=t,i=DI();return k.jsx(X.div,{ref:n,className:ve("chakra-card__body",r),__css:i.body,...o})}),v2=ee(function(t,n){const{className:r,children:o,direction:i="column",justify:s,align:a,...l}=bt(t),u=qr("Card",t);return k.jsx(X.div,{ref:n,className:ve("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:k.jsx(II,{value:u,children:o})})}),[jI,FI]=Ut({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[NI,y2]=Ut({strict:!1,name:"FormControlContext"});function BI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=x.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=x.useState(!1),[m,y]=x.useState(!1),[w,g]=x.useState(!1),h=x.useCallback((_={},A=null)=>({id:d,..._,ref:cn(A,z=>{z&&y(!0)})}),[d]),v=x.useCallback((_={},A=null)=>({..._,ref:A,"data-focus":le(w),"data-disabled":le(o),"data-invalid":le(r),"data-readonly":le(i),id:_.id!==void 0?_.id:u,htmlFor:_.htmlFor!==void 0?_.htmlFor:l}),[l,o,w,r,i,u]),S=x.useCallback((_={},A=null)=>({id:c,..._,ref:cn(A,z=>{z&&p(!0)}),"aria-live":"polite"}),[c]),P=x.useCallback((_={},A=null)=>({..._,...s,ref:A,role:"group"}),[s]),T=x.useCallback((_={},A=null)=>({..._,ref:A,role:"presentation","aria-hidden":!0,children:_.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!w,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:S,getRootProps:P,getLabelProps:v,getRequiredIndicatorProps:T}}var VI=ee(function(t,n){const r=qr("Form",t),o=bt(t),{getRootProps:i,htmlProps:s,...a}=BI(o),l=ve("chakra-form-control",t.className);return k.jsx(NI,{value:a,children:k.jsx(jI,{value:r,children:k.jsx(X.div,{...i({},n),className:l,__css:r.container})})})});VI.displayName="FormControl";var HI=ee(function(t,n){const r=y2(),o=FI(),i=ve("chakra-form__helper-text",t.className);return k.jsx(X.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});HI.displayName="FormHelperText";function WI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=b2(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Dd(n),"aria-required":Dd(o),"aria-readonly":Dd(r)}}function b2(e){var t,n,r;const o=y2(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...y}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...y,"aria-describedby":w.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:lt(o==null?void 0:o.onFocus,p),onBlur:lt(o==null?void 0:o.onBlur,m)}}var UI={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},GI=()=>typeof document<"u",qy=!1,Oa=null,Po=!1,Wp=!1,Up=new Set;function Bm(e,t){Up.forEach(n=>n(e,t))}var KI=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function XI(e){return!(e.metaKey||!KI&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yy(e){Po=!0,XI(e)&&(Oa="keyboard",Bm("keyboard",e))}function Bo(e){if(Oa="pointer",e.type==="mousedown"||e.type==="pointerdown"){Po=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Bm("pointer",e)}}function qI(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function YI(e){qI(e)&&(Po=!0,Oa="virtual")}function QI(e){e.target===window||e.target===document||(!Po&&!Wp&&(Oa="virtual",Bm("virtual",e)),Po=!1,Wp=!1)}function ZI(){Po=!1,Wp=!0}function Qy(){return Oa!=="pointer"}function JI(){if(!GI()||qy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Po=!0,e.apply(this,n)},document.addEventListener("keydown",Yy,!0),document.addEventListener("keyup",Yy,!0),document.addEventListener("click",YI,!0),window.addEventListener("focus",QI,!0),window.addEventListener("blur",ZI,!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)),qy=!0}function eD(e){JI(),e(Qy());const t=()=>e(Qy());return Up.add(t),()=>{Up.delete(t)}}function tD(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function nD(e={}){const t=b2(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:y,value:w,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":v,"aria-invalid":S,...P}=e,T=tD(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=Dr(p),A=Dr(a),z=Dr(l),[M,F]=x.useState(!1),[Y,q]=x.useState(!1),[Q,J]=x.useState(!1),[Z,O]=x.useState(!1);x.useEffect(()=>eD(F),[]);const L=x.useRef(null),[N,W]=x.useState(!0),[V,te]=x.useState(!!c),B=d!==void 0,G=B?d:V,ke=x.useCallback(ne=>{if(r||n){ne.preventDefault();return}B||te(G?ne.target.checked:m?!0:ne.target.checked),_==null||_(ne)},[r,n,G,B,m,_]);er(()=>{L.current&&(L.current.indeterminate=!!m)},[m]),zi(()=>{n&&q(!1)},[n,q]),er(()=>{const ne=L.current;if(!(ne!=null&&ne.form))return;const Ze=()=>{te(!!c)};return ne.form.addEventListener("reset",Ze),()=>{var dt;return(dt=ne.form)==null?void 0:dt.removeEventListener("reset",Ze)}},[]);const he=n&&!f,We=x.useCallback(ne=>{ne.key===" "&&O(!0)},[O]),De=x.useCallback(ne=>{ne.key===" "&&O(!1)},[O]);er(()=>{if(!L.current)return;L.current.checked!==G&&te(L.current.checked)},[L.current]);const Gt=x.useCallback((ne={},Ze=null)=>{const dt=pr=>{Y&&pr.preventDefault(),O(!0)};return{...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(Y),"data-focus-visible":le(Y&&M),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r),"aria-hidden":!0,onMouseDown:lt(ne.onMouseDown,dt),onMouseUp:lt(ne.onMouseUp,()=>O(!1)),onMouseEnter:lt(ne.onMouseEnter,()=>J(!0)),onMouseLeave:lt(ne.onMouseLeave,()=>J(!1))}},[Z,G,n,Y,M,Q,m,i,r]),Kt=x.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(Y),"data-focus-visible":le(Y&&M),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r)}),[Z,G,n,Y,M,Q,m,i,r]),ot=x.useCallback((ne={},Ze=null)=>({...T,...ne,ref:cn(Ze,dt=>{dt&&W(dt.tagName==="LABEL")}),onClick:lt(ne.onClick,()=>{var dt;N||((dt=L.current)==null||dt.click(),requestAnimationFrame(()=>{var pr;(pr=L.current)==null||pr.focus({preventScroll:!0})}))}),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[T,n,G,i,N]),Nn=x.useCallback((ne={},Ze=null)=>({...ne,ref:cn(L,Ze),type:"checkbox",name:y,value:w,id:s,tabIndex:g,onChange:lt(ne.onChange,ke),onBlur:lt(ne.onBlur,A,()=>q(!1)),onFocus:lt(ne.onFocus,z,()=>q(!0)),onKeyDown:lt(ne.onKeyDown,We),onKeyUp:lt(ne.onKeyUp,De),required:o,checked:G,disabled:he,readOnly:r,"aria-label":h,"aria-labelledby":v,"aria-invalid":S?!!S:i,"aria-describedby":u,"aria-disabled":n,style:UI}),[y,w,s,ke,A,z,We,De,o,G,he,r,h,v,S,i,u,n,g]),Bn=x.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,onMouseDown:lt(ne.onMouseDown,rD),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[G,n,i]);return{state:{isInvalid:i,isFocused:Y,isChecked:G,isActive:Z,isHovered:Q,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:ot,getCheckboxProps:Gt,getIndicatorProps:Kt,getInputProps:Nn,getLabelProps:Bn,htmlProps:T}}function rD(e){e.preventDefault(),e.stopPropagation()}function oD(e,t,n,r){const o=Dr(n);return x.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function x2(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function S2(e){var t;if(!x2(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function iD(e){var t,n;return(n=(t=w2(e))==null?void 0:t.defaultView)!=null?n:window}function w2(e){return x2(e)?e.ownerDocument:document}function sD(e){return w2(e).activeElement}var k2=e=>e.hasAttribute("tabindex"),aD=e=>k2(e)&&e.tabIndex===-1;function lD(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function C2(e){return e.parentElement&&C2(e.parentElement)?!0:e.hidden}function uD(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function cD(e){if(!S2(e)||C2(e)||lD(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():uD(e)?!0:k2(e)}function dD(e){return e?S2(e)&&cD(e)&&!aD(e):!1}var[fD,pD]=Ut({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),E2=ee(function(t,n){const r=qr("Input",t),{children:o,className:i,...s}=bt(t),a=ve("chakra-input__group",i),l={},u=Nm(o),c=r.field;u.forEach(f=>{var p,m;r&&(c&&f.type.id==="InputLeftElement"&&(l.paddingStart=(p=c.height)!=null?p:c.h),c&&f.type.id==="InputRightElement"&&(l.paddingEnd=(m=c.height)!=null?m:c.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=u.map(f=>{var p,m;const y=mm({size:((p=f.props)==null?void 0:p.size)||t.size,variant:((m=f.props)==null?void 0:m.variant)||t.variant});return f.type.id!=="Input"?x.cloneElement(f,y):x.cloneElement(f,Object.assign(y,l,f.props))});return k.jsx(X.div,{className:a,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...s,children:k.jsx(fD,{value:r,children:d})})});E2.displayName="InputGroup";var hD=X("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Bc=ee(function(t,n){var r,o;const{placement:i="left",...s}=t,a=pD(),l=a.field,c={[i==="left"?"insetStart":"insetEnd"]:"0",width:(r=l==null?void 0:l.height)!=null?r:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...a.element};return k.jsx(hD,{ref:n,__css:c,...s})});Bc.id="InputElement";Bc.displayName="InputElement";var Vm=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__left-element",r);return k.jsx(Bc,{ref:n,placement:"left",className:i,...o})});Vm.id="InputLeftElement";Vm.displayName="InputLeftElement";var _2=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__right-element",r);return k.jsx(Bc,{ref:n,placement:"right",className:i,...o})});_2.id="InputRightElement";_2.displayName="InputRightElement";var Hm=ee(function(t,n){const{htmlSize:r,...o}=t,i=qr("Input",o),s=bt(o),a=WI(s),l=ve("chakra-input",t.className);return k.jsx(X.input,{size:r,...a,__css:i.field,ref:n,className:l})});Hm.displayName="Input";Hm.id="Input";var[mD,P2]=Ut({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Vc=ee(function(t,n){const r=qr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=bt(t),u=Nm(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return k.jsx(mD,{value:r,children:k.jsx(X.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...d},...l,children:u})})});Vc.displayName="List";var gD=ee((e,t)=>{const{as:n,...r}=e;return k.jsx(Vc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});gD.displayName="OrderedList";var vD=ee(function(t,n){const{as:r,...o}=t;return k.jsx(Vc,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});vD.displayName="UnorderedList";var T2=ee(function(t,n){const r=P2();return k.jsx(X.li,{ref:n,...t,__css:r.item})});T2.displayName="ListItem";var yD=ee(function(t,n){const r=P2();return k.jsx(Oo,{ref:n,role:"presentation",...t,__css:r.icon})});yD.displayName="ListIcon";var Wm=ee(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...m}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return k.jsx(X.div,{ref:n,__css:y,...m})});Wm.displayName="Grid";var A2=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Hc(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):_t(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function bD(e,t=A2){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}var R2=ee(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=$o(),c=a?SD(a,u):wD(r);return k.jsx(Wm,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});R2.displayName="SimpleGrid";function xD(e){return typeof e=="number"?`${e}px`:e}function SD(e,t){return Hc(e,n=>{const r=uS("sizes",n,xD(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function wD(e){return Hc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Wc=ee(function(t,n){const r=Xr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=bt(t),u=mm({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return k.jsx(X.p,{ref:n,className:ve("chakra-text",t.className),...u,...l,__css:r})});Wc.displayName="Text";var $2=e=>k.jsx(X.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});$2.displayName="StackItem";function kD(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Hc(n,o=>r[o])}}var M2=ee((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=n?"row":r??"column",m=x.useMemo(()=>kD({spacing:s,direction:p}),[s,p]),y=!!u,w=!d&&!y,g=x.useMemo(()=>{const v=Nm(l);return w?v:v.map((S,P)=>{const T=typeof S.key<"u"?S.key:P,_=P+1===v.length,z=d?k.jsx($2,{children:S},T):S;if(!y)return z;const M=x.cloneElement(u,{__css:m}),F=_?null:M;return k.jsxs(x.Fragment,{children:[z,F]},T)})},[u,m,y,w,d,l]),h=ve("chakra-stack",c);return k.jsx(X.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:y?void 0:s,className:h,...f,children:g})});M2.displayName="Stack";var Lo=ee((e,t)=>k.jsx(M2,{align:"center",...e,direction:"row",ref:t}));Lo.displayName="HStack";function Zy(e){return Hc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var eu=ee(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=mm({gridArea:r,gridColumn:Zy(o),gridRow:Zy(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return k.jsx(X.div,{ref:n,__css:d,...c})});eu.displayName="GridItem";var Uc=ee(function(t,n){const r=Xr("Heading",t),{className:o,...i}=bt(t);return k.jsx(X.h2,{ref:n,className:ve("chakra-heading",t.className),...i,__css:r})});Uc.displayName="Heading";var Gc=X("div");Gc.displayName="Box";var z2=ee(function(t,n){const{size:r,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Gc,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...i})});z2.displayName="Square";var CD=ee(function(t,n){const{size:r,...o}=t;return k.jsx(z2,{size:r,ref:n,borderRadius:"9999px",...o})});CD.displayName="Circle";var O2=ee(function(t,n){const r=Xr("Badge",t),{className:o,...i}=bt(t);return k.jsx(X.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});O2.displayName="Badge";function L2(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=OM(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(u=>u!=null);const[a,l]=x.useState(()=>i.map((u,c)=>({media:u,matches:n?!!s[c]:o().matchMedia(u).matches})));return x.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function ED(e){const{breakpoint:t,hide:n,children:r,ssr:o}=e,[i]=L2(t,{ssr:o});return(n?!i:i)?r:null}var Jy=(e,t)=>{var n,r;return(r=(n=e==null?void 0:e.breakpoints)==null?void 0:n[t])!=null?r:t};function _D(e){const{breakpoint:t="",below:n,above:r}=e,o=$o(),i=Jy(o,n),s=Jy(o,r);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function I2(e){const{children:t,ssr:n}=e,r=_D(e);return k.jsx(ED,{breakpoint:r,ssr:n,children:t})}I2.displayName="Show";function PD(e,t,n=A2){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function TD(e){var t,n;const r=_t(e)?e:{fallback:e??"base"},i=$o().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===r.fallback),l=L2(i.map(u=>u.query),{fallback:s,ssr:r.ssr}).findIndex(u=>u==!0);return(n=(t=i[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function AD(e,t){var n;const r=_t(t)?t:{fallback:t??"base"},o=TD(r),i=$o();if(!o)return;const s=Array.from(((n=i.__breakpoints)==null?void 0:n.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(bD(e,s)).map(([l,u])=>[l,u])):e;return PD(a,o,s)}function RD(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function $D(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,o]=x.useState([]),i=x.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)},a=()=>{s(),i.current=setTimeout(()=>{o([]),i.current=null},t)};x.useEffect(()=>s,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...r];d.pop(),o(d);return}if(RD(c)){const d=r.concat(c.key);n(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),a()}}}return l}function MD(e,t,n,r){if(t==null)return r;if(!r)return e.find(s=>n(s).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>n(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(r)?(i=o.indexOf(r)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return r}function zD(){const e=x.useRef(new Map),t=e.current,n=x.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),r=x.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return x.useEffect(()=>()=>{t.forEach((o,i)=>{r(o.el,o.type,i,o.options)})},[r,t]),{add:n,remove:r}}function gf(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function OD(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[y,w]=x.useState(!0),[g,h]=x.useState(!1),v=zD(),S=O=>{O&&O.tagName!=="BUTTON"&&w(!1)},P=y?d:d||0,T=n&&!r,_=x.useCallback(O=>{if(n){O.stopPropagation(),O.preventDefault();return}O.currentTarget.focus(),l==null||l(O)},[n,l]),A=x.useCallback(O=>{g&&gf(O)&&(O.preventDefault(),O.stopPropagation(),h(!1),v.remove(document,"keyup",A,!1))},[g,v]),z=x.useCallback(O=>{if(u==null||u(O),n||O.defaultPrevented||O.metaKey||!gf(O.nativeEvent)||y)return;const L=o&&O.key==="Enter";i&&O.key===" "&&(O.preventDefault(),h(!0)),L&&(O.preventDefault(),O.currentTarget.click()),v.add(document,"keyup",A,!1)},[n,y,u,o,i,v,A]),M=x.useCallback(O=>{if(c==null||c(O),n||O.defaultPrevented||O.metaKey||!gf(O.nativeEvent)||y)return;i&&O.key===" "&&(O.preventDefault(),h(!1),O.currentTarget.click())},[i,y,n,c]),F=x.useCallback(O=>{O.button===0&&(h(!1),v.remove(document,"mouseup",F,!1))},[v]),Y=x.useCallback(O=>{if(O.button!==0)return;if(n){O.stopPropagation(),O.preventDefault();return}y||h(!0),O.currentTarget.focus({preventScroll:!0}),v.add(document,"mouseup",F,!1),s==null||s(O)},[n,y,s,v,F]),q=x.useCallback(O=>{O.button===0&&(y||h(!1),a==null||a(O))},[a,y]),Q=x.useCallback(O=>{if(n){O.preventDefault();return}f==null||f(O)},[n,f]),J=x.useCallback(O=>{g&&(O.preventDefault(),h(!1)),p==null||p(O)},[g,p]),Z=cn(t,S);return y?{...m,ref:Z,type:"button","aria-disabled":T?void 0:n,disabled:T,onClick:_,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:Z,role:"button","data-active":le(g),"aria-disabled":n?"true":void 0,tabIndex:T?void 0:P,onClick:_,onMouseDown:Y,onMouseUp:q,onKeyUp:M,onKeyDown:z,onMouseOver:Q,onMouseLeave:J}}function LD(e){const t=e.current;if(!t)return!1;const n=sD(t);return!n||t.contains(n)?!1:!!dD(n)}function ID(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;zi(()=>{if(!i||LD(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var Vo=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),zt={arrowShadowColor:Vo("--popper-arrow-shadow-color"),arrowSize:Vo("--popper-arrow-size","8px"),arrowSizeHalf:Vo("--popper-arrow-size-half"),arrowBg:Vo("--popper-arrow-bg"),transformOrigin:Vo("--popper-transform-origin"),arrowOffset:Vo("--popper-arrow-offset")};function DD(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var jD={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},FD=e=>jD[e],e1={scroll:!0,resize:!0};function ND(e){let t;return typeof e=="object"?t={enabled:!0,options:{...e1,...e}}:t={enabled:e,options:e1},t}var BD={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},VD={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{t1(e)},effect:({state:e})=>()=>{t1(e)}},t1=e=>{e.elements.popper.style.setProperty(zt.transformOrigin.var,FD(e.placement))},HD={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{WD(e)}},WD=e=>{var t;if(!e.placement)return;const n=UD(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:zt.arrowSize.varRef,height:zt.arrowSize.varRef,zIndex:-1});const r={[zt.arrowSizeHalf.var]:`calc(${zt.arrowSize.varRef} / 2 - 1px)`,[zt.arrowOffset.var]:`calc(${zt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},UD=e=>{if(e.startsWith("top"))return{property:"bottom",value:zt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:zt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:zt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:zt.arrowOffset.varRef}},GD={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{n1(e)},effect:({state:e})=>()=>{n1(e)}},n1=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=DD(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:zt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},KD={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},XD={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function qD(e,t="ltr"){var n,r;const o=((n=KD[e])==null?void 0:n[t])||e;return t==="ltr"?o:(r=XD[e])!=null?r:o}var Pt="top",dn="bottom",fn="right",Tt="left",Um="auto",La=[Pt,dn,fn,Tt],Ii="start",ba="end",YD="clippingParents",D2="viewport",cs="popper",QD="reference",r1=La.reduce(function(e,t){return e.concat([t+"-"+Ii,t+"-"+ba])},[]),j2=[].concat(La,[Um]).reduce(function(e,t){return e.concat([t,t+"-"+Ii,t+"-"+ba])},[]),ZD="beforeRead",JD="read",e9="afterRead",t9="beforeMain",n9="main",r9="afterMain",o9="beforeWrite",i9="write",s9="afterWrite",a9=[ZD,JD,e9,t9,n9,r9,o9,i9,s9];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function To(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gm(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l9(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!sn(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function u9(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!sn(o)||!jn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const c9={name:"applyStyles",enabled:!0,phase:"write",fn:l9,effect:u9,requires:["computeStyles"]};function Dn(e){return e.split("-")[0]}var So=Math.max,Ku=Math.min,Di=Math.round;function Gp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function F2(){return!/^((?!chrome|android).)*safari/i.test(Gp())}function ji(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&sn(e)&&(o=e.offsetWidth>0&&Di(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Di(r.height)/e.offsetHeight||1);var s=To(e)?Bt(e):window,a=s.visualViewport,l=!F2()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Km(e){var t=ji(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function N2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dr(e){return Bt(e).getComputedStyle(e)}function d9(e){return["table","td","th"].indexOf(jn(e))>=0}function Qr(e){return((To(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kc(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gm(e)?e.host:null)||Qr(e)}function o1(e){return!sn(e)||dr(e).position==="fixed"?null:e.offsetParent}function f9(e){var t=/firefox/i.test(Gp()),n=/Trident/i.test(Gp());if(n&&sn(e)){var r=dr(e);if(r.position==="fixed")return null}var o=Kc(e);for(Gm(o)&&(o=o.host);sn(o)&&["html","body"].indexOf(jn(o))<0;){var i=dr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ia(e){for(var t=Bt(e),n=o1(e);n&&d9(n)&&dr(n).position==="static";)n=o1(n);return n&&(jn(n)==="html"||jn(n)==="body"&&dr(n).position==="static")?t:n||f9(e)||t}function Xm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hs(e,t,n){return So(e,Ku(t,n))}function p9(e,t,n){var r=Hs(e,t,n);return r>n?n:r}function B2(){return{top:0,right:0,bottom:0,left:0}}function V2(e){return Object.assign({},B2(),e)}function H2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var h9=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,V2(typeof t!="number"?t:H2(t,La))};function m9(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Dn(n.placement),l=Xm(a),u=[Tt,fn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=h9(o.padding,n),f=Km(i),p=l==="y"?Pt:Tt,m=l==="y"?dn:fn,y=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],g=Ia(i),h=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-w/2,S=d[p],P=h-f[c]-d[m],T=h/2-f[c]/2+v,_=Hs(S,T,P),A=l;n.modifiersData[r]=(t={},t[A]=_,t.centerOffset=_-T,t)}}function g9(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||N2(t.elements.popper,o)&&(t.elements.arrow=o))}const v9={name:"arrow",enabled:!0,phase:"main",fn:m9,effect:g9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var y9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function b9(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Di(n*o)/o||0,y:Di(r*o)/o||0}}function i1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,y=m===void 0?0:m,w=typeof c=="function"?c({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),v=Tt,S=Pt,P=window;if(u){var T=Ia(n),_="clientHeight",A="clientWidth";if(T===Bt(n)&&(T=Qr(n),dr(T).position!=="static"&&a==="absolute"&&(_="scrollHeight",A="scrollWidth")),T=T,o===Pt||(o===Tt||o===fn)&&i===ba){S=dn;var z=d&&T===P&&P.visualViewport?P.visualViewport.height:T[_];y-=z-r.height,y*=l?1:-1}if(o===Tt||(o===Pt||o===dn)&&i===ba){v=fn;var M=d&&T===P&&P.visualViewport?P.visualViewport.width:T[A];p-=M-r.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&y9),Y=c===!0?b9({x:p,y},Bt(n)):{x:p,y};if(p=Y.x,y=Y.y,l){var q;return Object.assign({},F,(q={},q[S]=h?"0":"",q[v]=g?"0":"",q.transform=(P.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",q))}return Object.assign({},F,(t={},t[S]=h?y+"px":"",t[v]=g?p+"px":"",t.transform="",t))}function x9(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Dn(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const S9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x9,data:{}};var _l={passive:!0};function w9(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,_l)}),a&&l.addEventListener("resize",n.update,_l),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,_l)}),a&&l.removeEventListener("resize",n.update,_l)}}const k9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:w9,data:{}};var C9={left:"right",right:"left",bottom:"top",top:"bottom"};function tu(e){return e.replace(/left|right|bottom|top/g,function(t){return C9[t]})}var E9={start:"end",end:"start"};function s1(e){return e.replace(/start|end/g,function(t){return E9[t]})}function qm(e){var t=Bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ym(e){return ji(Qr(e)).left+qm(e).scrollLeft}function _9(e,t){var n=Bt(e),r=Qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=F2();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ym(e),y:l}}function P9(e){var t,n=Qr(e),r=qm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=So(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=So(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ym(e),l=-r.scrollTop;return dr(o||n).direction==="rtl"&&(a+=So(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Qm(e){var t=dr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function W2(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:sn(e)&&Qm(e)?e:W2(Kc(e))}function Ws(e,t){var n;t===void 0&&(t=[]);var r=W2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Bt(r),s=o?[i].concat(i.visualViewport||[],Qm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ws(Kc(s)))}function Kp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function T9(e,t){var n=ji(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function a1(e,t,n){return t===D2?Kp(_9(e,n)):To(t)?T9(t,n):Kp(P9(Qr(e)))}function A9(e){var t=Ws(Kc(e)),n=["absolute","fixed"].indexOf(dr(e).position)>=0,r=n&&sn(e)?Ia(e):e;return To(r)?t.filter(function(o){return To(o)&&N2(o,r)&&jn(o)!=="body"}):[]}function R9(e,t,n,r){var o=t==="clippingParents"?A9(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=a1(e,u,r);return l.top=So(c.top,l.top),l.right=Ku(c.right,l.right),l.bottom=Ku(c.bottom,l.bottom),l.left=So(c.left,l.left),l},a1(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function U2(e){var t=e.reference,n=e.element,r=e.placement,o=r?Dn(r):null,i=r?Fi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Pt:l={x:s,y:t.y-n.height};break;case dn:l={x:s,y:t.y+t.height};break;case fn:l={x:t.x+t.width,y:a};break;case Tt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Xm(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ii:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ba:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function xa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?YD:a,u=n.rootBoundary,c=u===void 0?D2:u,d=n.elementContext,f=d===void 0?cs:d,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,g=V2(typeof w!="number"?w:H2(w,La)),h=f===cs?QD:cs,v=e.rects.popper,S=e.elements[m?h:f],P=R9(To(S)?S:S.contextElement||Qr(e.elements.popper),l,c,s),T=ji(e.elements.reference),_=U2({reference:T,element:v,strategy:"absolute",placement:o}),A=Kp(Object.assign({},v,_)),z=f===cs?A:T,M={top:P.top-z.top+g.top,bottom:z.bottom-P.bottom+g.bottom,left:P.left-z.left+g.left,right:z.right-P.right+g.right},F=e.modifiersData.offset;if(f===cs&&F){var Y=F[o];Object.keys(M).forEach(function(q){var Q=[fn,dn].indexOf(q)>=0?1:-1,J=[Pt,dn].indexOf(q)>=0?"y":"x";M[q]+=Y[J]*Q})}return M}function $9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?j2:l,c=Fi(r),d=c?a?r1:r1.filter(function(m){return Fi(m)===c}):La,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,y){return m[y]=xa(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Dn(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function M9(e){if(Dn(e)===Um)return[];var t=tu(e);return[s1(e),t,s1(t)]}function z9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,g=Dn(w),h=g===w,v=l||(h||!m?[tu(w)]:M9(w)),S=[w].concat(v).reduce(function(G,ke){return G.concat(Dn(ke)===Um?$9(t,{placement:ke,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ke)},[]),P=t.rects.reference,T=t.rects.popper,_=new Map,A=!0,z=S[0],M=0;M=0,J=Q?"width":"height",Z=xa(t,{placement:F,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),O=Q?q?fn:Tt:q?dn:Pt;P[J]>T[J]&&(O=tu(O));var L=tu(O),N=[];if(i&&N.push(Z[Y]<=0),a&&N.push(Z[O]<=0,Z[L]<=0),N.every(function(G){return G})){z=F,A=!1;break}_.set(F,N)}if(A)for(var W=m?3:1,V=function(ke){var he=S.find(function(We){var De=_.get(We);if(De)return De.slice(0,ke).every(function(Gt){return Gt})});if(he)return z=he,"break"},te=W;te>0;te--){var B=V(te);if(B==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const O9={name:"flip",enabled:!0,phase:"main",fn:z9,requiresIfExists:["offset"],data:{_skip:!1}};function l1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function u1(e){return[Pt,fn,dn,Tt].some(function(t){return e[t]>=0})}function L9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),l=l1(s,r),u=l1(a,o,i),c=u1(l),d=u1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const I9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:L9};function D9(e,t,n){var r=Dn(e),o=[Tt,Pt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Tt,fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function j9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=j2.reduce(function(c,d){return c[d]=D9(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const F9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j9};function N9(e){var t=e.state,n=e.name;t.modifiersData[n]=U2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const B9={name:"popperOffsets",enabled:!0,phase:"read",fn:N9,data:{}};function V9(e){return e==="x"?"y":"x"}function H9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,w=xa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=Dn(t.placement),h=Fi(t.placement),v=!h,S=Xm(g),P=V9(S),T=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(T){if(i){var q,Q=S==="y"?Pt:Tt,J=S==="y"?dn:fn,Z=S==="y"?"height":"width",O=T[S],L=O+w[Q],N=O-w[J],W=p?-A[Z]/2:0,V=h===Ii?_[Z]:A[Z],te=h===Ii?-A[Z]:-_[Z],B=t.elements.arrow,G=p&&B?Km(B):{width:0,height:0},ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B2(),he=ke[Q],We=ke[J],De=Hs(0,_[Z],G[Z]),Gt=v?_[Z]/2-W-De-he-M.mainAxis:V-De-he-M.mainAxis,Kt=v?-_[Z]/2+W+De+We+M.mainAxis:te+De+We+M.mainAxis,ot=t.elements.arrow&&Ia(t.elements.arrow),Nn=ot?S==="y"?ot.clientTop||0:ot.clientLeft||0:0,Bn=(q=F==null?void 0:F[S])!=null?q:0,Ba=O+Gt-Bn-Nn,ne=O+Kt-Bn,Ze=Hs(p?Ku(L,Ba):L,O,p?So(N,ne):N);T[S]=Ze,Y[S]=Ze-O}if(a){var dt,pr=S==="x"?Pt:Tt,Jc=S==="x"?dn:fn,Xt=T[P],hr=P==="y"?"height":"width",Zr=Xt+w[pr],qt=Xt-w[Jc],Io=[Pt,Tt].indexOf(g)!==-1,Gi=(dt=F==null?void 0:F[P])!=null?dt:0,Va=Io?Zr:Xt-_[hr]-A[hr]-Gi+M.altAxis,Ha=Io?Xt+_[hr]+A[hr]-Gi-M.altAxis:qt,Jr=p&&Io?p9(Va,Xt,Ha):Hs(p?Va:Zr,Xt,p?Ha:qt);T[P]=Jr,Y[P]=Jr-Xt}t.modifiersData[r]=Y}}const W9={name:"preventOverflow",enabled:!0,phase:"main",fn:H9,requiresIfExists:["offset"]};function U9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G9(e){return e===Bt(e)||!sn(e)?qm(e):U9(e)}function K9(e){var t=e.getBoundingClientRect(),n=Di(t.width)/e.offsetWidth||1,r=Di(t.height)/e.offsetHeight||1;return n!==1||r!==1}function X9(e,t,n){n===void 0&&(n=!1);var r=sn(t),o=sn(t)&&K9(t),i=Qr(t),s=ji(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(t)!=="body"||Qm(i))&&(a=G9(t)),sn(t)?(l=ji(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ym(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function q9(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Y9(e){var t=q9(e);return a9.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Q9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c1={placement:"bottom",modifiers:[],strategy:"absolute"};function d1(){for(var e=arguments.length,t=new Array(e),n=0;n{}),v=x.useCallback(()=>{var M;!t||!m.current||!y.current||((M=h.current)==null||M.call(h),w.current=tj(m.current,y.current,{placement:g,modifiers:[GD,HD,VD,{...BD,enabled:!!f},{name:"eventListeners",...ND(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...n??[]],strategy:o}),w.current.forceUpdate(),h.current=w.current.destroy)},[g,t,n,f,s,i,a,l,u,d,c,o]);x.useEffect(()=>()=>{var M;!m.current&&!y.current&&((M=w.current)==null||M.destroy(),w.current=null)},[]);const S=x.useCallback(M=>{m.current=M,v()},[v]),P=x.useCallback((M={},F=null)=>({...M,ref:cn(S,F)}),[S]),T=x.useCallback(M=>{y.current=M,v()},[v]),_=x.useCallback((M={},F=null)=>({...M,ref:cn(T,F),style:{...M.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,f]),A=x.useCallback((M={},F=null)=>{const{size:Y,shadowColor:q,bg:Q,style:J,...Z}=M;return{...Z,ref:F,"data-popper-arrow":"",style:rj(M)}},[]),z=x.useCallback((M={},F=null)=>({...M,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var M;(M=w.current)==null||M.update()},forceUpdate(){var M;(M=w.current)==null||M.forceUpdate()},transformOrigin:zt.transformOrigin.varRef,referenceRef:S,popperRef:T,getPopperProps:_,getArrowProps:A,getArrowInnerProps:z,getReferenceProps:P}}function rj(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function oj(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Dr(n),s=Dr(t),[a,l]=x.useState(e.defaultIsOpen||!1),u=r!==void 0?r:a,c=r!==void 0,d=x.useId(),f=o??`disclosure-${d}`,p=x.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=x.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),y=x.useCallback(()=>{u?p():m()},[u,m,p]);function w(h={}){return{...h,"aria-expanded":u,"aria-controls":f,onClick(v){var S;(S=h.onClick)==null||S.call(h,v),y()}}}function g(h={}){return{...h,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:y,isControlled:c,getButtonProps:w,getDisclosureProps:g}}function ij(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Dr(n),s=x.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;x.useEffect(()=>{if(!r)return;const a=d=>{vf(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&vf(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&vf(d,t)&&(s.isPointerDown=!1,o(d))},c=G2(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[n,t,o,s,r])}function vf(e,t){var n;const r=e.target;return r&&!G2(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function G2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function sj(e){const{isOpen:t,ref:n}=e,[r,o]=x.useState(t),[i,s]=x.useState(!1);return x.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),oD(()=>n.current,"animationend",()=>{o(t)}),{present:!(t?!1:!r),onComplete(){var l;const u=iD(n.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(c)}}}function aj(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[lj,uj,cj,dj]=RI(),[fj,Da]=Ut({strict:!1,name:"MenuContext"});function pj(e,...t){const n=x.useId(),r=e||n;return x.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}function K2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function f1(e){return K2(e).activeElement===e}function hj(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...y}=e,w=x.useRef(null),g=x.useRef(null),h=cj(),v=x.useCallback(()=>{requestAnimationFrame(()=>{var B;(B=w.current)==null||B.focus({preventScroll:!1})})},[]),S=x.useCallback(()=>{const B=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const ke=h.firstEnabled();ke&&q(ke.index)}});L.current.add(B)},[h,o]),P=x.useCallback(()=>{const B=setTimeout(()=>{const G=h.lastEnabled();G&&q(G.index)});L.current.add(B)},[h]),T=x.useCallback(()=>{c==null||c(),i?S():v()},[i,S,v,c]),{isOpen:_,onOpen:A,onClose:z,onToggle:M}=oj({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:T});ij({enabled:_&&r,ref:w,handler:B=>{var G;(G=g.current)!=null&&G.contains(B.target)||z()}});const F=nj({...y,enabled:_||m,placement:d,direction:p}),[Y,q]=x.useState(-1);zi(()=>{_||q(-1)},[_]),ID(w,{focusRef:g,visible:_,shouldFocus:!0});const Q=sj({isOpen:_,ref:w}),[J,Z]=pj(t,"menu-button","menu-list"),O=x.useCallback(()=>{A(),v()},[A,v]),L=x.useRef(new Set([]));x.useEffect(()=>{const B=L.current;return()=>{B.forEach(G=>clearTimeout(G)),B.clear()}},[]);const N=x.useCallback(()=>{A(),S()},[S,A]),W=x.useCallback(()=>{A(),P()},[A,P]),V=x.useCallback(()=>{var B,G;const ke=K2(w.current),he=(B=w.current)==null?void 0:B.contains(ke.activeElement);if(!(_&&!he))return;const De=(G=h.item(Y))==null?void 0:G.node;De==null||De.focus({preventScroll:!0})},[_,Y,h]),te=x.useRef(null);return{openAndFocusMenu:O,openAndFocusFirstItem:N,openAndFocusLastItem:W,onTransitionEnd:V,unstable__animationState:Q,descendants:h,popper:F,buttonId:J,menuId:Z,forceUpdate:F.forceUpdate,orientation:"vertical",isOpen:_,onToggle:M,onOpen:A,onClose:z,menuRef:w,buttonRef:g,focusedIndex:Y,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:q,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:te}}function mj(e={},t=null){const n=Da(),{onToggle:r,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:s}=n,a=x.useCallback(l=>{const u=l.key,d={Enter:i,ArrowDown:i,ArrowUp:s}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[i,s]);return{...e,ref:cn(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":le(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:lt(e.onClick,r),onKeyDown:lt(e.onKeyDown,a)}}function Xp(e){var t;return bj(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function gj(e={},t=null){const n=Da();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:s,onClose:a,menuId:l,isLazy:u,lazyBehavior:c,unstable__animationState:d}=n,f=uj(),p=$D({preventDefault:g=>g.key!==" "&&Xp(g.target)}),m=x.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const h=g.key,S={Tab:T=>T.preventDefault(),Escape:a,ArrowDown:()=>{const T=f.nextEnabled(r);T&&o(T.index)},ArrowUp:()=>{const T=f.prevEnabled(r);T&&o(T.index)}}[h];if(S){g.preventDefault(),S(g);return}const P=p(T=>{const _=MD(f.values(),T,A=>{var z,M;return(M=(z=A==null?void 0:A.node)==null?void 0:z.textContent)!=null?M:""},f.item(r));if(_){const A=f.indexOf(_.node);o(A)}});Xp(g.target)&&P(g)},[f,r,p,a,o]),y=x.useRef(!1);s&&(y.current=!0);const w=aj({wasSelected:y.current,enabled:u,mode:c,isSelected:d.present});return{...e,ref:cn(i,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:lt(e.onKeyDown,m)}}function vj(e={}){const{popper:t,isOpen:n}=Da();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function yj(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,onFocus:s,isDisabled:a,isFocusable:l,closeOnSelect:u,type:c,...d}=e,f=Da(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:y,onClose:w,menuRef:g,isOpen:h,menuId:v,rafId:S}=f,P=x.useRef(null),T=`${v}-menuitem-${x.useId()}`,{index:_,register:A}=dj({disabled:a&&!l}),z=x.useCallback(O=>{n==null||n(O),!a&&p(_)},[p,_,a,n]),M=x.useCallback(O=>{r==null||r(O),P.current&&!f1(P.current)&&z(O)},[z,r]),F=x.useCallback(O=>{o==null||o(O),!a&&p(-1)},[p,a,o]),Y=x.useCallback(O=>{i==null||i(O),Xp(O.currentTarget)&&(u??y)&&w()},[w,i,y,u]),q=x.useCallback(O=>{s==null||s(O),p(_)},[p,s,_]),Q=_===m,J=a&&!l;zi(()=>{if(h)return Q&&!J&&P.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var O;(O=P.current)==null||O.focus({preventScroll:!0}),S.current=null})):g.current&&!f1(g.current)&&g.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[Q,J,g,h]);const Z=OD({onClick:Y,onFocus:q,onMouseEnter:z,onMouseMove:M,onMouseLeave:F,ref:cn(A,P,t),isDisabled:a,isFocusable:l});return{...d,...Z,type:c??Z.type,id:T,role:"menuitem",tabIndex:Q?0:-1}}function bj(e){var t;if(!xj(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function xj(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[Sj,ja]=Ut({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Zm=e=>{const{children:t}=e,n=qr("Menu",e),r=bt(e),{direction:o}=$o(),{descendants:i,...s}=hj({...r,direction:o}),a=x.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return k.jsx(lj,{value:i,children:k.jsx(fj,{value:a,children:k.jsx(Sj,{value:n,children:Yn(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};Zm.displayName="Menu";var X2=ee((e,t)=>{const n=ja();return k.jsx(X.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});X2.displayName="MenuCommand";var wj=ee((e,t)=>{const{type:n,...r}=e,o=ja(),i=r.as||n?n??void 0:"button",s=x.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return k.jsx(X.button,{ref:t,type:i,...r,__css:s})}),q2=e=>{const{className:t,children:n,...r}=e,o=ja(),i=x.Children.only(n),s=x.isValidElement(i)?x.cloneElement(i,{focusable:"false","aria-hidden":!0,className:ve("chakra-menu__icon",i.props.className)}):null,a=ve("chakra-menu__icon-wrapper",t);return k.jsx(X.span,{className:a,...r,__css:o.icon,children:s})};q2.displayName="MenuIcon";var Jm=ee((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:s,...a}=e,l=yj(a,t),c=n||o?k.jsx("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return k.jsxs(wj,{...l,className:ve("chakra-menu__menuitem",l.className),children:[n&&k.jsx(q2,{fontSize:"0.8em",marginEnd:r,children:n}),c,o&&k.jsx(X2,{marginStart:i,children:o})]})});Jm.displayName="MenuItem";var kj={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Cj=X(s2.div),e0=ee(function(t,n){var r,o;const{rootProps:i,motionProps:s,...a}=t,{isOpen:l,onTransitionEnd:u,unstable__animationState:c}=Da(),d=gj(a,n),f=vj(i),p=ja();return k.jsx(X.div,{...f,__css:{zIndex:(o=t.zIndex)!=null?o:(r=p.list)==null?void 0:r.zIndex},children:k.jsx(Cj,{variants:kj,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...p.list},...s,className:ve("chakra-menu__menu-list",d.className),...d,onUpdate:u,onAnimationComplete:yP(c.onComplete,d.onAnimationComplete)})})});e0.displayName="MenuList";var Ej=ee((e,t)=>{const n=ja();return k.jsx(X.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),t0=ee((e,t)=>{const{children:n,as:r,...o}=e,i=mj(o,t),s=r||Ej;return k.jsx(s,{...i,className:ve("chakra-menu__menu-button",e.className),children:k.jsx(X.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});t0.displayName="MenuButton";function _j(){const e=x.useRef(!0);return x.useEffect(()=>{e.current=!1},[]),e.current}function Pj(e){const t=x.useRef();return x.useEffect(()=>{t.current=e},[e]),t.current}var Tj=X("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),qp=H("skeleton-start-color"),Yp=H("skeleton-end-color"),Aj=om({from:{opacity:0},to:{opacity:1}}),Rj=om({from:{borderColor:qp.reference,background:qp.reference},to:{borderColor:Yp.reference,background:Yp.reference}}),n0=ee((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=Xr("Skeleton",n),o=_j(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=bt(n),[p,m]=gP("colors",[i,s]),y=Pj(a),w=ve("chakra-skeleton",c),g={...p&&{[qp.variable]:p},...m&&{[Yp.variable]:m}};if(a){const h=o||y?"none":`${Aj} ${l}s`;return k.jsx(X.div,{ref:t,className:w,__css:{animation:h},...f})}return k.jsx(Tj,{ref:t,className:w,...f,__css:{width:d?"fit-content":void 0,...r,...g,_dark:{...r._dark,...g},animation:`${u}s linear infinite alternate ${Rj}`}})});n0.displayName="Skeleton";function $j(e){return Array(e).fill(1).map((t,n)=>n+1)}var p1=3,Y2=e=>{const{noOfLines:t=p1,spacing:n="0.5rem",skeletonHeight:r="0.5rem",className:o,startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,children:p,...m}=e,y=AD(typeof t=="number"?[t]:t)||p1,w=$j(y),g=v=>y>1&&v===w.length?"80%":"100%",h=ve("chakra-skeleton__group",o);return k.jsx(X.div,{className:h,...m,children:w.map((v,S)=>{if(a&&S>0)return null;const P=a?null:{mb:v===w.length?"0":n,width:g(v),height:r};return k.jsx(n0,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,...P,children:S===0?p:void 0},w.length.toString()+v)})})};Y2.displayName="SkeletonText";var Q2=ee(function(t,n){const r=qr("Switch",t),{spacing:o="0.5rem",children:i,...s}=bt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=nD(s),f=x.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),p=x.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),m=x.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return k.jsxs(X.label,{...c(),className:ve("chakra-switch",t.className),__css:f,children:[k.jsx("input",{className:"chakra-switch__input",...l({},n)}),k.jsx(X.span,{...u(),className:"chakra-switch__track",__css:p,children:k.jsx(X.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),i&&k.jsx(X.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});Q2.displayName="Switch";const Mj="/GameHub/assets/logo-ff4914e6.webp",zj=()=>{const{colorMode:e,toggleColorMode:t}=_c();return k.jsxs(Lo,{children:[k.jsx(Q2,{isChecked:e==="dark",colorScheme:"green",onChange:t}),k.jsx(Wc,{whiteSpace:"nowrap",children:"Dark Mode"})]})};var Z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},h1=Lt.createContext&&Lt.createContext(Z2),Nr=globalThis&&globalThis.__assign||function(){return Nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const t=x.useRef(null);return k.jsx("form",{style:{width:"100%"},onSubmit:n=>{n.preventDefault(),t.current&&e(t.current.value)},children:k.jsxs(E2,{children:[k.jsx(Vm,{children:k.jsx(Dj,{})}),k.jsx(Hm,{ref:t,placeholder:"Search games...",borderRadius:20,variant:"filled"})]})})};function Fj({onSearch:e}){return k.jsxs(Lo,{children:[k.jsx(Fc,{src:Mj,boxSize:"60px"}),k.jsx(jj,{onSearch:e}),k.jsx(zj,{})]})}function tk(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nj}=Object.prototype,{getPrototypeOf:r0}=Object,Xc=(e=>t=>{const n=Nj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>Xc(t)===e),qc=e=>t=>typeof t===e,{isArray:Ui}=Array,Sa=qc("undefined");function Bj(e){return e!==null&&!Sa(e)&&e.constructor!==null&&!Sa(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nk=Fn("ArrayBuffer");function Vj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nk(e.buffer),t}const Hj=qc("string"),an=qc("function"),rk=qc("number"),Yc=e=>e!==null&&typeof e=="object",Wj=e=>e===!0||e===!1,nu=e=>{if(Xc(e)!=="object")return!1;const t=r0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Uj=Fn("Date"),Gj=Fn("File"),Kj=Fn("Blob"),Xj=Fn("FileList"),qj=e=>Yc(e)&&an(e.pipe),Yj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=Xc(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},Qj=Fn("URLSearchParams"),Zj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ui(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ik=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sk=e=>!Sa(e)&&e!==ik;function Qp(){const{caseless:e}=sk(this)&&this||{},t={},n=(r,o)=>{const i=e&&ok(t,o)||o;nu(t[i])&&nu(r)?t[i]=Qp(t[i],r):nu(r)?t[i]=Qp({},r):Ui(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Fa(t,(o,i)=>{n&&an(o)?e[i]=tk(o,n):e[i]=o},{allOwnKeys:r}),e),eF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nF=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&r0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},oF=e=>{if(!e)return null;if(Ui(e))return e;let t=e.length;if(!rk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},iF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&r0(Uint8Array)),sF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},aF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lF=Fn("HTMLFormElement"),uF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),m1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cF=Fn("RegExp"),ak=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},dF=e=>{ak(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fF=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ui(e)?r(e):r(String(e).split(t)),n},pF=()=>{},hF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yf="abcdefghijklmnopqrstuvwxyz",g1="0123456789",lk={DIGIT:g1,ALPHA:yf,ALPHA_DIGIT:yf+yf.toUpperCase()+g1},mF=(e=16,t=lk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gF(e){return!!(e&&an(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vF=e=>{const t=new Array(10),n=(r,o)=>{if(Yc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Ui(r)?[]:{};return Fa(r,(s,a)=>{const l=n(s,o+1);!Sa(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},yF=Fn("AsyncFunction"),bF=e=>e&&(Yc(e)||an(e))&&an(e.then)&&an(e.catch),$={isArray:Ui,isArrayBuffer:nk,isBuffer:Bj,isFormData:Yj,isArrayBufferView:Vj,isString:Hj,isNumber:rk,isBoolean:Wj,isObject:Yc,isPlainObject:nu,isUndefined:Sa,isDate:Uj,isFile:Gj,isBlob:Kj,isRegExp:cF,isFunction:an,isStream:qj,isURLSearchParams:Qj,isTypedArray:iF,isFileList:Xj,forEach:Fa,merge:Qp,extend:Jj,trim:Zj,stripBOM:eF,inherits:tF,toFlatObject:nF,kindOf:Xc,kindOfTest:Fn,endsWith:rF,toArray:oF,forEachEntry:sF,matchAll:aF,isHTMLForm:lF,hasOwnProperty:m1,hasOwnProp:m1,reduceDescriptors:ak,freezeMethods:dF,toObjectSet:fF,toCamelCase:uF,noop:pF,toFiniteNumber:hF,findKey:ok,global:ik,isContextDefined:sk,ALPHABET:lk,generateString:mF,isSpecCompliantForm:gF,toJSONObject:vF,isAsyncFn:yF,isThenable:bF};function se(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uk=se.prototype,ck={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ck[e]={value:e}});Object.defineProperties(se,ck);Object.defineProperty(uk,"isAxiosError",{value:!0});se.from=(e,t,n,r,o,i)=>{const s=Object.create(uk);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const xF=null;function Zp(e){return $.isPlainObject(e)||$.isArray(e)}function dk(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function v1(e,t,n){return e?e.concat(t).map(function(o,i){return o=dk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function SF(e){return $.isArray(e)&&!e.some(Zp)}const wF=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Qc(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!$.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if(!l&&$.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,w){let g=m;if(m&&!w&&typeof m=="object"){if($.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&SF(m)||($.isFileList(m)||$.endsWith(y,"[]"))&&(g=$.toArray(m)))return y=dk(y),g.forEach(function(v,S){!($.isUndefined(v)||v===null)&&t.append(s===!0?v1([y],S,i):s===null?y:y+"[]",u(v))}),!1}return Zp(m)?!0:(t.append(v1(w,y,i),u(m)),!1)}const d=[],f=Object.assign(wF,{defaultVisitor:c,convertValue:u,isVisitable:Zp});function p(m,y){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),$.forEach(m,function(g,h){(!($.isUndefined(g)||g===null)&&o.call(t,g,$.isString(h)?h.trim():h,y,f))===!0&&p(g,y?y.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function y1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function o0(e,t){this._pairs=[],e&&Qc(e,this,t)}const fk=o0.prototype;fk.append=function(t,n){this._pairs.push([t,n])};fk.toString=function(t){const n=t?function(r){return t.call(this,r,y1)}:y1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function kF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pk(e,t,n){if(!t)return e;const r=n&&n.encode||kF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new o0(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class CF{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}const b1=CF,hk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},EF=typeof URLSearchParams<"u"?URLSearchParams:o0,_F=typeof FormData<"u"?FormData:null,PF=typeof Blob<"u"?Blob:null,TF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),AF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:EF,FormData:_F,Blob:PF},isStandardBrowserEnv:TF,isStandardBrowserWebWorkerEnv:AF,protocols:["http","https","file","blob","url","data"]};function RF(e,t){return Qc(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return bn.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $F(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MF(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&$.isArray(o)?o.length:s,l?($.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!$.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&$.isArray(o[s])&&(o[s]=MF(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,o)=>{t($F(r),o,n,0)}),n}return null}function zF(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const i0={transitional:hk,adapter:bn.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(mk(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RF(t,this.formSerializer).toString();if((a=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),zF(t)):t}],transformResponse:[function(t){const n=this.transitional||i0.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?se.from(a,se.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{i0.headers[e]={}});const s0=i0,OF=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LF=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&OF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},x1=Symbol("internals");function ds(e){return e&&String(e).trim().toLowerCase()}function ru(e){return e===!1||e==null?e:$.isArray(e)?e.map(ru):String(e)}function IF(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bf(e,t,n,r,o){if($.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function jF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function FF(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Zc=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=ds(l);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=ru(a))}const s=(a,l)=>$.forEach(a,(u,c)=>i(u,c,l));return $.isPlainObject(t)||t instanceof this.constructor?s(t,n):$.isString(t)&&(t=t.trim())&&!DF(t)?s(LF(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ds(t),t){const r=$.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return IF(o);if($.isFunction(n))return n.call(this,o,r);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ds(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ds(s),s){const a=$.findKey(r,s);a&&(!n||bf(r,r[a],a,n))&&(delete r[a],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||bf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return $.forEach(this,(o,i)=>{const s=$.findKey(r,i);if(s){n[s]=ru(o),delete n[i];return}const a=t?jF(i):String(i).trim();a!==i&&delete n[i],n[a]=ru(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&$.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[x1]=this[x1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ds(s);r[a]||(FF(o,s),r[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};Zc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(Zc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$.freezeMethods(Zc);const or=Zc;function xf(e,t){const n=this||s0,r=t||n,o=or.from(r.headers);let i=r.data;return $.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function gk(e){return!!(e&&e.__CANCEL__)}function Na(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(Na,se,{__CANCEL__:!0});function NF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const BF=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),$.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),$.isString(i)&&l.push("path="+i),$.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function VF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function HF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vk(e,t){return e&&!VF(t)?HF(e,t):t}const WF=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=$.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function UF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function GF(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const KF=typeof XMLHttpRequest<"u",XF=KF&&function(e){return new Promise(function(n,r){let o=e.data;const i=or.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=vk(e.baseURL,e.url);u.open(e.method.toUpperCase(),pk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};NF(function(g){n(g),l()},function(g){r(g),l()},y),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||hk;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const p=(e.withCredentials||WF(c))&&e.xsrfCookieName&&BF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",S1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",S1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Na(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=UF(c);if(f&&bn.protocols.indexOf(f)===-1){r(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},ou={http:xF,xhr:XF};$.forEach(ou,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yk={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof or?e.toJSON():e;function Ni(e,t){t=t||{};const n={};function r(u,c,d){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:d},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function o(u,c,d){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!$.isUndefined(c))return r(void 0,c)}function s(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(k1(u),k1(c),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);$.isUndefined(f)&&d!==a||(n[c]=f)}),n}const bk="1.5.0",a0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const C1={};a0.transitional=function(t,n,r){function o(i,s){return"[Axios v"+bk+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!C1[s]&&(C1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function qF(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const Jp={assertOptions:qF,validators:a0},br=Jp.validators;let Xu=class{constructor(t){this.defaults=t,this.interceptors={request:new b1,response:new b1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ni(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Jp.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:Jp.assertOptions(o,{encode:br.function,serialize:br.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=or.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[w1.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Na(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xk(function(o){t=o}),cancel:t}}};const QF=YF;function ZF(e){return function(n){return e.apply(null,n)}}function JF(e){return $.isObject(e)&&e.isAxiosError===!0}const eh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eh).forEach(([e,t])=>{eh[t]=e});const e7=eh;function Sk(e){const t=new iu(e),n=tk(iu.prototype.request,t);return $.extend(n,iu.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sk(Ni(e,o))},n}const He=Sk(s0);He.Axios=iu;He.CanceledError=Na;He.CancelToken=QF;He.isCancel=gk;He.VERSION=bk;He.toFormData=Qc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=ZF;He.isAxiosError=JF;He.mergeConfig=Ni;He.AxiosHeaders=or;He.formToJSON=e=>mk($.isHTMLForm(e)?new FormData(e):e);He.getAdapter=yk.getAdapter;He.HttpStatusCode=e7;He.default=He;const wk=He,{Axios:$7,AxiosError:M7,CanceledError:t7,isCancel:z7,CancelToken:O7,VERSION:L7,all:I7,Cancel:D7,isAxiosError:j7,spread:F7,toFormData:N7,AxiosHeaders:B7,HttpStatusCode:V7,formToJSON:H7,getAdapter:W7,mergeConfig:U7}=wk,n7=wk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),l0=(e,t,n)=>{const[r,o]=x.useState([]),[i,s]=x.useState(""),[a,l]=x.useState(!1);return x.useEffect(()=>{const u=new AbortController;return o([]),l(!0),n7.get(e,{signal:u.signal,...t}).then(c=>{o(c.data.results),l(!1)}).catch(c=>{c instanceof t7||(s(c.message),l(!1))}),()=>{u.abort()}},n?[...n]:[]),{data:r,error:i,isLoading:a}},r7=e=>{var o,i;const{data:t,isLoading:n,error:r}=l0("/games",{params:{genres:(o=e.genre)==null?void 0:o.id,platforms:(i=e.platform)==null?void 0:i.id,ordering:e.sortOrder,search:e.searchQuery}},[e]);return{games:t,error:r,isLoading:n}};function o7(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"}}]})(e)}function i7(e){return kn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}]})(e)}function s7(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}}]})(e)}function a7(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"}}]})(e)}function l7(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}}]})(e)}function u7(e){return kn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M369.9 318.2c44.3 54.3 64.7 98.8 54.4 118.7-7.9 15.1-56.7 44.6-92.6 55.9-29.6 9.3-68.4 13.3-100.4 10.2-38.2-3.7-76.9-17.4-110.1-39C93.3 445.8 87 438.3 87 423.4c0-29.9 32.9-82.3 89.2-142.1 32-33.9 76.5-73.7 81.4-72.6 9.4 2.1 84.3 75.1 112.3 109.5zM188.6 143.8c-29.7-26.9-58.1-53.9-86.4-63.4-15.2-5.1-16.3-4.8-28.7 8.1-29.2 30.4-53.5 79.7-60.3 122.4-5.4 34.2-6.1 43.8-4.2 60.5 5.6 50.5 17.3 85.4 40.5 120.9 9.5 14.6 12.1 17.3 9.3 9.9-4.2-11-.3-37.5 9.5-64 14.3-39 53.9-112.9 120.3-194.4zm311.6 63.5C483.3 127.3 432.7 77 425.6 77c-7.3 0-24.2 6.5-36 13.9-23.3 14.5-41 31.4-64.3 52.8C367.7 197 427.5 283.1 448.2 346c6.8 20.7 9.7 41.1 7.4 52.3-1.7 8.5-1.7 8.5 1.4 4.6 6.1-7.7 19.9-31.3 25.4-43.5 7.4-16.2 15-40.2 18.6-58.7 4.3-22.5 3.9-70.8-.8-93.4zM141.3 43C189 40.5 251 77.5 255.6 78.4c.7.1 10.4-4.2 21.6-9.7 63.9-31.1 94-25.8 107.4-25.2-63.9-39.3-152.7-50-233.9-11.7-23.4 11.1-24 11.9-9.4 11.2z"}}]})(e)}function c7(e){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function d7(e){return kn({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M0 .6h7.1l9.85 15.9V.6H24v22.8h-7.04L7.06 7.5v15.9H0V.6"}}]})(e)}const f7=({platforms:e})=>{const t={pc:l7,playstation:a7,xbox:u7,nintendo:d7,mac:i7,linux:s7,android:o7,ios:c7,web:Ij};return k.jsx(Lo,{marginY:1,children:e.map(n=>k.jsx(Oo,{as:t[n.slug],color:"gray.500"},n.id))})},p7=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(O2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},h7="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmvvTrUpPBbKXO91WhEjQmLW3p56Qli8mnfj4kPRkskevSLwhli5Xm8b4dVBzWm8b7bLSgsOg07hejWCw9Tf1WUNJYf1n6mageTOR2PhHFgJNp6NehGLCz7i9DNmBpGvpRyBp8bfeDkDV4m9fHoGjwV4Z+B6oFj7m/b0D3YHS78U8RzC4n+JMCv/MK/GrA87SCngL4nlbEZwXWpxXtzYL9aUU6RWxhPmFeNXax3BCniJ2sL76rwWZ2De6I/eShgd0MtlRWWCdsaz4h3S12tr54fhQ2d2gwR+yvrEjuFltcbhgXhV3uGsMRGy0rgLvBXpcXvY/GbvOI3YwdTydwAza9a9B2g22XFbJVYeerxmvG5suK1oD9rxqp5HACecVpNziERYO0aRxDXiH6KJzEqvGZcRhlR2fEeWwamh4nUk5cksOhHFFJFscyv5Akg4PJKyC7xtlsGo1N4XTKicWqcEBHJBac0aJhWHBKZQdhwUEdIVhwVIvGX8ZhlRN9Ged1xF7GiS0aeBlnVm7YZRzbGXQZB7eFXMbRzS/eCg4v72grOL8j1gpOcNVAe3CG0wuzilPMJ8iqOkZEM8SawkluAdY1znLW6CKN0yw3tsjgPPMKLYsjPQLL41C3sAo41kVjKuJgpxdRGUebTzwVnO4ZTRXne8RS0weMWiSRxhEvGkZkccjTiyKPYy43hiIOOu8ISjjrM34KTvv4Y/QnR2eNVlDa2NLmfh5p6rhR/0+07BX+m1zGcQZpHPj6f3iCwl9y3Z6wOPJZ/wotafy99OuFgEOf9H9QPX61bBdkHHu5f4Lq8Mt52//g4PP5B3SPX8/X+K5OHvHGPym8sKvlZHD4F/jV4J2yDXc4/hP6jPcOsyMu4MSdPN6c1eaMKzhQbxrvlmNxxSXsmFeFt/O2t6tbQBXxR2GCy1oyuIcV74I55s3yuIlFwX4wy2Jqwl3MCnVT08A2tOA2ZgW6a8yTj5lNXQdKCjMZzFTUSDK4kElR9phrMdLjSsrDOGO2w8SMSykP4aamQ8fAimspF2CD+YqaR/peEF94M2Y8zHO4mXzBJTUlesZF3E252AbMudj24HbyRbZh1tuyrq4H8QXWTytbZnBB+cDaMe9jV8AV5YNqmFgxK+OS8sGUMPNrVMM15QNpnlq3icw9IT6ImqmJTR43lS+eDXPfFiXcVb5wxsk1gypuK1809eTYHtLXheRi2TH7Y47DhZULZZ7esCbhyspDMkyvGFNxaeUBqafHtpC+NSQPRsL8ryke9zYpinUBy5KMm5sUxLyAYUhXV4eyYhgX0AwxuLxZIfQLyHZEXN8CoV2AmPHgAlcEzTkhdYOoAqgXgF1wuMPtf55wizt8WCFtQcU9Hv9x0heJJnhqBWMHPa7ywk6fkYzLvKAzC1Ab0NRtooOcXYDeAIPrzAc4vwDLv4gLzRe3tIDAvgdXWh5seQGJe6TvFCVFrS6gcM/jVmcFjRbQmFdwrwtoQ09PDd53dbGogRam55jncLU7ZmV6iXcZl3tA1qdXWddwvSdiw0xODdab+0UbsTi5wLqIC84HsDa5h3MVV5wvXsNMTQ/Gk75jJIpXnlrkXMAtTwoXTa0xruCeF7hGnJgffCd90ajB1SdWGedw1QdaI0zLDb5nXPaJVpvWw7embhttsEaYlB98t7jufMAiNafOt4QLzw+rkaeUBtsbrnxSrIadkBl8N3eOMlhdzafyLeLWV6xGmU4abK+49x2rESbjBt/NxaOJFZmpaOJbxNXfUI2uJ6LaYHvF3ecL1WhqHnWwnfTlI1GoRp1GGXyPuP5JoRrPJPLg+wMBWLEaVc2gDL6TlgDUsRpNv07VwfgAGTixGt28TLfB+AdScGM1KLzK0WA8aTHAF6sx8ovSYH2AHBQFazTzElMH6wskYUZrjKzekAbvSYsCanAN8j/n+mC+hzAccI3R/E+5OrhfIA4XXmM0/zO+DvaTkgd0ABujJ/MDOrWxgR4CURSxMUaN+k90eMYWFojEDNoYo2ev/yvK5zY2kZRMoArbP1LN0TtrtNLGWB9zpbGRHlJxILe3BXJx/SdJCwa+f0kPySj6hyyQjfn/SFo4UPs7eojH+WcsEJD7r0haQvD7JwaIyKT/wwdCsv4NSUsJJCkUICeLDHogKFWTQKQlBTQJoABZ6eTPA2kZpQ9pcYEifAIEZhM9DySmJsFDWmTACZ4AoRnFToXYLEKHjNxQTeZECE5DEqdCdHqJY2QHkryJkJ6PtGkQn6oLGyM/YEjUJEhQL2kaZGjmWa8lx+Cd0VopBUAprY11Iaa5r6JihAgqr/qTo9P4c8l1zP3QSJCimrhEJTmFH09tHoWhQY46DvUcNF6b2jwQWEGCyBwqweD9qS11foIoLYyh4hWmmcdxfIMsVZ0pVBxmy3U+p1thAkMcqUFhztK2wxPEaWAHJY2Zc9vObhComRc9Kkyf2/a0lShojGgBi+S2vZwhUjVxgQJWyu16uEOoeiYkhdWmqe61UgWJA0VjxdyObzPkal0eeSw7TfVrV4JF0+KKwtLb8aqFZHVLI4/lp+XSDNmaFlYUOChT3dmVcMGzrAgucn/OdJCuqq+pW3CyXU9myFe7pEeDmWW7sSsBg7igBIam5UQHEfushhx4mpYHM2Ss6mvpBmxN231dCRnYpTQNzubtPAsxGxdSFJibt+cyBO2zjAwG5+22BkmraBERPC7XaVbUwK7Bg81NPZYgbNMKPBjNQ93VIG6f6ZEDr2V6y8gbTZMjC3an7aoEgevmRgYcz9dPDSI3zYwMmN7US0bmoM6LDNgu00cRQlfTrMiA8/k4qELs+kmRAfObusfIHeQpkQX7eTonQvK2CZHFDqbjmQrRa2g+DpvY1C2kZQ/CdBy2UZZXAqRvmYzHTtbnkgfiV/WpROwlT4eQlj8wM0nYznzd4SGB4zwKdnQ4o0AGP7N4sKfpeKIrIaRpDlVtClFXPzhIYTeFprCv6XghQw7nCZDG1nYfNEji9j6LzU3XA0YUGXpbwP4O+yNkcXhZwg6na3yFNC6vKtjkYTppcaT6iyq2OT/DPeSxfU/X+0S8zC6QyOktZLDVVW3uSiShvsRjs+WYbCGTNb0iYb+7wQlSObyhYMfzs7ZCLpffa2rLiKetpAWTol8jg12vaqmHZHa/5rDvcu3MkM35txK2flrZlHBC+6WCza9qo4F0Nj/U1O6RHAsj5HP4GTI4gMO+BxL6+RWPI1jUOFIiStNvZBxCObY5yGj/ExXncFqWIKXzD5A+CFTVrAdiWvW/8ziK6RpFWk7B/lnCYeRlk4OkTn9UcR67RQmyuv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",kk=e=>{if(!e)return h7;const t="media/",n=e.indexOf(t)+t.length;return e.slice(0,n)+"crop/600/400/"+e.slice(n)},m7=({game:e})=>k.jsxs(v2,{children:[k.jsx(Fc,{src:kk(e.background_image)}),k.jsxs(g2,{children:[k.jsxs(Lo,{justifyContent:"space-between",marginBottom:3,children:[k.jsx(f7,{platforms:e.parent_platforms.map(t=>t.platform)}),k.jsx(p7,{score:e.metacritic})]}),k.jsx(Uc,{fontSize:"2xl",children:e.name})]})]}),g7=()=>k.jsxs(v2,{children:[k.jsx(n0,{height:"200px"}),k.jsx(g2,{children:k.jsx(Y2,{})})]}),E1=({children:e})=>k.jsx(Gc,{borderRadius:10,overflow:"hidden",children:e}),v7=({gameQuery:e})=>{const{games:t,error:n,isLoading:r}=r7(e);return n?k.jsx(Wc,{children:n}):k.jsxs(R2,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:[r&&[0,1,2,3,4,5].map(o=>k.jsx(E1,{children:k.jsx(g7,{})},o)),t.map(o=>k.jsx(E1,{children:k.jsx(m7,{game:o})},o.id))]})},y7=()=>{const{data:e,isLoading:t,error:n}=l0("/genres");return{genres:e,error:n,isLoading:t}},b7=({onSelectGenre:e,selectedGenre:t})=>{const{genres:n,isLoading:r,error:o}=y7();return r?k.jsx(jc,{}):k.jsxs(k.Fragment,{children:[k.jsx(Uc,{fontSize:"2xl",marginBottom:3,children:"Genres"}),o&&k.jsx(Wc,{children:o}),k.jsx(Vc,{children:n.map(i=>k.jsx(T2,{paddingY:"5px",children:k.jsxs(Lo,{children:[k.jsx(Fc,{src:kk(i.image_background),boxSize:"32px",borderRadius:"8px",objectFit:"cover"}),k.jsx(Nc,{onClick:()=>e(i),fontSize:"lg",variant:"link",fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",whiteSpace:"normal",textAlign:"left",children:i.name})]})},i.id))})]})},x7=()=>l0("/platforms/lists/parents"),S7=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:n,error:r}=x7();return r?null:k.jsxs(Zm,{children:[k.jsx(t0,{as:Nc,rightIcon:k.jsx(ek,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(e0,{children:n.map(o=>k.jsx(Jm,{onClick:()=>t(o),children:o.name},o.id))})]})},w7=({sortOrder:e,onSelectSortOrder:t})=>{const n=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],r=n.find(o=>o.value===e);return k.jsxs(Zm,{children:[k.jsxs(t0,{as:Nc,rightIcon:k.jsx(ek,{}),children:["Order By: ",r==null?void 0:r.label]}),k.jsx(e0,{children:n.map(o=>k.jsx(Jm,{onClick:()=>t(o.value),children:o.label},o.label))})]})},k7=({gameQuery:e})=>{var n,r;const t=`${((n=e.platform)==null?void 0:n.name)||""} ${((r=e.genre)==null?void 0:r.name)||""} Games`;return k.jsx(Uc,{as:"h1",marginY:5,fontSize:"5xl",children:t})};function C7(){const[e,t]=x.useState({});return k.jsxs(Wm,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(eu,{area:"nav",children:k.jsx(Fj,{onSearch:n=>t({...e,searchQuery:n})})}),k.jsx(I2,{above:"lg",children:k.jsx(eu,{area:"aside",paddingX:5,children:k.jsx(b7,{onSelectGenre:n=>t({...e,genre:n}),selectedGenre:e.genre})})}),k.jsxs(eu,{area:"main",children:[k.jsxs(Gc,{paddingLeft:3,children:[k.jsx(k7,{gameQuery:e}),k.jsxs(Lo,{spacing:5,marginBottom:5,children:[k.jsx(S7,{selectedPlatform:e.platform,onSelectPlatform:n=>t({...e,platform:n})}),k.jsx(w7,{sortOrder:e.sortOrder,onSelectSortOrder:n=>t({...e,sortOrder:n})})]})]}),k.jsx(v7,{gameQuery:e})]})]})}const E7={initialColorMode:"dark",useSystemColorMode:!1},_1=oM({config:E7,colors:{gray:{50:"#f9f9f9",100:"#ededed",200:"#d3d3d3",300:"#b3b3b3",400:"#a0a0a0",500:"#898989",600:"#6c6c6c",700:"#202020",800:"#121212",900:"#111"}}});wf.createRoot(document.getElementById("root")).render(k.jsx(Lt.StrictMode,{children:k.jsxs(xI,{theme:_1,children:[k.jsx(fP,{initialColorMode:_1.config.initialColorMode}),k.jsx(C7,{})]})})); diff --git a/assets/index-e61ec411.js b/assets/index-e61ec411.js new file mode 100644 index 0000000..d2b6dbf --- /dev/null +++ b/assets/index-e61ec411.js @@ -0,0 +1,370 @@ +function OC(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var el=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ih(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O1={exports:{}},ec={},z1={exports:{}},re={};/** + * @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 _a=Symbol.for("react.element"),zC=Symbol.for("react.portal"),LC=Symbol.for("react.fragment"),DC=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),jC=Symbol.for("react.provider"),FC=Symbol.for("react.context"),BC=Symbol.for("react.forward_ref"),NC=Symbol.for("react.suspense"),VC=Symbol.for("react.memo"),HC=Symbol.for("react.lazy"),R0=Symbol.iterator;function WC(e){return e===null||typeof e!="object"?null:(e=R0&&e[R0]||e["@@iterator"],typeof e=="function"?e:null)}var L1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D1=Object.assign,I1={};function Vi(e,t,n){this.props=e,this.context=t,this.refs=I1,this.updater=n||L1}Vi.prototype.isReactComponent={};Vi.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")};Vi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function j1(){}j1.prototype=Vi.prototype;function sh(e,t,n){this.props=e,this.context=t,this.refs=I1,this.updater=n||L1}var ah=sh.prototype=new j1;ah.constructor=sh;D1(ah,Vi.prototype);ah.isPureReactComponent=!0;var M0=Array.isArray,F1=Object.prototype.hasOwnProperty,lh={current:null},B1={key:!0,ref:!0,__self:!0,__source:!0};function N1(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)F1.call(t,r)&&!B1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,te=L[V];if(0>>1;Vo(ke,W))heo(We,ke)?(L[V]=We,L[he]=W,V=he):(L[V]=ke,L[G]=W,V=G);else if(heo(We,W))L[V]=We,L[he]=W,V=he;else break e}}return B}function o(L,B){var W=L.sortIndex-B.sortIndex;return W!==0?W:L.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,y=!1,w=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 v(L){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=L)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function S(L){if(y=!1,v(L),!m)if(n(l)!==null)m=!0,Z(T);else{var B=n(u);B!==null&&z(S,B.startTime-L)}}function T(L,B){m=!1,y&&(y=!1,g(A),A=-1),p=!0;var W=f;try{for(v(B),d=n(l);d!==null&&(!(d.expirationTime>B)||L&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var te=V(d.expirationTime<=B);B=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),v(B)}else r(l);d=n(l)}if(d!==null)var N=!0;else{var G=n(u);G!==null&&z(S,G.startTime-B),N=!1}return N}finally{d=null,f=W,p=!1}}var P=!1,_=null,A=-1,O=5,$=-1;function F(){return!(e.unstable_now()-$L||125V?(L.sortIndex=W,t(u,L),n(l)===null&&L===n(u)&&(y?(g(A),A=-1):y=!0,z(S,W-V))):(L.sortIndex=te,t(l,L),m||p||(m=!0,Z(T))),L},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(L){var B=f;return function(){var W=f;f=B;try{return L.apply(this,arguments)}finally{f=W}}}})(U1);W1.exports=U1;var tE=W1.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 G1=b,Ft=tE;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ef=Object.prototype.hasOwnProperty,nE=/^[: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]*$/,z0={},L0={};function rE(e){return Ef.call(L0,e)?!0:Ef.call(z0,e)?!1:nE.test(e)?L0[e]=!0:(z0[e]=!0,!1)}function oE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iE(e,t,n,r){if(t===null||typeof t>"u"||oE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new bt(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){ot[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ch=/[\-:]([a-z])/g;function dh(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(ch,dh);ot[t]=new bt(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(ch,dh);ot[t]=new bt(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(ch,dh);ot[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function fh(e,t,n,r){var o=ot.hasOwnProperty(t)?ot[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ps(e):""}function sE(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=md(e.type,!1),e;case 11:return e=md(e.type.render,!1),e;case 1:return e=md(e.type,!0),e;default:return""}}function Af(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 Uo:return"Fragment";case Wo:return"Portal";case _f:return"Profiler";case ph:return"StrictMode";case Tf:return"Suspense";case Pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X1:return(e.displayName||"Context")+".Consumer";case Y1:return(e._context.displayName||"Context")+".Provider";case hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mh:return t=e.displayName||null,t!==null?t:Af(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return Af(e(t))}catch{}}return null}function aE(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 Af(t);case 8:return t===ph?"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 Nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lE(e){var t=Q1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rl(e){e._valueTracker||(e._valueTracker=lE(e))}function Z1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function du(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 Rf(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function I0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function J1(e,t){t=t.checked,t!=null&&fh(e,"checked",t,!1)}function Mf(e,t){J1(e,t);var n=Nr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$f(e,t.type,n):t.hasOwnProperty("defaultValue")&&$f(e,t.type,Nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function j0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $f(e,t,n){(t!=="number"||du(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hs=Array.isArray;function fi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ys(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cs={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},uE=["Webkit","ms","Moz","O"];Object.keys(Cs).forEach(function(e){uE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cs[t]=Cs[e]})});function rb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cs.hasOwnProperty(e)&&Cs[e]?(""+t).trim():t+"px"}function ob(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cE=Oe({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 Lf(e,t){if(t){if(cE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Df(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 If=null;function gh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jf=null,pi=null,hi=null;function N0(e){if(e=Aa(e)){if(typeof jf!="function")throw Error(D(280));var t=e.stateNode;t&&(t=ic(t),jf(e.stateNode,e.type,t))}}function ib(e){pi?hi?hi.push(e):hi=[e]:pi=e}function sb(){if(pi){var e=pi,t=hi;if(hi=pi=null,N0(e),t)for(e=0;e>>=0,e===0?32:31-(SE(e)/wE|0)|0}var il=64,sl=4194304;function ms(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 mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ms(a):(i&=s,i!==0&&(r=ms(i)))}else s=n&~o,s!==0?r=ms(s):i!==0&&(r=ms(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ta(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function _E(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_s),q0=String.fromCharCode(32),Q0=!1;function _b(e,t){switch(e){case"keyup":return e5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Go=!1;function n5(e,t){switch(e){case"compositionend":return Tb(t);case"keypress":return t.which!==32?null:(Q0=!0,q0);case"textInput":return e=t.data,e===q0&&Q0?null:e;default:return null}}function r5(e,t){if(Go)return e==="compositionend"||!Ch&&_b(e,t)?(e=Cb(),Ll=Sh=Tr=null,Go=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tg(n)}}function Mb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $b(){for(var e=window,t=du();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=du(e.document)}return t}function Eh(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 f5(e){var t=$b(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mb(n.ownerDocument.documentElement,n)){if(r!==null&&Eh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ng(n,i);var s=ng(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ko=null,Wf=null,Ps=null,Uf=!1;function rg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uf||Ko==null||Ko!==du(r)||(r=Ko,"selectionStart"in r&&Eh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ps&&ea(Ps,r)||(Ps=r,r=yu(Wf,"onSelect"),0qo||(e.current=Qf[qo],Qf[qo]=null,qo--)}function xe(e,t){qo++,Qf[qo]=e.current,e.current=t}var Vr={},dt=Gr(Vr),Ct=Gr(!1),wo=Vr;function Ei(e,t){var n=e.type.contextTypes;if(!n)return Vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Et(e){return e=e.childContextTypes,e!=null}function xu(){_e(Ct),_e(dt)}function cg(e,t,n){if(dt.current!==Vr)throw Error(D(168));xe(dt,t),xe(Ct,n)}function Nb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,aE(e)||"Unknown",o));return Oe({},n,r)}function Su(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vr,wo=dt.current,xe(dt,e),xe(Ct,Ct.current),!0}function dg(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Nb(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,_e(Ct),_e(dt),xe(dt,e)):_e(Ct),xe(Ct,n)}var Un=null,sc=!1,Ad=!1;function Vb(e){Un===null?Un=[e]:Un.push(e)}function C5(e){sc=!0,Vb(e)}function Kr(){if(!Ad&&Un!==null){Ad=!0;var e=0,t=ge;try{var n=Un;for(ge=1;e>=s,o-=s,Yn=1<<32-xn(t)+o|n<A?(O=_,_=null):O=_.sibling;var $=f(g,_,v[A],S);if($===null){_===null&&(_=O);break}e&&_&&$.alternate===null&&t(g,_),h=i($,h,A),P===null?T=$:P.sibling=$,P=$,_=O}if(A===v.length)return n(g,_),Ae&&oo(g,A),T;if(_===null){for(;AA?(O=_,_=null):O=_.sibling;var F=f(g,_,$.value,S);if(F===null){_===null&&(_=O);break}e&&_&&F.alternate===null&&t(g,_),h=i(F,h,A),P===null?T=F:P.sibling=F,P=F,_=O}if($.done)return n(g,_),Ae&&oo(g,A),T;if(_===null){for(;!$.done;A++,$=v.next())$=d(g,$.value,S),$!==null&&(h=i($,h,A),P===null?T=$:P.sibling=$,P=$);return Ae&&oo(g,A),T}for(_=r(g,_);!$.done;A++,$=v.next())$=p(_,g,A,$.value,S),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?A:$.key),h=i($,h,A),P===null?T=$:P.sibling=$,P=$);return e&&_.forEach(function(q){return t(g,q)}),Ae&&oo(g,A),T}function w(g,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Uo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case nl:e:{for(var T=v.key,P=h;P!==null;){if(P.key===T){if(T=v.type,T===Uo){if(P.tag===7){n(g,P.sibling),h=o(P,v.props.children),h.return=g,g=h;break e}}else if(P.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Sr&&yg(T)===P.type){n(g,P.sibling),h=o(P,v.props),h.ref=ns(g,P,v),h.return=g,g=h;break e}n(g,P);break}else t(g,P);P=P.sibling}v.type===Uo?(h=vo(v.props.children,g.mode,S,v.key),h.return=g,g=h):(S=Hl(v.type,v.key,v.props,null,g.mode,S),S.ref=ns(g,h,v),S.return=g,g=S)}return s(g);case Wo:e:{for(P=v.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=o(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Id(v,g.mode,S),h.return=g,g=h}return s(g);case Sr:return P=v._init,w(g,h,P(v._payload),S)}if(hs(v))return m(g,h,v,S);if(Qi(v))return y(g,h,v,S);pl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,v),h.return=g,g=h):(n(g,h),h=Dd(v,g.mode,S),h.return=g,g=h),s(g)):n(g,h)}return w}var Ti=qb(!0),Qb=qb(!1),Ra={},On=Gr(Ra),oa=Gr(Ra),ia=Gr(Ra);function po(e){if(e===Ra)throw Error(D(174));return e}function zh(e,t){switch(xe(ia,t),xe(oa,e),xe(On,Ra),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zf(t,e)}_e(On),xe(On,t)}function Pi(){_e(On),_e(oa),_e(ia)}function Zb(e){po(ia.current);var t=po(On.current),n=zf(t,e.type);t!==n&&(xe(oa,e),xe(On,n))}function Lh(e){oa.current===e&&(_e(On),_e(oa))}var Re=Gr(0);function Tu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rd=[];function Dh(){for(var e=0;en?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{ge=n,Md.transition=r}}function hx(){return un().memoizedState}function P5(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mx(e))gx(t,n);else if(n=Gb(e,t,n,r),n!==null){var o=gt();Sn(n,e,r,o),vx(n,t,r)}}function A5(e,t,n){var r=Lr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mx(e))gx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,wn(a,s)){var l=t.interleaved;l===null?(o.next=o,$h(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Gb(e,t,o,r),n!==null&&(o=gt(),Sn(n,e,r,o),vx(n,t,r))}}function mx(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function gx(e,t){As=Pu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yh(e,n)}}var Au={readContext:ln,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},R5={readContext:ln,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:xg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4194308,4,ux.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=P5.bind(null,$e,e),[r.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:bg,useDebugValue:Nh,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=bg(!1),t=e[0];return e=T5.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$e,o=_n();if(Ae){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),qe===null)throw Error(D(349));Co&30||tx(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xg(rx.bind(null,r,i,e),[e]),r.flags|=2048,la(9,nx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_n(),t=qe.identifierPrefix;if(Ae){var n=Xn,r=Yn;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=sa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mn]=t,e[ra]=r,_x(e,t,!1,!1),t.stateNode=e;e:{switch(s=Df(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;oRi&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=Tu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ae)return at(t),null}else 2*je()-i.renderingStartTime>Ri&&n!==1073741824&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,n=Re.current,xe(Re,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return Kh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ot&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function j5(e,t){switch(Th(t),t.tag){case 1:return Et(t.type)&&xu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pi(),_e(Ct),_e(dt),Dh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lh(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return Pi(),null;case 10:return Mh(t.type._context),null;case 22:case 23:return Kh(),null;case 24:return null;default:return null}}var ml=!1,ct=!1,F5=typeof WeakSet=="function"?WeakSet:Set,j=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function up(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Ag=!1;function B5(e,t){if(Gf=gu,e=$b(),Eh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kf={focusedElem:e,selectionRange:n},gu=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:mn(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Ag,Ag=!1,m}function Rs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&up(t,n,i)}o=o.next}while(o!==r)}}function uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ax(e){var t=e.alternate;t!==null&&(e.alternate=null,Ax(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ra],delete t[qf],delete t[w5],delete t[k5])),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 Rx(e){return e.tag===5||e.tag===3||e.tag===4}function Rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rx(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 dp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bu));else if(r!==4&&(e=e.child,e!==null))for(dp(e,t,n),e=e.sibling;e!==null;)dp(e,t,n),e=e.sibling}function fp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fp(e,t,n),e=e.sibling;e!==null;)fp(e,t,n),e=e.sibling}var et=null,gn=!1;function mr(e,t,n){for(n=n.child;n!==null;)Mx(e,t,n),n=n.sibling}function Mx(e,t,n){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(tc,n)}catch{}switch(n.tag){case 5:ct||ei(n,t);case 6:var r=et,o=gn;et=null,mr(e,t,n),et=r,gn=o,et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?Pd(e.parentNode,n):e.nodeType===1&&Pd(e,n),Zs(e)):Pd(et,n.stateNode));break;case 4:r=et,o=gn,et=n.stateNode.containerInfo,gn=!0,mr(e,t,n),et=r,gn=o;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&up(n,t,s),o=o.next}while(o!==r)}mr(e,t,n);break;case 1:if(!ct&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}mr(e,t,n);break;case 21:mr(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,mr(e,t,n),ct=r):mr(e,t,n);break;default:mr(e,t,n)}}function Mg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new F5),t.forEach(function(r){var o=X5.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V5(r/1960))-r,10e?16:e,Pr===null)var r=!1;else{if(e=Pr,Pr=null,$u=0,ae&6)throw Error(D(331));var o=ae;for(ae|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lje()-Uh?go(e,0):Wh|=n),_t(e,t)}function Fx(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=gt();e=ar(e,t),e!==null&&(Ta(e,t,n),_t(e,n))}function Y5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fx(e,n)}function X5(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Fx(e,n)}var Bx;Bx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return kt=!1,D5(e,t,n);kt=!!(e.flags&131072)}else kt=!1,Ae&&t.flags&1048576&&Hb(t,ku,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var o=Ei(t,dt.current);gi(t,n),o=jh(null,t,r,e,o,n);var i=Fh();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,Et(r)?(i=!0,Su(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oh(t),o.updater=ac,t.stateNode=o,o._reactInternals=t,np(t,r,e,n),t=ip(null,t,r,!0,i,n)):(t.tag=0,Ae&&i&&_h(t),ht(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Q5(r),e=mn(r,e),o){case 0:t=op(null,t,r,e,n);break e;case 1:t=_g(null,t,r,e,n);break e;case 11:t=Cg(null,t,r,e,n);break e;case 14:t=Eg(null,t,r,mn(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),op(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),_g(e,t,r,o,n);case 3:e:{if(kx(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Kb(e,t),_u(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ai(Error(D(423)),t),t=Tg(e,t,r,n,o);break e}else if(r!==o){o=Ai(Error(D(424)),t),t=Tg(e,t,r,n,o);break e}else for(Lt=$r(t.stateNode.containerInfo.firstChild),Dt=t,Ae=!0,vn=null,n=Qb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===o){t=lr(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return Zb(t),e===null&&Jf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),wx(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&Jf(t),null;case 13:return Cx(e,t,n);case 4:return zh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ti(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Cg(e,t,r,o,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,xe(Cu,r._currentValue),r._currentValue=s,i!==null)if(wn(i.value,s)){if(i.children===o.children&&!Ct.current){t=lr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ep(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(D(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ep(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ht(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gi(t,n),o=ln(o),r=r(o),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Eg(e,t,r,o,n);case 15:return xx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Bl(e,t),t.tag=1,Et(r)?(e=!0,Su(t)):e=!1,gi(t,n),Xb(t,r,o),np(t,r,o,n),ip(null,t,r,!0,e,n);case 19:return Ex(e,t,n);case 22:return Sx(e,t,n)}throw Error(D(156,t.tag))};function Nx(e,t){return pb(e,t)}function q5(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,n,r){return new q5(e,t,n,r)}function Xh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q5(e){if(typeof e=="function")return Xh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hh)return 11;if(e===mh)return 14}return 2}function Dr(e,t){var n=e.alternate;return n===null?(n=nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Xh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Uo:return vo(n.children,o,i,t);case ph:s=8,o|=8;break;case _f:return e=nn(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=nn(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Pf:return e=nn(19,n,t,o),e.elementType=Pf,e.lanes=i,e;case q1:return dc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y1:s=10;break e;case X1:s=9;break e;case hh:s=11;break e;case mh:s=14;break e;case Sr:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=nn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function vo(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function dc(e,t,n,r){return e=nn(22,e,r,t),e.elementType=q1,e.lanes=n,e.stateNode={isHidden:!1},e}function Dd(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function Id(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z5(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vd(0),this.expirationTimes=vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qh(e,t,n,r,o,i,s,a,l){return e=new Z5(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(i),e}function J5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),H1.exports=Vt;var em=H1.exports,Fg=em;Cf.createRoot=Fg.createRoot,Cf.hydrateRoot=Fg.hydrateRoot;function o_(e){if(e.sheet)return e.sheet;for(var t=0;t0?tt(Ui,--Rt):0,Mi--,Ne===10&&(Mi=1,vc--),Ne}function It(){return Ne=Rt2||da(Ne)>3?"":" "}function v_(e,t){for(;--t&&It()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Ma(e,Wl()+(t<6&&zn()==32&&It()==32))}function yp(e){for(;It();)switch(Ne){case e:return Rt;case 34:case 39:e!==34&&e!==39&&yp(Ne);break;case 40:e===41&&yp(e);break;case 92:It();break}return Rt}function y_(e,t){for(;It()&&e+Ne!==47+10;)if(e+Ne===42+42&&zn()===47)break;return"/*"+Ma(t,Rt-1)+"*"+gc(e===47?e:It())}function b_(e){for(;!da(zn());)It();return Ma(e,Rt)}function x_(e){return Qx(Gl("",null,null,null,[""],e=qx(e),0,[0],e))}function Gl(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,y=1,w=1,g=1,h=0,v="",S=o,T=i,P=r,_=v;w;)switch(m=h,h=It()){case 40:if(m!=108&&tt(_,d-1)==58){vp(_+=fe(Ul(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:_+=Ul(h);break;case 9:case 10:case 13:case 32:_+=g_(m);break;case 92:_+=v_(Wl()-1,7);continue;case 47:switch(zn()){case 42:case 47:yl(S_(y_(It(),Wl()),t,n),l);break;default:_+="/"}break;case 123*y:a[u++]=An(_)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:g==-1&&(_=fe(_,/\f/g,"")),p>0&&An(_)-d&&yl(p>32?Ng(_+";",r,n,d-1):Ng(fe(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(yl(P=Bg(_,t,n,u,c,o,a,v,S=[],T=[],d),i),h===123)if(c===0)Gl(_,t,P,P,S,i,d,a,T);else switch(f===99&&tt(_,3)===110?100:f){case 100:case 108:case 109:case 115:Gl(e,P,P,r&&yl(Bg(e,P,P,0,0,o,a,v,o,S=[],d),T),o,T,d,a,r?S:T);break;default:Gl(_,P,P,P,[""],T,0,a,T)}}u=c=p=0,y=g=1,v=_="",d=s;break;case 58:d=1+An(_),p=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&m_()==125)continue}switch(_+=gc(h),h*y){case 38:g=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(An(_)-1)*g,g=1;break;case 64:zn()===45&&(_+=Ul(It())),f=zn(),c=d=An(v=_+=b_(Wl())),h++;break;case 45:m===45&&An(_)==2&&(y=0)}}return i}function Bg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=rm(f),m=0,y=0,w=0;m0?f[g]+" "+h:fe(h,/&\f/g,f[g])))&&(l[w++]=v);return yc(e,t,n,o===0?tm:a,l,u,c)}function S_(e,t,n){return yc(e,t,n,Gx,gc(h_()),ca(e,2,-2),0)}function Ng(e,t,n,r){return yc(e,t,n,nm,ca(e,0,r),ca(e,r+1,-1),r)}function yi(e,t){for(var n="",r=rm(e),o=0;o6)switch(tt(e,t+1)){case 109:if(tt(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+Lu+(tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vp(e,"stretch")?Jx(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tt(e,t+1)!==115)break;case 6444:switch(tt(e,An(e)-3-(~vp(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(tt(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+lt+"$2box$3")+e}break;case 5936:switch(tt(e,t+11)){case 114:return de+e+lt+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+lt+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+lt+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+lt+e+e}return e}var R_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case nm:t.return=Jx(t.value,t.length);break;case Kx:return yi([is(t,{value:fe(t.value,"@","@"+de)})],o);case tm:if(t.length)return p_(t.props,function(i){switch(f_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yi([is(t,{props:[fe(i,/:(read-\w+)/,":"+Lu+"$1")]})],o);case"::placeholder":return yi([is(t,{props:[fe(i,/:(plac\w+)/,":"+de+"input-$1")]}),is(t,{props:[fe(i,/:(plac\w+)/,":"+Lu+"$1")]}),is(t,{props:[fe(i,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},M_=[R_],$_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||M_,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var W_={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},U_=/[A-Z]|^ms/g,G_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sS=function(t){return t.charCodeAt(1)===45},Wg=function(t){return t!=null&&typeof t!="boolean"},jd=Zx(function(e){return sS(e)?e:e.replace(U_,"-$&").toLowerCase()}),Ug=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(G_,function(r,o,i){return Rn={name:o,styles:i,next:Rn},o})}return W_[t]!==1&&!sS(t)&&typeof n=="number"&&n!==0?n+"px":n};function fa(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return o}return K_(e,t,n)}case"function":{if(e!==void 0){var i=Rn,s=n(e);return Rn=i,fa(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function K_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;ok.jsx(Ac,{styles:dS}),tT=({scope:e=""})=>k.jsx(Ac,{styles:cS` + 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; + } + + ${dS} + `});function nT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ut(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=b.createContext(s);a.displayName=t;function l(){var u;const c=b.useContext(a);if(!c&&n){const d=new Error(i??nT(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[rT,oT]=Ut({strict:!1,name:"PortalManagerContext"});function fS(e){const{children:t,zIndex:n}=e;return k.jsx(rT,{value:{zIndex:n},children:t})}fS.displayName="PortalManager";var er=globalThis!=null&&globalThis.document?b.useLayoutEffect:b.useEffect,[pS,iT]=Ut({strict:!1,name:"PortalContext"}),um="chakra-portal",sT=".chakra-portal",aT=e=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),lT=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=b.useState(null),i=b.useRef(null),[,s]=b.useState({});b.useEffect(()=>s({}),[]);const a=iT(),l=oT();er(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=um,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?k.jsx(aT,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?em.createPortal(k.jsx(pS,{value:i.current,children:u}),i.current):k.jsx("span",{ref:c=>{c&&o(c)}})},uT=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=b.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=um),l},[o]),[,a]=b.useState({});return er(()=>a({}),[]),er(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?em.createPortal(k.jsx(pS,{value:r?s:null,children:t}),s):null};function Rc(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?k.jsx(uT,{containerRef:n,...r}):k.jsx(lT,{...r})}Rc.className=um;Rc.selector=sT;Rc.displayName="Portal";function Mo(){const e=b.useContext(pa);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var cm=b.createContext({});cm.displayName="ColorModeContext";function $a(){const e=b.useContext(cm);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var bl={light:"chakra-ui-light",dark:"chakra-ui-dark"};function cT(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?bl.dark:bl.light),document.body.classList.remove(r?bl.light:bl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var dT="chakra-ui-color-mode";function fT(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var pT=fT(dT),Yg=()=>{};function Xg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function hS(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=pT}=e,a=o==="dark"?"dark":"light",[l,u]=b.useState(()=>Xg(s,a)),[c,d]=b.useState(()=>Xg(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:y}=b.useMemo(()=>cT({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,g=b.useCallback(S=>{const T=S==="system"?f():S;u(T),p(T==="dark"),m(T),s.set(T)},[s,f,p,m]);er(()=>{o==="system"&&d(f())},[]),b.useEffect(()=>{const S=s.get();if(S){g(S);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=b.useCallback(()=>{g(w==="dark"?"light":"dark")},[w,g]);b.useEffect(()=>{if(r)return y(g)},[r,y,g]);const v=b.useMemo(()=>({colorMode:t??w,toggleColorMode:t?Yg:h,setColorMode:t?Yg:g,forced:t!==void 0}),[w,h,g,t]);return k.jsx(cm.Provider,{value:v,children:n})}hS.displayName="ColorModeProvider";var hT=new Set(["dark","light","system"]);function mT(e){let t=e;return hT.has(t)||(t="light"),t}function gT(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=mT(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:a}`.trim()}function vT(e={}){const{nonce:t}=e;return k.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:gT(e)}})}function yT(){const e=$a(),t=Mo();return{...e,theme:t}}function bT(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__breakpoints)==null?void 0:a.asArray)==null?void 0:l[s]};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function xT(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function ST(e,t,n){const r=Mo();return mS(e,t,n)(r)}function mS(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,u)=>{var c,d;if(e==="breakpoints")return bT(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return xT(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var ve=(...e)=>e.filter(Boolean).join(" ");function Tt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function qn(e,...t){return wT(e)?e(...t):e}var wT=e=>typeof e=="function",le=e=>e?"":void 0,Fd=e=>e?!0:void 0;function ut(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function kT(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var Iu={exports:{}};Iu.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",y="[object Map]",w="[object Number]",g="[object Null]",h="[object Object]",v="[object Proxy]",S="[object RegExp]",T="[object Set]",P="[object String]",_="[object Undefined]",A="[object WeakMap]",O="[object ArrayBuffer]",$="[object DataView]",F="[object Float32Array]",q="[object Float64Array]",X="[object Int8Array]",Q="[object Int16Array]",J="[object Int32Array]",Z="[object Uint8Array]",z="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,N={};N[F]=N[q]=N[X]=N[Q]=N[J]=N[Z]=N[z]=N[L]=N[B]=!0,N[a]=N[l]=N[O]=N[c]=N[$]=N[d]=N[f]=N[p]=N[y]=N[w]=N[h]=N[S]=N[T]=N[P]=N[A]=!1;var G=typeof el=="object"&&el&&el.Object===Object&&el,ke=typeof self=="object"&&self&&self.Object===Object&&self,he=G||ke||Function("return this")(),We=t&&!t.nodeType&&t,Ie=We&&!0&&e&&!e.nodeType&&e,Gt=Ie&&Ie.exports===We,Kt=Gt&&G.process,it=function(){try{var x=Ie&&Ie.require&&Ie.require("util").types;return x||Kt&&Kt.binding&&Kt.binding("util")}catch{}}(),Bn=it&&it.isTypedArray;function Nn(x,C,R){switch(R.length){case 0:return x.call(C);case 1:return x.call(C,R[0]);case 2:return x.call(C,R[0],R[1]);case 3:return x.call(C,R[0],R[1],R[2])}return x.apply(C,R)}function Ga(x,C){for(var R=-1,I=Array(x);++R-1}function Hk(x,C){var R=this.__data__,I=qa(R,x);return I<0?(++this.size,R.push([x,C])):R[I][1]=C,this}Vn.prototype.clear=Fk,Vn.prototype.delete=Bk,Vn.prototype.get=Nk,Vn.prototype.has=Vk,Vn.prototype.set=Hk;function Io(x){var C=-1,R=x==null?0:x.length;for(this.clear();++C1?R[ie-1]:void 0,Te=ie>2?R[2]:void 0;for(be=x.length>3&&typeof be=="function"?(ie--,be):void 0,Te&&yC(R[0],R[1],Te)&&(be=ie<3?void 0:be,ie=1),C=Object(C);++I-1&&x%1==0&&x0){if(++C>=o)return arguments[0]}else C=0;return x.apply(void 0,arguments)}}function _C(x){if(x!=null){try{return Zr.call(x)}catch{}try{return x+""}catch{}}return""}function Ja(x,C){return x===C||x!==x&&C!==C}var sd=x0(function(){return arguments}())?x0:function(x){return Xi(x)&&Xt.call(x,"callee")&&!Ak.call(x,"callee")},ad=Array.isArray;function ld(x){return x!=null&&E0(x.length)&&!ud(x)}function TC(x){return Xi(x)&&ld(x)}var C0=Mk||$C;function ud(x){if(!no(x))return!1;var C=Qa(x);return C==p||C==m||C==u||C==v}function E0(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=s}function no(x){var C=typeof x;return x!=null&&(C=="object"||C=="function")}function Xi(x){return x!=null&&typeof x=="object"}function PC(x){if(!Xi(x)||Qa(x)!=h)return!1;var C=g0(x);if(C===null)return!0;var R=Xt.call(C,"constructor")&&C.constructor;return typeof R=="function"&&R instanceof R&&Zr.call(R)==Ka}var _0=Bn?ne(Bn):oC;function AC(x){return pC(x,T0(x))}function T0(x){return ld(x)?eC(x,!0):iC(x)}var RC=hC(function(x,C,R,I){S0(x,C,R,I)});function MC(x){return function(){return x}}function P0(x){return x}function $C(){return!1}e.exports=RC})(Iu,Iu.exports);var CT=Iu.exports;const rn=ih(CT);var ET=e=>/!(important)?$/.test(e),qg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,_T=(e,t)=>n=>{const r=String(t),o=ET(r),i=qg(r),s=e?`${e}.${i}`:i;let a=Tt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=qg(a),o?`${a} !important`:a};function dm(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=_T(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var xl=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Qt(e,t){return n=>{const r={property:n,scale:e};return r.transform=dm({scale:e,transform:t}),r}}var TT=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function PT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:TT(t),transform:n?dm({scale:n,compose:r}):r}}var gS=["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 AT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...gS].join(" ")}function RT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...gS].join(" ")}var MT={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},$T={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 OT(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 zT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},bp={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},LT=new Set(Object.values(bp)),xp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),DT=e=>e.trim();function IT(e,t){if(e==null||xp.has(e))return e;if(!(Sp(e)||xp.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(DT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in bp?bp[l]:l;u.unshift(c);const d=u.map(f=>{if(LT.has(f))return f;const p=f.indexOf(" "),[m,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=Sp(y)?y:y&&y.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return w?[h,...Array.isArray(w)?w:[w]].join(" "):h});return`${a}(${d.join(", ")})`}var Sp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),jT=(e,t)=>IT(e,t??{});function FT(e){return/^var\(--.+\)$/.test(e)}var BT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},En=e=>t=>`${e}(${t})`,ue={filter(e){return e!=="auto"?e:MT},backdropFilter(e){return e!=="auto"?e:$T},ring(e){return OT(ue.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?AT():e==="auto-gpu"?RT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=BT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(FT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:jT,blur:En("blur"),opacity:En("opacity"),brightness:En("brightness"),contrast:En("contrast"),dropShadow:En("drop-shadow"),grayscale:En("grayscale"),hueRotate:En("hue-rotate"),invert:En("invert"),saturate:En("saturate"),sepia:En("sepia"),bgImage(e){return e==null||Sp(e)||xp.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=zT[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},E={borderWidths:Qt("borderWidths"),borderStyles:Qt("borderStyles"),colors:Qt("colors"),borders:Qt("borders"),gradients:Qt("gradients",ue.gradient),radii:Qt("radii",ue.px),space:Qt("space",xl(ue.vh,ue.px)),spaceT:Qt("space",xl(ue.vh,ue.px)),degreeT(e){return{property:e,transform:ue.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:dm({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Qt("sizes",xl(ue.vh,ue.px)),sizesT:Qt("sizes",xl(ue.vh,ue.fraction)),shadows:Qt("shadows"),logical:PT,blur:Qt("blur",ue.blur)},Kl={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ue.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:ue.bgClip}};Object.assign(Kl,{bgImage:Kl.backgroundImage,bgImg:Kl.backgroundImage});var ce={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ce,{rounded:ce.borderRadius,roundedTop:ce.borderTopRadius,roundedTopLeft:ce.borderTopLeftRadius,roundedTopRight:ce.borderTopRightRadius,roundedTopStart:ce.borderStartStartRadius,roundedTopEnd:ce.borderStartEndRadius,roundedBottom:ce.borderBottomRadius,roundedBottomLeft:ce.borderBottomLeftRadius,roundedBottomRight:ce.borderBottomRightRadius,roundedBottomStart:ce.borderEndStartRadius,roundedBottomEnd:ce.borderEndEndRadius,roundedLeft:ce.borderLeftRadius,roundedRight:ce.borderRightRadius,roundedStart:ce.borderInlineStartRadius,roundedEnd:ce.borderInlineEndRadius,borderStart:ce.borderInlineStart,borderEnd:ce.borderInlineEnd,borderTopStartRadius:ce.borderStartStartRadius,borderTopEndRadius:ce.borderStartEndRadius,borderBottomStartRadius:ce.borderEndStartRadius,borderBottomEndRadius:ce.borderEndEndRadius,borderStartRadius:ce.borderInlineStartRadius,borderEndRadius:ce.borderInlineEndRadius,borderStartWidth:ce.borderInlineStartWidth,borderEndWidth:ce.borderInlineEndWidth,borderStartColor:ce.borderInlineStartColor,borderEndColor:ce.borderInlineEndColor,borderStartStyle:ce.borderInlineStartStyle,borderEndStyle:ce.borderInlineEndStyle});var NT={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke")},wp={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(wp,{shadow:wp.boxShadow});var VT={filter:{transform:ue.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",ue.brightness),contrast:E.propT("--chakra-contrast",ue.contrast),hueRotate:E.degreeT("--chakra-hue-rotate"),invert:E.propT("--chakra-invert",ue.invert),saturate:E.propT("--chakra-saturate",ue.saturate),dropShadow:E.propT("--chakra-drop-shadow",ue.dropShadow),backdropFilter:{transform:ue.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",ue.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",ue.contrast),backdropHueRotate:E.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:E.propT("--chakra-backdrop-invert",ue.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",ue.saturate)},ju={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ue.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(ju,{flexDir:ju.flexDirection});var vS={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.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},HT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ue.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},Jt={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",ue.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Jt,{w:Jt.width,h:Jt.height,minW:Jt.minWidth,maxW:Jt.maxWidth,minH:Jt.minHeight,maxH:Jt.maxHeight,overscroll:Jt.overscrollBehavior,overscrollX:Jt.overscrollBehaviorX,overscrollY:Jt.overscrollBehaviorY});var WT={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")};function UT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},KT=GT(UT),YT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},XT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Bd=(e,t,n)=>{const r={},o=KT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},qT={srOnly:{transform(e){return e===!0?YT:e==="focusable"?XT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Bd(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Bd(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Bd(t,e,n)}},Os={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Os,{insetStart:Os.insetInlineStart,insetEnd:Os.insetInlineEnd});var QT={ring:{transform:ue.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},Ee={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(Ee,{m:Ee.margin,mt:Ee.marginTop,mr:Ee.marginRight,me:Ee.marginInlineEnd,marginEnd:Ee.marginInlineEnd,mb:Ee.marginBottom,ml:Ee.marginLeft,ms:Ee.marginInlineStart,marginStart:Ee.marginInlineStart,mx:Ee.marginX,my:Ee.marginY,p:Ee.padding,pt:Ee.paddingTop,py:Ee.paddingY,px:Ee.paddingX,pb:Ee.paddingBottom,pl:Ee.paddingLeft,ps:Ee.paddingInlineStart,paddingStart:Ee.paddingInlineStart,pr:Ee.paddingRight,pe:Ee.paddingInlineEnd,paddingEnd:Ee.paddingInlineEnd});var ZT={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},JT={clipPath:!0,transform:E.propT("transform",ue.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},eP={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},tP={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",ue.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.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"}},nP={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function yS(e){return Tt(e)&&e.reference?e.reference:String(e)}var Mc=(e,...t)=>t.map(yS).join(` ${e} `).replace(/calc/g,""),Qg=(...e)=>`calc(${Mc("+",...e)})`,Zg=(...e)=>`calc(${Mc("-",...e)})`,kp=(...e)=>`calc(${Mc("*",...e)})`,Jg=(...e)=>`calc(${Mc("/",...e)})`,ev=e=>{const t=yS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:kp(t,-1)},lo=Object.assign(e=>({add:(...t)=>lo(Qg(e,...t)),subtract:(...t)=>lo(Zg(e,...t)),multiply:(...t)=>lo(kp(e,...t)),divide:(...t)=>lo(Jg(e,...t)),negate:()=>lo(ev(e)),toString:()=>e.toString()}),{add:Qg,subtract:Zg,multiply:kp,divide:Jg,negate:ev});function rP(e,t="-"){return e.replace(/\s+/g,t)}function oP(e){const t=rP(e.toString());return sP(iP(t))}function iP(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function sP(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function aP(e,t=""){return[t,e].filter(Boolean).join("-")}function lP(e,t){return`var(${e}${t?`, ${t}`:""})`}function uP(e,t=""){return oP(`--${aP(e,t)}`)}function H(e,t,n){const r=uP(e,n);return{variable:r,reference:lP(r,t)}}function cP(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=H(`${e}-${o}`,i);continue}n[r]=H(`${e}-${r}`)}return n}function dP(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function fP(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Cp(e){if(e==null)return e;const{unitless:t}=fP(e);return t||typeof e=="number"?`${e}px`:e}var bS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,fm=e=>Object.fromEntries(Object.entries(e).sort(bS));function tv(e){const t=fm(e);return Object.assign(Object.values(t),t)}function pP(e){const t=Object.keys(fm(e));return new Set(t)}function nv(e){var t;if(!e)return e;e=(t=Cp(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function vs(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Cp(e)})`),t&&n.push("and",`(max-width: ${Cp(t)})`),n.join(" ")}function hP(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=tv(e),r=Object.entries(e).sort(bS).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?nv(d):void 0,{_minW:nv(a),breakpoint:s,minW:a,maxW:d,maxWQuery:vs(null,d),minWQuery:vs(a),minMaxQuery:vs(a,d)}}),o=pP(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:fm(e),asArray:tv(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>vs(s)).slice(1)],toArrayValue(s){if(!Tt(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;dP(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var Je={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},gr=e=>xS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Hn=e=>xS(t=>e(t,"~ &"),"[data-peer]",".peer"),xS=(e,...t)=>t.map(e).join(", "),$c={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:gr(Je.hover),_peerHover:Hn(Je.hover),_groupFocus:gr(Je.focus),_peerFocus:Hn(Je.focus),_groupFocusVisible:gr(Je.focusVisible),_peerFocusVisible:Hn(Je.focusVisible),_groupActive:gr(Je.active),_peerActive:Hn(Je.active),_groupDisabled:gr(Je.disabled),_peerDisabled:Hn(Je.disabled),_groupInvalid:gr(Je.invalid),_peerInvalid:Hn(Je.invalid),_groupChecked:gr(Je.checked),_peerChecked:Hn(Je.checked),_groupFocusWithin:gr(Je.focusWithin),_peerFocusWithin:Hn(Je.focusWithin),_peerPlaceholderShown:Hn(Je.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]"},SS=Object.keys($c);function rv(e,t){return H(String(e).replace(/\./g,"-"),void 0,t)}function mP(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=rv(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,y=`${p}.-${m.join(".")}`,w=lo.negate(a),g=lo.negate(u);r[y]={value:w,var:l,varRef:g}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:w}=rv(m,t==null?void 0:t.cssVarPrefix);return w},d=Tt(a)?a:{default:a};n=rn(n,Object.entries(d).reduce((f,[p,m])=>{var y,w;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(w=(y=$c)==null?void 0:y[p])!=null?w:p;return f[h]={[l]:g},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function gP(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function vP(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yP(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function ov(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(yP(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(r!=null&&r(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var bP=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function xP(e){return vP(e,bP)}function SP(e){return e.semanticTokens}function wP(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var kP=e=>SS.includes(e)||e==="default";function CP({tokens:e,semanticTokens:t}){const n={};return ov(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),ov(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(kP)}),n}function EP(e){var t;const n=wP(e),r=xP(n),o=SP(n),i=CP({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=mP(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:hP(n.breakpoints)}),n}var pm=rn({},Kl,ce,NT,ju,Jt,VT,QT,HT,vS,qT,Os,wp,Ee,nP,tP,ZT,JT,WT,eP);Object.assign({},Ee,Jt,ju,vS,Os);var _P=[...Object.keys(pm),...SS],TP={...pm,...$c},PP=e=>e in TP,AP=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=qn(e[s],t);if(a==null)continue;if(a=Tt(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!MP(t),OP=(e,t)=>{var n,r;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[s,a]=RP(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function zP(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=qn(i,r),d=AP(c)(r);let f={};for(let p in d){const m=d[p];let y=qn(m,r);p in n&&(p=n[p]),$P(p,y)&&(y=OP(r,y));let w=t[p];if(w===!0&&(w={property:p}),Tt(y)){f[p]=(a=f[p])!=null?a:{},f[p]=rn({},f[p],o(y,!0));continue}let g=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,y,r,c))!=null?u:y;g=w!=null&&w.processResult?o(g,!0):g;const h=qn(w==null?void 0:w.property,r);if(!s&&(w!=null&&w.static)){const v=qn(w.static,r);f=rn({},f,v)}if(h&&Array.isArray(h)){for(const v of h)f[v]=g;continue}if(h){h==="&"&&Tt(g)?f=rn({},f,g):f[h]=g;continue}if(Tt(g)){f=rn({},f,g);continue}f[p]=g}return f};return o}var wS=e=>t=>zP({theme:t,pseudos:$c,configs:pm})(e);function we(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function LP(e,t){if(Array.isArray(e))return e;if(Tt(e))return t(e);if(e!=null)return[e]}function DP(e,t){for(let n=t+1;n{rn(u,{[v]:f?h[v]:{[g]:h[v]}})});continue}if(!p){f?rn(u,h):u[g]=h;continue}u[g]=h}}return u}}function jP(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=IP(i);return rn({},qn((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function xt(e){return gP(e,["styleConfig","size","variant","colorScheme"])}var FP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function BP(e){return Tt(e)?FP.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var NP={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"},VP={"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)"},HP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},WP={property:NP,easing:VP,duration:HP},UP=WP,GP={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},KP=GP,YP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},XP=YP,qP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},QP=qP,ZP={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"}},JP=ZP,e4={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},t4=e4,n4={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"},r4=n4,o4={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},i4=o4,s4={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"}},kS=s4,CS={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"},a4={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"},l4={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},u4={...CS,...a4,container:l4},ES=u4,c4={breakpoints:QP,zIndices:KP,radii:t4,blur:i4,colors:JP,...kS,sizes:ES,shadows:r4,space:CS,borders:XP,transition:UP},{defineMultiStyleConfig:d4,definePartsStyle:ys}=we(["stepper","step","title","description","indicator","separator","icon","number"]),Gn=H("stepper-indicator-size"),ni=H("stepper-icon-size"),ri=H("stepper-title-font-size"),bs=H("stepper-description-font-size"),ss=H("stepper-accent-color"),f4=ys(({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"},[ss.variable]:`colors.${e}.500`,_dark:{[ss.variable]:`colors.${e}.200`}},title:{fontSize:ri.reference,fontWeight:"medium"},description:{fontSize:bs.reference,color:"chakra-subtle-text"},number:{fontSize:ri.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:ni.reference,height:ni.reference},indicator:{flexShrink:0,borderRadius:"full",width:Gn.reference,height:Gn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ss.reference},"&[data-status=complete]":{bg:ss.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ss.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Gn.reference} - 8px)`,top:`calc(${Gn.reference} + 4px)`,insetStart:`calc(${Gn.reference} / 2 - 1px)`}}})),p4=d4({baseStyle:f4,sizes:{xs:ys({stepper:{[Gn.variable]:"sizes.4",[ni.variable]:"sizes.3",[ri.variable]:"fontSizes.xs",[bs.variable]:"fontSizes.xs"}}),sm:ys({stepper:{[Gn.variable]:"sizes.6",[ni.variable]:"sizes.4",[ri.variable]:"fontSizes.sm",[bs.variable]:"fontSizes.xs"}}),md:ys({stepper:{[Gn.variable]:"sizes.8",[ni.variable]:"sizes.5",[ri.variable]:"fontSizes.md",[bs.variable]:"fontSizes.sm"}}),lg:ys({stepper:{[Gn.variable]:"sizes.10",[ni.variable]:"sizes.6",[ri.variable]:"fontSizes.lg",[bs.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function me(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return me(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return me(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var h4=me("accordion").parts("root","container","button","panel").extend("icon"),m4=me("alert").parts("title","description","container").extend("icon","spinner"),g4=me("avatar").parts("label","badge","container").extend("excessLabel","group"),v4=me("breadcrumb").parts("link","item","container").extend("separator");me("button").parts();var y4=me("checkbox").parts("control","icon","container").extend("label");me("progress").parts("track","filledTrack").extend("label");var b4=me("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),x4=me("editable").parts("preview","input","textarea"),S4=me("form").parts("container","requiredIndicator","helperText"),w4=me("formError").parts("text","icon"),k4=me("input").parts("addon","field","element","group"),C4=me("list").parts("container","item","icon"),E4=me("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),_4=me("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),T4=me("numberinput").parts("root","field","stepperGroup","stepper");me("pininput").parts("field");var P4=me("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),A4=me("progress").parts("label","filledTrack","track"),R4=me("radio").parts("container","control","label"),M4=me("select").parts("field","icon"),$4=me("slider").parts("container","track","thumb","filledTrack","mark"),O4=me("stat").parts("container","label","helpText","number","icon"),z4=me("switch").parts("container","track","thumb"),L4=me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),D4=me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),I4=me("tag").parts("container","label","closeButton"),j4=me("card").parts("container","header","body","footer");function ho(e,t,n){return Math.min(Math.max(e,n),t)}class F4 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xs=F4;function hm(e){if(typeof e!="string")throw new xs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=K4.test(e)?V4(e):e;const n=H4.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ha(a,2),16)),parseInt(ha(s[3]||"f",2),16)/255]}const r=W4.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=U4.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=G4.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(ho(0,100,a)!==a)throw new xs(e);if(ho(0,100,l)!==l)throw new xs(e);return[...Y4(s,a,l),Number.isNaN(u)?1:u]}throw new xs(e)}function B4(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const iv=e=>parseInt(e.replace(/_/g,""),36),N4="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=iv(t.substring(0,3)),r=iv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function V4(e){const t=e.toLowerCase().trim(),n=N4[B4(t)];if(!n)throw new xs(e);return`#${n}`}const ha=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),H4=new RegExp(`^#${ha("([a-f0-9])",3)}([a-f0-9])?$`,"i"),W4=new RegExp(`^#${ha("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),U4=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ha(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),G4=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,K4=/^[a-z]+$/i,sv=e=>Math.round(e*255),Y4=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(sv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(sv)};function X4(e,t,n,r){return`rgba(${ho(0,255,e).toFixed()}, ${ho(0,255,t).toFixed()}, ${ho(0,255,n).toFixed()}, ${parseFloat(ho(0,1,r).toFixed(3))})`}function q4(e,t){const[n,r,o,i]=hm(e);return X4(n,r,o,i-t)}function Q4(e){const[t,n,r,o]=hm(e);let i=s=>{const a=ho(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function Z4(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,mt=(e,t,n)=>{const r=Z4(e,`colors.${t}`,t);try{return Q4(r),r}catch{return n??"#000000"}},e3=e=>{const[t,n,r]=hm(e);return(t*299+n*587+r*114)/1e3},t3=e=>t=>{const n=mt(t,e);return e3(n)<128?"dark":"light"},n3=e=>t=>t3(e)(t)==="dark",$i=(e,t)=>n=>{const r=mt(n,e);return q4(r,1-t)};function av(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 r3=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function o3(e){const t=r3();return!e||J4(e)?t:e.string&&e.colors?s3(e.string,e.colors):e.string&&!e.colors?i3(e.string):e.colors&&!e.string?a3(e.colors):t}function i3(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function s3(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function mm(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function _S(e){return Tt(e)&&e.reference?e.reference:String(e)}var Oc=(e,...t)=>t.map(_S).join(` ${e} `).replace(/calc/g,""),lv=(...e)=>`calc(${Oc("+",...e)})`,uv=(...e)=>`calc(${Oc("-",...e)})`,Ep=(...e)=>`calc(${Oc("*",...e)})`,cv=(...e)=>`calc(${Oc("/",...e)})`,dv=e=>{const t=_S(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ep(t,-1)},Kn=Object.assign(e=>({add:(...t)=>Kn(lv(e,...t)),subtract:(...t)=>Kn(uv(e,...t)),multiply:(...t)=>Kn(Ep(e,...t)),divide:(...t)=>Kn(cv(e,...t)),negate:()=>Kn(dv(e)),toString:()=>e.toString()}),{add:lv,subtract:uv,multiply:Ep,divide:cv,negate:dv});function l3(e){return!Number.isInteger(parseFloat(e.toString()))}function u3(e,t="-"){return e.replace(/\s+/g,t)}function TS(e){const t=u3(e.toString());return t.includes("\\.")?e:l3(e)?t.replace(".","\\."):e}function c3(e,t=""){return[t,TS(e)].filter(Boolean).join("-")}function d3(e,t){return`var(${TS(e)}${t?`, ${t}`:""})`}function f3(e,t=""){return`--${c3(e,t)}`}function Ke(e,t){const n=f3(e,t==null?void 0:t.prefix);return{variable:n,reference:d3(n,p3(t==null?void 0:t.fallback))}}function p3(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:h3,definePartsStyle:Yl}=we(z4.keys),zs=Ke("switch-track-width"),yo=Ke("switch-track-height"),Nd=Ke("switch-track-diff"),m3=Kn.subtract(zs,yo),_p=Ke("switch-thumb-x"),as=Ke("switch-bg"),g3=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[zs.reference],height:[yo.reference],transitionProperty:"common",transitionDuration:"fast",[as.variable]:"colors.gray.300",_dark:{[as.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[as.variable]:`colors.${t}.500`,_dark:{[as.variable]:`colors.${t}.200`}},bg:as.reference}},v3={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[yo.reference],height:[yo.reference],_checked:{transform:`translateX(${_p.reference})`}},y3=Yl(e=>({container:{[Nd.variable]:m3,[_p.variable]:Nd.reference,_rtl:{[_p.variable]:Kn(Nd).negate().toString()}},track:g3(e),thumb:v3})),b3={sm:Yl({container:{[zs.variable]:"1.375rem",[yo.variable]:"sizes.3"}}),md:Yl({container:{[zs.variable]:"1.875rem",[yo.variable]:"sizes.4"}}),lg:Yl({container:{[zs.variable]:"2.875rem",[yo.variable]:"sizes.6"}})},x3=h3({baseStyle:y3,sizes:b3,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S3,definePartsStyle:bi}=we(L4.keys),w3=bi({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"}}),Fu={"&[data-is-numeric=true]":{textAlign:"end"}},k3=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Fu},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Fu},caption:{color:U("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),C3=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Fu},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Fu},caption:{color:U("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e)},td:{background:U(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),E3={simple:k3,striped:C3,unstyled:{}},_3={sm:bi({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:bi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:bi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},T3=S3({baseStyle:w3,variants:E3,sizes:_3,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),wt=H("tabs-color"),yn=H("tabs-bg"),Sl=H("tabs-border-color"),{defineMultiStyleConfig:P3,definePartsStyle:Ln}=we(D4.keys),A3=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},R3=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}}},M3=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},$3={p:4},O3=Ln(e=>({root:A3(e),tab:R3(e),tablist:M3(e),tabpanel:$3})),z3={sm:Ln({tab:{py:1,px:4,fontSize:"sm"}}),md:Ln({tab:{fontSize:"md",py:2,px:4}}),lg:Ln({tab:{fontSize:"lg",py:3,px:4}})},L3=Ln(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[wt.variable]:`colors.${t}.600`,_dark:{[wt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yn.variable]:"colors.gray.200",_dark:{[yn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:wt.reference,bg:yn.reference}}}),D3=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Sl.variable]:"transparent",_selected:{[wt.variable]:`colors.${t}.600`,[Sl.variable]:"colors.white",_dark:{[wt.variable]:`colors.${t}.300`,[Sl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Sl.reference},color:wt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),I3=Ln(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yn.variable]:"colors.gray.50",_dark:{[yn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yn.variable]:"colors.white",[wt.variable]:`colors.${t}.600`,_dark:{[yn.variable]:"colors.gray.800",[wt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:wt.reference,bg:yn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),j3=Ln(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:mt(n,`${t}.700`),bg:mt(n,`${t}.100`)}}}}),F3=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[wt.variable]:"colors.gray.600",_dark:{[wt.variable]:"inherit"},_selected:{[wt.variable]:"colors.white",[yn.variable]:`colors.${t}.600`,_dark:{[wt.variable]:"colors.gray.800",[yn.variable]:`colors.${t}.300`}},color:wt.reference,bg:yn.reference}}}),B3=Ln({}),N3={line:L3,enclosed:D3,"enclosed-colored":I3,"soft-rounded":j3,"solid-rounded":F3,unstyled:B3},V3=P3({baseStyle:O3,sizes:z3,variants:N3,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Fe=cP("badge",["bg","color","shadow"]),H3={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},W3=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.500`,.6)(n);return{[Fe.bg.variable]:`colors.${t}.500`,[Fe.color.variable]:"colors.white",_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:"colors.whiteAlpha.800"}}},U3=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.16)(n);return{[Fe.bg.variable]:`colors.${t}.100`,[Fe.color.variable]:`colors.${t}.800`,_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:`colors.${t}.200`}}},G3=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.8)(n);return{[Fe.color.variable]:`colors.${t}.500`,_dark:{[Fe.color.variable]:r},[Fe.shadow.variable]:`inset 0 0 0px 1px ${Fe.color.reference}`}},K3={solid:W3,subtle:U3,outline:G3},Ls={baseStyle:H3,variants:K3,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Y3,definePartsStyle:bo}=we(I4.keys),fv=H("tag-bg"),pv=H("tag-color"),Vd=H("tag-shadow"),Xl=H("tag-min-height"),ql=H("tag-min-width"),Ql=H("tag-font-size"),Zl=H("tag-padding-inline"),X3={fontWeight:"medium",lineHeight:1.2,outline:0,[pv.variable]:Fe.color.reference,[fv.variable]:Fe.bg.reference,[Vd.variable]:Fe.shadow.reference,color:pv.reference,bg:fv.reference,boxShadow:Vd.reference,borderRadius:"md",minH:Xl.reference,minW:ql.reference,fontSize:Ql.reference,px:Zl.reference,_focusVisible:{[Vd.variable]:"shadows.outline"}},q3={lineHeight:1.2,overflow:"visible"},Q3={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}},Z3=bo({container:X3,label:q3,closeButton:Q3}),J3={sm:bo({container:{[Xl.variable]:"sizes.5",[ql.variable]:"sizes.5",[Ql.variable]:"fontSizes.xs",[Zl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:bo({container:{[Xl.variable]:"sizes.6",[ql.variable]:"sizes.6",[Ql.variable]:"fontSizes.sm",[Zl.variable]:"space.2"}}),lg:bo({container:{[Xl.variable]:"sizes.8",[ql.variable]:"sizes.8",[Ql.variable]:"fontSizes.md",[Zl.variable]:"space.3"}})},eA={subtle:bo(e=>{var t;return{container:(t=Ls.variants)==null?void 0:t.subtle(e)}}),solid:bo(e=>{var t;return{container:(t=Ls.variants)==null?void 0:t.solid(e)}}),outline:bo(e=>{var t;return{container:(t=Ls.variants)==null?void 0:t.outline(e)}})},tA=Y3({variants:eA,baseStyle:Z3,sizes:J3,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Qn,defineMultiStyleConfig:nA}=we(k4.keys),oi=H("input-height"),ii=H("input-font-size"),si=H("input-padding"),ai=H("input-border-radius"),rA=Qn({addon:{height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference},field:{width:"100%",height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vr={lg:{[ii.variable]:"fontSizes.lg",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.12"},md:{[ii.variable]:"fontSizes.md",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.10"},sm:{[ii.variable]:"fontSizes.sm",[si.variable]:"space.3",[ai.variable]:"radii.sm",[oi.variable]:"sizes.8"},xs:{[ii.variable]:"fontSizes.xs",[si.variable]:"space.2",[ai.variable]:"radii.sm",[oi.variable]:"sizes.6"}},oA={lg:Qn({field:vr.lg,group:vr.lg}),md:Qn({field:vr.md,group:vr.md}),sm:Qn({field:vr.sm,group:vr.sm}),xs:Qn({field:vr.xs,group:vr.xs})};function gm(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||U("blue.500","blue.300")(e),errorBorderColor:n||U("red.500","red.300")(e)}}var iA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=gm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:U("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,r),boxShadow:`0 0 0 1px ${mt(t,r)}`},_focusVisible:{zIndex:1,borderColor:mt(t,n),boxShadow:`0 0 0 1px ${mt(t,n)}`}},addon:{border:"1px solid",borderColor:U("inherit","whiteAlpha.50")(e),bg:U("gray.100","whiteAlpha.300")(e)}}}),sA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=gm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e),_hover:{bg:U("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,r)},_focusVisible:{bg:"transparent",borderColor:mt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e)}}}),aA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=gm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,r),boxShadow:`0px 1px 0px 0px ${mt(t,r)}`},_focusVisible:{borderColor:mt(t,n),boxShadow:`0px 1px 0px 0px ${mt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),lA=Qn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),uA={outline:iA,filled:sA,flushed:aA,unstyled:lA},pe=nA({baseStyle:rA,sizes:oA,variants:uA,defaultProps:{size:"md",variant:"outline"}}),hv,cA={...(hv=pe.baseStyle)==null?void 0:hv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},mv,gv,dA={outline:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(gv=(mv=pe.variants)==null?void 0:mv.unstyled.field)!=null?gv:{}},vv,yv,bv,xv,Sv,wv,kv,Cv,fA={xs:(yv=(vv=pe.sizes)==null?void 0:vv.xs.field)!=null?yv:{},sm:(xv=(bv=pe.sizes)==null?void 0:bv.sm.field)!=null?xv:{},md:(wv=(Sv=pe.sizes)==null?void 0:Sv.md.field)!=null?wv:{},lg:(Cv=(kv=pe.sizes)==null?void 0:kv.lg.field)!=null?Cv:{}},pA={baseStyle:cA,sizes:fA,variants:dA,defaultProps:{size:"md",variant:"outline"}},wl=Ke("tooltip-bg"),Hd=Ke("tooltip-fg"),hA=Ke("popper-arrow-bg"),mA={bg:wl.reference,color:Hd.reference,[wl.variable]:"colors.gray.700",[Hd.variable]:"colors.whiteAlpha.900",_dark:{[wl.variable]:"colors.gray.300",[Hd.variable]:"colors.gray.900"},[hA.variable]:wl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},gA={baseStyle:mA},{defineMultiStyleConfig:vA,definePartsStyle:Ss}=we(A4.keys),yA=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=U(av(),av("1rem","rgba(0,0,0,0.1)"))(e),s=U(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${mt(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},bA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},xA=e=>({bg:U("gray.100","whiteAlpha.300")(e)}),SA=e=>({transitionProperty:"common",transitionDuration:"slow",...yA(e)}),wA=Ss(e=>({label:bA,filledTrack:SA(e),track:xA(e)})),kA={xs:Ss({track:{h:"1"}}),sm:Ss({track:{h:"2"}}),md:Ss({track:{h:"3"}}),lg:Ss({track:{h:"4"}})},CA=vA({sizes:kA,baseStyle:wA,defaultProps:{size:"md",colorScheme:"blue"}}),EA=e=>typeof e=="function";function vt(e,...t){return EA(e)?e(...t):e}var{definePartsStyle:Jl,defineMultiStyleConfig:_A}=we(y4.keys),Ds=H("checkbox-size"),TA=e=>{const{colorScheme:t}=e;return{w:Ds.reference,h:Ds.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e),_hover:{bg:U(`${t}.600`,`${t}.300`)(e),borderColor:U(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:U("gray.200","transparent")(e),bg:U("gray.200","whiteAlpha.300")(e),color:U("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e)},_disabled:{bg:U("gray.100","whiteAlpha.100")(e),borderColor:U("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:U("red.500","red.300")(e)}}},PA={_disabled:{cursor:"not-allowed"}},AA={userSelect:"none",_disabled:{opacity:.4}},RA={transitionProperty:"transform",transitionDuration:"normal"},MA=Jl(e=>({icon:RA,container:PA,control:vt(TA,e),label:AA})),$A={sm:Jl({control:{[Ds.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Jl({control:{[Ds.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Jl({control:{[Ds.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Bu=_A({baseStyle:MA,sizes:$A,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:OA,definePartsStyle:eu}=we(R4.keys),zA=e=>{var t;const n=(t=vt(Bu.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},LA=eu(e=>{var t,n,r,o;return{label:(n=(t=Bu).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Bu).baseStyle)==null?void 0:o.call(r,e).container,control:zA(e)}}),DA={md:eu({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:eu({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:eu({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},IA=OA({baseStyle:LA,sizes:DA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:jA,definePartsStyle:FA}=we(M4.keys),kl=H("select-bg"),Ev,BA={...(Ev=pe.baseStyle)==null?void 0:Ev.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:kl.reference,[kl.variable]:"colors.white",_dark:{[kl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:kl.reference}},NA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},VA=FA({field:BA,icon:NA}),Cl={paddingInlineEnd:"8"},_v,Tv,Pv,Av,Rv,Mv,$v,Ov,HA={lg:{...(_v=pe.sizes)==null?void 0:_v.lg,field:{...(Tv=pe.sizes)==null?void 0:Tv.lg.field,...Cl}},md:{...(Pv=pe.sizes)==null?void 0:Pv.md,field:{...(Av=pe.sizes)==null?void 0:Av.md.field,...Cl}},sm:{...(Rv=pe.sizes)==null?void 0:Rv.sm,field:{...(Mv=pe.sizes)==null?void 0:Mv.sm.field,...Cl}},xs:{...($v=pe.sizes)==null?void 0:$v.xs,field:{...(Ov=pe.sizes)==null?void 0:Ov.xs.field,...Cl},icon:{insetEnd:"1"}}},WA=jA({baseStyle:VA,sizes:HA,variants:pe.variants,defaultProps:pe.defaultProps}),Wd=H("skeleton-start-color"),Ud=H("skeleton-end-color"),UA={[Wd.variable]:"colors.gray.100",[Ud.variable]:"colors.gray.400",_dark:{[Wd.variable]:"colors.gray.800",[Ud.variable]:"colors.gray.600"},background:Wd.reference,borderColor:Ud.reference,opacity:.7,borderRadius:"sm"},GA={baseStyle:UA},Gd=H("skip-link-bg"),KA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Gd.variable]:"colors.white",_dark:{[Gd.variable]:"colors.gray.700"},bg:Gd.reference}},YA={baseStyle:KA},{defineMultiStyleConfig:XA,definePartsStyle:zc}=we($4.keys),ma=H("slider-thumb-size"),ga=H("slider-track-size"),_r=H("slider-bg"),qA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...mm({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},QA=e=>({...mm({orientation:e.orientation,horizontal:{h:ga.reference},vertical:{w:ga.reference}}),overflow:"hidden",borderRadius:"sm",[_r.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.whiteAlpha.200"},_disabled:{[_r.variable]:"colors.gray.300",_dark:{[_r.variable]:"colors.whiteAlpha.300"}},bg:_r.reference}),ZA=e=>{const{orientation:t}=e;return{...mm({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:ma.reference,h:ma.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"}}},JA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[_r.variable]:`colors.${t}.500`,_dark:{[_r.variable]:`colors.${t}.200`},bg:_r.reference}},eR=zc(e=>({container:qA(e),track:QA(e),thumb:ZA(e),filledTrack:JA(e)})),tR=zc({container:{[ma.variable]:"sizes.4",[ga.variable]:"sizes.1"}}),nR=zc({container:{[ma.variable]:"sizes.3.5",[ga.variable]:"sizes.1"}}),rR=zc({container:{[ma.variable]:"sizes.2.5",[ga.variable]:"sizes.0.5"}}),oR={lg:tR,md:nR,sm:rR},iR=XA({baseStyle:eR,sizes:oR,defaultProps:{size:"md",colorScheme:"blue"}}),uo=Ke("spinner-size"),sR={width:[uo.reference],height:[uo.reference]},aR={xs:{[uo.variable]:"sizes.3"},sm:{[uo.variable]:"sizes.4"},md:{[uo.variable]:"sizes.6"},lg:{[uo.variable]:"sizes.8"},xl:{[uo.variable]:"sizes.12"}},lR={baseStyle:sR,sizes:aR,defaultProps:{size:"md"}},{defineMultiStyleConfig:uR,definePartsStyle:PS}=we(O4.keys),cR={fontWeight:"medium"},dR={opacity:.8,marginBottom:"2"},fR={verticalAlign:"baseline",fontWeight:"semibold"},pR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},hR=PS({container:{},label:cR,helpText:dR,number:fR,icon:pR}),mR={md:PS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},gR=uR({baseStyle:hR,sizes:mR,defaultProps:{size:"md"}}),Kd=H("kbd-bg"),vR={[Kd.variable]:"colors.gray.100",_dark:{[Kd.variable]:"colors.whiteAlpha.100"},bg:Kd.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},yR={baseStyle:vR},bR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},xR={baseStyle:bR},{defineMultiStyleConfig:SR,definePartsStyle:wR}=we(C4.keys),kR={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},CR=wR({icon:kR}),ER=SR({baseStyle:CR}),{defineMultiStyleConfig:_R,definePartsStyle:TR}=we(E4.keys),Pn=H("menu-bg"),Yd=H("menu-shadow"),PR={[Pn.variable]:"#fff",[Yd.variable]:"shadows.sm",_dark:{[Pn.variable]:"colors.gray.700",[Yd.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Pn.reference,boxShadow:Yd.reference},AR={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Pn.variable]:"colors.gray.100",_dark:{[Pn.variable]:"colors.whiteAlpha.100"}},_active:{[Pn.variable]:"colors.gray.200",_dark:{[Pn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Pn.variable]:"colors.gray.100",_dark:{[Pn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Pn.reference},RR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},MR={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},$R={opacity:.6},OR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},zR={transitionProperty:"common",transitionDuration:"normal"},LR=TR({button:zR,list:PR,item:AR,groupTitle:RR,icon:MR,command:$R,divider:OR}),DR=_R({baseStyle:LR}),{defineMultiStyleConfig:IR,definePartsStyle:Tp}=we(_4.keys),Xd=H("modal-bg"),qd=H("modal-shadow"),jR={bg:"blackAlpha.600",zIndex:"modal"},FR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},BR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Xd.variable]:"colors.white",[qd.variable]:"shadows.lg",_dark:{[Xd.variable]:"colors.gray.700",[qd.variable]:"shadows.dark-lg"},bg:Xd.reference,boxShadow:qd.reference}},NR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},VR={position:"absolute",top:"2",insetEnd:"3"},HR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},WR={px:"6",py:"4"},UR=Tp(e=>({overlay:jR,dialogContainer:vt(FR,e),dialog:vt(BR,e),header:NR,closeButton:VR,body:vt(HR,e),footer:WR}));function hn(e){return Tp(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var GR={xs:hn("xs"),sm:hn("sm"),md:hn("md"),lg:hn("lg"),xl:hn("xl"),"2xl":hn("2xl"),"3xl":hn("3xl"),"4xl":hn("4xl"),"5xl":hn("5xl"),"6xl":hn("6xl"),full:hn("full")},KR=IR({baseStyle:UR,sizes:GR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:YR,definePartsStyle:AS}=we(T4.keys),vm=Ke("number-input-stepper-width"),RS=Ke("number-input-input-padding"),XR=Kn(vm).add("0.5rem").toString(),Qd=Ke("number-input-bg"),Zd=Ke("number-input-color"),Jd=Ke("number-input-border-color"),qR={[vm.variable]:"sizes.6",[RS.variable]:XR},QR=e=>{var t,n;return(n=(t=vt(pe.baseStyle,e))==null?void 0:t.field)!=null?n:{}},ZR={width:vm.reference},JR={borderStart:"1px solid",borderStartColor:Jd.reference,color:Zd.reference,bg:Qd.reference,[Zd.variable]:"colors.chakra-body-text",[Jd.variable]:"colors.chakra-border-color",_dark:{[Zd.variable]:"colors.whiteAlpha.800",[Jd.variable]:"colors.whiteAlpha.300"},_active:{[Qd.variable]:"colors.gray.200",_dark:{[Qd.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},e6=AS(e=>{var t;return{root:qR,field:(t=vt(QR,e))!=null?t:{},stepperGroup:ZR,stepper:JR}});function El(e){var t,n,r;const o=(t=pe.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=kS.fontSizes[s];return AS({field:{...o.field,paddingInlineEnd:RS.reference,verticalAlign:"top"},stepper:{fontSize:Kn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var t6={xs:El("xs"),sm:El("sm"),md:El("md"),lg:El("lg")},n6=YR({baseStyle:e6,sizes:t6,variants:pe.variants,defaultProps:pe.defaultProps}),zv,r6={...(zv=pe.baseStyle)==null?void 0:zv.field,textAlign:"center"},o6={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"}},Lv,Dv,i6={outline:e=>{var t,n,r;return(r=(n=vt((t=pe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=vt((t=pe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=vt((t=pe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Dv=(Lv=pe.variants)==null?void 0:Lv.unstyled.field)!=null?Dv:{}},s6={baseStyle:r6,sizes:o6,variants:i6,defaultProps:pe.defaultProps},{defineMultiStyleConfig:a6,definePartsStyle:l6}=we(P4.keys),_l=Ke("popper-bg"),u6=Ke("popper-arrow-bg"),Iv=Ke("popper-arrow-shadow-color"),c6={zIndex:10},d6={[_l.variable]:"colors.white",bg:_l.reference,[u6.variable]:_l.reference,[Iv.variable]:"colors.gray.200",_dark:{[_l.variable]:"colors.gray.700",[Iv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},f6={px:3,py:2,borderBottomWidth:"1px"},p6={px:3,py:2},h6={px:3,py:2,borderTopWidth:"1px"},m6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},g6=l6({popper:c6,content:d6,header:f6,body:p6,footer:h6,closeButton:m6}),v6=a6({baseStyle:g6}),{definePartsStyle:Pp,defineMultiStyleConfig:y6}=we(b4.keys),ef=H("drawer-bg"),tf=H("drawer-box-shadow");function Bo(e){return Pp(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var b6={bg:"blackAlpha.600",zIndex:"modal"},x6={display:"flex",zIndex:"modal",justifyContent:"center"},S6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ef.variable]:"colors.white",[tf.variable]:"shadows.lg",_dark:{[ef.variable]:"colors.gray.700",[tf.variable]:"shadows.dark-lg"},bg:ef.reference,boxShadow:tf.reference}},w6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},k6={position:"absolute",top:"2",insetEnd:"3"},C6={px:"6",py:"2",flex:"1",overflow:"auto"},E6={px:"6",py:"4"},_6=Pp(e=>({overlay:b6,dialogContainer:x6,dialog:vt(S6,e),header:w6,closeButton:k6,body:C6,footer:E6})),T6={xs:Bo("xs"),sm:Bo("md"),md:Bo("lg"),lg:Bo("2xl"),xl:Bo("4xl"),full:Bo("full")},P6=y6({baseStyle:_6,sizes:T6,defaultProps:{size:"xs"}}),{definePartsStyle:A6,defineMultiStyleConfig:R6}=we(x4.keys),M6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},$6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},O6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},z6=A6({preview:M6,input:$6,textarea:O6}),L6=R6({baseStyle:z6}),{definePartsStyle:D6,defineMultiStyleConfig:I6}=we(S4.keys),xi=H("form-control-color"),j6={marginStart:"1",[xi.variable]:"colors.red.500",_dark:{[xi.variable]:"colors.red.300"},color:xi.reference},F6={mt:"2",[xi.variable]:"colors.gray.600",_dark:{[xi.variable]:"colors.whiteAlpha.600"},color:xi.reference,lineHeight:"normal",fontSize:"sm"},B6=D6({container:{width:"100%",position:"relative"},requiredIndicator:j6,helperText:F6}),N6=I6({baseStyle:B6}),{definePartsStyle:V6,defineMultiStyleConfig:H6}=we(w4.keys),Si=H("form-error-color"),W6={[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},U6={marginEnd:"0.5em",[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference},G6=V6({text:W6,icon:U6}),K6=H6({baseStyle:G6}),Y6={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},X6={baseStyle:Y6},q6={fontFamily:"heading",fontWeight:"bold"},Q6={"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}},Z6={baseStyle:q6,sizes:Q6,defaultProps:{size:"xl"}},{defineMultiStyleConfig:J6,definePartsStyle:eM}=we(v4.keys),nf=H("breadcrumb-link-decor"),tM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:nf.reference,[nf.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[nf.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},nM=eM({link:tM}),rM=J6({baseStyle:nM}),oM={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"}}},MS=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.100","whiteAlpha.200")(e)},_active:{bg:U("gray.200","whiteAlpha.300")(e)}};const r=$i(`${t}.200`,.12)(n),o=$i(`${t}.200`,.24)(n);return{color:U(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:U(`${t}.50`,r)(e)},_active:{bg:U(`${t}.100`,o)(e)}}},iM=e=>{const{colorScheme:t}=e,n=U("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...vt(MS,e)}},sM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},aM=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=U("gray.100","whiteAlpha.200")(e);return{bg:l,color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:U("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=sM[n])!=null?t:{},a=U(r,`${n}.200`)(e);return{bg:a,color:U(o,"gray.800")(e),_hover:{bg:U(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:U(s,`${n}.400`)(e)}}},lM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:U(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:U(`${t}.700`,`${t}.500`)(e)}}},uM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},cM={ghost:MS,outline:iM,solid:aM,link:lM,unstyled:uM},dM={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"}},fM={baseStyle:oM,variants:cM,sizes:dM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:xo,defineMultiStyleConfig:pM}=we(j4.keys),Nu=H("card-bg"),tr=H("card-padding"),$S=H("card-shadow"),tu=H("card-radius"),OS=H("card-border-width","0"),zS=H("card-border-color"),hM=xo({container:{[Nu.variable]:"colors.chakra-body-bg",backgroundColor:Nu.reference,boxShadow:$S.reference,borderRadius:tu.reference,color:"chakra-body-text",borderWidth:OS.reference,borderColor:zS.reference},body:{padding:tr.reference,flex:"1 1 0%"},header:{padding:tr.reference},footer:{padding:tr.reference}}),mM={sm:xo({container:{[tu.variable]:"radii.base",[tr.variable]:"space.3"}}),md:xo({container:{[tu.variable]:"radii.md",[tr.variable]:"space.5"}}),lg:xo({container:{[tu.variable]:"radii.xl",[tr.variable]:"space.7"}})},gM={elevated:xo({container:{[$S.variable]:"shadows.base",_dark:{[Nu.variable]:"colors.gray.700"}}}),outline:xo({container:{[OS.variable]:"1px",[zS.variable]:"colors.chakra-border-color"}}),filled:xo({container:{[Nu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[tr.variable]:0},header:{[tr.variable]:0},footer:{[tr.variable]:0}}},vM=pM({baseStyle:hM,variants:gM,sizes:mM,defaultProps:{variant:"elevated",size:"md"}}),Is=Ke("close-button-size"),ls=Ke("close-button-bg"),yM={w:[Is.reference],h:[Is.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ls.variable]:"colors.blackAlpha.100",_dark:{[ls.variable]:"colors.whiteAlpha.100"}},_active:{[ls.variable]:"colors.blackAlpha.200",_dark:{[ls.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ls.reference},bM={lg:{[Is.variable]:"sizes.10",fontSize:"md"},md:{[Is.variable]:"sizes.8",fontSize:"xs"},sm:{[Is.variable]:"sizes.6",fontSize:"2xs"}},xM={baseStyle:yM,sizes:bM,defaultProps:{size:"md"}},{variants:SM,defaultProps:wM}=Ls,kM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},CM={baseStyle:kM,variants:SM,defaultProps:wM},EM={w:"100%",mx:"auto",maxW:"prose",px:"4"},_M={baseStyle:EM},TM={opacity:.6,borderColor:"inherit"},PM={borderStyle:"solid"},AM={borderStyle:"dashed"},RM={solid:PM,dashed:AM},MM={baseStyle:TM,variants:RM,defaultProps:{variant:"solid"}},{definePartsStyle:$M,defineMultiStyleConfig:OM}=we(h4.keys),zM={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},LM={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},DM={pt:"2",px:"4",pb:"5"},IM={fontSize:"1.25em"},jM=$M({container:zM,button:LM,panel:DM,icon:IM}),FM=OM({baseStyle:jM}),{definePartsStyle:Oa,defineMultiStyleConfig:BM}=we(m4.keys),jt=H("alert-fg"),ur=H("alert-bg"),NM=Oa({container:{bg:ur.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ym(e){const{theme:t,colorScheme:n}=e,r=$i(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var VM=Oa(e=>{const{colorScheme:t}=e,n=ym(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark}}}}),HM=Oa(e=>{const{colorScheme:t}=e,n=ym(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:jt.reference}}}),WM=Oa(e=>{const{colorScheme:t}=e,n=ym(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:jt.reference}}}),UM=Oa(e=>{const{colorScheme:t}=e;return{container:{[jt.variable]:"colors.white",[ur.variable]:`colors.${t}.500`,_dark:{[jt.variable]:"colors.gray.900",[ur.variable]:`colors.${t}.200`},color:jt.reference}}}),GM={subtle:VM,"left-accent":HM,"top-accent":WM,solid:UM},KM=BM({baseStyle:NM,variants:GM,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:LS,defineMultiStyleConfig:YM}=we(g4.keys),wi=H("avatar-border-color"),js=H("avatar-bg"),va=H("avatar-font-size"),Oi=H("avatar-size"),XM={borderRadius:"full",border:"0.2em solid",borderColor:wi.reference,[wi.variable]:"white",_dark:{[wi.variable]:"colors.gray.800"}},qM={bg:js.reference,fontSize:va.reference,width:Oi.reference,height:Oi.reference,lineHeight:"1",[js.variable]:"colors.gray.200",_dark:{[js.variable]:"colors.whiteAlpha.400"}},QM=e=>{const{name:t,theme:n}=e,r=t?o3({string:t}):"colors.gray.400",o=n3(r)(n);let i="white";return o||(i="gray.800"),{bg:js.reference,fontSize:va.reference,color:i,borderColor:wi.reference,verticalAlign:"top",width:Oi.reference,height:Oi.reference,"&:not([data-loaded])":{[js.variable]:r},[wi.variable]:"colors.white",_dark:{[wi.variable]:"colors.gray.800"}}},ZM={fontSize:va.reference,lineHeight:"1"},JM=LS(e=>({badge:vt(XM,e),excessLabel:vt(qM,e),container:vt(QM,e),label:ZM}));function yr(e){const t=e!=="100%"?ES[e]:void 0;return LS({container:{[Oi.variable]:t??e,[va.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Oi.variable]:t??e,[va.variable]:`calc(${t??e} / 2.5)`}})}var e$={"2xs":yr(4),xs:yr(6),sm:yr(8),md:yr(12),lg:yr(16),xl:yr(24),"2xl":yr(32),full:yr("100%")},t$=YM({baseStyle:JM,sizes:e$,defaultProps:{size:"md"}}),n$={Accordion:FM,Alert:KM,Avatar:t$,Badge:Ls,Breadcrumb:rM,Button:fM,Checkbox:Bu,CloseButton:xM,Code:CM,Container:_M,Divider:MM,Drawer:P6,Editable:L6,Form:N6,FormError:K6,FormLabel:X6,Heading:Z6,Input:pe,Kbd:yR,Link:xR,List:ER,Menu:DR,Modal:KR,NumberInput:n6,PinInput:s6,Popover:v6,Progress:CA,Radio:IA,Select:WA,Skeleton:GA,SkipLink:YA,Slider:iR,Spinner:lR,Stat:gR,Switch:x3,Table:T3,Tabs:V3,Tag:tA,Textarea:pA,Tooltip:gA,Card:vM,Stepper:p4},r$={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"}}},o$={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"}}},i$="ltr",s$={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},DS={semanticTokens:r$,direction:i$,...c4,components:n$,styles:o$,config:s$};function ws(e){return typeof e=="function"}function a$(...e){return t=>e.reduce((n,r)=>r(n),t)}var l$=e=>function(...n){let r=[...n],o=n[n.length-1];return BP(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,a$(...r.map(i=>s=>ws(i)?i(s):c$(s,i)))(o)},u$=l$(DS);function c$(...e){return rn({},...e,IS)}function IS(e,t,n,r){if((ws(e)||ws(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=ws(e)?e(...o):e,s=ws(t)?t(...o):t;return rn({},i,s,IS)}}function d$(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function f$(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},jS=p$(f$);function FS(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var BS=e=>FS(e,t=>t!=null);function h$(e){return typeof e=="function"}function NS(e,...t){return h$(e)?e(...t):e}var m$=typeof Element<"u",g$=typeof Map=="function",v$=typeof Set=="function",y$=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!nu(e[r],t[r]))return!1;return!0}var i;if(g$&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!nu(r.value[1],t.get(r.value[0])))return!1;return!0}if(v$&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(y$&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(m$&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!nu(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var b$=function(t,n){try{return nu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const x$=ih(b$);function VS(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=yT(),a=e?jS(i,`components.${e}`):void 0,l=r||a,u=rn({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},BS(d$(o,["children"]))),c=b.useRef({});if(l){const f=jP(l)(u);x$(c.current,f)||(c.current=f)}return c.current}function Yr(e,t={}){return VS(e,t)}function Xr(e,t={}){return VS(e,t)}var S$=new Set([..._P,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),w$=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function k$(e){return w$.has(e)||!S$.has(e)}function C$(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function bm(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var E$=/^((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)-.*))$/,_$=Zx(function(e){return E$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),T$=_$,P$=function(t){return t!=="theme"},jv=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?T$:P$},Fv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},A$=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return oS(n,r,o),X_(function(){return iS(n,r,o)}),null},R$=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Fv(t,n,r),l=a||jv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,a=FS(s,(d,f)=>PP(f)),l=NS(e,t),u=C$({},o,l,BS(a),i),c=wS(u)(t.theme);return r?[c,r]:c};function rf(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=k$);const o=O$({baseStyle:n}),i=$$(e,r)(o);return nt.forwardRef(function(l,u){const{colorMode:c,forced:d}=$a();return nt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function z$(){const e=new Map;return new Proxy(rf,{apply(t,n,r){return rf(...r)},get(t,n){return e.has(n)||e.set(n,rf(n)),e.get(n)}})}var Y=z$();function ee(e){return b.forwardRef(e)}function HS(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=b.createContext(void 0);o.displayName=r;function i(){var s;const a=b.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function L$(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=b.useMemo(()=>EP(n),[n]);return k.jsxs(Z_,{theme:o,children:[k.jsx(D$,{root:t}),r]})}function D$({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k.jsx(Ac,{styles:n=>({[t]:n.__cssVars})})}HS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function I$(e){return HS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function j$(){const{colorMode:e}=$a();return k.jsx(Ac,{styles:t=>{const n=jS(t,"styles.global"),r=NS(n,{theme:t,colorMode:e});return r?wS(r)(t):void 0}})}var xm=b.createContext({getDocument(){return document},getWindow(){return window}});xm.displayName="EnvironmentContext";function F$({defer:e}={}){const[,t]=b.useReducer(n=>n+1,0);return er(()=>{e&&t()},[e]),b.useContext(xm)}function WS(e){const{children:t,environment:n,disabled:r}=e,o=b.useRef(null),i=b.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return k.jsxs(xm.Provider,{value:i,children:[t,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}WS.displayName="EnvironmentProvider";var B$=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=k.jsx(WS,{environment:a,disabled:u,children:t});return k.jsx(L$,{theme:s,cssVarsRoot:l,children:k.jsxs(hS,{colorModeManager:n,options:s.config,children:[i?k.jsx(tT,{scope:o}):k.jsx(eT,{}),!c&&k.jsx(j$,{}),r?k.jsx(fS,{zIndex:r,children:d}):d]})})},N$=(e,t)=>e.find(n=>n.id===t);function Nv(e,t){const n=US(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function US(e,t){for(const[n,r]of Object.entries(e))if(N$(r,t))return n}function V$(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function H$(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}function Ir(e,t=[]){const n=b.useRef(e);return b.useEffect(()=>{n.current=e}),b.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function W$(e,t){const n=Ir(e);b.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function zi(e,t){const n=b.useRef(!1),r=b.useRef(!1);b.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const GS=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lc=b.createContext({}),za=b.createContext(null),Dc=typeof document<"u",Sm=Dc?b.useLayoutEffect:b.useEffect,KS=b.createContext({strict:!1});function U$(e,t,n,r){const{visualElement:o}=b.useContext(Lc),i=b.useContext(KS),s=b.useContext(za),a=b.useContext(GS).reducedMotion,l=b.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;b.useInsertionEffect(()=>{u&&u.update(n,s)});const c=b.useRef(!!window.HandoffAppearAnimations);return Sm(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),b.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function li(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function G$(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):li(n)&&(n.current=r))},[t])}function ya(e){return typeof e=="string"||Array.isArray(e)}function Ic(e){return typeof e=="object"&&typeof e.start=="function"}const wm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],km=["initial",...wm];function jc(e){return Ic(e.animate)||km.some(t=>ya(e[t]))}function YS(e){return!!(jc(e)||e.variants)}function K$(e,t){if(jc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ya(n)?n:void 0,animate:ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function Y$(e){const{initial:t,animate:n}=K$(e,b.useContext(Lc));return b.useMemo(()=>({initial:t,animate:n}),[Vv(t),Vv(n)])}function Vv(e){return Array.isArray(e)?e.join(" "):e}const Hv={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"]},ba={};for(const e in Hv)ba[e]={isEnabled:t=>Hv[e].some(n=>!!t[n])};function X$(e){for(const t in e)ba[t]={...ba[t],...e[t]}}const Cm=b.createContext({}),XS=b.createContext({}),q$=Symbol.for("motionComponentSymbol");function Q$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&X$(e);function i(a,l){let u;const c={...b.useContext(GS),...a,layoutId:Z$(a)},{isStatic:d}=c,f=Y$(a),p=r(a,d);if(!d&&Dc){f.visualElement=U$(o,p,c,t);const m=b.useContext(XS),y=b.useContext(KS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return b.createElement(Lc.Provider,{value:f},u&&f.visualElement?b.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,G$(p,f.visualElement,l),p,d,f.visualElement))}const s=b.forwardRef(i);return s[q$]=o,s}function Z$({layoutId:e}){const t=b.useContext(Cm).id;return t&&e!==void 0?t+"-"+e:e}function J$(e){function t(r,o={}){return Q$(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const eO=["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 Em(e){return typeof e!="string"||e.includes("-")?!1:!!(eO.indexOf(e)>-1||/[A-Z]/.test(e))}const Hu={};function tO(e){Object.assign(Hu,e)}const La=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$o=new Set(La);function qS(e,{layout:t,layoutId:n}){return $o.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hu[e]||e==="opacity")}const Mt=e=>!!(e&&e.getVelocity),nO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rO=La.length;function oO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ZS=QS("--"),Ap=QS("var(--"),iO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,sO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hr=(e,t,n)=>Math.min(Math.max(n,e),t),Oo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fs={...Oo,transform:e=>Hr(0,1,e)},Tl={...Oo,default:1},Bs=e=>Math.round(e*1e5)/1e5,Fc=/(-)?([\d]*\.?[\d])+/g,JS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,aO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Da(e){return typeof e=="string"}const Ia=e=>({test:t=>Da(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ia("deg"),Dn=Ia("%"),K=Ia("px"),lO=Ia("vh"),uO=Ia("vw"),Wv={...Dn,parse:e=>Dn.parse(e)/100,transform:e=>Dn.transform(e*100)},Uv={...Oo,transform:Math.round},ew={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Tl,scaleX:Tl,scaleY:Tl,scaleZ:Tl,skew:xr,skewX:xr,skewY:xr,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Fs,originX:Wv,originY:Wv,originZ:K,zIndex:Uv,fillOpacity:Fs,strokeOpacity:Fs,numOctaves:Uv};function _m(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(ZS(d)){i[d]=f;continue}const p=ew[d],m=sO(f,p);if($o.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):o[d]=m}if(t.transform||(l||r?o.transform=oO(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const Tm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tw(e,t,n){for(const r in t)!Mt(t[r])&&!qS(r,n)&&(e[r]=t[r])}function cO({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Tm();return _m(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function dO(e,t,n){const r=e.style||{},o={};return tw(o,r,e),Object.assign(o,cO(e,t,n)),e.transformValues?e.transformValues(o):o}function fO(e,t,n){const r={},o=dO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.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)&&(r.tabIndex=0),r.style=o,r}const pO=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 Wu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||pO.has(e)}let nw=e=>!Wu(e);function hO(e){e&&(nw=t=>t.startsWith("on")?!Wu(t):e(t))}try{hO(require("@emotion/is-prop-valid").default)}catch{}function mO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(nw(o)||n===!0&&Wu(o)||!t&&!Wu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gv(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function gO(e,t,n){const r=Gv(t,e.x,e.width),o=Gv(n,e.y,e.height);return`${r} ${o}`}const vO={offset:"stroke-dashoffset",array:"stroke-dasharray"},yO={offset:"strokeDashoffset",array:"strokeDasharray"};function bO(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?vO:yO;e[i.offset]=K.transform(-r);const s=K.transform(t),a=K.transform(n);e[i.array]=`${s} ${a}`}function Pm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(_m(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:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=gO(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&bO(p,s,a,l,!1)}const rw=()=>({...Tm(),attrs:{}}),Am=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xO(e,t,n,r){const o=b.useMemo(()=>{const i=rw();return Pm(i,t,{enableHardwareAcceleration:!1},Am(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};tw(i,e.style,e),o.style={...i,...o.style}}return o}function SO(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Em(n)?xO:fO)(r,i,s,n),c={...mO(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=b.useMemo(()=>Mt(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}const Rm=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ow(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const iw=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 sw(e,t,n,r){ow(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(iw.has(o)?o:Rm(o),t.attrs[o])}function Mm(e,t){const{style:n}=e,r={};for(const o in n)(Mt(n[o])||t.style&&Mt(t.style[o])||qS(o,e))&&(r[o]=n[o]);return r}function aw(e,t){const n=Mm(e,t);for(const r in e)if(Mt(e[r])||Mt(t[r])){const o=La.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function $m(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function lw(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Uu=e=>Array.isArray(e),wO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kO=e=>Uu(e)?e[e.length-1]||0:e;function ru(e){const t=Mt(e)?e.get():e;return wO(t)?t.toValue():t}function CO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:EO(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const uw=e=>(t,n)=>{const r=b.useContext(Lc),o=b.useContext(za),i=()=>CO(e,t,r,o);return n?i():lw(i)};function EO(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ru(i[f]);let{initial:s,animate:a}=e;const l=jc(e),u=YS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Ic(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=$m(e,p);if(!m)return;const{transitionEnd:y,transition:w,...g}=m;for(const h in g){let v=g[h];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const De=e=>e;class Kv{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function _O(e){let t=new Kv,n=new Kv,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=_O(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,TO),1),o.timestamp=d,o.isProcessing=!0,Pl.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:Pl.reduce((d,f)=>{const p=i[f];return d[f]=(m,y=!1,w=!1)=>(n||l(),p.schedule(m,y,w)),d},{}),cancel:d=>Pl.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Se,cancel:cr,state:Ye,steps:of}=PO(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0),AO={useVisualState:uw({scrapeMotionValuesFromProps:aw,createRenderState:rw,onMount:(e,t,{renderState:n,latestValues:r})=>{Se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{Pm(n,r,{enableHardwareAcceleration:!1},Am(t.tagName),e.transformTemplate),sw(t,n)})}})},RO={useVisualState:uw({scrapeMotionValuesFromProps:Mm,createRenderState:Tm})};function MO(e,{forwardMotionProps:t=!1},n,r){return{...Em(e)?AO:RO,preloadedFeatures:n,useRender:SO(t),createVisualElement:r,Component:e}}function Zn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $O=e=>t=>cw(t)&&e(t,Bc(t));function nr(e,t,n,r){return Zn(e,t,$O(n),r)}const OO=(e,t)=>n=>t(e(n)),jr=(...e)=>e.reduce(OO);function dw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Yv=dw("dragHorizontal"),Xv=dw("dragVertical");function fw(e){let t=!1;if(e==="y")t=Xv();else if(e==="x")t=Yv();else{const n=Yv(),r=Xv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function pw(){const e=fw(!0);return e?(e(),!1):!0}class qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||pw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Se.update(()=>a[r](i,s))};return nr(e.current,n,o,{passive:!e.getProps()[r]})}class zO extends qr{mount(){this.unmount=jr(qv(this.node,!0),qv(this.node,!1))}unmount(){}}class LO extends qr{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=jr(Zn(this.node.current,"focus",()=>this.onFocus()),Zn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hw=(e,t)=>t?e===t?!0:hw(e,t.parentElement):!1;function sf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Bc(n))}class DO extends qr{constructor(){super(...arguments),this.removeStartListeners=De,this.removeEndListeners=De,this.removeAccessibleListeners=De,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=nr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Se.update(()=>{hw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=nr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||sf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Zn(this.node.current,"keyup",s),sf("down",(a,l)=>{this.startPress(a,l)})},n=Zn(this.node.current,"keydown",t),r=()=>{this.isPressing&&sf("cancel",(i,s)=>this.cancelPress(i,s))},o=Zn(this.node.current,"blur",r);this.removeAccessibleListeners=jr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Se.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Se.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=nr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rp=new WeakMap,af=new WeakMap,IO=e=>{const t=Rp.get(e.target);t&&t(e)},jO=e=>{e.forEach(IO)};function FO({root:e,...t}){const n=e||document;af.has(n)||af.set(n,{});const r=af.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(jO,{root:e,...t})),r[o]}function BO(e,t,n){const r=FO(t);return Rp.set(e,n),r.observe(e),()=>{Rp.delete(e),r.unobserve(e)}}const NO={some:0,all:1};class VO extends qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:NO[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return BO(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HO(t,n))&&this.startObserver()}unmount(){}}function HO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WO={inView:{Feature:VO},tap:{Feature:DO},focus:{Feature:LO},hover:{Feature:zO}};function mw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function GO(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Nc(e,t,n){const r=e.getProps();return $m(r,t,n!==void 0?n:r.custom,UO(e),GO(e))}const KO="framerAppearId",YO="data-"+Rm(KO);let XO=De,Om=De;const Fr=e=>e*1e3,rr=e=>e/1e3,qO={current:!1},gw=e=>Array.isArray(e)&&typeof e[0]=="number";function vw(e){return!!(!e||typeof e=="string"&&yw[e]||gw(e)||Array.isArray(e)&&e.every(vw))}const ks=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function bw(e){if(e)return gw(e)?ks(e):Array.isArray(e)?e.map(bw):yw[e]}function QO(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=bw(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function ZO(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const xw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JO=1e-7,ez=12;function tz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=xw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>JO&&++atz(i,0,1,e,n);return i=>i===0||i===1?i:xw(o(i),t,r)}const nz=ja(.42,0,1,1),rz=ja(0,0,.58,1),Sw=ja(.42,0,.58,1),oz=e=>Array.isArray(e)&&typeof e[0]!="number",ww=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kw=e=>t=>1-e(1-t),Cw=e=>1-Math.sin(Math.acos(e)),zm=kw(Cw),iz=ww(zm),Ew=ja(.33,1.53,.69,.99),Lm=kw(Ew),sz=ww(Lm),az=e=>(e*=2)<1?.5*Lm(e):.5*(2-Math.pow(2,-10*(e-1))),lz={linear:De,easeIn:nz,easeInOut:Sw,easeOut:rz,circIn:Cw,circInOut:iz,circOut:zm,backIn:Lm,backInOut:sz,backOut:Ew,anticipate:az},Qv=e=>{if(Array.isArray(e)){Om(e.length===4);const[t,n,r,o]=e;return ja(t,n,r,o)}else if(typeof e=="string")return lz[e];return e},Dm=(e,t)=>n=>!!(Da(n)&&aO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_w=(e,t,n)=>r=>{if(!Da(r))return r;const[o,i,s,a]=r.match(Fc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},uz=e=>Hr(0,255,e),lf={...Oo,transform:e=>Math.round(uz(e))},mo={test:Dm("rgb","red"),parse:_w("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lf.transform(e)+", "+lf.transform(t)+", "+lf.transform(n)+", "+Bs(Fs.transform(r))+")"};function cz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Mp={test:Dm("#"),parse:cz,transform:mo.transform},ui={test:Dm("hsl","hue"),parse:_w("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dn.transform(Bs(t))+", "+Dn.transform(Bs(n))+", "+Bs(Fs.transform(r))+")"},pt={test:e=>mo.test(e)||Mp.test(e)||ui.test(e),parse:e=>mo.test(e)?mo.parse(e):ui.test(e)?ui.parse(e):Mp.parse(e),transform:e=>Da(e)?e:e.hasOwnProperty("red")?mo.transform(e):ui.transform(e)},Me=(e,t,n)=>-n*e+n*t+e;function uf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=uf(l,a,e+1/3),i=uf(l,a,e),s=uf(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const cf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},fz=[Mp,mo,ui],pz=e=>fz.find(t=>t.test(e));function Zv(e){const t=pz(e);let n=t.parse(e);return t===ui&&(n=dz(n)),n}const Tw=(e,t)=>{const n=Zv(e),r=Zv(t),o={...n};return i=>(o.red=cf(n.red,r.red,i),o.green=cf(n.green,r.green,i),o.blue=cf(n.blue,r.blue,i),o.alpha=Me(n.alpha,r.alpha,i),mo.transform(o))};function hz(e){var t,n;return isNaN(e)&&Da(e)&&(((t=e.match(Fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(JS))===null||n===void 0?void 0:n.length)||0)>0}const Pw={regex:iO,countKey:"Vars",token:"${v}",parse:De},Aw={regex:JS,countKey:"Colors",token:"${c}",parse:pt.parse},Rw={regex:Fc,countKey:"Numbers",token:"${n}",parse:Oo.parse};function df(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Gu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&df(n,Pw),df(n,Aw),df(n,Rw),n}function Mw(e){return Gu(e).values}function $w(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Gu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function gz(e){const t=Mw(e);return $w(e)(t.map(mz))}const Wr={test:hz,parse:Mw,createTransformer:$w,getAnimatableNone:gz},Ow=(e,t)=>n=>`${n>0?t:e}`;function zw(e,t){return typeof e=="number"?n=>Me(e,t,n):pt.test(e)?Tw(e,t):e.startsWith("var(")?Ow(e,t):Dw(e,t)}const Lw=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>zw(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=zw(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Dw=(e,t)=>{const n=Wr.createTransformer(t),r=Gu(e),o=Gu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?jr(Lw(r.values,o.values),n):Ow(e,t)},xa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Jv=(e,t)=>n=>Me(e,t,n);function yz(e){return typeof e=="number"?Jv:typeof e=="string"?pt.test(e)?Tw:Dw:Array.isArray(e)?Lw:typeof e=="object"?vz:Jv}function bz(e,t,n){const r=[],o=n||yz(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=bz(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Hr(e[0],e[i-1],u)):l}function xz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=xa(0,t,r);e.push(Me(n,1,o))}}function Sz(e){const t=[0];return xz(t,e.length-1),t}function wz(e,t){return e.map(n=>n*t)}function kz(e,t){return e.map(()=>t||Sw).splice(0,e.length-1)}function Ku({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=oz(r)?r.map(Qv):Qv(r),i={done:!1,value:t[0]},s=wz(n&&n.length===t.length?n:Sz(t),e),a=Iw(s,t,{ease:Array.isArray(o)?o:kz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function jw(e,t){return t?e*(1e3/t):0}const Cz=5;function Fw(e,t,n){const r=Math.max(t-Cz,0);return jw(n-e(r),t-r)}const ff=.001,Ez=.01,ey=10,_z=.05,Tz=1;function Pz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;XO(e<=Fr(ey));let s=1-t;s=Hr(_z,Tz,s),e=Hr(Ez,ey,rr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=$p(u,s),m=Math.exp(-d);return ff-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=$p(Math.pow(u,2),s);return(-o(u)+ff>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ff+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Rz(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Az=12;function Rz(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function Oz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ty(e,$z)&&ty(e,Mz)){const n=Pz(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Bw({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=Oz(r),p=c?-rr(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,w=rr(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const v=$p(w,m);h=S=>{const T=Math.exp(-m*w*S);return i-T*((p+m*w*y)/v*Math.sin(v*S)+y*Math.cos(v*S))}}else if(m===1)h=v=>i-Math.exp(-w*v)*(y+(p+w*y)*v);else{const v=w*Math.sqrt(m*m-1);h=S=>{const T=Math.exp(-m*w*S),P=Math.min(v*S,300);return i-T*((p+m*w*y)*Math.sinh(P)+v*y*Math.cosh(P))/v}}return{calculatedDuration:f&&d||null,next:v=>{const S=h(v);if(f)s.done=v>=d;else{let T=p;v!==0&&(m<1?T=Fw(h,v,S):T=0);const P=Math.abs(T)<=n,_=Math.abs(i-S)<=t;s.done=P&&_}return s.value=s.done?i:S,s}}}function ny({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-y*Math.exp(-A/r),v=A=>g+h(A),S=A=>{const O=h(A),$=v(A);f.done=Math.abs(O)<=u,f.value=f.done?g:$};let T,P;const _=A=>{p(f.value)&&(T=A,P=Bw({keyframes:[f.value,m(f.value)],velocity:Fw(v,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:A=>{let O=!1;return!P&&T===void 0&&(O=!0,S(A),_(A)),T!==void 0&&A>T?P.next(A-T):(!O&&S(A),f)}}}const zz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Se.update(t,!0),stop:()=>cr(t),now:()=>Ye.isProcessing?Ye.timestamp:performance.now()}},ry=2e4;function oy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ry?1/0:t}const Lz={decay:ny,inertia:ny,tween:Ku,keyframes:Ku,spring:Bw};function Yu({autoplay:e=!0,delay:t=0,driver:n=zz,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,m=!1,y,w;const g=()=>{w=new Promise(V=>{y=V})};g();let h;const v=Lz[o]||Ku;let S;v!==Ku&&typeof r[0]!="number"&&(S=Iw([0,100],r,{clamp:!1}),r=[0,100]);const T=v({...f,keyframes:r});let P;a==="mirror"&&(P=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",A=null,O=null,$=null;T.calculatedDuration===null&&i&&(T.calculatedDuration=oy(T));const{calculatedDuration:F}=T;let q=1/0,X=1/0;F!==null&&(q=F+s,X=q*(i+1)-s);let Q=0;const J=V=>{if(O===null)return;p>0&&(O=Math.min(O,V)),p<0&&(O=Math.min(V-X/p,O)),A!==null?Q=A:Q=Math.round(V-O)*p;const te=Q-t*(p>=0?1:-1),N=p>=0?te<0:te>X;Q=Math.max(te,0),_==="finished"&&A===null&&(Q=X);let G=Q,ke=T;if(i){const Gt=Q/q;let Kt=Math.floor(Gt),it=Gt%1;!it&&Gt>=1&&(it=1),it===1&&Kt--,Kt=Math.min(Kt,i+1);const Bn=!!(Kt%2);Bn&&(a==="reverse"?(it=1-it,s&&(it-=s/q)):a==="mirror"&&(ke=P));let Nn=Hr(0,1,it);Q>X&&(Nn=a==="reverse"&&Bn?1:0),G=Nn*q}const he=N?{done:!1,value:r[0]}:ke.next(G);S&&(he.value=S(he.value));let{done:We}=he;!N&&F!==null&&(We=p>=0?Q>=X:Q<=0);const Ie=A===null&&(_==="finished"||_==="running"&&We);return d&&d(he.value),Ie&&L(),he},Z=()=>{h&&h.stop(),h=void 0},z=()=>{_="idle",Z(),y(),g(),O=$=null},L=()=>{_="finished",c&&c(),Z(),y()},B=()=>{if(m)return;h||(h=n(J));const V=h.now();l&&l(),A!==null?O=V-A:(!O||_==="finished")&&(O=V),_==="finished"&&g(),$=O,A=null,_="running",h.start()};e&&B();const W={then(V,te){return w.then(V,te)},get time(){return rr(Q)},set time(V){V=Fr(V),Q=V,A!==null||!h||p===0?A=V:O=h.now()-V/p},get duration(){const V=T.calculatedDuration===null?oy(T):T.calculatedDuration;return rr(V)},get speed(){return p},set speed(V){V===p||!h||(p=V,W.time=rr(Q))},get state(){return _},play:B,pause:()=>{_="paused",A=Q},stop:()=>{m=!0,_!=="idle"&&(_="idle",u&&u(),z())},cancel:()=>{$!==null&&J($),z()},complete:()=>{_="finished"},sample:V=>(O=0,J(V))};return W}function Dz(e){let t;return()=>(t===void 0&&(t=e()),t)}const Iz=Dz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jz=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Al=10,Fz=2e4,Bz=(e,t)=>t.type==="spring"||e==="backgroundColor"||!vw(t.ease);function Nz(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Iz()&&jz.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(h=>{a=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(Bz(t,o)){const h=Yu({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const S=[];let T=0;for(;!v.done&&Tm.cancel(),w=()=>{Se.update(y),a(),u()};return m.onfinish=()=>{e.set(ZO(c,o)),r&&r(),w()},{then(h,v){return l.then(h,v)},attachTimeline(h){return m.timeline=h,m.onfinish=null,De},get time(){return rr(m.currentTime||0)},set time(h){m.currentTime=Fr(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return rr(d)},play:()=>{s||(m.play(),cr(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const v=Yu({...o,autoplay:!1});e.setWithVelocity(v.sample(h-Al).value,v.sample(h).value,Al)}w()},complete:()=>m.finish(),cancel:w}}function Vz({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:De,pause:De,stop:De,then:i=>(i(),Promise.resolve()),cancel:De,complete:De});return t?Yu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Hz={type:"spring",stiffness:500,damping:25,restSpeed:10},Wz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Uz={type:"keyframes",duration:.8},Gz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kz=(e,{keyframes:t})=>t.length>2?Uz:$o.has(e)?e.startsWith("scale")?Wz(t[1]):Hz:Gz,Op=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wr.test(t)||t==="0")&&!t.startsWith("url(")),Yz=new Set(["brightness","contrast","saturate","opacity"]);function Xz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fc)||[];if(!r)return e;const o=n.replace(r,"");let i=Yz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const qz=/([a-z-]*)\(.*?\)/g,zp={...Wr,getAnimatableNone:e=>{const t=e.match(qz);return t?t.map(Xz).join(" "):e}},Qz={...ew,color:pt,backgroundColor:pt,outlineColor:pt,fill:pt,stroke:pt,borderColor:pt,borderTopColor:pt,borderRightColor:pt,borderBottomColor:pt,borderLeftColor:pt,filter:zp,WebkitFilter:zp},Im=e=>Qz[e];function Nw(e,t){let n=Im(e);return n!==zp&&(n=Wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Vw=e=>/^0[^.\s]+$/.test(e);function Zz(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Vw(e)}function Jz(e,t,n,r){const o=Op(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Hw(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Fr(s);const l=Jz(t,e,n,i),u=l[0],c=l[l.length-1],d=Op(e,u),f=Op(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(eL(i)||(p={...p,...Kz(e,p)}),p.duration&&(p.duration=Fr(p.duration)),p.repeatDelay&&(p.repeatDelay=Fr(p.repeatDelay)),!d||!f||qO.current||i.type===!1)return Vz(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Nz(t,e,p);if(m)return m}return Yu(p)};function Xu(e){return!!(Mt(e)&&e.add)}const Ww=e=>/^\-?\d*\.?\d+$/.test(e);function Fm(e,t){e.indexOf(t)===-1&&e.push(t)}function Bm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nm{constructor(){this.subscriptions=[]}add(t){return Fm(this.subscriptions,t),()=>Bm(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class nL{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ye;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Se.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=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=tL(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Nm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?jw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Li(e,t){return new nL(e,t)}const Uw=e=>t=>t.test(e),rL={test:e=>e==="auto",parse:e=>e},Gw=[Oo,K,Dn,xr,uO,lO,rL],us=e=>Gw.find(Uw(e)),oL=[...Gw,pt,Wr],iL=e=>oL.find(Uw(e));function sL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Li(n))}function aL(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=kO(i[s]);sL(e,s,a)}}function lL(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&aL(e,s)}),u}function Lp(e,t,n={}){const r=Nc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Kw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return fL(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function fL(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(pL).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Lp(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function pL(e,t){return e.sortNodePosition(t)}function hL(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Lp(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Lp(e,t,n);else{const o=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(Kw(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const mL=[...wm].reverse(),gL=wm.length;function vL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hL(e,n,r)))}function yL(e){let t=vL(e);const n=xL();let r=!0;const o=(l,u)=>{const c=Nc(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let m={},y=1/0;for(let g=0;gy&&T;const $=Array.isArray(S)?S:[S];let F=$.reduce(o,{});P===!1&&(F={});const{prevResolvedValues:q={}}=v,X={...q,...F},Q=J=>{O=!0,p.delete(J),v.needsAnimating[J]=!0};for(const J in X){const Z=F[J],z=q[J];m.hasOwnProperty(J)||(Z!==z?Uu(Z)&&Uu(z)?!mw(Z,z)||A?Q(J):v.protectedKeys[J]=!0:Z!==void 0?Q(J):p.add(J):Z!==void 0&&p.has(J)?Q(J):v.protectedKeys[J]=!0)}v.prevProp=S,v.prevResolvedValues=F,v.isActive&&(m={...m,...F}),r&&e.blockInitialAnimation&&(O=!1),O&&!_&&f.push(...$.map(J=>({animation:J,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(g[h]=v)}),f.push({animation:g})}let w=!!f.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function bL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mw(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xL(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class SL extends qr{constructor(t){super(t),t.animationState||(t.animationState=yL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ic(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let wL=0;class kL extends qr{constructor(){super(...arguments),this.id=wL++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const CL={animation:{Feature:SL},exit:{Feature:kL}},iy=(e,t)=>Math.abs(e-t);function EL(e,t){const n=iy(e.x,t.x),r=iy(e.y,t.y);return Math.sqrt(n**2+r**2)}class Yw{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=hf(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=EL(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Ye;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=pf(c,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=hf(u.type==="pointercancel"?this.lastMoveEventInfo:pf(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!cw(t))return;this.handlers=n,this.transformPagePoint=r;const o=Bc(t),i=pf(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Ye;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,hf(i,this.history)),this.removeListeners=jr(nr(window,"pointermove",this.handlePointerMove),nr(window,"pointerup",this.handlePointerUp),nr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function pf(e,t){return t?{point:t(e.point)}:e}function sy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hf({point:e},t){return{point:e,delta:sy(e,Xw(t)),offset:sy(e,_L(t)),velocity:TL(t,.1)}}function _L(e){return e[0]}function Xw(e){return e[e.length-1]}function TL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Xw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fr(t)));)n--;if(!r)return{x:0,y:0};const i=rr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Bt(e){return e.max-e.min}function Dp(e,t=0,n=.01){return Math.abs(e-t)<=n}function ay(e,t,n,r=.5){e.origin=r,e.originPoint=Me(t.min,t.max,e.origin),e.scale=Bt(n)/Bt(t),(Dp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Me(n.min,n.max,e.origin)-e.originPoint,(Dp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ns(e,t,n,r){ay(e.x,t.x,n.x,r?r.originX:void 0),ay(e.y,t.y,n.y,r?r.originY:void 0)}function ly(e,t,n){e.min=n.min+t.min,e.max=e.min+Bt(t)}function PL(e,t,n){ly(e.x,t.x,n.x),ly(e.y,t.y,n.y)}function uy(e,t,n){e.min=t.min-n.min,e.max=e.min+Bt(t)}function Vs(e,t,n){uy(e.x,t.x,n.x),uy(e.y,t.y,n.y)}function AL(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Me(n,e,r.max):Math.min(e,n)),e}function cy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function RL(e,{top:t,left:n,bottom:r,right:o}){return{x:cy(e.x,n,o),y:cy(e.y,t,r)}}function dy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=xa(t.min,t.max-r,e.min):r>o&&(n=xa(e.min,e.max-o,t.min)),Hr(0,1,n)}function OL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ip=.35;function zL(e=Ip){return e===!1?e=0:e===!0&&(e=Ip),{x:fy(e,"left","right"),y:fy(e,"top","bottom")}}function fy(e,t,n){return{min:py(e,t),max:py(e,n)}}function py(e,t){return typeof e=="number"?e:e[t]||0}const hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ci=()=>({x:hy(),y:hy()}),my=()=>({min:0,max:0}),Be=()=>({x:my(),y:my()});function Tn(e){return[e("x"),e("y")]}function qw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mf(e){return e===void 0||e===1}function jp({scale:e,scaleX:t,scaleY:n}){return!mf(e)||!mf(t)||!mf(n)}function so(e){return jp(e)||Qw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Qw(e){return gy(e.x)||gy(e.y)}function gy(e){return e&&e!=="0%"}function qu(e,t,n){const r=e-n,o=t*r;return n+o}function vy(e,t,n,r,o){return o!==void 0&&(e=qu(e,o,r)),qu(e,n,r)+t}function Fp(e,t=0,n=1,r,o){e.min=vy(e.min,t,n,r,o),e.max=vy(e.max,t,n,r,o)}function Zw(e,{x:t,y:n}){Fp(e.x,t.translate,t.scale,t.originPoint),Fp(e.y,n.translate,n.scale,n.originPoint)}function IL(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function kr(e,t){e.min=e.min+t,e.max=e.max+t}function by(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=Me(e.min,e.max,i);Fp(e,t[n],t[r],s,t.scale)}const jL=["x","scaleX","originX"],FL=["y","scaleY","originY"];function di(e,t){by(e.x,t,jL),by(e.y,t,FL)}function Jw(e,t){return qw(DL(e.getBoundingClientRect(),t))}function BL(e,t,n){const r=Jw(e,n),{scroll:o}=t;return o&&(kr(r.x,o.offset.x),kr(r.y,o.offset.y)),r}const NL=new WeakMap;class VL{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(Bc(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=fw(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),Tn(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Dn.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const g=w.layout.layoutBox[m];g&&(y=Bt(g)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&Se.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=HL(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new Yw(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Se.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Rl(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=AL(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=RL(r.layoutBox,t):this.constraints=!1,this.elastic=zL(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Tn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=OL(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!li(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=BL(r,o.root,this.visualElement.getTransformPagePoint());let s=ML(o.layout.layoutBox,i);if(n){const a=n(LL(s));this.hasMutatedConstraints=!!a,a&&(s=qw(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Tn(c=>{if(!Rl(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(jm(t,r,0,n))}stopAnimation(){Tn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tn(n=>{const{drag:r}=this.getProps();if(!Rl(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Tn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=$L({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tn(s=>{if(!Rl(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Me(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;NL.set(this.visualElement,this);const t=this.visualElement.current,n=nr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();li(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Zn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Ip,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Rl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class WL extends qr{constructor(t){super(t),this.removeGroupControls=De,this.removeListeners=De,this.controls=new VL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const xy=e=>(t,n)=>{e&&Se.update(()=>e(t,n))};class UL extends qr{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(t){this.session=new Yw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:xy(t),onStart:xy(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Se.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=nr(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 GL(){const e=b.useContext(za);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=b.useId();return b.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function KL(){return YL(b.useContext(za))}function YL(e){return e===null?!0:e.isPresent}const ou={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=Sy(e,t.target.x),r=Sy(e,t.target.y);return`${n}% ${r}%`}},XL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Wr.parse(e);if(o.length>5)return r;const i=Wr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=Me(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class qL extends nt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;tO(QL),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ou.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function e2(e){const[t,n]=GL(),r=b.useContext(Cm);return nt.createElement(qL,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(XS),isPresent:t,safeToRemove:n})}const QL={borderRadius:{...cs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cs,borderTopRightRadius:cs,borderBottomLeftRadius:cs,borderBottomRightRadius:cs,boxShadow:XL},t2=["TopLeft","TopRight","BottomLeft","BottomRight"],ZL=t2.length,wy=e=>typeof e=="string"?parseFloat(e):e,ky=e=>typeof e=="number"||K.test(e);function JL(e,t,n,r,o,i){o?(e.opacity=Me(0,n.opacity!==void 0?n.opacity:1,e8(r)),e.opacityExit=Me(t.opacity!==void 0?t.opacity:1,0,t8(r))):i&&(e.opacity=Me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(xa(e,t,r))}function Ey(e,t){e.min=t.min,e.max=t.max}function Zt(e,t){Ey(e.x,t.x),Ey(e.y,t.y)}function _y(e,t,n,r,o){return e-=t,e=qu(e,1/n,r),o!==void 0&&(e=qu(e,1/o,r)),e}function n8(e,t=0,n=1,r=.5,o,i=e,s=e){if(Dn.test(t)&&(t=parseFloat(t),t=Me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Me(i.min,i.max,r);e===i&&(a-=t),e.min=_y(e.min,t,n,a,o),e.max=_y(e.max,t,n,a,o)}function Ty(e,t,[n,r,o],i,s){n8(e,t[n],t[r],t[o],t.scale,i,s)}const r8=["x","scaleX","originX"],o8=["y","scaleY","originY"];function Py(e,t,n,r){Ty(e.x,t,r8,n?n.x:void 0,r?r.x:void 0),Ty(e.y,t,o8,n?n.y:void 0,r?r.y:void 0)}function Ay(e){return e.translate===0&&e.scale===1}function r2(e){return Ay(e.x)&&Ay(e.y)}function i8(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 o2(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 Ry(e){return Bt(e.x)/Bt(e.y)}class s8{constructor(){this.members=[]}add(t){Fm(this.members,t),t.scheduleRender()}remove(t){if(Bm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function My(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const a8=(e,t)=>e.depth-t.depth;class l8{constructor(){this.children=[],this.isDirty=!1}add(t){Fm(this.children,t),this.isDirty=!0}remove(t){Bm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(a8),this.isDirty=!1,this.children.forEach(t)}}function u8(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cr(r),e(i-t))};return Se.read(r,!0),()=>cr(r)}function c8(e){window.MotionDebug&&window.MotionDebug.record(e)}function d8(e){return e instanceof SVGElement&&e.tagName!=="svg"}function f8(e,t,n){const r=Mt(e)?e:Li(e);return r.start(jm("",r,t,n)),r.animation}const $y=["","X","Y","Z"],Oy=1e3;let p8=0;const ao={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function i2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=p8++,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=()=>{ao.totalNodes=ao.resolvedTargetDeltas=ao.recalculatedProjection=0,this.nodes.forEach(g8),this.nodes.forEach(S8),this.nodes.forEach(w8),this.nodes.forEach(v8),c8(ao)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=u8(f,250),ou.hasAnimatedSinceResize&&(ou.hasAnimatedSinceResize=!1,this.nodes.forEach(Ly))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||T8,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!o2(this.targetLayout,m)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...Hw(y,"layout"),onPlay:w,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Ly(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cr(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(k8),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(y8),this.sharedNodes.forEach(C8)}scheduleUpdateProjection(){Se.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=S/1e3;Dy(d.x,s.x,T),Dy(d.y,s.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),E8(this.relativeTarget,this.relativeTargetOrigin,f,T),v&&i8(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),Zt(v,this.relativeTarget)),y&&(this.animationValues=c,JL(c,u,this.latestValues,T,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{ou.hasAnimatedSinceResize=!0,this.currentAnimation=f8(0,Oy,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Oy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&s2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Bt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Bt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Zt(a,l),di(a,c),Ns(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new s8),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<$y.length;c++){const d="rotate"+$y[c];l[d]&&(u[d]=l[d],s.setStaticValue(d,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ru(s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=ru(s.pointerEvents)||""),this.hasProjected&&!so(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=My(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Hu){if(f[y]===void 0)continue;const{correct:w,applyTo:g}=Hu[y],h=u.transform==="none"?f[y]:w(f[y],d);if(g){const v=g.length;for(let S=0;S{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(zy),this.root.sharedNodes.clear()}}}function h8(e){e.updateLayout()}function m8(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Tn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Bt(f);f.min=r[d].min,f.max=f.min+p}):s2(i,n.layoutBox,r)&&Tn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Bt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=ci();Ns(a,r,n.layoutBox);const l=ci();s?Ns(l,e.applyTransform(o,!0),n.measuredBox):Ns(l,r,n.layoutBox);const u=!r2(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Be();Vs(m,n.layoutBox,f.layoutBox);const y=Be();Vs(y,r,p.layoutBox),o2(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function g8(e){ao.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 v8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function y8(e){e.clearSnapshot()}function zy(e){e.clearMeasurements()}function b8(e){e.isLayoutDirty=!1}function x8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ly(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function S8(e){e.resolveTargetDelta()}function w8(e){e.calcProjection()}function k8(e){e.resetRotation()}function C8(e){e.removeLeadSnapshot()}function Dy(e,t,n){e.translate=Me(t.translate,0,n),e.scale=Me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Iy(e,t,n,r){e.min=Me(t.min,n.min,r),e.max=Me(t.max,n.max,r)}function E8(e,t,n,r){Iy(e.x,t.x,n.x,r),Iy(e.y,t.y,n.y,r)}function _8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T8={duration:.45,ease:[.4,0,.1,1]},jy=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Fy=jy("applewebkit/")&&!jy("chrome/")?Math.round:De;function By(e){e.min=Fy(e.min),e.max=Fy(e.max)}function P8(e){By(e.x),By(e.y)}function s2(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dp(Ry(t),Ry(n),.2)}const A8=i2({attachResizeListener:(e,t)=>Zn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gf={current:void 0},a2=i2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gf.current){const e=new A8({});e.mount(window),e.setOptions({layoutScroll:!0}),gf.current=e}return gf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),R8={pan:{Feature:UL},drag:{Feature:WL,ProjectionNode:a2,MeasureLayout:e2}},M8=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $8(e){const t=M8.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Bp(e,t,n=1){const[r,o]=$8(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ww(s)?parseFloat(s):s}else return Ap(o)?Bp(o,t,n+1):o}function O8(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ap(i))return;const s=Bp(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ap(i))continue;const s=Bp(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const z8=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),l2=e=>z8.has(e),L8=e=>Object.keys(e).some(l2),Ny=e=>e===Oo||e===K,Vy=(e,t)=>parseFloat(e.split(", ")[t]),Hy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Vy(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Vy(i[1],e):0}},D8=new Set(["x","y","z"]),I8=La.filter(e=>!D8.has(e));function j8(e){const t=[];return I8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Di={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Hy(4,13),y:Hy(5,14)};Di.translateX=Di.x;Di.translateY=Di.y;const F8=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Di[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Di[u](l,i)}),e},B8=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(l2);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=us(c);const f=t[l];let p;if(Uu(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=us(c);for(let w=y;w=0?window.pageYOffset:null,u=F8(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Dc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function N8(e,t,n,r){return L8(t)?B8(e,t,n,r):{target:t,transitionEnd:r}}const V8=(e,t,n,r)=>{const o=O8(e,t,r);return t=o.target,r=o.transitionEnd,N8(e,t,n,r)},Np={current:null},u2={current:!1};function H8(){if(u2.current=!0,!!Dc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Np.current=e.matches;e.addListener(t),t()}else Np.current=!1}function W8(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Mt(i))e.addValue(o,i),Xu(r)&&r.add(o);else if(Mt(s))e.addValue(o,Li(i,{owner:e})),Xu(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,Li(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Wy=new WeakMap,c2=Object.keys(ba),U8=c2.length,Uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],G8=km.length;class K8{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Se.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=jc(n),this.isVariantNode=YS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Mt(f)&&(f.set(a[d],!1),Xu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Wy.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),u2.current||H8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Np.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wy.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=$o.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.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,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Li(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=$m(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Mt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Nm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class d2 extends K8{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=cL(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){lL(this,r,s);const a=V8(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Y8(e){return window.getComputedStyle(e)}class X8 extends d2{readValueFromInstance(t,n){if($o.has(n)){const r=Im(n);return r&&r.default||0}else{const r=Y8(t),o=(ZS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Jw(t,n)}build(t,n,r,o){_m(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Mm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Mt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){ow(t,n,r,o)}}class q8 extends d2{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($o.has(n)){const r=Im(n);return r&&r.default||0}return n=iw.has(n)?n:Rm(n),t.getAttribute(n)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,n){return aw(t,n)}build(t,n,r,o){Pm(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){sw(t,n,r,o)}mount(t){this.isSVGTag=Am(t.tagName),super.mount(t)}}const Q8=(e,t)=>Em(e)?new q8(t,{enableHardwareAcceleration:!1}):new X8(t,{enableHardwareAcceleration:!0}),Z8={layout:{ProjectionNode:a2,MeasureLayout:e2}},J8={...CL,...WO,...R8,...Z8},f2=J$((e,t)=>MO(e,t,J8,Q8));function p2(){const e=b.useRef(!1);return Sm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function eD(){const e=p2(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>Se.postRender(r),[r]),t]}class tD extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nD({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),o=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${i}px !important; + height: ${s}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),b.createElement(tD,{isPresent:t,childRef:r,sizeRef:o},b.cloneElement(e,{ref:r}))}const vf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=lw(rD),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return b.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),b.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=b.createElement(nD,{isPresent:n},e)),b.createElement(za.Provider,{value:u},e)};function rD(){return new Map}function oD(e){return b.useEffect(()=>()=>e(),[])}const Ho=e=>e.key||"";function iD(e,t){e.forEach(n=>{const r=Ho(n);t.set(r,n)})}function sD(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const aD=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=b.useContext(Cm).forceRender||eD()[0],l=p2(),u=sD(e);let c=u;const d=b.useRef(new Map).current,f=b.useRef(c),p=b.useRef(new Map).current,m=b.useRef(!0);if(Sm(()=>{m.current=!1,iD(u,p),f.current=c}),oD(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return b.createElement(b.Fragment,null,c.map(h=>b.createElement(vf,{key:Ho(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(Ho),w=u.map(Ho),g=y.length;for(let h=0;h{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const T=y.indexOf(v);let P=h;if(!P){const _=()=>{p.delete(v),d.delete(v);const A=f.current.findIndex(O=>O.key===v);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};P=b.createElement(vf,{key:Ho(S),isPresent:!1,onExitComplete:_,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,P)}c.splice(T,0,P)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:b.createElement(vf,{key:Ho(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),b.createElement(b.Fragment,null,d.size?c:c.map(h=>b.cloneElement(h)))};var lD={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},h2=b.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=lD,toastSpacing:c="0.5rem"}=e,[d,f]=b.useState(a),p=KL();zi(()=>{p||r==null||r()},[p]),zi(()=>{f(a)},[a]);const m=()=>f(null),y=()=>f(a),w=()=>{p&&o()};b.useEffect(()=>{p&&i&&o()},[p,i,o]),W$(w,d);const g=b.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=b.useMemo(()=>V$(s),[s]);return k.jsx(f2.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:y,custom:{position:s},style:h,children:k.jsx(Y.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:qn(n,{id:t,onClose:w})})})});h2.displayName="ToastComponent";var Gy={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),k.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},zo=ee((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=ve("chakra-icon",a),d=Yr("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},m=r??Gy.viewBox;if(n&&typeof n!="string")return k.jsx(Y.svg,{as:n,...p,...u});const y=s??Gy.path;return k.jsx(Y.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:y})});zo.displayName="Icon";function uD(e){return k.jsx(zo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function cD(e){return k.jsx(zo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Ky(e){return k.jsx(zo,{viewBox:"0 0 24 24",...e,children:k.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var dD=lm({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Vc=ee((e,t)=>{const n=Yr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=xt(e),u=ve("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${dD} ${i} linear infinite`,...n};return k.jsx(Y.div,{ref:t,__css:c,className:u,...l,children:r&&k.jsx(Y.span,{srOnly:!0,children:r})})});Vc.displayName="Spinner";var[fD,Vm]=Ut({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[pD,Hm]=Ut({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),m2={info:{icon:cD,colorScheme:"blue"},warning:{icon:Ky,colorScheme:"orange"},success:{icon:uD,colorScheme:"green"},error:{icon:Ky,colorScheme:"red"},loading:{icon:Vc,colorScheme:"blue"}};function hD(e){return m2[e].colorScheme}function mD(e){return m2[e].icon}var g2=ee(function(t,n){const r=Hm(),{status:o}=Vm(),i={display:"inline",...r.description};return k.jsx(Y.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__desc",t.className),__css:i})});g2.displayName="AlertDescription";function v2(e){const{status:t}=Vm(),n=mD(t),r=Hm(),o=t==="loading"?r.spinner:r.icon;return k.jsx(Y.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||k.jsx(n,{h:"100%",w:"100%"})})}v2.displayName="AlertIcon";var y2=ee(function(t,n){const r=Hm(),{status:o}=Vm();return k.jsx(Y.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});y2.displayName="AlertTitle";var b2=ee(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=xt(t),a=(r=t.colorScheme)!=null?r:hD(o),l=Xr("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(fD,{value:{status:o},children:k.jsx(pD,{value:l,children:k.jsx(Y.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:ve("chakra-alert",t.className),__css:u})})})});b2.displayName="Alert";function gD(e){return k.jsx(zo,{focusable:"false","aria-hidden":!0,...e,children:k.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var x2=ee(function(t,n){const r=Yr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=xt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(Y.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||k.jsx(gD,{width:"1em",height:"1em"})})});x2.displayName="CloseButton";var vD={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Hs=yD(vD);function yD(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=bD(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=Nv(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:SD(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=US(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Nv(Hs.getState(),o).position}}var Yy=0;function bD(e,t={}){var n,r;Yy+=1;const o=(n=t.id)!=null?n:Yy,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Hs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var xD=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return k.jsxs(b2,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[k.jsx(v2,{children:u}),k.jsxs(Y.div,{flex:"1",maxWidth:"100%",children:[o&&k.jsx(y2,{id:c==null?void 0:c.title,children:o}),a&&k.jsx(g2,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&k.jsx(x2,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function SD(e={}){const{render:t,toastComponent:n=xD}=e;return o=>typeof t=="function"?t({...o,...e}):k.jsx(n,{...o,...e})}var[wD,LB]=Ut({name:"ToastOptionsContext",strict:!1}),kD=e=>{const t=b.useSyncExternalStore(Hs.subscribe,Hs.getState,Hs.getState),{motionVariants:n,component:r=h2,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:H$(a),children:k.jsx(aD,{initial:!1,children:l.map(u=>k.jsx(r,{motionVariants:n,...u},u.id))})},a)});return k.jsx(Rc,{...o,children:s})},CD=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return k.jsxs(B$,{theme:r,...i,children:[k.jsx(wD,{value:o==null?void 0:o.defaultOptions,children:n}),k.jsx(kD,{...o})]})},ED=CD(DS),_D=Object.defineProperty,TD=(e,t,n)=>t in e?_D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>(TD(e,typeof t!="symbol"?t+"":t,n),n);function Xy(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var PD=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function qy(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Qy(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var Vp=typeof window<"u"?b.useLayoutEffect:b.useEffect,Qu=e=>e,AD=class{constructor(){ze(this,"descendants",new Map),ze(this,"register",e=>{if(e!=null)return PD(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ze(this,"unregister",e=>{this.descendants.delete(e);const t=Xy(Array.from(this.descendants.keys()));this.assignIndex(t)}),ze(this,"destroy",()=>{this.descendants.clear()}),ze(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),ze(this,"count",()=>this.descendants.size),ze(this,"enabledCount",()=>this.enabledValues().length),ze(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),ze(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ze(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ze(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ze(this,"first",()=>this.item(0)),ze(this,"firstEnabled",()=>this.enabledItem(0)),ze(this,"last",()=>this.item(this.descendants.size-1)),ze(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ze(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),ze(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ze(this,"next",(e,t=!0)=>{const n=qy(e,this.count(),t);return this.item(n)}),ze(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=qy(r,this.enabledCount(),t);return this.enabledItem(o)}),ze(this,"prev",(e,t=!0)=>{const n=Qy(e,this.count()-1,t);return this.item(n)}),ze(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Qy(r,this.enabledCount()-1,t);return this.enabledItem(o)}),ze(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=Xy(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)})}};function RD(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 cn(...e){return t=>{e.forEach(n=>{RD(n,t)})}}function MD(...e){return b.useMemo(()=>cn(...e),e)}function $D(){const e=b.useRef(new AD);return Vp(()=>()=>e.current.destroy()),e.current}var[OD,S2]=Ut({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function zD(e){const t=S2(),[n,r]=b.useState(-1),o=b.useRef(null);Vp(()=>()=>{o.current&&t.unregister(o.current)},[]),Vp(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=Qu(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:cn(i,o)}}function LD(){return[Qu(OD),()=>Qu(S2()),()=>$D(),o=>zD(o)]}var Hp=ee(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return k.jsx("img",{width:r,height:o,ref:n,alt:i,...s})});Hp.displayName="NativeImage";function DD(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=b.useState("pending");b.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=b.useRef(),f=b.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=y=>{p(),c("loaded"),o==null||o(y)},m.onerror=y=>{p(),c("failed"),i==null||i(y)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return er(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var ID=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function jD(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var Hc=ee(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,y=r!==void 0||o!==void 0,w=u!=null||c||!y,g=DD({...t,crossOrigin:d,ignoreFallback:w}),h=ID(g,f),v={ref:n,objectFit:l,objectPosition:a,...w?m:jD(m,["onError","onLoad"])};return h?o||k.jsx(Y.img,{as:Hp,className:"chakra-image__placeholder",src:r,...v}):k.jsx(Y.img,{as:Hp,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...v})});Hc.displayName="Image";function Wm(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}var[DB,FD]=Ut({strict:!1,name:"ButtonGroupContext"});function BD(e){const[t,n]=b.useState(!e);return{ref:b.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Wp(e){const{children:t,className:n,...r}=e,o=b.isValidElement(t)?b.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return k.jsx(Y.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Wp.displayName="ButtonIcon";function Up(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=k.jsx(Vc,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=b.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return k.jsx(Y.div,{className:l,...a,__css:c,children:o})}Up.displayName="ButtonSpinner";var Wc=ee((e,t)=>{const n=FD(),r=Yr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:y,as:w,...g}=xt(e),h=b.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:v,type:S}=BD(w),T={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return k.jsxs(Y.button,{ref:MD(t,v),as:w,type:f??S,"data-active":le(s),"data-loading":le(i),__css:h,className:ve("chakra-button",y),...g,disabled:o||i,children:[i&&m==="start"&&k.jsx(Up,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||k.jsx(Y.span,{opacity:0,children:k.jsx(Zy,{...T})}):k.jsx(Zy,{...T}),i&&m==="end"&&k.jsx(Up,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Wc.displayName="Button";function Zy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return k.jsxs(k.Fragment,{children:[t&&k.jsx(Wp,{marginEnd:o,children:t}),r,n&&k.jsx(Wp,{marginStart:o,children:n})]})}var[ND,VD]=I$("Card"),w2=ee(function(t,n){const{className:r,...o}=t,i=VD();return k.jsx(Y.div,{ref:n,className:ve("chakra-card__body",r),__css:i.body,...o})}),k2=ee(function(t,n){const{className:r,children:o,direction:i="column",justify:s,align:a,...l}=xt(t),u=Xr("Card",t);return k.jsx(Y.div,{ref:n,className:ve("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:k.jsx(ND,{value:u,children:o})})}),[HD,WD]=Ut({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[UD,C2]=Ut({strict:!1,name:"FormControlContext"});function GD(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=b.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=b.useState(!1),[m,y]=b.useState(!1),[w,g]=b.useState(!1),h=b.useCallback((_={},A=null)=>({id:d,..._,ref:cn(A,O=>{O&&y(!0)})}),[d]),v=b.useCallback((_={},A=null)=>({..._,ref:A,"data-focus":le(w),"data-disabled":le(o),"data-invalid":le(r),"data-readonly":le(i),id:_.id!==void 0?_.id:u,htmlFor:_.htmlFor!==void 0?_.htmlFor:l}),[l,o,w,r,i,u]),S=b.useCallback((_={},A=null)=>({id:c,..._,ref:cn(A,O=>{O&&p(!0)}),"aria-live":"polite"}),[c]),T=b.useCallback((_={},A=null)=>({..._,...s,ref:A,role:"group"}),[s]),P=b.useCallback((_={},A=null)=>({..._,ref:A,role:"presentation","aria-hidden":!0,children:_.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!w,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:S,getRootProps:T,getLabelProps:v,getRequiredIndicatorProps:P}}var KD=ee(function(t,n){const r=Xr("Form",t),o=xt(t),{getRootProps:i,htmlProps:s,...a}=GD(o),l=ve("chakra-form-control",t.className);return k.jsx(UD,{value:a,children:k.jsx(HD,{value:r,children:k.jsx(Y.div,{...i({},n),className:l,__css:r.container})})})});KD.displayName="FormControl";var YD=ee(function(t,n){const r=C2(),o=WD(),i=ve("chakra-form__helper-text",t.className);return k.jsx(Y.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});YD.displayName="FormHelperText";function XD(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=E2(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Fd(n),"aria-required":Fd(o),"aria-readonly":Fd(r)}}function E2(e){var t,n,r;const o=C2(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...y}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...y,"aria-describedby":w.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:ut(o==null?void 0:o.onFocus,p),onBlur:ut(o==null?void 0:o.onBlur,m)}}var qD={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},QD=()=>typeof document<"u",Jy=!1,Fa=null,To=!1,Gp=!1,Kp=new Set;function Um(e,t){Kp.forEach(n=>n(e,t))}var ZD=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function JD(e){return!(e.metaKey||!ZD&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function e1(e){To=!0,JD(e)&&(Fa="keyboard",Um("keyboard",e))}function No(e){if(Fa="pointer",e.type==="mousedown"||e.type==="pointerdown"){To=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Um("pointer",e)}}function eI(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function tI(e){eI(e)&&(To=!0,Fa="virtual")}function nI(e){e.target===window||e.target===document||(!To&&!Gp&&(Fa="virtual",Um("virtual",e)),To=!1,Gp=!1)}function rI(){To=!1,Gp=!0}function t1(){return Fa!=="pointer"}function oI(){if(!QD()||Jy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){To=!0,e.apply(this,n)},document.addEventListener("keydown",e1,!0),document.addEventListener("keyup",e1,!0),document.addEventListener("click",tI,!0),window.addEventListener("focus",nI,!0),window.addEventListener("blur",rI,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",No,!0),document.addEventListener("pointermove",No,!0),document.addEventListener("pointerup",No,!0)):(document.addEventListener("mousedown",No,!0),document.addEventListener("mousemove",No,!0),document.addEventListener("mouseup",No,!0)),Jy=!0}function iI(e){oI(),e(t1());const t=()=>e(t1());return Kp.add(t),()=>{Kp.delete(t)}}function sI(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function aI(e={}){const t=E2(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:y,value:w,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":v,"aria-invalid":S,...T}=e,P=sI(T,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=Ir(p),A=Ir(a),O=Ir(l),[$,F]=b.useState(!1),[q,X]=b.useState(!1),[Q,J]=b.useState(!1),[Z,z]=b.useState(!1);b.useEffect(()=>iI(F),[]);const L=b.useRef(null),[B,W]=b.useState(!0),[V,te]=b.useState(!!c),N=d!==void 0,G=N?d:V,ke=b.useCallback(ne=>{if(r||n){ne.preventDefault();return}N||te(G?ne.target.checked:m?!0:ne.target.checked),_==null||_(ne)},[r,n,G,N,m,_]);er(()=>{L.current&&(L.current.indeterminate=!!m)},[m]),zi(()=>{n&&X(!1)},[n,X]),er(()=>{const ne=L.current;if(!(ne!=null&&ne.form))return;const Ze=()=>{te(!!c)};return ne.form.addEventListener("reset",Ze),()=>{var ft;return(ft=ne.form)==null?void 0:ft.removeEventListener("reset",Ze)}},[]);const he=n&&!f,We=b.useCallback(ne=>{ne.key===" "&&z(!0)},[z]),Ie=b.useCallback(ne=>{ne.key===" "&&z(!1)},[z]);er(()=>{if(!L.current)return;L.current.checked!==G&&te(L.current.checked)},[L.current]);const Gt=b.useCallback((ne={},Ze=null)=>{const ft=pr=>{q&&pr.preventDefault(),z(!0)};return{...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(q),"data-focus-visible":le(q&&$),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r),"aria-hidden":!0,onMouseDown:ut(ne.onMouseDown,ft),onMouseUp:ut(ne.onMouseUp,()=>z(!1)),onMouseEnter:ut(ne.onMouseEnter,()=>J(!0)),onMouseLeave:ut(ne.onMouseLeave,()=>J(!1))}},[Z,G,n,q,$,Q,m,i,r]),Kt=b.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(q),"data-focus-visible":le(q&&$),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r)}),[Z,G,n,q,$,Q,m,i,r]),it=b.useCallback((ne={},Ze=null)=>({...P,...ne,ref:cn(Ze,ft=>{ft&&W(ft.tagName==="LABEL")}),onClick:ut(ne.onClick,()=>{var ft;B||((ft=L.current)==null||ft.click(),requestAnimationFrame(()=>{var pr;(pr=L.current)==null||pr.focus({preventScroll:!0})}))}),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[P,n,G,i,B]),Bn=b.useCallback((ne={},Ze=null)=>({...ne,ref:cn(L,Ze),type:"checkbox",name:y,value:w,id:s,tabIndex:g,onChange:ut(ne.onChange,ke),onBlur:ut(ne.onBlur,A,()=>X(!1)),onFocus:ut(ne.onFocus,O,()=>X(!0)),onKeyDown:ut(ne.onKeyDown,We),onKeyUp:ut(ne.onKeyUp,Ie),required:o,checked:G,disabled:he,readOnly:r,"aria-label":h,"aria-labelledby":v,"aria-invalid":S?!!S:i,"aria-describedby":u,"aria-disabled":n,style:qD}),[y,w,s,ke,A,O,We,Ie,o,G,he,r,h,v,S,i,u,n,g]),Nn=b.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,onMouseDown:ut(ne.onMouseDown,lI),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[G,n,i]);return{state:{isInvalid:i,isFocused:q,isChecked:G,isActive:Z,isHovered:Q,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:it,getCheckboxProps:Gt,getIndicatorProps:Kt,getInputProps:Bn,getLabelProps:Nn,htmlProps:P}}function lI(e){e.preventDefault(),e.stopPropagation()}function uI(e,t,n,r){const o=Ir(n);return b.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function _2(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function T2(e){var t;if(!_2(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function cI(e){var t,n;return(n=(t=P2(e))==null?void 0:t.defaultView)!=null?n:window}function P2(e){return _2(e)?e.ownerDocument:document}function dI(e){return P2(e).activeElement}var A2=e=>e.hasAttribute("tabindex"),fI=e=>A2(e)&&e.tabIndex===-1;function pI(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function R2(e){return e.parentElement&&R2(e.parentElement)?!0:e.hidden}function hI(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function mI(e){if(!T2(e)||R2(e)||pI(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():hI(e)?!0:A2(e)}function gI(e){return e?T2(e)&&mI(e)&&!fI(e):!1}var[vI,yI]=Ut({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M2=ee(function(t,n){const r=Xr("Input",t),{children:o,className:i,...s}=xt(t),a=ve("chakra-input__group",i),l={},u=Wm(o),c=r.field;u.forEach(f=>{var p,m;r&&(c&&f.type.id==="InputLeftElement"&&(l.paddingStart=(p=c.height)!=null?p:c.h),c&&f.type.id==="InputRightElement"&&(l.paddingEnd=(m=c.height)!=null?m:c.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=u.map(f=>{var p,m;const y=bm({size:((p=f.props)==null?void 0:p.size)||t.size,variant:((m=f.props)==null?void 0:m.variant)||t.variant});return f.type.id!=="Input"?b.cloneElement(f,y):b.cloneElement(f,Object.assign(y,l,f.props))});return k.jsx(Y.div,{className:a,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...s,children:k.jsx(vI,{value:r,children:d})})});M2.displayName="InputGroup";var bI=Y("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Uc=ee(function(t,n){var r,o;const{placement:i="left",...s}=t,a=yI(),l=a.field,c={[i==="left"?"insetStart":"insetEnd"]:"0",width:(r=l==null?void 0:l.height)!=null?r:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...a.element};return k.jsx(bI,{ref:n,__css:c,...s})});Uc.id="InputElement";Uc.displayName="InputElement";var Gm=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__left-element",r);return k.jsx(Uc,{ref:n,placement:"left",className:i,...o})});Gm.id="InputLeftElement";Gm.displayName="InputLeftElement";var $2=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__right-element",r);return k.jsx(Uc,{ref:n,placement:"right",className:i,...o})});$2.id="InputRightElement";$2.displayName="InputRightElement";var Km=ee(function(t,n){const{htmlSize:r,...o}=t,i=Xr("Input",o),s=xt(o),a=XD(s),l=ve("chakra-input",t.className);return k.jsx(Y.input,{size:r,...a,__css:i.field,ref:n,className:l})});Km.displayName="Input";Km.id="Input";var[xI,O2]=Ut({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Gc=ee(function(t,n){const r=Xr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=xt(t),u=Wm(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return k.jsx(xI,{value:r,children:k.jsx(Y.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...d},...l,children:u})})});Gc.displayName="List";var SI=ee((e,t)=>{const{as:n,...r}=e;return k.jsx(Gc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});SI.displayName="OrderedList";var wI=ee(function(t,n){const{as:r,...o}=t;return k.jsx(Gc,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});wI.displayName="UnorderedList";var z2=ee(function(t,n){const r=O2();return k.jsx(Y.li,{ref:n,...t,__css:r.item})});z2.displayName="ListItem";var kI=ee(function(t,n){const r=O2();return k.jsx(zo,{ref:n,role:"presentation",...t,__css:r.icon})});kI.displayName="ListIcon";var Ym=ee(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...m}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return k.jsx(Y.div,{ref:n,__css:y,...m})});Ym.displayName="Grid";var L2=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Kc(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Tt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function CI(e,t=L2){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}var Yp=ee(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=Mo(),c=a?_I(a,u):TI(r);return k.jsx(Ym,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});Yp.displayName="SimpleGrid";function EI(e){return typeof e=="number"?`${e}px`:e}function _I(e,t){return Kc(e,n=>{const r=mS("sizes",n,EI(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function TI(e){return Kc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Sa=ee(function(t,n){const r=Yr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=xt(t),u=bm({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return k.jsx(Y.p,{ref:n,className:ve("chakra-text",t.className),...u,...l,__css:r})});Sa.displayName="Text";var D2=e=>k.jsx(Y.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});D2.displayName="StackItem";function PI(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Kc(n,o=>r[o])}}var I2=ee((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=n?"row":r??"column",m=b.useMemo(()=>PI({spacing:s,direction:p}),[s,p]),y=!!u,w=!d&&!y,g=b.useMemo(()=>{const v=Wm(l);return w?v:v.map((S,T)=>{const P=typeof S.key<"u"?S.key:T,_=T+1===v.length,O=d?k.jsx(D2,{children:S},P):S;if(!y)return O;const $=b.cloneElement(u,{__css:m}),F=_?null:$;return k.jsxs(b.Fragment,{children:[O,F]},P)})},[u,m,y,w,d,l]),h=ve("chakra-stack",c);return k.jsx(Y.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:y?void 0:s,className:h,...f,children:g})});I2.displayName="Stack";var Lo=ee((e,t)=>k.jsx(I2,{align:"center",...e,direction:"row",ref:t}));Lo.displayName="HStack";function n1(e){return Kc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var iu=ee(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=bm({gridArea:r,gridColumn:n1(o),gridRow:n1(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return k.jsx(Y.div,{ref:n,__css:d,...c})});iu.displayName="GridItem";var Yc=ee(function(t,n){const r=Yr("Heading",t),{className:o,...i}=xt(t);return k.jsx(Y.h2,{ref:n,className:ve("chakra-heading",t.className),...i,__css:r})});Yc.displayName="Heading";var wa=Y("div");wa.displayName="Box";var j2=ee(function(t,n){const{size:r,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(wa,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...i})});j2.displayName="Square";var AI=ee(function(t,n){const{size:r,...o}=t;return k.jsx(j2,{size:r,ref:n,borderRadius:"9999px",...o})});AI.displayName="Circle";var F2=ee(function(t,n){const r=Yr("Badge",t),{className:o,...i}=xt(t);return k.jsx(Y.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});F2.displayName="Badge";function B2(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=F$(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(u=>u!=null);const[a,l]=b.useState(()=>i.map((u,c)=>({media:u,matches:n?!!s[c]:o().matchMedia(u).matches})));return b.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function RI(e){const{breakpoint:t,hide:n,children:r,ssr:o}=e,[i]=B2(t,{ssr:o});return(n?!i:i)?r:null}var r1=(e,t)=>{var n,r;return(r=(n=e==null?void 0:e.breakpoints)==null?void 0:n[t])!=null?r:t};function MI(e){const{breakpoint:t="",below:n,above:r}=e,o=Mo(),i=r1(o,n),s=r1(o,r);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function N2(e){const{children:t,ssr:n}=e,r=MI(e);return k.jsx(RI,{breakpoint:r,ssr:n,children:t})}N2.displayName="Show";function $I(e,t,n=L2){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function OI(e){var t,n;const r=Tt(e)?e:{fallback:e??"base"},i=Mo().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===r.fallback),l=B2(i.map(u=>u.query),{fallback:s,ssr:r.ssr}).findIndex(u=>u==!0);return(n=(t=i[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function zI(e,t){var n;const r=Tt(t)?t:{fallback:t??"base"},o=OI(r),i=Mo();if(!o)return;const s=Array.from(((n=i.__breakpoints)==null?void 0:n.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(CI(e,s)).map(([l,u])=>[l,u])):e;return $I(a,o,s)}function LI(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function DI(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,o]=b.useState([]),i=b.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)},a=()=>{s(),i.current=setTimeout(()=>{o([]),i.current=null},t)};b.useEffect(()=>s,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...r];d.pop(),o(d);return}if(LI(c)){const d=r.concat(c.key);n(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),a()}}}return l}function II(e,t,n,r){if(t==null)return r;if(!r)return e.find(s=>n(s).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>n(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(r)?(i=o.indexOf(r)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return r}function jI(){const e=b.useRef(new Map),t=e.current,n=b.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),r=b.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return b.useEffect(()=>()=>{t.forEach((o,i)=>{r(o.el,o.type,i,o.options)})},[r,t]),{add:n,remove:r}}function yf(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function FI(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[y,w]=b.useState(!0),[g,h]=b.useState(!1),v=jI(),S=z=>{z&&z.tagName!=="BUTTON"&&w(!1)},T=y?d:d||0,P=n&&!r,_=b.useCallback(z=>{if(n){z.stopPropagation(),z.preventDefault();return}z.currentTarget.focus(),l==null||l(z)},[n,l]),A=b.useCallback(z=>{g&&yf(z)&&(z.preventDefault(),z.stopPropagation(),h(!1),v.remove(document,"keyup",A,!1))},[g,v]),O=b.useCallback(z=>{if(u==null||u(z),n||z.defaultPrevented||z.metaKey||!yf(z.nativeEvent)||y)return;const L=o&&z.key==="Enter";i&&z.key===" "&&(z.preventDefault(),h(!0)),L&&(z.preventDefault(),z.currentTarget.click()),v.add(document,"keyup",A,!1)},[n,y,u,o,i,v,A]),$=b.useCallback(z=>{if(c==null||c(z),n||z.defaultPrevented||z.metaKey||!yf(z.nativeEvent)||y)return;i&&z.key===" "&&(z.preventDefault(),h(!1),z.currentTarget.click())},[i,y,n,c]),F=b.useCallback(z=>{z.button===0&&(h(!1),v.remove(document,"mouseup",F,!1))},[v]),q=b.useCallback(z=>{if(z.button!==0)return;if(n){z.stopPropagation(),z.preventDefault();return}y||h(!0),z.currentTarget.focus({preventScroll:!0}),v.add(document,"mouseup",F,!1),s==null||s(z)},[n,y,s,v,F]),X=b.useCallback(z=>{z.button===0&&(y||h(!1),a==null||a(z))},[a,y]),Q=b.useCallback(z=>{if(n){z.preventDefault();return}f==null||f(z)},[n,f]),J=b.useCallback(z=>{g&&(z.preventDefault(),h(!1)),p==null||p(z)},[g,p]),Z=cn(t,S);return y?{...m,ref:Z,type:"button","aria-disabled":P?void 0:n,disabled:P,onClick:_,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:Z,role:"button","data-active":le(g),"aria-disabled":n?"true":void 0,tabIndex:P?void 0:T,onClick:_,onMouseDown:q,onMouseUp:X,onKeyUp:$,onKeyDown:O,onMouseOver:Q,onMouseLeave:J}}function BI(e){const t=e.current;if(!t)return!1;const n=dI(t);return!n||t.contains(n)?!1:!!gI(n)}function NI(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;zi(()=>{if(!i||BI(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var Vo=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),zt={arrowShadowColor:Vo("--popper-arrow-shadow-color"),arrowSize:Vo("--popper-arrow-size","8px"),arrowSizeHalf:Vo("--popper-arrow-size-half"),arrowBg:Vo("--popper-arrow-bg"),transformOrigin:Vo("--popper-transform-origin"),arrowOffset:Vo("--popper-arrow-offset")};function VI(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var HI={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},WI=e=>HI[e],o1={scroll:!0,resize:!0};function UI(e){let t;return typeof e=="object"?t={enabled:!0,options:{...o1,...e}}:t={enabled:e,options:o1},t}var GI={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},KI={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{i1(e)},effect:({state:e})=>()=>{i1(e)}},i1=e=>{e.elements.popper.style.setProperty(zt.transformOrigin.var,WI(e.placement))},YI={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{XI(e)}},XI=e=>{var t;if(!e.placement)return;const n=qI(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:zt.arrowSize.varRef,height:zt.arrowSize.varRef,zIndex:-1});const r={[zt.arrowSizeHalf.var]:`calc(${zt.arrowSize.varRef} / 2 - 1px)`,[zt.arrowOffset.var]:`calc(${zt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},qI=e=>{if(e.startsWith("top"))return{property:"bottom",value:zt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:zt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:zt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:zt.arrowOffset.varRef}},QI={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{s1(e)},effect:({state:e})=>()=>{s1(e)}},s1=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=VI(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:zt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ZI={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},JI={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function e9(e,t="ltr"){var n,r;const o=((n=ZI[e])==null?void 0:n[t])||e;return t==="ltr"?o:(r=JI[e])!=null?r:o}var Pt="top",dn="bottom",fn="right",At="left",Xm="auto",Ba=[Pt,dn,fn,At],Ii="start",ka="end",t9="clippingParents",V2="viewport",ds="popper",n9="reference",a1=Ba.reduce(function(e,t){return e.concat([t+"-"+Ii,t+"-"+ka])},[]),H2=[].concat(Ba,[Xm]).reduce(function(e,t){return e.concat([t,t+"-"+Ii,t+"-"+ka])},[]),r9="beforeRead",o9="read",i9="afterRead",s9="beforeMain",a9="main",l9="afterMain",u9="beforeWrite",c9="write",d9="afterWrite",f9=[r9,o9,i9,s9,a9,l9,u9,c9,d9];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Nt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Po(e){var t=Nt(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=Nt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qm(e){if(typeof ShadowRoot>"u")return!1;var t=Nt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p9(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!sn(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function h9(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!sn(o)||!jn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const m9={name:"applyStyles",enabled:!0,phase:"write",fn:p9,effect:h9,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var So=Math.max,Zu=Math.min,ji=Math.round;function Xp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function W2(){return!/^((?!chrome|android).)*safari/i.test(Xp())}function Fi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&sn(e)&&(o=e.offsetWidth>0&&ji(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ji(r.height)/e.offsetHeight||1);var s=Po(e)?Nt(e):window,a=s.visualViewport,l=!W2()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Qm(e){var t=Fi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dr(e){return Nt(e).getComputedStyle(e)}function g9(e){return["table","td","th"].indexOf(jn(e))>=0}function Qr(e){return((Po(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xc(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(qm(e)?e.host:null)||Qr(e)}function l1(e){return!sn(e)||dr(e).position==="fixed"?null:e.offsetParent}function v9(e){var t=/firefox/i.test(Xp()),n=/Trident/i.test(Xp());if(n&&sn(e)){var r=dr(e);if(r.position==="fixed")return null}var o=Xc(e);for(qm(o)&&(o=o.host);sn(o)&&["html","body"].indexOf(jn(o))<0;){var i=dr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Na(e){for(var t=Nt(e),n=l1(e);n&&g9(n)&&dr(n).position==="static";)n=l1(n);return n&&(jn(n)==="html"||jn(n)==="body"&&dr(n).position==="static")?t:n||v9(e)||t}function Zm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ws(e,t,n){return So(e,Zu(t,n))}function y9(e,t,n){var r=Ws(e,t,n);return r>n?n:r}function G2(){return{top:0,right:0,bottom:0,left:0}}function K2(e){return Object.assign({},G2(),e)}function Y2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var b9=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,K2(typeof t!="number"?t:Y2(t,Ba))};function x9(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=In(n.placement),l=Zm(a),u=[At,fn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=b9(o.padding,n),f=Qm(i),p=l==="y"?Pt:At,m=l==="y"?dn:fn,y=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],g=Na(i),h=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-w/2,S=d[p],T=h-f[c]-d[m],P=h/2-f[c]/2+v,_=Ws(S,P,T),A=l;n.modifiersData[r]=(t={},t[A]=_,t.centerOffset=_-P,t)}}function S9(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||U2(t.elements.popper,o)&&(t.elements.arrow=o))}const w9={name:"arrow",enabled:!0,phase:"main",fn:x9,effect:S9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bi(e){return e.split("-")[1]}var k9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C9(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ji(n*o)/o||0,y:ji(r*o)/o||0}}function u1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,y=m===void 0?0:m,w=typeof c=="function"?c({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),v=At,S=Pt,T=window;if(u){var P=Na(n),_="clientHeight",A="clientWidth";if(P===Nt(n)&&(P=Qr(n),dr(P).position!=="static"&&a==="absolute"&&(_="scrollHeight",A="scrollWidth")),P=P,o===Pt||(o===At||o===fn)&&i===ka){S=dn;var O=d&&P===T&&T.visualViewport?T.visualViewport.height:P[_];y-=O-r.height,y*=l?1:-1}if(o===At||(o===Pt||o===dn)&&i===ka){v=fn;var $=d&&P===T&&T.visualViewport?T.visualViewport.width:P[A];p-=$-r.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&k9),q=c===!0?C9({x:p,y},Nt(n)):{x:p,y};if(p=q.x,y=q.y,l){var X;return Object.assign({},F,(X={},X[S]=h?"0":"",X[v]=g?"0":"",X.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",X))}return Object.assign({},F,(t={},t[S]=h?y+"px":"",t[v]=g?p+"px":"",t.transform="",t))}function E9(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:In(t.placement),variation:Bi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,u1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,u1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:E9,data:{}};var Ml={passive:!0};function T9(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Nt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ml)}),a&&l.addEventListener("resize",n.update,Ml),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ml)}),a&&l.removeEventListener("resize",n.update,Ml)}}const P9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T9,data:{}};var A9={left:"right",right:"left",bottom:"top",top:"bottom"};function su(e){return e.replace(/left|right|bottom|top/g,function(t){return A9[t]})}var R9={start:"end",end:"start"};function c1(e){return e.replace(/start|end/g,function(t){return R9[t]})}function Jm(e){var t=Nt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function e0(e){return Fi(Qr(e)).left+Jm(e).scrollLeft}function M9(e,t){var n=Nt(e),r=Qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=W2();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+e0(e),y:l}}function $9(e){var t,n=Qr(e),r=Jm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=So(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=So(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+e0(e),l=-r.scrollTop;return dr(o||n).direction==="rtl"&&(a+=So(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function t0(e){var t=dr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function X2(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:sn(e)&&t0(e)?e:X2(Xc(e))}function Us(e,t){var n;t===void 0&&(t=[]);var r=X2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Nt(r),s=o?[i].concat(i.visualViewport||[],t0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Us(Xc(s)))}function qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O9(e,t){var n=Fi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function d1(e,t,n){return t===V2?qp(M9(e,n)):Po(t)?O9(t,n):qp($9(Qr(e)))}function z9(e){var t=Us(Xc(e)),n=["absolute","fixed"].indexOf(dr(e).position)>=0,r=n&&sn(e)?Na(e):e;return Po(r)?t.filter(function(o){return Po(o)&&U2(o,r)&&jn(o)!=="body"}):[]}function L9(e,t,n,r){var o=t==="clippingParents"?z9(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=d1(e,u,r);return l.top=So(c.top,l.top),l.right=Zu(c.right,l.right),l.bottom=Zu(c.bottom,l.bottom),l.left=So(c.left,l.left),l},d1(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function q2(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Bi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Pt:l={x:s,y:t.y-n.height};break;case dn:l={x:s,y:t.y+t.height};break;case fn:l={x:t.x+t.width,y:a};break;case At:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Zm(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ii:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ka:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ca(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?t9:a,u=n.rootBoundary,c=u===void 0?V2:u,d=n.elementContext,f=d===void 0?ds:d,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,g=K2(typeof w!="number"?w:Y2(w,Ba)),h=f===ds?n9:ds,v=e.rects.popper,S=e.elements[m?h:f],T=L9(Po(S)?S:S.contextElement||Qr(e.elements.popper),l,c,s),P=Fi(e.elements.reference),_=q2({reference:P,element:v,strategy:"absolute",placement:o}),A=qp(Object.assign({},v,_)),O=f===ds?A:P,$={top:T.top-O.top+g.top,bottom:O.bottom-T.bottom+g.bottom,left:T.left-O.left+g.left,right:O.right-T.right+g.right},F=e.modifiersData.offset;if(f===ds&&F){var q=F[o];Object.keys($).forEach(function(X){var Q=[fn,dn].indexOf(X)>=0?1:-1,J=[Pt,dn].indexOf(X)>=0?"y":"x";$[X]+=q[J]*Q})}return $}function D9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?H2:l,c=Bi(r),d=c?a?a1:a1.filter(function(m){return Bi(m)===c}):Ba,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,y){return m[y]=Ca(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[In(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function I9(e){if(In(e)===Xm)return[];var t=su(e);return[c1(e),t,c1(t)]}function j9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,g=In(w),h=g===w,v=l||(h||!m?[su(w)]:I9(w)),S=[w].concat(v).reduce(function(G,ke){return G.concat(In(ke)===Xm?D9(t,{placement:ke,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ke)},[]),T=t.rects.reference,P=t.rects.popper,_=new Map,A=!0,O=S[0],$=0;$=0,J=Q?"width":"height",Z=Ca(t,{placement:F,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=Q?X?fn:At:X?dn:Pt;T[J]>P[J]&&(z=su(z));var L=su(z),B=[];if(i&&B.push(Z[q]<=0),a&&B.push(Z[z]<=0,Z[L]<=0),B.every(function(G){return G})){O=F,A=!1;break}_.set(F,B)}if(A)for(var W=m?3:1,V=function(ke){var he=S.find(function(We){var Ie=_.get(We);if(Ie)return Ie.slice(0,ke).every(function(Gt){return Gt})});if(he)return O=he,"break"},te=W;te>0;te--){var N=V(te);if(N==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const F9={name:"flip",enabled:!0,phase:"main",fn:j9,requiresIfExists:["offset"],data:{_skip:!1}};function f1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function p1(e){return[Pt,fn,dn,At].some(function(t){return e[t]>=0})}function B9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ca(t,{elementContext:"reference"}),a=Ca(t,{altBoundary:!0}),l=f1(s,r),u=f1(a,o,i),c=p1(l),d=p1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const N9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B9};function V9(e,t,n){var r=In(e),o=[At,Pt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[At,fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function H9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=H2.reduce(function(c,d){return c[d]=V9(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const W9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H9};function U9(e){var t=e.state,n=e.name;t.modifiersData[n]=q2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const G9={name:"popperOffsets",enabled:!0,phase:"read",fn:U9,data:{}};function K9(e){return e==="x"?"y":"x"}function Y9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,w=Ca(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=In(t.placement),h=Bi(t.placement),v=!h,S=Zm(g),T=K9(S),P=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(P){if(i){var X,Q=S==="y"?Pt:At,J=S==="y"?dn:fn,Z=S==="y"?"height":"width",z=P[S],L=z+w[Q],B=z-w[J],W=p?-A[Z]/2:0,V=h===Ii?_[Z]:A[Z],te=h===Ii?-A[Z]:-_[Z],N=t.elements.arrow,G=p&&N?Qm(N):{width:0,height:0},ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G2(),he=ke[Q],We=ke[J],Ie=Ws(0,_[Z],G[Z]),Gt=v?_[Z]/2-W-Ie-he-$.mainAxis:V-Ie-he-$.mainAxis,Kt=v?-_[Z]/2+W+Ie+We+$.mainAxis:te+Ie+We+$.mainAxis,it=t.elements.arrow&&Na(t.elements.arrow),Bn=it?S==="y"?it.clientTop||0:it.clientLeft||0:0,Nn=(X=F==null?void 0:F[S])!=null?X:0,Ga=z+Gt-Nn-Bn,ne=z+Kt-Nn,Ze=Ws(p?Zu(L,Ga):L,z,p?So(B,ne):B);P[S]=Ze,q[S]=Ze-z}if(a){var ft,pr=S==="x"?Pt:At,td=S==="x"?dn:fn,Yt=P[T],hr=T==="y"?"height":"width",Zr=Yt+w[pr],Xt=Yt-w[td],Do=[Pt,At].indexOf(g)!==-1,Ki=(ft=F==null?void 0:F[T])!=null?ft:0,Ka=Do?Zr:Yt-_[hr]-A[hr]-Ki+$.altAxis,Ya=Do?Yt+_[hr]+A[hr]-Ki-$.altAxis:Xt,Jr=p&&Do?y9(Ka,Yt,Ya):Ws(p?Ka:Zr,Yt,p?Ya:Xt);P[T]=Jr,q[T]=Jr-Yt}t.modifiersData[r]=q}}const X9={name:"preventOverflow",enabled:!0,phase:"main",fn:Y9,requiresIfExists:["offset"]};function q9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Q9(e){return e===Nt(e)||!sn(e)?Jm(e):q9(e)}function Z9(e){var t=e.getBoundingClientRect(),n=ji(t.width)/e.offsetWidth||1,r=ji(t.height)/e.offsetHeight||1;return n!==1||r!==1}function J9(e,t,n){n===void 0&&(n=!1);var r=sn(t),o=sn(t)&&Z9(t),i=Qr(t),s=Fi(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(t)!=="body"||t0(i))&&(a=Q9(t)),sn(t)?(l=Fi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=e0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ej(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function tj(e){var t=ej(e);return f9.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function nj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var h1={placement:"bottom",modifiers:[],strategy:"absolute"};function m1(){for(var e=arguments.length,t=new Array(e),n=0;n{}),v=b.useCallback(()=>{var $;!t||!m.current||!y.current||(($=h.current)==null||$.call(h),w.current=sj(m.current,y.current,{placement:g,modifiers:[QI,YI,KI,{...GI,enabled:!!f},{name:"eventListeners",...UI(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...n??[]],strategy:o}),w.current.forceUpdate(),h.current=w.current.destroy)},[g,t,n,f,s,i,a,l,u,d,c,o]);b.useEffect(()=>()=>{var $;!m.current&&!y.current&&(($=w.current)==null||$.destroy(),w.current=null)},[]);const S=b.useCallback($=>{m.current=$,v()},[v]),T=b.useCallback(($={},F=null)=>({...$,ref:cn(S,F)}),[S]),P=b.useCallback($=>{y.current=$,v()},[v]),_=b.useCallback(($={},F=null)=>({...$,ref:cn(P,F),style:{...$.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,P,f]),A=b.useCallback(($={},F=null)=>{const{size:q,shadowColor:X,bg:Q,style:J,...Z}=$;return{...Z,ref:F,"data-popper-arrow":"",style:lj($)}},[]),O=b.useCallback(($={},F=null)=>({...$,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=w.current)==null||$.update()},forceUpdate(){var $;($=w.current)==null||$.forceUpdate()},transformOrigin:zt.transformOrigin.varRef,referenceRef:S,popperRef:P,getPopperProps:_,getArrowProps:A,getArrowInnerProps:O,getReferenceProps:T}}function lj(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function uj(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Ir(n),s=Ir(t),[a,l]=b.useState(e.defaultIsOpen||!1),u=r!==void 0?r:a,c=r!==void 0,d=b.useId(),f=o??`disclosure-${d}`,p=b.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=b.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),y=b.useCallback(()=>{u?p():m()},[u,m,p]);function w(h={}){return{...h,"aria-expanded":u,"aria-controls":f,onClick(v){var S;(S=h.onClick)==null||S.call(h,v),y()}}}function g(h={}){return{...h,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:y,isControlled:c,getButtonProps:w,getDisclosureProps:g}}function cj(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Ir(n),s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;b.useEffect(()=>{if(!r)return;const a=d=>{bf(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&bf(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&bf(d,t)&&(s.isPointerDown=!1,o(d))},c=Q2(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[n,t,o,s,r])}function bf(e,t){var n;const r=e.target;return r&&!Q2(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function Q2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function dj(e){const{isOpen:t,ref:n}=e,[r,o]=b.useState(t),[i,s]=b.useState(!1);return b.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),uI(()=>n.current,"animationend",()=>{o(t)}),{present:!(t?!1:!r),onComplete(){var l;const u=cI(n.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(c)}}}function fj(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[pj,hj,mj,gj]=LD(),[vj,Va]=Ut({strict:!1,name:"MenuContext"});function yj(e,...t){const n=b.useId(),r=e||n;return b.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}function Z2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function g1(e){return Z2(e).activeElement===e}function bj(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...y}=e,w=b.useRef(null),g=b.useRef(null),h=mj(),v=b.useCallback(()=>{requestAnimationFrame(()=>{var N;(N=w.current)==null||N.focus({preventScroll:!1})})},[]),S=b.useCallback(()=>{const N=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const ke=h.firstEnabled();ke&&X(ke.index)}});L.current.add(N)},[h,o]),T=b.useCallback(()=>{const N=setTimeout(()=>{const G=h.lastEnabled();G&&X(G.index)});L.current.add(N)},[h]),P=b.useCallback(()=>{c==null||c(),i?S():v()},[i,S,v,c]),{isOpen:_,onOpen:A,onClose:O,onToggle:$}=uj({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:P});cj({enabled:_&&r,ref:w,handler:N=>{var G;(G=g.current)!=null&&G.contains(N.target)||O()}});const F=aj({...y,enabled:_||m,placement:d,direction:p}),[q,X]=b.useState(-1);zi(()=>{_||X(-1)},[_]),NI(w,{focusRef:g,visible:_,shouldFocus:!0});const Q=dj({isOpen:_,ref:w}),[J,Z]=yj(t,"menu-button","menu-list"),z=b.useCallback(()=>{A(),v()},[A,v]),L=b.useRef(new Set([]));b.useEffect(()=>{const N=L.current;return()=>{N.forEach(G=>clearTimeout(G)),N.clear()}},[]);const B=b.useCallback(()=>{A(),S()},[S,A]),W=b.useCallback(()=>{A(),T()},[A,T]),V=b.useCallback(()=>{var N,G;const ke=Z2(w.current),he=(N=w.current)==null?void 0:N.contains(ke.activeElement);if(!(_&&!he))return;const Ie=(G=h.item(q))==null?void 0:G.node;Ie==null||Ie.focus({preventScroll:!0})},[_,q,h]),te=b.useRef(null);return{openAndFocusMenu:z,openAndFocusFirstItem:B,openAndFocusLastItem:W,onTransitionEnd:V,unstable__animationState:Q,descendants:h,popper:F,buttonId:J,menuId:Z,forceUpdate:F.forceUpdate,orientation:"vertical",isOpen:_,onToggle:$,onOpen:A,onClose:O,menuRef:w,buttonRef:g,focusedIndex:q,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:X,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:te}}function xj(e={},t=null){const n=Va(),{onToggle:r,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:s}=n,a=b.useCallback(l=>{const u=l.key,d={Enter:i,ArrowDown:i,ArrowUp:s}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[i,s]);return{...e,ref:cn(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":le(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:ut(e.onClick,r),onKeyDown:ut(e.onKeyDown,a)}}function Qp(e){var t;return Cj(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Sj(e={},t=null){const n=Va();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:s,onClose:a,menuId:l,isLazy:u,lazyBehavior:c,unstable__animationState:d}=n,f=hj(),p=DI({preventDefault:g=>g.key!==" "&&Qp(g.target)}),m=b.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const h=g.key,S={Tab:P=>P.preventDefault(),Escape:a,ArrowDown:()=>{const P=f.nextEnabled(r);P&&o(P.index)},ArrowUp:()=>{const P=f.prevEnabled(r);P&&o(P.index)}}[h];if(S){g.preventDefault(),S(g);return}const T=p(P=>{const _=II(f.values(),P,A=>{var O,$;return($=(O=A==null?void 0:A.node)==null?void 0:O.textContent)!=null?$:""},f.item(r));if(_){const A=f.indexOf(_.node);o(A)}});Qp(g.target)&&T(g)},[f,r,p,a,o]),y=b.useRef(!1);s&&(y.current=!0);const w=fj({wasSelected:y.current,enabled:u,mode:c,isSelected:d.present});return{...e,ref:cn(i,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:ut(e.onKeyDown,m)}}function wj(e={}){const{popper:t,isOpen:n}=Va();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function kj(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,onFocus:s,isDisabled:a,isFocusable:l,closeOnSelect:u,type:c,...d}=e,f=Va(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:y,onClose:w,menuRef:g,isOpen:h,menuId:v,rafId:S}=f,T=b.useRef(null),P=`${v}-menuitem-${b.useId()}`,{index:_,register:A}=gj({disabled:a&&!l}),O=b.useCallback(z=>{n==null||n(z),!a&&p(_)},[p,_,a,n]),$=b.useCallback(z=>{r==null||r(z),T.current&&!g1(T.current)&&O(z)},[O,r]),F=b.useCallback(z=>{o==null||o(z),!a&&p(-1)},[p,a,o]),q=b.useCallback(z=>{i==null||i(z),Qp(z.currentTarget)&&(u??y)&&w()},[w,i,y,u]),X=b.useCallback(z=>{s==null||s(z),p(_)},[p,s,_]),Q=_===m,J=a&&!l;zi(()=>{if(h)return Q&&!J&&T.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var z;(z=T.current)==null||z.focus({preventScroll:!0}),S.current=null})):g.current&&!g1(g.current)&&g.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[Q,J,g,h]);const Z=FI({onClick:q,onFocus:X,onMouseEnter:O,onMouseMove:$,onMouseLeave:F,ref:cn(A,T,t),isDisabled:a,isFocusable:l});return{...d,...Z,type:c??Z.type,id:P,role:"menuitem",tabIndex:Q?0:-1}}function Cj(e){var t;if(!Ej(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function Ej(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[_j,Ha]=Ut({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),n0=e=>{const{children:t}=e,n=Xr("Menu",e),r=xt(e),{direction:o}=Mo(),{descendants:i,...s}=bj({...r,direction:o}),a=b.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return k.jsx(pj,{value:i,children:k.jsx(vj,{value:a,children:k.jsx(_j,{value:n,children:qn(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};n0.displayName="Menu";var J2=ee((e,t)=>{const n=Ha();return k.jsx(Y.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});J2.displayName="MenuCommand";var Tj=ee((e,t)=>{const{type:n,...r}=e,o=Ha(),i=r.as||n?n??void 0:"button",s=b.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return k.jsx(Y.button,{ref:t,type:i,...r,__css:s})}),ek=e=>{const{className:t,children:n,...r}=e,o=Ha(),i=b.Children.only(n),s=b.isValidElement(i)?b.cloneElement(i,{focusable:"false","aria-hidden":!0,className:ve("chakra-menu__icon",i.props.className)}):null,a=ve("chakra-menu__icon-wrapper",t);return k.jsx(Y.span,{className:a,...r,__css:o.icon,children:s})};ek.displayName="MenuIcon";var r0=ee((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:s,...a}=e,l=kj(a,t),c=n||o?k.jsx("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return k.jsxs(Tj,{...l,className:ve("chakra-menu__menuitem",l.className),children:[n&&k.jsx(ek,{fontSize:"0.8em",marginEnd:r,children:n}),c,o&&k.jsx(J2,{marginStart:i,children:o})]})});r0.displayName="MenuItem";var Pj={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Aj=Y(f2.div),o0=ee(function(t,n){var r,o;const{rootProps:i,motionProps:s,...a}=t,{isOpen:l,onTransitionEnd:u,unstable__animationState:c}=Va(),d=Sj(a,n),f=wj(i),p=Ha();return k.jsx(Y.div,{...f,__css:{zIndex:(o=t.zIndex)!=null?o:(r=p.list)==null?void 0:r.zIndex},children:k.jsx(Aj,{variants:Pj,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...p.list},...s,className:ve("chakra-menu__menu-list",d.className),...d,onUpdate:u,onAnimationComplete:kT(c.onComplete,d.onAnimationComplete)})})});o0.displayName="MenuList";var Rj=ee((e,t)=>{const n=Ha();return k.jsx(Y.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),i0=ee((e,t)=>{const{children:n,as:r,...o}=e,i=xj(o,t),s=r||Rj;return k.jsx(s,{...i,className:ve("chakra-menu__menu-button",e.className),children:k.jsx(Y.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});i0.displayName="MenuButton";function Mj(){const e=b.useRef(!0);return b.useEffect(()=>{e.current=!1},[]),e.current}function $j(e){const t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current}var Oj=Y("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Zp=H("skeleton-start-color"),Jp=H("skeleton-end-color"),zj=lm({from:{opacity:0},to:{opacity:1}}),Lj=lm({from:{borderColor:Zp.reference,background:Zp.reference},to:{borderColor:Jp.reference,background:Jp.reference}}),s0=ee((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=Yr("Skeleton",n),o=Mj(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=xt(n),[p,m]=ST("colors",[i,s]),y=$j(a),w=ve("chakra-skeleton",c),g={...p&&{[Zp.variable]:p},...m&&{[Jp.variable]:m}};if(a){const h=o||y?"none":`${zj} ${l}s`;return k.jsx(Y.div,{ref:t,className:w,__css:{animation:h},...f})}return k.jsx(Oj,{ref:t,className:w,...f,__css:{width:d?"fit-content":void 0,...r,...g,_dark:{...r._dark,...g},animation:`${u}s linear infinite alternate ${Lj}`}})});s0.displayName="Skeleton";function Dj(e){return Array(e).fill(1).map((t,n)=>n+1)}var v1=3,tk=e=>{const{noOfLines:t=v1,spacing:n="0.5rem",skeletonHeight:r="0.5rem",className:o,startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,children:p,...m}=e,y=zI(typeof t=="number"?[t]:t)||v1,w=Dj(y),g=v=>y>1&&v===w.length?"80%":"100%",h=ve("chakra-skeleton__group",o);return k.jsx(Y.div,{className:h,...m,children:w.map((v,S)=>{if(a&&S>0)return null;const T=a?null:{mb:v===w.length?"0":n,width:g(v),height:r};return k.jsx(s0,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,...T,children:S===0?p:void 0},w.length.toString()+v)})})};tk.displayName="SkeletonText";var nk=ee(function(t,n){const r=Xr("Switch",t),{spacing:o="0.5rem",children:i,...s}=xt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=aI(s),f=b.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),p=b.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),m=b.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return k.jsxs(Y.label,{...c(),className:ve("chakra-switch",t.className),__css:f,children:[k.jsx("input",{className:"chakra-switch__input",...l({},n)}),k.jsx(Y.span,{...u(),className:"chakra-switch__track",__css:p,children:k.jsx(Y.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),i&&k.jsx(Y.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});nk.displayName="Switch";const Ij="/GameHub/assets/logo-ff4914e6.webp",jj=()=>{const{colorMode:e,toggleColorMode:t}=$a();return k.jsxs(Lo,{children:[k.jsx(nk,{isChecked:e==="dark",colorScheme:"green",onChange:t}),k.jsx(Sa,{whiteSpace:"nowrap",children:"Dark Mode"})]})};var rk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},y1=nt.createContext&&nt.createContext(rk),Br=globalThis&&globalThis.__assign||function(){return Br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const t=b.useRef(null);return k.jsx("form",{style:{width:"100%"},onSubmit:n=>{n.preventDefault(),t.current&&e(t.current.value)},children:k.jsxs(M2,{children:[k.jsx(Gm,{children:k.jsx(Vj,{})}),k.jsx(Km,{ref:t,placeholder:"Search games...",borderRadius:20,variant:"filled"})]})})};function Wj({onSearch:e}){return k.jsxs(Lo,{children:[k.jsx(Hc,{src:Ij,boxSize:"60px"}),k.jsx(Hj,{onSearch:e}),k.jsx(jj,{})]})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var eh=function(e,t){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},eh(e,t)};function Uj(e,t){eh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gs=function(){return Gs=Object.assign||function(t){for(var n,r=1,o=arguments.length;re?p():t!==!0&&(o=setTimeout(r?m:p,r===void 0?e-d:e))}return u.cancel=l,u}var ki={Pixel:"Pixel",Percent:"Percent"},b1={unit:ki.Percent,value:.8};function x1(e){return typeof e=="number"?{unit:ki.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:ki.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:ki.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),b1):(console.warn("scrollThreshold should be string or number"),b1)}var Kj=function(e){Uj(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might + happen because the element may not have been added to DOM yet. + See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. + `),null)},r.onStart=function(o){r.lastScrollTop||(r.dragging=!0,o instanceof MouseEvent?r.startY=o.pageY:o instanceof TouchEvent&&(r.startY=o.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(o){r.dragging&&(o instanceof MouseEvent?r.currentY=o.pageY:o instanceof TouchEvent&&(r.currentY=o.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(o){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(o)},0);var i=r.props.height||r._scrollableNode?o.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var s=r.props.inverse?r.isElementAtTop(i,r.props.scrollThreshold):r.isElementAtBottom(i,r.props.scrollThreshold);s&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=i.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=Gj(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. + Pull Down To Refresh functionality will not work + as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var o=n.dataLength!==r.prevDataLength;return o?Gs(Gs({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=x1(r);return i.unit===ki.Pixel?n.scrollTop<=i.value+o-n.scrollHeight+1:n.scrollTop<=i.value/100+o-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=x1(r);return i.unit===ki.Pixel?n.scrollTop+o>=n.scrollHeight-i.value:n.scrollTop+o>=i.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=Gs({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),o=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return nt.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},nt.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(s){return n._infScroll=s},style:r},this.props.pullDownToRefresh&&nt.createElement("div",{style:{position:"relative"},ref:function(s){return n._pullDown=s}},nt.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!o&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(b.Component);function sk(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yj}=Object.prototype,{getPrototypeOf:a0}=Object,qc=(e=>t=>{const n=Yj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>qc(t)===e),Qc=e=>t=>typeof t===e,{isArray:Gi}=Array,Ea=Qc("undefined");function Xj(e){return e!==null&&!Ea(e)&&e.constructor!==null&&!Ea(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ak=Fn("ArrayBuffer");function qj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ak(e.buffer),t}const Qj=Qc("string"),an=Qc("function"),lk=Qc("number"),Zc=e=>e!==null&&typeof e=="object",Zj=e=>e===!0||e===!1,au=e=>{if(qc(e)!=="object")return!1;const t=a0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jj=Fn("Date"),eF=Fn("File"),tF=Fn("Blob"),nF=Fn("FileList"),rF=e=>Zc(e)&&an(e.pipe),oF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=qc(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},iF=Fn("URLSearchParams"),sF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ck=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dk=e=>!Ea(e)&&e!==ck;function th(){const{caseless:e}=dk(this)&&this||{},t={},n=(r,o)=>{const i=e&&uk(t,o)||o;au(t[i])&&au(r)?t[i]=th(t[i],r):au(r)?t[i]=th({},r):Gi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Wa(t,(o,i)=>{n&&an(o)?e[i]=sk(o,n):e[i]=o},{allOwnKeys:r}),e),lF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cF=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&a0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fF=e=>{if(!e)return null;if(Gi(e))return e;let t=e.length;if(!lk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&a0(Uint8Array)),hF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},mF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gF=Fn("HTMLFormElement"),vF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),S1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yF=Fn("RegExp"),fk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},bF=e=>{fk(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xF=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Gi(e)?r(e):r(String(e).split(t)),n},SF=()=>{},wF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xf="abcdefghijklmnopqrstuvwxyz",w1="0123456789",pk={DIGIT:w1,ALPHA:xf,ALPHA_DIGIT:xf+xf.toUpperCase()+w1},kF=(e=16,t=pk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function CF(e){return!!(e&&an(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const EF=e=>{const t=new Array(10),n=(r,o)=>{if(Zc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Gi(r)?[]:{};return Wa(r,(s,a)=>{const l=n(s,o+1);!Ea(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},_F=Fn("AsyncFunction"),TF=e=>e&&(Zc(e)||an(e))&&an(e.then)&&an(e.catch),M={isArray:Gi,isArrayBuffer:ak,isBuffer:Xj,isFormData:oF,isArrayBufferView:qj,isString:Qj,isNumber:lk,isBoolean:Zj,isObject:Zc,isPlainObject:au,isUndefined:Ea,isDate:Jj,isFile:eF,isBlob:tF,isRegExp:yF,isFunction:an,isStream:rF,isURLSearchParams:iF,isTypedArray:pF,isFileList:nF,forEach:Wa,merge:th,extend:aF,trim:sF,stripBOM:lF,inherits:uF,toFlatObject:cF,kindOf:qc,kindOfTest:Fn,endsWith:dF,toArray:fF,forEachEntry:hF,matchAll:mF,isHTMLForm:gF,hasOwnProperty:S1,hasOwnProp:S1,reduceDescriptors:fk,freezeMethods:bF,toObjectSet:xF,toCamelCase:vF,noop:SF,toFiniteNumber:wF,findKey:uk,global:ck,isContextDefined:dk,ALPHABET:pk,generateString:kF,isSpecCompliantForm:CF,toJSONObject:EF,isAsyncFn:_F,isThenable:TF};function se(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}M.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hk=se.prototype,mk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mk[e]={value:e}});Object.defineProperties(se,mk);Object.defineProperty(hk,"isAxiosError",{value:!0});se.from=(e,t,n,r,o,i)=>{const s=Object.create(hk);return M.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const PF=null;function nh(e){return M.isPlainObject(e)||M.isArray(e)}function gk(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function k1(e,t,n){return e?e.concat(t).map(function(o,i){return o=gk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function AF(e){return M.isArray(e)&&!e.some(nh)}const RF=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Jc(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!M.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,w){let g=m;if(m&&!w&&typeof m=="object"){if(M.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&AF(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=gk(y),g.forEach(function(v,S){!(M.isUndefined(v)||v===null)&&t.append(s===!0?k1([y],S,i):s===null?y:y+"[]",u(v))}),!1}return nh(m)?!0:(t.append(k1(w,y,i),u(m)),!1)}const d=[],f=Object.assign(RF,{defaultVisitor:c,convertValue:u,isVisitable:nh});function p(m,y){if(!M.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),M.forEach(m,function(g,h){(!(M.isUndefined(g)||g===null)&&o.call(t,g,M.isString(h)?h.trim():h,y,f))===!0&&p(g,y?y.concat(h):[h])}),d.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function C1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function l0(e,t){this._pairs=[],e&&Jc(e,this,t)}const vk=l0.prototype;vk.append=function(t,n){this._pairs.push([t,n])};vk.toString=function(t){const n=t?function(r){return t.call(this,r,C1)}:C1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function MF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yk(e,t,n){if(!t)return e;const r=n&&n.encode||MF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=M.isURLSearchParams(t)?t.toString():new l0(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $F{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const E1=$F,bk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OF=typeof URLSearchParams<"u"?URLSearchParams:l0,zF=typeof FormData<"u"?FormData:null,LF=typeof Blob<"u"?Blob:null,DF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),IF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:OF,FormData:zF,Blob:LF},isStandardBrowserEnv:DF,isStandardBrowserWebWorkerEnv:IF,protocols:["http","https","file","blob","url","data"]};function jF(e,t){return Jc(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return bn.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function FF(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BF(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&M.isArray(o)?o.length:s,l?(M.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!M.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&M.isArray(o[s])&&(o[s]=BF(o[s])),!a)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,o)=>{t(FF(r),o,n,0)}),n}return null}function NF(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const u0={transitional:bk,adapter:bn.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o&&o?JSON.stringify(xk(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jF(t,this.formSerializer).toString();if((a=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),NF(t)):t}],transformResponse:[function(t){const n=this.transitional||u0.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&M.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?se.from(a,se.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{u0.headers[e]={}});const c0=u0,VF=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HF=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&VF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_1=Symbol("internals");function fs(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:M.isArray(e)?e.map(lu):String(e)}function WF(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const UF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sf(e,t,n,r,o){if(M.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function GF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function KF(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let ed=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=fs(l);if(!c)throw new Error("header name must be a non-empty string");const d=M.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=lu(a))}const s=(a,l)=>M.forEach(a,(u,c)=>i(u,c,l));return M.isPlainObject(t)||t instanceof this.constructor?s(t,n):M.isString(t)&&(t=t.trim())&&!UF(t)?s(HF(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=fs(t),t){const r=M.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return WF(o);if(M.isFunction(n))return n.call(this,o,r);if(M.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fs(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=fs(s),s){const a=M.findKey(r,s);a&&(!n||Sf(r,r[a],a,n))&&(delete r[a],o=!0)}}return M.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Sf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return M.forEach(this,(o,i)=>{const s=M.findKey(r,i);if(s){n[s]=lu(o),delete n[i];return}const a=t?GF(i):String(i).trim();a!==i&&delete n[i],n[a]=lu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_1]=this[_1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fs(s);r[a]||(KF(o,s),r[a]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};ed.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(ed.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(ed);const or=ed;function wf(e,t){const n=this||c0,r=t||n,o=or.from(r.headers);let i=r.data;return M.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Sk(e){return!!(e&&e.__CANCEL__)}function Ua(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Ua,se,{__CANCEL__:!0});function YF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const XF=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),M.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),M.isString(i)&&l.push("path="+i),M.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function qF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function wk(e,t){return e&&!qF(t)?QF(e,t):t}const ZF=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=M.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function JF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const tB=typeof XMLHttpRequest<"u",nB=tB&&function(e){return new Promise(function(n,r){let o=e.data;const i=or.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}M.isFormData(o)&&(bn.isStandardBrowserEnv||bn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=wk(e.baseURL,e.url);u.open(e.method.toUpperCase(),yk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};YF(function(g){n(g),l()},function(g){r(g),l()},y),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||bk;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const p=(e.withCredentials||ZF(c))&&e.xsrfCookieName&&XF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&M.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),M.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",T1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",T1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Ua(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=JF(c);if(f&&bn.protocols.indexOf(f)===-1){r(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},uu={http:PF,xhr:nB};M.forEach(uu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kk={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof or?e.toJSON():e;function Ni(e,t){t=t||{};const n={};function r(u,c,d){return M.isPlainObject(u)&&M.isPlainObject(c)?M.merge.call({caseless:d},u,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function o(u,c,d){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!M.isUndefined(c))return r(void 0,c)}function s(u,c){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(A1(u),A1(c),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);M.isUndefined(f)&&d!==a||(n[c]=f)}),n}const Ck="1.5.0",d0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{d0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const R1={};d0.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ck+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!R1[s]&&(R1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function rB(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const rh={assertOptions:rB,validators:d0},br=rh.validators;let Ju=class{constructor(t){this.defaults=t,this.interceptors={request:new E1,response:new E1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ni(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rh.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!=null&&(M.isFunction(o)?n.paramsSerializer={serialize:o}:rh.assertOptions(o,{encode:br.function,serialize:br.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&M.merge(i.common,i[n.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=or.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[P1.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ua(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ek(function(o){t=o}),cancel:t}}};const iB=oB;function sB(e){return function(n){return e.apply(null,n)}}function aB(e){return M.isObject(e)&&e.isAxiosError===!0}const oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const lB=oh;function _k(e){const t=new cu(e),n=sk(cu.prototype.request,t);return M.extend(n,cu.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _k(Ni(e,o))},n}const He=_k(c0);He.Axios=cu;He.CanceledError=Ua;He.CancelToken=iB;He.isCancel=Sk;He.VERSION=Ck;He.toFormData=Jc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=sB;He.isAxiosError=aB;He.mergeConfig=Ni;He.AxiosHeaders=or;He.formToJSON=e=>xk(M.isHTMLForm(e)?new FormData(e):e);He.getAdapter=kk.getAdapter;He.HttpStatusCode=lB;He.default=He;const Tk=He,{Axios:FB,AxiosError:BB,CanceledError:uB,isCancel:NB,CancelToken:VB,VERSION:HB,all:WB,Cancel:UB,isAxiosError:GB,spread:KB,toFormData:YB,AxiosHeaders:XB,HttpStatusCode:qB,formToJSON:QB,getAdapter:ZB,mergeConfig:JB}=Tk,cB=Tk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),f0=(e,t,n,r=!1)=>{const[o,i]=b.useState([]),[s,a]=b.useState(""),[l,u]=b.useState(!1);return b.useEffect(()=>{const c=new AbortController;return r||i([]),u(!0),cB.get(e,{signal:c.signal,...t}).then(d=>{i(r?[...o,...d.data.results]:d.data.results),u(!1)}).catch(d=>{d instanceof uB||(a(d.message),u(!1))}),()=>{c.abort()}},n?[...n]:[]),{data:o,error:s,isLoading:l}},dB=e=>{var o,i;const{data:t,isLoading:n,error:r}=f0("/games",{params:{genres:(o=e.genre)==null?void 0:o.id,platforms:(i=e.platform)==null?void 0:i.id,ordering:e.sortOrder,search:e.searchQuery,page:e.page}},[e],!0);return{games:t,error:r,isLoading:n}};function fB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"}}]})(e)}function pB(e){return kn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}]})(e)}function hB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}}]})(e)}function mB(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"}}]})(e)}function gB(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}}]})(e)}function vB(e){return kn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M369.9 318.2c44.3 54.3 64.7 98.8 54.4 118.7-7.9 15.1-56.7 44.6-92.6 55.9-29.6 9.3-68.4 13.3-100.4 10.2-38.2-3.7-76.9-17.4-110.1-39C93.3 445.8 87 438.3 87 423.4c0-29.9 32.9-82.3 89.2-142.1 32-33.9 76.5-73.7 81.4-72.6 9.4 2.1 84.3 75.1 112.3 109.5zM188.6 143.8c-29.7-26.9-58.1-53.9-86.4-63.4-15.2-5.1-16.3-4.8-28.7 8.1-29.2 30.4-53.5 79.7-60.3 122.4-5.4 34.2-6.1 43.8-4.2 60.5 5.6 50.5 17.3 85.4 40.5 120.9 9.5 14.6 12.1 17.3 9.3 9.9-4.2-11-.3-37.5 9.5-64 14.3-39 53.9-112.9 120.3-194.4zm311.6 63.5C483.3 127.3 432.7 77 425.6 77c-7.3 0-24.2 6.5-36 13.9-23.3 14.5-41 31.4-64.3 52.8C367.7 197 427.5 283.1 448.2 346c6.8 20.7 9.7 41.1 7.4 52.3-1.7 8.5-1.7 8.5 1.4 4.6 6.1-7.7 19.9-31.3 25.4-43.5 7.4-16.2 15-40.2 18.6-58.7 4.3-22.5 3.9-70.8-.8-93.4zM141.3 43C189 40.5 251 77.5 255.6 78.4c.7.1 10.4-4.2 21.6-9.7 63.9-31.1 94-25.8 107.4-25.2-63.9-39.3-152.7-50-233.9-11.7-23.4 11.1-24 11.9-9.4 11.2z"}}]})(e)}function yB(e){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function bB(e){return kn({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M0 .6h7.1l9.85 15.9V.6H24v22.8h-7.04L7.06 7.5v15.9H0V.6"}}]})(e)}const xB=({platforms:e})=>{const t={pc:gB,playstation:mB,xbox:vB,nintendo:bB,mac:pB,linux:hB,android:fB,ios:yB,web:Nj};return k.jsx(Lo,{marginY:1,children:e.map(n=>k.jsx(zo,{as:t[n.slug],color:"gray.500"},n.id))})},SB=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(F2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},wB="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmvvTrUpPBbKXO91WhEjQmLW3p56Qli8mnfj4kPRkskevSLwhli5Xm8b4dVBzWm8b7bLSgsOg07hejWCw9Tf1WUNJYf1n6mageTOR2PhHFgJNp6NehGLCz7i9DNmBpGvpRyBp8bfeDkDV4m9fHoGjwV4Z+B6oFj7m/b0D3YHS78U8RzC4n+JMCv/MK/GrA87SCngL4nlbEZwXWpxXtzYL9aUU6RWxhPmFeNXax3BCniJ2sL76rwWZ2De6I/eShgd0MtlRWWCdsaz4h3S12tr54fhQ2d2gwR+yvrEjuFltcbhgXhV3uGsMRGy0rgLvBXpcXvY/GbvOI3YwdTydwAza9a9B2g22XFbJVYeerxmvG5suK1oD9rxqp5HACecVpNziERYO0aRxDXiH6KJzEqvGZcRhlR2fEeWwamh4nUk5cksOhHFFJFscyv5Akg4PJKyC7xtlsGo1N4XTKicWqcEBHJBac0aJhWHBKZQdhwUEdIVhwVIvGX8ZhlRN9Ged1xF7GiS0aeBlnVm7YZRzbGXQZB7eFXMbRzS/eCg4v72grOL8j1gpOcNVAe3CG0wuzilPMJ8iqOkZEM8SawkluAdY1znLW6CKN0yw3tsjgPPMKLYsjPQLL41C3sAo41kVjKuJgpxdRGUebTzwVnO4ZTRXne8RS0weMWiSRxhEvGkZkccjTiyKPYy43hiIOOu8ISjjrM34KTvv4Y/QnR2eNVlDa2NLmfh5p6rhR/0+07BX+m1zGcQZpHPj6f3iCwl9y3Z6wOPJZ/wotafy99OuFgEOf9H9QPX61bBdkHHu5f4Lq8Mt52//g4PP5B3SPX8/X+K5OHvHGPym8sKvlZHD4F/jV4J2yDXc4/hP6jPcOsyMu4MSdPN6c1eaMKzhQbxrvlmNxxSXsmFeFt/O2t6tbQBXxR2GCy1oyuIcV74I55s3yuIlFwX4wy2Jqwl3MCnVT08A2tOA2ZgW6a8yTj5lNXQdKCjMZzFTUSDK4kElR9phrMdLjSsrDOGO2w8SMSykP4aamQ8fAimspF2CD+YqaR/peEF94M2Y8zHO4mXzBJTUlesZF3E252AbMudj24HbyRbZh1tuyrq4H8QXWTytbZnBB+cDaMe9jV8AV5YNqmFgxK+OS8sGUMPNrVMM15QNpnlq3icw9IT6ImqmJTR43lS+eDXPfFiXcVb5wxsk1gypuK1809eTYHtLXheRi2TH7Y47DhZULZZ7esCbhyspDMkyvGFNxaeUBqafHtpC+NSQPRsL8ryke9zYpinUBy5KMm5sUxLyAYUhXV4eyYhgX0AwxuLxZIfQLyHZEXN8CoV2AmPHgAlcEzTkhdYOoAqgXgF1wuMPtf55wizt8WCFtQcU9Hv9x0heJJnhqBWMHPa7ywk6fkYzLvKAzC1Ab0NRtooOcXYDeAIPrzAc4vwDLv4gLzRe3tIDAvgdXWh5seQGJe6TvFCVFrS6gcM/jVmcFjRbQmFdwrwtoQ09PDd53dbGogRam55jncLU7ZmV6iXcZl3tA1qdXWddwvSdiw0xODdab+0UbsTi5wLqIC84HsDa5h3MVV5wvXsNMTQ/Gk75jJIpXnlrkXMAtTwoXTa0xruCeF7hGnJgffCd90ajB1SdWGedw1QdaI0zLDb5nXPaJVpvWw7embhttsEaYlB98t7jufMAiNafOt4QLzw+rkaeUBtsbrnxSrIadkBl8N3eOMlhdzafyLeLWV6xGmU4abK+49x2rESbjBt/NxaOJFZmpaOJbxNXfUI2uJ6LaYHvF3ecL1WhqHnWwnfTlI1GoRp1GGXyPuP5JoRrPJPLg+wMBWLEaVc2gDL6TlgDUsRpNv07VwfgAGTixGt28TLfB+AdScGM1KLzK0WA8aTHAF6sx8ovSYH2AHBQFazTzElMH6wskYUZrjKzekAbvSYsCanAN8j/n+mC+hzAccI3R/E+5OrhfIA4XXmM0/zO+DvaTkgd0ABujJ/MDOrWxgR4CURSxMUaN+k90eMYWFojEDNoYo2ev/yvK5zY2kZRMoArbP1LN0TtrtNLGWB9zpbGRHlJxILe3BXJx/SdJCwa+f0kPySj6hyyQjfn/SFo4UPs7eojH+WcsEJD7r0haQvD7JwaIyKT/wwdCsv4NSUsJJCkUICeLDHogKFWTQKQlBTQJoABZ6eTPA2kZpQ9pcYEifAIEZhM9DySmJsFDWmTACZ4AoRnFToXYLEKHjNxQTeZECE5DEqdCdHqJY2QHkryJkJ6PtGkQn6oLGyM/YEjUJEhQL2kaZGjmWa8lx+Cd0VopBUAprY11Iaa5r6JihAgqr/qTo9P4c8l1zP3QSJCimrhEJTmFH09tHoWhQY46DvUcNF6b2jwQWEGCyBwqweD9qS11foIoLYyh4hWmmcdxfIMsVZ0pVBxmy3U+p1thAkMcqUFhztK2wxPEaWAHJY2Zc9vObhComRc9Kkyf2/a0lShojGgBi+S2vZwhUjVxgQJWyu16uEOoeiYkhdWmqe61UgWJA0VjxdyObzPkal0eeSw7TfVrV4JF0+KKwtLb8aqFZHVLI4/lp+XSDNmaFlYUOChT3dmVcMGzrAgucn/OdJCuqq+pW3CyXU9myFe7pEeDmWW7sSsBg7igBIam5UQHEfushhx4mpYHM2Ss6mvpBmxN231dCRnYpTQNzubtPAsxGxdSFJibt+cyBO2zjAwG5+22BkmraBERPC7XaVbUwK7Bg81NPZYgbNMKPBjNQ93VIG6f6ZEDr2V6y8gbTZMjC3an7aoEgevmRgYcz9dPDSI3zYwMmN7US0bmoM6LDNgu00cRQlfTrMiA8/k4qELs+kmRAfObusfIHeQpkQX7eTonQvK2CZHFDqbjmQrRa2g+DpvY1C2kZQ/CdBy2UZZXAqRvmYzHTtbnkgfiV/WpROwlT4eQlj8wM0nYznzd4SGB4zwKdnQ4o0AGP7N4sKfpeKIrIaRpDlVtClFXPzhIYTeFprCv6XghQw7nCZDG1nYfNEji9j6LzU3XA0YUGXpbwP4O+yNkcXhZwg6na3yFNC6vKtjkYTppcaT6iyq2OT/DPeSxfU/X+0S8zC6QyOktZLDVVW3uSiShvsRjs+WYbCGTNb0iYb+7wQlSObyhYMfzs7ZCLpffa2rLiKetpAWTol8jg12vaqmHZHa/5rDvcu3MkM35txK2flrZlHBC+6WCza9qo4F0Nj/U1O6RHAsj5HP4GTI4gMO+BxL6+RWPI1jUOFIiStNvZBxCObY5yGj/ExXncFqWIKXzD5A+CFTVrAdiWvW/8ziK6RpFWk7B/lnCYeRlk4OkTn9UcR67RQmyuv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",Pk=e=>{if(!e)return wB;const t="media/",n=e.indexOf(t)+t.length;return e.slice(0,n)+"crop/600/400/"+e.slice(n)},kB=({game:e})=>k.jsxs(k2,{children:[k.jsx(Hc,{src:Pk(e.background_image)}),k.jsxs(w2,{children:[k.jsxs(Lo,{justifyContent:"space-between",marginBottom:3,children:[k.jsx(xB,{platforms:e.parent_platforms.map(t=>t.platform)}),k.jsx(SB,{score:e.metacritic})]}),k.jsx(Yc,{fontSize:"2xl",children:e.name})]})]}),CB=()=>k.jsxs(k2,{children:[k.jsx(s0,{height:"200px"}),k.jsx(w2,{children:k.jsx(tk,{})})]}),M1=({children:e})=>k.jsx(wa,{borderRadius:10,overflow:"hidden",children:e}),EB=({gameQuery:e,next:t})=>{const{games:n,error:r}=dB(e);return r?k.jsx(Sa,{children:r}):k.jsx(Kj,{dataLength:n.length,next:t,hasMore:!0,loader:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:[0,1,2,3,4,5].map(o=>k.jsx(M1,{children:k.jsx(CB,{})},o))}),endMessage:k.jsx(Sa,{textAlign:"center",children:"Yay! You have seen it all"}),children:k.jsx(Yp,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:n.map(o=>k.jsx(M1,{children:k.jsx(kB,{game:o})},o.id))})})},_B=()=>{const{data:e,isLoading:t,error:n}=f0("/genres");return{genres:e,error:n,isLoading:t}},TB=({onSelectGenre:e,selectedGenre:t})=>{const{genres:n,isLoading:r,error:o}=_B();return r?k.jsx(Vc,{}):k.jsxs(k.Fragment,{children:[k.jsx(Yc,{fontSize:"2xl",marginBottom:3,children:"Genres"}),o&&k.jsx(Sa,{children:o}),k.jsx(Gc,{children:n.map(i=>k.jsx(z2,{paddingY:"5px",children:k.jsxs(Lo,{children:[k.jsx(Hc,{src:Pk(i.image_background),boxSize:"32px",borderRadius:"8px",objectFit:"cover"}),k.jsx(Wc,{onClick:()=>e(i),fontSize:"lg",variant:"link",fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",whiteSpace:"normal",textAlign:"left",children:i.name})]})},i.id))})]})},PB=()=>f0("/platforms/lists/parents"),AB=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:n,error:r}=PB();return r?null:k.jsxs(n0,{children:[k.jsx(i0,{as:Wc,rightIcon:k.jsx(ik,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(o0,{children:n.map(o=>k.jsx(r0,{onClick:()=>t(o),children:o.name},o.id))})]})},RB=({sortOrder:e,onSelectSortOrder:t})=>{const n=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],r=n.find(o=>o.value===e);return k.jsxs(n0,{children:[k.jsxs(i0,{as:Wc,rightIcon:k.jsx(ik,{}),children:["Order By: ",r==null?void 0:r.label]}),k.jsx(o0,{children:n.map(o=>k.jsx(r0,{onClick:()=>t(o.value),children:o.label},o.label))})]})},MB=({gameQuery:e})=>{var n,r;const t=`${((n=e.platform)==null?void 0:n.name)||""} ${((r=e.genre)==null?void 0:r.name)||""} Games`;return k.jsx(Yc,{as:"h1",marginY:5,fontSize:"5xl",children:t})};function $B(){const[e,t]=b.useState({page:1}),{colorMode:n}=$a();return k.jsxs(Ym,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(iu,{area:"nav",children:k.jsx(wa,{position:"fixed",top:"0",width:"100%",zIndex:"sticky",backgroundColor:n==="dark"?"gray.900":"white",children:k.jsx(Wj,{onSearch:r=>t({...e,searchQuery:r})})})}),k.jsx(N2,{above:"lg",children:k.jsx(iu,{area:"aside",paddingX:5,marginTop:20,children:k.jsx(TB,{onSelectGenre:r=>t({...e,genre:r}),selectedGenre:e.genre})})}),k.jsxs(iu,{area:"main",children:[k.jsxs(wa,{paddingLeft:3,marginTop:20,children:[k.jsx(MB,{gameQuery:e}),k.jsxs(Lo,{spacing:5,marginBottom:5,children:[k.jsx(AB,{selectedPlatform:e.platform,onSelectPlatform:r=>t({...e,platform:r})}),k.jsx(RB,{sortOrder:e.sortOrder,onSelectSortOrder:r=>t({...e,sortOrder:r})})]})]}),k.jsx(EB,{gameQuery:e,next:()=>{t({...e,page:e.page+1})}})]})]})}const OB={initialColorMode:"dark",useSystemColorMode:!1},$1=u$({config:OB,colors:{gray:{50:"#f9f9f9",100:"#ededed",200:"#d3d3d3",300:"#b3b3b3",400:"#a0a0a0",500:"#898989",600:"#6c6c6c",700:"#202020",800:"#121212",900:"#111"}}});Cf.createRoot(document.getElementById("root")).render(k.jsx(nt.StrictMode,{children:k.jsxs(ED,{theme:$1,children:[k.jsx(vT,{initialColorMode:$1.config.initialColorMode}),k.jsx($B,{})]})})); diff --git a/index.html b/index.html index 8388fb5..af85e64 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ GameHub - +