InvokeAI/frontend/dist/assets/index.4488003f.js
2022-11-02 17:51:01 -04:00

830 lines
1.7 MiB

function fee(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Jg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O={exports:{}},zk={exports:{}};/**
* @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.
*/(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),M=Symbol.iterator,B="@@iterator";function F(k){if(k===null||typeof k!="object")return null;var j=M&&k[M]||k[B];return typeof j=="function"?j:null}var z={current:null},H={transition:null},G={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},Z={},ne=null;function ie(k){ne=k}Z.setExtraStackFrame=function(k){ne=k},Z.getCurrentStack=null,Z.getStackAddendum=function(){var k="";ne&&(k+=ne);var j=Z.getCurrentStack;return j&&(k+=j()||""),k};var le=!1,oe=!1,Ae=!1,de=!1,Se=!1,Me={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:H,ReactCurrentOwner:K};Me.ReactDebugCurrentFrame=Z,Me.ReactCurrentActQueue=G;function _e(k){{for(var j=arguments.length,ae=new Array(j>1?j-1:0),ce=1;ce<j;ce++)ae[ce-1]=arguments[ce];he("warn",k,ae)}}function J(k){{for(var j=arguments.length,ae=new Array(j>1?j-1:0),ce=1;ce<j;ce++)ae[ce-1]=arguments[ce];he("error",k,ae)}}function he(k,j,ae){{var ce=Me.ReactDebugCurrentFrame,Ne=ce.getStackAddendum();Ne!==""&&(j+="%s",ae=ae.concat([Ne]));var mt=ae.map(function(Ze){return String(Ze)});mt.unshift("Warning: "+j),Function.prototype.apply.call(console[k],console,mt)}}var ve={};function ye(k,j){{var ae=k.constructor,ce=ae&&(ae.displayName||ae.name)||"ReactClass",Ne=ce+"."+j;if(ve[Ne])return;J("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",j,ce),ve[Ne]=!0}}var xe={isMounted:function(k){return!1},enqueueForceUpdate:function(k,j,ae){ye(k,"forceUpdate")},enqueueReplaceState:function(k,j,ae,ce){ye(k,"replaceState")},enqueueSetState:function(k,j,ae,ce){ye(k,"setState")}},Ve=Object.assign,Pe={};Object.freeze(Pe);function Qe(k,j,ae){this.props=k,this.context=j,this.refs=Pe,this.updater=ae||xe}Qe.prototype.isReactComponent={},Qe.prototype.setState=function(k,j){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,j,"setState")},Qe.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};{var wt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ot=function(k,j){Object.defineProperty(Qe.prototype,k,{get:function(){_e("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var Ut in wt)wt.hasOwnProperty(Ut)&&Ot(Ut,wt[Ut])}function ut(){}ut.prototype=Qe.prototype;function It(k,j,ae){this.props=k,this.context=j,this.refs=Pe,this.updater=ae||xe}var Qt=It.prototype=new ut;Qt.constructor=It,Ve(Qt,Qe.prototype),Qt.isPureReactComponent=!0;function pn(){var k={current:null};return Object.seal(k),k}var ht=Array.isArray;function gn(k){return ht(k)}function De(k){{var j=typeof Symbol=="function"&&Symbol.toStringTag,ae=j&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ae}}function kt(k){try{return Zt(k),!1}catch{return!0}}function Zt(k){return""+k}function Pt(k){if(kt(k))return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",De(k)),Zt(k)}function un(k,j,ae){var ce=k.displayName;if(ce)return ce;var Ne=j.displayName||j.name||"";return Ne!==""?ae+"("+Ne+")":ae}function fr(k){return k.displayName||"Context"}function an(k){if(k==null)return null;if(typeof k.tag=="number"&&J("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case s:return"Fragment";case i:return"Portal";case f:return"Profiler";case l:return"StrictMode";case S:return"Suspense";case N:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case m:var j=k;return fr(j)+".Consumer";case d:var ae=k;return fr(ae._context)+".Provider";case b:return un(k,k.render,"ForwardRef");case w:var ce=k.displayName||null;return ce!==null?ce:an(k.type)||"Memo";case T:{var Ne=k,mt=Ne._payload,Ze=Ne._init;try{return an(Ze(mt))}catch{return null}}}return null}var Rn=Object.prototype.hasOwnProperty,wn={key:!0,ref:!0,__self:!0,__source:!0},Ln,St,Ft;Ft={};function er(k){if(Rn.call(k,"ref")){var j=Object.getOwnPropertyDescriptor(k,"ref").get;if(j&&j.isReactWarning)return!1}return k.ref!==void 0}function En(k){if(Rn.call(k,"key")){var j=Object.getOwnPropertyDescriptor(k,"key").get;if(j&&j.isReactWarning)return!1}return k.key!==void 0}function Je(k,j){var ae=function(){Ln||(Ln=!0,J("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};ae.isReactWarning=!0,Object.defineProperty(k,"key",{get:ae,configurable:!0})}function Mn(k,j){var ae=function(){St||(St=!0,J("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};ae.isReactWarning=!0,Object.defineProperty(k,"ref",{get:ae,configurable:!0})}function br(k){if(typeof k.ref=="string"&&K.current&&k.__self&&K.current.stateNode!==k.__self){var j=an(K.current.type);Ft[j]||(J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j,k.ref),Ft[j]=!0)}}var pt=function(k,j,ae,ce,Ne,mt,Ze){var Tt={$$typeof:r,type:k,key:j,ref:ae,props:Ze,_owner:mt};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function Xe(k,j,ae){var ce,Ne={},mt=null,Ze=null,Tt=null,Xt=null;if(j!=null){er(j)&&(Ze=j.ref,br(j)),En(j)&&(Pt(j.key),mt=""+j.key),Tt=j.__self===void 0?null:j.__self,Xt=j.__source===void 0?null:j.__source;for(ce in j)Rn.call(j,ce)&&!wn.hasOwnProperty(ce)&&(Ne[ce]=j[ce])}var xn=arguments.length-2;if(xn===1)Ne.children=ae;else if(xn>1){for(var Hn=Array(xn),mn=0;mn<xn;mn++)Hn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(Hn),Ne.children=Hn}if(k&&k.defaultProps){var Gn=k.defaultProps;for(ce in Gn)Ne[ce]===void 0&&(Ne[ce]=Gn[ce])}if(mt||Ze){var In=typeof k=="function"?k.displayName||k.name||"Unknown":k;mt&&Je(Ne,In),Ze&&Mn(Ne,In)}return pt(k,mt,Ze,Tt,Xt,K.current,Ne)}function Bt(k,j){var ae=pt(k.type,j,k.ref,k._self,k._source,k._owner,k.props);return ae}function We(k,j,ae){if(k==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ce,Ne=Ve({},k.props),mt=k.key,Ze=k.ref,Tt=k._self,Xt=k._source,xn=k._owner;if(j!=null){er(j)&&(Ze=j.ref,xn=K.current),En(j)&&(Pt(j.key),mt=""+j.key);var Hn;k.type&&k.type.defaultProps&&(Hn=k.type.defaultProps);for(ce in j)Rn.call(j,ce)&&!wn.hasOwnProperty(ce)&&(j[ce]===void 0&&Hn!==void 0?Ne[ce]=Hn[ce]:Ne[ce]=j[ce])}var mn=arguments.length-2;if(mn===1)Ne.children=ae;else if(mn>1){for(var Gn=Array(mn),In=0;In<mn;In++)Gn[In]=arguments[In+2];Ne.children=Gn}return pt(k.type,mt,Ze,Tt,Xt,xn,Ne)}function Lt(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}var Rt=".",gt=":";function _t(k){var j=/[=:]/g,ae={"=":"=0",":":"=2"},ce=k.replace(j,function(Ne){return ae[Ne]});return"$"+ce}var kn=!1,Un=/\/+/g;function Gt(k){return k.replace(Un,"$&/")}function rr(k,j){return typeof k=="object"&&k!==null&&k.key!=null?(Pt(k.key),_t(""+k.key)):j.toString(36)}function di(k,j,ae,ce,Ne){var mt=typeof k;(mt==="undefined"||mt==="boolean")&&(k=null);var Ze=!1;if(k===null)Ze=!0;else switch(mt){case"string":case"number":Ze=!0;break;case"object":switch(k.$$typeof){case r:case i:Ze=!0}}if(Ze){var Tt=k,Xt=Ne(Tt),xn=ce===""?Rt+rr(Tt,0):ce;if(gn(Xt)){var Hn="";xn!=null&&(Hn=Gt(xn)+"/"),di(Xt,j,Hn,"",function(Sv){return Sv})}else Xt!=null&&(Lt(Xt)&&(Xt.key&&(!Tt||Tt.key!==Xt.key)&&Pt(Xt.key),Xt=Bt(Xt,ae+(Xt.key&&(!Tt||Tt.key!==Xt.key)?Gt(""+Xt.key)+"/":"")+xn)),j.push(Xt));return 1}var mn,Gn,In=0,Qn=ce===""?Rt:ce+gt;if(gn(k))for(var al=0;al<k.length;al++)mn=k[al],Gn=Qn+rr(mn,al),In+=di(mn,j,ae,Gn,Ne);else{var ns=F(k);if(typeof ns=="function"){var qu=k;ns===qu.entries&&(kn||_e("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kn=!0);for(var fh=ns.call(qu),Ur,il=0;!(Ur=fh.next()).done;)mn=Ur.value,Gn=Qn+rr(mn,il++),In+=di(mn,j,ae,Gn,Ne)}else if(mt==="object"){var Oc=String(k);throw new Error("Objects are not valid as a React child (found: "+(Oc==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Oc)+"). If you meant to render a collection of children, use an array instead.")}}return In}function Yr(k,j,ae){if(k==null)return k;var ce=[],Ne=0;return di(k,ce,"","",function(mt){return j.call(ae,mt,Ne++)}),ce}function pr(k){var j=0;return Yr(k,function(){j++}),j}function Wi(k,j,ae){Yr(k,function(){j.apply(this,arguments)},ae)}function lo(k){return Yr(k,function(j){return j})||[]}function uo(k){if(!Lt(k))throw new Error("React.Children.only expected to receive a single React element child.");return k}function hi(k){var j={$$typeof:m,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};j.Provider={$$typeof:d,_context:j};var ae=!1,ce=!1,Ne=!1;{var mt={$$typeof:m,_context:j};Object.defineProperties(mt,{Provider:{get:function(){return ce||(ce=!0,J("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),j.Provider},set:function(Ze){j.Provider=Ze}},_currentValue:{get:function(){return j._currentValue},set:function(Ze){j._currentValue=Ze}},_currentValue2:{get:function(){return j._currentValue2},set:function(Ze){j._currentValue2=Ze}},_threadCount:{get:function(){return j._threadCount},set:function(Ze){j._threadCount=Ze}},Consumer:{get:function(){return ae||(ae=!0,J("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),j.Consumer}},displayName:{get:function(){return j.displayName},set:function(Ze){Ne||(_e("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ze),Ne=!0)}}}),j.Consumer=mt}return j._currentRenderer=null,j._currentRenderer2=null,j}var yr=-1,ti=0,Mo=1,Do=2;function ge(k){if(k._status===yr){var j=k._result,ae=j();if(ae.then(function(mt){if(k._status===ti||k._status===yr){var Ze=k;Ze._status=Mo,Ze._result=mt}},function(mt){if(k._status===ti||k._status===yr){var Ze=k;Ze._status=Do,Ze._result=mt}}),k._status===yr){var ce=k;ce._status=ti,ce._result=ae}}if(k._status===Mo){var Ne=k._result;return Ne===void 0&&J(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,Ne),"default"in Ne||J(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,Ne),Ne.default}else throw k._result}function dt(k){var j={_status:yr,_result:k},ae={$$typeof:T,_payload:j,_init:ge};{var ce,Ne;Object.defineProperties(ae,{defaultProps:{configurable:!0,get:function(){return ce},set:function(mt){J("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ce=mt,Object.defineProperty(ae,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ne},set:function(mt){J("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ne=mt,Object.defineProperty(ae,"propTypes",{enumerable:!0})}}})}return ae}function xt(k){k!=null&&k.$$typeof===w?J("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof k!="function"?J("forwardRef requires a render function but was given %s.",k===null?"null":typeof k):k.length!==0&&k.length!==2&&J("forwardRef render functions accept exactly two parameters: props and ref. %s",k.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),k!=null&&(k.defaultProps!=null||k.propTypes!=null)&&J("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var j={$$typeof:b,render:k};{var ae;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return ae},set:function(ce){ae=ce,!k.name&&!k.displayName&&(k.displayName=ce)}})}return j}var bn;bn=Symbol.for("react.module.reference");function dr(k){return!!(typeof k=="string"||typeof k=="function"||k===s||k===f||Se||k===l||k===S||k===N||de||k===L||le||oe||Ae||typeof k=="object"&&k!==null&&(k.$$typeof===T||k.$$typeof===w||k.$$typeof===d||k.$$typeof===m||k.$$typeof===b||k.$$typeof===bn||k.getModuleId!==void 0))}function _r(k,j){dr(k)||J("memo: The first argument must be a component. Instead received: %s",k===null?"null":typeof k);var ae={$$typeof:w,type:k,compare:j===void 0?null:j};{var ce;Object.defineProperty(ae,"displayName",{enumerable:!1,configurable:!0,get:function(){return ce},set:function(Ne){ce=Ne,!k.name&&!k.displayName&&(k.displayName=Ne)}})}return ae}function Ht(){var k=z.current;return k===null&&J(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),k}function Kn(k){var j=Ht();if(k._context!==void 0){var ae=k._context;ae.Consumer===k?J("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):ae.Provider===k&&J("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return j.useContext(k)}function sr(k){var j=Ht();return j.useState(k)}function kr(k,j,ae){var ce=Ht();return ce.useReducer(k,j,ae)}function hr(k){var j=Ht();return j.useRef(k)}function Fa(k,j){var ae=Ht();return ae.useEffect(k,j)}function Yi(k,j){var ae=Ht();return ae.useInsertionEffect(k,j)}function Po(k,j){var ae=Ht();return ae.useLayoutEffect(k,j)}function Ra(k,j){var ae=Ht();return ae.useCallback(k,j)}function gs(k,j){var ae=Ht();return ae.useMemo(k,j)}function pu(k,j,ae){var ce=Ht();return ce.useImperativeHandle(k,j,ae)}function co(k,j){{var ae=Ht();return ae.useDebugValue(k,j)}}function Rl(){var k=Ht();return k.useTransition()}function bs(k){var j=Ht();return j.useDeferredValue(k)}function Zn(){var k=Ht();return k.useId()}function Io(k,j,ae){var ce=Ht();return ce.useSyncExternalStore(k,j,ae)}var qi=0,kl,Al,nl,ni,rl,Ol,Ll;function mu(){}mu.__reactDisabledLog=!0;function ju(){{if(qi===0){kl=console.log,Al=console.info,nl=console.warn,ni=console.error,rl=console.group,Ol=console.groupCollapsed,Ll=console.groupEnd;var k={configurable:!0,enumerable:!0,value:mu,writable:!0};Object.defineProperties(console,{info:k,log:k,warn:k,error:k,group:k,groupCollapsed:k,groupEnd:k})}qi++}}function Vu(){{if(qi--,qi===0){var k={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ve({},k,{value:kl}),info:Ve({},k,{value:Al}),warn:Ve({},k,{value:nl}),error:Ve({},k,{value:ni}),group:Ve({},k,{value:rl}),groupCollapsed:Ve({},k,{value:Ol}),groupEnd:Ve({},k,{value:Ll})})}qi<0&&J("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fo=Me.ReactCurrentDispatcher,ri;function fo(k,j,ae){{if(ri===void 0)try{throw Error()}catch(Ne){var ce=Ne.stack.trim().match(/\n( *(at )?)/);ri=ce&&ce[1]||""}return`
`+ri+k}}var ai=!1,Di;{var Ml=typeof WeakMap=="function"?WeakMap:Map;Di=new Ml}function Dl(k,j){if(!k||ai)return"";{var ae=Di.get(k);if(ae!==void 0)return ae}var ce;ai=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var mt;mt=Fo.current,Fo.current=null,ju();try{if(j){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(Qn){ce=Qn}Reflect.construct(k,[],Ze)}else{try{Ze.call()}catch(Qn){ce=Qn}k.call(Ze.prototype)}}else{try{throw Error()}catch(Qn){ce=Qn}k()}}catch(Qn){if(Qn&&ce&&typeof Qn.stack=="string"){for(var Tt=Qn.stack.split(`
`),Xt=ce.stack.split(`
`),xn=Tt.length-1,Hn=Xt.length-1;xn>=1&&Hn>=0&&Tt[xn]!==Xt[Hn];)Hn--;for(;xn>=1&&Hn>=0;xn--,Hn--)if(Tt[xn]!==Xt[Hn]){if(xn!==1||Hn!==1)do if(xn--,Hn--,Hn<0||Tt[xn]!==Xt[Hn]){var mn=`
`+Tt[xn].replace(" at new "," at ");return k.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",k.displayName)),typeof k=="function"&&Di.set(k,mn),mn}while(xn>=1&&Hn>=0);break}}}finally{ai=!1,Fo.current=mt,Vu(),Error.prepareStackTrace=Ne}var Gn=k?k.displayName||k.name:"",In=Gn?fo(Gn):"";return typeof k=="function"&&Di.set(k,In),In}function Ms(k,j,ae){return Dl(k,!1)}function Pl(k){var j=k.prototype;return!!(j&&j.isReactComponent)}function ho(k,j,ae){if(k==null)return"";if(typeof k=="function")return Dl(k,Pl(k));if(typeof k=="string")return fo(k);switch(k){case S:return fo("Suspense");case N:return fo("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case b:return Ms(k.render);case w:return ho(k.type,j,ae);case T:{var ce=k,Ne=ce._payload,mt=ce._init;try{return ho(mt(Ne),j,ae)}catch{}}}return""}var Wa={},wi=Me.ReactDebugCurrentFrame;function ka(k){if(k){var j=k._owner,ae=ho(k.type,k._source,j?j.type:null);wi.setExtraStackFrame(ae)}else wi.setExtraStackFrame(null)}function Gu(k,j,ae,ce,Ne){{var mt=Function.call.bind(Rn);for(var Ze in k)if(mt(k,Ze)){var Tt=void 0;try{if(typeof k[Ze]!="function"){var Xt=Error((ce||"React class")+": "+ae+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof k[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Tt=k[Ze](j,Ze,ce,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xn){Tt=xn}Tt&&!(Tt instanceof Error)&&(ka(Ne),J("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ce||"React class",ae,Ze,typeof Tt),ka(null)),Tt instanceof Error&&!(Tt.message in Wa)&&(Wa[Tt.message]=!0,ka(Ne),J("Failed %s type: %s",ae,Tt.message),ka(null))}}}function gr(k){if(k){var j=k._owner,ae=ho(k.type,k._source,j?j.type:null);ie(ae)}else ie(null)}var zo;zo=!1;function Il(){if(K.current){var k=an(K.current.type);if(k)return`
Check the render method of \``+k+"`."}return""}function Xn(k){if(k!==void 0){var j=k.fileName.replace(/^.*[\\\/]/,""),ae=k.lineNumber;return`
Check your code at `+j+":"+ae+"."}return""}function Wu(k){return k!=null?Xn(k.__source):""}var qr={};function ts(k){var j=Il();if(!j){var ae=typeof k=="string"?k:k.displayName||k.name;ae&&(j=`
Check the top-level render call using <`+ae+">.")}return j}function po(k,j){if(!(!k._store||k._store.validated||k.key!=null)){k._store.validated=!0;var ae=ts(j);if(!qr[ae]){qr[ae]=!0;var ce="";k&&k._owner&&k._owner!==K.current&&(ce=" It was passed a child from "+an(k._owner.type)+"."),gr(k),J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,ce),gr(null)}}}function ys(k,j){if(typeof k=="object"){if(gn(k))for(var ae=0;ae<k.length;ae++){var ce=k[ae];Lt(ce)&&po(ce,j)}else if(Lt(k))k._store&&(k._store.validated=!0);else if(k){var Ne=F(k);if(typeof Ne=="function"&&Ne!==k.entries)for(var mt=Ne.call(k),Ze;!(Ze=mt.next()).done;)Lt(Ze.value)&&po(Ze.value,j)}}}function ga(k){{var j=k.type;if(j==null||typeof j=="string")return;var ae;if(typeof j=="function")ae=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===b||j.$$typeof===w))ae=j.propTypes;else return;if(ae){var ce=an(j);Gu(ae,k.props,"prop",ce,k)}else if(j.PropTypes!==void 0&&!zo){zo=!0;var Ne=an(j);J("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&J("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oa(k){{for(var j=Object.keys(k.props),ae=0;ae<j.length;ae++){var ce=j[ae];if(ce!=="children"&&ce!=="key"){gr(k),J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),gr(null);break}}k.ref!==null&&(gr(k),J("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function Ds(k,j,ae){var ce=dr(k);if(!ce){var Ne="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(Ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=Wu(j);mt?Ne+=mt:Ne+=Il();var Ze;k===null?Ze="null":gn(k)?Ze="array":k!==void 0&&k.$$typeof===r?(Ze="<"+(an(k.type)||"Unknown")+" />",Ne=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof k,J("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ne)}var Tt=Xe.apply(this,arguments);if(Tt==null)return Tt;if(ce)for(var Xt=2;Xt<arguments.length;Xt++)ys(arguments[Xt],k);return k===s?oa(Tt):ga(Tt),Tt}var _i=!1;function Kr(k){var j=Ds.bind(null,k);return j.type=k,_i||(_i=!0,_e("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(j,"type",{enumerable:!1,get:function(){return _e("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:k}),k}}),j}function ii(k,j,ae){for(var ce=We.apply(this,arguments),Ne=2;Ne<arguments.length;Ne++)ys(arguments[Ne],ce.type);return ga(ce),ce}function yf(k,j){var ae=H.transition;H.transition={};var ce=H.transition;H.transition._updatedFibers=new Set;try{k()}finally{if(H.transition=ae,ae===null&&ce._updatedFibers){var Ne=ce._updatedFibers.size;Ne>10&&_e("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),ce._updatedFibers.clear()}}}var Ps=!1,Ss=null;function vu(k){if(Ss===null)try{var j=("require"+Math.random()).slice(0,7),ae=e&&e[j];Ss=ae.call(e,"timers").setImmediate}catch{Ss=function(Ne){Ps===!1&&(Ps=!0,typeof MessageChannel>"u"&&J("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var mt=new MessageChannel;mt.port1.onmessage=Ne,mt.port2.postMessage(void 0)}}return Ss(k)}var Sr=0,Br=!1;function Yu(k){{var j=Sr;Sr++,G.current===null&&(G.current=[]);var ae=G.isBatchingLegacy,ce;try{if(G.isBatchingLegacy=!0,ce=k(),!ae&&G.didScheduleLegacyUpdate){var Ne=G.current;Ne!==null&&(G.didScheduleLegacyUpdate=!1,se(Ne))}}catch(Gn){throw mo(j),Gn}finally{G.isBatchingLegacy=ae}if(ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var mt=ce,Ze=!1,Tt={then:function(Gn,In){Ze=!0,mt.then(function(Qn){mo(j),Sr===0?$(Qn,Gn,In):Gn(Qn)},function(Qn){mo(j),In(Qn)})}};return!Br&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ze||(Br=!0,J("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Tt}else{var Xt=ce;if(mo(j),Sr===0){var xn=G.current;xn!==null&&(se(xn),G.current=null);var Hn={then:function(Gn,In){G.current===null?(G.current=[],$(Xt,Gn,In)):Gn(Xt)}};return Hn}else{var mn={then:function(Gn,In){Gn(Xt)}};return mn}}}}function mo(k){k!==Sr-1&&J("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Sr=k}function $(k,j,ae){{var ce=G.current;if(ce!==null)try{se(ce),vu(function(){ce.length===0?(G.current=null,j(k)):$(k,j,ae)})}catch(Ne){ae(Ne)}else j(k)}}var X=!1;function se(k){if(!X){X=!0;var j=0;try{for(;j<k.length;j++){var ae=k[j];do ae=ae(!0);while(ae!==null)}k.length=0}catch(ce){throw k=k.slice(j+1),ce}finally{X=!1}}}var qe=Ds,Kt=ii,yn=Kr,Jt={map:Yr,forEach:Wi,count:pr,toArray:lo,only:uo};t.Children=Jt,t.Component=Qe,t.Fragment=s,t.Profiler=f,t.PureComponent=It,t.StrictMode=l,t.Suspense=S,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Me,t.cloneElement=Kt,t.createContext=hi,t.createElement=qe,t.createFactory=yn,t.createRef=pn,t.forwardRef=xt,t.isValidElement=Lt,t.lazy=dt,t.memo=_r,t.startTransition=yf,t.unstable_act=Yu,t.useCallback=Ra,t.useContext=Kn,t.useDebugValue=co,t.useDeferredValue=bs,t.useEffect=Fa,t.useId=Zn,t.useImperativeHandle=pu,t.useInsertionEffect=Yi,t.useLayoutEffect=Po,t.useMemo=gs,t.useReducer=kr,t.useRef=hr,t.useState=sr,t.useSyncExternalStore=Io,t.useTransition=Rl,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(zk,zk.exports);(function(e){e.exports=zk.exports})(O);const ke=sL(O.exports),Bk=fee({__proto__:null,default:ke},[O.exports]);var $k={},vv={exports:{}},Zf={},w3={exports:{}},kH={};/**
* @license React
* scheduler.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.
*/(function(e){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1,r=5;function i(pt,Xe){var Bt=pt.length;pt.push(Xe),f(pt,Xe,Bt)}function s(pt){return pt.length===0?null:pt[0]}function l(pt){if(pt.length===0)return null;var Xe=pt[0],Bt=pt.pop();return Bt!==Xe&&(pt[0]=Bt,d(pt,Bt,0)),Xe}function f(pt,Xe,Bt){for(var We=Bt;We>0;){var Lt=We-1>>>1,Rt=pt[Lt];if(m(Rt,Xe)>0)pt[Lt]=Xe,pt[We]=Rt,We=Lt;else return}}function d(pt,Xe,Bt){for(var We=Bt,Lt=pt.length,Rt=Lt>>>1;We<Rt;){var gt=(We+1)*2-1,_t=pt[gt],kn=gt+1,Un=pt[kn];if(m(_t,Xe)<0)kn<Lt&&m(Un,_t)<0?(pt[We]=Un,pt[kn]=Xe,We=kn):(pt[We]=_t,pt[gt]=Xe,We=gt);else if(kn<Lt&&m(Un,Xe)<0)pt[We]=Un,pt[kn]=Xe,We=kn;else return}}function m(pt,Xe){var Bt=pt.sortIndex-Xe.sortIndex;return Bt!==0?Bt:pt.id-Xe.id}var b=1,S=2,N=3,w=4,T=5;function L(pt,Xe){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var B=performance;e.unstable_now=function(){return B.now()}}else{var F=Date,z=F.now();e.unstable_now=function(){return F.now()-z}}var H=1073741823,G=-1,K=250,Z=5e3,ne=1e4,ie=H,le=[],oe=[],Ae=1,de=null,Se=N,Me=!1,_e=!1,J=!1,he=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xe(pt){for(var Xe=s(oe);Xe!==null;){if(Xe.callback===null)l(oe);else if(Xe.startTime<=pt)l(oe),Xe.sortIndex=Xe.expirationTime,i(le,Xe);else return;Xe=s(oe)}}function Ve(pt){if(J=!1,xe(pt),!_e)if(s(le)!==null)_e=!0,er(Pe);else{var Xe=s(oe);Xe!==null&&En(Ve,Xe.startTime-pt)}}function Pe(pt,Xe){_e=!1,J&&(J=!1,Je()),Me=!0;var Bt=Se;try{var We;if(!n)return Qe(pt,Xe)}finally{de=null,Se=Bt,Me=!1}}function Qe(pt,Xe){var Bt=Xe;for(xe(Bt),de=s(le);de!==null&&!t&&!(de.expirationTime>Bt&&(!pt||fr()));){var We=de.callback;if(typeof We=="function"){de.callback=null,Se=de.priorityLevel;var Lt=de.expirationTime<=Bt,Rt=We(Lt);Bt=e.unstable_now(),typeof Rt=="function"?de.callback=Rt:de===s(le)&&l(le),xe(Bt)}else l(le);de=s(le)}if(de!==null)return!0;var gt=s(oe);return gt!==null&&En(Ve,gt.startTime-Bt),!1}function wt(pt,Xe){switch(pt){case b:case S:case N:case w:case T:break;default:pt=N}var Bt=Se;Se=pt;try{return Xe()}finally{Se=Bt}}function Ot(pt){var Xe;switch(Se){case b:case S:case N:Xe=N;break;default:Xe=Se;break}var Bt=Se;Se=Xe;try{return pt()}finally{Se=Bt}}function Ut(pt){var Xe=Se;return function(){var Bt=Se;Se=Xe;try{return pt.apply(this,arguments)}finally{Se=Bt}}}function ut(pt,Xe,Bt){var We=e.unstable_now(),Lt;if(typeof Bt=="object"&&Bt!==null){var Rt=Bt.delay;typeof Rt=="number"&&Rt>0?Lt=We+Rt:Lt=We}else Lt=We;var gt;switch(pt){case b:gt=G;break;case S:gt=K;break;case T:gt=ie;break;case w:gt=ne;break;case N:default:gt=Z;break}var _t=Lt+gt,kn={id:Ae++,callback:Xe,priorityLevel:pt,startTime:Lt,expirationTime:_t,sortIndex:-1};return Lt>We?(kn.sortIndex=Lt,i(oe,kn),s(le)===null&&kn===s(oe)&&(J?Je():J=!0,En(Ve,Lt-We))):(kn.sortIndex=_t,i(le,kn),!_e&&!Me&&(_e=!0,er(Pe))),kn}function It(){}function Qt(){!_e&&!Me&&(_e=!0,er(Pe))}function pn(){return s(le)}function ht(pt){pt.callback=null}function gn(){return Se}var De=!1,kt=null,Zt=-1,Pt=r,un=-1;function fr(){var pt=e.unstable_now()-un;return!(pt<Pt)}function an(){}function Rn(pt){if(pt<0||pt>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}pt>0?Pt=Math.floor(1e3/pt):Pt=r}var wn=function(){if(kt!==null){var pt=e.unstable_now();un=pt;var Xe=!0,Bt=!0;try{Bt=kt(Xe,pt)}finally{Bt?Ln():(De=!1,kt=null)}}else De=!1},Ln;if(typeof ye=="function")Ln=function(){ye(wn)};else if(typeof MessageChannel<"u"){var St=new MessageChannel,Ft=St.port2;St.port1.onmessage=wn,Ln=function(){Ft.postMessage(null)}}else Ln=function(){he(wn,0)};function er(pt){kt=pt,De||(De=!0,Ln())}function En(pt,Xe){Zt=he(function(){pt(e.unstable_now())},Xe)}function Je(){ve(Zt),Zt=-1}var Mn=an,br=null;e.unstable_IdlePriority=T,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=w,e.unstable_NormalPriority=N,e.unstable_Profiling=br,e.unstable_UserBlockingPriority=S,e.unstable_cancelCallback=ht,e.unstable_continueExecution=Qt,e.unstable_forceFrameRate=Rn,e.unstable_getCurrentPriorityLevel=gn,e.unstable_getFirstCallbackNode=pn,e.unstable_next=Ot,e.unstable_pauseExecution=It,e.unstable_requestPaint=Mn,e.unstable_runWithPriority=wt,e.unstable_scheduleCallback=ut,e.unstable_shouldYield=fr,e.unstable_wrapCallback=Ut,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(kH);(function(e){e.exports=kH})(w3);/**
* @license React
* react-dom.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.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=O.exports,t=w3.exports,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function i(a){r=a}function s(a){if(!r){for(var o=arguments.length,h=new Array(o>1?o-1:0),v=1;v<o;v++)h[v-1]=arguments[v];f("warn",a,h)}}function l(a){if(!r){for(var o=arguments.length,h=new Array(o>1?o-1:0),v=1;v<o;v++)h[v-1]=arguments[v];f("error",a,h)}}function f(a,o,h){{var v=n.ReactDebugCurrentFrame,x=v.getStackAddendum();x!==""&&(o+="%s",h=h.concat([x]));var A=h.map(function(P){return String(P)});A.unshift("Warning: "+o),Function.prototype.apply.call(console[a],console,A)}}var d=0,m=1,b=2,S=3,N=4,w=5,T=6,L=7,M=8,B=9,F=10,z=11,H=12,G=13,K=14,Z=15,ne=16,ie=17,le=18,oe=19,Ae=21,de=22,Se=23,Me=24,_e=25,J=!0,he=!1,ve=!1,ye=!1,xe=!1,Ve=!0,Pe=!1,Qe=!1,wt=!0,Ot=!0,Ut=!0,ut=new Set,It={},Qt={};function pn(a,o){ht(a,o),ht(a+"Capture",o)}function ht(a,o){It[a]&&l("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),It[a]=o;{var h=a.toLowerCase();Qt[h]=a,a==="onDoubleClick"&&(Qt.ondblclick=a)}for(var v=0;v<o.length;v++)ut.add(o[v])}var gn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",De=Object.prototype.hasOwnProperty;function kt(a){{var o=typeof Symbol=="function"&&Symbol.toStringTag,h=o&&a[Symbol.toStringTag]||a.constructor.name||"Object";return h}}function Zt(a){try{return Pt(a),!1}catch{return!0}}function Pt(a){return""+a}function un(a,o){if(Zt(a))return l("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",o,kt(a)),Pt(a)}function fr(a){if(Zt(a))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kt(a)),Pt(a)}function an(a,o){if(Zt(a))return l("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",o,kt(a)),Pt(a)}function Rn(a,o){if(Zt(a))return l("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",o,kt(a)),Pt(a)}function wn(a){if(Zt(a))return l("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",kt(a)),Pt(a)}function Ln(a){if(Zt(a))return l("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",kt(a)),Pt(a)}var St=0,Ft=1,er=2,En=3,Je=4,Mn=5,br=6,pt=":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",Xe=pt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Bt=new RegExp("^["+pt+"]["+Xe+"]*$"),We={},Lt={};function Rt(a){return De.call(Lt,a)?!0:De.call(We,a)?!1:Bt.test(a)?(Lt[a]=!0,!0):(We[a]=!0,l("Invalid attribute name: `%s`",a),!1)}function gt(a,o,h){return o!==null?o.type===St:h?!1:a.length>2&&(a[0]==="o"||a[0]==="O")&&(a[1]==="n"||a[1]==="N")}function _t(a,o,h,v){if(h!==null&&h.type===St)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":{if(v)return!1;if(h!==null)return!h.acceptsBooleans;var x=a.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function kn(a,o,h,v){if(o===null||typeof o>"u"||_t(a,o,h,v))return!0;if(v)return!1;if(h!==null)switch(h.type){case En:return!o;case Je:return o===!1;case Mn:return isNaN(o);case br:return isNaN(o)||o<1}return!1}function Un(a){return rr.hasOwnProperty(a)?rr[a]:null}function Gt(a,o,h,v,x,A,P){this.acceptsBooleans=o===er||o===En||o===Je,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=h,this.propertyName=a,this.type=o,this.sanitizeURL=A,this.removeEmptyString=P}var rr={},di=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];di.forEach(function(a){rr[a]=new Gt(a,St,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var o=a[0],h=a[1];rr[o]=new Gt(o,Ft,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){rr[a]=new Gt(a,er,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){rr[a]=new Gt(a,er,!1,a,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"].forEach(function(a){rr[a]=new Gt(a,En,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){rr[a]=new Gt(a,En,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){rr[a]=new Gt(a,Je,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){rr[a]=new Gt(a,br,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){rr[a]=new Gt(a,Mn,!1,a.toLowerCase(),null,!1,!1)});var Yr=/[\-\:]([a-z])/g,pr=function(a){return a[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"].forEach(function(a){var o=a.replace(Yr,pr);rr[o]=new Gt(o,Ft,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var o=a.replace(Yr,pr);rr[o]=new Gt(o,Ft,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var o=a.replace(Yr,pr);rr[o]=new Gt(o,Ft,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){rr[a]=new Gt(a,Ft,!1,a.toLowerCase(),null,!1,!1)});var Wi="xlinkHref";rr[Wi]=new Gt("xlinkHref",Ft,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){rr[a]=new Gt(a,Ft,!1,a.toLowerCase(),null,!0,!0)});var lo=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,uo=!1;function hi(a){!uo&&lo.test(a)&&(uo=!0,l("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}function yr(a,o,h,v){if(v.mustUseProperty){var x=v.propertyName;return a[x]}else{un(h,o),v.sanitizeURL&&hi(""+h);var A=v.attributeName,P=null;if(v.type===Je){if(a.hasAttribute(A)){var U=a.getAttribute(A);return U===""?!0:kn(o,h,v,!1)?U:U===""+h?h:U}}else if(a.hasAttribute(A)){if(kn(o,h,v,!1))return a.getAttribute(A);if(v.type===En)return h;P=a.getAttribute(A)}return kn(o,h,v,!1)?P===null?h:P:P===""+h?h:P}}function ti(a,o,h,v){{if(!Rt(o))return;if(!a.hasAttribute(o))return h===void 0?void 0:null;var x=a.getAttribute(o);return un(h,o),x===""+h?h:x}}function Mo(a,o,h,v){var x=Un(o);if(!gt(o,x,v)){if(kn(o,h,x,v)&&(h=null),v||x===null){if(Rt(o)){var A=o;h===null?a.removeAttribute(A):(un(h,o),a.setAttribute(A,""+h))}return}var P=x.mustUseProperty;if(P){var U=x.propertyName;if(h===null){var W=x.type;a[U]=W===En?!1:""}else a[U]=h;return}var re=x.attributeName,ue=x.attributeNamespace;if(h===null)a.removeAttribute(re);else{var Te=x.type,we;Te===En||Te===Je&&h===!0?we="":(un(h,re),we=""+h,x.sanitizeURL&&hi(we.toString())),ue?a.setAttributeNS(ue,re,we):a.setAttribute(re,we)}}}var Do=Symbol.for("react.element"),ge=Symbol.for("react.portal"),dt=Symbol.for("react.fragment"),xt=Symbol.for("react.strict_mode"),bn=Symbol.for("react.profiler"),dr=Symbol.for("react.provider"),_r=Symbol.for("react.context"),Ht=Symbol.for("react.forward_ref"),Kn=Symbol.for("react.suspense"),sr=Symbol.for("react.suspense_list"),kr=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),Fa=Symbol.for("react.scope"),Yi=Symbol.for("react.debug_trace_mode"),Po=Symbol.for("react.offscreen"),Ra=Symbol.for("react.legacy_hidden"),gs=Symbol.for("react.cache"),pu=Symbol.for("react.tracing_marker"),co=Symbol.iterator,Rl="@@iterator";function bs(a){if(a===null||typeof a!="object")return null;var o=co&&a[co]||a[Rl];return typeof o=="function"?o:null}var Zn=Object.assign,Io=0,qi,kl,Al,nl,ni,rl,Ol;function Ll(){}Ll.__reactDisabledLog=!0;function mu(){{if(Io===0){qi=console.log,kl=console.info,Al=console.warn,nl=console.error,ni=console.group,rl=console.groupCollapsed,Ol=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Ll,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Io++}}function ju(){{if(Io--,Io===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Zn({},a,{value:qi}),info:Zn({},a,{value:kl}),warn:Zn({},a,{value:Al}),error:Zn({},a,{value:nl}),group:Zn({},a,{value:ni}),groupCollapsed:Zn({},a,{value:rl}),groupEnd:Zn({},a,{value:Ol})})}Io<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Vu=n.ReactCurrentDispatcher,Fo;function ri(a,o,h){{if(Fo===void 0)try{throw Error()}catch(x){var v=x.stack.trim().match(/\n( *(at )?)/);Fo=v&&v[1]||""}return`
`+Fo+a}}var fo=!1,ai;{var Di=typeof WeakMap=="function"?WeakMap:Map;ai=new Di}function Ml(a,o){if(!a||fo)return"";{var h=ai.get(a);if(h!==void 0)return h}var v;fo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=Vu.current,Vu.current=null,mu();try{if(o){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Ge){v=Ge}Reflect.construct(a,[],P)}else{try{P.call()}catch(Ge){v=Ge}a.call(P.prototype)}}else{try{throw Error()}catch(Ge){v=Ge}a()}}catch(Ge){if(Ge&&v&&typeof Ge.stack=="string"){for(var U=Ge.stack.split(`
`),W=v.stack.split(`
`),re=U.length-1,ue=W.length-1;re>=1&&ue>=0&&U[re]!==W[ue];)ue--;for(;re>=1&&ue>=0;re--,ue--)if(U[re]!==W[ue]){if(re!==1||ue!==1)do if(re--,ue--,ue<0||U[re]!==W[ue]){var Te=`
`+U[re].replace(" at new "," at ");return a.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",a.displayName)),typeof a=="function"&&ai.set(a,Te),Te}while(re>=1&&ue>=0);break}}}finally{fo=!1,Vu.current=A,ju(),Error.prepareStackTrace=x}var we=a?a.displayName||a.name:"",je=we?ri(we):"";return typeof a=="function"&&ai.set(a,je),je}function Dl(a,o,h){return Ml(a,!0)}function Ms(a,o,h){return Ml(a,!1)}function Pl(a){var o=a.prototype;return!!(o&&o.isReactComponent)}function ho(a,o,h){if(a==null)return"";if(typeof a=="function")return Ml(a,Pl(a));if(typeof a=="string")return ri(a);switch(a){case Kn:return ri("Suspense");case sr:return ri("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case Ht:return Ms(a.render);case kr:return ho(a.type,o,h);case hr:{var v=a,x=v._payload,A=v._init;try{return ho(A(x),o,h)}catch{}}}return""}function Wa(a){switch(a._debugOwner&&a._debugOwner.type,a._debugSource,a.tag){case w:return ri(a.type);case ne:return ri("Lazy");case G:return ri("Suspense");case oe:return ri("SuspenseList");case d:case b:case Z:return Ms(a.type);case z:return Ms(a.type.render);case m:return Dl(a.type);default:return""}}function wi(a){try{var o="",h=a;do o+=Wa(h),h=h.return;while(h);return o}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}function ka(a,o,h){var v=a.displayName;if(v)return v;var x=o.displayName||o.name||"";return x!==""?h+"("+x+")":h}function Gu(a){return a.displayName||"Context"}function gr(a){if(a==null)return null;if(typeof a.tag=="number"&&l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case dt:return"Fragment";case ge:return"Portal";case bn:return"Profiler";case xt:return"StrictMode";case Kn:return"Suspense";case sr:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case _r:var o=a;return Gu(o)+".Consumer";case dr:var h=a;return Gu(h._context)+".Provider";case Ht:return ka(a,a.render,"ForwardRef");case kr:var v=a.displayName||null;return v!==null?v:gr(a.type)||"Memo";case hr:{var x=a,A=x._payload,P=x._init;try{return gr(P(A))}catch{return null}}}return null}function zo(a,o,h){var v=o.displayName||o.name||"";return a.displayName||(v!==""?h+"("+v+")":h)}function Il(a){return a.displayName||"Context"}function Xn(a){var o=a.tag,h=a.type;switch(o){case Me:return"Cache";case B:var v=h;return Il(v)+".Consumer";case F:var x=h;return Il(x._context)+".Provider";case le:return"DehydratedFragment";case z:return zo(h,h.render,"ForwardRef");case L:return"Fragment";case w:return h;case N:return"Portal";case S:return"Root";case T:return"Text";case ne:return gr(h);case M:return h===xt?"StrictMode":"Mode";case de:return"Offscreen";case H:return"Profiler";case Ae:return"Scope";case G:return"Suspense";case oe:return"SuspenseList";case _e:return"TracingMarker";case m:case d:case ie:case b:case K:case Z:if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;break}return null}var Wu=n.ReactDebugCurrentFrame,qr=null,ts=!1;function po(){{if(qr===null)return null;var a=qr._debugOwner;if(a!==null&&typeof a<"u")return Xn(a)}return null}function ys(){return qr===null?"":wi(qr)}function ga(){Wu.getCurrentStack=null,qr=null,ts=!1}function oa(a){Wu.getCurrentStack=a===null?null:ys,qr=a,ts=!1}function Ds(){return qr}function _i(a){ts=a}function Kr(a){return""+a}function ii(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return Ln(a),a;default:return""}}var yf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ps(a,o){yf[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||l("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||l("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ss(a){var o=a.type,h=a.nodeName;return h&&h.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function vu(a){return a._valueTracker}function Sr(a){a._valueTracker=null}function Br(a){var o="";return a&&(Ss(a)?o=a.checked?"true":"false":o=a.value),o}function Yu(a){var o=Ss(a)?"checked":"value",h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);Ln(a[o]);var v=""+a[o];if(!(a.hasOwnProperty(o)||typeof h>"u"||typeof h.get!="function"||typeof h.set!="function")){var x=h.get,A=h.set;Object.defineProperty(a,o,{configurable:!0,get:function(){return x.call(this)},set:function(U){Ln(U),v=""+U,A.call(this,U)}}),Object.defineProperty(a,o,{enumerable:h.enumerable});var P={getValue:function(){return v},setValue:function(U){Ln(U),v=""+U},stopTracking:function(){Sr(a),delete a[o]}};return P}}function mo(a){vu(a)||(a._valueTracker=Yu(a))}function $(a){if(!a)return!1;var o=vu(a);if(!o)return!0;var h=o.getValue(),v=Br(a);return v!==h?(o.setValue(v),!0):!1}function X(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var se=!1,qe=!1,Kt=!1,yn=!1;function Jt(a){var o=a.type==="checkbox"||a.type==="radio";return o?a.checked!=null:a.value!=null}function k(a,o){var h=a,v=o.checked,x=Zn({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??h._wrapperState.initialChecked});return x}function j(a,o){Ps("input",o),o.checked!==void 0&&o.defaultChecked!==void 0&&!qe&&(l("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",po()||"A component",o.type),qe=!0),o.value!==void 0&&o.defaultValue!==void 0&&!se&&(l("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",po()||"A component",o.type),se=!0);var h=a,v=o.defaultValue==null?"":o.defaultValue;h._wrapperState={initialChecked:o.checked!=null?o.checked:o.defaultChecked,initialValue:ii(o.value!=null?o.value:v),controlled:Jt(o)}}function ae(a,o){var h=a,v=o.checked;v!=null&&Mo(h,"checked",v,!1)}function ce(a,o){var h=a;{var v=Jt(o);!h._wrapperState.controlled&&v&&!yn&&(l("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),yn=!0),h._wrapperState.controlled&&!v&&!Kt&&(l("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Kt=!0)}ae(a,o);var x=ii(o.value),A=o.type;if(x!=null)A==="number"?(x===0&&h.value===""||h.value!=x)&&(h.value=Kr(x)):h.value!==Kr(x)&&(h.value=Kr(x));else if(A==="submit"||A==="reset"){h.removeAttribute("value");return}o.hasOwnProperty("value")?Tt(h,o.type,x):o.hasOwnProperty("defaultValue")&&Tt(h,o.type,ii(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(h.defaultChecked=!!o.defaultChecked)}function Ne(a,o,h){var v=a;if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var x=o.type,A=x==="submit"||x==="reset";if(A&&(o.value===void 0||o.value===null))return;var P=Kr(v._wrapperState.initialValue);h||P!==v.value&&(v.value=P),v.defaultValue=P}var U=v.name;U!==""&&(v.name=""),v.defaultChecked=!v.defaultChecked,v.defaultChecked=!!v._wrapperState.initialChecked,U!==""&&(v.name=U)}function mt(a,o){var h=a;ce(h,o),Ze(h,o)}function Ze(a,o){var h=o.name;if(o.type==="radio"&&h!=null){for(var v=a;v.parentNode;)v=v.parentNode;un(h,"name");for(var x=v.querySelectorAll("input[name="+JSON.stringify(""+h)+'][type="radio"]'),A=0;A<x.length;A++){var P=x[A];if(!(P===a||P.form!==a.form)){var U=Vn(P);if(!U)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");$(P),ce(P,U)}}}}function Tt(a,o,h){(o!=="number"||X(a.ownerDocument)!==a)&&(h==null?a.defaultValue=Kr(a._wrapperState.initialValue):a.defaultValue!==Kr(h)&&(a.defaultValue=Kr(h)))}var Xt=!1,xn=!1,Hn=!1;function mn(a,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?e.Children.forEach(o.children,function(h){h!=null&&(typeof h=="string"||typeof h=="number"||xn||(xn=!0,l("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):o.dangerouslySetInnerHTML!=null&&(Hn||(Hn=!0,l("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),o.selected!=null&&!Xt&&(l("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Xt=!0)}function Gn(a,o){o.value!=null&&a.setAttribute("value",Kr(ii(o.value)))}var In=Array.isArray;function Qn(a){return In(a)}var al;al=!1;function ns(){var a=po();return a?`
Check the render method of \``+a+"`.":""}var qu=["value","defaultValue"];function fh(a){{Ps("select",a);for(var o=0;o<qu.length;o++){var h=qu[o];if(a[h]!=null){var v=Qn(a[h]);a.multiple&&!v?l("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",h,ns()):!a.multiple&&v&&l("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",h,ns())}}}}function Ur(a,o,h,v){var x=a.options;if(o){for(var A=h,P={},U=0;U<A.length;U++)P["$"+A[U]]=!0;for(var W=0;W<x.length;W++){var re=P.hasOwnProperty("$"+x[W].value);x[W].selected!==re&&(x[W].selected=re),re&&v&&(x[W].defaultSelected=!0)}}else{for(var ue=Kr(ii(h)),Te=null,we=0;we<x.length;we++){if(x[we].value===ue){x[we].selected=!0,v&&(x[we].defaultSelected=!0);return}Te===null&&!x[we].disabled&&(Te=x[we])}Te!==null&&(Te.selected=!0)}}function il(a,o){return Zn({},o,{value:void 0})}function Oc(a,o){var h=a;fh(o),h._wrapperState={wasMultiple:!!o.multiple},o.value!==void 0&&o.defaultValue!==void 0&&!al&&(l("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),al=!0)}function Sv(a,o){var h=a;h.multiple=!!o.multiple;var v=o.value;v!=null?Ur(h,!!o.multiple,v,!1):o.defaultValue!=null&&Ur(h,!!o.multiple,o.defaultValue,!0)}function Yb(a,o){var h=a,v=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?Ur(h,!!o.multiple,x,!1):v!==!!o.multiple&&(o.defaultValue!=null?Ur(h,!!o.multiple,o.defaultValue,!0):Ur(h,!!o.multiple,o.multiple?[]:"",!1))}function SC(a,o){var h=a,v=o.value;v!=null&&Ur(h,!!o.multiple,v,!1)}var ZS=!1;function qb(a,o){var h=a;if(o.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var v=Zn({},o,{value:void 0,defaultValue:void 0,children:Kr(h._wrapperState.initialValue)});return v}function Kb(a,o){var h=a;Ps("textarea",o),o.value!==void 0&&o.defaultValue!==void 0&&!ZS&&(l("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",po()||"A component"),ZS=!0);var v=o.value;if(v==null){var x=o.children,A=o.defaultValue;if(x!=null){l("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(A!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qn(x)){if(x.length>1)throw new Error("<textarea> can only have at most one child.");x=x[0]}A=x}}A==null&&(A=""),v=A}h._wrapperState={initialValue:ii(v)}}function xv(a,o){var h=a,v=ii(o.value),x=ii(o.defaultValue);if(v!=null){var A=Kr(v);A!==h.value&&(h.value=A),o.defaultValue==null&&h.defaultValue!==A&&(h.defaultValue=A)}x!=null&&(h.defaultValue=Kr(x))}function dh(a,o){var h=a,v=h.textContent;v===h._wrapperState.initialValue&&v!==""&&v!==null&&(h.value=v)}function xC(a,o){xv(a,o)}var Lc="http://www.w3.org/1999/xhtml",XS="http://www.w3.org/1998/Math/MathML",Cv="http://www.w3.org/2000/svg";function Nv(a){switch(a){case"svg":return Cv;case"math":return XS;default:return Lc}}function b0(a,o){return a==null||a===Lc?Nv(o):a===Cv&&o==="foreignObject"?Lc:a}var CC=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,h,v,x){MSApp.execUnsafeLocalFunction(function(){return a(o,h,v,x)})}:a},Tp,y0=CC(function(a,o){if(a.namespaceURI===Cv&&!("innerHTML"in a)){Tp=Tp||document.createElement("div"),Tp.innerHTML="<svg>"+o.valueOf().toString()+"</svg>";for(var h=Tp.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;h.firstChild;)a.appendChild(h.firstChild);return}a.innerHTML=o}),ol=1,sl=3,Qr=8,gu=9,od=11,Rp=function(a,o){if(o){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===sl){h.nodeValue=o;return}}a.textContent=o},Zb={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},kp={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};function QS(a,o){return a+o.charAt(0).toUpperCase()+o.substring(1)}var JS=["Webkit","ms","Moz","O"];Object.keys(kp).forEach(function(a){JS.forEach(function(o){kp[QS(o,a)]=kp[a]})});function Xb(a,o,h){var v=o==null||typeof o=="boolean"||o==="";return v?"":!h&&typeof o=="number"&&o!==0&&!(kp.hasOwnProperty(a)&&kp[a])?o+"px":(Rn(o,a),(""+o).trim())}var NC=/([A-Z])/g,sd=/^ms-/;function Qb(a){return a.replace(NC,"-$1").toLowerCase().replace(sd,"-ms-")}var Sf=function(){};{var wv=/^(?:webkit|moz|o)[A-Z]/,_v=/^-ms-/,ld=/-(.)/g,hh=/;\s*$/,Ap={},Ev={},ex=!1,xf=!1,bu=function(a){return a.replace(ld,function(o,h){return h.toUpperCase()})},Jb=function(a){Ap.hasOwnProperty(a)&&Ap[a]||(Ap[a]=!0,l("Unsupported style property %s. Did you mean %s?",a,bu(a.replace(_v,"ms-"))))},tx=function(a){Ap.hasOwnProperty(a)&&Ap[a]||(Ap[a]=!0,l("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1)))},S0=function(a,o){Ev.hasOwnProperty(o)&&Ev[o]||(Ev[o]=!0,l(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,o.replace(hh,"")))},Ku=function(a,o){ex||(ex=!0,l("`NaN` is an invalid value for the `%s` css style property.",a))},ey=function(a,o){xf||(xf=!0,l("`Infinity` is an invalid value for the `%s` css style property.",a))};Sf=function(a,o){a.indexOf("-")>-1?Jb(a):wv.test(a)?tx(a):hh.test(o)&&S0(a,o),typeof o=="number"&&(isNaN(o)?Ku(a,o):isFinite(o)||ey(a,o))}}var x0=Sf;function ll(a){{var o="",h="";for(var v in a)if(!!a.hasOwnProperty(v)){var x=a[v];if(x!=null){var A=v.indexOf("--")===0;o+=h+(A?v:Qb(v))+":",o+=Xb(v,x,A),h=";"}}return o||null}}function Ee(a,o){var h=a.style;for(var v in o)if(!!o.hasOwnProperty(v)){var x=v.indexOf("--")===0;x||x0(v,o[v]);var A=Xb(v,o[v],x);v==="float"&&(v="cssFloat"),x?h.setProperty(v,A):h[v]=A}}function Ke(a){return a==null||typeof a=="boolean"||a===""}function Be(a){var o={};for(var h in a)for(var v=Zb[h]||[h],x=0;x<v.length;x++)o[v[x]]=h;return o}function ln(a,o){{if(!o)return;var h=Be(a),v=Be(o),x={};for(var A in h){var P=h[A],U=v[A];if(U&&P!==U){var W=P+","+U;if(x[W])continue;x[W]=!0,l("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ke(a[P])?"Removing":"Updating",P,U)}}}}var On={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},Tr=Zn({menuitem:!0},On),Ca="__html";function sa(a,o){if(!!o){if(Tr[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw new Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof o.dangerouslySetInnerHTML!="object"||!(Ca in o.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!o.suppressContentEditableWarning&&o.contentEditable&&o.children!=null&&l("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),o.style!=null&&typeof o.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ul(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){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 Tv={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Bo={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},yu={},Mc=new RegExp("^(aria)-["+Xe+"]*$"),Cf=new RegExp("^(aria)[A-Z]["+Xe+"]*$");function Op(a,o){{if(De.call(yu,o)&&yu[o])return!0;if(Cf.test(o)){var h="aria-"+o.slice(4).toLowerCase(),v=Bo.hasOwnProperty(h)?h:null;if(v==null)return l("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),yu[o]=!0,!0;if(o!==v)return l("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,v),yu[o]=!0,!0}if(Mc.test(o)){var x=o.toLowerCase(),A=Bo.hasOwnProperty(x)?x:null;if(A==null)return yu[o]=!0,!1;if(o!==A)return l("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,A),yu[o]=!0,!0}}return!0}function Rv(a,o){{var h=[];for(var v in o){var x=Op(a,v);x||h.push(v)}var A=h.map(function(P){return"`"+P+"`"}).join(", ");h.length===1?l("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",A,a):h.length>1&&l("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",A,a)}}function ua(a,o){ul(a,o)||Rv(a,o)}var kv=!1;function ty(a,o){{if(a!=="input"&&a!=="textarea"&&a!=="select")return;o!=null&&o.value===null&&!kv&&(kv=!0,a==="select"&&o.multiple?l("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):l("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a))}}var Av=function(){};{var Ki={},ny=/^on./,tr=/^on[^A-Z]/,Ar=new RegExp("^(aria)-["+Xe+"]*$"),Mr=new RegExp("^(aria)[A-Z]["+Xe+"]*$");Av=function(a,o,h,v){if(De.call(Ki,o)&&Ki[o])return!0;var x=o.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return l("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ki[o]=!0,!0;if(v!=null){var A=v.registrationNameDependencies,P=v.possibleRegistrationNames;if(A.hasOwnProperty(o))return!0;var U=P.hasOwnProperty(x)?P[x]:null;if(U!=null)return l("Invalid event handler property `%s`. Did you mean `%s`?",o,U),Ki[o]=!0,!0;if(ny.test(o))return l("Unknown event handler property `%s`. It will be ignored.",o),Ki[o]=!0,!0}else if(ny.test(o))return tr.test(o)&&l("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),Ki[o]=!0,!0;if(Ar.test(o)||Mr.test(o))return!0;if(x==="innerhtml")return l("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ki[o]=!0,!0;if(x==="aria")return l("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ki[o]=!0,!0;if(x==="is"&&h!==null&&h!==void 0&&typeof h!="string")return l("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),Ki[o]=!0,!0;if(typeof h=="number"&&isNaN(h))return l("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),Ki[o]=!0,!0;var W=Un(o),re=W!==null&&W.type===St;if(Tv.hasOwnProperty(x)){var ue=Tv[x];if(ue!==o)return l("Invalid DOM property `%s`. Did you mean `%s`?",o,ue),Ki[o]=!0,!0}else if(!re&&o!==x)return l("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,x),Ki[o]=!0,!0;return typeof h=="boolean"&&_t(o,h,W,!1)?(h?l('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,o,o,h,o):l('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,o,o,h,o,o,o),Ki[o]=!0,!0):re?!0:_t(o,h,W,!1)?(Ki[o]=!0,!1):((h==="false"||h==="true")&&W!==null&&W.type===En&&(l("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,o,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,h),Ki[o]=!0),!0)}}var pi=function(a,o,h){{var v=[];for(var x in o){var A=Av(a,x,o[x],h);A||v.push(x)}var P=v.map(function(U){return"`"+U+"`"}).join(", ");v.length===1?l("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",P,a):v.length>1&&l("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",P,a)}};function Zu(a,o,h){ul(a,o)||pi(a,o,h)}var Lp=1,C0=1<<1,Mp=1<<2,N0=Lp|C0|Mp,ud=null;function yt(a){ud!==null&&l("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ud=a}function oi(){ud===null&&l("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ud=null}function Wn(a){return a===ud}function cd(a){var o=a.target||a.srcElement||window;return o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===sl?o.parentNode:o}var Xu=null,Su=null,$o=null;function Nf(a){var o=jt(a);if(!!o){if(typeof Xu!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var h=o.stateNode;if(h){var v=Vn(h);Xu(o.stateNode,o.type,v)}}}function fd(a){Xu=a}function Dp(a){Su?$o?$o.push(a):$o=[a]:Su=a}function w0(){return Su!==null||$o!==null}function _0(){if(!!Su){var a=Su,o=$o;if(Su=null,$o=null,Nf(a),o)for(var h=0;h<o.length;h++)Nf(o[h])}}var E0=function(a,o){return a(o)},Ei=function(){},Zi=!1;function ry(){var a=w0();a&&(Ei(),_0())}function T0(a,o,h){if(Zi)return a(o,h);Zi=!0;try{return E0(a,o,h)}finally{Zi=!1,ry()}}function R0(a,o,h){E0=a,Ei=h}function ay(a){return a==="button"||a==="input"||a==="select"||a==="textarea"}function Ov(a,o,h){switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(h.disabled&&ay(o));default:return!1}}function Qu(a,o){var h=a.stateNode;if(h===null)return null;var v=Vn(h);if(v===null)return null;var x=v[o];if(Ov(o,a.type,v))return null;if(x&&typeof x!="function")throw new Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof x+"` type.");return x}var ph=!1;if(gn)try{var xu={};Object.defineProperty(xu,"passive",{get:function(){ph=!0}}),window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,xu)}catch{ph=!1}function dd(a,o,h,v,x,A,P,U,W){var re=Array.prototype.slice.call(arguments,3);try{o.apply(h,re)}catch(ue){this.onError(ue)}}var hd=dd;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var wf=document.createElement("react");hd=function(o,h,v,x,A,P,U,W,re){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ue=document.createEvent("Event"),Te=!1,we=!0,je=window.event,Ge=Object.getOwnPropertyDescriptor(window,"event");function et(){wf.removeEventListener(tt,Yn,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=je)}var dn=Array.prototype.slice.call(arguments,3);function Yn(){Te=!0,et(),h.apply(v,dn),we=!1}var An,ta=!1,Wr=!1;function Fe(ze){if(An=ze.error,ta=!0,An===null&&ze.colno===0&&ze.lineno===0&&(Wr=!0),ze.defaultPrevented&&An!=null&&typeof An=="object")try{An._suppressLogging=!0}catch{}}var tt="react-"+(o||"invokeguardedcallback");if(window.addEventListener("error",Fe),wf.addEventListener(tt,Yn,!1),ue.initEvent(tt,!1,!1),wf.dispatchEvent(ue),Ge&&Object.defineProperty(window,"event",Ge),Te&&we&&(ta?Wr&&(An=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):An=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(An)),window.removeEventListener("error",Fe),!Te)return et(),dd.apply(this,arguments)}}var Ju=hd,pd=!1,Pp=null,Ip=!1,Lv=null,nx={onError:function(a){pd=!0,Pp=a}};function Dc(a,o,h,v,x,A,P,U,W){pd=!1,Pp=null,Ju.apply(nx,arguments)}function Fp(a,o,h,v,x,A,P,U,W){if(Dc.apply(this,arguments),pd){var re=Xi();Ip||(Ip=!0,Lv=re)}}function zp(){if(Ip){var a=Lv;throw Ip=!1,Lv=null,a}}function Q(){return pd}function Xi(){if(pd){var a=Pp;return pd=!1,Pp=null,a}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function _f(a){return a._reactInternals}function Dr(a){return a._reactInternals!==void 0}function Rr(a,o){a._reactInternals=o}var Dn=0,Pc=1,mi=2,wr=4,mh=16,Mv=32,iy=64,Hr=128,Ef=256,Uo=512,md=1024,ec=2048,Tf=4096,Ic=8192,k0=16384,Fc=ec|wr|iy|Uo|md|k0,rx=32767,Dv=32768,Pi=65536,vh=131072,vd=1048576,tc=2097152,vo=4194304,gd=8388608,_n=16777216,gh=33554432,A0=wr|md|0,ax=mi|wr|mh|Mv|Uo|Tf|Ic,Pv=wr|iy|Uo|Ic,bd=ec|mh,cl=vo|gd|tc,ix=n.ReactCurrentOwner;function yd(a){var o=a,h=a;if(a.alternate)for(;o.return;)o=o.return;else{var v=o;do o=v,(o.flags&(mi|Tf))!==Dn&&(h=o.return),v=o.return;while(v)}return o.tag===S?h:null}function ox(a){if(a.tag===G){var o=a.memoizedState;if(o===null){var h=a.alternate;h!==null&&(o=h.memoizedState)}if(o!==null)return o.dehydrated}return null}function Bp(a){return a.tag===S?a.stateNode.containerInfo:null}function Iv(a){return yd(a)===a}function Fv(a){{var o=ix.current;if(o!==null&&o.tag===m){var h=o,v=h.stateNode;v._warnedAboutRefsInRender||l("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Xn(h)||"A component"),v._warnedAboutRefsInRender=!0}}var x=_f(a);return x?yd(x)===x:!1}function oy(a){if(yd(a)!==a)throw new Error("Unable to find node on an unmounted component.")}function O0(a){var o=a.alternate;if(!o){var h=yd(a);if(h===null)throw new Error("Unable to find node on an unmounted component.");return h!==a?null:a}for(var v=a,x=o;;){var A=v.return;if(A===null)break;var P=A.alternate;if(P===null){var U=A.return;if(U!==null){v=x=U;continue}break}if(A.child===P.child){for(var W=A.child;W;){if(W===v)return oy(A),a;if(W===x)return oy(A),o;W=W.sibling}throw new Error("Unable to find node on an unmounted component.")}if(v.return!==x.return)v=A,x=P;else{for(var re=!1,ue=A.child;ue;){if(ue===v){re=!0,v=A,x=P;break}if(ue===x){re=!0,x=A,v=P;break}ue=ue.sibling}if(!re){for(ue=P.child;ue;){if(ue===v){re=!0,v=P,x=A;break}if(ue===x){re=!0,x=P,v=A;break}ue=ue.sibling}if(!re)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(v.alternate!==x)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(v.tag!==S)throw new Error("Unable to find node on an unmounted component.");return v.stateNode.current===v?a:o}function nc(a){var o=O0(a);return o!==null?fl(o):null}function fl(a){if(a.tag===w||a.tag===T)return a;for(var o=a.child;o!==null;){var h=fl(o);if(h!==null)return h;o=o.sibling}return null}function bh(a){var o=O0(a);return o!==null?zc(o):null}function zc(a){if(a.tag===w||a.tag===T)return a;for(var o=a.child;o!==null;){if(o.tag!==N){var h=zc(o);if(h!==null)return h}o=o.sibling}return null}var rs=t.unstable_scheduleCallback,rc=t.unstable_cancelCallback,go=t.unstable_shouldYield,sx=t.unstable_requestPaint,Ti=t.unstable_now,Sd=t.unstable_getCurrentPriorityLevel,$p=t.unstable_ImmediatePriority,L0=t.unstable_UserBlockingPriority,ac=t.unstable_NormalPriority,wC=t.unstable_LowPriority,M0=t.unstable_IdlePriority,as=t.unstable_yieldValue,Qi=t.unstable_setDisableYieldValue,Bc=null,za=null,Yt=null,dl=!1,is=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function lx(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return l("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{wt&&(a=Zn({},a,{getLaneLabelMap:_C,injectProfilingHooks:sy})),Bc=o.inject(a),za=o}catch(h){l("React instrumentation encountered an error: %s.",h)}return!!o.checkDCE}function Ji(a,o){if(za&&typeof za.onScheduleFiberRoot=="function")try{za.onScheduleFiberRoot(Bc,a,o)}catch(h){dl||(dl=!0,l("React instrumentation encountered an error: %s",h))}}function Ho(a,o){if(za&&typeof za.onCommitFiberRoot=="function")try{var h=(a.current.flags&Hr)===Hr;if(Ot){var v;switch(o){case So:v=$p;break;case vl:v=L0;break;case fa:v=ac;break;case wh:v=M0;break;default:v=ac;break}za.onCommitFiberRoot(Bc,a,v,h)}}catch(x){dl||(dl=!0,l("React instrumentation encountered an error: %s",x))}}function en(a){if(za&&typeof za.onPostCommitFiberRoot=="function")try{za.onPostCommitFiberRoot(Bc,a)}catch(o){dl||(dl=!0,l("React instrumentation encountered an error: %s",o))}}function $c(a){if(za&&typeof za.onCommitFiberUnmount=="function")try{za.onCommitFiberUnmount(Bc,a)}catch(o){dl||(dl=!0,l("React instrumentation encountered an error: %s",o))}}function Na(a){if(typeof as=="function"&&(Qi(a),i(a)),za&&typeof za.setStrictMode=="function")try{za.setStrictMode(Bc,a)}catch(o){dl||(dl=!0,l("React instrumentation encountered an error: %s",o))}}function sy(a){Yt=a}function _C(){{for(var a=new Map,o=1,h=0;h<Uv;h++){var v=mx(o);a.set(o,v),o*=2}return a}}function zv(a){Yt!==null&&typeof Yt.markCommitStarted=="function"&&Yt.markCommitStarted(a)}function ly(){Yt!==null&&typeof Yt.markCommitStopped=="function"&&Yt.markCommitStopped()}function Bv(a){Yt!==null&&typeof Yt.markComponentRenderStarted=="function"&&Yt.markComponentRenderStarted(a)}function vi(){Yt!==null&&typeof Yt.markComponentRenderStopped=="function"&&Yt.markComponentRenderStopped()}function $v(a){Yt!==null&&typeof Yt.markComponentPassiveEffectMountStarted=="function"&&Yt.markComponentPassiveEffectMountStarted(a)}function EC(){Yt!==null&&typeof Yt.markComponentPassiveEffectMountStopped=="function"&&Yt.markComponentPassiveEffectMountStopped()}function TC(a){Yt!==null&&typeof Yt.markComponentPassiveEffectUnmountStarted=="function"&&Yt.markComponentPassiveEffectUnmountStarted(a)}function D0(){Yt!==null&&typeof Yt.markComponentPassiveEffectUnmountStopped=="function"&&Yt.markComponentPassiveEffectUnmountStopped()}function Up(a){Yt!==null&&typeof Yt.markComponentLayoutEffectMountStarted=="function"&&Yt.markComponentLayoutEffectMountStarted(a)}function Hp(){Yt!==null&&typeof Yt.markComponentLayoutEffectMountStopped=="function"&&Yt.markComponentLayoutEffectMountStopped()}function ux(a){Yt!==null&&typeof Yt.markComponentLayoutEffectUnmountStarted=="function"&&Yt.markComponentLayoutEffectUnmountStarted(a)}function cx(){Yt!==null&&typeof Yt.markComponentLayoutEffectUnmountStopped=="function"&&Yt.markComponentLayoutEffectUnmountStopped()}function fx(a,o,h){Yt!==null&&typeof Yt.markComponentErrored=="function"&&Yt.markComponentErrored(a,o,h)}function uy(a,o,h){Yt!==null&&typeof Yt.markComponentSuspended=="function"&&Yt.markComponentSuspended(a,o,h)}function RC(a){Yt!==null&&typeof Yt.markLayoutEffectsStarted=="function"&&Yt.markLayoutEffectsStarted(a)}function cy(){Yt!==null&&typeof Yt.markLayoutEffectsStopped=="function"&&Yt.markLayoutEffectsStopped()}function fy(a){Yt!==null&&typeof Yt.markPassiveEffectsStarted=="function"&&Yt.markPassiveEffectsStarted(a)}function dy(){Yt!==null&&typeof Yt.markPassiveEffectsStopped=="function"&&Yt.markPassiveEffectsStopped()}function hy(a){Yt!==null&&typeof Yt.markRenderStarted=="function"&&Yt.markRenderStarted(a)}function P0(){Yt!==null&&typeof Yt.markRenderYielded=="function"&&Yt.markRenderYielded()}function dx(){Yt!==null&&typeof Yt.markRenderStopped=="function"&&Yt.markRenderStopped()}function hx(a){Yt!==null&&typeof Yt.markRenderScheduled=="function"&&Yt.markRenderScheduled(a)}function px(a,o){Yt!==null&&typeof Yt.markForceUpdateScheduled=="function"&&Yt.markForceUpdateScheduled(a,o)}function py(a,o){Yt!==null&&typeof Yt.markStateUpdateScheduled=="function"&&Yt.markStateUpdateScheduled(a,o)}var Fn=0,Pr=1,Jr=2,Ii=8,Cu=16,I0=Math.clz32?Math.clz32:Rf,my=Math.log,Jn=Math.LN2;function Rf(a){var o=a>>>0;return o===0?32:31-(my(o)/Jn|0)|0}var Uv=31,vt=0,eo=0,ir=1,yh=2,ba=4,xd=8,jo=16,Nu=32,Uc=4194240,kf=64,Ba=128,Fi=256,ic=512,wu=1024,hl=2048,F0=4096,Hv=8192,z0=16384,oc=32768,jp=65536,_u=131072,Vp=262144,Hc=524288,Gp=1048576,B0=2097152,Wp=130023424,Eu=4194304,bo=8388608,pl=16777216,ml=33554432,sc=67108864,Af=Eu,Yp=134217728,$0=268435455,Vo=268435456,xs=536870912,Fl=1073741824;function mx(a){{if(a&ir)return"Sync";if(a&yh)return"InputContinuousHydration";if(a&ba)return"InputContinuous";if(a&xd)return"DefaultHydration";if(a&jo)return"Default";if(a&Nu)return"TransitionHydration";if(a&Uc)return"Transition";if(a&Wp)return"Retry";if(a&Yp)return"SelectiveHydration";if(a&Vo)return"IdleHydration";if(a&xs)return"Idle";if(a&Fl)return"Offscreen"}}var ca=-1,lc=kf,qp=Eu;function Sh(a){switch(Of(a)){case ir:return ir;case yh:return yh;case ba:return ba;case xd:return xd;case jo:return jo;case Nu:return Nu;case kf:case Ba:case Fi:case ic:case wu:case hl:case F0:case Hv:case z0:case oc:case jp:case _u:case Vp:case Hc:case Gp:case B0:return a&Uc;case Eu:case bo:case pl:case ml:case sc:return a&Wp;case Yp:return Yp;case Vo:return Vo;case xs:return xs;case Fl:return Fl;default:return l("Should have found matching lanes. This is a bug in React."),a}}function Kp(a,o){var h=a.pendingLanes;if(h===vt)return vt;var v=vt,x=a.suspendedLanes,A=a.pingedLanes,P=h&$0;if(P!==vt){var U=P&~x;if(U!==vt)v=Sh(U);else{var W=P&A;W!==vt&&(v=Sh(W))}}else{var re=h&~x;re!==vt?v=Sh(re):A!==vt&&(v=Sh(A))}if(v===vt)return vt;if(o!==vt&&o!==v&&(o&x)===vt){var ue=Of(v),Te=Of(o);if(ue>=Te||ue===jo&&(Te&Uc)!==vt)return o}(v&ba)!==vt&&(v|=h&jo);var we=a.entangledLanes;if(we!==vt)for(var je=a.entanglements,Ge=v&we;Ge>0;){var et=uc(Ge),dn=1<<et;v|=je[et],Ge&=~dn}return v}function U0(a,o){for(var h=a.eventTimes,v=ca;o>0;){var x=uc(o),A=1<<x,P=h[x];P>v&&(v=P),o&=~A}return v}function Cd(a,o){switch(a){case ir:case yh:case ba:return o+250;case xd:case jo:case Nu:case kf:case Ba:case Fi:case ic:case wu:case hl:case F0:case Hv:case z0:case oc:case jp:case _u:case Vp:case Hc:case Gp:case B0:return o+5e3;case Eu:case bo:case pl:case ml:case sc:return ca;case Yp:case Vo:case xs:case Fl:return ca;default:return l("Should have found matching lanes. This is a bug in React."),ca}}function jv(a,o){for(var h=a.pendingLanes,v=a.suspendedLanes,x=a.pingedLanes,A=a.expirationTimes,P=h;P>0;){var U=uc(P),W=1<<U,re=A[U];re===ca?((W&v)===vt||(W&x)!==vt)&&(A[U]=Cd(W,o)):re<=o&&(a.expiredLanes|=W),P&=~W}}function kC(a){return Sh(a.pendingLanes)}function H0(a){var o=a.pendingLanes&~Fl;return o!==vt?o:o&Fl?Fl:vt}function vx(a){return(a&ir)!==vt}function xh(a){return(a&$0)!==vt}function Zp(a){return(a&Wp)===a}function j0(a){var o=ir|ba|jo;return(a&o)===vt}function V0(a){return(a&Uc)===a}function Tu(a,o){var h=yh|ba|xd|jo;return(o&h)!==vt}function gx(a,o){return(o&a.expiredLanes)!==vt}function yo(a){return(a&Uc)!==vt}function Ch(){var a=lc;return lc<<=1,(lc&Uc)===vt&&(lc=kf),a}function bx(){var a=qp;return qp<<=1,(qp&Wp)===vt&&(qp=Eu),a}function Of(a){return a&-a}function Vv(a){return Of(a)}function uc(a){return 31-I0(a)}function cc(a){return uc(a)}function Is(a,o){return(a&o)!==vt}function Nd(a,o){return(a&o)===o}function zn(a,o){return a|o}function Lf(a,o){return a&~o}function yx(a,o){return a&o}function F_(a){return a}function gi(a,o){return a!==eo&&a<o?a:o}function Ya(a){for(var o=[],h=0;h<Uv;h++)o.push(a);return o}function Nh(a,o,h){a.pendingLanes|=o,o!==xs&&(a.suspendedLanes=vt,a.pingedLanes=vt);var v=a.eventTimes,x=cc(o);v[x]=h}function Ru(a,o){a.suspendedLanes|=o,a.pingedLanes&=~o;for(var h=a.expirationTimes,v=o;v>0;){var x=uc(v),A=1<<x;h[x]=ca,v&=~A}}function Fs(a,o,h){a.pingedLanes|=a.suspendedLanes&o}function Xp(a,o){var h=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=vt,a.pingedLanes=vt,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o;for(var v=a.entanglements,x=a.eventTimes,A=a.expirationTimes,P=h;P>0;){var U=uc(P),W=1<<U;v[U]=vt,x[U]=ca,A[U]=ca,P&=~W}}function Tn(a,o){for(var h=a.entangledLanes|=o,v=a.entanglements,x=h;x;){var A=uc(x),P=1<<A;P&o|v[A]&o&&(v[A]|=o),x&=~P}}function wd(a,o){var h=Of(o),v;switch(h){case ba:v=yh;break;case jo:v=xd;break;case kf:case Ba:case Fi:case ic:case wu:case hl:case F0:case Hv:case z0:case oc:case jp:case _u:case Vp:case Hc:case Gp:case B0:case Eu:case bo:case pl:case ml:case sc:v=Nu;break;case xs:v=Vo;break;default:v=eo;break}return(v&(a.suspendedLanes|o))!==eo?eo:v}function _d(a,o,h){if(!!is)for(var v=a.pendingUpdatersLaneMap;h>0;){var x=cc(h),A=1<<x,P=v[x];P.add(o),h&=~A}}function ku(a,o){if(!!is)for(var h=a.pendingUpdatersLaneMap,v=a.memoizedUpdaters;o>0;){var x=cc(o),A=1<<x,P=h[x];P.size>0&&(P.forEach(function(U){var W=U.alternate;(W===null||!v.has(W))&&v.add(U)}),P.clear()),o&=~A}}function Qp(a,o){return null}var So=ir,vl=ba,fa=jo,wh=xs,Jp=eo;function zl(){return Jp}function xo(a){Jp=a}function G0(a,o){var h=Jp;try{return Jp=a,o()}finally{Jp=h}}function AC(a,o){return a!==0&&a<o?a:o}function OC(a,o){return a===0||a>o?a:o}function Bl(a,o){return a!==0&&a<o}function $l(a){var o=Of(a);return Bl(So,o)?Bl(vl,o)?xh(o)?fa:wh:vl:So}function Ri(a){var o=a.current.memoizedState;return o.isDehydrated}var _h;function em(a){_h=a}function Gv(a){_h(a)}var tm;function W0(a){tm=a}var Eh;function vy(a){Eh=a}var Y0;function gy(a){Y0=a}var q0;function LC(a){q0=a}var by=!1,jc=[],wa=null,gl=null,Au=null,nm=new Map,Vc=new Map,Gc=[],Sx=["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"];function Cs(a){return Sx.indexOf(a)>-1}function K0(a,o,h,v,x){return{blockedOn:a,domEventName:o,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]}}function rm(a,o){switch(a){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":Au=null;break;case"pointerover":case"pointerout":{var h=o.pointerId;nm.delete(h);break}case"gotpointercapture":case"lostpointercapture":{var v=o.pointerId;Vc.delete(v);break}}}function zs(a,o,h,v,x,A){if(a===null||a.nativeEvent!==A){var P=K0(o,h,v,x,A);if(o!==null){var U=jt(o);U!==null&&tm(U)}return P}a.eventSystemFlags|=v;var W=a.targetContainers;return x!==null&&W.indexOf(x)===-1&&W.push(x),a}function Ed(a,o,h,v,x){switch(o){case"focusin":{var A=x;return wa=zs(wa,a,o,h,v,A),!0}case"dragenter":{var P=x;return gl=zs(gl,a,o,h,v,P),!0}case"mouseover":{var U=x;return Au=zs(Au,a,o,h,v,U),!0}case"pointerover":{var W=x,re=W.pointerId;return nm.set(re,zs(nm.get(re)||null,a,o,h,v,W)),!0}case"gotpointercapture":{var ue=x,Te=ue.pointerId;return Vc.set(Te,zs(Vc.get(Te)||null,a,o,h,v,ue)),!0}}return!1}function Wv(a){var o=bt(a.target);if(o!==null){var h=yd(o);if(h!==null){var v=h.tag;if(v===G){var x=ox(h);if(x!==null){a.blockedOn=x,q0(a.priority,function(){Eh(h)});return}}else if(v===S){var A=h.stateNode;if(Ri(A)){a.blockedOn=Bp(h);return}}}}a.blockedOn=null}function Z0(a){for(var o=Y0(),h={blockedOn:null,target:a,priority:o},v=0;v<Gc.length&&Bl(o,Gc[v].priority);v++);Gc.splice(v,0,h),v===0&&Wv(h)}function Th(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;o.length>0;){var h=o[0],v=Xv(a.domEventName,a.eventSystemFlags,h,a.nativeEvent);if(v===null){var x=a.nativeEvent,A=new x.constructor(x.type,x);yt(A),x.target.dispatchEvent(A),oi()}else{var P=jt(v);return P!==null&&tm(P),a.blockedOn=v,!1}o.shift()}return!0}function X0(a,o,h){Th(a)&&h.delete(o)}function Q0(){by=!1,wa!==null&&Th(wa)&&(wa=null),gl!==null&&Th(gl)&&(gl=null),Au!==null&&Th(Au)&&(Au=null),nm.forEach(X0),Vc.forEach(X0)}function Rh(a,o){a.blockedOn===o&&(a.blockedOn=null,by||(by=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Q0)))}function am(a){if(jc.length>0){Rh(jc[0],a);for(var o=1;o<jc.length;o++){var h=jc[o];h.blockedOn===a&&(h.blockedOn=null)}}wa!==null&&Rh(wa,a),gl!==null&&Rh(gl,a),Au!==null&&Rh(Au,a);var v=function(U){return Rh(U,a)};nm.forEach(v),Vc.forEach(v);for(var x=0;x<Gc.length;x++){var A=Gc[x];A.blockedOn===a&&(A.blockedOn=null)}for(;Gc.length>0;){var P=Gc[0];if(P.blockedOn!==null)break;Wv(P),P.blockedOn===null&&Gc.shift()}}var bl=n.ReactCurrentBatchConfig,Wc=!0;function Yv(a){Wc=!!a}function yy(){return Wc}function MC(a,o,h){var v=Sy(o),x;switch(v){case So:x=J0;break;case vl:x=xx;break;case fa:default:x=qv;break}return x.bind(null,o,h,a)}function J0(a,o,h,v){var x=zl(),A=bl.transition;bl.transition=null;try{xo(So),qv(a,o,h,v)}finally{xo(x),bl.transition=A}}function xx(a,o,h,v){var x=zl(),A=bl.transition;bl.transition=null;try{xo(vl),qv(a,o,h,v)}finally{xo(x),bl.transition=A}}function qv(a,o,h,v){!Wc||Kv(a,o,h,v)}function Kv(a,o,h,v){var x=Xv(a,o,h,v);if(x===null){y1(a,o,v,Zv,h),rm(a,v);return}if(Ed(x,a,o,h,v)){v.stopPropagation();return}if(rm(a,v),o&Mp&&Cs(a)){for(;x!==null;){var A=jt(x);A!==null&&Gv(A);var P=Xv(a,o,h,v);if(P===null&&y1(a,o,v,Zv,h),P===x)break;x=P}x!==null&&v.stopPropagation();return}y1(a,o,v,null,h)}var Zv=null;function Xv(a,o,h,v){Zv=null;var x=cd(v),A=bt(x);if(A!==null){var P=yd(A);if(P===null)A=null;else{var U=P.tag;if(U===G){var W=ox(P);if(W!==null)return W;A=null}else if(U===S){var re=P.stateNode;if(Ri(re))return Bp(P);A=null}else P!==A&&(A=null)}}return Zv=A,null}function Sy(a){switch(a){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 So;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 vl;case"message":{var o=Sd();switch(o){case $p:return So;case L0:return vl;case ac:case wC:return fa;case M0:return wh;default:return fa}}default:return fa}}function e1(a,o,h){return a.addEventListener(o,h,!1),h}function xy(a,o,h){return a.addEventListener(o,h,!0),h}function Cy(a,o,h,v){return a.addEventListener(o,h,{capture:!0,passive:v}),h}function Ny(a,o,h,v){return a.addEventListener(o,h,{passive:v}),h}var kh=null,t1=null,Td=null;function yl(a){return kh=a,t1=_y(),!0}function wy(){kh=null,t1=null,Td=null}function n1(){if(Td)return Td;var a,o=t1,h=o.length,v,x=_y(),A=x.length;for(a=0;a<h&&o[a]===x[a];a++);var P=h-a;for(v=1;v<=P&&o[h-v]===x[A-v];v++);var U=v>1?1-v:void 0;return Td=x.slice(a,U),Td}function _y(){return"value"in kh?kh.value:kh.textContent}function Ah(a){var o,h=a.keyCode;return"charCode"in a?(o=a.charCode,o===0&&h===13&&(o=13)):o=h,o===10&&(o=13),o>=32||o===13?o:0}function im(){return!0}function Ey(){return!1}function Ul(a){function o(h,v,x,A,P){this._reactName=h,this._targetInst=x,this.type=v,this.nativeEvent=A,this.target=P,this.currentTarget=null;for(var U in a)if(!!a.hasOwnProperty(U)){var W=a[U];W?this[U]=W(A):this[U]=A[U]}var re=A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1;return re?this.isDefaultPrevented=im:this.isDefaultPrevented=Ey,this.isPropagationStopped=Ey,this}return Zn(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;!h||(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=im)},stopPropagation:function(){var h=this.nativeEvent;!h||(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=im)},persist:function(){},isPersistent:im}),o}var Oh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},om=Ul(Oh),Qv=Zn({},Oh,{view:0,detail:0}),Cx=Ul(Qv),Jv,Ty,eg;function Ry(a){a!==eg&&(eg&&a.type==="mousemove"?(Jv=a.screenX-eg.screenX,Ty=a.screenY-eg.screenY):(Jv=0,Ty=0),eg=a)}var sm=Zn({},Qv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:um,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(Ry(a),Jv)},movementY:function(a){return"movementY"in a?a.movementY:Ty}}),r1=Ul(sm),ky=Zn({},sm,{dataTransfer:0}),Ay=Ul(ky),Nx=Zn({},Qv,{relatedTarget:0}),Lh=Ul(Nx),a1=Zn({},Oh,{animationName:0,elapsedTime:0,pseudoElement:0}),i1=Ul(a1),wx=Zn({},Oh,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),_x=Ul(wx),lm=Zn({},Oh,{data:0}),Oy=Ul(lm),DC=Oy,PC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mh={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"};function Mf(a){if(a.key){var o=PC[a.key]||a.key;if(o!=="Unidentified")return o}if(a.type==="keypress"){var h=Ah(a);return h===13?"Enter":String.fromCharCode(h)}return a.type==="keydown"||a.type==="keyup"?Mh[a.keyCode]||"Unidentified":""}var tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(a){var o=this,h=o.nativeEvent;if(h.getModifierState)return h.getModifierState(a);var v=tg[a];return v?!!h[v]:!1}function um(a){return o1}var Ly=Zn({},Qv,{key:Mf,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:um,charCode:function(a){return a.type==="keypress"?Ah(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Ah(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),My=Ul(Ly),cm=Zn({},sm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fm=Ul(cm),Ex=Zn({},Qv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:um}),s1=Ul(Ex),IC=Zn({},Oh,{propertyName:0,elapsedTime:0,pseudoElement:0}),ng=Ul(IC),Tx=Zn({},sm,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),rg=Ul(Tx),fc=[9,13,27,32],l1=229,Rd=gn&&"CompositionEvent"in window,Dh=null;gn&&"documentMode"in document&&(Dh=document.documentMode);var FC=gn&&"TextEvent"in window&&!Dh,Df=gn&&(!Rd||Dh&&Dh>8&&Dh<=11),Ph=32,Rx=String.fromCharCode(Ph);function u1(){pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),pn("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),pn("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Bs=!1;function Co(a){return(a.ctrlKey||a.altKey||a.metaKey)&&!(a.ctrlKey&&a.altKey)}function Yc(a){switch(a){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function No(a,o){return a==="keydown"&&o.keyCode===l1}function Go(a,o){switch(a){case"keyup":return fc.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==l1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ag(a){var o=a.detail;return typeof o=="object"&&"data"in o?o.data:null}function ig(a){return a.locale==="ko"}var dm=!1;function nn(a,o,h,v,x){var A,P;if(Rd?A=Yc(o):dm?Go(o,v)&&(A="onCompositionEnd"):No(o,v)&&(A="onCompositionStart"),!A)return null;Df&&!ig(v)&&(!dm&&A==="onCompositionStart"?dm=yl(x):A==="onCompositionEnd"&&dm&&(P=n1()));var U=jn(h,A);if(U.length>0){var W=new Oy(A,o,null,v,x);if(a.push({event:W,listeners:U}),P)W.data=P;else{var re=ag(v);re!==null&&(W.data=re)}}}function og(a,o){switch(a){case"compositionend":return ag(o);case"keypress":var h=o.which;return h!==Ph?null:(Bs=!0,Rx);case"textInput":var v=o.data;return v===Rx&&Bs?null:v;default:return null}}function Dy(a,o){if(dm){if(a==="compositionend"||!Rd&&Go(a,o)){var h=n1();return wy(),dm=!1,h}return null}switch(a){case"paste":return null;case"keypress":if(!Co(o)){if(o.char&&o.char.length>1)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Df&&!ig(o)?null:o.data;default:return null}}function Pf(a,o,h,v,x){var A;if(FC?A=og(o,v):A=Dy(o,v),!A)return null;var P=jn(h,"onBeforeInput");if(P.length>0){var U=new DC("onBeforeInput","beforeinput",null,v,x);a.push({event:U,listeners:P}),U.data=A}}function Ih(a,o,h,v,x,A,P){nn(a,o,h,v,x),Pf(a,o,h,v,x)}var da={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 to(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!da[a.type]:o==="textarea"}/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function wo(a){if(!gn)return!1;var o="on"+a,h=o in document;if(!h){var v=document.createElement("div");v.setAttribute(o,"return;"),h=typeof v[o]=="function"}return h}function c1(){pn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function hm(a,o,h,v){Dp(v);var x=jn(o,"onChange");if(x.length>0){var A=new om("onChange","change",null,h,v);a.push({event:A,listeners:x})}}var If=null,sg=null;function zC(a){var o=a.nodeName&&a.nodeName.toLowerCase();return o==="select"||o==="input"&&a.type==="file"}function it(a){var o=[];hm(o,sg,a,cd(a)),T0(Ou,o)}function Ou(a){qy(a,0)}function Sl(a){var o=fn(a);if($(o))return a}function Py(a,o){if(a==="change")return o}var Zr=!1;gn&&(Zr=wo("input")&&(!document.documentMode||document.documentMode>9));function Wt(a,o){If=a,sg=o,If.attachEvent("onpropertychange",Iy)}function Ff(){!If||(If.detachEvent("onpropertychange",Iy),If=null,sg=null)}function Iy(a){a.propertyName==="value"&&Sl(sg)&&it(a)}function os(a,o,h){a==="focusin"?(Ff(),Wt(o,h)):a==="focusout"&&Ff()}function f1(a,o){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Sl(sg)}function Fh(a){var o=a.nodeName;return o&&o.toLowerCase()==="input"&&(a.type==="checkbox"||a.type==="radio")}function pm(a,o){if(a==="click")return Sl(o)}function kx(a,o){if(a==="input"||a==="change")return Sl(o)}function Ax(a){var o=a._wrapperState;!o||!o.controlled||a.type!=="number"||Tt(a,"number",a.value)}function Hl(a,o,h,v,x,A,P){var U=h?fn(h):window,W,re;if(zC(U)?W=Py:to(U)?Zr?W=kx:(W=f1,re=os):Fh(U)&&(W=pm),W){var ue=W(o,h);if(ue){hm(a,ue,v,x);return}}re&&re(o,U,h),o==="focusout"&&Ax(U)}function $s(){ht("onMouseEnter",["mouseout","mouseover"]),ht("onMouseLeave",["mouseout","mouseover"]),ht("onPointerEnter",["pointerout","pointerover"]),ht("onPointerLeave",["pointerout","pointerover"])}function Ox(a,o,h,v,x,A,P){var U=o==="mouseover"||o==="pointerover",W=o==="mouseout"||o==="pointerout";if(U&&!Wn(v)){var re=v.relatedTarget||v.fromElement;if(re&&(bt(re)||st(re)))return}if(!(!W&&!U)){var ue;if(x.window===x)ue=x;else{var Te=x.ownerDocument;Te?ue=Te.defaultView||Te.parentWindow:ue=window}var we,je;if(W){var Ge=v.relatedTarget||v.toElement;if(we=h,je=Ge?bt(Ge):null,je!==null){var et=yd(je);(je!==et||je.tag!==w&&je.tag!==T)&&(je=null)}}else we=null,je=h;if(we!==je){var dn=r1,Yn="onMouseLeave",An="onMouseEnter",ta="mouse";(o==="pointerout"||o==="pointerover")&&(dn=fm,Yn="onPointerLeave",An="onPointerEnter",ta="pointer");var Wr=we==null?ue:fn(we),Fe=je==null?ue:fn(je),tt=new dn(Yn,ta+"leave",we,v,x);tt.target=Wr,tt.relatedTarget=Fe;var ze=null,Mt=bt(x);if(Mt===h){var hn=new dn(An,ta+"enter",je,v,x);hn.target=Fe,hn.relatedTarget=Wr,ze=hn}or(a,tt,ze,we,je)}}}function Fy(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var ss=typeof Object.is=="function"?Object.is:Fy;function kd(a,o){if(ss(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var h=Object.keys(a),v=Object.keys(o);if(h.length!==v.length)return!1;for(var x=0;x<h.length;x++){var A=h[x];if(!De.call(o,A)||!ss(a[A],o[A]))return!1}return!0}function d1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function z_(a){for(;a;){if(a.nextSibling)return a.nextSibling;a=a.parentNode}}function BC(a,o){for(var h=d1(a),v=0,x=0;h;){if(h.nodeType===sl){if(x=v+h.textContent.length,v<=o&&x>=o)return{node:h,offset:o-v};v=x}h=d1(z_(h))}}function zy(a){var o=a.ownerDocument,h=o&&o.defaultView||window,v=h.getSelection&&h.getSelection();if(!v||v.rangeCount===0)return null;var x=v.anchorNode,A=v.anchorOffset,P=v.focusNode,U=v.focusOffset;try{x.nodeType,P.nodeType}catch{return null}return h1(a,x,A,P,U)}function h1(a,o,h,v,x){var A=0,P=-1,U=-1,W=0,re=0,ue=a,Te=null;e:for(;;){for(var we=null;ue===o&&(h===0||ue.nodeType===sl)&&(P=A+h),ue===v&&(x===0||ue.nodeType===sl)&&(U=A+x),ue.nodeType===sl&&(A+=ue.nodeValue.length),(we=ue.firstChild)!==null;)Te=ue,ue=we;for(;;){if(ue===a)break e;if(Te===o&&++W===h&&(P=A),Te===v&&++re===x&&(U=A),(we=ue.nextSibling)!==null)break;ue=Te,Te=ue.parentNode}ue=we}return P===-1||U===-1?null:{start:P,end:U}}function Lx(a,o){var h=a.ownerDocument||document,v=h&&h.defaultView||window;if(!!v.getSelection){var x=v.getSelection(),A=a.textContent.length,P=Math.min(o.start,A),U=o.end===void 0?P:Math.min(o.end,A);if(!x.extend&&P>U){var W=U;U=P,P=W}var re=BC(a,P),ue=BC(a,U);if(re&&ue){if(x.rangeCount===1&&x.anchorNode===re.node&&x.anchorOffset===re.offset&&x.focusNode===ue.node&&x.focusOffset===ue.offset)return;var Te=h.createRange();Te.setStart(re.node,re.offset),x.removeAllRanges(),P>U?(x.addRange(Te),x.extend(ue.node,ue.offset)):(Te.setEnd(ue.node,ue.offset),x.addRange(Te))}}}function By(a){return a&&a.nodeType===sl}function $y(a,o){return!a||!o?!1:a===o?!0:By(a)?!1:By(o)?$y(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1}function Mx(a){return a&&a.ownerDocument&&$y(a.ownerDocument.documentElement,a)}function Dx(a){try{return typeof a.contentWindow.location.href=="string"}catch{return!1}}function lg(){for(var a=window,o=X();o instanceof a.HTMLIFrameElement;){if(Dx(o))a=o.contentWindow;else return o;o=X(a.document)}return o}function ug(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function jl(){var a=lg();return{focusedElem:a,selectionRange:ug(a)?Uy(a):null}}function cg(a){var o=lg(),h=a.focusedElem,v=a.selectionRange;if(o!==h&&Mx(h)){v!==null&&ug(h)&&qc(h,v);for(var x=[],A=h;A=A.parentNode;)A.nodeType===ol&&x.push({element:A,left:A.scrollLeft,top:A.scrollTop});typeof h.focus=="function"&&h.focus();for(var P=0;P<x.length;P++){var U=x[P];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}}function Uy(a){var o;return"selectionStart"in a?o={start:a.selectionStart,end:a.selectionEnd}:o=zy(a),o||{start:0,end:0}}function qc(a,o){var h=o.start,v=o.end;v===void 0&&(v=h),"selectionStart"in a?(a.selectionStart=h,a.selectionEnd=Math.min(v,a.value.length)):Lx(a,o)}var lr=gn&&"documentMode"in document&&document.documentMode<=11;function p1(){pn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ki=null,Aa=null,zh=null,Vl=!1;function Hy(a){if("selectionStart"in a&&ug(a))return{start:a.selectionStart,end:a.selectionEnd};var o=a.ownerDocument&&a.ownerDocument.defaultView||window,h=o.getSelection();return{anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}}function m1(a){return a.window===a?a.document:a.nodeType===gu?a:a.ownerDocument}function jy(a,o,h){var v=m1(h);if(!(Vl||ki==null||ki!==X(v))){var x=Hy(ki);if(!zh||!kd(zh,x)){zh=x;var A=jn(Aa,"onSelect");if(A.length>0){var P=new om("onSelect","select",null,o,h);a.push({event:P,listeners:A}),P.target=ki}}}}function Vy(a,o,h,v,x,A,P){var U=h?fn(h):window;switch(o){case"focusin":(to(U)||U.contentEditable==="true")&&(ki=U,Aa=h,zh=null);break;case"focusout":ki=null,Aa=null,zh=null;break;case"mousedown":Vl=!0;break;case"contextmenu":case"mouseup":case"dragend":Vl=!1,jy(a,v,x);break;case"selectionchange":if(lr)break;case"keydown":case"keyup":jy(a,v,x)}}function Bh(a,o){var h={};return h[a.toLowerCase()]=o.toLowerCase(),h["Webkit"+a]="webkit"+o,h["Moz"+a]="moz"+o,h}var Ad={animationend:Bh("Animation","AnimationEnd"),animationiteration:Bh("Animation","AnimationIteration"),animationstart:Bh("Animation","AnimationStart"),transitionend:Bh("Transition","TransitionEnd")},mm={},Lu={};gn&&(Lu=document.createElement("div").style,"AnimationEvent"in window||(delete Ad.animationend.animation,delete Ad.animationiteration.animation,delete Ad.animationstart.animation),"TransitionEvent"in window||delete Ad.transitionend.transition);function Od(a){if(mm[a])return mm[a];if(!Ad[a])return a;var o=Ad[a];for(var h in o)if(o.hasOwnProperty(h)&&h in Lu)return mm[a]=o[h];return a}var $h=Od("animationend"),Oa=Od("animationiteration"),qa=Od("animationstart"),v1=Od("transitionend"),Gy=new Map,Wy=["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"];function Ld(a,o){Gy.set(a,o),pn(o,[a])}function Yy(){for(var a=0;a<Wy.length;a++){var o=Wy[a],h=o.toLowerCase(),v=o[0].toUpperCase()+o.slice(1);Ld(h,"on"+v)}Ld($h,"onAnimationEnd"),Ld(Oa,"onAnimationIteration"),Ld(qa,"onAnimationStart"),Ld("dblclick","onDoubleClick"),Ld("focusin","onFocus"),Ld("focusout","onBlur"),Ld(v1,"onTransitionEnd")}function Px(a,o,h,v,x,A,P){var U=Gy.get(o);if(U!==void 0){var W=om,re=o;switch(o){case"keypress":if(Ah(v)===0)return;case"keydown":case"keyup":W=My;break;case"focusin":re="focus",W=Lh;break;case"focusout":re="blur",W=Lh;break;case"beforeblur":case"afterblur":W=Lh;break;case"click":if(v.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=r1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=s1;break;case $h:case Oa:case qa:W=i1;break;case v1:W=ng;break;case"scroll":W=Cx;break;case"wheel":W=rg;break;case"copy":case"cut":case"paste":W=_x;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=fm;break}var ue=(A&Mp)!==0;{var Te=!ue&&o==="scroll",we=Kc(h,U,v.type,ue,Te);if(we.length>0){var je=new W(U,re,null,v,x);a.push({event:je,listeners:we})}}}}Yy(),$s(),c1(),p1(),u1();function Ix(a,o,h,v,x,A,P){Px(a,o,h,v,x,A);var U=(A&N0)===0;U&&(Ox(a,o,h,v,x),Hl(a,o,h,v,x),Vy(a,o,h,v,x),Ih(a,o,h,v,x))}var Uh=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Hh=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Uh));function vm(a,o,h){var v=a.type||"unknown-event";a.currentTarget=h,Fp(v,o,void 0,a),a.currentTarget=null}function g1(a,o,h){var v;if(h)for(var x=o.length-1;x>=0;x--){var A=o[x],P=A.instance,U=A.currentTarget,W=A.listener;if(P!==v&&a.isPropagationStopped())return;vm(a,W,U),v=P}else for(var re=0;re<o.length;re++){var ue=o[re],Te=ue.instance,we=ue.currentTarget,je=ue.listener;if(Te!==v&&a.isPropagationStopped())return;vm(a,je,we),v=Te}}function qy(a,o){for(var h=(o&Mp)!==0,v=0;v<a.length;v++){var x=a[v],A=x.event,P=x.listeners;g1(A,P,h)}zp()}function b1(a,o,h,v,x){var A=cd(h),P=[];Ix(P,a,v,h,A,o),qy(P,o)}function Or(a,o){Hh.has(a)||l('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var h=!1,v=Pn(o),x=Ir(a,h);v.has(x)||(dg(o,a,C0,h),v.add(x))}function zf(a,o,h){Hh.has(a)&&!o&&l('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var v=0;o&&(v|=Mp),dg(h,a,v,o)}var fg="_reactListening"+Math.random().toString(36).slice(2);function gm(a){if(!a[fg]){a[fg]=!0,ut.forEach(function(h){h!=="selectionchange"&&(Hh.has(h)||zf(h,!1,a),zf(h,!0,a))});var o=a.nodeType===gu?a:a.ownerDocument;o!==null&&(o[fg]||(o[fg]=!0,zf("selectionchange",!1,o)))}}function dg(a,o,h,v,x){var A=MC(a,o,h),P=void 0;ph&&(o==="touchstart"||o==="touchmove"||o==="wheel")&&(P=!0),a=a,v?P!==void 0?Cy(a,o,A,P):xy(a,o,A):P!==void 0?Ny(a,o,A,P):e1(a,o,A)}function Ky(a,o){return a===o||a.nodeType===Qr&&a.parentNode===o}function y1(a,o,h,v,x){var A=v;if((o&Lp)===0&&(o&C0)===0){var P=x;if(v!==null){var U=v;e:for(;;){if(U===null)return;var W=U.tag;if(W===S||W===N){var re=U.stateNode.containerInfo;if(Ky(re,P))break;if(W===N)for(var ue=U.return;ue!==null;){var Te=ue.tag;if(Te===S||Te===N){var we=ue.stateNode.containerInfo;if(Ky(we,P))return}ue=ue.return}for(;re!==null;){var je=bt(re);if(je===null)return;var Ge=je.tag;if(Ge===w||Ge===T){U=A=je;continue e}re=re.parentNode}}U=U.return}}}T0(function(){return b1(a,o,h,A)})}function jh(a,o,h){return{instance:a,listener:o,currentTarget:h}}function Kc(a,o,h,v,x,A){for(var P=o!==null?o+"Capture":null,U=v?P:o,W=[],re=a,ue=null;re!==null;){var Te=re,we=Te.stateNode,je=Te.tag;if(je===w&&we!==null&&(ue=we,U!==null)){var Ge=Qu(re,U);Ge!=null&&W.push(jh(re,Ge,ue))}if(x)break;re=re.return}return W}function jn(a,o){for(var h=o+"Capture",v=[],x=a;x!==null;){var A=x,P=A.stateNode,U=A.tag;if(U===w&&P!==null){var W=P,re=Qu(x,h);re!=null&&v.unshift(jh(x,re,W));var ue=Qu(x,o);ue!=null&&v.push(jh(x,ue,W))}x=x.return}return v}function ls(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==w);return a||null}function Us(a,o){for(var h=a,v=o,x=0,A=h;A;A=ls(A))x++;for(var P=0,U=v;U;U=ls(U))P++;for(;x-P>0;)h=ls(h),x--;for(;P-x>0;)v=ls(v),P--;for(var W=x;W--;){if(h===v||v!==null&&h===v.alternate)return h;h=ls(h),v=ls(v)}return null}function hg(a,o,h,v,x){for(var A=o._reactName,P=[],U=h;U!==null&&U!==v;){var W=U,re=W.alternate,ue=W.stateNode,Te=W.tag;if(re!==null&&re===v)break;if(Te===w&&ue!==null){var we=ue;if(x){var je=Qu(U,A);je!=null&&P.unshift(jh(U,je,we))}else if(!x){var Ge=Qu(U,A);Ge!=null&&P.push(jh(U,Ge,we))}}U=U.return}P.length!==0&&a.push({event:o,listeners:P})}function or(a,o,h,v,x){var A=v&&x?Us(v,x):null;v!==null&&hg(a,o,v,A,!1),x!==null&&h!==null&&hg(a,h,x,A,!0)}function Ir(a,o){return a+"__"+(o?"capture":"bubble")}var Hs=!1,Bf="dangerouslySetInnerHTML",dc="suppressContentEditableWarning",hc="suppressHydrationWarning",S1="autoFocus",Zc="children",Md="style",x1="__html",Zy,C1,bm,Xy,ym,Qy,pg;Zy={dialog:!0,webview:!0},C1=function(a,o){ua(a,o),ty(a,o),Zu(a,o,{registrationNameDependencies:It,possibleRegistrationNames:Qt})},Qy=gn&&!document.documentMode,bm=function(a,o,h){if(!Hs){var v=Gl(h),x=Gl(o);x!==v&&(Hs=!0,l("Prop `%s` did not match. Server: %s Client: %s",a,JSON.stringify(x),JSON.stringify(v)))}},Xy=function(a){if(!Hs){Hs=!0;var o=[];a.forEach(function(h){o.push(h)}),l("Extra attributes from the server: %s",o)}},ym=function(a,o){o===!1?l("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):l("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof o)},pg=function(a,o){var h=a.namespaceURI===Lc?a.ownerDocument.createElement(a.tagName):a.ownerDocument.createElementNS(a.namespaceURI,a.tagName);return h.innerHTML=o,h.innerHTML};var Xc=/\r\n?/g,mg=/\u0000|\uFFFD/g;function Gl(a){wn(a);var o=typeof a=="string"?a:""+a;return o.replace(Xc,`
`).replace(mg,"")}function Dd(a,o,h,v){var x=Gl(o),A=Gl(a);if(A!==x&&(v&&(Hs||(Hs=!0,l('Text content did not match. Server: "%s" Client: "%s"',A,x))),h&&J))throw new Error("Text content does not match server-rendered HTML.")}function N1(a){return a.nodeType===gu?a:a.ownerDocument}function Vh(){}function Sm(a){a.onclick=Vh}function Wo(a,o,h,v,x){for(var A in v)if(!!v.hasOwnProperty(A)){var P=v[A];if(A===Md)P&&Object.freeze(P),Ee(o,P);else if(A===Bf){var U=P?P[x1]:void 0;U!=null&&y0(o,U)}else if(A===Zc)if(typeof P=="string"){var W=a!=="textarea"||P!=="";W&&Rp(o,P)}else typeof P=="number"&&Rp(o,""+P);else A===dc||A===hc||A===S1||(It.hasOwnProperty(A)?P!=null&&(typeof P!="function"&&ym(A,P),A==="onScroll"&&Or("scroll",o)):P!=null&&Mo(o,A,P,x))}}function Ns(a,o,h,v){for(var x=0;x<o.length;x+=2){var A=o[x],P=o[x+1];A===Md?Ee(a,P):A===Bf?y0(a,P):A===Zc?Rp(a,P):Mo(a,A,P,v)}}function $C(a,o,h,v){var x,A=N1(h),P,U=v;if(U===Lc&&(U=Nv(a)),U===Lc){if(x=ul(a,o),!x&&a!==a.toLowerCase()&&l("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",a),a==="script"){var W=A.createElement("div");W.innerHTML="<script><\/script>";var re=W.firstChild;P=W.removeChild(re)}else if(typeof o.is=="string")P=A.createElement(a,{is:o.is});else if(P=A.createElement(a),a==="select"){var ue=P;o.multiple?ue.multiple=!0:o.size&&(ue.size=o.size)}}else P=A.createElementNS(U,a);return U===Lc&&!x&&Object.prototype.toString.call(P)==="[object HTMLUnknownElement]"&&!De.call(Zy,a)&&(Zy[a]=!0,l("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",a)),P}function Fx(a,o){return N1(o).createTextNode(a)}function Jy(a,o,h,v){var x=ul(o,h);C1(o,h);var A;switch(o){case"dialog":Or("cancel",a),Or("close",a),A=h;break;case"iframe":case"object":case"embed":Or("load",a),A=h;break;case"video":case"audio":for(var P=0;P<Uh.length;P++)Or(Uh[P],a);A=h;break;case"source":Or("error",a),A=h;break;case"img":case"image":case"link":Or("error",a),Or("load",a),A=h;break;case"details":Or("toggle",a),A=h;break;case"input":j(a,h),A=k(a,h),Or("invalid",a);break;case"option":mn(a,h),A=h;break;case"select":Oc(a,h),A=il(a,h),Or("invalid",a);break;case"textarea":Kb(a,h),A=qb(a,h),Or("invalid",a);break;default:A=h}switch(sa(o,A),Wo(o,a,v,A,x),o){case"input":mo(a),Ne(a,h,!1);break;case"textarea":mo(a),dh(a);break;case"option":Gn(a,h);break;case"select":Sv(a,h);break;default:typeof A.onClick=="function"&&Sm(a);break}}function e2(a,o,h,v,x){C1(o,v);var A=null,P,U;switch(o){case"input":P=k(a,h),U=k(a,v),A=[];break;case"select":P=il(a,h),U=il(a,v),A=[];break;case"textarea":P=qb(a,h),U=qb(a,v),A=[];break;default:P=h,U=v,typeof P.onClick!="function"&&typeof U.onClick=="function"&&Sm(a);break}sa(o,U);var W,re,ue=null;for(W in P)if(!(U.hasOwnProperty(W)||!P.hasOwnProperty(W)||P[W]==null))if(W===Md){var Te=P[W];for(re in Te)Te.hasOwnProperty(re)&&(ue||(ue={}),ue[re]="")}else W===Bf||W===Zc||W===dc||W===hc||W===S1||(It.hasOwnProperty(W)?A||(A=[]):(A=A||[]).push(W,null));for(W in U){var we=U[W],je=P?.[W];if(!(!U.hasOwnProperty(W)||we===je||we==null&&je==null))if(W===Md)if(we&&Object.freeze(we),je){for(re in je)je.hasOwnProperty(re)&&(!we||!we.hasOwnProperty(re))&&(ue||(ue={}),ue[re]="");for(re in we)we.hasOwnProperty(re)&&je[re]!==we[re]&&(ue||(ue={}),ue[re]=we[re])}else ue||(A||(A=[]),A.push(W,ue)),ue=we;else if(W===Bf){var Ge=we?we[x1]:void 0,et=je?je[x1]:void 0;Ge!=null&&et!==Ge&&(A=A||[]).push(W,Ge)}else W===Zc?(typeof we=="string"||typeof we=="number")&&(A=A||[]).push(W,""+we):W===dc||W===hc||(It.hasOwnProperty(W)?(we!=null&&(typeof we!="function"&&ym(W,we),W==="onScroll"&&Or("scroll",a)),!A&&je!==we&&(A=[])):(A=A||[]).push(W,we))}return ue&&(ln(ue,U[Md]),(A=A||[]).push(Md,ue)),A}function UC(a,o,h,v,x){h==="input"&&x.type==="radio"&&x.name!=null&&ae(a,x);var A=ul(h,v),P=ul(h,x);switch(Ns(a,o,A,P),h){case"input":ce(a,x);break;case"textarea":xv(a,x);break;case"select":Yb(a,x);break}}function HC(a){{var o=a.toLowerCase();return Tv.hasOwnProperty(o)&&Tv[o]||null}}function zx(a,o,h,v,x,A,P){var U,W;switch(U=ul(o,h),C1(o,h),o){case"dialog":Or("cancel",a),Or("close",a);break;case"iframe":case"object":case"embed":Or("load",a);break;case"video":case"audio":for(var re=0;re<Uh.length;re++)Or(Uh[re],a);break;case"source":Or("error",a);break;case"img":case"image":case"link":Or("error",a),Or("load",a);break;case"details":Or("toggle",a);break;case"input":j(a,h),Or("invalid",a);break;case"option":mn(a,h);break;case"select":Oc(a,h),Or("invalid",a);break;case"textarea":Kb(a,h),Or("invalid",a);break}sa(o,h);{W=new Set;for(var ue=a.attributes,Te=0;Te<ue.length;Te++){var we=ue[Te].name.toLowerCase();switch(we){case"value":break;case"checked":break;case"selected":break;default:W.add(ue[Te].name)}}}var je=null;for(var Ge in h)if(!!h.hasOwnProperty(Ge)){var et=h[Ge];if(Ge===Zc)typeof et=="string"?a.textContent!==et&&(h[hc]!==!0&&Dd(a.textContent,et,A,P),je=[Zc,et]):typeof et=="number"&&a.textContent!==""+et&&(h[hc]!==!0&&Dd(a.textContent,et,A,P),je=[Zc,""+et]);else if(It.hasOwnProperty(Ge))et!=null&&(typeof et!="function"&&ym(Ge,et),Ge==="onScroll"&&Or("scroll",a));else if(P&&!0&&typeof U=="boolean"){var dn=void 0,Yn=U&&Pe?null:Un(Ge);if(h[hc]!==!0){if(!(Ge===dc||Ge===hc||Ge==="value"||Ge==="checked"||Ge==="selected")){if(Ge===Bf){var An=a.innerHTML,ta=et?et[x1]:void 0;if(ta!=null){var Wr=pg(a,ta);Wr!==An&&bm(Ge,An,Wr)}}else if(Ge===Md){if(W.delete(Ge),Qy){var Fe=ll(et);dn=a.getAttribute("style"),Fe!==dn&&bm(Ge,dn,Fe)}}else if(U&&!Pe)W.delete(Ge.toLowerCase()),dn=ti(a,Ge,et),et!==dn&&bm(Ge,dn,et);else if(!gt(Ge,Yn,U)&&!kn(Ge,et,Yn,U)){var tt=!1;if(Yn!==null)W.delete(Yn.attributeName),dn=yr(a,Ge,et,Yn);else{var ze=v;if(ze===Lc&&(ze=Nv(o)),ze===Lc)W.delete(Ge.toLowerCase());else{var Mt=HC(Ge);Mt!==null&&Mt!==Ge&&(tt=!0,W.delete(Mt)),W.delete(Ge)}dn=ti(a,Ge,et)}var hn=Pe;!hn&&et!==dn&&!tt&&bm(Ge,dn,et)}}}}}switch(P&&W.size>0&&h[hc]!==!0&&Xy(W),o){case"input":mo(a),Ne(a,h,!0);break;case"textarea":mo(a),dh(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&Sm(a);break}return je}function t2(a,o,h){var v=a.nodeValue!==o;return v}function n2(a,o){{if(Hs)return;Hs=!0,l("Did not expect server HTML to contain a <%s> in <%s>.",o.nodeName.toLowerCase(),a.nodeName.toLowerCase())}}function r2(a,o){{if(Hs)return;Hs=!0,l('Did not expect server HTML to contain the text node "%s" in <%s>.',o.nodeValue,a.nodeName.toLowerCase())}}function Gh(a,o,h){{if(Hs)return;Hs=!0,l("Expected server HTML to contain a matching <%s> in <%s>.",o,a.nodeName.toLowerCase())}}function xl(a,o){{if(o===""||Hs)return;Hs=!0,l('Expected server HTML to contain a matching text node for "%s" in <%s>.',o,a.nodeName.toLowerCase())}}function w1(a,o,h){switch(o){case"input":mt(a,h);return;case"textarea":xC(a,h);return;case"select":SC(a,h);return}}var $f=function(){},Wh=function(){};{var a2=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],_1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Mu=_1.concat(["button"]),i2=["dd","dt","li","option","optgroup","p","rp","rt"],vg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Wh=function(a,o){var h=Zn({},a||vg),v={tag:o};return _1.indexOf(o)!==-1&&(h.aTagInScope=null,h.buttonTagInScope=null,h.nobrTagInScope=null),Mu.indexOf(o)!==-1&&(h.pTagInButtonScope=null),a2.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(h.listItemTagAutoclosing=null,h.dlItemTagAutoclosing=null),h.current=v,o==="form"&&(h.formTag=v),o==="a"&&(h.aTagInScope=v),o==="button"&&(h.buttonTagInScope=v),o==="nobr"&&(h.nobrTagInScope=v),o==="p"&&(h.pTagInButtonScope=v),o==="li"&&(h.listItemTagAutoclosing=v),(o==="dd"||o==="dt")&&(h.dlItemTagAutoclosing=v),h};var js=function(a,o){switch(o){case"select":return a==="option"||a==="optgroup"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return i2.indexOf(o)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null}return!0},jC=function(a,o){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null},o2={};$f=function(a,o,h){h=h||vg;var v=h.current,x=v&&v.tag;o!=null&&(a!=null&&l("validateDOMNesting: when childText is passed, childTag should be null"),a="#text");var A=js(a,x)?null:v,P=A?null:jC(a,h),U=A||P;if(!!U){var W=U.tag,re=!!A+"|"+a+"|"+W;if(!o2[re]){o2[re]=!0;var ue=a,Te="";if(a==="#text"?/\S/.test(o)?ue="Text nodes":(ue="Whitespace text nodes",Te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):ue="<"+a+">",A){var we="";W==="table"&&a==="tr"&&(we+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),l("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",ue,W,Te,we)}else l("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",ue,W)}}}}var xm="suppressHydrationWarning",Cm="$",gg="/$",bg="$?",yg="$!",VC="style",E1=null,Sg=null;function Bx(a){var o,h,v=a.nodeType;switch(v){case gu:case od:{o=v===gu?"#document":"#fragment";var x=a.documentElement;h=x?x.namespaceURI:b0(null,"");break}default:{var A=v===Qr?a.parentNode:a,P=A.namespaceURI||null;o=A.tagName,h=b0(P,o);break}}{var U=o.toLowerCase(),W=Wh(null,U);return{namespace:h,ancestorInfo:W}}}function s2(a,o,h){{var v=a,x=b0(v.namespace,o),A=Wh(v.ancestorInfo,o);return{namespace:x,ancestorInfo:A}}}function GC(a){return a}function WC(a){E1=yy(),Sg=jl();var o=null;return Yv(!1),o}function $x(a){cg(Sg),Yv(E1),E1=null,Sg=null}function YC(a,o,h,v,x){var A;{var P=v;if($f(a,null,P.ancestorInfo),typeof o.children=="string"||typeof o.children=="number"){var U=""+o.children,W=Wh(P.ancestorInfo,a);$f(null,U,W)}A=P.namespace}var re=$C(a,o,h,A);return fe(x,re),xr(re,o),re}function qC(a,o){a.appendChild(o)}function KC(a,o,h,v,x){switch(Jy(a,o,h,v),o){case"button":case"input":case"select":case"textarea":return!!h.autoFocus;case"img":return!0;default:return!1}}function ZC(a,o,h,v,x,A){{var P=A;if(typeof v.children!=typeof h.children&&(typeof v.children=="string"||typeof v.children=="number")){var U=""+v.children,W=Wh(P.ancestorInfo,o);$f(null,U,W)}}return e2(a,o,h,v)}function l2(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function u2(a,o,h,v){{var x=h;$f(null,a,x.ancestorInfo)}var A=Fx(a,o);return fe(v,A),A}function c2(){var a=window.event;return a===void 0?fa:Sy(a.type)}var xg=typeof setTimeout=="function"?setTimeout:void 0,XC=typeof clearTimeout=="function"?clearTimeout:void 0,f2=-1,Ux=typeof Promise=="function"?Promise:void 0,Hx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ux<"u"?function(a){return Ux.resolve(null).then(a).catch(d2)}:xg;function d2(a){setTimeout(function(){throw a})}function QC(a,o,h,v){switch(o){case"button":case"input":case"select":case"textarea":h.autoFocus&&a.focus();return;case"img":{h.src&&(a.src=h.src);return}}}function Cg(a,o,h,v,x,A){UC(a,o,h,v,x),xr(a,x)}function T1(a){Rp(a,"")}function jx(a,o,h){a.nodeValue=h}function JC(a,o){a.appendChild(o)}function R1(a,o){var h;a.nodeType===Qr?(h=a.parentNode,h.insertBefore(o,a)):(h=a,h.appendChild(o));var v=a._reactRootContainer;v==null&&h.onclick===null&&Sm(h)}function e4(a,o,h){a.insertBefore(o,h)}function h2(a,o,h){a.nodeType===Qr?a.parentNode.insertBefore(o,h):a.insertBefore(o,h)}function t4(a,o){a.removeChild(o)}function Vx(a,o){a.nodeType===Qr?a.parentNode.removeChild(o):a.removeChild(o)}function p2(a,o){var h=o,v=0;do{var x=h.nextSibling;if(a.removeChild(h),x&&x.nodeType===Qr){var A=x.data;if(A===gg)if(v===0){a.removeChild(x),am(o);return}else v--;else(A===Cm||A===bg||A===yg)&&v++}h=x}while(h);am(o)}function Cl(a,o){a.nodeType===Qr?p2(a.parentNode,o):a.nodeType===ol&&p2(a,o),am(a)}function m2(a){a=a;var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}function n4(a){a.nodeValue=""}function Gx(a,o){a=a;var h=o[VC],v=h!=null&&h.hasOwnProperty("display")?h.display:null;a.style.display=Xb("display",v)}function r4(a,o){a.nodeValue=o}function v2(a){a.nodeType===ol?a.textContent="":a.nodeType===gu&&a.documentElement&&a.removeChild(a.documentElement)}function k1(a,o,h){return a.nodeType!==ol||o.toLowerCase()!==a.nodeName.toLowerCase()?null:a}function a4(a,o){return o===""||a.nodeType!==sl?null:a}function A1(a){return a.nodeType!==Qr?null:a}function Wx(a){return a.data===bg}function O1(a){return a.data===yg}function i4(a){var o=a.nextSibling&&a.nextSibling.dataset,h,v,x;return o&&(h=o.dgst,v=o.msg,x=o.stck),{message:v,digest:h,stack:x}}function Ng(a,o){a._reactRetry=o}function Pd(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===ol||o===sl)break;if(o===Qr){var h=a.data;if(h===Cm||h===yg||h===bg)break;if(h===gg)return null}}return a}function Wl(a){return Pd(a.nextSibling)}function o4(a){return Pd(a.firstChild)}function g2(a){return Pd(a.firstChild)}function b2(a){return Pd(a.nextSibling)}function L1(a,o,h,v,x,A,P){fe(A,a),xr(a,h);var U;{var W=x;U=W.namespace}var re=(A.mode&Pr)!==Fn;return zx(a,o,h,U,v,re,P)}function Qc(a,o,h,v){return fe(h,a),h.mode&Pr,t2(a,o)}function Yx(a,o){fe(o,a)}function qx(a){for(var o=a.nextSibling,h=0;o;){if(o.nodeType===Qr){var v=o.data;if(v===gg){if(h===0)return Wl(o);h--}else(v===Cm||v===yg||v===bg)&&h++}o=o.nextSibling}return null}function Nm(a){for(var o=a.previousSibling,h=0;o;){if(o.nodeType===Qr){var v=o.data;if(v===Cm||v===yg||v===bg){if(h===0)return o;h--}else v===gg&&h++}o=o.previousSibling}return null}function wg(a){am(a)}function M1(a){am(a)}function D1(a){return a!=="head"&&a!=="body"}function Kx(a,o,h,v){var x=!0;Dd(o.nodeValue,h,v,x)}function _g(a,o,h,v,x,A){if(o[xm]!==!0){var P=!0;Dd(v.nodeValue,x,A,P)}}function us(a,o){o.nodeType===ol?n2(a,o):o.nodeType===Qr||r2(a,o)}function s4(a,o){{var h=a.parentNode;h!==null&&(o.nodeType===ol?n2(h,o):o.nodeType===Qr||r2(h,o))}}function Zx(a,o,h,v,x){(x||o[xm]!==!0)&&(v.nodeType===ol?n2(h,v):v.nodeType===Qr||r2(h,v))}function l4(a,o,h){Gh(a,o)}function Xx(a,o){xl(a,o)}function Qx(a,o,h){{var v=a.parentNode;v!==null&&Gh(v,o)}}function Jx(a,o){{var h=a.parentNode;h!==null&&xl(h,o)}}function y2(a,o,h,v,x,A){(A||o[xm]!==!0)&&Gh(h,v)}function u4(a,o,h,v,x){(x||o[xm]!==!0)&&xl(h,v)}function Eg(a){l("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",a.nodeName.toLowerCase())}function P1(a){gm(a)}var wm=Math.random().toString(36).slice(2),p="__reactFiber$"+wm,g="__reactProps$"+wm,R="__reactContainer$"+wm,I="__reactEvents$"+wm,Y="__reactListeners$"+wm,te="__reactHandles$"+wm;function me(a){delete a[p],delete a[g],delete a[I],delete a[Y],delete a[te]}function fe(a,o){o[p]=a}function Re(a,o){o[R]=a}function at(a){a[R]=null}function st(a){return!!a[R]}function bt(a){var o=a[p];if(o)return o;for(var h=a.parentNode;h;){if(o=h[R]||h[p],o){var v=o.alternate;if(o.child!==null||v!==null&&v.child!==null)for(var x=Nm(a);x!==null;){var A=x[p];if(A)return A;x=Nm(x)}return o}a=h,h=a.parentNode}return null}function jt(a){var o=a[p]||a[R];return o&&(o.tag===w||o.tag===T||o.tag===G||o.tag===S)?o:null}function fn(a){if(a.tag===w||a.tag===T)return a.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Vn(a){return a[g]||null}function xr(a,o){a[g]=o}function Pn(a){var o=a[I];return o===void 0&&(o=a[I]=new Set),o}var Er={},Fr=n.ReactDebugCurrentFrame;function ws(a){if(a){var o=a._owner,h=ho(a.type,a._source,o?o.type:null);Fr.setExtraStackFrame(h)}else Fr.setExtraStackFrame(null)}function Ka(a,o,h,v,x){{var A=Function.call.bind(De);for(var P in a)if(A(a,P)){var U=void 0;try{if(typeof a[P]!="function"){var W=Error((v||"React class")+": "+h+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}U=a[P](o,P,v,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){U=re}U&&!(U instanceof Error)&&(ws(x),l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",h,P,typeof U),ws(null)),U instanceof Error&&!(U.message in Er)&&(Er[U.message]=!0,ws(x),l("Failed %s type: %s",h,U.message),ws(null))}}}var Vs=[],si;si=[];var ya=-1;function bi(a){return{current:a}}function cs(a,o){if(ya<0){l("Unexpected pop.");return}o!==si[ya]&&l("Unexpected Fiber popped."),a.current=Vs[ya],Vs[ya]=null,si[ya]=null,ya--}function Nl(a,o,h){ya++,Vs[ya]=a.current,si[ya]=h,a.current=o}var c4;c4={};var pc={};Object.freeze(pc);var Id=bi(pc),Fd=bi(!1),e5=pc;function I1(a,o,h){return h&&zd(o)?e5:Id.current}function B_(a,o,h){{var v=a.stateNode;v.__reactInternalMemoizedUnmaskedChildContext=o,v.__reactInternalMemoizedMaskedChildContext=h}}function Tg(a,o){{var h=a.type,v=h.contextTypes;if(!v)return pc;var x=a.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===o)return x.__reactInternalMemoizedMaskedChildContext;var A={};for(var P in v)A[P]=o[P];{var U=Xn(a)||"Unknown";Ka(v,A,"context",U)}return x&&B_(a,o,A),A}}function S2(){return Fd.current}function zd(a){{var o=a.childContextTypes;return o!=null}}function F1(a){cs(Fd,a),cs(Id,a)}function x2(a){cs(Fd,a),cs(Id,a)}function _s(a,o,h){{if(Id.current!==pc)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Nl(Id,o,a),Nl(Fd,h,a)}}function Jc(a,o,h){{var v=a.stateNode,x=o.childContextTypes;if(typeof v.getChildContext!="function"){{var A=Xn(a)||"Unknown";c4[A]||(c4[A]=!0,l("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",A,A))}return h}var P=v.getChildContext();for(var U in P)if(!(U in x))throw new Error((Xn(a)||"Unknown")+'.getChildContext(): key "'+U+'" is not defined in childContextTypes.');{var W=Xn(a)||"Unknown";Ka(x,P,"child context",W)}return Zn({},h,P)}}function t5(a){{var o=a.stateNode,h=o&&o.__reactInternalMemoizedMergedChildContext||pc;return e5=Id.current,Nl(Id,h,a),Nl(Fd,Fd.current,a),!0}}function Uf(a,o,h){{var v=a.stateNode;if(!v)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(h){var x=Jc(a,o,e5);v.__reactInternalMemoizedMergedChildContext=x,cs(Fd,a),cs(Id,a),Nl(Id,x,a),Nl(Fd,h,a)}else cs(Fd,a),Nl(Fd,h,a)}}function f4(a){{if(!Iv(a)||a.tag!==m)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var o=a;do{switch(o.tag){case S:return o.stateNode.context;case m:{var h=o.type;if(zd(h))return o.stateNode.__reactInternalMemoizedMergedChildContext;break}}o=o.return}while(o!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var _m=0,n5=1,Bd=null,d4=!1,mc=!1;function h4(a){Bd===null?Bd=[a]:Bd.push(a)}function $d(a){d4=!0,h4(a)}function $_(){d4&&Yh()}function Yh(){if(!mc&&Bd!==null){mc=!0;var a=0,o=zl();try{var h=!0,v=Bd;for(xo(So);a<v.length;a++){var x=v[a];do x=x(h);while(x!==null)}Bd=null,d4=!1}catch(A){throw Bd!==null&&(Bd=Bd.slice(a+1)),rs($p,Yh),A}finally{xo(o),mc=!1}}return null}var Em=[],z1=0,C2=null,r5=0,vc=[],ef=0,Rg=null,qh=1,Kh="";function L7(a){return Ud(),(a.flags&vd)!==Dn}function M7(a){return Ud(),r5}function D7(){var a=Kh,o=qh,h=o&~P7(o);return h.toString(32)+a}function kg(a,o){Ud(),Em[z1++]=r5,Em[z1++]=C2,C2=a,r5=o}function U_(a,o,h){Ud(),vc[ef++]=qh,vc[ef++]=Kh,vc[ef++]=Rg,Rg=a;var v=qh,x=Kh,A=a5(v)-1,P=v&~(1<<A),U=h+1,W=a5(o)+A;if(W>30){var re=A-A%5,ue=(1<<re)-1,Te=(P&ue).toString(32),we=P>>re,je=A-re,Ge=a5(o)+je,et=U<<je,dn=et|we,Yn=Te+x;qh=1<<Ge|dn,Kh=Yn}else{var An=U<<A,ta=An|P,Wr=x;qh=1<<W|ta,Kh=Wr}}function p4(a){Ud();var o=a.return;if(o!==null){var h=1,v=0;kg(a,h),U_(a,h,v)}}function a5(a){return 32-I0(a)}function P7(a){return 1<<a5(a)-1}function m4(a){for(;a===C2;)C2=Em[--z1],Em[z1]=null,r5=Em[--z1],Em[z1]=null;for(;a===Rg;)Rg=vc[--ef],vc[ef]=null,Kh=vc[--ef],vc[ef]=null,qh=vc[--ef],vc[ef]=null}function I7(){return Ud(),Rg!==null?{id:qh,overflow:Kh}:null}function F7(a,o){Ud(),vc[ef++]=qh,vc[ef++]=Kh,vc[ef++]=Rg,qh=o.id,Kh=o.overflow,Rg=a}function Ud(){zr()||l("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Yo=null,Yl=null,Du=!1,Hd=!1,tf=null;function z7(){Du&&l("We should not be hydrating here. This is a bug in React. Please file a bug.")}function H_(){Hd=!0}function B7(){return Hd}function $7(a){var o=a.stateNode.containerInfo;return Yl=g2(o),Yo=a,Du=!0,tf=null,Hd=!1,!0}function U7(a,o,h){return Yl=b2(o),Yo=a,Du=!0,tf=null,Hd=!1,h!==null&&F7(a,h),!0}function i5(a,o){switch(a.tag){case S:{us(a.stateNode.containerInfo,o);break}case w:{var h=(a.mode&Pr)!==Fn;Zx(a.type,a.memoizedProps,a.stateNode,o,h);break}case G:{var v=a.memoizedState;v.dehydrated!==null&&s4(v.dehydrated,o);break}}}function o5(a,o){i5(a,o);var h=LJ();h.stateNode=o,h.return=a;var v=a.deletions;v===null?(a.deletions=[h],a.flags|=mh):v.push(h)}function N2(a,o){{if(Hd)return;switch(a.tag){case S:{var h=a.stateNode.containerInfo;switch(o.tag){case w:var v=o.type;o.pendingProps,l4(h,v);break;case T:var x=o.pendingProps;Xx(h,x);break}break}case w:{var A=a.type,P=a.memoizedProps,U=a.stateNode;switch(o.tag){case w:{var W=o.type,re=o.pendingProps,ue=(a.mode&Pr)!==Fn;y2(A,P,U,W,re,ue);break}case T:{var Te=o.pendingProps,we=(a.mode&Pr)!==Fn;u4(A,P,U,Te,we);break}}break}case G:{var je=a.memoizedState,Ge=je.dehydrated;if(Ge!==null)switch(o.tag){case w:var et=o.type;o.pendingProps,Qx(Ge,et);break;case T:var dn=o.pendingProps;Jx(Ge,dn);break}break}default:return}}}function v4(a,o){o.flags=o.flags&~Tf|mi,N2(a,o)}function j_(a,o){switch(a.tag){case w:{var h=a.type;a.pendingProps;var v=k1(o,h);return v!==null?(a.stateNode=v,Yo=a,Yl=o4(v),!0):!1}case T:{var x=a.pendingProps,A=a4(o,x);return A!==null?(a.stateNode=A,Yo=a,Yl=null,!0):!1}case G:{var P=A1(o);if(P!==null){var U={dehydrated:P,treeContext:I7(),retryLane:Fl};a.memoizedState=U;var W=MJ(P);return W.return=a,a.child=W,Yo=a,Yl=null,!0}return!1}default:return!1}}function B1(a){return(a.mode&Pr)!==Fn&&(a.flags&Hr)===Dn}function g4(a){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function b4(a){if(!!Du){var o=Yl;if(!o){B1(a)&&(N2(Yo,a),g4()),v4(Yo,a),Du=!1,Yo=a;return}var h=o;if(!j_(a,o)){B1(a)&&(N2(Yo,a),g4()),o=Wl(h);var v=Yo;if(!o||!j_(a,o)){v4(Yo,a),Du=!1,Yo=a;return}o5(v,h)}}}function H7(a,o,h){var v=a.stateNode,x=!Hd,A=L1(v,a.type,a.memoizedProps,o,h,a,x);return a.updateQueue=A,A!==null}function s5(a){var o=a.stateNode,h=a.memoizedProps,v=Qc(o,h,a);if(v){var x=Yo;if(x!==null)switch(x.tag){case S:{var A=x.stateNode.containerInfo,P=(x.mode&Pr)!==Fn;Kx(A,o,h,P);break}case w:{var U=x.type,W=x.memoizedProps,re=x.stateNode,ue=(x.mode&Pr)!==Fn;_g(U,W,re,o,h,ue);break}}}return v}function j7(a){var o=a.memoizedState,h=o!==null?o.dehydrated:null;if(!h)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Yx(h,a)}function V7(a){var o=a.memoizedState,h=o!==null?o.dehydrated:null;if(!h)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return qx(h)}function V_(a){for(var o=a.return;o!==null&&o.tag!==w&&o.tag!==S&&o.tag!==G;)o=o.return;Yo=o}function l5(a){if(a!==Yo)return!1;if(!Du)return V_(a),Du=!0,!1;if(a.tag!==S&&(a.tag!==w||D1(a.type)&&!l2(a.type,a.memoizedProps))){var o=Yl;if(o)if(B1(a))W_(a),g4();else for(;o;)o5(a,o),o=Wl(o)}return V_(a),a.tag===G?Yl=V7(a):Yl=Yo?Wl(a.stateNode):null,!0}function G_(){return Du&&Yl!==null}function W_(a){for(var o=Yl;o;)i5(a,o),o=Wl(o)}function Tm(){Yo=null,Yl=null,Du=!1,Hd=!1}function u5(){tf!==null&&(zP(tf),tf=null)}function zr(){return Du}function gc(a){tf===null?tf=[a]:tf.push(a)}var qo=n.ReactCurrentBatchConfig,y4=null;function Gs(){return qo.transition}var no={recordUnsafeLifecycleWarnings:function(a,o){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(a,o){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Zh=function(a){for(var o=null,h=a;h!==null;)h.mode&Ii&&(o=h),h=h.return;return o},Hf=function(a){var o=[];return a.forEach(function(h){o.push(h)}),o.sort().join(", ")},jf=[],Rm=[],Xh=[],$1=[],Ag=[],Cr=[],_o=new Set;no.recordUnsafeLifecycleWarnings=function(a,o){_o.has(a.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&jf.push(a),a.mode&Ii&&typeof o.UNSAFE_componentWillMount=="function"&&Rm.push(a),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xh.push(a),a.mode&Ii&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&$1.push(a),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ag.push(a),a.mode&Ii&&typeof o.UNSAFE_componentWillUpdate=="function"&&Cr.push(a))},no.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;jf.length>0&&(jf.forEach(function(we){a.add(Xn(we)||"Component"),_o.add(we.type)}),jf=[]);var o=new Set;Rm.length>0&&(Rm.forEach(function(we){o.add(Xn(we)||"Component"),_o.add(we.type)}),Rm=[]);var h=new Set;Xh.length>0&&(Xh.forEach(function(we){h.add(Xn(we)||"Component"),_o.add(we.type)}),Xh=[]);var v=new Set;$1.length>0&&($1.forEach(function(we){v.add(Xn(we)||"Component"),_o.add(we.type)}),$1=[]);var x=new Set;Ag.length>0&&(Ag.forEach(function(we){x.add(Xn(we)||"Component"),_o.add(we.type)}),Ag=[]);var A=new Set;if(Cr.length>0&&(Cr.forEach(function(we){A.add(Xn(we)||"Component"),_o.add(we.type)}),Cr=[]),o.size>0){var P=Hf(o);l(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,P)}if(v.size>0){var U=Hf(v);l(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,U)}if(A.size>0){var W=Hf(A);l(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,W)}if(a.size>0){var re=Hf(a);s(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,re)}if(h.size>0){var ue=Hf(h);s(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,ue)}if(x.size>0){var Te=Hf(x);s(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,Te)}};var li=new Map,Ko=new Set;no.recordLegacyContextWarning=function(a,o){var h=Zh(a);if(h===null){l("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Ko.has(a.type)){var v=li.get(h);(a.type.contextTypes!=null||a.type.childContextTypes!=null||o!==null&&typeof o.getChildContext=="function")&&(v===void 0&&(v=[],li.set(h,v)),v.push(a))}},no.flushLegacyContextWarning=function(){li.forEach(function(a,o){if(a.length!==0){var h=a[0],v=new Set;a.forEach(function(A){v.add(Xn(A)||"Component"),Ko.add(A.type)});var x=Hf(v);try{oa(h),l(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,x)}finally{ga()}}})},no.discardPendingWarnings=function(){jf=[],Rm=[],Xh=[],$1=[],Ag=[],Cr=[],li=new Map}}function Zo(a,o){if(a&&a.defaultProps){var h=Zn({},o),v=a.defaultProps;for(var x in v)h[x]===void 0&&(h[x]=v[x]);return h}return o}var w2=bi(null),Eo;Eo={};var km=null,Qh=null,Og=null,Lg=!1;function Am(){km=null,Qh=null,Og=null,Lg=!1}function ql(){Lg=!0}function c5(){Lg=!1}function S4(a,o,h){Nl(w2,o._currentValue,a),o._currentValue=h,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==Eo&&l("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=Eo}function f5(a,o){var h=w2.current;cs(w2,o),a._currentValue=h}function x4(a,o,h){for(var v=a;v!==null;){var x=v.alternate;if(Nd(v.childLanes,o)?x!==null&&!Nd(x.childLanes,o)&&(x.childLanes=zn(x.childLanes,o)):(v.childLanes=zn(v.childLanes,o),x!==null&&(x.childLanes=zn(x.childLanes,o))),v===h)break;v=v.return}v!==h&&l("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Jh(a,o,h){U1(a,o,h)}function U1(a,o,h){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var x=void 0,A=v.dependencies;if(A!==null){x=v.child;for(var P=A.firstContext;P!==null;){if(P.context===o){if(v.tag===m){var U=Vv(h),W=nf(ca,U);W.tag=Pg;var re=v.updateQueue;if(re!==null){var ue=re.shared,Te=ue.pending;Te===null?W.next=W:(W.next=Te.next,Te.next=W),ue.pending=W}}v.lanes=zn(v.lanes,h);var we=v.alternate;we!==null&&(we.lanes=zn(we.lanes,h)),x4(v.return,h,a),A.lanes=zn(A.lanes,h);break}P=P.next}}else if(v.tag===F)x=v.type===a.type?null:v.child;else if(v.tag===le){var je=v.return;if(je===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");je.lanes=zn(je.lanes,h);var Ge=je.alternate;Ge!==null&&(Ge.lanes=zn(Ge.lanes,h)),x4(je,h,a),x=v.sibling}else x=v.child;if(x!==null)x.return=v;else for(x=v;x!==null;){if(x===a){x=null;break}var et=x.sibling;if(et!==null){et.return=x.return,x=et;break}x=x.return}v=x}}function Mg(a,o){km=a,Qh=null,Og=null;var h=a.dependencies;if(h!==null){var v=h.firstContext;v!==null&&(Is(h.lanes,o)&&oN(),h.firstContext=null)}}function zi(a){Lg&&l("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var o=a._currentValue;if(Og!==a){var h={context:a,memoizedValue:o,next:null};if(Qh===null){if(km===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Qh=h,km.dependencies={lanes:vt,firstContext:h}}else Qh=Qh.next=h}return o}var ep=null;function Om(a){ep===null?ep=[a]:ep.push(a)}function Dg(){if(ep!==null){for(var a=0;a<ep.length;a++){var o=ep[a],h=o.interleaved;if(h!==null){o.interleaved=null;var v=h.next,x=o.pending;if(x!==null){var A=x.next;x.next=v,h.next=A}o.pending=h}}ep=null}}function tp(a,o,h,v){var x=o.interleaved;return x===null?(h.next=h,Om(o)):(h.next=x.next,x.next=h),o.interleaved=h,Lm(a,v)}function _2(a,o,h,v){var x=o.interleaved;x===null?(h.next=h,Om(o)):(h.next=x.next,x.next=h),o.interleaved=h}function C4(a,o,h,v){var x=o.interleaved;return x===null?(h.next=h,Om(o)):(h.next=x.next,x.next=h),o.interleaved=h,Lm(a,v)}function wl(a,o){return Lm(a,o)}var G7=Lm;function Lm(a,o){a.lanes=zn(a.lanes,o);var h=a.alternate;h!==null&&(h.lanes=zn(h.lanes,o)),h===null&&(a.flags&(mi|Tf))!==Dn&&ZP(a);for(var v=a,x=a.return;x!==null;)x.childLanes=zn(x.childLanes,o),h=x.alternate,h!==null?h.childLanes=zn(h.childLanes,o):(x.flags&(mi|Tf))!==Dn&&ZP(a),v=x,x=x.return;if(v.tag===S){var A=v.stateNode;return A}else return null}var d5=0,h5=1,Pg=2,N4=3,np=!1,H1,Mm;H1=!1,Mm=null;function j1(a){var o={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:vt},effects:null};a.updateQueue=o}function w4(a,o){var h=o.updateQueue,v=a.updateQueue;if(h===v){var x={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,effects:v.effects};o.updateQueue=x}}function nf(a,o){var h={eventTime:a,lane:o,tag:d5,payload:null,callback:null,next:null};return h}function Bi(a,o,h){var v=a.updateQueue;if(v===null)return null;var x=v.shared;if(Mm===x&&!H1&&(l("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),H1=!0),VQ()){var A=x.pending;return A===null?o.next=o:(o.next=A.next,A.next=o),x.pending=o,G7(a,h)}else return C4(a,x,o,h)}function Vf(a,o,h){var v=o.updateQueue;if(v!==null){var x=v.shared;if(yo(h)){var A=x.lanes;A=yx(A,a.pendingLanes);var P=zn(A,h);x.lanes=P,Tn(a,P)}}}function _4(a,o){var h=a.updateQueue,v=a.alternate;if(v!==null){var x=v.updateQueue;if(h===x){var A=null,P=null,U=h.firstBaseUpdate;if(U!==null){var W=U;do{var re={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};P===null?A=P=re:(P.next=re,P=re),W=W.next}while(W!==null);P===null?A=P=o:(P.next=o,P=o)}else A=P=o;h={baseState:x.baseState,firstBaseUpdate:A,lastBaseUpdate:P,shared:x.shared,effects:x.effects},a.updateQueue=h;return}}var ue=h.lastBaseUpdate;ue===null?h.firstBaseUpdate=o:ue.next=o,h.lastBaseUpdate=o}function Xo(a,o,h,v,x,A){switch(h.tag){case h5:{var P=h.payload;if(typeof P=="function"){ql();var U=P.call(A,v,x);{if(a.mode&Ii){Na(!0);try{P.call(A,v,x)}finally{Na(!1)}}c5()}return U}return P}case N4:a.flags=a.flags&~Pi|Hr;case d5:{var W=h.payload,re;if(typeof W=="function"){ql(),re=W.call(A,v,x);{if(a.mode&Ii){Na(!0);try{W.call(A,v,x)}finally{Na(!1)}}c5()}}else re=W;return re==null?v:Zn({},v,re)}case Pg:return np=!0,v}return v}function p5(a,o,h,v){var x=a.updateQueue;np=!1,Mm=x.shared;var A=x.firstBaseUpdate,P=x.lastBaseUpdate,U=x.shared.pending;if(U!==null){x.shared.pending=null;var W=U,re=W.next;W.next=null,P===null?A=re:P.next=re,P=W;var ue=a.alternate;if(ue!==null){var Te=ue.updateQueue,we=Te.lastBaseUpdate;we!==P&&(we===null?Te.firstBaseUpdate=re:we.next=re,Te.lastBaseUpdate=W)}}if(A!==null){var je=x.baseState,Ge=vt,et=null,dn=null,Yn=null,An=A;do{var ta=An.lane,Wr=An.eventTime;if(Nd(v,ta)){if(Yn!==null){var tt={eventTime:Wr,lane:eo,tag:An.tag,payload:An.payload,callback:An.callback,next:null};Yn=Yn.next=tt}je=Xo(a,x,An,je,o,h);var ze=An.callback;if(ze!==null&&An.lane!==eo){a.flags|=iy;var Mt=x.effects;Mt===null?x.effects=[An]:Mt.push(An)}}else{var Fe={eventTime:Wr,lane:ta,tag:An.tag,payload:An.payload,callback:An.callback,next:null};Yn===null?(dn=Yn=Fe,et=je):Yn=Yn.next=Fe,Ge=zn(Ge,ta)}if(An=An.next,An===null){if(U=x.shared.pending,U===null)break;var hn=U,sn=hn.next;hn.next=null,An=sn,x.lastBaseUpdate=hn,x.shared.pending=null}}while(!0);Yn===null&&(et=je),x.baseState=et,x.firstBaseUpdate=dn,x.lastBaseUpdate=Yn;var cr=x.shared.interleaved;if(cr!==null){var Nr=cr;do Ge=zn(Ge,Nr.lane),Nr=Nr.next;while(Nr!==cr)}else A===null&&(x.shared.lanes=vt);bN(Ge),a.lanes=Ge,a.memoizedState=je}Mm=null}function W7(a,o){if(typeof a!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+a));a.call(o)}function Kl(){np=!1}function E2(){return np}function m5(a,o,h){var v=o.effects;if(o.effects=null,v!==null)for(var x=0;x<v.length;x++){var A=v[x],P=A.callback;P!==null&&(A.callback=null,W7(P,h))}}var v5={},Y_=new e.Component().refs,E4,jd,g5,T4,R4,q_,b5,V1,k4,A4;{E4=new Set,jd=new Set,g5=new Set,T4=new Set,V1=new Set,R4=new Set,k4=new Set,A4=new Set;var T2=new Set;b5=function(a,o){if(!(a===null||typeof a=="function")){var h=o+"_"+a;T2.has(h)||(T2.add(h),l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,a))}},q_=function(a,o){if(o===void 0){var h=gr(a)||"Component";R4.has(h)||(R4.add(h),l("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",h))}},Object.defineProperty(v5,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(v5)}function R2(a,o,h,v){var x=a.memoizedState,A=h(v,x);{if(a.mode&Ii){Na(!0);try{A=h(v,x)}finally{Na(!1)}}q_(o,A)}var P=A==null?x:Zn({},x,A);if(a.memoizedState=P,a.lanes===vt){var U=a.updateQueue;U.baseState=P}}var rp={isMounted:Fv,enqueueSetState:function(a,o,h){var v=_f(a),x=Cc(),A=ib(v),P=nf(x,A);P.payload=o,h!=null&&(b5(h,"setState"),P.callback=h);var U=Bi(v,P,A);U!==null&&(Xs(U,v,A,x),Vf(U,v,A)),py(v,A)},enqueueReplaceState:function(a,o,h){var v=_f(a),x=Cc(),A=ib(v),P=nf(x,A);P.tag=h5,P.payload=o,h!=null&&(b5(h,"replaceState"),P.callback=h);var U=Bi(v,P,A);U!==null&&(Xs(U,v,A,x),Vf(U,v,A)),py(v,A)},enqueueForceUpdate:function(a,o){var h=_f(a),v=Cc(),x=ib(h),A=nf(v,x);A.tag=Pg,o!=null&&(b5(o,"forceUpdate"),A.callback=o);var P=Bi(h,A,x);P!==null&&(Xs(P,h,x,v),Vf(P,h,x)),px(h,x)}};function O4(a,o,h,v,x,A,P){var U=a.stateNode;if(typeof U.shouldComponentUpdate=="function"){var W=U.shouldComponentUpdate(v,A,P);{if(a.mode&Ii){Na(!0);try{W=U.shouldComponentUpdate(v,A,P)}finally{Na(!1)}}W===void 0&&l("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",gr(o)||"Component")}return W}return o.prototype&&o.prototype.isPureReactComponent?!kd(h,v)||!kd(x,A):!0}function K_(a,o,h){var v=a.stateNode;{var x=gr(o)||"Component",A=v.render;A||(o.prototype&&typeof o.prototype.render=="function"?l("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):l("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),v.getInitialState&&!v.getInitialState.isReactClassApproved&&!v.state&&l("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&l("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),v.propTypes&&l("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),v.contextType&&l("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),v.contextTypes&&l("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),o.contextType&&o.contextTypes&&!k4.has(o)&&(k4.add(o),l("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof v.componentShouldUpdate=="function"&&l("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),o.prototype&&o.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&l("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",gr(o)||"A pure component"),typeof v.componentDidUnmount=="function"&&l("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof v.componentDidReceiveProps=="function"&&l("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof v.componentWillRecieveProps=="function"&&l("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof v.UNSAFE_componentWillRecieveProps=="function"&&l("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var P=v.props!==h;v.props!==void 0&&P&&l("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),v.defaultProps&&l("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof v.getSnapshotBeforeUpdate=="function"&&typeof v.componentDidUpdate!="function"&&!g5.has(o)&&(g5.add(o),l("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",gr(o))),typeof v.getDerivedStateFromProps=="function"&&l("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof v.getDerivedStateFromError=="function"&&l("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof o.getSnapshotBeforeUpdate=="function"&&l("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var U=v.state;U&&(typeof U!="object"||Qn(U))&&l("%s.state: must be set to an object or null",x),typeof v.getChildContext=="function"&&typeof o.childContextTypes!="object"&&l("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function L4(a,o){o.updater=rp,a.stateNode=o,Rr(o,a),o._reactInternalInstance=v5}function Z_(a,o,h){var v=!1,x=pc,A=pc,P=o.contextType;if("contextType"in o){var U=P===null||P!==void 0&&P.$$typeof===_r&&P._context===void 0;if(!U&&!A4.has(o)){A4.add(o);var W="";P===void 0?W=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof P!="object"?W=" However, it is set to a "+typeof P+".":P.$$typeof===dr?W=" Did you accidentally pass the Context.Provider instead?":P._context!==void 0?W=" Did you accidentally pass the Context.Consumer instead?":W=" However, it is set to an object with keys {"+Object.keys(P).join(", ")+"}.",l("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",gr(o)||"Component",W)}}if(typeof P=="object"&&P!==null)A=zi(P);else{x=I1(a,o,!0);var re=o.contextTypes;v=re!=null,A=v?Tg(a,x):pc}var ue=new o(h,A);if(a.mode&Ii){Na(!0);try{ue=new o(h,A)}finally{Na(!1)}}var Te=a.memoizedState=ue.state!==null&&ue.state!==void 0?ue.state:null;L4(a,ue);{if(typeof o.getDerivedStateFromProps=="function"&&Te===null){var we=gr(o)||"Component";jd.has(we)||(jd.add(we),l("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",we,ue.state===null?"null":"undefined",we))}if(typeof o.getDerivedStateFromProps=="function"||typeof ue.getSnapshotBeforeUpdate=="function"){var je=null,Ge=null,et=null;if(typeof ue.componentWillMount=="function"&&ue.componentWillMount.__suppressDeprecationWarning!==!0?je="componentWillMount":typeof ue.UNSAFE_componentWillMount=="function"&&(je="UNSAFE_componentWillMount"),typeof ue.componentWillReceiveProps=="function"&&ue.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ge="componentWillReceiveProps":typeof ue.UNSAFE_componentWillReceiveProps=="function"&&(Ge="UNSAFE_componentWillReceiveProps"),typeof ue.componentWillUpdate=="function"&&ue.componentWillUpdate.__suppressDeprecationWarning!==!0?et="componentWillUpdate":typeof ue.UNSAFE_componentWillUpdate=="function"&&(et="UNSAFE_componentWillUpdate"),je!==null||Ge!==null||et!==null){var dn=gr(o)||"Component",Yn=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";T4.has(dn)||(T4.add(dn),l(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,dn,Yn,je!==null?`
`+je:"",Ge!==null?`
`+Ge:"",et!==null?`
`+et:""))}}}return v&&B_(a,x,A),ue}function k2(a,o){var h=o.state;typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&(l("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xn(a)||"Component"),rp.enqueueReplaceState(o,o.state,null))}function X_(a,o,h,v){var x=o.state;if(typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(h,v),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(h,v),o.state!==x){{var A=Xn(a)||"Component";E4.has(A)||(E4.add(A),l("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",A))}rp.enqueueReplaceState(o,o.state,null)}}function A2(a,o,h,v){K_(a,o,h);var x=a.stateNode;x.props=h,x.state=a.memoizedState,x.refs=Y_,j1(a);var A=o.contextType;if(typeof A=="object"&&A!==null)x.context=zi(A);else{var P=I1(a,o,!0);x.context=Tg(a,P)}{if(x.state===h){var U=gr(o)||"Component";V1.has(U)||(V1.add(U),l("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",U))}a.mode&Ii&&no.recordLegacyContextWarning(a,x),no.recordUnsafeLifecycleWarnings(a,x)}x.state=a.memoizedState;var W=o.getDerivedStateFromProps;if(typeof W=="function"&&(R2(a,o,W,h),x.state=a.memoizedState),typeof o.getDerivedStateFromProps!="function"&&typeof x.getSnapshotBeforeUpdate!="function"&&(typeof x.UNSAFE_componentWillMount=="function"||typeof x.componentWillMount=="function")&&(k2(a,x),p5(a,h,x,v),x.state=a.memoizedState),typeof x.componentDidMount=="function"){var re=wr;re|=vo,(a.mode&Cu)!==Fn&&(re|=_n),a.flags|=re}}function Y7(a,o,h,v){var x=a.stateNode,A=a.memoizedProps;x.props=A;var P=x.context,U=o.contextType,W=pc;if(typeof U=="object"&&U!==null)W=zi(U);else{var re=I1(a,o,!0);W=Tg(a,re)}var ue=o.getDerivedStateFromProps,Te=typeof ue=="function"||typeof x.getSnapshotBeforeUpdate=="function";!Te&&(typeof x.UNSAFE_componentWillReceiveProps=="function"||typeof x.componentWillReceiveProps=="function")&&(A!==h||P!==W)&&X_(a,x,h,W),Kl();var we=a.memoizedState,je=x.state=we;if(p5(a,h,x,v),je=a.memoizedState,A===h&&we===je&&!S2()&&!E2()){if(typeof x.componentDidMount=="function"){var Ge=wr;Ge|=vo,(a.mode&Cu)!==Fn&&(Ge|=_n),a.flags|=Ge}return!1}typeof ue=="function"&&(R2(a,o,ue,h),je=a.memoizedState);var et=E2()||O4(a,o,A,h,we,je,W);if(et){if(!Te&&(typeof x.UNSAFE_componentWillMount=="function"||typeof x.componentWillMount=="function")&&(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"){var dn=wr;dn|=vo,(a.mode&Cu)!==Fn&&(dn|=_n),a.flags|=dn}}else{if(typeof x.componentDidMount=="function"){var Yn=wr;Yn|=vo,(a.mode&Cu)!==Fn&&(Yn|=_n),a.flags|=Yn}a.memoizedProps=h,a.memoizedState=je}return x.props=h,x.state=je,x.context=W,et}function q7(a,o,h,v,x){var A=o.stateNode;w4(a,o);var P=o.memoizedProps,U=o.type===o.elementType?P:Zo(o.type,P);A.props=U;var W=o.pendingProps,re=A.context,ue=h.contextType,Te=pc;if(typeof ue=="object"&&ue!==null)Te=zi(ue);else{var we=I1(o,h,!0);Te=Tg(o,we)}var je=h.getDerivedStateFromProps,Ge=typeof je=="function"||typeof A.getSnapshotBeforeUpdate=="function";!Ge&&(typeof A.UNSAFE_componentWillReceiveProps=="function"||typeof A.componentWillReceiveProps=="function")&&(P!==W||re!==Te)&&X_(o,A,v,Te),Kl();var et=o.memoizedState,dn=A.state=et;if(p5(o,v,A,x),dn=o.memoizedState,P===W&&et===dn&&!S2()&&!E2()&&!ve)return typeof A.componentDidUpdate=="function"&&(P!==a.memoizedProps||et!==a.memoizedState)&&(o.flags|=wr),typeof A.getSnapshotBeforeUpdate=="function"&&(P!==a.memoizedProps||et!==a.memoizedState)&&(o.flags|=md),!1;typeof je=="function"&&(R2(o,h,je,v),dn=o.memoizedState);var Yn=E2()||O4(o,h,U,v,et,dn,Te)||ve;return Yn?(!Ge&&(typeof A.UNSAFE_componentWillUpdate=="function"||typeof A.componentWillUpdate=="function")&&(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(v,dn,Te),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(v,dn,Te)),typeof A.componentDidUpdate=="function"&&(o.flags|=wr),typeof A.getSnapshotBeforeUpdate=="function"&&(o.flags|=md)):(typeof A.componentDidUpdate=="function"&&(P!==a.memoizedProps||et!==a.memoizedState)&&(o.flags|=wr),typeof A.getSnapshotBeforeUpdate=="function"&&(P!==a.memoizedProps||et!==a.memoizedState)&&(o.flags|=md),o.memoizedProps=v,o.memoizedState=dn),A.props=v,A.state=dn,A.context=Te,Yn}var G1,M4,D4,P4,y5,I4=function(a,o){};G1=!1,M4=!1,D4={},P4={},y5={},I4=function(a,o){if(!(a===null||typeof a!="object")&&!(!a._store||a._store.validated||a.key!=null)){if(typeof a._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=!0;var h=Xn(o)||"Component";P4[h]||(P4[h]=!0,l('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Gf(a,o,h){var v=h.ref;if(v!==null&&typeof v!="function"&&typeof v!="object"){if((a.mode&Ii||Qe)&&!(h._owner&&h._self&&h._owner.stateNode!==h._self)){var x=Xn(a)||"Component";D4[x]||(l('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v),D4[x]=!0)}if(h._owner){var A=h._owner,P;if(A){var U=A;if(U.tag!==m)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");P=U.stateNode}if(!P)throw new Error("Missing owner for string ref "+v+". This error is likely caused by a bug in React. Please file an issue.");var W=P;an(v,"ref");var re=""+v;if(o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===re)return o.ref;var ue=function(Te){var we=W.refs;we===Y_&&(we=W.refs={}),Te===null?delete we[re]:we[re]=Te};return ue._stringRef=re,ue}else{if(typeof v!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!h._owner)throw new Error("Element ref was specified as a string ("+v+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return v}function S5(a,o){var h=Object.prototype.toString.call(o);throw new Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}function bc(a){{var o=Xn(a)||"Component";if(y5[o])return;y5[o]=!0,l("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Q_(a){var o=a._payload,h=a._init;return h(o)}function J_(a){function o(Fe,tt){if(!!a){var ze=Fe.deletions;ze===null?(Fe.deletions=[tt],Fe.flags|=mh):ze.push(tt)}}function h(Fe,tt){if(!a)return null;for(var ze=tt;ze!==null;)o(Fe,ze),ze=ze.sibling;return null}function v(Fe,tt){for(var ze=new Map,Mt=tt;Mt!==null;)Mt.key!==null?ze.set(Mt.key,Mt):ze.set(Mt.index,Mt),Mt=Mt.sibling;return ze}function x(Fe,tt){var ze=Q2(Fe,tt);return ze.index=0,ze.sibling=null,ze}function A(Fe,tt,ze){if(Fe.index=ze,!a)return Fe.flags|=vd,tt;var Mt=Fe.alternate;if(Mt!==null){var hn=Mt.index;return hn<tt?(Fe.flags|=mi,tt):hn}else return Fe.flags|=mi,tt}function P(Fe){return a&&Fe.alternate===null&&(Fe.flags|=mi),Fe}function U(Fe,tt,ze,Mt){if(tt===null||tt.tag!==T){var hn=GR(ze,Fe.mode,Mt);return hn.return=Fe,hn}else{var sn=x(tt,ze);return sn.return=Fe,sn}}function W(Fe,tt,ze,Mt){var hn=ze.type;if(hn===dt)return ue(Fe,tt,ze.props.children,Mt,ze.key);if(tt!==null&&(tt.elementType===hn||eI(tt,ze)||typeof hn=="object"&&hn!==null&&hn.$$typeof===hr&&Q_(hn)===tt.type)){var sn=x(tt,ze.props);return sn.ref=Gf(Fe,tt,ze),sn.return=Fe,sn._debugSource=ze._source,sn._debugOwner=ze._owner,sn}var cr=VR(ze,Fe.mode,Mt);return cr.ref=Gf(Fe,tt,ze),cr.return=Fe,cr}function re(Fe,tt,ze,Mt){if(tt===null||tt.tag!==N||tt.stateNode.containerInfo!==ze.containerInfo||tt.stateNode.implementation!==ze.implementation){var hn=WR(ze,Fe.mode,Mt);return hn.return=Fe,hn}else{var sn=x(tt,ze.children||[]);return sn.return=Fe,sn}}function ue(Fe,tt,ze,Mt,hn){if(tt===null||tt.tag!==L){var sn=sb(ze,Fe.mode,Mt,hn);return sn.return=Fe,sn}else{var cr=x(tt,ze);return cr.return=Fe,cr}}function Te(Fe,tt,ze){if(typeof tt=="string"&&tt!==""||typeof tt=="number"){var Mt=GR(""+tt,Fe.mode,ze);return Mt.return=Fe,Mt}if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case Do:{var hn=VR(tt,Fe.mode,ze);return hn.ref=Gf(Fe,null,tt),hn.return=Fe,hn}case ge:{var sn=WR(tt,Fe.mode,ze);return sn.return=Fe,sn}case hr:{var cr=tt._payload,Nr=tt._init;return Te(Fe,Nr(cr),ze)}}if(Qn(tt)||bs(tt)){var Ua=sb(tt,Fe.mode,ze,null);return Ua.return=Fe,Ua}S5(Fe,tt)}return typeof tt=="function"&&bc(Fe),null}function we(Fe,tt,ze,Mt){var hn=tt!==null?tt.key:null;if(typeof ze=="string"&&ze!==""||typeof ze=="number")return hn!==null?null:U(Fe,tt,""+ze,Mt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case Do:return ze.key===hn?W(Fe,tt,ze,Mt):null;case ge:return ze.key===hn?re(Fe,tt,ze,Mt):null;case hr:{var sn=ze._payload,cr=ze._init;return we(Fe,tt,cr(sn),Mt)}}if(Qn(ze)||bs(ze))return hn!==null?null:ue(Fe,tt,ze,Mt,null);S5(Fe,ze)}return typeof ze=="function"&&bc(Fe),null}function je(Fe,tt,ze,Mt,hn){if(typeof Mt=="string"&&Mt!==""||typeof Mt=="number"){var sn=Fe.get(ze)||null;return U(tt,sn,""+Mt,hn)}if(typeof Mt=="object"&&Mt!==null){switch(Mt.$$typeof){case Do:{var cr=Fe.get(Mt.key===null?ze:Mt.key)||null;return W(tt,cr,Mt,hn)}case ge:{var Nr=Fe.get(Mt.key===null?ze:Mt.key)||null;return re(tt,Nr,Mt,hn)}case hr:var Ua=Mt._payload,pa=Mt._init;return je(Fe,tt,ze,pa(Ua),hn)}if(Qn(Mt)||bs(Mt)){var hs=Fe.get(ze)||null;return ue(tt,hs,Mt,hn,null)}S5(tt,Mt)}return typeof Mt=="function"&&bc(tt),null}function Ge(Fe,tt,ze){{if(typeof Fe!="object"||Fe===null)return tt;switch(Fe.$$typeof){case Do:case ge:I4(Fe,ze);var Mt=Fe.key;if(typeof Mt!="string")break;if(tt===null){tt=new Set,tt.add(Mt);break}if(!tt.has(Mt)){tt.add(Mt);break}l("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",Mt);break;case hr:var hn=Fe._payload,sn=Fe._init;Ge(sn(hn),tt,ze);break}}return tt}function et(Fe,tt,ze,Mt){for(var hn=null,sn=0;sn<ze.length;sn++){var cr=ze[sn];hn=Ge(cr,hn,Fe)}for(var Nr=null,Ua=null,pa=tt,hs=0,ma=0,Qo=null;pa!==null&&ma<ze.length;ma++){pa.index>ma?(Qo=pa,pa=null):Qo=pa.sibling;var Iu=we(Fe,pa,ze[ma],Mt);if(Iu===null){pa===null&&(pa=Qo);break}a&&pa&&Iu.alternate===null&&o(Fe,pa),hs=A(Iu,hs,ma),Ua===null?Nr=Iu:Ua.sibling=Iu,Ua=Iu,pa=Qo}if(ma===ze.length){if(h(Fe,pa),zr()){var ru=ma;kg(Fe,ru)}return Nr}if(pa===null){for(;ma<ze.length;ma++){var qf=Te(Fe,ze[ma],Mt);qf!==null&&(hs=A(qf,hs,ma),Ua===null?Nr=qf:Ua.sibling=qf,Ua=qf)}if(zr()){var Nc=ma;kg(Fe,Nc)}return Nr}for(var wc=v(Fe,pa);ma<ze.length;ma++){var Fu=je(wc,Fe,ma,ze[ma],Mt);Fu!==null&&(a&&Fu.alternate!==null&&wc.delete(Fu.key===null?ma:Fu.key),hs=A(Fu,hs,ma),Ua===null?Nr=Fu:Ua.sibling=Fu,Ua=Fu)}if(a&&wc.forEach(function(q5){return o(Fe,q5)}),zr()){var Gg=ma;kg(Fe,Gg)}return Nr}function dn(Fe,tt,ze,Mt){var hn=bs(ze);if(typeof hn!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ze[Symbol.toStringTag]==="Generator"&&(M4||l("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),M4=!0),ze.entries===hn&&(G1||l("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),G1=!0);var sn=hn.call(ze);if(sn)for(var cr=null,Nr=sn.next();!Nr.done;Nr=sn.next()){var Ua=Nr.value;cr=Ge(Ua,cr,Fe)}}var pa=hn.call(ze);if(pa==null)throw new Error("An iterable object provided no iterator.");for(var hs=null,ma=null,Qo=tt,Iu=0,ru=0,qf=null,Nc=pa.next();Qo!==null&&!Nc.done;ru++,Nc=pa.next()){Qo.index>ru?(qf=Qo,Qo=null):qf=Qo.sibling;var wc=we(Fe,Qo,Nc.value,Mt);if(wc===null){Qo===null&&(Qo=qf);break}a&&Qo&&wc.alternate===null&&o(Fe,Qo),Iu=A(wc,Iu,ru),ma===null?hs=wc:ma.sibling=wc,ma=wc,Qo=qf}if(Nc.done){if(h(Fe,Qo),zr()){var Fu=ru;kg(Fe,Fu)}return hs}if(Qo===null){for(;!Nc.done;ru++,Nc=pa.next()){var Gg=Te(Fe,Nc.value,Mt);Gg!==null&&(Iu=A(Gg,Iu,ru),ma===null?hs=Gg:ma.sibling=Gg,ma=Gg)}if(zr()){var q5=ru;kg(Fe,q5)}return hs}for(var NN=v(Fe,Qo);!Nc.done;ru++,Nc=pa.next()){var Um=je(NN,Fe,ru,Nc.value,Mt);Um!==null&&(a&&Um.alternate!==null&&NN.delete(Um.key===null?ru:Um.key),Iu=A(Um,Iu,ru),ma===null?hs=Um:ma.sibling=Um,ma=Um)}if(a&&NN.forEach(function(cee){return o(Fe,cee)}),zr()){var uee=ru;kg(Fe,uee)}return hs}function Yn(Fe,tt,ze,Mt){if(tt!==null&&tt.tag===T){h(Fe,tt.sibling);var hn=x(tt,ze);return hn.return=Fe,hn}h(Fe,tt);var sn=GR(ze,Fe.mode,Mt);return sn.return=Fe,sn}function An(Fe,tt,ze,Mt){for(var hn=ze.key,sn=tt;sn!==null;){if(sn.key===hn){var cr=ze.type;if(cr===dt){if(sn.tag===L){h(Fe,sn.sibling);var Nr=x(sn,ze.props.children);return Nr.return=Fe,Nr._debugSource=ze._source,Nr._debugOwner=ze._owner,Nr}}else if(sn.elementType===cr||eI(sn,ze)||typeof cr=="object"&&cr!==null&&cr.$$typeof===hr&&Q_(cr)===sn.type){h(Fe,sn.sibling);var Ua=x(sn,ze.props);return Ua.ref=Gf(Fe,sn,ze),Ua.return=Fe,Ua._debugSource=ze._source,Ua._debugOwner=ze._owner,Ua}h(Fe,sn);break}else o(Fe,sn);sn=sn.sibling}if(ze.type===dt){var pa=sb(ze.props.children,Fe.mode,Mt,ze.key);return pa.return=Fe,pa}else{var hs=VR(ze,Fe.mode,Mt);return hs.ref=Gf(Fe,tt,ze),hs.return=Fe,hs}}function ta(Fe,tt,ze,Mt){for(var hn=ze.key,sn=tt;sn!==null;){if(sn.key===hn)if(sn.tag===N&&sn.stateNode.containerInfo===ze.containerInfo&&sn.stateNode.implementation===ze.implementation){h(Fe,sn.sibling);var cr=x(sn,ze.children||[]);return cr.return=Fe,cr}else{h(Fe,sn);break}else o(Fe,sn);sn=sn.sibling}var Nr=WR(ze,Fe.mode,Mt);return Nr.return=Fe,Nr}function Wr(Fe,tt,ze,Mt){var hn=typeof ze=="object"&&ze!==null&&ze.type===dt&&ze.key===null;if(hn&&(ze=ze.props.children),typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case Do:return P(An(Fe,tt,ze,Mt));case ge:return P(ta(Fe,tt,ze,Mt));case hr:var sn=ze._payload,cr=ze._init;return Wr(Fe,tt,cr(sn),Mt)}if(Qn(ze))return et(Fe,tt,ze,Mt);if(bs(ze))return dn(Fe,tt,ze,Mt);S5(Fe,ze)}return typeof ze=="string"&&ze!==""||typeof ze=="number"?P(Yn(Fe,tt,""+ze,Mt)):(typeof ze=="function"&&bc(Fe),h(Fe,tt))}return Wr}var Ig=J_(!0),eE=J_(!1);function K7(a,o){if(a!==null&&o.child!==a.child)throw new Error("Resuming work not yet implemented.");if(o.child!==null){var h=o.child,v=Q2(h,h.pendingProps);for(o.child=v,v.return=o;h.sibling!==null;)h=h.sibling,v=v.sibling=Q2(h,h.pendingProps),v.return=o;v.sibling=null}}function Z7(a,o){for(var h=a.child;h!==null;)TJ(h,o),h=h.sibling}var W1={},Xr=bi(W1),O2=bi(W1),L2=bi(W1);function x5(a){if(a===W1)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return a}function tE(){var a=x5(L2.current);return a}function F4(a,o){Nl(L2,o,a),Nl(O2,a,a),Nl(Xr,W1,a);var h=Bx(o);cs(Xr,a),Nl(Xr,h,a)}function Y1(a){cs(Xr,a),cs(O2,a),cs(L2,a)}function z4(){var a=x5(Xr.current);return a}function B4(a){x5(L2.current);var o=x5(Xr.current),h=s2(o,a.type);o!==h&&(Nl(O2,a,a),Nl(Xr,h,a))}function q1(a){O2.current===a&&(cs(Xr,a),cs(O2,a))}var C5=0,$4=1,N5=1,M2=2,rf=bi(C5);function D2(a,o){return(a&o)!==0}function K1(a){return a&$4}function Fg(a,o){return a&$4|o}function U4(a,o){return a|o}function Wf(a,o){Nl(rf,o,a)}function zg(a){cs(rf,a)}function nE(a,o){var h=a.memoizedState;return h!==null?h.dehydrated!==null:(a.memoizedProps,!0)}function w5(a){for(var o=a;o!==null;){if(o.tag===G){var h=o.memoizedState;if(h!==null){var v=h.dehydrated;if(v===null||Wx(v)||O1(v))return o}}else if(o.tag===oe&&o.memoizedProps.revealOrder!==void 0){var x=(o.flags&Hr)!==Dn;if(x)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)return null;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Pu=0,$i=1,To=2,Ai=4,Ws=8,Dm=[];function P2(){for(var a=0;a<Dm.length;a++){var o=Dm[a];o._workInProgressVersionPrimary=null}Dm.length=0}function H4(a,o){var h=o._getVersion,v=h(o._source);a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[o,v]:a.mutableSourceEagerHydrationData.push(o,v)}var rn=n.ReactCurrentDispatcher,Z1=n.ReactCurrentBatchConfig,j4,X1;j4=new Set;var ap=vt,_a=null,Ro=null,fs=null,_5=!1,Bg=!1,Q1=0,X7=0,yc=25,ot=null,af=null,Pm=-1,ip=!1;function ha(){{var a=ot;af===null?af=[a]:af.push(a)}}function qt(){{var a=ot;af!==null&&(Pm++,af[Pm]!==a&&V4(a))}}function Im(a){a!=null&&!Qn(a)&&l("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ot,typeof a)}function V4(a){{var o=Xn(_a);if(!j4.has(o)&&(j4.add(o),af!==null)){for(var h="",v=30,x=0;x<=Pm;x++){for(var A=af[x],P=x===Pm?a:A,U=x+1+". "+A;U.length<v;)U+=" ";U+=P+`
`,h+=U}l(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,o,h)}}}function Ui(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function G4(a,o){if(ip)return!1;if(o===null)return l("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ot),!1;a.length!==o.length&&l(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,ot,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var h=0;h<o.length&&h<a.length;h++)if(!ss(a[h],o[h]))return!1;return!0}function J1(a,o,h,v,x,A){ap=A,_a=o,af=a!==null?a._debugHookTypes:null,Pm=-1,ip=a!==null&&a.type!==o.type,o.memoizedState=null,o.updateQueue=null,o.lanes=vt,a!==null&&a.memoizedState!==null?rn.current=Ye:af!==null?rn.current=Ie:rn.current=Ce;var P=h(v,x);if(Bg){var U=0;do{if(Bg=!1,Q1=0,U>=yc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");U+=1,ip=!1,Ro=null,fs=null,o.updateQueue=null,Pm=-1,rn.current=lt,P=h(v,x)}while(Bg)}rn.current=pe,o._debugHookTypes=af;var W=Ro!==null&&Ro.next!==null;if(ap=vt,_a=null,Ro=null,fs=null,ot=null,af=null,Pm=-1,a!==null&&(a.flags&cl)!==(o.flags&cl)&&(a.mode&Pr)!==Fn&&l("Internal React error: Expected static flag was missing. Please notify the React team."),_5=!1,W)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return P}function eb(){var a=Q1!==0;return Q1=0,a}function W4(a,o,h){o.updateQueue=a.updateQueue,(o.mode&Cu)!==Fn?o.flags&=~(gh|_n|ec|wr):o.flags&=~(ec|wr),a.lanes=Lf(a.lanes,h)}function E5(){if(rn.current=pe,_5){for(var a=_a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}_5=!1}ap=vt,_a=null,Ro=null,fs=null,af=null,Pm=-1,ot=null,fE=!1,Bg=!1,Q1=0}function Vd(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fs===null?_a.memoizedState=fs=a:fs=fs.next=a,fs}function of(){var a;if(Ro===null){var o=_a.alternate;o!==null?a=o.memoizedState:a=null}else a=Ro.next;var h;if(fs===null?h=_a.memoizedState:h=fs.next,h!==null)fs=h,h=fs.next,Ro=a;else{if(a===null)throw new Error("Rendered more hooks than during the previous render.");Ro=a;var v={memoizedState:Ro.memoizedState,baseState:Ro.baseState,baseQueue:Ro.baseQueue,queue:Ro.queue,next:null};fs===null?_a.memoizedState=fs=v:fs=fs.next=v}return fs}function T5(){return{lastEffect:null,stores:null}}function R5(a,o){return typeof o=="function"?o(a):o}function Y4(a,o,h){var v=Vd(),x;h!==void 0?x=h(o):x=o,v.memoizedState=v.baseState=x;var A={pending:null,interleaved:null,lanes:vt,dispatch:null,lastRenderedReducer:a,lastRenderedState:x};v.queue=A;var P=A.dispatch=C.bind(null,_a,A);return[v.memoizedState,P]}function k5(a,o,h){var v=of(),x=v.queue;if(x===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");x.lastRenderedReducer=a;var A=Ro,P=A.baseQueue,U=x.pending;if(U!==null){if(P!==null){var W=P.next,re=U.next;P.next=re,U.next=W}A.baseQueue!==P&&l("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),A.baseQueue=P=U,x.pending=null}if(P!==null){var ue=P.next,Te=A.baseState,we=null,je=null,Ge=null,et=ue;do{var dn=et.lane;if(Nd(ap,dn)){if(Ge!==null){var An={lane:eo,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null};Ge=Ge.next=An}if(et.hasEagerState)Te=et.eagerState;else{var ta=et.action;Te=a(Te,ta)}}else{var Yn={lane:dn,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null};Ge===null?(je=Ge=Yn,we=Te):Ge=Ge.next=Yn,_a.lanes=zn(_a.lanes,dn),bN(dn)}et=et.next}while(et!==null&&et!==ue);Ge===null?we=Te:Ge.next=je,ss(Te,v.memoizedState)||oN(),v.memoizedState=Te,v.baseState=we,v.baseQueue=Ge,x.lastRenderedState=Te}var Wr=x.interleaved;if(Wr!==null){var Fe=Wr;do{var tt=Fe.lane;_a.lanes=zn(_a.lanes,tt),bN(tt),Fe=Fe.next}while(Fe!==Wr)}else P===null&&(x.lanes=vt);var ze=x.dispatch;return[v.memoizedState,ze]}function q4(a,o,h){var v=of(),x=v.queue;if(x===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");x.lastRenderedReducer=a;var A=x.dispatch,P=x.pending,U=v.memoizedState;if(P!==null){x.pending=null;var W=P.next,re=W;do{var ue=re.action;U=a(U,ue),re=re.next}while(re!==W);ss(U,v.memoizedState)||oN(),v.memoizedState=U,v.baseQueue===null&&(v.baseState=U),x.lastRenderedState=U}return[U,A]}function VD(a,o,h){}function rE(a,o,h){}function I2(a,o,h){var v=_a,x=Vd(),A,P=zr();if(P){if(h===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");A=h(),X1||A!==h()&&(l("The result of getServerSnapshot should be cached to avoid an infinite loop"),X1=!0)}else{if(A=o(),!X1){var U=o();ss(A,U)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),X1=!0)}var W=_E();if(W===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Tu(W,ap)||aE(v,o,A)}x.memoizedState=A;var re={value:A,getSnapshot:o};return x.queue=re,B2(oE.bind(null,v,re,a),[a]),v.flags|=ec,Fm($i|Ws,iE.bind(null,v,re,A,o),void 0,null),A}function F2(a,o,h){var v=_a,x=of(),A=o();if(!X1){var P=o();ss(A,P)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),X1=!0)}var U=x.memoizedState,W=!ss(U,A);W&&(x.memoizedState=A,oN());var re=x.queue;if(tb(oE.bind(null,v,re,a),[a]),re.getSnapshot!==o||W||fs!==null&&fs.memoizedState.tag&$i){v.flags|=ec,Fm($i|Ws,iE.bind(null,v,re,A,o),void 0,null);var ue=_E();if(ue===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Tu(ue,ap)||aE(v,o,A)}return A}function aE(a,o,h){a.flags|=k0;var v={getSnapshot:o,value:h},x=_a.updateQueue;if(x===null)x=T5(),_a.updateQueue=x,x.stores=[v];else{var A=x.stores;A===null?x.stores=[v]:A.push(v)}}function iE(a,o,h,v){o.value=h,o.getSnapshot=v,sE(o)&&K4(a)}function oE(a,o,h){var v=function(){sE(o)&&K4(a)};return h(v)}function sE(a){var o=a.getSnapshot,h=a.value;try{var v=o();return!ss(h,v)}catch{return!0}}function K4(a){var o=wl(a,ir);o!==null&&Xs(o,a,ir,ca)}function A5(a){var o=Vd();typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a;var h={pending:null,interleaved:null,lanes:vt,dispatch:null,lastRenderedReducer:R5,lastRenderedState:a};o.queue=h;var v=h.dispatch=E.bind(null,_a,h);return[o.memoizedState,v]}function Z4(a){return k5(R5)}function O5(a){return q4(R5)}function Fm(a,o,h,v){var x={tag:a,create:o,destroy:h,deps:v,next:null},A=_a.updateQueue;if(A===null)A=T5(),_a.updateQueue=A,A.lastEffect=x.next=x;else{var P=A.lastEffect;if(P===null)A.lastEffect=x.next=x;else{var U=P.next;P.next=x,x.next=U,A.lastEffect=x}}return x}function X4(a){var o=Vd();{var h={current:a};return o.memoizedState=h,h}}function L5(a){var o=of();return o.memoizedState}function z2(a,o,h,v){var x=Vd(),A=v===void 0?null:v;_a.flags|=a,x.memoizedState=Fm($i|o,h,void 0,A)}function M5(a,o,h,v){var x=of(),A=v===void 0?null:v,P=void 0;if(Ro!==null){var U=Ro.memoizedState;if(P=U.destroy,A!==null){var W=U.deps;if(G4(A,W)){x.memoizedState=Fm(o,h,P,A);return}}}_a.flags|=a,x.memoizedState=Fm($i|o,h,P,A)}function B2(a,o){return(_a.mode&Cu)!==Fn?z2(gh|ec|gd,Ws,a,o):z2(ec|gd,Ws,a,o)}function tb(a,o){return M5(ec,Ws,a,o)}function D5(a,o){return z2(wr,To,a,o)}function $2(a,o){return M5(wr,To,a,o)}function P5(a,o){var h=wr;return h|=vo,(_a.mode&Cu)!==Fn&&(h|=_n),z2(h,Ai,a,o)}function U2(a,o){return M5(wr,Ai,a,o)}function Q4(a,o){if(typeof o=="function"){var h=o,v=a();return h(v),function(){h(null)}}else if(o!=null){var x=o;x.hasOwnProperty("current")||l("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(x).join(", ")+"}");var A=a();return x.current=A,function(){x.current=null}}}function I5(a,o,h){typeof o!="function"&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var v=h!=null?h.concat([a]):null,x=wr;return x|=vo,(_a.mode&Cu)!==Fn&&(x|=_n),z2(x,Ai,Q4.bind(null,o,a),v)}function H2(a,o,h){typeof o!="function"&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var v=h!=null?h.concat([a]):null;return M5(wr,Ai,Q4.bind(null,o,a),v)}function lE(a,o){}var j2=lE;function F5(a,o){var h=Vd(),v=o===void 0?null:o;return h.memoizedState=[a,v],a}function V2(a,o){var h=of(),v=o===void 0?null:o,x=h.memoizedState;if(x!==null&&v!==null){var A=x[1];if(G4(v,A))return x[0]}return h.memoizedState=[a,v],a}function z5(a,o){var h=Vd(),v=o===void 0?null:o,x=a();return h.memoizedState=[x,v],x}function G2(a,o){var h=of(),v=o===void 0?null:o,x=h.memoizedState;if(x!==null&&v!==null){var A=x[1];if(G4(v,A))return x[0]}var P=a();return h.memoizedState=[P,v],P}function B5(a){var o=Vd();return o.memoizedState=a,a}function J4(a){var o=of(),h=Ro,v=h.memoizedState;return tN(o,v,a)}function eN(a){var o=of();if(Ro===null)return o.memoizedState=a,a;var h=Ro.memoizedState;return tN(o,h,a)}function tN(a,o,h){var v=!j0(ap);if(v){if(!ss(h,o)){var x=Ch();_a.lanes=zn(_a.lanes,x),bN(x),a.baseState=!0}return o}else return a.baseState&&(a.baseState=!1,oN()),a.memoizedState=h,h}function nN(a,o,h){var v=zl();xo(AC(v,vl)),a(!0);var x=Z1.transition;Z1.transition={};var A=Z1.transition;Z1.transition._updatedFibers=new Set;try{a(!1),o()}finally{if(xo(v),Z1.transition=x,x===null&&A._updatedFibers){var P=A._updatedFibers.size;P>10&&s("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),A._updatedFibers.clear()}}}function rN(){var a=A5(!1),o=a[0],h=a[1],v=nN.bind(null,h),x=Vd();return x.memoizedState=v,[o,v]}function uE(){var a=Z4(),o=a[0],h=of(),v=h.memoizedState;return[o,v]}function cE(){var a=O5(),o=a[0],h=of(),v=h.memoizedState;return[o,v]}var fE=!1;function u(){return fE}function c(){var a=Vd(),o=_E(),h=o.identifierPrefix,v;if(zr()){var x=D7();v=":"+h+"R"+x;var A=Q1++;A>0&&(v+="H"+A.toString(32)),v+=":"}else{var P=X7++;v=":"+h+"r"+P.toString(32)+":"}return a.memoizedState=v,v}function y(){var a=of(),o=a.memoizedState;return o}function C(a,o,h){typeof arguments[3]=="function"&&l("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var v=ib(a),x={lane:v,action:h,hasEagerState:!1,eagerState:null,next:null};if(D(a))V(o,x);else{var A=tp(a,o,x,v);if(A!==null){var P=Cc();Xs(A,a,v,P),q(A,o,v)}}ee(a,v)}function E(a,o,h){typeof arguments[3]=="function"&&l("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var v=ib(a),x={lane:v,action:h,hasEagerState:!1,eagerState:null,next:null};if(D(a))V(o,x);else{var A=a.alternate;if(a.lanes===vt&&(A===null||A.lanes===vt)){var P=o.lastRenderedReducer;if(P!==null){var U;U=rn.current,rn.current=ct;try{var W=o.lastRenderedState,re=P(W,h);if(x.hasEagerState=!0,x.eagerState=re,ss(re,W)){_2(a,o,x,v);return}}catch{}finally{rn.current=U}}}var ue=tp(a,o,x,v);if(ue!==null){var Te=Cc();Xs(ue,a,v,Te),q(ue,o,v)}}ee(a,v)}function D(a){var o=a.alternate;return a===_a||o!==null&&o===_a}function V(a,o){Bg=_5=!0;var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}function q(a,o,h){if(yo(h)){var v=o.lanes;v=yx(v,a.pendingLanes);var x=zn(v,h);o.lanes=x,Tn(a,x)}}function ee(a,o,h){py(a,o)}var pe={readContext:zi,useCallback:Ui,useContext:Ui,useEffect:Ui,useImperativeHandle:Ui,useInsertionEffect:Ui,useLayoutEffect:Ui,useMemo:Ui,useReducer:Ui,useRef:Ui,useState:Ui,useDebugValue:Ui,useDeferredValue:Ui,useTransition:Ui,useMutableSource:Ui,useSyncExternalStore:Ui,useId:Ui,unstable_isNewReconciler:he},Ce=null,Ie=null,Ye=null,lt=null,ft=null,ct=null,Cn=null;{var nr=function(){l("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Et=function(){l("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Ce={readContext:function(a){return zi(a)},useCallback:function(a,o){return ot="useCallback",ha(),Im(o),F5(a,o)},useContext:function(a){return ot="useContext",ha(),zi(a)},useEffect:function(a,o){return ot="useEffect",ha(),Im(o),B2(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",ha(),Im(h),I5(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",ha(),Im(o),D5(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",ha(),Im(o),P5(a,o)},useMemo:function(a,o){ot="useMemo",ha(),Im(o);var h=rn.current;rn.current=ft;try{return z5(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",ha();var v=rn.current;rn.current=ft;try{return Y4(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",ha(),X4(a)},useState:function(a){ot="useState",ha();var o=rn.current;rn.current=ft;try{return A5(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",ha(),void 0},useDeferredValue:function(a){return ot="useDeferredValue",ha(),B5(a)},useTransition:function(){return ot="useTransition",ha(),rN()},useMutableSource:function(a,o,h){return ot="useMutableSource",ha(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",ha(),I2(a,o,h)},useId:function(){return ot="useId",ha(),c()},unstable_isNewReconciler:he},Ie={readContext:function(a){return zi(a)},useCallback:function(a,o){return ot="useCallback",qt(),F5(a,o)},useContext:function(a){return ot="useContext",qt(),zi(a)},useEffect:function(a,o){return ot="useEffect",qt(),B2(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",qt(),I5(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",qt(),D5(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",qt(),P5(a,o)},useMemo:function(a,o){ot="useMemo",qt();var h=rn.current;rn.current=ft;try{return z5(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",qt();var v=rn.current;rn.current=ft;try{return Y4(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",qt(),X4(a)},useState:function(a){ot="useState",qt();var o=rn.current;rn.current=ft;try{return A5(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",qt(),void 0},useDeferredValue:function(a){return ot="useDeferredValue",qt(),B5(a)},useTransition:function(){return ot="useTransition",qt(),rN()},useMutableSource:function(a,o,h){return ot="useMutableSource",qt(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",qt(),I2(a,o,h)},useId:function(){return ot="useId",qt(),c()},unstable_isNewReconciler:he},Ye={readContext:function(a){return zi(a)},useCallback:function(a,o){return ot="useCallback",qt(),V2(a,o)},useContext:function(a){return ot="useContext",qt(),zi(a)},useEffect:function(a,o){return ot="useEffect",qt(),tb(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",qt(),H2(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",qt(),$2(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",qt(),U2(a,o)},useMemo:function(a,o){ot="useMemo",qt();var h=rn.current;rn.current=ct;try{return G2(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",qt();var v=rn.current;rn.current=ct;try{return k5(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",qt(),L5()},useState:function(a){ot="useState",qt();var o=rn.current;rn.current=ct;try{return Z4(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",qt(),j2()},useDeferredValue:function(a){return ot="useDeferredValue",qt(),J4(a)},useTransition:function(){return ot="useTransition",qt(),uE()},useMutableSource:function(a,o,h){return ot="useMutableSource",qt(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",qt(),F2(a,o)},useId:function(){return ot="useId",qt(),y()},unstable_isNewReconciler:he},lt={readContext:function(a){return zi(a)},useCallback:function(a,o){return ot="useCallback",qt(),V2(a,o)},useContext:function(a){return ot="useContext",qt(),zi(a)},useEffect:function(a,o){return ot="useEffect",qt(),tb(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",qt(),H2(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",qt(),$2(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",qt(),U2(a,o)},useMemo:function(a,o){ot="useMemo",qt();var h=rn.current;rn.current=Cn;try{return G2(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",qt();var v=rn.current;rn.current=Cn;try{return q4(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",qt(),L5()},useState:function(a){ot="useState",qt();var o=rn.current;rn.current=Cn;try{return O5(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",qt(),j2()},useDeferredValue:function(a){return ot="useDeferredValue",qt(),eN(a)},useTransition:function(){return ot="useTransition",qt(),cE()},useMutableSource:function(a,o,h){return ot="useMutableSource",qt(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",qt(),F2(a,o)},useId:function(){return ot="useId",qt(),y()},unstable_isNewReconciler:he},ft={readContext:function(a){return nr(),zi(a)},useCallback:function(a,o){return ot="useCallback",Et(),ha(),F5(a,o)},useContext:function(a){return ot="useContext",Et(),ha(),zi(a)},useEffect:function(a,o){return ot="useEffect",Et(),ha(),B2(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",Et(),ha(),I5(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",Et(),ha(),D5(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",Et(),ha(),P5(a,o)},useMemo:function(a,o){ot="useMemo",Et(),ha();var h=rn.current;rn.current=ft;try{return z5(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",Et(),ha();var v=rn.current;rn.current=ft;try{return Y4(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",Et(),ha(),X4(a)},useState:function(a){ot="useState",Et(),ha();var o=rn.current;rn.current=ft;try{return A5(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",Et(),ha(),void 0},useDeferredValue:function(a){return ot="useDeferredValue",Et(),ha(),B5(a)},useTransition:function(){return ot="useTransition",Et(),ha(),rN()},useMutableSource:function(a,o,h){return ot="useMutableSource",Et(),ha(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",Et(),ha(),I2(a,o,h)},useId:function(){return ot="useId",Et(),ha(),c()},unstable_isNewReconciler:he},ct={readContext:function(a){return nr(),zi(a)},useCallback:function(a,o){return ot="useCallback",Et(),qt(),V2(a,o)},useContext:function(a){return ot="useContext",Et(),qt(),zi(a)},useEffect:function(a,o){return ot="useEffect",Et(),qt(),tb(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",Et(),qt(),H2(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",Et(),qt(),$2(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",Et(),qt(),U2(a,o)},useMemo:function(a,o){ot="useMemo",Et(),qt();var h=rn.current;rn.current=ct;try{return G2(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",Et(),qt();var v=rn.current;rn.current=ct;try{return k5(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",Et(),qt(),L5()},useState:function(a){ot="useState",Et(),qt();var o=rn.current;rn.current=ct;try{return Z4(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",Et(),qt(),j2()},useDeferredValue:function(a){return ot="useDeferredValue",Et(),qt(),J4(a)},useTransition:function(){return ot="useTransition",Et(),qt(),uE()},useMutableSource:function(a,o,h){return ot="useMutableSource",Et(),qt(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",Et(),qt(),F2(a,o)},useId:function(){return ot="useId",Et(),qt(),y()},unstable_isNewReconciler:he},Cn={readContext:function(a){return nr(),zi(a)},useCallback:function(a,o){return ot="useCallback",Et(),qt(),V2(a,o)},useContext:function(a){return ot="useContext",Et(),qt(),zi(a)},useEffect:function(a,o){return ot="useEffect",Et(),qt(),tb(a,o)},useImperativeHandle:function(a,o,h){return ot="useImperativeHandle",Et(),qt(),H2(a,o,h)},useInsertionEffect:function(a,o){return ot="useInsertionEffect",Et(),qt(),$2(a,o)},useLayoutEffect:function(a,o){return ot="useLayoutEffect",Et(),qt(),U2(a,o)},useMemo:function(a,o){ot="useMemo",Et(),qt();var h=rn.current;rn.current=ct;try{return G2(a,o)}finally{rn.current=h}},useReducer:function(a,o,h){ot="useReducer",Et(),qt();var v=rn.current;rn.current=ct;try{return q4(a,o,h)}finally{rn.current=v}},useRef:function(a){return ot="useRef",Et(),qt(),L5()},useState:function(a){ot="useState",Et(),qt();var o=rn.current;rn.current=ct;try{return O5(a)}finally{rn.current=o}},useDebugValue:function(a,o){return ot="useDebugValue",Et(),qt(),j2()},useDeferredValue:function(a){return ot="useDeferredValue",Et(),qt(),eN(a)},useTransition:function(){return ot="useTransition",Et(),qt(),cE()},useMutableSource:function(a,o,h){return ot="useMutableSource",Et(),qt(),void 0},useSyncExternalStore:function(a,o,h){return ot="useSyncExternalStore",Et(),qt(),F2(a,o)},useId:function(){return ot="useId",Et(),qt(),y()},unstable_isNewReconciler:he}}var jr=t.unstable_now,Vr=0,Ue=-1,rt=-1,$e=-1,zt=!1,vn=!1;function on(){return zt}function Gr(){vn=!0}function ur(){zt=!1,vn=!1}function aa(){zt=vn,vn=!1}function Lr(){return Vr}function $a(){Vr=jr()}function Bn(a){rt=jr(),a.actualStartTime<0&&(a.actualStartTime=jr())}function Hi(a){rt=-1}function ds(a,o){if(rt>=0){var h=jr()-rt;a.actualDuration+=h,o&&(a.selfBaseDuration=h),rt=-1}}function ui(a){if(Ue>=0){var o=jr()-Ue;Ue=-1;for(var h=a.return;h!==null;){switch(h.tag){case S:var v=h.stateNode;v.effectDuration+=o;return;case H:var x=h.stateNode;x.effectDuration+=o;return}h=h.return}}}function Zl(a){if($e>=0){var o=jr()-$e;$e=-1;for(var h=a.return;h!==null;){switch(h.tag){case S:var v=h.stateNode;v!==null&&(v.passiveEffectDuration+=o);return;case H:var x=h.stateNode;x!==null&&(x.passiveEffectDuration+=o);return}h=h.return}}}function Oi(){Ue=jr()}function Ys(){$e=jr()}function Es(a){for(var o=a.child;o;)a.actualDuration+=o.actualDuration,o=o.sibling}function Xl(a,o){return{value:a,source:o,stack:wi(o),digest:null}}function zm(a,o,h){return{value:a,source:null,stack:h??null,digest:o??null}}function W2(a,o){return!0}function sf(a,o){try{var h=W2(a,o);if(h===!1)return;var v=o.value,x=o.source,A=o.stack,P=A!==null?A:"";if(v!=null&&v._suppressLogging){if(a.tag===m)return;console.error(v)}var U=x?Xn(x):null,W=U?"The above error occurred in the <"+U+"> component:":"The above error occurred in one of your React components:",re;if(a.tag===S)re=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var ue=Xn(a)||"Anonymous";re="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+ue+".")}var Te=W+`
`+P+`
`+(""+re);console.error(Te)}catch(we){setTimeout(function(){throw we})}}var Q7=typeof WeakMap=="function"?WeakMap:Map;function dE(a,o,h){var v=nf(ca,h);v.tag=N4,v.payload={element:null};var x=o.value;return v.callback=function(){sJ(x),sf(a,o)},v}function J7(a,o,h){var v=nf(ca,h);v.tag=N4;var x=a.type.getDerivedStateFromError;if(typeof x=="function"){var A=o.value;v.payload=function(){return x(A)},v.callback=function(){tI(a),sf(a,o)}}var P=a.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(v.callback=function(){tI(a),sf(a,o),typeof x!="function"&&iJ(this);var W=o.value,re=o.stack;this.componentDidCatch(W,{componentStack:re!==null?re:""}),typeof x!="function"&&(Is(a.lanes,ir)||l("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Xn(a)||"Unknown"))}),v}function GD(a,o,h){var v=a.pingCache,x;if(v===null?(v=a.pingCache=new Q7,x=new Set,v.set(o,x)):(x=v.get(o),x===void 0&&(x=new Set,v.set(o,x))),!x.has(h)){x.add(h);var A=lJ.bind(null,a,o,h);is&&yN(a,h),o.then(A,A)}}function vX(a,o,h,v){var x=a.updateQueue;if(x===null){var A=new Set;A.add(h),a.updateQueue=A}else x.add(h)}function gX(a,o){var h=a.tag;if((a.mode&Pr)===Fn&&(h===d||h===z||h===Z)){var v=a.alternate;v?(a.updateQueue=v.updateQueue,a.memoizedState=v.memoizedState,a.lanes=v.lanes):(a.updateQueue=null,a.memoizedState=null)}}function WD(a){var o=a;do{if(o.tag===G&&nE(o))return o;o=o.return}while(o!==null);return null}function YD(a,o,h,v,x){if((a.mode&Pr)===Fn){if(a===o)a.flags|=Pi;else{if(a.flags|=Hr,h.flags|=vh,h.flags&=~(Fc|Dv),h.tag===m){var A=h.alternate;if(A===null)h.tag=ie;else{var P=nf(ca,ir);P.tag=Pg,Bi(h,P,ir)}}h.lanes=zn(h.lanes,ir)}return a}return a.flags|=Pi,a.lanes=x,a}function bX(a,o,h,v,x){if(h.flags|=Dv,is&&yN(a,x),v!==null&&typeof v=="object"&&typeof v.then=="function"){var A=v;gX(h),zr()&&h.mode&Pr&&H_();var P=WD(o);if(P!==null){P.flags&=~Ef,YD(P,o,h,a,x),P.mode&Pr&&GD(a,A,x),vX(P,a,A);return}else{if(!vx(x)){GD(a,A,x),LR();return}var U=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");v=U}}else if(zr()&&h.mode&Pr){H_();var W=WD(o);if(W!==null){(W.flags&Pi)===Dn&&(W.flags|=Ef),YD(W,o,h,a,x),gc(Xl(v,h));return}}v=Xl(v,h),XQ(v);var re=o;do{switch(re.tag){case S:{var ue=v;re.flags|=Pi;var Te=Vv(x);re.lanes=zn(re.lanes,Te);var we=dE(re,ue,Te);_4(re,we);return}case m:var je=v,Ge=re.type,et=re.stateNode;if((re.flags&Hr)===Dn&&(typeof Ge.getDerivedStateFromError=="function"||et!==null&&typeof et.componentDidCatch=="function"&&!WP(et))){re.flags|=Pi;var dn=Vv(x);re.lanes=zn(re.lanes,dn);var Yn=J7(re,je,dn);_4(re,Yn);return}break}re=re.return}while(re!==null)}function yX(){return null}var aN=n.ReactCurrentOwner,op=!1,eR,iN,tR,nR,rR,Y2,aR,hE;eR={},iN={},tR={},nR={},rR={},Y2=!1,aR={},hE={};function Sc(a,o,h,v){a===null?o.child=eE(o,null,h,v):o.child=Ig(o,a.child,h,v)}function SX(a,o,h,v){o.child=Ig(o,a.child,null,v),o.child=Ig(o,null,h,v)}function qD(a,o,h,v,x){if(o.type!==o.elementType){var A=h.propTypes;A&&Ka(A,v,"prop",gr(h))}var P=h.render,U=o.ref,W,re;Mg(o,x),Bv(o);{if(aN.current=o,_i(!0),W=J1(a,o,P,v,U,x),re=eb(),o.mode&Ii){Na(!0);try{W=J1(a,o,P,v,U,x),re=eb()}finally{Na(!1)}}_i(!1)}return vi(),a!==null&&!op?(W4(a,o,x),$g(a,o,x)):(zr()&&re&&p4(o),o.flags|=Pc,Sc(a,o,W,x),o.child)}function KD(a,o,h,v,x){if(a===null){var A=h.type;if(_J(A)&&h.compare===null&&h.defaultProps===void 0){var P=A;return P=Y5(A),o.tag=Z,o.type=P,sR(o,A),ZD(a,o,P,v,x)}{var U=A.propTypes;U&&Ka(U,v,"prop",gr(A))}var W=jR(h.type,null,v,o,o.mode,x);return W.ref=o.ref,W.return=o,o.child=W,W}{var re=h.type,ue=re.propTypes;ue&&Ka(ue,v,"prop",gr(re))}var Te=a.child,we=hR(a,x);if(!we){var je=Te.memoizedProps,Ge=h.compare;if(Ge=Ge!==null?Ge:kd,Ge(je,v)&&a.ref===o.ref)return $g(a,o,x)}o.flags|=Pc;var et=Q2(Te,v);return et.ref=o.ref,et.return=o,o.child=et,et}function ZD(a,o,h,v,x){if(o.type!==o.elementType){var A=o.elementType;if(A.$$typeof===hr){var P=A,U=P._payload,W=P._init;try{A=W(U)}catch{A=null}var re=A&&A.propTypes;re&&Ka(re,v,"prop",gr(A))}}if(a!==null){var ue=a.memoizedProps;if(kd(ue,v)&&a.ref===o.ref&&o.type===a.type)if(op=!1,o.pendingProps=v=ue,hR(a,x))(a.flags&vh)!==Dn&&(op=!0);else return o.lanes=a.lanes,$g(a,o,x)}return iR(a,o,h,v,x)}function XD(a,o,h){var v=o.pendingProps,x=v.children,A=a!==null?a.memoizedState:null;if(v.mode==="hidden"||ye)if((o.mode&Pr)===Fn){var P={baseLanes:vt,cachePool:null,transitions:null};o.memoizedState=P,EE(o,h)}else if(Is(h,Fl)){var Te={baseLanes:vt,cachePool:null,transitions:null};o.memoizedState=Te;var we=A!==null?A.baseLanes:h;EE(o,we)}else{var U=null,W;if(A!==null){var re=A.baseLanes;W=zn(re,h)}else W=h;o.lanes=o.childLanes=Fl;var ue={baseLanes:W,cachePool:U,transitions:null};return o.memoizedState=ue,o.updateQueue=null,EE(o,W),null}else{var je;A!==null?(je=zn(A.baseLanes,h),o.memoizedState=null):je=h,EE(o,je)}return Sc(a,o,x,h),o.child}function xX(a,o,h){var v=o.pendingProps;return Sc(a,o,v,h),o.child}function CX(a,o,h){var v=o.pendingProps.children;return Sc(a,o,v,h),o.child}function NX(a,o,h){{o.flags|=wr;{var v=o.stateNode;v.effectDuration=0,v.passiveEffectDuration=0}}var x=o.pendingProps,A=x.children;return Sc(a,o,A,h),o.child}function QD(a,o){var h=o.ref;(a===null&&h!==null||a!==null&&a.ref!==h)&&(o.flags|=Uo,o.flags|=tc)}function iR(a,o,h,v,x){if(o.type!==o.elementType){var A=h.propTypes;A&&Ka(A,v,"prop",gr(h))}var P;{var U=I1(o,h,!0);P=Tg(o,U)}var W,re;Mg(o,x),Bv(o);{if(aN.current=o,_i(!0),W=J1(a,o,h,v,P,x),re=eb(),o.mode&Ii){Na(!0);try{W=J1(a,o,h,v,P,x),re=eb()}finally{Na(!1)}}_i(!1)}return vi(),a!==null&&!op?(W4(a,o,x),$g(a,o,x)):(zr()&&re&&p4(o),o.flags|=Pc,Sc(a,o,W,x),o.child)}function JD(a,o,h,v,x){{switch($J(o)){case!1:{var A=o.stateNode,P=o.type,U=new P(o.memoizedProps,A.context),W=U.state;A.updater.enqueueSetState(A,W,null);break}case!0:{o.flags|=Hr,o.flags|=Pi;var re=new Error("Simulated error coming from DevTools"),ue=Vv(x);o.lanes=zn(o.lanes,ue);var Te=J7(o,Xl(re,o),ue);_4(o,Te);break}}if(o.type!==o.elementType){var we=h.propTypes;we&&Ka(we,v,"prop",gr(h))}}var je;zd(h)?(je=!0,t5(o)):je=!1,Mg(o,x);var Ge=o.stateNode,et;Ge===null?(mE(a,o),Z_(o,h,v),A2(o,h,v,x),et=!0):a===null?et=Y7(o,h,v,x):et=q7(a,o,h,v,x);var dn=oR(a,o,h,et,je,x);{var Yn=o.stateNode;et&&Yn.props!==v&&(Y2||l("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xn(o)||"a component"),Y2=!0)}return dn}function oR(a,o,h,v,x,A){QD(a,o);var P=(o.flags&Hr)!==Dn;if(!v&&!P)return x&&Uf(o,h,!1),$g(a,o,A);var U=o.stateNode;aN.current=o;var W;if(P&&typeof h.getDerivedStateFromError!="function")W=null,Hi();else{Bv(o);{if(_i(!0),W=U.render(),o.mode&Ii){Na(!0);try{U.render()}finally{Na(!1)}}_i(!1)}vi()}return o.flags|=Pc,a!==null&&P?SX(a,o,W,A):Sc(a,o,W,A),o.memoizedState=U.state,x&&Uf(o,h,!0),o.child}function eP(a){var o=a.stateNode;o.pendingContext?_s(a,o.pendingContext,o.pendingContext!==o.context):o.context&&_s(a,o.context,!1),F4(a,o.containerInfo)}function wX(a,o,h){if(eP(o),a===null)throw new Error("Should have a current fiber. This is a bug in React.");var v=o.pendingProps,x=o.memoizedState,A=x.element;w4(a,o),p5(o,v,null,h);var P=o.memoizedState;o.stateNode;var U=P.element;if(x.isDehydrated){var W={element:U,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},re=o.updateQueue;if(re.baseState=W,o.memoizedState=W,o.flags&Ef){var ue=Xl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),o);return tP(a,o,U,h,ue)}else if(U!==A){var Te=Xl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o);return tP(a,o,U,h,Te)}else{$7(o);var we=eE(o,null,U,h);o.child=we;for(var je=we;je;)je.flags=je.flags&~mi|Tf,je=je.sibling}}else{if(Tm(),U===A)return $g(a,o,h);Sc(a,o,U,h)}return o.child}function tP(a,o,h,v,x){return Tm(),gc(x),o.flags|=Ef,Sc(a,o,h,v),o.child}function _X(a,o,h){B4(o),a===null&&b4(o);var v=o.type,x=o.pendingProps,A=a!==null?a.memoizedProps:null,P=x.children,U=l2(v,x);return U?P=null:A!==null&&l2(v,A)&&(o.flags|=Mv),QD(a,o),Sc(a,o,P,h),o.child}function EX(a,o){return a===null&&b4(o),null}function TX(a,o,h,v){mE(a,o);var x=o.pendingProps,A=h,P=A._payload,U=A._init,W=U(P);o.type=W;var re=o.tag=EJ(W),ue=Zo(W,x),Te;switch(re){case d:return sR(o,W),o.type=W=Y5(W),Te=iR(null,o,W,ue,v),Te;case m:return o.type=W=FR(W),Te=JD(null,o,W,ue,v),Te;case z:return o.type=W=zR(W),Te=qD(null,o,W,ue,v),Te;case K:{if(o.type!==o.elementType){var we=W.propTypes;we&&Ka(we,ue,"prop",gr(W))}return Te=KD(null,o,W,Zo(W.type,ue),v),Te}}var je="";throw W!==null&&typeof W=="object"&&W.$$typeof===hr&&(je=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+W+". "+("Lazy element type must resolve to a class or function."+je))}function RX(a,o,h,v,x){mE(a,o),o.tag=m;var A;return zd(h)?(A=!0,t5(o)):A=!1,Mg(o,x),Z_(o,h,v),A2(o,h,v,x),oR(null,o,h,!0,A,x)}function kX(a,o,h,v){mE(a,o);var x=o.pendingProps,A;{var P=I1(o,h,!1);A=Tg(o,P)}Mg(o,v);var U,W;Bv(o);{if(h.prototype&&typeof h.prototype.render=="function"){var re=gr(h)||"Unknown";eR[re]||(l("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",re,re),eR[re]=!0)}o.mode&Ii&&no.recordLegacyContextWarning(o,null),_i(!0),aN.current=o,U=J1(null,o,h,x,A,v),W=eb(),_i(!1)}if(vi(),o.flags|=Pc,typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){var ue=gr(h)||"Unknown";iN[ue]||(l("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ue,ue,ue),iN[ue]=!0)}if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){{var Te=gr(h)||"Unknown";iN[Te]||(l("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Te,Te,Te),iN[Te]=!0)}o.tag=m,o.memoizedState=null,o.updateQueue=null;var we=!1;return zd(h)?(we=!0,t5(o)):we=!1,o.memoizedState=U.state!==null&&U.state!==void 0?U.state:null,j1(o),L4(o,U),A2(o,h,x,v),oR(null,o,h,!0,we,v)}else{if(o.tag=d,o.mode&Ii){Na(!0);try{U=J1(null,o,h,x,A,v),W=eb()}finally{Na(!1)}}return zr()&&W&&p4(o),Sc(null,o,U,v),sR(o,h),o.child}}function sR(a,o){{if(o&&o.childContextTypes&&l("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),a.ref!==null){var h="",v=po();v&&(h+=`
Check the render method of \``+v+"`.");var x=v||"",A=a._debugSource;A&&(x=A.fileName+":"+A.lineNumber),rR[x]||(rR[x]=!0,l("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",h))}if(typeof o.getDerivedStateFromProps=="function"){var P=gr(o)||"Unknown";nR[P]||(l("%s: Function components do not support getDerivedStateFromProps.",P),nR[P]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var U=gr(o)||"Unknown";tR[U]||(l("%s: Function components do not support contextType.",U),tR[U]=!0)}}}var lR={dehydrated:null,treeContext:null,retryLane:eo};function uR(a){return{baseLanes:a,cachePool:yX(),transitions:null}}function AX(a,o){var h=null;return{baseLanes:zn(a.baseLanes,o),cachePool:h,transitions:a.transitions}}function OX(a,o,h,v){if(o!==null){var x=o.memoizedState;if(x===null)return!1}return D2(a,M2)}function LX(a,o){return Lf(a.childLanes,o)}function nP(a,o,h){var v=o.pendingProps;UJ(o)&&(o.flags|=Hr);var x=rf.current,A=!1,P=(o.flags&Hr)!==Dn;if(P||OX(x,a)?(A=!0,o.flags&=~Hr):(a===null||a.memoizedState!==null)&&(x=U4(x,N5)),x=K1(x),Wf(o,x),a===null){b4(o);var U=o.memoizedState;if(U!==null){var W=U.dehydrated;if(W!==null)return FX(o,W)}var re=v.children,ue=v.fallback;if(A){var Te=MX(o,re,ue,h),we=o.child;return we.memoizedState=uR(h),o.memoizedState=lR,Te}else return cR(o,re)}else{var je=a.memoizedState;if(je!==null){var Ge=je.dehydrated;if(Ge!==null)return zX(a,o,P,v,Ge,je,h)}if(A){var et=v.fallback,dn=v.children,Yn=PX(a,o,dn,et,h),An=o.child,ta=a.child.memoizedState;return An.memoizedState=ta===null?uR(h):AX(ta,h),An.childLanes=LX(a,h),o.memoizedState=lR,Yn}else{var Wr=v.children,Fe=DX(a,o,Wr,h);return o.memoizedState=null,Fe}}}function cR(a,o,h){var v=a.mode,x={mode:"visible",children:o},A=fR(x,v);return A.return=a,a.child=A,A}function MX(a,o,h,v){var x=a.mode,A=a.child,P={mode:"hidden",children:o},U,W;return(x&Pr)===Fn&&A!==null?(U=A,U.childLanes=vt,U.pendingProps=P,a.mode&Jr&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=0,U.treeBaseDuration=0),W=sb(h,x,v,null)):(U=fR(P,x),W=sb(h,x,v,null)),U.return=a,W.return=a,U.sibling=W,a.child=U,W}function fR(a,o,h){return rI(a,o,vt,null)}function rP(a,o){return Q2(a,o)}function DX(a,o,h,v){var x=a.child,A=x.sibling,P=rP(x,{mode:"visible",children:h});if((o.mode&Pr)===Fn&&(P.lanes=v),P.return=o,P.sibling=null,A!==null){var U=o.deletions;U===null?(o.deletions=[A],o.flags|=mh):U.push(A)}return o.child=P,P}function PX(a,o,h,v,x){var A=o.mode,P=a.child,U=P.sibling,W={mode:"hidden",children:h},re;if((A&Pr)===Fn&&o.child!==P){var ue=o.child;re=ue,re.childLanes=vt,re.pendingProps=W,o.mode&Jr&&(re.actualDuration=0,re.actualStartTime=-1,re.selfBaseDuration=P.selfBaseDuration,re.treeBaseDuration=P.treeBaseDuration),o.deletions=null}else re=rP(P,W),re.subtreeFlags=P.subtreeFlags&cl;var Te;return U!==null?Te=Q2(U,v):(Te=sb(v,A,x,null),Te.flags|=mi),Te.return=o,re.return=o,re.sibling=Te,o.child=re,Te}function pE(a,o,h,v){v!==null&&gc(v),Ig(o,a.child,null,h);var x=o.pendingProps,A=x.children,P=cR(o,A);return P.flags|=mi,o.memoizedState=null,P}function IX(a,o,h,v,x){var A=o.mode,P={mode:"visible",children:h},U=fR(P,A),W=sb(v,A,x,null);return W.flags|=mi,U.return=o,W.return=o,U.sibling=W,o.child=U,(o.mode&Pr)!==Fn&&Ig(o,a.child,null,x),W}function FX(a,o,h){return(a.mode&Pr)===Fn?(l("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),a.lanes=ir):O1(o)?a.lanes=xd:a.lanes=Fl,null}function zX(a,o,h,v,x,A,P){if(h)if(o.flags&Ef){o.flags&=~Ef;var Fe=zm(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return pE(a,o,P,Fe)}else{if(o.memoizedState!==null)return o.child=a.child,o.flags|=Hr,null;var tt=v.children,ze=v.fallback,Mt=IX(a,o,tt,ze,P),hn=o.child;return hn.memoizedState=uR(P),o.memoizedState=lR,Mt}else{if(z7(),(o.mode&Pr)===Fn)return pE(a,o,P,null);if(O1(x)){var U,W,re;{var ue=i4(x);U=ue.digest,W=ue.message,re=ue.stack}var Te;W?Te=new Error(W):Te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var we=zm(Te,U,re);return pE(a,o,P,we)}var je=Is(P,a.childLanes);if(op||je){var Ge=_E();if(Ge!==null){var et=wd(Ge,P);if(et!==eo&&et!==A.retryLane){A.retryLane=et;var dn=ca;wl(a,et),Xs(Ge,a,et,dn)}}LR();var Yn=zm(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return pE(a,o,P,Yn)}else if(Wx(x)){o.flags|=Hr,o.child=a.child;var An=uJ.bind(null,a);return Ng(x,An),null}else{U7(o,x,A.treeContext);var ta=v.children,Wr=cR(o,ta);return Wr.flags|=Tf,Wr}}}function aP(a,o,h){a.lanes=zn(a.lanes,o);var v=a.alternate;v!==null&&(v.lanes=zn(v.lanes,o)),x4(a.return,o,h)}function BX(a,o,h){for(var v=o;v!==null;){if(v.tag===G){var x=v.memoizedState;x!==null&&aP(v,h,a)}else if(v.tag===oe)aP(v,h,a);else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;v=v.return}v.sibling.return=v.return,v=v.sibling}}function $X(a){for(var o=a,h=null;o!==null;){var v=o.alternate;v!==null&&w5(v)===null&&(h=o),o=o.sibling}return h}function UX(a){if(a!==void 0&&a!=="forwards"&&a!=="backwards"&&a!=="together"&&!aR[a])if(aR[a]=!0,typeof a=="string")switch(a.toLowerCase()){case"together":case"forwards":case"backwards":{l('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',a,a.toLowerCase());break}case"forward":case"backward":{l('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',a,a.toLowerCase());break}default:l('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a);break}else l('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a)}function HX(a,o){a!==void 0&&!hE[a]&&(a!=="collapsed"&&a!=="hidden"?(hE[a]=!0,l('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',a)):o!=="forwards"&&o!=="backwards"&&(hE[a]=!0,l('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',a)))}function iP(a,o){{var h=Qn(a),v=!h&&typeof bs(a)=="function";if(h||v){var x=h?"array":"iterable";return l("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",x,o,x),!1}}return!0}function jX(a,o){if((o==="forwards"||o==="backwards")&&a!==void 0&&a!==null&&a!==!1)if(Qn(a)){for(var h=0;h<a.length;h++)if(!iP(a[h],h))return}else{var v=bs(a);if(typeof v=="function"){var x=v.call(a);if(x)for(var A=x.next(),P=0;!A.done;A=x.next()){if(!iP(A.value,P))return;P++}}else l('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o)}}function dR(a,o,h,v,x){var A=a.memoizedState;A===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:x}:(A.isBackwards=o,A.rendering=null,A.renderingStartTime=0,A.last=v,A.tail=h,A.tailMode=x)}function oP(a,o,h){var v=o.pendingProps,x=v.revealOrder,A=v.tail,P=v.children;UX(x),HX(A,x),jX(P,x),Sc(a,o,P,h);var U=rf.current,W=D2(U,M2);if(W)U=Fg(U,M2),o.flags|=Hr;else{var re=a!==null&&(a.flags&Hr)!==Dn;re&&BX(o,o.child,h),U=K1(U)}if(Wf(o,U),(o.mode&Pr)===Fn)o.memoizedState=null;else switch(x){case"forwards":{var ue=$X(o.child),Te;ue===null?(Te=o.child,o.child=null):(Te=ue.sibling,ue.sibling=null),dR(o,!1,Te,ue,A);break}case"backwards":{var we=null,je=o.child;for(o.child=null;je!==null;){var Ge=je.alternate;if(Ge!==null&&w5(Ge)===null){o.child=je;break}var et=je.sibling;je.sibling=we,we=je,je=et}dR(o,!0,we,null,A);break}case"together":{dR(o,!1,null,null,void 0);break}default:o.memoizedState=null}return o.child}function VX(a,o,h){F4(o,o.stateNode.containerInfo);var v=o.pendingProps;return a===null?o.child=Ig(o,null,v,h):Sc(a,o,v,h),o.child}var sP=!1;function GX(a,o,h){var v=o.type,x=v._context,A=o.pendingProps,P=o.memoizedProps,U=A.value;{"value"in A||sP||(sP=!0,l("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var W=o.type.propTypes;W&&Ka(W,A,"prop","Context.Provider")}if(S4(o,x,U),P!==null){var re=P.value;if(ss(re,U)){if(P.children===A.children&&!S2())return $g(a,o,h)}else Jh(o,x,h)}var ue=A.children;return Sc(a,o,ue,h),o.child}var lP=!1;function WX(a,o,h){var v=o.type;v._context===void 0?v!==v.Consumer&&(lP||(lP=!0,l("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):v=v._context;var x=o.pendingProps,A=x.children;typeof A!="function"&&l("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Mg(o,h);var P=zi(v);Bv(o);var U;return aN.current=o,_i(!0),U=A(P),_i(!1),vi(),o.flags|=Pc,Sc(a,o,U,h),o.child}function oN(){op=!0}function mE(a,o){(o.mode&Pr)===Fn&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=mi)}function $g(a,o,h){return a!==null&&(o.dependencies=a.dependencies),Hi(),bN(o.lanes),Is(h,o.childLanes)?(K7(a,o),o.child):null}function YX(a,o,h){{var v=o.return;if(v===null)throw new Error("Cannot swap the root fiber.");if(a.alternate=null,o.alternate=null,h.index=o.index,h.sibling=o.sibling,h.return=o.return,h.ref=o.ref,o===v.child)v.child=h;else{var x=v.child;if(x===null)throw new Error("Expected parent to have a child.");for(;x.sibling!==o;)if(x=x.sibling,x===null)throw new Error("Expected to find the previous sibling.");x.sibling=h}var A=v.deletions;return A===null?(v.deletions=[a],v.flags|=mh):A.push(a),h.flags|=mi,h}}function hR(a,o){var h=a.lanes;return!!Is(h,o)}function qX(a,o,h){switch(o.tag){case S:eP(o),o.stateNode,Tm();break;case w:B4(o);break;case m:{var v=o.type;zd(v)&&t5(o);break}case N:F4(o,o.stateNode.containerInfo);break;case F:{var x=o.memoizedProps.value,A=o.type._context;S4(o,A,x);break}case H:{var P=Is(h,o.childLanes);P&&(o.flags|=wr);{var U=o.stateNode;U.effectDuration=0,U.passiveEffectDuration=0}}break;case G:{var W=o.memoizedState;if(W!==null){if(W.dehydrated!==null)return Wf(o,K1(rf.current)),o.flags|=Hr,null;var re=o.child,ue=re.childLanes;if(Is(h,ue))return nP(a,o,h);Wf(o,K1(rf.current));var Te=$g(a,o,h);return Te!==null?Te.sibling:null}else Wf(o,K1(rf.current));break}case oe:{var we=(a.flags&Hr)!==Dn,je=Is(h,o.childLanes);if(we){if(je)return oP(a,o,h);o.flags|=Hr}var Ge=o.memoizedState;if(Ge!==null&&(Ge.rendering=null,Ge.tail=null,Ge.lastEffect=null),Wf(o,rf.current),je)break;return null}case de:case Se:return o.lanes=vt,XD(a,o,h)}return $g(a,o,h)}function uP(a,o,h){if(o._debugNeedsRemount&&a!==null)return YX(a,o,jR(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes));if(a!==null){var v=a.memoizedProps,x=o.pendingProps;if(v!==x||S2()||o.type!==a.type)op=!0;else{var A=hR(a,h);if(!A&&(o.flags&Hr)===Dn)return op=!1,qX(a,o,h);(a.flags&vh)!==Dn?op=!0:op=!1}}else if(op=!1,zr()&&L7(o)){var P=o.index,U=M7();U_(o,U,P)}switch(o.lanes=vt,o.tag){case b:return kX(a,o,o.type,h);case ne:{var W=o.elementType;return TX(a,o,W,h)}case d:{var re=o.type,ue=o.pendingProps,Te=o.elementType===re?ue:Zo(re,ue);return iR(a,o,re,Te,h)}case m:{var we=o.type,je=o.pendingProps,Ge=o.elementType===we?je:Zo(we,je);return JD(a,o,we,Ge,h)}case S:return wX(a,o,h);case w:return _X(a,o,h);case T:return EX(a,o);case G:return nP(a,o,h);case N:return VX(a,o,h);case z:{var et=o.type,dn=o.pendingProps,Yn=o.elementType===et?dn:Zo(et,dn);return qD(a,o,et,Yn,h)}case L:return xX(a,o,h);case M:return CX(a,o,h);case H:return NX(a,o,h);case F:return GX(a,o,h);case B:return WX(a,o,h);case K:{var An=o.type,ta=o.pendingProps,Wr=Zo(An,ta);if(o.type!==o.elementType){var Fe=An.propTypes;Fe&&Ka(Fe,Wr,"prop",gr(An))}return Wr=Zo(An.type,Wr),KD(a,o,An,Wr,h)}case Z:return ZD(a,o,o.type,o.pendingProps,h);case ie:{var tt=o.type,ze=o.pendingProps,Mt=o.elementType===tt?ze:Zo(tt,ze);return RX(a,o,tt,Mt,h)}case oe:return oP(a,o,h);case Ae:break;case de:return XD(a,o,h)}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $5(a){a.flags|=wr}function cP(a){a.flags|=Uo,a.flags|=tc}var fP,pR,dP,hP;fP=function(a,o,h,v){for(var x=o.child;x!==null;){if(x.tag===w||x.tag===T)qC(a,x.stateNode);else if(x.tag!==N){if(x.child!==null){x.child.return=x,x=x.child;continue}}if(x===o)return;for(;x.sibling===null;){if(x.return===null||x.return===o)return;x=x.return}x.sibling.return=x.return,x=x.sibling}},pR=function(a,o){},dP=function(a,o,h,v,x){var A=a.memoizedProps;if(A!==v){var P=o.stateNode,U=z4(),W=ZC(P,h,A,v,x,U);o.updateQueue=W,W&&$5(o)}},hP=function(a,o,h,v){h!==v&&$5(o)};function sN(a,o){if(!zr())switch(a.tailMode){case"hidden":{for(var h=a.tail,v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?a.tail=null:v.sibling=null;break}case"collapsed":{for(var x=a.tail,A=null;x!==null;)x.alternate!==null&&(A=x),x=x.sibling;A===null?!o&&a.tail!==null?a.tail.sibling=null:a.tail=null:A.sibling=null;break}}}function Ql(a){var o=a.alternate!==null&&a.alternate.child===a.child,h=vt,v=Dn;if(o){if((a.mode&Jr)!==Fn){for(var W=a.selfBaseDuration,re=a.child;re!==null;)h=zn(h,zn(re.lanes,re.childLanes)),v|=re.subtreeFlags&cl,v|=re.flags&cl,W+=re.treeBaseDuration,re=re.sibling;a.treeBaseDuration=W}else for(var ue=a.child;ue!==null;)h=zn(h,zn(ue.lanes,ue.childLanes)),v|=ue.subtreeFlags&cl,v|=ue.flags&cl,ue.return=a,ue=ue.sibling;a.subtreeFlags|=v}else{if((a.mode&Jr)!==Fn){for(var x=a.actualDuration,A=a.selfBaseDuration,P=a.child;P!==null;)h=zn(h,zn(P.lanes,P.childLanes)),v|=P.subtreeFlags,v|=P.flags,x+=P.actualDuration,A+=P.treeBaseDuration,P=P.sibling;a.actualDuration=x,a.treeBaseDuration=A}else for(var U=a.child;U!==null;)h=zn(h,zn(U.lanes,U.childLanes)),v|=U.subtreeFlags,v|=U.flags,U.return=a,U=U.sibling;a.subtreeFlags|=v}return a.childLanes=h,o}function KX(a,o,h){if(G_()&&(o.mode&Pr)!==Fn&&(o.flags&Hr)===Dn)return W_(o),Tm(),o.flags|=Ef|Dv|Pi,!1;var v=l5(o);if(h!==null&&h.dehydrated!==null)if(a===null){if(!v)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(j7(o),Ql(o),(o.mode&Jr)!==Fn){var x=h!==null;if(x){var A=o.child;A!==null&&(o.treeBaseDuration-=A.treeBaseDuration)}}return!1}else{if(Tm(),(o.flags&Hr)===Dn&&(o.memoizedState=null),o.flags|=wr,Ql(o),(o.mode&Jr)!==Fn){var P=h!==null;if(P){var U=o.child;U!==null&&(o.treeBaseDuration-=U.treeBaseDuration)}}return!1}else return u5(),!0}function pP(a,o,h){var v=o.pendingProps;switch(m4(o),o.tag){case b:case ne:case Z:case d:case z:case L:case M:case H:case B:case K:return Ql(o),null;case m:{var x=o.type;return zd(x)&&F1(o),Ql(o),null}case S:{var A=o.stateNode;if(Y1(o),x2(o),P2(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),a===null||a.child===null){var P=l5(o);if(P)$5(o);else if(a!==null){var U=a.memoizedState;(!U.isDehydrated||(o.flags&Ef)!==Dn)&&(o.flags|=md,u5())}}return pR(a,o),Ql(o),null}case w:{q1(o);var W=tE(),re=o.type;if(a!==null&&o.stateNode!=null)dP(a,o,re,v,W),a.ref!==o.ref&&cP(o);else{if(!v){if(o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ql(o),null}var ue=z4(),Te=l5(o);if(Te)H7(o,W,ue)&&$5(o);else{var we=YC(re,v,W,ue,o);fP(we,o,!1,!1),o.stateNode=we,KC(we,re,v,W)&&$5(o)}o.ref!==null&&cP(o)}return Ql(o),null}case T:{var je=v;if(a&&o.stateNode!=null){var Ge=a.memoizedProps;hP(a,o,Ge,je)}else{if(typeof je!="string"&&o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var et=tE(),dn=z4(),Yn=l5(o);Yn?s5(o)&&$5(o):o.stateNode=u2(je,et,dn,o)}return Ql(o),null}case G:{zg(o);var An=o.memoizedState;if(a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){var ta=KX(a,o,An);if(!ta)return o.flags&Pi?o:null}if((o.flags&Hr)!==Dn)return o.lanes=h,(o.mode&Jr)!==Fn&&Es(o),o;var Wr=An!==null,Fe=a!==null&&a.memoizedState!==null;if(Wr!==Fe&&Wr){var tt=o.child;if(tt.flags|=Ic,(o.mode&Pr)!==Fn){var ze=a===null&&(o.memoizedProps.unstable_avoidThisFallback!==!0||!xe);ze||D2(rf.current,N5)?ZQ():LR()}}var Mt=o.updateQueue;if(Mt!==null&&(o.flags|=wr),Ql(o),(o.mode&Jr)!==Fn&&Wr){var hn=o.child;hn!==null&&(o.treeBaseDuration-=hn.treeBaseDuration)}return null}case N:return Y1(o),pR(a,o),a===null&&P1(o.stateNode.containerInfo),Ql(o),null;case F:var sn=o.type._context;return f5(sn,o),Ql(o),null;case ie:{var cr=o.type;return zd(cr)&&F1(o),Ql(o),null}case oe:{zg(o);var Nr=o.memoizedState;if(Nr===null)return Ql(o),null;var Ua=(o.flags&Hr)!==Dn,pa=Nr.rendering;if(pa===null)if(Ua)sN(Nr,!1);else{var hs=QQ()&&(a===null||(a.flags&Hr)===Dn);if(!hs)for(var ma=o.child;ma!==null;){var Qo=w5(ma);if(Qo!==null){Ua=!0,o.flags|=Hr,sN(Nr,!1);var Iu=Qo.updateQueue;return Iu!==null&&(o.updateQueue=Iu,o.flags|=wr),o.subtreeFlags=Dn,Z7(o,h),Wf(o,Fg(rf.current,M2)),o.child}ma=ma.sibling}Nr.tail!==null&&Ti()>PP()&&(o.flags|=Hr,Ua=!0,sN(Nr,!1),o.lanes=Af)}else{if(!Ua){var ru=w5(pa);if(ru!==null){o.flags|=Hr,Ua=!0;var qf=ru.updateQueue;if(qf!==null&&(o.updateQueue=qf,o.flags|=wr),sN(Nr,!0),Nr.tail===null&&Nr.tailMode==="hidden"&&!pa.alternate&&!zr())return Ql(o),null}else Ti()*2-Nr.renderingStartTime>PP()&&h!==Fl&&(o.flags|=Hr,Ua=!0,sN(Nr,!1),o.lanes=Af)}if(Nr.isBackwards)pa.sibling=o.child,o.child=pa;else{var Nc=Nr.last;Nc!==null?Nc.sibling=pa:o.child=pa,Nr.last=pa}}if(Nr.tail!==null){var wc=Nr.tail;Nr.rendering=wc,Nr.tail=wc.sibling,Nr.renderingStartTime=Ti(),wc.sibling=null;var Fu=rf.current;return Ua?Fu=Fg(Fu,M2):Fu=K1(Fu),Wf(o,Fu),wc}return Ql(o),null}case Ae:break;case de:case Se:{OR(o);var Gg=o.memoizedState,q5=Gg!==null;if(a!==null){var NN=a.memoizedState,Um=NN!==null;Um!==q5&&!ye&&(o.flags|=Ic)}return!q5||(o.mode&Pr)===Fn?Ql(o):Is($m,Fl)&&(Ql(o),o.subtreeFlags&(mi|wr)&&(o.flags|=Ic)),null}case Me:return null;case _e:return null}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ZX(a,o,h){switch(m4(o),o.tag){case m:{var v=o.type;zd(v)&&F1(o);var x=o.flags;return x&Pi?(o.flags=x&~Pi|Hr,(o.mode&Jr)!==Fn&&Es(o),o):null}case S:{o.stateNode,Y1(o),x2(o),P2();var A=o.flags;return(A&Pi)!==Dn&&(A&Hr)===Dn?(o.flags=A&~Pi|Hr,o):null}case w:return q1(o),null;case G:{zg(o);var P=o.memoizedState;if(P!==null&&P.dehydrated!==null){if(o.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Tm()}var U=o.flags;return U&Pi?(o.flags=U&~Pi|Hr,(o.mode&Jr)!==Fn&&Es(o),o):null}case oe:return zg(o),null;case N:return Y1(o),null;case F:var W=o.type._context;return f5(W,o),null;case de:case Se:return OR(o),null;case Me:return null;default:return null}}function mP(a,o,h){switch(m4(o),o.tag){case m:{var v=o.type.childContextTypes;v!=null&&F1(o);break}case S:{o.stateNode,Y1(o),x2(o),P2();break}case w:{q1(o);break}case N:Y1(o);break;case G:zg(o);break;case oe:zg(o);break;case F:var x=o.type._context;f5(x,o);break;case de:case Se:OR(o);break}}var vP=null;vP=new Set;var vE=!1,Jl=!1,XX=typeof WeakSet=="function"?WeakSet:Set,Sn=null,U5=null,H5=null;function QX(a){Dc(null,function(){throw a}),Xi()}var JX=function(a,o){if(o.props=a.memoizedProps,o.state=a.memoizedState,a.mode&Jr)try{Oi(),o.componentWillUnmount()}finally{ui(a)}else o.componentWillUnmount()};function gP(a,o){try{nb(Ai,a)}catch(h){yi(a,o,h)}}function mR(a,o,h){try{JX(a,h)}catch(v){yi(a,o,v)}}function eQ(a,o,h){try{h.componentDidMount()}catch(v){yi(a,o,v)}}function bP(a,o){try{SP(a)}catch(h){yi(a,o,h)}}function j5(a,o){var h=a.ref;if(h!==null)if(typeof h=="function"){var v;try{if(Ot&&Ut&&a.mode&Jr)try{Oi(),v=h(null)}finally{ui(a)}else v=h(null)}catch(x){yi(a,o,x)}typeof v=="function"&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xn(a))}else h.current=null}function gE(a,o,h){try{h()}catch(v){yi(a,o,v)}}var yP=!1;function tQ(a,o){WC(a.containerInfo),Sn=o,nQ();var h=yP;return yP=!1,h}function nQ(){for(;Sn!==null;){var a=Sn,o=a.child;(a.subtreeFlags&A0)!==Dn&&o!==null?(o.return=a,Sn=o):rQ()}}function rQ(){for(;Sn!==null;){var a=Sn;oa(a);try{aQ(a)}catch(h){yi(a,a.return,h)}ga();var o=a.sibling;if(o!==null){o.return=a.return,Sn=o;return}Sn=a.return}}function aQ(a){var o=a.alternate,h=a.flags;if((h&md)!==Dn){switch(oa(a),a.tag){case d:case z:case Z:break;case m:{if(o!==null){var v=o.memoizedProps,x=o.memoizedState,A=a.stateNode;a.type===a.elementType&&!Y2&&(A.props!==a.memoizedProps&&l("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xn(a)||"instance"),A.state!==a.memoizedState&&l("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xn(a)||"instance"));var P=A.getSnapshotBeforeUpdate(a.elementType===a.type?v:Zo(a.type,v),x);{var U=vP;P===void 0&&!U.has(a.type)&&(U.add(a.type),l("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Xn(a)))}A.__reactInternalSnapshotBeforeUpdate=P}break}case S:{{var W=a.stateNode;v2(W.containerInfo)}break}case w:case T:case N:case ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ga()}}function sp(a,o,h){var v=o.updateQueue,x=v!==null?v.lastEffect:null;if(x!==null){var A=x.next,P=A;do{if((P.tag&a)===a){var U=P.destroy;P.destroy=void 0,U!==void 0&&((a&Ws)!==Pu?TC(o):(a&Ai)!==Pu&&ux(o),(a&To)!==Pu&&SN(!0),gE(o,h,U),(a&To)!==Pu&&SN(!1),(a&Ws)!==Pu?D0():(a&Ai)!==Pu&&cx())}P=P.next}while(P!==A)}}function nb(a,o){var h=o.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var x=v.next,A=x;do{if((A.tag&a)===a){(a&Ws)!==Pu?$v(o):(a&Ai)!==Pu&&Up(o);var P=A.create;(a&To)!==Pu&&SN(!0),A.destroy=P(),(a&To)!==Pu&&SN(!1),(a&Ws)!==Pu?EC():(a&Ai)!==Pu&&Hp();{var U=A.destroy;if(U!==void 0&&typeof U!="function"){var W=void 0;(A.tag&Ai)!==Dn?W="useLayoutEffect":(A.tag&To)!==Dn?W="useInsertionEffect":W="useEffect";var re=void 0;U===null?re=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof U.then=="function"?re=`
It looks like you wrote `+W+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+W+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:re=" You returned: "+U,l("%s must not return anything besides a function, which is used for clean-up.%s",W,re)}}}A=A.next}while(A!==x)}}function iQ(a,o){if((o.flags&wr)!==Dn)switch(o.tag){case H:{var h=o.stateNode.passiveEffectDuration,v=o.memoizedProps,x=v.id,A=v.onPostCommit,P=Lr(),U=o.alternate===null?"mount":"update";on()&&(U="nested-update"),typeof A=="function"&&A(x,U,h,P);var W=o.return;e:for(;W!==null;){switch(W.tag){case S:var re=W.stateNode;re.passiveEffectDuration+=h;break e;case H:var ue=W.stateNode;ue.passiveEffectDuration+=h;break e}W=W.return}break}}}function oQ(a,o,h,v){if((h.flags&Pv)!==Dn)switch(h.tag){case d:case z:case Z:{if(!Jl)if(h.mode&Jr)try{Oi(),nb(Ai|$i,h)}finally{ui(h)}else nb(Ai|$i,h);break}case m:{var x=h.stateNode;if(h.flags&wr&&!Jl)if(o===null)if(h.type===h.elementType&&!Y2&&(x.props!==h.memoizedProps&&l("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xn(h)||"instance"),x.state!==h.memoizedState&&l("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xn(h)||"instance")),h.mode&Jr)try{Oi(),x.componentDidMount()}finally{ui(h)}else x.componentDidMount();else{var A=h.elementType===h.type?o.memoizedProps:Zo(h.type,o.memoizedProps),P=o.memoizedState;if(h.type===h.elementType&&!Y2&&(x.props!==h.memoizedProps&&l("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xn(h)||"instance"),x.state!==h.memoizedState&&l("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xn(h)||"instance")),h.mode&Jr)try{Oi(),x.componentDidUpdate(A,P,x.__reactInternalSnapshotBeforeUpdate)}finally{ui(h)}else x.componentDidUpdate(A,P,x.__reactInternalSnapshotBeforeUpdate)}var U=h.updateQueue;U!==null&&(h.type===h.elementType&&!Y2&&(x.props!==h.memoizedProps&&l("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xn(h)||"instance"),x.state!==h.memoizedState&&l("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xn(h)||"instance")),m5(h,U,x));break}case S:{var W=h.updateQueue;if(W!==null){var re=null;if(h.child!==null)switch(h.child.tag){case w:re=h.child.stateNode;break;case m:re=h.child.stateNode;break}m5(h,W,re)}break}case w:{var ue=h.stateNode;if(o===null&&h.flags&wr){var Te=h.type,we=h.memoizedProps;QC(ue,Te,we)}break}case T:break;case N:break;case H:{{var je=h.memoizedProps,Ge=je.onCommit,et=je.onRender,dn=h.stateNode.effectDuration,Yn=Lr(),An=o===null?"mount":"update";on()&&(An="nested-update"),typeof et=="function"&&et(h.memoizedProps.id,An,h.actualDuration,h.treeBaseDuration,h.actualStartTime,Yn);{typeof Ge=="function"&&Ge(h.memoizedProps.id,An,dn,Yn),rJ(h);var ta=h.return;e:for(;ta!==null;){switch(ta.tag){case S:var Wr=ta.stateNode;Wr.effectDuration+=dn;break e;case H:var Fe=ta.stateNode;Fe.effectDuration+=dn;break e}ta=ta.return}}}break}case G:{pQ(a,h);break}case oe:case ie:case Ae:case de:case Se:case _e:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Jl||h.flags&Uo&&SP(h)}function sQ(a){switch(a.tag){case d:case z:case Z:{if(a.mode&Jr)try{Oi(),gP(a,a.return)}finally{ui(a)}else gP(a,a.return);break}case m:{var o=a.stateNode;typeof o.componentDidMount=="function"&&eQ(a,a.return,o),bP(a,a.return);break}case w:{bP(a,a.return);break}}}function lQ(a,o){for(var h=null,v=a;;){if(v.tag===w){if(h===null){h=v;try{var x=v.stateNode;o?m2(x):Gx(v.stateNode,v.memoizedProps)}catch(P){yi(a,a.return,P)}}}else if(v.tag===T){if(h===null)try{var A=v.stateNode;o?n4(A):r4(A,v.memoizedProps)}catch(P){yi(a,a.return,P)}}else if(!((v.tag===de||v.tag===Se)&&v.memoizedState!==null&&v!==a)){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===a)return;for(;v.sibling===null;){if(v.return===null||v.return===a)return;h===v&&(h=null),v=v.return}h===v&&(h=null),v.sibling.return=v.return,v=v.sibling}}function SP(a){var o=a.ref;if(o!==null){var h=a.stateNode,v;switch(a.tag){case w:v=h;break;default:v=h}if(typeof o=="function"){var x;if(a.mode&Jr)try{Oi(),x=o(v)}finally{ui(a)}else x=o(v);typeof x=="function"&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xn(a))}else o.hasOwnProperty("current")||l("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Xn(a)),o.current=v}}function uQ(a){var o=a.alternate;o!==null&&(o.return=null),a.return=null}function xP(a){var o=a.alternate;o!==null&&(a.alternate=null,xP(o));{if(a.child=null,a.deletions=null,a.sibling=null,a.tag===w){var h=a.stateNode;h!==null&&me(h)}a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}}function cQ(a){for(var o=a.return;o!==null;){if(CP(o))return o;o=o.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function CP(a){return a.tag===w||a.tag===S||a.tag===N}function NP(a){var o=a;e:for(;;){for(;o.sibling===null;){if(o.return===null||CP(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==w&&o.tag!==T&&o.tag!==le;){if(o.flags&mi||o.child===null||o.tag===N)continue e;o.child.return=o,o=o.child}if(!(o.flags&mi))return o.stateNode}}function fQ(a){var o=cQ(a);switch(o.tag){case w:{var h=o.stateNode;o.flags&Mv&&(T1(h),o.flags&=~Mv);var v=NP(a);gR(a,v,h);break}case S:case N:{var x=o.stateNode.containerInfo,A=NP(a);vR(a,A,x);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function vR(a,o,h){var v=a.tag,x=v===w||v===T;if(x){var A=a.stateNode;o?h2(h,A,o):R1(h,A)}else if(v!==N){var P=a.child;if(P!==null){vR(P,o,h);for(var U=P.sibling;U!==null;)vR(U,o,h),U=U.sibling}}}function gR(a,o,h){var v=a.tag,x=v===w||v===T;if(x){var A=a.stateNode;o?e4(h,A,o):JC(h,A)}else if(v!==N){var P=a.child;if(P!==null){gR(P,o,h);for(var U=P.sibling;U!==null;)gR(U,o,h),U=U.sibling}}}var eu=null,lp=!1;function dQ(a,o,h){{var v=o;e:for(;v!==null;){switch(v.tag){case w:{eu=v.stateNode,lp=!1;break e}case S:{eu=v.stateNode.containerInfo,lp=!0;break e}case N:{eu=v.stateNode.containerInfo,lp=!0;break e}}v=v.return}if(eu===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");wP(a,o,h),eu=null,lp=!1}uQ(h)}function rb(a,o,h){for(var v=h.child;v!==null;)wP(a,o,v),v=v.sibling}function wP(a,o,h){switch($c(h),h.tag){case w:Jl||j5(h,o);case T:{{var v=eu,x=lp;eu=null,rb(a,o,h),eu=v,lp=x,eu!==null&&(lp?Vx(eu,h.stateNode):t4(eu,h.stateNode))}return}case le:{eu!==null&&(lp?Cl(eu,h.stateNode):p2(eu,h.stateNode));return}case N:{{var A=eu,P=lp;eu=h.stateNode.containerInfo,lp=!0,rb(a,o,h),eu=A,lp=P}return}case d:case z:case K:case Z:{if(!Jl){var U=h.updateQueue;if(U!==null){var W=U.lastEffect;if(W!==null){var re=W.next,ue=re;do{var Te=ue,we=Te.destroy,je=Te.tag;we!==void 0&&((je&To)!==Pu?gE(h,o,we):(je&Ai)!==Pu&&(ux(h),h.mode&Jr?(Oi(),gE(h,o,we),ui(h)):gE(h,o,we),cx())),ue=ue.next}while(ue!==re)}}}rb(a,o,h);return}case m:{if(!Jl){j5(h,o);var Ge=h.stateNode;typeof Ge.componentWillUnmount=="function"&&mR(h,o,Ge)}rb(a,o,h);return}case Ae:{rb(a,o,h);return}case de:{if(h.mode&Pr){var et=Jl;Jl=et||h.memoizedState!==null,rb(a,o,h),Jl=et}else rb(a,o,h);break}default:{rb(a,o,h);return}}}function hQ(a){a.memoizedState}function pQ(a,o){var h=o.memoizedState;if(h===null){var v=o.alternate;if(v!==null){var x=v.memoizedState;if(x!==null){var A=x.dehydrated;A!==null&&M1(A)}}}}function _P(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var h=a.stateNode;h===null&&(h=a.stateNode=new XX),o.forEach(function(v){var x=cJ.bind(null,a,v);if(!h.has(v)){if(h.add(v),is)if(U5!==null&&H5!==null)yN(H5,U5);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");v.then(x,x)}})}}function mQ(a,o,h){U5=h,H5=a,oa(o),EP(o,a),oa(o),U5=null,H5=null}function up(a,o,h){var v=o.deletions;if(v!==null)for(var x=0;x<v.length;x++){var A=v[x];try{dQ(a,o,A)}catch(W){yi(A,o,W)}}var P=Ds();if(o.subtreeFlags&ax)for(var U=o.child;U!==null;)oa(U),EP(U,a),U=U.sibling;oa(P)}function EP(a,o,h){var v=a.alternate,x=a.flags;switch(a.tag){case d:case z:case K:case Z:{if(up(o,a),Bm(a),x&wr){try{sp(To|$i,a,a.return),nb(To|$i,a)}catch(cr){yi(a,a.return,cr)}if(a.mode&Jr){try{Oi(),sp(Ai|$i,a,a.return)}catch(cr){yi(a,a.return,cr)}ui(a)}else try{sp(Ai|$i,a,a.return)}catch(cr){yi(a,a.return,cr)}}return}case m:{up(o,a),Bm(a),x&Uo&&v!==null&&j5(v,v.return);return}case w:{up(o,a),Bm(a),x&Uo&&v!==null&&j5(v,v.return);{if(a.flags&Mv){var A=a.stateNode;try{T1(A)}catch(cr){yi(a,a.return,cr)}}if(x&wr){var P=a.stateNode;if(P!=null){var U=a.memoizedProps,W=v!==null?v.memoizedProps:U,re=a.type,ue=a.updateQueue;if(a.updateQueue=null,ue!==null)try{Cg(P,ue,re,W,U,a)}catch(cr){yi(a,a.return,cr)}}}}return}case T:{if(up(o,a),Bm(a),x&wr){if(a.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Te=a.stateNode,we=a.memoizedProps,je=v!==null?v.memoizedProps:we;try{jx(Te,je,we)}catch(cr){yi(a,a.return,cr)}}return}case S:{if(up(o,a),Bm(a),x&wr&&v!==null){var Ge=v.memoizedState;if(Ge.isDehydrated)try{wg(o.containerInfo)}catch(cr){yi(a,a.return,cr)}}return}case N:{up(o,a),Bm(a);return}case G:{up(o,a),Bm(a);var et=a.child;if(et.flags&Ic){var dn=et.stateNode,Yn=et.memoizedState,An=Yn!==null;if(dn.isHidden=An,An){var ta=et.alternate!==null&&et.alternate.memoizedState!==null;ta||KQ()}}if(x&wr){try{hQ(a)}catch(cr){yi(a,a.return,cr)}_P(a)}return}case de:{var Wr=v!==null&&v.memoizedState!==null;if(a.mode&Pr){var Fe=Jl;Jl=Fe||Wr,up(o,a),Jl=Fe}else up(o,a);if(Bm(a),x&Ic){var tt=a.stateNode,ze=a.memoizedState,Mt=ze!==null,hn=a;if(tt.isHidden=Mt,Mt&&!Wr&&(hn.mode&Pr)!==Fn){Sn=hn;for(var sn=hn.child;sn!==null;)Sn=sn,gQ(sn),sn=sn.sibling}lQ(hn,Mt)}return}case oe:{up(o,a),Bm(a),x&wr&&_P(a);return}case Ae:return;default:{up(o,a),Bm(a);return}}}function Bm(a){var o=a.flags;if(o&mi){try{fQ(a)}catch(h){yi(a,a.return,h)}a.flags&=~mi}o&Tf&&(a.flags&=~Tf)}function vQ(a,o,h){U5=h,H5=o,Sn=a,TP(a,o,h),U5=null,H5=null}function TP(a,o,h){for(var v=(a.mode&Pr)!==Fn;Sn!==null;){var x=Sn,A=x.child;if(x.tag===de&&v){var P=x.memoizedState!==null,U=P||vE;if(U){bR(a,o,h);continue}else{var W=x.alternate,re=W!==null&&W.memoizedState!==null,ue=re||Jl,Te=vE,we=Jl;vE=U,Jl=ue,Jl&&!we&&(Sn=x,bQ(x));for(var je=A;je!==null;)Sn=je,TP(je,o,h),je=je.sibling;Sn=x,vE=Te,Jl=we,bR(a,o,h);continue}}(x.subtreeFlags&Pv)!==Dn&&A!==null?(A.return=x,Sn=A):bR(a,o,h)}}function bR(a,o,h){for(;Sn!==null;){var v=Sn;if((v.flags&Pv)!==Dn){var x=v.alternate;oa(v);try{oQ(o,x,v,h)}catch(P){yi(v,v.return,P)}ga()}if(v===a){Sn=null;return}var A=v.sibling;if(A!==null){A.return=v.return,Sn=A;return}Sn=v.return}}function gQ(a){for(;Sn!==null;){var o=Sn,h=o.child;switch(o.tag){case d:case z:case K:case Z:{if(o.mode&Jr)try{Oi(),sp(Ai,o,o.return)}finally{ui(o)}else sp(Ai,o,o.return);break}case m:{j5(o,o.return);var v=o.stateNode;typeof v.componentWillUnmount=="function"&&mR(o,o.return,v);break}case w:{j5(o,o.return);break}case de:{var x=o.memoizedState!==null;if(x){RP(a);continue}break}}h!==null?(h.return=o,Sn=h):RP(a)}}function RP(a){for(;Sn!==null;){var o=Sn;if(o===a){Sn=null;return}var h=o.sibling;if(h!==null){h.return=o.return,Sn=h;return}Sn=o.return}}function bQ(a){for(;Sn!==null;){var o=Sn,h=o.child;if(o.tag===de){var v=o.memoizedState!==null;if(v){kP(a);continue}}h!==null?(h.return=o,Sn=h):kP(a)}}function kP(a){for(;Sn!==null;){var o=Sn;oa(o);try{sQ(o)}catch(v){yi(o,o.return,v)}if(ga(),o===a){Sn=null;return}var h=o.sibling;if(h!==null){h.return=o.return,Sn=h;return}Sn=o.return}}function yQ(a,o,h,v){Sn=o,SQ(o,a,h,v)}function SQ(a,o,h,v){for(;Sn!==null;){var x=Sn,A=x.child;(x.subtreeFlags&bd)!==Dn&&A!==null?(A.return=x,Sn=A):xQ(a,o,h,v)}}function xQ(a,o,h,v){for(;Sn!==null;){var x=Sn;if((x.flags&ec)!==Dn){oa(x);try{CQ(o,x,h,v)}catch(P){yi(x,x.return,P)}ga()}if(x===a){Sn=null;return}var A=x.sibling;if(A!==null){A.return=x.return,Sn=A;return}Sn=x.return}}function CQ(a,o,h,v){switch(o.tag){case d:case z:case Z:{if(o.mode&Jr){Ys();try{nb(Ws|$i,o)}finally{Zl(o)}}else nb(Ws|$i,o);break}}}function NQ(a){Sn=a,wQ()}function wQ(){for(;Sn!==null;){var a=Sn,o=a.child;if((Sn.flags&mh)!==Dn){var h=a.deletions;if(h!==null){for(var v=0;v<h.length;v++){var x=h[v];Sn=x,TQ(x,a)}{var A=a.alternate;if(A!==null){var P=A.child;if(P!==null){A.child=null;do{var U=P.sibling;P.sibling=null,P=U}while(P!==null)}}}Sn=a}}(a.subtreeFlags&bd)!==Dn&&o!==null?(o.return=a,Sn=o):_Q()}}function _Q(){for(;Sn!==null;){var a=Sn;(a.flags&ec)!==Dn&&(oa(a),EQ(a),ga());var o=a.sibling;if(o!==null){o.return=a.return,Sn=o;return}Sn=a.return}}function EQ(a){switch(a.tag){case d:case z:case Z:{a.mode&Jr?(Ys(),sp(Ws|$i,a,a.return),Zl(a)):sp(Ws|$i,a,a.return);break}}}function TQ(a,o){for(;Sn!==null;){var h=Sn;oa(h),kQ(h,o),ga();var v=h.child;v!==null?(v.return=h,Sn=v):RQ(a)}}function RQ(a){for(;Sn!==null;){var o=Sn,h=o.sibling,v=o.return;if(xP(o),o===a){Sn=null;return}if(h!==null){h.return=v,Sn=h;return}Sn=v}}function kQ(a,o){switch(a.tag){case d:case z:case Z:{a.mode&Jr?(Ys(),sp(Ws,a,o),Zl(a)):sp(Ws,a,o);break}}}function AQ(a){switch(a.tag){case d:case z:case Z:{try{nb(Ai|$i,a)}catch(h){yi(a,a.return,h)}break}case m:{var o=a.stateNode;try{o.componentDidMount()}catch(h){yi(a,a.return,h)}break}}}function OQ(a){switch(a.tag){case d:case z:case Z:{try{nb(Ws|$i,a)}catch(o){yi(a,a.return,o)}break}}}function LQ(a){switch(a.tag){case d:case z:case Z:{try{sp(Ai|$i,a,a.return)}catch(h){yi(a,a.return,h)}break}case m:{var o=a.stateNode;typeof o.componentWillUnmount=="function"&&mR(a,a.return,o);break}}}function MQ(a){switch(a.tag){case d:case z:case Z:try{sp(Ws|$i,a,a.return)}catch(o){yi(a,a.return,o)}}}if(typeof Symbol=="function"&&Symbol.for){var lN=Symbol.for;lN("selector.component"),lN("selector.has_pseudo_class"),lN("selector.role"),lN("selector.test_id"),lN("selector.text")}var DQ=[];function PQ(){DQ.forEach(function(a){return a()})}var IQ=n.ReactCurrentActQueue;function FQ(a){{var o=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,h=typeof jest<"u";return h&&o!==!1}}function AP(){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!a&&IQ.current!==null&&l("The current testing environment is not configured to support act(...)"),a}}var zQ=Math.ceil,yR=n.ReactCurrentDispatcher,SR=n.ReactCurrentOwner,tu=n.ReactCurrentBatchConfig,cp=n.ReactCurrentActQueue,qs=0,OP=1,nu=2,Gd=4,Ug=0,uN=1,q2=2,bE=3,cN=4,LP=5,xR=6,ea=qs,xc=null,ko=null,Ks=vt,$m=vt,CR=bi(vt),Zs=Ug,fN=null,yE=vt,dN=vt,SE=vt,hN=null,lf=null,NR=0,MP=500,DP=1/0,BQ=500,Hg=null;function pN(){DP=Ti()+BQ}function PP(){return DP}var xE=!1,wR=null,V5=null,K2=!1,ab=null,mN=vt,_R=[],ER=null,$Q=50,vN=0,TR=null,RR=!1,CE=!1,UQ=50,G5=0,NE=null,gN=ca,wE=vt,IP=!1;function _E(){return xc}function Cc(){return(ea&(nu|Gd))!==qs?Ti():(gN!==ca||(gN=Ti()),gN)}function ib(a){var o=a.mode;if((o&Pr)===Fn)return ir;if((ea&nu)!==qs&&Ks!==vt)return Vv(Ks);var h=Gs()!==y4;if(h){if(tu.transition!==null){var v=tu.transition;v._updatedFibers||(v._updatedFibers=new Set),v._updatedFibers.add(a)}return wE===eo&&(wE=Ch()),wE}var x=zl();if(x!==eo)return x;var A=c2();return A}function HQ(a){var o=a.mode;return(o&Pr)===Fn?ir:bx()}function Xs(a,o,h,v){dJ(),IP&&l("useInsertionEffect must not schedule updates."),RR&&(CE=!0),Nh(a,h,v),(ea&nu)!==vt&&a===xc?mJ(o):(is&&_d(a,o,h),vJ(o),a===xc&&((ea&nu)===qs&&(dN=zn(dN,h)),Zs===cN&&ob(a,Ks)),uf(a,v),h===ir&&ea===qs&&(o.mode&Pr)===Fn&&!cp.isBatchingLegacy&&(pN(),$_()))}function jQ(a,o,h){var v=a.current;v.lanes=o,Nh(a,o,h),uf(a,h)}function VQ(a){return(ea&nu)!==qs}function uf(a,o){var h=a.callbackNode;jv(a,o);var v=Kp(a,a===xc?Ks:vt);if(v===vt){h!==null&&QP(h),a.callbackNode=null,a.callbackPriority=eo;return}var x=Of(v),A=a.callbackPriority;if(A===x&&!(cp.current!==null&&h!==PR)){h==null&&A!==ir&&l("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}h!=null&&QP(h);var P;if(x===ir)a.tag===_m?(cp.isBatchingLegacy!==null&&(cp.didScheduleLegacyUpdate=!0),$d(BP.bind(null,a))):h4(BP.bind(null,a)),cp.current!==null?cp.current.push(Yh):Hx(function(){(ea&(nu|Gd))===qs&&Yh()}),P=null;else{var U;switch($l(v)){case So:U=$p;break;case vl:U=L0;break;case fa:U=ac;break;case wh:U=M0;break;default:U=ac;break}P=IR(U,FP.bind(null,a))}a.callbackPriority=x,a.callbackNode=P}function FP(a,o){if(ur(),gN=ca,wE=vt,(ea&(nu|Gd))!==qs)throw new Error("Should not already be working.");var h=a.callbackNode,v=Vg();if(v&&a.callbackNode!==h)return null;var x=Kp(a,a===xc?Ks:vt);if(x===vt)return null;var A=!Tu(a,x)&&!gx(a,x)&&!o,P=A?eJ(a,x):TE(a,x);if(P!==Ug){if(P===q2){var U=H0(a);U!==vt&&(x=U,P=kR(a,U))}if(P===uN){var W=fN;throw Z2(a,vt),ob(a,x),uf(a,Ti()),W}if(P===xR)ob(a,x);else{var re=!Tu(a,x),ue=a.current.alternate;if(re&&!WQ(ue)){if(P=TE(a,x),P===q2){var Te=H0(a);Te!==vt&&(x=Te,P=kR(a,Te))}if(P===uN){var we=fN;throw Z2(a,vt),ob(a,x),uf(a,Ti()),we}}a.finishedWork=ue,a.finishedLanes=x,GQ(a,P,x)}}return uf(a,Ti()),a.callbackNode===h?FP.bind(null,a):null}function kR(a,o){var h=hN;if(Ri(a)){var v=Z2(a,o);v.flags|=Ef,Eg(a.containerInfo)}var x=TE(a,o);if(x!==q2){var A=lf;lf=h,A!==null&&zP(A)}return x}function zP(a){lf===null?lf=a:lf.push.apply(lf,a)}function GQ(a,o,h){switch(o){case Ug:case uN:throw new Error("Root did not complete. This is a bug in React.");case q2:{X2(a,lf,Hg);break}case bE:{if(ob(a,h),Zp(h)&&!JP()){var v=NR+MP-Ti();if(v>10){var x=Kp(a,vt);if(x!==vt)break;var A=a.suspendedLanes;if(!Nd(A,h)){Cc(),Fs(a,A);break}a.timeoutHandle=xg(X2.bind(null,a,lf,Hg),v);break}}X2(a,lf,Hg);break}case cN:{if(ob(a,h),V0(h))break;if(!JP()){var P=U0(a,h),U=P,W=Ti()-U,re=fJ(W)-W;if(re>10){a.timeoutHandle=xg(X2.bind(null,a,lf,Hg),re);break}}X2(a,lf,Hg);break}case LP:{X2(a,lf,Hg);break}default:throw new Error("Unknown root exit status.")}}function WQ(a){for(var o=a;;){if(o.flags&k0){var h=o.updateQueue;if(h!==null){var v=h.stores;if(v!==null)for(var x=0;x<v.length;x++){var A=v[x],P=A.getSnapshot,U=A.value;try{if(!ss(P(),U))return!1}catch{return!1}}}}var W=o.child;if(o.subtreeFlags&k0&&W!==null){W.return=o,o=W;continue}if(o===a)return!0;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}return!0}function ob(a,o){o=Lf(o,SE),o=Lf(o,dN),Ru(a,o)}function BP(a){if(aa(),(ea&(nu|Gd))!==qs)throw new Error("Should not already be working.");Vg();var o=Kp(a,vt);if(!Is(o,ir))return uf(a,Ti()),null;var h=TE(a,o);if(a.tag!==_m&&h===q2){var v=H0(a);v!==vt&&(o=v,h=kR(a,v))}if(h===uN){var x=fN;throw Z2(a,vt),ob(a,o),uf(a,Ti()),x}if(h===xR)throw new Error("Root did not complete. This is a bug in React.");var A=a.current.alternate;return a.finishedWork=A,a.finishedLanes=o,X2(a,lf,Hg),uf(a,Ti()),null}function YQ(a,o){o!==vt&&(Tn(a,zn(o,ir)),uf(a,Ti()),(ea&(nu|Gd))===qs&&(pN(),Yh()))}function AR(a,o){var h=ea;ea|=OP;try{return a(o)}finally{ea=h,ea===qs&&!cp.isBatchingLegacy&&(pN(),$_())}}function qQ(a,o,h,v,x){var A=zl(),P=tu.transition;try{return tu.transition=null,xo(So),a(o,h,v,x)}finally{xo(A),tu.transition=P,ea===qs&&pN()}}function jg(a){ab!==null&&ab.tag===_m&&(ea&(nu|Gd))===qs&&Vg();var o=ea;ea|=OP;var h=tu.transition,v=zl();try{return tu.transition=null,xo(So),a?a():void 0}finally{xo(v),tu.transition=h,ea=o,(ea&(nu|Gd))===qs&&Yh()}}function $P(){return(ea&(nu|Gd))!==qs}function EE(a,o){Nl(CR,$m,a),$m=zn($m,o)}function OR(a){$m=CR.current,cs(CR,a)}function Z2(a,o){a.finishedWork=null,a.finishedLanes=vt;var h=a.timeoutHandle;if(h!==f2&&(a.timeoutHandle=f2,XC(h)),ko!==null)for(var v=ko.return;v!==null;){var x=v.alternate;mP(x,v),v=v.return}xc=a;var A=Q2(a.current,null);return ko=A,Ks=$m=o,Zs=Ug,fN=null,yE=vt,dN=vt,SE=vt,hN=null,lf=null,Dg(),no.discardPendingWarnings(),A}function UP(a,o){do{var h=ko;try{if(Am(),E5(),ga(),SR.current=null,h===null||h.return===null){Zs=uN,fN=o,ko=null;return}if(Ot&&h.mode&Jr&&ds(h,!0),wt)if(vi(),o!==null&&typeof o=="object"&&typeof o.then=="function"){var v=o;uy(h,v,Ks)}else fx(h,o,Ks);bX(a,h.return,h,o,Ks),GP(h)}catch(x){o=x,ko===h&&h!==null?(h=h.return,ko=h):h=ko;continue}return}while(!0)}function HP(){var a=yR.current;return yR.current=pe,a===null?pe:a}function jP(a){yR.current=a}function KQ(){NR=Ti()}function bN(a){yE=zn(a,yE)}function ZQ(){Zs===Ug&&(Zs=bE)}function LR(){(Zs===Ug||Zs===bE||Zs===q2)&&(Zs=cN),xc!==null&&(xh(yE)||xh(dN))&&ob(xc,Ks)}function XQ(a){Zs!==cN&&(Zs=q2),hN===null?hN=[a]:hN.push(a)}function QQ(){return Zs===Ug}function TE(a,o){var h=ea;ea|=nu;var v=HP();if(xc!==a||Ks!==o){if(is){var x=a.memoizedUpdaters;x.size>0&&(yN(a,Ks),x.clear()),ku(a,o)}Hg=Qp(),Z2(a,o)}hy(o);do try{JQ();break}catch(A){UP(a,A)}while(!0);if(Am(),ea=h,jP(v),ko!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return dx(),xc=null,Ks=vt,Zs}function JQ(){for(;ko!==null;)VP(ko)}function eJ(a,o){var h=ea;ea|=nu;var v=HP();if(xc!==a||Ks!==o){if(is){var x=a.memoizedUpdaters;x.size>0&&(yN(a,Ks),x.clear()),ku(a,o)}Hg=Qp(),pN(),Z2(a,o)}hy(o);do try{tJ();break}catch(A){UP(a,A)}while(!0);return Am(),jP(v),ea=h,ko!==null?(P0(),Ug):(dx(),xc=null,Ks=vt,Zs)}function tJ(){for(;ko!==null&&!go();)VP(ko)}function VP(a){var o=a.alternate;oa(a);var h;(a.mode&Jr)!==Fn?(Bn(a),h=MR(o,a,$m),ds(a,!0)):h=MR(o,a,$m),ga(),a.memoizedProps=a.pendingProps,h===null?GP(a):ko=h,SR.current=null}function GP(a){var o=a;do{var h=o.alternate,v=o.return;if((o.flags&Dv)===Dn){oa(o);var x=void 0;if((o.mode&Jr)===Fn?x=pP(h,o,$m):(Bn(o),x=pP(h,o,$m),ds(o,!1)),ga(),x!==null){ko=x;return}}else{var A=ZX(h,o);if(A!==null){A.flags&=rx,ko=A;return}if((o.mode&Jr)!==Fn){ds(o,!1);for(var P=o.actualDuration,U=o.child;U!==null;)P+=U.actualDuration,U=U.sibling;o.actualDuration=P}if(v!==null)v.flags|=Dv,v.subtreeFlags=Dn,v.deletions=null;else{Zs=xR,ko=null;return}}var W=o.sibling;if(W!==null){ko=W;return}o=v,ko=o}while(o!==null);Zs===Ug&&(Zs=LP)}function X2(a,o,h){var v=zl(),x=tu.transition;try{tu.transition=null,xo(So),nJ(a,o,h,v)}finally{tu.transition=x,xo(v)}return null}function nJ(a,o,h,v){do Vg();while(ab!==null);if(hJ(),(ea&(nu|Gd))!==qs)throw new Error("Should not already be working.");var x=a.finishedWork,A=a.finishedLanes;if(zv(A),x===null)return ly(),null;if(A===vt&&l("root.finishedLanes should not be empty during a commit. This is a bug in React."),a.finishedWork=null,a.finishedLanes=vt,x===a.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");a.callbackNode=null,a.callbackPriority=eo;var P=zn(x.lanes,x.childLanes);Xp(a,P),a===xc&&(xc=null,ko=null,Ks=vt),((x.subtreeFlags&bd)!==Dn||(x.flags&bd)!==Dn)&&(K2||(K2=!0,ER=h,IR(ac,function(){return Vg(),null})));var U=(x.subtreeFlags&(A0|ax|Pv|bd))!==Dn,W=(x.flags&(A0|ax|Pv|bd))!==Dn;if(U||W){var re=tu.transition;tu.transition=null;var ue=zl();xo(So);var Te=ea;ea|=Gd,SR.current=null,tQ(a,x),$a(),mQ(a,x,A),$x(a.containerInfo),a.current=x,RC(A),vQ(x,a,A),cy(),sx(),ea=Te,xo(ue),tu.transition=re}else a.current=x,$a();var we=K2;if(K2?(K2=!1,ab=a,mN=A):(G5=0,NE=null),P=a.pendingLanes,P===vt&&(V5=null),we||KP(a.current,!1),Ho(x.stateNode,v),is&&a.memoizedUpdaters.clear(),PQ(),uf(a,Ti()),o!==null)for(var je=a.onRecoverableError,Ge=0;Ge<o.length;Ge++){var et=o[Ge],dn=et.stack,Yn=et.digest;je(et.value,{componentStack:dn,digest:Yn})}if(xE){xE=!1;var An=wR;throw wR=null,An}return Is(mN,ir)&&a.tag!==_m&&Vg(),P=a.pendingLanes,Is(P,ir)?(Gr(),a===TR?vN++:(vN=0,TR=a)):vN=0,Yh(),ly(),null}function Vg(){if(ab!==null){var a=$l(mN),o=OC(fa,a),h=tu.transition,v=zl();try{return tu.transition=null,xo(o),aJ()}finally{xo(v),tu.transition=h}}return!1}function rJ(a){_R.push(a),K2||(K2=!0,IR(ac,function(){return Vg(),null}))}function aJ(){if(ab===null)return!1;var a=ER;ER=null;var o=ab,h=mN;if(ab=null,mN=vt,(ea&(nu|Gd))!==qs)throw new Error("Cannot flush passive effects while already rendering.");RR=!0,CE=!1,fy(h);var v=ea;ea|=Gd,NQ(o.current),yQ(o,o.current,h,a);{var x=_R;_R=[];for(var A=0;A<x.length;A++){var P=x[A];iQ(o,P)}}dy(),KP(o.current,!0),ea=v,Yh(),CE?o===NE?G5++:(G5=0,NE=o):G5=0,RR=!1,CE=!1,en(o);{var U=o.current.stateNode;U.effectDuration=0,U.passiveEffectDuration=0}return!0}function WP(a){return V5!==null&&V5.has(a)}function iJ(a){V5===null?V5=new Set([a]):V5.add(a)}function oJ(a){xE||(xE=!0,wR=a)}var sJ=oJ;function YP(a,o,h){var v=Xl(h,o),x=dE(a,v,ir),A=Bi(a,x,ir),P=Cc();A!==null&&(Nh(A,ir,P),uf(A,P))}function yi(a,o,h){if(QX(h),SN(!1),a.tag===S){YP(a,a,h);return}var v=null;for(v=o;v!==null;){if(v.tag===S){YP(v,a,h);return}else if(v.tag===m){var x=v.type,A=v.stateNode;if(typeof x.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&!WP(A)){var P=Xl(h,a),U=J7(v,P,ir),W=Bi(v,U,ir),re=Cc();W!==null&&(Nh(W,ir,re),uf(W,re));return}}v=v.return}l(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,h)}function lJ(a,o,h){var v=a.pingCache;v!==null&&v.delete(o);var x=Cc();Fs(a,h),gJ(a),xc===a&&Nd(Ks,h)&&(Zs===cN||Zs===bE&&Zp(Ks)&&Ti()-NR<MP?Z2(a,vt):SE=zn(SE,h)),uf(a,x)}function qP(a,o){o===eo&&(o=HQ(a));var h=Cc(),v=wl(a,o);v!==null&&(Nh(v,o,h),uf(v,h))}function uJ(a){var o=a.memoizedState,h=eo;o!==null&&(h=o.retryLane),qP(a,h)}function cJ(a,o){var h=eo,v;switch(a.tag){case G:v=a.stateNode;var x=a.memoizedState;x!==null&&(h=x.retryLane);break;case oe:v=a.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}v!==null&&v.delete(o),qP(a,h)}function fJ(a){return a<120?120:a<480?480:a<1080?1080:a<1920?1920:a<3e3?3e3:a<4320?4320:zQ(a/1960)*1960}function dJ(){if(vN>$Q)throw vN=0,TR=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");G5>UQ&&(G5=0,NE=null,l("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function hJ(){no.flushLegacyContextWarning(),no.flushPendingUnsafeLifecycleWarnings()}function KP(a,o){oa(a),RE(a,_n,LQ),o&&RE(a,gh,MQ),RE(a,_n,AQ),o&&RE(a,gh,OQ),ga()}function RE(a,o,h){for(var v=a,x=null;v!==null;){var A=v.subtreeFlags&o;v!==x&&v.child!==null&&A!==Dn?v=v.child:((v.flags&o)!==Dn&&h(v),v.sibling!==null?v=v.sibling:v=x=v.return)}}var kE=null;function ZP(a){{if((ea&nu)!==qs||!(a.mode&Pr))return;var o=a.tag;if(o!==b&&o!==S&&o!==m&&o!==d&&o!==z&&o!==K&&o!==Z)return;var h=Xn(a)||"ReactComponent";if(kE!==null){if(kE.has(h))return;kE.add(h)}else kE=new Set([h]);var v=qr;try{oa(a),l("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{v?oa(a):ga()}}}var MR;{var pJ=null;MR=function(a,o,h){var v=aI(pJ,o);try{return uP(a,o,h)}catch(A){if(B7()||A!==null&&typeof A=="object"&&typeof A.then=="function")throw A;if(Am(),E5(),mP(a,o),aI(o,v),o.mode&Jr&&Bn(o),Dc(null,uP,null,a,o,h),Q()){var x=Xi();typeof x=="object"&&x!==null&&x._suppressLogging&&typeof A=="object"&&A!==null&&!A._suppressLogging&&(A._suppressLogging=!0)}throw A}}}var XP=!1,DR;DR=new Set;function mJ(a){if(ts&&!u())switch(a.tag){case d:case z:case Z:{var o=ko&&Xn(ko)||"Unknown",h=o;if(!DR.has(h)){DR.add(h);var v=Xn(a)||"Unknown";l("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",v,o,o)}break}case m:{XP||(l("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),XP=!0);break}}}function yN(a,o){if(is){var h=a.memoizedUpdaters;h.forEach(function(v){_d(a,v,o)})}}var PR={};function IR(a,o){{var h=cp.current;return h!==null?(h.push(o),PR):rs(a,o)}}function QP(a){if(a!==PR)return rc(a)}function JP(){return cp.current!==null}function vJ(a){{if(a.mode&Pr){if(!AP())return}else if(!FQ()||ea!==qs||a.tag!==d&&a.tag!==z&&a.tag!==Z)return;if(cp.current===null){var o=qr;try{oa(a),l(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Xn(a))}finally{o?oa(a):ga()}}}}function gJ(a){a.tag!==_m&&AP()&&cp.current===null&&l(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function SN(a){IP=a}var Wd=null,W5=null,bJ=function(a){Wd=a};function Y5(a){{if(Wd===null)return a;var o=Wd(a);return o===void 0?a:o.current}}function FR(a){return Y5(a)}function zR(a){{if(Wd===null)return a;var o=Wd(a);if(o===void 0){if(a!=null&&typeof a.render=="function"){var h=Y5(a.render);if(a.render!==h){var v={$$typeof:Ht,render:h};return a.displayName!==void 0&&(v.displayName=a.displayName),v}}return a}return o.current}}function eI(a,o){{if(Wd===null)return!1;var h=a.elementType,v=o.type,x=!1,A=typeof v=="object"&&v!==null?v.$$typeof:null;switch(a.tag){case m:{typeof v=="function"&&(x=!0);break}case d:{(typeof v=="function"||A===hr)&&(x=!0);break}case z:{(A===Ht||A===hr)&&(x=!0);break}case K:case Z:{(A===kr||A===hr)&&(x=!0);break}default:return!1}if(x){var P=Wd(h);if(P!==void 0&&P===Wd(v))return!0}return!1}}function tI(a){{if(Wd===null||typeof WeakSet!="function")return;W5===null&&(W5=new WeakSet),W5.add(a)}}var yJ=function(a,o){{if(Wd===null)return;var h=o.staleFamilies,v=o.updatedFamilies;Vg(),jg(function(){BR(a.current,v,h)})}},SJ=function(a,o){{if(a.context!==pc)return;Vg(),jg(function(){xN(o,a,null,null)})}};function BR(a,o,h){{var v=a.alternate,x=a.child,A=a.sibling,P=a.tag,U=a.type,W=null;switch(P){case d:case Z:case m:W=U;break;case z:W=U.render;break}if(Wd===null)throw new Error("Expected resolveFamily to be set during hot reload.");var re=!1,ue=!1;if(W!==null){var Te=Wd(W);Te!==void 0&&(h.has(Te)?ue=!0:o.has(Te)&&(P===m?ue=!0:re=!0))}if(W5!==null&&(W5.has(a)||v!==null&&W5.has(v))&&(ue=!0),ue&&(a._debugNeedsRemount=!0),ue||re){var we=wl(a,ir);we!==null&&Xs(we,a,ir,ca)}x!==null&&!ue&&BR(x,o,h),A!==null&&BR(A,o,h)}}var xJ=function(a,o){{var h=new Set,v=new Set(o.map(function(x){return x.current}));return $R(a.current,v,h),h}};function $R(a,o,h){{var v=a.child,x=a.sibling,A=a.tag,P=a.type,U=null;switch(A){case d:case Z:case m:U=P;break;case z:U=P.render;break}var W=!1;U!==null&&o.has(U)&&(W=!0),W?CJ(a,h):v!==null&&$R(v,o,h),x!==null&&$R(x,o,h)}}function CJ(a,o){{var h=NJ(a,o);if(h)return;for(var v=a;;){switch(v.tag){case w:o.add(v.stateNode);return;case N:o.add(v.stateNode.containerInfo);return;case S:o.add(v.stateNode.containerInfo);return}if(v.return===null)throw new Error("Expected to reach root first.");v=v.return}}}function NJ(a,o){for(var h=a,v=!1;;){if(h.tag===w)v=!0,o.add(h.stateNode);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)return v;for(;h.sibling===null;){if(h.return===null||h.return===a)return v;h=h.return}h.sibling.return=h.return,h=h.sibling}return!1}var UR;{UR=!1;try{var nI=Object.preventExtensions({})}catch{UR=!0}}function wJ(a,o,h,v){this.tag=a,this.key=h,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=o,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=v,this.flags=Dn,this.subtreeFlags=Dn,this.deletions=null,this.lanes=vt,this.childLanes=vt,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!UR&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Yf=function(a,o,h,v){return new wJ(a,o,h,v)};function HR(a){var o=a.prototype;return!!(o&&o.isReactComponent)}function _J(a){return typeof a=="function"&&!HR(a)&&a.defaultProps===void 0}function EJ(a){if(typeof a=="function")return HR(a)?m:d;if(a!=null){var o=a.$$typeof;if(o===Ht)return z;if(o===kr)return K}return b}function Q2(a,o){var h=a.alternate;h===null?(h=Yf(a.tag,o,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h._debugSource=a._debugSource,h._debugOwner=a._debugOwner,h._debugHookTypes=a._debugHookTypes,h.alternate=a,a.alternate=h):(h.pendingProps=o,h.type=a.type,h.flags=Dn,h.subtreeFlags=Dn,h.deletions=null,h.actualDuration=0,h.actualStartTime=-1),h.flags=a.flags&cl,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue;var v=a.dependencies;switch(h.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.selfBaseDuration=a.selfBaseDuration,h.treeBaseDuration=a.treeBaseDuration,h._debugNeedsRemount=a._debugNeedsRemount,h.tag){case b:case d:case Z:h.type=Y5(a.type);break;case m:h.type=FR(a.type);break;case z:h.type=zR(a.type);break}return h}function TJ(a,o){a.flags&=cl|mi;var h=a.alternate;if(h===null)a.childLanes=vt,a.lanes=o,a.child=null,a.subtreeFlags=Dn,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0;else{a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=Dn,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type;var v=h.dependencies;a.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},a.selfBaseDuration=h.selfBaseDuration,a.treeBaseDuration=h.treeBaseDuration}return a}function RJ(a,o,h){var v;return a===n5?(v=Pr,o===!0&&(v|=Ii,v|=Cu)):v=Fn,is&&(v|=Jr),Yf(S,null,null,v)}function jR(a,o,h,v,x,A){var P=b,U=a;if(typeof a=="function")HR(a)?(P=m,U=FR(U)):U=Y5(U);else if(typeof a=="string")P=w;else{e:switch(a){case dt:return sb(h.children,x,A,o);case xt:P=M,x|=Ii,(x&Pr)!==Fn&&(x|=Cu);break;case bn:return kJ(h,x,A,o);case Kn:return AJ(h,x,A,o);case sr:return OJ(h,x,A,o);case Po:return rI(h,x,A,o);case Ra:case Fa:case gs:case pu:case Yi:default:{if(typeof a=="object"&&a!==null)switch(a.$$typeof){case dr:P=F;break e;case _r:P=B;break e;case Ht:P=z,U=zR(U);break e;case kr:P=K;break e;case hr:P=ne,U=null;break e}var W="";{(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var re=v?Xn(v):null;re&&(W+=`
Check the render method of \``+re+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(a==null?a:typeof a)+"."+W))}}}var ue=Yf(P,h,o,x);return ue.elementType=a,ue.type=U,ue.lanes=A,ue._debugOwner=v,ue}function VR(a,o,h){var v=null;v=a._owner;var x=a.type,A=a.key,P=a.props,U=jR(x,A,P,v,o,h);return U._debugSource=a._source,U._debugOwner=a._owner,U}function sb(a,o,h,v){var x=Yf(L,a,v,o);return x.lanes=h,x}function kJ(a,o,h,v){typeof a.id!="string"&&l('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id);var x=Yf(H,a,v,o|Jr);return x.elementType=bn,x.lanes=h,x.stateNode={effectDuration:0,passiveEffectDuration:0},x}function AJ(a,o,h,v){var x=Yf(G,a,v,o);return x.elementType=Kn,x.lanes=h,x}function OJ(a,o,h,v){var x=Yf(oe,a,v,o);return x.elementType=sr,x.lanes=h,x}function rI(a,o,h,v){var x=Yf(de,a,v,o);x.elementType=Po,x.lanes=h;var A={isHidden:!1};return x.stateNode=A,x}function GR(a,o,h){var v=Yf(T,a,null,o);return v.lanes=h,v}function LJ(){var a=Yf(w,null,null,Fn);return a.elementType="DELETED",a}function MJ(a){var o=Yf(le,null,null,Fn);return o.stateNode=a,o}function WR(a,o,h){var v=a.children!==null?a.children:[],x=Yf(N,v,a.key,o);return x.lanes=h,x.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},x}function aI(a,o){return a===null&&(a=Yf(b,null,null,Fn)),a.tag=o.tag,a.key=o.key,a.elementType=o.elementType,a.type=o.type,a.stateNode=o.stateNode,a.return=o.return,a.child=o.child,a.sibling=o.sibling,a.index=o.index,a.ref=o.ref,a.pendingProps=o.pendingProps,a.memoizedProps=o.memoizedProps,a.updateQueue=o.updateQueue,a.memoizedState=o.memoizedState,a.dependencies=o.dependencies,a.mode=o.mode,a.flags=o.flags,a.subtreeFlags=o.subtreeFlags,a.deletions=o.deletions,a.lanes=o.lanes,a.childLanes=o.childLanes,a.alternate=o.alternate,a.actualDuration=o.actualDuration,a.actualStartTime=o.actualStartTime,a.selfBaseDuration=o.selfBaseDuration,a.treeBaseDuration=o.treeBaseDuration,a._debugSource=o._debugSource,a._debugOwner=o._debugOwner,a._debugNeedsRemount=o._debugNeedsRemount,a._debugHookTypes=o._debugHookTypes,a}function DJ(a,o,h,v,x){this.tag=o,this.containerInfo=a,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=f2,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=eo,this.eventTimes=Ya(vt),this.expirationTimes=Ya(ca),this.pendingLanes=vt,this.suspendedLanes=vt,this.pingedLanes=vt,this.expiredLanes=vt,this.mutableReadLanes=vt,this.finishedLanes=vt,this.entangledLanes=vt,this.entanglements=Ya(vt),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var A=this.pendingUpdatersLaneMap=[],P=0;P<Uv;P++)A.push(new Set)}switch(o){case n5:this._debugRootType=h?"hydrateRoot()":"createRoot()";break;case _m:this._debugRootType=h?"hydrate()":"render()";break}}function iI(a,o,h,v,x,A,P,U,W,re){var ue=new DJ(a,o,h,U,W),Te=RJ(o,A);ue.current=Te,Te.stateNode=ue;{var we={element:v,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null};Te.memoizedState=we}return j1(Te),ue}var YR="18.2.0";function PJ(a,o,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return fr(v),{$$typeof:ge,key:v==null?null:""+v,children:a,containerInfo:o,implementation:h}}var qR,KR;qR=!1,KR={};function oI(a){if(!a)return pc;var o=_f(a),h=f4(o);if(o.tag===m){var v=o.type;if(zd(v))return Jc(o,v,h)}return h}function IJ(a,o){{var h=_f(a);if(h===void 0){if(typeof a.render=="function")throw new Error("Unable to find node on an unmounted component.");var v=Object.keys(a).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+v)}var x=nc(h);if(x===null)return null;if(x.mode&Ii){var A=Xn(h)||"Component";if(!KR[A]){KR[A]=!0;var P=qr;try{oa(x),h.mode&Ii?l("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,A):l("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,A)}finally{P?oa(P):ga()}}}return x.stateNode}}function sI(a,o,h,v,x,A,P,U){var W=!1,re=null;return iI(a,o,W,re,h,v,x,A,P)}function lI(a,o,h,v,x,A,P,U,W,re){var ue=!0,Te=iI(h,v,ue,a,x,A,P,U,W);Te.context=oI(null);var we=Te.current,je=Cc(),Ge=ib(we),et=nf(je,Ge);return et.callback=o??null,Bi(we,et,Ge),jQ(Te,Ge,je),Te}function xN(a,o,h,v){Ji(o,a);var x=o.current,A=Cc(),P=ib(x);hx(P);var U=oI(h);o.context===null?o.context=U:o.pendingContext=U,ts&&qr!==null&&!qR&&(qR=!0,l(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,Xn(qr)||"Unknown"));var W=nf(A,P);W.payload={element:a},v=v===void 0?null:v,v!==null&&(typeof v!="function"&&l("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",v),W.callback=v);var re=Bi(x,W,P);return re!==null&&(Xs(re,x,P,A),Vf(re,x,P)),P}function AE(a){var o=a.current;if(!o.child)return null;switch(o.child.tag){case w:return o.child.stateNode;default:return o.child.stateNode}}function FJ(a){switch(a.tag){case S:{var o=a.stateNode;if(Ri(o)){var h=kC(o);YQ(o,h)}break}case G:{jg(function(){var x=wl(a,ir);if(x!==null){var A=Cc();Xs(x,a,ir,A)}});var v=ir;ZR(a,v);break}}}function uI(a,o){var h=a.memoizedState;h!==null&&h.dehydrated!==null&&(h.retryLane=gi(h.retryLane,o))}function ZR(a,o){uI(a,o);var h=a.alternate;h&&uI(h,o)}function zJ(a){if(a.tag===G){var o=Yp,h=wl(a,o);if(h!==null){var v=Cc();Xs(h,a,o,v)}ZR(a,o)}}function BJ(a){if(a.tag===G){var o=ib(a),h=wl(a,o);if(h!==null){var v=Cc();Xs(h,a,o,v)}ZR(a,o)}}function cI(a){var o=bh(a);return o===null?null:o.stateNode}var fI=function(a){return null};function $J(a){return fI(a)}var dI=function(a){return!1};function UJ(a){return dI(a)}var hI=null,pI=null,mI=null,vI=null,gI=null,bI=null,yI=null,SI=null,xI=null;{var CI=function(a,o,h){var v=o[h],x=Qn(a)?a.slice():Zn({},a);return h+1===o.length?(Qn(x)?x.splice(v,1):delete x[v],x):(x[v]=CI(a[v],o,h+1),x)},NI=function(a,o){return CI(a,o,0)},wI=function(a,o,h,v){var x=o[v],A=Qn(a)?a.slice():Zn({},a);if(v+1===o.length){var P=h[v];A[P]=A[x],Qn(A)?A.splice(x,1):delete A[x]}else A[x]=wI(a[x],o,h,v+1);return A},_I=function(a,o,h){if(o.length!==h.length){s("copyWithRename() expects paths of the same length");return}else for(var v=0;v<h.length-1;v++)if(o[v]!==h[v]){s("copyWithRename() expects paths to be the same except for the deepest key");return}return wI(a,o,h,0)},EI=function(a,o,h,v){if(h>=o.length)return v;var x=o[h],A=Qn(a)?a.slice():Zn({},a);return A[x]=EI(a[x],o,h+1,v),A},TI=function(a,o,h){return EI(a,o,0,h)},XR=function(a,o){for(var h=a.memoizedState;h!==null&&o>0;)h=h.next,o--;return h};hI=function(a,o,h,v){var x=XR(a,o);if(x!==null){var A=TI(x.memoizedState,h,v);x.memoizedState=A,x.baseState=A,a.memoizedProps=Zn({},a.memoizedProps);var P=wl(a,ir);P!==null&&Xs(P,a,ir,ca)}},pI=function(a,o,h){var v=XR(a,o);if(v!==null){var x=NI(v.memoizedState,h);v.memoizedState=x,v.baseState=x,a.memoizedProps=Zn({},a.memoizedProps);var A=wl(a,ir);A!==null&&Xs(A,a,ir,ca)}},mI=function(a,o,h,v){var x=XR(a,o);if(x!==null){var A=_I(x.memoizedState,h,v);x.memoizedState=A,x.baseState=A,a.memoizedProps=Zn({},a.memoizedProps);var P=wl(a,ir);P!==null&&Xs(P,a,ir,ca)}},vI=function(a,o,h){a.pendingProps=TI(a.memoizedProps,o,h),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var v=wl(a,ir);v!==null&&Xs(v,a,ir,ca)},gI=function(a,o){a.pendingProps=NI(a.memoizedProps,o),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var h=wl(a,ir);h!==null&&Xs(h,a,ir,ca)},bI=function(a,o,h){a.pendingProps=_I(a.memoizedProps,o,h),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var v=wl(a,ir);v!==null&&Xs(v,a,ir,ca)},yI=function(a){var o=wl(a,ir);o!==null&&Xs(o,a,ir,ca)},SI=function(a){fI=a},xI=function(a){dI=a}}function HJ(a){var o=nc(a);return o===null?null:o.stateNode}function jJ(a){return null}function VJ(){return qr}function GJ(a){var o=a.findFiberByHostInstance,h=n.ReactCurrentDispatcher;return lx({bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,overrideHookState:hI,overrideHookStateDeletePath:pI,overrideHookStateRenamePath:mI,overrideProps:vI,overridePropsDeletePath:gI,overridePropsRenamePath:bI,setErrorHandler:SI,setSuspenseHandler:xI,scheduleUpdate:yI,currentDispatcherRef:h,findHostInstanceByFiber:HJ,findFiberByHostInstance:o||jJ,findHostInstancesForRefresh:xJ,scheduleRefresh:yJ,scheduleRoot:SJ,setRefreshHandler:bJ,getCurrentFiber:VJ,reconcilerVersion:YR})}var RI=typeof reportError=="function"?reportError:function(a){console.error(a)};function QR(a){this._internalRoot=a}OE.prototype.render=QR.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?l("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):LE(arguments[1])?l("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&l("You passed a second argument to root.render(...) but it only accepts one argument.");var h=o.containerInfo;if(h.nodeType!==Qr){var v=cI(o.current);v&&v.parentNode!==h&&l("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}xN(a,o,null,null)},OE.prototype.unmount=QR.prototype.unmount=function(){typeof arguments[0]=="function"&&l("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;$P()&&l("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jg(function(){xN(null,a,null,null)}),at(o)}};function WJ(a,o){if(!LE(a))throw new Error("createRoot(...): Target container is not a DOM element.");kI(a);var h=!1,v=!1,x="",A=RI;o!=null&&(o.hydrate?s("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===Do&&l(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(x=o.identifierPrefix),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var P=sI(a,n5,null,h,v,x,A);Re(P.current,a);var U=a.nodeType===Qr?a.parentNode:a;return gm(U),new QR(P)}function OE(a){this._internalRoot=a}function YJ(a){a&&Z0(a)}OE.prototype.unstable_scheduleHydration=YJ;function qJ(a,o,h){if(!LE(a))throw new Error("hydrateRoot(...): Target container is not a DOM element.");kI(a),o===void 0&&l("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var v=h??null,x=h!=null&&h.hydratedSources||null,A=!1,P=!1,U="",W=RI;h!=null&&(h.unstable_strictMode===!0&&(A=!0),h.identifierPrefix!==void 0&&(U=h.identifierPrefix),h.onRecoverableError!==void 0&&(W=h.onRecoverableError));var re=lI(o,null,a,n5,v,A,P,U,W);if(Re(re.current,a),gm(a),x)for(var ue=0;ue<x.length;ue++){var Te=x[ue];H4(re,Te)}return new OE(re)}function LE(a){return!!(a&&(a.nodeType===ol||a.nodeType===gu||a.nodeType===od||!Ve))}function CN(a){return!!(a&&(a.nodeType===ol||a.nodeType===gu||a.nodeType===od||a.nodeType===Qr&&a.nodeValue===" react-mount-point-unstable "))}function kI(a){a.nodeType===ol&&a.tagName&&a.tagName.toUpperCase()==="BODY"&&l("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),st(a)&&(a._reactRootContainer?l("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):l("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var KJ=n.ReactCurrentOwner,AI;AI=function(a){if(a._reactRootContainer&&a.nodeType!==Qr){var o=cI(a._reactRootContainer.current);o&&o.parentNode!==a&&l("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var h=!!a._reactRootContainer,v=JR(a),x=!!(v&&jt(v));x&&!h&&l("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),a.nodeType===ol&&a.tagName&&a.tagName.toUpperCase()==="BODY"&&l("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function JR(a){return a?a.nodeType===gu?a.documentElement:a.firstChild:null}function OI(){}function ZJ(a,o,h,v,x){if(x){if(typeof v=="function"){var A=v;v=function(){var we=AE(P);A.call(we)}}var P=lI(o,v,a,_m,null,!1,!1,"",OI);a._reactRootContainer=P,Re(P.current,a);var U=a.nodeType===Qr?a.parentNode:a;return gm(U),jg(),P}else{for(var W;W=a.lastChild;)a.removeChild(W);if(typeof v=="function"){var re=v;v=function(){var we=AE(ue);re.call(we)}}var ue=sI(a,_m,null,!1,!1,"",OI);a._reactRootContainer=ue,Re(ue.current,a);var Te=a.nodeType===Qr?a.parentNode:a;return gm(Te),jg(function(){xN(o,ue,h,v)}),ue}}function XJ(a,o){a!==null&&typeof a!="function"&&l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,a)}function ME(a,o,h,v,x){AI(h),XJ(x===void 0?null:x,"render");var A=h._reactRootContainer,P;if(!A)P=ZJ(h,o,a,x,v);else{if(P=A,typeof x=="function"){var U=x;x=function(){var W=AE(P);U.call(W)}}xN(o,P,a,x)}return AE(P)}function QJ(a){{var o=KJ.current;if(o!==null&&o.stateNode!==null){var h=o.stateNode._warnedAboutRefsInRender;h||l("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",gr(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return a==null?null:a.nodeType===ol?a:IJ(a,"findDOMNode")}function JJ(a,o,h){if(l("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!CN(o))throw new Error("Target container is not a DOM element.");{var v=st(o)&&o._reactRootContainer===void 0;v&&l("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return ME(null,a,o,!0,h)}function eee(a,o,h){if(l("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!CN(o))throw new Error("Target container is not a DOM element.");{var v=st(o)&&o._reactRootContainer===void 0;v&&l("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return ME(null,a,o,!1,h)}function tee(a,o,h,v){if(l("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!CN(h))throw new Error("Target container is not a DOM element.");if(a==null||!Dr(a))throw new Error("parentComponent must be a valid React Component");return ME(a,o,h,!1,v)}function nee(a){if(!CN(a))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=st(a)&&a._reactRootContainer===void 0;o&&l("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(a._reactRootContainer){{var h=JR(a),v=h&&!jt(h);v&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jg(function(){ME(null,null,a,!1,function(){a._reactRootContainer=null,at(a)})}),!0}else{{var x=JR(a),A=!!(x&&jt(x)),P=a.nodeType===ol&&CN(a.parentNode)&&!!a.parentNode._reactRootContainer;A&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",P?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}em(FJ),W0(zJ),vy(BJ),gy(zl),LC(G0),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&l("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),fd(w1),R0(AR,qQ,jg);function ree(a,o){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!LE(o))throw new Error("Target container is not a DOM element.");return PJ(a,o,null,h)}function aee(a,o,h,v){return tee(a,o,h,v)}var e8={usingClientEntryPoint:!1,Events:[jt,fn,Vn,Dp,_0,AR]};function iee(a,o){return e8.usingClientEntryPoint||l('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),WJ(a,o)}function oee(a,o,h){return e8.usingClientEntryPoint||l('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),qJ(a,o,h)}function see(a){return $P()&&l("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),jg(a)}var lee=GJ({findFiberByHostInstance:bt,bundleType:1,version:YR,rendererPackageName:"react-dom"});if(!lee&&gn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var LI=window.location.protocol;/^(https?|file):$/.test(LI)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(LI==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e8,Zf.createPortal=ree,Zf.createRoot=iee,Zf.findDOMNode=QJ,Zf.flushSync=see,Zf.hydrate=JJ,Zf.hydrateRoot=oee,Zf.render=eee,Zf.unmountComponentAtNode=nee,Zf.unstable_batchedUpdates=AR,Zf.unstable_renderSubtreeIntoContainer=aee,Zf.version=YR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=Zf})(vv);const DE=sL(vv.exports);var t8=vv.exports;{var PE=t8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;$k.createRoot=function(e,t){PE.usingClientEntryPoint=!0;try{return t8.createRoot(e,t)}finally{PE.usingClientEntryPoint=!1}},$k.hydrateRoot=function(e,t,n){PE.usingClientEntryPoint=!0;try{return t8.hydrateRoot(e,t,n)}finally{PE.usingClientEntryPoint=!1}}}var av=Boolean(globalThis?.document)?O.exports.useLayoutEffect:O.exports.useEffect,lL={exports:{}},Uk={};/**
* @license React
* react-jsx-dev-runtime.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.
*/(function(){var e=O.exports,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=Symbol.iterator,L="@@iterator";function M(ge){if(ge===null||typeof ge!="object")return null;var dt=T&&ge[T]||ge[L];return typeof dt=="function"?dt:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(ge){{for(var dt=arguments.length,xt=new Array(dt>1?dt-1:0),bn=1;bn<dt;bn++)xt[bn-1]=arguments[bn];z("error",ge,xt)}}function z(ge,dt,xt){{var bn=B.ReactDebugCurrentFrame,dr=bn.getStackAddendum();dr!==""&&(dt+="%s",xt=xt.concat([dr]));var _r=xt.map(function(Ht){return String(Ht)});_r.unshift("Warning: "+dt),Function.prototype.apply.call(console[ge],console,_r)}}var H=!1,G=!1,K=!1,Z=!1,ne=!1,ie;ie=Symbol.for("react.module.reference");function le(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===s||ne||ge===i||ge===m||ge===b||Z||ge===w||H||G||K||typeof ge=="object"&&ge!==null&&(ge.$$typeof===N||ge.$$typeof===S||ge.$$typeof===l||ge.$$typeof===f||ge.$$typeof===d||ge.$$typeof===ie||ge.getModuleId!==void 0))}function oe(ge,dt,xt){var bn=ge.displayName;if(bn)return bn;var dr=dt.displayName||dt.name||"";return dr!==""?xt+"("+dr+")":xt}function Ae(ge){return ge.displayName||"Context"}function de(ge){if(ge==null)return null;if(typeof ge.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ge=="function")return ge.displayName||ge.name||null;if(typeof ge=="string")return ge;switch(ge){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case b:return"SuspenseList"}if(typeof ge=="object")switch(ge.$$typeof){case f:var dt=ge;return Ae(dt)+".Consumer";case l:var xt=ge;return Ae(xt._context)+".Provider";case d:return oe(ge,ge.render,"ForwardRef");case S:var bn=ge.displayName||null;return bn!==null?bn:de(ge.type)||"Memo";case N:{var dr=ge,_r=dr._payload,Ht=dr._init;try{return de(Ht(_r))}catch{return null}}}return null}var Se=Object.assign,Me=0,_e,J,he,ve,ye,xe,Ve;function Pe(){}Pe.__reactDisabledLog=!0;function Qe(){{if(Me===0){_e=console.log,J=console.info,he=console.warn,ve=console.error,ye=console.group,xe=console.groupCollapsed,Ve=console.groupEnd;var ge={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:ge,log:ge,warn:ge,error:ge,group:ge,groupCollapsed:ge,groupEnd:ge})}Me++}}function wt(){{if(Me--,Me===0){var ge={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Se({},ge,{value:_e}),info:Se({},ge,{value:J}),warn:Se({},ge,{value:he}),error:Se({},ge,{value:ve}),group:Se({},ge,{value:ye}),groupCollapsed:Se({},ge,{value:xe}),groupEnd:Se({},ge,{value:Ve})})}Me<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ot=B.ReactCurrentDispatcher,Ut;function ut(ge,dt,xt){{if(Ut===void 0)try{throw Error()}catch(dr){var bn=dr.stack.trim().match(/\n( *(at )?)/);Ut=bn&&bn[1]||""}return`
`+Ut+ge}}var It=!1,Qt;{var pn=typeof WeakMap=="function"?WeakMap:Map;Qt=new pn}function ht(ge,dt){if(!ge||It)return"";{var xt=Qt.get(ge);if(xt!==void 0)return xt}var bn;It=!0;var dr=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _r;_r=Ot.current,Ot.current=null,Qe();try{if(dt){var Ht=function(){throw Error()};if(Object.defineProperty(Ht.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ht,[])}catch(Ra){bn=Ra}Reflect.construct(ge,[],Ht)}else{try{Ht.call()}catch(Ra){bn=Ra}ge.call(Ht.prototype)}}else{try{throw Error()}catch(Ra){bn=Ra}ge()}}catch(Ra){if(Ra&&bn&&typeof Ra.stack=="string"){for(var Kn=Ra.stack.split(`
`),sr=bn.stack.split(`
`),kr=Kn.length-1,hr=sr.length-1;kr>=1&&hr>=0&&Kn[kr]!==sr[hr];)hr--;for(;kr>=1&&hr>=0;kr--,hr--)if(Kn[kr]!==sr[hr]){if(kr!==1||hr!==1)do if(kr--,hr--,hr<0||Kn[kr]!==sr[hr]){var Fa=`
`+Kn[kr].replace(" at new "," at ");return ge.displayName&&Fa.includes("<anonymous>")&&(Fa=Fa.replace("<anonymous>",ge.displayName)),typeof ge=="function"&&Qt.set(ge,Fa),Fa}while(kr>=1&&hr>=0);break}}}finally{It=!1,Ot.current=_r,wt(),Error.prepareStackTrace=dr}var Yi=ge?ge.displayName||ge.name:"",Po=Yi?ut(Yi):"";return typeof ge=="function"&&Qt.set(ge,Po),Po}function gn(ge,dt,xt){return ht(ge,!1)}function De(ge){var dt=ge.prototype;return!!(dt&&dt.isReactComponent)}function kt(ge,dt,xt){if(ge==null)return"";if(typeof ge=="function")return ht(ge,De(ge));if(typeof ge=="string")return ut(ge);switch(ge){case m:return ut("Suspense");case b:return ut("SuspenseList")}if(typeof ge=="object")switch(ge.$$typeof){case d:return gn(ge.render);case S:return kt(ge.type,dt,xt);case N:{var bn=ge,dr=bn._payload,_r=bn._init;try{return kt(_r(dr),dt,xt)}catch{}}}return""}var Zt=Object.prototype.hasOwnProperty,Pt={},un=B.ReactDebugCurrentFrame;function fr(ge){if(ge){var dt=ge._owner,xt=kt(ge.type,ge._source,dt?dt.type:null);un.setExtraStackFrame(xt)}else un.setExtraStackFrame(null)}function an(ge,dt,xt,bn,dr){{var _r=Function.call.bind(Zt);for(var Ht in ge)if(_r(ge,Ht)){var Kn=void 0;try{if(typeof ge[Ht]!="function"){var sr=Error((bn||"React class")+": "+xt+" type `"+Ht+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ge[Ht]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sr.name="Invariant Violation",sr}Kn=ge[Ht](dt,Ht,bn,xt,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(kr){Kn=kr}Kn&&!(Kn instanceof Error)&&(fr(dr),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",bn||"React class",xt,Ht,typeof Kn),fr(null)),Kn instanceof Error&&!(Kn.message in Pt)&&(Pt[Kn.message]=!0,fr(dr),F("Failed %s type: %s",xt,Kn.message),fr(null))}}}var Rn=Array.isArray;function wn(ge){return Rn(ge)}function Ln(ge){{var dt=typeof Symbol=="function"&&Symbol.toStringTag,xt=dt&&ge[Symbol.toStringTag]||ge.constructor.name||"Object";return xt}}function St(ge){try{return Ft(ge),!1}catch{return!0}}function Ft(ge){return""+ge}function er(ge){if(St(ge))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ln(ge)),Ft(ge)}var En=B.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Mn,br,pt;pt={};function Xe(ge){if(Zt.call(ge,"ref")){var dt=Object.getOwnPropertyDescriptor(ge,"ref").get;if(dt&&dt.isReactWarning)return!1}return ge.ref!==void 0}function Bt(ge){if(Zt.call(ge,"key")){var dt=Object.getOwnPropertyDescriptor(ge,"key").get;if(dt&&dt.isReactWarning)return!1}return ge.key!==void 0}function We(ge,dt){if(typeof ge.ref=="string"&&En.current&&dt&&En.current.stateNode!==dt){var xt=de(En.current.type);pt[xt]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',de(En.current.type),ge.ref),pt[xt]=!0)}}function Lt(ge,dt){{var xt=function(){Mn||(Mn=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",dt))};xt.isReactWarning=!0,Object.defineProperty(ge,"key",{get:xt,configurable:!0})}}function Rt(ge,dt){{var xt=function(){br||(br=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",dt))};xt.isReactWarning=!0,Object.defineProperty(ge,"ref",{get:xt,configurable:!0})}}var gt=function(ge,dt,xt,bn,dr,_r,Ht){var Kn={$$typeof:t,type:ge,key:dt,ref:xt,props:Ht,_owner:_r};return Kn._store={},Object.defineProperty(Kn._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Kn,"_self",{configurable:!1,enumerable:!1,writable:!1,value:bn}),Object.defineProperty(Kn,"_source",{configurable:!1,enumerable:!1,writable:!1,value:dr}),Object.freeze&&(Object.freeze(Kn.props),Object.freeze(Kn)),Kn};function _t(ge,dt,xt,bn,dr){{var _r,Ht={},Kn=null,sr=null;xt!==void 0&&(er(xt),Kn=""+xt),Bt(dt)&&(er(dt.key),Kn=""+dt.key),Xe(dt)&&(sr=dt.ref,We(dt,dr));for(_r in dt)Zt.call(dt,_r)&&!Je.hasOwnProperty(_r)&&(Ht[_r]=dt[_r]);if(ge&&ge.defaultProps){var kr=ge.defaultProps;for(_r in kr)Ht[_r]===void 0&&(Ht[_r]=kr[_r])}if(Kn||sr){var hr=typeof ge=="function"?ge.displayName||ge.name||"Unknown":ge;Kn&&Lt(Ht,hr),sr&&Rt(Ht,hr)}return gt(ge,Kn,sr,dr,bn,En.current,Ht)}}var kn=B.ReactCurrentOwner,Un=B.ReactDebugCurrentFrame;function Gt(ge){if(ge){var dt=ge._owner,xt=kt(ge.type,ge._source,dt?dt.type:null);Un.setExtraStackFrame(xt)}else Un.setExtraStackFrame(null)}var rr;rr=!1;function di(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===t}function Yr(){{if(kn.current){var ge=de(kn.current.type);if(ge)return`
Check the render method of \``+ge+"`."}return""}}function pr(ge){{if(ge!==void 0){var dt=ge.fileName.replace(/^.*[\\\/]/,""),xt=ge.lineNumber;return`
Check your code at `+dt+":"+xt+"."}return""}}var Wi={};function lo(ge){{var dt=Yr();if(!dt){var xt=typeof ge=="string"?ge:ge.displayName||ge.name;xt&&(dt=`
Check the top-level render call using <`+xt+">.")}return dt}}function uo(ge,dt){{if(!ge._store||ge._store.validated||ge.key!=null)return;ge._store.validated=!0;var xt=lo(dt);if(Wi[xt])return;Wi[xt]=!0;var bn="";ge&&ge._owner&&ge._owner!==kn.current&&(bn=" It was passed a child from "+de(ge._owner.type)+"."),Gt(ge),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',xt,bn),Gt(null)}}function hi(ge,dt){{if(typeof ge!="object")return;if(wn(ge))for(var xt=0;xt<ge.length;xt++){var bn=ge[xt];di(bn)&&uo(bn,dt)}else if(di(ge))ge._store&&(ge._store.validated=!0);else if(ge){var dr=M(ge);if(typeof dr=="function"&&dr!==ge.entries)for(var _r=dr.call(ge),Ht;!(Ht=_r.next()).done;)di(Ht.value)&&uo(Ht.value,dt)}}}function yr(ge){{var dt=ge.type;if(dt==null||typeof dt=="string")return;var xt;if(typeof dt=="function")xt=dt.propTypes;else if(typeof dt=="object"&&(dt.$$typeof===d||dt.$$typeof===S))xt=dt.propTypes;else return;if(xt){var bn=de(dt);an(xt,ge.props,"prop",bn,ge)}else if(dt.PropTypes!==void 0&&!rr){rr=!0;var dr=de(dt);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",dr||"Unknown")}typeof dt.getDefaultProps=="function"&&!dt.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ti(ge){{for(var dt=Object.keys(ge.props),xt=0;xt<dt.length;xt++){var bn=dt[xt];if(bn!=="children"&&bn!=="key"){Gt(ge),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",bn),Gt(null);break}}ge.ref!==null&&(Gt(ge),F("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function Mo(ge,dt,xt,bn,dr,_r){{var Ht=le(ge);if(!Ht){var Kn="";(ge===void 0||typeof ge=="object"&&ge!==null&&Object.keys(ge).length===0)&&(Kn+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var sr=pr(dr);sr?Kn+=sr:Kn+=Yr();var kr;ge===null?kr="null":wn(ge)?kr="array":ge!==void 0&&ge.$$typeof===t?(kr="<"+(de(ge.type)||"Unknown")+" />",Kn=" Did you accidentally export a JSX literal instead of a component?"):kr=typeof ge,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",kr,Kn)}var hr=_t(ge,dt,xt,dr,_r);if(hr==null)return hr;if(Ht){var Fa=dt.children;if(Fa!==void 0)if(bn)if(wn(Fa)){for(var Yi=0;Yi<Fa.length;Yi++)hi(Fa[Yi],ge);Object.freeze&&Object.freeze(Fa)}else F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hi(Fa,ge)}return ge===r?ti(hr):yr(hr),hr}}var Do=Mo;Uk.Fragment=r,Uk.jsxDEV=Do})();(function(e){e.exports=Uk})(lL);const Ci=lL.exports.Fragment,_=lL.exports.jsxDEV;var AH="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",uL=O.exports.createContext({});uL.displayName="ColorModeContext";function cL(){const e=O.exports.useContext(uL);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var IE={light:"chakra-ui-light",dark:"chakra-ui-dark"};function dee(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?IE.dark:IE.light),document.body.classList.remove(r?IE.light:IE.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),s=l=>{r(l.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},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 hee="chakra-ui-color-mode";function pee(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 mee=pee(hee),MI=()=>{};function DI(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function OH(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:l=mee}=e,f=i==="dark"?"dark":"light",[d,m]=O.exports.useState(()=>DI(l,f)),[b,S]=O.exports.useState(()=>DI(l)),{getSystemTheme:N,setClassName:w,setDataset:T,addListener:L}=O.exports.useMemo(()=>dee({preventTransition:s}),[s]),M=i==="system"&&!d?b:d,B=O.exports.useCallback(H=>{const G=H==="system"?N():H;m(G),w(G==="dark"),T(G),l.set(G)},[l,N,w,T]);av(()=>{i==="system"&&S(N())},[]),O.exports.useEffect(()=>{const H=l.get();if(H){B(H);return}if(i==="system"){B("system");return}B(f)},[l,f,i,B]);const F=O.exports.useCallback(()=>{B(M==="dark"?"light":"dark")},[M,B]);O.exports.useEffect(()=>{if(!!r)return L(B)},[r,L,B]);const z=O.exports.useMemo(()=>({colorMode:t??M,toggleColorMode:t?MI:F,setColorMode:t?MI:B}),[M,F,B,t]);return _(uL.Provider,{value:z,children:n},void 0,!1,{fileName:AH,lineNumber:190,columnNumber:26},this)}OH.displayName="ColorModeProvider";var vee=new Set(["dark","light","system"]);function gee(e){let t=e;return vee.has(t)||(t="light"),t}function bee(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=gee(t),s=n==="cookie",l=`(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="${i}",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){}})();
`,f=`(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="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${s?l:f}`.trim()}function yee(e={}){return _("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:bee(e)}},void 0,!1,{fileName:AH,lineNumber:244,columnNumber:26},this)}var Hk={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,s=16,l=9007199254740991,f="[object Arguments]",d="[object Array]",m="[object AsyncFunction]",b="[object Boolean]",S="[object Date]",N="[object Error]",w="[object Function]",T="[object GeneratorFunction]",L="[object Map]",M="[object Number]",B="[object Null]",F="[object Object]",z="[object Proxy]",H="[object RegExp]",G="[object Set]",K="[object String]",Z="[object Undefined]",ne="[object WeakMap]",ie="[object ArrayBuffer]",le="[object DataView]",oe="[object Float32Array]",Ae="[object Float64Array]",de="[object Int8Array]",Se="[object Int16Array]",Me="[object Int32Array]",_e="[object Uint8Array]",J="[object Uint8ClampedArray]",he="[object Uint16Array]",ve="[object Uint32Array]",ye=/[\\^$.*+?()[\]{}|]/g,xe=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,Pe={};Pe[oe]=Pe[Ae]=Pe[de]=Pe[Se]=Pe[Me]=Pe[_e]=Pe[J]=Pe[he]=Pe[ve]=!0,Pe[f]=Pe[d]=Pe[ie]=Pe[b]=Pe[le]=Pe[S]=Pe[N]=Pe[w]=Pe[L]=Pe[M]=Pe[F]=Pe[H]=Pe[G]=Pe[K]=Pe[ne]=!1;var Qe=typeof Jg=="object"&&Jg&&Jg.Object===Object&&Jg,wt=typeof self=="object"&&self&&self.Object===Object&&self,Ot=Qe||wt||Function("return this")(),Ut=t&&!t.nodeType&&t,ut=Ut&&!0&&e&&!e.nodeType&&e,It=ut&&ut.exports===Ut,Qt=It&&Qe.process,pn=function(){try{var $=ut&&ut.require&&ut.require("util").types;return $||Qt&&Qt.binding&&Qt.binding("util")}catch{}}(),ht=pn&&pn.isTypedArray;function gn($,X,se){switch(se.length){case 0:return $.call(X);case 1:return $.call(X,se[0]);case 2:return $.call(X,se[0],se[1]);case 3:return $.call(X,se[0],se[1],se[2])}return $.apply(X,se)}function De($,X){for(var se=-1,qe=Array($);++se<$;)qe[se]=X(se);return qe}function kt($){return function(X){return $(X)}}function Zt($,X){return $?.[X]}function Pt($,X){return function(se){return $(X(se))}}var un=Array.prototype,fr=Function.prototype,an=Object.prototype,Rn=Ot["__core-js_shared__"],wn=fr.toString,Ln=an.hasOwnProperty,St=function(){var $=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Ft=an.toString,er=wn.call(Object),En=RegExp("^"+wn.call(Ln).replace(ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=It?Ot.Buffer:void 0,Mn=Ot.Symbol,br=Ot.Uint8Array,pt=Je?Je.allocUnsafe:void 0,Xe=Pt(Object.getPrototypeOf,Object),Bt=Object.create,We=an.propertyIsEnumerable,Lt=un.splice,Rt=Mn?Mn.toStringTag:void 0,gt=function(){try{var $=Di(Object,"defineProperty");return $({},"",{}),$}catch{}}(),_t=Je?Je.isBuffer:void 0,kn=Math.max,Un=Date.now,Gt=Di(Ot,"Map"),rr=Di(Object,"create"),di=function(){function $(){}return function(X){if(!Kr(X))return{};if(Bt)return Bt(X);$.prototype=X;var se=new $;return $.prototype=void 0,se}}();function Yr($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function pr(){this.__data__=rr?rr(null):{},this.size=0}function Wi($){var X=this.has($)&&delete this.__data__[$];return this.size-=X?1:0,X}function lo($){var X=this.__data__;if(rr){var se=X[$];return se===r?void 0:se}return Ln.call(X,$)?X[$]:void 0}function uo($){var X=this.__data__;return rr?X[$]!==void 0:Ln.call(X,$)}function hi($,X){var se=this.__data__;return this.size+=this.has($)?0:1,se[$]=rr&&X===void 0?r:X,this}Yr.prototype.clear=pr,Yr.prototype.delete=Wi,Yr.prototype.get=lo,Yr.prototype.has=uo,Yr.prototype.set=hi;function yr($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function ti(){this.__data__=[],this.size=0}function Mo($){var X=this.__data__,se=co(X,$);if(se<0)return!1;var qe=X.length-1;return se==qe?X.pop():Lt.call(X,se,1),--this.size,!0}function Do($){var X=this.__data__,se=co(X,$);return se<0?void 0:X[se][1]}function ge($){return co(this.__data__,$)>-1}function dt($,X){var se=this.__data__,qe=co(se,$);return qe<0?(++this.size,se.push([$,X])):se[qe][1]=X,this}yr.prototype.clear=ti,yr.prototype.delete=Mo,yr.prototype.get=Do,yr.prototype.has=ge,yr.prototype.set=dt;function xt($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function bn(){this.size=0,this.__data__={hash:new Yr,map:new(Gt||yr),string:new Yr}}function dr($){var X=ai(this,$).delete($);return this.size-=X?1:0,X}function _r($){return ai(this,$).get($)}function Ht($){return ai(this,$).has($)}function Kn($,X){var se=ai(this,$),qe=se.size;return se.set($,X),this.size+=se.size==qe?0:1,this}xt.prototype.clear=bn,xt.prototype.delete=dr,xt.prototype.get=_r,xt.prototype.has=Ht,xt.prototype.set=Kn;function sr($){var X=this.__data__=new yr($);this.size=X.size}function kr(){this.__data__=new yr,this.size=0}function hr($){var X=this.__data__,se=X.delete($);return this.size=X.size,se}function Fa($){return this.__data__.get($)}function Yi($){return this.__data__.has($)}function Po($,X){var se=this.__data__;if(se instanceof yr){var qe=se.__data__;if(!Gt||qe.length<n-1)return qe.push([$,X]),this.size=++se.size,this;se=this.__data__=new xt(qe)}return se.set($,X),this.size=se.size,this}sr.prototype.clear=kr,sr.prototype.delete=hr,sr.prototype.get=Fa,sr.prototype.has=Yi,sr.prototype.set=Po;function Ra($,X){var se=po($),qe=!se&&ts($),Kt=!se&&!qe&&oa($),yn=!se&&!qe&&!Kt&&Ps($),Jt=se||qe||Kt||yn,k=Jt?De($.length,String):[],j=k.length;for(var ae in $)(X||Ln.call($,ae))&&!(Jt&&(ae=="length"||Kt&&(ae=="offset"||ae=="parent")||yn&&(ae=="buffer"||ae=="byteLength"||ae=="byteOffset")||Ms(ae,j)))&&k.push(ae);return k}function gs($,X,se){(se!==void 0&&!qr($[X],se)||se===void 0&&!(X in $))&&Rl($,X,se)}function pu($,X,se){var qe=$[X];(!(Ln.call($,X)&&qr(qe,se))||se===void 0&&!(X in $))&&Rl($,X,se)}function co($,X){for(var se=$.length;se--;)if(qr($[se][0],X))return se;return-1}function Rl($,X,se){X=="__proto__"&&gt?gt($,X,{configurable:!0,enumerable:!0,value:se,writable:!0}):$[X]=se}var bs=fo();function Zn($){return $==null?$===void 0?Z:B:Rt&&Rt in Object($)?Ml($):Gu($)}function Io($){return ii($)&&Zn($)==f}function qi($){if(!Kr($)||Wa($))return!1;var X=Ds($)?En:xe;return X.test(Wu($))}function kl($){return ii($)&&_i($.length)&&!!Pe[Zn($)]}function Al($){if(!Kr($))return ka($);var X=wi($),se=[];for(var qe in $)qe=="constructor"&&(X||!Ln.call($,qe))||se.push(qe);return se}function nl($,X,se,qe,Kt){$!==X&&bs(X,function(yn,Jt){if(Kt||(Kt=new sr),Kr(yn))ni($,X,Jt,se,nl,qe,Kt);else{var k=qe?qe(zo($,Jt),yn,Jt+"",$,X,Kt):void 0;k===void 0&&(k=yn),gs($,Jt,k)}},vu)}function ni($,X,se,qe,Kt,yn,Jt){var k=zo($,se),j=zo(X,se),ae=Jt.get(j);if(ae){gs($,se,ae);return}var ce=yn?yn(k,j,se+"",$,X,Jt):void 0,Ne=ce===void 0;if(Ne){var mt=po(j),Ze=!mt&&oa(j),Tt=!mt&&!Ze&&Ps(j);ce=j,mt||Ze||Tt?po(k)?ce=k:ga(k)?ce=Vu(k):Ze?(Ne=!1,ce=Ll(j,!0)):Tt?(Ne=!1,ce=ju(j,!0)):ce=[]:yf(j)||ts(j)?(ce=k,ts(k)?ce=Ss(k):(!Kr(k)||Ds(k))&&(ce=Dl(j))):Ne=!1}Ne&&(Jt.set(j,ce),Kt(ce,j,qe,yn,Jt),Jt.delete(j)),gs($,se,ce)}function rl($,X){return Il(gr($,X,Yu),$+"")}var Ol=gt?function($,X){return gt($,"toString",{configurable:!0,enumerable:!1,value:Br(X),writable:!0})}:Yu;function Ll($,X){if(X)return $.slice();var se=$.length,qe=pt?pt(se):new $.constructor(se);return $.copy(qe),qe}function mu($){var X=new $.constructor($.byteLength);return new br(X).set(new br($)),X}function ju($,X){var se=X?mu($.buffer):$.buffer;return new $.constructor(se,$.byteOffset,$.length)}function Vu($,X){var se=-1,qe=$.length;for(X||(X=Array(qe));++se<qe;)X[se]=$[se];return X}function Fo($,X,se,qe){var Kt=!se;se||(se={});for(var yn=-1,Jt=X.length;++yn<Jt;){var k=X[yn],j=qe?qe(se[k],$[k],k,se,$):void 0;j===void 0&&(j=$[k]),Kt?Rl(se,k,j):pu(se,k,j)}return se}function ri($){return rl(function(X,se){var qe=-1,Kt=se.length,yn=Kt>1?se[Kt-1]:void 0,Jt=Kt>2?se[2]:void 0;for(yn=$.length>3&&typeof yn=="function"?(Kt--,yn):void 0,Jt&&Pl(se[0],se[1],Jt)&&(yn=Kt<3?void 0:yn,Kt=1),X=Object(X);++qe<Kt;){var k=se[qe];k&&$(X,k,qe,yn)}return X})}function fo($){return function(X,se,qe){for(var Kt=-1,yn=Object(X),Jt=qe(X),k=Jt.length;k--;){var j=Jt[$?k:++Kt];if(se(yn[j],j,yn)===!1)break}return X}}function ai($,X){var se=$.__data__;return ho(X)?se[typeof X=="string"?"string":"hash"]:se.map}function Di($,X){var se=Zt($,X);return qi(se)?se:void 0}function Ml($){var X=Ln.call($,Rt),se=$[Rt];try{$[Rt]=void 0;var qe=!0}catch{}var Kt=Ft.call($);return qe&&(X?$[Rt]=se:delete $[Rt]),Kt}function Dl($){return typeof $.constructor=="function"&&!wi($)?di(Xe($)):{}}function Ms($,X){var se=typeof $;return X=X??l,!!X&&(se=="number"||se!="symbol"&&Ve.test($))&&$>-1&&$%1==0&&$<X}function Pl($,X,se){if(!Kr(se))return!1;var qe=typeof X;return(qe=="number"?ys(se)&&Ms(X,se.length):qe=="string"&&X in se)?qr(se[X],$):!1}function ho($){var X=typeof $;return X=="string"||X=="number"||X=="symbol"||X=="boolean"?$!=="__proto__":$===null}function Wa($){return!!St&&St in $}function wi($){var X=$&&$.constructor,se=typeof X=="function"&&X.prototype||an;return $===se}function ka($){var X=[];if($!=null)for(var se in Object($))X.push(se);return X}function Gu($){return Ft.call($)}function gr($,X,se){return X=kn(X===void 0?$.length-1:X,0),function(){for(var qe=arguments,Kt=-1,yn=kn(qe.length-X,0),Jt=Array(yn);++Kt<yn;)Jt[Kt]=qe[X+Kt];Kt=-1;for(var k=Array(X+1);++Kt<X;)k[Kt]=qe[Kt];return k[X]=se(Jt),gn($,this,k)}}function zo($,X){if(!(X==="constructor"&&typeof $[X]=="function")&&X!="__proto__")return $[X]}var Il=Xn(Ol);function Xn($){var X=0,se=0;return function(){var qe=Un(),Kt=s-(qe-se);if(se=qe,Kt>0){if(++X>=i)return arguments[0]}else X=0;return $.apply(void 0,arguments)}}function Wu($){if($!=null){try{return wn.call($)}catch{}try{return $+""}catch{}}return""}function qr($,X){return $===X||$!==$&&X!==X}var ts=Io(function(){return arguments}())?Io:function($){return ii($)&&Ln.call($,"callee")&&!We.call($,"callee")},po=Array.isArray;function ys($){return $!=null&&_i($.length)&&!Ds($)}function ga($){return ii($)&&ys($)}var oa=_t||mo;function Ds($){if(!Kr($))return!1;var X=Zn($);return X==w||X==T||X==m||X==z}function _i($){return typeof $=="number"&&$>-1&&$%1==0&&$<=l}function Kr($){var X=typeof $;return $!=null&&(X=="object"||X=="function")}function ii($){return $!=null&&typeof $=="object"}function yf($){if(!ii($)||Zn($)!=F)return!1;var X=Xe($);if(X===null)return!0;var se=Ln.call(X,"constructor")&&X.constructor;return typeof se=="function"&&se instanceof se&&wn.call(se)==er}var Ps=ht?kt(ht):kl;function Ss($){return Fo($,vu($))}function vu($){return ys($)?Ra($,!0):Al($)}var Sr=ri(function($,X,se,qe){nl($,X,se,qe)});function Br($){return function(){return $}}function Yu($){return $}function mo(){return!1}e.exports=Sr})(Hk,Hk.exports);const r0=Hk.exports;function rv(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function v3(e,...t){return See(e)?e(...t):e}var See=e=>typeof e=="function",xee=e=>/!(important)?$/.test(e),PI=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,jk=(e,t)=>n=>{const r=String(t),i=xee(r),s=PI(r),l=e?`${e}.${s}`:s;let f=rv(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return f=PI(f),i?`${f} !important`:f};function Aw(e){const{scale:t,transform:n,compose:r}=e;return(s,l)=>{const f=jk(t,s)(l);let d=n?.(f,l)??f;return r&&(d=r(d,l)),d}}var FE=(...e)=>t=>e.reduce((n,r)=>r(n),t);function fp(e,t){return n=>{const r={property:n,scale:e};return r.transform=Aw({scale:e,transform:t}),r}}var Cee=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Nee(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Cee(t),transform:n?Aw({scale:n,compose:r}):r}}var LH=["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 wee(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...LH].join(" ")}function _ee(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...LH].join(" ")}var Eee={"--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(" ")},Tee={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 Ree(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 kee={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},MH="& > :not(style) ~ :not(style)",Aee={[MH]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},Oee={[MH]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},Vk={"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"},Lee=new Set(Object.values(Vk)),DH=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Mee=e=>e.trim();function Dee(e,t){var n;if(e==null||DH.has(e))return e;const r=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:i,values:s}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!i||!s)return e;const l=i.includes("-gradient")?i:`${i}-gradient`,[f,...d]=s.split(",").map(Mee).filter(Boolean);if(d?.length===0)return e;const m=f in Vk?Vk[f]:f;d.unshift(m);const b=d.map(S=>{if(Lee.has(S))return S;const N=S.indexOf(" "),[w,T]=N!==-1?[S.substr(0,N),S.substr(N+1)]:[S],L=PH(T)?T:T&&T.split(" "),M=`colors.${w}`,B=M in t.__cssMap?t.__cssMap[M].varRef:w;return L?[B,...Array.isArray(L)?L:[L]].join(" "):B});return`${l}(${b.join(", ")})`}var PH=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Pee=(e,t)=>Dee(e,t??{});function Iee(e){return/^var\(--.+\)$/.test(e)}var Fee=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Hm=e=>t=>`${e}(${t})`,Sa={filter(e){return e!=="auto"?e:Eee},backdropFilter(e){return e!=="auto"?e:Tee},ring(e){return Ree(Sa.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?wee():e==="auto-gpu"?_ee():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Fee(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(Iee(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Pee,blur:Hm("blur"),opacity:Hm("opacity"),brightness:Hm("brightness"),contrast:Hm("contrast"),dropShadow:Hm("drop-shadow"),grayscale:Hm("grayscale"),hueRotate:Hm("hue-rotate"),invert:Hm("invert"),saturate:Hm("saturate"),sepia:Hm("sepia"),bgImage(e){return e==null||PH(e)||DH.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}=kee[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Oe={borderWidths:fp("borderWidths"),borderStyles:fp("borderStyles"),colors:fp("colors"),borders:fp("borders"),radii:fp("radii",Sa.px),space:fp("space",FE(Sa.vh,Sa.px)),spaceT:fp("space",FE(Sa.vh,Sa.px)),degreeT(e){return{property:e,transform:Sa.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Aw({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:fp("sizes",FE(Sa.vh,Sa.px)),sizesT:fp("sizes",FE(Sa.vh,Sa.fraction)),shadows:fp("shadows"),logical:Nee,blur:fp("blur",Sa.blur)},jT={background:Oe.colors("background"),backgroundColor:Oe.colors("backgroundColor"),backgroundImage:Oe.propT("backgroundImage",Sa.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Sa.bgClip},bgSize:Oe.prop("backgroundSize"),bgPosition:Oe.prop("backgroundPosition"),bg:Oe.colors("background"),bgColor:Oe.colors("backgroundColor"),bgPos:Oe.prop("backgroundPosition"),bgRepeat:Oe.prop("backgroundRepeat"),bgAttachment:Oe.prop("backgroundAttachment"),bgGradient:Oe.propT("backgroundImage",Sa.gradient),bgClip:{transform:Sa.bgClip}};Object.assign(jT,{bgImage:jT.backgroundImage,bgImg:jT.backgroundImage});var La={border:Oe.borders("border"),borderWidth:Oe.borderWidths("borderWidth"),borderStyle:Oe.borderStyles("borderStyle"),borderColor:Oe.colors("borderColor"),borderRadius:Oe.radii("borderRadius"),borderTop:Oe.borders("borderTop"),borderBlockStart:Oe.borders("borderBlockStart"),borderTopLeftRadius:Oe.radii("borderTopLeftRadius"),borderStartStartRadius:Oe.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Oe.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Oe.radii("borderTopRightRadius"),borderStartEndRadius:Oe.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Oe.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Oe.borders("borderRight"),borderInlineEnd:Oe.borders("borderInlineEnd"),borderBottom:Oe.borders("borderBottom"),borderBlockEnd:Oe.borders("borderBlockEnd"),borderBottomLeftRadius:Oe.radii("borderBottomLeftRadius"),borderBottomRightRadius:Oe.radii("borderBottomRightRadius"),borderLeft:Oe.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Oe.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Oe.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Oe.borders(["borderLeft","borderRight"]),borderInline:Oe.borders("borderInline"),borderY:Oe.borders(["borderTop","borderBottom"]),borderBlock:Oe.borders("borderBlock"),borderTopWidth:Oe.borderWidths("borderTopWidth"),borderBlockStartWidth:Oe.borderWidths("borderBlockStartWidth"),borderTopColor:Oe.colors("borderTopColor"),borderBlockStartColor:Oe.colors("borderBlockStartColor"),borderTopStyle:Oe.borderStyles("borderTopStyle"),borderBlockStartStyle:Oe.borderStyles("borderBlockStartStyle"),borderBottomWidth:Oe.borderWidths("borderBottomWidth"),borderBlockEndWidth:Oe.borderWidths("borderBlockEndWidth"),borderBottomColor:Oe.colors("borderBottomColor"),borderBlockEndColor:Oe.colors("borderBlockEndColor"),borderBottomStyle:Oe.borderStyles("borderBottomStyle"),borderBlockEndStyle:Oe.borderStyles("borderBlockEndStyle"),borderLeftWidth:Oe.borderWidths("borderLeftWidth"),borderInlineStartWidth:Oe.borderWidths("borderInlineStartWidth"),borderLeftColor:Oe.colors("borderLeftColor"),borderInlineStartColor:Oe.colors("borderInlineStartColor"),borderLeftStyle:Oe.borderStyles("borderLeftStyle"),borderInlineStartStyle:Oe.borderStyles("borderInlineStartStyle"),borderRightWidth:Oe.borderWidths("borderRightWidth"),borderInlineEndWidth:Oe.borderWidths("borderInlineEndWidth"),borderRightColor:Oe.colors("borderRightColor"),borderInlineEndColor:Oe.colors("borderInlineEndColor"),borderRightStyle:Oe.borderStyles("borderRightStyle"),borderInlineEndStyle:Oe.borderStyles("borderInlineEndStyle"),borderTopRadius:Oe.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Oe.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Oe.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Oe.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(La,{rounded:La.borderRadius,roundedTop:La.borderTopRadius,roundedTopLeft:La.borderTopLeftRadius,roundedTopRight:La.borderTopRightRadius,roundedTopStart:La.borderStartStartRadius,roundedTopEnd:La.borderStartEndRadius,roundedBottom:La.borderBottomRadius,roundedBottomLeft:La.borderBottomLeftRadius,roundedBottomRight:La.borderBottomRightRadius,roundedBottomStart:La.borderEndStartRadius,roundedBottomEnd:La.borderEndEndRadius,roundedLeft:La.borderLeftRadius,roundedRight:La.borderRightRadius,roundedStart:La.borderInlineStartRadius,roundedEnd:La.borderInlineEndRadius,borderStart:La.borderInlineStart,borderEnd:La.borderInlineEnd,borderTopStartRadius:La.borderStartStartRadius,borderTopEndRadius:La.borderStartEndRadius,borderBottomStartRadius:La.borderEndStartRadius,borderBottomEndRadius:La.borderEndEndRadius,borderStartRadius:La.borderInlineStartRadius,borderEndRadius:La.borderInlineEndRadius,borderStartWidth:La.borderInlineStartWidth,borderEndWidth:La.borderInlineEndWidth,borderStartColor:La.borderInlineStartColor,borderEndColor:La.borderInlineEndColor,borderStartStyle:La.borderInlineStartStyle,borderEndStyle:La.borderInlineEndStyle});var zee={color:Oe.colors("color"),textColor:Oe.colors("color"),fill:Oe.colors("fill"),stroke:Oe.colors("stroke")},Gk={boxShadow:Oe.shadows("boxShadow"),mixBlendMode:!0,blendMode:Oe.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Oe.prop("backgroundBlendMode"),opacity:!0};Object.assign(Gk,{shadow:Gk.boxShadow});var Bee={filter:{transform:Sa.filter},blur:Oe.blur("--chakra-blur"),brightness:Oe.propT("--chakra-brightness",Sa.brightness),contrast:Oe.propT("--chakra-contrast",Sa.contrast),hueRotate:Oe.degreeT("--chakra-hue-rotate"),invert:Oe.propT("--chakra-invert",Sa.invert),saturate:Oe.propT("--chakra-saturate",Sa.saturate),dropShadow:Oe.propT("--chakra-drop-shadow",Sa.dropShadow),backdropFilter:{transform:Sa.backdropFilter},backdropBlur:Oe.blur("--chakra-backdrop-blur"),backdropBrightness:Oe.propT("--chakra-backdrop-brightness",Sa.brightness),backdropContrast:Oe.propT("--chakra-backdrop-contrast",Sa.contrast),backdropHueRotate:Oe.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Oe.propT("--chakra-backdrop-invert",Sa.invert),backdropSaturate:Oe.propT("--chakra-backdrop-saturate",Sa.saturate)},N6={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Sa.flexDirection},experimental_spaceX:{static:Aee,transform:Aw({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:Oee,transform:Aw({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Oe.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Oe.space("gap"),rowGap:Oe.space("rowGap"),columnGap:Oe.space("columnGap")};Object.assign(N6,{flexDir:N6.flexDirection});var IH={gridGap:Oe.space("gridGap"),gridColumnGap:Oe.space("gridColumnGap"),gridRowGap:Oe.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},$ee={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Sa.outline},outlineOffset:!0,outlineColor:Oe.colors("outlineColor")},Zd={width:Oe.sizesT("width"),inlineSize:Oe.sizesT("inlineSize"),height:Oe.sizes("height"),blockSize:Oe.sizes("blockSize"),boxSize:Oe.sizes(["width","height"]),minWidth:Oe.sizes("minWidth"),minInlineSize:Oe.sizes("minInlineSize"),minHeight:Oe.sizes("minHeight"),minBlockSize:Oe.sizes("minBlockSize"),maxWidth:Oe.sizes("maxWidth"),maxInlineSize:Oe.sizes("maxInlineSize"),maxHeight:Oe.sizes("maxHeight"),maxBlockSize:Oe.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Oe.propT("float",Sa.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Zd,{w:Zd.width,h:Zd.height,minW:Zd.minWidth,maxW:Zd.maxWidth,minH:Zd.minHeight,maxH:Zd.maxHeight,overscroll:Zd.overscrollBehavior,overscrollX:Zd.overscrollBehaviorX,overscrollY:Zd.overscrollBehaviorY});var Uee={listStyleType:!0,listStylePosition:!0,listStylePos:Oe.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Oe.prop("listStyleImage")};function Hee(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var jee=e=>{const t=new WeakMap;return(r,i,s,l)=>{if(typeof r>"u")return e(r,i,s);t.has(r)||t.set(r,new Map);const f=t.get(r);if(f.has(i))return f.get(i);const d=e(r,i,s,l);return f.set(i,d),d}},Vee=jee(Hee),Gee={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Wee={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},n8=(e,t,n)=>{const r={},i=Vee(e,t,{});for(const s in i)s in n&&n[s]!=null||(r[s]=i[s]);return r},Yee={srOnly:{transform(e){return e===!0?Gee:e==="focusable"?Wee:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>n8(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>n8(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>n8(t,e,n)}},ow={position:!0,pos:Oe.prop("position"),zIndex:Oe.prop("zIndex","zIndices"),inset:Oe.spaceT("inset"),insetX:Oe.spaceT(["left","right"]),insetInline:Oe.spaceT("insetInline"),insetY:Oe.spaceT(["top","bottom"]),insetBlock:Oe.spaceT("insetBlock"),top:Oe.spaceT("top"),insetBlockStart:Oe.spaceT("insetBlockStart"),bottom:Oe.spaceT("bottom"),insetBlockEnd:Oe.spaceT("insetBlockEnd"),left:Oe.spaceT("left"),insetInlineStart:Oe.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Oe.spaceT("right"),insetInlineEnd:Oe.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ow,{insetStart:ow.insetInlineStart,insetEnd:ow.insetInlineEnd});var qee={ring:{transform:Sa.ring},ringColor:Oe.colors("--chakra-ring-color"),ringOffset:Oe.prop("--chakra-ring-offset-width"),ringOffsetColor:Oe.colors("--chakra-ring-offset-color"),ringInset:Oe.prop("--chakra-ring-inset")},Vi={margin:Oe.spaceT("margin"),marginTop:Oe.spaceT("marginTop"),marginBlockStart:Oe.spaceT("marginBlockStart"),marginRight:Oe.spaceT("marginRight"),marginInlineEnd:Oe.spaceT("marginInlineEnd"),marginBottom:Oe.spaceT("marginBottom"),marginBlockEnd:Oe.spaceT("marginBlockEnd"),marginLeft:Oe.spaceT("marginLeft"),marginInlineStart:Oe.spaceT("marginInlineStart"),marginX:Oe.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Oe.spaceT("marginInline"),marginY:Oe.spaceT(["marginTop","marginBottom"]),marginBlock:Oe.spaceT("marginBlock"),padding:Oe.space("padding"),paddingTop:Oe.space("paddingTop"),paddingBlockStart:Oe.space("paddingBlockStart"),paddingRight:Oe.space("paddingRight"),paddingBottom:Oe.space("paddingBottom"),paddingBlockEnd:Oe.space("paddingBlockEnd"),paddingLeft:Oe.space("paddingLeft"),paddingInlineStart:Oe.space("paddingInlineStart"),paddingInlineEnd:Oe.space("paddingInlineEnd"),paddingX:Oe.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Oe.space("paddingInline"),paddingY:Oe.space(["paddingTop","paddingBottom"]),paddingBlock:Oe.space("paddingBlock")};Object.assign(Vi,{m:Vi.margin,mt:Vi.marginTop,mr:Vi.marginRight,me:Vi.marginInlineEnd,marginEnd:Vi.marginInlineEnd,mb:Vi.marginBottom,ml:Vi.marginLeft,ms:Vi.marginInlineStart,marginStart:Vi.marginInlineStart,mx:Vi.marginX,my:Vi.marginY,p:Vi.padding,pt:Vi.paddingTop,py:Vi.paddingY,px:Vi.paddingX,pb:Vi.paddingBottom,pl:Vi.paddingLeft,ps:Vi.paddingInlineStart,paddingStart:Vi.paddingInlineStart,pr:Vi.paddingRight,pe:Vi.paddingInlineEnd,paddingEnd:Vi.paddingInlineEnd});var Kee={textDecorationColor:Oe.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Oe.shadows("textShadow")},Zee={clipPath:!0,transform:Oe.propT("transform",Sa.transform),transformOrigin:!0,translateX:Oe.spaceT("--chakra-translate-x"),translateY:Oe.spaceT("--chakra-translate-y"),skewX:Oe.degreeT("--chakra-skew-x"),skewY:Oe.degreeT("--chakra-skew-y"),scaleX:Oe.prop("--chakra-scale-x"),scaleY:Oe.prop("--chakra-scale-y"),scale:Oe.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Oe.degreeT("--chakra-rotate")},Xee={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Oe.prop("transitionDuration","transition.duration"),transitionProperty:Oe.prop("transitionProperty","transition.property"),transitionTimingFunction:Oe.prop("transitionTimingFunction","transition.easing")},Qee={fontFamily:Oe.prop("fontFamily","fonts"),fontSize:Oe.prop("fontSize","fontSizes",Sa.px),fontWeight:Oe.prop("fontWeight","fontWeights"),lineHeight:Oe.prop("lineHeight","lineHeights"),letterSpacing:Oe.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"}},Jee={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Oe.spaceT("scrollMargin"),scrollMarginTop:Oe.spaceT("scrollMarginTop"),scrollMarginBottom:Oe.spaceT("scrollMarginBottom"),scrollMarginLeft:Oe.spaceT("scrollMarginLeft"),scrollMarginRight:Oe.spaceT("scrollMarginRight"),scrollMarginX:Oe.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Oe.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Oe.spaceT("scrollPadding"),scrollPaddingTop:Oe.spaceT("scrollPaddingTop"),scrollPaddingBottom:Oe.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Oe.spaceT("scrollPaddingLeft"),scrollPaddingRight:Oe.spaceT("scrollPaddingRight"),scrollPaddingX:Oe.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Oe.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function FH(e){return rv(e)&&e.reference?e.reference:String(e)}var S9=(e,...t)=>t.map(FH).join(` ${e} `).replace(/calc/g,""),II=(...e)=>`calc(${S9("+",...e)})`,FI=(...e)=>`calc(${S9("-",...e)})`,Wk=(...e)=>`calc(${S9("*",...e)})`,zI=(...e)=>`calc(${S9("/",...e)})`,BI=e=>{const t=FH(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Wk(t,-1)},hS=Object.assign(e=>({add:(...t)=>hS(II(e,...t)),subtract:(...t)=>hS(FI(e,...t)),multiply:(...t)=>hS(Wk(e,...t)),divide:(...t)=>hS(zI(e,...t)),negate:()=>hS(BI(e)),toString:()=>e.toString()}),{add:II,subtract:FI,multiply:Wk,divide:zI,negate:BI});function ete(e,t="-"){return e.replace(/\s+/g,t)}function tte(e){const t=ete(e.toString());return rte(nte(t))}function nte(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function rte(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function ate(e,t=""){return[t,e].filter(Boolean).join("-")}function ite(e,t){return`var(${e}${t?`, ${t}`:""})`}function ote(e,t=""){return tte(`--${ate(e,t)}`)}function ste(e,t,n){const r=ote(e,n);return{variable:r,reference:ite(r,t)}}function lte(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function ute(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function cte(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Yk(e){if(e==null)return e;const{unitless:t}=cte(e);return t||typeof e=="number"?`${e}px`:e}var zH=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,fL=e=>Object.fromEntries(Object.entries(e).sort(zH));function $I(e){const t=fL(e);return Object.assign(Object.values(t),t)}function fte(e){const t=Object.keys(fL(e));return new Set(t)}function UI(e){if(!e)return e;e=Yk(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 WN(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Yk(e)})`),t&&n.push("and",`(max-width: ${Yk(t)})`),n.join(" ")}function dte(e){if(!e)return null;e.base=e.base??"0px";const t=$I(e),n=Object.entries(e).sort(zH).map(([s,l],f,d)=>{let[,m]=d[f+1]??[];return m=parseFloat(m)>0?UI(m):void 0,{_minW:UI(l),breakpoint:s,minW:l,maxW:m,maxWQuery:WN(null,m),minWQuery:WN(l),minMaxQuery:WN(l,m)}}),r=fte(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(s){const l=Object.keys(s);return l.length>0&&l.every(f=>r.has(f))},asObject:fL(e),asArray:$I(e),details:n,media:[null,...t.map(s=>WN(s)).slice(1)],toArrayValue(s){if(!lte(s))throw new Error("toArrayValue: value must be an object");const l=i.map(f=>s[f]??null);for(;ute(l)===null;)l.pop();return l},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((l,f,d)=>{const m=i[d];return m!=null&&f!=null&&(l[m]=f),l},{})}}}var au={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}`},lb=e=>BH(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Wg=e=>BH(t=>e(t,"~ &"),"[data-peer]",".peer"),BH=(e,...t)=>t.map(e).join(", "),x9={_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:lb(au.hover),_peerHover:Wg(au.hover),_groupFocus:lb(au.focus),_peerFocus:Wg(au.focus),_groupFocusVisible:lb(au.focusVisible),_peerFocusVisible:Wg(au.focusVisible),_groupActive:lb(au.active),_peerActive:Wg(au.active),_groupDisabled:lb(au.disabled),_peerDisabled:Wg(au.disabled),_groupInvalid:lb(au.invalid),_peerInvalid:Wg(au.invalid),_groupChecked:lb(au.checked),_peerChecked:Wg(au.checked),_groupFocusWithin:lb(au.focusWithin),_peerFocusWithin:Wg(au.focusWithin),_peerPlaceholderShown:Wg(au.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]"},hte=Object.keys(x9);function HI(e,t){return ste(String(e).replace(/\./g,"-"),void 0,t)}function pte(e,t){let n={};const r={};for(const[i,s]of Object.entries(e)){const{isSemantic:l,value:f}=s,{variable:d,reference:m}=HI(i,t?.cssVarPrefix);if(!l){if(i.startsWith("space")){const N=i.split("."),[w,...T]=N,L=`${w}.-${T.join(".")}`,M=hS.negate(f),B=hS.negate(m);r[L]={value:M,var:d,varRef:B}}n[d]=f,r[i]={value:f,var:d,varRef:m};continue}const b=N=>{const T=[String(i).split(".")[0],N].join(".");if(!e[T])return N;const{reference:M}=HI(T,t?.cssVarPrefix);return M},S=rv(f)?f:{default:f};n=r0(n,Object.entries(S).reduce((N,[w,T])=>{var L;const M=b(T);if(w==="default")return N[d]=M,N;const B=((L=x9)==null?void 0:L[w])??w;return N[B]={[d]:M},N},{})),r[i]={value:m,var:d,varRef:m}}return{cssVars:n,cssMap:r}}function mte(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function vte(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var gte=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function bte(e){return vte(e,gte)}function yte(e){return e.semanticTokens}function Ste(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function xte({tokens:e,semanticTokens:t}){const n=Object.entries(qk(e)??{}).map(([i,s])=>[i,{isSemantic:!1,value:s}]),r=Object.entries(qk(t,1)??{}).map(([i,s])=>[i,{isSemantic:!0,value:s}]);return Object.fromEntries([...n,...r])}function qk(e,t=1/0){return!rv(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,i])=>(rv(i)||Array.isArray(i)?Object.entries(qk(i,t-1)).forEach(([s,l])=>{n[`${r}.${s}`]=l}):n[r]=i,n),{})}function Cte(e){var t;const n=Ste(e),r=bte(n),i=yte(n),s=xte({tokens:r,semanticTokens:i}),l=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:f,cssVars:d}=pte(s,{cssVarPrefix:l});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...d},__cssMap:f,__breakpoints:dte(n.breakpoints)}),n}var dL=r0({},jT,La,zee,N6,Zd,Bee,qee,$ee,IH,Yee,ow,Gk,Vi,Jee,Qee,Kee,Zee,Uee,Xee),Nte=Object.assign({},Vi,Zd,N6,IH,ow),wte=Object.keys(Nte),_te=[...Object.keys(dL),...hte],Ete={...dL,...x9},Tte=e=>e in Ete;function Rte(e){return/^var\(--.+\)$/.test(e)}var kte=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Rte(t),Ate=(e,t)=>{if(t==null)return t;const n=f=>{var d,m;return(m=(d=e.__cssMap)==null?void 0:d[f])==null?void 0:m.varRef},r=f=>n(f)??f,i=t.split(",").map(f=>f.trim()),[s,l]=i;return t=n(s)??r(l)??r(t),t};function Ote(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:i,toArrayValue:s,media:l}=r.__breakpoints,f=(d,m=!1)=>{var b;const S=v3(d,r);let N={};for(let w in S){let T=v3(S[w],r);if(T==null)continue;if(Array.isArray(T)||rv(T)&&i(T)){let F=Array.isArray(T)?T:s(T);F=F.slice(0,l.length);for(let z=0;z<F.length;z++){const H=l[z],G=F[z];H?G==null?N[H]??(N[H]={}):N[H]=Object.assign({},N[H],f({[w]:G},!0)):N=Object.assign({},N,f({...S,[w]:G},!1))}continue}if(w in n&&(w=n[w]),kte(w,T)&&(T=Ate(r,T)),rv(T)){N[w]=Object.assign({},N[w],f(T,!0));continue}let L=t[w];if(L===!0&&(L={property:w}),!m&&L?.static){const F=v3(L.static,r);N=Object.assign({},N,F)}let M=((b=L?.transform)==null?void 0:b.call(L,T,r,S))??T;if(M=L?.processResult?f(M,!0):M,rv(M)){N=Object.assign({},N,M);continue}const B=v3(L?.property,r);if(B){if(Array.isArray(B)){for(const F of B)N[F]=M;continue}B==="&"&&rv(M)?N=Object.assign({},N,M):N[B]=M;continue}N[w]=M}return N};return f}var $H=e=>t=>Ote({theme:t,pseudos:x9,configs:dL})(e);function Lte(e,t){if(Array.isArray(e))return e;if(rv(e))return t(e);if(e!=null)return[e]}function Mte(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function Dte(e){const t=e.__breakpoints;return function(r,i,s,l){var f,d;if(!t)return;const m={},b=Lte(s,t.toArrayValue);if(!b)return m;const S=b.length,N=S===1,w=!!r.parts;for(let T=0;T<S;T++){const L=t.details[T],M=t.details[Mte(b,T)],B=WN(L.minW,M?._minW),F=v3((f=r[i])==null?void 0:f[b[T]],l);if(!!F){if(w){(d=r.parts)==null||d.forEach(z=>{r0(m,{[z]:N?F[z]:{[B]:F[z]}})});continue}if(!w){N?r0(m,F):m[B]=F;continue}m[B]=F}}return m}}function Pte(e){return t=>{const{variant:n,size:r,theme:i}=t,s=Dte(i);return r0({},v3(e.baseStyle??{},t),s(e,"sizes",r,t),s(e,"variants",n,t))}}function Ite(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function Ia(e){return mte(e,["styleConfig","size","variant","colorScheme"])}function Fte(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 zte(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 Bte=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!1: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(zte(this));var i=this.tags[this.tags.length-1];{var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!s}if(this.isSpeedy){var l=Fte(i);try{l.insertRule(r,l.cssRules.length)}catch(f){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(r)||console.error('There was a problem inserting the following rule: "'+r+'"',f)}}else i.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,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),$u="-ms-",w6="-moz-",Da="-webkit-",hL="comm",pL="rule",mL="decl",$te="@import",UH="@keyframes",Ute=Math.abs,C9=String.fromCharCode,Hte=Object.assign;function jte(e,t){return(((t<<2^df(e,0))<<2^df(e,1))<<2^df(e,2))<<2^df(e,3)}function HH(e){return e.trim()}function Vte(e,t){return(e=t.exec(e))?e[0]:e}function Ha(e,t,n){return e.replace(t,n)}function Kk(e,t){return e.indexOf(t)}function df(e,t){return e.charCodeAt(t)|0}function Ow(e,t,n){return e.slice(t,n)}function Qm(e){return e.length}function vL(e){return e.length}function zE(e,t){return t.push(e),e}function Gte(e,t){return e.map(t).join("")}var N9=1,U3=1,jH=0,gf=0,As=0,rC="";function w9(e,t,n,r,i,s,l){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:N9,column:U3,length:l,return:""}}function wN(e,t){return Hte(w9("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wte(){return As}function Yte(){return As=gf>0?df(rC,--gf):0,U3--,As===10&&(U3=1,N9--),As}function ed(){return As=gf<jH?df(rC,gf++):0,U3++,As===10&&(U3=1,N9++),As}function iv(){return df(rC,gf)}function VT(){return gf}function o_(e,t){return Ow(rC,e,t)}function Lw(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 VH(e){return N9=U3=1,jH=Qm(rC=e),gf=0,[]}function GH(e){return rC="",e}function GT(e){return HH(o_(gf-1,Zk(e===91?e+2:e===40?e+1:e)))}function qte(e){for(;(As=iv())&&As<33;)ed();return Lw(e)>2||Lw(As)>3?"":" "}function Kte(e,t){for(;--t&&ed()&&!(As<48||As>102||As>57&&As<65||As>70&&As<97););return o_(e,VT()+(t<6&&iv()==32&&ed()==32))}function Zk(e){for(;ed();)switch(As){case e:return gf;case 34:case 39:e!==34&&e!==39&&Zk(As);break;case 40:e===41&&Zk(e);break;case 92:ed();break}return gf}function Zte(e,t){for(;ed()&&e+As!==47+10;)if(e+As===42+42&&iv()===47)break;return"/*"+o_(t,gf-1)+"*"+C9(e===47?e:ed())}function Xte(e){for(;!Lw(iv());)ed();return o_(e,gf)}function Qte(e){return GH(WT("",null,null,null,[""],e=VH(e),0,[0],e))}function WT(e,t,n,r,i,s,l,f,d){for(var m=0,b=0,S=l,N=0,w=0,T=0,L=1,M=1,B=1,F=0,z="",H=i,G=s,K=r,Z=z;M;)switch(T=F,F=ed()){case 40:if(T!=108&&Z.charCodeAt(S-1)==58){Kk(Z+=Ha(GT(F),"&","&\f"),"&\f")!=-1&&(B=-1);break}case 34:case 39:case 91:Z+=GT(F);break;case 9:case 10:case 13:case 32:Z+=qte(T);break;case 92:Z+=Kte(VT()-1,7);continue;case 47:switch(iv()){case 42:case 47:zE(Jte(Zte(ed(),VT()),t,n),d);break;default:Z+="/"}break;case 123*L:f[m++]=Qm(Z)*B;case 125*L:case 59:case 0:switch(F){case 0:case 125:M=0;case 59+b:w>0&&Qm(Z)-S&&zE(w>32?VI(Z+";",r,n,S-1):VI(Ha(Z," ","")+";",r,n,S-2),d);break;case 59:Z+=";";default:if(zE(K=jI(Z,t,n,m,b,i,f,z,H=[],G=[],S),s),F===123)if(b===0)WT(Z,t,K,K,H,s,S,f,G);else switch(N){case 100:case 109:case 115:WT(e,K,K,r&&zE(jI(e,K,K,0,0,i,f,z,i,H=[],S),G),i,G,S,f,r?H:G);break;default:WT(Z,K,K,K,[""],G,0,f,G)}}m=b=w=0,L=B=1,z=Z="",S=l;break;case 58:S=1+Qm(Z),w=T;default:if(L<1){if(F==123)--L;else if(F==125&&L++==0&&Yte()==125)continue}switch(Z+=C9(F),F*L){case 38:B=b>0?1:(Z+="\f",-1);break;case 44:f[m++]=(Qm(Z)-1)*B,B=1;break;case 64:iv()===45&&(Z+=GT(ed())),N=iv(),b=S=Qm(z=Z+=Xte(VT())),F++;break;case 45:T===45&&Qm(Z)==2&&(L=0)}}return s}function jI(e,t,n,r,i,s,l,f,d,m,b){for(var S=i-1,N=i===0?s:[""],w=vL(N),T=0,L=0,M=0;T<r;++T)for(var B=0,F=Ow(e,S+1,S=Ute(L=l[T])),z=e;B<w;++B)(z=HH(L>0?N[B]+" "+F:Ha(F,/&\f/g,N[B])))&&(d[M++]=z);return w9(e,t,n,i===0?pL:f,d,m,b)}function Jte(e,t,n){return w9(e,t,n,hL,C9(Wte()),Ow(e,2,-2),0)}function VI(e,t,n,r){return w9(e,t,n,mL,Ow(e,0,r),Ow(e,r+1,-1),r)}function WH(e,t){switch(jte(e,t)){case 5103:return Da+"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 Da+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Da+e+w6+e+$u+e+e;case 6828:case 4268:return Da+e+$u+e+e;case 6165:return Da+e+$u+"flex-"+e+e;case 5187:return Da+e+Ha(e,/(\w+).+(:[^]+)/,Da+"box-$1$2"+$u+"flex-$1$2")+e;case 5443:return Da+e+$u+"flex-item-"+Ha(e,/flex-|-self/,"")+e;case 4675:return Da+e+$u+"flex-line-pack"+Ha(e,/align-content|flex-|-self/,"")+e;case 5548:return Da+e+$u+Ha(e,"shrink","negative")+e;case 5292:return Da+e+$u+Ha(e,"basis","preferred-size")+e;case 6060:return Da+"box-"+Ha(e,"-grow","")+Da+e+$u+Ha(e,"grow","positive")+e;case 4554:return Da+Ha(e,/([^-])(transform)/g,"$1"+Da+"$2")+e;case 6187:return Ha(Ha(Ha(e,/(zoom-|grab)/,Da+"$1"),/(image-set)/,Da+"$1"),e,"")+e;case 5495:case 3959:return Ha(e,/(image-set\([^]*)/,Da+"$1$`$1");case 4968:return Ha(Ha(e,/(.+:)(flex-)?(.*)/,Da+"box-pack:$3"+$u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Da+e+e;case 4095:case 3583:case 4068:case 2532:return Ha(e,/(.+)-inline(.+)/,Da+"$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(Qm(e)-1-t>6)switch(df(e,t+1)){case 109:if(df(e,t+4)!==45)break;case 102:return Ha(e,/(.+:)(.+)-([^]+)/,"$1"+Da+"$2-$3$1"+w6+(df(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kk(e,"stretch")?WH(Ha(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(df(e,t+1)!==115)break;case 6444:switch(df(e,Qm(e)-3-(~Kk(e,"!important")&&10))){case 107:return Ha(e,":",":"+Da)+e;case 101:return Ha(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Da+(df(e,14)===45?"inline-":"")+"box$3$1"+Da+"$2$3$1"+$u+"$2box$3")+e}break;case 5936:switch(df(e,t+11)){case 114:return Da+e+$u+Ha(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Da+e+$u+Ha(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Da+e+$u+Ha(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Da+e+$u+e+e}return e}function _3(e,t){for(var n="",r=vL(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ene(e,t,n,r){switch(e.type){case $te:case mL:return e.return=e.return||e.value;case hL:return"";case UH:return e.return=e.value+"{"+_3(e.children,r)+"}";case pL:e.value=e.props.join(",")}return Qm(n=_3(e.children,r))?e.return=e.value+"{"+n+"}":""}function tne(e){var t=vL(e);return function(n,r,i,s){for(var l="",f=0;f<t;f++)l+=e[f](n,r,i,s)||"";return l}}function nne(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mL:e.return=WH(e.value,e.length);break;case UH:return _3([wN(e,{value:Ha(e.value,"@","@"+Da)})],r);case pL:if(e.length)return Gte(e.props,function(i){switch(Vte(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _3([wN(e,{props:[Ha(i,/:(read-\w+)/,":"+w6+"$1")]})],r);case"::placeholder":return _3([wN(e,{props:[Ha(i,/:(plac\w+)/,":"+Da+"input-$1")]}),wN(e,{props:[Ha(i,/:(plac\w+)/,":"+w6+"$1")]}),wN(e,{props:[Ha(i,/:(plac\w+)/,$u+"input-$1")]})],r)}return""})}}var GI=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function YH(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rne=function(t,n,r){for(var i=0,s=0;i=s,s=iv(),i===38&&s===12&&(n[r]=1),!Lw(s);)ed();return o_(t,gf)},ane=function(t,n){var r=-1,i=44;do switch(Lw(i)){case 0:i===38&&iv()===12&&(n[r]=1),t[r]+=rne(gf-1,n,r);break;case 2:t[r]+=GT(i);break;case 4:if(i===44){t[++r]=iv()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=C9(i)}while(i=ed());return t},ine=function(t,n){return GH(ane(VH(t),n))},WI=new WeakMap,one=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=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&&!WI.get(r))&&!i){WI.set(t,!0);for(var s=[],l=ine(n,s),f=r.props,d=0,m=0;d<l.length;d++)for(var b=0;b<f.length;b++,m++)t.props[m]=s[d]?l[d].replace(/&\f/g,f[b]):f[b]+" "+l[d]}}},sne=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},lne="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",une=function(t){return t.type==="comm"&&t.children.indexOf(lne)>-1},cne=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var l=n.parent===i[0],f=l?i[0].children:i,d=f.length-1;d>=0;d--){var m=f[d];if(m.line<n.line)break;if(m.column<n.column){if(une(m))return;break}}s.forEach(function(b){console.error('The pseudo class "'+b+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+b.split("-child")[0]+'-of-type".')})}}}},qH=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},fne=function(t,n){for(var r=t-1;r>=0;r--)if(!qH(n[r]))return!0;return!1},YI=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},dne=function(t,n,r){!qH(t)||(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),YI(t)):fne(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),YI(t)))},hne=[nne],pne=function(t){var n=t.key;if(!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(L){var M=L.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(L),L.setAttribute("data-s",""))})}var i=t.stylisPlugins||hne;if(/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var s={},l,f=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(L){for(var M=L.getAttribute("data-emotion").split(" "),B=1;B<M.length;B++)s[M[B]]=!0;f.push(L)});var d,m=[one,sne];m.push(cne({get compat(){return T.compat}}),dne);{var b,S=[ene,function(L){L.root||(L.return?b.insert(L.return):L.value&&L.type!==hL&&b.insert(L.value+"{}"))}],N=tne(m.concat(i,S)),w=function(M){return _3(Qte(M),N)};d=function(M,B,F,z){b=F,B.map!==void 0&&(b={insert:function(G){F.insert(G+B.map)}}),w(M?M+"{"+B.styles+"}":B.styles),z&&(T.inserted[B.name]=!0)}}var T={key:n,sheet:new Bte({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return T.sheet.hydrate(f),T};function ja(){return ja=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},ja.apply(this,arguments)}var _9={exports:{}},Qa={};/** @license React v16.13.1
* react-is.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.
*/(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,L=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,B=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function z(ht){return typeof ht=="string"||typeof ht=="function"||ht===r||ht===m||ht===s||ht===i||ht===S||ht===N||typeof ht=="object"&&ht!==null&&(ht.$$typeof===T||ht.$$typeof===w||ht.$$typeof===l||ht.$$typeof===f||ht.$$typeof===b||ht.$$typeof===M||ht.$$typeof===B||ht.$$typeof===F||ht.$$typeof===L)}function H(ht){if(typeof ht=="object"&&ht!==null){var gn=ht.$$typeof;switch(gn){case t:var De=ht.type;switch(De){case d:case m:case r:case s:case i:case S:return De;default:var kt=De&&De.$$typeof;switch(kt){case f:case b:case T:case w:case l:return kt;default:return gn}}case n:return gn}}}var G=d,K=m,Z=f,ne=l,ie=t,le=b,oe=r,Ae=T,de=w,Se=n,Me=s,_e=i,J=S,he=!1;function ve(ht){return he||(he=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ye(ht)||H(ht)===d}function ye(ht){return H(ht)===m}function xe(ht){return H(ht)===f}function Ve(ht){return H(ht)===l}function Pe(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===t}function Qe(ht){return H(ht)===b}function wt(ht){return H(ht)===r}function Ot(ht){return H(ht)===T}function Ut(ht){return H(ht)===w}function ut(ht){return H(ht)===n}function It(ht){return H(ht)===s}function Qt(ht){return H(ht)===i}function pn(ht){return H(ht)===S}Qa.AsyncMode=G,Qa.ConcurrentMode=K,Qa.ContextConsumer=Z,Qa.ContextProvider=ne,Qa.Element=ie,Qa.ForwardRef=le,Qa.Fragment=oe,Qa.Lazy=Ae,Qa.Memo=de,Qa.Portal=Se,Qa.Profiler=Me,Qa.StrictMode=_e,Qa.Suspense=J,Qa.isAsyncMode=ve,Qa.isConcurrentMode=ye,Qa.isContextConsumer=xe,Qa.isContextProvider=Ve,Qa.isElement=Pe,Qa.isForwardRef=Qe,Qa.isFragment=wt,Qa.isLazy=Ot,Qa.isMemo=Ut,Qa.isPortal=ut,Qa.isProfiler=It,Qa.isStrictMode=Qt,Qa.isSuspense=pn,Qa.isValidElementType=z,Qa.typeOf=H})();(function(e){e.exports=Qa})(_9);var KH=_9.exports,mne={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ZH={};ZH[KH.ForwardRef]=mne;ZH[KH.Memo]=vne;var gne=!0;function gL(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var E9=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||gne===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},T9=function(t,n,r){E9(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function bne(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yne={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},qI=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Sne="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xne=/[A-Z]|^ms/g,XH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bL=function(t){return t.charCodeAt(1)===45},KI=function(t){return t!=null&&typeof t!="boolean"},r8=YH(function(e){return bL(e)?e:e.replace(xne,"-$&").toLowerCase()}),_6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(XH,function(r,i,s){return Jm={name:i,styles:s,next:Jm},i})}return yne[t]!==1&&!bL(t)&&typeof n=="number"&&n!==0?n+"px":n};{var Cne=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Nne=["normal","none","initial","inherit","unset"],wne=_6,_ne=/^-ms-/,Ene=/-(.)/g,ZI={};_6=function(t,n){if(t==="content"&&(typeof n!="string"||Nne.indexOf(n)===-1&&!Cne.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=wne(t,n);return r!==""&&!bL(t)&&t.indexOf("-")!==-1&&ZI[t]===void 0&&(ZI[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(_ne,"ms-").replace(Ene,function(i,s){return s.toUpperCase()})+"?")),r}}var QH="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mw(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(QH);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Jm={name:n.name,styles:n.styles,next:Jm},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Jm={name:r.name,styles:r.styles,next:Jm},r=r.next;var i=n.styles+";";return n.map!==void 0&&(i+=n.map),i}return Tne(e,t,n)}case"function":{if(e!==void 0){var s=Jm,l=n(e);return Jm=s,Mw(e,t,l)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var f=[],d=n.replace(XH,function(b,S,N){var w="animation"+f.length;return f.push("const "+w+" = keyframes`"+N.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+w+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+d+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+d+"`"))}break}if(t==null)return n;var m=t[n];return m!==void 0?m:n}function Tne(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Mw(e,t,n[i])+";";else for(var s in n){var l=n[s];if(typeof l!="object")t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":KI(l)&&(r+=r8(s)+":"+_6(s,l)+";");else{if(s==="NO_COMPONENT_SELECTOR")throw new Error(QH);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)KI(l[f])&&(r+=r8(s)+":"+_6(s,l[f])+";");else{var d=Mw(e,t,l);switch(s){case"animation":case"animationName":{r+=r8(s)+":"+d+";";break}default:s==="undefined"&&console.error(Sne),r+=s+"{"+d+"}"}}}}return r}var XI=/label:\s*([^\s;\n{]+)\s*(;|$)/g,JH;JH=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Jm,H3=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,s="";Jm=void 0;var l=t[0];l==null||l.raw===void 0?(i=!1,s+=Mw(r,n,l)):(l[0]===void 0&&console.error(qI),s+=l[0]);for(var f=1;f<t.length;f++)s+=Mw(r,n,t[f]),i&&(l[f]===void 0&&console.error(qI),s+=l[f]);var d;s=s.replace(JH,function(N){return d=N,""}),XI.lastIndex=0;for(var m="",b;(b=XI.exec(s))!==null;)m+="-"+b[1];var S=bne(s)+m;return{name:S,styles:s,map:d,next:Jm,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},Rne=function(t){return t()},ej=Bk["useInsertionEffect"]?Bk["useInsertionEffect"]:!1,yL=ej||Rne,QI=ej||O.exports.useLayoutEffect,kne={}.hasOwnProperty,SL=O.exports.createContext(typeof HTMLElement<"u"?pne({key:"css"}):null);SL.displayName="EmotionCacheContext";SL.Provider;var R9=function(t){return O.exports.forwardRef(function(n,r){var i=O.exports.useContext(SL);return t(n,i,r)})},Ob=O.exports.createContext({});Ob.displayName="EmotionThemeContext";var Ane=function(t,n){if(typeof n=="function"){var r=n(t);if(r==null||typeof r!="object"||Array.isArray(r))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if(n==null||typeof n!="object"||Array.isArray(n))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return ja({},t,n)},One=GI(function(e){return GI(function(t){return Ane(e,t)})}),Lne=function(t){var n=O.exports.useContext(Ob);return t.theme!==n&&(n=One(n)(t.theme)),O.exports.createElement(Ob.Provider,{value:n},t.children)},JI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eF="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Mne=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return E9(n,r,i),yL(function(){return T9(n,r,i)}),null},Dne=R9(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[JI],s=[r],l="";typeof e.className=="string"?l=gL(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var f=H3(s,void 0,O.exports.useContext(Ob));if(f.name.indexOf("-")===-1){var d=e[eF];d&&(f=H3([f,"label:"+d+";"]))}l+=t.key+"-"+f.name;var m={};for(var b in e)kne.call(e,b)&&b!=="css"&&b!==JI&&b!==eF&&(m[b]=e[b]);return m.ref=n,m.className=l,O.exports.createElement(O.exports.Fragment,null,O.exports.createElement(Mne,{cache:t,serialized:f,isStringTag:typeof i=="string"}),O.exports.createElement(i,m))});Dne.displayName="EmotionCssPropInternal";var Pne={name:"@emotion/react",version:"11.10.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.js","macro.d.ts","macro.js.flow"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.10.0","@emotion/cache":"^11.10.0","@emotion/serialize":"^1.1.0","@emotion/use-insertion-effect-with-fallbacks":"^1.0.0","@emotion/utils":"^1.2.0","@emotion/weak-memoize":"^0.3.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{"@babel/core":"^7.0.0",react:">=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.18.5","@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.0","@emotion/css-prettifier":"1.1.0","@emotion/server":"11.10.0","@emotion/styled":"11.10.4","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},tF=!1,s_=R9(function(e,t){!tF&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),tF=!0);var n=e.styles,r=H3([n],void 0,O.exports.useContext(Ob)),i=O.exports.useRef();return QI(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(f=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),i.current=[l,f],function(){l.flush()}},[t]),QI(function(){var s=i.current,l=s[0],f=s[1];if(f){s[1]=!1;return}if(r.next!==void 0&&T9(t,r.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});s_.displayName="EmotionGlobal";function Ine(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return H3(t)}var l_=function(){var t=Ine.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_"}}},Fne=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var s=t[r];if(s!=null){var l=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))l=e(s);else{s.styles!==void 0&&s.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="";for(var f in s)s[f]&&f&&(l&&(l+=" "),l+=f)}break}default:l=s}l&&(i&&(i+=" "),i+=l)}}return i};function zne(e,t,n){var r=[],i=gL(e,r,n);return r.length<2?n:i+t(r)}var Bne=function(t){var n=t.cache,r=t.serializedArr;return yL(function(){for(var i=0;i<r.length;i++)T9(n,r[i],!1)}),null},$ne=R9(function(e,t){var n=!1,r=[],i=function(){if(n)throw new Error("css can only be used during render");for(var m=arguments.length,b=new Array(m),S=0;S<m;S++)b[S]=arguments[S];var N=H3(b,t.registered);return r.push(N),E9(t,N,!1),t.key+"-"+N.name},s=function(){if(n)throw new Error("cx can only be used during render");for(var m=arguments.length,b=new Array(m),S=0;S<m;S++)b[S]=arguments[S];return zne(t.registered,i,Fne(b))},l={css:i,cx:s,theme:O.exports.useContext(Ob)},f=e.children(l);return n=!0,O.exports.createElement(O.exports.Fragment,null,O.exports.createElement(Bne,{cache:t,serializedArr:r}),f)});$ne.displayName="EmotionClassNames";{var nF=!0,Une=typeof jest<"u";if(nF&&!Une){var rF=typeof globalThis<"u"?globalThis:nF?window:global,aF="__EMOTION_REACT_"+Pne.version.split(".")[0]+"__";rF[aF]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),rF[aF]=!0}}var tj=1/60*1e3,Hne=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()},nj=typeof window<"u"?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(Hne())},tj)};function jne(e){var t=[],n=[],r=0,i=!1,s=new WeakSet,l={schedule:function(f,d,m){d===void 0&&(d=!1),m===void 0&&(m=!1);var b=m&&i,S=b?t:n;return d&&s.add(f),S.indexOf(f)===-1&&(S.push(f),b&&i&&(r=t.length)),f},cancel:function(f){var d=n.indexOf(f);d!==-1&&n.splice(d,1),s.delete(f)},process:function(f){var d;if(i=!0,d=[n,t],t=d[0],n=d[1],n.length=0,r=t.length,r)for(var m=0;m<r;m++){var b=t[m];b(f),s.has(b)&&(l.schedule(b),e())}i=!1}};return l}var Vne=40,Xk=!0,Dw=!1,Qk=!1,sw={delta:0,timestamp:0},k9=["read","update","preRender","render","postRender"],xL=k9.reduce(function(e,t){return e[t]=jne(function(){return Dw=!0}),e},{}),Gne=k9.reduce(function(e,t){var n=xL[t];return e[t]=function(r,i,s){return i===void 0&&(i=!1),s===void 0&&(s=!1),Dw||qne(),n.schedule(r,i,s)},e},{}),Wne=k9.reduce(function(e,t){return e[t]=xL[t].cancel,e},{}),Yne=function(e){return xL[e].process(sw)},rj=function(e){Dw=!1,sw.delta=Xk?tj:Math.max(Math.min(e-sw.timestamp,Vne),1),sw.timestamp=e,Qk=!0,k9.forEach(Yne),Qk=!1,Dw&&(Xk=!1,nj(rj))},qne=function(){Dw=!0,Xk=!0,Qk||nj(rj)},iF=function(){return sw};function g3(e){return typeof e=="function"}var Kne=!0;function aj(e){return"current"in e}function Zne(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function Xne(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var Qne=e=>{const t=new WeakMap;return(r,i,s,l)=>{if(typeof r>"u")return e(r,i,s);t.has(r)||t.set(r,new Map);const f=t.get(r);if(f.has(i))return f.get(i);const d=e(r,i,s,l);return f.set(i,d),d}},ij=Qne(Xne);function oj(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var sj=e=>oj(e,t=>t!=null);function CL(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function A9(e){if(!CL(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function Jne(e){var t;return CL(e)?((t=u_(e))==null?void 0:t.defaultView)??window:window}function u_(e){return CL(e)?e.ownerDocument??document:document}function ere(e){return e.view??window}function tre(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var c_=tre();function nre(e){const t=u_(e);return t?.activeElement}function NL(e,t){return e?e===t||e.contains(t):!1}var lj=e=>e.hasAttribute("tabindex"),rre=e=>lj(e)&&e.tabIndex===-1;function are(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function ire(e){return A9(e)&&e.localName==="input"&&"select"in e}function uj(e){return(A9(e)?u_(e):document).activeElement===e}function cj(e){return e.parentElement&&cj(e.parentElement)?!0:e.hidden}function ore(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function fj(e){if(!A9(e)||cj(e)||are(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]():ore(e)?!0:lj(e)}function sre(e){return e?A9(e)&&fj(e)&&!rre(e):!1}var lre=["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]"],ure=lre.join(),cre=e=>e.offsetWidth>0&&e.offsetHeight>0;function fre(e){const t=Array.from(e.querySelectorAll(ure));return t.unshift(e),t.filter(n=>fj(n)&&cre(n))}function E6(e,...t){return g3(e)?e(...t):e}function dre(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function hre(e){let t;return function(...r){return e&&(t=e.apply(this,r),e=null),t}}var pre=hre(e=>()=>{const{condition:t,message:n}=e;t&&Kne&&console.warn(n)}),mre=(...e)=>t=>e.reduce((n,r)=>r(n),t);function T6(e,t={}){const{isActive:n=uj,nextTick:r,preventScroll:i=!0,selectTextIfInput:s=!0}=t;if(!e||n(e))return-1;function l(){if(!e){pre({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(vre())e.focus({preventScroll:i});else if(e.focus(),i){const f=gre(e);bre(f)}if(s){if(ire(e))e.select();else if("setSelectionRange"in e){const f=e;f.setSelectionRange(f.value.length,f.value.length)}}}return r?requestAnimationFrame(l):(l(),-1)}var BE=null;function vre(){if(BE==null){BE=!1;try{document.createElement("div").focus({get preventScroll(){return BE=!0,!0}})}catch{}}return BE}function gre(e){const t=u_(e),n=t.defaultView??window;let r=e.parentNode;const i=[],s=t.scrollingElement||t.documentElement;for(;r instanceof n.HTMLElement&&r!==s;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&i.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return s instanceof n.HTMLElement&&i.push({element:s,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),i}function bre(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function yre(e){return!!e.touches}function Sre(e){return t=>{const n=ere(t),r=t instanceof n.MouseEvent;(!r||r&&t.button===0)&&e(t)}}var xre={pageX:0,pageY:0};function Cre(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||xre;return{x:r[`${t}X`],y:r[`${t}Y`]}}function Nre(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function wre(e,t="page"){return{point:yre(e)?Cre(e,t):Nre(e,t)}}var _re=(e,t=!1)=>{const n=r=>e(r,wre(r));return t?Sre(n):n},Ere=()=>c_&&window.onpointerdown===null,Tre=()=>c_&&window.ontouchstart===null,Rre=()=>c_&&window.onmousedown===null,kre={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Are={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ore(e){return Ere()?e:Tre()?Are[e]:Rre()?kre[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Lre(e){const{userAgent:t,vendor:n}=e,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(r&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function Mre(e){return c_?Lre(window.navigator)===e:!1}function Dre(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=O.exports.createContext(void 0);i.displayName=r;function s(){var l;const f=O.exports.useContext(i);if(!f&&t){const d=new Error(n);throw d.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,d,s),d}return f}return[i.Provider,s,i]}var Pre=/^((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)-.*))$/,Ire=YH(function(e){return Pre.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Fre=Ire,zre=function(t){return t!=="theme"},oF=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Fre:zre},sF=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},lF=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Bre=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return E9(n,r,i),yL(function(){return T9(n,r,i)}),null},$re=function e(t,n){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var f=sF(t,n,r),d=f||oF(i),m=!d("as");return function(){var b=arguments,S=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&S.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)S.push.apply(S,b);else{b[0][0]===void 0&&console.error(lF),S.push(b[0][0]);for(var N=b.length,w=1;w<N;w++)b[0][w]===void 0&&console.error(lF),S.push(b[w],b[0][w])}var T=R9(function(L,M,B){var F=m&&L.as||i,z="",H=[],G=L;if(L.theme==null){G={};for(var K in L)G[K]=L[K];G.theme=O.exports.useContext(Ob)}typeof L.className=="string"?z=gL(M.registered,H,L.className):L.className!=null&&(z=L.className+" ");var Z=H3(S.concat(H),M.registered,G);z+=M.key+"-"+Z.name,l!==void 0&&(z+=" "+l);var ne=m&&f===void 0?oF(F):d,ie={};for(var le in L)m&&le==="as"||ne(le)&&(ie[le]=L[le]);return ie.className=z,ie.ref=B,O.exports.createElement(O.exports.Fragment,null,O.exports.createElement(Bre,{cache:M,serialized:Z,isStringTag:typeof F=="string"}),O.exports.createElement(F,ie))});return T.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",T.defaultProps=t.defaultProps,T.__emotion_real=T,T.__emotion_base=i,T.__emotion_styles=S,T.__emotion_forwardProp=f,Object.defineProperty(T,"toString",{value:function(){return l===void 0?"NO_COMPONENT_SELECTOR":"."+l}}),T.withComponent=function(L,M){return e(L,ja({},n,M,{shouldForwardProp:sF(T,M,!0)})).apply(void 0,S)},T}},Ure=["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"],Jk=$re.bind();Ure.forEach(function(e){Jk[e]=Jk(e)});var Hre=typeof Element<"u",jre=typeof Map=="function",Vre=typeof Set=="function",Gre=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function YT(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!YT(e[r],t[r]))return!1;return!0}var s;if(jre&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!YT(r.value[1],t.get(r.value[0])))return!1;return!0}if(Vre&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Gre&&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(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Hre&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!YT(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Wre=function(t,n){try{return YT(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},R6="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function aC(){const e=O.exports.useContext(Ob);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function dj(){const e=cL(),t=aC();return{...e,theme:t}}function Yre(e,t,n){if(t==null)return t;const r=i=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[i]};return r(t)??r(n)??n}function qre(e,t,n){if(t==null)return t;const r=i=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[i])==null?void 0:l.value};return r(t)??r(n)??n}function Kre(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return s=>{const l=i.filter(Boolean),f=r.map((d,m)=>{if(e==="breakpoints")return Yre(s,d,l[m]??d);const b=`${e}.${d}`;return qre(s,b,l[m]??d)});return Array.isArray(t)?f:f[0]}}function Zre(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=O.exports.useMemo(()=>Cte(n),[n]);return _(Lne,{theme:i,children:[_(Xre,{root:t},void 0,!1,{fileName:R6,lineNumber:82,columnNumber:22},this),r]},void 0,!0,{fileName:R6,lineNumber:80,columnNumber:26},this)}function Xre({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _(s_,{styles:n=>({[t]:n.__cssVars})},void 0,!1,{fileName:R6,lineNumber:88,columnNumber:26},this)}Dre({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Qre(){const{colorMode:e}=cL();return _(s_,{styles:t=>{const n=ij(t,"styles.global"),r=E6(n,{theme:t,colorMode:e});return r?$H(r)(t):void 0}},void 0,!1,{fileName:R6,lineNumber:104,columnNumber:26},this)}var Jre=new Set([..._te,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),eae=new Set(["htmlWidth","htmlHeight","htmlSize"]);function tae(e){return eae.has(e)||!Jre.has(e)}var nae=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:s,...l}=t,f=oj(l,(S,N)=>Tte(N)),d=E6(e,t),m=Object.assign({},i,d,sj(f),s),b=$H(m)(t.theme);return r?[b,r]:b};function a8(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=tae);const i=nae({baseStyle:n});return Jk(e,r)(i)}function Ct(e){return O.exports.forwardRef(e)}function hj(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:s}=dj(),l=ij(i,`components.${e}`),f=n||l,d=r0({theme:i,colorMode:s},f?.defaultProps??{},sj(Zne(r,["children"]))),m=O.exports.useRef({});if(f){const S=Pte(f)(d);Wre(m.current,S)||(m.current=S)}return m.current}function Ac(e,t={}){return hj(e,t)}function hu(e,t={}){return hj(e,t)}function rae(){const e=new Map;return new Proxy(a8,{apply(t,n,r){return a8(...r)},get(t,n){return e.has(n)||e.set(n,a8(n)),e.get(n)}})}var nt=rae();function aae(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Va(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:s}=e,l=O.exports.createContext(void 0);l.displayName=t;function f(){var d;const m=O.exports.useContext(l);if(!m&&n){const b=new Error(s??aae(r,i));throw b.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,b,f),b}return m}return[l.Provider,f,l]}function iae(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 xi(...e){return t=>{e.forEach(n=>{iae(n,t)})}}function oae(...e){return O.exports.useMemo(()=>xi(...e),e)}function uF(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 sae=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function cF(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function fF(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var eA=typeof window<"u"?O.exports.useLayoutEffect:O.exports.useEffect,k6=e=>e,lae=class{descendants=new Map;register=e=>{if(e!=null)return sae(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=uF(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=cF(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),i=cF(r,this.enabledCount(),t);return this.enabledItem(i)};prev=(e,t=!0)=>{const n=fF(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),i=fF(r,this.enabledCount()-1,t);return this.enabledItem(i)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=uF(n);t?.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)}};function uae(){const e=O.exports.useRef(new lae);return eA(()=>()=>e.current.destroy()),e.current}var[cae,pj]=Va({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function fae(e){const t=pj(),[n,r]=O.exports.useState(-1),i=O.exports.useRef(null);eA(()=>()=>{!i.current||t.unregister(i.current)},[]),eA(()=>{if(!i.current)return;const l=Number(i.current.dataset.index);n!=l&&!Number.isNaN(l)&&r(l)});const s=k6(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:xi(s,i)}}function mj(){return[k6(cae),()=>k6(pj()),()=>uae(),i=>fae(i)]}var fi=(...e)=>e.filter(Boolean).join(" "),$E="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/node_modules/@chakra-ui/icon/dist/index.esm.js",dF={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:$E,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:$E,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:$E,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:$E,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},vj=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??dF.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??dF.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});vj.displayName="Icon";function Jo(e,t=[]){const n=O.exports.useRef(e);return O.exports.useEffect(()=>{n.current=e}),O.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function O9(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(N,w)=>N!==w}=e,s=Jo(r),l=Jo(i),[f,d]=O.exports.useState(n),m=t!==void 0,b=m?t:f,S=O.exports.useCallback(N=>{const T=typeof N=="function"?N(b):N;!l(b,T)||(m||d(T),s(T))},[m,s,b,l]);return[b,S]}const wL=O.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),L9=O.exports.createContext({});function dae(){return O.exports.useContext(L9).visualElement}const iC=O.exports.createContext(null),PS=typeof document<"u",A6=PS?O.exports.useLayoutEffect:O.exports.useEffect,gj=O.exports.createContext({strict:!1});function hae(e,t,n,r){const i=dae(),s=O.exports.useContext(gj),l=O.exports.useContext(iC),f=O.exports.useContext(wL).reducedMotion,d=O.exports.useRef(void 0);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceId:l?l.id:void 0,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:f}));const m=d.current;return A6(()=>{m&&m.syncRender()}),O.exports.useEffect(()=>{m&&m.animationState&&m.animationState.animateChanges()}),A6(()=>()=>m&&m.notifyUnmount(),[]),m}function b3(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pae(e,t,n){return O.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):b3(n)&&(n.current=r))},[t])}function Pw(e){return typeof e=="string"||Array.isArray(e)}function M9(e){return typeof e=="object"&&typeof e.start=="function"}const mae=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function D9(e){return M9(e.animate)||mae.some(t=>Pw(e[t]))}function bj(e){return Boolean(D9(e)||e.variants)}function vae(e,t){if(D9(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pw(n)?n:void 0,animate:Pw(r)?r:void 0}}return e.inherit!==!1?t:{}}function gae(e){const{initial:t,animate:n}=vae(e,O.exports.useContext(L9));return O.exports.useMemo(()=>({initial:t,animate:n}),[hF(t),hF(n)])}function hF(e){return Array.isArray(e)?e.join(" "):e}const Yg=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Iw={measureLayout:Yg(["layout","layoutId","drag"]),animation:Yg(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Yg(["exit"]),drag:Yg(["drag","dragControls"]),focus:Yg(["whileFocus"]),hover:Yg(["whileHover","onHoverStart","onHoverEnd"]),tap:Yg(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Yg(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Yg(["whileInView","onViewportEnter","onViewportLeave"])};function bae(e){for(const t in e)t==="projectionNodeConstructor"?Iw.projectionNodeConstructor=e[t]:Iw[t].Component=e[t]}function P9(e){const t=O.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const lw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yae=1;function Sae(){return P9(()=>{if(lw.hasEverUpdated)return yae++})}const _L=O.exports.createContext({});class xae extends ke.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const yj=O.exports.createContext({}),Cae=Symbol.for("motionComponentSymbol");var pF="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function Nae({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:s}){e&&bae(e);function l(d,m){const b={...O.exports.useContext(wL),...d,layoutId:wae(d)},{isStatic:S}=b;let N=null;const w=gae(d),T=S?void 0:Sae(),L=i(d,S);if(!S&&PS){w.visualElement=hae(s,L,b,t);const M=O.exports.useContext(gj).strict,B=O.exports.useContext(yj);w.visualElement&&(N=w.visualElement.loadFeatures(b,M,e,T,n||Iw.projectionNodeConstructor,B))}return _(xae,{visualElement:w.visualElement,props:b,children:[N,_(L9.Provider,{value:w,children:r(s,d,T,pae(L,w.visualElement,m),L,S,w.visualElement)},void 0,!1,{fileName:pF,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:pF,lineNumber:79,columnNumber:17},this)}const f=O.exports.forwardRef(l);return f[Cae]=s,f}function wae({layoutId:e}){const t=O.exports.useContext(_L).id;return t&&e!==void 0?t+"-"+e:e}function _ae(e){function t(r,i={}){return Nae(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Eae=["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 EL(e){return typeof e!="string"||e.includes("-")?!1:!!(Eae.indexOf(e)>-1||/[A-Z]/.test(e))}const O6={};function Tae(e){Object.assign(O6,e)}const L6=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f_=new Set(L6);function Sj(e,{layout:t,layoutId:n}){return f_.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!O6[e]||e==="opacity")}const fv=e=>!!e?.getVelocity,Rae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kae=(e,t)=>L6.indexOf(e)-L6.indexOf(t);function Aae({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,s){let l="";t.sort(kae);for(const f of t)l+=`${Rae[f]||f}(${e[f]}) `;return n&&!e.z&&(l+="translateZ(0)"),l=l.trim(),s?l=s(e,i?"":l):r&&i&&(l="none"),l}function xj(e){return e.startsWith("--")}const Oae=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Cj=(e,t)=>n=>Math.max(Math.min(n,t),e),uw=e=>e%1?Number(e.toFixed(5)):e,Fw=/(-)?([\d]*\.?[\d])+/g,tA=/(#[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,Lae=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function d_(e){return typeof e=="string"}const IS={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cw=Object.assign(Object.assign({},IS),{transform:Cj(0,1)}),UE=Object.assign(Object.assign({},IS),{default:1}),h_=e=>({test:t=>d_(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mb=h_("deg"),ov=h_("%"),mr=h_("px"),Mae=h_("vh"),Dae=h_("vw"),mF=Object.assign(Object.assign({},ov),{parse:e=>ov.parse(e)/100,transform:e=>ov.transform(e*100)}),TL=(e,t)=>n=>Boolean(d_(n)&&Lae.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Nj=(e,t,n)=>r=>{if(!d_(r))return r;const[i,s,l,f]=r.match(Fw);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(l),alpha:f!==void 0?parseFloat(f):1}},vS={test:TL("hsl","hue"),parse:Nj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ov.transform(uw(t))+", "+ov.transform(uw(n))+", "+uw(cw.transform(r))+")"},Pae=Cj(0,255),i8=Object.assign(Object.assign({},IS),{transform:e=>Math.round(Pae(e))}),Nb={test:TL("rgb","red"),parse:Nj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+i8.transform(e)+", "+i8.transform(t)+", "+i8.transform(n)+", "+uw(cw.transform(r))+")"};function Iae(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const nA={test:TL("#"),parse:Iae,transform:Nb.transform},Ec={test:e=>Nb.test(e)||nA.test(e)||vS.test(e),parse:e=>Nb.test(e)?Nb.parse(e):vS.test(e)?vS.parse(e):nA.parse(e),transform:e=>d_(e)?e:e.hasOwnProperty("red")?Nb.transform(e):vS.transform(e)},wj="${c}",_j="${n}";function Fae(e){var t,n,r,i;return isNaN(e)&&d_(e)&&((n=(t=e.match(Fw))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(tA))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function Ej(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(tA);r&&(n=r.length,e=e.replace(tA,wj),t.push(...r.map(Ec.parse)));const i=e.match(Fw);return i&&(e=e.replace(Fw,_j),t.push(...i.map(IS.parse))),{values:t,numColors:n,tokenised:e}}function Tj(e){return Ej(e).values}function Rj(e){const{values:t,numColors:n,tokenised:r}=Ej(e),i=t.length;return s=>{let l=r;for(let f=0;f<i;f++)l=l.replace(f<n?wj:_j,f<n?Ec.transform(s[f]):uw(s[f]));return l}}const zae=e=>typeof e=="number"?0:e;function Bae(e){const t=Tj(e);return Rj(e)(t.map(zae))}const a0={test:Fae,parse:Tj,createTransformer:Rj,getAnimatableNone:Bae},$ae=new Set(["brightness","contrast","saturate","opacity"]);function Uae(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fw)||[];if(!r)return e;const i=n.replace(r,"");let s=$ae.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Hae=/([a-z-]*)\(.*?\)/g,rA=Object.assign(Object.assign({},a0),{getAnimatableNone:e=>{const t=e.match(Hae);return t?t.map(Uae).join(" "):e}}),vF={...IS,transform:Math.round},kj={borderWidth:mr,borderTopWidth:mr,borderRightWidth:mr,borderBottomWidth:mr,borderLeftWidth:mr,borderRadius:mr,radius:mr,borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomRightRadius:mr,borderBottomLeftRadius:mr,width:mr,maxWidth:mr,height:mr,maxHeight:mr,size:mr,top:mr,right:mr,bottom:mr,left:mr,padding:mr,paddingTop:mr,paddingRight:mr,paddingBottom:mr,paddingLeft:mr,margin:mr,marginTop:mr,marginRight:mr,marginBottom:mr,marginLeft:mr,rotate:mb,rotateX:mb,rotateY:mb,rotateZ:mb,scale:UE,scaleX:UE,scaleY:UE,scaleZ:UE,skew:mb,skewX:mb,skewY:mb,distance:mr,translateX:mr,translateY:mr,translateZ:mr,x:mr,y:mr,z:mr,perspective:mr,transformPerspective:mr,opacity:cw,originX:mF,originY:mF,originZ:mr,zIndex:vF,fillOpacity:cw,strokeOpacity:cw,numOctaves:vF};function RL(e,t,n,r){const{style:i,vars:s,transform:l,transformKeys:f,transformOrigin:d}=e;f.length=0;let m=!1,b=!1,S=!0;for(const N in t){const w=t[N];if(xj(N)){s[N]=w;continue}const T=kj[N],L=Oae(w,T);if(f_.has(N)){if(m=!0,l[N]=L,f.push(N),!S)continue;w!==(T.default||0)&&(S=!1)}else N.startsWith("origin")?(b=!0,d[N]=L):i[N]=L}if(m||r?i.transform=Aae(e,n,S,r):!t.transform&&i.transform&&(i.transform="none"),b){const{originX:N="50%",originY:w="50%",originZ:T=0}=d;i.transformOrigin=`${N} ${w} ${T}`}}const kL=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Aj(e,t,n){for(const r in t)!fv(t[r])&&!Sj(r,n)&&(e[r]=t[r])}function jae({transformTemplate:e},t,n){return O.exports.useMemo(()=>{const r=kL();return RL(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Vae(e,t,n){const r=e.style||{},i={};return Aj(i,r,e),Object.assign(i,jae(e,t,n)),e.transformValues?e.transformValues(i):i}function Gae(e,t,n){const r={},i=Vae(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=i,r}const Wae=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],Yae=["whileTap","onTap","onTapStart","onTapCancel"],qae=["onPan","onPanStart","onPanSessionStart","onPanEnd"],Kae=["whileInView","onViewportEnter","onViewportLeave","viewport"],Zae=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",...Kae,...Yae,...Wae,...qae]);function M6(e){return Zae.has(e)}let Oj=e=>!M6(e);function Xae(e){!e||(Oj=t=>t.startsWith("on")?!M6(t):e(t))}try{Xae(require("@emotion/is-prop-valid").default)}catch{}function Qae(e,t,n){const r={};for(const i in e)(Oj(i)||n===!0&&M6(i)||!t&&!M6(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function gF(e,t,n){return typeof e=="string"?e:mr.transform(t+n*e)}function Jae(e,t,n){const r=gF(t,e.x,e.width),i=gF(n,e.y,e.height);return`${r} ${i}`}const eie={offset:"stroke-dashoffset",array:"stroke-dasharray"},tie={offset:"strokeDashoffset",array:"strokeDasharray"};function nie(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?eie:tie;e[s.offset]=mr.transform(-r);const l=mr.transform(t),f=mr.transform(n);e[s.array]=`${l} ${f}`}function AL(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:s,pathSpacing:l=1,pathOffset:f=0,...d},m,b){RL(e,d,m,b),e.attrs=e.style,e.style={};const{attrs:S,style:N,dimensions:w}=e;S.transform&&(w&&(N.transform=S.transform),delete S.transform),w&&(r!==void 0||i!==void 0||N.transform)&&(N.transformOrigin=Jae(w,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(S.x=t),n!==void 0&&(S.y=n),s!==void 0&&nie(S,s,l,f,!1)}const Lj=()=>({...kL(),attrs:{}});function rie(e,t){const n=O.exports.useMemo(()=>{const r=Lj();return AL(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Aj(r,e.style,e),n.style={...r,...n.style}}return n}function aie(e=!1){return(n,r,i,s,{latestValues:l},f)=>{const m=(EL(n)?rie:Gae)(r,l,f),S={...Qae(r,typeof n=="string",e),...m,ref:s};return i&&(S["data-projection-id"]=i),O.exports.createElement(n,S)}}const Mj=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Dj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Pj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ij(e,t,n,r){Dj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Pj.has(i)?i:Mj(i),t.attrs[i])}function OL(e){const{style:t}=e,n={};for(const r in t)(fv(t[r])||Sj(r,e))&&(n[r]=t[r]);return n}function Fj(e){const t=OL(e);for(const n in e)if(fv(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function zj(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}const zw=e=>Array.isArray(e),iie=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),Bj=e=>zw(e)?e[e.length-1]||0:e;function qT(e){const t=fv(e)?e.get():e;return iie(t)?t.toValue():t}function oie({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const l={latestValues:sie(r,i,s,e),renderState:t()};return n&&(l.mount=f=>n(r,f,l)),l}const $j=e=>(t,n)=>{const r=O.exports.useContext(L9),i=O.exports.useContext(iC),s=()=>oie(e,t,r,i);return n?s():P9(s)};function sie(e,t,n,r){const i={},s=r(e);for(const N in s)i[N]=qT(s[N]);let{initial:l,animate:f}=e;const d=D9(e),m=bj(e);t&&m&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),f===void 0&&(f=t.animate));let b=n?n.initial===!1:!1;b=b||l===!1;const S=b?f:l;return S&&typeof S!="boolean"&&!M9(S)&&(Array.isArray(S)?S:[S]).forEach(w=>{const T=zj(e,w);if(!T)return;const{transitionEnd:L,transition:M,...B}=T;for(const F in B){let z=B[F];if(Array.isArray(z)){const H=b?z.length-1:0;z=z[H]}z!==null&&(i[F]=z)}for(const F in L)i[F]=L[F]}),i}const lie={useVisualState:$j({scrapeMotionValuesFromProps:Fj,createRenderState:Lj,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}}AL(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),Ij(t,n)}})},uie={useVisualState:$j({scrapeMotionValuesFromProps:OL,createRenderState:kL})};function cie(e,{forwardMotionProps:t=!1},n,r,i){return{...EL(e)?lie:uie,preloadedFeatures:n,useRender:aie(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var Li;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Li||(Li={}));function I9(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function aA(e,t,n,r){O.exports.useEffect(()=>{const i=e.current;if(n&&i)return I9(i,t,n,r)},[e,t,n,r])}function fie({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Li.Focus,!0)},i=()=>{n&&n.setActive(Li.Focus,!1)};aA(t,"focus",e?r:void 0),aA(t,"blur",e?i:void 0)}function Uj(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Hj(e){return!!e.touches}function die(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const hie={pageX:0,pageY:0};function pie(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||hie;return{x:r[t+"X"],y:r[t+"Y"]}}function mie(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function LL(e,t="page"){return{point:Hj(e)?pie(e,t):mie(e,t)}}const jj=(e,t=!1)=>{const n=r=>e(r,LL(r));return t?die(n):n},vie=()=>PS&&window.onpointerdown===null,gie=()=>PS&&window.ontouchstart===null,bie=()=>PS&&window.onmousedown===null,yie={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Sie={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Vj(e){return vie()?e:gie()?Sie[e]:bie()?yie[e]:e}function E3(e,t,n,r){return I9(e,Vj(t),jj(n,t==="pointerdown"),r)}function D6(e,t,n,r){return aA(e,Vj(t),n&&jj(n,t==="pointerdown"),r)}function Gj(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const bF=Gj("dragHorizontal"),yF=Gj("dragVertical");function Wj(e){let t=!1;if(e==="y")t=yF();else if(e==="x")t=bF();else{const n=bF(),r=yF();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Yj(){const e=Wj(!0);return e?(e(),!1):!0}function SF(e,t,n){return(r,i)=>{!Uj(r)||Yj()||(e.animationState&&e.animationState.setActive(Li.Hover,t),n&&n(r,i))}}function xie({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){D6(r,"pointerenter",e||n?SF(r,!0,e):void 0,{passive:!e}),D6(r,"pointerleave",t||n?SF(r,!1,t):void 0,{passive:!t})}const qj=(e,t)=>t?e===t?!0:qj(e,t.parentElement):!1;function ML(e){return O.exports.useEffect(()=>()=>e(),[])}var tv=function(){return tv=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},tv.apply(this,arguments)};function F9(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function oC(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(b){try{m(r.next(b))}catch(S){l(S)}}function d(b){try{m(r.throw(b))}catch(S){l(S)}}function m(b){b.done?s(b.value):i(b.value).then(f,d)}m((r=r.apply(e,t||[])).next())})}function sC(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(m){return function(b){return d([m,b])}}function d(m){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=m[0]&2?i.return:m[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,m[1])).done)return s;switch(i=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return n.label++,{value:m[1],done:!1};case 5:n.label++,i=m[1],m=[0];continue;case 7:m=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){n=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){n.label=m[1];break}if(m[0]===6&&n.label<s[1]){n.label=s[1],s=m;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(m);break}s[2]&&n.ops.pop(),n.trys.pop();continue}m=t.call(e,n)}catch(b){m=[6,b],i=0}finally{r=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function xF(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return s}function iA(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var p_=function(){},rh=function(){};p_=function(e,t){!e&&typeof console<"u"&&console.warn(t)},rh=function(e,t){if(!e)throw new Error(t)};const P6=(e,t,n)=>Math.min(Math.max(n,e),t),o8=.001,Cie=.01,CF=10,Nie=.05,wie=1;function _ie({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s;p_(e<=CF*1e3,"Spring duration must be 10 seconds or less");let l=1-t;l=P6(Nie,wie,l),e=P6(Cie,CF,e/1e3),l<1?(i=m=>{const b=m*l,S=b*e,N=b-n,w=oA(m,l),T=Math.exp(-S);return o8-N/w*T},s=m=>{const S=m*l*e,N=S*n+n,w=Math.pow(l,2)*Math.pow(m,2)*e,T=Math.exp(-S),L=oA(Math.pow(m,2),l);return(-i(m)+o8>0?-1:1)*((N-w)*T)/L}):(i=m=>{const b=Math.exp(-m*e),S=(m-n)*e+1;return-o8+b*S},s=m=>{const b=Math.exp(-m*e),S=(n-m)*(e*e);return b*S});const f=5/e,d=Tie(i,s,f);if(e=e*1e3,isNaN(d))return{stiffness:100,damping:10,duration:e};{const m=Math.pow(d,2)*r;return{stiffness:m,damping:l*2*Math.sqrt(r*m),duration:e}}}const Eie=12;function Tie(e,t,n){let r=n;for(let i=1;i<Eie;i++)r=r-e(r)/t(r);return r}function oA(e,t){return e*Math.sqrt(1-t*t)}const Rie=["duration","bounce"],kie=["stiffness","damping","mass"];function NF(e,t){return t.some(n=>e[n]!==void 0)}function Aie(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!NF(e,kie)&&NF(e,Rie)){const n=_ie(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function DL(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,s=F9(e,["from","to","restSpeed","restDelta"]);const l={done:!1,value:t};let{stiffness:f,damping:d,mass:m,velocity:b,duration:S,isResolvedFromDuration:N}=Aie(s),w=wF,T=wF;function L(){const M=b?-(b/1e3):0,B=n-t,F=d/(2*Math.sqrt(f*m)),z=Math.sqrt(f/m)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),F<1){const H=oA(z,F);w=G=>{const K=Math.exp(-F*z*G);return n-K*((M+F*z*B)/H*Math.sin(H*G)+B*Math.cos(H*G))},T=G=>{const K=Math.exp(-F*z*G);return F*z*K*(Math.sin(H*G)*(M+F*z*B)/H+B*Math.cos(H*G))-K*(Math.cos(H*G)*(M+F*z*B)-H*B*Math.sin(H*G))}}else if(F===1)w=H=>n-Math.exp(-z*H)*(B+(M+z*B)*H);else{const H=z*Math.sqrt(F*F-1);w=G=>{const K=Math.exp(-F*z*G),Z=Math.min(H*G,300);return n-K*((M+F*z*B)*Math.sinh(Z)+H*B*Math.cosh(Z))/H}}}return L(),{next:M=>{const B=w(M);if(N)l.done=M>=S;else{const F=T(M)*1e3,z=Math.abs(F)<=r,H=Math.abs(n-B)<=i;l.done=z&&H}return l.value=l.done?n:B,l},flipTarget:()=>{b=-b,[t,n]=[n,t],L()}}}DL.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const wF=e=>0,Bw=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},es=(e,t,n)=>-n*e+n*t+e;function s8(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 _F({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,l=0;if(!t)i=s=l=n;else{const f=n<.5?n*(1+t):n+t-n*t,d=2*n-f;i=s8(d,f,e+1/3),s=s8(d,f,e),l=s8(d,f,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}const Oie=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Lie=[nA,Nb,vS],EF=e=>Lie.find(t=>t.test(e)),TF=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Kj=(e,t)=>{let n=EF(e),r=EF(t);rh(!!n,TF(e)),rh(!!r,TF(t));let i=n.parse(e),s=r.parse(t);n===vS&&(i=_F(i),n=Nb),r===vS&&(s=_F(s),r=Nb);const l=Object.assign({},i);return f=>{for(const d in l)d!=="alpha"&&(l[d]=Oie(i[d],s[d],f));return l.alpha=es(i.alpha,s.alpha,f),n.transform(l)}},sA=e=>typeof e=="number",Mie=(e,t)=>n=>t(e(n)),z9=(...e)=>e.reduce(Mie);function Zj(e,t){return sA(e)?n=>es(e,t,n):Ec.test(e)?Kj(e,t):Qj(e,t)}const Xj=(e,t)=>{const n=[...e],r=n.length,i=e.map((s,l)=>Zj(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=i[l](s);return n}},Die=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zj(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}};function RF(e){const t=a0.parse(e),n=t.length;let r=0,i=0,s=0;for(let l=0;l<n;l++)r||typeof t[l]=="number"?r++:t[l].hue!==void 0?s++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:s}}const Qj=(e,t)=>{const n=a0.createTransformer(t),r=RF(e),i=RF(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?z9(Xj(r.parsed,i.parsed),n):(p_(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),l=>`${l>0?t:e}`)},Pie=(e,t)=>n=>es(e,t,n);function Iie(e){if(typeof e=="number")return Pie;if(typeof e=="string")return Ec.test(e)?Kj:Qj;if(Array.isArray(e))return Xj;if(typeof e=="object")return Die}function Fie(e,t,n){const r=[],i=n||Iie(e[0]),s=e.length-1;for(let l=0;l<s;l++){let f=i(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]:t;f=z9(d,f)}r.push(f)}return r}function zie([e,t],[n]){return r=>n(Bw(e,t,r))}function Bie(e,t){const n=e.length,r=n-1;return i=>{let s=0,l=!1;if(i<=e[0]?l=!0:i>=e[r]&&(s=r-1,l=!0),!l){let d=1;for(;d<n&&!(e[d]>i||d===r);d++);s=d-1}const f=Bw(e[s],e[s+1],i);return t[s](f)}}function Jj(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;rh(s===t.length,"Both input and output ranges must be the same length"),rh(!r||!Array.isArray(r)||r.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const l=Fie(t,r,i),f=s===2?zie(e,l):Bie(e,l);return n?d=>f(P6(e[0],e[s-1],d)):f}const B9=e=>t=>1-e(1-t),PL=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$ie=e=>t=>Math.pow(t,e),eV=e=>t=>t*t*((e+1)*t-e),Uie=e=>{const t=eV(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},tV=1.525,Hie=4/11,jie=8/11,Vie=9/10,IL=e=>e,FL=$ie(2),Gie=B9(FL),nV=PL(FL),rV=e=>1-Math.sin(Math.acos(e)),zL=B9(rV),Wie=PL(zL),BL=eV(tV),Yie=B9(BL),qie=PL(BL),Kie=Uie(tV),Zie=4356/361,Xie=35442/1805,Qie=16061/1805,I6=e=>{if(e===1||e===0)return e;const t=e*e;return e<Hie?7.5625*t:e<jie?9.075*t-9.9*e+3.4:e<Vie?Zie*t-Xie*e+Qie:10.8*e*e-20.52*e+10.72},Jie=B9(I6),eoe=e=>e<.5?.5*(1-I6(1-e*2)):.5*I6(e*2-1)+.5;function toe(e,t){return e.map(()=>t||nV).splice(0,e.length-1)}function noe(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function roe(e,t){return e.map(n=>n*t)}function KT({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const s={done:!1,value:e},l=Array.isArray(t)?t:[e,t],f=roe(r&&r.length===l.length?r:noe(l),i);function d(){return Jj(f,l,{ease:Array.isArray(n)?n:toe(l,n)})}let m=d();return{next:b=>(s.value=m(b),s.done=b>=i,s),flipTarget:()=>{l.reverse(),m=d()}}}function aoe({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:s}){const l={done:!1,value:t};let f=n*e;const d=t+f,m=s===void 0?d:s(d);return m!==d&&(f=m-t),{next:b=>{const S=-f*Math.exp(-b/r);return l.done=!(S>i||S<-i),l.value=l.done?m:m+S,l},flipTarget:()=>{}}}const kF={keyframes:KT,spring:DL,decay:aoe};function ioe(e){if(Array.isArray(e.to))return KT;if(kF[e.type])return kF[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?KT:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?DL:KT}const aV=1/60*1e3,ooe=typeof performance<"u"?()=>performance.now():()=>Date.now(),iV=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ooe()),aV);function soe(e){let t=[],n=[],r=0,i=!1,s=!1;const l=new WeakSet,f={schedule:(d,m=!1,b=!1)=>{const S=b&&i,N=S?t:n;return m&&l.add(d),N.indexOf(d)===-1&&(N.push(d),S&&i&&(r=t.length)),d},cancel:d=>{const m=n.indexOf(d);m!==-1&&n.splice(m,1),l.delete(d)},process:d=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let m=0;m<r;m++){const b=t[m];b(d),l.has(b)&&(f.schedule(b),e())}i=!1,s&&(s=!1,f.process(d))}};return f}const loe=40;let lA=!0,$w=!1,uA=!1;const T3={delta:0,timestamp:0},m_=["read","update","preRender","render","postRender"],$9=m_.reduce((e,t)=>(e[t]=soe(()=>$w=!0),e),{}),uoe=m_.reduce((e,t)=>{const n=$9[t];return e[t]=(r,i=!1,s=!1)=>($w||doe(),n.schedule(r,i,s)),e},{}),coe=m_.reduce((e,t)=>(e[t]=$9[t].cancel,e),{});m_.reduce((e,t)=>(e[t]=()=>$9[t].process(T3),e),{});const foe=e=>$9[e].process(T3),oV=e=>{$w=!1,T3.delta=lA?aV:Math.max(Math.min(e-T3.timestamp,loe),1),T3.timestamp=e,uA=!0,m_.forEach(foe),uA=!1,$w&&(lA=!1,iV(oV))},doe=()=>{$w=!0,lA=!0,uA||iV(oV)},hoe=()=>T3;function sV(e,t,n=0){return e-t-n}function poe(e,t,n=0,r=!0){return r?sV(t+-e,t,n):t-(e-t)+n}function moe(e,t,n,r){return r?e>=t+n:e<=-n}const voe=e=>{const t=({delta:n})=>e(n);return{start:()=>uoe.update(t,!0),stop:()=>coe.update(t)}};function lV(e){var t,n,{from:r,autoplay:i=!0,driver:s=voe,elapsed:l=0,repeat:f=0,repeatType:d="loop",repeatDelay:m=0,onPlay:b,onStop:S,onComplete:N,onRepeat:w,onUpdate:T}=e,L=F9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=L,B,F=0,z=L.duration,H,G=!1,K=!0,Z;const ne=ioe(L);!((n=(t=ne).needsInterpolation)===null||n===void 0)&&n.call(t,r,M)&&(Z=Jj([0,100],[r,M],{clamp:!1}),r=0,M=100);const ie=ne(Object.assign(Object.assign({},L),{from:r,to:M}));function le(){F++,d==="reverse"?(K=F%2===0,l=poe(l,z,m,K)):(l=sV(l,z,m),d==="mirror"&&ie.flipTarget()),G=!1,w&&w()}function oe(){B.stop(),N&&N()}function Ae(Se){if(K||(Se=-Se),l+=Se,!G){const Me=ie.next(Math.max(0,l));H=Me.value,Z&&(H=Z(H)),G=K?Me.done:l<=0}T?.(H),G&&(F===0&&(z??(z=l)),F<f?moe(l,z,m,K)&&le():oe())}function de(){b?.(),B=s(Ae),B.start()}return i&&de(),{stop:()=>{S?.(),B.stop()}}}function uV(e,t){return t?e*(1e3/t):0}function goe({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:s=750,bounceStiffness:l=500,bounceDamping:f=10,restDelta:d=1,modifyTarget:m,driver:b,onUpdate:S,onComplete:N,onStop:w}){let T;function L(z){return n!==void 0&&z<n||r!==void 0&&z>r}function M(z){return n===void 0?r:r===void 0||Math.abs(n-z)<Math.abs(r-z)?n:r}function B(z){T?.stop(),T=lV(Object.assign(Object.assign({},z),{driver:b,onUpdate:H=>{var G;S?.(H),(G=z.onUpdate)===null||G===void 0||G.call(z,H)},onComplete:N,onStop:w}))}function F(z){B(Object.assign({type:"spring",stiffness:l,damping:f,restDelta:d},z))}if(L(e))F({from:e,velocity:t,to:M(e)});else{let z=i*t+e;typeof m<"u"&&(z=m(z));const H=M(z),G=H===n?-1:1;let K,Z;const ne=ie=>{K=Z,Z=ie,t=uV(ie-K,hoe().delta),(G===1&&ie>H||G===-1&&ie<H)&&F({from:ie,to:H,velocity:t})};B({type:"decay",from:e,velocity:t,timeConstant:s,power:i,restDelta:d,modifyTarget:m,onUpdate:L(z)?ne:void 0})}return{stop:()=>T?.stop()}}const cA=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),AF=e=>cA(e)&&e.hasOwnProperty("z"),HE=(e,t)=>Math.abs(e-t);function $L(e,t){if(sA(e)&&sA(t))return HE(e,t);if(cA(e)&&cA(t)){const n=HE(e.x,t.x),r=HE(e.y,t.y),i=AF(e)&&AF(t)?HE(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const cV=(e,t)=>1-3*t+3*e,fV=(e,t)=>3*t-6*e,dV=e=>3*e,F6=(e,t,n)=>((cV(t,n)*e+fV(t,n))*e+dV(t))*e,hV=(e,t,n)=>3*cV(t,n)*e*e+2*fV(t,n)*e+dV(t),boe=1e-7,yoe=10;function Soe(e,t,n,r,i){let s,l,f=0;do l=t+(n-t)/2,s=F6(l,r,i)-e,s>0?n=l:t=l;while(Math.abs(s)>boe&&++f<yoe);return l}const xoe=8,Coe=.001;function Noe(e,t,n,r){for(let i=0;i<xoe;++i){const s=hV(t,n,r);if(s===0)return t;t-=(F6(t,n,r)-e)/s}return t}const ZT=11,jE=1/(ZT-1);function woe(e,t,n,r){if(e===t&&n===r)return IL;const i=new Float32Array(ZT);for(let l=0;l<ZT;++l)i[l]=F6(l*jE,e,n);function s(l){let f=0,d=1;const m=ZT-1;for(;d!==m&&i[d]<=l;++d)f+=jE;--d;const b=(l-i[d])/(i[d+1]-i[d]),S=f+b*jE,N=hV(S,e,n);return N>=Coe?Noe(l,S,e,n):N===0?S:Soe(l,f,f+jE,e,n)}return l=>l===0||l===1?l:F6(s(l),t,r)}function _oe({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){const s=e||t||n||r,l=O.exports.useRef(!1),f=O.exports.useRef(null),d={passive:!(t||e||n||w)};function m(){f.current&&f.current(),f.current=null}function b(){return m(),l.current=!1,i.animationState&&i.animationState.setActive(Li.Tap,!1),!Yj()}function S(T,L){!b()||(qj(i.getInstance(),T.target)?e&&e(T,L):n&&n(T,L))}function N(T,L){!b()||n&&n(T,L)}function w(T,L){m(),!l.current&&(l.current=!0,f.current=z9(E3(window,"pointerup",S,d),E3(window,"pointercancel",N,d)),i.animationState&&i.animationState.setActive(Li.Tap,!0),t&&t(T,L))}D6(i,"pointerdown",s?w:void 0,d),ML(m)}const Eoe="production",UL=typeof process>"u"||process.env===void 0?Eoe:"development",OF=new Set;function HL(e,t,n){e||OF.has(t)||(console.warn(t),n&&console.warn(n),OF.add(t))}const fA=new WeakMap,l8=new WeakMap,Toe=e=>{const t=fA.get(e.target);t&&t(e)},Roe=e=>{e.forEach(Toe)};function koe({root:e,...t}){const n=e||document;l8.has(n)||l8.set(n,{});const r=l8.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Roe,{root:e,...t})),r[i]}function Aoe(e,t,n){const r=koe(t);return fA.set(e,n),r.observe(e),()=>{fA.delete(e),r.unobserve(e)}}function Ooe({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const s=O.exports.useRef({hasEnteredView:!1,isInView:!1});let l=Boolean(t||n||r);i.once&&s.current.hasEnteredView&&(l=!1),(typeof IntersectionObserver>"u"?Doe:Moe)(l,s.current,e,i)}const Loe={some:0,all:1};function Moe(e,t,n,{root:r,margin:i,amount:s="some",once:l}){O.exports.useEffect(()=>{if(!e)return;const f={root:r?.current,rootMargin:i,threshold:typeof s=="number"?s:Loe[s]},d=m=>{const{isIntersecting:b}=m;if(t.isInView===b||(t.isInView=b,l&&!b&&t.hasEnteredView))return;b&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Li.InView,b);const S=n.getProps(),N=b?S.onViewportEnter:S.onViewportLeave;N&&N(m)};return Aoe(n.getInstance(),f,d)},[e,r,i,s])}function Doe(e,t,n,{fallback:r=!0}){O.exports.useEffect(()=>{!e||!r||(UL!=="production"&&HL(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(Li.InView,!0)}))},[e])}const wb=e=>t=>(e(t),null),Poe={inView:wb(Ooe),tap:wb(_oe),focus:wb(fie),hover:wb(xie)};function jL(){const e=O.exports.useContext(iC);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=O.exports.useId();return O.exports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function Ioe(){return Foe(O.exports.useContext(iC))}function Foe(e){return e===null?!0:e.isPresent}function pV(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 z6=e=>e*1e3,LF={linear:IL,easeIn:FL,easeInOut:nV,easeOut:Gie,circIn:rV,circInOut:Wie,circOut:zL,backIn:BL,backInOut:qie,backOut:Yie,anticipate:Kie,bounceIn:Jie,bounceInOut:eoe,bounceOut:I6},MF=e=>{if(Array.isArray(e)){rh(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return woe(t,n,r,i)}else if(typeof e=="string")return rh(LF[e]!==void 0,`Invalid easing type '${e}'`),LF[e];return e},zoe=e=>Array.isArray(e)&&typeof e[0]!="number",DF=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&a0.test(t)&&!t.startsWith("url(")),J2=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),VE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),u8=()=>({type:"keyframes",ease:"linear",duration:.3}),Boe=e=>({type:"keyframes",duration:.8,values:e}),PF={x:J2,y:J2,z:J2,rotate:J2,rotateX:J2,rotateY:J2,rotateZ:J2,scaleX:VE,scaleY:VE,scale:VE,opacity:u8,backgroundColor:u8,color:u8,default:VE},$oe=(e,t)=>{let n;return zw(t)?n=Boe:n=PF[e]||PF.default,{to:t,...n(t)}},Uoe={...kj,color:Ec,backgroundColor:Ec,outlineColor:Ec,fill:Ec,stroke:Ec,borderColor:Ec,borderTopColor:Ec,borderRightColor:Ec,borderBottomColor:Ec,borderLeftColor:Ec,filter:rA,WebkitFilter:rA},VL=e=>Uoe[e];function GL(e,t){var n;let r=VL(e);return r!==rA&&(r=a0),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const Hoe={current:!1};function joe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:l,repeatDelay:f,from:d,...m}){return!!Object.keys(m).length}let IF=!1;function Voe({ease:e,times:t,yoyo:n,flip:r,loop:i,...s}){const l={...s};return t&&(l.offset=t),s.duration&&(l.duration=z6(s.duration)),s.repeatDelay&&(l.repeatDelay=z6(s.repeatDelay)),e&&(l.ease=zoe(e)?e.map(MF):MF(e)),s.type==="tween"&&(l.type="keyframes"),(n||i||r)&&(p_(!IF,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),IF=!0,n?l.repeatType="reverse":i?l.repeatType="loop":r&&(l.repeatType="mirror"),l.repeat=i||n||r||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function Goe(e,t){var n,r;return(r=(n=(WL(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Woe(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Yoe(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),Woe(t),joe(e)||(e={...e,...$oe(n,t.to)}),{...t,...Voe(e)}}function qoe(e,t,n,r,i){const s=WL(r,e)||{};let l=s.from!==void 0?s.from:t.get();const f=DF(e,n);l==="none"&&f&&typeof n=="string"?l=GL(e,n):FF(l)&&typeof n=="string"?l=zF(n):!Array.isArray(n)&&FF(n)&&typeof l=="string"&&(n=zF(l));const d=DF(e,l);p_(d===f,`You are trying to animate ${e} from "${l}" to "${n}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${n} via the \`style\` property.`);function m(){const S={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:N=>t.set(N)};return s.type==="inertia"||s.type==="decay"?goe({...S,...s}):lV({...Yoe(s,S,e),onUpdate:N=>{S.onUpdate(N),s.onUpdate&&s.onUpdate(N)},onComplete:()=>{S.onComplete(),s.onComplete&&s.onComplete()}})}function b(){const S=Bj(n);return t.set(S),i(),s.onUpdate&&s.onUpdate(S),s.onComplete&&s.onComplete(),{stop:()=>{}}}return!d||!f||s.type===!1?b:m}function FF(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function zF(e){return typeof e=="number"?0:GL("",e)}function WL(e,t){return e[t]||e.default||e}function YL(e,t,n,r={}){return Hoe.current&&(r={type:!1}),t.start(i=>{let s,l;const f=qoe(e,t,n,r,i),d=Goe(r,e),m=()=>l=f();return d?s=window.setTimeout(m,z6(d)):m(),()=>{clearTimeout(s),l&&l.stop()}})}const Koe=e=>/^\-?\d*\.?\d+$/.test(e),Zoe=e=>/^0[^.\s]+$/.test(e),mV=1/60*1e3,Xoe=typeof performance<"u"?()=>performance.now():()=>Date.now(),vV=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Xoe()),mV);function Qoe(e){let t=[],n=[],r=0,i=!1,s=!1;const l=new WeakSet,f={schedule:(d,m=!1,b=!1)=>{const S=b&&i,N=S?t:n;return m&&l.add(d),N.indexOf(d)===-1&&(N.push(d),S&&i&&(r=t.length)),d},cancel:d=>{const m=n.indexOf(d);m!==-1&&n.splice(m,1),l.delete(d)},process:d=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let m=0;m<r;m++){const b=t[m];b(d),l.has(b)&&(f.schedule(b),e())}i=!1,s&&(s=!1,f.process(d))}};return f}const Joe=40;let dA=!0,Uw=!1,hA=!1;const R3={delta:0,timestamp:0},v_=["read","update","preRender","render","postRender"],U9=v_.reduce((e,t)=>(e[t]=Qoe(()=>Uw=!0),e),{}),sv=v_.reduce((e,t)=>{const n=U9[t];return e[t]=(r,i=!1,s=!1)=>(Uw||tse(),n.schedule(r,i,s)),e},{}),Hw=v_.reduce((e,t)=>(e[t]=U9[t].cancel,e),{}),c8=v_.reduce((e,t)=>(e[t]=()=>U9[t].process(R3),e),{}),ese=e=>U9[e].process(R3),gV=e=>{Uw=!1,R3.delta=dA?mV:Math.max(Math.min(e-R3.timestamp,Joe),1),R3.timestamp=e,hA=!0,v_.forEach(ese),hA=!1,Uw&&(dA=!1,vV(gV))},tse=()=>{Uw=!0,dA=!0,hA||vV(gV)},pA=()=>R3;function qL(e,t){e.indexOf(t)===-1&&e.push(t)}function KL(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fw{constructor(){this.subscriptions=[]}add(t){return qL(this.subscriptions,t),()=>KL(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nse=e=>!isNaN(parseFloat(e));class rse{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new fw,this.velocityUpdateSubscribers=new fw,this.renderSubscribers=new fw,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:s}=pA();this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,sv.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=()=>sv.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=nse(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?uV(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 j3(e){return new rse(e)}const bV=e=>t=>t.test(e),ase={test:e=>e==="auto",parse:e=>e},yV=[IS,mr,ov,mb,Dae,Mae,ase],_N=e=>yV.find(bV(e)),ise=[...yV,Ec,a0],ose=e=>ise.find(bV(e));function sse(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function lse(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function H9(e,t,n){const r=e.getProps();return zj(r,t,n!==void 0?n:r.custom,sse(e),lse(e))}function use(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,j3(n))}function cse(e,t){const n=H9(e,t);let{transitionEnd:r={},transition:i={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const l in s){const f=Bj(s[l]);use(e,l,f)}}function fse(e,t,n){var r,i;const s=Object.keys(t).filter(f=>!e.hasValue(f)),l=s.length;if(!!l)for(let f=0;f<l;f++){const d=s[f],m=t[d];let b=null;Array.isArray(m)&&(b=m[0]),b===null&&(b=(i=(r=n[d])!==null&&r!==void 0?r:e.readValue(d))!==null&&i!==void 0?i:t[d]),b!=null&&(typeof b=="string"&&(Koe(b)||Zoe(b))?b=parseFloat(b):!ose(b)&&a0.test(m)&&(b=GL(d,m)),e.addValue(d,j3(b)),n[d]===void 0&&(n[d]=b),e.setBaseTarget(d,b))}}function dse(e,t){return t?(t[e]||t.default||t).from:void 0}function hse(e,t,n){var r;const i={};for(const s in e){const l=dse(s,t);i[s]=l!==void 0?l:(r=n.getValue(s))===null||r===void 0?void 0:r.get()}return i}function B6(e){return Boolean(fv(e)&&e.add)}function pse(e,t,n={}){e.notifyAnimationStart(t);let r;if(Array.isArray(t)){const i=t.map(s=>mA(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=mA(e,t,n);else{const i=typeof t=="function"?H9(e,t,n.custom):t;r=SV(e,i,n)}return r.then(()=>e.notifyAnimationComplete(t))}function mA(e,t,n={}){var r;const i=H9(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const l=i?()=>SV(e,i,n):()=>Promise.resolve(),f=!((r=e.variantChildren)===null||r===void 0)&&r.size?(m=0)=>{const{delayChildren:b=0,staggerChildren:S,staggerDirection:N}=s;return mse(e,t,b+m,S,N,n)}:()=>Promise.resolve(),{when:d}=s;if(d){const[m,b]=d==="beforeChildren"?[l,f]:[f,l];return m().then(b)}else return Promise.all([l(),f(n.delay)])}function SV(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:l=e.getDefaultTransition(),transitionEnd:f,...d}=e.makeTargetAnimatable(t);const m=e.getValue("willChange");r&&(l=r);const b=[],S=i&&((s=e.animationState)===null||s===void 0?void 0:s.getState()[i]);for(const N in d){const w=e.getValue(N),T=d[N];if(!w||T===void 0||S&&gse(S,N))continue;let L={delay:n,...l};e.shouldReduceMotion&&f_.has(N)&&(L={...L,type:!1,delay:0});let M=YL(N,w,T,L);B6(m)&&(m.add(N),M=M.then(()=>m.remove(N))),b.push(M)}return Promise.all(b).then(()=>{f&&cse(e,f)})}function mse(e,t,n=0,r=0,i=1,s){const l=[],f=(e.variantChildren.size-1)*r,d=i===1?(m=0)=>m*r:(m=0)=>f-m*r;return Array.from(e.variantChildren).sort(vse).forEach((m,b)=>{l.push(mA(m,t,{...s,delay:n+d(b)}).then(()=>m.notifyAnimationComplete(t)))}),Promise.all(l)}function vse(e,t){return e.sortNodePosition(t)}function gse({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const ZL=[Li.Animate,Li.InView,Li.Focus,Li.Hover,Li.Tap,Li.Drag,Li.Exit],bse=[...ZL].reverse(),yse=ZL.length;function Sse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pse(e,n,r)))}function xse(e){let t=Sse(e);const n=Nse();let r=!0;const i=(d,m)=>{const b=H9(e,m);if(b){const{transition:S,transitionEnd:N,...w}=b;d={...d,...w,...N}}return d};function s(d){t=d(e)}function l(d,m){var b;const S=e.getProps(),N=e.getVariantContext(!0)||{},w=[],T=new Set;let L={},M=1/0;for(let F=0;F<yse;F++){const z=bse[F],H=n[z],G=(b=S[z])!==null&&b!==void 0?b:N[z],K=Pw(G),Z=z===m?H.isActive:null;Z===!1&&(M=F);let ne=G===N[z]&&G!==S[z]&&K;if(ne&&r&&e.manuallyAnimateOnMount&&(ne=!1),H.protectedKeys={...L},!H.isActive&&Z===null||!G&&!H.prevProp||M9(G)||typeof G=="boolean")continue;const ie=Cse(H.prevProp,G);let le=ie||z===m&&H.isActive&&!ne&&K||F>M&&K;const oe=Array.isArray(G)?G:[G];let Ae=oe.reduce(i,{});Z===!1&&(Ae={});const{prevResolvedValues:de={}}=H,Se={...de,...Ae},Me=_e=>{le=!0,T.delete(_e),H.needsAnimating[_e]=!0};for(const _e in Se){const J=Ae[_e],he=de[_e];L.hasOwnProperty(_e)||(J!==he?zw(J)&&zw(he)?!pV(J,he)||ie?Me(_e):H.protectedKeys[_e]=!0:J!==void 0?Me(_e):T.add(_e):J!==void 0&&T.has(_e)?Me(_e):H.protectedKeys[_e]=!0)}H.prevProp=G,H.prevResolvedValues=Ae,H.isActive&&(L={...L,...Ae}),r&&e.blockInitialAnimation&&(le=!1),le&&!ne&&w.push(...oe.map(_e=>({animation:_e,options:{type:z,...d}})))}if(T.size){const F={};T.forEach(z=>{const H=e.getBaseTarget(z);H!==void 0&&(F[z]=H)}),w.push({animation:F})}let B=Boolean(w.length);return r&&S.initial===!1&&!e.manuallyAnimateOnMount&&(B=!1),r=!1,B?t(w):Promise.resolve()}function f(d,m,b){var S;if(n[d].isActive===m)return Promise.resolve();(S=e.variantChildren)===null||S===void 0||S.forEach(w=>{var T;return(T=w.animationState)===null||T===void 0?void 0:T.setActive(d,m)}),n[d].isActive=m;const N=l(b,d);for(const w in n)n[w].protectedKeys={};return N}return{animateChanges:l,setActive:f,setAnimateFunction:s,getState:()=>n}}function Cse(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pV(t,e):!1}function eS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nse(){return{[Li.Animate]:eS(!0),[Li.InView]:eS(),[Li.Hover]:eS(),[Li.Tap]:eS(),[Li.Drag]:eS(),[Li.Focus]:eS(),[Li.Exit]:eS()}}const wse={animation:wb(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=xse(e)),M9(t)&&O.exports.useEffect(()=>t.subscribe(e),[t])}),exit:wb(e=>{const{custom:t,visualElement:n}=e,[r,i]=jL(),s=O.exports.useContext(iC);O.exports.useEffect(()=>{n.isPresent=r;const l=n.animationState&&n.animationState.setActive(Li.Exit,!r,{custom:s&&s.custom||t});l&&!r&&l.then(i)},[r])})};class xV{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 m=d8(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,S=$L(m.offset,{x:0,y:0})>=3;if(!b&&!S)return;const{point:N}=m,{timestamp:w}=pA();this.history.push({...N,timestamp:w});const{onStart:T,onMove:L}=this.handlers;b||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,m)},this.handlePointerMove=(m,b)=>{if(this.lastMoveEvent=m,this.lastMoveEventInfo=f8(b,this.transformPagePoint),Uj(m)&&m.buttons===0){this.handlePointerUp(m,b);return}sv.update(this.updatePoint,!0)},this.handlePointerUp=(m,b)=>{this.end();const{onEnd:S,onSessionEnd:N}=this.handlers,w=d8(f8(b,this.transformPagePoint),this.history);this.startEvent&&S&&S(m,w),N&&N(m,w)},Hj(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const i=LL(t),s=f8(i,this.transformPagePoint),{point:l}=s,{timestamp:f}=pA();this.history=[{...l,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,d8(s,this.history)),this.removeListeners=z9(E3(window,"pointermove",this.handlePointerMove),E3(window,"pointerup",this.handlePointerUp),E3(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hw.update(this.updatePoint)}}function f8(e,t){return t?{point:t(e.point)}:e}function BF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d8({point:e},t){return{point:e,delta:BF(e,CV(t)),offset:BF(e,_se(t)),velocity:Ese(t,.1)}}function _se(e){return e[0]}function CV(e){return e[e.length-1]}function Ese(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=CV(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>z6(t)));)n--;if(!r)return{x:0,y:0};const s=(i.timestamp-r.timestamp)/1e3;if(s===0)return{x:0,y:0};const l={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function rd(e){return e.max-e.min}function $F(e,t=0,n=.01){return $L(e,t)<n}function UF(e,t,n,r=.5){e.origin=r,e.originPoint=es(t.min,t.max,e.origin),e.scale=rd(n)/rd(t),($F(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=es(n.min,n.max,e.origin)-e.originPoint,($F(e.translate)||isNaN(e.translate))&&(e.translate=0)}function dw(e,t,n,r){UF(e.x,t.x,n.x,r?.originX),UF(e.y,t.y,n.y,r?.originY)}function HF(e,t,n){e.min=n.min+t.min,e.max=e.min+rd(t)}function Tse(e,t,n){HF(e.x,t.x,n.x),HF(e.y,t.y,n.y)}function jF(e,t,n){e.min=t.min-n.min,e.max=e.min+rd(t)}function hw(e,t,n){jF(e.x,t.x,n.x),jF(e.y,t.y,n.y)}function Rse(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?es(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?es(n,e,r.max):Math.min(e,n)),e}function VF(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 kse(e,{top:t,left:n,bottom:r,right:i}){return{x:VF(e.x,n,i),y:VF(e.y,t,r)}}function GF(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 Ase(e,t){return{x:GF(e.x,t.x),y:GF(e.y,t.y)}}function Ose(e,t){let n=.5;const r=rd(e),i=rd(t);return i>r?n=Bw(t.min,t.max-r,e.min):r>i&&(n=Bw(e.min,e.max-i,t.min)),P6(0,1,n)}function Lse(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 vA=.35;function Mse(e=vA){return e===!1?e=0:e===!0&&(e=vA),{x:WF(e,"left","right"),y:WF(e,"top","bottom")}}function WF(e,t,n){return{min:YF(e,t),max:YF(e,n)}}function YF(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const qF=()=>({translate:0,scale:1,origin:0,originPoint:0}),pw=()=>({x:qF(),y:qF()}),KF=()=>({min:0,max:0}),su=()=>({x:KF(),y:KF()});function Zm(e){return[e("x"),e("y")]}function NV({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Dse({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Pse(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 h8(e){return e===void 0||e===1}function wV({scale:e,scaleX:t,scaleY:n}){return!h8(e)||!h8(t)||!h8(n)}function vb(e){return wV(e)||ZF(e.x)||ZF(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ZF(e){return e&&e!=="0%"}function $6(e,t,n){const r=e-n,i=t*r;return n+i}function XF(e,t,n,r,i){return i!==void 0&&(e=$6(e,i,r)),$6(e,n,r)+t}function gA(e,t=0,n=1,r,i){e.min=XF(e.min,t,n,r,i),e.max=XF(e.max,t,n,r,i)}function _V(e,{x:t,y:n}){gA(e.x,t.translate,t.scale,t.originPoint),gA(e.y,n.translate,n.scale,n.originPoint)}function Ise(e,t,n,r=!1){var i,s;const l=n.length;if(!l)return;t.x=t.y=1;let f,d;for(let m=0;m<l;m++)f=n[m],d=f.projectionDelta,((s=(i=f.instance)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.display)!=="contents"&&(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&y3(e,{x:-f.scroll.x,y:-f.scroll.y}),d&&(t.x*=d.x.scale,t.y*=d.y.scale,_V(e,d)),r&&vb(f.latestValues)&&y3(e,f.latestValues))}function yb(e,t){e.min=e.min+t,e.max=e.max+t}function QF(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,l=es(e.min,e.max,s);gA(e,t[n],t[r],l,t.scale)}const Fse=["x","scaleX","originX"],zse=["y","scaleY","originY"];function y3(e,t){QF(e.x,t,Fse),QF(e.y,t,zse)}function EV(e,t){return NV(Pse(e.getBoundingClientRect(),t))}function Bse(e,t,n){const r=EV(e,n),{scroll:i}=t;return i&&(yb(r.x,i.x),yb(r.y,i.y)),r}const $se=new WeakMap;class Use{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=su(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=f=>{this.stopAnimation(),n&&this.snapToCursor(LL(f,"page").point)},i=(f,d)=>{var m;const{drag:b,dragPropagation:S,onDragStart:N}=this.getProps();b&&!S&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wj(b),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zm(w=>{var T,L;let M=this.getAxisMotionValue(w).get()||0;if(ov.test(M)){const B=(L=(T=this.visualElement.projection)===null||T===void 0?void 0:T.layout)===null||L===void 0?void 0:L.actual[w];B&&(M=rd(B)*(parseFloat(M)/100))}this.originPoint[w]=M}),N?.(f,d),(m=this.visualElement.animationState)===null||m===void 0||m.setActive(Li.Drag,!0))},s=(f,d)=>{const{dragPropagation:m,dragDirectionLock:b,onDirectionLock:S,onDrag:N}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:w}=d;if(b&&this.currentDirection===null){this.currentDirection=Hse(w),this.currentDirection!==null&&S?.(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.syncRender(),N?.(f,d)},l=(f,d)=>this.stop(f,d);this.panSession=new xV(t,{onSessionStart:r,onStart:i,onMove:s,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s?.(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(Li.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!GE(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=Rse(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&b3(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kse(r.actual,t):this.constraints=!1,this.elastic=Mse(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zm(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Lse(r.actual[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!b3(t))return!1;const r=t.current;rh(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Bse(r,i.root,this.visualElement.getTransformPagePoint());let l=Ase(i.layout.actual,s);if(n){const f=n(Dse(l));this.hasMutatedConstraints=!!f,f&&(l=NV(f))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},m=Zm(b=>{var S;if(!GE(b,n,this.currentDirection))return;let N=(S=d?.[b])!==null&&S!==void 0?S:{};l&&(N={min:0,max:0});const w=i?200:1e6,T=i?40:1e7,L={type:"inertia",velocity:r?t[b]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...s,...N};return this.startAxisValueAnimation(b,L)});return Promise.all(m).then(f)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return YL(t,r,0,n)}stopAnimation(){Zm(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const i="_drag"+t.toUpperCase(),s=this.visualElement.getProps()[i];return s||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){Zm(n=>{const{drag:r}=this.getProps();if(!GE(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:f}=i.layout.actual[n];s.set(t[n]-es(l,f,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!b3(r)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Zm(f=>{const d=this.getAxisMotionValue(f);if(d){const m=d.get();s[f]=Ose({min:m,max:m},this.constraints[f])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=l?l({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Zm(f=>{if(!GE(f,n,null))return;const d=this.getAxisMotionValue(f),{min:m,max:b}=this.constraints[f];d.set(es(m,b,s[f]))})}addListeners(){var t;$se.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=E3(n,"pointerdown",m=>{const{drag:b,dragListener:S=!0}=this.getProps();b&&S&&this.start(m)}),i=()=>{const{dragConstraints:m}=this.getProps();b3(m)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,l=s.addEventListener("measure",i);s&&!s.layout&&((t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout()),i();const f=I9(window,"resize",()=>this.scalePositionWithinConstraints()),d=s.addEventListener("didUpdate",({delta:m,hasLayoutChanged:b})=>{this.isDragging&&b&&(Zm(S=>{const N=this.getAxisMotionValue(S);!N||(this.originPoint[S]+=m[S].translate,N.set(N.get()+m[S].translate))}),this.visualElement.syncRender())});return()=>{f(),r(),l(),d?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=vA,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:f}}}function GE(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hse(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function jse(e){const{dragControls:t,visualElement:n}=e,r=P9(()=>new Use(n));O.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),O.exports.useEffect(()=>r.addListeners(),[r])}function Vse({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const s=e||t||n||r,l=O.exports.useRef(null),{transformPagePoint:f}=O.exports.useContext(wL),d={onSessionStart:r,onStart:t,onMove:e,onEnd:(b,S)=>{l.current=null,n&&n(b,S)}};O.exports.useEffect(()=>{l.current!==null&&l.current.updateHandlers(d)});function m(b){l.current=new xV(b,d,{transformPagePoint:f})}D6(i,"pointerdown",s&&m),ML(()=>l.current&&l.current.end())}const Gse={pan:wb(Vse),drag:wb(jse)},bA={current:null},TV={current:!1};function Wse(){if(TV.current=!0,!!PS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bA.current=e.matches;e.addListener(t),t()}else bA.current=!1}const WE=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Yse(){const e=WE.map(()=>new fw),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{WE.forEach(i=>{var s;const l="on"+i,f=r[l];(s=t[i])===null||s===void 0||s.call(t),f&&(t[i]=n[l](f))})}};return e.forEach((r,i)=>{n["on"+WE[i]]=s=>r.add(s),n["notify"+WE[i]]=(...s)=>r.notify(...s)}),n}function qse(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],l=n[i];if(fv(s))e.addValue(i,s),B6(r)&&r.add(i),HL(s.version==="7.3.5",`Attempting to mix Framer Motion versions ${s.version} with 7.3.5 may not work as expected.`);else if(fv(l))e.addValue(i,j3(s)),B6(r)&&r.remove(i);else if(l!==s)if(e.hasValue(i)){const f=e.getValue(i);!f.hasAnimated&&f.set(s)}else{const f=e.getStaticValue(i);e.addValue(i,j3(f!==void 0?f:s))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const RV=Object.keys(Iw),Kse=RV.length,kV=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:i,render:s,readValueFromInstance:l,removeValueFromRenderState:f,sortNodePosition:d,scrapeMotionValuesFromProps:m})=>({parent:b,props:S,presenceId:N,blockInitialAnimation:w,visualState:T,reducedMotionConfig:L},M={})=>{let B=!1;const{latestValues:F,renderState:z}=T;let H;const G=Yse(),K=new Map,Z=new Map;let ne={};const ie={...F};let le;function oe(){!H||!B||(Ae(),s(H,z,S.style,ve.projection))}function Ae(){t(ve,z,F,M,S)}function de(){G.notifyUpdate(F)}function Se(ye,xe){const Ve=xe.onChange(Qe=>{F[ye]=Qe,S.onUpdate&&sv.update(de,!1,!0)}),Pe=xe.onRenderRequest(ve.scheduleRender);Z.set(ye,()=>{Ve(),Pe()})}const{willChange:Me,..._e}=m(S);for(const ye in _e){const xe=_e[ye];F[ye]!==void 0&&fv(xe)&&(xe.set(F[ye],!1),B6(Me)&&Me.add(ye))}const J=D9(S),he=bj(S),ve={treeType:e,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:N,shouldReduceMotion:null,variantChildren:he?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(b?.isMounted()),blockInitialAnimation:w,isMounted:()=>Boolean(H),mount(ye){B=!0,H=ve.current=ye,ve.projection&&ve.projection.mount(ye),he&&b&&!J&&(le=b?.addVariantChild(ve)),K.forEach((xe,Ve)=>Se(Ve,xe)),TV.current||Wse(),ve.shouldReduceMotion=L==="never"?!1:L==="always"?!0:bA.current,b?.children.add(ve),ve.setProps(S)},unmount(){var ye;(ye=ve.projection)===null||ye===void 0||ye.unmount(),Hw.update(de),Hw.render(oe),Z.forEach(xe=>xe()),le?.(),b?.children.delete(ve),G.clearAllListeners(),H=void 0,B=!1},loadFeatures(ye,xe,Ve,Pe,Qe,wt){const Ot=[];UL!=="production"&&Ve&&xe&&rh(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let Ut=0;Ut<Kse;Ut++){const ut=RV[Ut],{isEnabled:It,Component:Qt}=Iw[ut];It(ye)&&Qt&&Ot.push(O.exports.createElement(Qt,{key:ut,...ye,visualElement:ve}))}if(!ve.projection&&Qe){ve.projection=new Qe(Pe,ve.getLatestValues(),b&&b.projection);const{layoutId:Ut,layout:ut,drag:It,dragConstraints:Qt,layoutScroll:pn}=ye;ve.projection.setOptions({layoutId:Ut,layout:ut,alwaysMeasureLayout:Boolean(It)||Qt&&b3(Qt),visualElement:ve,scheduleRender:()=>ve.scheduleRender(),animationType:typeof ut=="string"?ut:"both",initialPromotionConfig:wt,layoutScroll:pn})}return Ot},addVariantChild(ye){var xe;const Ve=ve.getClosestVariantNode();if(Ve)return(xe=Ve.variantChildren)===null||xe===void 0||xe.add(ye),()=>Ve.variantChildren.delete(ye)},sortNodePosition(ye){return!d||e!==ye.treeType?0:d(ve.getInstance(),ye.getInstance())},getClosestVariantNode:()=>he?ve:b?.getClosestVariantNode(),getLayoutId:()=>S.layoutId,getInstance:()=>H,getStaticValue:ye=>F[ye],setStaticValue:(ye,xe)=>F[ye]=xe,getLatestValues:()=>F,setVisibility(ye){ve.isVisible!==ye&&(ve.isVisible=ye,ve.scheduleRender())},makeTargetAnimatable(ye,xe=!0){return r(ve,ye,S,xe)},measureViewportBox(){return i(H,S)},addValue(ye,xe){ve.hasValue(ye)&&ve.removeValue(ye),K.set(ye,xe),F[ye]=xe.get(),Se(ye,xe)},removeValue(ye){var xe;K.delete(ye),(xe=Z.get(ye))===null||xe===void 0||xe(),Z.delete(ye),delete F[ye],f(ye,z)},hasValue:ye=>K.has(ye),getValue(ye,xe){let Ve=K.get(ye);return Ve===void 0&&xe!==void 0&&(Ve=j3(xe),ve.addValue(ye,Ve)),Ve},forEachValue:ye=>K.forEach(ye),readValue:ye=>F[ye]!==void 0?F[ye]:l(H,ye,M),setBaseTarget(ye,xe){ie[ye]=xe},getBaseTarget(ye){if(n){const xe=n(S,ye);if(xe!==void 0&&!fv(xe))return xe}return ie[ye]},...G,build(){return Ae(),z},scheduleRender(){sv.render(oe,!1,!0)},syncRender:oe,setProps(ye){(ye.transformTemplate||S.transformTemplate)&&ve.scheduleRender(),S=ye,G.updatePropListeners(ye),ne=qse(ve,m(S),ne)},getProps:()=>S,getVariant:ye=>{var xe;return(xe=S.variants)===null||xe===void 0?void 0:xe[ye]},getDefaultTransition:()=>S.transition,getTransformPagePoint:()=>S.transformPagePoint,getVariantContext(ye=!1){if(ye)return b?.getVariantContext();if(!J){const Ve=b?.getVariantContext()||{};return S.initial!==void 0&&(Ve.initial=S.initial),Ve}const xe={};for(let Ve=0;Ve<Zse;Ve++){const Pe=AV[Ve],Qe=S[Pe];(Pw(Qe)||Qe===!1)&&(xe[Pe]=Qe)}return xe}};return ve},AV=["initial",...ZL],Zse=AV.length;function yA(e){return typeof e=="string"&&e.startsWith("var(--")}const OV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Xse(e){const t=OV.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const Qse=4;function SA(e,t,n=1){rh(n<=Qse,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Xse(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);return s?s.trim():yA(i)?SA(i,t,n+1):i}function Jse(e,{...t},n){const r=e.getInstance();if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(i=>{const s=i.get();if(!yA(s))return;const l=SA(s,r);l&&i.set(l)});for(const i in t){const s=t[i];if(!yA(s))continue;const l=SA(s,r);!l||(t[i]=l,n&&n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const ele=new Set(["width","height","top","left","right","bottom","x","y"]),LV=e=>ele.has(e),tle=e=>Object.keys(e).some(LV),MV=(e,t)=>{e.set(t,!1),e.set(t)},YE=e=>e===IS||e===mr;var JF;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(JF||(JF={}));const ez=(e,t)=>parseFloat(e.split(", ")[t]),tz=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return ez(i[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?ez(s[1],e):0}},nle=new Set(["x","y","z"]),rle=L6.filter(e=>!nle.has(e));function ale(e){const t=[];return rle.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 nz={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:tz(4,13),y:tz(5,14)},ile=(e,t,n)=>{const r=t.measureViewportBox(),i=t.getInstance(),s=getComputedStyle(i),{display:l}=s,f={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(m=>{f[m]=nz[m](r,s)}),t.syncRender();const d=t.measureViewportBox();return n.forEach(m=>{const b=t.getValue(m);MV(b,f[m]),e[m]=nz[m](d,s)}),e},ole=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(LV);let s=[],l=!1;const f=[];if(i.forEach(d=>{const m=e.getValue(d);if(!e.hasValue(d))return;let b=n[d],S=_N(b);const N=t[d];let w;if(zw(N)){const T=N.length,L=N[0]===null?1:0;b=N[L],S=_N(b);for(let M=L;M<T;M++)w?rh(_N(N[M])===w,"All keyframes must be of the same type"):(w=_N(N[M]),rh(w===S||YE(S)&&YE(w),"Keyframes must be of the same dimension as the current value"))}else w=_N(N);if(S!==w)if(YE(S)&&YE(w)){const T=m.get();typeof T=="string"&&m.set(parseFloat(T)),typeof N=="string"?t[d]=parseFloat(N):Array.isArray(N)&&w===mr&&(t[d]=N.map(parseFloat))}else S?.transform&&w?.transform&&(b===0||N===0)?b===0?m.set(w.transform(b)):t[d]=S.transform(N):(l||(s=ale(e),l=!0),f.push(d),r[d]=r[d]!==void 0?r[d]:t[d],MV(m,N))}),f.length){const d=f.indexOf("height")>=0?window.pageYOffset:null,m=ile(t,e,f);return s.length&&s.forEach(([b,S])=>{e.getValue(b).set(S)}),e.syncRender(),PS&&d!==null&&window.scrollTo({top:d}),{target:m,transitionEnd:r}}else return{target:t,transitionEnd:r}};function sle(e,t,n,r){return tle(t)?ole(e,t,n,r):{target:t,transitionEnd:r}}const lle=(e,t,n,r)=>{const i=Jse(e,t,r);return t=i.target,r=i.transitionEnd,sle(e,t,n,r)};function ule(e){return window.getComputedStyle(e)}const DV={treeType:"dom",readValueFromInstance(e,t){if(f_.has(t)){const n=VL(t);return n&&n.default||0}else{const n=ule(e),r=(xj(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 EV(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:i},s=!0){let l=hse(r,t||{},e);if(i&&(n&&(n=i(n)),r&&(r=i(r)),l&&(l=i(l))),s){fse(e,r,l);const f=lle(e,r,l,n);n=f.transitionEnd,r=f.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:OL,build(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),RL(t,n,r,i.transformTemplate)},render:Dj},cle=kV(DV),fle=kV({...DV,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return f_.has(t)?((n=VL(t))===null||n===void 0?void 0:n.default)||0:(t=Pj.has(t)?t:Mj(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Fj,build(e,t,n,r,i){AL(t,n,r,i.transformTemplate)},render:Ij}),dle=(e,t)=>EL(e)?fle(t,{enableHardwareAcceleration:!1}):cle(t,{enableHardwareAcceleration:!0});function rz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const EN={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mr.test(e))e=parseFloat(e);else return e;const n=rz(e,t.target.x),r=rz(e,t.target.y);return`${n}% ${r}%`}},az="_$css",hle={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),s=[];i&&(e=e.replace(OV,w=>(s.push(w),az)));const l=a0.parse(e);if(l.length>5)return r;const f=a0.createTransformer(e),d=typeof l[0]!="number"?1:0,m=n.x.scale*t.x,b=n.y.scale*t.y;l[0+d]/=m,l[1+d]/=b;const S=es(m,b,.5);typeof l[2+d]=="number"&&(l[2+d]/=S),typeof l[3+d]=="number"&&(l[3+d]/=S);let N=f(l);if(i){let w=0;N=N.replace(az,()=>{const T=s[w];return w++,T})}return N}};var ple="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class mle extends ke.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Tae(gle),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),lw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,l=r.projection;return l&&(l.isPresent=s,i||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||sv.postRender(()=>{var f;!((f=l.getStack())===null||f===void 0)&&f.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(i),r?.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function vle(e){const[t,n]=jL(),r=O.exports.useContext(_L);return _(mle,{...e,layoutGroup:r,switchLayoutGroup:O.exports.useContext(yj),isPresent:t,safeToRemove:n},void 0,!1,{fileName:ple,lineNumber:110,columnNumber:13},this)}const gle={borderRadius:{...EN,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:EN,borderTopRightRadius:EN,borderBottomLeftRadius:EN,borderBottomRightRadius:EN,boxShadow:hle},ble={measureLayout:vle};function yle(e,t,n={}){const r=fv(e)?e:j3(e);return YL("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const PV=["TopLeft","TopRight","BottomLeft","BottomRight"],Sle=PV.length,iz=e=>typeof e=="string"?parseFloat(e):e,oz=e=>typeof e=="number"||mr.test(e);function xle(e,t,n,r,i,s){var l,f,d,m;i?(e.opacity=es(0,(l=n.opacity)!==null&&l!==void 0?l:1,Cle(r)),e.opacityExit=es((f=t.opacity)!==null&&f!==void 0?f:1,0,Nle(r))):s&&(e.opacity=es((d=t.opacity)!==null&&d!==void 0?d:1,(m=n.opacity)!==null&&m!==void 0?m:1,r));for(let b=0;b<Sle;b++){const S=`border${PV[b]}Radius`;let N=sz(t,S),w=sz(n,S);if(N===void 0&&w===void 0)continue;N||(N=0),w||(w=0),N===0||w===0||oz(N)===oz(w)?(e[S]=Math.max(es(iz(N),iz(w),r),0),(ov.test(w)||ov.test(N))&&(e[S]+="%")):e[S]=w}(t.rotate||n.rotate)&&(e.rotate=es(t.rotate||0,n.rotate||0,r))}function sz(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const Cle=IV(0,.5,zL),Nle=IV(.5,.95,IL);function IV(e,t,n){return r=>r<e?0:r>t?1:n(Bw(e,t,r))}function lz(e,t){e.min=t.min,e.max=t.max}function dp(e,t){lz(e.x,t.x),lz(e.y,t.y)}function uz(e,t,n,r,i){return e-=t,e=$6(e,1/n,r),i!==void 0&&(e=$6(e,1/i,r)),e}function wle(e,t=0,n=1,r=.5,i,s=e,l=e){if(ov.test(t)&&(t=parseFloat(t),t=es(l.min,l.max,t/100)-l.min),typeof t!="number")return;let f=es(s.min,s.max,r);e===s&&(f-=t),e.min=uz(e.min,t,n,f,i),e.max=uz(e.max,t,n,f,i)}function cz(e,t,[n,r,i],s,l){wle(e,t[n],t[r],t[i],t.scale,s,l)}const _le=["x","scaleX","originX"],Ele=["y","scaleY","originY"];function fz(e,t,n,r){cz(e.x,t,_le,n?.x,r?.x),cz(e.y,t,Ele,n?.y,r?.y)}function dz(e){return e.translate===0&&e.scale===1}function FV(e){return dz(e.x)&&dz(e.y)}function zV(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 hz(e){return rd(e.x)/rd(e.y)}function Tle(e,t,n=.01){return $L(e,t)<=n}class Rle{constructor(){this.members=[]}add(t){qL(this.members,t),t.scheduleRender()}remove(t){if(KL(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,l;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(l=(i=t.resumingFrom)===null||i===void 0?void 0:(s=i.options).onExitComplete)===null||l===void 0||l.call(s)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const kle="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function pz(e,t,n){const r=e.x.translate/t.x,i=e.y.translate/t.y;let s=`translate3d(${r}px, ${i}px, 0) `;if(s+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:d,rotateX:m,rotateY:b}=n;d&&(s+=`rotate(${d}deg) `),m&&(s+=`rotateX(${m}deg) `),b&&(s+=`rotateY(${b}deg) `)}const l=e.x.scale*t.x,f=e.y.scale*t.y;return s+=`scale(${l}, ${f})`,s===kle?"none":s}const Ale=(e,t)=>e.depth-t.depth;class Ole{constructor(){this.children=[],this.isDirty=!1}add(t){qL(this.children,t),this.isDirty=!0}remove(t){KL(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ale),this.isDirty=!1,this.children.forEach(t)}}const mz=["","X","Y","Z"],vz=1e3;function BV({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l,f={},d=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(Fle),this.nodes.forEach(zle)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=f,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ole)}addEventListener(l,f){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new fw),this.eventHandlers.get(l).add(f)}notifyListeners(l,...f){const d=this.eventHandlers.get(l);d?.notify(...f)}hasListeners(l){return this.eventHandlers.has(l)}registerPotentialNode(l,f){this.potentialNodes.set(l,f)}mount(l,f=!1){var d;if(this.instance)return;this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;const{layoutId:m,layout:b,visualElement:S}=this.options;if(S&&!S.getInstance()&&S.mount(l),this.root.nodes.add(this),(d=this.parent)===null||d===void 0||d.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),f&&(b||m)&&(this.isLayoutDirty=!0),e){let N;const w=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,clearTimeout(N),N=window.setTimeout(w,250),lw.hasAnimatedSinceResize&&(lw.hasAnimatedSinceResize=!1,this.nodes.forEach(Ile))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&S&&(m||b)&&this.addEventListener("didUpdate",({delta:N,hasLayoutChanged:w,hasRelativeTargetChanged:T,layout:L})=>{var M,B,F,z,H;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const G=(B=(M=this.options.transition)!==null&&M!==void 0?M:S.getDefaultTransition())!==null&&B!==void 0?B:jle,{onLayoutAnimationStart:K,onLayoutAnimationComplete:Z}=S.getProps(),ne=!this.targetLayout||!zV(this.targetLayout,L)||T,ie=!w&&T;if(((F=this.resumeFrom)===null||F===void 0?void 0:F.instance)||ie||w&&(ne||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(N,ie);const le={...WL(G,"layout"),onPlay:K,onComplete:Z};S.shouldReduceMotion&&(le.delay=0,le.type=!1),this.startAnimation(le)}else!w&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((H=(z=this.options).onExitComplete)===null||H===void 0||H.call(z));this.targetLayout=L})}unmount(){var l,f;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(f=this.parent)===null||f===void 0||f.children.delete(this),this.instance=void 0,Hw.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1}startUpdate(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(Ble))}willUpdate(l=!0){var f,d,m;if(this.root.isUpdateBlocked()){(d=(f=this.options).onExitComplete)===null||d===void 0||d.call(f);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const T=this.path[w];T.shouldResetTransform=!0,T.updateScroll()}const{layoutId:b,layout:S}=this.options;if(b===void 0&&!S)return;const N=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;this.prevTransformTemplateValue=N?.(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gz);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Vle),this.potentialNodes.clear()),this.nodes.forEach(Ple),this.nodes.forEach(Lle),this.nodes.forEach(Mle),this.clearAllSnapshots(),c8.update(),c8.preRender(),c8.render())}clearAllSnapshots(){this.nodes.forEach(Dle),this.sharedNodes.forEach($le)}scheduleUpdateProjection(){sv.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){sv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const l=this.measure(),f=this.removeTransform(this.removeElementScroll(l));xz(f),this.snapshot={measured:l,layout:f,latestValues:{}}}updateLayout(){var l;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.measure();xz(f);const d=this.layout;this.layout={measured:f,actual:this.removeElementScroll(f)},this.layoutCorrected=su(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,d?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=n(this.instance))}resetTransform(){var l;if(!i)return;const f=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!FV(this.projectionDelta),m=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,b=m?.(this.latestValues,""),S=b!==this.prevTransformTemplateValue;f&&(d||vb(this.latestValues)||S)&&(i(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:l}=this.options;if(!l)return su();const f=l.measureViewportBox(),{scroll:d}=this.root;return d&&(yb(f.x,d.x),yb(f.y,d.y)),f}removeElementScroll(l){const f=su();dp(f,l);for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:b,options:S,isScrollRoot:N}=m;if(m!==this.root&&b&&S.layoutScroll){if(N){dp(f,l);const{scroll:w}=this.root;w&&(yb(f.x,-w.x),yb(f.y,-w.y))}yb(f.x,b.x),yb(f.y,b.y)}}return f}applyTransform(l,f=!1){const d=su();dp(d,l);for(let m=0;m<this.path.length;m++){const b=this.path[m];!f&&b.options.layoutScroll&&b.scroll&&b!==b.root&&y3(d,{x:-b.scroll.x,y:-b.scroll.y}),vb(b.latestValues)&&y3(d,b.latestValues)}return vb(this.latestValues)&&y3(d,this.latestValues),d}removeTransform(l){var f;const d=su();dp(d,l);for(let m=0;m<this.path.length;m++){const b=this.path[m];if(!b.instance||!vb(b.latestValues))continue;wV(b.latestValues)&&b.updateSnapshot();const S=su(),N=b.measure();dp(S,N),fz(d,b.latestValues,(f=b.snapshot)===null||f===void 0?void 0:f.layout,S)}return vb(this.latestValues)&&fz(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection()}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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 l;const{layout:f,layoutId:d}=this.options;!this.layout||!(f||d)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=su(),this.relativeTargetOrigin=su(),hw(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),dp(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=su(),this.targetWithTransforms=su()),this.relativeTarget&&this.relativeTargetOrigin&&((l=this.relativeParent)===null||l===void 0?void 0:l.target)?Tse(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):dp(this.target,this.layout.actual),_V(this.target,this.targetDelta)):dp(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=su(),this.relativeTargetOrigin=su(),hw(this.relativeTargetOrigin,this.target,this.relativeParent.target),dp(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||vb(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var l;const{layout:f,layoutId:d}=this.options;if(this.isTreeAnimating=Boolean(((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||d))return;const m=this.getLead();dp(this.layoutCorrected,this.layout.actual),Ise(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==m);const{target:b}=m;if(!b)return;this.projectionDelta||(this.projectionDelta=pw(),this.projectionDeltaWithTransform=pw());const S=this.treeScale.x,N=this.treeScale.y,w=this.projectionTransform;dw(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=pz(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==S||this.treeScale.y!==N)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var f,d,m;(d=(f=this.options).scheduleRender)===null||d===void 0||d.call(f),l&&((m=this.getStack())===null||m===void 0||m.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,f=!1){var d;const m=this.snapshot,b=m?.latestValues||{},S={...this.latestValues},N=pw();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!f;const w=su(),T=m?.isShared,L=(((d=this.getStack())===null||d===void 0?void 0:d.members.length)||0)<=1,M=Boolean(T&&!L&&this.options.crossfade===!0&&!this.path.some(Hle));this.animationProgress=0,this.mixTargetDelta=B=>{var F;const z=B/1e3;bz(N.x,l.x,z),bz(N.y,l.y,z),this.setTargetDelta(N),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((F=this.relativeParent)===null||F===void 0?void 0:F.layout)&&(hw(w,this.layout.actual,this.relativeParent.layout.actual),Ule(this.relativeTarget,this.relativeTargetOrigin,w,z)),T&&(this.animationValues=S,xle(S,b,this.latestValues,z,M,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(0)}startAnimation(l){var f,d;this.notifyListeners("animationStart"),(f=this.currentAnimation)===null||f===void 0||f.stop(),this.resumingFrom&&((d=this.resumingFrom.currentAnimation)===null||d===void 0||d.stop()),this.pendingAnimation&&(Hw.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=sv.update(()=>{lw.hasAnimatedSinceResize=!0,this.currentAnimation=yle(0,vz,{...l,onUpdate:m=>{var b;this.mixTargetDelta(m),(b=l.onUpdate)===null||b===void 0||b.call(l,m)},onComplete:()=>{var m;(m=l.onComplete)===null||m===void 0||m.call(l),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,vz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:f,target:d,layout:m,latestValues:b}=l;if(!(!f||!d||!m)){if(this!==l&&this.layout&&m&&$V(this.options.animationType,this.layout.actual,m.actual)){d=this.target||su();const S=rd(this.layout.actual.x);d.x.min=l.target.x.min,d.x.max=d.x.min+S;const N=rd(this.layout.actual.y);d.y.min=l.target.y.min,d.y.max=d.y.min+N}dp(f,d),y3(f,b),dw(this.projectionDeltaWithTransform,this.layoutCorrected,f,b)}}registerSharedNode(l,f){var d,m,b;this.sharedNodes.has(l)||this.sharedNodes.set(l,new Rle),this.sharedNodes.get(l).add(f),f.promote({transition:(d=f.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(b=(m=f.options.initialPromotionConfig)===null||m===void 0?void 0:m.shouldPreserveFollowOpacity)===null||b===void 0?void 0:b.call(m,f)})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:f}=this.options;return f?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:f}=this.options;return f?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:f,preserveFollowOpacity:d}={}){const m=this.getStack();m&&m.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let f=!1;const d={};for(let m=0;m<mz.length;m++){const b=mz[m],S="rotate"+b;!l.getStaticValue(S)||(f=!0,d[S]=l.getStaticValue(S),l.setStaticValue(S,0))}if(!!f){l?.syncRender();for(const m in d)l.setStaticValue(m,d[m]);l.scheduleRender()}}getProjectionStyles(l={}){var f,d,m;const b={};if(!this.instance||this.isSVG)return b;if(this.isVisible)b.visibility="";else return{visibility:"hidden"};const S=(f=this.options.visualElement)===null||f===void 0?void 0:f.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=qT(l.pointerEvents)||"",b.transform=S?S(this.latestValues,""):"none",b;const N=this.getLead();if(!this.projectionDelta||!this.layout||!N.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=qT(l.pointerEvents)||""),this.hasProjected&&!vb(this.latestValues)&&(M.transform=S?S({},""):"none",this.hasProjected=!1),M}const w=N.animationValues||N.latestValues;this.applyTransformsToTarget(),b.transform=pz(this.projectionDeltaWithTransform,this.treeScale,w),S&&(b.transform=S(w,b.transform));const{x:T,y:L}=this.projectionDelta;b.transformOrigin=`${T.origin*100}% ${L.origin*100}% 0`,N.animationValues?b.opacity=N===this?(m=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:b.opacity=N===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const M in O6){if(w[M]===void 0)continue;const{correct:B,applyTo:F}=O6[M],z=B(w[M],N);if(F){const H=F.length;for(let G=0;G<H;G++)b[F[G]]=z}else b[M]=z}return this.options.layoutId&&(b.pointerEvents=N===this?qT(l.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var f;return(f=l.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(gz),this.root.sharedNodes.clear()}}}function Lle(e){e.updateLayout()}function Mle(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{actual:s,measured:l}=e.layout,{animationType:f}=e.options;f==="size"?Zm(N=>{const w=i.isShared?i.measured[N]:i.layout[N],T=rd(w);w.min=s[N].min,w.max=w.min+T}):$V(f,i.layout,s)&&Zm(N=>{const w=i.isShared?i.measured[N]:i.layout[N],T=rd(s[N]);w.max=w.min+T});const d=pw();dw(d,s,i.layout);const m=pw();i.isShared?dw(m,e.applyTransform(l,!0),i.measured):dw(m,s,i.layout);const b=!FV(d);let S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:N,layout:w}=e.relativeParent;if(N&&w){const T=su();hw(T,i.layout,N.layout);const L=su();hw(L,s,w.actual),zV(T,L)||(S=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:b,hasRelativeTargetChanged:S})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function Dle(e){e.clearSnapshot()}function gz(e){e.clearMeasurements()}function Ple(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ile(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Fle(e){e.resolveTargetDelta()}function zle(e){e.calcProjection()}function Ble(e){e.resetRotation()}function $le(e){e.removeLeadSnapshot()}function bz(e,t,n){e.translate=es(t.translate,0,n),e.scale=es(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yz(e,t,n,r){e.min=es(t.min,n.min,r),e.max=es(t.max,n.max,r)}function Ule(e,t,n,r){yz(e.x,t.x,n.x,r),yz(e.y,t.y,n.y,r)}function Hle(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jle={duration:.45,ease:[.4,0,.1,1]};function Vle(e,t){let n=e.root;for(let s=e.path.length-1;s>=0;s--)if(Boolean(e.path[s].instance)){n=e.path[s];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function Sz(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function xz(e){Sz(e.x),Sz(e.y)}function $V(e,t,n){return e==="position"||e==="preserve-aspect"&&!Tle(hz(t),hz(n))}const Gle=BV({attachResizeListener:(e,t)=>I9(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),p8={current:void 0},Wle=BV({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!p8.current){const e=new Gle(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),p8.current=e}return p8.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Yle={...wse,...Poe,...Gse,...ble},lh=_ae((e,t)=>cie(e,t,Yle,dle,Wle));function UV(){const e=O.exports.useRef(!1);return A6(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qle(){const e=UV(),[t,n]=O.exports.useState(0),r=O.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[O.exports.useCallback(()=>sv.postRender(r),[r]),t]}var Kle="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class Zle extends O.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 Xle({children:e,isPresent:t}){const n=O.exports.useId(),r=O.exports.useRef(null),i=O.exports.useRef({width:0,height:0,top:0,left:0});return O.exports.useInsertionEffect(()=>{const{width:s,height:l,top:f,left:d}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${s}px !important;
height: ${l}px !important;
top: ${f}px !important;
left: ${d}px !important;
}
`),()=>{document.head.removeChild(m)}},[t]),_(Zle,{isPresent:t,childRef:r,sizeRef:i,children:O.exports.cloneElement(e,{ref:r})},void 0,!1,{fileName:Kle,lineNumber:68,columnNumber:13},this)}var Cz="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const m8=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:l})=>{const f=P9(Qle),d=O.exports.useId(),m=O.exports.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:b=>{f.set(b,!0);for(const S of f.values())if(!S)return;r&&r()},register:b=>(f.set(b,!1),()=>f.delete(b))}),s?void 0:[n]);return O.exports.useMemo(()=>{f.forEach((b,S)=>f.set(S,!1))},[n]),O.exports.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),l==="popLayout"&&(e=_(Xle,{isPresent:n,children:e},void 0,!1,{fileName:Cz,lineNumber:48,columnNumber:20},globalThis)),_(iC.Provider,{value:m,children:e},void 0,!1,{fileName:Cz,lineNumber:50,columnNumber:13},globalThis)};function Qle(){return new Map}var v8="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const d3=e=>e.key||"";function Jle(e,t){e.forEach(n=>{const r=d3(n);t.set(r,n)})}function eue(e){const t=[];return O.exports.Children.forEach(e,n=>{O.exports.isValidElement(n)&&t.push(n)}),t}const f0=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:l="sync"})=>{i&&(l="wait",HL(!1,"Replace exitBeforeEnter with mode='wait'"));let[f]=qle();const d=O.exports.useContext(_L).forceRender;d&&(f=d);const m=UV(),b=eue(e);let S=b;const N=new Set,w=O.exports.useRef(S),T=O.exports.useRef(new Map).current,L=O.exports.useRef(!0);if(A6(()=>{L.current=!1,Jle(b,T),w.current=S}),ML(()=>{L.current=!0,T.clear(),N.clear()}),L.current)return _(Ci,{children:S.map(z=>_(m8,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:l,children:z},d3(z),!1,{fileName:v8,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);S=[...S];const M=w.current.map(d3),B=b.map(d3),F=M.length;for(let z=0;z<F;z++){const H=M[z];B.indexOf(H)===-1&&N.add(H)}return l==="wait"&&N.size&&(S=[]),N.forEach(z=>{if(B.indexOf(z)!==-1)return;const H=T.get(z);if(!H)return;const G=M.indexOf(z),K=()=>{T.delete(z),N.delete(z);const Z=w.current.findIndex(ne=>ne.key===z);if(w.current.splice(Z,1),!N.size){if(w.current=b,m.current===!1)return;f(),r&&r()}};S.splice(G,0,_(m8,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:s,mode:l,children:H},d3(H),!1,{fileName:v8,lineNumber:143,columnNumber:52},globalThis))}),S=S.map(z=>{const H=z.key;return N.has(H)?z:_(m8,{isPresent:!0,presenceAffectsLayout:s,mode:l,children:z},d3(z),!1,{fileName:v8,lineNumber:149,columnNumber:46},globalThis)}),UL!=="production"&&l==="wait"&&S.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.`),_(Ci,{children:N.size?S:S.map(z=>O.exports.cloneElement(z))},void 0,!1)};var g_="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",b_=(...e)=>e.filter(Boolean).join(" ");function tue(){return!0}var nue=e=>{const{condition:t,message:n}=e;t&&tue()&&console.warn(n)},gS={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},TN={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 xA(e){switch(e?.direction??"right"){case"right":return TN.slideRight;case"left":return TN.slideLeft;case"bottom":return TN.slideDown;case"top":return TN.slideUp;default:return TN.slideRight}}var wS={enter:{duration:.2,ease:gS.easeOut},exit:{duration:.1,ease:gS.easeIn}},xp={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},rue=e=>e!=null&&parseInt(e.toString(),10)>0,Nz={exit:{height:{duration:.2,ease:gS.ease},opacity:{duration:.3,ease:gS.ease}},enter:{height:{duration:.3,ease:gS.ease},opacity:{duration:.4,ease:gS.ease}}},aue={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:rue(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??xp.exit(Nz.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??xp.enter(Nz.enter,i)})},HV=O.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:s=0,endingHeight:l="auto",style:f,className:d,transition:m,transitionEnd:b,...S}=e,[N,w]=O.exports.useState(!1);O.exports.useEffect(()=>{const F=setTimeout(()=>{w(!0)});return()=>clearTimeout(F)},[]),nue({condition:Boolean(s>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const T=parseFloat(s.toString())>0,L={startingHeight:s,endingHeight:l,animateOpacity:i,transition:N?m:{enter:{duration:0}},transitionEnd:{enter:b?.enter,exit:r?b?.exit:{...b?.exit,display:T?"block":"none"}}},M=r?n:!0,B=n||r?"enter":"exit";return _(f0,{initial:!1,custom:L,children:M&&ke.createElement(lh.div,{ref:t,...S,className:b_("chakra-collapse",d),style:{overflow:"hidden",display:"block",...f},custom:L,variants:aue,initial:r?"exit":!1,animate:B,exit:"exit"})},void 0,!1,{fileName:g_,lineNumber:190,columnNumber:26},globalThis)});HV.displayName="Collapse";var iue={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??xp.enter(wS.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??xp.exit(wS.exit,n),transitionEnd:t?.exit})},jV={initial:"exit",animate:"enter",exit:"exit",variants:iue},oue=O.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:s,transition:l,transitionEnd:f,delay:d,...m}=t,b=i||r?"enter":"exit",S=r?i&&r:!0,N={transition:l,transitionEnd:f,delay:d};return _(f0,{custom:N,children:S&&ke.createElement(lh.div,{ref:n,className:b_("chakra-fade",s),custom:N,...jV,animate:b,...m})},void 0,!1,{fileName:g_,lineNumber:248,columnNumber:26},this)});oue.displayName="Fade";var sue={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??xp.exit(wS.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??xp.enter(wS.enter,n),transitionEnd:e?.enter})},VV={initial:"exit",animate:"enter",exit:"exit",variants:sue},lue=O.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:s=!0,initialScale:l=.95,className:f,transition:d,transitionEnd:m,delay:b,...S}=t,N=r?i&&r:!0,w=i||r?"enter":"exit",T={initialScale:l,reverse:s,transition:d,transitionEnd:m,delay:b};return _(f0,{custom:T,children:N&&ke.createElement(lh.div,{ref:n,className:b_("chakra-offset-slide",f),...VV,animate:w,custom:T,...S})},void 0,!1,{fileName:g_,lineNumber:301,columnNumber:26},this)});lue.displayName="ScaleFade";var wz={exit:{duration:.15,ease:gS.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},uue={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=xA({direction:e});return{...i,transition:t?.exit??xp.exit(wz.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=xA({direction:e});return{...i,transition:n?.enter??xp.enter(wz.enter,r),transitionEnd:t?.enter}}},GV=O.exports.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:s,in:l,className:f,transition:d,transitionEnd:m,delay:b,...S}=t,N=xA({direction:r}),w=Object.assign({position:"fixed"},N.position,i),T=s?l&&s:!0,L=l||s?"enter":"exit",M={transitionEnd:m,transition:d,direction:r,delay:b};return _(f0,{custom:M,children:T&&ke.createElement(lh.div,{...S,ref:n,initial:"exit",className:b_("chakra-slide",f),animate:L,exit:"exit",custom:M,variants:uue,style:w})},void 0,!1,{fileName:g_,lineNumber:366,columnNumber:26},this)});GV.displayName="Slide";var cue={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:n?.exit??xp.exit(wS.exit,i),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??xp.enter(wS.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:s})=>{const l={x:t,y:e};return{opacity:0,transition:n?.exit??xp.exit(wS.exit,s),...i?{...l,transitionEnd:r?.exit}:{transitionEnd:{...l,...r?.exit}}}}},CA={initial:"initial",animate:"enter",exit:"exit",variants:cue},fue=O.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:s=!0,className:l,offsetX:f=0,offsetY:d=8,transition:m,transitionEnd:b,delay:S,...N}=t,w=r?i&&r:!0,T=i||r?"enter":"exit",L={offsetX:f,offsetY:d,reverse:s,transition:m,transitionEnd:b,delay:S};return _(f0,{custom:L,children:w&&ke.createElement(lh.div,{ref:n,className:b_("chakra-offset-slide",l),custom:L,...CA,animate:T,...N})},void 0,!1,{fileName:g_,lineNumber:441,columnNumber:26},this)});fue.displayName="SlideFade";var NA="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",y_=(...e)=>e.filter(Boolean).join(" ");function due(){return!0}var j9=e=>{const{condition:t,message:n}=e;t&&due()&&console.warn(n)};function g8(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[hue,V9]=Va({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[pue,XL]=Va({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[mue,Pke,vue,gue]=mj(),bS=Ct(function(t,n){const{getButtonProps:r}=XL(),i=r(t,n),s=V9(),l={display:"flex",alignItems:"center",width:"100%",outline:0,...s.button};return ke.createElement(nt.button,{...i,className:y_("chakra-accordion__button",t.className),__css:l})});bS.displayName="AccordionButton";function bue(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:s,...l}=e;xue(e),Cue(e);const f=vue(),[d,m]=O.exports.useState(-1);O.exports.useEffect(()=>()=>{m(-1)},[]);const[b,S]=O9({value:r,defaultValue(){return i?n??[]:n??-1},onChange:t});return{index:b,setIndex:S,htmlProps:l,getAccordionItemProps:w=>{let T=!1;return w!==null&&(T=Array.isArray(b)?b.includes(w):b===w),{isOpen:T,onChange:M=>{if(w!==null)if(i&&Array.isArray(b)){const B=M?b.concat(w):b.filter(F=>F!==w);S(B)}else M?S(w):s&&S(-1)}}},focusedIndex:d,setFocusedIndex:m,descendants:f}}var[yue,QL]=Va({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function Sue(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:s,setFocusedIndex:l}=QL(),f=O.exports.useRef(null),d=O.exports.useId(),m=r??d,b=`accordion-button-${m}`,S=`accordion-panel-${m}`;Nue(e);const{register:N,index:w,descendants:T}=gue({disabled:t&&!n}),{isOpen:L,onChange:M}=s(w===-1?null:w);wue({isOpen:L,isDisabled:t});const B=()=>{M?.(!0)},F=()=>{M?.(!1)},z=O.exports.useCallback(()=>{M?.(!L),l(w)},[w,l,L,M]),H=O.exports.useCallback(ne=>{const le={ArrowDown:()=>{const oe=T.nextEnabled(w);oe?.node.focus()},ArrowUp:()=>{const oe=T.prevEnabled(w);oe?.node.focus()},Home:()=>{const oe=T.firstEnabled();oe?.node.focus()},End:()=>{const oe=T.lastEnabled();oe?.node.focus()}}[ne.key];le&&(ne.preventDefault(),le(ne))},[T,w]),G=O.exports.useCallback(()=>{l(w)},[l,w]),K=O.exports.useCallback(function(ie={},le=null){return{...ie,type:"button",ref:xi(N,f,le),id:b,disabled:!!t,"aria-expanded":!!L,"aria-controls":S,onClick:g8(ie.onClick,z),onFocus:g8(ie.onFocus,G),onKeyDown:g8(ie.onKeyDown,H)}},[b,t,L,z,G,H,S,N]),Z=O.exports.useCallback(function(ie={},le=null){return{...ie,ref:le,role:"region",id:S,"aria-labelledby":b,hidden:!L}},[b,L,S]);return{isOpen:L,isDisabled:t,isFocusable:n,onOpen:B,onClose:F,getButtonProps:K,getPanelProps:Z,htmlProps:i}}function xue(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;j9({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function Cue(e){j9({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 Nue(e){j9({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 wue(e){j9({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function yS(e){const{isOpen:t,isDisabled:n}=XL(),{reduceMotion:r}=QL(),i=y_("chakra-accordion__icon",e.className),s=V9(),l={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return _(vj,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:l,...e,children:_("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:NA,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:NA,lineNumber:276,columnNumber:26},this)}yS.displayName="AccordionIcon";var SS=Ct(function(t,n){const{children:r,className:i}=t,{htmlProps:s,...l}=Sue(t),d={...V9().container,overflowAnchor:"none"},m=O.exports.useMemo(()=>l,[l]);return ke.createElement(pue,{value:m},ke.createElement(nt.div,{ref:n,...s,className:y_("chakra-accordion__item",i),__css:d},typeof r=="function"?r({isExpanded:!!l.isOpen,isDisabled:!!l.isDisabled}):r))});SS.displayName="AccordionItem";var xS=Ct(function(t,n){const{reduceMotion:r}=QL(),{getPanelProps:i,isOpen:s}=XL(),l=i(t,n),f=y_("chakra-accordion__panel",t.className),d=V9();r||delete l.hidden;const m=ke.createElement(nt.div,{...l,__css:d.panel,className:f});return r?m:_(HV,{in:s,children:m},void 0,!1,{fileName:NA,lineNumber:336,columnNumber:28},this)});xS.displayName="AccordionPanel";var G9=Ct(function({children:t,reduceMotion:n,...r},i){const s=hu("Accordion",r),l=Ia(r),{htmlProps:f,descendants:d,...m}=bue(l),b=O.exports.useMemo(()=>({...m,reduceMotion:!!n}),[m,n]);return ke.createElement(mue,{value:d},ke.createElement(yue,{value:b},ke.createElement(hue,{value:s},ke.createElement(nt.div,{ref:i,...f,className:y_("chakra-accordion",r.className),__css:s.root},t))))});G9.displayName="Accordion";var qE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/alert/node_modules/@chakra-ui/icon/dist/index.esm.js",_z={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:qE,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:qE,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:qE,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:qE,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},W9=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??_z.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??_z.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});W9.displayName="Icon";var _ue=(...e)=>e.filter(Boolean).join(" "),Eue=l_({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),lC=Ct((e,t)=>{const n=Ac("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:s="0.45s",emptyColor:l="transparent",className:f,...d}=Ia(e),m=_ue("chakra-spinner",f),b={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:l,borderLeftColor:l,animation:`${Eue} ${s} linear infinite`,...n};return ke.createElement(nt.div,{ref:t,__css:b,className:m,...d},r&&ke.createElement(nt.span,{srOnly:!0},r))});lC.displayName="Spinner";var AS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",Y9=(...e)=>e.filter(Boolean).join(" ");function Tue(e){return _(W9,{viewBox:"0 0 24 24",...e,children:_("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"},void 0,!1,{fileName:AS,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:AS,lineNumber:21,columnNumber:26},this)}function Rue(e){return _(W9,{viewBox:"0 0 24 24",...e,children:_("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"},void 0,!1,{fileName:AS,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:AS,lineNumber:30,columnNumber:26},this)}function Ez(e){return _(W9,{viewBox:"0 0 24 24",...e,children:_("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"},void 0,!1,{fileName:AS,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:AS,lineNumber:39,columnNumber:26},this)}var[kue,Aue]=Va({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Oue,JL]=Va({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),WV={info:{icon:Rue,colorScheme:"blue"},warning:{icon:Ez,colorScheme:"orange"},success:{icon:Tue,colorScheme:"green"},error:{icon:Ez,colorScheme:"red"},loading:{icon:lC,colorScheme:"blue"}};function Lue(e){return WV[e].colorScheme}function Mue(e){return WV[e].icon}var YV=Ct(function(t,n){const{status:r="info",addRole:i=!0,...s}=Ia(t),l=t.colorScheme??Lue(r),f=hu("Alert",{...t,colorScheme:l}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...f.container};return ke.createElement(kue,{value:{status:r}},ke.createElement(Oue,{value:f},ke.createElement(nt.div,{role:i?"alert":void 0,ref:n,...s,className:Y9("chakra-alert",t.className),__css:d})))});YV.displayName="Alert";var qV=Ct(function(t,n){const r=JL(),i={display:"inline",...r.description};return ke.createElement(nt.div,{ref:n,...t,className:Y9("chakra-alert__desc",t.className),__css:i})});qV.displayName="AlertDescription";function KV(e){const{status:t}=Aue(),n=Mue(t),r=JL(),i=t==="loading"?r.spinner:r.icon;return ke.createElement(nt.span,{display:"inherit",...e,className:Y9("chakra-alert__icon",e.className),__css:i},e.children||_(n,{h:"100%",w:"100%"},void 0,!1,{fileName:AS,lineNumber:133,columnNumber:40},this))}KV.displayName="AlertIcon";var ZV=Ct(function(t,n){const r=JL();return ke.createElement(nt.div,{ref:n,...t,className:Y9("chakra-alert__title",t.className),__css:r.title})});ZV.displayName="AlertTitle";var Due="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function Pue(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Iue(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:s,crossOrigin:l,sizes:f,ignoreFallback:d}=e,[m,b]=O.exports.useState("pending");O.exports.useEffect(()=>{b(n?"loading":"pending")},[n]);const S=O.exports.useRef(),N=O.exports.useCallback(()=>{if(!n)return;w();const T=new Image;T.src=n,l&&(T.crossOrigin=l),r&&(T.srcset=r),f&&(T.sizes=f),t&&(T.loading=t),T.onload=L=>{w(),b("loaded"),i?.(L)},T.onerror=L=>{w(),b("failed"),s?.(L)},S.current=T},[n,l,r,f,i,s,t]),w=()=>{S.current&&(S.current.onload=null,S.current.onerror=null,S.current=null)};return av(()=>{if(!d)return m==="loading"&&N(),()=>{w()}},[m,N,d]),d?"loaded":m}var Fue=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",U6=Ct(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:s,...l}=t;return _("img",{width:r,height:i,ref:n,alt:s,...l},void 0,!1,{fileName:Due,lineNumber:90,columnNumber:26},this)});U6.displayName="NativeImage";var q9=Ct(function(t,n){const{fallbackSrc:r,fallback:i,src:s,srcSet:l,align:f,fit:d,loading:m,ignoreFallback:b,crossOrigin:S,fallbackStrategy:N="beforeLoadOrError",referrerPolicy:w,...T}=t,L=r!==void 0||i!==void 0,M=m!=null||b||!L,B=Iue({...t,ignoreFallback:M}),F=Fue(B,N),z={ref:n,objectFit:d,objectPosition:f,...M?T:Pue(T,["onError","onLoad"])};return F?i||ke.createElement(nt.img,{as:U6,className:"chakra-image__placeholder",src:r,...z}):ke.createElement(nt.img,{as:U6,src:s,srcSet:l,crossOrigin:S,loading:m,referrerPolicy:w,className:"chakra-image",...z})});q9.displayName="Image";Ct((e,t)=>ke.createElement(nt.img,{ref:t,as:U6,className:"chakra-image",...e}));var zue=Object.create,XV=Object.defineProperty,Bue=Object.getOwnPropertyDescriptor,QV=Object.getOwnPropertyNames,$ue=Object.getPrototypeOf,Uue=Object.prototype.hasOwnProperty,JV=(e,t)=>function(){return t||(0,e[QV(e)[0]])((t={exports:{}}).exports,t),t.exports},Hue=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of QV(t))!Uue.call(e,i)&&i!==n&&XV(e,i,{get:()=>t[i],enumerable:!(r=Bue(t,i))||r.enumerable});return e},jue=(e,t,n)=>(n=e!=null?zue($ue(e)):{},Hue(t||!e||!e.__esModule?XV(n,"default",{value:e,enumerable:!0}):n,e)),Vue=JV({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),M=Symbol.iterator,B="@@iterator";function F(k){if(k===null||typeof k!="object")return null;var j=M&&k[M]||k[B];return typeof j=="function"?j:null}var z={current:null},H={transition:null},G={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},Z={},ne=null;function ie(k){ne=k}Z.setExtraStackFrame=function(k){ne=k},Z.getCurrentStack=null,Z.getStackAddendum=function(){var k="";ne&&(k+=ne);var j=Z.getCurrentStack;return j&&(k+=j()||""),k};var le=!1,oe=!1,Ae=!1,de=!1,Se=!1,Me={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:H,ReactCurrentOwner:K};Me.ReactDebugCurrentFrame=Z,Me.ReactCurrentActQueue=G;function _e(k){{for(var j=arguments.length,ae=new Array(j>1?j-1:0),ce=1;ce<j;ce++)ae[ce-1]=arguments[ce];he("warn",k,ae)}}function J(k){{for(var j=arguments.length,ae=new Array(j>1?j-1:0),ce=1;ce<j;ce++)ae[ce-1]=arguments[ce];he("error",k,ae)}}function he(k,j,ae){{var ce=Me.ReactDebugCurrentFrame,Ne=ce.getStackAddendum();Ne!==""&&(j+="%s",ae=ae.concat([Ne]));var mt=ae.map(function(Ze){return String(Ze)});mt.unshift("Warning: "+j),Function.prototype.apply.call(console[k],console,mt)}}var ve={};function ye(k,j){{var ae=k.constructor,ce=ae&&(ae.displayName||ae.name)||"ReactClass",Ne=ce+"."+j;if(ve[Ne])return;J("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",j,ce),ve[Ne]=!0}}var xe={isMounted:function(k){return!1},enqueueForceUpdate:function(k,j,ae){ye(k,"forceUpdate")},enqueueReplaceState:function(k,j,ae,ce){ye(k,"replaceState")},enqueueSetState:function(k,j,ae,ce){ye(k,"setState")}},Ve=Object.assign,Pe={};Object.freeze(Pe);function Qe(k,j,ae){this.props=k,this.context=j,this.refs=Pe,this.updater=ae||xe}Qe.prototype.isReactComponent={},Qe.prototype.setState=function(k,j){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,j,"setState")},Qe.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};{var wt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ot=function(k,j){Object.defineProperty(Qe.prototype,k,{get:function(){_e("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var Ut in wt)wt.hasOwnProperty(Ut)&&Ot(Ut,wt[Ut])}function ut(){}ut.prototype=Qe.prototype;function It(k,j,ae){this.props=k,this.context=j,this.refs=Pe,this.updater=ae||xe}var Qt=It.prototype=new ut;Qt.constructor=It,Ve(Qt,Qe.prototype),Qt.isPureReactComponent=!0;function pn(){var k={current:null};return Object.seal(k),k}var ht=Array.isArray;function gn(k){return ht(k)}function De(k){{var j=typeof Symbol=="function"&&Symbol.toStringTag,ae=j&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ae}}function kt(k){try{return Zt(k),!1}catch{return!0}}function Zt(k){return""+k}function Pt(k){if(kt(k))return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",De(k)),Zt(k)}function un(k,j,ae){var ce=k.displayName;if(ce)return ce;var Ne=j.displayName||j.name||"";return Ne!==""?ae+"("+Ne+")":ae}function fr(k){return k.displayName||"Context"}function an(k){if(k==null)return null;if(typeof k.tag=="number"&&J("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case s:return"Fragment";case i:return"Portal";case f:return"Profiler";case l:return"StrictMode";case S:return"Suspense";case N:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case m:var j=k;return fr(j)+".Consumer";case d:var ae=k;return fr(ae._context)+".Provider";case b:return un(k,k.render,"ForwardRef");case w:var ce=k.displayName||null;return ce!==null?ce:an(k.type)||"Memo";case T:{var Ne=k,mt=Ne._payload,Ze=Ne._init;try{return an(Ze(mt))}catch{return null}}}return null}var Rn=Object.prototype.hasOwnProperty,wn={key:!0,ref:!0,__self:!0,__source:!0},Ln,St,Ft;Ft={};function er(k){if(Rn.call(k,"ref")){var j=Object.getOwnPropertyDescriptor(k,"ref").get;if(j&&j.isReactWarning)return!1}return k.ref!==void 0}function En(k){if(Rn.call(k,"key")){var j=Object.getOwnPropertyDescriptor(k,"key").get;if(j&&j.isReactWarning)return!1}return k.key!==void 0}function Je(k,j){var ae=function(){Ln||(Ln=!0,J("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};ae.isReactWarning=!0,Object.defineProperty(k,"key",{get:ae,configurable:!0})}function Mn(k,j){var ae=function(){St||(St=!0,J("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};ae.isReactWarning=!0,Object.defineProperty(k,"ref",{get:ae,configurable:!0})}function br(k){if(typeof k.ref=="string"&&K.current&&k.__self&&K.current.stateNode!==k.__self){var j=an(K.current.type);Ft[j]||(J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j,k.ref),Ft[j]=!0)}}var pt=function(k,j,ae,ce,Ne,mt,Ze){var Tt={$$typeof:r,type:k,key:j,ref:ae,props:Ze,_owner:mt};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function Xe(k,j,ae){var ce,Ne={},mt=null,Ze=null,Tt=null,Xt=null;if(j!=null){er(j)&&(Ze=j.ref,br(j)),En(j)&&(Pt(j.key),mt=""+j.key),Tt=j.__self===void 0?null:j.__self,Xt=j.__source===void 0?null:j.__source;for(ce in j)Rn.call(j,ce)&&!wn.hasOwnProperty(ce)&&(Ne[ce]=j[ce])}var xn=arguments.length-2;if(xn===1)Ne.children=ae;else if(xn>1){for(var Hn=Array(xn),mn=0;mn<xn;mn++)Hn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(Hn),Ne.children=Hn}if(k&&k.defaultProps){var Gn=k.defaultProps;for(ce in Gn)Ne[ce]===void 0&&(Ne[ce]=Gn[ce])}if(mt||Ze){var In=typeof k=="function"?k.displayName||k.name||"Unknown":k;mt&&Je(Ne,In),Ze&&Mn(Ne,In)}return pt(k,mt,Ze,Tt,Xt,K.current,Ne)}function Bt(k,j){var ae=pt(k.type,j,k.ref,k._self,k._source,k._owner,k.props);return ae}function We(k,j,ae){if(k==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ce,Ne=Ve({},k.props),mt=k.key,Ze=k.ref,Tt=k._self,Xt=k._source,xn=k._owner;if(j!=null){er(j)&&(Ze=j.ref,xn=K.current),En(j)&&(Pt(j.key),mt=""+j.key);var Hn;k.type&&k.type.defaultProps&&(Hn=k.type.defaultProps);for(ce in j)Rn.call(j,ce)&&!wn.hasOwnProperty(ce)&&(j[ce]===void 0&&Hn!==void 0?Ne[ce]=Hn[ce]:Ne[ce]=j[ce])}var mn=arguments.length-2;if(mn===1)Ne.children=ae;else if(mn>1){for(var Gn=Array(mn),In=0;In<mn;In++)Gn[In]=arguments[In+2];Ne.children=Gn}return pt(k.type,mt,Ze,Tt,Xt,xn,Ne)}function Lt(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}var Rt=".",gt=":";function _t(k){var j=/[=:]/g,ae={"=":"=0",":":"=2"},ce=k.replace(j,function(Ne){return ae[Ne]});return"$"+ce}var kn=!1,Un=/\/+/g;function Gt(k){return k.replace(Un,"$&/")}function rr(k,j){return typeof k=="object"&&k!==null&&k.key!=null?(Pt(k.key),_t(""+k.key)):j.toString(36)}function di(k,j,ae,ce,Ne){var mt=typeof k;(mt==="undefined"||mt==="boolean")&&(k=null);var Ze=!1;if(k===null)Ze=!0;else switch(mt){case"string":case"number":Ze=!0;break;case"object":switch(k.$$typeof){case r:case i:Ze=!0}}if(Ze){var Tt=k,Xt=Ne(Tt),xn=ce===""?Rt+rr(Tt,0):ce;if(gn(Xt)){var Hn="";xn!=null&&(Hn=Gt(xn)+"/"),di(Xt,j,Hn,"",function(Sv){return Sv})}else Xt!=null&&(Lt(Xt)&&(Xt.key&&(!Tt||Tt.key!==Xt.key)&&Pt(Xt.key),Xt=Bt(Xt,ae+(Xt.key&&(!Tt||Tt.key!==Xt.key)?Gt(""+Xt.key)+"/":"")+xn)),j.push(Xt));return 1}var mn,Gn,In=0,Qn=ce===""?Rt:ce+gt;if(gn(k))for(var al=0;al<k.length;al++)mn=k[al],Gn=Qn+rr(mn,al),In+=di(mn,j,ae,Gn,Ne);else{var ns=F(k);if(typeof ns=="function"){var qu=k;ns===qu.entries&&(kn||_e("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kn=!0);for(var fh=ns.call(qu),Ur,il=0;!(Ur=fh.next()).done;)mn=Ur.value,Gn=Qn+rr(mn,il++),In+=di(mn,j,ae,Gn,Ne)}else if(mt==="object"){var Oc=String(k);throw new Error("Objects are not valid as a React child (found: "+(Oc==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Oc)+"). If you meant to render a collection of children, use an array instead.")}}return In}function Yr(k,j,ae){if(k==null)return k;var ce=[],Ne=0;return di(k,ce,"","",function(mt){return j.call(ae,mt,Ne++)}),ce}function pr(k){var j=0;return Yr(k,function(){j++}),j}function Wi(k,j,ae){Yr(k,function(){j.apply(this,arguments)},ae)}function lo(k){return Yr(k,function(j){return j})||[]}function uo(k){if(!Lt(k))throw new Error("React.Children.only expected to receive a single React element child.");return k}function hi(k){var j={$$typeof:m,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};j.Provider={$$typeof:d,_context:j};var ae=!1,ce=!1,Ne=!1;{var mt={$$typeof:m,_context:j};Object.defineProperties(mt,{Provider:{get:function(){return ce||(ce=!0,J("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),j.Provider},set:function(Ze){j.Provider=Ze}},_currentValue:{get:function(){return j._currentValue},set:function(Ze){j._currentValue=Ze}},_currentValue2:{get:function(){return j._currentValue2},set:function(Ze){j._currentValue2=Ze}},_threadCount:{get:function(){return j._threadCount},set:function(Ze){j._threadCount=Ze}},Consumer:{get:function(){return ae||(ae=!0,J("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),j.Consumer}},displayName:{get:function(){return j.displayName},set:function(Ze){Ne||(_e("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ze),Ne=!0)}}}),j.Consumer=mt}return j._currentRenderer=null,j._currentRenderer2=null,j}var yr=-1,ti=0,Mo=1,Do=2;function ge(k){if(k._status===yr){var j=k._result,ae=j();if(ae.then(function(mt){if(k._status===ti||k._status===yr){var Ze=k;Ze._status=Mo,Ze._result=mt}},function(mt){if(k._status===ti||k._status===yr){var Ze=k;Ze._status=Do,Ze._result=mt}}),k._status===yr){var ce=k;ce._status=ti,ce._result=ae}}if(k._status===Mo){var Ne=k._result;return Ne===void 0&&J(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,Ne),"default"in Ne||J(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,Ne),Ne.default}else throw k._result}function dt(k){var j={_status:yr,_result:k},ae={$$typeof:T,_payload:j,_init:ge};{var ce,Ne;Object.defineProperties(ae,{defaultProps:{configurable:!0,get:function(){return ce},set:function(mt){J("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ce=mt,Object.defineProperty(ae,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ne},set:function(mt){J("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ne=mt,Object.defineProperty(ae,"propTypes",{enumerable:!0})}}})}return ae}function xt(k){k!=null&&k.$$typeof===w?J("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof k!="function"?J("forwardRef requires a render function but was given %s.",k===null?"null":typeof k):k.length!==0&&k.length!==2&&J("forwardRef render functions accept exactly two parameters: props and ref. %s",k.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),k!=null&&(k.defaultProps!=null||k.propTypes!=null)&&J("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var j={$$typeof:b,render:k};{var ae;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return ae},set:function(ce){ae=ce,!k.name&&!k.displayName&&(k.displayName=ce)}})}return j}var bn;bn=Symbol.for("react.module.reference");function dr(k){return!!(typeof k=="string"||typeof k=="function"||k===s||k===f||Se||k===l||k===S||k===N||de||k===L||le||oe||Ae||typeof k=="object"&&k!==null&&(k.$$typeof===T||k.$$typeof===w||k.$$typeof===d||k.$$typeof===m||k.$$typeof===b||k.$$typeof===bn||k.getModuleId!==void 0))}function _r(k,j){dr(k)||J("memo: The first argument must be a component. Instead received: %s",k===null?"null":typeof k);var ae={$$typeof:w,type:k,compare:j===void 0?null:j};{var ce;Object.defineProperty(ae,"displayName",{enumerable:!1,configurable:!0,get:function(){return ce},set:function(Ne){ce=Ne,!k.name&&!k.displayName&&(k.displayName=Ne)}})}return ae}function Ht(){var k=z.current;return k===null&&J(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),k}function Kn(k){var j=Ht();if(k._context!==void 0){var ae=k._context;ae.Consumer===k?J("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):ae.Provider===k&&J("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return j.useContext(k)}function sr(k){var j=Ht();return j.useState(k)}function kr(k,j,ae){var ce=Ht();return ce.useReducer(k,j,ae)}function hr(k){var j=Ht();return j.useRef(k)}function Fa(k,j){var ae=Ht();return ae.useEffect(k,j)}function Yi(k,j){var ae=Ht();return ae.useInsertionEffect(k,j)}function Po(k,j){var ae=Ht();return ae.useLayoutEffect(k,j)}function Ra(k,j){var ae=Ht();return ae.useCallback(k,j)}function gs(k,j){var ae=Ht();return ae.useMemo(k,j)}function pu(k,j,ae){var ce=Ht();return ce.useImperativeHandle(k,j,ae)}function co(k,j){{var ae=Ht();return ae.useDebugValue(k,j)}}function Rl(){var k=Ht();return k.useTransition()}function bs(k){var j=Ht();return j.useDeferredValue(k)}function Zn(){var k=Ht();return k.useId()}function Io(k,j,ae){var ce=Ht();return ce.useSyncExternalStore(k,j,ae)}var qi=0,kl,Al,nl,ni,rl,Ol,Ll;function mu(){}mu.__reactDisabledLog=!0;function ju(){{if(qi===0){kl=console.log,Al=console.info,nl=console.warn,ni=console.error,rl=console.group,Ol=console.groupCollapsed,Ll=console.groupEnd;var k={configurable:!0,enumerable:!0,value:mu,writable:!0};Object.defineProperties(console,{info:k,log:k,warn:k,error:k,group:k,groupCollapsed:k,groupEnd:k})}qi++}}function Vu(){{if(qi--,qi===0){var k={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ve({},k,{value:kl}),info:Ve({},k,{value:Al}),warn:Ve({},k,{value:nl}),error:Ve({},k,{value:ni}),group:Ve({},k,{value:rl}),groupCollapsed:Ve({},k,{value:Ol}),groupEnd:Ve({},k,{value:Ll})})}qi<0&&J("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fo=Me.ReactCurrentDispatcher,ri;function fo(k,j,ae){{if(ri===void 0)try{throw Error()}catch(Ne){var ce=Ne.stack.trim().match(/\n( *(at )?)/);ri=ce&&ce[1]||""}return`
`+ri+k}}var ai=!1,Di;{var Ml=typeof WeakMap=="function"?WeakMap:Map;Di=new Ml}function Dl(k,j){if(!k||ai)return"";{var ae=Di.get(k);if(ae!==void 0)return ae}var ce;ai=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var mt;mt=Fo.current,Fo.current=null,ju();try{if(j){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(Qn){ce=Qn}Reflect.construct(k,[],Ze)}else{try{Ze.call()}catch(Qn){ce=Qn}k.call(Ze.prototype)}}else{try{throw Error()}catch(Qn){ce=Qn}k()}}catch(Qn){if(Qn&&ce&&typeof Qn.stack=="string"){for(var Tt=Qn.stack.split(`
`),Xt=ce.stack.split(`
`),xn=Tt.length-1,Hn=Xt.length-1;xn>=1&&Hn>=0&&Tt[xn]!==Xt[Hn];)Hn--;for(;xn>=1&&Hn>=0;xn--,Hn--)if(Tt[xn]!==Xt[Hn]){if(xn!==1||Hn!==1)do if(xn--,Hn--,Hn<0||Tt[xn]!==Xt[Hn]){var mn=`
`+Tt[xn].replace(" at new "," at ");return k.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",k.displayName)),typeof k=="function"&&Di.set(k,mn),mn}while(xn>=1&&Hn>=0);break}}}finally{ai=!1,Fo.current=mt,Vu(),Error.prepareStackTrace=Ne}var Gn=k?k.displayName||k.name:"",In=Gn?fo(Gn):"";return typeof k=="function"&&Di.set(k,In),In}function Ms(k,j,ae){return Dl(k,!1)}function Pl(k){var j=k.prototype;return!!(j&&j.isReactComponent)}function ho(k,j,ae){if(k==null)return"";if(typeof k=="function")return Dl(k,Pl(k));if(typeof k=="string")return fo(k);switch(k){case S:return fo("Suspense");case N:return fo("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case b:return Ms(k.render);case w:return ho(k.type,j,ae);case T:{var ce=k,Ne=ce._payload,mt=ce._init;try{return ho(mt(Ne),j,ae)}catch{}}}return""}var Wa={},wi=Me.ReactDebugCurrentFrame;function ka(k){if(k){var j=k._owner,ae=ho(k.type,k._source,j?j.type:null);wi.setExtraStackFrame(ae)}else wi.setExtraStackFrame(null)}function Gu(k,j,ae,ce,Ne){{var mt=Function.call.bind(Rn);for(var Ze in k)if(mt(k,Ze)){var Tt=void 0;try{if(typeof k[Ze]!="function"){var Xt=Error((ce||"React class")+": "+ae+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof k[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Tt=k[Ze](j,Ze,ce,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xn){Tt=xn}Tt&&!(Tt instanceof Error)&&(ka(Ne),J("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ce||"React class",ae,Ze,typeof Tt),ka(null)),Tt instanceof Error&&!(Tt.message in Wa)&&(Wa[Tt.message]=!0,ka(Ne),J("Failed %s type: %s",ae,Tt.message),ka(null))}}}function gr(k){if(k){var j=k._owner,ae=ho(k.type,k._source,j?j.type:null);ie(ae)}else ie(null)}var zo;zo=!1;function Il(){if(K.current){var k=an(K.current.type);if(k)return`
Check the render method of \``+k+"`."}return""}function Xn(k){if(k!==void 0){var j=k.fileName.replace(/^.*[\\\/]/,""),ae=k.lineNumber;return`
Check your code at `+j+":"+ae+"."}return""}function Wu(k){return k!=null?Xn(k.__source):""}var qr={};function ts(k){var j=Il();if(!j){var ae=typeof k=="string"?k:k.displayName||k.name;ae&&(j=`
Check the top-level render call using <`+ae+">.")}return j}function po(k,j){if(!(!k._store||k._store.validated||k.key!=null)){k._store.validated=!0;var ae=ts(j);if(!qr[ae]){qr[ae]=!0;var ce="";k&&k._owner&&k._owner!==K.current&&(ce=" It was passed a child from "+an(k._owner.type)+"."),gr(k),J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,ce),gr(null)}}}function ys(k,j){if(typeof k=="object"){if(gn(k))for(var ae=0;ae<k.length;ae++){var ce=k[ae];Lt(ce)&&po(ce,j)}else if(Lt(k))k._store&&(k._store.validated=!0);else if(k){var Ne=F(k);if(typeof Ne=="function"&&Ne!==k.entries)for(var mt=Ne.call(k),Ze;!(Ze=mt.next()).done;)Lt(Ze.value)&&po(Ze.value,j)}}}function ga(k){{var j=k.type;if(j==null||typeof j=="string")return;var ae;if(typeof j=="function")ae=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===b||j.$$typeof===w))ae=j.propTypes;else return;if(ae){var ce=an(j);Gu(ae,k.props,"prop",ce,k)}else if(j.PropTypes!==void 0&&!zo){zo=!0;var Ne=an(j);J("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&J("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oa(k){{for(var j=Object.keys(k.props),ae=0;ae<j.length;ae++){var ce=j[ae];if(ce!=="children"&&ce!=="key"){gr(k),J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),gr(null);break}}k.ref!==null&&(gr(k),J("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function Ds(k,j,ae){var ce=dr(k);if(!ce){var Ne="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(Ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=Wu(j);mt?Ne+=mt:Ne+=Il();var Ze;k===null?Ze="null":gn(k)?Ze="array":k!==void 0&&k.$$typeof===r?(Ze="<"+(an(k.type)||"Unknown")+" />",Ne=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof k,J("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ne)}var Tt=Xe.apply(this,arguments);if(Tt==null)return Tt;if(ce)for(var Xt=2;Xt<arguments.length;Xt++)ys(arguments[Xt],k);return k===s?oa(Tt):ga(Tt),Tt}var _i=!1;function Kr(k){var j=Ds.bind(null,k);return j.type=k,_i||(_i=!0,_e("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(j,"type",{enumerable:!1,get:function(){return _e("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:k}),k}}),j}function ii(k,j,ae){for(var ce=We.apply(this,arguments),Ne=2;Ne<arguments.length;Ne++)ys(arguments[Ne],ce.type);return ga(ce),ce}function yf(k,j){var ae=H.transition;H.transition={};var ce=H.transition;H.transition._updatedFibers=new Set;try{k()}finally{if(H.transition=ae,ae===null&&ce._updatedFibers){var Ne=ce._updatedFibers.size;Ne>10&&_e("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),ce._updatedFibers.clear()}}}var Ps=!1,Ss=null;function vu(k){if(Ss===null)try{var j=("require"+Math.random()).slice(0,7),ae=t&&t[j];Ss=ae.call(t,"timers").setImmediate}catch{Ss=function(Ne){Ps===!1&&(Ps=!0,typeof MessageChannel>"u"&&J("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var mt=new MessageChannel;mt.port1.onmessage=Ne,mt.port2.postMessage(void 0)}}return Ss(k)}var Sr=0,Br=!1;function Yu(k){{var j=Sr;Sr++,G.current===null&&(G.current=[]);var ae=G.isBatchingLegacy,ce;try{if(G.isBatchingLegacy=!0,ce=k(),!ae&&G.didScheduleLegacyUpdate){var Ne=G.current;Ne!==null&&(G.didScheduleLegacyUpdate=!1,se(Ne))}}catch(Gn){throw mo(j),Gn}finally{G.isBatchingLegacy=ae}if(ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var mt=ce,Ze=!1,Tt={then:function(Gn,In){Ze=!0,mt.then(function(Qn){mo(j),Sr===0?$(Qn,Gn,In):Gn(Qn)},function(Qn){mo(j),In(Qn)})}};return!Br&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ze||(Br=!0,J("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Tt}else{var Xt=ce;if(mo(j),Sr===0){var xn=G.current;xn!==null&&(se(xn),G.current=null);var Hn={then:function(Gn,In){G.current===null?(G.current=[],$(Xt,Gn,In)):Gn(Xt)}};return Hn}else{var mn={then:function(Gn,In){Gn(Xt)}};return mn}}}}function mo(k){k!==Sr-1&&J("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Sr=k}function $(k,j,ae){{var ce=G.current;if(ce!==null)try{se(ce),vu(function(){ce.length===0?(G.current=null,j(k)):$(k,j,ae)})}catch(Ne){ae(Ne)}else j(k)}}var X=!1;function se(k){if(!X){X=!0;var j=0;try{for(;j<k.length;j++){var ae=k[j];do ae=ae(!0);while(ae!==null)}k.length=0}catch(ce){throw k=k.slice(j+1),ce}finally{X=!1}}}var qe=Ds,Kt=ii,yn=Kr,Jt={map:Yr,forEach:Wi,count:pr,toArray:lo,only:uo};e.Children=Jt,e.Component=Qe,e.Fragment=s,e.Profiler=f,e.PureComponent=It,e.StrictMode=l,e.Suspense=S,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Me,e.cloneElement=Kt,e.createContext=hi,e.createElement=qe,e.createFactory=yn,e.createRef=pn,e.forwardRef=xt,e.isValidElement=Lt,e.lazy=dt,e.memo=_r,e.startTransition=yf,e.unstable_act=Yu,e.useCallback=Ra,e.useContext=Kn,e.useDebugValue=co,e.useDeferredValue=bs,e.useEffect=Fa,e.useId=Zn,e.useImperativeHandle=pu,e.useInsertionEffect=Yi,e.useLayoutEffect=Po,e.useMemo=gs,e.useReducer=kr,e.useRef=hr,e.useState=sr,e.useSyncExternalStore=Io,e.useTransition=Rl,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),Gue=JV({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=Vue()}}),Tz=jue(Gue());function K9(e){return Tz.Children.toArray(e).filter(t=>(0,Tz.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 _b="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",Z9=(...e)=>e.filter(Boolean).join(" "),Rz=e=>e?"":void 0,[Wue,Yue]=Va({strict:!1,name:"ButtonGroupContext"});function wA(e){const{children:t,className:n,...r}=e,i=O.exports.isValidElement(t)?O.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=Z9("chakra-button__icon",n);return ke.createElement(nt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:s},i)}wA.displayName="ButtonIcon";function _A(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=_(lC,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:_b,lineNumber:56,columnNumber:32},this),className:s,__css:l,...f}=e,d=Z9("chakra-button__spinner",s),m=n==="start"?"marginEnd":"marginStart",b=O.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?r:0,fontSize:"1em",lineHeight:"normal",...l}),[l,t,m,r]);return ke.createElement(nt.div,{className:d,...f,__css:b},i)}_A.displayName="ButtonSpinner";function que(e){const[t,n]=O.exports.useState(!e);return{ref:O.exports.useCallback(s=>{!s||n(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}var nh=Ct((e,t)=>{const n=Yue(),r=Ac("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:s,isActive:l,children:f,leftIcon:d,rightIcon:m,loadingText:b,iconSpacing:S="0.5rem",type:N,spinner:w,spinnerPlacement:T="start",className:L,as:M,...B}=Ia(e),F=O.exports.useMemo(()=>{const K={...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:K}}},[r,n]),{ref:z,type:H}=que(M),G={rightIcon:m,leftIcon:d,iconSpacing:S,children:f};return ke.createElement(nt.button,{disabled:i||s,ref:oae(t,z),as:M,type:N??H,"data-active":Rz(l),"data-loading":Rz(s),__css:F,className:Z9("chakra-button",L),...B},s&&T==="start"&&_(_A,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:S,children:w},void 0,!1,{fileName:_b,lineNumber:145,columnNumber:67},globalThis),s?b||ke.createElement(nt.span,{opacity:0},_(kz,{...G},void 0,!1,{fileName:_b,lineNumber:152,columnNumber:22},globalThis)):_(kz,{...G},void 0,!1,{fileName:_b,lineNumber:154,columnNumber:25},globalThis),s&&T==="end"&&_(_A,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:S,children:w},void 0,!1,{fileName:_b,lineNumber:156,columnNumber:66},globalThis))});nh.displayName="Button";function kz(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return _(Ci,{children:[t&&_(wA,{marginEnd:i,children:t},void 0,!1,{fileName:_b,lineNumber:166,columnNumber:96},this),r,n&&_(wA,{marginStart:i,children:n},void 0,!1,{fileName:_b,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var eG=Ct(function(t,n){const{size:r,colorScheme:i,variant:s,className:l,spacing:f="0.5rem",isAttached:d,isDisabled:m,...b}=t,S=Z9("chakra-button__group",l),N=O.exports.useMemo(()=>({size:r,colorScheme:i,variant:s,isDisabled:m}),[r,i,s,m]);let w={display:"inline-flex"};return d?w={...w,"> *: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}}:w={...w,"& > *:not(style) ~ *:not(style)":{marginStart:f}},ke.createElement(Wue,{value:N},ke.createElement(nt.div,{ref:n,role:"group",__css:w,className:S,"data-attached":d?"":void 0,...b}))});eG.displayName="ButtonGroup";var Uu=Ct((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":s,...l}=e,f=n||r,d=O.exports.isValidElement(f)?O.exports.cloneElement(f,{"aria-hidden":!0,focusable:!1}):null;return _(nh,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":s,...l,children:d},void 0,!1,{fileName:_b,lineNumber:231,columnNumber:26},globalThis)});Uu.displayName="IconButton";var KE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/node_modules/@chakra-ui/icon/dist/index.esm.js",Az={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:KE,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:KE,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:KE,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:KE,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},tG=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??Az.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??Az.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});tG.displayName="Icon";var EA="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",uC=(...e)=>e.filter(Boolean).join(" "),ZE=e=>e?"":void 0,b8=e=>e?!0:void 0;function Oz(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Kue,nG]=Va({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Zue,cC]=Va({strict:!1,name:"FormControlContext"});function Xue(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:s,...l}=e,f=O.exports.useId(),d=t||`field-${f}`,m=`${d}-label`,b=`${d}-feedback`,S=`${d}-helptext`,[N,w]=O.exports.useState(!1),[T,L]=O.exports.useState(!1),[M,B]=O.exports.useState(!1),F=O.exports.useCallback((Z={},ne=null)=>({id:S,...Z,ref:xi(ne,ie=>{!ie||L(!0)})}),[S]),z=O.exports.useCallback((Z={},ne=null)=>({...Z,ref:ne,"data-focus":ZE(M),"data-disabled":ZE(i),"data-invalid":ZE(r),"data-readonly":ZE(s),id:Z.id??m,htmlFor:Z.htmlFor??d}),[d,i,M,r,s,m]),H=O.exports.useCallback((Z={},ne=null)=>({id:b,...Z,ref:xi(ne,ie=>{!ie||w(!0)}),"aria-live":"polite"}),[b]),G=O.exports.useCallback((Z={},ne=null)=>({...Z,...l,ref:ne,role:"group"}),[l]),K=O.exports.useCallback((Z={},ne=null)=>({...Z,ref:ne,role:"presentation","aria-hidden":!0,children:Z.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!s,isDisabled:!!i,isFocused:!!M,onFocus:()=>B(!0),onBlur:()=>B(!1),hasFeedbackText:N,setHasFeedbackText:w,hasHelpText:T,setHasHelpText:L,id:d,labelId:m,feedbackId:b,helpTextId:S,htmlProps:l,getHelpTextProps:F,getErrorMessageProps:H,getRootProps:G,getLabelProps:z,getRequiredIndicatorProps:K}}var zb=Ct(function(t,n){const r=hu("Form",t),i=Ia(t),{getRootProps:s,htmlProps:l,...f}=Xue(i),d=uC("chakra-form-control",t.className);return ke.createElement(Zue,{value:f},ke.createElement(Kue,{value:r},ke.createElement(nt.div,{...s({},n),className:d,__css:r.container})))});zb.displayName="FormControl";var Que=Ct(function(t,n){const r=cC(),i=nG(),s=uC("chakra-form__helper-text",t.className);return ke.createElement(nt.div,{...r?.getHelpTextProps(t,n),__css:i.helperText,className:s})});Que.displayName="FormHelperText";function eM(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...s}=tM(e);return{...s,disabled:t,readOnly:r,required:i,"aria-invalid":b8(n),"aria-required":b8(i),"aria-readonly":b8(r)}}function tM(e){const t=cC(),{id:n,disabled:r,readOnly:i,required:s,isRequired:l,isInvalid:f,isReadOnly:d,isDisabled:m,onFocus:b,onBlur:S,...N}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&w.push(t.feedbackId),t?.hasHelpText&&w.push(t.helpTextId),{...N,"aria-describedby":w.join(" ")||void 0,id:n??t?.id,isDisabled:r??m??t?.isDisabled,isReadOnly:i??d??t?.isReadOnly,isRequired:s??l??t?.isRequired,isInvalid:f??t?.isInvalid,onFocus:Oz(t?.onFocus,b),onBlur:Oz(t?.onBlur,S)}}var[Jue,ece]=Va({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),tce=Ct((e,t)=>{const n=hu("FormError",e),r=Ia(e),i=cC();return i?.isInvalid?ke.createElement(Jue,{value:n},ke.createElement(nt.div,{...i?.getErrorMessageProps(r,t),className:uC("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});tce.displayName="FormErrorMessage";var nce=Ct((e,t)=>{const n=ece(),r=cC();if(!r?.isInvalid)return null;const i=uC("chakra-form__error-icon",e.className);return _(tG,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:_("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"},void 0,!1,{fileName:EA,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:EA,lineNumber:238,columnNumber:26},globalThis)});nce.displayName="FormErrorIcon";var FS=Ct(function(t,n){const r=Ac("FormLabel",t),i=Ia(t),{className:s,children:l,requiredIndicator:f=_(rG,{},void 0,!1,{fileName:EA,lineNumber:264,columnNumber:41},this),optionalIndicator:d=null,...m}=i,b=cC(),S=b?.getLabelProps(m,n)??{ref:n,...m};return ke.createElement(nt.label,{...S,className:uC("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r}},l,b?.isRequired?f:d)});FS.displayName="FormLabel";var rG=Ct(function(t,n){const r=cC(),i=nG();if(!r?.isRequired)return null;const s=uC("chakra-form__required-indicator",t.className);return ke.createElement(nt.span,{...r?.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:s})});rG.displayName="RequiredIndicator";function V3(e,t){const n=O.exports.useRef(!1),r=O.exports.useRef(!1);O.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),O.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var nM={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},rce=nt("span",{baseStyle:nM});rce.displayName="VisuallyHidden";var ace=nt("input",{baseStyle:nM});ace.displayName="VisuallyHiddenInput";var Lz=!1,X9=null,G3=!1,TA=new Set,ice=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function oce(e){return!(e.metaKey||!ice&&e.altKey||e.ctrlKey)}function rM(e,t){TA.forEach(n=>n(e,t))}function Mz(e){G3=!0,oce(e)&&(X9="keyboard",rM("keyboard",e))}function K5(e){X9="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(G3=!0,rM("pointer",e))}function sce(e){e.target===window||e.target===document||(G3||(X9="keyboard",rM("keyboard",e)),G3=!1)}function lce(){G3=!1}function Dz(){return X9!=="pointer"}function uce(){if(typeof window>"u"||Lz)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){G3=!0,e.apply(this,n)},document.addEventListener("keydown",Mz,!0),document.addEventListener("keyup",Mz,!0),window.addEventListener("focus",sce,!0),window.addEventListener("blur",lce,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",K5,!0),document.addEventListener("pointermove",K5,!0),document.addEventListener("pointerup",K5,!0)):(document.addEventListener("mousedown",K5,!0),document.addEventListener("mousemove",K5,!0),document.addEventListener("mouseup",K5,!0)),Lz=!0}function cce(e){uce(),e(Dz());const t=()=>e(Dz());return TA.add(t),()=>{TA.delete(t)}}var Sp="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[Ike,fce]=Va({name:"CheckboxGroupContext",strict:!1}),dce=(...e)=>e.filter(Boolean).join(" "),_c=e=>e?"":void 0;function Yd(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function hce(...e){return function(n){e.forEach(r=>{r?.(n)})}}function pce(e){const t=lh;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var aG=pce(nt.svg);function mce(e){return _(aG,{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:_("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:Sp,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:Sp,lineNumber:116,columnNumber:26},this)}function vce(e){return _(aG,{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:_("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:Sp,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:Sp,lineNumber:142,columnNumber:26},this)}function gce({open:e,children:t}){return _(f0,{initial:!1,children:e&&ke.createElement(lh.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)},void 0,!1,{fileName:Sp,lineNumber:169,columnNumber:26},this)}function bce(e){const{isIndeterminate:t,isChecked:n,...r}=e;return _(gce,{open:n||t,children:_(t?vce:mce,{...r},void 0,!1,{fileName:Sp,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:Sp,lineNumber:190,columnNumber:26},this)}function yce(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function iG(e={}){const t=tM(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:s,id:l,onBlur:f,onFocus:d,"aria-describedby":m}=t,{defaultChecked:b,isChecked:S,isFocusable:N,onChange:w,isIndeterminate:T,name:L,value:M,tabIndex:B=void 0,"aria-label":F,"aria-labelledby":z,"aria-invalid":H,...G}=e,K=yce(G,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),Z=Jo(w),ne=Jo(f),ie=Jo(d),[le,oe]=O.exports.useState(!1),[Ae,de]=O.exports.useState(!1),[Se,Me]=O.exports.useState(!1),[_e,J]=O.exports.useState(!1);O.exports.useEffect(()=>cce(oe),[]);const he=O.exports.useRef(null),[ve,ye]=O.exports.useState(!0),[xe,Ve]=O.exports.useState(!!b),Pe=S!==void 0,Qe=Pe?S:xe,wt=O.exports.useCallback(De=>{if(r||n){De.preventDefault();return}Pe||Ve(Qe?De.target.checked:T?!0:De.target.checked),Z?.(De)},[r,n,Qe,Pe,T,Z]);av(()=>{he.current&&(he.current.indeterminate=Boolean(T))},[T]),V3(()=>{n&&de(!1)},[n,de]),av(()=>{const De=he.current;!De?.form||(De.form.onreset=()=>{Ve(!!b)})},[]);const Ot=n&&!N,Ut=O.exports.useCallback(De=>{De.key===" "&&J(!0)},[J]),ut=O.exports.useCallback(De=>{De.key===" "&&J(!1)},[J]);av(()=>{if(!he.current)return;he.current.checked!==Qe&&Ve(he.current.checked)},[he.current]);const It=O.exports.useCallback((De={},kt=null)=>{const Zt=Pt=>{Ae&&Pt.preventDefault(),J(!0)};return{...De,ref:kt,"data-active":_c(_e),"data-hover":_c(Se),"data-checked":_c(Qe),"data-focus":_c(Ae),"data-focus-visible":_c(Ae&&le),"data-indeterminate":_c(T),"data-disabled":_c(n),"data-invalid":_c(s),"data-readonly":_c(r),"aria-hidden":!0,onMouseDown:Yd(De.onMouseDown,Zt),onMouseUp:Yd(De.onMouseUp,()=>J(!1)),onMouseEnter:Yd(De.onMouseEnter,()=>Me(!0)),onMouseLeave:Yd(De.onMouseLeave,()=>Me(!1))}},[_e,Qe,n,Ae,le,Se,T,s,r]),Qt=O.exports.useCallback((De={},kt=null)=>({...K,...De,ref:xi(kt,Zt=>{!Zt||ye(Zt.tagName==="LABEL")}),onClick:Yd(De.onClick,()=>{var Zt;ve||((Zt=he.current)==null||Zt.click(),requestAnimationFrame(()=>{var Pt;(Pt=he.current)==null||Pt.focus()}))}),"data-disabled":_c(n),"data-checked":_c(Qe),"data-invalid":_c(s)}),[K,n,Qe,s,ve]),pn=O.exports.useCallback((De={},kt=null)=>({...De,ref:xi(he,kt),type:"checkbox",name:L,value:M,id:l,tabIndex:B,onChange:Yd(De.onChange,wt),onBlur:Yd(De.onBlur,ne,()=>de(!1)),onFocus:Yd(De.onFocus,ie,()=>de(!0)),onKeyDown:Yd(De.onKeyDown,Ut),onKeyUp:Yd(De.onKeyUp,ut),required:i,checked:Qe,disabled:Ot,readOnly:r,"aria-label":F,"aria-labelledby":z,"aria-invalid":H?Boolean(H):s,"aria-describedby":m,"aria-disabled":n,style:nM}),[L,M,l,wt,ne,ie,Ut,ut,i,Qe,Ot,r,F,z,H,s,m,n,B]),ht=O.exports.useCallback((De={},kt=null)=>({...De,ref:kt,onMouseDown:Yd(De.onMouseDown,Pz),onTouchStart:Yd(De.onTouchStart,Pz),"data-disabled":_c(n),"data-checked":_c(Qe),"data-invalid":_c(s)}),[Qe,n,s]);return{state:{isInvalid:s,isFocused:Ae,isChecked:Qe,isActive:_e,isHovered:Se,isIndeterminate:T,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:Qt,getCheckboxProps:It,getInputProps:pn,getLabelProps:ht,htmlProps:K}}function Pz(e){e.preventDefault(),e.stopPropagation()}var Sce=nt("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),xce=nt("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),oG=Ct(function(t,n){const r=fce(),i={...r,...t},s=hu("Checkbox",i),l=Ia(t),{spacing:f="0.5rem",className:d,children:m,iconColor:b,iconSize:S,icon:N=_(bce,{},void 0,!1,{fileName:Sp,lineNumber:505,columnNumber:28},this),isChecked:w,isDisabled:T=r?.isDisabled,onChange:L,inputProps:M,...B}=l;let F=w;r?.value&&l.value&&(F=r.value.includes(l.value));let z=L;r?.onChange&&l.value&&(z=hce(r.onChange,L));const{state:H,getInputProps:G,getCheckboxProps:K,getLabelProps:Z,getRootProps:ne}=iG({...B,isDisabled:T,isChecked:F,onChange:z}),ie=O.exports.useMemo(()=>({opacity:H.isChecked||H.isIndeterminate?1:0,transform:H.isChecked||H.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:S,color:b,...s.icon}),[b,S,H.isChecked,H.isIndeterminate,s.icon]),le=O.exports.cloneElement(N,{__css:ie,isIndeterminate:H.isIndeterminate,isChecked:H.isChecked});return _(xce,{__css:s.container,className:dce("chakra-checkbox",d),...ne(),children:[_("input",{className:"chakra-checkbox__input",...G(M,n)},void 0,!1,{fileName:Sp,lineNumber:548,columnNumber:22},this),_(Sce,{__css:s.control,className:"chakra-checkbox__control",...K(),children:le},void 0,!1,{fileName:Sp,lineNumber:551,columnNumber:23},this),m&&ke.createElement(nt.span,{className:"chakra-checkbox__label",...Z(),__css:{marginStart:f,...s.label}},m)]},void 0,!0,{fileName:Sp,lineNumber:544,columnNumber:26},this)});oG.displayName="Checkbox";var XE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/node_modules/@chakra-ui/icon/dist/index.esm.js",Iz={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:XE,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:XE,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:XE,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:XE,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},sG=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??Iz.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??Iz.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});sG.displayName="Icon";var RA="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function Cce(e){return _(sG,{focusable:"false","aria-hidden":!0,...e,children:_("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"},void 0,!1,{fileName:RA,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:RA,lineNumber:13,columnNumber:26},this)}var Q9=Ct(function(t,n){const r=Ac("CloseButton",t),{children:i,isDisabled:s,__css:l,...f}=Ia(t),d={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ke.createElement(nt.button,{type:"button","aria-label":"Close",ref:n,disabled:s,__css:{...d,...r,...l},...f},i||_(Cce,{width:"1em",height:"1em"},void 0,!1,{fileName:RA,lineNumber:43,columnNumber:34},this))});Q9.displayName="CloseButton";function Nce(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function aM(e,t){let n=Nce(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function kA(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 H6(e,t,n){return(e-t)*100/(n-t)}function lG(e,t,n){return(n-t)*e+t}function AA(e,t,n){const r=Math.round((e-t)/n)*n+t,i=kA(n);return aM(r,i)}function k3(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 wce(e={}){const{onChange:t,precision:n,defaultValue:r,value:i,step:s=1,min:l=Number.MIN_SAFE_INTEGER,max:f=Number.MAX_SAFE_INTEGER,keepWithinRange:d=!0}=e,m=Jo(t),[b,S]=O.exports.useState(()=>r==null?"":y8(r,s,n)??""),N=typeof i<"u",w=N?i:b,T=uG(gb(w),s),L=n??T,M=O.exports.useCallback(le=>{le!==w&&(N||S(le.toString()),m?.(le.toString(),gb(le)))},[m,N,w]),B=O.exports.useCallback(le=>{let oe=le;return d&&(oe=k3(oe,l,f)),aM(oe,L)},[L,d,f,l]),F=O.exports.useCallback((le=s)=>{let oe;w===""?oe=gb(le):oe=gb(w)+le,oe=B(oe),M(oe)},[B,s,M,w]),z=O.exports.useCallback((le=s)=>{let oe;w===""?oe=gb(-le):oe=gb(w)-le,oe=B(oe),M(oe)},[B,s,M,w]),H=O.exports.useCallback(()=>{let le;r==null?le="":le=y8(r,s,n)??l,M(le)},[r,n,s,M,l]),G=O.exports.useCallback(le=>{const oe=y8(le,s,L)??l;M(oe)},[L,s,M,l]),K=gb(w);return{isOutOfRange:K>f||K<l,isAtMax:K===f,isAtMin:K===l,precision:L,value:w,valueAsNumber:K,update:M,reset:H,increment:F,decrement:z,clamp:B,cast:G,setValue:S}}function gb(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function uG(e,t){return Math.max(kA(t),kA(e))}function y8(e,t,n){const r=gb(e);if(Number.isNaN(r))return;const i=uG(r,t);return aM(r,n??i)}var cG="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",fG=`
: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;
}
}
`,_ce=()=>_(s_,{styles:fG},void 0,!1,{fileName:cG,lineNumber:29,columnNumber:41},globalThis),Ece=()=>_(s_,{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;
}
${fG}
`},void 0,!1,{fileName:cG,lineNumber:32,columnNumber:38},globalThis);function OA(e,t,n,r){const i=Jo(n);return O.exports.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!n||!s))return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const s=typeof e=="function"?e():e??document;s?.removeEventListener(t,i,r)}}var Tce=c_?O.exports.useLayoutEffect:O.exports.useEffect;function LA(e,t=[]){const n=O.exports.useRef(e);return Tce(()=>{n.current=e}),O.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function iM(e,t,n,r){const i=LA(t);return O.exports.useEffect(()=>{const s=E6(n)??document;if(!!t)return s.addEventListener(e,i,r),()=>{s.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{(E6(n)??document).removeEventListener(e,i,r)}}function Rce(e){const{isOpen:t,ref:n}=e,[r,i]=O.exports.useState(t),[s,l]=O.exports.useState(!1);return O.exports.useEffect(()=>{s||(i(t),l(!0))},[t,s,r]),iM("animationend",()=>{i(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var d;const m=Jne(n.current),b=new m.CustomEvent("animationend",{bubbles:!0});(d=n.current)==null||d.dispatchEvent(b)}}}function kce(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Ace(e,t){const n=O.exports.useId();return O.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function j6(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,s=LA(n),l=LA(t),[f,d]=O.exports.useState(e.defaultIsOpen||!1),[m,b]=kce(r,f),S=Ace(i,"disclosure"),N=O.exports.useCallback(()=>{m||d(!1),l?.()},[m,l]),w=O.exports.useCallback(()=>{m||d(!0),s?.()},[m,s]),T=O.exports.useCallback(()=>{(b?N:w)()},[b,w,N]);return{isOpen:!!b,onOpen:w,onClose:N,onToggle:T,isControlled:m,getButtonProps:(L={})=>({...L,"aria-expanded":b,"aria-controls":S,onClick:dre(L.onClick,T)}),getDisclosureProps:(L={})=>({...L,hidden:!b,id:S})}}var dG=(e,t)=>{const n=O.exports.useRef(!1),r=O.exports.useRef(!1);O.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),O.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Oce(e){const t=e.current;if(!t)return!1;const n=nre(t);return!n||NL(t,n)?!1:!!sre(n)}function Lce(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,s=n&&!r;dG(()=>{if(!s||Oce(e))return;const l=i?.current||e.current;l&&T6(l,{nextTick:!0})},[s,e,i])}function Mce(e,t,n,r){return iM(Ore(t),_re(n,t==="pointerdown"),e,r)}function Dce(e){const{ref:t,elements:n,enabled:r}=e,i=Mre("Safari");Mce(()=>u_(t.current),"pointerdown",l=>{if(!i||!r)return;const f=l.target,m=(n??[t]).some(b=>{const S=aj(b)?b.current:b;return NL(S,f)});!uj(f)&&m&&(l.preventDefault(),T6(f))})}var Pce={preventScroll:!0,shouldFocus:!1};function Ice(e,t=Pce){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:s}=t,l=aj(e)?e.current:e,f=i&&s,d=O.exports.useCallback(()=>{if(!(!l||!f)&&!NL(l,document.activeElement))if(n?.current)T6(n.current,{preventScroll:r,nextTick:!0});else{const m=fre(l);m.length>0&&T6(m[0],{preventScroll:r,nextTick:!0})}},[f,r,l,n]);dG(()=>{d()},[d]),iM("transitionend",d,l)}var S3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react/node_modules/@chakra-ui/icon/dist/index.esm.js",Fz={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:S3,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:S3,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:S3,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:S3,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},J9=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??Fz.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??Fz.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});J9.displayName="Icon";function fC(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,s=O.exports.Children.toArray(e.path),l=Ct((f,d)=>_(J9,{ref:d,viewBox:t,...i,...f,children:s.length?s:_("path",{fill:"currentColor",d:n},void 0,!1,{fileName:S3,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:S3,lineNumber:88,columnNumber:60},this));return l.displayName=r,l}function oM(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var zS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",sM=Ct(function(t,n){const{htmlSize:r,...i}=t,s=hu("Input",i),l=Ia(i),f=eM(l),d=fi("chakra-input",t.className);return ke.createElement(nt.input,{size:r,...f,__css:s.field,ref:n,className:d})});sM.displayName="Input";sM.id="Input";var[Fce,hG]=Va({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),zce=Ct(function(t,n){const r=hu("Input",t),{children:i,className:s,...l}=Ia(t),f=fi("chakra-input__group",s),d={},m=K9(i),b=r.field;m.forEach(N=>{!r||(b&&N.type.id==="InputLeftElement"&&(d.paddingStart=b.height??b.h),b&&N.type.id==="InputRightElement"&&(d.paddingEnd=b.height??b.h),N.type.id==="InputRightAddon"&&(d.borderEndRadius=0),N.type.id==="InputLeftAddon"&&(d.borderStartRadius=0))});const S=m.map(N=>{var w,T;const L=oM({size:((w=N.props)==null?void 0:w.size)||t.size,variant:((T=N.props)==null?void 0:T.variant)||t.variant});return N.type.id!=="Input"?O.exports.cloneElement(N,L):O.exports.cloneElement(N,Object.assign(L,d,N.props))});return ke.createElement(nt.div,{className:f,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...l},_(Fce,{value:r,children:S},void 0,!1,{fileName:zS,lineNumber:90,columnNumber:22},this))});zce.displayName="InputGroup";var Bce={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},$ce=nt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),lM=Ct(function(t,n){const{placement:r="left",...i}=t,s=Bce[r]??{},l=hG();return _($ce,{ref:n,...i,__css:{...l.addon,...s}},void 0,!1,{fileName:zS,lineNumber:122,columnNumber:26},this)});lM.displayName="InputAddon";var pG=Ct(function(t,n){return _(lM,{ref:n,placement:"left",...t,className:fi("chakra-input__left-addon",t.className)},void 0,!1,{fileName:zS,lineNumber:133,columnNumber:26},this)});pG.displayName="InputLeftAddon";pG.id="InputLeftAddon";var mG=Ct(function(t,n){return _(lM,{ref:n,placement:"right",...t,className:fi("chakra-input__right-addon",t.className)},void 0,!1,{fileName:zS,lineNumber:143,columnNumber:26},this)});mG.displayName="InputRightAddon";mG.id="InputRightAddon";var Uce=nt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),e7=Ct(function(t,n){const{placement:r="left",...i}=t,s=hG(),l=s.field,d={[r==="left"?"insetStart":"insetEnd"]:"0",width:l?.height??l?.h,height:l?.height??l?.h,fontSize:l?.fontSize,...s.element};return _(Uce,{ref:n,__css:d,...i},void 0,!1,{fileName:zS,lineNumber:181,columnNumber:26},this)});e7.id="InputElement";e7.displayName="InputElement";var vG=Ct(function(t,n){const{className:r,...i}=t,s=fi("chakra-input__left-element",r);return _(e7,{ref:n,placement:"left",className:s,...i},void 0,!1,{fileName:zS,lineNumber:192,columnNumber:26},this)});vG.id="InputLeftElement";vG.displayName="InputLeftElement";var gG=Ct(function(t,n){const{className:r,...i}=t,s=fi("chakra-input__right-element",r);return _(e7,{ref:n,placement:"right",className:s,...i},void 0,!1,{fileName:zS,lineNumber:204,columnNumber:26},this)});gG.id="InputRightElement";gG.displayName="InputRightElement";function Hce(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Lb(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Hce(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var QE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/layout/node_modules/@chakra-ui/icon/dist/index.esm.js",zz={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:QE,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:QE,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:QE,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:QE,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},bG=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??zz.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??zz.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});bG.displayName="Icon";var ah="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",jce=Ct(function(e,t){const{ratio:n=4/3,children:r,className:i,...s}=e,l=O.exports.Children.only(r),f=fi("chakra-aspect-ratio",i);return ke.createElement(nt.div,{ref:t,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:Lb(n,d=>`${1/d*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"}},...s},l)});jce.displayName="AspectRatio";var Vce=Ct(function(t,n){const r=Ac("Badge",t),{className:i,...s}=Ia(t);return ke.createElement(nt.span,{ref:n,className:fi("chakra-badge",t.className),...s,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Vce.displayName="Badge";var gv=nt("div");gv.displayName="Box";var yG=Ct(function(t,n){const{size:r,centerContent:i=!0,...s}=t;return _(gv,{ref:n,boxSize:r,__css:{...i?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...s},void 0,!1,{fileName:ah,lineNumber:84,columnNumber:26},this)});yG.displayName="Square";var Gce=Ct(function(t,n){const{size:r,...i}=t;return _(yG,{size:r,ref:n,borderRadius:"9999px",...i},void 0,!1,{fileName:ah,lineNumber:98,columnNumber:26},this)});Gce.displayName="Circle";var SG=nt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});SG.displayName="Center";var Wce={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Ct(function(t,n){const{axis:r="both",...i}=t;return ke.createElement(nt.div,{ref:n,__css:Wce[r],...i,position:"absolute"})});var Yce=Ct(function(t,n){const r=Ac("Code",t),{className:i,...s}=Ia(t);return ke.createElement(nt.code,{ref:n,className:fi("chakra-code",t.className),...s,__css:{display:"inline-block",...r}})});Yce.displayName="Code";var qce=Ct(function(t,n){const{className:r,centerContent:i,...s}=Ia(t),l=Ac("Container",t);return ke.createElement(nt.div,{ref:n,className:fi("chakra-container",r),...s,__css:{...l,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});qce.displayName="Container";var Kce=Ct(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:s,borderRightWidth:l,borderWidth:f,borderStyle:d,borderColor:m,...b}=Ac("Divider",t),{className:S,orientation:N="horizontal",__css:w,...T}=Ia(t),L={vertical:{borderLeftWidth:r||l||f||"1px",height:"100%"},horizontal:{borderBottomWidth:i||s||f||"1px",width:"100%"}};return ke.createElement(nt.hr,{ref:n,"aria-orientation":N,...T,__css:{...b,border:"0",borderColor:m,borderStyle:d,...L[N],...w},className:fi("chakra-divider",S)})});Kce.displayName="Divider";var Si=Ct(function(t,n){const{direction:r,align:i,justify:s,wrap:l,basis:f,grow:d,shrink:m,...b}=t,S={display:"flex",flexDirection:r,alignItems:i,justifyContent:s,flexWrap:l,flexBasis:f,flexGrow:d,flexShrink:m};return ke.createElement(nt.div,{ref:n,__css:S,...b})});Si.displayName="Flex";var xG=Ct(function(t,n){const{templateAreas:r,gap:i,rowGap:s,columnGap:l,column:f,row:d,autoFlow:m,autoRows:b,templateRows:S,autoColumns:N,templateColumns:w,...T}=t,L={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:s,gridColumnGap:l,gridAutoColumns:N,gridColumn:f,gridRow:d,gridAutoFlow:m,gridAutoRows:b,gridTemplateRows:S,gridTemplateColumns:w};return ke.createElement(nt.div,{ref:n,__css:L,...T})});xG.displayName="Grid";function Bz(e){return Lb(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Zce=Ct(function(t,n){const{area:r,colSpan:i,colStart:s,colEnd:l,rowEnd:f,rowSpan:d,rowStart:m,...b}=t,S=oM({gridArea:r,gridColumn:Bz(i),gridRow:Bz(d),gridColumnStart:s,gridColumnEnd:l,gridRowStart:m,gridRowEnd:f});return ke.createElement(nt.div,{ref:n,__css:S,...b})});Zce.displayName="GridItem";var _S=Ct(function(t,n){const r=Ac("Heading",t),{className:i,...s}=Ia(t);return ke.createElement(nt.h2,{ref:n,className:fi("chakra-heading",t.className),...s,__css:r})});_S.displayName="Heading";Ct(function(t,n){const r=Ac("Mark",t),i=Ia(t);return _(gv,{ref:n,...i,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}},void 0,!1,{fileName:ah,lineNumber:399,columnNumber:26},this)});var Xce=Ct(function(t,n){const r=Ac("Kbd",t),{className:i,...s}=Ia(t);return ke.createElement(nt.kbd,{ref:n,className:fi("chakra-kbd",i),...s,__css:{fontFamily:"mono",...r}})});Xce.displayName="Kbd";var A3=Ct(function(t,n){const r=Ac("Link",t),{className:i,isExternal:s,...l}=Ia(t);return ke.createElement(nt.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:n,className:fi("chakra-link",i),...l,__css:r})});A3.displayName="Link";Ct(function(t,n){const{isExternal:r,target:i,rel:s,className:l,...f}=t;return ke.createElement(nt.a,{...f,ref:n,className:fi("chakra-linkbox__overlay",l),rel:r?"noopener noreferrer":s,target:r?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});Ct(function(t,n){const{className:r,...i}=t;return ke.createElement(nt.div,{ref:n,position:"relative",...i,className:fi("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[Qce,CG]=Va({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),uM=Ct(function(t,n){const r=hu("List",t),{children:i,styleType:s="none",stylePosition:l,spacing:f,...d}=Ia(t),m=K9(i),S=f?{["& > *:not(style) ~ *:not(style)"]:{mt:f}}:{};return ke.createElement(Qce,{value:r},ke.createElement(nt.ul,{ref:n,listStyleType:s,listStylePosition:l,role:"list",__css:{...r.container,...S},...d},m))});uM.displayName="List";var Jce=Ct((e,t)=>{const{as:n,...r}=e;return _(uM,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r},void 0,!1,{fileName:ah,lineNumber:550,columnNumber:26},globalThis)});Jce.displayName="OrderedList";var efe=Ct(function(t,n){const{as:r,...i}=t;return _(uM,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i},void 0,!1,{fileName:ah,lineNumber:561,columnNumber:26},this)});efe.displayName="UnorderedList";var tfe=Ct(function(t,n){const r=CG();return ke.createElement(nt.li,{ref:n,...t,__css:r.item})});tfe.displayName="ListItem";var nfe=Ct(function(t,n){const r=CG();return _(bG,{ref:n,role:"presentation",...t,__css:r.icon},void 0,!1,{fileName:ah,lineNumber:581,columnNumber:26},this)});nfe.displayName="ListIcon";var rfe=Ct(function(t,n){const{columns:r,spacingX:i,spacingY:s,spacing:l,minChildWidth:f,...d}=t,m=aC(),b=f?ife(f,m):ofe(r);return _(xG,{ref:n,gap:l,columnGap:i,rowGap:s,templateColumns:b,...d},void 0,!1,{fileName:ah,lineNumber:601,columnNumber:26},this)});rfe.displayName="SimpleGrid";function afe(e){return typeof e=="number"?`${e}px`:e}function ife(e,t){return Lb(e,n=>{const r=Kre("sizes",n,afe(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function ofe(e){return Lb(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var NG=nt("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});NG.displayName="Spacer";var MA="& > *:not(style) ~ *:not(style)";function sfe(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,[MA]:Lb(n,i=>r[i])}}function lfe(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{"&":Lb(n,i=>r[i])}}var wG=e=>ke.createElement(nt.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});wG.displayName="StackItem";var cM=Ct((e,t)=>{const{isInline:n,direction:r,align:i,justify:s,spacing:l="0.5rem",wrap:f,children:d,divider:m,className:b,shouldWrapChildren:S,...N}=e,w=n?"row":r??"column",T=O.exports.useMemo(()=>sfe({direction:w,spacing:l}),[w,l]),L=O.exports.useMemo(()=>lfe({spacing:l,direction:w}),[l,w]),M=!!m,B=!S&&!M,F=K9(d),z=B?F:F.map((G,K)=>{const Z=typeof G.key<"u"?G.key:K,ne=K+1===F.length,le=S?_(wG,{children:G},Z,!1,{fileName:ah,lineNumber:749,columnNumber:42},globalThis):G;if(!M)return le;const oe=O.exports.cloneElement(m,{__css:L}),Ae=ne?null:oe;return _(O.exports.Fragment,{children:[le,Ae]},Z,!0,{fileName:ah,lineNumber:759,columnNumber:28},globalThis)}),H=fi("chakra-stack",b);return ke.createElement(nt.div,{ref:t,display:"flex",alignItems:i,justifyContent:s,flexDirection:T.flexDirection,flexWrap:f,className:H,__css:M?{}:{[MA]:T[MA]},...N},z)});cM.displayName="Stack";var ufe=Ct((e,t)=>_(cM,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:ah,lineNumber:779,columnNumber:59},globalThis));ufe.displayName="HStack";var cfe=Ct((e,t)=>_(cM,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:ah,lineNumber:805,columnNumber:59},globalThis));cfe.displayName="VStack";var hf=Ct(function(t,n){const r=Ac("Text",t),{className:i,align:s,decoration:l,casing:f,...d}=Ia(t),m=oM({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return ke.createElement(nt.p,{ref:n,className:fi("chakra-text",t.className),...m,...d,__css:r})});hf.displayName="Text";function $z(e){return typeof e=="number"?`${e}px`:e}var ffe=Ct(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:s,children:l,justify:f,direction:d,align:m,className:b,shouldWrapChildren:S,...N}=t,w=O.exports.useMemo(()=>{const{spacingX:L=r,spacingY:M=r}={spacingX:i,spacingY:s};return{"--chakra-wrap-x-spacing":B=>Lb(L,F=>$z(jk("space",F)(B))),"--chakra-wrap-y-spacing":B=>Lb(M,F=>$z(jk("space",F)(B))),"--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:f,alignItems:m,flexDirection:d,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,i,s,f,m,d]),T=S?O.exports.Children.map(l,(L,M)=>_(_G,{children:L},M,!1,{fileName:ah,lineNumber:888,columnNumber:107},this)):l;return ke.createElement(nt.div,{ref:n,className:fi("chakra-wrap",b),overflow:"hidden",...N},ke.createElement(nt.ul,{className:"chakra-wrap__list",__css:w},T))});ffe.displayName="Wrap";var _G=Ct(function(t,n){const{className:r,...i}=t;return ke.createElement(nt.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:fi("chakra-wrap__listitem",r),...i})});_G.displayName="WrapItem";var Uz="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",dfe={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[]}}}},EG=dfe,Z5=()=>{},hfe={document:EG,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Z5,removeEventListener:Z5,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Z5,removeListener:Z5}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:Z5,setInterval:()=>0,clearInterval:Z5},pfe=hfe,mfe={window:pfe,document:EG},TG=typeof window<"u"?{window,document}:mfe,RG=O.exports.createContext(TG);RG.displayName="EnvironmentContext";function kG(e){const{children:t,environment:n}=e,[r,i]=O.exports.useState(null),[s,l]=O.exports.useState(!1);O.exports.useEffect(()=>l(!0),[]);const f=O.exports.useMemo(()=>{if(n)return n;const d=r?.ownerDocument,m=r?.ownerDocument.defaultView;return d?{document:d,window:m}:TG},[r,n]);return _(RG.Provider,{value:f,children:[t,!n&&s&&_("span",{id:"__chakra_env",hidden:!0,ref:d=>{O.exports.startTransition(()=>{d&&i(d)})}},void 0,!1,{fileName:Uz,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:Uz,lineNumber:134,columnNumber:26},this)}kG.displayName="EnvironmentProvider";var vfe=e=>e?"":void 0;function gfe(){const e=O.exports.useRef(new Map),t=e.current,n=O.exports.useCallback((i,s,l,f)=>{e.current.set(l,{type:s,el:i,options:f}),i.addEventListener(s,l,f)},[]),r=O.exports.useCallback((i,s,l,f)=>{i.removeEventListener(s,l,f),e.current.delete(l)},[]);return O.exports.useEffect(()=>()=>{t.forEach((i,s)=>{r(i.el,i.type,s,i.options)})},[r,t]),{add:n,remove:r}}function S8(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function bfe(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:s=!0,onMouseDown:l,onMouseUp:f,onClick:d,onKeyDown:m,onKeyUp:b,tabIndex:S,onMouseOver:N,onMouseLeave:w,...T}=e,[L,M]=O.exports.useState(!0),[B,F]=O.exports.useState(!1),z=gfe(),H=J=>{!J||J.tagName!=="BUTTON"&&M(!1)},G=L?S:S||0,K=n&&!r,Z=O.exports.useCallback(J=>{if(n){J.stopPropagation(),J.preventDefault();return}J.currentTarget.focus(),d?.(J)},[n,d]),ne=O.exports.useCallback(J=>{B&&S8(J)&&(J.preventDefault(),J.stopPropagation(),F(!1),z.remove(document,"keyup",ne,!1))},[B,z]),ie=O.exports.useCallback(J=>{if(m?.(J),n||J.defaultPrevented||J.metaKey||!S8(J.nativeEvent)||L)return;const he=i&&J.key==="Enter";s&&J.key===" "&&(J.preventDefault(),F(!0)),he&&(J.preventDefault(),J.currentTarget.click()),z.add(document,"keyup",ne,!1)},[n,L,m,i,s,z,ne]),le=O.exports.useCallback(J=>{if(b?.(J),n||J.defaultPrevented||J.metaKey||!S8(J.nativeEvent)||L)return;s&&J.key===" "&&(J.preventDefault(),F(!1),J.currentTarget.click())},[s,L,n,b]),oe=O.exports.useCallback(J=>{J.button===0&&(F(!1),z.remove(document,"mouseup",oe,!1))},[z]),Ae=O.exports.useCallback(J=>{if(J.button!==0)return;if(n){J.stopPropagation(),J.preventDefault();return}L||F(!0),J.currentTarget.focus({preventScroll:!0}),z.add(document,"mouseup",oe,!1),l?.(J)},[n,L,l,z,oe]),de=O.exports.useCallback(J=>{J.button===0&&(L||F(!1),f?.(J))},[f,L]),Se=O.exports.useCallback(J=>{if(n){J.preventDefault();return}N?.(J)},[n,N]),Me=O.exports.useCallback(J=>{B&&(J.preventDefault(),F(!1)),w?.(J)},[B,w]),_e=xi(t,H);return L?{...T,ref:_e,type:"button","aria-disabled":K?void 0:n,disabled:K,onClick:Z,onMouseDown:l,onMouseUp:f,onKeyUp:b,onKeyDown:m,onMouseOver:N,onMouseLeave:w}:{...T,ref:_e,role:"button","data-active":vfe(B),"aria-disabled":n?"true":void 0,tabIndex:K?void 0:G,onClick:Z,onMouseDown:Ae,onMouseUp:de,onKeyUp:le,onKeyDown:ie,onMouseOver:Se,onMouseLeave:Me}}function yfe(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Sfe(e){if(!yfe(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var xfe=e=>e.hasAttribute("tabindex");function Cfe(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function AG(e){return e.parentElement&&AG(e.parentElement)?!0:e.hidden}function Nfe(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function wfe(e){if(!Sfe(e)||AG(e)||Cfe(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]():Nfe(e)?!0:xfe(e)}var _fe=["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]"],Efe=_fe.join(),Tfe=e=>e.offsetWidth>0&&e.offsetHeight>0;function Rfe(e){const t=Array.from(e.querySelectorAll(Efe));return t.unshift(e),t.filter(n=>wfe(n)&&Tfe(n))}var mf="top",ih="bottom",oh="right",vf="left",t7="auto",S_=[mf,ih,oh,vf],W3="start",jw="end",kfe="clippingParents",OG="viewport",RN="popper",Afe="reference",Hz=S_.reduce(function(e,t){return e.concat([t+"-"+W3,t+"-"+jw])},[]),LG=[].concat(S_,[t7]).reduce(function(e,t){return e.concat([t,t+"-"+W3,t+"-"+jw])},[]),Ofe="beforeRead",Lfe="read",Mfe="afterRead",Dfe="beforeMain",Pfe="main",Ife="afterMain",Ffe="beforeWrite",zfe="write",Bfe="afterWrite",DA=[Ofe,Lfe,Mfe,Dfe,Pfe,Ife,Ffe,zfe,Bfe];function dv(e){return e?(e.nodeName||"").toLowerCase():null}function uh(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function OS(e){var t=uh(e).Element;return e instanceof t||e instanceof Element}function td(e){var t=uh(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fM(e){if(typeof ShadowRoot>"u")return!1;var t=uh(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $fe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!td(s)||!dv(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(l){var f=i[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function Ufe(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 i=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),f=l.reduce(function(d,m){return d[m]="",d},{});!td(i)||!dv(i)||(Object.assign(i.style,f),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const Hfe={name:"applyStyles",enabled:!0,phase:"write",fn:$fe,effect:Ufe,requires:["computeStyles"]};function Cp(e){return e.split("-")[0]}var ES=Math.max,V6=Math.min,Y3=Math.round;function PA(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function MG(){return!/^((?!chrome|android).)*safari/i.test(PA())}function q3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&td(e)&&(i=e.offsetWidth>0&&Y3(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Y3(r.height)/e.offsetHeight||1);var l=OS(e)?uh(e):window,f=l.visualViewport,d=!MG()&&n,m=(r.left+(d&&f?f.offsetLeft:0))/i,b=(r.top+(d&&f?f.offsetTop:0))/s,S=r.width/i,N=r.height/s;return{width:S,height:N,top:b,right:m+S,bottom:b+N,left:m,x:m,y:b}}function dM(e){var t=q3(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 DG(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Np(e){return uh(e).getComputedStyle(e)}function jfe(e){return["table","td","th"].indexOf(dv(e))>=0}function Bb(e){return((OS(e)?e.ownerDocument:e.document)||window.document).documentElement}function n7(e){return dv(e)==="html"?e:e.assignedSlot||e.parentNode||(fM(e)?e.host:null)||Bb(e)}function jz(e){return!td(e)||Np(e).position==="fixed"?null:e.offsetParent}function Vfe(e){var t=/firefox/i.test(PA()),n=/Trident/i.test(PA());if(n&&td(e)){var r=Np(e);if(r.position==="fixed")return null}var i=n7(e);for(fM(i)&&(i=i.host);td(i)&&["html","body"].indexOf(dv(i))<0;){var s=Np(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function x_(e){for(var t=uh(e),n=jz(e);n&&jfe(n)&&Np(n).position==="static";)n=jz(n);return n&&(dv(n)==="html"||dv(n)==="body"&&Np(n).position==="static")?t:n||Vfe(e)||t}function hM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mw(e,t,n){return ES(e,V6(t,n))}function Gfe(e,t,n){var r=mw(e,t,n);return r>n?n:r}function PG(){return{top:0,right:0,bottom:0,left:0}}function IG(e){return Object.assign({},PG(),e)}function FG(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wfe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,IG(typeof t!="number"?t:FG(t,S_))};function Yfe(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,f=Cp(n.placement),d=hM(f),m=[vf,oh].indexOf(f)>=0,b=m?"height":"width";if(!(!s||!l)){var S=Wfe(i.padding,n),N=dM(s),w=d==="y"?mf:vf,T=d==="y"?ih:oh,L=n.rects.reference[b]+n.rects.reference[d]-l[d]-n.rects.popper[b],M=l[d]-n.rects.reference[d],B=x_(s),F=B?d==="y"?B.clientHeight||0:B.clientWidth||0:0,z=L/2-M/2,H=S[w],G=F-N[b]-S[T],K=F/2-N[b]/2+z,Z=mw(H,K,G),ne=d;n.modifiersData[r]=(t={},t[ne]=Z,t.centerOffset=Z-K,t)}}function qfe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;if(i!=null&&!(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i))){if(td(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!DG(t.elements.popper,i)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=i}}const Kfe={name:"arrow",enabled:!0,phase:"main",fn:Yfe,effect:qfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K3(e){return e.split("-")[1]}var Zfe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xfe(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Y3(t*i)/i||0,y:Y3(n*i)/i||0}}function Vz(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,m=e.adaptive,b=e.roundOffsets,S=e.isFixed,N=l.x,w=N===void 0?0:N,T=l.y,L=T===void 0?0:T,M=typeof b=="function"?b({x:w,y:L}):{x:w,y:L};w=M.x,L=M.y;var B=l.hasOwnProperty("x"),F=l.hasOwnProperty("y"),z=vf,H=mf,G=window;if(m){var K=x_(n),Z="clientHeight",ne="clientWidth";if(K===uh(n)&&(K=Bb(n),Np(K).position!=="static"&&f==="absolute"&&(Z="scrollHeight",ne="scrollWidth")),K=K,i===mf||(i===vf||i===oh)&&s===jw){H=ih;var ie=S&&K===G&&G.visualViewport?G.visualViewport.height:K[Z];L-=ie-r.height,L*=d?1:-1}if(i===vf||(i===mf||i===ih)&&s===jw){z=oh;var le=S&&K===G&&G.visualViewport?G.visualViewport.width:K[ne];w-=le-r.width,w*=d?1:-1}}var oe=Object.assign({position:f},m&&Zfe),Ae=b===!0?Xfe({x:w,y:L}):{x:w,y:L};if(w=Ae.x,L=Ae.y,d){var de;return Object.assign({},oe,(de={},de[H]=F?"0":"",de[z]=B?"0":"",de.transform=(G.devicePixelRatio||1)<=1?"translate("+w+"px, "+L+"px)":"translate3d("+w+"px, "+L+"px, 0)",de))}return Object.assign({},oe,(t={},t[H]=F?L+"px":"",t[z]=B?w+"px":"",t.transform="",t))}function Qfe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,f=n.roundOffsets,d=f===void 0?!0:f;{var m=Np(t.elements.popper).transitionProperty||"";l&&["transform","top","right","bottom","left"].some(function(S){return m.indexOf(S)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var b={placement:Cp(t.placement),variation:K3(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vz(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vz(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Jfe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qfe,data:{}};var JE={passive:!0};function ede(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,l=r.resize,f=l===void 0?!0:l,d=uh(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&m.forEach(function(b){b.addEventListener("scroll",n.update,JE)}),f&&d.addEventListener("resize",n.update,JE),function(){s&&m.forEach(function(b){b.removeEventListener("scroll",n.update,JE)}),f&&d.removeEventListener("resize",n.update,JE)}}const tde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ede,data:{}};var nde={left:"right",right:"left",bottom:"top",top:"bottom"};function XT(e){return e.replace(/left|right|bottom|top/g,function(t){return nde[t]})}var rde={start:"end",end:"start"};function Gz(e){return e.replace(/start|end/g,function(t){return rde[t]})}function pM(e){var t=uh(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mM(e){return q3(Bb(e)).left+pM(e).scrollLeft}function ade(e,t){var n=uh(e),r=Bb(e),i=n.visualViewport,s=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){s=i.width,l=i.height;var m=MG();(m||!m&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}return{width:s,height:l,x:f+mM(e),y:d}}function ide(e){var t,n=Bb(e),r=pM(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=ES(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=ES(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+mM(e),d=-r.scrollTop;return Np(i||n).direction==="rtl"&&(f+=ES(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function vM(e){var t=Np(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function zG(e){return["html","body","#document"].indexOf(dv(e))>=0?e.ownerDocument.body:td(e)&&vM(e)?e:zG(n7(e))}function vw(e,t){var n;t===void 0&&(t=[]);var r=zG(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=uh(r),l=i?[s].concat(s.visualViewport||[],vM(r)?r:[]):r,f=t.concat(l);return i?f:f.concat(vw(n7(l)))}function IA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ode(e,t){var n=q3(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 Wz(e,t,n){return t===OG?IA(ade(e,n)):OS(t)?ode(t,n):IA(ide(Bb(e)))}function sde(e){var t=vw(n7(e)),n=["absolute","fixed"].indexOf(Np(e).position)>=0,r=n&&td(e)?x_(e):e;return OS(r)?t.filter(function(i){return OS(i)&&DG(i,r)&&dv(i)!=="body"}):[]}function lde(e,t,n,r){var i=t==="clippingParents"?sde(e):[].concat(t),s=[].concat(i,[n]),l=s[0],f=s.reduce(function(d,m){var b=Wz(e,m,r);return d.top=ES(b.top,d.top),d.right=V6(b.right,d.right),d.bottom=V6(b.bottom,d.bottom),d.left=ES(b.left,d.left),d},Wz(e,l,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function BG(e){var t=e.reference,n=e.element,r=e.placement,i=r?Cp(r):null,s=r?K3(r):null,l=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,d;switch(i){case mf:d={x:l,y:t.y-n.height};break;case ih:d={x:l,y:t.y+t.height};break;case oh:d={x:t.x+t.width,y:f};break;case vf:d={x:t.x-n.width,y:f};break;default:d={x:t.x,y:t.y}}var m=i?hM(i):null;if(m!=null){var b=m==="y"?"height":"width";switch(s){case W3:d[m]=d[m]-(t[b]/2-n[b]/2);break;case jw:d[m]=d[m]+(t[b]/2-n[b]/2);break}}return d}function Vw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,f=n.boundary,d=f===void 0?kfe:f,m=n.rootBoundary,b=m===void 0?OG:m,S=n.elementContext,N=S===void 0?RN:S,w=n.altBoundary,T=w===void 0?!1:w,L=n.padding,M=L===void 0?0:L,B=IG(typeof M!="number"?M:FG(M,S_)),F=N===RN?Afe:RN,z=e.rects.popper,H=e.elements[T?F:N],G=lde(OS(H)?H:H.contextElement||Bb(e.elements.popper),d,b,l),K=q3(e.elements.reference),Z=BG({reference:K,element:z,strategy:"absolute",placement:i}),ne=IA(Object.assign({},z,Z)),ie=N===RN?ne:K,le={top:G.top-ie.top+B.top,bottom:ie.bottom-G.bottom+B.bottom,left:G.left-ie.left+B.left,right:ie.right-G.right+B.right},oe=e.modifiersData.offset;if(N===RN&&oe){var Ae=oe[i];Object.keys(le).forEach(function(de){var Se=[oh,ih].indexOf(de)>=0?1:-1,Me=[mf,ih].indexOf(de)>=0?"y":"x";le[de]+=Ae[Me]*Se})}return le}function ude(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,l=n.padding,f=n.flipVariations,d=n.allowedAutoPlacements,m=d===void 0?LG:d,b=K3(r),S=b?f?Hz:Hz.filter(function(T){return K3(T)===b}):S_,N=S.filter(function(T){return m.indexOf(T)>=0});N.length===0&&(N=S,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var w=N.reduce(function(T,L){return T[L]=Vw(e,{placement:L,boundary:i,rootBoundary:s,padding:l})[Cp(L)],T},{});return Object.keys(w).sort(function(T,L){return w[T]-w[L]})}function cde(e){if(Cp(e)===t7)return[];var t=XT(e);return[Gz(e),t,Gz(t)]}function fde(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,f=l===void 0?!0:l,d=n.fallbackPlacements,m=n.padding,b=n.boundary,S=n.rootBoundary,N=n.altBoundary,w=n.flipVariations,T=w===void 0?!0:w,L=n.allowedAutoPlacements,M=t.options.placement,B=Cp(M),F=B===M,z=d||(F||!T?[XT(M)]:cde(M)),H=[M].concat(z).reduce(function(Qe,wt){return Qe.concat(Cp(wt)===t7?ude(t,{placement:wt,boundary:b,rootBoundary:S,padding:m,flipVariations:T,allowedAutoPlacements:L}):wt)},[]),G=t.rects.reference,K=t.rects.popper,Z=new Map,ne=!0,ie=H[0],le=0;le<H.length;le++){var oe=H[le],Ae=Cp(oe),de=K3(oe)===W3,Se=[mf,ih].indexOf(Ae)>=0,Me=Se?"width":"height",_e=Vw(t,{placement:oe,boundary:b,rootBoundary:S,altBoundary:N,padding:m}),J=Se?de?oh:vf:de?ih:mf;G[Me]>K[Me]&&(J=XT(J));var he=XT(J),ve=[];if(s&&ve.push(_e[Ae]<=0),f&&ve.push(_e[J]<=0,_e[he]<=0),ve.every(function(Qe){return Qe})){ie=oe,ne=!1;break}Z.set(oe,ve)}if(ne)for(var ye=T?3:1,xe=function(wt){var Ot=H.find(function(Ut){var ut=Z.get(Ut);if(ut)return ut.slice(0,wt).every(function(It){return It})});if(Ot)return ie=Ot,"break"},Ve=ye;Ve>0;Ve--){var Pe=xe(Ve);if(Pe==="break")break}t.placement!==ie&&(t.modifiersData[r]._skip=!0,t.placement=ie,t.reset=!0)}}const dde={name:"flip",enabled:!0,phase:"main",fn:fde,requiresIfExists:["offset"],data:{_skip:!1}};function Yz(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 qz(e){return[mf,oh,ih,vf].some(function(t){return e[t]>=0})}function hde(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=Vw(t,{elementContext:"reference"}),f=Vw(t,{altBoundary:!0}),d=Yz(l,r),m=Yz(f,i,s),b=qz(d),S=qz(m);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:m,isReferenceHidden:b,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":S})}const pde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hde};function mde(e,t,n){var r=Cp(e),i=[vf,mf].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],f=s[1];return l=l||0,f=(f||0)*i,[vf,oh].indexOf(r)>=0?{x:f,y:l}:{x:l,y:f}}function vde(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,l=LG.reduce(function(b,S){return b[S]=mde(S,t.rects,s),b},{}),f=l[t.placement],d=f.x,m=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=m),t.modifiersData[r]=l}const gde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vde};function bde(e){var t=e.state,n=e.name;t.modifiersData[n]=BG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yde={name:"popperOffsets",enabled:!0,phase:"read",fn:bde,data:{}};function Sde(e){return e==="x"?"y":"x"}function xde(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,f=l===void 0?!1:l,d=n.boundary,m=n.rootBoundary,b=n.altBoundary,S=n.padding,N=n.tether,w=N===void 0?!0:N,T=n.tetherOffset,L=T===void 0?0:T,M=Vw(t,{boundary:d,rootBoundary:m,padding:S,altBoundary:b}),B=Cp(t.placement),F=K3(t.placement),z=!F,H=hM(B),G=Sde(H),K=t.modifiersData.popperOffsets,Z=t.rects.reference,ne=t.rects.popper,ie=typeof L=="function"?L(Object.assign({},t.rects,{placement:t.placement})):L,le=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),oe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ae={x:0,y:0};if(!!K){if(s){var de,Se=H==="y"?mf:vf,Me=H==="y"?ih:oh,_e=H==="y"?"height":"width",J=K[H],he=J+M[Se],ve=J-M[Me],ye=w?-ne[_e]/2:0,xe=F===W3?Z[_e]:ne[_e],Ve=F===W3?-ne[_e]:-Z[_e],Pe=t.elements.arrow,Qe=w&&Pe?dM(Pe):{width:0,height:0},wt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PG(),Ot=wt[Se],Ut=wt[Me],ut=mw(0,Z[_e],Qe[_e]),It=z?Z[_e]/2-ye-ut-Ot-le.mainAxis:xe-ut-Ot-le.mainAxis,Qt=z?-Z[_e]/2+ye+ut+Ut+le.mainAxis:Ve+ut+Ut+le.mainAxis,pn=t.elements.arrow&&x_(t.elements.arrow),ht=pn?H==="y"?pn.clientTop||0:pn.clientLeft||0:0,gn=(de=oe?.[H])!=null?de:0,De=J+It-gn-ht,kt=J+Qt-gn,Zt=mw(w?V6(he,De):he,J,w?ES(ve,kt):ve);K[H]=Zt,Ae[H]=Zt-J}if(f){var Pt,un=H==="x"?mf:vf,fr=H==="x"?ih:oh,an=K[G],Rn=G==="y"?"height":"width",wn=an+M[un],Ln=an-M[fr],St=[mf,vf].indexOf(B)!==-1,Ft=(Pt=oe?.[G])!=null?Pt:0,er=St?wn:an-Z[Rn]-ne[Rn]-Ft+le.altAxis,En=St?an+Z[Rn]+ne[Rn]-Ft-le.altAxis:Ln,Je=w&&St?Gfe(er,an,En):mw(w?er:wn,an,w?En:Ln);K[G]=Je,Ae[G]=Je-an}t.modifiersData[r]=Ae}}const Cde={name:"preventOverflow",enabled:!0,phase:"main",fn:xde,requiresIfExists:["offset"]};function Nde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wde(e){return e===uh(e)||!td(e)?pM(e):Nde(e)}function _de(e){var t=e.getBoundingClientRect(),n=Y3(t.width)/e.offsetWidth||1,r=Y3(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ede(e,t,n){n===void 0&&(n=!1);var r=td(t),i=td(t)&&_de(t),s=Bb(t),l=q3(e,i,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((dv(t)!=="body"||vM(s))&&(f=wde(t)),td(t)?(d=q3(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=mM(s))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function Tde(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(f){if(!n.has(f)){var d=t.get(f);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function Rde(e){var t=Tde(e);return DA.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function kde(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ub(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(i,s){return i.replace(/%s/,s)},e)}var tS='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ade='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Kz=["name","enabled","phase","fn","effect","requires","options"];function Ode(e){e.forEach(function(t){[].concat(Object.keys(t),Kz).filter(function(n,r,i){return i.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(ub(tS,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(ub(tS,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":DA.indexOf(t.phase)<0&&console.error(ub(tS,t.name,'"phase"',"either "+DA.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(ub(tS,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(ub(tS,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(ub(tS,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(ub(tS,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Kz.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(i){return i.name===r})==null&&console.error(ub(Ade,String(t.name),r,r))})})})}function Lde(e,t){var n=new Set;return e.filter(function(r){var i=t(r);if(!n.has(i))return n.add(i),!0})}function Mde(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zz="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Dde="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Xz={placement:"bottom",modifiers:[],strategy:"absolute"};function Qz(){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 Pde(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Xz:i;return function(f,d,m){m===void 0&&(m=s);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xz,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},S=[],N=!1,w={state:b,setOptions:function(B){var F=typeof B=="function"?B(b.options):B;L(),b.options=Object.assign({},s,b.options,F),b.scrollParents={reference:OS(f)?vw(f):f.contextElement?vw(f.contextElement):[],popper:vw(d)};var z=Rde(Mde([].concat(r,b.options.modifiers)));b.orderedModifiers=z.filter(function(oe){return oe.enabled});{var H=Lde([].concat(z,b.options.modifiers),function(oe){var Ae=oe.name;return Ae});if(Ode(H),Cp(b.options.placement)===t7){var G=b.orderedModifiers.find(function(oe){var Ae=oe.name;return Ae==="flip"});G||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var K=Np(d),Z=K.marginTop,ne=K.marginRight,ie=K.marginBottom,le=K.marginLeft;[Z,ne,ie,le].some(function(oe){return parseFloat(oe)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return T(),w.update()},forceUpdate:function(){if(!N){var B=b.elements,F=B.reference,z=B.popper;if(!Qz(F,z)){console.error(Zz);return}b.rects={reference:Ede(F,x_(z),b.options.strategy==="fixed"),popper:dM(z)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(oe){return b.modifiersData[oe.name]=Object.assign({},oe.data)});for(var H=0,G=0;G<b.orderedModifiers.length;G++){if(H+=1,H>100){console.error(Dde);break}if(b.reset===!0){b.reset=!1,G=-1;continue}var K=b.orderedModifiers[G],Z=K.fn,ne=K.options,ie=ne===void 0?{}:ne,le=K.name;typeof Z=="function"&&(b=Z({state:b,options:ie,name:le,instance:w})||b)}}},update:kde(function(){return new Promise(function(M){w.forceUpdate(),M(b)})}),destroy:function(){L(),N=!0}};if(!Qz(f,d))return console.error(Zz),w;w.setOptions(m).then(function(M){!N&&m.onFirstUpdate&&m.onFirstUpdate(M)});function T(){b.orderedModifiers.forEach(function(M){var B=M.name,F=M.options,z=F===void 0?{}:F,H=M.effect;if(typeof H=="function"){var G=H({state:b,name:B,instance:w,options:z}),K=function(){};S.push(G||K)}})}function L(){S.forEach(function(M){return M()}),S=[]}return w}}var Ide=[tde,yde,Jfe,Hfe,gde,dde,Cde,Kfe,pde],Fde=Pde({defaultModifiers:Ide}),X5=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Os={arrowShadowColor:X5("--popper-arrow-shadow-color"),arrowSize:X5("--popper-arrow-size","8px"),arrowSizeHalf:X5("--popper-arrow-size-half"),arrowBg:X5("--popper-arrow-bg"),transformOrigin:X5("--popper-transform-origin"),arrowOffset:X5("--popper-arrow-offset")};function zde(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 Bde={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"},$de=e=>Bde[e],Jz={scroll:!0,resize:!0};function Ude(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Jz,...e}}:t={enabled:e,options:Jz},t}var Hde={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`}},jde={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{eB(e)},effect:({state:e})=>()=>{eB(e)}},eB=e=>{e.elements.popper.style.setProperty(Os.transformOrigin.var,$de(e.placement))},Vde={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Gde(e)}},Gde=e=>{var t;if(!e.placement)return;const n=Wde(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Os.arrowSize.varRef,height:Os.arrowSize.varRef,zIndex:-1});const r={[Os.arrowSizeHalf.var]:`calc(${Os.arrowSize.varRef} / 2)`,[Os.arrowOffset.var]:`calc(${Os.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},Wde=e=>{if(e.startsWith("top"))return{property:"bottom",value:Os.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Os.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Os.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Os.arrowOffset.varRef}},Yde={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{tB(e)},effect:({state:e})=>()=>{tB(e)}},tB=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:Os.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:zde(e.placement)})},qde={"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"}},Kde={"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 Zde(e,t="ltr"){var n;const r=((n=qde[e])==null?void 0:n[t])||e;return t==="ltr"?r:Kde[e]??r}function $G(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:s=8,eventListeners:l=!0,offset:f,gutter:d=8,flip:m=!0,boundary:b="clippingParents",preventOverflow:S=!0,matchWidth:N,direction:w="ltr"}=e,T=O.exports.useRef(null),L=O.exports.useRef(null),M=O.exports.useRef(null),B=Zde(r,w),F=O.exports.useRef(()=>{}),z=O.exports.useCallback(()=>{var le;!t||!T.current||!L.current||((le=F.current)==null||le.call(F),M.current=Fde(T.current,L.current,{placement:B,modifiers:[Yde,Vde,jde,{...Hde,enabled:!!N},{name:"eventListeners",...Ude(l)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:f??[0,d]}},{name:"flip",enabled:!!m,options:{padding:8}},{name:"preventOverflow",enabled:!!S,options:{boundary:b}},...n??[]],strategy:i}),M.current.forceUpdate(),F.current=M.current.destroy)},[B,t,n,N,l,s,f,d,m,S,b,i]);O.exports.useEffect(()=>()=>{var le;!T.current&&!L.current&&((le=M.current)==null||le.destroy(),M.current=null)},[]);const H=O.exports.useCallback(le=>{T.current=le,z()},[z]),G=O.exports.useCallback((le={},oe=null)=>({...le,ref:xi(H,oe)}),[H]),K=O.exports.useCallback(le=>{L.current=le,z()},[z]),Z=O.exports.useCallback((le={},oe=null)=>({...le,ref:xi(K,oe),style:{...le.style,position:i,minWidth:N?void 0:"max-content",inset:"0 auto auto 0"}}),[i,K,N]),ne=O.exports.useCallback((le={},oe=null)=>{const{size:Ae,shadowColor:de,bg:Se,style:Me,..._e}=le;return{..._e,ref:oe,"data-popper-arrow":"",style:Xde(le)}},[]),ie=O.exports.useCallback((le={},oe=null)=>({...le,ref:oe,"data-popper-arrow-inner":""}),[]);return{update(){var le;(le=M.current)==null||le.update()},forceUpdate(){var le;(le=M.current)==null||le.forceUpdate()},transformOrigin:Os.transformOrigin.varRef,referenceRef:H,popperRef:K,getPopperProps:Z,getArrowProps:ne,getArrowInnerProps:ie,getReferenceProps:G}}function Xde(e){const{size:t,shadowColor:n,bg:r,style:i}=e,s={...i,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),n&&(s["--popper-arrow-shadow-color"]=n),r&&(s["--popper-arrow-bg"]=r),s}function UG(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,s=Jo(n),l=Jo(t),[f,d]=O.exports.useState(e.defaultIsOpen||!1),m=r!==void 0?r:f,b=r!==void 0,S=i??`disclosure-${O.exports.useId()}`,N=O.exports.useCallback(()=>{b||d(!1),l?.()},[b,l]),w=O.exports.useCallback(()=>{b||d(!0),s?.()},[b,s]),T=O.exports.useCallback(()=>{m?N():w()},[m,w,N]);function L(B={}){return{...B,"aria-expanded":m,"aria-controls":S,onClick(F){var z;(z=B.onClick)==null||z.call(B,F),T()}}}function M(B={}){return{...B,hidden:!m,id:S}}return{isOpen:m,onOpen:w,onClose:N,onToggle:T,isControlled:b,getButtonProps:L,getDisclosureProps:M}}function HG(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var Rb="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[Qde,Jde]=Va({strict:!1,name:"PortalManagerContext"});function jG(e){const{children:t,zIndex:n}=e;return _(Qde,{value:{zIndex:n},children:t},void 0,!1,{fileName:Rb,lineNumber:12,columnNumber:26},this)}jG.displayName="PortalManager";var[VG,ehe]=Va({strict:!1,name:"PortalContext"}),gM="chakra-portal",the=".chakra-portal",nhe=e=>_("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:Rb,lineNumber:29,columnNumber:44},globalThis),rhe=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=O.exports.useState(null),s=O.exports.useRef(null),[,l]=O.exports.useState({});O.exports.useEffect(()=>l({}),[]);const f=ehe(),d=Jde();av(()=>{if(!r)return;const b=r.ownerDocument,S=t?f??b.body:b.body;if(!S)return;s.current=b.createElement("div"),s.current.className=gM,S.appendChild(s.current),l({});const N=s.current;return()=>{S.contains(N)&&S.removeChild(N)}},[r]);const m=d?.zIndex?_(nhe,{zIndex:d?.zIndex,children:n},void 0,!1,{fileName:Rb,lineNumber:65,columnNumber:83},globalThis):n;return s.current?vv.exports.createPortal(_(VG,{value:s.current,children:m},void 0,!1,{fileName:Rb,lineNumber:68,columnNumber:56},globalThis),s.current):_("span",{ref:b=>{b&&i(b)}},void 0,!1,{fileName:Rb,lineNumber:70,columnNumber:52},globalThis)},ahe=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,s=i??(typeof window<"u"?document.body:void 0),l=O.exports.useMemo(()=>{const d=i?.ownerDocument.createElement("div");return d&&(d.className=gM),d},[i]),[,f]=O.exports.useState({});return av(()=>f({}),[]),av(()=>{if(!(!l||!s))return s.appendChild(l),()=>{s.removeChild(l)}},[l,s]),s&&l?vv.exports.createPortal(_(VG,{value:r?l:null,children:t},void 0,!1,{fileName:Rb,lineNumber:98,columnNumber:41},globalThis),l):null};function BS(e){const{containerRef:t,...n}=e;return t?_(ahe,{containerRef:t,...n},void 0,!1,{fileName:Rb,lineNumber:106,columnNumber:41},this):_(rhe,{...n},void 0,!1,{fileName:Rb,lineNumber:109,columnNumber:24},this)}BS.defaultProps={appendToParentPortal:!0};BS.className=gM;BS.selector=the;BS.displayName="Portal";var ihe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Q5=new WeakMap,eT=new WeakMap,tT={},x8=0,ohe=function(e,t,n,r){var i=Array.isArray(e)?e:[e];tT[n]||(tT[n]=new WeakMap);var s=tT[n],l=[],f=new Set,d=new Set(i),m=function(S){!S||f.has(S)||(f.add(S),m(S.parentNode))};i.forEach(m);var b=function(S){!S||d.has(S)||Array.prototype.forEach.call(S.children,function(N){if(f.has(N))b(N);else{var w=N.getAttribute(r),T=w!==null&&w!=="false",L=(Q5.get(N)||0)+1,M=(s.get(N)||0)+1;Q5.set(N,L),s.set(N,M),l.push(N),L===1&&T&&eT.set(N,!0),M===1&&N.setAttribute(n,"true"),T||N.setAttribute(r,"true")}})};return b(t),f.clear(),x8++,function(){l.forEach(function(S){var N=Q5.get(S)-1,w=s.get(S)-1;Q5.set(S,N),s.set(S,w),N||(eT.has(S)||S.removeAttribute(r),eT.delete(S)),w||S.removeAttribute(n)}),x8--,x8||(Q5=new WeakMap,Q5=new WeakMap,eT=new WeakMap,tT={})}},GG=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||ihe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),ohe(r,i,n,"aria-hidden")):function(){return null}};function bM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var At={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var nB=Object.getOwnPropertySymbols,she=Object.prototype.hasOwnProperty,lhe=Object.prototype.propertyIsEnumerable;function uhe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function che(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var fhe=che()?Object.assign:function(e,t){for(var n,r=uhe(e),i,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var l in n)she.call(n,l)&&(r[l]=n[l]);if(nB){i=nB(n);for(var f=0;f<i.length;f++)lhe.call(n,i[f])&&(r[i[f]]=n[i[f]])}}return r},dhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",WG=dhe,YG=Function.call.bind(Object.prototype.hasOwnProperty),FA=function(){};{var hhe=WG,zA={},phe=YG;FA=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function qG(e,t,n,r,i){for(var s in e)if(phe(e,s)){var l;try{if(typeof e[s]!="function"){var f=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}l=e[s](t,s,r,n,null,hhe)}catch(m){l=m}if(l&&!(l instanceof Error)&&FA((r||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in zA)){zA[l.message]=!0;var d=i?i():"";FA("Failed "+n+" type: "+l.message+(d??""))}}}qG.resetWarningCache=function(){zA={}};var mhe=qG,vhe=_9.exports,ghe=fhe,J5=WG,C8=YG,rB=mhe,h3=function(){};h3=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function nT(){return null}var bhe=function(e,t){var n=typeof Symbol=="function"&&Symbol.iterator,r="@@iterator";function i(de){var Se=de&&(n&&de[n]||de[r]);if(typeof Se=="function")return Se}var s="<<anonymous>>",l={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:N,element:w(),elementType:T(),instanceOf:L,node:z(),objectOf:B,oneOf:M,oneOfType:F,shape:G,exact:K};function f(de,Se){return de===Se?de!==0||1/de===1/Se:de!==de&&Se!==Se}function d(de,Se){this.message=de,this.data=Se&&typeof Se=="object"?Se:{},this.stack=""}d.prototype=Error.prototype;function m(de){var Se={},Me=0;function _e(he,ve,ye,xe,Ve,Pe,Qe){if(xe=xe||s,Pe=Pe||ye,Qe!==J5){if(t){var wt=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 wt.name="Invariant Violation",wt}else if(typeof console<"u"){var Ot=xe+":"+ye;!Se[Ot]&&Me<3&&(h3("You are manually calling a React.PropTypes validation function for the `"+Pe+"` prop on `"+xe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Se[Ot]=!0,Me++)}}return ve[ye]==null?he?ve[ye]===null?new d("The "+Ve+" `"+Pe+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new d("The "+Ve+" `"+Pe+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:de(ve,ye,xe,Ve,Pe)}var J=_e.bind(null,!1);return J.isRequired=_e.bind(null,!0),J}function b(de){function Se(Me,_e,J,he,ve,ye){var xe=Me[_e],Ve=ie(xe);if(Ve!==de){var Pe=le(xe);return new d("Invalid "+he+" `"+ve+"` of type "+("`"+Pe+"` supplied to `"+J+"`, expected ")+("`"+de+"`."),{expectedType:de})}return null}return m(Se)}function S(){return m(nT)}function N(de){function Se(Me,_e,J,he,ve){if(typeof de!="function")return new d("Property `"+ve+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ye=Me[_e];if(!Array.isArray(ye)){var xe=ie(ye);return new d("Invalid "+he+" `"+ve+"` of type "+("`"+xe+"` supplied to `"+J+"`, expected an array."))}for(var Ve=0;Ve<ye.length;Ve++){var Pe=de(ye,Ve,J,he,ve+"["+Ve+"]",J5);if(Pe instanceof Error)return Pe}return null}return m(Se)}function w(){function de(Se,Me,_e,J,he){var ve=Se[Me];if(!e(ve)){var ye=ie(ve);return new d("Invalid "+J+" `"+he+"` of type "+("`"+ye+"` supplied to `"+_e+"`, expected a single ReactElement."))}return null}return m(de)}function T(){function de(Se,Me,_e,J,he){var ve=Se[Me];if(!vhe.isValidElementType(ve)){var ye=ie(ve);return new d("Invalid "+J+" `"+he+"` of type "+("`"+ye+"` supplied to `"+_e+"`, expected a single ReactElement type."))}return null}return m(de)}function L(de){function Se(Me,_e,J,he,ve){if(!(Me[_e]instanceof de)){var ye=de.name||s,xe=Ae(Me[_e]);return new d("Invalid "+he+" `"+ve+"` of type "+("`"+xe+"` supplied to `"+J+"`, expected ")+("instance of `"+ye+"`."))}return null}return m(Se)}function M(de){if(!Array.isArray(de))return arguments.length>1?h3("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):h3("Invalid argument supplied to oneOf, expected an array."),nT;function Se(Me,_e,J,he,ve){for(var ye=Me[_e],xe=0;xe<de.length;xe++)if(f(ye,de[xe]))return null;var Ve=JSON.stringify(de,function(Qe,wt){var Ot=le(wt);return Ot==="symbol"?String(wt):wt});return new d("Invalid "+he+" `"+ve+"` of value `"+String(ye)+"` "+("supplied to `"+J+"`, expected one of "+Ve+"."))}return m(Se)}function B(de){function Se(Me,_e,J,he,ve){if(typeof de!="function")return new d("Property `"+ve+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ye=Me[_e],xe=ie(ye);if(xe!=="object")return new d("Invalid "+he+" `"+ve+"` of type "+("`"+xe+"` supplied to `"+J+"`, expected an object."));for(var Ve in ye)if(C8(ye,Ve)){var Pe=de(ye,Ve,J,he,ve+"."+Ve,J5);if(Pe instanceof Error)return Pe}return null}return m(Se)}function F(de){if(!Array.isArray(de))return h3("Invalid argument supplied to oneOfType, expected an instance of array."),nT;for(var Se=0;Se<de.length;Se++){var Me=de[Se];if(typeof Me!="function")return h3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(Me)+" at index "+Se+"."),nT}function _e(J,he,ve,ye,xe){for(var Ve=[],Pe=0;Pe<de.length;Pe++){var Qe=de[Pe],wt=Qe(J,he,ve,ye,xe,J5);if(wt==null)return null;wt.data&&C8(wt.data,"expectedType")&&Ve.push(wt.data.expectedType)}var Ot=Ve.length>0?", expected one of type ["+Ve.join(", ")+"]":"";return new d("Invalid "+ye+" `"+xe+"` supplied to "+("`"+ve+"`"+Ot+"."))}return m(_e)}function z(){function de(Se,Me,_e,J,he){return Z(Se[Me])?null:new d("Invalid "+J+" `"+he+"` supplied to "+("`"+_e+"`, expected a ReactNode."))}return m(de)}function H(de,Se,Me,_e,J){return new d((de||"React class")+": "+Se+" type `"+Me+"."+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function G(de){function Se(Me,_e,J,he,ve){var ye=Me[_e],xe=ie(ye);if(xe!=="object")return new d("Invalid "+he+" `"+ve+"` of type `"+xe+"` "+("supplied to `"+J+"`, expected `object`."));for(var Ve in de){var Pe=de[Ve];if(typeof Pe!="function")return H(J,he,ve,Ve,le(Pe));var Qe=Pe(ye,Ve,J,he,ve+"."+Ve,J5);if(Qe)return Qe}return null}return m(Se)}function K(de){function Se(Me,_e,J,he,ve){var ye=Me[_e],xe=ie(ye);if(xe!=="object")return new d("Invalid "+he+" `"+ve+"` of type `"+xe+"` "+("supplied to `"+J+"`, expected `object`."));var Ve=ghe({},Me[_e],de);for(var Pe in Ve){var Qe=de[Pe];if(C8(de,Pe)&&typeof Qe!="function")return H(J,he,ve,Pe,le(Qe));if(!Qe)return new d("Invalid "+he+" `"+ve+"` key `"+Pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(Me[_e],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(de),null," "));var wt=Qe(ye,Pe,J,he,ve+"."+Pe,J5);if(wt)return wt}return null}return m(Se)}function Z(de){switch(typeof de){case"number":case"string":case"undefined":return!0;case"boolean":return!de;case"object":if(Array.isArray(de))return de.every(Z);if(de===null||e(de))return!0;var Se=i(de);if(Se){var Me=Se.call(de),_e;if(Se!==de.entries){for(;!(_e=Me.next()).done;)if(!Z(_e.value))return!1}else for(;!(_e=Me.next()).done;){var J=_e.value;if(J&&!Z(J[1]))return!1}}else return!1;return!0;default:return!1}}function ne(de,Se){return de==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function ie(de){var Se=typeof de;return Array.isArray(de)?"array":de instanceof RegExp?"object":ne(Se,de)?"symbol":Se}function le(de){if(typeof de>"u"||de===null)return""+de;var Se=ie(de);if(Se==="object"){if(de instanceof Date)return"date";if(de instanceof RegExp)return"regexp"}return Se}function oe(de){var Se=le(de);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function Ae(de){return!de.constructor||!de.constructor.name?s:de.constructor.name}return l.checkPropTypes=rB,l.resetWarningCache=rB.resetWarningCache,l.PropTypes=l,l};{var yhe=_9.exports,She=!0;At.exports=bhe(yhe.isElement,She)}var BA="data-focus-lock",KG="data-focus-lock-disabled",xhe="data-no-focus-lock",Che="data-autofocus-inside",Nhe="data-no-autofocus";function whe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _he(e,t){var n=O.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function ZG(e,t){return _he(t||null,function(n){return e.forEach(function(r){return whe(r,n)})})}var N8={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};At.exports.node;function XG(e){return e}function QG(e,t){t===void 0&&(t=XG);var n=[],r=!1,i={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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(f){return f!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(f){return s(f)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var f=n;n=[],f.forEach(s),l=n}var d=function(){var b=l;l=[],b.forEach(s)},m=function(){return Promise.resolve().then(d)};m(),n={push:function(b){l.push(b),m()},filter:function(b){return l=l.filter(b),n}}}};return i}function yM(e,t){return t===void 0&&(t=XG),QG(e,t)}function JG(e){e===void 0&&(e={});var t=QG(null);return t.options=tv({async:!0,ssr:!1},e),t}var Ehe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",eW=function(e){var t=e.sideCar,n=F9(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 _(r,{...tv({},n)},void 0,!1,{fileName:Ehe,lineNumber:12,columnNumber:12},this)};eW.isSideCarExport=!0;function The(e,t){return e.useMedium(t),eW}var tW=yM({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),nW=yM(),Rhe=yM(),khe=JG({async:!0}),kN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",Ahe=[],SM=O.exports.forwardRef(function(t,n){var r,i=O.exports.useState(),s=i[0],l=i[1],f=O.exports.useRef(),d=O.exports.useRef(!1),m=O.exports.useRef(null),b=t.children,S=t.disabled,N=t.noFocusGuards,w=t.persistentFocus,T=t.crossFrame,L=t.autoFocus,M=t.allowTextSelection,B=t.group,F=t.className,z=t.whiteList,H=t.hasPositiveIndices,G=t.shards,K=G===void 0?Ahe:G,Z=t.as,ne=Z===void 0?"div":Z,ie=t.lockProps,le=ie===void 0?{}:ie,oe=t.sideCar,Ae=t.returnFocus,de=t.focusOptions,Se=t.onActivation,Me=t.onDeactivation,_e=O.exports.useState({}),J=_e[0],he=O.exports.useCallback(function(){m.current=m.current||document&&document.activeElement,f.current&&Se&&Se(f.current),d.current=!0},[Se]),ve=O.exports.useCallback(function(){d.current=!1,Me&&Me(f.current)},[Me]);O.exports.useEffect(function(){S||(m.current=null)},[]);var ye=O.exports.useCallback(function(ut){var It=m.current;if(It&&It.focus){var Qt=typeof Ae=="function"?Ae(It):Ae;if(Qt){var pn=typeof Qt=="object"?Qt:void 0;m.current=null,ut?Promise.resolve().then(function(){return It.focus(pn)}):It.focus(pn)}}},[Ae]),xe=O.exports.useCallback(function(ut){d.current&&tW.useMedium(ut)},[]),Ve=nW.useMedium,Pe=O.exports.useCallback(function(ut){f.current!==ut&&(f.current=ut,l(ut))},[]);typeof M<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),O.exports.useEffect(function(){f.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Qe=ja((r={},r[KG]=S&&"disabled",r[BA]=B,r),le),wt=N!==!0,Ot=wt&&N!=="tail",Ut=ZG([n,Pe]);return _(Ci,{children:[wt&&[_("div",{"data-focus-guard":!0,tabIndex:S?-1:0,style:N8},"guard-first",!1,{fileName:kN,lineNumber:130,columnNumber:3},this),H?_("div",{"data-focus-guard":!0,tabIndex:S?-1:1,style:N8},"guard-nearest",!1,{fileName:kN,lineNumber:136,columnNumber:37},this):null],!S&&_(oe,{id:J,sideCar:khe,observed:s,disabled:S,persistentFocus:w,crossFrame:T,autoFocus:L,whiteList:z,shards:K,onActivation:he,onDeactivation:ve,returnFocus:ye,focusOptions:de},void 0,!1,{fileName:kN,lineNumber:141,columnNumber:41},this),_(ne,{ref:Ut,...Qe,className:F,onBlur:Ve,onFocus:xe,children:b},void 0,!1,{fileName:kN,lineNumber:155,columnNumber:20},this),Ot&&_("div",{"data-focus-guard":!0,tabIndex:S?-1:0,style:N8},void 0,!1,{fileName:kN,lineNumber:161,columnNumber:51},this)]},void 0,!0)});SM.propTypes={children:At.exports.node,disabled:At.exports.bool,returnFocus:At.exports.oneOfType([At.exports.bool,At.exports.object,At.exports.func]),focusOptions:At.exports.object,noFocusGuards:At.exports.bool,hasPositiveIndices:At.exports.bool,allowTextSelection:At.exports.bool,autoFocus:At.exports.bool,persistentFocus:At.exports.bool,crossFrame:At.exports.bool,group:At.exports.string,className:At.exports.string,whiteList:At.exports.func,shards:At.exports.arrayOf(At.exports.any),as:At.exports.oneOfType([At.exports.string,At.exports.func,At.exports.object]),lockProps:At.exports.object,onActivation:At.exports.func,onDeactivation:At.exports.func,sideCar:At.exports.any.isRequired};SM.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 rW=SM;function $A(e,t){return $A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$A(e,t)}function xM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$A(e,t)}function aW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ohe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function Lhe(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(r){return r.displayName||r.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],l;function f(){l=e(s.map(function(m){return m.props})),t(l)}var d=function(m){xM(b,m);function b(){return m.apply(this,arguments)||this}b.peek=function(){return l};var S=b.prototype;return S.componentDidMount=function(){s.push(this),f()},S.componentDidUpdate=function(){f()},S.componentWillUnmount=function(){var w=s.indexOf(this);s.splice(w,1),f()},S.render=function(){return _(i,{...this.props},void 0,!1,{fileName:Ohe,lineNumber:67,columnNumber:29},this)},b}(O.exports.PureComponent);return aW(d,"displayName","SideEffect("+n(i)+")"),d}}var bv=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},UA=function(e){return Array.isArray(e)?e:[e]},Mhe=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"},iW=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},oW=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Dhe=function(e,t){return!e||oW(e)||!Mhe(e)&&t(iW(e))},sW=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Dhe(t,sW.bind(void 0,e));return e.set(t,r),r},Phe=function(e,t){return e&&!oW(e)?zhe(e)?t(iW(e)):!1:!0},lW=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Phe(t,lW.bind(void 0,e));return e.set(t,r),r},uW=function(e){return e.dataset},Ihe=function(e){return e.tagName==="BUTTON"},cW=function(e){return e.tagName==="INPUT"},fW=function(e){return cW(e)&&e.type==="radio"},Fhe=function(e){return!((cW(e)||Ihe(e))&&(e.type==="hidden"||e.disabled))},zhe=function(e){var t=e.getAttribute(Nhe);return![!0,"true",""].includes(t)},CM=function(e){var t;return Boolean(e&&((t=uW(e))===null||t===void 0?void 0:t.focusGuard))},G6=function(e){return!CM(e)},Bhe=function(e){return Boolean(e)},$he=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},dW=function(e,t,n){return bv(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort($he)},Uhe=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],NM=Uhe.join(","),Hhe="".concat(NM,", [data-focus-guard]"),hW=function(e,t){var n;return bv(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,i){return r.concat(i.matches(t?Hhe:NM)?[i]:[],hW(i))},[])},wM=function(e,t){return e.reduce(function(n,r){return n.concat(hW(r,t),r.parentNode?bv(r.parentNode.querySelectorAll(NM)).filter(function(i){return i===r}):[])},[])},jhe=function(e){var t=e.querySelectorAll("[".concat(Che,"]"));return bv(t).map(function(n){return wM([n])}).reduce(function(n,r){return n.concat(r)},[])},_M=function(e,t){return bv(e).filter(function(n){return sW(t,n)}).filter(function(n){return Fhe(n)})},aB=function(e,t){return t===void 0&&(t=new Map),bv(e).filter(function(n){return lW(t,n)})},HA=function(e,t,n){return dW(_M(wM(e,n),t),!0,n)},iB=function(e,t){return dW(_M(wM(e),t),!1)},Vhe=function(e,t){return _M(jhe(e),t)},Gw=function(e,t){return(e.shadowRoot?Gw(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||bv(e.children).some(function(n){return Gw(n,t)})},Ghe=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var s=e[r].compareDocumentPosition(e[i]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(l,f){return!t.has(f)})},pW=function(e){return e.parentNode?pW(e.parentNode):e},EM=function(e){var t=UA(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(BA);return n.push.apply(n,i?Ghe(bv(pW(r).querySelectorAll("[".concat(BA,'="').concat(i,'"]:not([').concat(KG,'="disabled"])')))):[r]),n},[])},mW=function(e){return e.activeElement?e.activeElement.shadowRoot?mW(e.activeElement.shadowRoot):e.activeElement:void 0},TM=function(){return document.activeElement?document.activeElement.shadowRoot?mW(document.activeElement.shadowRoot):document.activeElement:void 0},Whe=function(e){return e===document.activeElement},Yhe=function(e){return Boolean(bv(e.querySelectorAll("iframe")).some(function(t){return Whe(t)}))},vW=function(e){var t=document&&TM();return!t||t.dataset&&t.dataset.focusGuard?!1:EM(e).some(function(n){return Gw(n,t)||Yhe(n)})},qhe=function(){var e=document&&TM();return e?bv(document.querySelectorAll("[".concat(xhe,"]"))).some(function(t){return Gw(t,e)}):!1},Khe=function(e,t){return t.filter(fW).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},RM=function(e,t){return fW(e)&&e.name?Khe(e,t):e},Zhe=function(e){var t=new Set;return e.forEach(function(n){return t.add(RM(n,e))}),e.filter(function(n){return t.has(n)})},oB=function(e){return e[0]&&e.length>1?RM(e[0],e):e[0]},sB=function(e,t){return e.length>1?e.indexOf(RM(e[t],e)):t},gW="NEW_FOCUS",Xhe=function(e,t,n,r){var i=e.length,s=e[0],l=e[i-1],f=CM(n);if(!(n&&e.indexOf(n)>=0)){var d=n!==void 0?t.indexOf(n):-1,m=r?t.indexOf(r):d,b=r?e.indexOf(r):-1,S=d-m,N=t.indexOf(s),w=t.indexOf(l),T=Zhe(t),L=n!==void 0?T.indexOf(n):-1,M=L-(r?T.indexOf(r):d),B=sB(e,0),F=sB(e,i-1);if(d===-1||b===-1)return gW;if(!S&&b>=0)return b;if(d<=N&&f&&Math.abs(S)>1)return F;if(d>=w&&f&&Math.abs(S)>1)return B;if(S&&Math.abs(M)>1)return b;if(d<=N)return F;if(d>w)return B;if(S)return Math.abs(S)>1?b:(i+b+S)%i}},jA=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&jA(e.parentNode.host||e.parentNode,t),t},w8=function(e,t){for(var n=jA(e),r=jA(t),i=0;i<n.length;i+=1){var s=n[i];if(r.indexOf(s)>=0)return s}return!1},bW=function(e,t,n){var r=UA(e),i=UA(t),s=r[0],l=!1;return i.filter(Boolean).forEach(function(f){l=w8(l||f,f)||l,n.filter(Boolean).forEach(function(d){var m=w8(s,d);m&&(!l||Gw(m,l)?l=m:l=w8(m,l))})}),l},Qhe=function(e,t){return e.reduce(function(n,r){return n.concat(Vhe(r,t))},[])},Jhe=function(e){return function(t){var n;return t.autofocus||!!(!((n=uW(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},epe=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(Bhe)},tpe=function(e,t){var n=document&&TM(),r=EM(e).filter(G6),i=bW(n||e,e,r),s=new Map,l=iB(r,s),f=HA(r,s).filter(function(w){var T=w.node;return G6(T)});if(!(!f[0]&&(f=l,!f[0]))){var d=iB([i],s).map(function(w){var T=w.node;return T}),m=epe(d,f),b=m.map(function(w){var T=w.node;return T}),S=Xhe(b,d,n,t);if(S===gW){var N=aB(l.map(function(w){var T=w.node;return T})).filter(Jhe(Qhe(r,s)));return{node:N&&N.length?oB(N):oB(aB(b))}}return S===void 0?S:m[S]}},npe=function(e){var t=EM(e).filter(G6),n=bW(e,e,t),r=new Map,i=HA([n],r,!0),s=HA(t,r).filter(function(l){var f=l.node;return G6(f)}).map(function(l){var f=l.node;return f});return i.map(function(l){var f=l.node,d=l.index;return{node:f,index:d,lockItem:s.indexOf(f)>=0,guard:CM(f)}})},rpe=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},_8=0,E8=!1,ape=function(e,t,n){n===void 0&&(n={});var r=tpe(e,t);if(!E8&&r){if(_8>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),E8=!0,setTimeout(function(){E8=!1},1);return}_8++,rpe(r.node,n.focusOptions),_8--}};const yW=ape;function SW(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var ipe=function(){return document&&document.activeElement===document.body},ope=function(){return ipe()||qhe()},O3=null,x3=null,L3=null,Ww=!1,spe=function(){return!0},lpe=function(t){return(O3.whiteList||spe)(t)},upe=function(t,n){L3={observerNode:t,portaledElement:n}},cpe=function(t){return L3&&L3.portaledElement===t};function lB(e,t,n,r){var i=null,s=e;do{var l=r[s];if(l.guard)l.node.dataset.focusAutoGuard&&(i=l);else if(l.lockItem){if(s!==e)return;i=null}else break}while((s+=n)!==t);i&&(i.node.tabIndex=0)}var fpe=function(t){return t&&"current"in t?t.current:t},dpe=function(t){return t?Boolean(Ww):Ww==="meanwhile"},hpe=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},ppe=function(t,n){return n.some(function(r){return hpe(t,r,r)})},W6=function(){var t=!1;if(O3){var n=O3,r=n.observed,i=n.persistentFocus,s=n.autoFocus,l=n.shards,f=n.crossFrame,d=n.focusOptions,m=r||L3&&L3.portaledElement,b=document&&document.activeElement;if(m){var S=[m].concat(l.map(fpe).filter(Boolean));if((!b||lpe(b))&&(i||dpe(f)||!ope()||!x3&&s)&&(m&&!(vW(S)||b&&ppe(b,S)||cpe(b))&&(document&&!x3&&b&&!s?(b.blur&&b.blur(),document.body.focus()):(t=yW(S,x3,{focusOptions:d}),L3={})),Ww=!1,x3=document&&document.activeElement),document){var N=document&&document.activeElement,w=npe(S),T=w.map(function(L){var M=L.node;return M}).indexOf(N);T>-1&&(w.filter(function(L){var M=L.guard,B=L.node;return M&&B.dataset.focusAutoGuard}).forEach(function(L){var M=L.node;return M.removeAttribute("tabIndex")}),lB(T,w.length,1,w),lB(T,-1,-1,w))}}}return t},xW=function(t){W6()&&t&&(t.stopPropagation(),t.preventDefault())},kM=function(){return SW(W6)},mpe=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||upe(r,n)},vpe=function(){return null};At.exports.node.isRequired;var CW=function(){Ww="just",setTimeout(function(){Ww="meanwhile"},0)},gpe=function(){document.addEventListener("focusin",xW),document.addEventListener("focusout",kM),window.addEventListener("blur",CW)},bpe=function(){document.removeEventListener("focusin",xW),document.removeEventListener("focusout",kM),window.removeEventListener("blur",CW)};function ype(e){return e.filter(function(t){var n=t.disabled;return!n})}function Spe(e){var t=e.slice(-1)[0];t&&!O3&&gpe();var n=O3,r=n&&t&&t.id===n.id;O3=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var s=i.id;return s===n.id}).length||n.returnFocus(!t)),t?(x3=null,(!r||n.observed!==t.observed)&&t.onActivation(),W6(),SW(W6)):(bpe(),x3=null)}tW.assignSyncMedium(mpe);nW.assignMedium(kM);Rhe.assignMedium(function(e){return e({moveFocusInside:yW,focusInside:vW})});const xpe=Lhe(ype,Spe)(vpe);var Cpe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",NW=O.exports.forwardRef(function(t,n){return _(rW,{sideCar:xpe,ref:n,...t},void 0,!1,{fileName:Cpe,lineNumber:16,columnNumber:23},this)}),wW=rW.propTypes||{};wW.sideCar;var Npe=bM(wW,["sideCar"]);NW.propTypes=Npe;const wpe=NW;var _pe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",_W=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:s,isDisabled:l,autoFocus:f,persistentFocus:d,lockFocusAcrossFrames:m}=e,b=O.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&Rfe(r.current).length===0&&requestAnimationFrame(()=>{var T;(T=r.current)==null||T.focus()})},[t,r]),S=O.exports.useCallback(()=>{var w;(w=n?.current)==null||w.focus()},[n]);return _(wpe,{crossFrame:m,persistentFocus:d,autoFocus:f,disabled:l,onActivation:b,onDeactivation:S,returnFocus:i&&!n,children:s},void 0,!1,{fileName:_pe,lineNumber:38,columnNumber:26},globalThis)};_W.displayName="FocusLock";var QT="right-scroll-bar-position",JT="width-before-scroll-bar",Epe="with-scroll-bars-hidden",Tpe="--removed-body-scroll-bar-size",EW=JG(),uB="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",T8=function(){},r7=O.exports.forwardRef(function(e,t){var n=O.exports.useRef(null),r=O.exports.useState({onScrollCapture:T8,onWheelCapture:T8,onTouchMoveCapture:T8}),i=r[0],s=r[1],l=e.forwardProps,f=e.children,d=e.className,m=e.removeScrollBar,b=e.enabled,S=e.shards,N=e.sideCar,w=e.noIsolation,T=e.inert,L=e.allowPinchZoom,M=e.as,B=M===void 0?"div":M,F=F9(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),z=N,H=ZG([n,t]),G=tv(tv({},F),i);return _(Ci,{children:[b&&_(z,{sideCar:EW,removeScrollBar:m,shards:S,noIsolation:w,inert:T,setCallbacks:s,allowPinchZoom:!!L,lockRef:n},void 0,!1,{fileName:uB,lineNumber:24,columnNumber:21},this),l?O.exports.cloneElement(O.exports.Children.only(f),tv(tv({},G),{ref:H})):_(B,{...tv({},G,{className:d,ref:H}),children:f},void 0,!1,{fileName:uB,lineNumber:25,columnNumber:142},this)]},void 0,!0)});r7.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};r7.classNames={fullWidth:JT,zeroRight:QT};var Rpe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kpe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rpe();return t&&e.setAttribute("nonce",t),e}function Ape(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ope(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lpe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kpe())&&(Ape(t,n),Ope(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mpe=function(){var e=Lpe();return function(t,n){O.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},TW=function(){var e=Mpe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Dpe={left:0,top:0,right:0,gap:0},R8=function(e){return parseInt(e||"",10)||0},Ppe=function(e){var t=window.getComputedStyle(document.body);t.overflowY==="hidden"&&console.error("react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body");var n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[R8(n),R8(r),R8(i)]},Ipe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dpe;var t=Ppe(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])}},Fpe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",zpe=TW(),Bpe=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,f=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Epe,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(f,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(l,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(f,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(QT,` {
right: `).concat(f,"px ").concat(r,`;
}
.`).concat(JT,` {
margin-right: `).concat(f,"px ").concat(r,`;
}
.`).concat(QT," .").concat(QT,` {
right: 0 `).concat(r,`;
}
.`).concat(JT," .").concat(JT,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(Tpe,": ").concat(f,`px;
}
`)},$pe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,s=O.exports.useMemo(function(){return Ipe(i)},[i]);return _(zpe,{styles:Bpe(s,!t,i,n?"":"!important")},void 0,!1,{fileName:Fpe,lineNumber:27,columnNumber:12},this)},VA=!1;if(typeof window<"u")try{var rT=Object.defineProperty({},"passive",{get:function(){return VA=!0,!0}});window.addEventListener("test",rT,rT),window.removeEventListener("test",rT,rT)}catch{VA=!1}var e3=VA?{passive:!1}:!1,Upe=function(e){return e.tagName==="TEXTAREA"},RW=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Upe(e)&&n[t]==="visible")},Hpe=function(e){return RW(e,"overflowY")},jpe=function(e){return RW(e,"overflowX")},cB=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=kW(e,n);if(r){var i=AW(e,n),s=i[1],l=i[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Vpe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Gpe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},kW=function(e,t){return e==="v"?Hpe(t):jpe(t)},AW=function(e,t){return e==="v"?Vpe(t):Gpe(t)},Wpe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ype=function(e,t,n,r,i){var s=Wpe(e,window.getComputedStyle(t).direction),l=s*r,f=n.target,d=t.contains(f),m=!1,b=l>0,S=0,N=0;do{var w=AW(e,f),T=w[0],L=w[1],M=w[2],B=L-M-s*T;(T||B)&&kW(e,f)&&(S+=B,N+=T),f=f.parentNode}while(!d&&f!==document.body||d&&(t.contains(f)||t===f));return(b&&(i&&S===0||!i&&l>S)||!b&&(i&&N===0||!i&&-l>N))&&(m=!0),m},fB="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",aT=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dB=function(e){return[e.deltaX,e.deltaY]},hB=function(e){return e&&"current"in e?e.current:e},qpe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kpe=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Zpe=0,t3=[];function Xpe(e){var t=O.exports.useRef([]),n=O.exports.useRef([0,0]),r=O.exports.useRef(),i=O.exports.useState(Zpe++)[0],s=O.exports.useState(function(){return TW()})[0],l=O.exports.useRef(e);O.exports.useEffect(function(){l.current=e},[e]),O.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var L=iA([e.lockRef.current],(e.shards||[]).map(hB),!0).filter(Boolean);return L.forEach(function(M){return M.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),L.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=O.exports.useCallback(function(L,M){if("touches"in L&&L.touches.length===2)return!l.current.allowPinchZoom;var B=aT(L),F=n.current,z="deltaX"in L?L.deltaX:F[0]-B[0],H="deltaY"in L?L.deltaY:F[1]-B[1],G,K=L.target,Z=Math.abs(z)>Math.abs(H)?"h":"v";if("touches"in L&&Z==="h"&&K.type==="range")return!1;var ne=cB(Z,K);if(!ne)return!0;if(ne?G=Z:(G=Z==="v"?"h":"v",ne=cB(Z,K)),!ne)return!1;if(!r.current&&"changedTouches"in L&&(z||H)&&(r.current=G),!G)return!0;var ie=r.current||G;return Ype(ie,M,L,ie==="h"?z:H,!0)},[]),d=O.exports.useCallback(function(L){var M=L;if(!(!t3.length||t3[t3.length-1]!==s)){var B="deltaY"in M?dB(M):aT(M),F=t.current.filter(function(G){return G.name===M.type&&G.target===M.target&&qpe(G.delta,B)})[0];if(F&&F.should){M.cancelable&&M.preventDefault();return}if(!F){var z=(l.current.shards||[]).map(hB).filter(Boolean).filter(function(G){return G.contains(M.target)}),H=z.length>0?f(M,z[0]):!l.current.noIsolation;H&&M.cancelable&&M.preventDefault()}}},[]),m=O.exports.useCallback(function(L,M,B,F){var z={name:L,delta:M,target:B,should:F};t.current.push(z),setTimeout(function(){t.current=t.current.filter(function(H){return H!==z})},1)},[]),b=O.exports.useCallback(function(L){n.current=aT(L),r.current=void 0},[]),S=O.exports.useCallback(function(L){m(L.type,dB(L),L.target,f(L,e.lockRef.current))},[]),N=O.exports.useCallback(function(L){m(L.type,aT(L),L.target,f(L,e.lockRef.current))},[]);O.exports.useEffect(function(){return t3.push(s),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:N}),document.addEventListener("wheel",d,e3),document.addEventListener("touchmove",d,e3),document.addEventListener("touchstart",b,e3),function(){t3=t3.filter(function(L){return L!==s}),document.removeEventListener("wheel",d,e3),document.removeEventListener("touchmove",d,e3),document.removeEventListener("touchstart",b,e3)}},[]);var w=e.removeScrollBar,T=e.inert;return _(Ci,{children:[T?_(s,{styles:Kpe(i)},void 0,!1,{fileName:fB,lineNumber:144,columnNumber:17},this):null,w?_($pe,{gapMode:"margin"},void 0,!1,{fileName:fB,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Qpe=The(EW,Xpe);var Jpe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",OW=O.exports.forwardRef(function(e,t){return _(r7,{...tv({},e,{ref:t,sideCar:Qpe})},void 0,!1,{fileName:Jpe,lineNumber:5,columnNumber:74},this)});OW.classNames=r7.classNames;const LW=OW;var pf="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",$S=(...e)=>e.filter(Boolean).join(" ");function YN(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var eme=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}},GA=new eme;function tme(e,t){O.exports.useEffect(()=>(t&&GA.add(e),()=>{GA.remove(e)}),[t,e])}function nme(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:s=!0,useInert:l=!0,onOverlayClick:f,onEsc:d}=e,m=O.exports.useRef(null),b=O.exports.useRef(null),[S,N,w]=ame(r,"chakra-modal","chakra-modal--header","chakra-modal--body");rme(m,t&&l),tme(m,t);const T=O.exports.useRef(null),L=O.exports.useCallback(ne=>{T.current=ne.target},[]),M=O.exports.useCallback(ne=>{ne.key==="Escape"&&(ne.stopPropagation(),s&&n?.(),d?.())},[s,n,d]),[B,F]=O.exports.useState(!1),[z,H]=O.exports.useState(!1),G=O.exports.useCallback((ne={},ie=null)=>({role:"dialog",...ne,ref:xi(ie,m),id:S,tabIndex:-1,"aria-modal":!0,"aria-labelledby":B?N:void 0,"aria-describedby":z?w:void 0,onClick:YN(ne.onClick,le=>le.stopPropagation())}),[w,z,S,N,B]),K=O.exports.useCallback(ne=>{ne.stopPropagation(),T.current===ne.target&&(!GA.isTopModal(m)||(i&&n?.(),f?.()))},[n,i,f]),Z=O.exports.useCallback((ne={},ie=null)=>({...ne,ref:xi(ie,b),onClick:YN(ne.onClick,K),onKeyDown:YN(ne.onKeyDown,M),onMouseDown:YN(ne.onMouseDown,L)}),[M,L,K]);return{isOpen:t,onClose:n,headerId:N,bodyId:w,setBodyMounted:H,setHeaderMounted:F,dialogRef:m,overlayRef:b,getDialogProps:G,getDialogContainerProps:Z}}function rme(e,t){const n=e.current;O.exports.useEffect(()=>{if(!(!e.current||!t))return GG(e.current)},[t,e,n])}function ame(e,...t){const n=O.exports.useId(),r=e||n;return O.exports.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[ime,US]=Va({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[ome,Mb]=Va({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Z3=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:i,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:f,blockScrollOnMount:d,allowPinchZoom:m,preserveScrollBarGap:b,motionPreset:S,lockFocusAcrossFrames:N,onCloseComplete:w}=e,T=hu("Modal",e),M={...nme(e),autoFocus:r,trapFocus:i,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:f,blockScrollOnMount:d,allowPinchZoom:m,preserveScrollBarGap:b,motionPreset:S,lockFocusAcrossFrames:N};return _(ome,{value:M,children:_(ime,{value:T,children:_(f0,{onExitComplete:w,children:M.isOpen&&_(BS,{...t,children:n},void 0,!1,{fileName:pf,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:pf,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:pf,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:pf,lineNumber:189,columnNumber:26},globalThis)};Z3.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Z3.displayName="Modal";var Y6=Ct((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:s}=Mb();O.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const l=$S("chakra-modal__body",n),f=US();return ke.createElement(nt.div,{ref:t,className:l,id:i,...r,__css:f.body})});Y6.displayName="ModalBody";var AM=Ct((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:s}=Mb(),l=$S("chakra-modal__close-btn",r),f=US();return _(Q9,{ref:t,__css:f.closeButton,className:l,onClick:YN(n,d=>{d.stopPropagation(),s()}),...i},void 0,!1,{fileName:pf,lineNumber:241,columnNumber:26},globalThis)});AM.displayName="ModalCloseButton";function MW(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:s,allowPinchZoom:l,finalFocusRef:f,returnFocusOnClose:d,preserveScrollBarGap:m,lockFocusAcrossFrames:b}=Mb(),[S,N]=jL();return O.exports.useEffect(()=>{!S&&N&&setTimeout(N)},[S,N]),_(_W,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:f,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:b,children:_(LW,{removeScrollBar:!m,allowPinchZoom:l,enabled:s,forwardProps:!0,children:e.children},void 0,!1,{fileName:pf,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:pf,lineNumber:284,columnNumber:26},this)}var sme={slideInBottom:{...CA,custom:{offsetY:16,reverse:!0}},slideInRight:{...CA,custom:{offsetX:16,reverse:!0}},scale:{...VV,custom:{initialScale:.95,reverse:!0}},none:{}},lme=nt(lh.section),DW=O.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,i=sme[n];return _(lme,{ref:t,...i,...r},void 0,!1,{fileName:pf,lineNumber:324,columnNumber:26},globalThis)});DW.displayName="ModalTransition";var Yw=Ct((e,t)=>{const{className:n,children:r,containerProps:i,...s}=e,{getDialogProps:l,getDialogContainerProps:f}=Mb(),d=l(s,t),m=f(i),b=$S("chakra-modal__content",n),S=US(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...S.dialog},w={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...S.dialogContainer},{motionPreset:T}=Mb();return ke.createElement(MW,null,ke.createElement(nt.div,{...m,className:"chakra-modal__content-container",tabIndex:-1,__css:w},_(DW,{preset:T,className:b,...d,__css:N,children:r},void 0,!1,{fileName:pf,lineNumber:366,columnNumber:22},globalThis)))});Yw.displayName="ModalContent";var OM=Ct((e,t)=>{const{className:n,...r}=e,i=$S("chakra-modal__footer",n),s=US(),l={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return ke.createElement(nt.footer,{ref:t,...r,__css:l,className:i})});OM.displayName="ModalFooter";var LM=Ct((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:s}=Mb();O.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const l=$S("chakra-modal__header",n),f=US(),d={flex:0,...f.header};return ke.createElement(nt.header,{ref:t,className:l,id:i,...r,__css:d})});LM.displayName="ModalHeader";var ume=nt(lh.div),qw=Ct((e,t)=>{const{className:n,transition:r,...i}=e,s=$S("chakra-modal__overlay",n),l=US(),f={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...l.overlay},{motionPreset:d}=Mb();return _(ume,{...d==="none"?{}:jV,__css:f,ref:t,className:s,...i},void 0,!1,{fileName:pf,lineNumber:450,columnNumber:26},globalThis)});qw.displayName="ModalOverlay";function cme(e){const{leastDestructiveRef:t,...n}=e;return _(Z3,{...n,initialFocusRef:t},void 0,!1,{fileName:pf,lineNumber:464,columnNumber:26},this)}var fme=Ct((e,t)=>_(Yw,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:pf,lineNumber:469,columnNumber:70},globalThis)),[Fke,dme]=Va(),hme=nt(GV),pme=Ct((e,t)=>{const{className:n,children:r,...i}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:f}=Mb(),d=s(i,t),m=l(),b=$S("chakra-modal__content",n),S=US(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...S.dialog},w={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...S.dialogContainer},{placement:T}=dme();return ke.createElement(nt.div,{...m,className:"chakra-modal__content-container",__css:w},_(MW,{children:_(hme,{direction:T,in:f,className:b,...d,__css:N,children:r},void 0,!1,{fileName:pf,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:pf,lineNumber:547,columnNumber:22},globalThis))});pme.displayName="DrawerContent";var iT="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/node_modules/@chakra-ui/icon/dist/index.esm.js",pB={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:iT,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:iT,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:iT,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:iT,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},MM=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??pB.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??pB.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});MM.displayName="Icon";function mme(e,t){const n=Jo(e);O.exports.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var Db="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",PW=(...e)=>e.filter(Boolean).join(" "),k8=e=>e?!0:void 0;function jm(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var vme=e=>_(MM,{viewBox:"0 0 24 24",...e,children:_("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"},void 0,!1,{fileName:Db,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:Db,lineNumber:31,columnNumber:51},globalThis),gme=e=>_(MM,{viewBox:"0 0 24 24",...e,children:_("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"},void 0,!1,{fileName:Db,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:Db,lineNumber:38,columnNumber:49},globalThis);function mB(e,t,n,r){O.exports.useEffect(()=>{if(!e.current||!r)return;const i=e.current.ownerDocument.defaultView??window,s=Array.isArray(t)?t:[t],l=new i.MutationObserver(f=>{for(const d of f)d.type==="attributes"&&d.attributeName&&s.includes(d.attributeName)&&n(d)});return l.observe(e.current,{attributes:!0,attributeFilter:s}),()=>l.disconnect()})}var bme=50,vB=300;function yme(e,t){const[n,r]=O.exports.useState(!1),[i,s]=O.exports.useState(null),[l,f]=O.exports.useState(!0),d=O.exports.useRef(null),m=()=>clearTimeout(d.current);mme(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?bme:null);const b=O.exports.useCallback(()=>{l&&e(),d.current=setTimeout(()=>{f(!1),r(!0),s("increment")},vB)},[e,l]),S=O.exports.useCallback(()=>{l&&t(),d.current=setTimeout(()=>{f(!1),r(!0),s("decrement")},vB)},[t,l]),N=O.exports.useCallback(()=>{f(!0),r(!1),m()},[]);return O.exports.useEffect(()=>()=>m(),[]),{up:b,down:S,stop:N,isSpinning:n}}var Sme=/^[Ee0-9+\-.]$/;function xme(e){return Sme.test(e)}function Cme(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 Nme(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,step:l=1,isReadOnly:f,isDisabled:d,isRequired:m,isInvalid:b,pattern:S="[0-9]*(.[0-9]+)?",inputMode:N="decimal",allowMouseWheel:w,id:T,onChange:L,precision:M,name:B,"aria-describedby":F,"aria-label":z,"aria-labelledby":H,onFocus:G,onBlur:K,onInvalid:Z,getAriaValueText:ne,isValidCharacter:ie,format:le,parse:oe,...Ae}=e,de=Jo(G),Se=Jo(K),Me=Jo(Z),_e=Jo(ie??xme),J=Jo(ne),he=wce(e),{update:ve,increment:ye,decrement:xe}=he,[Ve,Pe]=O.exports.useState(!1),Qe=!(f||d),wt=O.exports.useRef(null),Ot=O.exports.useRef(null),Ut=O.exports.useRef(null),ut=O.exports.useRef(null),It=O.exports.useCallback(Je=>Je.split("").filter(_e).join(""),[_e]),Qt=O.exports.useCallback(Je=>oe?.(Je)??Je,[oe]),pn=O.exports.useCallback(Je=>(le?.(Je)??Je).toString(),[le]);V3(()=>{(he.valueAsNumber>s||he.valueAsNumber<i)&&Me?.("rangeOverflow",pn(he.value),he.valueAsNumber)},[he.valueAsNumber,he.value,pn,Me]),av(()=>{if(!wt.current)return;if(wt.current.value!=he.value){const Mn=Qt(wt.current.value);he.setValue(It(Mn))}},[Qt,It]);const ht=O.exports.useCallback((Je=l)=>{Qe&&ye(Je)},[ye,Qe,l]),gn=O.exports.useCallback((Je=l)=>{Qe&&xe(Je)},[xe,Qe,l]),De=yme(ht,gn);mB(Ut,"disabled",De.stop,De.isSpinning),mB(ut,"disabled",De.stop,De.isSpinning);const kt=O.exports.useCallback(Je=>{if(Je.nativeEvent.isComposing)return;const br=Qt(Je.currentTarget.value);ve(It(br)),Ot.current={start:Je.currentTarget.selectionStart,end:Je.currentTarget.selectionEnd}},[ve,It,Qt]),Zt=O.exports.useCallback(Je=>{var Mn;de?.(Je),Ot.current&&(Je.target.selectionStart=Ot.current.start??((Mn=Je.currentTarget.value)==null?void 0:Mn.length),Je.currentTarget.selectionEnd=Ot.current.end??Je.currentTarget.selectionStart)},[de]),Pt=O.exports.useCallback(Je=>{if(Je.nativeEvent.isComposing)return;Cme(Je,_e)||Je.preventDefault();const Mn=un(Je)*l,br=Je.key,Xe={ArrowUp:()=>ht(Mn),ArrowDown:()=>gn(Mn),Home:()=>ve(i),End:()=>ve(s)}[br];Xe&&(Je.preventDefault(),Xe(Je))},[_e,l,ht,gn,ve,i,s]),un=Je=>{let Mn=1;return(Je.metaKey||Je.ctrlKey)&&(Mn=.1),Je.shiftKey&&(Mn=10),Mn},fr=O.exports.useMemo(()=>{const Je=J?.(he.value);if(Je!=null)return Je;const Mn=he.value.toString();return Mn||void 0},[he.value,J]),an=O.exports.useCallback(()=>{let Je=he.value;Je!==""&&(he.valueAsNumber<i&&(Je=i),he.valueAsNumber>s&&(Je=s),he.cast(Je))},[he,s,i]),Rn=O.exports.useCallback(()=>{Pe(!1),n&&an()},[n,Pe,an]),wn=O.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var Je;(Je=wt.current)==null||Je.focus()})},[t]),Ln=O.exports.useCallback(Je=>{Je.preventDefault(),De.up(),wn()},[wn,De]),St=O.exports.useCallback(Je=>{Je.preventDefault(),De.down(),wn()},[wn,De]);OA(()=>wt.current,"wheel",Je=>{var Mn;const pt=(((Mn=wt.current)==null?void 0:Mn.ownerDocument)??document).activeElement===wt.current;if(!w||!pt)return;Je.preventDefault();const Xe=un(Je)*l,Bt=Math.sign(Je.deltaY);Bt===-1?ht(Xe):Bt===1&&gn(Xe)},{passive:!1});const Ft=O.exports.useCallback((Je={},Mn=null)=>{const br=d||r&&he.isAtMax;return{...Je,ref:xi(Mn,Ut),role:"button",tabIndex:-1,onPointerDown:jm(Je.onPointerDown,pt=>{br||Ln(pt)}),onPointerLeave:jm(Je.onPointerLeave,De.stop),onPointerUp:jm(Je.onPointerUp,De.stop),disabled:br,"aria-disabled":k8(br)}},[he.isAtMax,r,Ln,De.stop,d]),er=O.exports.useCallback((Je={},Mn=null)=>{const br=d||r&&he.isAtMin;return{...Je,ref:xi(Mn,ut),role:"button",tabIndex:-1,onPointerDown:jm(Je.onPointerDown,pt=>{br||St(pt)}),onPointerLeave:jm(Je.onPointerLeave,De.stop),onPointerUp:jm(Je.onPointerUp,De.stop),disabled:br,"aria-disabled":k8(br)}},[he.isAtMin,r,St,De.stop,d]),En=O.exports.useCallback((Je={},Mn=null)=>({name:B,inputMode:N,type:"text",pattern:S,"aria-labelledby":H,"aria-label":z,"aria-describedby":F,id:T,disabled:d,...Je,readOnly:Je.readOnly??f,"aria-readonly":Je.readOnly??f,"aria-required":Je.required??m,required:Je.required??m,ref:xi(wt,Mn),value:pn(he.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":Number.isNaN(he.valueAsNumber)?void 0:he.valueAsNumber,"aria-invalid":k8(b??he.isOutOfRange),"aria-valuetext":fr,autoComplete:"off",autoCorrect:"off",onChange:jm(Je.onChange,kt),onKeyDown:jm(Je.onKeyDown,Pt),onFocus:jm(Je.onFocus,Zt,()=>Pe(!0)),onBlur:jm(Je.onBlur,Se,Rn)}),[B,N,S,H,z,pn,F,T,d,m,f,b,he.value,he.valueAsNumber,he.isOutOfRange,i,s,fr,kt,Pt,Zt,Se,Rn]);return{value:pn(he.value),valueAsNumber:he.valueAsNumber,isFocused:Ve,isDisabled:d,isReadOnly:f,getIncrementButtonProps:Ft,getDecrementButtonProps:er,getInputProps:En,htmlProps:Ae}}var[wme,a7]=Va({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[_me,DM]=Va({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),IW=Ct(function(t,n){const r=hu("NumberInput",t),i=Ia(t),s=tM(i),{htmlProps:l,...f}=Nme(s),d=O.exports.useMemo(()=>f,[f]);return ke.createElement(_me,{value:d},ke.createElement(wme,{value:r},ke.createElement(nt.div,{...l,ref:n,className:PW("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});IW.displayName="NumberInput";var Eme=Ct(function(t,n){const r=a7();return ke.createElement(nt.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}})});Eme.displayName="NumberInputStepper";var FW=Ct(function(t,n){const{getInputProps:r}=DM(),i=r(t,n),s=a7();return ke.createElement(nt.input,{...i,className:PW("chakra-numberinput__field",t.className),__css:{width:"100%",...s.field}})});FW.displayName="NumberInputField";var zW=nt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),BW=Ct(function(t,n){const r=a7(),{getDecrementButtonProps:i}=DM(),s=i(t,n);return _(zW,{...s,__css:r.stepper,children:t.children??_(vme,{},void 0,!1,{fileName:Db,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:Db,lineNumber:509,columnNumber:26},this)});BW.displayName="NumberDecrementStepper";var $W=Ct(function(t,n){const{getIncrementButtonProps:r}=DM(),i=r(t,n),s=a7();return _(zW,{...i,__css:s.stepper,children:t.children??_(gme,{},void 0,!1,{fileName:Db,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:Db,lineNumber:519,columnNumber:26},this)});$W.displayName="NumberIncrementStepper";var q6="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/popover/dist/index.esm.js",C_=(...e)=>e.filter(Boolean).join(" ");function Tme(e,...t){return Rme(e)?e(...t):e}var Rme=e=>typeof e=="function";function Vm(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function kme(...e){return function(n){e.forEach(r=>{r?.(n)})}}var[Ame,HS]=Va({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[Ome,N_]=Va({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),n3={click:"click",hover:"hover"};function Lme(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:s=!0,autoFocus:l=!0,arrowSize:f,arrowShadowColor:d,trigger:m=n3.click,openDelay:b=200,closeDelay:S=200,isLazy:N,lazyBehavior:w="unmount",computePositionOnMount:T,...L}=e,{isOpen:M,onClose:B,onOpen:F,onToggle:z}=UG(e),H=O.exports.useRef(null),G=O.exports.useRef(null),K=O.exports.useRef(null),Z=O.exports.useRef(!1),ne=O.exports.useRef(!1);M&&(ne.current=!0);const[ie,le]=O.exports.useState(!1),[oe,Ae]=O.exports.useState(!1),de=O.exports.useId(),Se=i??de,[Me,_e,J,he]=["popover-trigger","popover-content","popover-header","popover-body"].map(kt=>`${kt}-${Se}`),{referenceRef:ve,getArrowProps:ye,getPopperProps:xe,getArrowInnerProps:Ve,forceUpdate:Pe}=$G({...L,enabled:M||!!T}),Qe=Rce({isOpen:M,ref:K});Dce({enabled:M,ref:G}),Lce(K,{focusRef:G,visible:M,shouldFocus:s&&m===n3.click}),Ice(K,{focusRef:r,visible:M,shouldFocus:l&&m===n3.click});const wt=HG({wasSelected:ne.current,enabled:N,mode:w,isSelected:Qe.present}),Ot=O.exports.useCallback((kt={},Zt=null)=>{const Pt={...kt,style:{...kt.style,transformOrigin:Os.transformOrigin.varRef,[Os.arrowSize.var]:f?`${f}px`:void 0,[Os.arrowShadowColor.var]:d},ref:xi(K,Zt),children:wt?kt.children:null,id:_e,tabIndex:-1,role:"dialog",onKeyDown:Vm(kt.onKeyDown,un=>{n&&un.key==="Escape"&&B()}),onBlur:Vm(kt.onBlur,un=>{const fr=gB(un),an=A8(K.current,fr),Rn=A8(G.current,fr);M&&t&&(!an&&!Rn)&&B()}),"aria-labelledby":ie?J:void 0,"aria-describedby":oe?he:void 0};return m===n3.hover&&(Pt.role="tooltip",Pt.onMouseEnter=Vm(kt.onMouseEnter,()=>{Z.current=!0}),Pt.onMouseLeave=Vm(kt.onMouseLeave,un=>{un.nativeEvent.relatedTarget!==null&&(Z.current=!1,setTimeout(B,S))})),Pt},[wt,_e,ie,J,oe,he,m,n,B,M,t,S,d,f]),Ut=O.exports.useCallback((kt={},Zt=null)=>xe({...kt,style:{visibility:M?"visible":"hidden",...kt.style}},Zt),[M,xe]),ut=O.exports.useCallback((kt,Zt=null)=>({...kt,ref:xi(Zt,H,ve)}),[H,ve]),It=O.exports.useRef(),Qt=O.exports.useRef(),pn=O.exports.useCallback(kt=>{H.current==null&&ve(kt)},[ve]),ht=O.exports.useCallback((kt={},Zt=null)=>{const Pt={...kt,ref:xi(G,Zt,pn),id:Me,"aria-haspopup":"dialog","aria-expanded":M,"aria-controls":_e};return m===n3.click&&(Pt.onClick=Vm(kt.onClick,z)),m===n3.hover&&(Pt.onFocus=Vm(kt.onFocus,()=>{It.current===void 0&&F()}),Pt.onBlur=Vm(kt.onBlur,un=>{const fr=gB(un),an=!A8(K.current,fr);M&&t&&an&&B()}),Pt.onKeyDown=Vm(kt.onKeyDown,un=>{un.key==="Escape"&&B()}),Pt.onMouseEnter=Vm(kt.onMouseEnter,()=>{Z.current=!0,It.current=window.setTimeout(F,b)}),Pt.onMouseLeave=Vm(kt.onMouseLeave,()=>{Z.current=!1,It.current&&(clearTimeout(It.current),It.current=void 0),Qt.current=window.setTimeout(()=>{Z.current===!1&&B()},S)})),Pt},[Me,M,_e,m,pn,z,F,t,B,b,S]);O.exports.useEffect(()=>()=>{It.current&&clearTimeout(It.current),Qt.current&&clearTimeout(Qt.current)},[]);const gn=O.exports.useCallback((kt={},Zt=null)=>({...kt,id:J,ref:xi(Zt,Pt=>{le(!!Pt)})}),[J]),De=O.exports.useCallback((kt={},Zt=null)=>({...kt,id:he,ref:xi(Zt,Pt=>{Ae(!!Pt)})}),[he]);return{forceUpdate:Pe,isOpen:M,onAnimationComplete:Qe.onComplete,onClose:B,getAnchorProps:ut,getArrowProps:ye,getArrowInnerProps:Ve,getPopoverPositionerProps:Ut,getPopoverProps:Ot,getTriggerProps:ht,getHeaderProps:gn,getBodyProps:De}}function A8(e,t){return e===t||e?.contains(t)}function gB(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function i7(e){const t=hu("Popover",e),{children:n,...r}=Ia(e),i=aC(),s=Lme({...r,direction:i.direction});return _(Ame,{value:s,children:_(Ome,{value:t,children:Tme(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})},void 0,!1,{fileName:q6,lineNumber:325,columnNumber:22},this)},void 0,!1,{fileName:q6,lineNumber:323,columnNumber:26},this)}i7.displayName="Popover";function o7(e){const{bg:t,bgColor:n,backgroundColor:r}=e,{getArrowProps:i,getArrowInnerProps:s}=HS(),l=N_(),f=t??n??r;return ke.createElement(nt.div,{...i(),className:"chakra-popover__arrow-positioner"},ke.createElement(nt.div,{className:C_("chakra-popover__arrow",e.className),...s(e),__css:{...l.arrow,"--popper-arrow-bg":f?`colors.${f}, ${f}`:void 0}}))}o7.displayName="PopoverArrow";var Mme=Ct(function(t,n){const{getBodyProps:r}=HS(),i=N_();return ke.createElement(nt.div,{...r(t,n),className:C_("chakra-popover__body",t.className),__css:i.body})});Mme.displayName="PopoverBody";var Dme=Ct(function(t,n){const{onClose:r}=HS(),i=N_();return _(Q9,{size:"sm",onClick:r,className:C_("chakra-popover__close-btn",t.className),__css:i.closeButton,ref:n,...t},void 0,!1,{fileName:q6,lineNumber:384,columnNumber:26},this)});Dme.displayName="PopoverCloseButton";function Pme(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var Ime={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Fme=lh(nt.section),PM=Ct(function(t,n){const{isOpen:r}=HS();return ke.createElement(Fme,{ref:n,variants:Pme(t.variants),...t,initial:!1,animate:r?"enter":"exit"})});PM.defaultProps={variants:Ime};PM.displayName="PopoverTransition";var s7=Ct(function(t,n){const{rootProps:r,...i}=t,{getPopoverProps:s,getPopoverPositionerProps:l,onAnimationComplete:f}=HS(),d=N_(),m={position:"relative",display:"flex",flexDirection:"column",...d.content};return ke.createElement(nt.div,{...l(r),__css:d.popper,className:"chakra-popover__popper"},_(PM,{...s(i,n),onAnimationComplete:kme(f,i.onAnimationComplete),className:C_("chakra-popover__content",t.className),__css:m},void 0,!1,{fileName:q6,lineNumber:470,columnNumber:22},this))});s7.displayName="PopoverContent";var UW=Ct(function(t,n){const{getHeaderProps:r}=HS(),i=N_();return ke.createElement(nt.header,{...r(t,n),className:C_("chakra-popover__header",t.className),__css:i.header})});UW.displayName="PopoverHeader";function l7(e){const t=O.exports.Children.only(e.children),{getTriggerProps:n}=HS();return O.exports.cloneElement(t,n(t.props,t.ref))}l7.displayName="PopoverTrigger";var bB="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function zme(e,t,n){return(e-t)*100/(n-t)}l_({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});l_({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var Bme=l_({"0%":{left:"-40%"},"100%":{left:"100%"}}),$me=l_({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Ume(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:s,isIndeterminate:l}=e,f=zme(t,n,r);return{bind:{"data-indeterminate":l?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":l?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof s=="function"?s(t,f):i})(),role:"progressbar"},percent:f,value:t}}var[Hme,jme]=Va({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Vme=e=>{const{min:t,max:n,value:r,isIndeterminate:i,...s}=e,l=Ume({value:r,min:t,max:n,isIndeterminate:i}),f=jme(),d={height:"100%",...f.filledTrack};return ke.createElement(nt.div,{style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})},HW=e=>{var t;const{value:n,min:r=0,max:i=100,hasStripe:s,isAnimated:l,children:f,borderRadius:d,isIndeterminate:m,"aria-label":b,"aria-labelledby":S,...N}=Ia(e),w=hu("Progress",e),T=d??((t=w.track)==null?void 0:t.borderRadius),L={animation:`${$me} 1s linear infinite`},F={...!m&&s&&l&&L,...m&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${Bme} 1s ease infinite normal none running`}},z={overflow:"hidden",position:"relative",...w.track};return ke.createElement(nt.div,{borderRadius:T,__css:z,...N},_(Hme,{value:w,children:[_(Vme,{"aria-label":b,"aria-labelledby":S,min:r,max:i,value:n,isIndeterminate:m,css:F,borderRadius:T},void 0,!1,{fileName:bB,lineNumber:232,columnNumber:22},globalThis),f]},void 0,!0,{fileName:bB,lineNumber:230,columnNumber:22},globalThis))};HW.displayName="Progress";var Gme=nt("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Gme.displayName="CircularProgressLabel";var LS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",Wme=(...e)=>e.filter(Boolean).join(" "),Yme=e=>e?"":void 0;function qme(e,t){const n={},r={};for(const[i,s]of Object.entries(e))t.includes(i)?n[i]=s:r[i]=s;return[n,r]}var jW=Ct(function(t,n){const{children:r,placeholder:i,className:s,...l}=t;return ke.createElement(nt.select,{...l,ref:n,className:Wme("chakra-select",s)},i&&_("option",{value:"",children:i},void 0,!1,{fileName:LS,lineNumber:42,columnNumber:37},this),r)});jW.displayName="SelectField";var VW=Ct((e,t)=>{var n;const r=hu("Select",e),{rootProps:i,placeholder:s,icon:l,color:f,height:d,h:m,minH:b,minHeight:S,iconColor:N,iconSize:w,...T}=Ia(e),[L,M]=qme(T,wte),B=eM(M),F={width:"100%",height:"fit-content",position:"relative",color:f},z={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return ke.createElement(nt.div,{className:"chakra-select__wrapper",__css:F,...L,...i},_(jW,{ref:t,height:m??d,minH:b??S,placeholder:s,...B,__css:z,children:e.children},void 0,!1,{fileName:LS,lineNumber:86,columnNumber:22},globalThis),_(GW,{"data-disabled":Yme(B.disabled),...(N||f)&&{color:N||f},__css:r.icon,...w&&{fontSize:w},children:l},void 0,!1,{fileName:LS,lineNumber:93,columnNumber:39},globalThis))});VW.displayName="Select";var Kme=e=>_("svg",{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:LS,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:LS,lineNumber:101,columnNumber:46},globalThis),Zme=nt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),GW=e=>{const{children:t=_(Kme,{},void 0,!1,{fileName:LS,lineNumber:120,columnNumber:38},globalThis),...n}=e,r=O.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return _(Zme,{...n,className:"chakra-select__icon-wrapper",children:O.exports.isValidElement(t)?r:null},void 0,!1,{fileName:LS,lineNumber:132,columnNumber:26},globalThis)};GW.displayName="SelectIcon";function Xme(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Qme(e){const t=eve(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function WW(e){return!!e.touches}function Jme(e){return WW(e)&&e.touches.length>1}function eve(e){return e.view??window}function tve(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function nve(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function YW(e,t="page"){return WW(e)?tve(e,t):nve(e,t)}function rve(e){return t=>{const n=Qme(t);(!n||n&&t.button===0)&&e(t)}}function ave(e,t=!1){function n(i){e(i,{point:YW(i)})}return t?rve(n):n}function e6(e,t,n,r){return Xme(e,t,ave(n,t==="pointerdown"),r)}var ive=class{history=[];startEvent=null;lastEvent=null;lastEventInfo=null;handlers={};removeListeners=()=>{};threshold=3;win;constructor(e,t,n){if(this.win=e.view??window,Jme(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const r={point:YW(e)},{timestamp:i}=iF();this.history=[{...r.point,timestamp:i}];const{onSessionStart:s}=t;s?.(e,O8(r,this.history)),this.removeListeners=lve(e6(this.win,"pointermove",this.onPointerMove),e6(this.win,"pointerup",this.onPointerUp),e6(this.win,"pointercancel",this.onPointerUp))}updatePoint=()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const e=O8(this.lastEventInfo,this.history),t=this.startEvent!==null,n=uve(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!n)return;const{timestamp:r}=iF();this.history.push({...e.point,timestamp:r});const{onStart:i,onMove:s}=this.handlers;t||(i?.(this.lastEvent,e),this.startEvent=this.lastEvent),s?.(this.lastEvent,e)};onPointerMove=(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,Gne.update(this.updatePoint,!0)};onPointerUp=(e,t)=>{const n=O8(t,this.history),{onEnd:r,onSessionEnd:i}=this.handlers;i?.(e,n),this.end(),!(!r||!this.startEvent)&&r?.(e,n)};updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),Wne.update(this.updatePoint)}};function yB(e,t){return{x:e.x-t.x,y:e.y-t.y}}function O8(e,t){return{point:e.point,delta:yB(e.point,t[t.length-1]),offset:yB(e.point,t[0]),velocity:sve(t,.1)}}var ove=e=>e*1e3;function sve(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ove(t)));)n--;if(!r)return{x:0,y:0};const s=(i.timestamp-r.timestamp)/1e3;if(s===0)return{x:0,y:0};const l={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function lve(...e){return t=>e.reduce((n,r)=>r(n),t)}function L8(e,t){return Math.abs(e-t)}function SB(e){return"x"in e&&"y"in e}function uve(e,t){if(typeof e=="number"&&typeof t=="number")return L8(e,t);if(SB(e)&&SB(t)){const n=L8(e.x,t.x),r=L8(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function qW(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:s,onPanSessionEnd:l,threshold:f}=t,d=Boolean(n||r||i||s||l),m=O.exports.useRef(null),b={onSessionStart:s,onSessionEnd:l,onStart:r,onMove:n,onEnd(N,w){m.current=null,i?.(N,w)}};O.exports.useEffect(()=>{var N;(N=m.current)==null||N.updateHandlers(b)});function S(N){m.current=new ive(N,b,f)}O.exports.useEffect(()=>{const N=e.current;if(!(!N||!d))return e6(N,"pointerdown",S)},[d]),O.exports.useEffect(()=>()=>{var N;(N=m.current)==null||N.end(),m.current=null},[])}function cve(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=e.ownerDocument.defaultView??window,r=new n.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[s]=i;let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,f=m.blockSize}else l=e.offsetWidth,f=e.offsetHeight;t({width:l,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var fve=Boolean(globalThis?.document)?O.exports.useLayoutEffect:O.exports.useEffect;function dve(e,t){var n;if(!e||!e.parentElement)return;const r=((n=e.ownerDocument)==null?void 0:n.defaultView)??window,i=new r.MutationObserver(()=>{t()});return i.observe(e.parentElement,{childList:!0}),()=>{i.disconnect()}}function KW({getNodes:e,observeMutation:t=!0}){const[n,r]=O.exports.useState([]),[i,s]=O.exports.useState(0);return fve(()=>{const l=e(),f=l.map((d,m)=>cve(d,b=>{r(S=>[...S.slice(0,m),b,...S.slice(m+1)])}));if(t){const d=l[0];f.push(dve(d,()=>{s(m=>m+1)}))}return()=>{f.forEach(d=>{d?.()})}},[i]),n}function hve(e){return typeof e=="object"&&e!==null&&"current"in e}function pve(e){const[t]=KW({observeMutation:!1,getNodes(){return[hve(e)?e.current:e]}});return t}var ZW="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/slider/dist/index.esm.js",mve=Object.create,XW=Object.defineProperty,vve=Object.getOwnPropertyDescriptor,IM=Object.getOwnPropertyNames,gve=Object.getPrototypeOf,bve=Object.prototype.hasOwnProperty,yve=(e,t)=>function(){return e&&(t=(0,e[IM(e)[0]])(e=0)),t},Sve=(e,t)=>function(){return t||(0,e[IM(e)[0]])((t={exports:{}}).exports,t),t.exports},xve=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of IM(t))!bve.call(e,i)&&i!==n&&XW(e,i,{get:()=>t[i],enumerable:!(r=vve(t,i))||r.enumerable});return e},Cve=(e,t,n)=>(n=e!=null?mve(gve(e)):{},xve(t||!e||!e.__esModule?XW(n,"default",{value:e,enumerable:!0}):n,e)),wp=yve({"../../../react-shim.js"(){}}),Nve=Sve({"../../../node_modules/.pnpm/lodash.mergewith@4.6.2/node_modules/lodash.mergewith/index.js"(e,t){wp();var n=200,r="__lodash_hash_undefined__",i=800,s=16,l=9007199254740991,f="[object Arguments]",d="[object Array]",m="[object AsyncFunction]",b="[object Boolean]",S="[object Date]",N="[object Error]",w="[object Function]",T="[object GeneratorFunction]",L="[object Map]",M="[object Number]",B="[object Null]",F="[object Object]",z="[object Proxy]",H="[object RegExp]",G="[object Set]",K="[object String]",Z="[object Undefined]",ne="[object WeakMap]",ie="[object ArrayBuffer]",le="[object DataView]",oe="[object Float32Array]",Ae="[object Float64Array]",de="[object Int8Array]",Se="[object Int16Array]",Me="[object Int32Array]",_e="[object Uint8Array]",J="[object Uint8ClampedArray]",he="[object Uint16Array]",ve="[object Uint32Array]",ye=/[\\^$.*+?()[\]{}|]/g,xe=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,Pe={};Pe[oe]=Pe[Ae]=Pe[de]=Pe[Se]=Pe[Me]=Pe[_e]=Pe[J]=Pe[he]=Pe[ve]=!0,Pe[f]=Pe[d]=Pe[ie]=Pe[b]=Pe[le]=Pe[S]=Pe[N]=Pe[w]=Pe[L]=Pe[M]=Pe[F]=Pe[H]=Pe[G]=Pe[K]=Pe[ne]=!1;var Qe=typeof global=="object"&&global&&global.Object===Object&&global,wt=typeof self=="object"&&self&&self.Object===Object&&self,Ot=Qe||wt||Function("return this")(),Ut=typeof e=="object"&&e&&!e.nodeType&&e,ut=Ut&&typeof t=="object"&&t&&!t.nodeType&&t,It=ut&&ut.exports===Ut,Qt=It&&Qe.process,pn=function(){try{var $=ut&&ut.require&&ut.require("util").types;return $||Qt&&Qt.binding&&Qt.binding("util")}catch{}}(),ht=pn&&pn.isTypedArray;function gn($,X,se){switch(se.length){case 0:return $.call(X);case 1:return $.call(X,se[0]);case 2:return $.call(X,se[0],se[1]);case 3:return $.call(X,se[0],se[1],se[2])}return $.apply(X,se)}function De($,X){for(var se=-1,qe=Array($);++se<$;)qe[se]=X(se);return qe}function kt($){return function(X){return $(X)}}function Zt($,X){return $?.[X]}function Pt($,X){return function(se){return $(X(se))}}var un=Array.prototype,fr=Function.prototype,an=Object.prototype,Rn=Ot["__core-js_shared__"],wn=fr.toString,Ln=an.hasOwnProperty,St=function(){var $=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Ft=an.toString,er=wn.call(Object),En=RegExp("^"+wn.call(Ln).replace(ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=It?Ot.Buffer:void 0,Mn=Ot.Symbol,br=Ot.Uint8Array,pt=Je?Je.allocUnsafe:void 0,Xe=Pt(Object.getPrototypeOf,Object),Bt=Object.create,We=an.propertyIsEnumerable,Lt=un.splice,Rt=Mn?Mn.toStringTag:void 0,gt=function(){try{var $=Di(Object,"defineProperty");return $({},"",{}),$}catch{}}(),_t=Je?Je.isBuffer:void 0,kn=Math.max,Un=Date.now,Gt=Di(Ot,"Map"),rr=Di(Object,"create"),di=function(){function $(){}return function(X){if(!Kr(X))return{};if(Bt)return Bt(X);$.prototype=X;var se=new $;return $.prototype=void 0,se}}();function Yr($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function pr(){this.__data__=rr?rr(null):{},this.size=0}function Wi($){var X=this.has($)&&delete this.__data__[$];return this.size-=X?1:0,X}function lo($){var X=this.__data__;if(rr){var se=X[$];return se===r?void 0:se}return Ln.call(X,$)?X[$]:void 0}function uo($){var X=this.__data__;return rr?X[$]!==void 0:Ln.call(X,$)}function hi($,X){var se=this.__data__;return this.size+=this.has($)?0:1,se[$]=rr&&X===void 0?r:X,this}Yr.prototype.clear=pr,Yr.prototype.delete=Wi,Yr.prototype.get=lo,Yr.prototype.has=uo,Yr.prototype.set=hi;function yr($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function ti(){this.__data__=[],this.size=0}function Mo($){var X=this.__data__,se=co(X,$);if(se<0)return!1;var qe=X.length-1;return se==qe?X.pop():Lt.call(X,se,1),--this.size,!0}function Do($){var X=this.__data__,se=co(X,$);return se<0?void 0:X[se][1]}function ge($){return co(this.__data__,$)>-1}function dt($,X){var se=this.__data__,qe=co(se,$);return qe<0?(++this.size,se.push([$,X])):se[qe][1]=X,this}yr.prototype.clear=ti,yr.prototype.delete=Mo,yr.prototype.get=Do,yr.prototype.has=ge,yr.prototype.set=dt;function xt($){var X=-1,se=$==null?0:$.length;for(this.clear();++X<se;){var qe=$[X];this.set(qe[0],qe[1])}}function bn(){this.size=0,this.__data__={hash:new Yr,map:new(Gt||yr),string:new Yr}}function dr($){var X=ai(this,$).delete($);return this.size-=X?1:0,X}function _r($){return ai(this,$).get($)}function Ht($){return ai(this,$).has($)}function Kn($,X){var se=ai(this,$),qe=se.size;return se.set($,X),this.size+=se.size==qe?0:1,this}xt.prototype.clear=bn,xt.prototype.delete=dr,xt.prototype.get=_r,xt.prototype.has=Ht,xt.prototype.set=Kn;function sr($){var X=this.__data__=new yr($);this.size=X.size}function kr(){this.__data__=new yr,this.size=0}function hr($){var X=this.__data__,se=X.delete($);return this.size=X.size,se}function Fa($){return this.__data__.get($)}function Yi($){return this.__data__.has($)}function Po($,X){var se=this.__data__;if(se instanceof yr){var qe=se.__data__;if(!Gt||qe.length<n-1)return qe.push([$,X]),this.size=++se.size,this;se=this.__data__=new xt(qe)}return se.set($,X),this.size=se.size,this}sr.prototype.clear=kr,sr.prototype.delete=hr,sr.prototype.get=Fa,sr.prototype.has=Yi,sr.prototype.set=Po;function Ra($,X){var se=po($),qe=!se&&ts($),Kt=!se&&!qe&&oa($),yn=!se&&!qe&&!Kt&&Ps($),Jt=se||qe||Kt||yn,k=Jt?De($.length,String):[],j=k.length;for(var ae in $)(X||Ln.call($,ae))&&!(Jt&&(ae=="length"||Kt&&(ae=="offset"||ae=="parent")||yn&&(ae=="buffer"||ae=="byteLength"||ae=="byteOffset")||Ms(ae,j)))&&k.push(ae);return k}function gs($,X,se){(se!==void 0&&!qr($[X],se)||se===void 0&&!(X in $))&&Rl($,X,se)}function pu($,X,se){var qe=$[X];(!(Ln.call($,X)&&qr(qe,se))||se===void 0&&!(X in $))&&Rl($,X,se)}function co($,X){for(var se=$.length;se--;)if(qr($[se][0],X))return se;return-1}function Rl($,X,se){X=="__proto__"&&gt?gt($,X,{configurable:!0,enumerable:!0,value:se,writable:!0}):$[X]=se}var bs=fo();function Zn($){return $==null?$===void 0?Z:B:Rt&&Rt in Object($)?Ml($):Gu($)}function Io($){return ii($)&&Zn($)==f}function qi($){if(!Kr($)||Wa($))return!1;var X=Ds($)?En:xe;return X.test(Wu($))}function kl($){return ii($)&&_i($.length)&&!!Pe[Zn($)]}function Al($){if(!Kr($))return ka($);var X=wi($),se=[];for(var qe in $)qe=="constructor"&&(X||!Ln.call($,qe))||se.push(qe);return se}function nl($,X,se,qe,Kt){$!==X&&bs(X,function(yn,Jt){if(Kt||(Kt=new sr),Kr(yn))ni($,X,Jt,se,nl,qe,Kt);else{var k=qe?qe(zo($,Jt),yn,Jt+"",$,X,Kt):void 0;k===void 0&&(k=yn),gs($,Jt,k)}},vu)}function ni($,X,se,qe,Kt,yn,Jt){var k=zo($,se),j=zo(X,se),ae=Jt.get(j);if(ae){gs($,se,ae);return}var ce=yn?yn(k,j,se+"",$,X,Jt):void 0,Ne=ce===void 0;if(Ne){var mt=po(j),Ze=!mt&&oa(j),Tt=!mt&&!Ze&&Ps(j);ce=j,mt||Ze||Tt?po(k)?ce=k:ga(k)?ce=Vu(k):Ze?(Ne=!1,ce=Ll(j,!0)):Tt?(Ne=!1,ce=ju(j,!0)):ce=[]:yf(j)||ts(j)?(ce=k,ts(k)?ce=Ss(k):(!Kr(k)||Ds(k))&&(ce=Dl(j))):Ne=!1}Ne&&(Jt.set(j,ce),Kt(ce,j,qe,yn,Jt),Jt.delete(j)),gs($,se,ce)}function rl($,X){return Il(gr($,X,Yu),$+"")}var Ol=gt?function($,X){return gt($,"toString",{configurable:!0,enumerable:!1,value:Br(X),writable:!0})}:Yu;function Ll($,X){if(X)return $.slice();var se=$.length,qe=pt?pt(se):new $.constructor(se);return $.copy(qe),qe}function mu($){var X=new $.constructor($.byteLength);return new br(X).set(new br($)),X}function ju($,X){var se=X?mu($.buffer):$.buffer;return new $.constructor(se,$.byteOffset,$.length)}function Vu($,X){var se=-1,qe=$.length;for(X||(X=Array(qe));++se<qe;)X[se]=$[se];return X}function Fo($,X,se,qe){var Kt=!se;se||(se={});for(var yn=-1,Jt=X.length;++yn<Jt;){var k=X[yn],j=qe?qe(se[k],$[k],k,se,$):void 0;j===void 0&&(j=$[k]),Kt?Rl(se,k,j):pu(se,k,j)}return se}function ri($){return rl(function(X,se){var qe=-1,Kt=se.length,yn=Kt>1?se[Kt-1]:void 0,Jt=Kt>2?se[2]:void 0;for(yn=$.length>3&&typeof yn=="function"?(Kt--,yn):void 0,Jt&&Pl(se[0],se[1],Jt)&&(yn=Kt<3?void 0:yn,Kt=1),X=Object(X);++qe<Kt;){var k=se[qe];k&&$(X,k,qe,yn)}return X})}function fo($){return function(X,se,qe){for(var Kt=-1,yn=Object(X),Jt=qe(X),k=Jt.length;k--;){var j=Jt[$?k:++Kt];if(se(yn[j],j,yn)===!1)break}return X}}function ai($,X){var se=$.__data__;return ho(X)?se[typeof X=="string"?"string":"hash"]:se.map}function Di($,X){var se=Zt($,X);return qi(se)?se:void 0}function Ml($){var X=Ln.call($,Rt),se=$[Rt];try{$[Rt]=void 0;var qe=!0}catch{}var Kt=Ft.call($);return qe&&(X?$[Rt]=se:delete $[Rt]),Kt}function Dl($){return typeof $.constructor=="function"&&!wi($)?di(Xe($)):{}}function Ms($,X){var se=typeof $;return X=X??l,!!X&&(se=="number"||se!="symbol"&&Ve.test($))&&$>-1&&$%1==0&&$<X}function Pl($,X,se){if(!Kr(se))return!1;var qe=typeof X;return(qe=="number"?ys(se)&&Ms(X,se.length):qe=="string"&&X in se)?qr(se[X],$):!1}function ho($){var X=typeof $;return X=="string"||X=="number"||X=="symbol"||X=="boolean"?$!=="__proto__":$===null}function Wa($){return!!St&&St in $}function wi($){var X=$&&$.constructor,se=typeof X=="function"&&X.prototype||an;return $===se}function ka($){var X=[];if($!=null)for(var se in Object($))X.push(se);return X}function Gu($){return Ft.call($)}function gr($,X,se){return X=kn(X===void 0?$.length-1:X,0),function(){for(var qe=arguments,Kt=-1,yn=kn(qe.length-X,0),Jt=Array(yn);++Kt<yn;)Jt[Kt]=qe[X+Kt];Kt=-1;for(var k=Array(X+1);++Kt<X;)k[Kt]=qe[Kt];return k[X]=se(Jt),gn($,this,k)}}function zo($,X){if(!(X==="constructor"&&typeof $[X]=="function")&&X!="__proto__")return $[X]}var Il=Xn(Ol);function Xn($){var X=0,se=0;return function(){var qe=Un(),Kt=s-(qe-se);if(se=qe,Kt>0){if(++X>=i)return arguments[0]}else X=0;return $.apply(void 0,arguments)}}function Wu($){if($!=null){try{return wn.call($)}catch{}try{return $+""}catch{}}return""}function qr($,X){return $===X||$!==$&&X!==X}var ts=Io(function(){return arguments}())?Io:function($){return ii($)&&Ln.call($,"callee")&&!We.call($,"callee")},po=Array.isArray;function ys($){return $!=null&&_i($.length)&&!Ds($)}function ga($){return ii($)&&ys($)}var oa=_t||mo;function Ds($){if(!Kr($))return!1;var X=Zn($);return X==w||X==T||X==m||X==z}function _i($){return typeof $=="number"&&$>-1&&$%1==0&&$<=l}function Kr($){var X=typeof $;return $!=null&&(X=="object"||X=="function")}function ii($){return $!=null&&typeof $=="object"}function yf($){if(!ii($)||Zn($)!=F)return!1;var X=Xe($);if(X===null)return!0;var se=Ln.call(X,"constructor")&&X.constructor;return typeof se=="function"&&se instanceof se&&wn.call(se)==er}var Ps=ht?kt(ht):kl;function Ss($){return Fo($,vu($))}function vu($){return ys($)?Ra($,!0):Al($)}var Sr=ri(function($,X,se,qe){nl($,X,se,qe)});function Br($){return function(){return $}}function Yu($){return $}function mo(){return!1}t.exports=Sr}});wp();wp();wp();Cve(Nve());wp();wp();wp();var eh=e=>e?"":void 0,M3=e=>e?!0:void 0,$b=(...e)=>e.filter(Boolean).join(" ");function D3(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}Object.freeze(["base","sm","md","lg","xl","2xl"]);wp();wp();function wve(e){return{root:`slider-root-${e}`,getThumb:t=>`slider-thumb-${e}-${t}`,getInput:t=>`slider-input-${e}-${t}`,track:`slider-track-${e}`,innerTrack:`slider-filled-track-${e}`,getMarker:t=>`slider-marker-${e}-${t}`,output:`slider-output-${e}`}}function qN(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var t6={width:0,height:0},oT=e=>e||t6;function QW(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,s=L=>{const M=r[L]??t6;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...qN({orientation:t,vertical:{bottom:`calc(${n[L]}% - ${M.height/2}px)`},horizontal:{left:`calc(${n[L]}% - ${M.width/2}px)`}})}},l=t==="vertical"?r.reduce((L,M)=>oT(L).height>oT(M).height?L:M,t6):r.reduce((L,M)=>oT(L).width>oT(M).width?L:M,t6),f={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...qN({orientation:t,vertical:l?{paddingLeft:l.width/2,paddingRight:l.width/2}:{},horizontal:l?{paddingTop:l.height/2,paddingBottom:l.height/2}:{}})},d={position:"absolute",...qN({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},m=n.length===1,b=[0,i?100-n[0]:n[0]],S=m?b:n;let N=S[0];!m&&i&&(N=100-N);const w=Math.abs(S[S.length-1]-S[0]),T={...d,...qN({orientation:t,vertical:i?{height:`${w}%`,top:`${N}%`}:{height:`${w}%`,bottom:`${N}%`},horizontal:i?{width:`${w}%`,right:`${N}%`}:{width:`${w}%`,left:`${N}%`}})};return{trackStyle:d,innerTrackStyle:T,rootStyle:f,getThumbStyle:s}}function JW(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function _ve(e){const{min:t=0,max:n=100,onChange:r,value:i,defaultValue:s,isReversed:l,direction:f="ltr",orientation:d="horizontal",id:m,isDisabled:b,isReadOnly:S,onChangeStart:N,onChangeEnd:w,step:T=1,getAriaValueText:L,"aria-valuetext":M,"aria-label":B,"aria-labelledby":F,name:z,focusThumbOnChange:H=!0,minStepsBetweenThumbs:G=0,...K}=e,Z=Jo(N),ne=Jo(w),ie=Jo(L),le=JW({isReversed:l,direction:f,orientation:d}),[oe,Ae]=O9({value:i,defaultValue:s??[25,75],onChange:r});if(!Array.isArray(oe))throw new TypeError(`[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof oe}\``);const[de,Se]=O.exports.useState(!1),[Me,_e]=O.exports.useState(!1),[J,he]=O.exports.useState(-1),ve=!(b||S),ye=O.exports.useRef(oe),xe=oe.map(We=>k3(We,t,n)),Ve=G*T,Pe=Eve(xe,t,n,Ve),Qe=O.exports.useRef({eventSource:null,value:[],valueBounds:[]});Qe.current.value=xe,Qe.current.valueBounds=Pe;const wt=xe.map(We=>n-We+t),Ut=(le?wt:xe).map(We=>H6(We,t,n)),ut=d==="vertical",It=O.exports.useRef(null),Qt=O.exports.useRef(null),pn=KW({getNodes(){const We=Qt.current,Lt=We?.querySelectorAll("[role=slider]");return Lt?Array.from(Lt):[]}}),ht=O.exports.useId(),De=wve(m??ht),kt=O.exports.useCallback(We=>{var Lt;if(!It.current)return;Qe.current.eventSource="pointer";const Rt=It.current.getBoundingClientRect(),{clientX:gt,clientY:_t}=((Lt=We.touches)==null?void 0:Lt[0])??We,kn=ut?Rt.bottom-_t:gt-Rt.left,Un=ut?Rt.height:Rt.width;let Gt=kn/Un;return le&&(Gt=1-Gt),lG(Gt,t,n)},[ut,le,n,t]),Zt=(n-t)/10,Pt=T||(n-t)/100,un=O.exports.useMemo(()=>({setValueAtIndex(We,Lt){if(!ve)return;const Rt=Qe.current.valueBounds[We];Lt=parseFloat(AA(Lt,Rt.min,Pt)),Lt=k3(Lt,Rt.min,Rt.max);const gt=[...Qe.current.value];gt[We]=Lt,Ae(gt)},setActiveIndex:he,stepUp(We,Lt=Pt){const Rt=Qe.current.value[We],gt=le?Rt-Lt:Rt+Lt;un.setValueAtIndex(We,gt)},stepDown(We,Lt=Pt){const Rt=Qe.current.value[We],gt=le?Rt+Lt:Rt-Lt;un.setValueAtIndex(We,gt)},reset(){Ae(ye.current)}}),[Pt,le,Ae,ve]),fr=O.exports.useCallback(We=>{const Lt=We.key,gt={ArrowRight:()=>un.stepUp(J),ArrowUp:()=>un.stepUp(J),ArrowLeft:()=>un.stepDown(J),ArrowDown:()=>un.stepDown(J),PageUp:()=>un.stepUp(J,Zt),PageDown:()=>un.stepDown(J,Zt),Home:()=>{const{min:_t}=Pe[J];un.setValueAtIndex(J,_t)},End:()=>{const{max:_t}=Pe[J];un.setValueAtIndex(J,_t)}}[Lt];gt&&(We.preventDefault(),We.stopPropagation(),gt(We),Qe.current.eventSource="keyboard")},[un,J,Zt,Pe]),{getThumbStyle:an,rootStyle:Rn,trackStyle:wn,innerTrackStyle:Ln}=O.exports.useMemo(()=>QW({isReversed:le,orientation:d,thumbRects:pn,thumbPercents:Ut}),[le,d,Ut,pn]),St=O.exports.useCallback(We=>{var Lt;const Rt=We??J;if(Rt!==-1&&H){const gt=De.getThumb(Rt),_t=(Lt=Qt.current)==null?void 0:Lt.ownerDocument.getElementById(gt);_t&&setTimeout(()=>_t.focus())}},[H,J,De]);V3(()=>{Qe.current.eventSource==="keyboard"&&ne?.(Qe.current.value)},[xe,ne]);const Ft=We=>{const Lt=kt(We)||0,Rt=Qe.current.value.map(Gt=>Math.abs(Gt-Lt)),gt=Math.min(...Rt);let _t=Rt.indexOf(gt);const kn=Rt.filter(Gt=>Gt===gt);kn.length>1&&Lt>Qe.current.value[_t]&&(_t=_t+kn.length-1),he(_t),un.setValueAtIndex(_t,Lt),St(_t)},er=We=>{if(J==-1)return;const Lt=kt(We)||0;he(J),un.setValueAtIndex(J,Lt),St(J)};qW(Qt,{onPanSessionStart(We){!ve||(Se(!0),Ft(We),Z?.(Qe.current.value))},onPanSessionEnd(){!ve||(Se(!1),ne?.(Qe.current.value))},onPan(We){!ve||er(We)}});const En=O.exports.useCallback((We={},Lt=null)=>({...We,...K,id:De.root,ref:xi(Lt,Qt),tabIndex:-1,"aria-disabled":M3(b),"data-focused":eh(Me),style:{...We.style,...Rn}}),[K,b,Me,Rn,De]),Je=O.exports.useCallback((We={},Lt=null)=>({...We,ref:xi(Lt,It),id:De.track,"data-disabled":eh(b),style:{...We.style,...wn}}),[b,wn,De]),Mn=O.exports.useCallback((We={},Lt=null)=>({...We,ref:Lt,id:De.innerTrack,style:{...We.style,...Ln}}),[Ln,De]),br=O.exports.useCallback((We,Lt=null)=>{const{index:Rt,...gt}=We,_t=xe[Rt];if(_t==null)throw new TypeError(`[range-slider > thumb] Cannot find value at index \`${Rt}\`. The \`value\` or \`defaultValue\` length is : ${xe.length}`);const kn=Pe[Rt];return{...gt,ref:Lt,role:"slider",tabIndex:ve?0:void 0,id:De.getThumb(Rt),"data-active":eh(de&&J===Rt),"aria-valuetext":ie?.(_t)??M?.[Rt],"aria-valuemin":kn.min,"aria-valuemax":kn.max,"aria-valuenow":_t,"aria-orientation":d,"aria-disabled":M3(b),"aria-readonly":M3(S),"aria-label":B?.[Rt],"aria-labelledby":B?.[Rt]?void 0:F?.[Rt],style:{...We.style,...an(Rt)},onKeyDown:D3(We.onKeyDown,fr),onFocus:D3(We.onFocus,()=>{_e(!0),he(Rt)}),onBlur:D3(We.onBlur,()=>{_e(!1),he(-1)})}},[De,xe,Pe,ve,de,J,ie,M,d,b,S,B,F,an,fr,_e]),pt=O.exports.useCallback((We={},Lt=null)=>({...We,ref:Lt,id:De.output,htmlFor:xe.map((Rt,gt)=>De.getThumb(gt)).join(" "),"aria-live":"off"}),[De,xe]),Xe=O.exports.useCallback((We,Lt=null)=>{const{value:Rt,...gt}=We,_t=!(Rt<t||Rt>n),kn=Rt>=xe[0]&&Rt<=xe[xe.length-1];let Un=H6(Rt,t,n);Un=le?100-Un:Un;const Gt={position:"absolute",pointerEvents:"none",...qN({orientation:d,vertical:{bottom:`${Un}%`},horizontal:{left:`${Un}%`}})};return{...gt,ref:Lt,id:De.getMarker(We.value),role:"presentation","aria-hidden":!0,"data-disabled":eh(b),"data-invalid":eh(!_t),"data-highlighted":eh(kn),style:{...We.style,...Gt}}},[b,le,n,t,d,xe,De]),Bt=O.exports.useCallback((We,Lt=null)=>{const{index:Rt,...gt}=We;return{...gt,ref:Lt,id:De.getInput(Rt),type:"hidden",value:xe[Rt],name:Array.isArray(z)?z[Rt]:`${z}-${Rt}`}},[z,xe,De]);return{state:{value:xe,isFocused:Me,isDragging:de,getThumbPercent:We=>Ut[We],getThumbMinValue:We=>Pe[We].min,getThumbMaxValue:We=>Pe[We].max},actions:un,getRootProps:En,getTrackProps:Je,getInnerTrackProps:Mn,getThumbProps:br,getMarkerProps:Xe,getInputProps:Bt,getOutputProps:pt}}function Eve(e,t,n,r){return e.map((i,s)=>{const l=s===0?t:e[s-1]+r,f=s===e.length-1?n:e[s+1]-r;return{min:l,max:f}})}var[Tve,u7]=Va({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),[Rve,FM]=Va({name:"RangeSliderStylesContext",errorMessage:`useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "<RangeSlider />" `}),eY=Ct(function(t,n){const r=hu("Slider",t),i=Ia(t),{direction:s}=aC();i.direction=s;const{getRootProps:l,...f}=_ve(i),d=O.exports.useMemo(()=>({...f,name:t.name}),[f,t.name]);return ke.createElement(Tve,{value:d},ke.createElement(Rve,{value:r},ke.createElement(nt.div,{...l({},n),className:"chakra-slider",__css:r.container},t.children)))});eY.defaultProps={orientation:"horizontal"};eY.displayName="RangeSlider";var kve=Ct(function(t,n){const{getThumbProps:r,getInputProps:i,name:s}=u7(),l=FM(),f=r(t,n);return ke.createElement(nt.div,{...f,className:$b("chakra-slider__thumb",t.className),__css:l.thumb},f.children,s&&_("input",{...i({index:t.index})},void 0,!1,{fileName:ZW,lineNumber:1372,columnNumber:51},this))});kve.displayName="RangeSliderThumb";var Ave=Ct(function(t,n){const{getTrackProps:r}=u7(),i=FM(),s=r(t,n);return ke.createElement(nt.div,{...s,className:$b("chakra-slider__track",t.className),__css:i.track,"data-testid":"chakra-range-slider-track"})});Ave.displayName="RangeSliderTrack";var Ove=Ct(function(t,n){const{getInnerTrackProps:r}=u7(),i=FM(),s=r(t,n);return ke.createElement(nt.div,{...s,className:"chakra-slider__filled-track",__css:i.filledTrack})});Ove.displayName="RangeSliderFilledTrack";var Lve=Ct(function(t,n){const{getMarkerProps:r}=u7(),i=r(t,n);return ke.createElement(nt.div,{...i,className:$b("chakra-slider__marker",t.className)})});Lve.displayName="RangeSliderMark";wp();wp();function Mve(e){const{min:t=0,max:n=100,onChange:r,value:i,defaultValue:s,isReversed:l,direction:f="ltr",orientation:d="horizontal",id:m,isDisabled:b,isReadOnly:S,onChangeStart:N,onChangeEnd:w,step:T=1,getAriaValueText:L,"aria-valuetext":M,"aria-label":B,"aria-labelledby":F,name:z,focusThumbOnChange:H=!0,...G}=e,K=Jo(N),Z=Jo(w),ne=Jo(L),ie=JW({isReversed:l,direction:f,orientation:d}),[le,oe]=O9({value:i,defaultValue:s??Pve(t,n),onChange:r}),[Ae,de]=O.exports.useState(!1),[Se,Me]=O.exports.useState(!1),_e=O.exports.useRef(null),J=!(b||S),he=k3(le,t,n),ve=O.exports.useRef(-1);ve.current=he;const ye=O.exports.useRef(ve.current),xe=n-he+t,Pe=H6(ie?xe:he,t,n),Qe=d==="vertical",wt=O.exports.useRef(null),Ot=O.exports.useRef(null),Ut=O.exports.useRef(null),ut=O.exports.useId(),It=m??ut,[Qt,pn]=[`slider-thumb-${It}`,`slider-track-${It}`],ht=O.exports.useCallback(Xe=>{var Bt;if(!wt.current)return;_e.current="pointer";const We=wt.current.getBoundingClientRect(),{clientX:Lt,clientY:Rt}=((Bt=Xe.touches)==null?void 0:Bt[0])??Xe,gt=Qe?We.bottom-Rt:Lt-We.left,_t=Qe?We.height:We.width;let kn=gt/_t;ie&&(kn=1-kn);let Un=lG(kn,t,n);return T&&(Un=parseFloat(AA(Un,t,T))),Un=k3(Un,t,n),Un},[Qe,ie,n,t,T]),gn=(n-t)/10,De=T||(n-t)/100,kt=O.exports.useCallback(Xe=>{!J||(Xe=parseFloat(AA(Xe,t,De)),Xe=k3(Xe,t,n),oe(Xe))},[De,n,t,oe,J]),Zt=O.exports.useMemo(()=>({stepUp(Xe=De){const Bt=ie?he-Xe:he+Xe;kt(Bt)},stepDown(Xe=De){const Bt=ie?he+Xe:he-Xe;kt(Bt)},reset(){kt(s||0)},stepTo(Xe){kt(Xe)}}),[kt,ie,he,De,s]),Pt=O.exports.useCallback(Xe=>{const We={ArrowRight:()=>Zt.stepUp(),ArrowUp:()=>Zt.stepUp(),ArrowLeft:()=>Zt.stepDown(),ArrowDown:()=>Zt.stepDown(),PageUp:()=>Zt.stepUp(gn),PageDown:()=>Zt.stepDown(gn),Home:()=>kt(t),End:()=>kt(n)}[Xe.key];We&&(Xe.preventDefault(),Xe.stopPropagation(),We(Xe),_e.current="keyboard")},[Zt,kt,n,t,gn]),un=ne?.(he)??M,fr=pve(Ot),{getThumbStyle:an,rootStyle:Rn,trackStyle:wn,innerTrackStyle:Ln}=O.exports.useMemo(()=>QW({isReversed:ie,orientation:d,thumbRects:[fr??{width:0,height:0}],thumbPercents:[Pe]}),[ie,d,fr,Pe]),St=O.exports.useCallback(()=>{H&&setTimeout(()=>{var Xe;return(Xe=Ot.current)==null?void 0:Xe.focus()})},[H]);V3(()=>{St(),_e.current==="keyboard"&&Z?.(ve.current)},[he,Z]);function Ft(Xe){const Bt=ht(Xe);Bt!=null&&Bt!==ve.current&&oe(Bt)}qW(Ut,{onPanSessionStart(Xe){!J||(de(!0),St(),Ft(Xe),K?.(ve.current))},onPanSessionEnd(){!J||(de(!1),Z?.(ve.current),ye.current=ve.current)},onPan(Xe){!J||Ft(Xe)}});const er=O.exports.useCallback((Xe={},Bt=null)=>({...Xe,...G,ref:xi(Bt,Ut),tabIndex:-1,"aria-disabled":M3(b),"data-focused":eh(Se),style:{...Xe.style,...Rn}}),[G,b,Se,Rn]),En=O.exports.useCallback((Xe={},Bt=null)=>({...Xe,ref:xi(Bt,wt),id:pn,"data-disabled":eh(b),style:{...Xe.style,...wn}}),[b,pn,wn]),Je=O.exports.useCallback((Xe={},Bt=null)=>({...Xe,ref:Bt,style:{...Xe.style,...Ln}}),[Ln]),Mn=O.exports.useCallback((Xe={},Bt=null)=>({...Xe,ref:xi(Bt,Ot),role:"slider",tabIndex:J?0:void 0,id:Qt,"data-active":eh(Ae),"aria-valuetext":un,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":he,"aria-orientation":d,"aria-disabled":M3(b),"aria-readonly":M3(S),"aria-label":B,"aria-labelledby":B?void 0:F,style:{...Xe.style,...an(0)},onKeyDown:D3(Xe.onKeyDown,Pt),onFocus:D3(Xe.onFocus,()=>Me(!0)),onBlur:D3(Xe.onBlur,()=>Me(!1))}),[J,Qt,Ae,un,t,n,he,d,b,S,B,F,an,Pt]),br=O.exports.useCallback((Xe,Bt=null)=>{const We=!(Xe.value<t||Xe.value>n),Lt=he>=Xe.value,Rt=H6(Xe.value,t,n),gt={position:"absolute",pointerEvents:"none",...Dve({orientation:d,vertical:{bottom:ie?`${100-Rt}%`:`${Rt}%`},horizontal:{left:ie?`${100-Rt}%`:`${Rt}%`}})};return{...Xe,ref:Bt,role:"presentation","aria-hidden":!0,"data-disabled":eh(b),"data-invalid":eh(!We),"data-highlighted":eh(Lt),style:{...Xe.style,...gt}}},[b,ie,n,t,d,he]),pt=O.exports.useCallback((Xe={},Bt=null)=>({...Xe,ref:Bt,type:"hidden",value:he,name:z}),[z,he]);return{state:{value:he,isFocused:Se,isDragging:Ae},actions:Zt,getRootProps:er,getTrackProps:En,getInnerTrackProps:Je,getThumbProps:Mn,getMarkerProps:br,getInputProps:pt}}function Dve(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function Pve(e,t){return t<e?e:e+(t-e)/2}var[Ive,c7]=Va({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[Fve,f7]=Va({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),zM=Ct((e,t)=>{const n=hu("Slider",e),r=Ia(e),{direction:i}=aC();r.direction=i;const{getInputProps:s,getRootProps:l,...f}=Mve(r),d=l(),m=s({},t);return ke.createElement(Ive,{value:f},ke.createElement(Fve,{value:n},ke.createElement(nt.div,{...d,className:$b("chakra-slider",e.className),__css:n.container},e.children,_("input",{...m},void 0,!1,{fileName:ZW,lineNumber:1771,columnNumber:38},globalThis))))});zM.defaultProps={orientation:"horizontal"};zM.displayName="Slider";var tY=Ct((e,t)=>{const{getThumbProps:n}=c7(),r=f7(),i=n(e,t);return ke.createElement(nt.div,{...i,className:$b("chakra-slider__thumb",e.className),__css:r.thumb})});tY.displayName="SliderThumb";var nY=Ct((e,t)=>{const{getTrackProps:n}=c7(),r=f7(),i=n(e,t);return ke.createElement(nt.div,{...i,className:$b("chakra-slider__track",e.className),__css:r.track})});nY.displayName="SliderTrack";var rY=Ct((e,t)=>{const{getInnerTrackProps:n}=c7(),r=f7(),i=n(e,t);return ke.createElement(nt.div,{...i,className:$b("chakra-slider__filled-track",e.className),__css:r.filledTrack})});rY.displayName="SliderFilledTrack";var zve=Ct((e,t)=>{const{getMarkerProps:n}=c7(),r=f7(),i=n(e,t);return ke.createElement(nt.div,{...i,className:$b("chakra-slider__marker",e.className),__css:r.mark})});zve.displayName="SliderMark";var Bve="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",$ve=(...e)=>e.filter(Boolean).join(" "),xB=e=>e?"":void 0,BM=Ct(function(t,n){const r=hu("Switch",t),{spacing:i="0.5rem",children:s,...l}=Ia(t),{state:f,getInputProps:d,getCheckboxProps:m,getRootProps:b,getLabelProps:S}=iG(l),N=O.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),w=O.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),T=O.exports.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return ke.createElement(nt.label,{...b(),className:$ve("chakra-switch",t.className),__css:N},_("input",{className:"chakra-switch__input",...d({},n)},void 0,!1,{fileName:Bve,lineNumber:53,columnNumber:22},this),ke.createElement(nt.span,{...m(),className:"chakra-switch__track",__css:w},ke.createElement(nt.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":xB(f.isChecked),"data-hover":xB(f.isHovered)})),s&&ke.createElement(nt.span,{className:"chakra-switch__label",...S(),__css:T},s))});BM.displayName="Switch";var dC=(...e)=>e.filter(Boolean).join(" ");function WA(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Uve,aY,Hve,jve]=mj();function Vve(e){const{defaultIndex:t,onChange:n,index:r,isManual:i,isLazy:s,lazyBehavior:l="unmount",orientation:f="horizontal",direction:d="ltr",...m}=e,[b,S]=O.exports.useState(t??0),[N,w]=O9({defaultValue:t??0,value:r,onChange:n});O.exports.useEffect(()=>{r!=null&&S(r)},[r]);const T=Hve(),L=O.exports.useId();return{id:`tabs-${e.id??L}`,selectedIndex:N,focusedIndex:b,setSelectedIndex:w,setFocusedIndex:S,isManual:i,isLazy:s,lazyBehavior:l,orientation:f,descendants:T,direction:d,htmlProps:m}}var[Gve,w_]=Va({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function Wve(e){const{focusedIndex:t,orientation:n,direction:r}=w_(),i=aY(),s=O.exports.useCallback(l=>{const f=()=>{var F;const z=i.nextEnabled(t);z&&((F=z.node)==null||F.focus())},d=()=>{var F;const z=i.prevEnabled(t);z&&((F=z.node)==null||F.focus())},m=()=>{var F;const z=i.firstEnabled();z&&((F=z.node)==null||F.focus())},b=()=>{var F;const z=i.lastEnabled();z&&((F=z.node)==null||F.focus())},S=n==="horizontal",N=n==="vertical",w=l.key,T=r==="ltr"?"ArrowLeft":"ArrowRight",L=r==="ltr"?"ArrowRight":"ArrowLeft",B={[T]:()=>S&&d(),[L]:()=>S&&f(),ArrowDown:()=>N&&f(),ArrowUp:()=>N&&d(),Home:m,End:b}[w];B&&(l.preventDefault(),B(l))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:WA(e.onKeyDown,s)}}function Yve(e){const{isDisabled:t,isFocusable:n,...r}=e,{setSelectedIndex:i,isManual:s,id:l,setFocusedIndex:f,selectedIndex:d}=w_(),{index:m,register:b}=jve({disabled:t&&!n}),S=m===d,N=()=>{i(m)},w=()=>{f(m),!s&&!(t&&n)&&i(m)},T=bfe({...r,ref:xi(b,e.ref),isDisabled:t,isFocusable:n,onClick:WA(e.onClick,N)}),L="button";return{...T,id:iY(l,m),role:"tab",tabIndex:S?0:-1,type:L,"aria-selected":S,"aria-controls":oY(l,m),onFocus:t?void 0:WA(e.onFocus,w)}}var[qve,Kve]=Va({});function Zve(e){const t=w_(),{id:n,selectedIndex:r}=t,s=K9(e.children).map((l,f)=>O.exports.createElement(qve,{key:f,value:{isSelected:f===r,id:oY(n,f),tabId:iY(n,f),selectedIndex:r}},l));return{...e,children:s}}function Xve(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=w_(),{isSelected:s,id:l,tabId:f}=Kve(),d=O.exports.useRef(!1);s&&(d.current=!0);const m=HG({wasSelected:d.current,isSelected:s,enabled:r,mode:i});return{tabIndex:0,...n,children:m?t:null,role:"tabpanel","aria-labelledby":f,hidden:!s,id:l}}function Qve(){const e=w_(),t=aY(),{selectedIndex:n,orientation:r}=e,i=r==="horizontal",s=r==="vertical",[l,f]=O.exports.useState(()=>{if(i)return{left:0,width:0};if(s)return{top:0,height:0}}),[d,m]=O.exports.useState(!1);return av(()=>{if(n==null)return;const b=t.item(n);if(b==null)return;i&&f({left:b.node.offsetLeft,width:b.node.offsetWidth}),s&&f({top:b.node.offsetTop,height:b.node.offsetHeight});const S=requestAnimationFrame(()=>{m(!0)});return()=>{S&&cancelAnimationFrame(S)}},[n,i,s,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:d?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...l}}function iY(e,t){return`${e}--tab-${t}`}function oY(e,t){return`${e}--tabpanel-${t}`}var[Jve,__]=Va({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),sY=Ct(function(t,n){const r=hu("Tabs",t),{children:i,className:s,...l}=Ia(t),{htmlProps:f,descendants:d,...m}=Vve(l),b=O.exports.useMemo(()=>m,[m]),{isFitted:S,...N}=f;return ke.createElement(Uve,{value:d},ke.createElement(Gve,{value:b},ke.createElement(Jve,{value:r},ke.createElement(nt.div,{className:dC("chakra-tabs",s),ref:n,...N,__css:r.root},i))))});sY.displayName="Tabs";var ege=Ct(function(t,n){const r=Qve(),i={...t.style,...r},s=__();return ke.createElement(nt.div,{ref:n,...t,className:dC("chakra-tabs__tab-indicator",t.className),style:i,__css:s.indicator})});ege.displayName="TabIndicator";var tge=Ct(function(t,n){const r=Wve({...t,ref:n}),i=__(),s={display:"flex",...i.tablist};return ke.createElement(nt.div,{...r,className:dC("chakra-tabs__tablist",t.className),__css:s})});tge.displayName="TabList";var lY=Ct(function(t,n){const r=Xve({...t,ref:n}),i=__();return ke.createElement(nt.div,{outline:"0",...r,className:dC("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});lY.displayName="TabPanel";var uY=Ct(function(t,n){const r=Zve(t),i=__();return ke.createElement(nt.div,{...r,width:"100%",ref:n,className:dC("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});uY.displayName="TabPanels";var cY=Ct(function(t,n){const r=__(),i=Yve({...t,ref:n}),s={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return ke.createElement(nt.button,{...i,className:dC("chakra-tabs__tab",t.className),__css:s})});cY.displayName="Tab";var nge=(...e)=>e.filter(Boolean).join(" ");function rge(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var age=["h","minH","height","minHeight"],fY=Ct((e,t)=>{const n=Ac("Textarea",e),{className:r,rows:i,...s}=Ia(e),l=eM(s),f=i?rge(n,age):n;return ke.createElement(nt.textarea,{ref:t,rows:i,...l,className:nge("chakra-textarea",r),__css:f})});fY.displayName="Textarea";function ei(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...b){r();for(const S of b)t[S]=d(S);return ei(e,t)}function s(...b){for(const S of b)S in t||(t[S]=d(S));return ei(e,t)}function l(){return Object.fromEntries(Object.entries(t).map(([S,N])=>[S,N.selector]))}function f(){return Object.fromEntries(Object.entries(t).map(([S,N])=>[S,N.className]))}function d(b){const w=`chakra-${(["container","root"].includes(b??"")?[e]:[e,b]).filter(Boolean).join("__")}`;return{className:w,selector:`.${w}`,toString:()=>b}}return{parts:i,toPart:d,extend:s,selectors:l,classnames:f,get keys(){return Object.keys(t)},__type:{}}}var ige=ei("accordion").parts("root","container","button","panel").extend("icon"),oge=ei("alert").parts("title","description","container").extend("icon","spinner"),sge=ei("avatar").parts("label","badge","container").extend("excessLabel","group"),lge=ei("breadcrumb").parts("link","item","container").extend("separator");ei("button").parts();var uge=ei("checkbox").parts("control","icon","container").extend("label");ei("progress").parts("track","filledTrack").extend("label");var cge=ei("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),fge=ei("editable").parts("preview","input","textarea"),dge=ei("form").parts("container","requiredIndicator","helperText"),hge=ei("formError").parts("text","icon"),pge=ei("input").parts("addon","field","element"),mge=ei("list").parts("container","item","icon"),vge=ei("menu").parts("button","list","item").extend("groupTitle","command","divider"),gge=ei("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),bge=ei("numberinput").parts("root","field","stepperGroup","stepper");ei("pininput").parts("field");var yge=ei("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Sge=ei("progress").parts("label","filledTrack","track"),xge=ei("radio").parts("container","control","label"),Cge=ei("select").parts("field","icon"),Nge=ei("slider").parts("container","track","thumb","filledTrack","mark"),wge=ei("stat").parts("container","label","helpText","number","icon"),_ge=ei("switch").parts("container","track","thumb"),Ege=ei("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Tge=ei("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rge=ei("tag").parts("container","label","closeButton");function dY(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var kge=e=>/!(important)?$/.test(e),CB=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Age=(e,t)=>n=>{const r=String(t),i=kge(r),s=CB(r),l=e?`${e}.${s}`:s;let f=dY(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return f=CB(f),i?`${f} !important`:f};function Kw(e){const{scale:t,transform:n,compose:r}=e;return(s,l)=>{const f=Age(t,s)(l);let d=n?.(f,l)??f;return r&&(d=r(d,l)),d}}var sT=(...e)=>t=>e.reduce((n,r)=>r(n),t);function hp(e,t){return n=>{const r={property:n,scale:e};return r.transform=Kw({scale:e,transform:t}),r}}var Oge=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Lge(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Oge(t),transform:n?Kw({scale:n,compose:r}):r}}var hY=["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 Mge(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...hY].join(" ")}function Dge(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...hY].join(" ")}var Pge={"--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(" ")},Ige={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 Fge(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 zge={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},pY="& > :not(style) ~ :not(style)",Bge={[pY]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},$ge={[pY]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},YA={"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"},Uge=new Set(Object.values(YA)),mY=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Hge=e=>e.trim();function jge(e,t){var n;if(e==null||mY.has(e))return e;const r=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:i,values:s}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!i||!s)return e;const l=i.includes("-gradient")?i:`${i}-gradient`,[f,...d]=s.split(",").map(Hge).filter(Boolean);if(d?.length===0)return e;const m=f in YA?YA[f]:f;d.unshift(m);const b=d.map(S=>{if(Uge.has(S))return S;const N=S.indexOf(" "),[w,T]=N!==-1?[S.substr(0,N),S.substr(N+1)]:[S],L=vY(T)?T:T&&T.split(" "),M=`colors.${w}`,B=M in t.__cssMap?t.__cssMap[M].varRef:w;return L?[B,...Array.isArray(L)?L:[L]].join(" "):B});return`${l}(${b.join(", ")})`}var vY=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Vge=(e,t)=>jge(e,t??{});function Gge(e){return/^var\(--.+\)$/.test(e)}var Wge=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Gm=e=>t=>`${e}(${t})`,xa={filter(e){return e!=="auto"?e:Pge},backdropFilter(e){return e!=="auto"?e:Ige},ring(e){return Fge(xa.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Mge():e==="auto-gpu"?Dge():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Wge(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(Gge(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Vge,blur:Gm("blur"),opacity:Gm("opacity"),brightness:Gm("brightness"),contrast:Gm("contrast"),dropShadow:Gm("drop-shadow"),grayscale:Gm("grayscale"),hueRotate:Gm("hue-rotate"),invert:Gm("invert"),saturate:Gm("saturate"),sepia:Gm("sepia"),bgImage(e){return e==null||vY(e)||mY.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}=zge[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Le={borderWidths:hp("borderWidths"),borderStyles:hp("borderStyles"),colors:hp("colors"),borders:hp("borders"),radii:hp("radii",xa.px),space:hp("space",sT(xa.vh,xa.px)),spaceT:hp("space",sT(xa.vh,xa.px)),degreeT(e){return{property:e,transform:xa.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Kw({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:hp("sizes",sT(xa.vh,xa.px)),sizesT:hp("sizes",sT(xa.vh,xa.fraction)),shadows:hp("shadows"),logical:Lge,blur:hp("blur",xa.blur)},n6={background:Le.colors("background"),backgroundColor:Le.colors("backgroundColor"),backgroundImage:Le.propT("backgroundImage",xa.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:xa.bgClip},bgSize:Le.prop("backgroundSize"),bgPosition:Le.prop("backgroundPosition"),bg:Le.colors("background"),bgColor:Le.colors("backgroundColor"),bgPos:Le.prop("backgroundPosition"),bgRepeat:Le.prop("backgroundRepeat"),bgAttachment:Le.prop("backgroundAttachment"),bgGradient:Le.propT("backgroundImage",xa.gradient),bgClip:{transform:xa.bgClip}};Object.assign(n6,{bgImage:n6.backgroundImage,bgImg:n6.backgroundImage});var Ma={border:Le.borders("border"),borderWidth:Le.borderWidths("borderWidth"),borderStyle:Le.borderStyles("borderStyle"),borderColor:Le.colors("borderColor"),borderRadius:Le.radii("borderRadius"),borderTop:Le.borders("borderTop"),borderBlockStart:Le.borders("borderBlockStart"),borderTopLeftRadius:Le.radii("borderTopLeftRadius"),borderStartStartRadius:Le.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Le.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Le.radii("borderTopRightRadius"),borderStartEndRadius:Le.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Le.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Le.borders("borderRight"),borderInlineEnd:Le.borders("borderInlineEnd"),borderBottom:Le.borders("borderBottom"),borderBlockEnd:Le.borders("borderBlockEnd"),borderBottomLeftRadius:Le.radii("borderBottomLeftRadius"),borderBottomRightRadius:Le.radii("borderBottomRightRadius"),borderLeft:Le.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Le.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Le.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Le.borders(["borderLeft","borderRight"]),borderInline:Le.borders("borderInline"),borderY:Le.borders(["borderTop","borderBottom"]),borderBlock:Le.borders("borderBlock"),borderTopWidth:Le.borderWidths("borderTopWidth"),borderBlockStartWidth:Le.borderWidths("borderBlockStartWidth"),borderTopColor:Le.colors("borderTopColor"),borderBlockStartColor:Le.colors("borderBlockStartColor"),borderTopStyle:Le.borderStyles("borderTopStyle"),borderBlockStartStyle:Le.borderStyles("borderBlockStartStyle"),borderBottomWidth:Le.borderWidths("borderBottomWidth"),borderBlockEndWidth:Le.borderWidths("borderBlockEndWidth"),borderBottomColor:Le.colors("borderBottomColor"),borderBlockEndColor:Le.colors("borderBlockEndColor"),borderBottomStyle:Le.borderStyles("borderBottomStyle"),borderBlockEndStyle:Le.borderStyles("borderBlockEndStyle"),borderLeftWidth:Le.borderWidths("borderLeftWidth"),borderInlineStartWidth:Le.borderWidths("borderInlineStartWidth"),borderLeftColor:Le.colors("borderLeftColor"),borderInlineStartColor:Le.colors("borderInlineStartColor"),borderLeftStyle:Le.borderStyles("borderLeftStyle"),borderInlineStartStyle:Le.borderStyles("borderInlineStartStyle"),borderRightWidth:Le.borderWidths("borderRightWidth"),borderInlineEndWidth:Le.borderWidths("borderInlineEndWidth"),borderRightColor:Le.colors("borderRightColor"),borderInlineEndColor:Le.colors("borderInlineEndColor"),borderRightStyle:Le.borderStyles("borderRightStyle"),borderInlineEndStyle:Le.borderStyles("borderInlineEndStyle"),borderTopRadius:Le.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Le.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Le.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Le.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ma,{rounded:Ma.borderRadius,roundedTop:Ma.borderTopRadius,roundedTopLeft:Ma.borderTopLeftRadius,roundedTopRight:Ma.borderTopRightRadius,roundedTopStart:Ma.borderStartStartRadius,roundedTopEnd:Ma.borderStartEndRadius,roundedBottom:Ma.borderBottomRadius,roundedBottomLeft:Ma.borderBottomLeftRadius,roundedBottomRight:Ma.borderBottomRightRadius,roundedBottomStart:Ma.borderEndStartRadius,roundedBottomEnd:Ma.borderEndEndRadius,roundedLeft:Ma.borderLeftRadius,roundedRight:Ma.borderRightRadius,roundedStart:Ma.borderInlineStartRadius,roundedEnd:Ma.borderInlineEndRadius,borderStart:Ma.borderInlineStart,borderEnd:Ma.borderInlineEnd,borderTopStartRadius:Ma.borderStartStartRadius,borderTopEndRadius:Ma.borderStartEndRadius,borderBottomStartRadius:Ma.borderEndStartRadius,borderBottomEndRadius:Ma.borderEndEndRadius,borderStartRadius:Ma.borderInlineStartRadius,borderEndRadius:Ma.borderInlineEndRadius,borderStartWidth:Ma.borderInlineStartWidth,borderEndWidth:Ma.borderInlineEndWidth,borderStartColor:Ma.borderInlineStartColor,borderEndColor:Ma.borderInlineEndColor,borderStartStyle:Ma.borderInlineStartStyle,borderEndStyle:Ma.borderInlineEndStyle});var Yge={color:Le.colors("color"),textColor:Le.colors("color"),fill:Le.colors("fill"),stroke:Le.colors("stroke")},qA={boxShadow:Le.shadows("boxShadow"),mixBlendMode:!0,blendMode:Le.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Le.prop("backgroundBlendMode"),opacity:!0};Object.assign(qA,{shadow:qA.boxShadow});var qge={filter:{transform:xa.filter},blur:Le.blur("--chakra-blur"),brightness:Le.propT("--chakra-brightness",xa.brightness),contrast:Le.propT("--chakra-contrast",xa.contrast),hueRotate:Le.degreeT("--chakra-hue-rotate"),invert:Le.propT("--chakra-invert",xa.invert),saturate:Le.propT("--chakra-saturate",xa.saturate),dropShadow:Le.propT("--chakra-drop-shadow",xa.dropShadow),backdropFilter:{transform:xa.backdropFilter},backdropBlur:Le.blur("--chakra-backdrop-blur"),backdropBrightness:Le.propT("--chakra-backdrop-brightness",xa.brightness),backdropContrast:Le.propT("--chakra-backdrop-contrast",xa.contrast),backdropHueRotate:Le.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Le.propT("--chakra-backdrop-invert",xa.invert),backdropSaturate:Le.propT("--chakra-backdrop-saturate",xa.saturate)},K6={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:xa.flexDirection},experimental_spaceX:{static:Bge,transform:Kw({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:$ge,transform:Kw({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Le.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Le.space("gap"),rowGap:Le.space("rowGap"),columnGap:Le.space("columnGap")};Object.assign(K6,{flexDir:K6.flexDirection});var gY={gridGap:Le.space("gridGap"),gridColumnGap:Le.space("gridColumnGap"),gridRowGap:Le.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},Kge={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:xa.outline},outlineOffset:!0,outlineColor:Le.colors("outlineColor")},Xd={width:Le.sizesT("width"),inlineSize:Le.sizesT("inlineSize"),height:Le.sizes("height"),blockSize:Le.sizes("blockSize"),boxSize:Le.sizes(["width","height"]),minWidth:Le.sizes("minWidth"),minInlineSize:Le.sizes("minInlineSize"),minHeight:Le.sizes("minHeight"),minBlockSize:Le.sizes("minBlockSize"),maxWidth:Le.sizes("maxWidth"),maxInlineSize:Le.sizes("maxInlineSize"),maxHeight:Le.sizes("maxHeight"),maxBlockSize:Le.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Le.propT("float",xa.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Xd,{w:Xd.width,h:Xd.height,minW:Xd.minWidth,maxW:Xd.maxWidth,minH:Xd.minHeight,maxH:Xd.maxHeight,overscroll:Xd.overscrollBehavior,overscrollX:Xd.overscrollBehaviorX,overscrollY:Xd.overscrollBehaviorY});var Zge={listStyleType:!0,listStylePosition:!0,listStylePos:Le.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Le.prop("listStyleImage")};function Xge(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var Qge=e=>{const t=new WeakMap;return(r,i,s,l)=>{if(typeof r>"u")return e(r,i,s);t.has(r)||t.set(r,new Map);const f=t.get(r);if(f.has(i))return f.get(i);const d=e(r,i,s,l);return f.set(i,d),d}},Jge=Qge(Xge),e0e={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},t0e={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},M8=(e,t,n)=>{const r={},i=Jge(e,t,{});for(const s in i)s in n&&n[s]!=null||(r[s]=i[s]);return r},n0e={srOnly:{transform(e){return e===!0?e0e:e==="focusable"?t0e:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>M8(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>M8(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>M8(t,e,n)}},gw={position:!0,pos:Le.prop("position"),zIndex:Le.prop("zIndex","zIndices"),inset:Le.spaceT("inset"),insetX:Le.spaceT(["left","right"]),insetInline:Le.spaceT("insetInline"),insetY:Le.spaceT(["top","bottom"]),insetBlock:Le.spaceT("insetBlock"),top:Le.spaceT("top"),insetBlockStart:Le.spaceT("insetBlockStart"),bottom:Le.spaceT("bottom"),insetBlockEnd:Le.spaceT("insetBlockEnd"),left:Le.spaceT("left"),insetInlineStart:Le.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Le.spaceT("right"),insetInlineEnd:Le.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(gw,{insetStart:gw.insetInlineStart,insetEnd:gw.insetInlineEnd});var r0e={ring:{transform:xa.ring},ringColor:Le.colors("--chakra-ring-color"),ringOffset:Le.prop("--chakra-ring-offset-width"),ringOffsetColor:Le.colors("--chakra-ring-offset-color"),ringInset:Le.prop("--chakra-ring-inset")},Gi={margin:Le.spaceT("margin"),marginTop:Le.spaceT("marginTop"),marginBlockStart:Le.spaceT("marginBlockStart"),marginRight:Le.spaceT("marginRight"),marginInlineEnd:Le.spaceT("marginInlineEnd"),marginBottom:Le.spaceT("marginBottom"),marginBlockEnd:Le.spaceT("marginBlockEnd"),marginLeft:Le.spaceT("marginLeft"),marginInlineStart:Le.spaceT("marginInlineStart"),marginX:Le.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Le.spaceT("marginInline"),marginY:Le.spaceT(["marginTop","marginBottom"]),marginBlock:Le.spaceT("marginBlock"),padding:Le.space("padding"),paddingTop:Le.space("paddingTop"),paddingBlockStart:Le.space("paddingBlockStart"),paddingRight:Le.space("paddingRight"),paddingBottom:Le.space("paddingBottom"),paddingBlockEnd:Le.space("paddingBlockEnd"),paddingLeft:Le.space("paddingLeft"),paddingInlineStart:Le.space("paddingInlineStart"),paddingInlineEnd:Le.space("paddingInlineEnd"),paddingX:Le.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Le.space("paddingInline"),paddingY:Le.space(["paddingTop","paddingBottom"]),paddingBlock:Le.space("paddingBlock")};Object.assign(Gi,{m:Gi.margin,mt:Gi.marginTop,mr:Gi.marginRight,me:Gi.marginInlineEnd,marginEnd:Gi.marginInlineEnd,mb:Gi.marginBottom,ml:Gi.marginLeft,ms:Gi.marginInlineStart,marginStart:Gi.marginInlineStart,mx:Gi.marginX,my:Gi.marginY,p:Gi.padding,pt:Gi.paddingTop,py:Gi.paddingY,px:Gi.paddingX,pb:Gi.paddingBottom,pl:Gi.paddingLeft,ps:Gi.paddingInlineStart,paddingStart:Gi.paddingInlineStart,pr:Gi.paddingRight,pe:Gi.paddingInlineEnd,paddingEnd:Gi.paddingInlineEnd});var a0e={textDecorationColor:Le.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Le.shadows("textShadow")},i0e={clipPath:!0,transform:Le.propT("transform",xa.transform),transformOrigin:!0,translateX:Le.spaceT("--chakra-translate-x"),translateY:Le.spaceT("--chakra-translate-y"),skewX:Le.degreeT("--chakra-skew-x"),skewY:Le.degreeT("--chakra-skew-y"),scaleX:Le.prop("--chakra-scale-x"),scaleY:Le.prop("--chakra-scale-y"),scale:Le.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Le.degreeT("--chakra-rotate")},o0e={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Le.prop("transitionDuration","transition.duration"),transitionProperty:Le.prop("transitionProperty","transition.property"),transitionTimingFunction:Le.prop("transitionTimingFunction","transition.easing")},s0e={fontFamily:Le.prop("fontFamily","fonts"),fontSize:Le.prop("fontSize","fontSizes",xa.px),fontWeight:Le.prop("fontWeight","fontWeights"),lineHeight:Le.prop("lineHeight","lineHeights"),letterSpacing:Le.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"}},l0e={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Le.spaceT("scrollMargin"),scrollMarginTop:Le.spaceT("scrollMarginTop"),scrollMarginBottom:Le.spaceT("scrollMarginBottom"),scrollMarginLeft:Le.spaceT("scrollMarginLeft"),scrollMarginRight:Le.spaceT("scrollMarginRight"),scrollMarginX:Le.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Le.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Le.spaceT("scrollPadding"),scrollPaddingTop:Le.spaceT("scrollPaddingTop"),scrollPaddingBottom:Le.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Le.spaceT("scrollPaddingLeft"),scrollPaddingRight:Le.spaceT("scrollPaddingRight"),scrollPaddingX:Le.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Le.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function bY(e){return dY(e)&&e.reference?e.reference:String(e)}var d7=(e,...t)=>t.map(bY).join(` ${e} `).replace(/calc/g,""),NB=(...e)=>`calc(${d7("+",...e)})`,wB=(...e)=>`calc(${d7("-",...e)})`,KA=(...e)=>`calc(${d7("*",...e)})`,_B=(...e)=>`calc(${d7("/",...e)})`,EB=e=>{const t=bY(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:KA(t,-1)},AN=Object.assign(e=>({add:(...t)=>AN(NB(e,...t)),subtract:(...t)=>AN(wB(e,...t)),multiply:(...t)=>AN(KA(e,...t)),divide:(...t)=>AN(_B(e,...t)),negate:()=>AN(EB(e)),toString:()=>e.toString()}),{add:NB,subtract:wB,multiply:KA,divide:_B,negate:EB});function u0e(e,t="-"){return e.replace(/\s+/g,t)}function c0e(e){const t=u0e(e.toString());return d0e(f0e(t))}function f0e(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function d0e(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function h0e(e,t=""){return[t,e].filter(Boolean).join("-")}function p0e(e,t){return`var(${e}${t?`, ${t}`:""})`}function m0e(e,t=""){return c0e(`--${h0e(e,t)}`)}function jS(e,t,n){const r=m0e(e,n);return{variable:r,reference:p0e(r,t)}}var iu={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}`},cb=e=>yY(t=>e(t,"&"),"[role=group]","[data-group]",".group"),qg=e=>yY(t=>e(t,"~ &"),"[data-peer]",".peer"),yY=(e,...t)=>t.map(e).join(", "),SY={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_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:cb(iu.hover),_peerHover:qg(iu.hover),_groupFocus:cb(iu.focus),_peerFocus:qg(iu.focus),_groupFocusVisible:cb(iu.focusVisible),_peerFocusVisible:qg(iu.focusVisible),_groupActive:cb(iu.active),_peerActive:qg(iu.active),_groupDisabled:cb(iu.disabled),_peerDisabled:qg(iu.disabled),_groupInvalid:cb(iu.invalid),_peerInvalid:qg(iu.invalid),_groupChecked:cb(iu.checked),_peerChecked:qg(iu.checked),_groupFocusWithin:cb(iu.focusWithin),_peerFocusWithin:qg(iu.focusWithin),_peerPlaceholderShown:qg(iu.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]"},v0e=Object.keys(SY),xY=r0({},n6,Ma,Yge,K6,Xd,qge,r0e,Kge,gY,n0e,gw,qA,Gi,l0e,s0e,a0e,i0e,Zge,o0e);Object.assign({},Gi,Xd,K6,gY,gw);[...Object.keys(xY),...v0e];({...xY,...SY});function so(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function du(e,t){g0e(e)&&(e="100%");var n=b0e(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 lT(e){return Math.min(1,Math.max(0,e))}function g0e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function b0e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function CY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uT(e){return e<=1?"".concat(Number(e)*100,"%"):e}function CS(e){return e.length===1?"0"+e:String(e)}function y0e(e,t,n){return{r:du(e,255)*255,g:du(t,255)*255,b:du(n,255)*255}}function TB(e,t,n){e=du(e,255),t=du(t,255),n=du(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,l=0,f=(r+i)/2;if(r===i)l=0,s=0;else{var d=r-i;switch(l=f>.5?d/(2-r-i):d/(r+i),r){case e:s=(t-n)/d+(t<n?6:0);break;case t:s=(n-e)/d+2;break;case n:s=(e-t)/d+4;break}s/=6}return{h:s,s:l,l:f}}function D8(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 S0e(e,t,n){var r,i,s;if(e=du(e,360),t=du(t,100),n=du(n,100),t===0)i=n,s=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,f=2*n-l;r=D8(f,l,e+1/3),i=D8(f,l,e),s=D8(f,l,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function RB(e,t,n){e=du(e,255),t=du(t,255),n=du(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,l=r,f=r-i,d=r===0?0:f/r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/f+(t<n?6:0);break;case t:s=(n-e)/f+2;break;case n:s=(e-t)/f+4;break}s/=6}return{h:s,s:d,v:l}}function x0e(e,t,n){e=du(e,360)*6,t=du(t,100),n=du(n,100);var r=Math.floor(e),i=e-r,s=n*(1-t),l=n*(1-i*t),f=n*(1-(1-i)*t),d=r%6,m=[n,l,s,s,f,n][d],b=[f,n,n,l,s,s][d],S=[s,s,f,n,n,l][d];return{r:m*255,g:b*255,b:S*255}}function kB(e,t,n,r){var i=[CS(Math.round(e).toString(16)),CS(Math.round(t).toString(16)),CS(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function C0e(e,t,n,r,i){var s=[CS(Math.round(e).toString(16)),CS(Math.round(t).toString(16)),CS(Math.round(n).toString(16)),CS(N0e(r))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function N0e(e){return Math.round(parseFloat(e)*255).toString(16)}function AB(e){return Xf(e)/255}function Xf(e){return parseInt(e,16)}function w0e(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ZA={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 _0e(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,l=!1,f=!1;return typeof e=="string"&&(e=R0e(e)),typeof e=="object"&&(Kg(e.r)&&Kg(e.g)&&Kg(e.b)?(t=y0e(e.r,e.g,e.b),l=!0,f=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kg(e.h)&&Kg(e.s)&&Kg(e.v)?(r=uT(e.s),i=uT(e.v),t=x0e(e.h,r,i),l=!0,f="hsv"):Kg(e.h)&&Kg(e.s)&&Kg(e.l)&&(r=uT(e.s),s=uT(e.l),t=S0e(e.h,r,s),l=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=CY(n),{ok:l,format:e.format||f,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 E0e="[-\\+]?\\d+%?",T0e="[-\\+]?\\d*\\.\\d+%?",Eb="(?:".concat(T0e,")|(?:").concat(E0e,")"),P8="[\\s|\\(]+(".concat(Eb,")[,|\\s]+(").concat(Eb,")[,|\\s]+(").concat(Eb,")\\s*\\)?"),I8="[\\s|\\(]+(".concat(Eb,")[,|\\s]+(").concat(Eb,")[,|\\s]+(").concat(Eb,")[,|\\s]+(").concat(Eb,")\\s*\\)?"),gp={CSS_UNIT:new RegExp(Eb),rgb:new RegExp("rgb"+P8),rgba:new RegExp("rgba"+I8),hsl:new RegExp("hsl"+P8),hsla:new RegExp("hsla"+I8),hsv:new RegExp("hsv"+P8),hsva:new RegExp("hsva"+I8),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 R0e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ZA[e])e=ZA[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=gp.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=gp.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gp.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=gp.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gp.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=gp.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gp.hex8.exec(e),n?{r:Xf(n[1]),g:Xf(n[2]),b:Xf(n[3]),a:AB(n[4]),format:t?"name":"hex8"}:(n=gp.hex6.exec(e),n?{r:Xf(n[1]),g:Xf(n[2]),b:Xf(n[3]),format:t?"name":"hex"}:(n=gp.hex4.exec(e),n?{r:Xf(n[1]+n[1]),g:Xf(n[2]+n[2]),b:Xf(n[3]+n[3]),a:AB(n[4]+n[4]),format:t?"name":"hex8"}:(n=gp.hex3.exec(e),n?{r:Xf(n[1]+n[1]),g:Xf(n[2]+n[2]),b:Xf(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Kg(e){return Boolean(gp.CSS_UNIT.exec(String(e)))}var E_=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=w0e(t)),this.originalInput=t;var i=_0e(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,s=t.r/255,l=t.g/255,f=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),f<=.03928?i=f/12.92:i=Math.pow((f+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=CY(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=RB(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=RB(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=TB(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=TB(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),kB(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),C0e(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(du(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(du(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="#"+kB(this.r,this.g,this.b,!1),n=0,r=Object.entries(ZA);n<r.length;n++){var i=r[n],s=i[0],l=i[1];if(t===l)return s}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,s=!n&&i&&(t.startsWith("hex")||t==="name");return s?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=lT(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=lT(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=lT(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=lT(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(),i=new e(t).toRgb(),s=n/100,l={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(new e(r));return s},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,i=n.s,s=n.v,l=[],f=1/t;t--;)l.push(new e({h:r,s:i,v:s})),s=(s+f)%1;return l},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,i=[this],s=360/t,l=1;l<t;l++)i.push(new e({h:(r+l*s)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function NY(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(NY(e));return e.count=t,n}var r=k0e(e.hue,e.seed),i=A0e(r,e),s=O0e(r,i,e),l={h:r,s:i,v:s};return e.alpha!==void 0&&(l.a=e.alpha),new E_(l)}function k0e(e,t){var n=M0e(e),r=Z6(n,t);return r<0&&(r=360+r),r}function A0e(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return Z6([0,100],t.seed);var n=wY(e).saturationRange,r=n[0],i=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=i-10;break;case"light":i=55;break}return Z6([r,i],t.seed)}function O0e(e,t,n){var r=L0e(e,t),i=100;switch(n.luminosity){case"dark":i=r+20;break;case"light":r=(i+r)/2;break;case"random":r=0,i=100;break}return Z6([r,i],n.seed)}function L0e(e,t){for(var n=wY(e).lowerBounds,r=0;r<n.length-1;r++){var i=n[r][0],s=n[r][1],l=n[r+1][0],f=n[r+1][1];if(t>=i&&t<=l){var d=(f-s)/(l-i),m=s-d*i;return d*t+m}}return 0}function M0e(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=EY.find(function(l){return l.name===e});if(n){var r=_Y(n);if(r.hueRange)return r.hueRange}var i=new E_(e);if(i.isValid){var s=i.toHsv().h;return[s,s]}}return[0,360]}function wY(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=EY;t<n.length;t++){var r=n[t],i=_Y(r);if(i.hueRange&&e>=i.hueRange[0]&&e<=i.hueRange[1])return i}throw Error("Color not found")}function Z6(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 i=t/233280;return Math.floor(r+i*(n-r))}function _Y(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],i=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,i]}}var EY=[{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 D0e(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var P0e=e=>Object.keys(e).length===0,Js=(e,t,n)=>{const r=D0e(e,`colors.${t}`,t),{isValid:i}=new E_(r);return i?r:n},I0e=e=>t=>{const n=Js(t,e);return new E_(n).isDark()?"dark":"light"},F0e=e=>t=>I0e(e)(t)==="dark",X3=(e,t)=>n=>{const r=Js(n,e);return new E_(r).setAlpha(t).toRgbString()};function OB(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 z0e(e){const t=NY().toHexString();return!e||P0e(e)?t:e.string&&e.colors?$0e(e.string,e.colors):e.string&&!e.colors?B0e(e.string):e.colors&&!e.string?U0e(e.colors):t}function B0e(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 $0e(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 U0e(e){return e[Math.floor(Math.random()*e.length)]}function Nt(e,t){return n=>n.colorMode==="dark"?t:e}function $M(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function H0e(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function TY(e){return H0e(e)&&e.reference?e.reference:String(e)}var h7=(e,...t)=>t.map(TY).join(` ${e} `).replace(/calc/g,""),LB=(...e)=>`calc(${h7("+",...e)})`,MB=(...e)=>`calc(${h7("-",...e)})`,XA=(...e)=>`calc(${h7("*",...e)})`,DB=(...e)=>`calc(${h7("/",...e)})`,PB=e=>{const t=TY(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:XA(t,-1)},e0=Object.assign(e=>({add:(...t)=>e0(LB(e,...t)),subtract:(...t)=>e0(MB(e,...t)),multiply:(...t)=>e0(XA(e,...t)),divide:(...t)=>e0(DB(e,...t)),negate:()=>e0(PB(e)),toString:()=>e.toString()}),{add:LB,subtract:MB,multiply:XA,divide:DB,negate:PB});function j0e(e){return!Number.isInteger(parseFloat(e.toString()))}function V0e(e,t="-"){return e.replace(/\s+/g,t)}function RY(e){const t=V0e(e.toString());return t.includes("\\.")?e:j0e(e)?t.replace(".","\\."):e}function G0e(e,t=""){return[t,RY(e)].filter(Boolean).join("-")}function W0e(e,t){return`var(${RY(e)}${t?`, ${t}`:""})`}function Y0e(e,t=""){return`--${G0e(e,t)}`}function bf(e,t){const n=Y0e(e,t?.prefix);return{variable:n,reference:W0e(n,q0e(t?.fallback))}}function q0e(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:K0e,defineMultiStyleConfig:Z0e}=so(ige.keys),X0e={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Q0e={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},J0e={pt:"2",px:"4",pb:"5"},e1e={fontSize:"1.25em"},t1e=K0e({container:X0e,button:Q0e,panel:J0e,icon:e1e}),n1e=Z0e({baseStyle:t1e}),{definePartsStyle:T_,defineMultiStyleConfig:r1e}=so(oge.keys),i0=jS("alert-fg"),R_=jS("alert-bg"),a1e=T_({container:{bg:R_.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:i0.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:i0.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function UM(e){const{theme:t,colorScheme:n}=e,r=Js(t,`${n}.100`,n),i=X3(`${n}.200`,.16)(t);return Nt(r,i)(e)}var i1e=T_(e=>{const{colorScheme:t}=e,n=Nt(`${t}.500`,`${t}.200`)(e);return{container:{[R_.variable]:UM(e),[i0.variable]:`colors.${n}`}}}),o1e=T_(e=>{const{colorScheme:t}=e,n=Nt(`${t}.500`,`${t}.200`)(e);return{container:{[R_.variable]:UM(e),[i0.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:i0.reference}}}),s1e=T_(e=>{const{colorScheme:t}=e,n=Nt(`${t}.500`,`${t}.200`)(e);return{container:{[R_.variable]:UM(e),[i0.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:i0.reference}}}),l1e=T_(e=>{const{colorScheme:t}=e,n=Nt(`${t}.500`,`${t}.200`)(e),r=Nt("white","gray.900")(e);return{container:{[R_.variable]:`colors.${n}`,[i0.variable]:`colors.${r}`,color:i0.reference}}}),u1e={subtle:i1e,"left-accent":o1e,"top-accent":s1e,solid:l1e},c1e=r1e({baseStyle:a1e,variants:u1e,defaultProps:{variant:"subtle",colorScheme:"blue"}}),kY={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"},f1e={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"},d1e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},h1e={...kY,...f1e,container:d1e},AY=h1e,p1e=e=>typeof e=="function";function vs(e,...t){return p1e(e)?e(...t):e}var{definePartsStyle:OY,defineMultiStyleConfig:m1e}=so(sge.keys),v1e=e=>({borderRadius:"full",border:"0.2em solid",borderColor:Nt("white","gray.800")(e)}),g1e=e=>({bg:Nt("gray.200","whiteAlpha.400")(e)}),b1e=e=>{const{name:t,theme:n}=e,r=t?z0e({string:t}):"gray.400",i=F0e(r)(n);let s="white";i||(s="gray.800");const l=Nt("white","gray.800")(e);return{bg:r,color:s,borderColor:l,verticalAlign:"top"}},y1e=OY(e=>({badge:vs(v1e,e),excessLabel:vs(g1e,e),container:vs(b1e,e)}));function fb(e){const t=e!=="100%"?AY[e]:void 0;return OY({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 S1e={"2xs":fb(4),xs:fb(6),sm:fb(8),md:fb(12),lg:fb(16),xl:fb(24),"2xl":fb(32),full:fb("100%")},x1e=m1e({baseStyle:y1e,sizes:S1e,defaultProps:{size:"md"}}),C1e={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},N1e=e=>{const{colorScheme:t,theme:n}=e,r=X3(`${t}.500`,.6)(n);return{bg:Nt(`${t}.500`,r)(e),color:Nt("white","whiteAlpha.800")(e)}},w1e=e=>{const{colorScheme:t,theme:n}=e,r=X3(`${t}.200`,.16)(n);return{bg:Nt(`${t}.100`,r)(e),color:Nt(`${t}.800`,`${t}.200`)(e)}},_1e=e=>{const{colorScheme:t,theme:n}=e,r=X3(`${t}.200`,.8)(n),i=Js(n,`${t}.500`),s=Nt(i,r)(e);return{color:s,boxShadow:`inset 0 0 0px 1px ${s}`}},E1e={solid:N1e,subtle:w1e,outline:_1e},bw={baseStyle:C1e,variants:E1e,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:T1e,definePartsStyle:R1e}=so(lge.keys),k1e={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},A1e=R1e({link:k1e}),O1e=T1e({baseStyle:A1e}),L1e={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"}}},LY=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Nt("inherit","whiteAlpha.900")(e),_hover:{bg:Nt("gray.100","whiteAlpha.200")(e)},_active:{bg:Nt("gray.200","whiteAlpha.300")(e)}};const r=X3(`${t}.200`,.12)(n),i=X3(`${t}.200`,.24)(n);return{color:Nt(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Nt(`${t}.50`,r)(e)},_active:{bg:Nt(`${t}.100`,i)(e)}}},M1e=e=>{const{colorScheme:t}=e,n=Nt("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"},...vs(LY,e)}},D1e={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},P1e=e=>{const{colorScheme:t}=e;if(t==="gray"){const f=Nt("gray.100","whiteAlpha.200")(e);return{bg:f,_hover:{bg:Nt("gray.200","whiteAlpha.300")(e),_disabled:{bg:f}},_active:{bg:Nt("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:s=`${t}.700`}=D1e[t]??{},l=Nt(n,`${t}.200`)(e);return{bg:l,color:Nt(r,"gray.800")(e),_hover:{bg:Nt(i,`${t}.300`)(e),_disabled:{bg:l}},_active:{bg:Nt(s,`${t}.400`)(e)}}},I1e=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Nt(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Nt(`${t}.700`,`${t}.500`)(e)}}},F1e={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},z1e={ghost:LY,outline:M1e,solid:P1e,link:I1e,unstyled:F1e},B1e={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"}},$1e={baseStyle:L1e,variants:z1e,sizes:B1e,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:r6,defineMultiStyleConfig:U1e}=so(uge.keys),yw=jS("checkbox-size"),H1e=e=>{const{colorScheme:t}=e;return{w:yw.reference,h:yw.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Nt(`${t}.500`,`${t}.200`)(e),borderColor:Nt(`${t}.500`,`${t}.200`)(e),color:Nt("white","gray.900")(e),_hover:{bg:Nt(`${t}.600`,`${t}.300`)(e),borderColor:Nt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Nt("gray.200","transparent")(e),bg:Nt("gray.200","whiteAlpha.300")(e),color:Nt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Nt(`${t}.500`,`${t}.200`)(e),borderColor:Nt(`${t}.500`,`${t}.200`)(e),color:Nt("white","gray.900")(e)},_disabled:{bg:Nt("gray.100","whiteAlpha.100")(e),borderColor:Nt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Nt("red.500","red.300")(e)}}},j1e={_disabled:{cursor:"not-allowed"}},V1e={userSelect:"none",_disabled:{opacity:.4}},G1e={transitionProperty:"transform",transitionDuration:"normal"},W1e=r6(e=>({icon:G1e,container:j1e,control:vs(H1e,e),label:V1e})),Y1e={sm:r6({control:{[yw.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:r6({control:{[yw.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:r6({control:{[yw.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},X6=U1e({baseStyle:W1e,sizes:Y1e,defaultProps:{size:"md",colorScheme:"blue"}}),Sw=bf("close-button-size"),q1e=e=>{const t=Nt("blackAlpha.100","whiteAlpha.100")(e),n=Nt("blackAlpha.200","whiteAlpha.200")(e);return{w:[Sw.reference],h:[Sw.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},K1e={lg:{[Sw.variable]:"sizes.10",fontSize:"md"},md:{[Sw.variable]:"sizes.8",fontSize:"xs"},sm:{[Sw.variable]:"sizes.6",fontSize:"2xs"}},Z1e={baseStyle:q1e,sizes:K1e,defaultProps:{size:"md"}},{variants:X1e,defaultProps:Q1e}=bw,J1e={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},ebe={baseStyle:J1e,variants:X1e,defaultProps:Q1e},tbe={w:"100%",mx:"auto",maxW:"prose",px:"4"},nbe={baseStyle:tbe},rbe={opacity:.6,borderColor:"inherit"},abe={borderStyle:"solid"},ibe={borderStyle:"dashed"},obe={solid:abe,dashed:ibe},sbe={baseStyle:rbe,variants:obe,defaultProps:{variant:"solid"}},{definePartsStyle:QA,defineMultiStyleConfig:lbe}=so(cge.keys);function r3(e){return QA(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var ube={bg:"blackAlpha.600",zIndex:"overlay"},cbe={display:"flex",zIndex:"modal",justifyContent:"center"},fbe=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:Nt("white","gray.700")(e),color:"inherit",boxShadow:Nt("lg","dark-lg")(e)}},dbe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hbe={position:"absolute",top:"2",insetEnd:"3"},pbe={px:"6",py:"2",flex:"1",overflow:"auto"},mbe={px:"6",py:"4"},vbe=QA(e=>({overlay:ube,dialogContainer:cbe,dialog:vs(fbe,e),header:dbe,closeButton:hbe,body:pbe,footer:mbe})),gbe={xs:r3("xs"),sm:r3("md"),md:r3("lg"),lg:r3("2xl"),xl:r3("4xl"),full:r3("full")},bbe=lbe({baseStyle:vbe,sizes:gbe,defaultProps:{size:"xs"}}),{definePartsStyle:ybe,defineMultiStyleConfig:Sbe}=so(fge.keys),xbe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Cbe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Nbe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},wbe=ybe({preview:xbe,input:Cbe,textarea:Nbe}),_be=Sbe({baseStyle:wbe}),{definePartsStyle:Ebe,defineMultiStyleConfig:Tbe}=so(dge.keys),Rbe=e=>({marginStart:"1",color:Nt("red.500","red.300")(e)}),kbe=e=>({mt:"2",color:Nt("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Abe=Ebe(e=>({container:{width:"100%",position:"relative"},requiredIndicator:vs(Rbe,e),helperText:vs(kbe,e)})),Obe=Tbe({baseStyle:Abe}),{definePartsStyle:Lbe,defineMultiStyleConfig:Mbe}=so(hge.keys),Dbe=e=>({color:Nt("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Pbe=e=>({marginEnd:"0.5em",color:Nt("red.500","red.300")(e)}),Ibe=Lbe(e=>({text:vs(Dbe,e),icon:vs(Pbe,e)})),Fbe=Mbe({baseStyle:Ibe}),zbe={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Bbe={baseStyle:zbe},$be={fontFamily:"heading",fontWeight:"bold"},Ube={"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}},Hbe={baseStyle:$be,sizes:Ube,defaultProps:{size:"xl"}},{definePartsStyle:t0,defineMultiStyleConfig:jbe}=so(pge.keys),Vbe=t0({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),db={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"}},Gbe={lg:t0({field:db.lg,addon:db.lg}),md:t0({field:db.md,addon:db.md}),sm:t0({field:db.sm,addon:db.sm}),xs:t0({field:db.xs,addon:db.xs})};function HM(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Nt("blue.500","blue.300")(e),errorBorderColor:n||Nt("red.500","red.300")(e)}}var Wbe=t0(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=HM(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Nt("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Js(t,r),boxShadow:`0 0 0 1px ${Js(t,r)}`},_focusVisible:{zIndex:1,borderColor:Js(t,n),boxShadow:`0 0 0 1px ${Js(t,n)}`}},addon:{border:"1px solid",borderColor:Nt("inherit","whiteAlpha.50")(e),bg:Nt("gray.100","whiteAlpha.300")(e)}}}),Ybe=t0(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=HM(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Nt("gray.100","whiteAlpha.50")(e),_hover:{bg:Nt("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Js(t,r)},_focusVisible:{bg:"transparent",borderColor:Js(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Nt("gray.100","whiteAlpha.50")(e)}}}),qbe=t0(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=HM(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Js(t,r),boxShadow:`0px 1px 0px 0px ${Js(t,r)}`},_focusVisible:{borderColor:Js(t,n),boxShadow:`0px 1px 0px 0px ${Js(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Kbe=t0({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Zbe={outline:Wbe,filled:Ybe,flushed:qbe,unstyled:Kbe},Pa=jbe({baseStyle:Vbe,sizes:Gbe,variants:Zbe,defaultProps:{size:"md",variant:"outline"}}),Xbe=e=>({bg:Nt("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Qbe={baseStyle:Xbe},Jbe={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},eye={baseStyle:Jbe},{defineMultiStyleConfig:tye,definePartsStyle:nye}=so(mge.keys),rye={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},aye=nye({icon:rye}),iye=tye({baseStyle:aye}),{defineMultiStyleConfig:oye,definePartsStyle:sye}=so(vge.keys),lye=e=>({bg:Nt("#fff","gray.700")(e),boxShadow:Nt("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),uye=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:Nt("gray.100","whiteAlpha.100")(e)},_active:{bg:Nt("gray.200","whiteAlpha.200")(e)},_expanded:{bg:Nt("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),cye={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},fye={opacity:.6},dye={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},hye={transitionProperty:"common",transitionDuration:"normal"},pye=sye(e=>({button:hye,list:vs(lye,e),item:vs(uye,e),groupTitle:cye,command:fye,divider:dye})),mye=oye({baseStyle:pye}),{defineMultiStyleConfig:vye,definePartsStyle:JA}=so(gge.keys),gye={bg:"blackAlpha.600",zIndex:"modal"},bye=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},yye=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:Nt("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:Nt("lg","dark-lg")(e)}},Sye={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xye={position:"absolute",top:"2",insetEnd:"3"},Cye=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Nye={px:"6",py:"4"},wye=JA(e=>({overlay:gye,dialogContainer:vs(bye,e),dialog:vs(yye,e),header:Sye,closeButton:xye,body:vs(Cye,e),footer:Nye}));function pp(e){return JA(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var _ye={xs:pp("xs"),sm:pp("sm"),md:pp("md"),lg:pp("lg"),xl:pp("xl"),"2xl":pp("2xl"),"3xl":pp("3xl"),"4xl":pp("4xl"),"5xl":pp("5xl"),"6xl":pp("6xl"),full:pp("full")},Eye=vye({baseStyle:wye,sizes:_ye,defaultProps:{size:"md"}}),Tye={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"}},MY=Tye,{defineMultiStyleConfig:Rye,definePartsStyle:DY}=so(bge.keys),jM=bf("number-input-stepper-width"),PY=bf("number-input-input-padding"),kye=e0(jM).add("0.5rem").toString(),Aye={[jM.variable]:"sizes.6",[PY.variable]:kye},Oye=e=>{var t;return((t=vs(Pa.baseStyle,e))==null?void 0:t.field)??{}},Lye={width:[jM.reference]},Mye=e=>({borderStart:"1px solid",borderStartColor:Nt("inherit","whiteAlpha.300")(e),color:Nt("inherit","whiteAlpha.800")(e),_active:{bg:Nt("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Dye=DY(e=>({root:Aye,field:Oye,stepperGroup:Lye,stepper:vs(Mye,e)??{}}));function cT(e){var t,n;const r=(t=Pa.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=((n=r.field)==null?void 0:n.fontSize)??"md",l=MY.fontSizes[s];return DY({field:{...r.field,paddingInlineEnd:PY.reference,verticalAlign:"top"},stepper:{fontSize:e0(l).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Pye={xs:cT("xs"),sm:cT("sm"),md:cT("md"),lg:cT("lg")},Iye=Rye({baseStyle:Dye,sizes:Pye,variants:Pa.variants,defaultProps:Pa.defaultProps}),IB,Fye={...(IB=Pa.baseStyle)==null?void 0:IB.field,textAlign:"center"},zye={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"}},FB,Bye={outline:e=>{var t,n;return((n=vs((t=Pa.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=vs((t=Pa.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=vs((t=Pa.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((FB=Pa.variants)==null?void 0:FB.unstyled.field)??{}},$ye={baseStyle:Fye,sizes:zye,variants:Bye,defaultProps:Pa.defaultProps},{defineMultiStyleConfig:Uye,definePartsStyle:Hye}=so(yge.keys),F8=bf("popper-bg"),jye=bf("popper-arrow-bg"),Vye=bf("popper-arrow-shadow-color"),Gye={zIndex:10},Wye=e=>{const t=Nt("white","gray.700")(e),n=Nt("gray.200","whiteAlpha.300")(e);return{[F8.variable]:`colors.${t}`,bg:F8.reference,[jye.variable]:F8.reference,[Vye.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Yye={px:3,py:2,borderBottomWidth:"1px"},qye={px:3,py:2},Kye={px:3,py:2,borderTopWidth:"1px"},Zye={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Xye=Hye(e=>({popper:Gye,content:Wye(e),header:Yye,body:qye,footer:Kye,closeButton:Zye})),Qye=Uye({baseStyle:Xye}),{defineMultiStyleConfig:Jye,definePartsStyle:KN}=so(Sge.keys),e2e=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,s=Nt(OB(),OB("1rem","rgba(0,0,0,0.1)"))(e),l=Nt(`${t}.500`,`${t}.200`)(e),f=`linear-gradient(
to right,
transparent 0%,
${Js(n,l)} 50%,
transparent 100%
)`;return{...!r&&i&&s,...r?{bgImage:f}:{bgColor:l}}},t2e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},n2e=e=>({bg:Nt("gray.100","whiteAlpha.300")(e)}),r2e=e=>({transitionProperty:"common",transitionDuration:"slow",...e2e(e)}),a2e=KN(e=>({label:t2e,filledTrack:r2e(e),track:n2e(e)})),i2e={xs:KN({track:{h:"1"}}),sm:KN({track:{h:"2"}}),md:KN({track:{h:"3"}}),lg:KN({track:{h:"4"}})},o2e=Jye({sizes:i2e,baseStyle:a2e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:s2e,definePartsStyle:a6}=so(xge.keys),l2e=e=>{var t;const n=(t=vs(X6.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"}}}},u2e=a6(e=>{var t,n,r,i;return{label:(n=(t=X6).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=X6).baseStyle)==null?void 0:i.call(r,e).container,control:l2e(e)}}),c2e={md:a6({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:a6({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:a6({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},f2e=s2e({baseStyle:u2e,sizes:c2e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:d2e,definePartsStyle:h2e}=so(Cge.keys),p2e=e=>{var t;return{...(t=Pa.baseStyle)==null?void 0:t.field,bg:Nt("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Nt("white","gray.700")(e)}}},m2e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},v2e=h2e(e=>({field:p2e(e),icon:m2e})),fT={paddingInlineEnd:"8"},zB,BB,$B,UB,HB,jB,VB,GB,g2e={lg:{...(zB=Pa.sizes)==null?void 0:zB.lg,field:{...(BB=Pa.sizes)==null?void 0:BB.lg.field,...fT}},md:{...($B=Pa.sizes)==null?void 0:$B.md,field:{...(UB=Pa.sizes)==null?void 0:UB.md.field,...fT}},sm:{...(HB=Pa.sizes)==null?void 0:HB.sm,field:{...(jB=Pa.sizes)==null?void 0:jB.sm.field,...fT}},xs:{...(VB=Pa.sizes)==null?void 0:VB.xs,field:{...(GB=Pa.sizes)==null?void 0:GB.sm.field,...fT},icon:{insetEnd:"1"}}},b2e=d2e({baseStyle:v2e,sizes:g2e,variants:Pa.variants,defaultProps:Pa.defaultProps}),y2e=jS("skeleton-start-color"),S2e=jS("skeleton-end-color"),x2e=e=>{const t=Nt("gray.100","gray.800")(e),n=Nt("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:s}=e,l=Js(s,r),f=Js(s,i);return{[y2e.variable]:l,[S2e.variable]:f,opacity:.7,borderRadius:"2px",borderColor:l,background:f}},C2e={baseStyle:x2e},N2e=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Nt("white","gray.700")(e)}}),w2e={baseStyle:N2e},{defineMultiStyleConfig:_2e,definePartsStyle:p7}=so(Nge.keys),Zw=jS("slider-thumb-size"),Xw=jS("slider-track-size"),E2e=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...$M({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},T2e=e=>({...$M({orientation:e.orientation,horizontal:{h:Xw.reference},vertical:{w:Xw.reference}}),overflow:"hidden",borderRadius:"sm",bg:Nt("gray.200","whiteAlpha.200")(e),_disabled:{bg:Nt("gray.300","whiteAlpha.300")(e)}}),R2e=e=>{const{orientation:t}=e;return{...$M({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:Zw.reference,h:Zw.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"}}},k2e=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Nt(`${t}.500`,`${t}.200`)(e)}},A2e=p7(e=>({container:E2e(e),track:T2e(e),thumb:R2e(e),filledTrack:k2e(e)})),O2e=p7({container:{[Zw.variable]:"sizes.4",[Xw.variable]:"sizes.1"}}),L2e=p7({container:{[Zw.variable]:"sizes.3.5",[Xw.variable]:"sizes.1"}}),M2e=p7({container:{[Zw.variable]:"sizes.2.5",[Xw.variable]:"sizes.0.5"}}),D2e={lg:O2e,md:L2e,sm:M2e},P2e=_2e({baseStyle:A2e,sizes:D2e,defaultProps:{size:"md",colorScheme:"blue"}}),pS=bf("spinner-size"),I2e={width:[pS.reference],height:[pS.reference]},F2e={xs:{[pS.variable]:"sizes.3"},sm:{[pS.variable]:"sizes.4"},md:{[pS.variable]:"sizes.6"},lg:{[pS.variable]:"sizes.8"},xl:{[pS.variable]:"sizes.12"}},z2e={baseStyle:I2e,sizes:F2e,defaultProps:{size:"md"}},{defineMultiStyleConfig:B2e,definePartsStyle:IY}=so(wge.keys),$2e={fontWeight:"medium"},U2e={opacity:.8,marginBottom:"2"},H2e={verticalAlign:"baseline",fontWeight:"semibold"},j2e={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},V2e=IY({container:{},label:$2e,helpText:U2e,number:H2e,icon:j2e}),G2e={md:IY({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},W2e=B2e({baseStyle:V2e,sizes:G2e,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Y2e,definePartsStyle:i6}=so(_ge.keys),xw=bf("switch-track-width"),TS=bf("switch-track-height"),z8=bf("switch-track-diff"),q2e=e0.subtract(xw,TS),eO=bf("switch-thumb-x"),K2e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[xw.reference],height:[TS.reference],transitionProperty:"common",transitionDuration:"fast",bg:Nt("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:Nt(`${t}.500`,`${t}.200`)(e)}}},Z2e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[TS.reference],height:[TS.reference],_checked:{transform:`translateX(${eO.reference})`}},X2e=i6(e=>({container:{[z8.variable]:q2e,[eO.variable]:z8.reference,_rtl:{[eO.variable]:e0(z8).negate().toString()}},track:K2e(e),thumb:Z2e})),Q2e={sm:i6({container:{[xw.variable]:"1.375rem",[TS.variable]:"sizes.3"}}),md:i6({container:{[xw.variable]:"1.875rem",[TS.variable]:"sizes.4"}}),lg:i6({container:{[xw.variable]:"2.875rem",[TS.variable]:"sizes.6"}})},J2e=Y2e({baseStyle:X2e,sizes:Q2e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eSe,definePartsStyle:P3}=so(Ege.keys),tSe=P3({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"}}),Q6={"&[data-is-numeric=true]":{textAlign:"end"}},nSe=P3(e=>{const{colorScheme:t}=e;return{th:{color:Nt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Nt(`${t}.100`,`${t}.700`)(e),...Q6},td:{borderBottom:"1px",borderColor:Nt(`${t}.100`,`${t}.700`)(e),...Q6},caption:{color:Nt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),rSe=P3(e=>{const{colorScheme:t}=e;return{th:{color:Nt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Nt(`${t}.100`,`${t}.700`)(e),...Q6},td:{borderBottom:"1px",borderColor:Nt(`${t}.100`,`${t}.700`)(e),...Q6},caption:{color:Nt("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Nt(`${t}.100`,`${t}.700`)(e)},td:{background:Nt(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),aSe={simple:nSe,striped:rSe,unstyled:{}},iSe={sm:P3({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:P3({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:P3({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},oSe=eSe({baseStyle:tSe,variants:aSe,sizes:iSe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:sSe,definePartsStyle:lv}=so(Tge.keys),lSe=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},uSe=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}}},cSe=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},fSe={p:4},dSe=lv(e=>({root:lSe(e),tab:uSe(e),tablist:cSe(e),tabpanel:fSe})),hSe={sm:lv({tab:{py:1,px:4,fontSize:"sm"}}),md:lv({tab:{fontSize:"md",py:2,px:4}}),lg:lv({tab:{fontSize:"lg",py:3,px:4}})},pSe=lv(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=n==="vertical"?"borderStart":"borderBottom",s=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{color:Nt(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:Nt("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),mSe=lv(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:Nt(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:Nt("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),vSe=lv(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:Nt("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:Nt("#fff","gray.800")(e),color:Nt(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),gSe=lv(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Js(n,`${t}.700`),bg:Js(n,`${t}.100`)}}}}),bSe=lv(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:Nt("gray.600","inherit")(e),_selected:{color:Nt("#fff","gray.800")(e),bg:Nt(`${t}.600`,`${t}.300`)(e)}}}}),ySe=lv({}),SSe={line:pSe,enclosed:mSe,"enclosed-colored":vSe,"soft-rounded":gSe,"solid-rounded":bSe,unstyled:ySe},xSe=sSe({baseStyle:dSe,sizes:hSe,variants:SSe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:CSe,definePartsStyle:RS}=so(Rge.keys),NSe={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},wSe={lineHeight:1.2,overflow:"visible"},_Se={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}},ESe=RS({container:NSe,label:wSe,closeButton:_Se}),TSe={sm:RS({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:RS({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:RS({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},RSe={subtle:RS(e=>{var t;return{container:(t=bw.variants)==null?void 0:t.subtle(e)}}),solid:RS(e=>{var t;return{container:(t=bw.variants)==null?void 0:t.solid(e)}}),outline:RS(e=>{var t;return{container:(t=bw.variants)==null?void 0:t.outline(e)}})},kSe=CSe({variants:RSe,baseStyle:ESe,sizes:TSe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),WB,ASe={...(WB=Pa.baseStyle)==null?void 0:WB.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},YB,OSe={outline:e=>{var t;return((t=Pa.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Pa.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Pa.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((YB=Pa.variants)==null?void 0:YB.unstyled.field)??{}},qB,KB,ZB,XB,LSe={xs:((qB=Pa.sizes)==null?void 0:qB.xs.field)??{},sm:((KB=Pa.sizes)==null?void 0:KB.sm.field)??{},md:((ZB=Pa.sizes)==null?void 0:ZB.md.field)??{},lg:((XB=Pa.sizes)==null?void 0:XB.lg.field)??{}},MSe={baseStyle:ASe,sizes:LSe,variants:OSe,defaultProps:{size:"md",variant:"outline"}},B8=bf("tooltip-bg"),QB=bf("tooltip-fg"),DSe=bf("popper-arrow-bg"),PSe=e=>{const t=Nt("gray.700","gray.300")(e),n=Nt("whiteAlpha.900","gray.900")(e);return{bg:B8.reference,color:QB.reference,[B8.variable]:`colors.${t}`,[QB.variable]:`colors.${n}`,[DSe.variable]:B8.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},ISe={baseStyle:PSe},FSe={Accordion:n1e,Alert:c1e,Avatar:x1e,Badge:bw,Breadcrumb:O1e,Button:$1e,Checkbox:X6,CloseButton:Z1e,Code:ebe,Container:nbe,Divider:sbe,Drawer:bbe,Editable:_be,Form:Obe,FormError:Fbe,FormLabel:Bbe,Heading:Hbe,Input:Pa,Kbd:Qbe,Link:eye,List:iye,Menu:mye,Modal:Eye,NumberInput:Iye,PinInput:$ye,Popover:Qye,Progress:o2e,Radio:f2e,Select:b2e,Skeleton:C2e,SkipLink:w2e,Slider:P2e,Spinner:z2e,Stat:W2e,Switch:J2e,Table:oSe,Tabs:xSe,Tag:kSe,Textarea:MSe,Tooltip:ISe},zSe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},BSe=zSe,$Se={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},USe=$Se,HSe={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"}},jSe=HSe,VSe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},GSe=VSe,WSe={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"},YSe=WSe,qSe={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"},KSe={"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)"},ZSe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},XSe={property:qSe,easing:KSe,duration:ZSe},QSe=XSe,JSe={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},exe=JSe,txe={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},nxe=txe,rxe={breakpoints:USe,zIndices:exe,radii:GSe,blur:nxe,colors:jSe,...MY,sizes:AY,shadows:YSe,space:kY,borders:BSe,transition:QSe},axe={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"}}},ixe={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 oxe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var sxe=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function lxe(e){return oxe(e)?sxe.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var uxe="ltr",cxe={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},FY={semanticTokens:axe,direction:uxe,...rxe,components:FSe,styles:ixe,config:cxe};function fxe(e,t){const n=Jo(e);O.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}var n0="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function tO(e,...t){return dxe(e)?e(...t):e}var dxe=e=>typeof e=="function";function hxe(e,t){const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return i?.[t]??n}var pxe=(e,t)=>e.find(n=>n.id===t);function JB(e,t){const n=zY(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function zY(e,t){for(const[n,r]of Object.entries(e))if(pxe(r,t))return n}function mxe(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 vxe(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",l=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:s,left:l}}var gxe={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nv=bxe(gxe);function bxe(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(s=>s())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,s)=>{r(l=>({...l,[s]:l[s].filter(f=>f.id!=i)}))},notify:(i,s)=>{const l=yxe(i,s),{position:f,id:d}=l;return r(m=>{const S=f.includes("top")?[l,...m[f]??[]]:[...m[f]??[],l];return{...m,[f]:S}}),d},update:(i,s)=>{!i||r(l=>{const f={...l},{position:d,index:m}=JB(f,i);return d&&m!==-1&&(f[d][m]={...f[d][m],...s,message:BY(s)}),f})},closeAll:({positions:i}={})=>{r(s=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((d,m)=>(d[m]=s[m].map(b=>({...b,requestClose:!0})),d),{...s}))},close:i=>{r(s=>{const l=zY(s,i);return l?{...s,[l]:s[l].map(f=>f.id==i?{...f,requestClose:!0}:f)}:s})},isActive:i=>Boolean(JB(nv.getState(),i).position)}}var e$=0;function yxe(e,t={}){e$+=1;const n=t.id??e$,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>nv.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Sxe=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:s,onClose:l,description:f,icon:d}=e,m=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return ke.createElement(YV,{addRole:!1,status:t,variant:n,id:m?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},_(KV,{children:d},void 0,!1,{fileName:n0,lineNumber:237,columnNumber:22},globalThis),ke.createElement(nt.div,{flex:"1",maxWidth:"100%"},i&&_(ZV,{id:m?.title,children:i},void 0,!1,{fileName:n0,lineNumber:240,columnNumber:31},globalThis),f&&_(qV,{id:m?.description,display:"block",children:f},void 0,!1,{fileName:n0,lineNumber:242,columnNumber:45},globalThis)),s&&_(Q9,{size:"sm",onClick:l,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:n0,lineNumber:245,columnNumber:51},globalThis))};function BY(e={}){const{render:t,toastComponent:n=Sxe}=e;return i=>typeof t=="function"?t(i):_(n,{...i,...e},void 0,!1,{fileName:n0,lineNumber:259,columnNumber:28},this)}function xxe(e,t){const n=i=>({...t,...i,position:hxe(i?.position??t?.position,e)}),r=i=>{const s=n(i),l=BY(s);return nv.notify(l,s)};return r.update=(i,s)=>{nv.update(i,n(s))},r.promise=(i,s)=>{const l=r({...s.loading,status:"loading",duration:null});i.then(f=>r.update(l,{status:"success",duration:5e3,...tO(s.success,f)})).catch(f=>r.update(l,{status:"error",duration:5e3,...tO(s.error,f)}))},r.closeAll=nv.closeAll,r.close=nv.close,r.isActive=nv.isActive,r}function Ub(e){const{theme:t}=dj();return O.exports.useMemo(()=>xxe(t.direction,e),[e,t.direction])}var Cxe={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]}}},$Y=O.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:s=!1,position:l="bottom",duration:f=5e3,containerStyle:d,motionVariants:m=Cxe,toastSpacing:b="0.5rem"}=e,[S,N]=O.exports.useState(f),w=Ioe();V3(()=>{w||r?.()},[w]),V3(()=>{N(f)},[f]);const T=()=>N(null),L=()=>N(f),M=()=>{w&&i()};O.exports.useEffect(()=>{w&&s&&i()},[w,s,i]),fxe(M,S);const B=O.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...d}),[d,b]),F=O.exports.useMemo(()=>mxe(l),[l]);return ke.createElement(lh.li,{layout:!0,className:"chakra-toast",variants:m,initial:"initial",animate:"animate",exit:"exit",onHoverStart:T,onHoverEnd:L,custom:{position:l},style:F},ke.createElement(nt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:B},tO(n,{id:t,onClose:M})))});$Y.displayName="ToastComponent";var Nxe=e=>{const t=O.exports.useSyncExternalStore(nv.subscribe,nv.getState,nv.getState),{children:n,motionVariants:r,component:i=$Y,portalProps:s}=e,f=Object.keys(t).map(d=>{const m=t[d];return _("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${d}`,style:vxe(d),children:_(f0,{initial:!1,children:m.map(b=>_(i,{motionVariants:r,...b},b.id,!1,{fileName:n0,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:n0,lineNumber:432,columnNumber:24},globalThis)},d,!1,{fileName:n0,lineNumber:426,columnNumber:28},globalThis)});return _(Ci,{children:[n,_(BS,{...s,children:f},void 0,!1,{fileName:n0,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},t$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function wxe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function _xe(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Exe={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 ON(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var nO=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},rO=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Txe(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnEsc:s=!0,onOpen:l,onClose:f,placement:d,id:m,isOpen:b,defaultIsOpen:S,arrowSize:N=10,arrowShadowColor:w,arrowPadding:T,modifiers:L,isDisabled:M,gutter:B,offset:F,direction:z,...H}=e,{isOpen:G,onOpen:K,onClose:Z}=UG({isOpen:b,defaultIsOpen:S,onOpen:l,onClose:f}),{referenceRef:ne,getPopperProps:ie,getArrowInnerProps:le,getArrowProps:oe}=$G({enabled:G,placement:d,arrowPadding:T,modifiers:L,gutter:B,offset:F,direction:z}),Ae=O.exports.useId(),Se=`tooltip-${m??Ae}`,Me=O.exports.useRef(null),_e=O.exports.useRef(),J=O.exports.useRef(),he=O.exports.useCallback(()=>{J.current&&(clearTimeout(J.current),J.current=void 0),Z()},[Z]),ve=Rxe(Me,he),ye=O.exports.useCallback(()=>{if(!M&&!_e.current){ve();const ut=rO(Me);_e.current=ut.setTimeout(K,t)}},[ve,M,K,t]),xe=O.exports.useCallback(()=>{_e.current&&(clearTimeout(_e.current),_e.current=void 0);const ut=rO(Me);J.current=ut.setTimeout(he,n)},[n,he]),Ve=O.exports.useCallback(()=>{G&&r&&xe()},[r,xe,G]),Pe=O.exports.useCallback(()=>{G&&i&&xe()},[i,xe,G]),Qe=O.exports.useCallback(ut=>{G&&ut.key==="Escape"&&xe()},[G,xe]);OA(()=>nO(Me),"keydown",s?Qe:void 0),O.exports.useEffect(()=>()=>{clearTimeout(_e.current),clearTimeout(J.current)},[]),OA(()=>Me.current,"mouseleave",xe);const wt=O.exports.useCallback((ut={},It=null)=>({...ut,ref:xi(Me,It,ne),onMouseEnter:ON(ut.onMouseEnter,ye),onClick:ON(ut.onClick,Ve),onMouseDown:ON(ut.onMouseDown,Pe),onFocus:ON(ut.onFocus,ye),onBlur:ON(ut.onBlur,xe),"aria-describedby":G?Se:void 0}),[ye,xe,Pe,G,Se,Ve,ne]),Ot=O.exports.useCallback((ut={},It=null)=>ie({...ut,style:{...ut.style,[Os.arrowSize.var]:N?`${N}px`:void 0,[Os.arrowShadowColor.var]:w}},It),[ie,N,w]),Ut=O.exports.useCallback((ut={},It=null)=>{const Qt={...ut.style,position:"relative",transformOrigin:Os.transformOrigin.varRef};return{ref:It,...H,...ut,id:Se,role:"tooltip",style:Qt}},[H,Se]);return{isOpen:G,show:ye,hide:xe,getTriggerProps:wt,getTooltipProps:Ut,getTooltipPositionerProps:Ot,getArrowProps:oe,getArrowInnerProps:le}}var $8="chakra-ui:close-tooltip";function Rxe(e,t){return O.exports.useEffect(()=>{const n=nO(e);return n.addEventListener($8,t),()=>n.removeEventListener($8,t)},[t,e]),()=>{const n=nO(e),r=rO(e);n.dispatchEvent(new r.CustomEvent($8))}}var kxe=nt(lh.div),el=Ct((e,t)=>{const n=Ac("Tooltip",e),r=Ia(e),i=aC(),{children:s,label:l,shouldWrapChildren:f,"aria-label":d,hasArrow:m,bg:b,portalProps:S,background:N,backgroundColor:w,bgColor:T,...L}=r,M=N??w??b??T;if(M){n.bg=M;const ne=Ite(i,"colors",M);n[Os.arrowBg.var]=ne}const B=Txe({...L,direction:i.direction}),F=typeof s=="string"||f;let z;if(F)z=ke.createElement(nt.span,{tabIndex:0,...B.getTriggerProps()},s);else{const ne=O.exports.Children.only(s);z=O.exports.cloneElement(ne,B.getTriggerProps(ne.props,ne.ref))}const H=!!d,G=B.getTooltipProps({},t),K=H?wxe(G,["role","id"]):G,Z=_xe(G,["role","id"]);return l?_(Ci,{children:[z,_(f0,{children:B.isOpen&&ke.createElement(BS,{...S},ke.createElement(nt.div,{...B.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},_(kxe,{variants:Exe,...K,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[l,H&&ke.createElement(nt.span,{srOnly:!0,...Z},d),m&&ke.createElement(nt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ke.createElement(nt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]},void 0,!0,{fileName:t$,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:t$,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):_(Ci,{children:s},void 0,!1)});el.displayName="Tooltip";var nS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",Axe=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:i=!0,theme:s={},environment:l,cssVarsRoot:f}=e,d=_(kG,{environment:l,children:t},void 0,!1,{fileName:nS,lineNumber:25,columnNumber:37},globalThis);return _(Zre,{theme:s,cssVarsRoot:f,children:_(OH,{colorModeManager:n,options:s.config,children:[i?_(Ece,{},void 0,!1,{fileName:nS,lineNumber:34,columnNumber:33},globalThis):_(_ce,{},void 0,!1,{fileName:nS,lineNumber:34,columnNumber:87},globalThis),_(Qre,{},void 0,!1,{fileName:nS,lineNumber:34,columnNumber:143},globalThis),r?_(jG,{zIndex:r,children:d},void 0,!1,{fileName:nS,lineNumber:34,columnNumber:214},globalThis):d]},void 0,!0,{fileName:nS,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:nS,lineNumber:28,columnNumber:26},globalThis)},n$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function Oxe({children:e,theme:t=FY,toastOptions:n,...r}){return _(Axe,{theme:t,...r,children:[e,_(Nxe,{...n},void 0,!1,{fileName:n$,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:n$,lineNumber:62,columnNumber:26},this)}function Lxe(...e){let t=[...e],n=e[e.length-1];return lxe(n)&&t.length>1?t=t.slice(0,t.length-1):n=FY,mre(...t.map(r=>i=>g3(r)?r(i):Mxe(i,r)))(n)}function Mxe(...e){return r0({},...e,UY)}function UY(e,t,n,r){if((g3(e)||g3(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const s=g3(e)?e(...i):e,l=g3(t)?t(...i):t;return r0({},s,l,UY)}}function Tl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];{var i=Hxe[e],s=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+s)}}function Pb(e){return!!e&&!!e[oo]}function o0(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)===jxe}(e)||Array.isArray(e)||!!e[u$]||!!e.constructor[u$]||VM(e)||GM(e))}function MS(e,t,n){n===void 0&&(n=!1),hC(e)===0?(n?Object.keys:F3)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function hC(e){var t=e[oo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:VM(e)?2:GM(e)?3:0}function I3(e,t){return hC(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Dxe(e,t){return hC(e)===2?e.get(t):e[t]}function HY(e,t,n){var r=hC(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function jY(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function VM(e){return $xe&&e instanceof Map}function GM(e){return Uxe&&e instanceof Set}function Sb(e){return e.o||e.t}function WM(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=GY(e);delete t[oo];for(var n=F3(t),r=0;r<n.length;r++){var i=n[r],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function YM(e,t){return t===void 0&&(t=!1),qM(e)||Pb(e)||!o0(e)||(hC(e)>1&&(e.set=e.add=e.clear=e.delete=Pxe),Object.freeze(e),t&&MS(e,function(n,r){return YM(r,!0)},!0)),e}function Pxe(){Tl(2)}function qM(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function uv(e){var t=sO[e];return t||Tl(18,e),t}function Ixe(e,t){sO[e]||(sO[e]=t)}function aO(){return Q3||Tl(0),Q3}function U8(e,t){t&&(uv("Patches"),e.u=[],e.s=[],e.v=t)}function J6(e){iO(e),e.p.forEach(Fxe),e.p=null}function iO(e){e===Q3&&(Q3=e.l)}function r$(e){return Q3={p:[],l:Q3,h:e,m:!0,_:0}}function Fxe(e){var t=e[oo];t.i===0||t.i===1?t.j():t.O=!0}function H8(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||uv("ES5").S(t,e,r),r?(n[oo].P&&(J6(t),Tl(4)),o0(e)&&(e=e9(t,e),t.l||t9(t,e)),t.u&&uv("Patches").M(n[oo].t,e,t.u,t.s)):e=e9(t,n,[]),J6(t),t.u&&t.v(t.u,t.s),e!==VY?e:void 0}function e9(e,t,n){if(qM(t))return t;var r=t[oo];if(!r)return MS(t,function(s,l){return a$(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return t9(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=WM(r.k):r.o;MS(r.i===3?new Set(i):i,function(s,l){return a$(e,r,i,s,l,n)}),t9(e,i,!1),n&&e.u&&uv("Patches").R(r,n,e.u,e.s)}return r.o}function a$(e,t,n,r,i,s){if(i===n&&Tl(5),Pb(i)){var l=e9(e,i,s&&t&&t.i!==3&&!I3(t.D,r)?s.concat(r):void 0);if(HY(n,r,l),!Pb(l))return;e.m=!1}if(o0(i)&&!qM(i)){if(!e.h.F&&e._<1)return;e9(e,i),t&&t.A.l||t9(e,i)}}function t9(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&YM(t,n)}function j8(e,t){var n=e[oo];return(n?Sb(n):e)[t]}function i$(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 xb(e){e.P||(e.P=!0,e.l&&xb(e.l))}function V8(e){e.o||(e.o=WM(e.t))}function oO(e,t,n){var r=VM(t)?uv("MapSet").N(t,n):GM(t)?uv("MapSet").T(t,n):e.g?function(i,s){var l=Array.isArray(i),f={i:l?1:0,A:s?s.A:aO(),P:!1,I:!1,D:{},l:s,t:i,k:null,o:null,j:null,C:!1},d=f,m=Qw;l&&(d=[f],m=ZN);var b=Proxy.revocable(d,m),S=b.revoke,N=b.proxy;return f.k=N,f.j=S,N}(t,n):uv("ES5").J(t,n);return(n?n.A:aO()).p.push(r),r}function zxe(e){return Pb(e)||Tl(22,e),function t(n){if(!o0(n))return n;var r,i=n[oo],s=hC(n);if(i){if(!i.P&&(i.i<4||!uv("ES5").K(i)))return i.t;i.I=!0,r=o$(n,s),i.I=!1}else r=o$(n,s);return MS(r,function(l,f){i&&Dxe(i.t,l)===f||HY(r,l,t(f))}),s===3?new Set(r):r}(e)}function o$(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return WM(e)}function Bxe(){function e(l,f){var d=s[l];return d?d.enumerable=f:s[l]=d={configurable:!0,enumerable:f,get:function(){var m=this[oo];return i(m),Qw.get(m,l)},set:function(m){var b=this[oo];i(b),Qw.set(b,l,m)}},d}function t(l){for(var f=l.length-1;f>=0;f--){var d=l[f][oo];if(!d.P)switch(d.i){case 5:r(d)&&xb(d);break;case 4:n(d)&&xb(d)}}}function n(l){for(var f=l.t,d=l.k,m=F3(d),b=m.length-1;b>=0;b--){var S=m[b];if(S!==oo){var N=f[S];if(N===void 0&&!I3(f,S))return!0;var w=d[S],T=w&&w[oo];if(T?T.t!==N:!jY(w,N))return!0}}var L=!!f[oo];return m.length!==F3(f).length+(L?0:1)}function r(l){var f=l.k;if(f.length!==l.t.length)return!0;var d=Object.getOwnPropertyDescriptor(f,f.length-1);if(d&&!d.get)return!0;for(var m=0;m<f.length;m++)if(!f.hasOwnProperty(m))return!0;return!1}function i(l){l.O&&Tl(3,JSON.stringify(Sb(l)))}var s={};Ixe("ES5",{J:function(l,f){var d=Array.isArray(l),m=function(S,N){if(S){for(var w=Array(N.length),T=0;T<N.length;T++)Object.defineProperty(w,""+T,e(T,!0));return w}var L=GY(N);delete L[oo];for(var M=F3(L),B=0;B<M.length;B++){var F=M[B];L[F]=e(F,S||!!L[F].enumerable)}return Object.create(Object.getPrototypeOf(N),L)}(d,l),b={i:d?5:4,A:f?f.A:aO(),P:!1,I:!1,D:{},l:f,t:l,k:m,o:null,O:!1,C:!1};return Object.defineProperty(m,oo,{value:b,writable:!0}),m},S:function(l,f,d){d?Pb(f)&&f[oo].A===l&&t(l.p):(l.u&&function m(b){if(b&&typeof b=="object"){var S=b[oo];if(S){var N=S.t,w=S.k,T=S.D,L=S.i;if(L===4)MS(w,function(H){H!==oo&&(N[H]!==void 0||I3(N,H)?T[H]||m(w[H]):(T[H]=!0,xb(S)))}),MS(N,function(H){w[H]!==void 0||I3(w,H)||(T[H]=!1,xb(S))});else if(L===5){if(r(S)&&(xb(S),T.length=!0),w.length<N.length)for(var M=w.length;M<N.length;M++)T[M]=!1;else for(var B=N.length;B<w.length;B++)T[B]=!0;for(var F=Math.min(w.length,N.length),z=0;z<F;z++)w.hasOwnProperty(z)||(T[z]=!0),T[z]===void 0&&m(w[z])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?n(l):r(l)}})}var s$,Q3,KM=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$xe=typeof Map<"u",Uxe=typeof Set<"u",l$=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",VY=KM?Symbol.for("immer-nothing"):((s$={})["immer-nothing"]=!0,s$),u$=KM?Symbol.for("immer-draftable"):"__$immer_draftable",oo=KM?Symbol.for("immer-state"):"__$immer_state",Hxe={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},jxe=""+Object.prototype.constructor,F3=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,GY=Object.getOwnPropertyDescriptors||function(e){var t={};return F3(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},sO={},Qw={get:function(e,t){if(t===oo)return e;var n=Sb(e);if(!I3(n,t))return function(i,s,l){var f,d=i$(s,l);return d?"value"in d?d.value:(f=d.get)===null||f===void 0?void 0:f.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!o0(r)?r:r===j8(e.t,t)?(V8(e),e.o[t]=oO(e.A.h,r,e)):r},has:function(e,t){return t in Sb(e)},ownKeys:function(e){return Reflect.ownKeys(Sb(e))},set:function(e,t,n){var r=i$(Sb(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=j8(Sb(e),t),s=i?.[oo];if(s&&s.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(jY(n,i)&&(n!==void 0||I3(e.t,t)))return!0;V8(e),xb(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 j8(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,V8(e),xb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Sb(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Tl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Tl(12)}},ZN={};MS(Qw,function(e,t){ZN[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ZN.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Tl(13),ZN.set.call(this,e,t,void 0)},ZN.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Tl(14),Qw.set.call(this,e[0],t,n,e[0])};var Vxe=function(){function e(n){var r=this;this.g=l$,this.F=!0,this.produce=function(i,s,l){if(typeof i=="function"&&typeof s!="function"){var f=s;s=i;var d=r;return function(L){var M=this;L===void 0&&(L=f);for(var B=arguments.length,F=Array(B>1?B-1:0),z=1;z<B;z++)F[z-1]=arguments[z];return d.produce(L,function(H){var G;return(G=s).call.apply(G,[M,H].concat(F))})}}var m;if(typeof s!="function"&&Tl(6),l!==void 0&&typeof l!="function"&&Tl(7),o0(i)){var b=r$(r),S=oO(r,i,void 0),N=!0;try{m=s(S),N=!1}finally{N?J6(b):iO(b)}return typeof Promise<"u"&&m instanceof Promise?m.then(function(L){return U8(b,l),H8(L,b)},function(L){throw J6(b),L}):(U8(b,l),H8(m,b))}if(!i||typeof i!="object"){if((m=s(i))===void 0&&(m=i),m===VY&&(m=void 0),r.F&&YM(m,!0),l){var w=[],T=[];uv("Patches").M(i,m,w,T),l(w,T)}return m}Tl(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(m){for(var b=arguments.length,S=Array(b>1?b-1:0),N=1;N<b;N++)S[N-1]=arguments[N];return r.produceWithPatches(m,function(w){return i.apply(void 0,[w].concat(S))})};var l,f,d=r.produce(i,s,function(m,b){l=m,f=b});return typeof Promise<"u"&&d instanceof Promise?d.then(function(m){return[m,l,f]}):[d,l,f]},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){o0(n)||Tl(8),Pb(n)&&(n=zxe(n));var r=r$(this),i=oO(this,n,void 0);return i[oo].C=!0,iO(r),i},t.finishDraft=function(n,r){var i=n&&n[oo];i&&i.C||Tl(9),i.I&&Tl(10);var s=i.A;return U8(s,r),H8(void 0,s)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!l$&&Tl(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var s=r[i];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}i>-1&&(r=r.slice(i+1));var l=uv("Patches").$;return Pb(n)?l(n,r):this.produce(n,function(f){return l(f,r)})},e}(),ad=new Vxe,WY=ad.produce;ad.produceWithPatches.bind(ad);ad.setAutoFreeze.bind(ad);ad.setUseProxies.bind(ad);ad.applyPatches.bind(ad);ad.createDraft.bind(ad);ad.finishDraft.bind(ad);function c$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c$(Object(n),!0).forEach(function(r){aW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var d$=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),G8=function(){return Math.random().toString(36).substring(7).split("").join(".")},kS={INIT:"@@redux/INIT"+G8(),REPLACE:"@@redux/REPLACE"+G8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+G8()}};function YY(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 Gxe(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(qxe(e))return"date";if(Yxe(e))return"error";var n=Wxe(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wxe(e){return typeof e.constructor=="function"?e.constructor.name:null}function Yxe(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function qxe(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function lS(e){var t=typeof e;return t=Gxe(e),t}function ZM(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+lS(n)+"'");return n(ZM)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+lS(e)+"'");var i=e,s=t,l=[],f=l,d=!1;function m(){f===l&&(f=l.slice())}function b(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function S(L){if(typeof L!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+lS(L)+"'");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var M=!0;return m(),f.push(L),function(){if(!!M){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,m();var F=f.indexOf(L);f.splice(F,1),l=null}}}function N(L){if(!YY(L))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+lS(L)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof L.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=i(s,L)}finally{d=!1}for(var M=l=f,B=0;B<M.length;B++){var F=M[B];F()}return L}function w(L){if(typeof L!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+lS(L));i=L,N({type:kS.REPLACE})}function T(){var L,M=S;return L={subscribe:function(F){if(typeof F!="object"||F===null)throw new Error("Expected the observer to be an object. Instead, received: '"+lS(F)+"'");function z(){F.next&&F.next(b())}z();var H=M(z);return{unsubscribe:H}}},L[d$]=function(){return this},L}return N({type:kS.INIT}),r={dispatch:N,subscribe:S,getState:b,replaceReducer:w},r[d$]=T,r}function lO(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Kxe(e,t,n,r){var i=Object.keys(t),s=n&&n.type===kS.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!YY(e))return"The "+s+' has unexpected type of "'+lS(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var l=Object.keys(e).filter(function(f){return!t.hasOwnProperty(f)&&!r[f]});if(l.forEach(function(f){r[f]=!0}),!(n&&n.type===kS.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function Zxe(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:kS.INIT});if(typeof r>"u")throw new Error('The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:kS.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+kS.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function qY(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]>"u"&&lO('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(n[i]=e[i])}var s=Object.keys(n),l;l={};var f;try{Zxe(n)}catch(d){f=d}return function(m,b){if(m===void 0&&(m={}),f)throw f;{var S=Kxe(m,n,b,l);S&&lO(S)}for(var N=!1,w={},T=0;T<s.length;T++){var L=s[T],M=n[L],B=m[L],F=M(B,b);if(typeof F>"u"){var z=b&&b.type;throw new Error("When called with an action of type "+(z?'"'+String(z)+'"':"(unknown type)")+', the slice reducer for key "'+L+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}w[L]=F,N=N||F!==B}return N=N||s.length!==Object.keys(m).length,N?w:m}}function n9(){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,i){return function(){return r(i.apply(void 0,arguments))}})}function Xxe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),s=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},l={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},f=t.map(function(d){return d(l)});return s=n9.apply(void 0,f)(i.dispatch),f$(f$({},i),{},{dispatch:s})}}}function h$(){}typeof h$.name=="string"&&h$.name!=="isCrushed"&&lO('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var r9="NOT_FOUND";function Qxe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:r9},put:function(r,i){t={key:r,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Jxe(e,t){var n=[];function r(f){var d=n.findIndex(function(b){return t(f,b.key)});if(d>-1){var m=n[d];return d>0&&(n.splice(d,1),n.unshift(m)),m.value}return r9}function i(f,d){r(f)===r9&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:i,getEntries:s,clear:l}}var e5e=function(t,n){return t===n};function t5e(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,s=0;s<i;s++)if(!e(n[s],r[s]))return!1;return!0}}function n5e(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?e5e:r,s=n.maxSize,l=s===void 0?1:s,f=n.resultEqualityCheck,d=t5e(i),m=l===1?Qxe(d):Jxe(l,d);function b(){var S=m.get(arguments);if(S===r9){if(S=e.apply(null,arguments),f){var N=m.getEntries(),w=N.find(function(T){return f(T.value,S)});w&&(S=w.value)}m.put(arguments,S)}return S}return b.clearCache=function(){return m.clear()},b}function r5e(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 a5e(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 i=function(){for(var l=arguments.length,f=new Array(l),d=0;d<l;d++)f[d]=arguments[d];var m=0,b,S={memoizeOptions:void 0},N=f.pop();if(typeof N=="object"&&(S=N,N=f.pop()),typeof N!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof N+"]");var w=S,T=w.memoizeOptions,L=T===void 0?n:T,M=Array.isArray(L)?L:[L],B=r5e(f),F=e.apply(void 0,[function(){return m++,N.apply(null,arguments)}].concat(M)),z=e(function(){for(var G=[],K=B.length,Z=0;Z<K;Z++)G.push(B[Z].apply(null,arguments));return b=F.apply(null,G),b});return Object.assign(z,{resultFunc:N,memoizedResultFunc:F,dependencies:B,lastResult:function(){return b},recomputations:function(){return m},resetRecomputations:function(){return m=0}}),z};return i}var ia=a5e(n5e);function KY(e){var t=function(r){var i=r.dispatch,s=r.getState;return function(l){return function(f){return typeof f=="function"?f(i,s,e):l(f)}}};return t}var ZY=KY();ZY.withExtraArgument=KY;const p$=ZY;var i5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},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 a9=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},o5e=Object.defineProperty,m$=Object.getOwnPropertySymbols,s5e=Object.prototype.hasOwnProperty,l5e=Object.prototype.propertyIsEnumerable,v$=function(e,t,n){return t in e?o5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Jw=function(e,t){for(var n in t||(t={}))s5e.call(t,n)&&v$(e,n,t[n]);if(m$)for(var r=0,i=m$(t);r<i.length;r++){var n=i[r];l5e.call(t,n)&&v$(e,n,t[n])}return e},u5e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?n9:n9.apply(null,arguments)};function XY(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}function QY(e,t){var n=0;return{measureTime:function(r){var i=Date.now();try{return r()}finally{var s=Date.now();n+=s-i}},warnIfExceeded:function(){n>e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+`ms.
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var c5e=function(e){i5e(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}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,a9([void 0],n[0].concat(this)))):new(t.bind.apply(t,a9([void 0],n.concat(this))))},t}(Array);function uO(e){return o0(e)?WY(e,function(){}):e}var f5e="Invariant failed";function g$(e,t){if(!e)throw new Error(f5e+": "+(t||""))}function d5e(e,t,n,r){return JSON.stringify(e,h5e(t,r),n)}function h5e(e,t){var n=[],r=[];return t||(t=function(i,s){return n[0]===s?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(s)).join(".")+"]"}),function(i,s){if(n.length>0){var l=n.indexOf(this);~l?n.splice(l+1):n.push(this),~l?r.splice(l,1/0,i):r.push(i),~n.indexOf(s)&&(s=t.call(this,i,s))}else n.push(s);return e==null?s:e.call(this,i,s)}}function p5e(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function m5e(e,t,n){var r=JY(e,t,n);return{detectMutations:function(){return eq(e,t,r,n)}}}function JY(e,t,n,r){t===void 0&&(t=[]),r===void 0&&(r="");var i={value:n};if(!e(n)){i.children={};for(var s in n){var l=r?r+"."+s:s;t.length&&t.indexOf(l)!==-1||(i.children[s]=JY(e,t,n[s],l))}}return i}function eq(e,t,n,r,i,s){t===void 0&&(t=[]),i===void 0&&(i=!1),s===void 0&&(s="");var l=n?n.value:void 0,f=l===r;if(i&&!f&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(l)||e(r))return{wasMutated:!1};var d={};for(var m in n.children)d[m]=!0;for(var m in r)d[m]=!0;for(var m in d){var b=s?s+"."+m:m;if(!(t.length&&t.indexOf(b)!==-1)){var S=eq(e,t,n.children[m],r[m],f,b);if(S.wasMutated)return S}}return{wasMutated:!1}}function v5e(e){e===void 0&&(e={});var t=e.isImmutable,n=t===void 0?p5e:t,r=e.ignoredPaths,i=e.warnAfter,s=i===void 0?32:i,l=e.ignore;r=r||l;var f=m5e.bind(null,n,r);return function(d){var m=d.getState,b=m(),S=f(b),N;return function(w){return function(T){var L=QY(s,"ImmutableStateInvariantMiddleware");L.measureTime(function(){b=m(),N=S.detectMutations(),S=f(b),g$(!N.wasMutated,"A state mutation was detected between dispatches, in the path '"+(N.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var M=w(T);return L.measureTime(function(){b=m(),N=S.detectMutations(),S=f(b),N.wasMutated&&g$(!N.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(N.path||"")+". Take a look at the reducer(s) handling the action "+d5e(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),L.warnIfExceeded(),M}}}}function tq(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||XY(e)}function cO(e,t,n,r,i){t===void 0&&(t=""),n===void 0&&(n=tq),i===void 0&&(i=[]);var s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var l=r!=null?r(e):Object.entries(e),f=i.length>0,d=0,m=l;d<m.length;d++){var b=m[d],S=b[0],N=b[1],w=t?t+"."+S:S;if(!(f&&i.indexOf(w)>=0)){if(!n(N))return{keyPath:w,value:N};if(typeof N=="object"&&(s=cO(N,w,n,r,i),s))return s}}return!1}function g5e(e){e===void 0&&(e={});var t=e.isSerializable,n=t===void 0?tq:t,r=e.getEntries,i=e.ignoredActions,s=i===void 0?[]:i,l=e.ignoredActionPaths,f=l===void 0?["meta.arg","meta.baseQueryMeta"]:l,d=e.ignoredPaths,m=d===void 0?[]:d,b=e.warnAfter,S=b===void 0?32:b,N=e.ignoreState,w=N===void 0?!1:N,T=e.ignoreActions,L=T===void 0?!1:T;return function(M){return function(B){return function(F){var z=B(F),H=QY(S,"SerializableStateInvariantMiddleware");return!L&&!(s.length&&s.indexOf(F.type)!==-1)&&H.measureTime(function(){var G=cO(F,"",n,r,f);if(G){var K=G.keyPath,Z=G.value;console.error("A non-serializable value was detected in an action, in the path: `"+K+"`. Value:",Z,`
Take a look at the logic that dispatched this action: `,F,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),w||(H.measureTime(function(){var G=M.getState(),K=cO(G,"",n,r,m);if(K){var Z=K.keyPath,ne=K.value;console.error("A non-serializable value was detected in the state, in the path: `"+Z+"`. Value:",ne,`
Take a look at the reducer(s) handling this action type: `+F.type+`.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),H.warnIfExceeded()),z}}}}function W8(e){return typeof e=="boolean"}function b5e(){return function(t){return y5e(t)}}function y5e(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,r=e.immutableCheck,i=r===void 0?!0:r,s=e.serializableCheck,l=s===void 0?!0:s,f=new c5e;n&&(W8(n)?f.push(p$):f.push(p$.withExtraArgument(n.extraArgument)));{if(i){var d={};W8(i)||(d=i),f.unshift(v5e(d))}if(l){var m={};W8(l)||(m=l),f.push(g5e(m))}}return f}var S5e=!1;function x5e(e){var t=b5e(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,s=n.middleware,l=s===void 0?t():s,f=n.devTools,d=f===void 0?!0:f,m=n.preloadedState,b=m===void 0?void 0:m,S=n.enhancers,N=S===void 0?void 0:S,w;if(typeof i=="function")w=i;else if(XY(i))w=qY(i);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 T=l;if(typeof T=="function"&&(T=T(t),!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(T.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=Xxe.apply(void 0,T),M=n9;d&&(M=u5e(Jw({trace:!S5e},typeof d=="object"&&d)));var B=[L];Array.isArray(N)?B=a9([L],N):typeof N=="function"&&(B=N(B));var F=M.apply(void 0,B);return ZM(w,b,F)}function Hu(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var s=t.apply(void 0,r);if(!s)throw new Error("prepareAction did not return an object");return Jw(Jw({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.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 nq(e){var t={},n=[],r,i={addCase:function(s,l){{if(n.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var f=typeof s=="string"?s:s.type;if(f in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[f]=l,i},addMatcher:function(s,l){if(r)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:l}),i},addDefaultCase:function(s){if(r)throw new Error("`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function C5e(e){return typeof e=="function"}function N5e(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?nq(t):[t,n,r],s=i[0],l=i[1],f=i[2],d;if(C5e(e))d=function(){return uO(e())};else{var m=uO(e);d=function(){return m}}function b(S,N){S===void 0&&(S=d());var w=a9([s[N.type]],l.filter(function(T){var L=T.matcher;return L(N)}).map(function(T){var L=T.reducer;return L}));return w.filter(function(T){return!!T}).length===0&&(w=[f]),w.reduce(function(T,L){if(L)if(Pb(T)){var M=T,B=L(M,N);return B===void 0?T:B}else{if(o0(T))return WY(T,function(F){return L(F,N)});var B=L(T,N);if(B===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return T},S)}return b.getInitialState=d,b}function w5e(e,t){return e+"/"+t}function m7(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var n=typeof e.initialState=="function"?e.initialState:uO(e.initialState),r=e.reducers||{},i=Object.keys(r),s={},l={},f={};i.forEach(function(b){var S=r[b],N=w5e(t,b),w,T;"reducer"in S?(w=S.reducer,T=S.prepare):w=S,s[b]=w,l[N]=w,f[b]=T?Hu(N,T):Hu(N)});function d(){var b=typeof e.extraReducers=="function"?nq(e.extraReducers):[e.extraReducers],S=b[0],N=S===void 0?{}:S,w=b[1],T=w===void 0?[]:w,L=b[2],M=L===void 0?void 0:L,B=Jw(Jw({},N),l);return N5e(n,B,T,M)}var m;return{name:t,reducer:function(b,S){return m||(m=d()),m(b,S)},actions:f,caseReducers:s,getInitialState:function(){return m||(m=d()),m.getInitialState()}}}var XM="listenerMiddleware";Hu(XM+"/add");Hu(XM+"/removeAll");Hu(XM+"/remove");Bxe();var rq={exports:{}},aq={};/**
* @license React
* use-sync-external-store-shim.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.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=O.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(z){{for(var H=arguments.length,G=new Array(H>1?H-1:0),K=1;K<H;K++)G[K-1]=arguments[K];r("error",z,G)}}function r(z,H,G){{var K=t.ReactDebugCurrentFrame,Z=K.getStackAddendum();Z!==""&&(H+="%s",G=G.concat([Z]));var ne=G.map(function(ie){return String(ie)});ne.unshift("Warning: "+H),Function.prototype.apply.call(console[z],console,ne)}}function i(z,H){return z===H&&(z!==0||1/z===1/H)||z!==z&&H!==H}var s=typeof Object.is=="function"?Object.is:i,l=e.useState,f=e.useEffect,d=e.useLayoutEffect,m=e.useDebugValue,b=!1,S=!1;function N(z,H,G){b||e.startTransition!==void 0&&(b=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var K=H();if(!S){var Z=H();s(K,Z)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),S=!0)}var ne=l({inst:{value:K,getSnapshot:H}}),ie=ne[0].inst,le=ne[1];return d(function(){ie.value=K,ie.getSnapshot=H,w(ie)&&le({inst:ie})},[z,K,H]),f(function(){w(ie)&&le({inst:ie});var oe=function(){w(ie)&&le({inst:ie})};return z(oe)},[z]),m(K),K}function w(z){var H=z.getSnapshot,G=z.value;try{var K=H();return!s(G,K)}catch{return!0}}function T(z,H,G){return H()}var L=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M=!L,B=M?T:N,F=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:B;aq.useSyncExternalStore=F,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=aq})(rq);var iq={exports:{}},oq={};/**
* @license React
* use-sync-external-store-shim/with-selector.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.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=O.exports,t=rq.exports;function n(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;function m(b,S,N,w,T){var L=s(null),M;L.current===null?(M={hasValue:!1,value:null},L.current=M):M=L.current;var B=f(function(){var G=!1,K,Z,ne=function(Ae){if(!G){G=!0,K=Ae;var de=w(Ae);if(T!==void 0&&M.hasValue){var Se=M.value;if(T(Se,de))return Z=Se,Se}return Z=de,de}var Me=K,_e=Z;if(r(Me,Ae))return _e;var J=w(Ae);return T!==void 0&&T(_e,J)?_e:(K=Ae,Z=J,J)},ie=N===void 0?null:N,le=function(){return ne(S())},oe=ie===null?void 0:function(){return ne(ie())};return[le,oe]},[S,N,w,T]),F=B[0],z=B[1],H=i(b,F,z);return l(function(){M.hasValue=!0,M.value=H},[H]),d(H),H}oq.useSyncExternalStoreWithSelector=m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=oq})(iq);function _5e(e){e()}let sq=_5e;const E5e=e=>sq=e,T5e=()=>sq,s0=ke.createContext(null);s0.displayName="ReactRedux";function lq(){const e=O.exports.useContext(s0);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const R5e=()=>{throw new Error("uSES not initialized!")};let uq=R5e;const k5e=e=>{uq=e},A5e=(e,t)=>e===t;function O5e(e=s0){const t=e===s0?lq:()=>O.exports.useContext(e);return function(r,i=A5e){{if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:s,subscription:l,getServerState:f}=t(),d=uq(l.addNestedSub,s.getState,f||s.getState,r,i);return O.exports.useDebugValue(d),d}}const L5e=O5e();var M5e={exports:{}},Ja={};/**
* @license React
* react-is.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.
*/(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=!1,L=!1,M=!1,B=!1,F=!1,z;z=Symbol.for("react.module.reference");function H(De){return!!(typeof De=="string"||typeof De=="function"||De===n||De===i||F||De===r||De===m||De===b||B||De===w||T||L||M||typeof De=="object"&&De!==null&&(De.$$typeof===N||De.$$typeof===S||De.$$typeof===s||De.$$typeof===l||De.$$typeof===d||De.$$typeof===z||De.getModuleId!==void 0))}function G(De){if(typeof De=="object"&&De!==null){var kt=De.$$typeof;switch(kt){case e:var Zt=De.type;switch(Zt){case n:case i:case r:case m:case b:return Zt;default:var Pt=Zt&&Zt.$$typeof;switch(Pt){case f:case l:case d:case N:case S:case s:return Pt;default:return kt}}case t:return kt}}}var K=l,Z=s,ne=e,ie=d,le=n,oe=N,Ae=S,de=t,Se=i,Me=r,_e=m,J=b,he=!1,ve=!1;function ye(De){return he||(he=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function xe(De){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ve(De){return G(De)===l}function Pe(De){return G(De)===s}function Qe(De){return typeof De=="object"&&De!==null&&De.$$typeof===e}function wt(De){return G(De)===d}function Ot(De){return G(De)===n}function Ut(De){return G(De)===N}function ut(De){return G(De)===S}function It(De){return G(De)===t}function Qt(De){return G(De)===i}function pn(De){return G(De)===r}function ht(De){return G(De)===m}function gn(De){return G(De)===b}Ja.ContextConsumer=K,Ja.ContextProvider=Z,Ja.Element=ne,Ja.ForwardRef=ie,Ja.Fragment=le,Ja.Lazy=oe,Ja.Memo=Ae,Ja.Portal=de,Ja.Profiler=Se,Ja.StrictMode=Me,Ja.Suspense=_e,Ja.SuspenseList=J,Ja.isAsyncMode=ye,Ja.isConcurrentMode=xe,Ja.isContextConsumer=Ve,Ja.isContextProvider=Pe,Ja.isElement=Qe,Ja.isForwardRef=wt,Ja.isFragment=Ot,Ja.isLazy=Ut,Ja.isMemo=ut,Ja.isPortal=It,Ja.isProfiler=Qt,Ja.isStrictMode=pn,Ja.isSuspense=ht,Ja.isSuspenseList=gn,Ja.isValidElementType=H,Ja.typeOf=G})();(function(e){e.exports=Ja})(M5e);function D5e(){const e=T5e();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=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,s=n={callback:r,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){!i||t===null||(i=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}const b$={notify(){},get:()=>[]};function P5e(e,t){let n,r=b$;function i(S){return d(),r.subscribe(S)}function s(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function f(){return Boolean(n)}function d(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=D5e())}function m(){n&&(n(),n=void 0,r.clear(),r=b$)}const b={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:m,getListeners:()=>r};return b}const I5e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F5e=I5e?O.exports.useLayoutEffect:O.exports.useEffect;var z5e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function B5e({store:e,context:t,children:n,serverState:r}){const i=O.exports.useMemo(()=>{const f=P5e(e);return{store:e,subscription:f,getServerState:r?()=>r:void 0}},[e,r]),s=O.exports.useMemo(()=>e.getState(),[e]);return F5e(()=>{const{subscription:f}=i;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),s!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[i,s]),_((t||s0).Provider,{value:i,children:n},void 0,!1,{fileName:z5e,lineNumber:39,columnNumber:23},this)}function cq(e=s0){const t=e===s0?lq:()=>O.exports.useContext(e);return function(){const{store:r}=t();return r}}const $5e=cq();function U5e(e=s0){const t=e===s0?$5e:cq(e);return function(){return t().dispatch}}const H5e=U5e();k5e(iq.exports.useSyncExternalStoreWithSelector);E5e(vv.exports.unstable_batchedUpdates);var QM="persist:",fq="persist/FLUSH",JM="persist/REHYDRATE",dq="persist/PAUSE",hq="persist/PERSIST",pq="persist/PURGE",mq="persist/REGISTER",j5e=-1;function Cw(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cw=function(n){return typeof n}:Cw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cw(e)}function y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y$(n,!0).forEach(function(r){G5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y$(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W5e(e,t,n,r){var i=r.debug,s=V5e({},n);return e&&Cw(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==n[l]){i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}s[l]=e[l]}}),i&&e&&Cw(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Y5e(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:QM).concat(e.key),l=e.storage,f;e.serialize===!1?f=function(G){return G}:typeof e.serialize=="function"?f=e.serialize:f=q5e;var d=e.writeFailHandler||null,m={},b={},S=[],N=null,w=null,T=function(G){Object.keys(G).forEach(function(K){!B(K)||m[K]!==G[K]&&S.indexOf(K)===-1&&S.push(K)}),Object.keys(m).forEach(function(K){G[K]===void 0&&B(K)&&S.indexOf(K)===-1&&m[K]!==void 0&&S.push(K)}),N===null&&(N=setInterval(L,i)),m=G};function L(){if(S.length===0){N&&clearInterval(N),N=null;return}var H=S.shift(),G=r.reduce(function(K,Z){return Z.in(K,H,m)},m[H]);if(G!==void 0)try{b[H]=f(G)}catch(K){console.error("redux-persist/createPersistoid: error serializing state",K)}else delete b[H];S.length===0&&M()}function M(){Object.keys(b).forEach(function(H){m[H]===void 0&&delete b[H]}),w=l.setItem(s,f(b)).catch(F)}function B(H){return!(n&&n.indexOf(H)===-1&&H!=="_persist"||t&&t.indexOf(H)!==-1)}function F(H){d&&d(H),H&&console.error("Error storing data",H)}var z=function(){for(;S.length!==0;)L();return w||Promise.resolve()};return{update:T,flush:z}}function q5e(e){return JSON.stringify(e)}function K5e(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:QM).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(f){return f}:typeof e.deserialize=="function"?s=e.deserialize:s=Z5e,r.getItem(n).then(function(l){if(l)try{var f={},d=s(l);return Object.keys(d).forEach(function(m){f[m]=t.reduceRight(function(b,S){return S.out(b,m,d)},s(d[m]))}),f}catch(m){throw i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),m),m}else return})}function Z5e(e){return JSON.parse(e)}function X5e(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:QM).concat(e.key);return t.removeItem(n,Q5e)}function Q5e(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function S$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S$(n,!0).forEach(function(r){J5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e3e(e,t){if(e==null)return{};var n=t3e(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function t3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var n3e=5e3;function o6(e,t){{if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:j5e;e.debug;var r=e.stateReconciler===void 0?W5e:e.stateReconciler,i=e.getStoredState||K5e,s=e.timeout!==void 0?e.timeout:n3e,l=null,f=!1,d=!0,m=function(S){return S._persist.rehydrated&&l&&!d&&l.update(S),S};return function(b,S){var N=b||{},w=N._persist,T=e3e(N,["_persist"]),L=T;if(S.type===hq){var M=!1,B=function(ne,ie){M&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),ne,ie),M||(S.rehydrate(e.key,ne,ie),M=!0)};if(s&&setTimeout(function(){!M&&B(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,l||(l=Y5e(e)),w)return Zg({},t(L,S),{_persist:w});if(typeof S.rehydrate!="function"||typeof S.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 S.register(e.key),i(e).then(function(Z){var ne=e.migrate||function(ie,le){return Promise.resolve(ie)};ne(Z,n).then(function(ie){B(ie)},function(ie){ie&&console.error("redux-persist: migration error",ie),B(void 0,ie)})},function(Z){B(void 0,Z)}),Zg({},t(L,S),{_persist:{version:n,rehydrated:!1}})}else{if(S.type===pq)return f=!0,S.result(X5e(e)),Zg({},t(L,S),{_persist:w});if(S.type===fq)return S.result(l&&l.flush()),Zg({},t(L,S),{_persist:w});if(S.type===dq)d=!0;else if(S.type===JM){if(f)return Zg({},L,{_persist:Zg({},w,{rehydrated:!0})});if(S.key===e.key){var F=t(L,S),z=S.payload,H=r!==!1&&z!==void 0?r(z,b,F,e):F,G=Zg({},H,{_persist:Zg({},w,{rehydrated:!0})});return m(G)}}}if(!w)return t(b,S);var K=t(L,S);return K===L?b:m(Zg({},K,{_persist:w}))}}function x$(e){return i3e(e)||a3e(e)||r3e()}function r3e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a3e(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function i3e(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 C$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C$(n,!0).forEach(function(r){o3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C$(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vq={registry:[],bootstrapped:!1},s3e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vq,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case mq:return fO({},t,{registry:[].concat(x$(t.registry),[n.key])});case JM:var r=t.registry.indexOf(n.key),i=x$(t.registry);return i.splice(r,1),fO({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function l3e(e,t,n){{var r=t||{},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(b){r[b]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(b,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=n||!1,l=ZM(s3e,vq,t&&t.enhancer?t.enhancer:void 0),f=function(S){l.dispatch({type:mq,key:S})},d=function(S,N,w){var T={type:JM,payload:N,err:w,key:S};e.dispatch(T),l.dispatch(T),s&&m.getState().bootstrapped&&(s(),s=!1)},m=fO({},l,{purge:function(){var S=[];return e.dispatch({type:pq,result:function(w){S.push(w)}}),Promise.all(S)},flush:function(){var S=[];return e.dispatch({type:fq,result:function(w){S.push(w)}}),Promise.all(S)},pause:function(){e.dispatch({type:dq})},persist:function(){e.dispatch({type:hq,register:f,rehydrate:d})}});return t&&t.manualPersist||m.persist(),m}var eD={},tD={};tD.__esModule=!0;tD.default=f3e;function s6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s6=function(n){return typeof n}:s6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s6(e)}function Y8(){}var u3e={getItem:Y8,setItem:Y8,removeItem:Y8};function c3e(e){if((typeof self>"u"?"undefined":s6(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 console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function f3e(e){var t="".concat(e,"Storage");return c3e(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),u3e)}eD.__esModule=!0;eD.default=p3e;var d3e=h3e(tD);function h3e(e){return e&&e.__esModule?e:{default:e}}function p3e(e){var t=(0,d3e.default)(e);return{getItem:function(r){return new Promise(function(i,s){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(s,l){s(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,s){i(t.removeItem(r))})}}}var k_=void 0,m3e=v3e(eD);function v3e(e){return e&&e.__esModule?e:{default:e}}var g3e=(0,m3e.default)("local");k_=g3e;const l6=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),b3e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return nD(r)?r:!1},nD=e=>Boolean(typeof e=="string"?b3e(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),s=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(i&&s)})),i9=e=>e.reduce((t,n,r,i)=>{const{seed:s,weight:l}=n;return t+=`${s}:${l}`,r!==i.length-1&&(t+=","),t},""),y3e=e=>e.split(",").map(r=>r.split(":")).map(r=>[parseInt(r[0]),parseFloat(r[1])]);var id={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",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,b="__lodash_placeholder__",S=1,N=2,w=4,T=1,L=2,M=1,B=2,F=4,z=8,H=16,G=32,K=64,Z=128,ne=256,ie=512,le=30,oe="...",Ae=800,de=16,Se=1,Me=2,_e=3,J=1/0,he=9007199254740991,ve=17976931348623157e292,ye=0/0,xe=4294967295,Ve=xe-1,Pe=xe>>>1,Qe=[["ary",Z],["bind",M],["bindKey",B],["curry",z],["curryRight",H],["flip",ie],["partial",G],["partialRight",K],["rearg",ne]],wt="[object Arguments]",Ot="[object Array]",Ut="[object AsyncFunction]",ut="[object Boolean]",It="[object Date]",Qt="[object DOMException]",pn="[object Error]",ht="[object Function]",gn="[object GeneratorFunction]",De="[object Map]",kt="[object Number]",Zt="[object Null]",Pt="[object Object]",un="[object Promise]",fr="[object Proxy]",an="[object RegExp]",Rn="[object Set]",wn="[object String]",Ln="[object Symbol]",St="[object Undefined]",Ft="[object WeakMap]",er="[object WeakSet]",En="[object ArrayBuffer]",Je="[object DataView]",Mn="[object Float32Array]",br="[object Float64Array]",pt="[object Int8Array]",Xe="[object Int16Array]",Bt="[object Int32Array]",We="[object Uint8Array]",Lt="[object Uint8ClampedArray]",Rt="[object Uint16Array]",gt="[object Uint32Array]",_t=/\b__p \+= '';/g,kn=/\b(__p \+=) '' \+/g,Un=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,rr=/[&<>"']/g,di=RegExp(Gt.source),Yr=RegExp(rr.source),pr=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,lo=/<%=([\s\S]+?)%>/g,uo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hi=/^\w*$/,yr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ti=/[\\^$.*+?()[\]{}|]/g,Mo=RegExp(ti.source),Do=/^\s+/,ge=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xt=/\{\n\/\* \[wrapped with (.+)\] \*/,bn=/,? & /,dr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_r=/[()=,{}\[\]\/\s]/,Ht=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sr=/\w*$/,kr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,Fa=/^\[object .+?Constructor\]$/,Yi=/^0o[0-7]+$/i,Po=/^(?:0|[1-9]\d*)$/,Ra=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gs=/($^)/,pu=/['\n\r\u2028\u2029\\]/g,co="\\ud800-\\udfff",Rl="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",Zn="\\u20d0-\\u20ff",Io=Rl+bs+Zn,qi="\\u2700-\\u27bf",kl="a-z\\xdf-\\xf6\\xf8-\\xff",Al="\\xac\\xb1\\xd7\\xf7",nl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ni="\\u2000-\\u206f",rl=" \\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",Ol="A-Z\\xc0-\\xd6\\xd8-\\xde",Ll="\\ufe0e\\ufe0f",mu=Al+nl+ni+rl,ju="['\u2019]",Vu="["+co+"]",Fo="["+mu+"]",ri="["+Io+"]",fo="\\d+",ai="["+qi+"]",Di="["+kl+"]",Ml="[^"+co+mu+fo+qi+kl+Ol+"]",Dl="\\ud83c[\\udffb-\\udfff]",Ms="(?:"+ri+"|"+Dl+")",Pl="[^"+co+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",Wa="[\\ud800-\\udbff][\\udc00-\\udfff]",wi="["+Ol+"]",ka="\\u200d",Gu="(?:"+Di+"|"+Ml+")",gr="(?:"+wi+"|"+Ml+")",zo="(?:"+ju+"(?:d|ll|m|re|s|t|ve))?",Il="(?:"+ju+"(?:D|LL|M|RE|S|T|VE))?",Xn=Ms+"?",Wu="["+Ll+"]?",qr="(?:"+ka+"(?:"+[Pl,ho,Wa].join("|")+")"+Wu+Xn+")*",ts="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",po="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ys=Wu+Xn+qr,ga="(?:"+[ai,ho,Wa].join("|")+")"+ys,oa="(?:"+[Pl+ri+"?",ri,ho,Wa,Vu].join("|")+")",Ds=RegExp(ju,"g"),_i=RegExp(ri,"g"),Kr=RegExp(Dl+"(?="+Dl+")|"+oa+ys,"g"),ii=RegExp([wi+"?"+Di+"+"+zo+"(?="+[Fo,wi,"$"].join("|")+")",gr+"+"+Il+"(?="+[Fo,wi+Gu,"$"].join("|")+")",wi+"?"+Gu+"+"+zo,wi+"+"+Il,po,ts,fo,ga].join("|"),"g"),yf=RegExp("["+ka+co+Io+Ll+"]"),Ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ss=["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"],vu=-1,Sr={};Sr[Mn]=Sr[br]=Sr[pt]=Sr[Xe]=Sr[Bt]=Sr[We]=Sr[Lt]=Sr[Rt]=Sr[gt]=!0,Sr[wt]=Sr[Ot]=Sr[En]=Sr[ut]=Sr[Je]=Sr[It]=Sr[pn]=Sr[ht]=Sr[De]=Sr[kt]=Sr[Pt]=Sr[an]=Sr[Rn]=Sr[wn]=Sr[Ft]=!1;var Br={};Br[wt]=Br[Ot]=Br[En]=Br[Je]=Br[ut]=Br[It]=Br[Mn]=Br[br]=Br[pt]=Br[Xe]=Br[Bt]=Br[De]=Br[kt]=Br[Pt]=Br[an]=Br[Rn]=Br[wn]=Br[Ln]=Br[We]=Br[Lt]=Br[Rt]=Br[gt]=!0,Br[pn]=Br[ht]=Br[Ft]=!1;var Yu={\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"},mo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},X={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,qe=parseInt,Kt=typeof Jg=="object"&&Jg&&Jg.Object===Object&&Jg,yn=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Kt||yn||Function("return this")(),k=t&&!t.nodeType&&t,j=k&&!0&&e&&!e.nodeType&&e,ae=j&&j.exports===k,ce=ae&&Kt.process,Ne=function(){try{var Ee=j&&j.require&&j.require("util").types;return Ee||ce&&ce.binding&&ce.binding("util")}catch{}}(),mt=Ne&&Ne.isArrayBuffer,Ze=Ne&&Ne.isDate,Tt=Ne&&Ne.isMap,Xt=Ne&&Ne.isRegExp,xn=Ne&&Ne.isSet,Hn=Ne&&Ne.isTypedArray;function mn(Ee,Ke,Be){switch(Be.length){case 0:return Ee.call(Ke);case 1:return Ee.call(Ke,Be[0]);case 2:return Ee.call(Ke,Be[0],Be[1]);case 3:return Ee.call(Ke,Be[0],Be[1],Be[2])}return Ee.apply(Ke,Be)}function Gn(Ee,Ke,Be,ln){for(var On=-1,Tr=Ee==null?0:Ee.length;++On<Tr;){var Ca=Ee[On];Ke(ln,Ca,Be(Ca),Ee)}return ln}function In(Ee,Ke){for(var Be=-1,ln=Ee==null?0:Ee.length;++Be<ln&&Ke(Ee[Be],Be,Ee)!==!1;);return Ee}function Qn(Ee,Ke){for(var Be=Ee==null?0:Ee.length;Be--&&Ke(Ee[Be],Be,Ee)!==!1;);return Ee}function al(Ee,Ke){for(var Be=-1,ln=Ee==null?0:Ee.length;++Be<ln;)if(!Ke(Ee[Be],Be,Ee))return!1;return!0}function ns(Ee,Ke){for(var Be=-1,ln=Ee==null?0:Ee.length,On=0,Tr=[];++Be<ln;){var Ca=Ee[Be];Ke(Ca,Be,Ee)&&(Tr[On++]=Ca)}return Tr}function qu(Ee,Ke){var Be=Ee==null?0:Ee.length;return!!Be&&dh(Ee,Ke,0)>-1}function fh(Ee,Ke,Be){for(var ln=-1,On=Ee==null?0:Ee.length;++ln<On;)if(Be(Ke,Ee[ln]))return!0;return!1}function Ur(Ee,Ke){for(var Be=-1,ln=Ee==null?0:Ee.length,On=Array(ln);++Be<ln;)On[Be]=Ke(Ee[Be],Be,Ee);return On}function il(Ee,Ke){for(var Be=-1,ln=Ke.length,On=Ee.length;++Be<ln;)Ee[On+Be]=Ke[Be];return Ee}function Oc(Ee,Ke,Be,ln){var On=-1,Tr=Ee==null?0:Ee.length;for(ln&&Tr&&(Be=Ee[++On]);++On<Tr;)Be=Ke(Be,Ee[On],On,Ee);return Be}function Sv(Ee,Ke,Be,ln){var On=Ee==null?0:Ee.length;for(ln&&On&&(Be=Ee[--On]);On--;)Be=Ke(Be,Ee[On],On,Ee);return Be}function Yb(Ee,Ke){for(var Be=-1,ln=Ee==null?0:Ee.length;++Be<ln;)if(Ke(Ee[Be],Be,Ee))return!0;return!1}var SC=Cv("length");function ZS(Ee){return Ee.split("")}function qb(Ee){return Ee.match(dr)||[]}function Kb(Ee,Ke,Be){var ln;return Be(Ee,function(On,Tr,Ca){if(Ke(On,Tr,Ca))return ln=Tr,!1}),ln}function xv(Ee,Ke,Be,ln){for(var On=Ee.length,Tr=Be+(ln?1:-1);ln?Tr--:++Tr<On;)if(Ke(Ee[Tr],Tr,Ee))return Tr;return-1}function dh(Ee,Ke,Be){return Ke===Ke?Ev(Ee,Ke,Be):xv(Ee,Lc,Be)}function xC(Ee,Ke,Be,ln){for(var On=Be-1,Tr=Ee.length;++On<Tr;)if(ln(Ee[On],Ke))return On;return-1}function Lc(Ee){return Ee!==Ee}function XS(Ee,Ke){var Be=Ee==null?0:Ee.length;return Be?Tp(Ee,Ke)/Be:ye}function Cv(Ee){return function(Ke){return Ke==null?n:Ke[Ee]}}function Nv(Ee){return function(Ke){return Ee==null?n:Ee[Ke]}}function b0(Ee,Ke,Be,ln,On){return On(Ee,function(Tr,Ca,sa){Be=ln?(ln=!1,Tr):Ke(Be,Tr,Ca,sa)}),Be}function CC(Ee,Ke){var Be=Ee.length;for(Ee.sort(Ke);Be--;)Ee[Be]=Ee[Be].value;return Ee}function Tp(Ee,Ke){for(var Be,ln=-1,On=Ee.length;++ln<On;){var Tr=Ke(Ee[ln]);Tr!==n&&(Be=Be===n?Tr:Be+Tr)}return Be}function y0(Ee,Ke){for(var Be=-1,ln=Array(Ee);++Be<Ee;)ln[Be]=Ke(Be);return ln}function ol(Ee,Ke){return Ur(Ke,function(Be){return[Be,Ee[Be]]})}function sl(Ee){return Ee&&Ee.slice(0,Jb(Ee)+1).replace(Do,"")}function Qr(Ee){return function(Ke){return Ee(Ke)}}function gu(Ee,Ke){return Ur(Ke,function(Be){return Ee[Be]})}function od(Ee,Ke){return Ee.has(Ke)}function Rp(Ee,Ke){for(var Be=-1,ln=Ee.length;++Be<ln&&dh(Ke,Ee[Be],0)>-1;);return Be}function Zb(Ee,Ke){for(var Be=Ee.length;Be--&&dh(Ke,Ee[Be],0)>-1;);return Be}function kp(Ee,Ke){for(var Be=Ee.length,ln=0;Be--;)Ee[Be]===Ke&&++ln;return ln}var QS=Nv(Yu),JS=Nv(mo);function Xb(Ee){return"\\"+X[Ee]}function NC(Ee,Ke){return Ee==null?n:Ee[Ke]}function sd(Ee){return yf.test(Ee)}function Qb(Ee){return Ps.test(Ee)}function Sf(Ee){for(var Ke,Be=[];!(Ke=Ee.next()).done;)Be.push(Ke.value);return Be}function wv(Ee){var Ke=-1,Be=Array(Ee.size);return Ee.forEach(function(ln,On){Be[++Ke]=[On,ln]}),Be}function _v(Ee,Ke){return function(Be){return Ee(Ke(Be))}}function ld(Ee,Ke){for(var Be=-1,ln=Ee.length,On=0,Tr=[];++Be<ln;){var Ca=Ee[Be];(Ca===Ke||Ca===b)&&(Ee[Be]=b,Tr[On++]=Be)}return Tr}function hh(Ee){var Ke=-1,Be=Array(Ee.size);return Ee.forEach(function(ln){Be[++Ke]=ln}),Be}function Ap(Ee){var Ke=-1,Be=Array(Ee.size);return Ee.forEach(function(ln){Be[++Ke]=[ln,ln]}),Be}function Ev(Ee,Ke,Be){for(var ln=Be-1,On=Ee.length;++ln<On;)if(Ee[ln]===Ke)return ln;return-1}function ex(Ee,Ke,Be){for(var ln=Be+1;ln--;)if(Ee[ln]===Ke)return ln;return ln}function xf(Ee){return sd(Ee)?S0(Ee):SC(Ee)}function bu(Ee){return sd(Ee)?Ku(Ee):ZS(Ee)}function Jb(Ee){for(var Ke=Ee.length;Ke--&&ge.test(Ee.charAt(Ke)););return Ke}var tx=Nv($);function S0(Ee){for(var Ke=Kr.lastIndex=0;Kr.test(Ee);)++Ke;return Ke}function Ku(Ee){return Ee.match(Kr)||[]}function ey(Ee){return Ee.match(ii)||[]}var x0=function Ee(Ke){Ke=Ke==null?Jt:ll.defaults(Jt.Object(),Ke,ll.pick(Jt,Ss));var Be=Ke.Array,ln=Ke.Date,On=Ke.Error,Tr=Ke.Function,Ca=Ke.Math,sa=Ke.Object,ul=Ke.RegExp,Tv=Ke.String,Bo=Ke.TypeError,yu=Be.prototype,Mc=Tr.prototype,Cf=sa.prototype,Op=Ke["__core-js_shared__"],Rv=Mc.toString,ua=Cf.hasOwnProperty,kv=0,ty=function(){var p=/[^.]+$/.exec(Op&&Op.keys&&Op.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Av=Cf.toString,Ki=Rv.call(sa),ny=Jt._,tr=ul("^"+Rv.call(ua).replace(ti,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ar=ae?Ke.Buffer:n,Mr=Ke.Symbol,pi=Ke.Uint8Array,Zu=Ar?Ar.allocUnsafe:n,Lp=_v(sa.getPrototypeOf,sa),C0=sa.create,Mp=Cf.propertyIsEnumerable,N0=yu.splice,ud=Mr?Mr.isConcatSpreadable:n,yt=Mr?Mr.iterator:n,oi=Mr?Mr.toStringTag:n,Wn=function(){try{var p=ku(sa,"defineProperty");return p({},"",{}),p}catch{}}(),cd=Ke.clearTimeout!==Jt.clearTimeout&&Ke.clearTimeout,Xu=ln&&ln.now!==Jt.Date.now&&ln.now,Su=Ke.setTimeout!==Jt.setTimeout&&Ke.setTimeout,$o=Ca.ceil,Nf=Ca.floor,fd=sa.getOwnPropertySymbols,Dp=Ar?Ar.isBuffer:n,w0=Ke.isFinite,_0=yu.join,E0=_v(sa.keys,sa),Ei=Ca.max,Zi=Ca.min,ry=ln.now,T0=Ke.parseInt,R0=Ca.random,ay=yu.reverse,Ov=ku(Ke,"DataView"),Qu=ku(Ke,"Map"),ph=ku(Ke,"Promise"),xu=ku(Ke,"Set"),dd=ku(Ke,"WeakMap"),hd=ku(sa,"create"),wf=dd&&new dd,Ju={},pd=Ed(Ov),Pp=Ed(Qu),Ip=Ed(ph),Lv=Ed(xu),nx=Ed(dd),Dc=Mr?Mr.prototype:n,Fp=Dc?Dc.valueOf:n,zp=Dc?Dc.toString:n;function Q(p){if(qa(p)&&!lr(p)&&!(p instanceof Rr)){if(p instanceof Dr)return p;if(ua.call(p,"__wrapped__"))return Z0(p)}return new Dr(p)}var Xi=function(){function p(){}return function(g){if(!Oa(g))return{};if(C0)return C0(g);p.prototype=g;var R=new p;return p.prototype=n,R}}();function _f(){}function Dr(p,g){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}Q.templateSettings={escape:pr,evaluate:Wi,interpolate:lo,variable:"",imports:{_:Q}},Q.prototype=_f.prototype,Q.prototype.constructor=Q,Dr.prototype=Xi(_f.prototype),Dr.prototype.constructor=Dr;function Rr(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function Dn(){var p=new Rr(this.__wrapped__);return p.__actions__=Vo(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=Vo(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=Vo(this.__views__),p}function Pc(){if(this.__filtered__){var p=new Rr(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function mi(){var p=this.__wrapped__.value(),g=this.__dir__,R=lr(p),I=g<0,Y=R?p.length:0,te=wh(0,Y,this.__views__),me=te.start,fe=te.end,Re=fe-me,at=I?fe:me-1,st=this.__iteratees__,bt=st.length,jt=0,fn=Zi(Re,this.__takeCount__);if(!R||!I&&Y==Re&&fn==Re)return F0(p,this.__actions__);var Vn=[];e:for(;Re--&&jt<fn;){at+=g;for(var xr=-1,Pn=p[at];++xr<bt;){var Er=st[xr],Fr=Er.iteratee,ws=Er.type,Ka=Fr(Pn);if(ws==Me)Pn=Ka;else if(!Ka){if(ws==Se)continue e;break e}}Vn[jt++]=Pn}return Vn}Rr.prototype=Xi(_f.prototype),Rr.prototype.constructor=Rr;function wr(p){var g=-1,R=p==null?0:p.length;for(this.clear();++g<R;){var I=p[g];this.set(I[0],I[1])}}function mh(){this.__data__=hd?hd(null):{},this.size=0}function Mv(p){var g=this.has(p)&&delete this.__data__[p];return this.size-=g?1:0,g}function iy(p){var g=this.__data__;if(hd){var R=g[p];return R===d?n:R}return ua.call(g,p)?g[p]:n}function Hr(p){var g=this.__data__;return hd?g[p]!==n:ua.call(g,p)}function Ef(p,g){var R=this.__data__;return this.size+=this.has(p)?0:1,R[p]=hd&&g===n?d:g,this}wr.prototype.clear=mh,wr.prototype.delete=Mv,wr.prototype.get=iy,wr.prototype.has=Hr,wr.prototype.set=Ef;function Uo(p){var g=-1,R=p==null?0:p.length;for(this.clear();++g<R;){var I=p[g];this.set(I[0],I[1])}}function md(){this.__data__=[],this.size=0}function ec(p){var g=this.__data__,R=Fv(g,p);if(R<0)return!1;var I=g.length-1;return R==I?g.pop():N0.call(g,R,1),--this.size,!0}function Tf(p){var g=this.__data__,R=Fv(g,p);return R<0?n:g[R][1]}function Ic(p){return Fv(this.__data__,p)>-1}function k0(p,g){var R=this.__data__,I=Fv(R,p);return I<0?(++this.size,R.push([p,g])):R[I][1]=g,this}Uo.prototype.clear=md,Uo.prototype.delete=ec,Uo.prototype.get=Tf,Uo.prototype.has=Ic,Uo.prototype.set=k0;function Fc(p){var g=-1,R=p==null?0:p.length;for(this.clear();++g<R;){var I=p[g];this.set(I[0],I[1])}}function rx(){this.size=0,this.__data__={hash:new wr,map:new(Qu||Uo),string:new wr}}function Dv(p){var g=wd(this,p).delete(p);return this.size-=g?1:0,g}function Pi(p){return wd(this,p).get(p)}function vh(p){return wd(this,p).has(p)}function vd(p,g){var R=wd(this,p),I=R.size;return R.set(p,g),this.size+=R.size==I?0:1,this}Fc.prototype.clear=rx,Fc.prototype.delete=Dv,Fc.prototype.get=Pi,Fc.prototype.has=vh,Fc.prototype.set=vd;function tc(p){var g=-1,R=p==null?0:p.length;for(this.__data__=new Fc;++g<R;)this.add(p[g])}function vo(p){return this.__data__.set(p,d),this}function gd(p){return this.__data__.has(p)}tc.prototype.add=tc.prototype.push=vo,tc.prototype.has=gd;function _n(p){var g=this.__data__=new Uo(p);this.size=g.size}function gh(){this.__data__=new Uo,this.size=0}function A0(p){var g=this.__data__,R=g.delete(p);return this.size=g.size,R}function ax(p){return this.__data__.get(p)}function Pv(p){return this.__data__.has(p)}function bd(p,g){var R=this.__data__;if(R instanceof Uo){var I=R.__data__;if(!Qu||I.length<i-1)return I.push([p,g]),this.size=++R.size,this;R=this.__data__=new Fc(I)}return R.set(p,g),this.size=R.size,this}_n.prototype.clear=gh,_n.prototype.delete=A0,_n.prototype.get=ax,_n.prototype.has=Pv,_n.prototype.set=bd;function cl(p,g){var R=lr(p),I=!R&&qc(p),Y=!R&&!I&&Vl(p),te=!R&&!I&&!Y&&zf(p),me=R||I||Y||te,fe=me?y0(p.length,Tv):[],Re=fe.length;for(var at in p)(g||ua.call(p,at))&&!(me&&(at=="length"||Y&&(at=="offset"||at=="parent")||te&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||$l(at,Re)))&&fe.push(at);return fe}function ix(p){var g=p.length;return g?p[Cu(0,g-1)]:n}function yd(p,g){return K0(Vo(p),zc(g,0,p.length))}function ox(p){return K0(Vo(p))}function Bp(p,g,R){(R!==n&&!jl(p[g],R)||R===n&&!(g in p))&&fl(p,g,R)}function Iv(p,g,R){var I=p[g];(!(ua.call(p,g)&&jl(I,R))||R===n&&!(g in p))&&fl(p,g,R)}function Fv(p,g){for(var R=p.length;R--;)if(jl(p[R][0],g))return R;return-1}function oy(p,g,R,I){return Sd(p,function(Y,te,me){g(I,Y,R(Y),me)}),I}function O0(p,g){return p&&xs(g,Wo(g),p)}function nc(p,g){return p&&xs(g,Ns(g),p)}function fl(p,g,R){g=="__proto__"&&Wn?Wn(p,g,{configurable:!0,enumerable:!0,value:R,writable:!0}):p[g]=R}function bh(p,g){for(var R=-1,I=g.length,Y=Be(I),te=p==null;++R<I;)Y[R]=te?n:mg(p,g[R]);return Y}function zc(p,g,R){return p===p&&(R!==n&&(p=p<=R?p:R),g!==n&&(p=p>=g?p:g)),p}function rs(p,g,R,I,Y,te){var me,fe=g&S,Re=g&N,at=g&w;if(R&&(me=Y?R(p,I,Y,te):R(p)),me!==n)return me;if(!Oa(p))return p;var st=lr(p);if(st){if(me=xo(p),!fe)return Vo(p,me)}else{var bt=fa(p),jt=bt==ht||bt==gn;if(Vl(p))return B0(p,fe);if(bt==Pt||bt==wt||jt&&!Y){if(me=Re||jt?{}:G0(p),!fe)return Re?mx(p,nc(me,p)):Fl(p,O0(me,p))}else{if(!Br[bt])return Y?p:{};me=AC(p,bt,fe)}}te||(te=new _n);var fn=te.get(p);if(fn)return fn;te.set(p,me),qy(p)?p.forEach(function(Pn){me.add(rs(Pn,g,R,Pn,p,te))}):v1(p)&&p.forEach(function(Pn,Er){me.set(Er,rs(Pn,g,R,Er,p,te))});var Vn=at?Re?Nh:Ya:Re?Ns:Wo,xr=st?n:Vn(p);return In(xr||p,function(Pn,Er){xr&&(Er=Pn,Pn=p[Er]),Iv(me,Er,rs(Pn,g,R,Er,p,te))}),me}function rc(p){var g=Wo(p);return function(R){return go(R,p,g)}}function go(p,g,R){var I=R.length;if(p==null)return!I;for(p=sa(p);I--;){var Y=R[I],te=g[Y],me=p[Y];if(me===n&&!(Y in p)||!te(me))return!1}return!0}function sx(p,g,R){if(typeof p!="function")throw new Bo(l);return Vc(function(){p.apply(n,R)},g)}function Ti(p,g,R,I){var Y=-1,te=qu,me=!0,fe=p.length,Re=[],at=g.length;if(!fe)return Re;R&&(g=Ur(g,Qr(R))),I?(te=fh,me=!1):g.length>=i&&(te=od,me=!1,g=new tc(g));e:for(;++Y<fe;){var st=p[Y],bt=R==null?st:R(st);if(st=I||st!==0?st:0,me&&bt===bt){for(var jt=at;jt--;)if(g[jt]===bt)continue e;Re.push(st)}else te(g,bt,I)||Re.push(st)}return Re}var Sd=qp(za),$p=qp(Yt,!0);function L0(p,g){var R=!0;return Sd(p,function(I,Y,te){return R=!!g(I,Y,te),R}),R}function ac(p,g,R){for(var I=-1,Y=p.length;++I<Y;){var te=p[I],me=g(te);if(me!=null&&(fe===n?me===me&&!Or(me):R(me,fe)))var fe=me,Re=te}return Re}function wC(p,g,R,I){var Y=p.length;for(R=jn(R),R<0&&(R=-R>Y?0:Y+R),I=I===n||I>Y?Y:jn(I),I<0&&(I+=Y),I=R>I?0:ls(I);R<I;)p[R++]=g;return p}function M0(p,g){var R=[];return Sd(p,function(I,Y,te){g(I,Y,te)&&R.push(I)}),R}function as(p,g,R,I,Y){var te=-1,me=p.length;for(R||(R=Bl),Y||(Y=[]);++te<me;){var fe=p[te];g>0&&R(fe)?g>1?as(fe,g-1,R,I,Y):il(Y,fe):I||(Y[Y.length]=fe)}return Y}var Qi=Sh(),Bc=Sh(!0);function za(p,g){return p&&Qi(p,g,Wo)}function Yt(p,g){return p&&Bc(p,g,Wo)}function dl(p,g){return ns(g,function(R){return Lu(p[R])})}function is(p,g){g=_u(g,p);for(var R=0,I=g.length;p!=null&&R<I;)p=p[zs(g[R++])];return R&&R==I?p:n}function lx(p,g,R){var I=g(p);return lr(p)?I:il(I,R(p))}function Ji(p){return p==null?p===n?St:Zt:oi&&oi in sa(p)?Qp(p):by(p)}function Ho(p,g){return p>g}function en(p,g){return p!=null&&ua.call(p,g)}function $c(p,g){return p!=null&&g in sa(p)}function Na(p,g,R){return p>=Zi(g,R)&&p<Ei(g,R)}function sy(p,g,R){for(var I=R?fh:qu,Y=p[0].length,te=p.length,me=te,fe=Be(te),Re=1/0,at=[];me--;){var st=p[me];me&&g&&(st=Ur(st,Qr(g))),Re=Zi(st.length,Re),fe[me]=!R&&(g||Y>=120&&st.length>=120)?new tc(me&&st):n}st=p[0];var bt=-1,jt=fe[0];e:for(;++bt<Y&&at.length<Re;){var fn=st[bt],Vn=g?g(fn):fn;if(fn=R||fn!==0?fn:0,!(jt?od(jt,Vn):I(at,Vn,R))){for(me=te;--me;){var xr=fe[me];if(!(xr?od(xr,Vn):I(p[me],Vn,R)))continue e}jt&&jt.push(Vn),at.push(fn)}}return at}function _C(p,g,R,I){return za(p,function(Y,te,me){g(I,R(Y),te,me)}),I}function zv(p,g,R){g=_u(g,p),p=wa(p,g);var I=p==null?p:p[zs(yl(g))];return I==null?n:mn(I,p,R)}function ly(p){return qa(p)&&Ji(p)==wt}function Bv(p){return qa(p)&&Ji(p)==En}function vi(p){return qa(p)&&Ji(p)==It}function $v(p,g,R,I,Y){return p===g?!0:p==null||g==null||!qa(p)&&!qa(g)?p!==p&&g!==g:EC(p,g,R,I,$v,Y)}function EC(p,g,R,I,Y,te){var me=lr(p),fe=lr(g),Re=me?Ot:fa(p),at=fe?Ot:fa(g);Re=Re==wt?Pt:Re,at=at==wt?Pt:at;var st=Re==Pt,bt=at==Pt,jt=Re==at;if(jt&&Vl(p)){if(!Vl(g))return!1;me=!0,st=!1}if(jt&&!st)return te||(te=new _n),me||zf(p)?Lf(p,g,R,I,Y,te):yx(p,g,Re,R,I,Y,te);if(!(R&T)){var fn=st&&ua.call(p,"__wrapped__"),Vn=bt&&ua.call(g,"__wrapped__");if(fn||Vn){var xr=fn?p.value():p,Pn=Vn?g.value():g;return te||(te=new _n),Y(xr,Pn,R,I,te)}}return jt?(te||(te=new _n),F_(p,g,R,I,Y,te)):!1}function TC(p){return qa(p)&&fa(p)==De}function D0(p,g,R,I){var Y=R.length,te=Y,me=!I;if(p==null)return!te;for(p=sa(p);Y--;){var fe=R[Y];if(me&&fe[2]?fe[1]!==p[fe[0]]:!(fe[0]in p))return!1}for(;++Y<te;){fe=R[Y];var Re=fe[0],at=p[Re],st=fe[1];if(me&&fe[2]){if(at===n&&!(Re in p))return!1}else{var bt=new _n;if(I)var jt=I(at,st,Re,p,g,bt);if(!(jt===n?$v(st,at,T|L,I,bt):jt))return!1}}return!0}function Up(p){if(!Oa(p)||tm(p))return!1;var g=Lu(p)?tr:Fa;return g.test(Ed(p))}function Hp(p){return qa(p)&&Ji(p)==an}function ux(p){return qa(p)&&fa(p)==Rn}function cx(p){return qa(p)&&$h(p.length)&&!!Sr[Ji(p)]}function fx(p){return typeof p=="function"?p:p==null?Cl:typeof p=="object"?lr(p)?hy(p[0],p[1]):dy(p):Pd(p)}function uy(p){if(!Eh(p))return E0(p);var g=[];for(var R in sa(p))ua.call(p,R)&&R!="constructor"&&g.push(R);return g}function RC(p){if(!Oa(p))return LC(p);var g=Eh(p),R=[];for(var I in p)I=="constructor"&&(g||!ua.call(p,I))||R.push(I);return R}function cy(p,g){return p<g}function fy(p,g){var R=-1,I=ki(p)?Be(p.length):[];return Sd(p,function(Y,te,me){I[++R]=g(Y,te,me)}),I}function dy(p){var g=_d(p);return g.length==1&&g[0][2]?Y0(g[0][0],g[0][1]):function(R){return R===p||D0(R,p,g)}}function hy(p,g){return _h(p)&&vy(g)?Y0(zs(p),g):function(R){var I=mg(R,p);return I===n&&I===g?Dd(R,p):$v(g,I,T|L)}}function P0(p,g,R,I,Y){p!==g&&Qi(g,function(te,me){if(Y||(Y=new _n),Oa(te))dx(p,g,me,R,P0,I,Y);else{var fe=I?I(Au(p,me),te,me+"",p,g,Y):n;fe===n&&(fe=te),Bp(p,me,fe)}},Ns)}function dx(p,g,R,I,Y,te,me){var fe=Au(p,R),Re=Au(g,R),at=me.get(Re);if(at){Bp(p,R,at);return}var st=te?te(fe,Re,R+"",p,g,me):n,bt=st===n;if(bt){var jt=lr(Re),fn=!jt&&Vl(Re),Vn=!jt&&!fn&&zf(Re);st=Re,jt||fn||Vn?lr(fe)?st=fe:Aa(fe)?st=Vo(fe):fn?(bt=!1,st=B0(Re,!0)):Vn?(bt=!1,st=ml(Re,!0)):st=[]:Hh(Re)||qc(Re)?(st=fe,qc(fe)?st=hg(fe):(!Oa(fe)||Lu(fe))&&(st=G0(Re))):bt=!1}bt&&(me.set(Re,st),Y(st,Re,I,te,me),me.delete(Re)),Bp(p,R,st)}function hx(p,g){var R=p.length;if(!!R)return g+=g<0?R:0,$l(g,R)?p[g]:n}function px(p,g,R){g.length?g=Ur(g,function(te){return lr(te)?function(me){return is(me,te.length===1?te[0]:te)}:te}):g=[Cl];var I=-1;g=Ur(g,Qr(Tn()));var Y=fy(p,function(te,me,fe){var Re=Ur(g,function(at){return at(te)});return{criteria:Re,index:++I,value:te}});return CC(Y,function(te,me){return Af(te,me,R)})}function py(p,g){return Fn(p,g,function(R,I){return Dd(p,I)})}function Fn(p,g,R){for(var I=-1,Y=g.length,te={};++I<Y;){var me=g[I],fe=is(p,me);R(fe,me)&&vt(te,_u(me,p),fe)}return te}function Pr(p){return function(g){return is(g,p)}}function Jr(p,g,R,I){var Y=I?xC:dh,te=-1,me=g.length,fe=p;for(p===g&&(g=Vo(g)),R&&(fe=Ur(p,Qr(R)));++te<me;)for(var Re=0,at=g[te],st=R?R(at):at;(Re=Y(fe,st,Re,I))>-1;)fe!==p&&N0.call(fe,Re,1),N0.call(p,Re,1);return p}function Ii(p,g){for(var R=p?g.length:0,I=R-1;R--;){var Y=g[R];if(R==I||Y!==te){var te=Y;$l(Y)?N0.call(p,Y,1):ic(p,Y)}}return p}function Cu(p,g){return p+Nf(R0()*(g-p+1))}function I0(p,g,R,I){for(var Y=-1,te=Ei($o((g-p)/(R||1)),0),me=Be(te);te--;)me[I?te:++Y]=p,p+=R;return me}function my(p,g){var R="";if(!p||g<1||g>he)return R;do g%2&&(R+=p),g=Nf(g/2),g&&(p+=p);while(g);return R}function Jn(p,g){return Gc(jc(p,g,Cl),p+"")}function Rf(p){return ix(Mu(p))}function Uv(p,g){var R=Mu(p);return K0(R,zc(g,0,R.length))}function vt(p,g,R,I){if(!Oa(p))return p;g=_u(g,p);for(var Y=-1,te=g.length,me=te-1,fe=p;fe!=null&&++Y<te;){var Re=zs(g[Y]),at=R;if(Re==="__proto__"||Re==="constructor"||Re==="prototype")return p;if(Y!=me){var st=fe[Re];at=I?I(st,Re,fe):n,at===n&&(at=Oa(st)?st:$l(g[Y+1])?[]:{})}Iv(fe,Re,at),fe=fe[Re]}return p}var eo=wf?function(p,g){return wf.set(p,g),p}:Cl,ir=Wn?function(p,g){return Wn(p,"toString",{configurable:!0,enumerable:!1,value:h2(g),writable:!0})}:Cl;function yh(p){return K0(Mu(p))}function ba(p,g,R){var I=-1,Y=p.length;g<0&&(g=-g>Y?0:Y+g),R=R>Y?Y:R,R<0&&(R+=Y),Y=g>R?0:R-g>>>0,g>>>=0;for(var te=Be(Y);++I<Y;)te[I]=p[I+g];return te}function xd(p,g){var R;return Sd(p,function(I,Y,te){return R=g(I,Y,te),!R}),!!R}function jo(p,g,R){var I=0,Y=p==null?I:p.length;if(typeof g=="number"&&g===g&&Y<=Pe){for(;I<Y;){var te=I+Y>>>1,me=p[te];me!==null&&!Or(me)&&(R?me<=g:me<g)?I=te+1:Y=te}return Y}return Nu(p,g,Cl,R)}function Nu(p,g,R,I){var Y=0,te=p==null?0:p.length;if(te===0)return 0;g=R(g);for(var me=g!==g,fe=g===null,Re=Or(g),at=g===n;Y<te;){var st=Nf((Y+te)/2),bt=R(p[st]),jt=bt!==n,fn=bt===null,Vn=bt===bt,xr=Or(bt);if(me)var Pn=I||Vn;else at?Pn=Vn&&(I||jt):fe?Pn=Vn&&jt&&(I||!fn):Re?Pn=Vn&&jt&&!fn&&(I||!xr):fn||xr?Pn=!1:Pn=I?bt<=g:bt<g;Pn?Y=st+1:te=st}return Zi(te,Ve)}function Uc(p,g){for(var R=-1,I=p.length,Y=0,te=[];++R<I;){var me=p[R],fe=g?g(me):me;if(!R||!jl(fe,Re)){var Re=fe;te[Y++]=me===0?0:me}}return te}function kf(p){return typeof p=="number"?p:Or(p)?ye:+p}function Ba(p){if(typeof p=="string")return p;if(lr(p))return Ur(p,Ba)+"";if(Or(p))return zp?zp.call(p):"";var g=p+"";return g=="0"&&1/p==-J?"-0":g}function Fi(p,g,R){var I=-1,Y=qu,te=p.length,me=!0,fe=[],Re=fe;if(R)me=!1,Y=fh;else if(te>=i){var at=g?null:Vv(p);if(at)return hh(at);me=!1,Y=od,Re=new tc}else Re=g?[]:fe;e:for(;++I<te;){var st=p[I],bt=g?g(st):st;if(st=R||st!==0?st:0,me&&bt===bt){for(var jt=Re.length;jt--;)if(Re[jt]===bt)continue e;g&&Re.push(bt),fe.push(st)}else Y(Re,bt,R)||(Re!==fe&&Re.push(bt),fe.push(st))}return fe}function ic(p,g){return g=_u(g,p),p=wa(p,g),p==null||delete p[zs(yl(g))]}function wu(p,g,R,I){return vt(p,g,R(is(p,g)),I)}function hl(p,g,R,I){for(var Y=p.length,te=I?Y:-1;(I?te--:++te<Y)&&g(p[te],te,p););return R?ba(p,I?0:te,I?te+1:Y):ba(p,I?te+1:0,I?Y:te)}function F0(p,g){var R=p;return R instanceof Rr&&(R=R.value()),Oc(g,function(I,Y){return Y.func.apply(Y.thisArg,il([I],Y.args))},R)}function Hv(p,g,R){var I=p.length;if(I<2)return I?Fi(p[0]):[];for(var Y=-1,te=Be(I);++Y<I;)for(var me=p[Y],fe=-1;++fe<I;)fe!=Y&&(te[Y]=Ti(te[Y]||me,p[fe],g,R));return Fi(as(te,1),g,R)}function z0(p,g,R){for(var I=-1,Y=p.length,te=g.length,me={};++I<Y;){var fe=I<te?g[I]:n;R(me,p[I],fe)}return me}function oc(p){return Aa(p)?p:[]}function jp(p){return typeof p=="function"?p:Cl}function _u(p,g){return lr(p)?p:_h(p,g)?[p]:rm(Ir(p))}var Vp=Jn;function Hc(p,g,R){var I=p.length;return R=R===n?I:R,!g&&R>=I?p:ba(p,g,R)}var Gp=cd||function(p){return Jt.clearTimeout(p)};function B0(p,g){if(g)return p.slice();var R=p.length,I=Zu?Zu(R):new p.constructor(R);return p.copy(I),I}function Wp(p){var g=new p.constructor(p.byteLength);return new pi(g).set(new pi(p)),g}function Eu(p,g){var R=g?Wp(p.buffer):p.buffer;return new p.constructor(R,p.byteOffset,p.byteLength)}function bo(p){var g=new p.constructor(p.source,sr.exec(p));return g.lastIndex=p.lastIndex,g}function pl(p){return Fp?sa(Fp.call(p)):{}}function ml(p,g){var R=g?Wp(p.buffer):p.buffer;return new p.constructor(R,p.byteOffset,p.length)}function sc(p,g){if(p!==g){var R=p!==n,I=p===null,Y=p===p,te=Or(p),me=g!==n,fe=g===null,Re=g===g,at=Or(g);if(!fe&&!at&&!te&&p>g||te&&me&&Re&&!fe&&!at||I&&me&&Re||!R&&Re||!Y)return 1;if(!I&&!te&&!at&&p<g||at&&R&&Y&&!I&&!te||fe&&R&&Y||!me&&Y||!Re)return-1}return 0}function Af(p,g,R){for(var I=-1,Y=p.criteria,te=g.criteria,me=Y.length,fe=R.length;++I<me;){var Re=sc(Y[I],te[I]);if(Re){if(I>=fe)return Re;var at=R[I];return Re*(at=="desc"?-1:1)}}return p.index-g.index}function Yp(p,g,R,I){for(var Y=-1,te=p.length,me=R.length,fe=-1,Re=g.length,at=Ei(te-me,0),st=Be(Re+at),bt=!I;++fe<Re;)st[fe]=g[fe];for(;++Y<me;)(bt||Y<te)&&(st[R[Y]]=p[Y]);for(;at--;)st[fe++]=p[Y++];return st}function $0(p,g,R,I){for(var Y=-1,te=p.length,me=-1,fe=R.length,Re=-1,at=g.length,st=Ei(te-fe,0),bt=Be(st+at),jt=!I;++Y<st;)bt[Y]=p[Y];for(var fn=Y;++Re<at;)bt[fn+Re]=g[Re];for(;++me<fe;)(jt||Y<te)&&(bt[fn+R[me]]=p[Y++]);return bt}function Vo(p,g){var R=-1,I=p.length;for(g||(g=Be(I));++R<I;)g[R]=p[R];return g}function xs(p,g,R,I){var Y=!R;R||(R={});for(var te=-1,me=g.length;++te<me;){var fe=g[te],Re=I?I(R[fe],p[fe],fe,R,p):n;Re===n&&(Re=p[fe]),Y?fl(R,fe,Re):Iv(R,fe,Re)}return R}function Fl(p,g){return xs(p,So(p),g)}function mx(p,g){return xs(p,vl(p),g)}function ca(p,g){return function(R,I){var Y=lr(R)?Gn:oy,te=g?g():{};return Y(R,p,Tn(I,2),te)}}function lc(p){return Jn(function(g,R){var I=-1,Y=R.length,te=Y>1?R[Y-1]:n,me=Y>2?R[2]:n;for(te=p.length>3&&typeof te=="function"?(Y--,te):n,me&&Ri(R[0],R[1],me)&&(te=Y<3?n:te,Y=1),g=sa(g);++I<Y;){var fe=R[I];fe&&p(g,fe,I,te)}return g})}function qp(p,g){return function(R,I){if(R==null)return R;if(!ki(R))return p(R,I);for(var Y=R.length,te=g?Y:-1,me=sa(R);(g?te--:++te<Y)&&I(me[te],te,me)!==!1;);return R}}function Sh(p){return function(g,R,I){for(var Y=-1,te=sa(g),me=I(g),fe=me.length;fe--;){var Re=me[p?fe:++Y];if(R(te[Re],Re,te)===!1)break}return g}}function Kp(p,g,R){var I=g&M,Y=jv(p);function te(){var me=this&&this!==Jt&&this instanceof te?Y:p;return me.apply(I?R:this,arguments)}return te}function U0(p){return function(g){g=Ir(g);var R=sd(g)?bu(g):n,I=R?R[0]:g.charAt(0),Y=R?Hc(R,1).join(""):g.slice(1);return I[p]()+Y}}function Cd(p){return function(g){return Oc(T1(Cm(g).replace(Ds,"")),p,"")}}function jv(p){return function(){var g=arguments;switch(g.length){case 0:return new p;case 1:return new p(g[0]);case 2:return new p(g[0],g[1]);case 3:return new p(g[0],g[1],g[2]);case 4:return new p(g[0],g[1],g[2],g[3]);case 5:return new p(g[0],g[1],g[2],g[3],g[4]);case 6:return new p(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new p(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var R=Xi(p.prototype),I=p.apply(R,g);return Oa(I)?I:R}}function kC(p,g,R){var I=jv(p);function Y(){for(var te=arguments.length,me=Be(te),fe=te,Re=Xp(Y);fe--;)me[fe]=arguments[fe];var at=te<3&&me[0]!==Re&&me[te-1]!==Re?[]:ld(me,Re);if(te-=at.length,te<R)return bx(p,g,xh,Y.placeholder,n,me,at,n,n,R-te);var st=this&&this!==Jt&&this instanceof Y?I:p;return mn(st,this,me)}return Y}function H0(p){return function(g,R,I){var Y=sa(g);if(!ki(g)){var te=Tn(R,3);g=Wo(g),R=function(fe){return te(Y[fe],fe,Y)}}var me=p(g,R,I);return me>-1?Y[te?g[me]:me]:n}}function vx(p){return gi(function(g){var R=g.length,I=R,Y=Dr.prototype.thru;for(p&&g.reverse();I--;){var te=g[I];if(typeof te!="function")throw new Bo(l);if(Y&&!me&&Fs(te)=="wrapper")var me=new Dr([],!0)}for(I=me?I:R;++I<R;){te=g[I];var fe=Fs(te),Re=fe=="wrapper"?Ru(te):n;Re&&Gv(Re[0])&&Re[1]==(Z|z|G|ne)&&!Re[4].length&&Re[9]==1?me=me[Fs(Re[0])].apply(me,Re[3]):me=te.length==1&&Gv(te)?me[fe]():me.thru(te)}return function(){var at=arguments,st=at[0];if(me&&at.length==1&&lr(st))return me.plant(st).value();for(var bt=0,jt=R?g[bt].apply(this,at):st;++bt<R;)jt=g[bt].call(this,jt);return jt}})}function xh(p,g,R,I,Y,te,me,fe,Re,at){var st=g&Z,bt=g&M,jt=g&B,fn=g&(z|H),Vn=g&ie,xr=jt?n:jv(p);function Pn(){for(var Er=arguments.length,Fr=Be(Er),ws=Er;ws--;)Fr[ws]=arguments[ws];if(fn)var Ka=Xp(Pn),Vs=kp(Fr,Ka);if(I&&(Fr=Yp(Fr,I,Y,fn)),te&&(Fr=$0(Fr,te,me,fn)),Er-=Vs,fn&&Er<at){var si=ld(Fr,Ka);return bx(p,g,xh,Pn.placeholder,R,Fr,si,fe,Re,at-Er)}var ya=bt?R:this,bi=jt?ya[p]:p;return Er=Fr.length,fe?Fr=gl(Fr,fe):Vn&&Er>1&&Fr.reverse(),st&&Re<Er&&(Fr.length=Re),this&&this!==Jt&&this instanceof Pn&&(bi=xr||jv(bi)),bi.apply(ya,Fr)}return Pn}function Zp(p,g){return function(R,I){return _C(R,p,g(I),{})}}function j0(p,g){return function(R,I){var Y;if(R===n&&I===n)return g;if(R!==n&&(Y=R),I!==n){if(Y===n)return I;typeof R=="string"||typeof I=="string"?(R=Ba(R),I=Ba(I)):(R=kf(R),I=kf(I)),Y=p(R,I)}return Y}}function V0(p){return gi(function(g){return g=Ur(g,Qr(Tn())),Jn(function(R){var I=this;return p(g,function(Y){return mn(Y,I,R)})})})}function Tu(p,g){g=g===n?" ":Ba(g);var R=g.length;if(R<2)return R?my(g,p):g;var I=my(g,$o(p/xf(g)));return sd(g)?Hc(bu(I),0,p).join(""):I.slice(0,p)}function gx(p,g,R,I){var Y=g&M,te=jv(p);function me(){for(var fe=-1,Re=arguments.length,at=-1,st=I.length,bt=Be(st+Re),jt=this&&this!==Jt&&this instanceof me?te:p;++at<st;)bt[at]=I[at];for(;Re--;)bt[at++]=arguments[++fe];return mn(jt,Y?R:this,bt)}return me}function yo(p){return function(g,R,I){return I&&typeof I!="number"&&Ri(g,R,I)&&(R=I=n),g=Kc(g),R===n?(R=g,g=0):R=Kc(R),I=I===n?g<R?1:-1:Kc(I),I0(g,R,I,p)}}function Ch(p){return function(g,R){return typeof g=="string"&&typeof R=="string"||(g=Us(g),R=Us(R)),p(g,R)}}function bx(p,g,R,I,Y,te,me,fe,Re,at){var st=g&z,bt=st?me:n,jt=st?n:me,fn=st?te:n,Vn=st?n:te;g|=st?G:K,g&=~(st?K:G),g&F||(g&=~(M|B));var xr=[p,g,Y,fn,bt,Vn,jt,fe,Re,at],Pn=R.apply(n,xr);return Gv(p)&&nm(Pn,xr),Pn.placeholder=I,Sx(Pn,p,g)}function Of(p){var g=Ca[p];return function(R,I){if(R=Us(R),I=I==null?0:Zi(jn(I),292),I&&w0(R)){var Y=(Ir(R)+"e").split("e"),te=g(Y[0]+"e"+(+Y[1]+I));return Y=(Ir(te)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-I))}return g(R)}}var Vv=xu&&1/hh(new xu([,-0]))[1]==J?function(p){return new xu(p)}:A1;function uc(p){return function(g){var R=fa(g);return R==De?wv(g):R==Rn?Ap(g):ol(g,p(g))}}function cc(p,g,R,I,Y,te,me,fe){var Re=g&B;if(!Re&&typeof p!="function")throw new Bo(l);var at=I?I.length:0;if(at||(g&=~(G|K),I=Y=n),me=me===n?me:Ei(jn(me),0),fe=fe===n?fe:jn(fe),at-=Y?Y.length:0,g&K){var st=I,bt=Y;I=Y=n}var jt=Re?n:Ru(p),fn=[p,g,R,I,Y,st,bt,te,me,fe];if(jt&&q0(fn,jt),p=fn[0],g=fn[1],R=fn[2],I=fn[3],Y=fn[4],fe=fn[9]=fn[9]===n?Re?0:p.length:Ei(fn[9]-at,0),!fe&&g&(z|H)&&(g&=~(z|H)),!g||g==M)var Vn=Kp(p,g,R);else g==z||g==H?Vn=kC(p,g,fe):(g==G||g==(M|G))&&!Y.length?Vn=gx(p,g,R,I):Vn=xh.apply(n,fn);var xr=jt?eo:nm;return Sx(xr(Vn,fn),p,g)}function Is(p,g,R,I){return p===n||jl(p,Cf[R])&&!ua.call(I,R)?g:p}function Nd(p,g,R,I,Y,te){return Oa(p)&&Oa(g)&&(te.set(g,p),P0(p,g,n,Nd,te),te.delete(g)),p}function zn(p){return Hh(p)?n:p}function Lf(p,g,R,I,Y,te){var me=R&T,fe=p.length,Re=g.length;if(fe!=Re&&!(me&&Re>fe))return!1;var at=te.get(p),st=te.get(g);if(at&&st)return at==g&&st==p;var bt=-1,jt=!0,fn=R&L?new tc:n;for(te.set(p,g),te.set(g,p);++bt<fe;){var Vn=p[bt],xr=g[bt];if(I)var Pn=me?I(xr,Vn,bt,g,p,te):I(Vn,xr,bt,p,g,te);if(Pn!==n){if(Pn)continue;jt=!1;break}if(fn){if(!Yb(g,function(Er,Fr){if(!od(fn,Fr)&&(Vn===Er||Y(Vn,Er,R,I,te)))return fn.push(Fr)})){jt=!1;break}}else if(!(Vn===xr||Y(Vn,xr,R,I,te))){jt=!1;break}}return te.delete(p),te.delete(g),jt}function yx(p,g,R,I,Y,te,me){switch(R){case Je:if(p.byteLength!=g.byteLength||p.byteOffset!=g.byteOffset)return!1;p=p.buffer,g=g.buffer;case En:return!(p.byteLength!=g.byteLength||!te(new pi(p),new pi(g)));case ut:case It:case kt:return jl(+p,+g);case pn:return p.name==g.name&&p.message==g.message;case an:case wn:return p==g+"";case De:var fe=wv;case Rn:var Re=I&T;if(fe||(fe=hh),p.size!=g.size&&!Re)return!1;var at=me.get(p);if(at)return at==g;I|=L,me.set(p,g);var st=Lf(fe(p),fe(g),I,Y,te,me);return me.delete(p),st;case Ln:if(Fp)return Fp.call(p)==Fp.call(g)}return!1}function F_(p,g,R,I,Y,te){var me=R&T,fe=Ya(p),Re=fe.length,at=Ya(g),st=at.length;if(Re!=st&&!me)return!1;for(var bt=Re;bt--;){var jt=fe[bt];if(!(me?jt in g:ua.call(g,jt)))return!1}var fn=te.get(p),Vn=te.get(g);if(fn&&Vn)return fn==g&&Vn==p;var xr=!0;te.set(p,g),te.set(g,p);for(var Pn=me;++bt<Re;){jt=fe[bt];var Er=p[jt],Fr=g[jt];if(I)var ws=me?I(Fr,Er,jt,g,p,te):I(Er,Fr,jt,p,g,te);if(!(ws===n?Er===Fr||Y(Er,Fr,R,I,te):ws)){xr=!1;break}Pn||(Pn=jt=="constructor")}if(xr&&!Pn){var Ka=p.constructor,Vs=g.constructor;Ka!=Vs&&"constructor"in p&&"constructor"in g&&!(typeof Ka=="function"&&Ka instanceof Ka&&typeof Vs=="function"&&Vs instanceof Vs)&&(xr=!1)}return te.delete(p),te.delete(g),xr}function gi(p){return Gc(jc(p,n,Kv),p+"")}function Ya(p){return lx(p,Wo,So)}function Nh(p){return lx(p,Ns,vl)}var Ru=wf?function(p){return wf.get(p)}:A1;function Fs(p){for(var g=p.name+"",R=Ju[g],I=ua.call(Ju,g)?R.length:0;I--;){var Y=R[I],te=Y.func;if(te==null||te==p)return Y.name}return g}function Xp(p){var g=ua.call(Q,"placeholder")?Q:p;return g.placeholder}function Tn(){var p=Q.iteratee||m2;return p=p===m2?fx:p,arguments.length?p(arguments[0],arguments[1]):p}function wd(p,g){var R=p.__data__;return em(g)?R[typeof g=="string"?"string":"hash"]:R.map}function _d(p){for(var g=Wo(p),R=g.length;R--;){var I=g[R],Y=p[I];g[R]=[I,Y,vy(Y)]}return g}function ku(p,g){var R=NC(p,g);return Up(R)?R:n}function Qp(p){var g=ua.call(p,oi),R=p[oi];try{p[oi]=n;var I=!0}catch{}var Y=Av.call(p);return I&&(g?p[oi]=R:delete p[oi]),Y}var So=fd?function(p){return p==null?[]:(p=sa(p),ns(fd(p),function(g){return Mp.call(p,g)}))}:b2,vl=fd?function(p){for(var g=[];p;)il(g,So(p)),p=Lp(p);return g}:b2,fa=Ji;(Ov&&fa(new Ov(new ArrayBuffer(1)))!=Je||Qu&&fa(new Qu)!=De||ph&&fa(ph.resolve())!=un||xu&&fa(new xu)!=Rn||dd&&fa(new dd)!=Ft)&&(fa=function(p){var g=Ji(p),R=g==Pt?p.constructor:n,I=R?Ed(R):"";if(I)switch(I){case pd:return Je;case Pp:return De;case Ip:return un;case Lv:return Rn;case nx:return Ft}return g});function wh(p,g,R){for(var I=-1,Y=R.length;++I<Y;){var te=R[I],me=te.size;switch(te.type){case"drop":p+=me;break;case"dropRight":g-=me;break;case"take":g=Zi(g,p+me);break;case"takeRight":p=Ei(p,g-me);break}}return{start:p,end:g}}function Jp(p){var g=p.match(xt);return g?g[1].split(bn):[]}function zl(p,g,R){g=_u(g,p);for(var I=-1,Y=g.length,te=!1;++I<Y;){var me=zs(g[I]);if(!(te=p!=null&&R(p,me)))break;p=p[me]}return te||++I!=Y?te:(Y=p==null?0:p.length,!!Y&&$h(Y)&&$l(me,Y)&&(lr(p)||qc(p)))}function xo(p){var g=p.length,R=new p.constructor(g);return g&&typeof p[0]=="string"&&ua.call(p,"index")&&(R.index=p.index,R.input=p.input),R}function G0(p){return typeof p.constructor=="function"&&!Eh(p)?Xi(Lp(p)):{}}function AC(p,g,R){var I=p.constructor;switch(g){case En:return Wp(p);case ut:case It:return new I(+p);case Je:return Eu(p,R);case Mn:case br:case pt:case Xe:case Bt:case We:case Lt:case Rt:case gt:return ml(p,R);case De:return new I;case kt:case wn:return new I(p);case an:return bo(p);case Rn:return new I;case Ln:return pl(p)}}function OC(p,g){var R=g.length;if(!R)return p;var I=R-1;return g[I]=(R>1?"& ":"")+g[I],g=g.join(R>2?", ":" "),p.replace(dt,`{
/* [wrapped with `+g+`] */
`)}function Bl(p){return lr(p)||qc(p)||!!(ud&&p&&p[ud])}function $l(p,g){var R=typeof p;return g=g??he,!!g&&(R=="number"||R!="symbol"&&Po.test(p))&&p>-1&&p%1==0&&p<g}function Ri(p,g,R){if(!Oa(R))return!1;var I=typeof g;return(I=="number"?ki(R)&&$l(g,R.length):I=="string"&&g in R)?jl(R[g],p):!1}function _h(p,g){if(lr(p))return!1;var R=typeof p;return R=="number"||R=="symbol"||R=="boolean"||p==null||Or(p)?!0:hi.test(p)||!uo.test(p)||g!=null&&p in sa(g)}function em(p){var g=typeof p;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?p!=="__proto__":p===null}function Gv(p){var g=Fs(p),R=Q[g];if(typeof R!="function"||!(g in Rr.prototype))return!1;if(p===R)return!0;var I=Ru(R);return!!I&&p===I[0]}function tm(p){return!!ty&&ty in p}var W0=Op?Lu:L1;function Eh(p){var g=p&&p.constructor,R=typeof g=="function"&&g.prototype||Cf;return p===R}function vy(p){return p===p&&!Oa(p)}function Y0(p,g){return function(R){return R==null?!1:R[p]===g&&(g!==n||p in sa(R))}}function gy(p){var g=Hl(p,function(I){return R.size===m&&R.clear(),I}),R=g.cache;return g}function q0(p,g){var R=p[1],I=g[1],Y=R|I,te=Y<(M|B|Z),me=I==Z&&R==z||I==Z&&R==ne&&p[7].length<=g[8]||I==(Z|ne)&&g[7].length<=g[8]&&R==z;if(!(te||me))return p;I&M&&(p[2]=g[2],Y|=R&M?0:F);var fe=g[3];if(fe){var Re=p[3];p[3]=Re?Yp(Re,fe,g[4]):fe,p[4]=Re?ld(p[3],b):g[4]}return fe=g[5],fe&&(Re=p[5],p[5]=Re?$0(Re,fe,g[6]):fe,p[6]=Re?ld(p[5],b):g[6]),fe=g[7],fe&&(p[7]=fe),I&Z&&(p[8]=p[8]==null?g[8]:Zi(p[8],g[8])),p[9]==null&&(p[9]=g[9]),p[0]=g[0],p[1]=Y,p}function LC(p){var g=[];if(p!=null)for(var R in sa(p))g.push(R);return g}function by(p){return Av.call(p)}function jc(p,g,R){return g=Ei(g===n?p.length-1:g,0),function(){for(var I=arguments,Y=-1,te=Ei(I.length-g,0),me=Be(te);++Y<te;)me[Y]=I[g+Y];Y=-1;for(var fe=Be(g+1);++Y<g;)fe[Y]=I[Y];return fe[g]=R(me),mn(p,this,fe)}}function wa(p,g){return g.length<2?p:is(p,ba(g,0,-1))}function gl(p,g){for(var R=p.length,I=Zi(g.length,R),Y=Vo(p);I--;){var te=g[I];p[I]=$l(te,R)?Y[te]:n}return p}function Au(p,g){if(!(g==="constructor"&&typeof p[g]=="function")&&g!="__proto__")return p[g]}var nm=Cs(eo),Vc=Su||function(p,g){return Jt.setTimeout(p,g)},Gc=Cs(ir);function Sx(p,g,R){var I=g+"";return Gc(p,OC(I,Wv(Jp(I),R)))}function Cs(p){var g=0,R=0;return function(){var I=ry(),Y=de-(I-R);if(R=I,Y>0){if(++g>=Ae)return arguments[0]}else g=0;return p.apply(n,arguments)}}function K0(p,g){var R=-1,I=p.length,Y=I-1;for(g=g===n?I:g;++R<g;){var te=Cu(R,Y),me=p[te];p[te]=p[R],p[R]=me}return p.length=g,p}var rm=gy(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(yr,function(R,I,Y,te){g.push(Y?te.replace(Ht,"$1"):I||R)}),g});function zs(p){if(typeof p=="string"||Or(p))return p;var g=p+"";return g=="0"&&1/p==-J?"-0":g}function Ed(p){if(p!=null){try{return Rv.call(p)}catch{}try{return p+""}catch{}}return""}function Wv(p,g){return In(Qe,function(R){var I="_."+R[0];g&R[1]&&!qu(p,I)&&p.push(I)}),p.sort()}function Z0(p){if(p instanceof Rr)return p.clone();var g=new Dr(p.__wrapped__,p.__chain__);return g.__actions__=Vo(p.__actions__),g.__index__=p.__index__,g.__values__=p.__values__,g}function Th(p,g,R){(R?Ri(p,g,R):g===n)?g=1:g=Ei(jn(g),0);var I=p==null?0:p.length;if(!I||g<1)return[];for(var Y=0,te=0,me=Be($o(I/g));Y<I;)me[te++]=ba(p,Y,Y+=g);return me}function X0(p){for(var g=-1,R=p==null?0:p.length,I=0,Y=[];++g<R;){var te=p[g];te&&(Y[I++]=te)}return Y}function Q0(){var p=arguments.length;if(!p)return[];for(var g=Be(p-1),R=arguments[0],I=p;I--;)g[I-1]=arguments[I];return il(lr(R)?Vo(R):[R],as(g,1))}var Rh=Jn(function(p,g){return Aa(p)?Ti(p,as(g,1,Aa,!0)):[]}),am=Jn(function(p,g){var R=yl(g);return Aa(R)&&(R=n),Aa(p)?Ti(p,as(g,1,Aa,!0),Tn(R,2)):[]}),bl=Jn(function(p,g){var R=yl(g);return Aa(R)&&(R=n),Aa(p)?Ti(p,as(g,1,Aa,!0),n,R):[]});function Wc(p,g,R){var I=p==null?0:p.length;return I?(g=R||g===n?1:jn(g),ba(p,g<0?0:g,I)):[]}function Yv(p,g,R){var I=p==null?0:p.length;return I?(g=R||g===n?1:jn(g),g=I-g,ba(p,0,g<0?0:g)):[]}function yy(p,g){return p&&p.length?hl(p,Tn(g,3),!0,!0):[]}function MC(p,g){return p&&p.length?hl(p,Tn(g,3),!0):[]}function J0(p,g,R,I){var Y=p==null?0:p.length;return Y?(R&&typeof R!="number"&&Ri(p,g,R)&&(R=0,I=Y),wC(p,g,R,I)):[]}function xx(p,g,R){var I=p==null?0:p.length;if(!I)return-1;var Y=R==null?0:jn(R);return Y<0&&(Y=Ei(I+Y,0)),xv(p,Tn(g,3),Y)}function qv(p,g,R){var I=p==null?0:p.length;if(!I)return-1;var Y=I-1;return R!==n&&(Y=jn(R),Y=R<0?Ei(I+Y,0):Zi(Y,I-1)),xv(p,Tn(g,3),Y,!0)}function Kv(p){var g=p==null?0:p.length;return g?as(p,1):[]}function Zv(p){var g=p==null?0:p.length;return g?as(p,J):[]}function Xv(p,g){var R=p==null?0:p.length;return R?(g=g===n?1:jn(g),as(p,g)):[]}function Sy(p){for(var g=-1,R=p==null?0:p.length,I={};++g<R;){var Y=p[g];I[Y[0]]=Y[1]}return I}function e1(p){return p&&p.length?p[0]:n}function xy(p,g,R){var I=p==null?0:p.length;if(!I)return-1;var Y=R==null?0:jn(R);return Y<0&&(Y=Ei(I+Y,0)),dh(p,g,Y)}function Cy(p){var g=p==null?0:p.length;return g?ba(p,0,-1):[]}var Ny=Jn(function(p){var g=Ur(p,oc);return g.length&&g[0]===p[0]?sy(g):[]}),kh=Jn(function(p){var g=yl(p),R=Ur(p,oc);return g===yl(R)?g=n:R.pop(),R.length&&R[0]===p[0]?sy(R,Tn(g,2)):[]}),t1=Jn(function(p){var g=yl(p),R=Ur(p,oc);return g=typeof g=="function"?g:n,g&&R.pop(),R.length&&R[0]===p[0]?sy(R,n,g):[]});function Td(p,g){return p==null?"":_0.call(p,g)}function yl(p){var g=p==null?0:p.length;return g?p[g-1]:n}function wy(p,g,R){var I=p==null?0:p.length;if(!I)return-1;var Y=I;return R!==n&&(Y=jn(R),Y=Y<0?Ei(I+Y,0):Zi(Y,I-1)),g===g?ex(p,g,Y):xv(p,Lc,Y,!0)}function n1(p,g){return p&&p.length?hx(p,jn(g)):n}var _y=Jn(Ah);function Ah(p,g){return p&&p.length&&g&&g.length?Jr(p,g):p}function im(p,g,R){return p&&p.length&&g&&g.length?Jr(p,g,Tn(R,2)):p}function Ey(p,g,R){return p&&p.length&&g&&g.length?Jr(p,g,n,R):p}var Ul=gi(function(p,g){var R=p==null?0:p.length,I=bh(p,g);return Ii(p,Ur(g,function(Y){return $l(Y,R)?+Y:Y}).sort(sc)),I});function Oh(p,g){var R=[];if(!(p&&p.length))return R;var I=-1,Y=[],te=p.length;for(g=Tn(g,3);++I<te;){var me=p[I];g(me,I,p)&&(R.push(me),Y.push(I))}return Ii(p,Y),R}function om(p){return p==null?p:ay.call(p)}function Qv(p,g,R){var I=p==null?0:p.length;return I?(R&&typeof R!="number"&&Ri(p,g,R)?(g=0,R=I):(g=g==null?0:jn(g),R=R===n?I:jn(R)),ba(p,g,R)):[]}function Cx(p,g){return jo(p,g)}function Jv(p,g,R){return Nu(p,g,Tn(R,2))}function Ty(p,g){var R=p==null?0:p.length;if(R){var I=jo(p,g);if(I<R&&jl(p[I],g))return I}return-1}function eg(p,g){return jo(p,g,!0)}function Ry(p,g,R){return Nu(p,g,Tn(R,2),!0)}function sm(p,g){var R=p==null?0:p.length;if(R){var I=jo(p,g,!0)-1;if(jl(p[I],g))return I}return-1}function r1(p){return p&&p.length?Uc(p):[]}function ky(p,g){return p&&p.length?Uc(p,Tn(g,2)):[]}function Ay(p){var g=p==null?0:p.length;return g?ba(p,1,g):[]}function Nx(p,g,R){return p&&p.length?(g=R||g===n?1:jn(g),ba(p,0,g<0?0:g)):[]}function Lh(p,g,R){var I=p==null?0:p.length;return I?(g=R||g===n?1:jn(g),g=I-g,ba(p,g<0?0:g,I)):[]}function a1(p,g){return p&&p.length?hl(p,Tn(g,3),!1,!0):[]}function i1(p,g){return p&&p.length?hl(p,Tn(g,3)):[]}var wx=Jn(function(p){return Fi(as(p,1,Aa,!0))}),_x=Jn(function(p){var g=yl(p);return Aa(g)&&(g=n),Fi(as(p,1,Aa,!0),Tn(g,2))}),lm=Jn(function(p){var g=yl(p);return g=typeof g=="function"?g:n,Fi(as(p,1,Aa,!0),n,g)});function Oy(p){return p&&p.length?Fi(p):[]}function DC(p,g){return p&&p.length?Fi(p,Tn(g,2)):[]}function PC(p,g){return g=typeof g=="function"?g:n,p&&p.length?Fi(p,n,g):[]}function Mh(p){if(!(p&&p.length))return[];var g=0;return p=ns(p,function(R){if(Aa(R))return g=Ei(R.length,g),!0}),y0(g,function(R){return Ur(p,Cv(R))})}function Mf(p,g){if(!(p&&p.length))return[];var R=Mh(p);return g==null?R:Ur(R,function(I){return mn(g,n,I)})}var tg=Jn(function(p,g){return Aa(p)?Ti(p,g):[]}),o1=Jn(function(p){return Hv(ns(p,Aa))}),um=Jn(function(p){var g=yl(p);return Aa(g)&&(g=n),Hv(ns(p,Aa),Tn(g,2))}),Ly=Jn(function(p){var g=yl(p);return g=typeof g=="function"?g:n,Hv(ns(p,Aa),n,g)}),My=Jn(Mh);function cm(p,g){return z0(p||[],g||[],Iv)}function fm(p,g){return z0(p||[],g||[],vt)}var Ex=Jn(function(p){var g=p.length,R=g>1?p[g-1]:n;return R=typeof R=="function"?(p.pop(),R):n,Mf(p,R)});function s1(p){var g=Q(p);return g.__chain__=!0,g}function IC(p,g){return g(p),p}function ng(p,g){return g(p)}var Tx=gi(function(p){var g=p.length,R=g?p[0]:0,I=this.__wrapped__,Y=function(te){return bh(te,p)};return g>1||this.__actions__.length||!(I instanceof Rr)||!$l(R)?this.thru(Y):(I=I.slice(R,+R+(g?1:0)),I.__actions__.push({func:ng,args:[Y],thisArg:n}),new Dr(I,this.__chain__).thru(function(te){return g&&!te.length&&te.push(n),te}))});function rg(){return s1(this)}function fc(){return new Dr(this.value(),this.__chain__)}function l1(){this.__values__===n&&(this.__values__=jh(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function Rd(){return this}function Dh(p){for(var g,R=this;R instanceof _f;){var I=Z0(R);I.__index__=0,I.__values__=n,g?Y.__wrapped__=I:g=I;var Y=I;R=R.__wrapped__}return Y.__wrapped__=p,g}function FC(){var p=this.__wrapped__;if(p instanceof Rr){var g=p;return this.__actions__.length&&(g=new Rr(this)),g=g.reverse(),g.__actions__.push({func:ng,args:[om],thisArg:n}),new Dr(g,this.__chain__)}return this.thru(om)}function Df(){return F0(this.__wrapped__,this.__actions__)}var Ph=ca(function(p,g,R){ua.call(p,R)?++p[R]:fl(p,R,1)});function Rx(p,g,R){var I=lr(p)?al:L0;return R&&Ri(p,g,R)&&(g=n),I(p,Tn(g,3))}function u1(p,g){var R=lr(p)?ns:M0;return R(p,Tn(g,3))}var Bs=H0(xx),Co=H0(qv);function Yc(p,g){return as(Pf(p,g),1)}function No(p,g){return as(Pf(p,g),J)}function Go(p,g,R){return R=R===n?1:jn(R),as(Pf(p,g),R)}function ag(p,g){var R=lr(p)?In:Sd;return R(p,Tn(g,3))}function ig(p,g){var R=lr(p)?Qn:$p;return R(p,Tn(g,3))}var dm=ca(function(p,g,R){ua.call(p,R)?p[R].push(g):fl(p,R,[g])});function nn(p,g,R,I){p=ki(p)?p:Mu(p),R=R&&!I?jn(R):0;var Y=p.length;return R<0&&(R=Ei(Y+R,0)),b1(p)?R<=Y&&p.indexOf(g,R)>-1:!!Y&&dh(p,g,R)>-1}var og=Jn(function(p,g,R){var I=-1,Y=typeof g=="function",te=ki(p)?Be(p.length):[];return Sd(p,function(me){te[++I]=Y?mn(g,me,R):zv(me,g,R)}),te}),Dy=ca(function(p,g,R){fl(p,R,g)});function Pf(p,g){var R=lr(p)?Ur:fy;return R(p,Tn(g,3))}function Ih(p,g,R,I){return p==null?[]:(lr(g)||(g=g==null?[]:[g]),R=I?n:R,lr(R)||(R=R==null?[]:[R]),px(p,g,R))}var da=ca(function(p,g,R){p[R?0:1].push(g)},function(){return[[],[]]});function to(p,g,R){var I=lr(p)?Oc:b0,Y=arguments.length<3;return I(p,Tn(g,4),R,Y,Sd)}function wo(p,g,R){var I=lr(p)?Sv:b0,Y=arguments.length<3;return I(p,Tn(g,4),R,Y,$p)}function c1(p,g){var R=lr(p)?ns:M0;return R(p,$s(Tn(g,3)))}function hm(p){var g=lr(p)?ix:Rf;return g(p)}function If(p,g,R){(R?Ri(p,g,R):g===n)?g=1:g=jn(g);var I=lr(p)?yd:Uv;return I(p,g)}function sg(p){var g=lr(p)?ox:yh;return g(p)}function zC(p){if(p==null)return 0;if(ki(p))return b1(p)?xf(p):p.length;var g=fa(p);return g==De||g==Rn?p.size:uy(p).length}function it(p,g,R){var I=lr(p)?Yb:xd;return R&&Ri(p,g,R)&&(g=n),I(p,Tn(g,3))}var Ou=Jn(function(p,g){if(p==null)return[];var R=g.length;return R>1&&Ri(p,g[0],g[1])?g=[]:R>2&&Ri(g[0],g[1],g[2])&&(g=[g[0]]),px(p,as(g,1),[])}),Sl=Xu||function(){return Jt.Date.now()};function Py(p,g){if(typeof g!="function")throw new Bo(l);return p=jn(p),function(){if(--p<1)return g.apply(this,arguments)}}function Zr(p,g,R){return g=R?n:g,g=p&&g==null?p.length:g,cc(p,Z,n,n,n,n,g)}function Wt(p,g){var R;if(typeof g!="function")throw new Bo(l);return p=jn(p),function(){return--p>0&&(R=g.apply(this,arguments)),p<=1&&(g=n),R}}var Ff=Jn(function(p,g,R){var I=M;if(R.length){var Y=ld(R,Xp(Ff));I|=G}return cc(p,I,g,R,Y)}),Iy=Jn(function(p,g,R){var I=M|B;if(R.length){var Y=ld(R,Xp(Iy));I|=G}return cc(g,I,p,R,Y)});function os(p,g,R){g=R?n:g;var I=cc(p,z,n,n,n,n,n,g);return I.placeholder=os.placeholder,I}function f1(p,g,R){g=R?n:g;var I=cc(p,H,n,n,n,n,n,g);return I.placeholder=f1.placeholder,I}function Fh(p,g,R){var I,Y,te,me,fe,Re,at=0,st=!1,bt=!1,jt=!0;if(typeof p!="function")throw new Bo(l);g=Us(g)||0,Oa(R)&&(st=!!R.leading,bt="maxWait"in R,te=bt?Ei(Us(R.maxWait)||0,g):te,jt="trailing"in R?!!R.trailing:jt);function fn(si){var ya=I,bi=Y;return I=Y=n,at=si,me=p.apply(bi,ya),me}function Vn(si){return at=si,fe=Vc(Er,g),st?fn(si):me}function xr(si){var ya=si-Re,bi=si-at,cs=g-ya;return bt?Zi(cs,te-bi):cs}function Pn(si){var ya=si-Re,bi=si-at;return Re===n||ya>=g||ya<0||bt&&bi>=te}function Er(){var si=Sl();if(Pn(si))return Fr(si);fe=Vc(Er,xr(si))}function Fr(si){return fe=n,jt&&I?fn(si):(I=Y=n,me)}function ws(){fe!==n&&Gp(fe),at=0,I=Re=Y=fe=n}function Ka(){return fe===n?me:Fr(Sl())}function Vs(){var si=Sl(),ya=Pn(si);if(I=arguments,Y=this,Re=si,ya){if(fe===n)return Vn(Re);if(bt)return Gp(fe),fe=Vc(Er,g),fn(Re)}return fe===n&&(fe=Vc(Er,g)),me}return Vs.cancel=ws,Vs.flush=Ka,Vs}var pm=Jn(function(p,g){return sx(p,1,g)}),kx=Jn(function(p,g,R){return sx(p,Us(g)||0,R)});function Ax(p){return cc(p,ie)}function Hl(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new Bo(l);var R=function(){var I=arguments,Y=g?g.apply(this,I):I[0],te=R.cache;if(te.has(Y))return te.get(Y);var me=p.apply(this,I);return R.cache=te.set(Y,me)||te,me};return R.cache=new(Hl.Cache||Fc),R}Hl.Cache=Fc;function $s(p){if(typeof p!="function")throw new Bo(l);return function(){var g=arguments;switch(g.length){case 0:return!p.call(this);case 1:return!p.call(this,g[0]);case 2:return!p.call(this,g[0],g[1]);case 3:return!p.call(this,g[0],g[1],g[2])}return!p.apply(this,g)}}function Ox(p){return Wt(2,p)}var Fy=Vp(function(p,g){g=g.length==1&&lr(g[0])?Ur(g[0],Qr(Tn())):Ur(as(g,1),Qr(Tn()));var R=g.length;return Jn(function(I){for(var Y=-1,te=Zi(I.length,R);++Y<te;)I[Y]=g[Y].call(this,I[Y]);return mn(p,this,I)})}),ss=Jn(function(p,g){var R=ld(g,Xp(ss));return cc(p,G,n,g,R)}),kd=Jn(function(p,g){var R=ld(g,Xp(kd));return cc(p,K,n,g,R)}),d1=gi(function(p,g){return cc(p,ne,n,n,n,g)});function z_(p,g){if(typeof p!="function")throw new Bo(l);return g=g===n?g:jn(g),Jn(p,g)}function BC(p,g){if(typeof p!="function")throw new Bo(l);return g=g==null?0:Ei(jn(g),0),Jn(function(R){var I=R[g],Y=Hc(R,0,g);return I&&il(Y,I),mn(p,this,Y)})}function zy(p,g,R){var I=!0,Y=!0;if(typeof p!="function")throw new Bo(l);return Oa(R)&&(I="leading"in R?!!R.leading:I,Y="trailing"in R?!!R.trailing:Y),Fh(p,g,{leading:I,maxWait:g,trailing:Y})}function h1(p){return Zr(p,1)}function Lx(p,g){return ss(jp(g),p)}function By(){if(!arguments.length)return[];var p=arguments[0];return lr(p)?p:[p]}function $y(p){return rs(p,w)}function Mx(p,g){return g=typeof g=="function"?g:n,rs(p,w,g)}function Dx(p){return rs(p,S|w)}function lg(p,g){return g=typeof g=="function"?g:n,rs(p,S|w,g)}function ug(p,g){return g==null||go(p,g,Wo(g))}function jl(p,g){return p===g||p!==p&&g!==g}var cg=Ch(Ho),Uy=Ch(function(p,g){return p>=g}),qc=ly(function(){return arguments}())?ly:function(p){return qa(p)&&ua.call(p,"callee")&&!Mp.call(p,"callee")},lr=Be.isArray,p1=mt?Qr(mt):Bv;function ki(p){return p!=null&&$h(p.length)&&!Lu(p)}function Aa(p){return qa(p)&&ki(p)}function zh(p){return p===!0||p===!1||qa(p)&&Ji(p)==ut}var Vl=Dp||L1,Hy=Ze?Qr(Ze):vi;function m1(p){return qa(p)&&p.nodeType===1&&!Hh(p)}function jy(p){if(p==null)return!0;if(ki(p)&&(lr(p)||typeof p=="string"||typeof p.splice=="function"||Vl(p)||zf(p)||qc(p)))return!p.length;var g=fa(p);if(g==De||g==Rn)return!p.size;if(Eh(p))return!uy(p).length;for(var R in p)if(ua.call(p,R))return!1;return!0}function Vy(p,g){return $v(p,g)}function Bh(p,g,R){R=typeof R=="function"?R:n;var I=R?R(p,g):n;return I===n?$v(p,g,n,R):!!I}function Ad(p){if(!qa(p))return!1;var g=Ji(p);return g==pn||g==Qt||typeof p.message=="string"&&typeof p.name=="string"&&!Hh(p)}function mm(p){return typeof p=="number"&&w0(p)}function Lu(p){if(!Oa(p))return!1;var g=Ji(p);return g==ht||g==gn||g==Ut||g==fr}function Od(p){return typeof p=="number"&&p==jn(p)}function $h(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=he}function Oa(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function qa(p){return p!=null&&typeof p=="object"}var v1=Tt?Qr(Tt):TC;function Gy(p,g){return p===g||D0(p,g,_d(g))}function Wy(p,g,R){return R=typeof R=="function"?R:n,D0(p,g,_d(g),R)}function Ld(p){return Uh(p)&&p!=+p}function Yy(p){if(W0(p))throw new On(s);return Up(p)}function Px(p){return p===null}function Ix(p){return p==null}function Uh(p){return typeof p=="number"||qa(p)&&Ji(p)==kt}function Hh(p){if(!qa(p)||Ji(p)!=Pt)return!1;var g=Lp(p);if(g===null)return!0;var R=ua.call(g,"constructor")&&g.constructor;return typeof R=="function"&&R instanceof R&&Rv.call(R)==Ki}var vm=Xt?Qr(Xt):Hp;function g1(p){return Od(p)&&p>=-he&&p<=he}var qy=xn?Qr(xn):ux;function b1(p){return typeof p=="string"||!lr(p)&&qa(p)&&Ji(p)==wn}function Or(p){return typeof p=="symbol"||qa(p)&&Ji(p)==Ln}var zf=Hn?Qr(Hn):cx;function fg(p){return p===n}function gm(p){return qa(p)&&fa(p)==Ft}function dg(p){return qa(p)&&Ji(p)==er}var Ky=Ch(cy),y1=Ch(function(p,g){return p<=g});function jh(p){if(!p)return[];if(ki(p))return b1(p)?bu(p):Vo(p);if(yt&&p[yt])return Sf(p[yt]());var g=fa(p),R=g==De?wv:g==Rn?hh:Mu;return R(p)}function Kc(p){if(!p)return p===0?p:0;if(p=Us(p),p===J||p===-J){var g=p<0?-1:1;return g*ve}return p===p?p:0}function jn(p){var g=Kc(p),R=g%1;return g===g?R?g-R:g:0}function ls(p){return p?zc(jn(p),0,xe):0}function Us(p){if(typeof p=="number")return p;if(Or(p))return ye;if(Oa(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=Oa(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=sl(p);var R=hr.test(p);return R||Yi.test(p)?qe(p.slice(2),R?2:8):kr.test(p)?ye:+p}function hg(p){return xs(p,Ns(p))}function or(p){return p?zc(jn(p),-he,he):p===0?p:0}function Ir(p){return p==null?"":Ba(p)}var Hs=lc(function(p,g){if(Eh(g)||ki(g)){xs(g,Wo(g),p);return}for(var R in g)ua.call(g,R)&&Iv(p,R,g[R])}),Bf=lc(function(p,g){xs(g,Ns(g),p)}),dc=lc(function(p,g,R,I){xs(g,Ns(g),p,I)}),hc=lc(function(p,g,R,I){xs(g,Wo(g),p,I)}),S1=gi(bh);function Zc(p,g){var R=Xi(p);return g==null?R:O0(R,g)}var Md=Jn(function(p,g){p=sa(p);var R=-1,I=g.length,Y=I>2?g[2]:n;for(Y&&Ri(g[0],g[1],Y)&&(I=1);++R<I;)for(var te=g[R],me=Ns(te),fe=-1,Re=me.length;++fe<Re;){var at=me[fe],st=p[at];(st===n||jl(st,Cf[at])&&!ua.call(p,at))&&(p[at]=te[at])}return p}),x1=Jn(function(p){return p.push(n,Nd),mn(e2,n,p)});function Zy(p,g){return Kb(p,Tn(g,3),za)}function C1(p,g){return Kb(p,Tn(g,3),Yt)}function bm(p,g){return p==null?p:Qi(p,Tn(g,3),Ns)}function Xy(p,g){return p==null?p:Bc(p,Tn(g,3),Ns)}function ym(p,g){return p&&za(p,Tn(g,3))}function Qy(p,g){return p&&Yt(p,Tn(g,3))}function pg(p){return p==null?[]:dl(p,Wo(p))}function Xc(p){return p==null?[]:dl(p,Ns(p))}function mg(p,g,R){var I=p==null?n:is(p,g);return I===n?R:I}function Gl(p,g){return p!=null&&zl(p,g,en)}function Dd(p,g){return p!=null&&zl(p,g,$c)}var N1=Zp(function(p,g,R){g!=null&&typeof g.toString!="function"&&(g=Av.call(g)),p[g]=R},h2(Cl)),Vh=Zp(function(p,g,R){g!=null&&typeof g.toString!="function"&&(g=Av.call(g)),ua.call(p,g)?p[g].push(R):p[g]=[R]},Tn),Sm=Jn(zv);function Wo(p){return ki(p)?cl(p):uy(p)}function Ns(p){return ki(p)?cl(p,!0):RC(p)}function $C(p,g){var R={};return g=Tn(g,3),za(p,function(I,Y,te){fl(R,g(I,Y,te),I)}),R}function Fx(p,g){var R={};return g=Tn(g,3),za(p,function(I,Y,te){fl(R,Y,g(I,Y,te))}),R}var Jy=lc(function(p,g,R){P0(p,g,R)}),e2=lc(function(p,g,R,I){P0(p,g,R,I)}),UC=gi(function(p,g){var R={};if(p==null)return R;var I=!1;g=Ur(g,function(te){return te=_u(te,p),I||(I=te.length>1),te}),xs(p,Nh(p),R),I&&(R=rs(R,S|N|w,zn));for(var Y=g.length;Y--;)ic(R,g[Y]);return R});function HC(p,g){return t2(p,$s(Tn(g)))}var zx=gi(function(p,g){return p==null?{}:py(p,g)});function t2(p,g){if(p==null)return{};var R=Ur(Nh(p),function(I){return[I]});return g=Tn(g),Fn(p,R,function(I,Y){return g(I,Y[0])})}function n2(p,g,R){g=_u(g,p);var I=-1,Y=g.length;for(Y||(Y=1,p=n);++I<Y;){var te=p==null?n:p[zs(g[I])];te===n&&(I=Y,te=R),p=Lu(te)?te.call(p):te}return p}function r2(p,g,R){return p==null?p:vt(p,g,R)}function Gh(p,g,R,I){return I=typeof I=="function"?I:n,p==null?p:vt(p,g,R,I)}var xl=uc(Wo),w1=uc(Ns);function $f(p,g,R){var I=lr(p),Y=I||Vl(p)||zf(p);if(g=Tn(g,4),R==null){var te=p&&p.constructor;Y?R=I?new te:[]:Oa(p)?R=Lu(te)?Xi(Lp(p)):{}:R={}}return(Y?In:za)(p,function(me,fe,Re){return g(R,me,fe,Re)}),R}function Wh(p,g){return p==null?!0:ic(p,g)}function a2(p,g,R){return p==null?p:wu(p,g,jp(R))}function _1(p,g,R,I){return I=typeof I=="function"?I:n,p==null?p:wu(p,g,jp(R),I)}function Mu(p){return p==null?[]:gu(p,Wo(p))}function i2(p){return p==null?[]:gu(p,Ns(p))}function vg(p,g,R){return R===n&&(R=g,g=n),R!==n&&(R=Us(R),R=R===R?R:0),g!==n&&(g=Us(g),g=g===g?g:0),zc(Us(p),g,R)}function js(p,g,R){return g=Kc(g),R===n?(R=g,g=0):R=Kc(R),p=Us(p),Na(p,g,R)}function jC(p,g,R){if(R&&typeof R!="boolean"&&Ri(p,g,R)&&(g=R=n),R===n&&(typeof g=="boolean"?(R=g,g=n):typeof p=="boolean"&&(R=p,p=n)),p===n&&g===n?(p=0,g=1):(p=Kc(p),g===n?(g=p,p=0):g=Kc(g)),p>g){var I=p;p=g,g=I}if(R||p%1||g%1){var Y=R0();return Zi(p+Y*(g-p+se("1e-"+((Y+"").length-1))),g)}return Cu(p,g)}var o2=Cd(function(p,g,R){return g=g.toLowerCase(),p+(R?xm(g):g)});function xm(p){return Cg(Ir(p).toLowerCase())}function Cm(p){return p=Ir(p),p&&p.replace(Ra,QS).replace(_i,"")}function gg(p,g,R){p=Ir(p),g=Ba(g);var I=p.length;R=R===n?I:zc(jn(R),0,I);var Y=R;return R-=g.length,R>=0&&p.slice(R,Y)==g}function bg(p){return p=Ir(p),p&&Yr.test(p)?p.replace(rr,JS):p}function yg(p){return p=Ir(p),p&&Mo.test(p)?p.replace(ti,"\\$&"):p}var VC=Cd(function(p,g,R){return p+(R?"-":"")+g.toLowerCase()}),E1=Cd(function(p,g,R){return p+(R?" ":"")+g.toLowerCase()}),Sg=U0("toLowerCase");function Bx(p,g,R){p=Ir(p),g=jn(g);var I=g?xf(p):0;if(!g||I>=g)return p;var Y=(g-I)/2;return Tu(Nf(Y),R)+p+Tu($o(Y),R)}function s2(p,g,R){p=Ir(p),g=jn(g);var I=g?xf(p):0;return g&&I<g?p+Tu(g-I,R):p}function GC(p,g,R){p=Ir(p),g=jn(g);var I=g?xf(p):0;return g&&I<g?Tu(g-I,R)+p:p}function WC(p,g,R){return R||g==null?g=0:g&&(g=+g),T0(Ir(p).replace(Do,""),g||0)}function $x(p,g,R){return(R?Ri(p,g,R):g===n)?g=1:g=jn(g),my(Ir(p),g)}function YC(){var p=arguments,g=Ir(p[0]);return p.length<3?g:g.replace(p[1],p[2])}var qC=Cd(function(p,g,R){return p+(R?"_":"")+g.toLowerCase()});function KC(p,g,R){return R&&typeof R!="number"&&Ri(p,g,R)&&(g=R=n),R=R===n?xe:R>>>0,R?(p=Ir(p),p&&(typeof g=="string"||g!=null&&!vm(g))&&(g=Ba(g),!g&&sd(p))?Hc(bu(p),0,R):p.split(g,R)):[]}var ZC=Cd(function(p,g,R){return p+(R?" ":"")+Cg(g)});function l2(p,g,R){return p=Ir(p),R=R==null?0:zc(jn(R),0,p.length),g=Ba(g),p.slice(R,R+g.length)==g}function u2(p,g,R){var I=Q.templateSettings;R&&Ri(p,g,R)&&(g=n),p=Ir(p),g=dc({},g,I,Is);var Y=dc({},g.imports,I.imports,Is),te=Wo(Y),me=gu(Y,te),fe,Re,at=0,st=g.interpolate||gs,bt="__p += '",jt=ul((g.escape||gs).source+"|"+st.source+"|"+(st===lo?Kn:gs).source+"|"+(g.evaluate||gs).source+"|$","g"),fn="//# sourceURL="+(ua.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vu+"]")+`
`;p.replace(jt,function(Pn,Er,Fr,ws,Ka,Vs){return Fr||(Fr=ws),bt+=p.slice(at,Vs).replace(pu,Xb),Er&&(fe=!0,bt+=`' +
__e(`+Er+`) +
'`),Ka&&(Re=!0,bt+=`';
`+Ka+`;
__p += '`),Fr&&(bt+=`' +
((__t = (`+Fr+`)) == null ? '' : __t) +
'`),at=Vs+Pn.length,Pn}),bt+=`';
`;var Vn=ua.call(g,"variable")&&g.variable;if(!Vn)bt=`with (obj) {
`+bt+`
}
`;else if(_r.test(Vn))throw new On(f);bt=(Re?bt.replace(_t,""):bt).replace(kn,"$1").replace(Un,"$1;"),bt="function("+(Vn||"obj")+`) {
`+(Vn?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(Re?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+bt+`return __p
}`;var xr=jx(function(){return Tr(te,fn+"return "+bt).apply(n,me)});if(xr.source=bt,Ad(xr))throw xr;return xr}function c2(p){return Ir(p).toLowerCase()}function xg(p){return Ir(p).toUpperCase()}function XC(p,g,R){if(p=Ir(p),p&&(R||g===n))return sl(p);if(!p||!(g=Ba(g)))return p;var I=bu(p),Y=bu(g),te=Rp(I,Y),me=Zb(I,Y)+1;return Hc(I,te,me).join("")}function f2(p,g,R){if(p=Ir(p),p&&(R||g===n))return p.slice(0,Jb(p)+1);if(!p||!(g=Ba(g)))return p;var I=bu(p),Y=Zb(I,bu(g))+1;return Hc(I,0,Y).join("")}function Ux(p,g,R){if(p=Ir(p),p&&(R||g===n))return p.replace(Do,"");if(!p||!(g=Ba(g)))return p;var I=bu(p),Y=Rp(I,bu(g));return Hc(I,Y).join("")}function Hx(p,g){var R=le,I=oe;if(Oa(g)){var Y="separator"in g?g.separator:Y;R="length"in g?jn(g.length):R,I="omission"in g?Ba(g.omission):I}p=Ir(p);var te=p.length;if(sd(p)){var me=bu(p);te=me.length}if(R>=te)return p;var fe=R-xf(I);if(fe<1)return I;var Re=me?Hc(me,0,fe).join(""):p.slice(0,fe);if(Y===n)return Re+I;if(me&&(fe+=Re.length-fe),vm(Y)){if(p.slice(fe).search(Y)){var at,st=Re;for(Y.global||(Y=ul(Y.source,Ir(sr.exec(Y))+"g")),Y.lastIndex=0;at=Y.exec(st);)var bt=at.index;Re=Re.slice(0,bt===n?fe:bt)}}else if(p.indexOf(Ba(Y),fe)!=fe){var jt=Re.lastIndexOf(Y);jt>-1&&(Re=Re.slice(0,jt))}return Re+I}function d2(p){return p=Ir(p),p&&di.test(p)?p.replace(Gt,tx):p}var QC=Cd(function(p,g,R){return p+(R?" ":"")+g.toUpperCase()}),Cg=U0("toUpperCase");function T1(p,g,R){return p=Ir(p),g=R?n:g,g===n?Qb(p)?ey(p):qb(p):p.match(g)||[]}var jx=Jn(function(p,g){try{return mn(p,n,g)}catch(R){return Ad(R)?R:new On(R)}}),JC=gi(function(p,g){return In(g,function(R){R=zs(R),fl(p,R,Ff(p[R],p))}),p});function R1(p){var g=p==null?0:p.length,R=Tn();return p=g?Ur(p,function(I){if(typeof I[1]!="function")throw new Bo(l);return[R(I[0]),I[1]]}):[],Jn(function(I){for(var Y=-1;++Y<g;){var te=p[Y];if(mn(te[0],this,I))return mn(te[1],this,I)}})}function e4(p){return rc(rs(p,S))}function h2(p){return function(){return p}}function t4(p,g){return p==null||p!==p?g:p}var Vx=vx(),p2=vx(!0);function Cl(p){return p}function m2(p){return fx(typeof p=="function"?p:rs(p,S))}function n4(p){return dy(rs(p,S))}function Gx(p,g){return hy(p,rs(g,S))}var r4=Jn(function(p,g){return function(R){return zv(R,p,g)}}),v2=Jn(function(p,g){return function(R){return zv(p,R,g)}});function k1(p,g,R){var I=Wo(g),Y=dl(g,I);R==null&&!(Oa(g)&&(Y.length||!I.length))&&(R=g,g=p,p=this,Y=dl(g,Wo(g)));var te=!(Oa(R)&&"chain"in R)||!!R.chain,me=Lu(p);return In(Y,function(fe){var Re=g[fe];p[fe]=Re,me&&(p.prototype[fe]=function(){var at=this.__chain__;if(te||at){var st=p(this.__wrapped__),bt=st.__actions__=Vo(this.__actions__);return bt.push({func:Re,args:arguments,thisArg:p}),st.__chain__=at,st}return Re.apply(p,il([this.value()],arguments))})}),p}function a4(){return Jt._===this&&(Jt._=ny),this}function A1(){}function Wx(p){return p=jn(p),Jn(function(g){return hx(g,p)})}var O1=V0(Ur),i4=V0(al),Ng=V0(Yb);function Pd(p){return _h(p)?Cv(zs(p)):Pr(p)}function Wl(p){return function(g){return p==null?n:is(p,g)}}var o4=yo(),g2=yo(!0);function b2(){return[]}function L1(){return!1}function Qc(){return{}}function Yx(){return""}function qx(){return!0}function Nm(p,g){if(p=jn(p),p<1||p>he)return[];var R=xe,I=Zi(p,xe);g=Tn(g),p-=xe;for(var Y=y0(I,g);++R<p;)g(R);return Y}function wg(p){return lr(p)?Ur(p,zs):Or(p)?[p]:Vo(rm(Ir(p)))}function M1(p){var g=++kv;return Ir(p)+g}var D1=j0(function(p,g){return p+g},0),Kx=Of("ceil"),_g=j0(function(p,g){return p/g},1),us=Of("floor");function s4(p){return p&&p.length?ac(p,Cl,Ho):n}function Zx(p,g){return p&&p.length?ac(p,Tn(g,2),Ho):n}function l4(p){return XS(p,Cl)}function Xx(p,g){return XS(p,Tn(g,2))}function Qx(p){return p&&p.length?ac(p,Cl,cy):n}function Jx(p,g){return p&&p.length?ac(p,Tn(g,2),cy):n}var y2=j0(function(p,g){return p*g},1),u4=Of("round"),Eg=j0(function(p,g){return p-g},0);function P1(p){return p&&p.length?Tp(p,Cl):0}function wm(p,g){return p&&p.length?Tp(p,Tn(g,2)):0}return Q.after=Py,Q.ary=Zr,Q.assign=Hs,Q.assignIn=Bf,Q.assignInWith=dc,Q.assignWith=hc,Q.at=S1,Q.before=Wt,Q.bind=Ff,Q.bindAll=JC,Q.bindKey=Iy,Q.castArray=By,Q.chain=s1,Q.chunk=Th,Q.compact=X0,Q.concat=Q0,Q.cond=R1,Q.conforms=e4,Q.constant=h2,Q.countBy=Ph,Q.create=Zc,Q.curry=os,Q.curryRight=f1,Q.debounce=Fh,Q.defaults=Md,Q.defaultsDeep=x1,Q.defer=pm,Q.delay=kx,Q.difference=Rh,Q.differenceBy=am,Q.differenceWith=bl,Q.drop=Wc,Q.dropRight=Yv,Q.dropRightWhile=yy,Q.dropWhile=MC,Q.fill=J0,Q.filter=u1,Q.flatMap=Yc,Q.flatMapDeep=No,Q.flatMapDepth=Go,Q.flatten=Kv,Q.flattenDeep=Zv,Q.flattenDepth=Xv,Q.flip=Ax,Q.flow=Vx,Q.flowRight=p2,Q.fromPairs=Sy,Q.functions=pg,Q.functionsIn=Xc,Q.groupBy=dm,Q.initial=Cy,Q.intersection=Ny,Q.intersectionBy=kh,Q.intersectionWith=t1,Q.invert=N1,Q.invertBy=Vh,Q.invokeMap=og,Q.iteratee=m2,Q.keyBy=Dy,Q.keys=Wo,Q.keysIn=Ns,Q.map=Pf,Q.mapKeys=$C,Q.mapValues=Fx,Q.matches=n4,Q.matchesProperty=Gx,Q.memoize=Hl,Q.merge=Jy,Q.mergeWith=e2,Q.method=r4,Q.methodOf=v2,Q.mixin=k1,Q.negate=$s,Q.nthArg=Wx,Q.omit=UC,Q.omitBy=HC,Q.once=Ox,Q.orderBy=Ih,Q.over=O1,Q.overArgs=Fy,Q.overEvery=i4,Q.overSome=Ng,Q.partial=ss,Q.partialRight=kd,Q.partition=da,Q.pick=zx,Q.pickBy=t2,Q.property=Pd,Q.propertyOf=Wl,Q.pull=_y,Q.pullAll=Ah,Q.pullAllBy=im,Q.pullAllWith=Ey,Q.pullAt=Ul,Q.range=o4,Q.rangeRight=g2,Q.rearg=d1,Q.reject=c1,Q.remove=Oh,Q.rest=z_,Q.reverse=om,Q.sampleSize=If,Q.set=r2,Q.setWith=Gh,Q.shuffle=sg,Q.slice=Qv,Q.sortBy=Ou,Q.sortedUniq=r1,Q.sortedUniqBy=ky,Q.split=KC,Q.spread=BC,Q.tail=Ay,Q.take=Nx,Q.takeRight=Lh,Q.takeRightWhile=a1,Q.takeWhile=i1,Q.tap=IC,Q.throttle=zy,Q.thru=ng,Q.toArray=jh,Q.toPairs=xl,Q.toPairsIn=w1,Q.toPath=wg,Q.toPlainObject=hg,Q.transform=$f,Q.unary=h1,Q.union=wx,Q.unionBy=_x,Q.unionWith=lm,Q.uniq=Oy,Q.uniqBy=DC,Q.uniqWith=PC,Q.unset=Wh,Q.unzip=Mh,Q.unzipWith=Mf,Q.update=a2,Q.updateWith=_1,Q.values=Mu,Q.valuesIn=i2,Q.without=tg,Q.words=T1,Q.wrap=Lx,Q.xor=o1,Q.xorBy=um,Q.xorWith=Ly,Q.zip=My,Q.zipObject=cm,Q.zipObjectDeep=fm,Q.zipWith=Ex,Q.entries=xl,Q.entriesIn=w1,Q.extend=Bf,Q.extendWith=dc,k1(Q,Q),Q.add=D1,Q.attempt=jx,Q.camelCase=o2,Q.capitalize=xm,Q.ceil=Kx,Q.clamp=vg,Q.clone=$y,Q.cloneDeep=Dx,Q.cloneDeepWith=lg,Q.cloneWith=Mx,Q.conformsTo=ug,Q.deburr=Cm,Q.defaultTo=t4,Q.divide=_g,Q.endsWith=gg,Q.eq=jl,Q.escape=bg,Q.escapeRegExp=yg,Q.every=Rx,Q.find=Bs,Q.findIndex=xx,Q.findKey=Zy,Q.findLast=Co,Q.findLastIndex=qv,Q.findLastKey=C1,Q.floor=us,Q.forEach=ag,Q.forEachRight=ig,Q.forIn=bm,Q.forInRight=Xy,Q.forOwn=ym,Q.forOwnRight=Qy,Q.get=mg,Q.gt=cg,Q.gte=Uy,Q.has=Gl,Q.hasIn=Dd,Q.head=e1,Q.identity=Cl,Q.includes=nn,Q.indexOf=xy,Q.inRange=js,Q.invoke=Sm,Q.isArguments=qc,Q.isArray=lr,Q.isArrayBuffer=p1,Q.isArrayLike=ki,Q.isArrayLikeObject=Aa,Q.isBoolean=zh,Q.isBuffer=Vl,Q.isDate=Hy,Q.isElement=m1,Q.isEmpty=jy,Q.isEqual=Vy,Q.isEqualWith=Bh,Q.isError=Ad,Q.isFinite=mm,Q.isFunction=Lu,Q.isInteger=Od,Q.isLength=$h,Q.isMap=v1,Q.isMatch=Gy,Q.isMatchWith=Wy,Q.isNaN=Ld,Q.isNative=Yy,Q.isNil=Ix,Q.isNull=Px,Q.isNumber=Uh,Q.isObject=Oa,Q.isObjectLike=qa,Q.isPlainObject=Hh,Q.isRegExp=vm,Q.isSafeInteger=g1,Q.isSet=qy,Q.isString=b1,Q.isSymbol=Or,Q.isTypedArray=zf,Q.isUndefined=fg,Q.isWeakMap=gm,Q.isWeakSet=dg,Q.join=Td,Q.kebabCase=VC,Q.last=yl,Q.lastIndexOf=wy,Q.lowerCase=E1,Q.lowerFirst=Sg,Q.lt=Ky,Q.lte=y1,Q.max=s4,Q.maxBy=Zx,Q.mean=l4,Q.meanBy=Xx,Q.min=Qx,Q.minBy=Jx,Q.stubArray=b2,Q.stubFalse=L1,Q.stubObject=Qc,Q.stubString=Yx,Q.stubTrue=qx,Q.multiply=y2,Q.nth=n1,Q.noConflict=a4,Q.noop=A1,Q.now=Sl,Q.pad=Bx,Q.padEnd=s2,Q.padStart=GC,Q.parseInt=WC,Q.random=jC,Q.reduce=to,Q.reduceRight=wo,Q.repeat=$x,Q.replace=YC,Q.result=n2,Q.round=u4,Q.runInContext=Ee,Q.sample=hm,Q.size=zC,Q.snakeCase=qC,Q.some=it,Q.sortedIndex=Cx,Q.sortedIndexBy=Jv,Q.sortedIndexOf=Ty,Q.sortedLastIndex=eg,Q.sortedLastIndexBy=Ry,Q.sortedLastIndexOf=sm,Q.startCase=ZC,Q.startsWith=l2,Q.subtract=Eg,Q.sum=P1,Q.sumBy=wm,Q.template=u2,Q.times=Nm,Q.toFinite=Kc,Q.toInteger=jn,Q.toLength=ls,Q.toLower=c2,Q.toNumber=Us,Q.toSafeInteger=or,Q.toString=Ir,Q.toUpper=xg,Q.trim=XC,Q.trimEnd=f2,Q.trimStart=Ux,Q.truncate=Hx,Q.unescape=d2,Q.uniqueId=M1,Q.upperCase=QC,Q.upperFirst=Cg,Q.each=ag,Q.eachRight=ig,Q.first=e1,k1(Q,function(){var p={};return za(Q,function(g,R){ua.call(Q.prototype,R)||(p[R]=g)}),p}(),{chain:!1}),Q.VERSION=r,In(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){Q[p].placeholder=Q}),In(["drop","take"],function(p,g){Rr.prototype[p]=function(R){R=R===n?1:Ei(jn(R),0);var I=this.__filtered__&&!g?new Rr(this):this.clone();return I.__filtered__?I.__takeCount__=Zi(R,I.__takeCount__):I.__views__.push({size:Zi(R,xe),type:p+(I.__dir__<0?"Right":"")}),I},Rr.prototype[p+"Right"]=function(R){return this.reverse()[p](R).reverse()}}),In(["filter","map","takeWhile"],function(p,g){var R=g+1,I=R==Se||R==_e;Rr.prototype[p]=function(Y){var te=this.clone();return te.__iteratees__.push({iteratee:Tn(Y,3),type:R}),te.__filtered__=te.__filtered__||I,te}}),In(["head","last"],function(p,g){var R="take"+(g?"Right":"");Rr.prototype[p]=function(){return this[R](1).value()[0]}}),In(["initial","tail"],function(p,g){var R="drop"+(g?"":"Right");Rr.prototype[p]=function(){return this.__filtered__?new Rr(this):this[R](1)}}),Rr.prototype.compact=function(){return this.filter(Cl)},Rr.prototype.find=function(p){return this.filter(p).head()},Rr.prototype.findLast=function(p){return this.reverse().find(p)},Rr.prototype.invokeMap=Jn(function(p,g){return typeof p=="function"?new Rr(this):this.map(function(R){return zv(R,p,g)})}),Rr.prototype.reject=function(p){return this.filter($s(Tn(p)))},Rr.prototype.slice=function(p,g){p=jn(p);var R=this;return R.__filtered__&&(p>0||g<0)?new Rr(R):(p<0?R=R.takeRight(-p):p&&(R=R.drop(p)),g!==n&&(g=jn(g),R=g<0?R.dropRight(-g):R.take(g-p)),R)},Rr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Rr.prototype.toArray=function(){return this.take(xe)},za(Rr.prototype,function(p,g){var R=/^(?:filter|find|map|reject)|While$/.test(g),I=/^(?:head|last)$/.test(g),Y=Q[I?"take"+(g=="last"?"Right":""):g],te=I||/^find/.test(g);!Y||(Q.prototype[g]=function(){var me=this.__wrapped__,fe=I?[1]:arguments,Re=me instanceof Rr,at=fe[0],st=Re||lr(me),bt=function(Er){var Fr=Y.apply(Q,il([Er],fe));return I&&jt?Fr[0]:Fr};st&&R&&typeof at=="function"&&at.length!=1&&(Re=st=!1);var jt=this.__chain__,fn=!!this.__actions__.length,Vn=te&&!jt,xr=Re&&!fn;if(!te&&st){me=xr?me:new Rr(this);var Pn=p.apply(me,fe);return Pn.__actions__.push({func:ng,args:[bt],thisArg:n}),new Dr(Pn,jt)}return Vn&&xr?p.apply(this,fe):(Pn=this.thru(bt),Vn?I?Pn.value()[0]:Pn.value():Pn)})}),In(["pop","push","shift","sort","splice","unshift"],function(p){var g=yu[p],R=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",I=/^(?:pop|shift)$/.test(p);Q.prototype[p]=function(){var Y=arguments;if(I&&!this.__chain__){var te=this.value();return g.apply(lr(te)?te:[],Y)}return this[R](function(me){return g.apply(lr(me)?me:[],Y)})}}),za(Rr.prototype,function(p,g){var R=Q[g];if(R){var I=R.name+"";ua.call(Ju,I)||(Ju[I]=[]),Ju[I].push({name:g,func:R})}}),Ju[xh(n,B).name]=[{name:"wrapper",func:n}],Rr.prototype.clone=Dn,Rr.prototype.reverse=Pc,Rr.prototype.value=mi,Q.prototype.at=Tx,Q.prototype.chain=rg,Q.prototype.commit=fc,Q.prototype.next=l1,Q.prototype.plant=Dh,Q.prototype.reverse=FC,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=Df,Q.prototype.first=Q.prototype.head,yt&&(Q.prototype[yt]=Rd),Q},ll=x0();j?((j.exports=ll)._=ll,k._=ll):Jt._=ll}).call(Jg)})(id,id.exports);const ra=id.exports;var q8=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function K8(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function gq(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function bq(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function S3e(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var rD={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":q8?173:189,"=":q8?61:187,";":q8?59:186,"'":222,"[":219,"]":221,"\\":220},Ib={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},dO={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},fu={16:!1,18:!1,17:!1,91:!1},ks={};for(var dT=1;dT<20;dT++)rD["f".concat(dT)]=111+dT;var io=[],N$=!1,yq="all",Sq=[],v7=function(t){return rD[t.toLowerCase()]||Ib[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function xq(e){yq=e||"all"}function e_(){return yq||"all"}function x3e(){return io.slice(0)}function C3e(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function N3e(e){return typeof e=="string"&&(e=v7(e)),io.indexOf(e)!==-1}function w3e(e,t){var n,r;e||(e=e_());for(var i in ks)if(Object.prototype.hasOwnProperty.call(ks,i))for(n=ks[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;e_()===e&&xq(t||"all")}function _3e(e){var t=e.keyCode||e.which||e.charCode,n=io.indexOf(t);if(n>=0&&io.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&io.splice(0,io.length),(t===93||t===224)&&(t=91),t in fu){fu[t]=!1;for(var r in Ib)Ib[r]===t&&(Jf[r]=!1)}}function E3e(e){if(typeof e>"u")Object.keys(ks).forEach(function(l){return delete ks[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&Z8(l)});else if(typeof e=="object")e.key&&Z8(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),Z8({key:e,scope:i,method:s,splitKey:"+"})}}var Z8=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,l=s===void 0?"+":s,f=bq(n);f.forEach(function(d){var m=d.split(l),b=m.length,S=m[b-1],N=S==="*"?"*":v7(S);if(!!ks[N]){r||(r=e_());var w=b>1?gq(Ib,m):[];ks[N]=ks[N].filter(function(T){var L=i?T.method===i:!0;return!(L&&T.scope===r&&S3e(T.mods,w))})}})};function w$(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in fu)Object.prototype.hasOwnProperty.call(fu,s)&&(!fu[s]&&t.mods.indexOf(+s)>-1||fu[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!fu[16]&&!fu[18]&&!fu[17]&&!fu[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function _$(e,t){var n=ks["*"],r=e.keyCode||e.which||e.charCode;if(!!Jf.filter.call(this,e)){if((r===93||r===224)&&(r=91),io.indexOf(r)===-1&&r!==229&&io.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(T){var L=dO[T];e[T]&&io.indexOf(L)===-1?io.push(L):!e[T]&&io.indexOf(L)>-1?io.splice(io.indexOf(L),1):T==="metaKey"&&e[T]&&io.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(io=io.slice(io.indexOf(L))))}),r in fu){fu[r]=!0;for(var i in Ib)Ib[i]===r&&(Jf[i]=!0);if(!n)return}for(var s in fu)Object.prototype.hasOwnProperty.call(fu,s)&&(fu[s]=e[dO[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(io.indexOf(17)===-1&&io.push(17),io.indexOf(18)===-1&&io.push(18),fu[17]=!0,fu[18]=!0);var l=e_();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&w$(e,n[f],l,t);if(r in ks){for(var d=0;d<ks[r].length;d++)if((e.type==="keydown"&&ks[r][d].keydown||e.type==="keyup"&&ks[r][d].keyup)&&ks[r][d].key){for(var m=ks[r][d],b=m.splitKey,S=m.key.split(b),N=[],w=0;w<S.length;w++)N.push(v7(S[w]));N.sort().join("")===io.sort().join("")&&w$(e,m,l,t)}}}}function T3e(e){return Sq.indexOf(e)>-1}function Jf(e,t,n){io=[];var r=bq(e),i=[],s="all",l=document,f=0,d=!1,m=!0,b="+",S=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(b=t.splitKey)),typeof t=="string"&&(s=t);f<r.length;f++)e=r[f].split(b),i=[],e.length>1&&(i=gq(Ib,e)),e=e[e.length-1],e=e==="*"?"*":v7(e),e in ks||(ks[e]=[]),ks[e].push({keyup:d,keydown:m,scope:s,mods:i,shortcut:r[f],method:n,key:r[f],splitKey:b,element:l});typeof l<"u"&&!T3e(l)&&window&&(Sq.push(l),K8(l,"keydown",function(N){_$(N,l)},S),N$||(N$=!0,K8(window,"focus",function(){io=[]},S)),K8(l,"keyup",function(N){_$(N,l),_3e(N)},S))}function R3e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ks).forEach(function(n){var r=ks[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var X8={setScope:xq,getScope:e_,deleteScope:w3e,getPressedKeyCodes:x3e,isPressed:N3e,filter:C3e,trigger:R3e,unbind:E3e,keyMap:rD,modifier:Ib,modifierMap:dO};for(var Q8 in X8)Object.prototype.hasOwnProperty.call(X8,Q8)&&(Jf[Q8]=X8[Q8]);if(typeof window<"u"){var k3e=window.hotkeys;Jf.noConflict=function(e){return e&&window.hotkeys===Jf&&(window.hotkeys=k3e),Jf},window.hotkeys=Jf}Jf.filter=function(){return!0};var Cq=function(t,n){var r=t.target,i=r&&r.tagName;return Boolean(i&&n&&n.includes(i))},A3e=function(t){return Cq(t,["INPUT","TEXTAREA","SELECT"])};function $r(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,l=i.filter,f=i.keyup,d=i.keydown,m=i.filterPreventDefault,b=m===void 0?!0:m,S=i.enabled,N=S===void 0?!0:S,w=i.enableOnContentEditable,T=w===void 0?!1:w,L=O.exports.useRef(null),M=O.exports.useCallback(function(B,F){var z,H;return l&&!l(B)?!b:A3e(B)&&!Cq(B,s)||(z=B.target)!=null&&z.isContentEditable&&!T?!0:L.current===null||document.activeElement===L.current||(H=L.current)!=null&&H.contains(document.activeElement)?(t(B,F),!0):!1},r?[L,s,l].concat(r):[L,s,l]);return O.exports.useEffect(function(){if(!N){Jf.unbind(e,M);return}return f&&d!==!0&&(n.keydown=!1),Jf(e,n||{},M),function(){return Jf.unbind(e,M)}},[M,e,N]),L}Jf.isPressed;var J8="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/NodesWIP.tsx";function O3e(){return _("div",{className:"work-in-progress nodes-work-in-progress",children:[_("h1",{children:"Nodes"},void 0,!1,{fileName:J8,lineNumber:6,columnNumber:7},this),_("p",{children:"A node based system for the generation of images is under development currently. Stay tuned for updates about this amazing feature."},void 0,!1,{fileName:J8,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:J8,lineNumber:5,columnNumber:5},this)}var ek="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/OutpaintingWIP.tsx";function L3e(){return _("div",{className:"work-in-progress outpainting-work-in-progress",children:[_("h1",{children:"Outpainting"},void 0,!1,{fileName:ek,lineNumber:6,columnNumber:7},this),_("p",{children:"Outpainting is available as a part of the Invoke AI Command Line Interface. A dedicated WebUI interface will be released in the near future."},void 0,!1,{fileName:ek,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:ek,lineNumber:5,columnNumber:5},this)}var LN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/PostProcessingWIP.tsx";const M3e=()=>_("div",{className:"work-in-progress post-processing-work-in-progress",children:[_("h1",{children:"Post Processing"},void 0,!1,{fileName:LN,lineNumber:6,columnNumber:7},void 0),_("p",{children:"Invoke AI offers a wide variety of post processing features. Image Upscaling and Face Restoration are already available in the WebUI. You can access them from the Advanced Options menu of the Text To Image and Image To Image tabs. You can also process images directly, using the image action buttons above the main image display."},void 0,!1,{fileName:LN,lineNumber:7,columnNumber:7},void 0),_("p",{children:"A dedicated UI will be released soon to facilitate more advanced post processing workflows."},void 0,!1,{fileName:LN,lineNumber:14,columnNumber:7},void 0),_("p",{children:"The Invoke AI Command Line Interface offers various other features including Embiggen."},void 0,!1,{fileName:LN,lineNumber:18,columnNumber:7},void 0)]},void 0,!0,{fileName:LN,lineNumber:5,columnNumber:5},void 0);var E$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/ImageToImageIcon.tsx";const D3e=fC({displayName:"ImageToImageIcon",viewBox:"0 0 3543 3543",path:_("g",{transform:"matrix(1.10943,0,0,1.10943,-206.981,-213.533)",children:_("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M688.533,2405.95L542.987,2405.95C349.532,2405.95 192.47,2248.89 192.47,2055.44L192.47,542.987C192.47,349.532 349.532,192.47 542.987,192.47L2527.88,192.47C2721.33,192.47 2878.4,349.532 2878.4,542.987L2878.4,1172.79L3023.94,1172.79C3217.4,1172.79 3374.46,1329.85 3374.46,1523.3C3374.46,1523.3 3374.46,3035.75 3374.46,3035.75C3374.46,3229.21 3217.4,3386.27 3023.94,3386.27L1039.05,3386.27C845.595,3386.27 688.533,3229.21 688.533,3035.75L688.533,2405.95ZM3286.96,2634.37L3286.96,1523.3C3286.96,1378.14 3169.11,1260.29 3023.94,1260.29C3023.94,1260.29 1039.05,1260.29 1039.05,1260.29C893.887,1260.29 776.033,1378.14 776.033,1523.3L776.033,2489.79L1440.94,1736.22L2385.83,2775.59L2880.71,2200.41L3286.96,2634.37ZM2622.05,1405.51C2778.5,1405.51 2905.51,1532.53 2905.51,1688.98C2905.51,1845.42 2778.5,1972.44 2622.05,1972.44C2465.6,1972.44 2338.58,1845.42 2338.58,1688.98C2338.58,1532.53 2465.6,1405.51 2622.05,1405.51ZM2790.9,1172.79L1323.86,1172.79L944.882,755.906L279.97,1509.47L279.97,542.987C279.97,397.824 397.824,279.97 542.987,279.97C542.987,279.97 2527.88,279.97 2527.88,279.97C2673.04,279.97 2790.9,397.824 2790.9,542.987L2790.9,1172.79ZM2125.98,425.197C2282.43,425.197 2409.45,552.213 2409.45,708.661C2409.45,865.11 2282.43,992.126 2125.98,992.126C1969.54,992.126 1842.52,865.11 1842.52,708.661C1842.52,552.213 1969.54,425.197 2125.98,425.197Z"},void 0,!1,{fileName:E$,lineNumber:8,columnNumber:7},void 0)},void 0,!1,{fileName:E$,lineNumber:7,columnNumber:5},void 0)});var P3e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/InpaintIcon.tsx";const I3e=fC({displayName:"InpaintIcon",viewBox:"0 0 3543 3543",path:_("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,768.593C3543.31,517.323 3339.31,313.324 3088.04,313.324L455.269,313.324C203.999,313.324 0,517.323 0,768.593C0,768.593 0,2774.71 0,2774.71C0,3025.98 203.999,3229.98 455.269,3229.98L3088.04,3229.98C3339.31,3229.98 3543.31,3025.98 3543.31,2774.71C3543.31,2774.71 3543.31,768.593 3543.31,768.593ZM3446.56,2252.63L3446.56,768.593C3446.56,570.718 3285.91,410.068 3088.04,410.068C3088.04,410.068 455.269,410.068 455.269,410.068C257.394,410.068 96.745,570.718 96.745,768.593L96.745,2061.49L988.344,1051.01L1326.63,1423.12C1281.74,1438.3 1227.39,1454.93 1158.26,1480.89C995.738,1541.9 944.356,1613.28 911.834,1718.7C884.979,1805.76 875.814,1922.93 811.322,2093.5C763.918,2218.87 765.18,2304.83 790.606,2364.87C817.014,2427.22 869.858,2467.73 941.71,2493.83C1023.86,2523.67 1134.43,2534.25 1242.45,2557.97C1365.72,2585.04 1455.23,2643.2 1532.76,2665.96C1587.03,2681.89 1637.04,2683.6 1686.56,2663.56C1731.54,2645.36 1777.95,2607.64 1825.43,2535.92C1874.9,2461.2 1979.98,2369.94 2102.8,2276.91L2241.64,2429.63L2739.91,1850.53C2754.47,1841.35 2767.47,1833.12 2778.66,1825.94C2832.6,1791.35 2866.82,1742.41 2884.38,1682.61L2898.06,1666.72L3446.56,2252.63ZM1680.71,2559.9C1666.7,2570.37 1652.86,2577.22 1638.81,2580.95L1610.62,2588.45L1625.61,2644.82L1653.8,2637.33C1674.48,2631.83 1695.02,2622.04 1715.64,2606.61L1739,2589.14L1704.06,2542.43L1680.71,2559.9ZM1541.62,2570.42C1524.94,2564.58 1507.63,2557.37 1489.49,2549.48L1462.75,2537.84L1439.48,2591.33L1466.22,2602.97C1485.74,2611.46 1504.38,2619.18 1522.33,2625.47L1549.86,2635.12L1569.15,2580.07L1541.62,2570.42ZM1381.21,2503.1C1363.08,2496.04 1344.17,2489.24 1324.38,2483.03L1296.55,2474.29L1279.07,2529.94L1306.9,2538.68C1325.41,2544.49 1343.09,2550.86 1360.05,2557.46L1387.23,2568.04L1408.39,2513.68L1381.21,2503.1ZM1788.46,2430.83C1773.91,2447.61 1761.19,2463.86 1750.55,2479.44L1734.09,2503.52L1782.25,2536.43L1798.71,2512.35C1808.2,2498.46 1819.56,2484 1832.53,2469.04L1851.64,2447.01L1807.57,2408.79L1788.46,2430.83ZM1262.54,2466.49C1243.17,2462.24 1223.71,2458.43 1204.35,2454.87L1175.67,2449.6L1165.12,2506.97L1193.81,2512.24C1212.52,2515.68 1231.32,2519.35 1250.03,2523.46L1278.52,2529.72L1291.03,2472.74L1262.54,2466.49ZM1089.5,2434.66C1070.28,2431.1 1051.6,2427.35 1033.72,2423.15L1005.32,2416.49L992.002,2473.28L1020.4,2479.94C1039.14,2484.34 1058.71,2488.28 1078.86,2492.02L1107.54,2497.34L1118.18,2439.99L1089.5,2434.66ZM932.182,2386.94C917.545,2378.53 904.788,2368.71 894.532,2356.8L875.504,2334.69L831.294,2372.75L850.322,2394.85C864.755,2411.62 882.513,2425.67 903.11,2437.51L928.396,2452.05L957.469,2401.48L932.182,2386.94ZM1917.04,2306.1C1901.59,2319.37 1886.77,2332.5 1872.67,2345.44L1851.18,2365.17L1890.64,2408.14L1912.12,2388.41C1925.76,2375.89 1940.1,2363.19 1955.04,2350.36L1977.17,2331.36L1939.17,2287.1L1917.04,2306.1ZM866.485,2267.79C866.715,2251.85 868.706,2234.39 872.54,2215.21L878.257,2186.61L821.055,2175.17L815.338,2203.77C810.733,2226.81 808.434,2247.8 808.158,2266.94L807.737,2296.11L866.064,2296.95L866.485,2267.79ZM2055.08,2195.63C2039.24,2207.6 2023.66,2219.55 2008.43,2231.46L1985.45,2249.43L2021.38,2295.38L2044.36,2277.42C2059.34,2265.7 2074.66,2253.95 2090.23,2242.18L2113.51,2224.61L2078.35,2178.06L2055.08,2195.63ZM2197.62,2092.3C2181.57,2103.52 2165.6,2114.82 2149.74,2126.16L2126.02,2143.12L2159.95,2190.57L2183.67,2173.61C2199.36,2162.38 2215.18,2151.21 2231.05,2140.1L2254.95,2123.38L2221.52,2075.58L2197.62,2092.3ZM905.788,2108.14C912.858,2088.7 919.236,2069.96 925.03,2051.88L933.93,2024.1L878.378,2006.3L869.478,2034.08C863.905,2051.47 857.769,2069.5 850.968,2088.2L840.998,2115.61L895.817,2135.55L905.788,2108.14ZM2342.87,1993.45C2326.76,2004.15 2310.52,2015.01 2294.22,2026L2270.04,2042.31L2302.65,2090.67L2326.83,2074.37C2343.01,2063.45 2359.14,2052.67 2375.14,2042.04L2399.44,2025.91L2367.17,1977.31L2342.87,1993.45ZM2489.92,1897.67C2473.88,1907.94 2457.46,1918.5 2440.74,1929.32L2416.26,1945.16L2447.95,1994.14L2472.44,1978.29C2489.07,1967.53 2505.41,1957.02 2521.37,1946.8L2545.93,1931.07L2514.48,1881.94L2489.92,1897.67ZM956.972,1937.49C961.849,1917.31 966.133,1898.15 970.079,1879.93L976.253,1851.43L919.241,1839.08L913.067,1867.59C909.215,1885.38 905.033,1904.08 900.271,1923.79L893.42,1952.13L950.121,1965.84L956.972,1937.49ZM2638.01,1803.95C2622.5,1813.69 2605.98,1824.08 2588.59,1835.04L2563.91,1850.59L2595.02,1899.94L2619.69,1884.38C2637.05,1873.44 2653.55,1863.08 2669.03,1853.35L2693.73,1837.84L2662.71,1788.44L2638.01,1803.95ZM2769.59,1708.14C2760.26,1721.07 2748.81,1732.54 2735.03,1742.4L2711.31,1759.37L2745.25,1806.81L2768.97,1789.84C2788.08,1776.17 2803.93,1760.22 2816.88,1742.3L2833.95,1718.65L2786.67,1684.5L2769.59,1708.14ZM995.304,1767.43C1000.24,1748.86 1005.64,1731.66 1012.23,1715.62L1023.31,1688.64L969.359,1666.47L958.273,1693.45C950.767,1711.72 944.551,1731.29 938.928,1752.44L931.436,1780.63L987.812,1795.62L995.304,1767.43ZM1071.42,1633.09C1083.85,1622.63 1098.26,1612.75 1115.07,1603.23L1140.45,1588.86L1111.71,1538.1L1086.33,1552.47C1066.11,1563.92 1048.82,1575.88 1033.86,1588.46L1011.55,1607.24L1049.11,1651.87L1071.42,1633.09ZM2804.87,1559.28C2805.5,1578.06 2804.95,1596.1 2803,1613.27L2799.72,1642.25L2857.68,1648.81L2860.97,1619.83C2863.22,1599.96 2863.9,1579.07 2863.17,1557.33L2862.2,1528.18L2803.9,1530.12L2804.87,1559.28ZM1217.5,1558.88C1236.87,1551.88 1254.98,1545.61 1271.98,1539.88L1299.62,1530.55L1280.97,1475.28L1253.33,1484.6C1235.96,1490.46 1217.45,1496.87 1197.66,1504.02L1170.23,1513.94L1190.07,1568.8L1217.5,1558.88ZM1383.15,1502.63C1403.9,1495.17 1422.61,1487.67 1439.93,1479.27L1466.18,1466.54L1440.73,1414.06L1414.48,1426.78C1398.91,1434.33 1382.06,1441.03 1363.41,1447.74L1335.96,1457.62L1355.71,1512.51L1383.15,1502.63ZM2777.41,1393.4C2782.33,1412.11 2786.73,1430.56 2790.49,1448.67L2796.42,1477.23L2853.54,1465.37L2847.6,1436.81C2843.64,1417.72 2839.01,1398.28 2833.83,1378.57L2826.41,1350.36L2770,1365.19L2777.41,1393.4ZM1541.19,1401.64C1553.52,1387.35 1565.77,1370.94 1578.31,1351.79L1594.28,1327.39L1545.48,1295.44L1529.5,1319.84C1518.52,1336.62 1507.83,1351.02 1497.03,1363.53L1477.97,1385.61L1522.14,1423.72L1541.19,1401.64ZM2725.02,1229.27C2731.61,1247.45 2738.01,1265.61 2744.12,1283.7L2753.45,1311.33L2808.72,1292.66L2799.38,1265.03C2793.13,1246.53 2786.6,1227.96 2779.85,1209.37L2769.9,1181.95L2715.07,1201.86L2725.02,1229.27ZM1636.99,1247.12C1644.26,1232.56 1651.77,1217.04 1659.58,1200.45C1660.59,1198.3 1661.61,1196.15 1662.61,1194.02L1675.08,1167.65L1622.34,1142.72L1609.88,1169.09C1608.86,1171.25 1607.83,1173.42 1606.81,1175.59C1599.2,1191.75 1591.88,1206.88 1584.8,1221.06L1571.77,1247.16L1623.96,1273.21L1636.99,1247.12ZM2251.58,766.326C2320.04,672.986 2430.48,612.355 2554.96,612.355C2762.48,612.355 2930.95,780.83 2930.95,988.344C2930.95,1087.56 2892.44,1177.85 2829.58,1245.06C2804.67,1171.95 2775.67,1097.93 2747.18,1026.98C2699.54,908.311 2654.38,849.115 2602.9,816.501C2565.59,792.868 2523.88,781.903 2471.8,777.274C2416.47,772.355 2346.53,774.829 2251.58,766.326ZM2662.3,1066.95C2669.46,1084.79 2676.66,1102.83 2683.81,1120.98L2694.51,1148.12L2748.78,1126.72L2738.08,1099.59C2730.88,1081.32 2723.64,1063.18 2716.44,1045.23L2705.58,1018.16L2651.44,1039.88L2662.3,1066.95ZM1713.81,1090.65C1723.08,1073.13 1732.27,1056.54 1741.52,1040.87L1756.33,1015.74L1706.08,986.113L1691.27,1011.24C1681.59,1027.65 1671.95,1045.03 1662.25,1063.39L1648.61,1089.17L1700.18,1116.44L1713.81,1090.65ZM2584.06,922.671C2594.47,934.345 2604.5,948.467 2614.55,965.492L2629.38,990.608L2679.62,960.949L2664.79,935.834C2652.56,915.134 2640.26,898.042 2627.6,883.849L2608.19,862.079L2564.65,900.901L2584.06,922.671ZM1805.33,949.853C1817.51,935.859 1830.16,923.259 1843.5,912.06L1865.85,893.314L1828.36,848.625L1806.01,867.372C1790.4,880.469 1775.59,895.178 1761.34,911.545L1742.18,933.541L1786.17,971.849L1805.33,949.853ZM2446.47,869.303C2466.17,870.516 2483.98,872.335 2500.35,875.649L2528.94,881.438L2540.51,824.265L2511.93,818.476C2493.13,814.67 2472.68,812.474 2450.05,811.08L2420.94,809.287L2417.35,867.51L2446.47,869.303ZM1935.15,861.305C1951.44,856.036 1968.78,851.999 1987.35,849.144L2016.18,844.713L2007.32,787.057L1978.49,791.488C1956.68,794.84 1936.32,799.616 1917.19,805.802L1889.44,814.778L1907.39,870.28L1935.15,861.305ZM2271.35,861.832C2292.28,863.33 2311.95,864.351 2330.47,865.114L2359.61,866.316L2362.01,808.032L2332.87,806.83C2314.9,806.09 2295.82,805.1 2275.51,803.648L2246.42,801.567L2242.26,859.751L2271.35,861.832ZM2097.81,844.858C2115.7,845.771 2134.46,847.337 2154.17,849.543L2183.16,852.787L2189.65,794.816L2160.66,791.572C2139.72,789.228 2119.79,787.57 2100.78,786.6L2071.65,785.114L2068.68,843.372L2097.81,844.858Z"},void 0,!1,{fileName:P3e,lineNumber:7,columnNumber:5},void 0)});var F3e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/NodesIcon.tsx";const z3e=fC({displayName:"NodesIcon",viewBox:"0 0 3543 3543",path:_("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,770.787C3543.31,515.578 3336.11,308.38 3080.9,308.38L462.407,308.38C207.197,308.38 0,515.578 0,770.787L0,2766.03C0,3021.24 207.197,3228.44 462.407,3228.44L3080.9,3228.44C3336.11,3228.44 3543.31,3021.24 3543.31,2766.03C3543.31,2766.03 3543.31,770.787 3543.31,770.787ZM3427.88,770.787L3427.88,2766.03C3427.88,2957.53 3272.4,3113.01 3080.9,3113.01C3080.9,3113.01 462.407,3113.01 462.407,3113.01C270.906,3113.01 115.431,2957.53 115.431,2766.03L115.431,770.787C115.431,579.286 270.906,423.812 462.407,423.812L3080.9,423.812C3272.4,423.812 3427.88,579.286 3427.88,770.787ZM1214.23,1130.69L1321.47,1130.69C1324.01,1130.69 1326.54,1130.53 1329.05,1130.2C1329.05,1130.2 1367.3,1125.33 1397.94,1149.8C1421.63,1168.72 1437.33,1204.3 1437.33,1265.48L1437.33,2078.74L1220.99,2078.74C1146.83,2078.74 1086.61,2138.95 1086.61,2213.12L1086.61,2762.46C1086.61,2836.63 1146.83,2896.84 1220.99,2896.84L1770.34,2896.84C1844.5,2896.84 1904.71,2836.63 1904.71,2762.46L1904.71,2213.12C1904.71,2138.95 1844.5,2078.74 1770.34,2078.74L1554,2078.74L1554,1604.84C1625.84,1658.19 1703.39,1658.1 1703.39,1658.1C1703.54,1658.1 1703.69,1658.11 1703.84,1658.11L2362.2,1658.11L2362.2,1874.44C2362.2,1948.61 2422.42,2008.82 2496.58,2008.82L3045.93,2008.82C3120.09,2008.82 3180.3,1948.61 3180.3,1874.44L3180.3,1325.1C3180.3,1250.93 3120.09,1190.72 3045.93,1190.72L2496.58,1190.72C2422.42,1190.72 2362.2,1250.93 2362.2,1325.1L2362.2,1558.97L2362.2,1541.44L1704.23,1541.44C1702.2,1541.37 1650.96,1539.37 1609.51,1499.26C1577.72,1468.49 1554,1416.47 1554,1331.69L1554,1265.48C1554,1153.86 1513.98,1093.17 1470.76,1058.64C1411.24,1011.1 1338.98,1012.58 1319.15,1014.03L1214.23,1014.03L1214.23,796.992C1214.23,722.828 1154.02,662.617 1079.85,662.617L530.507,662.617C456.343,662.617 396.131,722.828 396.131,796.992L396.131,1346.34C396.131,1420.5 456.343,1480.71 530.507,1480.71L1079.85,1480.71C1154.02,1480.71 1214.23,1420.5 1214.23,1346.34L1214.23,1130.69Z"},void 0,!1,{fileName:F3e,lineNumber:7,columnNumber:5},void 0)});var B3e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/OutpaintIcon.tsx";const $3e=fC({displayName:"OutpaintIcon",viewBox:"0 0 3543 3543",path:_("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,766.352C3543.31,516.705 3340.63,314.024 3090.98,314.024L452.328,314.024C202.681,314.024 0,516.705 0,766.352L0,2776.95C0,3026.6 202.681,3229.28 452.328,3229.28C452.328,3229.28 3090.98,3229.28 3090.98,3229.28C3340.63,3229.28 3543.31,3026.6 3543.31,2776.95C3543.31,2776.95 3543.31,766.352 3543.31,766.352ZM3454.26,766.352L3454.26,2776.95C3454.26,2977.46 3291.48,3140.24 3090.98,3140.24L452.328,3140.24C251.825,3140.24 89.043,2977.46 89.043,2776.95C89.043,2776.95 89.043,766.352 89.043,766.352C89.043,565.849 251.825,403.067 452.328,403.067C452.328,403.067 3090.98,403.067 3090.98,403.067C3291.48,403.067 3454.26,565.849 3454.26,766.352ZM1294.01,2603.04L1394.01,2603.04L1394.01,2553.04L1294.01,2553.04L1294.01,2603.04ZM2494.01,2603.04L2524.53,2603.04C2541.26,2603.04 2557.62,2601.44 2573.47,2598.39L2598.02,2593.66L2588.56,2544.56L2564.01,2549.29C2551.23,2551.75 2538.03,2553.04 2524.53,2553.04L2494.01,2553.04L2494.01,2603.04ZM2344.01,2603.04L2444.01,2603.04L2444.01,2553.04L2344.01,2553.04L2344.01,2603.04ZM994.01,2603.04L1094.01,2603.04L1094.01,2553.04L994.01,2553.04L994.01,2603.04ZM1144.01,2603.04L1244.01,2603.04L1244.01,2553.04L1144.01,2553.04L1144.01,2603.04ZM2194.01,2603.04L2294.01,2603.04L2294.01,2553.04L2194.01,2553.04L2194.01,2603.04ZM2044.01,2603.04L2144.01,2603.04L2144.01,2553.04L2044.01,2553.04L2044.01,2603.04ZM1894.01,2603.04L1994.01,2603.04L1994.01,2553.04L1894.01,2553.04L1894.01,2603.04ZM1744.01,2603.04L1844.01,2603.04L1844.01,2553.04L1744.01,2553.04L1744.01,2603.04ZM1444.01,2603.04L1544.01,2603.04L1544.01,2553.04L1444.01,2553.04L1444.01,2603.04ZM1594.01,2603.04L1694.01,2603.04L1694.01,2553.04L1594.01,2553.04L1594.01,2603.04ZM864.145,2551.46C878.835,2562.5 894.741,2572 911.624,2579.74L934.352,2590.15L955.18,2544.7L932.452,2534.28C918.844,2528.05 906.024,2520.39 894.185,2511.49L874.199,2496.47L844.16,2536.44L864.145,2551.46ZM2674.44,2554.92C2689.46,2544.16 2703.28,2531.82 2715.65,2518.14L2732.42,2499.61L2695.35,2466.06L2678.58,2484.6C2668.59,2495.63 2657.44,2505.59 2645.32,2514.28L2625,2528.84L2654.12,2569.48L2674.44,2554.92ZM865.632,1911.31L1339.59,1374.15L2030.89,2134.59L2392.97,1713.77L2677.68,2017.9L2677.68,2324.93C2677.68,2424.23 2597.06,2504.85 2497.76,2504.85C2497.76,2504.85 1045.55,2504.85 1045.55,2504.85C946.251,2504.85 865.632,2424.23 865.632,2324.93L865.632,1911.31ZM771.251,2417.22C776.455,2435.14 783.552,2452.26 792.313,2468.35L804.27,2490.3L848.18,2466.39L836.223,2444.43C829.171,2431.49 823.457,2417.7 819.268,2403.28L812.297,2379.27L764.28,2393.21L771.251,2417.22ZM2770.36,2422.83C2775.83,2405.47 2779.52,2387.33 2781.2,2368.61L2783.43,2343.71L2733.64,2339.24L2731.4,2364.14C2730.05,2379.21 2727.08,2393.82 2722.67,2407.79L2715.15,2431.63L2762.84,2446.67L2770.36,2422.83ZM761.068,2236.12L761.068,2336.12L811.068,2336.12L811.068,2236.12L761.068,2236.12ZM2782.24,2291.41L2782.24,2191.41L2732.24,2191.41L2732.24,2291.41L2782.24,2291.41ZM761.068,2086.12L761.068,2186.12L811.068,2186.12L811.068,2086.12L761.068,2086.12ZM2782.24,2141.41L2782.24,2041.4L2732.24,2041.4L2732.24,2141.41L2782.24,2141.41ZM761.068,1936.12L761.068,2036.12L811.068,2036.12L811.068,1936.12L761.068,1936.12ZM2782.24,1991.4L2782.24,1891.4L2732.24,1891.4L2732.24,1991.4L2782.24,1991.4ZM761.068,1786.12L761.068,1886.12L811.068,1886.12L811.068,1786.12L761.068,1786.12ZM2782.24,1841.4L2782.24,1741.41L2732.24,1741.41L2732.24,1841.4L2782.24,1841.4ZM761.068,1636.12L761.068,1736.12L811.068,1736.12L811.068,1636.12L761.068,1636.12ZM2782.24,1691.41L2782.24,1591.41L2732.24,1591.41L2732.24,1691.41L2782.24,1691.41ZM761.068,1486.12L761.068,1586.12L811.068,1586.12L811.068,1486.12L761.068,1486.12ZM2203.72,1132.2C2318.18,1132.2 2411.11,1225.13 2411.11,1339.59C2411.11,1454.05 2318.18,1546.98 2203.72,1546.98C2089.26,1546.98 1996.33,1454.05 1996.33,1339.59C1996.33,1225.13 2089.26,1132.2 2203.72,1132.2ZM2782.24,1541.41L2782.24,1441.41L2732.24,1441.41L2732.24,1541.41L2782.24,1541.41ZM761.068,1336.12L761.068,1436.12L811.068,1436.12L811.068,1336.12L761.068,1336.12ZM2782.24,1391.41L2782.24,1291.41L2732.24,1291.41L2732.24,1391.41L2782.24,1391.41ZM761.068,1186.12L761.068,1286.12L811.068,1286.12L811.068,1186.12L761.068,1186.12ZM2732.24,1197.98L2732.24,1241.41L2782.24,1241.41L2782.24,1172.98L2781.03,1172.98C2780.06,1162.82 2778.49,1152.83 2776.36,1143.04L2771.04,1118.62L2722.18,1129.24L2727.5,1153.67C2730.61,1167.95 2732.24,1182.78 2732.24,1197.98ZM804.386,1055C794.186,1070.26 785.572,1086.67 778.777,1103.99L769.647,1127.26L816.194,1145.52L825.324,1122.25C830.797,1108.3 837.738,1095.08 845.955,1082.79L859.848,1062L818.279,1034.21L804.386,1055ZM2730.5,1043.14C2719.39,1028.39 2706.73,1014.86 2692.77,1002.81L2673.84,986.48L2641.17,1024.34L2660.1,1040.67C2671.37,1050.39 2681.59,1061.31 2690.56,1073.22L2705.6,1093.19L2745.54,1063.11L2730.5,1043.14ZM933.266,954.821C915.698,961.006 898.998,969.041 883.402,978.694L862.144,991.851L888.457,1034.37L909.715,1021.21C922.275,1013.44 935.723,1006.96 949.871,1001.98L973.452,993.681L956.848,946.518L933.266,954.821ZM2596.18,950.378C2578.71,945.327 2560.49,942.072 2541.72,940.832L2516.78,939.183L2513.48,989.074L2538.43,990.723C2553.54,991.722 2568.22,994.341 2582.28,998.409L2606.3,1005.36L2620.19,957.325L2596.18,950.378ZM2165.09,940.265L2065.09,940.265L2065.09,990.265L2165.09,990.265L2165.09,940.265ZM2015.09,940.265L1915.09,940.265L1915.09,990.265L2015.09,990.265L2015.09,940.265ZM1115.08,940.265L1015.08,940.265L1015.08,990.265L1115.08,990.265L1115.08,940.265ZM1865.08,940.265L1765.08,940.265L1765.08,990.265L1865.08,990.265L1865.08,940.265ZM1265.08,940.265L1165.08,940.265L1165.08,990.265L1265.08,990.265L1265.08,940.265ZM1415.08,940.265L1315.08,940.265L1315.08,990.265L1415.08,990.265L1415.08,940.265ZM1565.08,940.265L1465.08,940.265L1465.08,990.265L1565.08,990.265L1565.08,940.265ZM1715.08,940.265L1615.08,940.265L1615.08,990.265L1715.08,990.265L1715.08,940.265ZM2465.09,940.265L2365.09,940.265L2365.09,990.265L2465.09,990.265L2465.09,940.265ZM2315.09,940.265L2215.09,940.265L2215.09,990.265L2315.09,990.265L2315.09,940.265Z"},void 0,!1,{fileName:B3e,lineNumber:7,columnNumber:5},void 0)});var U3e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/PostprocessingIcon.tsx";const H3e=fC({displayName:"PostprocessingIcon",viewBox:"0 0 3543 3543",path:_("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M709.477,1596.53L992.591,1275.66L2239.09,2646.81L2891.95,1888.03L3427.88,2460.51L3427.88,994.78C3427.88,954.66 3421.05,916.122 3408.5,880.254L3521.9,855.419C3535.8,899.386 3543.31,946.214 3543.31,994.78L3543.31,2990.02C3543.31,3245.23 3336.11,3452.43 3080.9,3452.43C3080.9,3452.43 462.407,3452.43 462.407,3452.43C207.197,3452.43 -0,3245.23 -0,2990.02L-0,994.78C-0,739.571 207.197,532.373 462.407,532.373L505.419,532.373L504.644,532.546L807.104,600.085C820.223,601.729 832.422,607.722 841.77,617.116C850.131,625.517 855.784,636.21 858.055,647.804L462.407,647.804C270.906,647.804 115.431,803.279 115.431,994.78L115.431,2075.73L-0,2101.5L115.431,2127.28L115.431,2269.78L220.47,2150.73L482.345,2209.21C503.267,2211.83 522.722,2221.39 537.63,2236.37C552.538,2251.35 562.049,2270.9 564.657,2291.93L671.84,2776.17L779.022,2291.93C781.631,2270.9 791.141,2251.35 806.05,2236.37C820.958,2221.39 840.413,2211.83 861.334,2209.21L1353.15,2101.5L861.334,1993.8C840.413,1991.18 820.958,1981.62 806.05,1966.64C791.141,1951.66 781.631,1932.11 779.022,1911.08L709.477,1596.53ZM671.84,1573.09L725.556,2006.07C726.863,2016.61 731.63,2026.4 739.101,2033.91C746.573,2041.42 756.323,2046.21 766.808,2047.53L1197.68,2101.5L766.808,2155.48C756.323,2156.8 746.573,2161.59 739.101,2169.09C731.63,2176.6 726.863,2186.4 725.556,2196.94L671.84,2629.92L618.124,2196.94C616.817,2186.4 612.05,2176.6 604.579,2169.09C597.107,2161.59 587.357,2156.8 576.872,2155.48L146.001,2101.5L576.872,2047.53C587.357,2046.21 597.107,2041.42 604.579,2033.91C612.05,2026.4 616.817,2016.61 618.124,2006.07L671.84,1573.09ZM609.035,1710.36L564.657,1911.08C562.049,1932.11 552.538,1951.66 537.63,1966.64C522.722,1981.62 503.267,1991.18 482.345,1993.8L328.665,2028.11L609.035,1710.36ZM2297.12,938.615L2451.12,973.003C2480.59,976.695 2507.99,990.158 2528.99,1011.26C2549.99,1032.37 2563.39,1059.9 2567.07,1089.52L2672.73,1566.9C2634.5,1580.11 2593.44,1587.29 2550.72,1587.29C2344.33,1587.29 2176.77,1419.73 2176.77,1213.34C2176.77,1104.78 2223.13,1006.96 2297.12,938.615ZM2718.05,76.925L2793.72,686.847C2795.56,701.69 2802.27,715.491 2812.8,726.068C2823.32,736.644 2837.06,743.391 2851.83,745.242L3458.78,821.28L2851.83,897.318C2837.06,899.168 2823.32,905.916 2812.8,916.492C2802.27,927.068 2795.56,940.87 2793.72,955.712L2718.05,1565.63L2642.38,955.712C2640.54,940.87 2633.83,927.068 2623.3,916.492C2612.78,905.916 2599.04,899.168 2584.27,897.318L1977.32,821.28L2584.27,745.242C2599.04,743.391 2612.78,736.644 2623.3,726.068C2633.83,715.491 2640.54,701.69 2642.38,686.847L2718.05,76.925ZM2883.68,1043.06C2909.88,1094.13 2924.67,1152.02 2924.67,1213.34C2924.67,1335.4 2866.06,1443.88 2775.49,1512.14L2869.03,1089.52C2871.07,1073.15 2876.07,1057.42 2883.68,1043.06ZM925.928,201.2L959.611,472.704C960.431,479.311 963.42,485.455 968.105,490.163C972.79,494.871 978.904,497.875 985.479,498.698L1255.66,532.546L985.479,566.395C978.904,567.218 972.79,570.222 968.105,574.93C963.42,579.638 960.431,585.781 959.611,592.388L925.928,863.893L892.245,592.388C891.425,585.781 888.436,579.638 883.751,574.93C879.066,570.222 872.952,567.218 866.378,566.395L596.195,532.546L866.378,498.698C872.952,497.875 879.066,494.871 883.751,490.163C888.436,485.455 891.425,479.311 892.245,472.704L925.928,201.2ZM2864.47,532.373L3080.9,532.373C3258.7,532.373 3413.2,632.945 3490.58,780.281L3319.31,742.773C3257.14,683.925 3173.2,647.804 3080.9,647.804L2927.07,647.804C2919.95,642.994 2913.25,637.473 2907.11,631.298C2886.11,610.194 2872.71,582.655 2869.03,553.04L2864.47,532.373ZM1352.36,532.373L2571.64,532.373L2567.07,553.04C2563.39,582.655 2549.99,610.194 2528.99,631.298C2522.85,637.473 2516.16,642.994 2509.03,647.804L993.801,647.804C996.072,636.21 1001.73,625.517 1010.09,617.116C1019.43,607.722 1031.63,601.729 1044.75,600.085L1353.15,532.546L1352.36,532.373Z"},void 0,!1,{fileName:U3e,lineNumber:7,columnNumber:5},void 0)});var T$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/TextToImageIcon.tsx";const j3e=fC({displayName:"TextToImageIcon",viewBox:"0 0 3543 3543",path:_("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",transform:"matrix(1.11667,0,0,1.1066,-231.131,-213.062)",children:_("path",{d:"M2209.59,1137.35L2209.59,1098.17C2177.13,1108.99 2125.74,1121.91 2055.41,1136.94C2054.77,1137.08 2054.14,1137.21 2053.49,1137.35L1662.79,1137.35C1687.75,1101.98 1720.8,1074.35 1761.93,1054.44C1808.52,1031.9 1875.69,1012.22 1963.45,995.386C2081.86,973.146 2163.91,952.409 2209.59,933.174L2209.59,907.929C2209.59,859.241 2197.57,824.529 2173.53,803.792C2149.48,783.054 2104.1,772.686 2037.38,772.686C1992.3,772.686 1957.14,781.552 1931.89,799.284C1906.64,817.015 1886.21,848.121 1870.58,892.601L1640.67,851.127C1666.51,758.56 1710.99,690.037 1774.11,645.557C1837.22,601.077 1930.99,578.837 2055.41,578.837C2168.42,578.837 2252.57,592.211 2307.87,618.959C2363.17,645.707 2402.09,679.668 2424.63,720.842C2447.17,762.016 2458.44,837.602 2458.44,947.6L2456.7,1137.35L3021.34,1137.35C3214.79,1137.35 3371.86,1294.41 3371.86,1487.87C3371.86,1487.87 3371.86,3000.32 3371.86,3000.32C3371.86,3193.78 3214.79,3350.84 3021.34,3350.84C3021.34,3350.84 1036.45,3350.84 1036.45,3350.84C842.991,3350.84 685.93,3193.78 685.93,3000.32L685.93,1487.87C685.93,1400.21 718.174,1320.03 771.448,1258.54L772.123,1257.76L607.408,1257.76L498.311,1558L215.202,1558L730.028,236.22L1012.24,236.22L1373.06,1137.35L2209.59,1137.35ZM3284.36,2598.93L3284.36,1487.87C3284.36,1342.71 3166.5,1224.85 3021.34,1224.85C3021.34,1224.85 1036.45,1224.85 1036.45,1224.85C891.284,1224.85 773.43,1342.71 773.43,1487.87L773.43,2454.35L1438.34,1700.79L2383.22,2740.16L2878.11,2164.98L3284.36,2598.93ZM2619.44,1370.08C2775.89,1370.08 2902.91,1497.1 2902.91,1653.54C2902.91,1809.99 2775.89,1937.01 2619.44,1937.01C2462.99,1937.01 2335.98,1809.99 2335.98,1653.54C2335.98,1497.1 2462.99,1370.08 2619.44,1370.08ZM772.877,1256.89L772.849,1256.93L773.167,1256.57L772.877,1256.89ZM773.634,1256.04L773.563,1256.12L773.985,1255.64L773.634,1256.04ZM774.394,1255.18L774.276,1255.31L774.746,1254.78L774.394,1255.18ZM775.157,1254.32L774.988,1254.51L775.493,1253.95L775.157,1254.32ZM775.923,1253.47L775.698,1253.72L776.237,1253.12L775.923,1253.47ZM776.691,1252.62L776.403,1252.94L776.979,1252.3L776.691,1252.62ZM777.462,1251.77L777.098,1252.17L777.723,1251.49L777.462,1251.77ZM925.081,1155.44C868.026,1174.57 817.508,1207.99 777.775,1251.43C817.511,1207.99 868.031,1174.57 925.081,1155.44ZM925.646,1155.25L925.108,1155.43L926.103,1155.1L925.646,1155.25ZM935.286,1152.2C932.214,1153.12 929.159,1154.09 926.13,1155.09C929.165,1154.09 932.219,1153.12 935.286,1152.2ZM935.716,1152.07L935.384,1152.17L936.292,1151.89L935.716,1152.07ZM936.843,1151.73L936.451,1151.85L937.327,1151.59L936.843,1151.73ZM937.972,1151.4L937.514,1151.53L938.377,1151.28L937.972,1151.4ZM939.102,1151.07L938.57,1151.22L939.438,1150.97L939.102,1151.07ZM940.233,1150.74L939.613,1150.92L940.505,1150.67L940.233,1150.74ZM946.659,1148.98C944.639,1149.51 942.626,1150.07 940.626,1150.63C942.631,1150.06 944.642,1149.51 946.659,1148.98ZM947.056,1148.87L946.829,1148.93L947.659,1148.71L947.056,1148.87ZM948.198,1148.57L947.919,1148.65L948.705,1148.44L948.198,1148.57ZM949.342,1148.28L949.008,1148.37L949.771,1148.17L949.342,1148.28ZM950.488,1147.99L950.096,1148.09L950.848,1147.9L950.488,1147.99ZM951.635,1147.7L951.182,1147.81L951.932,1147.63L951.635,1147.7ZM952.783,1147.42L952.262,1147.55L953.022,1147.36L952.783,1147.42ZM953.933,1147.14L953.327,1147.28L954.115,1147.09L953.933,1147.14ZM958.213,1146.13C956.927,1146.42 955.644,1146.73 954.354,1147.04C955.637,1146.73 956.923,1146.43 958.213,1146.13ZM958.547,1146.06L958.409,1146.09L959.174,1145.91L958.547,1146.06ZM959.704,1145.79L959.517,1145.84L960.229,1145.68L959.704,1145.79ZM960.863,1145.54L960.626,1145.59L961.311,1145.44L960.863,1145.54ZM962.023,1145.28L961.736,1145.35L962.406,1145.2L962.023,1145.28ZM963.184,1145.03L962.846,1145.11L963.508,1144.97L963.184,1145.03ZM964.347,1144.79L963.956,1144.87L964.615,1144.73L964.347,1144.79ZM965.511,1144.55L965.066,1144.64L965.725,1144.5L965.511,1144.55ZM966.677,1144.31L966.172,1144.41L966.838,1144.28L966.677,1144.31ZM967.844,1144.08L967.269,1144.19L967.953,1144.05L967.844,1144.08ZM970.183,1143.62C969.793,1143.69 969.403,1143.77 969.013,1143.85L969.055,1143.84C969.413,1143.77 969.771,1143.7 970.129,1143.63L970.183,1143.62ZM971.354,1143.4L971.245,1143.42L971.882,1143.3L971.354,1143.4ZM972.526,1143.18L972.37,1143.21L972.987,1143.09L972.526,1143.18ZM973.7,1142.96L973.496,1143L974.103,1142.89L973.7,1142.96ZM974.876,1142.75L974.624,1142.8L975.225,1142.69L974.876,1142.75ZM976.052,1142.55L975.754,1142.6L976.349,1142.49L976.052,1142.55ZM977.23,1142.34L976.885,1142.4L977.476,1142.3L977.23,1142.34ZM978.41,1142.14L978.019,1142.21L978.605,1142.11L978.41,1142.14ZM979.59,1141.95L979.156,1142.02L979.736,1141.92L979.59,1141.95ZM980.772,1141.76L980.299,1141.83L980.868,1141.74L980.772,1141.76ZM981.955,1141.57L981.464,1141.65L982.002,1141.56L981.955,1141.57ZM983.14,1141.39L983.1,1141.39L983.605,1141.32L983.14,1141.39ZM984.326,1141.21L984.239,1141.22L984.778,1141.14L984.326,1141.21ZM985.513,1141.03L985.379,1141.05L985.928,1140.97L985.513,1141.03ZM986.702,1140.86L986.521,1140.89L987.073,1140.81L986.702,1140.86ZM987.891,1140.69L987.665,1140.73L988.218,1140.65L987.891,1140.69ZM989.082,1140.53L988.811,1140.57L989.363,1140.49L989.082,1140.53ZM990.275,1140.37L989.96,1140.41L990.508,1140.34L990.275,1140.37ZM991.468,1140.22L991.113,1140.26L991.654,1140.19L991.468,1140.22ZM992.663,1140.07L992.273,1140.12L992.8,1140.05L992.663,1140.07ZM993.859,1139.92L993.447,1139.97L993.948,1139.91L993.859,1139.92ZM995.056,1139.78L994.671,1139.82L995.097,1139.77L995.056,1139.78ZM996.255,1139.64L996.23,1139.64L996.578,1139.6L996.255,1139.64ZM997.454,1139.5L997.383,1139.51L997.852,1139.46L997.454,1139.5ZM998.655,1139.37L998.537,1139.38L999.041,1139.33L998.655,1139.37ZM999.857,1139.24L999.693,1139.26L1000.21,1139.21L999.857,1139.24ZM1001.06,1139.12L1000.85,1139.14L1001.38,1139.09L1001.06,1139.12ZM1002.26,1139L1002.01,1139.03L1002.54,1138.98L1002.26,1139ZM1003.47,1138.89L1003.18,1138.91L1003.7,1138.87L1003.47,1138.89ZM1004.68,1138.78L1004.34,1138.81L1004.86,1138.76L1004.68,1138.78ZM1005.89,1138.67L1005.52,1138.7L1006.02,1138.66L1005.89,1138.67ZM1007.1,1138.57L1006.71,1138.6L1007.18,1138.56L1007.1,1138.57ZM1008.31,1138.47L1007.96,1138.5L1008.35,1138.46L1008.31,1138.47ZM1009.52,1138.37L1009.5,1138.38L1009.72,1138.36L1009.52,1138.37ZM1010.73,1138.28L1010.67,1138.29L1011.1,1138.26L1010.73,1138.28ZM1011.94,1138.2L1011.84,1138.2L1012.32,1138.17L1011.94,1138.2ZM1013.16,1138.12L1013,1138.13L1013.51,1138.09L1013.16,1138.12ZM1014.37,1138.04L1014.17,1138.05L1014.69,1138.02L1014.37,1138.04ZM1015.59,1137.96L1015.35,1137.98L1015.86,1137.95L1015.59,1137.96ZM1016.81,1137.89L1016.52,1137.91L1017.04,1137.88L1016.81,1137.89ZM1018.03,1137.83L1017.7,1137.85L1018.21,1137.82L1018.03,1137.83ZM1019.25,1137.77L1018.89,1137.79L1019.39,1137.76L1019.25,1137.77ZM1020.47,1137.71L1020.1,1137.73L1020.56,1137.71L1020.47,1137.71ZM1021.69,1137.66L1021.36,1137.67L1021.74,1137.66L1021.69,1137.66ZM1022.92,1137.61L1022.91,1137.61L1023.02,1137.61L1022.92,1137.61ZM1024.14,1137.57L1024.09,1137.57L1024.49,1137.55L1024.14,1137.57ZM1025.37,1137.52L1025.27,1137.53L1025.74,1137.51L1025.37,1137.52ZM1026.6,1137.49L1026.45,1137.49L1026.94,1137.48L1026.6,1137.49ZM1027.82,1137.46L1027.63,1137.46L1028.14,1137.45L1027.82,1137.46ZM1029.05,1137.43L1028.81,1137.43L1029.33,1137.42L1029.05,1137.43ZM1030.28,1137.41L1030,1137.41L1030.52,1137.4L1030.28,1137.41ZM1031.51,1137.39L1031.19,1137.39L1031.7,1137.38L1031.51,1137.39ZM1032.75,1137.37L1032.39,1137.38L1032.89,1137.37L1032.75,1137.37ZM1033.98,1137.36L1033.61,1137.36L1034.07,1137.36L1033.98,1137.36ZM1035.21,1137.35L1034.87,1137.36L1035.26,1137.35L1035.21,1137.35ZM1050.1,1035.06L867.977,544.575L689.455,1035.06L1050.1,1035.06Z"},void 0,!1,{fileName:T$,lineNumber:13,columnNumber:7},void 0)},void 0,!1,{fileName:T$,lineNumber:7,columnNumber:5},void 0)});var Tc=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OTHER=2]="OTHER",e[e.SEED=3]="SEED",e[e.VARIATIONS=4]="VARIATIONS",e[e.UPSCALE=5]="UPSCALE",e[e.FACE_CORRECTION=6]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=7]="IMAGE_TO_IMAGE",e))(Tc||{});const V3e={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[5]:{text:"Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[6]:{text:"Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}};var tk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAISwitch.tsx";const d0=e=>{const{label:t,isDisabled:n=!1,width:r="auto",formControlProps:i,formLabelProps:s,styleClass:l,...f}=e;return _(zb,{isDisabled:n,width:r,className:`invokeai__switch-form-control ${l}`,...i,children:_(FS,{className:"invokeai__switch-form-label",whiteSpace:"nowrap",...s,children:[t,_(BM,{className:"invokeai__switch-root",...f},void 0,!1,{fileName:tk,lineNumber:47,columnNumber:9},void 0)]},void 0,!0,{fileName:tk,lineNumber:40,columnNumber:7},void 0)},void 0,!1,{fileName:tk,lineNumber:34,columnNumber:5},void 0)};var nk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestoreHeader.tsx";function aD(){const e=tn(i=>i.system.isGFPGANAvailable),t=tn(i=>i.options.shouldRunFacetool),n=ar();return _(Si,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_("p",{children:"Restore Face"},void 0,!1,{fileName:nk,lineNumber:32,columnNumber:7},this),_(d0,{isDisabled:!e,isChecked:t,onChange:i=>n(U7e(i.target.checked))},void 0,!1,{fileName:nk,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:nk,lineNumber:26,columnNumber:5},this)}var hb="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAINumberInput.tsx";const R$=/^-?(0\.)?\.?$/,kc=e=>{const{label:t,styleClass:n,isDisabled:r=!1,showStepper:i=!0,width:s,textAlign:l,isInvalid:f,value:d,onChange:m,min:b,max:S,isInteger:N=!0,formControlProps:w,formLabelProps:T,numberInputFieldProps:L,numberInputStepperProps:M,tooltipProps:B,...F}=e,[z,H]=O.exports.useState(String(d));O.exports.useEffect(()=>{!z.match(R$)&&d!==Number(z)&&H(String(d))},[d,z]);const G=Z=>{H(Z),Z.match(R$)||m(N?Math.floor(Number(Z)):Number(Z))},K=Z=>{const ne=ra.clamp(N?Math.floor(Number(Z.target.value)):Number(Z.target.value),b,S);H(String(ne)),m(ne)};return _(el,{...B,children:_(zb,{isDisabled:r,isInvalid:f,className:n?`invokeai__number-input-form-control ${n}`:"invokeai__number-input-form-control",...w,children:[_(FS,{className:"invokeai__number-input-form-label",style:{display:t?"block":"none"},...T,children:t},void 0,!1,{fileName:hb,lineNumber:126,columnNumber:9},void 0),_(IW,{className:"invokeai__number-input-root",value:z,keepWithinRange:!0,clampValueOnBlur:!1,onChange:G,onBlur:K,width:s,...F,children:[_(FW,{className:"invokeai__number-input-field",textAlign:l,...L},void 0,!1,{fileName:hb,lineNumber:143,columnNumber:11},void 0),_("div",{className:"invokeai__number-input-stepper",style:i?{display:"block"}:{display:"none"},children:[_($W,{...M,className:"invokeai__number-input-stepper-button"},void 0,!1,{fileName:hb,lineNumber:152,columnNumber:13},void 0),_(BW,{...M,className:"invokeai__number-input-stepper-button"},void 0,!1,{fileName:hb,lineNumber:156,columnNumber:13},void 0)]},void 0,!0,{fileName:hb,lineNumber:148,columnNumber:11},void 0)]},void 0,!0,{fileName:hb,lineNumber:133,columnNumber:9},void 0)]},void 0,!0,{fileName:hb,lineNumber:116,columnNumber:7},void 0)},void 0,!1,{fileName:hb,lineNumber:115,columnNumber:5},void 0)};var MN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAISelect.tsx";const A_=e=>{const{label:t,isDisabled:n,validValues:r,size:i="sm",fontSize:s="md",styleClass:l,...f}=e;return _(zb,{isDisabled:n,className:`invokeai__select ${l}`,onClick:d=>{d.stopPropagation(),d.nativeEvent.stopImmediatePropagation(),d.nativeEvent.stopPropagation(),d.nativeEvent.cancelBubble=!0},children:[_(FS,{fontSize:s,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"invokeai__select-label",children:t},void 0,!1,{fileName:MN,lineNumber:35,columnNumber:7},void 0),_(VW,{fontSize:s,size:i,...f,className:"invokeai__select-picker",children:r.map(d=>typeof d=="string"||typeof d=="number"?_("option",{value:d,className:"invokeai__select-option",children:d},d,!1,{fileName:MN,lineNumber:52,columnNumber:13},void 0):_("option",{value:d.value,children:d.key},d.value,!1,{fileName:MN,lineNumber:56,columnNumber:13},void 0))},void 0,!1,{fileName:MN,lineNumber:44,columnNumber:7},void 0)]},void 0,!0,{fileName:MN,lineNumber:25,columnNumber:5},void 0)},G3e=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],W3e=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],Y3e=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],q3e=[{key:"2x",value:2},{key:"4x",value:4}],iD=0,oD=4294967295,K3e=["gfpgan","codeformer"];var hT="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestoreOptions.tsx";const Z3e=ia(e=>e.options,e=>({facetoolStrength:e.facetoolStrength,facetoolType:e.facetoolType,codeformerFidelity:e.codeformerFidelity}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),X3e=ia(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),g7=()=>{const e=ar(),{facetoolStrength:t,facetoolType:n,codeformerFidelity:r}=tn(Z3e),{isGFPGANAvailable:i}=tn(X3e),s=d=>e(m6(d)),l=d=>e(zZ(d)),f=d=>e(v6(d.target.value));return _(Si,{direction:"column",gap:2,children:[_(A_,{label:"Type",validValues:K3e.concat(),value:n,onChange:f},void 0,!1,{fileName:hT,lineNumber:71,columnNumber:7},void 0),_(kc,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:s,value:t,width:"90px",isInteger:!1},void 0,!1,{fileName:hT,lineNumber:77,columnNumber:7},void 0),n==="codeformer"&&_(kc,{isDisabled:!i,label:"Fidelity",step:.05,min:0,max:1,onChange:l,value:r,width:"90px",isInteger:!1},void 0,!1,{fileName:hT,lineNumber:89,columnNumber:9},void 0)]},void 0,!0,{fileName:hT,lineNumber:70,columnNumber:5},void 0)};var Q3e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageFit.tsx";function J3e(){const e=ar(),t=tn(r=>r.options.shouldFitToWidthHeight);return _(d0,{label:"Fit Initial Image To Output Size",isChecked:t,onChange:r=>e(BZ(r.target.checked))},void 0,!1,{fileName:Q3e,lineNumber:21,columnNumber:5},this)}var eCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageToImageStrength.tsx";function Nq(e){const{label:t="Strength",styleClass:n}=e,r=tn(l=>l.options.img2imgStrength),i=ar();return _(kc,{label:t,step:.01,min:.01,max:.99,onChange:l=>i(FZ(l)),value:r,width:"100%",isInteger:!1,styleClass:n},void 0,!1,{fileName:eCe,lineNumber:26,columnNumber:5},this)}var tCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Output/OutputHeader.tsx";const wq=()=>_(gv,{flex:"1",textAlign:"left",children:"Other Options"},void 0,!1,{fileName:tCe,lineNumber:5,columnNumber:5},void 0);var k$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Output/HiresOptions.tsx";const nCe=()=>{const e=ar(),t=tn(r=>r.options.hiresFix);return _(Si,{gap:2,direction:"column",children:_(d0,{label:"High Res Optimization",fontSize:"md",isChecked:t,onChange:r=>e(IZ(r.target.checked))},void 0,!1,{fileName:k$,lineNumber:24,columnNumber:7},void 0)},void 0,!1,{fileName:k$,lineNumber:23,columnNumber:5},void 0)};var A$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Output/SeamlessOptions.tsx";const rCe=()=>{const e=ar(),t=tn(r=>r.options.seamless);return _(Si,{gap:2,direction:"column",children:_(d0,{label:"Seamless tiling",fontSize:"md",isChecked:t,onChange:r=>e(PZ(r.target.checked))},void 0,!1,{fileName:A$,lineNumber:24,columnNumber:7},void 0)},void 0,!1,{fileName:A$,lineNumber:23,columnNumber:5},void 0)};var rk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Output/OutputOptions.tsx";const _q=()=>_(Si,{gap:2,direction:"column",children:[_(rCe,{},void 0,!1,{fileName:rk,lineNumber:8,columnNumber:7},void 0),_(nCe,{},void 0,!1,{fileName:rk,lineNumber:9,columnNumber:7},void 0)]},void 0,!0,{fileName:rk,lineNumber:7,columnNumber:5},void 0);var aCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/SeedHeader.tsx";const sD=()=>_(gv,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:aCe,lineNumber:5,columnNumber:5},void 0);var iCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/RandomizeSeed.tsx";function oCe(){const e=ar(),t=tn(r=>r.options.shouldRandomizeSeed);return _(d0,{label:"Randomize Seed",isChecked:t,onChange:r=>e(j7e(r.target.checked))},void 0,!1,{fileName:iCe,lineNumber:22,columnNumber:5},this)}var sCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Seed.tsx";function lCe(){const e=tn(s=>s.options.seed),t=tn(s=>s.options.shouldRandomizeSeed),n=tn(s=>s.options.shouldGenerateVariations),r=ar(),i=s=>r(P_(s));return _(kc,{label:"Seed",step:1,precision:0,flexGrow:1,min:iD,max:oD,isDisabled:t,isInvalid:e<0&&n,onChange:i,value:e,width:"10rem"},void 0,!1,{fileName:sCe,lineNumber:25,columnNumber:5},this)}const Eq=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);var O$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/ShuffleSeed.tsx";function uCe(){const e=ar(),t=tn(r=>r.options.shouldRandomizeSeed);return _(nh,{size:"sm",isDisabled:t,onClick:()=>e(P_(Eq(iD,oD))),children:_("p",{children:"Shuffle"},void 0,!1,{fileName:O$,lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:O$,lineNumber:22,columnNumber:5},this)}var cCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Threshold.tsx";function fCe(){const e=ar(),t=tn(r=>r.options.threshold);return _(kc,{label:"Threshold",min:0,max:1e3,step:.1,onChange:r=>e(I7e(r)),value:t,isInteger:!1},void 0,!1,{fileName:cCe,lineNumber:19,columnNumber:5},this)}var dCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Perlin.tsx";function hCe(){const e=ar(),t=tn(r=>r.options.perlin);return _(kc,{label:"Perlin Noise",min:0,max:1,step:.05,onChange:r=>e(F7e(r)),value:t,isInteger:!1},void 0,!1,{fileName:dCe,lineNumber:17,columnNumber:5},this)}var Xg="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/SeedOptions.tsx";const lD=()=>_(Si,{gap:2,direction:"column",children:[_(oCe,{},void 0,!1,{fileName:Xg,lineNumber:14,columnNumber:7},void 0),_(Si,{gap:2,children:[_(lCe,{},void 0,!1,{fileName:Xg,lineNumber:16,columnNumber:9},void 0),_(uCe,{},void 0,!1,{fileName:Xg,lineNumber:17,columnNumber:9},void 0)]},void 0,!0,{fileName:Xg,lineNumber:15,columnNumber:7},void 0),_(Si,{gap:2,children:_(fCe,{},void 0,!1,{fileName:Xg,lineNumber:20,columnNumber:9},void 0)},void 0,!1,{fileName:Xg,lineNumber:19,columnNumber:7},void 0),_(Si,{gap:2,children:_(hCe,{},void 0,!1,{fileName:Xg,lineNumber:23,columnNumber:9},void 0)},void 0,!1,{fileName:Xg,lineNumber:22,columnNumber:7},void 0)]},void 0,!0,{fileName:Xg,lineNumber:13,columnNumber:5},void 0);var ak="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/UpscaleHeader.tsx";function uD(){const e=tn(i=>i.system.isESRGANAvailable),t=tn(i=>i.options.shouldRunESRGAN),n=ar();return _(Si,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_("p",{children:"Upscale"},void 0,!1,{fileName:ak,lineNumber:30,columnNumber:7},this),_(d0,{isDisabled:!e,isChecked:t,onChange:i=>n(H7e(i.target.checked))},void 0,!1,{fileName:ak,lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:ak,lineNumber:24,columnNumber:5},this)}var ik="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/UpscaleOptions.tsx";const pCe=ia(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),mCe=ia(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),b7=()=>{const e=ar(),{upscalingLevel:t,upscalingStrength:n}=tn(pCe),{isESRGANAvailable:r}=tn(mCe);return _("div",{className:"upscale-options",children:[_(A_,{isDisabled:!r,label:"Scale",value:t,onChange:l=>e(VO(Number(l.target.value))),validValues:q3e},void 0,!1,{fileName:ik,lineNumber:64,columnNumber:7},void 0),_(kc,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:l=>e(GO(l)),value:n,isInteger:!1},void 0,!1,{fileName:ik,lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:ik,lineNumber:63,columnNumber:5},void 0)};var vCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/GenerateVariations.tsx";function gCe(){const e=tn(r=>r.options.shouldGenerateVariations),t=ar();return _(d0,{isChecked:e,width:"auto",onChange:r=>t(z7e(r.target.checked))},void 0,!1,{fileName:vCe,lineNumber:22,columnNumber:5},this)}var ok="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationsHeader.tsx";function cD(){return _(Si,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_("p",{children:"Variations"},void 0,!1,{fileName:ok,lineNumber:13,columnNumber:7},this),_(gCe,{},void 0,!1,{fileName:ok,lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:ok,lineNumber:7,columnNumber:5},this)}var sk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIInput.tsx";function bCe(e){const{label:t,styleClass:n,isDisabled:r=!1,fontSize:i="1rem",width:s,isInvalid:l,...f}=e;return _(zb,{className:`input ${n}`,isInvalid:l,isDisabled:r,flexGrow:1,children:[_(FS,{fontSize:i,marginBottom:1,whiteSpace:"nowrap",className:"input-label",children:t},void 0,!1,{fileName:sk,lineNumber:30,columnNumber:7},this),_(sM,{...f,className:"input-entry",size:"sm",width:s},void 0,!1,{fileName:sk,lineNumber:38,columnNumber:7},this)]},void 0,!0,{fileName:sk,lineNumber:24,columnNumber:5},this)}var yCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/SeedWeights.tsx";function SCe(){const e=tn(i=>i.options.seedWeights),t=tn(i=>i.options.shouldGenerateVariations),n=ar(),r=i=>n($Z(i.target.value));return _(bCe,{label:"Seed Weights",value:e,isInvalid:t&&!(nD(e)||e===""),isDisabled:!t,onChange:r},void 0,!1,{fileName:yCe,lineNumber:26,columnNumber:5},this)}var xCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationAmount.tsx";function CCe(){const e=tn(i=>i.options.variationAmount),t=tn(i=>i.options.shouldGenerateVariations),n=ar();return _(kc,{label:"Variation Amount",value:e,step:.01,min:0,max:1,isDisabled:!t,onChange:i=>n(B7e(i)),isInteger:!1},void 0,!1,{fileName:xCe,lineNumber:24,columnNumber:5},this)}var lk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationsOptions.tsx";const fD=()=>_(Si,{gap:2,direction:"column",children:[_(CCe,{},void 0,!1,{fileName:lk,lineNumber:11,columnNumber:7},void 0),_(SCe,{},void 0,!1,{fileName:lk,lineNumber:12,columnNumber:7},void 0)]},void 0,!0,{fileName:lk,lineNumber:10,columnNumber:5},void 0);var NCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAICheckbox.tsx";const t_=e=>{const{label:t,styleClass:n,...r}=e;return _(oG,{className:`invokeai__checkbox ${n}`,...r,children:t},void 0,!1,{fileName:NCe,lineNumber:11,columnNumber:5},void 0)};var wCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainAdvancedOptionsCheckbox.tsx";function dD(){const e=tn(r=>r.options.showAdvancedOptions),t=ar();return _(t_,{label:"Advanced Options",styleClass:"advanced-options-checkbox",onChange:r=>t(V7e(r.target.checked)),isChecked:e},void 0,!1,{fileName:wCe,lineNumber:16,columnNumber:5},this)}var _Ce="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainCFGScale.tsx";function ECe(){const e=ar(),t=tn(r=>r.options.cfgScale);return _(kc,{label:"CFG Scale",step:.5,min:1.01,max:30,onChange:r=>e(OZ(r)),value:t,width:hD,fontSize:pC,styleClass:"main-option-block",textAlign:"center",isInteger:!1},void 0,!1,{fileName:_Ce,lineNumber:14,columnNumber:5},this)}const ch=ia(e=>e.options,e=>D_[e.activeTab],{memoizeOptions:{equalityCheck:ra.isEqual}});var TCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainHeight.tsx";function RCe(){const{height:e}=tn(i=>i.options),t=tn(ch),n=ar();return _(A_,{isDisabled:t==="inpainting",label:"Height",value:e,flexGrow:1,onChange:i=>n(LZ(Number(i.target.value))),validValues:Y3e,fontSize:pC,styleClass:"main-option-block"},void 0,!1,{fileName:TCe,lineNumber:18,columnNumber:5},this)}var kCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainIterations.tsx";function ACe(){const e=ar(),t=tn(r=>r.options.iterations);return _(kc,{label:"Images",step:1,min:1,max:9999,onChange:r=>e(P7e(r)),value:t,width:hD,fontSize:pC,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:kCe,lineNumber:16,columnNumber:5},this)}var OCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainSampler.tsx";function LCe(){const e=tn(r=>r.options.sampler),t=ar();return _(A_,{label:"Sampler",value:e,onChange:r=>t(DZ(r.target.value)),validValues:G3e,fontSize:pC,styleClass:"main-option-block"},void 0,!1,{fileName:OCe,lineNumber:16,columnNumber:5},this)}var MCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainSteps.tsx";function DCe(){const e=ar(),t=tn(r=>r.options.steps);return _(kc,{label:"Steps",min:1,max:9999,step:1,onChange:r=>e(AZ(r)),value:t,width:hD,fontSize:pC,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:MCe,lineNumber:14,columnNumber:5},this)}var PCe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainWidth.tsx";function ICe(){const{width:e,activeTab:t}=tn(i=>i.options),n=ar(),r=i=>n(MZ(Number(i.target.value)));return _(A_,{isDisabled:D_[t]==="inpainting",label:"Width",value:e,flexGrow:1,onChange:r,validValues:W3e,fontSize:pC,styleClass:"main-option-block"},void 0,!1,{fileName:PCe,lineNumber:19,columnNumber:5},this)}var Wm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainOptions.tsx";const pC="0.9rem",hD="auto";function pD(){return _("div",{className:"main-options",children:_("div",{className:"main-options-list",children:[_("div",{className:"main-options-row",children:[_(ACe,{},void 0,!1,{fileName:Wm,lineNumber:16,columnNumber:11},this),_(DCe,{},void 0,!1,{fileName:Wm,lineNumber:17,columnNumber:11},this),_(ECe,{},void 0,!1,{fileName:Wm,lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:Wm,lineNumber:15,columnNumber:9},this),_("div",{className:"main-options-row",children:[_(ICe,{},void 0,!1,{fileName:Wm,lineNumber:21,columnNumber:11},this),_(RCe,{},void 0,!1,{fileName:Wm,lineNumber:22,columnNumber:11},this),_(LCe,{},void 0,!1,{fileName:Wm,lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:Wm,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:Wm,lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:Wm,lineNumber:13,columnNumber:5},this)}const FCe={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayInProgressLatents:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},hasError:!1,wasErrorSeen:!0,isCancelable:!0},zCe=FCe,Tq=m7({name:"system",initialState:zCe,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setShouldDisplayInProgressLatents:(e,t)=>{e.shouldDisplayInProgressLatents=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Error",e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?"Connected":"Disconnected"},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,l={timestamp:n,message:r,level:i||"info"};e.log.push(l)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.hasError=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload},processingCanceled:e=>{e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Processing canceled"},setModelList:(e,t)=>{e.model_list=t.payload},setIsCancelable:(e,t)=>{e.isCancelable=t.payload},modelChangeRequested:e=>{e.currentStatus="Loading Model",e.isCancelable=!1,e.isProcessing=!0,e.currentStatusHasSteps=!1}}}),{setShouldDisplayInProgress:BCe,setShouldDisplayInProgressLatents:$Ce,setIsProcessing:z3,addLogEntry:lu,setShouldShowLogViewer:L$,setIsConnected:M$,setSocketId:zke,setShouldConfirmOnDelete:Rq,setOpenAccordions:UCe,setSystemStatus:HCe,setCurrentStatus:uk,setSystemConfig:jCe,setShouldDisplayGuides:VCe,processingCanceled:GCe,errorOccurred:hO,errorSeen:kq,setModelList:D$,setIsCancelable:P$,modelChangeRequested:WCe}=Tq.actions,YCe=Tq.reducer;var Aq={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},I$=ke.createContext&&ke.createContext(Aq),u6="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",kb=globalThis&&globalThis.__assign||function(){return kb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kb.apply(this,arguments)},qCe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Oq(e){return e&&e.map(function(t,n){return ke.createElement(t.tag,kb({key:n},t.attr),Oq(t.child))})}function vr(e){return function(t){return _(KCe,{...kb({attr:kb({},e.attr)},t),children:Oq(e.child)},void 0,!1,{fileName:u6,lineNumber:39,columnNumber:12},this)}}function KCe(e){var t=function(n){var r=e.attr,i=e.size,s=e.title,l=qCe(e,["attr","size","title"]),f=i||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),_("svg",{...kb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:d,style:kb(kb({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),children:[s&&_("title",{children:s},void 0,!1,{fileName:u6,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:u6,lineNumber:55,columnNumber:12},this)};return I$!==void 0?_(I$.Consumer,{children:function(n){return t(n)}},void 0,!1,{fileName:u6,lineNumber:70,columnNumber:38},this):t(Aq)}function ZCe(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function XCe(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11.75a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zm6 0a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37a9.974 9.974 0 0010.41 3.97c.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"}}]})(e)}function Lq(e){return vr({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 QCe(e){return vr({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 15h-2v-6h2v6zm0-8h-2V7h2v2z"}}]})(e)}function JCe(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14L12 4.81M6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2 6.35 7.56z"}}]})(e)}function e4e(e){return vr({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)}function t4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"}}]})(e)}function n4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.19 21.19L2.81 2.81 1.39 4.22l4.2 4.2a7.73 7.73 0 00-1.6 4.7C4 17.48 7.58 21 12 21c1.75 0 3.36-.56 4.67-1.5l3.1 3.1 1.42-1.41zM12 19c-3.31 0-6-2.63-6-5.87 0-1.19.36-2.32 1.02-3.28L12 14.83V19zM8.38 5.56L12 2l5.65 5.56C19.1 8.99 20 10.96 20 13.13c0 1.18-.27 2.29-.74 3.3L12 9.17V4.81L9.8 6.97 8.38 5.56z"}}]})(e)}function r4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function a4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"}}]})(e)}function i4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function Mq(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function o4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function s4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}var a3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/GuidePopover.tsx";const l4e=ia(e=>e.system,e=>e.shouldDisplayGuides),u4e=({children:e,feature:t})=>{const n=tn(l4e),{text:r}=V3e[t];return n?_(i7,{trigger:"hover",children:[_(l7,{children:_(gv,{children:e},void 0,!1,{fileName:a3,lineNumber:34,columnNumber:9},void 0)},void 0,!1,{fileName:a3,lineNumber:33,columnNumber:7},void 0),_(s7,{className:"guide-popover-content",maxWidth:"400px",onClick:i=>i.preventDefault(),cursor:"initial",children:[_(o7,{className:"guide-popover-arrow"},void 0,!1,{fileName:a3,lineNumber:42,columnNumber:9},void 0),_("div",{className:"guide-popover-guide-content",children:r},void 0,!1,{fileName:a3,lineNumber:43,columnNumber:9},void 0)]},void 0,!0,{fileName:a3,lineNumber:36,columnNumber:7},void 0)]},void 0,!0,{fileName:a3,lineNumber:32,columnNumber:5},void 0):null};var ck="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/GuideIcon.tsx";const c4e=Ct(({feature:e,icon:t=Lq},n)=>_(u4e,{feature:e,children:_(gv,{ref:n,children:_(J9,{as:t},void 0,!1,{fileName:ck,lineNumber:16,columnNumber:9},void 0)},void 0,!1,{fileName:ck,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:ck,lineNumber:14,columnNumber:5},void 0));var i3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AccordionItems/InvokeAccordionItem.tsx";function f4e(e){const{header:t,feature:n,options:r}=e;return _(SS,{className:"advanced-settings-item",children:[_("h2",{children:_(bS,{className:"advanced-settings-header",children:[t,_(c4e,{feature:n},void 0,!1,{fileName:i3,lineNumber:25,columnNumber:11},this),_(yS,{},void 0,!1,{fileName:i3,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:i3,lineNumber:23,columnNumber:9},this)},void 0,!1,{fileName:i3,lineNumber:22,columnNumber:7},this),_(xS,{className:"advanced-settings-panel",children:r},void 0,!1,{fileName:i3,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:i3,lineNumber:21,columnNumber:5},this)}var F$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/OptionsAccordion.tsx";const mD=e=>{const{accordionInfo:t}=e,n=tn(l=>l.system.openAccordions),r=ar();return _(G9,{defaultIndex:n,allowMultiple:!0,reduceMotion:!0,onChange:l=>r(UCe(l)),className:"advanced-settings",children:(()=>{const l=[];return t&&Object.keys(t).forEach(f=>{l.push(_(f4e,{header:t[f].header,feature:t[f].feature,options:t[f].options},f,!1,{fileName:F$,lineNumber:40,columnNumber:11},void 0))}),l})()},void 0,!1,{fileName:F$,lineNumber:53,columnNumber:5},void 0)};function d4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function h4e(e){return vr({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 p4e(e){return vr({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 m4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}}]})(e)}function v4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}}]})(e)}function g4e(e){return vr({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 b4e(e){return vr({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 Dq(e){return vr({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 y4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"}}]})(e)}function S4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}}]})(e)}function x4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"}}]})(e)}function C4e(e){return vr({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 N4e(e){return vr({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 Pq(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"}}]})(e)}function w4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]})(e)}function _4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function E4e(e){return vr({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 T4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"}}]})(e)}function R4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"}}]})(e)}function k4e(e){return vr({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 A4e(e){return vr({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 O4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 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-16z"}}]})(e)}function L4e(e){return vr({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)}function M4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function D4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function P4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}function I4e(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"}}]})(e)}const Iq=ia([e=>e.options,e=>e.system,e=>e.inpainting,ch],(e,t,n,r)=>{const{prompt:i,shouldGenerateVariations:s,seedWeights:l,maskPath:f,initialImage:d,seed:m}=e,{isProcessing:b,isConnected:S}=t,{imageToInpaint:N}=n;return!(!i||Boolean(i.match(/^[\s\r\n]+$/))||r==="img2img"&&!d||r==="inpainting"&&!N||f&&!d||b||!S||s&&(!(nD(l)||l==="")||m===-1))},{memoizeOptions:{equalityCheck:ra.isEqual,resultEqualityCheck:ra.isEqual}}),pO=Hu("socketio/generateImage"),F4e=Hu("socketio/runESRGAN"),z4e=Hu("socketio/runFacetool"),B4e=Hu("socketio/deleteImage"),mO=Hu("socketio/requestImages"),z$=Hu("socketio/requestNewImages"),$4e=Hu("socketio/cancelProcessing"),B$=Hu("socketio/uploadImage");Hu("socketio/uploadMaskImage");const U4e=Hu("socketio/requestSystemConfig"),H4e=Hu("socketio/requestModelChange");var $$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIButton.tsx";const o9=e=>{const{label:t,tooltip:n="",styleClass:r,...i}=e;return _(el,{label:n,children:_(nh,{className:r||"",...i,children:t},void 0,!1,{fileName:$$,lineNumber:16,columnNumber:7},void 0)},void 0,!1,{fileName:$$,lineNumber:15,columnNumber:5},void 0)};var U$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIIconButton.tsx";const Ta=e=>{const{tooltip:t="",tooltipPlacement:n="bottom",styleClass:r,onClick:i,cursor:s,...l}=e;return _(el,{label:t,hasArrow:!0,placement:n,children:_(Uu,{className:`icon-button ${r}`,...l,cursor:s||(i?"pointer":"unset"),onClick:i},void 0,!1,{fileName:U$,lineNumber:29,columnNumber:7},void 0)},void 0,!1,{fileName:U$,lineNumber:28,columnNumber:5},void 0)};var fk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/InvokeButton.tsx";function Fq(e){const{iconButton:t=!1,...n}=e,r=ar(),i=tn(Iq),s=tn(ch),l=()=>{r(pO(s))};return $r("ctrl+enter, cmd+enter",()=>{i&&r(pO(s))},[i,s]),t?_(Ta,{"aria-label":"Invoke",type:"submit",icon:_(_4e,{},void 0,!1,{fileName:fk,lineNumber:40,columnNumber:13},this),isDisabled:!i,onClick:l,className:"invoke-btn invoke",tooltip:"Invoke",tooltipPlacement:"bottom",...n},void 0,!1,{fileName:fk,lineNumber:37,columnNumber:5},this):_(o9,{label:"Invoke","aria-label":"Invoke",type:"submit",isDisabled:!i,onClick:l,className:"invoke-btn",...n},void 0,!1,{fileName:fk,lineNumber:49,columnNumber:5},this)}var H$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/CancelButton.tsx";const j4e=ia(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isCancelable:e.isCancelable}),{memoizeOptions:{resultEqualityCheck:ra.isEqual}});function zq(e){const{...t}=e,n=ar(),{isProcessing:r,isConnected:i,isCancelable:s}=tn(j4e),l=()=>n($4e());return $r("shift+x",()=>{(i||r)&&s&&l()},[i,r,s]),_(Ta,{icon:_(s4e,{},void 0,!1,{fileName:H$,lineNumber:46,columnNumber:13},this),tooltip:"Cancel","aria-label":"Cancel",isDisabled:!i||!r||!s,onClick:l,styleClass:"cancel-btn",...t},void 0,!1,{fileName:H$,lineNumber:45,columnNumber:5},this)}var j$="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/Loopback.tsx";const V4e=ia(e=>e.options,e=>e.shouldLoopback),Bq=()=>{const e=ar(),t=tn(V4e);return _(Ta,{"aria-label":"Loopback",tooltip:"Loopback","data-selected":t,icon:_(T4e,{},void 0,!1,{fileName:j$,lineNumber:21,columnNumber:13},void 0),onClick:()=>{e(Q7e(!t))}},void 0,!1,{fileName:j$,lineNumber:17,columnNumber:5},void 0)};var pT="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/ProcessButtons.tsx";const vD=()=>_("div",{className:"process-buttons",children:[_(Fq,{},void 0,!1,{fileName:pT,lineNumber:11,columnNumber:7},void 0),_(Bq,{},void 0,!1,{fileName:pT,lineNumber:12,columnNumber:7},void 0),_(zq,{},void 0,!1,{fileName:pT,lineNumber:13,columnNumber:7},void 0)]},void 0,!0,{fileName:pT,lineNumber:10,columnNumber:5},void 0);var dk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/PromptInput/PromptInput.tsx";const G4e=ia([e=>e.options,ch],(e,t)=>({prompt:e.prompt,activeTabName:t}),{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),gD=()=>{const e=ar(),{prompt:t,activeTabName:n}=tn(G4e),r=tn(Iq),i=O.exports.useRef(null),s=f=>{e($D(f.target.value))};$r("alt+a",()=>{i.current?.focus()},[]);const l=f=>{f.key==="Enter"&&f.shiftKey===!1&&r&&(f.preventDefault(),e(pO(n)))};return _("div",{className:"prompt-bar",children:_(zb,{isInvalid:t.length===0||Boolean(t.match(/^[\s\r\n]+$/)),children:_(fY,{id:"prompt",name:"prompt",placeholder:"I'm dreaming of...",size:"lg",value:t,onChange:s,onKeyDown:l,resize:"vertical",height:30,ref:i},void 0,!1,{fileName:dk,lineNumber:62,columnNumber:9},void 0)},void 0,!1,{fileName:dk,lineNumber:59,columnNumber:7},void 0)},void 0,!1,{fileName:dk,lineNumber:58,columnNumber:5},void 0)};function $q(e){return vr({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146z"}}]})(e)}function Uq(e){return vr({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146zm.122 2.112v-.002.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a4.507 4.507 0 0 0-.288-.076 4.922 4.922 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a4.924 4.924 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034.114 0 .23-.011.343-.04L9.927 2.028c-.029.113-.04.23-.04.343a1.779 1.779 0 0 0 .062.46z"}}]})(e)}function W4e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Y4e(e,t){e.classList?e.classList.add(t):W4e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function V$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function q4e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=V$(e.className,t):e.setAttribute("class",V$(e.className&&e.className.baseVal||"",t))}const G$={disabled:!1};var K4e=At.exports.oneOfType([At.exports.number,At.exports.shape({enter:At.exports.number,exit:At.exports.number,appear:At.exports.number}).isRequired]),Z4e=At.exports.oneOfType([At.exports.string,At.exports.shape({enter:At.exports.string,exit:At.exports.string,active:At.exports.string}),At.exports.shape({enter:At.exports.string,enterDone:At.exports.string,enterActive:At.exports.string,exit:At.exports.string,exitDone:At.exports.string,exitActive:At.exports.string})]);const Hq=ke.createContext(null);var jq=function(t){return t.scrollTop},X4e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-transition-group/esm/Transition.js",XN="unmounted",uS="exited",cS="entering",p3="entered",vO="exiting",h0=function(e){xM(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var l=i,f=l&&!l.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?f?(d=uS,s.appearStatus=cS):d=p3:r.unmountOnExit||r.mountOnEnter?d=XN:d=uS,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var l=i.in;return l&&s.status===XN?{status:uS}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==cS&&l!==p3&&(s=cS):(l===cS||l===p3)&&(s=vO)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,l,f;return s=l=f=i,i!=null&&typeof i!="number"&&(s=i.exit,l=i.enter,f=i.appear!==void 0?i.appear:l),{exit:s,enter:l,appear:f}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===cS){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:DE.findDOMNode(this);l&&jq(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uS&&this.setState({status:XN})},n.performEnter=function(i){var s=this,l=this.props.enter,f=this.context?this.context.isMounting:i,d=this.props.nodeRef?[f]:[DE.findDOMNode(this),f],m=d[0],b=d[1],S=this.getTimeouts(),N=f?S.appear:S.enter;if(!i&&!l||G$.disabled){this.safeSetState({status:p3},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:cS},function(){s.props.onEntering(m,b),s.onTransitionEnd(N,function(){s.safeSetState({status:p3},function(){s.props.onEntered(m,b)})})})},n.performExit=function(){var i=this,s=this.props.exit,l=this.getTimeouts(),f=this.props.nodeRef?void 0:DE.findDOMNode(this);if(!s||G$.disabled){this.safeSetState({status:uS},function(){i.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:vO},function(){i.props.onExiting(f),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:uS},function(){i.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,l=!0;return this.nextCallback=function(f){l&&(l=!1,s.nextCallback=null,i(f))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:DE.findDOMNode(this),f=i==null&&!this.props.addEndListener;if(!l||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],m=d[0],b=d[1];this.props.addEndListener(m,b)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===XN)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var f=bM(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _(Hq.Provider,{value:null,children:typeof l=="function"?l(i,f):ke.cloneElement(ke.Children.only(l),f)},void 0,!1,{fileName:X4e,lineNumber:406,columnNumber:7},this)},t}(ke.Component);h0.contextType=Hq;h0.propTypes={nodeRef:At.exports.shape({current:typeof Element>"u"?At.exports.any:function(e,t,n,r,i,s){var l=e[t];return At.exports.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:At.exports.oneOfType([At.exports.func.isRequired,At.exports.element.isRequired]).isRequired,in:At.exports.bool,mountOnEnter:At.exports.bool,unmountOnExit:At.exports.bool,appear:At.exports.bool,enter:At.exports.bool,exit:At.exports.bool,timeout:function(t){var n=K4e;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:At.exports.func,onEnter:At.exports.func,onEntering:At.exports.func,onEntered:At.exports.func,onExit:At.exports.func,onExiting:At.exports.func,onExited:At.exports.func};function o3(){}h0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:o3,onEntering:o3,onEntered:o3,onExit:o3,onExiting:o3,onExited:o3};h0.UNMOUNTED=XN;h0.EXITED=uS;h0.ENTERING=cS;h0.ENTERED=p3;h0.EXITING=vO;const Vq=h0;var Q4e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-transition-group/esm/CSSTransition.js",J4e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Y4e(t,r)})},hk=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return q4e(t,r)})},bD=function(e){xM(t,e);function t(){for(var r,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(f,d){var m=r.resolveArguments(f,d),b=m[0],S=m[1];r.removeClasses(b,"exit"),r.addClass(b,S?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(f,d)},r.onEntering=function(f,d){var m=r.resolveArguments(f,d),b=m[0],S=m[1],N=S?"appear":"enter";r.addClass(b,N,"active"),r.props.onEntering&&r.props.onEntering(f,d)},r.onEntered=function(f,d){var m=r.resolveArguments(f,d),b=m[0],S=m[1],N=S?"appear":"enter";r.removeClasses(b,N),r.addClass(b,N,"done"),r.props.onEntered&&r.props.onEntered(f,d)},r.onExit=function(f){var d=r.resolveArguments(f),m=d[0];r.removeClasses(m,"appear"),r.removeClasses(m,"enter"),r.addClass(m,"exit","base"),r.props.onExit&&r.props.onExit(f)},r.onExiting=function(f){var d=r.resolveArguments(f),m=d[0];r.addClass(m,"exit","active"),r.props.onExiting&&r.props.onExiting(f)},r.onExited=function(f){var d=r.resolveArguments(f),m=d[0];r.removeClasses(m,"exit"),r.addClass(m,"exit","done"),r.props.onExited&&r.props.onExited(f)},r.resolveArguments=function(f,d){return r.props.nodeRef?[r.props.nodeRef.current,f]:[f,d]},r.getClassNames=function(f){var d=r.props.classNames,m=typeof d=="string",b=m&&d?d+"-":"",S=m?""+b+f:d[f],N=m?S+"-active":d[f+"Active"],w=m?S+"-done":d[f+"Done"];return{baseClassName:S,activeClassName:N,doneClassName:w}},r}var n=t.prototype;return n.addClass=function(i,s,l){var f=this.getClassNames(s)[l+"ClassName"],d=this.getClassNames("enter"),m=d.doneClassName;s==="appear"&&l==="done"&&m&&(f+=" "+m),l==="active"&&i&&jq(i),f&&(this.appliedClasses[s][l]=f,J4e(i,f))},n.removeClasses=function(i,s){var l=this.appliedClasses[s],f=l.base,d=l.active,m=l.done;this.appliedClasses[s]={},f&&hk(i,f),d&&hk(i,d),m&&hk(i,m)},n.render=function(){var i=this.props;i.classNames;var s=bM(i,["classNames"]);return _(Vq,{...s,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited},void 0,!1,{fileName:Q4e,lineNumber:266,columnNumber:25},this)},t}(ke.Component);bD.defaultProps={classNames:""};bD.propTypes=ja({},Vq.propTypes,{classNames:Z4e,onEnter:At.exports.func,onEntering:At.exports.func,onEntered:At.exports.func,onExit:At.exports.func,onExiting:At.exports.func,onExited:At.exports.func});const Gq=bD,Wq=(e,t,n=!0)=>{O.exports.useEffect(()=>{function r(i){e.current&&!e.current.contains(i.target)&&t()}return n&&document.addEventListener("mousedown",r),()=>{n&&document.removeEventListener("mousedown",r)}},[e,n,t])},Qd=(e,t)=>Math.floor(e/t)*t,W$=(e,t)=>Math.round(e/t)*t,eNe={tool:"brush",brushSize:50,maskColor:{r:255,g:90,b:90,a:.5},canvasDimensions:{width:0,height:0},boundingBoxDimensions:{width:512,height:512},boundingBoxCoordinate:{x:0,y:0},boundingBoxPreviewFill:{r:0,g:0,b:0,a:.7},shouldShowBoundingBox:!0,shouldShowBoundingBoxFill:!0,cursorPosition:null,lines:[],pastLines:[],futureLines:[],shouldShowMask:!0,shouldInvertMask:!1,shouldShowCheckboardTransparency:!1,shouldShowBrush:!0,shouldShowBrushPreview:!1,needsCache:!1,isDrawing:!1,stageScale:1,shouldUseInpaintReplace:!1,inpaintReplace:1,shouldLockBoundingBox:!0},tNe=eNe,Yq=m7({name:"inpainting",initialState:tNe,reducers:{setTool:(e,t)=>{e.tool=t.payload},toggleTool:e=>{e.tool=e.tool==="brush"?"eraser":"brush"},setBrushSize:(e,t)=>{e.brushSize=t.payload},addLine:(e,t)=>{e.pastLines.push(e.lines),e.lines.push(t.payload),e.futureLines=[]},addPointToCurrentLine:(e,t)=>{e.lines[e.lines.length-1].points.push(...t.payload)},undo:e=>{if(e.pastLines.length===0)return;const t=e.pastLines.pop();!t||(e.futureLines.unshift(e.lines),e.lines=t)},redo:e=>{if(e.futureLines.length===0)return;const t=e.futureLines.shift();!t||(e.pastLines.push(e.lines),e.lines=t)},clearMask:e=>{e.pastLines.push(e.lines),e.lines=[],e.futureLines=[],e.shouldInvertMask=!1},toggleShouldInvertMask:e=>{e.shouldInvertMask=!e.shouldInvertMask},toggleShouldShowMask:e=>{e.shouldShowMask=!e.shouldShowMask},setShouldInvertMask:(e,t)=>{e.shouldInvertMask=t.payload},setShouldShowMask:(e,t)=>{e.shouldShowMask=t.payload,t.payload||(e.shouldInvertMask=!1)},setShouldShowCheckboardTransparency:(e,t)=>{e.shouldShowCheckboardTransparency=t.payload},setShouldShowBrushPreview:(e,t)=>{e.shouldShowBrushPreview=t.payload},setShouldShowBrush:(e,t)=>{e.shouldShowBrush=t.payload},setMaskColor:(e,t)=>{e.maskColor=t.payload},setCursorPosition:(e,t)=>{e.cursorPosition=t.payload},clearImageToInpaint:e=>{e.imageToInpaint=void 0},setImageToInpaint:(e,t)=>{const{width:n,height:r}=t.payload,{width:i,height:s}=e.boundingBoxDimensions,{x:l,y:f}=e.boundingBoxCoordinate,d={x:l,y:f},m={width:i,height:s};i+l>n&&(i>n&&(m.width=Qd(n,64)),d.x=n-m.width),s+f>r&&(s>r&&(m.height=Qd(r,64)),d.y=r-m.height),e.boundingBoxDimensions=m,e.boundingBoxCoordinate=d,e.canvasDimensions={width:n,height:r},e.imageToInpaint=t.payload,e.needsCache=!0},setCanvasDimensions:(e,t)=>{e.canvasDimensions=t.payload;const{width:n,height:r}=t.payload,{width:i,height:s}=e.boundingBoxDimensions,l=Qd(ra.clamp(i,64,n),64),f=Qd(ra.clamp(s,64,r),64);e.boundingBoxDimensions={width:l,height:f}},setBoundingBoxDimensions:(e,t)=>{e.boundingBoxDimensions=t.payload;const{width:n,height:r}=t.payload,{x:i,y:s}=e.boundingBoxCoordinate,{width:l,height:f}=e.canvasDimensions,d=Qd(l,64),m=Qd(f,64),b=Qd(n,64),S=Qd(r,64),N=i+n-l,w=s+r-f,T=ra.clamp(b,64,d),L=ra.clamp(S,64,m),M=N>0?i-N:i,B=w>0?s-w:s,F=ra.clamp(M,0,d-T),z=ra.clamp(B,0,m-L);e.boundingBoxDimensions={width:T,height:L},e.boundingBoxCoordinate={x:F,y:z}},setBoundingBoxCoordinate:(e,t)=>{e.boundingBoxCoordinate=t.payload},setBoundingBoxPreviewFill:(e,t)=>{e.boundingBoxPreviewFill=t.payload},setNeedsCache:(e,t)=>{e.needsCache=t.payload},setStageScale:(e,t)=>{e.stageScale=t.payload,e.needsCache=!1},setShouldShowBoundingBoxFill:(e,t)=>{e.shouldShowBoundingBoxFill=t.payload},setIsDrawing:(e,t)=>{e.isDrawing=t.payload},setClearBrushHistory:e=>{e.pastLines=[],e.futureLines=[]},setShouldUseInpaintReplace:(e,t)=>{e.shouldUseInpaintReplace=t.payload},setInpaintReplace:(e,t)=>{e.inpaintReplace=t.payload},setShouldLockBoundingBox:(e,t)=>{e.shouldLockBoundingBox=t.payload},toggleShouldLockBoundingBox:e=>{e.shouldLockBoundingBox=!e.shouldLockBoundingBox},setShouldShowBoundingBox:(e,t)=>{e.shouldShowBoundingBox=t.payload}}}),{setTool:Y$,setBrushSize:nNe,addLine:q$,addPointToCurrentLine:K$,setShouldInvertMask:rNe,setShouldShowMask:aNe,setShouldShowCheckboardTransparency:Bke,setShouldShowBrushPreview:pk,setMaskColor:iNe,clearMask:oNe,clearImageToInpaint:yD,undo:sNe,redo:lNe,setCursorPosition:Z$,setCanvasDimensions:$ke,setImageToInpaint:s9,setBoundingBoxDimensions:QN,setBoundingBoxCoordinate:X$,setBoundingBoxPreviewFill:Uke,setNeedsCache:NS,setStageScale:uNe,toggleTool:cNe,setShouldShowBoundingBox:fNe,setShouldShowBoundingBoxFill:dNe,setIsDrawing:JN,setShouldShowBrush:Hke,setClearBrushHistory:hNe,setShouldUseInpaintReplace:pNe,setInpaintReplace:mNe,setShouldLockBoundingBox:qq,toggleShouldLockBoundingBox:vNe}=Yq.actions,gNe=Yq.reducer,Kq=""+new URL("logo.13003d72.png",import.meta.url).href;var qd="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/InvokeOptionsPanel.tsx";const bNe=ia(e=>e.options,e=>{const{shouldShowOptionsPanel:t,shouldHoldOptionsPanelOpen:n,shouldPinOptionsPanel:r,optionsPanelScrollPosition:i}=e;return{shouldShowOptionsPanel:t,shouldHoldOptionsPanelOpen:n,shouldPinOptionsPanel:r,optionsPanelScrollPosition:i}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),SD=e=>{const t=ar(),{shouldShowOptionsPanel:n,shouldHoldOptionsPanelOpen:r,shouldPinOptionsPanel:i}=tn(bNe),s=O.exports.useRef(null),l=O.exports.useRef(null),f=O.exports.useRef(null),{children:d}=e;$r("o",()=>{t(qO(!n))},[n]),$r("shift+o",()=>{N()},[i]);const m=O.exports.useCallback(()=>{i||(t(Z7e(l.current?l.current.scrollTop:0)),t(qO(!1)),t(X7e(!1)))},[t,i]);Wq(s,m,!i);const b=()=>{f.current=window.setTimeout(()=>m(),500)},S=()=>{f.current&&window.clearTimeout(f.current)},N=()=>{t(K7e(!i)),t(NS(!0))};return _(Gq,{nodeRef:s,in:n||r&&!i,unmountOnExit:!0,timeout:200,classNames:"options-panel-wrapper",children:_("div",{className:"options-panel-wrapper","data-pinned":i,tabIndex:1,ref:s,onMouseEnter:i?void 0:S,onMouseOver:i?void 0:S,children:_("div",{className:"options-panel-margin",children:_("div",{className:"options-panel",ref:l,onMouseLeave:w=>{w.target!==l.current?S():!i&&b()},children:[_(el,{label:"Pin Options Panel",children:_("div",{className:"options-panel-pin-button","data-selected":i,onClick:N,children:i?_($q,{},void 0,!1,{fileName:qd,lineNumber:162,columnNumber:42},void 0):_(Uq,{},void 0,!1,{fileName:qd,lineNumber:162,columnNumber:63},void 0)},void 0,!1,{fileName:qd,lineNumber:157,columnNumber:15},void 0)},void 0,!1,{fileName:qd,lineNumber:156,columnNumber:13},void 0),!i&&_("div",{className:"invoke-ai-logo-wrapper",children:[_("img",{src:Kq,alt:"invoke-ai-logo"},void 0,!1,{fileName:qd,lineNumber:167,columnNumber:17},void 0),_("h1",{children:["invoke ",_("strong",{children:"ai"},void 0,!1,{fileName:qd,lineNumber:169,columnNumber:26},void 0)]},void 0,!0,{fileName:qd,lineNumber:168,columnNumber:17},void 0)]},void 0,!0,{fileName:qd,lineNumber:166,columnNumber:15},void 0),d]},void 0,!0,{fileName:qd,lineNumber:145,columnNumber:11},void 0)},void 0,!1,{fileName:qd,lineNumber:144,columnNumber:9},void 0)},void 0,!1,{fileName:qd,lineNumber:132,columnNumber:7},void 0)},void 0,!1,{fileName:qd,lineNumber:122,columnNumber:5},void 0)};var _l="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImagePanel.tsx";function yNe(){const e=tn(n=>n.options.showAdvancedOptions),t={seed:{header:_(sD,{},void 0,!1,{fileName:_l,lineNumber:29,columnNumber:15},this),feature:Tc.SEED,options:_(lD,{},void 0,!1,{fileName:_l,lineNumber:31,columnNumber:16},this)},variations:{header:_(cD,{},void 0,!1,{fileName:_l,lineNumber:34,columnNumber:15},this),feature:Tc.VARIATIONS,options:_(fD,{},void 0,!1,{fileName:_l,lineNumber:36,columnNumber:16},this)},face_restore:{header:_(aD,{},void 0,!1,{fileName:_l,lineNumber:39,columnNumber:15},this),feature:Tc.FACE_CORRECTION,options:_(g7,{},void 0,!1,{fileName:_l,lineNumber:41,columnNumber:16},this)},upscale:{header:_(uD,{},void 0,!1,{fileName:_l,lineNumber:44,columnNumber:15},this),feature:Tc.UPSCALE,options:_(b7,{},void 0,!1,{fileName:_l,lineNumber:46,columnNumber:16},this)},other:{header:_(wq,{},void 0,!1,{fileName:_l,lineNumber:49,columnNumber:15},this),feature:Tc.OTHER,options:_(_q,{},void 0,!1,{fileName:_l,lineNumber:51,columnNumber:16},this)}};return _(SD,{children:[_(gD,{},void 0,!1,{fileName:_l,lineNumber:57,columnNumber:7},this),_(vD,{},void 0,!1,{fileName:_l,lineNumber:58,columnNumber:7},this),_(pD,{},void 0,!1,{fileName:_l,lineNumber:59,columnNumber:7},this),_(Nq,{label:"Image To Image Strength",styleClass:"main-option-block image-to-image-strength-main-option"},void 0,!1,{fileName:_l,lineNumber:60,columnNumber:7},this),_(J3e,{},void 0,!1,{fileName:_l,lineNumber:64,columnNumber:7},this),_(dD,{},void 0,!1,{fileName:_l,lineNumber:65,columnNumber:7},this),e?_(mD,{accordionInfo:t},void 0,!1,{fileName:_l,lineNumber:67,columnNumber:9},this):null]},void 0,!0,{fileName:_l,lineNumber:56,columnNumber:5},this)}const Zq=O.exports.createContext(null);var mT="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/ImageUploaderButton.tsx";const Xq=e=>{const{styleClass:t}=e,n=O.exports.useContext(Zq),r=()=>{n&&n()};return _("div",{className:`image-uploader-button-outer ${t}`,onClick:r,children:_("div",{className:"image-upload-button",children:[_(D4e,{},void 0,!1,{fileName:mT,lineNumber:24,columnNumber:9},void 0),_(_S,{size:"lg",children:"Click or Drag and Drop"},void 0,!1,{fileName:mT,lineNumber:25,columnNumber:9},void 0)]},void 0,!0,{fileName:mT,lineNumber:23,columnNumber:7},void 0)},void 0,!1,{fileName:mT,lineNumber:19,columnNumber:5},void 0)};var cf="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const SNe=ia(e=>e.system,e=>{const{shouldConfirmOnDelete:t,isConnected:n,isProcessing:r}=e;return{shouldConfirmOnDelete:t,isConnected:n,isProcessing:r}}),gO=O.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:i,onClose:s}=j6(),l=ar(),{shouldConfirmOnDelete:f,isConnected:d,isProcessing:m}=tn(SNe),b=O.exports.useRef(null),S=T=>{T.stopPropagation(),f?i():N()},N=()=>{d&&!m&&l(B4e(e)),s()};$r("del",()=>{f?i():N()},[e,f]);const w=T=>l(Rq(!T.target.checked));return _(Ci,{children:[O.exports.cloneElement(t,{onClick:S,ref:n}),_(cme,{isOpen:r,leastDestructiveRef:b,onClose:s,children:_(qw,{children:_(fme,{children:[_(LM,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:cf,lineNumber:103,columnNumber:15},void 0),_(Y6,{children:_(Si,{direction:"column",gap:5,children:[_(hf,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:cf,lineNumber:109,columnNumber:19},void 0),_(zb,{children:_(Si,{alignItems:"center",children:[_(FS,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:cf,lineNumber:114,columnNumber:23},void 0),_(BM,{checked:!f,onChange:w},void 0,!1,{fileName:cf,lineNumber:115,columnNumber:23},void 0)]},void 0,!0,{fileName:cf,lineNumber:113,columnNumber:21},void 0)},void 0,!1,{fileName:cf,lineNumber:112,columnNumber:19},void 0)]},void 0,!0,{fileName:cf,lineNumber:108,columnNumber:17},void 0)},void 0,!1,{fileName:cf,lineNumber:107,columnNumber:15},void 0),_(OM,{children:[_(nh,{ref:b,onClick:s,children:"Cancel"},void 0,!1,{fileName:cf,lineNumber:124,columnNumber:17},void 0),_(nh,{colorScheme:"red",onClick:N,ml:3,children:"Delete"},void 0,!1,{fileName:cf,lineNumber:127,columnNumber:17},void 0)]},void 0,!0,{fileName:cf,lineNumber:123,columnNumber:15},void 0)]},void 0,!0,{fileName:cf,lineNumber:102,columnNumber:13},void 0)},void 0,!1,{fileName:cf,lineNumber:101,columnNumber:11},void 0)},void 0,!1,{fileName:cf,lineNumber:96,columnNumber:9},void 0)]},void 0,!0)});var rS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const Q$=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:r,actionButton:i,children:s})=>_(i7,{trigger:"hover",closeDelay:n,children:[_(l7,{children:_(gv,{children:s},void 0,!1,{fileName:rS,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:rS,lineNumber:30,columnNumber:7},void 0),_(s7,{className:`popover-content ${t}`,children:[_(o7,{className:"popover-arrow"},void 0,!1,{fileName:rS,lineNumber:34,columnNumber:9},void 0),_(UW,{className:"popover-header",children:e},void 0,!1,{fileName:rS,lineNumber:35,columnNumber:9},void 0),_("div",{className:"popover-options",children:[r||null,i]},void 0,!0,{fileName:rS,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:rS,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:rS,lineNumber:29,columnNumber:5},void 0);var ro="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const xNe=ia(e=>e.gallery,e=>e.intermediateImage,{memoizeOptions:{resultEqualityCheck:(e,t)=>e===void 0&&t===void 0||e.uuid===t.uuid}}),CNe=ia([e=>e.system,e=>e.options,xNe,ch],(e,t,n,r)=>{const{isProcessing:i,isConnected:s,isGFPGANAvailable:l,isESRGANAvailable:f}=e,{upscalingLevel:d,facetoolStrength:m,shouldShowImageDetails:b}=t;return{isProcessing:i,isConnected:s,isGFPGANAvailable:l,isESRGANAvailable:f,upscalingLevel:d,facetoolStrength:m,intermediateImage:n,shouldShowImageDetails:b,activeTabName:r}},{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),NNe=({image:e})=>{const t=ar(),{isProcessing:n,isConnected:r,isGFPGANAvailable:i,isESRGANAvailable:s,upscalingLevel:l,facetoolStrength:f,intermediateImage:d,shouldShowImageDetails:m,activeTabName:b}=tn(CNe),S=Ub(),N=()=>{t(a_(e)),t(Jd(1))};$r("shift+i",()=>{e?(N(),S({title:"Sent To Image To Image",status:"success",duration:2500,isClosable:!0})):S({title:"No Image Loaded",description:"No image found to send to image to image module.",status:"error",duration:2500,isClosable:!0})},[e]);const w=()=>e.metadata&&t($7e(e.metadata));$r("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(w(),S({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})):S({title:"Parameters Not Set",description:"No metadata found for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const T=()=>e.metadata&&t(P_(e.metadata.image.seed));$r("s",()=>{e?.metadata?.image?.seed?(T(),S({title:"Seed Set",status:"success",duration:2500,isClosable:!0})):S({title:"Seed Not Set",description:"Could not find seed for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const L=()=>t(F4e(e));$r("u",()=>{s&&Boolean(!d)&&r&&!n&&l?L():S({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,s,d,r,n,l]);const M=()=>t(z4e(e));$r("r",()=>{i&&Boolean(!d)&&r&&!n&&f?M():S({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,i,d,r,n,f]);const B=()=>t(G7e(!m)),F=()=>{t(s9(e)),b!=="inpainting"&&t(Jd("inpainting")),S({title:"Sent to Inpainting",status:"success",duration:2500,isClosable:!0})};return $r("i",()=>{e?B():S({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,m]),_("div",{className:"current-image-options",children:[_(Ta,{icon:_(i4e,{},void 0,!1,{fileName:ro,lineNumber:286,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:N},void 0,!1,{fileName:ro,lineNumber:285,columnNumber:7},void 0),_(Ta,{icon:_(Pq,{},void 0,!1,{fileName:ro,lineNumber:293,columnNumber:15},void 0),tooltip:"Send To Inpainting","aria-label":"Send To Inpainting",onClick:F},void 0,!1,{fileName:ro,lineNumber:292,columnNumber:7},void 0),_(Ta,{icon:_(Dq,{},void 0,!1,{fileName:ro,lineNumber:300,columnNumber:15},void 0),tooltip:"Use All","aria-label":"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:w},void 0,!1,{fileName:ro,lineNumber:299,columnNumber:7},void 0),_(Ta,{icon:_(k4e,{},void 0,!1,{fileName:ro,lineNumber:310,columnNumber:15},void 0),tooltip:"Use Seed","aria-label":"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:T},void 0,!1,{fileName:ro,lineNumber:309,columnNumber:7},void 0),_(Q$,{title:"Restore Faces",popoverOptions:_(g7,{},void 0,!1,{fileName:ro,lineNumber:333,columnNumber:25},void 0),actionButton:_(o9,{label:"Restore Faces",isDisabled:!i||Boolean(d)||!(r&&!n)||!f,onClick:M},void 0,!1,{fileName:ro,lineNumber:335,columnNumber:11},void 0),children:_(Ta,{icon:_(XCe,{},void 0,!1,{fileName:ro,lineNumber:347,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:ro,lineNumber:347,columnNumber:9},void 0)},void 0,!1,{fileName:ro,lineNumber:331,columnNumber:7},void 0),_(Q$,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:_(b7,{},void 0,!1,{fileName:ro,lineNumber:353,columnNumber:25},void 0),actionButton:_(o9,{label:"Upscale Image",isDisabled:!s||Boolean(d)||!(r&&!n)||!l,onClick:L},void 0,!1,{fileName:ro,lineNumber:355,columnNumber:11},void 0),children:_(Ta,{icon:_(t4e,{},void 0,!1,{fileName:ro,lineNumber:367,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:ro,lineNumber:367,columnNumber:9},void 0)},void 0,!1,{fileName:ro,lineNumber:350,columnNumber:7},void 0),_(Ta,{icon:_(QCe,{},void 0,!1,{fileName:ro,lineNumber:371,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:B},void 0,!1,{fileName:ro,lineNumber:370,columnNumber:7},void 0),_(gO,{image:e,children:_(Ta,{icon:_(ZCe,{},void 0,!1,{fileName:ro,lineNumber:379,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(d)||!r||n},void 0,!1,{fileName:ro,lineNumber:378,columnNumber:9},void 0)},void 0,!1,{fileName:ro,lineNumber:377,columnNumber:7},void 0)]},void 0,!0,{fileName:ro,lineNumber:284,columnNumber:5},void 0)},wNe={currentImageUuid:"",shouldPinGallery:!0,shouldShowGallery:!0,galleryScrollPosition:0,galleryImageMinimumWidth:64,galleryImageObjectFit:"cover",shouldHoldGalleryOpen:!1,shouldAutoSwitchToNewImages:!0,currentCategory:"result",categories:{user:{images:[],latest_mtime:void 0,earliest_mtime:void 0,areMoreImagesAvailable:!0},result:{images:[],latest_mtime:void 0,earliest_mtime:void 0,areMoreImagesAvailable:!0}},galleryWidth:300},Qq=m7({name:"gallery",initialState:wNe,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const{uuid:n,category:r}=t.payload,i=e.categories[r].images,s=i.filter(l=>l.uuid!==n);if(n===e.currentImageUuid){const l=i.findIndex(d=>d.uuid===n),f=id.exports.clamp(l,0,s.length-1);e.currentImage=s.length?s[f]:void 0,e.currentImageUuid=s.length?s[f].uuid:""}e.categories[r].images=s},addImage:(e,t)=>{const{image:n,category:r}=t.payload,{uuid:i,url:s,mtime:l}=n,f=e.categories[r];f.images.find(d=>d.url===s&&d.mtime===l)||(f.images.unshift(n),e.shouldAutoSwitchToNewImages&&(e.currentImageUuid=i,e.currentImage=n,e.currentCategory=r),e.intermediateImage=void 0,f.latest_mtime=l)},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},selectNextImage:e=>{const{currentImage:t}=e;if(!t)return;const n=e.categories[t.category].images;if(t){const r=n.findIndex(i=>i.uuid===t.uuid);if(ra.inRange(r,0,n.length)){const i=n[r+1];e.currentImage=i,e.currentImageUuid=i.uuid}}},selectPrevImage:e=>{const{currentImage:t}=e;if(!t)return;const n=e.categories[t.category].images;if(t){const r=n.findIndex(i=>i.uuid===t.uuid);if(ra.inRange(r,1,n.length+1)){const i=n[r-1];e.currentImage=i,e.currentImageUuid=i.uuid}}},addGalleryImages:(e,t)=>{const{images:n,areMoreImagesAvailable:r,category:i}=t.payload,s=e.categories[i].images;if(n.length>0){const l=n.filter(f=>!s.find(d=>d.url===f.url&&d.mtime===f.mtime));if(e.categories[i].images=s.concat(l).sort((f,d)=>d.mtime-f.mtime),!e.currentImage){const f=n[0];e.currentImage=f,e.currentImageUuid=f.uuid}e.categories[i].latest_mtime=n[0].mtime,e.categories[i].earliest_mtime=n[n.length-1].mtime}r!==void 0&&(e.categories[i].areMoreImagesAvailable=r)},setShouldPinGallery:(e,t)=>{e.shouldPinGallery=t.payload},setShouldShowGallery:(e,t)=>{e.shouldShowGallery=t.payload},setGalleryScrollPosition:(e,t)=>{e.galleryScrollPosition=t.payload},setGalleryImageMinimumWidth:(e,t)=>{e.galleryImageMinimumWidth=t.payload},setGalleryImageObjectFit:(e,t)=>{e.galleryImageObjectFit=t.payload},setShouldHoldGalleryOpen:(e,t)=>{e.shouldHoldGalleryOpen=t.payload},setShouldAutoSwitchToNewImages:(e,t)=>{e.shouldAutoSwitchToNewImages=t.payload},setCurrentCategory:(e,t)=>{e.currentCategory=t.payload},setGalleryWidth:(e,t)=>{e.galleryWidth=t.payload}}}),{addImage:vT,clearIntermediateImage:J$,removeImage:Jq,setCurrentImage:eK,addGalleryImages:_Ne,setIntermediateImage:ENe,selectNextImage:tK,selectPrevImage:nK,setShouldPinGallery:TNe,setShouldShowGallery:bO,setGalleryScrollPosition:RNe,setGalleryImageMinimumWidth:aS,setGalleryImageObjectFit:kNe,setShouldHoldGalleryOpen:ANe,setShouldAutoSwitchToNewImages:ONe,setCurrentCategory:gT,setGalleryWidth:bT}=Qq.actions,LNe=Qq.reducer;var C3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",eU={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:C3,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:C3,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:C3,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:C3,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},rK=Ct((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:l,className:f,__css:d,...m}=e,b=fi("chakra-icon",f),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...d},N={ref:t,focusable:s,className:b,__css:S},w=r??eU.viewBox;if(n&&typeof n!="string")return ke.createElement(nt.svg,{as:n,...N,...m});const T=l??eU.path;return ke.createElement(nt.svg,{verticalAlign:"middle",viewBox:w,...N,...m},T)});rK.displayName="Icon";function $n(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,s=O.exports.Children.toArray(e.path),l=Ct((f,d)=>_(rK,{ref:d,viewBox:t,...i,...f,children:s.length?s:_("path",{fill:"currentColor",d:n},void 0,!1,{fileName:C3,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:C3,lineNumber:88,columnNumber:60},this));return l.displayName=r,l}var cn="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";$n({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});$n({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});$n({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});$n({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});$n({displayName:"SunIcon",path:_("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[_("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:cn,lineNumber:42,columnNumber:22},globalThis),_("path",{d:"M12 1v2"},void 0,!1,{fileName:cn,lineNumber:46,columnNumber:23},globalThis),_("path",{d:"M12 21v2"},void 0,!1,{fileName:cn,lineNumber:48,columnNumber:23},globalThis),_("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:cn,lineNumber:50,columnNumber:23},globalThis),_("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:cn,lineNumber:52,columnNumber:23},globalThis),_("path",{d:"M1 12h2"},void 0,!1,{fileName:cn,lineNumber:54,columnNumber:23},globalThis),_("path",{d:"M21 12h2"},void 0,!1,{fileName:cn,lineNumber:56,columnNumber:23},globalThis),_("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:cn,lineNumber:58,columnNumber:23},globalThis),_("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:cn,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:36,columnNumber:25},globalThis)});$n({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});$n({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:_("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:cn,lineNumber:77,columnNumber:25},globalThis)});$n({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});$n({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});$n({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});$n({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});$n({displayName:"ViewIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:cn,lineNumber:119,columnNumber:22},globalThis),_("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:cn,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:117,columnNumber:25},globalThis)});$n({displayName:"ViewOffIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:cn,lineNumber:134,columnNumber:22},globalThis),_("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:cn,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:132,columnNumber:25},globalThis)});$n({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});$n({displayName:"DeleteIcon",path:_("g",{fill:"currentColor",children:_("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:cn,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:cn,lineNumber:153,columnNumber:25},globalThis)});$n({displayName:"RepeatIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:cn,lineNumber:166,columnNumber:22},globalThis),_("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:cn,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:164,columnNumber:25},globalThis)});$n({displayName:"RepeatClockIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:cn,lineNumber:179,columnNumber:22},globalThis),_("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:cn,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:177,columnNumber:25},globalThis)});$n({displayName:"EditIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:cn,lineNumber:195,columnNumber:22},globalThis),_("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:cn,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:190,columnNumber:25},globalThis)});$n({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});$n({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});$n({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});$n({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});$n({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});$n({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});$n({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});$n({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});$n({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var aK=$n({displayName:"ExternalLinkIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:cn,lineNumber:275,columnNumber:22},globalThis),_("path",{d:"M15 3h6v6"},void 0,!1,{fileName:cn,lineNumber:277,columnNumber:23},globalThis),_("path",{d:"M10 14L21 3"},void 0,!1,{fileName:cn,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:270,columnNumber:25},globalThis)});$n({displayName:"LinkIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:cn,lineNumber:290,columnNumber:22},globalThis),_("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:cn,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:288,columnNumber:25},globalThis)});$n({displayName:"PlusSquareIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:cn,lineNumber:306,columnNumber:22},globalThis),_("path",{d:"M12 8v8"},void 0,!1,{fileName:cn,lineNumber:313,columnNumber:23},globalThis),_("path",{d:"M8 12h8"},void 0,!1,{fileName:cn,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:301,columnNumber:25},globalThis)});$n({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});$n({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});$n({displayName:"TimeIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:cn,lineNumber:342,columnNumber:22},globalThis),_("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:cn,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:340,columnNumber:25},globalThis)});$n({displayName:"ArrowRightIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:cn,lineNumber:355,columnNumber:22},globalThis),_("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:cn,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:353,columnNumber:25},globalThis)});$n({displayName:"ArrowLeftIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:cn,lineNumber:368,columnNumber:22},globalThis),_("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:cn,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:366,columnNumber:25},globalThis)});$n({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});$n({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});$n({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});$n({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});$n({displayName:"EmailIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:cn,lineNumber:410,columnNumber:22},globalThis),_("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:cn,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:408,columnNumber:25},globalThis)});$n({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});$n({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});$n({displayName:"SpinnerIcon",path:_(Ci,{children:[_("defs",{children:_("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[_("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:cn,lineNumber:443,columnNumber:22},globalThis),_("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:cn,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:cn,lineNumber:437,columnNumber:83},globalThis),_("g",{transform:"translate(2)",fill:"none",children:[_("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:cn,lineNumber:453,columnNumber:22},globalThis),_("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:cn,lineNumber:459,columnNumber:23},globalThis),_("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:cn,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});$n({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});$n({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:_("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:cn,lineNumber:484,columnNumber:25},globalThis)});$n({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});$n({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});$n({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});$n({displayName:"InfoOutlineIcon",path:_("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[_("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:cn,lineNumber:521,columnNumber:22},globalThis),_("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:cn,lineNumber:527,columnNumber:23},globalThis),_("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:cn,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:516,columnNumber:25},globalThis)});$n({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});$n({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"});$n({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});$n({displayName:"QuestionOutlineIcon",path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("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"},void 0,!1,{fileName:cn,lineNumber:568,columnNumber:22},globalThis),_("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:cn,lineNumber:572,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:cn,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:cn,lineNumber:565,columnNumber:25},globalThis)});$n({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});$n({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});$n({viewBox:"0 0 14 14",path:_("g",{fill:"currentColor",children:_("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:cn,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:cn,lineNumber:603,columnNumber:25},globalThis)});$n({displayName:"MinusIcon",path:_("g",{fill:"currentColor",children:_("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:cn,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:cn,lineNumber:614,columnNumber:25},globalThis)});$n({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function MNe(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}var qn="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/ImageMetaDataViewer/ImageMetadataViewer.tsx";const ao=({label:e,value:t,onClick:n,isLink:r,labelPosition:i})=>_(Si,{gap:2,children:[n&&_(el,{label:`Recall ${e}`,children:_(Uu,{"aria-label":"Use this parameter",icon:_(MNe,{},void 0,!1,{fileName:qn,lineNumber:64,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:qn,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:qn,lineNumber:61,columnNumber:9},void 0),_(Si,{direction:i?"column":"row",children:[_(hf,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:qn,lineNumber:73,columnNumber:9},void 0),r?_(A3,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",_(aK,{mx:"2px"},void 0,!1,{fileName:qn,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:qn,lineNumber:77,columnNumber:11},void 0):_(hf,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:qn,lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:qn,lineNumber:72,columnNumber:7},void 0)]},void 0,!0,{fileName:qn,lineNumber:59,columnNumber:5},void 0),DNe=(e,t)=>e.image.uuid===t.image.uuid,PNe=O.exports.memo(({image:e,styleClass:t})=>{const n=ar(),r=e?.metadata?.image||{},{type:i,postprocessing:s,sampler:l,prompt:f,seed:d,variations:m,steps:b,cfg_scale:S,seamless:N,hires_fix:w,width:T,height:L,strength:M,fit:B,init_image_path:F,mask_image_path:z,orig_path:H,scale:G}=r,K=JSON.stringify(r,null,2);return _("div",{className:`image-metadata-viewer ${t}`,children:_(Si,{gap:1,direction:"column",width:"100%",children:[_(Si,{gap:2,children:[_(hf,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:qn,lineNumber:140,columnNumber:13},void 0),_(A3,{href:e.url,isExternal:!0,children:[e.url,_(aK,{mx:"2px"},void 0,!1,{fileName:qn,lineNumber:143,columnNumber:15},void 0)]},void 0,!0,{fileName:qn,lineNumber:141,columnNumber:13},void 0)]},void 0,!0,{fileName:qn,lineNumber:139,columnNumber:11},void 0),Object.keys(r).length>0?_(Ci,{children:[i&&_(ao,{label:"Generation type",value:i},void 0,!1,{fileName:qn,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(i)&&_(ao,{label:"Original image",value:H},void 0,!1,{fileName:qn,lineNumber:150,columnNumber:17},void 0),i==="gfpgan"&&M!==void 0&&_(ao,{label:"Fix faces strength",value:M,onClick:()=>n(m6(M))},void 0,!1,{fileName:qn,lineNumber:153,columnNumber:17},void 0),i==="esrgan"&&G!==void 0&&_(ao,{label:"Upscaling scale",value:G,onClick:()=>n(VO(G))},void 0,!1,{fileName:qn,lineNumber:160,columnNumber:17},void 0),i==="esrgan"&&M!==void 0&&_(ao,{label:"Upscaling strength",value:M,onClick:()=>n(GO(M))},void 0,!1,{fileName:qn,lineNumber:167,columnNumber:17},void 0),f&&_(ao,{label:"Prompt",labelPosition:"top",value:l6(f),onClick:()=>n($D(f))},void 0,!1,{fileName:qn,lineNumber:174,columnNumber:17},void 0),d!==void 0&&_(ao,{label:"Seed",value:d,onClick:()=>n(P_(d))},void 0,!1,{fileName:qn,lineNumber:182,columnNumber:17},void 0),l&&_(ao,{label:"Sampler",value:l,onClick:()=>n(DZ(l))},void 0,!1,{fileName:qn,lineNumber:189,columnNumber:17},void 0),b&&_(ao,{label:"Steps",value:b,onClick:()=>n(AZ(b))},void 0,!1,{fileName:qn,lineNumber:196,columnNumber:17},void 0),S!==void 0&&_(ao,{label:"CFG scale",value:S,onClick:()=>n(OZ(S))},void 0,!1,{fileName:qn,lineNumber:203,columnNumber:17},void 0),m&&m.length>0&&_(ao,{label:"Seed-weight pairs",value:i9(m),onClick:()=>n($Z(i9(m)))},void 0,!1,{fileName:qn,lineNumber:210,columnNumber:17},void 0),N&&_(ao,{label:"Seamless",value:N,onClick:()=>n(PZ(N))},void 0,!1,{fileName:qn,lineNumber:219,columnNumber:17},void 0),w&&_(ao,{label:"High Resolution Optimization",value:w,onClick:()=>n(IZ(w))},void 0,!1,{fileName:qn,lineNumber:226,columnNumber:17},void 0),T&&_(ao,{label:"Width",value:T,onClick:()=>n(MZ(T))},void 0,!1,{fileName:qn,lineNumber:233,columnNumber:17},void 0),L&&_(ao,{label:"Height",value:L,onClick:()=>n(LZ(L))},void 0,!1,{fileName:qn,lineNumber:240,columnNumber:17},void 0),F&&_(ao,{label:"Initial image",value:F,isLink:!0,onClick:()=>n(a_(F))},void 0,!1,{fileName:qn,lineNumber:247,columnNumber:17},void 0),z&&_(ao,{label:"Mask image",value:z,isLink:!0,onClick:()=>n(WO(z))},void 0,!1,{fileName:qn,lineNumber:255,columnNumber:17},void 0),i==="img2img"&&M&&_(ao,{label:"Image to image strength",value:M,onClick:()=>n(FZ(M))},void 0,!1,{fileName:qn,lineNumber:263,columnNumber:17},void 0),B&&_(ao,{label:"Image to image fit",value:B,onClick:()=>n(BZ(B))},void 0,!1,{fileName:qn,lineNumber:270,columnNumber:17},void 0),s&&s.length>0&&_(Ci,{children:[_(_S,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:qn,lineNumber:278,columnNumber:19},void 0),s.map((Z,ne)=>{if(Z.type==="esrgan"){const{scale:ie,strength:le}=Z;return _(Si,{pl:"2rem",gap:1,direction:"column",children:[_(hf,{size:"md",children:`${ne+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:qn,lineNumber:293,columnNumber:29},void 0),_(ao,{label:"Scale",value:ie,onClick:()=>n(VO(ie))},void 0,!1,{fileName:qn,lineNumber:296,columnNumber:29},void 0),_(ao,{label:"Strength",value:le,onClick:()=>n(GO(le))},void 0,!1,{fileName:qn,lineNumber:301,columnNumber:29},void 0)]},ne,!0,{fileName:qn,lineNumber:287,columnNumber:27},void 0)}else if(Z.type==="gfpgan"){const{strength:ie}=Z;return _(Si,{pl:"2rem",gap:1,direction:"column",children:[_(hf,{size:"md",children:`${ne+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:qn,lineNumber:319,columnNumber:29},void 0),_(ao,{label:"Strength",value:ie,onClick:()=>{n(m6(ie)),n(v6("gfpgan"))}},void 0,!1,{fileName:qn,lineNumber:323,columnNumber:29},void 0)]},ne,!0,{fileName:qn,lineNumber:313,columnNumber:27},void 0)}else if(Z.type==="codeformer"){const{strength:ie,fidelity:le}=Z;return _(Si,{pl:"2rem",gap:1,direction:"column",children:[_(hf,{size:"md",children:`${ne+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:qn,lineNumber:342,columnNumber:29},void 0),_(ao,{label:"Strength",value:ie,onClick:()=>{n(m6(ie)),n(v6("codeformer"))}},void 0,!1,{fileName:qn,lineNumber:346,columnNumber:29},void 0),le&&_(ao,{label:"Fidelity",value:le,onClick:()=>{n(zZ(le)),n(v6("codeformer"))}},void 0,!1,{fileName:qn,lineNumber:355,columnNumber:31},void 0)]},ne,!0,{fileName:qn,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),_(Si,{gap:2,direction:"column",children:[_(Si,{gap:2,children:[_(el,{label:"Copy metadata JSON",children:_(Uu,{"aria-label":"Copy metadata JSON",icon:_(Dq,{},void 0,!1,{fileName:qn,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(K)},void 0,!1,{fileName:qn,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:qn,lineNumber:373,columnNumber:19},void 0),_(hf,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:qn,lineNumber:385,columnNumber:19},void 0)]},void 0,!0,{fileName:qn,lineNumber:372,columnNumber:17},void 0),_("div",{className:"image-json-viewer",children:_("pre",{children:K},void 0,!1,{fileName:qn,lineNumber:388,columnNumber:19},void 0)},void 0,!1,{fileName:qn,lineNumber:387,columnNumber:17},void 0)]},void 0,!0,{fileName:qn,lineNumber:371,columnNumber:15},void 0)]},void 0,!0):_(SG,{width:"100%",pt:10,children:_(hf,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:qn,lineNumber:394,columnNumber:15},void 0)},void 0,!1,{fileName:qn,lineNumber:393,columnNumber:13},void 0)]},void 0,!0,{fileName:qn,lineNumber:138,columnNumber:9},void 0)},void 0,!1,{fileName:qn,lineNumber:137,columnNumber:7},void 0)},DNe);var Ym="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const INe=ia([e=>e.gallery,e=>e.options],(e,t)=>{const{currentCategory:n}=e,{shouldShowImageDetails:r}=t,i=e.categories[n].images,s=i.findIndex(f=>f.uuid===e?.currentImage?.uuid),l=i.length;return{currentCategory:n,isOnFirstImage:s===0,isOnLastImage:!isNaN(s)&&s===l-1,shouldShowImageDetails:r}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}});function FNe(e){const{imageToDisplay:t}=e,n=ar(),{isOnFirstImage:r,isOnLastImage:i,shouldShowImageDetails:s}=tn(INe),[l,f]=O.exports.useState(!1),d=()=>{f(!0)},m=()=>{f(!1)},b=()=>{n(nK())},S=()=>{n(tK())};return _("div",{className:"current-image-preview",children:[_(q9,{src:t.url,width:t.width,height:t.height},void 0,!1,{fileName:Ym,lineNumber:70,columnNumber:7},this),!s&&_("div",{className:"current-image-next-prev-buttons",children:[_("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:d,onMouseOut:m,children:l&&!r&&_(Uu,{"aria-label":"Previous image",icon:_(m4e,{className:"next-prev-button"},void 0,!1,{fileName:Ym,lineNumber:85,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Ym,lineNumber:83,columnNumber:15},this)},void 0,!1,{fileName:Ym,lineNumber:77,columnNumber:11},this),_("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:d,onMouseOut:m,children:l&&!i&&_(Uu,{"aria-label":"Next image",icon:_(v4e,{className:"next-prev-button"},void 0,!1,{fileName:Ym,lineNumber:99,columnNumber:23},this),variant:"unstyled",onClick:S},void 0,!1,{fileName:Ym,lineNumber:97,columnNumber:15},this)},void 0,!1,{fileName:Ym,lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:Ym,lineNumber:76,columnNumber:9},this),s&&_(PNe,{image:t,styleClass:"current-image-metadata"},void 0,!1,{fileName:Ym,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:Ym,lineNumber:69,columnNumber:5},this)}var DN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const zNe=ia([e=>e.gallery,e=>e.options,ch],(e,t,n)=>{const{currentImage:r,intermediateImage:i}=e,{shouldShowImageDetails:s}=t;return{currentImage:r,intermediateImage:i,activeTabName:n,shouldShowImageDetails:s}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),xD=()=>{const{currentImage:e,intermediateImage:t,activeTabName:n}=tn(zNe),r=t||e;return _("div",{className:"current-image-area","data-tab-name":n,children:r?_(Ci,{children:[_(NNe,{image:r},void 0,!1,{fileName:DN,lineNumber:49,columnNumber:11},void 0),_(FNe,{imageToDisplay:r},void 0,!1,{fileName:DN,lineNumber:50,columnNumber:11},void 0)]},void 0,!0):_("div",{className:"current-image-display-placeholder",children:_(o4e,{},void 0,!1,{fileName:DN,lineNumber:54,columnNumber:11},void 0)},void 0,!1,{fileName:DN,lineNumber:53,columnNumber:9},void 0)},void 0,!1,{fileName:DN,lineNumber:46,columnNumber:5},void 0)};var s3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function BNe(){const{initialImage:e}=tn(s=>s.options),t=ar(),n=Ub(),r=s=>{s.stopPropagation(),t(YO())},i=()=>{n({title:"Problem loading parameters",description:"Unable to load init image.",status:"error",isClosable:!0}),t(YO())};return _(Ci,{children:[_("div",{className:"init-image-preview-header",children:[_("h2",{children:"Initial Image"},void 0,!1,{fileName:s3,lineNumber:32,columnNumber:9},this),_(Uu,{isDisabled:!e,"aria-label":"Reset Initial Image",onClick:r,icon:_(r4e,{},void 0,!1,{fileName:s3,lineNumber:37,columnNumber:17},this)},void 0,!1,{fileName:s3,lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:s3,lineNumber:31,columnNumber:7},this),e&&_("div",{className:"init-image-preview",children:_(q9,{fit:"contain",maxWidth:"100%",maxHeight:"100%",src:typeof e=="string"?e:e.url,onError:i},void 0,!1,{fileName:s3,lineNumber:42,columnNumber:11},this)},void 0,!1,{fileName:s3,lineNumber:41,columnNumber:9},this)]},void 0,!0)}var iS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";const $Ne=()=>{const e=tn(r=>r.options.initialImage),{currentImage:t}=tn(r=>r.gallery);return _("div",{className:"workarea-split-view",children:[_("div",{className:"workarea-split-view-left",children:e?_("div",{className:"image-to-image-area",children:_(BNe,{},void 0,!1,{fileName:iS,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:iS,lineNumber:14,columnNumber:5},void 0):_(Xq,{},void 0,!1,{fileName:iS,lineNumber:18,columnNumber:5},void 0)},void 0,!1,{fileName:iS,lineNumber:23,columnNumber:7},void 0),t&&_("div",{className:"workarea-split-view-right",children:_(xD,{},void 0,!1,{fileName:iS,lineNumber:26,columnNumber:11},void 0)},void 0,!1,{fileName:iS,lineNumber:25,columnNumber:9},void 0)]},void 0,!0,{fileName:iS,lineNumber:22,columnNumber:5},void 0)};var UNe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",HNe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=globalThis&&globalThis.__assign||function(){return Rs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Rs.apply(this,arguments)},tU={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},nU={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},yT={width:"20px",height:"20px",position:"absolute"},jNe={top:Rs(Rs({},tU),{top:"-5px"}),right:Rs(Rs({},nU),{left:void 0,right:"-5px"}),bottom:Rs(Rs({},tU),{top:void 0,bottom:"-5px"}),left:Rs(Rs({},nU),{left:"-5px"}),topRight:Rs(Rs({},yT),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Rs(Rs({},yT),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Rs(Rs({},yT),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Rs(Rs({},yT),{left:"-10px",top:"-10px",cursor:"nw-resize"})},VNe=function(e){HNe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return _("div",{className:this.props.className||"",style:Rs(Rs({position:"absolute",userSelect:"none"},jNe[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children},void 0,!1,{fileName:UNe,lineNumber:68,columnNumber:17},this)},t}(O.exports.PureComponent),ST="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/re-resizable/lib/index.js",GNe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xm=globalThis&&globalThis.__assign||function(){return Xm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xm.apply(this,arguments)},WNe={width:"auto",height:"auto"},xT=function(e,t,n){return Math.max(Math.min(e,n),t)},rU=function(e,t){return Math.round(e/t)*t},l3=function(e,t){return new RegExp(e,"i").test(t)},CT=function(e){return Boolean(e.touches&&e.touches.length)},YNe=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},aU=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(s,l,f){return Math.abs(l-e)<Math.abs(t[s]-e)?f:s},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},mk=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},NT=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},qNe=function(e,t,n,r,i,s,l){return r=NT(r,e.width,t,n),i=NT(i,e.height,t,n),s=NT(s,e.width,t,n),l=NT(l,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},KNe=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],iU="__resizable_base__",iK=function(e){GNe(t,e);function t(n){var r=e.call(this,n)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableRight=0,r.resizableTop=0,r.resizableBottom=0,r.targetLeft=0,r.targetTop=0,r.appendBase=function(){if(!r.resizable||!r.window)return null;var i=r.parentNode;if(!i)return null;var s=r.window.document.createElement("div");return s.style.width="100%",s.style.height="100%",s.style.position="absolute",s.style.transform="scale(0, 0)",s.style.left="0",s.style.flex="0 0 100%",s.classList?s.classList.add(iU):s.className+=iU,i.appendChild(s),s},r.removeBase=function(i){var s=r.parentNode;!s||s.removeChild(i)},r.ref=function(i){i&&(r.resizable=i)},r.state={isResizing:!1,width:typeof(r.propsSize&&r.propsSize.width)>"u"?"auto":r.propsSize&&r.propsSize.width,height:typeof(r.propsSize&&r.propsSize.height)>"u"?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||WNe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=l}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(f){if(typeof n.state[f]>"u"||n.state[f]==="auto")return"auto";if(n.propsSize&&n.propsSize[f]&&n.propsSize[f].toString().endsWith("%")){if(n.state[f].toString().endsWith("%"))return n.state[f].toString();var d=n.getParentSize(),m=Number(n.state[f].toString().replace("px","")),b=m/d[f]*100;return b+"%"}return mk(n.state[f])},s=r&&typeof r.width<"u"&&!this.state.isResizing?mk(r.width):i("width"),l=r&&typeof r.height<"u"&&!this.state.isResizing?mk(r.height):i("height");return{width:s,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,s=this.state.direction,l=i&&l3("left",s),f=i&&l3("top",s),d,m;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(d=l?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),m=f?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(d=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,m=f?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(d=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),m=f?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return d&&Number.isFinite(d)&&(n=n&&n<d?n:d),m&&Number.isFinite(m)&&(r=r&&r<m?r:m),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,s=this.props.resizeRatio||1,l=this.state,f=l.direction,d=l.original,m=this.props,b=m.lockAspectRatio,S=m.lockAspectRatioExtraHeight,N=m.lockAspectRatioExtraWidth,w=d.width,T=d.height,L=S||0,M=N||0;return l3("right",f)&&(w=d.width+(n-d.x)*s/i,b&&(T=(w-M)/this.ratio+L)),l3("left",f)&&(w=d.width-(n-d.x)*s/i,b&&(T=(w-M)/this.ratio+L)),l3("bottom",f)&&(T=d.height+(r-d.y)*s/i,b&&(w=(T-L)*this.ratio+M)),l3("top",f)&&(T=d.height-(r-d.y)*s/i,b&&(w=(T-L)*this.ratio+M)),{newWidth:w,newHeight:T}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,s){var l=this.props,f=l.lockAspectRatio,d=l.lockAspectRatioExtraHeight,m=l.lockAspectRatioExtraWidth,b=typeof s.width>"u"?10:s.width,S=typeof i.width>"u"||i.width<0?n:i.width,N=typeof s.height>"u"?10:s.height,w=typeof i.height>"u"||i.height<0?r:i.height,T=d||0,L=m||0;if(f){var M=(N-T)*this.ratio+L,B=(w-T)*this.ratio+L,F=(b-L)/this.ratio+T,z=(S-L)/this.ratio+T,H=Math.max(b,M),G=Math.min(S,B),K=Math.max(N,F),Z=Math.min(w,z);n=xT(n,H,G),r=xT(r,K,Z)}else n=xT(n,b,S),r=xT(r,N,w);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var r=n.getBoundingClientRect();this.parentLeft=r.left,this.parentTop=r.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left,this.targetTop=i.top}if(this.resizable){var s=this.resizable.getBoundingClientRect(),l=s.left,f=s.top,d=s.right,m=s.bottom;this.resizableLeft=l,this.resizableRight=d,this.resizableTop=f,this.resizableBottom=m}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,s=0;if(n.nativeEvent&&YNe(n.nativeEvent)?(i=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&CT(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(n,r,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var f,d=this.window.getComputedStyle(this.resizable);if(d.flexBasis!=="auto"){var m=this.parentNode;if(m){var b=this.window.getComputedStyle(m).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",f=d.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var S={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Xm(Xm({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:f};this.setState(S)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&CT(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,f=i.minWidth,d=i.minHeight,m=CT(n)?n.touches[0].clientX:n.clientX,b=CT(n)?n.touches[0].clientY:n.clientY,S=this.state,N=S.direction,w=S.original,T=S.width,L=S.height,M=this.getParentSize(),B=qNe(M,this.window.innerWidth,this.window.innerHeight,s,l,f,d);s=B.maxWidth,l=B.maxHeight,f=B.minWidth,d=B.minHeight;var F=this.calculateNewSizeFromDirection(m,b),z=F.newHeight,H=F.newWidth,G=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(H=aU(H,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(z=aU(z,this.props.snap.y,this.props.snapGap));var K=this.calculateNewSizeFromAspectRatio(H,z,{width:G.maxWidth,height:G.maxHeight},{width:f,height:d});if(H=K.newWidth,z=K.newHeight,this.props.grid){var Z=rU(H,this.props.grid[0]),ne=rU(z,this.props.grid[1]),ie=this.props.snapGap||0;H=ie===0||Math.abs(Z-H)<=ie?Z:H,z=ie===0||Math.abs(ne-z)<=ie?ne:z}var le={width:H-w.width,height:z-w.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var oe=H/M.width*100;H=oe+"%"}else if(T.endsWith("vw")){var Ae=H/this.window.innerWidth*100;H=Ae+"vw"}else if(T.endsWith("vh")){var de=H/this.window.innerHeight*100;H=de+"vh"}}if(L&&typeof L=="string"){if(L.endsWith("%")){var oe=z/M.height*100;z=oe+"%"}else if(L.endsWith("vw")){var Ae=z/this.window.innerWidth*100;z=Ae+"vw"}else if(L.endsWith("vh")){var de=z/this.window.innerHeight*100;z=de+"vh"}}var Se={width:this.createSizeForCssProperty(H,"width"),height:this.createSizeForCssProperty(z,"height")};this.flexDir==="row"?Se.flexBasis=Se.width:this.flexDir==="column"&&(Se.flexBasis=Se.height),vv.exports.flushSync(function(){r.setState(Se)}),this.props.onResize&&this.props.onResize(n,N,this.resizable,le)}},t.prototype.onMouseUp=function(n){var r=this.state,i=r.isResizing,s=r.direction,l=r.original;if(!(!i||!this.resizable)){var f={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,f),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Xm(Xm({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,s=r.handleStyles,l=r.handleClasses,f=r.handleWrapperStyle,d=r.handleWrapperClass,m=r.handleComponent;if(!i)return null;var b=Object.keys(i).map(function(S){return i[S]!==!1?_(VNe,{direction:S,onResizeStart:n.onResizeStart,replaceStyles:s&&s[S],className:l&&l[S],children:m&&m[S]?m[S]:null},S,!1,{fileName:ST,lineNumber:704,columnNumber:25},this):null});return _("div",{className:d,style:f,children:b},void 0,!1,{fileName:ST,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(l,f){return KNe.indexOf(f)!==-1||(l[f]=n.props[f]),l},{}),i=Xm(Xm(Xm({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return _(s,{...Xm({ref:this.ref,style:i,className:this.props.className},r),children:[this.state.isResizing&&_("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:ST,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:ST,lineNumber:725,columnNumber:17},this)},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(O.exports.PureComponent);function Mi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function O_(e,t=[]){let n=[];function r(s,l){const f=O.exports.createContext(l),d=n.length;n=[...n,l];function m(S){const{scope:N,children:w,...T}=S,L=N?.[e][d]||f,M=O.exports.useMemo(()=>T,Object.values(T));return O.exports.createElement(L.Provider,{value:M},w)}function b(S,N){const w=N?.[e][d]||f,T=O.exports.useContext(w);if(T)return T;if(l!==void 0)return l;throw new Error(`\`${S}\` must be used within \`${s}\``)}return m.displayName=s+"Provider",[m,b]}const i=()=>{const s=n.map(l=>O.exports.createContext(l));return function(f){const d=f?.[e]||s;return O.exports.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return i.scopeName=e,[r,ZNe(i,...t)]}function ZNe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((f,{useScope:d,scopeName:m})=>{const S=d(s)[`__scope${m}`];return{...f,...S}},{});return O.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function XNe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function oK(...e){return t=>e.forEach(n=>XNe(n,t))}function sh(...e){return O.exports.useCallback(oK(...e),e)}const n_=O.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=O.exports.Children.toArray(n),s=i.find(JNe);if(s){const l=s.props.children,f=i.map(d=>d===s?O.exports.Children.count(l)>1?O.exports.Children.only(null):O.exports.isValidElement(l)?l.props.children:null:d);return O.exports.createElement(yO,ja({},r,{ref:t}),O.exports.isValidElement(l)?O.exports.cloneElement(l,void 0,f):null)}return O.exports.createElement(yO,ja({},r,{ref:t}),n)});n_.displayName="Slot";const yO=O.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return O.exports.isValidElement(n)?O.exports.cloneElement(n,{...ewe(r,n.props),ref:oK(t,n.ref)}):O.exports.Children.count(n)>1?O.exports.Children.only(null):null});yO.displayName="SlotClone";const QNe=({children:e})=>O.exports.createElement(O.exports.Fragment,null,e);function JNe(e){return O.exports.isValidElement(e)&&e.type===QNe}function ewe(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...f)=>{s(...f),i(...f)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}const twe=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],l0=twe.reduce((e,t)=>{const n=O.exports.forwardRef((r,i)=>{const{asChild:s,...l}=r,f=s?n_:t;return O.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),O.exports.createElement(f,ja({},l,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sK(e,t){e&&vv.exports.flushSync(()=>e.dispatchEvent(t))}function lK(e){const t=e+"CollectionProvider",[n,r]=O_(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:T,children:L}=w,M=ke.useRef(null),B=ke.useRef(new Map).current;return ke.createElement(i,{scope:T,itemMap:B,collectionRef:M},L)},f=e+"CollectionSlot",d=ke.forwardRef((w,T)=>{const{scope:L,children:M}=w,B=s(f,L),F=sh(T,B.collectionRef);return ke.createElement(n_,{ref:F},M)}),m=e+"CollectionItemSlot",b="data-radix-collection-item",S=ke.forwardRef((w,T)=>{const{scope:L,children:M,...B}=w,F=ke.useRef(null),z=sh(T,F),H=s(m,L);return ke.useEffect(()=>(H.itemMap.set(F,{ref:F,...B}),()=>void H.itemMap.delete(F))),ke.createElement(n_,{[b]:"",ref:z},M)});function N(w){const T=s(e+"CollectionConsumer",w);return ke.useCallback(()=>{const M=T.collectionRef.current;if(!M)return[];const B=Array.from(M.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((H,G)=>B.indexOf(H.ref.current)-B.indexOf(G.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:l,Slot:d,ItemSlot:S},N,r]}const nwe=O.exports.createContext(void 0);function uK(e){const t=O.exports.useContext(nwe);return e||t||"ltr"}function hv(e){const t=O.exports.useRef(e);return O.exports.useEffect(()=>{t.current=e}),O.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rwe(e,t=globalThis?.document){const n=hv(e);O.exports.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const SO="dismissableLayer.update",awe="dismissableLayer.pointerDownOutside",iwe="dismissableLayer.focusOutside";let oU;const owe=O.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),swe=O.exports.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:f,onDismiss:d,...m}=e,b=O.exports.useContext(owe),[S,N]=O.exports.useState(null),w=(n=S?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,T]=O.exports.useState({}),L=sh(t,ne=>N(ne)),M=Array.from(b.layers),[B]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),F=M.indexOf(B),z=S?M.indexOf(S):-1,H=b.layersWithOutsidePointerEventsDisabled.size>0,G=z>=F,K=lwe(ne=>{const ie=ne.target,le=[...b.branches].some(oe=>oe.contains(ie));!G||le||(s?.(ne),f?.(ne),ne.defaultPrevented||d?.())},w),Z=uwe(ne=>{const ie=ne.target;[...b.branches].some(oe=>oe.contains(ie))||(l?.(ne),f?.(ne),ne.defaultPrevented||d?.())},w);return rwe(ne=>{z===b.layers.size-1&&(i?.(ne),!ne.defaultPrevented&&d&&(ne.preventDefault(),d()))},w),O.exports.useEffect(()=>{if(!!S)return r&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(oU=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(S)),b.layers.add(S),sU(),()=>{r&&b.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=oU)}},[S,w,r,b]),O.exports.useEffect(()=>()=>{!S||(b.layers.delete(S),b.layersWithOutsidePointerEventsDisabled.delete(S),sU())},[S,b]),O.exports.useEffect(()=>{const ne=()=>T({});return document.addEventListener(SO,ne),()=>document.removeEventListener(SO,ne)},[]),O.exports.createElement(l0.div,ja({},m,{ref:L,style:{pointerEvents:H?G?"auto":"none":void 0,...e.style},onFocusCapture:Mi(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:Mi(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:Mi(e.onPointerDownCapture,K.onPointerDownCapture)}))});function lwe(e,t=globalThis?.document){const n=hv(e),r=O.exports.useRef(!1),i=O.exports.useRef(()=>{});return O.exports.useEffect(()=>{const s=f=>{if(f.target&&!r.current){let m=function(){cK(awe,n,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=m,t.addEventListener("click",i.current,{once:!0})):m()}r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function uwe(e,t=globalThis?.document){const n=hv(e),r=O.exports.useRef(!1);return O.exports.useEffect(()=>{const i=s=>{s.target&&!r.current&&cK(iwe,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sU(){const e=new CustomEvent(SO);document.dispatchEvent(e)}function cK(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?sK(i,s):i.dispatchEvent(s)}let vk=0;function cwe(){O.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:lU()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:lU()),vk++,()=>{vk===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),vk--}},[])}function lU(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const gk="focusScope.autoFocusOnMount",bk="focusScope.autoFocusOnUnmount",uU={bubbles:!1,cancelable:!0},fwe=O.exports.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[f,d]=O.exports.useState(null),m=hv(i),b=hv(s),S=O.exports.useRef(null),N=sh(t,L=>d(L)),w=O.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.exports.useEffect(()=>{if(r){let L=function(B){if(w.paused||!f)return;const F=B.target;f.contains(F)?S.current=F:fS(S.current,{select:!0})},M=function(B){w.paused||!f||f.contains(B.relatedTarget)||fS(S.current,{select:!0})};return document.addEventListener("focusin",L),document.addEventListener("focusout",M),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",M)}}},[r,f,w.paused]),O.exports.useEffect(()=>{if(f){fU.add(w);const L=document.activeElement;if(!f.contains(L)){const B=new CustomEvent(gk,uU);f.addEventListener(gk,m),f.dispatchEvent(B),B.defaultPrevented||(dwe(gwe(fK(f)),{select:!0}),document.activeElement===L&&fS(f))}return()=>{f.removeEventListener(gk,m),setTimeout(()=>{const B=new CustomEvent(bk,uU);f.addEventListener(bk,b),f.dispatchEvent(B),B.defaultPrevented||fS(L??document.body,{select:!0}),f.removeEventListener(bk,b),fU.remove(w)},0)}}},[f,m,b,w]);const T=O.exports.useCallback(L=>{if(!n&&!r||w.paused)return;const M=L.key==="Tab"&&!L.altKey&&!L.ctrlKey&&!L.metaKey,B=document.activeElement;if(M&&B){const F=L.currentTarget,[z,H]=hwe(F);z&&H?!L.shiftKey&&B===H?(L.preventDefault(),n&&fS(z,{select:!0})):L.shiftKey&&B===z&&(L.preventDefault(),n&&fS(H,{select:!0})):B===F&&L.preventDefault()}},[n,r,w.paused]);return O.exports.createElement(l0.div,ja({tabIndex:-1},l,{ref:N,onKeyDown:T}))});function dwe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fS(r,{select:t}),document.activeElement!==n)return}function hwe(e){const t=fK(e),n=cU(t,e),r=cU(t.reverse(),e);return[n,r]}function fK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cU(e,t){for(const n of e)if(!pwe(n,{upTo:t}))return n}function pwe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mwe(e){return e instanceof HTMLInputElement&&"select"in e}function fS(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mwe(e)&&t&&e.select()}}const fU=vwe();function vwe(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dU(e,t),e.unshift(t)},remove(t){var n;e=dU(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function dU(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gwe(e){return e.filter(t=>t.tagName!=="A")}const J3=Boolean(globalThis?.document)?O.exports.useLayoutEffect:()=>{},bwe=Bk["useId".toString()]||(()=>{});let ywe=0;function Swe(e){const[t,n]=O.exports.useState(bwe());return J3(()=>{e||n(r=>r??String(ywe++))},[e]),e||(t?`radix-${t}`:"")}function mC(e){return e.split("-")[0]}function y7(e){return e.split("-")[1]}function vC(e){return["top","bottom"].includes(mC(e))?"x":"y"}function CD(e){return e==="y"?"height":"width"}function hU(e,t,n){let{reference:r,floating:i}=e;const s=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,f=vC(t),d=CD(f),m=r[d]/2-i[d]/2,b=mC(t),S=f==="x";let N;switch(b){case"top":N={x:s,y:r.y-i.height};break;case"bottom":N={x:s,y:r.y+r.height};break;case"right":N={x:r.x+r.width,y:l};break;case"left":N={x:r.x-i.width,y:l};break;default:N={x:r.x,y:r.y}}switch(y7(t)){case"start":N[f]-=m*(n&&S?-1:1);break;case"end":N[f]+=m*(n&&S?-1:1);break}return N}const xwe=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,f=await(l.isRTL==null?void 0:l.isRTL(t));if(l==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(T=>{let{name:L}=T;return L==="autoPlacement"||L==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:b}=hU(d,r,f),S=r,N={},w=0;for(let T=0;T<s.length;T++){const{name:L,fn:M}=s[T],{x:B,y:F,data:z,reset:H}=await M({x:m,y:b,initialPlacement:r,placement:S,strategy:i,middlewareData:N,rects:d,platform:l,elements:{reference:e,floating:t}});if(m=B??m,b=F??b,N={...N,[L]:{...N[L],...z}},w>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),H&&w<=50){w++,typeof H=="object"&&(H.placement&&(S=H.placement),H.rects&&(d=H.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):H.rects),{x:m,y:b}=hU(d,S,f)),T=-1;continue}}return{x:m,y:b,placement:S,strategy:i,middlewareData:N}};function Cwe(e){return{top:0,right:0,bottom:0,left:0,...e}}function dK(e){return typeof e!="number"?Cwe(e):{top:e,right:e,bottom:e,left:e}}function l9(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function u9(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:f,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:S="floating",altBoundary:N=!1,padding:w=0}=t,T=dK(w),M=f[N?S==="floating"?"reference":"floating":S],B=l9(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(M)))==null||n?M:M.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:m,rootBoundary:b,strategy:d})),F=l9(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:S==="floating"?{...l.floating,x:r,y:i}:l.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),strategy:d}):l[S]);return{top:B.top-F.top+T.top,bottom:F.bottom-B.bottom+T.bottom,left:B.left-F.left+T.left,right:F.right-B.right+T.right}}const Nwe=Math.min,wwe=Math.max;function xO(e,t,n){return wwe(e,Nwe(t,n))}const pU=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:i,y:s,placement:l,rects:f,platform:d}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const m=dK(r),b={x:i,y:s},S=vC(l),N=y7(l),w=CD(S),T=await d.getDimensions(n),L=S==="y"?"top":"left",M=S==="y"?"bottom":"right",B=f.reference[w]+f.reference[S]-b[S]-f.floating[w],F=b[S]-f.reference[S],z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(n));let H=z?S==="y"?z.clientHeight||0:z.clientWidth||0:0;H===0&&(H=f.floating[w]);const G=B/2-F/2,K=m[L],Z=H-T[w]-m[M],ne=H/2-T[w]/2+G,ie=xO(K,ne,Z),Ae=(N==="start"?m[L]:m[M])>0&&ne!==ie&&f.reference[w]<=f.floating[w]?ne<K?K-ne:Z-ne:0;return{[S]:b[S]-Ae,data:{[S]:ie,centerOffset:ne-ie}}}}),_we={left:"right",right:"left",bottom:"top",top:"bottom"};function c9(e){return e.replace(/left|right|bottom|top/g,t=>_we[t])}function Ewe(e,t,n){n===void 0&&(n=!1);const r=y7(e),i=vC(e),s=CD(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=c9(l)),{main:l,cross:c9(l)}}const Twe={start:"end",end:"start"};function mU(e){return e.replace(/start|end/g,t=>Twe[t])}const Rwe=["top","right","bottom","left"];function kwe(e){const t=c9(e);return[mU(e),t,mU(t)]}const Awe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:N="bestFit",flipAlignment:w=!0,...T}=e,L=mC(r),B=S||(L===l||!w?[c9(l)]:kwe(l)),F=[l,...B],z=await u9(t,T),H=[];let G=((n=i.flip)==null?void 0:n.overflows)||[];if(m&&H.push(z[L]),b){const{main:ie,cross:le}=Ewe(r,s,await(f.isRTL==null?void 0:f.isRTL(d.floating)));H.push(z[ie],z[le])}if(G=[...G,{placement:r,overflows:H}],!H.every(ie=>ie<=0)){var K,Z;const ie=((K=(Z=i.flip)==null?void 0:Z.index)!=null?K:0)+1,le=F[ie];if(le)return{data:{index:ie,overflows:G},reset:{placement:le}};let oe="bottom";switch(N){case"bestFit":{var ne;const Ae=(ne=G.map(de=>[de,de.overflows.filter(Se=>Se>0).reduce((Se,Me)=>Se+Me,0)]).sort((de,Se)=>de[1]-Se[1])[0])==null?void 0:ne[0].placement;Ae&&(oe=Ae);break}case"initialPlacement":oe=l;break}if(r!==oe)return{reset:{placement:oe}}}return{}}}};function vU(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gU(e){return Rwe.some(t=>e[t]>=0)}const Owe=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const s=await u9(r,{...n,elementContext:"reference"}),l=vU(s,i.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:gU(l)}}}case"escaped":{const s=await u9(r,{...n,altBoundary:!0}),l=vU(s,i.floating);return{data:{escapedOffsets:l,escaped:gU(l)}}}default:return{}}}}};async function Lwe(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=mC(n),f=y7(n),d=vC(n)==="x",m=["left","top"].includes(l)?-1:1,b=s&&d?-1:1,S=typeof t=="function"?t(e):t;let{mainAxis:N,crossAxis:w,alignmentAxis:T}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...S};return f&&typeof T=="number"&&(w=f==="end"?T*-1:T),d?{x:w*b,y:N*m}:{x:N*m,y:w*b}}const Mwe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await Lwe(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function hK(e){return e==="x"?"y":"x"}const Dwe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:M=>{let{x:B,y:F}=M;return{x:B,y:F}}},...d}=e,m={x:n,y:r},b=await u9(t,d),S=vC(mC(i)),N=hK(S);let w=m[S],T=m[N];if(s){const M=S==="y"?"top":"left",B=S==="y"?"bottom":"right",F=w+b[M],z=w-b[B];w=xO(F,w,z)}if(l){const M=N==="y"?"top":"left",B=N==="y"?"bottom":"right",F=T+b[M],z=T-b[B];T=xO(F,T,z)}const L=f.fn({...t,[S]:w,[N]:T});return{...L,data:{x:L.x-n,y:L.y-r}}}}},Pwe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:m=!0}=e,b={x:n,y:r},S=vC(i),N=hK(S);let w=b[S],T=b[N];const L=typeof f=="function"?f({...s,placement:i}):f,M=typeof L=="number"?{mainAxis:L,crossAxis:0}:{mainAxis:0,crossAxis:0,...L};if(d){const G=S==="y"?"height":"width",K=s.reference[S]-s.floating[G]+M.mainAxis,Z=s.reference[S]+s.reference[G]-M.mainAxis;w<K?w=K:w>Z&&(w=Z)}if(m){var B,F,z,H;const G=S==="y"?"width":"height",K=["top","left"].includes(mC(i)),Z=s.reference[N]-s.floating[G]+(K&&(B=(F=l.offset)==null?void 0:F[N])!=null?B:0)+(K?0:M.crossAxis),ne=s.reference[N]+s.reference[G]+(K?0:(z=(H=l.offset)==null?void 0:H[N])!=null?z:0)-(K?M.crossAxis:0);T<Z?T=Z:T>ne&&(T=ne)}return{[S]:w,[N]:T}}}};function pK(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function p0(e){if(e==null)return window;if(!pK(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function L_(e){return p0(e).getComputedStyle(e)}function u0(e){return pK(e)?"":e?(e.nodeName||"").toLowerCase():""}function mK(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function pv(e){return e instanceof p0(e).HTMLElement}function Fb(e){return e instanceof p0(e).Element}function Iwe(e){return e instanceof p0(e).Node}function ND(e){if(typeof ShadowRoot>"u")return!1;const t=p0(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function S7(e){const{overflow:t,overflowX:n,overflowY:r}=L_(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Fwe(e){return["table","td","th"].includes(u0(e))}function vK(e){const t=/firefox/i.test(mK()),n=L_(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function gK(){return!/^((?!chrome|android).)*safari/i.test(mK())}const bU=Math.min,Nw=Math.max,f9=Math.round;function c0(e,t,n){var r,i,s,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const f=e.getBoundingClientRect();let d=1,m=1;t&&pv(e)&&(d=e.offsetWidth>0&&f9(f.width)/e.offsetWidth||1,m=e.offsetHeight>0&&f9(f.height)/e.offsetHeight||1);const b=Fb(e)?p0(e):window,S=!gK()&&n,N=(f.left+(S&&(r=(i=b.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/d,w=(f.top+(S&&(s=(l=b.visualViewport)==null?void 0:l.offsetTop)!=null?s:0))/m,T=f.width/d,L=f.height/m;return{width:T,height:L,top:w,right:N+T,bottom:w+L,left:N,x:N,y:w}}function Hb(e){return((Iwe(e)?e.ownerDocument:e.document)||window.document).documentElement}function x7(e){return Fb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bK(e){return c0(Hb(e)).left+x7(e).scrollLeft}function zwe(e){const t=c0(e);return f9(t.width)!==e.offsetWidth||f9(t.height)!==e.offsetHeight}function Bwe(e,t,n){const r=pv(t),i=Hb(t),s=c0(e,r&&zwe(t),n==="fixed");let l={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(r||!r&&n!=="fixed")if((u0(t)!=="body"||S7(i))&&(l=x7(t)),pv(t)){const d=c0(t,!0);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else i&&(f.x=bK(i));return{x:s.left+l.scrollLeft-f.x,y:s.top+l.scrollTop-f.y,width:s.width,height:s.height}}function yK(e){return u0(e)==="html"?e:e.assignedSlot||e.parentNode||(ND(e)?e.host:null)||Hb(e)}function yU(e){return!pv(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function $we(e){let t=yK(e);for(ND(t)&&(t=t.host);pv(t)&&!["html","body"].includes(u0(t));){if(vK(t))return t;t=t.parentNode}return null}function CO(e){const t=p0(e);let n=yU(e);for(;n&&Fwe(n)&&getComputedStyle(n).position==="static";)n=yU(n);return n&&(u0(n)==="html"||u0(n)==="body"&&getComputedStyle(n).position==="static"&&!vK(n))?t:n||$we(e)||t}function SU(e){if(pv(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=c0(e);return{width:t.width,height:t.height}}function Uwe(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=pv(n),s=Hb(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if((i||!i&&r!=="fixed")&&((u0(n)!=="body"||S7(s))&&(l=x7(n)),pv(n))){const d=c0(n,!0);f.x=d.x+n.clientLeft,f.y=d.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+f.x,y:t.y-l.scrollTop+f.y}}function Hwe(e,t){const n=p0(e),r=Hb(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){s=i.width,l=i.height;const m=gK();(m||!m&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}return{width:s,height:l,x:f,y:d}}function jwe(e){var t;const n=Hb(e),r=x7(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Nw(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Nw(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let f=-r.scrollLeft+bK(e);const d=-r.scrollTop;return L_(i||n).direction==="rtl"&&(f+=Nw(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function SK(e){const t=yK(e);return["html","body","#document"].includes(u0(t))?e.ownerDocument.body:pv(t)&&S7(t)?t:SK(t)}function d9(e,t){var n;t===void 0&&(t=[]);const r=SK(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=p0(r),l=i?[s].concat(s.visualViewport||[],S7(r)?r:[]):r,f=t.concat(l);return i?f:f.concat(d9(l))}function Vwe(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ND(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function Gwe(e,t){const n=c0(e,!1,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function xU(e,t,n){return t==="viewport"?l9(Hwe(e,n)):Fb(t)?Gwe(t,n):l9(jwe(Hb(e)))}function Wwe(e){const t=d9(e),r=["absolute","fixed"].includes(L_(e).position)&&pv(e)?CO(e):e;return Fb(r)?t.filter(i=>Fb(i)&&Vwe(i,r)&&u0(i)!=="body"):[]}function Ywe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Wwe(t):[].concat(n),r],f=l[0],d=l.reduce((m,b)=>{const S=xU(t,b,i);return m.top=Nw(S.top,m.top),m.right=bU(S.right,m.right),m.bottom=bU(S.bottom,m.bottom),m.left=Nw(S.left,m.left),m},xU(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}const qwe={getClippingRect:Ywe,convertOffsetParentRelativeRectToViewportRelativeRect:Uwe,isElement:Fb,getDimensions:SU,getOffsetParent:CO,getDocumentElement:Hb,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:Bwe(t,CO(n),r),floating:{...SU(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>L_(e).direction==="rtl"};function Kwe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:f=!1}=r,d=i&&!f,m=s&&!f,b=d||m?[...Fb(e)?d9(e):[],...d9(t)]:[];b.forEach(L=>{d&&L.addEventListener("scroll",n,{passive:!0}),m&&L.addEventListener("resize",n)});let S=null;if(l){let L=!0;S=new ResizeObserver(()=>{L||n(),L=!1}),Fb(e)&&!f&&S.observe(e),S.observe(t)}let N,w=f?c0(e):null;f&&T();function T(){const L=c0(e);w&&(L.x!==w.x||L.y!==w.y||L.width!==w.width||L.height!==w.height)&&n(),w=L,N=requestAnimationFrame(T)}return n(),()=>{var L;b.forEach(M=>{d&&M.removeEventListener("scroll",n),m&&M.removeEventListener("resize",n)}),(L=S)==null||L.disconnect(),S=null,f&&cancelAnimationFrame(N)}}const Zwe=(e,t,n)=>xwe(e,t,{platform:qwe,...n});var NO=typeof document<"u"?O.exports.useLayoutEffect:O.exports.useEffect;function wO(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!wO(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!wO(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xwe(e){const t=O.exports.useRef(e);return NO(()=>{t.current=e}),t}function Qwe(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=e===void 0?{}:e;const s=O.exports.useRef(null),l=O.exports.useRef(null),f=Xwe(i),d=O.exports.useRef(null),[m,b]=O.exports.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[S,N]=O.exports.useState(t);wO(S?.map(z=>{let{options:H}=z;return H}),t?.map(z=>{let{options:H}=z;return H}))||N(t);const w=O.exports.useCallback(()=>{!s.current||!l.current||Zwe(s.current,l.current,{middleware:S,placement:n,strategy:r}).then(z=>{T.current&&vv.exports.flushSync(()=>{b(z)})})},[S,n,r]);NO(()=>{T.current&&w()},[w]);const T=O.exports.useRef(!1);NO(()=>(T.current=!0,()=>{T.current=!1}),[]);const L=O.exports.useCallback(()=>{if(typeof d.current=="function"&&(d.current(),d.current=null),s.current&&l.current)if(f.current){const z=f.current(s.current,l.current,w);d.current=z}else w()},[w,f]),M=O.exports.useCallback(z=>{s.current=z,L()},[L]),B=O.exports.useCallback(z=>{l.current=z,L()},[L]),F=O.exports.useMemo(()=>({reference:s,floating:l}),[]);return O.exports.useMemo(()=>({...m,update:w,refs:F,reference:M,floating:B}),[m,w,F,M,B])}const Jwe=e=>{const{element:t,padding:n}=e;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return r(t)?t.current!=null?pU({element:t.current,padding:n}).fn(i):{}:t?pU({element:t,padding:n}).fn(i):{}}}};function e_e(e){const[t,n]=O.exports.useState(void 0);return J3(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,f=m.blockSize}else l=e.offsetWidth,f=e.offsetHeight;n({width:l,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const xK="Popper",[wD,CK]=O_(xK),[t_e,NK]=wD(xK),n_e=e=>{const{__scopePopper:t,children:n}=e,[r,i]=O.exports.useState(null);return O.exports.createElement(t_e,{scope:t,anchor:r,onAnchorChange:i},n)},r_e="PopperAnchor",a_e=O.exports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=NK(r_e,n),l=O.exports.useRef(null),f=sh(t,l);return O.exports.useEffect(()=>{s.onAnchorChange(r?.current||l.current)}),r?null:O.exports.createElement(l0.div,ja({},i,{ref:f}))}),h9="PopperContent",[i_e,jke]=wD(h9),[o_e,s_e]=wD(h9,{hasParent:!1,positionUpdateFns:new Set}),l_e=O.exports.forwardRef((e,t)=>{var n,r,i,s,l,f,d,m;const{__scopePopper:b,side:S="bottom",sideOffset:N=0,align:w="center",alignOffset:T=0,arrowPadding:L=0,collisionBoundary:M=[],collisionPadding:B=0,sticky:F="partial",hideWhenDetached:z=!1,avoidCollisions:H=!0,...G}=e,K=NK(h9,b),[Z,ne]=O.exports.useState(null),ie=sh(t,an=>ne(an)),[le,oe]=O.exports.useState(null),Ae=e_e(le),de=(n=Ae?.width)!==null&&n!==void 0?n:0,Se=(r=Ae?.height)!==null&&r!==void 0?r:0,Me=S+(w!=="center"?"-"+w:""),_e=typeof B=="number"?B:{top:0,right:0,bottom:0,left:0,...B},J=Array.isArray(M)?M:[M],he=J.length>0,ve={padding:_e,boundary:J.filter(c_e),altBoundary:he},{reference:ye,floating:xe,strategy:Ve,x:Pe,y:Qe,placement:wt,middlewareData:Ot,update:Ut}=Qwe({strategy:"fixed",placement:Me,whileElementsMounted:Kwe,middleware:[Mwe({mainAxis:N+Se,alignmentAxis:T}),H?Dwe({mainAxis:!0,crossAxis:!1,limiter:F==="partial"?Pwe():void 0,...ve}):void 0,le?Jwe({element:le,padding:L}):void 0,H?Awe({...ve}):void 0,f_e({arrowWidth:de,arrowHeight:Se}),z?Owe({strategy:"referenceHidden"}):void 0].filter(u_e)});J3(()=>{ye(K.anchor)},[ye,K.anchor]);const ut=Pe!==null&&Qe!==null,[It,Qt]=wK(wt),pn=(i=Ot.arrow)===null||i===void 0?void 0:i.x,ht=(s=Ot.arrow)===null||s===void 0?void 0:s.y,gn=((l=Ot.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[De,kt]=O.exports.useState();J3(()=>{Z&&kt(window.getComputedStyle(Z).zIndex)},[Z]);const{hasParent:Zt,positionUpdateFns:Pt}=s_e(h9,b),un=!Zt;O.exports.useLayoutEffect(()=>{if(!un)return Pt.add(Ut),()=>{Pt.delete(Ut)}},[un,Pt,Ut]),O.exports.useLayoutEffect(()=>{un&&ut&&Array.from(Pt).reverse().forEach(an=>requestAnimationFrame(an))},[un,ut,Pt]);const fr={"data-side":It,"data-align":Qt,...G,ref:ie,style:{...G.style,animation:ut?void 0:"none",opacity:(f=Ot.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}};return O.exports.createElement("div",{ref:xe,"data-radix-popper-content-wrapper":"",style:{position:Ve,left:0,top:0,transform:ut?`translate3d(${Math.round(Pe)}px, ${Math.round(Qe)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:De,["--radix-popper-transform-origin"]:[(d=Ot.transformOrigin)===null||d===void 0?void 0:d.x,(m=Ot.transformOrigin)===null||m===void 0?void 0:m.y].join(" ")}},O.exports.createElement(i_e,{scope:b,placedSide:It,onArrowChange:oe,arrowX:pn,arrowY:ht,shouldHideArrow:gn},un?O.exports.createElement(o_e,{scope:b,hasParent:!0,positionUpdateFns:Pt},O.exports.createElement(l0.div,fr)):O.exports.createElement(l0.div,fr)))});function u_e(e){return e!==void 0}function c_e(e){return e!==null}const f_e=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,s,l;const{placement:f,rects:d,middlewareData:m}=t,S=((n=m.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,N=S?0:e.arrowWidth,w=S?0:e.arrowHeight,[T,L]=wK(f),M={start:"0%",center:"50%",end:"100%"}[L],B=((r=(i=m.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+N/2,F=((s=(l=m.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+w/2;let z="",H="";return T==="bottom"?(z=S?M:`${B}px`,H=`${-w}px`):T==="top"?(z=S?M:`${B}px`,H=`${d.floating.height+w}px`):T==="right"?(z=`${-w}px`,H=S?M:`${F}px`):T==="left"&&(z=`${d.floating.width+w}px`,H=S?M:`${F}px`),{data:{x:z,y:H}}}});function wK(e){const[t,n="center"]=e.split("-");return[t,n]}const d_e=n_e,h_e=a_e,p_e=l_e;function m_e(e,t){return O.exports.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const _K=e=>{const{present:t,children:n}=e,r=v_e(t),i=typeof n=="function"?n({present:r.isPresent}):O.exports.Children.only(n),s=sh(r.ref,i.ref);return typeof n=="function"||r.isPresent?O.exports.cloneElement(i,{ref:s}):null};_K.displayName="Presence";function v_e(e){const[t,n]=O.exports.useState(),r=O.exports.useRef({}),i=O.exports.useRef(e),s=O.exports.useRef("none"),l=e?"mounted":"unmounted",[f,d]=m_e(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.exports.useEffect(()=>{const m=wT(r.current);s.current=f==="mounted"?m:"none"},[f]),J3(()=>{const m=r.current,b=i.current;if(b!==e){const N=s.current,w=wT(m);e?d("MOUNT"):w==="none"||m?.display==="none"?d("UNMOUNT"):d(b&&N!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),J3(()=>{if(t){const m=S=>{const w=wT(r.current).includes(S.animationName);S.target===t&&w&&vv.exports.flushSync(()=>d("ANIMATION_END"))},b=S=>{S.target===t&&(s.current=wT(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:O.exports.useCallback(m=>{m&&(r.current=getComputedStyle(m)),n(m)},[])}}function wT(e){return e?.animationName||"none"}function g_e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=b_e({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,f=hv(n),d=O.exports.useCallback(m=>{if(s){const S=typeof m=="function"?m(e):m;S!==e&&f(S)}else i(m)},[s,e,i,f]);return[l,d]}function b_e({defaultProp:e,onChange:t}){const n=O.exports.useState(e),[r]=n,i=O.exports.useRef(r),s=hv(t);return O.exports.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}const yk="rovingFocusGroup.onEntryFocus",y_e={bubbles:!1,cancelable:!0},_D="RovingFocusGroup",[_O,EK,S_e]=lK(_D),[x_e,TK]=O_(_D,[S_e]),[C_e,N_e]=x_e(_D),w_e=O.exports.forwardRef((e,t)=>O.exports.createElement(_O.Provider,{scope:e.__scopeRovingFocusGroup},O.exports.createElement(_O.Slot,{scope:e.__scopeRovingFocusGroup},O.exports.createElement(__e,ja({},e,{ref:t}))))),__e=O.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:m,...b}=e,S=O.exports.useRef(null),N=sh(t,S),w=uK(s),[T=null,L]=g_e({prop:l,defaultProp:f,onChange:d}),[M,B]=O.exports.useState(!1),F=hv(m),z=EK(n),H=O.exports.useRef(!1),[G,K]=O.exports.useState(0);return O.exports.useEffect(()=>{const Z=S.current;if(Z)return Z.addEventListener(yk,F),()=>Z.removeEventListener(yk,F)},[F]),O.exports.createElement(C_e,{scope:n,orientation:r,dir:w,loop:i,currentTabStopId:T,onItemFocus:O.exports.useCallback(Z=>L(Z),[L]),onItemShiftTab:O.exports.useCallback(()=>B(!0),[]),onFocusableItemAdd:O.exports.useCallback(()=>K(Z=>Z+1),[]),onFocusableItemRemove:O.exports.useCallback(()=>K(Z=>Z-1),[])},O.exports.createElement(l0.div,ja({tabIndex:M||G===0?-1:0,"data-orientation":r},b,{ref:N,style:{outline:"none",...e.style},onMouseDown:Mi(e.onMouseDown,()=>{H.current=!0}),onFocus:Mi(e.onFocus,Z=>{const ne=!H.current;if(Z.target===Z.currentTarget&&ne&&!M){const ie=new CustomEvent(yk,y_e);if(Z.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const le=z().filter(Me=>Me.focusable),oe=le.find(Me=>Me.active),Ae=le.find(Me=>Me.id===T),Se=[oe,Ae,...le].filter(Boolean).map(Me=>Me.ref.current);RK(Se)}}H.current=!1}),onBlur:Mi(e.onBlur,()=>B(!1))})))}),E_e="RovingFocusGroupItem",T_e=O.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...s}=e,l=Swe(),f=N_e(E_e,n),d=f.currentTabStopId===l,m=EK(n),{onFocusableItemAdd:b,onFocusableItemRemove:S}=f;return O.exports.useEffect(()=>{if(r)return b(),()=>S()},[r,b,S]),O.exports.createElement(_O.ItemSlot,{scope:n,id:l,focusable:r,active:i},O.exports.createElement(l0.span,ja({tabIndex:d?0:-1,"data-orientation":f.orientation},s,{ref:t,onMouseDown:Mi(e.onMouseDown,N=>{r?f.onItemFocus(l):N.preventDefault()}),onFocus:Mi(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:Mi(e.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){f.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const w=A_e(N,f.orientation,f.dir);if(w!==void 0){N.preventDefault();let L=m().filter(M=>M.focusable).map(M=>M.ref.current);if(w==="last")L.reverse();else if(w==="prev"||w==="next"){w==="prev"&&L.reverse();const M=L.indexOf(N.currentTarget);L=f.loop?O_e(L,M+1):L.slice(M+1)}setTimeout(()=>RK(L))}})})))}),R_e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k_e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A_e(e,t,n){const r=k_e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return R_e[r]}function RK(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function O_e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const L_e=w_e,M_e=T_e,D_e=["Enter"," "],P_e=["ArrowDown","PageUp","Home"],kK=["ArrowUp","PageDown","End"],I_e=[...P_e,...kK],C7="Menu",[EO,F_e,z_e]=lK(C7),[VS,AK]=O_(C7,[z_e,CK,TK]),ED=CK(),OK=TK(),[B_e,N7]=VS(C7),[$_e,TD]=VS(C7),U_e=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,f=ED(t),[d,m]=O.exports.useState(null),b=O.exports.useRef(!1),S=hv(s),N=uK(i);return O.exports.useEffect(()=>{const w=()=>{b.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>b.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),O.exports.createElement(d_e,f,O.exports.createElement(B_e,{scope:t,open:n,onOpenChange:S,content:d,onContentChange:m},O.exports.createElement($_e,{scope:t,onClose:O.exports.useCallback(()=>S(!1),[S]),isUsingKeyboardRef:b,dir:N,modal:l},r)))},H_e=O.exports.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ED(n);return O.exports.createElement(h_e,ja({},i,r,{ref:t}))}),j_e="MenuPortal",[Vke,V_e]=VS(j_e,{forceMount:void 0}),Ab="MenuContent",[G_e,LK]=VS(Ab),W_e=O.exports.forwardRef((e,t)=>{const n=V_e(Ab,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=N7(Ab,e.__scopeMenu),l=TD(Ab,e.__scopeMenu);return O.exports.createElement(EO.Provider,{scope:e.__scopeMenu},O.exports.createElement(_K,{present:r||s.open},O.exports.createElement(EO.Slot,{scope:e.__scopeMenu},l.modal?O.exports.createElement(Y_e,ja({},i,{ref:t})):O.exports.createElement(q_e,ja({},i,{ref:t})))))}),Y_e=O.exports.forwardRef((e,t)=>{const n=N7(Ab,e.__scopeMenu),r=O.exports.useRef(null),i=sh(t,r);return O.exports.useEffect(()=>{const s=r.current;if(s)return GG(s)},[]),O.exports.createElement(MK,ja({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Mi(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),q_e=O.exports.forwardRef((e,t)=>{const n=N7(Ab,e.__scopeMenu);return O.exports.createElement(MK,ja({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),MK=O.exports.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:S,onDismiss:N,disableOutsideScroll:w,...T}=e,L=N7(Ab,n),M=TD(Ab,n),B=ED(n),F=OK(n),z=F_e(n),[H,G]=O.exports.useState(null),K=O.exports.useRef(null),Z=sh(t,K,L.onContentChange),ne=O.exports.useRef(0),ie=O.exports.useRef(""),le=O.exports.useRef(0),oe=O.exports.useRef(null),Ae=O.exports.useRef("right"),de=O.exports.useRef(0),Se=w?LW:O.exports.Fragment,Me=w?{as:n_,allowPinchZoom:!0}:void 0,_e=he=>{var ve,ye;const xe=ie.current+he,Ve=z().filter(ut=>!ut.disabled),Pe=document.activeElement,Qe=(ve=Ve.find(ut=>ut.ref.current===Pe))===null||ve===void 0?void 0:ve.textValue,wt=Ve.map(ut=>ut.textValue),Ot=rEe(wt,xe,Qe),Ut=(ye=Ve.find(ut=>ut.textValue===Ot))===null||ye===void 0?void 0:ye.ref.current;(function ut(It){ie.current=It,window.clearTimeout(ne.current),It!==""&&(ne.current=window.setTimeout(()=>ut(""),1e3))})(xe),Ut&&setTimeout(()=>Ut.focus())};O.exports.useEffect(()=>()=>window.clearTimeout(ne.current),[]),cwe();const J=O.exports.useCallback(he=>{var ve,ye;return Ae.current===((ve=oe.current)===null||ve===void 0?void 0:ve.side)&&iEe(he,(ye=oe.current)===null||ye===void 0?void 0:ye.area)},[]);return O.exports.createElement(G_e,{scope:n,searchRef:ie,onItemEnter:O.exports.useCallback(he=>{J(he)&&he.preventDefault()},[J]),onItemLeave:O.exports.useCallback(he=>{var ve;J(he)||((ve=K.current)===null||ve===void 0||ve.focus(),G(null))},[J]),onTriggerLeave:O.exports.useCallback(he=>{J(he)&&he.preventDefault()},[J]),pointerGraceTimerRef:le,onPointerGraceIntentChange:O.exports.useCallback(he=>{oe.current=he},[])},O.exports.createElement(Se,Me,O.exports.createElement(fwe,{asChild:!0,trapped:i,onMountAutoFocus:Mi(s,he=>{var ve;he.preventDefault(),(ve=K.current)===null||ve===void 0||ve.focus()}),onUnmountAutoFocus:l},O.exports.createElement(swe,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:S,onDismiss:N},O.exports.createElement(L_e,ja({asChild:!0},F,{dir:M.dir,orientation:"vertical",loop:r,currentTabStopId:H,onCurrentTabStopIdChange:G,onEntryFocus:he=>{M.isUsingKeyboardRef.current||he.preventDefault()}}),O.exports.createElement(p_e,ja({role:"menu","aria-orientation":"vertical","data-state":eEe(L.open),"data-radix-menu-content":"",dir:M.dir},B,T,{ref:Z,style:{outline:"none",...T.style},onKeyDown:Mi(T.onKeyDown,he=>{const ye=he.target.closest("[data-radix-menu-content]")===he.currentTarget,xe=he.ctrlKey||he.altKey||he.metaKey,Ve=he.key.length===1;ye&&(he.key==="Tab"&&he.preventDefault(),!xe&&Ve&&_e(he.key));const Pe=K.current;if(he.target!==Pe||!I_e.includes(he.key))return;he.preventDefault();const wt=z().filter(Ot=>!Ot.disabled).map(Ot=>Ot.ref.current);kK.includes(he.key)&&wt.reverse(),tEe(wt)}),onBlur:Mi(e.onBlur,he=>{he.currentTarget.contains(he.target)||(window.clearTimeout(ne.current),ie.current="")}),onPointerMove:Mi(e.onPointerMove,RO(he=>{const ve=he.target,ye=de.current!==he.clientX;if(he.currentTarget.contains(ve)&&ye){const xe=he.clientX>de.current?"right":"left";Ae.current=xe,de.current=he.clientX}}))})))))))}),TO="MenuItem",CU="menu.itemSelect",K_e=O.exports.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=O.exports.useRef(null),l=TD(TO,e.__scopeMenu),f=LK(TO,e.__scopeMenu),d=sh(t,s),m=O.exports.useRef(!1),b=()=>{const S=s.current;if(!n&&S){const N=new CustomEvent(CU,{bubbles:!0,cancelable:!0});S.addEventListener(CU,w=>r?.(w),{once:!0}),sK(S,N),N.defaultPrevented?m.current=!1:l.onClose()}};return O.exports.createElement(Z_e,ja({},i,{ref:d,disabled:n,onClick:Mi(e.onClick,b),onPointerDown:S=>{var N;(N=e.onPointerDown)===null||N===void 0||N.call(e,S),m.current=!0},onPointerUp:Mi(e.onPointerUp,S=>{var N;m.current||(N=S.currentTarget)===null||N===void 0||N.click()}),onKeyDown:Mi(e.onKeyDown,S=>{const N=f.searchRef.current!=="";n||N&&S.key===" "||D_e.includes(S.key)&&(S.currentTarget.click(),S.preventDefault())})}))}),Z_e=O.exports.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=LK(TO,n),f=OK(n),d=O.exports.useRef(null),m=sh(t,d),[b,S]=O.exports.useState(!1),[N,w]=O.exports.useState("");return O.exports.useEffect(()=>{const T=d.current;if(T){var L;w(((L=T.textContent)!==null&&L!==void 0?L:"").trim())}},[s.children]),O.exports.createElement(EO.ItemSlot,{scope:n,disabled:r,textValue:i??N},O.exports.createElement(M_e,ja({asChild:!0},f,{focusable:!r}),O.exports.createElement(l0.div,ja({role:"menuitem","data-highlighted":b?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s,{ref:m,onPointerMove:Mi(e.onPointerMove,RO(T=>{r?l.onItemLeave(T):(l.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus())})),onPointerLeave:Mi(e.onPointerLeave,RO(T=>l.onItemLeave(T))),onFocus:Mi(e.onFocus,()=>S(!0)),onBlur:Mi(e.onBlur,()=>S(!1))}))))}),X_e="MenuRadioGroup";VS(X_e,{value:void 0,onValueChange:()=>{}});const Q_e="MenuItemIndicator";VS(Q_e,{checked:!1});const J_e="MenuSub";VS(J_e);function eEe(e){return e?"open":"closed"}function tEe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nEe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rEe(e,t,n){const i=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=nEe(e,Math.max(s,0));i.length===1&&(l=l.filter(m=>m!==n));const d=l.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function aEe(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const f=t[s].x,d=t[s].y,m=t[l].x,b=t[l].y;d>r!=b>r&&n<(m-f)*(r-d)/(b-d)+f&&(i=!i)}return i}function iEe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return aEe(n,t)}function RO(e){return t=>t.pointerType==="mouse"?e(t):void 0}const oEe=U_e,sEe=H_e,lEe=W_e,uEe=K_e,DK="ContextMenu",[cEe,Gke]=O_(DK,[AK]),w7=AK(),[fEe,PK]=cEe(DK),dEe=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:s=!0}=e,[l,f]=O.exports.useState(!1),d=w7(t),m=hv(r),b=O.exports.useCallback(S=>{f(S),m(S)},[m]);return O.exports.createElement(fEe,{scope:t,open:l,onOpenChange:b,modal:s},O.exports.createElement(oEe,ja({},d,{dir:i,open:l,onOpenChange:b,modal:s}),n))},hEe="ContextMenuTrigger",pEe=O.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=PK(hEe,n),s=w7(n),l=O.exports.useRef({x:0,y:0}),f=O.exports.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),d=O.exports.useRef(0),m=O.exports.useCallback(()=>window.clearTimeout(d.current),[]),b=S=>{l.current={x:S.clientX,y:S.clientY},i.onOpenChange(!0)};return O.exports.useEffect(()=>m,[m]),O.exports.createElement(O.exports.Fragment,null,O.exports.createElement(sEe,ja({},s,{virtualRef:f})),O.exports.createElement(l0.span,ja({"data-state":i.open?"open":"closed"},r,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:Mi(e.onContextMenu,S=>{m(),b(S),S.preventDefault()}),onPointerDown:Mi(e.onPointerDown,_T(S=>{m(),d.current=window.setTimeout(()=>b(S),700)})),onPointerMove:Mi(e.onPointerMove,_T(m)),onPointerCancel:Mi(e.onPointerCancel,_T(m)),onPointerUp:Mi(e.onPointerUp,_T(m))})))}),mEe="ContextMenuContent",vEe=O.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=PK(mEe,n),s=w7(n),l=O.exports.useRef(!1);return O.exports.createElement(lEe,ja({},s,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:f=>{var d;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),!f.defaultPrevented&&l.current&&f.preventDefault(),l.current=!1},onInteractOutside:f=>{var d;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),!f.defaultPrevented&&!i.modal&&(l.current=!0)},style:{...e.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))}),gEe=O.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=w7(n);return O.exports.createElement(uEe,ja({},i,r,{ref:t}))});function _T(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const bEe=dEe,yEe=pEe,SEe=vEe,oS=gEe,xEe=ia([e=>e.gallery,e=>e.options,ch],(e,t,n)=>{const{categories:r,currentCategory:i,currentImageUuid:s,shouldPinGallery:l,shouldShowGallery:f,galleryScrollPosition:d,galleryImageMinimumWidth:m,galleryImageObjectFit:b,shouldHoldGalleryOpen:S,shouldAutoSwitchToNewImages:N,galleryWidth:w}=e;return{currentImageUuid:s,shouldPinGallery:l,shouldShowGallery:f,galleryScrollPosition:d,galleryImageMinimumWidth:m,galleryImageObjectFit:b,galleryGridTemplateColumns:`repeat(auto-fill, minmax(${m}px, auto))`,activeTabName:n,shouldHoldGalleryOpen:S,shouldAutoSwitchToNewImages:N,images:r[i].images,areMoreImagesAvailable:r[i].areMoreImagesAvailable,currentCategory:i,galleryWidth:w}}),CEe=ia([e=>e.options,e=>e.gallery,e=>e.system,ch],(e,t,n,r)=>({mayDeleteImage:n.isConnected&&!n.isProcessing,galleryImageObjectFit:t.galleryImageObjectFit,galleryImageMinimumWidth:t.galleryImageMinimumWidth,activeTabName:r}));var ps="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const NEe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,wEe=O.exports.memo(e=>{const t=ar(),{activeTabName:n,galleryImageObjectFit:r,galleryImageMinimumWidth:i,mayDeleteImage:s}=tn(CEe),{image:l,isSelected:f}=e,{url:d,uuid:m,metadata:b}=l,[S,N]=O.exports.useState(!1),w=Ub(),T=()=>N(!0),L=()=>N(!1),M=()=>{l.metadata&&t($D(l.metadata.image.prompt)),w({title:"Prompt Set",status:"success",duration:2500,isClosable:!0})},B=()=>{l.metadata&&t(P_(l.metadata.image.seed)),w({title:"Seed Set",status:"success",duration:2500,isClosable:!0})},F=()=>{t(a_(l)),n!=="img2img"&&t(Jd("img2img")),w({title:"Sent to Image To Image",status:"success",duration:2500,isClosable:!0})},z=()=>{t(s9(l)),n!=="inpainting"&&t(Jd("inpainting")),w({title:"Sent to Inpainting",status:"success",duration:2500,isClosable:!0})},H=()=>{b&&t(W7e(b)),w({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})},G=async()=>{if(b?.image?.init_image_path&&(await fetch(b.image.init_image_path)).ok){t(Jd("img2img")),t(Y7e(b)),w({title:"Initial Image Set",status:"success",duration:2500,isClosable:!0});return}w({title:"Initial Image Not Set",description:"Could not load initial image.",status:"error",duration:2500,isClosable:!0})};return _(bEe,{children:[_(yEe,{children:_(gv,{position:"relative",className:"hoverable-image",onMouseOver:T,onMouseOut:L,children:[_(q9,{className:"hoverable-image-image",objectFit:r,rounded:"md",src:d,loading:"lazy"},void 0,!1,{fileName:ps,lineNumber:157,columnNumber:11},void 0),_("div",{className:"hoverable-image-content",onClick:()=>t(eK(l)),children:f&&_(J9,{width:"50%",height:"50%",as:g4e,className:"hoverable-image-check"},void 0,!1,{fileName:ps,lineNumber:166,columnNumber:15},void 0)},void 0,!1,{fileName:ps,lineNumber:164,columnNumber:11},void 0),S&&i>=64&&_("div",{className:"hoverable-image-delete-button",children:_(el,{label:"Delete image",hasArrow:!0,children:_(gO,{image:l,children:_(Uu,{"aria-label":"Delete image",icon:_(O4e,{},void 0,!1,{fileName:ps,lineNumber:180,columnNumber:27},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14,isDisabled:!s},void 0,!1,{fileName:ps,lineNumber:178,columnNumber:19},void 0)},void 0,!1,{fileName:ps,lineNumber:177,columnNumber:17},void 0)},void 0,!1,{fileName:ps,lineNumber:176,columnNumber:15},void 0)},void 0,!1,{fileName:ps,lineNumber:175,columnNumber:13},void 0)]},m,!0,{fileName:ps,lineNumber:150,columnNumber:9},void 0)},void 0,!1,{fileName:ps,lineNumber:149,columnNumber:7},void 0),_(SEe,{className:"hoverable-image-context-menu",sticky:"always",children:[_(oS,{onClickCapture:M,disabled:l?.metadata?.image?.prompt===void 0,children:"Use Prompt"},void 0,!1,{fileName:ps,lineNumber:196,columnNumber:9},void 0),_(oS,{onClickCapture:B,disabled:l?.metadata?.image?.seed===void 0,children:"Use Seed"},void 0,!1,{fileName:ps,lineNumber:203,columnNumber:9},void 0),_(oS,{onClickCapture:H,disabled:!["txt2img","img2img"].includes(l?.metadata?.image?.type),children:"Use All Parameters"},void 0,!1,{fileName:ps,lineNumber:209,columnNumber:9},void 0),_(el,{label:"Load initial image used for this generation",children:_(oS,{onClickCapture:G,disabled:l?.metadata?.image?.type!=="img2img",children:"Use Initial Image"},void 0,!1,{fileName:ps,lineNumber:218,columnNumber:11},void 0)},void 0,!1,{fileName:ps,lineNumber:217,columnNumber:9},void 0),_(oS,{onClickCapture:F,children:"Send to Image To Image"},void 0,!1,{fileName:ps,lineNumber:225,columnNumber:9},void 0),_(oS,{onClickCapture:z,children:"Send to Inpainting"},void 0,!1,{fileName:ps,lineNumber:228,columnNumber:9},void 0),_(gO,{image:l,children:_(oS,{"data-warning":!0,children:"Delete Image"},void 0,!1,{fileName:ps,lineNumber:232,columnNumber:11},void 0)},void 0,!1,{fileName:ps,lineNumber:231,columnNumber:9},void 0)]},void 0,!0,{fileName:ps,lineNumber:192,columnNumber:7},void 0)]},void 0,!0,{fileName:ps,lineNumber:143,columnNumber:5},void 0)},NEe);var PN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIPopover.tsx";const c6=e=>{const{triggerComponent:t,children:n,styleClass:r,hasArrow:i=!0,...s}=e;return _(i7,{...s,children:[_(l7,{children:_(gv,{children:t},void 0,!1,{fileName:PN,lineNumber:29,columnNumber:9},void 0)},void 0,!1,{fileName:PN,lineNumber:28,columnNumber:7},void 0),_(s7,{className:`invokeai__popover-content ${r}`,children:[i&&_(o7,{className:"invokeai__popover-arrow"},void 0,!1,{fileName:PN,lineNumber:32,columnNumber:22},void 0),n]},void 0,!0,{fileName:PN,lineNumber:31,columnNumber:7},void 0)]},void 0,!0,{fileName:PN,lineNumber:27,columnNumber:5},void 0)};var pb="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAISlider.tsx";const p9=e=>{const{label:t,styleClass:n,formControlProps:r,formLabelProps:i,sliderTrackProps:s,sliderInnerTrackProps:l,sliderThumbProps:f,sliderThumbTooltipProps:d,...m}=e;return _(zb,{className:`invokeai__slider-form-control ${n}`,...r,children:_("div",{className:"invokeai__slider-inner-container",children:[_(FS,{className:"invokeai__slider-form-label",whiteSpace:"nowrap",...i,children:t},void 0,!1,{fileName:pb,lineNumber:47,columnNumber:9},void 0),_(zM,{className:"invokeai__slider-root","aria-label":t,...m,children:[_(nY,{className:"invokeai__slider-track",...s,children:_(rY,{className:"invokeai__slider-filled-track",...l},void 0,!1,{fileName:pb,lineNumber:64,columnNumber:13},void 0)},void 0,!1,{fileName:pb,lineNumber:60,columnNumber:11},void 0),_(el,{className:"invokeai__slider-thumb-tooltip",placement:"top",hasArrow:!0,...d,children:_(tY,{className:"invokeai__slider-thumb",...f},void 0,!1,{fileName:pb,lineNumber:76,columnNumber:13},void 0)},void 0,!1,{fileName:pb,lineNumber:70,columnNumber:11},void 0)]},void 0,!0,{fileName:pb,lineNumber:55,columnNumber:9},void 0)]},void 0,!0,{fileName:pb,lineNumber:46,columnNumber:7},void 0)},void 0,!1,{fileName:pb,lineNumber:42,columnNumber:5},void 0)};function IK(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 0 1 1.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 0 0 0 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 0 0 0-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0 1 12 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z"}}]})(e)}function kO(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16c1.671 0 3-1.331 3-3s-1.329-3-3-3-3 1.331-3 3 1.329 3 3 3z"}},{tag:"path",attr:{d:"M20.817 11.186a8.94 8.94 0 0 0-1.355-3.219 9.053 9.053 0 0 0-2.43-2.43 8.95 8.95 0 0 0-3.219-1.355 9.028 9.028 0 0 0-1.838-.18V2L8 5l3.975 3V6.002c.484-.002.968.044 1.435.14a6.961 6.961 0 0 1 2.502 1.053 7.005 7.005 0 0 1 1.892 1.892A6.967 6.967 0 0 1 19 13a7.032 7.032 0 0 1-.55 2.725 7.11 7.11 0 0 1-.644 1.188 7.2 7.2 0 0 1-.858 1.039 7.028 7.028 0 0 1-3.536 1.907 7.13 7.13 0 0 1-2.822 0 6.961 6.961 0 0 1-2.503-1.054 7.002 7.002 0 0 1-1.89-1.89A6.996 6.996 0 0 1 5 13H3a9.02 9.02 0 0 0 1.539 5.034 9.096 9.096 0 0 0 2.428 2.428A8.95 8.95 0 0 0 12 22a9.09 9.09 0 0 0 1.814-.183 9.014 9.014 0 0 0 3.218-1.355 8.886 8.886 0 0 0 1.331-1.099 9.228 9.228 0 0 0 1.1-1.332A8.952 8.952 0 0 0 21 13a9.09 9.09 0 0 0-.183-1.814z"}}]})(e)}function FK(e){return vr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 9a3.02 3.02 0 0 0-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z"}},{tag:"path",attr:{d:"M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z"}}]})(e)}var la="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";const _Ee=320;function EEe(){const e=ar(),t=Ub(),{images:n,currentCategory:r,currentImageUuid:i,shouldPinGallery:s,shouldShowGallery:l,galleryScrollPosition:f,galleryImageMinimumWidth:d,galleryGridTemplateColumns:m,activeTabName:b,galleryImageObjectFit:S,shouldHoldGalleryOpen:N,shouldAutoSwitchToNewImages:w,areMoreImagesAvailable:T,galleryWidth:L}=tn(xEe),[M,B]=O.exports.useState(300),[F,z]=O.exports.useState(590),[H,G]=O.exports.useState(L>=_Ee);O.exports.useEffect(()=>{!s||(b==="inpainting"?(e(bT(220)),B(220),z(220)):b==="img2img"?(e(bT(Math.min(Math.max(Number(L),0),490))),z(490)):(e(bT(Math.min(Math.max(Number(L),0),590))),z(590)),e(NS(!0)))},[e,b,s,L]),O.exports.useEffect(()=>{s||z(window.innerWidth)},[s]);const K=O.exports.useRef(null),Z=O.exports.useRef(null),ne=O.exports.useRef(null),ie=()=>{e(TNe(!s)),e(NS(!0))},le=()=>{l?Ae():oe()},oe=()=>{e(bO(!0)),s&&e(NS(!0))},Ae=()=>{e(bO(!1)),e(RNe(Z.current?Z.current.scrollTop:0)),e(ANe(!1))},de=()=>{e(mO(r))},Se=he=>{e(aS(he)),e(NS(!0))},Me=()=>{ne.current=window.setTimeout(()=>Ae(),500)},_e=()=>{ne.current&&window.clearTimeout(ne.current)};$r("g",()=>{le()},[l]),$r("left",()=>{e(nK())}),$r("right",()=>{e(tK())}),$r("shift+g",()=>{ie()},[s]);const J=32;return $r("shift+up",()=>{if(!(d>=256)&&d<256){const he=d+J;he<=256?(e(aS(he)),t({title:`Gallery Thumbnail Size set to ${he}`,status:"success",duration:1e3,isClosable:!0})):(e(aS(256)),t({title:"Gallery Thumbnail Size set to 256",status:"success",duration:1e3,isClosable:!0}))}},[d]),$r("shift+down",()=>{if(!(d<=32)&&d>32){const he=d-J;he>32?(e(aS(he)),t({title:`Gallery Thumbnail Size set to ${he}`,status:"success",duration:1e3,isClosable:!0})):(e(aS(32)),t({title:"Gallery Thumbnail Size set to 32",status:"success",duration:1e3,isClosable:!0}))}},[d]),$r("shift+r",()=>{e(aS(64)),t({title:"Reset Gallery Image Size",status:"success",duration:2500,isClosable:!0})},[d]),O.exports.useEffect(()=>{!Z.current||(Z.current.scrollTop=f)},[f,l]),O.exports.useEffect(()=>{G(L>=280)},[L]),Wq(K,Ae,!s),_(Gq,{nodeRef:K,in:l||N&&!s,unmountOnExit:!0,timeout:200,classNames:"image-gallery-wrapper",children:_("div",{className:"image-gallery-wrapper","data-pinned":s,ref:K,onMouseLeave:s?void 0:Me,onMouseEnter:s?void 0:_e,onMouseOver:s?void 0:_e,children:_(iK,{minWidth:M,maxWidth:F,className:"image-gallery-popup",handleStyles:{left:{width:"15px"}},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:L,height:s?"100%":"100vh"},onResizeStop:(he,ve,ye,xe)=>{e(bT(ra.clamp(Number(L)+xe.width,0,Number(F)))),ye.removeAttribute("data-resize-alert")},onResize:(he,ve,ye,xe)=>{const Ve=ra.clamp(Number(L)+xe.width,0,Number(F));Ve>=280&&!H?G(!0):Ve<280&&H&&G(!1),Ve>=F?ye.setAttribute("data-resize-alert","true"):ye.removeAttribute("data-resize-alert")},children:[_("div",{className:"image-gallery-header",children:[_("div",{children:_(eG,{size:"sm",isAttached:!0,variant:"solid",className:"image-gallery-category-btn-group",children:H?_(Ci,{children:[_(nh,{"data-selected":r==="result",onClick:()=>e(gT("result")),children:"Invocations"},void 0,!1,{fileName:la,lineNumber:341,columnNumber:21},this),_(nh,{"data-selected":r==="user",onClick:()=>e(gT("user")),children:"User"},void 0,!1,{fileName:la,lineNumber:347,columnNumber:21},this)]},void 0,!0):_(Ci,{children:[_(Ta,{"aria-label":"Show Invocations",tooltip:"Show Invocations","data-selected":r==="result",icon:_(S4e,{},void 0,!1,{fileName:la,lineNumber:360,columnNumber:29},this),onClick:()=>e(gT("result"))},void 0,!1,{fileName:la,lineNumber:356,columnNumber:21},this),_(Ta,{"aria-label":"Show Uploads",tooltip:"Show Uploads","data-selected":r==="user",icon:_(P4e,{},void 0,!1,{fileName:la,lineNumber:367,columnNumber:29},this),onClick:()=>e(gT("user"))},void 0,!1,{fileName:la,lineNumber:363,columnNumber:21},this)]},void 0,!0)},void 0,!1,{fileName:la,lineNumber:333,columnNumber:15},this)},void 0,!1,{fileName:la,lineNumber:332,columnNumber:13},this),_("div",{children:[_(c6,{isLazy:!0,trigger:"hover",placement:"left",triggerComponent:_(Ta,{size:"sm","aria-label":"Gallery Settings",icon:_(I4e,{},void 0,!1,{fileName:la,lineNumber:383,columnNumber:27},this),className:"image-gallery-icon-btn",cursor:"pointer"},void 0,!1,{fileName:la,lineNumber:380,columnNumber:19},this),children:_("div",{className:"image-gallery-settings-popover",children:[_("div",{children:[_(p9,{value:d,onChange:Se,min:32,max:256,width:100,label:"Image Size",formLabelProps:{style:{fontSize:"0.9rem"}},sliderThumbTooltipProps:{label:`${d}px`}},void 0,!1,{fileName:la,lineNumber:391,columnNumber:21},this),_(Ta,{size:"sm","aria-label":"Reset",tooltip:"Reset Size",onClick:()=>e(aS(64)),icon:_(kO,{},void 0,!1,{fileName:la,lineNumber:408,columnNumber:29},this),"data-selected":s,styleClass:"image-gallery-icon-btn"},void 0,!1,{fileName:la,lineNumber:403,columnNumber:21},this)]},void 0,!0,{fileName:la,lineNumber:390,columnNumber:19},this),_("div",{children:_(t_,{label:"Maintain Aspect Ratio",isChecked:S==="contain",onChange:()=>e(kNe(S==="contain"?"cover":"contain"))},void 0,!1,{fileName:la,lineNumber:414,columnNumber:21},this)},void 0,!1,{fileName:la,lineNumber:413,columnNumber:19},this),_("div",{children:_(t_,{label:"Auto-Switch to New Images",isChecked:w,onChange:he=>e(ONe(he.target.checked))},void 0,!1,{fileName:la,lineNumber:429,columnNumber:21},this)},void 0,!1,{fileName:la,lineNumber:428,columnNumber:19},this)]},void 0,!0,{fileName:la,lineNumber:389,columnNumber:17},this)},void 0,!1,{fileName:la,lineNumber:375,columnNumber:15},this),_(Ta,{size:"sm",className:"image-gallery-icon-btn","aria-label":"Pin Gallery",tooltip:"Pin Gallery (Shift+G)",onClick:ie,icon:s?_($q,{},void 0,!1,{fileName:la,lineNumber:448,columnNumber:42},this):_(Uq,{},void 0,!1,{fileName:la,lineNumber:448,columnNumber:63},this)},void 0,!1,{fileName:la,lineNumber:442,columnNumber:15},this)]},void 0,!0,{fileName:la,lineNumber:374,columnNumber:13},this)]},void 0,!0,{fileName:la,lineNumber:331,columnNumber:11},this),_("div",{className:"image-gallery-container",ref:Z,children:n.length||T?_(Ci,{children:[_("div",{className:"image-gallery",style:{gridTemplateColumns:m},children:n.map(he=>{const{uuid:ve}=he;return _(wEe,{image:he,isSelected:i===ve},ve,!1,{fileName:la,lineNumber:463,columnNumber:23},this)})},void 0,!1,{fileName:la,lineNumber:455,columnNumber:17},this),_(nh,{onClick:de,isDisabled:!T,className:"image-gallery-load-more-btn",children:T?"Load More":"All Images Loaded"},void 0,!1,{fileName:la,lineNumber:471,columnNumber:17},this)]},void 0,!0):_("div",{className:"image-gallery-container-placeholder",children:[_(Mq,{},void 0,!1,{fileName:la,lineNumber:481,columnNumber:17},this),_("p",{children:"No Images In Gallery"},void 0,!1,{fileName:la,lineNumber:482,columnNumber:17},this)]},void 0,!0,{fileName:la,lineNumber:480,columnNumber:15},this)},void 0,!1,{fileName:la,lineNumber:452,columnNumber:11},this)]},void 0,!0,{fileName:la,lineNumber:270,columnNumber:9},this)},void 0,!1,{fileName:la,lineNumber:262,columnNumber:7},this)},void 0,!1,{fileName:la,lineNumber:255,columnNumber:5},this)}var Sk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/InvokeWorkarea.tsx";const RD=e=>{const{optionsPanel:t,children:n,styleClass:r}=e;return _("div",{className:r?`workarea-wrapper ${r}`:"workarea-wrapper",children:_("div",{className:"workarea-main",children:[t,n,_(EEe,{},void 0,!1,{fileName:Sk,lineNumber:22,columnNumber:9},void 0)]},void 0,!0,{fileName:Sk,lineNumber:19,columnNumber:7},void 0)},void 0,!1,{fileName:Sk,lineNumber:14,columnNumber:5},void 0)};var xk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/index.tsx";function TEe(){return _(RD,{optionsPanel:_(yNe,{},void 0,!1,{fileName:xk,lineNumber:8,columnNumber:35},this),children:_($Ne,{},void 0,!1,{fileName:xk,lineNumber:9,columnNumber:7},this)},void 0,!1,{fileName:xk,lineNumber:8,columnNumber:5},this)}var Ts="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx";const REe=ia(e=>e.inpainting,e=>{const{canvasDimensions:t,boundingBoxDimensions:n,shouldShowBoundingBox:r,shouldShowBoundingBoxFill:i,pastLines:s,futureLines:l,shouldLockBoundingBox:f}=e;return{canvasDimensions:t,boundingBoxDimensions:n,shouldShowBoundingBox:r,shouldShowBoundingBoxFill:i,pastLines:s,futureLines:l,shouldLockBoundingBox:f}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),kEe=()=>{const e=ar(),{canvasDimensions:t,boundingBoxDimensions:n,shouldShowBoundingBox:r,shouldShowBoundingBoxFill:i,shouldLockBoundingBox:s}=tn(REe),l=w=>{e(QN({...n,width:Math.floor(w)}))},f=w=>{e(QN({...n,height:Math.floor(w)}))},d=()=>{e(dNe(!i))},m=()=>{e(qq(!s))},b=()=>{e(QN({...n,width:Math.floor(t.width)}))},S=()=>{e(QN({...n,height:Math.floor(t.height)}))};return _("div",{className:"inpainting-bounding-box-settings",children:[_("div",{className:"inpainting-bounding-box-header",children:[_("p",{children:"Inpaint Box"},void 0,!1,{fileName:Ts,lineNumber:115,columnNumber:9},void 0),_(Ta,{"aria-label":"Toggle Bounding Box Visibility",icon:r?_(FK,{size:22},void 0,!1,{fileName:Ts,lineNumber:119,columnNumber:37},void 0):_(IK,{size:22},void 0,!1,{fileName:Ts,lineNumber:119,columnNumber:60},void 0),onClick:()=>e(fNe(!r)),background:"none",padding:0},void 0,!1,{fileName:Ts,lineNumber:116,columnNumber:9},void 0)]},void 0,!0,{fileName:Ts,lineNumber:114,columnNumber:7},void 0),_("div",{className:"inpainting-bounding-box-settings-items",children:[_("div",{className:"inpainting-bounding-box-dimensions-slider-numberinput",children:[_(p9,{label:"Box W",min:64,max:Qd(t.width,64),step:64,value:n.width,onChange:l,width:"5rem"},void 0,!1,{fileName:Ts,lineNumber:128,columnNumber:11},void 0),_(kc,{value:n.width,onChange:l,min:64,max:Qd(t.width,64),step:64,width:"5rem"},void 0,!1,{fileName:Ts,lineNumber:137,columnNumber:11},void 0),_(Ta,{size:"sm","aria-label":"Reset Width",tooltip:"Reset Width",onClick:b,icon:_(kO,{},void 0,!1,{fileName:Ts,lineNumber:150,columnNumber:19},void 0),styleClass:"inpainting-bounding-box-reset-icon-btn",isDisabled:t.width===n.width},void 0,!1,{fileName:Ts,lineNumber:145,columnNumber:11},void 0)]},void 0,!0,{fileName:Ts,lineNumber:127,columnNumber:9},void 0),_("div",{className:"inpainting-bounding-box-dimensions-slider-numberinput",children:[_(p9,{label:"Box H",min:64,max:Qd(t.height,64),step:64,value:n.height,onChange:f,width:"5rem"},void 0,!1,{fileName:Ts,lineNumber:156,columnNumber:11},void 0),_(kc,{value:n.height,onChange:f,min:64,max:Qd(t.height,64),step:64,padding:"0",width:"5rem"},void 0,!1,{fileName:Ts,lineNumber:165,columnNumber:11},void 0),_(Ta,{size:"sm","aria-label":"Reset Height",tooltip:"Reset Height",onClick:S,icon:_(kO,{},void 0,!1,{fileName:Ts,lineNumber:179,columnNumber:19},void 0),styleClass:"inpainting-bounding-box-reset-icon-btn",isDisabled:t.height===n.height},void 0,!1,{fileName:Ts,lineNumber:174,columnNumber:11},void 0)]},void 0,!0,{fileName:Ts,lineNumber:155,columnNumber:9},void 0),_(Si,{alignItems:"center",justifyContent:"space-between",children:[_(t_,{label:"Darken Outside Box",isChecked:i,onChange:d,styleClass:"inpainting-bounding-box-darken"},void 0,!1,{fileName:Ts,lineNumber:187,columnNumber:11},void 0),_(t_,{label:"Lock Bounding Box",isChecked:s,onChange:m,styleClass:"inpainting-bounding-box-darken"},void 0,!1,{fileName:Ts,lineNumber:193,columnNumber:11},void 0)]},void 0,!0,{fileName:Ts,lineNumber:186,columnNumber:9},void 0)]},void 0,!0,{fileName:Ts,lineNumber:126,columnNumber:7},void 0)]},void 0,!0,{fileName:Ts,lineNumber:113,columnNumber:5},void 0)};var IN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Inpainting/InpaintingSettings.tsx";const AEe=ia(e=>e.inpainting,e=>{const{pastLines:t,futureLines:n,inpaintReplace:r,shouldUseInpaintReplace:i}=e;return{pastLines:t,futureLines:n,inpaintReplace:r,shouldUseInpaintReplace:i}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}});function OEe(){const e=ar(),t=Ub(),{pastLines:n,futureLines:r,inpaintReplace:i,shouldUseInpaintReplace:s}=tn(AEe);return _(Ci,{children:[_("div",{style:{display:"flex",alignItems:"center",padding:"0 1rem 0 0.2rem"},children:[_(kc,{label:"Inpaint Replace",value:i,min:0,max:1,step:.05,width:"auto",formControlProps:{style:{paddingRight:"1rem"}},isInteger:!1,isDisabled:!s,onChange:f=>{e(mNe(f))}},void 0,!1,{fileName:IN,lineNumber:65,columnNumber:9},this),_(d0,{isChecked:s,onChange:f=>e(pNe(f.target.checked))},void 0,!1,{fileName:IN,lineNumber:79,columnNumber:9},this)]},void 0,!0,{fileName:IN,lineNumber:58,columnNumber:7},this),_(kEe,{},void 0,!1,{fileName:IN,lineNumber:86,columnNumber:7},this),_(o9,{label:"Clear Brush History",onClick:()=>{e(hNe()),t({title:"Brush Stroke History Cleared",status:"success",duration:2500,isClosable:!0})},tooltip:"Clears brush stroke history",disabled:!(r.length>0||n.length>0),styleClass:"inpainting-options-btn"},void 0,!1,{fileName:IN,lineNumber:87,columnNumber:7},this)]},void 0,!0)}var zu="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/InpaintingPanel.tsx";function LEe(){const e=tn(n=>n.options.showAdvancedOptions),t={seed:{header:_(sD,{},void 0,!1,{fileName:zu,lineNumber:27,columnNumber:15},this),feature:Tc.SEED,options:_(lD,{},void 0,!1,{fileName:zu,lineNumber:29,columnNumber:16},this)},variations:{header:_(cD,{},void 0,!1,{fileName:zu,lineNumber:32,columnNumber:15},this),feature:Tc.VARIATIONS,options:_(fD,{},void 0,!1,{fileName:zu,lineNumber:34,columnNumber:16},this)},face_restore:{header:_(aD,{},void 0,!1,{fileName:zu,lineNumber:37,columnNumber:15},this),feature:Tc.FACE_CORRECTION,options:_(g7,{},void 0,!1,{fileName:zu,lineNumber:39,columnNumber:16},this)},upscale:{header:_(uD,{},void 0,!1,{fileName:zu,lineNumber:42,columnNumber:15},this),feature:Tc.UPSCALE,options:_(b7,{},void 0,!1,{fileName:zu,lineNumber:44,columnNumber:16},this)}};return _(SD,{children:[_(gD,{},void 0,!1,{fileName:zu,lineNumber:50,columnNumber:7},this),_(vD,{},void 0,!1,{fileName:zu,lineNumber:51,columnNumber:7},this),_(pD,{},void 0,!1,{fileName:zu,lineNumber:52,columnNumber:7},this),_(Nq,{label:"Image To Image Strength",styleClass:"main-option-block image-to-image-strength-main-option"},void 0,!1,{fileName:zu,lineNumber:53,columnNumber:7},this),_(OEe,{},void 0,!1,{fileName:zu,lineNumber:57,columnNumber:7},this),_(dD,{},void 0,!1,{fileName:zu,lineNumber:58,columnNumber:7},this),e?_(mD,{accordionInfo:t},void 0,!1,{fileName:zu,lineNumber:60,columnNumber:9},this):null]},void 0,!0,{fileName:zu,lineNumber:49,columnNumber:5},this)}var MEe=Math.PI/180;function DEe(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const B3=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Nn={_global:B3,version:"8.3.13",isBrowser:DEe(),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle(e){return Nn.angleDeg?e*MEe:e},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Nn.DD.isDragging},isDragReady(){return!!Nn.DD.node},document:B3.document,_injectGlobal(e){B3.Konva=e}},Lo=e=>{Nn[e.prototype.getClassName()]=e};Nn._injectGlobal(Nn);class Qf{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Qf(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var n=this.m;return{x:n[0]*t.x+n[2]*t.y+n[4],y:n[1]*t.x+n[3]*t.y+n[5]}}translate(t,n){return this.m[4]+=this.m[0]*t+this.m[2]*n,this.m[5]+=this.m[1]*t+this.m[3]*n,this}scale(t,n){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=n,this.m[3]*=n,this}rotate(t){var n=Math.cos(t),r=Math.sin(t),i=this.m[0]*n+this.m[2]*r,s=this.m[1]*n+this.m[3]*r,l=this.m[0]*-r+this.m[2]*n,f=this.m[1]*-r+this.m[3]*n;return this.m[0]=i,this.m[1]=s,this.m[2]=l,this.m[3]=f,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,n){var r=this.m[0]+this.m[2]*n,i=this.m[1]+this.m[3]*n,s=this.m[2]+this.m[0]*t,l=this.m[3]+this.m[1]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=s,this.m[3]=l,this}multiply(t){var n=this.m[0]*t.m[0]+this.m[2]*t.m[1],r=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],s=this.m[1]*t.m[2]+this.m[3]*t.m[3],l=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],f=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=s,this.m[4]=l,this.m[5]=f,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),n=this.m[3]*t,r=-this.m[1]*t,i=-this.m[2]*t,s=this.m[0]*t,l=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),f=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=s,this.m[4]=l,this.m[5]=f,this}getMatrix(){return this.m}decompose(){var t=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],s=this.m[4],l=this.m[5],f=t*i-n*r;let d={x:s,y:l,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!=0||n!=0){var m=Math.sqrt(t*t+n*n);d.rotation=n>0?Math.acos(t/m):-Math.acos(t/m),d.scaleX=m,d.scaleY=f/m,d.skewX=(t*r+n*i)/f,d.skewY=0}else if(r!=0||i!=0){var b=Math.sqrt(r*r+i*i);d.rotation=Math.PI/2-(i>0?Math.acos(-r/b):-Math.acos(r/b)),d.scaleX=f/b,d.scaleY=b,d.skewX=0,d.skewY=(t*r+n*i)/f}return d.rotation=He._getRotation(d.rotation),d}}var PEe="[object Array]",IEe="[object Number]",FEe="[object String]",zEe="[object Boolean]",BEe=Math.PI/180,$Ee=180/Math.PI,Ck="#",UEe="",HEe="0",jEe="Konva warning: ",NU="Konva error: ",VEe="rgb(",Nk={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},GEe=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,ET=[];const WEe=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(e){setTimeout(e,60)},He={_isElement(e){return!!(e&&e.nodeType==1)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===PEe},_isNumber(e){return Object.prototype.toString.call(e)===IEe&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===FEe},_isBoolean(e){return Object.prototype.toString.call(e)===zEe},isObject(e){return e instanceof Object},isValidSelector(e){if(typeof e!="string")return!1;var t=e[0];return t==="#"||t==="."||t===t.toUpperCase()},_sign(e){return e===0||e>0?1:-1},requestAnimFrame(e){ET.push(e),ET.length===1&&WEe(function(){const t=ET;ET=[],t.forEach(function(n){n()})})},createCanvasElement(){var e=document.createElement("canvas");try{e.style=e.style||{}}catch{}return e},createImageElement(){return document.createElement("img")},_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,t){var n=He.createImageElement();n.onload=function(){t(n)},n.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(Ck,UEe);var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){for(var e=(Math.random()*16777215<<0).toString(16);e.length<6;)e=HEe+e;return Ck+e},getRGB(e){var t;return e in Nk?(t=Nk[e],{r:t[0],g:t[1],b:t[2]}):e[0]===Ck?this._hexToRgb(e.substring(1)):e.substr(0,4)===VEe?(t=GEe.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e=e||"black",He._namedColorToRBA(e)||He._hex3ColorToRGBA(e)||He._hex6ColorToRGBA(e)||He._rgbColorToRGBA(e)||He._rgbaColorToRGBA(e)||He._hslColorToRGBA(e)},_namedColorToRBA(e){var t=Nk[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(e.indexOf("rgb(")===0){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(e.indexOf("rgba(")===0){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map((n,r)=>n.slice(-1)==="%"?r===3?parseInt(n)/100:parseInt(n)/100*255:Number(n));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex6ColorToRGBA(e){if(e[0]==="#"&&e.length===7)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex3ColorToRGBA(e){if(e[0]==="#"&&e.length===4)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,s=Number(n[2])/100;let l,f,d;if(i===0)return d=s*255,{r:Math.round(d),g:Math.round(d),b:Math.round(d),a:1};s<.5?l=s*(1+i):l=s+i-s*i;const m=2*s-l,b=[0,0,0];for(let S=0;S<3;S++)f=r+1/3*-(S-1),f<0&&f++,f>1&&f--,6*f<1?d=m+(l-m)*6*f:2*f<1?d=l:3*f<2?d=m+(l-m)*(2/3-f)*6:d=m,b[S]=d*255;return{r:Math.round(b[0]),g:Math.round(b[1]),b:Math.round(b[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*BEe},radToDeg(e){return e*$Ee},_degToRad(e){return He.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),He.degToRad(e)},_radToDeg(e){return He.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),He.radToDeg(e)},_getRotation(e){return Nn.angleDeg?He.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw new Error(NU+e)},error(e){console.error(NU+e)},warn(e){!Nn.showWarnings||console.warn(jEe+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,r,i,s){var l,f,d,m=(e-n)*(e-n)+(t-r)*(t-r);if(m==0)l=e,f=t,d=(i-n)*(i-n)+(s-r)*(s-r);else{var b=((i-e)*(n-e)+(s-t)*(r-t))/m;b<0?(l=e,f=t,d=(e-i)*(e-i)+(t-s)*(t-s)):b>1?(l=n,f=r,d=(n-i)*(n-i)+(r-s)*(r-s)):(l=e+b*(n-e),f=t+b*(r-t),d=(l-i)*(l-i)+(f-s)*(f-s))}return[l,f,d]},_getProjectionToLine(e,t,n){var r=He.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(s,l){if(!(!n&&l===t.length-1)){var f=t[(l+1)%t.length],d=He._getProjectionToSegment(s.x,s.y,f.x,f.y,e.x,e.y),m=d[0],b=d[1],S=d[2];S<i&&(r.x=m,r.y=b,i=S)}}),r},_prepareArrayForTween(e,t,n){var r,i=[],s=[];if(e.length>t.length){var l=t;t=e,e=l}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)s.push({x:t[r],y:t[r+1]});var f=[];return s.forEach(function(d){var m=He._getProjectionToLine(d,i,n);f.push(m.x),f.push(m.y)}),f},_prepareToStringify(e){var t;e.visitedByCircularReferenceRemoval=!0;for(var n in e)if(!!(e.hasOwnProperty(n)&&e[n]&&typeof e[n]=="object")){if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||He._isElement(e[n]))if(t.configurable)delete e[n];else return null;else if(He._prepareToStringify(e[n])===null)if(t.configurable)delete e[n];else return null}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999}};function jb(e){return He._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||He._isBoolean(e)?e:Object.prototype.toString.call(e)}function zK(e){return e>255?255:e<0?0:Math.round(e)}function $t(){if(Nn.isUnminified)return function(e,t){return He._isNumber(e)||He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function BK(e){if(Nn.isUnminified)return function(t,n){let r=He._isNumber(t),i=He._isArray(t)&&t.length==e;return!r&&!i&&He.warn(jb(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}}function kD(){if(Nn.isUnminified)return function(e,t){var n=He._isNumber(e),r=e==="auto";return n||r||He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function gC(){if(Nn.isUnminified)return function(e,t){return He._isString(e)||He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function $K(){if(Nn.isUnminified)return function(e,t){const n=He._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function YEe(){if(Nn.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(He._isArray(e)?e.forEach(function(r){He._isNumber(r)||He.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function _p(){if(Nn.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||He.warn(jb(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function qEe(e){if(Nn.isUnminified)return function(t,n){return t==null||He.isObject(t)||He.warn(jb(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}var FN="get",zN="set";const be={addGetterSetter(e,t,n,r,i){be.addGetter(e,t,n),be.addSetter(e,t,r,i),be.addOverloadedGetterSetter(e,t)},addGetter(e,t,n){var r=FN+He._capitalize(t);e.prototype[r]=e.prototype[r]||function(){var i=this.attrs[t];return i===void 0?n:i}},addSetter(e,t,n,r){var i=zN+He._capitalize(t);e.prototype[i]||be.overWriteSetter(e,t,n,r)},overWriteSetter(e,t,n,r){var i=zN+He._capitalize(t);e.prototype[i]=function(s){return n&&s!==void 0&&s!==null&&(s=n.call(this,s,t)),this._setAttr(t,s),r&&r.call(this),this}},addComponentsGetterSetter(e,t,n,r,i){var s=n.length,l=He._capitalize,f=FN+l(t),d=zN+l(t),m,b;e.prototype[f]=function(){var N={};for(m=0;m<s;m++)b=n[m],N[b]=this.getAttr(t+l(b));return N};var S=qEe(n);e.prototype[d]=function(N){var w=this.attrs[t],T;r&&(N=r.call(this,N)),S&&S.call(this,N,t);for(T in N)!N.hasOwnProperty(T)||this._setAttr(t+l(T),N[T]);return N||n.forEach(L=>{this._setAttr(t+l(L),void 0)}),this._fireChangeEvent(t,w,N),i&&i.call(this),this},be.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter(e,t){var n=He._capitalize(t),r=zN+n,i=FN+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(e,t,n,r){He.error("Adding deprecated "+t);var i=FN+He._capitalize(t),s=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[i]=function(){He.error(s);var l=this.attrs[t];return l===void 0?n:l},be.addSetter(e,t,r,function(){He.error(s)}),be.addOverloadedGetterSetter(e,t)},backCompat(e,t){He.each(t,function(n,r){var i=e.prototype[r],s=FN+He._capitalize(n),l=zN+He._capitalize(n);function f(){i.apply(this,arguments),He.error('"'+n+'" method is deprecated and will be removed soon. Use ""'+r+'" instead.')}e.prototype[n]=f,e.prototype[s]=f,e.prototype[l]=f})},afterSetFilter(){this._filterUpToDate=!1}};function KEe(e){var t=[],n=e.length,r=He,i,s;for(i=0;i<n;i++)s=e[i],r._isNumber(s)?s=Math.round(s*1e3)/1e3:r._isString(s)||(s=s+""),t.push(s);return t}var wU=",",ZEe="(",XEe=")",QEe="([",JEe="])",eTe=";",tTe="()",nTe="=",_U=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],rTe=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const aTe=100;class _7{constructor(t){this.canvas=t,Nn.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,n){var r=this.traceArr,i=r.length,s="",l,f,d,m;for(l=0;l<i;l++)f=r[l],d=f.method,d?(m=f.args,s+=d,t?s+=tTe:He._isArray(m[0])?s+=QEe+m.join(wU)+JEe:(n&&(m=m.map(b=>typeof b=="number"?Math.floor(b):b)),s+=ZEe+m.join(wU)+XEe)):(s+=f.property,t||(s+=nTe+f.val)),s+=eTe;return s}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=aTe&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var n=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(t){var n=t.getLineCap();n&&this.setAttr("lineCap",n)}_applyOpacity(t){var n=t.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(t){var n=t.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(t,n){this._context[t]=n}arc(t,n,r,i,s,l){this._context.arc(t,n,r,i,s,l)}arcTo(t,n,r,i,s){this._context.arcTo(t,n,r,i,s)}beginPath(){this._context.beginPath()}bezierCurveTo(t,n,r,i,s,l){this._context.bezierCurveTo(t,n,r,i,s,l)}clearRect(t,n,r,i){this._context.clearRect(t,n,r,i)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,n){var r=arguments;if(r.length===2)return this._context.createImageData(t,n);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,n,r,i){return this._context.createLinearGradient(t,n,r,i)}createPattern(t,n){return this._context.createPattern(t,n)}createRadialGradient(t,n,r,i,s,l){return this._context.createRadialGradient(t,n,r,i,s,l)}drawImage(t,n,r,i,s,l,f,d,m){var b=arguments,S=this._context;b.length===3?S.drawImage(t,n,r):b.length===5?S.drawImage(t,n,r,i,s):b.length===9&&S.drawImage(t,n,r,i,s,l,f,d,m)}ellipse(t,n,r,i,s,l,f,d){this._context.ellipse(t,n,r,i,s,l,f,d)}isPointInPath(t,n){return this._context.isPointInPath(t,n)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,n,r,i){this._context.fillRect(t,n,r,i)}strokeRect(t,n,r,i){this._context.strokeRect(t,n,r,i)}fillText(t,n,r,i){i?this._context.fillText(t,n,r,i):this._context.fillText(t,n,r)}measureText(t){return this._context.measureText(t)}getImageData(t,n,r,i){return this._context.getImageData(t,n,r,i)}lineTo(t,n){this._context.lineTo(t,n)}moveTo(t,n){this._context.moveTo(t,n)}rect(t,n,r,i){this._context.rect(t,n,r,i)}putImageData(t,n,r){this._context.putImageData(t,n,r)}quadraticCurveTo(t,n,r,i){this._context.quadraticCurveTo(t,n,r,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,n){this._context.scale(t,n)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,n,r,i,s,l){this._context.setTransform(t,n,r,i,s,l)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,n,r,i){this._context.strokeText(t,n,r,i)}transform(t,n,r,i,s,l){this._context.transform(t,n,r,i,s,l)}translate(t,n){this._context.translate(t,n)}_enableTrace(){var t=this,n=_U.length,r=this.setAttr,i,s,l=function(f){var d=t[f],m;t[f]=function(){return s=KEe(Array.prototype.slice.call(arguments,0)),m=d.apply(t,arguments),t._trace({method:f,args:s}),m}};for(i=0;i<n;i++)l(_U[i]);t.setAttr=function(){r.apply(t,arguments);var f=arguments[0],d=arguments[1];(f==="shadowOffsetX"||f==="shadowOffsetY"||f==="shadowBlur")&&(d=d/this.canvas.getPixelRatio()),t._trace({property:f,val:d})}}_applyGlobalCompositeOperation(t){const n=t.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}}rTe.forEach(function(e){Object.defineProperty(_7.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class iTe extends _7{constructor(t){super(t),this._context=t._canvas.getContext("2d")}_fillColor(t){var n=t.fill();this.setAttr("fillStyle",n),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var n=t._getLinearGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fillRadialGradient(t){var n=t._getRadialGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fill(t){var n=t.fill(),r=t.getFillPriority();if(n&&r==="color"){this._fillColor(t);return}var i=t.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(t);return}var s=t.getFillLinearGradientColorStops();if(s&&r==="linear-gradient"){this._fillLinearGradient(t);return}var l=t.getFillRadialGradientColorStops();if(l&&r==="radial-gradient"){this._fillRadialGradient(t);return}n?this._fillColor(t):i?this._fillPattern(t):s?this._fillLinearGradient(t):l&&this._fillRadialGradient(t)}_strokeLinearGradient(t){var n=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),s=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(var l=0;l<i.length;l+=2)s.addColorStop(i[l],i[l+1]);this.setAttr("strokeStyle",s)}}_stroke(t){var n=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),n&&t.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var s=t.getStrokeLinearGradientColorStops();s?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var n,r,i,s=(n=t.getShadowRGBA())!==null&&n!==void 0?n:"black",l=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,f=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},d=t.getAbsoluteScale(),m=this.canvas.getPixelRatio(),b=d.x*m,S=d.y*m;this.setAttr("shadowColor",s),this.setAttr("shadowBlur",l*Math.min(Math.abs(b),Math.abs(S))),this.setAttr("shadowOffsetX",f.x*b),this.setAttr("shadowOffsetY",f.y*S)}}class oTe extends _7{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var n=t.getStrokeScaleEnabled();if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t);var i=t.hitStrokeWidth(),s=i==="auto"?t.strokeWidth():i;this.setAttr("lineWidth",s),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),n||this.restore()}}}var TT;function sTe(){if(TT)return TT;var e=He.createCanvasElement(),t=e.getContext("2d");return TT=function(){var n=Nn._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),TT}class E7{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||Nn.pixelRatio||sTe();this.pixelRatio=r,this._canvas=He.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var n=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,n){this.setWidth(t||0),this.setHeight(n||0)}toDataURL(t,n){try{return this._canvas.toDataURL(t,n)}catch{try{return this._canvas.toDataURL()}catch(i){return He.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}be.addGetterSetter(E7,"pixelRatio",void 0,$t());class $3 extends E7{constructor(t={width:0,height:0}){super(t),this.context=new iTe(this),this.setSize(t.width,t.height)}}class AD extends E7{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new oTe(this),this.setSize(t.width,t.height)}}const Ea={get isDragging(){var e=!1;return Ea._dragElements.forEach(t=>{t.dragStatus==="dragging"&&(e=!0)}),e},justDragged:!1,get node(){var e;return Ea._dragElements.forEach(t=>{e=t.node}),e},_dragElements:new Map,_drag(e){const t=[];Ea._dragElements.forEach((n,r)=>{const{node:i}=n,s=i.getStage();s.setPointersPositions(e),n.pointerId===void 0&&(n.pointerId=He._getFirstPointerId(e));const l=s._changedPointerPositions.find(m=>m.id===n.pointerId);if(!!l){if(n.dragStatus!=="dragging"){var f=i.dragDistance(),d=Math.max(Math.abs(l.x-n.startPointerPos.x),Math.abs(l.y-n.startPointerPos.y));if(d<f||(i.startDrag({evt:e}),!i.isDragging()))return}i._setDragPosition(e,n),t.push(i)}}),t.forEach(n=>{n.fire("dragmove",{type:"dragmove",target:n,evt:e},!0)})},_endDragBefore(e){const t=[];Ea._dragElements.forEach(n=>{const{node:r}=n,i=r.getStage();if(e&&i.setPointersPositions(e),!i._changedPointerPositions.find(f=>f.id===n.pointerId))return;(n.dragStatus==="dragging"||n.dragStatus==="stopped")&&(Ea.justDragged=!0,Nn._mouseListenClick=!1,Nn._touchListenClick=!1,Nn._pointerListenClick=!1,n.dragStatus="stopped");const l=n.node.getLayer()||n.node instanceof Nn.Stage&&n.node;l&&t.indexOf(l)===-1&&t.push(l)}),t.forEach(n=>{n.draw()})},_endDragAfter(e){Ea._dragElements.forEach((t,n)=>{t.dragStatus==="stopped"&&t.node.fire("dragend",{type:"dragend",target:t.node,evt:e},!0),t.dragStatus!=="dragging"&&Ea._dragElements.delete(n)})}};Nn.isBrowser&&(window.addEventListener("mouseup",Ea._endDragBefore,!0),window.addEventListener("touchend",Ea._endDragBefore,!0),window.addEventListener("mousemove",Ea._drag),window.addEventListener("touchmove",Ea._drag),window.addEventListener("mouseup",Ea._endDragAfter,!1),window.addEventListener("touchend",Ea._endDragAfter,!1));var f6="absoluteOpacity",RT="allEventListeners",Qg="absoluteTransform",EU="absoluteScale",BN="canvas",lTe="Change",uTe="children",cTe="konva",AO="listening",TU="mouseenter",RU="mouseleave",kU="set",AU="Shape",d6=" ",OU="stage",bb="transform",fTe="Stage",OO="visible",dTe=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(d6);let hTe=1;class Vt{constructor(t){this._id=hTe++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===bb||t===Qg)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){var r=this._cache.get(t),i=t===bb||t===Qg,s=r===void 0||i&&r.dirty===!0;return s&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const i=n.map(s=>s+"Change.konva").join(d6);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(BN)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Qg&&this.fire("absoluteTransformChange")}clearCache(){return this._cache.delete(BN),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var n=t||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(n.width||r.width),s=Math.ceil(n.height||r.height),l=n.pixelRatio,f=n.x===void 0?Math.floor(r.x):n.x,d=n.y===void 0?Math.floor(r.y):n.y,m=n.offset||0,b=n.drawBorder||!1,S=n.hitCanvasPixelRatio||1;if(!i||!s){He.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=m*2+1,s+=m*2+1,f-=m,d-=m;var N=new $3({pixelRatio:l,width:i,height:s}),w=new $3({pixelRatio:l,width:0,height:0}),T=new AD({pixelRatio:S,width:i,height:s}),L=N.getContext(),M=T.getContext();return T.isCache=!0,N.isCache=!0,this._cache.delete(BN),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(N.getContext()._context.imageSmoothingEnabled=!1,w.getContext()._context.imageSmoothingEnabled=!1),L.save(),M.save(),L.translate(-f,-d),M.translate(-f,-d),this._isUnderCache=!0,this._clearSelfAndDescendantCache(f6),this._clearSelfAndDescendantCache(EU),this.drawScene(N,this),this.drawHit(T,this),this._isUnderCache=!1,L.restore(),M.restore(),b&&(L.save(),L.beginPath(),L.rect(0,0,i,s),L.closePath(),L.setAttr("strokeStyle","red"),L.setAttr("lineWidth",5),L.stroke(),L.restore()),this._cache.set(BN,{scene:N,filter:w,hit:T,x:f,y:d}),this._requestDraw(),this}isCached(){return this._cache.has(BN)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i,s,l,f,d=this.getAbsoluteTransform(n);return r.forEach(function(m){var b=d.point(m);i===void 0&&(i=l=b.x,s=f=b.y),i=Math.min(i,b.x),s=Math.min(s,b.y),l=Math.max(l,b.x),f=Math.max(f,b.y)}),{x:i,y:s,width:l-i,height:f-s}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),i=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/i,r.height/i),t.restore()}_drawCachedHitCanvas(t){var n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,s=i.getContext(),l,f,d,m;if(t){if(!this._filterUpToDate){var b=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(l=t.length,s.clear(),s.drawImage(r._canvas,0,0,r.getWidth()/b,r.getHeight()/b),f=s.getImageData(0,0,i.getWidth(),i.getHeight()),d=0;d<l;d++){if(m=t[d],typeof m!="function"){He.error("Filter should be type of function, but got "+typeof m+" instead. Please check correct filters");continue}m.call(this,f),s.putImageData(f,0,0)}}catch(S){He.error("Unable to apply filter. "+S.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(t,n){if(this._cache&&this._cache.delete(RT),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(d6),i=r.length,s,l,f,d,m;for(s=0;s<i;s++)l=r[s],f=l.split("."),d=f[0],m=f[1]||"",this.eventListeners[d]||(this.eventListeners[d]=[]),this.eventListeners[d].push({name:m,handler:n});return this}off(t,n){var r=(t||"").split(d6),i=r.length,s,l,f,d,m,b;if(this._cache&&this._cache.delete(RT),!t)for(l in this.eventListeners)this._off(l);for(s=0;s<i;s++)if(f=r[s],d=f.split("."),m=d[0],b=d[1],m)this.eventListeners[m]&&this._off(m,b,n);else for(l in this.eventListeners)this._off(l,b,n);return this}dispatchEvent(t){var n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){var i=this;this.on(t,function(s){for(var l=s.target.findAncestors(n,!0,i),f=0;f<l.length;f++)s=He.cloneObject(s),s.currentTarget=l[f],r.call(l[f],s)})}remove(){return this.isDragging()&&this.stopDrag(),Ea._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Qg),this._clearSelfAndDescendantCache(f6),this._clearSelfAndDescendantCache(EU),this._clearSelfAndDescendantCache(OU),this._clearSelfAndDescendantCache(OO),this._clearSelfAndDescendantCache(AO)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(t){var n="get"+He._capitalize(t);return He._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),n=[];t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var n,r;if(!t)return this;for(n in t)n!==uTe&&(r=kU+He._capitalize(n),He._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(AO,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache(OO,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),i=!1;Ea._dragElements.forEach(l=>{l.dragStatus==="dragging"&&(l.node.nodeType==="Stage"||l.node.getLayer()===r)&&(i=!0)});var s=!n&&!Nn.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!s}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),n=this,r=0,i,s,l,f;function d(m){for(i=[],s=m.length,l=0;l<s;l++)f=m[l],r++,f.nodeType!==AU&&(i=i.concat(f.getChildren().slice())),f._id===n._id&&(l=s);i.length>0&&i[0].getDepth()<=t&&d(i)}return n.nodeType!==fTe&&d(n.getStage().getChildren()),r}getDepth(){for(var t=0,n=this.parent;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(bb),this._clearSelfAndDescendantCache(Qg)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(t)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),s=new Qf,l=this.offset();return s.m=i.slice(),s.translate(l.x,l.y),s.getTranslation()}setAbsolutePosition(t){var n=this._clearTransform();this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,this._clearCache(bb);var r=this._getAbsoluteTransform().copy();return r.invert(),r.translate(t.x,t.y),t={x:this.attrs.x+r.getTranslation().x,y:this.attrs.y+r.getTranslation().y},this._setTransform(n),this.setPosition({x:t.x,y:t.y}),this._clearCache(bb),this._clearSelfAndDescendantCache(Qg),this}_setTransform(t){var n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var n=t.x,r=t.y,i=this.x(),s=this.y();return n!==void 0&&(i+=n),r!==void 0&&(s+=r),this.setPosition({x:i,y:s}),this}_eachAncestorReverse(t,n){var r=[],i=this.getParent(),s,l;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(s=r.length,l=0;l<s;l++)t(r[l])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return He.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return He.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return He.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return He.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return He.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&He.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(f6,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},n=this.getAttrs(),r,i,s,l,f;t.attrs={};for(r in n)i=n[r],f=He.isObject(i)&&!He._isPlainObject(i)&&!He._isArray(i),!f&&(s=typeof this[r]=="function"&&this[r],delete n[r],l=s?s.call(this):null,n[r]=i,l!==i&&(t.attrs[r]=i));return t.className=this.getClassName(),He._prepareToStringify(t)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){var i=[];n&&this._isMatch(t)&&i.push(this);for(var s=this.parent;s;){if(s===r)return i;s._isMatch(t)&&i.push(s),s=s.parent}return i}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var n=t.replace(/ /g,"").split(","),r=n.length,i,s;for(i=0;i<r;i++)if(s=n[i],He.isValidSelector(s)||(He.warn('Selector "'+s+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),He.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),He.warn("Konva is awesome, right?")),s.charAt(0)==="#"){if(this.id()===s.slice(1))return!0}else if(s.charAt(0)==="."){if(this.hasName(s.slice(1)))return!0}else if(this.className===s||this.nodeType===s)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(OU,this._getStage)}_getStage(){var t=this.getParent();if(t)return t.getStage()}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Qg,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new Qf,this._eachAncestorReverse(function(i){var s=i.transformsEnabled();s==="all"?n.multiply(i.getTransform()):s==="position"&&n.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),n;n=this._cache.get(Qg)||new Qf,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,s=this.attrs.y||0,l=this.attrs.offsetX||0,f=this.attrs.offsetY||0;n.translate(i-l,s-f)}return n.dirty=!1,n}getAbsoluteScale(t){for(var n=this;n;)n._isUnderCache&&(t=n),n=n.getParent();const i=this.getAbsoluteTransform(t).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(bb,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(bb)||new Qf;r.reset();var i=this.x(),s=this.y(),l=Nn.getAngle(this.rotation()),f=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,d=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,m=this.attrs.skewX||0,b=this.attrs.skewY||0,S=this.attrs.offsetX||0,N=this.attrs.offsetY||0;return(i!==0||s!==0)&&r.translate(i,s),l!==0&&r.rotate(l),(m!==0||b!==0)&&r.skew(m,b),(f!==1||d!==1)&&r.scale(f,d),(S!==0||N!==0)&&r.translate(-1*S,-1*N),r.dirty=!1,r}clone(t){var n=He.cloneObject(this.attrs),r,i,s,l,f;for(r in t)n[r]=t[r];var d=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],s=i.length,l=0;l<s;l++)f=i[l],f.name.indexOf(cTe)<0&&(d.eventListeners[r]||(d.eventListeners[r]=[]),d.eventListeners[r].push(f));return d}_toKonvaCanvas(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),i=t.x!==void 0?t.x:Math.floor(n.x),s=t.y!==void 0?t.y:Math.floor(n.y),l=t.pixelRatio||1,f=new $3({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:l}),d=f.getContext();return t.imageSmoothingEnabled===!1&&(d._context.imageSmoothingEnabled=!1),d.save(),(i||s)&&d.translate(-1*i,-1*s),this.drawScene(f),d.restore(),f}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var n=t.mimeType||null,r=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(i),i}toImage(t){return new Promise((n,r)=>{try{const i=t?.callback;i&&delete t.callback,He._urlToImage(this.toDataURL(t),function(s){n(s),i?.(s)})}catch(i){r(i)}})}toBlob(t){return new Promise((n,r)=>{try{const i=t?.callback;i&&delete t.callback,this.toCanvas(t).toBlob(s=>{n(s),i?.(s)})}catch(i){r(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Nn.dragDistance}_off(t,n,r){var i=this.eventListeners[t],s,l,f;for(s=0;s<i.length;s++)if(l=i[s].name,f=i[s].handler,(l!=="konva"||n==="konva")&&(!n||l===n)&&(!r||r===f)){if(i.splice(s,1),i.length===0){delete this.eventListeners[t];break}s--}}_fireChangeEvent(t,n,r){this._fire(t+lTe,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){var n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){var r=this[kU+He._capitalize(t)];return He._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){if(Nn.autoDrawEnabled){const t=this.getLayer()||this.getStage();t?.batchDraw()}}_setAttr(t,n){var r=this.attrs[t];r===n&&!He.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){var i;r!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,i,r))}_fireAndBubble(t,n,r){n&&this.nodeType===AU&&(n.target=this);var i=(t===TU||t===RU)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!i){this._fire(t,n);var s=(t===TU||t===RU)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!s&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){let n=this._cache.get(RT);if(!n){n={};let i=Object.getPrototypeOf(this);for(;i;){if(!i.eventListeners){i=Object.getPrototypeOf(i);continue}for(var r in i.eventListeners){const s=i.eventListeners[r],l=n[r]||[];n[r]=s.concat(l)}i=Object.getPrototypeOf(i)}this._cache.set(RT,n)}return n[t]}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const s=this.eventListeners[t];if(s)for(var i=0;i<s.length;i++)s[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var n=t?t.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition(),s=r._getPointerById(n)||r._changedPointerPositions[0]||i;Ea._dragElements.set(this._id,{node:this,startPointerPos:s,offset:{x:s.x-i.x,y:s.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(t,n=!0){Ea._dragElements.has(this._id)||this._createDragElement(t);const r=Ea._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(!!r){var i={x:r.x-n.offset.x,y:r.y-n.offset.y},s=this.dragBoundFunc();if(s!==void 0){const l=s.call(this,i,t);l?i=l:He.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const n=Ea._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Ea._endDragBefore(t),Ea._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Ea._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var n=t.evt.button!==void 0,r=!n||Nn.dragButtons.indexOf(t.evt.button)>=0;if(!!r&&!this.isDragging()){var i=!1;Ea._dragElements.forEach(s=>{this.isAncestorOf(s.node)&&(i=!0)}),i||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const n=Ea._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Ea._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return He.haveIntersection(r,this.getClientRect())}static create(t,n){return He._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=Vt.prototype.getClassName.call(t),i=t.children,s,l,f;n&&(t.attrs.container=n),Nn[r]||(He.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const d=Nn[r];if(s=new d(t.attrs),i)for(l=i.length,f=0;f<l;f++)s.add(Vt._createNode(i[f]));return s}}Vt.prototype.nodeType="Node";Vt.prototype._attrsAffectingSize=[];Vt.prototype.eventListeners={};Vt.prototype.on.call(Vt.prototype,dTe,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(bb),this._clearSelfAndDescendantCache(Qg)});Vt.prototype.on.call(Vt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(OO)});Vt.prototype.on.call(Vt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(AO)});Vt.prototype.on.call(Vt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(f6)});const Ni=be.addGetterSetter;Ni(Vt,"zIndex");Ni(Vt,"absolutePosition");Ni(Vt,"position");Ni(Vt,"x",0,$t());Ni(Vt,"y",0,$t());Ni(Vt,"globalCompositeOperation","source-over",gC());Ni(Vt,"opacity",1,$t());Ni(Vt,"name","",gC());Ni(Vt,"id","",gC());Ni(Vt,"rotation",0,$t());be.addComponentsGetterSetter(Vt,"scale",["x","y"]);Ni(Vt,"scaleX",1,$t());Ni(Vt,"scaleY",1,$t());be.addComponentsGetterSetter(Vt,"skew",["x","y"]);Ni(Vt,"skewX",0,$t());Ni(Vt,"skewY",0,$t());be.addComponentsGetterSetter(Vt,"offset",["x","y"]);Ni(Vt,"offsetX",0,$t());Ni(Vt,"offsetY",0,$t());Ni(Vt,"dragDistance",null,$t());Ni(Vt,"width",0,$t());Ni(Vt,"height",0,$t());Ni(Vt,"listening",!0,_p());Ni(Vt,"preventDefault",!0,_p());Ni(Vt,"filters",null,function(e){return this._filterUpToDate=!1,e});Ni(Vt,"visible",!0,_p());Ni(Vt,"transformsEnabled","all",gC());Ni(Vt,"size");Ni(Vt,"dragBoundFunc");Ni(Vt,"draggable",!1,_p());be.backCompat(Vt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class nd extends Vt{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const n=this.children||[];var r=[];return n.forEach(function(i){t(i)&&r.push(i)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}var r=t[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var n=this._generalFind(t,!0);return n.length>0?n[0]:void 0}_generalFind(t,n){var r=[];return this._descendants(i=>{const s=i._isMatch(t);return s&&r.push(i),!!(s&&n)}),r}_descendants(t){let n=!1;const r=this.getChildren();for(const i of r){if(n=t(i),n)return!0;if(!!i.hasChildren()&&(n=i._descendants(t),n))return!0}return!1}toObject(){var t=Vt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(n=>{t.children.push(n.toObject())}),t}isAncestorOf(t){for(var n=t.getParent();n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(t){var n=Vt.prototype.clone.call(this,t);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(t){var n=[];return this.find("Shape").forEach(function(r){r.isVisible()&&r.intersects(t)&&n.push(r)}),n}_clearSelfAndDescendantCache(t){var n;super._clearSelfAndDescendantCache(t),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(t,n){var r=this.getLayer(),i=t||r&&r.getCanvas(),s=i&&i.getContext(),l=this._getCanvasCache(),f=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(f){s.save();var m=this.getAbsoluteTransform(n).getMatrix();s.transform(m[0],m[1],m[2],m[3],m[4],m[5]),this._drawCachedSceneCanvas(s),s.restore()}else this._drawChildren("drawScene",i,n);return this}drawHit(t,n){if(!this.shouldDrawHit(n))return this;var r=this.getLayer(),i=t||r&&r.hitCanvas,s=i&&i.getContext(),l=this._getCanvasCache(),f=l&&l.hit;if(f){s.save();var d=this.getAbsoluteTransform(n).getMatrix();s.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedHitCanvas(s),s.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(t,n,r){var i,s=n&&n.getContext(),l=this.clipWidth(),f=this.clipHeight(),d=this.clipFunc(),m=l&&f||d;const b=r===this;if(m){s.save();var S=this.getAbsoluteTransform(r),N=S.getMatrix();if(s.transform(N[0],N[1],N[2],N[3],N[4],N[5]),s.beginPath(),d)d.call(this,s,this);else{var w=this.clipX(),T=this.clipY();s.rect(w,T,l,f)}s.clip(),N=S.copy().invert().getMatrix(),s.transform(N[0],N[1],N[2],N[3],N[4],N[5])}var L=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";L&&(s.save(),s._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(M){M[t](n,r)}),L&&s.restore(),m&&s.restore()}getClientRect(t){var n;t=t||{};var r=t.skipTransform,i=t.relativeTo,s,l,f,d,m={x:1/0,y:1/0,width:0,height:0},b=this;(n=this.children)===null||n===void 0||n.forEach(function(L){if(!!L.visible()){var M=L.getClientRect({relativeTo:b,skipShadow:t.skipShadow,skipStroke:t.skipStroke});M.width===0&&M.height===0||(s===void 0?(s=M.x,l=M.y,f=M.x+M.width,d=M.y+M.height):(s=Math.min(s,M.x),l=Math.min(l,M.y),f=Math.max(f,M.x+M.width),d=Math.max(d,M.y+M.height)))}});for(var S=this.find("Shape"),N=!1,w=0;w<S.length;w++){var T=S[w];if(T._isVisible(this)){N=!0;break}}return N&&s!==void 0?m={x:s,y:l,width:f-s,height:d-l}:m={x:0,y:0,width:0,height:0},r?m:this._transformedRect(m,i)}}be.addComponentsGetterSetter(nd,"clip",["x","y","width","height"]);be.addGetterSetter(nd,"clipX",void 0,$t());be.addGetterSetter(nd,"clipY",void 0,$t());be.addGetterSetter(nd,"clipWidth",void 0,$t());be.addGetterSetter(nd,"clipHeight",void 0,$t());be.addGetterSetter(nd,"clipFunc");const r_=new Map,UK=Nn._global.PointerEvent!==void 0;function wk(e){return r_.get(e)}function OD(e){return{evt:e,pointerId:e.pointerId}}function HK(e,t){return r_.get(e)===t}function jK(e,t){ww(e),t.getStage()&&(r_.set(e,t),UK&&t._fire("gotpointercapture",OD(new PointerEvent("gotpointercapture"))))}function ww(e,t){const n=r_.get(e);if(!n)return;const r=n.getStage();r&&r.content,r_.delete(e),UK&&n._fire("lostpointercapture",OD(new PointerEvent("lostpointercapture")))}var pTe="Stage",mTe="string",LU="px",vTe="mouseout",VK="mouseleave",GK="mouseover",WK="mouseenter",YK="mousemove",qK="mousedown",KK="mouseup",ew="pointermove",tw="pointerdown",N3="pointerup",nw="pointercancel",gTe="lostpointercapture",kT="pointerout",AT="pointerleave",OT="pointerover",LT="pointerenter",LO="contextmenu",ZK="touchstart",XK="touchend",QK="touchmove",JK="touchcancel",MO="wheel",bTe=5,yTe=[[WK,"_pointerenter"],[qK,"_pointerdown"],[YK,"_pointermove"],[KK,"_pointerup"],[VK,"_pointerleave"],[ZK,"_pointerdown"],[QK,"_pointermove"],[XK,"_pointerup"],[JK,"_pointercancel"],[GK,"_pointerover"],[MO,"_wheel"],[LO,"_contextmenu"],[tw,"_pointerdown"],[ew,"_pointermove"],[N3,"_pointerup"],[nw,"_pointercancel"],[gTe,"_lostpointercapture"]];const _k={mouse:{[kT]:vTe,[AT]:VK,[OT]:GK,[LT]:WK,[ew]:YK,[tw]:qK,[N3]:KK,[nw]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[kT]:"touchout",[AT]:"touchleave",[OT]:"touchover",[LT]:"touchenter",[ew]:QK,[tw]:ZK,[N3]:XK,[nw]:JK,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[kT]:kT,[AT]:AT,[OT]:OT,[LT]:LT,[ew]:ew,[tw]:tw,[N3]:N3,[nw]:nw,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},rw=e=>e.indexOf("pointer")>=0?"pointer":e.indexOf("touch")>=0?"touch":"mouse",u3=e=>{const t=rw(e);if(t==="pointer")return Nn.pointerEventsEnabled&&_k.pointer;if(t==="touch")return _k.touch;if(t==="mouse")return _k.mouse};function MU(e={}){return(e.clipFunc||e.clipWidth||e.clipHeight)&&He.warn("Stage does not support clipping. Please use clip for Layers or Groups."),e}const STe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",h6=[];class T7 extends nd{constructor(t){super(MU(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),h6.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{MU(this.attrs)}),this._checkVisibility()}_validateAdd(t){const n=t.getType()==="Layer",r=t.getType()==="FastLayer";n||r||He.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===mTe){if(t.charAt(0)==="."){var n=t.slice(1);t=document.getElementsByClassName(n)[0]}else{var r;t.charAt(0)!=="#"?r=t:r=t.slice(1),t=document.getElementById(r)}if(!t)throw"Can not find container in document with id "+r}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t=this.children,n=t.length,r;for(r=0;r<n;r++)t[r].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),nd.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&He._isInDocument(t)&&this.container().removeChild(t);var n=h6.indexOf(this);return n>-1&&h6.splice(n,1),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(He.warn(STe),null)}_getPointerById(t){return this._pointerPositions.find(n=>n.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var n=new $3({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),r=n.getContext()._context,i=this.children;return(t.x||t.y)&&r.translate(-1*t.x,-1*t.y),i.forEach(function(s){if(!!s.isVisible()){var l=s._toKonvaCanvas(t);r.drawImage(l._canvas,t.x,t.y,l.getWidth()/l.getPixelRatio(),l.getHeight()/l.getPixelRatio())}}),n}getIntersection(t){if(!t)return null;var n=this.children,r=n.length,i=r-1,s;for(s=i;s>=0;s--){const l=n[s].getIntersection(t);if(l)return l}return null}_resizeDOM(){var t=this.width(),n=this.height();this.content&&(this.content.style.width=t+LU,this.content.style.height=n+LU),this.bufferCanvas.setSize(t,n),this.bufferHitCanvas.setSize(t,n),this.children.forEach(r=>{r.setSize({width:t,height:n}),r.draw()})}add(t,...n){if(arguments.length>1){for(var r=0;r<arguments.length;r++)this.add(arguments[r]);return this}super.add(t);var i=this.children.length;return i>bTe&&He.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),Nn.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return HK(t,this)}setPointerCapture(t){jK(t,this)}releaseCapture(t){ww(t)}getLayers(){return this.children}_bindContentEvents(){!Nn.isBrowser||yTe.forEach(([t,n])=>{this.content.addEventListener(t,r=>{this[n](r)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const n=u3(t.type);this._fire(n.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const n=u3(t.type);this._fire(n.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let n=this[t+"targetShape"];return n&&!n.getStage()&&(n=null),n}_pointerleave(t){const n=u3(t.type),r=rw(t.type);if(!!n){this.setPointersPositions(t);var i=this._getTargetShape(r),s=!Ea.isDragging||Nn.hitOnDragEnabled;i&&s?(i._fireAndBubble(n.pointerout,{evt:t}),i._fireAndBubble(n.pointerleave,{evt:t}),this._fire(n.pointerleave,{evt:t,target:this,currentTarget:this}),this[r+"targetShape"]=null):s&&(this._fire(n.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(n.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const n=u3(t.type),r=rw(t.type);if(!!n){this.setPointersPositions(t);var i=!1;this._changedPointerPositions.forEach(s=>{var l=this.getIntersection(s);if(Ea.justDragged=!1,Nn["_"+r+"ListenClick"]=!0,!(l&&l.isListening()))return;Nn.capturePointerEventsEnabled&&l.setPointerCapture(s.id),this[r+"ClickStartShape"]=l,l._fireAndBubble(n.pointerdown,{evt:t,pointerId:s.id}),i=!0;const d=t.type.indexOf("touch")>=0;l.preventDefault()&&t.cancelable&&d&&t.preventDefault()}),i||this._fire(n.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const n=u3(t.type),r=rw(t.type);if(!n)return;Ea.isDragging&&Ea.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var i=!Ea.isDragging||Nn.hitOnDragEnabled;if(!i)return;var s={};let l=!1;var f=this._getTargetShape(r);this._changedPointerPositions.forEach(d=>{const m=wk(d.id)||this.getIntersection(d),b=d.id,S={evt:t,pointerId:b};var N=f!==m;if(N&&f&&(f._fireAndBubble(n.pointerout,Object.assign({},S),m),f._fireAndBubble(n.pointerleave,Object.assign({},S),m)),m){if(s[m._id])return;s[m._id]=!0}m&&m.isListening()?(l=!0,N&&(m._fireAndBubble(n.pointerover,Object.assign({},S),f),m._fireAndBubble(n.pointerenter,Object.assign({},S),f),this[r+"targetShape"]=m),m._fireAndBubble(n.pointermove,Object.assign({},S))):f&&(this._fire(n.pointerover,{evt:t,target:this,currentTarget:this,pointerId:b}),this[r+"targetShape"]=null)}),l||this._fire(n.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const n=u3(t.type),r=rw(t.type);if(!n)return;this.setPointersPositions(t);const i=this[r+"ClickStartShape"],s=this[r+"ClickEndShape"];var l={};let f=!1;this._changedPointerPositions.forEach(d=>{const m=wk(d.id)||this.getIntersection(d);if(m){if(m.releaseCapture(d.id),l[m._id])return;l[m._id]=!0}const b=d.id,S={evt:t,pointerId:b};let N=!1;Nn["_"+r+"InDblClickWindow"]?(N=!0,clearTimeout(this[r+"DblTimeout"])):Ea.justDragged||(Nn["_"+r+"InDblClickWindow"]=!0,clearTimeout(this[r+"DblTimeout"])),this[r+"DblTimeout"]=setTimeout(function(){Nn["_"+r+"InDblClickWindow"]=!1},Nn.dblClickWindow),m&&m.isListening()?(f=!0,this[r+"ClickEndShape"]=m,m._fireAndBubble(n.pointerup,Object.assign({},S)),Nn["_"+r+"ListenClick"]&&i&&i===m&&(m._fireAndBubble(n.pointerclick,Object.assign({},S)),N&&s&&s===m&&m._fireAndBubble(n.pointerdblclick,Object.assign({},S)))):(this[r+"ClickEndShape"]=null,Nn["_"+r+"ListenClick"]&&this._fire(n.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:b}),N&&this._fire(n.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:b}))}),f||this._fire(n.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Nn["_"+r+"ListenClick"]=!1,t.cancelable&&r!=="touch"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(LO,{evt:t}):this._fire(LO,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(MO,{evt:t}):this._fire(MO,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const n=wk(t.pointerId)||this.getIntersection(this.getPointerPosition());n&&n._fireAndBubble(N3,OD(t)),ww(t.pointerId)}_lostpointercapture(t){ww(t.pointerId)}setPointersPositions(t){var n=this._getContentPosition(),r=null,i=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,s=>{this._pointerPositions.push({id:s.identifier,x:(s.clientX-n.left)/n.scaleX,y:(s.clientY-n.top)/n.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,s=>{this._changedPointerPositions.push({id:s.identifier,x:(s.clientX-n.left)/n.scaleX,y:(s.clientY-n.top)/n.scaleY})})):(r=(t.clientX-n.left)/n.scaleX,i=(t.clientY-n.top)/n.scaleY,this.pointerPos={x:r,y:i},this._pointerPositions=[{x:r,y:i,id:He._getFirstPointerId(t)}],this._changedPointerPositions=[{x:r,y:i,id:He._getFirstPointerId(t)}])}_setPointerPosition(t){He.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new $3({width:this.width(),height:this.height()}),this.bufferHitCanvas=new AD({pixelRatio:1,width:this.width(),height:this.height()}),!!Nn.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return He.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}}T7.prototype.nodeType=pTe;Lo(T7);be.addGetterSetter(T7,"container");var eZ="hasShadow",tZ="shadowRGBA",nZ="patternImage",rZ="linearGradient",aZ="radialGradient";let MT;function Ek(){return MT||(MT=He.createCanvasElement().getContext("2d"),MT)}const _w={};function xTe(e){e.fill()}function CTe(e){e.stroke()}function NTe(e){e.fill()}function wTe(e){e.stroke()}function _Te(){this._clearCache(eZ)}function ETe(){this._clearCache(tZ)}function TTe(){this._clearCache(nZ)}function RTe(){this._clearCache(rZ)}function kTe(){this._clearCache(aZ)}class Dt extends Vt{constructor(t){super(t);let n;for(;n=He.getRandomColor(),!(n&&!(n in _w)););this.colorKey=n,_w[n]=this}getContext(){return He.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return He.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(eZ,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(nZ,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var t=Ek();const n=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(n&&n.setTransform){const r=new Qf;r.translate(this.fillPatternX(),this.fillPatternY()),r.rotate(Nn.getAngle(this.fillPatternRotation())),r.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),r.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const i=r.getMatrix(),s=typeof DOMMatrix>"u"?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);n.setTransform(s)}return n}}_getLinearGradient(){return this._getCache(rZ,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var n=Ek(),r=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),s=n.createLinearGradient(r.x,r.y,i.x,i.y),l=0;l<t.length;l+=2)s.addColorStop(t[l],t[l+1]);return s}}_getRadialGradient(){return this._getCache(aZ,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var n=Ek(),r=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),s=n.createRadialGradient(r.x,r.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius()),l=0;l<t.length;l+=2)s.addColorStop(t[l],t[l+1]);return s}}getShadowRGBA(){return this._getCache(tZ,this._getShadowRGBA)}_getShadowRGBA(){if(!!this.hasShadow()){var t=He.colorToRGBA(this.shadowColor());if(t)return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return t==="auto"?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var n=this.getStage(),r=n.bufferHitCanvas,i;return r.getContext().clear(),this.drawHit(r,null,!0),i=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,i[3]>0}destroy(){return Vt.prototype.destroy.call(this),delete _w[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var n;if(!this.getStage()||!((n=this.attrs.perfectDrawEnabled)!==null&&n!==void 0?n:!0))return!1;const i=t||this.hasFill(),s=this.hasStroke(),l=this.getAbsoluteOpacity()!==1;if(i&&s&&l)return!0;const f=this.hasShadow(),d=this.shadowForStrokeEnabled();return!!(i&&s&&f&&d)}setStrokeHitEnabled(t){He.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){const n=t.skipTransform,r=t.relativeTo,i=this.getSelfRect(),l=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,f=i.width+l,d=i.height+l,m=!t.skipShadow&&this.hasShadow(),b=m?this.shadowOffsetX():0,S=m?this.shadowOffsetY():0,N=f+Math.abs(b),w=d+Math.abs(S),T=m&&this.shadowBlur()||0,L=N+T*2,M=w+T*2,B={width:L,height:M,x:-(l/2+T)+Math.min(b,0)+i.x,y:-(l/2+T)+Math.min(S,0)+i.y};return n?B:this._transformedRect(B,r)}drawScene(t,n){var r=this.getLayer(),i=t||r.getCanvas(),s=i.getContext(),l=this._getCanvasCache(),f=this.getSceneFunc(),d=this.hasShadow(),m,b,S,N=i.isCache,w=n===this;if(!this.isVisible()&&!w)return this;if(l){s.save();var T=this.getAbsoluteTransform(n).getMatrix();return s.transform(T[0],T[1],T[2],T[3],T[4],T[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!f)return this;if(s.save(),this._useBufferCanvas()&&!N){m=this.getStage(),b=m.bufferCanvas,S=b.getContext(),S.clear(),S.save(),S._applyLineJoin(this);var L=this.getAbsoluteTransform(n).getMatrix();S.transform(L[0],L[1],L[2],L[3],L[4],L[5]),f.call(this,S,this),S.restore();var M=b.pixelRatio;d&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(b._canvas,0,0,b.width/M,b.height/M)}else{if(s._applyLineJoin(this),!w){var L=this.getAbsoluteTransform(n).getMatrix();s.transform(L[0],L[1],L[2],L[3],L[4],L[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)}d&&s._applyShadow(this),f.call(this,s,this)}return s.restore(),this}drawHit(t,n,r=!1){if(!this.shouldDrawHit(n,r))return this;var i=this.getLayer(),s=t||i.hitCanvas,l=s&&s.getContext(),f=this.hitFunc()||this.sceneFunc(),d=this._getCanvasCache(),m=d&&d.hit;if(this.colorKey||He.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),m){l.save();var b=this.getAbsoluteTransform(n).getMatrix();return l.transform(b[0],b[1],b[2],b[3],b[4],b[5]),this._drawCachedHitCanvas(l),l.restore(),this}if(!f)return this;if(l.save(),l._applyLineJoin(this),!(this===n)){var N=this.getAbsoluteTransform(n).getMatrix();l.transform(N[0],N[1],N[2],N[3],N[4],N[5])}return f.call(this,l,this),l.restore(),this}drawHitFromCache(t=0){var n=this._getCanvasCache(),r=this._getCachedSceneCanvas(),i=n.hit,s=i.getContext(),l=i.getWidth(),f=i.getHeight(),d,m,b,S,N,w;s.clear(),s.drawImage(r._canvas,0,0,l,f);try{for(d=s.getImageData(0,0,l,f),m=d.data,b=m.length,S=He._hexToRgb(this.colorKey),N=0;N<b;N+=4)w=m[N+3],w>t?(m[N]=S.r,m[N+1]=S.g,m[N+2]=S.b,m[N+3]=255):m[N+3]=0;s.putImageData(d,0,0)}catch(T){He.error("Unable to draw hit graph from cached scene canvas. "+T.message)}return this}hasPointerCapture(t){return HK(t,this)}setPointerCapture(t){jK(t,this)}releaseCapture(t){ww(t)}}Dt.prototype._fillFunc=xTe;Dt.prototype._strokeFunc=CTe;Dt.prototype._fillFuncHit=NTe;Dt.prototype._strokeFuncHit=wTe;Dt.prototype._centroid=!1;Dt.prototype.nodeType="Shape";Lo(Dt);Dt.prototype.eventListeners={};Dt.prototype.on.call(Dt.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",_Te);Dt.prototype.on.call(Dt.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",ETe);Dt.prototype.on.call(Dt.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",TTe);Dt.prototype.on.call(Dt.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",RTe);Dt.prototype.on.call(Dt.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",kTe);be.addGetterSetter(Dt,"stroke",void 0,$K());be.addGetterSetter(Dt,"strokeWidth",2,$t());be.addGetterSetter(Dt,"fillAfterStrokeEnabled",!1);be.addGetterSetter(Dt,"hitStrokeWidth","auto",kD());be.addGetterSetter(Dt,"strokeHitEnabled",!0,_p());be.addGetterSetter(Dt,"perfectDrawEnabled",!0,_p());be.addGetterSetter(Dt,"shadowForStrokeEnabled",!0,_p());be.addGetterSetter(Dt,"lineJoin");be.addGetterSetter(Dt,"lineCap");be.addGetterSetter(Dt,"sceneFunc");be.addGetterSetter(Dt,"hitFunc");be.addGetterSetter(Dt,"dash");be.addGetterSetter(Dt,"dashOffset",0,$t());be.addGetterSetter(Dt,"shadowColor",void 0,gC());be.addGetterSetter(Dt,"shadowBlur",0,$t());be.addGetterSetter(Dt,"shadowOpacity",1,$t());be.addComponentsGetterSetter(Dt,"shadowOffset",["x","y"]);be.addGetterSetter(Dt,"shadowOffsetX",0,$t());be.addGetterSetter(Dt,"shadowOffsetY",0,$t());be.addGetterSetter(Dt,"fillPatternImage");be.addGetterSetter(Dt,"fill",void 0,$K());be.addGetterSetter(Dt,"fillPatternX",0,$t());be.addGetterSetter(Dt,"fillPatternY",0,$t());be.addGetterSetter(Dt,"fillLinearGradientColorStops");be.addGetterSetter(Dt,"strokeLinearGradientColorStops");be.addGetterSetter(Dt,"fillRadialGradientStartRadius",0);be.addGetterSetter(Dt,"fillRadialGradientEndRadius",0);be.addGetterSetter(Dt,"fillRadialGradientColorStops");be.addGetterSetter(Dt,"fillPatternRepeat","repeat");be.addGetterSetter(Dt,"fillEnabled",!0);be.addGetterSetter(Dt,"strokeEnabled",!0);be.addGetterSetter(Dt,"shadowEnabled",!0);be.addGetterSetter(Dt,"dashEnabled",!0);be.addGetterSetter(Dt,"strokeScaleEnabled",!0);be.addGetterSetter(Dt,"fillPriority","color");be.addComponentsGetterSetter(Dt,"fillPatternOffset",["x","y"]);be.addGetterSetter(Dt,"fillPatternOffsetX",0,$t());be.addGetterSetter(Dt,"fillPatternOffsetY",0,$t());be.addComponentsGetterSetter(Dt,"fillPatternScale",["x","y"]);be.addGetterSetter(Dt,"fillPatternScaleX",1,$t());be.addGetterSetter(Dt,"fillPatternScaleY",1,$t());be.addComponentsGetterSetter(Dt,"fillLinearGradientStartPoint",["x","y"]);be.addComponentsGetterSetter(Dt,"strokeLinearGradientStartPoint",["x","y"]);be.addGetterSetter(Dt,"fillLinearGradientStartPointX",0);be.addGetterSetter(Dt,"strokeLinearGradientStartPointX",0);be.addGetterSetter(Dt,"fillLinearGradientStartPointY",0);be.addGetterSetter(Dt,"strokeLinearGradientStartPointY",0);be.addComponentsGetterSetter(Dt,"fillLinearGradientEndPoint",["x","y"]);be.addComponentsGetterSetter(Dt,"strokeLinearGradientEndPoint",["x","y"]);be.addGetterSetter(Dt,"fillLinearGradientEndPointX",0);be.addGetterSetter(Dt,"strokeLinearGradientEndPointX",0);be.addGetterSetter(Dt,"fillLinearGradientEndPointY",0);be.addGetterSetter(Dt,"strokeLinearGradientEndPointY",0);be.addComponentsGetterSetter(Dt,"fillRadialGradientStartPoint",["x","y"]);be.addGetterSetter(Dt,"fillRadialGradientStartPointX",0);be.addGetterSetter(Dt,"fillRadialGradientStartPointY",0);be.addComponentsGetterSetter(Dt,"fillRadialGradientEndPoint",["x","y"]);be.addGetterSetter(Dt,"fillRadialGradientEndPointX",0);be.addGetterSetter(Dt,"fillRadialGradientEndPointY",0);be.addGetterSetter(Dt,"fillPatternRotation",0);be.backCompat(Dt,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var ATe="#",OTe="beforeDraw",LTe="draw",iZ=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],MTe=iZ.length;class GS extends nd{constructor(t){super(t),this.canvas=new $3,this.hitCanvas=new AD({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),t<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[t+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Vt.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Vt.prototype.moveUp.call(this);if(!t)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Vt.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Vt.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Vt.prototype.remove.call(this),t&&t.parentNode&&He._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:n}){return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&He.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Vt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){He.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){He.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,He.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let i=0;i<MTe;i++){const s=iZ[i],l=this._getIntersection({x:t.x+s.x*n,y:t.y+s.y*n}),f=l.shape;if(f)return f;if(r=!!l.antialiased,!l.antialiased)break}if(r)n+=1;else return null}}_getIntersection(t){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,i=r[3];if(i===255){const s=He._rgbToHex(r[0],r[1],r[2]),l=_w[ATe+s];return l?{shape:l}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(t,n){var r=this.getLayer(),i=t||r&&r.getCanvas();return this._fire(OTe,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),nd.prototype.drawScene.call(this,i,n),this._fire(LTe,{node:this}),this}drawHit(t,n){var r=this.getLayer(),i=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),nd.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){He.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return He.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}}GS.prototype.nodeType="Layer";Lo(GS);be.addGetterSetter(GS,"imageSmoothingEnabled",!0);be.addGetterSetter(GS,"clearBeforeDraw",!0);be.addGetterSetter(GS,"hitGraphEnabled",!0,_p());class LD extends GS{constructor(t){super(t),this.listening(!1),He.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}LD.prototype.nodeType="FastLayer";Lo(LD);class eC extends nd{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&He.throw("You may only add groups and shapes to groups.")}}eC.prototype.nodeType="Group";Lo(eC);var Tk=function(){return B3.performance&&B3.performance.now?function(){return B3.performance.now()}:function(){return new Date().getTime()}}();class th{constructor(t,n){this.id=th.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Tk(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){var n=[];return t?t.length>0?n=t:n=[t]:n=[],this.layers=n,this}getLayers(){return this.layers}addLayer(t){var n=this.layers,r=n.length,i;for(i=0;i<r;i++)if(n[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t=th,n=t.animations,r=n.length,i;for(i=0;i<r;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Tk(),th._addAnimation(this),this}stop(){return th._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){var n=t.id,r=this.animations,i=r.length,s;for(s=0;s<i;s++)if(r[s].id===n){this.animations.splice(s,1);break}}static _runFrames(){var t={},n=this.animations,r,i,s,l,f,d,m,b,S;for(l=0;l<n.length;l++)if(r=n[l],i=r.layers,s=r.func,r._updateFrameObject(Tk()),d=i.length,s?S=s.call(r,r.frame)!==!1:S=!0,!!S)for(f=0;f<d;f++)m=i[f],m._id!==void 0&&(t[m._id]=m);for(b in t)!t.hasOwnProperty(b)||t[b].batchDraw()}static _animationLoop(){var t=th;t.animations.length?(t._runFrames(),He.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,He.requestAnimFrame(this._animationLoop))}}th.animations=[];th.animIdCounter=0;th.animRunning=!1;var DTe={node:1,duration:1,easing:1,onFinish:1,yoyo:1},PTe=1,DU=2,PU=3,ITe=0,IU=["fill","stroke","shadowColor"];class FTe{constructor(t,n,r,i,s,l,f){this.prop=t,this.propFunc=n,this.begin=i,this._pos=i,this.duration=l,this._change=0,this.prevPos=0,this.yoyo=f,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=r,this._change=s-this.begin,this.pause()}fire(t){var n=this[t];n&&n()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=DU,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=PU,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===DU?this.setTime(t):this.state===PU&&this.setTime(this.duration-t)}pause(){this.state=PTe,this.fire("onPause")}getTimer(){return new Date().getTime()}}class ms{constructor(t){var n=this,r=t.node,i=r._id,s,l=t.easing||Ew.Linear,f=!!t.yoyo,d;typeof t.duration>"u"?s=.3:t.duration===0?s=.001:s=t.duration,this.node=r,this._id=ITe++;var m=r.getLayer()||(r instanceof Nn.Stage?r.getLayers():null);m||He.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new th(function(){n.tween.onEnterFrame()},m),this.tween=new FTe(d,function(b){n._tweenFunc(b)},l,0,1,s*1e3,f),this._addListeners(),ms.attrs[i]||(ms.attrs[i]={}),ms.attrs[i][this._id]||(ms.attrs[i][this._id]={}),ms.tweens[i]||(ms.tweens[i]={});for(d in t)DTe[d]===void 0&&this._addAttr(d,t[d]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,n){var r=this.node,i=r._id,s,l,f,d,m,b,S,N;if(f=ms.tweens[i][t],f&&delete ms.attrs[i][f][t],s=r.getAttr(t),He._isArray(n))if(l=[],m=Math.max(n.length,s.length),t==="points"&&n.length!==s.length&&(n.length>s.length?(S=s,s=He._prepareArrayForTween(s,n,r.closed())):(b=n,n=He._prepareArrayForTween(n,s,r.closed()))),t.indexOf("fill")===0)for(d=0;d<m;d++)if(d%2===0)l.push(n[d]-s[d]);else{var w=He.colorToRGBA(s[d]);N=He.colorToRGBA(n[d]),s[d]=w,l.push({r:N.r-w.r,g:N.g-w.g,b:N.b-w.b,a:N.a-w.a})}else for(d=0;d<m;d++)l.push(n[d]-s[d]);else IU.indexOf(t)!==-1?(s=He.colorToRGBA(s),N=He.colorToRGBA(n),l={r:N.r-s.r,g:N.g-s.g,b:N.b-s.b,a:N.a-s.a}):l=n-s;ms.attrs[i][this._id][t]={start:s,diff:l,end:n,trueEnd:b,trueStart:S},ms.tweens[i][t]=this._id}_tweenFunc(t){var n=this.node,r=ms.attrs[n._id][this._id],i,s,l,f,d,m,b,S;for(i in r){if(s=r[i],l=s.start,f=s.diff,S=s.end,He._isArray(l))if(d=[],b=Math.max(l.length,S.length),i.indexOf("fill")===0)for(m=0;m<b;m++)m%2===0?d.push((l[m]||0)+f[m]*t):d.push("rgba("+Math.round(l[m].r+f[m].r*t)+","+Math.round(l[m].g+f[m].g*t)+","+Math.round(l[m].b+f[m].b*t)+","+(l[m].a+f[m].a*t)+")");else for(m=0;m<b;m++)d.push((l[m]||0)+f[m]*t);else IU.indexOf(i)!==-1?d="rgba("+Math.round(l.r+f.r*t)+","+Math.round(l.g+f.g*t)+","+Math.round(l.b+f.b*t)+","+(l.a+f.a*t)+")":d=l+f*t;n.setAttr(i,d)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,n=ms.attrs[t._id][this._id];n.points&&n.points.trueEnd&&t.setAttr("points",n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,n=ms.attrs[t._id][this._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,n=this._id,r=ms.tweens[t],i;this.pause();for(i in r)delete ms.tweens[t][i];delete ms.attrs[t][n]}}ms.attrs={};ms.tweens={};Vt.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()};var n=new ms(e);n.play()};const Ew={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,s){var l=0;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,l=s/4):l=s/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-l)*(2*Math.PI)/s))+t)},ElasticEaseOut(e,t,n,r,i,s){var l=0;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,l=s/4):l=s/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-l)*(2*Math.PI)/s)+n+t)},ElasticEaseInOut(e,t,n,r,i,s){var l=0;return e===0?t:(e/=r/2)===2?t+n:(s||(s=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,l=s/4):l=s/(2*Math.PI)*Math.asin(n/i),e<1?-.5*(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-l)*(2*Math.PI)/s))+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-l)*(2*Math.PI)/s)*.5+n+t)},BounceEaseOut(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn(e,t,n,r){return n-Ew.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut(e,t,n,r){return e<r/2?Ew.BounceEaseIn(e*2,0,n,r)*.5+t:Ew.BounceEaseOut(e*2-r,0,n,r)*.5+n*.5+t},EaseIn(e,t,n,r){return n*(e/=r)*e+t},EaseOut(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear(e,t,n,r){return n*e/r+t}},DS=He._assign(Nn,{Util:He,Transform:Qf,Node:Vt,Container:nd,Stage:T7,stages:h6,Layer:GS,FastLayer:LD,Group:eC,DD:Ea,Shape:Dt,shapes:_w,Animation:th,Tween:ms,Easings:Ew,Context:_7,Canvas:E7});class m0 extends Dt{_sceneFunc(t){var n=Nn.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,n,r),t.arc(0,0,this.innerRadius(),n,0,!r),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=Nn.getAngle(r?360-this.angle():this.angle()),s=Math.cos(Math.min(i,Math.PI)),l=1,f=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),d=Math.sin(Math.min(i,Math.PI/2)),m=s*(s>0?t:n),b=l*n,S=f*(f>0?t:n),N=d*(d>0?n:t);return{x:m,y:r?-1*N:S,width:b-m,height:N-S}}}m0.prototype._centroid=!0;m0.prototype.className="Arc";m0.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Lo(m0);be.addGetterSetter(m0,"innerRadius",0,$t());be.addGetterSetter(m0,"outerRadius",0,$t());be.addGetterSetter(m0,"angle",0,$t());be.addGetterSetter(m0,"clockwise",!1,_p());function DO(e,t,n,r,i,s,l){var f=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),d=Math.sqrt(Math.pow(i-n,2)+Math.pow(s-r,2)),m=l*f/(f+d),b=l*d/(f+d),S=n-m*(i-e),N=r-m*(s-t),w=n+b*(i-e),T=r+b*(s-t);return[S,N,w,T]}function FU(e,t){var n=e.length,r=[],i,s;for(i=2;i<n-2;i+=2)s=DO(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(s[0])&&(r.push(s[0]),r.push(s[1]),r.push(e[i]),r.push(e[i+1]),r.push(s[2]),r.push(s[3]));return r}class v0 extends Dt{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var n=this.points(),r=n.length,i=this.tension(),s=this.closed(),l=this.bezier(),f,d,m;if(!!r){if(t.beginPath(),t.moveTo(n[0],n[1]),i!==0&&r>4){for(f=this.getTensionPoints(),d=f.length,m=s?0:4,s||t.quadraticCurveTo(f[0],f[1],f[2],f[3]);m<d-2;)t.bezierCurveTo(f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]);s||t.quadraticCurveTo(f[d-2],f[d-1],n[r-2],n[r-1])}else if(l)for(m=2;m<r;)t.bezierCurveTo(n[m++],n[m++],n[m++],n[m++],n[m++],n[m++]);else for(m=2;m<r;m+=2)t.lineTo(n[m],n[m+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():FU(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),n=t.length,r=this.tension(),i=DO(t[n-2],t[n-1],t[0],t[1],t[2],t[3],r),s=DO(t[n-4],t[n-3],t[n-2],t[n-1],t[0],t[1],r),l=FU(t,r),f=[i[2],i[3]].concat(l).concat([s[0],s[1],t[n-2],t[n-1],s[2],s[3],i[0],i[1],t[0],t[1]]);return f}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var n=t[0],r=t[0],i=t[1],s=t[1],l,f,d=0;d<t.length/2;d++)l=t[d*2],f=t[d*2+1],n=Math.min(n,l),r=Math.max(r,l),i=Math.min(i,f),s=Math.max(s,f);return{x:n,y:i,width:r-n,height:s-i}}}v0.prototype.className="Line";v0.prototype._attrsAffectingSize=["points","bezier","tension"];Lo(v0);be.addGetterSetter(v0,"closed",!1);be.addGetterSetter(v0,"bezier",!1);be.addGetterSetter(v0,"tension",0,$t());be.addGetterSetter(v0,"points",[],YEe());class ci extends Dt{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=ci.parsePathData(this.data()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on("dataChange.konva",function(){this.dataArray=ci.parsePathData(this.data()),this.pathLength=0;for(var r=0;r<this.dataArray.length;++r)this.pathLength+=this.dataArray[r].pathLength})}_sceneFunc(t){var n=this.dataArray;t.beginPath();for(var r=!1,i=0;i<n.length;i++){var s=n[i].command,l=n[i].points;switch(s){case"L":t.lineTo(l[0],l[1]);break;case"M":t.moveTo(l[0],l[1]);break;case"C":t.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case"Q":t.quadraticCurveTo(l[0],l[1],l[2],l[3]);break;case"A":var f=l[0],d=l[1],m=l[2],b=l[3],S=l[4],N=l[5],w=l[6],T=l[7],L=m>b?m:b,M=m>b?1:m/b,B=m>b?b/m:1;t.translate(f,d),t.rotate(w),t.scale(M,B),t.arc(0,0,L,S,S+N,1-T),t.scale(1/M,1/B),t.rotate(-w),t.translate(-f,-d);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(m){if(m.command==="A"){var b=m.points[4],S=m.points[5],N=m.points[4]+S,w=Math.PI/180;if(Math.abs(b-N)<w&&(w=Math.abs(b-N)),S<0)for(let T=b-w;T>N;T-=w){const L=ci.getPointOnEllipticalArc(m.points[0],m.points[1],m.points[2],m.points[3],T,0);t.push(L.x,L.y)}else for(let T=b+w;T<N;T+=w){const L=ci.getPointOnEllipticalArc(m.points[0],m.points[1],m.points[2],m.points[3],T,0);t.push(L.x,L.y)}}else if(m.command==="C")for(let T=0;T<=1;T+=.01){const L=ci.getPointOnCubicBezier(T,m.start.x,m.start.y,m.points[0],m.points[1],m.points[2],m.points[3],m.points[4],m.points[5]);t.push(L.x,L.y)}else t=t.concat(m.points)});for(var n=t[0],r=t[0],i=t[1],s=t[1],l,f,d=0;d<t.length/2;d++)l=t[d*2],f=t[d*2+1],isNaN(l)||(n=Math.min(n,l),r=Math.max(r,l)),isNaN(f)||(i=Math.min(i,f),s=Math.max(s,f));return{x:n,y:i,width:r-n,height:s-i}}getLength(){return this.pathLength}getPointAtLength(t){var n,r=0,i=this.dataArray.length;if(!i)return null;for(;r<i&&t>this.dataArray[r].pathLength;)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var s=this.dataArray[r],l=s.points;switch(s.command){case"L":return ci.getPointOnLine(t,s.start.x,s.start.y,l[0],l[1]);case"C":return ci.getPointOnCubicBezier(t/s.pathLength,s.start.x,s.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return ci.getPointOnQuadraticBezier(t/s.pathLength,s.start.x,s.start.y,l[0],l[1],l[2],l[3]);case"A":var f=l[0],d=l[1],m=l[2],b=l[3],S=l[4],N=l[5],w=l[6];return S+=N*t/s.pathLength,ci.getPointOnEllipticalArc(f,d,m,b,S,w)}return null}static getLineLength(t,n,r,i){return Math.sqrt((r-t)*(r-t)+(i-n)*(i-n))}static getPointOnLine(t,n,r,i,s,l,f){l===void 0&&(l=n),f===void 0&&(f=r);var d=(s-r)/(i-n+1e-8),m=Math.sqrt(t*t/(1+d*d));i<n&&(m*=-1);var b=d*m,S;if(i===n)S={x:l,y:f+b};else if((f-r)/(l-n+1e-8)===d)S={x:l+m,y:f+b};else{var N,w,T=this.getLineLength(n,r,i,s),L=(l-n)*(i-n)+(f-r)*(s-r);L=L/(T*T),N=n+L*(i-n),w=r+L*(s-r);var M=this.getLineLength(l,f,N,w),B=Math.sqrt(t*t-M*M);m=Math.sqrt(B*B/(1+d*d)),i<n&&(m*=-1),b=d*m,S={x:N+m,y:w+b}}return S}static getPointOnCubicBezier(t,n,r,i,s,l,f,d,m){function b(M){return M*M*M}function S(M){return 3*M*M*(1-M)}function N(M){return 3*M*(1-M)*(1-M)}function w(M){return(1-M)*(1-M)*(1-M)}var T=d*b(t)+l*S(t)+i*N(t)+n*w(t),L=m*b(t)+f*S(t)+s*N(t)+r*w(t);return{x:T,y:L}}static getPointOnQuadraticBezier(t,n,r,i,s,l,f){function d(w){return w*w}function m(w){return 2*w*(1-w)}function b(w){return(1-w)*(1-w)}var S=l*d(t)+i*m(t)+n*b(t),N=f*d(t)+s*m(t)+r*b(t);return{x:S,y:N}}static getPointOnEllipticalArc(t,n,r,i,s,l){var f=Math.cos(l),d=Math.sin(l),m={x:r*Math.cos(s),y:i*Math.sin(s)};return{x:t+(m.x*f-m.y*d),y:n+(m.x*d+m.y*f)}}static parsePathData(t){if(!t)return[];var n=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);var s=n.split("|"),l=[],f=[],d=0,m=0,b=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,S;for(i=1;i<s.length;i++){var N=s[i],w=N.charAt(0);for(N=N.slice(1),f.length=0;S=b.exec(N);)f.push(S[0]);for(var T=[],L=0,M=f.length;L<M;L++){if(f[L]==="00"){T.push(0,0);continue}var B=parseFloat(f[L]);isNaN(B)?T.push(0):T.push(B)}for(;T.length>0&&!isNaN(T[0]);){var F=null,z=[],H=d,G=m,K,Z,ne,ie,le,oe,Ae,de,Se,Me;switch(w){case"l":d+=T.shift(),m+=T.shift(),F="L",z.push(d,m);break;case"L":d=T.shift(),m=T.shift(),z.push(d,m);break;case"m":var _e=T.shift(),J=T.shift();if(d+=_e,m+=J,F="M",l.length>2&&l[l.length-1].command==="z"){for(var he=l.length-2;he>=0;he--)if(l[he].command==="M"){d=l[he].points[0]+_e,m=l[he].points[1]+J;break}}z.push(d,m),w="l";break;case"M":d=T.shift(),m=T.shift(),F="M",z.push(d,m),w="L";break;case"h":d+=T.shift(),F="L",z.push(d,m);break;case"H":d=T.shift(),F="L",z.push(d,m);break;case"v":m+=T.shift(),F="L",z.push(d,m);break;case"V":m=T.shift(),F="L",z.push(d,m);break;case"C":z.push(T.shift(),T.shift(),T.shift(),T.shift()),d=T.shift(),m=T.shift(),z.push(d,m);break;case"c":z.push(d+T.shift(),m+T.shift(),d+T.shift(),m+T.shift()),d+=T.shift(),m+=T.shift(),F="C",z.push(d,m);break;case"S":Z=d,ne=m,K=l[l.length-1],K.command==="C"&&(Z=d+(d-K.points[2]),ne=m+(m-K.points[3])),z.push(Z,ne,T.shift(),T.shift()),d=T.shift(),m=T.shift(),F="C",z.push(d,m);break;case"s":Z=d,ne=m,K=l[l.length-1],K.command==="C"&&(Z=d+(d-K.points[2]),ne=m+(m-K.points[3])),z.push(Z,ne,d+T.shift(),m+T.shift()),d+=T.shift(),m+=T.shift(),F="C",z.push(d,m);break;case"Q":z.push(T.shift(),T.shift()),d=T.shift(),m=T.shift(),z.push(d,m);break;case"q":z.push(d+T.shift(),m+T.shift()),d+=T.shift(),m+=T.shift(),F="Q",z.push(d,m);break;case"T":Z=d,ne=m,K=l[l.length-1],K.command==="Q"&&(Z=d+(d-K.points[0]),ne=m+(m-K.points[1])),d=T.shift(),m=T.shift(),F="Q",z.push(Z,ne,d,m);break;case"t":Z=d,ne=m,K=l[l.length-1],K.command==="Q"&&(Z=d+(d-K.points[0]),ne=m+(m-K.points[1])),d+=T.shift(),m+=T.shift(),F="Q",z.push(Z,ne,d,m);break;case"A":ie=T.shift(),le=T.shift(),oe=T.shift(),Ae=T.shift(),de=T.shift(),Se=d,Me=m,d=T.shift(),m=T.shift(),F="A",z=this.convertEndpointToCenterParameterization(Se,Me,d,m,Ae,de,ie,le,oe);break;case"a":ie=T.shift(),le=T.shift(),oe=T.shift(),Ae=T.shift(),de=T.shift(),Se=d,Me=m,d+=T.shift(),m+=T.shift(),F="A",z=this.convertEndpointToCenterParameterization(Se,Me,d,m,Ae,de,ie,le,oe);break}l.push({command:F||w,points:z,start:{x:H,y:G},pathLength:this.calcLength(H,G,F||w,z)})}(w==="z"||w==="Z")&&l.push({command:"z",points:[],start:void 0,pathLength:0})}return l}static calcLength(t,n,r,i){var s,l,f,d,m=ci;switch(r){case"L":return m.getLineLength(t,n,i[0],i[1]);case"C":for(s=0,l=m.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),d=.01;d<=1;d+=.01)f=m.getPointOnCubicBezier(d,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),s+=m.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case"Q":for(s=0,l=m.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),d=.01;d<=1;d+=.01)f=m.getPointOnQuadraticBezier(d,t,n,i[0],i[1],i[2],i[3]),s+=m.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case"A":s=0;var b=i[4],S=i[5],N=i[4]+S,w=Math.PI/180;if(Math.abs(b-N)<w&&(w=Math.abs(b-N)),l=m.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],b,0),S<0)for(d=b-w;d>N;d-=w)f=m.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),s+=m.getLineLength(l.x,l.y,f.x,f.y),l=f;else for(d=b+w;d<N;d+=w)f=m.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),s+=m.getLineLength(l.x,l.y,f.x,f.y),l=f;return f=m.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],N,0),s+=m.getLineLength(l.x,l.y,f.x,f.y),s}return 0}static convertEndpointToCenterParameterization(t,n,r,i,s,l,f,d,m){var b=m*(Math.PI/180),S=Math.cos(b)*(t-r)/2+Math.sin(b)*(n-i)/2,N=-1*Math.sin(b)*(t-r)/2+Math.cos(b)*(n-i)/2,w=S*S/(f*f)+N*N/(d*d);w>1&&(f*=Math.sqrt(w),d*=Math.sqrt(w));var T=Math.sqrt((f*f*(d*d)-f*f*(N*N)-d*d*(S*S))/(f*f*(N*N)+d*d*(S*S)));s===l&&(T*=-1),isNaN(T)&&(T=0);var L=T*f*N/d,M=T*-d*S/f,B=(t+r)/2+Math.cos(b)*L-Math.sin(b)*M,F=(n+i)/2+Math.sin(b)*L+Math.cos(b)*M,z=function(le){return Math.sqrt(le[0]*le[0]+le[1]*le[1])},H=function(le,oe){return(le[0]*oe[0]+le[1]*oe[1])/(z(le)*z(oe))},G=function(le,oe){return(le[0]*oe[1]<le[1]*oe[0]?-1:1)*Math.acos(H(le,oe))},K=G([1,0],[(S-L)/f,(N-M)/d]),Z=[(S-L)/f,(N-M)/d],ne=[(-1*S-L)/f,(-1*N-M)/d],ie=G(Z,ne);return H(Z,ne)<=-1&&(ie=Math.PI),H(Z,ne)>=1&&(ie=0),l===0&&ie>0&&(ie=ie-2*Math.PI),l===1&&ie<0&&(ie=ie+2*Math.PI),[B,F,f,d,K,ie,b,l]}}ci.prototype.className="Path";ci.prototype._attrsAffectingSize=["data"];Lo(ci);be.addGetterSetter(ci,"data");class WS extends v0{_sceneFunc(t){super._sceneFunc(t);var n=Math.PI*2,r=this.points(),i=r,s=this.tension()!==0&&r.length>4;s&&(i=this.getTensionPoints());var l=this.pointerLength(),f=r.length,d,m;if(s){const N=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],r[f-2],r[f-1]],w=ci.calcLength(i[i.length-4],i[i.length-3],"C",N),T=ci.getPointOnQuadraticBezier(Math.min(1,1-l/w),N[0],N[1],N[2],N[3],N[4],N[5]);d=r[f-2]-T.x,m=r[f-1]-T.y}else d=r[f-2]-r[f-4],m=r[f-1]-r[f-3];var b=(Math.atan2(m,d)+n)%n,S=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(r[f-2],r[f-1]),t.rotate(b),t.moveTo(0,0),t.lineTo(-l,S/2),t.lineTo(-l,-S/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(r[0],r[1]),s?(d=(i[0]+i[2])/2-r[0],m=(i[1]+i[3])/2-r[1]):(d=r[2]-r[0],m=r[3]-r[1]),t.rotate((Math.atan2(-m,-d)+n)%n),t.moveTo(0,0),t.lineTo(-l,S/2),t.lineTo(-l,-S/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),n=this.pointerWidth()/2;return{x:t.x-n,y:t.y-n,width:t.width+n*2,height:t.height+n*2}}}WS.prototype.className="Arrow";Lo(WS);be.addGetterSetter(WS,"pointerLength",10,$t());be.addGetterSetter(WS,"pointerWidth",10,$t());be.addGetterSetter(WS,"pointerAtBeginning",!1);be.addGetterSetter(WS,"pointerAtEnding",!0);class bC extends Dt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}bC.prototype._centroid=!0;bC.prototype.className="Circle";bC.prototype._attrsAffectingSize=["radius"];Lo(bC);be.addGetterSetter(bC,"radius",0,$t());class Vb extends Dt{_sceneFunc(t){var n=this.radiusX(),r=this.radiusY();t.beginPath(),t.save(),n!==r&&t.scale(1,r/n),t.arc(0,0,n,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}Vb.prototype.className="Ellipse";Vb.prototype._centroid=!0;Vb.prototype._attrsAffectingSize=["radiusX","radiusY"];Lo(Vb);be.addComponentsGetterSetter(Vb,"radius",["x","y"]);be.addGetterSetter(Vb,"radiusX",0,$t());be.addGetterSetter(Vb,"radiusY",0,$t());class Ep extends Dt{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),i=this.attrs.image;let s;if(i){const l=this.attrs.cropWidth,f=this.attrs.cropHeight;l&&f?s=[i,this.cropX(),this.cropY(),l,f,0,0,n,r]:s=[i,0,0,n,r]}(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),i&&t.drawImage.apply(t,s)}_hitFunc(t){var n=this.width(),r=this.height();t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){var i=He.createImageElement();i.onload=function(){var s=new Ep({image:i});n(s)},i.onerror=r,i.crossOrigin="Anonymous",i.src=t}}Ep.prototype.className="Image";Lo(Ep);be.addGetterSetter(Ep,"image");be.addComponentsGetterSetter(Ep,"crop",["x","y","width","height"]);be.addGetterSetter(Ep,"cropX",0,$t());be.addGetterSetter(Ep,"cropY",0,$t());be.addGetterSetter(Ep,"cropWidth",0,$t());be.addGetterSetter(Ep,"cropHeight",0,$t());var oZ=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],zTe="Change.konva",BTe="none",PO="up",IO="right",FO="down",zO="left",$Te=oZ.length;class MD extends eC{constructor(t){super(t),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var n=this,r,i=function(){n._sync()};for(r=0;r<$Te;r++)t.on(oZ[r]+zTe,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),n=this.getTag(),r,i,s,l,f,d,m;if(t&&n){switch(r=t.width(),i=t.height(),s=n.pointerDirection(),l=n.pointerWidth(),m=n.pointerHeight(),f=0,d=0,s){case PO:f=r/2,d=-1*m;break;case IO:f=r+l,d=i/2;break;case FO:f=r/2,d=i+m;break;case zO:f=-1*l,d=i/2;break}n.setAttrs({x:-1*f,y:-1*d,width:r,height:i}),t.setAttrs({x:-1*f,y:-1*d})}}}MD.prototype.className="Label";Lo(MD);class YS extends Dt{_sceneFunc(t){var n=this.width(),r=this.height(),i=this.pointerDirection(),s=this.pointerWidth(),l=this.pointerHeight(),f=this.cornerRadius();let d=0,m=0,b=0,S=0;typeof f=="number"?d=m=b=S=Math.min(f,n/2,r/2):(d=Math.min(f[0]||0,n/2,r/2),m=Math.min(f[1]||0,n/2,r/2),S=Math.min(f[2]||0,n/2,r/2),b=Math.min(f[3]||0,n/2,r/2)),t.beginPath(),t.moveTo(d,0),i===PO&&(t.lineTo((n-s)/2,0),t.lineTo(n/2,-1*l),t.lineTo((n+s)/2,0)),t.lineTo(n-m,0),t.arc(n-m,m,m,Math.PI*3/2,0,!1),i===IO&&(t.lineTo(n,(r-l)/2),t.lineTo(n+s,r/2),t.lineTo(n,(r+l)/2)),t.lineTo(n,r-S),t.arc(n-S,r-S,S,0,Math.PI/2,!1),i===FO&&(t.lineTo((n+s)/2,r),t.lineTo(n/2,r+l),t.lineTo((n-s)/2,r)),t.lineTo(b,r),t.arc(b,r-b,b,Math.PI/2,Math.PI,!1),i===zO&&(t.lineTo(0,(r+l)/2),t.lineTo(-1*s,r/2),t.lineTo(0,(r-l)/2)),t.lineTo(0,d),t.arc(d,d,d,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),s=this.pointerDirection(),l=this.width(),f=this.height();return s===PO?(n-=i,f+=i):s===FO?f+=i:s===zO?(t-=r*1.5,l+=r):s===IO&&(l+=r*1.5),{x:t,y:n,width:l,height:f}}}YS.prototype.className="Tag";Lo(YS);be.addGetterSetter(YS,"pointerDirection",BTe);be.addGetterSetter(YS,"pointerWidth",0,$t());be.addGetterSetter(YS,"pointerHeight",0,$t());be.addGetterSetter(YS,"cornerRadius",0,BK(4));class M_ extends Dt{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),i=this.height();if(t.beginPath(),!n)t.rect(0,0,r,i);else{let s=0,l=0,f=0,d=0;typeof n=="number"?s=l=f=d=Math.min(n,r/2,i/2):(s=Math.min(n[0]||0,r/2,i/2),l=Math.min(n[1]||0,r/2,i/2),d=Math.min(n[2]||0,r/2,i/2),f=Math.min(n[3]||0,r/2,i/2)),t.moveTo(s,0),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),t.lineTo(r,i-d),t.arc(r-d,i-d,d,0,Math.PI/2,!1),t.lineTo(f,i),t.arc(f,i-f,f,Math.PI/2,Math.PI,!1),t.lineTo(0,s),t.arc(s,s,s,Math.PI,Math.PI*3/2,!1)}t.closePath(),t.fillStrokeShape(this)}}M_.prototype.className="Rect";Lo(M_);be.addGetterSetter(M_,"cornerRadius",0,BK(4));class qS extends Dt{_sceneFunc(t){const n=this._getPoints();t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)t.lineTo(n[r].x,n[r].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,n=this.attrs.radius||0,r=[];for(var i=0;i<t;i++)r.push({x:n*Math.sin(i*2*Math.PI/t),y:-1*n*Math.cos(i*2*Math.PI/t)});return r}getSelfRect(){const t=this._getPoints();var n=t[0].x,r=t[0].y,i=t[0].x,s=t[0].y;return t.forEach(l=>{n=Math.min(n,l.x),r=Math.max(r,l.x),i=Math.min(i,l.y),s=Math.max(s,l.y)}),{x:n,y:i,width:r-n,height:s-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}qS.prototype.className="RegularPolygon";qS.prototype._centroid=!0;qS.prototype._attrsAffectingSize=["radius"];Lo(qS);be.addGetterSetter(qS,"radius",0,$t());be.addGetterSetter(qS,"sides",0,$t());var zU=Math.PI*2;class KS extends Dt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,zU,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),zU,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}KS.prototype.className="Ring";KS.prototype._centroid=!0;KS.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Lo(KS);be.addGetterSetter(KS,"innerRadius",0,$t());be.addGetterSetter(KS,"outerRadius",0,$t());class yv extends Dt{constructor(t){super(t),this._updated=!0,this.anim=new th(()=>{var n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){!this.anim.isRunning()||(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,s=this.animations()[n],l=this.frameOffsets(),f=s[i+0],d=s[i+1],m=s[i+2],b=s[i+3],S=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,m,b),t.closePath(),t.fillStrokeShape(this)),S)if(l){var N=l[n],w=r*2;t.drawImage(S,f,d,m,b,N[w+0],N[w+1],m,b)}else t.drawImage(S,f,d,m,b,0,0,m,b)}_hitFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,s=this.animations()[n],l=this.frameOffsets(),f=s[i+2],d=s[i+3];if(t.beginPath(),l){var m=l[n],b=r*2;t.rect(m[b+0],m[b+1],f,d)}else t.rect(0,0,f,d);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],s=i.length/4;t<s-1?this.frameIndex(t+1):this.frameIndex(0)}}yv.prototype.className="Sprite";Lo(yv);be.addGetterSetter(yv,"animation");be.addGetterSetter(yv,"animations");be.addGetterSetter(yv,"frameOffsets");be.addGetterSetter(yv,"image");be.addGetterSetter(yv,"frameIndex",0,$t());be.addGetterSetter(yv,"frameRate",17,$t());be.backCompat(yv,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Gb extends Dt{_sceneFunc(t){var n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-r);for(var s=1;s<i*2;s++){var l=s%2===0?r:n,f=l*Math.sin(s*Math.PI/i),d=-1*l*Math.cos(s*Math.PI/i);t.lineTo(f,d)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Gb.prototype.className="Star";Gb.prototype._centroid=!0;Gb.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Lo(Gb);be.addGetterSetter(Gb,"numPoints",5,$t());be.addGetterSetter(Gb,"innerRadius",0,$t());be.addGetterSetter(Gb,"outerRadius",0,$t());function sZ(e){return Array.from(e)}var c3="auto",UTe="center",$N="justify",HTe="Change.konva",jTe="2d",BU="-",lZ="left",VTe="text",GTe="Text",WTe="top",YTe="bottom",$U="middle",uZ="normal",qTe="px ",DT=" ",KTe="right",ZTe="word",XTe="char",UU="none",Rk="\u2026",cZ=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],QTe=cZ.length;function JTe(e){return e.split(",").map(t=>{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}var PT;function kk(){return PT||(PT=He.createCanvasElement().getContext(jTe),PT)}function e6e(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function t6e(e){e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function n6e(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class Oo extends Dt{constructor(t){super(n6e(t)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<QTe;n++)this.on(cZ[n]+HTe,this._setTextData);this._setTextData()}_sceneFunc(t){var n=this.textArr,r=n.length;if(!!this.text()){var i=this.padding(),s=this.fontSize(),l=this.lineHeight()*s,f=this.verticalAlign(),d=0,m=this.align(),b=this.getWidth(),S=this.letterSpacing(),N=this.fill(),w=this.textDecoration(),T=w.indexOf("underline")!==-1,L=w.indexOf("line-through")!==-1,M,B=0,B=l/2,F=0,z=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",$U),t.setAttr("textAlign",lZ),f===$U?d=(this.getHeight()-r*l-i*2)/2:f===YTe&&(d=this.getHeight()-r*l-i*2),t.translate(i,d+i),M=0;M<r;M++){var F=0,z=0,H=n[M],G=H.text,K=H.width,Z=H.lastInParagraph,ne,ie,le;if(t.save(),m===KTe?F+=b-K-i*2:m===UTe&&(F+=(b-K-i*2)/2),T&&(t.save(),t.beginPath(),t.moveTo(F,B+z+Math.round(s/2)),ne=G.split(" ").length-1,ie=ne===0,le=m===$N&&Z&&!ie?b-i*2:K,t.lineTo(F+Math.round(le),B+z+Math.round(s/2)),t.lineWidth=s/15,t.strokeStyle=N,t.stroke(),t.restore()),L&&(t.save(),t.beginPath(),t.moveTo(F,B+z),ne=G.split(" ").length-1,ie=ne===0,le=m===$N&&Z&&!ie?b-i*2:K,t.lineTo(F+Math.round(le),B+z),t.lineWidth=s/15,t.strokeStyle=N,t.stroke(),t.restore()),S!==0||m===$N){ne=G.split(" ").length-1;for(var oe=sZ(G),Ae=0;Ae<oe.length;Ae++){var de=oe[Ae];de===" "&&!Z&&m===$N&&(F+=(b-i*2-K)/ne),this._partialTextX=F,this._partialTextY=B+z,this._partialText=de,t.fillStrokeShape(this),F+=this.measureSize(de).width+S}}else this._partialTextX=F,this._partialTextY=B+z,this._partialText=G,t.fillStrokeShape(this);t.restore(),r>1&&(B+=l)}}}_hitFunc(t){var n=this.getWidth(),r=this.getHeight();t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}setText(t){var n=He._isString(t)?t:t==null?"":t+"";return this._setAttr(VTe,n),this}getWidth(){var t=this.attrs.width===c3||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===c3||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return He.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var n=kk(),r=this.fontSize(),i;return n.save(),n.font=this._getContextFont(),i=n.measureText(t),n.restore(),{width:i.width,height:r}}_getContextFont(){return this.fontStyle()+DT+this.fontVariant()+DT+(this.fontSize()+qTe)+JTe(this.fontFamily())}_addTextLine(t){this.align()===$N&&(t=t.trim());var n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){var n=this.letterSpacing(),r=t.length;return kk().measureText(t).width+(r?n*(r-1):0)}_setTextData(){var t=this.text().split(`
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,s=this.attrs.width,l=this.attrs.height,f=s!==c3&&s!==void 0,d=l!==c3&&l!==void 0,m=this.padding(),b=s-m*2,S=l-m*2,N=0,w=this.wrap(),T=w!==UU,L=w!==XTe&&T,M=this.ellipsis();this.textArr=[],kk().font=this._getContextFont();for(var B=M?this._getTextWidth(Rk):0,F=0,z=t.length;F<z;++F){var H=t[F],G=this._getTextWidth(H);if(f&&G>b)for(;H.length>0;){for(var K=0,Z=H.length,ne="",ie=0;K<Z;){var le=K+Z>>>1,oe=H.slice(0,le+1),Ae=this._getTextWidth(oe)+B;Ae<=b?(K=le+1,ne=oe,ie=Ae):Z=le}if(ne){if(L){var de,Se=H[ne.length],Me=Se===DT||Se===BU;Me&&ie<=b?de=ne.length:de=Math.max(ne.lastIndexOf(DT),ne.lastIndexOf(BU))+1,de>0&&(K=de,ne=ne.slice(0,K),ie=this._getTextWidth(ne))}ne=ne.trimRight(),this._addTextLine(ne),r=Math.max(r,ie),N+=i;var _e=this._shouldHandleEllipsis(N);if(_e){this._tryToAddEllipsisToLastLine();break}if(H=H.slice(K),H=H.trimLeft(),H.length>0&&(G=this._getTextWidth(H),G<=b)){this._addTextLine(H),N+=i,r=Math.max(r,G);break}}else break}else this._addTextLine(H),N+=i,r=Math.max(r,G),this._shouldHandleEllipsis(N)&&F<z-1&&this._tryToAddEllipsisToLastLine();if(d&&N+i>S)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,s=i!==c3&&i!==void 0,l=this.padding(),f=i-l*2,d=this.wrap(),m=d!==UU;return!m||s&&t+r>f}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==c3&&t!==void 0,r=this.padding(),i=t-r*2,s=this.ellipsis(),l=this.textArr[this.textArr.length-1];if(!(!l||!s)){if(n){var f=this._getTextWidth(l.text+Rk)<i;f||(l.text=l.text.slice(0,l.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(l.text+Rk)}}getStrokeScaleEnabled(){return!0}}Oo.prototype._fillFunc=e6e;Oo.prototype._strokeFunc=t6e;Oo.prototype.className=GTe;Oo.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Lo(Oo);be.overWriteSetter(Oo,"width",kD());be.overWriteSetter(Oo,"height",kD());be.addGetterSetter(Oo,"fontFamily","Arial");be.addGetterSetter(Oo,"fontSize",12,$t());be.addGetterSetter(Oo,"fontStyle",uZ);be.addGetterSetter(Oo,"fontVariant",uZ);be.addGetterSetter(Oo,"padding",0,$t());be.addGetterSetter(Oo,"align",lZ);be.addGetterSetter(Oo,"verticalAlign",WTe);be.addGetterSetter(Oo,"lineHeight",1,$t());be.addGetterSetter(Oo,"wrap",ZTe);be.addGetterSetter(Oo,"ellipsis",!1,_p());be.addGetterSetter(Oo,"letterSpacing",0,$t());be.addGetterSetter(Oo,"text","",gC());be.addGetterSetter(Oo,"textDecoration","");var r6e="",fZ="normal";function dZ(e){e.fillText(this.partialText,0,0)}function hZ(e){e.strokeText(this.partialText,0,0)}class tl extends Dt{constructor(t){super(t),this.dummyCanvas=He.createCanvasElement(),this.dataArray=[],this.dataArray=ci.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=ci.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),s=this.glyphInfo;n==="underline"&&t.beginPath();for(var l=0;l<s.length;l++){t.save();var f=s[l].p0;t.translate(f.x,f.y),t.rotate(s[l].rotation),this.partialText=s[l].text,t.fillStrokeShape(this),n==="underline"&&(l===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var s=n[i].p1;t.lineTo(s.x,s.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return He.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return Oo.prototype.setText.call(this,t)}_getContextFont(){return Oo.prototype._getContextFont.call(this)}_getTextSize(t){var n=this.dummyCanvas,r=n.getContext("2d");r.save(),r.font=this._getContextFont();var i=r.measureText(t);return r.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t=this,n=this._getTextSize(this.attrs.text),r=this.letterSpacing(),i=this.align(),s=this.kerningFunc();this.textWidth=n.width,this.textHeight=n.height;var l=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);this.glyphInfo=[];for(var f=0,d=0;d<t.dataArray.length;d++)t.dataArray[d].pathLength>0&&(f+=t.dataArray[d].pathLength);var m=0;i==="center"&&(m=Math.max(0,f/2-l/2)),i==="right"&&(m=Math.max(0,f-l));for(var b=sZ(this.text()),S=this.text().split(" ").length-1,N,w,T,L=-1,M=0,B=function(){M=0;for(var Ae=t.dataArray,de=L+1;de<Ae.length;de++){if(Ae[de].pathLength>0)return L=de,Ae[de];Ae[de].command==="M"&&(N={x:Ae[de].points[0],y:Ae[de].points[1]})}return{}},F=function(Ae){var de=t._getTextSize(Ae).width+r;Ae===" "&&i==="justify"&&(de+=(f-l)/S);var Se=0,Me=0;for(w=void 0;Math.abs(de-Se)/de>.01&&Me<20;){Me++;for(var _e=Se;T===void 0;)T=B(),T&&_e+T.pathLength<de&&(_e+=T.pathLength,T=void 0);if(Object.keys(T).length===0||N===void 0)return;var J=!1;switch(T.command){case"L":ci.getLineLength(N.x,N.y,T.points[0],T.points[1])>de?w=ci.getPointOnLine(de,N.x,N.y,T.points[0],T.points[1],N.x,N.y):T=void 0;break;case"A":var he=T.points[4],ve=T.points[5],ye=T.points[4]+ve;M===0?M=he+1e-8:de>Se?M+=Math.PI/180*ve/Math.abs(ve):M-=Math.PI/360*ve/Math.abs(ve),(ve<0&&M<ye||ve>=0&&M>ye)&&(M=ye,J=!0),w=ci.getPointOnEllipticalArc(T.points[0],T.points[1],T.points[2],T.points[3],M,T.points[6]);break;case"C":M===0?de>T.pathLength?M=1e-8:M=de/T.pathLength:de>Se?M+=(de-Se)/T.pathLength/2:M=Math.max(M-(Se-de)/T.pathLength/2,0),M>1&&(M=1,J=!0),w=ci.getPointOnCubicBezier(M,T.start.x,T.start.y,T.points[0],T.points[1],T.points[2],T.points[3],T.points[4],T.points[5]);break;case"Q":M===0?M=de/T.pathLength:de>Se?M+=(de-Se)/T.pathLength:M-=(Se-de)/T.pathLength,M>1&&(M=1,J=!0),w=ci.getPointOnQuadraticBezier(M,T.start.x,T.start.y,T.points[0],T.points[1],T.points[2],T.points[3]);break}w!==void 0&&(Se=ci.getLineLength(N.x,N.y,w.x,w.y)),J&&(J=!1,T=void 0)}},z="C",H=t._getTextSize(z).width+r,G=m/H-1,K=0;K<G&&(F(z),!(N===void 0||w===void 0));K++)N=w;for(var Z=0;Z<b.length&&(F(b[Z]),!(N===void 0||w===void 0));Z++){var ne=ci.getLineLength(N.x,N.y,w.x,w.y),ie=0;if(s)try{ie=s(b[Z-1],b[Z])*this.fontSize()}catch{ie=0}N.x+=ie,w.x+=ie,this.textWidth+=ie;var le=ci.getPointOnLine(ie+ne/2,N.x,N.y,w.x,w.y),oe=Math.atan2(w.y-N.y,w.x-N.x);this.glyphInfo.push({transposeX:le.x,transposeY:le.y,text:b[Z],rotation:oe,p0:N,p1:w}),N=w}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(b){t.push(b.p0.x),t.push(b.p0.y),t.push(b.p1.x),t.push(b.p1.y)});for(var n=t[0]||0,r=t[0]||0,i=t[1]||0,s=t[1]||0,l,f,d=0;d<t.length/2;d++)l=t[d*2],f=t[d*2+1],n=Math.min(n,l),r=Math.max(r,l),i=Math.min(i,f),s=Math.max(s,f);var m=this.fontSize();return{x:n-m/2,y:i-m/2,width:r-n+m,height:s-i+m}}}tl.prototype._fillFunc=dZ;tl.prototype._strokeFunc=hZ;tl.prototype._fillFuncHit=dZ;tl.prototype._strokeFuncHit=hZ;tl.prototype.className="TextPath";tl.prototype._attrsAffectingSize=["text","fontSize","data"];Lo(tl);be.addGetterSetter(tl,"data");be.addGetterSetter(tl,"fontFamily","Arial");be.addGetterSetter(tl,"fontSize",12,$t());be.addGetterSetter(tl,"fontStyle",fZ);be.addGetterSetter(tl,"align","left");be.addGetterSetter(tl,"letterSpacing",0,$t());be.addGetterSetter(tl,"textBaseline","middle");be.addGetterSetter(tl,"fontVariant",fZ);be.addGetterSetter(tl,"text",r6e);be.addGetterSetter(tl,"textDecoration",null);be.addGetterSetter(tl,"kerningFunc",null);var pZ="tr-konva",a6e=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(e=>e+`.${pZ}`).join(" "),HU="nodesRect",i6e=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],o6e={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const s6e="ontouchstart"in Nn._global;function l6e(e,t){if(e==="rotater")return"crosshair";t+=He.degToRad(o6e[e]||0);var n=(He.radToDeg(t)%360+360)%360;return He._inRange(n,315+22.5,360)||He._inRange(n,0,22.5)?"ns-resize":He._inRange(n,45-22.5,45+22.5)?"nesw-resize":He._inRange(n,90-22.5,90+22.5)?"ew-resize":He._inRange(n,135-22.5,135+22.5)?"nwse-resize":He._inRange(n,180-22.5,180+22.5)?"ns-resize":He._inRange(n,225-22.5,225+22.5)?"nesw-resize":He._inRange(n,270-22.5,270+22.5)?"ew-resize":He._inRange(n,315-22.5,315+22.5)?"nwse-resize":(He.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var m9=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],jU=1e8;function u6e(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function mZ(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return Object.assign(Object.assign({},e),{rotation:e.rotation+t,x:r,y:i})}function c6e(e,t){const n=u6e(e);return mZ(e,t,n)}function f6e(e,t,n){let r=t;for(let i=0;i<e.length;i++){const s=Nn.getAngle(e[i]),l=Math.abs(s-t)%(Math.PI*2);Math.min(l,Math.PI*2-l)<n&&(r=s)}return r}class Ga extends eC{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(a6e,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return He.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return pZ+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(r=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=r._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");r.on(s,i),r.on(i6e.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),r.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(r)}),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(t){let n;t.on(`dragstart.${this._getEventNamespace()}`,r=>{n=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!n)return;const i=t.getAbsolutePosition(),s=i.x-n.x,l=i.y-n.y;this.nodes().forEach(f=>{if(f===t||f.isDragging())return;const d=f.getAbsolutePosition();f.setAbsolutePosition({x:d.x+s,y:d.y+l}),f.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(HU),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(HU,this.__getNodeRect)}__getNodeShape(t,n=this.rotation(),r){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),s=t.getAbsoluteScale(r),l=t.getAbsolutePosition(r),f=i.x*s.x-t.offsetX()*s.x,d=i.y*s.y-t.offsetY()*s.y;const m=(Nn.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),b={x:l.x+f*Math.cos(m)+d*Math.sin(-m),y:l.y+d*Math.cos(m)+f*Math.sin(m),width:i.width*s.x,height:i.height*s.y,rotation:m};return mZ(b,-Nn.getAngle(n),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-jU,y:-jU,width:0,height:0,rotation:0};const n=[];this.nodes().map(m=>{const b=m.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var S=[{x:b.x,y:b.y},{x:b.x+b.width,y:b.y},{x:b.x+b.width,y:b.y+b.height},{x:b.x,y:b.y+b.height}],N=m.getAbsoluteTransform();S.forEach(function(w){var T=N.point(w);n.push(T)})});const r=new Qf;r.rotate(-Nn.getAngle(this.rotation()));var i,s,l,f;n.forEach(function(m){var b=r.point(m);i===void 0&&(i=l=b.x,s=f=b.y),i=Math.min(i,b.x),s=Math.min(s,b.y),l=Math.max(l,b.x),f=Math.max(f,b.y)}),r.invert();const d=r.point({x:i,y:s});return{x:d.x,y:d.y,width:l-i,height:f-s,rotation:Nn.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),m9.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")}_createAnchor(t){var n=new M_({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:s6e?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{var i=Nn.getAngle(this.rotation()),s=l6e(t,i);n.getStage().content&&(n.getStage().content.style.cursor=s),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){var t=new Dt({name:"back",width:0,height:0,draggable:!0,sceneFunc(n){var r=this.getParent(),i=r.padding();n.beginPath(),n.rect(-i,-i,this.width()+i*2,this.height()+i*2),n.moveTo(this.width()/2,-i),r.rotateEnabled()&&n.lineTo(this.width()/2,-r.rotateAnchorOffset()*He._sign(this.height())-i),n.fillStrokeShape(this)},hitFunc:(n,r)=>{if(!!this.shouldOverdrawWholeArea()){var i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",n=>{n.cancelBubble=!0}),t.on("dragmove",n=>{n.cancelBubble=!0}),t.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var n=this._getNodeRect(),r=n.width,i=n.height,s=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/s),this.cos=Math.abs(r/s),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var l=t.target.getAbsolutePosition(),f=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:f.x-l.x,y:f.y-l.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(d=>{d._fire("transformstart",{evt:t.evt,target:d})})}_handleMouseMove(t){var n,r,i,s=this.findOne("."+this._movingAnchorName),l=s.getStage();l.setPointersPositions(t);const f=l.getPointerPosition();let d={x:f.x-this._anchorDragOffset.x,y:f.y-this._anchorDragOffset.y};const m=s.getAbsolutePosition();this.anchorDragBoundFunc()&&(d=this.anchorDragBoundFunc()(m,d,t)),s.setAbsolutePosition(d);const b=s.getAbsolutePosition();if(!(m.x===b.x&&m.y===b.y)){if(this._movingAnchorName==="rotater"){var S=this._getNodeRect();n=s.x()-S.width/2,r=-s.y()+S.height/2;let Ae=Math.atan2(-r,n)+Math.PI/2;S.height<0&&(Ae-=Math.PI);var N=Nn.getAngle(this.rotation());const de=N+Ae,Se=Nn.getAngle(this.rotationSnapTolerance()),_e=f6e(this.rotationSnaps(),de,Se)-S.rotation,J=c6e(S,_e);this._fitNodesInto(J,t);return}var w=this.keepRatio()||t.shiftKey,F=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(w){var T=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(T.x-s.x(),2)+Math.pow(T.y-s.y(),2));var L=this.findOne(".top-left").x()>T.x?-1:1,M=this.findOne(".top-left").y()>T.y?-1:1;n=i*this.cos*L,r=i*this.sin*M,this.findOne(".top-left").x(T.x-n),this.findOne(".top-left").y(T.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(s.y());else if(this._movingAnchorName==="top-right"){if(w){var T=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(s.x()-T.x,2)+Math.pow(T.y-s.y(),2));var L=this.findOne(".top-right").x()<T.x?-1:1,M=this.findOne(".top-right").y()>T.y?-1:1;n=i*this.cos*L,r=i*this.sin*M,this.findOne(".top-right").x(T.x+n),this.findOne(".top-right").y(T.y-r)}var B=s.position();this.findOne(".top-left").y(B.y),this.findOne(".bottom-right").x(B.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(s.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(s.x());else if(this._movingAnchorName==="bottom-left"){if(w){var T=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(T.x-s.x(),2)+Math.pow(s.y()-T.y,2));var L=T.x<s.x()?-1:1,M=s.y()<T.y?-1:1;n=i*this.cos*L,r=i*this.sin*M,s.x(T.x-n),s.y(T.y+r)}B=s.position(),this.findOne(".top-left").x(B.x),this.findOne(".bottom-right").y(B.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(s.y());else if(this._movingAnchorName==="bottom-right"){if(w){var T=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(s.x()-T.x,2)+Math.pow(s.y()-T.y,2));var L=this.findOne(".bottom-right").x()<T.x?-1:1,M=this.findOne(".bottom-right").y()<T.y?-1:1;n=i*this.cos*L,r=i*this.sin*M,this.findOne(".bottom-right").x(T.x+n),this.findOne(".bottom-right").y(T.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var F=this.centeredScaling()||t.altKey;if(F){var z=this.findOne(".top-left"),H=this.findOne(".bottom-right"),G=z.x(),K=z.y(),Z=this.getWidth()-H.x(),ne=this.getHeight()-H.y();H.move({x:-G,y:-K}),z.move({x:Z,y:ne})}var ie=this.findOne(".top-left").getAbsolutePosition();n=ie.x,r=ie.y;var le=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),oe=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:le,height:oe,rotation:Nn.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var n=this.getNode();this._fire("transformend",{evt:t,target:n}),n&&this._nodes.forEach(r=>{r._fire("transformend",{evt:t,target:r})}),this._movingAnchorName=null}}_fitNodesInto(t,n){var r=this._getNodeRect();const i=1;if(He._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(He._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const s=this.flipEnabled();var l=new Qf;if(l.rotate(Nn.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=l.point({x:-this.padding()*2,y:0});if(t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,!s){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=l.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2,!s){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=l.point({x:0,y:-this.padding()*2});if(t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2,!s){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=l.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2,!s){this.update();return}}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(r,t);S?t=S:He.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const f=1e7,d=new Qf;d.translate(r.x,r.y),d.rotate(r.rotation),d.scale(r.width/f,r.height/f);const m=new Qf;m.translate(t.x,t.y),m.rotate(t.rotation),m.scale(t.width/f,t.height/f);const b=m.multiply(d.invert());this._nodes.forEach(S=>{var N;const w=S.getParent().getAbsoluteTransform(),T=S.getTransform().copy();T.translate(S.offsetX(),S.offsetY());const L=new Qf;L.multiply(w.copy().invert()).multiply(b).multiply(w).multiply(T);const M=L.decompose();S.setAttrs(M),this._fire("transform",{evt:n,target:S}),S._fire("transform",{evt:n,target:S}),(N=S.getLayer())===null||N===void 0||N.batchDraw()}),this.rotation(He._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,n){this.findOne(t).setAttrs(n)}update(){var t,n=this._getNodeRect();this.rotation(He._getRotation(n.rotation));var r=n.width,i=n.height,s=this.enabledAnchors(),l=this.resizeEnabled(),f=this.padding(),d=this.anchorSize();this.find("._anchor").forEach(m=>{m.setAttrs({width:d,height:d,offsetX:d/2,offsetY:d/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:d/2+f,offsetY:d/2+f,visible:l&&s.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:d/2+f,visible:l&&s.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:d/2-f,offsetY:d/2+f,visible:l&&s.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:d/2+f,visible:l&&s.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:d/2-f,visible:l&&s.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:d/2+f,offsetY:d/2-f,visible:l&&s.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:d/2-f,visible:l&&s.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:d/2-f,offsetY:d/2-f,visible:l&&s.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*He._sign(i)-f,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),eC.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Vt.prototype.toObject.call(this)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}function d6e(e){return e instanceof Array||He.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){m9.indexOf(t)===-1&&He.warn("Unknown anchor name: "+t+". Available names are: "+m9.join(", "))}),e||[]}Ga.prototype.className="Transformer";Lo(Ga);be.addGetterSetter(Ga,"enabledAnchors",m9,d6e);be.addGetterSetter(Ga,"flipEnabled",!0,_p());be.addGetterSetter(Ga,"resizeEnabled",!0);be.addGetterSetter(Ga,"anchorSize",10,$t());be.addGetterSetter(Ga,"rotateEnabled",!0);be.addGetterSetter(Ga,"rotationSnaps",[]);be.addGetterSetter(Ga,"rotateAnchorOffset",50,$t());be.addGetterSetter(Ga,"rotationSnapTolerance",5,$t());be.addGetterSetter(Ga,"borderEnabled",!0);be.addGetterSetter(Ga,"anchorStroke","rgb(0, 161, 255)");be.addGetterSetter(Ga,"anchorStrokeWidth",1,$t());be.addGetterSetter(Ga,"anchorFill","white");be.addGetterSetter(Ga,"anchorCornerRadius",0,$t());be.addGetterSetter(Ga,"borderStroke","rgb(0, 161, 255)");be.addGetterSetter(Ga,"borderStrokeWidth",1,$t());be.addGetterSetter(Ga,"borderDash");be.addGetterSetter(Ga,"keepRatio",!0);be.addGetterSetter(Ga,"centeredScaling",!1);be.addGetterSetter(Ga,"ignoreStroke",!1);be.addGetterSetter(Ga,"padding",0,$t());be.addGetterSetter(Ga,"node");be.addGetterSetter(Ga,"nodes");be.addGetterSetter(Ga,"boundBoxFunc");be.addGetterSetter(Ga,"anchorDragBoundFunc");be.addGetterSetter(Ga,"shouldOverdrawWholeArea",!1);be.addGetterSetter(Ga,"useSingleNodeRotation",!0);be.backCompat(Ga,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class g0 extends Dt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Nn.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}g0.prototype.className="Wedge";g0.prototype._centroid=!0;g0.prototype._attrsAffectingSize=["radius"];Lo(g0);be.addGetterSetter(g0,"radius",0,$t());be.addGetterSetter(g0,"angle",0,$t());be.addGetterSetter(g0,"clockwise",!1);be.backCompat(g0,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function VU(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var h6e=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],p6e=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function m6e(e,t){var n=e.data,r=e.width,i=e.height,s,l,f,d,m,b,S,N,w,T,L,M,B,F,z,H,G,K,Z,ne,ie,le,oe,Ae,de=t+t+1,Se=r-1,Me=i-1,_e=t+1,J=_e*(_e+1)/2,he=new VU,ve=null,ye=he,xe=null,Ve=null,Pe=h6e[t],Qe=p6e[t];for(f=1;f<de;f++)ye=ye.next=new VU,f===_e&&(ve=ye);for(ye.next=he,S=b=0,l=0;l<i;l++){for(H=G=K=Z=N=w=T=L=0,M=_e*(ne=n[b]),B=_e*(ie=n[b+1]),F=_e*(le=n[b+2]),z=_e*(oe=n[b+3]),N+=J*ne,w+=J*ie,T+=J*le,L+=J*oe,ye=he,f=0;f<_e;f++)ye.r=ne,ye.g=ie,ye.b=le,ye.a=oe,ye=ye.next;for(f=1;f<_e;f++)d=b+((Se<f?Se:f)<<2),N+=(ye.r=ne=n[d])*(Ae=_e-f),w+=(ye.g=ie=n[d+1])*Ae,T+=(ye.b=le=n[d+2])*Ae,L+=(ye.a=oe=n[d+3])*Ae,H+=ne,G+=ie,K+=le,Z+=oe,ye=ye.next;for(xe=he,Ve=ve,s=0;s<r;s++)n[b+3]=oe=L*Pe>>Qe,oe!==0?(oe=255/oe,n[b]=(N*Pe>>Qe)*oe,n[b+1]=(w*Pe>>Qe)*oe,n[b+2]=(T*Pe>>Qe)*oe):n[b]=n[b+1]=n[b+2]=0,N-=M,w-=B,T-=F,L-=z,M-=xe.r,B-=xe.g,F-=xe.b,z-=xe.a,d=S+((d=s+t+1)<Se?d:Se)<<2,H+=xe.r=n[d],G+=xe.g=n[d+1],K+=xe.b=n[d+2],Z+=xe.a=n[d+3],N+=H,w+=G,T+=K,L+=Z,xe=xe.next,M+=ne=Ve.r,B+=ie=Ve.g,F+=le=Ve.b,z+=oe=Ve.a,H-=ne,G-=ie,K-=le,Z-=oe,Ve=Ve.next,b+=4;S+=r}for(s=0;s<r;s++){for(G=K=Z=H=w=T=L=N=0,b=s<<2,M=_e*(ne=n[b]),B=_e*(ie=n[b+1]),F=_e*(le=n[b+2]),z=_e*(oe=n[b+3]),N+=J*ne,w+=J*ie,T+=J*le,L+=J*oe,ye=he,f=0;f<_e;f++)ye.r=ne,ye.g=ie,ye.b=le,ye.a=oe,ye=ye.next;for(m=r,f=1;f<=t;f++)b=m+s<<2,N+=(ye.r=ne=n[b])*(Ae=_e-f),w+=(ye.g=ie=n[b+1])*Ae,T+=(ye.b=le=n[b+2])*Ae,L+=(ye.a=oe=n[b+3])*Ae,H+=ne,G+=ie,K+=le,Z+=oe,ye=ye.next,f<Me&&(m+=r);for(b=s,xe=he,Ve=ve,l=0;l<i;l++)d=b<<2,n[d+3]=oe=L*Pe>>Qe,oe>0?(oe=255/oe,n[d]=(N*Pe>>Qe)*oe,n[d+1]=(w*Pe>>Qe)*oe,n[d+2]=(T*Pe>>Qe)*oe):n[d]=n[d+1]=n[d+2]=0,N-=M,w-=B,T-=F,L-=z,M-=xe.r,B-=xe.g,F-=xe.b,z-=xe.a,d=s+((d=l+_e)<Me?d:Me)*r<<2,N+=H+=xe.r=n[d],w+=G+=xe.g=n[d+1],T+=K+=xe.b=n[d+2],L+=Z+=xe.a=n[d+3],xe=xe.next,M+=ne=Ve.r,B+=ie=Ve.g,F+=le=Ve.b,z+=oe=Ve.a,H-=ne,G-=ie,K-=le,Z-=oe,Ve=Ve.next,b+=r}}const v6e=function(t){var n=Math.round(this.blurRadius());n>0&&m6e(t,n)};be.addGetterSetter(Vt,"blurRadius",0,$t(),be.afterSetFilter);const g6e=function(e){var t=this.brightness()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};be.addGetterSetter(Vt,"brightness",0,$t(),be.afterSetFilter);const b6e=function(e){var t=Math.pow((this.contrast()+100)/100,2),n=e.data,r=n.length,i=150,s=150,l=150,f;for(f=0;f<r;f+=4)i=n[f],s=n[f+1],l=n[f+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,l/=255,l-=.5,l*=t,l+=.5,l*=255,i=i<0?0:i>255?255:i,s=s<0?0:s>255?255:s,l=l<0?0:l>255?255:l,n[f]=i,n[f+1]=s,n[f+2]=l};be.addGetterSetter(Vt,"contrast",0,$t(),be.afterSetFilter);const y6e=function(e){var t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),s=0,l=0,f=e.data,d=e.width,m=e.height,b=d*4,S=m;switch(r){case"top-left":s=-1,l=-1;break;case"top":s=-1,l=0;break;case"top-right":s=-1,l=1;break;case"right":s=0,l=1;break;case"bottom-right":s=1,l=1;break;case"bottom":s=1,l=0;break;case"bottom-left":s=1,l=-1;break;case"left":s=0,l=-1;break;default:He.error("Unknown emboss direction: "+r)}do{var N=(S-1)*b,w=s;S+w<1&&(w=0),S+w>m&&(w=0);var T=(S-1+w)*d*4,L=d;do{var M=N+(L-1)*4,B=l;L+B<1&&(B=0),L+B>d&&(B=0);var F=T+(L-1+B)*4,z=f[M]-f[F],H=f[M+1]-f[F+1],G=f[M+2]-f[F+2],K=z,Z=K>0?K:-K,ne=H>0?H:-H,ie=G>0?G:-G;if(ne>Z&&(K=H),ie>Z&&(K=G),K*=t,i){var le=f[M]+K,oe=f[M+1]+K,Ae=f[M+2]+K;f[M]=le>255?255:le<0?0:le,f[M+1]=oe>255?255:oe<0?0:oe,f[M+2]=Ae>255?255:Ae<0?0:Ae}else{var de=n-K;de<0?de=0:de>255&&(de=255),f[M]=f[M+1]=f[M+2]=de}}while(--L)}while(--S)};be.addGetterSetter(Vt,"embossStrength",.5,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"embossWhiteLevel",.5,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"embossDirection","top-left",null,be.afterSetFilter);be.addGetterSetter(Vt,"embossBlend",!1,null,be.afterSetFilter);function Ak(e,t,n,r,i){var s=n-t,l=i-r,f;return s===0?r+l/2:l===0?r:(f=(e-t)/s,f=l*f+r,f)}const S6e=function(e){var t=e.data,n=t.length,r=t[0],i=r,s,l=t[1],f=l,d,m=t[2],b=m,S,N,w=this.enhance();if(w!==0){for(N=0;N<n;N+=4)s=t[N+0],s<r?r=s:s>i&&(i=s),d=t[N+1],d<l?l=d:d>f&&(f=d),S=t[N+2],S<m?m=S:S>b&&(b=S);i===r&&(i=255,r=0),f===l&&(f=255,l=0),b===m&&(b=255,m=0);var T,L,M,B,F,z,H,G,K;for(w>0?(L=i+w*(255-i),M=r-w*(r-0),F=f+w*(255-f),z=l-w*(l-0),G=b+w*(255-b),K=m-w*(m-0)):(T=(i+r)*.5,L=i+w*(i-T),M=r+w*(r-T),B=(f+l)*.5,F=f+w*(f-B),z=l+w*(l-B),H=(b+m)*.5,G=b+w*(b-H),K=m+w*(m-H)),N=0;N<n;N+=4)t[N+0]=Ak(t[N+0],r,i,M,L),t[N+1]=Ak(t[N+1],l,f,z,F),t[N+2]=Ak(t[N+2],m,b,K,G)}};be.addGetterSetter(Vt,"enhance",0,$t(),be.afterSetFilter);const x6e=function(e){var t=e.data,n=t.length,r,i;for(r=0;r<n;r+=4)i=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=i,t[r+1]=i,t[r+2]=i};be.addGetterSetter(Vt,"hue",0,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"saturation",0,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"luminance",0,$t(),be.afterSetFilter);const C6e=function(e){var t=e.data,n=t.length,r=1,i=Math.pow(2,this.saturation()),s=Math.abs(this.hue()+360)%360,l=this.luminance()*127,f,d=r*i*Math.cos(s*Math.PI/180),m=r*i*Math.sin(s*Math.PI/180),b=.299*r+.701*d+.167*m,S=.587*r-.587*d+.33*m,N=.114*r-.114*d-.497*m,w=.299*r-.299*d-.328*m,T=.587*r+.413*d+.035*m,L=.114*r-.114*d+.293*m,M=.299*r-.3*d+1.25*m,B=.587*r-.586*d-1.05*m,F=.114*r+.886*d-.2*m,z,H,G,K;for(f=0;f<n;f+=4)z=t[f+0],H=t[f+1],G=t[f+2],K=t[f+3],t[f+0]=b*z+S*H+N*G+l,t[f+1]=w*z+T*H+L*G+l,t[f+2]=M*z+B*H+F*G+l,t[f+3]=K},N6e=function(e){var t=e.data,n=t.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),s=Math.abs(this.hue()+360)%360,l,f=r*i*Math.cos(s*Math.PI/180),d=r*i*Math.sin(s*Math.PI/180),m=.299*r+.701*f+.167*d,b=.587*r-.587*f+.33*d,S=.114*r-.114*f-.497*d,N=.299*r-.299*f-.328*d,w=.587*r+.413*f+.035*d,T=.114*r-.114*f+.293*d,L=.299*r-.3*f+1.25*d,M=.587*r-.586*f-1.05*d,B=.114*r+.886*f-.2*d,F,z,H,G;for(l=0;l<n;l+=4)F=t[l+0],z=t[l+1],H=t[l+2],G=t[l+3],t[l+0]=m*F+b*z+S*H,t[l+1]=N*F+w*z+T*H,t[l+2]=L*F+M*z+B*H,t[l+3]=G};be.addGetterSetter(Vt,"hue",0,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"saturation",0,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"value",0,$t(),be.afterSetFilter);const w6e=function(e){var t=e.data,n=t.length,r;for(r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]};var _6e=function(e,t,n){var r=e.data,i=t.data,s=e.width,l=e.height,f=n.polarCenterX||s/2,d=n.polarCenterY||l/2,m,b,S,N=0,w=0,T=0,L=0,M,B=Math.sqrt(f*f+d*d);b=s-f,S=l-d,M=Math.sqrt(b*b+S*S),B=M>B?M:B;var F=l,z=s,H,G,K=360/z*Math.PI/180,Z,ne;for(G=0;G<z;G+=1)for(Z=Math.sin(G*K),ne=Math.cos(G*K),H=0;H<F;H+=1)b=Math.floor(f+B*H/F*ne),S=Math.floor(d+B*H/F*Z),m=(S*s+b)*4,N=r[m+0],w=r[m+1],T=r[m+2],L=r[m+3],m=(G+H*s)*4,i[m+0]=N,i[m+1]=w,i[m+2]=T,i[m+3]=L},E6e=function(e,t,n){var r=e.data,i=t.data,s=e.width,l=e.height,f=n.polarCenterX||s/2,d=n.polarCenterY||l/2,m,b,S,N,w,T=0,L=0,M=0,B=0,F,z=Math.sqrt(f*f+d*d);b=s-f,S=l-d,F=Math.sqrt(b*b+S*S),z=F>z?F:z;var H=l,G=s,K,Z,ne=n.polarRotation||0,ie,le;for(b=0;b<s;b+=1)for(S=0;S<l;S+=1)N=b-f,w=S-d,K=Math.sqrt(N*N+w*w)*H/z,Z=(Math.atan2(w,N)*180/Math.PI+360+ne)%360,Z=Z*G/360,ie=Math.floor(Z),le=Math.floor(K),m=(le*s+ie)*4,T=r[m+0],L=r[m+1],M=r[m+2],B=r[m+3],m=(S*s+b)*4,i[m+0]=T,i[m+1]=L,i[m+2]=M,i[m+3]=B};const T6e=function(e){var t=e.width,n=e.height,r,i,s,l,f,d,m,b,S,N,w=Math.round(this.kaleidoscopePower()),T=Math.round(this.kaleidoscopeAngle()),L=Math.floor(t*(T%360)/360);if(!(w<1)){var M=He.createCanvasElement();M.width=t,M.height=n;var B=M.getContext("2d").getImageData(0,0,t,n);_6e(e,B,{polarCenterX:t/2,polarCenterY:n/2});for(var F=t/Math.pow(2,w);F<=8;)F=F*2,w-=1;F=Math.ceil(F);var z=F,H=0,G=z,K=1;for(L+F>t&&(H=z,G=0,K=-1),i=0;i<n;i+=1)for(r=H;r!==G;r+=K)s=Math.round(r+L)%t,S=(t*i+s)*4,f=B.data[S+0],d=B.data[S+1],m=B.data[S+2],b=B.data[S+3],N=(t*i+r)*4,B.data[N+0]=f,B.data[N+1]=d,B.data[N+2]=m,B.data[N+3]=b;for(i=0;i<n;i+=1)for(z=Math.floor(F),l=0;l<w;l+=1){for(r=0;r<z+1;r+=1)S=(t*i+r)*4,f=B.data[S+0],d=B.data[S+1],m=B.data[S+2],b=B.data[S+3],N=(t*i+z*2-r-1)*4,B.data[N+0]=f,B.data[N+1]=d,B.data[N+2]=m,B.data[N+3]=b;z*=2}E6e(B,e,{polarRotation:0})}};be.addGetterSetter(Vt,"kaleidoscopePower",2,$t(),be.afterSetFilter);be.addGetterSetter(Vt,"kaleidoscopeAngle",0,$t(),be.afterSetFilter);function IT(e,t,n){var r=(n*e.width+t)*4,i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function UN(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function R6e(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function k6e(e,t){var n=IT(e,0,0),r=IT(e,e.width-1,0),i=IT(e,0,e.height-1),s=IT(e,e.width-1,e.height-1),l=t||10;if(UN(n,r)<l&&UN(r,s)<l&&UN(s,i)<l&&UN(i,n)<l){for(var f=R6e([r,n,s,i]),d=[],m=0;m<e.width*e.height;m++){var b=UN(f,[e.data[m*4],e.data[m*4+1],e.data[m*4+2]]);d[m]=b<l?0:255}return d}}function A6e(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function O6e(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),s=Math.floor(i/2),l=[],f=0;f<n;f++)for(var d=0;d<t;d++){for(var m=f*t+d,b=0,S=0;S<i;S++)for(var N=0;N<i;N++){var w=f+S-s,T=d+N-s;if(w>=0&&w<n&&T>=0&&T<t){var L=w*t+T,M=r[S*i+N];b+=e[L]*M}}l[m]=b===255*8?255:0}return l}function L6e(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),s=Math.floor(i/2),l=[],f=0;f<n;f++)for(var d=0;d<t;d++){for(var m=f*t+d,b=0,S=0;S<i;S++)for(var N=0;N<i;N++){var w=f+S-s,T=d+N-s;if(w>=0&&w<n&&T>=0&&T<t){var L=w*t+T,M=r[S*i+N];b+=e[L]*M}}l[m]=b>=255*4?255:0}return l}function M6e(e,t,n){for(var r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),s=Math.floor(i/2),l=[],f=0;f<n;f++)for(var d=0;d<t;d++){for(var m=f*t+d,b=0,S=0;S<i;S++)for(var N=0;N<i;N++){var w=f+S-s,T=d+N-s;if(w>=0&&w<n&&T>=0&&T<t){var L=w*t+T,M=r[S*i+N];b+=e[L]*M}}l[m]=b}return l}const D6e=function(e){var t=this.threshold(),n=k6e(e,t);return n&&(n=O6e(n,e.width,e.height),n=L6e(n,e.width,e.height),n=M6e(n,e.width,e.height),A6e(e,n)),e};be.addGetterSetter(Vt,"threshold",0,$t(),be.afterSetFilter);const P6e=function(e){var t=this.noise()*255,n=e.data,r=n.length,i=t/2,s;for(s=0;s<r;s+=4)n[s+0]+=i-2*i*Math.random(),n[s+1]+=i-2*i*Math.random(),n[s+2]+=i-2*i*Math.random()};be.addGetterSetter(Vt,"noise",.2,$t(),be.afterSetFilter);const I6e=function(e){var t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,s,l,f,d,m,b,S=Math.ceil(n/t),N=Math.ceil(r/t),w,T,L,M,B,F,z,H=e.data;if(t<=0){He.error("pixelSize value can not be <= 0");return}for(B=0;B<S;B+=1)for(F=0;F<N;F+=1){for(f=0,d=0,m=0,b=0,w=B*t,T=w+t,L=F*t,M=L+t,z=0,i=w;i<T;i+=1)if(!(i>=n))for(s=L;s<M;s+=1)s>=r||(l=(n*s+i)*4,f+=H[l+0],d+=H[l+1],m+=H[l+2],b+=H[l+3],z+=1);for(f=f/z,d=d/z,m=m/z,b=b/z,i=w;i<T;i+=1)if(!(i>=n))for(s=L;s<M;s+=1)s>=r||(l=(n*s+i)*4,H[l+0]=f,H[l+1]=d,H[l+2]=m,H[l+3]=b)}};be.addGetterSetter(Vt,"pixelSize",8,$t(),be.afterSetFilter);const F6e=function(e){var t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t,s;for(s=0;s<r;s+=1)n[s]=Math.floor(n[s]/i)*i};be.addGetterSetter(Vt,"levels",.5,$t(),be.afterSetFilter);const z6e=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),s=this.blue(),l,f;for(l=0;l<n;l+=4)f=(.34*t[l]+.5*t[l+1]+.16*t[l+2])/255,t[l]=f*r,t[l+1]=f*i,t[l+2]=f*s,t[l+3]=t[l+3]};be.addGetterSetter(Vt,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});be.addGetterSetter(Vt,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});be.addGetterSetter(Vt,"blue",0,zK,be.afterSetFilter);const B6e=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),s=this.blue(),l=this.alpha(),f,d;for(f=0;f<n;f+=4)d=1-l,t[f]=r*l+t[f]*d,t[f+1]=i*l+t[f+1]*d,t[f+2]=s*l+t[f+2]*d};be.addGetterSetter(Vt,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});be.addGetterSetter(Vt,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});be.addGetterSetter(Vt,"blue",0,zK,be.afterSetFilter);be.addGetterSetter(Vt,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const $6e=function(e){var t=e.data,n=t.length,r,i,s,l;for(r=0;r<n;r+=4)i=t[r+0],s=t[r+1],l=t[r+2],t[r+0]=Math.min(255,i*.393+s*.769+l*.189),t[r+1]=Math.min(255,i*.349+s*.686+l*.168),t[r+2]=Math.min(255,i*.272+s*.534+l*.131)},U6e=function(e){var t=e.data,n=e.width,r=e.height,i=n*4,s=r;do{var l=(s-1)*i,f=n;do{var d=l+(f-1)*4,m=t[d],b=t[d+1],S=t[d+2];m>127&&(m=255-m),b>127&&(b=255-b),S>127&&(S=255-S),t[d]=m,t[d+1]=b,t[d+2]=S}while(--f)}while(--s)},H6e=function(e){var t=this.threshold()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=1)n[i]=n[i]<t?0:255};be.addGetterSetter(Vt,"threshold",.5,$t(),be.afterSetFilter);const p6=DS.Util._assign(DS,{Arc:m0,Arrow:WS,Circle:bC,Ellipse:Vb,Image:Ep,Label:MD,Tag:YS,Line:v0,Path:ci,Rect:M_,RegularPolygon:qS,Ring:KS,Sprite:yv,Star:Gb,Text:Oo,TextPath:tl,Transformer:Ga,Wedge:g0,Filters:{Blur:v6e,Brighten:g6e,Contrast:b6e,Emboss:y6e,Enhance:S6e,Grayscale:x6e,HSL:C6e,HSV:N6e,Invert:w6e,Kaleidoscope:T6e,Mask:D6e,Noise:P6e,Pixelate:I6e,Posterize:F6e,RGB:z6e,RGBA:B6e,Sepia:$6e,Solarize:U6e,Threshold:H6e}});var vZ={exports:{}},gZ={exports:{}};/**
* @license React
* react-reconciler.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.
*/gZ.exports=function(t){var n={},r=O.exports,i=w3.exports,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function f(u){l=u}function d(u){if(!l){for(var c=arguments.length,y=new Array(c>1?c-1:0),C=1;C<c;C++)y[C-1]=arguments[C];b("warn",u,y)}}function m(u){if(!l){for(var c=arguments.length,y=new Array(c>1?c-1:0),C=1;C<c;C++)y[C-1]=arguments[C];b("error",u,y)}}function b(u,c,y){{var C=s.ReactDebugCurrentFrame,E=C.getStackAddendum();E!==""&&(c+="%s",y=y.concat([E]));var D=y.map(function(V){return String(V)});D.unshift("Warning: "+c),Function.prototype.apply.call(console[u],console,D)}}var S=Object.assign;function N(u){return u._reactInternals}function w(u,c){u._reactInternals=c}var T=!1,L=!1,M=!1,B=!1,F=!1,z=!0,H=!0,G=!0,K=0,Z=1,ne=2,ie=3,le=4,oe=5,Ae=6,de=7,Se=8,Me=9,_e=10,J=11,he=12,ve=13,ye=14,xe=15,Ve=16,Pe=17,Qe=18,wt=19,Ot=21,Ut=22,ut=23,It=24,Qt=25,pn=Symbol.for("react.element"),ht=Symbol.for("react.portal"),gn=Symbol.for("react.fragment"),De=Symbol.for("react.strict_mode"),kt=Symbol.for("react.profiler"),Zt=Symbol.for("react.provider"),Pt=Symbol.for("react.context"),un=Symbol.for("react.forward_ref"),fr=Symbol.for("react.suspense"),an=Symbol.for("react.suspense_list"),Rn=Symbol.for("react.memo"),wn=Symbol.for("react.lazy"),Ln=Symbol.for("react.scope"),St=Symbol.for("react.debug_trace_mode"),Ft=Symbol.for("react.offscreen"),er=Symbol.for("react.legacy_hidden"),En=Symbol.for("react.cache"),Je=Symbol.for("react.tracing_marker"),Mn=Symbol.iterator,br="@@iterator";function pt(u){if(u===null||typeof u!="object")return null;var c=Mn&&u[Mn]||u[br];return typeof c=="function"?c:null}function Xe(u,c,y){var C=u.displayName;if(C)return C;var E=c.displayName||c.name||"";return E!==""?y+"("+E+")":y}function Bt(u){return u.displayName||"Context"}function We(u){if(u==null)return null;if(typeof u.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case gn:return"Fragment";case ht:return"Portal";case kt:return"Profiler";case De:return"StrictMode";case fr:return"Suspense";case an:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case Pt:var c=u;return Bt(c)+".Consumer";case Zt:var y=u;return Bt(y._context)+".Provider";case un:return Xe(u,u.render,"ForwardRef");case Rn:var C=u.displayName||null;return C!==null?C:We(u.type)||"Memo";case wn:{var E=u,D=E._payload,V=E._init;try{return We(V(D))}catch{return null}}}return null}function Lt(u,c,y){var C=c.displayName||c.name||"";return u.displayName||(C!==""?y+"("+C+")":y)}function Rt(u){return u.displayName||"Context"}function gt(u){var c=u.tag,y=u.type;switch(c){case It:return"Cache";case Me:var C=y;return Rt(C)+".Consumer";case _e:var E=y;return Rt(E._context)+".Provider";case Qe:return"DehydratedFragment";case J:return Lt(y,y.render,"ForwardRef");case de:return"Fragment";case oe:return y;case le:return"Portal";case ie:return"Root";case Ae:return"Text";case Ve:return We(y);case Se:return y===De?"StrictMode":"Mode";case Ut:return"Offscreen";case he:return"Profiler";case Ot:return"Scope";case ve:return"Suspense";case wt:return"SuspenseList";case Qt:return"TracingMarker";case Z:case K:case Pe:case ne:case ye:case xe:if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;break}return null}var _t=0,kn=1,Un=2,Gt=4,rr=16,di=32,Yr=64,pr=128,Wi=256,lo=512,uo=1024,hi=2048,yr=4096,ti=8192,Mo=16384,Do=hi|Gt|Yr|lo|uo|Mo,ge=32767,dt=32768,xt=65536,bn=131072,dr=1048576,_r=2097152,Ht=4194304,Kn=8388608,sr=16777216,kr=33554432,hr=Gt|uo|0,Fa=Un|Gt|rr|di|lo|yr|ti,Yi=Gt|Yr|lo|ti,Po=hi|rr,Ra=Ht|Kn|_r,gs=s.ReactCurrentOwner;function pu(u){var c=u,y=u;if(u.alternate)for(;c.return;)c=c.return;else{var C=c;do c=C,(c.flags&(Un|yr))!==_t&&(y=c.return),C=c.return;while(C)}return c.tag===ie?y:null}function co(u){return pu(u)===u}function Rl(u){{var c=gs.current;if(c!==null&&c.tag===Z){var y=c,C=y.stateNode;C._warnedAboutRefsInRender||m("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",gt(y)||"A component"),C._warnedAboutRefsInRender=!0}}var E=N(u);return E?pu(E)===E:!1}function bs(u){if(pu(u)!==u)throw new Error("Unable to find node on an unmounted component.")}function Zn(u){var c=u.alternate;if(!c){var y=pu(u);if(y===null)throw new Error("Unable to find node on an unmounted component.");return y!==u?null:u}for(var C=u,E=c;;){var D=C.return;if(D===null)break;var V=D.alternate;if(V===null){var q=D.return;if(q!==null){C=E=q;continue}break}if(D.child===V.child){for(var ee=D.child;ee;){if(ee===C)return bs(D),u;if(ee===E)return bs(D),c;ee=ee.sibling}throw new Error("Unable to find node on an unmounted component.")}if(C.return!==E.return)C=D,E=V;else{for(var pe=!1,Ce=D.child;Ce;){if(Ce===C){pe=!0,C=D,E=V;break}if(Ce===E){pe=!0,E=D,C=V;break}Ce=Ce.sibling}if(!pe){for(Ce=V.child;Ce;){if(Ce===C){pe=!0,C=V,E=D;break}if(Ce===E){pe=!0,E=V,C=D;break}Ce=Ce.sibling}if(!pe)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(C.alternate!==E)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(C.tag!==ie)throw new Error("Unable to find node on an unmounted component.");return C.stateNode.current===C?u:c}function Io(u){var c=Zn(u);return c!==null?qi(c):null}function qi(u){if(u.tag===oe||u.tag===Ae)return u;for(var c=u.child;c!==null;){var y=qi(c);if(y!==null)return y;c=c.sibling}return null}function kl(u){var c=Zn(u);return c!==null?Al(c):null}function Al(u){if(u.tag===oe||u.tag===Ae)return u;for(var c=u.child;c!==null;){if(c.tag!==le){var y=Al(c);if(y!==null)return y}c=c.sibling}return null}var nl=Array.isArray;function ni(u){return nl(u)}var rl=t.getPublicInstance,Ol=t.getRootHostContext,Ll=t.getChildHostContext,mu=t.prepareForCommit,ju=t.resetAfterCommit,Vu=t.createInstance,Fo=t.appendInitialChild,ri=t.finalizeInitialChildren,fo=t.prepareUpdate,ai=t.shouldSetTextContent,Di=t.createTextInstance,Ml=t.scheduleTimeout,Dl=t.cancelTimeout,Ms=t.noTimeout,Pl=t.isPrimaryRenderer,ho=t.warnsIfNotActing,Wa=t.supportsMutation,wi=t.supportsPersistence,ka=t.supportsHydration,Gu=t.getInstanceFromNode;t.beforeActiveInstanceBlur,t.afterActiveInstanceBlur;var gr=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var zo=t.getCurrentEventPriority,Il=t.detachDeletedInstance,Xn=t.supportsMicrotasks,Wu=t.scheduleMicrotask,qr=t.supportsTestSelectors,ts=t.findFiberRoot,po=t.getBoundingRect,ys=t.getTextContent,ga=t.isHiddenSubtree,oa=t.matchAccessibilityRole,Ds=t.setFocusIfFocusable,_i=t.setupIntersectionObserver,Kr=t.appendChild,ii=t.appendChildToContainer,yf=t.commitTextUpdate,Ps=t.commitMount,Ss=t.commitUpdate,vu=t.insertBefore,Sr=t.insertInContainerBefore,Br=t.removeChild,Yu=t.removeChildFromContainer,mo=t.resetTextContent,$=t.hideInstance,X=t.hideTextInstance,se=t.unhideInstance,qe=t.unhideTextInstance,Kt=t.clearContainer,yn=t.cloneInstance,Jt=t.createContainerChildSet,k=t.appendChildToContainerChildSet,j=t.finalizeContainerChildren,ae=t.replaceContainerChildren,ce=t.cloneHiddenInstance,Ne=t.cloneHiddenTextInstance,mt=t.canHydrateInstance,Ze=t.canHydrateTextInstance,Tt=t.canHydrateSuspenseInstance,Xt=t.isSuspenseInstancePending,xn=t.isSuspenseInstanceFallback,Hn=t.getSuspenseInstanceFallbackErrorDetails,mn=t.registerSuspenseInstanceRetry,Gn=t.getNextHydratableSibling,In=t.getFirstHydratableChild,Qn=t.getFirstHydratableChildWithinContainer,al=t.getFirstHydratableChildWithinSuspenseInstance,ns=t.hydrateInstance,qu=t.hydrateTextInstance,fh=t.hydrateSuspenseInstance,Ur=t.getNextHydratableInstanceAfterSuspenseInstance,il=t.commitHydratedContainer,Oc=t.commitHydratedSuspenseInstance,Sv=t.clearSuspenseBoundary,Yb=t.clearSuspenseBoundaryFromContainer,SC=t.shouldDeleteUnhydratedTailInstances,ZS=t.didNotMatchHydratedContainerTextInstance,qb=t.didNotMatchHydratedTextInstance,Kb=t.didNotHydrateInstanceWithinContainer,xv=t.didNotHydrateInstanceWithinSuspenseInstance,dh=t.didNotHydrateInstance,xC=t.didNotFindHydratableInstanceWithinContainer,Lc=t.didNotFindHydratableTextInstanceWithinContainer,XS=t.didNotFindHydratableSuspenseInstanceWithinContainer,Cv=t.didNotFindHydratableInstanceWithinSuspenseInstance,Nv=t.didNotFindHydratableTextInstanceWithinSuspenseInstance,b0=t.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,CC=t.didNotFindHydratableInstance,Tp=t.didNotFindHydratableTextInstance,y0=t.didNotFindHydratableSuspenseInstance,ol=t.errorHydratingContainer,sl=0,Qr,gu,od,Rp,Zb,kp,QS;function JS(){}JS.__reactDisabledLog=!0;function Xb(){{if(sl===0){Qr=console.log,gu=console.info,od=console.warn,Rp=console.error,Zb=console.group,kp=console.groupCollapsed,QS=console.groupEnd;var u={configurable:!0,enumerable:!0,value:JS,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}sl++}}function NC(){{if(sl--,sl===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},u,{value:Qr}),info:S({},u,{value:gu}),warn:S({},u,{value:od}),error:S({},u,{value:Rp}),group:S({},u,{value:Zb}),groupCollapsed:S({},u,{value:kp}),groupEnd:S({},u,{value:QS})})}sl<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sd=s.ReactCurrentDispatcher,Qb;function Sf(u,c,y){{if(Qb===void 0)try{throw Error()}catch(E){var C=E.stack.trim().match(/\n( *(at )?)/);Qb=C&&C[1]||""}return`
`+Qb+u}}var wv=!1,_v;{var ld=typeof WeakMap=="function"?WeakMap:Map;_v=new ld}function hh(u,c){if(!u||wv)return"";{var y=_v.get(u);if(y!==void 0)return y}var C;wv=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=sd.current,sd.current=null,Xb();try{if(c){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(ft){C=ft}Reflect.construct(u,[],V)}else{try{V.call()}catch(ft){C=ft}u.call(V.prototype)}}else{try{throw Error()}catch(ft){C=ft}u()}}catch(ft){if(ft&&C&&typeof ft.stack=="string"){for(var q=ft.stack.split(`
`),ee=C.stack.split(`
`),pe=q.length-1,Ce=ee.length-1;pe>=1&&Ce>=0&&q[pe]!==ee[Ce];)Ce--;for(;pe>=1&&Ce>=0;pe--,Ce--)if(q[pe]!==ee[Ce]){if(pe!==1||Ce!==1)do if(pe--,Ce--,Ce<0||q[pe]!==ee[Ce]){var Ie=`
`+q[pe].replace(" at new "," at ");return u.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",u.displayName)),typeof u=="function"&&_v.set(u,Ie),Ie}while(pe>=1&&Ce>=0);break}}}finally{wv=!1,sd.current=D,NC(),Error.prepareStackTrace=E}var Ye=u?u.displayName||u.name:"",lt=Ye?Sf(Ye):"";return typeof u=="function"&&_v.set(u,lt),lt}function Ap(u,c,y){return hh(u,!0)}function Ev(u,c,y){return hh(u,!1)}function ex(u){var c=u.prototype;return!!(c&&c.isReactComponent)}function xf(u,c,y){if(u==null)return"";if(typeof u=="function")return hh(u,ex(u));if(typeof u=="string")return Sf(u);switch(u){case fr:return Sf("Suspense");case an:return Sf("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case un:return Ev(u.render);case Rn:return xf(u.type,c,y);case wn:{var C=u,E=C._payload,D=C._init;try{return xf(D(E),c,y)}catch{}}}return""}var bu=Object.prototype.hasOwnProperty,Jb={},tx=s.ReactDebugCurrentFrame;function S0(u){if(u){var c=u._owner,y=xf(u.type,u._source,c?c.type:null);tx.setExtraStackFrame(y)}else tx.setExtraStackFrame(null)}function Ku(u,c,y,C,E){{var D=Function.call.bind(bu);for(var V in u)if(D(u,V)){var q=void 0;try{if(typeof u[V]!="function"){var ee=Error((C||"React class")+": "+y+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}q=u[V](c,V,C,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){q=pe}q&&!(q instanceof Error)&&(S0(E),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",y,V,typeof q),S0(null)),q instanceof Error&&!(q.message in Jb)&&(Jb[q.message]=!0,S0(E),m("Failed %s type: %s",y,q.message),S0(null))}}}var ey=[],x0;x0=[];var ll=-1;function Ee(u){return{current:u}}function Ke(u,c){if(ll<0){m("Unexpected pop.");return}c!==x0[ll]&&m("Unexpected Fiber popped."),u.current=ey[ll],ey[ll]=null,x0[ll]=null,ll--}function Be(u,c,y){ll++,ey[ll]=u.current,x0[ll]=y,u.current=c}var ln;ln={};var On={};Object.freeze(On);var Tr=Ee(On),Ca=Ee(!1),sa=On;function ul(u,c,y){return y&&Mc(c)?sa:Tr.current}function Tv(u,c,y){{var C=u.stateNode;C.__reactInternalMemoizedUnmaskedChildContext=c,C.__reactInternalMemoizedMaskedChildContext=y}}function Bo(u,c){{var y=u.type,C=y.contextTypes;if(!C)return On;var E=u.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===c)return E.__reactInternalMemoizedMaskedChildContext;var D={};for(var V in C)D[V]=c[V];{var q=gt(u)||"Unknown";Ku(C,D,"context",q)}return E&&Tv(u,c,D),D}}function yu(){return Ca.current}function Mc(u){{var c=u.childContextTypes;return c!=null}}function Cf(u){Ke(Ca,u),Ke(Tr,u)}function Op(u){Ke(Ca,u),Ke(Tr,u)}function Rv(u,c,y){{if(Tr.current!==On)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Be(Tr,c,u),Be(Ca,y,u)}}function ua(u,c,y){{var C=u.stateNode,E=c.childContextTypes;if(typeof C.getChildContext!="function"){{var D=gt(u)||"Unknown";ln[D]||(ln[D]=!0,m("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",D,D))}return y}var V=C.getChildContext();for(var q in V)if(!(q in E))throw new Error((gt(u)||"Unknown")+'.getChildContext(): key "'+q+'" is not defined in childContextTypes.');{var ee=gt(u)||"Unknown";Ku(E,V,"child context",ee)}return S({},y,V)}}function kv(u){{var c=u.stateNode,y=c&&c.__reactInternalMemoizedMergedChildContext||On;return sa=Tr.current,Be(Tr,y,u),Be(Ca,Ca.current,u),!0}}function ty(u,c,y){{var C=u.stateNode;if(!C)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(y){var E=ua(u,c,sa);C.__reactInternalMemoizedMergedChildContext=E,Ke(Ca,u),Ke(Tr,u),Be(Tr,E,u),Be(Ca,y,u)}else Ke(Ca,u),Be(Ca,y,u)}}function Av(u){{if(!co(u)||u.tag!==Z)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var c=u;do{switch(c.tag){case ie:return c.stateNode.context;case Z:{var y=c.type;if(Mc(y))return c.stateNode.__reactInternalMemoizedMergedChildContext;break}}c=c.return}while(c!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Ki=0,ny=1,tr=0,Ar=1,Mr=2,pi=8,Zu=16,Lp=Math.clz32?Math.clz32:N0,C0=Math.log,Mp=Math.LN2;function N0(u){var c=u>>>0;return c===0?32:31-(C0(c)/Mp|0)|0}var ud=31,yt=0,oi=0,Wn=1,cd=2,Xu=4,Su=8,$o=16,Nf=32,fd=4194240,Dp=64,w0=128,_0=256,E0=512,Ei=1024,Zi=2048,ry=4096,T0=8192,R0=16384,ay=32768,Ov=65536,Qu=131072,ph=262144,xu=524288,dd=1048576,hd=2097152,wf=130023424,Ju=4194304,pd=8388608,Pp=16777216,Ip=33554432,Lv=67108864,nx=Ju,Dc=134217728,Fp=268435455,zp=268435456,Q=536870912,Xi=1073741824;function _f(u){{if(u&Wn)return"Sync";if(u&cd)return"InputContinuousHydration";if(u&Xu)return"InputContinuous";if(u&Su)return"DefaultHydration";if(u&$o)return"Default";if(u&Nf)return"TransitionHydration";if(u&fd)return"Transition";if(u&wf)return"Retry";if(u&Dc)return"SelectiveHydration";if(u&zp)return"IdleHydration";if(u&Q)return"Idle";if(u&Xi)return"Offscreen"}}var Dr=-1,Rr=Dp,Dn=Ju;function Pc(u){switch(Pi(u)){case Wn:return Wn;case cd:return cd;case Xu:return Xu;case Su:return Su;case $o:return $o;case Nf:return Nf;case Dp:case w0:case _0:case E0:case Ei:case Zi:case ry:case T0:case R0:case ay:case Ov:case Qu:case ph:case xu:case dd:case hd:return u&fd;case Ju:case pd:case Pp:case Ip:case Lv:return u&wf;case Dc:return Dc;case zp:return zp;case Q:return Q;case Xi:return Xi;default:return m("Should have found matching lanes. This is a bug in React."),u}}function mi(u,c){var y=u.pendingLanes;if(y===yt)return yt;var C=yt,E=u.suspendedLanes,D=u.pingedLanes,V=y&Fp;if(V!==yt){var q=V&~E;if(q!==yt)C=Pc(q);else{var ee=V&D;ee!==yt&&(C=Pc(ee))}}else{var pe=y&~E;pe!==yt?C=Pc(pe):D!==yt&&(C=Pc(D))}if(C===yt)return yt;if(c!==yt&&c!==C&&(c&E)===yt){var Ce=Pi(C),Ie=Pi(c);if(Ce>=Ie||Ce===$o&&(Ie&fd)!==yt)return c}(C&Xu)!==yt&&(C|=y&$o);var Ye=u.entangledLanes;if(Ye!==yt)for(var lt=u.entanglements,ft=C&Ye;ft>0;){var ct=vd(ft),Cn=1<<ct;C|=lt[ct],ft&=~Cn}return C}function wr(u,c){for(var y=u.eventTimes,C=Dr;c>0;){var E=vd(c),D=1<<E,V=y[E];V>C&&(C=V),c&=~D}return C}function mh(u,c){switch(u){case Wn:case cd:case Xu:return c+250;case Su:case $o:case Nf:case Dp:case w0:case _0:case E0:case Ei:case Zi:case ry:case T0:case R0:case ay:case Ov:case Qu:case ph:case xu:case dd:case hd:return c+5e3;case Ju:case pd:case Pp:case Ip:case Lv:return Dr;case Dc:case zp:case Q:case Xi:return Dr;default:return m("Should have found matching lanes. This is a bug in React."),Dr}}function Mv(u,c){for(var y=u.pendingLanes,C=u.suspendedLanes,E=u.pingedLanes,D=u.expirationTimes,V=y;V>0;){var q=vd(V),ee=1<<q,pe=D[q];pe===Dr?((ee&C)===yt||(ee&E)!==yt)&&(D[q]=mh(ee,c)):pe<=c&&(u.expiredLanes|=ee),V&=~ee}}function iy(u){return Pc(u.pendingLanes)}function Hr(u){var c=u.pendingLanes&~Xi;return c!==yt?c:c&Xi?Xi:yt}function Ef(u){return(u&Wn)!==yt}function Uo(u){return(u&Fp)!==yt}function md(u){return(u&wf)===u}function ec(u){var c=Wn|Xu|$o;return(u&c)===yt}function Tf(u){return(u&fd)===u}function Ic(u,c){var y=cd|Xu|Su|$o;return(c&y)!==yt}function k0(u,c){return(c&u.expiredLanes)!==yt}function Fc(u){return(u&fd)!==yt}function rx(){var u=Rr;return Rr<<=1,(Rr&fd)===yt&&(Rr=Dp),u}function Dv(){var u=Dn;return Dn<<=1,(Dn&wf)===yt&&(Dn=Ju),u}function Pi(u){return u&-u}function vh(u){return Pi(u)}function vd(u){return 31-Lp(u)}function tc(u){return vd(u)}function vo(u,c){return(u&c)!==yt}function gd(u,c){return(u&c)===c}function _n(u,c){return u|c}function gh(u,c){return u&~c}function A0(u,c){return u&c}function ax(u){return u}function Pv(u,c){return u!==oi&&u<c?u:c}function bd(u){for(var c=[],y=0;y<ud;y++)c.push(u);return c}function cl(u,c,y){u.pendingLanes|=c,c!==Q&&(u.suspendedLanes=yt,u.pingedLanes=yt);var C=u.eventTimes,E=tc(c);C[E]=y}function ix(u,c){u.suspendedLanes|=c,u.pingedLanes&=~c;for(var y=u.expirationTimes,C=c;C>0;){var E=vd(C),D=1<<E;y[E]=Dr,C&=~D}}function yd(u,c,y){u.pingedLanes|=u.suspendedLanes&c}function ox(u,c){var y=u.pendingLanes&~c;u.pendingLanes=c,u.suspendedLanes=yt,u.pingedLanes=yt,u.expiredLanes&=c,u.mutableReadLanes&=c,u.entangledLanes&=c;for(var C=u.entanglements,E=u.eventTimes,D=u.expirationTimes,V=y;V>0;){var q=vd(V),ee=1<<q;C[q]=yt,E[q]=Dr,D[q]=Dr,V&=~ee}}function Bp(u,c){for(var y=u.entangledLanes|=c,C=u.entanglements,E=y;E;){var D=vd(E),V=1<<D;V&c|C[D]&c&&(C[D]|=c),E&=~V}}function Iv(u,c){var y=Pi(c),C;switch(y){case Xu:C=cd;break;case $o:C=Su;break;case Dp:case w0:case _0:case E0:case Ei:case Zi:case ry:case T0:case R0:case ay:case Ov:case Qu:case ph:case xu:case dd:case hd:case Ju:case pd:case Pp:case Ip:case Lv:C=Nf;break;case Q:C=zp;break;default:C=oi;break}return(C&(u.suspendedLanes|c))!==oi?oi:C}function Fv(u,c,y){if(!!Na)for(var C=u.pendingUpdatersLaneMap;y>0;){var E=tc(y),D=1<<E,V=C[E];V.add(c),y&=~D}}function oy(u,c){if(!!Na)for(var y=u.pendingUpdatersLaneMap,C=u.memoizedUpdaters;c>0;){var E=tc(c),D=1<<E,V=y[E];V.size>0&&(V.forEach(function(q){var ee=q.alternate;(ee===null||!C.has(ee))&&C.add(q)}),V.clear()),c&=~D}}function O0(u,c){return null}var nc=Wn,fl=Xu,bh=$o,zc=Q,rs=oi;function rc(){return rs}function go(u){rs=u}function sx(u,c){var y=rs;try{return rs=u,c()}finally{rs=y}}function Ti(u,c){return u!==0&&u<c?u:c}function Sd(u,c){return u===0||u>c?u:c}function $p(u,c){return u!==0&&u<c}function L0(u){var c=Pi(u);return $p(nc,c)?$p(fl,c)?Uo(c)?bh:zc:fl:nc}var ac=i.unstable_scheduleCallback,wC=i.unstable_cancelCallback,M0=i.unstable_shouldYield,as=i.unstable_requestPaint,Qi=i.unstable_now,Bc=i.unstable_ImmediatePriority,za=i.unstable_UserBlockingPriority,Yt=i.unstable_NormalPriority,dl=i.unstable_IdlePriority,is=i.unstable_yieldValue,lx=i.unstable_setDisableYieldValue,Ji=null,Ho=null,en=null,$c=!1,Na=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function sy(u){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled)return!0;if(!c.supportsFiber)return m("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{z&&(u=S({},u,{getLaneLabelMap:EC,injectProfilingHooks:$v})),Ji=c.inject(u),Ho=c}catch(y){m("React instrumentation encountered an error: %s.",y)}return!!c.checkDCE}function _C(u,c){if(Ho&&typeof Ho.onScheduleFiberRoot=="function")try{Ho.onScheduleFiberRoot(Ji,u,c)}catch(y){$c||($c=!0,m("React instrumentation encountered an error: %s",y))}}function zv(u,c){if(Ho&&typeof Ho.onCommitFiberRoot=="function")try{var y=(u.current.flags&pr)===pr;if(H){var C;switch(c){case nc:C=Bc;break;case fl:C=za;break;case bh:C=Yt;break;case zc:C=dl;break;default:C=Yt;break}Ho.onCommitFiberRoot(Ji,u,C,y)}}catch(E){$c||($c=!0,m("React instrumentation encountered an error: %s",E))}}function ly(u){if(Ho&&typeof Ho.onPostCommitFiberRoot=="function")try{Ho.onPostCommitFiberRoot(Ji,u)}catch(c){$c||($c=!0,m("React instrumentation encountered an error: %s",c))}}function Bv(u){if(Ho&&typeof Ho.onCommitFiberUnmount=="function")try{Ho.onCommitFiberUnmount(Ji,u)}catch(c){$c||($c=!0,m("React instrumentation encountered an error: %s",c))}}function vi(u){if(typeof is=="function"&&(lx(u),f(u)),Ho&&typeof Ho.setStrictMode=="function")try{Ho.setStrictMode(Ji,u)}catch(c){$c||($c=!0,m("React instrumentation encountered an error: %s",c))}}function $v(u){en=u}function EC(){{for(var u=new Map,c=1,y=0;y<ud;y++){var C=_f(c);u.set(c,C),c*=2}return u}}function TC(u){en!==null&&typeof en.markCommitStarted=="function"&&en.markCommitStarted(u)}function D0(){en!==null&&typeof en.markCommitStopped=="function"&&en.markCommitStopped()}function Up(u){en!==null&&typeof en.markComponentRenderStarted=="function"&&en.markComponentRenderStarted(u)}function Hp(){en!==null&&typeof en.markComponentRenderStopped=="function"&&en.markComponentRenderStopped()}function ux(u){en!==null&&typeof en.markComponentPassiveEffectMountStarted=="function"&&en.markComponentPassiveEffectMountStarted(u)}function cx(){en!==null&&typeof en.markComponentPassiveEffectMountStopped=="function"&&en.markComponentPassiveEffectMountStopped()}function fx(u){en!==null&&typeof en.markComponentPassiveEffectUnmountStarted=="function"&&en.markComponentPassiveEffectUnmountStarted(u)}function uy(){en!==null&&typeof en.markComponentPassiveEffectUnmountStopped=="function"&&en.markComponentPassiveEffectUnmountStopped()}function RC(u){en!==null&&typeof en.markComponentLayoutEffectMountStarted=="function"&&en.markComponentLayoutEffectMountStarted(u)}function cy(){en!==null&&typeof en.markComponentLayoutEffectMountStopped=="function"&&en.markComponentLayoutEffectMountStopped()}function fy(u){en!==null&&typeof en.markComponentLayoutEffectUnmountStarted=="function"&&en.markComponentLayoutEffectUnmountStarted(u)}function dy(){en!==null&&typeof en.markComponentLayoutEffectUnmountStopped=="function"&&en.markComponentLayoutEffectUnmountStopped()}function hy(u,c,y){en!==null&&typeof en.markComponentErrored=="function"&&en.markComponentErrored(u,c,y)}function P0(u,c,y){en!==null&&typeof en.markComponentSuspended=="function"&&en.markComponentSuspended(u,c,y)}function dx(u){en!==null&&typeof en.markLayoutEffectsStarted=="function"&&en.markLayoutEffectsStarted(u)}function hx(){en!==null&&typeof en.markLayoutEffectsStopped=="function"&&en.markLayoutEffectsStopped()}function px(u){en!==null&&typeof en.markPassiveEffectsStarted=="function"&&en.markPassiveEffectsStarted(u)}function py(){en!==null&&typeof en.markPassiveEffectsStopped=="function"&&en.markPassiveEffectsStopped()}function Fn(u){en!==null&&typeof en.markRenderStarted=="function"&&en.markRenderStarted(u)}function Pr(){en!==null&&typeof en.markRenderYielded=="function"&&en.markRenderYielded()}function Jr(){en!==null&&typeof en.markRenderStopped=="function"&&en.markRenderStopped()}function Ii(u){en!==null&&typeof en.markRenderScheduled=="function"&&en.markRenderScheduled(u)}function Cu(u,c){en!==null&&typeof en.markForceUpdateScheduled=="function"&&en.markForceUpdateScheduled(u,c)}function I0(u,c){en!==null&&typeof en.markStateUpdateScheduled=="function"&&en.markStateUpdateScheduled(u,c)}function my(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var Jn=typeof Object.is=="function"?Object.is:my,Rf=null,Uv=!1,vt=!1;function eo(u){Rf===null?Rf=[u]:Rf.push(u)}function ir(u){Uv=!0,eo(u)}function yh(){Uv&&ba()}function ba(){if(!vt&&Rf!==null){vt=!0;var u=0,c=rc();try{var y=!0,C=Rf;for(go(nc);u<C.length;u++){var E=C[u];do E=E(y);while(E!==null)}Rf=null,Uv=!1}catch(D){throw Rf!==null&&(Rf=Rf.slice(u+1)),ac(Bc,ba),D}finally{go(c),vt=!1}}return null}function xd(u){var c=u.current.memoizedState;return c.isDehydrated}var jo=[],Nu=0,Uc=null,kf=0,Ba=[],Fi=0,ic=null,wu=1,hl="";function F0(u){return Eu(),(u.flags&dr)!==_t}function Hv(u){return Eu(),kf}function z0(){var u=hl,c=wu,y=c&~Hc(c);return y.toString(32)+u}function oc(u,c){Eu(),jo[Nu++]=kf,jo[Nu++]=Uc,Uc=u,kf=c}function jp(u,c,y){Eu(),Ba[Fi++]=wu,Ba[Fi++]=hl,Ba[Fi++]=ic,ic=u;var C=wu,E=hl,D=Vp(C)-1,V=C&~(1<<D),q=y+1,ee=Vp(c)+D;if(ee>30){var pe=D-D%5,Ce=(1<<pe)-1,Ie=(V&Ce).toString(32),Ye=V>>pe,lt=D-pe,ft=Vp(c)+lt,ct=q<<lt,Cn=ct|Ye,nr=Ie+E;wu=1<<ft|Cn,hl=nr}else{var Et=q<<D,jr=Et|V,Vr=E;wu=1<<ee|jr,hl=Vr}}function _u(u){Eu();var c=u.return;if(c!==null){var y=1,C=0;oc(u,y),jp(u,y,C)}}function Vp(u){return 32-Lp(u)}function Hc(u){return 1<<Vp(u)-1}function Gp(u){for(;u===Uc;)Uc=jo[--Nu],jo[Nu]=null,kf=jo[--Nu],jo[Nu]=null;for(;u===ic;)ic=Ba[--Fi],Ba[Fi]=null,hl=Ba[--Fi],Ba[Fi]=null,wu=Ba[--Fi],Ba[Fi]=null}function B0(){return Eu(),ic!==null?{id:wu,overflow:hl}:null}function Wp(u,c){Eu(),Ba[Fi++]=wu,Ba[Fi++]=hl,Ba[Fi++]=ic,wu=c.id,hl=c.overflow,ic=u}function Eu(){yo()||m("Expected to be hydrating. This is a bug in React. Please file an issue.")}var bo=null,pl=null,ml=!1,sc=!1,Af=null;function Yp(){ml&&m("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $0(){sc=!0}function Vo(){return sc}function xs(u){if(!ka)return!1;var c=u.stateNode.containerInfo;return pl=Qn(c),bo=u,ml=!0,Af=null,sc=!1,!0}function Fl(u,c,y){return ka?(pl=al(c),bo=u,ml=!0,Af=null,sc=!1,y!==null&&Wp(u,y),!0):!1}function mx(u,c){switch(u.tag){case ie:{Kb(u.stateNode.containerInfo,c);break}case oe:{var y=(u.mode&Ar)!==tr;dh(u.type,u.memoizedProps,u.stateNode,c,y);break}case ve:{var C=u.memoizedState;C.dehydrated!==null&&xv(C.dehydrated,c);break}}}function ca(u,c){mx(u,c);var y=Vd();y.stateNode=c,y.return=u;var C=u.deletions;C===null?(u.deletions=[y],u.flags|=rr):C.push(y)}function lc(u,c){{if(sc)return;switch(u.tag){case ie:{var y=u.stateNode.containerInfo;switch(c.tag){case oe:var C=c.type,E=c.pendingProps;xC(y,C,E);break;case Ae:var D=c.pendingProps;Lc(y,D);break;case ve:XS(y);break}break}case oe:{var V=u.type,q=u.memoizedProps,ee=u.stateNode;switch(c.tag){case oe:{var pe=c.type,Ce=c.pendingProps,Ie=(u.mode&Ar)!==tr;CC(V,q,ee,pe,Ce,Ie);break}case Ae:{var Ye=c.pendingProps,lt=(u.mode&Ar)!==tr;Tp(V,q,ee,Ye,lt);break}case ve:{y0(V,q,ee);break}}break}case ve:{var ft=u.memoizedState,ct=ft.dehydrated;if(ct!==null)switch(c.tag){case oe:var Cn=c.type,nr=c.pendingProps;Cv(ct,Cn,nr);break;case Ae:var Et=c.pendingProps;Nv(ct,Et);break;case ve:b0(ct);break}break}default:return}}}function qp(u,c){c.flags=c.flags&~yr|Un,lc(u,c)}function Sh(u,c){switch(u.tag){case oe:{var y=u.type,C=u.pendingProps,E=mt(c,y,C);return E!==null?(u.stateNode=E,bo=u,pl=In(E),!0):!1}case Ae:{var D=u.pendingProps,V=Ze(c,D);return V!==null?(u.stateNode=V,bo=u,pl=null,!0):!1}case ve:{var q=Tt(c);if(q!==null){var ee={dehydrated:q,treeContext:B0(),retryLane:Xi};u.memoizedState=ee;var pe=of(q);return pe.return=u,u.child=pe,bo=u,pl=null,!0}return!1}default:return!1}}function Kp(u){return(u.mode&Ar)!==tr&&(u.flags&pr)===_t}function U0(u){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Cd(u){if(!!ml){var c=pl;if(!c){Kp(u)&&(lc(bo,u),U0()),qp(bo,u),ml=!1,bo=u;return}var y=c;if(!Sh(u,c)){Kp(u)&&(lc(bo,u),U0()),c=Gn(y);var C=bo;if(!c||!Sh(u,c)){qp(bo,u),ml=!1,bo=u;return}ca(C,y)}}}function jv(u,c,y){if(!ka)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var C=u.stateNode,E=!sc,D=ns(C,u.type,u.memoizedProps,c,y,u,E);return u.updateQueue=D,D!==null}function kC(u){if(!ka)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var c=u.stateNode,y=u.memoizedProps,C=!sc,E=qu(c,y,u,C);if(E){var D=bo;if(D!==null)switch(D.tag){case ie:{var V=D.stateNode.containerInfo,q=(D.mode&Ar)!==tr;ZS(V,c,y,q);break}case oe:{var ee=D.type,pe=D.memoizedProps,Ce=D.stateNode,Ie=(D.mode&Ar)!==tr;qb(ee,pe,Ce,c,y,Ie);break}}}return E}function H0(u){if(!ka)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var c=u.memoizedState,y=c!==null?c.dehydrated:null;if(!y)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");fh(y,u)}function vx(u){if(!ka)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var c=u.memoizedState,y=c!==null?c.dehydrated:null;if(!y)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Ur(y)}function xh(u){for(var c=u.return;c!==null&&c.tag!==oe&&c.tag!==ie&&c.tag!==ve;)c=c.return;bo=c}function Zp(u){if(!ka||u!==bo)return!1;if(!ml)return xh(u),ml=!0,!1;if(u.tag!==ie&&(u.tag!==oe||SC(u.type)&&!ai(u.type,u.memoizedProps))){var c=pl;if(c)if(Kp(u))V0(u),U0();else for(;c;)ca(u,c),c=Gn(c)}return xh(u),u.tag===ve?pl=vx(u):pl=bo?Gn(u.stateNode):null,!0}function j0(){return ml&&pl!==null}function V0(u){for(var c=pl;c;)mx(u,c),c=Gn(c)}function Tu(){!ka||(bo=null,pl=null,ml=!1,sc=!1)}function gx(){Af!==null&&(v5(Af),Af=null)}function yo(){return ml}function Ch(u){Af===null?Af=[u]:Af.push(u)}var bx=s.ReactCurrentBatchConfig,Of=null;function Vv(){return bx.transition}function uc(u,c){if(Jn(u,c))return!0;if(typeof u!="object"||u===null||typeof c!="object"||c===null)return!1;var y=Object.keys(u),C=Object.keys(c);if(y.length!==C.length)return!1;for(var E=0;E<y.length;E++){var D=y[E];if(!bu.call(c,D)||!Jn(u[D],c[D]))return!1}return!0}function cc(u){switch(u._debugOwner&&u._debugOwner.type,u._debugSource,u.tag){case oe:return Sf(u.type);case Ve:return Sf("Lazy");case ve:return Sf("Suspense");case wt:return Sf("SuspenseList");case K:case ne:case xe:return Ev(u.type);case J:return Ev(u.type.render);case Z:return Ap(u.type);default:return""}}function Is(u){try{var c="",y=u;do c+=cc(y),y=y.return;while(y);return c}catch(C){return`
Error generating stack: `+C.message+`
`+C.stack}}var Nd=s.ReactDebugCurrentFrame,zn=null,Lf=!1;function yx(){{if(zn===null)return null;var u=zn._debugOwner;if(u!==null&&typeof u<"u")return gt(u)}return null}function F_(){return zn===null?"":Is(zn)}function gi(){Nd.getCurrentStack=null,zn=null,Lf=!1}function Ya(u){Nd.getCurrentStack=u===null?null:F_,zn=u,Lf=!1}function Nh(){return zn}function Ru(u){Lf=u}var Fs={recordUnsafeLifecycleWarnings:function(u,c){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(u,c){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Xp=function(u){for(var c=null,y=u;y!==null;)y.mode&pi&&(c=y),y=y.return;return c},Tn=function(u){var c=[];return u.forEach(function(y){c.push(y)}),c.sort().join(", ")},wd=[],_d=[],ku=[],Qp=[],So=[],vl=[],fa=new Set;Fs.recordUnsafeLifecycleWarnings=function(u,c){fa.has(u.type)||(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0&&wd.push(u),u.mode&pi&&typeof c.UNSAFE_componentWillMount=="function"&&_d.push(u),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ku.push(u),u.mode&pi&&typeof c.UNSAFE_componentWillReceiveProps=="function"&&Qp.push(u),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0&&So.push(u),u.mode&pi&&typeof c.UNSAFE_componentWillUpdate=="function"&&vl.push(u))},Fs.flushPendingUnsafeLifecycleWarnings=function(){var u=new Set;wd.length>0&&(wd.forEach(function(Ye){u.add(gt(Ye)||"Component"),fa.add(Ye.type)}),wd=[]);var c=new Set;_d.length>0&&(_d.forEach(function(Ye){c.add(gt(Ye)||"Component"),fa.add(Ye.type)}),_d=[]);var y=new Set;ku.length>0&&(ku.forEach(function(Ye){y.add(gt(Ye)||"Component"),fa.add(Ye.type)}),ku=[]);var C=new Set;Qp.length>0&&(Qp.forEach(function(Ye){C.add(gt(Ye)||"Component"),fa.add(Ye.type)}),Qp=[]);var E=new Set;So.length>0&&(So.forEach(function(Ye){E.add(gt(Ye)||"Component"),fa.add(Ye.type)}),So=[]);var D=new Set;if(vl.length>0&&(vl.forEach(function(Ye){D.add(gt(Ye)||"Component"),fa.add(Ye.type)}),vl=[]),c.size>0){var V=Tn(c);m(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,V)}if(C.size>0){var q=Tn(C);m(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,q)}if(D.size>0){var ee=Tn(D);m(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,ee)}if(u.size>0){var pe=Tn(u);d(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,pe)}if(y.size>0){var Ce=Tn(y);d(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,Ce)}if(E.size>0){var Ie=Tn(E);d(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,Ie)}};var wh=new Map,Jp=new Set;Fs.recordLegacyContextWarning=function(u,c){var y=Xp(u);if(y===null){m("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Jp.has(u.type)){var C=wh.get(y);(u.type.contextTypes!=null||u.type.childContextTypes!=null||c!==null&&typeof c.getChildContext=="function")&&(C===void 0&&(C=[],wh.set(y,C)),C.push(u))}},Fs.flushLegacyContextWarning=function(){wh.forEach(function(u,c){if(u.length!==0){var y=u[0],C=new Set;u.forEach(function(D){C.add(gt(D)||"Component"),Jp.add(D.type)});var E=Tn(C);try{Ya(y),m(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,E)}finally{gi()}}})},Fs.discardPendingWarnings=function(){wd=[],_d=[],ku=[],Qp=[],So=[],vl=[],wh=new Map}}function zl(u){{var c=typeof Symbol=="function"&&Symbol.toStringTag,y=c&&u[Symbol.toStringTag]||u.constructor.name||"Object";return y}}function xo(u){try{return G0(u),!1}catch{return!0}}function G0(u){return""+u}function AC(u){if(xo(u))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zl(u)),G0(u)}function OC(u,c){if(xo(u))return m("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",c,zl(u)),G0(u)}function Bl(u,c){if(u&&u.defaultProps){var y=S({},c),C=u.defaultProps;for(var E in C)y[E]===void 0&&(y[E]=C[E]);return y}return c}var $l=Ee(null),Ri;Ri={};var _h=null,em=null,Gv=null,tm=!1;function W0(){_h=null,em=null,Gv=null,tm=!1}function Eh(){tm=!0}function vy(){tm=!1}function Y0(u,c,y){Pl?(Be($l,c._currentValue,u),c._currentValue=y,c._currentRenderer!==void 0&&c._currentRenderer!==null&&c._currentRenderer!==Ri&&m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),c._currentRenderer=Ri):(Be($l,c._currentValue2,u),c._currentValue2=y,c._currentRenderer2!==void 0&&c._currentRenderer2!==null&&c._currentRenderer2!==Ri&&m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),c._currentRenderer2=Ri)}function gy(u,c){var y=$l.current;Ke($l,c),Pl?u._currentValue=y:u._currentValue2=y}function q0(u,c,y){for(var C=u;C!==null;){var E=C.alternate;if(gd(C.childLanes,c)?E!==null&&!gd(E.childLanes,c)&&(E.childLanes=_n(E.childLanes,c)):(C.childLanes=_n(C.childLanes,c),E!==null&&(E.childLanes=_n(E.childLanes,c))),C===y)break;C=C.return}C!==y&&m("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function LC(u,c,y){by(u,c,y)}function by(u,c,y){var C=u.child;for(C!==null&&(C.return=u);C!==null;){var E=void 0,D=C.dependencies;if(D!==null){E=C.child;for(var V=D.firstContext;V!==null;){if(V.context===c){if(C.tag===Z){var q=vh(y),ee=bl(Dr,q);ee.tag=Wv;var pe=C.updateQueue;if(pe!==null){var Ce=pe.shared,Ie=Ce.pending;Ie===null?ee.next=ee:(ee.next=Ie.next,Ie.next=ee),Ce.pending=ee}}C.lanes=_n(C.lanes,y);var Ye=C.alternate;Ye!==null&&(Ye.lanes=_n(Ye.lanes,y)),q0(C.return,y,u),D.lanes=_n(D.lanes,y);break}V=V.next}}else if(C.tag===_e)E=C.type===u.type?null:C.child;else if(C.tag===Qe){var lt=C.return;if(lt===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");lt.lanes=_n(lt.lanes,y);var ft=lt.alternate;ft!==null&&(ft.lanes=_n(ft.lanes,y)),q0(lt,y,u),E=C.sibling}else E=C.child;if(E!==null)E.return=C;else for(E=C;E!==null;){if(E===u){E=null;break}var ct=E.sibling;if(ct!==null){ct.return=E.return,E=ct;break}E=E.return}C=E}}function jc(u,c){_h=u,em=null,Gv=null;var y=u.dependencies;if(y!==null){var C=y.firstContext;C!==null&&(vo(y.lanes,c)&&Ng(),y.firstContext=null)}}function wa(u){tm&&m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var c=Pl?u._currentValue:u._currentValue2;if(Gv!==u){var y={context:u,memoizedValue:c,next:null};if(em===null){if(_h===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");em=y,_h.dependencies={lanes:yt,firstContext:y}}else em=em.next=y}return c}var gl=null;function Au(u){gl===null?gl=[u]:gl.push(u)}function nm(){if(gl!==null){for(var u=0;u<gl.length;u++){var c=gl[u],y=c.interleaved;if(y!==null){c.interleaved=null;var C=y.next,E=c.pending;if(E!==null){var D=E.next;E.next=C,y.next=D}c.pending=y}}gl=null}}function Vc(u,c,y,C){var E=c.interleaved;return E===null?(y.next=y,Au(c)):(y.next=E.next,E.next=y),c.interleaved=y,rm(u,C)}function Gc(u,c,y,C){var E=c.interleaved;E===null?(y.next=y,Au(c)):(y.next=E.next,E.next=y),c.interleaved=y}function Sx(u,c,y,C){var E=c.interleaved;return E===null?(y.next=y,Au(c)):(y.next=E.next,E.next=y),c.interleaved=y,rm(u,C)}function Cs(u,c){return rm(u,c)}var K0=rm;function rm(u,c){u.lanes=_n(u.lanes,c);var y=u.alternate;y!==null&&(y.lanes=_n(y.lanes,c)),y===null&&(u.flags&(Un|yr))!==_t&&$4(u);for(var C=u,E=u.return;E!==null;)E.childLanes=_n(E.childLanes,c),y=E.alternate,y!==null?y.childLanes=_n(y.childLanes,c):(E.flags&(Un|yr))!==_t&&$4(u),C=E,E=E.return;if(C.tag===ie){var D=C.stateNode;return D}else return null}var zs=0,Ed=1,Wv=2,Z0=3,Th=!1,X0,Q0;X0=!1,Q0=null;function Rh(u){var c={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:yt},effects:null};u.updateQueue=c}function am(u,c){var y=c.updateQueue,C=u.updateQueue;if(y===C){var E={baseState:C.baseState,firstBaseUpdate:C.firstBaseUpdate,lastBaseUpdate:C.lastBaseUpdate,shared:C.shared,effects:C.effects};c.updateQueue=E}}function bl(u,c){var y={eventTime:u,lane:c,tag:zs,payload:null,callback:null,next:null};return y}function Wc(u,c,y){var C=u.updateQueue;if(C===null)return null;var E=C.shared;if(Q0===E&&!X0&&(m("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),X0=!0),W7()){var D=E.pending;return D===null?c.next=c:(c.next=D.next,D.next=c),E.pending=c,K0(u,y)}else return Sx(u,E,c,y)}function Yv(u,c,y){var C=c.updateQueue;if(C!==null){var E=C.shared;if(Fc(y)){var D=E.lanes;D=A0(D,u.pendingLanes);var V=_n(D,y);E.lanes=V,Bp(u,V)}}}function yy(u,c){var y=u.updateQueue,C=u.alternate;if(C!==null){var E=C.updateQueue;if(y===E){var D=null,V=null,q=y.firstBaseUpdate;if(q!==null){var ee=q;do{var pe={eventTime:ee.eventTime,lane:ee.lane,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null};V===null?D=V=pe:(V.next=pe,V=pe),ee=ee.next}while(ee!==null);V===null?D=V=c:(V.next=c,V=c)}else D=V=c;y={baseState:E.baseState,firstBaseUpdate:D,lastBaseUpdate:V,shared:E.shared,effects:E.effects},u.updateQueue=y;return}}var Ce=y.lastBaseUpdate;Ce===null?y.firstBaseUpdate=c:Ce.next=c,y.lastBaseUpdate=c}function MC(u,c,y,C,E,D){switch(y.tag){case Ed:{var V=y.payload;if(typeof V=="function"){Eh();var q=V.call(D,C,E);{if(u.mode&pi){vi(!0);try{V.call(D,C,E)}finally{vi(!1)}}vy()}return q}return V}case Z0:u.flags=u.flags&~xt|pr;case zs:{var ee=y.payload,pe;if(typeof ee=="function"){Eh(),pe=ee.call(D,C,E);{if(u.mode&pi){vi(!0);try{ee.call(D,C,E)}finally{vi(!1)}}vy()}}else pe=ee;return pe==null?C:S({},C,pe)}case Wv:return Th=!0,C}return C}function J0(u,c,y,C){var E=u.updateQueue;Th=!1,Q0=E.shared;var D=E.firstBaseUpdate,V=E.lastBaseUpdate,q=E.shared.pending;if(q!==null){E.shared.pending=null;var ee=q,pe=ee.next;ee.next=null,V===null?D=pe:V.next=pe,V=ee;var Ce=u.alternate;if(Ce!==null){var Ie=Ce.updateQueue,Ye=Ie.lastBaseUpdate;Ye!==V&&(Ye===null?Ie.firstBaseUpdate=pe:Ye.next=pe,Ie.lastBaseUpdate=ee)}}if(D!==null){var lt=E.baseState,ft=yt,ct=null,Cn=null,nr=null,Et=D;do{var jr=Et.lane,Vr=Et.eventTime;if(gd(C,jr)){if(nr!==null){var rt={eventTime:Vr,lane:oi,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};nr=nr.next=rt}lt=MC(u,E,Et,lt,c,y);var $e=Et.callback;if($e!==null&&Et.lane!==oi){u.flags|=Yr;var zt=E.effects;zt===null?E.effects=[Et]:zt.push(Et)}}else{var Ue={eventTime:Vr,lane:jr,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};nr===null?(Cn=nr=Ue,ct=lt):nr=nr.next=Ue,ft=_n(ft,jr)}if(Et=Et.next,Et===null){if(q=E.shared.pending,q===null)break;var vn=q,on=vn.next;vn.next=null,Et=on,E.lastBaseUpdate=vn,E.shared.pending=null}}while(!0);nr===null&&(ct=lt),E.baseState=ct,E.firstBaseUpdate=Cn,E.lastBaseUpdate=nr;var Gr=E.shared.interleaved;if(Gr!==null){var ur=Gr;do ft=_n(ft,ur.lane),ur=ur.next;while(ur!==Gr)}else D===null&&(E.shared.lanes=yt);k2(ft),u.lanes=ft,u.memoizedState=lt}Q0=null}function xx(u,c){if(typeof u!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+u));u.call(c)}function qv(){Th=!1}function Kv(){return Th}function Zv(u,c,y){var C=c.effects;if(c.effects=null,C!==null)for(var E=0;E<C.length;E++){var D=C[E],V=D.callback;V!==null&&(D.callback=null,xx(V,y))}}var Xv={},Sy=new r.Component().refs,e1,xy,Cy,Ny,kh,t1,Td,yl,wy,n1;{e1=new Set,xy=new Set,Cy=new Set,Ny=new Set,yl=new Set,kh=new Set,wy=new Set,n1=new Set;var _y=new Set;Td=function(u,c){if(!(u===null||typeof u=="function")){var y=c+"_"+u;_y.has(y)||(_y.add(y),m("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c,u))}},t1=function(u,c){if(c===void 0){var y=We(u)||"Component";kh.has(y)||(kh.add(y),m("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",y))}},Object.defineProperty(Xv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Xv)}function Ah(u,c,y,C){var E=u.memoizedState,D=y(C,E);{if(u.mode&pi){vi(!0);try{D=y(C,E)}finally{vi(!1)}}t1(c,D)}var V=D==null?E:S({},E,D);if(u.memoizedState=V,u.lanes===yt){var q=u.updateQueue;q.baseState=V}}var im={isMounted:Rl,enqueueSetState:function(u,c,y){var C=N(u),E=Bi(),D=Vf(C),V=bl(E,D);V.payload=c,y!=null&&(Td(y,"setState"),V.callback=y);var q=Wc(C,V,D);q!==null&&(Xo(q,C,D,E),Yv(q,C,D)),I0(C,D)},enqueueReplaceState:function(u,c,y){var C=N(u),E=Bi(),D=Vf(C),V=bl(E,D);V.tag=Ed,V.payload=c,y!=null&&(Td(y,"replaceState"),V.callback=y);var q=Wc(C,V,D);q!==null&&(Xo(q,C,D,E),Yv(q,C,D)),I0(C,D)},enqueueForceUpdate:function(u,c){var y=N(u),C=Bi(),E=Vf(y),D=bl(C,E);D.tag=Wv,c!=null&&(Td(c,"forceUpdate"),D.callback=c);var V=Wc(y,D,E);V!==null&&(Xo(V,y,E,C),Yv(V,y,E)),Cu(y,E)}};function Ey(u,c,y,C,E,D,V){var q=u.stateNode;if(typeof q.shouldComponentUpdate=="function"){var ee=q.shouldComponentUpdate(C,D,V);{if(u.mode&pi){vi(!0);try{ee=q.shouldComponentUpdate(C,D,V)}finally{vi(!1)}}ee===void 0&&m("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",We(c)||"Component")}return ee}return c.prototype&&c.prototype.isPureReactComponent?!uc(y,C)||!uc(E,D):!0}function Ul(u,c,y){var C=u.stateNode;{var E=We(c)||"Component",D=C.render;D||(c.prototype&&typeof c.prototype.render=="function"?m("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",E):m("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",E)),C.getInitialState&&!C.getInitialState.isReactClassApproved&&!C.state&&m("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",E),C.getDefaultProps&&!C.getDefaultProps.isReactClassApproved&&m("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",E),C.propTypes&&m("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",E),C.contextType&&m("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",E),C.contextTypes&&m("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",E),c.contextType&&c.contextTypes&&!wy.has(c)&&(wy.add(c),m("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",E)),typeof C.componentShouldUpdate=="function"&&m("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",E),c.prototype&&c.prototype.isPureReactComponent&&typeof C.shouldComponentUpdate<"u"&&m("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",We(c)||"A pure component"),typeof C.componentDidUnmount=="function"&&m("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",E),typeof C.componentDidReceiveProps=="function"&&m("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",E),typeof C.componentWillRecieveProps=="function"&&m("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",E),typeof C.UNSAFE_componentWillRecieveProps=="function"&&m("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",E);var V=C.props!==y;C.props!==void 0&&V&&m("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",E,E),C.defaultProps&&m("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",E,E),typeof C.getSnapshotBeforeUpdate=="function"&&typeof C.componentDidUpdate!="function"&&!Cy.has(c)&&(Cy.add(c),m("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",We(c))),typeof C.getDerivedStateFromProps=="function"&&m("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof C.getDerivedStateFromError=="function"&&m("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof c.getSnapshotBeforeUpdate=="function"&&m("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",E);var q=C.state;q&&(typeof q!="object"||ni(q))&&m("%s.state: must be set to an object or null",E),typeof C.getChildContext=="function"&&typeof c.childContextTypes!="object"&&m("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",E)}}function Oh(u,c){c.updater=im,u.stateNode=c,w(c,u),c._reactInternalInstance=Xv}function om(u,c,y){var C=!1,E=On,D=On,V=c.contextType;if("contextType"in c){var q=V===null||V!==void 0&&V.$$typeof===Pt&&V._context===void 0;if(!q&&!n1.has(c)){n1.add(c);var ee="";V===void 0?ee=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof V!="object"?ee=" However, it is set to a "+typeof V+".":V.$$typeof===Zt?ee=" Did you accidentally pass the Context.Provider instead?":V._context!==void 0?ee=" Did you accidentally pass the Context.Consumer instead?":ee=" However, it is set to an object with keys {"+Object.keys(V).join(", ")+"}.",m("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",We(c)||"Component",ee)}}if(typeof V=="object"&&V!==null)D=wa(V);else{E=ul(u,c,!0);var pe=c.contextTypes;C=pe!=null,D=C?Bo(u,E):On}var Ce=new c(y,D);if(u.mode&pi){vi(!0);try{Ce=new c(y,D)}finally{vi(!1)}}var Ie=u.memoizedState=Ce.state!==null&&Ce.state!==void 0?Ce.state:null;Oh(u,Ce);{if(typeof c.getDerivedStateFromProps=="function"&&Ie===null){var Ye=We(c)||"Component";xy.has(Ye)||(xy.add(Ye),m("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ye,Ce.state===null?"null":"undefined",Ye))}if(typeof c.getDerivedStateFromProps=="function"||typeof Ce.getSnapshotBeforeUpdate=="function"){var lt=null,ft=null,ct=null;if(typeof Ce.componentWillMount=="function"&&Ce.componentWillMount.__suppressDeprecationWarning!==!0?lt="componentWillMount":typeof Ce.UNSAFE_componentWillMount=="function"&&(lt="UNSAFE_componentWillMount"),typeof Ce.componentWillReceiveProps=="function"&&Ce.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ft="componentWillReceiveProps":typeof Ce.UNSAFE_componentWillReceiveProps=="function"&&(ft="UNSAFE_componentWillReceiveProps"),typeof Ce.componentWillUpdate=="function"&&Ce.componentWillUpdate.__suppressDeprecationWarning!==!0?ct="componentWillUpdate":typeof Ce.UNSAFE_componentWillUpdate=="function"&&(ct="UNSAFE_componentWillUpdate"),lt!==null||ft!==null||ct!==null){var Cn=We(c)||"Component",nr=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ny.has(Cn)||(Ny.add(Cn),m(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,Cn,nr,lt!==null?`
`+lt:"",ft!==null?`
`+ft:"",ct!==null?`
`+ct:""))}}}return C&&Tv(u,E,D),Ce}function Qv(u,c){var y=c.state;typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&(m("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",gt(u)||"Component"),im.enqueueReplaceState(c,c.state,null))}function Cx(u,c,y,C){var E=c.state;if(typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(y,C),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(y,C),c.state!==E){{var D=gt(u)||"Component";e1.has(D)||(e1.add(D),m("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",D))}im.enqueueReplaceState(c,c.state,null)}}function Jv(u,c,y,C){Ul(u,c,y);var E=u.stateNode;E.props=y,E.state=u.memoizedState,E.refs=Sy,Rh(u);var D=c.contextType;if(typeof D=="object"&&D!==null)E.context=wa(D);else{var V=ul(u,c,!0);E.context=Bo(u,V)}{if(E.state===y){var q=We(c)||"Component";yl.has(q)||(yl.add(q),m("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",q))}u.mode&pi&&Fs.recordLegacyContextWarning(u,E),Fs.recordUnsafeLifecycleWarnings(u,E)}E.state=u.memoizedState;var ee=c.getDerivedStateFromProps;if(typeof ee=="function"&&(Ah(u,c,ee,y),E.state=u.memoizedState),typeof c.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function")&&(Qv(u,E),J0(u,y,E,C),E.state=u.memoizedState),typeof E.componentDidMount=="function"){var pe=Gt;pe|=Ht,(u.mode&Zu)!==tr&&(pe|=sr),u.flags|=pe}}function Ty(u,c,y,C){var E=u.stateNode,D=u.memoizedProps;E.props=D;var V=E.context,q=c.contextType,ee=On;if(typeof q=="object"&&q!==null)ee=wa(q);else{var pe=ul(u,c,!0);ee=Bo(u,pe)}var Ce=c.getDerivedStateFromProps,Ie=typeof Ce=="function"||typeof E.getSnapshotBeforeUpdate=="function";!Ie&&(typeof E.UNSAFE_componentWillReceiveProps=="function"||typeof E.componentWillReceiveProps=="function")&&(D!==y||V!==ee)&&Cx(u,E,y,ee),qv();var Ye=u.memoizedState,lt=E.state=Ye;if(J0(u,y,E,C),lt=u.memoizedState,D===y&&Ye===lt&&!yu()&&!Kv()){if(typeof E.componentDidMount=="function"){var ft=Gt;ft|=Ht,(u.mode&Zu)!==tr&&(ft|=sr),u.flags|=ft}return!1}typeof Ce=="function"&&(Ah(u,c,Ce,y),lt=u.memoizedState);var ct=Kv()||Ey(u,c,D,y,Ye,lt,ee);if(ct){if(!Ie&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function")&&(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"){var Cn=Gt;Cn|=Ht,(u.mode&Zu)!==tr&&(Cn|=sr),u.flags|=Cn}}else{if(typeof E.componentDidMount=="function"){var nr=Gt;nr|=Ht,(u.mode&Zu)!==tr&&(nr|=sr),u.flags|=nr}u.memoizedProps=y,u.memoizedState=lt}return E.props=y,E.state=lt,E.context=ee,ct}function eg(u,c,y,C,E){var D=c.stateNode;am(u,c);var V=c.memoizedProps,q=c.type===c.elementType?V:Bl(c.type,V);D.props=q;var ee=c.pendingProps,pe=D.context,Ce=y.contextType,Ie=On;if(typeof Ce=="object"&&Ce!==null)Ie=wa(Ce);else{var Ye=ul(c,y,!0);Ie=Bo(c,Ye)}var lt=y.getDerivedStateFromProps,ft=typeof lt=="function"||typeof D.getSnapshotBeforeUpdate=="function";!ft&&(typeof D.UNSAFE_componentWillReceiveProps=="function"||typeof D.componentWillReceiveProps=="function")&&(V!==ee||pe!==Ie)&&Cx(c,D,C,Ie),qv();var ct=c.memoizedState,Cn=D.state=ct;if(J0(c,C,D,E),Cn=c.memoizedState,V===ee&&ct===Cn&&!yu()&&!Kv()&&!L)return typeof D.componentDidUpdate=="function"&&(V!==u.memoizedProps||ct!==u.memoizedState)&&(c.flags|=Gt),typeof D.getSnapshotBeforeUpdate=="function"&&(V!==u.memoizedProps||ct!==u.memoizedState)&&(c.flags|=uo),!1;typeof lt=="function"&&(Ah(c,y,lt,C),Cn=c.memoizedState);var nr=Kv()||Ey(c,y,q,C,ct,Cn,Ie)||L;return nr?(!ft&&(typeof D.UNSAFE_componentWillUpdate=="function"||typeof D.componentWillUpdate=="function")&&(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(C,Cn,Ie),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(C,Cn,Ie)),typeof D.componentDidUpdate=="function"&&(c.flags|=Gt),typeof D.getSnapshotBeforeUpdate=="function"&&(c.flags|=uo)):(typeof D.componentDidUpdate=="function"&&(V!==u.memoizedProps||ct!==u.memoizedState)&&(c.flags|=Gt),typeof D.getSnapshotBeforeUpdate=="function"&&(V!==u.memoizedProps||ct!==u.memoizedState)&&(c.flags|=uo),c.memoizedProps=C,c.memoizedState=Cn),D.props=C,D.state=Cn,D.context=Ie,nr}var Ry,sm,r1,ky,Ay,Nx=function(u,c){};Ry=!1,sm=!1,r1={},ky={},Ay={},Nx=function(u,c){if(!(u===null||typeof u!="object")&&!(!u._store||u._store.validated||u.key!=null)){if(typeof u._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");u._store.validated=!0;var y=gt(c)||"Component";ky[y]||(ky[y]=!0,m('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Lh(u,c,y){var C=y.ref;if(C!==null&&typeof C!="function"&&typeof C!="object"){if((u.mode&pi||F)&&!(y._owner&&y._self&&y._owner.stateNode!==y._self)){var E=gt(u)||"Component";r1[E]||(m('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C),r1[E]=!0)}if(y._owner){var D=y._owner,V;if(D){var q=D;if(q.tag!==Z)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");V=q.stateNode}if(!V)throw new Error("Missing owner for string ref "+C+". This error is likely caused by a bug in React. Please file an issue.");var ee=V;OC(C,"ref");var pe=""+C;if(c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===pe)return c.ref;var Ce=function(Ie){var Ye=ee.refs;Ye===Sy&&(Ye=ee.refs={}),Ie===null?delete Ye[pe]:Ye[pe]=Ie};return Ce._stringRef=pe,Ce}else{if(typeof C!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!y._owner)throw new Error("Element ref was specified as a string ("+C+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return C}function a1(u,c){var y=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}function i1(u){{var c=gt(u)||"Component";if(Ay[c])return;Ay[c]=!0,m("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function wx(u){var c=u._payload,y=u._init;return y(c)}function _x(u){function c(Ue,rt){if(!!u){var $e=Ue.deletions;$e===null?(Ue.deletions=[rt],Ue.flags|=rr):$e.push(rt)}}function y(Ue,rt){if(!u)return null;for(var $e=rt;$e!==null;)c(Ue,$e),$e=$e.sibling;return null}function C(Ue,rt){for(var $e=new Map,zt=rt;zt!==null;)zt.key!==null?$e.set(zt.key,zt):$e.set(zt.index,zt),zt=zt.sibling;return $e}function E(Ue,rt){var $e=ip(Ue,rt);return $e.index=0,$e.sibling=null,$e}function D(Ue,rt,$e){if(Ue.index=$e,!u)return Ue.flags|=dr,rt;var zt=Ue.alternate;if(zt!==null){var vn=zt.index;return vn<rt?(Ue.flags|=Un,rt):vn}else return Ue.flags|=Un,rt}function V(Ue){return u&&Ue.alternate===null&&(Ue.flags|=Un),Ue}function q(Ue,rt,$e,zt){if(rt===null||rt.tag!==Ae){var vn=E5($e,Ue.mode,zt);return vn.return=Ue,vn}else{var on=E(rt,$e);return on.return=Ue,on}}function ee(Ue,rt,$e,zt){var vn=$e.type;if(vn===gn)return Ce(Ue,rt,$e.props.children,zt,$e.key);if(rt!==null&&(rt.elementType===vn||rn(rt,$e)||typeof vn=="object"&&vn!==null&&vn.$$typeof===wn&&wx(vn)===rt.type)){var on=E(rt,$e.props);return on.ref=Lh(Ue,rt,$e),on.return=Ue,on._debugSource=$e._source,on._debugOwner=$e._owner,on}var Gr=V4($e,Ue.mode,zt);return Gr.ref=Lh(Ue,rt,$e),Gr.return=Ue,Gr}function pe(Ue,rt,$e,zt){if(rt===null||rt.tag!==le||rt.stateNode.containerInfo!==$e.containerInfo||rt.stateNode.implementation!==$e.implementation){var vn=T5($e,Ue.mode,zt);return vn.return=Ue,vn}else{var on=E(rt,$e.children||[]);return on.return=Ue,on}}function Ce(Ue,rt,$e,zt,vn){if(rt===null||rt.tag!==de){var on=Ui($e,Ue.mode,zt,vn);return on.return=Ue,on}else{var Gr=E(rt,$e);return Gr.return=Ue,Gr}}function Ie(Ue,rt,$e){if(typeof rt=="string"&&rt!==""||typeof rt=="number"){var zt=E5(""+rt,Ue.mode,$e);return zt.return=Ue,zt}if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case pn:{var vn=V4(rt,Ue.mode,$e);return vn.ref=Lh(Ue,null,rt),vn.return=Ue,vn}case ht:{var on=T5(rt,Ue.mode,$e);return on.return=Ue,on}case wn:{var Gr=rt._payload,ur=rt._init;return Ie(Ue,ur(Gr),$e)}}if(ni(rt)||pt(rt)){var aa=Ui(rt,Ue.mode,$e,null);return aa.return=Ue,aa}a1(Ue,rt)}return typeof rt=="function"&&i1(Ue),null}function Ye(Ue,rt,$e,zt){var vn=rt!==null?rt.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number")return vn!==null?null:q(Ue,rt,""+$e,zt);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case pn:return $e.key===vn?ee(Ue,rt,$e,zt):null;case ht:return $e.key===vn?pe(Ue,rt,$e,zt):null;case wn:{var on=$e._payload,Gr=$e._init;return Ye(Ue,rt,Gr(on),zt)}}if(ni($e)||pt($e))return vn!==null?null:Ce(Ue,rt,$e,zt,null);a1(Ue,$e)}return typeof $e=="function"&&i1(Ue),null}function lt(Ue,rt,$e,zt,vn){if(typeof zt=="string"&&zt!==""||typeof zt=="number"){var on=Ue.get($e)||null;return q(rt,on,""+zt,vn)}if(typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case pn:{var Gr=Ue.get(zt.key===null?$e:zt.key)||null;return ee(rt,Gr,zt,vn)}case ht:{var ur=Ue.get(zt.key===null?$e:zt.key)||null;return pe(rt,ur,zt,vn)}case wn:var aa=zt._payload,Lr=zt._init;return lt(Ue,rt,$e,Lr(aa),vn)}if(ni(zt)||pt(zt)){var $a=Ue.get($e)||null;return Ce(rt,$a,zt,vn,null)}a1(rt,zt)}return typeof zt=="function"&&i1(rt),null}function ft(Ue,rt,$e){{if(typeof Ue!="object"||Ue===null)return rt;switch(Ue.$$typeof){case pn:case ht:Nx(Ue,$e);var zt=Ue.key;if(typeof zt!="string")break;if(rt===null){rt=new Set,rt.add(zt);break}if(!rt.has(zt)){rt.add(zt);break}m("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",zt);break;case wn:var vn=Ue._payload,on=Ue._init;ft(on(vn),rt,$e);break}}return rt}function ct(Ue,rt,$e,zt){for(var vn=null,on=0;on<$e.length;on++){var Gr=$e[on];vn=ft(Gr,vn,Ue)}for(var ur=null,aa=null,Lr=rt,$a=0,Bn=0,Hi=null;Lr!==null&&Bn<$e.length;Bn++){Lr.index>Bn?(Hi=Lr,Lr=null):Hi=Lr.sibling;var ds=Ye(Ue,Lr,$e[Bn],zt);if(ds===null){Lr===null&&(Lr=Hi);break}u&&Lr&&ds.alternate===null&&c(Ue,Lr),$a=D(ds,$a,Bn),aa===null?ur=ds:aa.sibling=ds,aa=ds,Lr=Hi}if(Bn===$e.length){if(y(Ue,Lr),yo()){var ui=Bn;oc(Ue,ui)}return ur}if(Lr===null){for(;Bn<$e.length;Bn++){var Zl=Ie(Ue,$e[Bn],zt);Zl!==null&&($a=D(Zl,$a,Bn),aa===null?ur=Zl:aa.sibling=Zl,aa=Zl)}if(yo()){var Oi=Bn;oc(Ue,Oi)}return ur}for(var Ys=C(Ue,Lr);Bn<$e.length;Bn++){var Es=lt(Ys,Ue,Bn,$e[Bn],zt);Es!==null&&(u&&Es.alternate!==null&&Ys.delete(Es.key===null?Bn:Es.key),$a=D(Es,$a,Bn),aa===null?ur=Es:aa.sibling=Es,aa=Es)}if(u&&Ys.forEach(function(zm){return c(Ue,zm)}),yo()){var Xl=Bn;oc(Ue,Xl)}return ur}function Cn(Ue,rt,$e,zt){var vn=pt($e);if(typeof vn!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&$e[Symbol.toStringTag]==="Generator"&&(sm||m("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),sm=!0),$e.entries===vn&&(Ry||m("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ry=!0);var on=vn.call($e);if(on)for(var Gr=null,ur=on.next();!ur.done;ur=on.next()){var aa=ur.value;Gr=ft(aa,Gr,Ue)}}var Lr=vn.call($e);if(Lr==null)throw new Error("An iterable object provided no iterator.");for(var $a=null,Bn=null,Hi=rt,ds=0,ui=0,Zl=null,Oi=Lr.next();Hi!==null&&!Oi.done;ui++,Oi=Lr.next()){Hi.index>ui?(Zl=Hi,Hi=null):Zl=Hi.sibling;var Ys=Ye(Ue,Hi,Oi.value,zt);if(Ys===null){Hi===null&&(Hi=Zl);break}u&&Hi&&Ys.alternate===null&&c(Ue,Hi),ds=D(Ys,ds,ui),Bn===null?$a=Ys:Bn.sibling=Ys,Bn=Ys,Hi=Zl}if(Oi.done){if(y(Ue,Hi),yo()){var Es=ui;oc(Ue,Es)}return $a}if(Hi===null){for(;!Oi.done;ui++,Oi=Lr.next()){var Xl=Ie(Ue,Oi.value,zt);Xl!==null&&(ds=D(Xl,ds,ui),Bn===null?$a=Xl:Bn.sibling=Xl,Bn=Xl)}if(yo()){var zm=ui;oc(Ue,zm)}return $a}for(var W2=C(Ue,Hi);!Oi.done;ui++,Oi=Lr.next()){var sf=lt(W2,Ue,ui,Oi.value,zt);sf!==null&&(u&&sf.alternate!==null&&W2.delete(sf.key===null?ui:sf.key),ds=D(sf,ds,ui),Bn===null?$a=sf:Bn.sibling=sf,Bn=sf)}if(u&&W2.forEach(function(dE){return c(Ue,dE)}),yo()){var Q7=ui;oc(Ue,Q7)}return $a}function nr(Ue,rt,$e,zt){if(rt!==null&&rt.tag===Ae){y(Ue,rt.sibling);var vn=E(rt,$e);return vn.return=Ue,vn}y(Ue,rt);var on=E5($e,Ue.mode,zt);return on.return=Ue,on}function Et(Ue,rt,$e,zt){for(var vn=$e.key,on=rt;on!==null;){if(on.key===vn){var Gr=$e.type;if(Gr===gn){if(on.tag===de){y(Ue,on.sibling);var ur=E(on,$e.props.children);return ur.return=Ue,ur._debugSource=$e._source,ur._debugOwner=$e._owner,ur}}else if(on.elementType===Gr||rn(on,$e)||typeof Gr=="object"&&Gr!==null&&Gr.$$typeof===wn&&wx(Gr)===on.type){y(Ue,on.sibling);var aa=E(on,$e.props);return aa.ref=Lh(Ue,on,$e),aa.return=Ue,aa._debugSource=$e._source,aa._debugOwner=$e._owner,aa}y(Ue,on);break}else c(Ue,on);on=on.sibling}if($e.type===gn){var Lr=Ui($e.props.children,Ue.mode,zt,$e.key);return Lr.return=Ue,Lr}else{var $a=V4($e,Ue.mode,zt);return $a.ref=Lh(Ue,rt,$e),$a.return=Ue,$a}}function jr(Ue,rt,$e,zt){for(var vn=$e.key,on=rt;on!==null;){if(on.key===vn)if(on.tag===le&&on.stateNode.containerInfo===$e.containerInfo&&on.stateNode.implementation===$e.implementation){y(Ue,on.sibling);var Gr=E(on,$e.children||[]);return Gr.return=Ue,Gr}else{y(Ue,on);break}else c(Ue,on);on=on.sibling}var ur=T5($e,Ue.mode,zt);return ur.return=Ue,ur}function Vr(Ue,rt,$e,zt){var vn=typeof $e=="object"&&$e!==null&&$e.type===gn&&$e.key===null;if(vn&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case pn:return V(Et(Ue,rt,$e,zt));case ht:return V(jr(Ue,rt,$e,zt));case wn:var on=$e._payload,Gr=$e._init;return Vr(Ue,rt,Gr(on),zt)}if(ni($e))return ct(Ue,rt,$e,zt);if(pt($e))return Cn(Ue,rt,$e,zt);a1(Ue,$e)}return typeof $e=="string"&&$e!==""||typeof $e=="number"?V(nr(Ue,rt,""+$e,zt)):(typeof $e=="function"&&i1(Ue),y(Ue,rt))}return Vr}var lm=_x(!0),Oy=_x(!1);function DC(u,c){if(u!==null&&c.child!==u.child)throw new Error("Resuming work not yet implemented.");if(c.child!==null){var y=c.child,C=ip(y,y.pendingProps);for(c.child=C,C.return=c;y.sibling!==null;)y=y.sibling,C=C.sibling=ip(y,y.pendingProps),C.return=c;C.sibling=null}}function PC(u,c){for(var y=u.child;y!==null;)ha(y,c),y=y.sibling}var Mh={},Mf=Ee(Mh),tg=Ee(Mh),o1=Ee(Mh);function um(u){if(u===Mh)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return u}function Ly(){var u=um(o1.current);return u}function My(u,c){Be(o1,c,u),Be(tg,u,u),Be(Mf,Mh,u);var y=Ol(c);Ke(Mf,u),Be(Mf,y,u)}function cm(u){Ke(Mf,u),Ke(tg,u),Ke(o1,u)}function fm(){var u=um(Mf.current);return u}function Ex(u){var c=um(o1.current),y=um(Mf.current),C=Ll(y,u.type,c);y!==C&&(Be(tg,u,u),Be(Mf,C,u))}function s1(u){tg.current===u&&(Ke(Mf,u),Ke(tg,u))}var IC=0,ng=1,Tx=1,rg=2,fc=Ee(IC);function l1(u,c){return(u&c)!==0}function Rd(u){return u&ng}function Dh(u,c){return u&ng|c}function FC(u,c){return u|c}function Df(u,c){Be(fc,c,u)}function Ph(u){Ke(fc,u)}function Rx(u,c){var y=u.memoizedState;return y!==null?y.dehydrated!==null:(u.memoizedProps,!0)}function u1(u){for(var c=u;c!==null;){if(c.tag===ve){var y=c.memoizedState;if(y!==null){var C=y.dehydrated;if(C===null||Xt(C)||xn(C))return c}}else if(c.tag===wt&&c.memoizedProps.revealOrder!==void 0){var E=(c.flags&pr)!==_t;if(E)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===u)return null;for(;c.sibling===null;){if(c.return===null||c.return===u)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var Bs=0,Co=1,Yc=2,No=4,Go=8,ag=[];function ig(){for(var u=0;u<ag.length;u++){var c=ag[u];Pl?c._workInProgressVersionPrimary=null:c._workInProgressVersionSecondary=null}ag.length=0}function dm(u,c){var y=c._getVersion,C=y(c._source);u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[c,C]:u.mutableSourceEagerHydrationData.push(c,C)}var nn=s.ReactCurrentDispatcher,og=s.ReactCurrentBatchConfig,Dy,Pf;Dy=new Set;var Ih=yt,da=null,to=null,wo=null,c1=!1,hm=!1,If=0,sg=0,zC=25,it=null,Ou=null,Sl=-1,Py=!1;function Zr(){{var u=it;Ou===null?Ou=[u]:Ou.push(u)}}function Wt(){{var u=it;Ou!==null&&(Sl++,Ou[Sl]!==u&&Iy(u))}}function Ff(u){u!=null&&!ni(u)&&m("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",it,typeof u)}function Iy(u){{var c=gt(da);if(!Dy.has(c)&&(Dy.add(c),Ou!==null)){for(var y="",C=30,E=0;E<=Sl;E++){for(var D=Ou[E],V=E===Sl?u:D,q=E+1+". "+D;q.length<C;)q+=" ";q+=V+`
`,y+=q}m(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,c,y)}}}function os(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function f1(u,c){if(Py)return!1;if(c===null)return m("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",it),!1;u.length!==c.length&&m(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,it,"["+c.join(", ")+"]","["+u.join(", ")+"]");for(var y=0;y<c.length&&y<u.length;y++)if(!Jn(u[y],c[y]))return!1;return!0}function Fh(u,c,y,C,E,D){Ih=D,da=c,Ou=u!==null?u._debugHookTypes:null,Sl=-1,Py=u!==null&&u.type!==c.type,c.memoizedState=null,c.updateQueue=null,c.lanes=yt,u!==null&&u.memoizedState!==null?nn.current=jh:Ou!==null?nn.current=y1:nn.current=Ky;var V=y(C,E);if(hm){var q=0;do{if(hm=!1,If=0,q>=zC)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");q+=1,Py=!1,to=null,wo=null,c.updateQueue=null,Sl=-1,nn.current=Kc,V=y(C,E)}while(hm)}nn.current=dg,c._debugHookTypes=Ou;var ee=to!==null&&to.next!==null;if(Ih=yt,da=null,to=null,wo=null,it=null,Ou=null,Sl=-1,u!==null&&(u.flags&Ra)!==(c.flags&Ra)&&(u.mode&Ar)!==tr&&m("Internal React error: Expected static flag was missing. Please notify the React team."),c1=!1,ee)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return V}function pm(){var u=If!==0;return If=0,u}function kx(u,c,y){c.updateQueue=u.updateQueue,(c.mode&Zu)!==tr?c.flags&=~(kr|sr|hi|Gt):c.flags&=~(hi|Gt),u.lanes=gh(u.lanes,y)}function Ax(){if(nn.current=dg,c1){for(var u=da.memoizedState;u!==null;){var c=u.queue;c!==null&&(c.pending=null),u=u.next}c1=!1}Ih=yt,da=null,to=null,wo=null,Ou=null,Sl=-1,it=null,Uh=!1,hm=!1,If=0}function Hl(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wo===null?da.memoizedState=wo=u:wo=wo.next=u,wo}function $s(){var u;if(to===null){var c=da.alternate;c!==null?u=c.memoizedState:u=null}else u=to.next;var y;if(wo===null?y=da.memoizedState:y=wo.next,y!==null)wo=y,y=wo.next,to=u;else{if(u===null)throw new Error("Rendered more hooks than during the previous render.");to=u;var C={memoizedState:to.memoizedState,baseState:to.baseState,baseQueue:to.baseQueue,queue:to.queue,next:null};wo===null?da.memoizedState=wo=C:wo=wo.next=C}return wo}function Ox(){return{lastEffect:null,stores:null}}function Fy(u,c){return typeof c=="function"?c(u):c}function ss(u,c,y){var C=Hl(),E;y!==void 0?E=y(c):E=c,C.memoizedState=C.baseState=E;var D={pending:null,interleaved:null,lanes:yt,dispatch:null,lastRenderedReducer:u,lastRenderedState:E};C.queue=D;var V=D.dispatch=qy.bind(null,da,D);return[C.memoizedState,V]}function kd(u,c,y){var C=$s(),E=C.queue;if(E===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");E.lastRenderedReducer=u;var D=to,V=D.baseQueue,q=E.pending;if(q!==null){if(V!==null){var ee=V.next,pe=q.next;V.next=pe,q.next=ee}D.baseQueue!==V&&m("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),D.baseQueue=V=q,E.pending=null}if(V!==null){var Ce=V.next,Ie=D.baseState,Ye=null,lt=null,ft=null,ct=Ce;do{var Cn=ct.lane;if(gd(Ih,Cn)){if(ft!==null){var Et={lane:oi,action:ct.action,hasEagerState:ct.hasEagerState,eagerState:ct.eagerState,next:null};ft=ft.next=Et}if(ct.hasEagerState)Ie=ct.eagerState;else{var jr=ct.action;Ie=u(Ie,jr)}}else{var nr={lane:Cn,action:ct.action,hasEagerState:ct.hasEagerState,eagerState:ct.eagerState,next:null};ft===null?(lt=ft=nr,Ye=Ie):ft=ft.next=nr,da.lanes=_n(da.lanes,Cn),k2(Cn)}ct=ct.next}while(ct!==null&&ct!==Ce);ft===null?Ye=Ie:ft.next=lt,Jn(Ie,C.memoizedState)||Ng(),C.memoizedState=Ie,C.baseState=Ye,C.baseQueue=ft,E.lastRenderedState=Ie}var Vr=E.interleaved;if(Vr!==null){var Ue=Vr;do{var rt=Ue.lane;da.lanes=_n(da.lanes,rt),k2(rt),Ue=Ue.next}while(Ue!==Vr)}else V===null&&(E.lanes=yt);var $e=E.dispatch;return[C.memoizedState,$e]}function d1(u,c,y){var C=$s(),E=C.queue;if(E===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");E.lastRenderedReducer=u;var D=E.dispatch,V=E.pending,q=C.memoizedState;if(V!==null){E.pending=null;var ee=V.next,pe=ee;do{var Ce=pe.action;q=u(q,Ce),pe=pe.next}while(pe!==ee);Jn(q,C.memoizedState)||Ng(),C.memoizedState=q,C.baseQueue===null&&(C.baseState=q),E.lastRenderedState=q}return[q,D]}function z_(u,c,y){}function BC(u,c,y){}function zy(u,c,y){var C=da,E=Hl(),D,V=yo();if(V){if(y===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");D=y(),Pf||D!==y()&&(m("The result of getServerSnapshot should be cached to avoid an infinite loop"),Pf=!0)}else{if(D=c(),!Pf){var q=c();Jn(D,q)||(m("The result of getSnapshot should be cached to avoid an infinite loop"),Pf=!0)}var ee=nf();if(ee===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ic(ee,Ih)||Lx(C,c,D)}E.memoizedState=D;var pe={value:D,getSnapshot:c};return E.queue=pe,ki($y.bind(null,C,pe,u),[u]),C.flags|=hi,cg(Co|Go,By.bind(null,C,pe,D,c),void 0,null),D}function h1(u,c,y){var C=da,E=$s(),D=c();if(!Pf){var V=c();Jn(D,V)||(m("The result of getSnapshot should be cached to avoid an infinite loop"),Pf=!0)}var q=E.memoizedState,ee=!Jn(q,D);ee&&(E.memoizedState=D,Ng());var pe=E.queue;if(Aa($y.bind(null,C,pe,u),[u]),pe.getSnapshot!==c||ee||wo!==null&&wo.memoizedState.tag&Co){C.flags|=hi,cg(Co|Go,By.bind(null,C,pe,D,c),void 0,null);var Ce=nf();if(Ce===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ic(Ce,Ih)||Lx(C,c,D)}return D}function Lx(u,c,y){u.flags|=Mo;var C={getSnapshot:c,value:y},E=da.updateQueue;if(E===null)E=Ox(),da.updateQueue=E,E.stores=[C];else{var D=E.stores;D===null?E.stores=[C]:D.push(C)}}function By(u,c,y,C){c.value=y,c.getSnapshot=C,Mx(c)&&Dx(u)}function $y(u,c,y){var C=function(){Mx(c)&&Dx(u)};return y(C)}function Mx(u){var c=u.getSnapshot,y=u.value;try{var C=c();return!Jn(y,C)}catch{return!0}}function Dx(u){var c=Cs(u,Wn);c!==null&&Xo(c,u,Wn,Dr)}function lg(u){var c=Hl();typeof u=="function"&&(u=u()),c.memoizedState=c.baseState=u;var y={pending:null,interleaved:null,lanes:yt,dispatch:null,lastRenderedReducer:Fy,lastRenderedState:u};c.queue=y;var C=y.dispatch=b1.bind(null,da,y);return[c.memoizedState,C]}function ug(u){return kd(Fy)}function jl(u){return d1(Fy)}function cg(u,c,y,C){var E={tag:u,create:c,destroy:y,deps:C,next:null},D=da.updateQueue;if(D===null)D=Ox(),da.updateQueue=D,D.lastEffect=E.next=E;else{var V=D.lastEffect;if(V===null)D.lastEffect=E.next=E;else{var q=V.next;V.next=E,E.next=q,D.lastEffect=E}}return E}function Uy(u){var c=Hl();{var y={current:u};return c.memoizedState=y,y}}function qc(u){var c=$s();return c.memoizedState}function lr(u,c,y,C){var E=Hl(),D=C===void 0?null:C;da.flags|=u,E.memoizedState=cg(Co|c,y,void 0,D)}function p1(u,c,y,C){var E=$s(),D=C===void 0?null:C,V=void 0;if(to!==null){var q=to.memoizedState;if(V=q.destroy,D!==null){var ee=q.deps;if(f1(D,ee)){E.memoizedState=cg(c,y,V,D);return}}}da.flags|=u,E.memoizedState=cg(Co|c,y,V,D)}function ki(u,c){return(da.mode&Zu)!==tr?lr(kr|hi|Kn,Go,u,c):lr(hi|Kn,Go,u,c)}function Aa(u,c){return p1(hi,Go,u,c)}function zh(u,c){return lr(Gt,Yc,u,c)}function Vl(u,c){return p1(Gt,Yc,u,c)}function Hy(u,c){var y=Gt;return y|=Ht,(da.mode&Zu)!==tr&&(y|=sr),lr(y,No,u,c)}function m1(u,c){return p1(Gt,No,u,c)}function jy(u,c){if(typeof c=="function"){var y=c,C=u();return y(C),function(){y(null)}}else if(c!=null){var E=c;E.hasOwnProperty("current")||m("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(E).join(", ")+"}");var D=u();return E.current=D,function(){E.current=null}}}function Vy(u,c,y){typeof c!="function"&&m("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null");var C=y!=null?y.concat([u]):null,E=Gt;return E|=Ht,(da.mode&Zu)!==tr&&(E|=sr),lr(E,No,jy.bind(null,c,u),C)}function Bh(u,c,y){typeof c!="function"&&m("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null");var C=y!=null?y.concat([u]):null;return p1(Gt,No,jy.bind(null,c,u),C)}function Ad(u,c){}var mm=Ad;function Lu(u,c){var y=Hl(),C=c===void 0?null:c;return y.memoizedState=[u,C],u}function Od(u,c){var y=$s(),C=c===void 0?null:c,E=y.memoizedState;if(E!==null&&C!==null){var D=E[1];if(f1(C,D))return E[0]}return y.memoizedState=[u,C],u}function $h(u,c){var y=Hl(),C=c===void 0?null:c,E=u();return y.memoizedState=[E,C],E}function Oa(u,c){var y=$s(),C=c===void 0?null:c,E=y.memoizedState;if(E!==null&&C!==null){var D=E[1];if(f1(C,D))return E[0]}var V=u();return y.memoizedState=[V,C],V}function qa(u){var c=Hl();return c.memoizedState=u,u}function v1(u){var c=$s(),y=to,C=y.memoizedState;return Wy(c,C,u)}function Gy(u){var c=$s();if(to===null)return c.memoizedState=u,u;var y=to.memoizedState;return Wy(c,y,u)}function Wy(u,c,y){var C=!ec(Ih);if(C){if(!Jn(y,c)){var E=rx();da.lanes=_n(da.lanes,E),k2(E),u.baseState=!0}return c}else return u.baseState&&(u.baseState=!1,Ng()),u.memoizedState=y,y}function Ld(u,c,y){var C=rc();go(Ti(C,fl)),u(!0);var E=og.transition;og.transition={};var D=og.transition;og.transition._updatedFibers=new Set;try{u(!1),c()}finally{if(go(C),og.transition=E,E===null&&D._updatedFibers){var V=D._updatedFibers.size;V>10&&d("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),D._updatedFibers.clear()}}}function Yy(){var u=lg(!1),c=u[0],y=u[1],C=Ld.bind(null,y),E=Hl();return E.memoizedState=C,[c,C]}function Px(){var u=ug(),c=u[0],y=$s(),C=y.memoizedState;return[c,C]}function Ix(){var u=jl(),c=u[0],y=$s(),C=y.memoizedState;return[c,C]}var Uh=!1;function Hh(){return Uh}function vm(){var u=Hl(),c=nf(),y=c.identifierPrefix,C;if(yo()){var E=z0();C=":"+y+"R"+E;var D=If++;D>0&&(C+="H"+D.toString(32)),C+=":"}else{var V=sg++;C=":"+y+"r"+V.toString(32)+":"}return u.memoizedState=C,C}function g1(){var u=$s(),c=u.memoizedState;return c}function qy(u,c,y){typeof arguments[3]=="function"&&m("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var C=Vf(u),E={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(Or(u))zf(c,E);else{var D=Vc(u,c,E,C);if(D!==null){var V=Bi();Xo(D,u,C,V),fg(D,c,C)}}gm(u,C)}function b1(u,c,y){typeof arguments[3]=="function"&&m("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var C=Vf(u),E={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(Or(u))zf(c,E);else{var D=u.alternate;if(u.lanes===yt&&(D===null||D.lanes===yt)){var V=c.lastRenderedReducer;if(V!==null){var q;q=nn.current,nn.current=ls;try{var ee=c.lastRenderedState,pe=V(ee,y);if(E.hasEagerState=!0,E.eagerState=pe,Jn(pe,ee)){Gc(u,c,E,C);return}}catch{}finally{nn.current=q}}}var Ce=Vc(u,c,E,C);if(Ce!==null){var Ie=Bi();Xo(Ce,u,C,Ie),fg(Ce,c,C)}}gm(u,C)}function Or(u){var c=u.alternate;return u===da||c!==null&&c===da}function zf(u,c){hm=c1=!0;var y=u.pending;y===null?c.next=c:(c.next=y.next,y.next=c),u.pending=c}function fg(u,c,y){if(Fc(y)){var C=c.lanes;C=A0(C,u.pendingLanes);var E=_n(C,y);c.lanes=E,Bp(u,E)}}function gm(u,c,y){I0(u,c)}var dg={readContext:wa,useCallback:os,useContext:os,useEffect:os,useImperativeHandle:os,useInsertionEffect:os,useLayoutEffect:os,useMemo:os,useReducer:os,useRef:os,useState:os,useDebugValue:os,useDeferredValue:os,useTransition:os,useMutableSource:os,useSyncExternalStore:os,useId:os,unstable_isNewReconciler:T},Ky=null,y1=null,jh=null,Kc=null,jn=null,ls=null,Us=null;{var hg=function(){m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},or=function(){m("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Ky={readContext:function(u){return wa(u)},useCallback:function(u,c){return it="useCallback",Zr(),Ff(c),Lu(u,c)},useContext:function(u){return it="useContext",Zr(),wa(u)},useEffect:function(u,c){return it="useEffect",Zr(),Ff(c),ki(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",Zr(),Ff(y),Vy(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",Zr(),Ff(c),zh(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",Zr(),Ff(c),Hy(u,c)},useMemo:function(u,c){it="useMemo",Zr(),Ff(c);var y=nn.current;nn.current=jn;try{return $h(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",Zr();var C=nn.current;nn.current=jn;try{return ss(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",Zr(),Uy(u)},useState:function(u){it="useState",Zr();var c=nn.current;nn.current=jn;try{return lg(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",Zr(),void 0},useDeferredValue:function(u){return it="useDeferredValue",Zr(),qa(u)},useTransition:function(){return it="useTransition",Zr(),Yy()},useMutableSource:function(u,c,y){return it="useMutableSource",Zr(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",Zr(),zy(u,c,y)},useId:function(){return it="useId",Zr(),vm()},unstable_isNewReconciler:T},y1={readContext:function(u){return wa(u)},useCallback:function(u,c){return it="useCallback",Wt(),Lu(u,c)},useContext:function(u){return it="useContext",Wt(),wa(u)},useEffect:function(u,c){return it="useEffect",Wt(),ki(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",Wt(),Vy(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",Wt(),zh(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",Wt(),Hy(u,c)},useMemo:function(u,c){it="useMemo",Wt();var y=nn.current;nn.current=jn;try{return $h(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",Wt();var C=nn.current;nn.current=jn;try{return ss(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",Wt(),Uy(u)},useState:function(u){it="useState",Wt();var c=nn.current;nn.current=jn;try{return lg(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",Wt(),void 0},useDeferredValue:function(u){return it="useDeferredValue",Wt(),qa(u)},useTransition:function(){return it="useTransition",Wt(),Yy()},useMutableSource:function(u,c,y){return it="useMutableSource",Wt(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",Wt(),zy(u,c,y)},useId:function(){return it="useId",Wt(),vm()},unstable_isNewReconciler:T},jh={readContext:function(u){return wa(u)},useCallback:function(u,c){return it="useCallback",Wt(),Od(u,c)},useContext:function(u){return it="useContext",Wt(),wa(u)},useEffect:function(u,c){return it="useEffect",Wt(),Aa(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",Wt(),Bh(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",Wt(),Vl(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",Wt(),m1(u,c)},useMemo:function(u,c){it="useMemo",Wt();var y=nn.current;nn.current=ls;try{return Oa(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",Wt();var C=nn.current;nn.current=ls;try{return kd(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",Wt(),qc()},useState:function(u){it="useState",Wt();var c=nn.current;nn.current=ls;try{return ug(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",Wt(),mm()},useDeferredValue:function(u){return it="useDeferredValue",Wt(),v1(u)},useTransition:function(){return it="useTransition",Wt(),Px()},useMutableSource:function(u,c,y){return it="useMutableSource",Wt(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",Wt(),h1(u,c)},useId:function(){return it="useId",Wt(),g1()},unstable_isNewReconciler:T},Kc={readContext:function(u){return wa(u)},useCallback:function(u,c){return it="useCallback",Wt(),Od(u,c)},useContext:function(u){return it="useContext",Wt(),wa(u)},useEffect:function(u,c){return it="useEffect",Wt(),Aa(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",Wt(),Bh(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",Wt(),Vl(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",Wt(),m1(u,c)},useMemo:function(u,c){it="useMemo",Wt();var y=nn.current;nn.current=Us;try{return Oa(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",Wt();var C=nn.current;nn.current=Us;try{return d1(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",Wt(),qc()},useState:function(u){it="useState",Wt();var c=nn.current;nn.current=Us;try{return jl(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",Wt(),mm()},useDeferredValue:function(u){return it="useDeferredValue",Wt(),Gy(u)},useTransition:function(){return it="useTransition",Wt(),Ix()},useMutableSource:function(u,c,y){return it="useMutableSource",Wt(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",Wt(),h1(u,c)},useId:function(){return it="useId",Wt(),g1()},unstable_isNewReconciler:T},jn={readContext:function(u){return hg(),wa(u)},useCallback:function(u,c){return it="useCallback",or(),Zr(),Lu(u,c)},useContext:function(u){return it="useContext",or(),Zr(),wa(u)},useEffect:function(u,c){return it="useEffect",or(),Zr(),ki(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",or(),Zr(),Vy(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",or(),Zr(),zh(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",or(),Zr(),Hy(u,c)},useMemo:function(u,c){it="useMemo",or(),Zr();var y=nn.current;nn.current=jn;try{return $h(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",or(),Zr();var C=nn.current;nn.current=jn;try{return ss(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",or(),Zr(),Uy(u)},useState:function(u){it="useState",or(),Zr();var c=nn.current;nn.current=jn;try{return lg(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",or(),Zr(),void 0},useDeferredValue:function(u){return it="useDeferredValue",or(),Zr(),qa(u)},useTransition:function(){return it="useTransition",or(),Zr(),Yy()},useMutableSource:function(u,c,y){return it="useMutableSource",or(),Zr(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",or(),Zr(),zy(u,c,y)},useId:function(){return it="useId",or(),Zr(),vm()},unstable_isNewReconciler:T},ls={readContext:function(u){return hg(),wa(u)},useCallback:function(u,c){return it="useCallback",or(),Wt(),Od(u,c)},useContext:function(u){return it="useContext",or(),Wt(),wa(u)},useEffect:function(u,c){return it="useEffect",or(),Wt(),Aa(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",or(),Wt(),Bh(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",or(),Wt(),Vl(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",or(),Wt(),m1(u,c)},useMemo:function(u,c){it="useMemo",or(),Wt();var y=nn.current;nn.current=ls;try{return Oa(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",or(),Wt();var C=nn.current;nn.current=ls;try{return kd(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",or(),Wt(),qc()},useState:function(u){it="useState",or(),Wt();var c=nn.current;nn.current=ls;try{return ug(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",or(),Wt(),mm()},useDeferredValue:function(u){return it="useDeferredValue",or(),Wt(),v1(u)},useTransition:function(){return it="useTransition",or(),Wt(),Px()},useMutableSource:function(u,c,y){return it="useMutableSource",or(),Wt(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",or(),Wt(),h1(u,c)},useId:function(){return it="useId",or(),Wt(),g1()},unstable_isNewReconciler:T},Us={readContext:function(u){return hg(),wa(u)},useCallback:function(u,c){return it="useCallback",or(),Wt(),Od(u,c)},useContext:function(u){return it="useContext",or(),Wt(),wa(u)},useEffect:function(u,c){return it="useEffect",or(),Wt(),Aa(u,c)},useImperativeHandle:function(u,c,y){return it="useImperativeHandle",or(),Wt(),Bh(u,c,y)},useInsertionEffect:function(u,c){return it="useInsertionEffect",or(),Wt(),Vl(u,c)},useLayoutEffect:function(u,c){return it="useLayoutEffect",or(),Wt(),m1(u,c)},useMemo:function(u,c){it="useMemo",or(),Wt();var y=nn.current;nn.current=ls;try{return Oa(u,c)}finally{nn.current=y}},useReducer:function(u,c,y){it="useReducer",or(),Wt();var C=nn.current;nn.current=ls;try{return d1(u,c,y)}finally{nn.current=C}},useRef:function(u){return it="useRef",or(),Wt(),qc()},useState:function(u){it="useState",or(),Wt();var c=nn.current;nn.current=ls;try{return jl(u)}finally{nn.current=c}},useDebugValue:function(u,c){return it="useDebugValue",or(),Wt(),mm()},useDeferredValue:function(u){return it="useDeferredValue",or(),Wt(),Gy(u)},useTransition:function(){return it="useTransition",or(),Wt(),Ix()},useMutableSource:function(u,c,y){return it="useMutableSource",or(),Wt(),void 0},useSyncExternalStore:function(u,c,y){return it="useSyncExternalStore",or(),Wt(),h1(u,c)},useId:function(){return it="useId",or(),Wt(),g1()},unstable_isNewReconciler:T}}var Ir=i.unstable_now,Hs=0,Bf=-1,dc=-1,hc=-1,S1=!1,Zc=!1;function Md(){return S1}function x1(){Zc=!0}function Zy(){S1=!1,Zc=!1}function C1(){S1=Zc,Zc=!1}function bm(){return Hs}function Xy(){Hs=Ir()}function ym(u){dc=Ir(),u.actualStartTime<0&&(u.actualStartTime=Ir())}function Qy(u){dc=-1}function pg(u,c){if(dc>=0){var y=Ir()-dc;u.actualDuration+=y,c&&(u.selfBaseDuration=y),dc=-1}}function Xc(u){if(Bf>=0){var c=Ir()-Bf;Bf=-1;for(var y=u.return;y!==null;){switch(y.tag){case ie:var C=y.stateNode;C.effectDuration+=c;return;case he:var E=y.stateNode;E.effectDuration+=c;return}y=y.return}}}function mg(u){if(hc>=0){var c=Ir()-hc;hc=-1;for(var y=u.return;y!==null;){switch(y.tag){case ie:var C=y.stateNode;C!==null&&(C.passiveEffectDuration+=c);return;case he:var E=y.stateNode;E!==null&&(E.passiveEffectDuration+=c);return}y=y.return}}}function Gl(){Bf=Ir()}function Dd(){hc=Ir()}function N1(u){for(var c=u.child;c;)u.actualDuration+=c.actualDuration,c=c.sibling}function Vh(u,c){return{value:u,source:c,stack:Is(c),digest:null}}function Sm(u,c,y){return{value:u,source:null,stack:y??null,digest:c??null}}function Wo(u,c){return!0}function Ns(u,c){try{var y=Wo(u,c);if(y===!1)return;var C=c.value,E=c.source,D=c.stack,V=D!==null?D:"";if(C!=null&&C._suppressLogging){if(u.tag===Z)return;console.error(C)}var q=E?gt(E):null,ee=q?"The above error occurred in the <"+q+"> component:":"The above error occurred in one of your React components:",pe;if(u.tag===ie)pe=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var Ce=gt(u)||"Anonymous";pe="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+Ce+".")}var Ie=ee+`
`+V+`
`+(""+pe);console.error(Ie)}catch(Ye){setTimeout(function(){throw Ye})}}var $C=typeof WeakMap=="function"?WeakMap:Map;function Fx(u,c,y){var C=bl(Dr,y);C.tag=Z0,C.payload={element:null};var E=c.value;return C.callback=function(){Z7(E),Ns(u,c)},C}function Jy(u,c,y){var C=bl(Dr,y);C.tag=Z0;var E=u.type.getDerivedStateFromError;if(typeof E=="function"){var D=c.value;C.payload=function(){return E(D)},C.callback=function(){Z1(u),Ns(u,c)}}var V=u.stateNode;return V!==null&&typeof V.componentDidCatch=="function"&&(C.callback=function(){Z1(u),Ns(u,c),typeof E!="function"&&eE(this);var ee=c.value,pe=c.stack;this.componentDidCatch(ee,{componentStack:pe!==null?pe:""}),typeof E!="function"&&(vo(u.lanes,Wn)||m("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",gt(u)||"Unknown"))}),C}function e2(u,c,y){var C=u.pingCache,E;if(C===null?(C=u.pingCache=new $C,E=new Set,C.set(c,E)):(E=C.get(c),E===void 0&&(E=new Set,C.set(c,E))),!E.has(y)){E.add(y);var D=O2.bind(null,u,c,y);Na&&Fg(u,y),c.then(D,D)}}function UC(u,c,y,C){var E=u.updateQueue;if(E===null){var D=new Set;D.add(y),u.updateQueue=D}else E.add(y)}function HC(u,c){var y=u.tag;if((u.mode&Ar)===tr&&(y===K||y===J||y===xe)){var C=u.alternate;C?(u.updateQueue=C.updateQueue,u.memoizedState=C.memoizedState,u.lanes=C.lanes):(u.updateQueue=null,u.memoizedState=null)}}function zx(u){var c=u;do{if(c.tag===ve&&Rx(c))return c;c=c.return}while(c!==null);return null}function t2(u,c,y,C,E){if((u.mode&Ar)===tr){if(u===c)u.flags|=xt;else{if(u.flags|=pr,y.flags|=bn,y.flags&=~(Do|dt),y.tag===Z){var D=y.alternate;if(D===null)y.tag=Pe;else{var V=bl(Dr,Wn);V.tag=Wv,Wc(y,V,Wn)}}y.lanes=_n(y.lanes,Wn)}return u}return u.flags|=xt,u.lanes=E,u}function n2(u,c,y,C,E){if(y.flags|=dt,Na&&Fg(u,E),C!==null&&typeof C=="object"&&typeof C.then=="function"){var D=C;HC(y),yo()&&y.mode&Ar&&$0();var V=zx(c);if(V!==null){V.flags&=~Wi,t2(V,c,y,u,E),V.mode&Ar&&e2(u,D,E),UC(V,u,D);return}else{if(!Ef(E)){e2(u,D,E),A2();return}var q=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");C=q}}else if(yo()&&y.mode&Ar){$0();var ee=zx(c);if(ee!==null){(ee.flags&xt)===_t&&(ee.flags|=Wi),t2(ee,c,y,u,E),Ch(Vh(C,y));return}}C=Vh(C,y),Y7(C);var pe=c;do{switch(pe.tag){case ie:{var Ce=C;pe.flags|=xt;var Ie=vh(E);pe.lanes=_n(pe.lanes,Ie);var Ye=Fx(pe,Ce,Ie);yy(pe,Ye);return}case Z:var lt=C,ft=pe.type,ct=pe.stateNode;if((pe.flags&pr)===_t&&(typeof ft.getDerivedStateFromError=="function"||ct!==null&&typeof ct.componentDidCatch=="function"&&!Ig(ct))){pe.flags|=xt;var Cn=vh(E);pe.lanes=_n(pe.lanes,Cn);var nr=Jy(pe,lt,Cn);yy(pe,nr);return}break}pe=pe.return}while(pe!==null)}function r2(){return null}var Gh=s.ReactCurrentOwner,xl=!1,w1,$f,Wh,a2,_1,Mu,i2,vg;w1={},$f={},Wh={},a2={},_1={},Mu=!1,i2={},vg={};function js(u,c,y,C){u===null?c.child=Oy(c,null,y,C):c.child=lm(c,u.child,y,C)}function jC(u,c,y,C){c.child=lm(c,u.child,null,C),c.child=lm(c,null,y,C)}function o2(u,c,y,C,E){if(c.type!==c.elementType){var D=y.propTypes;D&&Ku(D,C,"prop",We(y))}var V=y.render,q=c.ref,ee,pe;jc(c,E),Up(c);{if(Gh.current=c,Ru(!0),ee=Fh(u,c,V,C,q,E),pe=pm(),c.mode&pi){vi(!0);try{ee=Fh(u,c,V,C,q,E),pe=pm()}finally{vi(!1)}}Ru(!1)}return Hp(),u!==null&&!xl?(kx(u,c,E),Wl(u,c,E)):(yo()&&pe&&_u(c),c.flags|=kn,js(u,c,ee,E),c.child)}function xm(u,c,y,C,E){if(u===null){var D=y.type;if(af(D)&&y.compare===null&&y.defaultProps===void 0){var V=D;return V=Dm(D),c.tag=xe,c.type=V,u2(c,D),Cm(u,c,V,C,E)}{var q=D.propTypes;q&&Ku(q,C,"prop",We(D))}var ee=Im(y.type,null,C,c,c.mode,E);return ee.ref=c.ref,ee.return=c,c.child=ee,ee}{var pe=y.type,Ce=pe.propTypes;Ce&&Ku(Ce,C,"prop",We(pe))}var Ie=u.child,Ye=g2(u,E);if(!Ye){var lt=Ie.memoizedProps,ft=y.compare;if(ft=ft!==null?ft:uc,ft(lt,C)&&u.ref===c.ref)return Wl(u,c,E)}c.flags|=kn;var ct=ip(Ie,C);return ct.ref=c.ref,ct.return=c,c.child=ct,ct}function Cm(u,c,y,C,E){if(c.type!==c.elementType){var D=c.elementType;if(D.$$typeof===wn){var V=D,q=V._payload,ee=V._init;try{D=ee(q)}catch{D=null}var pe=D&&D.propTypes;pe&&Ku(pe,C,"prop",We(D))}}if(u!==null){var Ce=u.memoizedProps;if(uc(Ce,C)&&u.ref===c.ref&&c.type===u.type)if(xl=!1,c.pendingProps=C=Ce,g2(u,E))(u.flags&bn)!==_t&&(xl=!0);else return c.lanes=u.lanes,Wl(u,c,E)}return Sg(u,c,y,C,E)}function gg(u,c,y){var C=c.pendingProps,E=C.children,D=u!==null?u.memoizedState:null;if(C.mode==="hidden"||M)if((c.mode&Ar)===tr){var V={baseLanes:yt,cachePool:null,transitions:null};c.memoizedState=V,T2(c,y)}else if(vo(y,Xi)){var Ie={baseLanes:yt,cachePool:null,transitions:null};c.memoizedState=Ie;var Ye=D!==null?D.baseLanes:y;T2(c,Ye)}else{var q=null,ee;if(D!==null){var pe=D.baseLanes;ee=_n(pe,y)}else ee=y;c.lanes=c.childLanes=Xi;var Ce={baseLanes:ee,cachePool:q,transitions:null};return c.memoizedState=Ce,c.updateQueue=null,T2(c,ee),null}else{var lt;D!==null?(lt=_n(D.baseLanes,y),c.memoizedState=null):lt=y,T2(c,lt)}return js(u,c,E,y),c.child}function bg(u,c,y){var C=c.pendingProps;return js(u,c,C,y),c.child}function yg(u,c,y){var C=c.pendingProps.children;return js(u,c,C,y),c.child}function VC(u,c,y){{c.flags|=Gt;{var C=c.stateNode;C.effectDuration=0,C.passiveEffectDuration=0}}var E=c.pendingProps,D=E.children;return js(u,c,D,y),c.child}function E1(u,c){var y=c.ref;(u===null&&y!==null||u!==null&&u.ref!==y)&&(c.flags|=lo,c.flags|=_r)}function Sg(u,c,y,C,E){if(c.type!==c.elementType){var D=y.propTypes;D&&Ku(D,C,"prop",We(y))}var V;{var q=ul(c,y,!0);V=Bo(c,q)}var ee,pe;jc(c,E),Up(c);{if(Gh.current=c,Ru(!0),ee=Fh(u,c,y,C,V,E),pe=pm(),c.mode&pi){vi(!0);try{ee=Fh(u,c,y,C,V,E),pe=pm()}finally{vi(!1)}}Ru(!1)}return Hp(),u!==null&&!xl?(kx(u,c,E),Wl(u,c,E)):(yo()&&pe&&_u(c),c.flags|=kn,js(u,c,ee,E),c.child)}function Bx(u,c,y,C,E){{switch(tb(c)){case!1:{var D=c.stateNode,V=c.type,q=new V(c.memoizedProps,D.context),ee=q.state;D.updater.enqueueSetState(D,ee,null);break}case!0:{c.flags|=pr,c.flags|=xt;var pe=new Error("Simulated error coming from DevTools"),Ce=vh(E);c.lanes=_n(c.lanes,Ce);var Ie=Jy(c,Vh(pe,c),Ce);yy(c,Ie);break}}if(c.type!==c.elementType){var Ye=y.propTypes;Ye&&Ku(Ye,C,"prop",We(y))}}var lt;Mc(y)?(lt=!0,kv(c)):lt=!1,jc(c,E);var ft=c.stateNode,ct;ft===null?(Pd(u,c),om(c,y,C),Jv(c,y,C,E),ct=!0):u===null?ct=Ty(c,y,C,E):ct=eg(u,c,y,C,E);var Cn=s2(u,c,y,ct,lt,E);{var nr=c.stateNode;ct&&nr.props!==C&&(Mu||m("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",gt(c)||"a component"),Mu=!0)}return Cn}function s2(u,c,y,C,E,D){E1(u,c);var V=(c.flags&pr)!==_t;if(!C&&!V)return E&&ty(c,y,!1),Wl(u,c,D);var q=c.stateNode;Gh.current=c;var ee;if(V&&typeof y.getDerivedStateFromError!="function")ee=null,Qy();else{Up(c);{if(Ru(!0),ee=q.render(),c.mode&pi){vi(!0);try{q.render()}finally{vi(!1)}}Ru(!1)}Hp()}return c.flags|=kn,u!==null&&V?jC(u,c,ee,D):js(u,c,ee,D),c.memoizedState=q.state,E&&ty(c,y,!0),c.child}function GC(u){var c=u.stateNode;c.pendingContext?Rv(u,c.pendingContext,c.pendingContext!==c.context):c.context&&Rv(u,c.context,!1),My(u,c.containerInfo)}function WC(u,c,y){if(GC(c),u===null)throw new Error("Should have a current fiber. This is a bug in React.");var C=c.pendingProps,E=c.memoizedState,D=E.element;am(u,c),J0(c,C,null,y);var V=c.memoizedState;c.stateNode;var q=V.element;if(ka&&E.isDehydrated){var ee={element:q,isDehydrated:!1,cache:V.cache,pendingSuspenseBoundaries:V.pendingSuspenseBoundaries,transitions:V.transitions},pe=c.updateQueue;if(pe.baseState=ee,c.memoizedState=ee,c.flags&Wi){var Ce=Vh(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),c);return $x(u,c,q,y,Ce)}else if(q!==D){var Ie=Vh(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),c);return $x(u,c,q,y,Ie)}else{xs(c);var Ye=Oy(c,null,q,y);c.child=Ye;for(var lt=Ye;lt;)lt.flags=lt.flags&~Un|yr,lt=lt.sibling}}else{if(Tu(),q===D)return Wl(u,c,y);js(u,c,q,y)}return c.child}function $x(u,c,y,C,E){return Tu(),Ch(E),c.flags|=Wi,js(u,c,y,C),c.child}function YC(u,c,y){Ex(c),u===null&&Cd(c);var C=c.type,E=c.pendingProps,D=u!==null?u.memoizedProps:null,V=E.children,q=ai(C,E);return q?V=null:D!==null&&ai(C,D)&&(c.flags|=di),E1(u,c),js(u,c,V,y),c.child}function qC(u,c){return u===null&&Cd(c),null}function KC(u,c,y,C){Pd(u,c);var E=c.pendingProps,D=y,V=D._payload,q=D._init,ee=q(V);c.type=ee;var pe=c.tag=Pm(ee),Ce=Bl(ee,E),Ie;switch(pe){case K:return u2(c,ee),c.type=ee=Dm(ee),Ie=Sg(null,c,ee,Ce,C),Ie;case Z:return c.type=ee=P2(ee),Ie=Bx(null,c,ee,Ce,C),Ie;case J:return c.type=ee=H4(ee),Ie=o2(null,c,ee,Ce,C),Ie;case ye:{if(c.type!==c.elementType){var Ye=ee.propTypes;Ye&&Ku(Ye,Ce,"prop",We(ee))}return Ie=xm(null,c,ee,Bl(ee.type,Ce),C),Ie}}var lt="";throw ee!==null&&typeof ee=="object"&&ee.$$typeof===wn&&(lt=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+ee+". "+("Lazy element type must resolve to a class or function."+lt))}function ZC(u,c,y,C,E){Pd(u,c),c.tag=Z;var D;return Mc(y)?(D=!0,kv(c)):D=!1,jc(c,E),om(c,y,C),Jv(c,y,C,E),s2(null,c,y,!0,D,E)}function l2(u,c,y,C){Pd(u,c);var E=c.pendingProps,D;{var V=ul(c,y,!1);D=Bo(c,V)}jc(c,C);var q,ee;Up(c);{if(y.prototype&&typeof y.prototype.render=="function"){var pe=We(y)||"Unknown";w1[pe]||(m("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",pe,pe),w1[pe]=!0)}c.mode&pi&&Fs.recordLegacyContextWarning(c,null),Ru(!0),Gh.current=c,q=Fh(null,c,y,E,D,C),ee=pm(),Ru(!1)}if(Hp(),c.flags|=kn,typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){var Ce=We(y)||"Unknown";$f[Ce]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ce,Ce,Ce),$f[Ce]=!0)}if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){{var Ie=We(y)||"Unknown";$f[Ie]||(m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ie,Ie,Ie),$f[Ie]=!0)}c.tag=Z,c.memoizedState=null,c.updateQueue=null;var Ye=!1;return Mc(y)?(Ye=!0,kv(c)):Ye=!1,c.memoizedState=q.state!==null&&q.state!==void 0?q.state:null,Rh(c),Oh(c,q),Jv(c,y,E,C),s2(null,c,y,!0,Ye,C)}else{if(c.tag=K,c.mode&pi){vi(!0);try{q=Fh(null,c,y,E,D,C),ee=pm()}finally{vi(!1)}}return yo()&&ee&&_u(c),js(null,c,q,C),u2(c,y),c.child}}function u2(u,c){{if(c&&c.childContextTypes&&m("%s(...): childContextTypes cannot be defined on a function component.",c.displayName||c.name||"Component"),u.ref!==null){var y="",C=yx();C&&(y+=`
Check the render method of \``+C+"`.");var E=C||"",D=u._debugSource;D&&(E=D.fileName+":"+D.lineNumber),_1[E]||(_1[E]=!0,m("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",y))}if(typeof c.getDerivedStateFromProps=="function"){var V=We(c)||"Unknown";a2[V]||(m("%s: Function components do not support getDerivedStateFromProps.",V),a2[V]=!0)}if(typeof c.contextType=="object"&&c.contextType!==null){var q=We(c)||"Unknown";Wh[q]||(m("%s: Function components do not support contextType.",q),Wh[q]=!0)}}}var c2={dehydrated:null,treeContext:null,retryLane:oi};function xg(u){return{baseLanes:u,cachePool:r2(),transitions:null}}function XC(u,c){var y=null;return{baseLanes:_n(u.baseLanes,c),cachePool:y,transitions:u.transitions}}function f2(u,c,y,C){if(c!==null){var E=c.memoizedState;if(E===null)return!1}return l1(u,rg)}function Ux(u,c){return gh(u.childLanes,c)}function Hx(u,c,y){var C=c.pendingProps;$2(c)&&(c.flags|=pr);var E=fc.current,D=!1,V=(c.flags&pr)!==_t;if(V||f2(E,u)?(D=!0,c.flags&=~pr):(u===null||u.memoizedState!==null)&&(E=FC(E,Tx)),E=Rd(E),Df(c,E),u===null){Cd(c);var q=c.memoizedState;if(q!==null){var ee=q.dehydrated;if(ee!==null)return h2(c,ee)}var pe=C.children,Ce=C.fallback;if(D){var Ie=QC(c,pe,Ce,y),Ye=c.child;return Ye.memoizedState=xg(y),c.memoizedState=c2,Ie}else return d2(c,pe)}else{var lt=u.memoizedState;if(lt!==null){var ft=lt.dehydrated;if(ft!==null)return t4(u,c,V,C,ft,lt,y)}if(D){var ct=C.fallback,Cn=C.children,nr=JC(u,c,Cn,ct,y),Et=c.child,jr=u.child.memoizedState;return Et.memoizedState=jr===null?xg(y):XC(jr,y),Et.childLanes=Ux(u,y),c.memoizedState=c2,nr}else{var Vr=C.children,Ue=jx(u,c,Vr,y);return c.memoizedState=null,Ue}}}function d2(u,c,y){var C=u.mode,E={mode:"visible",children:c},D=Cg(E,C);return D.return=u,u.child=D,D}function QC(u,c,y,C){var E=u.mode,D=u.child,V={mode:"hidden",children:c},q,ee;return(E&Ar)===tr&&D!==null?(q=D,q.childLanes=yt,q.pendingProps=V,u.mode&Mr&&(q.actualDuration=0,q.actualStartTime=-1,q.selfBaseDuration=0,q.treeBaseDuration=0),ee=Ui(y,E,C,null)):(q=Cg(V,E),ee=Ui(y,E,C,null)),q.return=u,ee.return=u,q.sibling=ee,u.child=q,ee}function Cg(u,c,y){return W4(u,c,yt,null)}function T1(u,c){return ip(u,c)}function jx(u,c,y,C){var E=u.child,D=E.sibling,V=T1(E,{mode:"visible",children:y});if((c.mode&Ar)===tr&&(V.lanes=C),V.return=c,V.sibling=null,D!==null){var q=c.deletions;q===null?(c.deletions=[D],c.flags|=rr):q.push(D)}return c.child=V,V}function JC(u,c,y,C,E){var D=c.mode,V=u.child,q=V.sibling,ee={mode:"hidden",children:y},pe;if((D&Ar)===tr&&c.child!==V){var Ce=c.child;pe=Ce,pe.childLanes=yt,pe.pendingProps=ee,c.mode&Mr&&(pe.actualDuration=0,pe.actualStartTime=-1,pe.selfBaseDuration=V.selfBaseDuration,pe.treeBaseDuration=V.treeBaseDuration),c.deletions=null}else pe=T1(V,ee),pe.subtreeFlags=V.subtreeFlags&Ra;var Ie;return q!==null?Ie=ip(q,C):(Ie=Ui(C,D,E,null),Ie.flags|=Un),Ie.return=c,pe.return=c,pe.sibling=Ie,c.child=pe,Ie}function R1(u,c,y,C){C!==null&&Ch(C),lm(c,u.child,null,y);var E=c.pendingProps,D=E.children,V=d2(c,D);return V.flags|=Un,c.memoizedState=null,V}function e4(u,c,y,C,E){var D=c.mode,V={mode:"visible",children:y},q=Cg(V,D),ee=Ui(C,D,E,null);return ee.flags|=Un,q.return=c,ee.return=c,q.sibling=ee,c.child=q,(c.mode&Ar)!==tr&&lm(c,u.child,null,E),ee}function h2(u,c,y){return(u.mode&Ar)===tr?(m("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),u.lanes=Wn):xn(c)?u.lanes=Su:u.lanes=Xi,null}function t4(u,c,y,C,E,D,V){if(y)if(c.flags&Wi){c.flags&=~Wi;var Ue=Sm(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return R1(u,c,V,Ue)}else{if(c.memoizedState!==null)return c.child=u.child,c.flags|=pr,null;var rt=C.children,$e=C.fallback,zt=e4(u,c,rt,$e,V),vn=c.child;return vn.memoizedState=xg(V),c.memoizedState=c2,zt}else{if(Yp(),(c.mode&Ar)===tr)return R1(u,c,V,null);if(xn(E)){var q,ee,pe;{var Ce=Hn(E);q=Ce.digest,ee=Ce.message,pe=Ce.stack}var Ie;ee?Ie=new Error(ee):Ie=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Ye=Sm(Ie,q,pe);return R1(u,c,V,Ye)}var lt=vo(V,u.childLanes);if(xl||lt){var ft=nf();if(ft!==null){var ct=Iv(ft,V);if(ct!==oi&&ct!==D.retryLane){D.retryLane=ct;var Cn=Dr;Cs(u,ct),Xo(ft,u,ct,Cn)}}A2();var nr=Sm(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return R1(u,c,V,nr)}else if(Xt(E)){c.flags|=pr,c.child=u.child;var Et=x5.bind(null,u);return mn(E,Et),null}else{Fl(c,E,D.treeContext);var jr=C.children,Vr=d2(c,jr);return Vr.flags|=yr,Vr}}}function Vx(u,c,y){u.lanes=_n(u.lanes,c);var C=u.alternate;C!==null&&(C.lanes=_n(C.lanes,c)),q0(u.return,c,y)}function p2(u,c,y){for(var C=c;C!==null;){if(C.tag===ve){var E=C.memoizedState;E!==null&&Vx(C,y,u)}else if(C.tag===wt)Vx(C,y,u);else if(C.child!==null){C.child.return=C,C=C.child;continue}if(C===u)return;for(;C.sibling===null;){if(C.return===null||C.return===u)return;C=C.return}C.sibling.return=C.return,C=C.sibling}}function Cl(u){for(var c=u,y=null;c!==null;){var C=c.alternate;C!==null&&u1(C)===null&&(y=c),c=c.sibling}return y}function m2(u){if(u!==void 0&&u!=="forwards"&&u!=="backwards"&&u!=="together"&&!i2[u])if(i2[u]=!0,typeof u=="string")switch(u.toLowerCase()){case"together":case"forwards":case"backwards":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',u,u.toLowerCase());break}case"forward":case"backward":{m('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',u,u.toLowerCase());break}default:m('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',u);break}else m('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',u)}function n4(u,c){u!==void 0&&!vg[u]&&(u!=="collapsed"&&u!=="hidden"?(vg[u]=!0,m('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',u)):c!=="forwards"&&c!=="backwards"&&(vg[u]=!0,m('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',u)))}function Gx(u,c){{var y=ni(u),C=!y&&typeof pt(u)=="function";if(y||C){var E=y?"array":"iterable";return m("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",E,c,E),!1}}return!0}function r4(u,c){if((c==="forwards"||c==="backwards")&&u!==void 0&&u!==null&&u!==!1)if(ni(u)){for(var y=0;y<u.length;y++)if(!Gx(u[y],y))return}else{var C=pt(u);if(typeof C=="function"){var E=C.call(u);if(E)for(var D=E.next(),V=0;!D.done;D=E.next()){if(!Gx(D.value,V))return;V++}}else m('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',c)}}function v2(u,c,y,C,E){var D=u.memoizedState;D===null?u.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:C,tail:y,tailMode:E}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=C,D.tail=y,D.tailMode=E)}function k1(u,c,y){var C=c.pendingProps,E=C.revealOrder,D=C.tail,V=C.children;m2(E),n4(D,E),r4(V,E),js(u,c,V,y);var q=fc.current,ee=l1(q,rg);if(ee)q=Dh(q,rg),c.flags|=pr;else{var pe=u!==null&&(u.flags&pr)!==_t;pe&&p2(c,c.child,y),q=Rd(q)}if(Df(c,q),(c.mode&Ar)===tr)c.memoizedState=null;else switch(E){case"forwards":{var Ce=Cl(c.child),Ie;Ce===null?(Ie=c.child,c.child=null):(Ie=Ce.sibling,Ce.sibling=null),v2(c,!1,Ie,Ce,D);break}case"backwards":{var Ye=null,lt=c.child;for(c.child=null;lt!==null;){var ft=lt.alternate;if(ft!==null&&u1(ft)===null){c.child=lt;break}var ct=lt.sibling;lt.sibling=Ye,Ye=lt,lt=ct}v2(c,!0,Ye,null,D);break}case"together":{v2(c,!1,null,null,void 0);break}default:c.memoizedState=null}return c.child}function a4(u,c,y){My(c,c.stateNode.containerInfo);var C=c.pendingProps;return u===null?c.child=lm(c,null,C,y):js(u,c,C,y),c.child}var A1=!1;function Wx(u,c,y){var C=c.type,E=C._context,D=c.pendingProps,V=c.memoizedProps,q=D.value;{"value"in D||A1||(A1=!0,m("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var ee=c.type.propTypes;ee&&Ku(ee,D,"prop","Context.Provider")}if(Y0(c,E,q),V!==null){var pe=V.value;if(Jn(pe,q)){if(V.children===D.children&&!yu())return Wl(u,c,y)}else LC(c,E,y)}var Ce=D.children;return js(u,c,Ce,y),c.child}var O1=!1;function i4(u,c,y){var C=c.type;C._context===void 0?C!==C.Consumer&&(O1||(O1=!0,m("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):C=C._context;var E=c.pendingProps,D=E.children;typeof D!="function"&&m("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),jc(c,y);var V=wa(C);Up(c);var q;return Gh.current=c,Ru(!0),q=D(V),Ru(!1),Hp(),c.flags|=kn,js(u,c,q,y),c.child}function Ng(){xl=!0}function Pd(u,c){(c.mode&Ar)===tr&&u!==null&&(u.alternate=null,c.alternate=null,c.flags|=Un)}function Wl(u,c,y){return u!==null&&(c.dependencies=u.dependencies),Qy(),k2(c.lanes),vo(y,c.childLanes)?(DC(u,c),c.child):null}function o4(u,c,y){{var C=c.return;if(C===null)throw new Error("Cannot swap the root fiber.");if(u.alternate=null,c.alternate=null,y.index=c.index,y.sibling=c.sibling,y.return=c.return,y.ref=c.ref,c===C.child)C.child=y;else{var E=C.child;if(E===null)throw new Error("Expected parent to have a child.");for(;E.sibling!==c;)if(E=E.sibling,E===null)throw new Error("Expected to find the previous sibling.");E.sibling=y}var D=C.deletions;return D===null?(C.deletions=[u],C.flags|=rr):D.push(u),y.flags|=Un,y}}function g2(u,c){var y=u.lanes;return!!vo(y,c)}function b2(u,c,y){switch(c.tag){case ie:GC(c),c.stateNode,Tu();break;case oe:Ex(c);break;case Z:{var C=c.type;Mc(C)&&kv(c);break}case le:My(c,c.stateNode.containerInfo);break;case _e:{var E=c.memoizedProps.value,D=c.type._context;Y0(c,D,E);break}case he:{var V=vo(y,c.childLanes);V&&(c.flags|=Gt);{var q=c.stateNode;q.effectDuration=0,q.passiveEffectDuration=0}}break;case ve:{var ee=c.memoizedState;if(ee!==null){if(ee.dehydrated!==null)return Df(c,Rd(fc.current)),c.flags|=pr,null;var pe=c.child,Ce=pe.childLanes;if(vo(y,Ce))return Hx(u,c,y);Df(c,Rd(fc.current));var Ie=Wl(u,c,y);return Ie!==null?Ie.sibling:null}else Df(c,Rd(fc.current));break}case wt:{var Ye=(u.flags&pr)!==_t,lt=vo(y,c.childLanes);if(Ye){if(lt)return k1(u,c,y);c.flags|=pr}var ft=c.memoizedState;if(ft!==null&&(ft.rendering=null,ft.tail=null,ft.lastEffect=null),Df(c,fc.current),lt)break;return null}case Ut:case ut:return c.lanes=yt,gg(u,c,y)}return Wl(u,c,y)}function L1(u,c,y){if(c._debugNeedsRemount&&u!==null)return o4(u,c,Im(c.type,c.key,c.pendingProps,c._debugOwner||null,c.mode,c.lanes));if(u!==null){var C=u.memoizedProps,E=c.pendingProps;if(C!==E||yu()||c.type!==u.type)xl=!0;else{var D=g2(u,y);if(!D&&(c.flags&pr)===_t)return xl=!1,b2(u,c,y);(u.flags&bn)!==_t?xl=!0:xl=!1}}else if(xl=!1,yo()&&F0(c)){var V=c.index,q=Hv();jp(c,q,V)}switch(c.lanes=yt,c.tag){case ne:return l2(u,c,c.type,y);case Ve:{var ee=c.elementType;return KC(u,c,ee,y)}case K:{var pe=c.type,Ce=c.pendingProps,Ie=c.elementType===pe?Ce:Bl(pe,Ce);return Sg(u,c,pe,Ie,y)}case Z:{var Ye=c.type,lt=c.pendingProps,ft=c.elementType===Ye?lt:Bl(Ye,lt);return Bx(u,c,Ye,ft,y)}case ie:return WC(u,c,y);case oe:return YC(u,c,y);case Ae:return qC(u,c);case ve:return Hx(u,c,y);case le:return a4(u,c,y);case J:{var ct=c.type,Cn=c.pendingProps,nr=c.elementType===ct?Cn:Bl(ct,Cn);return o2(u,c,ct,nr,y)}case de:return bg(u,c,y);case Se:return yg(u,c,y);case he:return VC(u,c,y);case _e:return Wx(u,c,y);case Me:return i4(u,c,y);case ye:{var Et=c.type,jr=c.pendingProps,Vr=Bl(Et,jr);if(c.type!==c.elementType){var Ue=Et.propTypes;Ue&&Ku(Ue,Vr,"prop",We(Et))}return Vr=Bl(Et.type,Vr),xm(u,c,Et,Vr,y)}case xe:return Cm(u,c,c.type,c.pendingProps,y);case Pe:{var rt=c.type,$e=c.pendingProps,zt=c.elementType===rt?$e:Bl(rt,$e);return ZC(u,c,rt,zt,y)}case wt:return k1(u,c,y);case Ot:break;case Ut:return gg(u,c,y)}throw new Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Qc(u){u.flags|=Gt}function Yx(u){u.flags|=lo,u.flags|=_r}function qx(u,c){var y=u!==null&&u.child===c.child;if(y)return!0;if((c.flags&rr)!==_t)return!1;for(var C=c.child;C!==null;){if((C.flags&Fa)!==_t||(C.subtreeFlags&Fa)!==_t)return!1;C=C.sibling}return!0}var Nm,wg,M1,D1;if(Wa)Nm=function(u,c,y,C){for(var E=c.child;E!==null;){if(E.tag===oe||E.tag===Ae)Fo(u,E.stateNode);else if(E.tag!==le){if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E===c)return;for(;E.sibling===null;){if(E.return===null||E.return===c)return;E=E.return}E.sibling.return=E.return,E=E.sibling}},wg=function(u,c){},M1=function(u,c,y,C,E){var D=u.memoizedProps;if(D!==C){var V=c.stateNode,q=fm(),ee=fo(V,y,D,C,E,q);c.updateQueue=ee,ee&&Qc(c)}},D1=function(u,c,y,C){y!==C&&Qc(c)};else if(wi){Nm=function(u,c,y,C){for(var E=c.child;E!==null;){if(E.tag===oe){var D=E.stateNode;if(y&&C){var V=E.memoizedProps,q=E.type;D=ce(D,q,V,E)}Fo(u,D)}else if(E.tag===Ae){var ee=E.stateNode;if(y&&C){var pe=E.memoizedProps;ee=Ne(ee,pe,E)}Fo(u,ee)}else if(E.tag!==le){if(E.tag===Ut&&E.memoizedState!==null){var Ce=E.child;Ce!==null&&(Ce.return=E),Nm(u,E,!0,!0)}else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E=E,E===c)return;for(;E.sibling===null;){if(E.return===null||E.return===c)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};var Kx=function(u,c,y,C){for(var E=c.child;E!==null;){if(E.tag===oe){var D=E.stateNode;if(y&&C){var V=E.memoizedProps,q=E.type;D=ce(D,q,V,E)}k(u,D)}else if(E.tag===Ae){var ee=E.stateNode;if(y&&C){var pe=E.memoizedProps;ee=Ne(ee,pe,E)}k(u,ee)}else if(E.tag!==le){if(E.tag===Ut&&E.memoizedState!==null){var Ce=E.child;Ce!==null&&(Ce.return=E),Kx(u,E,!0,!0)}else if(E.child!==null){E.child.return=E,E=E.child;continue}}if(E=E,E===c)return;for(;E.sibling===null;){if(E.return===null||E.return===c)return;E=E.return}E.sibling.return=E.return,E=E.sibling}};wg=function(u,c){var y=c.stateNode,C=qx(u,c);if(!C){var E=y.containerInfo,D=Jt(E);Kx(D,c,!1,!1),y.pendingChildren=D,Qc(c),j(E,D)}},M1=function(u,c,y,C,E){var D=u.stateNode,V=u.memoizedProps,q=qx(u,c);if(q&&V===C){c.stateNode=D;return}var ee=c.stateNode,pe=fm(),Ce=null;if(V!==C&&(Ce=fo(ee,y,V,C,E,pe)),q&&Ce===null){c.stateNode=D;return}var Ie=yn(D,Ce,y,V,C,c,q,ee);ri(Ie,y,C,E,pe)&&Qc(c),c.stateNode=Ie,q?Qc(c):Nm(Ie,c,!1,!1)},D1=function(u,c,y,C){if(y!==C){var E=Ly(),D=fm();c.stateNode=Di(C,E,D,c),Qc(c)}else c.stateNode=u.stateNode}}else wg=function(u,c){},M1=function(u,c,y,C,E){},D1=function(u,c,y,C){};function _g(u,c){if(!yo())switch(u.tailMode){case"hidden":{for(var y=u.tail,C=null;y!==null;)y.alternate!==null&&(C=y),y=y.sibling;C===null?u.tail=null:C.sibling=null;break}case"collapsed":{for(var E=u.tail,D=null;E!==null;)E.alternate!==null&&(D=E),E=E.sibling;D===null?!c&&u.tail!==null?u.tail.sibling=null:u.tail=null:D.sibling=null;break}}}function us(u){var c=u.alternate!==null&&u.alternate.child===u.child,y=yt,C=_t;if(c){if((u.mode&Mr)!==tr){for(var ee=u.selfBaseDuration,pe=u.child;pe!==null;)y=_n(y,_n(pe.lanes,pe.childLanes)),C|=pe.subtreeFlags&Ra,C|=pe.flags&Ra,ee+=pe.treeBaseDuration,pe=pe.sibling;u.treeBaseDuration=ee}else for(var Ce=u.child;Ce!==null;)y=_n(y,_n(Ce.lanes,Ce.childLanes)),C|=Ce.subtreeFlags&Ra,C|=Ce.flags&Ra,Ce.return=u,Ce=Ce.sibling;u.subtreeFlags|=C}else{if((u.mode&Mr)!==tr){for(var E=u.actualDuration,D=u.selfBaseDuration,V=u.child;V!==null;)y=_n(y,_n(V.lanes,V.childLanes)),C|=V.subtreeFlags,C|=V.flags,E+=V.actualDuration,D+=V.treeBaseDuration,V=V.sibling;u.actualDuration=E,u.treeBaseDuration=D}else for(var q=u.child;q!==null;)y=_n(y,_n(q.lanes,q.childLanes)),C|=q.subtreeFlags,C|=q.flags,q.return=u,q=q.sibling;u.subtreeFlags|=C}return u.childLanes=y,c}function s4(u,c,y){if(j0()&&(c.mode&Ar)!==tr&&(c.flags&pr)===_t)return V0(c),Tu(),c.flags|=Wi|dt|xt,!1;var C=Zp(c);if(y!==null&&y.dehydrated!==null)if(u===null){if(!C)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(H0(c),us(c),(c.mode&Mr)!==tr){var E=y!==null;if(E){var D=c.child;D!==null&&(c.treeBaseDuration-=D.treeBaseDuration)}}return!1}else{if(Tu(),(c.flags&pr)===_t&&(c.memoizedState=null),c.flags|=Gt,us(c),(c.mode&Mr)!==tr){var V=y!==null;if(V){var q=c.child;q!==null&&(c.treeBaseDuration-=q.treeBaseDuration)}}return!1}else return gx(),!0}function Zx(u,c,y){var C=c.pendingProps;switch(Gp(c),c.tag){case ne:case Ve:case xe:case K:case J:case de:case Se:case he:case Me:case ye:return us(c),null;case Z:{var E=c.type;return Mc(E)&&Cf(c),us(c),null}case ie:{var D=c.stateNode;if(cm(c),Op(c),ig(),D.pendingContext&&(D.context=D.pendingContext,D.pendingContext=null),u===null||u.child===null){var V=Zp(c);if(V)Qc(c);else if(u!==null){var q=u.memoizedState;(!q.isDehydrated||(c.flags&Wi)!==_t)&&(c.flags|=uo,gx())}}return wg(u,c),us(c),null}case oe:{s1(c);var ee=Ly(),pe=c.type;if(u!==null&&c.stateNode!=null)M1(u,c,pe,C,ee),u.ref!==c.ref&&Yx(c);else{if(!C){if(c.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return us(c),null}var Ce=fm(),Ie=Zp(c);if(Ie)jv(c,ee,Ce)&&Qc(c);else{var Ye=Vu(pe,C,ee,Ce,c);Nm(Ye,c,!1,!1),c.stateNode=Ye,ri(Ye,pe,C,ee,Ce)&&Qc(c)}c.ref!==null&&Yx(c)}return us(c),null}case Ae:{var lt=C;if(u&&c.stateNode!=null){var ft=u.memoizedProps;D1(u,c,ft,lt)}else{if(typeof lt!="string"&&c.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ct=Ly(),Cn=fm(),nr=Zp(c);nr?kC(c)&&Qc(c):c.stateNode=Di(lt,ct,Cn,c)}return us(c),null}case ve:{Ph(c);var Et=c.memoizedState;if(u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){var jr=s4(u,c,Et);if(!jr)return c.flags&xt?c:null}if((c.flags&pr)!==_t)return c.lanes=y,(c.mode&Mr)!==tr&&N1(c),c;var Vr=Et!==null,Ue=u!==null&&u.memoizedState!==null;if(Vr!==Ue&&Vr){var rt=c.child;if(rt.flags|=ti,(c.mode&Ar)!==tr){var $e=u===null&&(c.memoizedProps.unstable_avoidThisFallback!==!0||!B);$e||l1(fc.current,Tx)?X_():A2()}}var zt=c.updateQueue;if(zt!==null&&(c.flags|=Gt),us(c),(c.mode&Mr)!==tr&&Vr){var vn=c.child;vn!==null&&(c.treeBaseDuration-=vn.treeBaseDuration)}return null}case le:return cm(c),wg(u,c),u===null&&gr(c.stateNode.containerInfo),us(c),null;case _e:var on=c.type._context;return gy(on,c),us(c),null;case Pe:{var Gr=c.type;return Mc(Gr)&&Cf(c),us(c),null}case wt:{Ph(c);var ur=c.memoizedState;if(ur===null)return us(c),null;var aa=(c.flags&pr)!==_t,Lr=ur.rendering;if(Lr===null)if(aa)_g(ur,!1);else{var $a=q7()&&(u===null||(u.flags&pr)===_t);if(!$a)for(var Bn=c.child;Bn!==null;){var Hi=u1(Bn);if(Hi!==null){aa=!0,c.flags|=pr,_g(ur,!1);var ds=Hi.updateQueue;return ds!==null&&(c.updateQueue=ds,c.flags|=Gt),c.subtreeFlags=_t,PC(c,y),Df(c,Dh(fc.current,rg)),c.child}Bn=Bn.sibling}ur.tail!==null&&Qi()>Mg()&&(c.flags|=pr,aa=!0,_g(ur,!1),c.lanes=nx)}else{if(!aa){var ui=u1(Lr);if(ui!==null){c.flags|=pr,aa=!0;var Zl=ui.updateQueue;if(Zl!==null&&(c.updateQueue=Zl,c.flags|=Gt),_g(ur,!0),ur.tail===null&&ur.tailMode==="hidden"&&!Lr.alternate&&!yo())return us(c),null}else Qi()*2-ur.renderingStartTime>Mg()&&y!==Xi&&(c.flags|=pr,aa=!0,_g(ur,!1),c.lanes=nx)}if(ur.isBackwards)Lr.sibling=c.child,c.child=Lr;else{var Oi=ur.last;Oi!==null?Oi.sibling=Lr:c.child=Lr,ur.last=Lr}}if(ur.tail!==null){var Ys=ur.tail;ur.rendering=Ys,ur.tail=Ys.sibling,ur.renderingStartTime=Qi(),Ys.sibling=null;var Es=fc.current;return aa?Es=Dh(Es,rg):Es=Rd(Es),Df(c,Es),Ys}return us(c),null}case Ot:break;case Ut:case ut:{R2(c);var Xl=c.memoizedState,zm=Xl!==null;if(u!==null){var W2=u.memoizedState,sf=W2!==null;sf!==zm&&!M&&(c.flags|=ti)}return!zm||(c.mode&Ar)===tr?us(c):vo(Zo,Xi)&&(us(c),Wa&&c.subtreeFlags&(Un|Gt)&&(c.flags|=ti)),null}case It:return null;case Qt:return null}throw new Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function l4(u,c,y){switch(Gp(c),c.tag){case Z:{var C=c.type;Mc(C)&&Cf(c);var E=c.flags;return E&xt?(c.flags=E&~xt|pr,(c.mode&Mr)!==tr&&N1(c),c):null}case ie:{c.stateNode,cm(c),Op(c),ig();var D=c.flags;return(D&xt)!==_t&&(D&pr)===_t?(c.flags=D&~xt|pr,c):null}case oe:return s1(c),null;case ve:{Ph(c);var V=c.memoizedState;if(V!==null&&V.dehydrated!==null){if(c.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Tu()}var q=c.flags;return q&xt?(c.flags=q&~xt|pr,(c.mode&Mr)!==tr&&N1(c),c):null}case wt:return Ph(c),null;case le:return cm(c),null;case _e:var ee=c.type._context;return gy(ee,c),null;case Ut:case ut:return R2(c),null;case It:return null;default:return null}}function Xx(u,c,y){switch(Gp(c),c.tag){case Z:{var C=c.type.childContextTypes;C!=null&&Cf(c);break}case ie:{c.stateNode,cm(c),Op(c),ig();break}case oe:{s1(c);break}case le:cm(c);break;case ve:Ph(c);break;case wt:Ph(c);break;case _e:var E=c.type._context;gy(E,c);break;case Ut:case ut:R2(c);break}}function Qx(u,c,y,C,E,D,V,q,ee){var pe=Array.prototype.slice.call(arguments,3);try{c.apply(y,pe)}catch(Ce){this.onError(Ce)}}var Jx=Qx;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var y2=document.createElement("react");Jx=function(c,y,C,E,D,V,q,ee,pe){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var Ce=document.createEvent("Event"),Ie=!1,Ye=!0,lt=window.event,ft=Object.getOwnPropertyDescriptor(window,"event");function ct(){y2.removeEventListener(rt,nr,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=lt)}var Cn=Array.prototype.slice.call(arguments,3);function nr(){Ie=!0,ct(),y.apply(C,Cn),Ye=!1}var Et,jr=!1,Vr=!1;function Ue($e){if(Et=$e.error,jr=!0,Et===null&&$e.colno===0&&$e.lineno===0&&(Vr=!0),$e.defaultPrevented&&Et!=null&&typeof Et=="object")try{Et._suppressLogging=!0}catch{}}var rt="react-"+(c||"invokeguardedcallback");if(window.addEventListener("error",Ue),y2.addEventListener(rt,nr,!1),Ce.initEvent(rt,!1,!1),y2.dispatchEvent(Ce),ft&&Object.defineProperty(window,"event",ft),Ie&&Ye&&(jr?Vr&&(Et=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Et=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Et)),window.removeEventListener("error",Ue),!Ie)return ct(),Qx.apply(this,arguments)}}var u4=Jx,Eg=!1,P1=null,wm={onError:function(u){Eg=!0,P1=u}};function p(u,c,y,C,E,D,V,q,ee){Eg=!1,P1=null,u4.apply(wm,arguments)}function g(){return Eg}function R(){if(Eg){var u=P1;return Eg=!1,P1=null,u}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var I=null;I=new Set;var Y=!1,te=!1,me=typeof WeakSet=="function"?WeakSet:Set,fe=null,Re=null,at=null;function st(u){p(null,function(){throw u}),R()}var bt=function(u,c){if(c.props=u.memoizedProps,c.state=u.memoizedState,u.mode&Mr)try{Gl(),c.componentWillUnmount()}finally{Xc(u)}else c.componentWillUnmount()};function jt(u,c){try{bi(No,u)}catch(y){Xr(u,c,y)}}function fn(u,c,y){try{bt(u,y)}catch(C){Xr(u,c,C)}}function Vn(u,c,y){try{y.componentDidMount()}catch(C){Xr(u,c,C)}}function xr(u,c){try{Id(u)}catch(y){Xr(u,c,y)}}function Pn(u,c){var y=u.ref;if(y!==null)if(typeof y=="function"){var C;try{if(H&&G&&u.mode&Mr)try{Gl(),C=y(null)}finally{Xc(u)}else C=y(null)}catch(E){Xr(u,c,E)}typeof C=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",gt(u))}else y.current=null}function Er(u,c,y){try{y()}catch(C){Xr(u,c,C)}}var Fr=!1;function ws(u,c){mu(u.containerInfo),fe=c,Ka();var y=Fr;return Fr=!1,y}function Ka(){for(;fe!==null;){var u=fe,c=u.child;(u.subtreeFlags&hr)!==_t&&c!==null?(c.return=u,fe=c):Vs()}}function Vs(){for(;fe!==null;){var u=fe;Ya(u);try{si(u)}catch(y){Xr(u,u.return,y)}gi();var c=u.sibling;if(c!==null){c.return=u.return,fe=c;return}fe=u.return}}function si(u){var c=u.alternate,y=u.flags;if((y&uo)!==_t){switch(Ya(u),u.tag){case K:case J:case xe:break;case Z:{if(c!==null){var C=c.memoizedProps,E=c.memoizedState,D=u.stateNode;u.type===u.elementType&&!Mu&&(D.props!==u.memoizedProps&&m("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",gt(u)||"instance"),D.state!==u.memoizedState&&m("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",gt(u)||"instance"));var V=D.getSnapshotBeforeUpdate(u.elementType===u.type?C:Bl(u.type,C),E);{var q=I;V===void 0&&!q.has(u.type)&&(q.add(u.type),m("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",gt(u)))}D.__reactInternalSnapshotBeforeUpdate=V}break}case ie:{if(Wa){var ee=u.stateNode;Kt(ee.containerInfo)}break}case oe:case Ae:case le:case Pe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}gi()}}function ya(u,c,y){var C=c.updateQueue,E=C!==null?C.lastEffect:null;if(E!==null){var D=E.next,V=D;do{if((V.tag&u)===u){var q=V.destroy;V.destroy=void 0,q!==void 0&&((u&Go)!==Bs?fx(c):(u&No)!==Bs&&fy(c),(u&Yc)!==Bs&&$i(!0),Er(c,y,q),(u&Yc)!==Bs&&$i(!1),(u&Go)!==Bs?uy():(u&No)!==Bs&&dy())}V=V.next}while(V!==D)}}function bi(u,c){var y=c.updateQueue,C=y!==null?y.lastEffect:null;if(C!==null){var E=C.next,D=E;do{if((D.tag&u)===u){(u&Go)!==Bs?ux(c):(u&No)!==Bs&&RC(c);var V=D.create;(u&Yc)!==Bs&&$i(!0),D.destroy=V(),(u&Yc)!==Bs&&$i(!1),(u&Go)!==Bs?cx():(u&No)!==Bs&&cy();{var q=D.destroy;if(q!==void 0&&typeof q!="function"){var ee=void 0;(D.tag&No)!==_t?ee="useLayoutEffect":(D.tag&Yc)!==_t?ee="useInsertionEffect":ee="useEffect";var pe=void 0;q===null?pe=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then=="function"?pe=`
It looks like you wrote `+ee+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+ee+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:pe=" You returned: "+q,m("%s must not return anything besides a function, which is used for clean-up.%s",ee,pe)}}}D=D.next}while(D!==E)}}function cs(u,c){if((c.flags&Gt)!==_t)switch(c.tag){case he:{var y=c.stateNode.passiveEffectDuration,C=c.memoizedProps,E=C.id,D=C.onPostCommit,V=bm(),q=c.alternate===null?"mount":"update";Md()&&(q="nested-update"),typeof D=="function"&&D(E,q,y,V);var ee=c.return;e:for(;ee!==null;){switch(ee.tag){case ie:var pe=ee.stateNode;pe.passiveEffectDuration+=y;break e;case he:var Ce=ee.stateNode;Ce.passiveEffectDuration+=y;break e}ee=ee.return}break}}}function Nl(u,c,y,C){if((y.flags&Yi)!==_t)switch(y.tag){case K:case J:case xe:{if(!te)if(y.mode&Mr)try{Gl(),bi(No|Co,y)}finally{Xc(y)}else bi(No|Co,y);break}case Z:{var E=y.stateNode;if(y.flags&Gt&&!te)if(c===null)if(y.type===y.elementType&&!Mu&&(E.props!==y.memoizedProps&&m("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",gt(y)||"instance"),E.state!==y.memoizedState&&m("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",gt(y)||"instance")),y.mode&Mr)try{Gl(),E.componentDidMount()}finally{Xc(y)}else E.componentDidMount();else{var D=y.elementType===y.type?c.memoizedProps:Bl(y.type,c.memoizedProps),V=c.memoizedState;if(y.type===y.elementType&&!Mu&&(E.props!==y.memoizedProps&&m("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",gt(y)||"instance"),E.state!==y.memoizedState&&m("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",gt(y)||"instance")),y.mode&Mr)try{Gl(),E.componentDidUpdate(D,V,E.__reactInternalSnapshotBeforeUpdate)}finally{Xc(y)}else E.componentDidUpdate(D,V,E.__reactInternalSnapshotBeforeUpdate)}var q=y.updateQueue;q!==null&&(y.type===y.elementType&&!Mu&&(E.props!==y.memoizedProps&&m("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",gt(y)||"instance"),E.state!==y.memoizedState&&m("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",gt(y)||"instance")),Zv(y,q,E));break}case ie:{var ee=y.updateQueue;if(ee!==null){var pe=null;if(y.child!==null)switch(y.child.tag){case oe:pe=rl(y.child.stateNode);break;case Z:pe=y.child.stateNode;break}Zv(y,ee,pe)}break}case oe:{var Ce=y.stateNode;if(c===null&&y.flags&Gt){var Ie=y.type,Ye=y.memoizedProps;Ps(Ce,Ie,Ye,y)}break}case Ae:break;case le:break;case he:{{var lt=y.memoizedProps,ft=lt.onCommit,ct=lt.onRender,Cn=y.stateNode.effectDuration,nr=bm(),Et=c===null?"mount":"update";Md()&&(Et="nested-update"),typeof ct=="function"&&ct(y.memoizedProps.id,Et,y.actualDuration,y.treeBaseDuration,y.actualStartTime,nr);{typeof ft=="function"&&ft(y.memoizedProps.id,Et,Cn,nr),Q_(y);var jr=y.return;e:for(;jr!==null;){switch(jr.tag){case ie:var Vr=jr.stateNode;Vr.effectDuration+=Cn;break e;case he:var Ue=jr.stateNode;Ue.effectDuration+=Cn;break e}jr=jr.return}}}break}case ve:{n5(u,y);break}case wt:case Pe:case Ot:case Ut:case ut:case Qt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}te||y.flags&lo&&Id(y)}function c4(u){switch(u.tag){case K:case J:case xe:{if(u.mode&Mr)try{Gl(),jt(u,u.return)}finally{Xc(u)}else jt(u,u.return);break}case Z:{var c=u.stateNode;typeof c.componentDidMount=="function"&&Vn(u,u.return,c),xr(u,u.return);break}case oe:{xr(u,u.return);break}}}function pc(u,c){var y=null;if(Wa)for(var C=u;;){if(C.tag===oe){if(y===null){y=C;try{var E=C.stateNode;c?$(E):se(C.stateNode,C.memoizedProps)}catch(V){Xr(u,u.return,V)}}}else if(C.tag===Ae){if(y===null)try{var D=C.stateNode;c?X(D):qe(D,C.memoizedProps)}catch(V){Xr(u,u.return,V)}}else if(!((C.tag===Ut||C.tag===ut)&&C.memoizedState!==null&&C!==u)){if(C.child!==null){C.child.return=C,C=C.child;continue}}if(C===u)return;for(;C.sibling===null;){if(C.return===null||C.return===u)return;y===C&&(y=null),C=C.return}y===C&&(y=null),C.sibling.return=C.return,C=C.sibling}}function Id(u){var c=u.ref;if(c!==null){var y=u.stateNode,C;switch(u.tag){case oe:C=rl(y);break;default:C=y}if(typeof c=="function"){var E;if(u.mode&Mr)try{Gl(),E=c(C)}finally{Xc(u)}else E=c(C);typeof E=="function"&&m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",gt(u))}else c.hasOwnProperty("current")||m("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",gt(u)),c.current=C}}function Fd(u){var c=u.alternate;c!==null&&(c.return=null),u.return=null}function e5(u){var c=u.alternate;c!==null&&(u.alternate=null,e5(c));{if(u.child=null,u.deletions=null,u.sibling=null,u.tag===oe){var y=u.stateNode;y!==null&&Il(y)}u.stateNode=null,u._debugOwner=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}}function I1(u){if(!!wi){var c=u.stateNode,y=c.containerInfo,C=Jt(y);ae(y,C)}}function B_(u){for(var c=u.return;c!==null;){if(Tg(c))return c;c=c.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Tg(u){return u.tag===oe||u.tag===ie||u.tag===le}function S2(u){var c=u;e:for(;;){for(;c.sibling===null;){if(c.return===null||Tg(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==oe&&c.tag!==Ae&&c.tag!==Qe;){if(c.flags&Un||c.child===null||c.tag===le)continue e;c.child.return=c,c=c.child}if(!(c.flags&Un))return c.stateNode}}function zd(u){if(!!Wa){var c=B_(u);switch(c.tag){case oe:{var y=c.stateNode;c.flags&di&&(mo(y),c.flags&=~di);var C=S2(u);x2(u,C,y);break}case ie:case le:{var E=c.stateNode.containerInfo,D=S2(u);F1(u,D,E);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function F1(u,c,y){var C=u.tag,E=C===oe||C===Ae;if(E){var D=u.stateNode;c?Sr(y,D,c):ii(y,D)}else if(C!==le){var V=u.child;if(V!==null){F1(V,c,y);for(var q=V.sibling;q!==null;)F1(q,c,y),q=q.sibling}}}function x2(u,c,y){var C=u.tag,E=C===oe||C===Ae;if(E){var D=u.stateNode;c?vu(y,D,c):Kr(y,D)}else if(C!==le){var V=u.child;if(V!==null){x2(V,c,y);for(var q=V.sibling;q!==null;)x2(q,c,y),q=q.sibling}}}var _s=null,Jc=!1;function t5(u,c,y){if(Wa){var C=c;e:for(;C!==null;){switch(C.tag){case oe:{_s=C.stateNode,Jc=!1;break e}case ie:{_s=C.stateNode.containerInfo,Jc=!0;break e}case le:{_s=C.stateNode.containerInfo,Jc=!0;break e}}C=C.return}if(_s===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");f4(u,c,y),_s=null,Jc=!1}else f4(u,c,y);Fd(y)}function Uf(u,c,y){for(var C=y.child;C!==null;)f4(u,c,C),C=C.sibling}function f4(u,c,y){switch(Bv(y),y.tag){case oe:te||Pn(y,c);case Ae:{if(Wa){var C=_s,E=Jc;_s=null,Uf(u,c,y),_s=C,Jc=E,_s!==null&&(Jc?Yu(_s,y.stateNode):Br(_s,y.stateNode))}else Uf(u,c,y);return}case Qe:{Wa&&_s!==null&&(Jc?Yb(_s,y.stateNode):Sv(_s,y.stateNode));return}case le:{if(Wa){var D=_s,V=Jc;_s=y.stateNode.containerInfo,Jc=!0,Uf(u,c,y),_s=D,Jc=V}else I1(y),Uf(u,c,y);return}case K:case J:case ye:case xe:{if(!te){var q=y.updateQueue;if(q!==null){var ee=q.lastEffect;if(ee!==null){var pe=ee.next,Ce=pe;do{var Ie=Ce,Ye=Ie.destroy,lt=Ie.tag;Ye!==void 0&&((lt&Yc)!==Bs?Er(y,c,Ye):(lt&No)!==Bs&&(fy(y),y.mode&Mr?(Gl(),Er(y,c,Ye),Xc(y)):Er(y,c,Ye),dy())),Ce=Ce.next}while(Ce!==pe)}}}Uf(u,c,y);return}case Z:{if(!te){Pn(y,c);var ft=y.stateNode;typeof ft.componentWillUnmount=="function"&&fn(y,c,ft)}Uf(u,c,y);return}case Ot:{Uf(u,c,y);return}case Ut:{if(y.mode&Ar){var ct=te;te=ct||y.memoizedState!==null,Uf(u,c,y),te=ct}else Uf(u,c,y);break}default:{Uf(u,c,y);return}}}function _m(u){u.memoizedState}function n5(u,c){if(!!ka){var y=c.memoizedState;if(y===null){var C=c.alternate;if(C!==null){var E=C.memoizedState;if(E!==null){var D=E.dehydrated;D!==null&&Oc(D)}}}}}function Bd(u){var c=u.updateQueue;if(c!==null){u.updateQueue=null;var y=u.stateNode;y===null&&(y=u.stateNode=new me),c.forEach(function(C){var E=tE.bind(null,u,C);if(!y.has(C)){if(y.add(C),Na)if(Re!==null&&at!==null)Fg(at,Re);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");C.then(E,E)}})}}function d4(u,c,y){Re=y,at=u,Ya(c),h4(c,u),Ya(c),Re=null,at=null}function mc(u,c,y){var C=c.deletions;if(C!==null)for(var E=0;E<C.length;E++){var D=C[E];try{t5(u,c,D)}catch(ee){Xr(D,c,ee)}}var V=Nh();if(c.subtreeFlags&Fa)for(var q=c.child;q!==null;)Ya(q),h4(q,u),q=q.sibling;Ya(V)}function h4(u,c,y){var C=u.alternate,E=u.flags;switch(u.tag){case K:case J:case ye:case xe:{if(mc(c,u),$d(u),E&Gt){try{ya(Yc|Co,u,u.return),bi(Yc|Co,u)}catch(Bn){Xr(u,u.return,Bn)}if(u.mode&Mr){try{Gl(),ya(No|Co,u,u.return)}catch(Bn){Xr(u,u.return,Bn)}Xc(u)}else try{ya(No|Co,u,u.return)}catch(Bn){Xr(u,u.return,Bn)}}return}case Z:{mc(c,u),$d(u),E&lo&&C!==null&&Pn(C,C.return);return}case oe:{if(mc(c,u),$d(u),E&lo&&C!==null&&Pn(C,C.return),Wa){if(u.flags&di){var D=u.stateNode;try{mo(D)}catch(Bn){Xr(u,u.return,Bn)}}if(E&Gt){var V=u.stateNode;if(V!=null){var q=u.memoizedProps,ee=C!==null?C.memoizedProps:q,pe=u.type,Ce=u.updateQueue;if(u.updateQueue=null,Ce!==null)try{Ss(V,Ce,pe,ee,q,u)}catch(Bn){Xr(u,u.return,Bn)}}}}return}case Ae:{if(mc(c,u),$d(u),E&Gt&&Wa){if(u.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Ie=u.stateNode,Ye=u.memoizedProps,lt=C!==null?C.memoizedProps:Ye;try{yf(Ie,lt,Ye)}catch(Bn){Xr(u,u.return,Bn)}}return}case ie:{if(mc(c,u),$d(u),E&Gt){if(Wa&&ka&&C!==null){var ft=C.memoizedState;if(ft.isDehydrated)try{il(c.containerInfo)}catch(Bn){Xr(u,u.return,Bn)}}if(wi){var ct=c.containerInfo,Cn=c.pendingChildren;try{ae(ct,Cn)}catch(Bn){Xr(u,u.return,Bn)}}}return}case le:{if(mc(c,u),$d(u),E&Gt&&wi){var nr=u.stateNode,Et=nr.containerInfo,jr=nr.pendingChildren;try{ae(Et,jr)}catch(Bn){Xr(u,u.return,Bn)}}return}case ve:{mc(c,u),$d(u);var Vr=u.child;if(Vr.flags&ti){var Ue=Vr.stateNode,rt=Vr.memoizedState,$e=rt!==null;if(Ue.isHidden=$e,$e){var zt=Vr.alternate!==null&&Vr.alternate.memoizedState!==null;zt||Z_()}}if(E&Gt){try{_m(u)}catch(Bn){Xr(u,u.return,Bn)}Bd(u)}return}case Ut:{var vn=C!==null&&C.memoizedState!==null;if(u.mode&Ar){var on=te;te=on||vn,mc(c,u),te=on}else mc(c,u);if($d(u),E&ti){var Gr=u.stateNode,ur=u.memoizedState,aa=ur!==null,Lr=u;if(Gr.isHidden=aa,aa&&!vn&&(Lr.mode&Ar)!==tr){fe=Lr;for(var $a=Lr.child;$a!==null;)fe=$a,z1($a),$a=$a.sibling}Wa&&pc(Lr,aa)}return}case wt:{mc(c,u),$d(u),E&Gt&&Bd(u);return}case Ot:return;default:{mc(c,u),$d(u);return}}}function $d(u){var c=u.flags;if(c&Un){try{zd(u)}catch(y){Xr(u,u.return,y)}u.flags&=~Un}c&yr&&(u.flags&=~yr)}function $_(u,c,y){Re=y,at=c,fe=u,Yh(u,c,y),Re=null,at=null}function Yh(u,c,y){for(var C=(u.mode&Ar)!==tr;fe!==null;){var E=fe,D=E.child;if(E.tag===Ut&&C){var V=E.memoizedState!==null,q=V||Y;if(q){Em(u,c,y);continue}else{var ee=E.alternate,pe=ee!==null&&ee.memoizedState!==null,Ce=pe||te,Ie=Y,Ye=te;Y=q,te=Ce,te&&!Ye&&(fe=E,r5(E));for(var lt=D;lt!==null;)fe=lt,Yh(lt,c,y),lt=lt.sibling;fe=E,Y=Ie,te=Ye,Em(u,c,y);continue}}(E.subtreeFlags&Yi)!==_t&&D!==null?(D.return=E,fe=D):Em(u,c,y)}}function Em(u,c,y){for(;fe!==null;){var C=fe;if((C.flags&Yi)!==_t){var E=C.alternate;Ya(C);try{Nl(c,E,C,y)}catch(V){Xr(C,C.return,V)}gi()}if(C===u){fe=null;return}var D=C.sibling;if(D!==null){D.return=C.return,fe=D;return}fe=C.return}}function z1(u){for(;fe!==null;){var c=fe,y=c.child;switch(c.tag){case K:case J:case ye:case xe:{if(c.mode&Mr)try{Gl(),ya(No,c,c.return)}finally{Xc(c)}else ya(No,c,c.return);break}case Z:{Pn(c,c.return);var C=c.stateNode;typeof C.componentWillUnmount=="function"&&fn(c,c.return,C);break}case oe:{Pn(c,c.return);break}case Ut:{var E=c.memoizedState!==null;if(E){C2(u);continue}break}}y!==null?(y.return=c,fe=y):C2(u)}}function C2(u){for(;fe!==null;){var c=fe;if(c===u){fe=null;return}var y=c.sibling;if(y!==null){y.return=c.return,fe=y;return}fe=c.return}}function r5(u){for(;fe!==null;){var c=fe,y=c.child;if(c.tag===Ut){var C=c.memoizedState!==null;if(C){vc(u);continue}}y!==null?(y.return=c,fe=y):vc(u)}}function vc(u){for(;fe!==null;){var c=fe;Ya(c);try{c4(c)}catch(C){Xr(c,c.return,C)}if(gi(),c===u){fe=null;return}var y=c.sibling;if(y!==null){y.return=c.return,fe=y;return}fe=c.return}}function ef(u,c,y,C){fe=c,Rg(c,u,y,C)}function Rg(u,c,y,C){for(;fe!==null;){var E=fe,D=E.child;(E.subtreeFlags&Po)!==_t&&D!==null?(D.return=E,fe=D):qh(u,c,y,C)}}function qh(u,c,y,C){for(;fe!==null;){var E=fe;if((E.flags&hi)!==_t){Ya(E);try{Kh(c,E,y,C)}catch(V){Xr(E,E.return,V)}gi()}if(E===u){fe=null;return}var D=E.sibling;if(D!==null){D.return=E.return,fe=D;return}fe=E.return}}function Kh(u,c,y,C){switch(c.tag){case K:case J:case xe:{if(c.mode&Mr){Dd();try{bi(Go|Co,c)}finally{mg(c)}}else bi(Go|Co,c);break}}}function L7(u){fe=u,M7()}function M7(){for(;fe!==null;){var u=fe,c=u.child;if((fe.flags&rr)!==_t){var y=u.deletions;if(y!==null){for(var C=0;C<y.length;C++){var E=y[C];fe=E,U_(E,u)}{var D=u.alternate;if(D!==null){var V=D.child;if(V!==null){D.child=null;do{var q=V.sibling;V.sibling=null,V=q}while(V!==null)}}}fe=u}}(u.subtreeFlags&Po)!==_t&&c!==null?(c.return=u,fe=c):D7()}}function D7(){for(;fe!==null;){var u=fe;(u.flags&hi)!==_t&&(Ya(u),kg(u),gi());var c=u.sibling;if(c!==null){c.return=u.return,fe=c;return}fe=u.return}}function kg(u){switch(u.tag){case K:case J:case xe:{u.mode&Mr?(Dd(),ya(Go|Co,u,u.return),mg(u)):ya(Go|Co,u,u.return);break}}}function U_(u,c){for(;fe!==null;){var y=fe;Ya(y),a5(y,c),gi();var C=y.child;C!==null?(C.return=y,fe=C):p4(u)}}function p4(u){for(;fe!==null;){var c=fe,y=c.sibling,C=c.return;if(e5(c),c===u){fe=null;return}if(y!==null){y.return=C,fe=y;return}fe=C}}function a5(u,c){switch(u.tag){case K:case J:case xe:{u.mode&Mr?(Dd(),ya(Go,u,c),mg(u)):ya(Go,u,c);break}}}function P7(u){switch(u.tag){case K:case J:case xe:{try{bi(No|Co,u)}catch(y){Xr(u,u.return,y)}break}case Z:{var c=u.stateNode;try{c.componentDidMount()}catch(y){Xr(u,u.return,y)}break}}}function m4(u){switch(u.tag){case K:case J:case xe:{try{bi(Go|Co,u)}catch(c){Xr(u,u.return,c)}break}}}function I7(u){switch(u.tag){case K:case J:case xe:{try{ya(No|Co,u,u.return)}catch(y){Xr(u,u.return,y)}break}case Z:{var c=u.stateNode;typeof c.componentWillUnmount=="function"&&fn(u,u.return,c);break}}}function F7(u){switch(u.tag){case K:case J:case xe:try{ya(Go|Co,u,u.return)}catch(c){Xr(u,u.return,c)}}}var Ud=0,Yo=1,Yl=2,Du=3,Hd=4;if(typeof Symbol=="function"&&Symbol.for){var tf=Symbol.for;Ud=tf("selector.component"),Yo=tf("selector.has_pseudo_class"),Yl=tf("selector.role"),Du=tf("selector.test_id"),Hd=tf("selector.text")}function z7(u){return{$$typeof:Ud,value:u}}function H_(u){return{$$typeof:Yo,value:u}}function B7(u){return{$$typeof:Yl,value:u}}function $7(u){return{$$typeof:Hd,value:u}}function U7(u){return{$$typeof:Du,value:u}}function i5(u){var c=Gu(u);if(c!=null){if(typeof c.memoizedProps["data-testname"]!="string")throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return c}else{var y=ts(u);if(y===null)throw new Error("Could not find React container within specified host subtree.");return y.stateNode.current}}function o5(u,c){switch(c.$$typeof){case Ud:if(u.type===c.value)return!0;break;case Yo:return j_(u,c.value);case Yl:if(u.tag===oe){var y=u.stateNode;if(oa(y,c.value))return!0}break;case Hd:if(u.tag===oe||u.tag===Ae){var C=ys(u);if(C!==null&&C.indexOf(c.value)>=0)return!0}break;case Du:if(u.tag===oe){var E=u.memoizedProps["data-testname"];if(typeof E=="string"&&E.toLowerCase()===c.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function N2(u){switch(u.$$typeof){case Ud:var c=We(u.value)||"Unknown";return"<"+c+">";case Yo:return":has("+(N2(u)||"")+")";case Yl:return'[role="'+u.value+'"]';case Hd:return'"'+u.value+'"';case Du:return'[data-testname="'+u.value+'"]';default:throw new Error("Invalid selector type specified.")}}function v4(u,c){for(var y=[],C=[u,0],E=0;E<C.length;){var D=C[E++],V=C[E++],q=c[V];if(!(D.tag===oe&&ga(D))){for(;q!=null&&o5(D,q);)V++,q=c[V];if(V===c.length)y.push(D);else for(var ee=D.child;ee!==null;)C.push(ee,V),ee=ee.sibling}}return y}function j_(u,c){for(var y=[u,0],C=0;C<y.length;){var E=y[C++],D=y[C++],V=c[D];if(!(E.tag===oe&&ga(E))){for(;V!=null&&o5(E,V);)D++,V=c[D];if(D===c.length)return!0;for(var q=E.child;q!==null;)y.push(q,D),q=q.sibling}}return!1}function B1(u,c){if(!qr)throw new Error("Test selector API is not supported by this renderer.");for(var y=i5(u),C=v4(y,c),E=[],D=Array.from(C),V=0;V<D.length;){var q=D[V++];if(q.tag===oe){if(ga(q))continue;E.push(q.stateNode)}else for(var ee=q.child;ee!==null;)D.push(ee),ee=ee.sibling}return E}function g4(u,c){if(!qr)throw new Error("Test selector API is not supported by this renderer.");for(var y=i5(u),C=0,E=[],D=[y,0],V=0;V<D.length;){var q=D[V++],ee=D[V++],pe=c[ee];if(!(q.tag===oe&&ga(q))&&(o5(q,pe)&&(E.push(N2(pe)),ee++,ee>C&&(C=ee)),ee<c.length))for(var Ce=q.child;Ce!==null;)D.push(Ce,ee),Ce=Ce.sibling}if(C<c.length){for(var Ie=[],Ye=C;Ye<c.length;Ye++)Ie.push(N2(c[Ye]));return`findAllNodes was able to match part of the selector:
`+(" "+E.join(" > ")+`
`)+`No matching component was found for:
`+(" "+Ie.join(" > "))}return null}function b4(u,c){if(!qr)throw new Error("Test selector API is not supported by this renderer.");for(var y=B1(u,c),C=[],E=0;E<y.length;E++)C.push(po(y[E]));for(var D=C.length-1;D>0;D--)for(var V=C[D],q=V.x,ee=q+V.width,pe=V.y,Ce=pe+V.height,Ie=D-1;Ie>=0;Ie--)if(D!==Ie){var Ye=C[Ie],lt=Ye.x,ft=lt+Ye.width,ct=Ye.y,Cn=ct+Ye.height;if(q>=lt&&pe>=ct&&ee<=ft&&Ce<=Cn){C.splice(D,1);break}else if(q===lt&&V.width===Ye.width&&!(Cn<pe)&&!(ct>Ce)){ct>pe&&(Ye.height+=ct-pe,Ye.y=pe),Cn<Ce&&(Ye.height=Ce-ct),C.splice(D,1);break}else if(pe===ct&&V.height===Ye.height&&!(ft<q)&&!(lt>ee)){lt>q&&(Ye.width+=lt-q,Ye.x=q),ft<ee&&(Ye.width=ee-lt),C.splice(D,1);break}}return C}function H7(u,c){if(!qr)throw new Error("Test selector API is not supported by this renderer.");for(var y=i5(u),C=v4(y,c),E=Array.from(C),D=0;D<E.length;){var V=E[D++];if(!ga(V)){if(V.tag===oe){var q=V.stateNode;if(Ds(q))return!0}for(var ee=V.child;ee!==null;)E.push(ee),ee=ee.sibling}}return!1}var s5=[];function j7(){qr&&s5.forEach(function(u){return u()})}function V7(u,c,y,C){if(!qr)throw new Error("Test selector API is not supported by this renderer.");var E=B1(u,c),D=_i(E,y,C),V=D.disconnect,q=D.observe,ee=D.unobserve,pe=function(){var Ce=B1(u,c);E.forEach(function(Ie){Ce.indexOf(Ie)<0&&ee(Ie)}),Ce.forEach(function(Ie){E.indexOf(Ie)<0&&q(Ie)})};return s5.push(pe),{disconnect:function(){var Ce=s5.indexOf(pe);Ce>=0&&s5.splice(Ce,1),V()}}}var V_=s.ReactCurrentActQueue;function l5(u){{var c=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,y=typeof jest<"u";return ho&&y&&c!==!1}}function G_(){{var u=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!u&&V_.current!==null&&m("The current testing environment is not configured to support act(...)"),u}}var W_=Math.ceil,Tm=s.ReactCurrentDispatcher,u5=s.ReactCurrentOwner,zr=s.ReactCurrentBatchConfig,gc=s.ReactCurrentActQueue,qo=0,y4=1,Gs=2,no=4,Zh=0,Hf=1,jf=2,Rm=3,Xh=4,$1=5,Ag=6,Cr=qo,_o=null,li=null,Ko=yt,Zo=yt,w2=Ee(yt),Eo=Zh,km=null,Qh=yt,Og=yt,Lg=yt,Am=null,ql=null,c5=0,S4=500,f5=1/0,x4=500,Jh=null;function U1(){f5=Qi()+x4}function Mg(){return f5}var zi=!1,ep=null,Om=null,Dg=!1,tp=null,_2=yt,C4=[],wl=null,G7=50,Lm=0,d5=null,h5=!1,Pg=!1,N4=50,np=0,H1=null,Mm=Dr,j1=yt,w4=!1;function nf(){return _o}function Bi(){return(Cr&(Gs|no))!==qo?Qi():(Mm!==Dr||(Mm=Qi()),Mm)}function Vf(u){var c=u.mode;if((c&Ar)===tr)return Wn;if((Cr&Gs)!==qo&&Ko!==yt)return vh(Ko);var y=Vv()!==Of;if(y){if(zr.transition!==null){var C=zr.transition;C._updatedFibers||(C._updatedFibers=new Set),C._updatedFibers.add(u)}return j1===oi&&(j1=rx()),j1}var E=rc();if(E!==oi)return E;var D=zo();return D}function _4(u){var c=u.mode;return(c&Ar)===tr?Wn:Dv()}function Xo(u,c,y,C){Y1(),w4&&m("useInsertionEffect must not schedule updates."),h5&&(Pg=!0),cl(u,y,C),(Cr&Gs)!==yt&&u===_o?K1(c):(Na&&Fv(u,c,y),w5(c),u===_o&&((Cr&Gs)===qo&&(Og=_n(Og,y)),Eo===Xh&&jd(u,Ko)),Kl(u,C),y===Wn&&Cr===qo&&(c.mode&Ar)===tr&&!gc.isBatchingLegacy&&(U1(),yh()))}function p5(u,c,y){var C=u.current;C.lanes=c,cl(u,c,y),Kl(u,y)}function W7(u){return(Cr&Gs)!==qo}function Kl(u,c){var y=u.callbackNode;Mv(u,c);var C=mi(u,u===_o?Ko:yt);if(C===yt){y!==null&&zg(y),u.callbackNode=null,u.callbackPriority=oi;return}var E=Pi(C),D=u.callbackPriority;if(D===E&&!(gc.current!==null&&y!==U4)){y==null&&D!==Wn&&m("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}y!=null&&zg(y);var V;if(E===Wn)u.tag===Ki?(gc.isBatchingLegacy!==null&&(gc.didScheduleLegacyUpdate=!0),ir(g5.bind(null,u))):eo(g5.bind(null,u)),Xn?gc.current!==null?gc.current.push(ba):Wu(function(){(Cr&(Gs|no))===qo&&ba()}):Wf(Bc,ba),V=null;else{var q;switch(L0(C)){case nc:q=Bc;break;case fl:q=za;break;case bh:q=Yt;break;case zc:q=dl;break;default:q=Yt;break}V=Wf(q,E2.bind(null,u))}u.callbackPriority=E,u.callbackNode=V}function E2(u,c){if(Zy(),Mm=Dr,j1=yt,(Cr&(Gs|no))!==qo)throw new Error("Should not already be working.");var y=u.callbackNode,C=bc();if(C&&u.callbackNode!==y)return null;var E=mi(u,u===_o?Ko:yt);if(E===yt)return null;var D=!Ic(u,E)&&!k0(u,E)&&!c,V=D?D4(u,E):G1(u,E);if(V!==Zh){if(V===jf){var q=Hr(u);q!==yt&&(E=q,V=m5(u,q))}if(V===Hf){var ee=km;throw rp(u,yt),jd(u,E),Kl(u,Qi()),ee}if(V===Ag)jd(u,E);else{var pe=!Ic(u,E),Ce=u.current.alternate;if(pe&&!E4(Ce)){if(V=G1(u,E),V===jf){var Ie=Hr(u);Ie!==yt&&(E=Ie,V=m5(u,Ie))}if(V===Hf){var Ye=km;throw rp(u,yt),jd(u,E),Kl(u,Qi()),Ye}}u.finishedWork=Ce,u.finishedLanes=E,Y_(u,V,E)}}return Kl(u,Qi()),u.callbackNode===y?E2.bind(null,u):null}function m5(u,c){var y=Am;if(xd(u)){var C=rp(u,c);C.flags|=Wi,ol(u.containerInfo)}var E=G1(u,c);if(E!==jf){var D=ql;ql=y,D!==null&&v5(D)}return E}function v5(u){ql===null?ql=u:ql.push.apply(ql,u)}function Y_(u,c,y){switch(c){case Zh:case Hf:throw new Error("Root did not complete. This is a bug in React.");case jf:{Gf(u,ql,Jh);break}case Rm:{if(jd(u,y),md(y)&&!nE()){var C=c5+S4-Qi();if(C>10){var E=mi(u,yt);if(E!==yt)break;var D=u.suspendedLanes;if(!gd(D,y)){Bi(),yd(u,D);break}u.timeoutHandle=Ml(Gf.bind(null,u,ql,Jh),C);break}}Gf(u,ql,Jh);break}case Xh:{if(jd(u,y),Tf(y))break;if(!nE()){var V=wr(u,y),q=V,ee=Qi()-q,pe=F4(ee)-ee;if(pe>10){u.timeoutHandle=Ml(Gf.bind(null,u,ql,Jh),pe);break}}Gf(u,ql,Jh);break}case $1:{Gf(u,ql,Jh);break}default:throw new Error("Unknown root exit status.")}}function E4(u){for(var c=u;;){if(c.flags&Mo){var y=c.updateQueue;if(y!==null){var C=y.stores;if(C!==null)for(var E=0;E<C.length;E++){var D=C[E],V=D.getSnapshot,q=D.value;try{if(!Jn(V(),q))return!1}catch{return!1}}}}var ee=c.child;if(c.subtreeFlags&Mo&&ee!==null){ee.return=c,c=ee;continue}if(c===u)return!0;for(;c.sibling===null;){if(c.return===null||c.return===u)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}return!0}function jd(u,c){c=gh(c,Lg),c=gh(c,Og),ix(u,c)}function g5(u){if(C1(),(Cr&(Gs|no))!==qo)throw new Error("Should not already be working.");bc();var c=mi(u,yt);if(!vo(c,Wn))return Kl(u,Qi()),null;var y=G1(u,c);if(u.tag!==Ki&&y===jf){var C=Hr(u);C!==yt&&(c=C,y=m5(u,C))}if(y===Hf){var E=km;throw rp(u,yt),jd(u,c),Kl(u,Qi()),E}if(y===Ag)throw new Error("Root did not complete. This is a bug in React.");var D=u.current.alternate;return u.finishedWork=D,u.finishedLanes=c,Gf(u,ql,Jh),Kl(u,Qi()),null}function T4(u,c){c!==yt&&(Bp(u,_n(c,Wn)),Kl(u,Qi()),(Cr&(Gs|no))===qo&&(U1(),ba()))}function R4(u){var c=rc(),y=zr.transition;try{return zr.transition=null,go(bh),u()}finally{go(c),zr.transition=y}}function q_(u,c){var y=Cr;Cr|=y4;try{return u(c)}finally{Cr=y,Cr===qo&&!gc.isBatchingLegacy&&(U1(),yh())}}function b5(u,c,y,C,E){var D=rc(),V=zr.transition;try{return zr.transition=null,go(nc),u(c,y,C,E)}finally{go(D),zr.transition=V,Cr===qo&&U1()}}function V1(u){tp!==null&&tp.tag===Ki&&(Cr&(Gs|no))===qo&&bc();var c=Cr;Cr|=y4;var y=zr.transition,C=rc();try{return zr.transition=null,go(nc),u?u():void 0}finally{go(C),zr.transition=y,Cr=c,(Cr&(Gs|no))===qo&&ba()}}function k4(){return(Cr&(Gs|no))!==qo}function A4(u){var c=Cr;Cr|=y4;var y=zr.transition,C=rc();try{zr.transition=null,go(nc),u()}finally{go(C),zr.transition=y,Cr=c,Cr===qo&&(U1(),ba())}}function T2(u,c){Be(w2,Zo,u),Zo=_n(Zo,c)}function R2(u){Zo=w2.current,Ke(w2,u)}function rp(u,c){u.finishedWork=null,u.finishedLanes=yt;var y=u.timeoutHandle;if(y!==Ms&&(u.timeoutHandle=Ms,Dl(y)),li!==null)for(var C=li.return;C!==null;){var E=C.alternate;Xx(E,C),C=C.return}_o=u;var D=ip(u.current,null);return li=D,Ko=Zo=c,Eo=Zh,km=null,Qh=yt,Og=yt,Lg=yt,Am=null,ql=null,nm(),Fs.discardPendingWarnings(),D}function O4(u,c){do{var y=li;try{if(W0(),Ax(),gi(),u5.current=null,y===null||y.return===null){Eo=Hf,km=c,li=null;return}if(H&&y.mode&Mr&&pg(y,!0),z)if(Hp(),c!==null&&typeof c=="object"&&typeof c.then=="function"){var C=c;P0(y,C,Ko)}else hy(y,c,Ko);n2(u,y.return,y,c,Ko),I4(y)}catch(E){c=E,li===y&&y!==null?(y=y.return,li=y):y=li;continue}return}while(!0)}function K_(){var u=Tm.current;return Tm.current=dg,u===null?dg:u}function L4(u){Tm.current=u}function Z_(){c5=Qi()}function k2(u){Qh=_n(u,Qh)}function X_(){Eo===Zh&&(Eo=Rm)}function A2(){(Eo===Zh||Eo===Rm||Eo===jf)&&(Eo=Xh),_o!==null&&(Uo(Qh)||Uo(Og))&&jd(_o,Ko)}function Y7(u){Eo!==Xh&&(Eo=jf),Am===null?Am=[u]:Am.push(u)}function q7(){return Eo===Zh}function G1(u,c){var y=Cr;Cr|=Gs;var C=K_();if(_o!==u||Ko!==c){if(Na){var E=u.memoizedUpdaters;E.size>0&&(Fg(u,Ko),E.clear()),oy(u,c)}Jh=O0(),rp(u,c)}Fn(c);do try{M4();break}catch(D){O4(u,D)}while(!0);if(W0(),Cr=y,L4(C),li!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Jr(),_o=null,Ko=yt,Eo}function M4(){for(;li!==null;)y5(li)}function D4(u,c){var y=Cr;Cr|=Gs;var C=K_();if(_o!==u||Ko!==c){if(Na){var E=u.memoizedUpdaters;E.size>0&&(Fg(u,Ko),E.clear()),oy(u,c)}Jh=O0(),U1(),rp(u,c)}Fn(c);do try{P4();break}catch(D){O4(u,D)}while(!0);return W0(),L4(C),Cr=y,li!==null?(Pr(),Zh):(Jr(),_o=null,Ko=yt,Eo)}function P4(){for(;li!==null&&!M0();)y5(li)}function y5(u){var c=u.alternate;Ya(u);var y;(u.mode&Mr)!==tr?(ym(u),y=N5(c,u,Zo),pg(u,!0)):y=N5(c,u,Zo),gi(),u.memoizedProps=u.pendingProps,y===null?I4(u):li=y,u5.current=null}function I4(u){var c=u;do{var y=c.alternate,C=c.return;if((c.flags&dt)===_t){Ya(c);var E=void 0;if((c.mode&Mr)===tr?E=Zx(y,c,Zo):(ym(c),E=Zx(y,c,Zo),pg(c,!1)),gi(),E!==null){li=E;return}}else{var D=l4(y,c);if(D!==null){D.flags&=ge,li=D;return}if((c.mode&Mr)!==tr){pg(c,!1);for(var V=c.actualDuration,q=c.child;q!==null;)V+=q.actualDuration,q=q.sibling;c.actualDuration=V}if(C!==null)C.flags|=dt,C.subtreeFlags=_t,C.deletions=null;else{Eo=Ag,li=null;return}}var ee=c.sibling;if(ee!==null){li=ee;return}c=C,li=c}while(c!==null);Eo===Zh&&(Eo=$1)}function Gf(u,c,y){var C=rc(),E=zr.transition;try{zr.transition=null,go(nc),S5(u,c,y,C)}finally{zr.transition=E,go(C)}return null}function S5(u,c,y,C){do bc();while(tp!==null);if(z4(),(Cr&(Gs|no))!==qo)throw new Error("Should not already be working.");var E=u.finishedWork,D=u.finishedLanes;if(TC(D),E===null)return D0(),null;if(D===yt&&m("root.finishedLanes should not be empty during a commit. This is a bug in React."),u.finishedWork=null,u.finishedLanes=yt,E===u.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");u.callbackNode=null,u.callbackPriority=oi;var V=_n(E.lanes,E.childLanes);ox(u,V),u===_o&&(_o=null,li=null,Ko=yt),((E.subtreeFlags&Po)!==_t||(E.flags&Po)!==_t)&&(Dg||(Dg=!0,wl=y,Wf(Yt,function(){return bc(),null})));var q=(E.subtreeFlags&(hr|Fa|Yi|Po))!==_t,ee=(E.flags&(hr|Fa|Yi|Po))!==_t;if(q||ee){var pe=zr.transition;zr.transition=null;var Ce=rc();go(nc);var Ie=Cr;Cr|=no,u5.current=null,ws(u,E),Xy(),d4(u,E,D),ju(u.containerInfo),u.current=E,dx(D),$_(E,u,D),hx(),as(),Cr=Ie,go(Ce),zr.transition=pe}else u.current=E,Xy();var Ye=Dg;if(Dg?(Dg=!1,tp=u,_2=D):(np=0,H1=null),V=u.pendingLanes,V===yt&&(Om=null),Ye||B4(u.current,!1),zv(E.stateNode,C),Na&&u.memoizedUpdaters.clear(),j7(),Kl(u,Qi()),c!==null)for(var lt=u.onRecoverableError,ft=0;ft<c.length;ft++){var ct=c[ft],Cn=ct.stack,nr=ct.digest;lt(ct.value,{componentStack:Cn,digest:nr})}if(zi){zi=!1;var Et=ep;throw ep=null,Et}return vo(_2,Wn)&&u.tag!==Ki&&bc(),V=u.pendingLanes,vo(V,Wn)?(x1(),u===d5?Lm++:(Lm=0,d5=u)):Lm=0,ba(),D0(),null}function bc(){if(tp!==null){var u=L0(_2),c=Sd(bh,u),y=zr.transition,C=rc();try{return zr.transition=null,go(c),J_()}finally{go(C),zr.transition=y}}return!1}function Q_(u){C4.push(u),Dg||(Dg=!0,Wf(Yt,function(){return bc(),null}))}function J_(){if(tp===null)return!1;var u=wl;wl=null;var c=tp,y=_2;if(tp=null,_2=yt,(Cr&(Gs|no))!==qo)throw new Error("Cannot flush passive effects while already rendering.");h5=!0,Pg=!1,px(y);var C=Cr;Cr|=no,L7(c.current),ef(c,c.current,y,u);{var E=C4;C4=[];for(var D=0;D<E.length;D++){var V=E[D];cs(c,V)}}py(),B4(c.current,!0),Cr=C,ba(),Pg?c===H1?np++:(np=0,H1=c):np=0,h5=!1,Pg=!1,ly(c);{var q=c.current.stateNode;q.effectDuration=0,q.passiveEffectDuration=0}return!0}function Ig(u){return Om!==null&&Om.has(u)}function eE(u){Om===null?Om=new Set([u]):Om.add(u)}function K7(u){zi||(zi=!0,ep=u)}var Z7=K7;function W1(u,c,y){var C=Vh(y,c),E=Fx(u,C,Wn),D=Wc(u,E,Wn),V=Bi();D!==null&&(cl(D,Wn,V),Kl(D,V))}function Xr(u,c,y){if(st(y),$i(!1),u.tag===ie){W1(u,u,y);return}var C=null;for(C=c;C!==null;){if(C.tag===ie){W1(C,u,y);return}else if(C.tag===Z){var E=C.type,D=C.stateNode;if(typeof E.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&!Ig(D)){var V=Vh(y,u),q=Jy(C,V,Wn),ee=Wc(C,q,Wn),pe=Bi();ee!==null&&(cl(ee,Wn,pe),Kl(ee,pe));return}}C=C.return}m(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,y)}function O2(u,c,y){var C=u.pingCache;C!==null&&C.delete(c);var E=Bi();yd(u,y),Pu(u),_o===u&&gd(Ko,y)&&(Eo===Xh||Eo===Rm&&md(Ko)&&Qi()-c5<S4?rp(u,yt):Lg=_n(Lg,y)),Kl(u,E)}function L2(u,c){c===oi&&(c=_4(u));var y=Bi(),C=Cs(u,c);C!==null&&(cl(C,c,y),Kl(C,y))}function x5(u){var c=u.memoizedState,y=oi;c!==null&&(y=c.retryLane),L2(u,y)}function tE(u,c){var y=oi,C;switch(u.tag){case ve:C=u.stateNode;var E=u.memoizedState;E!==null&&(y=E.retryLane);break;case wt:C=u.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}C!==null&&C.delete(c),L2(u,y)}function F4(u){return u<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:W_(u/1960)*1960}function Y1(){if(Lm>G7)throw Lm=0,d5=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");np>N4&&(np=0,H1=null,m("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function z4(){Fs.flushLegacyContextWarning(),Fs.flushPendingUnsafeLifecycleWarnings()}function B4(u,c){Ya(u),q1(u,sr,I7),c&&q1(u,kr,F7),q1(u,sr,P7),c&&q1(u,kr,m4),gi()}function q1(u,c,y){for(var C=u,E=null;C!==null;){var D=C.subtreeFlags&c;C!==E&&C.child!==null&&D!==_t?C=C.child:((C.flags&c)!==_t&&y(C),C.sibling!==null?C=C.sibling:C=E=C.return)}}var C5=null;function $4(u){{if((Cr&Gs)!==qo||!(u.mode&Ar))return;var c=u.tag;if(c!==ne&&c!==ie&&c!==Z&&c!==K&&c!==J&&c!==ye&&c!==xe)return;var y=gt(u)||"ReactComponent";if(C5!==null){if(C5.has(y))return;C5.add(y)}else C5=new Set([y]);var C=zn;try{Ya(u),m("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{C?Ya(u):gi()}}}var N5;{var M2=null;N5=function(u,c,y){var C=R5(M2,c);try{return L1(u,c,y)}catch(D){if(Vo()||D!==null&&typeof D=="object"&&typeof D.then=="function")throw D;if(W0(),Ax(),Xx(u,c),R5(c,C),c.mode&Mr&&ym(c),p(null,L1,null,u,c,y),g()){var E=R();typeof E=="object"&&E!==null&&E._suppressLogging&&typeof D=="object"&&D!==null&&!D._suppressLogging&&(D._suppressLogging=!0)}throw D}}}var rf=!1,D2;D2=new Set;function K1(u){if(Lf&&!Hh())switch(u.tag){case K:case J:case xe:{var c=li&&gt(li)||"Unknown",y=c;if(!D2.has(y)){D2.add(y);var C=gt(u)||"Unknown";m("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",C,c,c)}break}case Z:{rf||(m("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rf=!0);break}}}function Fg(u,c){if(Na){var y=u.memoizedUpdaters;y.forEach(function(C){Fv(u,C,c)})}}var U4={};function Wf(u,c){{var y=gc.current;return y!==null?(y.push(c),U4):ac(u,c)}}function zg(u){if(u!==U4)return wC(u)}function nE(){return gc.current!==null}function w5(u){{if(u.mode&Ar){if(!G_())return}else if(!l5()||Cr!==qo||u.tag!==K&&u.tag!==J&&u.tag!==xe)return;if(gc.current===null){var c=zn;try{Ya(u),m(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,gt(u))}finally{c?Ya(u):gi()}}}}function Pu(u){u.tag!==Ki&&G_()&&gc.current===null&&m(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function $i(u){w4=u}var To=null,Ai=null,Ws=function(u){To=u};function Dm(u){{if(To===null)return u;var c=To(u);return c===void 0?u:c.current}}function P2(u){return Dm(u)}function H4(u){{if(To===null)return u;var c=To(u);if(c===void 0){if(u!=null&&typeof u.render=="function"){var y=Dm(u.render);if(u.render!==y){var C={$$typeof:un,render:y};return u.displayName!==void 0&&(C.displayName=u.displayName),C}}return u}return c.current}}function rn(u,c){{if(To===null)return!1;var y=u.elementType,C=c.type,E=!1,D=typeof C=="object"&&C!==null?C.$$typeof:null;switch(u.tag){case Z:{typeof C=="function"&&(E=!0);break}case K:{(typeof C=="function"||D===wn)&&(E=!0);break}case J:{(D===un||D===wn)&&(E=!0);break}case ye:case xe:{(D===Rn||D===wn)&&(E=!0);break}default:return!1}if(E){var V=To(y);if(V!==void 0&&V===To(C))return!0}return!1}}function Z1(u){{if(To===null||typeof WeakSet!="function")return;Ai===null&&(Ai=new WeakSet),Ai.add(u)}}var j4=function(u,c){{if(To===null)return;var y=c.staleFamilies,C=c.updatedFamilies;bc(),V1(function(){ap(u.current,C,y)})}},X1=function(u,c){{if(u.context!==On)return;bc(),V1(function(){K4(c,u,null,null)})}};function ap(u,c,y){{var C=u.alternate,E=u.child,D=u.sibling,V=u.tag,q=u.type,ee=null;switch(V){case K:case xe:case Z:ee=q;break;case J:ee=q.render;break}if(To===null)throw new Error("Expected resolveFamily to be set during hot reload.");var pe=!1,Ce=!1;if(ee!==null){var Ie=To(ee);Ie!==void 0&&(y.has(Ie)?Ce=!0:c.has(Ie)&&(V===Z?Ce=!0:pe=!0))}if(Ai!==null&&(Ai.has(u)||C!==null&&Ai.has(C))&&(Ce=!0),Ce&&(u._debugNeedsRemount=!0),Ce||pe){var Ye=Cs(u,Wn);Ye!==null&&Xo(Ye,u,Wn,Dr)}E!==null&&!Ce&&ap(E,c,y),D!==null&&ap(D,c,y)}}var _a=function(u,c){{var y=new Set,C=new Set(c.map(function(E){return E.current}));return Ro(u.current,C,y),y}};function Ro(u,c,y){{var C=u.child,E=u.sibling,D=u.tag,V=u.type,q=null;switch(D){case K:case xe:case Z:q=V;break;case J:q=V.render;break}var ee=!1;q!==null&&c.has(q)&&(ee=!0),ee?fs(u,y):C!==null&&Ro(C,c,y),E!==null&&Ro(E,c,y)}}function fs(u,c){{var y=_5(u,c);if(y)return;for(var C=u;;){switch(C.tag){case oe:c.add(C.stateNode);return;case le:c.add(C.stateNode.containerInfo);return;case ie:c.add(C.stateNode.containerInfo);return}if(C.return===null)throw new Error("Expected to reach root first.");C=C.return}}}function _5(u,c){for(var y=u,C=!1;;){if(y.tag===oe)C=!0,c.add(y.stateNode);else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===u)return C;for(;y.sibling===null;){if(y.return===null||y.return===u)return C;y=y.return}y.sibling.return=y.return,y=y.sibling}return!1}var Bg;{Bg=!1;try{var Q1=Object.preventExtensions({})}catch{Bg=!0}}function X7(u,c,y,C){this.tag=u,this.key=y,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=c,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=C,this.flags=_t,this.subtreeFlags=_t,this.deletions=null,this.lanes=yt,this.childLanes=yt,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Bg&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var yc=function(u,c,y,C){return new X7(u,c,y,C)};function ot(u){var c=u.prototype;return!!(c&&c.isReactComponent)}function af(u){return typeof u=="function"&&!ot(u)&&u.defaultProps===void 0}function Pm(u){if(typeof u=="function")return ot(u)?Z:K;if(u!=null){var c=u.$$typeof;if(c===un)return J;if(c===Rn)return ye}return ne}function ip(u,c){var y=u.alternate;y===null?(y=yc(u.tag,c,u.key,u.mode),y.elementType=u.elementType,y.type=u.type,y.stateNode=u.stateNode,y._debugSource=u._debugSource,y._debugOwner=u._debugOwner,y._debugHookTypes=u._debugHookTypes,y.alternate=u,u.alternate=y):(y.pendingProps=c,y.type=u.type,y.flags=_t,y.subtreeFlags=_t,y.deletions=null,y.actualDuration=0,y.actualStartTime=-1),y.flags=u.flags&Ra,y.childLanes=u.childLanes,y.lanes=u.lanes,y.child=u.child,y.memoizedProps=u.memoizedProps,y.memoizedState=u.memoizedState,y.updateQueue=u.updateQueue;var C=u.dependencies;switch(y.dependencies=C===null?null:{lanes:C.lanes,firstContext:C.firstContext},y.sibling=u.sibling,y.index=u.index,y.ref=u.ref,y.selfBaseDuration=u.selfBaseDuration,y.treeBaseDuration=u.treeBaseDuration,y._debugNeedsRemount=u._debugNeedsRemount,y.tag){case ne:case K:case xe:y.type=Dm(u.type);break;case Z:y.type=P2(u.type);break;case J:y.type=H4(u.type);break}return y}function ha(u,c){u.flags&=Ra|Un;var y=u.alternate;if(y===null)u.childLanes=yt,u.lanes=c,u.child=null,u.subtreeFlags=_t,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null,u.selfBaseDuration=0,u.treeBaseDuration=0;else{u.childLanes=y.childLanes,u.lanes=y.lanes,u.child=y.child,u.subtreeFlags=_t,u.deletions=null,u.memoizedProps=y.memoizedProps,u.memoizedState=y.memoizedState,u.updateQueue=y.updateQueue,u.type=y.type;var C=y.dependencies;u.dependencies=C===null?null:{lanes:C.lanes,firstContext:C.firstContext},u.selfBaseDuration=y.selfBaseDuration,u.treeBaseDuration=y.treeBaseDuration}return u}function qt(u,c,y){var C;return u===ny?(C=Ar,c===!0&&(C|=pi,C|=Zu)):C=tr,Na&&(C|=Mr),yc(ie,null,null,C)}function Im(u,c,y,C,E,D){var V=ne,q=u;if(typeof u=="function")ot(u)?(V=Z,q=P2(q)):q=Dm(q);else if(typeof u=="string")V=oe;else{e:switch(u){case gn:return Ui(y.children,E,D,c);case De:V=Se,E|=pi,(E&Ar)!==tr&&(E|=Zu);break;case kt:return G4(y,E,D,c);case fr:return J1(y,E,D,c);case an:return eb(y,E,D,c);case Ft:return W4(y,E,D,c);case er:case Ln:case En:case Je:case St:default:{if(typeof u=="object"&&u!==null)switch(u.$$typeof){case Zt:V=_e;break e;case Pt:V=Me;break e;case un:V=J,q=H4(q);break e;case Rn:V=ye;break e;case wn:V=Ve,q=null;break e}var ee="";{(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var pe=C?gt(C):null;pe&&(ee+=`
Check the render method of \``+pe+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(u==null?u:typeof u)+"."+ee))}}}var Ce=yc(V,y,c,E);return Ce.elementType=u,Ce.type=q,Ce.lanes=D,Ce._debugOwner=C,Ce}function V4(u,c,y){var C=null;C=u._owner;var E=u.type,D=u.key,V=u.props,q=Im(E,D,V,C,c,y);return q._debugSource=u._source,q._debugOwner=u._owner,q}function Ui(u,c,y,C){var E=yc(de,u,C,c);return E.lanes=y,E}function G4(u,c,y,C){typeof u.id!="string"&&m('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof u.id);var E=yc(he,u,C,c|Mr);return E.elementType=kt,E.lanes=y,E.stateNode={effectDuration:0,passiveEffectDuration:0},E}function J1(u,c,y,C){var E=yc(ve,u,C,c);return E.elementType=fr,E.lanes=y,E}function eb(u,c,y,C){var E=yc(wt,u,C,c);return E.elementType=an,E.lanes=y,E}function W4(u,c,y,C){var E=yc(Ut,u,C,c);E.elementType=Ft,E.lanes=y;var D={isHidden:!1};return E.stateNode=D,E}function E5(u,c,y){var C=yc(Ae,u,null,c);return C.lanes=y,C}function Vd(){var u=yc(oe,null,null,tr);return u.elementType="DELETED",u}function of(u){var c=yc(Qe,null,null,tr);return c.stateNode=u,c}function T5(u,c,y){var C=u.children!==null?u.children:[],E=yc(le,C,u.key,c);return E.lanes=y,E.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},E}function R5(u,c){return u===null&&(u=yc(ne,null,null,tr)),u.tag=c.tag,u.key=c.key,u.elementType=c.elementType,u.type=c.type,u.stateNode=c.stateNode,u.return=c.return,u.child=c.child,u.sibling=c.sibling,u.index=c.index,u.ref=c.ref,u.pendingProps=c.pendingProps,u.memoizedProps=c.memoizedProps,u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.dependencies=c.dependencies,u.mode=c.mode,u.flags=c.flags,u.subtreeFlags=c.subtreeFlags,u.deletions=c.deletions,u.lanes=c.lanes,u.childLanes=c.childLanes,u.alternate=c.alternate,u.actualDuration=c.actualDuration,u.actualStartTime=c.actualStartTime,u.selfBaseDuration=c.selfBaseDuration,u.treeBaseDuration=c.treeBaseDuration,u._debugSource=c._debugSource,u._debugOwner=c._debugOwner,u._debugNeedsRemount=c._debugNeedsRemount,u._debugHookTypes=c._debugHookTypes,u}function Y4(u,c,y,C,E){this.tag=c,this.containerInfo=u,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ms,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=oi,this.eventTimes=bd(yt),this.expirationTimes=bd(Dr),this.pendingLanes=yt,this.suspendedLanes=yt,this.pingedLanes=yt,this.expiredLanes=yt,this.mutableReadLanes=yt,this.finishedLanes=yt,this.entangledLanes=yt,this.entanglements=bd(yt),this.identifierPrefix=C,this.onRecoverableError=E,ka&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var D=this.pendingUpdatersLaneMap=[],V=0;V<ud;V++)D.push(new Set)}switch(c){case ny:this._debugRootType=y?"hydrateRoot()":"createRoot()";break;case Ki:this._debugRootType=y?"hydrate()":"render()";break}}function k5(u,c,y,C,E,D,V,q,ee,pe){var Ce=new Y4(u,c,y,q,ee),Ie=qt(c,D);Ce.current=Ie,Ie.stateNode=Ce;{var Ye={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null};Ie.memoizedState=Ye}return Rh(Ie),Ce}var q4="18.2.0";function VD(u,c,y){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return AC(C),{$$typeof:ht,key:C==null?null:""+C,children:u,containerInfo:c,implementation:y}}var rE,I2;rE=!1,I2={};function F2(u){if(!u)return On;var c=N(u),y=Av(c);if(c.tag===Z){var C=c.type;if(Mc(C))return ua(c,C,y)}return y}function aE(u){var c=N(u);if(c===void 0){if(typeof u.render=="function")throw new Error("Unable to find node on an unmounted component.");var y=Object.keys(u).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+y)}var C=Io(c);return C===null?null:C.stateNode}function iE(u,c){{var y=N(u);if(y===void 0){if(typeof u.render=="function")throw new Error("Unable to find node on an unmounted component.");var C=Object.keys(u).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+C)}var E=Io(y);if(E===null)return null;if(E.mode&pi){var D=gt(y)||"Component";if(!I2[D]){I2[D]=!0;var V=zn;try{Ya(E),y.mode&pi?m("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",c,c,D):m("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",c,c,D)}finally{V?Ya(V):gi()}}}return E.stateNode}}function oE(u,c,y,C,E,D,V,q){var ee=!1,pe=null;return k5(u,c,ee,pe,y,C,E,D,V)}function sE(u,c,y,C,E,D,V,q,ee,pe){var Ce=!0,Ie=k5(y,C,Ce,u,E,D,V,q,ee);Ie.context=F2(null);var Ye=Ie.current,lt=Bi(),ft=Vf(Ye),ct=bl(lt,ft);return ct.callback=c??null,Wc(Ye,ct,ft),p5(Ie,ft,lt),Ie}function K4(u,c,y,C){_C(c,u);var E=c.current,D=Bi(),V=Vf(E);Ii(V);var q=F2(y);c.context===null?c.context=q:c.pendingContext=q,Lf&&zn!==null&&!rE&&(rE=!0,m(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,gt(zn)||"Unknown"));var ee=bl(D,V);ee.payload={element:u},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&m("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",C),ee.callback=C);var pe=Wc(E,ee,V);return pe!==null&&(Xo(pe,E,V,D),Yv(pe,E,V)),V}function A5(u){var c=u.current;if(!c.child)return null;switch(c.child.tag){case oe:return rl(c.child.stateNode);default:return c.child.stateNode}}function Z4(u){switch(u.tag){case ie:{var c=u.stateNode;if(xd(c)){var y=iy(c);T4(c,y)}break}case ve:{V1(function(){var E=Cs(u,Wn);if(E!==null){var D=Bi();Xo(E,u,Wn,D)}});var C=Wn;Fm(u,C);break}}}function O5(u,c){var y=u.memoizedState;y!==null&&y.dehydrated!==null&&(y.retryLane=Pv(y.retryLane,c))}function Fm(u,c){O5(u,c);var y=u.alternate;y&&O5(y,c)}function X4(u){if(u.tag===ve){var c=Wn,y=Cs(u,c);if(y!==null){var C=Bi();Xo(y,u,c,C)}Fm(u,c)}}function L5(u){if(u.tag===ve){var c=Dc,y=Cs(u,c);if(y!==null){var C=Bi();Xo(y,u,c,C)}Fm(u,c)}}function z2(u){if(u.tag===ve){var c=Vf(u),y=Cs(u,c);if(y!==null){var C=Bi();Xo(y,u,c,C)}Fm(u,c)}}function M5(u){var c=kl(u);return c===null?null:c.stateNode}var B2=function(u){return null};function tb(u){return B2(u)}var D5=function(u){return!1};function $2(u){return D5(u)}var P5=null,U2=null,Q4=null,I5=null,H2=null,lE=null,j2=null,F5=null,V2=null;{var z5=function(u,c,y){var C=c[y],E=ni(u)?u.slice():S({},u);return y+1===c.length?(ni(E)?E.splice(C,1):delete E[C],E):(E[C]=z5(u[C],c,y+1),E)},G2=function(u,c){return z5(u,c,0)},B5=function(u,c,y,C){var E=c[C],D=ni(u)?u.slice():S({},u);if(C+1===c.length){var V=y[C];D[V]=D[E],ni(D)?D.splice(E,1):delete D[E]}else D[E]=B5(u[E],c,y,C+1);return D},J4=function(u,c,y){if(c.length!==y.length){d("copyWithRename() expects paths of the same length");return}else for(var C=0;C<y.length-1;C++)if(c[C]!==y[C]){d("copyWithRename() expects paths to be the same except for the deepest key");return}return B5(u,c,y,0)},eN=function(u,c,y,C){if(y>=c.length)return C;var E=c[y],D=ni(u)?u.slice():S({},u);return D[E]=eN(u[E],c,y+1,C),D},tN=function(u,c,y){return eN(u,c,0,y)},nN=function(u,c){for(var y=u.memoizedState;y!==null&&c>0;)y=y.next,c--;return y};P5=function(u,c,y,C){var E=nN(u,c);if(E!==null){var D=tN(E.memoizedState,y,C);E.memoizedState=D,E.baseState=D,u.memoizedProps=S({},u.memoizedProps);var V=Cs(u,Wn);V!==null&&Xo(V,u,Wn,Dr)}},U2=function(u,c,y){var C=nN(u,c);if(C!==null){var E=G2(C.memoizedState,y);C.memoizedState=E,C.baseState=E,u.memoizedProps=S({},u.memoizedProps);var D=Cs(u,Wn);D!==null&&Xo(D,u,Wn,Dr)}},Q4=function(u,c,y,C){var E=nN(u,c);if(E!==null){var D=J4(E.memoizedState,y,C);E.memoizedState=D,E.baseState=D,u.memoizedProps=S({},u.memoizedProps);var V=Cs(u,Wn);V!==null&&Xo(V,u,Wn,Dr)}},I5=function(u,c,y){u.pendingProps=tN(u.memoizedProps,c,y),u.alternate&&(u.alternate.pendingProps=u.pendingProps);var C=Cs(u,Wn);C!==null&&Xo(C,u,Wn,Dr)},H2=function(u,c){u.pendingProps=G2(u.memoizedProps,c),u.alternate&&(u.alternate.pendingProps=u.pendingProps);var y=Cs(u,Wn);y!==null&&Xo(y,u,Wn,Dr)},lE=function(u,c,y){u.pendingProps=J4(u.memoizedProps,c,y),u.alternate&&(u.alternate.pendingProps=u.pendingProps);var C=Cs(u,Wn);C!==null&&Xo(C,u,Wn,Dr)},j2=function(u){var c=Cs(u,Wn);c!==null&&Xo(c,u,Wn,Dr)},F5=function(u){B2=u},V2=function(u){D5=u}}function rN(u){var c=Io(u);return c===null?null:c.stateNode}function uE(u){return null}function cE(){return zn}function fE(u){var c=u.findFiberByHostInstance,y=s.ReactCurrentDispatcher;return sy({bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:P5,overrideHookStateDeletePath:U2,overrideHookStateRenamePath:Q4,overrideProps:I5,overridePropsDeletePath:H2,overridePropsRenamePath:lE,setErrorHandler:F5,setSuspenseHandler:V2,scheduleUpdate:j2,currentDispatcherRef:y,findHostInstanceByFiber:rN,findFiberByHostInstance:c||uE,findHostInstancesForRefresh:_a,scheduleRefresh:j4,scheduleRoot:X1,setRefreshHandler:Ws,getCurrentFiber:cE,reconcilerVersion:q4})}return n.attemptContinuousHydration=L5,n.attemptDiscreteHydration=X4,n.attemptHydrationAtCurrentPriority=z2,n.attemptSynchronousHydration=Z4,n.batchedUpdates=q_,n.createComponentSelector=z7,n.createContainer=oE,n.createHasPseudoClassSelector=H_,n.createHydrationContainer=sE,n.createPortal=VD,n.createRoleSelector=B7,n.createTestNameSelector=U7,n.createTextSelector=$7,n.deferredUpdates=R4,n.discreteUpdates=b5,n.findAllNodes=B1,n.findBoundingRects=b4,n.findHostInstance=aE,n.findHostInstanceWithNoPortals=M5,n.findHostInstanceWithWarning=iE,n.flushControlled=A4,n.flushPassiveEffects=bc,n.flushSync=V1,n.focusWithin=H7,n.getCurrentUpdatePriority=rc,n.getFindAllNodesFailureDescription=g4,n.getPublicRootInstance=A5,n.injectIntoDevTools=fE,n.isAlreadyRendering=k4,n.observeVisibleRects=V7,n.registerMutableSourceForHydration=dm,n.runWithPriority=sx,n.shouldError=tb,n.shouldSuspend=$2,n.updateContainer=K4,n};(function(e){e.exports=gZ.exports})(vZ);const j6e=sL(vZ.exports);var DD={exports:{}},dS={};/**
* @license React
* react-reconciler-constants.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.
*/(function(){var e=1,t=4,n=16,r=536870912,i=e,s=t,l=n,f=r,d=0,m=1;dS.ConcurrentRoot=m,dS.ContinuousEventPriority=s,dS.DefaultEventPriority=l,dS.DiscreteEventPriority=i,dS.IdleEventPriority=f,dS.LegacyRoot=d})();(function(e){e.exports=dS})(DD);const GU={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let WU=!1,YU=!1;const PD=".react-konva-event",V6e=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,G6e=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,W6e={};function R7(e,t,n=W6e){if(!WU&&"zIndex"in t&&(console.warn(G6e),WU=!0),!YU&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(V6e),YU=!0)}for(var s in n)if(!GU[s]){var l=s.slice(0,2)==="on",f=n[s]!==t[s];if(l&&f){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),e.off(d,n[s])}var m=!t.hasOwnProperty(s);m&&e.setAttr(s,void 0)}var b=t._useStrictMode,S={},N=!1;const w={};for(var s in t)if(!GU[s]){var l=s.slice(0,2)==="on",T=n[s]!==t[s];if(l&&T){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),t[s]&&(w[d]=t[s])}!l&&(t[s]!==n[s]||b&&t[s]!==e.getAttr(s))&&(N=!0,S[s]=t[s])}N&&(e.setAttrs(S),Wb(e));for(var d in w)e.on(d+PD,w[d])}function Wb(e){if(!Nn.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const bZ={},Y6e={};DS.Node.prototype._applyProps=R7;function q6e(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Wb(e)}function K6e(e,t,n){let r=DS[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=DS.Group);const i={},s={};for(var l in t){var f=l.slice(0,2)==="on";f?s[l]=t[l]:i[l]=t[l]}const d=new r(i);return R7(d,s),d}function Z6e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function X6e(e,t,n){return!1}function Q6e(e){return e}function J6e(){return null}function e9e(){return null}function t9e(e,t,n,r){return Y6e}function n9e(){}function r9e(e){}function a9e(e,t){return!1}function i9e(){return bZ}function o9e(){return bZ}const s9e=setTimeout,l9e=clearTimeout,u9e=-1;function c9e(e,t){return!1}const f9e=!1,d9e=!0,h9e=!0;function p9e(e,t){t.parent===e?t.moveToTop():e.add(t),Wb(e)}function m9e(e,t){t.parent===e?t.moveToTop():e.add(t),Wb(e)}function yZ(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Wb(e)}function v9e(e,t,n){yZ(e,t,n)}function g9e(e,t){t.destroy(),t.off(PD),Wb(e)}function b9e(e,t){t.destroy(),t.off(PD),Wb(e)}function y9e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function S9e(e,t,n){}function x9e(e,t,n,r,i){R7(e,i,r)}function C9e(e){e.hide(),Wb(e)}function N9e(e){}function w9e(e,t){(t.visible==null||t.visible)&&e.show()}function _9e(e,t){}function E9e(e){}function T9e(){}const R9e=()=>DD.exports.DefaultEventPriority,k9e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:q6e,createInstance:K6e,createTextInstance:Z6e,finalizeInitialChildren:X6e,getPublicInstance:Q6e,prepareForCommit:J6e,preparePortalMount:e9e,prepareUpdate:t9e,resetAfterCommit:n9e,resetTextContent:r9e,shouldDeprioritizeSubtree:a9e,getRootHostContext:i9e,getChildHostContext:o9e,scheduleTimeout:s9e,cancelTimeout:l9e,noTimeout:u9e,shouldSetTextContent:c9e,isPrimaryRenderer:f9e,warnsIfNotActing:d9e,supportsMutation:h9e,appendChild:p9e,appendChildToContainer:m9e,insertBefore:yZ,insertInContainerBefore:v9e,removeChild:g9e,removeChildFromContainer:b9e,commitTextUpdate:y9e,commitMount:S9e,commitUpdate:x9e,hideInstance:C9e,hideTextInstance:N9e,unhideInstance:w9e,unhideTextInstance:_9e,clearContainer:E9e,detachDeletedInstance:T9e,getCurrentEventPriority:R9e,now:w3.exports.unstable_now,idlePriority:w3.exports.unstable_IdlePriority,run:w3.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var SZ="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/its-fine/dist/index.js",A9e=Object.defineProperty,O9e=Object.defineProperties,L9e=Object.getOwnPropertyDescriptors,qU=Object.getOwnPropertySymbols,M9e=Object.prototype.hasOwnProperty,D9e=Object.prototype.propertyIsEnumerable,KU=(e,t,n)=>t in e?A9e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZU=(e,t)=>{for(var n in t||(t={}))M9e.call(t,n)&&KU(e,n,t[n]);if(qU)for(var n of qU(t))D9e.call(t,n)&&KU(e,n,t[n]);return e},P9e=(e,t)=>O9e(e,L9e(t));function ID(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=t?e.return:e.child;for(;r;){const i=ID(r,t,n);if(i)return i;r=t?null:r.sibling}}function xZ(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const FD=xZ(O.exports.createContext(null));class CZ extends O.exports.Component{render(){return _(FD.Provider,{value:this._reactInternals,children:this.props.children},void 0,!1,{fileName:SZ,lineNumber:59,columnNumber:28},this)}}const{ReactCurrentOwner:I9e,ReactCurrentDispatcher:F9e}=O.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z9e(){const e=O.exports.useContext(FD);if(!e)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=O.exports.useId();return O.exports.useMemo(()=>{var r;return(r=I9e.current)!=null?r:ID(e,!1,i=>{let s=i.memoizedState;for(;s;){if(s.memoizedState===t)return!0;s=s.next}})},[e,t])}const HN=[],XU=new WeakMap;function B9e(){var e;const t=z9e();HN.splice(0,HN.length),ID(t,!0,n=>{var r;const i=(r=n.type)==null?void 0:r._context;i&&i!==FD&&HN.push(xZ(i))});for(const n of HN){const r=(e=F9e.current)==null?void 0:e.readContext(n);XU.set(n,r)}return O.exports.useMemo(()=>HN.reduce((n,r)=>i=>O.exports.createElement(n,null,O.exports.createElement(r.Provider,P9e(ZU({},i),{value:XU.get(r)}))),n=>_(CZ,{...ZU({},n)},void 0,!1,{fileName:SZ,lineNumber:144,columnNumber:34},this)),[])}var Tw="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-konva/es/ReactKonvaCore.js";function $9e(e){const t=ke.useRef();return ke.useLayoutEffect(()=>{t.current=e}),t.current}const U9e=e=>{const t=ke.useRef(),n=ke.useRef(),r=ke.useRef(),i=$9e(e),s=B9e(),l=f=>{const{forwardedRef:d}=e;!d||(typeof d=="function"?d(f):d.current=f)};return ke.useLayoutEffect(()=>(n.current=new DS.Stage({width:e.width,height:e.height,container:t.current}),l(n.current),r.current=aw.createContainer(n.current,DD.exports.LegacyRoot,!1,null),aw.updateContainer(_(s,{children:e.children},void 0,!1,{fileName:Tw,lineNumber:50,columnNumber:39},globalThis),r.current),()=>{!DS.isBrowser||(l(null),aw.updateContainer(null,r.current,null),n.current.destroy())}),[]),ke.useLayoutEffect(()=>{l(n.current),R7(n.current,e,i),aw.updateContainer(_(s,{children:e.children},void 0,!1,{fileName:Tw,lineNumber:63,columnNumber:39},globalThis),r.current,null)}),_("div",{ref:t,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title},void 0,!1,{fileName:Tw,lineNumber:65,columnNumber:12},globalThis)},Ok="Layer",H9e="Group",BO="Rect",$O="Circle",j9e="Line",Lk="Image",V9e="Transformer",aw=j6e(k9e);aw.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:1,version:ke.version,rendererPackageName:"react-konva"});const G9e=ke.forwardRef((e,t)=>_(CZ,{children:_(U9e,{...e,forwardedRef:t},void 0,!1,{fileName:Tw,lineNumber:107,columnNumber:51},globalThis)},void 0,!1,{fileName:Tw,lineNumber:107,columnNumber:12},globalThis)),W9e=e=>{const{r:t,g:n,b:r,a:i}=e;return`rgba(${t}, ${n}, ${r}, ${i})`},NZ=e=>{const{r:t,g:n,b:r}=e;return`rgba(${t}, ${n}, ${r})`},Y9e=ia(e=>e.inpainting,e=>{const{lines:t,maskColor:n}=e;return{lines:t,maskColorString:NZ(n)}}),q9e=ia([e=>e.inpainting,e=>e.options,ch],(e,t,n)=>{const{tool:r,brushSize:i,maskColor:s,shouldInvertMask:l,shouldShowMask:f,shouldShowCheckboardTransparency:d,lines:m,pastLines:b,futureLines:S,shouldShowBoundingBoxFill:N}=e,{showDualDisplay:w}=t;return{tool:r,brushSize:i,maskColor:s,shouldInvertMask:l,shouldShowMask:f,shouldShowCheckboardTransparency:d,canUndo:b.length>0,canRedo:S.length>0,isMaskEmpty:m.length===0,activeTabName:n,showDualDisplay:w,shouldShowBoundingBoxFill:N}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),K9e=ia(e=>e.inpainting,e=>{const{tool:t,brushSize:n,maskColor:r,shouldInvertMask:i,shouldShowMask:s,shouldShowCheckboardTransparency:l,imageToInpaint:f,stageScale:d,shouldShowBoundingBox:m,shouldShowBoundingBoxFill:b,isDrawing:S,shouldLockBoundingBox:N,boundingBoxDimensions:w}=e;return{tool:t,brushSize:n,shouldInvertMask:i,shouldShowMask:s,shouldShowCheckboardTransparency:l,maskColor:r,imageToInpaint:f,stageScale:d,shouldShowBoundingBox:m,shouldShowBoundingBoxFill:b,isDrawing:S,shouldLockBoundingBox:N,boundingBoxDimensions:w}},{memoizeOptions:{resultEqualityCheck:(e,t)=>{const{imageToInpaint:n,...r}=e,{imageToInpaint:i,...s}=t;return ra.isEqual(r,s)&&n==i}}});var Z9e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/components/InpaintingCanvasLines.tsx";const X9e=()=>{const{lines:e,maskColorString:t}=tn(Y9e);return _(Ci,{children:e.map((n,r)=>_(j9e,{points:n.points,stroke:t,strokeWidth:n.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:n.tool==="brush"?"source-over":"destination-out"},r,!1,{fileName:Z9e,lineNumber:18,columnNumber:9},void 0))},void 0,!1)};var Q9e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/components/InpaintingCanvasBrushPreview.tsx";const J9e=ia(e=>e.inpainting,e=>{const{cursorPosition:t,canvasDimensions:{width:n,height:r},shouldShowBrushPreview:i,brushSize:s,maskColor:l,tool:f,shouldShowBrush:d}=e;return{cursorPosition:t,width:n,height:r,shouldShowBrushPreview:i,brushSize:s,maskColorString:NZ(l),tool:f,shouldShowBrush:d}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),e7e=()=>{const{cursorPosition:e,width:t,height:n,shouldShowBrushPreview:r,brushSize:i,maskColorString:s,tool:l,shouldShowBrush:f}=tn(J9e);return!f||!(e||r)?null:_($O,{x:e?e.x:t/2,y:e?e.y:n/2,radius:i/2,fill:s,listening:!1,globalCompositeOperation:l==="eraser"?"destination-out":"source-over"},void 0,!1,{fileName:Q9e,lineNumber:59,columnNumber:5},void 0)};var QU="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/components/InpaintingCanvasBrushPreviewOutline.tsx";const t7e=ia(e=>e.inpainting,e=>{const{cursorPosition:t,canvasDimensions:{width:n,height:r},shouldShowBrushPreview:i,brushSize:s,stageScale:l,shouldShowBrush:f}=e;return{cursorPosition:t,width:n,height:r,shouldShowBrushPreview:i,brushSize:s,strokeWidth:1/l,shouldShowBrush:f}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),n7e=()=>{const{cursorPosition:e,width:t,height:n,shouldShowBrushPreview:r,brushSize:i,strokeWidth:s,shouldShowBrush:l}=tn(t7e);return!l||!(e||r)?null:_(Ci,{children:[_($O,{x:e?e.x:t/2,y:e?e.y:n/2,radius:i/2,stroke:"rgba(0,0,0,1)",strokeWidth:s,strokeEnabled:!0,listening:!1},void 0,!1,{fileName:QU,lineNumber:55,columnNumber:7},void 0),_($O,{x:e?e.x:t/2,y:e?e.y:n/2,radius:1,fill:"rgba(0,0,0,1)",listening:!1},void 0,!1,{fileName:QU,lineNumber:64,columnNumber:7},void 0)]},void 0,!0)},r7e=()=>{const{tool:e,lines:t,cursorPosition:n,brushSize:r,canvasDimensions:{width:i,height:s},maskColor:l,shouldInvertMask:f,shouldShowMask:d,shouldShowBrushPreview:m,shouldShowCheckboardTransparency:b,imageToInpaint:S,shouldShowBrush:N,shouldShowBoundingBoxFill:w,shouldLockBoundingBox:T,stageScale:L,pastLines:M,futureLines:B,needsCache:F,isDrawing:z}=tn(H=>H.inpainting);return O.exports.useLayoutEffect(()=>{!ev.current||ev.current.cache({x:0,y:0,width:i,height:s})},[t,n,i,s,e,r,l,f,d,m,b,S,N,w,T,L,M,B,F,z]),O.exports.useEffect(()=>{const H=window.setTimeout(()=>{!ev.current||ev.current.cache({x:0,y:0,width:i,height:s})},0);return()=>{window.clearTimeout(H)}}),null},FT=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:Math.floor(r.x),y:Math.floor(r.y)}},a7e=4;var Rw="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/components/InpaintingBoundingBoxPreview.tsx";const wZ=ia(e=>e.inpainting,e=>{const{boundingBoxCoordinate:t,boundingBoxDimensions:n,boundingBoxPreviewFill:r,canvasDimensions:i,stageScale:s,imageToInpaint:l,shouldLockBoundingBox:f}=e;return{boundingBoxCoordinate:t,boundingBoxDimensions:n,boundingBoxPreviewFillString:W9e(r),canvasDimensions:i,stageScale:s,imageToInpaint:l,dash:a7e/s,strokeWidth:1/s,shouldLockBoundingBox:f}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),i7e=()=>{const{boundingBoxCoordinate:e,boundingBoxDimensions:t,boundingBoxPreviewFillString:n,canvasDimensions:r}=tn(wZ);return _(H9e,{children:[_(BO,{x:0,y:0,height:r.height,width:r.width,fill:n},void 0,!1,{fileName:Rw,lineNumber:71,columnNumber:7},void 0),_(BO,{x:e.x,y:e.y,width:t.width,height:t.height,fill:"rgb(255,255,255)",listening:!1,globalCompositeOperation:"destination-out"},void 0,!1,{fileName:Rw,lineNumber:78,columnNumber:7},void 0)]},void 0,!0,{fileName:Rw,lineNumber:70,columnNumber:5},void 0)},o7e=()=>{const e=ar(),{boundingBoxCoordinate:t,boundingBoxDimensions:n,strokeWidth:r,stageScale:i,imageToInpaint:s,shouldLockBoundingBox:l}=tn(wZ),f=O.exports.useRef(null),d=O.exports.useRef(null);O.exports.useEffect(()=>{!f.current||!d.current||(f.current.nodes([d.current]),f.current.getLayer()?.batchDraw())},[l]),O.exports.useEffect(()=>()=>{const L=bp.current?.container();!L||(L.style.cursor="unset")},[l]);const m=64*i,b=O.exports.useCallback(L=>{e(X$({x:Math.floor(L.target.x()),y:Math.floor(L.target.y())}))},[e]),S=O.exports.useCallback(L=>{if(!s)return t;const{x:M,y:B}=L,F=s.width-n.width,z=s.height-n.height,H=Math.floor(ra.clamp(M,0,F*i)),G=Math.floor(ra.clamp(B,0,z*i));return{x:H,y:G}},[t,n,s,i]),N=O.exports.useCallback(()=>{if(!d.current)return;const L=d.current,M=L.scaleX(),B=L.scaleY(),F=Math.round(L.width()*M),z=Math.round(L.height()*B),H=Math.round(L.x()),G=Math.round(L.y());e(QN({width:F,height:z})),e(X$({x:H,y:G})),L.scaleX(1),L.scaleY(1)},[e]),w=O.exports.useCallback((L,M,B)=>{const F=L.x%m,z=L.y%m,H=W$(M.x,m)+F,G=W$(M.y,m)+z,K=Math.abs(M.x-H),Z=Math.abs(M.y-G),ne=K<m,ie=Z<m;let le={...L};return ne&&!ie?le={x:H,y:L.y}:!ne&&ie?le={x:L.x,y:G}:ne&&ie&&(le={x:H,y:G}),le},[m]),T=O.exports.useCallback((L,M)=>!s||M.width+M.x>s.width*i||M.height+M.y>s.height*i||M.x<0||M.y<0?L:M,[s,i]);return _(Ci,{children:[_(BO,{x:t.x,y:t.y,width:n.width,height:n.height,ref:d,stroke:"white",strokeWidth:r,listening:!l,onMouseEnter:L=>{const M=L?.target?.getStage()?.container();!M||(M.style.cursor=l?"none":"move")},onMouseLeave:L=>{const M=L?.target?.getStage()?.container();!M||(M.style.cursor=l?"none":"default")},draggable:!l,onDragMove:b,dragBoundFunc:S,onTransform:N},void 0,!1,{fileName:Rw,lineNumber:274,columnNumber:7},void 0),_(V9e,{ref:f,anchorCornerRadius:3,anchorFill:"rgba(212,216,234,1)",anchorSize:15,anchorStroke:"rgb(42,42,42)",borderDash:[4,4],borderStroke:"black",rotateEnabled:!1,borderEnabled:!0,flipEnabled:!1,ignoreStroke:!0,keepRatio:!1,listening:!l,enabledAnchors:l?[]:void 0,boundBoxFunc:T,anchorDragBoundFunc:w},void 0,!1,{fileName:Rw,lineNumber:298,columnNumber:7},void 0)]},void 0,!0)},s7e=ia([e=>e.options,e=>e.inpainting,ch],(e,t,n)=>{const{shouldShowMask:r,cursorPosition:i,shouldLockBoundingBox:s}=t;return{activeTabName:n,shouldShowMask:r,isCursorOnCanvas:Boolean(i),shouldLockBoundingBox:s}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),l7e=()=>{const e=ar(),{shouldShowMask:t,activeTabName:n,isCursorOnCanvas:r,shouldLockBoundingBox:i}=tn(s7e),s=O.exports.useRef(!1),l=O.exports.useRef(null);return O.exports.useEffect(()=>{const f=d=>{if(!(!["x"," "].includes(d.key)||n!=="inpainting"||!t)){if(!r){l.current||(l.current=d),s.current=!1;return}if(d.stopPropagation(),d.preventDefault(),!d.repeat){if(l.current||(s.current=!0,l.current=d),!s.current&&d.type==="keyup"){s.current=!0,l.current=d;return}switch(d.key){case"x":{e(cNe());break}case" ":{if(!t)break;d.type==="keydown"&&e(JN(!1)),e(qq(!i));break}}l.current=d,s.current=!0}}};return document.addEventListener("keydown",f),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",f)}},[e,n,t,r,i]),null};var Qs="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx";let bp,ev,v9;const u7e=()=>{const e=ar(),{tool:t,brushSize:n,shouldInvertMask:r,shouldShowMask:i,shouldShowCheckboardTransparency:s,maskColor:l,imageToInpaint:f,stageScale:d,shouldShowBoundingBox:m,shouldShowBoundingBoxFill:b,isDrawing:S,shouldLockBoundingBox:N,boundingBoxDimensions:w}=tn(K9e),T=Ub();bp=O.exports.useRef(null),ev=O.exports.useRef(null),v9=O.exports.useRef(null);const L=O.exports.useRef({x:0,y:0}),M=O.exports.useRef(!1),[B,F]=O.exports.useState(null);O.exports.useEffect(()=>{if(f){const ne=new Image;ne.onload=()=>{v9.current=ne,F(ne)},ne.onerror=()=>{T({title:"Unable to Load Image",description:`Image ${f.url} failed to load`,status:"error",isClosable:!0}),e(yD())},ne.src=f.url}else F(null)},[f,e,d,T]);const z=O.exports.useCallback(()=>{if(!bp.current)return;const ne=FT(bp.current);!ne||!ev.current||!N||(e(JN(!0)),e(q$({tool:t,strokeWidth:n/2,points:[ne.x,ne.y]})))},[e,n,t,N]),H=O.exports.useCallback(()=>{if(!bp.current)return;const ne=FT(bp.current);!ne||(e(Z$(ne)),!(!ev.current||!N)&&(L.current=ne,S&&(M.current=!0,e(K$([ne.x,ne.y])))))},[e,S,N]),G=O.exports.useCallback(()=>{if(!M.current&&S&&bp.current){const ne=FT(bp.current);if(!ne||!ev.current||!N)return;e(K$([ne.x,ne.y]))}else M.current=!1;e(JN(!1))},[e,S,N]),K=O.exports.useCallback(()=>{e(Z$(null)),e(JN(!1))},[e]),Z=O.exports.useCallback(ne=>{if(ne.evt.buttons===1){if(!bp.current)return;const ie=FT(bp.current);if(!ie||!ev.current||!N)return;e(JN(!0)),e(q$({tool:t,strokeWidth:n/2,points:[ie.x,ie.y]}))}},[e,n,t,N]);return _("div",{className:"inpainting-canvas-wrapper",tabIndex:1,children:[_("div",{className:"inpainting-alerts",children:[!i&&_("div",{style:{pointerEvents:"none"},children:"Mask Hidden (H)"},void 0,!1,{fileName:Qs,lineNumber:240,columnNumber:11},void 0),r&&_("div",{style:{pointerEvents:"none"},children:"Mask Inverted (Shift+M)"},void 0,!1,{fileName:Qs,lineNumber:243,columnNumber:11},void 0),!N&&_("div",{style:{pointerEvents:"none"},children:`Transforming Bounding Box ${w.width}x${w.height} (M)`},void 0,!1,{fileName:Qs,lineNumber:246,columnNumber:11},void 0)]},void 0,!0,{fileName:Qs,lineNumber:238,columnNumber:7},void 0),B&&_(G9e,{width:Math.floor(B.width*d),height:Math.floor(B.height*d),scale:{x:d,y:d},onMouseDown:z,onMouseMove:H,onMouseEnter:Z,onMouseUp:G,onMouseOut:K,onMouseLeave:K,style:{cursor:i?"none":"default"},className:"inpainting-canvas-stage checkerboard",ref:bp,children:[!r&&!s&&_(Ok,{name:"image-layer",listening:!1,children:_(Lk,{listening:!1,image:B},void 0,!1,{fileName:Qs,lineNumber:269,columnNumber:15},void 0)},void 0,!1,{fileName:Qs,lineNumber:268,columnNumber:13},void 0),i&&_(Ci,{children:[_(Ok,{name:"mask-layer",listening:!1,opacity:s||r?1:l.a,ref:ev,children:[_(X9e,{},void 0,!1,{fileName:Qs,lineNumber:284,columnNumber:17},void 0),N&&_(e7e,{},void 0,!1,{fileName:Qs,lineNumber:286,columnNumber:43},void 0),r&&_(Lk,{image:B,listening:!1,globalCompositeOperation:"source-in"},void 0,!1,{fileName:Qs,lineNumber:289,columnNumber:19},void 0),!r&&s&&_(Lk,{image:B,listening:!1,globalCompositeOperation:"source-out"},void 0,!1,{fileName:Qs,lineNumber:296,columnNumber:19},void 0)]},void 0,!0,{fileName:Qs,lineNumber:274,columnNumber:15},void 0),i&&_(Ok,{children:[b&&m&&_(i7e,{},void 0,!1,{fileName:Qs,lineNumber:306,columnNumber:21},void 0),m&&_(o7e,{},void 0,!1,{fileName:Qs,lineNumber:308,columnNumber:45},void 0),N&&_(n7e,{},void 0,!1,{fileName:Qs,lineNumber:310,columnNumber:21},void 0)]},void 0,!0,{fileName:Qs,lineNumber:304,columnNumber:17},void 0)]},void 0,!0)]},void 0,!0,{fileName:Qs,lineNumber:253,columnNumber:9},void 0),_(r7e,{},void 0,!1,{fileName:Qs,lineNumber:318,columnNumber:7},void 0),_(l7e,{},void 0,!1,{fileName:Qs,lineNumber:319,columnNumber:7},void 0)]},void 0,!0,{fileName:Qs,lineNumber:237,columnNumber:5},void 0)};var JU="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/InpaintingCanvasPlaceholder.tsx";const c7e=()=>{const e=ar(),{needsCache:t,imageToInpaint:n}=tn(i=>i.inpainting),r=O.exports.useRef(null);return O.exports.useLayoutEffect(()=>{window.setTimeout(()=>{if(!r.current||!n)return;const i=r.current.clientWidth,s=r.current.clientHeight,l=Math.min(1,Math.min(i/n.width,s/n.height));e(uNe(l))},0)},[e,n,t]),_("div",{ref:r,className:"inpainting-canvas-area",children:_(lC,{thickness:"2px",speed:"1s",size:"xl"},void 0,!1,{fileName:JU,lineNumber:31,columnNumber:7},void 0)},void 0,!1,{fileName:JU,lineNumber:30,columnNumber:5},void 0)};function f7e(e){return vr({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(e)}var tC="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-colorful/dist/index.module.js";function k7(){return(k7=Object.assign||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}).apply(this,arguments)}function _Z(e,t){if(e==null)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(i[n]=e[n]);return i}function UO(e){var t=O.exports.useRef(e),n=O.exports.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var nC=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},kw=function(e){return"touches"in e},HO=function(e){return e&&e.ownerDocument.defaultView||self},eH=function(e,t,n){var r=e.getBoundingClientRect(),i=kw(t)?function(s,l){for(var f=0;f<s.length;f++)if(s[f].identifier===l)return s[f];return s[0]}(t.touches,n):t;return{left:nC((i.pageX-(r.left+HO(e).pageXOffset))/r.width),top:nC((i.pageY-(r.top+HO(e).pageYOffset))/r.height)}},tH=function(e){!kw(e)&&e.preventDefault()},zD=ke.memo(function(e){var t=e.onMove,n=e.onKey,r=_Z(e,["onMove","onKey"]),i=O.exports.useRef(null),s=UO(t),l=UO(n),f=O.exports.useRef(null),d=O.exports.useRef(!1),m=O.exports.useMemo(function(){var w=function(M){tH(M),(kw(M)?M.touches.length>0:M.buttons>0)&&i.current?s(eH(i.current,M,f.current)):L(!1)},T=function(){return L(!1)};function L(M){var B=d.current,F=HO(i.current),z=M?F.addEventListener:F.removeEventListener;z(B?"touchmove":"mousemove",w),z(B?"touchend":"mouseup",T)}return[function(M){var B=M.nativeEvent,F=i.current;if(F&&(tH(B),!function(H,G){return G&&!kw(H)}(B,d.current)&&F)){if(kw(B)){d.current=!0;var z=B.changedTouches||[];z.length&&(f.current=z[0].identifier)}F.focus(),s(eH(F,B,f.current)),L(!0)}},function(M){var B=M.which||M.keyCode;B<37||B>40||(M.preventDefault(),l({left:B===39?.05:B===37?-.05:0,top:B===40?.05:B===38?-.05:0}))},L]},[l,s]),b=m[0],S=m[1],N=m[2];return O.exports.useEffect(function(){return N},[N]),_("div",{...k7({},r,{onTouchStart:b,onMouseDown:b,className:"react-colorful__interactive",ref:i,onKeyDown:S,tabIndex:0,role:"slider"})},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:1890},this)}),A7=function(e){return e.filter(Boolean).join(" ")},BD=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,s=A7(["react-colorful__pointer",e.className]);return _("div",{className:s,style:{top:100*i+"%",left:100*n+"%"},children:_("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:2275},this)},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:2202},this)},Rc=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},EZ=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Rc(e.h),s:Rc(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Rc(i/2),a:Rc(r,2)}},jO=function(e){var t=EZ(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Mk=function(e){var t=EZ(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},d7e=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var s=Math.floor(t),l=r*(1-n),f=r*(1-(t-s)*n),d=r*(1-(1-t+s)*n),m=s%6;return{r:Rc(255*[r,f,l,l,d,r][m]),g:Rc(255*[d,r,r,f,l,l][m]),b:Rc(255*[l,l,d,r,r,f][m]),a:Rc(i,2)}},h7e=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,s=Math.max(t,n,r),l=s-Math.min(t,n,r),f=l?s===t?(n-r)/l:s===n?2+(r-t)/l:4+(t-n)/l:0;return{h:Rc(60*(f<0?f+6:f)),s:Rc(s?l/s*100:0),v:Rc(s/255*100),a:i}},p7e=ke.memo(function(e){var t=e.hue,n=e.onChange,r=A7(["react-colorful__hue",e.className]);return ke.createElement("div",{className:r},ke.createElement(zD,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:nC(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Rc(t),"aria-valuemax":"360","aria-valuemin":"0"},ke.createElement(BD,{className:"react-colorful__hue-pointer",left:t/360,color:jO({h:t,s:100,v:100,a:1})})))}),m7e=ke.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:jO({h:t.h,s:100,v:100,a:1})};return ke.createElement("div",{className:"react-colorful__saturation",style:r},ke.createElement(zD,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:nC(t.s+100*i.left,0,100),v:nC(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Rc(t.s)+"%, Brightness "+Rc(t.v)+"%"},ke.createElement(BD,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:jO(t)})))}),TZ=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function v7e(e,t,n){var r=UO(n),i=O.exports.useState(function(){return e.toHsva(t)}),s=i[0],l=i[1],f=O.exports.useRef({color:t,hsva:s});O.exports.useEffect(function(){if(!e.equal(t,f.current.color)){var m=e.toHsva(t);f.current={hsva:m,color:t},l(m)}},[t,e]),O.exports.useEffect(function(){var m;TZ(s,f.current.hsva)||e.equal(m=e.fromHsva(s),f.current.color)||(f.current={hsva:s,color:m},r(m))},[s,e,r]);var d=O.exports.useCallback(function(m){l(function(b){return Object.assign({},b,m)})},[]);return[s,d]}var g7e=typeof window<"u"?O.exports.useLayoutEffect:O.exports.useEffect,b7e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},nH=new Map,y7e=function(e){g7e(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!nH.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,nH.set(t,n);var r=b7e();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},S7e=function(e){var t=e.className,n=e.hsva,r=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Mk(Object.assign({},n,{a:0}))+", "+Mk(Object.assign({},n,{a:1}))+")"},s=A7(["react-colorful__alpha",t]),l=Rc(100*n.a);return ke.createElement("div",{className:s},_("div",{className:"react-colorful__alpha-gradient",style:i},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:9388},this),ke.createElement(zD,{onMove:function(f){r({a:f.left})},onKey:function(f){r({a:nC(n.a+f.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},ke.createElement(BD,{className:"react-colorful__alpha-pointer",left:n.a,color:Mk(n)})))},x7e=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,s=e.onChange,l=_Z(e,["className","colorModel","color","onChange"]),f=O.exports.useRef(null);y7e(f);var d=v7e(n,i,s),m=d[0],b=d[1],S=A7(["react-colorful",t]);return ke.createElement("div",k7({},l,{ref:f,className:S}),_(m7e,{hsva:m,onChange:b},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:10029},this),_(p7e,{hue:m.h,onChange:b},void 0,!1,{fileName:tC,lineNumber:1,columnNumber:10068},this),ke.createElement(S7e,{hsva:m,onChange:b,className:"react-colorful__last-control"}))},C7e={defaultColor:{r:0,g:0,b:0,a:1},toHsva:h7e,fromHsva:d7e,equal:TZ},N7e=function(e){return ke.createElement(x7e,k7({},e,{colorModel:C7e}))},w7e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIColorPicker.tsx";const _7e=e=>{const{styleClass:t,...n}=e;return _(N7e,{className:`invokeai__color-picker ${t}`,...n},void 0,!1,{fileName:w7e,lineNumber:12,columnNumber:5},void 0)};var na="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/InpaintingControls.tsx";const E7e=()=>{const{tool:e,brushSize:t,maskColor:n,shouldInvertMask:r,shouldShowMask:i,canUndo:s,canRedo:l,isMaskEmpty:f,activeTabName:d,showDualDisplay:m}=tn(q9e),b=ar(),S=Ub(),[N,w]=O.exports.useState(!1);$r("[",oe=>{oe.preventDefault(),t-5>0?B(t-5):B(1)},{enabled:d==="inpainting"&&i},[d,i,t]),$r("]",oe=>{oe.preventDefault(),B(t+5)},{enabled:d==="inpainting"&&i},[d,i,t]),$r("shift+[",oe=>{oe.preventDefault(),K({...n,a:Math.max(n.a-.05,0)})},{enabled:d==="inpainting"&&i},[d,i,n.a]),$r("shift+]",oe=>{oe.preventDefault(),K({...n,a:Math.min(n.a+.05,100)})},{enabled:d==="inpainting"&&i},[d,i,n.a]),$r("e",oe=>{oe.preventDefault(),!(d!=="inpainting"||!i)&&L()},{enabled:d==="inpainting"&&i},[d,i]),$r("b",oe=>{oe.preventDefault(),M()},{enabled:d==="inpainting"&&i},[d,i]),$r("m",oe=>{oe.preventDefault(),b(vNe())},{enabled:d==="inpainting"&&i},[d,i]),$r("cmd+z, control+z",oe=>{oe.preventDefault(),Z()},{enabled:d==="inpainting"&&i&&s},[d,i,s]),$r("cmd+shift+z, control+shift+z, control+y, cmd+y",oe=>{oe.preventDefault(),ne()},{enabled:d==="inpainting"&&i&&l},[d,i,l]),$r("h",oe=>{oe.preventDefault(),F()},{enabled:d==="inpainting"},[d,i]),$r("shift+m",oe=>{oe.preventDefault(),z()},{enabled:d==="inpainting"&&i},[d,r,i]),$r("shift+c",oe=>{oe.preventDefault(),T(),S({title:"Mask Cleared",status:"success",duration:2500,isClosable:!0})},{enabled:d==="inpainting"&&i&&!f},[d,f,i]),$r("shift+j",()=>{ie()},[m]);const T=()=>{b(oNe())},L=()=>b(Y$("eraser")),M=()=>b(Y$("brush")),B=oe=>{b(pk(!0)),b(nNe(oe))},F=()=>b(aNe(!i)),z=()=>b(rNe(!r)),H=()=>{b(pk(!0))},G=()=>{b(pk(!1))},K=oe=>{b(iNe(oe))},Z=()=>b(sNe()),ne=()=>b(lNe()),ie=()=>{b(q7e(!m)),b(NS(!0))};return _("div",{className:"inpainting-settings",children:[_("div",{className:"inpainting-buttons-group",children:[_(c6,{trigger:"hover",onOpen:H,onClose:G,triggerComponent:_(Ta,{"aria-label":"Brush (B)",tooltip:"Brush (B)",icon:_(Pq,{},void 0,!1,{fileName:na,lineNumber:303,columnNumber:21},void 0),onClick:M,"data-selected":e==="brush",isDisabled:!i},void 0,!1,{fileName:na,lineNumber:300,columnNumber:13},void 0),children:_("div",{className:"inpainting-slider-numberinput",children:[_(p9,{label:"Brush Size",value:t,onChange:B,min:1,max:200,width:"100px",focusThumbOnChange:!1,isDisabled:!i},void 0,!1,{fileName:na,lineNumber:311,columnNumber:13},void 0),_(kc,{value:t,onChange:B,width:"80px",min:1,max:999,isDisabled:!i},void 0,!1,{fileName:na,lineNumber:321,columnNumber:13},void 0)]},void 0,!0,{fileName:na,lineNumber:310,columnNumber:11},void 0)},void 0,!1,{fileName:na,lineNumber:295,columnNumber:9},void 0),_(Ta,{"aria-label":"Eraser (E)",tooltip:"Eraser (E)",icon:_(y4e,{},void 0,!1,{fileName:na,lineNumber:334,columnNumber:17},void 0),onClick:L,"data-selected":e==="eraser",isDisabled:!i},void 0,!1,{fileName:na,lineNumber:331,columnNumber:9},void 0)]},void 0,!0,{fileName:na,lineNumber:294,columnNumber:7},void 0),_("div",{className:"inpainting-buttons-group",children:[_(c6,{trigger:"click",onOpen:()=>w(!0),onClose:()=>w(!1),triggerComponent:_(Ta,{"aria-label":"Mask Options",tooltip:"Mask Options",icon:_(x4e,{},void 0,!1,{fileName:na,lineNumber:349,columnNumber:21},void 0),cursor:"pointer","data-selected":N},void 0,!1,{fileName:na,lineNumber:346,columnNumber:13},void 0),children:_("div",{className:"inpainting-button-dropdown",children:[_(Ta,{"aria-label":"Hide/Show Mask (H)",tooltip:"Hide/Show Mask (H)","data-selected":!i,icon:i?_(FK,{size:22},void 0,!1,{fileName:na,lineNumber:361,columnNumber:34},void 0):_(IK,{size:22},void 0,!1,{fileName:na,lineNumber:361,columnNumber:57},void 0),onClick:F},void 0,!1,{fileName:na,lineNumber:356,columnNumber:13},void 0),_(Ta,{tooltip:"Invert Mask Display (Shift+M)","aria-label":"Invert Mask Display (Shift+M)","data-selected":r,icon:r?_(JCe,{size:22},void 0,!1,{fileName:na,lineNumber:371,columnNumber:19},void 0):_(n4e,{size:22},void 0,!1,{fileName:na,lineNumber:373,columnNumber:19},void 0),onClick:z,isDisabled:!i},void 0,!1,{fileName:na,lineNumber:365,columnNumber:13},void 0),_(c6,{trigger:"hover",placement:"right",styleClass:"inpainting-color-picker",triggerComponent:_(Ta,{"aria-label":"Mask Color",tooltip:"Mask Color",icon:_(w4e,{},void 0,!1,{fileName:na,lineNumber:387,columnNumber:25},void 0),isDisabled:!i,cursor:"pointer"},void 0,!1,{fileName:na,lineNumber:384,columnNumber:17},void 0),children:_(_7e,{color:n,onChange:K},void 0,!1,{fileName:na,lineNumber:393,columnNumber:15},void 0)},void 0,!1,{fileName:na,lineNumber:379,columnNumber:13},void 0)]},void 0,!0,{fileName:na,lineNumber:355,columnNumber:11},void 0)},void 0,!1,{fileName:na,lineNumber:341,columnNumber:9},void 0),_(Ta,{"aria-label":"Clear Mask (Shift+C)",tooltip:"Clear Mask (Shift+C)",icon:_(E4e,{size:18,style:{transform:"rotate(45deg)"}},void 0,!1,{fileName:na,lineNumber:403,columnNumber:17},void 0),onClick:T,isDisabled:f||!i},void 0,!1,{fileName:na,lineNumber:400,columnNumber:9},void 0)]},void 0,!0,{fileName:na,lineNumber:340,columnNumber:7},void 0),_("div",{className:"inpainting-buttons-group",children:[_(Ta,{"aria-label":"Undo",tooltip:"Undo",icon:_(M4e,{},void 0,!1,{fileName:na,lineNumber:412,columnNumber:17},void 0),onClick:Z,isDisabled:!s||!i},void 0,!1,{fileName:na,lineNumber:409,columnNumber:9},void 0),_(Ta,{"aria-label":"Redo",tooltip:"Redo",icon:_(R4e,{},void 0,!1,{fileName:na,lineNumber:419,columnNumber:17},void 0),onClick:ne,isDisabled:!l||!i},void 0,!1,{fileName:na,lineNumber:416,columnNumber:9},void 0)]},void 0,!0,{fileName:na,lineNumber:408,columnNumber:7},void 0),_("div",{className:"inpainting-buttons-group",children:_(Ta,{"aria-label":"Clear Image",tooltip:"Clear Image",icon:_(L4e,{size:16},void 0,!1,{fileName:na,lineNumber:429,columnNumber:17},void 0),onClick:()=>{b(yD())}},void 0,!1,{fileName:na,lineNumber:426,columnNumber:9},void 0)},void 0,!1,{fileName:na,lineNumber:425,columnNumber:7},void 0),_(Ta,{"aria-label":"Split Layout (Shift+J)",tooltip:"Split Layout (Shift+J)",icon:_(f7e,{},void 0,!1,{fileName:na,lineNumber:436,columnNumber:15},void 0),"data-selected":m,onClick:ie},void 0,!1,{fileName:na,lineNumber:433,columnNumber:7},void 0)]},void 0,!0,{fileName:na,lineNumber:293,columnNumber:5},void 0)};var qm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/InpaintingDisplay.tsx";const T7e=ia([e=>e.inpainting,e=>e.options],(e,t)=>{const{needsCache:n,imageToInpaint:r}=e,{showDualDisplay:i}=t;return{needsCache:n,showDualDisplay:i,imageToInpaint:r}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),R7e=()=>{const e=ar(),{showDualDisplay:t,needsCache:n,imageToInpaint:r}=tn(T7e);return O.exports.useLayoutEffect(()=>{const s=ra.debounce(()=>e(NS(!0)),250);return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[e]),_("div",{className:t?"workarea-split-view":"workarea-single-view",children:[_("div",{className:"workarea-split-view-left",children:[r?_("div",{className:"inpainting-main-area",children:[_(E7e,{},void 0,!1,{fileName:qm,lineNumber:45,columnNumber:7},void 0),_("div",{className:"inpainting-canvas-area",children:n?_(c7e,{},void 0,!1,{fileName:qm,lineNumber:47,columnNumber:23},void 0):_(u7e,{},void 0,!1,{fileName:qm,lineNumber:47,columnNumber:57},void 0)},void 0,!1,{fileName:qm,lineNumber:46,columnNumber:7},void 0)]},void 0,!0,{fileName:qm,lineNumber:44,columnNumber:5},void 0):_(Xq,{},void 0,!1,{fileName:qm,lineNumber:51,columnNumber:5},void 0)," "]},void 0,!0,{fileName:qm,lineNumber:60,columnNumber:7},void 0),t&&_("div",{className:"workarea-split-view-right",children:_(xD,{},void 0,!1,{fileName:qm,lineNumber:63,columnNumber:11},void 0)},void 0,!1,{fileName:qm,lineNumber:62,columnNumber:9},void 0)]},void 0,!0,{fileName:qm,lineNumber:55,columnNumber:5},void 0)};var Dk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/Inpainting/index.tsx";function k7e(){return _(RD,{optionsPanel:_(LEe,{},void 0,!1,{fileName:Dk,lineNumber:8,columnNumber:21},this),styleClass:"inpainting-workarea-overrides",children:_(R7e,{},void 0,!1,{fileName:Dk,lineNumber:11,columnNumber:7},this)},void 0,!1,{fileName:Dk,lineNumber:7,columnNumber:5},this)}var Bu="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function A7e(){const e=tn(n=>n.options.showAdvancedOptions),t={seed:{header:_(sD,{},void 0,!1,{fileName:Bu,lineNumber:27,columnNumber:15},this),feature:Tc.SEED,options:_(lD,{},void 0,!1,{fileName:Bu,lineNumber:29,columnNumber:16},this)},variations:{header:_(cD,{},void 0,!1,{fileName:Bu,lineNumber:32,columnNumber:15},this),feature:Tc.VARIATIONS,options:_(fD,{},void 0,!1,{fileName:Bu,lineNumber:34,columnNumber:16},this)},face_restore:{header:_(aD,{},void 0,!1,{fileName:Bu,lineNumber:37,columnNumber:15},this),feature:Tc.FACE_CORRECTION,options:_(g7,{},void 0,!1,{fileName:Bu,lineNumber:39,columnNumber:16},this)},upscale:{header:_(uD,{},void 0,!1,{fileName:Bu,lineNumber:42,columnNumber:15},this),feature:Tc.UPSCALE,options:_(b7,{},void 0,!1,{fileName:Bu,lineNumber:44,columnNumber:16},this)},other:{header:_(wq,{},void 0,!1,{fileName:Bu,lineNumber:47,columnNumber:15},this),feature:Tc.OTHER,options:_(_q,{},void 0,!1,{fileName:Bu,lineNumber:49,columnNumber:16},this)}};return _(SD,{children:[_(gD,{},void 0,!1,{fileName:Bu,lineNumber:55,columnNumber:7},this),_(vD,{},void 0,!1,{fileName:Bu,lineNumber:56,columnNumber:7},this),_(pD,{},void 0,!1,{fileName:Bu,lineNumber:57,columnNumber:7},this),_(dD,{},void 0,!1,{fileName:Bu,lineNumber:58,columnNumber:7},this),e?_(mD,{accordionInfo:t},void 0,!1,{fileName:Bu,lineNumber:60,columnNumber:9},this):null]},void 0,!0,{fileName:Bu,lineNumber:54,columnNumber:5},this)}var Pk="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImageDisplay.tsx";const O7e=()=>_("div",{className:"workarea-single-view",children:_("div",{className:"text-to-image-area",children:_(xD,{},void 0,!1,{fileName:Pk,lineNumber:7,columnNumber:9},void 0)},void 0,!1,{fileName:Pk,lineNumber:6,columnNumber:7},void 0)},void 0,!1,{fileName:Pk,lineNumber:5,columnNumber:5},void 0);var Ik="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/TextToImage/index.tsx";function L7e(){return _(RD,{optionsPanel:_(A7e,{},void 0,!1,{fileName:Ik,lineNumber:7,columnNumber:35},this),children:_(O7e,{},void 0,!1,{fileName:Ik,lineNumber:8,columnNumber:7},this)},void 0,!1,{fileName:Ik,lineNumber:7,columnNumber:5},this)}var El="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const m3={txt2img:{title:_(j3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:22,columnNumber:12},void 0),workarea:_(L7e,{},void 0,!1,{fileName:El,lineNumber:23,columnNumber:15},void 0),tooltip:"Text To Image"},img2img:{title:_(D3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:27,columnNumber:12},void 0),workarea:_(TEe,{},void 0,!1,{fileName:El,lineNumber:28,columnNumber:15},void 0),tooltip:"Image To Image"},inpainting:{title:_(I3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:32,columnNumber:12},void 0),workarea:_(k7e,{},void 0,!1,{fileName:El,lineNumber:33,columnNumber:15},void 0),tooltip:"Inpainting"},outpainting:{title:_($3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:37,columnNumber:12},void 0),workarea:_(L3e,{},void 0,!1,{fileName:El,lineNumber:38,columnNumber:15},void 0),tooltip:"Outpainting"},nodes:{title:_(z3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:42,columnNumber:12},void 0),workarea:_(O3e,{},void 0,!1,{fileName:El,lineNumber:43,columnNumber:15},void 0),tooltip:"Nodes"},postprocess:{title:_(H3e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:El,lineNumber:47,columnNumber:12},void 0),workarea:_(M3e,{},void 0,!1,{fileName:El,lineNumber:48,columnNumber:15},void 0),tooltip:"Post Processing"}},D_=ra.map(m3,(e,t)=>t);[...D_];function M7e(){const e=tn(i=>i.options.activeTab),t=ar();$r("1",()=>{t(Jd(0))}),$r("2",()=>{t(Jd(1))}),$r("3",()=>{t(Jd(2))}),$r("4",()=>{t(Jd(3))}),$r("5",()=>{t(Jd(4))}),$r("6",()=>{t(Jd(5))});const n=()=>{const i=[];return Object.keys(m3).forEach(s=>{i.push(_(el,{hasArrow:!0,label:m3[s].tooltip,placement:"right",children:_(cY,{children:m3[s].title},void 0,!1,{fileName:El,lineNumber:100,columnNumber:11},this)},s,!1,{fileName:El,lineNumber:94,columnNumber:9},this))}),i},r=()=>{const i=[];return Object.keys(m3).forEach(s=>{i.push(_(lY,{className:"app-tabs-panel",children:m3[s].workarea},s,!1,{fileName:El,lineNumber:111,columnNumber:9},this))}),i};return _(sY,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:i=>{t(Jd(i))},children:[_("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:El,lineNumber:130,columnNumber:7},this),_(uY,{className:"app-tabs-panels",children:r()},void 0,!1,{fileName:El,lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:El,lineNumber:120,columnNumber:5},this)}const RZ={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,hiresFix:!1,img2imgStrength:.75,maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunFacetool:!1,facetoolStrength:.8,facetoolType:"gfpgan",codeformerFidelity:.75,shouldRandomizeSeed:!0,showAdvancedOptions:!0,activeTab:0,shouldShowImageDetails:!1,showDualDisplay:!0,shouldShowOptionsPanel:!0,shouldPinOptionsPanel:!0,optionsPanelScrollPosition:0,shouldHoldOptionsPanelOpen:!1,shouldLoopback:!1},D7e=RZ,kZ=m7({name:"options",initialState:D7e,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=l6(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setFacetoolStrength:(e,t)=>{e.facetoolStrength=t.payload},setCodeformerFidelity:(e,t)=>{e.codeformerFidelity=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setHiresFix:(e,t)=>{e.hiresFix=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,i={...e,[n]:r};return n==="seed"&&(i.shouldRandomizeSeed=!1),i},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllTextToImageParameters:(e,t)=>{const{sampler:n,prompt:r,seed:i,variations:s,steps:l,cfg_scale:f,threshold:d,perlin:m,seamless:b,hires_fix:S,width:N,height:w}=t.payload.image;s&&s.length>0?(e.seedWeights=i9(s),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,i&&(e.seed=i,e.shouldRandomizeSeed=!1),r&&(e.prompt=l6(r)),n&&(e.sampler=n),l&&(e.steps=l),f&&(e.cfgScale=f),d&&(e.threshold=d),typeof d>"u"&&(e.threshold=0),m&&(e.perlin=m),typeof m>"u"&&(e.perlin=0),typeof b=="boolean"&&(e.seamless=b),typeof S=="boolean"&&(e.hiresFix=S),N&&(e.width=N),w&&(e.height=w)},setAllImageToImageParameters:(e,t)=>{const{type:n,strength:r,fit:i,init_image_path:s,mask_image_path:l}=t.payload.image;n==="img2img"&&(s&&(e.initialImage=s),l&&(e.maskPath=l),r&&(e.img2imgStrength=r),typeof i=="boolean"&&(e.shouldFitToWidthHeight=i))},setAllParameters:(e,t)=>{const{type:n,sampler:r,prompt:i,seed:s,variations:l,steps:f,cfg_scale:d,threshold:m,perlin:b,seamless:S,hires_fix:N,width:w,height:T,strength:L,fit:M,init_image_path:B,mask_image_path:F}=t.payload.image;n==="img2img"&&(B&&(e.initialImage=B),F&&(e.maskPath=F),L&&(e.img2imgStrength=L),typeof M=="boolean"&&(e.shouldFitToWidthHeight=M)),l&&l.length>0?(e.seedWeights=i9(l),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1),i&&(e.prompt=l6(i)),r&&(e.sampler=r),f&&(e.steps=f),d&&(e.cfgScale=d),m&&(e.threshold=m),typeof m>"u"&&(e.threshold=0),b&&(e.perlin=b),typeof b>"u"&&(e.perlin=0),typeof S=="boolean"&&(e.seamless=S),typeof N=="boolean"&&(e.hiresFix=N),w&&(e.width=w),T&&(e.height=T)},resetOptionsState:e=>({...e,...RZ}),setShouldRunFacetool:(e,t)=>{e.shouldRunFacetool=t.payload},setFacetoolType:(e,t)=>{e.facetoolType=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload},setShowAdvancedOptions:(e,t)=>{e.showAdvancedOptions=t.payload},setActiveTab:(e,t)=>{typeof t.payload=="number"?e.activeTab=t.payload:e.activeTab=D_.indexOf(t.payload)},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShowDualDisplay:(e,t)=>{e.showDualDisplay=t.payload},setInitialImage:(e,t)=>{e.initialImage=t.payload},clearInitialImage:e=>{e.initialImage=void 0},setShouldPinOptionsPanel:(e,t)=>{e.shouldPinOptionsPanel=t.payload},setShouldShowOptionsPanel:(e,t)=>{e.shouldShowOptionsPanel=t.payload},setOptionsPanelScrollPosition:(e,t)=>{e.optionsPanelScrollPosition=t.payload},setShouldHoldOptionsPanelOpen:(e,t)=>{e.shouldHoldOptionsPanelOpen=t.payload},setShouldLoopback:(e,t)=>{e.shouldLoopback=t.payload}}}),{setPrompt:$D,setIterations:P7e,setSteps:AZ,setCfgScale:OZ,setThreshold:I7e,setPerlin:F7e,setHeight:LZ,setWidth:MZ,setSampler:DZ,setSeed:P_,setSeamless:PZ,setHiresFix:IZ,setImg2imgStrength:FZ,setFacetoolStrength:m6,setFacetoolType:v6,setCodeformerFidelity:zZ,setUpscalingLevel:VO,setUpscalingStrength:GO,setMaskPath:WO,resetSeed:Wke,resetOptionsState:Yke,setShouldFitToWidthHeight:BZ,setParameter:qke,setShouldGenerateVariations:z7e,setSeedWeights:$Z,setVariationAmount:B7e,setAllParameters:$7e,setShouldRunFacetool:U7e,setShouldRunESRGAN:H7e,setShouldRandomizeSeed:j7e,setShowAdvancedOptions:V7e,setActiveTab:Jd,setShouldShowImageDetails:G7e,setAllTextToImageParameters:W7e,setAllImageToImageParameters:Y7e,setShowDualDisplay:q7e,setInitialImage:a_,clearInitialImage:YO,setShouldShowOptionsPanel:qO,setShouldPinOptionsPanel:K7e,setOptionsPanelScrollPosition:Z7e,setShouldHoldOptionsPanelOpen:X7e,setShouldLoopback:Q7e}=kZ.actions,J7e=kZ.reducer,mv=Object.create(null);mv.open="0";mv.close="1";mv.ping="2";mv.pong="3";mv.message="4";mv.upgrade="5";mv.noop="6";const g6=Object.create(null);Object.keys(mv).forEach(e=>{g6[mv[e]]=e});const eRe={type:"error",data:"parser error"},tRe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nRe=typeof ArrayBuffer=="function",rRe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,UZ=({type:e,data:t},n,r)=>tRe&&t instanceof Blob?n?r(t):rH(t,r):nRe&&(t instanceof ArrayBuffer||rRe(t))?n?r(t):rH(new Blob([t]),r):r(mv[e]+(t||"")),rH=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},aH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iw=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<aH.length;e++)iw[aH.charCodeAt(e)]=e;const aRe=e=>{let t=e.length*.75,n=e.length,r,i=0,s,l,f,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),b=new Uint8Array(m);for(r=0;r<n;r+=4)s=iw[e.charCodeAt(r)],l=iw[e.charCodeAt(r+1)],f=iw[e.charCodeAt(r+2)],d=iw[e.charCodeAt(r+3)],b[i++]=s<<2|l>>4,b[i++]=(l&15)<<4|f>>2,b[i++]=(f&3)<<6|d&63;return m},iRe=typeof ArrayBuffer=="function",HZ=(e,t)=>{if(typeof e!="string")return{type:"message",data:jZ(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:oRe(e.substring(1),t)}:g6[n]?e.length>1?{type:g6[n],data:e.substring(1)}:{type:g6[n]}:eRe},oRe=(e,t)=>{if(iRe){const n=aRe(e);return jZ(n,t)}else return{base64:!0,data:e}},jZ=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},VZ=String.fromCharCode(30),sRe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,l)=>{UZ(s,!1,f=>{r[l]=f,++i===n&&t(r.join(VZ))})})},lRe=(e,t)=>{const n=e.split(VZ),r=[];for(let i=0;i<n.length;i++){const s=HZ(n[i],t);if(r.push(s),s.type==="error")break}return r},GZ=4;function Ls(e){if(e)return uRe(e)}function uRe(e){for(var t in Ls.prototype)e[t]=Ls.prototype[t];return e}Ls.prototype.on=Ls.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ls.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ls.prototype.off=Ls.prototype.removeListener=Ls.prototype.removeAllListeners=Ls.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,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Ls.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,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Ls.prototype.emitReserved=Ls.prototype.emit;Ls.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ls.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Tb=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function WZ(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const cRe=setTimeout,fRe=clearTimeout;function O7(e,t){t.useNativeTimers?(e.setTimeoutFn=cRe.bind(Tb),e.clearTimeoutFn=fRe.bind(Tb)):(e.setTimeoutFn=setTimeout.bind(Tb),e.clearTimeoutFn=clearTimeout.bind(Tb))}const dRe=1.33;function hRe(e){return typeof e=="string"?pRe(e):Math.ceil((e.byteLength||e.size)*dRe)}function pRe(e){let t=0,n=0;for(let r=0,i=e.length;r<i;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 mRe extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class YZ extends Ls{constructor(t){super(),this.writable=!1,O7(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new mRe(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=HZ(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const qZ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),KO=64,vRe={};let iH=0,zT=0,oH;function sH(e){let t="";do t=qZ[e%KO]+t,e=Math.floor(e/KO);while(e>0);return t}function KZ(){const e=sH(+new Date);return e!==oH?(iH=0,oH=e):e+"."+sH(iH++)}for(;zT<KO;zT++)vRe[qZ[zT]]=zT;function ZZ(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gRe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}let XZ=!1;try{XZ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const bRe=XZ;function QZ(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||bRe))return new XMLHttpRequest}catch{}if(!t)try{return new Tb[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function yRe(){}const SRe=function(){return new QZ({xdomain:!1}).responseType!=null}();class xRe extends YZ{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=SRe&&!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)};lRe(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,sRe(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]=KZ()),!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 i=ZZ(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new cv(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}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 cv extends Ls{constructor(t,n){super(),O7(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=WZ(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 QZ(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=cv.requestsCount++,cv.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=yRe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete cv.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()}}cv.requestsCount=0;cv.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lH);else if(typeof addEventListener=="function"){const e="onpagehide"in Tb?"pagehide":"unload";addEventListener(e,lH,!1)}}function lH(){for(let e in cv.requests)cv.requests.hasOwnProperty(e)&&cv.requests[e].abort()}const CRe=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),BT=Tb.WebSocket||Tb.MozWebSocket,uH=!0,NRe="arraybuffer",cH=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class wRe extends YZ{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=cH?{}:WZ(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=uH&&!cH?n?new BT(t,n):new BT(t):new BT(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||NRe,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],i=n===t.length-1;UZ(r,this.supportsBinary,s=>{const l={};try{uH&&this.ws.send(s)}catch{}i&&CRe(()=>{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]=KZ()),this.supportsBinary||(t.b64=1);const i=ZZ(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!BT}}const _Re={websocket:wRe,polling:xRe},ERe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,TRe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ZO(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 i=ERe.exec(e||""),s={},l=14;for(;l--;)s[TRe[l]]=i[l]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=RRe(s,s.path),s.queryKey=kRe(s,s.query),s}function RRe(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 kRe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}class Cb extends Ls{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=ZO(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=ZO(n.host).host),O7(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=gRe(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=GZ,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 _Re[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Cb.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;Cb.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",S=>{if(!r)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Cb.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(b(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const N=new Error("probe error");N.transport=n.name,this.emitReserved("upgradeError",N)}}))};function s(){r||(r=!0,b(),n.close(),n=null)}const l=S=>{const N=new Error("probe error: "+S);N.transport=n.name,s(),this.emitReserved("upgradeError",N)};function f(){l("transport closed")}function d(){l("socket closed")}function m(S){n&&S.name!==n.name&&s()}const b=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",f),this.off("close",d),this.off("upgrading",m)};n.once("open",i),n.once("error",l),n.once("close",f),this.once("close",d),this.once("upgrading",m),n.open()}onOpen(){if(this.readyState="open",Cb.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 i=this.writeBuffer[r].data;if(i&&(n+=hRe(i)),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,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),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){Cb.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 i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}Cb.protocol=GZ;function ARe(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=ZO(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 s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const ORe=typeof ArrayBuffer=="function",LRe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,JZ=Object.prototype.toString,MRe=typeof Blob=="function"||typeof Blob<"u"&&JZ.call(Blob)==="[object BlobConstructor]",DRe=typeof File=="function"||typeof File<"u"&&JZ.call(File)==="[object FileConstructor]";function UD(e){return ORe&&(e instanceof ArrayBuffer||LRe(e))||MRe&&e instanceof Blob||DRe&&e instanceof File}function b6(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(b6(e[n]))return!0;return!1}if(UD(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return b6(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&b6(e[n]))return!0;return!1}function PRe(e){const t=[],n=e.data,r=e;return r.data=XO(n,t),r.attachments=t.length,{packet:r,buffers:t}}function XO(e,t){if(!e)return e;if(UD(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]=XO(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]=XO(e[r],t));return n}return e}function IRe(e,t){return e.data=QO(e.data,t),e.attachments=void 0,e}function QO(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]=QO(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=QO(e[n],t));return e}const FRe=5;var va;(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"})(va||(va={}));class zRe{constructor(t){this.replacer=t}encode(t){return(t.type===va.EVENT||t.type===va.ACK)&&b6(t)?(t.type=t.type===va.EVENT?va.BINARY_EVENT:va.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===va.BINARY_EVENT||t.type===va.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=PRe(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class HD extends Ls{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===va.BINARY_EVENT||n.type===va.BINARY_ACK?(this.reconstructor=new BRe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(UD(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(va[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===va.BINARY_EVENT||r.type===va.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(HD.isPayloadValid(r.type,s))r.data=s;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 va.CONNECT:return typeof n=="object";case va.DISCONNECT:return n===void 0;case va.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case va.EVENT:case va.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case va.ACK:case va.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class BRe{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=IRe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const $Re=Object.freeze(Object.defineProperty({__proto__:null,protocol:FRe,get PacketType(){return va},Encoder:zRe,Decoder:HD},Symbol.toStringTag,{value:"Module"}));function yp(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const URe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eX extends Ls{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=[yp(t,"open",this.onopen.bind(this)),yp(t,"packet",this.onpacket.bind(this)),yp(t,"error",this.onerror.bind(this)),yp(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(URe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:va.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const l=this.ids++,f=n.pop();this._registerAckCallback(l,f),r.id=l}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!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 i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},r);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...s])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:va.CONNECT,data:t})}):this.packet({type:va.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 va.CONNECT:if(t.data&&t.data.sid){const i=t.data.sid;this.onconnect(i)}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 va.EVENT:case va.BINARY_EVENT:this.onevent(t);break;case va.ACK:case va.BINARY_ACK:this.onack(t);break;case va.DISCONNECT:this.ondisconnect();break;case va.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(...i){r||(r=!0,n.packet({type:va.ACK,id:t,data:i}))}}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:va.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 yC(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}yC.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};yC.prototype.reset=function(){this.attempts=0};yC.prototype.setMin=function(e){this.ms=e};yC.prototype.setMax=function(e){this.max=e};yC.prototype.setJitter=function(e){this.jitter=e};class JO extends Ls{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,O7(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 yC({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||$Re;this.encoder=new i.Encoder,this.decoder=new i.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 Cb(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=yp(n,"open",function(){r.onopen(),t&&t()}),s=yp(n,"error",l=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",l),t?t(l):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const l=this._timeout;l===0&&i();const f=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},l);this.opts.autoUnref&&f.unref(),this.subs.push(function(){clearTimeout(f)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(yp(t,"ping",this.onping.bind(this)),yp(t,"data",this.ondata.bind(this)),yp(t,"error",this.onerror.bind(this)),yp(t,"close",this.onclose.bind(this)),yp(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 eX(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(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):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 jN={};function y6(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=ARe(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,l=jN[i]&&s in jN[i].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let d;return f?d=new JO(r,t):(jN[i]||(jN[i]=new JO(r,t)),d=jN[i]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(y6,{Manager:JO,Socket:eX,io:y6,connect:y6});let $T;const HRe=new Uint8Array(16);function jRe(){if(!$T&&($T=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$T))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $T(HRe)}const ou=[];for(let e=0;e<256;++e)ou.push((e+256).toString(16).slice(1));function VRe(e,t=0){return(ou[e[t+0]]+ou[e[t+1]]+ou[e[t+2]]+ou[e[t+3]]+"-"+ou[e[t+4]]+ou[e[t+5]]+"-"+ou[e[t+6]]+ou[e[t+7]]+"-"+ou[e[t+8]]+ou[e[t+9]]+"-"+ou[e[t+10]]+ou[e[t+11]]+ou[e[t+12]]+ou[e[t+13]]+ou[e[t+14]]+ou[e[t+15]]).toLowerCase()}const GRe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),fH={randomUUID:GRe};function VN(e,t,n){if(fH.randomUUID&&!t&&!e)return fH.randomUUID();e=e||{};const r=e.random||(e.rng||jRe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return VRe(r)}var WRe=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,YRe=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,qRe=/[^-+\dA-Z]/g;function uu(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(dH[t]||t||dH.default);var i=t.slice(0,4);(i==="UTC:"||i==="GMT:")&&(t=t.slice(4),n=!0,i==="GMT:"&&(r=!0));var s=function(){return n?"getUTC":"get"},l=function(){return e[s()+"Date"]()},f=function(){return e[s()+"Day"]()},d=function(){return e[s()+"Month"]()},m=function(){return e[s()+"FullYear"]()},b=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},N=function(){return e[s()+"Seconds"]()},w=function(){return e[s()+"Milliseconds"]()},T=function(){return n?0:e.getTimezoneOffset()},L=function(){return KRe(e)},M=function(){return ZRe(e)},B={d:function(){return l()},dd:function(){return Kf(l())},ddd:function(){return ff.dayNames[f()]},DDD:function(){return hH({y:m(),m:d(),d:l(),_:s(),dayName:ff.dayNames[f()],short:!0})},dddd:function(){return ff.dayNames[f()+7]},DDDD:function(){return hH({y:m(),m:d(),d:l(),_:s(),dayName:ff.dayNames[f()+7]})},m:function(){return d()+1},mm:function(){return Kf(d()+1)},mmm:function(){return ff.monthNames[d()]},mmmm:function(){return ff.monthNames[d()+12]},yy:function(){return String(m()).slice(2)},yyyy:function(){return Kf(m(),4)},h:function(){return b()%12||12},hh:function(){return Kf(b()%12||12)},H:function(){return b()},HH:function(){return Kf(b())},M:function(){return S()},MM:function(){return Kf(S())},s:function(){return N()},ss:function(){return Kf(N())},l:function(){return Kf(w(),3)},L:function(){return Kf(Math.floor(w()/10))},t:function(){return b()<12?ff.timeNames[0]:ff.timeNames[1]},tt:function(){return b()<12?ff.timeNames[2]:ff.timeNames[3]},T:function(){return b()<12?ff.timeNames[4]:ff.timeNames[5]},TT:function(){return b()<12?ff.timeNames[6]:ff.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":XRe(e)},o:function(){return(T()>0?"-":"+")+Kf(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)},p:function(){return(T()>0?"-":"+")+Kf(Math.floor(Math.abs(T())/60),2)+":"+Kf(Math.floor(Math.abs(T())%60),2)},S:function(){return["th","st","nd","rd"][l()%10>3?0:(l()%100-l()%10!=10)*l()%10]},W:function(){return L()},WW:function(){return Kf(L())},N:function(){return M()}};return t.replace(WRe,function(F){return F in B?B[F]():F.slice(1,F.length-1)})}var dH={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"},ff={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"]},Kf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},hH=function(t){var n=t.y,r=t.m,i=t.d,s=t._,l=t.dayName,f=t.short,d=f===void 0?!1:f,m=new Date,b=new Date;b.setDate(b[s+"Date"]()-1);var S=new Date;S.setDate(S[s+"Date"]()+1);var N=function(){return m[s+"Date"]()},w=function(){return m[s+"Month"]()},T=function(){return m[s+"FullYear"]()},L=function(){return b[s+"Date"]()},M=function(){return b[s+"Month"]()},B=function(){return b[s+"FullYear"]()},F=function(){return S[s+"Date"]()},z=function(){return S[s+"Month"]()},H=function(){return S[s+"FullYear"]()};return T()===n&&w()===r&&N()===i?d?"Tdy":"Today":B()===n&&M()===r&&L()===i?d?"Ysd":"Yesterday":H()===n&&z()===r&&F()===i?d?"Tmw":"Tomorrow":l},KRe=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 i=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-i);var s=(n-r)/(864e5*7);return 1+Math.floor(s)},ZRe=function(t){var n=t.getDay();return n===0&&(n=7),n},XRe=function(t){return(String(t).match(YRe)||[""]).pop().replace(qRe,"").replace(/GMT\+0000/g,"UTC")};const QRe=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(M$(!0)),t(uk("Connected"));const r=n().gallery;r.categories.user.latest_mtime?t(z$("user")):t(mO("user")),r.categories.result.latest_mtime?t(z$("result")):t(mO("result"))}catch(r){console.error(r)}},onDisconnect:()=>{try{t(M$(!1)),t(uk("Disconnected")),t(lu({timestamp:uu(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{shouldLoopback:i,activeTab:s}=n().options,l={uuid:VN(),...r,category:"result"};if(t(vT({category:"result",image:l})),i)switch(D_[s]){case"img2img":{t(a_(l));break}case"inpainting":{t(s9(l));break}}t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Image generated: ${r.url}`}))}catch(i){console.error(i)}},onIntermediateResult:r=>{try{t(ENe({uuid:VN(),...r})),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Intermediate image generated: ${r.url}`}))}catch(i){console.error(i)}},onPostprocessingResult:r=>{try{t(vT({category:"result",image:{uuid:VN(),...r,category:"result"}})),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Postprocessed: ${r.url}`}))}catch(i){console.error(i)}},onProgressUpdate:r=>{try{t(z3(!0)),t(HCe(r))}catch(i){console.error(i)}},onError:r=>{const{message:i,additionalData:s}=r;try{t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Server error: ${i}`,level:"error"})),t(hO()),t(J$())}catch(l){console.error(l)}},onGalleryImages:r=>{const{images:i,areMoreImagesAvailable:s,category:l}=r,f=i.map(d=>({uuid:VN(),...d}));t(_Ne({images:f,areMoreImagesAvailable:s,category:l})),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Loaded ${i.length} images`}))},onProcessingCanceled:()=>{t(GCe());const{intermediateImage:r}=n().gallery;r&&(t(vT({category:"result",image:r})),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(J$())),t(lu({timestamp:uu(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:i}=r;t(Jq(r));const{initialImage:s,maskPath:l}=n().options,{imageToInpaint:f}=n().inpainting;(s?.url===i||s===i)&&t(YO()),f?.url===i&&t(yD()),l===i&&t(WO("")),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Image deleted: ${i}`}))},onImageUploaded:r=>{const{destination:i,...s}=r,l={uuid:VN(),...s};try{switch(t(vT({image:l,category:"user"})),i){case"img2img":{t(a_(l));break}case"inpainting":{t(s9(l));break}default:{t(eK(l));break}}t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Image uploaded: ${r.url}`}))}catch(f){console.error(f)}},onMaskImageUploaded:r=>{const{url:i}=r;t(WO(i)),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Mask image uploaded: ${i}`}))},onSystemConfig:r=>{t(jCe(r))},onModelChanged:r=>{const{model_name:i,model_list:s}=r;t(D$(s)),t(uk("Model Changed")),t(z3(!1)),t(P$(!0)),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Model changed: ${i}`,level:"info"}))},onModelChangeFailed:r=>{const{model_name:i,model_list:s}=r;t(D$(s)),t(z3(!1)),t(P$(!0)),t(hO()),t(lu({timestamp:uu(new Date,"isoDateTime"),message:`Model change failed: ${i}`,level:"error"}))}}},JRe=(e,t)=>{const{width:n,height:r}=e,i=document.createElement("div"),s=new p6.Stage({container:i,width:n,height:r}),l=new p6.Layer;return s.add(l),t.forEach(f=>l.add(new p6.Line({points:f.points,stroke:"rgb(0,0,0)",strokeWidth:f.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,globalCompositeOperation:f.tool==="brush"?"source-over":"destination-out"}))),l.draw(),i.remove(),{stage:s,layer:l}},e8e=(e,t)=>{const n=e.toCanvas().getContext("2d")?.getImageData(t.x,t.y,t.width,t.height);if(!n)throw new Error("Unable to get image data from generated canvas");return!new Uint32Array(n.data.buffer).some(i=>i!==0)},t8e=(e,t,n)=>{const{stage:r,layer:i}=JRe(e,t),s=e8e(r,n);return i.add(new p6.Image({image:e,globalCompositeOperation:"source-out"})),{maskDataURL:r.toDataURL(),isMaskEmpty:s}},n8e=e=>{const{generationMode:t,optionsState:n,inpaintingState:r,systemState:i,imageToProcessUrl:s,maskImageElement:l}=e,{prompt:f,iterations:d,steps:m,cfgScale:b,threshold:S,perlin:N,height:w,width:T,sampler:L,seed:M,seamless:B,hiresFix:F,img2imgStrength:z,initialImage:H,shouldFitToWidthHeight:G,shouldGenerateVariations:K,variationAmount:Z,seedWeights:ne,shouldRunESRGAN:ie,upscalingLevel:le,upscalingStrength:oe,shouldRunFacetool:Ae,facetoolStrength:de,codeformerFidelity:Se,facetoolType:Me,shouldRandomizeSeed:_e}=n,{shouldDisplayInProgress:J,shouldDisplayInProgressLatents:he}=i,ve={prompt:f,iterations:d,steps:m,cfg_scale:b,threshold:S,perlin:N,height:w,width:T,sampler_name:L,seed:M,progress_images:J,progress_latents:he};if(ve.seed=_e?Eq(iD,oD):M,["txt2img","img2img"].includes(t)&&(ve.seamless=B,ve.hires_fix=F),t==="img2img"&&H&&(ve.init_img=typeof H=="string"?H:H.url,ve.strength=z,ve.fit=G),t==="inpainting"&&l){const{lines:Ve,boundingBoxCoordinate:Pe,boundingBoxDimensions:Qe,inpaintReplace:wt,shouldUseInpaintReplace:Ot}=r,Ut={...Pe,...Qe};ve.init_img=s,ve.strength=z,ve.fit=!1;const{maskDataURL:ut,isMaskEmpty:It}=t8e(l,Ve,Ut);ve.is_mask_empty=It,ve.init_mask=ut.split("data:image/png;base64,")[1],Ot&&(ve.inpaint_replace=wt),ve.bounding_box=Ut,ve.progress_images=!1}K?(ve.variation_amount=Z,ne&&(ve.with_variations=y3e(ne))):ve.variation_amount=0;let ye=!1,xe=!1;return ie&&(ye={level:le,strength:oe}),Ae&&(xe={type:Me,strength:de},Me==="codeformer"&&(xe.codeformer_fidelity=Se)),{generationParameters:ve,esrganParameters:ye,facetoolParameters:xe}},r8e=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:i=>{n(z3(!0));const s=r(),{options:l,system:f,inpainting:d,gallery:m}=s,b={generationMode:i,optionsState:l,inpaintingState:d,systemState:f};if(i==="inpainting"){if(!v9.current||!d.imageToInpaint?.url){n(lu({timestamp:uu(new Date,"isoDateTime"),message:"Inpainting image not loaded, cannot generate image.",level:"error"})),n(hO());return}b.imageToProcessUrl=d.imageToInpaint.url,b.maskImageElement=v9.current}else if(!["txt2img","img2img"].includes(i)){if(!m.currentImage?.url)return;b.imageToProcessUrl=m.currentImage.url}const{generationParameters:S,esrganParameters:N,facetoolParameters:w}=n8e(b);t.emit("generateImage",S,N,w),S.init_mask&&(S.init_mask=S.init_mask.substr(0,20).concat("...")),n(lu({timestamp:uu(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...S,...N,...w})}`}))},emitRunESRGAN:i=>{n(z3(!0));const s=r().options,{upscalingLevel:l,upscalingStrength:f}=s,d={upscale:[l,f]};t.emit("runPostprocessing",i,{type:"esrgan",...d}),n(lu({timestamp:uu(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:i.url,...d})}`}))},emitRunFacetool:i=>{n(z3(!0));const s=r().options,{facetoolType:l,facetoolStrength:f,codeformerFidelity:d}=s,m={facetool_strength:f};l==="codeformer"&&(m.codeformer_fidelity=d),t.emit("runPostprocessing",i,{type:l,...m}),n(lu({timestamp:uu(new Date,"isoDateTime"),message:`Face restoration (${l}) requested: ${JSON.stringify({file:i.url,...m})}`}))},emitDeleteImage:i=>{const{url:s,uuid:l,category:f}=i;n(Jq(i)),t.emit("deleteImage",s,l,f)},emitRequestImages:i=>{const s=r().gallery,{earliest_mtime:l}=s.categories[i];t.emit("requestImages",i,l)},emitRequestNewImages:i=>{const s=r().gallery,{latest_mtime:l}=s.categories[i];t.emit("requestLatestImages",i,l)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadImage:i=>{const{file:s,destination:l}=i;t.emit("uploadImage",s,s.name,l)},emitUploadMaskImage:i=>{t.emit("uploadMaskImage",i,i.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")},emitRequestModelChange:i=>{n(WCe()),t.emit("requestModelChange",i)}}},a8e=()=>{const{origin:e}=new URL(window.location.href),t=y6(e,{timeout:6e4,path:window.location.pathname+"socket.io"});let n=!1;return i=>s=>l=>{const{onConnect:f,onDisconnect:d,onError:m,onPostprocessingResult:b,onGenerationResult:S,onIntermediateResult:N,onProgressUpdate:w,onGalleryImages:T,onProcessingCanceled:L,onImageDeleted:M,onImageUploaded:B,onMaskImageUploaded:F,onSystemConfig:z,onModelChanged:H,onModelChangeFailed:G}=QRe(i),{emitGenerateImage:K,emitRunESRGAN:Z,emitRunFacetool:ne,emitDeleteImage:ie,emitRequestImages:le,emitRequestNewImages:oe,emitCancelProcessing:Ae,emitUploadImage:de,emitUploadMaskImage:Se,emitRequestSystemConfig:Me,emitRequestModelChange:_e}=r8e(i,t);switch(n||(t.on("connect",()=>f()),t.on("disconnect",()=>d()),t.on("error",J=>m(J)),t.on("generationResult",J=>S(J)),t.on("postprocessingResult",J=>b(J)),t.on("intermediateResult",J=>N(J)),t.on("progressUpdate",J=>w(J)),t.on("galleryImages",J=>T(J)),t.on("processingCanceled",()=>{L()}),t.on("imageDeleted",J=>{M(J)}),t.on("imageUploaded",J=>{B(J)}),t.on("maskImageUploaded",J=>{F(J)}),t.on("systemConfig",J=>{z(J)}),t.on("modelChanged",J=>{H(J)}),t.on("modelChangeFailed",J=>{G(J)}),n=!0),l.type){case"socketio/generateImage":{K(l.payload);break}case"socketio/runESRGAN":{Z(l.payload);break}case"socketio/runFacetool":{ne(l.payload);break}case"socketio/deleteImage":{ie(l.payload);break}case"socketio/requestImages":{le(l.payload);break}case"socketio/requestNewImages":{oe(l.payload);break}case"socketio/cancelProcessing":{Ae();break}case"socketio/uploadImage":{de(l.payload);break}case"socketio/uploadMaskImage":{Se(l.payload);break}case"socketio/requestSystemConfig":{Me();break}case"socketio/requestModelChange":{_e(l.payload);break}}s(l)}},i8e={key:"root",storage:k_,blacklist:["gallery","system","inpainting"]},o8e={key:"system",storage:k_,blacklist:["isCancelable","isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},s8e={key:"gallery",storage:k_,whitelist:["galleryWidth","shouldPinGallery","shouldShowGallery","galleryScrollPosition","galleryImageMinimumWidth","galleryImageObjectFit"]},l8e={key:"inpainting",storage:k_,blacklist:["pastLines","futuresLines","cursorPosition"]},u8e=qY({options:J7e,gallery:o6(s8e,LNe),system:o6(o8e,YCe),inpainting:o6(l8e,gNe)}),c8e=o6(i8e,u8e),tX=x5e({reducer:c8e,middleware:e=>e({serializableCheck:!1}).concat(a8e())}),ar=H5e,tn=L5e;function S6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S6=function(n){return typeof n}:S6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S6(e)}function f8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pH(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 d8e(e,t,n){return t&&pH(e.prototype,t),n&&pH(e,n),e}function h8e(e,t){return t&&(S6(t)==="object"||typeof t=="function")?t:x6(e)}function eL(e){return eL=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},eL(e)}function x6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p8e(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&&tL(e,t)}function tL(e,t){return tL=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tL(e,t)}function C6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nX=function(e){p8e(t,e);function t(){var n,r;f8e(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=h8e(this,(n=eL(t)).call.apply(n,[this].concat(s))),C6(x6(r),"state",{bootstrapped:!1}),C6(x6(r),"_unsubscribe",void 0),C6(x6(r),"handlePersistorState",function(){var f=r.props.persistor,d=f.getState(),m=d.bootstrapped;m&&(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 d8e(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.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(O.exports.PureComponent);C6(nX,"defaultProps",{children:null,loading:null});const mH=Lxe({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"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var vH="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/Loading.tsx";const rX=()=>_(Si,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:_(lC,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:vH,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:vH,lineNumber:5,columnNumber:9},void 0);var m8e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const v8e=ia(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),g8e=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=tn(v8e),i=t?Math.round(t*100/n):0;return _(HW,{value:i,isIndeterminate:e&&!r,className:"progress-bar"},void 0,!1,{fileName:m8e,lineNumber:30,columnNumber:5},void 0)};var GN="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function b8e(e){const{title:t,hotkey:n,description:r}=e;return _("div",{className:"hotkey-modal-item",children:[_("div",{className:"hotkey-info",children:[_("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:GN,lineNumber:14,columnNumber:9},this),r&&_("p",{className:"hotkey-description",children:r},void 0,!1,{fileName:GN,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:GN,lineNumber:13,columnNumber:7},this),_("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:GN,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:GN,lineNumber:12,columnNumber:5},this)}var Za="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function y8e({children:e}){const{isOpen:t,onOpen:n,onClose:r}=j6(),i=[{title:"Invoke",desc:"Generate an image",hotkey:"Ctrl+Enter"},{title:"Cancel",desc:"Cancel image generation",hotkey:"Shift+X"},{title:"Focus Prompt",desc:"Focus the prompt input area",hotkey:"Alt+A"},{title:"Toggle Options",desc:"Open and close the options panel",hotkey:"O"},{title:"Pin Options",desc:"Pin the options panel",hotkey:"Shift+O"},{title:"Toggle Gallery",desc:"Open and close the gallery drawer",hotkey:"G"},{title:"Change Tabs",desc:"Switch to another workspace",hotkey:"1-6"},{title:"Theme Toggle",desc:"Switch between dark and light modes",hotkey:"Shift+D"},{title:"Console Toggle",desc:"Open and close console",hotkey:"`"}],s=[{title:"Set Parameters",desc:"Use all parameters of the current image",hotkey:"A"},{title:"Set Seed",desc:"Use the seed of the current image",hotkey:"S"},{title:"Restore Faces",desc:"Restore the current image",hotkey:"R"},{title:"Upscale",desc:"Upscale the current image",hotkey:"U"},{title:"Show Info",desc:"Show metadata info of the current image",hotkey:"I"},{title:"Send To Image To Image",desc:"Send current image to Image to Image",hotkey:"Shift+I"},{title:"Delete Image",desc:"Delete the current image",hotkey:"Del"}],l=[{title:"Previous Image",desc:"Display the previous image in gallery",hotkey:"Arrow left"},{title:"Next Image",desc:"Display the next image in gallery",hotkey:"Arrow right"},{title:"Toggle Gallery Pin",desc:"Pins and unpins the gallery to the UI",hotkey:"Shift+G"},{title:"Increase Gallery Image Size",desc:"Increases gallery thumbnails size",hotkey:"Shift+Up"},{title:"Decrease Gallery Image Size",desc:"Decreases gallery thumbnails size",hotkey:"Shift+Down"},{title:"Reset Gallery Image Size",desc:"Resets image gallery size",hotkey:"Shift+R"}],f=[{title:"Select Brush",desc:"Selects the inpainting brush",hotkey:"B"},{title:"Select Eraser",desc:"Selects the inpainting eraser",hotkey:"E"},{title:"Quick Toggle Brush/Eraser",desc:"Quick toggle between brush and eraser",hotkey:"X"},{title:"Decrease Brush Size",desc:"Decreases the size of the inpainting brush/eraser",hotkey:"["},{title:"Increase Brush Size",desc:"Increases the size of the inpainting brush/eraser",hotkey:"]"},{title:"Hide Mask",desc:"Hide and unhide mask",hotkey:"H"},{title:"Decrease Mask Opacity",desc:"Decreases the opacity of the mask",hotkey:"Shift+["},{title:"Increase Mask Opacity",desc:"Increases the opacity of the mask",hotkey:"Shift+]"},{title:"Invert Mask",desc:"Invert the mask preview",hotkey:"Shift+M"},{title:"Clear Mask",desc:"Clear the entire mask",hotkey:"Shift+C"},{title:"Undo Stroke",desc:"Undo a brush stroke",hotkey:"Ctrl+Z"},{title:"Redo Stroke",desc:"Redo a brush stroke",hotkey:"Ctrl+Shift+Z, Ctrl+Y"},{title:"Lock Bounding Box",desc:"Locks the bounding box",hotkey:"M"},{title:"Quick Toggle Lock Bounding Box",desc:"Hold to toggle locking the bounding box",hotkey:"Space"},{title:"Expand Inpainting Area",desc:"Expand your inpainting work area",hotkey:"Shift+J"}],d=m=>{const b=[];return m.forEach((S,N)=>{b.push(_(b8e,{title:S.title,description:S.desc,hotkey:S.hotkey},N,!1,{fileName:Za,lineNumber:216,columnNumber:9},this))}),_("div",{className:"hotkey-modal-category",children:b},void 0,!1,{fileName:Za,lineNumber:226,columnNumber:7},this)};return _(Ci,{children:[O.exports.cloneElement(e,{onClick:n}),_(Z3,{isOpen:t,onClose:r,children:[_(qw,{},void 0,!1,{fileName:Za,lineNumber:236,columnNumber:9},this),_(Yw,{className:"hotkeys-modal",children:[_(AM,{},void 0,!1,{fileName:Za,lineNumber:238,columnNumber:11},this),_("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:Za,lineNumber:240,columnNumber:11},this),_("div",{className:"hotkeys-modal-items",children:_(G9,{allowMultiple:!0,children:[_(SS,{children:[_(bS,{className:"hotkeys-modal-button",children:[_("h2",{children:"App Hotkeys"},void 0,!1,{fileName:Za,lineNumber:245,columnNumber:19},this),_(yS,{},void 0,!1,{fileName:Za,lineNumber:246,columnNumber:19},this)]},void 0,!0,{fileName:Za,lineNumber:244,columnNumber:17},this),_(xS,{children:d(i)},void 0,!1,{fileName:Za,lineNumber:248,columnNumber:17},this)]},void 0,!0,{fileName:Za,lineNumber:243,columnNumber:15},this),_(SS,{children:[_(bS,{className:"hotkeys-modal-button",children:[_("h2",{children:"General Hotkeys"},void 0,!1,{fileName:Za,lineNumber:255,columnNumber:19},this),_(yS,{},void 0,!1,{fileName:Za,lineNumber:256,columnNumber:19},this)]},void 0,!0,{fileName:Za,lineNumber:254,columnNumber:17},this),_(xS,{children:d(s)},void 0,!1,{fileName:Za,lineNumber:258,columnNumber:17},this)]},void 0,!0,{fileName:Za,lineNumber:253,columnNumber:15},this),_(SS,{children:[_(bS,{className:"hotkeys-modal-button",children:[_("h2",{children:"Gallery Hotkeys"},void 0,!1,{fileName:Za,lineNumber:265,columnNumber:19},this),_(yS,{},void 0,!1,{fileName:Za,lineNumber:266,columnNumber:19},this)]},void 0,!0,{fileName:Za,lineNumber:264,columnNumber:17},this),_(xS,{children:d(l)},void 0,!1,{fileName:Za,lineNumber:268,columnNumber:17},this)]},void 0,!0,{fileName:Za,lineNumber:263,columnNumber:15},this),_(SS,{children:[_(bS,{className:"hotkeys-modal-button",children:[_("h2",{children:"Inpainting Hotkeys"},void 0,!1,{fileName:Za,lineNumber:275,columnNumber:19},this),_(yS,{},void 0,!1,{fileName:Za,lineNumber:276,columnNumber:19},this)]},void 0,!0,{fileName:Za,lineNumber:274,columnNumber:17},this),_(xS,{children:d(f)},void 0,!1,{fileName:Za,lineNumber:278,columnNumber:17},this)]},void 0,!0,{fileName:Za,lineNumber:273,columnNumber:15},this)]},void 0,!0,{fileName:Za,lineNumber:242,columnNumber:13},this)},void 0,!1,{fileName:Za,lineNumber:241,columnNumber:11},this)]},void 0,!0,{fileName:Za,lineNumber:237,columnNumber:9},this)]},void 0,!0,{fileName:Za,lineNumber:235,columnNumber:7},this)]},void 0,!0)}var cu="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SettingsModal/ModelList.tsx";const S8e=e=>{const{isProcessing:t,isConnected:n}=tn(d=>d.system),r=ar(),{name:i,status:s,description:l}=e,f=()=>{r(H4e(i))};return _("div",{className:"model-list-item",children:[_(el,{label:l,hasArrow:!0,placement:"bottom",children:_("div",{className:"model-list-item-name",children:i},void 0,!1,{fileName:cu,lineNumber:37,columnNumber:9},void 0)},void 0,!1,{fileName:cu,lineNumber:36,columnNumber:7},void 0),_(NG,{},void 0,!1,{fileName:cu,lineNumber:39,columnNumber:7},void 0),_("div",{className:`model-list-item-status ${s.split(" ").join("-")}`,children:s},void 0,!1,{fileName:cu,lineNumber:40,columnNumber:7},void 0),_("div",{className:"model-list-item-load-btn",children:_(nh,{size:"sm",onClick:f,isDisabled:s==="active"||t||!n,children:"Load"},void 0,!1,{fileName:cu,lineNumber:44,columnNumber:9},void 0)},void 0,!1,{fileName:cu,lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:cu,lineNumber:35,columnNumber:5},void 0)},x8e=ia(e=>e.system,e=>{const t=ra.map(e.model_list,(r,i)=>({name:i,...r})),n=t.find(r=>r.status==="active");return{models:t,activeModel:n}}),C8e=()=>{const{models:e}=tn(x8e);return _("div",{className:"model-list",children:_(G9,{allowToggle:!0,children:_(SS,{children:[_(bS,{children:_("div",{className:"model-list-button",children:[_("h2",{children:"Models"},void 0,!1,{fileName:cu,lineNumber:81,columnNumber:15},void 0),_(yS,{},void 0,!1,{fileName:cu,lineNumber:82,columnNumber:15},void 0)]},void 0,!0,{fileName:cu,lineNumber:80,columnNumber:13},void 0)},void 0,!1,{fileName:cu,lineNumber:79,columnNumber:11},void 0),_(xS,{children:_("div",{className:"model-list-list",children:e.map((t,n)=>_(S8e,{name:t.name,status:t.status,description:t.description},n,!1,{fileName:cu,lineNumber:89,columnNumber:17},void 0))},void 0,!1,{fileName:cu,lineNumber:87,columnNumber:13},void 0)},void 0,!1,{fileName:cu,lineNumber:86,columnNumber:11},void 0)]},void 0,!0,{fileName:cu,lineNumber:78,columnNumber:9},void 0)},void 0,!1,{fileName:cu,lineNumber:77,columnNumber:7},void 0)},void 0,!1,{fileName:cu,lineNumber:76,columnNumber:5},void 0)};var N8e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function UT({settingTitle:e,isChecked:t,dispatcher:n}){const r=ar();return _(d0,{styleClass:"settings-modal-item",label:e,isChecked:t,onChange:i=>r(n(i.target.checked))},void 0,!1,{fileName:N8e,lineNumber:15,columnNumber:5},this)}var ji="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const w8e=ia(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldDisplayInProgressLatents:n,shouldConfirmOnDelete:r,shouldDisplayGuides:i,model_list:s}=e;return{shouldDisplayInProgress:t,shouldDisplayInProgressLatents:n,shouldConfirmOnDelete:r,shouldDisplayGuides:i,models:ra.map(s,(l,f)=>f)}},{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),_8e=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=j6(),{isOpen:i,onOpen:s,onClose:l}=j6(),{shouldDisplayInProgress:f,shouldDisplayInProgressLatents:d,shouldConfirmOnDelete:m,shouldDisplayGuides:b}=tn(w8e),S=()=>{mX.purge().then(()=>{r(),s()})};return _(Ci,{children:[O.exports.cloneElement(e,{onClick:n}),_(Z3,{isOpen:t,onClose:r,children:[_(qw,{},void 0,!1,{fileName:ji,lineNumber:102,columnNumber:9},void 0),_(Yw,{className:"settings-modal",children:[_(LM,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:ji,lineNumber:104,columnNumber:11},void 0),_(AM,{},void 0,!1,{fileName:ji,lineNumber:105,columnNumber:11},void 0),_(Y6,{className:"settings-modal-content",children:[_(C8e,{},void 0,!1,{fileName:ji,lineNumber:107,columnNumber:13},void 0),_("div",{className:"settings-modal-items",children:[_(UT,{settingTitle:"Display In-Progress Images (slower)",isChecked:f,dispatcher:BCe},void 0,!1,{fileName:ji,lineNumber:109,columnNumber:15},void 0),_(UT,{settingTitle:"Display In-Progress Latents (quick; lo-res)",isChecked:d,dispatcher:$Ce},void 0,!1,{fileName:ji,lineNumber:115,columnNumber:15},void 0),_(UT,{settingTitle:"Confirm on Delete",isChecked:m,dispatcher:Rq},void 0,!1,{fileName:ji,lineNumber:121,columnNumber:15},void 0),_(UT,{settingTitle:"Display Help Icons",isChecked:b,dispatcher:VCe},void 0,!1,{fileName:ji,lineNumber:127,columnNumber:15},void 0)]},void 0,!0,{fileName:ji,lineNumber:108,columnNumber:13},void 0),_("div",{className:"settings-modal-reset",children:[_(_S,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:ji,lineNumber:135,columnNumber:15},void 0),_(hf,{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."},void 0,!1,{fileName:ji,lineNumber:136,columnNumber:15},void 0),_(hf,{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."},void 0,!1,{fileName:ji,lineNumber:141,columnNumber:15},void 0),_(nh,{colorScheme:"red",onClick:S,children:"Reset Web UI"},void 0,!1,{fileName:ji,lineNumber:146,columnNumber:15},void 0)]},void 0,!0,{fileName:ji,lineNumber:134,columnNumber:13},void 0)]},void 0,!0,{fileName:ji,lineNumber:106,columnNumber:11},void 0),_(OM,{children:_(nh,{onClick:r,children:"Close"},void 0,!1,{fileName:ji,lineNumber:153,columnNumber:13},void 0)},void 0,!1,{fileName:ji,lineNumber:152,columnNumber:11},void 0)]},void 0,!0,{fileName:ji,lineNumber:103,columnNumber:9},void 0)]},void 0,!0,{fileName:ji,lineNumber:101,columnNumber:7},void 0),_(Z3,{closeOnOverlayClick:!1,isOpen:i,onClose:l,isCentered:!0,children:[_(qw,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:ji,lineNumber:164,columnNumber:9},void 0),_(Yw,{children:_(Y6,{pb:6,pt:6,children:_(Si,{justifyContent:"center",children:_(hf,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:ji,lineNumber:168,columnNumber:15},void 0)},void 0,!1,{fileName:ji,lineNumber:167,columnNumber:13},void 0)},void 0,!1,{fileName:ji,lineNumber:166,columnNumber:11},void 0)},void 0,!1,{fileName:ji,lineNumber:165,columnNumber:9},void 0)]},void 0,!0,{fileName:ji,lineNumber:158,columnNumber:7},void 0)]},void 0,!0)};var gH="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const E8e=ia(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),T8e=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:r,currentStatus:i,hasError:s,wasErrorSeen:l}=tn(E8e),f=ar();let d;e&&!s?d="status-good":d="status-bad";let m=i;return["generating","preparing","saving image","restoring faces","upscaling"].includes(m.toLowerCase())&&(d="status-working"),m&&t&&r>1&&(m+=` (${n}/${r})`),_(el,{label:s&&!l?"Click to clear, check logs for details":void 0,children:_(hf,{cursor:s&&!l?"pointer":"initial",onClick:()=>{(s||!l)&&f(kq())},className:`status ${d}`,children:m},void 0,!1,{fileName:gH,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:gH,lineNumber:82,columnNumber:5},void 0)};var Xa="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const R8e=()=>{const{colorMode:e,toggleColorMode:t}=cL();$r("shift+d",()=>{t()},[e,t]);const n=e=="light"?_(N4e,{},void 0,!1,{fileName:Xa,lineNumber:29,columnNumber:48},void 0):_(A4e,{},void 0,!1,{fileName:Xa,lineNumber:29,columnNumber:61},void 0),r=e=="light"?18:20;return _("div",{className:"site-header",children:[_("div",{className:"site-header-left-side",children:[_("img",{src:Kq,alt:"invoke-ai-logo"},void 0,!1,{fileName:Xa,lineNumber:37,columnNumber:9},void 0),_("h1",{children:["invoke ",_("strong",{children:"ai"},void 0,!1,{fileName:Xa,lineNumber:39,columnNumber:18},void 0)]},void 0,!0,{fileName:Xa,lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:Xa,lineNumber:36,columnNumber:7},void 0),_("div",{className:"site-header-right-side",children:[_(T8e,{},void 0,!1,{fileName:Xa,lineNumber:44,columnNumber:9},void 0),_(y8e,{children:_(Uu,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:_(a4e,{},void 0,!1,{fileName:Xa,lineNumber:52,columnNumber:19},void 0)},void 0,!1,{fileName:Xa,lineNumber:47,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:46,columnNumber:9},void 0),_(el,{hasArrow:!0,label:"Theme",placement:"bottom",children:_(Uu,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:r,icon:n},void 0,!1,{fileName:Xa,lineNumber:57,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:56,columnNumber:9},void 0),_(el,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:_(Uu,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:_(A3,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:_(Lq,{},void 0,!1,{fileName:Xa,lineNumber:78,columnNumber:17},void 0)},void 0,!1,{fileName:Xa,lineNumber:74,columnNumber:15},void 0)},void 0,!1,{fileName:Xa,lineNumber:68,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:67,columnNumber:9},void 0),_(el,{hasArrow:!0,label:"Github",placement:"bottom",children:_(Uu,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:_(A3,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:_(h4e,{},void 0,!1,{fileName:Xa,lineNumber:92,columnNumber:17},void 0)},void 0,!1,{fileName:Xa,lineNumber:91,columnNumber:15},void 0)},void 0,!1,{fileName:Xa,lineNumber:85,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:84,columnNumber:9},void 0),_(el,{hasArrow:!0,label:"Discord",placement:"bottom",children:_(Uu,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:_(A3,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:_(d4e,{},void 0,!1,{fileName:Xa,lineNumber:106,columnNumber:17},void 0)},void 0,!1,{fileName:Xa,lineNumber:105,columnNumber:15},void 0)},void 0,!1,{fileName:Xa,lineNumber:99,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:98,columnNumber:9},void 0),_(_8e,{children:_(Uu,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:_(e4e,{},void 0,!1,{fileName:Xa,lineNumber:118,columnNumber:19},void 0)},void 0,!1,{fileName:Xa,lineNumber:113,columnNumber:11},void 0)},void 0,!1,{fileName:Xa,lineNumber:112,columnNumber:9},void 0)]},void 0,!0,{fileName:Xa,lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:Xa,lineNumber:35,columnNumber:5},void 0)};var Kd="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/Console.tsx";const k8e=ia(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),A8e=ia(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:id.exports.isEqual}}),O8e=()=>{const e=ar(),t=tn(k8e),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=tn(A8e),[s,l]=O.exports.useState(!0),f=O.exports.useRef(null);O.exports.useLayoutEffect(()=>{f.current!==null&&s&&(f.current.scrollTop=f.current.scrollHeight)},[s,t,n]);const d=()=>{e(kq()),e(L$(!n))};return $r("`",()=>{e(L$(!n))},[n]),_(Ci,{children:[n&&_(iK,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:20},maxHeight:"90vh",children:_("div",{className:"console",ref:f,onScroll:()=>{!f.current||s&&f.current.scrollTop<f.current.scrollHeight-f.current.clientHeight&&l(!1)},children:t.map((b,S)=>{const{timestamp:N,message:w,level:T}=b;return _("div",{className:`console-entry console-${T}-color`,children:[_("p",{className:"console-timestamp",children:[N,":"]},void 0,!0,{fileName:Kd,lineNumber:111,columnNumber:19},void 0),_("p",{className:"console-message",children:w},void 0,!1,{fileName:Kd,lineNumber:112,columnNumber:19},void 0)]},S,!0,{fileName:Kd,lineNumber:110,columnNumber:17},void 0)})},void 0,!1,{fileName:Kd,lineNumber:106,columnNumber:11},void 0)},void 0,!1,{fileName:Kd,lineNumber:92,columnNumber:9},void 0),n&&_(el,{hasArrow:!0,label:s?"Autoscroll On":"Autoscroll Off",children:_(Uu,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":s,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:_(p4e,{},void 0,!1,{fileName:Kd,lineNumber:130,columnNumber:19},void 0),onClick:()=>l(!s)},void 0,!1,{fileName:Kd,lineNumber:124,columnNumber:11},void 0)},void 0,!1,{fileName:Kd,lineNumber:120,columnNumber:9},void 0),_(el,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:_(Uu,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?_(C4e,{},void 0,!1,{fileName:Kd,lineNumber:146,columnNumber:39},void 0):_(b4e,{},void 0,!1,{fileName:Kd,lineNumber:146,columnNumber:53},void 0),onClick:d},void 0,!1,{fileName:Kd,lineNumber:139,columnNumber:9},void 0)},void 0,!1,{fileName:Kd,lineNumber:135,columnNumber:7},void 0)]},void 0,!0)};function L8e(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(i=>i)};(!{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV||{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}var M8e=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 I_(e,t){var n=D8e(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 D8e(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=M8e.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var P8e=[".DS_Store","Thumbs.db"];function I8e(e){return oC(this,void 0,void 0,function(){return sC(this,function(t){return g9(e)&&F8e(e.dataTransfer)?[2,U8e(e.dataTransfer,e.type)]:z8e(e)?[2,B8e(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,$8e(e)]:[2,[]]})})}function F8e(e){return g9(e)}function z8e(e){return g9(e)&&g9(e.target)}function g9(e){return typeof e=="object"&&e!==null}function B8e(e){return nL(e.target.files).map(function(t){return I_(t)})}function $8e(e){return oC(this,void 0,void 0,function(){var t;return sC(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 I_(r)})]}})})}function U8e(e,t){return oC(this,void 0,void 0,function(){var n,r;return sC(this,function(i){switch(i.label){case 0:return e.items?(n=nL(e.items).filter(function(s){return s.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(H8e))]):[3,2];case 1:return r=i.sent(),[2,bH(aX(r))];case 2:return[2,bH(nL(e.files).map(function(s){return I_(s)}))]}})})}function bH(e){return e.filter(function(t){return P8e.indexOf(t.name)===-1})}function nL(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function H8e(e){if(typeof e.webkitGetAsEntry!="function")return yH(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?iX(t):yH(e)}function aX(e){return e.reduce(function(t,n){return iA(iA([],xF(t),!1),xF(Array.isArray(n)?aX(n):[n]),!1)},[])}function yH(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=I_(t);return Promise.resolve(n)}function j8e(e){return oC(this,void 0,void 0,function(){return sC(this,function(t){return[2,e.isDirectory?iX(e):V8e(e)]})})}function iX(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function s(){var l=this;t.readEntries(function(f){return oC(l,void 0,void 0,function(){var d,m,b;return sC(this,function(S){switch(S.label){case 0:if(f.length)return[3,5];S.label=1;case 1:return S.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return d=S.sent(),n(d),[3,4];case 3:return m=S.sent(),r(m),[3,4];case 4:return[3,6];case 5:b=Promise.all(f.map(j8e)),i.push(b),s(),S.label=6;case 6:return[2]}})})},function(f){r(f)})}s()})}function V8e(e){return oC(this,void 0,void 0,function(){return sC(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var s=I_(i,e.fullPath);n(s)},function(i){r(i)})})]})})}var G8e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(l){var f=l.trim().toLowerCase();return f.charAt(0)==="."?r.toLowerCase().endsWith(f):f.endsWith("/*")?s===f.replace(/\/.*$/,""):i===f})}return!0};function SH(e){return q8e(e)||Y8e(e)||sX(e)||W8e()}function W8e(){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 Y8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q8e(e){if(Array.isArray(e))return rL(e)}function xH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xH(Object(n),!0).forEach(function(r){oX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i_(e,t){return X8e(e)||Z8e(e,t)||sX(e,t)||K8e()}function K8e(){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 sX(e,t){if(!!e){if(typeof e=="string")return rL(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 rL(e,t)}}function rL(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 Z8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,l,f;try{for(n=n.call(e);!(i=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));i=!0);}catch(d){s=!0,f=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw f}}return r}}function X8e(e){if(Array.isArray(e))return e}var Q8e="file-invalid-type",J8e="file-too-large",eke="file-too-small",tke="too-many-files",nke=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:Q8e,message:"File type must be ".concat(n)}},NH=function(t){return{code:J8e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},wH=function(t){return{code:eke,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},rke={code:tke,message:"Too many files"};function lX(e,t){var n=e.type==="application/x-moz-file"||G8e(e,t);return[n,n?null:nke(t)]}function uX(e,t,n){if(mS(e.size))if(mS(t)&&mS(n)){if(e.size>n)return[!1,NH(n)];if(e.size<t)return[!1,wH(t)]}else{if(mS(t)&&e.size<t)return[!1,wH(t)];if(mS(n)&&e.size>n)return[!1,NH(n)]}return[!0,null]}function mS(e){return e!=null}function ake(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,s=e.multiple,l=e.maxFiles,f=e.validator;return!s&&t.length>1||s&&l>=1&&t.length>l?!1:t.every(function(d){var m=lX(d,n),b=i_(m,1),S=b[0],N=uX(d,r,i),w=i_(N,1),T=w[0],L=f?f(d):null;return S&&T&&!L})}function b9(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function HT(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 _H(e){e.preventDefault()}function ike(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function oke(e){return e.indexOf("Edge/")!==-1}function ske(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ike(e)||oke(e)}function Km(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return t.some(function(f){return!b9(r)&&f&&f.apply(void 0,[r].concat(s)),b9(r)})}}function lke(){return"showOpenFilePicker"in window}function uke(e){if(mS(e)){var t=Object.entries(e).filter(function(n){var r=i_(n,2),i=r[0],s=r[1],l=!0;return cX(i)||(console.warn('Skipped "'.concat(i,'" 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.')),l=!1),(!Array.isArray(s)||!s.every(fX))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),l=!1),l}).reduce(function(n,r){var i=i_(r,2),s=i[0],l=i[1];return CH(CH({},n),{},oX({},s,l))},{});return[{accept:t}]}return e}function cke(e){if(mS(e))return Object.entries(e).reduce(function(t,n){var r=i_(n,2),i=r[0],s=r[1];return[].concat(SH(t),[i],SH(s))},[]).filter(function(t){return cX(t)||fX(t)}).join(",")}function fke(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function dke(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function cX(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function fX(e){return/^.*\.[\w]+$/.test(e)}var hke="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",pke=["children"],mke=["open"],vke=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],gke=["refKey","onChange","onClick"];function bke(e){return xke(e)||Ske(e)||dX(e)||yke()}function yke(){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 Ske(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xke(e){if(Array.isArray(e))return aL(e)}function Fk(e,t){return wke(e)||Nke(e,t)||dX(e,t)||Cke()}function Cke(){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 dX(e,t){if(!!e){if(typeof e=="string")return aL(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 aL(e,t)}}function aL(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 Nke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,l,f;try{for(n=n.call(e);!(i=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));i=!0);}catch(d){s=!0,f=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw f}}return r}}function wke(e){if(Array.isArray(e))return e}function EH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EH(Object(n),!0).forEach(function(r){iL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y9(e,t){if(e==null)return{};var n=_ke(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function _ke(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jD=O.exports.forwardRef(function(e,t){var n=e.children,r=y9(e,pke),i=pX(r),s=i.open,l=y9(i,mke);return O.exports.useImperativeHandle(t,function(){return{open:s}},[s]),_(O.exports.Fragment,{children:n(Ao(Ao({},l),{},{open:s}))},void 0,!1,{fileName:hke,lineNumber:70,columnNumber:23},this)});jD.displayName="Dropzone";var hX={disabled:!1,getFilesFromEvent:I8e,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};jD.defaultProps=hX;jD.propTypes={children:At.exports.func,accept:At.exports.objectOf(At.exports.arrayOf(At.exports.string)),multiple:At.exports.bool,preventDropOnDocument:At.exports.bool,noClick:At.exports.bool,noKeyboard:At.exports.bool,noDrag:At.exports.bool,noDragEventsBubbling:At.exports.bool,minSize:At.exports.number,maxSize:At.exports.number,maxFiles:At.exports.number,disabled:At.exports.bool,getFilesFromEvent:At.exports.func,onFileDialogCancel:At.exports.func,onFileDialogOpen:At.exports.func,useFsAccessApi:At.exports.bool,autoFocus:At.exports.bool,onDragEnter:At.exports.func,onDragLeave:At.exports.func,onDragOver:At.exports.func,onDrop:At.exports.func,onDropAccepted:At.exports.func,onDropRejected:At.exports.func,onError:At.exports.func,validator:At.exports.func};var oL={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function pX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ao(Ao({},hX),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,s=t.maxSize,l=t.minSize,f=t.multiple,d=t.maxFiles,m=t.onDragEnter,b=t.onDragLeave,S=t.onDragOver,N=t.onDrop,w=t.onDropAccepted,T=t.onDropRejected,L=t.onFileDialogCancel,M=t.onFileDialogOpen,B=t.useFsAccessApi,F=t.autoFocus,z=t.preventDropOnDocument,H=t.noClick,G=t.noKeyboard,K=t.noDrag,Z=t.noDragEventsBubbling,ne=t.onError,ie=t.validator,le=O.exports.useMemo(function(){return cke(n)},[n]),oe=O.exports.useMemo(function(){return uke(n)},[n]),Ae=O.exports.useMemo(function(){return typeof M=="function"?M:TH},[M]),de=O.exports.useMemo(function(){return typeof L=="function"?L:TH},[L]),Se=O.exports.useRef(null),Me=O.exports.useRef(null),_e=O.exports.useReducer(Eke,oL),J=Fk(_e,2),he=J[0],ve=J[1],ye=he.isFocused,xe=he.isFileDialogActive,Ve=O.exports.useRef(typeof window<"u"&&window.isSecureContext&&B&&lke()),Pe=function(){!Ve.current&&xe&&setTimeout(function(){if(Me.current){var Ft=Me.current.files;Ft.length||(ve({type:"closeDialog"}),de())}},300)};O.exports.useEffect(function(){return window.addEventListener("focus",Pe,!1),function(){window.removeEventListener("focus",Pe,!1)}},[Me,xe,de,Ve]);var Qe=O.exports.useRef([]),wt=function(Ft){Se.current&&Se.current.contains(Ft.target)||(Ft.preventDefault(),Qe.current=[])};O.exports.useEffect(function(){return z&&(document.addEventListener("dragover",_H,!1),document.addEventListener("drop",wt,!1)),function(){z&&(document.removeEventListener("dragover",_H),document.removeEventListener("drop",wt))}},[Se,z]),O.exports.useEffect(function(){return!r&&F&&Se.current&&Se.current.focus(),function(){}},[Se,F,r]);var Ot=O.exports.useCallback(function(St){ne?ne(St):console.error(St)},[ne]),Ut=O.exports.useCallback(function(St){St.preventDefault(),St.persist(),an(St),Qe.current=[].concat(bke(Qe.current),[St.target]),HT(St)&&Promise.resolve(i(St)).then(function(Ft){if(!(b9(St)&&!Z)){var er=Ft.length,En=er>0&&ake({files:Ft,accept:le,minSize:l,maxSize:s,multiple:f,maxFiles:d,validator:ie}),Je=er>0&&!En;ve({isDragAccept:En,isDragReject:Je,isDragActive:!0,type:"setDraggedFiles"}),m&&m(St)}}).catch(function(Ft){return Ot(Ft)})},[i,m,Ot,Z,le,l,s,f,d,ie]),ut=O.exports.useCallback(function(St){St.preventDefault(),St.persist(),an(St);var Ft=HT(St);if(Ft&&St.dataTransfer)try{St.dataTransfer.dropEffect="copy"}catch{}return Ft&&S&&S(St),!1},[S,Z]),It=O.exports.useCallback(function(St){St.preventDefault(),St.persist(),an(St);var Ft=Qe.current.filter(function(En){return Se.current&&Se.current.contains(En)}),er=Ft.indexOf(St.target);er!==-1&&Ft.splice(er,1),Qe.current=Ft,!(Ft.length>0)&&(ve({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),HT(St)&&b&&b(St))},[Se,b,Z]),Qt=O.exports.useCallback(function(St,Ft){var er=[],En=[];St.forEach(function(Je){var Mn=lX(Je,le),br=Fk(Mn,2),pt=br[0],Xe=br[1],Bt=uX(Je,l,s),We=Fk(Bt,2),Lt=We[0],Rt=We[1],gt=ie?ie(Je):null;if(pt&&Lt&&!gt)er.push(Je);else{var _t=[Xe,Rt];gt&&(_t=_t.concat(gt)),En.push({file:Je,errors:_t.filter(function(kn){return kn})})}}),(!f&&er.length>1||f&&d>=1&&er.length>d)&&(er.forEach(function(Je){En.push({file:Je,errors:[rke]})}),er.splice(0)),ve({acceptedFiles:er,fileRejections:En,type:"setFiles"}),N&&N(er,En,Ft),En.length>0&&T&&T(En,Ft),er.length>0&&w&&w(er,Ft)},[ve,f,le,l,s,d,N,w,T,ie]),pn=O.exports.useCallback(function(St){St.preventDefault(),St.persist(),an(St),Qe.current=[],HT(St)&&Promise.resolve(i(St)).then(function(Ft){b9(St)&&!Z||Qt(Ft,St)}).catch(function(Ft){return Ot(Ft)}),ve({type:"reset"})},[i,Qt,Ot,Z]),ht=O.exports.useCallback(function(){if(Ve.current){ve({type:"openDialog"}),Ae();var St={multiple:f,types:oe};window.showOpenFilePicker(St).then(function(Ft){return i(Ft)}).then(function(Ft){Qt(Ft,null),ve({type:"closeDialog"})}).catch(function(Ft){fke(Ft)?(de(Ft),ve({type:"closeDialog"})):dke(Ft)?(Ve.current=!1,Me.current?(Me.current.value=null,Me.current.click()):Ot(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."))):Ot(Ft)});return}Me.current&&(ve({type:"openDialog"}),Ae(),Me.current.value=null,Me.current.click())},[ve,Ae,de,B,Qt,Ot,oe,f]),gn=O.exports.useCallback(function(St){!Se.current||!Se.current.isEqualNode(St.target)||(St.key===" "||St.key==="Enter"||St.keyCode===32||St.keyCode===13)&&(St.preventDefault(),ht())},[Se,ht]),De=O.exports.useCallback(function(){ve({type:"focus"})},[]),kt=O.exports.useCallback(function(){ve({type:"blur"})},[]),Zt=O.exports.useCallback(function(){H||(ske()?setTimeout(ht,0):ht())},[H,ht]),Pt=function(Ft){return r?null:Ft},un=function(Ft){return G?null:Pt(Ft)},fr=function(Ft){return K?null:Pt(Ft)},an=function(Ft){Z&&Ft.stopPropagation()},Rn=O.exports.useMemo(function(){return function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ft=St.refKey,er=Ft===void 0?"ref":Ft,En=St.role,Je=St.onKeyDown,Mn=St.onFocus,br=St.onBlur,pt=St.onClick,Xe=St.onDragEnter,Bt=St.onDragOver,We=St.onDragLeave,Lt=St.onDrop,Rt=y9(St,vke);return Ao(Ao(iL({onKeyDown:un(Km(Je,gn)),onFocus:un(Km(Mn,De)),onBlur:un(Km(br,kt)),onClick:Pt(Km(pt,Zt)),onDragEnter:fr(Km(Xe,Ut)),onDragOver:fr(Km(Bt,ut)),onDragLeave:fr(Km(We,It)),onDrop:fr(Km(Lt,pn)),role:typeof En=="string"&&En!==""?En:"presentation"},er,Se),!r&&!G?{tabIndex:0}:{}),Rt)}},[Se,gn,De,kt,Zt,Ut,ut,It,pn,G,K,r]),wn=O.exports.useCallback(function(St){St.stopPropagation()},[]),Ln=O.exports.useMemo(function(){return function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ft=St.refKey,er=Ft===void 0?"ref":Ft,En=St.onChange,Je=St.onClick,Mn=y9(St,gke),br=iL({accept:le,multiple:f,type:"file",style:{display:"none"},onChange:Pt(Km(En,pn)),onClick:Pt(Km(Je,wn)),tabIndex:-1},er,Me);return Ao(Ao({},br),Mn)}},[Me,n,f,pn,r]);return Ao(Ao({},he),{},{isFocused:ye&&!r,getRootProps:Rn,getInputProps:Ln,rootRef:Se,inputRef:Me,open:Pt(ht)})}function Eke(e,t){switch(t.type){case"focus":return Ao(Ao({},e),{},{isFocused:!0});case"blur":return Ao(Ao({},e),{},{isFocused:!1});case"openDialog":return Ao(Ao({},oL),{},{isFileDialogActive:!0});case"closeDialog":return Ao(Ao({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ao(Ao({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ao(Ao({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ao({},oL);default:return e}}function TH(){}var mp="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/ImageUploader.tsx";const Tke=e=>{const{children:t}=e,n=ar(),r=tn(ch),i=Ub({}),[s,l]=O.exports.useState(!1),f=O.exports.useCallback(M=>{l(!0);const B=M.errors.reduce((F,z)=>F+`
`+z.message,"");i({title:"Upload failed",description:B,status:"error",isClosable:!0})},[i]),d=O.exports.useCallback(M=>{l(!0);const B={file:M};["img2img","inpainting"].includes(r)&&(B.destination=r),n(B$(B))},[n,r]),m=O.exports.useCallback((M,B)=>{B.forEach(F=>{f(F)}),M.forEach(F=>{d(F)})},[d,f]),{getRootProps:b,getInputProps:S,isDragAccept:N,isDragReject:w,isDragActive:T,open:L}=pX({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:m,maxFiles:1});return O.exports.useEffect(()=>{const M=B=>{const F=B.clipboardData?.items;if(!F)return;const z=[];for(const K of F)K.kind==="file"&&["image/png","image/jpg"].includes(K.type)&&z.push(K);if(!z.length)return;if(B.stopImmediatePropagation(),z.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const H=z[0].getAsFile();if(!H){i({description:"Unable to load file",status:"error",isClosable:!0});return}const G={file:H};["img2img","inpainting"].includes(r)&&(G.destination=r),n(B$(G))};return document.addEventListener("paste",M),()=>{document.removeEventListener("paste",M)}},[n,i,r]),_(Zq.Provider,{value:L,children:_("div",{...b({style:{}}),children:[_("input",{...S()},void 0,!1,{fileName:mp,lineNumber:134,columnNumber:9},void 0),t,T&&_("div",{className:"dropzone-container",children:[N&&_("div",{className:"dropzone-overlay is-drag-accept",children:_(_S,{size:"lg",children:"Drop Images"},void 0,!1,{fileName:mp,lineNumber:140,columnNumber:17},void 0)},void 0,!1,{fileName:mp,lineNumber:139,columnNumber:15},void 0),w&&_("div",{className:"dropzone-overlay is-drag-reject",children:[_(_S,{size:"lg",children:"Invalid Upload"},void 0,!1,{fileName:mp,lineNumber:145,columnNumber:17},void 0),_(_S,{size:"md",children:"Must be single JPEG or PNG image"},void 0,!1,{fileName:mp,lineNumber:146,columnNumber:17},void 0)]},void 0,!0,{fileName:mp,lineNumber:144,columnNumber:15},void 0),s&&_("div",{className:"dropzone-overlay is-handling-upload",children:_(lC,{},void 0,!1,{fileName:mp,lineNumber:151,columnNumber:17},void 0)},void 0,!1,{fileName:mp,lineNumber:150,columnNumber:15},void 0)]},void 0,!0,{fileName:mp,lineNumber:137,columnNumber:11},void 0)]},void 0,!0,{fileName:mp,lineNumber:133,columnNumber:7},void 0)},void 0,!1,{fileName:mp,lineNumber:132,columnNumber:5},void 0)};var RH="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/FloatingGalleryButton.tsx";const Rke=()=>{const e=ar();return _(Ta,{tooltip:"Show Gallery (G)",tooltipPlacement:"top","aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(bO(!0))},children:_(Mq,{},void 0,!1,{fileName:RH,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:RH,lineNumber:14,columnNumber:5},void 0)};function kke(e){return vr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}var f3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/FloatingOptionsPanelButtons.tsx";const Ake=ia(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),Oke=()=>{const e=ar(),{shouldShowProcessButtons:t}=tn(Ake);return _("div",{className:"show-hide-button-options",children:[_(Ta,{tooltip:"Show Options Panel (O)",tooltipPlacement:"top","aria-label":"Show Options Panel",onClick:()=>{e(qO(!0))},children:_(kke,{},void 0,!1,{fileName:f3,lineNumber:43,columnNumber:9},void 0)},void 0,!1,{fileName:f3,lineNumber:37,columnNumber:7},void 0),t&&_(Ci,{children:[_(Fq,{iconButton:!0},void 0,!1,{fileName:f3,lineNumber:47,columnNumber:11},void 0),_(Bq,{},void 0,!1,{fileName:f3,lineNumber:48,columnNumber:11},void 0),_(zq,{},void 0,!1,{fileName:f3,lineNumber:49,columnNumber:11},void 0)]},void 0,!0)]},void 0,!0,{fileName:f3,lineNumber:36,columnNumber:5},void 0)};var vp="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/app/App.tsx";L8e();const Lke=ia([e=>e.gallery,e=>e.options,e=>e.system,ch],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:s,shouldPinGallery:l}=e,{shouldShowOptionsPanel:f,shouldHoldOptionsPanelOpen:d,shouldPinOptionsPanel:m}=t,b=ra.reduce(n.model_list,(w,T,L)=>(T.status==="active"&&(w=L),w),""),S=!(i||s&&!l),N=!(f||d&&!m)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:b,shouldShowGalleryButton:S,shouldShowOptionsPanelButton:N}},{memoizeOptions:{resultEqualityCheck:ra.isEqual}}),Mke=()=>{const e=ar(),[t,n]=O.exports.useState(!1),{shouldShowGalleryButton:r,shouldShowOptionsPanelButton:i}=tn(Lke);return O.exports.useEffect(()=>{e(U4e()),n(!0)},[e]),t?_("div",{className:"App",children:_(Tke,{children:[_(g8e,{},void 0,!1,{fileName:vp,lineNumber:95,columnNumber:9},void 0),_("div",{className:"app-content",children:[_(R8e,{},void 0,!1,{fileName:vp,lineNumber:97,columnNumber:11},void 0),_(M7e,{},void 0,!1,{fileName:vp,lineNumber:98,columnNumber:11},void 0)]},void 0,!0,{fileName:vp,lineNumber:96,columnNumber:9},void 0),_("div",{className:"app-console",children:_(O8e,{},void 0,!1,{fileName:vp,lineNumber:101,columnNumber:11},void 0)},void 0,!1,{fileName:vp,lineNumber:100,columnNumber:9},void 0),r&&_(Rke,{},void 0,!1,{fileName:vp,lineNumber:103,columnNumber:37},void 0),i&&_(Oke,{},void 0,!1,{fileName:vp,lineNumber:104,columnNumber:42},void 0)]},void 0,!0,{fileName:vp,lineNumber:94,columnNumber:7},void 0)},void 0,!1,{fileName:vp,lineNumber:93,columnNumber:5},void 0):_(rX,{},void 0,!1,{fileName:vp,lineNumber:108,columnNumber:5},void 0)};var sS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/main.tsx";const mX=l3e(tX);$k.createRoot(document.getElementById("root")).render(_(ke.StrictMode,{children:_(B5e,{store:tX,children:_(nX,{loading:_(rX,{},void 0,!1,{fileName:sS,lineNumber:21,columnNumber:29},void 0),persistor:mX,children:_(Oxe,{theme:mH,children:[_(yee,{initialColorMode:mH.config.initialColorMode},void 0,!1,{fileName:sS,lineNumber:23,columnNumber:11},void 0),_(Mke,{},void 0,!1,{fileName:sS,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:sS,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:sS,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:sS,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:sS,lineNumber:19,columnNumber:3},void 0));