InvokeAI/frontend/dist/assets/index.00a29a58.js

488 lines
738 KiB
JavaScript

function hB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[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 Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _={exports:{}},Ge={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zf=Symbol.for("react.element"),gB=Symbol.for("react.portal"),vB=Symbol.for("react.fragment"),yB=Symbol.for("react.strict_mode"),bB=Symbol.for("react.profiler"),SB=Symbol.for("react.provider"),xB=Symbol.for("react.context"),wB=Symbol.for("react.forward_ref"),_B=Symbol.for("react.suspense"),CB=Symbol.for("react.memo"),kB=Symbol.for("react.lazy"),nC=Symbol.iterator;function EB(e){return e===null||typeof e!="object"?null:(e=nC&&e[nC]||e["@@iterator"],typeof e=="function"?e:null)}var KA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YA=Object.assign,XA={};function gu(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}gu.prototype.isReactComponent={};gu.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")};gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=gu.prototype;function vS(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}var yS=vS.prototype=new ZA;yS.constructor=vS;YA(yS,gu.prototype);yS.isPureReactComponent=!0;var rC=Array.isArray,QA=Object.prototype.hasOwnProperty,bS={current:null},JA={key:!0,ref:!0,__self:!0,__source:!0};function eT(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)QA.call(t,r)&&!JA.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var c=Array(u),f=0;f<u;f++)c[f]=arguments[f+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:zf,type:e,key:i,ref:s,props:o,_owner:bS.current}}function PB(e,t){return{$$typeof:zf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function SS(e){return typeof e=="object"&&e!==null&&e.$$typeof===zf}function AB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oC=/\/+/g;function j0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?AB(""+e.key):t.toString(36)}function th(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zf:case gB:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+j0(s,0):r,rC(o)?(n="",e!=null&&(n=e.replace(oC,"$&/")+"/"),th(o,t,n,"",function(f){return f})):o!=null&&(SS(o)&&(o=PB(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(oC,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",rC(e))for(var u=0;u<e.length;u++){i=e[u];var c=r+j0(i,u);s+=th(i,t,n,c,o)}else if(c=EB(e),typeof c=="function")for(e=c.call(e),u=0;!(i=e.next()).done;)i=i.value,c=r+j0(i,u++),s+=th(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function hp(e,t,n){if(e==null)return e;var r=[],o=0;return th(e,r,"","",function(i){return t.call(n,i,o++)}),r}function TB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Yn={current:null},nh={transition:null},OB={ReactCurrentDispatcher:Yn,ReactCurrentBatchConfig:nh,ReactCurrentOwner:bS};Ge.Children={map:hp,forEach:function(e,t,n){hp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hp(e,function(){t++}),t},toArray:function(e){return hp(e,function(t){return t})||[]},only:function(e){if(!SS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ge.Component=gu;Ge.Fragment=vB;Ge.Profiler=bB;Ge.PureComponent=vS;Ge.StrictMode=yB;Ge.Suspense=_B;Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OB;Ge.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=YA({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=bS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)QA.call(t,c)&&!JA.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:zf,type:e.type,key:o,ref:i,props:r,_owner:s}};Ge.createContext=function(e){return e={$$typeof:xB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:SB,_context:e},e.Consumer=e};Ge.createElement=eT;Ge.createFactory=function(e){var t=eT.bind(null,e);return t.type=e,t};Ge.createRef=function(){return{current:null}};Ge.forwardRef=function(e){return{$$typeof:wB,render:e}};Ge.isValidElement=SS;Ge.lazy=function(e){return{$$typeof:kB,_payload:{_status:-1,_result:e},_init:TB}};Ge.memo=function(e,t){return{$$typeof:CB,type:e,compare:t===void 0?null:t}};Ge.startTransition=function(e){var t=nh.transition;nh.transition={};try{e()}finally{nh.transition=t}};Ge.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ge.useCallback=function(e,t){return Yn.current.useCallback(e,t)};Ge.useContext=function(e){return Yn.current.useContext(e)};Ge.useDebugValue=function(){};Ge.useDeferredValue=function(e){return Yn.current.useDeferredValue(e)};Ge.useEffect=function(e,t){return Yn.current.useEffect(e,t)};Ge.useId=function(){return Yn.current.useId()};Ge.useImperativeHandle=function(e,t,n){return Yn.current.useImperativeHandle(e,t,n)};Ge.useInsertionEffect=function(e,t){return Yn.current.useInsertionEffect(e,t)};Ge.useLayoutEffect=function(e,t){return Yn.current.useLayoutEffect(e,t)};Ge.useMemo=function(e,t){return Yn.current.useMemo(e,t)};Ge.useReducer=function(e,t,n){return Yn.current.useReducer(e,t,n)};Ge.useRef=function(e){return Yn.current.useRef(e)};Ge.useState=function(e){return Yn.current.useState(e)};Ge.useSyncExternalStore=function(e,t,n){return Yn.current.useSyncExternalStore(e,t,n)};Ge.useTransition=function(){return Yn.current.useTransition()};Ge.version="18.2.0";(function(e){e.exports=Ge})(_);const ee=mB(_.exports),iC=hB({__proto__:null,default:ee},[_.exports]);var t1={},Vf={exports:{}},Dr={},tT={exports:{}},nT={};/**
* @license React
* scheduler.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.
*/(function(e){function t(j,X){var q=j.length;j.push(X);e:for(;0<q;){var R=q-1>>>1,H=j[R];if(0<o(H,X))j[R]=X,j[q]=H,q=R;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var X=j[0],q=j.pop();if(q!==X){j[0]=q;e:for(var R=0,H=j.length,ae=H>>>1;R<ae;){var se=2*(R+1)-1,he=j[se],ge=se+1,Ee=j[ge];if(0>o(he,q))ge<H&&0>o(Ee,he)?(j[R]=Ee,j[ge]=q,R=ge):(j[R]=he,j[se]=q,R=se);else if(ge<H&&0>o(Ee,q))j[R]=Ee,j[ge]=q,R=ge;else break e}}return X}function o(j,X){var q=j.sortIndex-X.sortIndex;return q!==0?q:j.id-X.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,S=!1,k=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=j)r(f),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(f)}}function P(j){if(S=!1,w(j),!y)if(n(c)!==null)y=!0,ve(O);else{var X=n(f);X!==null&&Pe(P,X.startTime-j)}}function O(j,X){y=!1,S&&(S=!1,x(V),V=-1),v=!0;var q=m;try{for(w(X),h=n(c);h!==null&&(!(h.expirationTime>X)||j&&!te());){var R=h.callback;if(typeof R=="function"){h.callback=null,m=h.priorityLevel;var H=R(h.expirationTime<=X);X=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(c)&&r(c),w(X)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var se=n(f);se!==null&&Pe(P,se.startTime-X),ae=!1}return ae}finally{h=null,m=q,v=!1}}var M=!1,N=null,V=-1,K=5,W=-1;function te(){return!(e.unstable_now()-W<K)}function xe(){if(N!==null){var j=e.unstable_now();W=j;var X=!0;try{X=N(!0,j)}finally{X?fe():(M=!1,N=null)}}else M=!1}var fe;if(typeof b=="function")fe=function(){b(xe)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Ce=we.port2;we.port1.onmessage=xe,fe=function(){Ce.postMessage(null)}}else fe=function(){k(xe,0)};function ve(j){N=j,M||(M=!0,fe())}function Pe(j,X){V=k(function(){j(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,ve(O))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var X=3;break;default:X=m}var q=m;m=X;try{return j()}finally{m=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,X){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var q=m;m=j;try{return X()}finally{m=q}},e.unstable_scheduleCallback=function(j,X,q){var R=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?R+q:R):q=R,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,j={id:p++,callback:X,priorityLevel:j,startTime:q,expirationTime:H,sortIndex:-1},q>R?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(S?(x(V),V=-1):S=!0,Pe(P,q-R))):(j.sortIndex=H,t(c,j),y||v||(y=!0,ve(O))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var X=m;return function(){var q=m;m=X;try{return j.apply(this,arguments)}finally{m=q}}}})(nT);(function(e){e.exports=nT})(tT);/**
* @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 rT=_.exports,Tr=tT.exports;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var oT=new Set,Yc={};function Ls(e,t){eu(e,t),eu(e+"Capture",t)}function eu(e,t){for(Yc[e]=t,e=0;e<t.length;e++)oT.add(t[e])}var Ni=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n1=Object.prototype.hasOwnProperty,IB=/^[: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]*$/,aC={},sC={};function RB(e){return n1.call(sC,e)?!0:n1.call(aC,e)?!1:IB.test(e)?sC[e]=!0:(aC[e]=!0,!1)}function DB(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 MB(e,t,n,r){if(t===null||typeof t>"u"||DB(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 Xn(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 Cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cn[e]=new Xn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cn[t]=new Xn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cn[e]=new Xn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cn[e]=new Xn(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){Cn[e]=new Xn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cn[e]=new Xn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cn[e]=new Xn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cn[e]=new Xn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cn[e]=new Xn(e,5,!1,e.toLowerCase(),null,!1,!1)});var xS=/[\-:]([a-z])/g;function wS(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(xS,wS);Cn[t]=new Xn(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(xS,wS);Cn[t]=new Xn(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(xS,wS);Cn[t]=new Xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!1,!1)});Cn.xlinkHref=new Xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!0,!0)});function _S(e,t,n,r){var o=Cn.hasOwnProperty(t)?Cn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(MB(t,n,o,r)&&(n=null),r||o===null?RB(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ji=rT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mp=Symbol.for("react.element"),wl=Symbol.for("react.portal"),_l=Symbol.for("react.fragment"),CS=Symbol.for("react.strict_mode"),r1=Symbol.for("react.profiler"),iT=Symbol.for("react.provider"),aT=Symbol.for("react.context"),kS=Symbol.for("react.forward_ref"),o1=Symbol.for("react.suspense"),i1=Symbol.for("react.suspense_list"),ES=Symbol.for("react.memo"),fa=Symbol.for("react.lazy"),sT=Symbol.for("react.offscreen"),lC=Symbol.iterator;function tc(e){return e===null||typeof e!="object"?null:(e=lC&&e[lC]||e["@@iterator"],typeof e=="function"?e:null)}var Bt=Object.assign,U0;function vc(e){if(U0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U0=t&&t[1]||""}return`
`+U0+e}var H0=!1;function G0(e,t){if(!e||H0)return"";H0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,u=i.length-1;1<=s&&0<=u&&o[s]!==i[u];)u--;for(;1<=s&&0<=u;s--,u--)if(o[s]!==i[u]){if(s!==1||u!==1)do if(s--,u--,0>u||o[s]!==i[u]){var c=`
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{H0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vc(e):""}function NB(e){switch(e.tag){case 5:return vc(e.type);case 16:return vc("Lazy");case 13:return vc("Suspense");case 19:return vc("SuspenseList");case 0:case 2:case 15:return e=G0(e.type,!1),e;case 11:return e=G0(e.type.render,!1),e;case 1:return e=G0(e.type,!0),e;default:return""}}function a1(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 _l:return"Fragment";case wl:return"Portal";case r1:return"Profiler";case CS:return"StrictMode";case o1:return"Suspense";case i1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aT:return(e.displayName||"Context")+".Consumer";case iT:return(e._context.displayName||"Context")+".Provider";case kS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ES:return t=e.displayName||null,t!==null?t:a1(e.type)||"Memo";case fa:t=e._payload,e=e._init;try{return a1(e(t))}catch{}}return null}function FB(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 a1(t);case 8:return t===CS?"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 Ma(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LB(e){var t=lT(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 gp(e){e._valueTracker||(e._valueTracker=LB(e))}function uT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nh(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 s1(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ma(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 cT(e,t){t=t.checked,t!=null&&_S(e,"checked",t,!1)}function l1(e,t){cT(e,t);var n=Ma(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")?u1(e,t.type,n):t.hasOwnProperty("defaultValue")&&u1(e,t.type,Ma(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cC(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 u1(e,t,n){(t!=="number"||Nh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yc=Array.isArray;function Bl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ma(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function c1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Bt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fC(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(oe(92));if(yc(n)){if(1<n.length)throw Error(oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ma(n)}}function fT(e,t){var n=Ma(t.value),r=Ma(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dC(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dT(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function f1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vp,pT=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vp=vp||document.createElement("div"),vp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ec={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},$B=["Webkit","ms","Moz","O"];Object.keys(Ec).forEach(function(e){$B.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ec[t]=Ec[e]})});function hT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ec.hasOwnProperty(e)&&Ec[e]?(""+t).trim():t+"px"}function mT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=hT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var BB=Bt({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 d1(e,t){if(t){if(BB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function p1(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 h1=null;function PS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var m1=null,zl=null,Vl=null;function pC(e){if(e=Uf(e)){if(typeof m1!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Xm(t),m1(e.stateNode,e.type,t))}}function gT(e){zl?Vl?Vl.push(e):Vl=[e]:zl=e}function vT(){if(zl){var e=zl,t=Vl;if(Vl=zl=null,pC(e),t)for(e=0;e<t.length;e++)pC(t[e])}}function yT(e,t){return e(t)}function bT(){}var q0=!1;function ST(e,t,n){if(q0)return e(t,n);q0=!0;try{return yT(e,t,n)}finally{q0=!1,(zl!==null||Vl!==null)&&(bT(),vT())}}function Zc(e,t){var n=e.stateNode;if(n===null)return null;var r=Xm(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(oe(231,t,typeof n));return n}var g1=!1;if(Ni)try{var nc={};Object.defineProperty(nc,"passive",{get:function(){g1=!0}}),window.addEventListener("test",nc,nc),window.removeEventListener("test",nc,nc)}catch{g1=!1}function zB(e,t,n,r,o,i,s,u,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Pc=!1,Fh=null,Lh=!1,v1=null,VB={onError:function(e){Pc=!0,Fh=e}};function WB(e,t,n,r,o,i,s,u,c){Pc=!1,Fh=null,zB.apply(VB,arguments)}function jB(e,t,n,r,o,i,s,u,c){if(WB.apply(this,arguments),Pc){if(Pc){var f=Fh;Pc=!1,Fh=null}else throw Error(oe(198));Lh||(Lh=!0,v1=f)}}function $s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function xT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hC(e){if($s(e)!==e)throw Error(oe(188))}function UB(e){var t=e.alternate;if(!t){if(t=$s(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return hC(o),e;if(i===r)return hC(o),t;i=i.sibling}throw Error(oe(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(oe(189))}}if(n.alternate!==r)throw Error(oe(190))}if(n.tag!==3)throw Error(oe(188));return n.stateNode.current===n?e:t}function wT(e){return e=UB(e),e!==null?_T(e):null}function _T(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_T(e);if(t!==null)return t;e=e.sibling}return null}var CT=Tr.unstable_scheduleCallback,mC=Tr.unstable_cancelCallback,HB=Tr.unstable_shouldYield,GB=Tr.unstable_requestPaint,Kt=Tr.unstable_now,qB=Tr.unstable_getCurrentPriorityLevel,AS=Tr.unstable_ImmediatePriority,kT=Tr.unstable_UserBlockingPriority,$h=Tr.unstable_NormalPriority,KB=Tr.unstable_LowPriority,ET=Tr.unstable_IdlePriority,Gm=null,Ko=null;function YB(e){if(Ko&&typeof Ko.onCommitFiberRoot=="function")try{Ko.onCommitFiberRoot(Gm,e,void 0,(e.current.flags&128)===128)}catch{}}var _o=Math.clz32?Math.clz32:QB,XB=Math.log,ZB=Math.LN2;function QB(e){return e>>>=0,e===0?32:31-(XB(e)/ZB|0)|0}var yp=64,bp=4194304;function bc(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 Bh(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=bc(u):(i&=s,i!==0&&(r=bc(i)))}else s=n&~o,s!==0?r=bc(s):i!==0&&(r=bc(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;0<t;)n=31-_o(t),o=1<<n,r|=e[n],t&=~o;return r}function JB(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ez(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-_o(i),u=1<<s,c=o[s];c===-1?((u&n)===0||(u&r)!==0)&&(o[s]=JB(u,t)):c<=t&&(e.expiredLanes|=u),i&=~u}}function y1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function PT(){var e=yp;return yp<<=1,(yp&4194240)===0&&(yp=64),e}function K0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_o(t),e[t]=n}function tz(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<n;){var o=31-_o(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function TS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_o(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ut=0;function AT(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var TT,OS,OT,IT,RT,b1=!1,Sp=[],Ca=null,ka=null,Ea=null,Qc=new Map,Jc=new Map,ha=[],nz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gC(e,t){switch(e){case"focusin":case"focusout":Ca=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":Qc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jc.delete(t.pointerId)}}function rc(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Uf(t),t!==null&&OS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function rz(e,t,n,r,o){switch(t){case"focusin":return Ca=rc(Ca,e,t,n,r,o),!0;case"dragenter":return ka=rc(ka,e,t,n,r,o),!0;case"mouseover":return Ea=rc(Ea,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Qc.set(i,rc(Qc.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Jc.set(i,rc(Jc.get(i)||null,e,t,n,r,o)),!0}return!1}function DT(e){var t=gs(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=xT(n),t!==null){e.blockedOn=t,RT(e.priority,function(){OT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=S1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);h1=r,n.target.dispatchEvent(r),h1=null}else return t=Uf(n),t!==null&&OS(t),e.blockedOn=n,!1;t.shift()}return!0}function vC(e,t,n){rh(e)&&n.delete(t)}function oz(){b1=!1,Ca!==null&&rh(Ca)&&(Ca=null),ka!==null&&rh(ka)&&(ka=null),Ea!==null&&rh(Ea)&&(Ea=null),Qc.forEach(vC),Jc.forEach(vC)}function oc(e,t){e.blockedOn===t&&(e.blockedOn=null,b1||(b1=!0,Tr.unstable_scheduleCallback(Tr.unstable_NormalPriority,oz)))}function ef(e){function t(o){return oc(o,e)}if(0<Sp.length){oc(Sp[0],e);for(var n=1;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ca!==null&&oc(Ca,e),ka!==null&&oc(ka,e),Ea!==null&&oc(Ea,e),Qc.forEach(t),Jc.forEach(t),n=0;n<ha.length;n++)r=ha[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)DT(n),n.blockedOn===null&&ha.shift()}var Wl=ji.ReactCurrentBatchConfig,zh=!0;function iz(e,t,n,r){var o=ut,i=Wl.transition;Wl.transition=null;try{ut=1,IS(e,t,n,r)}finally{ut=o,Wl.transition=i}}function az(e,t,n,r){var o=ut,i=Wl.transition;Wl.transition=null;try{ut=4,IS(e,t,n,r)}finally{ut=o,Wl.transition=i}}function IS(e,t,n,r){if(zh){var o=S1(e,t,n,r);if(o===null)oy(e,t,r,Vh,n),gC(e,r);else if(rz(o,e,t,n,r))r.stopPropagation();else if(gC(e,r),t&4&&-1<nz.indexOf(e)){for(;o!==null;){var i=Uf(o);if(i!==null&&TT(i),i=S1(e,t,n,r),i===null&&oy(e,t,r,Vh,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else oy(e,t,r,null,n)}}var Vh=null;function S1(e,t,n,r){if(Vh=null,e=PS(r),e=gs(e),e!==null)if(t=$s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=xT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vh=e,null}function MT(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qB()){case AS:return 1;case kT:return 4;case $h:case KB:return 16;case ET:return 536870912;default:return 16}default:return 16}}var ya=null,RS=null,oh=null;function NT(){if(oh)return oh;var e,t=RS,n=t.length,r,o="value"in ya?ya.value:ya.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return oh=o.slice(e,1<r?1-r:void 0)}function ih(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xp(){return!0}function yC(){return!1}function Mr(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xp:yC,this.isPropagationStopped=yC,this}return Bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xp)},persist:function(){},isPersistent:xp}),t}var vu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},DS=Mr(vu),jf=Bt({},vu,{view:0,detail:0}),sz=Mr(jf),Y0,X0,ic,qm=Bt({},jf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ic&&(ic&&e.type==="mousemove"?(Y0=e.screenX-ic.screenX,X0=e.screenY-ic.screenY):X0=Y0=0,ic=e),Y0)},movementY:function(e){return"movementY"in e?e.movementY:X0}}),bC=Mr(qm),lz=Bt({},qm,{dataTransfer:0}),uz=Mr(lz),cz=Bt({},jf,{relatedTarget:0}),Z0=Mr(cz),fz=Bt({},vu,{animationName:0,elapsedTime:0,pseudoElement:0}),dz=Mr(fz),pz=Bt({},vu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hz=Mr(pz),mz=Bt({},vu,{data:0}),SC=Mr(mz),gz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yz[e])?!!t[e]:!1}function MS(){return bz}var Sz=Bt({},jf,{key:function(e){if(e.key){var t=gz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ih(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MS,charCode:function(e){return e.type==="keypress"?ih(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ih(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xz=Mr(Sz),wz=Bt({},qm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xC=Mr(wz),_z=Bt({},jf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MS}),Cz=Mr(_z),kz=Bt({},vu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ez=Mr(kz),Pz=Bt({},qm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Az=Mr(Pz),Tz=[9,13,27,32],NS=Ni&&"CompositionEvent"in window,Ac=null;Ni&&"documentMode"in document&&(Ac=document.documentMode);var Oz=Ni&&"TextEvent"in window&&!Ac,FT=Ni&&(!NS||Ac&&8<Ac&&11>=Ac),wC=String.fromCharCode(32),_C=!1;function LT(e,t){switch(e){case"keyup":return Tz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $T(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function Iz(e,t){switch(e){case"compositionend":return $T(t);case"keypress":return t.which!==32?null:(_C=!0,wC);case"textInput":return e=t.data,e===wC&&_C?null:e;default:return null}}function Rz(e,t){if(Cl)return e==="compositionend"||!NS&&LT(e,t)?(e=NT(),oh=RS=ya=null,Cl=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return FT&&t.locale!=="ko"?null:t.data;default:return null}}var Dz={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function CC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dz[e.type]:t==="textarea"}function BT(e,t,n,r){gT(r),t=Wh(t,"onChange"),0<t.length&&(n=new DS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tc=null,tf=null;function Mz(e){XT(e,0)}function Km(e){var t=Pl(e);if(uT(t))return e}function Nz(e,t){if(e==="change")return t}var zT=!1;if(Ni){var Q0;if(Ni){var J0="oninput"in document;if(!J0){var kC=document.createElement("div");kC.setAttribute("oninput","return;"),J0=typeof kC.oninput=="function"}Q0=J0}else Q0=!1;zT=Q0&&(!document.documentMode||9<document.documentMode)}function EC(){Tc&&(Tc.detachEvent("onpropertychange",VT),tf=Tc=null)}function VT(e){if(e.propertyName==="value"&&Km(tf)){var t=[];BT(t,tf,e,PS(e)),ST(Mz,t)}}function Fz(e,t,n){e==="focusin"?(EC(),Tc=t,tf=n,Tc.attachEvent("onpropertychange",VT)):e==="focusout"&&EC()}function Lz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Km(tf)}function $z(e,t){if(e==="click")return Km(t)}function Bz(e,t){if(e==="input"||e==="change")return Km(t)}function zz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eo=typeof Object.is=="function"?Object.is:zz;function nf(e,t){if(Eo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!n1.call(t,o)||!Eo(e[o],t[o]))return!1}return!0}function PC(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function AC(e,t){var n=PC(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=PC(n)}}function WT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jT(){for(var e=window,t=Nh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nh(e.document)}return t}function FS(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 Vz(e){var t=jT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WT(n.ownerDocument.documentElement,n)){if(r!==null&&FS(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=AC(n,i);var s=AC(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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Wz=Ni&&"documentMode"in document&&11>=document.documentMode,kl=null,x1=null,Oc=null,w1=!1;function TC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;w1||kl==null||kl!==Nh(r)||(r=kl,"selectionStart"in r&&FS(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}),Oc&&nf(Oc,r)||(Oc=r,r=Wh(x1,"onSelect"),0<r.length&&(t=new DS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=kl)))}function wp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var El={animationend:wp("Animation","AnimationEnd"),animationiteration:wp("Animation","AnimationIteration"),animationstart:wp("Animation","AnimationStart"),transitionend:wp("Transition","TransitionEnd")},ey={},UT={};Ni&&(UT=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);function Ym(e){if(ey[e])return ey[e];if(!El[e])return e;var t=El[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in UT)return ey[e]=t[n];return e}var HT=Ym("animationend"),GT=Ym("animationiteration"),qT=Ym("animationstart"),KT=Ym("transitionend"),YT=new Map,OC="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ja(e,t){YT.set(e,t),Ls(t,[e])}for(var ty=0;ty<OC.length;ty++){var ny=OC[ty],jz=ny.toLowerCase(),Uz=ny[0].toUpperCase()+ny.slice(1);ja(jz,"on"+Uz)}ja(HT,"onAnimationEnd");ja(GT,"onAnimationIteration");ja(qT,"onAnimationStart");ja("dblclick","onDoubleClick");ja("focusin","onFocus");ja("focusout","onBlur");ja(KT,"onTransitionEnd");eu("onMouseEnter",["mouseout","mouseover"]);eu("onMouseLeave",["mouseout","mouseover"]);eu("onPointerEnter",["pointerout","pointerover"]);eu("onPointerLeave",["pointerout","pointerover"]);Ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ls("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sc));function IC(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jB(r,t,void 0,e),e.currentTarget=null}function XT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var u=r[s],c=u.instance,f=u.currentTarget;if(u=u.listener,c!==i&&o.isPropagationStopped())break e;IC(o,u,f),i=c}else for(s=0;s<r.length;s++){if(u=r[s],c=u.instance,f=u.currentTarget,u=u.listener,c!==i&&o.isPropagationStopped())break e;IC(o,u,f),i=c}}}if(Lh)throw e=v1,Lh=!1,v1=null,e}function kt(e,t){var n=t[P1];n===void 0&&(n=t[P1]=new Set);var r=e+"__bubble";n.has(r)||(ZT(t,e,2,!1),n.add(r))}function ry(e,t,n){var r=0;t&&(r|=4),ZT(n,e,r,t)}var _p="_reactListening"+Math.random().toString(36).slice(2);function rf(e){if(!e[_p]){e[_p]=!0,oT.forEach(function(n){n!=="selectionchange"&&(Hz.has(n)||ry(n,!1,e),ry(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_p]||(t[_p]=!0,ry("selectionchange",!1,t))}}function ZT(e,t,n,r){switch(MT(t)){case 1:var o=iz;break;case 4:o=az;break;default:o=IS}n=o.bind(null,t,n,e),o=void 0,!g1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function oy(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;u!==null;){if(s=gs(u),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}u=u.parentNode}}r=r.return}ST(function(){var f=i,p=PS(n),h=[];e:{var m=YT.get(e);if(m!==void 0){var v=DS,y=e;switch(e){case"keypress":if(ih(n)===0)break e;case"keydown":case"keyup":v=xz;break;case"focusin":y="focus",v=Z0;break;case"focusout":y="blur",v=Z0;break;case"beforeblur":case"afterblur":v=Z0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=bC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=uz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Cz;break;case HT:case GT:case qT:v=dz;break;case KT:v=Ez;break;case"scroll":v=sz;break;case"wheel":v=Az;break;case"copy":case"cut":case"paste":v=hz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=xC}var S=(t&4)!==0,k=!S&&e==="scroll",x=S?m!==null?m+"Capture":null:m;S=[];for(var b=f,w;b!==null;){w=b;var P=w.stateNode;if(w.tag===5&&P!==null&&(w=P,x!==null&&(P=Zc(b,x),P!=null&&S.push(of(b,P,w)))),k)break;b=b.return}0<S.length&&(m=new v(m,y,null,n,p),h.push({event:m,listeners:S}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==h1&&(y=n.relatedTarget||n.fromElement)&&(gs(y)||y[Fi]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=f,y=y?gs(y):null,y!==null&&(k=$s(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=f),v!==y)){if(S=bC,P="onMouseLeave",x="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(S=xC,P="onPointerLeave",x="onPointerEnter",b="pointer"),k=v==null?m:Pl(v),w=y==null?m:Pl(y),m=new S(P,b+"leave",v,n,p),m.target=k,m.relatedTarget=w,P=null,gs(p)===f&&(S=new S(x,b+"enter",y,n,p),S.target=w,S.relatedTarget=k,P=S),k=P,v&&y)t:{for(S=v,x=y,b=0,w=S;w;w=pl(w))b++;for(w=0,P=x;P;P=pl(P))w++;for(;0<b-w;)S=pl(S),b--;for(;0<w-b;)x=pl(x),w--;for(;b--;){if(S===x||x!==null&&S===x.alternate)break t;S=pl(S),x=pl(x)}S=null}else S=null;v!==null&&RC(h,m,v,S,!1),y!==null&&k!==null&&RC(h,k,y,S,!0)}}e:{if(m=f?Pl(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var O=Nz;else if(CC(m))if(zT)O=Bz;else{O=Lz;var M=Fz}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(O=$z);if(O&&(O=O(e,f))){BT(h,O,n,p);break e}M&&M(e,m,f),e==="focusout"&&(M=m._wrapperState)&&M.controlled&&m.type==="number"&&u1(m,"number",m.value)}switch(M=f?Pl(f):window,e){case"focusin":(CC(M)||M.contentEditable==="true")&&(kl=M,x1=f,Oc=null);break;case"focusout":Oc=x1=kl=null;break;case"mousedown":w1=!0;break;case"contextmenu":case"mouseup":case"dragend":w1=!1,TC(h,n,p);break;case"selectionchange":if(Wz)break;case"keydown":case"keyup":TC(h,n,p)}var N;if(NS)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Cl?LT(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(FT&&n.locale!=="ko"&&(Cl||V!=="onCompositionStart"?V==="onCompositionEnd"&&Cl&&(N=NT()):(ya=p,RS="value"in ya?ya.value:ya.textContent,Cl=!0)),M=Wh(f,V),0<M.length&&(V=new SC(V,e,null,n,p),h.push({event:V,listeners:M}),N?V.data=N:(N=$T(n),N!==null&&(V.data=N)))),(N=Oz?Iz(e,n):Rz(e,n))&&(f=Wh(f,"onBeforeInput"),0<f.length&&(p=new SC("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=N))}XT(h,t)})}function of(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wh(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Zc(e,n),i!=null&&r.unshift(of(e,i,o)),i=Zc(e,t),i!=null&&r.push(of(e,i,o))),e=e.return}return r}function pl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function RC(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var u=n,c=u.alternate,f=u.stateNode;if(c!==null&&c===r)break;u.tag===5&&f!==null&&(u=f,o?(c=Zc(n,i),c!=null&&s.unshift(of(n,c,u))):o||(c=Zc(n,i),c!=null&&s.push(of(n,c,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Gz=/\r\n?/g,qz=/\u0000|\uFFFD/g;function DC(e){return(typeof e=="string"?e:""+e).replace(Gz,`
`).replace(qz,"")}function Cp(e,t,n){if(t=DC(t),DC(e)!==t&&n)throw Error(oe(425))}function jh(){}var _1=null,C1=null;function k1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var E1=typeof setTimeout=="function"?setTimeout:void 0,Kz=typeof clearTimeout=="function"?clearTimeout:void 0,MC=typeof Promise=="function"?Promise:void 0,Yz=typeof queueMicrotask=="function"?queueMicrotask:typeof MC<"u"?function(e){return MC.resolve(null).then(e).catch(Xz)}:E1;function Xz(e){setTimeout(function(){throw e})}function iy(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ef(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ef(t)}function Pa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function NC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yu=Math.random().toString(36).slice(2),jo="__reactFiber$"+yu,af="__reactProps$"+yu,Fi="__reactContainer$"+yu,P1="__reactEvents$"+yu,Zz="__reactListeners$"+yu,Qz="__reactHandles$"+yu;function gs(e){var t=e[jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fi]||n[jo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=NC(e);e!==null;){if(n=e[jo])return n;e=NC(e)}return t}e=n,n=e.parentNode}return null}function Uf(e){return e=e[jo]||e[Fi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function Xm(e){return e[af]||null}var A1=[],Al=-1;function Ua(e){return{current:e}}function At(e){0>Al||(e.current=A1[Al],A1[Al]=null,Al--)}function _t(e,t){Al++,A1[Al]=e.current,e.current=t}var Na={},Fn=Ua(Na),ar=Ua(!1),Os=Na;function tu(e,t){var n=e.type.contextTypes;if(!n)return Na;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 sr(e){return e=e.childContextTypes,e!=null}function Uh(){At(ar),At(Fn)}function FC(e,t,n){if(Fn.current!==Na)throw Error(oe(168));_t(Fn,t),_t(ar,n)}function QT(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(oe(108,FB(e)||"Unknown",o));return Bt({},n,r)}function Hh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Os=Fn.current,_t(Fn,e),_t(ar,ar.current),!0}function LC(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=QT(e,t,Os),r.__reactInternalMemoizedMergedChildContext=e,At(ar),At(Fn),_t(Fn,e)):At(ar),_t(ar,n)}var Pi=null,Zm=!1,ay=!1;function JT(e){Pi===null?Pi=[e]:Pi.push(e)}function Jz(e){Zm=!0,JT(e)}function Ha(){if(!ay&&Pi!==null){ay=!0;var e=0,t=ut;try{var n=Pi;for(ut=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pi=null,Zm=!1}catch(o){throw Pi!==null&&(Pi=Pi.slice(e+1)),CT(AS,Ha),o}finally{ut=t,ay=!1}}return null}var Tl=[],Ol=0,Gh=null,qh=0,Kr=[],Yr=0,Is=null,Oi=1,Ii="";function as(e,t){Tl[Ol++]=qh,Tl[Ol++]=Gh,Gh=e,qh=t}function eO(e,t,n){Kr[Yr++]=Oi,Kr[Yr++]=Ii,Kr[Yr++]=Is,Is=e;var r=Oi;e=Ii;var o=32-_o(r)-1;r&=~(1<<o),n+=1;var i=32-_o(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Oi=1<<32-_o(t)+o|n<<o|r,Ii=i+e}else Oi=1<<i|n<<o|r,Ii=e}function LS(e){e.return!==null&&(as(e,1),eO(e,1,0))}function $S(e){for(;e===Gh;)Gh=Tl[--Ol],Tl[Ol]=null,qh=Tl[--Ol],Tl[Ol]=null;for(;e===Is;)Is=Kr[--Yr],Kr[Yr]=null,Ii=Kr[--Yr],Kr[Yr]=null,Oi=Kr[--Yr],Kr[Yr]=null}var Pr=null,Er=null,It=!1,xo=null;function tO(e,t){var n=Xr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $C(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Pr=e,Er=Pa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pr=e,Er=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Is!==null?{id:Oi,overflow:Ii}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pr=e,Er=null,!0):!1;default:return!1}}function T1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function O1(e){if(It){var t=Er;if(t){var n=t;if(!$C(e,t)){if(T1(e))throw Error(oe(418));t=Pa(n.nextSibling);var r=Pr;t&&$C(e,t)?tO(r,n):(e.flags=e.flags&-4097|2,It=!1,Pr=e)}}else{if(T1(e))throw Error(oe(418));e.flags=e.flags&-4097|2,It=!1,Pr=e}}}function BC(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pr=e}function kp(e){if(e!==Pr)return!1;if(!It)return BC(e),It=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!k1(e.type,e.memoizedProps)),t&&(t=Er)){if(T1(e))throw nO(),Error(oe(418));for(;t;)tO(e,t),t=Pa(t.nextSibling)}if(BC(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Er=Pa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Er=null}}else Er=Pr?Pa(e.stateNode.nextSibling):null;return!0}function nO(){for(var e=Er;e;)e=Pa(e.nextSibling)}function nu(){Er=Pr=null,It=!1}function BS(e){xo===null?xo=[e]:xo.push(e)}var e8=ji.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){t=Bt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Kh=Ua(null),Yh=null,Il=null,zS=null;function VS(){zS=Il=Yh=null}function WS(e){var t=Kh.current;At(Kh),e._currentValue=t}function I1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jl(e,t){Yh=e,zS=Il=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ir=!0),e.firstContext=null)}function eo(e){var t=e._currentValue;if(zS!==e)if(e={context:e,memoizedValue:t,next:null},Il===null){if(Yh===null)throw Error(oe(308));Il=e,Yh.dependencies={lanes:0,firstContext:e}}else Il=Il.next=e;return t}var vs=null;function jS(e){vs===null?vs=[e]:vs.push(e)}function rO(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,jS(t)):(n.next=o.next,o.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var da=!1;function US(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Xe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Li(e,n)}return o=r.interleaved,o===null?(t.next=t,jS(r)):(t.next=o.next,o.next=t),r.interleaved=t,Li(e,n)}function ah(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,TS(e,n)}}function zC(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xh(e,t,n,r){var o=e.updateQueue;da=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==s&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,u=i;do{var m=u.lane,v=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,S=u;switch(m=t,v=n,S.tag){case 1:if(y=S.payload,typeof y=="function"){h=y.call(v,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=S.payload,m=typeof y=="function"?y.call(v,h,m):y,m==null)break e;h=Bt({},h,m);break e;case 2:da=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ds|=s,e.lanes=s,e.memoizedState=h}}function VC(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(oe(191,o));o.call(r)}}}var iO=new rT.Component().refs;function R1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Bt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qm={isMounted:function(e){return(e=e._reactInternals)?$s(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qn(),o=Oa(e),i=Di(r,o);i.payload=t,n!=null&&(i.callback=n),t=Aa(e,i,o),t!==null&&(Co(t,e,o,r),ah(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qn(),o=Oa(e),i=Di(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Aa(e,i,o),t!==null&&(Co(t,e,o,r),ah(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qn(),r=Oa(e),o=Di(n,r);o.tag=2,t!=null&&(o.callback=t),t=Aa(e,o,r),t!==null&&(Co(t,e,r,n),ah(t,e,r))}};function WC(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!nf(n,r)||!nf(o,i):!0}function aO(e,t,n){var r=!1,o=Na,i=t.contextType;return typeof i=="object"&&i!==null?i=eo(i):(o=sr(t)?Os:Fn.current,r=t.contextTypes,i=(r=r!=null)?tu(e,o):Na),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function jC(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qm.enqueueReplaceState(t,t.state,null)}function D1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=iO,US(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=eo(i):(i=sr(t)?Os:Fn.current,o.context=tu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(R1(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Qm.enqueueReplaceState(o,o.state,null),Xh(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ac(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(oe(309));var r=n.stateNode}if(!r)throw Error(oe(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var u=o.refs;u===iO&&(u=o.refs={}),s===null?delete u[i]:u[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(oe(284));if(!n._owner)throw Error(oe(290,e))}return e}function Ep(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function UC(e){var t=e._init;return t(e._payload)}function sO(e){function t(x,b){if(e){var w=x.deletions;w===null?(x.deletions=[b],x.flags|=16):w.push(b)}}function n(x,b){if(!e)return null;for(;b!==null;)t(x,b),b=b.sibling;return null}function r(x,b){for(x=new Map;b!==null;)b.key!==null?x.set(b.key,b):x.set(b.index,b),b=b.sibling;return x}function o(x,b){return x=Ia(x,b),x.index=0,x.sibling=null,x}function i(x,b,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<b?(x.flags|=2,b):w):(x.flags|=2,b)):(x.flags|=1048576,b)}function s(x){return e&&x.alternate===null&&(x.flags|=2),x}function u(x,b,w,P){return b===null||b.tag!==6?(b=py(w,x.mode,P),b.return=x,b):(b=o(b,w),b.return=x,b)}function c(x,b,w,P){var O=w.type;return O===_l?p(x,b,w.props.children,P,w.key):b!==null&&(b.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===fa&&UC(O)===b.type)?(P=o(b,w.props),P.ref=ac(x,b,w),P.return=x,P):(P=dh(w.type,w.key,w.props,null,x.mode,P),P.ref=ac(x,b,w),P.return=x,P)}function f(x,b,w,P){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=hy(w,x.mode,P),b.return=x,b):(b=o(b,w.children||[]),b.return=x,b)}function p(x,b,w,P,O){return b===null||b.tag!==7?(b=_s(w,x.mode,P,O),b.return=x,b):(b=o(b,w),b.return=x,b)}function h(x,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=py(""+b,x.mode,w),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case mp:return w=dh(b.type,b.key,b.props,null,x.mode,w),w.ref=ac(x,null,b),w.return=x,w;case wl:return b=hy(b,x.mode,w),b.return=x,b;case fa:var P=b._init;return h(x,P(b._payload),w)}if(yc(b)||tc(b))return b=_s(b,x.mode,w,null),b.return=x,b;Ep(x,b)}return null}function m(x,b,w,P){var O=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return O!==null?null:u(x,b,""+w,P);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case mp:return w.key===O?c(x,b,w,P):null;case wl:return w.key===O?f(x,b,w,P):null;case fa:return O=w._init,m(x,b,O(w._payload),P)}if(yc(w)||tc(w))return O!==null?null:p(x,b,w,P,null);Ep(x,w)}return null}function v(x,b,w,P,O){if(typeof P=="string"&&P!==""||typeof P=="number")return x=x.get(w)||null,u(b,x,""+P,O);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case mp:return x=x.get(P.key===null?w:P.key)||null,c(b,x,P,O);case wl:return x=x.get(P.key===null?w:P.key)||null,f(b,x,P,O);case fa:var M=P._init;return v(x,b,w,M(P._payload),O)}if(yc(P)||tc(P))return x=x.get(w)||null,p(b,x,P,O,null);Ep(b,P)}return null}function y(x,b,w,P){for(var O=null,M=null,N=b,V=b=0,K=null;N!==null&&V<w.length;V++){N.index>V?(K=N,N=null):K=N.sibling;var W=m(x,N,w[V],P);if(W===null){N===null&&(N=K);break}e&&N&&W.alternate===null&&t(x,N),b=i(W,b,V),M===null?O=W:M.sibling=W,M=W,N=K}if(V===w.length)return n(x,N),It&&as(x,V),O;if(N===null){for(;V<w.length;V++)N=h(x,w[V],P),N!==null&&(b=i(N,b,V),M===null?O=N:M.sibling=N,M=N);return It&&as(x,V),O}for(N=r(x,N);V<w.length;V++)K=v(N,x,V,w[V],P),K!==null&&(e&&K.alternate!==null&&N.delete(K.key===null?V:K.key),b=i(K,b,V),M===null?O=K:M.sibling=K,M=K);return e&&N.forEach(function(te){return t(x,te)}),It&&as(x,V),O}function S(x,b,w,P){var O=tc(w);if(typeof O!="function")throw Error(oe(150));if(w=O.call(w),w==null)throw Error(oe(151));for(var M=O=null,N=b,V=b=0,K=null,W=w.next();N!==null&&!W.done;V++,W=w.next()){N.index>V?(K=N,N=null):K=N.sibling;var te=m(x,N,W.value,P);if(te===null){N===null&&(N=K);break}e&&N&&te.alternate===null&&t(x,N),b=i(te,b,V),M===null?O=te:M.sibling=te,M=te,N=K}if(W.done)return n(x,N),It&&as(x,V),O;if(N===null){for(;!W.done;V++,W=w.next())W=h(x,W.value,P),W!==null&&(b=i(W,b,V),M===null?O=W:M.sibling=W,M=W);return It&&as(x,V),O}for(N=r(x,N);!W.done;V++,W=w.next())W=v(N,x,V,W.value,P),W!==null&&(e&&W.alternate!==null&&N.delete(W.key===null?V:W.key),b=i(W,b,V),M===null?O=W:M.sibling=W,M=W);return e&&N.forEach(function(xe){return t(x,xe)}),It&&as(x,V),O}function k(x,b,w,P){if(typeof w=="object"&&w!==null&&w.type===_l&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mp:e:{for(var O=w.key,M=b;M!==null;){if(M.key===O){if(O=w.type,O===_l){if(M.tag===7){n(x,M.sibling),b=o(M,w.props.children),b.return=x,x=b;break e}}else if(M.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===fa&&UC(O)===M.type){n(x,M.sibling),b=o(M,w.props),b.ref=ac(x,M,w),b.return=x,x=b;break e}n(x,M);break}else t(x,M);M=M.sibling}w.type===_l?(b=_s(w.props.children,x.mode,P,w.key),b.return=x,x=b):(P=dh(w.type,w.key,w.props,null,x.mode,P),P.ref=ac(x,b,w),P.return=x,x=P)}return s(x);case wl:e:{for(M=w.key;b!==null;){if(b.key===M)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(x,b.sibling),b=o(b,w.children||[]),b.return=x,x=b;break e}else{n(x,b);break}else t(x,b);b=b.sibling}b=hy(w,x.mode,P),b.return=x,x=b}return s(x);case fa:return M=w._init,k(x,b,M(w._payload),P)}if(yc(w))return y(x,b,w,P);if(tc(w))return S(x,b,w,P);Ep(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(x,b.sibling),b=o(b,w),b.return=x,x=b):(n(x,b),b=py(w,x.mode,P),b.return=x,x=b),s(x)):n(x,b)}return k}var ru=sO(!0),lO=sO(!1),Hf={},Yo=Ua(Hf),sf=Ua(Hf),lf=Ua(Hf);function ys(e){if(e===Hf)throw Error(oe(174));return e}function HS(e,t){switch(_t(lf,t),_t(sf,e),_t(Yo,Hf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:f1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=f1(t,e)}At(Yo),_t(Yo,t)}function ou(){At(Yo),At(sf),At(lf)}function uO(e){ys(lf.current);var t=ys(Yo.current),n=f1(t,e.type);t!==n&&(_t(sf,e),_t(Yo,n))}function GS(e){sf.current===e&&(At(Yo),At(sf))}var Lt=Ua(0);function Zh(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 sy=[];function qS(){for(var e=0;e<sy.length;e++)sy[e]._workInProgressVersionPrimary=null;sy.length=0}var sh=ji.ReactCurrentDispatcher,ly=ji.ReactCurrentBatchConfig,Rs=0,$t=null,an=null,fn=null,Qh=!1,Ic=!1,uf=0,t8=0;function On(){throw Error(oe(321))}function KS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Eo(e[n],t[n]))return!1;return!0}function YS(e,t,n,r,o,i){if(Rs=i,$t=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sh.current=e===null||e.memoizedState===null?i8:a8,e=n(r,o),Ic){i=0;do{if(Ic=!1,uf=0,25<=i)throw Error(oe(301));i+=1,fn=an=null,t.updateQueue=null,sh.current=s8,e=n(r,o)}while(Ic)}if(sh.current=Jh,t=an!==null&&an.next!==null,Rs=0,fn=an=$t=null,Qh=!1,t)throw Error(oe(300));return e}function XS(){var e=uf!==0;return uf=0,e}function Lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?$t.memoizedState=fn=e:fn=fn.next=e,fn}function to(){if(an===null){var e=$t.alternate;e=e!==null?e.memoizedState:null}else e=an.next;var t=fn===null?$t.memoizedState:fn.next;if(t!==null)fn=t,an=e;else{if(e===null)throw Error(oe(310));an=e,e={memoizedState:an.memoizedState,baseState:an.baseState,baseQueue:an.baseQueue,queue:an.queue,next:null},fn===null?$t.memoizedState=fn=e:fn=fn.next=e}return fn}function cf(e,t){return typeof t=="function"?t(e):t}function uy(e){var t=to(),n=t.queue;if(n===null)throw Error(oe(311));n.lastRenderedReducer=e;var r=an,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=s=null,c=null,f=i;do{var p=f.lane;if((Rs&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(u=c=h,s=r):c=c.next=h,$t.lanes|=p,Ds|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=u,Eo(r,t.memoizedState)||(ir=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,$t.lanes|=i,Ds|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cy(e){var t=to(),n=t.queue;if(n===null)throw Error(oe(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Eo(i,t.memoizedState)||(ir=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function cO(){}function fO(e,t){var n=$t,r=to(),o=t(),i=!Eo(r.memoizedState,o);if(i&&(r.memoizedState=o,ir=!0),r=r.queue,ZS(hO.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||fn!==null&&fn.memoizedState.tag&1){if(n.flags|=2048,ff(9,pO.bind(null,n,r,o,t),void 0,null),dn===null)throw Error(oe(349));(Rs&30)!==0||dO(n,t,o)}return o}function dO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=$t.updateQueue,t===null?(t={lastEffect:null,stores:null},$t.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pO(e,t,n,r){t.value=n,t.getSnapshot=r,mO(t)&&gO(e)}function hO(e,t,n){return n(function(){mO(t)&&gO(e)})}function mO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Eo(e,n)}catch{return!0}}function gO(e){var t=Li(e,1);t!==null&&Co(t,e,1,-1)}function HC(e){var t=Lo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cf,lastRenderedState:e},t.queue=e,e=e.dispatch=o8.bind(null,$t,e),[t.memoizedState,e]}function ff(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=$t.updateQueue,t===null?(t={lastEffect:null,stores:null},$t.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function vO(){return to().memoizedState}function lh(e,t,n,r){var o=Lo();$t.flags|=e,o.memoizedState=ff(1|t,n,void 0,r===void 0?null:r)}function Jm(e,t,n,r){var o=to();r=r===void 0?null:r;var i=void 0;if(an!==null){var s=an.memoizedState;if(i=s.destroy,r!==null&&KS(r,s.deps)){o.memoizedState=ff(t,n,i,r);return}}$t.flags|=e,o.memoizedState=ff(1|t,n,i,r)}function GC(e,t){return lh(8390656,8,e,t)}function ZS(e,t){return Jm(2048,8,e,t)}function yO(e,t){return Jm(4,2,e,t)}function bO(e,t){return Jm(4,4,e,t)}function SO(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xO(e,t,n){return n=n!=null?n.concat([e]):null,Jm(4,4,SO.bind(null,t,e),n)}function QS(){}function wO(e,t){var n=to();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _O(e,t){var n=to();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function CO(e,t,n){return(Rs&21)===0?(e.baseState&&(e.baseState=!1,ir=!0),e.memoizedState=n):(Eo(n,t)||(n=PT(),$t.lanes|=n,Ds|=n,e.baseState=!0),t)}function n8(e,t){var n=ut;ut=n!==0&&4>n?n:4,e(!0);var r=ly.transition;ly.transition={};try{e(!1),t()}finally{ut=n,ly.transition=r}}function kO(){return to().memoizedState}function r8(e,t,n){var r=Oa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},EO(e))PO(t,n);else if(n=rO(e,t,n,r),n!==null){var o=qn();Co(n,e,r,o),AO(n,t,r)}}function o8(e,t,n){var r=Oa(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(EO(e))PO(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,Eo(u,s)){var c=t.interleaved;c===null?(o.next=o,jS(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=rO(e,t,o,r),n!==null&&(o=qn(),Co(n,e,r,o),AO(n,t,r))}}function EO(e){var t=e.alternate;return e===$t||t!==null&&t===$t}function PO(e,t){Ic=Qh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AO(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,TS(e,n)}}var Jh={readContext:eo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},i8={readContext:eo,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:GC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lh(4194308,4,SO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lh(4194308,4,e,t)},useInsertionEffect:function(e,t){return lh(4,2,e,t)},useMemo:function(e,t){var n=Lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lo();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=r8.bind(null,$t,e),[r.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:HC,useDebugValue:QS,useDeferredValue:function(e){return Lo().memoizedState=e},useTransition:function(){var e=HC(!1),t=e[0];return e=n8.bind(null,e[1]),Lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$t,o=Lo();if(It){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),dn===null)throw Error(oe(349));(Rs&30)!==0||dO(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,GC(hO.bind(null,r,i,e),[e]),r.flags|=2048,ff(9,pO.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Lo(),t=dn.identifierPrefix;if(It){var n=Ii,r=Oi;n=(r&~(1<<32-_o(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=t8++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},a8={readContext:eo,useCallback:wO,useContext:eo,useEffect:ZS,useImperativeHandle:xO,useInsertionEffect:yO,useLayoutEffect:bO,useMemo:_O,useReducer:uy,useRef:vO,useState:function(){return uy(cf)},useDebugValue:QS,useDeferredValue:function(e){var t=to();return CO(t,an.memoizedState,e)},useTransition:function(){var e=uy(cf)[0],t=to().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:fO,useId:kO,unstable_isNewReconciler:!1},s8={readContext:eo,useCallback:wO,useContext:eo,useEffect:ZS,useImperativeHandle:xO,useInsertionEffect:yO,useLayoutEffect:bO,useMemo:_O,useReducer:cy,useRef:vO,useState:function(){return cy(cf)},useDebugValue:QS,useDeferredValue:function(e){var t=to();return an===null?t.memoizedState=e:CO(t,an.memoizedState,e)},useTransition:function(){var e=cy(cf)[0],t=to().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:fO,useId:kO,unstable_isNewReconciler:!1};function iu(e,t){try{var n="",r=t;do n+=NB(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function fy(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function M1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var l8=typeof WeakMap=="function"?WeakMap:Map;function TO(e,t,n){n=Di(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tm||(tm=!0,U1=r),M1(e,t)},n}function OO(e,t,n){n=Di(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){M1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){M1(e,t),typeof r!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function qC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new l8;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=w8.bind(null,e,t,n),t.then(e,e))}function KC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function YC(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Di(-1,1),t.tag=2,Aa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var u8=ji.ReactCurrentOwner,ir=!1;function Gn(e,t,n,r){t.child=e===null?lO(t,null,n,r):ru(t,e.child,n,r)}function XC(e,t,n,r,o){n=n.render;var i=t.ref;return jl(t,o),r=YS(e,t,n,r,i,o),n=XS(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(It&&n&&LS(t),t.flags|=1,Gn(e,t,r,o),t.child)}function ZC(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ax(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,IO(e,t,i,r,o)):(e=dh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:nf,n(s,r)&&e.ref===t.ref)return $i(e,t,o)}return t.flags|=1,e=Ia(i,r),e.ref=t.ref,e.return=t,t.child=e}function IO(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(nf(i,r)&&e.ref===t.ref)if(ir=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ir=!0);else return t.lanes=e.lanes,$i(e,t,o)}return N1(e,t,n,r,o)}function RO(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_t(Dl,kr),kr|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_t(Dl,kr),kr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,_t(Dl,kr),kr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,_t(Dl,kr),kr|=r;return Gn(e,t,o,n),t.child}function DO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function N1(e,t,n,r,o){var i=sr(n)?Os:Fn.current;return i=tu(t,i),jl(t,o),n=YS(e,t,n,r,i,o),r=XS(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(It&&r&&LS(t),t.flags|=1,Gn(e,t,n,o),t.child)}function QC(e,t,n,r,o){if(sr(n)){var i=!0;Hh(t)}else i=!1;if(jl(t,o),t.stateNode===null)uh(e,t),aO(t,n,r),D1(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=eo(f):(f=sr(n)?Os:Fn.current,f=tu(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||c!==f)&&jC(t,s,r,f),da=!1;var m=t.memoizedState;s.state=m,Xh(t,r,s,o),c=t.memoizedState,u!==r||m!==c||ar.current||da?(typeof p=="function"&&(R1(t,n,p,r),c=t.memoizedState),(u=da||WC(t,n,u,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,oO(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:yo(t.type,u),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=eo(c):(c=sr(n)?Os:Fn.current,c=tu(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==h||m!==c)&&jC(t,s,r,c),da=!1,m=t.memoizedState,s.state=m,Xh(t,r,s,o);var y=t.memoizedState;u!==h||m!==y||ar.current||da?(typeof v=="function"&&(R1(t,n,v,r),y=t.memoizedState),(f=da||WC(t,n,f,r,m,y,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=c,r=f):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return F1(e,t,n,r,i,o)}function F1(e,t,n,r,o,i){DO(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&LC(t,n,!1),$i(e,t,i);r=t.stateNode,u8.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ru(t,e.child,null,i),t.child=ru(t,null,u,i)):Gn(e,t,u,i),t.memoizedState=r.state,o&&LC(t,n,!0),t.child}function MO(e){var t=e.stateNode;t.pendingContext?FC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&FC(e,t.context,!1),HS(e,t.containerInfo)}function JC(e,t,n,r,o){return nu(),BS(o),t.flags|=256,Gn(e,t,n,r),t.child}var L1={dehydrated:null,treeContext:null,retryLane:0};function $1(e){return{baseLanes:e,cachePool:null,transitions:null}}function NO(e,t,n){var r=t.pendingProps,o=Lt.current,i=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),_t(Lt,o&1),e===null)return O1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ng(s,r,0,null),e=_s(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$1(n),t.memoizedState=L1,e):JS(t,s));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return c8(e,t,s,r,u,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,u=o.sibling;var c={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ia(o,c),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=Ia(u,i):(i=_s(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?$1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=L1,r}return i=e.child,e=i.sibling,r=Ia(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function JS(e,t){return t=ng({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pp(e,t,n,r){return r!==null&&BS(r),ru(t,e.child,null,n),e=JS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c8(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=fy(Error(oe(422))),Pp(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ng({mode:"visible",children:r.children},o,0,null),i=_s(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&ru(t,e.child,null,s),t.child.memoizedState=$1(s),t.memoizedState=L1,i);if((t.mode&1)===0)return Pp(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(oe(419)),r=fy(i,r,void 0),Pp(e,t,s,r)}if(u=(s&e.childLanes)!==0,ir||u){if(r=dn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Li(e,o),Co(r,e,o,-1))}return ix(),r=fy(Error(oe(421))),Pp(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=_8.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Er=Pa(o.nextSibling),Pr=t,It=!0,xo=null,e!==null&&(Kr[Yr++]=Oi,Kr[Yr++]=Ii,Kr[Yr++]=Is,Oi=e.id,Ii=e.overflow,Is=t),t=JS(t,r.children),t.flags|=4096,t)}function ek(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),I1(e.return,t,n)}function dy(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function FO(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Gn(e,t,r.children,n),r=Lt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ek(e,n,t);else if(e.tag===19)ek(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_t(Lt,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Zh(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),dy(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Zh(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}dy(t,!0,n,null,i);break;case"together":dy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uh(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ds|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,n=Ia(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ia(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function f8(e,t,n){switch(t.tag){case 3:MO(t),nu();break;case 5:uO(t);break;case 1:sr(t.type)&&Hh(t);break;case 4:HS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_t(Kh,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_t(Lt,Lt.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?NO(e,t,n):(_t(Lt,Lt.current&1),e=$i(e,t,n),e!==null?e.sibling:null);_t(Lt,Lt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return FO(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_t(Lt,Lt.current),r)break;return null;case 22:case 23:return t.lanes=0,RO(e,t,n)}return $i(e,t,n)}var LO,B1,$O,BO;LO=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};B1=function(){};$O=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ys(Yo.current);var i=null;switch(n){case"input":o=s1(e,o),r=s1(e,r),i=[];break;case"select":o=Bt({},o,{value:void 0}),r=Bt({},r,{value:void 0}),i=[];break;case"textarea":o=c1(e,o),r=c1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jh)}d1(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var u=o[f];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Yc.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(u=o?.[f],r.hasOwnProperty(f)&&c!==u&&(c!=null||u!=null))if(f==="style")if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Yc.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&kt("scroll",e),i||u===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};BO=function(e,t,n,r){n!==r&&(t.flags|=4)};function sc(e,t){if(!It)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function In(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function d8(e,t,n){var r=t.pendingProps;switch($S(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return In(t),null;case 1:return sr(t.type)&&Uh(),In(t),null;case 3:return r=t.stateNode,ou(),At(ar),At(Fn),qS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xo!==null&&(q1(xo),xo=null))),B1(e,t),In(t),null;case 5:GS(t);var o=ys(lf.current);if(n=t.type,e!==null&&t.stateNode!=null)$O(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(oe(166));return In(t),null}if(e=ys(Yo.current),kp(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[jo]=t,r[af]=i,e=(t.mode&1)!==0,n){case"dialog":kt("cancel",r),kt("close",r);break;case"iframe":case"object":case"embed":kt("load",r);break;case"video":case"audio":for(o=0;o<Sc.length;o++)kt(Sc[o],r);break;case"source":kt("error",r);break;case"img":case"image":case"link":kt("error",r),kt("load",r);break;case"details":kt("toggle",r);break;case"input":uC(r,i),kt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},kt("invalid",r);break;case"textarea":fC(r,i),kt("invalid",r)}d1(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var u=i[s];s==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&Cp(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&Cp(r.textContent,u,e),o=["children",""+u]):Yc.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&kt("scroll",r)}switch(n){case"input":gp(r),cC(r,i,!0);break;case"textarea":gp(r),dC(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=jh)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dT(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/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[jo]=t,e[af]=r,LO(e,t,!1,!1),t.stateNode=e;e:{switch(s=p1(n,r),n){case"dialog":kt("cancel",e),kt("close",e),o=r;break;case"iframe":case"object":case"embed":kt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sc.length;o++)kt(Sc[o],e);o=r;break;case"source":kt("error",e),o=r;break;case"img":case"image":case"link":kt("error",e),kt("load",e),o=r;break;case"details":kt("toggle",e),o=r;break;case"input":uC(e,r),o=s1(e,r),kt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Bt({},r,{value:void 0}),kt("invalid",e);break;case"textarea":fC(e,r),o=c1(e,r),kt("invalid",e);break;default:o=r}d1(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var c=u[i];i==="style"?mT(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&pT(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Xc(e,c):typeof c=="number"&&Xc(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yc.hasOwnProperty(i)?c!=null&&i==="onScroll"&&kt("scroll",e):c!=null&&_S(e,i,c,s))}switch(n){case"input":gp(e),cC(e,r,!1);break;case"textarea":gp(e),dC(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ma(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Bl(e,!!r.multiple,i,!1):r.defaultValue!=null&&Bl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=jh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return In(t),null;case 6:if(e&&t.stateNode!=null)BO(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(oe(166));if(n=ys(lf.current),ys(Yo.current),kp(t)){if(r=t.stateNode,n=t.memoizedProps,r[jo]=t,(i=r.nodeValue!==n)&&(e=Pr,e!==null))switch(e.tag){case 3:Cp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cp(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jo]=t,t.stateNode=r}return In(t),null;case 13:if(At(Lt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(It&&Er!==null&&(t.mode&1)!==0&&(t.flags&128)===0)nO(),nu(),t.flags|=98560,i=!1;else if(i=kp(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(oe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(oe(317));i[jo]=t}else nu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;In(t),i=!1}else xo!==null&&(q1(xo),xo=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Lt.current&1)!==0?sn===0&&(sn=3):ix())),t.updateQueue!==null&&(t.flags|=4),In(t),null);case 4:return ou(),B1(e,t),e===null&&rf(t.stateNode.containerInfo),In(t),null;case 10:return WS(t.type._context),In(t),null;case 17:return sr(t.type)&&Uh(),In(t),null;case 19:if(At(Lt),i=t.memoizedState,i===null)return In(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)sc(i,!1);else{if(sn!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Zh(e),s!==null){for(t.flags|=128,sc(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _t(Lt,Lt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Kt()>au&&(t.flags|=128,r=!0,sc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zh(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!It)return In(t),null}else 2*Kt()-i.renderingStartTime>au&&n!==1073741824&&(t.flags|=128,r=!0,sc(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=Kt(),t.sibling=null,n=Lt.current,_t(Lt,r?n&1|2:n&1),t):(In(t),null);case 22:case 23:return ox(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kr&1073741824)!==0&&(In(t),t.subtreeFlags&6&&(t.flags|=8192)):In(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function p8(e,t){switch($S(t),t.tag){case 1:return sr(t.type)&&Uh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ou(),At(ar),At(Fn),qS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return GS(t),null;case 13:if(At(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));nu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Lt),null;case 4:return ou(),null;case 10:return WS(t.type._context),null;case 22:case 23:return ox(),null;case 24:return null;default:return null}}var Ap=!1,Mn=!1,h8=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Rl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function z1(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var tk=!1;function m8(e,t){if(_1=zh,e=jT(),FS(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(C1={focusedElem:e,selectionRange:n},zh=!1,Se=t;Se!==null;)if(t=Se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Se=e;else for(;Se!==null;){t=Se;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 S=y.memoizedProps,k=y.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?S:yo(t.type,S),k);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(P){Wt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Se=e;break}Se=t.return}return y=tk,tk=!1,y}function Rc(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&&z1(t,n,i)}o=o.next}while(o!==r)}}function eg(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 V1(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 zO(e){var t=e.alternate;t!==null&&(e.alternate=null,zO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jo],delete t[af],delete t[P1],delete t[Zz],delete t[Qz])),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 VO(e){return e.tag===5||e.tag===3||e.tag===4}function nk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VO(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 W1(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=jh));else if(r!==4&&(e=e.child,e!==null))for(W1(e,t,n),e=e.sibling;e!==null;)W1(e,t,n),e=e.sibling}function j1(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(j1(e,t,n),e=e.sibling;e!==null;)j1(e,t,n),e=e.sibling}var Sn=null,bo=!1;function ra(e,t,n){for(n=n.child;n!==null;)WO(e,t,n),n=n.sibling}function WO(e,t,n){if(Ko&&typeof Ko.onCommitFiberUnmount=="function")try{Ko.onCommitFiberUnmount(Gm,n)}catch{}switch(n.tag){case 5:Mn||Rl(n,t);case 6:var r=Sn,o=bo;Sn=null,ra(e,t,n),Sn=r,bo=o,Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?iy(e.parentNode,n):e.nodeType===1&&iy(e,n),ef(e)):iy(Sn,n.stateNode));break;case 4:r=Sn,o=bo,Sn=n.stateNode.containerInfo,bo=!0,ra(e,t,n),Sn=r,bo=o;break;case 0:case 11:case 14:case 15:if(!Mn&&(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)&&z1(n,t,s),o=o.next}while(o!==r)}ra(e,t,n);break;case 1:if(!Mn&&(Rl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Wt(n,t,u)}ra(e,t,n);break;case 21:ra(e,t,n);break;case 22:n.mode&1?(Mn=(r=Mn)||n.memoizedState!==null,ra(e,t,n),Mn=r):ra(e,t,n);break;default:ra(e,t,n)}}function rk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h8),t.forEach(function(r){var o=C8.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function po(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:Sn=u.stateNode,bo=!1;break e;case 3:Sn=u.stateNode.containerInfo,bo=!0;break e;case 4:Sn=u.stateNode.containerInfo,bo=!0;break e}u=u.return}if(Sn===null)throw Error(oe(160));WO(i,s,o),Sn=null,bo=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){Wt(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jO(t,e),t=t.sibling}function jO(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(po(t,e),Do(e),r&4){try{Rc(3,e,e.return),eg(3,e)}catch(S){Wt(e,e.return,S)}try{Rc(5,e,e.return)}catch(S){Wt(e,e.return,S)}}break;case 1:po(t,e),Do(e),r&512&&n!==null&&Rl(n,n.return);break;case 5:if(po(t,e),Do(e),r&512&&n!==null&&Rl(n,n.return),e.flags&32){var o=e.stateNode;try{Xc(o,"")}catch(S){Wt(e,e.return,S)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,u=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&cT(o,i),p1(u,s);var f=p1(u,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?mT(o,h):p==="dangerouslySetInnerHTML"?pT(o,h):p==="children"?Xc(o,h):_S(o,p,h,f)}switch(u){case"input":l1(o,i);break;case"textarea":fT(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Bl(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Bl(o,!!i.multiple,i.defaultValue,!0):Bl(o,!!i.multiple,i.multiple?[]:"",!1))}o[af]=i}catch(S){Wt(e,e.return,S)}}break;case 6:if(po(t,e),Do(e),r&4){if(e.stateNode===null)throw Error(oe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(S){Wt(e,e.return,S)}}break;case 3:if(po(t,e),Do(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ef(t.containerInfo)}catch(S){Wt(e,e.return,S)}break;case 4:po(t,e),Do(e);break;case 13:po(t,e),Do(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(nx=Kt())),r&4&&rk(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Mn=(f=Mn)||p,po(t,e),Mn=f):po(t,e),Do(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&(e.mode&1)!==0)for(Se=e,p=e.child;p!==null;){for(h=Se=p;Se!==null;){switch(m=Se,v=m.child,m.tag){case 0:case 11:case 14:case 15:Rc(4,m,m.return);break;case 1:Rl(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(S){Wt(r,n,S)}}break;case 5:Rl(m,m.return);break;case 22:if(m.memoizedState!==null){ik(h);continue}}v!==null?(v.return=m,Se=v):ik(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=hT("display",s))}catch(S){Wt(e,e.return,S)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(S){Wt(e,e.return,S)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:po(t,e),Do(e),r&4&&rk(e);break;case 21:break;default:po(t,e),Do(e)}}function Do(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(VO(n)){var r=n;break e}n=n.return}throw Error(oe(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Xc(o,""),r.flags&=-33);var i=nk(e);j1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,u=nk(e);W1(e,u,s);break;default:throw Error(oe(161))}}catch(c){Wt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function g8(e,t,n){Se=e,UO(e)}function UO(e,t,n){for(var r=(e.mode&1)!==0;Se!==null;){var o=Se,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ap;if(!s){var u=o.alternate,c=u!==null&&u.memoizedState!==null||Mn;u=Ap;var f=Mn;if(Ap=s,(Mn=c)&&!f)for(Se=o;Se!==null;)s=Se,c=s.child,s.tag===22&&s.memoizedState!==null?ak(o):c!==null?(c.return=s,Se=c):ak(o);for(;i!==null;)Se=i,UO(i),i=i.sibling;Se=o,Ap=u,Mn=f}ok(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,Se=i):ok(e)}}function ok(e){for(;Se!==null;){var t=Se;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Mn||eg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Mn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&VC(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}VC(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&ef(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}Mn||t.flags&512&&V1(t)}catch(m){Wt(t,t.return,m)}}if(t===e){Se=null;break}if(n=t.sibling,n!==null){n.return=t.return,Se=n;break}Se=t.return}}function ik(e){for(;Se!==null;){var t=Se;if(t===e){Se=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Se=n;break}Se=t.return}}function ak(e){for(;Se!==null;){var t=Se;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{eg(4,t)}catch(c){Wt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Wt(t,o,c)}}var i=t.return;try{V1(t)}catch(c){Wt(t,i,c)}break;case 5:var s=t.return;try{V1(t)}catch(c){Wt(t,s,c)}}}catch(c){Wt(t,t.return,c)}if(t===e){Se=null;break}var u=t.sibling;if(u!==null){u.return=t.return,Se=u;break}Se=t.return}}var v8=Math.ceil,em=ji.ReactCurrentDispatcher,ex=ji.ReactCurrentOwner,Qr=ji.ReactCurrentBatchConfig,Xe=0,dn=null,tn=null,wn=0,kr=0,Dl=Ua(0),sn=0,df=null,Ds=0,tg=0,tx=0,Dc=null,or=null,nx=0,au=1/0,Ei=null,tm=!1,U1=null,Ta=null,Tp=!1,ba=null,nm=0,Mc=0,H1=null,ch=-1,fh=0;function qn(){return(Xe&6)!==0?Kt():ch!==-1?ch:ch=Kt()}function Oa(e){return(e.mode&1)===0?1:(Xe&2)!==0&&wn!==0?wn&-wn:e8.transition!==null?(fh===0&&(fh=PT()),fh):(e=ut,e!==0||(e=window.event,e=e===void 0?16:MT(e.type)),e)}function Co(e,t,n,r){if(50<Mc)throw Mc=0,H1=null,Error(oe(185));Wf(e,n,r),((Xe&2)===0||e!==dn)&&(e===dn&&((Xe&2)===0&&(tg|=n),sn===4&&ma(e,wn)),lr(e,r),n===1&&Xe===0&&(t.mode&1)===0&&(au=Kt()+500,Zm&&Ha()))}function lr(e,t){var n=e.callbackNode;ez(e,t);var r=Bh(e,e===dn?wn:0);if(r===0)n!==null&&mC(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&mC(n),t===1)e.tag===0?Jz(sk.bind(null,e)):JT(sk.bind(null,e)),Yz(function(){(Xe&6)===0&&Ha()}),n=null;else{switch(AT(r)){case 1:n=AS;break;case 4:n=kT;break;case 16:n=$h;break;case 536870912:n=ET;break;default:n=$h}n=QO(n,HO.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function HO(e,t){if(ch=-1,fh=0,(Xe&6)!==0)throw Error(oe(327));var n=e.callbackNode;if(Ul()&&e.callbackNode!==n)return null;var r=Bh(e,e===dn?wn:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=rm(e,r);else{t=r;var o=Xe;Xe|=2;var i=qO();(dn!==e||wn!==t)&&(Ei=null,au=Kt()+500,ws(e,t));do try{S8();break}catch(u){GO(e,u)}while(1);VS(),em.current=i,Xe=o,tn!==null?t=0:(dn=null,wn=0,t=sn)}if(t!==0){if(t===2&&(o=y1(e),o!==0&&(r=o,t=G1(e,o))),t===1)throw n=df,ws(e,0),ma(e,r),lr(e,Kt()),n;if(t===6)ma(e,r);else{if(o=e.current.alternate,(r&30)===0&&!y8(o)&&(t=rm(e,r),t===2&&(i=y1(e),i!==0&&(r=i,t=G1(e,i))),t===1))throw n=df,ws(e,0),ma(e,r),lr(e,Kt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(oe(345));case 2:ss(e,or,Ei);break;case 3:if(ma(e,r),(r&130023424)===r&&(t=nx+500-Kt(),10<t)){if(Bh(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){qn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=E1(ss.bind(null,e,or,Ei),t);break}ss(e,or,Ei);break;case 4:if(ma(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_o(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Kt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v8(r/1960))-r,10<r){e.timeoutHandle=E1(ss.bind(null,e,or,Ei),r);break}ss(e,or,Ei);break;case 5:ss(e,or,Ei);break;default:throw Error(oe(329))}}}return lr(e,Kt()),e.callbackNode===n?HO.bind(null,e):null}function G1(e,t){var n=Dc;return e.current.memoizedState.isDehydrated&&(ws(e,t).flags|=256),e=rm(e,t),e!==2&&(t=or,or=n,t!==null&&q1(t)),e}function q1(e){or===null?or=e:or.push.apply(or,e)}function y8(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Eo(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ma(e,t){for(t&=~tx,t&=~tg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_o(t),r=1<<n;e[n]=-1,t&=~r}}function sk(e){if((Xe&6)!==0)throw Error(oe(327));Ul();var t=Bh(e,0);if((t&1)===0)return lr(e,Kt()),null;var n=rm(e,t);if(e.tag!==0&&n===2){var r=y1(e);r!==0&&(t=r,n=G1(e,r))}if(n===1)throw n=df,ws(e,0),ma(e,t),lr(e,Kt()),n;if(n===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ss(e,or,Ei),lr(e,Kt()),null}function rx(e,t){var n=Xe;Xe|=1;try{return e(t)}finally{Xe=n,Xe===0&&(au=Kt()+500,Zm&&Ha())}}function Ms(e){ba!==null&&ba.tag===0&&(Xe&6)===0&&Ul();var t=Xe;Xe|=1;var n=Qr.transition,r=ut;try{if(Qr.transition=null,ut=1,e)return e()}finally{ut=r,Qr.transition=n,Xe=t,(Xe&6)===0&&Ha()}}function ox(){kr=Dl.current,At(Dl)}function ws(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Kz(n)),tn!==null)for(n=tn.return;n!==null;){var r=n;switch($S(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Uh();break;case 3:ou(),At(ar),At(Fn),qS();break;case 5:GS(r);break;case 4:ou();break;case 13:At(Lt);break;case 19:At(Lt);break;case 10:WS(r.type._context);break;case 22:case 23:ox()}n=n.return}if(dn=e,tn=e=Ia(e.current,null),wn=kr=t,sn=0,df=null,tx=tg=Ds=0,or=Dc=null,vs!==null){for(t=0;t<vs.length;t++)if(n=vs[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}vs=null}return e}function GO(e,t){do{var n=tn;try{if(VS(),sh.current=Jh,Qh){for(var r=$t.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Qh=!1}if(Rs=0,fn=an=$t=null,Ic=!1,uf=0,ex.current=null,n===null||n.return===null){sn=1,df=t,tn=null;break}e:{var i=e,s=n.return,u=n,c=t;if(t=wn,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=u,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=KC(s);if(v!==null){v.flags&=-257,YC(v,s,u,i,t),v.mode&1&&qC(i,f,t),t=v,c=f;var y=t.updateQueue;if(y===null){var S=new Set;S.add(c),t.updateQueue=S}else y.add(c);break e}else{if((t&1)===0){qC(i,f,t),ix();break e}c=Error(oe(426))}}else if(It&&u.mode&1){var k=KC(s);if(k!==null){(k.flags&65536)===0&&(k.flags|=256),YC(k,s,u,i,t),BS(iu(c,u));break e}}i=c=iu(c,u),sn!==4&&(sn=2),Dc===null?Dc=[i]:Dc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var x=TO(i,c,t);zC(i,x);break e;case 1:u=c;var b=i.type,w=i.stateNode;if((i.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ta===null||!Ta.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=OO(i,u,t);zC(i,P);break e}}i=i.return}while(i!==null)}YO(n)}catch(O){t=O,tn===n&&n!==null&&(tn=n=n.return);continue}break}while(1)}function qO(){var e=em.current;return em.current=Jh,e===null?Jh:e}function ix(){(sn===0||sn===3||sn===2)&&(sn=4),dn===null||(Ds&268435455)===0&&(tg&268435455)===0||ma(dn,wn)}function rm(e,t){var n=Xe;Xe|=2;var r=qO();(dn!==e||wn!==t)&&(Ei=null,ws(e,t));do try{b8();break}catch(o){GO(e,o)}while(1);if(VS(),Xe=n,em.current=r,tn!==null)throw Error(oe(261));return dn=null,wn=0,sn}function b8(){for(;tn!==null;)KO(tn)}function S8(){for(;tn!==null&&!HB();)KO(tn)}function KO(e){var t=ZO(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?YO(e):tn=t,ex.current=null}function YO(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=d8(n,t,kr),n!==null){tn=n;return}}else{if(n=p8(n,t),n!==null){n.flags&=32767,tn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sn=6,tn=null;return}}if(t=t.sibling,t!==null){tn=t;return}tn=t=e}while(t!==null);sn===0&&(sn=5)}function ss(e,t,n){var r=ut,o=Qr.transition;try{Qr.transition=null,ut=1,x8(e,t,n,r)}finally{Qr.transition=o,ut=r}return null}function x8(e,t,n,r){do Ul();while(ba!==null);if((Xe&6)!==0)throw Error(oe(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(oe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(tz(e,i),e===dn&&(tn=dn=null,wn=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Tp||(Tp=!0,QO($h,function(){return Ul(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Qr.transition,Qr.transition=null;var s=ut;ut=1;var u=Xe;Xe|=4,ex.current=null,m8(e,n),jO(n,e),Vz(C1),zh=!!_1,C1=_1=null,e.current=n,g8(n),GB(),Xe=u,ut=s,Qr.transition=i}else e.current=n;if(Tp&&(Tp=!1,ba=e,nm=o),i=e.pendingLanes,i===0&&(Ta=null),YB(n.stateNode),lr(e,Kt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(tm)throw tm=!1,e=U1,U1=null,e;return(nm&1)!==0&&e.tag!==0&&Ul(),i=e.pendingLanes,(i&1)!==0?e===H1?Mc++:(Mc=0,H1=e):Mc=0,Ha(),null}function Ul(){if(ba!==null){var e=AT(nm),t=Qr.transition,n=ut;try{if(Qr.transition=null,ut=16>e?16:e,ba===null)var r=!1;else{if(e=ba,ba=null,nm=0,(Xe&6)!==0)throw Error(oe(331));var o=Xe;for(Xe|=4,Se=e.current;Se!==null;){var i=Se,s=i.child;if((Se.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;c<u.length;c++){var f=u[c];for(Se=f;Se!==null;){var p=Se;switch(p.tag){case 0:case 11:case 15:Rc(8,p,i)}var h=p.child;if(h!==null)h.return=p,Se=h;else for(;Se!==null;){p=Se;var m=p.sibling,v=p.return;if(zO(p),p===f){Se=null;break}if(m!==null){m.return=v,Se=m;break}Se=v}}}var y=i.alternate;if(y!==null){var S=y.child;if(S!==null){y.child=null;do{var k=S.sibling;S.sibling=null,S=k}while(S!==null)}}Se=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,Se=s;else e:for(;Se!==null;){if(i=Se,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Rc(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,Se=x;break e}Se=i.return}}var b=e.current;for(Se=b;Se!==null;){s=Se;var w=s.child;if((s.subtreeFlags&2064)!==0&&w!==null)w.return=s,Se=w;else e:for(s=b;Se!==null;){if(u=Se,(u.flags&2048)!==0)try{switch(u.tag){case 0:case 11:case 15:eg(9,u)}}catch(O){Wt(u,u.return,O)}if(u===s){Se=null;break e}var P=u.sibling;if(P!==null){P.return=u.return,Se=P;break e}Se=u.return}}if(Xe=o,Ha(),Ko&&typeof Ko.onPostCommitFiberRoot=="function")try{Ko.onPostCommitFiberRoot(Gm,e)}catch{}r=!0}return r}finally{ut=n,Qr.transition=t}}return!1}function lk(e,t,n){t=iu(n,t),t=TO(e,t,1),e=Aa(e,t,1),t=qn(),e!==null&&(Wf(e,1,t),lr(e,t))}function Wt(e,t,n){if(e.tag===3)lk(e,e,n);else for(;t!==null;){if(t.tag===3){lk(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ta===null||!Ta.has(r))){e=iu(n,e),e=OO(t,e,1),t=Aa(t,e,1),e=qn(),t!==null&&(Wf(t,1,e),lr(t,e));break}}t=t.return}}function w8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qn(),e.pingedLanes|=e.suspendedLanes&n,dn===e&&(wn&n)===n&&(sn===4||sn===3&&(wn&130023424)===wn&&500>Kt()-nx?ws(e,0):tx|=n),lr(e,t)}function XO(e,t){t===0&&((e.mode&1)===0?t=1:(t=bp,bp<<=1,(bp&130023424)===0&&(bp=4194304)));var n=qn();e=Li(e,t),e!==null&&(Wf(e,t,n),lr(e,n))}function _8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),XO(e,n)}function C8(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(oe(314))}r!==null&&r.delete(t),XO(e,n)}var ZO;ZO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)ir=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ir=!1,f8(e,t,n);ir=(e.flags&131072)!==0}else ir=!1,It&&(t.flags&1048576)!==0&&eO(t,qh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uh(e,t),e=t.pendingProps;var o=tu(t,Fn.current);jl(t,n),o=YS(null,t,r,e,o,n);var i=XS();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,sr(r)?(i=!0,Hh(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,US(t),o.updater=Qm,t.stateNode=o,o._reactInternals=t,D1(t,r,e,n),t=F1(null,t,r,!0,i,n)):(t.tag=0,It&&i&&LS(t),Gn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=E8(r),e=yo(r,e),o){case 0:t=N1(null,t,r,e,n);break e;case 1:t=QC(null,t,r,e,n);break e;case 11:t=XC(null,t,r,e,n);break e;case 14:t=ZC(null,t,r,yo(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),N1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),QC(e,t,r,o,n);case 3:e:{if(MO(t),e===null)throw Error(oe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,oO(e,t),Xh(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=iu(Error(oe(423)),t),t=JC(e,t,r,n,o);break e}else if(r!==o){o=iu(Error(oe(424)),t),t=JC(e,t,r,n,o);break e}else for(Er=Pa(t.stateNode.containerInfo.firstChild),Pr=t,It=!0,xo=null,n=lO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nu(),r===o){t=$i(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 5:return uO(t),e===null&&O1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,k1(r,o)?s=null:i!==null&&k1(r,i)&&(t.flags|=32),DO(e,t),Gn(e,t,s,n),t.child;case 6:return e===null&&O1(t),null;case 13:return NO(e,t,n);case 4:return HS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ru(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),XC(e,t,r,o,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(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,_t(Kh,r._currentValue),r._currentValue=s,i!==null)if(Eo(i.value,s)){if(i.children===o.children&&!ar.current){t=$i(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=Di(-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),I1(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(oe(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),I1(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}Gn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jl(t,n),o=eo(o),r=r(o),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return r=t.type,o=yo(r,t.pendingProps),o=yo(r.type,o),ZC(e,t,r,o,n);case 15:return IO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),uh(e,t),t.tag=1,sr(r)?(e=!0,Hh(t)):e=!1,jl(t,n),aO(t,r,o),D1(t,r,o,n),F1(null,t,r,!0,e,n);case 19:return FO(e,t,n);case 22:return RO(e,t,n)}throw Error(oe(156,t.tag))};function QO(e,t){return CT(e,t)}function k8(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 Xr(e,t,n,r){return new k8(e,t,n,r)}function ax(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E8(e){if(typeof e=="function")return ax(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kS)return 11;if(e===ES)return 14}return 2}function Ia(e,t){var n=e.alternate;return n===null?(n=Xr(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 dh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ax(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _l:return _s(n.children,o,i,t);case CS:s=8,o|=8;break;case r1:return e=Xr(12,n,t,o|2),e.elementType=r1,e.lanes=i,e;case o1:return e=Xr(13,n,t,o),e.elementType=o1,e.lanes=i,e;case i1:return e=Xr(19,n,t,o),e.elementType=i1,e.lanes=i,e;case sT:return ng(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iT:s=10;break e;case aT:s=9;break e;case kS:s=11;break e;case ES:s=14;break e;case fa:s=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Xr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _s(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function ng(e,t,n,r){return e=Xr(22,e,r,t),e.elementType=sT,e.lanes=n,e.stateNode={isHidden:!1},e}function py(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function hy(e,t,n){return t=Xr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P8(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=K0(0),this.expirationTimes=K0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sx(e,t,n,r,o,i,s,u,c){return e=new P8(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},US(i),e}function A8(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function JO(e){if(!e)return Na;e=e._reactInternals;e:{if($s(e)!==e||e.tag!==1)throw Error(oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(sr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(oe(171))}if(e.tag===1){var n=e.type;if(sr(n))return QT(e,n,t)}return t}function eI(e,t,n,r,o,i,s,u,c){return e=sx(n,r,!0,e,o,i,s,u,c),e.context=JO(null),n=e.current,r=qn(),o=Oa(n),i=Di(r,o),i.callback=t??null,Aa(n,i,o),e.current.lanes=o,Wf(e,o,r),lr(e,r),e}function rg(e,t,n,r){var o=t.current,i=qn(),s=Oa(o);return n=JO(n),t.context===null?t.context=n:t.pendingContext=n,t=Di(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Aa(o,t,s),e!==null&&(Co(e,o,s,i),ah(e,o,s)),s}function om(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function uk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lx(e,t){uk(e,t),(e=e.alternate)&&uk(e,t)}function T8(){return null}var tI=typeof reportError=="function"?reportError:function(e){console.error(e)};function ux(e){this._internalRoot=e}og.prototype.render=ux.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));rg(e,t,null,null)};og.prototype.unmount=ux.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ms(function(){rg(null,e,null,null)}),t[Fi]=null}};function og(e){this._internalRoot=e}og.prototype.unstable_scheduleHydration=function(e){if(e){var t=IT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&DT(e)}};function cx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ig(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ck(){}function O8(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=om(s);i.call(f)}}var s=eI(t,r,e,0,null,!1,!1,"",ck);return e._reactRootContainer=s,e[Fi]=s.current,rf(e.nodeType===8?e.parentNode:e),Ms(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var f=om(c);u.call(f)}}var c=sx(e,0,!1,null,null,!1,!1,"",ck);return e._reactRootContainer=c,e[Fi]=c.current,rf(e.nodeType===8?e.parentNode:e),Ms(function(){rg(t,c,n,r)}),c}function ag(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var u=o;o=function(){var c=om(s);u.call(c)}}rg(t,s,e,o)}else s=O8(n,t,e,o,r);return om(s)}TT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bc(t.pendingLanes);n!==0&&(TS(t,n|1),lr(t,Kt()),(Xe&6)===0&&(au=Kt()+500,Ha()))}break;case 13:Ms(function(){var r=Li(e,1);if(r!==null){var o=qn();Co(r,e,1,o)}}),lx(e,1)}};OS=function(e){if(e.tag===13){var t=Li(e,134217728);if(t!==null){var n=qn();Co(t,e,134217728,n)}lx(e,134217728)}};OT=function(e){if(e.tag===13){var t=Oa(e),n=Li(e,t);if(n!==null){var r=qn();Co(n,e,t,r)}lx(e,t)}};IT=function(){return ut};RT=function(e,t){var n=ut;try{return ut=e,t()}finally{ut=n}};m1=function(e,t,n){switch(t){case"input":if(l1(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Xm(r);if(!o)throw Error(oe(90));uT(r),l1(r,o)}}}break;case"textarea":fT(e,n);break;case"select":t=n.value,t!=null&&Bl(e,!!n.multiple,t,!1)}};yT=rx;bT=Ms;var I8={usingClientEntryPoint:!1,Events:[Uf,Pl,Xm,gT,vT,rx]},lc={findFiberByHostInstance:gs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},R8={bundleType:lc.bundleType,version:lc.version,rendererPackageName:lc.rendererPackageName,rendererConfig:lc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ji.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wT(e),e===null?null:e.stateNode},findFiberByHostInstance:lc.findFiberByHostInstance||T8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Op.isDisabled&&Op.supportsFiber)try{Gm=Op.inject(R8),Ko=Op}catch{}}Dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I8;Dr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cx(t))throw Error(oe(200));return A8(e,t,null,n)};Dr.createRoot=function(e,t){if(!cx(e))throw Error(oe(299));var n=!1,r="",o=tI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=sx(e,1,!1,null,null,n,!1,r,o),e[Fi]=t.current,rf(e.nodeType===8?e.parentNode:e),new ux(t)};Dr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=wT(t),e=e===null?null:e.stateNode,e};Dr.flushSync=function(e){return Ms(e)};Dr.hydrate=function(e,t,n){if(!ig(t))throw Error(oe(200));return ag(null,e,t,!0,n)};Dr.hydrateRoot=function(e,t,n){if(!cx(e))throw Error(oe(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=tI;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=eI(t,null,e,1,n??null,o,!1,i,s),e[Fi]=t.current,rf(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new og(t)};Dr.render=function(e,t,n){if(!ig(t))throw Error(oe(200));return ag(null,e,t,!1,n)};Dr.unmountComponentAtNode=function(e){if(!ig(e))throw Error(oe(40));return e._reactRootContainer?(Ms(function(){ag(null,null,e,!1,function(){e._reactRootContainer=null,e[Fi]=null})}),!0):!1};Dr.unstable_batchedUpdates=rx;Dr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ig(n))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return ag(e,t,n,!1,r)};Dr.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Dr})(Vf);var fk=Vf.exports;t1.createRoot=fk.createRoot,t1.hydrateRoot=fk.hydrateRoot;var Mi=Boolean(globalThis?.document)?_.exports.useLayoutEffect:_.exports.useEffect,sg={exports:{}},lg={};/**
* @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 D8=_.exports,M8=Symbol.for("react.element"),N8=Symbol.for("react.fragment"),F8=Object.prototype.hasOwnProperty,L8=D8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$8={key:!0,ref:!0,__self:!0,__source:!0};function nI(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)F8.call(t,r)&&!$8.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:M8,type:e,key:i,ref:s,props:o,_owner:L8.current}}lg.Fragment=N8;lg.jsx=nI;lg.jsxs=nI;(function(e){e.exports=lg})(sg);const fr=sg.exports.Fragment,E=sg.exports.jsx,ue=sg.exports.jsxs;var fx=_.exports.createContext({});fx.displayName="ColorModeContext";function ug(){const e=_.exports.useContext(fx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Cs(e,t){const{colorMode:n}=ug();return n==="dark"?t:e}var Ip={light:"chakra-ui-light",dark:"chakra-ui-dark"};function B8(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?Ip.dark:Ip.light),document.body.classList.remove(r?Ip.light:Ip.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 z8="chakra-ui-color-mode";function V8(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 W8=V8(z8),dk=()=>{};function pk(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function rI(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=W8}=e,u=o==="dark"?"dark":"light",[c,f]=_.exports.useState(()=>pk(s,u)),[p,h]=_.exports.useState(()=>pk(s)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:S}=_.exports.useMemo(()=>B8({preventTransition:i}),[i]),k=o==="system"&&!c?p:c,x=_.exports.useCallback(P=>{const O=P==="system"?m():P;f(O),v(O==="dark"),y(O),s.set(O)},[s,m,v,y]);Mi(()=>{o==="system"&&h(m())},[]),_.exports.useEffect(()=>{const P=s.get();if(P){x(P);return}if(o==="system"){x("system");return}x(u)},[s,u,o,x]);const b=_.exports.useCallback(()=>{x(k==="dark"?"light":"dark")},[k,x]);_.exports.useEffect(()=>{if(!!r)return S(x)},[r,S,x]);const w=_.exports.useMemo(()=>({colorMode:t??k,toggleColorMode:t?dk:b,setColorMode:t?dk:x}),[k,b,x,t]);return E(fx.Provider,{value:w,children:n})}rI.displayName="ColorModeProvider";var j8=new Set(["dark","light","system"]);function U8(e){let t=e;return j8.has(t)||(t="light"),t}function H8(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=U8(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 G8(e={}){return E("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:H8(e)}})}var K1={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]",S="[object Map]",k="[object Number]",x="[object Null]",b="[object Object]",w="[object Proxy]",P="[object RegExp]",O="[object Set]",M="[object String]",N="[object Undefined]",V="[object WeakMap]",K="[object ArrayBuffer]",W="[object DataView]",te="[object Float32Array]",xe="[object Float64Array]",fe="[object Int8Array]",we="[object Int16Array]",Ce="[object Int32Array]",ve="[object Uint8Array]",Pe="[object Uint8ClampedArray]",j="[object Uint16Array]",X="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ae={};ae[te]=ae[xe]=ae[fe]=ae[we]=ae[Ce]=ae[ve]=ae[Pe]=ae[j]=ae[X]=!0,ae[u]=ae[c]=ae[K]=ae[p]=ae[W]=ae[h]=ae[m]=ae[v]=ae[S]=ae[k]=ae[b]=ae[P]=ae[O]=ae[M]=ae[V]=!1;var se=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,he=typeof self=="object"&&self&&self.Object===Object&&self,ge=se||he||Function("return this")(),Ee=t&&!t.nodeType&&t,ce=Ee&&!0&&e&&!e.nodeType&&e,Ae=ce&&ce.exports===Ee,Me=Ae&&se.process,mt=function(){try{var I=ce&&ce.require&&ce.require("util").types;return I||Me&&Me.binding&&Me.binding("util")}catch{}}(),Dt=mt&&mt.isTypedArray;function En(I,L,U){switch(U.length){case 0:return I.call(L);case 1:return I.call(L,U[0]);case 2:return I.call(L,U[0],U[1]);case 3:return I.call(L,U[0],U[1],U[2])}return I.apply(L,U)}function ye(I,L){for(var U=-1,me=Array(I);++U<I;)me[U]=L(U);return me}function Mt(I){return function(L){return I(L)}}function Qt(I,L){return I?.[L]}function it(I,L){return function(U){return I(L(U))}}var hr=Array.prototype,mr=Function.prototype,St=Object.prototype,Ct=ge["__core-js_shared__"],Jt=mr.toString,zt=St.hasOwnProperty,le=function(){var I=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),_e=St.toString,at=Jt.call(Object),nt=RegExp("^"+Jt.call(zt).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=Ae?ge.Buffer:void 0,Ve=ge.Symbol,xt=ge.Uint8Array,hn=ne?ne.allocUnsafe:void 0,Pn=it(Object.getPrototypeOf,Object),gr=Object.create,To=St.propertyIsEnumerable,li=hr.splice,Ln=Ve?Ve.toStringTag:void 0,$r=function(){try{var I=Ks(Object,"defineProperty");return I({},"",{}),I}catch{}}(),Ka=ne?ne.isBuffer:void 0,Us=Math.max,uv=Date.now,Pu=Ks(ge,"Map"),Hi=Ks(Object,"create"),cv=function(){function I(){}return function(L){if(!so(L))return{};if(gr)return gr(L);I.prototype=L;var U=new I;return I.prototype=void 0,U}}();function ui(I){var L=-1,U=I==null?0:I.length;for(this.clear();++L<U;){var me=I[L];this.set(me[0],me[1])}}function fv(){this.__data__=Hi?Hi(null):{},this.size=0}function dv(I){var L=this.has(I)&&delete this.__data__[I];return this.size-=L?1:0,L}function sd(I){var L=this.__data__;if(Hi){var U=L[I];return U===r?void 0:U}return zt.call(L,I)?L[I]:void 0}function pv(I){var L=this.__data__;return Hi?L[I]!==void 0:zt.call(L,I)}function hv(I,L){var U=this.__data__;return this.size+=this.has(I)?0:1,U[I]=Hi&&L===void 0?r:L,this}ui.prototype.clear=fv,ui.prototype.delete=dv,ui.prototype.get=sd,ui.prototype.has=pv,ui.prototype.set=hv;function ao(I){var L=-1,U=I==null?0:I.length;for(this.clear();++L<U;){var me=I[L];this.set(me[0],me[1])}}function Au(){this.__data__=[],this.size=0}function mv(I){var L=this.__data__,U=fi(L,I);if(U<0)return!1;var me=L.length-1;return U==me?L.pop():li.call(L,U,1),--this.size,!0}function Tu(I){var L=this.__data__,U=fi(L,I);return U<0?void 0:L[U][1]}function gv(I){return fi(this.__data__,I)>-1}function vv(I,L){var U=this.__data__,me=fi(U,I);return me<0?(++this.size,U.push([I,L])):U[me][1]=L,this}ao.prototype.clear=Au,ao.prototype.delete=mv,ao.prototype.get=Tu,ao.prototype.has=gv,ao.prototype.set=vv;function Gi(I){var L=-1,U=I==null?0:I.length;for(this.clear();++L<U;){var me=I[L];this.set(me[0],me[1])}}function yv(){this.size=0,this.__data__={hash:new ui,map:new(Pu||ao),string:new ui}}function bv(I){var L=qs(this,I).delete(I);return this.size-=L?1:0,L}function Sv(I){return qs(this,I).get(I)}function xv(I){return qs(this,I).has(I)}function wv(I,L){var U=qs(this,I),me=U.size;return U.set(I,L),this.size+=U.size==me?0:1,this}Gi.prototype.clear=yv,Gi.prototype.delete=bv,Gi.prototype.get=Sv,Gi.prototype.has=xv,Gi.prototype.set=wv;function ci(I){var L=this.__data__=new ao(I);this.size=L.size}function _v(){this.__data__=new ao,this.size=0}function Cv(I){var L=this.__data__,U=L.delete(I);return this.size=L.size,U}function kv(I){return this.__data__.get(I)}function Ev(I){return this.__data__.has(I)}function Pv(I,L){var U=this.__data__;if(U instanceof ao){var me=U.__data__;if(!Pu||me.length<n-1)return me.push([I,L]),this.size=++U.size,this;U=this.__data__=new Gi(me)}return U.set(I,L),this.size=U.size,this}ci.prototype.clear=_v,ci.prototype.delete=Cv,ci.prototype.get=kv,ci.prototype.has=Ev,ci.prototype.set=Pv;function Av(I,L){var U=Lu(I),me=!U&&Fu(I),We=!U&&!me&&Cd(I),st=!U&&!me&&!We&&Ed(I),Fe=U||me||We||st,Be=Fe?ye(I.length,String):[],Ze=Be.length;for(var $n in I)(L||zt.call(I,$n))&&!(Fe&&($n=="length"||We&&($n=="offset"||$n=="parent")||st&&($n=="buffer"||$n=="byteLength"||$n=="byteOffset")||vd($n,Ze)))&&Be.push($n);return Be}function qi(I,L,U){(U!==void 0&&!Xs(I[L],U)||U===void 0&&!(L in I))&&Ou(I,L,U)}function Tv(I,L,U){var me=I[L];(!(zt.call(I,L)&&Xs(me,U))||U===void 0&&!(L in I))&&Ou(I,L,U)}function fi(I,L){for(var U=I.length;U--;)if(Xs(I[U][0],L))return U;return-1}function Ou(I,L,U){L=="__proto__"&&$r?$r(I,L,{configurable:!0,enumerable:!0,value:U,writable:!0}):I[L]=U}var Ov=md();function Hs(I){return I==null?I===void 0?N:x:Ln&&Ln in Object(I)?gd(I):Sd(I)}function Iu(I){return Ya(I)&&Hs(I)==u}function ld(I){if(!so(I)||Nu(I))return!1;var L=$u(I)?nt:R;return L.test(_d(I))}function ud(I){return Ya(I)&&kd(I.length)&&!!ae[Hs(I)]}function Iv(I){if(!so(I))return bd(I);var L=di(I),U=[];for(var me in I)me=="constructor"&&(L||!zt.call(I,me))||U.push(me);return U}function cd(I,L,U,me,We){I!==L&&Ov(L,function(st,Fe){if(We||(We=new ci),so(st))Rv(I,L,Fe,U,cd,me,We);else{var Be=me?me(Ys(I,Fe),st,Fe+"",I,L,We):void 0;Be===void 0&&(Be=st),qi(I,Fe,Be)}},Pd)}function Rv(I,L,U,me,We,st,Fe){var Be=Ys(I,U),Ze=Ys(L,U),$n=Fe.get(Ze);if($n){qi(I,U,$n);return}var mn=st?st(Be,Ze,U+"",I,L,Fe):void 0,un=mn===void 0;if(un){var Qs=Lu(Ze),Js=!Qs&&Cd(Ze),Bu=!Qs&&!Js&&Ed(Ze);mn=Ze,Qs||Js||Bu?Lu(Be)?mn=Be:Fv(Be)?mn=Mv(Be):Js?(un=!1,mn=dd(Ze,!0)):Bu?(un=!1,mn=Ru(Ze,!0)):mn=[]:Lv(Ze)||Fu(Ze)?(mn=Be,Fu(Be)?mn=$v(Be):(!so(Be)||$u(Be))&&(mn=Du(Ze))):un=!1}un&&(Fe.set(Ze,mn),We(mn,Ze,me,st,Fe),Fe.delete(Ze)),qi(I,U,mn)}function Dv(I,L){return xd(Nv(I,L,Ad),I+"")}var fd=$r?function(I,L){return $r(I,"toString",{configurable:!0,enumerable:!1,value:pt(L),writable:!0})}:Ad;function dd(I,L){if(L)return I.slice();var U=I.length,me=hn?hn(U):new I.constructor(U);return I.copy(me),me}function pd(I){var L=new I.constructor(I.byteLength);return new xt(L).set(new xt(I)),L}function Ru(I,L){var U=L?pd(I.buffer):I.buffer;return new I.constructor(U,I.byteOffset,I.length)}function Mv(I,L){var U=-1,me=I.length;for(L||(L=Array(me));++U<me;)L[U]=I[U];return L}function hd(I,L,U,me){var We=!U;U||(U={});for(var st=-1,Fe=L.length;++st<Fe;){var Be=L[st],Ze=me?me(U[Be],I[Be],Be,U,I):void 0;Ze===void 0&&(Ze=I[Be]),We?Ou(U,Be,Ze):Tv(U,Be,Ze)}return U}function Gs(I){return Dv(function(L,U){var me=-1,We=U.length,st=We>1?U[We-1]:void 0,Fe=We>2?U[2]:void 0;for(st=I.length>3&&typeof st=="function"?(We--,st):void 0,Fe&&yd(U[0],U[1],Fe)&&(st=We<3?void 0:st,We=1),L=Object(L);++me<We;){var Be=U[me];Be&&I(L,Be,me,st)}return L})}function md(I){return function(L,U,me){for(var We=-1,st=Object(L),Fe=me(L),Be=Fe.length;Be--;){var Ze=Fe[I?Be:++We];if(U(st[Ze],Ze,st)===!1)break}return L}}function qs(I,L){var U=I.__data__;return Mu(L)?U[typeof L=="string"?"string":"hash"]:U.map}function Ks(I,L){var U=Qt(I,L);return ld(U)?U:void 0}function gd(I){var L=zt.call(I,Ln),U=I[Ln];try{I[Ln]=void 0;var me=!0}catch{}var We=_e.call(I);return me&&(L?I[Ln]=U:delete I[Ln]),We}function Du(I){return typeof I.constructor=="function"&&!di(I)?cv(Pn(I)):{}}function vd(I,L){var U=typeof I;return L=L??s,!!L&&(U=="number"||U!="symbol"&&H.test(I))&&I>-1&&I%1==0&&I<L}function yd(I,L,U){if(!so(U))return!1;var me=typeof L;return(me=="number"?Zs(U)&&vd(L,U.length):me=="string"&&L in U)?Xs(U[L],I):!1}function Mu(I){var L=typeof I;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?I!=="__proto__":I===null}function Nu(I){return!!le&&le in I}function di(I){var L=I&&I.constructor,U=typeof L=="function"&&L.prototype||St;return I===U}function bd(I){var L=[];if(I!=null)for(var U in Object(I))L.push(U);return L}function Sd(I){return _e.call(I)}function Nv(I,L,U){return L=Us(L===void 0?I.length-1:L,0),function(){for(var me=arguments,We=-1,st=Us(me.length-L,0),Fe=Array(st);++We<st;)Fe[We]=me[L+We];We=-1;for(var Be=Array(L+1);++We<L;)Be[We]=me[We];return Be[L]=U(Fe),En(I,this,Be)}}function Ys(I,L){if(!(L==="constructor"&&typeof I[L]=="function")&&L!="__proto__")return I[L]}var xd=wd(fd);function wd(I){var L=0,U=0;return function(){var me=uv(),We=i-(me-U);if(U=me,We>0){if(++L>=o)return arguments[0]}else L=0;return I.apply(void 0,arguments)}}function _d(I){if(I!=null){try{return Jt.call(I)}catch{}try{return I+""}catch{}}return""}function Xs(I,L){return I===L||I!==I&&L!==L}var Fu=Iu(function(){return arguments}())?Iu:function(I){return Ya(I)&&zt.call(I,"callee")&&!To.call(I,"callee")},Lu=Array.isArray;function Zs(I){return I!=null&&kd(I.length)&&!$u(I)}function Fv(I){return Ya(I)&&Zs(I)}var Cd=Ka||Bv;function $u(I){if(!so(I))return!1;var L=Hs(I);return L==v||L==y||L==f||L==w}function kd(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=s}function so(I){var L=typeof I;return I!=null&&(L=="object"||L=="function")}function Ya(I){return I!=null&&typeof I=="object"}function Lv(I){if(!Ya(I)||Hs(I)!=b)return!1;var L=Pn(I);if(L===null)return!0;var U=zt.call(L,"constructor")&&L.constructor;return typeof U=="function"&&U instanceof U&&Jt.call(U)==at}var Ed=Dt?Mt(Dt):ud;function $v(I){return hd(I,Pd(I))}function Pd(I){return Zs(I)?Av(I,!0):Iv(I)}var gt=Gs(function(I,L,U,me){cd(I,L,U,me)});function pt(I){return function(){return I}}function Ad(I){return I}function Bv(){return!1}e.exports=gt})(K1,K1.exports);const Fa=K1.exports;function Go(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Ml(e,...t){return q8(e)?e(...t):e}var q8=e=>typeof e=="function",K8=e=>/!(important)?$/.test(e),hk=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Y1=(e,t)=>n=>{const r=String(t),o=K8(r),i=hk(r),s=e?`${e}.${i}`:i;let u=Go(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=hk(u),o?`${u} !important`:u};function pf(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=Y1(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var Rp=(...e)=>t=>e.reduce((n,r)=>r(n),t);function ho(e,t){return n=>{const r={property:n,scale:e};return r.transform=pf({scale:e,transform:t}),r}}var Y8=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function X8(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Y8(t),transform:n?pf({scale:n,compose:r}):r}}var oI=["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 Z8(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...oI].join(" ")}function Q8(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...oI].join(" ")}var J8={"--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(" ")},e9={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 t9(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 n9={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},iI="& > :not(style) ~ :not(style)",r9={[iI]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},o9={[iI]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},X1={"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"},i9=new Set(Object.values(X1)),aI=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),a9=e=>e.trim();function s9(e,t){var n;if(e==null||aI.has(e))return e;const r=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/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(a9).filter(Boolean);if(c?.length===0)return e;const f=u in X1?X1[u]:u;c.unshift(f);const p=c.map(h=>{if(i9.has(h))return h;const m=h.indexOf(" "),[v,y]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],S=sI(y)?y:y&&y.split(" "),k=`colors.${v}`,x=k in t.__cssMap?t.__cssMap[k].varRef:v;return S?[x,...Array.isArray(S)?S:[S]].join(" "):x});return`${s}(${p.join(", ")})`}var sI=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),l9=(e,t)=>s9(e,t??{});function u9(e){return/^var\(--.+\)$/.test(e)}var c9=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Mo=e=>t=>`${e}(${t})`,Ye={filter(e){return e!=="auto"?e:J8},backdropFilter(e){return e!=="auto"?e:e9},ring(e){return t9(Ye.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Z8():e==="auto-gpu"?Q8():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=c9(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(u9(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:l9,blur:Mo("blur"),opacity:Mo("opacity"),brightness:Mo("brightness"),contrast:Mo("contrast"),dropShadow:Mo("drop-shadow"),grayscale:Mo("grayscale"),hueRotate:Mo("hue-rotate"),invert:Mo("invert"),saturate:Mo("saturate"),sepia:Mo("sepia"),bgImage(e){return e==null||sI(e)||aI.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}=n9[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},$={borderWidths:ho("borderWidths"),borderStyles:ho("borderStyles"),colors:ho("colors"),borders:ho("borders"),radii:ho("radii",Ye.px),space:ho("space",Rp(Ye.vh,Ye.px)),spaceT:ho("space",Rp(Ye.vh,Ye.px)),degreeT(e){return{property:e,transform:Ye.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:pf({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:ho("sizes",Rp(Ye.vh,Ye.px)),sizesT:ho("sizes",Rp(Ye.vh,Ye.fraction)),shadows:ho("shadows"),logical:X8,blur:ho("blur",Ye.blur)},ph={background:$.colors("background"),backgroundColor:$.colors("backgroundColor"),backgroundImage:$.propT("backgroundImage",Ye.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ye.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",Ye.gradient),bgClip:{transform:Ye.bgClip}};Object.assign(ph,{bgImage:ph.backgroundImage,bgImg:ph.backgroundImage});var Je={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(Je,{rounded:Je.borderRadius,roundedTop:Je.borderTopRadius,roundedTopLeft:Je.borderTopLeftRadius,roundedTopRight:Je.borderTopRightRadius,roundedTopStart:Je.borderStartStartRadius,roundedTopEnd:Je.borderStartEndRadius,roundedBottom:Je.borderBottomRadius,roundedBottomLeft:Je.borderBottomLeftRadius,roundedBottomRight:Je.borderBottomRightRadius,roundedBottomStart:Je.borderEndStartRadius,roundedBottomEnd:Je.borderEndEndRadius,roundedLeft:Je.borderLeftRadius,roundedRight:Je.borderRightRadius,roundedStart:Je.borderInlineStartRadius,roundedEnd:Je.borderInlineEndRadius,borderStart:Je.borderInlineStart,borderEnd:Je.borderInlineEnd,borderTopStartRadius:Je.borderStartStartRadius,borderTopEndRadius:Je.borderStartEndRadius,borderBottomStartRadius:Je.borderEndStartRadius,borderBottomEndRadius:Je.borderEndEndRadius,borderStartRadius:Je.borderInlineStartRadius,borderEndRadius:Je.borderInlineEndRadius,borderStartWidth:Je.borderInlineStartWidth,borderEndWidth:Je.borderInlineEndWidth,borderStartColor:Je.borderInlineStartColor,borderEndColor:Je.borderInlineEndColor,borderStartStyle:Je.borderInlineStartStyle,borderEndStyle:Je.borderInlineEndStyle});var f9={color:$.colors("color"),textColor:$.colors("color"),fill:$.colors("fill"),stroke:$.colors("stroke")},Z1={boxShadow:$.shadows("boxShadow"),mixBlendMode:!0,blendMode:$.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:$.prop("backgroundBlendMode"),opacity:!0};Object.assign(Z1,{shadow:Z1.boxShadow});var d9={filter:{transform:Ye.filter},blur:$.blur("--chakra-blur"),brightness:$.propT("--chakra-brightness",Ye.brightness),contrast:$.propT("--chakra-contrast",Ye.contrast),hueRotate:$.degreeT("--chakra-hue-rotate"),invert:$.propT("--chakra-invert",Ye.invert),saturate:$.propT("--chakra-saturate",Ye.saturate),dropShadow:$.propT("--chakra-drop-shadow",Ye.dropShadow),backdropFilter:{transform:Ye.backdropFilter},backdropBlur:$.blur("--chakra-backdrop-blur"),backdropBrightness:$.propT("--chakra-backdrop-brightness",Ye.brightness),backdropContrast:$.propT("--chakra-backdrop-contrast",Ye.contrast),backdropHueRotate:$.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:$.propT("--chakra-backdrop-invert",Ye.invert),backdropSaturate:$.propT("--chakra-backdrop-saturate",Ye.saturate)},im={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ye.flexDirection},experimental_spaceX:{static:r9,transform:pf({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:o9,transform:pf({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(im,{flexDir:im.flexDirection});var lI={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},p9={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ye.outline},outlineOffset:!0,outlineColor:$.colors("outlineColor")},qr={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",Ye.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var h9={listStyleType:!0,listStylePosition:!0,listStylePos:$.prop("listStylePosition"),listStyleImage:!0,listStyleImg:$.prop("listStyleImage")};function m9(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var g9=e=>{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}},v9=g9(m9),y9={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},b9={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},my=(e,t,n)=>{const r={},o=v9(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},S9={srOnly:{transform(e){return e===!0?y9:e==="focusable"?b9:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>my(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>my(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>my(t,e,n)}},Nc={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(Nc,{insetStart:Nc.insetInlineStart,insetEnd:Nc.insetInlineEnd});var x9={ring:{transform:Ye.ring},ringColor:$.colors("--chakra-ring-color"),ringOffset:$.prop("--chakra-ring-offset-width"),ringOffsetColor:$.colors("--chakra-ring-offset-color"),ringInset:$.prop("--chakra-ring-inset")},Et={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(Et,{m:Et.margin,mt:Et.marginTop,mr:Et.marginRight,me:Et.marginInlineEnd,marginEnd:Et.marginInlineEnd,mb:Et.marginBottom,ml:Et.marginLeft,ms:Et.marginInlineStart,marginStart:Et.marginInlineStart,mx:Et.marginX,my:Et.marginY,p:Et.padding,pt:Et.paddingTop,py:Et.paddingY,px:Et.paddingX,pb:Et.paddingBottom,pl:Et.paddingLeft,ps:Et.paddingInlineStart,paddingStart:Et.paddingInlineStart,pr:Et.paddingRight,pe:Et.paddingInlineEnd,paddingEnd:Et.paddingInlineEnd});var w9={textDecorationColor:$.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:$.shadows("textShadow")},_9={clipPath:!0,transform:$.propT("transform",Ye.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")},C9={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:$.prop("transitionDuration","transition.duration"),transitionProperty:$.prop("transitionProperty","transition.property"),transitionTimingFunction:$.prop("transitionTimingFunction","transition.easing")},k9={fontFamily:$.prop("fontFamily","fonts"),fontSize:$.prop("fontSize","fontSizes",Ye.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"}},E9={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 uI(e){return Go(e)&&e.reference?e.reference:String(e)}var cg=(e,...t)=>t.map(uI).join(` ${e} `).replace(/calc/g,""),mk=(...e)=>`calc(${cg("+",...e)})`,gk=(...e)=>`calc(${cg("-",...e)})`,Q1=(...e)=>`calc(${cg("*",...e)})`,vk=(...e)=>`calc(${cg("/",...e)})`,yk=e=>{const t=uI(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Q1(t,-1)},ps=Object.assign(e=>({add:(...t)=>ps(mk(e,...t)),subtract:(...t)=>ps(gk(e,...t)),multiply:(...t)=>ps(Q1(e,...t)),divide:(...t)=>ps(vk(e,...t)),negate:()=>ps(yk(e)),toString:()=>e.toString()}),{add:mk,subtract:gk,multiply:Q1,divide:vk,negate:yk});function P9(e,t="-"){return e.replace(/\s+/g,t)}function A9(e){const t=P9(e.toString());return O9(T9(t))}function T9(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function O9(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function I9(e,t=""){return[t,e].filter(Boolean).join("-")}function R9(e,t){return`var(${e}${t?`, ${t}`:""})`}function D9(e,t=""){return A9(`--${I9(e,t)}`)}function Ga(e,t,n){const r=D9(e,n);return{variable:r,reference:R9(r,t)}}function M9(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function N9(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function F9(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function J1(e){if(e==null)return e;const{unitless:t}=F9(e);return t||typeof e=="number"?`${e}px`:e}var cI=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,dx=e=>Object.fromEntries(Object.entries(e).sort(cI));function bk(e){const t=dx(e);return Object.assign(Object.values(t),t)}function L9(e){const t=Object.keys(dx(e));return new Set(t)}function Sk(e){if(!e)return e;e=J1(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 xc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${J1(e)})`),t&&n.push("and",`(max-width: ${J1(t)})`),n.join(" ")}function $9(e){if(!e)return null;e.base=e.base??"0px";const t=bk(e),n=Object.entries(e).sort(cI).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?Sk(f):void 0,{_minW:Sk(s),breakpoint:i,minW:s,maxW:f,maxWQuery:xc(null,f),minWQuery:xc(s),minMaxQuery:xc(s,f)}}),r=L9(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:bk(e),details:n,media:[null,...t.map(i=>xc(i)).slice(1)],toArrayValue(i){if(!M9(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;N9(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 vn={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}`},oa=e=>fI(t=>e(t,"&"),"[role=group]","[data-group]",".group"),wi=e=>fI(t=>e(t,"~ &"),"[data-peer]",".peer"),fI=(e,...t)=>t.map(e).join(", "),fg={_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:oa(vn.hover),_peerHover:wi(vn.hover),_groupFocus:oa(vn.focus),_peerFocus:wi(vn.focus),_groupFocusVisible:oa(vn.focusVisible),_peerFocusVisible:wi(vn.focusVisible),_groupActive:oa(vn.active),_peerActive:wi(vn.active),_groupDisabled:oa(vn.disabled),_peerDisabled:wi(vn.disabled),_groupInvalid:oa(vn.invalid),_peerInvalid:wi(vn.invalid),_groupChecked:oa(vn.checked),_peerChecked:wi(vn.checked),_groupFocusWithin:oa(vn.focusWithin),_peerFocusWithin:wi(vn.focusWithin),_peerPlaceholderShown:wi(vn.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]"},B9=Object.keys(fg);function xk(e,t){return Ga(String(e).replace(/\./g,"-"),void 0,t)}function z9(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=xk(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...y]=m,S=`${v}.-${y.join(".")}`,k=ps.negate(u),x=ps.negate(f);r[S]={value:k,var:c,varRef:x}}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:k}=xk(y,t?.cssVarPrefix);return k},h=Go(u)?u:{default:u};n=Fa(n,Object.entries(h).reduce((m,[v,y])=>{var S;const k=p(y);if(v==="default")return m[c]=k,m;const x=((S=fg)==null?void 0:S[v])??v;return m[x]={[c]:k},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function V9(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function W9(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var j9=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function U9(e){return W9(e,j9)}function H9(e){return e.semanticTokens}function G9(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function q9({tokens:e,semanticTokens:t}){const n=Object.entries(eb(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(eb(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function eb(e,t=1/0){return!Go(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Go(o)||Array.isArray(o)?Object.entries(eb(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function K9(e){var t;const n=G9(e),r=U9(n),o=H9(n),i=q9({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=z9(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:$9(n.breakpoints)}),n}var px=Fa({},ph,Je,f9,im,qr,d9,x9,p9,lI,S9,Nc,Z1,Et,E9,k9,w9,_9,h9,C9),Y9=Object.assign({},Et,qr,im,lI,Nc),X9=Object.keys(Y9),Z9=[...Object.keys(px),...B9],Q9={...px,...fg},J9=e=>e in Q9;function e7(e){return/^var\(--.+\)$/.test(e)}var t7=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!e7(t),n7=(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 r7(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=Ml(c,r);let m={};for(let v in h){let y=Ml(h[v],r);if(y==null)continue;if(Array.isArray(y)||Go(y)&&o(y)){let b=Array.isArray(y)?y:i(y);b=b.slice(0,s.length);for(let w=0;w<b.length;w++){const P=s[w],O=b[w];P?O==null?m[P]??(m[P]={}):m[P]=Object.assign({},m[P],u({[v]:O},!0)):m=Object.assign({},m,u({...h,[v]:O},!1))}continue}if(v in n&&(v=n[v]),t7(v,y)&&(y=n7(r,y)),Go(y)){m[v]=Object.assign({},m[v],u(y,!0));continue}let S=t[v];if(S===!0&&(S={property:v}),!f&&S?.static){const b=Ml(S.static,r);m=Object.assign({},m,b)}let k=((p=S?.transform)==null?void 0:p.call(S,y,r,h))??y;if(k=S?.processResult?u(k,!0):k,Go(k)){m=Object.assign({},m,k);continue}const x=Ml(S?.property,r);if(x){if(Array.isArray(x)){for(const b of x)m[b]=k;continue}x==="&"&&Go(k)?m=Object.assign({},m,k):m[x]=k;continue}m[v]=k}return m};return u}var dI=e=>t=>r7({theme:t,pseudos:fg,configs:px})(e);function Rt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function o7(e,t){if(Array.isArray(e))return e;if(Go(e))return t(e);if(e!=null)return[e]}function i7(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function a7(e){const t=e.__breakpoints;return function(r,o,i,s){var u,c;if(!t)return;const f={},p=o7(i,t.toArrayValue);if(!p)return f;const h=p.length,m=h===1,v=!!r.parts;for(let y=0;y<h;y++){const S=t.details[y],k=t.details[i7(p,y)],x=xc(S.minW,k?._minW),b=Ml((u=r[o])==null?void 0:u[p[y]],s);if(!!b){if(v){(c=r.parts)==null||c.forEach(w=>{Fa(f,{[w]:m?b[w]:{[x]:b[w]}})});continue}if(!v){m?Fa(f,b):f[x]=b;continue}f[x]=b}}return f}}function s7(e){return t=>{const{variant:n,size:r,theme:o}=t,i=a7(o);return Fa({},Ml(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function l7(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function bt(e){return V9(e,["styleConfig","size","variant","colorScheme"])}function u7(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function c7(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var f7=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(c7(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=u7(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Rn="-ms-",am="-moz-",et="-webkit-",pI="comm",hx="rule",mx="decl",d7="@import",hI="@keyframes",p7=Math.abs,dg=String.fromCharCode,h7=Object.assign;function m7(e,t){return(((t<<2^rr(e,0))<<2^rr(e,1))<<2^rr(e,2))<<2^rr(e,3)}function mI(e){return e.trim()}function g7(e,t){return(e=t.exec(e))?e[0]:e}function ot(e,t,n){return e.replace(t,n)}function tb(e,t){return e.indexOf(t)}function rr(e,t){return e.charCodeAt(t)|0}function hf(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function gx(e){return e.length}function Dp(e,t){return t.push(e),e}function v7(e,t){return e.map(t).join("")}var pg=1,su=1,gI=0,dr=0,en=0,bu="";function hg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pg,column:su,length:s,return:""}}function uc(e,t){return h7(hg("",null,null,"",null,null,0),e,{length:-e.length},t)}function y7(){return en}function b7(){return en=dr>0?rr(bu,--dr):0,su--,en===10&&(su=1,pg--),en}function Ar(){return en=dr<gI?rr(bu,dr++):0,su++,en===10&&(su=1,pg++),en}function Xo(){return rr(bu,dr)}function hh(){return dr}function Gf(e,t){return hf(bu,e,t)}function mf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vI(e){return pg=su=1,gI=Vo(bu=e),dr=0,[]}function yI(e){return bu="",e}function mh(e){return mI(Gf(dr-1,nb(e===91?e+2:e===40?e+1:e)))}function S7(e){for(;(en=Xo())&&en<33;)Ar();return mf(e)>2||mf(en)>3?"":" "}function x7(e,t){for(;--t&&Ar()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return Gf(e,hh()+(t<6&&Xo()==32&&Ar()==32))}function nb(e){for(;Ar();)switch(en){case e:return dr;case 34:case 39:e!==34&&e!==39&&nb(en);break;case 40:e===41&&nb(e);break;case 92:Ar();break}return dr}function w7(e,t){for(;Ar()&&e+en!==47+10;)if(e+en===42+42&&Xo()===47)break;return"/*"+Gf(t,dr-1)+"*"+dg(e===47?e:Ar())}function _7(e){for(;!mf(Xo());)Ar();return Gf(e,dr)}function C7(e){return yI(gh("",null,null,null,[""],e=vI(e),0,[0],e))}function gh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,y=0,S=1,k=1,x=1,b=0,w="",P=o,O=i,M=r,N=w;k;)switch(y=b,b=Ar()){case 40:if(y!=108&&N.charCodeAt(h-1)==58){tb(N+=ot(mh(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=mh(b);break;case 9:case 10:case 13:case 32:N+=S7(y);break;case 92:N+=x7(hh()-1,7);continue;case 47:switch(Xo()){case 42:case 47:Dp(k7(w7(Ar(),hh()),t,n),c);break;default:N+="/"}break;case 123*S:u[f++]=Vo(N)*x;case 125*S:case 59:case 0:switch(b){case 0:case 125:k=0;case 59+p:v>0&&Vo(N)-h&&Dp(v>32?_k(N+";",r,n,h-1):_k(ot(N," ","")+";",r,n,h-2),c);break;case 59:N+=";";default:if(Dp(M=wk(N,t,n,f,p,o,u,w,P=[],O=[],h),i),b===123)if(p===0)gh(N,t,M,M,P,i,h,u,O);else switch(m){case 100:case 109:case 115:gh(e,M,M,r&&Dp(wk(e,M,M,0,0,o,u,w,o,P=[],h),O),o,O,h,u,r?P:O);break;default:gh(N,M,M,M,[""],O,0,u,O)}}f=p=v=0,S=x=1,w=N="",h=s;break;case 58:h=1+Vo(N),v=y;default:if(S<1){if(b==123)--S;else if(b==125&&S++==0&&b7()==125)continue}switch(N+=dg(b),b*S){case 38:x=p>0?1:(N+="\f",-1);break;case 44:u[f++]=(Vo(N)-1)*x,x=1;break;case 64:Xo()===45&&(N+=mh(Ar())),m=Xo(),p=h=Vo(w=N+=_7(hh())),b++;break;case 45:y===45&&Vo(N)==2&&(S=0)}}return i}function wk(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=gx(m),y=0,S=0,k=0;y<r;++y)for(var x=0,b=hf(e,h+1,h=p7(S=s[y])),w=e;x<v;++x)(w=mI(S>0?m[x]+" "+b:ot(b,/&\f/g,m[x])))&&(c[k++]=w);return hg(e,t,n,o===0?hx:u,c,f,p)}function k7(e,t,n){return hg(e,t,n,pI,dg(y7()),hf(e,2,-2),0)}function _k(e,t,n,r){return hg(e,t,n,mx,hf(e,0,r),hf(e,r+1,-1),r)}function bI(e,t){switch(m7(e,t)){case 5103:return et+"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 et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return et+e+am+e+Rn+e+e;case 6828:case 4268:return et+e+Rn+e+e;case 6165:return et+e+Rn+"flex-"+e+e;case 5187:return et+e+ot(e,/(\w+).+(:[^]+)/,et+"box-$1$2"+Rn+"flex-$1$2")+e;case 5443:return et+e+Rn+"flex-item-"+ot(e,/flex-|-self/,"")+e;case 4675:return et+e+Rn+"flex-line-pack"+ot(e,/align-content|flex-|-self/,"")+e;case 5548:return et+e+Rn+ot(e,"shrink","negative")+e;case 5292:return et+e+Rn+ot(e,"basis","preferred-size")+e;case 6060:return et+"box-"+ot(e,"-grow","")+et+e+Rn+ot(e,"grow","positive")+e;case 4554:return et+ot(e,/([^-])(transform)/g,"$1"+et+"$2")+e;case 6187:return ot(ot(ot(e,/(zoom-|grab)/,et+"$1"),/(image-set)/,et+"$1"),e,"")+e;case 5495:case 3959:return ot(e,/(image-set\([^]*)/,et+"$1$`$1");case 4968:return ot(ot(e,/(.+:)(flex-)?(.*)/,et+"box-pack:$3"+Rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+et+e+e;case 4095:case 3583:case 4068:case 2532:return ot(e,/(.+)-inline(.+)/,et+"$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(Vo(e)-1-t>6)switch(rr(e,t+1)){case 109:if(rr(e,t+4)!==45)break;case 102:return ot(e,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+am+(rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tb(e,"stretch")?bI(ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rr(e,t+1)!==115)break;case 6444:switch(rr(e,Vo(e)-3-(~tb(e,"!important")&&10))){case 107:return ot(e,":",":"+et)+e;case 101:return ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(rr(e,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(rr(e,t+11)){case 114:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return et+e+Rn+e+e}return e}function Hl(e,t){for(var n="",r=gx(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function E7(e,t,n,r){switch(e.type){case d7:case mx:return e.return=e.return||e.value;case pI:return"";case hI:return e.return=e.value+"{"+Hl(e.children,r)+"}";case hx:e.value=e.props.join(",")}return Vo(n=Hl(e.children,r))?e.return=e.value+"{"+n+"}":""}function P7(e){var t=gx(e);return function(n,r,o,i){for(var s="",u=0;u<t;u++)s+=e[u](n,r,o,i)||"";return s}}function A7(e){return function(t){t.root||(t=t.return)&&e(t)}}function T7(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mx:e.return=bI(e.value,e.length);break;case hI:return Hl([uc(e,{value:ot(e.value,"@","@"+et)})],r);case hx:if(e.length)return v7(e.props,function(o){switch(g7(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hl([uc(e,{props:[ot(o,/:(read-\w+)/,":"+am+"$1")]})],r);case"::placeholder":return Hl([uc(e,{props:[ot(o,/:(plac\w+)/,":"+et+"input-$1")]}),uc(e,{props:[ot(o,/:(plac\w+)/,":"+am+"$1")]}),uc(e,{props:[ot(o,/:(plac\w+)/,Rn+"input-$1")]})],r)}return""})}}var Ck=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 SI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var O7=function(t,n,r){for(var o=0,i=0;o=i,i=Xo(),o===38&&i===12&&(n[r]=1),!mf(i);)Ar();return Gf(t,dr)},I7=function(t,n){var r=-1,o=44;do switch(mf(o)){case 0:o===38&&Xo()===12&&(n[r]=1),t[r]+=O7(dr-1,n,r);break;case 2:t[r]+=mh(o);break;case 4:if(o===44){t[++r]=Xo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dg(o)}while(o=Ar());return t},R7=function(t,n){return yI(I7(vI(t),n))},kk=new WeakMap,D7=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&&!kk.get(r))&&!o){kk.set(t,!0);for(var i=[],s=R7(n,i),u=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,u[p]):u[p]+" "+s[c]}}},M7=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},N7=[T7],F7=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||N7,i={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),x=1;x<k.length;x++)i[k[x]]=!0;u.push(S)});var c,f=[D7,M7];{var p,h=[E7,A7(function(S){p.insert(S)})],m=P7(f.concat(o,h)),v=function(k){return Hl(C7(k),m)};c=function(k,x,b,w){p=b,v(k?k+"{"+x.styles+"}":x.styles),w&&(y.inserted[x.name]=!0)}}var y={key:n,sheet:new f7({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(u),y};function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(this,arguments)}var xI={exports:{}},ft={};/** @license React v16.13.1
* 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 pn=typeof Symbol=="function"&&Symbol.for,vx=pn?Symbol.for("react.element"):60103,yx=pn?Symbol.for("react.portal"):60106,mg=pn?Symbol.for("react.fragment"):60107,gg=pn?Symbol.for("react.strict_mode"):60108,vg=pn?Symbol.for("react.profiler"):60114,yg=pn?Symbol.for("react.provider"):60109,bg=pn?Symbol.for("react.context"):60110,bx=pn?Symbol.for("react.async_mode"):60111,Sg=pn?Symbol.for("react.concurrent_mode"):60111,xg=pn?Symbol.for("react.forward_ref"):60112,wg=pn?Symbol.for("react.suspense"):60113,L7=pn?Symbol.for("react.suspense_list"):60120,_g=pn?Symbol.for("react.memo"):60115,Cg=pn?Symbol.for("react.lazy"):60116,$7=pn?Symbol.for("react.block"):60121,B7=pn?Symbol.for("react.fundamental"):60117,z7=pn?Symbol.for("react.responder"):60118,V7=pn?Symbol.for("react.scope"):60119;function Nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vx:switch(e=e.type,e){case bx:case Sg:case mg:case vg:case gg:case wg:return e;default:switch(e=e&&e.$$typeof,e){case bg:case xg:case Cg:case _g:case yg:return e;default:return t}}case yx:return t}}}function wI(e){return Nr(e)===Sg}ft.AsyncMode=bx;ft.ConcurrentMode=Sg;ft.ContextConsumer=bg;ft.ContextProvider=yg;ft.Element=vx;ft.ForwardRef=xg;ft.Fragment=mg;ft.Lazy=Cg;ft.Memo=_g;ft.Portal=yx;ft.Profiler=vg;ft.StrictMode=gg;ft.Suspense=wg;ft.isAsyncMode=function(e){return wI(e)||Nr(e)===bx};ft.isConcurrentMode=wI;ft.isContextConsumer=function(e){return Nr(e)===bg};ft.isContextProvider=function(e){return Nr(e)===yg};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vx};ft.isForwardRef=function(e){return Nr(e)===xg};ft.isFragment=function(e){return Nr(e)===mg};ft.isLazy=function(e){return Nr(e)===Cg};ft.isMemo=function(e){return Nr(e)===_g};ft.isPortal=function(e){return Nr(e)===yx};ft.isProfiler=function(e){return Nr(e)===vg};ft.isStrictMode=function(e){return Nr(e)===gg};ft.isSuspense=function(e){return Nr(e)===wg};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mg||e===Sg||e===vg||e===gg||e===wg||e===L7||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===_g||e.$$typeof===yg||e.$$typeof===bg||e.$$typeof===xg||e.$$typeof===B7||e.$$typeof===z7||e.$$typeof===V7||e.$$typeof===$7)};ft.typeOf=Nr;(function(e){e.exports=ft})(xI);var _I=xI.exports,W7={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},CI={};CI[_I.ForwardRef]=W7;CI[_I.Memo]=j7;var U7=!0;function H7(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var kI=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||U7===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},EI=function(t,n,r){kI(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function G7(e){for(var t=0,n,r=0,o=e.length;o>=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 q7={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},K7=/[A-Z]|^ms/g,Y7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PI=function(t){return t.charCodeAt(1)===45},Ek=function(t){return t!=null&&typeof t!="boolean"},gy=SI(function(e){return PI(e)?e:e.replace(K7,"-$&").toLowerCase()}),Pk=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y7,function(r,o,i){return Wo={name:o,styles:i,next:Wo},o})}return q7[t]!==1&&!PI(t)&&typeof n=="number"&&n!==0?n+"px":n};function vf(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 Wo={name:n.name,styles:n.styles,next:Wo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wo={name:r.name,styles:r.styles,next:Wo},r=r.next;var o=n.styles+";";return o}return X7(e,t,n)}case"function":{if(e!==void 0){var i=Wo,s=n(e);return Wo=i,vf(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function X7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vf(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":Ek(s)&&(r+=gy(i)+":"+Pk(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Ek(s[u])&&(r+=gy(i)+":"+Pk(i,s[u])+";");else{var c=vf(e,t,s);switch(i){case"animation":case"animationName":{r+=gy(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var Ak=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Wo,Sx=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Wo=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=vf(r,n,s)):i+=s[0];for(var u=1;u<t.length;u++)i+=vf(r,n,t[u]),o&&(i+=s[u]);Ak.lastIndex=0;for(var c="",f;(f=Ak.exec(i))!==null;)c+="-"+f[1];var p=G7(i)+c;return{name:p,styles:i,next:Wo}},Z7=function(t){return t()},AI=iC["useInsertionEffect"]?iC["useInsertionEffect"]:!1,Q7=AI||Z7,Tk=AI||_.exports.useLayoutEffect,TI=_.exports.createContext(typeof HTMLElement<"u"?F7({key:"css"}):null);TI.Provider;var OI=function(t){return _.exports.forwardRef(function(n,r){var o=_.exports.useContext(TI);return t(n,o,r)})},yf=_.exports.createContext({}),J7=function(t,n){if(typeof n=="function"){var r=n(t);return r}return gf({},t,n)},eV=Ck(function(e){return Ck(function(t){return J7(e,t)})}),tV=function(t){var n=_.exports.useContext(yf);return t.theme!==n&&(n=eV(n)(t.theme)),_.exports.createElement(yf.Provider,{value:n},t.children)},kg=OI(function(e,t){var n=e.styles,r=Sx([n],void 0,_.exports.useContext(yf)),o=_.exports.useRef();return Tk(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,u],function(){s.flush()}},[t]),Tk(function(){var i=o.current,s=i[0],u=i[1];if(u){i[1]=!1;return}if(r.next!==void 0&&EI(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function nV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sx(t)}var qf=function(){var t=nV.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Nl(e){return typeof e=="function"}function rV(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function oV(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var iV=e=>{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}},II=iV(oV);function RI(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var DI=e=>RI(e,t=>t!=null);function aV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var sV=aV();function MI(e,...t){return Nl(e)?e(...t):e}function lV(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var uV=(...e)=>t=>e.reduce((n,r)=>r(n),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function cV(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=_.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 fV=/^((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)-.*))$/,dV=SI(function(e){return fV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pV=dV,hV=function(t){return t!=="theme"},Ok=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pV:hV},Ik=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},mV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kI(n,r,o),Q7(function(){return EI(n,r,o)}),null},gV=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=Ik(t,n,r),c=u||Ok(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<m;v++)h.push(p[v],p[0][v])}var y=OI(function(S,k,x){var b=f&&S.as||o,w="",P=[],O=S;if(S.theme==null){O={};for(var M in S)O[M]=S[M];O.theme=_.exports.useContext(yf)}typeof S.className=="string"?w=H7(k.registered,P,S.className):S.className!=null&&(w=S.className+" ");var N=Sx(h.concat(P),k.registered,O);w+=k.key+"-"+N.name,s!==void 0&&(w+=" "+s);var V=f&&u===void 0?Ok(b):c,K={};for(var W in S)f&&W==="as"||V(W)&&(K[W]=S[W]);return K.className=w,K.ref=x,_.exports.createElement(_.exports.Fragment,null,_.exports.createElement(mV,{cache:k,serialized:N,isStringTag:typeof b=="string"}),_.exports.createElement(b,K))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=h,y.__emotion_forwardProp=u,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(S,k){return e(S,gf({},n,k,{shouldForwardProp:Ik(y,k,!0)})).apply(void 0,h)},y}},vV=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],rb=gV.bind();vV.forEach(function(e){rb[e]=rb(e)});var yV=typeof Element<"u",bV=typeof Map=="function",SV=typeof Set=="function",xV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!vh(e[r],t[r]))return!1;return!0}var i;if(bV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!vh(r.value[1],t.get(r.value[0])))return!1;return!0}if(SV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(xV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(yV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!vh(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var wV=function(t,n){try{return vh(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function xx(){const e=_.exports.useContext(yf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function NI(){const e=ug(),t=xx();return{...e,theme:t}}function _V(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 CV(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 kV(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 _V(i,c,s[f]??c);const p=`${e}.${c}`;return CV(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function EV(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.exports.useMemo(()=>K9(n),[n]);return ue(tV,{theme:o,children:[E(PV,{root:t}),r]})}function PV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E(kg,{styles:n=>({[t]:n.__cssVars})})}cV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function AV(){const{colorMode:e}=ug();return E(kg,{styles:t=>{const n=II(t,"styles.global"),r=MI(n,{theme:t,colorMode:e});return r?dI(r)(t):void 0}})}var TV=new Set([...Z9,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),OV=new Set(["htmlWidth","htmlHeight","htmlSize"]);function IV(e){return OV.has(e)||!TV.has(e)}var RV=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=RI(s,(h,m)=>J9(m)),c=MI(e,t),f=Object.assign({},o,c,DI(u),i),p=dI(f)(t.theme);return r?[p,r]:p};function vy(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=IV);const o=RV({baseStyle:n});return rb(e,r)(o)}function de(e){return _.exports.forwardRef(e)}function FI(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=NI(),s=II(o,`components.${e}`),u=n||s,c=Fa({theme:o,colorMode:i},u?.defaultProps??{},DI(rV(r,["children"]))),f=_.exports.useRef({});if(u){const h=s7(u)(c);wV(f.current,h)||(f.current=h)}return f.current}function Zn(e,t={}){return FI(e,t)}function Fr(e,t={}){return FI(e,t)}function DV(){const e=new Map;return new Proxy(vy,{apply(t,n,r){return vy(...r)},get(t,n){return e.has(n)||e.set(n,vy(n)),e.get(n)}})}var ie=DV();function MV(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=_.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=_.exports.useContext(s);if(!f&&n){const p=new Error(i??MV(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function NV(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 Kn(...e){return t=>{e.forEach(n=>{NV(n,t)})}}function FV(...e){return _.exports.useMemo(()=>Kn(...e),e)}function Rk(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 LV=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Dk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Mk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var ob=typeof window<"u"?_.exports.useLayoutEffect:_.exports.useEffect,sm=e=>e,$V=class{descendants=new Map;register=e=>{if(e!=null)return LV(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=Rk(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=Dk(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=Dk(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=Mk(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=Mk(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=Rk(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function BV(){const e=_.exports.useRef(new $V);return ob(()=>()=>e.current.destroy()),e.current}var[zV,LI]=Xt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function VV(e){const t=LI(),[n,r]=_.exports.useState(-1),o=_.exports.useRef(null);ob(()=>()=>{!o.current||t.unregister(o.current)},[]),ob(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=sm(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:Kn(i,o)}}function WV(){return[sm(zV),()=>sm(LI()),()=>BV(),o=>VV(o)]}var Zt=(...e)=>e.filter(Boolean).join(" "),Nk={path:ue("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),E("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),E("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Po=de((e,t)=>{const{as:n,viewBox:r,color: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??Nk.viewBox;if(n&&typeof n!="string")return ee.createElement(ie.svg,{as:n,...m,...f});const y=s??Nk.path;return ee.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});Po.displayName="Icon";function Nn(e,t=[]){const n=_.exports.useRef(e);return _.exports.useEffect(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function jV(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Nn(r),s=Nn(o),[u,c]=_.exports.useState(n),f=t!==void 0,p=f?t:u,h=_.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 wx=_.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Eg=_.exports.createContext({});function UV(){return _.exports.useContext(Eg).visualElement}const Su=_.exports.createContext(null),Bs=typeof document<"u",lm=Bs?_.exports.useLayoutEffect:_.exports.useEffect,$I=_.exports.createContext({strict:!1});function HV(e,t,n,r){const o=UV(),i=_.exports.useContext($I),s=_.exports.useContext(Su),u=_.exports.useContext(wx).reducedMotion,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 lm(()=>{f&&f.syncRender()}),_.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),lm(()=>()=>f&&f.notifyUnmount(),[]),f}function Fl(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GV(e,t,n){return _.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fl(n)&&(n.current=r))},[t])}function bf(e){return typeof e=="string"||Array.isArray(e)}function Pg(e){return typeof e=="object"&&typeof e.start=="function"}const qV=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ag(e){return Pg(e.animate)||qV.some(t=>bf(e[t]))}function BI(e){return Boolean(Ag(e)||e.variants)}function KV(e,t){if(Ag(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bf(n)?n:void 0,animate:bf(r)?r:void 0}}return e.inherit!==!1?t:{}}function YV(e){const{initial:t,animate:n}=KV(e,_.exports.useContext(Eg));return _.exports.useMemo(()=>({initial:t,animate:n}),[Fk(t),Fk(n)])}function Fk(e){return Array.isArray(e)?e.join(" "):e}const _i=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Sf={measureLayout:_i(["layout","layoutId","drag"]),animation:_i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_i(["exit"]),drag:_i(["drag","dragControls"]),focus:_i(["whileFocus"]),hover:_i(["whileHover","onHoverStart","onHoverEnd"]),tap:_i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_i(["whileInView","onViewportEnter","onViewportLeave"])};function XV(e){for(const t in e)t==="projectionNodeConstructor"?Sf.projectionNodeConstructor=e[t]:Sf[t].Component=e[t]}function Tg(e){const t=_.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ZV=1;function QV(){return Tg(()=>{if(Fc.hasEverUpdated)return ZV++})}const _x=_.exports.createContext({});class JV extends ee.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const zI=_.exports.createContext({}),eW=Symbol.for("motionComponentSymbol");function tW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&XV(e);function s(c,f){const p={..._.exports.useContext(wx),...c,layoutId:nW(c)},{isStatic:h}=p;let m=null;const v=YV(c),y=h?void 0:QV(),S=o(c,h);if(!h&&Bs){v.visualElement=HV(i,S,p,t);const k=_.exports.useContext($I).strict,x=_.exports.useContext(zI);v.visualElement&&(m=v.visualElement.loadFeatures(p,k,e,y,n||Sf.projectionNodeConstructor,x))}return ue(JV,{visualElement:v.visualElement,props:p,children:[m,E(Eg.Provider,{value:v,children:r(i,c,y,GV(S,v.visualElement,f),S,h,v.visualElement)})]})}const u=_.exports.forwardRef(s);return u[eW]=i,u}function nW({layoutId:e}){const t=_.exports.useContext(_x).id;return t&&e!==void 0?t+"-"+e:e}function rW(e){function t(r,o={}){return tW(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 oW=["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 Cx(e){return typeof e!="string"||e.includes("-")?!1:!!(oW.indexOf(e)>-1||/[A-Z]/.test(e))}const um={};function iW(e){Object.assign(um,e)}const cm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kf=new Set(cm);function VI(e,{layout:t,layoutId:n}){return Kf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!um[e]||e==="opacity")}const ri=e=>!!e?.getVelocity,aW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sW=(e,t)=>cm.indexOf(e)-cm.indexOf(t);function lW({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(sW);for(const u of t)s+=`${aW[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 WI(e){return e.startsWith("--")}const uW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jI=(e,t)=>n=>Math.max(Math.min(n,t),e),Lc=e=>e%1?Number(e.toFixed(5)):e,xf=/(-)?([\d]*\.?[\d])+/g,ib=/(#[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,cW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yf(e){return typeof e=="string"}const zs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c=Object.assign(Object.assign({},zs),{transform:jI(0,1)}),Mp=Object.assign(Object.assign({},zs),{default:1}),Xf=e=>({test:t=>Yf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sa=Xf("deg"),Zo=Xf("%"),Re=Xf("px"),fW=Xf("vh"),dW=Xf("vw"),Lk=Object.assign(Object.assign({},Zo),{parse:e=>Zo.parse(e)/100,transform:e=>Zo.transform(e*100)}),kx=(e,t)=>n=>Boolean(Yf(n)&&cW.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UI=(e,t,n)=>r=>{if(!Yf(r))return r;const[o,i,s,u]=r.match(xf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},bs={test:kx("hsl","hue"),parse:UI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Zo.transform(Lc(t))+", "+Zo.transform(Lc(n))+", "+Lc($c.transform(r))+")"},pW=jI(0,255),yy=Object.assign(Object.assign({},zs),{transform:e=>Math.round(pW(e))}),Sa={test:kx("rgb","red"),parse:UI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yy.transform(e)+", "+yy.transform(t)+", "+yy.transform(n)+", "+Lc($c.transform(r))+")"};function hW(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 ab={test:kx("#"),parse:hW,transform:Sa.transform},Hn={test:e=>Sa.test(e)||ab.test(e)||bs.test(e),parse:e=>Sa.test(e)?Sa.parse(e):bs.test(e)?bs.parse(e):ab.parse(e),transform:e=>Yf(e)?e:e.hasOwnProperty("red")?Sa.transform(e):bs.transform(e)},HI="${c}",GI="${n}";function mW(e){var t,n,r,o;return isNaN(e)&&Yf(e)&&((n=(t=e.match(xf))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(ib))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function qI(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(ib);r&&(n=r.length,e=e.replace(ib,HI),t.push(...r.map(Hn.parse)));const o=e.match(xf);return o&&(e=e.replace(xf,GI),t.push(...o.map(zs.parse))),{values:t,numColors:n,tokenised:e}}function KI(e){return qI(e).values}function YI(e){const{values:t,numColors:n,tokenised:r}=qI(e),o=t.length;return i=>{let s=r;for(let u=0;u<o;u++)s=s.replace(u<n?HI:GI,u<n?Hn.transform(i[u]):Lc(i[u]));return s}}const gW=e=>typeof e=="number"?0:e;function vW(e){const t=KI(e);return YI(e)(t.map(gW))}const Bi={test:mW,parse:KI,createTransformer:YI,getAnimatableNone:vW},yW=new Set(["brightness","contrast","saturate","opacity"]);function bW(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xf)||[];if(!r)return e;const o=n.replace(r,"");let i=yW.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const SW=/([a-z-]*)\(.*?\)/g,sb=Object.assign(Object.assign({},Bi),{getAnimatableNone:e=>{const t=e.match(SW);return t?t.map(bW).join(" "):e}}),$k={...zs,transform:Math.round},XI={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,radius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,size:Re,top:Re,right:Re,bottom:Re,left:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:Mp,scaleX:Mp,scaleY:Mp,scaleZ:Mp,skew:sa,skewX:sa,skewY:sa,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:$c,originX:Lk,originY:Lk,originZ:Re,zIndex:$k,fillOpacity:$c,strokeOpacity:$c,numOctaves:$k};function Ex(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(WI(m)){i[m]=v;continue}const y=XI[m],S=uW(v,y);if(Kf.has(m)){if(f=!0,s[m]=S,u.push(m),!h)continue;v!==(y.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=S):o[m]=S}if(f||r?o.transform=lW(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 Px=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ZI(e,t,n){for(const r in t)!ri(t[r])&&!VI(r,n)&&(e[r]=t[r])}function xW({transformTemplate:e},t,n){return _.exports.useMemo(()=>{const r=Px();return Ex(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function wW(e,t,n){const r=e.style||{},o={};return ZI(o,r,e),Object.assign(o,xW(e,t,n)),e.transformValues?e.transformValues(o):o}function _W(e,t,n){const r={},o=wW(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 CW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],kW=["whileTap","onTap","onTapStart","onTapCancel"],EW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],PW=["whileInView","onViewportEnter","onViewportLeave","viewport"],AW=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",...PW,...kW,...CW,...EW]);function fm(e){return AW.has(e)}let QI=e=>!fm(e);function TW(e){!e||(QI=t=>t.startsWith("on")?!fm(t):e(t))}try{TW(require("@emotion/is-prop-valid").default)}catch{}function OW(e,t,n){const r={};for(const o in e)(QI(o)||n===!0&&fm(o)||!t&&!fm(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Bk(e,t,n){return typeof e=="string"?e:Re.transform(t+n*e)}function IW(e,t,n){const r=Bk(t,e.x,e.width),o=Bk(n,e.y,e.height);return`${r} ${o}`}const RW={offset:"stroke-dashoffset",array:"stroke-dasharray"},DW={offset:"strokeDashoffset",array:"strokeDasharray"};function MW(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?RW:DW;e[i.offset]=Re.transform(-r);const s=Re.transform(t),u=Re.transform(n);e[i.array]=`${s} ${u}`}function Ax(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){Ex(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=IW(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&&MW(h,i,s,u,!1)}const JI=()=>({...Px(),attrs:{}});function NW(e,t){const n=_.exports.useMemo(()=>{const r=JI();return Ax(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ZI(r,e.style,e),n.style={...r,...n.style}}return n}function FW(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(Cx(n)?NW:_W)(r,s,u),h={...OW(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),_.exports.createElement(n,h)}}const eR=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tR(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 nR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rR(e,t,n,r){tR(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(nR.has(o)?o:eR(o),t.attrs[o])}function Tx(e){const{style:t}=e,n={};for(const r in t)(ri(t[r])||VI(r,e))&&(n[r]=t[r]);return n}function oR(e){const t=Tx(e);for(const n in e)if(ri(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function iR(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 wf=e=>Array.isArray(e),LW=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),aR=e=>wf(e)?e[e.length-1]||0:e;function yh(e){const t=ri(e)?e.get():e;return LW(t)?t.toValue():t}function $W({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:BW(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const sR=e=>(t,n)=>{const r=_.exports.useContext(Eg),o=_.exports.useContext(Su),i=()=>$W(e,t,r,o);return n?i():Tg(i)};function BW(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=yh(i[m]);let{initial:s,animate:u}=e;const c=Ag(e),f=BI(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"&&!Pg(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=iR(e,v);if(!y)return;const{transitionEnd:S,transition:k,...x}=y;for(const b in x){let w=x[b];if(Array.isArray(w)){const P=p?w.length-1:0;w=w[P]}w!==null&&(o[b]=w)}for(const b in S)o[b]=S[b]}),o}const zW={useVisualState:sR({scrapeMotionValuesFromProps:oR,createRenderState:JI,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}}Ax(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rR(t,n)}})},VW={useVisualState:sR({scrapeMotionValuesFromProps:Tx,createRenderState:Px})};function WW(e,{forwardMotionProps:t=!1},n,r,o){return{...Cx(e)?zW:VW,preloadedFeatures:n,useRender:FW(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var wt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(wt||(wt={}));function Og(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lb(e,t,n,r){_.exports.useEffect(()=>{const o=e.current;if(n&&o)return Og(o,t,n,r)},[e,t,n,r])}function jW({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(wt.Focus,!0)},o=()=>{n&&n.setActive(wt.Focus,!1)};lb(t,"focus",e?r:void 0),lb(t,"blur",e?o:void 0)}function lR(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function uR(e){return!!e.touches}function UW(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const HW={pageX:0,pageY:0};function GW(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||HW;return{x:r[t+"X"],y:r[t+"Y"]}}function qW(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Ox(e,t="page"){return{point:uR(e)?GW(e,t):qW(e,t)}}const cR=(e,t=!1)=>{const n=r=>e(r,Ox(r));return t?UW(n):n},KW=()=>Bs&&window.onpointerdown===null,YW=()=>Bs&&window.ontouchstart===null,XW=()=>Bs&&window.onmousedown===null,ZW={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},QW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fR(e){return KW()?e:YW()?QW[e]:XW()?ZW[e]:e}function Gl(e,t,n,r){return Og(e,fR(t),cR(n,t==="pointerdown"),r)}function dm(e,t,n,r){return lb(e,fR(t),n&&cR(n,t==="pointerdown"),r)}function dR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const zk=dR("dragHorizontal"),Vk=dR("dragVertical");function pR(e){let t=!1;if(e==="y")t=Vk();else if(e==="x")t=zk();else{const n=zk(),r=Vk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function hR(){const e=pR(!0);return e?(e(),!1):!0}function Wk(e,t,n){return(r,o)=>{!lR(r)||hR()||(e.animationState&&e.animationState.setActive(wt.Hover,t),n&&n(r,o))}}function JW({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){dm(r,"pointerenter",e||n?Wk(r,!0,e):void 0,{passive:!e}),dm(r,"pointerleave",t||n?Wk(r,!1,t):void 0,{passive:!t})}const mR=(e,t)=>t?e===t?!0:mR(e,t.parentElement):!1;function Ix(e){return _.exports.useEffect(()=>()=>e(),[])}var Uo=function(){return Uo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Uo.apply(this,arguments)};function Ig(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function xu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(u,c)}f((r=r.apply(e,t||[])).next())})}function wu(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(f){return function(p){return c([f,p])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(p){f=[6,p],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function jk(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >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 ub(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ej=function(){},pm=function(){};const hm=(e,t,n)=>Math.min(Math.max(n,e),t),by=.001,tj=.01,Uk=10,nj=.05,rj=1;function oj({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ej(e<=Uk*1e3);let s=1-t;s=hm(nj,rj,s),e=hm(tj,Uk,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=cb(f,s),y=Math.exp(-h);return by-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),S=cb(Math.pow(f,2),s);return(-o(f)+by>0?-1:1)*((m-v)*y)/S}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-by+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=aj(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 ij=12;function aj(e,t,n){let r=n;for(let o=1;o<ij;o++)r=r-e(r)/t(r);return r}function cb(e,t){return e*Math.sqrt(1-t*t)}const sj=["duration","bounce"],lj=["stiffness","damping","mass"];function Hk(e,t){return t.some(n=>e[n]!==void 0)}function uj(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Hk(e,lj)&&Hk(e,sj)){const n=oj(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Rx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Ig(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=uj(i),v=Gk,y=Gk;function S(){const k=p?-(p/1e3):0,x=n-t,b=c/(2*Math.sqrt(u*f)),w=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),b<1){const P=cb(w,b);v=O=>{const M=Math.exp(-b*w*O);return n-M*((k+b*w*x)/P*Math.sin(P*O)+x*Math.cos(P*O))},y=O=>{const M=Math.exp(-b*w*O);return b*w*M*(Math.sin(P*O)*(k+b*w*x)/P+x*Math.cos(P*O))-M*(Math.cos(P*O)*(k+b*w*x)-P*x*Math.sin(P*O))}}else if(b===1)v=P=>n-Math.exp(-w*P)*(x+(k+w*x)*P);else{const P=w*Math.sqrt(b*b-1);v=O=>{const M=Math.exp(-b*w*O),N=Math.min(P*O,300);return n-M*((k+b*w*x)*Math.sinh(N)+P*x*Math.cosh(N))/P}}}return S(),{next:k=>{const x=v(k);if(m)s.done=k>=h;else{const b=y(k)*1e3,w=Math.abs(b)<=r,P=Math.abs(n-x)<=o;s.done=w&&P}return s.value=s.done?n:x,s},flipTarget:()=>{p=-p,[t,n]=[n,t],S()}}}Rx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Gk=e=>0,_f=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},jt=(e,t,n)=>-n*e+n*t+e;function Sy(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 qk({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=Sy(c,u,e+1/3),i=Sy(c,u,e),s=Sy(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const cj=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},fj=[ab,Sa,bs],Kk=e=>fj.find(t=>t.test(e)),gR=(e,t)=>{let n=Kk(e),r=Kk(t),o=n.parse(e),i=r.parse(t);n===bs&&(o=qk(o),n=Sa),r===bs&&(i=qk(i),r=Sa);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=cj(o[c],i[c],u));return s.alpha=jt(o.alpha,i.alpha,u),n.transform(s)}},fb=e=>typeof e=="number",dj=(e,t)=>n=>t(e(n)),Rg=(...e)=>e.reduce(dj);function vR(e,t){return fb(e)?n=>jt(e,t,n):Hn.test(e)?gR(e,t):bR(e,t)}const yR=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>vR(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},pj=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vR(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function Yk(e){const t=Bi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const bR=(e,t)=>{const n=Bi.createTransformer(t),r=Yk(e),o=Yk(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Rg(yR(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},hj=(e,t)=>n=>jt(e,t,n);function mj(e){if(typeof e=="number")return hj;if(typeof e=="string")return Hn.test(e)?gR:bR;if(Array.isArray(e))return yR;if(typeof e=="object")return pj}function gj(e,t,n){const r=[],o=n||mj(e[0]),i=e.length-1;for(let s=0;s<i;s++){let u=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;u=Rg(c,u)}r.push(u)}return r}function vj([e,t],[n]){return r=>n(_f(e,t,r))}function yj(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(;c<n&&!(e[c]>o||c===r);c++);i=c-1}const u=_f(e[i],e[i+1],o);return t[i](u)}}function SR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;pm(i===t.length),pm(!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=gj(t,r,o),u=i===2?vj(e,s):yj(e,s);return n?c=>u(hm(e[0],e[i-1],c)):u}const Dg=e=>t=>1-e(1-t),Dx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bj=e=>t=>Math.pow(t,e),xR=e=>t=>t*t*((e+1)*t-e),Sj=e=>{const t=xR(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},wR=1.525,xj=4/11,wj=8/11,_j=9/10,Mx=e=>e,Nx=bj(2),Cj=Dg(Nx),_R=Dx(Nx),CR=e=>1-Math.sin(Math.acos(e)),Fx=Dg(CR),kj=Dx(Fx),Lx=xR(wR),Ej=Dg(Lx),Pj=Dx(Lx),Aj=Sj(wR),Tj=4356/361,Oj=35442/1805,Ij=16061/1805,mm=e=>{if(e===1||e===0)return e;const t=e*e;return e<xj?7.5625*t:e<wj?9.075*t-9.9*e+3.4:e<_j?Tj*t-Oj*e+Ij:10.8*e*e-20.52*e+10.72},Rj=Dg(mm),Dj=e=>e<.5?.5*(1-mm(1-e*2)):.5*mm(e*2-1)+.5;function Mj(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function Nj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Fj(e,t){return e.map(n=>n*t)}function bh({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=Fj(r&&r.length===s.length?r:Nj(s),o);function c(){return SR(u,s,{ease:Array.isArray(n)?n:Mj(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function Lj({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 Xk={keyframes:bh,spring:Rx,decay:Lj};function $j(e){if(Array.isArray(e.to))return bh;if(Xk[e.type])return Xk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?bh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Rx:bh}const kR=1/60*1e3,Bj=typeof performance<"u"?()=>performance.now():()=>Date.now(),ER=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Bj()),kR);function zj(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<r;f++){const p=t[f];p(c),s.has(p)&&(u.schedule(p),e())}o=!1,i&&(i=!1,u.process(c))}};return u}const Vj=40;let db=!0,Cf=!1,pb=!1;const ql={delta:0,timestamp:0},Zf=["read","update","preRender","render","postRender"],Mg=Zf.reduce((e,t)=>(e[t]=zj(()=>Cf=!0),e),{}),Wj=Zf.reduce((e,t)=>{const n=Mg[t];return e[t]=(r,o=!1,i=!1)=>(Cf||Hj(),n.schedule(r,o,i)),e},{}),jj=Zf.reduce((e,t)=>(e[t]=Mg[t].cancel,e),{});Zf.reduce((e,t)=>(e[t]=()=>Mg[t].process(ql),e),{});const Uj=e=>Mg[e].process(ql),PR=e=>{Cf=!1,ql.delta=db?kR:Math.max(Math.min(e-ql.timestamp,Vj),1),ql.timestamp=e,pb=!0,Zf.forEach(Uj),pb=!1,Cf&&(db=!1,ER(PR))},Hj=()=>{Cf=!0,db=!0,pb||ER(PR)},Gj=()=>ql;function AR(e,t,n=0){return e-t-n}function qj(e,t,n=0,r=!0){return r?AR(t+-e,t,n):t-(e-t)+n}function Kj(e,t,n,r){return r?e>=t+n:e<=-n}const Yj=e=>{const t=({delta:n})=>e(n);return{start:()=>Wj.update(t,!0),stop:()=>jj.update(t)}};function TR(e){var t,n,{from:r,autoplay:o=!0,driver:i=Yj,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:y}=e,S=Ig(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=S,x,b=0,w=S.duration,P,O=!1,M=!0,N;const V=$j(S);!((n=(t=V).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(N=SR([0,100],[r,k],{clamp:!1}),r=0,k=100);const K=V(Object.assign(Object.assign({},S),{from:r,to:k}));function W(){b++,c==="reverse"?(M=b%2===0,s=qj(s,w,f,M)):(s=AR(s,w,f),c==="mirror"&&K.flipTarget()),O=!1,v&&v()}function te(){x.stop(),m&&m()}function xe(we){if(M||(we=-we),s+=we,!O){const Ce=K.next(Math.max(0,s));P=Ce.value,N&&(P=N(P)),O=M?Ce.done:s<=0}y?.(P),O&&(b===0&&(w??(w=s)),b<u?Kj(s,w,f,M)&&W():te())}function fe(){p?.(),x=i(xe),x.start()}return o&&fe(),{stop:()=>{h?.(),x.stop()}}}function OR(e,t){return t?e*(1e3/t):0}function Xj({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 S(w){return n!==void 0&&w<n||r!==void 0&&w>r}function k(w){return n===void 0?r:r===void 0||Math.abs(n-w)<Math.abs(r-w)?n:r}function x(w){y?.stop(),y=TR(Object.assign(Object.assign({},w),{driver:p,onUpdate:P=>{var O;h?.(P),(O=w.onUpdate)===null||O===void 0||O.call(w,P)},onComplete:m,onStop:v}))}function b(w){x(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},w))}if(S(e))b({from:e,velocity:t,to:k(e)});else{let w=o*t+e;typeof f<"u"&&(w=f(w));const P=k(w),O=P===n?-1:1;let M,N;const V=K=>{M=N,N=K,t=OR(K-M,Gj().delta),(O===1&&K>P||O===-1&&K<P)&&b({from:K,to:P,velocity:t})};x({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:c,modifyTarget:f,onUpdate:S(w)?V:void 0})}return{stop:()=>y?.stop()}}const hb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Zk=e=>hb(e)&&e.hasOwnProperty("z"),Np=(e,t)=>Math.abs(e-t);function $x(e,t){if(fb(e)&&fb(t))return Np(e,t);if(hb(e)&&hb(t)){const n=Np(e.x,t.x),r=Np(e.y,t.y),o=Zk(e)&&Zk(t)?Np(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const IR=(e,t)=>1-3*t+3*e,RR=(e,t)=>3*t-6*e,DR=e=>3*e,gm=(e,t,n)=>((IR(t,n)*e+RR(t,n))*e+DR(t))*e,MR=(e,t,n)=>3*IR(t,n)*e*e+2*RR(t,n)*e+DR(t),Zj=1e-7,Qj=10;function Jj(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=gm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Zj&&++u<Qj);return s}const eU=8,tU=.001;function nU(e,t,n,r){for(let o=0;o<eU;++o){const i=MR(t,n,r);if(i===0)return t;t-=(gm(t,n,r)-e)/i}return t}const Sh=11,Fp=1/(Sh-1);function rU(e,t,n,r){if(e===t&&n===r)return Mx;const o=new Float32Array(Sh);for(let s=0;s<Sh;++s)o[s]=gm(s*Fp,e,n);function i(s){let u=0,c=1;const f=Sh-1;for(;c!==f&&o[c]<=s;++c)u+=Fp;--c;const p=(s-o[c])/(o[c+1]-o[c]),h=u+p*Fp,m=MR(h,e,n);return m>=tU?nU(s,h,e,n):m===0?h:Jj(s,u,u+Fp,e,n)}return s=>s===0||s===1?s:gm(i(s),t,r)}function oU({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(!1),u=_.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(wt.Tap,!1),!hR()}function h(y,S){!p()||(mR(o.getInstance(),y.target)?e&&e(y,S):n&&n(y,S))}function m(y,S){!p()||n&&n(y,S)}function v(y,S){f(),!s.current&&(s.current=!0,u.current=Rg(Gl(window,"pointerup",h,c),Gl(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(wt.Tap,!0),t&&t(y,S))}dm(o,"pointerdown",i?v:void 0,c),Ix(f)}const iU="production",NR=typeof process>"u"||process.env===void 0?iU:"production",Qk=new Set;function FR(e,t,n){e||Qk.has(t)||(console.warn(t),n&&console.warn(n),Qk.add(t))}const mb=new WeakMap,xy=new WeakMap,aU=e=>{const t=mb.get(e.target);t&&t(e)},sU=e=>{e.forEach(aU)};function lU({root:e,...t}){const n=e||document;xy.has(n)||xy.set(n,{});const r=xy.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(sU,{root:e,...t})),r[o]}function uU(e,t,n){const r=lU(t);return mb.set(e,n),r.observe(e),()=>{mb.delete(e),r.unobserve(e)}}function cU({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=_.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?pU:dU)(s,i.current,e,o)}const fU={some:0,all:1};function dU(e,t,n,{root:r,margin:o,amount:i="some",once:s}){_.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:fU[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(wt.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return uU(n.getInstance(),u,c)},[e,r,o,i])}function pU(e,t,n,{fallback:r=!0}){_.exports.useEffect(()=>{!e||!r||(NR!=="production"&&FR(!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(wt.InView,!0)}))},[e])}const xa=e=>t=>(e(t),null),hU={inView:xa(cU),tap:xa(oU),focus:xa(jW),hover:xa(JW)};function Bx(){const e=_.exports.useContext(Su);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.exports.useId();return _.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function mU(){return gU(_.exports.useContext(Su))}function gU(e){return e===null?!0:e.isPresent}function LR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const vm=e=>e*1e3,vU={linear:Mx,easeIn:Nx,easeInOut:_R,easeOut:Cj,circIn:CR,circInOut:kj,circOut:Fx,backIn:Lx,backInOut:Pj,backOut:Ej,anticipate:Aj,bounceIn:Rj,bounceInOut:Dj,bounceOut:mm},Jk=e=>{if(Array.isArray(e)){pm(e.length===4);const[t,n,r,o]=e;return rU(t,n,r,o)}else if(typeof e=="string")return vU[e];return e},yU=e=>Array.isArray(e)&&typeof e[0]!="number",eE=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Bi.test(t)&&!t.startsWith("url(")),os=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Lp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wy=()=>({type:"keyframes",ease:"linear",duration:.3}),bU=e=>({type:"keyframes",duration:.8,values:e}),tE={x:os,y:os,z:os,rotate:os,rotateX:os,rotateY:os,rotateZ:os,scaleX:Lp,scaleY:Lp,scale:Lp,opacity:wy,backgroundColor:wy,color:wy,default:Lp},SU=(e,t)=>{let n;return wf(t)?n=bU:n=tE[e]||tE.default,{to:t,...n(t)}},xU={...XI,color:Hn,backgroundColor:Hn,outlineColor:Hn,fill:Hn,stroke:Hn,borderColor:Hn,borderTopColor:Hn,borderRightColor:Hn,borderBottomColor:Hn,borderLeftColor:Hn,filter:sb,WebkitFilter:sb},zx=e=>xU[e];function Vx(e,t){var n;let r=zx(e);return r!==sb&&(r=Bi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const wU={current:!1};function _U({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 CU({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=vm(i.duration)),i.repeatDelay&&(s.repeatDelay=vm(i.repeatDelay)),e&&(s.ease=yU(e)?e.map(Jk):Jk(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 kU(e,t){var n,r;return(r=(n=(Wx(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function EU(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function PU(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),EU(t),_U(e)||(e={...e,...SU(n,t.to)}),{...t,...CU(e)}}function AU(e,t,n,r,o){const i=Wx(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=eE(e,n);s==="none"&&u&&typeof n=="string"?s=Vx(e,n):nE(s)&&typeof n=="string"?s=rE(n):!Array.isArray(n)&&nE(n)&&typeof s=="string"&&(n=rE(s));const c=eE(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"?Xj({...h,...i}):TR({...PU(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=aR(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 nE(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function rE(e){return typeof e=="number"?0:Vx("",e)}function Wx(e,t){return e[t]||e.default||e}function jx(e,t,n,r={}){return wU.current&&(r={type:!1}),t.start(o=>{let i,s;const u=AU(e,t,n,r,o),c=kU(r,e),f=()=>s=u();return c?i=window.setTimeout(f,vm(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const TU=e=>/^\-?\d*\.?\d+$/.test(e),OU=e=>/^0[^.\s]+$/.test(e),$R=1/60*1e3,IU=typeof performance<"u"?()=>performance.now():()=>Date.now(),BR=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(IU()),$R);function RU(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<r;f++){const p=t[f];p(c),s.has(p)&&(u.schedule(p),e())}o=!1,i&&(i=!1,u.process(c))}};return u}const DU=40;let gb=!0,kf=!1,vb=!1;const Kl={delta:0,timestamp:0},Qf=["read","update","preRender","render","postRender"],Ng=Qf.reduce((e,t)=>(e[t]=RU(()=>kf=!0),e),{}),Qo=Qf.reduce((e,t)=>{const n=Ng[t];return e[t]=(r,o=!1,i=!1)=>(kf||NU(),n.schedule(r,o,i)),e},{}),Ef=Qf.reduce((e,t)=>(e[t]=Ng[t].cancel,e),{}),_y=Qf.reduce((e,t)=>(e[t]=()=>Ng[t].process(Kl),e),{}),MU=e=>Ng[e].process(Kl),zR=e=>{kf=!1,Kl.delta=gb?$R:Math.max(Math.min(e-Kl.timestamp,DU),1),Kl.timestamp=e,vb=!0,Qf.forEach(MU),vb=!1,kf&&(gb=!1,BR(zR))},NU=()=>{kf=!0,gb=!0,vb||BR(zR)},yb=()=>Kl;function Ux(e,t){e.indexOf(t)===-1&&e.push(t)}function Hx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bc{constructor(){this.subscriptions=[]}add(t){return Ux(this.subscriptions,t),()=>Hx(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<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const FU=e=>!isNaN(parseFloat(e));class LU{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Bc,this.velocityUpdateSubscribers=new Bc,this.renderSubscribers=new Bc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=yb();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,Qo.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=()=>Qo.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=FU(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?OR(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 lu(e){return new LU(e)}const VR=e=>t=>t.test(e),$U={test:e=>e==="auto",parse:e=>e},WR=[zs,Re,Zo,sa,dW,fW,$U],cc=e=>WR.find(VR(e)),BU=[...WR,Hn,Bi],zU=e=>BU.find(VR(e));function VU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function WU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Fg(e,t,n){const r=e.getProps();return iR(r,t,n!==void 0?n:r.custom,VU(e),WU(e))}function jU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lu(n))}function UU(e,t){const n=Fg(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=aR(i[s]);jU(e,s,u)}}function HU(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;u<s;u++){const c=i[u],f=t[c];let p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(o=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&o!==void 0?o:t[c]),p!=null&&(typeof p=="string"&&(TU(p)||OU(p))?p=parseFloat(p):!zU(p)&&Bi.test(f)&&(p=Vx(c,f)),e.addValue(c,lu(p)),n[c]===void 0&&(n[c]=p),e.setBaseTarget(c,p))}}function GU(e,t){return t?(t[e]||t.default||t).from:void 0}function qU(e,t,n){var r;const o={};for(const i in e){const s=GU(i,t);o[i]=s!==void 0?s:(r=n.getValue(i))===null||r===void 0?void 0:r.get()}return o}function ym(e){return Boolean(ri(e)&&e.add)}function KU(e,t,n={}){e.notifyAnimationStart(t);let r;if(Array.isArray(t)){const o=t.map(i=>bb(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=bb(e,t,n);else{const o=typeof t=="function"?Fg(e,t,n.custom):t;r=jR(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function bb(e,t,n={}){var r;const o=Fg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>jR(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 YU(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 jR(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&&ZU(h,m))continue;let S={delay:n,...s};e.shouldReduceMotion&&Kf.has(m)&&(S={...S,type:!1,delay:0});let k=jx(m,v,y,S);ym(f)&&(f.add(m),k=k.then(()=>f.remove(m))),p.push(k)}return Promise.all(p).then(()=>{u&&UU(e,u)})}function YU(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(XU).forEach((f,p)=>{s.push(bb(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function XU(e,t){return e.sortNodePosition(t)}function ZU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const Gx=[wt.Animate,wt.InView,wt.Focus,wt.Hover,wt.Tap,wt.Drag,wt.Exit],QU=[...Gx].reverse(),JU=Gx.length;function eH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>KU(e,n,r)))}function tH(e){let t=eH(e);const n=rH();let r=!0;const o=(c,f)=>{const p=Fg(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 S={},k=1/0;for(let b=0;b<JU;b++){const w=QU[b],P=n[w],O=(p=h[w])!==null&&p!==void 0?p:m[w],M=bf(O),N=w===f?P.isActive:null;N===!1&&(k=b);let V=O===m[w]&&O!==h[w]&&M;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),P.protectedKeys={...S},!P.isActive&&N===null||!O&&!P.prevProp||Pg(O)||typeof O=="boolean")continue;const K=nH(P.prevProp,O);let W=K||w===f&&P.isActive&&!V&&M||b>k&&M;const te=Array.isArray(O)?O:[O];let xe=te.reduce(o,{});N===!1&&(xe={});const{prevResolvedValues:fe={}}=P,we={...fe,...xe},Ce=ve=>{W=!0,y.delete(ve),P.needsAnimating[ve]=!0};for(const ve in we){const Pe=xe[ve],j=fe[ve];S.hasOwnProperty(ve)||(Pe!==j?wf(Pe)&&wf(j)?!LR(Pe,j)||K?Ce(ve):P.protectedKeys[ve]=!0:Pe!==void 0?Ce(ve):y.add(ve):Pe!==void 0&&y.has(ve)?Ce(ve):P.protectedKeys[ve]=!0)}P.prevProp=O,P.prevResolvedValues=xe,P.isActive&&(S={...S,...xe}),r&&e.blockInitialAnimation&&(W=!1),W&&!V&&v.push(...te.map(ve=>({animation:ve,options:{type:w,...c}})))}if(y.size){const b={};y.forEach(w=>{const P=e.getBaseTarget(w);P!==void 0&&(b[w]=P)}),v.push({animation:b})}let x=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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 nH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!LR(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rH(){return{[wt.Animate]:is(!0),[wt.InView]:is(),[wt.Hover]:is(),[wt.Tap]:is(),[wt.Drag]:is(),[wt.Focus]:is(),[wt.Exit]:is()}}const oH={animation:xa(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=tH(e)),Pg(t)&&_.exports.useEffect(()=>t.subscribe(e),[t])}),exit:xa(e=>{const{custom:t,visualElement:n}=e,[r,o]=Bx(),i=_.exports.useContext(Su);_.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(wt.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class UR{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=ky(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=$x(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=yb();this.history.push({...m,timestamp:v});const{onStart:y,onMove:S}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=Cy(p,this.transformPagePoint),lR(f)&&f.buttons===0){this.handlePointerUp(f,p);return}Qo.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=ky(Cy(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},uR(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=Ox(t),i=Cy(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=yb();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ky(i,this.history)),this.removeListeners=Rg(Gl(window,"pointermove",this.handlePointerMove),Gl(window,"pointerup",this.handlePointerUp),Gl(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ef.update(this.updatePoint)}}function Cy(e,t){return t?{point:t(e.point)}:e}function oE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ky({point:e},t){return{point:e,delta:oE(e,HR(t)),offset:oE(e,iH(t)),velocity:aH(t,.1)}}function iH(e){return e[0]}function HR(e){return e[e.length-1]}function aH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=HR(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>vm(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 Or(e){return e.max-e.min}function iE(e,t=0,n=.01){return $x(e,t)<n}function aE(e,t,n,r=.5){e.origin=r,e.originPoint=jt(t.min,t.max,e.origin),e.scale=Or(n)/Or(t),(iE(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jt(n.min,n.max,e.origin)-e.originPoint,(iE(e.translate)||isNaN(e.translate))&&(e.translate=0)}function zc(e,t,n,r){aE(e.x,t.x,n.x,r?.originX),aE(e.y,t.y,n.y,r?.originY)}function sE(e,t,n){e.min=n.min+t.min,e.max=e.min+Or(t)}function sH(e,t,n){sE(e.x,t.x,n.x),sE(e.y,t.y,n.y)}function lE(e,t,n){e.min=t.min-n.min,e.max=e.min+Or(t)}function Vc(e,t,n){lE(e.x,t.x,n.x),lE(e.y,t.y,n.y)}function lH(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?jt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?jt(n,e,r.max):Math.min(e,n)),e}function uE(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 uH(e,{top:t,left:n,bottom:r,right:o}){return{x:uE(e.x,n,o),y:uE(e.y,t,r)}}function cE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function cH(e,t){return{x:cE(e.x,t.x),y:cE(e.y,t.y)}}function fH(e,t){let n=.5;const r=Or(e),o=Or(t);return o>r?n=_f(t.min,t.max-r,e.min):r>o&&(n=_f(e.min,e.max-o,t.min)),hm(0,1,n)}function dH(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 Sb=.35;function pH(e=Sb){return e===!1?e=0:e===!0&&(e=Sb),{x:fE(e,"left","right"),y:fE(e,"top","bottom")}}function fE(e,t,n){return{min:dE(e,t),max:dE(e,n)}}function dE(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const pE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wc=()=>({x:pE(),y:pE()}),hE=()=>({min:0,max:0}),bn=()=>({x:hE(),y:hE()});function $o(e){return[e("x"),e("y")]}function GR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mH(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 Ey(e){return e===void 0||e===1}function qR({scale:e,scaleX:t,scaleY:n}){return!Ey(e)||!Ey(t)||!Ey(n)}function la(e){return qR(e)||mE(e.x)||mE(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function mE(e){return e&&e!=="0%"}function bm(e,t,n){const r=e-n,o=t*r;return n+o}function gE(e,t,n,r,o){return o!==void 0&&(e=bm(e,o,r)),bm(e,n,r)+t}function xb(e,t=0,n=1,r,o){e.min=gE(e.min,t,n,r,o),e.max=gE(e.max,t,n,r,o)}function KR(e,{x:t,y:n}){xb(e.x,t.translate,t.scale,t.originPoint),xb(e.y,n.translate,n.scale,n.originPoint)}function gH(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<s;f++)u=n[f],c=u.projectionDelta,((i=(o=u.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ll(e,{x:-u.scroll.x,y:-u.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,KR(e,c)),r&&la(u.latestValues)&&Ll(e,u.latestValues))}function pa(e,t){e.min=e.min+t,e.max=e.max+t}function vE(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=jt(e.min,e.max,i);xb(e,t[n],t[r],s,t.scale)}const vH=["x","scaleX","originX"],yH=["y","scaleY","originY"];function Ll(e,t){vE(e.x,t,vH),vE(e.y,t,yH)}function YR(e,t){return GR(mH(e.getBoundingClientRect(),t))}function bH(e,t,n){const r=YR(e,n),{scroll:o}=t;return o&&(pa(r.x,o.x),pa(r.y,o.y)),r}const SH=new WeakMap;class xH{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=u=>{this.stopAnimation(),n&&this.snapToCursor(Ox(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=pR(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),$o(v=>{var y,S;let k=this.getAxisMotionValue(v).get()||0;if(Zo.test(k)){const x=(S=(y=this.visualElement.projection)===null||y===void 0?void 0:y.layout)===null||S===void 0?void 0:S.actual[v];x&&(k=Or(x)*(parseFloat(k)/100))}this.originPoint[v]=k}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(wt.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=wH(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 UR(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(wt.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!$p(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lH(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&&Fl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=uH(r.actual,t):this.constraints=!1,this.elastic=pH(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$o(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=dH(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fl(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=bH(r,o.root,this.visualElement.getTransformPagePoint());let s=cH(o.layout.actual,i);if(n){const u=n(hH(s));this.hasMutatedConstraints=!!u,u&&(s=GR(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=$o(p=>{var h;if(!$p(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,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,S)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jx(t,r,0,n)}stopAnimation(){$o(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){$o(n=>{const{drag:r}=this.getProps();if(!$p(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]-jt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Fl(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$o(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=fH({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(),$o(u=>{if(!$p(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(jt(f,p,i[u]))})}addListeners(){var t;SH.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=Gl(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Fl(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=Og(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&($o(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=Sb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function $p(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function _H(e){const{dragControls:t,visualElement:n}=e,r=Tg(()=>new xH(n));_.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),_.exports.useEffect(()=>r.addListeners(),[r])}function CH({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(null),{transformPagePoint:u}=_.exports.useContext(wx),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};_.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new UR(p,c,{transformPagePoint:u})}dm(o,"pointerdown",i&&f),Ix(()=>s.current&&s.current.end())}const kH={pan:xa(CH),drag:xa(_H)},wb={current:null},XR={current:!1};function EH(){if(XR.current=!0,!!Bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wb.current=e.matches;e.addListener(t),t()}else wb.current=!1}const Bp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function PH(){const e=Bp.map(()=>new Bc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{Bp.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"+Bp[o]]=i=>r.add(i),n["notify"+Bp[o]]=(...i)=>r.notify(...i)}),n}function AH(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ri(i))e.addValue(o,i),ym(r)&&r.add(o);else if(ri(s))e.addValue(o,lu(i)),ym(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,lu(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const ZR=Object.keys(Sf),TH=ZR.length,QR=({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:S},k={})=>{let x=!1;const{latestValues:b,renderState:w}=y;let P;const O=PH(),M=new Map,N=new Map;let V={};const K={...b};let W;function te(){!P||!x||(xe(),i(P,w,h.style,X.projection))}function xe(){t(X,w,b,k,h)}function fe(){O.notifyUpdate(b)}function we(q,R){const H=R.onChange(se=>{b[q]=se,h.onUpdate&&Qo.update(fe,!1,!0)}),ae=R.onRenderRequest(X.scheduleRender);N.set(q,()=>{H(),ae()})}const{willChange:Ce,...ve}=f(h);for(const q in ve){const R=ve[q];b[q]!==void 0&&ri(R)&&(R.set(b[q],!1),ym(Ce)&&Ce.add(q))}const Pe=Ag(h),j=BI(h),X={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){x=!0,P=X.current=q,X.projection&&X.projection.mount(q),j&&p&&!Pe&&(W=p?.addVariantChild(X)),M.forEach((R,H)=>we(H,R)),XR.current||EH(),X.shouldReduceMotion=S==="never"?!1:S==="always"?!0:wb.current,p?.children.add(X),X.setProps(h)},unmount(){var q;(q=X.projection)===null||q===void 0||q.unmount(),Ef.update(fe),Ef.render(te),N.forEach(R=>R()),W?.(),p?.children.delete(X),O.clearAllListeners(),P=void 0,x=!1},loadFeatures(q,R,H,ae,se,he){const ge=[];for(let Ee=0;Ee<TH;Ee++){const ce=ZR[Ee],{isEnabled:Ae,Component:Me}=Sf[ce];Ae(q)&&Me&&ge.push(_.exports.createElement(Me,{key:ce,...q,visualElement:X}))}if(!X.projection&&se){X.projection=new se(ae,X.getLatestValues(),p&&p.projection);const{layoutId:Ee,layout:ce,drag:Ae,dragConstraints:Me,layoutScroll:mt}=q;X.projection.setOptions({layoutId:Ee,layout:ce,alwaysMeasureLayout:Boolean(Ae)||Me&&Fl(Me),visualElement:X,scheduleRender:()=>X.scheduleRender(),animationType:typeof ce=="string"?ce:"both",initialPromotionConfig:he,layoutScroll:mt})}return ge},addVariantChild(q){var R;const H=X.getClosestVariantNode();if(H)return(R=H.variantChildren)===null||R===void 0||R.add(q),()=>H.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(X.getInstance(),q.getInstance())},getClosestVariantNode:()=>j?X:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>P,getStaticValue:q=>b[q],setStaticValue:(q,R)=>b[q]=R,getLatestValues:()=>b,setVisibility(q){X.isVisible!==q&&(X.isVisible=q,X.scheduleRender())},makeTargetAnimatable(q,R=!0){return r(X,q,h,R)},measureViewportBox(){return o(P,h)},addValue(q,R){X.hasValue(q)&&X.removeValue(q),M.set(q,R),b[q]=R.get(),we(q,R)},removeValue(q){var R;M.delete(q),(R=N.get(q))===null||R===void 0||R(),N.delete(q),delete b[q],u(q,w)},hasValue:q=>M.has(q),getValue(q,R){let H=M.get(q);return H===void 0&&R!==void 0&&(H=lu(R),X.addValue(q,H)),H},forEachValue:q=>M.forEach(q),readValue:q=>b[q]!==void 0?b[q]:s(P,q,k),setBaseTarget(q,R){K[q]=R},getBaseTarget(q){if(n){const R=n(h,q);if(R!==void 0&&!ri(R))return R}return K[q]},...O,build(){return xe(),w},scheduleRender(){Qo.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&X.scheduleRender(),h=q,O.updatePropListeners(q),V=AH(X,f(h),V)},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(!Pe){const H=p?.getVariantContext()||{};return h.initial!==void 0&&(H.initial=h.initial),H}const R={};for(let H=0;H<OH;H++){const ae=JR[H],se=h[ae];(bf(se)||se===!1)&&(R[ae]=se)}return R}};return X},JR=["initial",...Gx],OH=JR.length;function _b(e){return typeof e=="string"&&e.startsWith("var(--")}const e3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function IH(e){const t=e3.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Cb(e,t,n=1){const[r,o]=IH(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():_b(o)?Cb(o,t,n+1):o}function RH(e,{...t},n){const r=e.getInstance();if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const i=o.get();if(!_b(i))return;const s=Cb(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!_b(i))continue;const s=Cb(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const DH=new Set(["width","height","top","left","right","bottom","x","y"]),t3=e=>DH.has(e),MH=e=>Object.keys(e).some(t3),n3=(e,t)=>{e.set(t,!1),e.set(t)},yE=e=>e===zs||e===Re;var bE;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(bE||(bE={}));const SE=(e,t)=>parseFloat(e.split(", ")[t]),xE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return SE(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?SE(i[1],e):0}},NH=new Set(["x","y","z"]),FH=cm.filter(e=>!NH.has(e));function LH(e){const t=[];return FH.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 wE={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:xE(4,13),y:xE(5,14)},$H=(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]=wE[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);n3(p,u[f]),e[f]=wE[f](c,i)}),e},BH=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(t3);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=cc(p);const m=t[c];let v;if(wf(m)){const y=m.length,S=m[0]===null?1:0;p=m[S],h=cc(p);for(let k=S;k<y;k++)v?pm(cc(m[k])===v):v=cc(m[k])}else v=cc(m);if(h!==v)if(yE(h)&&yE(v)){const y=f.get();typeof y=="string"&&f.set(parseFloat(y)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&v===Re&&(t[c]=m.map(parseFloat))}else h?.transform&&v?.transform&&(p===0||m===0)?p===0?f.set(v.transform(p)):t[c]=h.transform(m):(s||(i=LH(e),s=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:t[c],n3(f,m))}),u.length){const c=u.indexOf("height")>=0?window.pageYOffset:null,f=$H(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Bs&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function zH(e,t,n,r){return MH(t)?BH(e,t,n,r):{target:t,transitionEnd:r}}const VH=(e,t,n,r)=>{const o=RH(e,t,r);return t=o.target,r=o.transitionEnd,zH(e,t,n,r)};function WH(e){return window.getComputedStyle(e)}const r3={treeType:"dom",readValueFromInstance(e,t){if(Kf.has(t)){const n=zx(t);return n&&n.default||0}else{const n=WH(e),r=(WI(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 YR(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=qU(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){HU(e,r,s);const u=VH(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:Tx,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Ex(t,n,r,o.transformTemplate)},render:tR},jH=QR(r3),UH=QR({...r3,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Kf.has(t)?((n=zx(t))===null||n===void 0?void 0:n.default)||0:(t=nR.has(t)?t:eR(t),e.getAttribute(t))},scrapeMotionValuesFromProps:oR,build(e,t,n,r,o){Ax(t,n,r,o.transformTemplate)},render:rR}),HH=(e,t)=>Cx(e)?UH(t,{enableHardwareAcceleration:!1}):jH(t,{enableHardwareAcceleration:!0});function _E(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Re.test(e))e=parseFloat(e);else return e;const n=_E(e,t.target.x),r=_E(e,t.target.y);return`${n}% ${r}%`}},CE="_$css",GH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(e3,v=>(i.push(v),CE)));const s=Bi.parse(e);if(s.length>5)return r;const u=Bi.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=jt(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(CE,()=>{const y=i[v];return v++,y})}return m}};class qH extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;iW(YH),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()})),Fc.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()||Qo.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 KH(e){const[t,n]=Bx(),r=_.exports.useContext(_x);return E(qH,{...e,layoutGroup:r,switchLayoutGroup:_.exports.useContext(zI),isPresent:t,safeToRemove:n})}const YH={borderRadius:{...fc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomLeftRadius:fc,borderBottomRightRadius:fc,boxShadow:GH},XH={measureLayout:KH};function ZH(e,t,n={}){const r=ri(e)?e:lu(e);return jx("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const o3=["TopLeft","TopRight","BottomLeft","BottomRight"],QH=o3.length,kE=e=>typeof e=="string"?parseFloat(e):e,EE=e=>typeof e=="number"||Re.test(e);function JH(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=jt(0,(s=n.opacity)!==null&&s!==void 0?s:1,eG(r)),e.opacityExit=jt((u=t.opacity)!==null&&u!==void 0?u:1,0,tG(r))):i&&(e.opacity=jt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;p<QH;p++){const h=`border${o3[p]}Radius`;let m=PE(t,h),v=PE(n,h);if(m===void 0&&v===void 0)continue;m||(m=0),v||(v=0),m===0||v===0||EE(m)===EE(v)?(e[h]=Math.max(jt(kE(m),kE(v),r),0),(Zo.test(v)||Zo.test(m))&&(e[h]+="%")):e[h]=v}(t.rotate||n.rotate)&&(e.rotate=jt(t.rotate||0,n.rotate||0,r))}function PE(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const eG=i3(0,.5,Fx),tG=i3(.5,.95,Mx);function i3(e,t,n){return r=>r<e?0:r>t?1:n(_f(e,t,r))}function AE(e,t){e.min=t.min,e.max=t.max}function mo(e,t){AE(e.x,t.x),AE(e.y,t.y)}function TE(e,t,n,r,o){return e-=t,e=bm(e,1/n,r),o!==void 0&&(e=bm(e,1/o,r)),e}function nG(e,t=0,n=1,r=.5,o,i=e,s=e){if(Zo.test(t)&&(t=parseFloat(t),t=jt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=jt(i.min,i.max,r);e===i&&(u-=t),e.min=TE(e.min,t,n,u,o),e.max=TE(e.max,t,n,u,o)}function OE(e,t,[n,r,o],i,s){nG(e,t[n],t[r],t[o],t.scale,i,s)}const rG=["x","scaleX","originX"],oG=["y","scaleY","originY"];function IE(e,t,n,r){OE(e.x,t,rG,n?.x,r?.x),OE(e.y,t,oG,n?.y,r?.y)}function RE(e){return e.translate===0&&e.scale===1}function a3(e){return RE(e.x)&&RE(e.y)}function s3(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 DE(e){return Or(e.x)/Or(e.y)}function iG(e,t,n=.01){return $x(e,t)<=n}class aG{constructor(){this.members=[]}add(t){Ux(this.members,t),t.scheduleRender()}remove(t){if(Hx(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 sG="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ME(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===sG?"none":i}const lG=(e,t)=>e.depth-t.depth;class uG{constructor(){this.children=[],this.isDirty=!1}add(t){Ux(this.children,t),this.isDirty=!0}remove(t){Hx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lG),this.isDirty=!1,this.children.forEach(t)}}const NE=["","X","Y","Z"],FE=1e3;function l3({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(mG),this.nodes.forEach(gG)},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;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new uG)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Bc),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const c=this.eventHandlers.get(s);c?.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,u){this.potentialNodes.set(s,u)}mount(s,u=!1){var c;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;const{layoutId:f,layout:p,visualElement:h}=this.options;if(h&&!h.getInstance()&&h.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),u&&(p||f)&&(this.isLayoutDirty=!0),e){let m;const v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Fc.hasAnimatedSinceResize&&(Fc.hasAnimatedSinceResize=!1,this.nodes.forEach(hG))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:S})=>{var k,x,b,w,P;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=(x=(k=this.options.transition)!==null&&k!==void 0?k:h.getDefaultTransition())!==null&&x!==void 0?x:xG,{onLayoutAnimationStart:M,onLayoutAnimationComplete:N}=h.getProps(),V=!this.targetLayout||!s3(this.targetLayout,S)||y,K=!v&&y;if(((b=this.resumeFrom)===null||b===void 0?void 0:b.instance)||K||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,K);const W={...Wx(O,"layout"),onPlay:M,onComplete:N};h.shouldReduceMotion&&(W.delay=0,W.type=!1),this.startAnimation(W)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((P=(w=this.options).onExitComplete)===null||P===void 0||P.call(w));this.targetLayout=S})}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,Ef.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(vG))}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.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll()}const{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;const m=(f=this.options.visualElement)===null||f===void 0?void 0:f.getProps().transformTemplate;this.prevTransformTemplateValue=m?.(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(LE);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(wG),this.potentialNodes.clear()),this.nodes.forEach(pG),this.nodes.forEach(cG),this.nodes.forEach(fG),this.clearAllSnapshots(),_y.update(),_y.preRender(),_y.render())}clearAllSnapshots(){this.nodes.forEach(dG),this.sharedNodes.forEach(yG)}scheduleUpdateProjection(){Qo.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Qo.postRender(()=>{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));VE(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<this.path.length;f++)this.path[f].updateScroll();const u=this.measure();VE(u);const c=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=bn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,c?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=n(this.instance))}resetTransform(){var s;if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!a3(this.projectionDelta),f=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=f?.(this.latestValues,""),h=p!==this.prevTransformTemplateValue;u&&(c||la(this.latestValues)||h)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:s}=this.options;if(!s)return bn();const u=s.measureViewportBox(),{scroll:c}=this.root;return c&&(pa(u.x,c.x),pa(u.y,c.y)),u}removeElementScroll(s){const u=bn();mo(u,s);for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:p,options:h,isScrollRoot:m}=f;if(f!==this.root&&p&&h.layoutScroll){if(m){mo(u,s);const{scroll:v}=this.root;v&&(pa(u.x,-v.x),pa(u.y,-v.y))}pa(u.x,p.x),pa(u.y,p.y)}}return u}applyTransform(s,u=!1){const c=bn();mo(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ll(c,{x:-p.scroll.x,y:-p.scroll.y}),la(p.latestValues)&&Ll(c,p.latestValues)}return la(this.latestValues)&&Ll(c,this.latestValues),c}removeTransform(s){var u;const c=bn();mo(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!la(p.latestValues))continue;qR(p.latestValues)&&p.updateSnapshot();const h=bn(),m=p.measure();mo(h,m),IE(c,p.latestValues,(u=p.snapshot)===null||u===void 0?void 0:u.layout,h)}return la(this.latestValues)&&IE(c,this.latestValues),c}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection()}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;const{layout:u,layoutId:c}=this.options;!this.layout||!(u||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=bn(),this.relativeTargetOrigin=bn(),Vc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),mo(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=bn(),this.targetWithTransforms=bn()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?sH(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):mo(this.target,this.layout.actual),KR(this.target,this.targetDelta)):mo(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=bn(),this.relativeTargetOrigin=bn(),Vc(this.relativeTargetOrigin,this.target,this.relativeParent.target),mo(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||la(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;const f=this.getLead();mo(this.layoutCorrected,this.layout.actual),gH(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==f);const{target:p}=f;if(!p)return;this.projectionDelta||(this.projectionDelta=Wc(),this.projectionDeltaWithTransform=Wc());const h=this.treeScale.x,m=this.treeScale.y,v=this.projectionTransform;zc(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=ME(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u,c,f;(c=(u=this.options).scheduleRender)===null||c===void 0||c.call(u),s&&((f=this.getStack())===null||f===void 0||f.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){var c;const f=this.snapshot,p=f?.latestValues||{},h={...this.latestValues},m=Wc();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!u;const v=bn(),y=f?.isShared,S=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,k=Boolean(y&&!S&&this.options.crossfade===!0&&!this.path.some(SG));this.animationProgress=0,this.mixTargetDelta=x=>{var b;const w=x/1e3;$E(m.x,s.x,w),$E(m.y,s.y,w),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((b=this.relativeParent)===null||b===void 0?void 0:b.layout)&&(Vc(v,this.layout.actual,this.relativeParent.layout.actual),bG(this.relativeTarget,this.relativeTargetOrigin,v,w)),y&&(this.animationValues=h,JH(h,p,this.latestValues,w,k,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},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&&(Ef.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qo.update(()=>{Fc.hasAnimatedSinceResize=!0,this.currentAnimation=ZH(0,FE,{...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,FE),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&&u3(this.options.animationType,this.layout.actual,f.actual)){c=this.target||bn();const h=Or(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Or(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}mo(u,c),Ll(u,p),zc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new aG),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<NE.length;f++){const p=NE[f],h="rotate"+p;!s.getStaticValue(h)||(u=!0,c[h]=s.getStaticValue(h),s.setStaticValue(h,0))}if(!!u){s?.syncRender();for(const f in c)s.setStaticValue(f,c[f]);s.scheduleRender()}}getProjectionStyles(s={}){var u,c,f;const p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};const h=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=yh(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const k={};return this.options.layoutId&&(k.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,k.pointerEvents=yh(s.pointerEvents)||""),this.hasProjected&&!la(this.latestValues)&&(k.transform=h?h({},""):"none",this.hasProjected=!1),k}const v=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=ME(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));const{x:y,y:S}=this.projectionDelta;p.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?p.opacity=m===this?(f=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const k in um){if(v[k]===void 0)continue;const{correct:x,applyTo:b}=um[k],w=x(v[k],m);if(b){const P=b.length;for(let O=0;O<P;O++)p[b[O]]=w}else p[k]=w}return this.options.layoutId&&(p.pointerEvents=m===this?yh(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(LE),this.root.sharedNodes.clear()}}}function cG(e){e.updateLayout()}function fG(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"?$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Or(v);v.min=i[m].min,v.max=v.min+y}):u3(u,o.layout,i)&&$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Or(i[m]);v.max=v.min+y});const c=Wc();zc(c,i,o.layout);const f=Wc();o.isShared?zc(f,e.applyTransform(s,!0),o.measured):zc(f,i,o.layout);const p=!a3(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=bn();Vc(y,o.layout,m.layout);const S=bn();Vc(S,i,v.actual),s3(y,S)||(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 dG(e){e.clearSnapshot()}function LE(e){e.clearMeasurements()}function pG(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function hG(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mG(e){e.resolveTargetDelta()}function gG(e){e.calcProjection()}function vG(e){e.resetRotation()}function yG(e){e.removeLeadSnapshot()}function $E(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function BE(e,t,n,r){e.min=jt(t.min,n.min,r),e.max=jt(t.max,n.max,r)}function bG(e,t,n,r){BE(e.x,t.x,n.x,r),BE(e.y,t.y,n.y,r)}function SG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xG={duration:.45,ease:[.4,0,.1,1]};function wG(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 zE(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function VE(e){zE(e.x),zE(e.y)}function u3(e,t,n){return e==="position"||e==="preserve-aspect"&&!iG(DE(t),DE(n))}const _G=l3({attachResizeListener:(e,t)=>Og(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Py={current:void 0},CG=l3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Py.current){const e=new _G(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Py.current=e}return Py.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),kG={...oH,...hU,...kH,...XH},Ao=rW((e,t)=>WW(e,t,kG,HH,CG));function c3(){const e=_.exports.useRef(!1);return lm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function EG(){const e=c3(),[t,n]=_.exports.useState(0),r=_.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.exports.useCallback(()=>Qo.postRender(r),[r]),t]}class PG extends _.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 AG({children:e,isPresent:t}){const n=_.exports.useId(),r=_.exports.useRef(null),o=_.exports.useRef({width:0,height:0,top:0,left:0});return _.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]),E(PG,{isPresent:t,childRef:r,sizeRef:o,children:_.exports.cloneElement(e,{ref:r})})}const Ay=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Tg(TG),c=_.exports.useId(),f=_.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 _.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),_.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=E(AG,{isPresent:n,children:e})),E(Su.Provider,{value:f,children:e})};function TG(){return new Map}const xl=e=>e.key||"";function OG(e,t){e.forEach(n=>{const r=xl(n);t.set(r,n)})}function IG(e){const t=[];return _.exports.Children.forEach(e,n=>{_.exports.isValidElement(n)&&t.push(n)}),t}const Ui=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",FR(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=EG();const c=_.exports.useContext(_x).forceRender;c&&(u=c);const f=c3(),p=IG(e);let h=p;const m=new Set,v=_.exports.useRef(h),y=_.exports.useRef(new Map).current,S=_.exports.useRef(!0);if(lm(()=>{S.current=!1,OG(p,y),v.current=h}),Ix(()=>{S.current=!0,y.clear(),m.clear()}),S.current)return E(fr,{children:h.map(w=>E(Ay,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:w},xl(w)))});h=[...h];const k=v.current.map(xl),x=p.map(xl),b=k.length;for(let w=0;w<b;w++){const P=k[w];x.indexOf(P)===-1&&m.add(P)}return s==="wait"&&m.size&&(h=[]),m.forEach(w=>{if(x.indexOf(w)!==-1)return;const P=y.get(w);if(!P)return;const O=k.indexOf(w),M=()=>{y.delete(w),m.delete(w);const N=v.current.findIndex(V=>V.key===w);if(v.current.splice(N,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(O,0,E(Ay,{isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:i,mode:s,children:P},xl(P)))}),h=h.map(w=>{const P=w.key;return m.has(P)?w:E(Ay,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:w},xl(w))}),NR!=="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.`),E(fr,{children:m.size?h:h.map(w=>_.exports.cloneElement(w))})};var Jf=(...e)=>e.filter(Boolean).join(" ");function RG(){return!1}var DG=e=>{const{condition:t,message:n}=e;t&&RG()&&console.warn(n)},Ss={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},dc={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 kb(e){switch(e?.direction??"right"){case"right":return dc.slideRight;case"left":return dc.slideLeft;case"bottom":return dc.slideDown;case"top":return dc.slideUp;default:return dc.slideRight}}var ks={enter:{duration:.2,ease:Ss.easeOut},exit:{duration:.1,ease:Ss.easeIn}},ko={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},MG=e=>e!=null&&parseInt(e.toString(),10)>0,WE={exit:{height:{duration:.2,ease:Ss.ease},opacity:{duration:.3,ease:Ss.ease}},enter:{height:{duration:.3,ease:Ss.ease},opacity:{duration:.4,ease:Ss.ease}}},NG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:MG(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??ko.exit(WE.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??ko.enter(WE.enter,o)})},f3=_.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]=_.exports.useState(!1);_.exports.useEffect(()=>{const b=setTimeout(()=>{v(!0)});return()=>clearTimeout(b)},[]),DG({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(i.toString())>0,S={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"}}},k=r?n:!0,x=n||r?"enter":"exit";return E(Ui,{initial:!1,custom:S,children:k&&ee.createElement(Ao.div,{ref:t,...h,className:Jf("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:S,variants:NG,initial:r?"exit":!1,animate:x,exit:"exit"})})});f3.displayName="Collapse";var FG={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??ko.enter(ks.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??ko.exit(ks.exit,n),transitionEnd:t?.exit})},d3={initial:"exit",animate:"enter",exit:"exit",variants:FG},LG=_.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 E(Ui,{custom:m,children:h&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-fade",i),custom:m,...d3,animate:p,...f})})});LG.displayName="Fade";var $G={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??ko.exit(ks.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??ko.enter(ks.enter,n),transitionEnd:e?.enter})},p3={initial:"exit",animate:"enter",exit:"exit",variants:$G},BG=_.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 E(Ui,{custom:y,children:m&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-offset-slide",u),...p3,animate:v,custom:y,...h})})});BG.displayName="ScaleFade";var jE={exit:{duration:.15,ease:Ss.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},zG={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=kb({direction:e});return{...o,transition:t?.exit??ko.exit(jE.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=kb({direction:e});return{...o,transition:n?.enter??ko.enter(jE.enter,r),transitionEnd:t?.enter}}},h3=_.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=kb({direction:r}),v=Object.assign({position:"fixed"},m.position,o),y=i?s&&i:!0,S=s||i?"enter":"exit",k={transitionEnd:f,transition:c,direction:r,delay:p};return E(Ui,{custom:k,children:y&&ee.createElement(Ao.div,{...h,ref:n,initial:"exit",className:Jf("chakra-slide",u),animate:S,exit:"exit",custom:k,variants:zG,style:v})})});h3.displayName="Slide";var VG={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??ko.exit(ks.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??ko.enter(ks.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??ko.exit(ks.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},Eb={initial:"initial",animate:"enter",exit:"exit",variants:VG},WG=_.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",S={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return E(Ui,{custom:S,children:v&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-offset-slide",s),custom:S,...Eb,animate:y,...m})})});WG.displayName="SlideFade";var ed=(...e)=>e.filter(Boolean).join(" ");function jG(){return!1}var Lg=e=>{const{condition:t,message:n}=e;t&&jG()&&console.warn(n)};function Ty(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[UG,$g]=Xt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[HG,qx]=Xt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[GG,Ffe,qG,KG]=WV(),ls=de(function(t,n){const{getButtonProps:r}=qx(),o=r(t,n),i=$g(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return ee.createElement(ie.button,{...o,className:ed("chakra-accordion__button",t.className),__css:s})});ls.displayName="AccordionButton";function YG(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;QG(e),JG(e);const u=qG(),[c,f]=_.exports.useState(-1);_.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=jV({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:k=>{if(v!==null)if(o&&Array.isArray(p)){const x=k?p.concat(v):p.filter(b=>b!==v);h(x)}else k?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[XG,Kx]=Xt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function ZG(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=Kx(),u=_.exports.useRef(null),c=_.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;eq(e);const{register:m,index:v,descendants:y}=KG({disabled:t&&!n}),{isOpen:S,onChange:k}=i(v===-1?null:v);tq({isOpen:S,isDisabled:t});const x=()=>{k?.(!0)},b=()=>{k?.(!1)},w=_.exports.useCallback(()=>{k?.(!S),s(v)},[v,s,S,k]),P=_.exports.useCallback(V=>{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()}}[V.key];W&&(V.preventDefault(),W(V))},[y,v]),O=_.exports.useCallback(()=>{s(v)},[s,v]),M=_.exports.useCallback(function(K={},W=null){return{...K,type:"button",ref:Kn(m,u,W),id:p,disabled:!!t,"aria-expanded":!!S,"aria-controls":h,onClick:Ty(K.onClick,w),onFocus:Ty(K.onFocus,O),onKeyDown:Ty(K.onKeyDown,P)}},[p,t,S,w,O,P,h,m]),N=_.exports.useCallback(function(K={},W=null){return{...K,ref:W,role:"region",id:h,"aria-labelledby":p,hidden:!S}},[p,S,h]);return{isOpen:S,isDisabled:t,isFocusable:n,onOpen:x,onClose:b,getButtonProps:M,getPanelProps:N,htmlProps:o}}function QG(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;Lg({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function JG(e){Lg({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 eq(e){Lg({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 tq(e){Lg({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function us(e){const{isOpen:t,isDisabled:n}=qx(),{reduceMotion:r}=Kx(),o=ed("chakra-accordion__icon",e.className),i=$g(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return E(Po,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:E("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}us.displayName="AccordionIcon";var cs=de(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=ZG(t),c={...$g().container,overflowAnchor:"none"},f=_.exports.useMemo(()=>s,[s]);return ee.createElement(HG,{value:f},ee.createElement(ie.div,{ref:n,...i,className:ed("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});cs.displayName="AccordionItem";var fs=de(function(t,n){const{reduceMotion:r}=Kx(),{getPanelProps:o,isOpen:i}=qx(),s=o(t,n),u=ed("chakra-accordion__panel",t.className),c=$g();r||delete s.hidden;const f=ee.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:E(f3,{in:i,children:f})});fs.displayName="AccordionPanel";var m3=de(function({children:t,reduceMotion:n,...r},o){const i=Fr("Accordion",r),s=bt(r),{htmlProps:u,descendants:c,...f}=YG(s),p=_.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return ee.createElement(GG,{value:c},ee.createElement(XG,{value:p},ee.createElement(UG,{value:i},ee.createElement(ie.div,{ref:o,...u,className:ed("chakra-accordion",r.className),__css:i.root},t))))});m3.displayName="Accordion";var nq=(...e)=>e.filter(Boolean).join(" "),rq=qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Bg=de((e,t)=>{const n=Zn("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=bt(e),f=nq("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${rq} ${i} linear infinite`,...n};return ee.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&ee.createElement(ie.span,{srOnly:!0},r))});Bg.displayName="Spinner";var zg=(...e)=>e.filter(Boolean).join(" ");function oq(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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 iq(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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 UE(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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[aq,sq]=Xt({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[lq,Yx]=Xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),g3={info:{icon:iq,colorScheme:"blue"},warning:{icon:UE,colorScheme:"orange"},success:{icon:oq,colorScheme:"green"},error:{icon:UE,colorScheme:"red"},loading:{icon:Bg,colorScheme:"blue"}};function uq(e){return g3[e].colorScheme}function cq(e){return g3[e].icon}var v3=de(function(t,n){const{status:r="info",addRole:o=!0,...i}=bt(t),s=t.colorScheme??uq(r),u=Fr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return ee.createElement(aq,{value:{status:r}},ee.createElement(lq,{value:u},ee.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:zg("chakra-alert",t.className),__css:c})))});v3.displayName="Alert";var y3=de(function(t,n){const r=Yx(),o={display:"inline",...r.description};return ee.createElement(ie.div,{ref:n,...t,className:zg("chakra-alert__desc",t.className),__css:o})});y3.displayName="AlertDescription";function b3(e){const{status:t}=sq(),n=cq(t),r=Yx(),o=t==="loading"?r.spinner:r.icon;return ee.createElement(ie.span,{display:"inherit",...e,className:zg("chakra-alert__icon",e.className),__css:o},e.children||E(n,{h:"100%",w:"100%"}))}b3.displayName="AlertIcon";var S3=de(function(t,n){const r=Yx();return ee.createElement(ie.div,{ref:n,...t,className:zg("chakra-alert__title",t.className),__css:r.title})});S3.displayName="AlertTitle";function fq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function dq(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=_.exports.useState("pending");_.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=_.exports.useRef(),m=_.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=S=>{v(),p("loaded"),o?.(S)},y.onerror=S=>{v(),p("failed"),i?.(S)},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 Mi(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var pq=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",Sm=de(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return E("img",{width:r,height:o,ref:n,alt:i,...s})});Sm.displayName="NativeImage";var Pf=de(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,S=r!==void 0||o!==void 0,k=f!=null||p||!S,x=dq({...t,ignoreFallback:k}),b=pq(x,m),w={ref:n,objectFit:c,objectPosition:u,...k?y:fq(y,["onError","onLoad"])};return b?o||ee.createElement(ie.img,{as:Sm,className:"chakra-image__placeholder",src:r,...w}):ee.createElement(ie.img,{as:Sm,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",...w})});Pf.displayName="Image";de((e,t)=>ee.createElement(ie.img,{ref:t,as:Sm,className:"chakra-image",...e}));var hq=Object.create,x3=Object.defineProperty,mq=Object.getOwnPropertyDescriptor,w3=Object.getOwnPropertyNames,gq=Object.getPrototypeOf,vq=Object.prototype.hasOwnProperty,_3=(e,t)=>function(){return t||(0,e[w3(e)[0]])((t={exports:{}}).exports,t),t.exports},yq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w3(t))!vq.call(e,o)&&o!==n&&x3(e,o,{get:()=>t[o],enumerable:!(r=mq(t,o))||r.enumerable});return e},bq=(e,t,n)=>(n=e!=null?hq(gq(e)):{},yq(t||!e||!e.__esModule?x3(n,"default",{value:e,enumerable:!0}):n,e)),Sq=_3({"../../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(){}},S=Object.assign,k={};function x(R,H,ae){this.props=R,this.context=H,this.refs=k,this.updater=ae||y}x.prototype.isReactComponent={},x.prototype.setState=function(R,H){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,H,"setState")},x.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function b(){}b.prototype=x.prototype;function w(R,H,ae){this.props=R,this.context=H,this.refs=k,this.updater=ae||y}var P=w.prototype=new b;P.constructor=w,S(P,x.prototype),P.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,N={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function K(R,H,ae){var se,he={},ge=null,Ee=null;if(H!=null)for(se in H.ref!==void 0&&(Ee=H.ref),H.key!==void 0&&(ge=""+H.key),H)M.call(H,se)&&!V.hasOwnProperty(se)&&(he[se]=H[se]);var ce=arguments.length-2;if(ce===1)he.children=ae;else if(1<ce){for(var Ae=Array(ce),Me=0;Me<ce;Me++)Ae[Me]=arguments[Me+2];he.children=Ae}if(R&&R.defaultProps)for(se in ce=R.defaultProps,ce)he[se]===void 0&&(he[se]=ce[se]);return{$$typeof:t,type:R,key:ge,ref:Ee,props:he,_owner:N.current}}function W(R,H){return{$$typeof:t,type:R.type,key:H,ref:R.ref,props:R.props,_owner:R._owner}}function te(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function xe(R){var H={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ae){return H[ae]})}var fe=/\/+/g;function we(R,H){return typeof R=="object"&&R!==null&&R.key!=null?xe(""+R.key):H.toString(36)}function Ce(R,H,ae,se,he){var ge=typeof R;(ge==="undefined"||ge==="boolean")&&(R=null);var Ee=!1;if(R===null)Ee=!0;else switch(ge){case"string":case"number":Ee=!0;break;case"object":switch(R.$$typeof){case t:case n:Ee=!0}}if(Ee)return Ee=R,he=he(Ee),R=se===""?"."+we(Ee,0):se,O(he)?(ae="",R!=null&&(ae=R.replace(fe,"$&/")+"/"),Ce(he,H,ae,"",function(Me){return Me})):he!=null&&(te(he)&&(he=W(he,ae+(!he.key||Ee&&Ee.key===he.key?"":(""+he.key).replace(fe,"$&/")+"/")+R)),H.push(he)),1;if(Ee=0,se=se===""?".":se+":",O(R))for(var ce=0;ce<R.length;ce++){ge=R[ce];var Ae=se+we(ge,ce);Ee+=Ce(ge,H,ae,Ae,he)}else if(Ae=v(R),typeof Ae=="function")for(R=Ae.call(R),ce=0;!(ge=R.next()).done;)ge=ge.value,Ae=se+we(ge,ce++),Ee+=Ce(ge,H,ae,Ae,he);else if(ge==="object")throw H=String(R),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return Ee}function ve(R,H,ae){if(R==null)return R;var se=[],he=0;return Ce(R,se,"","",function(ge){return H.call(ae,ge,he++)}),se}function Pe(R){if(R._status===-1){var H=R._result;H=H(),H.then(function(ae){(R._status===0||R._status===-1)&&(R._status=1,R._result=ae)},function(ae){(R._status===0||R._status===-1)&&(R._status=2,R._result=ae)}),R._status===-1&&(R._status=0,R._result=H)}if(R._status===1)return R._result.default;throw R._result}var j={current:null},X={transition:null},q={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:X,ReactCurrentOwner:N};e.Children={map:ve,forEach:function(R,H,ae){ve(R,function(){H.apply(this,arguments)},ae)},count:function(R){var H=0;return ve(R,function(){H++}),H},toArray:function(R){return ve(R,function(H){return H})||[]},only:function(R){if(!te(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},e.Component=x,e.Fragment=r,e.Profiler=i,e.PureComponent=w,e.StrictMode=o,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,e.cloneElement=function(R,H,ae){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var se=S({},R.props),he=R.key,ge=R.ref,Ee=R._owner;if(H!=null){if(H.ref!==void 0&&(ge=H.ref,Ee=N.current),H.key!==void 0&&(he=""+H.key),R.type&&R.type.defaultProps)var ce=R.type.defaultProps;for(Ae in H)M.call(H,Ae)&&!V.hasOwnProperty(Ae)&&(se[Ae]=H[Ae]===void 0&&ce!==void 0?ce[Ae]:H[Ae])}var Ae=arguments.length-2;if(Ae===1)se.children=ae;else if(1<Ae){ce=Array(Ae);for(var Me=0;Me<Ae;Me++)ce[Me]=arguments[Me+2];se.children=ce}return{$$typeof:t,type:R.type,key:he,ref:ge,props:se,_owner:Ee}},e.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:s,_context:R},R.Consumer=R},e.createElement=K,e.createFactory=function(R){var H=K.bind(null,R);return H.type=R,H},e.createRef=function(){return{current:null}},e.forwardRef=function(R){return{$$typeof:c,render:R}},e.isValidElement=te,e.lazy=function(R){return{$$typeof:h,_payload:{_status:-1,_result:R},_init:Pe}},e.memo=function(R,H){return{$$typeof:p,type:R,compare:H===void 0?null:H}},e.startTransition=function(R){var H=X.transition;X.transition={};try{R()}finally{X.transition=H}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(R,H){return j.current.useCallback(R,H)},e.useContext=function(R){return j.current.useContext(R)},e.useDebugValue=function(){},e.useDeferredValue=function(R){return j.current.useDeferredValue(R)},e.useEffect=function(R,H){return j.current.useEffect(R,H)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(R,H,ae){return j.current.useImperativeHandle(R,H,ae)},e.useInsertionEffect=function(R,H){return j.current.useInsertionEffect(R,H)},e.useLayoutEffect=function(R,H){return j.current.useLayoutEffect(R,H)},e.useMemo=function(R,H){return j.current.useMemo(R,H)},e.useReducer=function(R,H,ae){return j.current.useReducer(R,H,ae)},e.useRef=function(R){return j.current.useRef(R)},e.useState=function(R){return j.current.useState(R)},e.useSyncExternalStore=function(R,H,ae){return j.current.useSyncExternalStore(R,H,ae)},e.useTransition=function(){return j.current.useTransition()},e.version="18.2.0"}}),xq=_3({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=Sq()}}),HE=bq(xq());function Xx(e){return HE.Children.toArray(e).filter(t=>(0,HE.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 Vg=(...e)=>e.filter(Boolean).join(" "),GE=e=>e?"":void 0,[wq,_q]=Xt({strict:!1,name:"ButtonGroupContext"});function Pb(e){const{children:t,className:n,...r}=e,o=_.exports.isValidElement(t)?_.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Vg("chakra-button__icon",n);return ee.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}Pb.displayName="ButtonIcon";function Ab(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=E(Bg,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=Vg("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=_.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return ee.createElement(ie.div,{className:c,...u,__css:p},o)}Ab.displayName="ButtonSpinner";function Cq(e){const[t,n]=_.exports.useState(!e);return{ref:_.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var oi=de((e,t)=>{const n=_q(),r=Zn("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:S,as:k,...x}=bt(e),b=_.exports.useMemo(()=>{const M={...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:M}}},[r,n]),{ref:w,type:P}=Cq(k),O={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return ee.createElement(ie.button,{disabled:o||i,ref:FV(t,w),as:k,type:m??P,"data-active":GE(s),"data-loading":GE(i),__css:b,className:Vg("chakra-button",S),...x},i&&y==="start"&&E(Ab,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||ee.createElement(ie.span,{opacity:0},E(qE,{...O})):E(qE,{...O}),i&&y==="end"&&E(Ab,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});oi.displayName="Button";function qE(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ue(fr,{children:[t&&E(Pb,{marginEnd:o,children:t}),r,n&&E(Pb,{marginStart:o,children:n})]})}var kq=de(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=Vg("chakra-button__group",s),m=_.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}},ee.createElement(wq,{value:m},ee.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});kq.displayName="ButtonGroup";var Zr=de((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=_.exports.isValidElement(u)?_.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return E(oi,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});Zr.displayName="IconButton";var _u=(...e)=>e.filter(Boolean).join(" "),zp=e=>e?"":void 0,Oy=e=>e?!0:void 0;function KE(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Eq,C3]=Xt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Pq,Cu]=Xt({strict:!1,name:"FormControlContext"});function Aq(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=_.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=_.exports.useState(!1),[y,S]=_.exports.useState(!1),[k,x]=_.exports.useState(!1),b=_.exports.useCallback((N={},V=null)=>({id:h,...N,ref:Kn(V,K=>{!K||S(!0)})}),[h]),w=_.exports.useCallback((N={},V=null)=>({...N,ref:V,"data-focus":zp(k),"data-disabled":zp(o),"data-invalid":zp(r),"data-readonly":zp(i),id:N.id??f,htmlFor:N.htmlFor??c}),[c,o,k,r,i,f]),P=_.exports.useCallback((N={},V=null)=>({id:p,...N,ref:Kn(V,K=>{!K||v(!0)}),"aria-live":"polite"}),[p]),O=_.exports.useCallback((N={},V=null)=>({...N,...s,ref:V,role:"group"}),[s]),M=_.exports.useCallback((N={},V=null)=>({...N,ref:V,role:"presentation","aria-hidden":!0,children:N.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!k,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:S,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:P,getRootProps:O,getLabelProps:w,getRequiredIndicatorProps:M}}var La=de(function(t,n){const r=Fr("Form",t),o=bt(t),{getRootProps:i,htmlProps:s,...u}=Aq(o),c=_u("chakra-form-control",t.className);return ee.createElement(Pq,{value:u},ee.createElement(Eq,{value:r},ee.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});La.displayName="FormControl";var Tq=de(function(t,n){const r=Cu(),o=C3(),i=_u("chakra-form__helper-text",t.className);return ee.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});Tq.displayName="FormHelperText";function Zx(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=Qx(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Oy(n),"aria-required":Oy(o),"aria-readonly":Oy(r)}}function Qx(e){const t=Cu(),{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:KE(t?.onFocus,p),onBlur:KE(t?.onBlur,h)}}var[Oq,Iq]=Xt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),Rq=de((e,t)=>{const n=Fr("FormError",e),r=bt(e),o=Cu();return o?.isInvalid?ee.createElement(Oq,{value:n},ee.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:_u("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Rq.displayName="FormErrorMessage";var Dq=de((e,t)=>{const n=Iq(),r=Cu();if(!r?.isInvalid)return null;const o=_u("chakra-form__error-icon",e.className);return E(Po,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:E("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"})})});Dq.displayName="FormErrorIcon";var $a=de(function(t,n){const r=Zn("FormLabel",t),o=bt(t),{className:i,children:s,requiredIndicator:u=E(k3,{}),optionalIndicator:c=null,...f}=o,p=Cu(),h=p?.getLabelProps(f,n)??{ref:n,...f};return ee.createElement(ie.label,{...h,className:_u("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});$a.displayName="FormLabel";var k3=de(function(t,n){const r=Cu(),o=C3();if(!r?.isRequired)return null;const i=_u("chakra-form__required-indicator",t.className);return ee.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});k3.displayName="RequiredIndicator";function xm(e,t){const n=_.exports.useRef(!1),r=_.exports.useRef(!1);_.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var Jx={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Mq=ie("span",{baseStyle:Jx});Mq.displayName="VisuallyHidden";var Nq=ie("input",{baseStyle:Jx});Nq.displayName="VisuallyHiddenInput";var YE=!1,Wg=null,uu=!1,Tb=new Set,Fq=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Lq(e){return!(e.metaKey||!Fq&&e.altKey||e.ctrlKey)}function ew(e,t){Tb.forEach(n=>n(e,t))}function XE(e){uu=!0,Lq(e)&&(Wg="keyboard",ew("keyboard",e))}function hl(e){Wg="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(uu=!0,ew("pointer",e))}function $q(e){e.target===window||e.target===document||(uu||(Wg="keyboard",ew("keyboard",e)),uu=!1)}function Bq(){uu=!1}function ZE(){return Wg!=="pointer"}function zq(){if(typeof window>"u"||YE)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){uu=!0,e.apply(this,n)},document.addEventListener("keydown",XE,!0),document.addEventListener("keyup",XE,!0),window.addEventListener("focus",$q,!0),window.addEventListener("blur",Bq,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",hl,!0),document.addEventListener("pointermove",hl,!0),document.addEventListener("pointerup",hl,!0)):(document.addEventListener("mousedown",hl,!0),document.addEventListener("mousemove",hl,!0),document.addEventListener("mouseup",hl,!0)),YE=!0}function Vq(e){zq(),e(ZE());const t=()=>e(ZE());return Tb.add(t),()=>{Tb.delete(t)}}var[Lfe,Wq]=Xt({name:"CheckboxGroupContext",strict:!1}),jq=(...e)=>e.filter(Boolean).join(" "),Wn=e=>e?"":void 0;function Gr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function Uq(...e){return function(n){e.forEach(r=>{r?.(n)})}}function Hq(e){const t=Ao;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var E3=Hq(ie.svg);function Gq(e){return E(E3,{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:E("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function qq(e){return E(E3,{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:E("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Kq({open:e,children:t}){return E(Ui,{initial:!1,children:e&&ee.createElement(Ao.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 Yq(e){const{isIndeterminate:t,isChecked:n,...r}=e;return E(Kq,{open:n||t,children:E(t?qq:Gq,{...r})})}function Xq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function P3(e={}){const t=Qx(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:S,value:k,tabIndex:x=void 0,"aria-label":b,"aria-labelledby":w,"aria-invalid":P,...O}=e,M=Xq(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=Nn(v),V=Nn(u),K=Nn(c),[W,te]=_.exports.useState(!1),[xe,fe]=_.exports.useState(!1),[we,Ce]=_.exports.useState(!1),[ve,Pe]=_.exports.useState(!1);_.exports.useEffect(()=>Vq(te),[]);const j=_.exports.useRef(null),[X,q]=_.exports.useState(!0),[R,H]=_.exports.useState(!!p),ae=h!==void 0,se=ae?h:R,he=_.exports.useCallback(ye=>{if(r||n){ye.preventDefault();return}ae||H(se?ye.target.checked:y?!0:ye.target.checked),N?.(ye)},[r,n,se,ae,y,N]);Mi(()=>{j.current&&(j.current.indeterminate=Boolean(y))},[y]),xm(()=>{n&&fe(!1)},[n,fe]),Mi(()=>{const ye=j.current;!ye?.form||(ye.form.onreset=()=>{H(!!p)})},[]);const ge=n&&!m,Ee=_.exports.useCallback(ye=>{ye.key===" "&&Pe(!0)},[Pe]),ce=_.exports.useCallback(ye=>{ye.key===" "&&Pe(!1)},[Pe]);Mi(()=>{if(!j.current)return;j.current.checked!==se&&H(j.current.checked)},[j.current]);const Ae=_.exports.useCallback((ye={},Mt=null)=>{const Qt=it=>{xe&&it.preventDefault(),Pe(!0)};return{...ye,ref:Mt,"data-active":Wn(ve),"data-hover":Wn(we),"data-checked":Wn(se),"data-focus":Wn(xe),"data-focus-visible":Wn(xe&&W),"data-indeterminate":Wn(y),"data-disabled":Wn(n),"data-invalid":Wn(i),"data-readonly":Wn(r),"aria-hidden":!0,onMouseDown:Gr(ye.onMouseDown,Qt),onMouseUp:Gr(ye.onMouseUp,()=>Pe(!1)),onMouseEnter:Gr(ye.onMouseEnter,()=>Ce(!0)),onMouseLeave:Gr(ye.onMouseLeave,()=>Ce(!1))}},[ve,se,n,xe,W,we,y,i,r]),Me=_.exports.useCallback((ye={},Mt=null)=>({...M,...ye,ref:Kn(Mt,Qt=>{!Qt||q(Qt.tagName==="LABEL")}),onClick:Gr(ye.onClick,()=>{var Qt;X||((Qt=j.current)==null||Qt.click(),requestAnimationFrame(()=>{var it;(it=j.current)==null||it.focus()}))}),"data-disabled":Wn(n),"data-checked":Wn(se),"data-invalid":Wn(i)}),[M,n,se,i,X]),mt=_.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Kn(j,Mt),type:"checkbox",name:S,value:k,id:s,tabIndex:x,onChange:Gr(ye.onChange,he),onBlur:Gr(ye.onBlur,V,()=>fe(!1)),onFocus:Gr(ye.onFocus,K,()=>fe(!0)),onKeyDown:Gr(ye.onKeyDown,Ee),onKeyUp:Gr(ye.onKeyUp,ce),required:o,checked:se,disabled:ge,readOnly:r,"aria-label":b,"aria-labelledby":w,"aria-invalid":P?Boolean(P):i,"aria-describedby":f,"aria-disabled":n,style:Jx}),[S,k,s,he,V,K,Ee,ce,o,se,ge,r,b,w,P,i,f,n,x]),Dt=_.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Mt,onMouseDown:Gr(ye.onMouseDown,QE),onTouchStart:Gr(ye.onTouchStart,QE),"data-disabled":Wn(n),"data-checked":Wn(se),"data-invalid":Wn(i)}),[se,n,i]);return{state:{isInvalid:i,isFocused:xe,isChecked:se,isActive:ve,isHovered:we,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Me,getCheckboxProps:Ae,getInputProps:mt,getLabelProps:Dt,htmlProps:M}}function QE(e){e.preventDefault(),e.stopPropagation()}var Zq=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Qq=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Jq=de(function(t,n){const r=Wq(),o={...r,...t},i=Fr("Checkbox",o),s=bt(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=E(Yq,{}),isChecked:v,isDisabled:y=r?.isDisabled,onChange:S,inputProps:k,...x}=s;let b=v;r?.value&&s.value&&(b=r.value.includes(s.value));let w=S;r?.onChange&&s.value&&(w=Uq(r.onChange,S));const{state:P,getInputProps:O,getCheckboxProps:M,getLabelProps:N,getRootProps:V}=P3({...x,isDisabled:y,isChecked:b,onChange:w}),K=_.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=_.exports.cloneElement(m,{__css:K,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return ue(Qq,{__css:i.container,className:jq("chakra-checkbox",c),...V(),children:[E("input",{className:"chakra-checkbox__input",...O(k,n)}),E(Zq,{__css:i.control,className:"chakra-checkbox__control",...M(),children:W}),f&&ee.createElement(ie.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:u,...i.label}},f)]})});Jq.displayName="Checkbox";function eK(e){return E(Po,{focusable:"false","aria-hidden":!0,...e,children:E("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 tw=de(function(t,n){const r=Zn("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=bt(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ee.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||E(eK,{width:"1em",height:"1em"}))});tw.displayName="CloseButton";function tK(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function A3(e,t){let n=tK(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function JE(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 nK(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function rK(e={}){const{onChange:t,precision:n,defaultValue:r,value:o,step:i=1,min:s=Number.MIN_SAFE_INTEGER,max:u=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,f=Nn(t),[p,h]=_.exports.useState(()=>r==null?"":Iy(r,i,n)??""),m=typeof o<"u",v=m?o:p,y=T3(ua(v),i),S=n??y,k=_.exports.useCallback(W=>{W!==v&&(m||h(W.toString()),f?.(W.toString(),ua(W)))},[f,m,v]),x=_.exports.useCallback(W=>{let te=W;return c&&(te=nK(te,s,u)),A3(te,S)},[S,c,u,s]),b=_.exports.useCallback((W=i)=>{let te;v===""?te=ua(W):te=ua(v)+W,te=x(te),k(te)},[x,i,k,v]),w=_.exports.useCallback((W=i)=>{let te;v===""?te=ua(-W):te=ua(v)-W,te=x(te),k(te)},[x,i,k,v]),P=_.exports.useCallback(()=>{let W;r==null?W="":W=Iy(r,i,n)??s,k(W)},[r,n,i,k,s]),O=_.exports.useCallback(W=>{const te=Iy(W,i,S)??s;k(te)},[S,i,k,s]),M=ua(v);return{isOutOfRange:M>u||M<s,isAtMax:M===u,isAtMin:M===s,precision:S,value:v,valueAsNumber:M,update:k,reset:P,increment:b,decrement:w,clamp:x,cast:O,setValue:h}}function ua(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function T3(e,t){return Math.max(JE(t),JE(e))}function Iy(e,t,n){const r=ua(e);if(Number.isNaN(r))return;const o=T3(r,t);return A3(r,n??o)}var O3=`
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100lvh) {
:root {
--chakra-vh: 100lvh;
}
}
`,oK=()=>E(kg,{styles:O3}),iK=()=>E(kg,{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;
}
${O3}
`});function Ob(e,t,n,r){const o=Nn(n);return _.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 aK=sV?_.exports.useLayoutEffect:_.exports.useEffect;function eP(e,t=[]){const n=_.exports.useRef(e);return aK(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function sK(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function lK(e,t){const n=_.exports.useId();return _.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Ib(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=eP(n),s=eP(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),[f,p]=sK(r,u),h=lK(o,"disclosure"),m=_.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=_.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),y=_.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:y,isControlled:f,getButtonProps:(S={})=>({...S,"aria-expanded":p,"aria-controls":h,onClick:lV(S.onClick,y)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:h})}}function nw(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var rw=de(function(t,n){const{htmlSize:r,...o}=t,i=Fr("Input",o),s=bt(o),u=Zx(s),c=Zt("chakra-input",t.className);return ee.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});rw.displayName="Input";rw.id="Input";var[uK,I3]=Xt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),cK=de(function(t,n){const r=Fr("Input",t),{children:o,className:i,...s}=bt(t),u=Zt("chakra-input__group",i),c={},f=Xx(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 S=nw({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"?_.exports.cloneElement(m,S):_.exports.cloneElement(m,Object.assign(S,c,m.props))});return ee.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},E(uK,{value:r,children:h}))});cK.displayName="InputGroup";var fK={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},dK=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),ow=de(function(t,n){const{placement:r="left",...o}=t,i=fK[r]??{},s=I3();return E(dK,{ref:n,...o,__css:{...s.addon,...i}})});ow.displayName="InputAddon";var R3=de(function(t,n){return E(ow,{ref:n,placement:"left",...t,className:Zt("chakra-input__left-addon",t.className)})});R3.displayName="InputLeftAddon";R3.id="InputLeftAddon";var D3=de(function(t,n){return E(ow,{ref:n,placement:"right",...t,className:Zt("chakra-input__right-addon",t.className)})});D3.displayName="InputRightAddon";D3.id="InputRightAddon";var pK=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),jg=de(function(t,n){const{placement:r="left",...o}=t,i=I3(),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 E(pK,{ref:n,__css:c,...o})});jg.id="InputElement";jg.displayName="InputElement";var M3=de(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__left-element",r);return E(jg,{ref:n,placement:"left",className:i,...o})});M3.id="InputLeftElement";M3.displayName="InputLeftElement";var N3=de(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__right-element",r);return E(jg,{ref:n,placement:"right",className:i,...o})});N3.id="InputRightElement";N3.displayName="InputRightElement";function hK(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ba(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):hK(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var mK=de(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=_.exports.Children.only(r),u=Zt("chakra-aspect-ratio",o);return ee.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Ba(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)});mK.displayName="AspectRatio";var gK=de(function(t,n){const r=Zn("Badge",t),{className:o,...i}=bt(t);return ee.createElement(ie.span,{ref:n,className:Zt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});gK.displayName="Badge";var Es=ie("div");Es.displayName="Box";var F3=de(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return E(Es,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});F3.displayName="Square";var vK=de(function(t,n){const{size:r,...o}=t;return E(F3,{size:r,ref:n,borderRadius:"9999px",...o})});vK.displayName="Circle";var Af=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Af.displayName="Center";var yK={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};de(function(t,n){const{axis:r="both",...o}=t;return ee.createElement(ie.div,{ref:n,__css:yK[r],...o,position:"absolute"})});var bK=de(function(t,n){const r=Zn("Code",t),{className:o,...i}=bt(t);return ee.createElement(ie.code,{ref:n,className:Zt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});bK.displayName="Code";var SK=de(function(t,n){const{className:r,centerContent:o,...i}=bt(t),s=Zn("Container",t);return ee.createElement(ie.div,{ref:n,className:Zt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});SK.displayName="Container";var xK=de(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=Zn("Divider",t),{className:h,orientation:m="horizontal",__css:v,...y}=bt(t),S={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return ee.createElement(ie.hr,{ref:n,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:f,borderStyle:c,...S[m],...v},className:Zt("chakra-divider",h)})});xK.displayName="Divider";var Ue=de(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 ee.createElement(ie.div,{ref:n,__css:h,...p})});Ue.displayName="Flex";var iw=de(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,S={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 ee.createElement(ie.div,{ref:n,__css:S,...y})});iw.displayName="Grid";function tP(e){return Ba(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var ca=de(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=nw({gridArea:r,gridColumn:tP(o),gridRow:tP(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return ee.createElement(ie.div,{ref:n,__css:h,...p})});ca.displayName="GridItem";var aw=de(function(t,n){const r=Zn("Heading",t),{className:o,...i}=bt(t);return ee.createElement(ie.h2,{ref:n,className:Zt("chakra-heading",t.className),...i,__css:r})});aw.displayName="Heading";de(function(t,n){const r=Zn("Mark",t),o=bt(t);return E(Es,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var wK=de(function(t,n){const r=Zn("Kbd",t),{className:o,...i}=bt(t);return ee.createElement(ie.kbd,{ref:n,className:Zt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});wK.displayName="Kbd";var wm=de(function(t,n){const r=Zn("Link",t),{className:o,isExternal:i,...s}=bt(t);return ee.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Zt("chakra-link",o),...s,__css:r})});wm.displayName="Link";de(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return ee.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%"}}})});de(function(t,n){const{className:r,...o}=t;return ee.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[_K,L3]=Xt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),Ug=de(function(t,n){const r=Fr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=bt(t),f=Xx(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return ee.createElement(_K,{value:r},ee.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});Ug.displayName="List";var CK=de((e,t)=>{const{as:n,...r}=e;return E(Ug,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});CK.displayName="OrderedList";var kK=de(function(t,n){const{as:r,...o}=t;return E(Ug,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});kK.displayName="UnorderedList";var $3=de(function(t,n){const r=L3();return ee.createElement(ie.li,{ref:n,...t,__css:r.item})});$3.displayName="ListItem";var EK=de(function(t,n){const r=L3();return E(Po,{ref:n,role:"presentation",...t,__css:r.icon})});EK.displayName="ListIcon";var PK=de(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=xx(),p=u?TK(u,f):OK(r);return E(iw,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});PK.displayName="SimpleGrid";function AK(e){return typeof e=="number"?`${e}px`:e}function TK(e,t){return Ba(e,n=>{const r=kV("sizes",n,AK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function OK(e){return Ba(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var B3=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});B3.displayName="Spacer";var Rb="& > *:not(style) ~ *:not(style)";function IK(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,[Rb]:Ba(n,o=>r[o])}}function RK(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{"&":Ba(n,o=>r[o])}}var z3=e=>ee.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});z3.displayName="StackItem";var sw=de((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=_.exports.useMemo(()=>IK({direction:v,spacing:s}),[v,s]),S=_.exports.useMemo(()=>RK({spacing:s,direction:v}),[s,v]),k=!!f,x=!h&&!k,b=Xx(c),w=x?b:b.map((O,M)=>{const N=typeof O.key<"u"?O.key:M,V=M+1===b.length,W=h?E(z3,{children:O},N):O;if(!k)return W;const te=_.exports.cloneElement(f,{__css:S}),xe=V?null:te;return ue(_.exports.Fragment,{children:[W,xe]},N)}),P=Zt("chakra-stack",p);return ee.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y.flexDirection,flexWrap:u,className:P,__css:k?{}:{[Rb]:y[Rb]},...m},w)});sw.displayName="Stack";var _m=de((e,t)=>E(sw,{align:"center",...e,direction:"row",ref:t}));_m.displayName="HStack";var DK=de((e,t)=>E(sw,{align:"center",...e,direction:"column",ref:t}));DK.displayName="VStack";var Pt=de(function(t,n){const r=Zn("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=bt(t),f=nw({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return ee.createElement(ie.p,{ref:n,className:Zt("chakra-text",t.className),...f,...c,__css:r})});Pt.displayName="Text";function nP(e){return typeof e=="number"?`${e}px`:e}var MK=de(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=_.exports.useMemo(()=>{const{spacingX:S=r,spacingY:k=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":x=>Ba(S,b=>nP(Y1("space",b)(x))),"--chakra-wrap-y-spacing":x=>Ba(k,b=>nP(Y1("space",b)(x))),"--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?_.exports.Children.map(s,(S,k)=>E(V3,{children:S},k)):s;return ee.createElement(ie.div,{ref:n,className:Zt("chakra-wrap",p),overflow:"hidden",...m},ee.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},y))});MK.displayName="Wrap";var V3=de(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Zt("chakra-wrap__listitem",r),...o})});V3.displayName="WrapItem";var NK={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[]}}}},W3=NK,ml=()=>{},FK={document:W3,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:ml,removeEventListener:ml,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:ml,removeListener:ml}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:ml,setInterval:()=>0,clearInterval:ml},LK=FK,$K={window:LK,document:W3},j3=typeof window<"u"?{window,document}:$K,U3=_.exports.createContext(j3);U3.displayName="EnvironmentContext";function H3(e){const{children:t,environment:n}=e,[r,o]=_.exports.useState(null),[i,s]=_.exports.useState(!1);_.exports.useEffect(()=>s(!0),[]);const u=_.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:j3},[r,n]);return ue(U3.Provider,{value:u,children:[t,!n&&i&&E("span",{id:"__chakra_env",hidden:!0,ref:c=>{_.exports.startTransition(()=>{c&&o(c)})}})]})}H3.displayName="EnvironmentProvider";function BK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function zK(e){if(!BK(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var VK=e=>e.hasAttribute("tabindex");function WK(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function G3(e){return e.parentElement&&G3(e.parentElement)?!0:e.hidden}function jK(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function UK(e){if(!zK(e)||G3(e)||WK(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]():jK(e)?!0:VK(e)}var HK=["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]"],GK=HK.join(),qK=e=>e.offsetWidth>0&&e.offsetHeight>0;function KK(e){const t=Array.from(e.querySelectorAll(GK));return t.unshift(e),t.filter(n=>UK(n)&&qK(n))}var ur="top",no="bottom",ro="right",cr="left",lw="auto",td=[ur,no,ro,cr],cu="start",Tf="end",YK="clippingParents",q3="viewport",pc="popper",XK="reference",rP=td.reduce(function(e,t){return e.concat([t+"-"+cu,t+"-"+Tf])},[]),K3=[].concat(td,[lw]).reduce(function(e,t){return e.concat([t,t+"-"+cu,t+"-"+Tf])},[]),ZK="beforeRead",QK="read",JK="afterRead",eY="beforeMain",tY="main",nY="afterMain",rY="beforeWrite",oY="write",iY="afterWrite",aY=[ZK,QK,JK,eY,tY,nY,rY,oY,iY];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ns(e){var t=oo(e).Element;return e instanceof t||e instanceof Element}function Jr(e){var t=oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uw(e){if(typeof ShadowRoot>"u")return!1;var t=oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sY(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];!Jr(i)||!ii(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 lY(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},{});!Jr(o)||!ii(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const uY={name:"applyStyles",enabled:!0,phase:"write",fn:sY,effect:lY,requires:["computeStyles"]};function Jo(e){return e.split("-")[0]}var Ps=Math.max,Cm=Math.min,fu=Math.round;function Db(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Y3(){return!/^((?!chrome|android).)*safari/i.test(Db())}function du(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jr(e)&&(o=e.offsetWidth>0&&fu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fu(r.height)/e.offsetHeight||1);var s=Ns(e)?oo(e):window,u=s.visualViewport,c=!Y3()&&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 cw(e){var t=du(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 X3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return oo(e).getComputedStyle(e)}function cY(e){return["table","td","th"].indexOf(ii(e))>=0}function qa(e){return((Ns(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hg(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(uw(e)?e.host:null)||qa(e)}function oP(e){return!Jr(e)||zi(e).position==="fixed"?null:e.offsetParent}function fY(e){var t=/firefox/i.test(Db()),n=/Trident/i.test(Db());if(n&&Jr(e)){var r=zi(e);if(r.position==="fixed")return null}var o=Hg(e);for(uw(o)&&(o=o.host);Jr(o)&&["html","body"].indexOf(ii(o))<0;){var i=zi(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 nd(e){for(var t=oo(e),n=oP(e);n&&cY(n)&&zi(n).position==="static";)n=oP(n);return n&&(ii(n)==="html"||ii(n)==="body"&&zi(n).position==="static")?t:n||fY(e)||t}function fw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jc(e,t,n){return Ps(e,Cm(t,n))}function dY(e,t,n){var r=jc(e,t,n);return r>n?n:r}function Z3(){return{top:0,right:0,bottom:0,left:0}}function Q3(e){return Object.assign({},Z3(),e)}function J3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Q3(typeof t!="number"?t:J3(t,td))};function hY(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=Jo(n.placement),c=fw(u),f=[cr,ro].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=pY(o.padding,n),m=cw(i),v=c==="y"?ur:cr,y=c==="y"?no:ro,S=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],k=s[c]-n.rects.reference[c],x=nd(i),b=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=S/2-k/2,P=h[v],O=b-m[p]-h[y],M=b/2-m[p]/2+w,N=jc(P,M,O),V=c;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-M,t)}}function mY(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)||!X3(t.elements.popper,o)||(t.elements.arrow=o))}const gY={name:"arrow",enabled:!0,phase:"main",fn:hY,effect:mY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var vY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fu(t*o)/o||0,y:fu(n*o)/o||0}}function iP(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,S=y===void 0?0:y,k=typeof p=="function"?p({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var x=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),w=cr,P=ur,O=window;if(f){var M=nd(n),N="clientHeight",V="clientWidth";if(M===oo(n)&&(M=qa(n),zi(M).position!=="static"&&u==="absolute"&&(N="scrollHeight",V="scrollWidth")),M=M,o===ur||(o===cr||o===ro)&&i===Tf){P=no;var K=h&&M===O&&O.visualViewport?O.visualViewport.height:M[N];S-=K-r.height,S*=c?1:-1}if(o===cr||(o===ur||o===no)&&i===Tf){w=ro;var W=h&&M===O&&O.visualViewport?O.visualViewport.width:M[V];v-=W-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&vY),xe=p===!0?yY({x:v,y:S}):{x:v,y:S};if(v=xe.x,S=xe.y,c){var fe;return Object.assign({},te,(fe={},fe[P]=b?"0":"",fe[w]=x?"0":"",fe.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",fe))}return Object.assign({},te,(t={},t[P]=b?S+"px":"",t[w]=x?v+"px":"",t.transform="",t))}function bY(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:Jo(t.placement),variation:pu(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,iP(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,iP(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 SY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bY,data:{}};var Vp={passive:!0};function xY(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=oo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Vp)}),u&&c.addEventListener("resize",n.update,Vp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Vp)}),u&&c.removeEventListener("resize",n.update,Vp)}}const wY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xY,data:{}};var _Y={left:"right",right:"left",bottom:"top",top:"bottom"};function xh(e){return e.replace(/left|right|bottom|top/g,function(t){return _Y[t]})}var CY={start:"end",end:"start"};function aP(e){return e.replace(/start|end/g,function(t){return CY[t]})}function dw(e){var t=oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pw(e){return du(qa(e)).left+dw(e).scrollLeft}function kY(e,t){var n=oo(e),r=qa(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=Y3();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+pw(e),y:c}}function EY(e){var t,n=qa(e),r=dw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ps(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ps(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+pw(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=Ps(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function hw(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function e5(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:Jr(e)&&hw(e)?e:e5(Hg(e))}function Uc(e,t){var n;t===void 0&&(t=[]);var r=e5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=oo(r),s=o?[i].concat(i.visualViewport||[],hw(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(Uc(Hg(s)))}function Mb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PY(e,t){var n=du(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 sP(e,t,n){return t===q3?Mb(kY(e,n)):Ns(t)?PY(t,n):Mb(EY(qa(e)))}function AY(e){var t=Uc(Hg(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&Jr(e)?nd(e):e;return Ns(r)?t.filter(function(o){return Ns(o)&&X3(o,r)&&ii(o)!=="body"}):[]}function TY(e,t,n,r){var o=t==="clippingParents"?AY(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=sP(e,f,r);return c.top=Ps(p.top,c.top),c.right=Cm(p.right,c.right),c.bottom=Cm(p.bottom,c.bottom),c.left=Ps(p.left,c.left),c},sP(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 t5(e){var t=e.reference,n=e.element,r=e.placement,o=r?Jo(r):null,i=r?pu(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case ur:c={x:s,y:t.y-n.height};break;case no:c={x:s,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:u};break;case cr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?fw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case cu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Tf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Of(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?YK:u,f=n.rootBoundary,p=f===void 0?q3:f,h=n.elementContext,m=h===void 0?pc:h,v=n.altBoundary,y=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,x=Q3(typeof k!="number"?k:J3(k,td)),b=m===pc?XK:pc,w=e.rects.popper,P=e.elements[y?b:m],O=TY(Ns(P)?P:P.contextElement||qa(e.elements.popper),c,p,s),M=du(e.elements.reference),N=t5({reference:M,element:w,strategy:"absolute",placement:o}),V=Mb(Object.assign({},w,N)),K=m===pc?V:M,W={top:O.top-K.top+x.top,bottom:K.bottom-O.bottom+x.bottom,left:O.left-K.left+x.left,right:K.right-O.right+x.right},te=e.modifiersData.offset;if(m===pc&&te){var xe=te[o];Object.keys(W).forEach(function(fe){var we=[ro,no].indexOf(fe)>=0?1:-1,Ce=[ur,no].indexOf(fe)>=0?"y":"x";W[fe]+=xe[Ce]*we})}return W}function OY(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?K3:c,p=pu(r),h=p?u?rP:rP.filter(function(y){return pu(y)===p}):td,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var v=m.reduce(function(y,S){return y[S]=Of(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[Jo(S)],y},{});return Object.keys(v).sort(function(y,S){return v[y]-v[S]})}function IY(e){if(Jo(e)===lw)return[];var t=xh(e);return[aP(e),t,aP(t)]}function RY(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,S=n.allowedAutoPlacements,k=t.options.placement,x=Jo(k),b=x===k,w=c||(b||!y?[xh(k)]:IY(k)),P=[k].concat(w).reduce(function(se,he){return se.concat(Jo(he)===lw?OY(t,{placement:he,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:S}):he)},[]),O=t.rects.reference,M=t.rects.popper,N=new Map,V=!0,K=P[0],W=0;W<P.length;W++){var te=P[W],xe=Jo(te),fe=pu(te)===cu,we=[ur,no].indexOf(xe)>=0,Ce=we?"width":"height",ve=Of(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),Pe=we?fe?ro:cr:fe?no:ur;O[Ce]>M[Ce]&&(Pe=xh(Pe));var j=xh(Pe),X=[];if(i&&X.push(ve[xe]<=0),u&&X.push(ve[Pe]<=0,ve[j]<=0),X.every(function(se){return se})){K=te,V=!1;break}N.set(te,X)}if(V)for(var q=y?3:1,R=function(he){var ge=P.find(function(Ee){var ce=N.get(Ee);if(ce)return ce.slice(0,he).every(function(Ae){return Ae})});if(ge)return K=ge,"break"},H=q;H>0;H--){var ae=R(H);if(ae==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const DY={name:"flip",enabled:!0,phase:"main",fn:RY,requiresIfExists:["offset"],data:{_skip:!1}};function lP(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 uP(e){return[ur,ro,no,cr].some(function(t){return e[t]>=0})}function MY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Of(t,{elementContext:"reference"}),u=Of(t,{altBoundary:!0}),c=lP(s,r),f=lP(u,o,i),p=uP(c),h=uP(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 NY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MY};function FY(e,t,n){var r=Jo(e),o=[cr,ur].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,[cr,ro].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function LY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=K3.reduce(function(p,h){return p[h]=FY(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 $Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LY};function BY(e){var t=e.state,n=e.name;t.modifiersData[n]=t5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zY={name:"popperOffsets",enabled:!0,phase:"read",fn:BY,data:{}};function VY(e){return e==="x"?"y":"x"}function WY(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,S=y===void 0?0:y,k=Of(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),x=Jo(t.placement),b=pu(t.placement),w=!b,P=fw(x),O=VY(P),M=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,K=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,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,xe={x:0,y:0};if(!!M){if(i){var fe,we=P==="y"?ur:cr,Ce=P==="y"?no:ro,ve=P==="y"?"height":"width",Pe=M[P],j=Pe+k[we],X=Pe-k[Ce],q=v?-V[ve]/2:0,R=b===cu?N[ve]:V[ve],H=b===cu?-V[ve]:-N[ve],ae=t.elements.arrow,se=v&&ae?cw(ae):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z3(),ge=he[we],Ee=he[Ce],ce=jc(0,N[ve],se[ve]),Ae=w?N[ve]/2-q-ce-ge-W.mainAxis:R-ce-ge-W.mainAxis,Me=w?-N[ve]/2+q+ce+Ee+W.mainAxis:H+ce+Ee+W.mainAxis,mt=t.elements.arrow&&nd(t.elements.arrow),Dt=mt?P==="y"?mt.clientTop||0:mt.clientLeft||0:0,En=(fe=te?.[P])!=null?fe:0,ye=Pe+Ae-En-Dt,Mt=Pe+Me-En,Qt=jc(v?Cm(j,ye):j,Pe,v?Ps(X,Mt):X);M[P]=Qt,xe[P]=Qt-Pe}if(u){var it,hr=P==="x"?ur:cr,mr=P==="x"?no:ro,St=M[O],Ct=O==="y"?"height":"width",Jt=St+k[hr],zt=St-k[mr],le=[ur,cr].indexOf(x)!==-1,_e=(it=te?.[O])!=null?it:0,at=le?Jt:St-N[Ct]-V[Ct]-_e+W.altAxis,nt=le?St+N[Ct]+V[Ct]-_e-W.altAxis:zt,ne=v&&le?dY(at,St,nt):jc(v?at:Jt,St,v?nt:zt);M[O]=ne,xe[O]=ne-St}t.modifiersData[r]=xe}}const jY={name:"preventOverflow",enabled:!0,phase:"main",fn:WY,requiresIfExists:["offset"]};function UY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HY(e){return e===oo(e)||!Jr(e)?dw(e):UY(e)}function GY(e){var t=e.getBoundingClientRect(),n=fu(t.width)/e.offsetWidth||1,r=fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qY(e,t,n){n===void 0&&(n=!1);var r=Jr(t),o=Jr(t)&&GY(t),i=qa(t),s=du(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||hw(i))&&(u=HY(t)),Jr(t)?(c=du(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=pw(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function KY(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 YY(e){var t=KY(e);return aY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ZY(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 cP={placement:"bottom",modifiers:[],strategy:"absolute"};function fP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function QY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?cP:o;return function(u,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},cP,i),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(x){var b=typeof x=="function"?x(p.options):x;S(),p.options=Object.assign({},i,p.options,b),p.scrollParents={reference:Ns(u)?Uc(u):u.contextElement?Uc(u.contextElement):[],popper:Uc(c)};var w=YY(ZY([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(P){return P.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var x=p.elements,b=x.reference,w=x.popper;if(!!fP(b,w)){p.rects={reference:qY(b,nd(w),p.options.strategy==="fixed"),popper:cw(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(W){return p.modifiersData[W.name]=Object.assign({},W.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var O=p.orderedModifiers[P],M=O.fn,N=O.options,V=N===void 0?{}:N,K=O.name;typeof M=="function"&&(p=M({state:p,options:V,name:K,instance:v})||p)}}}},update:XY(function(){return new Promise(function(k){v.forceUpdate(),k(p)})}),destroy:function(){S(),m=!0}};if(!fP(u,c))return v;v.setOptions(f).then(function(k){!m&&f.onFirstUpdate&&f.onFirstUpdate(k)});function y(){p.orderedModifiers.forEach(function(k){var x=k.name,b=k.options,w=b===void 0?{}:b,P=k.effect;if(typeof P=="function"){var O=P({state:p,name:x,instance:v,options:w}),M=function(){};h.push(O||M)}})}function S(){h.forEach(function(k){return k()}),h=[]}return v}}var JY=[wY,zY,SY,uY,$Y,DY,jY,gY,NY],eX=QY({defaultModifiers:JY}),gl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),xn={arrowShadowColor:gl("--popper-arrow-shadow-color"),arrowSize:gl("--popper-arrow-size","8px"),arrowSizeHalf:gl("--popper-arrow-size-half"),arrowBg:gl("--popper-arrow-bg"),transformOrigin:gl("--popper-transform-origin"),arrowOffset:gl("--popper-arrow-offset")};function tX(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 nX={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"},rX=e=>nX[e],dP={scroll:!0,resize:!0};function oX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...dP,...e}}:t={enabled:e,options:dP},t}var iX={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`}},aX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{pP(e)},effect:({state:e})=>()=>{pP(e)}},pP=e=>{e.elements.popper.style.setProperty(xn.transformOrigin.var,rX(e.placement))},sX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{lX(e)}},lX=e=>{var t;if(!e.placement)return;const n=uX(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:xn.arrowSize.varRef,height:xn.arrowSize.varRef,zIndex:-1});const r={[xn.arrowSizeHalf.var]:`calc(${xn.arrowSize.varRef} / 2)`,[xn.arrowOffset.var]:`calc(${xn.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},uX=e=>{if(e.startsWith("top"))return{property:"bottom",value:xn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:xn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:xn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:xn.arrowOffset.varRef}},cX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{hP(e)},effect:({state:e})=>()=>{hP(e)}},hP=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:xn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:tX(e.placement)})},fX={"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"}},dX={"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 pX(e,t="ltr"){var n;const r=((n=fX[e])==null?void 0:n[t])||e;return t==="ltr"?r:dX[e]??r}function hX(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=_.exports.useRef(null),S=_.exports.useRef(null),k=_.exports.useRef(null),x=pX(r,v),b=_.exports.useRef(()=>{}),w=_.exports.useCallback(()=>{var W;!t||!y.current||!S.current||((W=b.current)==null||W.call(b),k.current=eX(y.current,S.current,{placement:x,modifiers:[cX,sX,aX,{...iX,enabled:!!m},{name:"eventListeners",...oX(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}),k.current.forceUpdate(),b.current=k.current.destroy)},[x,t,n,m,s,i,u,c,f,h,p,o]);_.exports.useEffect(()=>()=>{var W;!y.current&&!S.current&&((W=k.current)==null||W.destroy(),k.current=null)},[]);const P=_.exports.useCallback(W=>{y.current=W,w()},[w]),O=_.exports.useCallback((W={},te=null)=>({...W,ref:Kn(P,te)}),[P]),M=_.exports.useCallback(W=>{S.current=W,w()},[w]),N=_.exports.useCallback((W={},te=null)=>({...W,ref:Kn(M,te),style:{...W.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,M,m]),V=_.exports.useCallback((W={},te=null)=>{const{size:xe,shadowColor:fe,bg:we,style:Ce,...ve}=W;return{...ve,ref:te,"data-popper-arrow":"",style:mX(W)}},[]),K=_.exports.useCallback((W={},te=null)=>({...W,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var W;(W=k.current)==null||W.update()},forceUpdate(){var W;(W=k.current)==null||W.forceUpdate()},transformOrigin:xn.transformOrigin.varRef,referenceRef:P,popperRef:M,getPopperProps:N,getArrowProps:V,getArrowInnerProps:K,getReferenceProps:O}}function mX(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 gX(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Nn(n),s=Nn(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${_.exports.useId()}`,m=_.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=_.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),y=_.exports.useCallback(()=>{f?m():v()},[f,v,m]);function S(x={}){return{...x,"aria-expanded":f,"aria-controls":h,onClick(b){var w;(w=x.onClick)==null||w.call(x,b),y()}}}function k(x={}){return{...x,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:y,isControlled:p,getButtonProps:S,getDisclosureProps:k}}var[vX,yX]=Xt({strict:!1,name:"PortalManagerContext"});function n5(e){const{children:t,zIndex:n}=e;return E(vX,{value:{zIndex:n},children:t})}n5.displayName="PortalManager";var[r5,bX]=Xt({strict:!1,name:"PortalContext"}),mw="chakra-portal",SX=".chakra-portal",xX=e=>E("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),wX=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.exports.useState(null),i=_.exports.useRef(null),[,s]=_.exports.useState({});_.exports.useEffect(()=>s({}),[]);const u=bX(),c=yX();Mi(()=>{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=mw,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?E(xX,{zIndex:c?.zIndex,children:n}):n;return i.current?Vf.exports.createPortal(E(r5,{value:i.current,children:f}),i.current):E("span",{ref:p=>{p&&o(p)}})},_X=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=mw),c},[o]),[,u]=_.exports.useState({});return Mi(()=>u({}),[]),Mi(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Vf.exports.createPortal(E(r5,{value:r?s:null,children:t}),s):null};function Vs(e){const{containerRef:t,...n}=e;return t?E(_X,{containerRef:t,...n}):E(wX,{...n})}Vs.defaultProps={appendToParentPortal:!0};Vs.className=mw;Vs.selector=SX;Vs.displayName="Portal";var CX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vl=new WeakMap,Wp=new WeakMap,jp={},Ry=0,kX=function(e,t,n,r){var o=Array.isArray(e)?e:[e];jp[n]||(jp[n]=new WeakMap);var i=jp[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",S=(vl.get(m)||0)+1,k=(i.get(m)||0)+1;vl.set(m,S),i.set(m,k),s.push(m),S===1&&y&&Wp.set(m,!0),k===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}})};return p(t),u.clear(),Ry++,function(){s.forEach(function(h){var m=vl.get(h)-1,v=i.get(h)-1;vl.set(h,m),i.set(h,v),m||(Wp.has(h)||h.removeAttribute(r),Wp.delete(h)),v||h.removeAttribute(n)}),Ry--,Ry||(vl=new WeakMap,vl=new WeakMap,Wp=new WeakMap,jp={})}},EX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||CX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),kX(r,o,n,"aria-hidden")):function(){return null}};function PX(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ht={exports:{}},AX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",TX=AX,OX=TX;function o5(){}function i5(){}i5.resetWarningCache=o5;var IX=function(){function e(r,o,i,s,u,c){if(c!==OX){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:i5,resetWarningCache:o5};return n.PropTypes=n,n};ht.exports=IX();var Nb="data-focus-lock",a5="data-focus-lock-disabled",RX="data-no-focus-lock",DX="data-autofocus-inside",MX="data-no-autofocus";function NX(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FX(e,t){var n=_.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 s5(e,t){return FX(t||null,function(n){return e.forEach(function(r){return NX(r,n)})})}var Dy={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function l5(e){return e}function u5(e,t){t===void 0&&(t=l5);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 gw(e,t){return t===void 0&&(t=l5),u5(e,t)}function c5(e){e===void 0&&(e={});var t=u5(null);return t.options=Uo({async:!0,ssr:!1},e),t}var f5=function(e){var t=e.sideCar,n=Ig(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 E(r,{...Uo({},n)})};f5.isSideCarExport=!0;function LX(e,t){return e.useMedium(t),f5}var d5=gw({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),p5=gw(),$X=gw(),BX=c5({async:!0}),zX=[],vw=_.exports.forwardRef(function(t,n){var r,o=_.exports.useState(),i=o[0],s=o[1],u=_.exports.useRef(),c=_.exports.useRef(!1),f=_.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,S=t.autoFocus;t.allowTextSelection;var k=t.group,x=t.className,b=t.whiteList,w=t.hasPositiveIndices,P=t.shards,O=P===void 0?zX:P,M=t.as,N=M===void 0?"div":M,V=t.lockProps,K=V===void 0?{}:V,W=t.sideCar,te=t.returnFocus,xe=t.focusOptions,fe=t.onActivation,we=t.onDeactivation,Ce=_.exports.useState({}),ve=Ce[0],Pe=_.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&fe&&fe(u.current),c.current=!0},[fe]),j=_.exports.useCallback(function(){c.current=!1,we&&we(u.current)},[we]);_.exports.useEffect(function(){h||(f.current=null)},[]);var X=_.exports.useCallback(function(Ee){var ce=f.current;if(ce&&ce.focus){var Ae=typeof te=="function"?te(ce):te;if(Ae){var Me=typeof Ae=="object"?Ae:void 0;f.current=null,Ee?Promise.resolve().then(function(){return ce.focus(Me)}):ce.focus(Me)}}},[te]),q=_.exports.useCallback(function(Ee){c.current&&d5.useMedium(Ee)},[]),R=p5.useMedium,H=_.exports.useCallback(function(Ee){u.current!==Ee&&(u.current=Ee,s(Ee))},[]),ae=gf((r={},r[a5]=h&&"disabled",r[Nb]=k,r),K),se=m!==!0,he=se&&m!=="tail",ge=s5([n,H]);return ue(fr,{children:[se&&[E("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Dy},"guard-first"),w?E("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:Dy},"guard-nearest"):null],!h&&E(W,{id:ve,sideCar:BX,observed:i,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:S,whiteList:b,shards:O,onActivation:Pe,onDeactivation:j,returnFocus:X,focusOptions:xe}),E(N,{ref:ge,...ae,className:x,onBlur:R,onFocus:q,children:p}),he&&E("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Dy})]})});vw.propTypes={};vw.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 h5=vw;function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fb(e,t)}function VX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fb(e,t)}function m5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(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){VX(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 E(o,{...this.props})},p}(_.exports.PureComponent);return m5(c,"displayName","SideEffect("+n(o)+")"),c}}var si=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Lb=function(e){return Array.isArray(e)?e:[e]},jX=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},g5=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},v5=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},UX=function(e,t){return!e||v5(e)||!jX(e)&&t(g5(e))},y5=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=UX(t,y5.bind(void 0,e));return e.set(t,r),r},HX=function(e,t){return e&&!v5(e)?KX(e)?t(g5(e)):!1:!0},b5=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=HX(t,b5.bind(void 0,e));return e.set(t,r),r},S5=function(e){return e.dataset},GX=function(e){return e.tagName==="BUTTON"},x5=function(e){return e.tagName==="INPUT"},w5=function(e){return x5(e)&&e.type==="radio"},qX=function(e){return!((x5(e)||GX(e))&&(e.type==="hidden"||e.disabled))},KX=function(e){var t=e.getAttribute(MX);return![!0,"true",""].includes(t)},yw=function(e){var t;return Boolean(e&&((t=S5(e))===null||t===void 0?void 0:t.focusGuard))},km=function(e){return!yw(e)},YX=function(e){return Boolean(e)},XX=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},_5=function(e,t,n){return si(e).map(function(r,o){return{node:r,index:o,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(XX)},ZX=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],bw=ZX.join(","),QX="".concat(bw,", [data-focus-guard]"),C5=function(e,t){var n;return si(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?QX:bw)?[o]:[],C5(o))},[])},Sw=function(e,t){return e.reduce(function(n,r){return n.concat(C5(r,t),r.parentNode?si(r.parentNode.querySelectorAll(bw)).filter(function(o){return o===r}):[])},[])},JX=function(e){var t=e.querySelectorAll("[".concat(DX,"]"));return si(t).map(function(n){return Sw([n])}).reduce(function(n,r){return n.concat(r)},[])},xw=function(e,t){return si(e).filter(function(n){return y5(t,n)}).filter(function(n){return qX(n)})},mP=function(e,t){return t===void 0&&(t=new Map),si(e).filter(function(n){return b5(t,n)})},$b=function(e,t,n){return _5(xw(Sw(e,n),t),!0,n)},gP=function(e,t){return _5(xw(Sw(e),t),!1)},eZ=function(e,t){return xw(JX(e),t)},If=function(e,t){return(e.shadowRoot?If(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||si(e.children).some(function(n){return If(n,t)})},tZ=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},k5=function(e){return e.parentNode?k5(e.parentNode):e},ww=function(e){var t=Lb(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Nb);return n.push.apply(n,o?tZ(si(k5(r).querySelectorAll("[".concat(Nb,'="').concat(o,'"]:not([').concat(a5,'="disabled"])')))):[r]),n},[])},E5=function(e){return e.activeElement?e.activeElement.shadowRoot?E5(e.activeElement.shadowRoot):e.activeElement:void 0},_w=function(){return document.activeElement?document.activeElement.shadowRoot?E5(document.activeElement.shadowRoot):document.activeElement:void 0},nZ=function(e){return e===document.activeElement},rZ=function(e){return Boolean(si(e.querySelectorAll("iframe")).some(function(t){return nZ(t)}))},P5=function(e){var t=document&&_w();return!t||t.dataset&&t.dataset.focusGuard?!1:ww(e).some(function(n){return If(n,t)||rZ(n)})},oZ=function(){var e=document&&_w();return e?si(document.querySelectorAll("[".concat(RX,"]"))).some(function(t){return If(t,e)}):!1},iZ=function(e,t){return t.filter(w5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Cw=function(e,t){return w5(e)&&e.name?iZ(e,t):e},aZ=function(e){var t=new Set;return e.forEach(function(n){return t.add(Cw(n,e))}),e.filter(function(n){return t.has(n)})},vP=function(e){return e[0]&&e.length>1?Cw(e[0],e):e[0]},yP=function(e,t){return e.length>1?e.indexOf(Cw(e[t],e)):t},A5="NEW_FOCUS",sZ=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=yw(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=aZ(t),S=n!==void 0?y.indexOf(n):-1,k=S-(r?y.indexOf(r):c),x=yP(e,0),b=yP(e,o-1);if(c===-1||p===-1)return A5;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 x;if(h&&Math.abs(k)>1)return p;if(c<=m)return b;if(c>v)return x;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},Bb=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Bb(e.parentNode.host||e.parentNode,t),t},My=function(e,t){for(var n=Bb(e),r=Bb(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},T5=function(e,t,n){var r=Lb(e),o=Lb(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=My(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=My(i,c);f&&(!s||If(f,s)?s=f:s=My(f,s))})}),s},lZ=function(e,t){return e.reduce(function(n,r){return n.concat(eZ(r,t))},[])},uZ=function(e){return function(t){var n;return t.autofocus||!!(!((n=S5(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},cZ=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(YX)},fZ=function(e,t){var n=document&&_w(),r=ww(e).filter(km),o=T5(n||e,e,r),i=new Map,s=gP(r,i),u=$b(r,i).filter(function(v){var y=v.node;return km(y)});if(!(!u[0]&&(u=s,!u[0]))){var c=gP([o],i).map(function(v){var y=v.node;return y}),f=cZ(c,u),p=f.map(function(v){var y=v.node;return y}),h=sZ(p,c,n,t);if(h===A5){var m=mP(s.map(function(v){var y=v.node;return y})).filter(uZ(lZ(r,i)));return{node:m&&m.length?vP(m):vP(mP(p))}}return h===void 0?h:f[h]}},dZ=function(e){var t=ww(e).filter(km),n=T5(e,e,t),r=new Map,o=$b([n],r,!0),i=$b(t,r).filter(function(s){var u=s.node;return km(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:yw(u)}})},pZ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Ny=0,Fy=!1,hZ=function(e,t,n){n===void 0&&(n={});var r=fZ(e,t);if(!Fy&&r){if(Ny>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Fy=!0,setTimeout(function(){Fy=!1},1);return}Ny++,pZ(r.node,n.focusOptions),Ny--}};const O5=hZ;function I5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var mZ=function(){return document&&document.activeElement===document.body},gZ=function(){return mZ()||oZ()},Yl=null,$l=null,Xl=null,Rf=!1,vZ=function(){return!0},yZ=function(t){return(Yl.whiteList||vZ)(t)},bZ=function(t,n){Xl={observerNode:t,portaledElement:n}},SZ=function(t){return Xl&&Xl.portaledElement===t};function bP(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 xZ=function(t){return t&&"current"in t?t.current:t},wZ=function(t){return t?Boolean(Rf):Rf==="meanwhile"},_Z=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},CZ=function(t,n){return n.some(function(r){return _Z(t,r,r)})},Em=function(){var t=!1;if(Yl){var n=Yl,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||Xl&&Xl.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(xZ).filter(Boolean));if((!p||yZ(p))&&(o||wZ(u)||!gZ()||!$l&&i)&&(f&&!(P5(h)||p&&CZ(p,h)||SZ(p))&&(document&&!$l&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=O5(h,$l,{focusOptions:c}),Xl={})),Rf=!1,$l=document&&document.activeElement),document){var m=document&&document.activeElement,v=dZ(h),y=v.map(function(S){var k=S.node;return k}).indexOf(m);y>-1&&(v.filter(function(S){var k=S.guard,x=S.node;return k&&x.dataset.focusAutoGuard}).forEach(function(S){var k=S.node;return k.removeAttribute("tabIndex")}),bP(y,v.length,1,v),bP(y,-1,-1,v))}}}return t},R5=function(t){Em()&&t&&(t.stopPropagation(),t.preventDefault())},kw=function(){return I5(Em)},kZ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||bZ(r,n)},EZ=function(){return null},D5=function(){Rf="just",setTimeout(function(){Rf="meanwhile"},0)},PZ=function(){document.addEventListener("focusin",R5),document.addEventListener("focusout",kw),window.addEventListener("blur",D5)},AZ=function(){document.removeEventListener("focusin",R5),document.removeEventListener("focusout",kw),window.removeEventListener("blur",D5)};function TZ(e){return e.filter(function(t){var n=t.disabled;return!n})}function OZ(e){var t=e.slice(-1)[0];t&&!Yl&&PZ();var n=Yl,r=n&&t&&t.id===n.id;Yl=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?($l=null,(!r||n.observed!==t.observed)&&t.onActivation(),Em(),I5(Em)):(AZ(),$l=null)}d5.assignSyncMedium(kZ);p5.assignMedium(kw);$X.assignMedium(function(e){return e({moveFocusInside:O5,focusInside:P5})});const IZ=WX(TZ,OZ)(EZ);var M5=_.exports.forwardRef(function(t,n){return E(h5,{sideCar:IZ,ref:n,...t})}),N5=h5.propTypes||{};N5.sideCar;PX(N5,["sideCar"]);M5.propTypes={};const RZ=M5;var F5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=_.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&KK(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=_.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return E(RZ,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};F5.displayName="FocusLock";var wh="right-scroll-bar-position",_h="width-before-scroll-bar",DZ="with-scroll-bars-hidden",MZ="--removed-body-scroll-bar-size",L5=c5(),Ly=function(){},Gg=_.exports.forwardRef(function(e,t){var n=_.exports.useRef(null),r=_.exports.useState({onScrollCapture:Ly,onWheelCapture:Ly,onTouchMoveCapture:Ly}),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,S=e.allowPinchZoom,k=e.as,x=k===void 0?"div":k,b=Ig(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,P=s5([n,t]),O=Uo(Uo({},b),o);return ue(fr,{children:[p&&E(w,{sideCar:L5,removeScrollBar:f,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!S,lockRef:n}),s?_.exports.cloneElement(_.exports.Children.only(u),Uo(Uo({},O),{ref:P})):E(x,{...Uo({},O,{className:c,ref:P}),children:u})]})});Gg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gg.classNames={fullWidth:_h,zeroRight:wh};var NZ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FZ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NZ();return t&&e.setAttribute("nonce",t),e}function LZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $Z(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BZ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=FZ())&&(LZ(t,n),$Z(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zZ=function(){var e=BZ();return function(t,n){_.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$5=function(){var e=zZ(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},VZ={left:0,top:0,right:0,gap:0},$y=function(e){return parseInt(e||"",10)||0},WZ=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[$y(n),$y(r),$y(o)]},jZ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VZ;var t=WZ(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])}},UZ=$5(),HZ=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(DZ,` {
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(wh,` {
right: `).concat(u,"px ").concat(r,`;
}
.`).concat(_h,` {
margin-right: `).concat(u,"px ").concat(r,`;
}
.`).concat(wh," .").concat(wh,` {
right: 0 `).concat(r,`;
}
.`).concat(_h," .").concat(_h,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(MZ,": ").concat(u,`px;
}
`)},GZ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=_.exports.useMemo(function(){return jZ(o)},[o]);return E(UZ,{styles:HZ(i,!t,o,n?"":"!important")})},zb=!1;if(typeof window<"u")try{var Up=Object.defineProperty({},"passive",{get:function(){return zb=!0,!0}});window.addEventListener("test",Up,Up),window.removeEventListener("test",Up,Up)}catch{zb=!1}var yl=zb?{passive:!1}:!1,qZ=function(e){return e.tagName==="TEXTAREA"},B5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qZ(e)&&n[t]==="visible")},KZ=function(e){return B5(e,"overflowY")},YZ=function(e){return B5(e,"overflowX")},SP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=z5(e,n);if(r){var o=V5(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},XZ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZZ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z5=function(e,t){return e==="v"?KZ(t):YZ(t)},V5=function(e,t){return e==="v"?XZ(t):ZZ(t)},QZ=function(e,t){return e==="h"&&t==="rtl"?-1:1},JZ=function(e,t,n,r,o){var i=QZ(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=V5(e,u),y=v[0],S=v[1],k=v[2],x=S-k-i*y;(y||x)&&z5(e,u)&&(h+=x,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},Hp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xP=function(e){return[e.deltaX,e.deltaY]},wP=function(e){return e&&"current"in e?e.current:e},eQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tQ=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},nQ=0,bl=[];function rQ(e){var t=_.exports.useRef([]),n=_.exports.useRef([0,0]),r=_.exports.useRef(),o=_.exports.useState(nQ++)[0],i=_.exports.useState(function(){return $5()})[0],s=_.exports.useRef(e);_.exports.useEffect(function(){s.current=e},[e]),_.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=ub([e.lockRef.current],(e.shards||[]).map(wP),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.exports.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!s.current.allowPinchZoom;var x=Hp(S),b=n.current,w="deltaX"in S?S.deltaX:b[0]-x[0],P="deltaY"in S?S.deltaY:b[1]-x[1],O,M=S.target,N=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in S&&N==="h"&&M.type==="range")return!1;var V=SP(N,M);if(!V)return!0;if(V?O=N:(O=N==="v"?"h":"v",V=SP(N,M)),!V)return!1;if(!r.current&&"changedTouches"in S&&(w||P)&&(r.current=O),!O)return!0;var K=r.current||O;return JZ(K,k,S,K==="h"?w:P,!0)},[]),c=_.exports.useCallback(function(S){var k=S;if(!(!bl.length||bl[bl.length-1]!==i)){var x="deltaY"in k?xP(k):Hp(k),b=t.current.filter(function(O){return O.name===k.type&&O.target===k.target&&eQ(O.delta,x)})[0];if(b&&b.should){k.cancelable&&k.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(wP).filter(Boolean).filter(function(O){return O.contains(k.target)}),P=w.length>0?u(k,w[0]):!s.current.noIsolation;P&&k.cancelable&&k.preventDefault()}}},[]),f=_.exports.useCallback(function(S,k,x,b){var w={name:S,delta:k,target:x,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(P){return P!==w})},1)},[]),p=_.exports.useCallback(function(S){n.current=Hp(S),r.current=void 0},[]),h=_.exports.useCallback(function(S){f(S.type,xP(S),S.target,u(S,e.lockRef.current))},[]),m=_.exports.useCallback(function(S){f(S.type,Hp(S),S.target,u(S,e.lockRef.current))},[]);_.exports.useEffect(function(){return bl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,yl),document.addEventListener("touchmove",c,yl),document.addEventListener("touchstart",p,yl),function(){bl=bl.filter(function(S){return S!==i}),document.removeEventListener("wheel",c,yl),document.removeEventListener("touchmove",c,yl),document.removeEventListener("touchstart",p,yl)}},[]);var v=e.removeScrollBar,y=e.inert;return ue(fr,{children:[y?E(i,{styles:tQ(o)}):null,v?E(GZ,{gapMode:"margin"}):null]})}const oQ=LX(L5,rQ);var W5=_.exports.forwardRef(function(e,t){return E(Gg,{...Uo({},e,{ref:t,sideCar:oQ})})});W5.classNames=Gg.classNames;const iQ=W5;var Ws=(...e)=>e.filter(Boolean).join(" ");function wc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var aQ=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}},Vb=new aQ;function sQ(e,t){_.exports.useEffect(()=>(t&&Vb.add(e),()=>{Vb.remove(e)}),[t,e])}function lQ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=_.exports.useRef(null),p=_.exports.useRef(null),[h,m,v]=cQ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");uQ(f,t&&s),sQ(f,t);const y=_.exports.useRef(null),S=_.exports.useCallback(V=>{y.current=V.target},[]),k=_.exports.useCallback(V=>{V.key==="Escape"&&(V.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[x,b]=_.exports.useState(!1),[w,P]=_.exports.useState(!1),O=_.exports.useCallback((V={},K=null)=>({role:"dialog",...V,ref:Kn(K,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?m:void 0,"aria-describedby":w?v:void 0,onClick:wc(V.onClick,W=>W.stopPropagation())}),[v,w,h,m,x]),M=_.exports.useCallback(V=>{V.stopPropagation(),y.current===V.target&&(!Vb.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),N=_.exports.useCallback((V={},K=null)=>({...V,ref:Kn(K,p),onClick:wc(V.onClick,M),onKeyDown:wc(V.onKeyDown,k),onMouseDown:wc(V.onMouseDown,S)}),[k,S,M]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:P,setHeaderMounted:b,dialogRef:f,overlayRef:p,getDialogProps:O,getDialogContainerProps:N}}function uQ(e,t){const n=e.current;_.exports.useEffect(()=>{if(!(!e.current||!t))return EX(e.current)},[t,e,n])}function cQ(e,...t){const n=_.exports.useId(),r=e||n;return _.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[fQ,js]=Xt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[dQ,za]=Xt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Df=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=Fr("Modal",e),k={...lQ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return E(dQ,{value:k,children:E(fQ,{value:y,children:E(Ui,{onExitComplete:v,children:k.isOpen&&E(Vs,{...t,children:n})})})})};Df.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Df.displayName="Modal";var Pm=de((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=za();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ws("chakra-modal__body",n),u=js();return ee.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});Pm.displayName="ModalBody";var j5=de((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=za(),s=Ws("chakra-modal__close-btn",r),u=js();return E(tw,{ref:t,__css:u.closeButton,className:s,onClick:wc(n,c=>{c.stopPropagation(),i()}),...o})});j5.displayName="ModalCloseButton";function U5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=za(),[h,m]=Bx();return _.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),E(F5,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:E(iQ,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var pQ={slideInBottom:{...Eb,custom:{offsetY:16,reverse:!0}},slideInRight:{...Eb,custom:{offsetX:16,reverse:!0}},scale:{...p3,custom:{initialScale:.95,reverse:!0}},none:{}},hQ=ie(Ao.section),H5=_.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=pQ[n];return E(hQ,{ref:t,...o,...r})});H5.displayName="ModalTransition";var Am=de((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=za(),c=s(i,t),f=u(o),p=Ws("chakra-modal__content",n),h=js(),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}=za();return ee.createElement(U5,null,ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},E(H5,{preset:y,className:p,...c,__css:m,children:r})))});Am.displayName="ModalContent";var Ew=de((e,t)=>{const{className:n,...r}=e,o=Ws("chakra-modal__footer",n),i=js(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return ee.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});Ew.displayName="ModalFooter";var Pw=de((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=za();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ws("chakra-modal__header",n),u=js(),c={flex:0,...u.header};return ee.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});Pw.displayName="ModalHeader";var mQ=ie(Ao.div),Tm=de((e,t)=>{const{className:n,transition:r,...o}=e,i=Ws("chakra-modal__overlay",n),s=js(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=za();return E(mQ,{...c==="none"?{}:d3,__css:u,ref:t,className:i,...o})});Tm.displayName="ModalOverlay";function gQ(e){const{leastDestructiveRef:t,...n}=e;return E(Df,{...n,initialFocusRef:t})}var vQ=de((e,t)=>E(Am,{ref:t,role:"alertdialog",...e})),[$fe,yQ]=Xt(),bQ=ie(h3),SQ=de((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=za(),c=i(o,t),f=s(),p=Ws("chakra-modal__content",n),h=js(),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}=yQ();return ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},E(U5,{children:E(bQ,{direction:y,in:u,className:p,...c,__css:m,children:r})}))});SQ.displayName="DrawerContent";function xQ(e,t){const n=Nn(e);_.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var G5=(...e)=>e.filter(Boolean).join(" "),By=e=>e?!0:void 0;function No(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var wQ=e=>E(Po,{viewBox:"0 0 24 24",...e,children:E("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"})}),_Q=e=>E(Po,{viewBox:"0 0 24 24",...e,children:E("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 _P(e,t,n,r){_.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 CQ=50,CP=300;function kQ(e,t){const[n,r]=_.exports.useState(!1),[o,i]=_.exports.useState(null),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null),f=()=>clearTimeout(c.current);xQ(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?CQ:null);const p=_.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},CP)},[e,s]),h=_.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},CP)},[t,s]),m=_.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return _.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var EQ=/^[Ee0-9+\-.]$/;function PQ(e){return EQ.test(e)}function AQ(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 TQ(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:S,precision:k,name:x,"aria-describedby":b,"aria-label":w,"aria-labelledby":P,onFocus:O,onBlur:M,onInvalid:N,getAriaValueText:V,isValidCharacter:K,format:W,parse:te,...xe}=e,fe=Nn(O),we=Nn(M),Ce=Nn(N),ve=Nn(K??PQ),Pe=Nn(V),j=rK(e),{update:X,increment:q,decrement:R}=j,[H,ae]=_.exports.useState(!1),se=!(u||c),he=_.exports.useRef(null),ge=_.exports.useRef(null),Ee=_.exports.useRef(null),ce=_.exports.useRef(null),Ae=_.exports.useCallback(ne=>ne.split("").filter(ve).join(""),[ve]),Me=_.exports.useCallback(ne=>te?.(ne)??ne,[te]),mt=_.exports.useCallback(ne=>(W?.(ne)??ne).toString(),[W]);xm(()=>{(j.valueAsNumber>i||j.valueAsNumber<o)&&Ce?.("rangeOverflow",mt(j.value),j.valueAsNumber)},[j.valueAsNumber,j.value,mt,Ce]),Mi(()=>{if(!he.current)return;if(he.current.value!=j.value){const Ve=Me(he.current.value);j.setValue(Ae(Ve))}},[Me,Ae]);const Dt=_.exports.useCallback((ne=s)=>{se&&q(ne)},[q,se,s]),En=_.exports.useCallback((ne=s)=>{se&&R(ne)},[R,se,s]),ye=kQ(Dt,En);_P(Ee,"disabled",ye.stop,ye.isSpinning),_P(ce,"disabled",ye.stop,ye.isSpinning);const Mt=_.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;const xt=Me(ne.currentTarget.value);X(Ae(xt)),ge.current={start:ne.currentTarget.selectionStart,end:ne.currentTarget.selectionEnd}},[X,Ae,Me]),Qt=_.exports.useCallback(ne=>{var Ve;fe?.(ne),ge.current&&(ne.target.selectionStart=ge.current.start??((Ve=ne.currentTarget.value)==null?void 0:Ve.length),ne.currentTarget.selectionEnd=ge.current.end??ne.currentTarget.selectionStart)},[fe]),it=_.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;AQ(ne,ve)||ne.preventDefault();const Ve=hr(ne)*s,xt=ne.key,Pn={ArrowUp:()=>Dt(Ve),ArrowDown:()=>En(Ve),Home:()=>X(o),End:()=>X(i)}[xt];Pn&&(ne.preventDefault(),Pn(ne))},[ve,s,Dt,En,X,o,i]),hr=ne=>{let Ve=1;return(ne.metaKey||ne.ctrlKey)&&(Ve=.1),ne.shiftKey&&(Ve=10),Ve},mr=_.exports.useMemo(()=>{const ne=Pe?.(j.value);if(ne!=null)return ne;const Ve=j.value.toString();return Ve||void 0},[j.value,Pe]),St=_.exports.useCallback(()=>{let ne=j.value;ne!==""&&(j.valueAsNumber<o&&(ne=o),j.valueAsNumber>i&&(ne=i),j.cast(ne))},[j,i,o]),Ct=_.exports.useCallback(()=>{ae(!1),n&&St()},[n,ae,St]),Jt=_.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ne;(ne=he.current)==null||ne.focus()})},[t]),zt=_.exports.useCallback(ne=>{ne.preventDefault(),ye.up(),Jt()},[Jt,ye]),le=_.exports.useCallback(ne=>{ne.preventDefault(),ye.down(),Jt()},[Jt,ye]);Ob(()=>he.current,"wheel",ne=>{var Ve;const hn=(((Ve=he.current)==null?void 0:Ve.ownerDocument)??document).activeElement===he.current;if(!v||!hn)return;ne.preventDefault();const Pn=hr(ne)*s,gr=Math.sign(ne.deltaY);gr===-1?Dt(Pn):gr===1&&En(Pn)},{passive:!1});const _e=_.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&j.isAtMax;return{...ne,ref:Kn(Ve,Ee),role:"button",tabIndex:-1,onPointerDown:No(ne.onPointerDown,hn=>{xt||zt(hn)}),onPointerLeave:No(ne.onPointerLeave,ye.stop),onPointerUp:No(ne.onPointerUp,ye.stop),disabled:xt,"aria-disabled":By(xt)}},[j.isAtMax,r,zt,ye.stop,c]),at=_.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&j.isAtMin;return{...ne,ref:Kn(Ve,ce),role:"button",tabIndex:-1,onPointerDown:No(ne.onPointerDown,hn=>{xt||le(hn)}),onPointerLeave:No(ne.onPointerLeave,ye.stop),onPointerUp:No(ne.onPointerUp,ye.stop),disabled:xt,"aria-disabled":By(xt)}},[j.isAtMin,r,le,ye.stop,c]),nt=_.exports.useCallback((ne={},Ve=null)=>({name:x,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":w,"aria-describedby":b,id:y,disabled:c,...ne,readOnly:ne.readOnly??u,"aria-readonly":ne.readOnly??u,"aria-required":ne.required??f,required:ne.required??f,ref:Kn(he,Ve),value:mt(j.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(j.valueAsNumber)?void 0:j.valueAsNumber,"aria-invalid":By(p??j.isOutOfRange),"aria-valuetext":mr,autoComplete:"off",autoCorrect:"off",onChange:No(ne.onChange,Mt),onKeyDown:No(ne.onKeyDown,it),onFocus:No(ne.onFocus,Qt,()=>ae(!0)),onBlur:No(ne.onBlur,we,Ct)}),[x,m,h,P,w,mt,b,y,c,f,u,p,j.value,j.valueAsNumber,j.isOutOfRange,o,i,mr,Mt,it,Qt,we,Ct]);return{value:mt(j.value),valueAsNumber:j.valueAsNumber,isFocused:H,isDisabled:c,isReadOnly:u,getIncrementButtonProps:_e,getDecrementButtonProps:at,getInputProps:nt,htmlProps:xe}}var[OQ,qg]=Xt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[IQ,Aw]=Xt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),q5=de(function(t,n){const r=Fr("NumberInput",t),o=bt(t),i=Qx(o),{htmlProps:s,...u}=TQ(i),c=_.exports.useMemo(()=>u,[u]);return ee.createElement(IQ,{value:c},ee.createElement(OQ,{value:r},ee.createElement(ie.div,{...s,ref:n,className:G5("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});q5.displayName="NumberInput";var K5=de(function(t,n){const r=qg();return ee.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}})});K5.displayName="NumberInputStepper";var Y5=de(function(t,n){const{getInputProps:r}=Aw(),o=r(t,n),i=qg();return ee.createElement(ie.input,{...o,className:G5("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});Y5.displayName="NumberInputField";var X5=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Z5=de(function(t,n){const r=qg(),{getDecrementButtonProps:o}=Aw(),i=o(t,n);return E(X5,{...i,__css:r.stepper,children:t.children??E(wQ,{})})});Z5.displayName="NumberDecrementStepper";var Q5=de(function(t,n){const{getIncrementButtonProps:r}=Aw(),o=r(t,n),i=qg();return E(X5,{...o,__css:i.stepper,children:t.children??E(_Q,{})})});Q5.displayName="NumberIncrementStepper";function RQ(e,t,n){return(e-t)*100/(n-t)}qf({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var DQ=qf({"0%":{left:"-40%"},"100%":{left:"100%"}}),MQ=qf({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function NQ(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=RQ(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[FQ,LQ]=Xt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),$Q=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=NQ({value:r,min:t,max:n,isIndeterminate:o}),u=LQ(),c={height:"100%",...u.filledTrack};return ee.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},J5=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}=bt(e),v=Fr("Progress",e),y=c??((t=v.track)==null?void 0:t.borderRadius),S={animation:`${MQ} 1s linear infinite`},b={...!f&&i&&s&&S,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${DQ} 1s ease infinite normal none running`}},w={overflow:"hidden",position:"relative",...v.track};return ee.createElement(ie.div,{borderRadius:y,__css:w,...m},ue(FQ,{value:v,children:[E($Q,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:b,borderRadius:y}),u]}))};J5.displayName="Progress";var BQ=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});BQ.displayName="CircularProgressLabel";var zQ=(...e)=>e.filter(Boolean).join(" "),VQ=e=>e?"":void 0;function WQ(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 e4=de(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return ee.createElement(ie.select,{...s,ref:n,className:zQ("chakra-select",i)},o&&E("option",{value:"",children:o}),r)});e4.displayName="SelectField";var t4=de((e,t)=>{var n;const r=Fr("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...y}=bt(e),[S,k]=WQ(y,X9),x=Zx(k),b={width:"100%",height:"fit-content",position:"relative",color:u},w={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return ee.createElement(ie.div,{className:"chakra-select__wrapper",__css:b,...S,...o},E(e4,{ref:t,height:f??c,minH:p??h,placeholder:i,...x,__css:w,children:e.children}),E(n4,{"data-disabled":VQ(x.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});t4.displayName="Select";var jQ=e=>E("svg",{viewBox:"0 0 24 24",...e,children:E("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),UQ=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),n4=e=>{const{children:t=E(jQ,{}),...n}=e,r=_.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return E(UQ,{...n,className:"chakra-select__icon-wrapper",children:_.exports.isValidElement(t)?r:null})};n4.displayName="SelectIcon";var HQ=(...e)=>e.filter(Boolean).join(" "),kP=e=>e?"":void 0,Ra=de(function(t,n){const r=Fr("Switch",t),{spacing:o="0.5rem",children:i,...s}=bt(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=P3(s),m=_.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=_.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),y=_.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return ee.createElement(ie.label,{...p(),className:HQ("chakra-switch",t.className),__css:m},E("input",{className:"chakra-switch__input",...c({},n)}),ee.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},ee.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":kP(u.isChecked),"data-hover":kP(u.isHovered)})),i&&ee.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:y},i))});Ra.displayName="Switch";var GQ=(...e)=>e.filter(Boolean).join(" ");function qQ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var KQ=["h","minH","height","minHeight"],r4=de((e,t)=>{const n=Zn("Textarea",e),{className:r,rows:o,...i}=bt(e),s=Zx(i),u=o?qQ(n,KQ):n;return ee.createElement(ie.textarea,{ref:t,rows:o,...s,className:GQ("chakra-textarea",r),__css:u})});r4.displayName="Textarea";function ct(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 ct(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return ct(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 YQ=ct("accordion").parts("root","container","button","panel").extend("icon"),XQ=ct("alert").parts("title","description","container").extend("icon","spinner"),ZQ=ct("avatar").parts("label","badge","container").extend("excessLabel","group"),QQ=ct("breadcrumb").parts("link","item","container").extend("separator");ct("button").parts();var JQ=ct("checkbox").parts("control","icon","container").extend("label");ct("progress").parts("track","filledTrack").extend("label");var eJ=ct("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tJ=ct("editable").parts("preview","input","textarea"),nJ=ct("form").parts("container","requiredIndicator","helperText"),rJ=ct("formError").parts("text","icon"),oJ=ct("input").parts("addon","field","element"),iJ=ct("list").parts("container","item","icon"),aJ=ct("menu").parts("button","list","item").extend("groupTitle","command","divider"),sJ=ct("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),lJ=ct("numberinput").parts("root","field","stepperGroup","stepper");ct("pininput").parts("field");var uJ=ct("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),cJ=ct("progress").parts("label","filledTrack","track"),fJ=ct("radio").parts("container","control","label"),dJ=ct("select").parts("field","icon"),pJ=ct("slider").parts("container","track","thumb","filledTrack","mark"),hJ=ct("stat").parts("container","label","helpText","number","icon"),mJ=ct("switch").parts("container","track","thumb"),gJ=ct("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),vJ=ct("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),yJ=ct("tag").parts("container","label","closeButton");function _n(e,t){bJ(e)&&(e="100%");var n=SJ(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 Gp(e){return Math.min(1,Math.max(0,e))}function bJ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function SJ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function o4(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xs(e){return e.length===1?"0"+e:String(e)}function xJ(e,t,n){return{r:_n(e,255)*255,g:_n(t,255)*255,b:_n(n,255)*255}}function EP(e,t,n){e=_n(e,255),t=_n(t,255),n=_n(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+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s,l:u}}function zy(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 wJ(e,t,n){var r,o,i;if(e=_n(e,360),t=_n(t,100),n=_n(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=zy(u,s,e+1/3),o=zy(u,s,e),i=zy(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function PP(e,t,n){e=_n(e,255),t=_n(t,255),n=_n(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<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4;break}i/=6}return{h:i,s:c,v:s}}function _J(e,t,n){e=_n(e,360)*6,t=_n(t,100),n=_n(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),c=r%6,f=[n,s,i,i,u,n][c],p=[u,n,n,s,i,i][c],h=[i,i,u,n,n,s][c];return{r:f*255,g:p*255,b:h*255}}function AP(e,t,n,r){var o=[xs(Math.round(e).toString(16)),xs(Math.round(t).toString(16)),xs(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function CJ(e,t,n,r,o){var i=[xs(Math.round(e).toString(16)),xs(Math.round(t).toString(16)),xs(Math.round(n).toString(16)),xs(kJ(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function kJ(e){return Math.round(parseFloat(e)*255).toString(16)}function TP(e){return Cr(e)/255}function Cr(e){return parseInt(e,16)}function EJ(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Wb={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 PJ(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=OJ(e)),typeof e=="object"&&(Ci(e.r)&&Ci(e.g)&&Ci(e.b)?(t=xJ(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ci(e.h)&&Ci(e.s)&&Ci(e.v)?(r=qp(e.s),o=qp(e.v),t=_J(e.h,r,o),s=!0,u="hsv"):Ci(e.h)&&Ci(e.s)&&Ci(e.l)&&(r=qp(e.s),i=qp(e.l),t=wJ(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=o4(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 AJ="[-\\+]?\\d+%?",TJ="[-\\+]?\\d*\\.\\d+%?",wa="(?:".concat(TJ,")|(?:").concat(AJ,")"),Vy="[\\s|\\(]+(".concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")\\s*\\)?"),Wy="[\\s|\\(]+(".concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")\\s*\\)?"),vo={CSS_UNIT:new RegExp(wa),rgb:new RegExp("rgb"+Vy),rgba:new RegExp("rgba"+Wy),hsl:new RegExp("hsl"+Vy),hsla:new RegExp("hsla"+Wy),hsv:new RegExp("hsv"+Vy),hsva:new RegExp("hsva"+Wy),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 OJ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wb[e])e=Wb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=vo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=vo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=vo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=vo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=vo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=vo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=vo.hex8.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),a:TP(n[4]),format:t?"name":"hex8"}:(n=vo.hex6.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),format:t?"name":"hex"}:(n=vo.hex4.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),a:TP(n[4]+n[4]),format:t?"name":"hex8"}:(n=vo.hex3.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ci(e){return Boolean(vo.CSS_UNIT.exec(String(e)))}var rd=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=EJ(t)),this.originalInput=t;var o=PJ(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=o4(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=PP(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=PP(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=EP(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=EP(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),AP(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),CJ(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(_n(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(_n(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="#"+AP(this.r,this.g,this.b,!1),n=0,r=Object.entries(Wb);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var r=!1,o=this.a<1&&this.a>=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=Gp(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=Gp(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=Gp(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=Gp(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;s<t;s++)o.push(new e({h:(r+s*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function i4(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(i4(e));return e.count=t,n}var r=IJ(e.hue,e.seed),o=RJ(r,e),i=DJ(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new rd(s)}function IJ(e,t){var n=NJ(e),r=Om(n,t);return r<0&&(r=360+r),r}function RJ(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return Om([0,100],t.seed);var n=a4(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 Om([r,o],t.seed)}function DJ(e,t,n){var r=MJ(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 Om([r,o],n.seed)}function MJ(e,t){for(var n=a4(e).lowerBounds,r=0;r<n.length-1;r++){var o=n[r][0],i=n[r][1],s=n[r+1][0],u=n[r+1][1];if(t>=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function NJ(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=l4.find(function(s){return s.name===e});if(n){var r=s4(n);if(r.hueRange)return r.hueRange}var o=new rd(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function a4(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=l4;t<n.length;t++){var r=n[t],o=s4(r);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function Om(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 s4(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 l4=[{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 FJ(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}var LJ=e=>Object.keys(e).length===0,ln=(e,t,n)=>{const r=FJ(e,`colors.${t}`,t),{isValid:o}=new rd(r);return o?r:n},$J=e=>t=>{const n=ln(t,e);return new rd(n).isDark()?"dark":"light"},BJ=e=>t=>$J(e)(t)==="dark",hu=(e,t)=>n=>{const r=ln(n,e);return new rd(r).setAlpha(t).toRgbString()};function OP(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 zJ(e){const t=i4().toHexString();return!e||LJ(e)?t:e.string&&e.colors?WJ(e.string,e.colors):e.string&&!e.colors?VJ(e.string):e.colors&&!e.string?jJ(e.colors):t}function VJ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1)n+=`00${(t>>r*8&255).toString(16)}`.substr(-2);return n}function WJ(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function jJ(e){return e[Math.floor(Math.random()*e.length)]}function J(e,t){return n=>n.colorMode==="dark"?t:e}function Tw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function UJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function u4(e){return UJ(e)&&e.reference?e.reference:String(e)}var Kg=(e,...t)=>t.map(u4).join(` ${e} `).replace(/calc/g,""),IP=(...e)=>`calc(${Kg("+",...e)})`,RP=(...e)=>`calc(${Kg("-",...e)})`,jb=(...e)=>`calc(${Kg("*",...e)})`,DP=(...e)=>`calc(${Kg("/",...e)})`,MP=e=>{const t=u4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:jb(t,-1)},Ti=Object.assign(e=>({add:(...t)=>Ti(IP(e,...t)),subtract:(...t)=>Ti(RP(e,...t)),multiply:(...t)=>Ti(jb(e,...t)),divide:(...t)=>Ti(DP(e,...t)),negate:()=>Ti(MP(e)),toString:()=>e.toString()}),{add:IP,subtract:RP,multiply:jb,divide:DP,negate:MP});function HJ(e){return!Number.isInteger(parseFloat(e.toString()))}function GJ(e,t="-"){return e.replace(/\s+/g,t)}function c4(e){const t=GJ(e.toString());return t.includes("\\.")?e:HJ(e)?t.replace(".","\\."):e}function qJ(e,t=""){return[t,c4(e)].filter(Boolean).join("-")}function KJ(e,t){return`var(${c4(e)}${t?`, ${t}`:""})`}function YJ(e,t=""){return`--${qJ(e,t)}`}function pr(e,t){const n=YJ(e,t?.prefix);return{variable:n,reference:KJ(n,XJ(t?.fallback))}}function XJ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:ZJ,defineMultiStyleConfig:QJ}=Rt(YQ.keys),JJ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},eee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},tee={pt:"2",px:"4",pb:"5"},nee={fontSize:"1.25em"},ree=ZJ({container:JJ,button:eee,panel:tee,icon:nee}),oee=QJ({baseStyle:ree}),{definePartsStyle:od,defineMultiStyleConfig:iee}=Rt(XQ.keys),Vi=Ga("alert-fg"),id=Ga("alert-bg"),aee=od({container:{bg:id.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Vi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Vi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ow(e){const{theme:t,colorScheme:n}=e,r=ln(t,`${n}.100`,n),o=hu(`${n}.200`,.16)(t);return J(r,o)(e)}var see=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`}}}),lee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Vi.reference}}}),uee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Vi.reference}}}),cee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e),r=J("white","gray.900")(e);return{container:{[id.variable]:`colors.${n}`,[Vi.variable]:`colors.${r}`,color:Vi.reference}}}),fee={subtle:see,"left-accent":lee,"top-accent":uee,solid:cee},dee=iee({baseStyle:aee,variants:fee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),f4={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"},pee={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"},hee={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},mee={...f4,...pee,container:hee},d4=mee,gee=e=>typeof e=="function";function Yt(e,...t){return gee(e)?e(...t):e}var{definePartsStyle:p4,defineMultiStyleConfig:vee}=Rt(ZQ.keys),yee=e=>({borderRadius:"full",border:"0.2em solid",borderColor:J("white","gray.800")(e)}),bee=e=>({bg:J("gray.200","whiteAlpha.400")(e)}),See=e=>{const{name:t,theme:n}=e,r=t?zJ({string:t}):"gray.400",o=BJ(r)(n);let i="white";o||(i="gray.800");const s=J("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},xee=p4(e=>({badge:Yt(yee,e),excessLabel:Yt(bee,e),container:Yt(See,e)}));function ia(e){const t=e!=="100%"?d4[e]:void 0;return p4({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 wee={"2xs":ia(4),xs:ia(6),sm:ia(8),md:ia(12),lg:ia(16),xl:ia(24),"2xl":ia(32),full:ia("100%")},_ee=vee({baseStyle:xee,sizes:wee,defaultProps:{size:"md"}}),Cee={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},kee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.500`,.6)(n);return{bg:J(`${t}.500`,r)(e),color:J("white","whiteAlpha.800")(e)}},Eee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.200`,.16)(n);return{bg:J(`${t}.100`,r)(e),color:J(`${t}.800`,`${t}.200`)(e)}},Pee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.200`,.8)(n),o=ln(n,`${t}.500`),i=J(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},Aee={solid:kee,subtle:Eee,outline:Pee},Hc={baseStyle:Cee,variants:Aee,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Tee,definePartsStyle:Oee}=Rt(QQ.keys),Iee={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Ree=Oee({link:Iee}),Dee=Tee({baseStyle:Ree}),Mee={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"}}},h4=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("inherit","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=hu(`${t}.200`,.12)(n),o=hu(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,o)(e)}}},Nee=e=>{const{colorScheme:t}=e,n=J("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"},...Yt(h4,e)}},Fee={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Lee=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=J("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Fee[t]??{},s=J(n,`${t}.200`)(e);return{bg:s,color:J(r,"gray.800")(e),_hover:{bg:J(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:J(i,`${t}.400`)(e)}}},$ee=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:J(`${t}.700`,`${t}.500`)(e)}}},Bee={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},zee={ghost:h4,outline:Nee,solid:Lee,link:$ee,unstyled:Bee},Vee={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"}},Wee={baseStyle:Mee,variants:zee,sizes:Vee,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ch,defineMultiStyleConfig:jee}=Rt(JQ.keys),Gc=Ga("checkbox-size"),Uee=e=>{const{colorScheme:t}=e;return{w:Gc.reference,h:Gc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e),_hover:{bg:J(`${t}.600`,`${t}.300`)(e),borderColor:J(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:J("gray.200","transparent")(e),bg:J("gray.200","whiteAlpha.300")(e),color:J("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e)},_disabled:{bg:J("gray.100","whiteAlpha.100")(e),borderColor:J("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:J("red.500","red.300")(e)}}},Hee={_disabled:{cursor:"not-allowed"}},Gee={userSelect:"none",_disabled:{opacity:.4}},qee={transitionProperty:"transform",transitionDuration:"normal"},Kee=Ch(e=>({icon:qee,container:Hee,control:Yt(Uee,e),label:Gee})),Yee={sm:Ch({control:{[Gc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ch({control:{[Gc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ch({control:{[Gc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Im=jee({baseStyle:Kee,sizes:Yee,defaultProps:{size:"md",colorScheme:"blue"}}),qc=pr("close-button-size"),Xee=e=>{const t=J("blackAlpha.100","whiteAlpha.100")(e),n=J("blackAlpha.200","whiteAlpha.200")(e);return{w:[qc.reference],h:[qc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},Zee={lg:{[qc.variable]:"sizes.10",fontSize:"md"},md:{[qc.variable]:"sizes.8",fontSize:"xs"},sm:{[qc.variable]:"sizes.6",fontSize:"2xs"}},Qee={baseStyle:Xee,sizes:Zee,defaultProps:{size:"md"}},{variants:Jee,defaultProps:ete}=Hc,tte={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},nte={baseStyle:tte,variants:Jee,defaultProps:ete},rte={w:"100%",mx:"auto",maxW:"prose",px:"4"},ote={baseStyle:rte},ite={opacity:.6,borderColor:"inherit"},ate={borderStyle:"solid"},ste={borderStyle:"dashed"},lte={solid:ate,dashed:ste},ute={baseStyle:ite,variants:lte,defaultProps:{variant:"solid"}},{definePartsStyle:Ub,defineMultiStyleConfig:cte}=Rt(eJ.keys);function Sl(e){return Ub(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var fte={bg:"blackAlpha.600",zIndex:"overlay"},dte={display:"flex",zIndex:"modal",justifyContent:"center"},pte=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:J("white","gray.700")(e),color:"inherit",boxShadow:J("lg","dark-lg")(e)}},hte={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mte={position:"absolute",top:"2",insetEnd:"3"},gte={px:"6",py:"2",flex:"1",overflow:"auto"},vte={px:"6",py:"4"},yte=Ub(e=>({overlay:fte,dialogContainer:dte,dialog:Yt(pte,e),header:hte,closeButton:mte,body:gte,footer:vte})),bte={xs:Sl("xs"),sm:Sl("md"),md:Sl("lg"),lg:Sl("2xl"),xl:Sl("4xl"),full:Sl("full")},Ste=cte({baseStyle:yte,sizes:bte,defaultProps:{size:"xs"}}),{definePartsStyle:xte,defineMultiStyleConfig:wte}=Rt(tJ.keys),_te={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Cte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},kte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ete=xte({preview:_te,input:Cte,textarea:kte}),Pte=wte({baseStyle:Ete}),{definePartsStyle:Ate,defineMultiStyleConfig:Tte}=Rt(nJ.keys),Ote=e=>({marginStart:"1",color:J("red.500","red.300")(e)}),Ite=e=>({mt:"2",color:J("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Rte=Ate(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Yt(Ote,e),helperText:Yt(Ite,e)})),Dte=Tte({baseStyle:Rte}),{definePartsStyle:Mte,defineMultiStyleConfig:Nte}=Rt(rJ.keys),Fte=e=>({color:J("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Lte=e=>({marginEnd:"0.5em",color:J("red.500","red.300")(e)}),$te=Mte(e=>({text:Yt(Fte,e),icon:Yt(Lte,e)})),Bte=Nte({baseStyle:$te}),zte={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Vte={baseStyle:zte},Wte={fontFamily:"heading",fontWeight:"bold"},jte={"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}},Ute={baseStyle:Wte,sizes:jte,defaultProps:{size:"xl"}},{definePartsStyle:Ri,defineMultiStyleConfig:Hte}=Rt(oJ.keys),Gte=Ri({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),aa={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"}},qte={lg:Ri({field:aa.lg,addon:aa.lg}),md:Ri({field:aa.md,addon:aa.md}),sm:Ri({field:aa.sm,addon:aa.sm}),xs:Ri({field:aa.xs,addon:aa.xs})};function Iw(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var Kte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r),boxShadow:`0 0 0 1px ${ln(t,r)}`},_focusVisible:{zIndex:1,borderColor:ln(t,n),boxShadow:`0 0 0 1px ${ln(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),Yte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r)},_focusVisible:{bg:"transparent",borderColor:ln(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),Xte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r),boxShadow:`0px 1px 0px 0px ${ln(t,r)}`},_focusVisible:{borderColor:ln(t,n),boxShadow:`0px 1px 0px 0px ${ln(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Zte=Ri({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Qte={outline:Kte,filled:Yte,flushed:Xte,unstyled:Zte},tt=Hte({baseStyle:Gte,sizes:qte,variants:Qte,defaultProps:{size:"md",variant:"outline"}}),Jte=e=>({bg:J("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),ene={baseStyle:Jte},tne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},nne={baseStyle:tne},{defineMultiStyleConfig:rne,definePartsStyle:one}=Rt(iJ.keys),ine={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},ane=one({icon:ine}),sne=rne({baseStyle:ane}),{defineMultiStyleConfig:lne,definePartsStyle:une}=Rt(aJ.keys),cne=e=>({bg:J("#fff","gray.700")(e),boxShadow:J("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),fne=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:J("gray.100","whiteAlpha.100")(e)},_active:{bg:J("gray.200","whiteAlpha.200")(e)},_expanded:{bg:J("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),dne={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},pne={opacity:.6},hne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},mne={transitionProperty:"common",transitionDuration:"normal"},gne=une(e=>({button:mne,list:Yt(cne,e),item:Yt(fne,e),groupTitle:dne,command:pne,divider:hne})),vne=lne({baseStyle:gne}),{defineMultiStyleConfig:yne,definePartsStyle:Hb}=Rt(sJ.keys),bne={bg:"blackAlpha.600",zIndex:"modal"},Sne=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},xne=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:J("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:J("lg","dark-lg")(e)}},wne={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},_ne={position:"absolute",top:"2",insetEnd:"3"},Cne=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},kne={px:"6",py:"4"},Ene=Hb(e=>({overlay:bne,dialogContainer:Yt(Sne,e),dialog:Yt(xne,e),header:wne,closeButton:_ne,body:Yt(Cne,e),footer:kne}));function go(e){return Hb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Pne={xs:go("xs"),sm:go("sm"),md:go("md"),lg:go("lg"),xl:go("xl"),"2xl":go("2xl"),"3xl":go("3xl"),"4xl":go("4xl"),"5xl":go("5xl"),"6xl":go("6xl"),full:go("full")},Ane=yne({baseStyle:Ene,sizes:Pne,defaultProps:{size:"md"}}),Tne={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"}},m4=Tne,{defineMultiStyleConfig:One,definePartsStyle:g4}=Rt(lJ.keys),Rw=pr("number-input-stepper-width"),v4=pr("number-input-input-padding"),Ine=Ti(Rw).add("0.5rem").toString(),Rne={[Rw.variable]:"sizes.6",[v4.variable]:Ine},Dne=e=>{var t;return((t=Yt(tt.baseStyle,e))==null?void 0:t.field)??{}},Mne={width:[Rw.reference]},Nne=e=>({borderStart:"1px solid",borderStartColor:J("inherit","whiteAlpha.300")(e),color:J("inherit","whiteAlpha.800")(e),_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Fne=g4(e=>({root:Rne,field:Dne,stepperGroup:Mne,stepper:Yt(Nne,e)??{}}));function Kp(e){var t,n;const r=(t=tt.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=m4.fontSizes[i];return g4({field:{...r.field,paddingInlineEnd:v4.reference,verticalAlign:"top"},stepper:{fontSize:Ti(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Lne={xs:Kp("xs"),sm:Kp("sm"),md:Kp("md"),lg:Kp("lg")},$ne=One({baseStyle:Fne,sizes:Lne,variants:tt.variants,defaultProps:tt.defaultProps}),NP,Bne={...(NP=tt.baseStyle)==null?void 0:NP.field,textAlign:"center"},zne={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"}},FP,Vne={outline:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((FP=tt.variants)==null?void 0:FP.unstyled.field)??{}},Wne={baseStyle:Bne,sizes:zne,variants:Vne,defaultProps:tt.defaultProps},{defineMultiStyleConfig:jne,definePartsStyle:Une}=Rt(uJ.keys),jy=pr("popper-bg"),Hne=pr("popper-arrow-bg"),Gne=pr("popper-arrow-shadow-color"),qne={zIndex:10},Kne=e=>{const t=J("white","gray.700")(e),n=J("gray.200","whiteAlpha.300")(e);return{[jy.variable]:`colors.${t}`,bg:jy.reference,[Hne.variable]:jy.reference,[Gne.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Yne={px:3,py:2,borderBottomWidth:"1px"},Xne={px:3,py:2},Zne={px:3,py:2,borderTopWidth:"1px"},Qne={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Jne=Une(e=>({popper:qne,content:Kne(e),header:Yne,body:Xne,footer:Zne,closeButton:Qne})),ere=jne({baseStyle:Jne}),{defineMultiStyleConfig:tre,definePartsStyle:_c}=Rt(cJ.keys),nre=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=J(OP(),OP("1rem","rgba(0,0,0,0.1)"))(e),s=J(`${t}.500`,`${t}.200`)(e),u=`linear-gradient(
to right,
transparent 0%,
${ln(n,s)} 50%,
transparent 100%
)`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},rre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ore=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),ire=e=>({transitionProperty:"common",transitionDuration:"slow",...nre(e)}),are=_c(e=>({label:rre,filledTrack:ire(e),track:ore(e)})),sre={xs:_c({track:{h:"1"}}),sm:_c({track:{h:"2"}}),md:_c({track:{h:"3"}}),lg:_c({track:{h:"4"}})},lre=tre({sizes:sre,baseStyle:are,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ure,definePartsStyle:kh}=Rt(fJ.keys),cre=e=>{var t;const n=(t=Yt(Im.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"}}}},fre=kh(e=>{var t,n,r,o;return{label:(n=(t=Im).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Im).baseStyle)==null?void 0:o.call(r,e).container,control:cre(e)}}),dre={md:kh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:kh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:kh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},pre=ure({baseStyle:fre,sizes:dre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hre,definePartsStyle:mre}=Rt(dJ.keys),gre=e=>{var t;return{...(t=tt.baseStyle)==null?void 0:t.field,bg:J("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:J("white","gray.700")(e)}}},vre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},yre=mre(e=>({field:gre(e),icon:vre})),Yp={paddingInlineEnd:"8"},LP,$P,BP,zP,VP,WP,jP,UP,bre={lg:{...(LP=tt.sizes)==null?void 0:LP.lg,field:{...($P=tt.sizes)==null?void 0:$P.lg.field,...Yp}},md:{...(BP=tt.sizes)==null?void 0:BP.md,field:{...(zP=tt.sizes)==null?void 0:zP.md.field,...Yp}},sm:{...(VP=tt.sizes)==null?void 0:VP.sm,field:{...(WP=tt.sizes)==null?void 0:WP.sm.field,...Yp}},xs:{...(jP=tt.sizes)==null?void 0:jP.xs,field:{...(UP=tt.sizes)==null?void 0:UP.sm.field,...Yp},icon:{insetEnd:"1"}}},Sre=hre({baseStyle:yre,sizes:bre,variants:tt.variants,defaultProps:tt.defaultProps}),xre=Ga("skeleton-start-color"),wre=Ga("skeleton-end-color"),_re=e=>{const t=J("gray.100","gray.800")(e),n=J("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=ln(i,r),u=ln(i,o);return{[xre.variable]:s,[wre.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},Cre={baseStyle:_re},kre=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:J("white","gray.700")(e)}}),Ere={baseStyle:kre},{defineMultiStyleConfig:Pre,definePartsStyle:Yg}=Rt(pJ.keys),Mf=Ga("slider-thumb-size"),Nf=Ga("slider-track-size"),Are=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Tw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Tre=e=>({...Tw({orientation:e.orientation,horizontal:{h:Nf.reference},vertical:{w:Nf.reference}}),overflow:"hidden",borderRadius:"sm",bg:J("gray.200","whiteAlpha.200")(e),_disabled:{bg:J("gray.300","whiteAlpha.300")(e)}}),Ore=e=>{const{orientation:t}=e;return{...Tw({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:Mf.reference,h:Mf.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"}}},Ire=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:J(`${t}.500`,`${t}.200`)(e)}},Rre=Yg(e=>({container:Are(e),track:Tre(e),thumb:Ore(e),filledTrack:Ire(e)})),Dre=Yg({container:{[Mf.variable]:"sizes.4",[Nf.variable]:"sizes.1"}}),Mre=Yg({container:{[Mf.variable]:"sizes.3.5",[Nf.variable]:"sizes.1"}}),Nre=Yg({container:{[Mf.variable]:"sizes.2.5",[Nf.variable]:"sizes.0.5"}}),Fre={lg:Dre,md:Mre,sm:Nre},Lre=Pre({baseStyle:Rre,sizes:Fre,defaultProps:{size:"md",colorScheme:"blue"}}),hs=pr("spinner-size"),$re={width:[hs.reference],height:[hs.reference]},Bre={xs:{[hs.variable]:"sizes.3"},sm:{[hs.variable]:"sizes.4"},md:{[hs.variable]:"sizes.6"},lg:{[hs.variable]:"sizes.8"},xl:{[hs.variable]:"sizes.12"}},zre={baseStyle:$re,sizes:Bre,defaultProps:{size:"md"}},{defineMultiStyleConfig:Vre,definePartsStyle:y4}=Rt(hJ.keys),Wre={fontWeight:"medium"},jre={opacity:.8,marginBottom:"2"},Ure={verticalAlign:"baseline",fontWeight:"semibold"},Hre={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Gre=y4({container:{},label:Wre,helpText:jre,number:Ure,icon:Hre}),qre={md:y4({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Kre=Vre({baseStyle:Gre,sizes:qre,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Yre,definePartsStyle:Eh}=Rt(mJ.keys),Kc=pr("switch-track-width"),As=pr("switch-track-height"),Uy=pr("switch-track-diff"),Xre=Ti.subtract(Kc,As),Gb=pr("switch-thumb-x"),Zre=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Kc.reference],height:[As.reference],transitionProperty:"common",transitionDuration:"fast",bg:J("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:J(`${t}.500`,`${t}.200`)(e)}}},Qre={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[As.reference],height:[As.reference],_checked:{transform:`translateX(${Gb.reference})`}},Jre=Eh(e=>({container:{[Uy.variable]:Xre,[Gb.variable]:Uy.reference,_rtl:{[Gb.variable]:Ti(Uy).negate().toString()}},track:Zre(e),thumb:Qre})),eoe={sm:Eh({container:{[Kc.variable]:"1.375rem",[As.variable]:"sizes.3"}}),md:Eh({container:{[Kc.variable]:"1.875rem",[As.variable]:"sizes.4"}}),lg:Eh({container:{[Kc.variable]:"2.875rem",[As.variable]:"sizes.6"}})},toe=Yre({baseStyle:Jre,sizes:eoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:noe,definePartsStyle:Zl}=Rt(gJ.keys),roe=Zl({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"}}),Rm={"&[data-is-numeric=true]":{textAlign:"end"}},ooe=Zl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ioe=Zl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},caption:{color:J("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e)},td:{background:J(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),aoe={simple:ooe,striped:ioe,unstyled:{}},soe={sm:Zl({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:Zl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Zl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},loe=noe({baseStyle:roe,variants:aoe,sizes:soe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:uoe,definePartsStyle:ei}=Rt(vJ.keys),coe=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},foe=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}}},doe=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},poe={p:4},hoe=ei(e=>({root:coe(e),tab:foe(e),tablist:doe(e),tabpanel:poe})),moe={sm:ei({tab:{py:1,px:4,fontSize:"sm"}}),md:ei({tab:{fontSize:"md",py:2,px:4}}),lg:ei({tab:{fontSize:"lg",py:3,px:4}})},goe=ei(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:J(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),voe=ei(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:J("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),yoe=ei(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:J("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:J("#fff","gray.800")(e),color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),boe=ei(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ln(n,`${t}.700`),bg:ln(n,`${t}.100`)}}}}),Soe=ei(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:J("gray.600","inherit")(e),_selected:{color:J("#fff","gray.800")(e),bg:J(`${t}.600`,`${t}.300`)(e)}}}}),xoe=ei({}),woe={line:goe,enclosed:voe,"enclosed-colored":yoe,"soft-rounded":boe,"solid-rounded":Soe,unstyled:xoe},_oe=uoe({baseStyle:hoe,sizes:moe,variants:woe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Coe,definePartsStyle:Ts}=Rt(yJ.keys),koe={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Eoe={lineHeight:1.2,overflow:"visible"},Poe={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}},Aoe=Ts({container:koe,label:Eoe,closeButton:Poe}),Toe={sm:Ts({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ts({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Ts({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Ooe={subtle:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.subtle(e)}}),solid:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.solid(e)}}),outline:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.outline(e)}})},Ioe=Coe({variants:Ooe,baseStyle:Aoe,sizes:Toe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),HP,Roe={...(HP=tt.baseStyle)==null?void 0:HP.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},GP,Doe={outline:e=>{var t;return((t=tt.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=tt.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=tt.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((GP=tt.variants)==null?void 0:GP.unstyled.field)??{}},qP,KP,YP,XP,Moe={xs:((qP=tt.sizes)==null?void 0:qP.xs.field)??{},sm:((KP=tt.sizes)==null?void 0:KP.sm.field)??{},md:((YP=tt.sizes)==null?void 0:YP.md.field)??{},lg:((XP=tt.sizes)==null?void 0:XP.lg.field)??{}},Noe={baseStyle:Roe,sizes:Moe,variants:Doe,defaultProps:{size:"md",variant:"outline"}},Hy=pr("tooltip-bg"),ZP=pr("tooltip-fg"),Foe=pr("popper-arrow-bg"),Loe=e=>{const t=J("gray.700","gray.300")(e),n=J("whiteAlpha.900","gray.900")(e);return{bg:Hy.reference,color:ZP.reference,[Hy.variable]:`colors.${t}`,[ZP.variable]:`colors.${n}`,[Foe.variable]:Hy.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},$oe={baseStyle:Loe},Boe={Accordion:oee,Alert:dee,Avatar:_ee,Badge:Hc,Breadcrumb:Dee,Button:Wee,Checkbox:Im,CloseButton:Qee,Code:nte,Container:ote,Divider:ute,Drawer:Ste,Editable:Pte,Form:Dte,FormError:Bte,FormLabel:Vte,Heading:Ute,Input:tt,Kbd:ene,Link:nne,List:sne,Menu:vne,Modal:Ane,NumberInput:$ne,PinInput:Wne,Popover:ere,Progress:lre,Radio:pre,Select:Sre,Skeleton:Cre,SkipLink:Ere,Slider:Lre,Spinner:zre,Stat:Kre,Switch:toe,Table:loe,Tabs:_oe,Tag:Ioe,Textarea:Noe,Tooltip:$oe},zoe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Voe=zoe,Woe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},joe=Woe,Uoe={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"}},Hoe=Uoe,Goe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qoe=Goe,Koe={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"},Yoe=Koe,Xoe={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"},Zoe={"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)"},Qoe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Joe={property:Xoe,easing:Zoe,duration:Qoe},eie=Joe,tie={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},nie=tie,rie={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},oie=rie,iie={breakpoints:joe,zIndices:nie,radii:qoe,blur:oie,colors:Hoe,...m4,sizes:d4,shadows:Yoe,space:f4,borders:Voe,transition:eie},aie={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"}}},sie={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 lie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var uie=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function cie(e){return lie(e)?uie.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var fie="ltr",die={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},b4={semanticTokens:aie,direction:fie,...iie,components:Boe,styles:sie,config:die};function pie(e,t){const n=Nn(e);_.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function qb(e,...t){return hie(e)?e(...t):e}var hie=e=>typeof e=="function";function mie(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 gie=(e,t)=>e.find(n=>n.id===t);function QP(e,t){const n=S4(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function S4(e,t){for(const[n,r]of Object.entries(e))if(gie(r,t))return n}function vie(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 yie(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 bie={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ho=Sie(bie);function Sie(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=xie(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}=QP(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:x4(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=S4(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(QP(Ho.getState(),o).position)}}var JP=0;function xie(e,t={}){JP+=1;const n=t.id??JP,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ho.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var wie=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 ee.createElement(v3,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},E(b3,{children:c}),ee.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&E(S3,{id:f?.title,children:o}),u&&E(y3,{id:f?.description,display:"block",children:u})),i&&E(tw,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function x4(e={}){const{render:t,toastComponent:n=wie}=e;return o=>typeof t=="function"?t(o):E(n,{...o,...e})}function _ie(e,t){const n=o=>({...t,...o,position:mie(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=x4(i);return Ho.notify(s,i)};return r.update=(o,i)=>{Ho.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,...qb(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...qb(i.error,u)}))},r.closeAll=Ho.closeAll,r.close=Ho.close,r.isActive=Ho.isActive,r}function Cie(e){const{theme:t}=NI();return _.exports.useMemo(()=>_ie(t.direction,e),[e,t.direction])}var kie={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]}}},w4=_.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=kie,toastSpacing:p="0.5rem"}=e,[h,m]=_.exports.useState(u),v=mU();xm(()=>{v||r?.()},[v]),xm(()=>{m(u)},[u]);const y=()=>m(null),S=()=>m(u),k=()=>{v&&o()};_.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),pie(k,h);const x=_.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),b=_.exports.useMemo(()=>vie(s),[s]);return ee.createElement(Ao.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:s},style:b},ee.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:x},qb(n,{id:t,onClose:k})))});w4.displayName="ToastComponent";var Eie=e=>{const t=_.exports.useSyncExternalStore(Ho.subscribe,Ho.getState,Ho.getState),{children:n,motionVariants:r,component:o=w4,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return E("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:yie(c),children:E(Ui,{initial:!1,children:f.map(p=>E(o,{motionVariants:r,...p},p.id))})},c)});return ue(fr,{children:[n,E(Vs,{...i,children:u})]})};function Pie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Aie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Tie={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 hc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Kb=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Yb=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Oie(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:S,isDisabled:k,gutter:x,offset:b,direction:w,...P}=e,{isOpen:O,onOpen:M,onClose:N}=gX({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:V,getPopperProps:K,getArrowInnerProps:W,getArrowProps:te}=hX({enabled:O,placement:c,arrowPadding:y,modifiers:S,gutter:x,offset:b,direction:w}),xe=_.exports.useId(),we=`tooltip-${f??xe}`,Ce=_.exports.useRef(null),ve=_.exports.useRef(),Pe=_.exports.useRef(),j=_.exports.useCallback(()=>{Pe.current&&(clearTimeout(Pe.current),Pe.current=void 0),N()},[N]),X=Iie(Ce,j),q=_.exports.useCallback(()=>{if(!k&&!ve.current){X();const ce=Yb(Ce);ve.current=ce.setTimeout(M,t)}},[X,k,M,t]),R=_.exports.useCallback(()=>{ve.current&&(clearTimeout(ve.current),ve.current=void 0);const ce=Yb(Ce);Pe.current=ce.setTimeout(j,n)},[n,j]),H=_.exports.useCallback(()=>{O&&r&&R()},[r,R,O]),ae=_.exports.useCallback(()=>{O&&o&&R()},[o,R,O]),se=_.exports.useCallback(ce=>{O&&ce.key==="Escape"&&R()},[O,R]);Ob(()=>Kb(Ce),"keydown",i?se:void 0),_.exports.useEffect(()=>()=>{clearTimeout(ve.current),clearTimeout(Pe.current)},[]),Ob(()=>Ce.current,"mouseleave",R);const he=_.exports.useCallback((ce={},Ae=null)=>({...ce,ref:Kn(Ce,Ae,V),onMouseEnter:hc(ce.onMouseEnter,q),onClick:hc(ce.onClick,H),onMouseDown:hc(ce.onMouseDown,ae),onFocus:hc(ce.onFocus,q),onBlur:hc(ce.onBlur,R),"aria-describedby":O?we:void 0}),[q,R,ae,O,we,H,V]),ge=_.exports.useCallback((ce={},Ae=null)=>K({...ce,style:{...ce.style,[xn.arrowSize.var]:m?`${m}px`:void 0,[xn.arrowShadowColor.var]:v}},Ae),[K,m,v]),Ee=_.exports.useCallback((ce={},Ae=null)=>{const Me={...ce.style,position:"relative",transformOrigin:xn.transformOrigin.varRef};return{ref:Ae,...P,...ce,id:we,role:"tooltip",style:Me}},[P,we]);return{isOpen:O,show:q,hide:R,getTriggerProps:he,getTooltipProps:Ee,getTooltipPositionerProps:ge,getArrowProps:te,getArrowInnerProps:W}}var Gy="chakra-ui:close-tooltip";function Iie(e,t){return _.exports.useEffect(()=>{const n=Kb(e);return n.addEventListener(Gy,t),()=>n.removeEventListener(Gy,t)},[t,e]),()=>{const n=Kb(e),r=Yb(e);n.dispatchEvent(new r.CustomEvent(Gy))}}var Rie=ie(Ao.div),Xb=de((e,t)=>{const n=Zn("Tooltip",e),r=bt(e),o=xx(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:y,...S}=r,k=m??v??p??y;if(k){n.bg=k;const V=l7(o,"colors",k);n[xn.arrowBg.var]=V}const x=Oie({...S,direction:o.direction}),b=typeof i=="string"||u;let w;if(b)w=ee.createElement(ie.span,{tabIndex:0,...x.getTriggerProps()},i);else{const V=_.exports.Children.only(i);w=_.exports.cloneElement(V,x.getTriggerProps(V.props,V.ref))}const P=!!c,O=x.getTooltipProps({},t),M=P?Pie(O,["role","id"]):O,N=Aie(O,["role","id"]);return s?ue(fr,{children:[w,E(Ui,{children:x.isOpen&&ee.createElement(Vs,{...h},ee.createElement(ie.div,{...x.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ue(Rie,{variants:Tie,...M,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,P&&ee.createElement(ie.span,{srOnly:!0,...N},c),f&&ee.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ee.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):E(fr,{children:i})});Xb.displayName="Tooltip";var Die=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=E(H3,{environment:s,children:t});return E(EV,{theme:i,cssVarsRoot:u,children:ue(rI,{colorModeManager:n,options:i.config,children:[o?E(iK,{}):E(oK,{}),E(AV,{}),r?E(n5,{zIndex:r,children:c}):c]})})};function Mie({children:e,theme:t=b4,toastOptions:n,...r}){return ue(Die,{theme:t,...r,children:[e,E(Eie,{...n})]})}function Nie(...e){let t=[...e],n=e[e.length-1];return cie(n)&&t.length>1?t=t.slice(0,t.length-1):n=b4,uV(...t.map(r=>o=>Nl(r)?r(o):Fie(o,r)))(n)}function Fie(...e){return Fa({},...e,_4)}function _4(e,t,n,r){if((Nl(e)||Nl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Nl(e)?e(...o):e,s=Nl(t)?t(...o):t;return Fa({},i,s,_4)}}function wo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Va(e){return!!e&&!!e[Ot]}function Wi(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Hie}(e)||Array.isArray(e)||!!e[aA]||!!e.constructor[aA]||Dw(e)||Mw(e))}function Fs(e,t,n){n===void 0&&(n=!1),ku(e)===0?(n?Object.keys:Jl)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function ku(e){var t=e[Ot];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Dw(e)?2:Mw(e)?3:0}function Ql(e,t){return ku(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lie(e,t){return ku(e)===2?e.get(t):e[t]}function C4(e,t,n){var r=ku(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Dw(e){return jie&&e instanceof Map}function Mw(e){return Uie&&e instanceof Set}function ds(e){return e.o||e.t}function Nw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P4(e);delete t[Ot];for(var n=Jl(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Fw(e,t){return t===void 0&&(t=!1),Lw(e)||Va(e)||!Wi(e)||(ku(e)>1&&(e.set=e.add=e.clear=e.delete=$ie),Object.freeze(e),t&&Fs(e,function(n,r){return Fw(r,!0)},!0)),e}function $ie(){wo(2)}function Lw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ti(e){var t=eS[e];return t||wo(18,e),t}function Bie(e,t){eS[e]||(eS[e]=t)}function Zb(){return Ff}function qy(e,t){t&&(ti("Patches"),e.u=[],e.s=[],e.v=t)}function Dm(e){Qb(e),e.p.forEach(zie),e.p=null}function Qb(e){e===Ff&&(Ff=e.l)}function eA(e){return Ff={p:[],l:Ff,h:e,m:!0,_:0}}function zie(e){var t=e[Ot];t.i===0||t.i===1?t.j():t.O=!0}function Ky(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ti("ES5").S(t,e,r),r?(n[Ot].P&&(Dm(t),wo(4)),Wi(e)&&(e=Mm(t,e),t.l||Nm(t,e)),t.u&&ti("Patches").M(n[Ot].t,e,t.u,t.s)):e=Mm(t,n,[]),Dm(t),t.u&&t.v(t.u,t.s),e!==E4?e:void 0}function Mm(e,t,n){if(Lw(t))return t;var r=t[Ot];if(!r)return Fs(t,function(i,s){return tA(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Nm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Nw(r.k):r.o;Fs(r.i===3?new Set(o):o,function(i,s){return tA(e,r,o,i,s,n)}),Nm(e,o,!1),n&&e.u&&ti("Patches").R(r,n,e.u,e.s)}return r.o}function tA(e,t,n,r,o,i){if(Va(o)){var s=Mm(e,o,i&&t&&t.i!==3&&!Ql(t.D,r)?i.concat(r):void 0);if(C4(n,r,s),!Va(s))return;e.m=!1}if(Wi(o)&&!Lw(o)){if(!e.h.F&&e._<1)return;Mm(e,o),t&&t.A.l||Nm(e,o)}}function Nm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Fw(t,n)}function Yy(e,t){var n=e[Ot];return(n?ds(n):e)[t]}function nA(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 ga(e){e.P||(e.P=!0,e.l&&ga(e.l))}function Xy(e){e.o||(e.o=Nw(e.t))}function Jb(e,t,n){var r=Dw(t)?ti("MapSet").N(t,n):Mw(t)?ti("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:Zb(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=Lf;s&&(c=[u],f=Cc);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):ti("ES5").J(t,n);return(n?n.A:Zb()).p.push(r),r}function Vie(e){return Va(e)||wo(22,e),function t(n){if(!Wi(n))return n;var r,o=n[Ot],i=ku(n);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,r=rA(n,i),o.I=!1}else r=rA(n,i);return Fs(r,function(s,u){o&&Lie(o.t,s)===u||C4(r,s,t(u))}),i===3?new Set(r):r}(e)}function rA(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nw(e)}function Wie(){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[Ot];return Lf.get(c,i)},set:function(c){var f=this[Ot];Lf.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][Ot];if(!u.P)switch(u.i){case 5:r(u)&&ga(u);break;case 4:n(u)&&ga(u)}}}function n(i){for(var s=i.t,u=i.k,c=Jl(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==Ot){var h=s[p];if(h===void 0&&!Ql(s,p))return!0;var m=u[p],v=m&&m[Ot];if(v?v.t!==h:!k4(m,h))return!0}}var y=!!s[Ot];return c.length!==Jl(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;c<s.length;c++)if(!s.hasOwnProperty(c))return!0;return!1}var o={};Bie("ES5",{J:function(i,s){var u=Array.isArray(i),c=function(p,h){if(p){for(var m=Array(h.length),v=0;v<h.length;v++)Object.defineProperty(m,""+v,e(v,!0));return m}var y=P4(h);delete y[Ot];for(var S=Jl(y),k=0;k<S.length;k++){var x=S[k];y[x]=e(x,p||!!y[x].enumerable)}return Object.create(Object.getPrototypeOf(h),y)}(u,i),f={i:u?5:4,A:s?s.A:Zb(),P:!1,I:!1,D:{},l:s,t:i,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,Ot,{value:f,writable:!0}),c},S:function(i,s,u){u?Va(s)&&s[Ot].A===i&&t(i.p):(i.u&&function c(f){if(f&&typeof f=="object"){var p=f[Ot];if(p){var h=p.t,m=p.k,v=p.D,y=p.i;if(y===4)Fs(m,function(w){w!==Ot&&(h[w]!==void 0||Ql(h,w)?v[w]||c(m[w]):(v[w]=!0,ga(p)))}),Fs(h,function(w){m[w]!==void 0||Ql(m,w)||(v[w]=!1,ga(p))});else if(y===5){if(r(p)&&(ga(p),v.length=!0),m.length<h.length)for(var S=m.length;S<h.length;S++)v[S]=!1;else for(var k=h.length;k<m.length;k++)v[k]=!0;for(var x=Math.min(m.length,h.length),b=0;b<x;b++)m.hasOwnProperty(b)||(v[b]=!0),v[b]===void 0&&c(m[b])}}}}(i.p[0]),t(i.p))},K:function(i){return i.i===4?n(i):r(i)}})}var oA,Ff,$w=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jie=typeof Map<"u",Uie=typeof Set<"u",iA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",E4=$w?Symbol.for("immer-nothing"):((oA={})["immer-nothing"]=!0,oA),aA=$w?Symbol.for("immer-draftable"):"__$immer_draftable",Ot=$w?Symbol.for("immer-state"):"__$immer_state",Hie=""+Object.prototype.constructor,Jl=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,P4=Object.getOwnPropertyDescriptors||function(e){var t={};return Jl(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},eS={},Lf={get:function(e,t){if(t===Ot)return e;var n=ds(e);if(!Ql(n,t))return function(o,i,s){var u,c=nA(i,s);return c?"value"in c?c.value:(u=c.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Wi(r)?r:r===Yy(e.t,t)?(Xy(e),e.o[t]=Jb(e.A.h,r,e)):r},has:function(e,t){return t in ds(e)},ownKeys:function(e){return Reflect.ownKeys(ds(e))},set:function(e,t,n){var r=nA(ds(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Yy(ds(e),t),i=o?.[Ot];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(k4(n,o)&&(n!==void 0||Ql(e.t,t)))return!0;Xy(e),ga(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Yy(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Xy(e),ga(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ds(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){wo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){wo(12)}},Cc={};Fs(Lf,function(e,t){Cc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cc.deleteProperty=function(e,t){return Cc.set.call(this,e,t,void 0)},Cc.set=function(e,t,n){return Lf.set.call(this,e[0],t,n,e[0])};var Gie=function(){function e(n){var r=this;this.g=iA,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var c=r;return function(S){var k=this;S===void 0&&(S=u);for(var x=arguments.length,b=Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];return c.produce(S,function(P){var O;return(O=i).call.apply(O,[k,P].concat(b))})}}var f;if(typeof i!="function"&&wo(6),s!==void 0&&typeof s!="function"&&wo(7),Wi(o)){var p=eA(r),h=Jb(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Dm(p):Qb(p)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return qy(p,s),Ky(S,p)},function(S){throw Dm(p),S}):(qy(p,s),Ky(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===E4&&(f=void 0),r.F&&Fw(f,!0),s){var v=[],y=[];ti("Patches").M(o,f,v,y),s(v,y)}return f}wo(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,u,c=r.produce(o,i,function(f,p){s=f,u=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(f){return[f,s,u]}):[c,s,u]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Wi(n)||wo(8),Va(n)&&(n=Vie(n));var r=eA(this),o=Jb(this,n,void 0);return o[Ot].C=!0,Qb(r),o},t.finishDraft=function(n,r){var o=n&&n[Ot],i=o.A;return qy(i,r),Ky(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!iA&&wo(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=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=ti("Patches").$;return Va(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Ir=new Gie,A4=Ir.produce;Ir.produceWithPatches.bind(Ir);Ir.setAutoFreeze.bind(Ir);Ir.setUseProxies.bind(Ir);Ir.applyPatches.bind(Ir);Ir.createDraft.bind(Ir);Ir.finishDraft.bind(Ir);function sA(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 lA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){m5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var uA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Zy=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fm={INIT:"@@redux/INIT"+Zy(),REPLACE:"@@redux/REPLACE"+Zy(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zy()}};function qie(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Dn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Dn(1));return n(Bw)(e,t)}if(typeof e!="function")throw new Error(Dn(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(Dn(3));return i}function h(S){if(typeof S!="function")throw new Error(Dn(4));if(c)throw new Error(Dn(5));var k=!0;return f(),u.push(S),function(){if(!!k){if(c)throw new Error(Dn(6));k=!1,f();var b=u.indexOf(S);u.splice(b,1),s=null}}}function m(S){if(!qie(S))throw new Error(Dn(7));if(typeof S.type>"u")throw new Error(Dn(8));if(c)throw new Error(Dn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var k=s=u,x=0;x<k.length;x++){var b=k[x];b()}return S}function v(S){if(typeof S!="function")throw new Error(Dn(10));o=S,m({type:Fm.REPLACE})}function y(){var S,k=h;return S={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Dn(11));function w(){b.next&&b.next(p())}w();var P=k(w);return{unsubscribe:P}}},S[uA]=function(){return this},S}return m({type:Fm.INIT}),r={dispatch:m,subscribe:h,getState:p,replaceReducer:v},r[uA]=y,r}function Kie(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Fm.INIT});if(typeof r>"u")throw new Error(Dn(12));if(typeof n(void 0,{type:Fm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dn(13))})}function T4(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),s;try{Kie(n)}catch(u){s=u}return function(c,f){if(c===void 0&&(c={}),s)throw s;for(var p=!1,h={},m=0;m<i.length;m++){var v=i[m],y=n[v],S=c[v],k=y(S,f);if(typeof k>"u")throw f&&f.type,new Error(Dn(14));h[v]=k,p=p||k!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function Lm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function Yie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Dn(15))},s={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},u=t.map(function(c){return c(s)});return i=Lm.apply(void 0,u)(o.dispatch),lA(lA({},o),{},{dispatch:i})}}}var $m="NOT_FOUND";function Xie(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:$m},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Zie(e,t){var n=[];function r(u){var c=n.findIndex(function(p){return t(u,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return $m}function o(u,c){r(u)===$m&&(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 Qie=function(t,n){return t===n};function Jie(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function eae(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Qie:r,i=n.maxSize,s=i===void 0?1:i,u=n.resultEqualityCheck,c=Jie(o),f=s===1?Xie(c):Zie(s,c);function p(){var h=f.get(arguments);if(h===$m){if(h=e.apply(null,arguments),u){var m=f.getEntries(),v=m.find(function(y){return u(y.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function tae(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function nae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var f=0,p,h={memoizeOptions:void 0},m=u.pop();if(typeof m=="object"&&(h=m,m=u.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,y=v.memoizeOptions,S=y===void 0?n:y,k=Array.isArray(S)?S:[S],x=tae(u),b=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(k)),w=e(function(){for(var O=[],M=x.length,N=0;N<M;N++)O.push(x[N].apply(null,arguments));return p=b.apply(null,O),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:b,dependencies:x,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),w};return o}var Ht=nae(eae);function O4(e){var t=function(r){var o=r.dispatch,i=r.getState;return function(s){return function(u){return typeof u=="function"?u(o,i,e):s(u)}}};return t}var I4=O4();I4.withExtraArgument=O4;const cA=I4;var rae=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();globalThis&&globalThis.__generator;var Bm=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},oae=Object.defineProperty,fA=Object.getOwnPropertySymbols,iae=Object.prototype.hasOwnProperty,aae=Object.prototype.propertyIsEnumerable,dA=function(e,t,n){return t in e?oae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},$f=function(e,t){for(var n in t||(t={}))iae.call(t,n)&&dA(e,n,t[n]);if(fA)for(var r=0,o=fA(t);r<o.length;r++){var n=o[r];aae.call(t,n)&&dA(e,n,t[n])}return e},sae=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lm:Lm.apply(null,arguments)};function lae(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var uae=function(e){rae(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Bm([void 0],n[0].concat(this)))):new(t.bind.apply(t,Bm([void 0],n.concat(this))))},t}(Array);function tS(e){return Wi(e)?A4(e,function(){}):e}function cae(e){return typeof e=="boolean"}function fae(){return function(t){return dae(t)}}function dae(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new uae;return n&&(cae(n)?r.push(cA):r.push(cA.withExtraArgument(n.extraArgument))),r}var pae=!0;function hae(e){var t=fae(),n=e||{},r=n.reducer,o=r===void 0?void 0:r,i=n.middleware,s=i===void 0?t():i,u=n.devTools,c=u===void 0?!0:u,f=n.preloadedState,p=f===void 0?void 0:f,h=n.enhancers,m=h===void 0?void 0:h,v;if(typeof o=="function")v=o;else if(lae(o))v=T4(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;typeof y=="function"&&(y=y(t));var S=Yie.apply(void 0,y),k=Lm;c&&(k=sae($f({trace:!pae},typeof c=="object"&&c)));var x=[S];Array.isArray(m)?x=Bm([S],m):typeof m=="function"&&(x=m(x));var b=k.apply(void 0,x);return Bw(v,p,b)}function Rr(e,t){function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t){var i=t.apply(void 0,r);if(!i)throw new Error("prepareAction did not return an object");return $f($f({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function R4(e){var t={},n=[],r,o={addCase:function(i,s){var u=typeof i=="string"?i:i.type;if(u in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[u]=s,o},addMatcher:function(i,s){return n.push({matcher:i,reducer:s}),o},addDefaultCase:function(i){return r=i,o}};return e(o),[t,n,r]}function mae(e){return typeof e=="function"}function gae(e,t,n,r){n===void 0&&(n=[]);var o=typeof t=="function"?R4(t):[t,n,r],i=o[0],s=o[1],u=o[2],c;if(mae(e))c=function(){return tS(e())};else{var f=tS(e);c=function(){return f}}function p(h,m){h===void 0&&(h=c());var v=Bm([i[m.type]],s.filter(function(y){var S=y.matcher;return S(m)}).map(function(y){var S=y.reducer;return S}));return v.filter(function(y){return!!y}).length===0&&(v=[u]),v.reduce(function(y,S){if(S)if(Va(y)){var k=y,x=S(k,m);return x===void 0?y:x}else{if(Wi(y))return A4(y,function(b){return S(b,m)});var x=S(y,m);if(x===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return y},h)}return p.getInitialState=c,p}function vae(e,t){return e+"/"+t}function zw(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:tS(e.initialState),r=e.reducers||{},o=Object.keys(r),i={},s={},u={};o.forEach(function(p){var h=r[p],m=vae(t,p),v,y;"reducer"in h?(v=h.reducer,y=h.prepare):v=h,i[p]=v,s[m]=v,u[p]=y?Rr(m,y):Rr(m)});function c(){var p=typeof e.extraReducers=="function"?R4(e.extraReducers):[e.extraReducers],h=p[0],m=h===void 0?{}:h,v=p[1],y=v===void 0?[]:v,S=p[2],k=S===void 0?void 0:S,x=$f($f({},m),s);return gae(n,x,y,k)}var f;return{name:t,reducer:function(p,h){return f||(f=c()),f(p,h)},actions:u,caseReducers:i,getInitialState:function(){return f||(f=c()),f.getInitialState()}}}var Vw="listenerMiddleware";Rr(Vw+"/add");Rr(Vw+"/removeAll");Rr(Vw+"/remove");Wie();var D4={exports:{}},M4={};/**
* @license React
* use-sync-external-store-shim.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 mu=_.exports;function yae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bae=typeof Object.is=="function"?Object.is:yae,Sae=mu.useState,xae=mu.useEffect,wae=mu.useLayoutEffect,_ae=mu.useDebugValue;function Cae(e,t){var n=t(),r=Sae({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return wae(function(){o.value=n,o.getSnapshot=t,Qy(o)&&i({inst:o})},[e,n,t]),xae(function(){return Qy(o)&&i({inst:o}),e(function(){Qy(o)&&i({inst:o})})},[e]),_ae(n),n}function Qy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bae(e,n)}catch{return!0}}function kae(e,t){return t()}var Eae=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kae:Cae;M4.useSyncExternalStore=mu.useSyncExternalStore!==void 0?mu.useSyncExternalStore:Eae;(function(e){e.exports=M4})(D4);var N4={exports:{}},F4={};/**
* @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 Xg=_.exports,Pae=D4.exports;function Aae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tae=typeof Object.is=="function"?Object.is:Aae,Oae=Pae.useSyncExternalStore,Iae=Xg.useRef,Rae=Xg.useEffect,Dae=Xg.useMemo,Mae=Xg.useDebugValue;F4.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Iae(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Dae(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,Tae(p,v))return y;var S=r(v);return o!==void 0&&o(y,S)?y:(p=v,h=S)}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=Oae(e,i[0],i[1]);return Rae(function(){s.hasValue=!0,s.value=u},[u]),Mae(u),u};(function(e){e.exports=F4})(N4);function Nae(e){e()}let L4=Nae;const Fae=e=>L4=e,Lae=()=>L4,Wa=ee.createContext(null);function $4(){return _.exports.useContext(Wa)}const $ae=()=>{throw new Error("uSES not initialized!")};let B4=$ae;const Bae=e=>{B4=e},zae=(e,t)=>e===t;function Vae(e=Wa){const t=e===Wa?$4:()=>_.exports.useContext(e);return function(r,o=zae){const{store:i,subscription:s,getServerState:u}=t(),c=B4(s.addNestedSub,i.getState,u||i.getState,r,o);return _.exports.useDebugValue(c),c}}const Wae=Vae();var jae={exports:{}},dt={};/**
* @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 Ww=Symbol.for("react.element"),jw=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),ev=Symbol.for("react.provider"),tv=Symbol.for("react.context"),Uae=Symbol.for("react.server_context"),nv=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),ov=Symbol.for("react.suspense_list"),iv=Symbol.for("react.memo"),av=Symbol.for("react.lazy"),Hae=Symbol.for("react.offscreen"),z4;z4=Symbol.for("react.module.reference");function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ww:switch(e=e.type,e){case Zg:case Jg:case Qg:case rv:case ov:return e;default:switch(e=e&&e.$$typeof,e){case Uae:case tv:case nv:case av:case iv:case ev:return e;default:return t}}case jw:return t}}}dt.ContextConsumer=tv;dt.ContextProvider=ev;dt.Element=Ww;dt.ForwardRef=nv;dt.Fragment=Zg;dt.Lazy=av;dt.Memo=iv;dt.Portal=jw;dt.Profiler=Jg;dt.StrictMode=Qg;dt.Suspense=rv;dt.SuspenseList=ov;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return io(e)===tv};dt.isContextProvider=function(e){return io(e)===ev};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ww};dt.isForwardRef=function(e){return io(e)===nv};dt.isFragment=function(e){return io(e)===Zg};dt.isLazy=function(e){return io(e)===av};dt.isMemo=function(e){return io(e)===iv};dt.isPortal=function(e){return io(e)===jw};dt.isProfiler=function(e){return io(e)===Jg};dt.isStrictMode=function(e){return io(e)===Qg};dt.isSuspense=function(e){return io(e)===rv};dt.isSuspenseList=function(e){return io(e)===ov};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===rv||e===ov||e===Hae||typeof e=="object"&&e!==null&&(e.$$typeof===av||e.$$typeof===iv||e.$$typeof===ev||e.$$typeof===tv||e.$$typeof===nv||e.$$typeof===z4||e.getModuleId!==void 0)};dt.typeOf=io;(function(e){e.exports=dt})(jae);function Gae(){const e=Lae();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 pA={notify(){},get:()=>[]};function qae(e,t){let n,r=pA;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=Gae())}function f(){n&&(n(),n=void 0,r.clear(),r=pA)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const Kae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yae=Kae?_.exports.useLayoutEffect:_.exports.useEffect;function Xae({store:e,context:t,children:n,serverState:r}){const o=_.exports.useMemo(()=>{const u=qae(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=_.exports.useMemo(()=>e.getState(),[e]);return Yae(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),E((t||Wa).Provider,{value:o,children:n})}function V4(e=Wa){const t=e===Wa?$4:()=>_.exports.useContext(e);return function(){const{store:r}=t();return r}}const Zae=V4();function Qae(e=Wa){const t=e===Wa?Zae:V4(e);return function(){return t().dispatch}}const Jae=Qae();Bae(N4.exports.useSyncExternalStoreWithSelector);Fae(Vf.exports.unstable_batchedUpdates);var Uw="persist:",W4="persist/FLUSH",Hw="persist/REHYDRATE",j4="persist/PAUSE",U4="persist/PERSIST",H4="persist/PURGE",G4="persist/REGISTER",ese=-1;function Ph(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ph=function(n){return typeof n}:Ph=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ph(e)}function hA(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 tse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(n,!0).forEach(function(r){nse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rse(e,t,n,r){r.debug;var o=tse({},n);return e&&Ph(e)==="object"&&Object.keys(e).forEach(function(i){i!=="_persist"&&t[i]===n[i]&&(o[i]=e[i])}),o}function ose(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:Uw).concat(e.key),s=e.storage,u;e.serialize===!1?u=function(O){return O}:typeof e.serialize=="function"?u=e.serialize:u=ise;var c=e.writeFailHandler||null,f={},p={},h=[],m=null,v=null,y=function(O){Object.keys(O).forEach(function(M){!x(M)||f[M]!==O[M]&&h.indexOf(M)===-1&&h.push(M)}),Object.keys(f).forEach(function(M){O[M]===void 0&&x(M)&&h.indexOf(M)===-1&&f[M]!==void 0&&h.push(M)}),m===null&&(m=setInterval(S,o)),f=O};function S(){if(h.length===0){m&&clearInterval(m),m=null;return}var P=h.shift(),O=r.reduce(function(M,N){return N.in(M,P,f)},f[P]);if(O!==void 0)try{p[P]=u(O)}catch(M){console.error("redux-persist/createPersistoid: error serializing state",M)}else delete p[P];h.length===0&&k()}function k(){Object.keys(p).forEach(function(P){f[P]===void 0&&delete p[P]}),v=s.setItem(i,u(p)).catch(b)}function x(P){return!(n&&n.indexOf(P)===-1&&P!=="_persist"||t&&t.indexOf(P)!==-1)}function b(P){c&&c(P)}var w=function(){for(;h.length!==0;)S();return v||Promise.resolve()};return{update:y,flush:w}}function ise(e){return JSON.stringify(e)}function ase(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Uw).concat(e.key),r=e.storage;e.debug;var o;return e.deserialize===!1?o=function(s){return s}:typeof e.deserialize=="function"?o=e.deserialize:o=sse,r.getItem(n).then(function(i){if(i)try{var s={},u=o(i);return Object.keys(u).forEach(function(c){s[c]=t.reduceRight(function(f,p){return p.out(f,c,u)},o(u[c]))}),s}catch(c){throw c}else return})}function sse(e){return JSON.parse(e)}function lse(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Uw).concat(e.key);return t.removeItem(n,use)}function use(e){}function mA(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 ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(n,!0).forEach(function(r){cse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fse(e,t){if(e==null)return{};var n=dse(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function dse(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var pse=5e3;function q4(e,t){var n=e.version!==void 0?e.version:ese;e.debug;var r=e.stateReconciler===void 0?rse:e.stateReconciler,o=e.getStoredState||ase,i=e.timeout!==void 0?e.timeout:pse,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=fse(m,["_persist"]),S=y;if(h.type===U4){var k=!1,x=function(V,K){k||(h.rehydrate(e.key,V,K),k=!0)};if(i&&setTimeout(function(){!k&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=ose(e)),v)return ki({},t(S,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(N){var V=e.migrate||function(K,W){return Promise.resolve(K)};V(N,n).then(function(K){x(K)},function(K){x(void 0,K)})},function(N){x(void 0,N)}),ki({},t(S,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===H4)return u=!0,h.result(lse(e)),ki({},t(S,h),{_persist:v});if(h.type===W4)return h.result(s&&s.flush()),ki({},t(S,h),{_persist:v});if(h.type===j4)c=!0;else if(h.type===Hw){if(u)return ki({},S,{_persist:ki({},v,{rehydrated:!0})});if(h.key===e.key){var b=t(S,h),w=h.payload,P=r!==!1&&w!==void 0?r(w,p,b,e):b,O=ki({},P,{_persist:ki({},v,{rehydrated:!0})});return f(O)}}}if(!v)return t(p,h);var M=t(S,h);return M===S?p:f(ki({},M,{_persist:v}))}}function gA(e){return gse(e)||mse(e)||hse()}function hse(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mse(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gse(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function vA(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 nS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(n,!0).forEach(function(r){vse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K4={registry:[],bootstrapped:!1},yse=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K4,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case G4:return nS({},t,{registry:[].concat(gA(t.registry),[n.key])});case Hw:var r=t.registry.indexOf(n.key),o=gA(t.registry);return o.splice(r,1),nS({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function bse(e,t,n){var r=n||!1,o=Bw(yse,K4,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:G4,key:f})},s=function(f,p,h){var m={type:Hw,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=nS({},o,{purge:function(){var f=[];return e.dispatch({type:H4,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:W4,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:j4})},persist:function(){e.dispatch({type:U4,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var Gw={},qw={};qw.__esModule=!0;qw.default=wse;function Ah(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ah=function(n){return typeof n}:Ah=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ah(e)}function Jy(){}var Sse={getItem:Jy,setItem:Jy,removeItem:Jy};function xse(e){if((typeof self>"u"?"undefined":Ah(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 wse(e){var t="".concat(e,"Storage");return xse(t)?self[t]:Sse}Gw.__esModule=!0;Gw.default=kse;var _se=Cse(qw);function Cse(e){return e&&e.__esModule?e:{default:e}}function kse(e){var t=(0,_se.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 Kw=void 0,Ese=Pse(Gw);function Pse(e){return e&&e.__esModule?e:{default:e}}var Ase=(0,Ese.default)("local");Kw=Ase;const Y4={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},Tse=Y4,X4=zw({name:"sd",initialState:Tse,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},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{prompt:n,steps:r,cfgScale:o,threshold:i,perlin:s,height:u,width:c,sampler:f,seed:p,img2imgStrength:h,gfpganStrength:m,upscalingLevel:v,upscalingStrength:y,initialImagePath:S,maskPath:k,seamless:x,shouldFitToWidthHeight:b}=t.payload;e.prompt=n??e.prompt,e.steps=r||e.steps,e.cfgScale=o||e.cfgScale,e.threshold=i||e.threshold,e.perlin=s||e.perlin,e.width=c||e.width,e.height=u||e.height,e.sampler=f||e.sampler,e.seed=p??e.seed,e.seamless=x??e.seamless,e.shouldFitToWidthHeight=b??e.shouldFitToWidthHeight,e.img2imgStrength=h??e.img2imgStrength,e.gfpganStrength=m??e.gfpganStrength,e.upscalingLevel=v??e.upscalingLevel,e.upscalingStrength=y??e.upscalingStrength,e.initialImagePath=S??e.initialImagePath,e.maskPath=k??e.maskPath,p&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!m,e.shouldRunESRGAN=!!v,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!S},resetSDState:e=>({...e,...Y4}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:Ose,setIterations:Ise,setSteps:Rse,setCfgScale:Dse,setThreshold:Mse,setPerlin:Nse,setHeight:Fse,setWidth:Lse,setSampler:$se,setSeed:zm,setSeamless:Bse,setImg2imgStrength:zse,setGfpganStrength:Vse,setUpscalingLevel:Wse,setUpscalingStrength:jse,setShouldUseInitImage:Use,setInitialImagePath:Yw,setMaskPath:Z4,resetSeed:Bfe,resetSDState:zfe,setShouldFitToWidthHeight:Hse,setParameter:Gse,setShouldGenerateVariations:qse,setSeedWeights:Kse,setVariationAmount:Yse,setAllParameters:Xw,setShouldRunGFPGAN:Xse,setShouldRunESRGAN:Zse,setShouldRandomizeSeed:Qse}=X4.actions,Jse=X4.reducer;var Ut={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* 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,S=2,k=1,x=2,b=4,w=8,P=16,O=32,M=64,N=128,V=256,K=512,W=30,te="...",xe=800,fe=16,we=1,Ce=2,ve=3,Pe=1/0,j=9007199254740991,X=17976931348623157e292,q=0/0,R=4294967295,H=R-1,ae=R>>>1,se=[["ary",N],["bind",k],["bindKey",x],["curry",w],["curryRight",P],["flip",K],["partial",O],["partialRight",M],["rearg",V]],he="[object Arguments]",ge="[object Array]",Ee="[object AsyncFunction]",ce="[object Boolean]",Ae="[object Date]",Me="[object DOMException]",mt="[object Error]",Dt="[object Function]",En="[object GeneratorFunction]",ye="[object Map]",Mt="[object Number]",Qt="[object Null]",it="[object Object]",hr="[object Promise]",mr="[object Proxy]",St="[object RegExp]",Ct="[object Set]",Jt="[object String]",zt="[object Symbol]",le="[object Undefined]",_e="[object WeakMap]",at="[object WeakSet]",nt="[object ArrayBuffer]",ne="[object DataView]",Ve="[object Float32Array]",xt="[object Float64Array]",hn="[object Int8Array]",Pn="[object Int16Array]",gr="[object Int32Array]",To="[object Uint8Array]",li="[object Uint8ClampedArray]",Ln="[object Uint16Array]",$r="[object Uint32Array]",Ka=/\b__p \+= '';/g,Us=/\b(__p \+=) '' \+/g,uv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pu=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,cv=RegExp(Pu.source),ui=RegExp(Hi.source),fv=/<%-([\s\S]+?)%>/g,dv=/<%([\s\S]+?)%>/g,sd=/<%=([\s\S]+?)%>/g,pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hv=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Au=/[\\^$.*+?()[\]{}|]/g,mv=RegExp(Au.source),Tu=/^\s+/,gv=/\s/,vv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gi=/\{\n\/\* \[wrapped with (.+)\] \*/,yv=/,? & /,bv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sv=/[()=,{}\[\]\/\s]/,xv=/\\(\\)?/g,wv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ci=/\w*$/,_v=/^[-+]0x[0-9a-f]+$/i,Cv=/^0b[01]+$/i,kv=/^\[object .+?Constructor\]$/,Ev=/^0o[0-7]+$/i,Pv=/^(?:0|[1-9]\d*)$/,Av=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qi=/($^)/,Tv=/['\n\r\u2028\u2029\\]/g,fi="\\ud800-\\udfff",Ou="\\u0300-\\u036f",Ov="\\ufe20-\\ufe2f",Hs="\\u20d0-\\u20ff",Iu=Ou+Ov+Hs,ld="\\u2700-\\u27bf",ud="a-z\\xdf-\\xf6\\xf8-\\xff",Iv="\\xac\\xb1\\xd7\\xf7",cd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rv="\\u2000-\\u206f",Dv=" \\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",fd="A-Z\\xc0-\\xd6\\xd8-\\xde",dd="\\ufe0e\\ufe0f",pd=Iv+cd+Rv+Dv,Ru="['\u2019]",Mv="["+fi+"]",hd="["+pd+"]",Gs="["+Iu+"]",md="\\d+",qs="["+ld+"]",Ks="["+ud+"]",gd="[^"+fi+pd+md+ld+ud+fd+"]",Du="\\ud83c[\\udffb-\\udfff]",vd="(?:"+Gs+"|"+Du+")",yd="[^"+fi+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",di="["+fd+"]",bd="\\u200d",Sd="(?:"+Ks+"|"+gd+")",Nv="(?:"+di+"|"+gd+")",Ys="(?:"+Ru+"(?:d|ll|m|re|s|t|ve))?",xd="(?:"+Ru+"(?:D|LL|M|RE|S|T|VE))?",wd=vd+"?",_d="["+dd+"]?",Xs="(?:"+bd+"(?:"+[yd,Mu,Nu].join("|")+")"+_d+wd+")*",Fu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zs=_d+wd+Xs,Fv="(?:"+[qs,Mu,Nu].join("|")+")"+Zs,Cd="(?:"+[yd+Gs+"?",Gs,Mu,Nu,Mv].join("|")+")",$u=RegExp(Ru,"g"),kd=RegExp(Gs,"g"),so=RegExp(Du+"(?="+Du+")|"+Cd+Zs,"g"),Ya=RegExp([di+"?"+Ks+"+"+Ys+"(?="+[hd,di,"$"].join("|")+")",Nv+"+"+xd+"(?="+[hd,di+Sd,"$"].join("|")+")",di+"?"+Sd+"+"+Ys,di+"+"+xd,Lu,Fu,md,Fv].join("|"),"g"),Lv=RegExp("["+bd+fi+Iu+dd+"]"),Ed=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$v=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pd=-1,gt={};gt[Ve]=gt[xt]=gt[hn]=gt[Pn]=gt[gr]=gt[To]=gt[li]=gt[Ln]=gt[$r]=!0,gt[he]=gt[ge]=gt[nt]=gt[ce]=gt[ne]=gt[Ae]=gt[mt]=gt[Dt]=gt[ye]=gt[Mt]=gt[it]=gt[St]=gt[Ct]=gt[Jt]=gt[_e]=!1;var pt={};pt[he]=pt[ge]=pt[nt]=pt[ne]=pt[ce]=pt[Ae]=pt[Ve]=pt[xt]=pt[hn]=pt[Pn]=pt[gr]=pt[ye]=pt[Mt]=pt[it]=pt[St]=pt[Ct]=pt[Jt]=pt[zt]=pt[To]=pt[li]=pt[Ln]=pt[$r]=!0,pt[mt]=pt[Dt]=pt[_e]=!1;var Ad={\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"},Bv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},L={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,me=parseInt,We=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,st=typeof self=="object"&&self&&self.Object===Object&&self,Fe=We||st||Function("return this")(),Be=t&&!t.nodeType&&t,Ze=Be&&!0&&e&&!e.nodeType&&e,$n=Ze&&Ze.exports===Be,mn=$n&&We.process,un=function(){try{var B=Ze&&Ze.require&&Ze.require("util").types;return B||mn&&mn.binding&&mn.binding("util")}catch{}}(),Qs=un&&un.isArrayBuffer,Js=un&&un.isDate,Bu=un&&un.isMap,e_=un&&un.isRegExp,t_=un&&un.isSet,n_=un&&un.isTypedArray;function vr(B,Y,G){switch(G.length){case 0:return B.call(Y);case 1:return B.call(Y,G[0]);case 2:return B.call(Y,G[0],G[1]);case 3:return B.call(Y,G[0],G[1],G[2])}return B.apply(Y,G)}function LD(B,Y,G,be){for(var De=-1,Qe=B==null?0:B.length;++De<Qe;){var rn=B[De];Y(be,rn,G(rn),B)}return be}function Br(B,Y){for(var G=-1,be=B==null?0:B.length;++G<be&&Y(B[G],G,B)!==!1;);return B}function $D(B,Y){for(var G=B==null?0:B.length;G--&&Y(B[G],G,B)!==!1;);return B}function r_(B,Y){for(var G=-1,be=B==null?0:B.length;++G<be;)if(!Y(B[G],G,B))return!1;return!0}function Ki(B,Y){for(var G=-1,be=B==null?0:B.length,De=0,Qe=[];++G<be;){var rn=B[G];Y(rn,G,B)&&(Qe[De++]=rn)}return Qe}function Td(B,Y){var G=B==null?0:B.length;return!!G&&el(B,Y,0)>-1}function zv(B,Y,G){for(var be=-1,De=B==null?0:B.length;++be<De;)if(G(Y,B[be]))return!0;return!1}function Tt(B,Y){for(var G=-1,be=B==null?0:B.length,De=Array(be);++G<be;)De[G]=Y(B[G],G,B);return De}function Yi(B,Y){for(var G=-1,be=Y.length,De=B.length;++G<be;)B[De+G]=Y[G];return B}function Vv(B,Y,G,be){var De=-1,Qe=B==null?0:B.length;for(be&&Qe&&(G=B[++De]);++De<Qe;)G=Y(G,B[De],De,B);return G}function BD(B,Y,G,be){var De=B==null?0:B.length;for(be&&De&&(G=B[--De]);De--;)G=Y(G,B[De],De,B);return G}function Wv(B,Y){for(var G=-1,be=B==null?0:B.length;++G<be;)if(Y(B[G],G,B))return!0;return!1}var zD=jv("length");function VD(B){return B.split("")}function WD(B){return B.match(bv)||[]}function o_(B,Y,G){var be;return G(B,function(De,Qe,rn){if(Y(De,Qe,rn))return be=Qe,!1}),be}function Od(B,Y,G,be){for(var De=B.length,Qe=G+(be?1:-1);be?Qe--:++Qe<De;)if(Y(B[Qe],Qe,B))return Qe;return-1}function el(B,Y,G){return Y===Y?eM(B,Y,G):Od(B,i_,G)}function jD(B,Y,G,be){for(var De=G-1,Qe=B.length;++De<Qe;)if(be(B[De],Y))return De;return-1}function i_(B){return B!==B}function a_(B,Y){var G=B==null?0:B.length;return G?Hv(B,Y)/G:q}function jv(B){return function(Y){return Y==null?n:Y[B]}}function Uv(B){return function(Y){return B==null?n:B[Y]}}function s_(B,Y,G,be,De){return De(B,function(Qe,rn,vt){G=be?(be=!1,Qe):Y(G,Qe,rn,vt)}),G}function UD(B,Y){var G=B.length;for(B.sort(Y);G--;)B[G]=B[G].value;return B}function Hv(B,Y){for(var G,be=-1,De=B.length;++be<De;){var Qe=Y(B[be]);Qe!==n&&(G=G===n?Qe:G+Qe)}return G}function Gv(B,Y){for(var G=-1,be=Array(B);++G<B;)be[G]=Y(G);return be}function HD(B,Y){return Tt(Y,function(G){return[G,B[G]]})}function l_(B){return B&&B.slice(0,d_(B)+1).replace(Tu,"")}function yr(B){return function(Y){return B(Y)}}function qv(B,Y){return Tt(Y,function(G){return B[G]})}function zu(B,Y){return B.has(Y)}function u_(B,Y){for(var G=-1,be=B.length;++G<be&&el(Y,B[G],0)>-1;);return G}function c_(B,Y){for(var G=B.length;G--&&el(Y,B[G],0)>-1;);return G}function GD(B,Y){for(var G=B.length,be=0;G--;)B[G]===Y&&++be;return be}var qD=Uv(Ad),KD=Uv(Bv);function YD(B){return"\\"+L[B]}function XD(B,Y){return B==null?n:B[Y]}function tl(B){return Lv.test(B)}function ZD(B){return Ed.test(B)}function QD(B){for(var Y,G=[];!(Y=B.next()).done;)G.push(Y.value);return G}function Kv(B){var Y=-1,G=Array(B.size);return B.forEach(function(be,De){G[++Y]=[De,be]}),G}function f_(B,Y){return function(G){return B(Y(G))}}function Xi(B,Y){for(var G=-1,be=B.length,De=0,Qe=[];++G<be;){var rn=B[G];(rn===Y||rn===p)&&(B[G]=p,Qe[De++]=G)}return Qe}function Id(B){var Y=-1,G=Array(B.size);return B.forEach(function(be){G[++Y]=be}),G}function JD(B){var Y=-1,G=Array(B.size);return B.forEach(function(be){G[++Y]=[be,be]}),G}function eM(B,Y,G){for(var be=G-1,De=B.length;++be<De;)if(B[be]===Y)return be;return-1}function tM(B,Y,G){for(var be=G+1;be--;)if(B[be]===Y)return be;return be}function nl(B){return tl(B)?rM(B):zD(B)}function lo(B){return tl(B)?oM(B):VD(B)}function d_(B){for(var Y=B.length;Y--&&gv.test(B.charAt(Y)););return Y}var nM=Uv(I);function rM(B){for(var Y=so.lastIndex=0;so.test(B);)++Y;return Y}function oM(B){return B.match(so)||[]}function iM(B){return B.match(Ya)||[]}var aM=function B(Y){Y=Y==null?Fe:rl.defaults(Fe.Object(),Y,rl.pick(Fe,$v));var G=Y.Array,be=Y.Date,De=Y.Error,Qe=Y.Function,rn=Y.Math,vt=Y.Object,Yv=Y.RegExp,sM=Y.String,zr=Y.TypeError,Rd=G.prototype,lM=Qe.prototype,ol=vt.prototype,Dd=Y["__core-js_shared__"],Md=lM.toString,lt=ol.hasOwnProperty,uM=0,p_=function(){var a=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Nd=ol.toString,cM=Md.call(vt),fM=Fe._,dM=Yv("^"+Md.call(lt).replace(Au,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fd=$n?Y.Buffer:n,Zi=Y.Symbol,Ld=Y.Uint8Array,h_=Fd?Fd.allocUnsafe:n,$d=f_(vt.getPrototypeOf,vt),m_=vt.create,g_=ol.propertyIsEnumerable,Bd=Rd.splice,v_=Zi?Zi.isConcatSpreadable:n,Vu=Zi?Zi.iterator:n,Xa=Zi?Zi.toStringTag:n,zd=function(){try{var a=ts(vt,"defineProperty");return a({},"",{}),a}catch{}}(),pM=Y.clearTimeout!==Fe.clearTimeout&&Y.clearTimeout,hM=be&&be.now!==Fe.Date.now&&be.now,mM=Y.setTimeout!==Fe.setTimeout&&Y.setTimeout,Vd=rn.ceil,Wd=rn.floor,Xv=vt.getOwnPropertySymbols,gM=Fd?Fd.isBuffer:n,y_=Y.isFinite,vM=Rd.join,yM=f_(vt.keys,vt),on=rn.max,An=rn.min,bM=be.now,SM=Y.parseInt,b_=rn.random,xM=Rd.reverse,Zv=ts(Y,"DataView"),Wu=ts(Y,"Map"),Qv=ts(Y,"Promise"),il=ts(Y,"Set"),ju=ts(Y,"WeakMap"),Uu=ts(vt,"create"),jd=ju&&new ju,al={},wM=ns(Zv),_M=ns(Wu),CM=ns(Qv),kM=ns(il),EM=ns(ju),Ud=Zi?Zi.prototype:n,Hu=Ud?Ud.valueOf:n,S_=Ud?Ud.toString:n;function A(a){if(Vt(a)&&!Ne(a)&&!(a instanceof He)){if(a instanceof Vr)return a;if(lt.call(a,"__wrapped__"))return x2(a)}return new Vr(a)}var sl=function(){function a(){}return function(l){if(!Nt(l))return{};if(m_)return m_(l);a.prototype=l;var d=new a;return a.prototype=n,d}}();function Hd(){}function Vr(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}A.templateSettings={escape:fv,evaluate:dv,interpolate:sd,variable:"",imports:{_:A}},A.prototype=Hd.prototype,A.prototype.constructor=A,Vr.prototype=sl(Hd.prototype),Vr.prototype.constructor=Vr;function He(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function PM(){var a=new He(this.__wrapped__);return a.__actions__=Qn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Qn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Qn(this.__views__),a}function AM(){if(this.__filtered__){var a=new He(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function TM(){var a=this.__wrapped__.value(),l=this.__dir__,d=Ne(a),g=l<0,C=d?a.length:0,T=VN(0,C,this.__views__),D=T.start,F=T.end,z=F-D,Z=g?F:D-1,Q=this.__iteratees__,re=Q.length,pe=0,ke=An(z,this.__takeCount__);if(!d||!g&&C==z&&ke==z)return U_(a,this.__actions__);var Oe=[];e:for(;z--&&pe<ke;){Z+=l;for(var $e=-1,Ie=a[Z];++$e<re;){var je=Q[$e],qe=je.iteratee,xr=je.type,Vn=qe(Ie);if(xr==Ce)Ie=Vn;else if(!Vn){if(xr==we)continue e;break e}}Oe[pe++]=Ie}return Oe}He.prototype=sl(Hd.prototype),He.prototype.constructor=He;function Za(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function OM(){this.__data__=Uu?Uu(null):{},this.size=0}function IM(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function RM(a){var l=this.__data__;if(Uu){var d=l[a];return d===c?n:d}return lt.call(l,a)?l[a]:n}function DM(a){var l=this.__data__;return Uu?l[a]!==n:lt.call(l,a)}function MM(a,l){var d=this.__data__;return this.size+=this.has(a)?0:1,d[a]=Uu&&l===n?c:l,this}Za.prototype.clear=OM,Za.prototype.delete=IM,Za.prototype.get=RM,Za.prototype.has=DM,Za.prototype.set=MM;function pi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function NM(){this.__data__=[],this.size=0}function FM(a){var l=this.__data__,d=Gd(l,a);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():Bd.call(l,d,1),--this.size,!0}function LM(a){var l=this.__data__,d=Gd(l,a);return d<0?n:l[d][1]}function $M(a){return Gd(this.__data__,a)>-1}function BM(a,l){var d=this.__data__,g=Gd(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}pi.prototype.clear=NM,pi.prototype.delete=FM,pi.prototype.get=LM,pi.prototype.has=$M,pi.prototype.set=BM;function hi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function zM(){this.size=0,this.__data__={hash:new Za,map:new(Wu||pi),string:new Za}}function VM(a){var l=op(this,a).delete(a);return this.size-=l?1:0,l}function WM(a){return op(this,a).get(a)}function jM(a){return op(this,a).has(a)}function UM(a,l){var d=op(this,a),g=d.size;return d.set(a,l),this.size+=d.size==g?0:1,this}hi.prototype.clear=zM,hi.prototype.delete=VM,hi.prototype.get=WM,hi.prototype.has=jM,hi.prototype.set=UM;function Qa(a){var l=-1,d=a==null?0:a.length;for(this.__data__=new hi;++l<d;)this.add(a[l])}function HM(a){return this.__data__.set(a,c),this}function GM(a){return this.__data__.has(a)}Qa.prototype.add=Qa.prototype.push=HM,Qa.prototype.has=GM;function uo(a){var l=this.__data__=new pi(a);this.size=l.size}function qM(){this.__data__=new pi,this.size=0}function KM(a){var l=this.__data__,d=l.delete(a);return this.size=l.size,d}function YM(a){return this.__data__.get(a)}function XM(a){return this.__data__.has(a)}function ZM(a,l){var d=this.__data__;if(d instanceof pi){var g=d.__data__;if(!Wu||g.length<o-1)return g.push([a,l]),this.size=++d.size,this;d=this.__data__=new hi(g)}return d.set(a,l),this.size=d.size,this}uo.prototype.clear=qM,uo.prototype.delete=KM,uo.prototype.get=YM,uo.prototype.has=XM,uo.prototype.set=ZM;function x_(a,l){var d=Ne(a),g=!d&&rs(a),C=!d&&!g&&na(a),T=!d&&!g&&!C&&fl(a),D=d||g||C||T,F=D?Gv(a.length,sM):[],z=F.length;for(var Z in a)(l||lt.call(a,Z))&&!(D&&(Z=="length"||C&&(Z=="offset"||Z=="parent")||T&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||yi(Z,z)))&&F.push(Z);return F}function w_(a){var l=a.length;return l?a[u0(0,l-1)]:n}function QM(a,l){return ip(Qn(a),Ja(l,0,a.length))}function JM(a){return ip(Qn(a))}function Jv(a,l,d){(d!==n&&!co(a[l],d)||d===n&&!(l in a))&&mi(a,l,d)}function Gu(a,l,d){var g=a[l];(!(lt.call(a,l)&&co(g,d))||d===n&&!(l in a))&&mi(a,l,d)}function Gd(a,l){for(var d=a.length;d--;)if(co(a[d][0],l))return d;return-1}function eN(a,l,d,g){return Qi(a,function(C,T,D){l(g,C,d(C),D)}),g}function __(a,l){return a&&Io(l,cn(l),a)}function tN(a,l){return a&&Io(l,er(l),a)}function mi(a,l,d){l=="__proto__"&&zd?zd(a,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):a[l]=d}function e0(a,l){for(var d=-1,g=l.length,C=G(g),T=a==null;++d<g;)C[d]=T?n:M0(a,l[d]);return C}function Ja(a,l,d){return a===a&&(d!==n&&(a=a<=d?a:d),l!==n&&(a=a>=l?a:l)),a}function Wr(a,l,d,g,C,T){var D,F=l&h,z=l&m,Z=l&v;if(d&&(D=C?d(a,g,C,T):d(a)),D!==n)return D;if(!Nt(a))return a;var Q=Ne(a);if(Q){if(D=jN(a),!F)return Qn(a,D)}else{var re=Tn(a),pe=re==Dt||re==En;if(na(a))return q_(a,F);if(re==it||re==he||pe&&!C){if(D=z||pe?{}:d2(a),!F)return z?RN(a,tN(D,a)):IN(a,__(D,a))}else{if(!pt[re])return C?a:{};D=UN(a,re,F)}}T||(T=new uo);var ke=T.get(a);if(ke)return ke;T.set(a,D),V2(a)?a.forEach(function(Ie){D.add(Wr(Ie,l,d,Ie,a,T))}):B2(a)&&a.forEach(function(Ie,je){D.set(je,Wr(Ie,l,d,je,a,T))});var Oe=Z?z?S0:b0:z?er:cn,$e=Q?n:Oe(a);return Br($e||a,function(Ie,je){$e&&(je=Ie,Ie=a[je]),Gu(D,je,Wr(Ie,l,d,je,a,T))}),D}function nN(a){var l=cn(a);return function(d){return C_(d,a,l)}}function C_(a,l,d){var g=d.length;if(a==null)return!g;for(a=vt(a);g--;){var C=d[g],T=l[C],D=a[C];if(D===n&&!(C in a)||!T(D))return!1}return!0}function k_(a,l,d){if(typeof a!="function")throw new zr(s);return Ju(function(){a.apply(n,d)},l)}function qu(a,l,d,g){var C=-1,T=Td,D=!0,F=a.length,z=[],Z=l.length;if(!F)return z;d&&(l=Tt(l,yr(d))),g?(T=zv,D=!1):l.length>=o&&(T=zu,D=!1,l=new Qa(l));e:for(;++C<F;){var Q=a[C],re=d==null?Q:d(Q);if(Q=g||Q!==0?Q:0,D&&re===re){for(var pe=Z;pe--;)if(l[pe]===re)continue e;z.push(Q)}else T(l,re,g)||z.push(Q)}return z}var Qi=Q_(Oo),E_=Q_(n0,!0);function rN(a,l){var d=!0;return Qi(a,function(g,C,T){return d=!!l(g,C,T),d}),d}function qd(a,l,d){for(var g=-1,C=a.length;++g<C;){var T=a[g],D=l(T);if(D!=null&&(F===n?D===D&&!Sr(D):d(D,F)))var F=D,z=T}return z}function oN(a,l,d,g){var C=a.length;for(d=Le(d),d<0&&(d=-d>C?0:C+d),g=g===n||g>C?C:Le(g),g<0&&(g+=C),g=d>g?0:j2(g);d<g;)a[d++]=l;return a}function P_(a,l){var d=[];return Qi(a,function(g,C,T){l(g,C,T)&&d.push(g)}),d}function gn(a,l,d,g,C){var T=-1,D=a.length;for(d||(d=GN),C||(C=[]);++T<D;){var F=a[T];l>0&&d(F)?l>1?gn(F,l-1,d,g,C):Yi(C,F):g||(C[C.length]=F)}return C}var t0=J_(),A_=J_(!0);function Oo(a,l){return a&&t0(a,l,cn)}function n0(a,l){return a&&A_(a,l,cn)}function Kd(a,l){return Ki(l,function(d){return bi(a[d])})}function es(a,l){l=ea(l,a);for(var d=0,g=l.length;a!=null&&d<g;)a=a[Ro(l[d++])];return d&&d==g?a:n}function T_(a,l,d){var g=l(a);return Ne(a)?g:Yi(g,d(a))}function Bn(a){return a==null?a===n?le:Qt:Xa&&Xa in vt(a)?zN(a):JN(a)}function r0(a,l){return a>l}function iN(a,l){return a!=null&&lt.call(a,l)}function aN(a,l){return a!=null&&l in vt(a)}function sN(a,l,d){return a>=An(l,d)&&a<on(l,d)}function o0(a,l,d){for(var g=d?zv:Td,C=a[0].length,T=a.length,D=T,F=G(T),z=1/0,Z=[];D--;){var Q=a[D];D&&l&&(Q=Tt(Q,yr(l))),z=An(Q.length,z),F[D]=!d&&(l||C>=120&&Q.length>=120)?new Qa(D&&Q):n}Q=a[0];var re=-1,pe=F[0];e:for(;++re<C&&Z.length<z;){var ke=Q[re],Oe=l?l(ke):ke;if(ke=d||ke!==0?ke:0,!(pe?zu(pe,Oe):g(Z,Oe,d))){for(D=T;--D;){var $e=F[D];if(!($e?zu($e,Oe):g(a[D],Oe,d)))continue e}pe&&pe.push(Oe),Z.push(ke)}}return Z}function lN(a,l,d,g){return Oo(a,function(C,T,D){l(g,d(C),T,D)}),g}function Ku(a,l,d){l=ea(l,a),a=g2(a,l);var g=a==null?a:a[Ro(Ur(l))];return g==null?n:vr(g,a,d)}function O_(a){return Vt(a)&&Bn(a)==he}function uN(a){return Vt(a)&&Bn(a)==nt}function cN(a){return Vt(a)&&Bn(a)==Ae}function Yu(a,l,d,g,C){return a===l?!0:a==null||l==null||!Vt(a)&&!Vt(l)?a!==a&&l!==l:fN(a,l,d,g,Yu,C)}function fN(a,l,d,g,C,T){var D=Ne(a),F=Ne(l),z=D?ge:Tn(a),Z=F?ge:Tn(l);z=z==he?it:z,Z=Z==he?it:Z;var Q=z==it,re=Z==it,pe=z==Z;if(pe&&na(a)){if(!na(l))return!1;D=!0,Q=!1}if(pe&&!Q)return T||(T=new uo),D||fl(a)?u2(a,l,d,g,C,T):$N(a,l,z,d,g,C,T);if(!(d&y)){var ke=Q&&lt.call(a,"__wrapped__"),Oe=re&&lt.call(l,"__wrapped__");if(ke||Oe){var $e=ke?a.value():a,Ie=Oe?l.value():l;return T||(T=new uo),C($e,Ie,d,g,T)}}return pe?(T||(T=new uo),BN(a,l,d,g,C,T)):!1}function dN(a){return Vt(a)&&Tn(a)==ye}function i0(a,l,d,g){var C=d.length,T=C,D=!g;if(a==null)return!T;for(a=vt(a);C--;){var F=d[C];if(D&&F[2]?F[1]!==a[F[0]]:!(F[0]in a))return!1}for(;++C<T;){F=d[C];var z=F[0],Z=a[z],Q=F[1];if(D&&F[2]){if(Z===n&&!(z in a))return!1}else{var re=new uo;if(g)var pe=g(Z,Q,z,a,l,re);if(!(pe===n?Yu(Q,Z,y|S,g,re):pe))return!1}}return!0}function I_(a){if(!Nt(a)||KN(a))return!1;var l=bi(a)?dM:kv;return l.test(ns(a))}function pN(a){return Vt(a)&&Bn(a)==St}function hN(a){return Vt(a)&&Tn(a)==Ct}function mN(a){return Vt(a)&&fp(a.length)&&!!gt[Bn(a)]}function R_(a){return typeof a=="function"?a:a==null?tr:typeof a=="object"?Ne(a)?N_(a[0],a[1]):M_(a):eC(a)}function a0(a){if(!Qu(a))return yM(a);var l=[];for(var d in vt(a))lt.call(a,d)&&d!="constructor"&&l.push(d);return l}function gN(a){if(!Nt(a))return QN(a);var l=Qu(a),d=[];for(var g in a)g=="constructor"&&(l||!lt.call(a,g))||d.push(g);return d}function s0(a,l){return a<l}function D_(a,l){var d=-1,g=Jn(a)?G(a.length):[];return Qi(a,function(C,T,D){g[++d]=l(C,T,D)}),g}function M_(a){var l=w0(a);return l.length==1&&l[0][2]?h2(l[0][0],l[0][1]):function(d){return d===a||i0(d,a,l)}}function N_(a,l){return C0(a)&&p2(l)?h2(Ro(a),l):function(d){var g=M0(d,a);return g===n&&g===l?N0(d,a):Yu(l,g,y|S)}}function Yd(a,l,d,g,C){a!==l&&t0(l,function(T,D){if(C||(C=new uo),Nt(T))vN(a,l,D,d,Yd,g,C);else{var F=g?g(E0(a,D),T,D+"",a,l,C):n;F===n&&(F=T),Jv(a,D,F)}},er)}function vN(a,l,d,g,C,T,D){var F=E0(a,d),z=E0(l,d),Z=D.get(z);if(Z){Jv(a,d,Z);return}var Q=T?T(F,z,d+"",a,l,D):n,re=Q===n;if(re){var pe=Ne(z),ke=!pe&&na(z),Oe=!pe&&!ke&&fl(z);Q=z,pe||ke||Oe?Ne(F)?Q=F:Gt(F)?Q=Qn(F):ke?(re=!1,Q=q_(z,!0)):Oe?(re=!1,Q=K_(z,!0)):Q=[]:ec(z)||rs(z)?(Q=F,rs(F)?Q=U2(F):(!Nt(F)||bi(F))&&(Q=d2(z))):re=!1}re&&(D.set(z,Q),C(Q,z,g,T,D),D.delete(z)),Jv(a,d,Q)}function F_(a,l){var d=a.length;if(!!d)return l+=l<0?d:0,yi(l,d)?a[l]:n}function L_(a,l,d){l.length?l=Tt(l,function(T){return Ne(T)?function(D){return es(D,T.length===1?T[0]:T)}:T}):l=[tr];var g=-1;l=Tt(l,yr(Te()));var C=D_(a,function(T,D,F){var z=Tt(l,function(Z){return Z(T)});return{criteria:z,index:++g,value:T}});return UD(C,function(T,D){return ON(T,D,d)})}function yN(a,l){return $_(a,l,function(d,g){return N0(a,g)})}function $_(a,l,d){for(var g=-1,C=l.length,T={};++g<C;){var D=l[g],F=es(a,D);d(F,D)&&Xu(T,ea(D,a),F)}return T}function bN(a){return function(l){return es(l,a)}}function l0(a,l,d,g){var C=g?jD:el,T=-1,D=l.length,F=a;for(a===l&&(l=Qn(l)),d&&(F=Tt(a,yr(d)));++T<D;)for(var z=0,Z=l[T],Q=d?d(Z):Z;(z=C(F,Q,z,g))>-1;)F!==a&&Bd.call(F,z,1),Bd.call(a,z,1);return a}function B_(a,l){for(var d=a?l.length:0,g=d-1;d--;){var C=l[d];if(d==g||C!==T){var T=C;yi(C)?Bd.call(a,C,1):d0(a,C)}}return a}function u0(a,l){return a+Wd(b_()*(l-a+1))}function SN(a,l,d,g){for(var C=-1,T=on(Vd((l-a)/(d||1)),0),D=G(T);T--;)D[g?T:++C]=a,a+=d;return D}function c0(a,l){var d="";if(!a||l<1||l>j)return d;do l%2&&(d+=a),l=Wd(l/2),l&&(a+=a);while(l);return d}function ze(a,l){return P0(m2(a,l,tr),a+"")}function xN(a){return w_(dl(a))}function wN(a,l){var d=dl(a);return ip(d,Ja(l,0,d.length))}function Xu(a,l,d,g){if(!Nt(a))return a;l=ea(l,a);for(var C=-1,T=l.length,D=T-1,F=a;F!=null&&++C<T;){var z=Ro(l[C]),Z=d;if(z==="__proto__"||z==="constructor"||z==="prototype")return a;if(C!=D){var Q=F[z];Z=g?g(Q,z,F):n,Z===n&&(Z=Nt(Q)?Q:yi(l[C+1])?[]:{})}Gu(F,z,Z),F=F[z]}return a}var z_=jd?function(a,l){return jd.set(a,l),a}:tr,_N=zd?function(a,l){return zd(a,"toString",{configurable:!0,enumerable:!1,value:L0(l),writable:!0})}:tr;function CN(a){return ip(dl(a))}function jr(a,l,d){var g=-1,C=a.length;l<0&&(l=-l>C?0:C+l),d=d>C?C:d,d<0&&(d+=C),C=l>d?0:d-l>>>0,l>>>=0;for(var T=G(C);++g<C;)T[g]=a[g+l];return T}function kN(a,l){var d;return Qi(a,function(g,C,T){return d=l(g,C,T),!d}),!!d}function Xd(a,l,d){var g=0,C=a==null?g:a.length;if(typeof l=="number"&&l===l&&C<=ae){for(;g<C;){var T=g+C>>>1,D=a[T];D!==null&&!Sr(D)&&(d?D<=l:D<l)?g=T+1:C=T}return C}return f0(a,l,tr,d)}function f0(a,l,d,g){var C=0,T=a==null?0:a.length;if(T===0)return 0;l=d(l);for(var D=l!==l,F=l===null,z=Sr(l),Z=l===n;C<T;){var Q=Wd((C+T)/2),re=d(a[Q]),pe=re!==n,ke=re===null,Oe=re===re,$e=Sr(re);if(D)var Ie=g||Oe;else Z?Ie=Oe&&(g||pe):F?Ie=Oe&&pe&&(g||!ke):z?Ie=Oe&&pe&&!ke&&(g||!$e):ke||$e?Ie=!1:Ie=g?re<=l:re<l;Ie?C=Q+1:T=Q}return An(T,H)}function V_(a,l){for(var d=-1,g=a.length,C=0,T=[];++d<g;){var D=a[d],F=l?l(D):D;if(!d||!co(F,z)){var z=F;T[C++]=D===0?0:D}}return T}function W_(a){return typeof a=="number"?a:Sr(a)?q:+a}function br(a){if(typeof a=="string")return a;if(Ne(a))return Tt(a,br)+"";if(Sr(a))return S_?S_.call(a):"";var l=a+"";return l=="0"&&1/a==-Pe?"-0":l}function Ji(a,l,d){var g=-1,C=Td,T=a.length,D=!0,F=[],z=F;if(d)D=!1,C=zv;else if(T>=o){var Z=l?null:FN(a);if(Z)return Id(Z);D=!1,C=zu,z=new Qa}else z=l?[]:F;e:for(;++g<T;){var Q=a[g],re=l?l(Q):Q;if(Q=d||Q!==0?Q:0,D&&re===re){for(var pe=z.length;pe--;)if(z[pe]===re)continue e;l&&z.push(re),F.push(Q)}else C(z,re,d)||(z!==F&&z.push(re),F.push(Q))}return F}function d0(a,l){return l=ea(l,a),a=g2(a,l),a==null||delete a[Ro(Ur(l))]}function j_(a,l,d,g){return Xu(a,l,d(es(a,l)),g)}function Zd(a,l,d,g){for(var C=a.length,T=g?C:-1;(g?T--:++T<C)&&l(a[T],T,a););return d?jr(a,g?0:T,g?T+1:C):jr(a,g?T+1:0,g?C:T)}function U_(a,l){var d=a;return d instanceof He&&(d=d.value()),Vv(l,function(g,C){return C.func.apply(C.thisArg,Yi([g],C.args))},d)}function p0(a,l,d){var g=a.length;if(g<2)return g?Ji(a[0]):[];for(var C=-1,T=G(g);++C<g;)for(var D=a[C],F=-1;++F<g;)F!=C&&(T[C]=qu(T[C]||D,a[F],l,d));return Ji(gn(T,1),l,d)}function H_(a,l,d){for(var g=-1,C=a.length,T=l.length,D={};++g<C;){var F=g<T?l[g]:n;d(D,a[g],F)}return D}function h0(a){return Gt(a)?a:[]}function m0(a){return typeof a=="function"?a:tr}function ea(a,l){return Ne(a)?a:C0(a,l)?[a]:S2(rt(a))}var EN=ze;function ta(a,l,d){var g=a.length;return d=d===n?g:d,!l&&d>=g?a:jr(a,l,d)}var G_=pM||function(a){return Fe.clearTimeout(a)};function q_(a,l){if(l)return a.slice();var d=a.length,g=h_?h_(d):new a.constructor(d);return a.copy(g),g}function g0(a){var l=new a.constructor(a.byteLength);return new Ld(l).set(new Ld(a)),l}function PN(a,l){var d=l?g0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function AN(a){var l=new a.constructor(a.source,ci.exec(a));return l.lastIndex=a.lastIndex,l}function TN(a){return Hu?vt(Hu.call(a)):{}}function K_(a,l){var d=l?g0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function Y_(a,l){if(a!==l){var d=a!==n,g=a===null,C=a===a,T=Sr(a),D=l!==n,F=l===null,z=l===l,Z=Sr(l);if(!F&&!Z&&!T&&a>l||T&&D&&z&&!F&&!Z||g&&D&&z||!d&&z||!C)return 1;if(!g&&!T&&!Z&&a<l||Z&&d&&C&&!g&&!T||F&&d&&C||!D&&C||!z)return-1}return 0}function ON(a,l,d){for(var g=-1,C=a.criteria,T=l.criteria,D=C.length,F=d.length;++g<D;){var z=Y_(C[g],T[g]);if(z){if(g>=F)return z;var Z=d[g];return z*(Z=="desc"?-1:1)}}return a.index-l.index}function X_(a,l,d,g){for(var C=-1,T=a.length,D=d.length,F=-1,z=l.length,Z=on(T-D,0),Q=G(z+Z),re=!g;++F<z;)Q[F]=l[F];for(;++C<D;)(re||C<T)&&(Q[d[C]]=a[C]);for(;Z--;)Q[F++]=a[C++];return Q}function Z_(a,l,d,g){for(var C=-1,T=a.length,D=-1,F=d.length,z=-1,Z=l.length,Q=on(T-F,0),re=G(Q+Z),pe=!g;++C<Q;)re[C]=a[C];for(var ke=C;++z<Z;)re[ke+z]=l[z];for(;++D<F;)(pe||C<T)&&(re[ke+d[D]]=a[C++]);return re}function Qn(a,l){var d=-1,g=a.length;for(l||(l=G(g));++d<g;)l[d]=a[d];return l}function Io(a,l,d,g){var C=!d;d||(d={});for(var T=-1,D=l.length;++T<D;){var F=l[T],z=g?g(d[F],a[F],F,d,a):n;z===n&&(z=a[F]),C?mi(d,F,z):Gu(d,F,z)}return d}function IN(a,l){return Io(a,_0(a),l)}function RN(a,l){return Io(a,c2(a),l)}function Qd(a,l){return function(d,g){var C=Ne(d)?LD:eN,T=l?l():{};return C(d,a,Te(g,2),T)}}function ll(a){return ze(function(l,d){var g=-1,C=d.length,T=C>1?d[C-1]:n,D=C>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(C--,T):n,D&&zn(d[0],d[1],D)&&(T=C<3?n:T,C=1),l=vt(l);++g<C;){var F=d[g];F&&a(l,F,g,T)}return l})}function Q_(a,l){return function(d,g){if(d==null)return d;if(!Jn(d))return a(d,g);for(var C=d.length,T=l?C:-1,D=vt(d);(l?T--:++T<C)&&g(D[T],T,D)!==!1;);return d}}function J_(a){return function(l,d,g){for(var C=-1,T=vt(l),D=g(l),F=D.length;F--;){var z=D[a?F:++C];if(d(T[z],z,T)===!1)break}return l}}function DN(a,l,d){var g=l&k,C=Zu(a);function T(){var D=this&&this!==Fe&&this instanceof T?C:a;return D.apply(g?d:this,arguments)}return T}function e2(a){return function(l){l=rt(l);var d=tl(l)?lo(l):n,g=d?d[0]:l.charAt(0),C=d?ta(d,1).join(""):l.slice(1);return g[a]()+C}}function ul(a){return function(l){return Vv(Q2(Z2(l).replace($u,"")),a,"")}}function Zu(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=sl(a.prototype),g=a.apply(d,l);return Nt(g)?g:d}}function MN(a,l,d){var g=Zu(a);function C(){for(var T=arguments.length,D=G(T),F=T,z=cl(C);F--;)D[F]=arguments[F];var Z=T<3&&D[0]!==z&&D[T-1]!==z?[]:Xi(D,z);if(T-=Z.length,T<d)return i2(a,l,Jd,C.placeholder,n,D,Z,n,n,d-T);var Q=this&&this!==Fe&&this instanceof C?g:a;return vr(Q,this,D)}return C}function t2(a){return function(l,d,g){var C=vt(l);if(!Jn(l)){var T=Te(d,3);l=cn(l),d=function(F){return T(C[F],F,C)}}var D=a(l,d,g);return D>-1?C[T?l[D]:D]:n}}function n2(a){return vi(function(l){var d=l.length,g=d,C=Vr.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new zr(s);if(C&&!D&&rp(T)=="wrapper")var D=new Vr([],!0)}for(g=D?g:d;++g<d;){T=l[g];var F=rp(T),z=F=="wrapper"?x0(T):n;z&&k0(z[0])&&z[1]==(N|w|O|V)&&!z[4].length&&z[9]==1?D=D[rp(z[0])].apply(D,z[3]):D=T.length==1&&k0(T)?D[F]():D.thru(T)}return function(){var Z=arguments,Q=Z[0];if(D&&Z.length==1&&Ne(Q))return D.plant(Q).value();for(var re=0,pe=d?l[re].apply(this,Z):Q;++re<d;)pe=l[re].call(this,pe);return pe}})}function Jd(a,l,d,g,C,T,D,F,z,Z){var Q=l&N,re=l&k,pe=l&x,ke=l&(w|P),Oe=l&K,$e=pe?n:Zu(a);function Ie(){for(var je=arguments.length,qe=G(je),xr=je;xr--;)qe[xr]=arguments[xr];if(ke)var Vn=cl(Ie),wr=GD(qe,Vn);if(g&&(qe=X_(qe,g,C,ke)),T&&(qe=Z_(qe,T,D,ke)),je-=wr,ke&&je<Z){var qt=Xi(qe,Vn);return i2(a,l,Jd,Ie.placeholder,d,qe,qt,F,z,Z-je)}var fo=re?d:this,xi=pe?fo[a]:a;return je=qe.length,F?qe=eF(qe,F):Oe&&je>1&&qe.reverse(),Q&&z<je&&(qe.length=z),this&&this!==Fe&&this instanceof Ie&&(xi=$e||Zu(xi)),xi.apply(fo,qe)}return Ie}function r2(a,l){return function(d,g){return lN(d,a,l(g),{})}}function ep(a,l){return function(d,g){var C;if(d===n&&g===n)return l;if(d!==n&&(C=d),g!==n){if(C===n)return g;typeof d=="string"||typeof g=="string"?(d=br(d),g=br(g)):(d=W_(d),g=W_(g)),C=a(d,g)}return C}}function v0(a){return vi(function(l){return l=Tt(l,yr(Te())),ze(function(d){var g=this;return a(l,function(C){return vr(C,g,d)})})})}function tp(a,l){l=l===n?" ":br(l);var d=l.length;if(d<2)return d?c0(l,a):l;var g=c0(l,Vd(a/nl(l)));return tl(l)?ta(lo(g),0,a).join(""):g.slice(0,a)}function NN(a,l,d,g){var C=l&k,T=Zu(a);function D(){for(var F=-1,z=arguments.length,Z=-1,Q=g.length,re=G(Q+z),pe=this&&this!==Fe&&this instanceof D?T:a;++Z<Q;)re[Z]=g[Z];for(;z--;)re[Z++]=arguments[++F];return vr(pe,C?d:this,re)}return D}function o2(a){return function(l,d,g){return g&&typeof g!="number"&&zn(l,d,g)&&(d=g=n),l=Si(l),d===n?(d=l,l=0):d=Si(d),g=g===n?l<d?1:-1:Si(g),SN(l,d,g,a)}}function np(a){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=Hr(l),d=Hr(d)),a(l,d)}}function i2(a,l,d,g,C,T,D,F,z,Z){var Q=l&w,re=Q?D:n,pe=Q?n:D,ke=Q?T:n,Oe=Q?n:T;l|=Q?O:M,l&=~(Q?M:O),l&b||(l&=~(k|x));var $e=[a,l,C,ke,re,Oe,pe,F,z,Z],Ie=d.apply(n,$e);return k0(a)&&v2(Ie,$e),Ie.placeholder=g,y2(Ie,a,l)}function y0(a){var l=rn[a];return function(d,g){if(d=Hr(d),g=g==null?0:An(Le(g),292),g&&y_(d)){var C=(rt(d)+"e").split("e"),T=l(C[0]+"e"+(+C[1]+g));return C=(rt(T)+"e").split("e"),+(C[0]+"e"+(+C[1]-g))}return l(d)}}var FN=il&&1/Id(new il([,-0]))[1]==Pe?function(a){return new il(a)}:z0;function a2(a){return function(l){var d=Tn(l);return d==ye?Kv(l):d==Ct?JD(l):HD(l,a(l))}}function gi(a,l,d,g,C,T,D,F){var z=l&x;if(!z&&typeof a!="function")throw new zr(s);var Z=g?g.length:0;if(Z||(l&=~(O|M),g=C=n),D=D===n?D:on(Le(D),0),F=F===n?F:Le(F),Z-=C?C.length:0,l&M){var Q=g,re=C;g=C=n}var pe=z?n:x0(a),ke=[a,l,d,g,C,Q,re,T,D,F];if(pe&&ZN(ke,pe),a=ke[0],l=ke[1],d=ke[2],g=ke[3],C=ke[4],F=ke[9]=ke[9]===n?z?0:a.length:on(ke[9]-Z,0),!F&&l&(w|P)&&(l&=~(w|P)),!l||l==k)var Oe=DN(a,l,d);else l==w||l==P?Oe=MN(a,l,F):(l==O||l==(k|O))&&!C.length?Oe=NN(a,l,d,g):Oe=Jd.apply(n,ke);var $e=pe?z_:v2;return y2($e(Oe,ke),a,l)}function s2(a,l,d,g){return a===n||co(a,ol[d])&&!lt.call(g,d)?l:a}function l2(a,l,d,g,C,T){return Nt(a)&&Nt(l)&&(T.set(l,a),Yd(a,l,n,l2,T),T.delete(l)),a}function LN(a){return ec(a)?n:a}function u2(a,l,d,g,C,T){var D=d&y,F=a.length,z=l.length;if(F!=z&&!(D&&z>F))return!1;var Z=T.get(a),Q=T.get(l);if(Z&&Q)return Z==l&&Q==a;var re=-1,pe=!0,ke=d&S?new Qa:n;for(T.set(a,l),T.set(l,a);++re<F;){var Oe=a[re],$e=l[re];if(g)var Ie=D?g($e,Oe,re,l,a,T):g(Oe,$e,re,a,l,T);if(Ie!==n){if(Ie)continue;pe=!1;break}if(ke){if(!Wv(l,function(je,qe){if(!zu(ke,qe)&&(Oe===je||C(Oe,je,d,g,T)))return ke.push(qe)})){pe=!1;break}}else if(!(Oe===$e||C(Oe,$e,d,g,T))){pe=!1;break}}return T.delete(a),T.delete(l),pe}function $N(a,l,d,g,C,T,D){switch(d){case ne:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case nt:return!(a.byteLength!=l.byteLength||!T(new Ld(a),new Ld(l)));case ce:case Ae:case Mt:return co(+a,+l);case mt:return a.name==l.name&&a.message==l.message;case St:case Jt:return a==l+"";case ye:var F=Kv;case Ct:var z=g&y;if(F||(F=Id),a.size!=l.size&&!z)return!1;var Z=D.get(a);if(Z)return Z==l;g|=S,D.set(a,l);var Q=u2(F(a),F(l),g,C,T,D);return D.delete(a),Q;case zt:if(Hu)return Hu.call(a)==Hu.call(l)}return!1}function BN(a,l,d,g,C,T){var D=d&y,F=b0(a),z=F.length,Z=b0(l),Q=Z.length;if(z!=Q&&!D)return!1;for(var re=z;re--;){var pe=F[re];if(!(D?pe in l:lt.call(l,pe)))return!1}var ke=T.get(a),Oe=T.get(l);if(ke&&Oe)return ke==l&&Oe==a;var $e=!0;T.set(a,l),T.set(l,a);for(var Ie=D;++re<z;){pe=F[re];var je=a[pe],qe=l[pe];if(g)var xr=D?g(qe,je,pe,l,a,T):g(je,qe,pe,a,l,T);if(!(xr===n?je===qe||C(je,qe,d,g,T):xr)){$e=!1;break}Ie||(Ie=pe=="constructor")}if($e&&!Ie){var Vn=a.constructor,wr=l.constructor;Vn!=wr&&"constructor"in a&&"constructor"in l&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof wr=="function"&&wr instanceof wr)&&($e=!1)}return T.delete(a),T.delete(l),$e}function vi(a){return P0(m2(a,n,C2),a+"")}function b0(a){return T_(a,cn,_0)}function S0(a){return T_(a,er,c2)}var x0=jd?function(a){return jd.get(a)}:z0;function rp(a){for(var l=a.name+"",d=al[l],g=lt.call(al,l)?d.length:0;g--;){var C=d[g],T=C.func;if(T==null||T==a)return C.name}return l}function cl(a){var l=lt.call(A,"placeholder")?A:a;return l.placeholder}function Te(){var a=A.iteratee||$0;return a=a===$0?R_:a,arguments.length?a(arguments[0],arguments[1]):a}function op(a,l){var d=a.__data__;return qN(l)?d[typeof l=="string"?"string":"hash"]:d.map}function w0(a){for(var l=cn(a),d=l.length;d--;){var g=l[d],C=a[g];l[d]=[g,C,p2(C)]}return l}function ts(a,l){var d=XD(a,l);return I_(d)?d:n}function zN(a){var l=lt.call(a,Xa),d=a[Xa];try{a[Xa]=n;var g=!0}catch{}var C=Nd.call(a);return g&&(l?a[Xa]=d:delete a[Xa]),C}var _0=Xv?function(a){return a==null?[]:(a=vt(a),Ki(Xv(a),function(l){return g_.call(a,l)}))}:V0,c2=Xv?function(a){for(var l=[];a;)Yi(l,_0(a)),a=$d(a);return l}:V0,Tn=Bn;(Zv&&Tn(new Zv(new ArrayBuffer(1)))!=ne||Wu&&Tn(new Wu)!=ye||Qv&&Tn(Qv.resolve())!=hr||il&&Tn(new il)!=Ct||ju&&Tn(new ju)!=_e)&&(Tn=function(a){var l=Bn(a),d=l==it?a.constructor:n,g=d?ns(d):"";if(g)switch(g){case wM:return ne;case _M:return ye;case CM:return hr;case kM:return Ct;case EM:return _e}return l});function VN(a,l,d){for(var g=-1,C=d.length;++g<C;){var T=d[g],D=T.size;switch(T.type){case"drop":a+=D;break;case"dropRight":l-=D;break;case"take":l=An(l,a+D);break;case"takeRight":a=on(a,l-D);break}}return{start:a,end:l}}function WN(a){var l=a.match(Gi);return l?l[1].split(yv):[]}function f2(a,l,d){l=ea(l,a);for(var g=-1,C=l.length,T=!1;++g<C;){var D=Ro(l[g]);if(!(T=a!=null&&d(a,D)))break;a=a[D]}return T||++g!=C?T:(C=a==null?0:a.length,!!C&&fp(C)&&yi(D,C)&&(Ne(a)||rs(a)))}function jN(a){var l=a.length,d=new a.constructor(l);return l&&typeof a[0]=="string"&&lt.call(a,"index")&&(d.index=a.index,d.input=a.input),d}function d2(a){return typeof a.constructor=="function"&&!Qu(a)?sl($d(a)):{}}function UN(a,l,d){var g=a.constructor;switch(l){case nt:return g0(a);case ce:case Ae:return new g(+a);case ne:return PN(a,d);case Ve:case xt:case hn:case Pn:case gr:case To:case li:case Ln:case $r:return K_(a,d);case ye:return new g;case Mt:case Jt:return new g(a);case St:return AN(a);case Ct:return new g;case zt:return TN(a)}}function HN(a,l){var d=l.length;if(!d)return a;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(vv,`{
/* [wrapped with `+l+`] */
`)}function GN(a){return Ne(a)||rs(a)||!!(v_&&a&&a[v_])}function yi(a,l){var d=typeof a;return l=l??j,!!l&&(d=="number"||d!="symbol"&&Pv.test(a))&&a>-1&&a%1==0&&a<l}function zn(a,l,d){if(!Nt(d))return!1;var g=typeof l;return(g=="number"?Jn(d)&&yi(l,d.length):g=="string"&&l in d)?co(d[l],a):!1}function C0(a,l){if(Ne(a))return!1;var d=typeof a;return d=="number"||d=="symbol"||d=="boolean"||a==null||Sr(a)?!0:hv.test(a)||!pv.test(a)||l!=null&&a in vt(l)}function qN(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function k0(a){var l=rp(a),d=A[l];if(typeof d!="function"||!(l in He.prototype))return!1;if(a===d)return!0;var g=x0(d);return!!g&&a===g[0]}function KN(a){return!!p_&&p_ in a}var YN=Dd?bi:W0;function Qu(a){var l=a&&a.constructor,d=typeof l=="function"&&l.prototype||ol;return a===d}function p2(a){return a===a&&!Nt(a)}function h2(a,l){return function(d){return d==null?!1:d[a]===l&&(l!==n||a in vt(d))}}function XN(a){var l=up(a,function(g){return d.size===f&&d.clear(),g}),d=l.cache;return l}function ZN(a,l){var d=a[1],g=l[1],C=d|g,T=C<(k|x|N),D=g==N&&d==w||g==N&&d==V&&a[7].length<=l[8]||g==(N|V)&&l[7].length<=l[8]&&d==w;if(!(T||D))return a;g&k&&(a[2]=l[2],C|=d&k?0:b);var F=l[3];if(F){var z=a[3];a[3]=z?X_(z,F,l[4]):F,a[4]=z?Xi(a[3],p):l[4]}return F=l[5],F&&(z=a[5],a[5]=z?Z_(z,F,l[6]):F,a[6]=z?Xi(a[5],p):l[6]),F=l[7],F&&(a[7]=F),g&N&&(a[8]=a[8]==null?l[8]:An(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=C,a}function QN(a){var l=[];if(a!=null)for(var d in vt(a))l.push(d);return l}function JN(a){return Nd.call(a)}function m2(a,l,d){return l=on(l===n?a.length-1:l,0),function(){for(var g=arguments,C=-1,T=on(g.length-l,0),D=G(T);++C<T;)D[C]=g[l+C];C=-1;for(var F=G(l+1);++C<l;)F[C]=g[C];return F[l]=d(D),vr(a,this,F)}}function g2(a,l){return l.length<2?a:es(a,jr(l,0,-1))}function eF(a,l){for(var d=a.length,g=An(l.length,d),C=Qn(a);g--;){var T=l[g];a[g]=yi(T,d)?C[T]:n}return a}function E0(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var v2=b2(z_),Ju=mM||function(a,l){return Fe.setTimeout(a,l)},P0=b2(_N);function y2(a,l,d){var g=l+"";return P0(a,HN(g,tF(WN(g),d)))}function b2(a){var l=0,d=0;return function(){var g=bM(),C=fe-(g-d);if(d=g,C>0){if(++l>=xe)return arguments[0]}else l=0;return a.apply(n,arguments)}}function ip(a,l){var d=-1,g=a.length,C=g-1;for(l=l===n?g:l;++d<l;){var T=u0(d,C),D=a[T];a[T]=a[d],a[d]=D}return a.length=l,a}var S2=XN(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(ao,function(d,g,C,T){l.push(C?T.replace(xv,"$1"):g||d)}),l});function Ro(a){if(typeof a=="string"||Sr(a))return a;var l=a+"";return l=="0"&&1/a==-Pe?"-0":l}function ns(a){if(a!=null){try{return Md.call(a)}catch{}try{return a+""}catch{}}return""}function tF(a,l){return Br(se,function(d){var g="_."+d[0];l&d[1]&&!Td(a,g)&&a.push(g)}),a.sort()}function x2(a){if(a instanceof He)return a.clone();var l=new Vr(a.__wrapped__,a.__chain__);return l.__actions__=Qn(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function nF(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=on(Le(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var C=0,T=0,D=G(Vd(g/l));C<g;)D[T++]=jr(a,C,C+=l);return D}function rF(a){for(var l=-1,d=a==null?0:a.length,g=0,C=[];++l<d;){var T=a[l];T&&(C[g++]=T)}return C}function oF(){var a=arguments.length;if(!a)return[];for(var l=G(a-1),d=arguments[0],g=a;g--;)l[g-1]=arguments[g];return Yi(Ne(d)?Qn(d):[d],gn(l,1))}var iF=ze(function(a,l){return Gt(a)?qu(a,gn(l,1,Gt,!0)):[]}),aF=ze(function(a,l){var d=Ur(l);return Gt(d)&&(d=n),Gt(a)?qu(a,gn(l,1,Gt,!0),Te(d,2)):[]}),sF=ze(function(a,l){var d=Ur(l);return Gt(d)&&(d=n),Gt(a)?qu(a,gn(l,1,Gt,!0),n,d):[]});function lF(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:Le(l),jr(a,l<0?0:l,g)):[]}function uF(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:Le(l),l=g-l,jr(a,0,l<0?0:l)):[]}function cF(a,l){return a&&a.length?Zd(a,Te(l,3),!0,!0):[]}function fF(a,l){return a&&a.length?Zd(a,Te(l,3),!0):[]}function dF(a,l,d,g){var C=a==null?0:a.length;return C?(d&&typeof d!="number"&&zn(a,l,d)&&(d=0,g=C),oN(a,l,d,g)):[]}function w2(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var C=d==null?0:Le(d);return C<0&&(C=on(g+C,0)),Od(a,Te(l,3),C)}function _2(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var C=g-1;return d!==n&&(C=Le(d),C=d<0?on(g+C,0):An(C,g-1)),Od(a,Te(l,3),C,!0)}function C2(a){var l=a==null?0:a.length;return l?gn(a,1):[]}function pF(a){var l=a==null?0:a.length;return l?gn(a,Pe):[]}function hF(a,l){var d=a==null?0:a.length;return d?(l=l===n?1:Le(l),gn(a,l)):[]}function mF(a){for(var l=-1,d=a==null?0:a.length,g={};++l<d;){var C=a[l];g[C[0]]=C[1]}return g}function k2(a){return a&&a.length?a[0]:n}function gF(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var C=d==null?0:Le(d);return C<0&&(C=on(g+C,0)),el(a,l,C)}function vF(a){var l=a==null?0:a.length;return l?jr(a,0,-1):[]}var yF=ze(function(a){var l=Tt(a,h0);return l.length&&l[0]===a[0]?o0(l):[]}),bF=ze(function(a){var l=Ur(a),d=Tt(a,h0);return l===Ur(d)?l=n:d.pop(),d.length&&d[0]===a[0]?o0(d,Te(l,2)):[]}),SF=ze(function(a){var l=Ur(a),d=Tt(a,h0);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===a[0]?o0(d,n,l):[]});function xF(a,l){return a==null?"":vM.call(a,l)}function Ur(a){var l=a==null?0:a.length;return l?a[l-1]:n}function wF(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var C=g;return d!==n&&(C=Le(d),C=C<0?on(g+C,0):An(C,g-1)),l===l?tM(a,l,C):Od(a,i_,C,!0)}function _F(a,l){return a&&a.length?F_(a,Le(l)):n}var CF=ze(E2);function E2(a,l){return a&&a.length&&l&&l.length?l0(a,l):a}function kF(a,l,d){return a&&a.length&&l&&l.length?l0(a,l,Te(d,2)):a}function EF(a,l,d){return a&&a.length&&l&&l.length?l0(a,l,n,d):a}var PF=vi(function(a,l){var d=a==null?0:a.length,g=e0(a,l);return B_(a,Tt(l,function(C){return yi(C,d)?+C:C}).sort(Y_)),g});function AF(a,l){var d=[];if(!(a&&a.length))return d;var g=-1,C=[],T=a.length;for(l=Te(l,3);++g<T;){var D=a[g];l(D,g,a)&&(d.push(D),C.push(g))}return B_(a,C),d}function A0(a){return a==null?a:xM.call(a)}function TF(a,l,d){var g=a==null?0:a.length;return g?(d&&typeof d!="number"&&zn(a,l,d)?(l=0,d=g):(l=l==null?0:Le(l),d=d===n?g:Le(d)),jr(a,l,d)):[]}function OF(a,l){return Xd(a,l)}function IF(a,l,d){return f0(a,l,Te(d,2))}function RF(a,l){var d=a==null?0:a.length;if(d){var g=Xd(a,l);if(g<d&&co(a[g],l))return g}return-1}function DF(a,l){return Xd(a,l,!0)}function MF(a,l,d){return f0(a,l,Te(d,2),!0)}function NF(a,l){var d=a==null?0:a.length;if(d){var g=Xd(a,l,!0)-1;if(co(a[g],l))return g}return-1}function FF(a){return a&&a.length?V_(a):[]}function LF(a,l){return a&&a.length?V_(a,Te(l,2)):[]}function $F(a){var l=a==null?0:a.length;return l?jr(a,1,l):[]}function BF(a,l,d){return a&&a.length?(l=d||l===n?1:Le(l),jr(a,0,l<0?0:l)):[]}function zF(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:Le(l),l=g-l,jr(a,l<0?0:l,g)):[]}function VF(a,l){return a&&a.length?Zd(a,Te(l,3),!1,!0):[]}function WF(a,l){return a&&a.length?Zd(a,Te(l,3)):[]}var jF=ze(function(a){return Ji(gn(a,1,Gt,!0))}),UF=ze(function(a){var l=Ur(a);return Gt(l)&&(l=n),Ji(gn(a,1,Gt,!0),Te(l,2))}),HF=ze(function(a){var l=Ur(a);return l=typeof l=="function"?l:n,Ji(gn(a,1,Gt,!0),n,l)});function GF(a){return a&&a.length?Ji(a):[]}function qF(a,l){return a&&a.length?Ji(a,Te(l,2)):[]}function KF(a,l){return l=typeof l=="function"?l:n,a&&a.length?Ji(a,n,l):[]}function T0(a){if(!(a&&a.length))return[];var l=0;return a=Ki(a,function(d){if(Gt(d))return l=on(d.length,l),!0}),Gv(l,function(d){return Tt(a,jv(d))})}function P2(a,l){if(!(a&&a.length))return[];var d=T0(a);return l==null?d:Tt(d,function(g){return vr(l,n,g)})}var YF=ze(function(a,l){return Gt(a)?qu(a,l):[]}),XF=ze(function(a){return p0(Ki(a,Gt))}),ZF=ze(function(a){var l=Ur(a);return Gt(l)&&(l=n),p0(Ki(a,Gt),Te(l,2))}),QF=ze(function(a){var l=Ur(a);return l=typeof l=="function"?l:n,p0(Ki(a,Gt),n,l)}),JF=ze(T0);function e6(a,l){return H_(a||[],l||[],Gu)}function t6(a,l){return H_(a||[],l||[],Xu)}var n6=ze(function(a){var l=a.length,d=l>1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,P2(a,d)});function A2(a){var l=A(a);return l.__chain__=!0,l}function r6(a,l){return l(a),a}function ap(a,l){return l(a)}var o6=vi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,C=function(T){return e0(T,a)};return l>1||this.__actions__.length||!(g instanceof He)||!yi(d)?this.thru(C):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ap,args:[C],thisArg:n}),new Vr(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function i6(){return A2(this)}function a6(){return new Vr(this.value(),this.__chain__)}function s6(){this.__values__===n&&(this.__values__=W2(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function l6(){return this}function u6(a){for(var l,d=this;d instanceof Hd;){var g=x2(d);g.__index__=0,g.__values__=n,l?C.__wrapped__=g:l=g;var C=g;d=d.__wrapped__}return C.__wrapped__=a,l}function c6(){var a=this.__wrapped__;if(a instanceof He){var l=a;return this.__actions__.length&&(l=new He(this)),l=l.reverse(),l.__actions__.push({func:ap,args:[A0],thisArg:n}),new Vr(l,this.__chain__)}return this.thru(A0)}function f6(){return U_(this.__wrapped__,this.__actions__)}var d6=Qd(function(a,l,d){lt.call(a,d)?++a[d]:mi(a,d,1)});function p6(a,l,d){var g=Ne(a)?r_:rN;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}function h6(a,l){var d=Ne(a)?Ki:P_;return d(a,Te(l,3))}var m6=t2(w2),g6=t2(_2);function v6(a,l){return gn(sp(a,l),1)}function y6(a,l){return gn(sp(a,l),Pe)}function b6(a,l,d){return d=d===n?1:Le(d),gn(sp(a,l),d)}function T2(a,l){var d=Ne(a)?Br:Qi;return d(a,Te(l,3))}function O2(a,l){var d=Ne(a)?$D:E_;return d(a,Te(l,3))}var S6=Qd(function(a,l,d){lt.call(a,d)?a[d].push(l):mi(a,d,[l])});function x6(a,l,d,g){a=Jn(a)?a:dl(a),d=d&&!g?Le(d):0;var C=a.length;return d<0&&(d=on(C+d,0)),dp(a)?d<=C&&a.indexOf(l,d)>-1:!!C&&el(a,l,d)>-1}var w6=ze(function(a,l,d){var g=-1,C=typeof l=="function",T=Jn(a)?G(a.length):[];return Qi(a,function(D){T[++g]=C?vr(l,D,d):Ku(D,l,d)}),T}),_6=Qd(function(a,l,d){mi(a,d,l)});function sp(a,l){var d=Ne(a)?Tt:D_;return d(a,Te(l,3))}function C6(a,l,d,g){return a==null?[]:(Ne(l)||(l=l==null?[]:[l]),d=g?n:d,Ne(d)||(d=d==null?[]:[d]),L_(a,l,d))}var k6=Qd(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function E6(a,l,d){var g=Ne(a)?Vv:s_,C=arguments.length<3;return g(a,Te(l,4),d,C,Qi)}function P6(a,l,d){var g=Ne(a)?BD:s_,C=arguments.length<3;return g(a,Te(l,4),d,C,E_)}function A6(a,l){var d=Ne(a)?Ki:P_;return d(a,cp(Te(l,3)))}function T6(a){var l=Ne(a)?w_:xN;return l(a)}function O6(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=Le(l);var g=Ne(a)?QM:wN;return g(a,l)}function I6(a){var l=Ne(a)?JM:CN;return l(a)}function R6(a){if(a==null)return 0;if(Jn(a))return dp(a)?nl(a):a.length;var l=Tn(a);return l==ye||l==Ct?a.size:a0(a).length}function D6(a,l,d){var g=Ne(a)?Wv:kN;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}var M6=ze(function(a,l){if(a==null)return[];var d=l.length;return d>1&&zn(a,l[0],l[1])?l=[]:d>2&&zn(l[0],l[1],l[2])&&(l=[l[0]]),L_(a,gn(l,1),[])}),lp=hM||function(){return Fe.Date.now()};function N6(a,l){if(typeof l!="function")throw new zr(s);return a=Le(a),function(){if(--a<1)return l.apply(this,arguments)}}function I2(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,gi(a,N,n,n,n,n,l)}function R2(a,l){var d;if(typeof l!="function")throw new zr(s);return a=Le(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var O0=ze(function(a,l,d){var g=k;if(d.length){var C=Xi(d,cl(O0));g|=O}return gi(a,g,l,d,C)}),D2=ze(function(a,l,d){var g=k|x;if(d.length){var C=Xi(d,cl(D2));g|=O}return gi(l,g,a,d,C)});function M2(a,l,d){l=d?n:l;var g=gi(a,w,n,n,n,n,n,l);return g.placeholder=M2.placeholder,g}function N2(a,l,d){l=d?n:l;var g=gi(a,P,n,n,n,n,n,l);return g.placeholder=N2.placeholder,g}function F2(a,l,d){var g,C,T,D,F,z,Z=0,Q=!1,re=!1,pe=!0;if(typeof a!="function")throw new zr(s);l=Hr(l)||0,Nt(d)&&(Q=!!d.leading,re="maxWait"in d,T=re?on(Hr(d.maxWait)||0,l):T,pe="trailing"in d?!!d.trailing:pe);function ke(qt){var fo=g,xi=C;return g=C=n,Z=qt,D=a.apply(xi,fo),D}function Oe(qt){return Z=qt,F=Ju(je,l),Q?ke(qt):D}function $e(qt){var fo=qt-z,xi=qt-Z,tC=l-fo;return re?An(tC,T-xi):tC}function Ie(qt){var fo=qt-z,xi=qt-Z;return z===n||fo>=l||fo<0||re&&xi>=T}function je(){var qt=lp();if(Ie(qt))return qe(qt);F=Ju(je,$e(qt))}function qe(qt){return F=n,pe&&g?ke(qt):(g=C=n,D)}function xr(){F!==n&&G_(F),Z=0,g=z=C=F=n}function Vn(){return F===n?D:qe(lp())}function wr(){var qt=lp(),fo=Ie(qt);if(g=arguments,C=this,z=qt,fo){if(F===n)return Oe(z);if(re)return G_(F),F=Ju(je,l),ke(z)}return F===n&&(F=Ju(je,l)),D}return wr.cancel=xr,wr.flush=Vn,wr}var F6=ze(function(a,l){return k_(a,1,l)}),L6=ze(function(a,l,d){return k_(a,Hr(l)||0,d)});function $6(a){return gi(a,K)}function up(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new zr(s);var d=function(){var g=arguments,C=l?l.apply(this,g):g[0],T=d.cache;if(T.has(C))return T.get(C);var D=a.apply(this,g);return d.cache=T.set(C,D)||T,D};return d.cache=new(up.Cache||hi),d}up.Cache=hi;function cp(a){if(typeof a!="function")throw new zr(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 B6(a){return R2(2,a)}var z6=EN(function(a,l){l=l.length==1&&Ne(l[0])?Tt(l[0],yr(Te())):Tt(gn(l,1),yr(Te()));var d=l.length;return ze(function(g){for(var C=-1,T=An(g.length,d);++C<T;)g[C]=l[C].call(this,g[C]);return vr(a,this,g)})}),I0=ze(function(a,l){var d=Xi(l,cl(I0));return gi(a,O,n,l,d)}),L2=ze(function(a,l){var d=Xi(l,cl(L2));return gi(a,M,n,l,d)}),V6=vi(function(a,l){return gi(a,V,n,n,n,l)});function W6(a,l){if(typeof a!="function")throw new zr(s);return l=l===n?l:Le(l),ze(a,l)}function j6(a,l){if(typeof a!="function")throw new zr(s);return l=l==null?0:on(Le(l),0),ze(function(d){var g=d[l],C=ta(d,0,l);return g&&Yi(C,g),vr(a,this,C)})}function U6(a,l,d){var g=!0,C=!0;if(typeof a!="function")throw new zr(s);return Nt(d)&&(g="leading"in d?!!d.leading:g,C="trailing"in d?!!d.trailing:C),F2(a,l,{leading:g,maxWait:l,trailing:C})}function H6(a){return I2(a,1)}function G6(a,l){return I0(m0(l),a)}function q6(){if(!arguments.length)return[];var a=arguments[0];return Ne(a)?a:[a]}function K6(a){return Wr(a,v)}function Y6(a,l){return l=typeof l=="function"?l:n,Wr(a,v,l)}function X6(a){return Wr(a,h|v)}function Z6(a,l){return l=typeof l=="function"?l:n,Wr(a,h|v,l)}function Q6(a,l){return l==null||C_(a,l,cn(l))}function co(a,l){return a===l||a!==a&&l!==l}var J6=np(r0),eL=np(function(a,l){return a>=l}),rs=O_(function(){return arguments}())?O_:function(a){return Vt(a)&&lt.call(a,"callee")&&!g_.call(a,"callee")},Ne=G.isArray,tL=Qs?yr(Qs):uN;function Jn(a){return a!=null&&fp(a.length)&&!bi(a)}function Gt(a){return Vt(a)&&Jn(a)}function nL(a){return a===!0||a===!1||Vt(a)&&Bn(a)==ce}var na=gM||W0,rL=Js?yr(Js):cN;function oL(a){return Vt(a)&&a.nodeType===1&&!ec(a)}function iL(a){if(a==null)return!0;if(Jn(a)&&(Ne(a)||typeof a=="string"||typeof a.splice=="function"||na(a)||fl(a)||rs(a)))return!a.length;var l=Tn(a);if(l==ye||l==Ct)return!a.size;if(Qu(a))return!a0(a).length;for(var d in a)if(lt.call(a,d))return!1;return!0}function aL(a,l){return Yu(a,l)}function sL(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?Yu(a,l,n,d):!!g}function R0(a){if(!Vt(a))return!1;var l=Bn(a);return l==mt||l==Me||typeof a.message=="string"&&typeof a.name=="string"&&!ec(a)}function lL(a){return typeof a=="number"&&y_(a)}function bi(a){if(!Nt(a))return!1;var l=Bn(a);return l==Dt||l==En||l==Ee||l==mr}function $2(a){return typeof a=="number"&&a==Le(a)}function fp(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Nt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Vt(a){return a!=null&&typeof a=="object"}var B2=Bu?yr(Bu):dN;function uL(a,l){return a===l||i0(a,l,w0(l))}function cL(a,l,d){return d=typeof d=="function"?d:n,i0(a,l,w0(l),d)}function fL(a){return z2(a)&&a!=+a}function dL(a){if(YN(a))throw new De(i);return I_(a)}function pL(a){return a===null}function hL(a){return a==null}function z2(a){return typeof a=="number"||Vt(a)&&Bn(a)==Mt}function ec(a){if(!Vt(a)||Bn(a)!=it)return!1;var l=$d(a);if(l===null)return!0;var d=lt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Md.call(d)==cM}var D0=e_?yr(e_):pN;function mL(a){return $2(a)&&a>=-j&&a<=j}var V2=t_?yr(t_):hN;function dp(a){return typeof a=="string"||!Ne(a)&&Vt(a)&&Bn(a)==Jt}function Sr(a){return typeof a=="symbol"||Vt(a)&&Bn(a)==zt}var fl=n_?yr(n_):mN;function gL(a){return a===n}function vL(a){return Vt(a)&&Tn(a)==_e}function yL(a){return Vt(a)&&Bn(a)==at}var bL=np(s0),SL=np(function(a,l){return a<=l});function W2(a){if(!a)return[];if(Jn(a))return dp(a)?lo(a):Qn(a);if(Vu&&a[Vu])return QD(a[Vu]());var l=Tn(a),d=l==ye?Kv:l==Ct?Id:dl;return d(a)}function Si(a){if(!a)return a===0?a:0;if(a=Hr(a),a===Pe||a===-Pe){var l=a<0?-1:1;return l*X}return a===a?a:0}function Le(a){var l=Si(a),d=l%1;return l===l?d?l-d:l:0}function j2(a){return a?Ja(Le(a),0,R):0}function Hr(a){if(typeof a=="number")return a;if(Sr(a))return q;if(Nt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Nt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=l_(a);var d=Cv.test(a);return d||Ev.test(a)?me(a.slice(2),d?2:8):_v.test(a)?q:+a}function U2(a){return Io(a,er(a))}function xL(a){return a?Ja(Le(a),-j,j):a===0?a:0}function rt(a){return a==null?"":br(a)}var wL=ll(function(a,l){if(Qu(l)||Jn(l)){Io(l,cn(l),a);return}for(var d in l)lt.call(l,d)&&Gu(a,d,l[d])}),H2=ll(function(a,l){Io(l,er(l),a)}),pp=ll(function(a,l,d,g){Io(l,er(l),a,g)}),_L=ll(function(a,l,d,g){Io(l,cn(l),a,g)}),CL=vi(e0);function kL(a,l){var d=sl(a);return l==null?d:__(d,l)}var EL=ze(function(a,l){a=vt(a);var d=-1,g=l.length,C=g>2?l[2]:n;for(C&&zn(l[0],l[1],C)&&(g=1);++d<g;)for(var T=l[d],D=er(T),F=-1,z=D.length;++F<z;){var Z=D[F],Q=a[Z];(Q===n||co(Q,ol[Z])&&!lt.call(a,Z))&&(a[Z]=T[Z])}return a}),PL=ze(function(a){return a.push(n,l2),vr(G2,n,a)});function AL(a,l){return o_(a,Te(l,3),Oo)}function TL(a,l){return o_(a,Te(l,3),n0)}function OL(a,l){return a==null?a:t0(a,Te(l,3),er)}function IL(a,l){return a==null?a:A_(a,Te(l,3),er)}function RL(a,l){return a&&Oo(a,Te(l,3))}function DL(a,l){return a&&n0(a,Te(l,3))}function ML(a){return a==null?[]:Kd(a,cn(a))}function NL(a){return a==null?[]:Kd(a,er(a))}function M0(a,l,d){var g=a==null?n:es(a,l);return g===n?d:g}function FL(a,l){return a!=null&&f2(a,l,iN)}function N0(a,l){return a!=null&&f2(a,l,aN)}var LL=r2(function(a,l,d){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),a[l]=d},L0(tr)),$L=r2(function(a,l,d){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),lt.call(a,l)?a[l].push(d):a[l]=[d]},Te),BL=ze(Ku);function cn(a){return Jn(a)?x_(a):a0(a)}function er(a){return Jn(a)?x_(a,!0):gN(a)}function zL(a,l){var d={};return l=Te(l,3),Oo(a,function(g,C,T){mi(d,l(g,C,T),g)}),d}function VL(a,l){var d={};return l=Te(l,3),Oo(a,function(g,C,T){mi(d,C,l(g,C,T))}),d}var WL=ll(function(a,l,d){Yd(a,l,d)}),G2=ll(function(a,l,d,g){Yd(a,l,d,g)}),jL=vi(function(a,l){var d={};if(a==null)return d;var g=!1;l=Tt(l,function(T){return T=ea(T,a),g||(g=T.length>1),T}),Io(a,S0(a),d),g&&(d=Wr(d,h|m|v,LN));for(var C=l.length;C--;)d0(d,l[C]);return d});function UL(a,l){return q2(a,cp(Te(l)))}var HL=vi(function(a,l){return a==null?{}:yN(a,l)});function q2(a,l){if(a==null)return{};var d=Tt(S0(a),function(g){return[g]});return l=Te(l),$_(a,d,function(g,C){return l(g,C[0])})}function GL(a,l,d){l=ea(l,a);var g=-1,C=l.length;for(C||(C=1,a=n);++g<C;){var T=a==null?n:a[Ro(l[g])];T===n&&(g=C,T=d),a=bi(T)?T.call(a):T}return a}function qL(a,l,d){return a==null?a:Xu(a,l,d)}function KL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:Xu(a,l,d,g)}var K2=a2(cn),Y2=a2(er);function YL(a,l,d){var g=Ne(a),C=g||na(a)||fl(a);if(l=Te(l,4),d==null){var T=a&&a.constructor;C?d=g?new T:[]:Nt(a)?d=bi(T)?sl($d(a)):{}:d={}}return(C?Br:Oo)(a,function(D,F,z){return l(d,D,F,z)}),d}function XL(a,l){return a==null?!0:d0(a,l)}function ZL(a,l,d){return a==null?a:j_(a,l,m0(d))}function QL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:j_(a,l,m0(d),g)}function dl(a){return a==null?[]:qv(a,cn(a))}function JL(a){return a==null?[]:qv(a,er(a))}function e$(a,l,d){return d===n&&(d=l,l=n),d!==n&&(d=Hr(d),d=d===d?d:0),l!==n&&(l=Hr(l),l=l===l?l:0),Ja(Hr(a),l,d)}function t$(a,l,d){return l=Si(l),d===n?(d=l,l=0):d=Si(d),a=Hr(a),sN(a,l,d)}function n$(a,l,d){if(d&&typeof d!="boolean"&&zn(a,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof a=="boolean"&&(d=a,a=n)),a===n&&l===n?(a=0,l=1):(a=Si(a),l===n?(l=a,a=0):l=Si(l)),a>l){var g=a;a=l,l=g}if(d||a%1||l%1){var C=b_();return An(a+C*(l-a+U("1e-"+((C+"").length-1))),l)}return u0(a,l)}var r$=ul(function(a,l,d){return l=l.toLowerCase(),a+(d?X2(l):l)});function X2(a){return F0(rt(a).toLowerCase())}function Z2(a){return a=rt(a),a&&a.replace(Av,qD).replace(kd,"")}function o$(a,l,d){a=rt(a),l=br(l);var g=a.length;d=d===n?g:Ja(Le(d),0,g);var C=d;return d-=l.length,d>=0&&a.slice(d,C)==l}function i$(a){return a=rt(a),a&&ui.test(a)?a.replace(Hi,KD):a}function a$(a){return a=rt(a),a&&mv.test(a)?a.replace(Au,"\\$&"):a}var s$=ul(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),l$=ul(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),u$=e2("toLowerCase");function c$(a,l,d){a=rt(a),l=Le(l);var g=l?nl(a):0;if(!l||g>=l)return a;var C=(l-g)/2;return tp(Wd(C),d)+a+tp(Vd(C),d)}function f$(a,l,d){a=rt(a),l=Le(l);var g=l?nl(a):0;return l&&g<l?a+tp(l-g,d):a}function d$(a,l,d){a=rt(a),l=Le(l);var g=l?nl(a):0;return l&&g<l?tp(l-g,d)+a:a}function p$(a,l,d){return d||l==null?l=0:l&&(l=+l),SM(rt(a).replace(Tu,""),l||0)}function h$(a,l,d){return(d?zn(a,l,d):l===n)?l=1:l=Le(l),c0(rt(a),l)}function m$(){var a=arguments,l=rt(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var g$=ul(function(a,l,d){return a+(d?"_":"")+l.toLowerCase()});function v$(a,l,d){return d&&typeof d!="number"&&zn(a,l,d)&&(l=d=n),d=d===n?R:d>>>0,d?(a=rt(a),a&&(typeof l=="string"||l!=null&&!D0(l))&&(l=br(l),!l&&tl(a))?ta(lo(a),0,d):a.split(l,d)):[]}var y$=ul(function(a,l,d){return a+(d?" ":"")+F0(l)});function b$(a,l,d){return a=rt(a),d=d==null?0:Ja(Le(d),0,a.length),l=br(l),a.slice(d,d+l.length)==l}function S$(a,l,d){var g=A.templateSettings;d&&zn(a,l,d)&&(l=n),a=rt(a),l=pp({},l,g,s2);var C=pp({},l.imports,g.imports,s2),T=cn(C),D=qv(C,T),F,z,Z=0,Q=l.interpolate||qi,re="__p += '",pe=Yv((l.escape||qi).source+"|"+Q.source+"|"+(Q===sd?wv:qi).source+"|"+(l.evaluate||qi).source+"|$","g"),ke="//# sourceURL="+(lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pd+"]")+`
`;a.replace(pe,function(Ie,je,qe,xr,Vn,wr){return qe||(qe=xr),re+=a.slice(Z,wr).replace(Tv,YD),je&&(F=!0,re+=`' +
__e(`+je+`) +
'`),Vn&&(z=!0,re+=`';
`+Vn+`;
__p += '`),qe&&(re+=`' +
((__t = (`+qe+`)) == null ? '' : __t) +
'`),Z=wr+Ie.length,Ie}),re+=`';
`;var Oe=lt.call(l,"variable")&&l.variable;if(!Oe)re=`with (obj) {
`+re+`
}
`;else if(Sv.test(Oe))throw new De(u);re=(z?re.replace(Ka,""):re).replace(Us,"$1").replace(uv,"$1;"),re="function("+(Oe||"obj")+`) {
`+(Oe?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+re+`return __p
}`;var $e=J2(function(){return Qe(T,ke+"return "+re).apply(n,D)});if($e.source=re,R0($e))throw $e;return $e}function x$(a){return rt(a).toLowerCase()}function w$(a){return rt(a).toUpperCase()}function _$(a,l,d){if(a=rt(a),a&&(d||l===n))return l_(a);if(!a||!(l=br(l)))return a;var g=lo(a),C=lo(l),T=u_(g,C),D=c_(g,C)+1;return ta(g,T,D).join("")}function C$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.slice(0,d_(a)+1);if(!a||!(l=br(l)))return a;var g=lo(a),C=c_(g,lo(l))+1;return ta(g,0,C).join("")}function k$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.replace(Tu,"");if(!a||!(l=br(l)))return a;var g=lo(a),C=u_(g,lo(l));return ta(g,C).join("")}function E$(a,l){var d=W,g=te;if(Nt(l)){var C="separator"in l?l.separator:C;d="length"in l?Le(l.length):d,g="omission"in l?br(l.omission):g}a=rt(a);var T=a.length;if(tl(a)){var D=lo(a);T=D.length}if(d>=T)return a;var F=d-nl(g);if(F<1)return g;var z=D?ta(D,0,F).join(""):a.slice(0,F);if(C===n)return z+g;if(D&&(F+=z.length-F),D0(C)){if(a.slice(F).search(C)){var Z,Q=z;for(C.global||(C=Yv(C.source,rt(ci.exec(C))+"g")),C.lastIndex=0;Z=C.exec(Q);)var re=Z.index;z=z.slice(0,re===n?F:re)}}else if(a.indexOf(br(C),F)!=F){var pe=z.lastIndexOf(C);pe>-1&&(z=z.slice(0,pe))}return z+g}function P$(a){return a=rt(a),a&&cv.test(a)?a.replace(Pu,nM):a}var A$=ul(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),F0=e2("toUpperCase");function Q2(a,l,d){return a=rt(a),l=d?n:l,l===n?ZD(a)?iM(a):WD(a):a.match(l)||[]}var J2=ze(function(a,l){try{return vr(a,n,l)}catch(d){return R0(d)?d:new De(d)}}),T$=vi(function(a,l){return Br(l,function(d){d=Ro(d),mi(a,d,O0(a[d],a))}),a});function O$(a){var l=a==null?0:a.length,d=Te();return a=l?Tt(a,function(g){if(typeof g[1]!="function")throw new zr(s);return[d(g[0]),g[1]]}):[],ze(function(g){for(var C=-1;++C<l;){var T=a[C];if(vr(T[0],this,g))return vr(T[1],this,g)}})}function I$(a){return nN(Wr(a,h))}function L0(a){return function(){return a}}function R$(a,l){return a==null||a!==a?l:a}var D$=n2(),M$=n2(!0);function tr(a){return a}function $0(a){return R_(typeof a=="function"?a:Wr(a,h))}function N$(a){return M_(Wr(a,h))}function F$(a,l){return N_(a,Wr(l,h))}var L$=ze(function(a,l){return function(d){return Ku(d,a,l)}}),$$=ze(function(a,l){return function(d){return Ku(a,d,l)}});function B0(a,l,d){var g=cn(l),C=Kd(l,g);d==null&&!(Nt(l)&&(C.length||!g.length))&&(d=l,l=a,a=this,C=Kd(l,cn(l)));var T=!(Nt(d)&&"chain"in d)||!!d.chain,D=bi(a);return Br(C,function(F){var z=l[F];a[F]=z,D&&(a.prototype[F]=function(){var Z=this.__chain__;if(T||Z){var Q=a(this.__wrapped__),re=Q.__actions__=Qn(this.__actions__);return re.push({func:z,args:arguments,thisArg:a}),Q.__chain__=Z,Q}return z.apply(a,Yi([this.value()],arguments))})}),a}function B$(){return Fe._===this&&(Fe._=fM),this}function z0(){}function z$(a){return a=Le(a),ze(function(l){return F_(l,a)})}var V$=v0(Tt),W$=v0(r_),j$=v0(Wv);function eC(a){return C0(a)?jv(Ro(a)):bN(a)}function U$(a){return function(l){return a==null?n:es(a,l)}}var H$=o2(),G$=o2(!0);function V0(){return[]}function W0(){return!1}function q$(){return{}}function K$(){return""}function Y$(){return!0}function X$(a,l){if(a=Le(a),a<1||a>j)return[];var d=R,g=An(a,R);l=Te(l),a-=R;for(var C=Gv(g,l);++d<a;)l(d);return C}function Z$(a){return Ne(a)?Tt(a,Ro):Sr(a)?[a]:Qn(S2(rt(a)))}function Q$(a){var l=++uM;return rt(a)+l}var J$=ep(function(a,l){return a+l},0),eB=y0("ceil"),tB=ep(function(a,l){return a/l},1),nB=y0("floor");function rB(a){return a&&a.length?qd(a,tr,r0):n}function oB(a,l){return a&&a.length?qd(a,Te(l,2),r0):n}function iB(a){return a_(a,tr)}function aB(a,l){return a_(a,Te(l,2))}function sB(a){return a&&a.length?qd(a,tr,s0):n}function lB(a,l){return a&&a.length?qd(a,Te(l,2),s0):n}var uB=ep(function(a,l){return a*l},1),cB=y0("round"),fB=ep(function(a,l){return a-l},0);function dB(a){return a&&a.length?Hv(a,tr):0}function pB(a,l){return a&&a.length?Hv(a,Te(l,2)):0}return A.after=N6,A.ary=I2,A.assign=wL,A.assignIn=H2,A.assignInWith=pp,A.assignWith=_L,A.at=CL,A.before=R2,A.bind=O0,A.bindAll=T$,A.bindKey=D2,A.castArray=q6,A.chain=A2,A.chunk=nF,A.compact=rF,A.concat=oF,A.cond=O$,A.conforms=I$,A.constant=L0,A.countBy=d6,A.create=kL,A.curry=M2,A.curryRight=N2,A.debounce=F2,A.defaults=EL,A.defaultsDeep=PL,A.defer=F6,A.delay=L6,A.difference=iF,A.differenceBy=aF,A.differenceWith=sF,A.drop=lF,A.dropRight=uF,A.dropRightWhile=cF,A.dropWhile=fF,A.fill=dF,A.filter=h6,A.flatMap=v6,A.flatMapDeep=y6,A.flatMapDepth=b6,A.flatten=C2,A.flattenDeep=pF,A.flattenDepth=hF,A.flip=$6,A.flow=D$,A.flowRight=M$,A.fromPairs=mF,A.functions=ML,A.functionsIn=NL,A.groupBy=S6,A.initial=vF,A.intersection=yF,A.intersectionBy=bF,A.intersectionWith=SF,A.invert=LL,A.invertBy=$L,A.invokeMap=w6,A.iteratee=$0,A.keyBy=_6,A.keys=cn,A.keysIn=er,A.map=sp,A.mapKeys=zL,A.mapValues=VL,A.matches=N$,A.matchesProperty=F$,A.memoize=up,A.merge=WL,A.mergeWith=G2,A.method=L$,A.methodOf=$$,A.mixin=B0,A.negate=cp,A.nthArg=z$,A.omit=jL,A.omitBy=UL,A.once=B6,A.orderBy=C6,A.over=V$,A.overArgs=z6,A.overEvery=W$,A.overSome=j$,A.partial=I0,A.partialRight=L2,A.partition=k6,A.pick=HL,A.pickBy=q2,A.property=eC,A.propertyOf=U$,A.pull=CF,A.pullAll=E2,A.pullAllBy=kF,A.pullAllWith=EF,A.pullAt=PF,A.range=H$,A.rangeRight=G$,A.rearg=V6,A.reject=A6,A.remove=AF,A.rest=W6,A.reverse=A0,A.sampleSize=O6,A.set=qL,A.setWith=KL,A.shuffle=I6,A.slice=TF,A.sortBy=M6,A.sortedUniq=FF,A.sortedUniqBy=LF,A.split=v$,A.spread=j6,A.tail=$F,A.take=BF,A.takeRight=zF,A.takeRightWhile=VF,A.takeWhile=WF,A.tap=r6,A.throttle=U6,A.thru=ap,A.toArray=W2,A.toPairs=K2,A.toPairsIn=Y2,A.toPath=Z$,A.toPlainObject=U2,A.transform=YL,A.unary=H6,A.union=jF,A.unionBy=UF,A.unionWith=HF,A.uniq=GF,A.uniqBy=qF,A.uniqWith=KF,A.unset=XL,A.unzip=T0,A.unzipWith=P2,A.update=ZL,A.updateWith=QL,A.values=dl,A.valuesIn=JL,A.without=YF,A.words=Q2,A.wrap=G6,A.xor=XF,A.xorBy=ZF,A.xorWith=QF,A.zip=JF,A.zipObject=e6,A.zipObjectDeep=t6,A.zipWith=n6,A.entries=K2,A.entriesIn=Y2,A.extend=H2,A.extendWith=pp,B0(A,A),A.add=J$,A.attempt=J2,A.camelCase=r$,A.capitalize=X2,A.ceil=eB,A.clamp=e$,A.clone=K6,A.cloneDeep=X6,A.cloneDeepWith=Z6,A.cloneWith=Y6,A.conformsTo=Q6,A.deburr=Z2,A.defaultTo=R$,A.divide=tB,A.endsWith=o$,A.eq=co,A.escape=i$,A.escapeRegExp=a$,A.every=p6,A.find=m6,A.findIndex=w2,A.findKey=AL,A.findLast=g6,A.findLastIndex=_2,A.findLastKey=TL,A.floor=nB,A.forEach=T2,A.forEachRight=O2,A.forIn=OL,A.forInRight=IL,A.forOwn=RL,A.forOwnRight=DL,A.get=M0,A.gt=J6,A.gte=eL,A.has=FL,A.hasIn=N0,A.head=k2,A.identity=tr,A.includes=x6,A.indexOf=gF,A.inRange=t$,A.invoke=BL,A.isArguments=rs,A.isArray=Ne,A.isArrayBuffer=tL,A.isArrayLike=Jn,A.isArrayLikeObject=Gt,A.isBoolean=nL,A.isBuffer=na,A.isDate=rL,A.isElement=oL,A.isEmpty=iL,A.isEqual=aL,A.isEqualWith=sL,A.isError=R0,A.isFinite=lL,A.isFunction=bi,A.isInteger=$2,A.isLength=fp,A.isMap=B2,A.isMatch=uL,A.isMatchWith=cL,A.isNaN=fL,A.isNative=dL,A.isNil=hL,A.isNull=pL,A.isNumber=z2,A.isObject=Nt,A.isObjectLike=Vt,A.isPlainObject=ec,A.isRegExp=D0,A.isSafeInteger=mL,A.isSet=V2,A.isString=dp,A.isSymbol=Sr,A.isTypedArray=fl,A.isUndefined=gL,A.isWeakMap=vL,A.isWeakSet=yL,A.join=xF,A.kebabCase=s$,A.last=Ur,A.lastIndexOf=wF,A.lowerCase=l$,A.lowerFirst=u$,A.lt=bL,A.lte=SL,A.max=rB,A.maxBy=oB,A.mean=iB,A.meanBy=aB,A.min=sB,A.minBy=lB,A.stubArray=V0,A.stubFalse=W0,A.stubObject=q$,A.stubString=K$,A.stubTrue=Y$,A.multiply=uB,A.nth=_F,A.noConflict=B$,A.noop=z0,A.now=lp,A.pad=c$,A.padEnd=f$,A.padStart=d$,A.parseInt=p$,A.random=n$,A.reduce=E6,A.reduceRight=P6,A.repeat=h$,A.replace=m$,A.result=GL,A.round=cB,A.runInContext=B,A.sample=T6,A.size=R6,A.snakeCase=g$,A.some=D6,A.sortedIndex=OF,A.sortedIndexBy=IF,A.sortedIndexOf=RF,A.sortedLastIndex=DF,A.sortedLastIndexBy=MF,A.sortedLastIndexOf=NF,A.startCase=y$,A.startsWith=b$,A.subtract=fB,A.sum=dB,A.sumBy=pB,A.template=S$,A.times=X$,A.toFinite=Si,A.toInteger=Le,A.toLength=j2,A.toLower=x$,A.toNumber=Hr,A.toSafeInteger=xL,A.toString=rt,A.toUpper=w$,A.trim=_$,A.trimEnd=C$,A.trimStart=k$,A.truncate=E$,A.unescape=P$,A.uniqueId=Q$,A.upperCase=A$,A.upperFirst=F0,A.each=T2,A.eachRight=O2,A.first=k2,B0(A,function(){var a={};return Oo(A,function(l,d){lt.call(A.prototype,d)||(a[d]=l)}),a}(),{chain:!1}),A.VERSION=r,Br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){A[a].placeholder=A}),Br(["drop","take"],function(a,l){He.prototype[a]=function(d){d=d===n?1:on(Le(d),0);var g=this.__filtered__&&!l?new He(this):this.clone();return g.__filtered__?g.__takeCount__=An(d,g.__takeCount__):g.__views__.push({size:An(d,R),type:a+(g.__dir__<0?"Right":"")}),g},He.prototype[a+"Right"]=function(d){return this.reverse()[a](d).reverse()}}),Br(["filter","map","takeWhile"],function(a,l){var d=l+1,g=d==we||d==ve;He.prototype[a]=function(C){var T=this.clone();return T.__iteratees__.push({iteratee:Te(C,3),type:d}),T.__filtered__=T.__filtered__||g,T}}),Br(["head","last"],function(a,l){var d="take"+(l?"Right":"");He.prototype[a]=function(){return this[d](1).value()[0]}}),Br(["initial","tail"],function(a,l){var d="drop"+(l?"":"Right");He.prototype[a]=function(){return this.__filtered__?new He(this):this[d](1)}}),He.prototype.compact=function(){return this.filter(tr)},He.prototype.find=function(a){return this.filter(a).head()},He.prototype.findLast=function(a){return this.reverse().find(a)},He.prototype.invokeMap=ze(function(a,l){return typeof a=="function"?new He(this):this.map(function(d){return Ku(d,a,l)})}),He.prototype.reject=function(a){return this.filter(cp(Te(a)))},He.prototype.slice=function(a,l){a=Le(a);var d=this;return d.__filtered__&&(a>0||l<0)?new He(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=Le(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},He.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},He.prototype.toArray=function(){return this.take(R)},Oo(He.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),C=A[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!C||(A.prototype[l]=function(){var D=this.__wrapped__,F=g?[1]:arguments,z=D instanceof He,Z=F[0],Q=z||Ne(D),re=function(je){var qe=C.apply(A,Yi([je],F));return g&&pe?qe[0]:qe};Q&&d&&typeof Z=="function"&&Z.length!=1&&(z=Q=!1);var pe=this.__chain__,ke=!!this.__actions__.length,Oe=T&&!pe,$e=z&&!ke;if(!T&&Q){D=$e?D:new He(this);var Ie=a.apply(D,F);return Ie.__actions__.push({func:ap,args:[re],thisArg:n}),new Vr(Ie,pe)}return Oe&&$e?a.apply(this,F):(Ie=this.thru(re),Oe?g?Ie.value()[0]:Ie.value():Ie)})}),Br(["pop","push","shift","sort","splice","unshift"],function(a){var l=Rd[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);A.prototype[a]=function(){var C=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply(Ne(T)?T:[],C)}return this[d](function(D){return l.apply(Ne(D)?D:[],C)})}}),Oo(He.prototype,function(a,l){var d=A[l];if(d){var g=d.name+"";lt.call(al,g)||(al[g]=[]),al[g].push({name:l,func:d})}}),al[Jd(n,x).name]=[{name:"wrapper",func:n}],He.prototype.clone=PM,He.prototype.reverse=AM,He.prototype.value=TM,A.prototype.at=o6,A.prototype.chain=i6,A.prototype.commit=a6,A.prototype.next=s6,A.prototype.plant=u6,A.prototype.reverse=c6,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=f6,A.prototype.first=A.prototype.head,Vu&&(A.prototype[Vu]=l6),A},rl=aM();Ze?((Ze.exports=rl)._=rl,Be._=rl):Fe._=rl}).call(Ai)})(Ut,Ut.exports);const ele={currentImageUuid:"",images:[]},Q4=zw({name:"gallery",initialState:ele,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=Ut.exports.clamp(o-1,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.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{const n=t.payload;if(n.length){const r=n[n.length-1];e.images=n,e.currentImage=r,e.currentImageUuid=r.uuid}}}}),{setCurrentImage:tle,removeImage:nle,addImage:Xp,setGalleryImages:rle,setIntermediateImage:ole,clearIntermediateImage:yA}=Q4.actions,ile=Q4.reducer,ale={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"",currentStatusHasSteps:!1},sle=ale,J4=zw({name:"system",initialState:sle,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},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:lle,setIsProcessing:Bo,addLogEntry:jn,setShouldShowLogViewer:ule,setIsConnected:bA,setSocketId:Vfe,setShouldConfirmOnDelete:eD,setOpenAccordions:cle,setSystemStatus:fle,setCurrentStatus:SA}=J4.actions,dle=J4.reducer,ai=Object.create(null);ai.open="0";ai.close="1";ai.ping="2";ai.pong="3";ai.message="4";ai.upgrade="5";ai.noop="6";const Th=Object.create(null);Object.keys(ai).forEach(e=>{Th[ai[e]]=e});const ple={type:"error",data:"parser error"},hle=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mle=typeof ArrayBuffer=="function",gle=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,tD=({type:e,data:t},n,r)=>hle&&t instanceof Blob?n?r(t):xA(t,r):mle&&(t instanceof ArrayBuffer||gle(t))?n?r(t):xA(new Blob([t]),r):r(ai[e]+(t||"")),xA=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},wA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<wA.length;e++)kc[wA.charCodeAt(e)]=e;const vle=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<n;r+=4)i=kc[e.charCodeAt(r)],s=kc[e.charCodeAt(r+1)],u=kc[e.charCodeAt(r+2)],c=kc[e.charCodeAt(r+3)],p[o++]=i<<2|s>>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},yle=typeof ArrayBuffer=="function",nD=(e,t)=>{if(typeof e!="string")return{type:"message",data:rD(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:ble(e.substring(1),t)}:Th[n]?e.length>1?{type:Th[n],data:e.substring(1)}:{type:Th[n]}:ple},ble=(e,t)=>{if(yle){const n=vle(e);return rD(n,t)}else return{base64:!0,data:e}},rD=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},oD=String.fromCharCode(30),Sle=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{tD(i,!1,u=>{r[s]=u,++o===n&&t(r.join(oD))})})},xle=(e,t)=>{const n=e.split(oD),r=[];for(let o=0;o<n.length;o++){const i=nD(n[o],t);if(r.push(i),i.type==="error")break}return r},iD=4;function nn(e){if(e)return wle(e)}function wle(e){for(var t in nn.prototype)e[t]=nn.prototype[t];return e}nn.prototype.on=nn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};nn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};nn.prototype.off=nn.prototype.removeListener=nn.prototype.removeAllListeners=nn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};nn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};nn.prototype.emitReserved=nn.prototype.emit;nn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};nn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const _a=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function aD(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const _le=setTimeout,Cle=clearTimeout;function sv(e,t){t.useNativeTimers?(e.setTimeoutFn=_le.bind(_a),e.clearTimeoutFn=Cle.bind(_a)):(e.setTimeoutFn=setTimeout.bind(_a),e.clearTimeoutFn=clearTimeout.bind(_a))}const kle=1.33;function Ele(e){return typeof e=="string"?Ple(e):Math.ceil((e.byteLength||e.size)*kle)}function Ple(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class Ale extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class sD extends nn{constructor(t){super(),this.writable=!1,sv(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Ale(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=nD(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const lD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),rS=64,Tle={};let _A=0,Zp=0,CA;function kA(e){let t="";do t=lD[e%rS]+t,e=Math.floor(e/rS);while(e>0);return t}function uD(){const e=kA(+new Date);return e!==CA?(_A=0,CA=e):e+"."+kA(_A++)}for(;Zp<rS;Zp++)Tle[lD[Zp]]=Zp;function cD(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ole(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let fD=!1;try{fD=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ile=fD;function dD(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ile))return new XMLHttpRequest}catch{}if(!t)try{return new _a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Rle(){}const Dle=function(){return new dD({xdomain:!1}).responseType!=null}();class Mle extends sD{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=Dle&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{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)};xle(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,Sle(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]=uD()),!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=cD(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 ni(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 ni extends nn{constructor(t,n){super(),sv(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=aD(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 dD(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=ni.requestsCount++,ni.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=Rle,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ni.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()}}ni.requestsCount=0;ni.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",EA);else if(typeof addEventListener=="function"){const e="onpagehide"in _a?"pagehide":"unload";addEventListener(e,EA,!1)}}function EA(){for(let e in ni.requests)ni.requests.hasOwnProperty(e)&&ni.requests[e].abort()}const Nle=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Qp=_a.WebSocket||_a.MozWebSocket,PA=!0,Fle="arraybuffer",AA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Lle extends sD{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=AA?{}:aD(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=PA&&!AA?n?new Qp(t,n):new Qp(t):new Qp(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Fle,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<t.length;n++){const r=t[n],o=n===t.length-1;tD(r,this.supportsBinary,i=>{const s={};try{PA&&this.ws.send(i)}catch{}o&&Nle(()=>{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]=uD()),this.supportsBinary||(t.b64=1);const o=cD(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!!Qp}}const $le={websocket:Lle,polling:Mle},Ble=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,zle=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function oS(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=Ble.exec(e||""),i={},s=14;for(;s--;)i[zle[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=Vle(i,i.path),i.queryKey=Wle(i,i.query),i}function Vle(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 Wle(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class va extends nn{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=oS(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=oS(n.host).host),sv(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=Ole(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=iD,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 $le[t](r)}open(){let t;if(this.opts.rememberUpgrade&&va.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;va.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;va.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",va.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<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{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;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=Ele(o)),r>0&&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){va.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(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}va.protocol=iD;function jle(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=oS(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const Ule=typeof ArrayBuffer=="function",Hle=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,pD=Object.prototype.toString,Gle=typeof Blob=="function"||typeof Blob<"u"&&pD.call(Blob)==="[object BlobConstructor]",qle=typeof File=="function"||typeof File<"u"&&pD.call(File)==="[object FileConstructor]";function Zw(e){return Ule&&(e instanceof ArrayBuffer||Hle(e))||Gle&&e instanceof Blob||qle&&e instanceof File}function Oh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Oh(e[n]))return!0;return!1}if(Zw(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Oh(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Oh(e[n]))return!0;return!1}function Kle(e){const t=[],n=e.data,r=e;return r.data=iS(n,t),r.attachments=t.length,{packet:r,buffers:t}}function iS(e,t){if(!e)return e;if(Zw(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=iS(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=iS(e[r],t));return n}return e}function Yle(e,t){return e.data=aS(e.data,t),e.attachments=void 0,e}function aS(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=aS(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=aS(e[n],t));return e}const Xle=5;var Ke;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class Zle{constructor(t){this.replacer=t}encode(t){return(t.type===Ke.EVENT||t.type===Ke.ACK)&&Oh(t)?(t.type=t.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ke.BINARY_EVENT||t.type===Ke.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Kle(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Qw extends nn{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t),n.type===Ke.BINARY_EVENT||n.type===Ke.BINARY_ACK?(this.reconstructor=new Qle(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Zw(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(Qw.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ke.CONNECT:return typeof n=="object";case Ke.DISCONNECT:return n===void 0;case Ke.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Qle{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=Yle(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Jle=Object.freeze(Object.defineProperty({__proto__:null,protocol:Xle,get PacketType(){return Ke},Encoder:Zle,Decoder:Qw},Symbol.toStringTag,{value:"Module"}));function So(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const eue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class hD extends nn{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=[So(t,"open",this.onopen.bind(this)),So(t,"packet",this.onpacket.bind(this)),So(t,"error",this.onerror.bind(this)),So(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(eue.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Ke.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.sendBuffer.length;i++)this.sendBuffer[i].id===t&&this.sendBuffer.splice(i,1);n.call(this,new Error("operation has timed out"))},r);this.acks[t]=(...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:Ke.CONNECT,data:t})}):this.packet({type:Ke.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 Ke.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 Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(t);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(t);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.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:Ke.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:Ke.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;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Eu(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Eu.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};Eu.prototype.reset=function(){this.attempts=0};Eu.prototype.setMin=function(e){this.ms=e};Eu.prototype.setMax=function(e){this.max=e};Eu.prototype.setJitter=function(e){this.jitter=e};class sS extends nn{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,sv(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 Eu({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||Jle;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 va(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=So(n,"open",function(){r.onopen(),t&&t()}),i=So(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(So(t,"ping",this.onping.bind(this)),So(t,"data",this.ondata.bind(this)),So(t,"error",this.onerror.bind(this)),So(t,"close",this.onclose.bind(this)),So(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 hD(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;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),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 mc={};function Ih(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=jle(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=mc[o]&&i in mc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new sS(r,t):(mc[o]||(mc[o]=new sS(r,t)),c=mc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Ih,{Manager:sS,Socket:hD,io:Ih,connect:Ih});let Jp;const tue=new Uint8Array(16);function nue(){if(!Jp&&(Jp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jp(tue)}const yn=[];for(let e=0;e<256;++e)yn.push((e+256).toString(16).slice(1));function rue(e,t=0){return(yn[e[t+0]]+yn[e[t+1]]+yn[e[t+2]]+yn[e[t+3]]+"-"+yn[e[t+4]]+yn[e[t+5]]+"-"+yn[e[t+6]]+yn[e[t+7]]+"-"+yn[e[t+8]]+yn[e[t+9]]+"-"+yn[e[t+10]]+yn[e[t+11]]+yn[e[t+12]]+yn[e[t+13]]+yn[e[t+14]]+yn[e[t+15]]).toLowerCase()}const oue=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),TA={randomUUID:oue};function gc(e,t,n){if(TA.randomUUID&&!t&&!e)return TA.randomUUID();e=e||{};const r=e.random||(e.rng||nue)();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 rue(r)}var iue=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,aue=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,sue=/[^-+\dA-Z]/g;function Un(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(OA[t]||t||OA.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()},S=function(){return lue(e)},k=function(){return uue(e)},x={d:function(){return s()},dd:function(){return _r(s())},ddd:function(){return nr.dayNames[u()]},DDD:function(){return IA({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()],short:!0})},dddd:function(){return nr.dayNames[u()+7]},DDDD:function(){return IA({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return _r(c()+1)},mmm:function(){return nr.monthNames[c()]},mmmm:function(){return nr.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return _r(f(),4)},h:function(){return p()%12||12},hh:function(){return _r(p()%12||12)},H:function(){return p()},HH:function(){return _r(p())},M:function(){return h()},MM:function(){return _r(h())},s:function(){return m()},ss:function(){return _r(m())},l:function(){return _r(v(),3)},L:function(){return _r(Math.floor(v()/10))},t:function(){return p()<12?nr.timeNames[0]:nr.timeNames[1]},tt:function(){return p()<12?nr.timeNames[2]:nr.timeNames[3]},T:function(){return p()<12?nr.timeNames[4]:nr.timeNames[5]},TT:function(){return p()<12?nr.timeNames[6]:nr.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":cue(e)},o:function(){return(y()>0?"-":"+")+_r(Math.floor(Math.abs(y())/60)*100+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+_r(Math.floor(Math.abs(y())/60),2)+":"+_r(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 S()},WW:function(){return _r(S())},N:function(){return k()}};return t.replace(iue,function(b){return b in x?x[b]():b.slice(1,b.length-1)})}var OA={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"},nr={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"]},_r=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},IA=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"]()},S=function(){return p[i+"Date"]()},k=function(){return p[i+"Month"]()},x=function(){return p[i+"FullYear"]()},b=function(){return h[i+"Date"]()},w=function(){return h[i+"Month"]()},P=function(){return h[i+"FullYear"]()};return y()===n&&v()===r&&m()===o?c?"Tdy":"Today":x()===n&&k()===r&&S()===o?c?"Ysd":"Yesterday":P()===n&&w()===r&&b()===o?c?"Tmw":"Tomorrow":s},lue=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)},uue=function(t){var n=t.getDay();return n===0&&(n=7),n},cue=function(t){return(String(t).match(aue)||[""]).pop().replace(sue,"").replace(/GMT\+0000/g,"UTC")};const fue=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],due=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],pue=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],hue=[{key:"2x",value:2},{key:"4x",value:4}],RA={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},lS=0,uS=4294967295,mD=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),gD=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>[parseInt(o[0]),parseFloat(o[1])]);return lv(r)?r:!1},lv=e=>Boolean(typeof e=="string"?gD(e):e.length&&!e.some(t=>{const[n,r]=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),mue=e=>lv(e)?e.reduce((t,n,r,o)=>{const[i,s]=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""):!1,gue=(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:S,maskPath:k,shouldFitToWidthHeight:x,shouldGenerateVariations:b,variationAmount:w,seedWeights:P,shouldRunESRGAN:O,upscalingLevel:M,upscalingStrength:N,shouldRunGFPGAN:V,gfpganStrength:K,shouldRandomizeSeed:W}=e,{shouldDisplayInProgress:te}=t,xe={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};xe.seed=W?mD(lS,uS):h,v&&(xe.init_img=S,xe.strength=y,xe.fit=x,k&&(xe.init_mask=k)),b?(xe.variation_amount=w,P&&(xe.with_variations=gD(P))):xe.variation_amount=0;let fe=!1,we=!1;return O&&(fe={level:M,strength:N}),V&&(we={strength:K}),{generationParameters:xe,esrganParameters:fe,gfpganParameters:we}},DA=e=>{const{prompt:t,iterations:n,steps:r,cfg_scale:o,threshold:i,perlin:s,height:u,width:c,sampler_name:f,seed:p,seamless:h,progress_images:m,variation_amount:v,with_variations:y,gfpgan_strength:S,upscale:k,init_img:x,init_mask:b,strength:w}=e,P={shouldDisplayInProgress:m,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return v>0&&(P.shouldGenerateVariations=!0,P.variationAmount=v,y&&(P.seedWeights=mue(y))),S>0&&(P.shouldRunGFPGAN=!0,P.gfpganStrength=S),k&&(P.shouldRunESRGAN=!0,P.upscalingLevel=k[0],P.upscalingStrength=k[1]),x&&(P.shouldUseInitImage=!0,P.initialImagePath=x,P.strength=w,b&&(P.maskPath=b)),t&&(P.prompt=t,P.iterations=n,P.steps=r,P.cfgScale=o,P.threshold=i,P.perlin=s,P.height=u,P.width=c,P.sampler=f,P.seed=p,P.seamless=h),P},vue=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(bA(!0)),t(SA("Connected"))}catch(r){console.error(r)}},onDisconnect:()=>{try{t(bA(!1)),t(Bo(!1)),t(SA("Disconnected")),t(jn({timestamp:Un(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{url:o,metadata:i}=r,s=gc(),u=DA(i);t(Xp({uuid:s,url:o,metadata:u})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(Bo(!1))}catch(o){console.error(o)}},onIntermediateResult:r=>{try{const o=gc(),{url:i,metadata:s}=r;t(ole({uuid:o,url:i,metadata:s})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Intermediate image generated: ${i}`})),t(Bo(!1))}catch(o){console.error(o)}},onESRGANResult:r=>{try{const{url:o,uuid:i,metadata:s}=r,u=gc(),f={...n().gallery.images.find(p=>p.uuid===i).metadata};f.shouldRunESRGAN=!0,f.upscalingLevel=s.upscale[0],f.upscalingStrength=s.upscale[1],t(Xp({uuid:u,url:o,metadata:f})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(Bo(!1))}catch(o){console.error(o)}},onGFPGANResult:r=>{try{const{url:o,uuid:i,metadata:s}=r,u=gc(),f={...n().gallery.images.find(p=>p.uuid===i).metadata};f.shouldRunGFPGAN=!0,f.gfpganStrength=s.gfpgan_strength,t(Xp({uuid:u,url:o,metadata:f})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:r=>{try{t(Bo(!0)),t(fle(r))}catch(o){console.error(o)}},onError:r=>{const{message:o,additionalData:i}=r;try{t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Bo(!1)),t(yA())}catch(s){console.error(s)}},onGalleryImages:r=>{const{images:o}=r,i=o.map(s=>({uuid:gc(),url:s.path,metadata:DA(s.metadata)}));t(rle(i)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Bo(!1));const{intermediateImage:r}=n().gallery;r&&(t(Xp(r)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(yA())),t(jn({timestamp:Un(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:o,uuid:i}=r;t(nle(i)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:r=>{const{url:o}=r;t(Yw(o)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:r=>{const{url:o}=r;t(Z4(o)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))}}},yue=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:()=>{n(Bo(!0));const{generationParameters:o,esrganParameters:i,gfpganParameters:s}=gue(r().sd,r().system);t.emit("generateImage",o,i,s),n(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...i,...s})}`}))},emitRunESRGAN:o=>{n(Bo(!0));const{upscalingLevel:i,upscalingStrength:s}=r().sd,u={upscale:[i,s]};t.emit("runESRGAN",o,u),n(jn({timestamp:Un(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...u})}`}))},emitRunGFPGAN:o=>{n(Bo(!0));const{gfpganStrength:i}=r().sd,s={gfpgan_strength:i};t.emit("runGFPGAN",o,s),n(jn({timestamp:Un(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)},emitRequestAllImages:()=>{t.emit("requestAllImages")},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)}}},bue=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=Ih(`http://${e}:9090`);let r=!1;return i=>s=>u=>{const{onConnect:c,onDisconnect:f,onError:p,onESRGANResult:h,onGFPGANResult:m,onGenerationResult:v,onIntermediateResult:y,onProgressUpdate:S,onGalleryImages:k,onProcessingCanceled:x,onImageDeleted:b,onInitialImageUploaded:w,onMaskImageUploaded:P}=vue(i),{emitGenerateImage:O,emitRunESRGAN:M,emitRunGFPGAN:N,emitDeleteImage:V,emitRequestAllImages:K,emitCancelProcessing:W,emitUploadInitialImage:te,emitUploadMaskImage:xe}=yue(i,n);switch(r||(n.on("connect",()=>c()),n.on("disconnect",()=>f()),n.on("error",fe=>p(fe)),n.on("generationResult",fe=>v(fe)),n.on("esrganResult",fe=>h(fe)),n.on("gfpganResult",fe=>m(fe)),n.on("intermediateResult",fe=>y(fe)),n.on("progressUpdate",fe=>S(fe)),n.on("galleryImages",fe=>k(fe)),n.on("processingCanceled",()=>{x()}),n.on("imageDeleted",fe=>{b(fe)}),n.on("initialImageUploaded",fe=>{w(fe)}),n.on("maskImageUploaded",fe=>{P(fe)}),r=!0),u.type){case"socketio/generateImage":{O();break}case"socketio/runESRGAN":{M(u.payload);break}case"socketio/runGFPGAN":{N(u.payload);break}case"socketio/deleteImage":{V(u.payload);break}case"socketio/requestAllImages":{K();break}case"socketio/cancelProcessing":{W();break}case"socketio/uploadInitialImage":{te(u.payload);break}case"socketio/uploadMaskImage":{xe(u.payload);break}}s(u)}},Sue={key:"root",storage:Kw,blacklist:["gallery","system"]},xue={key:"system",storage:Kw,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},wue=T4({sd:Jse,gallery:ile,system:q4(xue,dle)}),_ue=q4(Sue,wue),vD=hae({reducer:_ue,middleware:e=>e({serializableCheck:!1}).concat(bue())}),kn=Jae,yt=Wae;function Rh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rh=function(n){return typeof n}:Rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rh(e)}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kue(e,t,n){return t&&MA(e.prototype,t),n&&MA(e,n),e}function Eue(e,t){return t&&(Rh(t)==="object"||typeof t=="function")?t:Dh(e)}function cS(e){return cS=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cS(e)}function Dh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fS(e,t)}function fS(e,t){return fS=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},fS(e,t)}function Mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yD=function(e){Pue(t,e);function t(){var n,r;Cue(this,t);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=Eue(this,(n=cS(t)).call.apply(n,[this].concat(i))),Mh(Dh(r),"state",{bootstrapped:!1}),Mh(Dh(r),"_unsubscribe",void 0),Mh(Dh(r),"handlePersistorState",function(){var u=r.props.persistor,c=u.getState(),f=c.bootstrapped;f&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return kue(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(_.exports.PureComponent);Mh(yD,"defaultProps",{children:null,loading:null});const NA=Nie({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({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"}}}}),bD=()=>E(Ue,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:E(Bg,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})});var SD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FA=ee.createContext&&ee.createContext(SD),Da=globalThis&&globalThis.__assign||function(){return Da=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Da.apply(this,arguments)},Aue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xD(e){return e&&e.map(function(t,n){return ee.createElement(t.tag,Da({key:n},t.attr),xD(t.child))})}function Lr(e){return function(t){return E(Tue,{...Da({attr:Da({},e.attr)},t),children:xD(e.child)})}}function Tue(e){var t=function(n){var r=e.attr,o=e.size,i=e.title,s=Aue(e,["attr","size","title"]),u=o||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),ue("svg",{...Da({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:Da(Da({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),children:[i&&E("title",{children:i}),e.children]})};return FA!==void 0?E(FA.Consumer,{children:function(n){return t(n)}}):t(SD)}function Oue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(e)}function Iue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}]})(e)}function Rue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function Due(e){return Lr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function Mue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function Nue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function Fue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(e)}function Lue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function $ue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function Bue(e){return Lr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(e)}function wD(e){return Lr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}const zo=e=>{const{label:t,size:n="sm",...r}=e;return E(oi,{size:n,...r,children:t})},zue=(e,t)=>e.image.uuid===t.image.uuid,Vue=_.exports.memo(({image:e})=>{const t=kn(),n=Object.keys(RA),r=[];return n.forEach(o=>{const i=e.metadata[o];i!==void 0&&r.push({label:RA[o],key:o,value:i})}),ue(Ue,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[E(zo,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:r.length===0,onClick:()=>t(Xw(e.metadata))}),ue(Ue,{gap:2,children:[E(Pt,{fontWeight:"semibold",children:"File:"}),E(wm,{href:e.url,isExternal:!0,children:E(Pt,{children:e.url})})]}),r.length?ue(fr,{children:[E(Ug,{children:r.map((o,i)=>{const{label:s,key:u,value:c}=o;return E($3,{pb:1,children:ue(Ue,{gap:2,children:[E(Zr,{"aria-label":"Use this parameter",icon:E(Lue,{}),size:"xs",onClick:()=>t(Gse({key:u,value:c}))}),ue(Pt,{fontWeight:"semibold",children:[s,":"]}),c==null||c===""||c===0?E(Pt,{maxHeight:100,fontStyle:"italic",children:"None"}):E(Pt,{maxHeight:100,overflowY:"scroll",children:c.toString()})]})},i)})}),ue(Ue,{gap:2,children:[E(Pt,{fontWeight:"semibold",children:"Raw:"}),E(Pt,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)})]})]}):E(Af,{width:"100%",pt:10,children:E(Pt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},zue),_D=Rr("socketio/generateImage"),Wue=Rr("socketio/runESRGAN"),jue=Rr("socketio/runGFPGAN"),Uue=Rr("socketio/deleteImage"),Hue=Rr("socketio/requestAllImages"),Gue=Rr("socketio/cancelProcessing"),que=Rr("socketio/uploadInitialImage"),Kue=Rr("socketio/uploadMaskImage"),Yue=Ht(e=>e.system,e=>e.shouldConfirmOnDelete),CD=({image:e,children:t})=>{const{isOpen:n,onOpen:r,onClose:o}=Ib(),i=kn(),s=yt(Yue),u=_.exports.useRef(null),c=h=>{h.stopPropagation(),s?r():f()},f=()=>{i(Uue(e)),o()},p=h=>i(eD(!h.target.checked));return ue(fr,{children:[_.exports.cloneElement(t,{onClick:c}),E(gQ,{isOpen:n,leastDestructiveRef:u,onClose:o,children:E(Tm,{children:ue(vQ,{children:[E(Pw,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),E(Pm,{children:ue(Ue,{direction:"column",gap:5,children:[E(Pt,{children:"Are you sure? You can't undo this action afterwards."}),E(La,{children:ue(Ue,{alignItems:"center",children:[E($a,{mb:0,children:"Don't ask me again"}),E(Ra,{checked:!s,onChange:p})]})})]})}),ue(Ew,{children:[E(oi,{ref:u,onClick:o,children:"Cancel"}),E(oi,{colorScheme:"red",onClick:f,ml:3,children:"Delete"})]})]})})})]})},Xue=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Zue=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const r=kn(),{intermediateImage:o}=yt(x=>x.gallery),{upscalingLevel:i,gfpganStrength:s}=yt(x=>x.sd),{isProcessing:u,isConnected:c,isGFPGANAvailable:f,isESRGANAvailable:p}=yt(Xue),h=()=>r(Yw(e.url)),m=()=>r(Xw(e.metadata)),v=()=>r(zm(e.metadata.seed)),y=()=>r(Wue(e)),S=()=>r(jue(e)),k=()=>n(!t);return ue(Ue,{gap:2,children:[E(zo,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:h}),E(zo,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:m}),E(zo,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e.metadata.seed,onClick:v}),E(zo,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p||Boolean(o)||!(c&&!u)||!i,onClick:y}),E(zo,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!f||Boolean(o)||!(c&&!u)||!s,onClick:S}),E(zo,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:k}),E(CD,{image:e,children:E(zo,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)})})]})},Que="calc(100vh - 238px)",Jue=()=>{const{currentImage:e,intermediateImage:t}=yt(s=>s.gallery),n=Cs("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[r,o]=_.exports.useState(!1),i=t||e;return i?ue(Ue,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[E(Zue,{image:i,shouldShowImageDetails:r,setShouldShowImageDetails:o}),ue(Af,{height:Que,position:"relative",children:[E(Pf,{src:i.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),r&&E(Ue,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:E(Vue,{image:i})})]})]}):E(Af,{height:"100%",position:"relative",children:E(Pt,{size:"xl",children:"No image selected"})})},ece=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,tce=_.exports.memo(e=>{const[t,n]=_.exports.useState(!1),r=kn(),o=Cs("green.600","green.300"),i=Cs("gray.200","gray.700"),s=Cs("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=x=>{x.stopPropagation(),r(Xw(h))},S=x=>{x.stopPropagation(),r(zm(u.metadata.seed))};return ue(Es,{position:"relative",children:[E(Pf,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ue(Ue,{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(tle(u)),onMouseOver:m,onMouseOut:v,children:[c&&E(Po,{fill:o,width:"50%",height:"50%",as:Rue}),t&&ue(Ue,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[E(CD,{image:u,children:E(Zr,{colorScheme:"red","aria-label":"Delete image",icon:E(wD,{}),size:"xs",fontSize:15})}),E(Zr,{"aria-label":"Use all parameters",colorScheme:"blue",icon:E(Mue,{}),size:"xs",fontSize:15,onClickCapture:y}),u.metadata.seed&&E(Zr,{"aria-label":"Use seed",colorScheme:"blue",icon:E($ue,{}),size:"xs",fontSize:16,onClickCapture:S})]})]})]},p)},ece),nce=()=>{const{images:e,currentImageUuid:t}=yt(n=>n.gallery);return e.length?E(Ue,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(n=>{const{uuid:r}=n;return E(tce,{image:n,isSelected:t===r},r)})}):E(Af,{height:"100%",position:"relative",children:E(Pt,{size:"xl",children:"No images in gallery"})})},rce=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),oce=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=yt(rce),o=t?Math.round(t*100/n):0;return E(J5,{height:"10px",value:o,isIndeterminate:e&&!r})};function ice(e){return Lr({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 ace(e){return Lr({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 sce=Ht(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}},{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),lce=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Ib(),{isOpen:o,onOpen:i,onClose:s}=Ib(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c}=yt(sce),f=kn(),p=()=>{FD.purge().then(()=>{r(),i()})};return ue(fr,{children:[_.exports.cloneElement(e,{onClick:n}),ue(Df,{isOpen:t,onClose:r,children:[E(Tm,{}),ue(Am,{children:[E(Pw,{children:"Settings"}),E(j5,{}),E(Pm,{children:ue(Ue,{gap:5,direction:"column",children:[E(La,{children:ue(_m,{children:[E($a,{marginBottom:1,children:"Display in-progress images (slower)"}),E(Ra,{isChecked:u,onChange:h=>f(lle(h.target.checked))})]})}),E(La,{children:ue(_m,{children:[E($a,{marginBottom:1,children:"Confirm on delete"}),E(Ra,{isChecked:c,onChange:h=>f(eD(h.target.checked))})]})}),E(aw,{size:"md",children:"Reset Web UI"}),E(Pt,{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."}),E(Pt,{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."}),E(oi,{colorScheme:"red",onClick:p,children:"Reset Web UI"})]})}),E(Ew,{children:E(oi,{onClick:r,children:"Close"})})]})]}),ue(Df,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[E(Tm,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),E(Am,{children:E(Pm,{pb:6,pt:6,children:E(Ue,{justifyContent:"center",children:E(Pt,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},uce=Ht(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),cce=()=>{const{colorMode:e,toggleColorMode:t}=ug(),{isConnected:n,isProcessing:r,currentIteration:o,totalIterations:i,currentStatus:s}=yt(uce),u=n?"green.500":"red.500",c=e=="light"?E(Fue,{}):E(Bue,{}),f=e=="light"?18:20;let p=s;return r&&i>1&&(p+=` [${o}/${i}]`),ue(Ue,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[E(aw,{size:"lg",children:"Stable Diffusion Dream Server"}),E(B3,{}),E(Pt,{textColor:u,children:p}),E(lce,{children:E(Zr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:E(ace,{})})}),E(Zr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:E(wm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:E(ice,{})})}),E(Zr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:E(wm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:E(Oue,{})})}),E(Zr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:f,icon:c})]})},qo=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return E(La,{isDisabled:n,width:i,isInvalid:s,children:ue(Ue,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&E($a,{marginBottom:1,children:E(Pt,{fontSize:r,whiteSpace:"nowrap",children:t})}),ue(q5,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[E(Y5,{fontSize:"md"}),ue(K5,{children:[E(Q5,{}),E(Z5,{})]})]})]})})},Vm=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return E(La,{isDisabled:n,width:i,children:ue(Ue,{justifyContent:"space-between",alignItems:"center",children:[t&&E($a,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),E(Ra,{size:o,...s})]})})},fce=Ht(e=>e.sd,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),dce=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=yt(fce),s=kn(),u=y=>s(Ise(Number(y))),c=y=>s(Qse(y.target.checked)),f=y=>s(zm(Number(y))),p=()=>s(zm(mD(lS,uS))),h=y=>s(qse(y.target.checked)),m=y=>s(Yse(Number(y))),v=y=>s(Kse(y.target.value));return ue(Ue,{gap:2,direction:"column",children:[E(qo,{label:"Images to generate",step:1,min:1,precision:0,onChange:u,value:i}),E(Vm,{label:"Randomize seed on generation",isChecked:r,onChange:c}),ue(Ue,{gap:2,children:[E(qo,{label:"Seed",step:1,precision:0,flexGrow:1,min:lS,max:uS,isDisabled:r,isInvalid:o<0&&e,onChange:f,value:o}),E(oi,{size:"sm",isDisabled:r,onClick:p,children:E(Pt,{pl:2,pr:2,children:"Shuffle"})})]}),E(Vm,{label:"Generate variations",isChecked:e,width:"auto",onChange:h}),E(qo,{label:"Variation amount",value:t,step:.01,min:0,max:1,onChange:m}),E(La,{isInvalid:e&&!(lv(n)||n===""),flexGrow:1,children:ue(_m,{children:[E($a,{marginInlineEnd:0,marginBottom:1,children:E(Pt,{whiteSpace:"nowrap",children:"Seed Weights"})}),E(rw,{size:"sm",value:n,onChange:v})]})})]})},Wm=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return E(La,{isDisabled:n,children:ue(Ue,{justifyContent:"space-between",alignItems:"center",children:[E($a,{marginBottom:s,children:E(Pt,{fontSize:i,whiteSpace:u,children:t})}),E(t4,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?E("option",{value:f,children:f},f):E("option",{value:f.value,children:f.key},f.value))})]})})},pce=Ht(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),hce=()=>{const e=kn(),{steps:t,cfgScale:n,sampler:r,threshold:o,perlin:i}=yt(pce);return ue(Ue,{gap:2,direction:"column",children:[E(qo,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(Rse(Number(h))),value:t}),E(qo,{label:"CFG scale",step:.5,onChange:h=>e(Dse(Number(h))),value:n}),E(Wm,{label:"Sampler",value:r,onChange:h=>e($se(h.target.value)),validValues:fue}),E(qo,{label:"Threshold",min:0,step:.1,onChange:h=>e(Mse(Number(h))),value:o}),E(qo,{label:"Perlin",min:0,max:1,step:.05,onChange:h=>e(Nse(Number(h))),value:i})]})},mce=Ht(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),gce=Ht(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),vce=()=>{const e=kn(),{upscalingLevel:t,upscalingStrength:n}=yt(mce),{isESRGANAvailable:r}=yt(gce);return ue(Ue,{direction:"column",gap:2,children:[E(Wm,{isDisabled:!r,label:"Scale",value:t,onChange:s=>e(Wse(Number(s.target.value))),validValues:hue}),E(qo,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(jse(Number(s))),value:n})]})},yce=Ht(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),bce=Ht(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Sce=()=>{const e=kn(),{gfpganStrength:t}=yt(yce),{isGFPGANAvailable:n}=yt(bce);return E(Ue,{direction:"column",gap:2,children:E(qo,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(Vse(Number(o))),value:t})})},xce=Ht(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),wce=()=>{const e=kn(),{height:t,width:n,seamless:r}=yt(xce);return ue(Ue,{gap:2,direction:"column",children:[ue(Ue,{gap:2,children:[E(Wm,{label:"Width",value:n,flexGrow:1,onChange:u=>e(Lse(Number(u.target.value))),validValues:due}),E(Wm,{label:"Height",value:t,flexGrow:1,onChange:u=>e(Fse(Number(u.target.value))),validValues:pue})]}),E(Vm,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:u=>e(Bse(u.target.checked))})]})};var _ce=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 ad(e,t){var n=Cce(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 Cce(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=_ce.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var kce=[".DS_Store","Thumbs.db"];function Ece(e){return xu(this,void 0,void 0,function(){return wu(this,function(t){return jm(e)&&Pce(e.dataTransfer)?[2,Ice(e.dataTransfer,e.type)]:Ace(e)?[2,Tce(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Oce(e)]:[2,[]]})})}function Pce(e){return jm(e)}function Ace(e){return jm(e)&&jm(e.target)}function jm(e){return typeof e=="object"&&e!==null}function Tce(e){return dS(e.target.files).map(function(t){return ad(t)})}function Oce(e){return xu(this,void 0,void 0,function(){var t;return wu(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 ad(r)})]}})})}function Ice(e,t){return xu(this,void 0,void 0,function(){var n,r;return wu(this,function(o){switch(o.label){case 0:return e.items?(n=dS(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Rce))]):[3,2];case 1:return r=o.sent(),[2,LA(kD(r))];case 2:return[2,LA(dS(e.files).map(function(i){return ad(i)}))]}})})}function LA(e){return e.filter(function(t){return kce.indexOf(t.name)===-1})}function dS(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Rce(e){if(typeof e.webkitGetAsEntry!="function")return $A(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ED(t):$A(e)}function kD(e){return e.reduce(function(t,n){return ub(ub([],jk(t),!1),jk(Array.isArray(n)?kD(n):[n]),!1)},[])}function $A(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ad(t);return Promise.resolve(n)}function Dce(e){return xu(this,void 0,void 0,function(){return wu(this,function(t){return[2,e.isDirectory?ED(e):Mce(e)]})})}function ED(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(u){return xu(s,void 0,void 0,function(){var c,f,p;return wu(this,function(h){switch(h.label){case 0:if(u.length)return[3,5];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return c=h.sent(),n(c),[3,4];case 3:return f=h.sent(),r(f),[3,4];case 4:return[3,6];case 5:p=Promise.all(u.map(Dce)),o.push(p),i(),h.label=6;case 6:return[2]}})})},function(u){r(u)})}i()})}function Mce(e){return xu(this,void 0,void 0,function(){return wu(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=ad(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var Nce=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var u=s.trim().toLowerCase();return u.charAt(0)==="."?r.toLowerCase().endsWith(u):u.endsWith("/*")?i===u.replace(/\/.*$/,""):o===u})}return!0};function BA(e){return $ce(e)||Lce(e)||AD(e)||Fce()}function Fce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ce(e){if(Array.isArray(e))return pS(e)}function zA(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 VA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zA(Object(n),!0).forEach(function(r){PD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bf(e,t){return Vce(e)||zce(e,t)||AD(e,t)||Bce()}function Bce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AD(e,t){if(!!e){if(typeof e=="string")return pS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pS(e,t)}}function pS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,u;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function Vce(e){if(Array.isArray(e))return e}var Wce="file-invalid-type",jce="file-too-large",Uce="file-too-small",Hce="too-many-files",Gce=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Wce,message:"File type must be ".concat(n)}},WA=function(t){return{code:jce,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},jA=function(t){return{code:Uce,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},qce={code:Hce,message:"Too many files"};function TD(e,t){var n=e.type==="application/x-moz-file"||Nce(e,t);return[n,n?null:Gce(t)]}function OD(e,t,n){if(ms(e.size))if(ms(t)&&ms(n)){if(e.size>n)return[!1,WA(n)];if(e.size<t)return[!1,jA(t)]}else{if(ms(t)&&e.size<t)return[!1,jA(t)];if(ms(n)&&e.size>n)return[!1,WA(n)]}return[!0,null]}function ms(e){return e!=null}function Kce(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=TD(c,n),p=Bf(f,1),h=p[0],m=OD(c,r,o),v=Bf(m,1),y=v[0],S=u?u(c):null;return h&&y&&!S})}function Um(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function eh(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 UA(e){e.preventDefault()}function Yce(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Xce(e){return e.indexOf("Edge/")!==-1}function Zce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Yce(e)||Xce(e)}function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(u){return!Um(r)&&u&&u.apply(void 0,[r].concat(i)),Um(r)})}}function Qce(){return"showOpenFilePicker"in window}function Jce(e){if(ms(e)){var t=Object.entries(e).filter(function(n){var r=Bf(n,2),o=r[0],i=r[1],s=!0;return ID(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(RD))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Bf(r,2),i=o[0],s=o[1];return VA(VA({},n),{},PD({},i,s))},{});return[{accept:t}]}return e}function efe(e){if(ms(e))return Object.entries(e).reduce(function(t,n){var r=Bf(n,2),o=r[0],i=r[1];return[].concat(BA(t),[o],BA(i))},[]).filter(function(t){return ID(t)||RD(t)}).join(",")}function tfe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function nfe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ID(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function RD(e){return/^.*\.[\w]+$/.test(e)}var rfe=["children"],ofe=["open"],ife=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],afe=["refKey","onChange","onClick"];function sfe(e){return cfe(e)||ufe(e)||DD(e)||lfe()}function lfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ufe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cfe(e){if(Array.isArray(e))return hS(e)}function e1(e,t){return pfe(e)||dfe(e,t)||DD(e,t)||ffe()}function ffe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DD(e,t){if(!!e){if(typeof e=="string")return hS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hS(e,t)}}function hS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,u;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function pfe(e){if(Array.isArray(e))return e}function HA(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 Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(r){mS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(e,t){if(e==null)return{};var n=hfe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function hfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Jw=_.exports.forwardRef(function(e,t){var n=e.children,r=Hm(e,rfe),o=ND(r),i=o.open,s=Hm(o,ofe);return _.exports.useImperativeHandle(t,function(){return{open:i}},[i]),E(_.exports.Fragment,{children:n(Ft(Ft({},s),{},{open:i}))})});Jw.displayName="Dropzone";var MD={disabled:!1,getFilesFromEvent:Ece,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};Jw.defaultProps=MD;Jw.propTypes={children:ht.exports.func,accept:ht.exports.objectOf(ht.exports.arrayOf(ht.exports.string)),multiple:ht.exports.bool,preventDropOnDocument:ht.exports.bool,noClick:ht.exports.bool,noKeyboard:ht.exports.bool,noDrag:ht.exports.bool,noDragEventsBubbling:ht.exports.bool,minSize:ht.exports.number,maxSize:ht.exports.number,maxFiles:ht.exports.number,disabled:ht.exports.bool,getFilesFromEvent:ht.exports.func,onFileDialogCancel:ht.exports.func,onFileDialogOpen:ht.exports.func,useFsAccessApi:ht.exports.bool,autoFocus:ht.exports.bool,onDragEnter:ht.exports.func,onDragLeave:ht.exports.func,onDragOver:ht.exports.func,onDrop:ht.exports.func,onDropAccepted:ht.exports.func,onDropRejected:ht.exports.func,onError:ht.exports.func,validator:ht.exports.func};var gS={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ND(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ft(Ft({},MD),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,S=t.onFileDialogCancel,k=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,P=t.noClick,O=t.noKeyboard,M=t.noDrag,N=t.noDragEventsBubbling,V=t.onError,K=t.validator,W=_.exports.useMemo(function(){return efe(n)},[n]),te=_.exports.useMemo(function(){return Jce(n)},[n]),xe=_.exports.useMemo(function(){return typeof k=="function"?k:GA},[k]),fe=_.exports.useMemo(function(){return typeof S=="function"?S:GA},[S]),we=_.exports.useRef(null),Ce=_.exports.useRef(null),ve=_.exports.useReducer(mfe,gS),Pe=e1(ve,2),j=Pe[0],X=Pe[1],q=j.isFocused,R=j.isFileDialogActive,H=_.exports.useRef(typeof window<"u"&&window.isSecureContext&&x&&Qce()),ae=function(){!H.current&&R&&setTimeout(function(){if(Ce.current){var _e=Ce.current.files;_e.length||(X({type:"closeDialog"}),fe())}},300)};_.exports.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[Ce,R,fe,H]);var se=_.exports.useRef([]),he=function(_e){we.current&&we.current.contains(_e.target)||(_e.preventDefault(),se.current=[])};_.exports.useEffect(function(){return w&&(document.addEventListener("dragover",UA,!1),document.addEventListener("drop",he,!1)),function(){w&&(document.removeEventListener("dragover",UA),document.removeEventListener("drop",he))}},[we,w]),_.exports.useEffect(function(){return!r&&b&&we.current&&we.current.focus(),function(){}},[we,b,r]);var ge=_.exports.useCallback(function(le){V?V(le):console.error(le)},[V]),Ee=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le),se.current=[].concat(sfe(se.current),[le.target]),eh(le)&&Promise.resolve(o(le)).then(function(_e){if(!(Um(le)&&!N)){var at=_e.length,nt=at>0&&Kce({files:_e,accept:W,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:K}),ne=at>0&&!nt;X({isDragAccept:nt,isDragReject:ne,isDragActive:!0,type:"setDraggedFiles"}),f&&f(le)}}).catch(function(_e){return ge(_e)})},[o,f,ge,N,W,s,i,u,c,K]),ce=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le);var _e=eh(le);if(_e&&le.dataTransfer)try{le.dataTransfer.dropEffect="copy"}catch{}return _e&&h&&h(le),!1},[h,N]),Ae=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le);var _e=se.current.filter(function(nt){return we.current&&we.current.contains(nt)}),at=_e.indexOf(le.target);at!==-1&&_e.splice(at,1),se.current=_e,!(_e.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),eh(le)&&p&&p(le))},[we,p,N]),Me=_.exports.useCallback(function(le,_e){var at=[],nt=[];le.forEach(function(ne){var Ve=TD(ne,W),xt=e1(Ve,2),hn=xt[0],Pn=xt[1],gr=OD(ne,s,i),To=e1(gr,2),li=To[0],Ln=To[1],$r=K?K(ne):null;if(hn&&li&&!$r)at.push(ne);else{var Ka=[Pn,Ln];$r&&(Ka=Ka.concat($r)),nt.push({file:ne,errors:Ka.filter(function(Us){return Us})})}}),(!u&&at.length>1||u&&c>=1&&at.length>c)&&(at.forEach(function(ne){nt.push({file:ne,errors:[qce]})}),at.splice(0)),X({acceptedFiles:at,fileRejections:nt,type:"setFiles"}),m&&m(at,nt,_e),nt.length>0&&y&&y(nt,_e),at.length>0&&v&&v(at,_e)},[X,u,W,s,i,c,m,v,y,K]),mt=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le),se.current=[],eh(le)&&Promise.resolve(o(le)).then(function(_e){Um(le)&&!N||Me(_e,le)}).catch(function(_e){return ge(_e)}),X({type:"reset"})},[o,Me,ge,N]),Dt=_.exports.useCallback(function(){if(H.current){X({type:"openDialog"}),xe();var le={multiple:u,types:te};window.showOpenFilePicker(le).then(function(_e){return o(_e)}).then(function(_e){Me(_e,null),X({type:"closeDialog"})}).catch(function(_e){tfe(_e)?(fe(_e),X({type:"closeDialog"})):nfe(_e)?(H.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):ge(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 <input> was provided."))):ge(_e)});return}Ce.current&&(X({type:"openDialog"}),xe(),Ce.current.value=null,Ce.current.click())},[X,xe,fe,x,Me,ge,te,u]),En=_.exports.useCallback(function(le){!we.current||!we.current.isEqualNode(le.target)||(le.key===" "||le.key==="Enter"||le.keyCode===32||le.keyCode===13)&&(le.preventDefault(),Dt())},[we,Dt]),ye=_.exports.useCallback(function(){X({type:"focus"})},[]),Mt=_.exports.useCallback(function(){X({type:"blur"})},[]),Qt=_.exports.useCallback(function(){P||(Zce()?setTimeout(Dt,0):Dt())},[P,Dt]),it=function(_e){return r?null:_e},hr=function(_e){return O?null:it(_e)},mr=function(_e){return M?null:it(_e)},St=function(_e){N&&_e.stopPropagation()},Ct=_.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=le.refKey,at=_e===void 0?"ref":_e,nt=le.role,ne=le.onKeyDown,Ve=le.onFocus,xt=le.onBlur,hn=le.onClick,Pn=le.onDragEnter,gr=le.onDragOver,To=le.onDragLeave,li=le.onDrop,Ln=Hm(le,ife);return Ft(Ft(mS({onKeyDown:hr(Fo(ne,En)),onFocus:hr(Fo(Ve,ye)),onBlur:hr(Fo(xt,Mt)),onClick:it(Fo(hn,Qt)),onDragEnter:mr(Fo(Pn,Ee)),onDragOver:mr(Fo(gr,ce)),onDragLeave:mr(Fo(To,Ae)),onDrop:mr(Fo(li,mt)),role:typeof nt=="string"&&nt!==""?nt:"presentation"},at,we),!r&&!O?{tabIndex:0}:{}),Ln)}},[we,En,ye,Mt,Qt,Ee,ce,Ae,mt,O,M,r]),Jt=_.exports.useCallback(function(le){le.stopPropagation()},[]),zt=_.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=le.refKey,at=_e===void 0?"ref":_e,nt=le.onChange,ne=le.onClick,Ve=Hm(le,afe),xt=mS({accept:W,multiple:u,type:"file",style:{display:"none"},onChange:it(Fo(nt,mt)),onClick:it(Fo(ne,Jt)),tabIndex:-1},at,Ce);return Ft(Ft({},xt),Ve)}},[Ce,n,u,mt,r]);return Ft(Ft({},j),{},{isFocused:q&&!r,getRootProps:Ct,getInputProps:zt,rootRef:we,inputRef:Ce,open:it(Dt)})}function mfe(e,t){switch(t.type){case"focus":return Ft(Ft({},e),{},{isFocused:!0});case"blur":return Ft(Ft({},e),{},{isFocused:!1});case"openDialog":return Ft(Ft({},gS),{},{isFileDialogActive:!0});case"closeDialog":return Ft(Ft({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ft(Ft({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ft(Ft({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ft({},gS);default:return e}}function GA(){}const qA=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const r=_.exports.useCallback((c,f)=>{f.forEach(p=>{n(p)}),c.forEach(p=>{t(p)})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=ND({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ue("div",{...o(),children:[E("input",{...i({multiple:!1})}),_.exports.cloneElement(e,{onClick:u})]})},gfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),vfe=({setShouldShowMask:e})=>{const t=kn(),{initialImagePath:n}=yt(gfe),r=Cie(),o=m=>{m.stopPropagation(),t(Yw("")),t(Z4(""))},i=()=>e(!1),s=()=>e(!0),u=()=>e(!0),c=()=>e(!0),f=_.exports.useCallback(m=>t(que(m)),[t]),p=_.exports.useCallback(m=>t(Kue(m)),[t]),h=_.exports.useCallback(m=>{const v=m.errors.reduce((y,S)=>y+`
`+S.message,"");r({title:"Upload failed",description:v,status:"error",isClosable:!0})},[r]);return ue(Ue,{gap:2,justifyContent:"space-between",width:"100%",children:[E(qA,{fileAcceptedCallback:f,fileRejectionCallback:h,children:E(oi,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:i,onMouseOut:s,children:"Upload Image"})}),E(qA,{fileAcceptedCallback:p,fileRejectionCallback:h,children:E(oi,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,children:"Upload Mask"})}),E(Zr,{isDisabled:!n,size:"sm","aria-label":"Reset initial image and mask",onClick:o,icon:E(wD,{})})]})},yfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),bfe=()=>{const{initialImagePath:e,maskPath:t}=yt(yfe),[n,r]=_.exports.useState(!1);return ue(Ue,{direction:"column",alignItems:"center",gap:2,children:[E(vfe,{setShouldShowMask:r}),e&&ue(Ue,{position:"relative",width:"100%",children:[E(Pf,{fit:"contain",src:e,rounded:"md",className:"checkerboard"}),n&&t&&E(Pf,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1})]})]})},Sfe=Ht(e=>e.sd,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),xfe=()=>{const e=kn(),{img2imgStrength:t,shouldFitToWidthHeight:n}=yt(Sfe);return ue(Ue,{direction:"column",gap:2,children:[E(qo,{label:"Strength",step:.01,min:0,max:1,onChange:i=>e(zse(Number(i))),value:t}),E(Vm,{label:"Fit initial image to output size",isChecked:n,onChange:i=>e(Hse(i.target.checked))}),E(bfe,{})]})},wfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),_fe=Ht(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Cfe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=yt(wfe),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=yt(_fe),u=kn();return ue(m3,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:m=>u(cle(m)),children:[ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Seed & Variation"}),E(us,{})]})}),E(fs,{children:E(dce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Sampler"}),E(us,{})]})}),E(fs,{children:E(hce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Upscale (ESRGAN)"}),E(Ra,{isDisabled:!i,isChecked:e,onChange:m=>u(Zse(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(vce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Fix Faces (GFPGAN)"}),E(Ra,{isDisabled:!o,isChecked:t,onChange:m=>u(Xse(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(Sce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Image to Image"}),E(Ra,{isDisabled:!r,isChecked:n,onChange:m=>u(Use(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(xfe,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Output"}),E(us,{})]})}),E(fs,{children:E(wce,{})})]})]})},kfe=Ht(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Efe=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Pfe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=yt(kfe),{isProcessing:s,isConnected:u}=yt(Efe);return _.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(lv(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},Afe=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Tfe=()=>{const e=kn(),{isProcessing:t,isConnected:n}=yt(Afe),r=Pfe();return ue(Ue,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[E(zo,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>e(_D())}),E(zo,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(Gue())})]})},Ofe=()=>{const{prompt:e}=yt(o=>o.sd),t=kn(),n=o=>t(Ose(o.target.value)),r=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(_D()))};return E(r4,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:r,value:e,placeholder:"I'm dreaming of..."})},Ife=Ht(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),Rfe=Ht(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Dfe=()=>{const e=kn(),t=yt(Ife),{shouldShowLogViewer:n}=yt(Rfe),r=Cs("gray.50","gray.900"),o=Cs("gray.500","gray.500"),i=Cs({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null);_.exports.useLayoutEffect(()=>{c.current!==null&&s&&(c.current.scrollTop=c.current.scrollHeight)},[s,t,n]);const f=()=>{e(ule(!n))};return ue(fr,{children:[n&&E(Ue,{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 ue(Ue,{gap:2,textColor:i[y],children:[ue(Pt,{fontSize:"sm",fontWeight:"semibold",children:[m,":"]}),E(Pt,{fontSize:"sm",wordBreak:"break-all",children:v})]},h)})}),n&&E(Xb,{label:s?"Autoscroll on":"Autoscroll off",children:E(Zr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:s?"blue":"gray",icon:E(Iue,{}),onClick:()=>u(!s)})}),E(Xb,{label:n?"Hide logs":"Show logs",children:E(Zr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?E(Nue,{}):E(Due,{}),onClick:f})})]})},Mfe=()=>{const e=kn(),[t,n]=_.exports.useState(!1);return _.exports.useEffect(()=>{e(Hue()),n(!0)},[e]),t?ue(fr,{children:[ue(iw,{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:[E(ca,{area:"header",pt:1,children:E(cce,{})}),E(ca,{area:"progressBar",children:E(oce,{})}),E(ca,{pl:"2",area:"menu",overflowY:"scroll",children:E(Cfe,{})}),E(ca,{area:"prompt",children:E(Ofe,{})}),E(ca,{area:"processButtons",children:E(Tfe,{})}),E(ca,{area:"currentImage",children:E(Jue,{})}),E(ca,{pr:"2",area:"imageRoll",overflowY:"scroll",children:E(nce,{})})]}),E(Dfe,{})]}):E(bD,{})},FD=bse(vD);t1.createRoot(document.getElementById("root")).render(E(ee.StrictMode,{children:E(Xae,{store:vD,children:E(yD,{loading:E(bD,{}),persistor:FD,children:ue(Mie,{theme:NA,children:[E(G8,{initialColorMode:NA.config.initialColorMode}),E(Mfe,{})]})})})}));