function lF(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 Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Ye={};/** * @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 Xf=Symbol.for("react.element"),cF=Symbol.for("react.portal"),fF=Symbol.for("react.fragment"),dF=Symbol.for("react.strict_mode"),pF=Symbol.for("react.profiler"),hF=Symbol.for("react.provider"),mF=Symbol.for("react.context"),gF=Symbol.for("react.forward_ref"),vF=Symbol.for("react.suspense"),yF=Symbol.for("react.memo"),bF=Symbol.for("react.lazy"),TC=Symbol.iterator;function xF(e){return e===null||typeof e!="object"?null:(e=TC&&e[TC]||e["@@iterator"],typeof e=="function"?e:null)}var wE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},CE=Object.assign,_E={};function _u(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||wE}_u.prototype.isReactComponent={};_u.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")};_u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kE(){}kE.prototype=_u.prototype;function V2(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||wE}var W2=V2.prototype=new kE;W2.constructor=V2;CE(W2,_u.prototype);W2.isPureReactComponent=!0;var IC=Array.isArray,EE=Object.prototype.hasOwnProperty,j2={current:null},PE={key:!0,ref:!0,__self:!0,__source:!0};function AE(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)EE.call(t,r)&&!PE.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,U=j[R];if(0>>1;Ro(he,q))meo(Pe,he)?(j[R]=Pe,j[me]=q,R=me):(j[R]=he,j[ue]=q,R=ue);else if(meo(Pe,q))j[R]=Pe,j[me]=q,R=me;else break e}}return Y}function o(j,Y){var q=j.sortIndex-Y.sortIndex;return q!==0?q:j.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,v=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(j){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=j)r(f),Y.sortIndex=Y.expirationTime,t(c,Y);else break;Y=n(f)}}function P(j){if(x=!1,_(j),!y)if(n(c)!==null)y=!0,ae(I);else{var Y=n(f);Y!==null&&ke(P,Y.startTime-j)}}function I(j,Y){y=!1,x&&(x=!1,w(z),z=-1),v=!0;var q=m;try{for(_(Y),h=n(c);h!==null&&(!(h.expirationTime>Y)||j&&!te());){var R=h.callback;if(typeof R=="function"){h.callback=null,m=h.priorityLevel;var U=R(h.expirationTime<=Y);Y=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),_(Y)}else r(c);h=n(c)}if(h!==null)var se=!0;else{var ue=n(f);ue!==null&&ke(P,ue.startTime-Y),se=!1}return se}finally{h=null,m=q,v=!1}}var N=!1,L=null,z=-1,K=5,W=-1;function te(){return!(e.unstable_now()-Wj||125R?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(x?(w(z),z=-1):x=!0,ke(P,q-R))):(j.sortIndex=U,t(c,j),y||v||(y=!0,ae(I))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var Y=m;return function(){var q=m;m=Y;try{return j.apply(this,arguments)}finally{m=q}}}})(IE);(function(e){e.exports=IE})(TE);/** * @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 OE=C.exports,Lr=TE.exports;function le(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"),xy=Object.prototype.hasOwnProperty,kF=/^[: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]*$/,MC={},NC={};function EF(e){return xy.call(NC,e)?!0:xy.call(MC,e)?!1:kF.test(e)?NC[e]=!0:(MC[e]=!0,!1)}function PF(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 AF(e,t,n,r){if(t===null||typeof t>"u"||PF(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 nr(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 On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){On[e]=new nr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];On[t]=new nr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new nr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new nr(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){On[e]=new nr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){On[e]=new nr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){On[e]=new nr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){On[e]=new nr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){On[e]=new nr(e,5,!1,e.toLowerCase(),null,!1,!1)});var H2=/[\-:]([a-z])/g;function G2(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(H2,G2);On[t]=new nr(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(H2,G2);On[t]=new nr(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(H2,G2);On[t]=new nr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){On[e]=new nr(e,1,!1,e.toLowerCase(),null,!1,!1)});On.xlinkHref=new nr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){On[e]=new nr(e,1,!1,e.toLowerCase(),null,!0,!0)});function q2(e,t,n,r){var o=On.hasOwnProperty(t)?On[t]:null;(o!==null?o.type!==0:r||!(2u||o[s]!==i[u]){var c=` `+o[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{l1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kc(e):""}function TF(e){switch(e.tag){case 5:return kc(e.type);case 16:return kc("Lazy");case 13:return kc("Suspense");case 19:return kc("SuspenseList");case 0:case 2:case 15:return e=u1(e.type,!1),e;case 11:return e=u1(e.type.render,!1),e;case 1:return e=u1(e.type,!0),e;default:return""}}function _y(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 Ol:return"Fragment";case Il:return"Portal";case Sy:return"Profiler";case K2:return"StrictMode";case wy:return"Suspense";case Cy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NE:return(e.displayName||"Context")+".Consumer";case ME:return(e._context.displayName||"Context")+".Provider";case Y2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z2:return t=e.displayName||null,t!==null?t:_y(e.type)||"Memo";case ya:t=e._payload,e=e._init;try{return _y(e(t))}catch{}}return null}function IF(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 _y(t);case 8:return t===K2?"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 Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function DE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OF(e){var t=DE(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 Op(e){e._valueTracker||(e._valueTracker=OF(e))}function FE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=DE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xh(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 ky(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function DC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wa(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 $E(e,t){t=t.checked,t!=null&&q2(e,"checked",t,!1)}function Ey(e,t){$E(e,t);var n=Wa(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")?Py(e,t.type,n):t.hasOwnProperty("defaultValue")&&Py(e,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FC(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 Py(e,t,n){(t!=="number"||Xh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function ql(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function af(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={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},RF=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){RF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function WE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function jE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=WE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var MF=Vt({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 Iy(e,t){if(t){if(MF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(le(62))}}function Oy(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 Ry=null;function X2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var My=null,Kl=null,Yl=null;function zC(e){if(e=td(e)){if(typeof My!="function")throw Error(le(280));var t=e.stateNode;t&&(t=fm(t),My(e.stateNode,e.type,t))}}function UE(e){Kl?Yl?Yl.push(e):Yl=[e]:Kl=e}function HE(){if(Kl){var e=Kl,t=Yl;if(Yl=Kl=null,zC(e),t)for(e=0;e>>=0,e===0?32:31-(UF(e)/HF|0)|0}var Mp=64,Np=4194304;function Pc(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 t0(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 u=s&~o;u!==0?r=Pc(u):(i&=s,i!==0&&(r=Pc(i)))}else s=n&~o,s!==0?r=Pc(s):i!==0&&(r=Pc(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Po(t),e[t]=n}function YF(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=Dc),YC=String.fromCharCode(32),ZC=!1;function fP(e,t){switch(e){case"keyup":return C$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function k$(e,t){switch(e){case"compositionend":return dP(t);case"keypress":return t.which!==32?null:(ZC=!0,YC);case"textInput":return e=t.data,e===YC&&ZC?null:e;default:return null}}function E$(e,t){if(Rl)return e==="compositionend"||!ix&&fP(e,t)?(e=uP(),xh=nx=ka=null,Rl=!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=e_(n)}}function gP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vP(){for(var e=window,t=Xh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xh(e.document)}return t}function ax(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 L$(e){var t=vP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gP(n.ownerDocument.documentElement,n)){if(r!==null&&ax(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=t_(n,i);var s=t_(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,Ml=null,By=null,$c=null,zy=!1;function n_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zy||Ml==null||Ml!==Xh(r)||(r=Ml,"selectionStart"in r&&ax(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}),$c&&df($c,r)||($c=r,r=o0(By,"onSelect"),0Dl||(e.current=Gy[Dl],Gy[Dl]=null,Dl--)}function Pt(e,t){Dl++,Gy[Dl]=e.current,e.current=t}var ja={},Wn=Za(ja),hr=Za(!1),Ls=ja;function uu(e,t){var n=e.type.contextTypes;if(!n)return ja;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 mr(e){return e=e.childContextTypes,e!=null}function a0(){Ot(hr),Ot(Wn)}function u_(e,t,n){if(Wn.current!==ja)throw Error(le(168));Pt(Wn,t),Pt(hr,n)}function EP(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(le(108,IF(e)||"Unknown",o));return Vt({},n,r)}function s0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ja,Ls=Wn.current,Pt(Wn,e),Pt(hr,hr.current),!0}function c_(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=EP(e,t,Ls),r.__reactInternalMemoizedMergedChildContext=e,Ot(hr),Ot(Wn),Pt(Wn,e)):Ot(hr),Pt(hr,n)}var Ii=null,dm=!1,C1=!1;function PP(e){Ii===null?Ii=[e]:Ii.push(e)}function q$(e){dm=!0,PP(e)}function Xa(){if(!C1&&Ii!==null){C1=!0;var e=0,t=ht;try{var n=Ii;for(ht=1;e>=s,o-=s,Ni=1<<32-Po(t)+o|n<z?(K=L,L=null):K=L.sibling;var W=m(w,L,_[z],P);if(W===null){L===null&&(L=K);break}e&&L&&W.alternate===null&&t(w,L),b=i(W,b,z),N===null?I=W:N.sibling=W,N=W,L=K}if(z===_.length)return n(w,L),Nt&&ds(w,z),I;if(L===null){for(;z<_.length;z++)L=h(w,_[z],P),L!==null&&(b=i(L,b,z),N===null?I=L:N.sibling=L,N=L);return Nt&&ds(w,z),I}for(L=r(w,L);z<_.length;z++)K=v(L,w,z,_[z],P),K!==null&&(e&&K.alternate!==null&&L.delete(K.key===null?z:K.key),b=i(K,b,z),N===null?I=K:N.sibling=K,N=K);return e&&L.forEach(function(te){return t(w,te)}),Nt&&ds(w,z),I}function x(w,b,_,P){var I=uc(_);if(typeof I!="function")throw Error(le(150));if(_=I.call(_),_==null)throw Error(le(151));for(var N=I=null,L=b,z=b=0,K=null,W=_.next();L!==null&&!W.done;z++,W=_.next()){L.index>z?(K=L,L=null):K=L.sibling;var te=m(w,L,W.value,P);if(te===null){L===null&&(L=K);break}e&&L&&te.alternate===null&&t(w,L),b=i(te,b,z),N===null?I=te:N.sibling=te,N=te,L=K}if(W.done)return n(w,L),Nt&&ds(w,z),I;if(L===null){for(;!W.done;z++,W=_.next())W=h(w,W.value,P),W!==null&&(b=i(W,b,z),N===null?I=W:N.sibling=W,N=W);return Nt&&ds(w,z),I}for(L=r(w,L);!W.done;z++,W=_.next())W=v(L,w,z,W.value,P),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?z:W.key),b=i(W,b,z),N===null?I=W:N.sibling=W,N=W);return e&&L.forEach(function(be){return t(w,be)}),Nt&&ds(w,z),I}function E(w,b,_,P){if(typeof _=="object"&&_!==null&&_.type===Ol&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ip:e:{for(var I=_.key,N=b;N!==null;){if(N.key===I){if(I=_.type,I===Ol){if(N.tag===7){n(w,N.sibling),b=o(N,_.props.children),b.return=w,w=b;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ya&&v_(I)===N.type){n(w,N.sibling),b=o(N,_.props),b.ref=hc(w,N,_),b.return=w,w=b;break e}n(w,N);break}else t(w,N);N=N.sibling}_.type===Ol?(b=Is(_.props.children,w.mode,P,_.key),b.return=w,w=b):(P=Ah(_.type,_.key,_.props,null,w.mode,P),P.ref=hc(w,b,_),P.return=w,w=P)}return s(w);case Il:e:{for(N=_.key;b!==null;){if(b.key===N)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(w,b.sibling),b=o(b,_.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=O1(_,w.mode,P),b.return=w,w=b}return s(w);case ya:return N=_._init,E(w,b,N(_._payload),P)}if(Ec(_))return y(w,b,_,P);if(uc(_))return x(w,b,_,P);Vp(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,_),b.return=w,w=b):(n(w,b),b=I1(_,w.mode,P),b.return=w,w=b),s(w)):n(w,b)}return E}var fu=LP(!0),DP=LP(!1),nd={},Qo=Za(nd),gf=Za(nd),vf=Za(nd);function ks(e){if(e===nd)throw Error(le(174));return e}function mx(e,t){switch(Pt(vf,t),Pt(gf,e),Pt(Qo,nd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ty(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ty(t,e)}Ot(Qo),Pt(Qo,t)}function du(){Ot(Qo),Ot(gf),Ot(vf)}function FP(e){ks(vf.current);var t=ks(Qo.current),n=Ty(t,e.type);t!==n&&(Pt(gf,e),Pt(Qo,n))}function gx(e){gf.current===e&&(Ot(Qo),Ot(gf))}var Bt=Za(0);function p0(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)!==0)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 _1=[];function vx(){for(var e=0;e<_1.length;e++)_1[e]._workInProgressVersionPrimary=null;_1.length=0}var Ch=Zi.ReactCurrentDispatcher,k1=Zi.ReactCurrentBatchConfig,Fs=0,zt=null,fn=null,yn=null,h0=!1,Bc=!1,yf=0,Y$=0;function Dn(){throw Error(le(321))}function yx(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=k1.transition;k1.transition={};try{e(!1),t()}finally{ht=n,k1.transition=r}}function JP(){return ro().memoizedState}function X$(e,t,n){var r=Fa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eA(e))tA(t,n);else if(n=OP(e,t,n,r),n!==null){var o=Jn();Ao(n,e,r,o),nA(n,t,r)}}function Q$(e,t,n){var r=Fa(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eA(e))tA(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,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,Oo(u,s)){var c=t.interleaved;c===null?(o.next=o,px(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=OP(e,t,o,r),n!==null&&(o=Jn(),Ao(n,e,r,o),nA(n,t,r))}}function eA(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function tA(e,t){Bc=h0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nA(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,J2(e,n)}}var m0={readContext:no,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},J$={readContext:no,useCallback:function(e,t){return Wo().memoizedState=[e,t===void 0?null:t],e},useContext:no,useEffect:b_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,KP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=Wo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wo();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=X$.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=Wo();return e={current:e},t.memoizedState=e},useState:y_,useDebugValue:wx,useDeferredValue:function(e){return Wo().memoizedState=e},useTransition:function(){var e=y_(!1),t=e[0];return e=Z$.bind(null,e[1]),Wo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,o=Wo();if(Nt){if(n===void 0)throw Error(le(407));n=n()}else{if(n=t(),bn===null)throw Error(le(349));(Fs&30)!==0||zP(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,b_(WP.bind(null,r,i,e),[e]),r.flags|=2048,xf(9,VP.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wo(),t=bn.identifierPrefix;if(Nt){var n=Li,r=Ni;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yf++,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[Go]=t,e[mf]=r,fA(e,t,!1,!1),t.stateNode=e;e:{switch(s=Oy(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),o=r;break;case"iframe":case"object":case"embed":Tt("load",e),o=r;break;case"video":case"audio":for(o=0;ohu&&(t.flags|=128,r=!0,mc(i,!1),t.lanes=4194304)}else{if(!r)if(e=p0(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nt)return Fn(t),null}else 2*tn()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,mc(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=tn(),t.sibling=null,n=Bt.current,Pt(Bt,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return Ax(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Or&1073741824)!==0&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(le(156,t.tag))}function sB(e,t){switch(lx(t),t.tag){case 1:return mr(t.type)&&a0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return du(),Ot(hr),Ot(Wn),vx(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return gx(t),null;case 13:if(Ot(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(le(340));cu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot(Bt),null;case 4:return du(),null;case 10:return dx(t.type._context),null;case 22:case 23:return Ax(),null;case 24:return null;default:return null}}var jp=!1,zn=!1,lB=typeof WeakSet=="function"?WeakSet:Set,we=null;function zl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function ob(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var A_=!1;function uB(e,t){if(Vy=n0,e=vP(),ax(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,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(u=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wy={focusedElem:e,selectionRange:n},n0=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,E=y.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?x:wo(t.type,x),E);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(P){Gt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return y=A_,A_=!1,y}function zc(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&&ob(t,n,i)}o=o.next}while(o!==r)}}function mm(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 ib(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 hA(e){var t=e.alternate;t!==null&&(e.alternate=null,hA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Go],delete t[mf],delete t[Hy],delete t[H$],delete t[G$])),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 mA(e){return e.tag===5||e.tag===3||e.tag===4}function T_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mA(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 ab(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=i0));else if(r!==4&&(e=e.child,e!==null))for(ab(e,t,n),e=e.sibling;e!==null;)ab(e,t,n),e=e.sibling}function sb(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(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}var An=null,Co=!1;function ca(e,t,n){for(n=n.child;n!==null;)gA(e,t,n),n=n.sibling}function gA(e,t,n){if(Xo&&typeof Xo.onCommitFiberUnmount=="function")try{Xo.onCommitFiberUnmount(sm,n)}catch{}switch(n.tag){case 5:zn||zl(n,t);case 6:var r=An,o=Co;An=null,ca(e,t,n),An=r,Co=o,An!==null&&(Co?(e=An,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):An.removeChild(n.stateNode));break;case 18:An!==null&&(Co?(e=An,n=n.stateNode,e.nodeType===8?w1(e.parentNode,n):e.nodeType===1&&w1(e,n),cf(e)):w1(An,n.stateNode));break;case 4:r=An,o=Co,An=n.stateNode.containerInfo,Co=!0,ca(e,t,n),An=r,Co=o;break;case 0:case 11:case 14:case 15:if(!zn&&(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)!==0||(i&4)!==0)&&ob(n,t,s),o=o.next}while(o!==r)}ca(e,t,n);break;case 1:if(!zn&&(zl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Gt(n,t,u)}ca(e,t,n);break;case 21:ca(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,ca(e,t,n),zn=r):ca(e,t,n);break;default:ca(e,t,n)}}function I_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lB),t.forEach(function(r){var o=yB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fB(r/1960))-r,10e?16:e,Ea===null)var r=!1;else{if(e=Ea,Ea=null,y0=0,(Je&6)!==0)throw Error(le(331));var o=Je;for(Je|=4,we=e.current;we!==null;){var i=we,s=i.child;if((we.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;ctn()-Ex?Ts(e,0):kx|=n),gr(e,t)}function _A(e,t){t===0&&((e.mode&1)===0?t=1:(t=Np,Np<<=1,(Np&130023424)===0&&(Np=4194304)));var n=Jn();e=Ui(e,t),e!==null&&(Jf(e,t,n),gr(e,n))}function vB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_A(e,n)}function yB(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(le(314))}r!==null&&r.delete(t),_A(e,n)}var kA;kA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hr.current)dr=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dr=!1,iB(e,t,n);dr=(e.flags&131072)!==0}else dr=!1,Nt&&(t.flags&1048576)!==0&&AP(t,u0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kh(e,t),e=t.pendingProps;var o=uu(t,Wn.current);Xl(t,n),o=bx(null,t,r,e,o,n);var i=xx();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,mr(r)?(i=!0,s0(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hx(t),o.updater=pm,t.stateNode=o,o._reactInternals=t,Xy(t,r,e,n),t=eb(null,t,r,!0,i,n)):(t.tag=0,Nt&&i&&sx(t),Qn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=xB(r),e=wo(r,e),o){case 0:t=Jy(null,t,r,e,n);break e;case 1:t=k_(null,t,r,e,n);break e;case 11:t=C_(null,t,r,e,n);break e;case 14:t=__(null,t,r,wo(r.type,e),n);break e}throw Error(le(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),Jy(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),k_(e,t,r,o,n);case 3:e:{if(lA(t),e===null)throw Error(le(387));r=t.pendingProps,i=t.memoizedState,o=i.element,RP(e,t),d0(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=pu(Error(le(423)),t),t=E_(e,t,r,n,o);break e}else if(r!==o){o=pu(Error(le(424)),t),t=E_(e,t,r,n,o);break e}else for(Rr=Na(t.stateNode.containerInfo.firstChild),Mr=t,Nt=!0,ko=null,n=DP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cu(),r===o){t=Hi(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return FP(t),e===null&&Ky(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,jy(r,o)?s=null:i!==null&&jy(r,i)&&(t.flags|=32),sA(e,t),Qn(e,t,s,n),t.child;case 6:return e===null&&Ky(t),null;case 13:return uA(e,t,n);case 4:return mx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fu(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),C_(e,t,r,o,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(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,Pt(c0,r._currentValue),r._currentValue=s,i!==null)if(Oo(i.value,s)){if(i.children===o.children&&!hr.current){t=Hi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Fi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Yy(i.return,n,t),u.lanes|=n;break}c=c.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(le(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Yy(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}Qn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Xl(t,n),o=no(o),r=r(o),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,o=wo(r,t.pendingProps),o=wo(r.type,o),__(e,t,r,o,n);case 15:return iA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),kh(e,t),t.tag=1,mr(r)?(e=!0,s0(t)):e=!1,Xl(t,n),NP(t,r,o),Xy(t,r,o,n),eb(null,t,r,!0,e,n);case 19:return cA(e,t,n);case 22:return aA(e,t,n)}throw Error(le(156,t.tag))};function EA(e,t){return QE(e,t)}function bB(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 Jr(e,t,n,r){return new bB(e,t,n,r)}function Ix(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xB(e){if(typeof e=="function")return Ix(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Y2)return 11;if(e===Z2)return 14}return 2}function $a(e,t){var n=e.alternate;return n===null?(n=Jr(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 Ah(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ix(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ol:return Is(n.children,o,i,t);case K2:s=8,o|=8;break;case Sy:return e=Jr(12,n,t,o|2),e.elementType=Sy,e.lanes=i,e;case wy:return e=Jr(13,n,t,o),e.elementType=wy,e.lanes=i,e;case Cy:return e=Jr(19,n,t,o),e.elementType=Cy,e.lanes=i,e;case LE:return vm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ME:s=10;break e;case NE:s=9;break e;case Y2:s=11;break e;case Z2:s=14;break e;case ya:s=16,r=null;break e}throw Error(le(130,e==null?e:typeof e,""))}return t=Jr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Is(e,t,n,r){return e=Jr(7,e,r,t),e.lanes=n,e}function vm(e,t,n,r){return e=Jr(22,e,r,t),e.elementType=LE,e.lanes=n,e.stateNode={isHidden:!1},e}function I1(e,t,n){return e=Jr(6,e,null,t),e.lanes=n,e}function O1(e,t,n){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SB(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=f1(0),this.expirationTimes=f1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=f1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ox(e,t,n,r,o,i,s,u,c){return e=new SB(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hx(i),e}function wB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=$r})(Qf);var $_=Qf.exports;by.createRoot=$_.createRoot,by.hydrateRoot=$_.hydrateRoot;var $i=Boolean(globalThis?.document)?C.exports.useLayoutEffect:C.exports.useEffect,wm={exports:{}},Cm={};/** * @license React * react-jsx-runtime.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 PB=C.exports,AB=Symbol.for("react.element"),TB=Symbol.for("react.fragment"),IB=Object.prototype.hasOwnProperty,OB=PB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RB={key:!0,ref:!0,__self:!0,__source:!0};function IA(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)IB.call(t,r)&&!RB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:AB,type:e,key:i,ref:s,props:o,_owner:OB.current}}Cm.Fragment=TB;Cm.jsx=IA;Cm.jsxs=IA;(function(e){e.exports=Cm})(wm);const Rn=wm.exports.Fragment,S=wm.exports.jsx,ee=wm.exports.jsxs;var Lx=C.exports.createContext({});Lx.displayName="ColorModeContext";function _m(){const e=C.exports.useContext(Lx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Ba(e,t){const{colorMode:n}=_m();return n==="dark"?t:e}var Gp={light:"chakra-ui-light",dark:"chakra-ui-dark"};function MB(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?.()},setClassName(r){document.body.classList.add(r?Gp.dark:Gp.light),document.body.classList.remove(r?Gp.light:Gp.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??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 NB="chakra-ui-color-mode";function LB(e){return{ssr:!1,type:"localStorage",get(t){if(!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 DB=LB(NB),B_=()=>{};function z_(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function OA(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=DB}=e,u=o==="dark"?"dark":"light",[c,f]=C.exports.useState(()=>z_(s,u)),[p,h]=C.exports.useState(()=>z_(s)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:x}=C.exports.useMemo(()=>MB({preventTransition:i}),[i]),E=o==="system"&&!c?p:c,w=C.exports.useCallback(P=>{const I=P==="system"?m():P;f(I),v(I==="dark"),y(I),s.set(I)},[s,m,v,y]);$i(()=>{o==="system"&&h(m())},[]),C.exports.useEffect(()=>{const P=s.get();if(P){w(P);return}if(o==="system"){w("system");return}w(u)},[s,u,o,w]);const b=C.exports.useCallback(()=>{w(E==="dark"?"light":"dark")},[E,w]);C.exports.useEffect(()=>{if(!!r)return x(w)},[r,x,w]);const _=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?B_:b,setColorMode:t?B_:w}),[E,b,w,t]);return S(Lx.Provider,{value:_,children:n})}OA.displayName="ColorModeProvider";var FB=new Set(["dark","light","system"]);function $B(e){let t=e;return FB.has(t)||(t="light"),t}function BB(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=$B(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){}})(); `,u=`(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:u}`.trim()}function zB(e={}){return S("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:BB(e)}})}var db={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",x="[object Map]",E="[object Number]",w="[object Null]",b="[object Object]",_="[object Proxy]",P="[object RegExp]",I="[object Set]",N="[object String]",L="[object Undefined]",z="[object WeakMap]",K="[object ArrayBuffer]",W="[object DataView]",te="[object Float32Array]",be="[object Float64Array]",_e="[object Int8Array]",ye="[object Int16Array]",Ce="[object Int32Array]",ae="[object Uint8Array]",ke="[object Uint8ClampedArray]",j="[object Uint16Array]",Y="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,se={};se[te]=se[be]=se[_e]=se[ye]=se[Ce]=se[ae]=se[ke]=se[j]=se[Y]=!0,se[u]=se[c]=se[K]=se[p]=se[W]=se[h]=se[m]=se[v]=se[x]=se[E]=se[b]=se[P]=se[I]=se[N]=se[z]=!1;var ue=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,he=typeof self=="object"&&self&&self.Object===Object&&self,me=ue||he||Function("return this")(),Pe=t&&!t.nodeType&&t,fe=Pe&&!0&&e&&!e.nodeType&&e,Se=fe&&fe.exports===Pe,Le=Se&&ue.process,at=function(){try{var O=fe&&fe.require&&fe.require("util").types;return O||Le&&Le.binding&&Le.binding("util")}catch{}}(),At=at&&at.isTypedArray;function hn(O,F,H){switch(H.length){case 0:return O.call(F);case 1:return O.call(F,H[0]);case 2:return O.call(F,H[0],H[1]);case 3:return O.call(F,H[0],H[1],H[2])}return O.apply(F,H)}function ge(O,F){for(var H=-1,ve=Array(O);++H-1}function Ng(O,F){var H=this.__data__,ve=pi(H,O);return ve<0?(++this.size,H.push([O,F])):H[ve][1]=F,this}co.prototype.clear=Du,co.prototype.delete=Rg,co.prototype.get=Fu,co.prototype.has=Mg,co.prototype.set=Ng;function Ji(O){var F=-1,H=O==null?0:O.length;for(this.clear();++F1?H[Ge-1]:void 0,Be=Ge>2?H[2]:void 0;for(dt=O.length>3&&typeof dt=="function"?(Ge--,dt):void 0,Be&&Md(H[0],H[1],Be)&&(dt=Ge<3?void 0:dt,Ge=1),F=Object(F);++ve-1&&O%1==0&&O0){if(++F>=o)return arguments[0]}else F=0;return O.apply(void 0,arguments)}}function $d(O){if(O!=null){try{return Xt.call(O)}catch{}try{return O+""}catch{}}return""}function nl(O,F){return O===F||O!==O&&F!==F}var Uu=Bu(function(){return arguments}())?Bu:function(O){return ts(O)&&Ut.call(O,"callee")&&!Mo.call(O,"callee")},Hu=Array.isArray;function rl(O){return O!=null&&zd(O.length)&&!Gu(O)}function Jg(O){return ts(O)&&rl(O)}var Bd=es||nv;function Gu(O){if(!fo(O))return!1;var F=Xs(O);return F==v||F==y||F==f||F==_}function zd(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=s}function fo(O){var F=typeof O;return O!=null&&(F=="object"||F=="function")}function ts(O){return O!=null&&typeof O=="object"}function ev(O){if(!ts(O)||Xs(O)!=b)return!1;var F=Mn(O);if(F===null)return!0;var H=Ut.call(F,"constructor")&&F.constructor;return typeof H=="function"&&H instanceof H&&Xt.call(H)==ft}var Vd=At?Ie(At):_d;function tv(O){return Td(O,Wd(O))}function Wd(O){return rl(O)?Hg(O,!0):Kg(O)}var Ct=Qs(function(O,F,H,ve){kd(O,F,H,ve)});function yt(O){return function(){return O}}function jd(O){return O}function nv(){return!1}e.exports=Ct})(db,db.exports);const Ua=db.exports;function Yo(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Wl(e,...t){return VB(e)?e(...t):e}var VB=e=>typeof e=="function",WB=e=>/!(important)?$/.test(e),V_=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,pb=(e,t)=>n=>{const r=String(t),o=WB(r),i=V_(r),s=e?`${e}.${i}`:i;let u=Yo(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=V_(u),o?`${u} !important`:u};function wf(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=pb(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var qp=(...e)=>t=>e.reduce((n,r)=>r(n),t);function yo(e,t){return n=>{const r={property:n,scale:e};return r.transform=wf({scale:e,transform:t}),r}}var jB=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function UB(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:jB(t),transform:n?wf({scale:n,compose:r}):r}}var RA=["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 HB(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...RA].join(" ")}function GB(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...RA].join(" ")}var qB={"--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(" ")},KB={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 YB(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 ZB={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},MA="& > :not(style) ~ :not(style)",XB={[MA]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},QB={[MA]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},hb={"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"},JB=new Set(Object.values(hb)),NA=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ez=e=>e.trim();function tz(e,t){var n;if(e==null||NA.has(e))return e;const r=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:o,values:i}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!o||!i)return e;const s=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=i.split(",").map(ez).filter(Boolean);if(c?.length===0)return e;const f=u in hb?hb[u]:u;c.unshift(f);const p=c.map(h=>{if(JB.has(h))return h;const m=h.indexOf(" "),[v,y]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],x=LA(y)?y:y&&y.split(" "),E=`colors.${v}`,w=E in t.__cssMap?t.__cssMap[E].varRef:v;return x?[w,...Array.isArray(x)?x:[x]].join(" "):w});return`${s}(${p.join(", ")})`}var LA=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),nz=(e,t)=>tz(e,t??{});function rz(e){return/^var\(--.+\)$/.test(e)}var oz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},$o=e=>t=>`${e}(${t})`,Qe={filter(e){return e!=="auto"?e:qB},backdropFilter(e){return e!=="auto"?e:KB},ring(e){return YB(Qe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?HB():e==="auto-gpu"?GB():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=oz(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(rz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:nz,blur:$o("blur"),opacity:$o("opacity"),brightness:$o("brightness"),contrast:$o("contrast"),dropShadow:$o("drop-shadow"),grayscale:$o("grayscale"),hueRotate:$o("hue-rotate"),invert:$o("invert"),saturate:$o("saturate"),sepia:$o("sepia"),bgImage(e){return e==null||LA(e)||NA.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){const{space:t,divide:n}=ZB[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},$={borderWidths:yo("borderWidths"),borderStyles:yo("borderStyles"),colors:yo("colors"),borders:yo("borders"),radii:yo("radii",Qe.px),space:yo("space",qp(Qe.vh,Qe.px)),spaceT:yo("space",qp(Qe.vh,Qe.px)),degreeT(e){return{property:e,transform:Qe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:wf({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:yo("sizes",qp(Qe.vh,Qe.px)),sizesT:yo("sizes",qp(Qe.vh,Qe.fraction)),shadows:yo("shadows"),logical:UB,blur:yo("blur",Qe.blur)},Th={background:$.colors("background"),backgroundColor:$.colors("backgroundColor"),backgroundImage:$.propT("backgroundImage",Qe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Qe.bgClip},bgSize:$.prop("backgroundSize"),bgPosition:$.prop("backgroundPosition"),bg:$.colors("background"),bgColor:$.colors("backgroundColor"),bgPos:$.prop("backgroundPosition"),bgRepeat:$.prop("backgroundRepeat"),bgAttachment:$.prop("backgroundAttachment"),bgGradient:$.propT("backgroundImage",Qe.gradient),bgClip:{transform:Qe.bgClip}};Object.assign(Th,{bgImage:Th.backgroundImage,bgImg:Th.backgroundImage});var rt={border:$.borders("border"),borderWidth:$.borderWidths("borderWidth"),borderStyle:$.borderStyles("borderStyle"),borderColor:$.colors("borderColor"),borderRadius:$.radii("borderRadius"),borderTop:$.borders("borderTop"),borderBlockStart:$.borders("borderBlockStart"),borderTopLeftRadius:$.radii("borderTopLeftRadius"),borderStartStartRadius:$.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:$.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:$.radii("borderTopRightRadius"),borderStartEndRadius:$.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:$.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:$.borders("borderRight"),borderInlineEnd:$.borders("borderInlineEnd"),borderBottom:$.borders("borderBottom"),borderBlockEnd:$.borders("borderBlockEnd"),borderBottomLeftRadius:$.radii("borderBottomLeftRadius"),borderBottomRightRadius:$.radii("borderBottomRightRadius"),borderLeft:$.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:$.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:$.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:$.borders(["borderLeft","borderRight"]),borderInline:$.borders("borderInline"),borderY:$.borders(["borderTop","borderBottom"]),borderBlock:$.borders("borderBlock"),borderTopWidth:$.borderWidths("borderTopWidth"),borderBlockStartWidth:$.borderWidths("borderBlockStartWidth"),borderTopColor:$.colors("borderTopColor"),borderBlockStartColor:$.colors("borderBlockStartColor"),borderTopStyle:$.borderStyles("borderTopStyle"),borderBlockStartStyle:$.borderStyles("borderBlockStartStyle"),borderBottomWidth:$.borderWidths("borderBottomWidth"),borderBlockEndWidth:$.borderWidths("borderBlockEndWidth"),borderBottomColor:$.colors("borderBottomColor"),borderBlockEndColor:$.colors("borderBlockEndColor"),borderBottomStyle:$.borderStyles("borderBottomStyle"),borderBlockEndStyle:$.borderStyles("borderBlockEndStyle"),borderLeftWidth:$.borderWidths("borderLeftWidth"),borderInlineStartWidth:$.borderWidths("borderInlineStartWidth"),borderLeftColor:$.colors("borderLeftColor"),borderInlineStartColor:$.colors("borderInlineStartColor"),borderLeftStyle:$.borderStyles("borderLeftStyle"),borderInlineStartStyle:$.borderStyles("borderInlineStartStyle"),borderRightWidth:$.borderWidths("borderRightWidth"),borderInlineEndWidth:$.borderWidths("borderInlineEndWidth"),borderRightColor:$.colors("borderRightColor"),borderInlineEndColor:$.colors("borderInlineEndColor"),borderRightStyle:$.borderStyles("borderRightStyle"),borderInlineEndStyle:$.borderStyles("borderInlineEndStyle"),borderTopRadius:$.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:$.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:$.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:$.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(rt,{rounded:rt.borderRadius,roundedTop:rt.borderTopRadius,roundedTopLeft:rt.borderTopLeftRadius,roundedTopRight:rt.borderTopRightRadius,roundedTopStart:rt.borderStartStartRadius,roundedTopEnd:rt.borderStartEndRadius,roundedBottom:rt.borderBottomRadius,roundedBottomLeft:rt.borderBottomLeftRadius,roundedBottomRight:rt.borderBottomRightRadius,roundedBottomStart:rt.borderEndStartRadius,roundedBottomEnd:rt.borderEndEndRadius,roundedLeft:rt.borderLeftRadius,roundedRight:rt.borderRightRadius,roundedStart:rt.borderInlineStartRadius,roundedEnd:rt.borderInlineEndRadius,borderStart:rt.borderInlineStart,borderEnd:rt.borderInlineEnd,borderTopStartRadius:rt.borderStartStartRadius,borderTopEndRadius:rt.borderStartEndRadius,borderBottomStartRadius:rt.borderEndStartRadius,borderBottomEndRadius:rt.borderEndEndRadius,borderStartRadius:rt.borderInlineStartRadius,borderEndRadius:rt.borderInlineEndRadius,borderStartWidth:rt.borderInlineStartWidth,borderEndWidth:rt.borderInlineEndWidth,borderStartColor:rt.borderInlineStartColor,borderEndColor:rt.borderInlineEndColor,borderStartStyle:rt.borderInlineStartStyle,borderEndStyle:rt.borderInlineEndStyle});var iz={color:$.colors("color"),textColor:$.colors("color"),fill:$.colors("fill"),stroke:$.colors("stroke")},mb={boxShadow:$.shadows("boxShadow"),mixBlendMode:!0,blendMode:$.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:$.prop("backgroundBlendMode"),opacity:!0};Object.assign(mb,{shadow:mb.boxShadow});var az={filter:{transform:Qe.filter},blur:$.blur("--chakra-blur"),brightness:$.propT("--chakra-brightness",Qe.brightness),contrast:$.propT("--chakra-contrast",Qe.contrast),hueRotate:$.degreeT("--chakra-hue-rotate"),invert:$.propT("--chakra-invert",Qe.invert),saturate:$.propT("--chakra-saturate",Qe.saturate),dropShadow:$.propT("--chakra-drop-shadow",Qe.dropShadow),backdropFilter:{transform:Qe.backdropFilter},backdropBlur:$.blur("--chakra-backdrop-blur"),backdropBrightness:$.propT("--chakra-backdrop-brightness",Qe.brightness),backdropContrast:$.propT("--chakra-backdrop-contrast",Qe.contrast),backdropHueRotate:$.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:$.propT("--chakra-backdrop-invert",Qe.invert),backdropSaturate:$.propT("--chakra-backdrop-saturate",Qe.saturate)},S0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Qe.flexDirection},experimental_spaceX:{static:XB,transform:wf({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:QB,transform:wf({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:$.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:$.space("gap"),rowGap:$.space("rowGap"),columnGap:$.space("columnGap")};Object.assign(S0,{flexDir:S0.flexDirection});var DA={gridGap:$.space("gridGap"),gridColumnGap:$.space("gridColumnGap"),gridRowGap:$.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},sz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Qe.outline},outlineOffset:!0,outlineColor:$.colors("outlineColor")},Zr={width:$.sizesT("width"),inlineSize:$.sizesT("inlineSize"),height:$.sizes("height"),blockSize:$.sizes("blockSize"),boxSize:$.sizes(["width","height"]),minWidth:$.sizes("minWidth"),minInlineSize:$.sizes("minInlineSize"),minHeight:$.sizes("minHeight"),minBlockSize:$.sizes("minBlockSize"),maxWidth:$.sizes("maxWidth"),maxInlineSize:$.sizes("maxInlineSize"),maxHeight:$.sizes("maxHeight"),maxBlockSize:$.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:$.propT("float",Qe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Zr,{w:Zr.width,h:Zr.height,minW:Zr.minWidth,maxW:Zr.maxWidth,minH:Zr.minHeight,maxH:Zr.maxHeight,overscroll:Zr.overscrollBehavior,overscrollX:Zr.overscrollBehaviorX,overscrollY:Zr.overscrollBehaviorY});var lz={listStyleType:!0,listStylePosition:!0,listStylePos:$.prop("listStylePosition"),listStyleImage:!0,listStyleImg:$.prop("listStyleImage")};function uz(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 u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},fz=cz(uz),dz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},pz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},R1=(e,t,n)=>{const r={},o=fz(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},hz={srOnly:{transform(e){return e===!0?dz:e==="focusable"?pz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>R1(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>R1(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>R1(t,e,n)}},jc={position:!0,pos:$.prop("position"),zIndex:$.prop("zIndex","zIndices"),inset:$.spaceT("inset"),insetX:$.spaceT(["left","right"]),insetInline:$.spaceT("insetInline"),insetY:$.spaceT(["top","bottom"]),insetBlock:$.spaceT("insetBlock"),top:$.spaceT("top"),insetBlockStart:$.spaceT("insetBlockStart"),bottom:$.spaceT("bottom"),insetBlockEnd:$.spaceT("insetBlockEnd"),left:$.spaceT("left"),insetInlineStart:$.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:$.spaceT("right"),insetInlineEnd:$.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(jc,{insetStart:jc.insetInlineStart,insetEnd:jc.insetInlineEnd});var mz={ring:{transform:Qe.ring},ringColor:$.colors("--chakra-ring-color"),ringOffset:$.prop("--chakra-ring-offset-width"),ringOffsetColor:$.colors("--chakra-ring-offset-color"),ringInset:$.prop("--chakra-ring-inset")},It={margin:$.spaceT("margin"),marginTop:$.spaceT("marginTop"),marginBlockStart:$.spaceT("marginBlockStart"),marginRight:$.spaceT("marginRight"),marginInlineEnd:$.spaceT("marginInlineEnd"),marginBottom:$.spaceT("marginBottom"),marginBlockEnd:$.spaceT("marginBlockEnd"),marginLeft:$.spaceT("marginLeft"),marginInlineStart:$.spaceT("marginInlineStart"),marginX:$.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:$.spaceT("marginInline"),marginY:$.spaceT(["marginTop","marginBottom"]),marginBlock:$.spaceT("marginBlock"),padding:$.space("padding"),paddingTop:$.space("paddingTop"),paddingBlockStart:$.space("paddingBlockStart"),paddingRight:$.space("paddingRight"),paddingBottom:$.space("paddingBottom"),paddingBlockEnd:$.space("paddingBlockEnd"),paddingLeft:$.space("paddingLeft"),paddingInlineStart:$.space("paddingInlineStart"),paddingInlineEnd:$.space("paddingInlineEnd"),paddingX:$.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:$.space("paddingInline"),paddingY:$.space(["paddingTop","paddingBottom"]),paddingBlock:$.space("paddingBlock")};Object.assign(It,{m:It.margin,mt:It.marginTop,mr:It.marginRight,me:It.marginInlineEnd,marginEnd:It.marginInlineEnd,mb:It.marginBottom,ml:It.marginLeft,ms:It.marginInlineStart,marginStart:It.marginInlineStart,mx:It.marginX,my:It.marginY,p:It.padding,pt:It.paddingTop,py:It.paddingY,px:It.paddingX,pb:It.paddingBottom,pl:It.paddingLeft,ps:It.paddingInlineStart,paddingStart:It.paddingInlineStart,pr:It.paddingRight,pe:It.paddingInlineEnd,paddingEnd:It.paddingInlineEnd});var gz={textDecorationColor:$.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:$.shadows("textShadow")},vz={clipPath:!0,transform:$.propT("transform",Qe.transform),transformOrigin:!0,translateX:$.spaceT("--chakra-translate-x"),translateY:$.spaceT("--chakra-translate-y"),skewX:$.degreeT("--chakra-skew-x"),skewY:$.degreeT("--chakra-skew-y"),scaleX:$.prop("--chakra-scale-x"),scaleY:$.prop("--chakra-scale-y"),scale:$.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:$.degreeT("--chakra-rotate")},yz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:$.prop("transitionDuration","transition.duration"),transitionProperty:$.prop("transitionProperty","transition.property"),transitionTimingFunction:$.prop("transitionTimingFunction","transition.easing")},bz={fontFamily:$.prop("fontFamily","fonts"),fontSize:$.prop("fontSize","fontSizes",Qe.px),fontWeight:$.prop("fontWeight","fontWeights"),lineHeight:$.prop("lineHeight","lineHeights"),letterSpacing:$.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},xz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:$.spaceT("scrollMargin"),scrollMarginTop:$.spaceT("scrollMarginTop"),scrollMarginBottom:$.spaceT("scrollMarginBottom"),scrollMarginLeft:$.spaceT("scrollMarginLeft"),scrollMarginRight:$.spaceT("scrollMarginRight"),scrollMarginX:$.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:$.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:$.spaceT("scrollPadding"),scrollPaddingTop:$.spaceT("scrollPaddingTop"),scrollPaddingBottom:$.spaceT("scrollPaddingBottom"),scrollPaddingLeft:$.spaceT("scrollPaddingLeft"),scrollPaddingRight:$.spaceT("scrollPaddingRight"),scrollPaddingX:$.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:$.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function FA(e){return Yo(e)&&e.reference?e.reference:String(e)}var km=(e,...t)=>t.map(FA).join(` ${e} `).replace(/calc/g,""),W_=(...e)=>`calc(${km("+",...e)})`,j_=(...e)=>`calc(${km("-",...e)})`,gb=(...e)=>`calc(${km("*",...e)})`,U_=(...e)=>`calc(${km("/",...e)})`,H_=e=>{const t=FA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:gb(t,-1)},xs=Object.assign(e=>({add:(...t)=>xs(W_(e,...t)),subtract:(...t)=>xs(j_(e,...t)),multiply:(...t)=>xs(gb(e,...t)),divide:(...t)=>xs(U_(e,...t)),negate:()=>xs(H_(e)),toString:()=>e.toString()}),{add:W_,subtract:j_,multiply:gb,divide:U_,negate:H_});function Sz(e,t="-"){return e.replace(/\s+/g,t)}function wz(e){const t=Sz(e.toString());return _z(Cz(t))}function Cz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function _z(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function kz(e,t=""){return[t,e].filter(Boolean).join("-")}function Ez(e,t){return`var(${e}${t?`, ${t}`:""})`}function Pz(e,t=""){return wz(`--${kz(e,t)}`)}function Qa(e,t,n){const r=Pz(e,n);return{variable:r,reference:Ez(r,t)}}function Az(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Tz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Iz(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function vb(e){if(e==null)return e;const{unitless:t}=Iz(e);return t||typeof e=="number"?`${e}px`:e}var $A=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Dx=e=>Object.fromEntries(Object.entries(e).sort($A));function G_(e){const t=Dx(e);return Object.assign(Object.values(t),t)}function Oz(e){const t=Object.keys(Dx(e));return new Set(t)}function q_(e){if(!e)return e;e=vb(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Tc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${vb(e)})`),t&&n.push("and",`(max-width: ${vb(t)})`),n.join(" ")}function Rz(e){if(!e)return null;e.base=e.base??"0px";const t=G_(e),n=Object.entries(e).sort($A).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?q_(f):void 0,{_minW:q_(s),breakpoint:i,minW:s,maxW:f,maxWQuery:Tc(null,f),minWQuery:Tc(s),minMaxQuery:Tc(s,f)}}),r=Oz(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(u=>r.has(u))},asObject:Dx(e),asArray:G_(e),details:n,media:[null,...t.map(i=>Tc(i)).slice(1)],toArrayValue(i){if(!Az(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;Tz(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,u,c)=>{const f=o[c];return f!=null&&u!=null&&(s[f]=u),s},{})}}}var kn={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}`},fa=e=>BA(t=>e(t,"&"),"[role=group]","[data-group]",".group"),_i=e=>BA(t=>e(t,"~ &"),"[data-peer]",".peer"),BA=(e,...t)=>t.map(e).join(", "),Em={_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], &[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",_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:fa(kn.hover),_peerHover:_i(kn.hover),_groupFocus:fa(kn.focus),_peerFocus:_i(kn.focus),_groupFocusVisible:fa(kn.focusVisible),_peerFocusVisible:_i(kn.focusVisible),_groupActive:fa(kn.active),_peerActive:_i(kn.active),_groupDisabled:fa(kn.disabled),_peerDisabled:_i(kn.disabled),_groupInvalid:fa(kn.invalid),_peerInvalid:_i(kn.invalid),_groupChecked:fa(kn.checked),_peerChecked:_i(kn.checked),_groupFocusWithin:fa(kn.focusWithin),_peerFocusWithin:_i(kn.focusWithin),_peerPlaceholderShown:_i(kn.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]"},Mz=Object.keys(Em);function K_(e,t){return Qa(String(e).replace(/\./g,"-"),void 0,t)}function Nz(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=K_(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...y]=m,x=`${v}.-${y.join(".")}`,E=xs.negate(u),w=xs.negate(f);r[x]={value:E,var:c,varRef:w}}n[c]=u,r[o]={value:u,var:c,varRef:f};continue}const p=m=>{const y=[String(o).split(".")[0],m].join(".");if(!e[y])return m;const{reference:E}=K_(y,t?.cssVarPrefix);return E},h=Yo(u)?u:{default:u};n=Ua(n,Object.entries(h).reduce((m,[v,y])=>{var x;const E=p(y);if(v==="default")return m[c]=E,m;const w=((x=Em)==null?void 0:x[v])??v;return m[w]={[c]:E},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function Lz(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Dz(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Fz=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function $z(e){return Dz(e,Fz)}function Bz(e){return e.semanticTokens}function zz(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function Vz({tokens:e,semanticTokens:t}){const n=Object.entries(yb(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(yb(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function yb(e,t=1/0){return!Yo(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Yo(o)||Array.isArray(o)?Object.entries(yb(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function Wz(e){var t;const n=zz(e),r=$z(n),o=Bz(n),i=Vz({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=Nz(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"},...c},__cssMap:u,__breakpoints:Rz(n.breakpoints)}),n}var Fx=Ua({},Th,rt,iz,S0,Zr,az,mz,sz,DA,hz,jc,mb,It,xz,bz,gz,vz,lz,yz),jz=Object.assign({},It,Zr,S0,DA,jc),Uz=Object.keys(jz),Hz=[...Object.keys(Fx),...Mz],Gz={...Fx,...Em},qz=e=>e in Gz;function Kz(e){return/^var\(--.+\)$/.test(e)}var Yz=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Kz(t),Zz=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},r=u=>n(u)??u,o=t.split(",").map(u=>u.trim()),[i,s]=o;return t=n(i)??r(s)??r(t),t};function Xz(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:i,media:s}=r.__breakpoints,u=(c,f=!1)=>{var p;const h=Wl(c,r);let m={};for(let v in h){let y=Wl(h[v],r);if(y==null)continue;if(Array.isArray(y)||Yo(y)&&o(y)){let b=Array.isArray(y)?y:i(y);b=b.slice(0,s.length);for(let _=0;_t=>Xz({theme:t,pseudos:Em,configs:Fx})(e);function Lt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Qz(e,t){if(Array.isArray(e))return e;if(Yo(e))return t(e);if(e!=null)return[e]}function Jz(e,t){for(let n=t+1;n{Ua(f,{[_]:m?b[_]:{[w]:b[_]}})});continue}if(!v){m?Ua(f,b):f[w]=b;continue}f[w]=b}}return f}}function tV(e){return t=>{const{variant:n,size:r,theme:o}=t,i=eV(o);return Ua({},Wl(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function nV(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function St(e){return Lz(e,["styleConfig","size","variant","colorScheme"])}function rV(e){if(e.sheet)return e.sheet;for(var t=0;t0?cr(Pu,--br):0,mu--,rn===10&&(mu=1,Am--),rn}function Nr(){return rn=br2||_f(rn)>3?"":" "}function mV(e,t){for(;--t&&Nr()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return rd(e,Ih()+(t<6&&Jo()==32&&Nr()==32))}function xb(e){for(;Nr();)switch(rn){case e:return br;case 34:case 39:e!==34&&e!==39&&xb(rn);break;case 40:e===41&&xb(e);break;case 92:Nr();break}return br}function gV(e,t){for(;Nr()&&e+rn!==47+10;)if(e+rn===42+42&&Jo()===47)break;return"/*"+rd(t,br-1)+"*"+Pm(e===47?e:Nr())}function vV(e){for(;!_f(Jo());)Nr();return rd(e,br)}function yV(e){return GA(Rh("",null,null,null,[""],e=HA(e),0,[0],e))}function Rh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,y=0,x=1,E=1,w=1,b=0,_="",P=o,I=i,N=r,L=_;E;)switch(y=b,b=Nr()){case 40:if(y!=108&&L.charCodeAt(h-1)==58){bb(L+=ct(Oh(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:L+=Oh(b);break;case 9:case 10:case 13:case 32:L+=hV(y);break;case 92:L+=mV(Ih()-1,7);continue;case 47:switch(Jo()){case 42:case 47:Kp(bV(gV(Nr(),Ih()),t,n),c);break;default:L+="/"}break;case 123*x:u[f++]=Uo(L)*w;case 125*x:case 59:case 0:switch(b){case 0:case 125:E=0;case 59+p:v>0&&Uo(L)-h&&Kp(v>32?Z_(L+";",r,n,h-1):Z_(ct(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Kp(N=Y_(L,t,n,f,p,o,u,_,P=[],I=[],h),i),b===123)if(p===0)Rh(L,t,N,N,P,i,h,u,I);else switch(m){case 100:case 109:case 115:Rh(e,N,N,r&&Kp(Y_(e,N,N,0,0,o,u,_,o,P=[],h),I),o,I,h,u,r?P:I);break;default:Rh(L,N,N,N,[""],I,0,u,I)}}f=p=v=0,x=w=1,_=L="",h=s;break;case 58:h=1+Uo(L),v=y;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&pV()==125)continue}switch(L+=Pm(b),b*x){case 38:w=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(Uo(L)-1)*w,w=1;break;case 64:Jo()===45&&(L+=Oh(Nr())),m=Jo(),p=h=Uo(_=L+=vV(Ih())),b++;break;case 45:y===45&&Uo(L)==2&&(x=0)}}return i}function Y_(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=zx(m),y=0,x=0,E=0;y0?m[w]+" "+b:ct(b,/&\f/g,m[w])))&&(c[E++]=_);return Tm(e,t,n,o===0?$x:u,c,f,p)}function bV(e,t,n){return Tm(e,t,n,VA,Pm(dV()),Cf(e,2,-2),0)}function Z_(e,t,n,r){return Tm(e,t,n,Bx,Cf(e,0,r),Cf(e,r+1,-1),r)}function qA(e,t){switch(uV(e,t)){case 5103:return ot+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+w0+e+$n+e+e;case 6828:case 4268:return ot+e+$n+e+e;case 6165:return ot+e+$n+"flex-"+e+e;case 5187:return ot+e+ct(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+$n+"flex-$1$2")+e;case 5443:return ot+e+$n+"flex-item-"+ct(e,/flex-|-self/,"")+e;case 4675:return ot+e+$n+"flex-line-pack"+ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+$n+ct(e,"shrink","negative")+e;case 5292:return ot+e+$n+ct(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+ct(e,"-grow","")+ot+e+$n+ct(e,"grow","positive")+e;case 4554:return ot+ct(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return ct(ct(ct(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return ct(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return ct(ct(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+$n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return ct(e,/(.+)-inline(.+)/,ot+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(cr(e,t+1)){case 109:if(cr(e,t+4)!==45)break;case 102:return ct(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+w0+(cr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bb(e,"stretch")?qA(ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cr(e,t+1)!==115)break;case 6444:switch(cr(e,Uo(e)-3-(~bb(e,"!important")&&10))){case 107:return ct(e,":",":"+ot)+e;case 101:return ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(cr(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(cr(e,t+11)){case 114:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+$n+e+e}return e}function Jl(e,t){for(var n="",r=zx(e),o=0;o-1&&!e.return)switch(e.type){case Bx:e.return=qA(e.value,e.length);break;case WA:return Jl([vc(e,{value:ct(e.value,"@","@"+ot)})],r);case $x:if(e.length)return fV(e.props,function(o){switch(cV(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jl([vc(e,{props:[ct(o,/:(read-\w+)/,":"+w0+"$1")]})],r);case"::placeholder":return Jl([vc(e,{props:[ct(o,/:(plac\w+)/,":"+ot+"input-$1")]}),vc(e,{props:[ct(o,/:(plac\w+)/,":"+w0+"$1")]}),vc(e,{props:[ct(o,/:(plac\w+)/,$n+"input-$1")]})],r)}return""})}}var X_=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function KA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _V=function(t,n,r){for(var o=0,i=0;o=i,i=Jo(),o===38&&i===12&&(n[r]=1),!_f(i);)Nr();return rd(t,br)},kV=function(t,n){var r=-1,o=44;do switch(_f(o)){case 0:o===38&&Jo()===12&&(n[r]=1),t[r]+=_V(br-1,n,r);break;case 2:t[r]+=Oh(o);break;case 4:if(o===44){t[++r]=Jo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Pm(o)}while(o=Nr());return t},EV=function(t,n){return GA(kV(HA(t),n))},Q_=new WeakMap,PV=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Q_.get(r))&&!o){Q_.set(t,!0);for(var i=[],s=EV(n,i),u=r.props,c=0,f=0;c=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 VV={animationIterationCount: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},WV=/[A-Z]|^ms/g,jV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t6=function(t){return t.charCodeAt(1)===45},J_=function(t){return t!=null&&typeof t!="boolean"},M1=KA(function(e){return t6(e)?e:e.replace(WV,"-$&").toLowerCase()}),e4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jV,function(r,o,i){return Ho={name:o,styles:i,next:Ho},o})}return VV[t]!==1&&!t6(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ef(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 Ho={name:n.name,styles:n.styles,next:Ho},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ho={name:r.name,styles:r.styles,next:Ho},r=r.next;var o=n.styles+";";return o}return UV(e,t,n)}case"function":{if(e!==void 0){var i=Ho,s=n(e);return Ho=i,Ef(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function UV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{t.includes(r)||(n[r]=e[r])}),n}function JV(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 u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},a6=eW(JV);function s6(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var l6=e=>s6(e,t=>t!=null);function Hx(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Vm(e){if(!Hx(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function tW(e){var t;return Hx(e)?((t=id(e))==null?void 0:t.defaultView)??window:window}function id(e){return Hx(e)?e.ownerDocument??document:document}function nW(e){return e.view??window}function rW(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ad=rW();function oW(e){const t=id(e);return t?.activeElement}function Gx(e,t){return e?e===t||e.contains(t):!1}var u6=e=>e.hasAttribute("tabindex"),iW=e=>u6(e)&&e.tabIndex===-1;function aW(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function sW(e){return Vm(e)&&e.localName==="input"&&"select"in e}function c6(e){return(Vm(e)?id(e):document).activeElement===e}function f6(e){return e.parentElement&&f6(e.parentElement)?!0:e.hidden}function lW(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function d6(e){if(!Vm(e)||f6(e)||aW(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]():lW(e)?!0:u6(e)}function uW(e){return e?Vm(e)&&d6(e)&&!iW(e):!1}var cW=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],fW=cW.join(),dW=e=>e.offsetWidth>0&&e.offsetHeight>0;function pW(e){const t=Array.from(e.querySelectorAll(fW));return t.unshift(e),t.filter(n=>d6(n)&&dW(n))}function C0(e,...t){return jl(e)?e(...t):e}function hW(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function mW(e){let t;return function(...r){return e&&(t=e.apply(this,r),e=null),t}}var gW=mW(e=>()=>{const{condition:t,message:n}=e;t&&XV&&console.warn(n)}),vW=(...e)=>t=>e.reduce((n,r)=>r(n),t);function _0(e,t={}){const{isActive:n=c6,nextTick:r,preventScroll:o=!0,selectTextIfInput:i=!0}=t;if(!e||n(e))return-1;function s(){if(!e){gW({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(yW())e.focus({preventScroll:o});else if(e.focus(),o){const u=bW(e);xW(u)}if(i){if(sW(e))e.select();else if("setSelectionRange"in e){const u=e;u.setSelectionRange(u.value.length,u.value.length)}}}return r?requestAnimationFrame(s):(s(),-1)}var Yp=null;function yW(){if(Yp==null){Yp=!1;try{document.createElement("div").focus({get preventScroll(){return Yp=!0,!0}})}catch{}}return Yp}function bW(e){const t=id(e),n=t.defaultView??window;let r=e.parentNode;const o=[],i=t.scrollingElement||t.documentElement;for(;r instanceof n.HTMLElement&&r!==i;)(r.offsetHeight{const n=nW(t),r=t instanceof n.MouseEvent;(!r||r&&t.button===0)&&e(t)}}var CW={pageX:0,pageY:0};function _W(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||CW;return{x:r[`${t}X`],y:r[`${t}Y`]}}function kW(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function EW(e,t="page"){return{point:SW(e)?_W(e,t):kW(e,t)}}var PW=(e,t=!1)=>{const n=r=>e(r,EW(r));return t?wW(n):n},AW=()=>ad&&window.onpointerdown===null,TW=()=>ad&&window.ontouchstart===null,IW=()=>ad&&window.onmousedown===null,OW={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},RW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function MW(e){return AW()?e:TW()?RW[e]:IW()?OW[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function NW(e){const{userAgent:t,vendor:n}=e,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(r&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function LW(e){return ad?NW(window.navigator)===e:!1}function DW(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=C.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=C.exports.useContext(o);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,i),c}return u}return[o.Provider,i,o]}var FW=/^((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)-.*))$/,$W=KA(function(e){return FW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),BW=$W,zW=function(t){return t!=="theme"},r4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?BW:zW},o4=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},VW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return JA(n,r,o),GV(function(){return e6(n,r,o)}),null},WW=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 u=o4(t,n,r),c=u||r4(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v` or ``");return e}function p6(){const e=_m(),t=Wm();return{...e,theme:t}}function YW(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return r(t)??r(n)??n}function ZW(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function XW(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),u=r.map((c,f)=>{if(e==="breakpoints")return YW(i,c,s[f]??c);const p=`${e}.${c}`;return ZW(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function QW(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=C.exports.useMemo(()=>Wz(n),[n]);return ee(YV,{theme:o,children:[S(JW,{root:t}),r]})}function JW({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return S(zm,{styles:n=>({[t]:n.__cssVars})})}DW({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function ej(){const{colorMode:e}=_m();return S(zm,{styles:t=>{const n=a6(t,"styles.global"),r=C0(n,{theme:t,colorMode:e});return r?zA(r)(t):void 0}})}var tj=new Set([...Hz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),nj=new Set(["htmlWidth","htmlHeight","htmlSize"]);function rj(e){return nj.has(e)||!tj.has(e)}var oj=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=s6(s,(h,m)=>qz(m)),c=C0(e,t),f=Object.assign({},o,c,l6(u),i),p=zA(f)(t.theme);return r?[p,r]:p};function N1(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=rj);const o=oj({baseStyle:n});return Sb(e,r)(o)}function ce(e){return C.exports.forwardRef(e)}function h6(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=p6(),s=a6(o,`components.${e}`),u=n||s,c=Ua({theme:o,colorMode:i},u?.defaultProps??{},l6(QV(r,["children"]))),f=C.exports.useRef({});if(u){const h=tV(u)(c);KW(f.current,h)||(f.current=h)}return f.current}function rr(e,t={}){return h6(e,t)}function xr(e,t={}){return h6(e,t)}function ij(){const e=new Map;return new Proxy(N1,{apply(t,n,r){return N1(...r)},get(t,n){return e.has(n)||e.set(n,N1(n)),e.get(n)}})}var ie=ij();function aj(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=C.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=C.exports.useContext(s);if(!f&&n){const p=new Error(i??aj(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function sj(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 sn(...e){return t=>{e.forEach(n=>{sj(n,t)})}}function lj(...e){return C.exports.useMemo(()=>sn(...e),e)}function i4(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 uj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function a4(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function s4(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wb=typeof window<"u"?C.exports.useLayoutEffect:C.exports.useEffect,k0=e=>e,cj=class{descendants=new Map;register=e=>{if(e!=null)return uj(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=i4(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=a4(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=a4(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=s4(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=s4(r,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=i4(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function fj(){const e=C.exports.useRef(new cj);return wb(()=>()=>e.current.destroy()),e.current}var[dj,m6]=Wt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function pj(e){const t=m6(),[n,r]=C.exports.useState(-1),o=C.exports.useRef(null);wb(()=>()=>{!o.current||t.unregister(o.current)},[]),wb(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=k0(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:sn(i,o)}}function hj(){return[k0(dj),()=>k0(m6()),()=>fj(),o=>pj(o)]}var Zt=(...e)=>e.filter(Boolean).join(" "),l4={path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("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"}),S("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ao=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Zt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??l4.viewBox;if(n&&typeof n!="string")return J.createElement(ie.svg,{as:n,...m,...f});const y=s??l4.path;return J.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});ao.displayName="Icon";function Vn(e,t=[]){const n=C.exports.useRef(e);return C.exports.useEffect(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function mj(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Vn(r),s=Vn(o),[u,c]=C.exports.useState(n),f=t!==void 0,p=f?t:u,h=C.exports.useCallback(m=>{const y=typeof m=="function"?m(p):m;!s(p,y)||(f||c(y),i(y))},[f,i,p,s]);return[p,h]}const qx=C.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jm=C.exports.createContext({});function gj(){return C.exports.useContext(jm).visualElement}const Au=C.exports.createContext(null),Us=typeof document<"u",E0=Us?C.exports.useLayoutEffect:C.exports.useEffect,g6=C.exports.createContext({strict:!1});function vj(e,t,n,r){const o=gj(),i=C.exports.useContext(g6),s=C.exports.useContext(Au),u=C.exports.useContext(qx).reducedMotion,c=C.exports.useRef(void 0);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;return E0(()=>{f&&f.syncRender()}),C.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),E0(()=>()=>f&&f.notifyUnmount(),[]),f}function Ul(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yj(e,t,n){return C.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ul(n)&&(n.current=r))},[t])}function Af(e){return typeof e=="string"||Array.isArray(e)}function Um(e){return typeof e=="object"&&typeof e.start=="function"}const bj=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Hm(e){return Um(e.animate)||bj.some(t=>Af(e[t]))}function v6(e){return Boolean(Hm(e)||e.variants)}function xj(e,t){if(Hm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Af(n)?n:void 0,animate:Af(r)?r:void 0}}return e.inherit!==!1?t:{}}function Sj(e){const{initial:t,animate:n}=xj(e,C.exports.useContext(jm));return C.exports.useMemo(()=>({initial:t,animate:n}),[u4(t),u4(n)])}function u4(e){return Array.isArray(e)?e.join(" "):e}const ki=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Tf={measureLayout:ki(["layout","layoutId","drag"]),animation:ki(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ki(["exit"]),drag:ki(["drag","dragControls"]),focus:ki(["whileFocus"]),hover:ki(["whileHover","onHoverStart","onHoverEnd"]),tap:ki(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ki(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ki(["whileInView","onViewportEnter","onViewportLeave"])};function wj(e){for(const t in e)t==="projectionNodeConstructor"?Tf.projectionNodeConstructor=e[t]:Tf[t].Component=e[t]}function Gm(e){const t=C.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Uc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Cj=1;function _j(){return Gm(()=>{if(Uc.hasEverUpdated)return Cj++})}const Kx=C.exports.createContext({});class kj extends J.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const y6=C.exports.createContext({}),Ej=Symbol.for("motionComponentSymbol");function Pj({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&wj(e);function s(c,f){const p={...C.exports.useContext(qx),...c,layoutId:Aj(c)},{isStatic:h}=p;let m=null;const v=Sj(c),y=h?void 0:_j(),x=o(c,h);if(!h&&Us){v.visualElement=vj(i,x,p,t);const E=C.exports.useContext(g6).strict,w=C.exports.useContext(y6);v.visualElement&&(m=v.visualElement.loadFeatures(p,E,e,y,n||Tf.projectionNodeConstructor,w))}return ee(kj,{visualElement:v.visualElement,props:p,children:[m,S(jm.Provider,{value:v,children:r(i,c,y,yj(x,v.visualElement,f),x,h,v.visualElement)})]})}const u=C.exports.forwardRef(s);return u[Ej]=i,u}function Aj({layoutId:e}){const t=C.exports.useContext(Kx).id;return t&&e!==void 0?t+"-"+e:e}function Tj(e){function t(r,o={}){return Pj(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 Ij=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Yx(e){return typeof e!="string"||e.includes("-")?!1:!!(Ij.indexOf(e)>-1||/[A-Z]/.test(e))}const P0={};function Oj(e){Object.assign(P0,e)}const A0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sd=new Set(A0);function b6(e,{layout:t,layoutId:n}){return sd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!P0[e]||e==="opacity")}const ai=e=>!!e?.getVelocity,Rj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mj=(e,t)=>A0.indexOf(e)-A0.indexOf(t);function Nj({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(Mj);for(const u of t)s+=`${Rj[u]||u}(${e[u]}) `;return n&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):r&&o&&(s="none"),s}function x6(e){return e.startsWith("--")}const Lj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,S6=(e,t)=>n=>Math.max(Math.min(n,t),e),Hc=e=>e%1?Number(e.toFixed(5)):e,If=/(-)?([\d]*\.?[\d])+/g,Cb=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Dj=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ld(e){return typeof e=="string"}const Hs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gc=Object.assign(Object.assign({},Hs),{transform:S6(0,1)}),Zp=Object.assign(Object.assign({},Hs),{default:1}),ud=e=>({test:t=>ld(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ha=ud("deg"),ei=ud("%"),Ne=ud("px"),Fj=ud("vh"),$j=ud("vw"),c4=Object.assign(Object.assign({},ei),{parse:e=>ei.parse(e)/100,transform:e=>ei.transform(e*100)}),Zx=(e,t)=>n=>Boolean(ld(n)&&Dj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),w6=(e,t,n)=>r=>{if(!ld(r))return r;const[o,i,s,u]=r.match(If);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Es={test:Zx("hsl","hue"),parse:w6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ei.transform(Hc(t))+", "+ei.transform(Hc(n))+", "+Hc(Gc.transform(r))+")"},Bj=S6(0,255),L1=Object.assign(Object.assign({},Hs),{transform:e=>Math.round(Bj(e))}),Pa={test:Zx("rgb","red"),parse:w6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+L1.transform(e)+", "+L1.transform(t)+", "+L1.transform(n)+", "+Hc(Gc.transform(r))+")"};function zj(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),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 _b={test:Zx("#"),parse:zj,transform:Pa.transform},Xn={test:e=>Pa.test(e)||_b.test(e)||Es.test(e),parse:e=>Pa.test(e)?Pa.parse(e):Es.test(e)?Es.parse(e):_b.parse(e),transform:e=>ld(e)?e:e.hasOwnProperty("red")?Pa.transform(e):Es.transform(e)},C6="${c}",_6="${n}";function Vj(e){var t,n,r,o;return isNaN(e)&&ld(e)&&((n=(t=e.match(If))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(Cb))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function k6(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Cb);r&&(n=r.length,e=e.replace(Cb,C6),t.push(...r.map(Xn.parse)));const o=e.match(If);return o&&(e=e.replace(If,_6),t.push(...o.map(Hs.parse))),{values:t,numColors:n,tokenised:e}}function E6(e){return k6(e).values}function P6(e){const{values:t,numColors:n,tokenised:r}=k6(e),o=t.length;return i=>{let s=r;for(let u=0;utypeof e=="number"?0:e;function jj(e){const t=E6(e);return P6(e)(t.map(Wj))}const Gi={test:Vj,parse:E6,createTransformer:P6,getAnimatableNone:jj},Uj=new Set(["brightness","contrast","saturate","opacity"]);function Hj(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(If)||[];if(!r)return e;const o=n.replace(r,"");let i=Uj.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Gj=/([a-z-]*)\(.*?\)/g,kb=Object.assign(Object.assign({},Gi),{getAnimatableNone:e=>{const t=e.match(Gj);return t?t.map(Hj).join(" "):e}}),f4={...Hs,transform:Math.round},A6={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,size:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:Zp,scaleX:Zp,scaleY:Zp,scaleZ:Zp,skew:ha,skewX:ha,skewY:ha,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:Gc,originX:c4,originY:c4,originZ:Ne,zIndex:f4,fillOpacity:Gc,strokeOpacity:Gc,numOctaves:f4};function Xx(e,t,n,r){const{style:o,vars:i,transform:s,transformKeys:u,transformOrigin:c}=e;u.length=0;let f=!1,p=!1,h=!0;for(const m in t){const v=t[m];if(x6(m)){i[m]=v;continue}const y=A6[m],x=Lj(v,y);if(sd.has(m)){if(f=!0,s[m]=x,u.push(m),!h)continue;v!==(y.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=x):o[m]=x}if(f||r?o.transform=Nj(e,n,h,r):!t.transform&&o.transform&&(o.transform="none"),p){const{originX:m="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${m} ${v} ${y}`}}const Qx=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function T6(e,t,n){for(const r in t)!ai(t[r])&&!b6(r,n)&&(e[r]=t[r])}function qj({transformTemplate:e},t,n){return C.exports.useMemo(()=>{const r=Qx();return Xx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Kj(e,t,n){const r=e.style||{},o={};return T6(o,r,e),Object.assign(o,qj(e,t,n)),e.transformValues?e.transformValues(o):o}function Yj(e,t,n){const r={},o=Kj(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"}`),r.style=o,r}const Zj=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],Xj=["whileTap","onTap","onTapStart","onTapCancel"],Qj=["onPan","onPanStart","onPanSessionStart","onPanEnd"],Jj=["whileInView","onViewportEnter","onViewportLeave","viewport"],eU=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...Jj,...Xj,...Zj,...Qj]);function T0(e){return eU.has(e)}let I6=e=>!T0(e);function tU(e){!e||(I6=t=>t.startsWith("on")?!T0(t):e(t))}try{tU(require("@emotion/is-prop-valid").default)}catch{}function nU(e,t,n){const r={};for(const o in e)(I6(o)||n===!0&&T0(o)||!t&&!T0(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function d4(e,t,n){return typeof e=="string"?e:Ne.transform(t+n*e)}function rU(e,t,n){const r=d4(t,e.x,e.width),o=d4(n,e.y,e.height);return`${r} ${o}`}const oU={offset:"stroke-dashoffset",array:"stroke-dasharray"},iU={offset:"strokeDashoffset",array:"strokeDasharray"};function aU(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?oU:iU;e[i.offset]=Ne.transform(-r);const s=Ne.transform(t),u=Ne.transform(n);e[i.array]=`${s} ${u}`}function Jx(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){Xx(e,c,f,p),e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:v}=e;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rU(v,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&aU(h,i,s,u,!1)}const O6=()=>({...Qx(),attrs:{}});function sU(e,t){const n=C.exports.useMemo(()=>{const r=O6();return Jx(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};T6(r,e.style,e),n.style={...r,...n.style}}return n}function lU(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(Yx(n)?sU:Yj)(r,s,u),h={...nU(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),C.exports.createElement(n,h)}}const R6=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function M6(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 N6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function L6(e,t,n,r){M6(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(N6.has(o)?o:R6(o),t.attrs[o])}function eS(e){const{style:t}=e,n={};for(const r in t)(ai(t[r])||b6(r,e))&&(n[r]=t[r]);return n}function D6(e){const t=eS(e);for(const n in e)if(ai(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function F6(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}const Of=e=>Array.isArray(e),uU=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),$6=e=>Of(e)?e[e.length-1]||0:e;function Nh(e){const t=ai(e)?e.get():e;return uU(t)?t.toValue():t}function cU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:fU(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const B6=e=>(t,n)=>{const r=C.exports.useContext(jm),o=C.exports.useContext(Au),i=()=>cU(e,t,r,o);return n?i():Gm(i)};function fU(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=Nh(i[m]);let{initial:s,animate:u}=e;const c=Hm(e),f=v6(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Um(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=F6(e,v);if(!y)return;const{transitionEnd:x,transition:E,...w}=y;for(const b in w){let _=w[b];if(Array.isArray(_)){const P=p?_.length-1:0;_=_[P]}_!==null&&(o[b]=_)}for(const b in x)o[b]=x[b]}),o}const dU={useVisualState:B6({scrapeMotionValuesFromProps:D6,createRenderState:O6,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Jx(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),L6(t,n)}})},pU={useVisualState:B6({scrapeMotionValuesFromProps:eS,createRenderState:Qx})};function hU(e,{forwardMotionProps:t=!1},n,r,o){return{...Yx(e)?dU:pU,preloadedFeatures:n,useRender:lU(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var Et;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Et||(Et={}));function qm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Eb(e,t,n,r){C.exports.useEffect(()=>{const o=e.current;if(n&&o)return qm(o,t,n,r)},[e,t,n,r])}function mU({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Et.Focus,!0)},o=()=>{n&&n.setActive(Et.Focus,!1)};Eb(t,"focus",e?r:void 0),Eb(t,"blur",e?o:void 0)}function z6(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function V6(e){return!!e.touches}function gU(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const vU={pageX:0,pageY:0};function yU(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||vU;return{x:r[t+"X"],y:r[t+"Y"]}}function bU(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function tS(e,t="page"){return{point:V6(e)?yU(e,t):bU(e,t)}}const W6=(e,t=!1)=>{const n=r=>e(r,tS(r));return t?gU(n):n},xU=()=>Us&&window.onpointerdown===null,SU=()=>Us&&window.ontouchstart===null,wU=()=>Us&&window.onmousedown===null,CU={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},_U={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function j6(e){return xU()?e:SU()?_U[e]:wU()?CU[e]:e}function eu(e,t,n,r){return qm(e,j6(t),W6(n,t==="pointerdown"),r)}function I0(e,t,n,r){return Eb(e,j6(t),n&&W6(n,t==="pointerdown"),r)}function U6(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const p4=U6("dragHorizontal"),h4=U6("dragVertical");function H6(e){let t=!1;if(e==="y")t=h4();else if(e==="x")t=p4();else{const n=p4(),r=h4();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function G6(){const e=H6(!0);return e?(e(),!1):!0}function m4(e,t,n){return(r,o)=>{!z6(r)||G6()||(e.animationState&&e.animationState.setActive(Et.Hover,t),n&&n(r,o))}}function kU({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){I0(r,"pointerenter",e||n?m4(r,!0,e):void 0,{passive:!e}),I0(r,"pointerleave",t||n?m4(r,!1,t):void 0,{passive:!t})}const q6=(e,t)=>t?e===t?!0:q6(e,t.parentElement):!1;function nS(e){return C.exports.useEffect(()=>()=>e(),[])}var qo=function(){return qo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Pb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rMath.min(Math.max(n,e),t),D1=.001,PU=.01,v4=10,AU=.05,TU=1;function IU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;EU(e<=v4*1e3);let s=1-t;s=R0(AU,TU,s),e=R0(PU,v4,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=Ab(f,s),y=Math.exp(-h);return D1-m/v*y},i=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,y=Math.exp(-h),x=Ab(Math.pow(f,2),s);return(-o(f)+D1>0?-1:1)*((m-v)*y)/x}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-D1+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=RU(o,i,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const OU=12;function RU(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function LU(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!y4(e,NU)&&y4(e,MU)){const n=IU(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function rS(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Km(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=LU(i),v=b4,y=b4;function x(){const E=p?-(p/1e3):0,w=n-t,b=c/(2*Math.sqrt(u*f)),_=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),b<1){const P=Ab(_,b);v=I=>{const N=Math.exp(-b*_*I);return n-N*((E+b*_*w)/P*Math.sin(P*I)+w*Math.cos(P*I))},y=I=>{const N=Math.exp(-b*_*I);return b*_*N*(Math.sin(P*I)*(E+b*_*w)/P+w*Math.cos(P*I))-N*(Math.cos(P*I)*(E+b*_*w)-P*w*Math.sin(P*I))}}else if(b===1)v=P=>n-Math.exp(-_*P)*(w+(E+_*w)*P);else{const P=_*Math.sqrt(b*b-1);v=I=>{const N=Math.exp(-b*_*I),L=Math.min(P*I,300);return n-N*((E+b*_*w)*Math.sinh(L)+P*w*Math.cosh(L))/P}}}return x(),{next:E=>{const w=v(E);if(m)s.done=E>=h;else{const b=y(E)*1e3,_=Math.abs(b)<=r,P=Math.abs(n-w)<=o;s.done=_&&P}return s.value=s.done?n:w,s},flipTarget:()=>{p=-p,[t,n]=[n,t],x()}}}rS.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const b4=e=>0,Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qt=(e,t,n)=>-n*e+n*t+e;function F1(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 x4({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 u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=F1(c,u,e+1/3),i=F1(c,u,e),s=F1(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const DU=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},FU=[_b,Pa,Es],S4=e=>FU.find(t=>t.test(e)),K6=(e,t)=>{let n=S4(e),r=S4(t),o=n.parse(e),i=r.parse(t);n===Es&&(o=x4(o),n=Pa),r===Es&&(i=x4(i),r=Pa);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=DU(o[c],i[c],u));return s.alpha=qt(o.alpha,i.alpha,u),n.transform(s)}},Tb=e=>typeof e=="number",$U=(e,t)=>n=>t(e(n)),Ym=(...e)=>e.reduce($U);function Y6(e,t){return Tb(e)?n=>qt(e,t,n):Xn.test(e)?K6(e,t):X6(e,t)}const Z6=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Y6(i,t[s]));return i=>{for(let s=0;s{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Y6(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function w4(e){const t=Gi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s{const n=Gi.createTransformer(t),r=w4(e),o=w4(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Ym(Z6(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},zU=(e,t)=>n=>qt(e,t,n);function VU(e){if(typeof e=="number")return zU;if(typeof e=="string")return Xn.test(e)?K6:X6;if(Array.isArray(e))return Z6;if(typeof e=="object")return BU}function WU(e,t,n){const r=[],o=n||VU(e[0]),i=e.length-1;for(let s=0;sn(Rf(e,t,r))}function UU(e,t){const n=e.length,r=n-1;return o=>{let i=0,s=!1;if(o<=e[0]?s=!0:o>=e[r]&&(i=r-1,s=!0),!s){let c=1;for(;co||c===r);c++);i=c-1}const u=Rf(e[i],e[i+1],o);return t[i](u)}}function Q6(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;O0(i===t.length),O0(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=WU(t,r,o),u=i===2?jU(e,s):UU(e,s);return n?c=>u(R0(e[0],e[i-1],c)):u}const Zm=e=>t=>1-e(1-t),oS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HU=e=>t=>Math.pow(t,e),J6=e=>t=>t*t*((e+1)*t-e),GU=e=>{const t=J6(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},eT=1.525,qU=4/11,KU=8/11,YU=9/10,iS=e=>e,aS=HU(2),ZU=Zm(aS),tT=oS(aS),nT=e=>1-Math.sin(Math.acos(e)),sS=Zm(nT),XU=oS(sS),lS=J6(eT),QU=Zm(lS),JU=oS(lS),eH=GU(eT),tH=4356/361,nH=35442/1805,rH=16061/1805,M0=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-M0(1-e*2)):.5*M0(e*2-1)+.5;function aH(e,t){return e.map(()=>t||tT).splice(0,e.length-1)}function sH(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function lH(e,t){return e.map(n=>n*t)}function Lh({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=lH(r&&r.length===s.length?r:sH(s),o);function c(){return Q6(u,s,{ease:Array.isArray(n)?n:aH(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function uH({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const s={done:!1,value:t};let u=n*e;const c=t+u,f=i===void 0?c:i(c);return f!==c&&(u=f-t),{next:p=>{const h=-u*Math.exp(-p/r);return s.done=!(h>o||h<-o),s.value=s.done?f:f+h,s},flipTarget:()=>{}}}const C4={keyframes:Lh,spring:rS,decay:uH};function cH(e){if(Array.isArray(e.to))return Lh;if(C4[e.type])return C4[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Lh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?rS:Lh}const rT=1/60*1e3,fH=typeof performance<"u"?()=>performance.now():()=>Date.now(),oT=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(fH()),rT);function dH(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=dH(()=>Mf=!0),e),{}),hH=cd.reduce((e,t)=>{const n=Xm[t];return e[t]=(r,o=!1,i=!1)=>(Mf||vH(),n.schedule(r,o,i)),e},{}),mH=cd.reduce((e,t)=>(e[t]=Xm[t].cancel,e),{});cd.reduce((e,t)=>(e[t]=()=>Xm[t].process(tu),e),{});const gH=e=>Xm[e].process(tu),iT=e=>{Mf=!1,tu.delta=Ib?rT:Math.max(Math.min(e-tu.timestamp,pH),1),tu.timestamp=e,Ob=!0,cd.forEach(gH),Ob=!1,Mf&&(Ib=!1,oT(iT))},vH=()=>{Mf=!0,Ib=!0,Ob||oT(iT)},yH=()=>tu;function aT(e,t,n=0){return e-t-n}function bH(e,t,n=0,r=!0){return r?aT(t+-e,t,n):t-(e-t)+n}function xH(e,t,n,r){return r?e>=t+n:e<=-n}const SH=e=>{const t=({delta:n})=>e(n);return{start:()=>hH.update(t,!0),stop:()=>mH.update(t)}};function sT(e){var t,n,{from:r,autoplay:o=!0,driver:i=SH,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:y}=e,x=Km(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=x,w,b=0,_=x.duration,P,I=!1,N=!0,L;const z=cH(x);!((n=(t=z).needsInterpolation)===null||n===void 0)&&n.call(t,r,E)&&(L=Q6([0,100],[r,E],{clamp:!1}),r=0,E=100);const K=z(Object.assign(Object.assign({},x),{from:r,to:E}));function W(){b++,c==="reverse"?(N=b%2===0,s=bH(s,_,f,N)):(s=aT(s,_,f),c==="mirror"&&K.flipTarget()),I=!1,v&&v()}function te(){w.stop(),m&&m()}function be(ye){if(N||(ye=-ye),s+=ye,!I){const Ce=K.next(Math.max(0,s));P=Ce.value,L&&(P=L(P)),I=N?Ce.done:s<=0}y?.(P),I&&(b===0&&(_??(_=s)),b{h?.(),w.stop()}}}function lT(e,t){return t?e*(1e3/t):0}function wH({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:h,onComplete:m,onStop:v}){let y;function x(_){return n!==void 0&&_r}function E(_){return n===void 0?r:r===void 0||Math.abs(n-_){var I;h?.(P),(I=_.onUpdate)===null||I===void 0||I.call(_,P)},onComplete:m,onStop:v}))}function b(_){w(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},_))}if(x(e))b({from:e,velocity:t,to:E(e)});else{let _=o*t+e;typeof f<"u"&&(_=f(_));const P=E(_),I=P===n?-1:1;let N,L;const z=K=>{N=L,L=K,t=lT(K-N,yH().delta),(I===1&&K>P||I===-1&&Ky?.stop()}}const Rb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),_4=e=>Rb(e)&&e.hasOwnProperty("z"),Xp=(e,t)=>Math.abs(e-t);function uS(e,t){if(Tb(e)&&Tb(t))return Xp(e,t);if(Rb(e)&&Rb(t)){const n=Xp(e.x,t.x),r=Xp(e.y,t.y),o=_4(e)&&_4(t)?Xp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const uT=(e,t)=>1-3*t+3*e,cT=(e,t)=>3*t-6*e,fT=e=>3*e,N0=(e,t,n)=>((uT(t,n)*e+cT(t,n))*e+fT(t))*e,dT=(e,t,n)=>3*uT(t,n)*e*e+2*cT(t,n)*e+fT(t),CH=1e-7,_H=10;function kH(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=N0(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>CH&&++u<_H);return s}const EH=8,PH=.001;function AH(e,t,n,r){for(let o=0;o=PH?AH(s,h,e,n):m===0?h:kH(s,u,u+Qp,e,n)}return s=>s===0||s===1?s:N0(i(s),t,r)}function IH({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(!1),u=C.exports.useRef(null),c={passive:!(t||e||n||v)};function f(){u.current&&u.current(),u.current=null}function p(){return f(),s.current=!1,o.animationState&&o.animationState.setActive(Et.Tap,!1),!G6()}function h(y,x){!p()||(q6(o.getInstance(),y.target)?e&&e(y,x):n&&n(y,x))}function m(y,x){!p()||n&&n(y,x)}function v(y,x){f(),!s.current&&(s.current=!0,u.current=Ym(eu(window,"pointerup",h,c),eu(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(Et.Tap,!0),t&&t(y,x))}I0(o,"pointerdown",i?v:void 0,c),nS(f)}const OH="production",pT=typeof process>"u"||process.env===void 0?OH:"production",k4=new Set;function hT(e,t,n){e||k4.has(t)||(console.warn(t),n&&console.warn(n),k4.add(t))}const Mb=new WeakMap,$1=new WeakMap,RH=e=>{const t=Mb.get(e.target);t&&t(e)},MH=e=>{e.forEach(RH)};function NH({root:e,...t}){const n=e||document;$1.has(n)||$1.set(n,{});const r=$1.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(MH,{root:e,...t})),r[o]}function LH(e,t,n){const r=NH(t);return Mb.set(e,n),r.observe(e),()=>{Mb.delete(e),r.unobserve(e)}}function DH({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=C.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?BH:$H)(s,i.current,e,o)}const FH={some:0,all:1};function $H(e,t,n,{root:r,margin:o,amount:i="some",once:s}){C.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:FH[i]},c=f=>{const{isIntersecting:p}=f;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Et.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return LH(n.getInstance(),u,c)},[e,r,o,i])}function BH(e,t,n,{fallback:r=!0}){C.exports.useEffect(()=>{!e||!r||(pT!=="production"&&hT(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Et.InView,!0)}))},[e])}const Aa=e=>t=>(e(t),null),zH={inView:Aa(DH),tap:Aa(IH),focus:Aa(mU),hover:Aa(kU)};function cS(){const e=C.exports.useContext(Au);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.exports.useId();return C.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function VH(){return WH(C.exports.useContext(Au))}function WH(e){return e===null?!0:e.isPresent}function mT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,jH={linear:iS,easeIn:aS,easeInOut:tT,easeOut:ZU,circIn:nT,circInOut:XU,circOut:sS,backIn:lS,backInOut:JU,backOut:QU,anticipate:eH,bounceIn:oH,bounceInOut:iH,bounceOut:M0},E4=e=>{if(Array.isArray(e)){O0(e.length===4);const[t,n,r,o]=e;return TH(t,n,r,o)}else if(typeof e=="string")return jH[e];return e},UH=e=>Array.isArray(e)&&typeof e[0]!="number",P4=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Gi.test(t)&&!t.startsWith("url(")),cs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Jp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),B1=()=>({type:"keyframes",ease:"linear",duration:.3}),HH=e=>({type:"keyframes",duration:.8,values:e}),A4={x:cs,y:cs,z:cs,rotate:cs,rotateX:cs,rotateY:cs,rotateZ:cs,scaleX:Jp,scaleY:Jp,scale:Jp,opacity:B1,backgroundColor:B1,color:B1,default:Jp},GH=(e,t)=>{let n;return Of(t)?n=HH:n=A4[e]||A4.default,{to:t,...n(t)}},qH={...A6,color:Xn,backgroundColor:Xn,outlineColor:Xn,fill:Xn,stroke:Xn,borderColor:Xn,borderTopColor:Xn,borderRightColor:Xn,borderBottomColor:Xn,borderLeftColor:Xn,filter:kb,WebkitFilter:kb},fS=e=>qH[e];function dS(e,t){var n;let r=fS(e);return r!==kb&&(r=Gi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const KH={current:!1};function YH({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:c,...f}){return!!Object.keys(f).length}function ZH({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=L0(i.duration)),i.repeatDelay&&(s.repeatDelay=L0(i.repeatDelay)),e&&(s.ease=UH(e)?e.map(E4):E4(e)),i.type==="tween"&&(s.type="keyframes"),(n||o||r)&&(n?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||n||r||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function XH(e,t){var n,r;return(r=(n=(pS(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function QH(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function JH(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),QH(t),YH(e)||(e={...e,...GH(n,t.to)}),{...t,...ZH(e)}}function eG(e,t,n,r,o){const i=pS(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=P4(e,n);s==="none"&&u&&typeof n=="string"?s=dS(e,n):T4(s)&&typeof n=="string"?s=I4(n):!Array.isArray(n)&&T4(n)&&typeof s=="string"&&(n=I4(s));const c=P4(e,s);function f(){const h={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:m=>t.set(m)};return i.type==="inertia"||i.type==="decay"?wH({...h,...i}):sT({...JH(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=$6(n);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!c||!u||i.type===!1?p:f}function T4(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function I4(e){return typeof e=="number"?0:dS("",e)}function pS(e,t){return e[t]||e.default||e}function hS(e,t,n,r={}){return KH.current&&(r={type:!1}),t.start(o=>{let i,s;const u=eG(e,t,n,r,o),c=XH(r,e),f=()=>s=u();return c?i=window.setTimeout(f,L0(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const tG=e=>/^\-?\d*\.?\d+$/.test(e),nG=e=>/^0[^.\s]+$/.test(e),gT=1/60*1e3,rG=typeof performance<"u"?()=>performance.now():()=>Date.now(),vT=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rG()),gT);function oG(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=oG(()=>Nf=!0),e),{}),ti=fd.reduce((e,t)=>{const n=Qm[t];return e[t]=(r,o=!1,i=!1)=>(Nf||sG(),n.schedule(r,o,i)),e},{}),Lf=fd.reduce((e,t)=>(e[t]=Qm[t].cancel,e),{}),z1=fd.reduce((e,t)=>(e[t]=()=>Qm[t].process(nu),e),{}),aG=e=>Qm[e].process(nu),yT=e=>{Nf=!1,nu.delta=Nb?gT:Math.max(Math.min(e-nu.timestamp,iG),1),nu.timestamp=e,Lb=!0,fd.forEach(aG),Lb=!1,Nf&&(Nb=!1,vT(yT))},sG=()=>{Nf=!0,Nb=!0,Lb||vT(yT)},Db=()=>nu;function mS(e,t){e.indexOf(t)===-1&&e.push(t)}function gS(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qc{constructor(){this.subscriptions=[]}add(t){return mS(this.subscriptions,t),()=>gS(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 uG{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new qc,this.velocityUpdateSubscribers=new qc,this.renderSubscribers=new qc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=Db();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,ti.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),r&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>ti.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=lG(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lT(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function gu(e){return new uG(e)}const bT=e=>t=>t.test(e),cG={test:e=>e==="auto",parse:e=>e},xT=[Hs,Ne,ei,ha,$j,Fj,cG],yc=e=>xT.find(bT(e)),fG=[...xT,Xn,Gi],dG=e=>fG.find(bT(e));function pG(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function hG(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Jm(e,t,n){const r=e.getProps();return F6(r,t,n!==void 0?n:r.custom,pG(e),hG(e))}function mG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gu(n))}function gG(e,t){const n=Jm(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=$6(i[s]);mG(e,s,u)}}function vG(e,t,n){var r,o;const i=Object.keys(t).filter(u=>!e.hasValue(u)),s=i.length;if(!!s)for(let u=0;uFb(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Fb(e,t,n);else{const o=typeof t=="function"?Jm(e,t,n.custom):t;r=ST(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function Fb(e,t,n={}){var r;const o=Jm(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>ST(e,o,n):()=>Promise.resolve(),u=!((r=e.variantChildren)===null||r===void 0)&&r.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:m}=i;return SG(e,t,p+f,h,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[s,u]:[u,s];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function ST(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(s=r);const p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(const m in c){const v=e.getValue(m),y=c[m];if(!v||y===void 0||h&&CG(h,m))continue;let x={delay:n,...s};e.shouldReduceMotion&&sd.has(m)&&(x={...x,type:!1,delay:0});let E=hS(m,v,y,x);D0(f)&&(f.add(m),E=E.then(()=>f.remove(m))),p.push(E)}return Promise.all(p).then(()=>{u&&gG(e,u)})}function SG(e,t,n=0,r=0,o=1,i){const s=[],u=(e.variantChildren.size-1)*r,c=o===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(wG).forEach((f,p)=>{s.push(Fb(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function wG(e,t){return e.sortNodePosition(t)}function CG({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const vS=[Et.Animate,Et.InView,Et.Focus,Et.Hover,Et.Tap,Et.Drag,Et.Exit],_G=[...vS].reverse(),kG=vS.length;function EG(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xG(e,n,r)))}function PG(e){let t=EG(e);const n=TG();let r=!0;const o=(c,f)=>{const p=Jm(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function i(c){t=c(e)}function s(c,f){var p;const h=e.getProps(),m=e.getVariantContext(!0)||{},v=[],y=new Set;let x={},E=1/0;for(let b=0;bE&&N;const te=Array.isArray(I)?I:[I];let be=te.reduce(o,{});L===!1&&(be={});const{prevResolvedValues:_e={}}=P,ye={..._e,...be},Ce=ae=>{W=!0,y.delete(ae),P.needsAnimating[ae]=!0};for(const ae in ye){const ke=be[ae],j=_e[ae];x.hasOwnProperty(ae)||(ke!==j?Of(ke)&&Of(j)?!mT(ke,j)||K?Ce(ae):P.protectedKeys[ae]=!0:ke!==void 0?Ce(ae):y.add(ae):ke!==void 0&&y.has(ae)?Ce(ae):P.protectedKeys[ae]=!0)}P.prevProp=I,P.prevResolvedValues=be,P.isActive&&(x={...x,...be}),r&&e.blockInitialAnimation&&(W=!1),W&&!z&&v.push(...te.map(ae=>({animation:ae,options:{type:_,...c}})))}if(y.size){const b={};y.forEach(_=>{const P=e.getBaseTarget(_);P!==void 0&&(b[_]=P)}),v.push({animation:b})}let w=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>n}}function AG(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mT(t,e):!1}function fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TG(){return{[Et.Animate]:fs(!0),[Et.InView]:fs(),[Et.Hover]:fs(),[Et.Tap]:fs(),[Et.Drag]:fs(),[Et.Focus]:fs(),[Et.Exit]:fs()}}const IG={animation:Aa(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=PG(e)),Um(t)&&C.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Aa(e=>{const{custom:t,visualElement:n}=e,[r,o]=cS(),i=C.exports.useContext(Au);C.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(Et.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class wT{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 f=W1(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=uS(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=Db();this.history.push({...m,timestamp:v});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=V1(p,this.transformPagePoint),z6(f)&&f.buttons===0){this.handlePointerUp(f,p);return}ti.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=W1(V1(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},V6(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=tS(t),i=V1(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=Db();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,W1(i,this.history)),this.removeListeners=Ym(eu(window,"pointermove",this.handlePointerMove),eu(window,"pointerup",this.handlePointerUp),eu(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lf.update(this.updatePoint)}}function V1(e,t){return t?{point:t(e.point)}:e}function O4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function W1({point:e},t){return{point:e,delta:O4(e,CT(t)),offset:O4(e,OG(t)),velocity:RG(t,.1)}}function OG(e){return e[0]}function CT(e){return e[e.length-1]}function RG(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=CT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>L0(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;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 Dr(e){return e.max-e.min}function R4(e,t=0,n=.01){return uS(e,t)n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function D4(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 LG(e,{top:t,left:n,bottom:r,right:o}){return{x:D4(e.x,n,o),y:D4(e.y,t,r)}}function F4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Rf(t.min,t.max-r,e.min):r>o&&(n=Rf(e.min,e.max-o,t.min)),R0(0,1,n)}function $G(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 $b=.35;function BG(e=$b){return e===!1?e=0:e===!0&&(e=$b),{x:$4(e,"left","right"),y:$4(e,"top","bottom")}}function $4(e,t,n){return{min:B4(e,t),max:B4(e,n)}}function B4(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const z4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zc=()=>({x:z4(),y:z4()}),V4=()=>({min:0,max:0}),Pn=()=>({x:V4(),y:V4()});function jo(e){return[e("x"),e("y")]}function _T({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VG(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 j1(e){return e===void 0||e===1}function kT({scale:e,scaleX:t,scaleY:n}){return!j1(e)||!j1(t)||!j1(n)}function ma(e){return kT(e)||W4(e.x)||W4(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function W4(e){return e&&e!=="0%"}function F0(e,t,n){const r=e-n,o=t*r;return n+o}function j4(e,t,n,r,o){return o!==void 0&&(e=F0(e,o,r)),F0(e,n,r)+t}function Bb(e,t=0,n=1,r,o){e.min=j4(e.min,t,n,r,o),e.max=j4(e.max,t,n,r,o)}function ET(e,{x:t,y:n}){Bb(e.x,t.translate,t.scale,t.originPoint),Bb(e.y,n.translate,n.scale,n.originPoint)}function WG(e,t,n,r=!1){var o,i;const s=n.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f{this.stopAnimation(),n&&this.snapToCursor(tS(u,"page").point)},o=(u,c)=>{var f;const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=H6(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jo(v=>{var y,x;let E=this.getAxisMotionValue(v).get()||0;if(ei.test(E)){const w=(x=(y=this.visualElement.projection)===null||y===void 0?void 0:y.layout)===null||x===void 0?void 0:x.actual[v];w&&(E=Dr(w)*(parseFloat(E)/100))}this.originPoint[v]=E}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(Et.Drag,!0))},i=(u,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=c;if(p&&this.currentDirection===null){this.currentDirection=KG(v),this.currentDirection!==null&&h?.(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.syncRender(),m?.(u,c)},s=(u,c)=>this.stop(u,c);this.panSession=new wT(t,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:s},{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?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Et.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!eh(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=NG(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&&Ul(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=LG(r.actual,t):this.constraints=!1,this.elastic=BG(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&jo(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=$G(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ul(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HG(r,o.root,this.visualElement.getTransformPagePoint());let s=DG(o.layout.actual,i);if(n){const u=n(zG(s));this.hasMutatedConstraints=!!u,u&&(s=_T(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=jo(p=>{var h;if(!eh(p,n,this.currentDirection))return;let m=(h=c?.[p])!==null&&h!==void 0?h:{};s&&(m={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hS(t,r,0,n)}stopAnimation(){jo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)}snapToCursor(t){jo(n=>{const{drag:r}=this.getProps();if(!eh(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:u}=o.layout.actual[n];i.set(t[n]-qt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Ul(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};jo(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=FG({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),jo(u=>{if(!eh(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(qt(f,p,i[u]))})}addListeners(){var t;GG.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=eu(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Ul(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();const u=qm(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(jo(h=>{const m=this.getAxisMotionValue(h);!m||(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.syncRender())});return()=>{u(),r(),s(),c?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=$b,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KG(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function YG(e){const{dragControls:t,visualElement:n}=e,r=Gm(()=>new qG(n));C.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),C.exports.useEffect(()=>r.addListeners(),[r])}function ZG({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(null),{transformPagePoint:u}=C.exports.useContext(qx),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};C.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new wT(p,c,{transformPagePoint:u})}I0(o,"pointerdown",i&&f),nS(()=>s.current&&s.current.end())}const XG={pan:Aa(ZG),drag:Aa(YG)},zb={current:null},AT={current:!1};function QG(){if(AT.current=!0,!!Us)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zb.current=e.matches;e.addListener(t),t()}else zb.current=!1}const th=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function JG(){const e=th.map(()=>new qc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{th.forEach(o=>{var i;const s="on"+o,u=r[s];(i=t[o])===null||i===void 0||i.call(t),u&&(t[o]=n[s](u))})}};return e.forEach((r,o)=>{n["on"+th[o]]=i=>r.add(i),n["notify"+th[o]]=(...i)=>r.notify(...i)}),n}function eq(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ai(i))e.addValue(o,i),D0(r)&&r.add(o);else if(ai(s))e.addValue(o,gu(i)),D0(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const u=e.getValue(o);!u.hasAnimated&&u.set(i)}else{const u=e.getStaticValue(o);e.addValue(o,gu(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const TT=Object.keys(Tf),tq=TT.length,IT=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:s,removeValueFromRenderState:u,sortNodePosition:c,scrapeMotionValuesFromProps:f})=>({parent:p,props:h,presenceId:m,blockInitialAnimation:v,visualState:y,reducedMotionConfig:x},E={})=>{let w=!1;const{latestValues:b,renderState:_}=y;let P;const I=JG(),N=new Map,L=new Map;let z={};const K={...b};let W;function te(){!P||!w||(be(),i(P,_,h.style,Y.projection))}function be(){t(Y,_,b,E,h)}function _e(){I.notifyUpdate(b)}function ye(q,R){const U=R.onChange(ue=>{b[q]=ue,h.onUpdate&&ti.update(_e,!1,!0)}),se=R.onRenderRequest(Y.scheduleRender);L.set(q,()=>{U(),se()})}const{willChange:Ce,...ae}=f(h);for(const q in ae){const R=ae[q];b[q]!==void 0&&ai(R)&&(R.set(b[q],!1),D0(Ce)&&Ce.add(q))}const ke=Hm(h),j=v6(h),Y={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p?.isMounted()),blockInitialAnimation:v,isMounted:()=>Boolean(P),mount(q){w=!0,P=Y.current=q,Y.projection&&Y.projection.mount(q),j&&p&&!ke&&(W=p?.addVariantChild(Y)),N.forEach((R,U)=>ye(U,R)),AT.current||QG(),Y.shouldReduceMotion=x==="never"?!1:x==="always"?!0:zb.current,p?.children.add(Y),Y.setProps(h)},unmount(){var q;(q=Y.projection)===null||q===void 0||q.unmount(),Lf.update(_e),Lf.render(te),L.forEach(R=>R()),W?.(),p?.children.delete(Y),I.clearAllListeners(),P=void 0,w=!1},loadFeatures(q,R,U,se,ue,he){const me=[];for(let Pe=0;PeY.scheduleRender(),animationType:typeof fe=="string"?fe:"both",initialPromotionConfig:he,layoutScroll:at})}return me},addVariantChild(q){var R;const U=Y.getClosestVariantNode();if(U)return(R=U.variantChildren)===null||R===void 0||R.add(q),()=>U.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(Y.getInstance(),q.getInstance())},getClosestVariantNode:()=>j?Y:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>P,getStaticValue:q=>b[q],setStaticValue:(q,R)=>b[q]=R,getLatestValues:()=>b,setVisibility(q){Y.isVisible!==q&&(Y.isVisible=q,Y.scheduleRender())},makeTargetAnimatable(q,R=!0){return r(Y,q,h,R)},measureViewportBox(){return o(P,h)},addValue(q,R){Y.hasValue(q)&&Y.removeValue(q),N.set(q,R),b[q]=R.get(),ye(q,R)},removeValue(q){var R;N.delete(q),(R=L.get(q))===null||R===void 0||R(),L.delete(q),delete b[q],u(q,_)},hasValue:q=>N.has(q),getValue(q,R){let U=N.get(q);return U===void 0&&R!==void 0&&(U=gu(R),Y.addValue(q,U)),U},forEachValue:q=>N.forEach(q),readValue:q=>b[q]!==void 0?b[q]:s(P,q,E),setBaseTarget(q,R){K[q]=R},getBaseTarget(q){if(n){const R=n(h,q);if(R!==void 0&&!ai(R))return R}return K[q]},...I,build(){return be(),_},scheduleRender(){ti.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&Y.scheduleRender(),h=q,I.updatePropListeners(q),z=eq(Y,f(h),z)},getProps:()=>h,getVariant:q=>{var R;return(R=h.variants)===null||R===void 0?void 0:R[q]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(q=!1){if(q)return p?.getVariantContext();if(!ke){const U=p?.getVariantContext()||{};return h.initial!==void 0&&(U.initial=h.initial),U}const R={};for(let U=0;U{const i=o.get();if(!Vb(i))return;const s=Wb(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Vb(i))continue;const s=Wb(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const iq=new Set(["width","height","top","left","right","bottom","x","y"]),MT=e=>iq.has(e),aq=e=>Object.keys(e).some(MT),NT=(e,t)=>{e.set(t,!1),e.set(t)},H4=e=>e===Hs||e===Ne;var G4;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(G4||(G4={}));const q4=(e,t)=>parseFloat(e.split(", ")[t]),K4=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return q4(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?q4(i[1],e):0}},sq=new Set(["x","y","z"]),lq=A0.filter(e=>!sq.has(e));function uq(e){const t=[];return lq.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.syncRender(),t}const Y4={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:K4(4,13),y:K4(5,14)},cq=(e,t,n)=>{const r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),{display:s}=i,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=Y4[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);NT(p,u[f]),e[f]=Y4[f](c,i)}),e},fq=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(MT);let i=[],s=!1;const u=[];if(o.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=yc(p);const m=t[c];let v;if(Of(m)){const y=m.length,x=m[0]===null?1:0;p=m[x],h=yc(p);for(let E=x;E=0?window.pageYOffset:null,f=cq(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Us&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function dq(e,t,n,r){return aq(t)?fq(e,t,n,r):{target:t,transitionEnd:r}}const pq=(e,t,n,r)=>{const o=oq(e,t,r);return t=o.target,r=o.transitionEnd,dq(e,t,n,r)};function hq(e){return window.getComputedStyle(e)}const LT={treeType:"dom",readValueFromInstance(e,t){if(sd.has(t)){const n=fS(t);return n&&n.default||0}else{const n=hq(e),r=(x6(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return PT(e,t)},resetTransform(e,t,n){const{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let s=bG(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){vG(e,r,s);const u=pq(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:eS,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xx(t,n,r,o.transformTemplate)},render:M6},mq=IT(LT),gq=IT({...LT,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return sd.has(t)?((n=fS(t))===null||n===void 0?void 0:n.default)||0:(t=N6.has(t)?t:R6(t),e.getAttribute(t))},scrapeMotionValuesFromProps:D6,build(e,t,n,r,o){Jx(t,n,r,o.transformTemplate)},render:L6}),vq=(e,t)=>Yx(e)?gq(t,{enableHardwareAcceleration:!1}):mq(t,{enableHardwareAcceleration:!0});function Z4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=Z4(e,t.target.x),r=Z4(e,t.target.y);return`${n}% ${r}%`}},X4="_$css",yq={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(RT,v=>(i.push(v),X4)));const s=Gi.parse(e);if(s.length>5)return r;const u=Gi.createTransformer(e),c=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;s[0+c]/=f,s[1+c]/=p;const h=qt(f,p,.5);typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h);let m=u(s);if(o){let v=0;m=m.replace(X4,()=>{const y=i[v];return v++,y})}return m}};class bq extends J.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Oj(Sq),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()})),Uc.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()||ti.postRender(()=>{var u;!((u=s.getStack())===null||u===void 0)&&u.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),r?.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function xq(e){const[t,n]=cS(),r=C.exports.useContext(Kx);return S(bq,{...e,layoutGroup:r,switchLayoutGroup:C.exports.useContext(y6),isPresent:t,safeToRemove:n})}const Sq={borderRadius:{...bc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bc,borderTopRightRadius:bc,borderBottomLeftRadius:bc,borderBottomRightRadius:bc,boxShadow:yq},wq={measureLayout:xq};function Cq(e,t,n={}){const r=ai(e)?e:gu(e);return hS("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const DT=["TopLeft","TopRight","BottomLeft","BottomRight"],_q=DT.length,Q4=e=>typeof e=="string"?parseFloat(e):e,J4=e=>typeof e=="number"||Ne.test(e);function kq(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=qt(0,(s=n.opacity)!==null&&s!==void 0?s:1,Eq(r)),e.opacityExit=qt((u=t.opacity)!==null&&u!==void 0?u:1,0,Pq(r))):i&&(e.opacity=qt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;p<_q;p++){const h=`border${DT[p]}Radius`;let m=ek(t,h),v=ek(n,h);if(m===void 0&&v===void 0)continue;m||(m=0),v||(v=0),m===0||v===0||J4(m)===J4(v)?(e[h]=Math.max(qt(Q4(m),Q4(v),r),0),(ei.test(v)||ei.test(m))&&(e[h]+="%")):e[h]=v}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function ek(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const Eq=FT(0,.5,sS),Pq=FT(.5,.95,iS);function FT(e,t,n){return r=>rt?1:n(Rf(e,t,r))}function tk(e,t){e.min=t.min,e.max=t.max}function bo(e,t){tk(e.x,t.x),tk(e.y,t.y)}function nk(e,t,n,r,o){return e-=t,e=F0(e,1/n,r),o!==void 0&&(e=F0(e,1/o,r)),e}function Aq(e,t=0,n=1,r=.5,o,i=e,s=e){if(ei.test(t)&&(t=parseFloat(t),t=qt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=qt(i.min,i.max,r);e===i&&(u-=t),e.min=nk(e.min,t,n,u,o),e.max=nk(e.max,t,n,u,o)}function rk(e,t,[n,r,o],i,s){Aq(e,t[n],t[r],t[o],t.scale,i,s)}const Tq=["x","scaleX","originX"],Iq=["y","scaleY","originY"];function ok(e,t,n,r){rk(e.x,t,Tq,n?.x,r?.x),rk(e.y,t,Iq,n?.y,r?.y)}function ik(e){return e.translate===0&&e.scale===1}function $T(e){return ik(e.x)&&ik(e.y)}function BT(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 ak(e){return Dr(e.x)/Dr(e.y)}function Oq(e,t,n=.01){return uS(e,t)<=n}class Rq{constructor(){this.members=[]}add(t){mS(this.members,t),t.scheduleRender()}remove(t){if(gS(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){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,i,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Mq="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function sk(e,t,n){const r=e.x.translate/t.x,o=e.y.translate/t.y;let i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return i+=`scale(${s}, ${u})`,i===Mq?"none":i}const Nq=(e,t)=>e.depth-t.depth;class Lq{constructor(){this.children=[],this.isDirty=!1}add(t){mS(this.children,t),this.isDirty=!0}remove(t){gS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nq),this.isDirty=!1,this.children.forEach(t)}}const lk=["","X","Y","Z"],uk=1e3;function zT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s,u={},c=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Vq),this.nodes.forEach(Wq)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let f=0;fthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Uc.hasAnimatedSinceResize&&(Uc.hasAnimatedSinceResize=!1,this.nodes.forEach(zq))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:x})=>{var E,w,b,_,P;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=(w=(E=this.options.transition)!==null&&E!==void 0?E:h.getDefaultTransition())!==null&&w!==void 0?w:qq,{onLayoutAnimationStart:N,onLayoutAnimationComplete:L}=h.getProps(),z=!this.targetLayout||!BT(this.targetLayout,x)||y,K=!v&&y;if(((b=this.resumeFrom)===null||b===void 0?void 0:b.instance)||K||v&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,K);const W={...pS(I,"layout"),onPlay:N,onComplete:L};h.shouldReduceMotion&&(W.delay=0,W.type=!1),this.startAnimation(W)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((P=(_=this.options).onExitComplete)===null||P===void 0||P.call(_));this.targetLayout=x})}unmount(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Lf.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(jq))}willUpdate(s=!0){var u,c,f;if(this.root.isUpdateBlocked()){(c=(u=this.options).onExitComplete)===null||c===void 0||c.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));hk(u),this.snapshot={measured:s,layout:u,latestValues:{}}}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{var b;const _=w/1e3;fk(m.x,s.x,_),fk(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((b=this.relativeParent)===null||b===void 0?void 0:b.layout)&&(Yc(v,this.layout.actual,this.relativeParent.layout.actual),Hq(this.relativeTarget,this.relativeTargetOrigin,v,_)),y&&(this.animationValues=h,kq(h,p,this.latestValues,_,E,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(0)}startAnimation(s){var u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Lf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ti.update(()=>{Uc.hasAnimatedSinceResize=!0,this.currentAnimation=Cq(0,uk,{...s,onUpdate:f=>{var p;this.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:()=>{var f;(f=s.onComplete)===null||f===void 0||f.call(s),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,uk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&VT(this.options.animationType,this.layout.actual,f.actual)){c=this.target||Pn();const h=Dr(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Dr(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}bo(u,c),Hl(u,p),Kc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Rq),this.sharedNodes.get(s).add(u),u.promote({transition:(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(p=(f=u.options.initialPromotionConfig)===null||f===void 0?void 0:f.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(f,u)})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const c={};for(let f=0;f{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(ck),this.root.sharedNodes.clear()}}}function Dq(e){e.updateLayout()}function Fq(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:i,measured:s}=e.layout,{animationType:u}=e.options;u==="size"?jo(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Dr(v);v.min=i[m].min,v.max=v.min+y}):VT(u,o.layout,i)&&jo(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Dr(i[m]);v.max=v.min+y});const c=Zc();Kc(c,i,o.layout);const f=Zc();o.isShared?Kc(f,e.applyTransform(s,!0),o.measured):Kc(f,i,o.layout);const p=!$T(c);let h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:m,layout:v}=e.relativeParent;if(m&&v){const y=Pn();Yc(y,o.layout,m.layout);const x=Pn();Yc(x,i,v.actual),BT(y,x)||(h=!0)}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:h})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function $q(e){e.clearSnapshot()}function ck(e){e.clearMeasurements()}function Bq(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function zq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Vq(e){e.resolveTargetDelta()}function Wq(e){e.calcProjection()}function jq(e){e.resetRotation()}function Uq(e){e.removeLeadSnapshot()}function fk(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dk(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function Hq(e,t,n,r){dk(e.x,t.x,n.x,r),dk(e.y,t.y,n.y,r)}function Gq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qq={duration:.45,ease:[.4,0,.1,1]};function Kq(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function pk(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function hk(e){pk(e.x),pk(e.y)}function VT(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oq(ak(t),ak(n))}const Yq=zT({attachResizeListener:(e,t)=>qm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),U1={current:void 0},Zq=zT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!U1.current){const e=new Yq(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),U1.current=e}return U1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Xq={...IG,...zH,...XG,...wq},so=Tj((e,t)=>hU(e,t,Xq,vq,Zq));function WT(){const e=C.exports.useRef(!1);return E0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Qq(){const e=WT(),[t,n]=C.exports.useState(0),r=C.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.exports.useCallback(()=>ti.postRender(r),[r]),t]}class Jq extends C.exports.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 eK({children:e,isPresent:t}){const n=C.exports.useId(),r=C.exports.useRef(null),o=C.exports.useRef({width:0,height:0,top:0,left:0});return C.exports.useInsertionEffect(()=>{const{width:i,height:s,top:u,left:c}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${s}px !important; top: ${u}px !important; left: ${c}px !important; } `),()=>{document.head.removeChild(f)}},[t]),S(Jq,{isPresent:t,childRef:r,sizeRef:o,children:C.exports.cloneElement(e,{ref:r})})}const H1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Gm(tK),c=C.exports.useId(),f=C.exports.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),i?void 0:[n]);return C.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),C.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=S(eK,{isPresent:n,children:e})),S(Au.Provider,{value:f,children:e})};function tK(){return new Map}const Tl=e=>e.key||"";function nK(e,t){e.forEach(n=>{const r=Tl(n);t.set(r,n)})}function rK(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Xi=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",hT(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=Qq();const c=C.exports.useContext(Kx).forceRender;c&&(u=c);const f=WT(),p=rK(e);let h=p;const m=new Set,v=C.exports.useRef(h),y=C.exports.useRef(new Map).current,x=C.exports.useRef(!0);if(E0(()=>{x.current=!1,nK(p,y),v.current=h}),nS(()=>{x.current=!0,y.clear(),m.clear()}),x.current)return S(Rn,{children:h.map(_=>S(H1,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:_},Tl(_)))});h=[...h];const E=v.current.map(Tl),w=p.map(Tl),b=E.length;for(let _=0;_{if(w.indexOf(_)!==-1)return;const P=y.get(_);if(!P)return;const I=E.indexOf(_),N=()=>{y.delete(_),m.delete(_);const L=v.current.findIndex(z=>z.key===_);if(v.current.splice(L,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(I,0,S(H1,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s,children:P},Tl(P)))}),h=h.map(_=>{const P=_.key;return m.has(P)?_:S(H1,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:_},Tl(_))}),pT!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S(Rn,{children:m.size?h:h.map(_=>C.exports.cloneElement(_))})};var dd=(...e)=>e.filter(Boolean).join(" ");function oK(){return!1}var iK=e=>{const{condition:t,message:n}=e;t&&oK()&&console.warn(n)},Ps={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},xc={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function jb(e){switch(e?.direction??"right"){case"right":return xc.slideRight;case"left":return xc.slideLeft;case"bottom":return xc.slideDown;case"top":return xc.slideUp;default:return xc.slideRight}}var Os={enter:{duration:.2,ease:Ps.easeOut},exit:{duration:.1,ease:Ps.easeIn}},To={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},aK=e=>e!=null&&parseInt(e.toString(),10)>0,mk={exit:{height:{duration:.2,ease:Ps.ease},opacity:{duration:.3,ease:Ps.ease}},enter:{height:{duration:.3,ease:Ps.ease},opacity:{duration:.4,ease:Ps.ease}}},sK={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:aK(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??To.exit(mk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??To.enter(mk.enter,o)})},jT=C.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:u,className:c,transition:f,transitionEnd:p,...h}=e,[m,v]=C.exports.useState(!1);C.exports.useEffect(()=>{const b=setTimeout(()=>{v(!0)});return()=>clearTimeout(b)},[]),iK({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:s,animateOpacity:o,transition:m?f:{enter:{duration:0}},transitionEnd:{enter:p?.enter,exit:r?p?.exit:{...p?.exit,display:y?"block":"none"}}},E=r?n:!0,w=n||r?"enter":"exit";return S(Xi,{initial:!1,custom:x,children:E&&J.createElement(so.div,{ref:t,...h,className:dd("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:x,variants:sK,initial:r?"exit":!1,animate:w,exit:"exit"})})});jT.displayName="Collapse";var lK={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??To.enter(Os.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??To.exit(Os.exit,n),transitionEnd:t?.exit})},UT={initial:"exit",animate:"enter",exit:"exit",variants:lK},uK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:u,delay:c,...f}=t,p=o||r?"enter":"exit",h=r?o&&r:!0,m={transition:s,transitionEnd:u,delay:c};return S(Xi,{custom:m,children:h&&J.createElement(so.div,{ref:n,className:dd("chakra-fade",i),custom:m,...UT,animate:p,...f})})});uK.displayName="Fade";var cK={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??To.exit(Os.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??To.enter(Os.enter,n),transitionEnd:e?.enter})},HT={initial:"exit",animate:"enter",exit:"exit",variants:cK},fK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?o&&r:!0,v=o||r?"enter":"exit",y={initialScale:s,reverse:i,transition:c,transitionEnd:f,delay:p};return S(Xi,{custom:y,children:m&&J.createElement(so.div,{ref:n,className:dd("chakra-offset-slide",u),...HT,animate:v,custom:y,...h})})});fK.displayName="ScaleFade";var gk={exit:{duration:.15,ease:Ps.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},dK={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=jb({direction:e});return{...o,transition:t?.exit??To.exit(gk.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=jb({direction:e});return{...o,transition:n?.enter??To.enter(gk.enter,r),transitionEnd:t?.enter}}},GT=C.exports.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=jb({direction:r}),v=Object.assign({position:"fixed"},m.position,o),y=i?s&&i:!0,x=s||i?"enter":"exit",E={transitionEnd:f,transition:c,direction:r,delay:p};return S(Xi,{custom:E,children:y&&J.createElement(so.div,{...h,ref:n,initial:"exit",className:dd("chakra-slide",u),animate:x,exit:"exit",custom:E,variants:dK,style:v})})});GT.displayName="Slide";var pK={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??To.exit(Os.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??To.enter(Os.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:n?.exit??To.exit(Os.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},Ub={initial:"initial",animate:"enter",exit:"exit",variants:pK},hK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,v=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return S(Xi,{custom:x,children:v&&J.createElement(so.div,{ref:n,className:dd("chakra-offset-slide",s),custom:x,...Ub,animate:y,...m})})});hK.displayName="SlideFade";var pd=(...e)=>e.filter(Boolean).join(" ");function mK(){return!1}var eg=e=>{const{condition:t,message:n}=e;t&&mK()&&console.warn(n)};function G1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[gK,tg]=Wt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[vK,yS]=Wt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[yK,Spe,bK,xK]=hj(),hs=ce(function(t,n){const{getButtonProps:r}=yS(),o=r(t,n),i=tg(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return J.createElement(ie.button,{...o,className:pd("chakra-accordion__button",t.className),__css:s})});hs.displayName="AccordionButton";function SK(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;_K(e),kK(e);const u=bK(),[c,f]=C.exports.useState(-1);C.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=mj({value:r,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:p,setIndex:h,htmlProps:s,getAccordionItemProps:v=>{let y=!1;return v!==null&&(y=Array.isArray(p)?p.includes(v):p===v),{isOpen:y,onChange:E=>{if(v!==null)if(o&&Array.isArray(p)){const w=E?p.concat(v):p.filter(b=>b!==v);h(w)}else E?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[wK,bS]=Wt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function CK(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=bS(),u=C.exports.useRef(null),c=C.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;EK(e);const{register:m,index:v,descendants:y}=xK({disabled:t&&!n}),{isOpen:x,onChange:E}=i(v===-1?null:v);PK({isOpen:x,isDisabled:t});const w=()=>{E?.(!0)},b=()=>{E?.(!1)},_=C.exports.useCallback(()=>{E?.(!x),s(v)},[v,s,x,E]),P=C.exports.useCallback(z=>{const W={ArrowDown:()=>{const te=y.nextEnabled(v);te?.node.focus()},ArrowUp:()=>{const te=y.prevEnabled(v);te?.node.focus()},Home:()=>{const te=y.firstEnabled();te?.node.focus()},End:()=>{const te=y.lastEnabled();te?.node.focus()}}[z.key];W&&(z.preventDefault(),W(z))},[y,v]),I=C.exports.useCallback(()=>{s(v)},[s,v]),N=C.exports.useCallback(function(K={},W=null){return{...K,type:"button",ref:sn(m,u,W),id:p,disabled:!!t,"aria-expanded":!!x,"aria-controls":h,onClick:G1(K.onClick,_),onFocus:G1(K.onFocus,I),onKeyDown:G1(K.onKeyDown,P)}},[p,t,x,_,I,P,h,m]),L=C.exports.useCallback(function(K={},W=null){return{...K,ref:W,role:"region",id:h,"aria-labelledby":p,hidden:!x}},[p,x,h]);return{isOpen:x,isDisabled:t,isFocusable:n,onOpen:w,onClose:b,getButtonProps:N,getPanelProps:L,htmlProps:o}}function _K(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;eg({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function kK(e){eg({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function EK(e){eg({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `})}function PK(e){eg({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function ms(e){const{isOpen:t,isDisabled:n}=yS(),{reduceMotion:r}=bS(),o=pd("chakra-accordion__icon",e.className),i=tg(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return S(ao,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}ms.displayName="AccordionIcon";var gs=ce(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=CK(t),c={...tg().container,overflowAnchor:"none"},f=C.exports.useMemo(()=>s,[s]);return J.createElement(vK,{value:f},J.createElement(ie.div,{ref:n,...i,className:pd("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});gs.displayName="AccordionItem";var vs=ce(function(t,n){const{reduceMotion:r}=bS(),{getPanelProps:o,isOpen:i}=yS(),s=o(t,n),u=pd("chakra-accordion__panel",t.className),c=tg();r||delete s.hidden;const f=J.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:S(jT,{in:i,children:f})});vs.displayName="AccordionPanel";var qT=ce(function({children:t,reduceMotion:n,...r},o){const i=xr("Accordion",r),s=St(r),{htmlProps:u,descendants:c,...f}=SK(s),p=C.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return J.createElement(yK,{value:c},J.createElement(wK,{value:p},J.createElement(gK,{value:i},J.createElement(ie.div,{ref:o,...u,className:pd("chakra-accordion",r.className),__css:i.root},t))))});qT.displayName="Accordion";var AK=(...e)=>e.filter(Boolean).join(" "),TK=od({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ng=ce((e,t)=>{const n=rr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=St(e),f=AK("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${TK} ${i} linear infinite`,...n};return J.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&J.createElement(ie.span,{srOnly:!0},r))});ng.displayName="Spinner";var rg=(...e)=>e.filter(Boolean).join(" ");function IK(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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 OK(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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 vk(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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[RK,MK]=Wt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[NK,xS]=Wt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),KT={info:{icon:OK,colorScheme:"blue"},warning:{icon:vk,colorScheme:"orange"},success:{icon:IK,colorScheme:"green"},error:{icon:vk,colorScheme:"red"},loading:{icon:ng,colorScheme:"blue"}};function LK(e){return KT[e].colorScheme}function DK(e){return KT[e].icon}var YT=ce(function(t,n){const{status:r="info",addRole:o=!0,...i}=St(t),s=t.colorScheme??LK(r),u=xr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return J.createElement(RK,{value:{status:r}},J.createElement(NK,{value:u},J.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:rg("chakra-alert",t.className),__css:c})))});YT.displayName="Alert";var ZT=ce(function(t,n){const r=xS(),o={display:"inline",...r.description};return J.createElement(ie.div,{ref:n,...t,className:rg("chakra-alert__desc",t.className),__css:o})});ZT.displayName="AlertDescription";function XT(e){const{status:t}=MK(),n=DK(t),r=xS(),o=t==="loading"?r.spinner:r.icon;return J.createElement(ie.span,{display:"inherit",...e,className:rg("chakra-alert__icon",e.className),__css:o},e.children||S(n,{h:"100%",w:"100%"}))}XT.displayName="AlertIcon";var QT=ce(function(t,n){const r=xS();return J.createElement(ie.div,{ref:n,...t,className:rg("chakra-alert__title",t.className),__css:r.title})});QT.displayName="AlertTitle";function FK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function $K(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=C.exports.useState("pending");C.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=C.exports.useRef(),m=C.exports.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),u&&(y.sizes=u),t&&(y.loading=t),y.onload=x=>{v(),p("loaded"),o?.(x)},y.onerror=x=>{v(),p("failed"),i?.(x)},h.current=y},[n,s,r,u,o,i,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return $i(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var BK=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",$0=ce(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return S("img",{width:r,height:o,ref:n,alt:i,...s})});$0.displayName="NativeImage";var Df=ce(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:u,fit:c,loading:f,ignoreFallback:p,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...y}=t,x=r!==void 0||o!==void 0,E=f!=null||p||!x,w=$K({...t,ignoreFallback:E}),b=BK(w,m),_={ref:n,objectFit:c,objectPosition:u,...E?y:FK(y,["onError","onLoad"])};return b?o||J.createElement(ie.img,{as:$0,className:"chakra-image__placeholder",src:r,..._}):J.createElement(ie.img,{as:$0,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",..._})});Df.displayName="Image";ce((e,t)=>J.createElement(ie.img,{ref:t,as:$0,className:"chakra-image",...e}));var zK=Object.create,JT=Object.defineProperty,VK=Object.getOwnPropertyDescriptor,eI=Object.getOwnPropertyNames,WK=Object.getPrototypeOf,jK=Object.prototype.hasOwnProperty,tI=(e,t)=>function(){return t||(0,e[eI(e)[0]])((t={exports:{}}).exports,t),t.exports},UK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eI(t))!jK.call(e,o)&&o!==n&&JT(e,o,{get:()=>t[o],enumerable:!(r=VK(t,o))||r.enumerable});return e},HK=(e,t,n)=>(n=e!=null?zK(WK(e)):{},UK(t||!e||!e.__esModule?JT(n,"default",{value:e,enumerable:!0}):n,e)),GK=tI({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=m&&R[m]||R["@@iterator"],typeof R=="function"?R:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function w(R,U,se){this.props=R,this.context=U,this.refs=E,this.updater=se||y}w.prototype.isReactComponent={},w.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,U,"setState")},w.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function b(){}b.prototype=w.prototype;function _(R,U,se){this.props=R,this.context=U,this.refs=E,this.updater=se||y}var P=_.prototype=new b;P.constructor=_,x(P,w.prototype),P.isPureReactComponent=!0;var I=Array.isArray,N=Object.prototype.hasOwnProperty,L={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function K(R,U,se){var ue,he={},me=null,Pe=null;if(U!=null)for(ue in U.ref!==void 0&&(Pe=U.ref),U.key!==void 0&&(me=""+U.key),U)N.call(U,ue)&&!z.hasOwnProperty(ue)&&(he[ue]=U[ue]);var fe=arguments.length-2;if(fe===1)he.children=se;else if(1(0,yk.isValidElement)(t))}/** * @license React * react.development.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. *//** * @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 og=(...e)=>e.filter(Boolean).join(" "),bk=e=>e?"":void 0,[KK,YK]=Wt({strict:!1,name:"ButtonGroupContext"});function Hb(e){const{children:t,className:n,...r}=e,o=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=og("chakra-button__icon",n);return J.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}Hb.displayName="ButtonIcon";function Gb(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=S(ng,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=og("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return J.createElement(ie.div,{className:c,...u,__css:p},o)}Gb.displayName="ButtonSpinner";function ZK(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Ro=ce((e,t)=>{const n=YK(),r=rr("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:y="start",className:x,as:E,...w}=St(e),b=C.exports.useMemo(()=>{const N={...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:N}}},[r,n]),{ref:_,type:P}=ZK(E),I={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return J.createElement(ie.button,{disabled:o||i,ref:lj(t,_),as:E,type:m??P,"data-active":bk(s),"data-loading":bk(i),__css:b,className:og("chakra-button",x),...w},i&&y==="start"&&S(Gb,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||J.createElement(ie.span,{opacity:0},S(xk,{...I})):S(xk,{...I}),i&&y==="end"&&S(Gb,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});Ro.displayName="Button";function xk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ee(Rn,{children:[t&&S(Hb,{marginEnd:o,children:t}),r,n&&S(Hb,{marginStart:o,children:n})]})}var XK=ce(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=og("chakra-button__group",s),m=C.exports.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:f}),[r,o,i,f]);let v={display:"inline-flex"};return c?v={...v,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:v={...v,"& > *:not(style) ~ *:not(style)":{marginStart:u}},J.createElement(KK,{value:m},J.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});XK.displayName="ButtonGroup";var pr=ce((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=C.exports.isValidElement(u)?C.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return S(Ro,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});pr.displayName="IconButton";var Ou=(...e)=>e.filter(Boolean).join(" "),nh=e=>e?"":void 0,q1=e=>e?!0:void 0;function Sk(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[QK,nI]=Wt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[JK,Ru]=Wt({strict:!1,name:"FormControlContext"});function eY(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=C.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=C.exports.useState(!1),[y,x]=C.exports.useState(!1),[E,w]=C.exports.useState(!1),b=C.exports.useCallback((L={},z=null)=>({id:h,...L,ref:sn(z,K=>{!K||x(!0)})}),[h]),_=C.exports.useCallback((L={},z=null)=>({...L,ref:z,"data-focus":nh(E),"data-disabled":nh(o),"data-invalid":nh(r),"data-readonly":nh(i),id:L.id??f,htmlFor:L.htmlFor??c}),[c,o,E,r,i,f]),P=C.exports.useCallback((L={},z=null)=>({id:p,...L,ref:sn(z,K=>{!K||v(!0)}),"aria-live":"polite"}),[p]),I=C.exports.useCallback((L={},z=null)=>({...L,...s,ref:z,role:"group"}),[s]),N=C.exports.useCallback((L={},z=null)=>({...L,ref:z,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:x,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:P,getRootProps:I,getLabelProps:_,getRequiredIndicatorProps:N}}var Bi=ce(function(t,n){const r=xr("Form",t),o=St(t),{getRootProps:i,htmlProps:s,...u}=eY(o),c=Ou("chakra-form-control",t.className);return J.createElement(JK,{value:u},J.createElement(QK,{value:r},J.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});Bi.displayName="FormControl";var tY=ce(function(t,n){const r=Ru(),o=nI(),i=Ou("chakra-form__helper-text",t.className);return J.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});tY.displayName="FormHelperText";function wS(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=CS(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":q1(n),"aria-required":q1(o),"aria-readonly":q1(r)}}function CS(e){const t=Ru(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:u,isReadOnly:c,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&v.push(t.feedbackId),t?.hasHelpText&&v.push(t.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:n??t?.id,isDisabled:r??f??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:u??t?.isInvalid,onFocus:Sk(t?.onFocus,p),onBlur:Sk(t?.onBlur,h)}}var[nY,rY]=Wt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),oY=ce((e,t)=>{const n=xr("FormError",e),r=St(e),o=Ru();return o?.isInvalid?J.createElement(nY,{value:n},J.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:Ou("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});oY.displayName="FormErrorMessage";var iY=ce((e,t)=>{const n=rY(),r=Ru();if(!r?.isInvalid)return null;const o=Ou("chakra-form__error-icon",e.className);return S(ao,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:S("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"})})});iY.displayName="FormErrorIcon";var zi=ce(function(t,n){const r=rr("FormLabel",t),o=St(t),{className:i,children:s,requiredIndicator:u=S(rI,{}),optionalIndicator:c=null,...f}=o,p=Ru(),h=p?.getLabelProps(f,n)??{ref:n,...f};return J.createElement(ie.label,{...h,className:Ou("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});zi.displayName="FormLabel";var rI=ce(function(t,n){const r=Ru(),o=nI();if(!r?.isRequired)return null;const i=Ou("chakra-form__required-indicator",t.className);return J.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});rI.displayName="RequiredIndicator";function B0(e,t){const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var _S={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},aY=ie("span",{baseStyle:_S});aY.displayName="VisuallyHidden";var sY=ie("input",{baseStyle:_S});sY.displayName="VisuallyHiddenInput";var wk=!1,ig=null,vu=!1,qb=new Set,lY=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function uY(e){return!(e.metaKey||!lY&&e.altKey||e.ctrlKey)}function kS(e,t){qb.forEach(n=>n(e,t))}function Ck(e){vu=!0,uY(e)&&(ig="keyboard",kS("keyboard",e))}function xl(e){ig="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(vu=!0,kS("pointer",e))}function cY(e){e.target===window||e.target===document||(vu||(ig="keyboard",kS("keyboard",e)),vu=!1)}function fY(){vu=!1}function _k(){return ig!=="pointer"}function dY(){if(typeof window>"u"||wk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){vu=!0,e.apply(this,n)},document.addEventListener("keydown",Ck,!0),document.addEventListener("keyup",Ck,!0),window.addEventListener("focus",cY,!0),window.addEventListener("blur",fY,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",xl,!0),document.addEventListener("pointermove",xl,!0),document.addEventListener("pointerup",xl,!0)):(document.addEventListener("mousedown",xl,!0),document.addEventListener("mousemove",xl,!0),document.addEventListener("mouseup",xl,!0)),wk=!0}function pY(e){dY(),e(_k());const t=()=>e(_k());return qb.add(t),()=>{qb.delete(t)}}var[wpe,hY]=Wt({name:"CheckboxGroupContext",strict:!1}),mY=(...e)=>e.filter(Boolean).join(" "),Kn=e=>e?"":void 0;function Yr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function gY(...e){return function(n){e.forEach(r=>{r?.(n)})}}function vY(e){const t=so;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var oI=vY(ie.svg);function yY(e){return S(oI,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:S("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function bY(e){return S(oI,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:S("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function xY({open:e,children:t}){return S(Xi,{initial:!1,children:e&&J.createElement(so.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)})}function SY(e){const{isIndeterminate:t,isChecked:n,...r}=e;return S(xY,{open:n||t,children:S(t?bY:yY,{...r})})}function wY(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function iI(e={}){const t=CS(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:y,name:x,value:E,tabIndex:w=void 0,"aria-label":b,"aria-labelledby":_,"aria-invalid":P,...I}=e,N=wY(I,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),L=Vn(v),z=Vn(u),K=Vn(c),[W,te]=C.exports.useState(!1),[be,_e]=C.exports.useState(!1),[ye,Ce]=C.exports.useState(!1),[ae,ke]=C.exports.useState(!1);C.exports.useEffect(()=>pY(te),[]);const j=C.exports.useRef(null),[Y,q]=C.exports.useState(!0),[R,U]=C.exports.useState(!!p),se=h!==void 0,ue=se?h:R,he=C.exports.useCallback(ge=>{if(r||n){ge.preventDefault();return}se||U(ue?ge.target.checked:y?!0:ge.target.checked),L?.(ge)},[r,n,ue,se,y,L]);$i(()=>{j.current&&(j.current.indeterminate=Boolean(y))},[y]),B0(()=>{n&&_e(!1)},[n,_e]),$i(()=>{const ge=j.current;!ge?.form||(ge.form.onreset=()=>{U(!!p)})},[]);const me=n&&!m,Pe=C.exports.useCallback(ge=>{ge.key===" "&&ke(!0)},[ke]),fe=C.exports.useCallback(ge=>{ge.key===" "&&ke(!1)},[ke]);$i(()=>{if(!j.current)return;j.current.checked!==ue&&U(j.current.checked)},[j.current]);const Se=C.exports.useCallback((ge={},Ie=null)=>{const et=De=>{be&&De.preventDefault(),ke(!0)};return{...ge,ref:Ie,"data-active":Kn(ae),"data-hover":Kn(ye),"data-checked":Kn(ue),"data-focus":Kn(be),"data-focus-visible":Kn(be&&W),"data-indeterminate":Kn(y),"data-disabled":Kn(n),"data-invalid":Kn(i),"data-readonly":Kn(r),"aria-hidden":!0,onMouseDown:Yr(ge.onMouseDown,et),onMouseUp:Yr(ge.onMouseUp,()=>ke(!1)),onMouseEnter:Yr(ge.onMouseEnter,()=>Ce(!0)),onMouseLeave:Yr(ge.onMouseLeave,()=>Ce(!1))}},[ae,ue,n,be,W,ye,y,i,r]),Le=C.exports.useCallback((ge={},Ie=null)=>({...N,...ge,ref:sn(Ie,et=>{!et||q(et.tagName==="LABEL")}),onClick:Yr(ge.onClick,()=>{var et;Y||((et=j.current)==null||et.click(),requestAnimationFrame(()=>{var De;(De=j.current)==null||De.focus()}))}),"data-disabled":Kn(n),"data-checked":Kn(ue),"data-invalid":Kn(i)}),[N,n,ue,i,Y]),at=C.exports.useCallback((ge={},Ie=null)=>({...ge,ref:sn(j,Ie),type:"checkbox",name:x,value:E,id:s,tabIndex:w,onChange:Yr(ge.onChange,he),onBlur:Yr(ge.onBlur,z,()=>_e(!1)),onFocus:Yr(ge.onFocus,K,()=>_e(!0)),onKeyDown:Yr(ge.onKeyDown,Pe),onKeyUp:Yr(ge.onKeyUp,fe),required:o,checked:ue,disabled:me,readOnly:r,"aria-label":b,"aria-labelledby":_,"aria-invalid":P?Boolean(P):i,"aria-describedby":f,"aria-disabled":n,style:_S}),[x,E,s,he,z,K,Pe,fe,o,ue,me,r,b,_,P,i,f,n,w]),At=C.exports.useCallback((ge={},Ie=null)=>({...ge,ref:Ie,onMouseDown:Yr(ge.onMouseDown,kk),onTouchStart:Yr(ge.onTouchStart,kk),"data-disabled":Kn(n),"data-checked":Kn(ue),"data-invalid":Kn(i)}),[ue,n,i]);return{state:{isInvalid:i,isFocused:be,isChecked:ue,isActive:ae,isHovered:ye,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Le,getCheckboxProps:Se,getInputProps:at,getLabelProps:At,htmlProps:N}}function kk(e){e.preventDefault(),e.stopPropagation()}var CY=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),_Y=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),kY=ce(function(t,n){const r=hY(),o={...r,...t},i=xr("Checkbox",o),s=St(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=S(SY,{}),isChecked:v,isDisabled:y=r?.isDisabled,onChange:x,inputProps:E,...w}=s;let b=v;r?.value&&s.value&&(b=r.value.includes(s.value));let _=x;r?.onChange&&s.value&&(_=gY(r.onChange,x));const{state:P,getInputProps:I,getCheckboxProps:N,getLabelProps:L,getRootProps:z}=iI({...w,isDisabled:y,isChecked:b,onChange:_}),K=C.exports.useMemo(()=>({opacity:P.isChecked||P.isIndeterminate?1:0,transform:P.isChecked||P.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p,...i.icon}),[p,h,P.isChecked,P.isIndeterminate,i.icon]),W=C.exports.cloneElement(m,{__css:K,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return ee(_Y,{__css:i.container,className:mY("chakra-checkbox",c),...z(),children:[S("input",{className:"chakra-checkbox__input",...I(E,n)}),S(CY,{__css:i.control,className:"chakra-checkbox__control",...N(),children:W}),f&&J.createElement(ie.span,{className:"chakra-checkbox__label",...L(),__css:{marginStart:u,...i.label}},f)]})});kY.displayName="Checkbox";function EY(e){return S(ao,{focusable:"false","aria-hidden":!0,...e,children:S("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 ag=ce(function(t,n){const r=rr("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=St(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return J.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||S(EY,{width:"1em",height:"1em"}))});ag.displayName="CloseButton";function PY(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function aI(e,t){let n=PY(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function Ek(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function AY(e,t,n){return e==null?e:(nr==null?"":K1(r,i,n)??""),m=typeof o<"u",v=m?o:p,y=sI(ga(v),i),x=n??y,E=C.exports.useCallback(W=>{W!==v&&(m||h(W.toString()),f?.(W.toString(),ga(W)))},[f,m,v]),w=C.exports.useCallback(W=>{let te=W;return c&&(te=AY(te,s,u)),aI(te,x)},[x,c,u,s]),b=C.exports.useCallback((W=i)=>{let te;v===""?te=ga(W):te=ga(v)+W,te=w(te),E(te)},[w,i,E,v]),_=C.exports.useCallback((W=i)=>{let te;v===""?te=ga(-W):te=ga(v)-W,te=w(te),E(te)},[w,i,E,v]),P=C.exports.useCallback(()=>{let W;r==null?W="":W=K1(r,i,n)??s,E(W)},[r,n,i,E,s]),I=C.exports.useCallback(W=>{const te=K1(W,i,x)??s;E(te)},[x,i,E,s]),N=ga(v);return{isOutOfRange:N>u||NS(zm,{styles:lI}),OY=()=>S(zm,{styles:` 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%; font-feature-settings: 'kern'; } *, *::before, *::after { border-width: 0; border-style: solid; box-sizing: border-box; } main { display: block; } hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } pre, code, kbd, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } a { background-color: transparent; color: inherit; text-decoration: inherit; } abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } b, strong { font-weight: bold; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } img { border-style: none; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } button, select { text-transform: none; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } fieldset { padding: 0.35em 0.75em 0.625em; } legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } progress { vertical-align: baseline; } textarea { overflow: auto; } [type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } input[type="number"] { -moz-appearance: textfield; } [type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } [type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } details { display: block; } summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } body, blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } button { background: transparent; padding: 0; } fieldset { margin: 0; padding: 0; } ol, ul { margin: 0; padding: 0; } textarea { resize: vertical; } button, [role="button"] { cursor: pointer; } button::-moz-focus-inner { border: 0 !important; } table { border-collapse: collapse; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } button, input, optgroup, select, textarea { padding: 0; line-height: inherit; color: inherit; } img, svg, video, canvas, audio, iframe, embed, object { display: block; } 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; } select::-ms-expand { display: none; } ${lI} `});function Kb(e,t,n,r){const o=Vn(n);return C.exports.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?.removeEventListener(t,o,r)}}var RY=ad?C.exports.useLayoutEffect:C.exports.useEffect;function Yb(e,t=[]){const n=C.exports.useRef(e);return RY(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function ES(e,t,n,r){const o=Yb(t);return C.exports.useEffect(()=>{const i=C0(n)??document;if(!!t)return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r,o,t]),()=>{(C0(n)??document).removeEventListener(e,o,r)}}function MY(e){const{isOpen:t,ref:n}=e,[r,o]=C.exports.useState(t),[i,s]=C.exports.useState(!1);return C.exports.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),ES("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var c;const f=tW(n.current),p=new f.CustomEvent("animationend",{bubbles:!0});(c=n.current)==null||c.dispatchEvent(p)}}}function NY(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function LY(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Zb(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Yb(n),s=Yb(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),[f,p]=NY(r,u),h=LY(o,"disclosure"),m=C.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=C.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),y=C.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:y,isControlled:f,getButtonProps:(x={})=>({...x,"aria-expanded":p,"aria-controls":h,onClick:hW(x.onClick,y)}),getDisclosureProps:(x={})=>({...x,hidden:!p,id:h})}}var uI=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function DY(e){const t=e.current;if(!t)return!1;const n=oW(t);return!n||Gx(t,n)?!1:!!uW(n)}function FY(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;uI(()=>{if(!i||DY(e))return;const s=o?.current||e.current;s&&_0(s,{nextTick:!0})},[i,e,o])}function $Y(e,t,n,r){return ES(MW(t),PW(n,t==="pointerdown"),e,r)}function BY(e){const{ref:t,elements:n,enabled:r}=e,o=LW("Safari");$Y(()=>id(t.current),"pointerdown",s=>{if(!o||!r)return;const u=s.target,f=(n??[t]).some(p=>{const h=i6(p)?p.current:p;return Gx(h,u)});!c6(u)&&f&&(s.preventDefault(),_0(u))})}var zY={preventScroll:!0,shouldFocus:!1};function VY(e,t=zY){const{focusRef:n,preventScroll:r,shouldFocus:o,visible:i}=t,s=i6(e)?e.current:e,u=o&&i,c=C.exports.useCallback(()=>{if(!(!s||!u)&&!Gx(s,document.activeElement))if(n?.current)_0(n.current,{preventScroll:r,nextTick:!0});else{const f=pW(s);f.length>0&&_0(f[0],{preventScroll:r,nextTick:!0})}},[u,r,s,n]);uI(()=>{c()},[c]),ES("transitionend",c,s)}function PS(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var AS=ce(function(t,n){const{htmlSize:r,...o}=t,i=xr("Input",o),s=St(o),u=wS(s),c=Zt("chakra-input",t.className);return J.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});AS.displayName="Input";AS.id="Input";var[WY,cI]=Wt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),jY=ce(function(t,n){const r=xr("Input",t),{children:o,className:i,...s}=St(t),u=Zt("chakra-input__group",i),c={},f=SS(o),p=r.field;f.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(c.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(c.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(c.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const h=f.map(m=>{var v,y;const x=PS({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((y=m.props)==null?void 0:y.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,x):C.exports.cloneElement(m,Object.assign(x,c,m.props))});return J.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},S(WY,{value:r,children:h}))});jY.displayName="InputGroup";var UY={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},HY=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),TS=ce(function(t,n){const{placement:r="left",...o}=t,i=UY[r]??{},s=cI();return S(HY,{ref:n,...o,__css:{...s.addon,...i}})});TS.displayName="InputAddon";var fI=ce(function(t,n){return S(TS,{ref:n,placement:"left",...t,className:Zt("chakra-input__left-addon",t.className)})});fI.displayName="InputLeftAddon";fI.id="InputLeftAddon";var dI=ce(function(t,n){return S(TS,{ref:n,placement:"right",...t,className:Zt("chakra-input__right-addon",t.className)})});dI.displayName="InputRightAddon";dI.id="InputRightAddon";var GY=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),sg=ce(function(t,n){const{placement:r="left",...o}=t,i=cI(),s=i.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:s?.height??s?.h,height:s?.height??s?.h,fontSize:s?.fontSize,...i.element};return S(GY,{ref:n,__css:c,...o})});sg.id="InputElement";sg.displayName="InputElement";var pI=ce(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__left-element",r);return S(sg,{ref:n,placement:"left",className:i,...o})});pI.id="InputLeftElement";pI.displayName="InputLeftElement";var hI=ce(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__right-element",r);return S(sg,{ref:n,placement:"right",className:i,...o})});hI.id="InputRightElement";hI.displayName="InputRightElement";function qY(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ha(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):qY(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var KY=ce(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=C.exports.Children.only(r),u=Zt("chakra-aspect-ratio",o);return J.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Ha(n,c=>`${1/c*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...i},s)});KY.displayName="AspectRatio";var YY=ce(function(t,n){const r=rr("Badge",t),{className:o,...i}=St(t);return J.createElement(ie.span,{ref:n,className:Zt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});YY.displayName="Badge";var Io=ie("div");Io.displayName="Box";var mI=ce(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return S(Io,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});mI.displayName="Square";var ZY=ce(function(t,n){const{size:r,...o}=t;return S(mI,{size:r,ref:n,borderRadius:"9999px",...o})});ZY.displayName="Circle";var Ff=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Ff.displayName="Center";var XY={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};ce(function(t,n){const{axis:r="both",...o}=t;return J.createElement(ie.div,{ref:n,__css:XY[r],...o,position:"absolute"})});var QY=ce(function(t,n){const r=rr("Code",t),{className:o,...i}=St(t);return J.createElement(ie.code,{ref:n,className:Zt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});QY.displayName="Code";var JY=ce(function(t,n){const{className:r,centerContent:o,...i}=St(t),s=rr("Container",t);return J.createElement(ie.div,{ref:n,className:Zt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});JY.displayName="Container";var eZ=ce(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=rr("Divider",t),{className:h,orientation:m="horizontal",__css:v,...y}=St(t),x={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return J.createElement(ie.hr,{ref:n,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:f,borderStyle:c,...x[m],...v},className:Zt("chakra-divider",h)})});eZ.displayName="Divider";var We=ce(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return J.createElement(ie.div,{ref:n,__css:h,...p})});We.displayName="Flex";var IS=ce(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:u,row:c,autoFlow:f,autoRows:p,templateRows:h,autoColumns:m,templateColumns:v,...y}=t,x={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:u,gridRow:c,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return J.createElement(ie.div,{ref:n,__css:x,...y})});IS.displayName="Grid";function Pk(e){return Ha(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var va=ce(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=PS({gridArea:r,gridColumn:Pk(o),gridRow:Pk(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return J.createElement(ie.div,{ref:n,__css:h,...p})});va.displayName="GridItem";var OS=ce(function(t,n){const r=rr("Heading",t),{className:o,...i}=St(t);return J.createElement(ie.h2,{ref:n,className:Zt("chakra-heading",t.className),...i,__css:r})});OS.displayName="Heading";ce(function(t,n){const r=rr("Mark",t),o=St(t);return S(Io,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var tZ=ce(function(t,n){const r=rr("Kbd",t),{className:o,...i}=St(t);return J.createElement(ie.kbd,{ref:n,className:Zt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});tZ.displayName="Kbd";var $f=ce(function(t,n){const r=rr("Link",t),{className:o,isExternal:i,...s}=St(t);return J.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Zt("chakra-link",o),...s,__css:r})});$f.displayName="Link";ce(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return J.createElement(ie.a,{...u,ref:n,className:Zt("chakra-linkbox__overlay",s),rel:r?"noopener noreferrer":i,target:r?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});ce(function(t,n){const{className:r,...o}=t;return J.createElement(ie.div,{ref:n,position:"relative",...o,className:Zt("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[nZ,gI]=Wt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),RS=ce(function(t,n){const r=xr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=St(t),f=SS(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return J.createElement(nZ,{value:r},J.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});RS.displayName="List";var rZ=ce((e,t)=>{const{as:n,...r}=e;return S(RS,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});rZ.displayName="OrderedList";var oZ=ce(function(t,n){const{as:r,...o}=t;return S(RS,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});oZ.displayName="UnorderedList";var iZ=ce(function(t,n){const r=gI();return J.createElement(ie.li,{ref:n,...t,__css:r.item})});iZ.displayName="ListItem";var aZ=ce(function(t,n){const r=gI();return S(ao,{ref:n,role:"presentation",...t,__css:r.icon})});aZ.displayName="ListIcon";var sZ=ce(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=Wm(),p=u?uZ(u,f):cZ(r);return S(IS,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});sZ.displayName="SimpleGrid";function lZ(e){return typeof e=="number"?`${e}px`:e}function uZ(e,t){return Ha(e,n=>{const r=XW("sizes",n,lZ(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function cZ(e){return Ha(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var vI=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});vI.displayName="Spacer";var Xb="& > *:not(style) ~ *:not(style)";function fZ(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[Xb]:Ha(n,o=>r[o])}}function dZ(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{"&":Ha(n,o=>r[o])}}var yI=e=>J.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});yI.displayName="StackItem";var MS=ce((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,v=n?"row":r??"column",y=C.exports.useMemo(()=>fZ({direction:v,spacing:s}),[v,s]),x=C.exports.useMemo(()=>dZ({spacing:s,direction:v}),[s,v]),E=!!f,w=!h&&!E,b=SS(c),_=w?b:b.map((I,N)=>{const L=typeof I.key<"u"?I.key:N,z=N+1===b.length,W=h?S(yI,{children:I},L):I;if(!E)return W;const te=C.exports.cloneElement(f,{__css:x}),be=z?null:te;return ee(C.exports.Fragment,{children:[W,be]},L)}),P=Zt("chakra-stack",p);return J.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y.flexDirection,flexWrap:u,className:P,__css:E?{}:{[Xb]:y[Xb]},...m},_)});MS.displayName="Stack";var Xc=ce((e,t)=>S(MS,{align:"center",...e,direction:"row",ref:t}));Xc.displayName="HStack";var pZ=ce((e,t)=>S(MS,{align:"center",...e,direction:"column",ref:t}));pZ.displayName="VStack";var Kt=ce(function(t,n){const r=rr("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=St(t),f=PS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return J.createElement(ie.p,{ref:n,className:Zt("chakra-text",t.className),...f,...c,__css:r})});Kt.displayName="Text";function Ak(e){return typeof e=="number"?`${e}px`:e}var hZ=ce(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:u,direction:c,align:f,className:p,shouldWrapChildren:h,...m}=t,v=C.exports.useMemo(()=>{const{spacingX:x=r,spacingY:E=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":w=>Ha(x,b=>Ak(pb("space",b)(w))),"--chakra-wrap-y-spacing":w=>Ha(E,b=>Ak(pb("space",b)(w))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:f,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,i,u,f,c]),y=h?C.exports.Children.map(s,(x,E)=>S(bI,{children:x},E)):s;return J.createElement(ie.div,{ref:n,className:Zt("chakra-wrap",p),overflow:"hidden",...m},J.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},y))});hZ.displayName="Wrap";var bI=ce(function(t,n){const{className:r,...o}=t;return J.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Zt("chakra-wrap__listitem",r),...o})});bI.displayName="WrapItem";var mZ={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},xI=mZ,Sl=()=>{},gZ={document:xI,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Sl,removeEventListener:Sl,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Sl,removeListener:Sl}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:Sl,setInterval:()=>0,clearInterval:Sl},vZ=gZ,yZ={window:vZ,document:xI},SI=typeof window<"u"?{window,document}:yZ,wI=C.exports.createContext(SI);wI.displayName="EnvironmentContext";function CI(e){const{children:t,environment:n}=e,[r,o]=C.exports.useState(null),[i,s]=C.exports.useState(!1);C.exports.useEffect(()=>s(!0),[]);const u=C.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:SI},[r,n]);return ee(wI.Provider,{value:u,children:[t,!n&&i&&S("span",{id:"__chakra_env",hidden:!0,ref:c=>{C.exports.startTransition(()=>{c&&o(c)})}})]})}CI.displayName="EnvironmentProvider";function bZ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function xZ(e){if(!bZ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var SZ=e=>e.hasAttribute("tabindex");function wZ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function _I(e){return e.parentElement&&_I(e.parentElement)?!0:e.hidden}function CZ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function _Z(e){if(!xZ(e)||_I(e)||wZ(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]():CZ(e)?!0:SZ(e)}var kZ=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],EZ=kZ.join(),PZ=e=>e.offsetWidth>0&&e.offsetHeight>0;function AZ(e){const t=Array.from(e.querySelectorAll(EZ));return t.unshift(e),t.filter(n=>_Z(n)&&PZ(n))}var vr="top",oo="bottom",io="right",yr="left",NS="auto",hd=[vr,oo,io,yr],yu="start",Bf="end",TZ="clippingParents",kI="viewport",Sc="popper",IZ="reference",Tk=hd.reduce(function(e,t){return e.concat([t+"-"+yu,t+"-"+Bf])},[]),EI=[].concat(hd,[NS]).reduce(function(e,t){return e.concat([t,t+"-"+yu,t+"-"+Bf])},[]),OZ="beforeRead",RZ="read",MZ="afterRead",NZ="beforeMain",LZ="main",DZ="afterMain",FZ="beforeWrite",$Z="write",BZ="afterWrite",zZ=[OZ,RZ,MZ,NZ,LZ,DZ,FZ,$Z,BZ];function si(e){return e?(e.nodeName||"").toLowerCase():null}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function to(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function LS(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VZ(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];!to(i)||!si(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function WZ(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]),u=s.reduce(function(c,f){return c[f]="",c},{});!to(o)||!si(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const jZ={name:"applyStyles",enabled:!0,phase:"write",fn:VZ,effect:WZ,requires:["computeStyles"]};function ni(e){return e.split("-")[0]}var Rs=Math.max,z0=Math.min,bu=Math.round;function Qb(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function PI(){return!/^((?!chrome|android).)*safari/i.test(Qb())}function xu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&to(e)&&(o=e.offsetWidth>0&&bu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&bu(r.height)/e.offsetHeight||1);var s=zs(e)?lo(e):window,u=s.visualViewport,c=!PI()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function DS(e){var t=xu(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 AI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&LS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qi(e){return lo(e).getComputedStyle(e)}function UZ(e){return["table","td","th"].indexOf(si(e))>=0}function Ja(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function lg(e){return si(e)==="html"?e:e.assignedSlot||e.parentNode||(LS(e)?e.host:null)||Ja(e)}function Ik(e){return!to(e)||qi(e).position==="fixed"?null:e.offsetParent}function HZ(e){var t=/firefox/i.test(Qb()),n=/Trident/i.test(Qb());if(n&&to(e)){var r=qi(e);if(r.position==="fixed")return null}var o=lg(e);for(LS(o)&&(o=o.host);to(o)&&["html","body"].indexOf(si(o))<0;){var i=qi(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 md(e){for(var t=lo(e),n=Ik(e);n&&UZ(n)&&qi(n).position==="static";)n=Ik(n);return n&&(si(n)==="html"||si(n)==="body"&&qi(n).position==="static")?t:n||HZ(e)||t}function FS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qc(e,t,n){return Rs(e,z0(t,n))}function GZ(e,t,n){var r=Qc(e,t,n);return r>n?n:r}function TI(){return{top:0,right:0,bottom:0,left:0}}function II(e){return Object.assign({},TI(),e)}function OI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var qZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,II(typeof t!="number"?t:OI(t,hd))};function KZ(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=ni(n.placement),c=FS(u),f=[yr,io].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=qZ(o.padding,n),m=DS(i),v=c==="y"?vr:yr,y=c==="y"?oo:io,x=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],E=s[c]-n.rects.reference[c],w=md(i),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,_=x/2-E/2,P=h[v],I=b-m[p]-h[y],N=b/2-m[p]/2+_,L=Qc(P,N,I),z=c;n.modifiersData[r]=(t={},t[z]=L,t.centerOffset=L-N,t)}}function YZ(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)||!AI(t.elements.popper,o)||(t.elements.arrow=o))}const ZZ={name:"arrow",enabled:!0,phase:"main",fn:KZ,effect:YZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var XZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QZ(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:bu(t*o)/o||0,y:bu(n*o)/o||0}}function Ok(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,x=y===void 0?0:y,E=typeof p=="function"?p({x:v,y:x}):{x:v,y:x};v=E.x,x=E.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),_=yr,P=vr,I=window;if(f){var N=md(n),L="clientHeight",z="clientWidth";if(N===lo(n)&&(N=Ja(n),qi(N).position!=="static"&&u==="absolute"&&(L="scrollHeight",z="scrollWidth")),N=N,o===vr||(o===yr||o===io)&&i===Bf){P=oo;var K=h&&N===I&&I.visualViewport?I.visualViewport.height:N[L];x-=K-r.height,x*=c?1:-1}if(o===yr||(o===vr||o===oo)&&i===Bf){_=io;var W=h&&N===I&&I.visualViewport?I.visualViewport.width:N[z];v-=W-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&XZ),be=p===!0?QZ({x:v,y:x}):{x:v,y:x};if(v=be.x,x=be.y,c){var _e;return Object.assign({},te,(_e={},_e[P]=b?"0":"",_e[_]=w?"0":"",_e.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",_e))}return Object.assign({},te,(t={},t[P]=b?x+"px":"",t[_]=w?v+"px":"",t.transform="",t))}function JZ(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,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:ni(t.placement),variation:Su(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,Ok(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ok(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JZ,data:{}};var rh={passive:!0};function tX(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,rh)}),u&&c.addEventListener("resize",n.update,rh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,rh)}),u&&c.removeEventListener("resize",n.update,rh)}}const nX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tX,data:{}};var rX={left:"right",right:"left",bottom:"top",top:"bottom"};function Fh(e){return e.replace(/left|right|bottom|top/g,function(t){return rX[t]})}var oX={start:"end",end:"start"};function Rk(e){return e.replace(/start|end/g,function(t){return oX[t]})}function $S(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BS(e){return xu(Ja(e)).left+$S(e).scrollLeft}function iX(e,t){var n=lo(e),r=Ja(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=PI();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+BS(e),y:c}}function aX(e){var t,n=Ja(e),r=$S(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Rs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Rs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+BS(e),c=-r.scrollTop;return qi(o||n).direction==="rtl"&&(u+=Rs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function zS(e){var t=qi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function RI(e){return["html","body","#document"].indexOf(si(e))>=0?e.ownerDocument.body:to(e)&&zS(e)?e:RI(lg(e))}function Jc(e,t){var n;t===void 0&&(t=[]);var r=RI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=lo(r),s=o?[i].concat(i.visualViewport||[],zS(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(Jc(lg(s)))}function Jb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sX(e,t){var n=xu(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 Mk(e,t,n){return t===kI?Jb(iX(e,n)):zs(t)?sX(t,n):Jb(aX(Ja(e)))}function lX(e){var t=Jc(lg(e)),n=["absolute","fixed"].indexOf(qi(e).position)>=0,r=n&&to(e)?md(e):e;return zs(r)?t.filter(function(o){return zs(o)&&AI(o,r)&&si(o)!=="body"}):[]}function uX(e,t,n,r){var o=t==="clippingParents"?lX(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=Mk(e,f,r);return c.top=Rs(p.top,c.top),c.right=z0(p.right,c.right),c.bottom=z0(p.bottom,c.bottom),c.left=Rs(p.left,c.left),c},Mk(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function MI(e){var t=e.reference,n=e.element,r=e.placement,o=r?ni(r):null,i=r?Su(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case vr:c={x:s,y:t.y-n.height};break;case oo:c={x:s,y:t.y+t.height};break;case io:c={x:t.x+t.width,y:u};break;case yr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?FS(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case yu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Bf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function zf(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,u=n.boundary,c=u===void 0?TZ:u,f=n.rootBoundary,p=f===void 0?kI:f,h=n.elementContext,m=h===void 0?Sc:h,v=n.altBoundary,y=v===void 0?!1:v,x=n.padding,E=x===void 0?0:x,w=II(typeof E!="number"?E:OI(E,hd)),b=m===Sc?IZ:Sc,_=e.rects.popper,P=e.elements[y?b:m],I=uX(zs(P)?P:P.contextElement||Ja(e.elements.popper),c,p,s),N=xu(e.elements.reference),L=MI({reference:N,element:_,strategy:"absolute",placement:o}),z=Jb(Object.assign({},_,L)),K=m===Sc?z:N,W={top:I.top-K.top+w.top,bottom:K.bottom-I.bottom+w.bottom,left:I.left-K.left+w.left,right:K.right-I.right+w.right},te=e.modifiersData.offset;if(m===Sc&&te){var be=te[o];Object.keys(W).forEach(function(_e){var ye=[io,oo].indexOf(_e)>=0?1:-1,Ce=[vr,oo].indexOf(_e)>=0?"y":"x";W[_e]+=be[Ce]*ye})}return W}function cX(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?EI:c,p=Su(r),h=p?u?Tk:Tk.filter(function(y){return Su(y)===p}):hd,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var v=m.reduce(function(y,x){return y[x]=zf(e,{placement:x,boundary:o,rootBoundary:i,padding:s})[ni(x)],y},{});return Object.keys(v).sort(function(y,x){return v[y]-v[x]})}function fX(e){if(ni(e)===NS)return[];var t=Fh(e);return[Rk(e),t,Rk(t)]}function dX(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,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,x=n.allowedAutoPlacements,E=t.options.placement,w=ni(E),b=w===E,_=c||(b||!y?[Fh(E)]:fX(E)),P=[E].concat(_).reduce(function(ue,he){return ue.concat(ni(he)===NS?cX(t,{placement:he,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:x}):he)},[]),I=t.rects.reference,N=t.rects.popper,L=new Map,z=!0,K=P[0],W=0;W=0,Ce=ye?"width":"height",ae=zf(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),ke=ye?_e?io:yr:_e?oo:vr;I[Ce]>N[Ce]&&(ke=Fh(ke));var j=Fh(ke),Y=[];if(i&&Y.push(ae[be]<=0),u&&Y.push(ae[ke]<=0,ae[j]<=0),Y.every(function(ue){return ue})){K=te,z=!1;break}L.set(te,Y)}if(z)for(var q=y?3:1,R=function(he){var me=P.find(function(Pe){var fe=L.get(Pe);if(fe)return fe.slice(0,he).every(function(Se){return Se})});if(me)return K=me,"break"},U=q;U>0;U--){var se=R(U);if(se==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const pX={name:"flip",enabled:!0,phase:"main",fn:dX,requiresIfExists:["offset"],data:{_skip:!1}};function Nk(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 Lk(e){return[vr,io,oo,yr].some(function(t){return e[t]>=0})}function hX(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=zf(t,{elementContext:"reference"}),u=zf(t,{altBoundary:!0}),c=Nk(s,r),f=Nk(u,o,i),p=Lk(c),h=Lk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const mX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hX};function gX(e,t,n){var r=ni(e),o=[yr,vr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[yr,io].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function vX(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=EI.reduce(function(p,h){return p[h]=gX(h,t.rects,i),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const yX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vX};function bX(e){var t=e.state,n=e.name;t.modifiersData[n]=MI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xX={name:"popperOffsets",enabled:!0,phase:"read",fn:bX,data:{}};function SX(e){return e==="x"?"y":"x"}function wX(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,x=y===void 0?0:y,E=zf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),w=ni(t.placement),b=Su(t.placement),_=!b,P=FS(w),I=SX(P),N=t.modifiersData.popperOffsets,L=t.rects.reference,z=t.rects.popper,K=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(!!N){if(i){var _e,ye=P==="y"?vr:yr,Ce=P==="y"?oo:io,ae=P==="y"?"height":"width",ke=N[P],j=ke+E[ye],Y=ke-E[Ce],q=v?-z[ae]/2:0,R=b===yu?L[ae]:z[ae],U=b===yu?-z[ae]:-L[ae],se=t.elements.arrow,ue=v&&se?DS(se):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TI(),me=he[ye],Pe=he[Ce],fe=Qc(0,L[ae],ue[ae]),Se=_?L[ae]/2-q-fe-me-W.mainAxis:R-fe-me-W.mainAxis,Le=_?-L[ae]/2+q+fe+Pe+W.mainAxis:U+fe+Pe+W.mainAxis,at=t.elements.arrow&&md(t.elements.arrow),At=at?P==="y"?at.clientTop||0:at.clientLeft||0:0,hn=(_e=te?.[P])!=null?_e:0,ge=ke+Se-hn-At,Ie=ke+Le-hn,et=Qc(v?z0(j,ge):j,ke,v?Rs(Y,Ie):Y);N[P]=et,be[P]=et-ke}if(u){var De,Dt=P==="x"?vr:yr,mn=P==="x"?oo:io,st=N[I],wt=I==="y"?"height":"width",Xt=st+E[Dt],Ut=st-E[mn],de=[vr,yr].indexOf(w)!==-1,Ee=(De=te?.[I])!=null?De:0,ft=de?Xt:st-L[wt]-z[wt]-Ee+W.altAxis,lt=de?st+L[wt]+z[wt]-Ee-W.altAxis:Ut,re=v&&de?GZ(ft,st,lt):Qc(v?ft:Xt,st,v?lt:Ut);N[I]=re,be[I]=re-st}t.modifiersData[r]=be}}const CX={name:"preventOverflow",enabled:!0,phase:"main",fn:wX,requiresIfExists:["offset"]};function _X(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kX(e){return e===lo(e)||!to(e)?$S(e):_X(e)}function EX(e){var t=e.getBoundingClientRect(),n=bu(t.width)/e.offsetWidth||1,r=bu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function PX(e,t,n){n===void 0&&(n=!1);var r=to(t),o=to(t)&&EX(t),i=Ja(t),s=xu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((si(t)!=="body"||zS(i))&&(u=kX(t)),to(t)?(c=xu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=BS(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function AX(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(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function TX(e){var t=AX(e);return zZ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function IX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function OX(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 Dk={placement:"bottom",modifiers:[],strategy:"absolute"};function Fk(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),on={arrowShadowColor:wl("--popper-arrow-shadow-color"),arrowSize:wl("--popper-arrow-size","8px"),arrowSizeHalf:wl("--popper-arrow-size-half"),arrowBg:wl("--popper-arrow-bg"),transformOrigin:wl("--popper-transform-origin"),arrowOffset:wl("--popper-arrow-offset")};function LX(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var DX={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"},FX=e=>DX[e],$k={scroll:!0,resize:!0};function $X(e){let t;return typeof e=="object"?t={enabled:!0,options:{...$k,...e}}:t={enabled:e,options:$k},t}var BX={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`}},zX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Bk(e)},effect:({state:e})=>()=>{Bk(e)}},Bk=e=>{e.elements.popper.style.setProperty(on.transformOrigin.var,FX(e.placement))},VX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{WX(e)}},WX=e=>{var t;if(!e.placement)return;const n=jX(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:on.arrowSize.varRef,height:on.arrowSize.varRef,zIndex:-1});const r={[on.arrowSizeHalf.var]:`calc(${on.arrowSize.varRef} / 2)`,[on.arrowOffset.var]:`calc(${on.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},jX=e=>{if(e.startsWith("top"))return{property:"bottom",value:on.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:on.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:on.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:on.arrowOffset.varRef}},UX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{zk(e)},effect:({state:e})=>()=>{zk(e)}},zk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:on.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:LX(e.placement)})},HX={"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"}},GX={"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 qX(e,t="ltr"){var n;const r=((n=HX[e])==null?void 0:n[t])||e;return t==="ltr"?r:GX[e]??r}function NI(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:h=!0,matchWidth:m,direction:v="ltr"}=e,y=C.exports.useRef(null),x=C.exports.useRef(null),E=C.exports.useRef(null),w=qX(r,v),b=C.exports.useRef(()=>{}),_=C.exports.useCallback(()=>{var W;!t||!y.current||!x.current||((W=b.current)==null||W.call(b),E.current=NX(y.current,x.current,{placement:w,modifiers:[UX,VX,zX,{...BX,enabled:!!m},{name:"eventListeners",...$X(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:o}),E.current.forceUpdate(),b.current=E.current.destroy)},[w,t,n,m,s,i,u,c,f,h,p,o]);C.exports.useEffect(()=>()=>{var W;!y.current&&!x.current&&((W=E.current)==null||W.destroy(),E.current=null)},[]);const P=C.exports.useCallback(W=>{y.current=W,_()},[_]),I=C.exports.useCallback((W={},te=null)=>({...W,ref:sn(P,te)}),[P]),N=C.exports.useCallback(W=>{x.current=W,_()},[_]),L=C.exports.useCallback((W={},te=null)=>({...W,ref:sn(N,te),style:{...W.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,m]),z=C.exports.useCallback((W={},te=null)=>{const{size:be,shadowColor:_e,bg:ye,style:Ce,...ae}=W;return{...ae,ref:te,"data-popper-arrow":"",style:KX(W)}},[]),K=C.exports.useCallback((W={},te=null)=>({...W,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var W;(W=E.current)==null||W.update()},forceUpdate(){var W;(W=E.current)==null||W.forceUpdate()},transformOrigin:on.transformOrigin.varRef,referenceRef:P,popperRef:N,getPopperProps:L,getArrowProps:z,getArrowInnerProps:K,getReferenceProps:I}}function KX(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 LI(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Vn(n),s=Vn(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${C.exports.useId()}`,m=C.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=C.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),y=C.exports.useCallback(()=>{f?m():v()},[f,v,m]);function x(w={}){return{...w,"aria-expanded":f,"aria-controls":h,onClick(b){var _;(_=w.onClick)==null||_.call(w,b),y()}}}function E(w={}){return{...w,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:y,isControlled:p,getButtonProps:x,getDisclosureProps:E}}function YX(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[ZX,XX]=Wt({strict:!1,name:"PortalManagerContext"});function DI(e){const{children:t,zIndex:n}=e;return S(ZX,{value:{zIndex:n},children:t})}DI.displayName="PortalManager";var[FI,QX]=Wt({strict:!1,name:"PortalContext"}),VS="chakra-portal",JX=".chakra-portal",eQ=e=>S("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),tQ=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=C.exports.useState(null),i=C.exports.useRef(null),[,s]=C.exports.useState({});C.exports.useEffect(()=>s({}),[]);const u=QX(),c=XX();$i(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;i.current=p.createElement("div"),i.current.className=VS,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?S(eQ,{zIndex:c?.zIndex,children:n}):n;return i.current?Qf.exports.createPortal(S(FI,{value:i.current,children:f}),i.current):S("span",{ref:p=>{p&&o(p)}})},nQ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=C.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=VS),c},[o]),[,u]=C.exports.useState({});return $i(()=>u({}),[]),$i(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Qf.exports.createPortal(S(FI,{value:r?s:null,children:t}),s):null};function Gs(e){const{containerRef:t,...n}=e;return t?S(nQ,{containerRef:t,...n}):S(tQ,{...n})}Gs.defaultProps={appendToParentPortal:!0};Gs.className=VS;Gs.selector=JX;Gs.displayName="Portal";var rQ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cl=new WeakMap,oh=new WeakMap,ih={},Y1=0,oQ=function(e,t,n,r){var o=Array.isArray(e)?e:[e];ih[n]||(ih[n]=new WeakMap);var i=ih[n],s=[],u=new Set,c=new Set(o),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else{var v=m.getAttribute(r),y=v!==null&&v!=="false",x=(Cl.get(m)||0)+1,E=(i.get(m)||0)+1;Cl.set(m,x),i.set(m,E),s.push(m),x===1&&y&&oh.set(m,!0),E===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}})};return p(t),u.clear(),Y1++,function(){s.forEach(function(h){var m=Cl.get(h)-1,v=i.get(h)-1;Cl.set(h,m),i.set(h,v),m||(oh.has(h)||h.removeAttribute(r),oh.delete(h)),v||h.removeAttribute(n)}),Y1--,Y1||(Cl=new WeakMap,Cl=new WeakMap,oh=new WeakMap,ih={})}},iQ=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||rQ(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),oQ(r,o,n,"aria-hidden")):function(){return null}};function aQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var bt={exports:{}},sQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lQ=sQ,uQ=lQ;function $I(){}function BI(){}BI.resetWarningCache=$I;var cQ=function(){function e(r,o,i,s,u,c){if(c!==uQ){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BI,resetWarningCache:$I};return n.PropTypes=n,n};bt.exports=cQ();var e2="data-focus-lock",zI="data-focus-lock-disabled",fQ="data-no-focus-lock",dQ="data-autofocus-inside",pQ="data-no-autofocus";function hQ(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mQ(e,t){var n=C.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function VI(e,t){return mQ(t||null,function(n){return e.forEach(function(r){return hQ(r,n)})})}var Z1={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function WI(e){return e}function jI(e,t){t===void 0&&(t=WI);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(i),s=n}var c=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function WS(e,t){return t===void 0&&(t=WI),jI(e,t)}function UI(e){e===void 0&&(e={});var t=jI(null);return t.options=qo({async:!0,ssr:!1},e),t}var HI=function(e){var t=e.sideCar,n=Km(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S(r,{...qo({},n)})};HI.isSideCarExport=!0;function gQ(e,t){return e.useMedium(t),HI}var GI=WS({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),qI=WS(),vQ=WS(),yQ=UI({async:!0}),bQ=[],jS=C.exports.forwardRef(function(t,n){var r,o=C.exports.useState(),i=o[0],s=o[1],u=C.exports.useRef(),c=C.exports.useRef(!1),f=C.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var E=t.group,w=t.className,b=t.whiteList,_=t.hasPositiveIndices,P=t.shards,I=P===void 0?bQ:P,N=t.as,L=N===void 0?"div":N,z=t.lockProps,K=z===void 0?{}:z,W=t.sideCar,te=t.returnFocus,be=t.focusOptions,_e=t.onActivation,ye=t.onDeactivation,Ce=C.exports.useState({}),ae=Ce[0],ke=C.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&_e&&_e(u.current),c.current=!0},[_e]),j=C.exports.useCallback(function(){c.current=!1,ye&&ye(u.current)},[ye]);C.exports.useEffect(function(){h||(f.current=null)},[]);var Y=C.exports.useCallback(function(Pe){var fe=f.current;if(fe&&fe.focus){var Se=typeof te=="function"?te(fe):te;if(Se){var Le=typeof Se=="object"?Se:void 0;f.current=null,Pe?Promise.resolve().then(function(){return fe.focus(Le)}):fe.focus(Le)}}},[te]),q=C.exports.useCallback(function(Pe){c.current&&GI.useMedium(Pe)},[]),R=qI.useMedium,U=C.exports.useCallback(function(Pe){u.current!==Pe&&(u.current=Pe,s(Pe))},[]),se=kf((r={},r[zI]=h&&"disabled",r[e2]=E,r),K),ue=m!==!0,he=ue&&m!=="tail",me=VI([n,U]);return ee(Rn,{children:[ue&&[S("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Z1},"guard-first"),_?S("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:Z1},"guard-nearest"):null],!h&&S(W,{id:ae,sideCar:yQ,observed:i,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:x,whiteList:b,shards:I,onActivation:ke,onDeactivation:j,returnFocus:Y,focusOptions:be}),S(L,{ref:me,...se,className:w,onBlur:R,onFocus:q,children:p}),he&&S("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Z1})]})});jS.propTypes={};jS.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const KI=jS;function t2(e,t){return t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},t2(e,t)}function xQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,t2(e,t)}function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SQ(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],s;function u(){s=e(i.map(function(f){return f.props})),t(s)}var c=function(f){xQ(p,f);function p(){return f.apply(this,arguments)||this}p.peek=function(){return s};var h=p.prototype;return h.componentDidMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},h.render=function(){return S(o,{...this.props})},p}(C.exports.PureComponent);return YI(c,"displayName","SideEffect("+n(o)+")"),c}}var ui=function(e){for(var t=Array(e.length),n=0;n=0}).sort(TQ)},IQ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],HS=IQ.join(","),OQ="".concat(HS,", [data-focus-guard]"),oO=function(e,t){var n;return ui(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?OQ:HS)?[o]:[],oO(o))},[])},GS=function(e,t){return e.reduce(function(n,r){return n.concat(oO(r,t),r.parentNode?ui(r.parentNode.querySelectorAll(HS)).filter(function(o){return o===r}):[])},[])},RQ=function(e){var t=e.querySelectorAll("[".concat(dQ,"]"));return ui(t).map(function(n){return GS([n])}).reduce(function(n,r){return n.concat(r)},[])},qS=function(e,t){return ui(e).filter(function(n){return QI(t,n)}).filter(function(n){return EQ(n)})},Vk=function(e,t){return t===void 0&&(t=new Map),ui(e).filter(function(n){return JI(t,n)})},r2=function(e,t,n){return rO(qS(GS(e,n),t),!0,n)},Wk=function(e,t){return rO(qS(GS(e),t),!1)},MQ=function(e,t){return qS(RQ(e),t)},Vf=function(e,t){return(e.shadowRoot?Vf(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||ui(e.children).some(function(n){return Vf(n,t)})},NQ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},iO=function(e){return e.parentNode?iO(e.parentNode):e},KS=function(e){var t=n2(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(e2);return n.push.apply(n,o?NQ(ui(iO(r).querySelectorAll("[".concat(e2,'="').concat(o,'"]:not([').concat(zI,'="disabled"])')))):[r]),n},[])},aO=function(e){return e.activeElement?e.activeElement.shadowRoot?aO(e.activeElement.shadowRoot):e.activeElement:void 0},YS=function(){return document.activeElement?document.activeElement.shadowRoot?aO(document.activeElement.shadowRoot):document.activeElement:void 0},LQ=function(e){return e===document.activeElement},DQ=function(e){return Boolean(ui(e.querySelectorAll("iframe")).some(function(t){return LQ(t)}))},sO=function(e){var t=document&&YS();return!t||t.dataset&&t.dataset.focusGuard?!1:KS(e).some(function(n){return Vf(n,t)||DQ(n)})},FQ=function(){var e=document&&YS();return e?ui(document.querySelectorAll("[".concat(fQ,"]"))).some(function(t){return Vf(t,e)}):!1},$Q=function(e,t){return t.filter(nO).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},ZS=function(e,t){return nO(e)&&e.name?$Q(e,t):e},BQ=function(e){var t=new Set;return e.forEach(function(n){return t.add(ZS(n,e))}),e.filter(function(n){return t.has(n)})},jk=function(e){return e[0]&&e.length>1?ZS(e[0],e):e[0]},Uk=function(e,t){return e.length>1?e.indexOf(ZS(e[t],e)):t},lO="NEW_FOCUS",zQ=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=US(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,h=c-f,m=t.indexOf(i),v=t.indexOf(s),y=BQ(t),x=n!==void 0?y.indexOf(n):-1,E=x-(r?y.indexOf(r):c),w=Uk(e,0),b=Uk(e,o-1);if(c===-1||p===-1)return lO;if(!h&&p>=0)return p;if(c<=m&&u&&Math.abs(h)>1)return b;if(c>=v&&u&&Math.abs(h)>1)return w;if(h&&Math.abs(E)>1)return p;if(c<=m)return b;if(c>v)return w;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},o2=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&o2(e.parentNode.host||e.parentNode,t),t},X1=function(e,t){for(var n=o2(e),r=o2(t),o=0;o=0)return i}return!1},uO=function(e,t,n){var r=n2(e),o=n2(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=X1(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=X1(i,c);f&&(!s||Vf(f,s)?s=f:s=X1(f,s))})}),s},VQ=function(e,t){return e.reduce(function(n,r){return n.concat(MQ(r,t))},[])},WQ=function(e){return function(t){var n;return t.autofocus||!!(!((n=eO(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},jQ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(AQ)},UQ=function(e,t){var n=document&&YS(),r=KS(e).filter(V0),o=uO(n||e,e,r),i=new Map,s=Wk(r,i),u=r2(r,i).filter(function(v){var y=v.node;return V0(y)});if(!(!u[0]&&(u=s,!u[0]))){var c=Wk([o],i).map(function(v){var y=v.node;return y}),f=jQ(c,u),p=f.map(function(v){var y=v.node;return y}),h=zQ(p,c,n,t);if(h===lO){var m=Vk(s.map(function(v){var y=v.node;return y})).filter(WQ(VQ(r,i)));return{node:m&&m.length?jk(m):jk(Vk(p))}}return h===void 0?h:f[h]}},HQ=function(e){var t=KS(e).filter(V0),n=uO(e,e,t),r=new Map,o=r2([n],r,!0),i=r2(t,r).filter(function(s){var u=s.node;return V0(u)}).map(function(s){var u=s.node;return u});return o.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:US(u)}})},GQ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Q1=0,J1=!1,qQ=function(e,t,n){n===void 0&&(n={});var r=UQ(e,t);if(!J1&&r){if(Q1>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),J1=!0,setTimeout(function(){J1=!1},1);return}Q1++,GQ(r.node,n.focusOptions),Q1--}};const cO=qQ;function fO(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var KQ=function(){return document&&document.activeElement===document.body},YQ=function(){return KQ()||FQ()},ru=null,Gl=null,ou=null,Wf=!1,ZQ=function(){return!0},XQ=function(t){return(ru.whiteList||ZQ)(t)},QQ=function(t,n){ou={observerNode:t,portaledElement:n}},JQ=function(t){return ou&&ou.portaledElement===t};function Hk(e,t,n,r){var o=null,i=e;do{var s=r[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var eJ=function(t){return t&&"current"in t?t.current:t},tJ=function(t){return t?Boolean(Wf):Wf==="meanwhile"},nJ=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},rJ=function(t,n){return n.some(function(r){return nJ(t,r,r)})},W0=function(){var t=!1;if(ru){var n=ru,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||ou&&ou.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(eJ).filter(Boolean));if((!p||XQ(p))&&(o||tJ(u)||!YQ()||!Gl&&i)&&(f&&!(sO(h)||p&&rJ(p,h)||JQ(p))&&(document&&!Gl&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=cO(h,Gl,{focusOptions:c}),ou={})),Wf=!1,Gl=document&&document.activeElement),document){var m=document&&document.activeElement,v=HQ(h),y=v.map(function(x){var E=x.node;return E}).indexOf(m);y>-1&&(v.filter(function(x){var E=x.guard,w=x.node;return E&&w.dataset.focusAutoGuard}).forEach(function(x){var E=x.node;return E.removeAttribute("tabIndex")}),Hk(y,v.length,1,v),Hk(y,-1,-1,v))}}}return t},dO=function(t){W0()&&t&&(t.stopPropagation(),t.preventDefault())},XS=function(){return fO(W0)},oJ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||QQ(r,n)},iJ=function(){return null},pO=function(){Wf="just",setTimeout(function(){Wf="meanwhile"},0)},aJ=function(){document.addEventListener("focusin",dO),document.addEventListener("focusout",XS),window.addEventListener("blur",pO)},sJ=function(){document.removeEventListener("focusin",dO),document.removeEventListener("focusout",XS),window.removeEventListener("blur",pO)};function lJ(e){return e.filter(function(t){var n=t.disabled;return!n})}function uJ(e){var t=e.slice(-1)[0];t&&!ru&&aJ();var n=ru,r=n&&t&&t.id===n.id;ru=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Gl=null,(!r||n.observed!==t.observed)&&t.onActivation(),W0(),fO(W0)):(sJ(),Gl=null)}GI.assignSyncMedium(oJ);qI.assignMedium(XS);vQ.assignMedium(function(e){return e({moveFocusInside:cO,focusInside:sO})});const cJ=SQ(lJ,uJ)(iJ);var hO=C.exports.forwardRef(function(t,n){return S(KI,{sideCar:cJ,ref:n,...t})}),mO=KI.propTypes||{};mO.sideCar;aQ(mO,["sideCar"]);hO.propTypes={};const fJ=hO;var gO=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=C.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&AZ(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=C.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return S(fJ,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};gO.displayName="FocusLock";var $h="right-scroll-bar-position",Bh="width-before-scroll-bar",dJ="with-scroll-bars-hidden",pJ="--removed-body-scroll-bar-size",vO=UI(),ey=function(){},ug=C.exports.forwardRef(function(e,t){var n=C.exports.useRef(null),r=C.exports.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),o=r[0],i=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,E=e.as,w=E===void 0?"div":E,b=Km(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=m,P=VI([n,t]),I=qo(qo({},b),o);return ee(Rn,{children:[p&&S(_,{sideCar:vO,removeScrollBar:f,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n}),s?C.exports.cloneElement(C.exports.Children.only(u),qo(qo({},I),{ref:P})):S(w,{...qo({},I,{className:c,ref:P}),children:u})]})});ug.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ug.classNames={fullWidth:Bh,zeroRight:$h};var hJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hJ();return t&&e.setAttribute("nonce",t),e}function gJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yJ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mJ())&&(gJ(t,n),vJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bJ=function(){var e=yJ();return function(t,n){C.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yO=function(){var e=bJ(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xJ={left:0,top:0,right:0,gap:0},ty=function(e){return parseInt(e||"",10)||0},SJ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ty(n),ty(r),ty(o)]},wJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xJ;var t=SJ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},CJ=yO(),_J=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` .`.concat(dJ,` { overflow: hidden `).concat(r,`; padding-right: `).concat(u,"px ").concat(r,`; } body { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(i,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(u,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat($h,` { right: `).concat(u,"px ").concat(r,`; } .`).concat(Bh,` { margin-right: `).concat(u,"px ").concat(r,`; } .`).concat($h," .").concat($h,` { right: 0 `).concat(r,`; } .`).concat(Bh," .").concat(Bh,` { margin-right: 0 `).concat(r,`; } body { `).concat(pJ,": ").concat(u,`px; } `)},kJ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=C.exports.useMemo(function(){return wJ(o)},[o]);return S(CJ,{styles:_J(i,!t,o,n?"":"!important")})},i2=!1;if(typeof window<"u")try{var ah=Object.defineProperty({},"passive",{get:function(){return i2=!0,!0}});window.addEventListener("test",ah,ah),window.removeEventListener("test",ah,ah)}catch{i2=!1}var _l=i2?{passive:!1}:!1,EJ=function(e){return e.tagName==="TEXTAREA"},bO=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!EJ(e)&&n[t]==="visible")},PJ=function(e){return bO(e,"overflowY")},AJ=function(e){return bO(e,"overflowX")},Gk=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=xO(e,n);if(r){var o=SO(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},TJ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},IJ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xO=function(e,t){return e==="v"?PJ(t):AJ(t)},SO=function(e,t){return e==="v"?TJ(t):IJ(t)},OJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},RJ=function(e,t,n,r,o){var i=OJ(e,window.getComputedStyle(t).direction),s=i*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var v=SO(e,u),y=v[0],x=v[1],E=v[2],w=x-E-i*y;(y||w)&&xO(e,u)&&(h+=w,m+=y),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&m===0||!o&&-s>m))&&(f=!0),f},sh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qk=function(e){return[e.deltaX,e.deltaY]},Kk=function(e){return e&&"current"in e?e.current:e},MJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},NJ=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},LJ=0,kl=[];function DJ(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),o=C.exports.useState(LJ++)[0],i=C.exports.useState(function(){return yO()})[0],s=C.exports.useRef(e);C.exports.useEffect(function(){s.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=Pb([e.lockRef.current],(e.shards||[]).map(Kk),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=C.exports.useCallback(function(x,E){if("touches"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var w=sh(x),b=n.current,_="deltaX"in x?x.deltaX:b[0]-w[0],P="deltaY"in x?x.deltaY:b[1]-w[1],I,N=x.target,L=Math.abs(_)>Math.abs(P)?"h":"v";if("touches"in x&&L==="h"&&N.type==="range")return!1;var z=Gk(L,N);if(!z)return!0;if(z?I=L:(I=L==="v"?"h":"v",z=Gk(L,N)),!z)return!1;if(!r.current&&"changedTouches"in x&&(_||P)&&(r.current=I),!I)return!0;var K=r.current||I;return RJ(K,E,x,K==="h"?_:P,!0)},[]),c=C.exports.useCallback(function(x){var E=x;if(!(!kl.length||kl[kl.length-1]!==i)){var w="deltaY"in E?qk(E):sh(E),b=t.current.filter(function(I){return I.name===E.type&&I.target===E.target&&MJ(I.delta,w)})[0];if(b&&b.should){E.cancelable&&E.preventDefault();return}if(!b){var _=(s.current.shards||[]).map(Kk).filter(Boolean).filter(function(I){return I.contains(E.target)}),P=_.length>0?u(E,_[0]):!s.current.noIsolation;P&&E.cancelable&&E.preventDefault()}}},[]),f=C.exports.useCallback(function(x,E,w,b){var _={name:x,delta:E,target:w,should:b};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(P){return P!==_})},1)},[]),p=C.exports.useCallback(function(x){n.current=sh(x),r.current=void 0},[]),h=C.exports.useCallback(function(x){f(x.type,qk(x),x.target,u(x,e.lockRef.current))},[]),m=C.exports.useCallback(function(x){f(x.type,sh(x),x.target,u(x,e.lockRef.current))},[]);C.exports.useEffect(function(){return kl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,_l),document.addEventListener("touchmove",c,_l),document.addEventListener("touchstart",p,_l),function(){kl=kl.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,_l),document.removeEventListener("touchmove",c,_l),document.removeEventListener("touchstart",p,_l)}},[]);var v=e.removeScrollBar,y=e.inert;return ee(Rn,{children:[y?S(i,{styles:NJ(o)}):null,v?S(kJ,{gapMode:"margin"}):null]})}const FJ=gQ(vO,DJ);var wO=C.exports.forwardRef(function(e,t){return S(ug,{...qo({},e,{ref:t,sideCar:FJ})})});wO.classNames=ug.classNames;const $J=wO;var qs=(...e)=>e.filter(Boolean).join(" ");function Ic(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var BJ=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},a2=new BJ;function zJ(e,t){C.exports.useEffect(()=>(t&&a2.add(e),()=>{a2.remove(e)}),[t,e])}function VJ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=C.exports.useRef(null),p=C.exports.useRef(null),[h,m,v]=jJ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");WJ(f,t&&s),zJ(f,t);const y=C.exports.useRef(null),x=C.exports.useCallback(z=>{y.current=z.target},[]),E=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[w,b]=C.exports.useState(!1),[_,P]=C.exports.useState(!1),I=C.exports.useCallback((z={},K=null)=>({role:"dialog",...z,ref:sn(K,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":w?m:void 0,"aria-describedby":_?v:void 0,onClick:Ic(z.onClick,W=>W.stopPropagation())}),[v,_,h,m,w]),N=C.exports.useCallback(z=>{z.stopPropagation(),y.current===z.target&&(!a2.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),L=C.exports.useCallback((z={},K=null)=>({...z,ref:sn(K,p),onClick:Ic(z.onClick,N),onKeyDown:Ic(z.onKeyDown,E),onMouseDown:Ic(z.onMouseDown,x)}),[E,x,N]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:P,setHeaderMounted:b,dialogRef:f,overlayRef:p,getDialogProps:I,getDialogContainerProps:L}}function WJ(e,t){const n=e.current;C.exports.useEffect(()=>{if(!(!e.current||!t))return iQ(e.current)},[t,e,n])}function jJ(e,...t){const n=C.exports.useId(),r=e||n;return C.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[UJ,Ks]=Wt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[HJ,Ga]=Wt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),jf=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m,onCloseComplete:v}=e,y=xr("Modal",e),E={...VJ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return S(HJ,{value:E,children:S(UJ,{value:y,children:S(Xi,{onExitComplete:v,children:E.isOpen&&S(Gs,{...t,children:n})})})})};jf.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};jf.displayName="Modal";var j0=ce((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Ga();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=qs("chakra-modal__body",n),u=Ks();return J.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});j0.displayName="ModalBody";var CO=ce((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Ga(),s=qs("chakra-modal__close-btn",r),u=Ks();return S(ag,{ref:t,__css:u.closeButton,className:s,onClick:Ic(n,c=>{c.stopPropagation(),i()}),...o})});CO.displayName="ModalCloseButton";function _O(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=Ga(),[h,m]=cS();return C.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),S(gO,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:S($J,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var GJ={slideInBottom:{...Ub,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ub,custom:{offsetX:16,reverse:!0}},scale:{...HT,custom:{initialScale:.95,reverse:!0}},none:{}},qJ=ie(so.section),kO=C.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=GJ[n];return S(qJ,{ref:t,...o,...r})});kO.displayName="ModalTransition";var U0=ce((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=Ga(),c=s(i,t),f=u(o),p=qs("chakra-modal__content",n),h=Ks(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:y}=Ga();return J.createElement(_O,null,J.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},S(kO,{preset:y,className:p,...c,__css:m,children:r})))});U0.displayName="ModalContent";var QS=ce((e,t)=>{const{className:n,...r}=e,o=qs("chakra-modal__footer",n),i=Ks(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return J.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});QS.displayName="ModalFooter";var JS=ce((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Ga();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=qs("chakra-modal__header",n),u=Ks(),c={flex:0,...u.header};return J.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});JS.displayName="ModalHeader";var KJ=ie(so.div),H0=ce((e,t)=>{const{className:n,transition:r,...o}=e,i=qs("chakra-modal__overlay",n),s=Ks(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=Ga();return S(KJ,{...c==="none"?{}:UT,__css:u,ref:t,className:i,...o})});H0.displayName="ModalOverlay";function YJ(e){const{leastDestructiveRef:t,...n}=e;return S(jf,{...n,initialFocusRef:t})}var ZJ=ce((e,t)=>S(U0,{ref:t,role:"alertdialog",...e})),[Cpe,XJ]=Wt(),QJ=ie(GT),JJ=ce((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=Ga(),c=i(o,t),f=s(),p=qs("chakra-modal__content",n),h=Ks(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:y}=XJ();return J.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},S(_O,{children:S(QJ,{direction:y,in:u,className:p,...c,__css:m,children:r})}))});JJ.displayName="DrawerContent";function eee(e,t){const n=Vn(e);C.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var EO=(...e)=>e.filter(Boolean).join(" "),ny=e=>e?!0:void 0;function Bo(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var tee=e=>S(ao,{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),nee=e=>S(ao,{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Yk(e,t,n,r){C.exports.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,i=Array.isArray(t)?t:[t],s=new o.MutationObserver(u=>{for(const c of u)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&n(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}var ree=50,Zk=300;function oee(e,t){const[n,r]=C.exports.useState(!1),[o,i]=C.exports.useState(null),[s,u]=C.exports.useState(!0),c=C.exports.useRef(null),f=()=>clearTimeout(c.current);eee(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?ree:null);const p=C.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},Zk)},[e,s]),h=C.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},Zk)},[t,s]),m=C.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return C.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var iee=/^[Ee0-9+\-.]$/;function aee(e){return iee.test(e)}function see(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function lee(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:y,onChange:x,precision:E,name:w,"aria-describedby":b,"aria-label":_,"aria-labelledby":P,onFocus:I,onBlur:N,onInvalid:L,getAriaValueText:z,isValidCharacter:K,format:W,parse:te,...be}=e,_e=Vn(I),ye=Vn(N),Ce=Vn(L),ae=Vn(K??aee),ke=Vn(z),j=TY(e),{update:Y,increment:q,decrement:R}=j,[U,se]=C.exports.useState(!1),ue=!(u||c),he=C.exports.useRef(null),me=C.exports.useRef(null),Pe=C.exports.useRef(null),fe=C.exports.useRef(null),Se=C.exports.useCallback(re=>re.split("").filter(ae).join(""),[ae]),Le=C.exports.useCallback(re=>te?.(re)??re,[te]),at=C.exports.useCallback(re=>(W?.(re)??re).toString(),[W]);B0(()=>{(j.valueAsNumber>i||j.valueAsNumber{if(!he.current)return;if(he.current.value!=j.value){const He=Le(he.current.value);j.setValue(Se(He))}},[Le,Se]);const At=C.exports.useCallback((re=s)=>{ue&&q(re)},[q,ue,s]),hn=C.exports.useCallback((re=s)=>{ue&&R(re)},[R,ue,s]),ge=oee(At,hn);Yk(Pe,"disabled",ge.stop,ge.isSpinning),Yk(fe,"disabled",ge.stop,ge.isSpinning);const Ie=C.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;const kt=Le(re.currentTarget.value);Y(Se(kt)),me.current={start:re.currentTarget.selectionStart,end:re.currentTarget.selectionEnd}},[Y,Se,Le]),et=C.exports.useCallback(re=>{var He;_e?.(re),me.current&&(re.target.selectionStart=me.current.start??((He=re.currentTarget.value)==null?void 0:He.length),re.currentTarget.selectionEnd=me.current.end??re.currentTarget.selectionStart)},[_e]),De=C.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;see(re,ae)||re.preventDefault();const He=Dt(re)*s,kt=re.key,Mn={ArrowUp:()=>At(He),ArrowDown:()=>hn(He),Home:()=>Y(o),End:()=>Y(i)}[kt];Mn&&(re.preventDefault(),Mn(re))},[ae,s,At,hn,Y,o,i]),Dt=re=>{let He=1;return(re.metaKey||re.ctrlKey)&&(He=.1),re.shiftKey&&(He=10),He},mn=C.exports.useMemo(()=>{const re=ke?.(j.value);if(re!=null)return re;const He=j.value.toString();return He||void 0},[j.value,ke]),st=C.exports.useCallback(()=>{let re=j.value;re!==""&&(j.valueAsNumberi&&(re=i),j.cast(re))},[j,i,o]),wt=C.exports.useCallback(()=>{se(!1),n&&st()},[n,se,st]),Xt=C.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var re;(re=he.current)==null||re.focus()})},[t]),Ut=C.exports.useCallback(re=>{re.preventDefault(),ge.up(),Xt()},[Xt,ge]),de=C.exports.useCallback(re=>{re.preventDefault(),ge.down(),Xt()},[Xt,ge]);Kb(()=>he.current,"wheel",re=>{var He;const wn=(((He=he.current)==null?void 0:He.ownerDocument)??document).activeElement===he.current;if(!v||!wn)return;re.preventDefault();const Mn=Dt(re)*s,wr=Math.sign(re.deltaY);wr===-1?At(Mn):wr===1&&hn(Mn)},{passive:!1});const Ee=C.exports.useCallback((re={},He=null)=>{const kt=c||r&&j.isAtMax;return{...re,ref:sn(He,Pe),role:"button",tabIndex:-1,onPointerDown:Bo(re.onPointerDown,wn=>{kt||Ut(wn)}),onPointerLeave:Bo(re.onPointerLeave,ge.stop),onPointerUp:Bo(re.onPointerUp,ge.stop),disabled:kt,"aria-disabled":ny(kt)}},[j.isAtMax,r,Ut,ge.stop,c]),ft=C.exports.useCallback((re={},He=null)=>{const kt=c||r&&j.isAtMin;return{...re,ref:sn(He,fe),role:"button",tabIndex:-1,onPointerDown:Bo(re.onPointerDown,wn=>{kt||de(wn)}),onPointerLeave:Bo(re.onPointerLeave,ge.stop),onPointerUp:Bo(re.onPointerUp,ge.stop),disabled:kt,"aria-disabled":ny(kt)}},[j.isAtMin,r,de,ge.stop,c]),lt=C.exports.useCallback((re={},He=null)=>({name:w,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":_,"aria-describedby":b,id:y,disabled:c,...re,readOnly:re.readOnly??u,"aria-readonly":re.readOnly??u,"aria-required":re.required??f,required:re.required??f,ref:sn(he,He),value:at(j.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(j.valueAsNumber)?void 0:j.valueAsNumber,"aria-invalid":ny(p??j.isOutOfRange),"aria-valuetext":mn,autoComplete:"off",autoCorrect:"off",onChange:Bo(re.onChange,Ie),onKeyDown:Bo(re.onKeyDown,De),onFocus:Bo(re.onFocus,et,()=>se(!0)),onBlur:Bo(re.onBlur,ye,wt)}),[w,m,h,P,_,at,b,y,c,f,u,p,j.value,j.valueAsNumber,j.isOutOfRange,o,i,mn,Ie,De,et,ye,wt]);return{value:at(j.value),valueAsNumber:j.valueAsNumber,isFocused:U,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Ee,getDecrementButtonProps:ft,getInputProps:lt,htmlProps:be}}var[uee,cg]=Wt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[cee,ew]=Wt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),PO=ce(function(t,n){const r=xr("NumberInput",t),o=St(t),i=CS(o),{htmlProps:s,...u}=lee(i),c=C.exports.useMemo(()=>u,[u]);return J.createElement(cee,{value:c},J.createElement(uee,{value:r},J.createElement(ie.div,{...s,ref:n,className:EO("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});PO.displayName="NumberInput";var AO=ce(function(t,n){const r=cg();return J.createElement(ie.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});AO.displayName="NumberInputStepper";var TO=ce(function(t,n){const{getInputProps:r}=ew(),o=r(t,n),i=cg();return J.createElement(ie.input,{...o,className:EO("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});TO.displayName="NumberInputField";var IO=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),OO=ce(function(t,n){const r=cg(),{getDecrementButtonProps:o}=ew(),i=o(t,n);return S(IO,{...i,__css:r.stepper,children:t.children??S(tee,{})})});OO.displayName="NumberDecrementStepper";var RO=ce(function(t,n){const{getIncrementButtonProps:r}=ew(),o=r(t,n),i=cg();return S(IO,{...o,__css:i.stepper,children:t.children??S(nee,{})})});RO.displayName="NumberIncrementStepper";var gd=(...e)=>e.filter(Boolean).join(" ");function fee(e,...t){return dee(e)?e(...t):e}var dee=e=>typeof e=="function";function zo(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function pee(...e){return function(n){e.forEach(r=>{r?.(n)})}}var[hee,Ys]=Wt({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[mee,vd]=Wt({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),El={click:"click",hover:"hover"};function gee(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:o,returnFocusOnClose:i=!0,autoFocus:s=!0,arrowSize:u,arrowShadowColor:c,trigger:f=El.click,openDelay:p=200,closeDelay:h=200,isLazy:m,lazyBehavior:v="unmount",computePositionOnMount:y,...x}=e,{isOpen:E,onClose:w,onOpen:b,onToggle:_}=LI(e),P=C.exports.useRef(null),I=C.exports.useRef(null),N=C.exports.useRef(null),L=C.exports.useRef(!1),z=C.exports.useRef(!1);E&&(z.current=!0);const[K,W]=C.exports.useState(!1),[te,be]=C.exports.useState(!1),_e=C.exports.useId(),ye=o??_e,[Ce,ae,ke,j]=["popover-trigger","popover-content","popover-header","popover-body"].map(Ie=>`${Ie}-${ye}`),{referenceRef:Y,getArrowProps:q,getPopperProps:R,getArrowInnerProps:U,forceUpdate:se}=NI({...x,enabled:E||!!y}),ue=MY({isOpen:E,ref:N});BY({enabled:E,ref:I}),FY(N,{focusRef:I,visible:E,shouldFocus:i&&f===El.click}),VY(N,{focusRef:r,visible:E,shouldFocus:s&&f===El.click});const he=YX({wasSelected:z.current,enabled:m,mode:v,isSelected:ue.present}),me=C.exports.useCallback((Ie={},et=null)=>{const De={...Ie,style:{...Ie.style,transformOrigin:on.transformOrigin.varRef,[on.arrowSize.var]:u?`${u}px`:void 0,[on.arrowShadowColor.var]:c},ref:sn(N,et),children:he?Ie.children:null,id:ae,tabIndex:-1,role:"dialog",onKeyDown:zo(Ie.onKeyDown,Dt=>{n&&Dt.key==="Escape"&&w()}),onBlur:zo(Ie.onBlur,Dt=>{const mn=Xk(Dt),st=ry(N.current,mn),wt=ry(I.current,mn);E&&t&&(!st&&!wt)&&w()}),"aria-labelledby":K?ke:void 0,"aria-describedby":te?j:void 0};return f===El.hover&&(De.role="tooltip",De.onMouseEnter=zo(Ie.onMouseEnter,()=>{L.current=!0}),De.onMouseLeave=zo(Ie.onMouseLeave,Dt=>{Dt.nativeEvent.relatedTarget!==null&&(L.current=!1,setTimeout(w,h))})),De},[he,ae,K,ke,te,j,f,n,w,E,t,h,c,u]),Pe=C.exports.useCallback((Ie={},et=null)=>R({...Ie,style:{visibility:E?"visible":"hidden",...Ie.style}},et),[E,R]),fe=C.exports.useCallback((Ie,et=null)=>({...Ie,ref:sn(et,P,Y)}),[P,Y]),Se=C.exports.useRef(),Le=C.exports.useRef(),at=C.exports.useCallback(Ie=>{P.current==null&&Y(Ie)},[Y]),At=C.exports.useCallback((Ie={},et=null)=>{const De={...Ie,ref:sn(I,et,at),id:Ce,"aria-haspopup":"dialog","aria-expanded":E,"aria-controls":ae};return f===El.click&&(De.onClick=zo(Ie.onClick,_)),f===El.hover&&(De.onFocus=zo(Ie.onFocus,()=>{Se.current===void 0&&b()}),De.onBlur=zo(Ie.onBlur,Dt=>{const mn=Xk(Dt),st=!ry(N.current,mn);E&&t&&st&&w()}),De.onKeyDown=zo(Ie.onKeyDown,Dt=>{Dt.key==="Escape"&&w()}),De.onMouseEnter=zo(Ie.onMouseEnter,()=>{L.current=!0,Se.current=window.setTimeout(b,p)}),De.onMouseLeave=zo(Ie.onMouseLeave,()=>{L.current=!1,Se.current&&(clearTimeout(Se.current),Se.current=void 0),Le.current=window.setTimeout(()=>{L.current===!1&&w()},h)})),De},[Ce,E,ae,f,at,_,b,t,w,p,h]);C.exports.useEffect(()=>()=>{Se.current&&clearTimeout(Se.current),Le.current&&clearTimeout(Le.current)},[]);const hn=C.exports.useCallback((Ie={},et=null)=>({...Ie,id:ke,ref:sn(et,De=>{W(!!De)})}),[ke]),ge=C.exports.useCallback((Ie={},et=null)=>({...Ie,id:j,ref:sn(et,De=>{be(!!De)})}),[j]);return{forceUpdate:se,isOpen:E,onAnimationComplete:ue.onComplete,onClose:w,getAnchorProps:fe,getArrowProps:q,getArrowInnerProps:U,getPopoverPositionerProps:Pe,getPopoverProps:me,getTriggerProps:At,getHeaderProps:hn,getBodyProps:ge}}function ry(e,t){return e===t||e?.contains(t)}function Xk(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function MO(e){const t=xr("Popover",e),{children:n,...r}=St(e),o=Wm(),i=gee({...r,direction:o.direction});return S(hee,{value:i,children:S(mee,{value:t,children:fee(n,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}MO.displayName="Popover";function NO(e){const{bg:t,bgColor:n,backgroundColor:r}=e,{getArrowProps:o,getArrowInnerProps:i}=Ys(),s=vd(),u=t??n??r;return J.createElement(ie.div,{...o(),className:"chakra-popover__arrow-positioner"},J.createElement(ie.div,{className:gd("chakra-popover__arrow",e.className),...i(e),__css:{...s.arrow,"--popper-arrow-bg":u?`colors.${u}, ${u}`:void 0}}))}NO.displayName="PopoverArrow";var vee=ce(function(t,n){const{getBodyProps:r}=Ys(),o=vd();return J.createElement(ie.div,{...r(t,n),className:gd("chakra-popover__body",t.className),__css:o.body})});vee.displayName="PopoverBody";var yee=ce(function(t,n){const{onClose:r}=Ys(),o=vd();return S(ag,{size:"sm",onClick:r,className:gd("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t})});yee.displayName="PopoverCloseButton";function bee(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var xee={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},See=so(ie.section),tw=ce(function(t,n){const{isOpen:r}=Ys();return J.createElement(See,{ref:n,variants:bee(t.variants),...t,initial:!1,animate:r?"enter":"exit"})});tw.defaultProps={variants:xee};tw.displayName="PopoverTransition";var LO=ce(function(t,n){const{rootProps:r,...o}=t,{getPopoverProps:i,getPopoverPositionerProps:s,onAnimationComplete:u}=Ys(),c=vd(),f={position:"relative",display:"flex",flexDirection:"column",...c.content};return J.createElement(ie.div,{...s(r),__css:c.popper,className:"chakra-popover__popper"},S(tw,{...i(o,n),onAnimationComplete:pee(u,o.onAnimationComplete),className:gd("chakra-popover__content",t.className),__css:f}))});LO.displayName="PopoverContent";var wee=ce(function(t,n){const{getHeaderProps:r}=Ys(),o=vd();return J.createElement(ie.header,{...r(t,n),className:gd("chakra-popover__header",t.className),__css:o.header})});wee.displayName="PopoverHeader";function DO(e){const t=C.exports.Children.only(e.children),{getTriggerProps:n}=Ys();return C.exports.cloneElement(t,n(t.props,t.ref))}DO.displayName="PopoverTrigger";function Cee(e,t,n){return(e-t)*100/(n-t)}od({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});od({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var _ee=od({"0%":{left:"-40%"},"100%":{left:"100%"}}),kee=od({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Eee(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=Cee(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,u):o})(),role:"progressbar"},percent:u,value:t}}var[Pee,Aee]=Wt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Tee=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=Eee({value:r,min:t,max:n,isIndeterminate:o}),u=Aee(),c={height:"100%",...u.filledTrack};return J.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},FO=e=>{var t;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:u,borderRadius:c,isIndeterminate:f,"aria-label":p,"aria-labelledby":h,...m}=St(e),v=xr("Progress",e),y=c??((t=v.track)==null?void 0:t.borderRadius),x={animation:`${kee} 1s linear infinite`},b={...!f&&i&&s&&x,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${_ee} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...v.track};return J.createElement(ie.div,{borderRadius:y,__css:_,...m},ee(Pee,{value:v,children:[S(Tee,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:b,borderRadius:y}),u]}))};FO.displayName="Progress";var Iee=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Iee.displayName="CircularProgressLabel";var Oee=(...e)=>e.filter(Boolean).join(" "),Ree=e=>e?"":void 0;function Mee(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var $O=ce(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return J.createElement(ie.select,{...s,ref:n,className:Oee("chakra-select",i)},o&&S("option",{value:"",children:o}),r)});$O.displayName="SelectField";var BO=ce((e,t)=>{var n;const r=xr("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...y}=St(e),[x,E]=Mee(y,Uz),w=wS(E),b={width:"100%",height:"fit-content",position:"relative",color:u},_={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return J.createElement(ie.div,{className:"chakra-select__wrapper",__css:b,...x,...o},S($O,{ref:t,height:f??c,minH:p??h,placeholder:i,...w,__css:_,children:e.children}),S(zO,{"data-disabled":Ree(w.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});BO.displayName="Select";var Nee=e=>S("svg",{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Lee=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),zO=e=>{const{children:t=S(Nee,{}),...n}=e,r=C.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return S(Lee,{...n,className:"chakra-select__icon-wrapper",children:C.exports.isValidElement(t)?r:null})};zO.displayName="SelectIcon";var Dee=(...e)=>e.filter(Boolean).join(" "),Qk=e=>e?"":void 0,Vi=ce(function(t,n){const r=xr("Switch",t),{spacing:o="0.5rem",children:i,...s}=St(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=iI(s),m=C.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=C.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),y=C.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return J.createElement(ie.label,{...p(),className:Dee("chakra-switch",t.className),__css:m},S("input",{className:"chakra-switch__input",...c({},n)}),J.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},J.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Qk(u.isChecked),"data-hover":Qk(u.isHovered)})),i&&J.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:y},i))});Vi.displayName="Switch";var Fee=(...e)=>e.filter(Boolean).join(" ");function $ee(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var Bee=["h","minH","height","minHeight"],VO=ce((e,t)=>{const n=rr("Textarea",e),{className:r,rows:o,...i}=St(e),s=wS(i),u=o?$ee(n,Bee):n;return J.createElement(ie.textarea,{ref:t,rows:o,...s,className:Fee("chakra-textarea",r),__css:u})});VO.displayName="Textarea";function mt(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(...p){r();for(const h of p)t[h]=c(h);return mt(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return mt(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const v=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>p}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var zee=mt("accordion").parts("root","container","button","panel").extend("icon"),Vee=mt("alert").parts("title","description","container").extend("icon","spinner"),Wee=mt("avatar").parts("label","badge","container").extend("excessLabel","group"),jee=mt("breadcrumb").parts("link","item","container").extend("separator");mt("button").parts();var Uee=mt("checkbox").parts("control","icon","container").extend("label");mt("progress").parts("track","filledTrack").extend("label");var Hee=mt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Gee=mt("editable").parts("preview","input","textarea"),qee=mt("form").parts("container","requiredIndicator","helperText"),Kee=mt("formError").parts("text","icon"),Yee=mt("input").parts("addon","field","element"),Zee=mt("list").parts("container","item","icon"),Xee=mt("menu").parts("button","list","item").extend("groupTitle","command","divider"),Qee=mt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Jee=mt("numberinput").parts("root","field","stepperGroup","stepper");mt("pininput").parts("field");var ete=mt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tte=mt("progress").parts("label","filledTrack","track"),nte=mt("radio").parts("container","control","label"),rte=mt("select").parts("field","icon"),ote=mt("slider").parts("container","track","thumb","filledTrack","mark"),ite=mt("stat").parts("container","label","helpText","number","icon"),ate=mt("switch").parts("container","track","thumb"),ste=mt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),lte=mt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),ute=mt("tag").parts("container","label","closeButton");function In(e,t){cte(e)&&(e="100%");var n=fte(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function lh(e){return Math.min(1,Math.max(0,e))}function cte(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fte(e){return typeof e=="string"&&e.indexOf("%")!==-1}function WO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function As(e){return e.length===1?"0"+e:String(e)}function dte(e,t,n){return{r:In(e,255)*255,g:In(t,255)*255,b:In(n,255)*255}}function Jk(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(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 pte(e,t,n){var r,o,i;if(e=In(e,360),t=In(t,100),n=In(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=oy(u,s,e+1/3),o=oy(u,s,e),i=oy(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function e3(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=r===0?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t>16,g:(e&65280)>>8,b:e&255}}var s2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function yte(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,u=!1;return typeof e=="string"&&(e=Ste(e)),typeof e=="object"&&(Ei(e.r)&&Ei(e.g)&&Ei(e.b)?(t=dte(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ei(e.h)&&Ei(e.s)&&Ei(e.v)?(r=uh(e.s),o=uh(e.v),t=hte(e.h,r,o),s=!0,u="hsv"):Ei(e.h)&&Ei(e.s)&&Ei(e.l)&&(r=uh(e.s),i=uh(e.l),t=pte(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=WO(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var bte="[-\\+]?\\d+%?",xte="[-\\+]?\\d*\\.\\d+%?",Ta="(?:".concat(xte,")|(?:").concat(bte,")"),iy="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),ay="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),So={CSS_UNIT:new RegExp(Ta),rgb:new RegExp("rgb"+iy),rgba:new RegExp("rgba"+ay),hsl:new RegExp("hsl"+iy),hsla:new RegExp("hsla"+ay),hsv:new RegExp("hsv"+iy),hsva:new RegExp("hsva"+ay),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ste(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(s2[e])e=s2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=So.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=So.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=So.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=So.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=So.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=So.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=So.hex8.exec(e),n?{r:Ir(n[1]),g:Ir(n[2]),b:Ir(n[3]),a:n3(n[4]),format:t?"name":"hex8"}:(n=So.hex6.exec(e),n?{r:Ir(n[1]),g:Ir(n[2]),b:Ir(n[3]),format:t?"name":"hex"}:(n=So.hex4.exec(e),n?{r:Ir(n[1]+n[1]),g:Ir(n[2]+n[2]),b:Ir(n[3]+n[3]),a:n3(n[4]+n[4]),format:t?"name":"hex8"}:(n=So.hex3.exec(e),n?{r:Ir(n[1]+n[1]),g:Ir(n[2]+n[2]),b:Ir(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ei(e){return Boolean(So.CSS_UNIT.exec(String(e)))}var yd=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=vte(t)),this.originalInput=t;var o=yte(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,u=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=WO(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=e3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=e3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Jk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Jk(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),t3(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),mte(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(In(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(In(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+t3(this.r,this.g,this.b,!1),n=0,r=Object.entries(s2);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=lh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=lh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=lh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=lh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],u=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;sn.length;)e.count=null,e.seed&&(e.seed+=1),n.push(jO(e));return e.count=t,n}var r=wte(e.hue,e.seed),o=Cte(r,e),i=_te(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new yd(s)}function wte(e,t){var n=Ete(e),r=G0(n,t);return r<0&&(r=360+r),r}function Cte(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return G0([0,100],t.seed);var n=UO(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break}return G0([r,o],t.seed)}function _te(e,t,n){var r=kte(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break}return G0([r,o],n.seed)}function kte(e,t){for(var n=UO(e).lowerBounds,r=0;r=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function Ete(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=GO.find(function(s){return s.name===e});if(n){var r=HO(n);if(r.hueRange)return r.hueRange}var o=new yd(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function UO(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=GO;t=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function G0(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function HO(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var GO=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function Pte(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,pn=(e,t,n)=>{const r=Pte(e,`colors.${t}`,t),{isValid:o}=new yd(r);return o?r:n},Tte=e=>t=>{const n=pn(t,e);return new yd(n).isDark()?"dark":"light"},Ite=e=>t=>Tte(e)(t)==="dark",wu=(e,t)=>n=>{const r=pn(n,e);return new yd(r).setAlpha(t).toRgbString()};function r3(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}`}}function Ote(e){const t=jO().toHexString();return!e||Ate(e)?t:e.string&&e.colors?Mte(e.string,e.colors):e.string&&!e.colors?Rte(e.string):e.colors&&!e.string?Nte(e.colors):t}function Rte(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255).toString(16)}`.substr(-2);return n}function Mte(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function nw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Lte(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function qO(e){return Lte(e)&&e.reference?e.reference:String(e)}var fg=(e,...t)=>t.map(qO).join(` ${e} `).replace(/calc/g,""),o3=(...e)=>`calc(${fg("+",...e)})`,i3=(...e)=>`calc(${fg("-",...e)})`,l2=(...e)=>`calc(${fg("*",...e)})`,a3=(...e)=>`calc(${fg("/",...e)})`,s3=e=>{const t=qO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:l2(t,-1)},Mi=Object.assign(e=>({add:(...t)=>Mi(o3(e,...t)),subtract:(...t)=>Mi(i3(e,...t)),multiply:(...t)=>Mi(l2(e,...t)),divide:(...t)=>Mi(a3(e,...t)),negate:()=>Mi(s3(e)),toString:()=>e.toString()}),{add:o3,subtract:i3,multiply:l2,divide:a3,negate:s3});function Dte(e){return!Number.isInteger(parseFloat(e.toString()))}function Fte(e,t="-"){return e.replace(/\s+/g,t)}function KO(e){const t=Fte(e.toString());return t.includes("\\.")?e:Dte(e)?t.replace(".","\\."):e}function $te(e,t=""){return[t,KO(e)].filter(Boolean).join("-")}function Bte(e,t){return`var(${KO(e)}${t?`, ${t}`:""})`}function zte(e,t=""){return`--${$te(e,t)}`}function Sr(e,t){const n=zte(e,t?.prefix);return{variable:n,reference:Bte(n,Vte(t?.fallback))}}function Vte(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Wte,defineMultiStyleConfig:jte}=Lt(zee.keys),Ute={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Hte={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Gte={pt:"2",px:"4",pb:"5"},qte={fontSize:"1.25em"},Kte=Wte({container:Ute,button:Hte,panel:Gte,icon:qte}),Yte=jte({baseStyle:Kte}),{definePartsStyle:bd,defineMultiStyleConfig:Zte}=Lt(Vee.keys),Ki=Qa("alert-fg"),xd=Qa("alert-bg"),Xte=bd({container:{bg:xd.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ki.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ki.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function rw(e){const{theme:t,colorScheme:n}=e,r=pn(t,`${n}.100`,n),o=wu(`${n}.200`,.16)(t);return ne(r,o)(e)}var Qte=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`}}}),Jte=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ki.reference}}}),ene=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ki.reference}}}),tne=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e),r=ne("white","gray.900")(e);return{container:{[xd.variable]:`colors.${n}`,[Ki.variable]:`colors.${r}`,color:Ki.reference}}}),nne={subtle:Qte,"left-accent":Jte,"top-accent":ene,solid:tne},rne=Zte({baseStyle:Xte,variants:nne,defaultProps:{variant:"subtle",colorScheme:"blue"}}),YO={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"},one={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"},ine={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ane={...YO,...one,container:ine},ZO=ane,sne=e=>typeof e=="function";function nn(e,...t){return sne(e)?e(...t):e}var{definePartsStyle:XO,defineMultiStyleConfig:lne}=Lt(Wee.keys),une=e=>({borderRadius:"full",border:"0.2em solid",borderColor:ne("white","gray.800")(e)}),cne=e=>({bg:ne("gray.200","whiteAlpha.400")(e)}),fne=e=>{const{name:t,theme:n}=e,r=t?Ote({string:t}):"gray.400",o=Ite(r)(n);let i="white";o||(i="gray.800");const s=ne("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},dne=XO(e=>({badge:nn(une,e),excessLabel:nn(cne,e),container:nn(fne,e)}));function da(e){const t=e!=="100%"?ZO[e]:void 0;return XO({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var pne={"2xs":da(4),xs:da(6),sm:da(8),md:da(12),lg:da(16),xl:da(24),"2xl":da(32),full:da("100%")},hne=lne({baseStyle:dne,sizes:pne,defaultProps:{size:"md"}}),mne={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},gne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.500`,.6)(n);return{bg:ne(`${t}.500`,r)(e),color:ne("white","whiteAlpha.800")(e)}},vne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.200`,.16)(n);return{bg:ne(`${t}.100`,r)(e),color:ne(`${t}.800`,`${t}.200`)(e)}},yne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.200`,.8)(n),o=pn(n,`${t}.500`),i=ne(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},bne={solid:gne,subtle:vne,outline:yne},ef={baseStyle:mne,variants:bne,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:xne,definePartsStyle:Sne}=Lt(jee.keys),wne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Cne=Sne({link:wne}),_ne=xne({baseStyle:Cne}),kne={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"}}},QO=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:ne("inherit","whiteAlpha.900")(e),_hover:{bg:ne("gray.100","whiteAlpha.200")(e)},_active:{bg:ne("gray.200","whiteAlpha.300")(e)}};const r=wu(`${t}.200`,.12)(n),o=wu(`${t}.200`,.24)(n);return{color:ne(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ne(`${t}.50`,r)(e)},_active:{bg:ne(`${t}.100`,o)(e)}}},Ene=e=>{const{colorScheme:t}=e,n=ne("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...nn(QO,e)}},Pne={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ane=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=ne("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:ne("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:ne("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Pne[t]??{},s=ne(n,`${t}.200`)(e);return{bg:s,color:ne(r,"gray.800")(e),_hover:{bg:ne(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:ne(i,`${t}.400`)(e)}}},Tne=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ne(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ne(`${t}.700`,`${t}.500`)(e)}}},Ine={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},One={ghost:QO,outline:Ene,solid:Ane,link:Tne,unstyled:Ine},Rne={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"}},Mne={baseStyle:kne,variants:One,sizes:Rne,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:zh,defineMultiStyleConfig:Nne}=Lt(Uee.keys),tf=Qa("checkbox-size"),Lne=e=>{const{colorScheme:t}=e;return{w:tf.reference,h:tf.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ne(`${t}.500`,`${t}.200`)(e),borderColor:ne(`${t}.500`,`${t}.200`)(e),color:ne("white","gray.900")(e),_hover:{bg:ne(`${t}.600`,`${t}.300`)(e),borderColor:ne(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ne("gray.200","transparent")(e),bg:ne("gray.200","whiteAlpha.300")(e),color:ne("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ne(`${t}.500`,`${t}.200`)(e),borderColor:ne(`${t}.500`,`${t}.200`)(e),color:ne("white","gray.900")(e)},_disabled:{bg:ne("gray.100","whiteAlpha.100")(e),borderColor:ne("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ne("red.500","red.300")(e)}}},Dne={_disabled:{cursor:"not-allowed"}},Fne={userSelect:"none",_disabled:{opacity:.4}},$ne={transitionProperty:"transform",transitionDuration:"normal"},Bne=zh(e=>({icon:$ne,container:Dne,control:nn(Lne,e),label:Fne})),zne={sm:zh({control:{[tf.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:zh({control:{[tf.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:zh({control:{[tf.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},q0=Nne({baseStyle:Bne,sizes:zne,defaultProps:{size:"md",colorScheme:"blue"}}),nf=Sr("close-button-size"),Vne=e=>{const t=ne("blackAlpha.100","whiteAlpha.100")(e),n=ne("blackAlpha.200","whiteAlpha.200")(e);return{w:[nf.reference],h:[nf.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},Wne={lg:{[nf.variable]:"sizes.10",fontSize:"md"},md:{[nf.variable]:"sizes.8",fontSize:"xs"},sm:{[nf.variable]:"sizes.6",fontSize:"2xs"}},jne={baseStyle:Vne,sizes:Wne,defaultProps:{size:"md"}},{variants:Une,defaultProps:Hne}=ef,Gne={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},qne={baseStyle:Gne,variants:Une,defaultProps:Hne},Kne={w:"100%",mx:"auto",maxW:"prose",px:"4"},Yne={baseStyle:Kne},Zne={opacity:.6,borderColor:"inherit"},Xne={borderStyle:"solid"},Qne={borderStyle:"dashed"},Jne={solid:Xne,dashed:Qne},ere={baseStyle:Zne,variants:Jne,defaultProps:{variant:"solid"}},{definePartsStyle:u2,defineMultiStyleConfig:tre}=Lt(Hee.keys);function Pl(e){return u2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var nre={bg:"blackAlpha.600",zIndex:"overlay"},rre={display:"flex",zIndex:"modal",justifyContent:"center"},ore=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:ne("white","gray.700")(e),color:"inherit",boxShadow:ne("lg","dark-lg")(e)}},ire={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},are={position:"absolute",top:"2",insetEnd:"3"},sre={px:"6",py:"2",flex:"1",overflow:"auto"},lre={px:"6",py:"4"},ure=u2(e=>({overlay:nre,dialogContainer:rre,dialog:nn(ore,e),header:ire,closeButton:are,body:sre,footer:lre})),cre={xs:Pl("xs"),sm:Pl("md"),md:Pl("lg"),lg:Pl("2xl"),xl:Pl("4xl"),full:Pl("full")},fre=tre({baseStyle:ure,sizes:cre,defaultProps:{size:"xs"}}),{definePartsStyle:dre,defineMultiStyleConfig:pre}=Lt(Gee.keys),hre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},gre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},vre=dre({preview:hre,input:mre,textarea:gre}),yre=pre({baseStyle:vre}),{definePartsStyle:bre,defineMultiStyleConfig:xre}=Lt(qee.keys),Sre=e=>({marginStart:"1",color:ne("red.500","red.300")(e)}),wre=e=>({mt:"2",color:ne("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Cre=bre(e=>({container:{width:"100%",position:"relative"},requiredIndicator:nn(Sre,e),helperText:nn(wre,e)})),_re=xre({baseStyle:Cre}),{definePartsStyle:kre,defineMultiStyleConfig:Ere}=Lt(Kee.keys),Pre=e=>({color:ne("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Are=e=>({marginEnd:"0.5em",color:ne("red.500","red.300")(e)}),Tre=kre(e=>({text:nn(Pre,e),icon:nn(Are,e)})),Ire=Ere({baseStyle:Tre}),Ore={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Rre={baseStyle:Ore},Mre={fontFamily:"heading",fontWeight:"bold"},Nre={"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}},Lre={baseStyle:Mre,sizes:Nre,defaultProps:{size:"xl"}},{definePartsStyle:Di,defineMultiStyleConfig:Dre}=Lt(Yee.keys),Fre=Di({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),pa={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},$re={lg:Di({field:pa.lg,addon:pa.lg}),md:Di({field:pa.md,addon:pa.md}),sm:Di({field:pa.sm,addon:pa.sm}),xs:Di({field:pa.xs,addon:pa.xs})};function ow(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||ne("blue.500","blue.300")(e),errorBorderColor:n||ne("red.500","red.300")(e)}}var Bre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ne("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r),boxShadow:`0 0 0 1px ${pn(t,r)}`},_focusVisible:{zIndex:1,borderColor:pn(t,n),boxShadow:`0 0 0 1px ${pn(t,n)}`}},addon:{border:"1px solid",borderColor:ne("inherit","whiteAlpha.50")(e),bg:ne("gray.100","whiteAlpha.300")(e)}}}),zre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ne("gray.100","whiteAlpha.50")(e),_hover:{bg:ne("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r)},_focusVisible:{bg:"transparent",borderColor:pn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ne("gray.100","whiteAlpha.50")(e)}}}),Vre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r),boxShadow:`0px 1px 0px 0px ${pn(t,r)}`},_focusVisible:{borderColor:pn(t,n),boxShadow:`0px 1px 0px 0px ${pn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Wre=Di({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),jre={outline:Bre,filled:zre,flushed:Vre,unstyled:Wre},it=Dre({baseStyle:Fre,sizes:$re,variants:jre,defaultProps:{size:"md",variant:"outline"}}),Ure=e=>({bg:ne("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Hre={baseStyle:Ure},Gre={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},qre={baseStyle:Gre},{defineMultiStyleConfig:Kre,definePartsStyle:Yre}=Lt(Zee.keys),Zre={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Xre=Yre({icon:Zre}),Qre=Kre({baseStyle:Xre}),{defineMultiStyleConfig:Jre,definePartsStyle:eoe}=Lt(Xee.keys),toe=e=>({bg:ne("#fff","gray.700")(e),boxShadow:ne("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),noe=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ne("gray.100","whiteAlpha.100")(e)},_active:{bg:ne("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ne("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),roe={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ooe={opacity:.6},ioe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},aoe={transitionProperty:"common",transitionDuration:"normal"},soe=eoe(e=>({button:aoe,list:nn(toe,e),item:nn(noe,e),groupTitle:roe,command:ooe,divider:ioe})),loe=Jre({baseStyle:soe}),{defineMultiStyleConfig:uoe,definePartsStyle:c2}=Lt(Qee.keys),coe={bg:"blackAlpha.600",zIndex:"modal"},foe=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},doe=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:ne("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:ne("lg","dark-lg")(e)}},poe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hoe={position:"absolute",top:"2",insetEnd:"3"},moe=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},goe={px:"6",py:"4"},voe=c2(e=>({overlay:coe,dialogContainer:nn(foe,e),dialog:nn(doe,e),header:poe,closeButton:hoe,body:nn(moe,e),footer:goe}));function xo(e){return c2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var yoe={xs:xo("xs"),sm:xo("sm"),md:xo("md"),lg:xo("lg"),xl:xo("xl"),"2xl":xo("2xl"),"3xl":xo("3xl"),"4xl":xo("4xl"),"5xl":xo("5xl"),"6xl":xo("6xl"),full:xo("full")},boe=uoe({baseStyle:voe,sizes:yoe,defaultProps:{size:"md"}}),xoe={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"}},JO=xoe,{defineMultiStyleConfig:Soe,definePartsStyle:eR}=Lt(Jee.keys),iw=Sr("number-input-stepper-width"),tR=Sr("number-input-input-padding"),woe=Mi(iw).add("0.5rem").toString(),Coe={[iw.variable]:"sizes.6",[tR.variable]:woe},_oe=e=>{var t;return((t=nn(it.baseStyle,e))==null?void 0:t.field)??{}},koe={width:[iw.reference]},Eoe=e=>({borderStart:"1px solid",borderStartColor:ne("inherit","whiteAlpha.300")(e),color:ne("inherit","whiteAlpha.800")(e),_active:{bg:ne("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Poe=eR(e=>({root:Coe,field:_oe,stepperGroup:koe,stepper:nn(Eoe,e)??{}}));function ch(e){var t,n;const r=(t=it.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((n=r.field)==null?void 0:n.fontSize)??"md",s=JO.fontSizes[i];return eR({field:{...r.field,paddingInlineEnd:tR.reference,verticalAlign:"top"},stepper:{fontSize:Mi(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Aoe={xs:ch("xs"),sm:ch("sm"),md:ch("md"),lg:ch("lg")},Toe=Soe({baseStyle:Poe,sizes:Aoe,variants:it.variants,defaultProps:it.defaultProps}),l3,Ioe={...(l3=it.baseStyle)==null?void 0:l3.field,textAlign:"center"},Ooe={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"}},u3,Roe={outline:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((u3=it.variants)==null?void 0:u3.unstyled.field)??{}},Moe={baseStyle:Ioe,sizes:Ooe,variants:Roe,defaultProps:it.defaultProps},{defineMultiStyleConfig:Noe,definePartsStyle:Loe}=Lt(ete.keys),sy=Sr("popper-bg"),Doe=Sr("popper-arrow-bg"),Foe=Sr("popper-arrow-shadow-color"),$oe={zIndex:10},Boe=e=>{const t=ne("white","gray.700")(e),n=ne("gray.200","whiteAlpha.300")(e);return{[sy.variable]:`colors.${t}`,bg:sy.reference,[Doe.variable]:sy.reference,[Foe.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},zoe={px:3,py:2,borderBottomWidth:"1px"},Voe={px:3,py:2},Woe={px:3,py:2,borderTopWidth:"1px"},joe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Uoe=Loe(e=>({popper:$oe,content:Boe(e),header:zoe,body:Voe,footer:Woe,closeButton:joe})),Hoe=Noe({baseStyle:Uoe}),{defineMultiStyleConfig:Goe,definePartsStyle:Oc}=Lt(tte.keys),qoe=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=ne(r3(),r3("1rem","rgba(0,0,0,0.1)"))(e),s=ne(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( to right, transparent 0%, ${pn(n,s)} 50%, transparent 100% )`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},Koe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Yoe=e=>({bg:ne("gray.100","whiteAlpha.300")(e)}),Zoe=e=>({transitionProperty:"common",transitionDuration:"slow",...qoe(e)}),Xoe=Oc(e=>({label:Koe,filledTrack:Zoe(e),track:Yoe(e)})),Qoe={xs:Oc({track:{h:"1"}}),sm:Oc({track:{h:"2"}}),md:Oc({track:{h:"3"}}),lg:Oc({track:{h:"4"}})},Joe=Goe({sizes:Qoe,baseStyle:Xoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eie,definePartsStyle:Vh}=Lt(nte.keys),tie=e=>{var t;const n=(t=nn(q0.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},nie=Vh(e=>{var t,n,r,o;return{label:(n=(t=q0).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=q0).baseStyle)==null?void 0:o.call(r,e).container,control:tie(e)}}),rie={md:Vh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Vh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Vh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},oie=eie({baseStyle:nie,sizes:rie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:iie,definePartsStyle:aie}=Lt(rte.keys),sie=e=>{var t;return{...(t=it.baseStyle)==null?void 0:t.field,bg:ne("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ne("white","gray.700")(e)}}},lie={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},uie=aie(e=>({field:sie(e),icon:lie})),fh={paddingInlineEnd:"8"},c3,f3,d3,p3,h3,m3,g3,v3,cie={lg:{...(c3=it.sizes)==null?void 0:c3.lg,field:{...(f3=it.sizes)==null?void 0:f3.lg.field,...fh}},md:{...(d3=it.sizes)==null?void 0:d3.md,field:{...(p3=it.sizes)==null?void 0:p3.md.field,...fh}},sm:{...(h3=it.sizes)==null?void 0:h3.sm,field:{...(m3=it.sizes)==null?void 0:m3.sm.field,...fh}},xs:{...(g3=it.sizes)==null?void 0:g3.xs,field:{...(v3=it.sizes)==null?void 0:v3.sm.field,...fh},icon:{insetEnd:"1"}}},fie=iie({baseStyle:uie,sizes:cie,variants:it.variants,defaultProps:it.defaultProps}),die=Qa("skeleton-start-color"),pie=Qa("skeleton-end-color"),hie=e=>{const t=ne("gray.100","gray.800")(e),n=ne("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=pn(i,r),u=pn(i,o);return{[die.variable]:s,[pie.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},mie={baseStyle:hie},gie=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:ne("white","gray.700")(e)}}),vie={baseStyle:gie},{defineMultiStyleConfig:yie,definePartsStyle:dg}=Lt(ote.keys),Uf=Qa("slider-thumb-size"),Hf=Qa("slider-track-size"),bie=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...nw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xie=e=>({...nw({orientation:e.orientation,horizontal:{h:Hf.reference},vertical:{w:Hf.reference}}),overflow:"hidden",borderRadius:"sm",bg:ne("gray.200","whiteAlpha.200")(e),_disabled:{bg:ne("gray.300","whiteAlpha.300")(e)}}),Sie=e=>{const{orientation:t}=e;return{...nw({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:Uf.reference,h:Uf.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"}}},wie=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:ne(`${t}.500`,`${t}.200`)(e)}},Cie=dg(e=>({container:bie(e),track:xie(e),thumb:Sie(e),filledTrack:wie(e)})),_ie=dg({container:{[Uf.variable]:"sizes.4",[Hf.variable]:"sizes.1"}}),kie=dg({container:{[Uf.variable]:"sizes.3.5",[Hf.variable]:"sizes.1"}}),Eie=dg({container:{[Uf.variable]:"sizes.2.5",[Hf.variable]:"sizes.0.5"}}),Pie={lg:_ie,md:kie,sm:Eie},Aie=yie({baseStyle:Cie,sizes:Pie,defaultProps:{size:"md",colorScheme:"blue"}}),Ss=Sr("spinner-size"),Tie={width:[Ss.reference],height:[Ss.reference]},Iie={xs:{[Ss.variable]:"sizes.3"},sm:{[Ss.variable]:"sizes.4"},md:{[Ss.variable]:"sizes.6"},lg:{[Ss.variable]:"sizes.8"},xl:{[Ss.variable]:"sizes.12"}},Oie={baseStyle:Tie,sizes:Iie,defaultProps:{size:"md"}},{defineMultiStyleConfig:Rie,definePartsStyle:nR}=Lt(ite.keys),Mie={fontWeight:"medium"},Nie={opacity:.8,marginBottom:"2"},Lie={verticalAlign:"baseline",fontWeight:"semibold"},Die={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Fie=nR({container:{},label:Mie,helpText:Nie,number:Lie,icon:Die}),$ie={md:nR({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Bie=Rie({baseStyle:Fie,sizes:$ie,defaultProps:{size:"md"}}),{defineMultiStyleConfig:zie,definePartsStyle:Wh}=Lt(ate.keys),rf=Sr("switch-track-width"),Ms=Sr("switch-track-height"),ly=Sr("switch-track-diff"),Vie=Mi.subtract(rf,Ms),f2=Sr("switch-thumb-x"),Wie=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[rf.reference],height:[Ms.reference],transitionProperty:"common",transitionDuration:"fast",bg:ne("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ne(`${t}.500`,`${t}.200`)(e)}}},jie={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ms.reference],height:[Ms.reference],_checked:{transform:`translateX(${f2.reference})`}},Uie=Wh(e=>({container:{[ly.variable]:Vie,[f2.variable]:ly.reference,_rtl:{[f2.variable]:Mi(ly).negate().toString()}},track:Wie(e),thumb:jie})),Hie={sm:Wh({container:{[rf.variable]:"1.375rem",[Ms.variable]:"sizes.3"}}),md:Wh({container:{[rf.variable]:"1.875rem",[Ms.variable]:"sizes.4"}}),lg:Wh({container:{[rf.variable]:"2.875rem",[Ms.variable]:"sizes.6"}})},Gie=zie({baseStyle:Uie,sizes:Hie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:qie,definePartsStyle:iu}=Lt(ste.keys),Kie=iu({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"}}),K0={"&[data-is-numeric=true]":{textAlign:"end"}},Yie=iu(e=>{const{colorScheme:t}=e;return{th:{color:ne("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},td:{borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},caption:{color:ne("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Zie=iu(e=>{const{colorScheme:t}=e;return{th:{color:ne("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},td:{borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},caption:{color:ne("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e)},td:{background:ne(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Xie={simple:Yie,striped:Zie,unstyled:{}},Qie={sm:iu({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:iu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:iu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Jie=qie({baseStyle:Kie,variants:Xie,sizes:Qie,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:eae,definePartsStyle:ri}=Lt(lte.keys),tae=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},nae=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}}},rae=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},oae={p:4},iae=ri(e=>({root:tae(e),tab:nae(e),tablist:rae(e),tabpanel:oae})),aae={sm:ri({tab:{py:1,px:4,fontSize:"sm"}}),md:ri({tab:{fontSize:"md",py:2,px:4}}),lg:ri({tab:{fontSize:"lg",py:3,px:4}})},sae=ri(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:ne("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),lae=ri(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:ne("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),uae=ri(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:ne("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ne("#fff","gray.800")(e),color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),cae=ri(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:pn(n,`${t}.700`),bg:pn(n,`${t}.100`)}}}}),fae=ri(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ne("gray.600","inherit")(e),_selected:{color:ne("#fff","gray.800")(e),bg:ne(`${t}.600`,`${t}.300`)(e)}}}}),dae=ri({}),pae={line:sae,enclosed:lae,"enclosed-colored":uae,"soft-rounded":cae,"solid-rounded":fae,unstyled:dae},hae=eae({baseStyle:iae,sizes:aae,variants:pae,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:mae,definePartsStyle:Ns}=Lt(ute.keys),gae={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},vae={lineHeight:1.2,overflow:"visible"},yae={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}},bae=Ns({container:gae,label:vae,closeButton:yae}),xae={sm:Ns({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ns({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Ns({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Sae={subtle:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.subtle(e)}}),solid:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.solid(e)}}),outline:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.outline(e)}})},wae=mae({variants:Sae,baseStyle:bae,sizes:xae,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),y3,Cae={...(y3=it.baseStyle)==null?void 0:y3.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},b3,_ae={outline:e=>{var t;return((t=it.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=it.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=it.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((b3=it.variants)==null?void 0:b3.unstyled.field)??{}},x3,S3,w3,C3,kae={xs:((x3=it.sizes)==null?void 0:x3.xs.field)??{},sm:((S3=it.sizes)==null?void 0:S3.sm.field)??{},md:((w3=it.sizes)==null?void 0:w3.md.field)??{},lg:((C3=it.sizes)==null?void 0:C3.lg.field)??{}},Eae={baseStyle:Cae,sizes:kae,variants:_ae,defaultProps:{size:"md",variant:"outline"}},uy=Sr("tooltip-bg"),_3=Sr("tooltip-fg"),Pae=Sr("popper-arrow-bg"),Aae=e=>{const t=ne("gray.700","gray.300")(e),n=ne("whiteAlpha.900","gray.900")(e);return{bg:uy.reference,color:_3.reference,[uy.variable]:`colors.${t}`,[_3.variable]:`colors.${n}`,[Pae.variable]:uy.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Tae={baseStyle:Aae},Iae={Accordion:Yte,Alert:rne,Avatar:hne,Badge:ef,Breadcrumb:_ne,Button:Mne,Checkbox:q0,CloseButton:jne,Code:qne,Container:Yne,Divider:ere,Drawer:fre,Editable:yre,Form:_re,FormError:Ire,FormLabel:Rre,Heading:Lre,Input:it,Kbd:Hre,Link:qre,List:Qre,Menu:loe,Modal:boe,NumberInput:Toe,PinInput:Moe,Popover:Hoe,Progress:Joe,Radio:oie,Select:fie,Skeleton:mie,SkipLink:vie,Slider:Aie,Spinner:Oie,Stat:Bie,Switch:Gie,Table:Jie,Tabs:hae,Tag:wae,Textarea:Eae,Tooltip:Tae},Oae={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Rae=Oae,Mae={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Nae=Mae,Lae={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"}},Dae=Lae,Fae={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},$ae=Fae,Bae={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"},zae=Bae,Vae={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"},Wae={"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)"},jae={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Uae={property:Vae,easing:Wae,duration:jae},Hae=Uae,Gae={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},qae=Gae,Kae={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Yae=Kae,Zae={breakpoints:Nae,zIndices:qae,radii:$ae,blur:Yae,colors:Dae,...JO,sizes:ZO,shadows:zae,space:YO,borders:Rae,transition:Hae},Xae={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-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Qae={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",wordWrap:"break-word"}}};function Jae(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var ese=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function tse(e){return Jae(e)?ese.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var nse="ltr",rse={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},rR={semanticTokens:Xae,direction:nse,...Zae,components:Iae,styles:Qae,config:rse};function ose(e,t){const n=Vn(e);C.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function d2(e,...t){return ise(e)?e(...t):e}var ise=e=>typeof e=="function";function ase(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var sse=(e,t)=>e.find(n=>n.id===t);function k3(e,t){const n=oR(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function oR(e,t){for(const[n,r]of Object.entries(e))if(sse(r,t))return n}function lse(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 use(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:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var cse={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ko=fse(cse);function fse(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(u=>u.id!=o)}))},notify:(o,i)=>{const s=dse(o,i),{position:u,id:c}=s;return r(f=>{const h=u.includes("top")?[s,...f[u]??[]]:[...f[u]??[],s];return{...f,[u]:h}}),c},update:(o,i)=>{!o||r(s=>{const u={...s},{position:c,index:f}=k3(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:iR(i)}),u})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=i[f].map(p=>({...p,requestClose:!0})),c),{...i}))},close:o=>{r(i=>{const s=oR(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(k3(Ko.getState(),o).position)}}var E3=0;function dse(e,t={}){E3+=1;const n=t.id??E3,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ko.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var pse=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:u,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return J.createElement(YT,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},S(XT,{children:c}),J.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&S(QT,{id:f?.title,children:o}),u&&S(ZT,{id:f?.description,display:"block",children:u})),i&&S(ag,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function iR(e={}){const{render:t,toastComponent:n=pse}=e;return o=>typeof t=="function"?t(o):S(n,{...o,...e})}function hse(e,t){const n=o=>({...t,...o,position:ase(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=iR(i);return Ko.notify(s,i)};return r.update=(o,i)=>{Ko.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(u=>r.update(s,{status:"success",duration:5e3,...d2(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...d2(i.error,u)}))},r.closeAll=Ko.closeAll,r.close=Ko.close,r.isActive=Ko.isActive,r}function mse(e){const{theme:t}=p6();return C.exports.useMemo(()=>hse(t.direction,e),[e,t.direction])}var gse={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]}}},aR=C.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=gse,toastSpacing:p="0.5rem"}=e,[h,m]=C.exports.useState(u),v=VH();B0(()=>{v||r?.()},[v]),B0(()=>{m(u)},[u]);const y=()=>m(null),x=()=>m(u),E=()=>{v&&o()};C.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),ose(E,h);const w=C.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),b=C.exports.useMemo(()=>lse(s),[s]);return J.createElement(so.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:x,custom:{position:s},style:b},J.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w},d2(n,{id:t,onClose:E})))});aR.displayName="ToastComponent";var vse=e=>{const t=C.exports.useSyncExternalStore(Ko.subscribe,Ko.getState,Ko.getState),{children:n,motionVariants:r,component:o=aR,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return S("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:use(c),children:S(Xi,{initial:!1,children:f.map(p=>S(o,{motionVariants:r,...p},p.id))})},c)});return ee(Rn,{children:[n,S(Gs,{...i,children:u})]})};function yse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function bse(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var xse={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function wc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var p2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},h2=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Sse(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnEsc:i=!0,onOpen:s,onClose:u,placement:c,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:y,modifiers:x,isDisabled:E,gutter:w,offset:b,direction:_,...P}=e,{isOpen:I,onOpen:N,onClose:L}=LI({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:z,getPopperProps:K,getArrowInnerProps:W,getArrowProps:te}=NI({enabled:I,placement:c,arrowPadding:y,modifiers:x,gutter:w,offset:b,direction:_}),be=C.exports.useId(),ye=`tooltip-${f??be}`,Ce=C.exports.useRef(null),ae=C.exports.useRef(),ke=C.exports.useRef(),j=C.exports.useCallback(()=>{ke.current&&(clearTimeout(ke.current),ke.current=void 0),L()},[L]),Y=wse(Ce,j),q=C.exports.useCallback(()=>{if(!E&&!ae.current){Y();const fe=h2(Ce);ae.current=fe.setTimeout(N,t)}},[Y,E,N,t]),R=C.exports.useCallback(()=>{ae.current&&(clearTimeout(ae.current),ae.current=void 0);const fe=h2(Ce);ke.current=fe.setTimeout(j,n)},[n,j]),U=C.exports.useCallback(()=>{I&&r&&R()},[r,R,I]),se=C.exports.useCallback(()=>{I&&o&&R()},[o,R,I]),ue=C.exports.useCallback(fe=>{I&&fe.key==="Escape"&&R()},[I,R]);Kb(()=>p2(Ce),"keydown",i?ue:void 0),C.exports.useEffect(()=>()=>{clearTimeout(ae.current),clearTimeout(ke.current)},[]),Kb(()=>Ce.current,"mouseleave",R);const he=C.exports.useCallback((fe={},Se=null)=>({...fe,ref:sn(Ce,Se,z),onMouseEnter:wc(fe.onMouseEnter,q),onClick:wc(fe.onClick,U),onMouseDown:wc(fe.onMouseDown,se),onFocus:wc(fe.onFocus,q),onBlur:wc(fe.onBlur,R),"aria-describedby":I?ye:void 0}),[q,R,se,I,ye,U,z]),me=C.exports.useCallback((fe={},Se=null)=>K({...fe,style:{...fe.style,[on.arrowSize.var]:m?`${m}px`:void 0,[on.arrowShadowColor.var]:v}},Se),[K,m,v]),Pe=C.exports.useCallback((fe={},Se=null)=>{const Le={...fe.style,position:"relative",transformOrigin:on.transformOrigin.varRef};return{ref:Se,...P,...fe,id:ye,role:"tooltip",style:Le}},[P,ye]);return{isOpen:I,show:q,hide:R,getTriggerProps:he,getTooltipProps:Pe,getTooltipPositionerProps:me,getArrowProps:te,getArrowInnerProps:W}}var cy="chakra-ui:close-tooltip";function wse(e,t){return C.exports.useEffect(()=>{const n=p2(e);return n.addEventListener(cy,t),()=>n.removeEventListener(cy,t)},[t,e]),()=>{const n=p2(e),r=h2(e);n.dispatchEvent(new r.CustomEvent(cy))}}var Cse=ie(so.div),za=ce((e,t)=>{const n=rr("Tooltip",e),r=St(e),o=Wm(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:y,...x}=r,E=m??v??p??y;if(E){n.bg=E;const z=nV(o,"colors",E);n[on.arrowBg.var]=z}const w=Sse({...x,direction:o.direction}),b=typeof i=="string"||u;let _;if(b)_=J.createElement(ie.span,{tabIndex:0,...w.getTriggerProps()},i);else{const z=C.exports.Children.only(i);_=C.exports.cloneElement(z,w.getTriggerProps(z.props,z.ref))}const P=!!c,I=w.getTooltipProps({},t),N=P?yse(I,["role","id"]):I,L=bse(I,["role","id"]);return s?ee(Rn,{children:[_,S(Xi,{children:w.isOpen&&J.createElement(Gs,{...h},J.createElement(ie.div,{...w.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ee(Cse,{variants:xse,...N,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,P&&J.createElement(ie.span,{srOnly:!0,...L},c),f&&J.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},J.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):S(Rn,{children:i})});za.displayName="Tooltip";var _se=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=S(CI,{environment:s,children:t});return S(QW,{theme:i,cssVarsRoot:u,children:ee(OA,{colorModeManager:n,options:i.config,children:[o?S(OY,{}):S(IY,{}),S(ej,{}),r?S(DI,{zIndex:r,children:c}):c]})})};function kse({children:e,theme:t=rR,toastOptions:n,...r}){return ee(_se,{theme:t,...r,children:[e,S(vse,{...n})]})}function Ese(...e){let t=[...e],n=e[e.length-1];return tse(n)&&t.length>1?t=t.slice(0,t.length-1):n=rR,vW(...t.map(r=>o=>jl(r)?r(o):Pse(o,r)))(n)}function Pse(...e){return Ua({},...e,sR)}function sR(e,t,n,r){if((jl(e)||jl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=jl(e)?e(...o):e,s=jl(t)?t(...o):t;return Ua({},i,s,sR)}}function Eo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:aw(e)?2:sw(e)?3:0}function au(e,t){return Mu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ase(e,t){return Mu(e)===2?e.get(t):e[t]}function lR(e,t,n){var r=Mu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function uR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function aw(e){return Nse&&e instanceof Map}function sw(e){return Lse&&e instanceof Set}function ys(e){return e.o||e.t}function lw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=fR(e);delete t[Mt];for(var n=su(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Tse),Object.freeze(e),t&&Vs(e,function(n,r){return uw(r,!0)},!0)),e}function Tse(){Eo(2)}function cw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function oi(e){var t=y2[e];return t||Eo(18,e),t}function Ise(e,t){y2[e]||(y2[e]=t)}function m2(){return Gf}function fy(e,t){t&&(oi("Patches"),e.u=[],e.s=[],e.v=t)}function Y0(e){g2(e),e.p.forEach(Ose),e.p=null}function g2(e){e===Gf&&(Gf=e.l)}function P3(e){return Gf={p:[],l:Gf,h:e,m:!0,_:0}}function Ose(e){var t=e[Mt];t.i===0||t.i===1?t.j():t.O=!0}function dy(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||oi("ES5").S(t,e,r),r?(n[Mt].P&&(Y0(t),Eo(4)),Yi(e)&&(e=Z0(t,e),t.l||X0(t,e)),t.u&&oi("Patches").M(n[Mt].t,e,t.u,t.s)):e=Z0(t,n,[]),Y0(t),t.u&&t.v(t.u,t.s),e!==cR?e:void 0}function Z0(e,t,n){if(cw(t))return t;var r=t[Mt];if(!r)return Vs(t,function(i,s){return A3(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return X0(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=lw(r.k):r.o;Vs(r.i===3?new Set(o):o,function(i,s){return A3(e,r,o,i,s,n)}),X0(e,o,!1),n&&e.u&&oi("Patches").R(r,n,e.u,e.s)}return r.o}function A3(e,t,n,r,o,i){if(qa(o)){var s=Z0(e,o,i&&t&&t.i!==3&&!au(t.D,r)?i.concat(r):void 0);if(lR(n,r,s),!qa(s))return;e.m=!1}if(Yi(o)&&!cw(o)){if(!e.h.F&&e._<1)return;Z0(e,o),t&&t.A.l||X0(e,o)}}function X0(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&uw(t,n)}function py(e,t){var n=e[Mt];return(n?ys(n):e)[t]}function T3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ca(e){e.P||(e.P=!0,e.l&&Ca(e.l))}function hy(e){e.o||(e.o=lw(e.t))}function v2(e,t,n){var r=aw(t)?oi("MapSet").N(t,n):sw(t)?oi("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:m2(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=qf;s&&(c=[u],f=Rc);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):oi("ES5").J(t,n);return(n?n.A:m2()).p.push(r),r}function Rse(e){return qa(e)||Eo(22,e),function t(n){if(!Yi(n))return n;var r,o=n[Mt],i=Mu(n);if(o){if(!o.P&&(o.i<4||!oi("ES5").K(o)))return o.t;o.I=!0,r=I3(n,i),o.I=!1}else r=I3(n,i);return Vs(r,function(s,u){o&&Ase(o.t,s)===u||lR(r,s,t(u))}),i===3?new Set(r):r}(e)}function I3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return lw(e)}function Mse(){function e(i,s){var u=o[i];return u?u.enumerable=s:o[i]=u={configurable:!0,enumerable:s,get:function(){var c=this[Mt];return qf.get(c,i)},set:function(c){var f=this[Mt];qf.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][Mt];if(!u.P)switch(u.i){case 5:r(u)&&Ca(u);break;case 4:n(u)&&Ca(u)}}}function n(i){for(var s=i.t,u=i.k,c=su(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==Mt){var h=s[p];if(h===void 0&&!au(s,p))return!0;var m=u[p],v=m&&m[Mt];if(v?v.t!==h:!uR(m,h))return!0}}var y=!!s[Mt];return c.length!==su(s).length+(y?0:1)}function r(i){var s=i.k;if(s.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c1?w-1:0),_=1;_1?p-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=oi("Patches").$;return qa(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Fr=new Fse,dR=Fr.produce;Fr.produceWithPatches.bind(Fr);Fr.setAutoFreeze.bind(Fr);Fr.setUseProxies.bind(Fr);Fr.applyPatches.bind(Fr);Fr.createDraft.bind(Fr);Fr.finishDraft.bind(Fr);function N3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function L3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Bn(1));return n(dw)(e,t)}if(typeof e!="function")throw new Error(Bn(2));var o=e,i=t,s=[],u=s,c=!1;function f(){u===s&&(u=s.slice())}function p(){if(c)throw new Error(Bn(3));return i}function h(x){if(typeof x!="function")throw new Error(Bn(4));if(c)throw new Error(Bn(5));var E=!0;return f(),u.push(x),function(){if(!!E){if(c)throw new Error(Bn(6));E=!1,f();var b=u.indexOf(x);u.splice(b,1),s=null}}}function m(x){if(!$se(x))throw new Error(Bn(7));if(typeof x.type>"u")throw new Error(Bn(8));if(c)throw new Error(Bn(9));try{c=!0,i=o(i,x)}finally{c=!1}for(var E=s=u,w=0;w"u")throw new Error(Bn(12));if(typeof n(void 0,{type:Q0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bn(13))})}function pR(e){for(var t=Object.keys(e),n={},r=0;r"u")throw f&&f.type,new Error(Bn(14));h[v]=E,p=p||E!==x}return p=p||i.length!==Object.keys(c).length,p?h:c}}function J0(){for(var e=arguments.length,t=new Array(e),n=0;n-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return em}function o(u,c){r(u)===em&&(n.unshift({key:u,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var jse=function(t,n){return t===n};function Use(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gle:mle;yR.useSyncExternalStore=Cu.useSyncExternalStore!==void 0?Cu.useSyncExternalStore:vle;(function(e){e.exports=yR})(vR);var bR={exports:{}},xR={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var pg=C.exports,yle=vR.exports;function ble(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xle=typeof Object.is=="function"?Object.is:ble,Sle=yle.useSyncExternalStore,wle=pg.useRef,Cle=pg.useEffect,_le=pg.useMemo,kle=pg.useDebugValue;xR.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=wle(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=_le(function(){function c(v){if(!f){if(f=!0,p=v,v=r(v),o!==void 0&&s.hasValue){var y=s.value;if(o(y,v))return h=y}return h=v}if(y=h,xle(p,v))return y;var x=r(v);return o!==void 0&&o(y,x)?y:(p=v,h=x)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var u=Sle(e,i[0],i[1]);return Cle(function(){s.hasValue=!0,s.value=u},[u]),kle(u),u};(function(e){e.exports=xR})(bR);function Ele(e){e()}let SR=Ele;const Ple=e=>SR=e,Ale=()=>SR,Ka=J.createContext(null);function wR(){return C.exports.useContext(Ka)}const Tle=()=>{throw new Error("uSES not initialized!")};let CR=Tle;const Ile=e=>{CR=e},Ole=(e,t)=>e===t;function Rle(e=Ka){const t=e===Ka?wR:()=>C.exports.useContext(e);return function(r,o=Ole){const{store:i,subscription:s,getServerState:u}=t(),c=CR(s.addNestedSub,i.getState,u||i.getState,r,o);return C.exports.useDebugValue(c),c}}const Mle=Rle();var Nle={exports:{}},vt={};/** * @license React * react-is.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 mw=Symbol.for("react.element"),gw=Symbol.for("react.portal"),hg=Symbol.for("react.fragment"),mg=Symbol.for("react.strict_mode"),gg=Symbol.for("react.profiler"),vg=Symbol.for("react.provider"),yg=Symbol.for("react.context"),Lle=Symbol.for("react.server_context"),bg=Symbol.for("react.forward_ref"),xg=Symbol.for("react.suspense"),Sg=Symbol.for("react.suspense_list"),wg=Symbol.for("react.memo"),Cg=Symbol.for("react.lazy"),Dle=Symbol.for("react.offscreen"),_R;_R=Symbol.for("react.module.reference");function uo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mw:switch(e=e.type,e){case hg:case gg:case mg:case xg:case Sg:return e;default:switch(e=e&&e.$$typeof,e){case Lle:case yg:case bg:case Cg:case wg:case vg:return e;default:return t}}case gw:return t}}}vt.ContextConsumer=yg;vt.ContextProvider=vg;vt.Element=mw;vt.ForwardRef=bg;vt.Fragment=hg;vt.Lazy=Cg;vt.Memo=wg;vt.Portal=gw;vt.Profiler=gg;vt.StrictMode=mg;vt.Suspense=xg;vt.SuspenseList=Sg;vt.isAsyncMode=function(){return!1};vt.isConcurrentMode=function(){return!1};vt.isContextConsumer=function(e){return uo(e)===yg};vt.isContextProvider=function(e){return uo(e)===vg};vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mw};vt.isForwardRef=function(e){return uo(e)===bg};vt.isFragment=function(e){return uo(e)===hg};vt.isLazy=function(e){return uo(e)===Cg};vt.isMemo=function(e){return uo(e)===wg};vt.isPortal=function(e){return uo(e)===gw};vt.isProfiler=function(e){return uo(e)===gg};vt.isStrictMode=function(e){return uo(e)===mg};vt.isSuspense=function(e){return uo(e)===xg};vt.isSuspenseList=function(e){return uo(e)===Sg};vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hg||e===gg||e===mg||e===xg||e===Sg||e===Dle||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===wg||e.$$typeof===vg||e.$$typeof===yg||e.$$typeof===bg||e.$$typeof===_R||e.getModuleId!==void 0)};vt.typeOf=uo;(function(e){e.exports=vt})(Nle);function Fle(){const e=Ale();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const z3={notify(){},get:()=>[]};function $le(e,t){let n,r=z3;function o(h){return c(),r.subscribe(h)}function i(){r.notify()}function s(){p.onStateChange&&p.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Fle())}function f(){n&&(n(),n=void 0,r.clear(),r=z3)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const Ble=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zle=Ble?C.exports.useLayoutEffect:C.exports.useEffect;function Vle({store:e,context:t,children:n,serverState:r}){const o=C.exports.useMemo(()=>{const u=$le(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=C.exports.useMemo(()=>e.getState(),[e]);return zle(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),S((t||Ka).Provider,{value:o,children:n})}function kR(e=Ka){const t=e===Ka?wR:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Wle=kR();function jle(e=Ka){const t=e===Ka?Wle:kR(e);return function(){return t().dispatch}}const Ule=jle();Ile(bR.exports.useSyncExternalStoreWithSelector);Ple(Qf.exports.unstable_batchedUpdates);var vw="persist:",ER="persist/FLUSH",yw="persist/REHYDRATE",PR="persist/PAUSE",AR="persist/PERSIST",TR="persist/PURGE",IR="persist/REGISTER",Hle=-1;function jh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jh=function(n){return typeof n}:jh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jh(e)}function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gle(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function rue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var oue=5e3;function OR(e,t){var n=e.version!==void 0?e.version:Hle;e.debug;var r=e.stateReconciler===void 0?Kle:e.stateReconciler,o=e.getStoredState||Xle,i=e.timeout!==void 0?e.timeout:oue,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},v=m._persist,y=nue(m,["_persist"]),x=y;if(h.type===AR){var E=!1,w=function(z,K){E||(h.rehydrate(e.key,z,K),E=!0)};if(i&&setTimeout(function(){!E&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=Yle(e)),v)return Pi({},t(x,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(L){var z=e.migrate||function(K,W){return Promise.resolve(K)};z(L,n).then(function(K){w(K)},function(K){w(void 0,K)})},function(L){w(void 0,L)}),Pi({},t(x,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===TR)return u=!0,h.result(Jle(e)),Pi({},t(x,h),{_persist:v});if(h.type===ER)return h.result(s&&s.flush()),Pi({},t(x,h),{_persist:v});if(h.type===PR)c=!0;else if(h.type===yw){if(u)return Pi({},x,{_persist:Pi({},v,{rehydrated:!0})});if(h.key===e.key){var b=t(x,h),_=h.payload,P=r!==!1&&_!==void 0?r(_,p,b,e):b,I=Pi({},P,{_persist:Pi({},v,{rehydrated:!0})});return f(I)}}}if(!v)return t(p,h);var N=t(x,h);return N===x?p:f(Pi({},N,{_persist:v}))}}function j3(e){return sue(e)||aue(e)||iue()}function iue(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aue(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sue(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:RR,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case IR:return x2({},t,{registry:[].concat(j3(t.registry),[n.key])});case yw:var r=t.registry.indexOf(n.key),o=j3(t.registry);return o.splice(r,1),x2({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function cue(e,t,n){var r=n||!1,o=dw(uue,RR,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:IR,key:f})},s=function(f,p,h){var m={type:yw,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=x2({},o,{purge:function(){var f=[];return e.dispatch({type:TR,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:ER,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:PR})},persist:function(){e.dispatch({type:AR,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var bw={},xw={};xw.__esModule=!0;xw.default=pue;function Uh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uh=function(n){return typeof n}:Uh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uh(e)}function vy(){}var fue={getItem:vy,setItem:vy,removeItem:vy};function due(e){if((typeof self>"u"?"undefined":Uh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function pue(e){var t="".concat(e,"Storage");return due(t)?self[t]:fue}bw.__esModule=!0;bw.default=gue;var hue=mue(xw);function mue(e){return e&&e.__esModule?e:{default:e}}function gue(e){var t=(0,hue.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,s){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var Sw=void 0,vue=yue(bw);function yue(e){return e&&e.__esModule?e:{default:e}}var bue=(0,vue.default)("local");Sw=bue;const S2=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),xue=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>({seed:parseInt(o[0]),weight:parseFloat(o[1])}));return ww(r)?r:!1},ww=e=>Boolean(typeof e=="string"?xue(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),w2=e=>e.reduce((t,n,r,o)=>{const{seed:i,weight:s}=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""),Sue=e=>e.split(",").map(r=>r.split(":")).map(r=>[parseInt(r[0]),parseFloat(r[1])]),MR={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},wue=MR,NR=pw({name:"options",initialState:wue,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=S2(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,o={...e,[n]:r};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&r===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{type:n,postprocessing:r,sampler:o,prompt:i,seed:s,variations:u,steps:c,cfg_scale:f,threshold:p,perlin:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:w,mask_image_path:b}=t.payload.image;n==="img2img"?(w&&(e.initialImagePath=w),b&&(e.maskPath=b),x&&(e.img2imgStrength=x),typeof E=="boolean"&&(e.shouldFitToWidthHeight=E),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,u&&u.length>0?(e.seedWeights=w2(u),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1);let _=["gfpgan","esrgan"];r&&r.length>0&&r.forEach(P=>{if(P.type==="gfpgan"){const{strength:I}=P;I&&(e.gfpganStrength=I),e.shouldRunGFPGAN=!0,_=_.filter(N=>N!=="gfpgan")}if(P.type==="esrgan"){const{scale:I,strength:N}=P;I&&(e.upscalingLevel=I),N&&(e.upscalingStrength=N),e.shouldRunESRGAN=!0,_=_.filter(L=>L!=="esrgan")}}),_.forEach(P=>{P==="esrgan"&&(e.shouldRunESRGAN=!1),P==="gfpgan"&&(e.shouldRunGFPGAN=!1)}),i&&(e.prompt=S2(i)),o&&(e.sampler=o),c&&(e.steps=c),f&&(e.cfgScale=f),p&&(e.threshold=p),h&&(e.perlin=h),typeof m=="boolean"&&(e.seamless=m),v&&(e.width=v),y&&(e.height=y)},resetOptionsState:e=>({...e,...MR}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:LR,setIterations:Cue,setSteps:DR,setCfgScale:FR,setThreshold:_ue,setPerlin:kue,setHeight:$R,setWidth:C2,setSampler:BR,setSeed:Yf,setSeamless:Eue,setImg2imgStrength:zR,setGfpganStrength:_2,setUpscalingLevel:k2,setUpscalingStrength:E2,setShouldUseInitImage:Pue,setInitialImagePath:_g,setMaskPath:Cw,resetSeed:_pe,resetOptionsState:kpe,setShouldFitToWidthHeight:VR,setParameter:Epe,setShouldGenerateVariations:Aue,setSeedWeights:WR,setVariationAmount:Tue,setAllParameters:jR,setShouldRunGFPGAN:Iue,setShouldRunESRGAN:Oue,setShouldRandomizeSeed:Rue}=NR.actions,Mue=NR.reducer;var Yt={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,y=1,x=2,E=1,w=2,b=4,_=8,P=16,I=32,N=64,L=128,z=256,K=512,W=30,te="...",be=800,_e=16,ye=1,Ce=2,ae=3,ke=1/0,j=9007199254740991,Y=17976931348623157e292,q=0/0,R=4294967295,U=R-1,se=R>>>1,ue=[["ary",L],["bind",E],["bindKey",w],["curry",_],["curryRight",P],["flip",K],["partial",I],["partialRight",N],["rearg",z]],he="[object Arguments]",me="[object Array]",Pe="[object AsyncFunction]",fe="[object Boolean]",Se="[object Date]",Le="[object DOMException]",at="[object Error]",At="[object Function]",hn="[object GeneratorFunction]",ge="[object Map]",Ie="[object Number]",et="[object Null]",De="[object Object]",Dt="[object Promise]",mn="[object Proxy]",st="[object RegExp]",wt="[object Set]",Xt="[object String]",Ut="[object Symbol]",de="[object Undefined]",Ee="[object WeakMap]",ft="[object WeakSet]",lt="[object ArrayBuffer]",re="[object DataView]",He="[object Float32Array]",kt="[object Float64Array]",wn="[object Int8Array]",Mn="[object Int16Array]",wr="[object Int32Array]",Mo="[object Uint8Array]",ci="[object Uint8ClampedArray]",jn="[object Uint16Array]",Vr="[object Uint32Array]",es=/\b__p \+= '';/g,Zs=/\b(__p \+=) '' \+/g,Eg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lu=/&(?:amp|lt|gt|quot|#39);/g,Qi=/[&<>"']/g,Pg=RegExp(Lu.source),fi=RegExp(Qi.source),Ag=/<%-([\s\S]+?)%>/g,Tg=/<%([\s\S]+?)%>/g,wd=/<%=([\s\S]+?)%>/g,Ig=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/,co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Du=/[\\^$.*+?()[\]{}|]/g,Rg=RegExp(Du.source),Fu=/^\s+/,Mg=/\s/,Ng=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ji=/\{\n\/\* \[wrapped with (.+)\] \*/,Lg=/,? & /,Dg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fg=/[()=,{}\[\]\/\s]/,$g=/\\(\\)?/g,Bg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,di=/\w*$/,zg=/^[-+]0x[0-9a-f]+$/i,Vg=/^0b[01]+$/i,Wg=/^\[object .+?Constructor\]$/,jg=/^0o[0-7]+$/i,Ug=/^(?:0|[1-9]\d*)$/,Hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ea=/($^)/,Gg=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",$u="\\u0300-\\u036f",qg="\\ufe20-\\ufe2f",Xs="\\u20d0-\\u20ff",Bu=$u+qg+Xs,Cd="\\u2700-\\u27bf",_d="a-z\\xdf-\\xf6\\xf8-\\xff",Kg="\\xac\\xb1\\xd7\\xf7",kd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yg="\\u2000-\\u206f",Zg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ed="A-Z\\xc0-\\xd6\\xd8-\\xde",Pd="\\ufe0e\\ufe0f",Ad=Kg+kd+Yg+Zg,zu="['\u2019]",Xg="["+pi+"]",Td="["+Ad+"]",Qs="["+Bu+"]",Id="\\d+",Js="["+Cd+"]",el="["+_d+"]",Od="[^"+pi+Ad+Id+Cd+_d+Ed+"]",Vu="\\ud83c[\\udffb-\\udfff]",Rd="(?:"+Qs+"|"+Vu+")",Md="[^"+pi+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",ju="[\\ud800-\\udbff][\\udc00-\\udfff]",hi="["+Ed+"]",Nd="\\u200d",Ld="(?:"+el+"|"+Od+")",Qg="(?:"+hi+"|"+Od+")",tl="(?:"+zu+"(?:d|ll|m|re|s|t|ve))?",Dd="(?:"+zu+"(?:D|LL|M|RE|S|T|VE))?",Fd=Rd+"?",$d="["+Pd+"]?",nl="(?:"+Nd+"(?:"+[Md,Wu,ju].join("|")+")"+$d+Fd+")*",Uu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rl=$d+Fd+nl,Jg="(?:"+[Js,Wu,ju].join("|")+")"+rl,Bd="(?:"+[Md+Qs+"?",Qs,Wu,ju,Xg].join("|")+")",Gu=RegExp(zu,"g"),zd=RegExp(Qs,"g"),fo=RegExp(Vu+"(?="+Vu+")|"+Bd+rl,"g"),ts=RegExp([hi+"?"+el+"+"+tl+"(?="+[Td,hi,"$"].join("|")+")",Qg+"+"+Dd+"(?="+[Td,hi+Ld,"$"].join("|")+")",hi+"?"+Ld+"+"+tl,hi+"+"+Dd,Hu,Uu,Id,Jg].join("|"),"g"),ev=RegExp("["+Nd+pi+Bu+Pd+"]"),Vd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wd=-1,Ct={};Ct[He]=Ct[kt]=Ct[wn]=Ct[Mn]=Ct[wr]=Ct[Mo]=Ct[ci]=Ct[jn]=Ct[Vr]=!0,Ct[he]=Ct[me]=Ct[lt]=Ct[fe]=Ct[re]=Ct[Se]=Ct[at]=Ct[At]=Ct[ge]=Ct[Ie]=Ct[De]=Ct[st]=Ct[wt]=Ct[Xt]=Ct[Ee]=!1;var yt={};yt[he]=yt[me]=yt[lt]=yt[re]=yt[fe]=yt[Se]=yt[He]=yt[kt]=yt[wn]=yt[Mn]=yt[wr]=yt[ge]=yt[Ie]=yt[De]=yt[st]=yt[wt]=yt[Xt]=yt[Ut]=yt[Mo]=yt[ci]=yt[jn]=yt[Vr]=!0,yt[at]=yt[At]=yt[Ee]=!1;var jd={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},nv={"&":"&","<":"<",">":">",'"':""","'":"'"},O={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},H=parseFloat,ve=parseInt,Ge=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,dt=typeof self=="object"&&self&&self.Object===Object&&self,Be=Ge||dt||Function("return this")(),je=t&&!t.nodeType&&t,tt=je&&!0&&e&&!e.nodeType&&e,Un=tt&&tt.exports===je,Cn=Un&&Ge.process,gn=function(){try{var B=tt&&tt.require&&tt.require("util").types;return B||Cn&&Cn.binding&&Cn.binding("util")}catch{}}(),ol=gn&&gn.isArrayBuffer,il=gn&&gn.isDate,qu=gn&&gn.isMap,Pw=gn&&gn.isRegExp,Aw=gn&&gn.isSet,Tw=gn&&gn.isTypedArray;function Cr(B,Z,G){switch(G.length){case 0:return B.call(Z);case 1:return B.call(Z,G[0]);case 2:return B.call(Z,G[0],G[1]);case 3:return B.call(Z,G[0],G[1],G[2])}return B.apply(Z,G)}function O8(B,Z,G,xe){for(var Fe=-1,nt=B==null?0:B.length;++Fe-1}function rv(B,Z,G){for(var xe=-1,Fe=B==null?0:B.length;++xe-1;);return G}function Fw(B,Z){for(var G=B.length;G--&&al(Z,B[G],0)>-1;);return G}function z8(B,Z){for(var G=B.length,xe=0;G--;)B[G]===Z&&++xe;return xe}var V8=sv(jd),W8=sv(nv);function j8(B){return"\\"+F[B]}function U8(B,Z){return B==null?n:B[Z]}function sl(B){return ev.test(B)}function H8(B){return Vd.test(B)}function G8(B){for(var Z,G=[];!(Z=B.next()).done;)G.push(Z.value);return G}function fv(B){var Z=-1,G=Array(B.size);return B.forEach(function(xe,Fe){G[++Z]=[Fe,xe]}),G}function $w(B,Z){return function(G){return B(Z(G))}}function ra(B,Z){for(var G=-1,xe=B.length,Fe=0,nt=[];++G-1}function M9(a,l){var d=this.__data__,g=sp(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}mi.prototype.clear=T9,mi.prototype.delete=I9,mi.prototype.get=O9,mi.prototype.has=R9,mi.prototype.set=M9;function gi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function Hr(a,l,d,g,k,T){var M,D=l&h,V=l&m,X=l&v;if(d&&(M=k?d(a,g,k,T):d(a)),M!==n)return M;if(!Ft(a))return a;var Q=$e(a);if(Q){if(M=F7(a),!D)return ir(a,M)}else{var oe=Ln(a),pe=oe==At||oe==hn;if(ua(a))return x5(a,D);if(oe==De||oe==he||pe&&!k){if(M=V||pe?{}:B5(a),!D)return V?E7(a,Y9(M,a)):k7(a,Zw(M,a))}else{if(!yt[oe])return k?a:{};M=$7(a,oe,D)}}T||(T=new ho);var Ae=T.get(a);if(Ae)return Ae;T.set(a,M),hC(a)?a.forEach(function(Me){M.add(Hr(Me,l,d,Me,a,T))}):dC(a)&&a.forEach(function(Me,qe){M.set(qe,Hr(Me,l,d,qe,a,T))});var Re=X?V?Fv:Dv:V?sr:vn,Ve=Q?n:Re(a);return Wr(Ve||a,function(Me,qe){Ve&&(qe=Me,Me=a[qe]),ec(M,qe,Hr(Me,l,d,qe,a,T))}),M}function Z9(a){var l=vn(a);return function(d){return Xw(d,a,l)}}function Xw(a,l,d){var g=d.length;if(a==null)return!g;for(a=_t(a);g--;){var k=d[g],T=l[k],M=a[k];if(M===n&&!(k in a)||!T(M))return!1}return!0}function Qw(a,l,d){if(typeof a!="function")throw new jr(s);return sc(function(){a.apply(n,d)},l)}function tc(a,l,d,g){var k=-1,T=Ud,M=!0,D=a.length,V=[],X=l.length;if(!D)return V;d&&(l=Rt(l,_r(d))),g?(T=rv,M=!1):l.length>=o&&(T=Ku,M=!1,l=new os(l));e:for(;++kk?0:k+d),g=g===n||g>k?k:ze(g),g<0&&(g+=k),g=d>g?0:gC(g);d0&&d(D)?l>1?_n(D,l-1,d,g,k):na(k,D):g||(k[k.length]=D)}return k}var yv=E5(),t5=E5(!0);function No(a,l){return a&&yv(a,l,vn)}function bv(a,l){return a&&t5(a,l,vn)}function up(a,l){return ta(l,function(d){return Si(a[d])})}function as(a,l){l=sa(l,a);for(var d=0,g=l.length;a!=null&&dl}function J9(a,l){return a!=null&&pt.call(a,l)}function e7(a,l){return a!=null&&l in _t(a)}function t7(a,l,d){return a>=Nn(l,d)&&a=120&&Q.length>=120)?new os(M&&Q):n}Q=a[0];var oe=-1,pe=D[0];e:for(;++oe-1;)D!==a&&ep.call(D,V,1),ep.call(a,V,1);return a}function d5(a,l){for(var d=a?l.length:0,g=d-1;d--;){var k=l[d];if(d==g||k!==T){var T=k;xi(k)?ep.call(a,k,1):Tv(a,k)}}return a}function Ev(a,l){return a+rp(Gw()*(l-a+1))}function h7(a,l,d,g){for(var k=-1,T=cn(np((l-a)/(d||1)),0),M=G(T);T--;)M[g?T:++k]=a,a+=d;return M}function Pv(a,l){var d="";if(!a||l<1||l>j)return d;do l%2&&(d+=a),l=rp(l/2),l&&(a+=a);while(l);return d}function Ue(a,l){return Uv(W5(a,l,lr),a+"")}function m7(a){return Yw(yl(a))}function g7(a,l){var d=yl(a);return xp(d,is(l,0,d.length))}function oc(a,l,d,g){if(!Ft(a))return a;l=sa(l,a);for(var k=-1,T=l.length,M=T-1,D=a;D!=null&&++kk?0:k+l),d=d>k?k:d,d<0&&(d+=k),k=l>d?0:d-l>>>0,l>>>=0;for(var T=G(k);++g>>1,M=a[T];M!==null&&!Er(M)&&(d?M<=l:M=o){var X=l?null:I7(a);if(X)return Gd(X);M=!1,k=Ku,V=new os}else V=l?[]:D;e:for(;++g=g?a:Gr(a,l,d)}var b5=s9||function(a){return Be.clearTimeout(a)};function x5(a,l){if(l)return a.slice();var d=a.length,g=Vw?Vw(d):new a.constructor(d);return a.copy(g),g}function Mv(a){var l=new a.constructor(a.byteLength);return new Qd(l).set(new Qd(a)),l}function S7(a,l){var d=l?Mv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function w7(a){var l=new a.constructor(a.source,di.exec(a));return l.lastIndex=a.lastIndex,l}function C7(a){return Ju?_t(Ju.call(a)):{}}function S5(a,l){var d=l?Mv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function w5(a,l){if(a!==l){var d=a!==n,g=a===null,k=a===a,T=Er(a),M=l!==n,D=l===null,V=l===l,X=Er(l);if(!D&&!X&&!T&&a>l||T&&M&&V&&!D&&!X||g&&M&&V||!d&&V||!k)return 1;if(!g&&!T&&!X&&a=D)return V;var X=d[g];return V*(X=="desc"?-1:1)}}return a.index-l.index}function C5(a,l,d,g){for(var k=-1,T=a.length,M=d.length,D=-1,V=l.length,X=cn(T-M,0),Q=G(V+X),oe=!g;++D1?d[k-1]:n,M=k>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(k--,T):n,M&&Gn(d[0],d[1],M)&&(T=k<3?n:T,k=1),l=_t(l);++g-1?k[T?l[M]:M]:n}}function T5(a){return bi(function(l){var d=l.length,g=d,k=Ur.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new jr(s);if(k&&!M&&yp(T)=="wrapper")var M=new Ur([],!0)}for(g=M?g:d;++g1&&Ze.reverse(),Q&&VD))return!1;var X=T.get(a),Q=T.get(l);if(X&&Q)return X==l&&Q==a;var oe=-1,pe=!0,Ae=d&x?new os:n;for(T.set(a,l),T.set(l,a);++oe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(Ng,`{ /* [wrapped with `+l+`] */ `)}function z7(a){return $e(a)||us(a)||!!(Uw&&a&&a[Uw])}function xi(a,l){var d=typeof a;return l=l??j,!!l&&(d=="number"||d!="symbol"&&Ug.test(a))&&a>-1&&a%1==0&&a0){if(++l>=be)return arguments[0]}else l=0;return a.apply(n,arguments)}}function xp(a,l){var d=-1,g=a.length,k=g-1;for(l=l===n?g:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,eC(a,d)});function tC(a){var l=A(a);return l.__chain__=!0,l}function XM(a,l){return l(a),a}function Sp(a,l){return l(a)}var QM=bi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,k=function(T){return vv(T,a)};return l>1||this.__actions__.length||!(g instanceof Ke)||!xi(d)?this.thru(k):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:Sp,args:[k],thisArg:n}),new Ur(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function JM(){return tC(this)}function eN(){return new Ur(this.value(),this.__chain__)}function tN(){this.__values__===n&&(this.__values__=mC(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function nN(){return this}function rN(a){for(var l,d=this;d instanceof ap;){var g=K5(d);g.__index__=0,g.__values__=n,l?k.__wrapped__=g:l=g;var k=g;d=d.__wrapped__}return k.__wrapped__=a,l}function oN(){var a=this.__wrapped__;if(a instanceof Ke){var l=a;return this.__actions__.length&&(l=new Ke(this)),l=l.reverse(),l.__actions__.push({func:Sp,args:[Hv],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Hv)}function iN(){return v5(this.__wrapped__,this.__actions__)}var aN=pp(function(a,l,d){pt.call(a,d)?++a[d]:vi(a,d,1)});function sN(a,l,d){var g=$e(a)?Iw:X9;return d&&Gn(a,l,d)&&(l=n),g(a,Oe(l,3))}function lN(a,l){var d=$e(a)?ta:e5;return d(a,Oe(l,3))}var uN=A5(Y5),cN=A5(Z5);function fN(a,l){return _n(wp(a,l),1)}function dN(a,l){return _n(wp(a,l),ke)}function pN(a,l,d){return d=d===n?1:ze(d),_n(wp(a,l),d)}function nC(a,l){var d=$e(a)?Wr:ia;return d(a,Oe(l,3))}function rC(a,l){var d=$e(a)?R8:Jw;return d(a,Oe(l,3))}var hN=pp(function(a,l,d){pt.call(a,d)?a[d].push(l):vi(a,d,[l])});function mN(a,l,d,g){a=ar(a)?a:yl(a),d=d&&!g?ze(d):0;var k=a.length;return d<0&&(d=cn(k+d,0)),Pp(a)?d<=k&&a.indexOf(l,d)>-1:!!k&&al(a,l,d)>-1}var gN=Ue(function(a,l,d){var g=-1,k=typeof l=="function",T=ar(a)?G(a.length):[];return ia(a,function(M){T[++g]=k?Cr(l,M,d):nc(M,l,d)}),T}),vN=pp(function(a,l,d){vi(a,d,l)});function wp(a,l){var d=$e(a)?Rt:a5;return d(a,Oe(l,3))}function yN(a,l,d,g){return a==null?[]:($e(l)||(l=l==null?[]:[l]),d=g?n:d,$e(d)||(d=d==null?[]:[d]),c5(a,l,d))}var bN=pp(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function xN(a,l,d){var g=$e(a)?ov:Nw,k=arguments.length<3;return g(a,Oe(l,4),d,k,ia)}function SN(a,l,d){var g=$e(a)?M8:Nw,k=arguments.length<3;return g(a,Oe(l,4),d,k,Jw)}function wN(a,l){var d=$e(a)?ta:e5;return d(a,kp(Oe(l,3)))}function CN(a){var l=$e(a)?Yw:m7;return l(a)}function _N(a,l,d){(d?Gn(a,l,d):l===n)?l=1:l=ze(l);var g=$e(a)?G9:g7;return g(a,l)}function kN(a){var l=$e(a)?q9:y7;return l(a)}function EN(a){if(a==null)return 0;if(ar(a))return Pp(a)?ll(a):a.length;var l=Ln(a);return l==ge||l==wt?a.size:Cv(a).length}function PN(a,l,d){var g=$e(a)?iv:b7;return d&&Gn(a,l,d)&&(l=n),g(a,Oe(l,3))}var AN=Ue(function(a,l){if(a==null)return[];var d=l.length;return d>1&&Gn(a,l[0],l[1])?l=[]:d>2&&Gn(l[0],l[1],l[2])&&(l=[l[0]]),c5(a,_n(l,1),[])}),Cp=l9||function(){return Be.Date.now()};function TN(a,l){if(typeof l!="function")throw new jr(s);return a=ze(a),function(){if(--a<1)return l.apply(this,arguments)}}function oC(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,yi(a,L,n,n,n,n,l)}function iC(a,l){var d;if(typeof l!="function")throw new jr(s);return a=ze(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var qv=Ue(function(a,l,d){var g=E;if(d.length){var k=ra(d,gl(qv));g|=I}return yi(a,g,l,d,k)}),aC=Ue(function(a,l,d){var g=E|w;if(d.length){var k=ra(d,gl(aC));g|=I}return yi(l,g,a,d,k)});function sC(a,l,d){l=d?n:l;var g=yi(a,_,n,n,n,n,n,l);return g.placeholder=sC.placeholder,g}function lC(a,l,d){l=d?n:l;var g=yi(a,P,n,n,n,n,n,l);return g.placeholder=lC.placeholder,g}function uC(a,l,d){var g,k,T,M,D,V,X=0,Q=!1,oe=!1,pe=!0;if(typeof a!="function")throw new jr(s);l=Kr(l)||0,Ft(d)&&(Q=!!d.leading,oe="maxWait"in d,T=oe?cn(Kr(d.maxWait)||0,l):T,pe="trailing"in d?!!d.trailing:pe);function Ae(Jt){var go=g,Ci=k;return g=k=n,X=Jt,M=a.apply(Ci,go),M}function Re(Jt){return X=Jt,D=sc(qe,l),Q?Ae(Jt):M}function Ve(Jt){var go=Jt-V,Ci=Jt-X,AC=l-go;return oe?Nn(AC,T-Ci):AC}function Me(Jt){var go=Jt-V,Ci=Jt-X;return V===n||go>=l||go<0||oe&&Ci>=T}function qe(){var Jt=Cp();if(Me(Jt))return Ze(Jt);D=sc(qe,Ve(Jt))}function Ze(Jt){return D=n,pe&&g?Ae(Jt):(g=k=n,M)}function Pr(){D!==n&&b5(D),X=0,g=V=k=D=n}function qn(){return D===n?M:Ze(Cp())}function Ar(){var Jt=Cp(),go=Me(Jt);if(g=arguments,k=this,V=Jt,go){if(D===n)return Re(V);if(oe)return b5(D),D=sc(qe,l),Ae(V)}return D===n&&(D=sc(qe,l)),M}return Ar.cancel=Pr,Ar.flush=qn,Ar}var IN=Ue(function(a,l){return Qw(a,1,l)}),ON=Ue(function(a,l,d){return Qw(a,Kr(l)||0,d)});function RN(a){return yi(a,K)}function _p(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new jr(s);var d=function(){var g=arguments,k=l?l.apply(this,g):g[0],T=d.cache;if(T.has(k))return T.get(k);var M=a.apply(this,g);return d.cache=T.set(k,M)||T,M};return d.cache=new(_p.Cache||gi),d}_p.Cache=gi;function kp(a){if(typeof a!="function")throw new jr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function MN(a){return iC(2,a)}var NN=x7(function(a,l){l=l.length==1&&$e(l[0])?Rt(l[0],_r(Oe())):Rt(_n(l,1),_r(Oe()));var d=l.length;return Ue(function(g){for(var k=-1,T=Nn(g.length,d);++k=l}),us=r5(function(){return arguments}())?r5:function(a){return Ht(a)&&pt.call(a,"callee")&&!jw.call(a,"callee")},$e=G.isArray,YN=ol?_r(ol):r7;function ar(a){return a!=null&&Ep(a.length)&&!Si(a)}function Qt(a){return Ht(a)&&ar(a)}function ZN(a){return a===!0||a===!1||Ht(a)&&Hn(a)==fe}var ua=c9||i1,XN=il?_r(il):o7;function QN(a){return Ht(a)&&a.nodeType===1&&!lc(a)}function JN(a){if(a==null)return!0;if(ar(a)&&($e(a)||typeof a=="string"||typeof a.splice=="function"||ua(a)||vl(a)||us(a)))return!a.length;var l=Ln(a);if(l==ge||l==wt)return!a.size;if(ac(a))return!Cv(a).length;for(var d in a)if(pt.call(a,d))return!1;return!0}function eL(a,l){return rc(a,l)}function tL(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?rc(a,l,n,d):!!g}function Yv(a){if(!Ht(a))return!1;var l=Hn(a);return l==at||l==Le||typeof a.message=="string"&&typeof a.name=="string"&&!lc(a)}function nL(a){return typeof a=="number"&&Hw(a)}function Si(a){if(!Ft(a))return!1;var l=Hn(a);return l==At||l==hn||l==Pe||l==mn}function fC(a){return typeof a=="number"&&a==ze(a)}function Ep(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Ft(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Ht(a){return a!=null&&typeof a=="object"}var dC=qu?_r(qu):a7;function rL(a,l){return a===l||wv(a,l,Bv(l))}function oL(a,l,d){return d=typeof d=="function"?d:n,wv(a,l,Bv(l),d)}function iL(a){return pC(a)&&a!=+a}function aL(a){if(j7(a))throw new Fe(i);return o5(a)}function sL(a){return a===null}function lL(a){return a==null}function pC(a){return typeof a=="number"||Ht(a)&&Hn(a)==Ie}function lc(a){if(!Ht(a)||Hn(a)!=De)return!1;var l=Jd(a);if(l===null)return!0;var d=pt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Yd.call(d)==o9}var Zv=Pw?_r(Pw):s7;function uL(a){return fC(a)&&a>=-j&&a<=j}var hC=Aw?_r(Aw):l7;function Pp(a){return typeof a=="string"||!$e(a)&&Ht(a)&&Hn(a)==Xt}function Er(a){return typeof a=="symbol"||Ht(a)&&Hn(a)==Ut}var vl=Tw?_r(Tw):u7;function cL(a){return a===n}function fL(a){return Ht(a)&&Ln(a)==Ee}function dL(a){return Ht(a)&&Hn(a)==ft}var pL=vp(_v),hL=vp(function(a,l){return a<=l});function mC(a){if(!a)return[];if(ar(a))return Pp(a)?po(a):ir(a);if(Yu&&a[Yu])return G8(a[Yu]());var l=Ln(a),d=l==ge?fv:l==wt?Gd:yl;return d(a)}function wi(a){if(!a)return a===0?a:0;if(a=Kr(a),a===ke||a===-ke){var l=a<0?-1:1;return l*Y}return a===a?a:0}function ze(a){var l=wi(a),d=l%1;return l===l?d?l-d:l:0}function gC(a){return a?is(ze(a),0,R):0}function Kr(a){if(typeof a=="number")return a;if(Er(a))return q;if(Ft(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=Lw(a);var d=Vg.test(a);return d||jg.test(a)?ve(a.slice(2),d?2:8):zg.test(a)?q:+a}function vC(a){return Lo(a,sr(a))}function mL(a){return a?is(ze(a),-j,j):a===0?a:0}function ut(a){return a==null?"":kr(a)}var gL=hl(function(a,l){if(ac(l)||ar(l)){Lo(l,vn(l),a);return}for(var d in l)pt.call(l,d)&&ec(a,d,l[d])}),yC=hl(function(a,l){Lo(l,sr(l),a)}),Ap=hl(function(a,l,d,g){Lo(l,sr(l),a,g)}),vL=hl(function(a,l,d,g){Lo(l,vn(l),a,g)}),yL=bi(vv);function bL(a,l){var d=pl(a);return l==null?d:Zw(d,l)}var xL=Ue(function(a,l){a=_t(a);var d=-1,g=l.length,k=g>2?l[2]:n;for(k&&Gn(l[0],l[1],k)&&(g=1);++d1),T}),Lo(a,Fv(a),d),g&&(d=Hr(d,h|m|v,O7));for(var k=l.length;k--;)Tv(d,l[k]);return d});function $L(a,l){return xC(a,kp(Oe(l)))}var BL=bi(function(a,l){return a==null?{}:d7(a,l)});function xC(a,l){if(a==null)return{};var d=Rt(Fv(a),function(g){return[g]});return l=Oe(l),f5(a,d,function(g,k){return l(g,k[0])})}function zL(a,l,d){l=sa(l,a);var g=-1,k=l.length;for(k||(k=1,a=n);++gl){var g=a;a=l,l=g}if(d||a%1||l%1){var k=Gw();return Nn(a+k*(l-a+H("1e-"+((k+"").length-1))),l)}return Ev(a,l)}var XL=ml(function(a,l,d){return l=l.toLowerCase(),a+(d?CC(l):l)});function CC(a){return Jv(ut(a).toLowerCase())}function _C(a){return a=ut(a),a&&a.replace(Hg,V8).replace(zd,"")}function QL(a,l,d){a=ut(a),l=kr(l);var g=a.length;d=d===n?g:is(ze(d),0,g);var k=d;return d-=l.length,d>=0&&a.slice(d,k)==l}function JL(a){return a=ut(a),a&&fi.test(a)?a.replace(Qi,W8):a}function eD(a){return a=ut(a),a&&Rg.test(a)?a.replace(Du,"\\$&"):a}var tD=ml(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),nD=ml(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),rD=P5("toLowerCase");function oD(a,l,d){a=ut(a),l=ze(l);var g=l?ll(a):0;if(!l||g>=l)return a;var k=(l-g)/2;return gp(rp(k),d)+a+gp(np(k),d)}function iD(a,l,d){a=ut(a),l=ze(l);var g=l?ll(a):0;return l&&g>>0,d?(a=ut(a),a&&(typeof l=="string"||l!=null&&!Zv(l))&&(l=kr(l),!l&&sl(a))?la(po(a),0,d):a.split(l,d)):[]}var dD=ml(function(a,l,d){return a+(d?" ":"")+Jv(l)});function pD(a,l,d){return a=ut(a),d=d==null?0:is(ze(d),0,a.length),l=kr(l),a.slice(d,d+l.length)==l}function hD(a,l,d){var g=A.templateSettings;d&&Gn(a,l,d)&&(l=n),a=ut(a),l=Ap({},l,g,N5);var k=Ap({},l.imports,g.imports,N5),T=vn(k),M=cv(k,T),D,V,X=0,Q=l.interpolate||ea,oe="__p += '",pe=dv((l.escape||ea).source+"|"+Q.source+"|"+(Q===wd?Bg:ea).source+"|"+(l.evaluate||ea).source+"|$","g"),Ae="//# sourceURL="+(pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wd+"]")+` `;a.replace(pe,function(Me,qe,Ze,Pr,qn,Ar){return Ze||(Ze=Pr),oe+=a.slice(X,Ar).replace(Gg,j8),qe&&(D=!0,oe+=`' + __e(`+qe+`) + '`),qn&&(V=!0,oe+=`'; `+qn+`; __p += '`),Ze&&(oe+=`' + ((__t = (`+Ze+`)) == null ? '' : __t) + '`),X=Ar+Me.length,Me}),oe+=`'; `;var Re=pt.call(l,"variable")&&l.variable;if(!Re)oe=`with (obj) { `+oe+` } `;else if(Fg.test(Re))throw new Fe(u);oe=(V?oe.replace(es,""):oe).replace(Zs,"$1").replace(Eg,"$1;"),oe="function("+(Re||"obj")+`) { `+(Re?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(V?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p }`;var Ve=EC(function(){return nt(T,Ae+"return "+oe).apply(n,M)});if(Ve.source=oe,Yv(Ve))throw Ve;return Ve}function mD(a){return ut(a).toLowerCase()}function gD(a){return ut(a).toUpperCase()}function vD(a,l,d){if(a=ut(a),a&&(d||l===n))return Lw(a);if(!a||!(l=kr(l)))return a;var g=po(a),k=po(l),T=Dw(g,k),M=Fw(g,k)+1;return la(g,T,M).join("")}function yD(a,l,d){if(a=ut(a),a&&(d||l===n))return a.slice(0,Bw(a)+1);if(!a||!(l=kr(l)))return a;var g=po(a),k=Fw(g,po(l))+1;return la(g,0,k).join("")}function bD(a,l,d){if(a=ut(a),a&&(d||l===n))return a.replace(Fu,"");if(!a||!(l=kr(l)))return a;var g=po(a),k=Dw(g,po(l));return la(g,k).join("")}function xD(a,l){var d=W,g=te;if(Ft(l)){var k="separator"in l?l.separator:k;d="length"in l?ze(l.length):d,g="omission"in l?kr(l.omission):g}a=ut(a);var T=a.length;if(sl(a)){var M=po(a);T=M.length}if(d>=T)return a;var D=d-ll(g);if(D<1)return g;var V=M?la(M,0,D).join(""):a.slice(0,D);if(k===n)return V+g;if(M&&(D+=V.length-D),Zv(k)){if(a.slice(D).search(k)){var X,Q=V;for(k.global||(k=dv(k.source,ut(di.exec(k))+"g")),k.lastIndex=0;X=k.exec(Q);)var oe=X.index;V=V.slice(0,oe===n?D:oe)}}else if(a.indexOf(kr(k),D)!=D){var pe=V.lastIndexOf(k);pe>-1&&(V=V.slice(0,pe))}return V+g}function SD(a){return a=ut(a),a&&Pg.test(a)?a.replace(Lu,Z8):a}var wD=ml(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),Jv=P5("toUpperCase");function kC(a,l,d){return a=ut(a),l=d?n:l,l===n?H8(a)?J8(a):D8(a):a.match(l)||[]}var EC=Ue(function(a,l){try{return Cr(a,n,l)}catch(d){return Yv(d)?d:new Fe(d)}}),CD=bi(function(a,l){return Wr(l,function(d){d=Do(d),vi(a,d,qv(a[d],a))}),a});function _D(a){var l=a==null?0:a.length,d=Oe();return a=l?Rt(a,function(g){if(typeof g[1]!="function")throw new jr(s);return[d(g[0]),g[1]]}):[],Ue(function(g){for(var k=-1;++kj)return[];var d=R,g=Nn(a,R);l=Oe(l),a-=R;for(var k=uv(g,l);++d0||l<0)?new Ke(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=ze(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ke.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ke.prototype.toArray=function(){return this.take(R)},No(Ke.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),k=A[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!k||(A.prototype[l]=function(){var M=this.__wrapped__,D=g?[1]:arguments,V=M instanceof Ke,X=D[0],Q=V||$e(M),oe=function(qe){var Ze=k.apply(A,na([qe],D));return g&&pe?Ze[0]:Ze};Q&&d&&typeof X=="function"&&X.length!=1&&(V=Q=!1);var pe=this.__chain__,Ae=!!this.__actions__.length,Re=T&&!pe,Ve=V&&!Ae;if(!T&&Q){M=Ve?M:new Ke(this);var Me=a.apply(M,D);return Me.__actions__.push({func:Sp,args:[oe],thisArg:n}),new Ur(Me,pe)}return Re&&Ve?a.apply(this,D):(Me=this.thru(oe),Re?g?Me.value()[0]:Me.value():Me)})}),Wr(["pop","push","shift","sort","splice","unshift"],function(a){var l=qd[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);A.prototype[a]=function(){var k=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply($e(T)?T:[],k)}return this[d](function(M){return l.apply($e(M)?M:[],k)})}}),No(Ke.prototype,function(a,l){var d=A[l];if(d){var g=d.name+"";pt.call(dl,g)||(dl[g]=[]),dl[g].push({name:l,func:d})}}),dl[hp(n,w).name]=[{name:"wrapper",func:n}],Ke.prototype.clone=S9,Ke.prototype.reverse=w9,Ke.prototype.value=C9,A.prototype.at=QM,A.prototype.chain=JM,A.prototype.commit=eN,A.prototype.next=tN,A.prototype.plant=rN,A.prototype.reverse=oN,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=iN,A.prototype.first=A.prototype.head,Yu&&(A.prototype[Yu]=nN),A},ul=e9();tt?((tt.exports=ul)._=ul,je._=ul):Be._=ul}).call(Ri)})(Yt,Yt.exports);const Nue={currentImageUuid:"",images:[],nextPage:1,offset:0},UR=pw({name:"gallery",initialState:Nue,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,r=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(s=>s.uuid===n),i=Yt.exports.clamp(o,0,r.length-1);e.currentImage=r.length?r[i]:void 0,e.currentImageUuid=r.length?r[i].uuid:""}e.images=r},addImage:(e,t)=>{e.images.unshift(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload,e.offset+=1},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},addGalleryImages:(e,t)=>{const{images:n,nextPage:r,offset:o}=t.payload;if(n.length){const i=n[0];e.images=e.images.concat(n).sort((s,u)=>u.mtime-s.mtime),e.currentImage=i,e.currentImageUuid=i.uuid,e.nextPage=r,e.offset=o}}}}),{addImage:dh,clearIntermediateImage:H3,removeImage:Lue,setCurrentImage:Due,addGalleryImages:Fue,setIntermediateImage:$ue}=UR.actions,Bue=UR.reducer,zue={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:""},Vue=zue,HR=pw({name:"system",initialState:Vue,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>{const n=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:n}},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:o}=t.payload,s={timestamp:n,message:r,level:o||"info"};e.log.push(s)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload}}}),{setShouldDisplayInProgress:Wue,setIsProcessing:Oi,addLogEntry:Yn,setShouldShowLogViewer:jue,setIsConnected:G3,setSocketId:Ppe,setShouldConfirmOnDelete:GR,setOpenAccordions:Uue,setSystemStatus:Hue,setCurrentStatus:q3,setSystemConfig:Gue,setShouldDisplayGuides:que}=HR.actions,Kue=HR.reducer,li=Object.create(null);li.open="0";li.close="1";li.ping="2";li.pong="3";li.message="4";li.upgrade="5";li.noop="6";const Hh=Object.create(null);Object.keys(li).forEach(e=>{Hh[li[e]]=e});const Yue={type:"error",data:"parser error"},Zue=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xue=typeof ArrayBuffer=="function",Que=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qR=({type:e,data:t},n,r)=>Zue&&t instanceof Blob?n?r(t):K3(t,r):Xue&&(t instanceof ArrayBuffer||Que(t))?n?r(t):K3(new Blob([t]),r):r(li[e]+(t||"")),K3=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},Y3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},ece=typeof ArrayBuffer=="function",KR=(e,t)=>{if(typeof e!="string")return{type:"message",data:YR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:tce(e.substring(1),t)}:Hh[n]?e.length>1?{type:Hh[n],data:e.substring(1)}:{type:Hh[n]}:Yue},tce=(e,t)=>{if(ece){const n=Jue(e);return YR(n,t)}else return{base64:!0,data:e}},YR=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},ZR=String.fromCharCode(30),nce=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{qR(i,!1,u=>{r[s]=u,++o===n&&t(r.join(ZR))})})},rce=(e,t)=>{const n=e.split(ZR),r=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function QR(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const ice=setTimeout,ace=clearTimeout;function kg(e,t){t.useNativeTimers?(e.setTimeoutFn=ice.bind(Ia),e.clearTimeoutFn=ace.bind(Ia)):(e.setTimeoutFn=setTimeout.bind(Ia),e.clearTimeoutFn=clearTimeout.bind(Ia))}const sce=1.33;function lce(e){return typeof e=="string"?uce(e):Math.ceil((e.byteLength||e.size)*sce)}function uce(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}class cce extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class JR extends ln{constructor(t){super(),this.writable=!1,kg(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new cce(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=KR(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const e8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),P2=64,fce={};let Z3=0,ph=0,X3;function Q3(e){let t="";do t=e8[e%P2]+t,e=Math.floor(e/P2);while(e>0);return t}function t8(){const e=Q3(+new Date);return e!==X3?(Z3=0,X3=e):e+"."+Q3(Z3++)}for(;ph{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};rce(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,nce(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=t8()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=n8(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new ii(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ii extends ln{constructor(t,n){super(),kg(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=QR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new o8(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=ii.requestsCount++,ii.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=hce,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ii.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ii.requestsCount=0;ii.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",J3);else if(typeof addEventListener=="function"){const e="onpagehide"in Ia?"pagehide":"unload";addEventListener(e,J3,!1)}}function J3(){for(let e in ii.requests)ii.requests.hasOwnProperty(e)&&ii.requests[e].abort()}const vce=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),hh=Ia.WebSocket||Ia.MozWebSocket,eE=!0,yce="arraybuffer",tE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class bce extends JR{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=tE?{}:QR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=eE&&!tE?n?new hh(t,n):new hh(t):new hh(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||yce,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{eE&&this.ws.send(i)}catch{}o&&vce(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=t8()),this.supportsBinary||(t.b64=1);const o=n8(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!hh}}const xce={websocket:bce,polling:gce},Sce=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wce=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function A2(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Sce.exec(e||""),i={},s=14;for(;s--;)i[wce[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Cce(i,i.path),i.queryKey=_ce(i,i.query),i}function Cce(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&r.splice(0,1),t.substr(t.length-1,1)=="/"&&r.splice(r.length-1,1),r}function _ce(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class _a extends ln{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=A2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=A2(n.host).host),kg(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=dce(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new xce[t](r)}open(){let t;if(this.opts.rememberUpgrade&&_a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;_a.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;_a.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){s("transport closed")}function c(){s("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",s),n.once("close",u),this.once("close",c),this.once("upgrading",f),n.open()}onOpen(){if(this.readyState="open",_a.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){_a.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,i8=Object.prototype.toString,Ace=typeof Blob=="function"||typeof Blob<"u"&&i8.call(Blob)==="[object BlobConstructor]",Tce=typeof File=="function"||typeof File<"u"&&i8.call(File)==="[object FileConstructor]";function _w(e){return Ece&&(e instanceof ArrayBuffer||Pce(e))||Ace&&e instanceof Blob||Tce&&e instanceof File}function Gh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case Xe.ACK:case Xe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Nce{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Oce(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Lce=Object.freeze(Object.defineProperty({__proto__:null,protocol:Rce,get PacketType(){return Xe},Encoder:Mce,Decoder:kw},Symbol.toStringTag,{value:"Module"}));function _o(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Dce=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a8 extends ln{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_o(t,"open",this.onopen.bind(this)),_o(t,"packet",this.onpacket.bind(this)),_o(t,"error",this.onerror.bind(this)),_o(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(Dce.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Xe.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,u=n.pop();this._registerAckCallback(s,u),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Xe.CONNECT,data:t})}):this.packet({type:Xe.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Xe.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Xe.EVENT:case Xe.BINARY_EVENT:this.onevent(t);break;case Xe.ACK:case Xe.BINARY_ACK:this.onack(t);break;case Xe.DISCONNECT:this.ondisconnect();break;case Xe.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Xe.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Nu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Nu.prototype.reset=function(){this.attempts=0};Nu.prototype.setMin=function(e){this.ms=e};Nu.prototype.setMax=function(e){this.max=e};Nu.prototype.setJitter=function(e){this.jitter=e};class O2 extends ln{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,kg(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Nu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Lce;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _a(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=_o(n,"open",function(){r.onopen(),t&&t()}),i=_o(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const u=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&u.unref(),this.subs.push(function(){clearTimeout(u)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_o(t,"ping",this.onping.bind(this)),_o(t,"data",this.ondata.bind(this)),_o(t,"error",this.onerror.bind(this)),_o(t,"close",this.onclose.bind(this)),_o(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new a8(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Cc={};function qh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=kce(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Cc[o]&&i in Cc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new O2(r,t):(Cc[o]||(Cc[o]=new O2(r,t)),c=Cc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(qh,{Manager:O2,Socket:a8,io:qh,connect:qh});let mh;const Fce=new Uint8Array(16);function $ce(){if(!mh&&(mh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mh(Fce)}const En=[];for(let e=0;e<256;++e)En.push((e+256).toString(16).slice(1));function Bce(e,t=0){return(En[e[t+0]]+En[e[t+1]]+En[e[t+2]]+En[e[t+3]]+"-"+En[e[t+4]]+En[e[t+5]]+"-"+En[e[t+6]]+En[e[t+7]]+"-"+En[e[t+8]]+En[e[t+9]]+"-"+En[e[t+10]]+En[e[t+11]]+En[e[t+12]]+En[e[t+13]]+En[e[t+14]]+En[e[t+15]]).toLowerCase()}const zce=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nE={randomUUID:zce};function _c(e,t,n){if(nE.randomUUID&&!t&&!e)return nE.randomUUID();e=e||{};const r=e.random||(e.rng||$ce)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return Bce(r)}var Vce=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Wce=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,jce=/[^-+\dA-Z]/g;function Zn(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(rE[t]||t||rE.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(r=!0));var i=function(){return n?"getUTC":"get"},s=function(){return e[i()+"Date"]()},u=function(){return e[i()+"Day"]()},c=function(){return e[i()+"Month"]()},f=function(){return e[i()+"FullYear"]()},p=function(){return e[i()+"Hours"]()},h=function(){return e[i()+"Minutes"]()},m=function(){return e[i()+"Seconds"]()},v=function(){return e[i()+"Milliseconds"]()},y=function(){return n?0:e.getTimezoneOffset()},x=function(){return Uce(e)},E=function(){return Hce(e)},w={d:function(){return s()},dd:function(){return Tr(s())},ddd:function(){return ur.dayNames[u()]},DDD:function(){return oE({y:f(),m:c(),d:s(),_:i(),dayName:ur.dayNames[u()],short:!0})},dddd:function(){return ur.dayNames[u()+7]},DDDD:function(){return oE({y:f(),m:c(),d:s(),_:i(),dayName:ur.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return Tr(c()+1)},mmm:function(){return ur.monthNames[c()]},mmmm:function(){return ur.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return Tr(f(),4)},h:function(){return p()%12||12},hh:function(){return Tr(p()%12||12)},H:function(){return p()},HH:function(){return Tr(p())},M:function(){return h()},MM:function(){return Tr(h())},s:function(){return m()},ss:function(){return Tr(m())},l:function(){return Tr(v(),3)},L:function(){return Tr(Math.floor(v()/10))},t:function(){return p()<12?ur.timeNames[0]:ur.timeNames[1]},tt:function(){return p()<12?ur.timeNames[2]:ur.timeNames[3]},T:function(){return p()<12?ur.timeNames[4]:ur.timeNames[5]},TT:function(){return p()<12?ur.timeNames[6]:ur.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":Gce(e)},o:function(){return(y()>0?"-":"+")+Tr(Math.floor(Math.abs(y())/60)*100+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+Tr(Math.floor(Math.abs(y())/60),2)+":"+Tr(Math.floor(Math.abs(y())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return x()},WW:function(){return Tr(x())},N:function(){return E()}};return t.replace(Vce,function(b){return b in w?w[b]():b.slice(1,b.length-1)})}var rE={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ur={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Tr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},oE=function(t){var n=t.y,r=t.m,o=t.d,i=t._,s=t.dayName,u=t.short,c=u===void 0?!1:u,f=new Date,p=new Date;p.setDate(p[i+"Date"]()-1);var h=new Date;h.setDate(h[i+"Date"]()+1);var m=function(){return f[i+"Date"]()},v=function(){return f[i+"Month"]()},y=function(){return f[i+"FullYear"]()},x=function(){return p[i+"Date"]()},E=function(){return p[i+"Month"]()},w=function(){return p[i+"FullYear"]()},b=function(){return h[i+"Date"]()},_=function(){return h[i+"Month"]()},P=function(){return h[i+"FullYear"]()};return y()===n&&v()===r&&m()===o?c?"Tdy":"Today":w()===n&&E()===r&&x()===o?c?"Ysd":"Yesterday":P()===n&&_()===r&&b()===o?c?"Tmw":"Tomorrow":s},Uce=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var o=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-o);var i=(n-r)/(864e5*7);return 1+Math.floor(i)},Hce=function(t){var n=t.getDay();return n===0&&(n=7),n},Gce=function(t){return(String(t).match(Wce)||[""]).pop().replace(jce,"").replace(/GMT\+0000/g,"UTC")};const s8=er("socketio/generateImage"),qce=er("socketio/runESRGAN"),Kce=er("socketio/runGFPGAN"),Yce=er("socketio/deleteImage"),Zce=er("socketio/requestImages"),Xce=er("socketio/requestNewImages"),Qce=er("socketio/cancelProcessing"),Jce=er("socketio/uploadInitialImage"),efe=er("socketio/uploadMaskImage"),tfe=er("socketio/requestSystemConfig"),nfe=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(G3(!0)),t(q3("Connected")),t(Xce())}catch(r){console.error(r)}},onDisconnect:()=>{try{t(G3(!1)),t(q3("Disconnected")),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{url:o,mtime:i,metadata:s}=r,u=_c();t(dh({uuid:u,url:o,mtime:i,metadata:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(Oi(!1))}catch(o){console.error(o)}},onIntermediateResult:r=>{try{const o=_c(),{url:i,metadata:s,mtime:u}=r;t($ue({uuid:o,url:i,mtime:u,metadata:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Intermediate image generated: ${i}`})),t(Oi(!1))}catch(o){console.error(o)}},onESRGANResult:r=>{try{const{url:o,metadata:i,mtime:s}=r;t(dh({uuid:_c(),url:o,mtime:s,metadata:i})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(Oi(!1))}catch(o){console.error(o)}},onGFPGANResult:r=>{try{const{url:o,metadata:i,mtime:s}=r;t(dh({uuid:_c(),url:o,mtime:s,metadata:i})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:r=>{try{t(Oi(!0)),t(Hue(r))}catch(o){console.error(o)}},onError:r=>{const{message:o,additionalData:i}=r;try{t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Oi(!1)),t(H3())}catch(s){console.error(s)}},onGalleryImages:r=>{const{images:o,nextPage:i,offset:s}=r,u=o.map(c=>{const{url:f,metadata:p,mtime:h}=c;return{uuid:_c(),url:f,mtime:h,metadata:p}});t(Fue({images:u,nextPage:i,offset:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Oi(!1));const{intermediateImage:r}=n().gallery;r&&(t(dh(r)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(H3())),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:o,uuid:i}=r;t(Lue(i)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:r=>{const{url:o}=r;t(_g(o)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:r=>{const{url:o}=r;t(Cw(o)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:r=>{t(Gue(r))}}},rfe=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_dpm_fast","k_dpm_adaptive","k_euler","k_euler_a","k_heun"],ofe=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],ife=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],afe=[{key:"2x",value:2},{key:"4x",value:4}],R2=0,M2=4294967295,l8=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),sfe=(e,t)=>{const{prompt:n,iterations:r,steps:o,cfgScale:i,threshold:s,perlin:u,height:c,width:f,sampler:p,seed:h,seamless:m,shouldUseInitImage:v,img2imgStrength:y,initialImagePath:x,maskPath:E,shouldFitToWidthHeight:w,shouldGenerateVariations:b,variationAmount:_,seedWeights:P,shouldRunESRGAN:I,upscalingLevel:N,upscalingStrength:L,shouldRunGFPGAN:z,gfpganStrength:K,shouldRandomizeSeed:W}=e,{shouldDisplayInProgress:te}=t,be={prompt:n,iterations:r,steps:o,cfg_scale:i,threshold:s,perlin:u,height:c,width:f,sampler_name:p,seed:h,seamless:m,progress_images:te};be.seed=W?l8(R2,M2):h,v&&(be.init_img=x,be.strength=y,be.fit=w,E&&(be.init_mask=E)),b?(be.variation_amount=_,P&&(be.with_variations=Sue(P))):be.variation_amount=0;let _e=!1,ye=!1;return I&&(_e={level:N,strength:L}),z&&(ye={strength:K}),{generationParameters:be,esrganParameters:_e,gfpganParameters:ye}},lfe=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:()=>{n(Oi(!0));const{generationParameters:o,esrganParameters:i,gfpganParameters:s}=sfe(r().options,r().system);t.emit("generateImage",o,i,s),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...i,...s})}`}))},emitRunESRGAN:o=>{n(Oi(!0));const{upscalingLevel:i,upscalingStrength:s}=r().options,u={upscale:[i,s]};t.emit("runESRGAN",o,u),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...u})}`}))},emitRunGFPGAN:o=>{n(Oi(!0));const{gfpganStrength:i}=r().options,s={gfpgan_strength:i};t.emit("runGFPGAN",o,s),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...s})}`}))},emitDeleteImage:o=>{const{url:i,uuid:s}=o;t.emit("deleteImage",i,s)},emitRequestImages:()=>{const{nextPage:o,offset:i}=r().gallery;t.emit("requestImages",o,i)},emitRequestNewImages:()=>{const{nextPage:o,offset:i,images:s}=r().gallery;s.length>0?t.emit("requestImages",o,i,s[0].mtime):t.emit("requestImages",o,i)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},ufe=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=qh(`http://${e}:${t}`,{timeout:6e4});let r=!1;return i=>s=>u=>{const{onConnect:c,onDisconnect:f,onError:p,onESRGANResult:h,onGFPGANResult:m,onGenerationResult:v,onIntermediateResult:y,onProgressUpdate:x,onGalleryImages:E,onProcessingCanceled:w,onImageDeleted:b,onInitialImageUploaded:_,onMaskImageUploaded:P,onSystemConfig:I}=nfe(i),{emitGenerateImage:N,emitRunESRGAN:L,emitRunGFPGAN:z,emitDeleteImage:K,emitRequestImages:W,emitRequestNewImages:te,emitCancelProcessing:be,emitUploadInitialImage:_e,emitUploadMaskImage:ye,emitRequestSystemConfig:Ce}=lfe(i,n);switch(r||(n.on("connect",()=>c()),n.on("disconnect",()=>f()),n.on("error",ae=>p(ae)),n.on("generationResult",ae=>v(ae)),n.on("esrganResult",ae=>h(ae)),n.on("gfpganResult",ae=>m(ae)),n.on("intermediateResult",ae=>y(ae)),n.on("progressUpdate",ae=>x(ae)),n.on("galleryImages",ae=>E(ae)),n.on("processingCanceled",()=>{w()}),n.on("imageDeleted",ae=>{b(ae)}),n.on("initialImageUploaded",ae=>{_(ae)}),n.on("maskImageUploaded",ae=>{P(ae)}),n.on("systemConfig",ae=>{I(ae)}),r=!0),u.type){case"socketio/generateImage":{N();break}case"socketio/runESRGAN":{L(u.payload);break}case"socketio/runGFPGAN":{z(u.payload);break}case"socketio/deleteImage":{K(u.payload);break}case"socketio/requestImages":{W();break}case"socketio/requestNewImages":{te();break}case"socketio/cancelProcessing":{be();break}case"socketio/uploadInitialImage":{_e(u.payload);break}case"socketio/uploadMaskImage":{ye(u.payload);break}case"socketio/requestSystemConfig":{Ce();break}}s(u)}},cfe={key:"root",storage:Sw,blacklist:["gallery","system"]},ffe={key:"system",storage:Sw,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},dfe=pR({options:Mue,gallery:Bue,system:OR(ffe,Kue)}),pfe=OR(cfe,dfe),u8=ile({reducer:pfe,middleware:e=>e({serializableCheck:!1}).concat(ufe())}),Sn=Ule,xt=Mle;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function hfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iE(e,t){for(var n=0;n({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}}),f8=()=>S(We,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:S(ng,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})});var sE={path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("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"}),S("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},d8=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Zt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??sE.viewBox;if(n&&typeof n!="string")return J.createElement(ie.svg,{as:n,...m,...f});const y=s??sE.path;return J.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});d8.displayName="Icon";function Te(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=C.exports.Children.toArray(e.path),s=ce((u,c)=>S(d8,{ref:c,viewBox:t,...o,...u,children:i.length?i:S("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}Te({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Te({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Te({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Te({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Te({displayName:"SunIcon",path:ee("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[S("circle",{cx:"12",cy:"12",r:"5"}),S("path",{d:"M12 1v2"}),S("path",{d:"M12 21v2"}),S("path",{d:"M4.22 4.22l1.42 1.42"}),S("path",{d:"M18.36 18.36l1.42 1.42"}),S("path",{d:"M1 12h2"}),S("path",{d:"M21 12h2"}),S("path",{d:"M4.22 19.78l1.42-1.42"}),S("path",{d:"M18.36 5.64l1.42-1.42"})]})});Te({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Te({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:S("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Te({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Te({displayName:"CheckCircleIcon",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"});Te({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Te({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Te({displayName:"ViewIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),S("circle",{cx:"12",cy:"12",r:"2"})]})});Te({displayName:"ViewOffIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),S("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})});Te({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Te({displayName:"DeleteIcon",path:S("g",{fill:"currentColor",children:S("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});Te({displayName:"RepeatIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),S("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})});Te({displayName:"RepeatClockIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),S("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})});Te({displayName:"EditIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),S("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})});Te({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Te({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Te({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Te({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Te({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Te({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Te({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Te({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Te({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var p8=Te({displayName:"ExternalLinkIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),S("path",{d:"M15 3h6v6"}),S("path",{d:"M10 14L21 3"})]})});Te({displayName:"LinkIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),S("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})});Te({displayName:"PlusSquareIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),S("path",{d:"M12 8v8"}),S("path",{d:"M8 12h8"})]})});Te({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Te({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Te({displayName:"TimeIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),S("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})});Te({displayName:"ArrowRightIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),S("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});Te({displayName:"ArrowLeftIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),S("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})});Te({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Te({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Te({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Te({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Te({displayName:"EmailIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),S("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"})]})});Te({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Te({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Te({displayName:"SpinnerIcon",path:ee(Rn,{children:[S("defs",{children:ee("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[S("stop",{stopColor:"currentColor",offset:"0%"}),S("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"})]})}),ee("g",{transform:"translate(2)",fill:"none",children:[S("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),S("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),S("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})]})]})});Te({displayName:"CloseIcon",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"});Te({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:S("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Te({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Te({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Te({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Te({displayName:"InfoOutlineIcon",path:ee("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[S("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),S("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),S("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})});Te({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Te({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"});Te({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Te({displayName:"QuestionOutlineIcon",path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("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"}),S("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});Te({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",displayName:"WarningIcon"});Te({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Te({viewBox:"0 0 14 14",path:S("g",{fill:"currentColor",children:S("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});Te({displayName:"MinusIcon",path:S("g",{fill:"currentColor",children:S("rect",{height:"4",width:"20",x:"2",y:"10"})})});Te({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var h8={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lE=J.createContext&&J.createContext(h8),Va=globalThis&&globalThis.__assign||function(){return Va=Object.assign||function(e){for(var t,n=1,r=arguments.length;nee(We,{gap:2,children:[n&&S(za,{label:`Recall ${e}`,children:S(pr,{"aria-label":"Use this parameter",icon:S(g8,{}),size:"xs",variant:"ghost",fontSize:20,onClick:n})}),ee(Kt,{fontWeight:"semibold",whiteSpace:"nowrap",children:[e,":"]}),r?ee($f,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",S(p8,{mx:"2px"})]}):S(Kt,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:t.toString()})]}),Ife=(e,t)=>e.image.uuid===t.image.uuid,Ofe=C.exports.memo(({image:e})=>{const t=Sn(),n=Ba("blackAlpha.100","whiteAlpha.100"),r=e?.metadata?.image||{},{type:o,postprocessing:i,sampler:s,prompt:u,seed:c,variations:f,steps:p,cfg_scale:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:w,mask_image_path:b,orig_path:_,scale:P}=r,I=JSON.stringify(r,null,2);return ee(We,{gap:1,direction:"column",overflowY:"scroll",width:"100%",children:[ee(We,{gap:2,children:[S(Kt,{fontWeight:"semibold",children:"File:"}),ee($f,{href:e.url,isExternal:!0,children:[e.url,S(p8,{mx:"2px"})]})]}),Object.keys(r).length>0?ee(Rn,{children:[o&&S(en,{label:"Type",value:o}),["esrgan","gfpgan"].includes(o)&&S(en,{label:"Original image",value:_,isLink:!0}),o==="gfpgan"&&x&&S(en,{label:"Fix faces strength",value:x,onClick:()=>t(_2(x))}),o==="esrgan"&&P&&S(en,{label:"Upscaling scale",value:P,onClick:()=>t(k2(P))}),o==="esrgan"&&x&&S(en,{label:"Upscaling strength",value:x,onClick:()=>t(E2(x))}),u&&S(en,{label:"Prompt",value:S2(u),onClick:()=>t(LR(u))}),c&&S(en,{label:"Seed",value:c,onClick:()=>t(Yf(c))}),s&&S(en,{label:"Sampler",value:s,onClick:()=>t(BR(s))}),p&&S(en,{label:"Steps",value:p,onClick:()=>t(DR(p))}),h&&S(en,{label:"CFG scale",value:h,onClick:()=>t(FR(h))}),f&&f.length>0&&S(en,{label:"Seed-weight pairs",value:w2(f),onClick:()=>t(WR(w2(f)))}),m&&S(en,{label:"Seamless",value:m,onClick:()=>t(C2(m))}),v&&S(en,{label:"Width",value:v,onClick:()=>t(C2(v))}),y&&S(en,{label:"Height",value:y,onClick:()=>t($R(y))}),w&&S(en,{label:"Initial image",value:w,isLink:!0,onClick:()=>t(_g(w))}),b&&S(en,{label:"Mask image",value:b,isLink:!0,onClick:()=>t(Cw(b))}),o==="img2img"&&x&&S(en,{label:"Image to image strength",value:x,onClick:()=>t(zR(x))}),E&&S(en,{label:"Image to image fit",value:E,onClick:()=>t(VR(E))}),i&&i.length>0&&i.map(N=>{if(N.type==="esrgan"){const{scale:L,strength:z}=N;return ee(Rn,{children:[S(en,{label:"Upscaling scale",value:L,onClick:()=>t(k2(L))}),S(en,{label:"Upscaling strength",value:z,onClick:()=>t(E2(z))})]})}else if(N.type==="gfpgan"){const{strength:L}=N;return S(en,{label:"Fix faces strength",value:L,onClick:()=>t(_2(L))})}}),ee(We,{gap:2,direction:"column",children:[ee(We,{gap:2,children:[S(za,{label:"Copy metadata JSON",children:S(pr,{"aria-label":"Copy metadata JSON",icon:S(_fe,{}),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(I)})}),S(Kt,{fontWeight:"semibold",children:"Metadata JSON:"})]}),S(Io,{overflow:"scroll",flexGrow:3,wordBreak:"break-all",bgColor:n,padding:2,children:S("pre",{children:I})})]})]}):S(Ff,{width:"100%",pt:10,children:S(Kt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},Ife),Rfe=jt(e=>e.system,e=>e.shouldConfirmOnDelete),v8=C.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:o,onClose:i}=Zb(),s=Sn(),u=xt(Rfe),c=C.exports.useRef(null),f=m=>{m.stopPropagation(),u?o():p()},p=()=>{s(Yce(e)),i()},h=m=>s(GR(!m.target.checked));return ee(Rn,{children:[C.exports.cloneElement(t,{onClick:f,ref:n}),S(YJ,{isOpen:r,leastDestructiveRef:c,onClose:i,children:S(H0,{children:ee(ZJ,{children:[S(JS,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),S(j0,{children:ee(We,{direction:"column",gap:5,children:[S(Kt,{children:"Are you sure? You can't undo this action afterwards."}),S(Bi,{children:ee(We,{alignItems:"center",children:[S(zi,{mb:0,children:"Don't ask me again"}),S(Vi,{checked:!u,onChange:h})]})})]})}),ee(QS,{children:[S(Ro,{ref:c,onClick:i,children:"Cancel"}),S(Ro,{colorScheme:"red",onClick:p,ml:3,children:"Delete"})]})]})})})]})}),Ti=e=>{const{label:t,size:n="sm",...r}=e;return S(Ro,{size:n,...r,children:t})},Mfe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Nfe=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const r=Sn(),{intermediateImage:o}=xt(w=>w.gallery),{upscalingLevel:i,gfpganStrength:s}=xt(w=>w.options),{isProcessing:u,isConnected:c,isGFPGANAvailable:f,isESRGANAvailable:p}=xt(Mfe),h=()=>r(_g(e.url)),m=()=>r(jR(e.metadata)),v=()=>r(Yf(e.metadata.image.seed)),y=()=>r(qce(e)),x=()=>r(Kce(e)),E=()=>n(!t);return ee(We,{gap:2,children:[S(Ti,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:h}),S(Ti,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:m}),S(Ti,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e?.metadata?.image?.seed,onClick:v}),S(Ti,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p||Boolean(o)||!(c&&!u)||!i,onClick:y}),S(Ti,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!f||Boolean(o)||!(c&&!u)||!s,onClick:x}),S(Ti,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:E}),S(v8,{image:e,children:S(Ti,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)})})]})},Lfe="calc(100vh - 238px)",Dfe=()=>{const{currentImage:e,intermediateImage:t}=xt(s=>s.gallery),n=Ba("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[r,o]=C.exports.useState(!1),i=t||e;return i?ee(We,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[S(Nfe,{image:i,shouldShowImageDetails:r,setShouldShowImageDetails:o}),ee(Ff,{height:Lfe,position:"relative",children:[S(Df,{src:i.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),r&&S(We,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:S(Ofe,{image:i})})]})]}):S(Ff,{height:"100%",position:"relative",children:S(Kt,{size:"xl",children:"No image selected"})})},Ffe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,$fe=C.exports.memo(e=>{const[t,n]=C.exports.useState(!1),r=Sn(),o=Ba("green.600","green.300"),i=Ba("gray.200","gray.700"),s=Ba("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:u,isSelected:c}=e,{url:f,uuid:p,metadata:h}=u,m=()=>n(!0),v=()=>n(!1),y=w=>{w.stopPropagation(),r(jR(h))},x=w=>{w.stopPropagation(),r(Yf(u.metadata.image.seed))};return ee(Io,{position:"relative",children:[S(Df,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ee(We,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:c?s:void 0,onClick:()=>r(Due(u)),onMouseOver:m,onMouseOut:v,children:[c&&S(ao,{fill:o,width:"50%",height:"50%",as:wfe}),t&&ee(We,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[S(za,{label:"Delete image",children:S(v8,{image:u,children:S(pr,{colorScheme:"red","aria-label":"Delete image",icon:S(Tfe,{}),size:"xs",variant:"imageHoverIconButton",fontSize:14})})}),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&S(za,{label:"Use all parameters",children:S(pr,{"aria-label":"Use all parameters",icon:S(g8,{}),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:y})}),u?.metadata?.image?.seed&&S(za,{label:"Use seed",children:S(pr,{"aria-label":"Use seed",icon:S(Pfe,{}),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:x})})]})]})]},p)},Ffe),Bfe=()=>{const{images:e,currentImageUuid:t}=xt(o=>o.gallery),n=Sn(),r=()=>{n(Zce())};return e.length?ee(We,{direction:"column",gap:2,pb:2,children:[S(We,{gap:2,wrap:"wrap",children:e.map(o=>{const{uuid:i}=o;return S($fe,{image:o,isSelected:t===i},i)})}),S(Ro,{onClick:r,children:"Load more..."})]}):S(Ff,{height:"100%",position:"relative",children:S(Kt,{size:"xl",children:"No images in gallery"})})},zfe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Vfe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=xt(zfe),o=t?Math.round(t*100/n):0;return S(FO,{height:"10px",value:o,isIndeterminate:e&&!r})};function y8(e){return or({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function Wfe(e){return or({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}const jfe=jt(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:r}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:r}},{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Ufe=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Zb(),{isOpen:o,onOpen:i,onClose:s}=Zb(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c,shouldDisplayGuides:f}=xt(jfe),p=Sn(),h=()=>{I8.purge().then(()=>{r(),i()})};return ee(Rn,{children:[C.exports.cloneElement(e,{onClick:n}),ee(jf,{isOpen:t,onClose:r,children:[S(H0,{}),ee(U0,{children:[S(JS,{children:"Settings"}),S(CO,{}),S(j0,{children:ee(We,{gap:5,direction:"column",children:[S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Display in-progress images (slower)"}),S(Vi,{isChecked:u,onChange:m=>p(Wue(m.target.checked))})]})}),S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Confirm on delete"}),S(Vi,{isChecked:c,onChange:m=>p(GR(m.target.checked))})]})}),S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Display help guides in configuration menus"}),S(Vi,{isChecked:f,onChange:m=>p(que(m.target.checked))})]})}),S(OS,{size:"md",children:"Reset Web UI"}),S(Kt,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."}),S(Kt,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."}),S(Ro,{colorScheme:"red",onClick:h,children:"Reset Web UI"})]})}),S(QS,{children:S(Ro,{onClick:r,children:"Close"})})]})]}),ee(jf,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[S(H0,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),S(U0,{children:S(j0,{pb:6,pt:6,children:S(We,{justifyContent:"center",children:S(Kt,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},Hfe=jt(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Gfe=()=>{const{colorMode:e,toggleColorMode:t}=_m(),{isConnected:n,isProcessing:r,currentIteration:o,totalIterations:i,currentStatus:s}=xt(Hfe),u=n?"green.500":"red.500",c=e=="light"?S(Efe,{}):S(Afe,{}),f=e=="light"?18:20;let p=s;return r&&i>1&&(p+=` [${o}/${i}]`),ee(We,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[S(OS,{size:"lg",children:"InvokeUI"}),S(vI,{}),S(Kt,{textColor:u,children:p}),S(Ufe,{children:S(pr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:S(Wfe,{})})}),S(pr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:S($f,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:S(y8,{})})}),S(pr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:S($f,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:S(xfe,{})})}),S(pr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:f,icon:c})]})},Zo=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return S(Bi,{isDisabled:n,width:i,isInvalid:s,children:ee(We,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&S(zi,{marginBottom:1,children:S(Kt,{fontSize:r,whiteSpace:"nowrap",children:t})}),ee(PO,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[S(TO,{fontSize:"md"}),ee(AO,{children:[S(RO,{}),S(OO,{})]})]})]})})},nm=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return S(Bi,{isDisabled:n,width:i,children:ee(We,{justifyContent:"space-between",alignItems:"center",children:[t&&S(zi,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),S(Vi,{size:o,...s})]})})},qfe=jt(e=>e.options,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Kfe=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=xt(qfe),s=Sn(),u=y=>s(Cue(Number(y))),c=y=>s(Rue(y.target.checked)),f=y=>s(Yf(Number(y))),p=()=>s(Yf(l8(R2,M2))),h=y=>s(Aue(y.target.checked)),m=y=>s(Tue(Number(y))),v=y=>s(WR(y.target.value));return ee(We,{gap:2,direction:"column",children:[S(Zo,{label:"Images to generate",step:1,min:1,precision:0,onChange:u,value:i}),S(nm,{label:"Randomize seed on generation",isChecked:r,onChange:c}),ee(We,{gap:2,children:[S(Zo,{label:"Seed",step:1,precision:0,flexGrow:1,min:R2,max:M2,isDisabled:r,isInvalid:o<0&&e,onChange:f,value:o}),S(Ro,{size:"sm",isDisabled:r,onClick:p,children:S(Kt,{pl:2,pr:2,children:"Shuffle"})})]}),S(nm,{label:"Generate variations",isChecked:e,width:"auto",onChange:h}),S(Zo,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:m}),S(Bi,{isInvalid:e&&!(ww(n)||n===""),flexGrow:1,children:ee(Xc,{children:[S(zi,{marginInlineEnd:0,marginBottom:1,children:S(Kt,{whiteSpace:"nowrap",children:"Seed Weights"})}),S(AS,{size:"sm",value:n,onChange:v})]})})]})},rm=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return S(Bi,{isDisabled:n,children:ee(We,{justifyContent:"space-between",alignItems:"center",children:[S(zi,{marginBottom:s,children:S(Kt,{fontSize:i,whiteSpace:u,children:t})}),S(BO,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?S("option",{value:f,children:f},f):S("option",{value:f.value,children:f.key},f.value))})]})})},Yfe=jt(e=>e.options,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Zfe=()=>{const e=Sn(),{steps:t,cfgScale:n,sampler:r,threshold:o,perlin:i}=xt(Yfe);return ee(We,{gap:2,direction:"column",children:[S(Zo,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(DR(Number(h))),value:t}),S(Zo,{label:"CFG scale",step:.5,onChange:h=>e(FR(Number(h))),value:n}),S(rm,{label:"Sampler",value:r,onChange:h=>e(BR(h.target.value)),validValues:rfe}),S(Zo,{label:"Threshold",min:0,step:.1,onChange:h=>e(_ue(Number(h))),value:o}),S(Zo,{label:"Perlin",min:0,max:1,step:.05,onChange:h=>e(kue(Number(h))),value:i})]})},Xfe=jt(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Qfe=jt(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Jfe=()=>{const e=Sn(),{upscalingLevel:t,upscalingStrength:n}=xt(Xfe),{isESRGANAvailable:r}=xt(Qfe);return ee(We,{direction:"column",gap:2,children:[S(rm,{isDisabled:!r,label:"Scale",value:t,onChange:s=>e(k2(Number(s.target.value))),validValues:afe}),S(Zo,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(E2(Number(s))),value:n})]})},ede=jt(e=>e.options,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),tde=jt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),nde=()=>{const e=Sn(),{gfpganStrength:t}=xt(ede),{isGFPGANAvailable:n}=xt(tde);return S(We,{direction:"column",gap:2,children:S(Zo,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(_2(Number(o))),value:t})})},rde=jt(e=>e.options,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),ode=()=>{const e=Sn(),{height:t,width:n,seamless:r}=xt(rde);return ee(We,{gap:2,direction:"column",children:[ee(We,{gap:2,children:[S(rm,{label:"Width",value:n,flexGrow:1,onChange:u=>e(C2(Number(u.target.value))),validValues:ofe}),S(rm,{label:"Height",value:t,flexGrow:1,onChange:u=>e($R(Number(u.target.value))),validValues:ife})]}),S(nm,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:u=>e(Eue(u.target.checked))})]})};var ide=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Sd(e,t){var n=ade(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function ade(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=ide.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var sde=[".DS_Store","Thumbs.db"];function lde(e){return Tu(this,void 0,void 0,function(){return Iu(this,function(t){return om(e)&&ude(e.dataTransfer)?[2,pde(e.dataTransfer,e.type)]:cde(e)?[2,fde(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,dde(e)]:[2,[]]})})}function ude(e){return om(e)}function cde(e){return om(e)&&om(e.target)}function om(e){return typeof e=="object"&&e!==null}function fde(e){return D2(e.target.files).map(function(t){return Sd(t)})}function dde(e){return Tu(this,void 0,void 0,function(){var t;return Iu(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Sd(r)})]}})})}function pde(e,t){return Tu(this,void 0,void 0,function(){var n,r;return Iu(this,function(o){switch(o.label){case 0:return e.items?(n=D2(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(hde))]):[3,2];case 1:return r=o.sent(),[2,fE(b8(r))];case 2:return[2,fE(D2(e.files).map(function(i){return Sd(i)}))]}})})}function fE(e){return e.filter(function(t){return sde.indexOf(t.name)===-1})}function D2(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,gE(n)];if(e.sizen)return[!1,gE(n)]}return[!0,null]}function ws(e){return e!=null}function Ide(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,u=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(c){var f=C8(c,n),p=Zf(f,1),h=p[0],m=_8(c,r,o),v=Zf(m,1),y=v[0],x=u?u(c):null;return h&&y&&!x})}function im(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function gh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function yE(e){e.preventDefault()}function Ode(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Rde(e){return e.indexOf("Edge/")!==-1}function Mde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ode(e)||Rde(e)}function Vo(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Zde(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ew=C.exports.forwardRef(function(e,t){var n=e.children,r=am(e,Bde),o=T8(r),i=o.open,s=am(o,zde);return C.exports.useImperativeHandle(t,function(){return{open:i}},[i]),S(C.exports.Fragment,{children:n($t($t({},s),{},{open:i}))})});Ew.displayName="Dropzone";var A8={disabled:!1,getFilesFromEvent:lde,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ew.defaultProps=A8;Ew.propTypes={children:bt.exports.func,accept:bt.exports.objectOf(bt.exports.arrayOf(bt.exports.string)),multiple:bt.exports.bool,preventDropOnDocument:bt.exports.bool,noClick:bt.exports.bool,noKeyboard:bt.exports.bool,noDrag:bt.exports.bool,noDragEventsBubbling:bt.exports.bool,minSize:bt.exports.number,maxSize:bt.exports.number,maxFiles:bt.exports.number,disabled:bt.exports.bool,getFilesFromEvent:bt.exports.func,onFileDialogCancel:bt.exports.func,onFileDialogOpen:bt.exports.func,useFsAccessApi:bt.exports.bool,autoFocus:bt.exports.bool,onDragEnter:bt.exports.func,onDragLeave:bt.exports.func,onDragOver:bt.exports.func,onDrop:bt.exports.func,onDropAccepted:bt.exports.func,onDropRejected:bt.exports.func,onError:bt.exports.func,validator:bt.exports.func};var z2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function T8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=$t($t({},A8),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,u=t.multiple,c=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,w=t.useFsAccessApi,b=t.autoFocus,_=t.preventDropOnDocument,P=t.noClick,I=t.noKeyboard,N=t.noDrag,L=t.noDragEventsBubbling,z=t.onError,K=t.validator,W=C.exports.useMemo(function(){return Dde(n)},[n]),te=C.exports.useMemo(function(){return Lde(n)},[n]),be=C.exports.useMemo(function(){return typeof E=="function"?E:xE},[E]),_e=C.exports.useMemo(function(){return typeof x=="function"?x:xE},[x]),ye=C.exports.useRef(null),Ce=C.exports.useRef(null),ae=C.exports.useReducer(Xde,z2),ke=yy(ae,2),j=ke[0],Y=ke[1],q=j.isFocused,R=j.isFileDialogActive,U=C.exports.useRef(typeof window<"u"&&window.isSecureContext&&w&&Nde()),se=function(){!U.current&&R&&setTimeout(function(){if(Ce.current){var Ee=Ce.current.files;Ee.length||(Y({type:"closeDialog"}),_e())}},300)};C.exports.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[Ce,R,_e,U]);var ue=C.exports.useRef([]),he=function(Ee){ye.current&&ye.current.contains(Ee.target)||(Ee.preventDefault(),ue.current=[])};C.exports.useEffect(function(){return _&&(document.addEventListener("dragover",yE,!1),document.addEventListener("drop",he,!1)),function(){_&&(document.removeEventListener("dragover",yE),document.removeEventListener("drop",he))}},[ye,_]),C.exports.useEffect(function(){return!r&&b&&ye.current&&ye.current.focus(),function(){}},[ye,b,r]);var me=C.exports.useCallback(function(de){z?z(de):console.error(de)},[z]),Pe=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de),ue.current=[].concat(jde(ue.current),[de.target]),gh(de)&&Promise.resolve(o(de)).then(function(Ee){if(!(im(de)&&!L)){var ft=Ee.length,lt=ft>0&&Ide({files:Ee,accept:W,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:K}),re=ft>0&&!lt;Y({isDragAccept:lt,isDragReject:re,isDragActive:!0,type:"setDraggedFiles"}),f&&f(de)}}).catch(function(Ee){return me(Ee)})},[o,f,me,L,W,s,i,u,c,K]),fe=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de);var Ee=gh(de);if(Ee&&de.dataTransfer)try{de.dataTransfer.dropEffect="copy"}catch{}return Ee&&h&&h(de),!1},[h,L]),Se=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de);var Ee=ue.current.filter(function(lt){return ye.current&&ye.current.contains(lt)}),ft=Ee.indexOf(de.target);ft!==-1&&Ee.splice(ft,1),ue.current=Ee,!(Ee.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),gh(de)&&p&&p(de))},[ye,p,L]),Le=C.exports.useCallback(function(de,Ee){var ft=[],lt=[];de.forEach(function(re){var He=C8(re,W),kt=yy(He,2),wn=kt[0],Mn=kt[1],wr=_8(re,s,i),Mo=yy(wr,2),ci=Mo[0],jn=Mo[1],Vr=K?K(re):null;if(wn&&ci&&!Vr)ft.push(re);else{var es=[Mn,jn];Vr&&(es=es.concat(Vr)),lt.push({file:re,errors:es.filter(function(Zs){return Zs})})}}),(!u&&ft.length>1||u&&c>=1&&ft.length>c)&&(ft.forEach(function(re){lt.push({file:re,errors:[Tde]})}),ft.splice(0)),Y({acceptedFiles:ft,fileRejections:lt,type:"setFiles"}),m&&m(ft,lt,Ee),lt.length>0&&y&&y(lt,Ee),ft.length>0&&v&&v(ft,Ee)},[Y,u,W,s,i,c,m,v,y,K]),at=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de),ue.current=[],gh(de)&&Promise.resolve(o(de)).then(function(Ee){im(de)&&!L||Le(Ee,de)}).catch(function(Ee){return me(Ee)}),Y({type:"reset"})},[o,Le,me,L]),At=C.exports.useCallback(function(){if(U.current){Y({type:"openDialog"}),be();var de={multiple:u,types:te};window.showOpenFilePicker(de).then(function(Ee){return o(Ee)}).then(function(Ee){Le(Ee,null),Y({type:"closeDialog"})}).catch(function(Ee){Fde(Ee)?(_e(Ee),Y({type:"closeDialog"})):$de(Ee)?(U.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):me(Ee)});return}Ce.current&&(Y({type:"openDialog"}),be(),Ce.current.value=null,Ce.current.click())},[Y,be,_e,w,Le,me,te,u]),hn=C.exports.useCallback(function(de){!ye.current||!ye.current.isEqualNode(de.target)||(de.key===" "||de.key==="Enter"||de.keyCode===32||de.keyCode===13)&&(de.preventDefault(),At())},[ye,At]),ge=C.exports.useCallback(function(){Y({type:"focus"})},[]),Ie=C.exports.useCallback(function(){Y({type:"blur"})},[]),et=C.exports.useCallback(function(){P||(Mde()?setTimeout(At,0):At())},[P,At]),De=function(Ee){return r?null:Ee},Dt=function(Ee){return I?null:De(Ee)},mn=function(Ee){return N?null:De(Ee)},st=function(Ee){L&&Ee.stopPropagation()},wt=C.exports.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=de.refKey,ft=Ee===void 0?"ref":Ee,lt=de.role,re=de.onKeyDown,He=de.onFocus,kt=de.onBlur,wn=de.onClick,Mn=de.onDragEnter,wr=de.onDragOver,Mo=de.onDragLeave,ci=de.onDrop,jn=am(de,Vde);return $t($t(B2({onKeyDown:Dt(Vo(re,hn)),onFocus:Dt(Vo(He,ge)),onBlur:Dt(Vo(kt,Ie)),onClick:De(Vo(wn,et)),onDragEnter:mn(Vo(Mn,Pe)),onDragOver:mn(Vo(wr,fe)),onDragLeave:mn(Vo(Mo,Se)),onDrop:mn(Vo(ci,at)),role:typeof lt=="string"&<!==""?lt:"presentation"},ft,ye),!r&&!I?{tabIndex:0}:{}),jn)}},[ye,hn,ge,Ie,et,Pe,fe,Se,at,I,N,r]),Xt=C.exports.useCallback(function(de){de.stopPropagation()},[]),Ut=C.exports.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=de.refKey,ft=Ee===void 0?"ref":Ee,lt=de.onChange,re=de.onClick,He=am(de,Wde),kt=B2({accept:W,multiple:u,type:"file",style:{display:"none"},onChange:De(Vo(lt,at)),onClick:De(Vo(re,Xt)),tabIndex:-1},ft,Ce);return $t($t({},kt),He)}},[Ce,n,u,at,r]);return $t($t({},j),{},{isFocused:q&&!r,getRootProps:wt,getInputProps:Ut,rootRef:ye,inputRef:Ce,open:De(At)})}function Xde(e,t){switch(t.type){case"focus":return $t($t({},e),{},{isFocused:!0});case"blur":return $t($t({},e),{},{isFocused:!1});case"openDialog":return $t($t({},z2),{},{isFileDialogActive:!0});case"closeDialog":return $t($t({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return $t($t({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return $t($t({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return $t({},z2);default:return e}}function xE(){}const SE=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const r=C.exports.useCallback((c,f)=>{f.forEach(p=>{n(p)}),c.forEach(p=>{t(p)})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=T8({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ee(Io,{...o(),flexGrow:3,children:[S("input",{...i({multiple:!1})}),C.exports.cloneElement(e,{onClick:u})]})},Qde=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Jde=({setShouldShowMask:e})=>{const t=Sn(),{initialImagePath:n,maskPath:r}=xt(Qde),o=mse(),i=y=>{y.stopPropagation(),t(_g(""))},s=y=>{y.stopPropagation(),t(Cw(""))},u=()=>e(!1),c=()=>e(!0),f=()=>e(!0),p=()=>e(!0),h=C.exports.useCallback(y=>t(Jce(y)),[t]),m=C.exports.useCallback(y=>t(efe(y)),[t]),v=C.exports.useCallback(y=>{const x=y.errors.reduce((E,w)=>E+` `+w.message,"");o({title:"Upload failed",description:x,status:"error",isClosable:!0})},[o]);return ee(We,{gap:2,justifyContent:"space-between",width:"100%",children:[S(SE,{fileAcceptedCallback:h,fileRejectionCallback:v,children:S(Ro,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:S(cE,{}),width:"100%",children:"Image"})}),S(pr,{isDisabled:!n,size:"sm","aria-label":"Reset mask",onClick:i,icon:S(uE,{})}),S(SE,{fileAcceptedCallback:m,fileRejectionCallback:v,children:S(Ro,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:f,onMouseOut:p,leftIcon:S(cE,{}),width:"100%",children:"Mask"})}),S(pr,{isDisabled:!r,size:"sm","aria-label":"Reset mask",onClick:s,icon:S(uE,{})})]})},epe=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),tpe=()=>{const{initialImagePath:e,maskPath:t}=xt(epe),[n,r]=C.exports.useState(!1);return ee(We,{direction:"column",alignItems:"center",gap:2,children:[S(Jde,{setShouldShowMask:r}),e&&ee(We,{position:"relative",width:"100%",children:[S(Df,{fit:"contain",src:e,rounded:"md",className:"checkerboard"}),n&&t&&S(Df,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1})]})]})},npe=jt(e=>e.options,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),rpe=()=>{const e=Sn(),{img2imgStrength:t,shouldFitToWidthHeight:n}=xt(npe);return ee(We,{direction:"column",gap:2,children:[S(Zo,{label:"Strength",step:.01,min:0,max:1,onChange:i=>e(zR(Number(i))),value:t}),S(nm,{label:"Fit initial image to output size",isChecked:n,onChange:i=>e(VR(i.target.checked))}),S(tpe,{})]})};var bs=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OUTPUT=2]="OUTPUT",e[e.SEED_AND_VARIATION=3]="SEED_AND_VARIATION",e[e.ESRGAN=4]="ESRGAN",e[e.FACE_CORRECTION=5]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=6]="IMAGE_TO_IMAGE",e[e.SAMPLER=7]="SAMPLER",e))(bs||{});const ope={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. CLI Commands will not work in the prompt.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"The Height and Width of generations can be controlled here. If you experience errors, you may be generating an image too large for your system. The seamless option will more often result in repeating patterns in outputs.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process. Try a variation with an amount of between 0 and 1 to change the output image for that seed.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"The ESRGAN setting can be used to increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[5]:{text:"Using GFPGAN or CodeFormer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher values will apply a stronger corrective pressure on outputs.",href:"link/to/docs/feature2.html",guideImage:"asset/path.gif"},[6]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"This setting allows for different denoising samplers to be used, as well as the number of denoising steps used, which will change the resulting output.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}},ipe=jt(e=>e.system,e=>e.shouldDisplayGuides),ape=({children:e,feature:t})=>{const n=xt(ipe),{text:r}=ope[t];return n?ee(MO,{trigger:"hover",children:[S(DO,{children:S(Io,{children:e})}),ee(LO,{maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[S(NO,{}),S(We,{alignItems:"center",gap:2,p:4,children:r})]})]}):S(Rn,{})},Al=ce(({feature:e,icon:t=y8},n)=>S(ape,{feature:e,children:S(Io,{ref:n,children:S(ao,{as:t})})})),spe=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),lpe=jt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),upe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=xt(spe),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=xt(lpe),u=Sn(),c=m=>u(Uue(m)),f=m=>u(Oue(m.target.checked)),p=m=>u(Iue(m.target.checked)),h=m=>u(Pue(m.target.checked));return ee(qT,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:c,children:[ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Seed & Variation"}),S(Al,{feature:bs.SEED_AND_VARIATION}),S(ms,{})]})}),S(vs,{children:S(Kfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Sampler"}),S(Al,{feature:bs.SAMPLER}),S(ms,{})]})}),S(vs,{children:S(Zfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Upscale (ESRGAN)"}),S(Vi,{isDisabled:!i,isChecked:e,onChange:f})]}),S(Al,{feature:bs.ESRGAN}),S(ms,{})]})}),S(vs,{children:S(Jfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Face Correction"}),S(Vi,{isDisabled:!o,isChecked:t,onChange:p})]}),S(Al,{feature:bs.FACE_CORRECTION}),S(ms,{})]})}),S(vs,{children:S(nde,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Image to Image"}),S(Vi,{isDisabled:!r,isChecked:n,onChange:h})]}),S(Al,{feature:bs.IMAGE_TO_IMAGE}),S(ms,{})]})}),S(vs,{children:S(rpe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Output"}),S(Al,{feature:bs.OUTPUT}),S(ms,{})]})}),S(vs,{children:S(ode,{})})]})]})},cpe=jt(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),fpe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),dpe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=xt(cpe),{isProcessing:s,isConnected:u}=xt(fpe);return C.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(ww(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},ppe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),hpe=()=>{const e=Sn(),{isProcessing:t,isConnected:n}=xt(ppe),r=dpe();return ee(We,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[S(Ti,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>e(s8())}),S(Ti,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(Qce())})]})},mpe=()=>{const{prompt:e}=xt(o=>o.options),t=Sn(),n=o=>t(LR(o.target.value)),r=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(s8()))};return S(VO,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:r,value:e,placeholder:"I'm dreaming of..."})},gpe=jt(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),vpe=jt(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),ype=()=>{const e=Sn(),t=xt(gpe),{shouldShowLogViewer:n}=xt(vpe),r=Ba("gray.50","gray.900"),o=Ba("gray.500","gray.500"),i=Ba({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[s,u]=C.exports.useState(!0),c=C.exports.useRef(null);C.exports.useLayoutEffect(()=>{c.current!==null&&s&&(c.current.scrollTop=c.current.scrollHeight)},[s,t,n]);const f=()=>{e(jue(!n))};return ee(Rn,{children:[n&&S(We,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:r,ref:c,children:t.map((p,h)=>{const{timestamp:m,message:v,level:y}=p;return ee(We,{gap:2,textColor:i[y],children:[ee(Kt,{fontSize:"sm",fontWeight:"semibold",children:[m,":"]}),S(Kt,{fontSize:"sm",wordBreak:"break-all",children:v})]},h)})}),n&&S(za,{label:s?"Autoscroll on":"Autoscroll off",children:S(pr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:s?"blue":"gray",icon:S(Sfe,{}),onClick:()=>u(!s)})}),S(za,{label:n?"Hide logs":"Show logs",children:S(pr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?S(kfe,{}):S(Cfe,{}),onClick:f})})]})},bpe=()=>{const e=Sn(),[t,n]=C.exports.useState(!1);return C.exports.useEffect(()=>{e(tfe()),n(!0)},[e]),t?ee(Rn,{children:[ee(IS,{width:"100vw",height:"100vh",templateAreas:` "header header header header" "progressBar progressBar progressBar progressBar" "menu prompt processButtons imageRoll" "menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[S(va,{area:"header",pt:1,children:S(Gfe,{})}),S(va,{area:"progressBar",children:S(Vfe,{})}),S(va,{pl:"2",area:"menu",overflowY:"scroll",children:S(upe,{})}),S(va,{area:"prompt",children:S(mpe,{})}),S(va,{area:"processButtons",children:S(hpe,{})}),S(va,{area:"currentImage",children:S(Dfe,{})}),S(va,{pr:"2",area:"imageRoll",overflowY:"scroll",children:S(Bfe,{})})]}),S(ype,{})]}):S(f8,{})},I8=cue(u8);by.createRoot(document.getElementById("root")).render(S(J.StrictMode,{children:S(Vle,{store:u8,children:S(c8,{loading:S(f8,{}),persistor:I8,children:ee(kse,{theme:aE,children:[S(zB,{initialColorMode:aE.config.initialColorMode}),S(bpe,{})]})})})}));