InvokeAI/frontend/dist/assets/index.3d2e59c5.js
2022-09-17 16:32:59 +10:00

695 lines
1014 KiB
JavaScript

function WV(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerpolicy&&(c.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?c.credentials="include":s.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}},OA={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 r="18.2.0",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),I=Symbol.iterator,j="@@iterator";function M(S){if(S===null||typeof S!="object")return null;var R=I&&S[I]||S[j];return typeof R=="function"?R:null}var z={current:null},U={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},de=null;function ve(S){de=S}X.setExtraStackFrame=function(S){de=S},X.getCurrentStack=null,X.getStackAddendum=function(){var S="";de&&(S+=de);var R=X.getCurrentStack;return R&&(S+=R()||""),S};var se=!1,be=!1,Xe=!1,ie=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:U,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=V;function Ce(S){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("warn",S,$)}}function oe(S){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("error",S,$)}}function Se(S,R,$){{var G=Re.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(R+="%s",$=$.concat([te]));var Fe=$.map(function(xe){return String(xe)});Fe.unshift("Warning: "+R),Function.prototype.apply.call(console[S],console,Fe)}}var Te={};function pe(S,R){{var $=S.constructor,G=$&&($.displayName||$.name)||"ReactClass",te=G+"."+R;if(Te[te])return;oe("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.",R,G),Te[te]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,R,$){pe(S,"forceUpdate")},enqueueReplaceState:function(S,R,$,G){pe(S,"replaceState")},enqueueSetState:function(S,R,$,G){pe(S,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(S,R,$){this.props=S,this.context=R,this.refs=Le,this.updater=$||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,R){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,R,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var st={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)."]},mt=function(S,R){Object.defineProperty(Ye.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(S,R,$){this.props=S,this.context=R,this.refs=Le,this.updater=$||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Yt(S){return We(S)}function ye(S){{var R=typeof Symbol=="function"&&Symbol.toStringTag,$=R&&S[Symbol.toStringTag]||S.constructor.name||"Object";return $}}function Mt(S){try{return Kt(S),!1}catch{return!0}}function Kt(S){return""+S}function St(S){if(Mt(S))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Kt(S)}function ar(S,R,$){var G=S.displayName;if(G)return G;var te=R.displayName||R.name||"";return te!==""?$+"("+te+")":$}function ir(S){return S.displayName||"Context"}function Bt(S){if(S==null)return null;if(typeof S.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case c:return"Fragment";case s:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var R=S;return ir(R)+".Consumer";case m:var $=S;return ir($._context)+".Provider";case b:return ar(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Bt(S.type)||"Memo";case N:{var te=S,Fe=te._payload,xe=te._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(S){if(fn.call(S,"ref")){var R=Object.getOwnPropertyDescriptor(S,"ref").get;if(R&&R.isReactWarning)return!1}return S.ref!==void 0}function Tt(S){if(fn.call(S,"key")){var R=Object.getOwnPropertyDescriptor(S,"key").get;if(R&&R.isReactWarning)return!1}return S.key!==void 0}function ke(S,R){var $=function(){hn||(hn=!0,oe("%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)",R))};$.isReactWarning=!0,Object.defineProperty(S,"key",{get:$,configurable:!0})}function jt(S,R){var $=function(){Ve||(Ve=!0,oe("%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)",R))};$.isReactWarning=!0,Object.defineProperty(S,"ref",{get:$,configurable:!0})}function xn(S){if(typeof S.ref=="string"&&K.current&&S.__self&&K.current.stateNode!==S.__self){var R=Bt(K.current.type);Ze[R]||(oe('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',R,S.ref),Ze[R]=!0)}}var je=function(S,R,$,G,te,Fe,xe){var $e={$$typeof:i,type:S,key:R,ref:$,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(S,R,$){var G,te={},Fe=null,xe=null,$e=null,it=null;if(R!=null){Jt(R)&&(xe=R.ref,xn(R)),Tt(R)&&(St(R.key),Fe=""+R.key),$e=R.__self===void 0?null:R.__self,it=R.__source===void 0?null:R.__source;for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(te[G]=R[G])}var gt=arguments.length-2;if(gt===1)te.children=$;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),te.children=Nt}if(S&&S.defaultProps){var Lt=S.defaultProps;for(G in Lt)te[G]===void 0&&(te[G]=Lt[G])}if(Fe||xe){var wt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&ke(te,wt),xe&&jt(te,wt)}return je(S,Fe,xe,$e,it,K.current,te)}function xt(S,R){var $=je(S.type,R,S.ref,S._self,S._source,S._owner,S.props);return $}function dn(S,R,$){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Ie({},S.props),Fe=S.key,xe=S.ref,$e=S._self,it=S._source,gt=S._owner;if(R!=null){Jt(R)&&(xe=R.ref,gt=K.current),Tt(R)&&(St(R.key),Fe=""+R.key);var Nt;S.type&&S.type.defaultProps&&(Nt=S.type.defaultProps);for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(R[G]===void 0&&Nt!==void 0?te[G]=Nt[G]:te[G]=R[G])}var pt=arguments.length-2;if(pt===1)te.children=$;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];te.children=Lt}return je(S.type,Fe,xe,$e,it,gt,te)}function Xt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var wn=".",Dn=":";function Nr(S){var R=/[=:]/g,$={"=":"=0",":":"=2"},G=S.replace(R,function(te){return $[te]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(S){return S.replace(ca,"$&/")}function Cn(S,R){return typeof S=="object"&&S!==null&&S.key!=null?(St(S.key),Nr(""+S.key)):R.toString(36)}function fa(S,R,$,G,te){var Fe=typeof S;(Fe==="undefined"||Fe==="boolean")&&(S=null);var xe=!1;if(S===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(S.$$typeof){case i:case s:xe=!0}}if(xe){var $e=S,it=te($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,R,Nt,"",function(Zf){return Zf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,$+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),R.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+Dn;if(Yt(S))for(var vi=0;vi<S.length;vi++)pt=S[vi],Lt=Dt+Cn(pt,vi),wt+=fa(pt,R,$,Lt,te);else{var va=M(S);if(typeof va=="function"){var Po=S;va===Po.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var Su=va.call(Po),Nn,gi=0;!(Nn=Su.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,gi++),wt+=fa(pt,R,$,Lt,te)}else if(Fe==="object"){var os=String(S);throw new Error("Objects are not valid as a React child (found: "+(os==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":os)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function gr(S,R,$){if(S==null)return S;var G=[],te=0;return fa(S,G,"","",function(Fe){return R.call($,Fe,te++)}),G}function xo(S){var R=0;return gr(S,function(){R++}),R}function Qo(S,R,$){gr(S,function(){R.apply(this,arguments)},$)}function Jo(S){return gr(S,function(R){return R})||[]}function wo(S){if(!Xt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Co(S){var R={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:m,_context:R};var $=!1,G=!1,te=!1;{var Fe={$$typeof:v,_context:R};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(xe){R.Provider=xe}},_currentValue:{get:function(){return R._currentValue},set:function(xe){R._currentValue=xe}},_currentValue2:{get:function(){return R._currentValue2},set:function(xe){R._currentValue2=xe}},_threadCount:{get:function(){return R._threadCount},set:function(xe){R._threadCount=xe}},Consumer:{get:function(){return $||($=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(xe){te||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),te=!0)}}}),R.Consumer=Fe}return R._currentRenderer=null,R._currentRenderer2=null,R}var cr=-1,Oa=0,Di=1,ka=2;function q(S){if(S._status===cr){var R=S._result,$=R();if($.then(function(Fe){if(S._status===Oa||S._status===cr){var xe=S;xe._status=Di,xe._result=Fe}},function(Fe){if(S._status===Oa||S._status===cr){var xe=S;xe._status=ka,xe._result=Fe}}),S._status===cr){var G=S;G._status=Oa,G._result=$}}if(S._status===Di){var te=S._result;return te===void 0&&oe(`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?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw S._result}function Be(S){var R={_status:cr,_result:S},$={$$typeof:N,_payload:R,_init:q};{var G,te;Object.defineProperties($,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("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."),G=Fe,Object.defineProperty($,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("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."),te=Fe,Object.defineProperty($,"propTypes",{enumerable:!0})}}})}return $}function qe(S){S!=null&&S.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?oe("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:b,render:S};{var $;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return $},set:function(G){$=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return R}var bt;bt=Symbol.for("react.module.reference");function nn(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===h||ce||S===u||S===x||S===C||ie||S===A||se||be||Xe||typeof S=="object"&&S!==null&&(S.$$typeof===N||S.$$typeof===_||S.$$typeof===m||S.$$typeof===v||S.$$typeof===b||S.$$typeof===bt||S.getModuleId!==void 0))}function gn(S,R){nn(S)||oe("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var $={$$typeof:_,type:S,compare:R===void 0?null:R};{var G;Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return $}function tt(){var S=z.current;return S===null&&oe(`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.`),S}function $t(S){var R=tt();if(S._context!==void 0){var $=S._context;$.Consumer===S?oe("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?"):$.Provider===S&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(S)}function zn(S){var R=tt();return R.useState(S)}function In(S,R,$){var G=tt();return G.useReducer(S,R,$)}function an(S){var R=tt();return R.useRef(S)}function Lr(S,R){var $=tt();return $.useEffect(S,R)}function ci(S,R){var $=tt();return $.useInsertionEffect(S,R)}function _o(S,R){var $=tt();return $.useLayoutEffect(S,R)}function da(S,R){var $=tt();return $.useCallback(S,R)}function Qi(S,R){var $=tt();return $.useMemo(S,R)}function yu(S,R,$){var G=tt();return G.useImperativeHandle(S,R,$)}function fi(S,R){{var $=tt();return $.useDebugValue(S,R)}}function zs(){var S=tt();return S.useTransition()}function Pi(S){var R=tt();return R.useDeferredValue(S)}function Zt(){var S=tt();return S.useId()}function Mi(S,R,$){var G=tt();return G.useSyncExternalStore(S,R,$)}var pa=0,Eo,es,To,ts,ns,No,Ro;function rs(){}rs.__reactDisabledLog=!0;function Bs(){{if(pa===0){Eo=console.log,es=console.info,To=console.warn,ts=console.error,ns=console.group,No=console.groupCollapsed,Ro=console.groupEnd;var S={configurable:!0,enumerable:!0,value:rs,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}pa++}}function Us(){{if(pa--,pa===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},S,{value:Eo}),info:Ie({},S,{value:es}),warn:Ie({},S,{value:To}),error:Ie({},S,{value:ts}),group:Ie({},S,{value:ns}),groupCollapsed:Ie({},S,{value:No}),groupEnd:Ie({},S,{value:Ro})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=Re.ReactCurrentDispatcher,Dr;function Da(S,R,$){{if(Dr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);Dr=G&&G[1]||""}return`
`+Dr+S}}var ha=!1,Pa;{var as=typeof WeakMap=="function"?WeakMap:Map;Pa=new as}function Ao(S,R){if(!S||ha)return"";{var $=Pa.get(S);if($!==void 0)return $}var G;ha=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=di.current,di.current=null,Bs();try{if(R){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(S,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}S.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}S()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
`),it=G.stack.split(`
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
`+$e[gt].replace(" at new "," at ");return S.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Pa.set(S,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,di.current=Fe,Us(),Error.prepareStackTrace=te}var Lt=S?S.displayName||S.name:"",wt=Lt?Da(Lt):"";return typeof S=="function"&&Pa.set(S,wt),wt}function is(S,R,$){return Ao(S,!1)}function Nl(S){var R=S.prototype;return!!(R&&R.isReactComponent)}function ma(S,R,$){if(S==null)return"";if(typeof S=="function")return Ao(S,Nl(S));if(typeof S=="string")return Da(S);switch(S){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return is(S.render);case _:return ma(S.type,R,$);case N:{var G=S,te=G._payload,Fe=G._init;try{return ma(Fe(te),R,$)}catch{}}}return""}var Oo={},Ma=Re.ReactDebugCurrentFrame;function pi(S){if(S){var R=S._owner,$=ma(S.type,S._source,R?R.type:null);Ma.setExtraStackFrame($)}else Ma.setExtraStackFrame(null)}function js(S,R,$,G,te){{var Fe=Function.call.bind(fn);for(var xe in S)if(Fe(S,xe)){var $e=void 0;try{if(typeof S[xe]!="function"){var it=Error((G||"React class")+": "+$+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=S[xe](R,xe,G,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(pi(te),oe("%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).",G||"React class",$,xe,typeof $e),pi(null)),$e instanceof Error&&!($e.message in Oo)&&(Oo[$e.message]=!0,pi(te),oe("Failed %s type: %s",$,$e.message),pi(null))}}}function on(S){if(S){var R=S._owner,$=ma(S.type,S._source,R?R.type:null);ve($)}else ve(null)}var hi;hi=!1;function ko(){if(K.current){var S=Bt(K.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function It(S){if(S!==void 0){var R=S.fileName.replace(/^.*[\\\/]/,""),$=S.lineNumber;return`
Check your code at `+R+":"+$+"."}return""}function $s(S){return S!=null?It(S.__source):""}var yr={};function Ii(S){var R=ko();if(!R){var $=typeof S=="string"?S:S.displayName||S.name;$&&(R=`
Check the top-level render call using <`+$+">.")}return R}function ja(S,R){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var $=Ii(R);if(!yr[$]){yr[$]=!0;var G="";S&&S._owner&&S._owner!==K.current&&(G=" It was passed a child from "+Bt(S._owner.type)+"."),on(S),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,G),on(null)}}}function Ji(S,R){if(typeof S=="object"){if(Yt(S))for(var $=0;$<S.length;$++){var G=S[$];Xt(G)&&ja(G,R)}else if(Xt(S))S._store&&(S._store.validated=!0);else if(S){var te=M(S);if(typeof te=="function"&&te!==S.entries)for(var Fe=te.call(S),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&ja(xe.value,R)}}}function Cr(S){{var R=S.type;if(R==null||typeof R=="string")return;var $;if(typeof R=="function")$=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===b||R.$$typeof===_))$=R.propTypes;else return;if($){var G=Bt(R);js($,S.props,"prop",G,S)}else if(R.PropTypes!==void 0&&!hi){hi=!0;var te=Bt(R);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(S){{for(var R=Object.keys(S.props),$=0;$<R.length;$++){var G=R[$];if(G!=="children"&&G!=="key"){on(S),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}S.ref!==null&&(on(S),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Do(S,R,$){var G=nn(S);if(!G){var te="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(te+=" 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 Fe=$s(R);Fe?te+=Fe:te+=ko();var xe;S===null?xe="null":Yt(S)?xe="array":S!==void 0&&S.$$typeof===i?(xe="<"+(Bt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof S,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)Ji(arguments[it],S);return S===c?er($e):Cr($e),$e}var Vr=!1;function ur(S){var R=Do.bind(null,S);return R.type=S,Vr||(Vr=!0,Ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(R,"type",{enumerable:!1,get:function(){return Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),R}function ea(S,R,$){for(var G=dn.apply(this,arguments),te=2;te<arguments.length;te++)Ji(arguments[te],G.type);return Cr(G),G}function bu(S,R){var $=U.transition;U.transition={};var G=U.transition;U.transition._updatedFibers=new Set;try{S()}finally{if(U.transition=$,$===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&Ce("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."),G._updatedFibers.clear()}}}var eo=!1,mi=null;function Vs(S){if(mi===null)try{var R=("require"+Math.random()).slice(0,7),$=e&&e[R];mi=$.call(e,"timers").setImmediate}catch{mi=function(te){eo===!1&&(eo=!0,typeof MessageChannel>"u"&&oe("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 Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return mi(S)}var pn=0,Pn=!1;function Rl(S){{var R=pn;pn++,V.current===null&&(V.current=[]);var $=V.isBatchingLegacy,G;try{if(V.isBatchingLegacy=!0,G=S(),!$&&V.didScheduleLegacyUpdate){var te=V.current;te!==null&&(V.didScheduleLegacyUpdate=!1,fe(te))}}catch(Lt){throw Ia(R),Lt}finally{V.isBatchingLegacy=$}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(R),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(R),wt(Dt)})}};return!Pn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Pn=!0,oe("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 () => ...);"))}),$e}else{var it=G;if(Ia(R),pn===0){var gt=V.current;gt!==null&&(fe(gt),V.current=null);var Nt={then:function(Lt,wt){V.current===null?(V.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(S){S!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=S}function W(S,R,$){{var G=V.current;if(G!==null)try{fe(G),Vs(function(){G.length===0?(V.current=null,R(S)):W(S,R,$)})}catch(te){$(te)}else R(S)}}var Q=!1;function fe(S){if(!Q){Q=!0;var R=0;try{for(;R<S.length;R++){var $=S[R];do $=$(!0);while($!==null)}S.length=0}catch(G){throw S=S.slice(R+1),G}finally{Q=!1}}}var at=Do,sn=ea,Mn=ur,Vt={map:gr,forEach:Qo,count:xo,toArray:Jo,only:wo};t.Children=Vt,t.Component=Ye,t.Fragment=c,t.Profiler=h,t.PureComponent=vt,t.StrictMode=u,t.Suspense=x,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,t.cloneElement=sn,t.createContext=Co,t.createElement=at,t.createFactory=Mn,t.createRef=zt,t.forwardRef=qe,t.isValidElement=Xt,t.lazy=Be,t.memo=gn,t.startTransition=bu,t.unstable_act=Rl,t.useCallback=da,t.useContext=$t,t.useDebugValue=fi,t.useDeferredValue=Pi,t.useEffect=Lr,t.useId=Zt,t.useImperativeHandle=yu,t.useInsertionEffect=ci,t.useLayoutEffect=_o,t.useMemo=Qi,t.useReducer=In,t.useRef=an,t.useState=zn,t.useSyncExternalStore=Mi,t.useTransition=zs,t.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(OA,OA.exports);(function(e){e.exports=OA.exports})(D);const Ue=GV(D.exports),iI=WV({__proto__:null,default:Ue},[D.exports]);var kA={},xb={exports:{}},Vo={},m3={exports:{}},v3={};/**
* @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,r=!1,i=5;function s(je,rt){var xt=je.length;je.push(rt),h(je,rt,xt)}function c(je){return je.length===0?null:je[0]}function u(je){if(je.length===0)return null;var rt=je[0],xt=je.pop();return xt!==rt&&(je[0]=xt,m(je,xt,0)),rt}function h(je,rt,xt){for(var dn=xt;dn>0;){var Xt=dn-1>>>1,wn=je[Xt];if(v(wn,rt)>0)je[Xt]=rt,je[dn]=wn,dn=Xt;else return}}function m(je,rt,xt){for(var dn=xt,Xt=je.length,wn=Xt>>>1;dn<wn;){var Dn=(dn+1)*2-1,Nr=je[Dn],Tn=Dn+1,ca=je[Tn];if(v(Nr,rt)<0)Tn<Xt&&v(ca,Nr)<0?(je[dn]=ca,je[Tn]=rt,dn=Tn):(je[dn]=Nr,je[Dn]=rt,dn=Dn);else if(Tn<Xt&&v(ca,rt)<0)je[dn]=ca,je[Tn]=rt,dn=Tn;else return}}function v(je,rt){var xt=je.sortIndex-rt.sortIndex;return xt!==0?xt:je.id-rt.id}var b=1,x=2,C=3,_=4,N=5;function A(je,rt){}var I=typeof performance=="object"&&typeof performance.now=="function";if(I){var j=performance;e.unstable_now=function(){return j.now()}}else{var M=Date,z=M.now();e.unstable_now=function(){return M.now()-z}}var U=1073741823,V=-1,K=250,X=5e3,de=1e4,ve=U,se=[],be=[],Xe=1,ie=null,ce=C,Re=!1,Ce=!1,oe=!1,Se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,pe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function we(je){for(var rt=c(be);rt!==null;){if(rt.callback===null)u(be);else if(rt.startTime<=je)u(be),rt.sortIndex=rt.expirationTime,s(se,rt);else return;rt=c(be)}}function Ie(je){if(oe=!1,we(je),!Ce)if(c(se)!==null)Ce=!0,Jt(Le);else{var rt=c(be);rt!==null&&Tt(Ie,rt.startTime-je)}}function Le(je,rt){Ce=!1,oe&&(oe=!1,ke()),Re=!0;var xt=ce;try{var dn;if(!r)return Ye(je,rt)}finally{ie=null,ce=xt,Re=!1}}function Ye(je,rt){var xt=rt;for(we(xt),ie=c(se);ie!==null&&!t&&!(ie.expirationTime>xt&&(!je||ir()));){var dn=ie.callback;if(typeof dn=="function"){ie.callback=null,ce=ie.priorityLevel;var Xt=ie.expirationTime<=xt,wn=dn(Xt);xt=e.unstable_now(),typeof wn=="function"?ie.callback=wn:ie===c(se)&&u(se),we(xt)}else u(se);ie=c(se)}if(ie!==null)return!0;var Dn=c(be);return Dn!==null&&Tt(Ie,Dn.startTime-xt),!1}function st(je,rt){switch(je){case b:case x:case C:case _:case N:break;default:je=C}var xt=ce;ce=je;try{return rt()}finally{ce=xt}}function mt(je){var rt;switch(ce){case b:case x:case C:rt=C;break;default:rt=ce;break}var xt=ce;ce=rt;try{return je()}finally{ce=xt}}function Gt(je){var rt=ce;return function(){var xt=ce;ce=rt;try{return je.apply(this,arguments)}finally{ce=xt}}}function Qe(je,rt,xt){var dn=e.unstable_now(),Xt;if(typeof xt=="object"&&xt!==null){var wn=xt.delay;typeof wn=="number"&&wn>0?Xt=dn+wn:Xt=dn}else Xt=dn;var Dn;switch(je){case b:Dn=V;break;case x:Dn=K;break;case N:Dn=ve;break;case _:Dn=de;break;case C:default:Dn=X;break}var Nr=Xt+Dn,Tn={id:Xe++,callback:rt,priorityLevel:je,startTime:Xt,expirationTime:Nr,sortIndex:-1};return Xt>dn?(Tn.sortIndex=Xt,s(be,Tn),c(se)===null&&Tn===c(be)&&(oe?ke():oe=!0,Tt(Ie,Xt-dn))):(Tn.sortIndex=Nr,s(se,Tn),!Ce&&!Re&&(Ce=!0,Jt(Le))),Tn}function vt(){}function Et(){!Ce&&!Re&&(Ce=!0,Jt(Le))}function zt(){return c(se)}function We(je){je.callback=null}function Yt(){return ce}var ye=!1,Mt=null,Kt=-1,St=i,ar=-1;function ir(){var je=e.unstable_now()-ar;return!(je<St)}function Bt(){}function fn(je){if(je<0||je>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?St=Math.floor(1e3/je):St=i}var kn=function(){if(Mt!==null){var je=e.unstable_now();ar=je;var rt=!0,xt=!0;try{xt=Mt(rt,je)}finally{xt?hn():(ye=!1,Mt=null)}}else ye=!1},hn;if(typeof pe=="function")hn=function(){pe(kn)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Ze=Ve.port2;Ve.port1.onmessage=kn,hn=function(){Ze.postMessage(null)}}else hn=function(){Se(kn,0)};function Jt(je){Mt=je,ye||(ye=!0,hn())}function Tt(je,rt){Kt=Se(function(){je(e.unstable_now())},rt)}function ke(){Te(Kt),Kt=-1}var jt=Bt,xn=null;e.unstable_IdlePriority=N,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=_,e.unstable_NormalPriority=C,e.unstable_Profiling=xn,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=We,e.unstable_continueExecution=Et,e.unstable_forceFrameRate=fn,e.unstable_getCurrentPriorityLevel=Yt,e.unstable_getFirstCallbackNode=zt,e.unstable_next=mt,e.unstable_pauseExecution=vt,e.unstable_requestPaint=jt,e.unstable_runWithPriority=st,e.unstable_scheduleCallback=Qe,e.unstable_shouldYield=ir,e.unstable_wrapCallback=Gt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(v3);(function(e){e.exports=v3})(m3);/**
* @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=D.exports,t=m3.exports,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function s(n){i=n}function c(n){if(!i){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];h("warn",n,o)}}function u(n){if(!i){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];h("error",n,o)}}function h(n,a,o){{var f=r.ReactDebugCurrentFrame,p=f.getStackAddendum();p!==""&&(a+="%s",o=o.concat([p]));var y=o.map(function(w){return String(w)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,y)}}var m=0,v=1,b=2,x=3,C=4,_=5,N=6,A=7,I=8,j=9,M=10,z=11,U=12,V=13,K=14,X=15,de=16,ve=17,se=18,be=19,Xe=21,ie=22,ce=23,Re=24,Ce=25,oe=!0,Se=!1,Te=!1,pe=!1,we=!1,Ie=!0,Le=!1,Ye=!1,st=!0,mt=!0,Gt=!0,Qe=new Set,vt={},Et={};function zt(n,a){We(n,a),We(n+"Capture",a)}function We(n,a){vt[n]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),vt[n]=a;{var o=n.toLowerCase();Et[o]=n,n==="onDoubleClick"&&(Et.ondblclick=n)}for(var f=0;f<a.length;f++)Qe.add(a[f])}var Yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=Object.prototype.hasOwnProperty;function Mt(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,o=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return o}}function Kt(n){try{return St(n),!1}catch{return!0}}function St(n){return""+n}function ar(n,a){if(Kt(n))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function ir(n){if(Kt(n))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}function Bt(n,a){if(Kt(n))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function fn(n,a){if(Kt(n))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function kn(n){if(Kt(n))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}function hn(n){if(Kt(n))return u("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.",Mt(n)),St(n)}var Ve=0,Ze=1,Jt=2,Tt=3,ke=4,jt=5,xn=6,je=":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",rt=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xt=new RegExp("^["+je+"]["+rt+"]*$"),dn={},Xt={};function wn(n){return ye.call(Xt,n)?!0:ye.call(dn,n)?!1:xt.test(n)?(Xt[n]=!0,!0):(dn[n]=!0,u("Invalid attribute name: `%s`",n),!1)}function Dn(n,a,o){return a!==null?a.type===Ve:o?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Nr(n,a,o,f){if(o!==null&&o.type===Ve)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(o!==null)return!o.acceptsBooleans;var p=n.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Tn(n,a,o,f){if(a===null||typeof a>"u"||Nr(n,a,o,f))return!0;if(f)return!1;if(o!==null)switch(o.type){case Tt:return!a;case ke:return a===!1;case jt:return isNaN(a);case xn:return isNaN(a)||a<1}return!1}function ca(n){return Cn.hasOwnProperty(n)?Cn[n]:null}function Fn(n,a,o,f,p,y,w){this.acceptsBooleans=a===Jt||a===Tt||a===ke,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=o,this.propertyName=n,this.type=a,this.sanitizeURL=y,this.removeEmptyString=w}var Cn={},fa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fa.forEach(function(n){Cn[n]=new Fn(n,Ve,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],o=n[1];Cn[a]=new Fn(a,Ze,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n,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(n){Cn[n]=new Fn(n,Tt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Cn[n]=new Fn(n,Tt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Cn[n]=new Fn(n,ke,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Cn[n]=new Fn(n,xn,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Cn[n]=new Fn(n,jt,!1,n.toLowerCase(),null,!1,!1)});var gr=/[\-\:]([a-z])/g,xo=function(n){return n[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(n){var a=n.replace(gr,xo);Cn[a]=new Fn(a,Ze,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(gr,xo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(gr,xo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!1,!1)});var Qo="xlinkHref";Cn[Qo]=new Fn("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!0,!0)});var Jo=/^[\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,wo=!1;function Co(n){!wo&&Jo.test(n)&&(wo=!0,u("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(n)))}function cr(n,a,o,f){if(f.mustUseProperty){var p=f.propertyName;return n[p]}else{ar(o,a),f.sanitizeURL&&Co(""+o);var y=f.attributeName,w=null;if(f.type===ke){if(n.hasAttribute(y)){var T=n.getAttribute(y);return T===""?!0:Tn(a,o,f,!1)?T:T===""+o?o:T}}else if(n.hasAttribute(y)){if(Tn(a,o,f,!1))return n.getAttribute(y);if(f.type===Tt)return o;w=n.getAttribute(y)}return Tn(a,o,f,!1)?w===null?o:w:w===""+o?o:w}}function Oa(n,a,o,f){{if(!wn(a))return;if(!n.hasAttribute(a))return o===void 0?void 0:null;var p=n.getAttribute(a);return ar(o,a),p===""+o?o:p}}function Di(n,a,o,f){var p=ca(a);if(!Dn(a,p,f)){if(Tn(a,o,p,f)&&(o=null),f||p===null){if(wn(a)){var y=a;o===null?n.removeAttribute(y):(ar(o,a),n.setAttribute(y,""+o))}return}var w=p.mustUseProperty;if(w){var T=p.propertyName;if(o===null){var O=p.type;n[T]=O===Tt?!1:""}else n[T]=o;return}var F=p.attributeName,H=p.attributeNamespace;if(o===null)n.removeAttribute(F);else{var ee=p.type,J;ee===Tt||ee===ke&&o===!0?J="":(ar(o,F),J=""+o,p.sanitizeURL&&Co(J.toString())),H?n.setAttributeNS(H,F,J):n.setAttribute(F,J)}}}var ka=Symbol.for("react.element"),q=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),bt=Symbol.for("react.profiler"),nn=Symbol.for("react.provider"),gn=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),zn=Symbol.for("react.suspense_list"),In=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Lr=Symbol.for("react.scope"),ci=Symbol.for("react.debug_trace_mode"),_o=Symbol.for("react.offscreen"),da=Symbol.for("react.legacy_hidden"),Qi=Symbol.for("react.cache"),yu=Symbol.for("react.tracing_marker"),fi=Symbol.iterator,zs="@@iterator";function Pi(n){if(n===null||typeof n!="object")return null;var a=fi&&n[fi]||n[zs];return typeof a=="function"?a:null}var Zt=Object.assign,Mi=0,pa,Eo,es,To,ts,ns,No;function Ro(){}Ro.__reactDisabledLog=!0;function rs(){{if(Mi===0){pa=console.log,Eo=console.info,es=console.warn,To=console.error,ts=console.group,ns=console.groupCollapsed,No=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Ro,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Mi++}}function Bs(){{if(Mi--,Mi===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Zt({},n,{value:pa}),info:Zt({},n,{value:Eo}),warn:Zt({},n,{value:es}),error:Zt({},n,{value:To}),group:Zt({},n,{value:ts}),groupCollapsed:Zt({},n,{value:ns}),groupEnd:Zt({},n,{value:No})})}Mi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Us=r.ReactCurrentDispatcher,di;function Dr(n,a,o){{if(di===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);di=f&&f[1]||""}return`
`+di+n}}var Da=!1,ha;{var Pa=typeof WeakMap=="function"?WeakMap:Map;ha=new Pa}function as(n,a){if(!n||Da)return"";{var o=ha.get(n);if(o!==void 0)return o}var f;Da=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Us.current,Us.current=null,rs();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(me){f=me}Reflect.construct(n,[],w)}else{try{w.call()}catch(me){f=me}n.call(w.prototype)}}else{try{throw Error()}catch(me){f=me}n()}}catch(me){if(me&&f&&typeof me.stack=="string"){for(var T=me.stack.split(`
`),O=f.stack.split(`
`),F=T.length-1,H=O.length-1;F>=1&&H>=0&&T[F]!==O[H];)H--;for(;F>=1&&H>=0;F--,H--)if(T[F]!==O[H]){if(F!==1||H!==1)do if(F--,H--,H<0||T[F]!==O[H]){var ee=`
`+T[F].replace(" at new "," at ");return n.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",n.displayName)),typeof n=="function"&&ha.set(n,ee),ee}while(F>=1&&H>=0);break}}}finally{Da=!1,Us.current=y,Bs(),Error.prepareStackTrace=p}var J=n?n.displayName||n.name:"",he=J?Dr(J):"";return typeof n=="function"&&ha.set(n,he),he}function Ao(n,a,o){return as(n,!0)}function is(n,a,o){return as(n,!1)}function Nl(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function ma(n,a,o){if(n==null)return"";if(typeof n=="function")return as(n,Nl(n));if(typeof n=="string")return Dr(n);switch(n){case $t:return Dr("Suspense");case zn:return Dr("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case tt:return is(n.render);case In:return ma(n.type,a,o);case an:{var f=n,p=f._payload,y=f._init;try{return ma(y(p),a,o)}catch{}}}return""}function Oo(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case _:return Dr(n.type);case de:return Dr("Lazy");case V:return Dr("Suspense");case be:return Dr("SuspenseList");case m:case b:case X:return is(n.type);case z:return is(n.type.render);case v:return Ao(n.type);default:return""}}function Ma(n){try{var a="",o=n;do a+=Oo(o),o=o.return;while(o);return a}catch(f){return`
Error generating stack: `+f.message+`
`+f.stack}}function pi(n,a,o){var f=n.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?o+"("+p+")":o}function js(n){return n.displayName||"Context"}function on(n){if(n==null)return null;if(typeof n.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Be:return"Fragment";case q:return"Portal";case bt:return"Profiler";case qe:return"StrictMode";case $t:return"Suspense";case zn:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gn:var a=n;return js(a)+".Consumer";case nn:var o=n;return js(o._context)+".Provider";case tt:return pi(n,n.render,"ForwardRef");case In:var f=n.displayName||null;return f!==null?f:on(n.type)||"Memo";case an:{var p=n,y=p._payload,w=p._init;try{return on(w(y))}catch{return null}}}return null}function hi(n,a,o){var f=a.displayName||a.name||"";return n.displayName||(f!==""?o+"("+f+")":o)}function ko(n){return n.displayName||"Context"}function It(n){var a=n.tag,o=n.type;switch(a){case Re:return"Cache";case j:var f=o;return ko(f)+".Consumer";case M:var p=o;return ko(p._context)+".Provider";case se:return"DehydratedFragment";case z:return hi(o,o.render,"ForwardRef");case A:return"Fragment";case _:return o;case C:return"Portal";case x:return"Root";case N:return"Text";case de:return on(o);case I:return o===qe?"StrictMode":"Mode";case ie:return"Offscreen";case U:return"Profiler";case Xe:return"Scope";case V:return"Suspense";case be:return"SuspenseList";case Ce:return"TracingMarker";case v:case m:case ve:case b:case K:case X:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var $s=r.ReactDebugCurrentFrame,yr=null,Ii=!1;function ja(){{if(yr===null)return null;var n=yr._debugOwner;if(n!==null&&typeof n<"u")return It(n)}return null}function Ji(){return yr===null?"":Ma(yr)}function Cr(){$s.getCurrentStack=null,yr=null,Ii=!1}function er(n){$s.getCurrentStack=n===null?null:Ji,yr=n,Ii=!1}function Do(){return yr}function Vr(n){Ii=n}function ur(n){return""+n}function ea(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return hn(n),n;default:return""}}var bu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function eo(n,a){bu[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("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`."),a.onChange||a.readOnly||a.disabled||a.checked==null||u("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 mi(n){var a=n.type,o=n.nodeName;return o&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Vs(n){return n._valueTracker}function pn(n){n._valueTracker=null}function Pn(n){var a="";return n&&(mi(n)?a=n.checked?"true":"false":a=n.value),a}function Rl(n){var a=mi(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);hn(n[a]);var f=""+n[a];if(!(n.hasOwnProperty(a)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var p=o.get,y=o.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){hn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(n,a,{enumerable:o.enumerable});var w={getValue:function(){return f},setValue:function(T){hn(T),f=""+T},stopTracking:function(){pn(n),delete n[a]}};return w}}function Ia(n){Vs(n)||(n._valueTracker=Rl(n))}function W(n){if(!n)return!1;var a=Vs(n);if(!a)return!0;var o=a.getValue(),f=Pn(n);return f!==o?(a.setValue(f),!0):!1}function Q(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var fe=!1,at=!1,sn=!1,Mn=!1;function Vt(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function S(n,a){var o=n,f=a.checked,p=Zt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??o._wrapperState.initialChecked});return p}function R(n,a){eo("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!at&&(u("%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",ja()||"A component",a.type),at=!0),a.value!==void 0&&a.defaultValue!==void 0&&!fe&&(u("%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",ja()||"A component",a.type),fe=!0);var o=n,f=a.defaultValue==null?"":a.defaultValue;o._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:ea(a.value!=null?a.value:f),controlled:Vt(a)}}function $(n,a){var o=n,f=a.checked;f!=null&&Di(o,"checked",f,!1)}function G(n,a){var o=n;{var f=Vt(a);!o._wrapperState.controlled&&f&&!Mn&&(u("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"),Mn=!0),o._wrapperState.controlled&&!f&&!sn&&(u("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"),sn=!0)}$(n,a);var p=ea(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&o.value===""||o.value!=p)&&(o.value=ur(p)):o.value!==ur(p)&&(o.value=ur(p));else if(y==="submit"||y==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?$e(o,a.type,p):a.hasOwnProperty("defaultValue")&&$e(o,a.type,ea(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function te(n,a,o){var f=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type,y=p==="submit"||p==="reset";if(y&&(a.value===void 0||a.value===null))return;var w=ur(f._wrapperState.initialValue);o||w!==f.value&&(f.value=w),f.defaultValue=w}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function Fe(n,a){var o=n;G(o,a),xe(o,a)}function xe(n,a){var o=a.name;if(a.type==="radio"&&o!=null){for(var f=n;f.parentNode;)f=f.parentNode;ar(o,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),y=0;y<p.length;y++){var w=p[y];if(!(w===n||w.form!==n.form)){var T=Ot(w);if(!T)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(w),G(w,T)}}}}function $e(n,a,o){(a!=="number"||Q(n.ownerDocument)!==n)&&(o==null?n.defaultValue=ur(n._wrapperState.initialValue):n.defaultValue!==ur(o)&&(n.defaultValue=ur(o)))}var it=!1,gt=!1,Nt=!1;function pt(n,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(o){o!=null&&(typeof o=="string"||typeof o=="number"||gt||(gt=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(Nt||(Nt=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!it&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),it=!0)}function Lt(n,a){a.value!=null&&n.setAttribute("value",ur(ea(a.value)))}var wt=Array.isArray;function Dt(n){return wt(n)}var vi;vi=!1;function va(){var n=ja();return n?`
Check the render method of \``+n+"`.":""}var Po=["value","defaultValue"];function Su(n){{eo("select",n);for(var a=0;a<Po.length;a++){var o=Po[a];if(n[o]!=null){var f=Dt(n[o]);n.multiple&&!f?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,va()):!n.multiple&&f&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,va())}}}}function Nn(n,a,o,f){var p=n.options;if(a){for(var y=o,w={},T=0;T<y.length;T++)w["$"+y[T]]=!0;for(var O=0;O<p.length;O++){var F=w.hasOwnProperty("$"+p[O].value);p[O].selected!==F&&(p[O].selected=F),F&&f&&(p[O].defaultSelected=!0)}}else{for(var H=ur(ea(o)),ee=null,J=0;J<p.length;J++){if(p[J].value===H){p[J].selected=!0,f&&(p[J].defaultSelected=!0);return}ee===null&&!p[J].disabled&&(ee=p[J])}ee!==null&&(ee.selected=!0)}}function gi(n,a){return Zt({},a,{value:void 0})}function os(n,a){var o=n;Su(a),o._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!vi&&(u("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"),vi=!0)}function Zf(n,a){var o=n;o.multiple=!!a.multiple;var f=a.value;f!=null?Nn(o,!!a.multiple,f,!1):a.defaultValue!=null&&Nn(o,!!a.multiple,a.defaultValue,!0)}function uv(n,a){var o=n,f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Nn(o,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?Nn(o,!!a.multiple,a.defaultValue,!0):Nn(o,!!a.multiple,a.multiple?[]:"",!1))}function hC(n,a){var o=n,f=a.value;f!=null&&Nn(o,!!a.multiple,f,!1)}var Ub=!1;function cv(n,a){var o=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var f=Zt({},a,{value:void 0,defaultValue:void 0,children:ur(o._wrapperState.initialValue)});return f}function fv(n,a){var o=n;eo("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Ub&&(u("%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",ja()||"A component"),Ub=!0);var f=a.value;if(f==null){var p=a.children,y=a.defaultValue;if(p!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Dt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}y=p}}y==null&&(y=""),f=y}o._wrapperState={initialValue:ea(f)}}function Qf(n,a){var o=n,f=ea(a.value),p=ea(a.defaultValue);if(f!=null){var y=ur(f);y!==o.value&&(o.value=y),a.defaultValue==null&&o.defaultValue!==y&&(o.defaultValue=y)}p!=null&&(o.defaultValue=ur(p))}function xu(n,a){var o=n,f=o.textContent;f===o._wrapperState.initialValue&&f!==""&&f!==null&&(o.value=f)}function mC(n,a){Qf(n,a)}var ss="http://www.w3.org/1999/xhtml",jb="http://www.w3.org/1998/Math/MathML",Jf="http://www.w3.org/2000/svg";function ed(n){switch(n){case"svg":return Jf;case"math":return jb;default:return ss}}function Xp(n,a){return n==null||n===ss?ed(a):n===Jf&&a==="foreignObject"?ss:n}var vC=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,o,f,p){MSApp.execUnsafeLocalFunction(function(){return n(a,o,f,p)})}:n},yc,Zp=vC(function(n,a){if(n.namespaceURI===Jf&&!("innerHTML"in n)){yc=yc||document.createElement("div"),yc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var o=yc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild);return}n.innerHTML=a}),yi=1,ls=3,Bn=8,Mo=9,wu=11,td=function(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===ls){o.nodeValue=a;return}}n.textContent=a},$b={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"]},nd={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 gC(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var yC=["Webkit","ms","Moz","O"];Object.keys(nd).forEach(function(n){yC.forEach(function(a){nd[gC(a,n)]=nd[n]})});function dv(n,a,o){var f=a==null||typeof a=="boolean"||a==="";return f?"":!o&&typeof a=="number"&&a!==0&&!(nd.hasOwnProperty(n)&&nd[n])?a+"px":(fn(a,n),(""+a).trim())}var bC=/([A-Z])/g,bc=/^ms-/;function SC(n){return n.replace(bC,"-$1").toLowerCase().replace(bc,"-ms-")}var Vb=function(){};{var pv=/^(?:webkit|moz|o)[A-Z]/,Hb=/^-ms-/,Al=/-(.)/g,rd=/;\s*$/,Sc={},hv={},Wb=!1,Cu=!1,Io=function(n){return n.replace(Al,function(a,o){return o.toUpperCase()})},Gb=function(n){Sc.hasOwnProperty(n)&&Sc[n]||(Sc[n]=!0,u("Unsupported style property %s. Did you mean %s?",n,Io(n.replace(Hb,"ms-"))))},xC=function(n){Sc.hasOwnProperty(n)&&Sc[n]||(Sc[n]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},wC=function(n,a){hv.hasOwnProperty(a)&&hv[a]||(hv[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(rd,"")))},CC=function(n,a){Wb||(Wb=!0,u("`NaN` is an invalid value for the `%s` css style property.",n))},_C=function(n,a){Cu||(Cu=!0,u("`Infinity` is an invalid value for the `%s` css style property.",n))};Vb=function(n,a){n.indexOf("-")>-1?Gb(n):pv.test(n)?xC(n):rd.test(a)&&wC(n,a),typeof a=="number"&&(isNaN(a)?CC(n,a):isFinite(a)||_C(n,a))}}var EC=Vb;function xc(n){{var a="",o="";for(var f in n)if(!!n.hasOwnProperty(f)){var p=n[f];if(p!=null){var y=f.indexOf("--")===0;a+=o+(y?f:SC(f))+":",a+=dv(f,p,y),o=";"}}return a||null}}function re(n,a){var o=n.style;for(var f in a)if(!!a.hasOwnProperty(f)){var p=f.indexOf("--")===0;p||EC(f,a[f]);var y=dv(f,a[f],p);f==="float"&&(f="cssFloat"),p?o.setProperty(f,y):o[f]=y}}function Ne(n){return n==null||typeof n=="boolean"||n===""}function ge(n){var a={};for(var o in n)for(var f=$b[o]||[o],p=0;p<f.length;p++)a[f[p]]=o;return a}function ft(n,a){{if(!a)return;var o=ge(n),f=ge(a),p={};for(var y in o){var w=o[y],T=f[y];if(T&&w!==T){var O=w+","+T;if(p[O])continue;p[O]=!0,u("%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.",Ne(n[w])?"Removing":"Updating",w,T)}}}}var en={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},Hn=Zt({menuitem:!0},en),Hr="__html";function qn(n,a){if(!!a){if(Hn[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Hr in a.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(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&u("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."),a.style!=null&&typeof a.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 Hs(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 Qp={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"},Li={"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},Ws={},TC=new RegExp("^(aria)-["+rt+"]*$"),wc=new RegExp("^(aria)[A-Z]["+rt+"]*$");function Jp(n,a){{if(ye.call(Ws,a)&&Ws[a])return!0;if(wc.test(a)){var o="aria-"+a.slice(4).toLowerCase(),f=Li.hasOwnProperty(o)?o:null;if(f==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Ws[a]=!0,!0;if(a!==f)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),Ws[a]=!0,!0}if(TC.test(a)){var p=a.toLowerCase(),y=Li.hasOwnProperty(p)?p:null;if(y==null)return Ws[a]=!0,!1;if(a!==y)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,y),Ws[a]=!0,!0}}return!0}function eh(n,a){{var o=[];for(var f in a){var p=Jp(n,f);p||o.push(f)}var y=o.map(function(w){return"`"+w+"`"}).join(", ");o.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n):o.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n)}}function Kn(n,a){Hs(n,a)||eh(n,a)}var Yb=!1;function qb(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!Yb&&(Yb=!0,n==="select"&&a.multiple?u("`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.",n):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var ad=function(){};{var $a={},Kb=/^on./,NC=/^on[^A-Z]/,th=new RegExp("^(aria)-["+rt+"]*$"),Ol=new RegExp("^(aria)[A-Z]["+rt+"]*$");ad=function(n,a,o,f){if(ye.call($a,a)&&$a[a])return!0;var p=a.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return u("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."),$a[a]=!0,!0;if(f!=null){var y=f.registrationNameDependencies,w=f.possibleRegistrationNames;if(y.hasOwnProperty(a))return!0;var T=w.hasOwnProperty(p)?w[p]:null;if(T!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,T),$a[a]=!0,!0;if(Kb.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),$a[a]=!0,!0}else if(Kb.test(a))return NC.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),$a[a]=!0,!0;if(th.test(a)||Ol.test(a))return!0;if(p==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$a[a]=!0,!0;if(p==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$a[a]=!0,!0;if(p==="is"&&o!==null&&o!==void 0&&typeof o!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),$a[a]=!0,!0;if(typeof o=="number"&&isNaN(o))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),$a[a]=!0,!0;var O=ca(a),F=O!==null&&O.type===Ve;if(Qp.hasOwnProperty(p)){var H=Qp[p];if(H!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,H),$a[a]=!0,!0}else if(!F&&a!==p)return u("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.",a,p),$a[a]=!0,!0;return typeof o=="boolean"&&Nr(a,o,O,!1)?(o?u('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()}.',o,a,a,o,a):u('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.',o,a,a,o,a,a,a),$a[a]=!0,!0):F?!0:Nr(a,o,O,!1)?($a[a]=!0,!1):((o==="false"||o==="true")&&O!==null&&O.type===Tt&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,a,o==="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".',a,o),$a[a]=!0),!0)}}var nh=function(n,a,o){{var f=[];for(var p in a){var y=ad(n,p,a[p],o);y||f.push(p)}var w=f.map(function(T){return"`"+T+"`"}).join(", ");f.length===1?u("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 ",w,n):f.length>1&&u("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 ",w,n)}};function Xb(n,a,o){Hs(n,a)||nh(n,a,o)}var id=1,rh=1<<1,Cc=1<<2,ah=id|rh|Cc,_c=null;function od(n){_c!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_c=n}function _u(){_c===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),_c=null}function ih(n){return n===_c}function mv(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===ls?a.parentNode:a}var vv=null,Ec=null,Gs=null;function sd(n){var a=Ke(n);if(!!a){if(typeof vv!="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 o=a.stateNode;if(o){var f=Ot(o);vv(a.stateNode,a.type,f)}}}function gv(n){vv=n}function Zb(n){Ec?Gs?Gs.push(n):Gs=[n]:Ec=n}function Qb(){return Ec!==null||Gs!==null}function Jb(){if(!!Ec){var n=Ec,a=Gs;if(Ec=null,Gs=null,sd(n),a)for(var o=0;o<a.length;o++)sd(a[o])}}var e0=function(n,a){return n(a)},Fr=function(){},ta=!1;function RC(){var n=Qb();n&&(Fr(),Jb())}function t0(n,a,o){if(ta)return n(a,o);ta=!0;try{return e0(n,a,o)}finally{ta=!1,RC()}}function n0(n,a,o){e0=n,Fr=o}function AC(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function yv(n,a,o){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(o.disabled&&AC(a));default:return!1}}function Ys(n,a){var o=n.stateNode;if(o===null)return null;var f=Ot(o);if(f===null)return null;var p=f[a];if(yv(a,n.type,f))return null;if(p&&typeof p!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var ld=!1;if(Yt)try{var us={};Object.defineProperty(us,"passive",{get:function(){ld=!0}}),window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{ld=!1}function Tc(n,a,o,f,p,y,w,T,O){var F=Array.prototype.slice.call(arguments,3);try{a.apply(o,F)}catch(H){this.onError(H)}}var Nc=Tc;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Rc=document.createElement("react");Nc=function(a,o,f,p,y,w,T,O,F){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 H=document.createEvent("Event"),ee=!1,J=!0,he=window.event,me=Object.getOwnPropertyDescriptor(window,"event");function _e(){Rc.removeEventListener(Ee,Ct,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var ut=Array.prototype.slice.call(arguments,3);function Ct(){ee=!0,_e(),o.apply(f,ut),J=!1}var yt,An=!1,Sn=!1;function le(ue){if(yt=ue.error,An=!0,yt===null&&ue.colno===0&&ue.lineno===0&&(Sn=!0),ue.defaultPrevented&&yt!=null&&typeof yt=="object")try{yt._suppressLogging=!0}catch{}}var Ee="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",le),Rc.addEventListener(Ee,Ct,!1),H.initEvent(Ee,!1,!1),Rc.dispatchEvent(H),me&&Object.defineProperty(window,"event",me),ee&&J&&(An?Sn&&(yt=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.")):yt=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(yt)),window.removeEventListener("error",le),!ee)return _e(),Tc.apply(this,arguments)}}var Ac=Nc,Oc=!1,oh=null,sh=!1,bv=null,OC={onError:function(n){Oc=!0,oh=n}};function kc(n,a,o,f,p,y,w,T,O){Oc=!1,oh=null,Ac.apply(OC,arguments)}function ud(n,a,o,f,p,y,w,T,O){if(kc.apply(this,arguments),Oc){var F=kl();sh||(sh=!0,bv=F)}}function r0(){if(sh){var n=bv;throw sh=!1,bv=null,n}}function L(){return Oc}function kl(){if(Oc){var n=oh;return Oc=!1,oh=null,n}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 qs(n){return n._reactInternals}function to(n){return n._reactInternals!==void 0}function _n(n,a){n._reactInternals=a}var kt=0,Dc=1,zr=2,ln=4,Eu=16,cd=32,Sv=64,Ln=128,Ks=256,La=512,Tu=1024,Lo=2048,Xs=4096,Nu=8192,lh=16384,Zs=Lo|ln|Sv|La|Tu|lh,kC=32767,fd=32768,Va=65536,xv=131072,a0=1048576,Qs=2097152,Ru=4194304,wv=8388608,Wr=16777216,uh=33554432,Cv=ln|Tu|0,_v=zr|ln|Eu|cd|La|Xs|Nu,dd=ln|Sv|La|Nu,Pc=Lo|Eu,cs=Ru|wv|Qs,i0=r.ReactCurrentOwner;function Au(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(zr|Xs))!==kt&&(o=a.return),f=a.return;while(f)}return a.tag===x?o:null}function o0(n){if(n.tag===V){var a=n.memoizedState;if(a===null){var o=n.alternate;o!==null&&(a=o.memoizedState)}if(a!==null)return a.dehydrated}return null}function ch(n){return n.tag===x?n.stateNode.containerInfo:null}function pd(n){return Au(n)===n}function fh(n){{var a=i0.current;if(a!==null&&a.tag===v){var o=a,f=o.stateNode;f._warnedAboutRefsInRender||u("%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.",It(o)||"A component"),f._warnedAboutRefsInRender=!0}}var p=qs(n);return p?Au(p)===p:!1}function s0(n){if(Au(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function Ev(n){var a=n.alternate;if(!a){var o=Au(n);if(o===null)throw new Error("Unable to find node on an unmounted component.");return o!==n?null:n}for(var f=n,p=a;;){var y=f.return;if(y===null)break;var w=y.alternate;if(w===null){var T=y.return;if(T!==null){f=p=T;continue}break}if(y.child===w.child){for(var O=y.child;O;){if(O===f)return s0(y),n;if(O===p)return s0(y),a;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==p.return)f=y,p=w;else{for(var F=!1,H=y.child;H;){if(H===f){F=!0,f=y,p=w;break}if(H===p){F=!0,p=y,f=w;break}H=H.sibling}if(!F){for(H=w.child;H;){if(H===f){F=!0,f=w,p=y;break}if(H===p){F=!0,p=w,f=y;break}H=H.sibling}if(!F)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(f.alternate!==p)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(f.tag!==x)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?n:a}function l0(n){var a=Ev(n);return a!==null?fs(a):null}function fs(n){if(n.tag===_||n.tag===N)return n;for(var a=n.child;a!==null;){var o=fs(a);if(o!==null)return o;a=a.sibling}return null}function Tv(n){var a=Ev(n);return a!==null?Dl(a):null}function Dl(n){if(n.tag===_||n.tag===N)return n;for(var a=n.child;a!==null;){if(a.tag!==C){var o=Dl(a);if(o!==null)return o}a=a.sibling}return null}var Fi=t.unstable_scheduleCallback,DC=t.unstable_cancelCallback,u0=t.unstable_shouldYield,c0=t.unstable_requestPaint,Rr=t.unstable_now,Pl=t.unstable_getCurrentPriorityLevel,hd=t.unstable_ImmediatePriority,Nv=t.unstable_UserBlockingPriority,ds=t.unstable_NormalPriority,PC=t.unstable_LowPriority,dh=t.unstable_IdlePriority,ga=t.unstable_yieldValue,Rv=t.unstable_setDisableYieldValue,Ou=null,fr=null,nt=null,zi=!1,ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function f0(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return u("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{st&&(n=Zt({},n,{getLaneLabelMap:LC,injectProfilingHooks:Ov})),Ou=a.inject(n),fr=a}catch(o){u("React instrumentation encountered an error: %s.",o)}return!!a.checkDCE}function Ha(n,a){if(fr&&typeof fr.onScheduleFiberRoot=="function")try{fr.onScheduleFiberRoot(Ou,n,a)}catch(o){zi||(zi=!0,u("React instrumentation encountered an error: %s",o))}}function Av(n,a){if(fr&&typeof fr.onCommitFiberRoot=="function")try{var o=(n.current.flags&Ln)===Ln;if(mt){var f;switch(a){case Ga:f=hd;break;case vs:f=Nv;break;case br:f=ds;break;case Th:f=dh;break;default:f=ds;break}fr.onCommitFiberRoot(Ou,n,f,o)}}catch(p){zi||(zi=!0,u("React instrumentation encountered an error: %s",p))}}function MC(n){if(fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(Ou,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function IC(n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Ou,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function na(n){if(typeof ga=="function"&&(Rv(n),s(n)),fr&&typeof fr.setStrictMode=="function")try{fr.setStrictMode(Ou,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function Ov(n){nt=n}function LC(){{for(var n=new Map,a=1,o=0;o<zv;o++){var f=$C(a);n.set(a,f),a*=2}return n}}function md(n){nt!==null&&typeof nt.markCommitStarted=="function"&&nt.markCommitStarted(n)}function kv(){nt!==null&&typeof nt.markCommitStopped=="function"&&nt.markCommitStopped()}function vd(n){nt!==null&&typeof nt.markComponentRenderStarted=="function"&&nt.markComponentRenderStarted(n)}function Mc(){nt!==null&&typeof nt.markComponentRenderStopped=="function"&&nt.markComponentRenderStopped()}function gd(n){nt!==null&&typeof nt.markComponentPassiveEffectMountStarted=="function"&&nt.markComponentPassiveEffectMountStarted(n)}function FC(){nt!==null&&typeof nt.markComponentPassiveEffectMountStopped=="function"&&nt.markComponentPassiveEffectMountStopped()}function zC(n){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStarted=="function"&&nt.markComponentPassiveEffectUnmountStarted(n)}function Dv(){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStopped=="function"&&nt.markComponentPassiveEffectUnmountStopped()}function d0(n){nt!==null&&typeof nt.markComponentLayoutEffectMountStarted=="function"&&nt.markComponentLayoutEffectMountStarted(n)}function BC(){nt!==null&&typeof nt.markComponentLayoutEffectMountStopped=="function"&&nt.markComponentLayoutEffectMountStopped()}function p0(n){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStarted=="function"&&nt.markComponentLayoutEffectUnmountStarted(n)}function h0(){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStopped=="function"&&nt.markComponentLayoutEffectUnmountStopped()}function m0(n,a,o){nt!==null&&typeof nt.markComponentErrored=="function"&&nt.markComponentErrored(n,a,o)}function Pv(n,a,o){nt!==null&&typeof nt.markComponentSuspended=="function"&&nt.markComponentSuspended(n,a,o)}function UC(n){nt!==null&&typeof nt.markLayoutEffectsStarted=="function"&&nt.markLayoutEffectsStarted(n)}function Mv(){nt!==null&&typeof nt.markLayoutEffectsStopped=="function"&&nt.markLayoutEffectsStopped()}function v0(n){nt!==null&&typeof nt.markPassiveEffectsStarted=="function"&&nt.markPassiveEffectsStarted(n)}function g0(){nt!==null&&typeof nt.markPassiveEffectsStopped=="function"&&nt.markPassiveEffectsStopped()}function Iv(n){nt!==null&&typeof nt.markRenderStarted=="function"&&nt.markRenderStarted(n)}function ph(){nt!==null&&typeof nt.markRenderYielded=="function"&&nt.markRenderYielded()}function y0(){nt!==null&&typeof nt.markRenderStopped=="function"&&nt.markRenderStopped()}function b0(n){nt!==null&&typeof nt.markRenderScheduled=="function"&&nt.markRenderScheduled(n)}function S0(n,a){nt!==null&&typeof nt.markForceUpdateScheduled=="function"&&nt.markForceUpdateScheduled(n,a)}function Lv(n,a){nt!==null&&typeof nt.markStateUpdateScheduled=="function"&&nt.markStateUpdateScheduled(n,a)}var Rt=0,yn=1,Un=2,Pr=8,no=16,x0=Math.clz32?Math.clz32:jC,Fv=Math.log,mn=Math.LN2;function jC(n){var a=n>>>0;return a===0?32:31-(Fv(a)/mn|0)|0}var zv=31,Me=0,Gr=0,Ut=1,Ic=2,Br=4,ku=8,Bi=16,Du=32,Pu=4194240,Lc=64,Wa=128,ps=256,yd=512,hh=1024,Fc=2048,mh=4096,bd=8192,vh=16384,Sd=32768,xd=65536,hs=131072,Bv=262144,ms=524288,gh=1048576,yh=2097152,zc=130023424,Bc=4194304,Uv=8388608,jv=16777216,bh=33554432,Sh=67108864,w0=Bc,Uc=134217728,$v=268435455,ra=268435456,Fa=536870912,Ui=1073741824;function $C(n){{if(n&Ut)return"Sync";if(n&Ic)return"InputContinuousHydration";if(n&Br)return"InputContinuous";if(n&ku)return"DefaultHydration";if(n&Bi)return"Default";if(n&Du)return"TransitionHydration";if(n&Pu)return"Transition";if(n&zc)return"Retry";if(n&Uc)return"SelectiveHydration";if(n&ra)return"IdleHydration";if(n&Fa)return"Idle";if(n&Ui)return"Offscreen"}}var Xn=-1,Js=Lc,wd=Bc;function jc(n){switch(el(n)){case Ut:return Ut;case Ic:return Ic;case Br:return Br;case ku:return ku;case Bi:return Bi;case Du:return Du;case Lc:case Wa:case ps:case yd:case hh:case Fc:case mh:case bd:case vh:case Sd:case xd:case hs:case Bv:case ms:case gh:case yh:return n&Pu;case Bc:case Uv:case jv:case bh:case Sh:return n&zc;case Uc:return Uc;case ra:return ra;case Fa:return Fa;case Ui:return Ui;default:return u("Should have found matching lanes. This is a bug in React."),n}}function xh(n,a){var o=n.pendingLanes;if(o===Me)return Me;var f=Me,p=n.suspendedLanes,y=n.pingedLanes,w=o&$v;if(w!==Me){var T=w&~p;if(T!==Me)f=jc(T);else{var O=w&y;O!==Me&&(f=jc(O))}}else{var F=o&~p;F!==Me?f=jc(F):y!==Me&&(f=jc(y))}if(f===Me)return Me;if(a!==Me&&a!==f&&(a&p)===Me){var H=el(f),ee=el(a);if(H>=ee||H===Bi&&(ee&Pu)!==Me)return a}(f&Br)!==Me&&(f|=o&Bi);var J=n.entangledLanes;if(J!==Me)for(var he=n.entanglements,me=f&J;me>0;){var _e=Ml(me),ut=1<<_e;f|=he[_e],me&=~ut}return f}function C0(n,a){for(var o=n.eventTimes,f=Xn;a>0;){var p=Ml(a),y=1<<p,w=o[p];w>f&&(f=w),a&=~y}return f}function $c(n,a){switch(n){case Ut:case Ic:case Br:return a+250;case ku:case Bi:case Du:case Lc:case Wa:case ps:case yd:case hh:case Fc:case mh:case bd:case vh:case Sd:case xd:case hs:case Bv:case ms:case gh:case yh:return a+5e3;case Bc:case Uv:case jv:case bh:case Sh:return Xn;case Uc:case ra:case Fa:case Ui:return Xn;default:return u("Should have found matching lanes. This is a bug in React."),Xn}}function Cd(n,a){for(var o=n.pendingLanes,f=n.suspendedLanes,p=n.pingedLanes,y=n.expirationTimes,w=o;w>0;){var T=Ml(w),O=1<<T,F=y[T];F===Xn?((O&f)===Me||(O&p)!==Me)&&(y[T]=$c(O,a)):F<=a&&(n.expiredLanes|=O),w&=~O}}function VC(n){return jc(n.pendingLanes)}function wh(n){var a=n.pendingLanes&~Ui;return a!==Me?a:a&Ui?Ui:Me}function _0(n){return(n&Ut)!==Me}function Vc(n){return(n&$v)!==Me}function Vv(n){return(n&zc)===n}function Ch(n){var a=Ut|Br|Bi;return(n&a)===Me}function Hv(n){return(n&Pu)===n}function Mu(n,a){var o=Ic|Br|ku|Bi;return(a&o)!==Me}function HC(n,a){return(a&n.expiredLanes)!==Me}function Wv(n){return(n&Pu)!==Me}function _d(){var n=Js;return Js<<=1,(Js&Pu)===Me&&(Js=Lc),n}function E0(){var n=wd;return wd<<=1,(wd&zc)===Me&&(wd=Bc),n}function el(n){return n&-n}function Ed(n){return el(n)}function Ml(n){return 31-x0(n)}function Fo(n){return Ml(n)}function bi(n,a){return(n&a)!==Me}function Iu(n,a){return(n&a)===a}function un(n,a){return n|a}function Td(n,a){return n&~a}function T0(n,a){return n&a}function eD(n){return n}function tl(n,a){return n!==Gr&&n<a?n:a}function Nd(n){for(var a=[],o=0;o<zv;o++)a.push(n);return a}function Lu(n,a,o){n.pendingLanes|=a,a!==Fa&&(n.suspendedLanes=Me,n.pingedLanes=Me);var f=n.eventTimes,p=Fo(a);f[p]=o}function Gv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var o=n.expirationTimes,f=a;f>0;){var p=Ml(f),y=1<<p;o[p]=Xn,f&=~y}}function Rd(n,a,o){n.pingedLanes|=n.suspendedLanes&a}function Hc(n,a){var o=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Me,n.pingedLanes=Me,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var f=n.entanglements,p=n.eventTimes,y=n.expirationTimes,w=o;w>0;){var T=Ml(w),O=1<<T;f[T]=Me,p[T]=Xn,y[T]=Xn,w&=~O}}function At(n,a){for(var o=n.entangledLanes|=a,f=n.entanglements,p=o;p;){var y=Ml(p),w=1<<y;w&a|f[y]&a&&(f[y]|=a),p&=~w}}function _h(n,a){var o=el(a),f;switch(o){case Br:f=Ic;break;case Bi:f=ku;break;case Lc:case Wa:case ps:case yd:case hh:case Fc:case mh:case bd:case vh:case Sd:case xd:case hs:case Bv:case ms:case gh:case yh:case Bc:case Uv:case jv:case bh:case Sh:f=Du;break;case Fa:f=ra;break;default:f=Gr;break}return(f&(n.suspendedLanes|a))!==Gr?Gr:f}function Eh(n,a,o){if(!!ya)for(var f=n.pendingUpdatersLaneMap;o>0;){var p=Fo(o),y=1<<p,w=f[p];w.add(a),o&=~y}}function Il(n,a){if(!!ya)for(var o=n.pendingUpdatersLaneMap,f=n.memoizedUpdaters;a>0;){var p=Fo(a),y=1<<p,w=o[p];w.size>0&&(w.forEach(function(T){var O=T.alternate;(O===null||!f.has(O))&&f.add(T)}),w.clear()),a&=~y}}function N0(n,a){return null}var Ga=Ut,vs=Br,br=Bi,Th=Fa,Ad=Gr;function ro(){return Ad}function aa(n){Ad=n}function R0(n,a){var o=Ad;try{return Ad=n,a()}finally{Ad=o}}function WC(n,a){return n!==0&&n<a?n:a}function GC(n,a){return n===0||n>a?n:a}function Yv(n,a){return n!==0&&n<a}function gs(n){var a=el(n);return Yv(Ga,a)?Yv(vs,a)?Vc(a)?br:Th:vs:Ga}function ia(n){var a=n.current.memoizedState;return a.isDehydrated}var Nh;function YC(n){Nh=n}function qv(n){Nh(n)}var Kv;function qC(n){Kv=n}var Wc;function A0(n){Wc=n}var Xv;function KC(n){Xv=n}var O0;function XC(n){O0=n}var Zv=!1,Od=[],nl=null,Ll=null,ys=null,Gc=new Map,rl=new Map,bs=[],k0=["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 D0(n){return k0.indexOf(n)>-1}function Rh(n,a,o,f,p){return{blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[f]}}function Qv(n,a){switch(n){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":ys=null;break;case"pointerover":case"pointerout":{var o=a.pointerId;Gc.delete(o);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;rl.delete(f);break}}}function Si(n,a,o,f,p,y){if(n===null||n.nativeEvent!==y){var w=Rh(a,o,f,p,y);if(a!==null){var T=Ke(a);T!==null&&Kv(T)}return w}n.eventSystemFlags|=f;var O=n.targetContainers;return p!==null&&O.indexOf(p)===-1&&O.push(p),n}function Fu(n,a,o,f,p){switch(a){case"focusin":{var y=p;return nl=Si(nl,n,a,o,f,y),!0}case"dragenter":{var w=p;return Ll=Si(Ll,n,a,o,f,w),!0}case"mouseover":{var T=p;return ys=Si(ys,n,a,o,f,T),!0}case"pointerover":{var O=p,F=O.pointerId;return Gc.set(F,Si(Gc.get(F)||null,n,a,o,f,O)),!0}case"gotpointercapture":{var H=p,ee=H.pointerId;return rl.set(ee,Si(rl.get(ee)||null,n,a,o,f,H)),!0}}return!1}function P0(n){var a=Pe(n.target);if(a!==null){var o=Au(a);if(o!==null){var f=o.tag;if(f===V){var p=o0(o);if(p!==null){n.blockedOn=p,O0(n.priority,function(){Wc(o)});return}}else if(f===x){var y=o.stateNode;if(ia(y)){n.blockedOn=ch(o);return}}}}n.blockedOn=null}function M0(n){for(var a=Xv(),o={blockedOn:null,target:n,priority:a},f=0;f<bs.length&&Yv(a,bs[f].priority);f++);bs.splice(f,0,o),f===0&&P0(o)}function Ah(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var o=a[0],f=eg(n.domEventName,n.eventSystemFlags,o,n.nativeEvent);if(f===null){var p=n.nativeEvent,y=new p.constructor(p.type,p);od(y),p.target.dispatchEvent(y),_u()}else{var w=Ke(f);return w!==null&&Kv(w),n.blockedOn=f,!1}a.shift()}return!0}function I0(n,a,o){Ah(n)&&o.delete(a)}function ZC(){Zv=!1,nl!==null&&Ah(nl)&&(nl=null),Ll!==null&&Ah(Ll)&&(Ll=null),ys!==null&&Ah(ys)&&(ys=null),Gc.forEach(I0),rl.forEach(I0)}function kd(n,a){n.blockedOn===a&&(n.blockedOn=null,Zv||(Zv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ZC)))}function Dd(n){if(Od.length>0){kd(Od[0],n);for(var a=1;a<Od.length;a++){var o=Od[a];o.blockedOn===n&&(o.blockedOn=null)}}nl!==null&&kd(nl,n),Ll!==null&&kd(Ll,n),ys!==null&&kd(ys,n);var f=function(T){return kd(T,n)};Gc.forEach(f),rl.forEach(f);for(var p=0;p<bs.length;p++){var y=bs[p];y.blockedOn===n&&(y.blockedOn=null)}for(;bs.length>0;){var w=bs[0];if(w.blockedOn!==null)break;P0(w),w.blockedOn===null&&bs.shift()}}var Yc=r.ReactCurrentBatchConfig,Jv=!0;function L0(n){Jv=!!n}function QC(){return Jv}function JC(n,a,o){var f=B0(a),p;switch(f){case Ga:p=e_;break;case vs:p=F0;break;case br:default:p=Oh;break}return p.bind(null,a,o,n)}function e_(n,a,o,f){var p=ro(),y=Yc.transition;Yc.transition=null;try{aa(Ga),Oh(n,a,o,f)}finally{aa(p),Yc.transition=y}}function F0(n,a,o,f){var p=ro(),y=Yc.transition;Yc.transition=null;try{aa(vs),Oh(n,a,o,f)}finally{aa(p),Yc.transition=y}}function Oh(n,a,o,f){!Jv||z0(n,a,o,f)}function z0(n,a,o,f){var p=eg(n,a,o,f);if(p===null){vg(n,a,f,kh,o),Qv(n,f);return}if(Fu(p,n,a,o,f)){f.stopPropagation();return}if(Qv(n,f),a&Cc&&D0(n)){for(;p!==null;){var y=Ke(p);y!==null&&qv(y);var w=eg(n,a,o,f);if(w===null&&vg(n,a,f,kh,o),w===p)break;p=w}p!==null&&f.stopPropagation();return}vg(n,a,f,null,o)}var kh=null;function eg(n,a,o,f){kh=null;var p=mv(f),y=Pe(p);if(y!==null){var w=Au(y);if(w===null)y=null;else{var T=w.tag;if(T===V){var O=o0(w);if(O!==null)return O;y=null}else if(T===x){var F=w.stateNode;if(ia(F))return ch(w);y=null}else w!==y&&(y=null)}}return kh=y,null}function B0(n){switch(n){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 Ga;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 vs;case"message":{var a=Pl();switch(a){case hd:return Ga;case Nv:return vs;case ds:case PC:return br;case dh:return Th;default:return br}}default:return br}}function U0(n,a,o){return n.addEventListener(a,o,!1),o}function t_(n,a,o){return n.addEventListener(a,o,!0),o}function n_(n,a,o,f){return n.addEventListener(a,o,{capture:!0,passive:f}),o}function r_(n,a,o,f){return n.addEventListener(a,o,{passive:f}),o}var Pd=null,tg=null,Md=null;function ao(n){return Pd=n,tg=$0(),!0}function a_(){Pd=null,tg=null,Md=null}function j0(){if(Md)return Md;var n,a=tg,o=a.length,f,p=$0(),y=p.length;for(n=0;n<o&&a[n]===p[n];n++);var w=o-n;for(f=1;f<=w&&a[o-f]===p[y-f];f++);var T=f>1?1-f:void 0;return Md=p.slice(n,T),Md}function $0(){return"value"in Pd?Pd.value:Pd.textContent}function Id(n){var a,o=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),a>=32||a===13?a:0}function Dh(){return!0}function V0(){return!1}function ji(n){function a(o,f,p,y,w){this._reactName=o,this._targetInst=p,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var T in n)if(!!n.hasOwnProperty(T)){var O=n[T];O?this[T]=O(y):this[T]=y[T]}var F=y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1;return F?this.isDefaultPrevented=Dh:this.isDefaultPrevented=V0,this.isPropagationStopped=V0,this}return Zt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;!o||(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Dh)},stopPropagation:function(){var o=this.nativeEvent;!o||(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Dh)},persist:function(){},isPersistent:Dh}),a}var qc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=ji(qc),Fd=Zt({},qc,{view:0,detail:0}),i_=ji(Fd),ng,rg,zd;function o_(n){n!==zd&&(zd&&n.type==="mousemove"?(ng=n.screenX-zd.screenX,rg=n.screenY-zd.screenY):(ng=0,rg=0),zd=n)}var Ph=Zt({},Fd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:og,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(o_(n),ng)},movementY:function(n){return"movementY"in n?n.movementY:rg}}),H0=ji(Ph),s_=Zt({},Ph,{dataTransfer:0}),l_=ji(s_),u_=Zt({},Fd,{relatedTarget:0}),ag=ji(u_),c_=Zt({},qc,{animationName:0,elapsedTime:0,pseudoElement:0}),f_=ji(c_),d_=Zt({},qc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),p_=ji(d_),h_=Zt({},qc,{data:0}),W0=ji(h_),m_=W0,v_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ig={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 G0(n){if(n.key){var a=v_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var o=Id(n);return o===13?"Enter":String.fromCharCode(o)}return n.type==="keydown"||n.type==="keyup"?ig[n.keyCode]||"Unidentified":""}var g_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y_(n){var a=this,o=a.nativeEvent;if(o.getModifierState)return o.getModifierState(n);var f=g_[n];return f?!!o[f]:!1}function og(n){return y_}var b_=Zt({},Fd,{key:G0,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:og,charCode:function(n){return n.type==="keypress"?Id(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Id(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),S_=ji(b_),x_=Zt({},Ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Y0=ji(x_),w_=Zt({},Fd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:og}),q0=ji(w_),C_=Zt({},qc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mh=ji(C_),__=Zt({},Ph,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),E_=ji(__),T_=[9,13,27,32],K0=229,sg=Yt&&"CompositionEvent"in window,Bd=null;Yt&&"documentMode"in document&&(Bd=document.documentMode);var N_=Yt&&"TextEvent"in window&&!Bd,X0=Yt&&(!sg||Bd&&Bd>8&&Bd<=11),Z0=32,Q0=String.fromCharCode(Z0);function R_(){zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),zt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var J0=!1;function A_(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function O_(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function k_(n,a){return n==="keydown"&&a.keyCode===K0}function eS(n,a){switch(n){case"keyup":return T_.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==K0;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lg(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function ug(n){return n.locale==="ko"}var Kc=!1;function D_(n,a,o,f,p){var y,w;if(sg?y=O_(a):Kc?eS(a,f)&&(y="onCompositionEnd"):k_(a,f)&&(y="onCompositionStart"),!y)return null;X0&&!ug(f)&&(!Kc&&y==="onCompositionStart"?Kc=ao(p):y==="onCompositionEnd"&&Kc&&(w=j0()));var T=tn(o,y);if(T.length>0){var O=new W0(y,a,null,f,p);if(n.push({event:O,listeners:T}),w)O.data=w;else{var F=lg(f);F!==null&&(O.data=F)}}}function P_(n,a){switch(n){case"compositionend":return lg(a);case"keypress":var o=a.which;return o!==Z0?null:(J0=!0,Q0);case"textInput":var f=a.data;return f===Q0&&J0?null:f;default:return null}}function M_(n,a){if(Kc){if(n==="compositionend"||!sg&&eS(n,a)){var o=j0();return a_(),Kc=!1,o}return null}switch(n){case"paste":return null;case"keypress":if(!A_(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return X0&&!ug(a)?null:a.data;default:return null}}function Ih(n,a,o,f,p){var y;if(N_?y=P_(a,f):y=M_(a,f),!y)return null;var w=tn(o,"onBeforeInput");if(w.length>0){var T=new m_("onBeforeInput","beforeinput",null,f,p);n.push({event:T,listeners:w}),T.data=y}}function I_(n,a,o,f,p,y,w){D_(n,a,o,f,p),Ih(n,a,o,f,p)}var L_={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 tS(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!L_[n.type]:a==="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 F_(n){if(!Yt)return!1;var a="on"+n,o=a in document;if(!o){var f=document.createElement("div");f.setAttribute(a,"return;"),o=typeof f[a]=="function"}return o}function z_(){zt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function nS(n,a,o,f){Zb(f);var p=tn(a,"onChange");if(p.length>0){var y=new Ld("onChange","change",null,o,f);n.push({event:y,listeners:p})}}var Ud=null,jd=null;function B_(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function U_(n){var a=[];nS(a,jd,n,mv(n)),t0(j_,a)}function j_(n){mg(n,0)}function zu(n){var a=dt(n);if(W(a))return n}function $_(n,a){if(n==="change")return a}var cg=!1;Yt&&(cg=F_("input")&&(!document.documentMode||document.documentMode>9));function rS(n,a){Ud=n,jd=a,Ud.attachEvent("onpropertychange",fg)}function Lh(){!Ud||(Ud.detachEvent("onpropertychange",fg),Ud=null,jd=null)}function fg(n){n.propertyName==="value"&&zu(jd)&&U_(n)}function aS(n,a,o){n==="focusin"?(Lh(),rS(a,o)):n==="focusout"&&Lh()}function iS(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return zu(jd)}function oS(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function V_(n,a){if(n==="click")return zu(a)}function H_(n,a){if(n==="input"||n==="change")return zu(a)}function W_(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||$e(n,"number",n.value)}function Fh(n,a,o,f,p,y,w){var T=o?dt(o):window,O,F;if(B_(T)?O=$_:tS(T)?cg?O=H_:(O=iS,F=aS):oS(T)&&(O=V_),O){var H=O(a,o);if(H){nS(n,H,f,p);return}}F&&F(a,T,o),a==="focusout"&&W_(T)}function zh(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function G_(n,a,o,f,p,y,w){var T=a==="mouseover"||a==="pointerover",O=a==="mouseout"||a==="pointerout";if(T&&!ih(f)){var F=f.relatedTarget||f.fromElement;if(F&&(Pe(F)||Ae(F)))return}if(!(!O&&!T)){var H;if(p.window===p)H=p;else{var ee=p.ownerDocument;ee?H=ee.defaultView||ee.parentWindow:H=window}var J,he;if(O){var me=f.relatedTarget||f.toElement;if(J=o,he=me?Pe(me):null,he!==null){var _e=Au(he);(he!==_e||he.tag!==_&&he.tag!==N)&&(he=null)}}else J=null,he=o;if(J!==he){var ut=H0,Ct="onMouseLeave",yt="onMouseEnter",An="mouse";(a==="pointerout"||a==="pointerover")&&(ut=Y0,Ct="onPointerLeave",yt="onPointerEnter",An="pointer");var Sn=J==null?H:dt(J),le=he==null?H:dt(he),Ee=new ut(Ct,An+"leave",J,f,p);Ee.target=Sn,Ee.relatedTarget=le;var ue=null,He=Pe(p);if(He===o){var ct=new ut(yt,An+"enter",he,f,p);ct.target=le,ct.relatedTarget=Sn,ue=ct}cE(n,Ee,ue,J,he)}}}function Y_(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Ya=typeof Object.is=="function"?Object.is:Y_;function Xc(n,a){if(Ya(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),f=Object.keys(a);if(o.length!==f.length)return!1;for(var p=0;p<o.length;p++){var y=o[p];if(!ye.call(a,y)||!Ya(n[y],a[y]))return!1}return!0}function sS(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function q_(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function lS(n,a){for(var o=sS(n),f=0,p=0;o;){if(o.nodeType===ls){if(p=f+o.textContent.length,f<=a&&p>=a)return{node:o,offset:a-f};f=p}o=sS(q_(o))}}function K_(n){var a=n.ownerDocument,o=a&&a.defaultView||window,f=o.getSelection&&o.getSelection();if(!f||f.rangeCount===0)return null;var p=f.anchorNode,y=f.anchorOffset,w=f.focusNode,T=f.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return X_(n,p,y,w,T)}function X_(n,a,o,f,p){var y=0,w=-1,T=-1,O=0,F=0,H=n,ee=null;e:for(;;){for(var J=null;H===a&&(o===0||H.nodeType===ls)&&(w=y+o),H===f&&(p===0||H.nodeType===ls)&&(T=y+p),H.nodeType===ls&&(y+=H.nodeValue.length),(J=H.firstChild)!==null;)ee=H,H=J;for(;;){if(H===n)break e;if(ee===a&&++O===o&&(w=y),ee===f&&++F===p&&(T=y),(J=H.nextSibling)!==null)break;H=ee,ee=H.parentNode}H=J}return w===-1||T===-1?null:{start:w,end:T}}function Z_(n,a){var o=n.ownerDocument||document,f=o&&o.defaultView||window;if(!!f.getSelection){var p=f.getSelection(),y=n.textContent.length,w=Math.min(a.start,y),T=a.end===void 0?w:Math.min(a.end,y);if(!p.extend&&w>T){var O=T;T=w,w=O}var F=lS(n,w),H=lS(n,T);if(F&&H){if(p.rangeCount===1&&p.anchorNode===F.node&&p.anchorOffset===F.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var ee=o.createRange();ee.setStart(F.node,F.offset),p.removeAllRanges(),w>T?(p.addRange(ee),p.extend(H.node,H.offset)):(ee.setEnd(H.node,H.offset),p.addRange(ee))}}}function uS(n){return n&&n.nodeType===ls}function cS(n,a){return!n||!a?!1:n===a?!0:uS(n)?!1:uS(a)?cS(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function Q_(n){return n&&n.ownerDocument&&cS(n.ownerDocument.documentElement,n)}function J_(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function fS(){for(var n=window,a=Q();a instanceof n.HTMLIFrameElement;){if(J_(a))n=a.contentWindow;else return a;a=Q(n.document)}return a}function dg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function zo(){var n=fS();return{focusedElem:n,selectionRange:dg(n)?tE(n):null}}function eE(n){var a=fS(),o=n.focusedElem,f=n.selectionRange;if(a!==o&&Q_(o)){f!==null&&dg(o)&&Bu(o,f);for(var p=[],y=o;y=y.parentNode;)y.nodeType===yi&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof o.focus=="function"&&o.focus();for(var w=0;w<p.length;w++){var T=p[w];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}}function tE(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=K_(n),a||{start:0,end:0}}function Bu(n,a){var o=a.start,f=a.end;f===void 0&&(f=o),"selectionStart"in n?(n.selectionStart=o,n.selectionEnd=Math.min(f,n.value.length)):Z_(n,a)}var rn=Yt&&"documentMode"in document&&document.documentMode<=11;function nE(){zt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Yr=null,_r=null,$d=null,Ss=!1;function rE(n){if("selectionStart"in n&&dg(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,o=a.getSelection();return{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}function aE(n){return n.window===n?n.document:n.nodeType===Mo?n:n.ownerDocument}function dS(n,a,o){var f=aE(o);if(!(Ss||Yr==null||Yr!==Q(f))){var p=rE(Yr);if(!$d||!Xc($d,p)){$d=p;var y=tn(_r,"onSelect");if(y.length>0){var w=new Ld("onSelect","select",null,a,o);n.push({event:w,listeners:y}),w.target=Yr}}}}function iE(n,a,o,f,p,y,w){var T=o?dt(o):window;switch(a){case"focusin":(tS(T)||T.contentEditable==="true")&&(Yr=T,_r=o,$d=null);break;case"focusout":Yr=null,_r=null,$d=null;break;case"mousedown":Ss=!0;break;case"contextmenu":case"mouseup":case"dragend":Ss=!1,dS(n,f,p);break;case"selectionchange":if(rn)break;case"keydown":case"keyup":dS(n,f,p)}}function Bh(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var Fl={animationend:Bh("Animation","AnimationEnd"),animationiteration:Bh("Animation","AnimationIteration"),animationstart:Bh("Animation","AnimationStart"),transitionend:Bh("Transition","TransitionEnd")},pg={},xs={};Yt&&(xs=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function Vd(n){if(pg[n])return pg[n];if(!Fl[n])return n;var a=Fl[n];for(var o in a)if(a.hasOwnProperty(o)&&o in xs)return pg[n]=a[o];return n}var Hd=Vd("animationend"),Sr=Vd("animationiteration"),Er=Vd("animationstart"),hg=Vd("transitionend"),pS=new Map,hS=["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 zl(n,a){pS.set(n,a),zt(a,[n])}function oE(){for(var n=0;n<hS.length;n++){var a=hS[n],o=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);zl(o,"on"+f)}zl(Hd,"onAnimationEnd"),zl(Sr,"onAnimationIteration"),zl(Er,"onAnimationStart"),zl("dblclick","onDoubleClick"),zl("focusin","onFocus"),zl("focusout","onBlur"),zl(hg,"onTransitionEnd")}function sE(n,a,o,f,p,y,w){var T=pS.get(a);if(T!==void 0){var O=Ld,F=a;switch(a){case"keypress":if(Id(f)===0)return;case"keydown":case"keyup":O=S_;break;case"focusin":F="focus",O=ag;break;case"focusout":F="blur",O=ag;break;case"beforeblur":case"afterblur":O=ag;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=H0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=l_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=q0;break;case Hd:case Sr:case Er:O=f_;break;case hg:O=Mh;break;case"scroll":O=i_;break;case"wheel":O=E_;break;case"copy":case"cut":case"paste":O=p_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Y0;break}var H=(y&Cc)!==0;{var ee=!H&&a==="scroll",J=al(o,T,f.type,H,ee);if(J.length>0){var he=new O(T,F,null,f,p);n.push({event:he,listeners:J})}}}}oE(),zh(),z_(),nE(),R_();function lE(n,a,o,f,p,y,w){sE(n,a,o,f,p,y);var T=(y&ah)===0;T&&(G_(n,a,o,f,p),Fh(n,a,o,f,p),iE(n,a,o,f,p),I_(n,a,o,f,p))}var Zc=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Uu=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Zc));function Uh(n,a,o){var f=n.type||"unknown-event";n.currentTarget=o,ud(f,a,void 0,n),n.currentTarget=null}function uE(n,a,o){var f;if(o)for(var p=a.length-1;p>=0;p--){var y=a[p],w=y.instance,T=y.currentTarget,O=y.listener;if(w!==f&&n.isPropagationStopped())return;Uh(n,O,T),f=w}else for(var F=0;F<a.length;F++){var H=a[F],ee=H.instance,J=H.currentTarget,he=H.listener;if(ee!==f&&n.isPropagationStopped())return;Uh(n,he,J),f=ee}}function mg(n,a){for(var o=(a&Cc)!==0,f=0;f<n.length;f++){var p=n[f],y=p.event,w=p.listeners;uE(y,w,o)}r0()}function jh(n,a,o,f,p){var y=mv(o),w=[];lE(w,n,f,o,y,a),mg(w,a)}function bn(n,a){Uu.has(n)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var o=!1,f=Pt(a),p=Gn(n,o);f.has(p)||(mS(a,n,rh,o),f.add(p))}function Bl(n,a,o){Uu.has(n)&&!a&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var f=0;a&&(f|=Cc),mS(o,n,f,a)}var $h="_reactListening"+Math.random().toString(36).slice(2);function Wd(n){if(!n[$h]){n[$h]=!0,Qe.forEach(function(o){o!=="selectionchange"&&(Uu.has(o)||Bl(o,!1,n),Bl(o,!0,n))});var a=n.nodeType===Mo?n:n.ownerDocument;a!==null&&(a[$h]||(a[$h]=!0,Bl("selectionchange",!1,a)))}}function mS(n,a,o,f,p){var y=JC(n,a,o),w=void 0;ld&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(w=!0),n=n,f?w!==void 0?n_(n,a,y,w):t_(n,a,y):w!==void 0?r_(n,a,y,w):U0(n,a,y)}function vS(n,a){return n===a||n.nodeType===Bn&&n.parentNode===a}function vg(n,a,o,f,p){var y=f;if((a&id)===0&&(a&rh)===0){var w=p;if(f!==null){var T=f;e:for(;;){if(T===null)return;var O=T.tag;if(O===x||O===C){var F=T.stateNode.containerInfo;if(vS(F,w))break;if(O===C)for(var H=T.return;H!==null;){var ee=H.tag;if(ee===x||ee===C){var J=H.stateNode.containerInfo;if(vS(J,w))return}H=H.return}for(;F!==null;){var he=Pe(F);if(he===null)return;var me=he.tag;if(me===_||me===N){T=y=he;continue e}F=F.parentNode}}T=T.return}}}t0(function(){return jh(n,a,o,y)})}function Qc(n,a,o){return{instance:n,listener:a,currentTarget:o}}function al(n,a,o,f,p,y){for(var w=a!==null?a+"Capture":null,T=f?w:a,O=[],F=n,H=null;F!==null;){var ee=F,J=ee.stateNode,he=ee.tag;if(he===_&&J!==null&&(H=J,T!==null)){var me=Ys(F,T);me!=null&&O.push(Qc(F,me,H))}if(p)break;F=F.return}return O}function tn(n,a){for(var o=a+"Capture",f=[],p=n;p!==null;){var y=p,w=y.stateNode,T=y.tag;if(T===_&&w!==null){var O=w,F=Ys(p,o);F!=null&&f.unshift(Qc(p,F,O));var H=Ys(p,a);H!=null&&f.push(Qc(p,H,O))}p=p.return}return f}function ju(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==_);return n||null}function io(n,a){for(var o=n,f=a,p=0,y=o;y;y=ju(y))p++;for(var w=0,T=f;T;T=ju(T))w++;for(;p-w>0;)o=ju(o),p--;for(;w-p>0;)f=ju(f),w--;for(var O=p;O--;){if(o===f||f!==null&&o===f.alternate)return o;o=ju(o),f=ju(f)}return null}function gg(n,a,o,f,p){for(var y=a._reactName,w=[],T=o;T!==null&&T!==f;){var O=T,F=O.alternate,H=O.stateNode,ee=O.tag;if(F!==null&&F===f)break;if(ee===_&&H!==null){var J=H;if(p){var he=Ys(T,y);he!=null&&w.unshift(Qc(T,he,J))}else if(!p){var me=Ys(T,y);me!=null&&w.push(Qc(T,me,J))}}T=T.return}w.length!==0&&n.push({event:a,listeners:w})}function cE(n,a,o,f,p){var y=f&&p?io(f,p):null;f!==null&&gg(n,a,f,y,!1),p!==null&&o!==null&&gg(n,o,p,y,!0)}function Gn(n,a){return n+"__"+(a?"capture":"bubble")}var xi=!1,Jc="dangerouslySetInnerHTML",$u="suppressContentEditableWarning",Ul="suppressHydrationWarning",gS="autoFocus",Vu="children",Hu="style",Vh="__html",yg,Hh,Gd,yS,Wh,bS,SS;yg={dialog:!0,webview:!0},Hh=function(n,a){Kn(n,a),qb(n,a),Xb(n,a,{registrationNameDependencies:vt,possibleRegistrationNames:Et})},bS=Yt&&!document.documentMode,Gd=function(n,a,o){if(!xi){var f=Gh(o),p=Gh(a);p!==f&&(xi=!0,u("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(p),JSON.stringify(f)))}},yS=function(n){if(!xi){xi=!0;var a=[];n.forEach(function(o){a.push(o)}),u("Extra attributes from the server: %s",a)}},Wh=function(n,a){a===!1?u("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.",n,n,n):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},SS=function(n,a){var o=n.namespaceURI===ss?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return o.innerHTML=a,o.innerHTML};var fE=/\r\n?/g,bg=/\u0000|\uFFFD/g;function Gh(n){kn(n);var a=typeof n=="string"?n:""+n;return a.replace(fE,`
`).replace(bg,"")}function ef(n,a,o,f){var p=Gh(a),y=Gh(n);if(y!==p&&(f&&(xi||(xi=!0,u('Text content did not match. Server: "%s" Client: "%s"',y,p))),o&&oe))throw new Error("Text content does not match server-rendered HTML.")}function xS(n){return n.nodeType===Mo?n:n.ownerDocument}function dE(){}function Yh(n){n.onclick=dE}function oa(n,a,o,f,p){for(var y in f)if(!!f.hasOwnProperty(y)){var w=f[y];if(y===Hu)w&&Object.freeze(w),re(a,w);else if(y===Jc){var T=w?w[Vh]:void 0;T!=null&&Zp(a,T)}else if(y===Vu)if(typeof w=="string"){var O=n!=="textarea"||w!=="";O&&td(a,w)}else typeof w=="number"&&td(a,""+w);else y===$u||y===Ul||y===gS||(vt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Wh(y,w),y==="onScroll"&&bn("scroll",a)):w!=null&&Di(a,y,w,p))}}function wi(n,a,o,f){for(var p=0;p<a.length;p+=2){var y=a[p],w=a[p+1];y===Hu?re(n,w):y===Jc?Zp(n,w):y===Vu?td(n,w):Di(n,y,w,f)}}function pE(n,a,o,f){var p,y=xS(o),w,T=f;if(T===ss&&(T=ed(n)),T===ss){if(p=Hs(n,a),!p&&n!==n.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var O=y.createElement("div");O.innerHTML="<script><\/script>";var F=O.firstChild;w=O.removeChild(F)}else if(typeof a.is=="string")w=y.createElement(n,{is:a.is});else if(w=y.createElement(n),n==="select"){var H=w;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else w=y.createElementNS(T,n);return T===ss&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ye.call(yg,n)&&(yg[n]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),w}function hE(n,a){return xS(a).createTextNode(n)}function mE(n,a,o,f){var p=Hs(a,o);Hh(a,o);var y;switch(a){case"dialog":bn("cancel",n),bn("close",n),y=o;break;case"iframe":case"object":case"embed":bn("load",n),y=o;break;case"video":case"audio":for(var w=0;w<Zc.length;w++)bn(Zc[w],n);y=o;break;case"source":bn("error",n),y=o;break;case"img":case"image":case"link":bn("error",n),bn("load",n),y=o;break;case"details":bn("toggle",n),y=o;break;case"input":R(n,o),y=S(n,o),bn("invalid",n);break;case"option":pt(n,o),y=o;break;case"select":os(n,o),y=gi(n,o),bn("invalid",n);break;case"textarea":fv(n,o),y=cv(n,o),bn("invalid",n);break;default:y=o}switch(qn(a,y),oa(a,n,f,y,p),a){case"input":Ia(n),te(n,o,!1);break;case"textarea":Ia(n),xu(n);break;case"option":Lt(n,o);break;case"select":Zf(n,o);break;default:typeof y.onClick=="function"&&Yh(n);break}}function wS(n,a,o,f,p){Hh(a,f);var y=null,w,T;switch(a){case"input":w=S(n,o),T=S(n,f),y=[];break;case"select":w=gi(n,o),T=gi(n,f),y=[];break;case"textarea":w=cv(n,o),T=cv(n,f),y=[];break;default:w=o,T=f,typeof w.onClick!="function"&&typeof T.onClick=="function"&&Yh(n);break}qn(a,T);var O,F,H=null;for(O in w)if(!(T.hasOwnProperty(O)||!w.hasOwnProperty(O)||w[O]==null))if(O===Hu){var ee=w[O];for(F in ee)ee.hasOwnProperty(F)&&(H||(H={}),H[F]="")}else O===Jc||O===Vu||O===$u||O===Ul||O===gS||(vt.hasOwnProperty(O)?y||(y=[]):(y=y||[]).push(O,null));for(O in T){var J=T[O],he=w?.[O];if(!(!T.hasOwnProperty(O)||J===he||J==null&&he==null))if(O===Hu)if(J&&Object.freeze(J),he){for(F in he)he.hasOwnProperty(F)&&(!J||!J.hasOwnProperty(F))&&(H||(H={}),H[F]="");for(F in J)J.hasOwnProperty(F)&&he[F]!==J[F]&&(H||(H={}),H[F]=J[F])}else H||(y||(y=[]),y.push(O,H)),H=J;else if(O===Jc){var me=J?J[Vh]:void 0,_e=he?he[Vh]:void 0;me!=null&&_e!==me&&(y=y||[]).push(O,me)}else O===Vu?(typeof J=="string"||typeof J=="number")&&(y=y||[]).push(O,""+J):O===$u||O===Ul||(vt.hasOwnProperty(O)?(J!=null&&(typeof J!="function"&&Wh(O,J),O==="onScroll"&&bn("scroll",n)),!y&&he!==J&&(y=[])):(y=y||[]).push(O,J))}return H&&(ft(H,T[Hu]),(y=y||[]).push(Hu,H)),y}function vE(n,a,o,f,p){o==="input"&&p.type==="radio"&&p.name!=null&&$(n,p);var y=Hs(o,f),w=Hs(o,p);switch(wi(n,a,y,w),o){case"input":G(n,p);break;case"textarea":Qf(n,p);break;case"select":uv(n,p);break}}function gE(n){{var a=n.toLowerCase();return Qp.hasOwnProperty(a)&&Qp[a]||null}}function yE(n,a,o,f,p,y,w){var T,O;switch(T=Hs(a,o),Hh(a,o),a){case"dialog":bn("cancel",n),bn("close",n);break;case"iframe":case"object":case"embed":bn("load",n);break;case"video":case"audio":for(var F=0;F<Zc.length;F++)bn(Zc[F],n);break;case"source":bn("error",n);break;case"img":case"image":case"link":bn("error",n),bn("load",n);break;case"details":bn("toggle",n);break;case"input":R(n,o),bn("invalid",n);break;case"option":pt(n,o);break;case"select":os(n,o),bn("invalid",n);break;case"textarea":fv(n,o),bn("invalid",n);break}qn(a,o);{O=new Set;for(var H=n.attributes,ee=0;ee<H.length;ee++){var J=H[ee].name.toLowerCase();switch(J){case"value":break;case"checked":break;case"selected":break;default:O.add(H[ee].name)}}}var he=null;for(var me in o)if(!!o.hasOwnProperty(me)){var _e=o[me];if(me===Vu)typeof _e=="string"?n.textContent!==_e&&(o[Ul]!==!0&&ef(n.textContent,_e,y,w),he=[Vu,_e]):typeof _e=="number"&&n.textContent!==""+_e&&(o[Ul]!==!0&&ef(n.textContent,_e,y,w),he=[Vu,""+_e]);else if(vt.hasOwnProperty(me))_e!=null&&(typeof _e!="function"&&Wh(me,_e),me==="onScroll"&&bn("scroll",n));else if(w&&!0&&typeof T=="boolean"){var ut=void 0,Ct=T&&Le?null:ca(me);if(o[Ul]!==!0){if(!(me===$u||me===Ul||me==="value"||me==="checked"||me==="selected")){if(me===Jc){var yt=n.innerHTML,An=_e?_e[Vh]:void 0;if(An!=null){var Sn=SS(n,An);Sn!==yt&&Gd(me,yt,Sn)}}else if(me===Hu){if(O.delete(me),bS){var le=xc(_e);ut=n.getAttribute("style"),le!==ut&&Gd(me,ut,le)}}else if(T&&!Le)O.delete(me.toLowerCase()),ut=Oa(n,me,_e),_e!==ut&&Gd(me,ut,_e);else if(!Dn(me,Ct,T)&&!Tn(me,_e,Ct,T)){var Ee=!1;if(Ct!==null)O.delete(Ct.attributeName),ut=cr(n,me,_e,Ct);else{var ue=f;if(ue===ss&&(ue=ed(a)),ue===ss)O.delete(me.toLowerCase());else{var He=gE(me);He!==null&&He!==me&&(Ee=!0,O.delete(He)),O.delete(me)}ut=Oa(n,me,_e)}var ct=Le;!ct&&_e!==ut&&!Ee&&Gd(me,ut,_e)}}}}}switch(w&&O.size>0&&o[Ul]!==!0&&yS(O),a){case"input":Ia(n),te(n,o,!0);break;case"textarea":Ia(n),xu(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&Yh(n);break}return he}function CS(n,a,o){var f=n.nodeValue!==a;return f}function Sg(n,a){{if(xi)return;xi=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function xg(n,a){{if(xi)return;xi=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function wg(n,a,o){{if(xi)return;xi=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function qh(n,a){{if(a===""||xi)return;xi=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function _S(n,a,o){switch(a){case"input":Fe(n,o);return;case"textarea":mC(n,o);return;case"select":hC(n,o);return}}var Yd=function(){},qd=function(){};{var bE=["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"],ES=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],tf=ES.concat(["button"]),SE=["dd","dt","li","option","optgroup","p","rp","rt"],TS={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};qd=function(n,a){var o=Zt({},n||TS),f={tag:a};return ES.indexOf(a)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),tf.indexOf(a)!==-1&&(o.pTagInButtonScope=null),bE.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=f,a==="form"&&(o.formTag=f),a==="a"&&(o.aTagInScope=f),a==="button"&&(o.buttonTagInScope=f),a==="nobr"&&(o.nobrTagInScope=f),a==="p"&&(o.pTagInButtonScope=f),a==="li"&&(o.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(o.dlItemTagAutoclosing=f),o};var xE=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return SE.indexOf(a)===-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 a==null}return!0},wE=function(n,a){switch(n){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 a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},NS={};Yd=function(n,a,o){o=o||TS;var f=o.current,p=f&&f.tag;a!=null&&(n!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var y=xE(n,p)?null:f,w=y?null:wE(n,o),T=y||w;if(!!T){var O=T.tag,F=!!y+"|"+n+"|"+O;if(!NS[F]){NS[F]=!0;var H=n,ee="";if(n==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",ee=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+n+">",y){var J="";O==="table"&&n==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,ee,J)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var Kd="suppressHydrationWarning",Xd="$",Kh="/$",Zd="$?",Qd="$!",CE="style",Cg=null,_g=null;function _E(n){var a,o,f=n.nodeType;switch(f){case Mo:case wu:{a=f===Mo?"#document":"#fragment";var p=n.documentElement;o=p?p.namespaceURI:Xp(null,"");break}default:{var y=f===Bn?n.parentNode:n,w=y.namespaceURI||null;a=y.tagName,o=Xp(w,a);break}}{var T=a.toLowerCase(),O=qd(null,T);return{namespace:o,ancestorInfo:O}}}function EE(n,a,o){{var f=n,p=Xp(f.namespace,a),y=qd(f.ancestorInfo,a);return{namespace:p,ancestorInfo:y}}}function tD(n){return n}function TE(n){Cg=QC(),_g=zo();var a=null;return L0(!1),a}function NE(n){eE(_g),L0(Cg),Cg=null,_g=null}function RE(n,a,o,f,p){var y;{var w=f;if(Yd(n,null,w.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var T=""+a.children,O=qd(w.ancestorInfo,n);Yd(null,T,O)}y=w.namespace}var F=pE(n,a,o,y);return Z(p,F),cn(F,a),F}function AE(n,a){n.appendChild(a)}function OE(n,a,o,f,p){switch(mE(n,a,o,f),a){case"button":case"input":case"select":case"textarea":return!!o.autoFocus;case"img":return!0;default:return!1}}function kE(n,a,o,f,p,y){{var w=y;if(typeof f.children!=typeof o.children&&(typeof f.children=="string"||typeof f.children=="number")){var T=""+f.children,O=qd(w.ancestorInfo,a);Yd(null,T,O)}}return wS(n,a,o,f)}function Eg(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function DE(n,a,o,f){{var p=o;Yd(null,n,p.ancestorInfo)}var y=hE(n,a);return Z(f,y),y}function PE(){var n=window.event;return n===void 0?br:B0(n.type)}var Tg=typeof setTimeout=="function"?setTimeout:void 0,ME=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=-1,RS=typeof Promise=="function"?Promise:void 0,IE=typeof queueMicrotask=="function"?queueMicrotask:typeof RS<"u"?function(n){return RS.resolve(null).then(n).catch(LE)}:Tg;function LE(n){setTimeout(function(){throw n})}function FE(n,a,o,f){switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();return;case"img":{o.src&&(n.src=o.src);return}}}function Rg(n,a,o,f,p,y){vE(n,a,o,f,p),cn(n,p)}function Ag(n){td(n,"")}function AS(n,a,o){n.nodeValue=o}function zE(n,a){n.appendChild(a)}function BE(n,a){var o;n.nodeType===Bn?(o=n.parentNode,o.insertBefore(a,n)):(o=n,o.appendChild(a));var f=n._reactRootContainer;f==null&&o.onclick===null&&Yh(o)}function UE(n,a,o){n.insertBefore(a,o)}function Og(n,a,o){n.nodeType===Bn?n.parentNode.insertBefore(a,o):n.insertBefore(a,o)}function jE(n,a){n.removeChild(a)}function $E(n,a){n.nodeType===Bn?n.parentNode.removeChild(a):n.removeChild(a)}function kg(n,a){var o=a,f=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===Bn){var y=p.data;if(y===Kh)if(f===0){n.removeChild(p),Dd(a);return}else f--;else(y===Xd||y===Zd||y===Qd)&&f++}o=p}while(o);Dd(a)}function Ci(n,a){n.nodeType===Bn?kg(n.parentNode,a):n.nodeType===yi&&kg(n,a),Dd(n)}function Dg(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function VE(n){n.nodeValue=""}function HE(n,a){n=n;var o=a[CE],f=o!=null&&o.hasOwnProperty("display")?o.display:null;n.style.display=dv("display",f)}function WE(n,a){n.nodeValue=a}function GE(n){n.nodeType===yi?n.textContent="":n.nodeType===Mo&&n.documentElement&&n.removeChild(n.documentElement)}function Pg(n,a,o){return n.nodeType!==yi||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function YE(n,a){return a===""||n.nodeType!==ls?null:n}function Mg(n){return n.nodeType!==Bn?null:n}function OS(n){return n.data===Zd}function Ig(n){return n.data===Qd}function qE(n){var a=n.nextSibling&&n.nextSibling.dataset,o,f,p;return a&&(o=a.dgst,f=a.msg,p=a.stck),{message:f,digest:o,stack:p}}function KE(n,a){n._reactRetry=a}function Jd(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===yi||a===ls)break;if(a===Bn){var o=n.data;if(o===Xd||o===Qd||o===Zd)break;if(o===Kh)return null}}return n}function ep(n){return Jd(n.nextSibling)}function XE(n){return Jd(n.firstChild)}function ZE(n){return Jd(n.firstChild)}function Lg(n){return Jd(n.nextSibling)}function Fg(n,a,o,f,p,y,w){Z(y,n),cn(n,o);var T;{var O=p;T=O.namespace}var F=(y.mode&yn)!==Rt;return yE(n,a,o,T,f,F,w)}function QE(n,a,o,f){return Z(o,n),o.mode&yn,CS(n,a)}function JE(n,a){Z(a,n)}function eT(n){for(var a=n.nextSibling,o=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Kh){if(o===0)return ep(a);o--}else(f===Xd||f===Qd||f===Zd)&&o++}a=a.nextSibling}return null}function kS(n){for(var a=n.previousSibling,o=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Xd||f===Qd||f===Zd){if(o===0)return a;o--}else f===Kh&&o++}a=a.previousSibling}return null}function tT(n){Dd(n)}function nT(n){Dd(n)}function rT(n){return n!=="head"&&n!=="body"}function aT(n,a,o,f){var p=!0;ef(a.nodeValue,o,f,p)}function iT(n,a,o,f,p,y){if(a[Kd]!==!0){var w=!0;ef(f.nodeValue,p,y,w)}}function oT(n,a){a.nodeType===yi?Sg(n,a):a.nodeType===Bn||xg(n,a)}function sT(n,a){{var o=n.parentNode;o!==null&&(a.nodeType===yi?Sg(o,a):a.nodeType===Bn||xg(o,a))}}function lT(n,a,o,f,p){(p||a[Kd]!==!0)&&(f.nodeType===yi?Sg(o,f):f.nodeType===Bn||xg(o,f))}function uT(n,a,o){wg(n,a)}function cT(n,a){qh(n,a)}function fT(n,a,o){{var f=n.parentNode;f!==null&&wg(f,a)}}function dT(n,a){{var o=n.parentNode;o!==null&&qh(o,a)}}function pT(n,a,o,f,p,y){(y||a[Kd]!==!0)&&wg(o,f)}function hT(n,a,o,f,p){(p||a[Kd]!==!0)&&qh(o,f)}function mT(n){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function vT(n){Wd(n)}var nf=Math.random().toString(36).slice(2),l="__reactFiber$"+nf,d="__reactProps$"+nf,g="__reactContainer$"+nf,E="__reactEvents$"+nf,P="__reactListeners$"+nf,B="__reactHandles$"+nf;function Y(n){delete n[l],delete n[d],delete n[E],delete n[P],delete n[B]}function Z(n,a){a[l]=n}function ae(n,a){a[g]=n}function De(n){n[g]=null}function Ae(n){return!!n[g]}function Pe(n){var a=n[l];if(a)return a;for(var o=n.parentNode;o;){if(a=o[g]||o[l],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var p=kS(n);p!==null;){var y=p[l];if(y)return y;p=kS(p)}return a}n=o,o=n.parentNode}return null}function Ke(n){var a=n[l]||n[g];return a&&(a.tag===_||a.tag===N||a.tag===V||a.tag===x)?a:null}function dt(n){if(n.tag===_||n.tag===N)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Ot(n){return n[d]||null}function cn(n,a){n[d]=a}function Pt(n){var a=n[E];return a===void 0&&(a=n[E]=new Set),a}var vn={},En=r.ReactDebugCurrentFrame;function za(n){if(n){var a=n._owner,o=ma(n.type,n._source,a?a.type:null);En.setExtraStackFrame(o)}else En.setExtraStackFrame(null)}function dr(n,a,o,f,p){{var y=Function.call.bind(ye);for(var w in n)if(y(n,w)){var T=void 0;try{if(typeof n[w]!="function"){var O=Error((f||"React class")+": "+o+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}T=n[w](a,w,f,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){T=F}T&&!(T instanceof Error)&&(za(p),u("%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).",f||"React class",o,w,typeof T),za(null)),T instanceof Error&&!(T.message in vn)&&(vn[T.message]=!0,za(p),u("Failed %s type: %s",o,T.message),za(null))}}}var qa=[],xr;xr=[];var qr=-1;function Ba(n){return{current:n}}function ba(n,a){if(qr<0){u("Unexpected pop.");return}a!==xr[qr]&&u("Unexpected Fiber popped."),n.current=qa[qr],qa[qr]=null,xr[qr]=null,qr--}function _i(n,a,o){qr++,qa[qr]=n.current,xr[qr]=o,n.current=a}var gT;gT={};var Bo={};Object.freeze(Bo);var Wu=Ba(Bo),jl=Ba(!1),yT=Bo;function Xh(n,a,o){return o&&$l(a)?yT:Wu.current}function nD(n,a,o){{var f=n.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=o}}function Zh(n,a){{var o=n.type,f=o.contextTypes;if(!f)return Bo;var p=n.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in f)y[w]=a[w];{var T=It(n)||"Unknown";dr(f,y,"context",T)}return p&&nD(n,a,y),y}}function DS(){return jl.current}function $l(n){{var a=n.childContextTypes;return a!=null}}function PS(n){ba(jl,n),ba(Wu,n)}function bT(n){ba(jl,n),ba(Wu,n)}function rD(n,a,o){{if(Wu.current!==Bo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");_i(Wu,a,n),_i(jl,o,n)}}function aD(n,a,o){{var f=n.stateNode,p=a.childContextTypes;if(typeof f.getChildContext!="function"){{var y=It(n)||"Unknown";gT[y]||(gT[y]=!0,u("%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.",y,y))}return o}var w=f.getChildContext();for(var T in w)if(!(T in p))throw new Error((It(n)||"Unknown")+'.getChildContext(): key "'+T+'" is not defined in childContextTypes.');{var O=It(n)||"Unknown";dr(p,w,"child context",O)}return Zt({},o,w)}}function MS(n){{var a=n.stateNode,o=a&&a.__reactInternalMemoizedMergedChildContext||Bo;return yT=Wu.current,_i(Wu,o,n),_i(jl,jl.current,n),!0}}function iD(n,a,o){{var f=n.stateNode;if(!f)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(o){var p=aD(n,a,yT);f.__reactInternalMemoizedMergedChildContext=p,ba(jl,n),ba(Wu,n),_i(Wu,p,n),_i(jl,o,n)}else ba(jl,n),_i(jl,o,n)}}function QU(n){{if(!pd(n)||n.tag!==v)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 a=n;do{switch(a.tag){case x:return a.stateNode.context;case v:{var o=a.type;if($l(o))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var rf=0,IS=1,Gu=null,ST=!1,xT=!1;function oD(n){Gu===null?Gu=[n]:Gu.push(n)}function JU(n){ST=!0,oD(n)}function sD(){ST&&af()}function af(){if(!xT&&Gu!==null){xT=!0;var n=0,a=ro();try{var o=!0,f=Gu;for(aa(Ga);n<f.length;n++){var p=f[n];do p=p(o);while(p!==null)}Gu=null,ST=!1}catch(y){throw Gu!==null&&(Gu=Gu.slice(n+1)),Fi(hd,af),y}finally{aa(a),xT=!1}}return null}var Qh=[],Jh=0,LS=null,FS=0,ws=[],Cs=0,tp=null,Yu=1,qu="";function ej(n){return rp(),(n.flags&a0)!==kt}function tj(n){return rp(),FS}function nj(){var n=qu,a=Yu,o=a&~rj(a);return o.toString(32)+n}function np(n,a){rp(),Qh[Jh++]=FS,Qh[Jh++]=LS,LS=n,FS=a}function lD(n,a,o){rp(),ws[Cs++]=Yu,ws[Cs++]=qu,ws[Cs++]=tp,tp=n;var f=Yu,p=qu,y=zS(f)-1,w=f&~(1<<y),T=o+1,O=zS(a)+y;if(O>30){var F=y-y%5,H=(1<<F)-1,ee=(w&H).toString(32),J=w>>F,he=y-F,me=zS(a)+he,_e=T<<he,ut=_e|J,Ct=ee+p;Yu=1<<me|ut,qu=Ct}else{var yt=T<<y,An=yt|w,Sn=p;Yu=1<<O|An,qu=Sn}}function wT(n){rp();var a=n.return;if(a!==null){var o=1,f=0;np(n,o),lD(n,o,f)}}function zS(n){return 32-x0(n)}function rj(n){return 1<<zS(n)-1}function CT(n){for(;n===LS;)LS=Qh[--Jh],Qh[Jh]=null,FS=Qh[--Jh],Qh[Jh]=null;for(;n===tp;)tp=ws[--Cs],ws[Cs]=null,qu=ws[--Cs],ws[Cs]=null,Yu=ws[--Cs],ws[Cs]=null}function aj(){return rp(),tp!==null?{id:Yu,overflow:qu}:null}function ij(n,a){rp(),ws[Cs++]=Yu,ws[Cs++]=qu,ws[Cs++]=tp,Yu=a.id,qu=a.overflow,tp=n}function rp(){Xa()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ka=null,_s=null,il=!1,ap=!1,of=null;function oj(){il&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function uD(){ap=!0}function sj(){return ap}function lj(n){var a=n.stateNode.containerInfo;return _s=ZE(a),Ka=n,il=!0,of=null,ap=!1,!0}function uj(n,a,o){return _s=Lg(a),Ka=n,il=!0,of=null,ap=!1,o!==null&&ij(n,o),!0}function cD(n,a){switch(n.tag){case x:{oT(n.stateNode.containerInfo,a);break}case _:{var o=(n.mode&yn)!==Rt;lT(n.type,n.memoizedProps,n.stateNode,a,o);break}case V:{var f=n.memoizedState;f.dehydrated!==null&&sT(f.dehydrated,a);break}}}function fD(n,a){cD(n,a);var o=dV();o.stateNode=a,o.return=n;var f=n.deletions;f===null?(n.deletions=[o],n.flags|=Eu):f.push(o)}function _T(n,a){{if(ap)return;switch(n.tag){case x:{var o=n.stateNode.containerInfo;switch(a.tag){case _:var f=a.type;a.pendingProps,uT(o,f);break;case N:var p=a.pendingProps;cT(o,p);break}break}case _:{var y=n.type,w=n.memoizedProps,T=n.stateNode;switch(a.tag){case _:{var O=a.type,F=a.pendingProps,H=(n.mode&yn)!==Rt;pT(y,w,T,O,F,H);break}case N:{var ee=a.pendingProps,J=(n.mode&yn)!==Rt;hT(y,w,T,ee,J);break}}break}case V:{var he=n.memoizedState,me=he.dehydrated;if(me!==null)switch(a.tag){case _:var _e=a.type;a.pendingProps,fT(me,_e);break;case N:var ut=a.pendingProps;dT(me,ut);break}break}default:return}}}function dD(n,a){a.flags=a.flags&~Xs|zr,_T(n,a)}function pD(n,a){switch(n.tag){case _:{var o=n.type;n.pendingProps;var f=Pg(a,o);return f!==null?(n.stateNode=f,Ka=n,_s=XE(f),!0):!1}case N:{var p=n.pendingProps,y=YE(a,p);return y!==null?(n.stateNode=y,Ka=n,_s=null,!0):!1}case V:{var w=Mg(a);if(w!==null){var T={dehydrated:w,treeContext:aj(),retryLane:Ui};n.memoizedState=T;var O=pV(w);return O.return=n,n.child=O,Ka=n,_s=null,!0}return!1}default:return!1}}function ET(n){return(n.mode&yn)!==Rt&&(n.flags&Ln)===kt}function TT(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function NT(n){if(!!il){var a=_s;if(!a){ET(n)&&(_T(Ka,n),TT()),dD(Ka,n),il=!1,Ka=n;return}var o=a;if(!pD(n,a)){ET(n)&&(_T(Ka,n),TT()),a=ep(o);var f=Ka;if(!a||!pD(n,a)){dD(Ka,n),il=!1,Ka=n;return}fD(f,o)}}}function cj(n,a,o){var f=n.stateNode,p=!ap,y=Fg(f,n.type,n.memoizedProps,a,o,n,p);return n.updateQueue=y,y!==null}function fj(n){var a=n.stateNode,o=n.memoizedProps,f=QE(a,o,n);if(f){var p=Ka;if(p!==null)switch(p.tag){case x:{var y=p.stateNode.containerInfo,w=(p.mode&yn)!==Rt;aT(y,a,o,w);break}case _:{var T=p.type,O=p.memoizedProps,F=p.stateNode,H=(p.mode&yn)!==Rt;iT(T,O,F,a,o,H);break}}}return f}function dj(n){var a=n.memoizedState,o=a!==null?a.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");JE(o,n)}function pj(n){var a=n.memoizedState,o=a!==null?a.dehydrated:null;if(!o)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 eT(o)}function hD(n){for(var a=n.return;a!==null&&a.tag!==_&&a.tag!==x&&a.tag!==V;)a=a.return;Ka=a}function BS(n){if(n!==Ka)return!1;if(!il)return hD(n),il=!0,!1;if(n.tag!==x&&(n.tag!==_||rT(n.type)&&!Eg(n.type,n.memoizedProps))){var a=_s;if(a)if(ET(n))mD(n),TT();else for(;a;)fD(n,a),a=ep(a)}return hD(n),n.tag===V?_s=pj(n):_s=Ka?ep(n.stateNode):null,!0}function hj(){return il&&_s!==null}function mD(n){for(var a=_s;a;)cD(n,a),a=ep(a)}function em(){Ka=null,_s=null,il=!1,ap=!1}function vD(){of!==null&&(cM(of),of=null)}function Xa(){return il}function RT(n){of===null?of=[n]:of.push(n)}var mj=r.ReactCurrentBatchConfig,vj=null;function gj(){return mj.transition}var ol={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var yj=function(n){for(var a=null,o=n;o!==null;)o.mode&Pr&&(a=o),o=o.return;return a},ip=function(n){var a=[];return n.forEach(function(o){a.push(o)}),a.sort().join(", ")},zg=[],Bg=[],Ug=[],jg=[],$g=[],Vg=[],op=new Set;ol.recordUnsafeLifecycleWarnings=function(n,a){op.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&zg.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillMount=="function"&&Bg.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ug.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&jg.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&$g.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillUpdate=="function"&&Vg.push(n))},ol.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;zg.length>0&&(zg.forEach(function(J){n.add(It(J)||"Component"),op.add(J.type)}),zg=[]);var a=new Set;Bg.length>0&&(Bg.forEach(function(J){a.add(It(J)||"Component"),op.add(J.type)}),Bg=[]);var o=new Set;Ug.length>0&&(Ug.forEach(function(J){o.add(It(J)||"Component"),op.add(J.type)}),Ug=[]);var f=new Set;jg.length>0&&(jg.forEach(function(J){f.add(It(J)||"Component"),op.add(J.type)}),jg=[]);var p=new Set;$g.length>0&&($g.forEach(function(J){p.add(It(J)||"Component"),op.add(J.type)}),$g=[]);var y=new Set;if(Vg.length>0&&(Vg.forEach(function(J){y.add(It(J)||"Component"),op.add(J.type)}),Vg=[]),a.size>0){var w=ip(a);u(`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`,w)}if(f.size>0){var T=ip(f);u(`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`,T)}if(y.size>0){var O=ip(y);u(`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`,O)}if(n.size>0){var F=ip(n);c(`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`,F)}if(o.size>0){var H=ip(o);c(`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`,H)}if(p.size>0){var ee=ip(p);c(`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`,ee)}};var US=new Map,gD=new Set;ol.recordLegacyContextWarning=function(n,a){var o=yj(n);if(o===null){u("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(!gD.has(n.type)){var f=US.get(o);(n.type.contextTypes!=null||n.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],US.set(o,f)),f.push(n))}},ol.flushLegacyContextWarning=function(){US.forEach(function(n,a){if(n.length!==0){var o=n[0],f=new Set;n.forEach(function(y){f.add(It(y)||"Component"),gD.add(y.type)});var p=ip(f);try{er(o),u(`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`,p)}finally{Cr()}}})},ol.discardPendingWarnings=function(){zg=[],Bg=[],Ug=[],jg=[],$g=[],Vg=[],US=new Map}}function sl(n,a){if(n&&n.defaultProps){var o=Zt({},a),f=n.defaultProps;for(var p in f)o[p]===void 0&&(o[p]=f[p]);return o}return a}var AT=Ba(null),OT;OT={};var jS=null,tm=null,kT=null,$S=!1;function VS(){jS=null,tm=null,kT=null,$S=!1}function yD(){$S=!0}function bD(){$S=!1}function SD(n,a,o){_i(AT,a._currentValue,n),a._currentValue=o,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==OT&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=OT}function DT(n,a){var o=AT.current;ba(AT,a),n._currentValue=o}function PT(n,a,o){for(var f=n;f!==null;){var p=f.alternate;if(Iu(f.childLanes,a)?p!==null&&!Iu(p.childLanes,a)&&(p.childLanes=un(p.childLanes,a)):(f.childLanes=un(f.childLanes,a),p!==null&&(p.childLanes=un(p.childLanes,a))),f===o)break;f=f.return}f!==o&&u("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 bj(n,a,o){Sj(n,a,o)}function Sj(n,a,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=void 0,y=f.dependencies;if(y!==null){p=f.child;for(var w=y.firstContext;w!==null;){if(w.context===a){if(f.tag===v){var T=Ed(o),O=Ku(Xn,T);O.tag=WS;var F=f.updateQueue;if(F!==null){var H=F.shared,ee=H.pending;ee===null?O.next=O:(O.next=ee.next,ee.next=O),H.pending=O}}f.lanes=un(f.lanes,o);var J=f.alternate;J!==null&&(J.lanes=un(J.lanes,o)),PT(f.return,o,n),y.lanes=un(y.lanes,o);break}w=w.next}}else if(f.tag===M)p=f.type===n.type?null:f.child;else if(f.tag===se){var he=f.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=un(he.lanes,o);var me=he.alternate;me!==null&&(me.lanes=un(me.lanes,o)),PT(he,o,n),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===n){p=null;break}var _e=p.sibling;if(_e!==null){_e.return=p.return,p=_e;break}p=p.return}f=p}}function nm(n,a){jS=n,tm=null,kT=null;var o=n.dependencies;if(o!==null){var f=o.firstContext;f!==null&&(bi(o.lanes,a)&&ry(),o.firstContext=null)}}function sa(n){$S&&u("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 a=n._currentValue;if(kT!==n){var o={context:n,memoizedValue:a,next:null};if(tm===null){if(jS===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().");tm=o,jS.dependencies={lanes:Me,firstContext:o}}else tm=tm.next=o}return a}var sp=null;function MT(n){sp===null?sp=[n]:sp.push(n)}function xj(){if(sp!==null){for(var n=0;n<sp.length;n++){var a=sp[n],o=a.interleaved;if(o!==null){a.interleaved=null;var f=o.next,p=a.pending;if(p!==null){var y=p.next;p.next=f,o.next=y}a.pending=o}}sp=null}}function xD(n,a,o,f){var p=a.interleaved;return p===null?(o.next=o,MT(a)):(o.next=p.next,p.next=o),a.interleaved=o,HS(n,f)}function wj(n,a,o,f){var p=a.interleaved;p===null?(o.next=o,MT(a)):(o.next=p.next,p.next=o),a.interleaved=o}function Cj(n,a,o,f){var p=a.interleaved;return p===null?(o.next=o,MT(a)):(o.next=p.next,p.next=o),a.interleaved=o,HS(n,f)}function oo(n,a){return HS(n,a)}var _j=HS;function HS(n,a){n.lanes=un(n.lanes,a);var o=n.alternate;o!==null&&(o.lanes=un(o.lanes,a)),o===null&&(n.flags&(zr|Xs))!==kt&&wM(n);for(var f=n,p=n.return;p!==null;)p.childLanes=un(p.childLanes,a),o=p.alternate,o!==null?o.childLanes=un(o.childLanes,a):(p.flags&(zr|Xs))!==kt&&wM(n),f=p,p=p.return;if(f.tag===x){var y=f.stateNode;return y}else return null}var wD=0,CD=1,WS=2,IT=3,GS=!1,LT,YS;LT=!1,YS=null;function FT(n){var a={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Me},effects:null};n.updateQueue=a}function _D(n,a){var o=a.updateQueue,f=n.updateQueue;if(o===f){var p={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=p}}function Ku(n,a){var o={eventTime:n,lane:a,tag:wD,payload:null,callback:null,next:null};return o}function sf(n,a,o){var f=n.updateQueue;if(f===null)return null;var p=f.shared;if(YS===p&&!LT&&(u("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."),LT=!0),_9()){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,_j(n,o)}else return Cj(n,p,a,o)}function qS(n,a,o){var f=a.updateQueue;if(f!==null){var p=f.shared;if(Wv(o)){var y=p.lanes;y=T0(y,n.pendingLanes);var w=un(y,o);p.lanes=w,At(n,w)}}}function zT(n,a){var o=n.updateQueue,f=n.alternate;if(f!==null){var p=f.updateQueue;if(o===p){var y=null,w=null,T=o.firstBaseUpdate;if(T!==null){var O=T;do{var F={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};w===null?y=w=F:(w.next=F,w=F),O=O.next}while(O!==null);w===null?y=w=a:(w.next=a,w=a)}else y=w=a;o={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},n.updateQueue=o;return}}var H=o.lastBaseUpdate;H===null?o.firstBaseUpdate=a:H.next=a,o.lastBaseUpdate=a}function Ej(n,a,o,f,p,y){switch(o.tag){case CD:{var w=o.payload;if(typeof w=="function"){yD();var T=w.call(y,f,p);{if(n.mode&Pr){na(!0);try{w.call(y,f,p)}finally{na(!1)}}bD()}return T}return w}case IT:n.flags=n.flags&~Va|Ln;case wD:{var O=o.payload,F;if(typeof O=="function"){yD(),F=O.call(y,f,p);{if(n.mode&Pr){na(!0);try{O.call(y,f,p)}finally{na(!1)}}bD()}}else F=O;return F==null?f:Zt({},f,F)}case WS:return GS=!0,f}return f}function KS(n,a,o,f){var p=n.updateQueue;GS=!1,YS=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var O=T,F=O.next;O.next=null,w===null?y=F:w.next=F,w=O;var H=n.alternate;if(H!==null){var ee=H.updateQueue,J=ee.lastBaseUpdate;J!==w&&(J===null?ee.firstBaseUpdate=F:J.next=F,ee.lastBaseUpdate=O)}}if(y!==null){var he=p.baseState,me=Me,_e=null,ut=null,Ct=null,yt=y;do{var An=yt.lane,Sn=yt.eventTime;if(Iu(f,An)){if(Ct!==null){var Ee={eventTime:Sn,lane:Gr,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct=Ct.next=Ee}he=Ej(n,p,yt,he,a,o);var ue=yt.callback;if(ue!==null&&yt.lane!==Gr){n.flags|=Sv;var He=p.effects;He===null?p.effects=[yt]:He.push(yt)}}else{var le={eventTime:Sn,lane:An,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct===null?(ut=Ct=le,_e=he):Ct=Ct.next=le,me=un(me,An)}if(yt=yt.next,yt===null){if(T=p.shared.pending,T===null)break;var ct=T,ot=ct.next;ct.next=null,yt=ot,p.lastBaseUpdate=ct,p.shared.pending=null}}while(!0);Ct===null&&(_e=he),p.baseState=_e,p.firstBaseUpdate=ut,p.lastBaseUpdate=Ct;var Ft=p.shared.interleaved;if(Ft!==null){var Qt=Ft;do me=un(me,Qt.lane),Qt=Qt.next;while(Qt!==Ft)}else y===null&&(p.shared.lanes=Me);my(me),n.lanes=me,n.memoizedState=he}YS=null}function Tj(n,a){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(a)}function ED(){GS=!1}function XS(){return GS}function TD(n,a,o){var f=a.effects;if(a.effects=null,f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.callback;w!==null&&(y.callback=null,Tj(w,o))}}var BT={},ND=new e.Component().refs,UT,jT,$T,VT,HT,RD,ZS,WT,GT,YT;{UT=new Set,jT=new Set,$T=new Set,VT=new Set,WT=new Set,HT=new Set,GT=new Set,YT=new Set;var AD=new Set;ZS=function(n,a){if(!(n===null||typeof n=="function")){var o=a+"_"+n;AD.has(o)||(AD.add(o),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n))}},RD=function(n,a){if(a===void 0){var o=on(n)||"Component";HT.has(o)||(HT.add(o),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))}},Object.defineProperty(BT,"_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(BT)}function qT(n,a,o,f){var p=n.memoizedState,y=o(f,p);{if(n.mode&Pr){na(!0);try{y=o(f,p)}finally{na(!1)}}RD(a,y)}var w=y==null?p:Zt({},p,y);if(n.memoizedState=w,n.lanes===Me){var T=n.updateQueue;T.baseState=w}}var KT={isMounted:fh,enqueueSetState:function(n,a,o){var f=qs(n),p=Hi(),y=mf(f),w=Ku(p,y);w.payload=a,o!=null&&(ZS(o,"setState"),w.callback=o);var T=sf(f,w,y);T!==null&&(Na(T,f,y,p),qS(T,f,y)),Lv(f,y)},enqueueReplaceState:function(n,a,o){var f=qs(n),p=Hi(),y=mf(f),w=Ku(p,y);w.tag=CD,w.payload=a,o!=null&&(ZS(o,"replaceState"),w.callback=o);var T=sf(f,w,y);T!==null&&(Na(T,f,y,p),qS(T,f,y)),Lv(f,y)},enqueueForceUpdate:function(n,a){var o=qs(n),f=Hi(),p=mf(o),y=Ku(f,p);y.tag=WS,a!=null&&(ZS(a,"forceUpdate"),y.callback=a);var w=sf(o,y,p);w!==null&&(Na(w,o,p,f),qS(w,o,p)),S0(o,p)}};function OD(n,a,o,f,p,y,w){var T=n.stateNode;if(typeof T.shouldComponentUpdate=="function"){var O=T.shouldComponentUpdate(f,y,w);{if(n.mode&Pr){na(!0);try{O=T.shouldComponentUpdate(f,y,w)}finally{na(!1)}}O===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",on(a)||"Component")}return O}return a.prototype&&a.prototype.isPureReactComponent?!Xc(o,f)||!Xc(p,y):!0}function Nj(n,a,o){var f=n.stateNode;{var p=on(a)||"Component",y=f.render;y||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&u("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?",p),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&u("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.",p),f.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),f.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),f.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),a.contextType&&a.contextTypes&&!GT.has(a)&&(GT.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof f.componentShouldUpdate=="function"&&u("%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.",p),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",on(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof f.componentDidReceiveProps=="function"&&u("%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().",p),typeof f.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof f.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var w=f.props!==o;f.props!==void 0&&w&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),f.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!$T.has(a)&&($T.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",on(a))),typeof f.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof f.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var T=f.state;T&&(typeof T!="object"||Dt(T))&&u("%s.state: must be set to an object or null",p),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function kD(n,a){a.updater=KT,n.stateNode=a,_n(a,n),a._reactInternalInstance=BT}function DD(n,a,o){var f=!1,p=Bo,y=Bo,w=a.contextType;if("contextType"in a){var T=w===null||w!==void 0&&w.$$typeof===gn&&w._context===void 0;if(!T&&!YT.has(a)){YT.add(a);var O="";w===void 0?O=" 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 w!="object"?O=" However, it is set to a "+typeof w+".":w.$$typeof===nn?O=" Did you accidentally pass the Context.Provider instead?":w._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",on(a)||"Component",O)}}if(typeof w=="object"&&w!==null)y=sa(w);else{p=Xh(n,a,!0);var F=a.contextTypes;f=F!=null,y=f?Zh(n,p):Bo}var H=new a(o,y);if(n.mode&Pr){na(!0);try{H=new a(o,y)}finally{na(!1)}}var ee=n.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;kD(n,H);{if(typeof a.getDerivedStateFromProps=="function"&&ee===null){var J=on(a)||"Component";jT.has(J)||(jT.add(J),u("`%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.",J,H.state===null?"null":"undefined",J))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,me=null,_e=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?me="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(me="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?_e="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(_e="UNSAFE_componentWillUpdate"),he!==null||me!==null||_e!==null){var ut=on(a)||"Component",Ct=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";VT.has(ut)||(VT.add(ut),u(`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`,ut,Ct,he!==null?`
`+he:"",me!==null?`
`+me:"",_e!==null?`
`+_e:""))}}}return f&&nD(n,p,y),H}function Rj(n,a){var o=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(n)||"Component"),KT.enqueueReplaceState(a,a.state,null))}function PD(n,a,o,f){var p=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==p){{var y=It(n)||"Component";UT.has(y)||(UT.add(y),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}KT.enqueueReplaceState(a,a.state,null)}}function XT(n,a,o,f){Nj(n,a,o);var p=n.stateNode;p.props=o,p.state=n.memoizedState,p.refs=ND,FT(n);var y=a.contextType;if(typeof y=="object"&&y!==null)p.context=sa(y);else{var w=Xh(n,a,!0);p.context=Zh(n,w)}{if(p.state===o){var T=on(a)||"Component";WT.has(T)||(WT.add(T),u("%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.",T))}n.mode&Pr&&ol.recordLegacyContextWarning(n,p),ol.recordUnsafeLifecycleWarnings(n,p)}p.state=n.memoizedState;var O=a.getDerivedStateFromProps;if(typeof O=="function"&&(qT(n,a,O,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(Rj(n,p),KS(n,o,p,f),p.state=n.memoizedState),typeof p.componentDidMount=="function"){var F=ln;F|=Ru,(n.mode&no)!==Rt&&(F|=Wr),n.flags|=F}}function Aj(n,a,o,f){var p=n.stateNode,y=n.memoizedProps;p.props=y;var w=p.context,T=a.contextType,O=Bo;if(typeof T=="object"&&T!==null)O=sa(T);else{var F=Xh(n,a,!0);O=Zh(n,F)}var H=a.getDerivedStateFromProps,ee=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!ee&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(y!==o||w!==O)&&PD(n,p,o,O),ED();var J=n.memoizedState,he=p.state=J;if(KS(n,o,p,f),he=n.memoizedState,y===o&&J===he&&!DS()&&!XS()){if(typeof p.componentDidMount=="function"){var me=ln;me|=Ru,(n.mode&no)!==Rt&&(me|=Wr),n.flags|=me}return!1}typeof H=="function"&&(qT(n,a,H,o),he=n.memoizedState);var _e=XS()||OD(n,a,y,o,J,he,O);if(_e){if(!ee&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var ut=ln;ut|=Ru,(n.mode&no)!==Rt&&(ut|=Wr),n.flags|=ut}}else{if(typeof p.componentDidMount=="function"){var Ct=ln;Ct|=Ru,(n.mode&no)!==Rt&&(Ct|=Wr),n.flags|=Ct}n.memoizedProps=o,n.memoizedState=he}return p.props=o,p.state=he,p.context=O,_e}function Oj(n,a,o,f,p){var y=a.stateNode;_D(n,a);var w=a.memoizedProps,T=a.type===a.elementType?w:sl(a.type,w);y.props=T;var O=a.pendingProps,F=y.context,H=o.contextType,ee=Bo;if(typeof H=="object"&&H!==null)ee=sa(H);else{var J=Xh(a,o,!0);ee=Zh(a,J)}var he=o.getDerivedStateFromProps,me=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function";!me&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(w!==O||F!==ee)&&PD(a,y,f,ee),ED();var _e=a.memoizedState,ut=y.state=_e;if(KS(a,f,y,p),ut=a.memoizedState,w===O&&_e===ut&&!DS()&&!XS()&&!Te)return typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Tu),!1;typeof he=="function"&&(qT(a,o,he,f),ut=a.memoizedState);var Ct=XS()||OD(a,o,T,f,_e,ut,ee)||Te;return Ct?(!me&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,ut,ee),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,ut,ee)),typeof y.componentDidUpdate=="function"&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=Tu)):(typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Tu),a.memoizedProps=f,a.memoizedState=ut),y.props=f,y.state=ut,y.context=ee,Ct}var ZT,QT,JT,eN,tN,MD=function(n,a){};ZT=!1,QT=!1,JT={},eN={},tN={},MD=function(n,a){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._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.");n._store.validated=!0;var o=It(a)||"Component";eN[o]||(eN[o]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Hg(n,a,o){var f=o.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((n.mode&Pr||Ye)&&!(o._owner&&o._self&&o._owner.stateNode!==o._self)){var p=It(n)||"Component";JT[p]||(u('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',f),JT[p]=!0)}if(o._owner){var y=o._owner,w;if(y){var T=y;if(T.tag!==v)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");w=T.stateNode}if(!w)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var O=w;Bt(f,"ref");var F=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===F)return a.ref;var H=function(ee){var J=O.refs;J===ND&&(J=O.refs={}),ee===null?delete J[F]:J[F]=ee};return H._stringRef=F,H}else{if(typeof f!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!o._owner)throw new Error("Element ref was specified as a string ("+f+`) 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 f}function QS(n,a){var o=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}function JS(n){{var a=It(n)||"Component";if(tN[a])return;tN[a]=!0,u("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 ID(n){var a=n._payload,o=n._init;return o(a)}function LD(n){function a(le,Ee){if(!!n){var ue=le.deletions;ue===null?(le.deletions=[Ee],le.flags|=Eu):ue.push(Ee)}}function o(le,Ee){if(!n)return null;for(var ue=Ee;ue!==null;)a(le,ue),ue=ue.sibling;return null}function f(le,Ee){for(var ue=new Map,He=Ee;He!==null;)He.key!==null?ue.set(He.key,He):ue.set(He.index,He),He=He.sibling;return ue}function p(le,Ee){var ue=mp(le,Ee);return ue.index=0,ue.sibling=null,ue}function y(le,Ee,ue){if(le.index=ue,!n)return le.flags|=a0,Ee;var He=le.alternate;if(He!==null){var ct=He.index;return ct<Ee?(le.flags|=zr,Ee):ct}else return le.flags|=zr,Ee}function w(le){return n&&le.alternate===null&&(le.flags|=zr),le}function T(le,Ee,ue,He){if(Ee===null||Ee.tag!==N){var ct=RR(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue);return ot.return=le,ot}}function O(le,Ee,ue,He){var ct=ue.type;if(ct===Be)return H(le,Ee,ue.props.children,He,ue.key);if(Ee!==null&&(Ee.elementType===ct||TM(Ee,ue)||typeof ct=="object"&&ct!==null&&ct.$$typeof===an&&ID(ct)===Ee.type)){var ot=p(Ee,ue.props);return ot.ref=Hg(le,Ee,ue),ot.return=le,ot._debugSource=ue._source,ot._debugOwner=ue._owner,ot}var Ft=NR(ue,le.mode,He);return Ft.ref=Hg(le,Ee,ue),Ft.return=le,Ft}function F(le,Ee,ue,He){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ue.containerInfo||Ee.stateNode.implementation!==ue.implementation){var ct=AR(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue.children||[]);return ot.return=le,ot}}function H(le,Ee,ue,He,ct){if(Ee===null||Ee.tag!==A){var ot=gf(ue,le.mode,He,ct);return ot.return=le,ot}else{var Ft=p(Ee,ue);return Ft.return=le,Ft}}function ee(le,Ee,ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var He=RR(""+Ee,le.mode,ue);return He.return=le,He}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ka:{var ct=NR(Ee,le.mode,ue);return ct.ref=Hg(le,null,Ee),ct.return=le,ct}case q:{var ot=AR(Ee,le.mode,ue);return ot.return=le,ot}case an:{var Ft=Ee._payload,Qt=Ee._init;return ee(le,Qt(Ft),ue)}}if(Dt(Ee)||Pi(Ee)){var nr=gf(Ee,le.mode,ue,null);return nr.return=le,nr}QS(le,Ee)}return typeof Ee=="function"&&JS(le),null}function J(le,Ee,ue,He){var ct=Ee!==null?Ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ct!==null?null:T(le,Ee,""+ue,He);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return ue.key===ct?O(le,Ee,ue,He):null;case q:return ue.key===ct?F(le,Ee,ue,He):null;case an:{var ot=ue._payload,Ft=ue._init;return J(le,Ee,Ft(ot),He)}}if(Dt(ue)||Pi(ue))return ct!==null?null:H(le,Ee,ue,He,null);QS(le,ue)}return typeof ue=="function"&&JS(le),null}function he(le,Ee,ue,He,ct){if(typeof He=="string"&&He!==""||typeof He=="number"){var ot=le.get(ue)||null;return T(Ee,ot,""+He,ct)}if(typeof He=="object"&&He!==null){switch(He.$$typeof){case ka:{var Ft=le.get(He.key===null?ue:He.key)||null;return O(Ee,Ft,He,ct)}case q:{var Qt=le.get(He.key===null?ue:He.key)||null;return F(Ee,Qt,He,ct)}case an:var nr=He._payload,jn=He._init;return he(le,Ee,ue,jn(nr),ct)}if(Dt(He)||Pi(He)){var Kr=le.get(ue)||null;return H(Ee,Kr,He,ct,null)}QS(Ee,He)}return typeof He=="function"&&JS(Ee),null}function me(le,Ee,ue){{if(typeof le!="object"||le===null)return Ee;switch(le.$$typeof){case ka:case q:MD(le,ue);var He=le.key;if(typeof He!="string")break;if(Ee===null){Ee=new Set,Ee.add(He);break}if(!Ee.has(He)){Ee.add(He);break}u("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.",He);break;case an:var ct=le._payload,ot=le._init;me(ot(ct),Ee,ue);break}}return Ee}function _e(le,Ee,ue,He){for(var ct=null,ot=0;ot<ue.length;ot++){var Ft=ue[ot];ct=me(Ft,ct,le)}for(var Qt=null,nr=null,jn=Ee,Kr=0,$n=0,Ur=null;jn!==null&&$n<ue.length;$n++){jn.index>$n?(Ur=jn,jn=null):Ur=jn.sibling;var Ti=J(le,jn,ue[$n],He);if(Ti===null){jn===null&&(jn=Ur);break}n&&jn&&Ti.alternate===null&&a(le,jn),Kr=y(Ti,Kr,$n),nr===null?Qt=Ti:nr.sibling=Ti,nr=Ti,jn=Ur}if($n===ue.length){if(o(le,jn),Xa()){var ri=$n;np(le,ri)}return Qt}if(jn===null){for(;$n<ue.length;$n++){var jo=ee(le,ue[$n],He);jo!==null&&(Kr=y(jo,Kr,$n),nr===null?Qt=jo:nr.sibling=jo,nr=jo)}if(Xa()){var Wi=$n;np(le,Wi)}return Qt}for(var Gi=f(le,jn);$n<ue.length;$n++){var Ni=he(Gi,le,$n,ue[$n],He);Ni!==null&&(n&&Ni.alternate!==null&&Gi.delete(Ni.key===null?$n:Ni.key),Kr=y(Ni,Kr,$n),nr===null?Qt=Ni:nr.sibling=Ni,nr=Ni)}if(n&&Gi.forEach(function(bm){return a(le,bm)}),Xa()){var tc=$n;np(le,tc)}return Qt}function ut(le,Ee,ue,He){var ct=Pi(ue);if(typeof ct!="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"&&ue[Symbol.toStringTag]==="Generator"&&(QT||u("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."),QT=!0),ue.entries===ct&&(ZT||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZT=!0);var ot=ct.call(ue);if(ot)for(var Ft=null,Qt=ot.next();!Qt.done;Qt=ot.next()){var nr=Qt.value;Ft=me(nr,Ft,le)}}var jn=ct.call(ue);if(jn==null)throw new Error("An iterable object provided no iterator.");for(var Kr=null,$n=null,Ur=Ee,Ti=0,ri=0,jo=null,Wi=jn.next();Ur!==null&&!Wi.done;ri++,Wi=jn.next()){Ur.index>ri?(jo=Ur,Ur=null):jo=Ur.sibling;var Gi=J(le,Ur,Wi.value,He);if(Gi===null){Ur===null&&(Ur=jo);break}n&&Ur&&Gi.alternate===null&&a(le,Ur),Ti=y(Gi,Ti,ri),$n===null?Kr=Gi:$n.sibling=Gi,$n=Gi,Ur=jo}if(Wi.done){if(o(le,Ur),Xa()){var Ni=ri;np(le,Ni)}return Kr}if(Ur===null){for(;!Wi.done;ri++,Wi=jn.next()){var tc=ee(le,Wi.value,He);tc!==null&&(Ti=y(tc,Ti,ri),$n===null?Kr=tc:$n.sibling=tc,$n=tc)}if(Xa()){var bm=ri;np(le,bm)}return Kr}for(var Sy=f(le,Ur);!Wi.done;ri++,Wi=jn.next()){var Xl=he(Sy,le,ri,Wi.value,He);Xl!==null&&(n&&Xl.alternate!==null&&Sy.delete(Xl.key===null?ri:Xl.key),Ti=y(Xl,Ti,ri),$n===null?Kr=Xl:$n.sibling=Xl,$n=Xl)}if(n&&Sy.forEach(function(HV){return a(le,HV)}),Xa()){var VV=ri;np(le,VV)}return Kr}function Ct(le,Ee,ue,He){if(Ee!==null&&Ee.tag===N){o(le,Ee.sibling);var ct=p(Ee,ue);return ct.return=le,ct}o(le,Ee);var ot=RR(ue,le.mode,He);return ot.return=le,ot}function yt(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct){var Ft=ue.type;if(Ft===Be){if(ot.tag===A){o(le,ot.sibling);var Qt=p(ot,ue.props.children);return Qt.return=le,Qt._debugSource=ue._source,Qt._debugOwner=ue._owner,Qt}}else if(ot.elementType===Ft||TM(ot,ue)||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===an&&ID(Ft)===ot.type){o(le,ot.sibling);var nr=p(ot,ue.props);return nr.ref=Hg(le,ot,ue),nr.return=le,nr._debugSource=ue._source,nr._debugOwner=ue._owner,nr}o(le,ot);break}else a(le,ot);ot=ot.sibling}if(ue.type===Be){var jn=gf(ue.props.children,le.mode,He,ue.key);return jn.return=le,jn}else{var Kr=NR(ue,le.mode,He);return Kr.ref=Hg(le,Ee,ue),Kr.return=le,Kr}}function An(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct)if(ot.tag===C&&ot.stateNode.containerInfo===ue.containerInfo&&ot.stateNode.implementation===ue.implementation){o(le,ot.sibling);var Ft=p(ot,ue.children||[]);return Ft.return=le,Ft}else{o(le,ot);break}else a(le,ot);ot=ot.sibling}var Qt=AR(ue,le.mode,He);return Qt.return=le,Qt}function Sn(le,Ee,ue,He){var ct=typeof ue=="object"&&ue!==null&&ue.type===Be&&ue.key===null;if(ct&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return w(yt(le,Ee,ue,He));case q:return w(An(le,Ee,ue,He));case an:var ot=ue._payload,Ft=ue._init;return Sn(le,Ee,Ft(ot),He)}if(Dt(ue))return _e(le,Ee,ue,He);if(Pi(ue))return ut(le,Ee,ue,He);QS(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?w(Ct(le,Ee,""+ue,He)):(typeof ue=="function"&&JS(le),o(le,Ee))}return Sn}var rm=LD(!0),FD=LD(!1);function kj(n,a){if(n!==null&&a.child!==n.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var o=a.child,f=mp(o,o.pendingProps);for(a.child=f,f.return=a;o.sibling!==null;)o=o.sibling,f=f.sibling=mp(o,o.pendingProps),f.return=a;f.sibling=null}}function Dj(n,a){for(var o=n.child;o!==null;)sV(o,a),o=o.sibling}var Wg={},lf=Ba(Wg),Gg=Ba(Wg),e1=Ba(Wg);function t1(n){if(n===Wg)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function zD(){var n=t1(e1.current);return n}function nN(n,a){_i(e1,a,n),_i(Gg,n,n),_i(lf,Wg,n);var o=_E(a);ba(lf,n),_i(lf,o,n)}function am(n){ba(lf,n),ba(Gg,n),ba(e1,n)}function rN(){var n=t1(lf.current);return n}function BD(n){t1(e1.current);var a=t1(lf.current),o=EE(a,n.type);a!==o&&(_i(Gg,n,n),_i(lf,o,n))}function aN(n){Gg.current===n&&(ba(lf,n),ba(Gg,n))}var Pj=0,UD=1,jD=1,Yg=2,ll=Ba(Pj);function iN(n,a){return(n&a)!==0}function im(n){return n&UD}function oN(n,a){return n&UD|a}function Mj(n,a){return n|a}function uf(n,a){_i(ll,a,n)}function om(n){ba(ll,n)}function Ij(n,a){var o=n.memoizedState;return o!==null?o.dehydrated!==null:(n.memoizedProps,!0)}function n1(n){for(var a=n;a!==null;){if(a.tag===V){var o=a.memoizedState;if(o!==null){var f=o.dehydrated;if(f===null||OS(f)||Ig(f))return a}}else if(a.tag===be&&a.memoizedProps.revealOrder!==void 0){var p=(a.flags&Ln)!==kt;if(p)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)return null;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var so=0,Sa=1,Vl=2,xa=4,Za=8,sN=[];function lN(){for(var n=0;n<sN.length;n++){var a=sN[n];a._workInProgressVersionPrimary=null}sN.length=0}function Lj(n,a){var o=a._getVersion,f=o(a._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,f]:n.mutableSourceEagerHydrationData.push(a,f)}var lt=r.ReactCurrentDispatcher,qg=r.ReactCurrentBatchConfig,uN,sm;uN=new Set;var lp=Me,tr=null,wa=null,Ca=null,r1=!1,Kg=!1,Xg=0,Fj=0,zj=25,Oe=null,Es=null,cf=-1,cN=!1;function Yn(){{var n=Oe;Es===null?Es=[n]:Es.push(n)}}function Je(){{var n=Oe;Es!==null&&(cf++,Es[cf]!==n&&Bj(n))}}function lm(n){n!=null&&!Dt(n)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Oe,typeof n)}function Bj(n){{var a=It(tr);if(!uN.has(a)&&(uN.add(a),Es!==null)){for(var o="",f=30,p=0;p<=cf;p++){for(var y=Es[p],w=p===cf?n:y,T=p+1+". "+y;T.length<f;)T+=" ";T+=w+`
`,o+=T}u(`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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,a,o)}}}function Ei(){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 fN(n,a){if(cN)return!1;if(a===null)return u("%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.",Oe),!1;n.length!==a.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,Oe,"["+a.join(", ")+"]","["+n.join(", ")+"]");for(var o=0;o<a.length&&o<n.length;o++)if(!Ya(n[o],a[o]))return!1;return!0}function um(n,a,o,f,p,y){lp=y,tr=a,Es=n!==null?n._debugHookTypes:null,cf=-1,cN=n!==null&&n.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Me,n!==null&&n.memoizedState!==null?lt.current=uP:Es!==null?lt.current=lP:lt.current=sP;var w=o(f,p);if(Kg){var T=0;do{if(Kg=!1,Xg=0,T>=zj)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");T+=1,cN=!1,wa=null,Ca=null,a.updateQueue=null,cf=-1,lt.current=cP,w=o(f,p)}while(Kg)}lt.current=v1,a._debugHookTypes=Es;var O=wa!==null&&wa.next!==null;if(lp=Me,tr=null,wa=null,Ca=null,Oe=null,Es=null,cf=-1,n!==null&&(n.flags&cs)!==(a.flags&cs)&&(n.mode&yn)!==Rt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),r1=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function cm(){var n=Xg!==0;return Xg=0,n}function $D(n,a,o){a.updateQueue=n.updateQueue,(a.mode&no)!==Rt?a.flags&=~(uh|Wr|Lo|ln):a.flags&=~(Lo|ln),n.lanes=Td(n.lanes,o)}function VD(){if(lt.current=v1,r1){for(var n=tr.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}r1=!1}lp=Me,tr=null,wa=null,Ca=null,Es=null,cf=-1,Oe=null,nP=!1,Kg=!1,Xg=0}function Hl(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ca===null?tr.memoizedState=Ca=n:Ca=Ca.next=n,Ca}function Ts(){var n;if(wa===null){var a=tr.alternate;a!==null?n=a.memoizedState:n=null}else n=wa.next;var o;if(Ca===null?o=tr.memoizedState:o=Ca.next,o!==null)Ca=o,o=Ca.next,wa=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");wa=n;var f={memoizedState:wa.memoizedState,baseState:wa.baseState,baseQueue:wa.baseQueue,queue:wa.queue,next:null};Ca===null?tr.memoizedState=Ca=f:Ca=Ca.next=f}return Ca}function HD(){return{lastEffect:null,stores:null}}function dN(n,a){return typeof a=="function"?a(n):a}function pN(n,a,o){var f=Hl(),p;o!==void 0?p=o(a):p=a,f.memoizedState=f.baseState=p;var y={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:n,lastRenderedState:p};f.queue=y;var w=y.dispatch=Vj.bind(null,tr,y);return[f.memoizedState,w]}function hN(n,a,o){var f=Ts(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=wa,w=y.baseQueue,T=p.pending;if(T!==null){if(w!==null){var O=w.next,F=T.next;w.next=F,T.next=O}y.baseQueue!==w&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=T,p.pending=null}if(w!==null){var H=w.next,ee=y.baseState,J=null,he=null,me=null,_e=H;do{var ut=_e.lane;if(Iu(lp,ut)){if(me!==null){var yt={lane:Gr,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};me=me.next=yt}if(_e.hasEagerState)ee=_e.eagerState;else{var An=_e.action;ee=n(ee,An)}}else{var Ct={lane:ut,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};me===null?(he=me=Ct,J=ee):me=me.next=Ct,tr.lanes=un(tr.lanes,ut),my(ut)}_e=_e.next}while(_e!==null&&_e!==H);me===null?J=ee:me.next=he,Ya(ee,f.memoizedState)||ry(),f.memoizedState=ee,f.baseState=J,f.baseQueue=me,p.lastRenderedState=ee}var Sn=p.interleaved;if(Sn!==null){var le=Sn;do{var Ee=le.lane;tr.lanes=un(tr.lanes,Ee),my(Ee),le=le.next}while(le!==Sn)}else w===null&&(p.lanes=Me);var ue=p.dispatch;return[f.memoizedState,ue]}function mN(n,a,o){var f=Ts(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=p.dispatch,w=p.pending,T=f.memoizedState;if(w!==null){p.pending=null;var O=w.next,F=O;do{var H=F.action;T=n(T,H),F=F.next}while(F!==O);Ya(T,f.memoizedState)||ry(),f.memoizedState=T,f.baseQueue===null&&(f.baseState=T),p.lastRenderedState=T}return[T,y]}function gme(n,a,o){}function yme(n,a,o){}function vN(n,a,o){var f=tr,p=Hl(),y,w=Xa();if(w){if(o===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=o(),sm||y!==o()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),sm=!0)}else{if(y=a(),!sm){var T=a();Ya(y,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),sm=!0)}var O=M1();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Mu(O,lp)||WD(f,a,y)}p.memoizedState=y;var F={value:y,getSnapshot:a};return p.queue=F,l1(YD.bind(null,f,F,n),[n]),f.flags|=Lo,Zg(Sa|Za,GD.bind(null,f,F,y,a),void 0,null),y}function a1(n,a,o){var f=tr,p=Ts(),y=a();if(!sm){var w=a();Ya(y,w)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),sm=!0)}var T=p.memoizedState,O=!Ya(T,y);O&&(p.memoizedState=y,ry());var F=p.queue;if(Jg(YD.bind(null,f,F,n),[n]),F.getSnapshot!==a||O||Ca!==null&&Ca.memoizedState.tag&Sa){f.flags|=Lo,Zg(Sa|Za,GD.bind(null,f,F,y,a),void 0,null);var H=M1();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Mu(H,lp)||WD(f,a,y)}return y}function WD(n,a,o){n.flags|=lh;var f={getSnapshot:a,value:o},p=tr.updateQueue;if(p===null)p=HD(),tr.updateQueue=p,p.stores=[f];else{var y=p.stores;y===null?p.stores=[f]:y.push(f)}}function GD(n,a,o,f){a.value=o,a.getSnapshot=f,qD(a)&&KD(n)}function YD(n,a,o){var f=function(){qD(a)&&KD(n)};return o(f)}function qD(n){var a=n.getSnapshot,o=n.value;try{var f=a();return!Ya(o,f)}catch{return!0}}function KD(n){var a=oo(n,Ut);a!==null&&Na(a,n,Ut,Xn)}function i1(n){var a=Hl();typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n;var o={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:dN,lastRenderedState:n};a.queue=o;var f=o.dispatch=Hj.bind(null,tr,o);return[a.memoizedState,f]}function gN(n){return hN(dN)}function yN(n){return mN(dN)}function Zg(n,a,o,f){var p={tag:n,create:a,destroy:o,deps:f,next:null},y=tr.updateQueue;if(y===null)y=HD(),tr.updateQueue=y,y.lastEffect=p.next=p;else{var w=y.lastEffect;if(w===null)y.lastEffect=p.next=p;else{var T=w.next;w.next=p,p.next=T,y.lastEffect=p}}return p}function bN(n){var a=Hl();{var o={current:n};return a.memoizedState=o,o}}function o1(n){var a=Ts();return a.memoizedState}function Qg(n,a,o,f){var p=Hl(),y=f===void 0?null:f;tr.flags|=n,p.memoizedState=Zg(Sa|a,o,void 0,y)}function s1(n,a,o,f){var p=Ts(),y=f===void 0?null:f,w=void 0;if(wa!==null){var T=wa.memoizedState;if(w=T.destroy,y!==null){var O=T.deps;if(fN(y,O)){p.memoizedState=Zg(a,o,w,y);return}}}tr.flags|=n,p.memoizedState=Zg(Sa|a,o,w,y)}function l1(n,a){return(tr.mode&no)!==Rt?Qg(uh|Lo|wv,Za,n,a):Qg(Lo|wv,Za,n,a)}function Jg(n,a){return s1(Lo,Za,n,a)}function SN(n,a){return Qg(ln,Vl,n,a)}function u1(n,a){return s1(ln,Vl,n,a)}function xN(n,a){var o=ln;return o|=Ru,(tr.mode&no)!==Rt&&(o|=Wr),Qg(o,xa,n,a)}function c1(n,a){return s1(ln,xa,n,a)}function XD(n,a){if(typeof a=="function"){var o=a,f=n();return o(f),function(){o(null)}}else if(a!=null){var p=a;p.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var y=n();return p.current=y,function(){p.current=null}}}function wN(n,a,o){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=o!=null?o.concat([n]):null,p=ln;return p|=Ru,(tr.mode&no)!==Rt&&(p|=Wr),Qg(p,xa,XD.bind(null,a,n),f)}function f1(n,a,o){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=o!=null?o.concat([n]):null;return s1(ln,xa,XD.bind(null,a,n),f)}function Uj(n,a){}var d1=Uj;function CN(n,a){var o=Hl(),f=a===void 0?null:a;return o.memoizedState=[n,f],n}function p1(n,a){var o=Ts(),f=a===void 0?null:a,p=o.memoizedState;if(p!==null&&f!==null){var y=p[1];if(fN(f,y))return p[0]}return o.memoizedState=[n,f],n}function _N(n,a){var o=Hl(),f=a===void 0?null:a,p=n();return o.memoizedState=[p,f],p}function h1(n,a){var o=Ts(),f=a===void 0?null:a,p=o.memoizedState;if(p!==null&&f!==null){var y=p[1];if(fN(f,y))return p[0]}var w=n();return o.memoizedState=[w,f],w}function EN(n){var a=Hl();return a.memoizedState=n,n}function ZD(n){var a=Ts(),o=wa,f=o.memoizedState;return JD(a,f,n)}function QD(n){var a=Ts();if(wa===null)return a.memoizedState=n,n;var o=wa.memoizedState;return JD(a,o,n)}function JD(n,a,o){var f=!Ch(lp);if(f){if(!Ya(o,a)){var p=_d();tr.lanes=un(tr.lanes,p),my(p),n.baseState=!0}return a}else return n.baseState&&(n.baseState=!1,ry()),n.memoizedState=o,o}function jj(n,a,o){var f=ro();aa(WC(f,vs)),n(!0);var p=qg.transition;qg.transition={};var y=qg.transition;qg.transition._updatedFibers=new Set;try{n(!1),a()}finally{if(aa(f),qg.transition=p,p===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&c("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."),y._updatedFibers.clear()}}}function TN(){var n=i1(!1),a=n[0],o=n[1],f=jj.bind(null,o),p=Hl();return p.memoizedState=f,[a,f]}function eP(){var n=gN(),a=n[0],o=Ts(),f=o.memoizedState;return[a,f]}function tP(){var n=yN(),a=n[0],o=Ts(),f=o.memoizedState;return[a,f]}var nP=!1;function $j(){return nP}function NN(){var n=Hl(),a=M1(),o=a.identifierPrefix,f;if(Xa()){var p=nj();f=":"+o+"R"+p;var y=Xg++;y>0&&(f+="H"+y.toString(32)),f+=":"}else{var w=Fj++;f=":"+o+"r"+w.toString(32)+":"}return n.memoizedState=f,f}function m1(){var n=Ts(),a=n.memoizedState;return a}function Vj(n,a,o){typeof arguments[3]=="function"&&u("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 f=mf(n),p={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null};if(rP(n))aP(a,p);else{var y=xD(n,a,p,f);if(y!==null){var w=Hi();Na(y,n,f,w),iP(y,a,f)}}oP(n,f)}function Hj(n,a,o){typeof arguments[3]=="function"&&u("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 f=mf(n),p={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null};if(rP(n))aP(a,p);else{var y=n.alternate;if(n.lanes===Me&&(y===null||y.lanes===Me)){var w=a.lastRenderedReducer;if(w!==null){var T;T=lt.current,lt.current=ul;try{var O=a.lastRenderedState,F=w(O,o);if(p.hasEagerState=!0,p.eagerState=F,Ya(F,O)){wj(n,a,p,f);return}}catch{}finally{lt.current=T}}}var H=xD(n,a,p,f);if(H!==null){var ee=Hi();Na(H,n,f,ee),iP(H,a,f)}}oP(n,f)}function rP(n){var a=n.alternate;return n===tr||a!==null&&a===tr}function aP(n,a){Kg=r1=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function iP(n,a,o){if(Wv(o)){var f=a.lanes;f=T0(f,n.pendingLanes);var p=un(f,o);a.lanes=p,At(n,p)}}function oP(n,a,o){Lv(n,a)}var v1={readContext:sa,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useInsertionEffect:Ei,useLayoutEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useMutableSource:Ei,useSyncExternalStore:Ei,useId:Ei,unstable_isNewReconciler:Se},sP=null,lP=null,uP=null,cP=null,Wl=null,ul=null,g1=null;{var RN=function(){u("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().")},qt=function(){u("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")};sP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Yn(),lm(a),CN(n,a)},useContext:function(n){return Oe="useContext",Yn(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Yn(),lm(a),l1(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",Yn(),lm(o),wN(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Yn(),lm(a),SN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Yn(),lm(a),xN(n,a)},useMemo:function(n,a){Oe="useMemo",Yn(),lm(a);var o=lt.current;lt.current=Wl;try{return _N(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",Yn();var f=lt.current;lt.current=Wl;try{return pN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Yn(),bN(n)},useState:function(n){Oe="useState",Yn();var a=lt.current;lt.current=Wl;try{return i1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Yn(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",Yn(),EN(n)},useTransition:function(){return Oe="useTransition",Yn(),TN()},useMutableSource:function(n,a,o){return Oe="useMutableSource",Yn(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",Yn(),vN(n,a,o)},useId:function(){return Oe="useId",Yn(),NN()},unstable_isNewReconciler:Se},lP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),CN(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),l1(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",Je(),wN(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),SN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),xN(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var o=lt.current;lt.current=Wl;try{return _N(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",Je();var f=lt.current;lt.current=Wl;try{return pN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),bN(n)},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=Wl;try{return i1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),EN(n)},useTransition:function(){return Oe="useTransition",Je(),TN()},useMutableSource:function(n,a,o){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",Je(),vN(n,a,o)},useId:function(){return Oe="useId",Je(),NN()},unstable_isNewReconciler:Se},uP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),p1(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),Jg(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",Je(),f1(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),u1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),c1(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var o=lt.current;lt.current=ul;try{return h1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",Je();var f=lt.current;lt.current=ul;try{return hN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),o1()},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=ul;try{return gN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),d1()},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),ZD(n)},useTransition:function(){return Oe="useTransition",Je(),eP()},useMutableSource:function(n,a,o){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",Je(),a1(n,a)},useId:function(){return Oe="useId",Je(),m1()},unstable_isNewReconciler:Se},cP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),p1(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),Jg(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",Je(),f1(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),u1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),c1(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var o=lt.current;lt.current=g1;try{return h1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",Je();var f=lt.current;lt.current=g1;try{return mN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),o1()},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=g1;try{return yN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),d1()},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),QD(n)},useTransition:function(){return Oe="useTransition",Je(),tP()},useMutableSource:function(n,a,o){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",Je(),a1(n,a)},useId:function(){return Oe="useId",Je(),m1()},unstable_isNewReconciler:Se},Wl={readContext:function(n){return RN(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Yn(),CN(n,a)},useContext:function(n){return Oe="useContext",qt(),Yn(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Yn(),l1(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",qt(),Yn(),wN(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Yn(),SN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Yn(),xN(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Yn();var o=lt.current;lt.current=Wl;try{return _N(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",qt(),Yn();var f=lt.current;lt.current=Wl;try{return pN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Yn(),bN(n)},useState:function(n){Oe="useState",qt(),Yn();var a=lt.current;lt.current=Wl;try{return i1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Yn(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Yn(),EN(n)},useTransition:function(){return Oe="useTransition",qt(),Yn(),TN()},useMutableSource:function(n,a,o){return Oe="useMutableSource",qt(),Yn(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",qt(),Yn(),vN(n,a,o)},useId:function(){return Oe="useId",qt(),Yn(),NN()},unstable_isNewReconciler:Se},ul={readContext:function(n){return RN(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Je(),p1(n,a)},useContext:function(n){return Oe="useContext",qt(),Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Je(),Jg(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",qt(),Je(),f1(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Je(),u1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Je(),c1(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Je();var o=lt.current;lt.current=ul;try{return h1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",qt(),Je();var f=lt.current;lt.current=ul;try{return hN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Je(),o1()},useState:function(n){Oe="useState",qt(),Je();var a=lt.current;lt.current=ul;try{return gN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Je(),d1()},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Je(),ZD(n)},useTransition:function(){return Oe="useTransition",qt(),Je(),eP()},useMutableSource:function(n,a,o){return Oe="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",qt(),Je(),a1(n,a)},useId:function(){return Oe="useId",qt(),Je(),m1()},unstable_isNewReconciler:Se},g1={readContext:function(n){return RN(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Je(),p1(n,a)},useContext:function(n){return Oe="useContext",qt(),Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Je(),Jg(n,a)},useImperativeHandle:function(n,a,o){return Oe="useImperativeHandle",qt(),Je(),f1(n,a,o)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Je(),u1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Je(),c1(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Je();var o=lt.current;lt.current=ul;try{return h1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Oe="useReducer",qt(),Je();var f=lt.current;lt.current=ul;try{return mN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Je(),o1()},useState:function(n){Oe="useState",qt(),Je();var a=lt.current;lt.current=ul;try{return yN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Je(),d1()},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Je(),QD(n)},useTransition:function(){return Oe="useTransition",qt(),Je(),tP()},useMutableSource:function(n,a,o){return Oe="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,o){return Oe="useSyncExternalStore",qt(),Je(),a1(n,a)},useId:function(){return Oe="useId",qt(),Je(),m1()},unstable_isNewReconciler:Se}}var ff=t.unstable_now,fP=0,y1=-1,ey=-1,b1=-1,AN=!1,S1=!1;function dP(){return AN}function Wj(){S1=!0}function Gj(){AN=!1,S1=!1}function Yj(){AN=S1,S1=!1}function pP(){return fP}function hP(){fP=ff()}function ON(n){ey=ff(),n.actualStartTime<0&&(n.actualStartTime=ff())}function mP(n){ey=-1}function x1(n,a){if(ey>=0){var o=ff()-ey;n.actualDuration+=o,a&&(n.selfBaseDuration=o),ey=-1}}function Gl(n){if(y1>=0){var a=ff()-y1;y1=-1;for(var o=n.return;o!==null;){switch(o.tag){case x:var f=o.stateNode;f.effectDuration+=a;return;case U:var p=o.stateNode;p.effectDuration+=a;return}o=o.return}}}function kN(n){if(b1>=0){var a=ff()-b1;b1=-1;for(var o=n.return;o!==null;){switch(o.tag){case x:var f=o.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case U:var p=o.stateNode;p!==null&&(p.passiveEffectDuration+=a);return}o=o.return}}}function Yl(){y1=ff()}function DN(){b1=ff()}function PN(n){for(var a=n.child;a;)n.actualDuration+=a.actualDuration,a=a.sibling}function up(n,a){return{value:n,source:a,stack:Ma(a),digest:null}}function MN(n,a,o){return{value:n,source:null,stack:o??null,digest:a??null}}function qj(n,a){return!0}function IN(n,a){try{var o=qj(n,a);if(o===!1)return;var f=a.value,p=a.source,y=a.stack,w=y!==null?y:"";if(f!=null&&f._suppressLogging){if(n.tag===v)return;console.error(f)}var T=p?It(p):null,O=T?"The above error occurred in the <"+T+"> component:":"The above error occurred in one of your React components:",F;if(n.tag===x)F=`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 H=It(n)||"Anonymous";F="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var ee=O+`
`+w+`
`+(""+F);console.error(ee)}catch(J){setTimeout(function(){throw J})}}var Kj=typeof WeakMap=="function"?WeakMap:Map;function vP(n,a,o){var f=Ku(Xn,o);f.tag=IT,f.payload={element:null};var p=a.value;return f.callback=function(){j9(p),IN(n,a)},f}function LN(n,a,o){var f=Ku(Xn,o);f.tag=IT;var p=n.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;f.payload=function(){return p(y)},f.callback=function(){NM(n),IN(n,a)}}var w=n.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){NM(n),IN(n,a),typeof p!="function"&&B9(this);var O=a.value,F=a.stack;this.componentDidCatch(O,{componentStack:F!==null?F:""}),typeof p!="function"&&(bi(n.lanes,Ut)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(n)||"Unknown"))}),f}function gP(n,a,o){var f=n.pingCache,p;if(f===null?(f=n.pingCache=new Kj,p=new Set,f.set(a,p)):(p=f.get(a),p===void 0&&(p=new Set,f.set(a,p))),!p.has(o)){p.add(o);var y=$9.bind(null,n,a,o);ya&&vy(n,o),a.then(y,y)}}function Xj(n,a,o,f){var p=n.updateQueue;if(p===null){var y=new Set;y.add(o),n.updateQueue=y}else p.add(o)}function Zj(n,a){var o=n.tag;if((n.mode&yn)===Rt&&(o===m||o===z||o===X)){var f=n.alternate;f?(n.updateQueue=f.updateQueue,n.memoizedState=f.memoizedState,n.lanes=f.lanes):(n.updateQueue=null,n.memoizedState=null)}}function yP(n){var a=n;do{if(a.tag===V&&Ij(a))return a;a=a.return}while(a!==null);return null}function bP(n,a,o,f,p){if((n.mode&yn)===Rt){if(n===a)n.flags|=Va;else{if(n.flags|=Ln,o.flags|=xv,o.flags&=~(Zs|fd),o.tag===v){var y=o.alternate;if(y===null)o.tag=ve;else{var w=Ku(Xn,Ut);w.tag=WS,sf(o,w,Ut)}}o.lanes=un(o.lanes,Ut)}return n}return n.flags|=Va,n.lanes=p,n}function Qj(n,a,o,f,p){if(o.flags|=fd,ya&&vy(n,p),f!==null&&typeof f=="object"&&typeof f.then=="function"){var y=f;Zj(o),Xa()&&o.mode&yn&&uD();var w=yP(a);if(w!==null){w.flags&=~Ks,bP(w,a,o,n,p),w.mode&yn&&gP(n,y,p),Xj(w,n,y);return}else{if(!_0(p)){gP(n,y,p),mR();return}var T=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.");f=T}}else if(Xa()&&o.mode&yn){uD();var O=yP(a);if(O!==null){(O.flags&Va)===kt&&(O.flags|=Ks),bP(O,a,o,n,p),RT(up(f,o));return}}f=up(f,o),k9(f);var F=a;do{switch(F.tag){case x:{var H=f;F.flags|=Va;var ee=Ed(p);F.lanes=un(F.lanes,ee);var J=vP(F,H,ee);zT(F,J);return}case v:var he=f,me=F.type,_e=F.stateNode;if((F.flags&Ln)===kt&&(typeof me.getDerivedStateFromError=="function"||_e!==null&&typeof _e.componentDidCatch=="function"&&!yM(_e))){F.flags|=Va;var ut=Ed(p);F.lanes=un(F.lanes,ut);var Ct=LN(F,he,ut);zT(F,Ct);return}break}F=F.return}while(F!==null)}function Jj(){return null}var ty=r.ReactCurrentOwner,cl=!1,FN,ny,zN,BN,UN,cp,jN,w1;FN={},ny={},zN={},BN={},UN={},cp=!1,jN={},w1={};function $i(n,a,o,f){n===null?a.child=FD(a,null,o,f):a.child=rm(a,n.child,o,f)}function e$(n,a,o,f){a.child=rm(a,n.child,null,f),a.child=rm(a,null,o,f)}function SP(n,a,o,f,p){if(a.type!==a.elementType){var y=o.propTypes;y&&dr(y,f,"prop",on(o))}var w=o.render,T=a.ref,O,F;nm(a,p),vd(a);{if(ty.current=a,Vr(!0),O=um(n,a,w,f,T,p),F=cm(),a.mode&Pr){na(!0);try{O=um(n,a,w,f,T,p),F=cm()}finally{na(!1)}}Vr(!1)}return Mc(),n!==null&&!cl?($D(n,a,p),Xu(n,a,p)):(Xa()&&F&&wT(a),a.flags|=Dc,$i(n,a,O,p),a.child)}function xP(n,a,o,f,p){if(n===null){var y=o.type;if(iV(y)&&o.compare===null&&o.defaultProps===void 0){var w=y;return w=ym(y),a.tag=X,a.type=w,HN(a,y),wP(n,a,w,f,p)}{var T=y.propTypes;T&&dr(T,f,"prop",on(y))}var O=TR(o.type,null,f,a,a.mode,p);return O.ref=a.ref,O.return=a,a.child=O,O}{var F=o.type,H=F.propTypes;H&&dr(H,f,"prop",on(F))}var ee=n.child,J=XN(n,p);if(!J){var he=ee.memoizedProps,me=o.compare;if(me=me!==null?me:Xc,me(he,f)&&n.ref===a.ref)return Xu(n,a,p)}a.flags|=Dc;var _e=mp(ee,f);return _e.ref=a.ref,_e.return=a,a.child=_e,_e}function wP(n,a,o,f,p){if(a.type!==a.elementType){var y=a.elementType;if(y.$$typeof===an){var w=y,T=w._payload,O=w._init;try{y=O(T)}catch{y=null}var F=y&&y.propTypes;F&&dr(F,f,"prop",on(y))}}if(n!==null){var H=n.memoizedProps;if(Xc(H,f)&&n.ref===a.ref&&a.type===n.type)if(cl=!1,a.pendingProps=f=H,XN(n,p))(n.flags&xv)!==kt&&(cl=!0);else return a.lanes=n.lanes,Xu(n,a,p)}return $N(n,a,o,f,p)}function CP(n,a,o){var f=a.pendingProps,p=f.children,y=n!==null?n.memoizedState:null;if(f.mode==="hidden"||pe)if((a.mode&yn)===Rt){var w={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=w,I1(a,o)}else if(bi(o,Ui)){var ee={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=ee;var J=y!==null?y.baseLanes:o;I1(a,J)}else{var T=null,O;if(y!==null){var F=y.baseLanes;O=un(F,o)}else O=o;a.lanes=a.childLanes=Ui;var H={baseLanes:O,cachePool:T,transitions:null};return a.memoizedState=H,a.updateQueue=null,I1(a,O),null}else{var he;y!==null?(he=un(y.baseLanes,o),a.memoizedState=null):he=o,I1(a,he)}return $i(n,a,p,o),a.child}function t$(n,a,o){var f=a.pendingProps;return $i(n,a,f,o),a.child}function n$(n,a,o){var f=a.pendingProps.children;return $i(n,a,f,o),a.child}function r$(n,a,o){{a.flags|=ln;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var p=a.pendingProps,y=p.children;return $i(n,a,y,o),a.child}function _P(n,a){var o=a.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(a.flags|=La,a.flags|=Qs)}function $N(n,a,o,f,p){if(a.type!==a.elementType){var y=o.propTypes;y&&dr(y,f,"prop",on(o))}var w;{var T=Xh(a,o,!0);w=Zh(a,T)}var O,F;nm(a,p),vd(a);{if(ty.current=a,Vr(!0),O=um(n,a,o,f,w,p),F=cm(),a.mode&Pr){na(!0);try{O=um(n,a,o,f,w,p),F=cm()}finally{na(!1)}}Vr(!1)}return Mc(),n!==null&&!cl?($D(n,a,p),Xu(n,a,p)):(Xa()&&F&&wT(a),a.flags|=Dc,$i(n,a,O,p),a.child)}function EP(n,a,o,f,p){{switch(SV(a)){case!1:{var y=a.stateNode,w=a.type,T=new w(a.memoizedProps,y.context),O=T.state;y.updater.enqueueSetState(y,O,null);break}case!0:{a.flags|=Ln,a.flags|=Va;var F=new Error("Simulated error coming from DevTools"),H=Ed(p);a.lanes=un(a.lanes,H);var ee=LN(a,up(F,a),H);zT(a,ee);break}}if(a.type!==a.elementType){var J=o.propTypes;J&&dr(J,f,"prop",on(o))}}var he;$l(o)?(he=!0,MS(a)):he=!1,nm(a,p);var me=a.stateNode,_e;me===null?(_1(n,a),DD(a,o,f),XT(a,o,f,p),_e=!0):n===null?_e=Aj(a,o,f,p):_e=Oj(n,a,o,f,p);var ut=VN(n,a,o,_e,he,p);{var Ct=a.stateNode;_e&&Ct.props!==f&&(cp||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(a)||"a component"),cp=!0)}return ut}function VN(n,a,o,f,p,y){_P(n,a);var w=(a.flags&Ln)!==kt;if(!f&&!w)return p&&iD(a,o,!1),Xu(n,a,y);var T=a.stateNode;ty.current=a;var O;if(w&&typeof o.getDerivedStateFromError!="function")O=null,mP();else{vd(a);{if(Vr(!0),O=T.render(),a.mode&Pr){na(!0);try{T.render()}finally{na(!1)}}Vr(!1)}Mc()}return a.flags|=Dc,n!==null&&w?e$(n,a,O,y):$i(n,a,O,y),a.memoizedState=T.state,p&&iD(a,o,!0),a.child}function TP(n){var a=n.stateNode;a.pendingContext?rD(n,a.pendingContext,a.pendingContext!==a.context):a.context&&rD(n,a.context,!1),nN(n,a.containerInfo)}function a$(n,a,o){if(TP(a),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,p=a.memoizedState,y=p.element;_D(n,a),KS(a,f,null,o);var w=a.memoizedState;a.stateNode;var T=w.element;if(p.isDehydrated){var O={element:T,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},F=a.updateQueue;if(F.baseState=O,a.memoizedState=O,a.flags&Ks){var H=up(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."),a);return NP(n,a,T,o,H)}else if(T!==y){var ee=up(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return NP(n,a,T,o,ee)}else{lj(a);var J=FD(a,null,T,o);a.child=J;for(var he=J;he;)he.flags=he.flags&~zr|Xs,he=he.sibling}}else{if(em(),T===y)return Xu(n,a,o);$i(n,a,T,o)}return a.child}function NP(n,a,o,f,p){return em(),RT(p),a.flags|=Ks,$i(n,a,o,f),a.child}function i$(n,a,o){BD(a),n===null&&NT(a);var f=a.type,p=a.pendingProps,y=n!==null?n.memoizedProps:null,w=p.children,T=Eg(f,p);return T?w=null:y!==null&&Eg(f,y)&&(a.flags|=cd),_P(n,a),$i(n,a,w,o),a.child}function o$(n,a){return n===null&&NT(a),null}function s$(n,a,o,f){_1(n,a);var p=a.pendingProps,y=o,w=y._payload,T=y._init,O=T(w);a.type=O;var F=a.tag=oV(O),H=sl(O,p),ee;switch(F){case m:return HN(a,O),a.type=O=ym(O),ee=$N(null,a,O,H,f),ee;case v:return a.type=O=SR(O),ee=EP(null,a,O,H,f),ee;case z:return a.type=O=xR(O),ee=SP(null,a,O,H,f),ee;case K:{if(a.type!==a.elementType){var J=O.propTypes;J&&dr(J,H,"prop",on(O))}return ee=xP(null,a,O,sl(O.type,H),f),ee}}var he="";throw O!==null&&typeof O=="object"&&O.$$typeof===an&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+he))}function l$(n,a,o,f,p){_1(n,a),a.tag=v;var y;return $l(o)?(y=!0,MS(a)):y=!1,nm(a,p),DD(a,o,f),XT(a,o,f,p),VN(null,a,o,!0,y,p)}function u$(n,a,o,f){_1(n,a);var p=a.pendingProps,y;{var w=Xh(a,o,!1);y=Zh(a,w)}nm(a,f);var T,O;vd(a);{if(o.prototype&&typeof o.prototype.render=="function"){var F=on(o)||"Unknown";FN[F]||(u("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.",F,F),FN[F]=!0)}a.mode&Pr&&ol.recordLegacyContextWarning(a,null),Vr(!0),ty.current=a,T=um(null,a,o,p,y,f),O=cm(),Vr(!1)}if(Mc(),a.flags|=Dc,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){var H=on(o)||"Unknown";ny[H]||(u("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.",H,H,H),ny[H]=!0)}if(typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){{var ee=on(o)||"Unknown";ny[ee]||(u("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.",ee,ee,ee),ny[ee]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var J=!1;return $l(o)?(J=!0,MS(a)):J=!1,a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,FT(a),kD(a,T),XT(a,o,p,f),VN(null,a,o,!0,J,f)}else{if(a.tag=m,a.mode&Pr){na(!0);try{T=um(null,a,o,p,y,f),O=cm()}finally{na(!1)}}return Xa()&&O&&wT(a),$i(null,a,T,f),HN(a,o),a.child}}function HN(n,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var o="",f=ja();f&&(o+=`
Check the render method of \``+f+"`.");var p=f||"",y=n._debugSource;y&&(p=y.fileName+":"+y.lineNumber),UN[p]||(UN[p]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",o))}if(typeof a.getDerivedStateFromProps=="function"){var w=on(a)||"Unknown";BN[w]||(u("%s: Function components do not support getDerivedStateFromProps.",w),BN[w]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var T=on(a)||"Unknown";zN[T]||(u("%s: Function components do not support contextType.",T),zN[T]=!0)}}}var WN={dehydrated:null,treeContext:null,retryLane:Gr};function GN(n){return{baseLanes:n,cachePool:Jj(),transitions:null}}function c$(n,a){var o=null;return{baseLanes:un(n.baseLanes,a),cachePool:o,transitions:n.transitions}}function f$(n,a,o,f){if(a!==null){var p=a.memoizedState;if(p===null)return!1}return iN(n,Yg)}function d$(n,a){return Td(n.childLanes,a)}function RP(n,a,o){var f=a.pendingProps;xV(a)&&(a.flags|=Ln);var p=ll.current,y=!1,w=(a.flags&Ln)!==kt;if(w||f$(p,n)?(y=!0,a.flags&=~Ln):(n===null||n.memoizedState!==null)&&(p=Mj(p,jD)),p=im(p),uf(a,p),n===null){NT(a);var T=a.memoizedState;if(T!==null){var O=T.dehydrated;if(O!==null)return g$(a,O)}var F=f.children,H=f.fallback;if(y){var ee=p$(a,F,H,o),J=a.child;return J.memoizedState=GN(o),a.memoizedState=WN,ee}else return YN(a,F)}else{var he=n.memoizedState;if(he!==null){var me=he.dehydrated;if(me!==null)return y$(n,a,w,f,me,he,o)}if(y){var _e=f.fallback,ut=f.children,Ct=m$(n,a,ut,_e,o),yt=a.child,An=n.child.memoizedState;return yt.memoizedState=An===null?GN(o):c$(An,o),yt.childLanes=d$(n,o),a.memoizedState=WN,Ct}else{var Sn=f.children,le=h$(n,a,Sn,o);return a.memoizedState=null,le}}}function YN(n,a,o){var f=n.mode,p={mode:"visible",children:a},y=qN(p,f);return y.return=n,n.child=y,y}function p$(n,a,o,f){var p=n.mode,y=n.child,w={mode:"hidden",children:a},T,O;return(p&yn)===Rt&&y!==null?(T=y,T.childLanes=Me,T.pendingProps=w,n.mode&Un&&(T.actualDuration=0,T.actualStartTime=-1,T.selfBaseDuration=0,T.treeBaseDuration=0),O=gf(o,p,f,null)):(T=qN(w,p),O=gf(o,p,f,null)),T.return=n,O.return=n,T.sibling=O,n.child=T,O}function qN(n,a,o){return AM(n,a,Me,null)}function AP(n,a){return mp(n,a)}function h$(n,a,o,f){var p=n.child,y=p.sibling,w=AP(p,{mode:"visible",children:o});if((a.mode&yn)===Rt&&(w.lanes=f),w.return=a,w.sibling=null,y!==null){var T=a.deletions;T===null?(a.deletions=[y],a.flags|=Eu):T.push(y)}return a.child=w,w}function m$(n,a,o,f,p){var y=a.mode,w=n.child,T=w.sibling,O={mode:"hidden",children:o},F;if((y&yn)===Rt&&a.child!==w){var H=a.child;F=H,F.childLanes=Me,F.pendingProps=O,a.mode&Un&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=w.selfBaseDuration,F.treeBaseDuration=w.treeBaseDuration),a.deletions=null}else F=AP(w,O),F.subtreeFlags=w.subtreeFlags&cs;var ee;return T!==null?ee=mp(T,f):(ee=gf(f,y,p,null),ee.flags|=zr),ee.return=a,F.return=a,F.sibling=ee,a.child=F,ee}function C1(n,a,o,f){f!==null&&RT(f),rm(a,n.child,null,o);var p=a.pendingProps,y=p.children,w=YN(a,y);return w.flags|=zr,a.memoizedState=null,w}function v$(n,a,o,f,p){var y=a.mode,w={mode:"visible",children:o},T=qN(w,y),O=gf(f,y,p,null);return O.flags|=zr,T.return=a,O.return=a,T.sibling=O,a.child=T,(a.mode&yn)!==Rt&&rm(a,n.child,null,p),O}function g$(n,a,o){return(n.mode&yn)===Rt?(u("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."),n.lanes=Ut):Ig(a)?n.lanes=ku:n.lanes=Ui,null}function y$(n,a,o,f,p,y,w){if(o)if(a.flags&Ks){a.flags&=~Ks;var le=MN(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return C1(n,a,w,le)}else{if(a.memoizedState!==null)return a.child=n.child,a.flags|=Ln,null;var Ee=f.children,ue=f.fallback,He=v$(n,a,Ee,ue,w),ct=a.child;return ct.memoizedState=GN(w),a.memoizedState=WN,He}else{if(oj(),(a.mode&yn)===Rt)return C1(n,a,w,null);if(Ig(p)){var T,O,F;{var H=qE(p);T=H.digest,O=H.message,F=H.stack}var ee;O?ee=new Error(O):ee=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var J=MN(ee,T,F);return C1(n,a,w,J)}var he=bi(w,n.childLanes);if(cl||he){var me=M1();if(me!==null){var _e=_h(me,w);if(_e!==Gr&&_e!==y.retryLane){y.retryLane=_e;var ut=Xn;oo(n,_e),Na(me,n,_e,ut)}}mR();var Ct=MN(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 C1(n,a,w,Ct)}else if(OS(p)){a.flags|=Ln,a.child=n.child;var yt=V9.bind(null,n);return KE(p,yt),null}else{uj(a,p,y.treeContext);var An=f.children,Sn=YN(a,An);return Sn.flags|=Xs,Sn}}}function OP(n,a,o){n.lanes=un(n.lanes,a);var f=n.alternate;f!==null&&(f.lanes=un(f.lanes,a)),PT(n.return,a,o)}function b$(n,a,o){for(var f=a;f!==null;){if(f.tag===V){var p=f.memoizedState;p!==null&&OP(f,o,n)}else if(f.tag===be)OP(f,o,n);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function S$(n){for(var a=n,o=null;a!==null;){var f=a.alternate;f!==null&&n1(f)===null&&(o=a),a=a.sibling}return o}function x$(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!jN[n])if(jN[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function w$(n,a){n!==void 0&&!w1[n]&&(n!=="collapsed"&&n!=="hidden"?(w1[n]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(w1[n]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function kP(n,a){{var o=Dt(n),f=!o&&typeof Pi(n)=="function";if(o||f){var p=o?"array":"iterable";return u("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>",p,a,p),!1}}return!0}function C$(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Dt(n)){for(var o=0;o<n.length;o++)if(!kP(n[o],o))return}else{var f=Pi(n);if(typeof f=="function"){var p=f.call(n);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!kP(y.value,w))return;w++}}else u('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?',a)}}function KN(n,a,o,f,p){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:p}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=o,y.tailMode=p)}function DP(n,a,o){var f=a.pendingProps,p=f.revealOrder,y=f.tail,w=f.children;x$(p),w$(y,p),C$(w,p),$i(n,a,w,o);var T=ll.current,O=iN(T,Yg);if(O)T=oN(T,Yg),a.flags|=Ln;else{var F=n!==null&&(n.flags&Ln)!==kt;F&&b$(a,a.child,o),T=im(T)}if(uf(a,T),(a.mode&yn)===Rt)a.memoizedState=null;else switch(p){case"forwards":{var H=S$(a.child),ee;H===null?(ee=a.child,a.child=null):(ee=H.sibling,H.sibling=null),KN(a,!1,ee,H,y);break}case"backwards":{var J=null,he=a.child;for(a.child=null;he!==null;){var me=he.alternate;if(me!==null&&n1(me)===null){a.child=he;break}var _e=he.sibling;he.sibling=J,J=he,he=_e}KN(a,!0,J,null,y);break}case"together":{KN(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function _$(n,a,o){nN(a,a.stateNode.containerInfo);var f=a.pendingProps;return n===null?a.child=rm(a,null,f,o):$i(n,a,f,o),a.child}var PP=!1;function E$(n,a,o){var f=a.type,p=f._context,y=a.pendingProps,w=a.memoizedProps,T=y.value;{"value"in y||PP||(PP=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=a.type.propTypes;O&&dr(O,y,"prop","Context.Provider")}if(SD(a,p,T),w!==null){var F=w.value;if(Ya(F,T)){if(w.children===y.children&&!DS())return Xu(n,a,o)}else bj(a,p,o)}var H=y.children;return $i(n,a,H,o),a.child}var MP=!1;function T$(n,a,o){var f=a.type;f._context===void 0?f!==f.Consumer&&(MP||(MP=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var p=a.pendingProps,y=p.children;typeof y!="function"&&u("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."),nm(a,o);var w=sa(f);vd(a);var T;return ty.current=a,Vr(!0),T=y(w),Vr(!1),Mc(),a.flags|=Dc,$i(n,a,T,o),a.child}function ry(){cl=!0}function _1(n,a){(a.mode&yn)===Rt&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=zr)}function Xu(n,a,o){return n!==null&&(a.dependencies=n.dependencies),mP(),my(a.lanes),bi(o,a.childLanes)?(kj(n,a),a.child):null}function N$(n,a,o){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,o.index=a.index,o.sibling=a.sibling,o.return=a.return,o.ref=a.ref,a===f.child)f.child=o;else{var p=f.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==a;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=o}var y=f.deletions;return y===null?(f.deletions=[n],f.flags|=Eu):y.push(n),o.flags|=zr,o}}function XN(n,a){var o=n.lanes;return!!bi(o,a)}function R$(n,a,o){switch(a.tag){case x:TP(a),a.stateNode,em();break;case _:BD(a);break;case v:{var f=a.type;$l(f)&&MS(a);break}case C:nN(a,a.stateNode.containerInfo);break;case M:{var p=a.memoizedProps.value,y=a.type._context;SD(a,y,p);break}case U:{var w=bi(o,a.childLanes);w&&(a.flags|=ln);{var T=a.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case V:{var O=a.memoizedState;if(O!==null){if(O.dehydrated!==null)return uf(a,im(ll.current)),a.flags|=Ln,null;var F=a.child,H=F.childLanes;if(bi(o,H))return RP(n,a,o);uf(a,im(ll.current));var ee=Xu(n,a,o);return ee!==null?ee.sibling:null}else uf(a,im(ll.current));break}case be:{var J=(n.flags&Ln)!==kt,he=bi(o,a.childLanes);if(J){if(he)return DP(n,a,o);a.flags|=Ln}var me=a.memoizedState;if(me!==null&&(me.rendering=null,me.tail=null,me.lastEffect=null),uf(a,ll.current),he)break;return null}case ie:case ce:return a.lanes=Me,CP(n,a,o)}return Xu(n,a,o)}function IP(n,a,o){if(a._debugNeedsRemount&&n!==null)return N$(n,a,TR(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var f=n.memoizedProps,p=a.pendingProps;if(f!==p||DS()||a.type!==n.type)cl=!0;else{var y=XN(n,o);if(!y&&(a.flags&Ln)===kt)return cl=!1,R$(n,a,o);(n.flags&xv)!==kt?cl=!0:cl=!1}}else if(cl=!1,Xa()&&ej(a)){var w=a.index,T=tj();lD(a,T,w)}switch(a.lanes=Me,a.tag){case b:return u$(n,a,a.type,o);case de:{var O=a.elementType;return s$(n,a,O,o)}case m:{var F=a.type,H=a.pendingProps,ee=a.elementType===F?H:sl(F,H);return $N(n,a,F,ee,o)}case v:{var J=a.type,he=a.pendingProps,me=a.elementType===J?he:sl(J,he);return EP(n,a,J,me,o)}case x:return a$(n,a,o);case _:return i$(n,a,o);case N:return o$(n,a);case V:return RP(n,a,o);case C:return _$(n,a,o);case z:{var _e=a.type,ut=a.pendingProps,Ct=a.elementType===_e?ut:sl(_e,ut);return SP(n,a,_e,Ct,o)}case A:return t$(n,a,o);case I:return n$(n,a,o);case U:return r$(n,a,o);case M:return E$(n,a,o);case j:return T$(n,a,o);case K:{var yt=a.type,An=a.pendingProps,Sn=sl(yt,An);if(a.type!==a.elementType){var le=yt.propTypes;le&&dr(le,Sn,"prop",on(yt))}return Sn=sl(yt.type,Sn),xP(n,a,yt,Sn,o)}case X:return wP(n,a,a.type,a.pendingProps,o);case ve:{var Ee=a.type,ue=a.pendingProps,He=a.elementType===Ee?ue:sl(Ee,ue);return l$(n,a,Ee,He,o)}case be:return DP(n,a,o);case Xe:break;case ie:return CP(n,a,o)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function fm(n){n.flags|=ln}function LP(n){n.flags|=La,n.flags|=Qs}var FP,ZN,zP,BP;FP=function(n,a,o,f){for(var p=a.child;p!==null;){if(p.tag===_||p.tag===N)AE(n,p.stateNode);else if(p.tag!==C){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===a)return;for(;p.sibling===null;){if(p.return===null||p.return===a)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},ZN=function(n,a){},zP=function(n,a,o,f,p){var y=n.memoizedProps;if(y!==f){var w=a.stateNode,T=rN(),O=kE(w,o,y,f,p,T);a.updateQueue=O,O&&fm(a)}},BP=function(n,a,o,f){o!==f&&fm(a)};function ay(n,a){if(!Xa())switch(n.tailMode){case"hidden":{for(var o=n.tail,f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?n.tail=null:f.sibling=null;break}case"collapsed":{for(var p=n.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:y.sibling=null;break}}}function Qa(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=Me,f=kt;if(a){if((n.mode&Un)!==Rt){for(var O=n.selfBaseDuration,F=n.child;F!==null;)o=un(o,un(F.lanes,F.childLanes)),f|=F.subtreeFlags&cs,f|=F.flags&cs,O+=F.treeBaseDuration,F=F.sibling;n.treeBaseDuration=O}else for(var H=n.child;H!==null;)o=un(o,un(H.lanes,H.childLanes)),f|=H.subtreeFlags&cs,f|=H.flags&cs,H.return=n,H=H.sibling;n.subtreeFlags|=f}else{if((n.mode&Un)!==Rt){for(var p=n.actualDuration,y=n.selfBaseDuration,w=n.child;w!==null;)o=un(o,un(w.lanes,w.childLanes)),f|=w.subtreeFlags,f|=w.flags,p+=w.actualDuration,y+=w.treeBaseDuration,w=w.sibling;n.actualDuration=p,n.treeBaseDuration=y}else for(var T=n.child;T!==null;)o=un(o,un(T.lanes,T.childLanes)),f|=T.subtreeFlags,f|=T.flags,T.return=n,T=T.sibling;n.subtreeFlags|=f}return n.childLanes=o,a}function A$(n,a,o){if(hj()&&(a.mode&yn)!==Rt&&(a.flags&Ln)===kt)return mD(a),em(),a.flags|=Ks|fd|Va,!1;var f=BS(a);if(o!==null&&o.dehydrated!==null)if(n===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dj(a),Qa(a),(a.mode&Un)!==Rt){var p=o!==null;if(p){var y=a.child;y!==null&&(a.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(em(),(a.flags&Ln)===kt&&(a.memoizedState=null),a.flags|=ln,Qa(a),(a.mode&Un)!==Rt){var w=o!==null;if(w){var T=a.child;T!==null&&(a.treeBaseDuration-=T.treeBaseDuration)}}return!1}else return vD(),!0}function UP(n,a,o){var f=a.pendingProps;switch(CT(a),a.tag){case b:case de:case X:case m:case z:case A:case I:case U:case j:case K:return Qa(a),null;case v:{var p=a.type;return $l(p)&&PS(a),Qa(a),null}case x:{var y=a.stateNode;if(am(a),bT(a),lN(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),n===null||n.child===null){var w=BS(a);if(w)fm(a);else if(n!==null){var T=n.memoizedState;(!T.isDehydrated||(a.flags&Ks)!==kt)&&(a.flags|=Tu,vD())}}return ZN(n,a),Qa(a),null}case _:{aN(a);var O=zD(),F=a.type;if(n!==null&&a.stateNode!=null)zP(n,a,F,f,O),n.ref!==a.ref&&LP(a);else{if(!f){if(a.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 Qa(a),null}var H=rN(),ee=BS(a);if(ee)cj(a,O,H)&&fm(a);else{var J=RE(F,f,O,H,a);FP(J,a,!1,!1),a.stateNode=J,OE(J,F,f,O)&&fm(a)}a.ref!==null&&LP(a)}return Qa(a),null}case N:{var he=f;if(n&&a.stateNode!=null){var me=n.memoizedProps;BP(n,a,me,he)}else{if(typeof he!="string"&&a.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 _e=zD(),ut=rN(),Ct=BS(a);Ct?fj(a)&&fm(a):a.stateNode=DE(he,_e,ut,a)}return Qa(a),null}case V:{om(a);var yt=a.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var An=A$(n,a,yt);if(!An)return a.flags&Va?a:null}if((a.flags&Ln)!==kt)return a.lanes=o,(a.mode&Un)!==Rt&&PN(a),a;var Sn=yt!==null,le=n!==null&&n.memoizedState!==null;if(Sn!==le&&Sn){var Ee=a.child;if(Ee.flags|=Nu,(a.mode&yn)!==Rt){var ue=n===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!we);ue||iN(ll.current,jD)?O9():mR()}}var He=a.updateQueue;if(He!==null&&(a.flags|=ln),Qa(a),(a.mode&Un)!==Rt&&Sn){var ct=a.child;ct!==null&&(a.treeBaseDuration-=ct.treeBaseDuration)}return null}case C:return am(a),ZN(n,a),n===null&&vT(a.stateNode.containerInfo),Qa(a),null;case M:var ot=a.type._context;return DT(ot,a),Qa(a),null;case ve:{var Ft=a.type;return $l(Ft)&&PS(a),Qa(a),null}case be:{om(a);var Qt=a.memoizedState;if(Qt===null)return Qa(a),null;var nr=(a.flags&Ln)!==kt,jn=Qt.rendering;if(jn===null)if(nr)ay(Qt,!1);else{var Kr=D9()&&(n===null||(n.flags&Ln)===kt);if(!Kr)for(var $n=a.child;$n!==null;){var Ur=n1($n);if(Ur!==null){nr=!0,a.flags|=Ln,ay(Qt,!1);var Ti=Ur.updateQueue;return Ti!==null&&(a.updateQueue=Ti,a.flags|=ln),a.subtreeFlags=kt,Dj(a,o),uf(a,oN(ll.current,Yg)),a.child}$n=$n.sibling}Qt.tail!==null&&Rr()>sM()&&(a.flags|=Ln,nr=!0,ay(Qt,!1),a.lanes=w0)}else{if(!nr){var ri=n1(jn);if(ri!==null){a.flags|=Ln,nr=!0;var jo=ri.updateQueue;if(jo!==null&&(a.updateQueue=jo,a.flags|=ln),ay(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!jn.alternate&&!Xa())return Qa(a),null}else Rr()*2-Qt.renderingStartTime>sM()&&o!==Ui&&(a.flags|=Ln,nr=!0,ay(Qt,!1),a.lanes=w0)}if(Qt.isBackwards)jn.sibling=a.child,a.child=jn;else{var Wi=Qt.last;Wi!==null?Wi.sibling=jn:a.child=jn,Qt.last=jn}}if(Qt.tail!==null){var Gi=Qt.tail;Qt.rendering=Gi,Qt.tail=Gi.sibling,Qt.renderingStartTime=Rr(),Gi.sibling=null;var Ni=ll.current;return nr?Ni=oN(Ni,Yg):Ni=im(Ni),uf(a,Ni),Gi}return Qa(a),null}case Xe:break;case ie:case ce:{hR(a);var tc=a.memoizedState,bm=tc!==null;if(n!==null){var Sy=n.memoizedState,Xl=Sy!==null;Xl!==bm&&!pe&&(a.flags|=Nu)}return!bm||(a.mode&yn)===Rt?Qa(a):bi(Kl,Ui)&&(Qa(a),a.subtreeFlags&(zr|ln)&&(a.flags|=Nu)),null}case Re:return null;case Ce:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function O$(n,a,o){switch(CT(a),a.tag){case v:{var f=a.type;$l(f)&&PS(a);var p=a.flags;return p&Va?(a.flags=p&~Va|Ln,(a.mode&Un)!==Rt&&PN(a),a):null}case x:{a.stateNode,am(a),bT(a),lN();var y=a.flags;return(y&Va)!==kt&&(y&Ln)===kt?(a.flags=y&~Va|Ln,a):null}case _:return aN(a),null;case V:{om(a);var w=a.memoizedState;if(w!==null&&w.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");em()}var T=a.flags;return T&Va?(a.flags=T&~Va|Ln,(a.mode&Un)!==Rt&&PN(a),a):null}case be:return om(a),null;case C:return am(a),null;case M:var O=a.type._context;return DT(O,a),null;case ie:case ce:return hR(a),null;case Re:return null;default:return null}}function jP(n,a,o){switch(CT(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&PS(a);break}case x:{a.stateNode,am(a),bT(a),lN();break}case _:{aN(a);break}case C:am(a);break;case V:om(a);break;case be:om(a);break;case M:var p=a.type._context;DT(p,a);break;case ie:case ce:hR(a);break}}var $P=null;$P=new Set;var E1=!1,Ja=!1,k$=typeof WeakSet=="function"?WeakSet:Set,ht=null,dm=null,pm=null;function D$(n){kc(null,function(){throw n}),kl()}var P$=function(n,a){if(a.props=n.memoizedProps,a.state=n.memoizedState,n.mode&Un)try{Yl(),a.componentWillUnmount()}finally{Gl(n)}else a.componentWillUnmount()};function VP(n,a){try{df(xa,n)}catch(o){pr(n,a,o)}}function QN(n,a,o){try{P$(n,o)}catch(f){pr(n,a,f)}}function M$(n,a,o){try{o.componentDidMount()}catch(f){pr(n,a,f)}}function HP(n,a){try{GP(n)}catch(o){pr(n,a,o)}}function hm(n,a){var o=n.ref;if(o!==null)if(typeof o=="function"){var f;try{if(mt&&Gt&&n.mode&Un)try{Yl(),f=o(null)}finally{Gl(n)}else f=o(null)}catch(p){pr(n,a,p)}typeof f=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else o.current=null}function T1(n,a,o){try{o()}catch(f){pr(n,a,f)}}var WP=!1;function I$(n,a){TE(n.containerInfo),ht=a,L$();var o=WP;return WP=!1,o}function L$(){for(;ht!==null;){var n=ht,a=n.child;(n.subtreeFlags&Cv)!==kt&&a!==null?(a.return=n,ht=a):F$()}}function F$(){for(;ht!==null;){var n=ht;er(n);try{z$(n)}catch(o){pr(n,n.return,o)}Cr();var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function z$(n){var a=n.alternate,o=n.flags;if((o&Tu)!==kt){switch(er(n),n.tag){case m:case z:case X:break;case v:{if(a!==null){var f=a.memoizedProps,p=a.memoizedState,y=n.stateNode;n.type===n.elementType&&!cp&&(y.props!==n.memoizedProps&&u("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.",It(n)||"instance"),y.state!==n.memoizedState&&u("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.",It(n)||"instance"));var w=y.getSnapshotBeforeUpdate(n.elementType===n.type?f:sl(n.type,f),p);{var T=$P;w===void 0&&!T.has(n.type)&&(T.add(n.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(n)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case x:{{var O=n.stateNode;GE(O.containerInfo)}break}case _:case N:case C:case ve: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.")}Cr()}}function fl(n,a,o){var f=a.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&n)===n){var T=w.destroy;w.destroy=void 0,T!==void 0&&((n&Za)!==so?zC(a):(n&xa)!==so&&p0(a),(n&Vl)!==so&&gy(!0),T1(a,o,T),(n&Vl)!==so&&gy(!1),(n&Za)!==so?Dv():(n&xa)!==so&&h0())}w=w.next}while(w!==y)}}function df(n,a){var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var p=f.next,y=p;do{if((y.tag&n)===n){(n&Za)!==so?gd(a):(n&xa)!==so&&d0(a);var w=y.create;(n&Vl)!==so&&gy(!0),y.destroy=w(),(n&Vl)!==so&&gy(!1),(n&Za)!==so?FC():(n&xa)!==so&&BC();{var T=y.destroy;if(T!==void 0&&typeof T!="function"){var O=void 0;(y.tag&xa)!==kt?O="useLayoutEffect":(y.tag&Vl)!==kt?O="useInsertionEffect":O="useEffect";var F=void 0;T===null?F=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof T.then=="function"?F=`
It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+O+`(() => {
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`:F=" You returned: "+T,u("%s must not return anything besides a function, which is used for clean-up.%s",O,F)}}}y=y.next}while(y!==p)}}function B$(n,a){if((a.flags&ln)!==kt)switch(a.tag){case U:{var o=a.stateNode.passiveEffectDuration,f=a.memoizedProps,p=f.id,y=f.onPostCommit,w=pP(),T=a.alternate===null?"mount":"update";dP()&&(T="nested-update"),typeof y=="function"&&y(p,T,o,w);var O=a.return;e:for(;O!==null;){switch(O.tag){case x:var F=O.stateNode;F.passiveEffectDuration+=o;break e;case U:var H=O.stateNode;H.passiveEffectDuration+=o;break e}O=O.return}break}}}function U$(n,a,o,f){if((o.flags&dd)!==kt)switch(o.tag){case m:case z:case X:{if(!Ja)if(o.mode&Un)try{Yl(),df(xa|Sa,o)}finally{Gl(o)}else df(xa|Sa,o);break}case v:{var p=o.stateNode;if(o.flags&ln&&!Ja)if(a===null)if(o.type===o.elementType&&!cp&&(p.props!==o.memoizedProps&&u("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.",It(o)||"instance"),p.state!==o.memoizedState&&u("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.",It(o)||"instance")),o.mode&Un)try{Yl(),p.componentDidMount()}finally{Gl(o)}else p.componentDidMount();else{var y=o.elementType===o.type?a.memoizedProps:sl(o.type,a.memoizedProps),w=a.memoizedState;if(o.type===o.elementType&&!cp&&(p.props!==o.memoizedProps&&u("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.",It(o)||"instance"),p.state!==o.memoizedState&&u("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.",It(o)||"instance")),o.mode&Un)try{Yl(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{Gl(o)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&(o.type===o.elementType&&!cp&&(p.props!==o.memoizedProps&&u("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.",It(o)||"instance"),p.state!==o.memoizedState&&u("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.",It(o)||"instance")),TD(o,T,p));break}case x:{var O=o.updateQueue;if(O!==null){var F=null;if(o.child!==null)switch(o.child.tag){case _:F=o.child.stateNode;break;case v:F=o.child.stateNode;break}TD(o,O,F)}break}case _:{var H=o.stateNode;if(a===null&&o.flags&ln){var ee=o.type,J=o.memoizedProps;FE(H,ee,J)}break}case N:break;case C:break;case U:{{var he=o.memoizedProps,me=he.onCommit,_e=he.onRender,ut=o.stateNode.effectDuration,Ct=pP(),yt=a===null?"mount":"update";dP()&&(yt="nested-update"),typeof _e=="function"&&_e(o.memoizedProps.id,yt,o.actualDuration,o.treeBaseDuration,o.actualStartTime,Ct);{typeof me=="function"&&me(o.memoizedProps.id,yt,ut,Ct),F9(o);var An=o.return;e:for(;An!==null;){switch(An.tag){case x:var Sn=An.stateNode;Sn.effectDuration+=ut;break e;case U:var le=An.stateNode;le.effectDuration+=ut;break e}An=An.return}}}break}case V:{q$(n,o);break}case be:case ve:case Xe:case ie:case ce:case Ce: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.")}Ja||o.flags&La&&GP(o)}function j$(n){switch(n.tag){case m:case z:case X:{if(n.mode&Un)try{Yl(),VP(n,n.return)}finally{Gl(n)}else VP(n,n.return);break}case v:{var a=n.stateNode;typeof a.componentDidMount=="function"&&M$(n,n.return,a),HP(n,n.return);break}case _:{HP(n,n.return);break}}}function $$(n,a){for(var o=null,f=n;;){if(f.tag===_){if(o===null){o=f;try{var p=f.stateNode;a?Dg(p):HE(f.stateNode,f.memoizedProps)}catch(w){pr(n,n.return,w)}}}else if(f.tag===N){if(o===null)try{var y=f.stateNode;a?VE(y):WE(y,f.memoizedProps)}catch(w){pr(n,n.return,w)}}else if(!((f.tag===ie||f.tag===ce)&&f.memoizedState!==null&&f!==n)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;o===f&&(o=null),f=f.return}o===f&&(o=null),f.sibling.return=f.return,f=f.sibling}}function GP(n){var a=n.ref;if(a!==null){var o=n.stateNode,f;switch(n.tag){case _:f=o;break;default:f=o}if(typeof a=="function"){var p;if(n.mode&Un)try{Yl(),p=a(f)}finally{Gl(n)}else p=a(f);typeof p=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(n)),a.current=f}}function V$(n){var a=n.alternate;a!==null&&(a.return=null),n.return=null}function YP(n){var a=n.alternate;a!==null&&(n.alternate=null,YP(a));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===_){var o=n.stateNode;o!==null&&Y(o)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function H$(n){for(var a=n.return;a!==null;){if(qP(a))return a;a=a.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 qP(n){return n.tag===_||n.tag===x||n.tag===C}function KP(n){var a=n;e:for(;;){for(;a.sibling===null;){if(a.return===null||qP(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==_&&a.tag!==N&&a.tag!==se;){if(a.flags&zr||a.child===null||a.tag===C)continue e;a.child.return=a,a=a.child}if(!(a.flags&zr))return a.stateNode}}function W$(n){var a=H$(n);switch(a.tag){case _:{var o=a.stateNode;a.flags&cd&&(Ag(o),a.flags&=~cd);var f=KP(n);eR(n,f,o);break}case x:case C:{var p=a.stateNode.containerInfo,y=KP(n);JN(n,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function JN(n,a,o){var f=n.tag,p=f===_||f===N;if(p){var y=n.stateNode;a?Og(o,y,a):BE(o,y)}else if(f!==C){var w=n.child;if(w!==null){JN(w,a,o);for(var T=w.sibling;T!==null;)JN(T,a,o),T=T.sibling}}}function eR(n,a,o){var f=n.tag,p=f===_||f===N;if(p){var y=n.stateNode;a?UE(o,y,a):zE(o,y)}else if(f!==C){var w=n.child;if(w!==null){eR(w,a,o);for(var T=w.sibling;T!==null;)eR(T,a,o),T=T.sibling}}}var ei=null,dl=!1;function G$(n,a,o){{var f=a;e:for(;f!==null;){switch(f.tag){case _:{ei=f.stateNode,dl=!1;break e}case x:{ei=f.stateNode.containerInfo,dl=!0;break e}case C:{ei=f.stateNode.containerInfo,dl=!0;break e}}f=f.return}if(ei===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");XP(n,a,o),ei=null,dl=!1}V$(o)}function pf(n,a,o){for(var f=o.child;f!==null;)XP(n,a,f),f=f.sibling}function XP(n,a,o){switch(IC(o),o.tag){case _:Ja||hm(o,a);case N:{{var f=ei,p=dl;ei=null,pf(n,a,o),ei=f,dl=p,ei!==null&&(dl?$E(ei,o.stateNode):jE(ei,o.stateNode))}return}case se:{ei!==null&&(dl?Ci(ei,o.stateNode):kg(ei,o.stateNode));return}case C:{{var y=ei,w=dl;ei=o.stateNode.containerInfo,dl=!0,pf(n,a,o),ei=y,dl=w}return}case m:case z:case K:case X:{if(!Ja){var T=o.updateQueue;if(T!==null){var O=T.lastEffect;if(O!==null){var F=O.next,H=F;do{var ee=H,J=ee.destroy,he=ee.tag;J!==void 0&&((he&Vl)!==so?T1(o,a,J):(he&xa)!==so&&(p0(o),o.mode&Un?(Yl(),T1(o,a,J),Gl(o)):T1(o,a,J),h0())),H=H.next}while(H!==F)}}}pf(n,a,o);return}case v:{if(!Ja){hm(o,a);var me=o.stateNode;typeof me.componentWillUnmount=="function"&&QN(o,a,me)}pf(n,a,o);return}case Xe:{pf(n,a,o);return}case ie:{if(o.mode&yn){var _e=Ja;Ja=_e||o.memoizedState!==null,pf(n,a,o),Ja=_e}else pf(n,a,o);break}default:{pf(n,a,o);return}}}function Y$(n){n.memoizedState}function q$(n,a){var o=a.memoizedState;if(o===null){var f=a.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&nT(y)}}}}function ZP(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new k$),a.forEach(function(f){var p=H9.bind(null,n,f);if(!o.has(f)){if(o.add(f),ya)if(dm!==null&&pm!==null)vy(pm,dm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(p,p)}})}}function K$(n,a,o){dm=o,pm=n,er(a),QP(a,n),er(a),dm=null,pm=null}function pl(n,a,o){var f=a.deletions;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p];try{G$(n,a,y)}catch(O){pr(y,a,O)}}var w=Do();if(a.subtreeFlags&_v)for(var T=a.child;T!==null;)er(T),QP(T,n),T=T.sibling;er(w)}function QP(n,a,o){var f=n.alternate,p=n.flags;switch(n.tag){case m:case z:case K:case X:{if(pl(a,n),ql(n),p&ln){try{fl(Vl|Sa,n,n.return),df(Vl|Sa,n)}catch(Ft){pr(n,n.return,Ft)}if(n.mode&Un){try{Yl(),fl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}Gl(n)}else try{fl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}}return}case v:{pl(a,n),ql(n),p&La&&f!==null&&hm(f,f.return);return}case _:{pl(a,n),ql(n),p&La&&f!==null&&hm(f,f.return);{if(n.flags&cd){var y=n.stateNode;try{Ag(y)}catch(Ft){pr(n,n.return,Ft)}}if(p&ln){var w=n.stateNode;if(w!=null){var T=n.memoizedProps,O=f!==null?f.memoizedProps:T,F=n.type,H=n.updateQueue;if(n.updateQueue=null,H!==null)try{Rg(w,H,F,O,T,n)}catch(Ft){pr(n,n.return,Ft)}}}}return}case N:{if(pl(a,n),ql(n),p&ln){if(n.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 ee=n.stateNode,J=n.memoizedProps,he=f!==null?f.memoizedProps:J;try{AS(ee,he,J)}catch(Ft){pr(n,n.return,Ft)}}return}case x:{if(pl(a,n),ql(n),p&ln&&f!==null){var me=f.memoizedState;if(me.isDehydrated)try{tT(a.containerInfo)}catch(Ft){pr(n,n.return,Ft)}}return}case C:{pl(a,n),ql(n);return}case V:{pl(a,n),ql(n);var _e=n.child;if(_e.flags&Nu){var ut=_e.stateNode,Ct=_e.memoizedState,yt=Ct!==null;if(ut.isHidden=yt,yt){var An=_e.alternate!==null&&_e.alternate.memoizedState!==null;An||A9()}}if(p&ln){try{Y$(n)}catch(Ft){pr(n,n.return,Ft)}ZP(n)}return}case ie:{var Sn=f!==null&&f.memoizedState!==null;if(n.mode&yn){var le=Ja;Ja=le||Sn,pl(a,n),Ja=le}else pl(a,n);if(ql(n),p&Nu){var Ee=n.stateNode,ue=n.memoizedState,He=ue!==null,ct=n;if(Ee.isHidden=He,He&&!Sn&&(ct.mode&yn)!==Rt){ht=ct;for(var ot=ct.child;ot!==null;)ht=ot,Z$(ot),ot=ot.sibling}$$(ct,He)}return}case be:{pl(a,n),ql(n),p&ln&&ZP(n);return}case Xe:return;default:{pl(a,n),ql(n);return}}}function ql(n){var a=n.flags;if(a&zr){try{W$(n)}catch(o){pr(n,n.return,o)}n.flags&=~zr}a&Xs&&(n.flags&=~Xs)}function X$(n,a,o){dm=o,pm=a,ht=n,JP(n,a,o),dm=null,pm=null}function JP(n,a,o){for(var f=(n.mode&yn)!==Rt;ht!==null;){var p=ht,y=p.child;if(p.tag===ie&&f){var w=p.memoizedState!==null,T=w||E1;if(T){tR(n,a,o);continue}else{var O=p.alternate,F=O!==null&&O.memoizedState!==null,H=F||Ja,ee=E1,J=Ja;E1=T,Ja=H,Ja&&!J&&(ht=p,Q$(p));for(var he=y;he!==null;)ht=he,JP(he,a,o),he=he.sibling;ht=p,E1=ee,Ja=J,tR(n,a,o);continue}}(p.subtreeFlags&dd)!==kt&&y!==null?(y.return=p,ht=y):tR(n,a,o)}}function tR(n,a,o){for(;ht!==null;){var f=ht;if((f.flags&dd)!==kt){var p=f.alternate;er(f);try{U$(a,p,f,o)}catch(w){pr(f,f.return,w)}Cr()}if(f===n){ht=null;return}var y=f.sibling;if(y!==null){y.return=f.return,ht=y;return}ht=f.return}}function Z$(n){for(;ht!==null;){var a=ht,o=a.child;switch(a.tag){case m:case z:case K:case X:{if(a.mode&Un)try{Yl(),fl(xa,a,a.return)}finally{Gl(a)}else fl(xa,a,a.return);break}case v:{hm(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&QN(a,a.return,f);break}case _:{hm(a,a.return);break}case ie:{var p=a.memoizedState!==null;if(p){eM(n);continue}break}}o!==null?(o.return=a,ht=o):eM(n)}}function eM(n){for(;ht!==null;){var a=ht;if(a===n){ht=null;return}var o=a.sibling;if(o!==null){o.return=a.return,ht=o;return}ht=a.return}}function Q$(n){for(;ht!==null;){var a=ht,o=a.child;if(a.tag===ie){var f=a.memoizedState!==null;if(f){tM(n);continue}}o!==null?(o.return=a,ht=o):tM(n)}}function tM(n){for(;ht!==null;){var a=ht;er(a);try{j$(a)}catch(f){pr(a,a.return,f)}if(Cr(),a===n){ht=null;return}var o=a.sibling;if(o!==null){o.return=a.return,ht=o;return}ht=a.return}}function J$(n,a,o,f){ht=a,e9(a,n,o,f)}function e9(n,a,o,f){for(;ht!==null;){var p=ht,y=p.child;(p.subtreeFlags&Pc)!==kt&&y!==null?(y.return=p,ht=y):t9(n,a,o,f)}}function t9(n,a,o,f){for(;ht!==null;){var p=ht;if((p.flags&Lo)!==kt){er(p);try{n9(a,p,o,f)}catch(w){pr(p,p.return,w)}Cr()}if(p===n){ht=null;return}var y=p.sibling;if(y!==null){y.return=p.return,ht=y;return}ht=p.return}}function n9(n,a,o,f){switch(a.tag){case m:case z:case X:{if(a.mode&Un){DN();try{df(Za|Sa,a)}finally{kN(a)}}else df(Za|Sa,a);break}}}function r9(n){ht=n,a9()}function a9(){for(;ht!==null;){var n=ht,a=n.child;if((ht.flags&Eu)!==kt){var o=n.deletions;if(o!==null){for(var f=0;f<o.length;f++){var p=o[f];ht=p,s9(p,n)}{var y=n.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var T=w.sibling;w.sibling=null,w=T}while(w!==null)}}}ht=n}}(n.subtreeFlags&Pc)!==kt&&a!==null?(a.return=n,ht=a):i9()}}function i9(){for(;ht!==null;){var n=ht;(n.flags&Lo)!==kt&&(er(n),o9(n),Cr());var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function o9(n){switch(n.tag){case m:case z:case X:{n.mode&Un?(DN(),fl(Za|Sa,n,n.return),kN(n)):fl(Za|Sa,n,n.return);break}}}function s9(n,a){for(;ht!==null;){var o=ht;er(o),u9(o,a),Cr();var f=o.child;f!==null?(f.return=o,ht=f):l9(n)}}function l9(n){for(;ht!==null;){var a=ht,o=a.sibling,f=a.return;if(YP(a),a===n){ht=null;return}if(o!==null){o.return=f,ht=o;return}ht=f}}function u9(n,a){switch(n.tag){case m:case z:case X:{n.mode&Un?(DN(),fl(Za,n,a),kN(n)):fl(Za,n,a);break}}}function c9(n){switch(n.tag){case m:case z:case X:{try{df(xa|Sa,n)}catch(o){pr(n,n.return,o)}break}case v:{var a=n.stateNode;try{a.componentDidMount()}catch(o){pr(n,n.return,o)}break}}}function f9(n){switch(n.tag){case m:case z:case X:{try{df(Za|Sa,n)}catch(a){pr(n,n.return,a)}break}}}function d9(n){switch(n.tag){case m:case z:case X:{try{fl(xa|Sa,n,n.return)}catch(o){pr(n,n.return,o)}break}case v:{var a=n.stateNode;typeof a.componentWillUnmount=="function"&&QN(n,n.return,a);break}}}function p9(n){switch(n.tag){case m:case z:case X:try{fl(Za|Sa,n,n.return)}catch(a){pr(n,n.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var iy=Symbol.for;iy("selector.component"),iy("selector.has_pseudo_class"),iy("selector.role"),iy("selector.test_id"),iy("selector.text")}var h9=[];function m9(){h9.forEach(function(n){return n()})}var v9=r.ReactCurrentActQueue;function g9(n){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,o=typeof jest<"u";return o&&a!==!1}}function nM(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&v9.current!==null&&u("The current testing environment is not configured to support act(...)"),n}}var y9=Math.ceil,nR=r.ReactCurrentDispatcher,rR=r.ReactCurrentOwner,ti=r.ReactCurrentBatchConfig,hl=r.ReactCurrentActQueue,_a=0,rM=1,ni=2,Ns=4,Zu=0,oy=1,fp=2,N1=3,sy=4,aM=5,aR=6,Rn=_a,Vi=null,Mr=null,Ea=Me,Kl=Me,iR=Ba(Me),Ta=Zu,ly=null,R1=Me,uy=Me,A1=Me,cy=null,lo=null,oR=0,iM=500,oM=1/0,b9=500,Qu=null;function fy(){oM=Rr()+b9}function sM(){return oM}var O1=!1,sR=null,mm=null,dp=!1,hf=null,dy=Me,lR=[],uR=null,S9=50,py=0,cR=null,fR=!1,k1=!1,x9=50,vm=0,D1=null,hy=Xn,P1=Me,lM=!1;function M1(){return Vi}function Hi(){return(Rn&(ni|Ns))!==_a?Rr():(hy!==Xn||(hy=Rr()),hy)}function mf(n){var a=n.mode;if((a&yn)===Rt)return Ut;if((Rn&ni)!==_a&&Ea!==Me)return Ed(Ea);var o=gj()!==vj;if(o){if(ti.transition!==null){var f=ti.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(n)}return P1===Gr&&(P1=_d()),P1}var p=ro();if(p!==Gr)return p;var y=PE();return y}function w9(n){var a=n.mode;return(a&yn)===Rt?Ut:E0()}function Na(n,a,o,f){G9(),lM&&u("useInsertionEffect must not schedule updates."),fR&&(k1=!0),Lu(n,o,f),(Rn&ni)!==Me&&n===Vi?K9(a):(ya&&Eh(n,a,o),X9(a),n===Vi&&((Rn&ni)===_a&&(uy=un(uy,o)),Ta===sy&&vf(n,Ea)),uo(n,f),o===Ut&&Rn===_a&&(a.mode&yn)===Rt&&!hl.isBatchingLegacy&&(fy(),sD()))}function C9(n,a,o){var f=n.current;f.lanes=a,Lu(n,a,o),uo(n,o)}function _9(n){return(Rn&ni)!==_a}function uo(n,a){var o=n.callbackNode;Cd(n,a);var f=xh(n,n===Vi?Ea:Me);if(f===Me){o!==null&&_M(o),n.callbackNode=null,n.callbackPriority=Gr;return}var p=el(f),y=n.callbackPriority;if(y===p&&!(hl.current!==null&&o!==yR)){o==null&&y!==Ut&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}o!=null&&_M(o);var w;if(p===Ut)n.tag===rf?(hl.isBatchingLegacy!==null&&(hl.didScheduleLegacyUpdate=!0),JU(fM.bind(null,n))):oD(fM.bind(null,n)),hl.current!==null?hl.current.push(af):IE(function(){(Rn&(ni|Ns))===_a&&af()}),w=null;else{var T;switch(gs(f)){case Ga:T=hd;break;case vs:T=Nv;break;case br:T=ds;break;case Th:T=dh;break;default:T=ds;break}w=bR(T,uM.bind(null,n))}n.callbackPriority=p,n.callbackNode=w}function uM(n,a){if(Gj(),hy=Xn,P1=Me,(Rn&(ni|Ns))!==_a)throw new Error("Should not already be working.");var o=n.callbackNode,f=ec();if(f&&n.callbackNode!==o)return null;var p=xh(n,n===Vi?Ea:Me);if(p===Me)return null;var y=!Mu(n,p)&&!HC(n,p)&&!a,w=y?M9(n,p):L1(n,p);if(w!==Zu){if(w===fp){var T=wh(n);T!==Me&&(p=T,w=dR(n,T))}if(w===oy){var O=ly;throw pp(n,Me),vf(n,p),uo(n,Rr()),O}if(w===aR)vf(n,p);else{var F=!Mu(n,p),H=n.current.alternate;if(F&&!T9(H)){if(w=L1(n,p),w===fp){var ee=wh(n);ee!==Me&&(p=ee,w=dR(n,ee))}if(w===oy){var J=ly;throw pp(n,Me),vf(n,p),uo(n,Rr()),J}}n.finishedWork=H,n.finishedLanes=p,E9(n,w,p)}}return uo(n,Rr()),n.callbackNode===o?uM.bind(null,n):null}function dR(n,a){var o=cy;if(ia(n)){var f=pp(n,a);f.flags|=Ks,mT(n.containerInfo)}var p=L1(n,a);if(p!==fp){var y=lo;lo=o,y!==null&&cM(y)}return p}function cM(n){lo===null?lo=n:lo.push.apply(lo,n)}function E9(n,a,o){switch(a){case Zu:case oy:throw new Error("Root did not complete. This is a bug in React.");case fp:{hp(n,lo,Qu);break}case N1:{if(vf(n,o),Vv(o)&&!EM()){var f=oR+iM-Rr();if(f>10){var p=xh(n,Me);if(p!==Me)break;var y=n.suspendedLanes;if(!Iu(y,o)){Hi(),Rd(n,y);break}n.timeoutHandle=Tg(hp.bind(null,n,lo,Qu),f);break}}hp(n,lo,Qu);break}case sy:{if(vf(n,o),Hv(o))break;if(!EM()){var w=C0(n,o),T=w,O=Rr()-T,F=W9(O)-O;if(F>10){n.timeoutHandle=Tg(hp.bind(null,n,lo,Qu),F);break}}hp(n,lo,Qu);break}case aM:{hp(n,lo,Qu);break}default:throw new Error("Unknown root exit status.")}}function T9(n){for(var a=n;;){if(a.flags&lh){var o=a.updateQueue;if(o!==null){var f=o.stores;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.getSnapshot,T=y.value;try{if(!Ya(w(),T))return!1}catch{return!1}}}}var O=a.child;if(a.subtreeFlags&lh&&O!==null){O.return=a,a=O;continue}if(a===n)return!0;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function vf(n,a){a=Td(a,A1),a=Td(a,uy),Gv(n,a)}function fM(n){if(Yj(),(Rn&(ni|Ns))!==_a)throw new Error("Should not already be working.");ec();var a=xh(n,Me);if(!bi(a,Ut))return uo(n,Rr()),null;var o=L1(n,a);if(n.tag!==rf&&o===fp){var f=wh(n);f!==Me&&(a=f,o=dR(n,f))}if(o===oy){var p=ly;throw pp(n,Me),vf(n,a),uo(n,Rr()),p}if(o===aR)throw new Error("Root did not complete. This is a bug in React.");var y=n.current.alternate;return n.finishedWork=y,n.finishedLanes=a,hp(n,lo,Qu),uo(n,Rr()),null}function N9(n,a){a!==Me&&(At(n,un(a,Ut)),uo(n,Rr()),(Rn&(ni|Ns))===_a&&(fy(),af()))}function pR(n,a){var o=Rn;Rn|=rM;try{return n(a)}finally{Rn=o,Rn===_a&&!hl.isBatchingLegacy&&(fy(),sD())}}function R9(n,a,o,f,p){var y=ro(),w=ti.transition;try{return ti.transition=null,aa(Ga),n(a,o,f,p)}finally{aa(y),ti.transition=w,Rn===_a&&fy()}}function Ju(n){hf!==null&&hf.tag===rf&&(Rn&(ni|Ns))===_a&&ec();var a=Rn;Rn|=rM;var o=ti.transition,f=ro();try{return ti.transition=null,aa(Ga),n?n():void 0}finally{aa(f),ti.transition=o,Rn=a,(Rn&(ni|Ns))===_a&&af()}}function dM(){return(Rn&(ni|Ns))!==_a}function I1(n,a){_i(iR,Kl,n),Kl=un(Kl,a)}function hR(n){Kl=iR.current,ba(iR,n)}function pp(n,a){n.finishedWork=null,n.finishedLanes=Me;var o=n.timeoutHandle;if(o!==Ng&&(n.timeoutHandle=Ng,ME(o)),Mr!==null)for(var f=Mr.return;f!==null;){var p=f.alternate;jP(p,f),f=f.return}Vi=n;var y=mp(n.current,null);return Mr=y,Ea=Kl=a,Ta=Zu,ly=null,R1=Me,uy=Me,A1=Me,cy=null,lo=null,xj(),ol.discardPendingWarnings(),y}function pM(n,a){do{var o=Mr;try{if(VS(),VD(),Cr(),rR.current=null,o===null||o.return===null){Ta=oy,ly=a,Mr=null;return}if(mt&&o.mode&Un&&x1(o,!0),st)if(Mc(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;Pv(o,f,Ea)}else m0(o,a,Ea);Qj(n,o.return,o,a,Ea),gM(o)}catch(p){a=p,Mr===o&&o!==null?(o=o.return,Mr=o):o=Mr;continue}return}while(!0)}function hM(){var n=nR.current;return nR.current=v1,n===null?v1:n}function mM(n){nR.current=n}function A9(){oR=Rr()}function my(n){R1=un(n,R1)}function O9(){Ta===Zu&&(Ta=N1)}function mR(){(Ta===Zu||Ta===N1||Ta===fp)&&(Ta=sy),Vi!==null&&(Vc(R1)||Vc(uy))&&vf(Vi,Ea)}function k9(n){Ta!==sy&&(Ta=fp),cy===null?cy=[n]:cy.push(n)}function D9(){return Ta===Zu}function L1(n,a){var o=Rn;Rn|=ni;var f=hM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(vy(n,Ea),p.clear()),Il(n,a)}Qu=N0(),pp(n,a)}Iv(a);do try{P9();break}catch(y){pM(n,y)}while(!0);if(VS(),Rn=o,mM(f),Mr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return y0(),Vi=null,Ea=Me,Ta}function P9(){for(;Mr!==null;)vM(Mr)}function M9(n,a){var o=Rn;Rn|=ni;var f=hM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(vy(n,Ea),p.clear()),Il(n,a)}Qu=N0(),fy(),pp(n,a)}Iv(a);do try{I9();break}catch(y){pM(n,y)}while(!0);return VS(),mM(f),Rn=o,Mr!==null?(ph(),Zu):(y0(),Vi=null,Ea=Me,Ta)}function I9(){for(;Mr!==null&&!u0();)vM(Mr)}function vM(n){var a=n.alternate;er(n);var o;(n.mode&Un)!==Rt?(ON(n),o=vR(a,n,Kl),x1(n,!0)):o=vR(a,n,Kl),Cr(),n.memoizedProps=n.pendingProps,o===null?gM(n):Mr=o,rR.current=null}function gM(n){var a=n;do{var o=a.alternate,f=a.return;if((a.flags&fd)===kt){er(a);var p=void 0;if((a.mode&Un)===Rt?p=UP(o,a,Kl):(ON(a),p=UP(o,a,Kl),x1(a,!1)),Cr(),p!==null){Mr=p;return}}else{var y=O$(o,a);if(y!==null){y.flags&=kC,Mr=y;return}if((a.mode&Un)!==Rt){x1(a,!1);for(var w=a.actualDuration,T=a.child;T!==null;)w+=T.actualDuration,T=T.sibling;a.actualDuration=w}if(f!==null)f.flags|=fd,f.subtreeFlags=kt,f.deletions=null;else{Ta=aR,Mr=null;return}}var O=a.sibling;if(O!==null){Mr=O;return}a=f,Mr=a}while(a!==null);Ta===Zu&&(Ta=aM)}function hp(n,a,o){var f=ro(),p=ti.transition;try{ti.transition=null,aa(Ga),L9(n,a,o,f)}finally{ti.transition=p,aa(f)}return null}function L9(n,a,o,f){do ec();while(hf!==null);if(Y9(),(Rn&(ni|Ns))!==_a)throw new Error("Should not already be working.");var p=n.finishedWork,y=n.finishedLanes;if(md(y),p===null)return kv(),null;if(y===Me&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Me,p===n.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.");n.callbackNode=null,n.callbackPriority=Gr;var w=un(p.lanes,p.childLanes);Hc(n,w),n===Vi&&(Vi=null,Mr=null,Ea=Me),((p.subtreeFlags&Pc)!==kt||(p.flags&Pc)!==kt)&&(dp||(dp=!0,uR=o,bR(ds,function(){return ec(),null})));var T=(p.subtreeFlags&(Cv|_v|dd|Pc))!==kt,O=(p.flags&(Cv|_v|dd|Pc))!==kt;if(T||O){var F=ti.transition;ti.transition=null;var H=ro();aa(Ga);var ee=Rn;Rn|=Ns,rR.current=null,I$(n,p),hP(),K$(n,p,y),NE(n.containerInfo),n.current=p,UC(y),X$(p,n,y),Mv(),c0(),Rn=ee,aa(H),ti.transition=F}else n.current=p,hP();var J=dp;if(dp?(dp=!1,hf=n,dy=y):(vm=0,D1=null),w=n.pendingLanes,w===Me&&(mm=null),J||xM(n.current,!1),Av(p.stateNode,f),ya&&n.memoizedUpdaters.clear(),m9(),uo(n,Rr()),a!==null)for(var he=n.onRecoverableError,me=0;me<a.length;me++){var _e=a[me],ut=_e.stack,Ct=_e.digest;he(_e.value,{componentStack:ut,digest:Ct})}if(O1){O1=!1;var yt=sR;throw sR=null,yt}return bi(dy,Ut)&&n.tag!==rf&&ec(),w=n.pendingLanes,bi(w,Ut)?(Wj(),n===cR?py++:(py=0,cR=n)):py=0,af(),kv(),null}function ec(){if(hf!==null){var n=gs(dy),a=GC(br,n),o=ti.transition,f=ro();try{return ti.transition=null,aa(a),z9()}finally{aa(f),ti.transition=o}}return!1}function F9(n){lR.push(n),dp||(dp=!0,bR(ds,function(){return ec(),null}))}function z9(){if(hf===null)return!1;var n=uR;uR=null;var a=hf,o=dy;if(hf=null,dy=Me,(Rn&(ni|Ns))!==_a)throw new Error("Cannot flush passive effects while already rendering.");fR=!0,k1=!1,v0(o);var f=Rn;Rn|=Ns,r9(a.current),J$(a,a.current,o,n);{var p=lR;lR=[];for(var y=0;y<p.length;y++){var w=p[y];B$(a,w)}}g0(),xM(a.current,!0),Rn=f,af(),k1?a===D1?vm++:(vm=0,D1=a):vm=0,fR=!1,k1=!1,MC(a);{var T=a.current.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}return!0}function yM(n){return mm!==null&&mm.has(n)}function B9(n){mm===null?mm=new Set([n]):mm.add(n)}function U9(n){O1||(O1=!0,sR=n)}var j9=U9;function bM(n,a,o){var f=up(o,a),p=vP(n,f,Ut),y=sf(n,p,Ut),w=Hi();y!==null&&(Lu(y,Ut,w),uo(y,w))}function pr(n,a,o){if(D$(o),gy(!1),n.tag===x){bM(n,n,o);return}var f=null;for(f=a;f!==null;){if(f.tag===x){bM(f,n,o);return}else if(f.tag===v){var p=f.type,y=f.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!yM(y)){var w=up(o,n),T=LN(f,w,Ut),O=sf(f,T,Ut),F=Hi();O!==null&&(Lu(O,Ut,F),uo(O,F));return}}f=f.return}u(`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`,o)}function $9(n,a,o){var f=n.pingCache;f!==null&&f.delete(a);var p=Hi();Rd(n,o),Z9(n),Vi===n&&Iu(Ea,o)&&(Ta===sy||Ta===N1&&Vv(Ea)&&Rr()-oR<iM?pp(n,Me):A1=un(A1,o)),uo(n,p)}function SM(n,a){a===Gr&&(a=w9(n));var o=Hi(),f=oo(n,a);f!==null&&(Lu(f,a,o),uo(f,o))}function V9(n){var a=n.memoizedState,o=Gr;a!==null&&(o=a.retryLane),SM(n,o)}function H9(n,a){var o=Gr,f;switch(n.tag){case V:f=n.stateNode;var p=n.memoizedState;p!==null&&(o=p.retryLane);break;case be:f=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),SM(n,o)}function W9(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:y9(n/1960)*1960}function G9(){if(py>S9)throw py=0,cR=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.");vm>x9&&(vm=0,D1=null,u("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 Y9(){ol.flushLegacyContextWarning(),ol.flushPendingUnsafeLifecycleWarnings()}function xM(n,a){er(n),F1(n,Wr,d9),a&&F1(n,uh,p9),F1(n,Wr,c9),a&&F1(n,uh,f9),Cr()}function F1(n,a,o){for(var f=n,p=null;f!==null;){var y=f.subtreeFlags&a;f!==p&&f.child!==null&&y!==kt?f=f.child:((f.flags&a)!==kt&&o(f),f.sibling!==null?f=f.sibling:f=p=f.return)}}var z1=null;function wM(n){{if((Rn&ni)!==_a||!(n.mode&yn))return;var a=n.tag;if(a!==b&&a!==x&&a!==v&&a!==m&&a!==z&&a!==K&&a!==X)return;var o=It(n)||"ReactComponent";if(z1!==null){if(z1.has(o))return;z1.add(o)}else z1=new Set([o]);var f=yr;try{er(n),u("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{f?er(n):Cr()}}}var vR;{var q9=null;vR=function(n,a,o){var f=OM(q9,a);try{return IP(n,a,o)}catch(y){if(sj()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(VS(),VD(),jP(n,a),OM(a,f),a.mode&Un&&ON(a),kc(null,IP,null,n,a,o),L()){var p=kl();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var CM=!1,gR;gR=new Set;function K9(n){if(Ii&&!$j())switch(n.tag){case m:case z:case X:{var a=Mr&&It(Mr)||"Unknown",o=a;if(!gR.has(o)){gR.add(o);var f=It(n)||"Unknown";u("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",f,a,a)}break}case v:{CM||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),CM=!0);break}}}function vy(n,a){if(ya){var o=n.memoizedUpdaters;o.forEach(function(f){Eh(n,f,a)})}}var yR={};function bR(n,a){{var o=hl.current;return o!==null?(o.push(a),yR):Fi(n,a)}}function _M(n){if(n!==yR)return DC(n)}function EM(){return hl.current!==null}function X9(n){{if(n.mode&yn){if(!nM())return}else if(!g9()||Rn!==_a||n.tag!==m&&n.tag!==z&&n.tag!==X)return;if(hl.current===null){var a=yr;try{er(n),u(`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`,It(n))}finally{a?er(n):Cr()}}}}function Z9(n){n.tag!==rf&&nM()&&hl.current===null&&u(`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 gy(n){lM=n}var Rs=null,gm=null,Q9=function(n){Rs=n};function ym(n){{if(Rs===null)return n;var a=Rs(n);return a===void 0?n:a.current}}function SR(n){return ym(n)}function xR(n){{if(Rs===null)return n;var a=Rs(n);if(a===void 0){if(n!=null&&typeof n.render=="function"){var o=ym(n.render);if(n.render!==o){var f={$$typeof:tt,render:o};return n.displayName!==void 0&&(f.displayName=n.displayName),f}}return n}return a.current}}function TM(n,a){{if(Rs===null)return!1;var o=n.elementType,f=a.type,p=!1,y=typeof f=="object"&&f!==null?f.$$typeof:null;switch(n.tag){case v:{typeof f=="function"&&(p=!0);break}case m:{(typeof f=="function"||y===an)&&(p=!0);break}case z:{(y===tt||y===an)&&(p=!0);break}case K:case X:{(y===In||y===an)&&(p=!0);break}default:return!1}if(p){var w=Rs(o);if(w!==void 0&&w===Rs(f))return!0}return!1}}function NM(n){{if(Rs===null||typeof WeakSet!="function")return;gm===null&&(gm=new WeakSet),gm.add(n)}}var J9=function(n,a){{if(Rs===null)return;var o=a.staleFamilies,f=a.updatedFamilies;ec(),Ju(function(){wR(n.current,f,o)})}},eV=function(n,a){{if(n.context!==Bo)return;ec(),Ju(function(){yy(a,n,null,null)})}};function wR(n,a,o){{var f=n.alternate,p=n.child,y=n.sibling,w=n.tag,T=n.type,O=null;switch(w){case m:case X:case v:O=T;break;case z:O=T.render;break}if(Rs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var F=!1,H=!1;if(O!==null){var ee=Rs(O);ee!==void 0&&(o.has(ee)?H=!0:a.has(ee)&&(w===v?H=!0:F=!0))}if(gm!==null&&(gm.has(n)||f!==null&&gm.has(f))&&(H=!0),H&&(n._debugNeedsRemount=!0),H||F){var J=oo(n,Ut);J!==null&&Na(J,n,Ut,Xn)}p!==null&&!H&&wR(p,a,o),y!==null&&wR(y,a,o)}}var tV=function(n,a){{var o=new Set,f=new Set(a.map(function(p){return p.current}));return CR(n.current,f,o),o}};function CR(n,a,o){{var f=n.child,p=n.sibling,y=n.tag,w=n.type,T=null;switch(y){case m:case X:case v:T=w;break;case z:T=w.render;break}var O=!1;T!==null&&a.has(T)&&(O=!0),O?nV(n,o):f!==null&&CR(f,a,o),p!==null&&CR(p,a,o)}}function nV(n,a){{var o=rV(n,a);if(o)return;for(var f=n;;){switch(f.tag){case _:a.add(f.stateNode);return;case C:a.add(f.stateNode.containerInfo);return;case x:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function rV(n,a){for(var o=n,f=!1;;){if(o.tag===_)f=!0,a.add(o.stateNode);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)return f;for(;o.sibling===null;){if(o.return===null||o.return===n)return f;o=o.return}o.sibling.return=o.return,o=o.sibling}return!1}var _R;{_R=!1;try{var RM=Object.preventExtensions({})}catch{_R=!0}}function aV(n,a,o,f){this.tag=n,this.key=o,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=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=f,this.flags=kt,this.subtreeFlags=kt,this.deletions=null,this.lanes=Me,this.childLanes=Me,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,!_R&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Uo=function(n,a,o,f){return new aV(n,a,o,f)};function ER(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function iV(n){return typeof n=="function"&&!ER(n)&&n.defaultProps===void 0}function oV(n){if(typeof n=="function")return ER(n)?v:m;if(n!=null){var a=n.$$typeof;if(a===tt)return z;if(a===In)return K}return b}function mp(n,a){var o=n.alternate;o===null?(o=Uo(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o._debugSource=n._debugSource,o._debugOwner=n._debugOwner,o._debugHookTypes=n._debugHookTypes,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=kt,o.subtreeFlags=kt,o.deletions=null,o.actualDuration=0,o.actualStartTime=-1),o.flags=n.flags&cs,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue;var f=n.dependencies;switch(o.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.selfBaseDuration=n.selfBaseDuration,o.treeBaseDuration=n.treeBaseDuration,o._debugNeedsRemount=n._debugNeedsRemount,o.tag){case b:case m:case X:o.type=ym(n.type);break;case v:o.type=SR(n.type);break;case z:o.type=xR(n.type);break}return o}function sV(n,a){n.flags&=cs|zr;var o=n.alternate;if(o===null)n.childLanes=Me,n.lanes=a,n.child=null,n.subtreeFlags=kt,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=kt,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type;var f=o.dependencies;n.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},n.selfBaseDuration=o.selfBaseDuration,n.treeBaseDuration=o.treeBaseDuration}return n}function lV(n,a,o){var f;return n===IS?(f=yn,a===!0&&(f|=Pr,f|=no)):f=Rt,ya&&(f|=Un),Uo(x,null,null,f)}function TR(n,a,o,f,p,y){var w=b,T=n;if(typeof n=="function")ER(n)?(w=v,T=SR(T)):T=ym(T);else if(typeof n=="string")w=_;else{e:switch(n){case Be:return gf(o.children,p,y,a);case qe:w=I,p|=Pr,(p&yn)!==Rt&&(p|=no);break;case bt:return uV(o,p,y,a);case $t:return cV(o,p,y,a);case zn:return fV(o,p,y,a);case _o:return AM(o,p,y,a);case da:case Lr:case Qi:case yu:case ci:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case nn:w=M;break e;case gn:w=j;break e;case tt:w=z,T=xR(T);break e;case In:w=K;break e;case an:w=de,T=null;break e}var O="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(O+=" 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 F=f?It(f):null;F&&(O+=`
Check the render method of \``+F+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+O))}}}var H=Uo(w,o,a,p);return H.elementType=n,H.type=T,H.lanes=y,H._debugOwner=f,H}function NR(n,a,o){var f=null;f=n._owner;var p=n.type,y=n.key,w=n.props,T=TR(p,y,w,f,a,o);return T._debugSource=n._source,T._debugOwner=n._owner,T}function gf(n,a,o,f){var p=Uo(A,n,f,a);return p.lanes=o,p}function uV(n,a,o,f){typeof n.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var p=Uo(U,n,f,a|Un);return p.elementType=bt,p.lanes=o,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function cV(n,a,o,f){var p=Uo(V,n,f,a);return p.elementType=$t,p.lanes=o,p}function fV(n,a,o,f){var p=Uo(be,n,f,a);return p.elementType=zn,p.lanes=o,p}function AM(n,a,o,f){var p=Uo(ie,n,f,a);p.elementType=_o,p.lanes=o;var y={isHidden:!1};return p.stateNode=y,p}function RR(n,a,o){var f=Uo(N,n,null,a);return f.lanes=o,f}function dV(){var n=Uo(_,null,null,Rt);return n.elementType="DELETED",n}function pV(n){var a=Uo(se,null,null,Rt);return a.stateNode=n,a}function AR(n,a,o){var f=n.children!==null?n.children:[],p=Uo(C,f,n.key,a);return p.lanes=o,p.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},p}function OM(n,a){return n===null&&(n=Uo(b,null,null,Rt)),n.tag=a.tag,n.key=a.key,n.elementType=a.elementType,n.type=a.type,n.stateNode=a.stateNode,n.return=a.return,n.child=a.child,n.sibling=a.sibling,n.index=a.index,n.ref=a.ref,n.pendingProps=a.pendingProps,n.memoizedProps=a.memoizedProps,n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.dependencies=a.dependencies,n.mode=a.mode,n.flags=a.flags,n.subtreeFlags=a.subtreeFlags,n.deletions=a.deletions,n.lanes=a.lanes,n.childLanes=a.childLanes,n.alternate=a.alternate,n.actualDuration=a.actualDuration,n.actualStartTime=a.actualStartTime,n.selfBaseDuration=a.selfBaseDuration,n.treeBaseDuration=a.treeBaseDuration,n._debugSource=a._debugSource,n._debugOwner=a._debugOwner,n._debugNeedsRemount=a._debugNeedsRemount,n._debugHookTypes=a._debugHookTypes,n}function hV(n,a,o,f,p){this.tag=a,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ng,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Gr,this.eventTimes=Nd(Me),this.expirationTimes=Nd(Xn),this.pendingLanes=Me,this.suspendedLanes=Me,this.pingedLanes=Me,this.expiredLanes=Me,this.mutableReadLanes=Me,this.finishedLanes=Me,this.entangledLanes=Me,this.entanglements=Nd(Me),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<zv;w++)y.push(new Set)}switch(a){case IS:this._debugRootType=o?"hydrateRoot()":"createRoot()";break;case rf:this._debugRootType=o?"hydrate()":"render()";break}}function kM(n,a,o,f,p,y,w,T,O,F){var H=new hV(n,a,o,T,O),ee=lV(a,y);H.current=ee,ee.stateNode=H;{var J={element:f,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null};ee.memoizedState=J}return FT(ee),H}var OR="18.2.0";function mV(n,a,o){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return ir(f),{$$typeof:q,key:f==null?null:""+f,children:n,containerInfo:a,implementation:o}}var kR,DR;kR=!1,DR={};function DM(n){if(!n)return Bo;var a=qs(n),o=QU(a);if(a.tag===v){var f=a.type;if($l(f))return aD(a,f,o)}return o}function vV(n,a){{var o=qs(n);if(o===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var p=l0(o);if(p===null)return null;if(p.mode&Pr){var y=It(o)||"Component";if(!DR[y]){DR[y]=!0;var w=yr;try{er(p),o.mode&Pr?u("%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",a,a,y):u("%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",a,a,y)}finally{w?er(w):Cr()}}}return p.stateNode}}function PM(n,a,o,f,p,y,w,T){var O=!1,F=null;return kM(n,a,O,F,o,f,p,y,w)}function MM(n,a,o,f,p,y,w,T,O,F){var H=!0,ee=kM(o,f,H,n,p,y,w,T,O);ee.context=DM(null);var J=ee.current,he=Hi(),me=mf(J),_e=Ku(he,me);return _e.callback=a??null,sf(J,_e,me),C9(ee,me,he),ee}function yy(n,a,o,f){Ha(a,n);var p=a.current,y=Hi(),w=mf(p);b0(w);var T=DM(o);a.context===null?a.context=T:a.pendingContext=T,Ii&&yr!==null&&!kR&&(kR=!0,u(`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.`,It(yr)||"Unknown"));var O=Ku(y,w);O.payload={element:n},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f),O.callback=f);var F=sf(p,O,w);return F!==null&&(Na(F,p,w,y),qS(F,p,w)),w}function B1(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case _:return a.child.stateNode;default:return a.child.stateNode}}function gV(n){switch(n.tag){case x:{var a=n.stateNode;if(ia(a)){var o=VC(a);N9(a,o)}break}case V:{Ju(function(){var p=oo(n,Ut);if(p!==null){var y=Hi();Na(p,n,Ut,y)}});var f=Ut;PR(n,f);break}}}function IM(n,a){var o=n.memoizedState;o!==null&&o.dehydrated!==null&&(o.retryLane=tl(o.retryLane,a))}function PR(n,a){IM(n,a);var o=n.alternate;o&&IM(o,a)}function yV(n){if(n.tag===V){var a=Uc,o=oo(n,a);if(o!==null){var f=Hi();Na(o,n,a,f)}PR(n,a)}}function bV(n){if(n.tag===V){var a=mf(n),o=oo(n,a);if(o!==null){var f=Hi();Na(o,n,a,f)}PR(n,a)}}function LM(n){var a=Tv(n);return a===null?null:a.stateNode}var FM=function(n){return null};function SV(n){return FM(n)}var zM=function(n){return!1};function xV(n){return zM(n)}var BM=null,UM=null,jM=null,$M=null,VM=null,HM=null,WM=null,GM=null,YM=null;{var qM=function(n,a,o){var f=a[o],p=Dt(n)?n.slice():Zt({},n);return o+1===a.length?(Dt(p)?p.splice(f,1):delete p[f],p):(p[f]=qM(n[f],a,o+1),p)},KM=function(n,a){return qM(n,a,0)},XM=function(n,a,o,f){var p=a[f],y=Dt(n)?n.slice():Zt({},n);if(f+1===a.length){var w=o[f];y[w]=y[p],Dt(y)?y.splice(p,1):delete y[p]}else y[p]=XM(n[p],a,o,f+1);return y},ZM=function(n,a,o){if(a.length!==o.length){c("copyWithRename() expects paths of the same length");return}else for(var f=0;f<o.length-1;f++)if(a[f]!==o[f]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return XM(n,a,o,0)},QM=function(n,a,o,f){if(o>=a.length)return f;var p=a[o],y=Dt(n)?n.slice():Zt({},n);return y[p]=QM(n[p],a,o+1,f),y},JM=function(n,a,o){return QM(n,a,0,o)},MR=function(n,a){for(var o=n.memoizedState;o!==null&&a>0;)o=o.next,a--;return o};BM=function(n,a,o,f){var p=MR(n,a);if(p!==null){var y=JM(p.memoizedState,o,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=oo(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},UM=function(n,a,o){var f=MR(n,a);if(f!==null){var p=KM(f.memoizedState,o);f.memoizedState=p,f.baseState=p,n.memoizedProps=Zt({},n.memoizedProps);var y=oo(n,Ut);y!==null&&Na(y,n,Ut,Xn)}},jM=function(n,a,o,f){var p=MR(n,a);if(p!==null){var y=ZM(p.memoizedState,o,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=oo(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},$M=function(n,a,o){n.pendingProps=JM(n.memoizedProps,a,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=oo(n,Ut);f!==null&&Na(f,n,Ut,Xn)},VM=function(n,a){n.pendingProps=KM(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var o=oo(n,Ut);o!==null&&Na(o,n,Ut,Xn)},HM=function(n,a,o){n.pendingProps=ZM(n.memoizedProps,a,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=oo(n,Ut);f!==null&&Na(f,n,Ut,Xn)},WM=function(n){var a=oo(n,Ut);a!==null&&Na(a,n,Ut,Xn)},GM=function(n){FM=n},YM=function(n){zM=n}}function wV(n){var a=l0(n);return a===null?null:a.stateNode}function CV(n){return null}function _V(){return yr}function EV(n){var a=n.findFiberByHostInstance,o=r.ReactCurrentDispatcher;return f0({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:BM,overrideHookStateDeletePath:UM,overrideHookStateRenamePath:jM,overrideProps:$M,overridePropsDeletePath:VM,overridePropsRenamePath:HM,setErrorHandler:GM,setSuspenseHandler:YM,scheduleUpdate:WM,currentDispatcherRef:o,findHostInstanceByFiber:wV,findFiberByHostInstance:a||CV,findHostInstancesForRefresh:tV,scheduleRefresh:J9,scheduleRoot:eV,setRefreshHandler:Q9,getCurrentFiber:_V,reconcilerVersion:OR})}var eI=typeof reportError=="function"?reportError:function(n){console.error(n)};function IR(n){this._internalRoot=n}U1.prototype.render=IR.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j1(arguments[1])?u("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"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var o=a.containerInfo;if(o.nodeType!==Bn){var f=LM(a.current);f&&f.parentNode!==o&&u("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.")}}yy(n,a,null,null)},U1.prototype.unmount=IR.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;dM()&&u("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."),Ju(function(){yy(null,n,null,null)}),De(a)}};function TV(n,a){if(!j1(n))throw new Error("createRoot(...): Target container is not a DOM element.");tI(n);var o=!1,f=!1,p="",y=eI;a!=null&&(a.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ka&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var w=PM(n,IS,null,o,f,p,y);ae(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return Wd(T),new IR(w)}function U1(n){this._internalRoot=n}function NV(n){n&&M0(n)}U1.prototype.unstable_scheduleHydration=NV;function RV(n,a,o){if(!j1(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");tI(n),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=o??null,p=o!=null&&o.hydratedSources||null,y=!1,w=!1,T="",O=eI;o!=null&&(o.unstable_strictMode===!0&&(y=!0),o.identifierPrefix!==void 0&&(T=o.identifierPrefix),o.onRecoverableError!==void 0&&(O=o.onRecoverableError));var F=MM(a,null,n,IS,f,y,w,T,O);if(ae(F.current,n),Wd(n),p)for(var H=0;H<p.length;H++){var ee=p[H];Lj(F,ee)}return new U1(F)}function j1(n){return!!(n&&(n.nodeType===yi||n.nodeType===Mo||n.nodeType===wu||!Ie))}function by(n){return!!(n&&(n.nodeType===yi||n.nodeType===Mo||n.nodeType===wu||n.nodeType===Bn&&n.nodeValue===" react-mount-point-unstable "))}function tI(n){n.nodeType===yi&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&u("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."),Ae(n)&&(n._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("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 AV=r.ReactCurrentOwner,nI;nI=function(n){if(n._reactRootContainer&&n.nodeType!==Bn){var a=LM(n._reactRootContainer.current);a&&a.parentNode!==n&&u("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 o=!!n._reactRootContainer,f=LR(n),p=!!(f&&Ke(f));p&&!o&&u("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."),n.nodeType===yi&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&u("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 LR(n){return n?n.nodeType===Mo?n.documentElement:n.firstChild:null}function rI(){}function OV(n,a,o,f,p){if(p){if(typeof f=="function"){var y=f;f=function(){var J=B1(w);y.call(J)}}var w=MM(a,f,n,rf,null,!1,!1,"",rI);n._reactRootContainer=w,ae(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return Wd(T),Ju(),w}else{for(var O;O=n.lastChild;)n.removeChild(O);if(typeof f=="function"){var F=f;f=function(){var J=B1(H);F.call(J)}}var H=PM(n,rf,null,!1,!1,"",rI);n._reactRootContainer=H,ae(H.current,n);var ee=n.nodeType===Bn?n.parentNode:n;return Wd(ee),Ju(function(){yy(a,H,o,f)}),H}}function kV(n,a){n!==null&&typeof n!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function $1(n,a,o,f,p){nI(o),kV(p===void 0?null:p,"render");var y=o._reactRootContainer,w;if(!y)w=OV(o,a,n,p,f);else{if(w=y,typeof p=="function"){var T=p;p=function(){var O=B1(w);T.call(O)}}yy(a,w,n,p)}return B1(w)}function DV(n){{var a=AV.current;if(a!==null&&a.stateNode!==null){var o=a.stateNode._warnedAboutRefsInRender;o||u("%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.",on(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===yi?n:vV(n,"findDOMNode")}function PV(n,a,o){if(u("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"),!by(a))throw new Error("Target container is not a DOM element.");{var f=Ae(a)&&a._reactRootContainer===void 0;f&&u("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 $1(null,n,a,!0,o)}function MV(n,a,o){if(u("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"),!by(a))throw new Error("Target container is not a DOM element.");{var f=Ae(a)&&a._reactRootContainer===void 0;f&&u("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 $1(null,n,a,!1,o)}function IV(n,a,o,f){if(u("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"),!by(o))throw new Error("Target container is not a DOM element.");if(n==null||!to(n))throw new Error("parentComponent must be a valid React Component");return $1(n,a,o,!1,f)}function LV(n){if(!by(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Ae(n)&&n._reactRootContainer===void 0;a&&u("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(n._reactRootContainer){{var o=LR(n),f=o&&!Ke(o);f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ju(function(){$1(null,null,n,!1,function(){n._reactRootContainer=null,De(n)})}),!0}else{{var p=LR(n),y=!!(p&&Ke(p)),w=n.nodeType===yi&&by(n.parentNode)&&!!n.parentNode._reactRootContainer;y&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"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}}YC(gV),qC(yV),A0(bV),KC(ro),XC(R0),(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")&&u("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"),gv(_S),n0(pR,R9,Ju);function FV(n,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!j1(a))throw new Error("Target container is not a DOM element.");return mV(n,a,null,o)}function zV(n,a,o,f){return IV(n,a,o,f)}var FR={usingClientEntryPoint:!1,Events:[Ke,dt,Ot,Zb,Jb,pR]};function BV(n,a){return FR.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TV(n,a)}function UV(n,a,o){return FR.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),RV(n,a,o)}function jV(n){return dM()&&u("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."),Ju(n)}var $V=EV({findFiberByHostInstance:Pe,bundleType:1,version:OR,rendererPackageName:"react-dom"});if(!$V&&Yt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var aI=window.location.protocol;/^(https?|file):$/.test(aI)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(aI==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FR,Vo.createPortal=FV,Vo.createRoot=BV,Vo.findDOMNode=DV,Vo.flushSync=jV,Vo.hydrate=PV,Vo.hydrateRoot=UV,Vo.render=MV,Vo.unmountComponentAtNode=LV,Vo.unstable_batchedUpdates=pR,Vo.unstable_renderSubtreeIntoContainer=zV,Vo.version=OR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=Vo})(xb);var zR=xb.exports;{var V1=zR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;kA.createRoot=function(e,t){V1.usingClientEntryPoint=!0;try{return zR.createRoot(e,t)}finally{V1.usingClientEntryPoint=!1}},kA.hydrateRoot=function(e,t,r){V1.usingClientEntryPoint=!0;try{return zR.hydrateRoot(e,t,r)}finally{V1.usingClientEntryPoint=!1}}}var dc=Boolean(globalThis?.document)?D.exports.useLayoutEffect:D.exports.useEffect,fk={exports:{}},DA={};/**
* @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=D.exports,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=Symbol.iterator,A="@@iterator";function I(q){if(q===null||typeof q!="object")return null;var Be=N&&q[N]||q[A];return typeof Be=="function"?Be:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(q){{for(var Be=arguments.length,qe=new Array(Be>1?Be-1:0),bt=1;bt<Be;bt++)qe[bt-1]=arguments[bt];z("error",q,qe)}}function z(q,Be,qe){{var bt=j.ReactDebugCurrentFrame,nn=bt.getStackAddendum();nn!==""&&(Be+="%s",qe=qe.concat([nn]));var gn=qe.map(function(tt){return String(tt)});gn.unshift("Warning: "+Be),Function.prototype.apply.call(console[q],console,gn)}}var U=!1,V=!1,K=!1,X=!1,de=!1,ve;ve=Symbol.for("react.module.reference");function se(q){return!!(typeof q=="string"||typeof q=="function"||q===i||q===c||de||q===s||q===v||q===b||X||q===_||U||V||K||typeof q=="object"&&q!==null&&(q.$$typeof===C||q.$$typeof===x||q.$$typeof===u||q.$$typeof===h||q.$$typeof===m||q.$$typeof===ve||q.getModuleId!==void 0))}function be(q,Be,qe){var bt=q.displayName;if(bt)return bt;var nn=Be.displayName||Be.name||"";return nn!==""?qe+"("+nn+")":qe}function Xe(q){return q.displayName||"Context"}function ie(q){if(q==null)return null;if(typeof q.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case i:return"Fragment";case r:return"Portal";case c:return"Profiler";case s:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case h:var Be=q;return Xe(Be)+".Consumer";case u:var qe=q;return Xe(qe._context)+".Provider";case m:return be(q,q.render,"ForwardRef");case x:var bt=q.displayName||null;return bt!==null?bt:ie(q.type)||"Memo";case C:{var nn=q,gn=nn._payload,tt=nn._init;try{return ie(tt(gn))}catch{return null}}}return null}var ce=Object.assign,Re=0,Ce,oe,Se,Te,pe,we,Ie;function Le(){}Le.__reactDisabledLog=!0;function Ye(){{if(Re===0){Ce=console.log,oe=console.info,Se=console.warn,Te=console.error,pe=console.group,we=console.groupCollapsed,Ie=console.groupEnd;var q={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}Re++}}function st(){{if(Re--,Re===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},q,{value:Ce}),info:ce({},q,{value:oe}),warn:ce({},q,{value:Se}),error:ce({},q,{value:Te}),group:ce({},q,{value:pe}),groupCollapsed:ce({},q,{value:we}),groupEnd:ce({},q,{value:Ie})})}Re<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var mt=j.ReactCurrentDispatcher,Gt;function Qe(q,Be,qe){{if(Gt===void 0)try{throw Error()}catch(nn){var bt=nn.stack.trim().match(/\n( *(at )?)/);Gt=bt&&bt[1]||""}return`
`+Gt+q}}var vt=!1,Et;{var zt=typeof WeakMap=="function"?WeakMap:Map;Et=new zt}function We(q,Be){if(!q||vt)return"";{var qe=Et.get(q);if(qe!==void 0)return qe}var bt;vt=!0;var nn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gn;gn=mt.current,mt.current=null,Ye();try{if(Be){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(da){bt=da}Reflect.construct(q,[],tt)}else{try{tt.call()}catch(da){bt=da}q.call(tt.prototype)}}else{try{throw Error()}catch(da){bt=da}q()}}catch(da){if(da&&bt&&typeof da.stack=="string"){for(var $t=da.stack.split(`
`),zn=bt.stack.split(`
`),In=$t.length-1,an=zn.length-1;In>=1&&an>=0&&$t[In]!==zn[an];)an--;for(;In>=1&&an>=0;In--,an--)if($t[In]!==zn[an]){if(In!==1||an!==1)do if(In--,an--,an<0||$t[In]!==zn[an]){var Lr=`
`+$t[In].replace(" at new "," at ");return q.displayName&&Lr.includes("<anonymous>")&&(Lr=Lr.replace("<anonymous>",q.displayName)),typeof q=="function"&&Et.set(q,Lr),Lr}while(In>=1&&an>=0);break}}}finally{vt=!1,mt.current=gn,st(),Error.prepareStackTrace=nn}var ci=q?q.displayName||q.name:"",_o=ci?Qe(ci):"";return typeof q=="function"&&Et.set(q,_o),_o}function Yt(q,Be,qe){return We(q,!1)}function ye(q){var Be=q.prototype;return!!(Be&&Be.isReactComponent)}function Mt(q,Be,qe){if(q==null)return"";if(typeof q=="function")return We(q,ye(q));if(typeof q=="string")return Qe(q);switch(q){case v:return Qe("Suspense");case b:return Qe("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case m:return Yt(q.render);case x:return Mt(q.type,Be,qe);case C:{var bt=q,nn=bt._payload,gn=bt._init;try{return Mt(gn(nn),Be,qe)}catch{}}}return""}var Kt=Object.prototype.hasOwnProperty,St={},ar=j.ReactDebugCurrentFrame;function ir(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ar.setExtraStackFrame(qe)}else ar.setExtraStackFrame(null)}function Bt(q,Be,qe,bt,nn){{var gn=Function.call.bind(Kt);for(var tt in q)if(gn(q,tt)){var $t=void 0;try{if(typeof q[tt]!="function"){var zn=Error((bt||"React class")+": "+qe+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zn.name="Invariant Violation",zn}$t=q[tt](Be,tt,bt,qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(In){$t=In}$t&&!($t instanceof Error)&&(ir(nn),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).",bt||"React class",qe,tt,typeof $t),ir(null)),$t instanceof Error&&!($t.message in St)&&(St[$t.message]=!0,ir(nn),M("Failed %s type: %s",qe,$t.message),ir(null))}}}var fn=Array.isArray;function kn(q){return fn(q)}function hn(q){{var Be=typeof Symbol=="function"&&Symbol.toStringTag,qe=Be&&q[Symbol.toStringTag]||q.constructor.name||"Object";return qe}}function Ve(q){try{return Ze(q),!1}catch{return!0}}function Ze(q){return""+q}function Jt(q){if(Ve(q))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(q)),Ze(q)}var Tt=j.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},jt,xn,je;je={};function rt(q){if(Kt.call(q,"ref")){var Be=Object.getOwnPropertyDescriptor(q,"ref").get;if(Be&&Be.isReactWarning)return!1}return q.ref!==void 0}function xt(q){if(Kt.call(q,"key")){var Be=Object.getOwnPropertyDescriptor(q,"key").get;if(Be&&Be.isReactWarning)return!1}return q.key!==void 0}function dn(q,Be){if(typeof q.ref=="string"&&Tt.current&&Be&&Tt.current.stateNode!==Be){var qe=ie(Tt.current.type);je[qe]||(M('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',ie(Tt.current.type),q.ref),je[qe]=!0)}}function Xt(q,Be){{var qe=function(){jt||(jt=!0,M("%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)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"key",{get:qe,configurable:!0})}}function wn(q,Be){{var qe=function(){xn||(xn=!0,M("%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)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"ref",{get:qe,configurable:!0})}}var Dn=function(q,Be,qe,bt,nn,gn,tt){var $t={$$typeof:t,type:q,key:Be,ref:qe,props:tt,_owner:gn};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:bt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:nn}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function Nr(q,Be,qe,bt,nn){{var gn,tt={},$t=null,zn=null;qe!==void 0&&(Jt(qe),$t=""+qe),xt(Be)&&(Jt(Be.key),$t=""+Be.key),rt(Be)&&(zn=Be.ref,dn(Be,nn));for(gn in Be)Kt.call(Be,gn)&&!ke.hasOwnProperty(gn)&&(tt[gn]=Be[gn]);if(q&&q.defaultProps){var In=q.defaultProps;for(gn in In)tt[gn]===void 0&&(tt[gn]=In[gn])}if($t||zn){var an=typeof q=="function"?q.displayName||q.name||"Unknown":q;$t&&Xt(tt,an),zn&&wn(tt,an)}return Dn(q,$t,zn,nn,bt,Tt.current,tt)}}var Tn=j.ReactCurrentOwner,ca=j.ReactDebugCurrentFrame;function Fn(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ca.setExtraStackFrame(qe)}else ca.setExtraStackFrame(null)}var Cn;Cn=!1;function fa(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function gr(){{if(Tn.current){var q=ie(Tn.current.type);if(q)return`
Check the render method of \``+q+"`."}return""}}function xo(q){{if(q!==void 0){var Be=q.fileName.replace(/^.*[\\\/]/,""),qe=q.lineNumber;return`
Check your code at `+Be+":"+qe+"."}return""}}var Qo={};function Jo(q){{var Be=gr();if(!Be){var qe=typeof q=="string"?q:q.displayName||q.name;qe&&(Be=`
Check the top-level render call using <`+qe+">.")}return Be}}function wo(q,Be){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var qe=Jo(Be);if(Qo[qe])return;Qo[qe]=!0;var bt="";q&&q._owner&&q._owner!==Tn.current&&(bt=" It was passed a child from "+ie(q._owner.type)+"."),Fn(q),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',qe,bt),Fn(null)}}function Co(q,Be){{if(typeof q!="object")return;if(kn(q))for(var qe=0;qe<q.length;qe++){var bt=q[qe];fa(bt)&&wo(bt,Be)}else if(fa(q))q._store&&(q._store.validated=!0);else if(q){var nn=I(q);if(typeof nn=="function"&&nn!==q.entries)for(var gn=nn.call(q),tt;!(tt=gn.next()).done;)fa(tt.value)&&wo(tt.value,Be)}}}function cr(q){{var Be=q.type;if(Be==null||typeof Be=="string")return;var qe;if(typeof Be=="function")qe=Be.propTypes;else if(typeof Be=="object"&&(Be.$$typeof===m||Be.$$typeof===x))qe=Be.propTypes;else return;if(qe){var bt=ie(Be);Bt(qe,q.props,"prop",bt,q)}else if(Be.PropTypes!==void 0&&!Cn){Cn=!0;var nn=ie(Be);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",nn||"Unknown")}typeof Be.getDefaultProps=="function"&&!Be.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Oa(q){{for(var Be=Object.keys(q.props),qe=0;qe<Be.length;qe++){var bt=Be[qe];if(bt!=="children"&&bt!=="key"){Fn(q),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",bt),Fn(null);break}}q.ref!==null&&(Fn(q),M("Invalid attribute `ref` supplied to `React.Fragment`."),Fn(null))}}function Di(q,Be,qe,bt,nn,gn){{var tt=se(q);if(!tt){var $t="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&($t+=" 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 zn=xo(nn);zn?$t+=zn:$t+=gr();var In;q===null?In="null":kn(q)?In="array":q!==void 0&&q.$$typeof===t?(In="<"+(ie(q.type)||"Unknown")+" />",$t=" Did you accidentally export a JSX literal instead of a component?"):In=typeof q,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",In,$t)}var an=Nr(q,Be,qe,nn,gn);if(an==null)return an;if(tt){var Lr=Be.children;if(Lr!==void 0)if(bt)if(kn(Lr)){for(var ci=0;ci<Lr.length;ci++)Co(Lr[ci],q);Object.freeze&&Object.freeze(Lr)}else M("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 Co(Lr,q)}return q===i?Oa(an):cr(an),an}}var ka=Di;DA.Fragment=i,DA.jsxDEV=ka})();(function(e){e.exports=DA})(fk);const yo=fk.exports.Fragment,k=fk.exports.jsxDEV;var g3="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",dk=D.exports.createContext({});dk.displayName="ColorModeContext";function kw(){const e=D.exports.useContext(dk);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Im(e,t){const{colorMode:r}=kw();return r==="dark"?t:e}var H1={light:"chakra-ui-light",dark:"chakra-ui-dark"};function YV(e={}){const{preventTransition:t=!0}=e,r={setDataset:i=>{const s=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,s?.()},setClassName(i){document.body.classList.add(i?H1.dark:H1.light),document.body.classList.remove(i?H1.light:H1.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const s=r.query(),c=u=>{i(u.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(c):s.addEventListener("change",c),()=>{typeof s.removeListener=="function"?s.removeListener(c):s.removeEventListener("change",c)}},preventTransition(){const i=document.createElement("style");return i.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(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}var qV="chakra-ui-color-mode";function KV(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var XV=KV(qV),oI=()=>{};function sI(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function y3(e){const{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:c}={},colorModeManager:u=XV}=e,h=s==="dark"?"dark":"light",[m,v]=D.exports.useState(()=>sI(u,h)),[b,x]=D.exports.useState(()=>sI(u)),{getSystemTheme:C,setClassName:_,setDataset:N,addListener:A}=D.exports.useMemo(()=>YV({preventTransition:c}),[c]),I=s==="system"&&!m?b:m,j=D.exports.useCallback(U=>{const V=U==="system"?C():U;v(V),_(V==="dark"),N(V),u.set(V)},[u,C,_,N]);dc(()=>{s==="system"&&x(C())},[]),D.exports.useEffect(()=>{const U=u.get();if(U){j(U);return}if(s==="system"){j("system");return}j(h)},[u,h,s,j]);const M=D.exports.useCallback(()=>{j(I==="dark"?"light":"dark")},[I,j]);D.exports.useEffect(()=>{if(!!i)return A(j)},[i,A,j]);const z=D.exports.useMemo(()=>({colorMode:t??I,toggleColorMode:t?oI:M,setColorMode:t?oI:j}),[I,M,j,t]);return k(dk.Provider,{value:z,children:r},void 0,!1,{fileName:g3,lineNumber:190,columnNumber:26},this)}y3.displayName="ColorModeProvider";var ZV=new Set(["dark","light","system"]);function QV(e){let t=e;return ZV.has(t)||(t="light"),t}function JV(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:i="chakra-ui-color-mode"}=e,s=QV(t),c=r==="cookie",u=`(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="${s}",r="${i}",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){}})();
`,h=`(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="${s}",e="${i}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${c?u:h}`.trim()}function eH(e={}){return k("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:JV(e)}},void 0,!1,{fileName:g3,lineNumber:244,columnNumber:26},this)}var PA={exports:{}};(function(e,t){var r=200,i="__lodash_hash_undefined__",s=800,c=16,u=9007199254740991,h="[object Arguments]",m="[object Array]",v="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",C="[object Error]",_="[object Function]",N="[object GeneratorFunction]",A="[object Map]",I="[object Number]",j="[object Null]",M="[object Object]",z="[object Proxy]",U="[object RegExp]",V="[object Set]",K="[object String]",X="[object Undefined]",de="[object WeakMap]",ve="[object ArrayBuffer]",se="[object DataView]",be="[object Float32Array]",Xe="[object Float64Array]",ie="[object Int8Array]",ce="[object Int16Array]",Re="[object Int32Array]",Ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",Se="[object Uint16Array]",Te="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,Le={};Le[be]=Le[Xe]=Le[ie]=Le[ce]=Le[Re]=Le[Ce]=Le[oe]=Le[Se]=Le[Te]=!0,Le[h]=Le[m]=Le[ve]=Le[b]=Le[se]=Le[x]=Le[C]=Le[_]=Le[A]=Le[I]=Le[M]=Le[U]=Le[V]=Le[K]=Le[de]=!1;var Ye=typeof lc=="object"&&lc&&lc.Object===Object&&lc,st=typeof self=="object"&&self&&self.Object===Object&&self,mt=Ye||st||Function("return this")(),Gt=t&&!t.nodeType&&t,Qe=Gt&&!0&&e&&!e.nodeType&&e,vt=Qe&&Qe.exports===Gt,Et=vt&&Ye.process,zt=function(){try{var W=Qe&&Qe.require&&Qe.require("util").types;return W||Et&&Et.binding&&Et.binding("util")}catch{}}(),We=zt&&zt.isTypedArray;function Yt(W,Q,fe){switch(fe.length){case 0:return W.call(Q);case 1:return W.call(Q,fe[0]);case 2:return W.call(Q,fe[0],fe[1]);case 3:return W.call(Q,fe[0],fe[1],fe[2])}return W.apply(Q,fe)}function ye(W,Q){for(var fe=-1,at=Array(W);++fe<W;)at[fe]=Q(fe);return at}function Mt(W){return function(Q){return W(Q)}}function Kt(W,Q){return W?.[Q]}function St(W,Q){return function(fe){return W(Q(fe))}}var ar=Array.prototype,ir=Function.prototype,Bt=Object.prototype,fn=mt["__core-js_shared__"],kn=ir.toString,hn=Bt.hasOwnProperty,Ve=function(){var W=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),Ze=Bt.toString,Jt=kn.call(Object),Tt=RegExp("^"+kn.call(hn).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=vt?mt.Buffer:void 0,jt=mt.Symbol,xn=mt.Uint8Array,je=ke?ke.allocUnsafe:void 0,rt=St(Object.getPrototypeOf,Object),xt=Object.create,dn=Bt.propertyIsEnumerable,Xt=ar.splice,wn=jt?jt.toStringTag:void 0,Dn=function(){try{var W=Pa(Object,"defineProperty");return W({},"",{}),W}catch{}}(),Nr=ke?ke.isBuffer:void 0,Tn=Math.max,ca=Date.now,Fn=Pa(mt,"Map"),Cn=Pa(Object,"create"),fa=function(){function W(){}return function(Q){if(!ur(Q))return{};if(xt)return xt(Q);W.prototype=Q;var fe=new W;return W.prototype=void 0,fe}}();function gr(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function xo(){this.__data__=Cn?Cn(null):{},this.size=0}function Qo(W){var Q=this.has(W)&&delete this.__data__[W];return this.size-=Q?1:0,Q}function Jo(W){var Q=this.__data__;if(Cn){var fe=Q[W];return fe===i?void 0:fe}return hn.call(Q,W)?Q[W]:void 0}function wo(W){var Q=this.__data__;return Cn?Q[W]!==void 0:hn.call(Q,W)}function Co(W,Q){var fe=this.__data__;return this.size+=this.has(W)?0:1,fe[W]=Cn&&Q===void 0?i:Q,this}gr.prototype.clear=xo,gr.prototype.delete=Qo,gr.prototype.get=Jo,gr.prototype.has=wo,gr.prototype.set=Co;function cr(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function Oa(){this.__data__=[],this.size=0}function Di(W){var Q=this.__data__,fe=fi(Q,W);if(fe<0)return!1;var at=Q.length-1;return fe==at?Q.pop():Xt.call(Q,fe,1),--this.size,!0}function ka(W){var Q=this.__data__,fe=fi(Q,W);return fe<0?void 0:Q[fe][1]}function q(W){return fi(this.__data__,W)>-1}function Be(W,Q){var fe=this.__data__,at=fi(fe,W);return at<0?(++this.size,fe.push([W,Q])):fe[at][1]=Q,this}cr.prototype.clear=Oa,cr.prototype.delete=Di,cr.prototype.get=ka,cr.prototype.has=q,cr.prototype.set=Be;function qe(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function bt(){this.size=0,this.__data__={hash:new gr,map:new(Fn||cr),string:new gr}}function nn(W){var Q=ha(this,W).delete(W);return this.size-=Q?1:0,Q}function gn(W){return ha(this,W).get(W)}function tt(W){return ha(this,W).has(W)}function $t(W,Q){var fe=ha(this,W),at=fe.size;return fe.set(W,Q),this.size+=fe.size==at?0:1,this}qe.prototype.clear=bt,qe.prototype.delete=nn,qe.prototype.get=gn,qe.prototype.has=tt,qe.prototype.set=$t;function zn(W){var Q=this.__data__=new cr(W);this.size=Q.size}function In(){this.__data__=new cr,this.size=0}function an(W){var Q=this.__data__,fe=Q.delete(W);return this.size=Q.size,fe}function Lr(W){return this.__data__.get(W)}function ci(W){return this.__data__.has(W)}function _o(W,Q){var fe=this.__data__;if(fe instanceof cr){var at=fe.__data__;if(!Fn||at.length<r-1)return at.push([W,Q]),this.size=++fe.size,this;fe=this.__data__=new qe(at)}return fe.set(W,Q),this.size=fe.size,this}zn.prototype.clear=In,zn.prototype.delete=an,zn.prototype.get=Lr,zn.prototype.has=ci,zn.prototype.set=_o;function da(W,Q){var fe=ja(W),at=!fe&&Ii(W),sn=!fe&&!at&&er(W),Mn=!fe&&!at&&!sn&&eo(W),Vt=fe||at||sn||Mn,S=Vt?ye(W.length,String):[],R=S.length;for(var $ in W)(Q||hn.call(W,$))&&!(Vt&&($=="length"||sn&&($=="offset"||$=="parent")||Mn&&($=="buffer"||$=="byteLength"||$=="byteOffset")||is($,R)))&&S.push($);return S}function Qi(W,Q,fe){(fe!==void 0&&!yr(W[Q],fe)||fe===void 0&&!(Q in W))&&zs(W,Q,fe)}function yu(W,Q,fe){var at=W[Q];(!(hn.call(W,Q)&&yr(at,fe))||fe===void 0&&!(Q in W))&&zs(W,Q,fe)}function fi(W,Q){for(var fe=W.length;fe--;)if(yr(W[fe][0],Q))return fe;return-1}function zs(W,Q,fe){Q=="__proto__"&&Dn?Dn(W,Q,{configurable:!0,enumerable:!0,value:fe,writable:!0}):W[Q]=fe}var Pi=Da();function Zt(W){return W==null?W===void 0?X:j:wn&&wn in Object(W)?as(W):js(W)}function Mi(W){return ea(W)&&Zt(W)==h}function pa(W){if(!ur(W)||Oo(W))return!1;var Q=Do(W)?Tt:we;return Q.test($s(W))}function Eo(W){return ea(W)&&Vr(W.length)&&!!Le[Zt(W)]}function es(W){if(!ur(W))return pi(W);var Q=Ma(W),fe=[];for(var at in W)at=="constructor"&&(Q||!hn.call(W,at))||fe.push(at);return fe}function To(W,Q,fe,at,sn){W!==Q&&Pi(Q,function(Mn,Vt){if(sn||(sn=new zn),ur(Mn))ts(W,Q,Vt,fe,To,at,sn);else{var S=at?at(hi(W,Vt),Mn,Vt+"",W,Q,sn):void 0;S===void 0&&(S=Mn),Qi(W,Vt,S)}},Vs)}function ts(W,Q,fe,at,sn,Mn,Vt){var S=hi(W,fe),R=hi(Q,fe),$=Vt.get(R);if($){Qi(W,fe,$);return}var G=Mn?Mn(S,R,fe+"",W,Q,Vt):void 0,te=G===void 0;if(te){var Fe=ja(R),xe=!Fe&&er(R),$e=!Fe&&!xe&&eo(R);G=R,Fe||xe||$e?ja(S)?G=S:Cr(S)?G=Us(S):xe?(te=!1,G=Ro(R,!0)):$e?(te=!1,G=Bs(R,!0)):G=[]:bu(R)||Ii(R)?(G=S,Ii(S)?G=mi(S):(!ur(S)||Do(S))&&(G=Ao(R))):te=!1}te&&(Vt.set(R,G),sn(G,R,at,Mn,Vt),Vt.delete(R)),Qi(W,fe,G)}function ns(W,Q){return ko(on(W,Q,Rl),W+"")}var No=Dn?function(W,Q){return Dn(W,"toString",{configurable:!0,enumerable:!1,value:Pn(Q),writable:!0})}:Rl;function Ro(W,Q){if(Q)return W.slice();var fe=W.length,at=je?je(fe):new W.constructor(fe);return W.copy(at),at}function rs(W){var Q=new W.constructor(W.byteLength);return new xn(Q).set(new xn(W)),Q}function Bs(W,Q){var fe=Q?rs(W.buffer):W.buffer;return new W.constructor(fe,W.byteOffset,W.length)}function Us(W,Q){var fe=-1,at=W.length;for(Q||(Q=Array(at));++fe<at;)Q[fe]=W[fe];return Q}function di(W,Q,fe,at){var sn=!fe;fe||(fe={});for(var Mn=-1,Vt=Q.length;++Mn<Vt;){var S=Q[Mn],R=at?at(fe[S],W[S],S,fe,W):void 0;R===void 0&&(R=W[S]),sn?zs(fe,S,R):yu(fe,S,R)}return fe}function Dr(W){return ns(function(Q,fe){var at=-1,sn=fe.length,Mn=sn>1?fe[sn-1]:void 0,Vt=sn>2?fe[2]:void 0;for(Mn=W.length>3&&typeof Mn=="function"?(sn--,Mn):void 0,Vt&&Nl(fe[0],fe[1],Vt)&&(Mn=sn<3?void 0:Mn,sn=1),Q=Object(Q);++at<sn;){var S=fe[at];S&&W(Q,S,at,Mn)}return Q})}function Da(W){return function(Q,fe,at){for(var sn=-1,Mn=Object(Q),Vt=at(Q),S=Vt.length;S--;){var R=Vt[W?S:++sn];if(fe(Mn[R],R,Mn)===!1)break}return Q}}function ha(W,Q){var fe=W.__data__;return ma(Q)?fe[typeof Q=="string"?"string":"hash"]:fe.map}function Pa(W,Q){var fe=Kt(W,Q);return pa(fe)?fe:void 0}function as(W){var Q=hn.call(W,wn),fe=W[wn];try{W[wn]=void 0;var at=!0}catch{}var sn=Ze.call(W);return at&&(Q?W[wn]=fe:delete W[wn]),sn}function Ao(W){return typeof W.constructor=="function"&&!Ma(W)?fa(rt(W)):{}}function is(W,Q){var fe=typeof W;return Q=Q??u,!!Q&&(fe=="number"||fe!="symbol"&&Ie.test(W))&&W>-1&&W%1==0&&W<Q}function Nl(W,Q,fe){if(!ur(fe))return!1;var at=typeof Q;return(at=="number"?Ji(fe)&&is(Q,fe.length):at=="string"&&Q in fe)?yr(fe[Q],W):!1}function ma(W){var Q=typeof W;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?W!=="__proto__":W===null}function Oo(W){return!!Ve&&Ve in W}function Ma(W){var Q=W&&W.constructor,fe=typeof Q=="function"&&Q.prototype||Bt;return W===fe}function pi(W){var Q=[];if(W!=null)for(var fe in Object(W))Q.push(fe);return Q}function js(W){return Ze.call(W)}function on(W,Q,fe){return Q=Tn(Q===void 0?W.length-1:Q,0),function(){for(var at=arguments,sn=-1,Mn=Tn(at.length-Q,0),Vt=Array(Mn);++sn<Mn;)Vt[sn]=at[Q+sn];sn=-1;for(var S=Array(Q+1);++sn<Q;)S[sn]=at[sn];return S[Q]=fe(Vt),Yt(W,this,S)}}function hi(W,Q){if(!(Q==="constructor"&&typeof W[Q]=="function")&&Q!="__proto__")return W[Q]}var ko=It(No);function It(W){var Q=0,fe=0;return function(){var at=ca(),sn=c-(at-fe);if(fe=at,sn>0){if(++Q>=s)return arguments[0]}else Q=0;return W.apply(void 0,arguments)}}function $s(W){if(W!=null){try{return kn.call(W)}catch{}try{return W+""}catch{}}return""}function yr(W,Q){return W===Q||W!==W&&Q!==Q}var Ii=Mi(function(){return arguments}())?Mi:function(W){return ea(W)&&hn.call(W,"callee")&&!dn.call(W,"callee")},ja=Array.isArray;function Ji(W){return W!=null&&Vr(W.length)&&!Do(W)}function Cr(W){return ea(W)&&Ji(W)}var er=Nr||Ia;function Do(W){if(!ur(W))return!1;var Q=Zt(W);return Q==_||Q==N||Q==v||Q==z}function Vr(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=u}function ur(W){var Q=typeof W;return W!=null&&(Q=="object"||Q=="function")}function ea(W){return W!=null&&typeof W=="object"}function bu(W){if(!ea(W)||Zt(W)!=M)return!1;var Q=rt(W);if(Q===null)return!0;var fe=hn.call(Q,"constructor")&&Q.constructor;return typeof fe=="function"&&fe instanceof fe&&kn.call(fe)==Jt}var eo=We?Mt(We):Eo;function mi(W){return di(W,Vs(W))}function Vs(W){return Ji(W)?da(W,!0):es(W)}var pn=Dr(function(W,Q,fe,at){To(W,Q,fe,at)});function Pn(W){return function(){return W}}function Rl(W){return W}function Ia(){return!1}e.exports=pn})(PA,PA.exports);const jf=PA.exports;function ou(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Om(e,...t){return tH(e)?e(...t):e}var tH=e=>typeof e=="function",nH=e=>/!(important)?$/.test(e),lI=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,MA=(e,t)=>r=>{const i=String(t),s=nH(i),c=lI(i),u=e?`${e}.${c}`:c;let h=ou(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return h=lI(h),s?`${h} !important`:h};function Zy(e){const{scale:t,transform:r,compose:i}=e;return(c,u)=>{const h=MA(t,c)(u);let m=r?.(h,u)??h;return i&&(m=i(m,u)),m}}var W1=(...e)=>t=>e.reduce((r,i)=>i(r),t);function ml(e,t){return r=>{const i={property:r,scale:e};return i.transform=Zy({scale:e,transform:t}),i}}var rH=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function aH(e){const{property:t,scale:r,transform:i}=e;return{scale:r,property:rH(t),transform:r?Zy({scale:r,compose:i}):i}}var b3=["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 iH(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...b3].join(" ")}function oH(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...b3].join(" ")}var sH={"--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(" ")},lH={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 uH(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 cH={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},S3="& > :not(style) ~ :not(style)",fH={[S3]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},dH={[S3]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},IA={"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"},pH=new Set(Object.values(IA)),x3=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),hH=e=>e.trim();function mH(e,t){var r;if(e==null||x3.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:s,values:c}=((r=i.exec(e))==null?void 0:r.groups)??{};if(!s||!c)return e;const u=s.includes("-gradient")?s:`${s}-gradient`,[h,...m]=c.split(",").map(hH).filter(Boolean);if(m?.length===0)return e;const v=h in IA?IA[h]:h;m.unshift(v);const b=m.map(x=>{if(pH.has(x))return x;const C=x.indexOf(" "),[_,N]=C!==-1?[x.substr(0,C),x.substr(C+1)]:[x],A=w3(N)?N:N&&N.split(" "),I=`colors.${_}`,j=I in t.__cssMap?t.__cssMap[I].varRef:_;return A?[j,...Array.isArray(A)?A:[A]].join(" "):j});return`${u}(${b.join(", ")})`}var w3=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),vH=(e,t)=>mH(e,t??{});function gH(e){return/^var\(--.+\)$/.test(e)}var yH=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Zl=e=>t=>`${e}(${t})`,Wn={filter(e){return e!=="auto"?e:sH},backdropFilter(e){return e!=="auto"?e:lH},ring(e){return uH(Wn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?iH():e==="auto-gpu"?oH():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=yH(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(gH(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:vH,blur:Zl("blur"),opacity:Zl("opacity"),brightness:Zl("brightness"),contrast:Zl("contrast"),dropShadow:Zl("drop-shadow"),grayscale:Zl("grayscale"),hueRotate:Zl("hue-rotate"),invert:Zl("invert"),saturate:Zl("saturate"),sepia:Zl("sepia"),bgImage(e){return e==null||w3(e)||x3.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:r}=cH[e]??{},i={flexDirection:e};return t&&(i[t]=1),r&&(i[r]=1),i}},ne={borderWidths:ml("borderWidths"),borderStyles:ml("borderStyles"),colors:ml("colors"),borders:ml("borders"),radii:ml("radii",Wn.px),space:ml("space",W1(Wn.vh,Wn.px)),spaceT:ml("space",W1(Wn.vh,Wn.px)),degreeT(e){return{property:e,transform:Wn.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Zy({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:ml("sizes",W1(Wn.vh,Wn.px)),sizesT:ml("sizes",W1(Wn.vh,Wn.fraction)),shadows:ml("shadows"),logical:aH,blur:ml("blur",Wn.blur)},xx={background:ne.colors("background"),backgroundColor:ne.colors("backgroundColor"),backgroundImage:ne.propT("backgroundImage",Wn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Wn.bgClip},bgSize:ne.prop("backgroundSize"),bgPosition:ne.prop("backgroundPosition"),bg:ne.colors("background"),bgColor:ne.colors("backgroundColor"),bgPos:ne.prop("backgroundPosition"),bgRepeat:ne.prop("backgroundRepeat"),bgAttachment:ne.prop("backgroundAttachment"),bgGradient:ne.propT("backgroundImage",Wn.gradient),bgClip:{transform:Wn.bgClip}};Object.assign(xx,{bgImage:xx.backgroundImage,bgImg:xx.backgroundImage});var Zn={border:ne.borders("border"),borderWidth:ne.borderWidths("borderWidth"),borderStyle:ne.borderStyles("borderStyle"),borderColor:ne.colors("borderColor"),borderRadius:ne.radii("borderRadius"),borderTop:ne.borders("borderTop"),borderBlockStart:ne.borders("borderBlockStart"),borderTopLeftRadius:ne.radii("borderTopLeftRadius"),borderStartStartRadius:ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ne.radii("borderTopRightRadius"),borderStartEndRadius:ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ne.borders("borderRight"),borderInlineEnd:ne.borders("borderInlineEnd"),borderBottom:ne.borders("borderBottom"),borderBlockEnd:ne.borders("borderBlockEnd"),borderBottomLeftRadius:ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:ne.radii("borderBottomRightRadius"),borderLeft:ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ne.borders(["borderLeft","borderRight"]),borderInline:ne.borders("borderInline"),borderY:ne.borders(["borderTop","borderBottom"]),borderBlock:ne.borders("borderBlock"),borderTopWidth:ne.borderWidths("borderTopWidth"),borderBlockStartWidth:ne.borderWidths("borderBlockStartWidth"),borderTopColor:ne.colors("borderTopColor"),borderBlockStartColor:ne.colors("borderBlockStartColor"),borderTopStyle:ne.borderStyles("borderTopStyle"),borderBlockStartStyle:ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:ne.borderWidths("borderBlockEndWidth"),borderBottomColor:ne.colors("borderBottomColor"),borderBlockEndColor:ne.colors("borderBlockEndColor"),borderBottomStyle:ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:ne.borderWidths("borderInlineStartWidth"),borderLeftColor:ne.colors("borderLeftColor"),borderInlineStartColor:ne.colors("borderInlineStartColor"),borderLeftStyle:ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:ne.borderStyles("borderInlineStartStyle"),borderRightWidth:ne.borderWidths("borderRightWidth"),borderInlineEndWidth:ne.borderWidths("borderInlineEndWidth"),borderRightColor:ne.colors("borderRightColor"),borderInlineEndColor:ne.colors("borderInlineEndColor"),borderRightStyle:ne.borderStyles("borderRightStyle"),borderInlineEndStyle:ne.borderStyles("borderInlineEndStyle"),borderTopRadius:ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Zn,{rounded:Zn.borderRadius,roundedTop:Zn.borderTopRadius,roundedTopLeft:Zn.borderTopLeftRadius,roundedTopRight:Zn.borderTopRightRadius,roundedTopStart:Zn.borderStartStartRadius,roundedTopEnd:Zn.borderStartEndRadius,roundedBottom:Zn.borderBottomRadius,roundedBottomLeft:Zn.borderBottomLeftRadius,roundedBottomRight:Zn.borderBottomRightRadius,roundedBottomStart:Zn.borderEndStartRadius,roundedBottomEnd:Zn.borderEndEndRadius,roundedLeft:Zn.borderLeftRadius,roundedRight:Zn.borderRightRadius,roundedStart:Zn.borderInlineStartRadius,roundedEnd:Zn.borderInlineEndRadius,borderStart:Zn.borderInlineStart,borderEnd:Zn.borderInlineEnd,borderTopStartRadius:Zn.borderStartStartRadius,borderTopEndRadius:Zn.borderStartEndRadius,borderBottomStartRadius:Zn.borderEndStartRadius,borderBottomEndRadius:Zn.borderEndEndRadius,borderStartRadius:Zn.borderInlineStartRadius,borderEndRadius:Zn.borderInlineEndRadius,borderStartWidth:Zn.borderInlineStartWidth,borderEndWidth:Zn.borderInlineEndWidth,borderStartColor:Zn.borderInlineStartColor,borderEndColor:Zn.borderInlineEndColor,borderStartStyle:Zn.borderInlineStartStyle,borderEndStyle:Zn.borderInlineEndStyle});var bH={color:ne.colors("color"),textColor:ne.colors("color"),fill:ne.colors("fill"),stroke:ne.colors("stroke")},LA={boxShadow:ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(LA,{shadow:LA.boxShadow});var SH={filter:{transform:Wn.filter},blur:ne.blur("--chakra-blur"),brightness:ne.propT("--chakra-brightness",Wn.brightness),contrast:ne.propT("--chakra-contrast",Wn.contrast),hueRotate:ne.degreeT("--chakra-hue-rotate"),invert:ne.propT("--chakra-invert",Wn.invert),saturate:ne.propT("--chakra-saturate",Wn.saturate),dropShadow:ne.propT("--chakra-drop-shadow",Wn.dropShadow),backdropFilter:{transform:Wn.backdropFilter},backdropBlur:ne.blur("--chakra-backdrop-blur"),backdropBrightness:ne.propT("--chakra-backdrop-brightness",Wn.brightness),backdropContrast:ne.propT("--chakra-backdrop-contrast",Wn.contrast),backdropHueRotate:ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ne.propT("--chakra-backdrop-invert",Wn.invert),backdropSaturate:ne.propT("--chakra-backdrop-saturate",Wn.saturate)},Vx={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Wn.flexDirection},experimental_spaceX:{static:fH,transform:Zy({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:dH,transform:Zy({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ne.space("gap"),rowGap:ne.space("rowGap"),columnGap:ne.space("columnGap")};Object.assign(Vx,{flexDir:Vx.flexDirection});var C3={gridGap:ne.space("gridGap"),gridColumnGap:ne.space("gridColumnGap"),gridRowGap:ne.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},xH={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Wn.outline},outlineOffset:!0,outlineColor:ne.colors("outlineColor")},ks={width:ne.sizesT("width"),inlineSize:ne.sizesT("inlineSize"),height:ne.sizes("height"),blockSize:ne.sizes("blockSize"),boxSize:ne.sizes(["width","height"]),minWidth:ne.sizes("minWidth"),minInlineSize:ne.sizes("minInlineSize"),minHeight:ne.sizes("minHeight"),minBlockSize:ne.sizes("minBlockSize"),maxWidth:ne.sizes("maxWidth"),maxInlineSize:ne.sizes("maxInlineSize"),maxHeight:ne.sizes("maxHeight"),maxBlockSize:ne.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ne.propT("float",Wn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ks,{w:ks.width,h:ks.height,minW:ks.minWidth,maxW:ks.maxWidth,minH:ks.minHeight,maxH:ks.maxHeight,overscroll:ks.overscrollBehavior,overscrollX:ks.overscrollBehaviorX,overscrollY:ks.overscrollBehaviorY});var wH={listStyleType:!0,listStylePosition:!0,listStylePos:ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ne.prop("listStyleImage")};function CH(e,t,r,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?r:e}var _H=e=>{const t=new WeakMap;return(i,s,c,u)=>{if(typeof i>"u")return e(i,s,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(s))return h.get(s);const m=e(i,s,c,u);return h.set(s,m),m}},EH=_H(CH),TH={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},NH={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},BR=(e,t,r)=>{const i={},s=EH(e,t,{});for(const c in s)c in r&&r[c]!=null||(i[c]=s[c]);return i},RH={srOnly:{transform(e){return e===!0?TH:e==="focusable"?NH:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>BR(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>BR(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>BR(t,e,r)}},Ly={position:!0,pos:ne.prop("position"),zIndex:ne.prop("zIndex","zIndices"),inset:ne.spaceT("inset"),insetX:ne.spaceT(["left","right"]),insetInline:ne.spaceT("insetInline"),insetY:ne.spaceT(["top","bottom"]),insetBlock:ne.spaceT("insetBlock"),top:ne.spaceT("top"),insetBlockStart:ne.spaceT("insetBlockStart"),bottom:ne.spaceT("bottom"),insetBlockEnd:ne.spaceT("insetBlockEnd"),left:ne.spaceT("left"),insetInlineStart:ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ne.spaceT("right"),insetInlineEnd:ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ly,{insetStart:Ly.insetInlineStart,insetEnd:Ly.insetInlineEnd});var AH={ring:{transform:Wn.ring},ringColor:ne.colors("--chakra-ring-color"),ringOffset:ne.prop("--chakra-ring-offset-width"),ringOffsetColor:ne.colors("--chakra-ring-offset-color"),ringInset:ne.prop("--chakra-ring-inset")},Tr={margin:ne.spaceT("margin"),marginTop:ne.spaceT("marginTop"),marginBlockStart:ne.spaceT("marginBlockStart"),marginRight:ne.spaceT("marginRight"),marginInlineEnd:ne.spaceT("marginInlineEnd"),marginBottom:ne.spaceT("marginBottom"),marginBlockEnd:ne.spaceT("marginBlockEnd"),marginLeft:ne.spaceT("marginLeft"),marginInlineStart:ne.spaceT("marginInlineStart"),marginX:ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ne.spaceT("marginInline"),marginY:ne.spaceT(["marginTop","marginBottom"]),marginBlock:ne.spaceT("marginBlock"),padding:ne.space("padding"),paddingTop:ne.space("paddingTop"),paddingBlockStart:ne.space("paddingBlockStart"),paddingRight:ne.space("paddingRight"),paddingBottom:ne.space("paddingBottom"),paddingBlockEnd:ne.space("paddingBlockEnd"),paddingLeft:ne.space("paddingLeft"),paddingInlineStart:ne.space("paddingInlineStart"),paddingInlineEnd:ne.space("paddingInlineEnd"),paddingX:ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ne.space("paddingInline"),paddingY:ne.space(["paddingTop","paddingBottom"]),paddingBlock:ne.space("paddingBlock")};Object.assign(Tr,{m:Tr.margin,mt:Tr.marginTop,mr:Tr.marginRight,me:Tr.marginInlineEnd,marginEnd:Tr.marginInlineEnd,mb:Tr.marginBottom,ml:Tr.marginLeft,ms:Tr.marginInlineStart,marginStart:Tr.marginInlineStart,mx:Tr.marginX,my:Tr.marginY,p:Tr.padding,pt:Tr.paddingTop,py:Tr.paddingY,px:Tr.paddingX,pb:Tr.paddingBottom,pl:Tr.paddingLeft,ps:Tr.paddingInlineStart,paddingStart:Tr.paddingInlineStart,pr:Tr.paddingRight,pe:Tr.paddingInlineEnd,paddingEnd:Tr.paddingInlineEnd});var OH={textDecorationColor:ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ne.shadows("textShadow")},kH={clipPath:!0,transform:ne.propT("transform",Wn.transform),transformOrigin:!0,translateX:ne.spaceT("--chakra-translate-x"),translateY:ne.spaceT("--chakra-translate-y"),skewX:ne.degreeT("--chakra-skew-x"),skewY:ne.degreeT("--chakra-skew-y"),scaleX:ne.prop("--chakra-scale-x"),scaleY:ne.prop("--chakra-scale-y"),scale:ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ne.degreeT("--chakra-rotate")},DH={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ne.prop("transitionDuration","transition.duration"),transitionProperty:ne.prop("transitionProperty","transition.property"),transitionTimingFunction:ne.prop("transitionTimingFunction","transition.easing")},PH={fontFamily:ne.prop("fontFamily","fonts"),fontSize:ne.prop("fontSize","fontSizes",Wn.px),fontWeight:ne.prop("fontWeight","fontWeights"),lineHeight:ne.prop("lineHeight","lineHeights"),letterSpacing:ne.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"}},MH={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ne.spaceT("scrollMargin"),scrollMarginTop:ne.spaceT("scrollMarginTop"),scrollMarginBottom:ne.spaceT("scrollMarginBottom"),scrollMarginLeft:ne.spaceT("scrollMarginLeft"),scrollMarginRight:ne.spaceT("scrollMarginRight"),scrollMarginX:ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ne.spaceT("scrollPadding"),scrollPaddingTop:ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:ne.spaceT("scrollPaddingRight"),scrollPaddingX:ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function _3(e){return ou(e)&&e.reference?e.reference:String(e)}var Dw=(e,...t)=>t.map(_3).join(` ${e} `).replace(/calc/g,""),uI=(...e)=>`calc(${Dw("+",...e)})`,cI=(...e)=>`calc(${Dw("-",...e)})`,FA=(...e)=>`calc(${Dw("*",...e)})`,fI=(...e)=>`calc(${Dw("/",...e)})`,dI=e=>{const t=_3(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:FA(t,-1)},Rp=Object.assign(e=>({add:(...t)=>Rp(uI(e,...t)),subtract:(...t)=>Rp(cI(e,...t)),multiply:(...t)=>Rp(FA(e,...t)),divide:(...t)=>Rp(fI(e,...t)),negate:()=>Rp(dI(e)),toString:()=>e.toString()}),{add:uI,subtract:cI,multiply:FA,divide:fI,negate:dI});function IH(e,t="-"){return e.replace(/\s+/g,t)}function LH(e){const t=IH(e.toString());return zH(FH(t))}function FH(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function zH(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function BH(e,t=""){return[t,e].filter(Boolean).join("-")}function UH(e,t){return`var(${e}${t?`, ${t}`:""})`}function jH(e,t=""){return LH(`--${BH(e,t)}`)}function Kf(e,t,r){const i=jH(e,r);return{variable:i,reference:UH(i,t)}}function $H(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function VH(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function HH(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function zA(e){if(e==null)return e;const{unitless:t}=HH(e);return t||typeof e=="number"?`${e}px`:e}var E3=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,pk=e=>Object.fromEntries(Object.entries(e).sort(E3));function pI(e){const t=pk(e);return Object.assign(Object.values(t),t)}function WH(e){const t=Object.keys(pk(e));return new Set(t)}function hI(e){if(!e)return e;e=zA(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function ky(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${zA(e)})`),t&&r.push("and",`(max-width: ${zA(t)})`),r.join(" ")}function GH(e){if(!e)return null;e.base=e.base??"0px";const t=pI(e),r=Object.entries(e).sort(E3).map(([c,u],h,m)=>{let[,v]=m[h+1]??[];return v=parseFloat(v)>0?hI(v):void 0,{_minW:hI(u),breakpoint:c,minW:u,maxW:v,maxWQuery:ky(null,v),minWQuery:ky(u),minMaxQuery:ky(u,v)}}),i=WH(e),s=Array.from(i.values());return{keys:i,normalized:t,isResponsive(c){const u=Object.keys(c);return u.length>0&&u.every(h=>i.has(h))},asObject:pk(e),asArray:pI(e),details:r,media:[null,...t.map(c=>ky(c)).slice(1)],toArrayValue(c){if(!$H(c))throw new Error("toArrayValue: value must be an object");const u=s.map(h=>c[h]??null);for(;VH(u)===null;)u.pop();return u},toObjectValue(c){if(!Array.isArray(c))throw new Error("toObjectValue: value must be an array");return c.reduce((u,h,m)=>{const v=s[m];return v!=null&&h!=null&&(u[v]=h),u},{})}}}var ai={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}`},yf=e=>T3(t=>e(t,"&"),"[role=group]","[data-group]",".group"),nc=e=>T3(t=>e(t,"~ &"),"[data-peer]",".peer"),T3=(e,...t)=>t.map(e).join(", "),Pw={_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:yf(ai.hover),_peerHover:nc(ai.hover),_groupFocus:yf(ai.focus),_peerFocus:nc(ai.focus),_groupFocusVisible:yf(ai.focusVisible),_peerFocusVisible:nc(ai.focusVisible),_groupActive:yf(ai.active),_peerActive:nc(ai.active),_groupDisabled:yf(ai.disabled),_peerDisabled:nc(ai.disabled),_groupInvalid:yf(ai.invalid),_peerInvalid:nc(ai.invalid),_groupChecked:yf(ai.checked),_peerChecked:nc(ai.checked),_groupFocusWithin:yf(ai.focusWithin),_peerFocusWithin:nc(ai.focusWithin),_peerPlaceholderShown:nc(ai.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]"},YH=Object.keys(Pw);function mI(e,t){return Kf(String(e).replace(/\./g,"-"),void 0,t)}function qH(e,t){let r={};const i={};for(const[s,c]of Object.entries(e)){const{isSemantic:u,value:h}=c,{variable:m,reference:v}=mI(s,t?.cssVarPrefix);if(!u){if(s.startsWith("space")){const C=s.split("."),[_,...N]=C,A=`${_}.-${N.join(".")}`,I=Rp.negate(h),j=Rp.negate(v);i[A]={value:I,var:m,varRef:j}}r[m]=h,i[s]={value:h,var:m,varRef:v};continue}const b=C=>{const N=[String(s).split(".")[0],C].join(".");if(!e[N])return C;const{reference:I}=mI(N,t?.cssVarPrefix);return I},x=ou(h)?h:{default:h};r=jf(r,Object.entries(x).reduce((C,[_,N])=>{var A;const I=b(N);if(_==="default")return C[m]=I,C;const j=((A=Pw)==null?void 0:A[_])??_;return C[j]={[m]:I},C},{})),i[s]={value:v,var:m,varRef:v}}return{cssVars:r,cssMap:i}}function KH(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function XH(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var ZH=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function QH(e){return XH(e,ZH)}function JH(e){return e.semanticTokens}function e8(e){const{__cssMap:t,__cssVars:r,__breakpoints:i,...s}=e;return s}function t8({tokens:e,semanticTokens:t}){const r=Object.entries(BA(e)??{}).map(([s,c])=>[s,{isSemantic:!1,value:c}]),i=Object.entries(BA(t,1)??{}).map(([s,c])=>[s,{isSemantic:!0,value:c}]);return Object.fromEntries([...r,...i])}function BA(e,t=1/0){return!ou(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((r,[i,s])=>(ou(s)||Array.isArray(s)?Object.entries(BA(s,t-1)).forEach(([c,u])=>{r[`${i}.${c}`]=u}):r[i]=s,r),{})}function n8(e){var t;const r=e8(e),i=QH(r),s=JH(r),c=t8({tokens:i,semanticTokens:s}),u=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:h,cssVars:m}=qH(c,{cssVarPrefix:u});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...m},__cssMap:h,__breakpoints:GH(r.breakpoints)}),r}var hk=jf({},xx,Zn,bH,Vx,ks,SH,AH,xH,C3,RH,Ly,LA,Tr,MH,PH,OH,kH,wH,DH),r8=Object.assign({},Tr,ks,Vx,C3,Ly),a8=Object.keys(r8),i8=[...Object.keys(hk),...YH],o8={...hk,...Pw},s8=e=>e in o8;function l8(e){return/^var\(--.+\)$/.test(e)}var u8=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!l8(t),c8=(e,t)=>{if(t==null)return t;const r=h=>{var m,v;return(v=(m=e.__cssMap)==null?void 0:m[h])==null?void 0:v.varRef},i=h=>r(h)??h,s=t.split(",").map(h=>h.trim()),[c,u]=s;return t=r(c)??i(u)??i(t),t};function f8(e){const{configs:t={},pseudos:r={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:s,toArrayValue:c,media:u}=i.__breakpoints,h=(m,v=!1)=>{var b;const x=Om(m,i);let C={};for(let _ in x){let N=Om(x[_],i);if(N==null)continue;if(Array.isArray(N)||ou(N)&&s(N)){let M=Array.isArray(N)?N:c(N);M=M.slice(0,u.length);for(let z=0;z<M.length;z++){const U=u[z],V=M[z];U?V==null?C[U]??(C[U]={}):C[U]=Object.assign({},C[U],h({[_]:V},!0)):C=Object.assign({},C,h({...x,[_]:V},!1))}continue}if(_ in r&&(_=r[_]),u8(_,N)&&(N=c8(i,N)),ou(N)){C[_]=Object.assign({},C[_],h(N,!0));continue}let A=t[_];if(A===!0&&(A={property:_}),!v&&A?.static){const M=Om(A.static,i);C=Object.assign({},C,M)}let I=((b=A?.transform)==null?void 0:b.call(A,N,i,x))??N;if(I=A?.processResult?h(I,!0):I,ou(I)){C=Object.assign({},C,I);continue}const j=Om(A?.property,i);if(j){if(Array.isArray(j)){for(const M of j)C[M]=I;continue}j==="&"&&ou(I)?C=Object.assign({},C,I):C[j]=I;continue}C[_]=I}return C};return h}var N3=e=>t=>f8({theme:t,pseudos:Pw,configs:hk})(e);function kr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function d8(e,t){if(Array.isArray(e))return e;if(ou(e))return t(e);if(e!=null)return[e]}function p8(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function h8(e){const t=e.__breakpoints;return function(i,s,c,u){var h,m;if(!t)return;const v={},b=d8(c,t.toArrayValue);if(!b)return v;const x=b.length,C=x===1,_=!!i.parts;for(let N=0;N<x;N++){const A=t.details[N],I=t.details[p8(b,N)],j=ky(A.minW,I?._minW),M=Om((h=i[s])==null?void 0:h[b[N]],u);if(!!M){if(_){(m=i.parts)==null||m.forEach(z=>{jf(v,{[z]:C?M[z]:{[j]:M[z]}})});continue}if(!_){C?jf(v,M):v[j]=M;continue}v[j]=M}}return v}}function m8(e){return t=>{const{variant:r,size:i,theme:s}=t,c=h8(s);return jf({},Om(e.baseStyle??{},t),c(e,"sizes",i,t),c(e,"variants",r,t))}}function v8(e,t,r){var i,s;return((s=(i=e.__cssMap)==null?void 0:i[`${t}.${r}`])==null?void 0:s.varRef)??r}function vr(e){return KH(e,["styleConfig","size","variant","colorScheme"])}function g8(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 y8(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 b8=function(){function e(r){var i=this;this._insertTag=function(s){var c;i.tags.length===0?i.insertionPoint?c=i.insertionPoint.nextSibling:i.prepend?c=i.container.firstChild:c=i.before:c=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,c),i.tags.push(s)},this.isSpeedy=r.speedy===void 0?!1:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y8(this));var s=this.tags[this.tags.length-1];{var c=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;c&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
`+i+"\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||!c}if(this.isSpeedy){var u=g8(s);try{u.insertRule(i,u.cssRules.length)}catch(h){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(i)||console.error('There was a problem inserting the following rule: "'+i+'"',h)}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){return i.parentNode&&i.parentNode.removeChild(i)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Oi="-ms-",Hx="-moz-",Qn="-webkit-",mk="comm",vk="rule",gk="decl",S8="@import",R3="@keyframes",x8=Math.abs,Mw=String.fromCharCode,w8=Object.assign;function C8(e,t){return(((t<<2^ho(e,0))<<2^ho(e,1))<<2^ho(e,2))<<2^ho(e,3)}function A3(e){return e.trim()}function _8(e,t){return(e=t.exec(e))?e[0]:e}function rr(e,t,r){return e.replace(t,r)}function UA(e,t){return e.indexOf(t)}function ho(e,t){return e.charCodeAt(t)|0}function Qy(e,t,r){return e.slice(t,r)}function nu(e){return e.length}function yk(e){return e.length}function G1(e,t){return t.push(e),e}function E8(e,t){return e.map(t).join("")}var Iw=1,Wm=1,O3=0,bo=0,la=0,tv="";function Lw(e,t,r,i,s,c,u){return{value:e,root:t,parent:r,type:i,props:s,children:c,line:Iw,column:Wm,length:u,return:""}}function xy(e,t){return w8(Lw("",null,null,"",null,null,0),e,{length:-e.length},t)}function T8(){return la}function N8(){return la=bo>0?ho(tv,--bo):0,Wm--,la===10&&(Wm=1,Iw--),la}function Wo(){return la=bo<O3?ho(tv,bo++):0,Wm++,la===10&&(Wm=1,Iw++),la}function su(){return ho(tv,bo)}function wx(){return bo}function wb(e,t){return Qy(tv,e,t)}function Jy(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 k3(e){return Iw=Wm=1,O3=nu(tv=e),bo=0,[]}function D3(e){return tv="",e}function Cx(e){return A3(wb(bo-1,jA(e===91?e+2:e===40?e+1:e)))}function R8(e){for(;(la=su())&&la<33;)Wo();return Jy(e)>2||Jy(la)>3?"":" "}function A8(e,t){for(;--t&&Wo()&&!(la<48||la>102||la>57&&la<65||la>70&&la<97););return wb(e,wx()+(t<6&&su()==32&&Wo()==32))}function jA(e){for(;Wo();)switch(la){case e:return bo;case 34:case 39:e!==34&&e!==39&&jA(la);break;case 40:e===41&&jA(e);break;case 92:Wo();break}return bo}function O8(e,t){for(;Wo()&&e+la!==47+10;)if(e+la===42+42&&su()===47)break;return"/*"+wb(t,bo-1)+"*"+Mw(e===47?e:Wo())}function k8(e){for(;!Jy(su());)Wo();return wb(e,bo)}function D8(e){return D3(_x("",null,null,null,[""],e=k3(e),0,[0],e))}function _x(e,t,r,i,s,c,u,h,m){for(var v=0,b=0,x=u,C=0,_=0,N=0,A=1,I=1,j=1,M=0,z="",U=s,V=c,K=i,X=z;I;)switch(N=M,M=Wo()){case 40:if(N!=108&&X.charCodeAt(x-1)==58){UA(X+=rr(Cx(M),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:X+=Cx(M);break;case 9:case 10:case 13:case 32:X+=R8(N);break;case 92:X+=A8(wx()-1,7);continue;case 47:switch(su()){case 42:case 47:G1(P8(O8(Wo(),wx()),t,r),m);break;default:X+="/"}break;case 123*A:h[v++]=nu(X)*j;case 125*A:case 59:case 0:switch(M){case 0:case 125:I=0;case 59+b:_>0&&nu(X)-x&&G1(_>32?gI(X+";",i,r,x-1):gI(rr(X," ","")+";",i,r,x-2),m);break;case 59:X+=";";default:if(G1(K=vI(X,t,r,v,b,s,h,z,U=[],V=[],x),c),M===123)if(b===0)_x(X,t,K,K,U,c,x,h,V);else switch(C){case 100:case 109:case 115:_x(e,K,K,i&&G1(vI(e,K,K,0,0,s,h,z,s,U=[],x),V),s,V,x,h,i?U:V);break;default:_x(X,K,K,K,[""],V,0,h,V)}}v=b=_=0,A=j=1,z=X="",x=u;break;case 58:x=1+nu(X),_=N;default:if(A<1){if(M==123)--A;else if(M==125&&A++==0&&N8()==125)continue}switch(X+=Mw(M),M*A){case 38:j=b>0?1:(X+="\f",-1);break;case 44:h[v++]=(nu(X)-1)*j,j=1;break;case 64:su()===45&&(X+=Cx(Wo())),C=su(),b=x=nu(z=X+=k8(wx())),M++;break;case 45:N===45&&nu(X)==2&&(A=0)}}return c}function vI(e,t,r,i,s,c,u,h,m,v,b){for(var x=s-1,C=s===0?c:[""],_=yk(C),N=0,A=0,I=0;N<i;++N)for(var j=0,M=Qy(e,x+1,x=x8(A=u[N])),z=e;j<_;++j)(z=A3(A>0?C[j]+" "+M:rr(M,/&\f/g,C[j])))&&(m[I++]=z);return Lw(e,t,r,s===0?vk:h,m,v,b)}function P8(e,t,r){return Lw(e,t,r,mk,Mw(T8()),Qy(e,2,-2),0)}function gI(e,t,r,i){return Lw(e,t,r,gk,Qy(e,0,i),Qy(e,i+1,-1),i)}function P3(e,t){switch(C8(e,t)){case 5103:return Qn+"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 Qn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qn+e+Hx+e+Oi+e+e;case 6828:case 4268:return Qn+e+Oi+e+e;case 6165:return Qn+e+Oi+"flex-"+e+e;case 5187:return Qn+e+rr(e,/(\w+).+(:[^]+)/,Qn+"box-$1$2"+Oi+"flex-$1$2")+e;case 5443:return Qn+e+Oi+"flex-item-"+rr(e,/flex-|-self/,"")+e;case 4675:return Qn+e+Oi+"flex-line-pack"+rr(e,/align-content|flex-|-self/,"")+e;case 5548:return Qn+e+Oi+rr(e,"shrink","negative")+e;case 5292:return Qn+e+Oi+rr(e,"basis","preferred-size")+e;case 6060:return Qn+"box-"+rr(e,"-grow","")+Qn+e+Oi+rr(e,"grow","positive")+e;case 4554:return Qn+rr(e,/([^-])(transform)/g,"$1"+Qn+"$2")+e;case 6187:return rr(rr(rr(e,/(zoom-|grab)/,Qn+"$1"),/(image-set)/,Qn+"$1"),e,"")+e;case 5495:case 3959:return rr(e,/(image-set\([^]*)/,Qn+"$1$`$1");case 4968:return rr(rr(e,/(.+:)(flex-)?(.*)/,Qn+"box-pack:$3"+Oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qn+e+e;case 4095:case 3583:case 4068:case 2532:return rr(e,/(.+)-inline(.+)/,Qn+"$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(nu(e)-1-t>6)switch(ho(e,t+1)){case 109:if(ho(e,t+4)!==45)break;case 102:return rr(e,/(.+:)(.+)-([^]+)/,"$1"+Qn+"$2-$3$1"+Hx+(ho(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~UA(e,"stretch")?P3(rr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ho(e,t+1)!==115)break;case 6444:switch(ho(e,nu(e)-3-(~UA(e,"!important")&&10))){case 107:return rr(e,":",":"+Qn)+e;case 101:return rr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qn+(ho(e,14)===45?"inline-":"")+"box$3$1"+Qn+"$2$3$1"+Oi+"$2box$3")+e}break;case 5936:switch(ho(e,t+11)){case 114:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qn+e+Oi+e+e}return e}function Lm(e,t){for(var r="",i=yk(e),s=0;s<i;s++)r+=t(e[s],s,e,t)||"";return r}function M8(e,t,r,i){switch(e.type){case S8:case gk:return e.return=e.return||e.value;case mk:return"";case R3:return e.return=e.value+"{"+Lm(e.children,i)+"}";case vk:e.value=e.props.join(",")}return nu(r=Lm(e.children,i))?e.return=e.value+"{"+r+"}":""}function I8(e){var t=yk(e);return function(r,i,s,c){for(var u="",h=0;h<t;h++)u+=e[h](r,i,s,c)||"";return u}}function L8(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case gk:e.return=P3(e.value,e.length);break;case R3:return Lm([xy(e,{value:rr(e.value,"@","@"+Qn)})],i);case vk:if(e.length)return E8(e.props,function(s){switch(_8(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lm([xy(e,{props:[rr(s,/:(read-\w+)/,":"+Hx+"$1")]})],i);case"::placeholder":return Lm([xy(e,{props:[rr(s,/:(plac\w+)/,":"+Qn+"input-$1")]}),xy(e,{props:[rr(s,/:(plac\w+)/,":"+Hx+"$1")]}),xy(e,{props:[rr(s,/:(plac\w+)/,Oi+"input-$1")]})],i)}return""})}}var yI=function(t){var r=new WeakMap;return function(i){if(r.has(i))return r.get(i);var s=t(i);return r.set(i,s),s}};function M3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var F8=function(t,r,i){for(var s=0,c=0;s=c,c=su(),s===38&&c===12&&(r[i]=1),!Jy(c);)Wo();return wb(t,bo)},z8=function(t,r){var i=-1,s=44;do switch(Jy(s)){case 0:s===38&&su()===12&&(r[i]=1),t[i]+=F8(bo-1,r,i);break;case 2:t[i]+=Cx(s);break;case 4:if(s===44){t[++i]=su()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Mw(s)}while(s=Wo());return t},B8=function(t,r){return D3(z8(k3(t),r))},bI=new WeakMap,U8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!bI.get(i))&&!s){bI.set(t,!0);for(var c=[],u=B8(r,c),h=i.props,m=0,v=0;m<u.length;m++)for(var b=0;b<h.length;b++,v++)t.props[v]=c[m]?u[m].replace(/&\f/g,h[b]):h[b]+" "+u[m]}}},j8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},$8="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",V8=function(t){return t.type==="comm"&&t.children.indexOf($8)>-1},H8=function(t){return function(r,i,s){if(!(r.type!=="rule"||t.compat)){var c=r.value.match(/(:first|:nth|:nth-last)-child/g);if(c){for(var u=r.parent===s[0],h=u?s[0].children:s,m=h.length-1;m>=0;m--){var v=h[m];if(v.line<r.line)break;if(v.column<r.column){if(V8(v))return;break}}c.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".')})}}}},I3=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},W8=function(t,r){for(var i=t-1;i>=0;i--)if(!I3(r[i]))return!0;return!1},SI=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},G8=function(t,r,i){!I3(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."),SI(t)):W8(r,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),SI(t)))},Y8=[L8],q8=function(t){var r=t.key;if(!r)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(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(A){var I=A.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var s=t.stylisPlugins||Y8;if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var c={},u,h=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(A){for(var I=A.getAttribute("data-emotion").split(" "),j=1;j<I.length;j++)c[I[j]]=!0;h.push(A)});var m,v=[U8,j8];v.push(H8({get compat(){return N.compat}}),G8);{var b,x=[M8,function(A){A.root||(A.return?b.insert(A.return):A.value&&A.type!==mk&&b.insert(A.value+"{}"))}],C=I8(v.concat(s,x)),_=function(I){return Lm(D8(I),C)};m=function(I,j,M,z){b=M,j.map!==void 0&&(b={insert:function(V){M.insert(V+j.map)}}),_(I?I+"{"+j.styles+"}":j.styles),z&&(N.inserted[j.name]=!0)}}var N={key:r,sheet:new b8({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:m};return N.sheet.hydrate(h),N};function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},eb.apply(this,arguments)}var Fw={exports:{}},or={};/** @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,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function z(We){return typeof We=="string"||typeof We=="function"||We===i||We===v||We===c||We===s||We===x||We===C||typeof We=="object"&&We!==null&&(We.$$typeof===N||We.$$typeof===_||We.$$typeof===u||We.$$typeof===h||We.$$typeof===b||We.$$typeof===I||We.$$typeof===j||We.$$typeof===M||We.$$typeof===A)}function U(We){if(typeof We=="object"&&We!==null){var Yt=We.$$typeof;switch(Yt){case t:var ye=We.type;switch(ye){case m:case v:case i:case c:case s:case x:return ye;default:var Mt=ye&&ye.$$typeof;switch(Mt){case h:case b:case N:case _:case u:return Mt;default:return Yt}}case r:return Yt}}}var V=m,K=v,X=h,de=u,ve=t,se=b,be=i,Xe=N,ie=_,ce=r,Re=c,Ce=s,oe=x,Se=!1;function Te(We){return Se||(Se=!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.")),pe(We)||U(We)===m}function pe(We){return U(We)===v}function we(We){return U(We)===h}function Ie(We){return U(We)===u}function Le(We){return typeof We=="object"&&We!==null&&We.$$typeof===t}function Ye(We){return U(We)===b}function st(We){return U(We)===i}function mt(We){return U(We)===N}function Gt(We){return U(We)===_}function Qe(We){return U(We)===r}function vt(We){return U(We)===c}function Et(We){return U(We)===s}function zt(We){return U(We)===x}or.AsyncMode=V,or.ConcurrentMode=K,or.ContextConsumer=X,or.ContextProvider=de,or.Element=ve,or.ForwardRef=se,or.Fragment=be,or.Lazy=Xe,or.Memo=ie,or.Portal=ce,or.Profiler=Re,or.StrictMode=Ce,or.Suspense=oe,or.isAsyncMode=Te,or.isConcurrentMode=pe,or.isContextConsumer=we,or.isContextProvider=Ie,or.isElement=Le,or.isForwardRef=Ye,or.isFragment=st,or.isLazy=mt,or.isMemo=Gt,or.isPortal=Qe,or.isProfiler=vt,or.isStrictMode=Et,or.isSuspense=zt,or.isValidElementType=z,or.typeOf=U})();(function(e){e.exports=or})(Fw);var L3=Fw.exports,K8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F3={};F3[L3.ForwardRef]=K8;F3[L3.Memo]=X8;var Z8=!0;function bk(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):i+=s+" "}),i}var zw=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||Z8===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},Bw=function(t,r,i){zw(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+s:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function Q8(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 J8={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},xI=`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`,e7="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",t7=/[A-Z]|^ms/g,z3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sk=function(t){return t.charCodeAt(1)===45},wI=function(t){return t!=null&&typeof t!="boolean"},UR=M3(function(e){return Sk(e)?e:e.replace(t7,"-$&").toLowerCase()}),Wx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(z3,function(i,s,c){return ru={name:s,styles:c,next:ru},s})}return J8[t]!==1&&!Sk(t)&&typeof r=="number"&&r!==0?r+"px":r};{var n7=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,r7=["normal","none","initial","inherit","unset"],a7=Wx,i7=/^-ms-/,o7=/-(.)/g,CI={};Wx=function(t,r){if(t==="content"&&(typeof r!="string"||r7.indexOf(r)===-1&&!n7.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=a7(t,r);return i!==""&&!Sk(t)&&t.indexOf("-")!==-1&&CI[t]===void 0&&(CI[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(i7,"ms-").replace(o7,function(s,c){return c.toUpperCase()})+"?")),i}}var B3="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tb(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(B3);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ru={name:r.name,styles:r.styles,next:ru},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)ru={name:i.name,styles:i.styles,next:ru},i=i.next;var s=r.styles+";";return r.map!==void 0&&(s+=r.map),s}return s7(e,t,r)}case"function":{if(e!==void 0){var c=ru,u=r(e);return ru=c,tb(e,t,u)}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 h=[],m=r.replace(z3,function(b,x,C){var _="animation"+h.length;return h.push("const "+_+" = keyframes`"+C.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+_+"}"});h.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(h,["`"+m+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+m+"`"))}break}if(t==null)return r;var v=t[r];return v!==void 0?v:r}function s7(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=tb(e,t,r[s])+";";else for(var c in r){var u=r[c];if(typeof u!="object")t!=null&&t[u]!==void 0?i+=c+"{"+t[u]+"}":wI(u)&&(i+=UR(c)+":"+Wx(c,u)+";");else{if(c==="NO_COMPONENT_SELECTOR")throw new Error(B3);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)wI(u[h])&&(i+=UR(c)+":"+Wx(c,u[h])+";");else{var m=tb(e,t,u);switch(c){case"animation":case"animationName":{i+=UR(c)+":"+m+";";break}default:c==="undefined"&&console.error(e7),i+=c+"{"+m+"}"}}}}return i}var _I=/label:\s*([^\s;\n{]+)\s*(;|$)/g,U3;U3=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var ru,Gm=function(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,c="";ru=void 0;var u=t[0];u==null||u.raw===void 0?(s=!1,c+=tb(i,r,u)):(u[0]===void 0&&console.error(xI),c+=u[0]);for(var h=1;h<t.length;h++)c+=tb(i,r,t[h]),s&&(u[h]===void 0&&console.error(xI),c+=u[h]);var m;c=c.replace(U3,function(C){return m=C,""}),_I.lastIndex=0;for(var v="",b;(b=_I.exec(c))!==null;)v+="-"+b[1];var x=Q8(c)+v;return{name:x,styles:c,map:m,next:ru,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)."}}},l7=function(t){return t()},j3=iI["useInsertionEffect"]?iI["useInsertionEffect"]:!1,xk=j3||l7,EI=j3||D.exports.useLayoutEffect,u7={}.hasOwnProperty,wk=D.exports.createContext(typeof HTMLElement<"u"?q8({key:"css"}):null);wk.displayName="EmotionCacheContext";wk.Provider;var Uw=function(t){return D.exports.forwardRef(function(r,i){var s=D.exports.useContext(wk);return t(r,s,i)})},$f=D.exports.createContext({});$f.displayName="EmotionThemeContext";var c7=function(t,r){if(typeof r=="function"){var i=r(t);if(i==null||typeof i!="object"||Array.isArray(i))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return i}if(r==null||typeof r!="object"||Array.isArray(r))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return eb({},t,r)},f7=yI(function(e){return yI(function(t){return c7(e,t)})}),d7=function(t){var r=D.exports.useContext($f);return t.theme!==r&&(r=f7(r)(t.theme)),D.exports.createElement($f.Provider,{value:r},t.children)},TI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",NI="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",p7=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return zw(r,i,s),xk(function(){return Bw(r,i,s)}),null},h7=Uw(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[TI],c=[i],u="";typeof e.className=="string"?u=bk(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var h=Gm(c,void 0,D.exports.useContext($f));if(h.name.indexOf("-")===-1){var m=e[NI];m&&(h=Gm([h,"label:"+m+";"]))}u+=t.key+"-"+h.name;var v={};for(var b in e)u7.call(e,b)&&b!=="css"&&b!==TI&&b!==NI&&(v[b]=e[b]);return v.ref=r,v.className=u,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(p7,{cache:t,serialized:h,isStringTag:typeof s=="string"}),D.exports.createElement(s,v))});h7.displayName="EmotionCssPropInternal";var m7={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"}}}},RI=!1,Cb=Uw(function(e,t){!RI&&(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?"),RI=!0);var r=e.styles,i=Gm([r],void 0,D.exports.useContext($f)),s=D.exports.useRef();return EI(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+c+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",c),u.hydrate([m])),s.current=[u,h],function(){u.flush()}},[t]),EI(function(){var c=s.current,u=c[0],h=c[1];if(h){c[1]=!1;return}if(i.next!==void 0&&Bw(t,i.next,!0),u.tags.length){var m=u.tags[u.tags.length-1].nextElementSibling;u.before=m,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});Cb.displayName="EmotionGlobal";function v7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gm(t)}var _b=function(){var t=v7.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},g7=function e(t){for(var r=t.length,i=0,s="";i<r;i++){var c=t[i];if(c!=null){var u=void 0;switch(typeof c){case"boolean":break;case"object":{if(Array.isArray(c))u=e(c);else{c.styles!==void 0&&c.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."),u="";for(var h in c)c[h]&&h&&(u&&(u+=" "),u+=h)}break}default:u=c}u&&(s&&(s+=" "),s+=u)}}return s};function y7(e,t,r){var i=[],s=bk(e,i,r);return i.length<2?r:s+t(i)}var b7=function(t){var r=t.cache,i=t.serializedArr;return xk(function(){for(var s=0;s<i.length;s++)Bw(r,i[s],!1)}),null},S7=Uw(function(e,t){var r=!1,i=[],s=function(){if(r)throw new Error("css can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];var C=Gm(b,t.registered);return i.push(C),zw(t,C,!1),t.key+"-"+C.name},c=function(){if(r)throw new Error("cx can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];return y7(t.registered,s,g7(b))},u={css:s,cx:c,theme:D.exports.useContext($f)},h=e.children(u);return r=!0,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(b7,{cache:t,serializedArr:i}),h)});S7.displayName="EmotionClassNames";{var AI=!0,x7=typeof jest<"u";if(AI&&!x7){var OI=typeof globalThis<"u"?globalThis:AI?window:global,kI="__EMOTION_REACT_"+m7.version.split(".")[0]+"__";OI[kI]&&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."),OI[kI]=!0}}function km(e){return typeof e=="function"}function w7(e,t){const r={};return Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r}function C7(e,t,r,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?r:e}var _7=e=>{const t=new WeakMap;return(i,s,c,u)=>{if(typeof i>"u")return e(i,s,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(s))return h.get(s);const m=e(i,s,c,u);return h.set(s,m),m}},$3=_7(C7);function V3(e,t){const r={};return Object.keys(e).forEach(i=>{const s=e[i];t(s,i,e)&&(r[i]=s)}),r}var H3=e=>V3(e,t=>t!=null);function E7(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var T7=E7();function W3(e,...t){return km(e)?e(...t):e}function N7(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var R7=(...e)=>t=>e.reduce((r,i)=>i(r),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function A7(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,s=D.exports.createContext(void 0);s.displayName=i;function c(){var u;const h=D.exports.useContext(s);if(!h&&t){const m=new Error(r);throw m.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,m,c),m}return h}return[s.Provider,c,s]}var O7=/^((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)-.*))$/,k7=M3(function(e){return O7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),D7=k7,P7=function(t){return t!=="theme"},DI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?D7:P7},PI=function(t,r,i){var s;if(r){var c=r.shouldForwardProp;s=t.__emotion_forwardProp&&c?function(u){return t.__emotion_forwardProp(u)&&c(u)}:c}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},MI=`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`,M7=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return zw(r,i,s),xk(function(){return Bw(r,i,s)}),null},I7=function e(t,r){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 i=t.__emotion_real===t,s=i&&t.__emotion_base||t,c,u;r!==void 0&&(c=r.label,u=r.target);var h=PI(t,r,i),m=h||DI(s),v=!m("as");return function(){var b=arguments,x=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(c!==void 0&&x.push("label:"+c+";"),b[0]==null||b[0].raw===void 0)x.push.apply(x,b);else{b[0][0]===void 0&&console.error(MI),x.push(b[0][0]);for(var C=b.length,_=1;_<C;_++)b[0][_]===void 0&&console.error(MI),x.push(b[_],b[0][_])}var N=Uw(function(A,I,j){var M=v&&A.as||s,z="",U=[],V=A;if(A.theme==null){V={};for(var K in A)V[K]=A[K];V.theme=D.exports.useContext($f)}typeof A.className=="string"?z=bk(I.registered,U,A.className):A.className!=null&&(z=A.className+" ");var X=Gm(x.concat(U),I.registered,V);z+=I.key+"-"+X.name,u!==void 0&&(z+=" "+u);var de=v&&h===void 0?DI(M):m,ve={};for(var se in A)v&&se==="as"||de(se)&&(ve[se]=A[se]);return ve.className=z,ve.ref=j,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(M7,{cache:I,serialized:X,isStringTag:typeof M=="string"}),D.exports.createElement(M,ve))});return N.displayName=c!==void 0?c:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",N.defaultProps=t.defaultProps,N.__emotion_real=N,N.__emotion_base=s,N.__emotion_styles=x,N.__emotion_forwardProp=h,Object.defineProperty(N,"toString",{value:function(){return u===void 0?"NO_COMPONENT_SELECTOR":"."+u}}),N.withComponent=function(A,I){return e(A,eb({},r,I,{shouldForwardProp:PI(N,I,!0)})).apply(void 0,x)},N}},L7=["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"],$A=I7.bind();L7.forEach(function(e){$A[e]=$A(e)});var F7=typeof Element<"u",z7=typeof Map=="function",B7=typeof Set=="function",U7=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ex(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ex(e[i],t[i]))return!1;return!0}var c;if(z7&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;for(c=e.entries();!(i=c.next()).done;)if(!Ex(i.value[1],t.get(i.value[0])))return!1;return!0}if(B7&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(U7&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])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(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;if(F7&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&e.$$typeof)&&!Ex(e[s[i]],t[s[i]]))return!1;return!0}return e!==e&&t!==t}var j7=function(t,r){try{return Ex(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},Gx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function Ck(){const e=D.exports.useContext($f);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function G3(){const e=kw(),t=Ck();return{...e,theme:t}}function $7(e,t,r){if(t==null)return t;const i=s=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[s]};return i(t)??i(r)??r}function V7(e,t,r){if(t==null)return t;const i=s=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[s])==null?void 0:u.value};return i(t)??i(r)??r}function H7(e,t,r){const i=Array.isArray(t)?t:[t],s=Array.isArray(r)?r:[r];return c=>{const u=s.filter(Boolean),h=i.map((m,v)=>{if(e==="breakpoints")return $7(c,m,u[v]??m);const b=`${e}.${m}`;return V7(c,b,u[v]??m)});return Array.isArray(t)?h:h[0]}}function W7(e){const{cssVarsRoot:t,theme:r,children:i}=e,s=D.exports.useMemo(()=>n8(r),[r]);return k(d7,{theme:s,children:[k(G7,{root:t},void 0,!1,{fileName:Gx,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:Gx,lineNumber:80,columnNumber:26},this)}function G7({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k(Cb,{styles:r=>({[t]:r.__cssVars})},void 0,!1,{fileName:Gx,lineNumber:88,columnNumber:26},this)}A7({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Y7(){const{colorMode:e}=kw();return k(Cb,{styles:t=>{const r=$3(t,"styles.global"),i=W3(r,{theme:t,colorMode:e});return i?N3(i)(t):void 0}},void 0,!1,{fileName:Gx,lineNumber:104,columnNumber:26},this)}var q7=new Set([...i8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),K7=new Set(["htmlWidth","htmlHeight","htmlSize"]);function X7(e){return K7.has(e)||!q7.has(e)}var Z7=({baseStyle:e})=>t=>{const{theme:r,css:i,__css:s,sx:c,...u}=t,h=V3(u,(x,C)=>s8(C)),m=W3(e,t),v=Object.assign({},s,m,H3(h),c),b=N3(v)(t.theme);return i?[b,i]:b};function jR(e,t){const{baseStyle:r,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=X7);const s=Z7({baseStyle:r});return $A(e,i)(s)}function et(e){return D.exports.forwardRef(e)}function Y3(e,t={}){const{styleConfig:r,...i}=t,{theme:s,colorMode:c}=G3(),u=$3(s,`components.${e}`),h=r||u,m=jf({theme:s,colorMode:c},h?.defaultProps??{},H3(w7(i,["children"]))),v=D.exports.useRef({});if(h){const x=m8(h)(m);j7(v.current,x)||(v.current=x)}return v.current}function Zi(e,t={}){return Y3(e,t)}function Xo(e,t={}){return Y3(e,t)}function Q7(){const e=new Map;return new Proxy(jR,{apply(t,r,i){return jR(...i)},get(t,r){return e.has(r)||e.set(r,jR(r)),e.get(r)}})}var Ge=Q7();function J7(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Qr(e={}){const{name:t,strict:r=!0,hookName:i="useContext",providerName:s="Provider",errorMessage:c}=e,u=D.exports.createContext(void 0);u.displayName=t;function h(){var m;const v=D.exports.useContext(u);if(!v&&r){const b=new Error(c??J7(i,s));throw b.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,b,h),b}return v}return[u.Provider,h,u]}function eW(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(r=>{eW(r,t)})}}function tW(...e){return D.exports.useMemo(()=>Xi(...e),e)}function II(e){return e.sort((t,r)=>{const i=t.compareDocumentPosition(r);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var nW=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function LI(e,t,r){let i=e+1;return r&&i>=t&&(i=0),i}function FI(e,t,r){let i=e-1;return r&&i<0&&(i=t),i}var VA=typeof window<"u"?D.exports.useLayoutEffect:D.exports.useEffect,Yx=e=>e,rW=class{descendants=new Map;register=e=>{if(e!=null)return nW(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=II(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.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 r=LI(e,this.count(),t);return this.item(r)};nextEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=LI(i,this.enabledCount(),t);return this.enabledItem(s)};prev=(e,t=!0)=>{const r=FI(e,this.count()-1,t);return this.item(r)};prevEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=FI(i,this.enabledCount()-1,t);return this.enabledItem(s)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),i=II(r);t?.disabled&&(t.disabled=!!t.disabled);const s={node:e,index:-1,...t};this.descendants.set(e,s),this.assignIndex(i)}};function aW(){const e=D.exports.useRef(new rW);return VA(()=>()=>e.current.destroy()),e.current}var[iW,q3]=Qr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function oW(e){const t=q3(),[r,i]=D.exports.useState(-1),s=D.exports.useRef(null);VA(()=>()=>{!s.current||t.unregister(s.current)},[]),VA(()=>{if(!s.current)return;const u=Number(s.current.dataset.index);r!=u&&!Number.isNaN(u)&&i(u)});const c=Yx(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(s.current),register:Xi(c,s)}}function sW(){return[Yx(iW),()=>Yx(q3()),()=>aW(),s=>oW(s)]}var Jr=(...e)=>e.filter(Boolean).join(" "),Y1="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",zI={path:k("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k("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:Y1,lineNumber:14,columnNumber:22},globalThis),k("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:Y1,lineNumber:18,columnNumber:23},globalThis),k("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:Y1,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:Y1,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},El=et((e,t)=>{const{as:r,viewBox:i,color:s="currentColor",focusable:c=!1,children:u,className:h,__css:m,...v}=e,b=Jr("chakra-icon",h),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:s,...m},C={ref:t,focusable:c,className:b,__css:x},_=i??zI.viewBox;if(r&&typeof r!="string")return Ue.createElement(Ge.svg,{as:r,...C,...v});const N=u??zI.path;return Ue.createElement(Ge.svg,{verticalAlign:"middle",viewBox:_,...C,...v},N)});El.displayName="Icon";function ki(e,t=[]){const r=D.exports.useRef(e);return D.exports.useEffect(()=>{r.current=e}),D.exports.useCallback((...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},t)}function lW(e){const{value:t,defaultValue:r,onChange:i,shouldUpdate:s=(C,_)=>C!==_}=e,c=ki(i),u=ki(s),[h,m]=D.exports.useState(r),v=t!==void 0,b=v?t:h,x=D.exports.useCallback(C=>{const N=typeof C=="function"?C(b):C;!u(b,N)||(v||m(N),c(N))},[v,c,b,u]);return[b,x]}const _k=D.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jw=D.exports.createContext({});function uW(){return D.exports.useContext(jw).visualElement}const nv=D.exports.createContext(null),Hp=typeof document<"u",qx=Hp?D.exports.useLayoutEffect:D.exports.useEffect,K3=D.exports.createContext({strict:!1});function cW(e,t,r,i){const s=uW(),c=D.exports.useContext(K3),u=D.exports.useContext(nv),h=D.exports.useContext(_k).reducedMotion,m=D.exports.useRef(void 0);i=i||c.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:s,props:r,presenceId:u?u.id:void 0,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:h}));const v=m.current;return qx(()=>{v&&v.syncRender()}),D.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),qx(()=>()=>v&&v.notifyUnmount(),[]),v}function Dm(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fW(e,t,r){return D.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),r&&(typeof r=="function"?r(i):Dm(r)&&(r.current=i))},[t])}function nb(e){return typeof e=="string"||Array.isArray(e)}function $w(e){return typeof e=="object"&&typeof e.start=="function"}const dW=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Vw(e){return $w(e.animate)||dW.some(t=>nb(e[t]))}function X3(e){return Boolean(Vw(e)||e.variants)}function pW(e,t){if(Vw(e)){const{initial:r,animate:i}=e;return{initial:r===!1||nb(r)?r:void 0,animate:nb(i)?i:void 0}}return e.inherit!==!1?t:{}}function hW(e){const{initial:t,animate:r}=pW(e,D.exports.useContext(jw));return D.exports.useMemo(()=>({initial:t,animate:r}),[BI(t),BI(r)])}function BI(e){return Array.isArray(e)?e.join(" "):e}const rc=e=>({isEnabled:t=>e.some(r=>!!t[r])}),rb={measureLayout:rc(["layout","layoutId","drag"]),animation:rc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:rc(["exit"]),drag:rc(["drag","dragControls"]),focus:rc(["whileFocus"]),hover:rc(["whileHover","onHoverStart","onHoverEnd"]),tap:rc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:rc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:rc(["whileInView","onViewportEnter","onViewportLeave"])};function mW(e){for(const t in e)t==="projectionNodeConstructor"?rb.projectionNodeConstructor=e[t]:rb[t].Component=e[t]}function Hw(e){const t=D.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let vW=1;function gW(){return Hw(()=>{if(Fy.hasEverUpdated)return vW++})}const Ek=D.exports.createContext({});class yW extends Ue.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}}const Z3=D.exports.createContext({}),bW=Symbol.for("motionComponentSymbol");var UI="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function SW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:i,useVisualState:s,Component:c}){e&&mW(e);function u(m,v){const b={...D.exports.useContext(_k),...m,layoutId:xW(m)},{isStatic:x}=b;let C=null;const _=hW(m),N=x?void 0:gW(),A=s(m,x);if(!x&&Hp){_.visualElement=cW(c,A,b,t);const I=D.exports.useContext(K3).strict,j=D.exports.useContext(Z3);_.visualElement&&(C=_.visualElement.loadFeatures(b,I,e,N,r||rb.projectionNodeConstructor,j))}return k(yW,{visualElement:_.visualElement,props:b,children:[C,k(jw.Provider,{value:_,children:i(c,m,N,fW(A,_.visualElement,v),A,x,_.visualElement)},void 0,!1,{fileName:UI,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:UI,lineNumber:79,columnNumber:17},this)}const h=D.exports.forwardRef(u);return h[bW]=c,h}function xW({layoutId:e}){const t=D.exports.useContext(Ek).id;return t&&e!==void 0?t+"-"+e:e}function wW(e){function t(i,s={}){return SW(e(i,s))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(i,s)=>(r.has(s)||r.set(s,t(s)),r.get(s))})}const CW=["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 Tk(e){return typeof e!="string"||e.includes("-")?!1:!!(CW.indexOf(e)>-1||/[A-Z]/.test(e))}const Kx={};function _W(e){Object.assign(Kx,e)}const Xx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Eb=new Set(Xx);function Q3(e,{layout:t,layoutId:r}){return Eb.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kx[e]||e==="opacity")}const pu=e=>!!e?.getVelocity,EW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TW=(e,t)=>Xx.indexOf(e)-Xx.indexOf(t);function NW({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:i=!0},s,c){let u="";t.sort(TW);for(const h of t)u+=`${EW[h]||h}(${e[h]}) `;return r&&!e.z&&(u+="translateZ(0)"),u=u.trim(),c?u=c(e,s?"":u):i&&s&&(u="none"),u}function J3(e){return e.startsWith("--")}const RW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,e4=(e,t)=>r=>Math.max(Math.min(r,t),e),zy=e=>e%1?Number(e.toFixed(5)):e,ab=/(-)?([\d]*\.?[\d])+/g,HA=/(#[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,AW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Tb(e){return typeof e=="string"}const Wp={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},By=Object.assign(Object.assign({},Wp),{transform:e4(0,1)}),q1=Object.assign(Object.assign({},Wp),{default:1}),Nb=e=>({test:t=>Tb(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_f=Nb("deg"),lu=Nb("%"),Wt=Nb("px"),OW=Nb("vh"),kW=Nb("vw"),jI=Object.assign(Object.assign({},lu),{parse:e=>lu.parse(e)/100,transform:e=>lu.transform(e*100)}),Nk=(e,t)=>r=>Boolean(Tb(r)&&AW.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),t4=(e,t,r)=>i=>{if(!Tb(i))return i;const[s,c,u,h]=i.match(ab);return{[e]:parseFloat(s),[t]:parseFloat(c),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},kp={test:Nk("hsl","hue"),parse:t4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+lu.transform(zy(t))+", "+lu.transform(zy(r))+", "+zy(By.transform(i))+")"},DW=e4(0,255),$R=Object.assign(Object.assign({},Wp),{transform:e=>Math.round(DW(e))}),Df={test:Nk("rgb","red"),parse:t4("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+$R.transform(e)+", "+$R.transform(t)+", "+$R.transform(r)+", "+zy(By.transform(i))+")"};function PW(e){let t="",r="",i="",s="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),i=e.substr(5,2),s=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),i=e.substr(3,1),s=e.substr(4,1),t+=t,r+=r,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const WA={test:Nk("#"),parse:PW,transform:Df.transform},Ki={test:e=>Df.test(e)||WA.test(e)||kp.test(e),parse:e=>Df.test(e)?Df.parse(e):kp.test(e)?kp.parse(e):WA.parse(e),transform:e=>Tb(e)?e:e.hasOwnProperty("red")?Df.transform(e):kp.transform(e)},n4="${c}",r4="${n}";function MW(e){var t,r,i,s;return isNaN(e)&&Tb(e)&&((r=(t=e.match(ab))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((s=(i=e.match(HA))===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0)>0}function a4(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const i=e.match(HA);i&&(r=i.length,e=e.replace(HA,n4),t.push(...i.map(Ki.parse)));const s=e.match(ab);return s&&(e=e.replace(ab,r4),t.push(...s.map(Wp.parse))),{values:t,numColors:r,tokenised:e}}function i4(e){return a4(e).values}function o4(e){const{values:t,numColors:r,tokenised:i}=a4(e),s=t.length;return c=>{let u=i;for(let h=0;h<s;h++)u=u.replace(h<r?n4:r4,h<r?Ki.transform(c[h]):zy(c[h]));return u}}const IW=e=>typeof e=="number"?0:e;function LW(e){const t=i4(e);return o4(e)(t.map(IW))}const pc={test:MW,parse:i4,createTransformer:o4,getAnimatableNone:LW},FW=new Set(["brightness","contrast","saturate","opacity"]);function zW(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(ab)||[];if(!i)return e;const s=r.replace(i,"");let c=FW.has(t)?1:0;return i!==r&&(c*=100),t+"("+c+s+")"}const BW=/([a-z-]*)\(.*?\)/g,GA=Object.assign(Object.assign({},pc),{getAnimatableNone:e=>{const t=e.match(BW);return t?t.map(zW).join(" "):e}}),$I={...Wp,transform:Math.round},s4={borderWidth:Wt,borderTopWidth:Wt,borderRightWidth:Wt,borderBottomWidth:Wt,borderLeftWidth:Wt,borderRadius:Wt,radius:Wt,borderTopLeftRadius:Wt,borderTopRightRadius:Wt,borderBottomRightRadius:Wt,borderBottomLeftRadius:Wt,width:Wt,maxWidth:Wt,height:Wt,maxHeight:Wt,size:Wt,top:Wt,right:Wt,bottom:Wt,left:Wt,padding:Wt,paddingTop:Wt,paddingRight:Wt,paddingBottom:Wt,paddingLeft:Wt,margin:Wt,marginTop:Wt,marginRight:Wt,marginBottom:Wt,marginLeft:Wt,rotate:_f,rotateX:_f,rotateY:_f,rotateZ:_f,scale:q1,scaleX:q1,scaleY:q1,scaleZ:q1,skew:_f,skewX:_f,skewY:_f,distance:Wt,translateX:Wt,translateY:Wt,translateZ:Wt,x:Wt,y:Wt,z:Wt,perspective:Wt,transformPerspective:Wt,opacity:By,originX:jI,originY:jI,originZ:Wt,zIndex:$I,fillOpacity:By,strokeOpacity:By,numOctaves:$I};function Rk(e,t,r,i){const{style:s,vars:c,transform:u,transformKeys:h,transformOrigin:m}=e;h.length=0;let v=!1,b=!1,x=!0;for(const C in t){const _=t[C];if(J3(C)){c[C]=_;continue}const N=s4[C],A=RW(_,N);if(Eb.has(C)){if(v=!0,u[C]=A,h.push(C),!x)continue;_!==(N.default||0)&&(x=!1)}else C.startsWith("origin")?(b=!0,m[C]=A):s[C]=A}if(v||i?s.transform=NW(e,r,x,i):!t.transform&&s.transform&&(s.transform="none"),b){const{originX:C="50%",originY:_="50%",originZ:N=0}=m;s.transformOrigin=`${C} ${_} ${N}`}}const Ak=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function l4(e,t,r){for(const i in t)!pu(t[i])&&!Q3(i,r)&&(e[i]=t[i])}function UW({transformTemplate:e},t,r){return D.exports.useMemo(()=>{const i=Ak();return Rk(i,t,{enableHardwareAcceleration:!r},e),Object.assign({},i.vars,i.style)},[t])}function jW(e,t,r){const i=e.style||{},s={};return l4(s,i,e),Object.assign(s,UW(e,t,r)),e.transformValues?e.transformValues(s):s}function $W(e,t,r){const i={},s=jW(e,t,r);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),i.style=s,i}const VW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],HW=["whileTap","onTap","onTapStart","onTapCancel"],WW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],GW=["whileInView","onViewportEnter","onViewportLeave","viewport"],YW=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",...GW,...HW,...VW,...WW]);function Zx(e){return YW.has(e)}let u4=e=>!Zx(e);function qW(e){!e||(u4=t=>t.startsWith("on")?!Zx(t):e(t))}try{qW(require("@emotion/is-prop-valid").default)}catch{}function KW(e,t,r){const i={};for(const s in e)(u4(s)||r===!0&&Zx(s)||!t&&!Zx(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}function VI(e,t,r){return typeof e=="string"?e:Wt.transform(t+r*e)}function XW(e,t,r){const i=VI(t,e.x,e.width),s=VI(r,e.y,e.height);return`${i} ${s}`}const ZW={offset:"stroke-dashoffset",array:"stroke-dasharray"},QW={offset:"strokeDashoffset",array:"strokeDasharray"};function JW(e,t,r=1,i=0,s=!0){e.pathLength=1;const c=s?ZW:QW;e[c.offset]=Wt.transform(-i);const u=Wt.transform(t),h=Wt.transform(r);e[c.array]=`${u} ${h}`}function Ok(e,{attrX:t,attrY:r,originX:i,originY:s,pathLength:c,pathSpacing:u=1,pathOffset:h=0,...m},v,b){Rk(e,m,v,b),e.attrs=e.style,e.style={};const{attrs:x,style:C,dimensions:_}=e;x.transform&&(_&&(C.transform=x.transform),delete x.transform),_&&(i!==void 0||s!==void 0||C.transform)&&(C.transformOrigin=XW(_,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(x.x=t),r!==void 0&&(x.y=r),c!==void 0&&JW(x,c,u,h,!1)}const c4=()=>({...Ak(),attrs:{}});function eG(e,t){const r=D.exports.useMemo(()=>{const i=c4();return Ok(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};l4(i,e.style,e),r.style={...i,...r.style}}return r}function tG(e=!1){return(r,i,s,c,{latestValues:u},h)=>{const v=(Tk(r)?eG:$W)(i,u,h),x={...KW(i,typeof r=="string",e),...v,ref:c};return s&&(x["data-projection-id"]=s),D.exports.createElement(r,x)}}const f4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function d4(e,{style:t,vars:r},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(const c in r)e.style.setProperty(c,r[c])}const p4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function h4(e,t,r,i){d4(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(p4.has(s)?s:f4(s),t.attrs[s])}function kk(e){const{style:t}=e,r={};for(const i in t)(pu(t[i])||Q3(i,e))&&(r[i]=t[i]);return r}function m4(e){const t=kk(e);for(const r in e)if(pu(e[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[i]=e[r]}return t}function v4(e,t,r,i={},s={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,s)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,s)),t}const ib=e=>Array.isArray(e),nG=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),g4=e=>ib(e)?e[e.length-1]||0:e;function Tx(e){const t=pu(e)?e.get():e;return nG(t)?t.toValue():t}function rG({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},i,s,c){const u={latestValues:aG(i,s,c,e),renderState:t()};return r&&(u.mount=h=>r(i,h,u)),u}const y4=e=>(t,r)=>{const i=D.exports.useContext(jw),s=D.exports.useContext(nv),c=()=>rG(e,t,i,s);return r?c():Hw(c)};function aG(e,t,r,i){const s={},c=i(e);for(const C in c)s[C]=Tx(c[C]);let{initial:u,animate:h}=e;const m=Vw(e),v=X3(e);t&&v&&!m&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let b=r?r.initial===!1:!1;b=b||u===!1;const x=b?h:u;return x&&typeof x!="boolean"&&!$w(x)&&(Array.isArray(x)?x:[x]).forEach(_=>{const N=v4(e,_);if(!N)return;const{transitionEnd:A,transition:I,...j}=N;for(const M in j){let z=j[M];if(Array.isArray(z)){const U=b?z.length-1:0;z=z[U]}z!==null&&(s[M]=z)}for(const M in A)s[M]=A[M]}),s}const iG={useVisualState:y4({scrapeMotionValuesFromProps:m4,createRenderState:c4,onMount:(e,t,{renderState:r,latestValues:i})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Ok(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),h4(t,r)}})},oG={useVisualState:y4({scrapeMotionValuesFromProps:kk,createRenderState:Ak})};function sG(e,{forwardMotionProps:t=!1},r,i,s){return{...Tk(e)?iG:oG,preloadedFeatures:r,useRender:tG(t),createVisualElement:i,projectionNodeConstructor:s,Component:e}}var wr;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(wr||(wr={}));function Ww(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function YA(e,t,r,i){D.exports.useEffect(()=>{const s=e.current;if(r&&s)return Ww(s,t,r,i)},[e,t,r,i])}function lG({whileFocus:e,visualElement:t}){const{animationState:r}=t,i=()=>{r&&r.setActive(wr.Focus,!0)},s=()=>{r&&r.setActive(wr.Focus,!1)};YA(t,"focus",e?i:void 0),YA(t,"blur",e?s:void 0)}function b4(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function S4(e){return!!e.touches}function uG(e){return t=>{const r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}const cG={pageX:0,pageY:0};function fG(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||cG;return{x:i[t+"X"],y:i[t+"Y"]}}function dG(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Dk(e,t="page"){return{point:S4(e)?fG(e,t):dG(e,t)}}const x4=(e,t=!1)=>{const r=i=>e(i,Dk(i));return t?uG(r):r},pG=()=>Hp&&window.onpointerdown===null,hG=()=>Hp&&window.ontouchstart===null,mG=()=>Hp&&window.onmousedown===null,vG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},gG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function w4(e){return pG()?e:hG()?gG[e]:mG()?vG[e]:e}function Fm(e,t,r,i){return Ww(e,w4(t),x4(r,t==="pointerdown"),i)}function Qx(e,t,r,i){return YA(e,w4(t),r&&x4(r,t==="pointerdown"),i)}function C4(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const HI=C4("dragHorizontal"),WI=C4("dragVertical");function _4(e){let t=!1;if(e==="y")t=WI();else if(e==="x")t=HI();else{const r=HI(),i=WI();r&&i?t=()=>{r(),i()}:(r&&r(),i&&i())}return t}function E4(){const e=_4(!0);return e?(e(),!1):!0}function GI(e,t,r){return(i,s)=>{!b4(i)||E4()||(e.animationState&&e.animationState.setActive(wr.Hover,t),r&&r(i,s))}}function yG({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:i}){Qx(i,"pointerenter",e||r?GI(i,!0,e):void 0,{passive:!e}),Qx(i,"pointerleave",t||r?GI(i,!1,t):void 0,{passive:!t})}const T4=(e,t)=>t?e===t?!0:T4(e,t.parentElement):!1;function Pk(e){return D.exports.useEffect(()=>()=>e(),[])}var au=function(){return au=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},au.apply(this,arguments)};function Gw(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function rv(e,t,r,i){function s(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function h(b){try{v(i.next(b))}catch(x){u(x)}}function m(b){try{v(i.throw(b))}catch(x){u(x)}}function v(b){b.done?c(b.value):s(b.value).then(h,m)}v((i=i.apply(e,t||[])).next())})}function av(e,t){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,s,c,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(v){return function(b){return m([v,b])}}function m(v){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(c=v[0]&2?s.return:v[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,v[1])).done)return c;switch(s=0,c&&(v=[v[0]&2,c.value]),v[0]){case 0:case 1:c=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,s=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!c||v[1]>c[0]&&v[1]<c[3])){r.label=v[1];break}if(v[0]===6&&r.label<c[1]){r.label=c[1],c=v;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(v);break}c[2]&&r.ops.pop(),r.trys.pop();continue}v=t.call(e,r)}catch(b){v=[6,b],s=0}finally{i=c=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function YI(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,c=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)c.push(s.value)}catch(h){u={error:h}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return c}function qA(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,c;i<s;i++)(c||!(i in t))&&(c||(c=Array.prototype.slice.call(t,0,i)),c[i]=t[i]);return e.concat(c||Array.prototype.slice.call(t))}var Rb=function(){},Ps=function(){};Rb=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ps=function(e,t){if(!e)throw new Error(t)};const Jx=(e,t,r)=>Math.min(Math.max(r,e),t),VR=.001,bG=.01,qI=10,SG=.05,xG=1;function wG({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let s,c;Rb(e<=qI*1e3,"Spring duration must be 10 seconds or less");let u=1-t;u=Jx(SG,xG,u),e=Jx(bG,qI,e/1e3),u<1?(s=v=>{const b=v*u,x=b*e,C=b-r,_=KA(v,u),N=Math.exp(-x);return VR-C/_*N},c=v=>{const x=v*u*e,C=x*r+r,_=Math.pow(u,2)*Math.pow(v,2)*e,N=Math.exp(-x),A=KA(Math.pow(v,2),u);return(-s(v)+VR>0?-1:1)*((C-_)*N)/A}):(s=v=>{const b=Math.exp(-v*e),x=(v-r)*e+1;return-VR+b*x},c=v=>{const b=Math.exp(-v*e),x=(r-v)*(e*e);return b*x});const h=5/e,m=_G(s,c,h);if(e=e*1e3,isNaN(m))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(m,2)*i;return{stiffness:v,damping:u*2*Math.sqrt(i*v),duration:e}}}const CG=12;function _G(e,t,r){let i=r;for(let s=1;s<CG;s++)i=i-e(i)/t(i);return i}function KA(e,t){return e*Math.sqrt(1-t*t)}const EG=["duration","bounce"],TG=["stiffness","damping","mass"];function KI(e,t){return t.some(r=>e[r]!==void 0)}function NG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!KI(e,TG)&&KI(e,EG)){const r=wG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Mk(e){var{from:t=0,to:r=1,restSpeed:i=2,restDelta:s}=e,c=Gw(e,["from","to","restSpeed","restDelta"]);const u={done:!1,value:t};let{stiffness:h,damping:m,mass:v,velocity:b,duration:x,isResolvedFromDuration:C}=NG(c),_=XI,N=XI;function A(){const I=b?-(b/1e3):0,j=r-t,M=m/(2*Math.sqrt(h*v)),z=Math.sqrt(h/v)/1e3;if(s===void 0&&(s=Math.min(Math.abs(r-t)/100,.4)),M<1){const U=KA(z,M);_=V=>{const K=Math.exp(-M*z*V);return r-K*((I+M*z*j)/U*Math.sin(U*V)+j*Math.cos(U*V))},N=V=>{const K=Math.exp(-M*z*V);return M*z*K*(Math.sin(U*V)*(I+M*z*j)/U+j*Math.cos(U*V))-K*(Math.cos(U*V)*(I+M*z*j)-U*j*Math.sin(U*V))}}else if(M===1)_=U=>r-Math.exp(-z*U)*(j+(I+z*j)*U);else{const U=z*Math.sqrt(M*M-1);_=V=>{const K=Math.exp(-M*z*V),X=Math.min(U*V,300);return r-K*((I+M*z*j)*Math.sinh(X)+U*j*Math.cosh(X))/U}}}return A(),{next:I=>{const j=_(I);if(C)u.done=I>=x;else{const M=N(I)*1e3,z=Math.abs(M)<=i,U=Math.abs(r-j)<=s;u.done=z&&U}return u.value=u.done?r:j,u},flipTarget:()=>{b=-b,[t,r]=[r,t],A()}}}Mk.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const XI=e=>0,ob=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i},jr=(e,t,r)=>-r*e+r*t+e;function HR(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ZI({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let s=0,c=0,u=0;if(!t)s=c=u=r;else{const h=r<.5?r*(1+t):r+t-r*t,m=2*r-h;s=HR(m,h,e+1/3),c=HR(m,h,e),u=HR(m,h,e-1/3)}return{red:Math.round(s*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}const RG=(e,t,r)=>{const i=e*e,s=t*t;return Math.sqrt(Math.max(0,r*(s-i)+i))},AG=[WA,Df,kp],QI=e=>AG.find(t=>t.test(e)),JI=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,N4=(e,t)=>{let r=QI(e),i=QI(t);Ps(!!r,JI(e)),Ps(!!i,JI(t));let s=r.parse(e),c=i.parse(t);r===kp&&(s=ZI(s),r=Df),i===kp&&(c=ZI(c),i=Df);const u=Object.assign({},s);return h=>{for(const m in u)m!=="alpha"&&(u[m]=RG(s[m],c[m],h));return u.alpha=jr(s.alpha,c.alpha,h),r.transform(u)}},XA=e=>typeof e=="number",OG=(e,t)=>r=>t(e(r)),Yw=(...e)=>e.reduce(OG);function R4(e,t){return XA(e)?r=>jr(e,t,r):Ki.test(e)?N4(e,t):O4(e,t)}const A4=(e,t)=>{const r=[...e],i=r.length,s=e.map((c,u)=>R4(c,t[u]));return c=>{for(let u=0;u<i;u++)r[u]=s[u](c);return r}},kG=(e,t)=>{const r=Object.assign(Object.assign({},e),t),i={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(i[s]=R4(e[s],t[s]));return s=>{for(const c in i)r[c]=i[c](s);return r}};function eL(e){const t=pc.parse(e),r=t.length;let i=0,s=0,c=0;for(let u=0;u<r;u++)i||typeof t[u]=="number"?i++:t[u].hue!==void 0?c++:s++;return{parsed:t,numNumbers:i,numRGB:s,numHSL:c}}const O4=(e,t)=>{const r=pc.createTransformer(t),i=eL(e),s=eL(t);return i.numHSL===s.numHSL&&i.numRGB===s.numRGB&&i.numNumbers>=s.numNumbers?Yw(A4(i.parsed,s.parsed),r):(Rb(!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.`),u=>`${u>0?t:e}`)},DG=(e,t)=>r=>jr(e,t,r);function PG(e){if(typeof e=="number")return DG;if(typeof e=="string")return Ki.test(e)?N4:O4;if(Array.isArray(e))return A4;if(typeof e=="object")return kG}function MG(e,t,r){const i=[],s=r||PG(e[0]),c=e.length-1;for(let u=0;u<c;u++){let h=s(e[u],e[u+1]);if(t){const m=Array.isArray(t)?t[u]:t;h=Yw(m,h)}i.push(h)}return i}function IG([e,t],[r]){return i=>r(ob(e,t,i))}function LG(e,t){const r=e.length,i=r-1;return s=>{let c=0,u=!1;if(s<=e[0]?u=!0:s>=e[i]&&(c=i-1,u=!0),!u){let m=1;for(;m<r&&!(e[m]>s||m===i);m++);c=m-1}const h=ob(e[c],e[c+1],s);return t[c](h)}}function k4(e,t,{clamp:r=!0,ease:i,mixer:s}={}){const c=e.length;Ps(c===t.length,"Both input and output ranges must be the same length"),Ps(!i||!Array.isArray(i)||i.length===c-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[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const u=MG(t,i,s),h=c===2?IG(e,u):LG(e,u);return r?m=>h(Jx(e[0],e[c-1],m)):h}const qw=e=>t=>1-e(1-t),Ik=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FG=e=>t=>Math.pow(t,e),D4=e=>t=>t*t*((e+1)*t-e),zG=e=>{const t=D4(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},P4=1.525,BG=4/11,UG=8/11,jG=9/10,Lk=e=>e,Fk=FG(2),$G=qw(Fk),M4=Ik(Fk),I4=e=>1-Math.sin(Math.acos(e)),zk=qw(I4),VG=Ik(zk),Bk=D4(P4),HG=qw(Bk),WG=Ik(Bk),GG=zG(P4),YG=4356/361,qG=35442/1805,KG=16061/1805,ew=e=>{if(e===1||e===0)return e;const t=e*e;return e<BG?7.5625*t:e<UG?9.075*t-9.9*e+3.4:e<jG?YG*t-qG*e+KG:10.8*e*e-20.52*e+10.72},XG=qw(ew),ZG=e=>e<.5?.5*(1-ew(1-e*2)):.5*ew(e*2-1)+.5;function QG(e,t){return e.map(()=>t||M4).splice(0,e.length-1)}function JG(e){const t=e.length;return e.map((r,i)=>i!==0?i/(t-1):0)}function eY(e,t){return e.map(r=>r*t)}function Nx({from:e=0,to:t=1,ease:r,offset:i,duration:s=300}){const c={done:!1,value:e},u=Array.isArray(t)?t:[e,t],h=eY(i&&i.length===u.length?i:JG(u),s);function m(){return k4(h,u,{ease:Array.isArray(r)?r:QG(u,r)})}let v=m();return{next:b=>(c.value=v(b),c.done=b>=s,c),flipTarget:()=>{u.reverse(),v=m()}}}function tY({velocity:e=0,from:t=0,power:r=.8,timeConstant:i=350,restDelta:s=.5,modifyTarget:c}){const u={done:!1,value:t};let h=r*e;const m=t+h,v=c===void 0?m:c(m);return v!==m&&(h=v-t),{next:b=>{const x=-h*Math.exp(-b/i);return u.done=!(x>s||x<-s),u.value=u.done?v:v+x,u},flipTarget:()=>{}}}const tL={keyframes:Nx,spring:Mk,decay:tY};function nY(e){if(Array.isArray(e.to))return Nx;if(tL[e.type])return tL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Nx:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Mk:Nx}const L4=1/60*1e3,rY=typeof performance<"u"?()=>performance.now():()=>Date.now(),F4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rY()),L4);function aY(e){let t=[],r=[],i=0,s=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,b=!1)=>{const x=b&&s,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&s&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(s){c=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(m),u.has(b)&&(h.schedule(b),e())}s=!1,c&&(c=!1,h.process(m))}};return h}const iY=40;let ZA=!0,sb=!1,QA=!1;const zm={delta:0,timestamp:0},Ab=["read","update","preRender","render","postRender"],Kw=Ab.reduce((e,t)=>(e[t]=aY(()=>sb=!0),e),{}),oY=Ab.reduce((e,t)=>{const r=Kw[t];return e[t]=(i,s=!1,c=!1)=>(sb||uY(),r.schedule(i,s,c)),e},{}),sY=Ab.reduce((e,t)=>(e[t]=Kw[t].cancel,e),{});Ab.reduce((e,t)=>(e[t]=()=>Kw[t].process(zm),e),{});const lY=e=>Kw[e].process(zm),z4=e=>{sb=!1,zm.delta=ZA?L4:Math.max(Math.min(e-zm.timestamp,iY),1),zm.timestamp=e,QA=!0,Ab.forEach(lY),QA=!1,sb&&(ZA=!1,F4(z4))},uY=()=>{sb=!0,ZA=!0,QA||F4(z4)},cY=()=>zm;function B4(e,t,r=0){return e-t-r}function fY(e,t,r=0,i=!0){return i?B4(t+-e,t,r):t-(e-t)+r}function dY(e,t,r,i){return i?e>=t+r:e<=-r}const pY=e=>{const t=({delta:r})=>e(r);return{start:()=>oY.update(t,!0),stop:()=>sY.update(t)}};function U4(e){var t,r,{from:i,autoplay:s=!0,driver:c=pY,elapsed:u=0,repeat:h=0,repeatType:m="loop",repeatDelay:v=0,onPlay:b,onStop:x,onComplete:C,onRepeat:_,onUpdate:N}=e,A=Gw(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:I}=A,j,M=0,z=A.duration,U,V=!1,K=!0,X;const de=nY(A);!((r=(t=de).needsInterpolation)===null||r===void 0)&&r.call(t,i,I)&&(X=k4([0,100],[i,I],{clamp:!1}),i=0,I=100);const ve=de(Object.assign(Object.assign({},A),{from:i,to:I}));function se(){M++,m==="reverse"?(K=M%2===0,u=fY(u,z,v,K)):(u=B4(u,z,v),m==="mirror"&&ve.flipTarget()),V=!1,_&&_()}function be(){j.stop(),C&&C()}function Xe(ce){if(K||(ce=-ce),u+=ce,!V){const Re=ve.next(Math.max(0,u));U=Re.value,X&&(U=X(U)),V=K?Re.done:u<=0}N?.(U),V&&(M===0&&(z??(z=u)),M<h?dY(u,z,v,K)&&se():be())}function ie(){b?.(),j=c(Xe),j.start()}return s&&ie(),{stop:()=>{x?.(),j.stop()}}}function j4(e,t){return t?e*(1e3/t):0}function hY({from:e=0,velocity:t=0,min:r,max:i,power:s=.8,timeConstant:c=750,bounceStiffness:u=500,bounceDamping:h=10,restDelta:m=1,modifyTarget:v,driver:b,onUpdate:x,onComplete:C,onStop:_}){let N;function A(z){return r!==void 0&&z<r||i!==void 0&&z>i}function I(z){return r===void 0?i:i===void 0||Math.abs(r-z)<Math.abs(i-z)?r:i}function j(z){N?.stop(),N=U4(Object.assign(Object.assign({},z),{driver:b,onUpdate:U=>{var V;x?.(U),(V=z.onUpdate)===null||V===void 0||V.call(z,U)},onComplete:C,onStop:_}))}function M(z){j(Object.assign({type:"spring",stiffness:u,damping:h,restDelta:m},z))}if(A(e))M({from:e,velocity:t,to:I(e)});else{let z=s*t+e;typeof v<"u"&&(z=v(z));const U=I(z),V=U===r?-1:1;let K,X;const de=ve=>{K=X,X=ve,t=j4(ve-K,cY().delta),(V===1&&ve>U||V===-1&&ve<U)&&M({from:ve,to:U,velocity:t})};j({type:"decay",from:e,velocity:t,timeConstant:c,power:s,restDelta:m,modifyTarget:v,onUpdate:A(z)?de:void 0})}return{stop:()=>N?.stop()}}const JA=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),nL=e=>JA(e)&&e.hasOwnProperty("z"),K1=(e,t)=>Math.abs(e-t);function Uk(e,t){if(XA(e)&&XA(t))return K1(e,t);if(JA(e)&&JA(t)){const r=K1(e.x,t.x),i=K1(e.y,t.y),s=nL(e)&&nL(t)?K1(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2)+Math.pow(s,2))}}const $4=(e,t)=>1-3*t+3*e,V4=(e,t)=>3*t-6*e,H4=e=>3*e,tw=(e,t,r)=>(($4(t,r)*e+V4(t,r))*e+H4(t))*e,W4=(e,t,r)=>3*$4(t,r)*e*e+2*V4(t,r)*e+H4(t),mY=1e-7,vY=10;function gY(e,t,r,i,s){let c,u,h=0;do u=t+(r-t)/2,c=tw(u,i,s)-e,c>0?r=u:t=u;while(Math.abs(c)>mY&&++h<vY);return u}const yY=8,bY=.001;function SY(e,t,r,i){for(let s=0;s<yY;++s){const c=W4(t,r,i);if(c===0)return t;t-=(tw(t,r,i)-e)/c}return t}const Rx=11,X1=1/(Rx-1);function xY(e,t,r,i){if(e===t&&r===i)return Lk;const s=new Float32Array(Rx);for(let u=0;u<Rx;++u)s[u]=tw(u*X1,e,r);function c(u){let h=0,m=1;const v=Rx-1;for(;m!==v&&s[m]<=u;++m)h+=X1;--m;const b=(u-s[m])/(s[m+1]-s[m]),x=h+b*X1,C=W4(x,e,r);return C>=bY?SY(u,x,e,r):C===0?x:gY(u,h,h+X1,e,r)}return u=>u===0||u===1?u:tw(c(u),t,i)}function wY({onTap:e,onTapStart:t,onTapCancel:r,whileTap:i,visualElement:s}){const c=e||t||r||i,u=D.exports.useRef(!1),h=D.exports.useRef(null),m={passive:!(t||e||r||_)};function v(){h.current&&h.current(),h.current=null}function b(){return v(),u.current=!1,s.animationState&&s.animationState.setActive(wr.Tap,!1),!E4()}function x(N,A){!b()||(T4(s.getInstance(),N.target)?e&&e(N,A):r&&r(N,A))}function C(N,A){!b()||r&&r(N,A)}function _(N,A){v(),!u.current&&(u.current=!0,h.current=Yw(Fm(window,"pointerup",x,m),Fm(window,"pointercancel",C,m)),s.animationState&&s.animationState.setActive(wr.Tap,!0),t&&t(N,A))}Qx(s,"pointerdown",c?_:void 0,m),Pk(v)}const CY="production",jk=typeof process>"u"||process.env===void 0?CY:"development",rL=new Set;function $k(e,t,r){e||rL.has(t)||(console.warn(t),r&&console.warn(r),rL.add(t))}const eO=new WeakMap,WR=new WeakMap,_Y=e=>{const t=eO.get(e.target);t&&t(e)},EY=e=>{e.forEach(_Y)};function TY({root:e,...t}){const r=e||document;WR.has(r)||WR.set(r,{});const i=WR.get(r),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(EY,{root:e,...t})),i[s]}function NY(e,t,r){const i=TY(t);return eO.set(e,r),i.observe(e),()=>{eO.delete(e),i.unobserve(e)}}function RY({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:i,viewport:s={}}){const c=D.exports.useRef({hasEnteredView:!1,isInView:!1});let u=Boolean(t||r||i);s.once&&c.current.hasEnteredView&&(u=!1),(typeof IntersectionObserver>"u"?kY:OY)(u,c.current,e,s)}const AY={some:0,all:1};function OY(e,t,r,{root:i,margin:s,amount:c="some",once:u}){D.exports.useEffect(()=>{if(!e)return;const h={root:i?.current,rootMargin:s,threshold:typeof c=="number"?c:AY[c]},m=v=>{const{isIntersecting:b}=v;if(t.isInView===b||(t.isInView=b,u&&!b&&t.hasEnteredView))return;b&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(wr.InView,b);const x=r.getProps(),C=b?x.onViewportEnter:x.onViewportLeave;C&&C(v)};return NY(r.getInstance(),h,m)},[e,i,s,c])}function kY(e,t,r,{fallback:i=!0}){D.exports.useEffect(()=>{!e||!i||(jk!=="production"&&$k(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:s}=r.getProps();s&&s(null),r.animationState&&r.animationState.setActive(wr.InView,!0)}))},[e])}const Pf=e=>t=>(e(t),null),DY={inView:Pf(RY),tap:Pf(wY),focus:Pf(lG),hover:Pf(yG)};function Vk(){const e=D.exports.useContext(nv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,s=D.exports.useId();return D.exports.useEffect(()=>i(s),[]),!t&&r?[!1,()=>r&&r(s)]:[!0]}function PY(){return MY(D.exports.useContext(nv))}function MY(e){return e===null?!0:e.isPresent}function G4(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}const nw=e=>e*1e3,aL={linear:Lk,easeIn:Fk,easeInOut:M4,easeOut:$G,circIn:I4,circInOut:VG,circOut:zk,backIn:Bk,backInOut:WG,backOut:HG,anticipate:GG,bounceIn:XG,bounceInOut:ZG,bounceOut:ew},iL=e=>{if(Array.isArray(e)){Ps(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,i,s]=e;return xY(t,r,i,s)}else if(typeof e=="string")return Ps(aL[e]!==void 0,`Invalid easing type '${e}'`),aL[e];return e},IY=e=>Array.isArray(e)&&typeof e[0]!="number",oL=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&pc.test(t)&&!t.startsWith("url(")),vp=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Z1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GR=()=>({type:"keyframes",ease:"linear",duration:.3}),LY=e=>({type:"keyframes",duration:.8,values:e}),sL={x:vp,y:vp,z:vp,rotate:vp,rotateX:vp,rotateY:vp,rotateZ:vp,scaleX:Z1,scaleY:Z1,scale:Z1,opacity:GR,backgroundColor:GR,color:GR,default:Z1},FY=(e,t)=>{let r;return ib(t)?r=LY:r=sL[e]||sL.default,{to:t,...r(t)}},zY={...s4,color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:GA,WebkitFilter:GA},Hk=e=>zY[e];function Wk(e,t){var r;let i=Hk(e);return i!==GA&&(i=pc),(r=i.getAnimatableNone)===null||r===void 0?void 0:r.call(i,t)}const BY={current:!1};function UY({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:c,repeatType:u,repeatDelay:h,from:m,...v}){return!!Object.keys(v).length}let lL=!1;function jY({ease:e,times:t,yoyo:r,flip:i,loop:s,...c}){const u={...c};return t&&(u.offset=t),c.duration&&(u.duration=nw(c.duration)),c.repeatDelay&&(u.repeatDelay=nw(c.repeatDelay)),e&&(u.ease=IY(e)?e.map(iL):iL(e)),c.type==="tween"&&(u.type="keyframes"),(r||s||i)&&(Rb(!lL,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),lL=!0,r?u.repeatType="reverse":s?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=s||r||i||c.repeat),c.type!=="spring"&&(u.type="keyframes"),u}function $Y(e,t){var r,i;return(i=(r=(Gk(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&i!==void 0?i:0}function VY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function HY(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),VY(t),UY(e)||(e={...e,...FY(r,t.to)}),{...t,...jY(e)}}function WY(e,t,r,i,s){const c=Gk(i,e)||{};let u=c.from!==void 0?c.from:t.get();const h=oL(e,r);u==="none"&&h&&typeof r=="string"?u=Wk(e,r):uL(u)&&typeof r=="string"?u=cL(r):!Array.isArray(r)&&uL(r)&&typeof u=="string"&&(r=cL(u));const m=oL(e,u);Rb(m===h,`You are trying to animate ${e} from "${u}" to "${r}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${r} via the \`style\` property.`);function v(){const x={from:u,to:r,velocity:t.getVelocity(),onComplete:s,onUpdate:C=>t.set(C)};return c.type==="inertia"||c.type==="decay"?hY({...x,...c}):U4({...HY(c,x,e),onUpdate:C=>{x.onUpdate(C),c.onUpdate&&c.onUpdate(C)},onComplete:()=>{x.onComplete(),c.onComplete&&c.onComplete()}})}function b(){const x=g4(r);return t.set(x),s(),c.onUpdate&&c.onUpdate(x),c.onComplete&&c.onComplete(),{stop:()=>{}}}return!m||!h||c.type===!1?b:v}function uL(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function cL(e){return typeof e=="number"?0:Wk("",e)}function Gk(e,t){return e[t]||e.default||e}function Yk(e,t,r,i={}){return BY.current&&(i={type:!1}),t.start(s=>{let c,u;const h=WY(e,t,r,i,s),m=$Y(i,e),v=()=>u=h();return m?c=window.setTimeout(v,nw(m)):v(),()=>{clearTimeout(c),u&&u.stop()}})}const GY=e=>/^\-?\d*\.?\d+$/.test(e),YY=e=>/^0[^.\s]+$/.test(e),Y4=1/60*1e3,qY=typeof performance<"u"?()=>performance.now():()=>Date.now(),q4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(qY()),Y4);function KY(e){let t=[],r=[],i=0,s=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,b=!1)=>{const x=b&&s,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&s&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(s){c=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(m),u.has(b)&&(h.schedule(b),e())}s=!1,c&&(c=!1,h.process(m))}};return h}const XY=40;let tO=!0,lb=!1,nO=!1;const Bm={delta:0,timestamp:0},Ob=["read","update","preRender","render","postRender"],Xw=Ob.reduce((e,t)=>(e[t]=KY(()=>lb=!0),e),{}),uu=Ob.reduce((e,t)=>{const r=Xw[t];return e[t]=(i,s=!1,c=!1)=>(lb||QY(),r.schedule(i,s,c)),e},{}),ub=Ob.reduce((e,t)=>(e[t]=Xw[t].cancel,e),{}),YR=Ob.reduce((e,t)=>(e[t]=()=>Xw[t].process(Bm),e),{}),ZY=e=>Xw[e].process(Bm),K4=e=>{lb=!1,Bm.delta=tO?Y4:Math.max(Math.min(e-Bm.timestamp,XY),1),Bm.timestamp=e,nO=!0,Ob.forEach(ZY),nO=!1,lb&&(tO=!1,q4(K4))},QY=()=>{lb=!0,tO=!0,nO||q4(K4)},rO=()=>Bm;function qk(e,t){e.indexOf(t)===-1&&e.push(t)}function Kk(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Uy{constructor(){this.subscriptions=[]}add(t){return qk(this.subscriptions,t),()=>Kk(this.subscriptions,t)}notify(t,r,i){const s=this.subscriptions.length;if(!!s)if(s===1)this.subscriptions[0](t,r,i);else for(let c=0;c<s;c++){const u=this.subscriptions[c];u&&u(t,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const JY=e=>!isNaN(parseFloat(e));class eq{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Uy,this.velocityUpdateSubscribers=new Uy,this.renderSubscribers=new Uy,this.canTrackVelocity=!1,this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:c}=rO();this.lastUpdated!==c&&(this.timeDelta=s,this.lastUpdated=c,uu.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),i&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>uu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=JY(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,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?j4(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).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 Ym(e){return new eq(e)}const X4=e=>t=>t.test(e),tq={test:e=>e==="auto",parse:e=>e},Z4=[Wp,Wt,lu,_f,kW,OW,tq],wy=e=>Z4.find(X4(e)),nq=[...Z4,Ki,pc],rq=e=>nq.find(X4(e));function aq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.get()),t}function iq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.getVelocity()),t}function Zw(e,t,r){const i=e.getProps();return v4(i,t,r!==void 0?r:i.custom,aq(e),iq(e))}function oq(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ym(r))}function sq(e,t){const r=Zw(e,t);let{transitionEnd:i={},transition:s={},...c}=r?e.makeTargetAnimatable(r,!1):{};c={...c,...i};for(const u in c){const h=g4(c[u]);oq(e,u,h)}}function lq(e,t,r){var i,s;const c=Object.keys(t).filter(h=>!e.hasValue(h)),u=c.length;if(!!u)for(let h=0;h<u;h++){const m=c[h],v=t[m];let b=null;Array.isArray(v)&&(b=v[0]),b===null&&(b=(s=(i=r[m])!==null&&i!==void 0?i:e.readValue(m))!==null&&s!==void 0?s:t[m]),b!=null&&(typeof b=="string"&&(GY(b)||YY(b))?b=parseFloat(b):!rq(b)&&pc.test(v)&&(b=Wk(m,v)),e.addValue(m,Ym(b)),r[m]===void 0&&(r[m]=b),e.setBaseTarget(m,b))}}function uq(e,t){return t?(t[e]||t.default||t).from:void 0}function cq(e,t,r){var i;const s={};for(const c in e){const u=uq(c,t);s[c]=u!==void 0?u:(i=r.getValue(c))===null||i===void 0?void 0:i.get()}return s}function rw(e){return Boolean(pu(e)&&e.add)}function fq(e,t,r={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const s=t.map(c=>aO(e,c,r));i=Promise.all(s)}else if(typeof t=="string")i=aO(e,t,r);else{const s=typeof t=="function"?Zw(e,t,r.custom):t;i=Q4(e,s,r)}return i.then(()=>e.notifyAnimationComplete(t))}function aO(e,t,r={}){var i;const s=Zw(e,t,r.custom);let{transition:c=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(c=r.transitionOverride);const u=s?()=>Q4(e,s,r):()=>Promise.resolve(),h=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:b=0,staggerChildren:x,staggerDirection:C}=c;return dq(e,t,b+v,x,C,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[v,b]=m==="beforeChildren"?[u,h]:[h,u];return v().then(b)}else return Promise.all([u(),h(r.delay)])}function Q4(e,t,{delay:r=0,transitionOverride:i,type:s}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:h,...m}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(u=i);const b=[],x=s&&((c=e.animationState)===null||c===void 0?void 0:c.getState()[s]);for(const C in m){const _=e.getValue(C),N=m[C];if(!_||N===void 0||x&&hq(x,C))continue;let A={delay:r,...u};e.shouldReduceMotion&&Eb.has(C)&&(A={...A,type:!1,delay:0});let I=Yk(C,_,N,A);rw(v)&&(v.add(C),I=I.then(()=>v.remove(C))),b.push(I)}return Promise.all(b).then(()=>{h&&sq(e,h)})}function dq(e,t,r=0,i=0,s=1,c){const u=[],h=(e.variantChildren.size-1)*i,m=s===1?(v=0)=>v*i:(v=0)=>h-v*i;return Array.from(e.variantChildren).sort(pq).forEach((v,b)=>{u.push(aO(v,t,{...c,delay:r+m(b)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(u)}function pq(e,t){return e.sortNodePosition(t)}function hq({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}const Xk=[wr.Animate,wr.InView,wr.Focus,wr.Hover,wr.Tap,wr.Drag,wr.Exit],mq=[...Xk].reverse(),vq=Xk.length;function gq(e){return t=>Promise.all(t.map(({animation:r,options:i})=>fq(e,r,i)))}function yq(e){let t=gq(e);const r=Sq();let i=!0;const s=(m,v)=>{const b=Zw(e,v);if(b){const{transition:x,transitionEnd:C,..._}=b;m={...m,..._,...C}}return m};function c(m){t=m(e)}function u(m,v){var b;const x=e.getProps(),C=e.getVariantContext(!0)||{},_=[],N=new Set;let A={},I=1/0;for(let M=0;M<vq;M++){const z=mq[M],U=r[z],V=(b=x[z])!==null&&b!==void 0?b:C[z],K=nb(V),X=z===v?U.isActive:null;X===!1&&(I=M);let de=V===C[z]&&V!==x[z]&&K;if(de&&i&&e.manuallyAnimateOnMount&&(de=!1),U.protectedKeys={...A},!U.isActive&&X===null||!V&&!U.prevProp||$w(V)||typeof V=="boolean")continue;const ve=bq(U.prevProp,V);let se=ve||z===v&&U.isActive&&!de&&K||M>I&&K;const be=Array.isArray(V)?V:[V];let Xe=be.reduce(s,{});X===!1&&(Xe={});const{prevResolvedValues:ie={}}=U,ce={...ie,...Xe},Re=Ce=>{se=!0,N.delete(Ce),U.needsAnimating[Ce]=!0};for(const Ce in ce){const oe=Xe[Ce],Se=ie[Ce];A.hasOwnProperty(Ce)||(oe!==Se?ib(oe)&&ib(Se)?!G4(oe,Se)||ve?Re(Ce):U.protectedKeys[Ce]=!0:oe!==void 0?Re(Ce):N.add(Ce):oe!==void 0&&N.has(Ce)?Re(Ce):U.protectedKeys[Ce]=!0)}U.prevProp=V,U.prevResolvedValues=Xe,U.isActive&&(A={...A,...Xe}),i&&e.blockInitialAnimation&&(se=!1),se&&!de&&_.push(...be.map(Ce=>({animation:Ce,options:{type:z,...m}})))}if(N.size){const M={};N.forEach(z=>{const U=e.getBaseTarget(z);U!==void 0&&(M[z]=U)}),_.push({animation:M})}let j=Boolean(_.length);return i&&x.initial===!1&&!e.manuallyAnimateOnMount&&(j=!1),i=!1,j?t(_):Promise.resolve()}function h(m,v,b){var x;if(r[m].isActive===v)return Promise.resolve();(x=e.variantChildren)===null||x===void 0||x.forEach(_=>{var N;return(N=_.animationState)===null||N===void 0?void 0:N.setActive(m,v)}),r[m].isActive=v;const C=u(b,m);for(const _ in r)r[_].protectedKeys={};return C}return{animateChanges:u,setActive:h,setAnimateFunction:c,getState:()=>r}}function bq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!G4(t,e):!1}function gp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sq(){return{[wr.Animate]:gp(!0),[wr.InView]:gp(),[wr.Hover]:gp(),[wr.Tap]:gp(),[wr.Drag]:gp(),[wr.Focus]:gp(),[wr.Exit]:gp()}}const xq={animation:Pf(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=yq(e)),$w(t)&&D.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Pf(e=>{const{custom:t,visualElement:r}=e,[i,s]=Vk(),c=D.exports.useContext(nv);D.exports.useEffect(()=>{r.isPresent=i;const u=r.animationState&&r.animationState.setActive(wr.Exit,!i,{custom:c&&c.custom||t});u&&!i&&u.then(s)},[i])})};class J4{constructor(t,r,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=KR(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=Uk(v.offset,{x:0,y:0})>=3;if(!b&&!x)return;const{point:C}=v,{timestamp:_}=rO();this.history.push({...C,timestamp:_});const{onStart:N,onMove:A}=this.handlers;b||(N&&N(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=qR(b,this.transformPagePoint),b4(v)&&v.buttons===0){this.handlePointerUp(v,b);return}uu.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:C}=this.handlers,_=KR(qR(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,_),C&&C(v,_)},S4(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=i;const s=Dk(t),c=qR(s,this.transformPagePoint),{point:u}=c,{timestamp:h}=rO();this.history=[{...u,timestamp:h}];const{onSessionStart:m}=r;m&&m(t,KR(c,this.history)),this.removeListeners=Yw(Fm(window,"pointermove",this.handlePointerMove),Fm(window,"pointerup",this.handlePointerUp),Fm(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ub.update(this.updatePoint)}}function qR(e,t){return t?{point:t(e.point)}:e}function fL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function KR({point:e},t){return{point:e,delta:fL(e,ez(t)),offset:fL(e,wq(t)),velocity:Cq(t,.1)}}function wq(e){return e[0]}function ez(e){return e[e.length-1]}function Cq(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const s=ez(e);for(;r>=0&&(i=e[r],!(s.timestamp-i.timestamp>nw(t)));)r--;if(!i)return{x:0,y:0};const c=(s.timestamp-i.timestamp)/1e3;if(c===0)return{x:0,y:0};const u={x:(s.x-i.x)/c,y:(s.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Yo(e){return e.max-e.min}function dL(e,t=0,r=.01){return Uk(e,t)<r}function pL(e,t,r,i=.5){e.origin=i,e.originPoint=jr(t.min,t.max,e.origin),e.scale=Yo(r)/Yo(t),(dL(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jr(r.min,r.max,e.origin)-e.originPoint,(dL(e.translate)||isNaN(e.translate))&&(e.translate=0)}function jy(e,t,r,i){pL(e.x,t.x,r.x,i?.originX),pL(e.y,t.y,r.y,i?.originY)}function hL(e,t,r){e.min=r.min+t.min,e.max=e.min+Yo(t)}function _q(e,t,r){hL(e.x,t.x,r.x),hL(e.y,t.y,r.y)}function mL(e,t,r){e.min=t.min-r.min,e.max=e.min+Yo(t)}function $y(e,t,r){mL(e.x,t.x,r.x),mL(e.y,t.y,r.y)}function Eq(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?jr(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?jr(r,e,i.max):Math.min(e,r)),e}function vL(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Tq(e,{top:t,left:r,bottom:i,right:s}){return{x:vL(e.x,r,s),y:vL(e.y,t,i)}}function gL(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function Nq(e,t){return{x:gL(e.x,t.x),y:gL(e.y,t.y)}}function Rq(e,t){let r=.5;const i=Yo(e),s=Yo(t);return s>i?r=ob(t.min,t.max-i,e.min):i>s&&(r=ob(e.min,e.max-s,t.min)),Jx(0,1,r)}function Aq(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const iO=.35;function Oq(e=iO){return e===!1?e=0:e===!0&&(e=iO),{x:yL(e,"left","right"),y:yL(e,"top","bottom")}}function yL(e,t,r){return{min:bL(e,t),max:bL(e,r)}}function bL(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}const SL=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vy=()=>({x:SL(),y:SL()}),xL=()=>({min:0,max:0}),oi=()=>({x:xL(),y:xL()});function eu(e){return[e("x"),e("y")]}function tz({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function kq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dq(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function XR(e){return e===void 0||e===1}function nz({scale:e,scaleX:t,scaleY:r}){return!XR(e)||!XR(t)||!XR(r)}function Ef(e){return nz(e)||wL(e.x)||wL(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function wL(e){return e&&e!=="0%"}function aw(e,t,r){const i=e-r,s=t*i;return r+s}function CL(e,t,r,i,s){return s!==void 0&&(e=aw(e,s,i)),aw(e,r,i)+t}function oO(e,t=0,r=1,i,s){e.min=CL(e.min,t,r,i,s),e.max=CL(e.max,t,r,i,s)}function rz(e,{x:t,y:r}){oO(e.x,t.translate,t.scale,t.originPoint),oO(e.y,r.translate,r.scale,r.originPoint)}function Pq(e,t,r,i=!1){var s,c;const u=r.length;if(!u)return;t.x=t.y=1;let h,m;for(let v=0;v<u;v++)h=r[v],m=h.projectionDelta,((c=(s=h.instance)===null||s===void 0?void 0:s.style)===null||c===void 0?void 0:c.display)!=="contents"&&(i&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Pm(e,{x:-h.scroll.x,y:-h.scroll.y}),m&&(t.x*=m.x.scale,t.y*=m.y.scale,rz(e,m)),i&&Ef(h.latestValues)&&Pm(e,h.latestValues))}function Rf(e,t){e.min=e.min+t,e.max=e.max+t}function _L(e,t,[r,i,s]){const c=t[s]!==void 0?t[s]:.5,u=jr(e.min,e.max,c);oO(e,t[r],t[i],u,t.scale)}const Mq=["x","scaleX","originX"],Iq=["y","scaleY","originY"];function Pm(e,t){_L(e.x,t,Mq),_L(e.y,t,Iq)}function az(e,t){return tz(Dq(e.getBoundingClientRect(),t))}function Lq(e,t,r){const i=az(e,r),{scroll:s}=t;return s&&(Rf(i.x,s.x),Rf(i.y,s.y)),i}const Fq=new WeakMap;class zq{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=oi(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;const i=h=>{this.stopAnimation(),r&&this.snapToCursor(Dk(h,"page").point)},s=(h,m)=>{var v;const{drag:b,dragPropagation:x,onDragStart:C}=this.getProps();b&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_4(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),eu(_=>{var N,A;let I=this.getAxisMotionValue(_).get()||0;if(lu.test(I)){const j=(A=(N=this.visualElement.projection)===null||N===void 0?void 0:N.layout)===null||A===void 0?void 0:A.actual[_];j&&(I=Yo(j)*(parseFloat(I)/100))}this.originPoint[_]=I}),C?.(h,m),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(wr.Drag,!0))},c=(h,m)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:x,onDrag:C}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:_}=m;if(b&&this.currentDirection===null){this.currentDirection=Bq(_),this.currentDirection!==null&&x?.(this.currentDirection);return}this.updateAxis("x",m.point,_),this.updateAxis("y",m.point,_),this.visualElement.syncRender(),C?.(h,m)},u=(h,m)=>this.stop(h,m);this.panSession=new J4(t,{onSessionStart:i,onStart:s,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:c}=this.getProps();c?.(t,r)}cancel(){var t,r;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:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(wr.Drag,!1)}updateAxis(t,r,i){const{drag:s}=this.getProps();if(!i||!Q1(t,s,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=Eq(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:i}=this.visualElement.projection||{},s=this.constraints;t&&Dm(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Tq(i.actual,t):this.constraints=!1,this.elastic=Oq(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eu(c=>{this.getAxisMotionValue(c)&&(this.constraints[c]=Aq(i.actual[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Dm(t))return!1;const i=t.current;Ps(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const c=Lq(i,s.root,this.visualElement.getTransformPagePoint());let u=Nq(s.layout.actual,c);if(r){const h=r(kq(u));this.hasMutatedConstraints=!!h,h&&(u=tz(h))}return u}startAnimation(t){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},v=eu(b=>{var x;if(!Q1(b,r,this.currentDirection))return;let C=(x=m?.[b])!==null&&x!==void 0?x:{};u&&(C={min:0,max:0});const _=s?200:1e6,N=s?40:1e7,A={type:"inertia",velocity:i?t[b]:0,bounceStiffness:_,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...c,...C};return this.startAxisValueAnimation(b,A)});return Promise.all(v).then(h)}startAxisValueAnimation(t,r){const i=this.getAxisMotionValue(t);return Yk(t,i,0,r)}stopAnimation(){eu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,i;const s="_drag"+t.toUpperCase(),c=this.visualElement.getProps()[s];return c||this.visualElement.getValue(t,(i=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&i!==void 0?i:0)}snapToCursor(t){eu(r=>{const{drag:i}=this.getProps();if(!Q1(r,i,this.currentDirection))return;const{projection:s}=this.visualElement,c=this.getAxisMotionValue(r);if(s&&s.layout){const{min:u,max:h}=s.layout.actual[r];c.set(t[r]-jr(u,h,.5))}})}scalePositionWithinConstraints(){var t;const{drag:r,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Dm(i)||!s||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};eu(h=>{const m=this.getAxisMotionValue(h);if(m){const v=m.get();c[h]=Rq({min:v,max:v},this.constraints[h])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=u?u({},""):"none",(t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout(),this.resolveConstraints(),eu(h=>{if(!Q1(h,r,null))return;const m=this.getAxisMotionValue(h),{min:v,max:b}=this.constraints[h];m.set(jr(v,b,c[h]))})}addListeners(){var t;Fq.set(this.visualElement,this);const r=this.visualElement.getInstance(),i=Fm(r,"pointerdown",v=>{const{drag:b,dragListener:x=!0}=this.getProps();b&&x&&this.start(v)}),s=()=>{const{dragConstraints:v}=this.getProps();Dm(v)&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,u=c.addEventListener("measure",s);c&&!c.layout&&((t=c.root)===null||t===void 0||t.updateScroll(),c.updateLayout()),s();const h=Ww(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b})=>{this.isDragging&&b&&(eu(x=>{const C=this.getAxisMotionValue(x);!C||(this.originPoint[x]+=v[x].translate,C.set(C.get()+v[x].translate))}),this.visualElement.syncRender())});return()=>{h(),i(),u(),m?.()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:c=!1,dragElastic:u=iO,dragMomentum:h=!0}=t;return{...t,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function Q1(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Bq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Uq(e){const{dragControls:t,visualElement:r}=e,i=Hw(()=>new zq(r));D.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),D.exports.useEffect(()=>i.addListeners(),[i])}function jq({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:i,visualElement:s}){const c=e||t||r||i,u=D.exports.useRef(null),{transformPagePoint:h}=D.exports.useContext(_k),m={onSessionStart:i,onStart:t,onMove:e,onEnd:(b,x)=>{u.current=null,r&&r(b,x)}};D.exports.useEffect(()=>{u.current!==null&&u.current.updateHandlers(m)});function v(b){u.current=new J4(b,m,{transformPagePoint:h})}Qx(s,"pointerdown",c&&v),Pk(()=>u.current&&u.current.end())}const $q={pan:Pf(jq),drag:Pf(Uq)},sO={current:null},iz={current:!1};function Vq(){if(iz.current=!0,!!Hp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sO.current=e.matches;e.addListener(t),t()}else sO.current=!1}const J1=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Hq(){const e=J1.map(()=>new Uy),t={},r={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{J1.forEach(s=>{var c;const u="on"+s,h=i[u];(c=t[s])===null||c===void 0||c.call(t),h&&(t[s]=r[u](h))})}};return e.forEach((i,s)=>{r["on"+J1[s]]=c=>i.add(c),r["notify"+J1[s]]=(...c)=>i.notify(...c)}),r}function Wq(e,t,r){const{willChange:i}=t;for(const s in t){const c=t[s],u=r[s];if(pu(c))e.addValue(s,c),rw(i)&&i.add(s),$k(c.version==="7.3.5",`Attempting to mix Framer Motion versions ${c.version} with 7.3.5 may not work as expected.`);else if(pu(u))e.addValue(s,Ym(c)),rw(i)&&i.remove(s);else if(u!==c)if(e.hasValue(s)){const h=e.getValue(s);!h.hasAnimated&&h.set(c)}else{const h=e.getStaticValue(s);e.addValue(s,Ym(h!==void 0?h:c))}}for(const s in r)t[s]===void 0&&e.removeValue(s);return t}const oz=Object.keys(rb),Gq=oz.length,sz=({treeType:e="",build:t,getBaseTarget:r,makeTargetAnimatable:i,measureViewportBox:s,render:c,readValueFromInstance:u,removeValueFromRenderState:h,sortNodePosition:m,scrapeMotionValuesFromProps:v})=>({parent:b,props:x,presenceId:C,blockInitialAnimation:_,visualState:N,reducedMotionConfig:A},I={})=>{let j=!1;const{latestValues:M,renderState:z}=N;let U;const V=Hq(),K=new Map,X=new Map;let de={};const ve={...M};let se;function be(){!U||!j||(Xe(),c(U,z,x.style,Te.projection))}function Xe(){t(Te,z,M,I,x)}function ie(){V.notifyUpdate(M)}function ce(pe,we){const Ie=we.onChange(Ye=>{M[pe]=Ye,x.onUpdate&&uu.update(ie,!1,!0)}),Le=we.onRenderRequest(Te.scheduleRender);X.set(pe,()=>{Ie(),Le()})}const{willChange:Re,...Ce}=v(x);for(const pe in Ce){const we=Ce[pe];M[pe]!==void 0&&pu(we)&&(we.set(M[pe],!1),rw(Re)&&Re.add(pe))}const oe=Vw(x),Se=X3(x),Te={treeType:e,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:C,shouldReduceMotion:null,variantChildren:Se?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(b?.isMounted()),blockInitialAnimation:_,isMounted:()=>Boolean(U),mount(pe){j=!0,U=Te.current=pe,Te.projection&&Te.projection.mount(pe),Se&&b&&!oe&&(se=b?.addVariantChild(Te)),K.forEach((we,Ie)=>ce(Ie,we)),iz.current||Vq(),Te.shouldReduceMotion=A==="never"?!1:A==="always"?!0:sO.current,b?.children.add(Te),Te.setProps(x)},unmount(){var pe;(pe=Te.projection)===null||pe===void 0||pe.unmount(),ub.update(ie),ub.render(be),X.forEach(we=>we()),se?.(),b?.children.delete(Te),V.clearAllListeners(),U=void 0,j=!1},loadFeatures(pe,we,Ie,Le,Ye,st){const mt=[];jk!=="production"&&Ie&&we&&Ps(!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 Gt=0;Gt<Gq;Gt++){const Qe=oz[Gt],{isEnabled:vt,Component:Et}=rb[Qe];vt(pe)&&Et&&mt.push(D.exports.createElement(Et,{key:Qe,...pe,visualElement:Te}))}if(!Te.projection&&Ye){Te.projection=new Ye(Le,Te.getLatestValues(),b&&b.projection);const{layoutId:Gt,layout:Qe,drag:vt,dragConstraints:Et,layoutScroll:zt}=pe;Te.projection.setOptions({layoutId:Gt,layout:Qe,alwaysMeasureLayout:Boolean(vt)||Et&&Dm(Et),visualElement:Te,scheduleRender:()=>Te.scheduleRender(),animationType:typeof Qe=="string"?Qe:"both",initialPromotionConfig:st,layoutScroll:zt})}return mt},addVariantChild(pe){var we;const Ie=Te.getClosestVariantNode();if(Ie)return(we=Ie.variantChildren)===null||we===void 0||we.add(pe),()=>Ie.variantChildren.delete(pe)},sortNodePosition(pe){return!m||e!==pe.treeType?0:m(Te.getInstance(),pe.getInstance())},getClosestVariantNode:()=>Se?Te:b?.getClosestVariantNode(),getLayoutId:()=>x.layoutId,getInstance:()=>U,getStaticValue:pe=>M[pe],setStaticValue:(pe,we)=>M[pe]=we,getLatestValues:()=>M,setVisibility(pe){Te.isVisible!==pe&&(Te.isVisible=pe,Te.scheduleRender())},makeTargetAnimatable(pe,we=!0){return i(Te,pe,x,we)},measureViewportBox(){return s(U,x)},addValue(pe,we){Te.hasValue(pe)&&Te.removeValue(pe),K.set(pe,we),M[pe]=we.get(),ce(pe,we)},removeValue(pe){var we;K.delete(pe),(we=X.get(pe))===null||we===void 0||we(),X.delete(pe),delete M[pe],h(pe,z)},hasValue:pe=>K.has(pe),getValue(pe,we){let Ie=K.get(pe);return Ie===void 0&&we!==void 0&&(Ie=Ym(we),Te.addValue(pe,Ie)),Ie},forEachValue:pe=>K.forEach(pe),readValue:pe=>M[pe]!==void 0?M[pe]:u(U,pe,I),setBaseTarget(pe,we){ve[pe]=we},getBaseTarget(pe){if(r){const we=r(x,pe);if(we!==void 0&&!pu(we))return we}return ve[pe]},...V,build(){return Xe(),z},scheduleRender(){uu.render(be,!1,!0)},syncRender:be,setProps(pe){(pe.transformTemplate||x.transformTemplate)&&Te.scheduleRender(),x=pe,V.updatePropListeners(pe),de=Wq(Te,v(x),de)},getProps:()=>x,getVariant:pe=>{var we;return(we=x.variants)===null||we===void 0?void 0:we[pe]},getDefaultTransition:()=>x.transition,getTransformPagePoint:()=>x.transformPagePoint,getVariantContext(pe=!1){if(pe)return b?.getVariantContext();if(!oe){const Ie=b?.getVariantContext()||{};return x.initial!==void 0&&(Ie.initial=x.initial),Ie}const we={};for(let Ie=0;Ie<Yq;Ie++){const Le=lz[Ie],Ye=x[Le];(nb(Ye)||Ye===!1)&&(we[Le]=Ye)}return we}};return Te},lz=["initial",...Xk],Yq=lz.length;function lO(e){return typeof e=="string"&&e.startsWith("var(--")}const uz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function qq(e){const t=uz.exec(e);if(!t)return[,];const[,r,i]=t;return[r,i]}const Kq=4;function uO(e,t,r=1){Ps(r<=Kq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,s]=qq(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);return c?c.trim():lO(s)?uO(s,t,r+1):s}function Xq(e,{...t},r){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.forEachValue(s=>{const c=s.get();if(!lO(c))return;const u=uO(c,i);u&&s.set(u)});for(const s in t){const c=t[s];if(!lO(c))continue;const u=uO(c,i);!u||(t[s]=u,r&&r[s]===void 0&&(r[s]=c))}return{target:t,transitionEnd:r}}const Zq=new Set(["width","height","top","left","right","bottom","x","y"]),cz=e=>Zq.has(e),Qq=e=>Object.keys(e).some(cz),fz=(e,t)=>{e.set(t,!1),e.set(t)},ex=e=>e===Wp||e===Wt;var EL;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(EL||(EL={}));const TL=(e,t)=>parseFloat(e.split(", ")[t]),NL=(e,t)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return TL(s[1],t);{const c=i.match(/^matrix\((.+)\)$/);return c?TL(c[1],e):0}},Jq=new Set(["x","y","z"]),eK=Xx.filter(e=>!Jq.has(e));function tK(e){const t=[];return eK.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const RL={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:NL(4,13),y:NL(5,14)},nK=(e,t,r)=>{const i=t.measureViewportBox(),s=t.getInstance(),c=getComputedStyle(s),{display:u}=c,h={};u==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(v=>{h[v]=RL[v](i,c)}),t.syncRender();const m=t.measureViewportBox();return r.forEach(v=>{const b=t.getValue(v);fz(b,h[v]),e[v]=RL[v](m,c)}),e},rK=(e,t,r={},i={})=>{t={...t},i={...i};const s=Object.keys(t).filter(cz);let c=[],u=!1;const h=[];if(s.forEach(m=>{const v=e.getValue(m);if(!e.hasValue(m))return;let b=r[m],x=wy(b);const C=t[m];let _;if(ib(C)){const N=C.length,A=C[0]===null?1:0;b=C[A],x=wy(b);for(let I=A;I<N;I++)_?Ps(wy(C[I])===_,"All keyframes must be of the same type"):(_=wy(C[I]),Ps(_===x||ex(x)&&ex(_),"Keyframes must be of the same dimension as the current value"))}else _=wy(C);if(x!==_)if(ex(x)&&ex(_)){const N=v.get();typeof N=="string"&&v.set(parseFloat(N)),typeof C=="string"?t[m]=parseFloat(C):Array.isArray(C)&&_===Wt&&(t[m]=C.map(parseFloat))}else x?.transform&&_?.transform&&(b===0||C===0)?b===0?v.set(_.transform(b)):t[m]=x.transform(C):(u||(c=tK(e),u=!0),h.push(m),i[m]=i[m]!==void 0?i[m]:t[m],fz(v,C))}),h.length){const m=h.indexOf("height")>=0?window.pageYOffset:null,v=nK(t,e,h);return c.length&&c.forEach(([b,x])=>{e.getValue(b).set(x)}),e.syncRender(),Hp&&m!==null&&window.scrollTo({top:m}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function aK(e,t,r,i){return Qq(t)?rK(e,t,r,i):{target:t,transitionEnd:i}}const iK=(e,t,r,i)=>{const s=Xq(e,t,i);return t=s.target,i=s.transitionEnd,aK(e,t,r,i)};function oK(e){return window.getComputedStyle(e)}const dz={treeType:"dom",readValueFromInstance(e,t){if(Eb.has(t)){const r=Hk(t);return r&&r.default||0}else{const r=oK(e),i=(J3(t)?r.getPropertyValue(t):r[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox(e,{transformPagePoint:t}){return az(e,t)},resetTransform(e,t,r){const{transformTemplate:i}=r;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:r,...i},{transformValues:s},c=!0){let u=cq(i,t||{},e);if(s&&(r&&(r=s(r)),i&&(i=s(i)),u&&(u=s(u))),c){lq(e,i,u);const h=iK(e,i,u,r);r=h.transitionEnd,i=h.target}return{transition:t,transitionEnd:r,...i}},scrapeMotionValuesFromProps:kk,build(e,t,r,i,s){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Rk(t,r,i,s.transformTemplate)},render:d4},sK=sz(dz),lK=sz({...dz,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var r;return Eb.has(t)?((r=Hk(t))===null||r===void 0?void 0:r.default)||0:(t=p4.has(t)?t:f4(t),e.getAttribute(t))},scrapeMotionValuesFromProps:m4,build(e,t,r,i,s){Ok(t,r,i,s.transformTemplate)},render:h4}),uK=(e,t)=>Tk(e)?lK(t,{enableHardwareAcceleration:!1}):sK(t,{enableHardwareAcceleration:!0});function AL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cy={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Wt.test(e))e=parseFloat(e);else return e;const r=AL(e,t.target.x),i=AL(e,t.target.y);return`${r}% ${i}%`}},OL="_$css",cK={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,s=e.includes("var("),c=[];s&&(e=e.replace(uz,_=>(c.push(_),OL)));const u=pc.parse(e);if(u.length>5)return i;const h=pc.createTransformer(e),m=typeof u[0]!="number"?1:0,v=r.x.scale*t.x,b=r.y.scale*t.y;u[0+m]/=v,u[1+m]/=b;const x=jr(v,b,.5);typeof u[2+m]=="number"&&(u[2+m]/=x),typeof u[3+m]=="number"&&(u[3+m]/=x);let C=h(u);if(s){let _=0;C=C.replace(OL,()=>{const N=c[_];return _++,N})}return C}};var fK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class dK extends Ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:c}=t;_W(hK),c&&(r.group&&r.group.add(c),i&&i.register&&s&&i.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Fy.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:i,drag:s,isPresent:c}=this.props,u=i.projection;return u&&(u.isPresent=c,s||t.layoutDependency!==r||r===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||uu.postRender(()=>{var h;!((h=u.getStack())===null||h===void 0)&&h.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:r,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),r?.group&&r.group.remove(s),i?.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function pK(e){const[t,r]=Vk(),i=D.exports.useContext(Ek);return k(dK,{...e,layoutGroup:i,switchLayoutGroup:D.exports.useContext(Z3),isPresent:t,safeToRemove:r},void 0,!1,{fileName:fK,lineNumber:110,columnNumber:13},this)}const hK={borderRadius:{...Cy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cy,borderTopRightRadius:Cy,borderBottomLeftRadius:Cy,borderBottomRightRadius:Cy,boxShadow:cK},mK={measureLayout:pK};function vK(e,t,r={}){const i=pu(e)?e:Ym(e);return Yk("",i,t,r),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const pz=["TopLeft","TopRight","BottomLeft","BottomRight"],gK=pz.length,kL=e=>typeof e=="string"?parseFloat(e):e,DL=e=>typeof e=="number"||Wt.test(e);function yK(e,t,r,i,s,c){var u,h,m,v;s?(e.opacity=jr(0,(u=r.opacity)!==null&&u!==void 0?u:1,bK(i)),e.opacityExit=jr((h=t.opacity)!==null&&h!==void 0?h:1,0,SK(i))):c&&(e.opacity=jr((m=t.opacity)!==null&&m!==void 0?m:1,(v=r.opacity)!==null&&v!==void 0?v:1,i));for(let b=0;b<gK;b++){const x=`border${pz[b]}Radius`;let C=PL(t,x),_=PL(r,x);if(C===void 0&&_===void 0)continue;C||(C=0),_||(_=0),C===0||_===0||DL(C)===DL(_)?(e[x]=Math.max(jr(kL(C),kL(_),i),0),(lu.test(_)||lu.test(C))&&(e[x]+="%")):e[x]=_}(t.rotate||r.rotate)&&(e.rotate=jr(t.rotate||0,r.rotate||0,i))}function PL(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}const bK=hz(0,.5,zk),SK=hz(.5,.95,Lk);function hz(e,t,r){return i=>i<e?0:i>t?1:r(ob(e,t,i))}function ML(e,t){e.min=t.min,e.max=t.max}function vl(e,t){ML(e.x,t.x),ML(e.y,t.y)}function IL(e,t,r,i,s){return e-=t,e=aw(e,1/r,i),s!==void 0&&(e=aw(e,1/s,i)),e}function xK(e,t=0,r=1,i=.5,s,c=e,u=e){if(lu.test(t)&&(t=parseFloat(t),t=jr(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=jr(c.min,c.max,i);e===c&&(h-=t),e.min=IL(e.min,t,r,h,s),e.max=IL(e.max,t,r,h,s)}function LL(e,t,[r,i,s],c,u){xK(e,t[r],t[i],t[s],t.scale,c,u)}const wK=["x","scaleX","originX"],CK=["y","scaleY","originY"];function FL(e,t,r,i){LL(e.x,t,wK,r?.x,i?.x),LL(e.y,t,CK,r?.y,i?.y)}function zL(e){return e.translate===0&&e.scale===1}function mz(e){return zL(e.x)&&zL(e.y)}function vz(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 BL(e){return Yo(e.x)/Yo(e.y)}function _K(e,t,r=.01){return Uk(e,t)<=r}class EK{constructor(){this.members=[]}add(t){qk(this.members,t),t.scheduleRender()}remove(t){if(Kk(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(s=>t===s);if(r===0)return!1;let i;for(let s=r;s>=0;s--){const c=this.members[s];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(t,r){var i;const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,r&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues,t.snapshot.isShared=!0),!((i=t.root)===null||i===void 0)&&i.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:c}=t.options;c===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,i,s,c,u;(i=(r=t.options).onExitComplete)===null||i===void 0||i.call(r),(u=(s=t.resumingFrom)===null||s===void 0?void 0:(c=s.options).onExitComplete)===null||u===void 0||u.call(c)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const TK="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function UL(e,t,r){const i=e.x.translate/t.x,s=e.y.translate/t.y;let c=`translate3d(${i}px, ${s}px, 0) `;if(c+=`scale(${1/t.x}, ${1/t.y}) `,r){const{rotate:m,rotateX:v,rotateY:b}=r;m&&(c+=`rotate(${m}deg) `),v&&(c+=`rotateX(${v}deg) `),b&&(c+=`rotateY(${b}deg) `)}const u=e.x.scale*t.x,h=e.y.scale*t.y;return c+=`scale(${u}, ${h})`,c===TK?"none":c}const NK=(e,t)=>e.depth-t.depth;class RK{constructor(){this.children=[],this.isDirty=!1}add(t){qk(this.children,t),this.isDirty=!0}remove(t){Kk(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NK),this.isDirty=!1,this.children.forEach(t)}}const jL=["","X","Y","Z"],$L=1e3;function gz({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u,h={},m=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(MK),this.nodes.forEach(IK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0,u&&this.root.registerPotentialNode(u,this);for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new RK)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Uy),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m?.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}registerPotentialNode(u,h){this.potentialNodes.set(u,h)}mount(u,h=!1){var m;if(this.instance)return;this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;const{layoutId:v,layout:b,visualElement:x}=this.options;if(x&&!x.getInstance()&&x.mount(u),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),h&&(b||v)&&(this.isLayoutDirty=!0),e){let C;const _=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,clearTimeout(C),C=window.setTimeout(_,250),Fy.hasAnimatedSinceResize&&(Fy.hasAnimatedSinceResize=!1,this.nodes.forEach(PK))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&x&&(v||b)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:_,hasRelativeTargetChanged:N,layout:A})=>{var I,j,M,z,U;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=(j=(I=this.options.transition)!==null&&I!==void 0?I:x.getDefaultTransition())!==null&&j!==void 0?j:UK,{onLayoutAnimationStart:K,onLayoutAnimationComplete:X}=x.getProps(),de=!this.targetLayout||!vz(this.targetLayout,A)||N,ve=!_&&N;if(((M=this.resumeFrom)===null||M===void 0?void 0:M.instance)||ve||_&&(de||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,ve);const se={...Gk(V,"layout"),onPlay:K,onComplete:X};x.shouldReduceMotion&&(se.delay=0,se.type=!1),this.startAnimation(se)}else!_&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((U=(z=this.options).onExitComplete)===null||U===void 0||U.call(z));this.targetLayout=A})}unmount(){var u,h;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(h=this.parent)===null||h===void 0||h.children.delete(this),this.instance=void 0,ub.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var u;return this.isAnimationBlocked||((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimationBlocked())||!1}startUpdate(){var u;this.isUpdateBlocked()||(this.isUpdating=!0,(u=this.nodes)===null||u===void 0||u.forEach(LK))}willUpdate(u=!0){var h,m,v;if(this.root.isUpdateBlocked()){(m=(h=this.options).onExitComplete)===null||m===void 0||m.call(h);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _=0;_<this.path.length;_++){const N=this.path[_];N.shouldResetTransform=!0,N.updateScroll()}const{layoutId:b,layout:x}=this.options;if(b===void 0&&!x)return;const C=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=C?.(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(VL);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jK),this.potentialNodes.clear()),this.nodes.forEach(DK),this.nodes.forEach(AK),this.nodes.forEach(OK),this.clearAllSnapshots(),YR.update(),YR.preRender(),YR.render())}clearAllSnapshots(){this.nodes.forEach(kK),this.sharedNodes.forEach(FK)}scheduleUpdateProjection(){uu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){uu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const u=this.measure(),h=this.removeTransform(this.removeElementScroll(u));YL(h),this.snapshot={measured:u,layout:h,latestValues:{}}}updateLayout(){var u;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const h=this.measure();YL(h);const m=this.layout;this.layout={measured:h,actual:this.removeElementScroll(h)},this.layoutCorrected=oi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(u=this.options.visualElement)===null||u===void 0||u.notifyLayoutMeasure(this.layout.actual,m?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))}resetTransform(){var u;if(!s)return;const h=this.isLayoutDirty||this.shouldResetTransform,m=this.projectionDelta&&!mz(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,b=v?.(this.latestValues,""),x=b!==this.prevTransformTemplateValue;h&&(m||Ef(this.latestValues)||x)&&(s(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:u}=this.options;if(!u)return oi();const h=u.measureViewportBox(),{scroll:m}=this.root;return m&&(Rf(h.x,m.x),Rf(h.y,m.y)),h}removeElementScroll(u){const h=oi();vl(h,u);for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:b,options:x,isScrollRoot:C}=v;if(v!==this.root&&b&&x.layoutScroll){if(C){vl(h,u);const{scroll:_}=this.root;_&&(Rf(h.x,-_.x),Rf(h.y,-_.y))}Rf(h.x,b.x),Rf(h.y,b.y)}}return h}applyTransform(u,h=!1){const m=oi();vl(m,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];!h&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Pm(m,{x:-b.scroll.x,y:-b.scroll.y}),Ef(b.latestValues)&&Pm(m,b.latestValues)}return Ef(this.latestValues)&&Pm(m,this.latestValues),m}removeTransform(u){var h;const m=oi();vl(m,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];if(!b.instance||!Ef(b.latestValues))continue;nz(b.latestValues)&&b.updateSnapshot();const x=oi(),C=b.measure();vl(x,C),FL(m,b.latestValues,(h=b.snapshot)===null||h===void 0?void 0:h.layout,x)}return Ef(this.latestValues)&&FL(m,this.latestValues),m}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection()}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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 u;const{layout:h,layoutId:m}=this.options;!this.layout||!(h||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=oi(),this.relativeTargetOrigin=oi(),$y(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),vl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=oi(),this.targetWithTransforms=oi()),this.relativeTarget&&this.relativeTargetOrigin&&((u=this.relativeParent)===null||u===void 0?void 0:u.target)?_q(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):vl(this.target,this.layout.actual),rz(this.target,this.targetDelta)):vl(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=oi(),this.relativeTargetOrigin=oi(),$y(this.relativeTargetOrigin,this.target,this.relativeParent.target),vl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||Ef(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var u;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=Boolean(((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;const v=this.getLead();vl(this.layoutCorrected,this.layout.actual),Pq(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:b}=v;if(!b)return;this.projectionDelta||(this.projectionDelta=Vy(),this.projectionDeltaWithTransform=Vy());const x=this.treeScale.x,C=this.treeScale.y,_=this.projectionTransform;jy(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=UL(this.projectionDelta,this.treeScale),(this.projectionTransform!==_||this.treeScale.x!==x||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h,m,v;(m=(h=this.options).scheduleRender)===null||m===void 0||m.call(h),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,h=!1){var m;const v=this.snapshot,b=v?.latestValues||{},x={...this.latestValues},C=Vy();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!h;const _=oi(),N=v?.isShared,A=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,I=Boolean(N&&!A&&this.options.crossfade===!0&&!this.path.some(BK));this.animationProgress=0,this.mixTargetDelta=j=>{var M;const z=j/1e3;HL(C.x,u.x,z),HL(C.y,u.y,z),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((M=this.relativeParent)===null||M===void 0?void 0:M.layout)&&($y(_,this.layout.actual,this.relativeParent.layout.actual),zK(this.relativeTarget,this.relativeTargetOrigin,_,z)),N&&(this.animationValues=x,yK(x,b,this.latestValues,z,I,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(0)}startAnimation(u){var h,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)===null||h===void 0||h.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(ub.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uu.update(()=>{Fy.hasAnimatedSinceResize=!0,this.currentAnimation=vK(0,$L,{...u,onUpdate:v=>{var b;this.mixTargetDelta(v),(b=u.onUpdate)===null||b===void 0||b.call(u,v)},onComplete:()=>{var v;(v=u.onComplete)===null||v===void 0||v.call(u),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var u;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(u=this.getStack())===null||u===void 0||u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var u;this.currentAnimation&&((u=this.mixTargetDelta)===null||u===void 0||u.call(this,$L),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:v,latestValues:b}=u;if(!(!h||!m||!v)){if(this!==u&&this.layout&&v&&yz(this.options.animationType,this.layout.actual,v.actual)){m=this.target||oi();const x=Yo(this.layout.actual.x);m.x.min=u.target.x.min,m.x.max=m.x.min+x;const C=Yo(this.layout.actual.y);m.y.min=u.target.y.min,m.y.max=m.y.min+C}vl(h,m),Pm(h,b),jy(this.projectionDeltaWithTransform,this.layoutCorrected,h,b)}}registerSharedNode(u,h){var m,v,b;this.sharedNodes.has(u)||this.sharedNodes.set(u,new EK),this.sharedNodes.get(u).add(h),h.promote({transition:(m=h.options.initialPromotionConfig)===null||m===void 0?void 0:m.transition,preserveFollowOpacity:(b=(v=h.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||b===void 0?void 0:b.call(v,h)})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:h}=this.options;return h?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:h}=this.options;return h?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const v=this.getStack();v&&v.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const m={};for(let v=0;v<jL.length;v++){const b=jL[v],x="rotate"+b;!u.getStaticValue(x)||(h=!0,m[x]=u.getStaticValue(x),u.setStaticValue(x,0))}if(!!h){u?.syncRender();for(const v in m)u.setStaticValue(v,m[v]);u.scheduleRender()}}getProjectionStyles(u={}){var h,m,v;const b={};if(!this.instance||this.isSVG)return b;if(this.isVisible)b.visibility="";else return{visibility:"hidden"};const x=(h=this.options.visualElement)===null||h===void 0?void 0:h.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=Tx(u.pointerEvents)||"",b.transform=x?x(this.latestValues,""):"none",b;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Tx(u.pointerEvents)||""),this.hasProjected&&!Ef(this.latestValues)&&(I.transform=x?x({},""):"none",this.hasProjected=!1),I}const _=C.animationValues||C.latestValues;this.applyTransformsToTarget(),b.transform=UL(this.projectionDeltaWithTransform,this.treeScale,_),x&&(b.transform=x(_,b.transform));const{x:N,y:A}=this.projectionDelta;b.transformOrigin=`${N.origin*100}% ${A.origin*100}% 0`,C.animationValues?b.opacity=C===this?(v=(m=_.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:b.opacity=C===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const I in Kx){if(_[I]===void 0)continue;const{correct:j,applyTo:M}=Kx[I],z=j(_[I],C);if(M){const U=M.length;for(let V=0;V<U;V++)b[M[V]]=z}else b[I]=z}return this.options.layoutId&&(b.pointerEvents=C===this?Tx(u.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(VL),this.root.sharedNodes.clear()}}}function AK(e){e.updateLayout()}function OK(e){var t,r,i;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{actual:c,measured:u}=e.layout,{animationType:h}=e.options;h==="size"?eu(C=>{const _=s.isShared?s.measured[C]:s.layout[C],N=Yo(_);_.min=c[C].min,_.max=_.min+N}):yz(h,s.layout,c)&&eu(C=>{const _=s.isShared?s.measured[C]:s.layout[C],N=Yo(c[C]);_.max=_.min+N});const m=Vy();jy(m,c,s.layout);const v=Vy();s.isShared?jy(v,e.applyTransform(u,!0),s.measured):jy(v,c,s.layout);const b=!mz(m);let x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:C,layout:_}=e.relativeParent;if(C&&_){const N=oi();$y(N,s.layout,C.layout);const A=oi();$y(A,c,_.actual),vz(N,A)||(x=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:s,delta:v,layoutDelta:m,hasLayoutChanged:b,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function kK(e){e.clearSnapshot()}function VL(e){e.clearMeasurements()}function DK(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function PK(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function MK(e){e.resolveTargetDelta()}function IK(e){e.calcProjection()}function LK(e){e.resetRotation()}function FK(e){e.removeLeadSnapshot()}function HL(e,t,r){e.translate=jr(t.translate,0,r),e.scale=jr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function WL(e,t,r,i){e.min=jr(t.min,r.min,i),e.max=jr(t.max,r.max,i)}function zK(e,t,r,i){WL(e.x,t.x,r.x,i),WL(e.y,t.y,r.y,i)}function BK(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UK={duration:.45,ease:[.4,0,.1,1]};function jK(e,t){let r=e.root;for(let c=e.path.length-1;c>=0;c--)if(Boolean(e.path[c].instance)){r=e.path[c];break}const s=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);s&&e.mount(s,!0)}function GL(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function YL(e){GL(e.x),GL(e.y)}function yz(e,t,r){return e==="position"||e==="preserve-aspect"&&!_K(BL(t),BL(r))}const $K=gz({attachResizeListener:(e,t)=>Ww(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ZR={current:void 0},VK=gz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ZR.current){const e=new $K(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ZR.current=e}return ZR.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),HK={...xq,...DY,...$q,...mK},Tl=wW((e,t)=>sG(e,t,HK,uK,VK));function bz(){const e=D.exports.useRef(!1);return qx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function WK(){const e=bz(),[t,r]=D.exports.useState(0),i=D.exports.useCallback(()=>{e.current&&r(t+1)},[t]);return[D.exports.useCallback(()=>uu.postRender(i),[i]),t]}var GK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class YK extends D.exports.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function qK({children:e,isPresent:t}){const r=D.exports.useId(),i=D.exports.useRef(null),s=D.exports.useRef({width:0,height:0,top:0,left:0});return D.exports.useInsertionEffect(()=>{const{width:c,height:u,top:h,left:m}=s.current;if(t||!i.current||!c||!u)return;i.current.dataset.motionPopId=r;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${c}px !important;
height: ${u}px !important;
top: ${h}px !important;
left: ${m}px !important;
}
`),()=>{document.head.removeChild(v)}},[t]),k(YK,{isPresent:t,childRef:i,sizeRef:s,children:D.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:GK,lineNumber:68,columnNumber:13},this)}var qL="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const QR=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:c,mode:u})=>{const h=Hw(KK),m=D.exports.useId(),v=D.exports.useMemo(()=>({id:m,initial:t,isPresent:r,custom:s,onExitComplete:b=>{h.set(b,!0);for(const x of h.values())if(!x)return;i&&i()},register:b=>(h.set(b,!1),()=>h.delete(b))}),c?void 0:[r]);return D.exports.useMemo(()=>{h.forEach((b,x)=>h.set(x,!1))},[r]),D.exports.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),u==="popLayout"&&(e=k(qK,{isPresent:r,children:e},void 0,!1,{fileName:qL,lineNumber:48,columnNumber:20},globalThis)),k(nv.Provider,{value:v,children:e},void 0,!1,{fileName:qL,lineNumber:50,columnNumber:13},globalThis)};function KK(){return new Map}var JR="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const Rm=e=>e.key||"";function XK(e,t){e.forEach(r=>{const i=Rm(r);t.set(i,r)})}function ZK(e){const t=[];return D.exports.Children.forEach(e,r=>{D.exports.isValidElement(r)&&t.push(r)}),t}const gc=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:s,presenceAffectsLayout:c=!0,mode:u="sync"})=>{s&&(u="wait",$k(!1,"Replace exitBeforeEnter with mode='wait'"));let[h]=WK();const m=D.exports.useContext(Ek).forceRender;m&&(h=m);const v=bz(),b=ZK(e);let x=b;const C=new Set,_=D.exports.useRef(x),N=D.exports.useRef(new Map).current,A=D.exports.useRef(!0);if(qx(()=>{A.current=!1,XK(b,N),_.current=x}),Pk(()=>{A.current=!0,N.clear(),C.clear()}),A.current)return k(yo,{children:x.map(z=>k(QR,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:c,mode:u,children:z},Rm(z),!1,{fileName:JR,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);x=[...x];const I=_.current.map(Rm),j=b.map(Rm),M=I.length;for(let z=0;z<M;z++){const U=I[z];j.indexOf(U)===-1&&C.add(U)}return u==="wait"&&C.size&&(x=[]),C.forEach(z=>{if(j.indexOf(z)!==-1)return;const U=N.get(z);if(!U)return;const V=I.indexOf(z),K=()=>{N.delete(z),C.delete(z);const X=_.current.findIndex(de=>de.key===z);if(_.current.splice(X,1),!C.size){if(_.current=b,v.current===!1)return;h(),i&&i()}};x.splice(V,0,k(QR,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:c,mode:u,children:U},Rm(U),!1,{fileName:JR,lineNumber:143,columnNumber:52},globalThis))}),x=x.map(z=>{const U=z.key;return C.has(U)?z:k(QR,{isPresent:!0,presenceAffectsLayout:c,mode:u,children:z},Rm(z),!1,{fileName:JR,lineNumber:149,columnNumber:46},globalThis)}),jk!=="production"&&u==="wait"&&x.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.`),k(yo,{children:C.size?x:x.map(z=>D.exports.cloneElement(z))},void 0,!1)};var kb="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",Db=(...e)=>e.filter(Boolean).join(" ");function QK(){return!0}var JK=e=>{const{condition:t,message:r}=e;t&&QK()&&console.warn(r)},Dp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},_y={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 cO(e){switch(e?.direction??"right"){case"right":return _y.slideRight;case"left":return _y.slideLeft;case"bottom":return _y.slideDown;case"top":return _y.slideUp;default:return _y.slideRight}}var Mp={enter:{duration:.2,ease:Dp.easeOut},exit:{duration:.1,ease:Dp.easeIn}},wl={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},eX=e=>e!=null&&parseInt(e.toString(),10)>0,KL={exit:{height:{duration:.2,ease:Dp.ease},opacity:{duration:.3,ease:Dp.ease}},enter:{height:{duration:.3,ease:Dp.ease},opacity:{duration:.4,ease:Dp.ease}}},tX={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:i,delay:s})=>({...e&&{opacity:eX(t)?1:0},height:t,transitionEnd:i?.exit,transition:r?.exit??wl.exit(KL.exit,s)}),enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:i,delay:s})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:r?.enter??wl.enter(KL.enter,s)})},Sz=D.exports.forwardRef((e,t)=>{const{in:r,unmountOnExit:i,animateOpacity:s=!0,startingHeight:c=0,endingHeight:u="auto",style:h,className:m,transition:v,transitionEnd:b,...x}=e,[C,_]=D.exports.useState(!1);D.exports.useEffect(()=>{const M=setTimeout(()=>{_(!0)});return()=>clearTimeout(M)},[]),JK({condition:Boolean(c>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const N=parseFloat(c.toString())>0,A={startingHeight:c,endingHeight:u,animateOpacity:s,transition:C?v:{enter:{duration:0}},transitionEnd:{enter:b?.enter,exit:i?b?.exit:{...b?.exit,display:N?"block":"none"}}},I=i?r:!0,j=r||i?"enter":"exit";return k(gc,{initial:!1,custom:A,children:I&&Ue.createElement(Tl.div,{ref:t,...x,className:Db("chakra-collapse",m),style:{overflow:"hidden",display:"block",...h},custom:A,variants:tX,initial:i?"exit":!1,animate:j,exit:"exit"})},void 0,!1,{fileName:kb,lineNumber:190,columnNumber:26},globalThis)});Sz.displayName="Collapse";var nX={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:e?.enter??wl.enter(Mp.enter,r),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:e?.exit??wl.exit(Mp.exit,r),transitionEnd:t?.exit})},xz={initial:"exit",animate:"enter",exit:"exit",variants:nX},rX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,className:c,transition:u,transitionEnd:h,delay:m,...v}=t,b=s||i?"enter":"exit",x=i?s&&i:!0,C={transition:u,transitionEnd:h,delay:m};return k(gc,{custom:C,children:x&&Ue.createElement(Tl.div,{ref:r,className:Db("chakra-fade",c),custom:C,...xz,animate:b,...v})},void 0,!1,{fileName:kb,lineNumber:248,columnNumber:26},this)});rX.displayName="Fade";var aX={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:i,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:r?.exit??wl.exit(Mp.exit,s)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??wl.enter(Mp.enter,r),transitionEnd:e?.enter})},wz={initial:"exit",animate:"enter",exit:"exit",variants:aX},iX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,reverse:c=!0,initialScale:u=.95,className:h,transition:m,transitionEnd:v,delay:b,...x}=t,C=i?s&&i:!0,_=s||i?"enter":"exit",N={initialScale:u,reverse:c,transition:m,transitionEnd:v,delay:b};return k(gc,{custom:N,children:C&&Ue.createElement(Tl.div,{ref:r,className:Db("chakra-offset-slide",h),...wz,animate:_,custom:N,...x})},void 0,!1,{fileName:kb,lineNumber:301,columnNumber:26},this)});iX.displayName="ScaleFade";var XL={exit:{duration:.15,ease:Dp.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},oX={exit:({direction:e,transition:t,transitionEnd:r,delay:i})=>{const{exit:s}=cO({direction:e});return{...s,transition:t?.exit??wl.exit(XL.exit,i),transitionEnd:r?.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:i})=>{const{enter:s}=cO({direction:e});return{...s,transition:r?.enter??wl.enter(XL.enter,i),transitionEnd:t?.enter}}},Cz=D.exports.forwardRef(function(t,r){const{direction:i="right",style:s,unmountOnExit:c,in:u,className:h,transition:m,transitionEnd:v,delay:b,...x}=t,C=cO({direction:i}),_=Object.assign({position:"fixed"},C.position,s),N=c?u&&c:!0,A=u||c?"enter":"exit",I={transitionEnd:v,transition:m,direction:i,delay:b};return k(gc,{custom:I,children:N&&Ue.createElement(Tl.div,{...x,ref:r,initial:"exit",className:Db("chakra-slide",h),animate:A,exit:"exit",custom:I,variants:oX,style:_})},void 0,!1,{fileName:kb,lineNumber:366,columnNumber:26},this)});Cz.displayName="Slide";var sX={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:i,delay:s})=>({opacity:0,x:e,y:t,transition:r?.exit??wl.exit(Mp.exit,s),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??wl.enter(Mp.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:i,reverse:s,delay:c})=>{const u={x:t,y:e};return{opacity:0,transition:r?.exit??wl.exit(Mp.exit,c),...s?{...u,transitionEnd:i?.exit}:{transitionEnd:{...u,...i?.exit}}}}},fO={initial:"initial",animate:"enter",exit:"exit",variants:sX},lX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,reverse:c=!0,className:u,offsetX:h=0,offsetY:m=8,transition:v,transitionEnd:b,delay:x,...C}=t,_=i?s&&i:!0,N=s||i?"enter":"exit",A={offsetX:h,offsetY:m,reverse:c,transition:v,transitionEnd:b,delay:x};return k(gc,{custom:A,children:_&&Ue.createElement(Tl.div,{ref:r,className:Db("chakra-offset-slide",u),custom:A,...fO,animate:N,...C})},void 0,!1,{fileName:kb,lineNumber:441,columnNumber:26},this)});lX.displayName="SlideFade";var dO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",Pb=(...e)=>e.filter(Boolean).join(" ");function uX(){return!0}var Qw=e=>{const{condition:t,message:r}=e;t&&uX()&&console.warn(r)};function eA(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[cX,Jw]=Qr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[fX,Zk]=Qr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[dX,Sme,pX,hX]=sW(),Cp=et(function(t,r){const{getButtonProps:i}=Zk(),s=i(t,r),c=Jw(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...c.button};return Ue.createElement(Ge.button,{...s,className:Pb("chakra-accordion__button",t.className),__css:u})});Cp.displayName="AccordionButton";function mX(e){const{onChange:t,defaultIndex:r,index:i,allowMultiple:s,allowToggle:c,...u}=e;yX(e),bX(e);const h=pX(),[m,v]=D.exports.useState(-1);D.exports.useEffect(()=>()=>{v(-1)},[]);const[b,x]=lW({value:i,defaultValue(){return s?r??[]:r??-1},onChange:t});return{index:b,setIndex:x,htmlProps:u,getAccordionItemProps:_=>{let N=!1;return _!==null&&(N=Array.isArray(b)?b.includes(_):b===_),{isOpen:N,onChange:I=>{if(_!==null)if(s&&Array.isArray(b)){const j=I?b.concat(_):b.filter(M=>M!==_);x(j)}else I?x(_):c&&x(-1)}}},focusedIndex:m,setFocusedIndex:v,descendants:h}}var[vX,Qk]=Qr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function gX(e){const{isDisabled:t,isFocusable:r,id:i,...s}=e,{getAccordionItemProps:c,setFocusedIndex:u}=Qk(),h=D.exports.useRef(null),m=D.exports.useId(),v=i??m,b=`accordion-button-${v}`,x=`accordion-panel-${v}`;SX(e);const{register:C,index:_,descendants:N}=hX({disabled:t&&!r}),{isOpen:A,onChange:I}=c(_===-1?null:_);xX({isOpen:A,isDisabled:t});const j=()=>{I?.(!0)},M=()=>{I?.(!1)},z=D.exports.useCallback(()=>{I?.(!A),u(_)},[_,u,A,I]),U=D.exports.useCallback(de=>{const se={ArrowDown:()=>{const be=N.nextEnabled(_);be?.node.focus()},ArrowUp:()=>{const be=N.prevEnabled(_);be?.node.focus()},Home:()=>{const be=N.firstEnabled();be?.node.focus()},End:()=>{const be=N.lastEnabled();be?.node.focus()}}[de.key];se&&(de.preventDefault(),se(de))},[N,_]),V=D.exports.useCallback(()=>{u(_)},[u,_]),K=D.exports.useCallback(function(ve={},se=null){return{...ve,type:"button",ref:Xi(C,h,se),id:b,disabled:!!t,"aria-expanded":!!A,"aria-controls":x,onClick:eA(ve.onClick,z),onFocus:eA(ve.onFocus,V),onKeyDown:eA(ve.onKeyDown,U)}},[b,t,A,z,V,U,x,C]),X=D.exports.useCallback(function(ve={},se=null){return{...ve,ref:se,role:"region",id:x,"aria-labelledby":b,hidden:!A}},[b,A,x]);return{isOpen:A,isDisabled:t,isFocusable:r,onOpen:j,onClose:M,getButtonProps:K,getPanelProps:X,htmlProps:s}}function yX(e){const t=e.index||e.defaultIndex,r=t==null&&!Array.isArray(t)&&e.allowMultiple;Qw({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function bX(e){Qw({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 SX(e){Qw({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 xX(e){Qw({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function _p(e){const{isOpen:t,isDisabled:r}=Zk(),{reduceMotion:i}=Qk(),s=Pb("chakra-accordion__icon",e.className),c=Jw(),u={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...c.icon};return k(El,{viewBox:"0 0 24 24","aria-hidden":!0,className:s,__css:u,...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:dO,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:dO,lineNumber:276,columnNumber:26},this)}_p.displayName="AccordionIcon";var Ep=et(function(t,r){const{children:i,className:s}=t,{htmlProps:c,...u}=gX(t),m={...Jw().container,overflowAnchor:"none"},v=D.exports.useMemo(()=>u,[u]);return Ue.createElement(fX,{value:v},Ue.createElement(Ge.div,{ref:r,...c,className:Pb("chakra-accordion__item",s),__css:m},typeof i=="function"?i({isExpanded:!!u.isOpen,isDisabled:!!u.isDisabled}):i))});Ep.displayName="AccordionItem";var Tp=et(function(t,r){const{reduceMotion:i}=Qk(),{getPanelProps:s,isOpen:c}=Zk(),u=s(t,r),h=Pb("chakra-accordion__panel",t.className),m=Jw();i||delete u.hidden;const v=Ue.createElement(Ge.div,{...u,__css:m.panel,className:h});return i?v:k(Sz,{in:c,children:v},void 0,!1,{fileName:dO,lineNumber:336,columnNumber:28},this)});Tp.displayName="AccordionPanel";var _z=et(function({children:t,reduceMotion:r,...i},s){const c=Xo("Accordion",i),u=vr(i),{htmlProps:h,descendants:m,...v}=mX(u),b=D.exports.useMemo(()=>({...v,reduceMotion:!!r}),[v,r]);return Ue.createElement(dX,{value:m},Ue.createElement(vX,{value:b},Ue.createElement(cX,{value:c},Ue.createElement(Ge.div,{ref:s,...h,className:Pb("chakra-accordion",i.className),__css:c.root},t))))});_z.displayName="Accordion";var wX=(...e)=>e.filter(Boolean).join(" "),CX=_b({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),eC=et((e,t)=>{const r=Zi("Spinner",e),{label:i="Loading...",thickness:s="2px",speed:c="0.45s",emptyColor:u="transparent",className:h,...m}=vr(e),v=wX("chakra-spinner",h),b={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:u,borderLeftColor:u,animation:`${CX} ${c} linear infinite`,...r};return Ue.createElement(Ge.div,{ref:t,__css:b,className:v,...m},i&&Ue.createElement(Ge.span,{srOnly:!0},i))});eC.displayName="Spinner";var Up="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",tC=(...e)=>e.filter(Boolean).join(" ");function _X(e){return k(El,{viewBox:"0 0 24 24",...e,children:k("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:Up,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:Up,lineNumber:21,columnNumber:26},this)}function EX(e){return k(El,{viewBox:"0 0 24 24",...e,children:k("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:Up,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:Up,lineNumber:30,columnNumber:26},this)}function ZL(e){return k(El,{viewBox:"0 0 24 24",...e,children:k("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:Up,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:Up,lineNumber:39,columnNumber:26},this)}var[TX,NX]=Qr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[RX,Jk]=Qr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Ez={info:{icon:EX,colorScheme:"blue"},warning:{icon:ZL,colorScheme:"orange"},success:{icon:_X,colorScheme:"green"},error:{icon:ZL,colorScheme:"red"},loading:{icon:eC,colorScheme:"blue"}};function AX(e){return Ez[e].colorScheme}function OX(e){return Ez[e].icon}var Tz=et(function(t,r){const{status:i="info",addRole:s=!0,...c}=vr(t),u=t.colorScheme??AX(i),h=Xo("Alert",{...t,colorScheme:u}),m={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container};return Ue.createElement(TX,{value:{status:i}},Ue.createElement(RX,{value:h},Ue.createElement(Ge.div,{role:s?"alert":void 0,ref:r,...c,className:tC("chakra-alert",t.className),__css:m})))});Tz.displayName="Alert";var Nz=et(function(t,r){const i=Jk(),s={display:"inline",...i.description};return Ue.createElement(Ge.div,{ref:r,...t,className:tC("chakra-alert__desc",t.className),__css:s})});Nz.displayName="AlertDescription";function Rz(e){const{status:t}=NX(),r=OX(t),i=Jk(),s=t==="loading"?i.spinner:i.icon;return Ue.createElement(Ge.span,{display:"inherit",...e,className:tC("chakra-alert__icon",e.className),__css:s},e.children||k(r,{h:"100%",w:"100%"},void 0,!1,{fileName:Up,lineNumber:133,columnNumber:40},this))}Rz.displayName="AlertIcon";var Az=et(function(t,r){const i=Jk();return Ue.createElement(Ge.div,{ref:r,...t,className:tC("chakra-alert__title",t.className),__css:i.title})});Az.displayName="AlertTitle";var kX="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function DX(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function PX(e){const{loading:t,src:r,srcSet:i,onLoad:s,onError:c,crossOrigin:u,sizes:h,ignoreFallback:m}=e,[v,b]=D.exports.useState("pending");D.exports.useEffect(()=>{b(r?"loading":"pending")},[r]);const x=D.exports.useRef(),C=D.exports.useCallback(()=>{if(!r)return;_();const N=new Image;N.src=r,u&&(N.crossOrigin=u),i&&(N.srcset=i),h&&(N.sizes=h),t&&(N.loading=t),N.onload=A=>{_(),b("loaded"),s?.(A)},N.onerror=A=>{_(),b("failed"),c?.(A)},x.current=N},[r,u,i,h,s,c,t]),_=()=>{x.current&&(x.current.onload=null,x.current.onerror=null,x.current=null)};return dc(()=>{if(!m)return v==="loading"&&C(),()=>{_()}},[v,C,m]),m?"loaded":v}var MX=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",iw=et(function(t,r){const{htmlWidth:i,htmlHeight:s,alt:c,...u}=t;return k("img",{width:i,height:s,ref:r,alt:c,...u},void 0,!1,{fileName:kX,lineNumber:90,columnNumber:26},this)});iw.displayName="NativeImage";var cb=et(function(t,r){const{fallbackSrc:i,fallback:s,src:c,srcSet:u,align:h,fit:m,loading:v,ignoreFallback:b,crossOrigin:x,fallbackStrategy:C="beforeLoadOrError",referrerPolicy:_,...N}=t,A=i!==void 0||s!==void 0,I=v!=null||b||!A,j=PX({...t,ignoreFallback:I}),M=MX(j,C),z={ref:r,objectFit:m,objectPosition:h,...I?N:DX(N,["onError","onLoad"])};return M?s||Ue.createElement(Ge.img,{as:iw,className:"chakra-image__placeholder",src:i,...z}):Ue.createElement(Ge.img,{as:iw,src:c,srcSet:u,crossOrigin:x,loading:v,referrerPolicy:_,className:"chakra-image",...z})});cb.displayName="Image";et((e,t)=>Ue.createElement(Ge.img,{ref:t,as:iw,className:"chakra-image",...e}));var IX=Object.create,Oz=Object.defineProperty,LX=Object.getOwnPropertyDescriptor,kz=Object.getOwnPropertyNames,FX=Object.getPrototypeOf,zX=Object.prototype.hasOwnProperty,Dz=(e,t)=>function(){return t||(0,e[kz(e)[0]])((t={exports:{}}).exports,t),t.exports},BX=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of kz(t))!zX.call(e,s)&&s!==r&&Oz(e,s,{get:()=>t[s],enumerable:!(i=LX(t,s))||i.enumerable});return e},UX=(e,t,r)=>(r=e!=null?IX(FX(e)):{},BX(t||!e||!e.__esModule?Oz(r,"default",{value:e,enumerable:!0}):r,e)),jX=Dz({"../../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 r="18.2.0",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),I=Symbol.iterator,j="@@iterator";function M(S){if(S===null||typeof S!="object")return null;var R=I&&S[I]||S[j];return typeof R=="function"?R:null}var z={current:null},U={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},de=null;function ve(S){de=S}X.setExtraStackFrame=function(S){de=S},X.getCurrentStack=null,X.getStackAddendum=function(){var S="";de&&(S+=de);var R=X.getCurrentStack;return R&&(S+=R()||""),S};var se=!1,be=!1,Xe=!1,ie=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:U,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=V;function Ce(S){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("warn",S,$)}}function oe(S){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("error",S,$)}}function Se(S,R,$){{var G=Re.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(R+="%s",$=$.concat([te]));var Fe=$.map(function(xe){return String(xe)});Fe.unshift("Warning: "+R),Function.prototype.apply.call(console[S],console,Fe)}}var Te={};function pe(S,R){{var $=S.constructor,G=$&&($.displayName||$.name)||"ReactClass",te=G+"."+R;if(Te[te])return;oe("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.",R,G),Te[te]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,R,$){pe(S,"forceUpdate")},enqueueReplaceState:function(S,R,$,G){pe(S,"replaceState")},enqueueSetState:function(S,R,$,G){pe(S,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(S,R,$){this.props=S,this.context=R,this.refs=Le,this.updater=$||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,R){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,R,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var st={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)."]},mt=function(S,R){Object.defineProperty(Ye.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(S,R,$){this.props=S,this.context=R,this.refs=Le,this.updater=$||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Yt(S){return We(S)}function ye(S){{var R=typeof Symbol=="function"&&Symbol.toStringTag,$=R&&S[Symbol.toStringTag]||S.constructor.name||"Object";return $}}function Mt(S){try{return Kt(S),!1}catch{return!0}}function Kt(S){return""+S}function St(S){if(Mt(S))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Kt(S)}function ar(S,R,$){var G=S.displayName;if(G)return G;var te=R.displayName||R.name||"";return te!==""?$+"("+te+")":$}function ir(S){return S.displayName||"Context"}function Bt(S){if(S==null)return null;if(typeof S.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case c:return"Fragment";case s:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var R=S;return ir(R)+".Consumer";case m:var $=S;return ir($._context)+".Provider";case b:return ar(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Bt(S.type)||"Memo";case N:{var te=S,Fe=te._payload,xe=te._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(S){if(fn.call(S,"ref")){var R=Object.getOwnPropertyDescriptor(S,"ref").get;if(R&&R.isReactWarning)return!1}return S.ref!==void 0}function Tt(S){if(fn.call(S,"key")){var R=Object.getOwnPropertyDescriptor(S,"key").get;if(R&&R.isReactWarning)return!1}return S.key!==void 0}function ke(S,R){var $=function(){hn||(hn=!0,oe("%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)",R))};$.isReactWarning=!0,Object.defineProperty(S,"key",{get:$,configurable:!0})}function jt(S,R){var $=function(){Ve||(Ve=!0,oe("%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)",R))};$.isReactWarning=!0,Object.defineProperty(S,"ref",{get:$,configurable:!0})}function xn(S){if(typeof S.ref=="string"&&K.current&&S.__self&&K.current.stateNode!==S.__self){var R=Bt(K.current.type);Ze[R]||(oe('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',R,S.ref),Ze[R]=!0)}}var je=function(S,R,$,G,te,Fe,xe){var $e={$$typeof:i,type:S,key:R,ref:$,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(S,R,$){var G,te={},Fe=null,xe=null,$e=null,it=null;if(R!=null){Jt(R)&&(xe=R.ref,xn(R)),Tt(R)&&(St(R.key),Fe=""+R.key),$e=R.__self===void 0?null:R.__self,it=R.__source===void 0?null:R.__source;for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(te[G]=R[G])}var gt=arguments.length-2;if(gt===1)te.children=$;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),te.children=Nt}if(S&&S.defaultProps){var Lt=S.defaultProps;for(G in Lt)te[G]===void 0&&(te[G]=Lt[G])}if(Fe||xe){var wt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&ke(te,wt),xe&&jt(te,wt)}return je(S,Fe,xe,$e,it,K.current,te)}function xt(S,R){var $=je(S.type,R,S.ref,S._self,S._source,S._owner,S.props);return $}function dn(S,R,$){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Ie({},S.props),Fe=S.key,xe=S.ref,$e=S._self,it=S._source,gt=S._owner;if(R!=null){Jt(R)&&(xe=R.ref,gt=K.current),Tt(R)&&(St(R.key),Fe=""+R.key);var Nt;S.type&&S.type.defaultProps&&(Nt=S.type.defaultProps);for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(R[G]===void 0&&Nt!==void 0?te[G]=Nt[G]:te[G]=R[G])}var pt=arguments.length-2;if(pt===1)te.children=$;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];te.children=Lt}return je(S.type,Fe,xe,$e,it,gt,te)}function Xt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var wn=".",Dn=":";function Nr(S){var R=/[=:]/g,$={"=":"=0",":":"=2"},G=S.replace(R,function(te){return $[te]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(S){return S.replace(ca,"$&/")}function Cn(S,R){return typeof S=="object"&&S!==null&&S.key!=null?(St(S.key),Nr(""+S.key)):R.toString(36)}function fa(S,R,$,G,te){var Fe=typeof S;(Fe==="undefined"||Fe==="boolean")&&(S=null);var xe=!1;if(S===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(S.$$typeof){case i:case s:xe=!0}}if(xe){var $e=S,it=te($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,R,Nt,"",function(Zf){return Zf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,$+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),R.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+Dn;if(Yt(S))for(var vi=0;vi<S.length;vi++)pt=S[vi],Lt=Dt+Cn(pt,vi),wt+=fa(pt,R,$,Lt,te);else{var va=M(S);if(typeof va=="function"){var Po=S;va===Po.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var Su=va.call(Po),Nn,gi=0;!(Nn=Su.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,gi++),wt+=fa(pt,R,$,Lt,te)}else if(Fe==="object"){var os=String(S);throw new Error("Objects are not valid as a React child (found: "+(os==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":os)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function gr(S,R,$){if(S==null)return S;var G=[],te=0;return fa(S,G,"","",function(Fe){return R.call($,Fe,te++)}),G}function xo(S){var R=0;return gr(S,function(){R++}),R}function Qo(S,R,$){gr(S,function(){R.apply(this,arguments)},$)}function Jo(S){return gr(S,function(R){return R})||[]}function wo(S){if(!Xt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Co(S){var R={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:m,_context:R};var $=!1,G=!1,te=!1;{var Fe={$$typeof:v,_context:R};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(xe){R.Provider=xe}},_currentValue:{get:function(){return R._currentValue},set:function(xe){R._currentValue=xe}},_currentValue2:{get:function(){return R._currentValue2},set:function(xe){R._currentValue2=xe}},_threadCount:{get:function(){return R._threadCount},set:function(xe){R._threadCount=xe}},Consumer:{get:function(){return $||($=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(xe){te||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),te=!0)}}}),R.Consumer=Fe}return R._currentRenderer=null,R._currentRenderer2=null,R}var cr=-1,Oa=0,Di=1,ka=2;function q(S){if(S._status===cr){var R=S._result,$=R();if($.then(function(Fe){if(S._status===Oa||S._status===cr){var xe=S;xe._status=Di,xe._result=Fe}},function(Fe){if(S._status===Oa||S._status===cr){var xe=S;xe._status=ka,xe._result=Fe}}),S._status===cr){var G=S;G._status=Oa,G._result=$}}if(S._status===Di){var te=S._result;return te===void 0&&oe(`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?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw S._result}function Be(S){var R={_status:cr,_result:S},$={$$typeof:N,_payload:R,_init:q};{var G,te;Object.defineProperties($,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("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."),G=Fe,Object.defineProperty($,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("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."),te=Fe,Object.defineProperty($,"propTypes",{enumerable:!0})}}})}return $}function qe(S){S!=null&&S.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?oe("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:b,render:S};{var $;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return $},set:function(G){$=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return R}var bt;bt=Symbol.for("react.module.reference");function nn(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===h||ce||S===u||S===x||S===C||ie||S===A||se||be||Xe||typeof S=="object"&&S!==null&&(S.$$typeof===N||S.$$typeof===_||S.$$typeof===m||S.$$typeof===v||S.$$typeof===b||S.$$typeof===bt||S.getModuleId!==void 0))}function gn(S,R){nn(S)||oe("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var $={$$typeof:_,type:S,compare:R===void 0?null:R};{var G;Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return $}function tt(){var S=z.current;return S===null&&oe(`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.`),S}function $t(S){var R=tt();if(S._context!==void 0){var $=S._context;$.Consumer===S?oe("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?"):$.Provider===S&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(S)}function zn(S){var R=tt();return R.useState(S)}function In(S,R,$){var G=tt();return G.useReducer(S,R,$)}function an(S){var R=tt();return R.useRef(S)}function Lr(S,R){var $=tt();return $.useEffect(S,R)}function ci(S,R){var $=tt();return $.useInsertionEffect(S,R)}function _o(S,R){var $=tt();return $.useLayoutEffect(S,R)}function da(S,R){var $=tt();return $.useCallback(S,R)}function Qi(S,R){var $=tt();return $.useMemo(S,R)}function yu(S,R,$){var G=tt();return G.useImperativeHandle(S,R,$)}function fi(S,R){{var $=tt();return $.useDebugValue(S,R)}}function zs(){var S=tt();return S.useTransition()}function Pi(S){var R=tt();return R.useDeferredValue(S)}function Zt(){var S=tt();return S.useId()}function Mi(S,R,$){var G=tt();return G.useSyncExternalStore(S,R,$)}var pa=0,Eo,es,To,ts,ns,No,Ro;function rs(){}rs.__reactDisabledLog=!0;function Bs(){{if(pa===0){Eo=console.log,es=console.info,To=console.warn,ts=console.error,ns=console.group,No=console.groupCollapsed,Ro=console.groupEnd;var S={configurable:!0,enumerable:!0,value:rs,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}pa++}}function Us(){{if(pa--,pa===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},S,{value:Eo}),info:Ie({},S,{value:es}),warn:Ie({},S,{value:To}),error:Ie({},S,{value:ts}),group:Ie({},S,{value:ns}),groupCollapsed:Ie({},S,{value:No}),groupEnd:Ie({},S,{value:Ro})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=Re.ReactCurrentDispatcher,Dr;function Da(S,R,$){{if(Dr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);Dr=G&&G[1]||""}return`
`+Dr+S}}var ha=!1,Pa;{var as=typeof WeakMap=="function"?WeakMap:Map;Pa=new as}function Ao(S,R){if(!S||ha)return"";{var $=Pa.get(S);if($!==void 0)return $}var G;ha=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=di.current,di.current=null,Bs();try{if(R){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(S,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}S.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}S()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
`),it=G.stack.split(`
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
`+$e[gt].replace(" at new "," at ");return S.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Pa.set(S,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,di.current=Fe,Us(),Error.prepareStackTrace=te}var Lt=S?S.displayName||S.name:"",wt=Lt?Da(Lt):"";return typeof S=="function"&&Pa.set(S,wt),wt}function is(S,R,$){return Ao(S,!1)}function Nl(S){var R=S.prototype;return!!(R&&R.isReactComponent)}function ma(S,R,$){if(S==null)return"";if(typeof S=="function")return Ao(S,Nl(S));if(typeof S=="string")return Da(S);switch(S){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return is(S.render);case _:return ma(S.type,R,$);case N:{var G=S,te=G._payload,Fe=G._init;try{return ma(Fe(te),R,$)}catch{}}}return""}var Oo={},Ma=Re.ReactDebugCurrentFrame;function pi(S){if(S){var R=S._owner,$=ma(S.type,S._source,R?R.type:null);Ma.setExtraStackFrame($)}else Ma.setExtraStackFrame(null)}function js(S,R,$,G,te){{var Fe=Function.call.bind(fn);for(var xe in S)if(Fe(S,xe)){var $e=void 0;try{if(typeof S[xe]!="function"){var it=Error((G||"React class")+": "+$+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=S[xe](R,xe,G,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(pi(te),oe("%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).",G||"React class",$,xe,typeof $e),pi(null)),$e instanceof Error&&!($e.message in Oo)&&(Oo[$e.message]=!0,pi(te),oe("Failed %s type: %s",$,$e.message),pi(null))}}}function on(S){if(S){var R=S._owner,$=ma(S.type,S._source,R?R.type:null);ve($)}else ve(null)}var hi;hi=!1;function ko(){if(K.current){var S=Bt(K.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function It(S){if(S!==void 0){var R=S.fileName.replace(/^.*[\\\/]/,""),$=S.lineNumber;return`
Check your code at `+R+":"+$+"."}return""}function $s(S){return S!=null?It(S.__source):""}var yr={};function Ii(S){var R=ko();if(!R){var $=typeof S=="string"?S:S.displayName||S.name;$&&(R=`
Check the top-level render call using <`+$+">.")}return R}function ja(S,R){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var $=Ii(R);if(!yr[$]){yr[$]=!0;var G="";S&&S._owner&&S._owner!==K.current&&(G=" It was passed a child from "+Bt(S._owner.type)+"."),on(S),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,G),on(null)}}}function Ji(S,R){if(typeof S=="object"){if(Yt(S))for(var $=0;$<S.length;$++){var G=S[$];Xt(G)&&ja(G,R)}else if(Xt(S))S._store&&(S._store.validated=!0);else if(S){var te=M(S);if(typeof te=="function"&&te!==S.entries)for(var Fe=te.call(S),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&ja(xe.value,R)}}}function Cr(S){{var R=S.type;if(R==null||typeof R=="string")return;var $;if(typeof R=="function")$=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===b||R.$$typeof===_))$=R.propTypes;else return;if($){var G=Bt(R);js($,S.props,"prop",G,S)}else if(R.PropTypes!==void 0&&!hi){hi=!0;var te=Bt(R);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(S){{for(var R=Object.keys(S.props),$=0;$<R.length;$++){var G=R[$];if(G!=="children"&&G!=="key"){on(S),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}S.ref!==null&&(on(S),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Do(S,R,$){var G=nn(S);if(!G){var te="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(te+=" 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 Fe=$s(R);Fe?te+=Fe:te+=ko();var xe;S===null?xe="null":Yt(S)?xe="array":S!==void 0&&S.$$typeof===i?(xe="<"+(Bt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof S,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)Ji(arguments[it],S);return S===c?er($e):Cr($e),$e}var Vr=!1;function ur(S){var R=Do.bind(null,S);return R.type=S,Vr||(Vr=!0,Ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(R,"type",{enumerable:!1,get:function(){return Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),R}function ea(S,R,$){for(var G=dn.apply(this,arguments),te=2;te<arguments.length;te++)Ji(arguments[te],G.type);return Cr(G),G}function bu(S,R){var $=U.transition;U.transition={};var G=U.transition;U.transition._updatedFibers=new Set;try{S()}finally{if(U.transition=$,$===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&Ce("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."),G._updatedFibers.clear()}}}var eo=!1,mi=null;function Vs(S){if(mi===null)try{var R=("require"+Math.random()).slice(0,7),$=t&&t[R];mi=$.call(t,"timers").setImmediate}catch{mi=function(te){eo===!1&&(eo=!0,typeof MessageChannel>"u"&&oe("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 Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return mi(S)}var pn=0,Pn=!1;function Rl(S){{var R=pn;pn++,V.current===null&&(V.current=[]);var $=V.isBatchingLegacy,G;try{if(V.isBatchingLegacy=!0,G=S(),!$&&V.didScheduleLegacyUpdate){var te=V.current;te!==null&&(V.didScheduleLegacyUpdate=!1,fe(te))}}catch(Lt){throw Ia(R),Lt}finally{V.isBatchingLegacy=$}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(R),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(R),wt(Dt)})}};return!Pn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Pn=!0,oe("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 () => ...);"))}),$e}else{var it=G;if(Ia(R),pn===0){var gt=V.current;gt!==null&&(fe(gt),V.current=null);var Nt={then:function(Lt,wt){V.current===null?(V.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(S){S!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=S}function W(S,R,$){{var G=V.current;if(G!==null)try{fe(G),Vs(function(){G.length===0?(V.current=null,R(S)):W(S,R,$)})}catch(te){$(te)}else R(S)}}var Q=!1;function fe(S){if(!Q){Q=!0;var R=0;try{for(;R<S.length;R++){var $=S[R];do $=$(!0);while($!==null)}S.length=0}catch(G){throw S=S.slice(R+1),G}finally{Q=!1}}}var at=Do,sn=ea,Mn=ur,Vt={map:gr,forEach:Qo,count:xo,toArray:Jo,only:wo};e.Children=Vt,e.Component=Ye,e.Fragment=c,e.Profiler=h,e.PureComponent=vt,e.StrictMode=u,e.Suspense=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,e.cloneElement=sn,e.createContext=Co,e.createElement=at,e.createFactory=Mn,e.createRef=zt,e.forwardRef=qe,e.isValidElement=Xt,e.lazy=Be,e.memo=gn,e.startTransition=bu,e.unstable_act=Rl,e.useCallback=da,e.useContext=$t,e.useDebugValue=fi,e.useDeferredValue=Pi,e.useEffect=Lr,e.useId=Zt,e.useImperativeHandle=yu,e.useInsertionEffect=ci,e.useLayoutEffect=_o,e.useMemo=Qi,e.useReducer=In,e.useRef=an,e.useState=zn,e.useSyncExternalStore=Mi,e.useTransition=zs,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),$X=Dz({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=jX()}}),QL=UX($X());function e2(e){return QL.Children.toArray(e).filter(t=>(0,QL.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 Mf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",nC=(...e)=>e.filter(Boolean).join(" "),JL=e=>e?"":void 0,[VX,HX]=Qr({strict:!1,name:"ButtonGroupContext"});function pO(e){const{children:t,className:r,...i}=e,s=D.exports.isValidElement(t)?D.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,c=nC("chakra-button__icon",r);return Ue.createElement(Ge.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:c},s)}pO.displayName="ButtonIcon";function hO(e){const{label:t,placement:r,spacing:i="0.5rem",children:s=k(eC,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:Mf,lineNumber:56,columnNumber:32},this),className:c,__css:u,...h}=e,m=nC("chakra-button__spinner",c),v=r==="start"?"marginEnd":"marginStart",b=D.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,v,i]);return Ue.createElement(Ge.div,{className:m,...h,__css:b},s)}hO.displayName="ButtonSpinner";function WX(e){const[t,r]=D.exports.useState(!e);return{ref:D.exports.useCallback(c=>{!c||r(c.tagName==="BUTTON")},[]),type:t?"button":void 0}}var hu=et((e,t)=>{const r=HX(),i=Zi("Button",{...r,...e}),{isDisabled:s=r?.isDisabled,isLoading:c,isActive:u,children:h,leftIcon:m,rightIcon:v,loadingText:b,iconSpacing:x="0.5rem",type:C,spinner:_,spinnerPlacement:N="start",className:A,as:I,...j}=vr(e),M=D.exports.useMemo(()=>{const K={...i?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!r&&{_focus:K}}},[i,r]),{ref:z,type:U}=WX(I),V={rightIcon:v,leftIcon:m,iconSpacing:x,children:h};return Ue.createElement(Ge.button,{disabled:s||c,ref:tW(t,z),as:I,type:C??U,"data-active":JL(u),"data-loading":JL(c),__css:M,className:nC("chakra-button",A),...j},c&&N==="start"&&k(hO,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:_},void 0,!1,{fileName:Mf,lineNumber:145,columnNumber:67},globalThis),c?b||Ue.createElement(Ge.span,{opacity:0},k(e5,{...V},void 0,!1,{fileName:Mf,lineNumber:152,columnNumber:22},globalThis)):k(e5,{...V},void 0,!1,{fileName:Mf,lineNumber:154,columnNumber:25},globalThis),c&&N==="end"&&k(hO,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:_},void 0,!1,{fileName:Mf,lineNumber:156,columnNumber:66},globalThis))});hu.displayName="Button";function e5(e){const{leftIcon:t,rightIcon:r,children:i,iconSpacing:s}=e;return k(yo,{children:[t&&k(pO,{marginEnd:s,children:t},void 0,!1,{fileName:Mf,lineNumber:166,columnNumber:96},this),i,r&&k(pO,{marginStart:s,children:r},void 0,!1,{fileName:Mf,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var GX=et(function(t,r){const{size:i,colorScheme:s,variant:c,className:u,spacing:h="0.5rem",isAttached:m,isDisabled:v,...b}=t,x=nC("chakra-button__group",u),C=D.exports.useMemo(()=>({size:i,colorScheme:s,variant:c,isDisabled:v}),[i,s,c,v]);let _={display:"inline-flex"};return m?_={..._,"> *: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}}:_={..._,"& > *:not(style) ~ *:not(style)":{marginStart:h}},Ue.createElement(VX,{value:C},Ue.createElement(Ge.div,{ref:r,role:"group",__css:_,className:x,"data-attached":m?"":void 0,...b}))});GX.displayName="ButtonGroup";var Ds=et((e,t)=>{const{icon:r,children:i,isRound:s,"aria-label":c,...u}=e,h=r||i,m=D.exports.isValidElement(h)?D.exports.cloneElement(h,{"aria-hidden":!0,focusable:!1}):null;return k(hu,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":c,...u,children:m},void 0,!1,{fileName:Mf,lineNumber:231,columnNumber:26},globalThis)});Ds.displayName="IconButton";var mO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",iv=(...e)=>e.filter(Boolean).join(" "),tx=e=>e?"":void 0,tA=e=>e?!0:void 0;function t5(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[YX,Pz]=Qr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[qX,ov]=Qr({strict:!1,name:"FormControlContext"});function KX(e){const{id:t,isRequired:r,isInvalid:i,isDisabled:s,isReadOnly:c,...u}=e,h=D.exports.useId(),m=t||`field-${h}`,v=`${m}-label`,b=`${m}-feedback`,x=`${m}-helptext`,[C,_]=D.exports.useState(!1),[N,A]=D.exports.useState(!1),[I,j]=D.exports.useState(!1),M=D.exports.useCallback((X={},de=null)=>({id:x,...X,ref:Xi(de,ve=>{!ve||A(!0)})}),[x]),z=D.exports.useCallback((X={},de=null)=>({...X,ref:de,"data-focus":tx(I),"data-disabled":tx(s),"data-invalid":tx(i),"data-readonly":tx(c),id:X.id??v,htmlFor:X.htmlFor??m}),[m,s,I,i,c,v]),U=D.exports.useCallback((X={},de=null)=>({id:b,...X,ref:Xi(de,ve=>{!ve||_(!0)}),"aria-live":"polite"}),[b]),V=D.exports.useCallback((X={},de=null)=>({...X,...u,ref:de,role:"group"}),[u]),K=D.exports.useCallback((X={},de=null)=>({...X,ref:de,role:"presentation","aria-hidden":!0,children:X.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!i,isReadOnly:!!c,isDisabled:!!s,isFocused:!!I,onFocus:()=>j(!0),onBlur:()=>j(!1),hasFeedbackText:C,setHasFeedbackText:_,hasHelpText:N,setHasHelpText:A,id:m,labelId:v,feedbackId:b,helpTextId:x,htmlProps:u,getHelpTextProps:M,getErrorMessageProps:U,getRootProps:V,getLabelProps:z,getRequiredIndicatorProps:K}}var Vf=et(function(t,r){const i=Xo("Form",t),s=vr(t),{getRootProps:c,htmlProps:u,...h}=KX(s),m=iv("chakra-form-control",t.className);return Ue.createElement(qX,{value:h},Ue.createElement(YX,{value:i},Ue.createElement(Ge.div,{...c({},r),className:m,__css:i.container})))});Vf.displayName="FormControl";var XX=et(function(t,r){const i=ov(),s=Pz(),c=iv("chakra-form__helper-text",t.className);return Ue.createElement(Ge.div,{...i?.getHelpTextProps(t,r),__css:s.helperText,className:c})});XX.displayName="FormHelperText";function t2(e){const{isDisabled:t,isInvalid:r,isReadOnly:i,isRequired:s,...c}=n2(e);return{...c,disabled:t,readOnly:i,required:s,"aria-invalid":tA(r),"aria-required":tA(s),"aria-readonly":tA(i)}}function n2(e){const t=ov(),{id:r,disabled:i,readOnly:s,required:c,isRequired:u,isInvalid:h,isReadOnly:m,isDisabled:v,onFocus:b,onBlur:x,...C}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&_.push(t.feedbackId),t?.hasHelpText&&_.push(t.helpTextId),{...C,"aria-describedby":_.join(" ")||void 0,id:r??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:s??m??t?.isReadOnly,isRequired:c??u??t?.isRequired,isInvalid:h??t?.isInvalid,onFocus:t5(t?.onFocus,b),onBlur:t5(t?.onBlur,x)}}var[ZX,QX]=Qr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),JX=et((e,t)=>{const r=Xo("FormError",e),i=vr(e),s=ov();return s?.isInvalid?Ue.createElement(ZX,{value:r},Ue.createElement(Ge.div,{...s?.getErrorMessageProps(i,t),className:iv("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})):null});JX.displayName="FormErrorMessage";var eZ=et((e,t)=>{const r=QX(),i=ov();if(!i?.isInvalid)return null;const s=iv("chakra-form__error-icon",e.className);return k(El,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:s,children:k("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:mO,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:mO,lineNumber:238,columnNumber:26},globalThis)});eZ.displayName="FormErrorIcon";var Hf=et(function(t,r){const i=Zi("FormLabel",t),s=vr(t),{className:c,children:u,requiredIndicator:h=k(Mz,{},void 0,!1,{fileName:mO,lineNumber:264,columnNumber:41},this),optionalIndicator:m=null,...v}=s,b=ov(),x=b?.getLabelProps(v,r)??{ref:r,...v};return Ue.createElement(Ge.label,{...x,className:iv("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i}},u,b?.isRequired?h:m)});Hf.displayName="FormLabel";var Mz=et(function(t,r){const i=ov(),s=Pz();if(!i?.isRequired)return null;const c=iv("chakra-form__required-indicator",t.className);return Ue.createElement(Ge.span,{...i?.getRequiredIndicatorProps(t,r),__css:s.requiredIndicator,className:c})});Mz.displayName="RequiredIndicator";function ow(e,t){const r=D.exports.useRef(!1),i=D.exports.useRef(!1);D.exports.useEffect(()=>{if(r.current&&i.current)return e();i.current=!0},t),D.exports.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}var r2={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},tZ=Ge("span",{baseStyle:r2});tZ.displayName="VisuallyHidden";var nZ=Ge("input",{baseStyle:r2});nZ.displayName="VisuallyHiddenInput";var n5=!1,rC=null,qm=!1,vO=new Set,rZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function aZ(e){return!(e.metaKey||!rZ&&e.altKey||e.ctrlKey)}function a2(e,t){vO.forEach(r=>r(e,t))}function r5(e){qm=!0,aZ(e)&&(rC="keyboard",a2("keyboard",e))}function Sm(e){rC="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(qm=!0,a2("pointer",e))}function iZ(e){e.target===window||e.target===document||(qm||(rC="keyboard",a2("keyboard",e)),qm=!1)}function oZ(){qm=!1}function a5(){return rC!=="pointer"}function sZ(){if(typeof window>"u"||n5)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){qm=!0,e.apply(this,r)},document.addEventListener("keydown",r5,!0),document.addEventListener("keyup",r5,!0),window.addEventListener("focus",iZ,!0),window.addEventListener("blur",oZ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Sm,!0),document.addEventListener("pointermove",Sm,!0),document.addEventListener("pointerup",Sm,!0)):(document.addEventListener("mousedown",Sm,!0),document.addEventListener("mousemove",Sm,!0),document.addEventListener("mouseup",Sm,!0)),n5=!0}function lZ(e){sZ(),e(a5());const t=()=>e(a5());return vO.add(t),()=>{vO.delete(t)}}var xl="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[xme,uZ]=Qr({name:"CheckboxGroupContext",strict:!1}),cZ=(...e)=>e.filter(Boolean).join(" "),Yi=e=>e?"":void 0;function As(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}function fZ(...e){return function(r){e.forEach(i=>{i?.(r)})}}function dZ(e){const t=Tl;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var Iz=dZ(Ge.svg);function pZ(e){return k(Iz,{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:k("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:xl,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:xl,lineNumber:116,columnNumber:26},this)}function hZ(e){return k(Iz,{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:k("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:xl,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:xl,lineNumber:142,columnNumber:26},this)}function mZ({open:e,children:t}){return k(gc,{initial:!1,children:e&&Ue.createElement(Tl.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:xl,lineNumber:169,columnNumber:26},this)}function vZ(e){const{isIndeterminate:t,isChecked:r,...i}=e;return k(mZ,{open:r||t,children:k(t?hZ:pZ,{...i},void 0,!1,{fileName:xl,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:xl,lineNumber:190,columnNumber:26},this)}function gZ(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function Lz(e={}){const t=n2(e),{isDisabled:r,isReadOnly:i,isRequired:s,isInvalid:c,id:u,onBlur:h,onFocus:m,"aria-describedby":v}=t,{defaultChecked:b,isChecked:x,isFocusable:C,onChange:_,isIndeterminate:N,name:A,value:I,tabIndex:j=void 0,"aria-label":M,"aria-labelledby":z,"aria-invalid":U,...V}=e,K=gZ(V,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),X=ki(_),de=ki(h),ve=ki(m),[se,be]=D.exports.useState(!1),[Xe,ie]=D.exports.useState(!1),[ce,Re]=D.exports.useState(!1),[Ce,oe]=D.exports.useState(!1);D.exports.useEffect(()=>lZ(be),[]);const Se=D.exports.useRef(null),[Te,pe]=D.exports.useState(!0),[we,Ie]=D.exports.useState(!!b),Le=x!==void 0,Ye=Le?x:we,st=D.exports.useCallback(ye=>{if(i||r){ye.preventDefault();return}Le||Ie(Ye?ye.target.checked:N?!0:ye.target.checked),X?.(ye)},[i,r,Ye,Le,N,X]);dc(()=>{Se.current&&(Se.current.indeterminate=Boolean(N))},[N]),ow(()=>{r&&ie(!1)},[r,ie]),dc(()=>{const ye=Se.current;!ye?.form||(ye.form.onreset=()=>{Ie(!!b)})},[]);const mt=r&&!C,Gt=D.exports.useCallback(ye=>{ye.key===" "&&oe(!0)},[oe]),Qe=D.exports.useCallback(ye=>{ye.key===" "&&oe(!1)},[oe]);dc(()=>{if(!Se.current)return;Se.current.checked!==Ye&&Ie(Se.current.checked)},[Se.current]);const vt=D.exports.useCallback((ye={},Mt=null)=>{const Kt=St=>{Xe&&St.preventDefault(),oe(!0)};return{...ye,ref:Mt,"data-active":Yi(Ce),"data-hover":Yi(ce),"data-checked":Yi(Ye),"data-focus":Yi(Xe),"data-focus-visible":Yi(Xe&&se),"data-indeterminate":Yi(N),"data-disabled":Yi(r),"data-invalid":Yi(c),"data-readonly":Yi(i),"aria-hidden":!0,onMouseDown:As(ye.onMouseDown,Kt),onMouseUp:As(ye.onMouseUp,()=>oe(!1)),onMouseEnter:As(ye.onMouseEnter,()=>Re(!0)),onMouseLeave:As(ye.onMouseLeave,()=>Re(!1))}},[Ce,Ye,r,Xe,se,ce,N,c,i]),Et=D.exports.useCallback((ye={},Mt=null)=>({...K,...ye,ref:Xi(Mt,Kt=>{!Kt||pe(Kt.tagName==="LABEL")}),onClick:As(ye.onClick,()=>{var Kt;Te||((Kt=Se.current)==null||Kt.click(),requestAnimationFrame(()=>{var St;(St=Se.current)==null||St.focus()}))}),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[K,r,Ye,c,Te]),zt=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Xi(Se,Mt),type:"checkbox",name:A,value:I,id:u,tabIndex:j,onChange:As(ye.onChange,st),onBlur:As(ye.onBlur,de,()=>ie(!1)),onFocus:As(ye.onFocus,ve,()=>ie(!0)),onKeyDown:As(ye.onKeyDown,Gt),onKeyUp:As(ye.onKeyUp,Qe),required:s,checked:Ye,disabled:mt,readOnly:i,"aria-label":M,"aria-labelledby":z,"aria-invalid":U?Boolean(U):c,"aria-describedby":v,"aria-disabled":r,style:r2}),[A,I,u,st,de,ve,Gt,Qe,s,Ye,mt,i,M,z,U,c,v,r,j]),We=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Mt,onMouseDown:As(ye.onMouseDown,i5),onTouchStart:As(ye.onTouchStart,i5),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[Ye,r,c]);return{state:{isInvalid:c,isFocused:Xe,isChecked:Ye,isActive:Ce,isHovered:ce,isIndeterminate:N,isDisabled:r,isReadOnly:i,isRequired:s},getRootProps:Et,getCheckboxProps:vt,getInputProps:zt,getLabelProps:We,htmlProps:K}}function i5(e){e.preventDefault(),e.stopPropagation()}var yZ=Ge("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),bZ=Ge("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),SZ=et(function(t,r){const i=uZ(),s={...i,...t},c=Xo("Checkbox",s),u=vr(t),{spacing:h="0.5rem",className:m,children:v,iconColor:b,iconSize:x,icon:C=k(vZ,{},void 0,!1,{fileName:xl,lineNumber:505,columnNumber:28},this),isChecked:_,isDisabled:N=i?.isDisabled,onChange:A,inputProps:I,...j}=u;let M=_;i?.value&&u.value&&(M=i.value.includes(u.value));let z=A;i?.onChange&&u.value&&(z=fZ(i.onChange,A));const{state:U,getInputProps:V,getCheckboxProps:K,getLabelProps:X,getRootProps:de}=Lz({...j,isDisabled:N,isChecked:M,onChange:z}),ve=D.exports.useMemo(()=>({opacity:U.isChecked||U.isIndeterminate?1:0,transform:U.isChecked||U.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:x,color:b,...c.icon}),[b,x,U.isChecked,U.isIndeterminate,c.icon]),se=D.exports.cloneElement(C,{__css:ve,isIndeterminate:U.isIndeterminate,isChecked:U.isChecked});return k(bZ,{__css:c.container,className:cZ("chakra-checkbox",m),...de(),children:[k("input",{className:"chakra-checkbox__input",...V(I,r)},void 0,!1,{fileName:xl,lineNumber:548,columnNumber:22},this),k(yZ,{__css:c.control,className:"chakra-checkbox__control",...K(),children:se},void 0,!1,{fileName:xl,lineNumber:551,columnNumber:23},this),v&&Ue.createElement(Ge.span,{className:"chakra-checkbox__label",...X(),__css:{marginStart:h,...c.label}},v)]},void 0,!0,{fileName:xl,lineNumber:544,columnNumber:26},this)});SZ.displayName="Checkbox";var gO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function xZ(e){return k(El,{focusable:"false","aria-hidden":!0,...e,children:k("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:gO,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:gO,lineNumber:13,columnNumber:26},this)}var i2=et(function(t,r){const i=Zi("CloseButton",t),{children:s,isDisabled:c,__css:u,...h}=vr(t),m={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Ue.createElement(Ge.button,{type:"button","aria-label":"Close",ref:r,disabled:c,__css:{...m,...i,...u},...h},s||k(xZ,{width:"1em",height:"1em"},void 0,!1,{fileName:gO,lineNumber:43,columnNumber:34},this))});i2.displayName="CloseButton";function wZ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Fz(e,t){let r=wZ(e);const i=10**(t??10);return r=Math.round(r*i)/i,t?r.toFixed(t):r.toString()}function o5(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function CZ(e,t,r){return e==null?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}function _Z(e={}){const{onChange:t,precision:r,defaultValue:i,value:s,step:c=1,min:u=Number.MIN_SAFE_INTEGER,max:h=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,v=ki(t),[b,x]=D.exports.useState(()=>i==null?"":nA(i,c,r)??""),C=typeof s<"u",_=C?s:b,N=zz(Tf(_),c),A=r??N,I=D.exports.useCallback(se=>{se!==_&&(C||x(se.toString()),v?.(se.toString(),Tf(se)))},[v,C,_]),j=D.exports.useCallback(se=>{let be=se;return m&&(be=CZ(be,u,h)),Fz(be,A)},[A,m,h,u]),M=D.exports.useCallback((se=c)=>{let be;_===""?be=Tf(se):be=Tf(_)+se,be=j(be),I(be)},[j,c,I,_]),z=D.exports.useCallback((se=c)=>{let be;_===""?be=Tf(-se):be=Tf(_)-se,be=j(be),I(be)},[j,c,I,_]),U=D.exports.useCallback(()=>{let se;i==null?se="":se=nA(i,c,r)??u,I(se)},[i,r,c,I,u]),V=D.exports.useCallback(se=>{const be=nA(se,c,A)??u;I(be)},[A,c,I,u]),K=Tf(_);return{isOutOfRange:K>h||K<u,isAtMax:K===h,isAtMin:K===u,precision:A,value:_,valueAsNumber:K,update:I,reset:U,increment:M,decrement:z,clamp:j,cast:V,setValue:x}}function Tf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function zz(e,t){return Math.max(o5(t),o5(e))}function nA(e,t,r){const i=Tf(e);if(Number.isNaN(i))return;const s=zz(i,t);return Fz(i,r??s)}var Bz="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",Uz=`
: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;
}
}
`,EZ=()=>k(Cb,{styles:Uz},void 0,!1,{fileName:Bz,lineNumber:29,columnNumber:41},globalThis),TZ=()=>k(Cb,{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;
}
${Uz}
`},void 0,!1,{fileName:Bz,lineNumber:32,columnNumber:38},globalThis);function yO(e,t,r,i){const s=ki(r);return D.exports.useEffect(()=>{const c=typeof e=="function"?e():e??document;if(!(!r||!c))return c.addEventListener(t,s,i),()=>{c.removeEventListener(t,s,i)}},[t,e,i,s,r]),()=>{const c=typeof e=="function"?e():e??document;c?.removeEventListener(t,s,i)}}var NZ=T7?D.exports.useLayoutEffect:D.exports.useEffect;function s5(e,t=[]){const r=D.exports.useRef(e);return NZ(()=>{r.current=e}),D.exports.useCallback((...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},t)}function RZ(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function AZ(e,t){const r=D.exports.useId();return D.exports.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function bO(e={}){const{onClose:t,onOpen:r,isOpen:i,id:s}=e,c=s5(r),u=s5(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),[v,b]=RZ(i,h),x=AZ(s,"disclosure"),C=D.exports.useCallback(()=>{v||m(!1),u?.()},[v,u]),_=D.exports.useCallback(()=>{v||m(!0),c?.()},[v,c]),N=D.exports.useCallback(()=>{(b?C:_)()},[b,_,C]);return{isOpen:!!b,onOpen:_,onClose:C,onToggle:N,isControlled:v,getButtonProps:(A={})=>({...A,"aria-expanded":b,"aria-controls":x,onClick:N7(A.onClick,N)}),getDisclosureProps:(A={})=>({...A,hidden:!b,id:x})}}function o2(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var Gp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",s2=et(function(t,r){const{htmlSize:i,...s}=t,c=Xo("Input",s),u=vr(s),h=t2(u),m=Jr("chakra-input",t.className);return Ue.createElement(Ge.input,{size:i,...h,__css:c.field,ref:r,className:m})});s2.displayName="Input";s2.id="Input";var[OZ,jz]=Qr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),kZ=et(function(t,r){const i=Xo("Input",t),{children:s,className:c,...u}=vr(t),h=Jr("chakra-input__group",c),m={},v=e2(s),b=i.field;v.forEach(C=>{!i||(b&&C.type.id==="InputLeftElement"&&(m.paddingStart=b.height??b.h),b&&C.type.id==="InputRightElement"&&(m.paddingEnd=b.height??b.h),C.type.id==="InputRightAddon"&&(m.borderEndRadius=0),C.type.id==="InputLeftAddon"&&(m.borderStartRadius=0))});const x=v.map(C=>{var _,N;const A=o2({size:((_=C.props)==null?void 0:_.size)||t.size,variant:((N=C.props)==null?void 0:N.variant)||t.variant});return C.type.id!=="Input"?D.exports.cloneElement(C,A):D.exports.cloneElement(C,Object.assign(A,m,C.props))});return Ue.createElement(Ge.div,{className:h,ref:r,__css:{width:"100%",display:"flex",position:"relative"},...u},k(OZ,{value:i,children:x},void 0,!1,{fileName:Gp,lineNumber:90,columnNumber:22},this))});kZ.displayName="InputGroup";var DZ={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},PZ=Ge("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),l2=et(function(t,r){const{placement:i="left",...s}=t,c=DZ[i]??{},u=jz();return k(PZ,{ref:r,...s,__css:{...u.addon,...c}},void 0,!1,{fileName:Gp,lineNumber:122,columnNumber:26},this)});l2.displayName="InputAddon";var $z=et(function(t,r){return k(l2,{ref:r,placement:"left",...t,className:Jr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:Gp,lineNumber:133,columnNumber:26},this)});$z.displayName="InputLeftAddon";$z.id="InputLeftAddon";var Vz=et(function(t,r){return k(l2,{ref:r,placement:"right",...t,className:Jr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:Gp,lineNumber:143,columnNumber:26},this)});Vz.displayName="InputRightAddon";Vz.id="InputRightAddon";var MZ=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),aC=et(function(t,r){const{placement:i="left",...s}=t,c=jz(),u=c.field,m={[i==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...c.element};return k(MZ,{ref:r,__css:m,...s},void 0,!1,{fileName:Gp,lineNumber:181,columnNumber:26},this)});aC.id="InputElement";aC.displayName="InputElement";var Hz=et(function(t,r){const{className:i,...s}=t,c=Jr("chakra-input__left-element",i);return k(aC,{ref:r,placement:"left",className:c,...s},void 0,!1,{fileName:Gp,lineNumber:192,columnNumber:26},this)});Hz.id="InputLeftElement";Hz.displayName="InputLeftElement";var Wz=et(function(t,r){const{className:i,...s}=t,c=Jr("chakra-input__right-element",i);return k(aC,{ref:r,placement:"right",className:c,...s},void 0,!1,{fileName:Gp,lineNumber:204,columnNumber:26},this)});Wz.id="InputRightElement";Wz.displayName="InputRightElement";function IZ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Wf(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):IZ(e)?Object.keys(e).reduce((r,i)=>(r[i]=t(e[i]),r),{}):e!=null?t(e):null}var Ms="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",LZ=et(function(e,t){const{ratio:r=4/3,children:i,className:s,...c}=e,u=D.exports.Children.only(i),h=Jr("chakra-aspect-ratio",s);return Ue.createElement(Ge.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:Wf(r,m=>`${1/m*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"}},...c},u)});LZ.displayName="AspectRatio";var FZ=et(function(t,r){const i=Zi("Badge",t),{className:s,...c}=vr(t);return Ue.createElement(Ge.span,{ref:r,className:Jr("chakra-badge",t.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});FZ.displayName="Badge";var Ip=Ge("div");Ip.displayName="Box";var Gz=et(function(t,r){const{size:i,centerContent:s=!0,...c}=t;return k(Ip,{ref:r,boxSize:i,__css:{...s?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...c},void 0,!1,{fileName:Ms,lineNumber:84,columnNumber:26},this)});Gz.displayName="Square";var zZ=et(function(t,r){const{size:i,...s}=t;return k(Gz,{size:i,ref:r,borderRadius:"9999px",...s},void 0,!1,{fileName:Ms,lineNumber:98,columnNumber:26},this)});zZ.displayName="Circle";var sw=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});sw.displayName="Center";var BZ={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};et(function(t,r){const{axis:i="both",...s}=t;return Ue.createElement(Ge.div,{ref:r,__css:BZ[i],...s,position:"absolute"})});var UZ=et(function(t,r){const i=Zi("Code",t),{className:s,...c}=vr(t);return Ue.createElement(Ge.code,{ref:r,className:Jr("chakra-code",t.className),...c,__css:{display:"inline-block",...i}})});UZ.displayName="Code";var jZ=et(function(t,r){const{className:i,centerContent:s,...c}=vr(t),u=Zi("Container",t);return Ue.createElement(Ge.div,{ref:r,className:Jr("chakra-container",i),...c,__css:{...u,...s&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});jZ.displayName="Container";var $Z=et(function(t,r){const{borderLeftWidth:i,borderBottomWidth:s,borderTopWidth:c,borderRightWidth:u,borderWidth:h,borderStyle:m,borderColor:v,...b}=Zi("Divider",t),{className:x,orientation:C="horizontal",__css:_,...N}=vr(t),A={vertical:{borderLeftWidth:i||u||h||"1px",height:"100%"},horizontal:{borderBottomWidth:s||c||h||"1px",width:"100%"}};return Ue.createElement(Ge.hr,{ref:r,"aria-orientation":C,...N,__css:{...b,border:"0",borderColor:v,borderStyle:m,...A[C],..._},className:Jr("chakra-divider",x)})});$Z.displayName="Divider";var On=et(function(t,r){const{direction:i,align:s,justify:c,wrap:u,basis:h,grow:m,shrink:v,...b}=t,x={display:"flex",flexDirection:i,alignItems:s,justifyContent:c,flexWrap:u,flexBasis:h,flexGrow:m,flexShrink:v};return Ue.createElement(Ge.div,{ref:r,__css:x,...b})});On.displayName="Flex";var u2=et(function(t,r){const{templateAreas:i,gap:s,rowGap:c,columnGap:u,column:h,row:m,autoFlow:v,autoRows:b,templateRows:x,autoColumns:C,templateColumns:_,...N}=t,A={display:"grid",gridTemplateAreas:i,gridGap:s,gridRowGap:c,gridColumnGap:u,gridAutoColumns:C,gridColumn:h,gridRow:m,gridAutoFlow:v,gridAutoRows:b,gridTemplateRows:x,gridTemplateColumns:_};return Ue.createElement(Ge.div,{ref:r,__css:A,...N})});u2.displayName="Grid";function l5(e){return Wf(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Nf=et(function(t,r){const{area:i,colSpan:s,colStart:c,colEnd:u,rowEnd:h,rowSpan:m,rowStart:v,...b}=t,x=o2({gridArea:i,gridColumn:l5(s),gridRow:l5(m),gridColumnStart:c,gridColumnEnd:u,gridRowStart:v,gridRowEnd:h});return Ue.createElement(Ge.div,{ref:r,__css:x,...b})});Nf.displayName="GridItem";var c2=et(function(t,r){const i=Zi("Heading",t),{className:s,...c}=vr(t);return Ue.createElement(Ge.h2,{ref:r,className:Jr("chakra-heading",t.className),...c,__css:i})});c2.displayName="Heading";et(function(t,r){const i=Zi("Mark",t),s=vr(t);return k(Ip,{ref:r,...s,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:Ms,lineNumber:399,columnNumber:26},this)});var VZ=et(function(t,r){const i=Zi("Kbd",t),{className:s,...c}=vr(t);return Ue.createElement(Ge.kbd,{ref:r,className:Jr("chakra-kbd",s),...c,__css:{fontFamily:"mono",...i}})});VZ.displayName="Kbd";var lw=et(function(t,r){const i=Zi("Link",t),{className:s,isExternal:c,...u}=vr(t);return Ue.createElement(Ge.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:r,className:Jr("chakra-link",s),...u,__css:i})});lw.displayName="Link";et(function(t,r){const{isExternal:i,target:s,rel:c,className:u,...h}=t;return Ue.createElement(Ge.a,{...h,ref:r,className:Jr("chakra-linkbox__overlay",u),rel:i?"noopener noreferrer":c,target:i?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});et(function(t,r){const{className:i,...s}=t;return Ue.createElement(Ge.div,{ref:r,position:"relative",...s,className:Jr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[HZ,Yz]=Qr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),iC=et(function(t,r){const i=Xo("List",t),{children:s,styleType:c="none",stylePosition:u,spacing:h,...m}=vr(t),v=e2(s),x=h?{["& > *:not(style) ~ *:not(style)"]:{mt:h}}:{};return Ue.createElement(HZ,{value:i},Ue.createElement(Ge.ul,{ref:r,listStyleType:c,listStylePosition:u,role:"list",__css:{...i.container,...x},...m},v))});iC.displayName="List";var WZ=et((e,t)=>{const{as:r,...i}=e;return k(iC,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:Ms,lineNumber:550,columnNumber:26},globalThis)});WZ.displayName="OrderedList";var GZ=et(function(t,r){const{as:i,...s}=t;return k(iC,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...s},void 0,!1,{fileName:Ms,lineNumber:561,columnNumber:26},this)});GZ.displayName="UnorderedList";var qz=et(function(t,r){const i=Yz();return Ue.createElement(Ge.li,{ref:r,...t,__css:i.item})});qz.displayName="ListItem";var YZ=et(function(t,r){const i=Yz();return k(El,{ref:r,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:Ms,lineNumber:581,columnNumber:26},this)});YZ.displayName="ListIcon";var qZ=et(function(t,r){const{columns:i,spacingX:s,spacingY:c,spacing:u,minChildWidth:h,...m}=t,v=Ck(),b=h?XZ(h,v):ZZ(i);return k(u2,{ref:r,gap:u,columnGap:s,rowGap:c,templateColumns:b,...m},void 0,!1,{fileName:Ms,lineNumber:601,columnNumber:26},this)});qZ.displayName="SimpleGrid";function KZ(e){return typeof e=="number"?`${e}px`:e}function XZ(e,t){return Wf(e,r=>{const i=H7("sizes",r,KZ(r))(t);return r===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function ZZ(e){return Wf(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Kz=Ge("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Kz.displayName="Spacer";var SO="& > *:not(style) ~ *:not(style)";function QZ(e){const{spacing:t,direction:r}=e,i={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:r,[SO]:Wf(r,s=>i[s])}}function JZ(e){const{spacing:t,direction:r}=e,i={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{"&":Wf(r,s=>i[s])}}var Xz=e=>Ue.createElement(Ge.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Xz.displayName="StackItem";var f2=et((e,t)=>{const{isInline:r,direction:i,align:s,justify:c,spacing:u="0.5rem",wrap:h,children:m,divider:v,className:b,shouldWrapChildren:x,...C}=e,_=r?"row":i??"column",N=D.exports.useMemo(()=>QZ({direction:_,spacing:u}),[_,u]),A=D.exports.useMemo(()=>JZ({spacing:u,direction:_}),[u,_]),I=!!v,j=!x&&!I,M=e2(m),z=j?M:M.map((V,K)=>{const X=typeof V.key<"u"?V.key:K,de=K+1===M.length,se=x?k(Xz,{children:V},X,!1,{fileName:Ms,lineNumber:749,columnNumber:42},globalThis):V;if(!I)return se;const be=D.exports.cloneElement(v,{__css:A}),Xe=de?null:be;return k(D.exports.Fragment,{children:[se,Xe]},X,!0,{fileName:Ms,lineNumber:759,columnNumber:28},globalThis)}),U=Jr("chakra-stack",b);return Ue.createElement(Ge.div,{ref:t,display:"flex",alignItems:s,justifyContent:c,flexDirection:N.flexDirection,flexWrap:h,className:U,__css:I?{}:{[SO]:N[SO]},...C},z)});f2.displayName="Stack";var uw=et((e,t)=>k(f2,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:Ms,lineNumber:779,columnNumber:59},globalThis));uw.displayName="HStack";var eQ=et((e,t)=>k(f2,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:Ms,lineNumber:805,columnNumber:59},globalThis));eQ.displayName="VStack";var Or=et(function(t,r){const i=Zi("Text",t),{className:s,align:c,decoration:u,casing:h,...m}=vr(t),v=o2({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Ue.createElement(Ge.p,{ref:r,className:Jr("chakra-text",t.className),...v,...m,__css:i})});Or.displayName="Text";function u5(e){return typeof e=="number"?`${e}px`:e}var tQ=et(function(t,r){const{spacing:i="0.5rem",spacingX:s,spacingY:c,children:u,justify:h,direction:m,align:v,className:b,shouldWrapChildren:x,...C}=t,_=D.exports.useMemo(()=>{const{spacingX:A=i,spacingY:I=i}={spacingX:s,spacingY:c};return{"--chakra-wrap-x-spacing":j=>Wf(A,M=>u5(MA("space",M)(j))),"--chakra-wrap-y-spacing":j=>Wf(I,M=>u5(MA("space",M)(j))),"--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:h,alignItems:v,flexDirection:m,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)"}}},[i,s,c,h,v,m]),N=x?D.exports.Children.map(u,(A,I)=>k(Zz,{children:A},I,!1,{fileName:Ms,lineNumber:888,columnNumber:107},this)):u;return Ue.createElement(Ge.div,{ref:r,className:Jr("chakra-wrap",b),overflow:"hidden",...C},Ue.createElement(Ge.ul,{className:"chakra-wrap__list",__css:_},N))});tQ.displayName="Wrap";var Zz=et(function(t,r){const{className:i,...s}=t;return Ue.createElement(Ge.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:Jr("chakra-wrap__listitem",i),...s})});Zz.displayName="WrapItem";var c5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",nQ={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[]}}}},Qz=nQ,xm=()=>{},rQ={document:Qz,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:xm,removeEventListener:xm,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:xm,removeListener:xm}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:xm,setInterval:()=>0,clearInterval:xm},aQ=rQ,iQ={window:aQ,document:Qz},Jz=typeof window<"u"?{window,document}:iQ,eB=D.exports.createContext(Jz);eB.displayName="EnvironmentContext";function tB(e){const{children:t,environment:r}=e,[i,s]=D.exports.useState(null),[c,u]=D.exports.useState(!1);D.exports.useEffect(()=>u(!0),[]);const h=D.exports.useMemo(()=>{if(r)return r;const m=i?.ownerDocument,v=i?.ownerDocument.defaultView;return m?{document:m,window:v}:Jz},[i,r]);return k(eB.Provider,{value:h,children:[t,!r&&c&&k("span",{id:"__chakra_env",hidden:!0,ref:m=>{D.exports.startTransition(()=>{m&&s(m)})}},void 0,!1,{fileName:c5,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:c5,lineNumber:134,columnNumber:26},this)}tB.displayName="EnvironmentProvider";function oQ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function sQ(e){if(!oQ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var lQ=e=>e.hasAttribute("tabindex");function uQ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function nB(e){return e.parentElement&&nB(e.parentElement)?!0:e.hidden}function cQ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function fQ(e){if(!sQ(e)||nB(e)||uQ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():cQ(e)?!0:lQ(e)}var dQ=["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]"],pQ=dQ.join(),hQ=e=>e.offsetWidth>0&&e.offsetHeight>0;function mQ(e){const t=Array.from(e.querySelectorAll(pQ));return t.unshift(e),t.filter(r=>fQ(r)&&hQ(r))}var vo="top",Is="bottom",Ls="right",go="left",oC="auto",Mb=[vo,Is,Ls,go],Km="start",fb="end",vQ="clippingParents",rB="viewport",Ey="popper",gQ="reference",f5=Mb.reduce(function(e,t){return e.concat([t+"-"+Km,t+"-"+fb])},[]),aB=[].concat(Mb,[oC]).reduce(function(e,t){return e.concat([t,t+"-"+Km,t+"-"+fb])},[]),yQ="beforeRead",bQ="read",SQ="afterRead",xQ="beforeMain",wQ="main",CQ="afterMain",_Q="beforeWrite",EQ="write",TQ="afterWrite",xO=[yQ,bQ,SQ,xQ,wQ,CQ,_Q,EQ,TQ];function mu(e){return e?(e.nodeName||"").toLowerCase():null}function Fs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jp(e){var t=Fs(e).Element;return e instanceof t||e instanceof Element}function Go(e){var t=Fs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function d2(e){if(typeof ShadowRoot>"u")return!1;var t=Fs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NQ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},c=t.elements[r];!Go(c)||!mu(c)||(Object.assign(c.style,i),Object.keys(s).forEach(function(u){var h=s[u];h===!1?c.removeAttribute(u):c.setAttribute(u,h===!0?"":h)}))})}function RQ(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],c=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),h=u.reduce(function(m,v){return m[v]="",m},{});!Go(s)||!mu(s)||(Object.assign(s.style,h),Object.keys(c).forEach(function(m){s.removeAttribute(m)}))})}}const AQ={name:"applyStyles",enabled:!0,phase:"write",fn:NQ,effect:RQ,requires:["computeStyles"]};function Cl(e){return e.split("-")[0]}var Lp=Math.max,cw=Math.min,Xm=Math.round;function wO(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iB(){return!/^((?!chrome|android).)*safari/i.test(wO())}function Zm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,c=1;t&&Go(e)&&(s=e.offsetWidth>0&&Xm(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Xm(i.height)/e.offsetHeight||1);var u=jp(e)?Fs(e):window,h=u.visualViewport,m=!iB()&&r,v=(i.left+(m&&h?h.offsetLeft:0))/s,b=(i.top+(m&&h?h.offsetTop:0))/c,x=i.width/s,C=i.height/c;return{width:x,height:C,top:b,right:v+x,bottom:b+C,left:v,x:v,y:b}}function p2(e){var t=Zm(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function oB(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&d2(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _l(e){return Fs(e).getComputedStyle(e)}function OQ(e){return["table","td","th"].indexOf(mu(e))>=0}function Xf(e){return((jp(e)?e.ownerDocument:e.document)||window.document).documentElement}function sC(e){return mu(e)==="html"?e:e.assignedSlot||e.parentNode||(d2(e)?e.host:null)||Xf(e)}function d5(e){return!Go(e)||_l(e).position==="fixed"?null:e.offsetParent}function kQ(e){var t=/firefox/i.test(wO()),r=/Trident/i.test(wO());if(r&&Go(e)){var i=_l(e);if(i.position==="fixed")return null}var s=sC(e);for(d2(s)&&(s=s.host);Go(s)&&["html","body"].indexOf(mu(s))<0;){var c=_l(s);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||t&&c.willChange==="filter"||t&&c.filter&&c.filter!=="none")return s;s=s.parentNode}return null}function Ib(e){for(var t=Fs(e),r=d5(e);r&&OQ(r)&&_l(r).position==="static";)r=d5(r);return r&&(mu(r)==="html"||mu(r)==="body"&&_l(r).position==="static")?t:r||kQ(e)||t}function h2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hy(e,t,r){return Lp(e,cw(t,r))}function DQ(e,t,r){var i=Hy(e,t,r);return i>r?r:i}function sB(){return{top:0,right:0,bottom:0,left:0}}function lB(e){return Object.assign({},sB(),e)}function uB(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var PQ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,lB(typeof t!="number"?t:uB(t,Mb))};function MQ(e){var t,r=e.state,i=e.name,s=e.options,c=r.elements.arrow,u=r.modifiersData.popperOffsets,h=Cl(r.placement),m=h2(h),v=[go,Ls].indexOf(h)>=0,b=v?"height":"width";if(!(!c||!u)){var x=PQ(s.padding,r),C=p2(c),_=m==="y"?vo:go,N=m==="y"?Is:Ls,A=r.rects.reference[b]+r.rects.reference[m]-u[m]-r.rects.popper[b],I=u[m]-r.rects.reference[m],j=Ib(c),M=j?m==="y"?j.clientHeight||0:j.clientWidth||0:0,z=A/2-I/2,U=x[_],V=M-C[b]-x[N],K=M/2-C[b]/2+z,X=Hy(U,K,V),de=m;r.modifiersData[i]=(t={},t[de]=X,t.centerOffset=X-K,t)}}function IQ(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;if(s!=null&&!(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s))){if(Go(s)||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(" ")),!oB(t.elements.popper,s)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=s}}const LQ={name:"arrow",enabled:!0,phase:"main",fn:MQ,effect:IQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qm(e){return e.split("-")[1]}var FQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zQ(e){var t=e.x,r=e.y,i=window,s=i.devicePixelRatio||1;return{x:Xm(t*s)/s||0,y:Xm(r*s)/s||0}}function p5(e){var t,r=e.popper,i=e.popperRect,s=e.placement,c=e.variation,u=e.offsets,h=e.position,m=e.gpuAcceleration,v=e.adaptive,b=e.roundOffsets,x=e.isFixed,C=u.x,_=C===void 0?0:C,N=u.y,A=N===void 0?0:N,I=typeof b=="function"?b({x:_,y:A}):{x:_,y:A};_=I.x,A=I.y;var j=u.hasOwnProperty("x"),M=u.hasOwnProperty("y"),z=go,U=vo,V=window;if(v){var K=Ib(r),X="clientHeight",de="clientWidth";if(K===Fs(r)&&(K=Xf(r),_l(K).position!=="static"&&h==="absolute"&&(X="scrollHeight",de="scrollWidth")),K=K,s===vo||(s===go||s===Ls)&&c===fb){U=Is;var ve=x&&K===V&&V.visualViewport?V.visualViewport.height:K[X];A-=ve-i.height,A*=m?1:-1}if(s===go||(s===vo||s===Is)&&c===fb){z=Ls;var se=x&&K===V&&V.visualViewport?V.visualViewport.width:K[de];_-=se-i.width,_*=m?1:-1}}var be=Object.assign({position:h},v&&FQ),Xe=b===!0?zQ({x:_,y:A}):{x:_,y:A};if(_=Xe.x,A=Xe.y,m){var ie;return Object.assign({},be,(ie={},ie[U]=M?"0":"",ie[z]=j?"0":"",ie.transform=(V.devicePixelRatio||1)<=1?"translate("+_+"px, "+A+"px)":"translate3d("+_+"px, "+A+"px, 0)",ie))}return Object.assign({},be,(t={},t[U]=M?A+"px":"",t[z]=j?_+"px":"",t.transform="",t))}function BQ(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,c=r.adaptive,u=c===void 0?!0:c,h=r.roundOffsets,m=h===void 0?!0:h;{var v=_l(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(x){return v.indexOf(x)>=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:Cl(t.placement),variation:Qm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p5(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p5(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BQ,data:{}};var nx={passive:!0};function jQ(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,c=s===void 0?!0:s,u=i.resize,h=u===void 0?!0:u,m=Fs(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&v.forEach(function(b){b.addEventListener("scroll",r.update,nx)}),h&&m.addEventListener("resize",r.update,nx),function(){c&&v.forEach(function(b){b.removeEventListener("scroll",r.update,nx)}),h&&m.removeEventListener("resize",r.update,nx)}}const $Q={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jQ,data:{}};var VQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Ax(e){return e.replace(/left|right|bottom|top/g,function(t){return VQ[t]})}var HQ={start:"end",end:"start"};function h5(e){return e.replace(/start|end/g,function(t){return HQ[t]})}function m2(e){var t=Fs(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function v2(e){return Zm(Xf(e)).left+m2(e).scrollLeft}function WQ(e,t){var r=Fs(e),i=Xf(e),s=r.visualViewport,c=i.clientWidth,u=i.clientHeight,h=0,m=0;if(s){c=s.width,u=s.height;var v=iB();(v||!v&&t==="fixed")&&(h=s.offsetLeft,m=s.offsetTop)}return{width:c,height:u,x:h+v2(e),y:m}}function GQ(e){var t,r=Xf(e),i=m2(e),s=(t=e.ownerDocument)==null?void 0:t.body,c=Lp(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Lp(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),h=-i.scrollLeft+v2(e),m=-i.scrollTop;return _l(s||r).direction==="rtl"&&(h+=Lp(r.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:h,y:m}}function g2(e){var t=_l(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function cB(e){return["html","body","#document"].indexOf(mu(e))>=0?e.ownerDocument.body:Go(e)&&g2(e)?e:cB(sC(e))}function Wy(e,t){var r;t===void 0&&(t=[]);var i=cB(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),c=Fs(i),u=s?[c].concat(c.visualViewport||[],g2(i)?i:[]):i,h=t.concat(u);return s?h:h.concat(Wy(sC(u)))}function CO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YQ(e,t){var r=Zm(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function m5(e,t,r){return t===rB?CO(WQ(e,r)):jp(t)?YQ(t,r):CO(GQ(Xf(e)))}function qQ(e){var t=Wy(sC(e)),r=["absolute","fixed"].indexOf(_l(e).position)>=0,i=r&&Go(e)?Ib(e):e;return jp(i)?t.filter(function(s){return jp(s)&&oB(s,i)&&mu(s)!=="body"}):[]}function KQ(e,t,r,i){var s=t==="clippingParents"?qQ(e):[].concat(t),c=[].concat(s,[r]),u=c[0],h=c.reduce(function(m,v){var b=m5(e,v,i);return m.top=Lp(b.top,m.top),m.right=cw(b.right,m.right),m.bottom=cw(b.bottom,m.bottom),m.left=Lp(b.left,m.left),m},m5(e,u,i));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function fB(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cl(i):null,c=i?Qm(i):null,u=t.x+t.width/2-r.width/2,h=t.y+t.height/2-r.height/2,m;switch(s){case vo:m={x:u,y:t.y-r.height};break;case Is:m={x:u,y:t.y+t.height};break;case Ls:m={x:t.x+t.width,y:h};break;case go:m={x:t.x-r.width,y:h};break;default:m={x:t.x,y:t.y}}var v=s?h2(s):null;if(v!=null){var b=v==="y"?"height":"width";switch(c){case Km:m[v]=m[v]-(t[b]/2-r[b]/2);break;case fb:m[v]=m[v]+(t[b]/2-r[b]/2);break}}return m}function db(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,c=r.strategy,u=c===void 0?e.strategy:c,h=r.boundary,m=h===void 0?vQ:h,v=r.rootBoundary,b=v===void 0?rB:v,x=r.elementContext,C=x===void 0?Ey:x,_=r.altBoundary,N=_===void 0?!1:_,A=r.padding,I=A===void 0?0:A,j=lB(typeof I!="number"?I:uB(I,Mb)),M=C===Ey?gQ:Ey,z=e.rects.popper,U=e.elements[N?M:C],V=KQ(jp(U)?U:U.contextElement||Xf(e.elements.popper),m,b,u),K=Zm(e.elements.reference),X=fB({reference:K,element:z,strategy:"absolute",placement:s}),de=CO(Object.assign({},z,X)),ve=C===Ey?de:K,se={top:V.top-ve.top+j.top,bottom:ve.bottom-V.bottom+j.bottom,left:V.left-ve.left+j.left,right:ve.right-V.right+j.right},be=e.modifiersData.offset;if(C===Ey&&be){var Xe=be[s];Object.keys(se).forEach(function(ie){var ce=[Ls,Is].indexOf(ie)>=0?1:-1,Re=[vo,Is].indexOf(ie)>=0?"y":"x";se[ie]+=Xe[Re]*ce})}return se}function XQ(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,c=r.rootBoundary,u=r.padding,h=r.flipVariations,m=r.allowedAutoPlacements,v=m===void 0?aB:m,b=Qm(i),x=b?h?f5:f5.filter(function(N){return Qm(N)===b}):Mb,C=x.filter(function(N){return v.indexOf(N)>=0});C.length===0&&(C=x,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 _=C.reduce(function(N,A){return N[A]=db(e,{placement:A,boundary:s,rootBoundary:c,padding:u})[Cl(A)],N},{});return Object.keys(_).sort(function(N,A){return _[N]-_[A]})}function ZQ(e){if(Cl(e)===oC)return[];var t=Ax(e);return[h5(e),t,h5(t)]}function QQ(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,c=s===void 0?!0:s,u=r.altAxis,h=u===void 0?!0:u,m=r.fallbackPlacements,v=r.padding,b=r.boundary,x=r.rootBoundary,C=r.altBoundary,_=r.flipVariations,N=_===void 0?!0:_,A=r.allowedAutoPlacements,I=t.options.placement,j=Cl(I),M=j===I,z=m||(M||!N?[Ax(I)]:ZQ(I)),U=[I].concat(z).reduce(function(Ye,st){return Ye.concat(Cl(st)===oC?XQ(t,{placement:st,boundary:b,rootBoundary:x,padding:v,flipVariations:N,allowedAutoPlacements:A}):st)},[]),V=t.rects.reference,K=t.rects.popper,X=new Map,de=!0,ve=U[0],se=0;se<U.length;se++){var be=U[se],Xe=Cl(be),ie=Qm(be)===Km,ce=[vo,Is].indexOf(Xe)>=0,Re=ce?"width":"height",Ce=db(t,{placement:be,boundary:b,rootBoundary:x,altBoundary:C,padding:v}),oe=ce?ie?Ls:go:ie?Is:vo;V[Re]>K[Re]&&(oe=Ax(oe));var Se=Ax(oe),Te=[];if(c&&Te.push(Ce[Xe]<=0),h&&Te.push(Ce[oe]<=0,Ce[Se]<=0),Te.every(function(Ye){return Ye})){ve=be,de=!1;break}X.set(be,Te)}if(de)for(var pe=N?3:1,we=function(st){var mt=U.find(function(Gt){var Qe=X.get(Gt);if(Qe)return Qe.slice(0,st).every(function(vt){return vt})});if(mt)return ve=mt,"break"},Ie=pe;Ie>0;Ie--){var Le=we(Ie);if(Le==="break")break}t.placement!==ve&&(t.modifiersData[i]._skip=!0,t.placement=ve,t.reset=!0)}}const JQ={name:"flip",enabled:!0,phase:"main",fn:QQ,requiresIfExists:["offset"],data:{_skip:!1}};function v5(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function g5(e){return[vo,Ls,Is,go].some(function(t){return e[t]>=0})}function eJ(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,c=t.modifiersData.preventOverflow,u=db(t,{elementContext:"reference"}),h=db(t,{altBoundary:!0}),m=v5(u,i),v=v5(h,s,c),b=g5(m),x=g5(v);t.modifiersData[r]={referenceClippingOffsets:m,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":x})}const tJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eJ};function nJ(e,t,r){var i=Cl(e),s=[go,vo].indexOf(i)>=0?-1:1,c=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=c[0],h=c[1];return u=u||0,h=(h||0)*s,[go,Ls].indexOf(i)>=0?{x:h,y:u}:{x:u,y:h}}function rJ(e){var t=e.state,r=e.options,i=e.name,s=r.offset,c=s===void 0?[0,0]:s,u=aB.reduce(function(b,x){return b[x]=nJ(x,t.rects,c),b},{}),h=u[t.placement],m=h.x,v=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=u}const aJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rJ};function iJ(e){var t=e.state,r=e.name;t.modifiersData[r]=fB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oJ={name:"popperOffsets",enabled:!0,phase:"read",fn:iJ,data:{}};function sJ(e){return e==="x"?"y":"x"}function lJ(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,c=s===void 0?!0:s,u=r.altAxis,h=u===void 0?!1:u,m=r.boundary,v=r.rootBoundary,b=r.altBoundary,x=r.padding,C=r.tether,_=C===void 0?!0:C,N=r.tetherOffset,A=N===void 0?0:N,I=db(t,{boundary:m,rootBoundary:v,padding:x,altBoundary:b}),j=Cl(t.placement),M=Qm(t.placement),z=!M,U=h2(j),V=sJ(U),K=t.modifiersData.popperOffsets,X=t.rects.reference,de=t.rects.popper,ve=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,se=typeof ve=="number"?{mainAxis:ve,altAxis:ve}:Object.assign({mainAxis:0,altAxis:0},ve),be=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Xe={x:0,y:0};if(!!K){if(c){var ie,ce=U==="y"?vo:go,Re=U==="y"?Is:Ls,Ce=U==="y"?"height":"width",oe=K[U],Se=oe+I[ce],Te=oe-I[Re],pe=_?-de[Ce]/2:0,we=M===Km?X[Ce]:de[Ce],Ie=M===Km?-de[Ce]:-X[Ce],Le=t.elements.arrow,Ye=_&&Le?p2(Le):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sB(),mt=st[ce],Gt=st[Re],Qe=Hy(0,X[Ce],Ye[Ce]),vt=z?X[Ce]/2-pe-Qe-mt-se.mainAxis:we-Qe-mt-se.mainAxis,Et=z?-X[Ce]/2+pe+Qe+Gt+se.mainAxis:Ie+Qe+Gt+se.mainAxis,zt=t.elements.arrow&&Ib(t.elements.arrow),We=zt?U==="y"?zt.clientTop||0:zt.clientLeft||0:0,Yt=(ie=be?.[U])!=null?ie:0,ye=oe+vt-Yt-We,Mt=oe+Et-Yt,Kt=Hy(_?cw(Se,ye):Se,oe,_?Lp(Te,Mt):Te);K[U]=Kt,Xe[U]=Kt-oe}if(h){var St,ar=U==="x"?vo:go,ir=U==="x"?Is:Ls,Bt=K[V],fn=V==="y"?"height":"width",kn=Bt+I[ar],hn=Bt-I[ir],Ve=[vo,go].indexOf(j)!==-1,Ze=(St=be?.[V])!=null?St:0,Jt=Ve?kn:Bt-X[fn]-de[fn]-Ze+se.altAxis,Tt=Ve?Bt+X[fn]+de[fn]-Ze-se.altAxis:hn,ke=_&&Ve?DQ(Jt,Bt,Tt):Hy(_?Jt:kn,Bt,_?Tt:hn);K[V]=ke,Xe[V]=ke-Bt}t.modifiersData[i]=Xe}}const uJ={name:"preventOverflow",enabled:!0,phase:"main",fn:lJ,requiresIfExists:["offset"]};function cJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fJ(e){return e===Fs(e)||!Go(e)?m2(e):cJ(e)}function dJ(e){var t=e.getBoundingClientRect(),r=Xm(t.width)/e.offsetWidth||1,i=Xm(t.height)/e.offsetHeight||1;return r!==1||i!==1}function pJ(e,t,r){r===void 0&&(r=!1);var i=Go(t),s=Go(t)&&dJ(t),c=Xf(t),u=Zm(e,s,r),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!r)&&((mu(t)!=="body"||g2(c))&&(h=fJ(t)),Go(t)?(m=Zm(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):c&&(m.x=v2(c))),{x:u.left+h.scrollLeft-m.x,y:u.top+h.scrollTop-m.y,width:u.width,height:u.height}}function hJ(e){var t=new Map,r=new Set,i=[];e.forEach(function(c){t.set(c.name,c)});function s(c){r.add(c.name);var u=[].concat(c.requires||[],c.requiresIfExists||[]);u.forEach(function(h){if(!r.has(h)){var m=t.get(h);m&&s(m)}}),i.push(c)}return e.forEach(function(c){r.has(c.name)||s(c)}),i}function mJ(e){var t=hJ(e);return xO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function vJ(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bf(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return[].concat(r).reduce(function(s,c){return s.replace(/%s/,c)},e)}var yp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',gJ='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',y5=["name","enabled","phase","fn","effect","requires","options"];function yJ(e){e.forEach(function(t){[].concat(Object.keys(t),y5).filter(function(r,i,s){return s.indexOf(r)===i}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(bf(yp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(bf(yp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":xO.indexOf(t.phase)<0&&console.error(bf(yp,t.name,'"phase"',"either "+xO.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(bf(yp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(bf(yp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(bf(yp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(bf(yp,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 '+y5.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(s){return s.name===i})==null&&console.error(bf(gJ,String(t.name),i,i))})})})}function bJ(e,t){var r=new Set;return e.filter(function(i){var s=t(i);if(!r.has(s))return r.add(s),!0})}function SJ(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var b5="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",xJ="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",S5={placement:"bottom",modifiers:[],strategy:"absolute"};function x5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function wJ(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,c=s===void 0?S5:s;return function(h,m,v){v===void 0&&(v=c);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},S5,c),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},x=[],C=!1,_={state:b,setOptions:function(j){var M=typeof j=="function"?j(b.options):j;A(),b.options=Object.assign({},c,b.options,M),b.scrollParents={reference:jp(h)?Wy(h):h.contextElement?Wy(h.contextElement):[],popper:Wy(m)};var z=mJ(SJ([].concat(i,b.options.modifiers)));b.orderedModifiers=z.filter(function(be){return be.enabled});{var U=bJ([].concat(z,b.options.modifiers),function(be){var Xe=be.name;return Xe});if(yJ(U),Cl(b.options.placement)===oC){var V=b.orderedModifiers.find(function(be){var Xe=be.name;return Xe==="flip"});V||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var K=_l(m),X=K.marginTop,de=K.marginRight,ve=K.marginBottom,se=K.marginLeft;[X,de,ve,se].some(function(be){return parseFloat(be)})&&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 N(),_.update()},forceUpdate:function(){if(!C){var j=b.elements,M=j.reference,z=j.popper;if(!x5(M,z)){console.error(b5);return}b.rects={reference:pJ(M,Ib(z),b.options.strategy==="fixed"),popper:p2(z)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(be){return b.modifiersData[be.name]=Object.assign({},be.data)});for(var U=0,V=0;V<b.orderedModifiers.length;V++){if(U+=1,U>100){console.error(xJ);break}if(b.reset===!0){b.reset=!1,V=-1;continue}var K=b.orderedModifiers[V],X=K.fn,de=K.options,ve=de===void 0?{}:de,se=K.name;typeof X=="function"&&(b=X({state:b,options:ve,name:se,instance:_})||b)}}},update:vJ(function(){return new Promise(function(I){_.forceUpdate(),I(b)})}),destroy:function(){A(),C=!0}};if(!x5(h,m))return console.error(b5),_;_.setOptions(v).then(function(I){!C&&v.onFirstUpdate&&v.onFirstUpdate(I)});function N(){b.orderedModifiers.forEach(function(I){var j=I.name,M=I.options,z=M===void 0?{}:M,U=I.effect;if(typeof U=="function"){var V=U({state:b,name:j,instance:_,options:z}),K=function(){};x.push(V||K)}})}function A(){x.forEach(function(I){return I()}),x=[]}return _}}var CJ=[$Q,oJ,UQ,AQ,aJ,JQ,uJ,LQ,tJ],_J=wJ({defaultModifiers:CJ}),wm=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),si={arrowShadowColor:wm("--popper-arrow-shadow-color"),arrowSize:wm("--popper-arrow-size","8px"),arrowSizeHalf:wm("--popper-arrow-size-half"),arrowBg:wm("--popper-arrow-bg"),transformOrigin:wm("--popper-transform-origin"),arrowOffset:wm("--popper-arrow-offset")};function EJ(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 TJ={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"},NJ=e=>TJ[e],w5={scroll:!0,resize:!0};function RJ(e){let t;return typeof e=="object"?t={enabled:!0,options:{...w5,...e}}:t={enabled:e,options:w5},t}var AJ={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`}},OJ={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{C5(e)},effect:({state:e})=>()=>{C5(e)}},C5=e=>{e.elements.popper.style.setProperty(si.transformOrigin.var,NJ(e.placement))},kJ={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{DJ(e)}},DJ=e=>{var t;if(!e.placement)return;const r=PJ(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:si.arrowSize.varRef,height:si.arrowSize.varRef,zIndex:-1});const i={[si.arrowSizeHalf.var]:`calc(${si.arrowSize.varRef} / 2)`,[si.arrowOffset.var]:`calc(${si.arrowSizeHalf.varRef} * -1)`};for(const s in i)e.elements.arrow.style.setProperty(s,i[s])}},PJ=e=>{if(e.startsWith("top"))return{property:"bottom",value:si.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:si.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:si.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:si.arrowOffset.varRef}},MJ={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{_5(e)},effect:({state:e})=>()=>{_5(e)}},_5=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:si.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:EJ(e.placement)})},IJ={"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"}},LJ={"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 FJ(e,t="ltr"){var r;const i=((r=IJ[e])==null?void 0:r[t])||e;return t==="ltr"?i:LJ[e]??i}function zJ(e={}){const{enabled:t=!0,modifiers:r,placement:i="bottom",strategy:s="absolute",arrowPadding:c=8,eventListeners:u=!0,offset:h,gutter:m=8,flip:v=!0,boundary:b="clippingParents",preventOverflow:x=!0,matchWidth:C,direction:_="ltr"}=e,N=D.exports.useRef(null),A=D.exports.useRef(null),I=D.exports.useRef(null),j=FJ(i,_),M=D.exports.useRef(()=>{}),z=D.exports.useCallback(()=>{var se;!t||!N.current||!A.current||((se=M.current)==null||se.call(M),I.current=_J(N.current,A.current,{placement:j,modifiers:[MJ,kJ,OJ,{...AJ,enabled:!!C},{name:"eventListeners",...RJ(u)},{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:h??[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:b}},...r??[]],strategy:s}),I.current.forceUpdate(),M.current=I.current.destroy)},[j,t,r,C,u,c,h,m,v,x,b,s]);D.exports.useEffect(()=>()=>{var se;!N.current&&!A.current&&((se=I.current)==null||se.destroy(),I.current=null)},[]);const U=D.exports.useCallback(se=>{N.current=se,z()},[z]),V=D.exports.useCallback((se={},be=null)=>({...se,ref:Xi(U,be)}),[U]),K=D.exports.useCallback(se=>{A.current=se,z()},[z]),X=D.exports.useCallback((se={},be=null)=>({...se,ref:Xi(K,be),style:{...se.style,position:s,minWidth:C?void 0:"max-content",inset:"0 auto auto 0"}}),[s,K,C]),de=D.exports.useCallback((se={},be=null)=>{const{size:Xe,shadowColor:ie,bg:ce,style:Re,...Ce}=se;return{...Ce,ref:be,"data-popper-arrow":"",style:BJ(se)}},[]),ve=D.exports.useCallback((se={},be=null)=>({...se,ref:be,"data-popper-arrow-inner":""}),[]);return{update(){var se;(se=I.current)==null||se.update()},forceUpdate(){var se;(se=I.current)==null||se.forceUpdate()},transformOrigin:si.transformOrigin.varRef,referenceRef:U,popperRef:K,getPopperProps:X,getArrowProps:de,getArrowInnerProps:ve,getReferenceProps:V}}function BJ(e){const{size:t,shadowColor:r,bg:i,style:s}=e,c={...s,position:"absolute"};return t&&(c["--popper-arrow-size"]=t),r&&(c["--popper-arrow-shadow-color"]=r),i&&(c["--popper-arrow-bg"]=i),c}function UJ(e={}){const{onClose:t,onOpen:r,isOpen:i,id:s}=e,c=ki(r),u=ki(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:h,b=i!==void 0,x=s??`disclosure-${D.exports.useId()}`,C=D.exports.useCallback(()=>{b||m(!1),u?.()},[b,u]),_=D.exports.useCallback(()=>{b||m(!0),c?.()},[b,c]),N=D.exports.useCallback(()=>{v?C():_()},[v,_,C]);function A(j={}){return{...j,"aria-expanded":v,"aria-controls":x,onClick(M){var z;(z=j.onClick)==null||z.call(j,M),N()}}}function I(j={}){return{...j,hidden:!v,id:x}}return{isOpen:v,onOpen:_,onClose:C,onToggle:N,isControlled:b,getButtonProps:A,getDisclosureProps:I}}var Ff="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[jJ,$J]=Qr({strict:!1,name:"PortalManagerContext"});function dB(e){const{children:t,zIndex:r}=e;return k(jJ,{value:{zIndex:r},children:t},void 0,!1,{fileName:Ff,lineNumber:12,columnNumber:26},this)}dB.displayName="PortalManager";var[pB,VJ]=Qr({strict:!1,name:"PortalContext"}),y2="chakra-portal",HJ=".chakra-portal",WJ=e=>k("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:Ff,lineNumber:29,columnNumber:44},globalThis),GJ=e=>{const{appendToParentPortal:t,children:r}=e,[i,s]=D.exports.useState(null),c=D.exports.useRef(null),[,u]=D.exports.useState({});D.exports.useEffect(()=>u({}),[]);const h=VJ(),m=$J();dc(()=>{if(!i)return;const b=i.ownerDocument,x=t?h??b.body:b.body;if(!x)return;c.current=b.createElement("div"),c.current.className=y2,x.appendChild(c.current),u({});const C=c.current;return()=>{x.contains(C)&&x.removeChild(C)}},[i]);const v=m?.zIndex?k(WJ,{zIndex:m?.zIndex,children:r},void 0,!1,{fileName:Ff,lineNumber:65,columnNumber:83},globalThis):r;return c.current?xb.exports.createPortal(k(pB,{value:c.current,children:v},void 0,!1,{fileName:Ff,lineNumber:68,columnNumber:56},globalThis),c.current):k("span",{ref:b=>{b&&s(b)}},void 0,!1,{fileName:Ff,lineNumber:70,columnNumber:52},globalThis)},YJ=e=>{const{children:t,containerRef:r,appendToParentPortal:i}=e,s=r.current,c=s??(typeof window<"u"?document.body:void 0),u=D.exports.useMemo(()=>{const m=s?.ownerDocument.createElement("div");return m&&(m.className=y2),m},[s]),[,h]=D.exports.useState({});return dc(()=>h({}),[]),dc(()=>{if(!(!u||!c))return c.appendChild(u),()=>{c.removeChild(u)}},[u,c]),c&&u?xb.exports.createPortal(k(pB,{value:i?u:null,children:t},void 0,!1,{fileName:Ff,lineNumber:98,columnNumber:41},globalThis),u):null};function Yp(e){const{containerRef:t,...r}=e;return t?k(YJ,{containerRef:t,...r},void 0,!1,{fileName:Ff,lineNumber:106,columnNumber:41},this):k(GJ,{...r},void 0,!1,{fileName:Ff,lineNumber:109,columnNumber:24},this)}Yp.defaultProps={appendToParentPortal:!0};Yp.className=y2;Yp.selector=HJ;Yp.displayName="Portal";var qJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cm=new WeakMap,rx=new WeakMap,ax={},rA=0,KJ=function(e,t,r,i){var s=Array.isArray(e)?e:[e];ax[r]||(ax[r]=new WeakMap);var c=ax[r],u=[],h=new Set,m=new Set(s),v=function(x){!x||h.has(x)||(h.add(x),v(x.parentNode))};s.forEach(v);var b=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(C){if(h.has(C))b(C);else{var _=C.getAttribute(i),N=_!==null&&_!=="false",A=(Cm.get(C)||0)+1,I=(c.get(C)||0)+1;Cm.set(C,A),c.set(C,I),u.push(C),A===1&&N&&rx.set(C,!0),I===1&&C.setAttribute(r,"true"),N||C.setAttribute(i,"true")}})};return b(t),h.clear(),rA++,function(){u.forEach(function(x){var C=Cm.get(x)-1,_=c.get(x)-1;Cm.set(x,C),c.set(x,_),C||(rx.has(x)||x.removeAttribute(i),rx.delete(x)),_||x.removeAttribute(r)}),rA--,rA||(Cm=new WeakMap,Cm=new WeakMap,rx=new WeakMap,ax={})}},XJ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=t||qJ(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),KJ(i,s,r,"aria-hidden")):function(){return null}};function ZJ(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var _t={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var E5=Object.getOwnPropertySymbols,QJ=Object.prototype.hasOwnProperty,JJ=Object.prototype.propertyIsEnumerable;function eee(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function tee(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(c){return t[c]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(c){s[c]=c}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nee=tee()?Object.assign:function(e,t){for(var r,i=eee(e),s,c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var u in r)QJ.call(r,u)&&(i[u]=r[u]);if(E5){s=E5(r);for(var h=0;h<s.length;h++)JJ.call(r,s[h])&&(i[s[h]]=r[s[h]])}}return i},ree="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hB=ree,mB=Function.call.bind(Object.prototype.hasOwnProperty),_O=function(){};{var aee=hB,EO={},iee=mB;_O=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function vB(e,t,r,i,s){for(var c in e)if(iee(e,c)){var u;try{if(typeof e[c]!="function"){var h=Error((i||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=e[c](t,c,i,r,null,aee)}catch(v){u=v}if(u&&!(u instanceof Error)&&_O((i||"React class")+": type specification of "+r+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in EO)){EO[u.message]=!0;var m=s?s():"";_O("Failed "+r+" type: "+u.message+(m??""))}}}vB.resetWarningCache=function(){EO={}};var oee=vB,see=Fw.exports,lee=nee,_m=hB,aA=mB,T5=oee,Am=function(){};Am=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function ix(){return null}var uee=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function s(ie){var ce=ie&&(r&&ie[r]||ie[i]);if(typeof ce=="function")return ce}var c="<<anonymous>>",u={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:x(),arrayOf:C,element:_(),elementType:N(),instanceOf:A,node:z(),objectOf:j,oneOf:I,oneOfType:M,shape:V,exact:K};function h(ie,ce){return ie===ce?ie!==0||1/ie===1/ce:ie!==ie&&ce!==ce}function m(ie,ce){this.message=ie,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}m.prototype=Error.prototype;function v(ie){var ce={},Re=0;function Ce(Se,Te,pe,we,Ie,Le,Ye){if(we=we||c,Le=Le||pe,Ye!==_m){if(t){var st=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 st.name="Invariant Violation",st}else if(typeof console<"u"){var mt=we+":"+pe;!ce[mt]&&Re<3&&(Am("You are manually calling a React.PropTypes validation function for the `"+Le+"` prop on `"+we+"`. 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."),ce[mt]=!0,Re++)}}return Te[pe]==null?Se?Te[pe]===null?new m("The "+Ie+" `"+Le+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new m("The "+Ie+" `"+Le+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:ie(Te,pe,we,Ie,Le)}var oe=Ce.bind(null,!1);return oe.isRequired=Ce.bind(null,!0),oe}function b(ie){function ce(Re,Ce,oe,Se,Te,pe){var we=Re[Ce],Ie=ve(we);if(Ie!==ie){var Le=se(we);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+Le+"` supplied to `"+oe+"`, expected ")+("`"+ie+"`."),{expectedType:ie})}return null}return v(ce)}function x(){return v(ix)}function C(ie){function ce(Re,Ce,oe,Se,Te){if(typeof ie!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var pe=Re[Ce];if(!Array.isArray(pe)){var we=ve(pe);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an array."))}for(var Ie=0;Ie<pe.length;Ie++){var Le=ie(pe,Ie,oe,Se,Te+"["+Ie+"]",_m);if(Le instanceof Error)return Le}return null}return v(ce)}function _(){function ie(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!e(Te)){var pe=ve(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement."))}return null}return v(ie)}function N(){function ie(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!see.isValidElementType(Te)){var pe=ve(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement type."))}return null}return v(ie)}function A(ie){function ce(Re,Ce,oe,Se,Te){if(!(Re[Ce]instanceof ie)){var pe=ie.name||c,we=Xe(Re[Ce]);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected ")+("instance of `"+pe+"`."))}return null}return v(ce)}function I(ie){if(!Array.isArray(ie))return arguments.length>1?Am("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])."):Am("Invalid argument supplied to oneOf, expected an array."),ix;function ce(Re,Ce,oe,Se,Te){for(var pe=Re[Ce],we=0;we<ie.length;we++)if(h(pe,ie[we]))return null;var Ie=JSON.stringify(ie,function(Ye,st){var mt=se(st);return mt==="symbol"?String(st):st});return new m("Invalid "+Se+" `"+Te+"` of value `"+String(pe)+"` "+("supplied to `"+oe+"`, expected one of "+Ie+"."))}return v(ce)}function j(ie){function ce(Re,Ce,oe,Se,Te){if(typeof ie!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an object."));for(var Ie in pe)if(aA(pe,Ie)){var Le=ie(pe,Ie,oe,Se,Te+"."+Ie,_m);if(Le instanceof Error)return Le}return null}return v(ce)}function M(ie){if(!Array.isArray(ie))return Am("Invalid argument supplied to oneOfType, expected an instance of array."),ix;for(var ce=0;ce<ie.length;ce++){var Re=ie[ce];if(typeof Re!="function")return Am("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+be(Re)+" at index "+ce+"."),ix}function Ce(oe,Se,Te,pe,we){for(var Ie=[],Le=0;Le<ie.length;Le++){var Ye=ie[Le],st=Ye(oe,Se,Te,pe,we,_m);if(st==null)return null;st.data&&aA(st.data,"expectedType")&&Ie.push(st.data.expectedType)}var mt=Ie.length>0?", expected one of type ["+Ie.join(", ")+"]":"";return new m("Invalid "+pe+" `"+we+"` supplied to "+("`"+Te+"`"+mt+"."))}return v(Ce)}function z(){function ie(ce,Re,Ce,oe,Se){return X(ce[Re])?null:new m("Invalid "+oe+" `"+Se+"` supplied to "+("`"+Ce+"`, expected a ReactNode."))}return v(ie)}function U(ie,ce,Re,Ce,oe){return new m((ie||"React class")+": "+ce+" type `"+Re+"."+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function V(ie){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));for(var Ie in ie){var Le=ie[Ie];if(typeof Le!="function")return U(oe,Se,Te,Ie,se(Le));var Ye=Le(pe,Ie,oe,Se,Te+"."+Ie,_m);if(Ye)return Ye}return null}return v(ce)}function K(ie){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));var Ie=lee({},Re[Ce],ie);for(var Le in Ie){var Ye=ie[Le];if(aA(ie,Le)&&typeof Ye!="function")return U(oe,Se,Te,Le,se(Ye));if(!Ye)return new m("Invalid "+Se+" `"+Te+"` key `"+Le+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Re[Ce],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(ie),null," "));var st=Ye(pe,Le,oe,Se,Te+"."+Le,_m);if(st)return st}return null}return v(ce)}function X(ie){switch(typeof ie){case"number":case"string":case"undefined":return!0;case"boolean":return!ie;case"object":if(Array.isArray(ie))return ie.every(X);if(ie===null||e(ie))return!0;var ce=s(ie);if(ce){var Re=ce.call(ie),Ce;if(ce!==ie.entries){for(;!(Ce=Re.next()).done;)if(!X(Ce.value))return!1}else for(;!(Ce=Re.next()).done;){var oe=Ce.value;if(oe&&!X(oe[1]))return!1}}else return!1;return!0;default:return!1}}function de(ie,ce){return ie==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function ve(ie){var ce=typeof ie;return Array.isArray(ie)?"array":ie instanceof RegExp?"object":de(ce,ie)?"symbol":ce}function se(ie){if(typeof ie>"u"||ie===null)return""+ie;var ce=ve(ie);if(ce==="object"){if(ie instanceof Date)return"date";if(ie instanceof RegExp)return"regexp"}return ce}function be(ie){var ce=se(ie);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Xe(ie){return!ie.constructor||!ie.constructor.name?c:ie.constructor.name}return u.checkPropTypes=T5,u.resetWarningCache=T5.resetWarningCache,u.PropTypes=u,u};{var cee=Fw.exports,fee=!0;_t.exports=uee(cee.isElement,fee)}var TO="data-focus-lock",gB="data-focus-lock-disabled",dee="data-no-focus-lock",pee="data-autofocus-inside",hee="data-no-autofocus";function mee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vee(e,t){var r=D.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}function yB(e,t){return vee(t||null,function(r){return e.forEach(function(i){return mee(i,r)})})}var iA={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};_t.exports.node;function bB(e){return e}function SB(e,t){t===void 0&&(t=bB);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var u=t(c,i);return r.push(u),function(){r=r.filter(function(h){return h!==u})}},assignSyncMedium:function(c){for(i=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){i=!0;var u=[];if(r.length){var h=r;r=[],h.forEach(c),u=r}var m=function(){var b=u;u=[],b.forEach(c)},v=function(){return Promise.resolve().then(m)};v(),r={push:function(b){u.push(b),v()},filter:function(b){return u=u.filter(b),r}}}};return s}function b2(e,t){return t===void 0&&(t=bB),SB(e,t)}function xB(e){e===void 0&&(e={});var t=SB(null);return t.options=au({async:!0,ssr:!1},e),t}var gee="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",wB=function(e){var t=e.sideCar,r=Gw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return k(i,{...au({},r)},void 0,!1,{fileName:gee,lineNumber:12,columnNumber:12},this)};wB.isSideCarExport=!0;function yee(e,t){return e.useMedium(t),wB}var CB=b2({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),_B=b2(),bee=b2(),See=xB({async:!0}),Ty="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",xee=[],S2=D.exports.forwardRef(function(t,r){var i,s=D.exports.useState(),c=s[0],u=s[1],h=D.exports.useRef(),m=D.exports.useRef(!1),v=D.exports.useRef(null),b=t.children,x=t.disabled,C=t.noFocusGuards,_=t.persistentFocus,N=t.crossFrame,A=t.autoFocus,I=t.allowTextSelection,j=t.group,M=t.className,z=t.whiteList,U=t.hasPositiveIndices,V=t.shards,K=V===void 0?xee:V,X=t.as,de=X===void 0?"div":X,ve=t.lockProps,se=ve===void 0?{}:ve,be=t.sideCar,Xe=t.returnFocus,ie=t.focusOptions,ce=t.onActivation,Re=t.onDeactivation,Ce=D.exports.useState({}),oe=Ce[0],Se=D.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,h.current&&ce&&ce(h.current),m.current=!0},[ce]),Te=D.exports.useCallback(function(){m.current=!1,Re&&Re(h.current)},[Re]);D.exports.useEffect(function(){x||(v.current=null)},[]);var pe=D.exports.useCallback(function(Qe){var vt=v.current;if(vt&&vt.focus){var Et=typeof Xe=="function"?Xe(vt):Xe;if(Et){var zt=typeof Et=="object"?Et:void 0;v.current=null,Qe?Promise.resolve().then(function(){return vt.focus(zt)}):vt.focus(zt)}}},[Xe]),we=D.exports.useCallback(function(Qe){m.current&&CB.useMedium(Qe)},[]),Ie=_B.useMedium,Le=D.exports.useCallback(function(Qe){h.current!==Qe&&(h.current=Qe,u(Qe))},[]);typeof I<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),D.exports.useEffect(function(){h.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ye=eb((i={},i[gB]=x&&"disabled",i[TO]=j,i),se),st=C!==!0,mt=st&&C!=="tail",Gt=yB([r,Le]);return k(yo,{children:[st&&[k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:iA},"guard-first",!1,{fileName:Ty,lineNumber:130,columnNumber:3},this),U?k("div",{"data-focus-guard":!0,tabIndex:x?-1:1,style:iA},"guard-nearest",!1,{fileName:Ty,lineNumber:136,columnNumber:37},this):null],!x&&k(be,{id:oe,sideCar:See,observed:c,disabled:x,persistentFocus:_,crossFrame:N,autoFocus:A,whiteList:z,shards:K,onActivation:Se,onDeactivation:Te,returnFocus:pe,focusOptions:ie},void 0,!1,{fileName:Ty,lineNumber:141,columnNumber:41},this),k(de,{ref:Gt,...Ye,className:M,onBlur:Ie,onFocus:we,children:b},void 0,!1,{fileName:Ty,lineNumber:155,columnNumber:20},this),mt&&k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:iA},void 0,!1,{fileName:Ty,lineNumber:161,columnNumber:51},this)]},void 0,!0)});S2.propTypes={children:_t.exports.node,disabled:_t.exports.bool,returnFocus:_t.exports.oneOfType([_t.exports.bool,_t.exports.object,_t.exports.func]),focusOptions:_t.exports.object,noFocusGuards:_t.exports.bool,hasPositiveIndices:_t.exports.bool,allowTextSelection:_t.exports.bool,autoFocus:_t.exports.bool,persistentFocus:_t.exports.bool,crossFrame:_t.exports.bool,group:_t.exports.string,className:_t.exports.string,whiteList:_t.exports.func,shards:_t.exports.arrayOf(_t.exports.any),as:_t.exports.oneOfType([_t.exports.string,_t.exports.func,_t.exports.object]),lockProps:_t.exports.object,onActivation:_t.exports.func,onDeactivation:_t.exports.func,sideCar:_t.exports.any.isRequired};S2.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 EB=S2;function NO(e,t){return NO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},NO(e,t)}function wee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,NO(e,t)}function TB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cee="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function _ee(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 r(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var c=[],u;function h(){u=e(c.map(function(v){return v.props})),t(u)}var m=function(v){wee(b,v);function b(){return v.apply(this,arguments)||this}b.peek=function(){return u};var x=b.prototype;return x.componentDidMount=function(){c.push(this),h()},x.componentDidUpdate=function(){h()},x.componentWillUnmount=function(){var _=c.indexOf(this);c.splice(_,1),h()},x.render=function(){return k(s,{...this.props},void 0,!1,{fileName:Cee,lineNumber:67,columnNumber:29},this)},b}(D.exports.PureComponent);return TB(m,"displayName","SideEffect("+r(s)+")"),m}}var gu=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},RO=function(e){return Array.isArray(e)?e:[e]},Eee=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"},NB=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},RB=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Tee=function(e,t){return!e||RB(e)||!Eee(e)&&t(NB(e))},AB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=Tee(t,AB.bind(void 0,e));return e.set(t,i),i},Nee=function(e,t){return e&&!RB(e)?Oee(e)?t(NB(e)):!1:!0},OB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=Nee(t,OB.bind(void 0,e));return e.set(t,i),i},kB=function(e){return e.dataset},Ree=function(e){return e.tagName==="BUTTON"},DB=function(e){return e.tagName==="INPUT"},PB=function(e){return DB(e)&&e.type==="radio"},Aee=function(e){return!((DB(e)||Ree(e))&&(e.type==="hidden"||e.disabled))},Oee=function(e){var t=e.getAttribute(hee);return![!0,"true",""].includes(t)},x2=function(e){var t;return Boolean(e&&((t=kB(e))===null||t===void 0?void 0:t.focusGuard))},fw=function(e){return!x2(e)},kee=function(e){return Boolean(e)},Dee=function(e,t){var r=e.tabIndex-t.tabIndex,i=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||i},MB=function(e,t,r){return gu(e).map(function(i,s){return{node:i,index:s,tabIndex:r&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort(Dee)},Pee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],w2=Pee.join(","),Mee="".concat(w2,", [data-focus-guard]"),IB=function(e,t){var r;return gu(((r=e.shadowRoot)===null||r===void 0?void 0:r.children)||e.children).reduce(function(i,s){return i.concat(s.matches(t?Mee:w2)?[s]:[],IB(s))},[])},C2=function(e,t){return e.reduce(function(r,i){return r.concat(IB(i,t),i.parentNode?gu(i.parentNode.querySelectorAll(w2)).filter(function(s){return s===i}):[])},[])},Iee=function(e){var t=e.querySelectorAll("[".concat(pee,"]"));return gu(t).map(function(r){return C2([r])}).reduce(function(r,i){return r.concat(i)},[])},_2=function(e,t){return gu(e).filter(function(r){return AB(t,r)}).filter(function(r){return Aee(r)})},N5=function(e,t){return t===void 0&&(t=new Map),gu(e).filter(function(r){return OB(t,r)})},AO=function(e,t,r){return MB(_2(C2(e,r),t),!0,r)},R5=function(e,t){return MB(_2(C2(e),t),!1)},Lee=function(e,t){return _2(Iee(e),t)},pb=function(e,t){return(e.shadowRoot?pb(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||gu(e.children).some(function(r){return pb(r,t)})},Fee=function(e){for(var t=new Set,r=e.length,i=0;i<r;i+=1)for(var s=i+1;s<r;s+=1){var c=e[i].compareDocumentPosition(e[s]);(c&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(c&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(u,h){return!t.has(h)})},LB=function(e){return e.parentNode?LB(e.parentNode):e},E2=function(e){var t=RO(e);return t.filter(Boolean).reduce(function(r,i){var s=i.getAttribute(TO);return r.push.apply(r,s?Fee(gu(LB(i).querySelectorAll("[".concat(TO,'="').concat(s,'"]:not([').concat(gB,'="disabled"])')))):[i]),r},[])},FB=function(e){return e.activeElement?e.activeElement.shadowRoot?FB(e.activeElement.shadowRoot):e.activeElement:void 0},T2=function(){return document.activeElement?document.activeElement.shadowRoot?FB(document.activeElement.shadowRoot):document.activeElement:void 0},zee=function(e){return e===document.activeElement},Bee=function(e){return Boolean(gu(e.querySelectorAll("iframe")).some(function(t){return zee(t)}))},zB=function(e){var t=document&&T2();return!t||t.dataset&&t.dataset.focusGuard?!1:E2(e).some(function(r){return pb(r,t)||Bee(r)})},Uee=function(){var e=document&&T2();return e?gu(document.querySelectorAll("[".concat(dee,"]"))).some(function(t){return pb(t,e)}):!1},jee=function(e,t){return t.filter(PB).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},N2=function(e,t){return PB(e)&&e.name?jee(e,t):e},$ee=function(e){var t=new Set;return e.forEach(function(r){return t.add(N2(r,e))}),e.filter(function(r){return t.has(r)})},A5=function(e){return e[0]&&e.length>1?N2(e[0],e):e[0]},O5=function(e,t){return e.length>1?e.indexOf(N2(e[t],e)):t},BB="NEW_FOCUS",Vee=function(e,t,r,i){var s=e.length,c=e[0],u=e[s-1],h=x2(r);if(!(r&&e.indexOf(r)>=0)){var m=r!==void 0?t.indexOf(r):-1,v=i?t.indexOf(i):m,b=i?e.indexOf(i):-1,x=m-v,C=t.indexOf(c),_=t.indexOf(u),N=$ee(t),A=r!==void 0?N.indexOf(r):-1,I=A-(i?N.indexOf(i):m),j=O5(e,0),M=O5(e,s-1);if(m===-1||b===-1)return BB;if(!x&&b>=0)return b;if(m<=C&&h&&Math.abs(x)>1)return M;if(m>=_&&h&&Math.abs(x)>1)return j;if(x&&Math.abs(I)>1)return b;if(m<=C)return M;if(m>_)return j;if(x)return Math.abs(x)>1?b:(s+b+x)%s}},OO=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&OO(e.parentNode.host||e.parentNode,t),t},oA=function(e,t){for(var r=OO(e),i=OO(t),s=0;s<r.length;s+=1){var c=r[s];if(i.indexOf(c)>=0)return c}return!1},UB=function(e,t,r){var i=RO(e),s=RO(t),c=i[0],u=!1;return s.filter(Boolean).forEach(function(h){u=oA(u||h,h)||u,r.filter(Boolean).forEach(function(m){var v=oA(c,m);v&&(!u||pb(v,u)?u=v:u=oA(v,u))})}),u},Hee=function(e,t){return e.reduce(function(r,i){return r.concat(Lee(i,t))},[])},Wee=function(e){return function(t){var r;return t.autofocus||!!(!((r=kB(t))===null||r===void 0)&&r.autofocus)||e.indexOf(t)>=0}},Gee=function(e,t){var r=new Map;return t.forEach(function(i){return r.set(i.node,i)}),e.map(function(i){return r.get(i)}).filter(kee)},Yee=function(e,t){var r=document&&T2(),i=E2(e).filter(fw),s=UB(r||e,e,i),c=new Map,u=R5(i,c),h=AO(i,c).filter(function(_){var N=_.node;return fw(N)});if(!(!h[0]&&(h=u,!h[0]))){var m=R5([s],c).map(function(_){var N=_.node;return N}),v=Gee(m,h),b=v.map(function(_){var N=_.node;return N}),x=Vee(b,m,r,t);if(x===BB){var C=N5(u.map(function(_){var N=_.node;return N})).filter(Wee(Hee(i,c)));return{node:C&&C.length?A5(C):A5(N5(b))}}return x===void 0?x:v[x]}},qee=function(e){var t=E2(e).filter(fw),r=UB(e,e,t),i=new Map,s=AO([r],i,!0),c=AO(t,i).filter(function(u){var h=u.node;return fw(h)}).map(function(u){var h=u.node;return h});return s.map(function(u){var h=u.node,m=u.index;return{node:h,index:m,lockItem:c.indexOf(h)>=0,guard:x2(h)}})},Kee=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},sA=0,lA=!1,Xee=function(e,t,r){r===void 0&&(r={});var i=Yee(e,t);if(!lA&&i){if(sA>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lA=!0,setTimeout(function(){lA=!1},1);return}sA++,Kee(i.node,r.focusOptions),sA--}};const jB=Xee;function $B(e){var t=window,r=t.setImmediate;typeof r<"u"?r(e):setTimeout(e,1)}var Zee=function(){return document&&document.activeElement===document.body},Qee=function(){return Zee()||Uee()},Um=null,Mm=null,jm=null,hb=!1,Jee=function(){return!0},ete=function(t){return(Um.whiteList||Jee)(t)},tte=function(t,r){jm={observerNode:t,portaledElement:r}},nte=function(t){return jm&&jm.portaledElement===t};function k5(e,t,r,i){var s=null,c=e;do{var u=i[c];if(u.guard)u.node.dataset.focusAutoGuard&&(s=u);else if(u.lockItem){if(c!==e)return;s=null}else break}while((c+=r)!==t);s&&(s.node.tabIndex=0)}var rte=function(t){return t&&"current"in t?t.current:t},ate=function(t){return t?Boolean(hb):hb==="meanwhile"},ite=function e(t,r,i){return r&&(r.host===t&&(!r.activeElement||i.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,i))},ote=function(t,r){return r.some(function(i){return ite(t,i,i)})},dw=function(){var t=!1;if(Um){var r=Um,i=r.observed,s=r.persistentFocus,c=r.autoFocus,u=r.shards,h=r.crossFrame,m=r.focusOptions,v=i||jm&&jm.portaledElement,b=document&&document.activeElement;if(v){var x=[v].concat(u.map(rte).filter(Boolean));if((!b||ete(b))&&(s||ate(h)||!Qee()||!Mm&&c)&&(v&&!(zB(x)||b&&ote(b,x)||nte(b))&&(document&&!Mm&&b&&!c?(b.blur&&b.blur(),document.body.focus()):(t=jB(x,Mm,{focusOptions:m}),jm={})),hb=!1,Mm=document&&document.activeElement),document){var C=document&&document.activeElement,_=qee(x),N=_.map(function(A){var I=A.node;return I}).indexOf(C);N>-1&&(_.filter(function(A){var I=A.guard,j=A.node;return I&&j.dataset.focusAutoGuard}).forEach(function(A){var I=A.node;return I.removeAttribute("tabIndex")}),k5(N,_.length,1,_),k5(N,-1,-1,_))}}}return t},VB=function(t){dw()&&t&&(t.stopPropagation(),t.preventDefault())},R2=function(){return $B(dw)},ste=function(t){var r=t.target,i=t.currentTarget;i.contains(r)||tte(i,r)},lte=function(){return null};_t.exports.node.isRequired;var HB=function(){hb="just",setTimeout(function(){hb="meanwhile"},0)},ute=function(){document.addEventListener("focusin",VB),document.addEventListener("focusout",R2),window.addEventListener("blur",HB)},cte=function(){document.removeEventListener("focusin",VB),document.removeEventListener("focusout",R2),window.removeEventListener("blur",HB)};function fte(e){return e.filter(function(t){var r=t.disabled;return!r})}function dte(e){var t=e.slice(-1)[0];t&&!Um&&ute();var r=Um,i=r&&t&&t.id===r.id;Um=t,r&&!i&&(r.onDeactivation(),e.filter(function(s){var c=s.id;return c===r.id}).length||r.returnFocus(!t)),t?(Mm=null,(!i||r.observed!==t.observed)&&t.onActivation(),dw(),$B(dw)):(cte(),Mm=null)}CB.assignSyncMedium(ste);_B.assignMedium(R2);bee.assignMedium(function(e){return e({moveFocusInside:jB,focusInside:zB})});const pte=_ee(fte,dte)(lte);var hte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",WB=D.exports.forwardRef(function(t,r){return k(EB,{sideCar:pte,ref:r,...t},void 0,!1,{fileName:hte,lineNumber:16,columnNumber:23},this)}),GB=EB.propTypes||{};GB.sideCar;var mte=ZJ(GB,["sideCar"]);WB.propTypes=mte;const vte=WB;var gte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",YB=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:i,restoreFocus:s,children:c,isDisabled:u,autoFocus:h,persistentFocus:m,lockFocusAcrossFrames:v}=e,b=D.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&mQ(i.current).length===0&&requestAnimationFrame(()=>{var N;(N=i.current)==null||N.focus()})},[t,i]),x=D.exports.useCallback(()=>{var _;(_=r?.current)==null||_.focus()},[r]);return k(vte,{crossFrame:v,persistentFocus:m,autoFocus:h,disabled:u,onActivation:b,onDeactivation:x,returnFocus:s&&!r,children:c},void 0,!1,{fileName:gte,lineNumber:38,columnNumber:26},globalThis)};YB.displayName="FocusLock";var Ox="right-scroll-bar-position",kx="width-before-scroll-bar",yte="with-scroll-bars-hidden",bte="--removed-body-scroll-bar-size",qB=xB(),D5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",uA=function(){},lC=D.exports.forwardRef(function(e,t){var r=D.exports.useRef(null),i=D.exports.useState({onScrollCapture:uA,onWheelCapture:uA,onTouchMoveCapture:uA}),s=i[0],c=i[1],u=e.forwardProps,h=e.children,m=e.className,v=e.removeScrollBar,b=e.enabled,x=e.shards,C=e.sideCar,_=e.noIsolation,N=e.inert,A=e.allowPinchZoom,I=e.as,j=I===void 0?"div":I,M=Gw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),z=C,U=yB([r,t]),V=au(au({},M),s);return k(yo,{children:[b&&k(z,{sideCar:qB,removeScrollBar:v,shards:x,noIsolation:_,inert:N,setCallbacks:c,allowPinchZoom:!!A,lockRef:r},void 0,!1,{fileName:D5,lineNumber:24,columnNumber:21},this),u?D.exports.cloneElement(D.exports.Children.only(h),au(au({},V),{ref:U})):k(j,{...au({},V,{className:m,ref:U}),children:h},void 0,!1,{fileName:D5,lineNumber:25,columnNumber:142},this)]},void 0,!0)});lC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lC.classNames={fullWidth:kx,zeroRight:Ox};var Ste=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xte(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ste();return t&&e.setAttribute("nonce",t),e}function wte(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Cte(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _te=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xte())&&(wte(t,r),Cte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ete=function(){var e=_te();return function(t,r){D.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},KB=function(){var e=Ete(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},Tte={left:0,top:0,right:0,gap:0},cA=function(e){return parseInt(e||"",10)||0},Nte=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 r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[cA(r),cA(i),cA(s)]},Rte=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tte;var t=Nte(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Ate="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",Ote=KB(),kte=function(e,t,r,i){var s=e.left,c=e.top,u=e.right,h=e.gap;return r===void 0&&(r="margin"),`
.`.concat(yte,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(h,"px ").concat(i,`;
}
body {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(c,`px;
padding-right: `).concat(u,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(h,"px ").concat(i,`;
`),r==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(Ox,` {
right: `).concat(h,"px ").concat(i,`;
}
.`).concat(kx,` {
margin-right: `).concat(h,"px ").concat(i,`;
}
.`).concat(Ox," .").concat(Ox,` {
right: 0 `).concat(i,`;
}
.`).concat(kx," .").concat(kx,` {
margin-right: 0 `).concat(i,`;
}
body {
`).concat(bte,": ").concat(h,`px;
}
`)},Dte=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i,c=D.exports.useMemo(function(){return Rte(s)},[s]);return k(Ote,{styles:kte(c,!t,s,r?"":"!important")},void 0,!1,{fileName:Ate,lineNumber:27,columnNumber:12},this)},kO=!1;if(typeof window<"u")try{var ox=Object.defineProperty({},"passive",{get:function(){return kO=!0,!0}});window.addEventListener("test",ox,ox),window.removeEventListener("test",ox,ox)}catch{kO=!1}var Em=kO?{passive:!1}:!1,Pte=function(e){return e.tagName==="TEXTAREA"},XB=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Pte(e)&&r[t]==="visible")},Mte=function(e){return XB(e,"overflowY")},Ite=function(e){return XB(e,"overflowX")},P5=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=ZB(e,r);if(i){var s=QB(e,r),c=s[1],u=s[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Lte=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},Fte=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},ZB=function(e,t){return e==="v"?Mte(t):Ite(t)},QB=function(e,t){return e==="v"?Lte(t):Fte(t)},zte=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bte=function(e,t,r,i,s){var c=zte(e,window.getComputedStyle(t).direction),u=c*i,h=r.target,m=t.contains(h),v=!1,b=u>0,x=0,C=0;do{var _=QB(e,h),N=_[0],A=_[1],I=_[2],j=A-I-c*N;(N||j)&&ZB(e,h)&&(x+=j,C+=N),h=h.parentNode}while(!m&&h!==document.body||m&&(t.contains(h)||t===h));return(b&&(s&&x===0||!s&&u>x)||!b&&(s&&C===0||!s&&-u>C))&&(v=!0),v},M5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",sx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},I5=function(e){return[e.deltaX,e.deltaY]},L5=function(e){return e&&"current"in e?e.current:e},Ute=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jte=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},$te=0,Tm=[];function Vte(e){var t=D.exports.useRef([]),r=D.exports.useRef([0,0]),i=D.exports.useRef(),s=D.exports.useState($te++)[0],c=D.exports.useState(function(){return KB()})[0],u=D.exports.useRef(e);D.exports.useEffect(function(){u.current=e},[e]),D.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var A=qA([e.lockRef.current],(e.shards||[]).map(L5),!0).filter(Boolean);return A.forEach(function(I){return I.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),A.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=D.exports.useCallback(function(A,I){if("touches"in A&&A.touches.length===2)return!u.current.allowPinchZoom;var j=sx(A),M=r.current,z="deltaX"in A?A.deltaX:M[0]-j[0],U="deltaY"in A?A.deltaY:M[1]-j[1],V,K=A.target,X=Math.abs(z)>Math.abs(U)?"h":"v";if("touches"in A&&X==="h"&&K.type==="range")return!1;var de=P5(X,K);if(!de)return!0;if(de?V=X:(V=X==="v"?"h":"v",de=P5(X,K)),!de)return!1;if(!i.current&&"changedTouches"in A&&(z||U)&&(i.current=V),!V)return!0;var ve=i.current||V;return Bte(ve,I,A,ve==="h"?z:U,!0)},[]),m=D.exports.useCallback(function(A){var I=A;if(!(!Tm.length||Tm[Tm.length-1]!==c)){var j="deltaY"in I?I5(I):sx(I),M=t.current.filter(function(V){return V.name===I.type&&V.target===I.target&&Ute(V.delta,j)})[0];if(M&&M.should){I.cancelable&&I.preventDefault();return}if(!M){var z=(u.current.shards||[]).map(L5).filter(Boolean).filter(function(V){return V.contains(I.target)}),U=z.length>0?h(I,z[0]):!u.current.noIsolation;U&&I.cancelable&&I.preventDefault()}}},[]),v=D.exports.useCallback(function(A,I,j,M){var z={name:A,delta:I,target:j,should:M};t.current.push(z),setTimeout(function(){t.current=t.current.filter(function(U){return U!==z})},1)},[]),b=D.exports.useCallback(function(A){r.current=sx(A),i.current=void 0},[]),x=D.exports.useCallback(function(A){v(A.type,I5(A),A.target,h(A,e.lockRef.current))},[]),C=D.exports.useCallback(function(A){v(A.type,sx(A),A.target,h(A,e.lockRef.current))},[]);D.exports.useEffect(function(){return Tm.push(c),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",m,Em),document.addEventListener("touchmove",m,Em),document.addEventListener("touchstart",b,Em),function(){Tm=Tm.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Em),document.removeEventListener("touchmove",m,Em),document.removeEventListener("touchstart",b,Em)}},[]);var _=e.removeScrollBar,N=e.inert;return k(yo,{children:[N?k(c,{styles:jte(s)},void 0,!1,{fileName:M5,lineNumber:144,columnNumber:17},this):null,_?k(Dte,{gapMode:"margin"},void 0,!1,{fileName:M5,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Hte=yee(qB,Vte);var Wte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",JB=D.exports.forwardRef(function(e,t){return k(lC,{...au({},e,{ref:t,sideCar:Hte})},void 0,!1,{fileName:Wte,lineNumber:5,columnNumber:74},this)});JB.classNames=lC.classNames;const Gte=JB;var mo="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",qp=(...e)=>e.filter(Boolean).join(" ");function Dy(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var Yte=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}},DO=new Yte;function qte(e,t){D.exports.useEffect(()=>(t&&DO.add(e),()=>{DO.remove(e)}),[t,e])}function Kte(e){const{isOpen:t,onClose:r,id:i,closeOnOverlayClick:s=!0,closeOnEsc:c=!0,useInert:u=!0,onOverlayClick:h,onEsc:m}=e,v=D.exports.useRef(null),b=D.exports.useRef(null),[x,C,_]=Zte(i,"chakra-modal","chakra-modal--header","chakra-modal--body");Xte(v,t&&u),qte(v,t);const N=D.exports.useRef(null),A=D.exports.useCallback(de=>{N.current=de.target},[]),I=D.exports.useCallback(de=>{de.key==="Escape"&&(de.stopPropagation(),c&&r?.(),m?.())},[c,r,m]),[j,M]=D.exports.useState(!1),[z,U]=D.exports.useState(!1),V=D.exports.useCallback((de={},ve=null)=>({role:"dialog",...de,ref:Xi(ve,v),id:x,tabIndex:-1,"aria-modal":!0,"aria-labelledby":j?C:void 0,"aria-describedby":z?_:void 0,onClick:Dy(de.onClick,se=>se.stopPropagation())}),[_,z,x,C,j]),K=D.exports.useCallback(de=>{de.stopPropagation(),N.current===de.target&&(!DO.isTopModal(v)||(s&&r?.(),h?.()))},[r,s,h]),X=D.exports.useCallback((de={},ve=null)=>({...de,ref:Xi(ve,b),onClick:Dy(de.onClick,K),onKeyDown:Dy(de.onKeyDown,I),onMouseDown:Dy(de.onMouseDown,A)}),[I,A,K]);return{isOpen:t,onClose:r,headerId:C,bodyId:_,setBodyMounted:U,setHeaderMounted:M,dialogRef:v,overlayRef:b,getDialogProps:V,getDialogContainerProps:X}}function Xte(e,t){const r=e.current;D.exports.useEffect(()=>{if(!(!e.current||!t))return XJ(e.current)},[t,e,r])}function Zte(e,...t){const r=D.exports.useId(),i=e||r;return D.exports.useMemo(()=>t.map(s=>`${s}-${i}`),[i,t])}var[Qte,Kp]=Qr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Jte,Gf]=Qr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),mb=e=>{const{portalProps:t,children:r,autoFocus:i,trapFocus:s,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:C,onCloseComplete:_}=e,N=Xo("Modal",e),I={...Kte(e),autoFocus:i,trapFocus:s,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:C};return k(Jte,{value:I,children:k(Qte,{value:N,children:k(gc,{onExitComplete:_,children:I.isOpen&&k(Yp,{...t,children:r},void 0,!1,{fileName:mo,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:mo,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:mo,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:mo,lineNumber:189,columnNumber:26},globalThis)};mb.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};mb.displayName="Modal";var pw=et((e,t)=>{const{className:r,...i}=e,{bodyId:s,setBodyMounted:c}=Gf();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=qp("chakra-modal__body",r),h=Kp();return Ue.createElement(Ge.div,{ref:t,className:u,id:s,...i,__css:h.body})});pw.displayName="ModalBody";var e6=et((e,t)=>{const{onClick:r,className:i,...s}=e,{onClose:c}=Gf(),u=qp("chakra-modal__close-btn",i),h=Kp();return k(i2,{ref:t,__css:h.closeButton,className:u,onClick:Dy(r,m=>{m.stopPropagation(),c()}),...s},void 0,!1,{fileName:mo,lineNumber:241,columnNumber:26},globalThis)});e6.displayName="ModalCloseButton";function t6(e){const{autoFocus:t,trapFocus:r,dialogRef:i,initialFocusRef:s,blockScrollOnMount:c,allowPinchZoom:u,finalFocusRef:h,returnFocusOnClose:m,preserveScrollBarGap:v,lockFocusAcrossFrames:b}=Gf(),[x,C]=Vk();return D.exports.useEffect(()=>{!x&&C&&setTimeout(C)},[x,C]),k(YB,{autoFocus:t,isDisabled:!r,initialFocusRef:s,finalFocusRef:h,restoreFocus:m,contentRef:i,lockFocusAcrossFrames:b,children:k(Gte,{removeScrollBar:!v,allowPinchZoom:u,enabled:c,forwardProps:!0,children:e.children},void 0,!1,{fileName:mo,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:mo,lineNumber:284,columnNumber:26},this)}var ene={slideInBottom:{...fO,custom:{offsetY:16,reverse:!0}},slideInRight:{...fO,custom:{offsetX:16,reverse:!0}},scale:{...wz,custom:{initialScale:.95,reverse:!0}},none:{}},tne=Ge(Tl.section),n6=D.exports.forwardRef((e,t)=>{const{preset:r,...i}=e,s=ene[r];return k(tne,{ref:t,...s,...i},void 0,!1,{fileName:mo,lineNumber:324,columnNumber:26},globalThis)});n6.displayName="ModalTransition";var hw=et((e,t)=>{const{className:r,children:i,containerProps:s,...c}=e,{getDialogProps:u,getDialogContainerProps:h}=Gf(),m=u(c,t),v=h(s),b=qp("chakra-modal__content",r),x=Kp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:N}=Gf();return Ue.createElement(t6,null,Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:_},k(n6,{preset:N,className:b,...m,__css:C,children:i},void 0,!1,{fileName:mo,lineNumber:366,columnNumber:22},globalThis)))});hw.displayName="ModalContent";var A2=et((e,t)=>{const{className:r,...i}=e,s=qp("chakra-modal__footer",r),c=Kp(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer};return Ue.createElement(Ge.footer,{ref:t,...i,__css:u,className:s})});A2.displayName="ModalFooter";var O2=et((e,t)=>{const{className:r,...i}=e,{headerId:s,setHeaderMounted:c}=Gf();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=qp("chakra-modal__header",r),h=Kp(),m={flex:0,...h.header};return Ue.createElement(Ge.header,{ref:t,className:u,id:s,...i,__css:m})});O2.displayName="ModalHeader";var nne=Ge(Tl.div),mw=et((e,t)=>{const{className:r,transition:i,...s}=e,c=qp("chakra-modal__overlay",r),u=Kp(),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...u.overlay},{motionPreset:m}=Gf();return k(nne,{...m==="none"?{}:xz,__css:h,ref:t,className:c,...s},void 0,!1,{fileName:mo,lineNumber:450,columnNumber:26},globalThis)});mw.displayName="ModalOverlay";function rne(e){const{leastDestructiveRef:t,...r}=e;return k(mb,{...r,initialFocusRef:t},void 0,!1,{fileName:mo,lineNumber:464,columnNumber:26},this)}var ane=et((e,t)=>k(hw,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:mo,lineNumber:469,columnNumber:70},globalThis)),[wme,ine]=Qr(),one=Ge(Cz),sne=et((e,t)=>{const{className:r,children:i,...s}=e,{getDialogProps:c,getDialogContainerProps:u,isOpen:h}=Gf(),m=c(s,t),v=u(),b=qp("chakra-modal__content",r),x=Kp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{placement:N}=ine();return Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",__css:_},k(t6,{children:k(one,{direction:N,in:h,className:b,...m,__css:C,children:i},void 0,!1,{fileName:mo,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:mo,lineNumber:547,columnNumber:22},globalThis))});sne.displayName="DrawerContent";function lne(e,t){const r=ki(e);D.exports.useEffect(()=>{let i=null;const s=()=>r();return t!==null&&(i=window.setInterval(s,t)),()=>{i&&window.clearInterval(i)}},[t,r])}var Yf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",r6=(...e)=>e.filter(Boolean).join(" "),fA=e=>e?!0:void 0;function Ql(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var une=e=>k(El,{viewBox:"0 0 24 24",...e,children:k("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:Yf,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:Yf,lineNumber:31,columnNumber:51},globalThis),cne=e=>k(El,{viewBox:"0 0 24 24",...e,children:k("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:Yf,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:Yf,lineNumber:38,columnNumber:49},globalThis);function F5(e,t,r,i){D.exports.useEffect(()=>{if(!e.current||!i)return;const s=e.current.ownerDocument.defaultView??window,c=Array.isArray(t)?t:[t],u=new s.MutationObserver(h=>{for(const m of h)m.type==="attributes"&&m.attributeName&&c.includes(m.attributeName)&&r(m)});return u.observe(e.current,{attributes:!0,attributeFilter:c}),()=>u.disconnect()})}var fne=50,z5=300;function dne(e,t){const[r,i]=D.exports.useState(!1),[s,c]=D.exports.useState(null),[u,h]=D.exports.useState(!0),m=D.exports.useRef(null),v=()=>clearTimeout(m.current);lne(()=>{s==="increment"&&e(),s==="decrement"&&t()},r?fne:null);const b=D.exports.useCallback(()=>{u&&e(),m.current=setTimeout(()=>{h(!1),i(!0),c("increment")},z5)},[e,u]),x=D.exports.useCallback(()=>{u&&t(),m.current=setTimeout(()=>{h(!1),i(!0),c("decrement")},z5)},[t,u]),C=D.exports.useCallback(()=>{h(!0),i(!1),v()},[]);return D.exports.useEffect(()=>()=>v(),[]),{up:b,down:x,stop:C,isSpinning:r}}var pne=/^[Ee0-9+\-.]$/;function hne(e){return pne.test(e)}function mne(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function vne(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:i=!0,min:s=Number.MIN_SAFE_INTEGER,max:c=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:h,isDisabled:m,isRequired:v,isInvalid:b,pattern:x="[0-9]*(.[0-9]+)?",inputMode:C="decimal",allowMouseWheel:_,id:N,onChange:A,precision:I,name:j,"aria-describedby":M,"aria-label":z,"aria-labelledby":U,onFocus:V,onBlur:K,onInvalid:X,getAriaValueText:de,isValidCharacter:ve,format:se,parse:be,...Xe}=e,ie=ki(V),ce=ki(K),Re=ki(X),Ce=ki(ve??hne),oe=ki(de),Se=_Z(e),{update:Te,increment:pe,decrement:we}=Se,[Ie,Le]=D.exports.useState(!1),Ye=!(h||m),st=D.exports.useRef(null),mt=D.exports.useRef(null),Gt=D.exports.useRef(null),Qe=D.exports.useRef(null),vt=D.exports.useCallback(ke=>ke.split("").filter(Ce).join(""),[Ce]),Et=D.exports.useCallback(ke=>be?.(ke)??ke,[be]),zt=D.exports.useCallback(ke=>(se?.(ke)??ke).toString(),[se]);ow(()=>{(Se.valueAsNumber>c||Se.valueAsNumber<s)&&Re?.("rangeOverflow",zt(Se.value),Se.valueAsNumber)},[Se.valueAsNumber,Se.value,zt,Re]),dc(()=>{if(!st.current)return;if(st.current.value!=Se.value){const jt=Et(st.current.value);Se.setValue(vt(jt))}},[Et,vt]);const We=D.exports.useCallback((ke=u)=>{Ye&&pe(ke)},[pe,Ye,u]),Yt=D.exports.useCallback((ke=u)=>{Ye&&we(ke)},[we,Ye,u]),ye=dne(We,Yt);F5(Gt,"disabled",ye.stop,ye.isSpinning),F5(Qe,"disabled",ye.stop,ye.isSpinning);const Mt=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;const xn=Et(ke.currentTarget.value);Te(vt(xn)),mt.current={start:ke.currentTarget.selectionStart,end:ke.currentTarget.selectionEnd}},[Te,vt,Et]),Kt=D.exports.useCallback(ke=>{var jt;ie?.(ke),mt.current&&(ke.target.selectionStart=mt.current.start??((jt=ke.currentTarget.value)==null?void 0:jt.length),ke.currentTarget.selectionEnd=mt.current.end??ke.currentTarget.selectionStart)},[ie]),St=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;mne(ke,Ce)||ke.preventDefault();const jt=ar(ke)*u,xn=ke.key,rt={ArrowUp:()=>We(jt),ArrowDown:()=>Yt(jt),Home:()=>Te(s),End:()=>Te(c)}[xn];rt&&(ke.preventDefault(),rt(ke))},[Ce,u,We,Yt,Te,s,c]),ar=ke=>{let jt=1;return(ke.metaKey||ke.ctrlKey)&&(jt=.1),ke.shiftKey&&(jt=10),jt},ir=D.exports.useMemo(()=>{const ke=oe?.(Se.value);if(ke!=null)return ke;const jt=Se.value.toString();return jt||void 0},[Se.value,oe]),Bt=D.exports.useCallback(()=>{let ke=Se.value;ke!==""&&(Se.valueAsNumber<s&&(ke=s),Se.valueAsNumber>c&&(ke=c),Se.cast(ke))},[Se,c,s]),fn=D.exports.useCallback(()=>{Le(!1),r&&Bt()},[r,Le,Bt]),kn=D.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ke;(ke=st.current)==null||ke.focus()})},[t]),hn=D.exports.useCallback(ke=>{ke.preventDefault(),ye.up(),kn()},[kn,ye]),Ve=D.exports.useCallback(ke=>{ke.preventDefault(),ye.down(),kn()},[kn,ye]);yO(()=>st.current,"wheel",ke=>{var jt;const je=(((jt=st.current)==null?void 0:jt.ownerDocument)??document).activeElement===st.current;if(!_||!je)return;ke.preventDefault();const rt=ar(ke)*u,xt=Math.sign(ke.deltaY);xt===-1?We(rt):xt===1&&Yt(rt)},{passive:!1});const Ze=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMax;return{...ke,ref:Xi(jt,Gt),role:"button",tabIndex:-1,onPointerDown:Ql(ke.onPointerDown,je=>{xn||hn(je)}),onPointerLeave:Ql(ke.onPointerLeave,ye.stop),onPointerUp:Ql(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":fA(xn)}},[Se.isAtMax,i,hn,ye.stop,m]),Jt=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMin;return{...ke,ref:Xi(jt,Qe),role:"button",tabIndex:-1,onPointerDown:Ql(ke.onPointerDown,je=>{xn||Ve(je)}),onPointerLeave:Ql(ke.onPointerLeave,ye.stop),onPointerUp:Ql(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":fA(xn)}},[Se.isAtMin,i,Ve,ye.stop,m]),Tt=D.exports.useCallback((ke={},jt=null)=>({name:j,inputMode:C,type:"text",pattern:x,"aria-labelledby":U,"aria-label":z,"aria-describedby":M,id:N,disabled:m,...ke,readOnly:ke.readOnly??h,"aria-readonly":ke.readOnly??h,"aria-required":ke.required??v,required:ke.required??v,ref:Xi(st,jt),value:zt(Se.value),role:"spinbutton","aria-valuemin":s,"aria-valuemax":c,"aria-valuenow":Number.isNaN(Se.valueAsNumber)?void 0:Se.valueAsNumber,"aria-invalid":fA(b??Se.isOutOfRange),"aria-valuetext":ir,autoComplete:"off",autoCorrect:"off",onChange:Ql(ke.onChange,Mt),onKeyDown:Ql(ke.onKeyDown,St),onFocus:Ql(ke.onFocus,Kt,()=>Le(!0)),onBlur:Ql(ke.onBlur,ce,fn)}),[j,C,x,U,z,zt,M,N,m,v,h,b,Se.value,Se.valueAsNumber,Se.isOutOfRange,s,c,ir,Mt,St,Kt,ce,fn]);return{value:zt(Se.value),valueAsNumber:Se.valueAsNumber,isFocused:Ie,isDisabled:m,isReadOnly:h,getIncrementButtonProps:Ze,getDecrementButtonProps:Jt,getInputProps:Tt,htmlProps:Xe}}var[gne,uC]=Qr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[yne,k2]=Qr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),a6=et(function(t,r){const i=Xo("NumberInput",t),s=vr(t),c=n2(s),{htmlProps:u,...h}=vne(c),m=D.exports.useMemo(()=>h,[h]);return Ue.createElement(yne,{value:m},Ue.createElement(gne,{value:i},Ue.createElement(Ge.div,{...u,ref:r,className:r6("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});a6.displayName="NumberInput";var i6=et(function(t,r){const i=uC();return Ue.createElement(Ge.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});i6.displayName="NumberInputStepper";var o6=et(function(t,r){const{getInputProps:i}=k2(),s=i(t,r),c=uC();return Ue.createElement(Ge.input,{...s,className:r6("chakra-numberinput__field",t.className),__css:{width:"100%",...c.field}})});o6.displayName="NumberInputField";var s6=Ge("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),l6=et(function(t,r){const i=uC(),{getDecrementButtonProps:s}=k2(),c=s(t,r);return k(s6,{...c,__css:i.stepper,children:t.children??k(une,{},void 0,!1,{fileName:Yf,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:Yf,lineNumber:509,columnNumber:26},this)});l6.displayName="NumberDecrementStepper";var u6=et(function(t,r){const{getIncrementButtonProps:i}=k2(),s=i(t,r),c=uC();return k(s6,{...s,__css:c.stepper,children:t.children??k(cne,{},void 0,!1,{fileName:Yf,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:Yf,lineNumber:519,columnNumber:26},this)});u6.displayName="NumberIncrementStepper";var B5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function bne(e,t,r){return(e-t)*100/(r-t)}_b({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});_b({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var Sne=_b({"0%":{left:"-40%"},"100%":{left:"100%"}}),xne=_b({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function wne(e){const{value:t=0,min:r,max:i,valueText:s,getValueText:c,isIndeterminate:u}=e,h=bne(t,r,i);return{bind:{"data-indeterminate":u?"":void 0,"aria-valuemax":i,"aria-valuemin":r,"aria-valuenow":u?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof c=="function"?c(t,h):s})(),role:"progressbar"},percent:h,value:t}}var[Cne,_ne]=Qr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Ene=e=>{const{min:t,max:r,value:i,isIndeterminate:s,...c}=e,u=wne({value:i,min:t,max:r,isIndeterminate:s}),h=_ne(),m={height:"100%",...h.filledTrack};return Ue.createElement(Ge.div,{style:{width:`${u.percent}%`,...c.style},...u.bind,...c,__css:m})},c6=e=>{var t;const{value:r,min:i=0,max:s=100,hasStripe:c,isAnimated:u,children:h,borderRadius:m,isIndeterminate:v,"aria-label":b,"aria-labelledby":x,...C}=vr(e),_=Xo("Progress",e),N=m??((t=_.track)==null?void 0:t.borderRadius),A={animation:`${xne} 1s linear infinite`},M={...!v&&c&&u&&A,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${Sne} 1s ease infinite normal none running`}},z={overflow:"hidden",position:"relative",..._.track};return Ue.createElement(Ge.div,{borderRadius:N,__css:z,...C},k(Cne,{value:_,children:[k(Ene,{"aria-label":b,"aria-labelledby":x,min:i,max:s,value:r,isIndeterminate:v,css:M,borderRadius:N},void 0,!1,{fileName:B5,lineNumber:232,columnNumber:22},globalThis),h]},void 0,!0,{fileName:B5,lineNumber:230,columnNumber:22},globalThis))};c6.displayName="Progress";var Tne=Ge("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Tne.displayName="CircularProgressLabel";var $p="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",Nne=(...e)=>e.filter(Boolean).join(" "),Rne=e=>e?"":void 0;function Ane(e,t){const r={},i={};for(const[s,c]of Object.entries(e))t.includes(s)?r[s]=c:i[s]=c;return[r,i]}var f6=et(function(t,r){const{children:i,placeholder:s,className:c,...u}=t;return Ue.createElement(Ge.select,{...u,ref:r,className:Nne("chakra-select",c)},s&&k("option",{value:"",children:s},void 0,!1,{fileName:$p,lineNumber:42,columnNumber:37},this),i)});f6.displayName="SelectField";var d6=et((e,t)=>{var r;const i=Xo("Select",e),{rootProps:s,placeholder:c,icon:u,color:h,height:m,h:v,minH:b,minHeight:x,iconColor:C,iconSize:_,...N}=vr(e),[A,I]=Ane(N,a8),j=t2(I),M={width:"100%",height:"fit-content",position:"relative",color:h},z={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(r=i.field)==null?void 0:r._focus}};return Ue.createElement(Ge.div,{className:"chakra-select__wrapper",__css:M,...A,...s},k(f6,{ref:t,height:v??m,minH:b??x,placeholder:c,...j,__css:z,children:e.children},void 0,!1,{fileName:$p,lineNumber:86,columnNumber:22},globalThis),k(p6,{"data-disabled":Rne(j.disabled),...(C||h)&&{color:C||h},__css:i.icon,..._&&{fontSize:_},children:u},void 0,!1,{fileName:$p,lineNumber:93,columnNumber:39},globalThis))});d6.displayName="Select";var One=e=>k("svg",{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:$p,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:$p,lineNumber:101,columnNumber:46},globalThis),kne=Ge("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),p6=e=>{const{children:t=k(One,{},void 0,!1,{fileName:$p,lineNumber:120,columnNumber:38},globalThis),...r}=e,i=D.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return k(kne,{...r,className:"chakra-select__icon-wrapper",children:D.exports.isValidElement(t)?i:null},void 0,!1,{fileName:$p,lineNumber:132,columnNumber:26},globalThis)};p6.displayName="SelectIcon";var Dne="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",Pne=(...e)=>e.filter(Boolean).join(" "),U5=e=>e?"":void 0,zf=et(function(t,r){const i=Xo("Switch",t),{spacing:s="0.5rem",children:c,...u}=vr(t),{state:h,getInputProps:m,getCheckboxProps:v,getRootProps:b,getLabelProps:x}=Lz(u),C=D.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),_=D.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),N=D.exports.useMemo(()=>({userSelect:"none",marginStart:s,...i.label}),[s,i.label]);return Ue.createElement(Ge.label,{...b(),className:Pne("chakra-switch",t.className),__css:C},k("input",{className:"chakra-switch__input",...m({},r)},void 0,!1,{fileName:Dne,lineNumber:53,columnNumber:22},this),Ue.createElement(Ge.span,{...v(),className:"chakra-switch__track",__css:_},Ue.createElement(Ge.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":U5(h.isChecked),"data-hover":U5(h.isHovered)})),c&&Ue.createElement(Ge.span,{className:"chakra-switch__label",...x(),__css:N},c))});zf.displayName="Switch";var Mne=(...e)=>e.filter(Boolean).join(" ");function Ine(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}var Lne=["h","minH","height","minHeight"],h6=et((e,t)=>{const r=Zi("Textarea",e),{className:i,rows:s,...c}=vr(e),u=t2(c),h=s?Ine(r,Lne):r;return Ue.createElement(Ge.textarea,{ref:t,rows:s,...u,className:Mne("chakra-textarea",i),__css:h})});h6.displayName="Textarea";function lr(e,t={}){let r=!1;function i(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function s(...b){i();for(const x of b)t[x]=m(x);return lr(e,t)}function c(...b){for(const x of b)x in t||(t[x]=m(x));return lr(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.selector]))}function h(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.className]))}function m(b){const _=`chakra-${(["container","root"].includes(b??"")?[e]:[e,b]).filter(Boolean).join("__")}`;return{className:_,selector:`.${_}`,toString:()=>b}}return{parts:s,toPart:m,extend:c,selectors:u,classnames:h,get keys(){return Object.keys(t)},__type:{}}}var Fne=lr("accordion").parts("root","container","button","panel").extend("icon"),zne=lr("alert").parts("title","description","container").extend("icon","spinner"),Bne=lr("avatar").parts("label","badge","container").extend("excessLabel","group"),Une=lr("breadcrumb").parts("link","item","container").extend("separator");lr("button").parts();var jne=lr("checkbox").parts("control","icon","container").extend("label");lr("progress").parts("track","filledTrack").extend("label");var $ne=lr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Vne=lr("editable").parts("preview","input","textarea"),Hne=lr("form").parts("container","requiredIndicator","helperText"),Wne=lr("formError").parts("text","icon"),Gne=lr("input").parts("addon","field","element"),Yne=lr("list").parts("container","item","icon"),qne=lr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Kne=lr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Xne=lr("numberinput").parts("root","field","stepperGroup","stepper");lr("pininput").parts("field");var Zne=lr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Qne=lr("progress").parts("label","filledTrack","track"),Jne=lr("radio").parts("container","control","label"),ere=lr("select").parts("field","icon"),tre=lr("slider").parts("container","track","thumb","filledTrack","mark"),nre=lr("stat").parts("container","label","helpText","number","icon"),rre=lr("switch").parts("container","track","thumb"),are=lr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ire=lr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),ore=lr("tag").parts("container","label","closeButton");function li(e,t){sre(e)&&(e="100%");var r=lre(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 lx(e){return Math.min(1,Math.max(0,e))}function sre(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function lre(e){return typeof e=="string"&&e.indexOf("%")!==-1}function m6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ux(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Pp(e){return e.length===1?"0"+e:String(e)}function ure(e,t,r){return{r:li(e,255)*255,g:li(t,255)*255,b:li(r,255)*255}}function j5(e,t,r){e=li(e,255),t=li(t,255),r=li(r,255);var i=Math.max(e,t,r),s=Math.min(e,t,r),c=0,u=0,h=(i+s)/2;if(i===s)u=0,c=0;else{var m=i-s;switch(u=h>.5?m/(2-i-s):m/(i+s),i){case e:c=(t-r)/m+(t<r?6:0);break;case t:c=(r-e)/m+2;break;case r:c=(e-t)/m+4;break}c/=6}return{h:c,s:u,l:h}}function dA(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function cre(e,t,r){var i,s,c;if(e=li(e,360),t=li(t,100),r=li(r,100),t===0)s=r,c=r,i=r;else{var u=r<.5?r*(1+t):r+t-r*t,h=2*r-u;i=dA(h,u,e+1/3),s=dA(h,u,e),c=dA(h,u,e-1/3)}return{r:i*255,g:s*255,b:c*255}}function $5(e,t,r){e=li(e,255),t=li(t,255),r=li(r,255);var i=Math.max(e,t,r),s=Math.min(e,t,r),c=0,u=i,h=i-s,m=i===0?0:h/i;if(i===s)c=0;else{switch(i){case e:c=(t-r)/h+(t<r?6:0);break;case t:c=(r-e)/h+2;break;case r:c=(e-t)/h+4;break}c/=6}return{h:c,s:m,v:u}}function fre(e,t,r){e=li(e,360)*6,t=li(t,100),r=li(r,100);var i=Math.floor(e),s=e-i,c=r*(1-t),u=r*(1-s*t),h=r*(1-(1-s)*t),m=i%6,v=[r,u,c,c,h,r][m],b=[h,r,r,u,c,c][m],x=[c,c,h,r,r,u][m];return{r:v*255,g:b*255,b:x*255}}function V5(e,t,r,i){var s=[Pp(Math.round(e).toString(16)),Pp(Math.round(t).toString(16)),Pp(Math.round(r).toString(16))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function dre(e,t,r,i,s){var c=[Pp(Math.round(e).toString(16)),Pp(Math.round(t).toString(16)),Pp(Math.round(r).toString(16)),Pp(pre(i))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function pre(e){return Math.round(parseFloat(e)*255).toString(16)}function H5(e){return Ho(e)/255}function Ho(e){return parseInt(e,16)}function hre(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var PO={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 mre(e){var t={r:0,g:0,b:0},r=1,i=null,s=null,c=null,u=!1,h=!1;return typeof e=="string"&&(e=yre(e)),typeof e=="object"&&(ac(e.r)&&ac(e.g)&&ac(e.b)?(t=ure(e.r,e.g,e.b),u=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ac(e.h)&&ac(e.s)&&ac(e.v)?(i=ux(e.s),s=ux(e.v),t=fre(e.h,i,s),u=!0,h="hsv"):ac(e.h)&&ac(e.s)&&ac(e.l)&&(i=ux(e.s),c=ux(e.l),t=cre(e.h,i,c),u=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=m6(r),{ok:u,format:e.format||h,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:r}}var vre="[-\\+]?\\d+%?",gre="[-\\+]?\\d*\\.\\d+%?",If="(?:".concat(gre,")|(?:").concat(vre,")"),pA="[\\s|\\(]+(".concat(If,")[,|\\s]+(").concat(If,")[,|\\s]+(").concat(If,")\\s*\\)?"),hA="[\\s|\\(]+(".concat(If,")[,|\\s]+(").concat(If,")[,|\\s]+(").concat(If,")[,|\\s]+(").concat(If,")\\s*\\)?"),bl={CSS_UNIT:new RegExp(If),rgb:new RegExp("rgb"+pA),rgba:new RegExp("rgba"+hA),hsl:new RegExp("hsl"+pA),hsla:new RegExp("hsla"+hA),hsv:new RegExp("hsv"+pA),hsva:new RegExp("hsva"+hA),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 yre(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(PO[e])e=PO[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=bl.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=bl.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=bl.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=bl.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=bl.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=bl.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=bl.hex8.exec(e),r?{r:Ho(r[1]),g:Ho(r[2]),b:Ho(r[3]),a:H5(r[4]),format:t?"name":"hex8"}:(r=bl.hex6.exec(e),r?{r:Ho(r[1]),g:Ho(r[2]),b:Ho(r[3]),format:t?"name":"hex"}:(r=bl.hex4.exec(e),r?{r:Ho(r[1]+r[1]),g:Ho(r[2]+r[2]),b:Ho(r[3]+r[3]),a:H5(r[4]+r[4]),format:t?"name":"hex8"}:(r=bl.hex3.exec(e),r?{r:Ho(r[1]+r[1]),g:Ho(r[2]+r[2]),b:Ho(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ac(e){return Boolean(bl.CSS_UNIT.exec(String(e)))}var Lb=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=hre(t)),this.originalInput=t;var s=mre(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:s.format,this.gradientType=r.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=s.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(),r,i,s,c=t.r/255,u=t.g/255,h=t.b/255;return c<=.03928?r=c/12.92:r=Math.pow((c+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),h<=.03928?s=h/12.92:s=Math.pow((h+.055)/1.055,2.4),.2126*r+.7152*i+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=m6(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=$5(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=$5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(s,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=j5(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=j5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(s,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),V5(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),dre(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),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(li(r,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(r){return Math.round(li(r,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="#"+V5(this.r,this.g,this.b,!1),r=0,i=Object.entries(PO);r<i.length;r++){var s=i[r],c=s[0],u=s[1];if(t===u)return c}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var i=!1,s=this.a<1&&this.a>=0,c=!r&&s&&(t.startsWith("hex")||t==="name");return c?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||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 r=this.toHsl();return r.l+=t/100,r.l=lx(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=lx(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=lx(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=lx(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),s=new e(t).toRgb(),c=r/100,u={r:(s.r-i.r)*c+i.r,g:(s.g-i.g)*c+i.g,b:(s.b-i.b)*c+i.b,a:(s.a-i.a)*c+i.a};return new e(u)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),s=360/r,c=[this];for(i.h=(i.h-(s*t>>1)+720)%360;--t;)i.h=(i.h+s)%360,c.push(new e(i));return c},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 r=this.toHsv(),i=r.h,s=r.s,c=r.v,u=[],h=1/t;t--;)u.push(new e({h:i,s,v:c})),c=(c+h)%1;return u},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,s=[this],c=360/t,u=1;u<t;u++)s.push(new e({h:(i+u*c)%360,s:r.s,l:r.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function v6(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(v6(e));return e.count=t,r}var i=bre(e.hue,e.seed),s=Sre(i,e),c=xre(i,s,e),u={h:i,s,v:c};return e.alpha!==void 0&&(u.a=e.alpha),new Lb(u)}function bre(e,t){var r=Cre(e),i=vw(r,t);return i<0&&(i=360+i),i}function Sre(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return vw([0,100],t.seed);var r=g6(e).saturationRange,i=r[0],s=r[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=s-10;break;case"light":s=55;break}return vw([i,s],t.seed)}function xre(e,t,r){var i=wre(e,t),s=100;switch(r.luminosity){case"dark":s=i+20;break;case"light":i=(s+i)/2;break;case"random":i=0,s=100;break}return vw([i,s],r.seed)}function wre(e,t){for(var r=g6(e).lowerBounds,i=0;i<r.length-1;i++){var s=r[i][0],c=r[i][1],u=r[i+1][0],h=r[i+1][1];if(t>=s&&t<=u){var m=(h-c)/(u-s),v=c-m*s;return m*t+v}}return 0}function Cre(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=b6.find(function(u){return u.name===e});if(r){var i=y6(r);if(i.hueRange)return i.hueRange}var s=new Lb(e);if(s.isValid){var c=s.toHsv().h;return[c,c]}}return[0,360]}function g6(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=b6;t<r.length;t++){var i=r[t],s=y6(i);if(s.hueRange&&e>=s.hueRange[0]&&e<=s.hueRange[1])return s}throw Error("Color not found")}function vw(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var s=t/233280;return Math.floor(i+s*(r-i))}function y6(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],i=e.lowerBounds[e.lowerBounds.length-1][1],s=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[i,s]}}var b6=[{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 _re(e,t,r,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?r:e}var Ere=e=>Object.keys(e).length===0,Aa=(e,t,r)=>{const i=_re(e,`colors.${t}`,t),{isValid:s}=new Lb(i);return s?i:r},Tre=e=>t=>{const r=Aa(t,e);return new Lb(r).isDark()?"dark":"light"},Nre=e=>t=>Tre(e)(t)==="dark",Jm=(e,t)=>r=>{const i=Aa(r,e);return new Lb(i).setAlpha(t).toRgbString()};function W5(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 Rre(e){const t=v6().toHexString();return!e||Ere(e)?t:e.string&&e.colors?Ore(e.string,e.colors):e.string&&!e.colors?Are(e.string):e.colors&&!e.string?kre(e.colors):t}function Are(e){let t=0;if(e.length===0)return t.toString();for(let i=0;i<e.length;i+=1)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;let r="#";for(let i=0;i<3;i+=1)r+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return r}function Ore(e,t){let r=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)r=e.charCodeAt(i)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function kre(e){return e[Math.floor(Math.random()*e.length)]}function ze(e,t){return r=>r.colorMode==="dark"?t:e}function D2(e){const{orientation:t,vertical:r,horizontal:i}=e;return t?t==="vertical"?r:i:{}}function Dre(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function S6(e){return Dre(e)&&e.reference?e.reference:String(e)}var cC=(e,...t)=>t.map(S6).join(` ${e} `).replace(/calc/g,""),G5=(...e)=>`calc(${cC("+",...e)})`,Y5=(...e)=>`calc(${cC("-",...e)})`,MO=(...e)=>`calc(${cC("*",...e)})`,q5=(...e)=>`calc(${cC("/",...e)})`,K5=e=>{const t=S6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:MO(t,-1)},uc=Object.assign(e=>({add:(...t)=>uc(G5(e,...t)),subtract:(...t)=>uc(Y5(e,...t)),multiply:(...t)=>uc(MO(e,...t)),divide:(...t)=>uc(q5(e,...t)),negate:()=>uc(K5(e)),toString:()=>e.toString()}),{add:G5,subtract:Y5,multiply:MO,divide:q5,negate:K5});function Pre(e){return!Number.isInteger(parseFloat(e.toString()))}function Mre(e,t="-"){return e.replace(/\s+/g,t)}function x6(e){const t=Mre(e.toString());return t.includes("\\.")?e:Pre(e)?t.replace(".","\\."):e}function Ire(e,t=""){return[t,x6(e)].filter(Boolean).join("-")}function Lre(e,t){return`var(${x6(e)}${t?`, ${t}`:""})`}function Fre(e,t=""){return`--${Ire(e,t)}`}function So(e,t){const r=Fre(e,t?.prefix);return{variable:r,reference:Lre(r,zre(t?.fallback))}}function zre(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Bre,defineMultiStyleConfig:Ure}=kr(Fne.keys),jre={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},$re={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Vre={pt:"2",px:"4",pb:"5"},Hre={fontSize:"1.25em"},Wre=Bre({container:jre,button:$re,panel:Vre,icon:Hre}),Gre=Ure({baseStyle:Wre}),{definePartsStyle:Fb,defineMultiStyleConfig:Yre}=kr(zne.keys),hc=Kf("alert-fg"),zb=Kf("alert-bg"),qre=Fb({container:{bg:zb.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:hc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:hc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function P2(e){const{theme:t,colorScheme:r}=e,i=Aa(t,`${r}.100`,r),s=Jm(`${r}.200`,.16)(t);return ze(i,s)(e)}var Kre=Fb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[zb.variable]:P2(e),[hc.variable]:`colors.${r}`}}}),Xre=Fb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[zb.variable]:P2(e),[hc.variable]:`colors.${r}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:hc.reference}}}),Zre=Fb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[zb.variable]:P2(e),[hc.variable]:`colors.${r}`,pt:"2",borderTopWidth:"4px",borderTopColor:hc.reference}}}),Qre=Fb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e),i=ze("white","gray.900")(e);return{container:{[zb.variable]:`colors.${r}`,[hc.variable]:`colors.${i}`,color:hc.reference}}}),Jre={subtle:Kre,"left-accent":Xre,"top-accent":Zre,solid:Qre},eae=Yre({baseStyle:qre,variants:Jre,defaultProps:{variant:"subtle",colorScheme:"blue"}}),w6={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"},tae={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"},nae={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},rae={...w6,...tae,container:nae},C6=rae,aae=e=>typeof e=="function";function Xr(e,...t){return aae(e)?e(...t):e}var{definePartsStyle:_6,defineMultiStyleConfig:iae}=kr(Bne.keys),oae=e=>({borderRadius:"full",border:"0.2em solid",borderColor:ze("white","gray.800")(e)}),sae=e=>({bg:ze("gray.200","whiteAlpha.400")(e)}),lae=e=>{const{name:t,theme:r}=e,i=t?Rre({string:t}):"gray.400",s=Nre(i)(r);let c="white";s||(c="gray.800");const u=ze("white","gray.800")(e);return{bg:i,color:c,borderColor:u,verticalAlign:"top"}},uae=_6(e=>({badge:Xr(oae,e),excessLabel:Xr(sae,e),container:Xr(lae,e)}));function Sf(e){const t=e!=="100%"?C6[e]:void 0;return _6({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 cae={"2xs":Sf(4),xs:Sf(6),sm:Sf(8),md:Sf(12),lg:Sf(16),xl:Sf(24),"2xl":Sf(32),full:Sf("100%")},fae=iae({baseStyle:uae,sizes:cae,defaultProps:{size:"md"}}),dae={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},pae=e=>{const{colorScheme:t,theme:r}=e,i=Jm(`${t}.500`,.6)(r);return{bg:ze(`${t}.500`,i)(e),color:ze("white","whiteAlpha.800")(e)}},hae=e=>{const{colorScheme:t,theme:r}=e,i=Jm(`${t}.200`,.16)(r);return{bg:ze(`${t}.100`,i)(e),color:ze(`${t}.800`,`${t}.200`)(e)}},mae=e=>{const{colorScheme:t,theme:r}=e,i=Jm(`${t}.200`,.8)(r),s=Aa(r,`${t}.500`),c=ze(s,i)(e);return{color:c,boxShadow:`inset 0 0 0px 1px ${c}`}},vae={solid:pae,subtle:hae,outline:mae},Gy={baseStyle:dae,variants:vae,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:gae,definePartsStyle:yae}=kr(Une.keys),bae={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Sae=yae({link:bae}),xae=gae({baseStyle:Sae}),wae={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"}}},E6=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:ze("inherit","whiteAlpha.900")(e),_hover:{bg:ze("gray.100","whiteAlpha.200")(e)},_active:{bg:ze("gray.200","whiteAlpha.300")(e)}};const i=Jm(`${t}.200`,.12)(r),s=Jm(`${t}.200`,.24)(r);return{color:ze(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ze(`${t}.50`,i)(e)},_active:{bg:ze(`${t}.100`,s)(e)}}},Cae=e=>{const{colorScheme:t}=e,r=ze("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...Xr(E6,e)}},_ae={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Eae=e=>{const{colorScheme:t}=e;if(t==="gray"){const h=ze("gray.100","whiteAlpha.200")(e);return{bg:h,_hover:{bg:ze("gray.200","whiteAlpha.300")(e),_disabled:{bg:h}},_active:{bg:ze("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:i="white",hoverBg:s=`${t}.600`,activeBg:c=`${t}.700`}=_ae[t]??{},u=ze(r,`${t}.200`)(e);return{bg:u,color:ze(i,"gray.800")(e),_hover:{bg:ze(s,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:ze(c,`${t}.400`)(e)}}},Tae=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ze(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ze(`${t}.700`,`${t}.500`)(e)}}},Nae={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Rae={ghost:E6,outline:Cae,solid:Eae,link:Tae,unstyled:Nae},Aae={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"}},Oae={baseStyle:wae,variants:Rae,sizes:Aae,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Dx,defineMultiStyleConfig:kae}=kr(jne.keys),Yy=Kf("checkbox-size"),Dae=e=>{const{colorScheme:t}=e;return{w:Yy.reference,h:Yy.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e),_hover:{bg:ze(`${t}.600`,`${t}.300`)(e),borderColor:ze(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ze("gray.200","transparent")(e),bg:ze("gray.200","whiteAlpha.300")(e),color:ze("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e)},_disabled:{bg:ze("gray.100","whiteAlpha.100")(e),borderColor:ze("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ze("red.500","red.300")(e)}}},Pae={_disabled:{cursor:"not-allowed"}},Mae={userSelect:"none",_disabled:{opacity:.4}},Iae={transitionProperty:"transform",transitionDuration:"normal"},Lae=Dx(e=>({icon:Iae,container:Pae,control:Xr(Dae,e),label:Mae})),Fae={sm:Dx({control:{[Yy.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Dx({control:{[Yy.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Dx({control:{[Yy.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},gw=kae({baseStyle:Lae,sizes:Fae,defaultProps:{size:"md",colorScheme:"blue"}}),qy=So("close-button-size"),zae=e=>{const t=ze("blackAlpha.100","whiteAlpha.100")(e),r=ze("blackAlpha.200","whiteAlpha.200")(e);return{w:[qy.reference],h:[qy.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:r},_focusVisible:{boxShadow:"outline"}}},Bae={lg:{[qy.variable]:"sizes.10",fontSize:"md"},md:{[qy.variable]:"sizes.8",fontSize:"xs"},sm:{[qy.variable]:"sizes.6",fontSize:"2xs"}},Uae={baseStyle:zae,sizes:Bae,defaultProps:{size:"md"}},{variants:jae,defaultProps:$ae}=Gy,Vae={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Hae={baseStyle:Vae,variants:jae,defaultProps:$ae},Wae={w:"100%",mx:"auto",maxW:"prose",px:"4"},Gae={baseStyle:Wae},Yae={opacity:.6,borderColor:"inherit"},qae={borderStyle:"solid"},Kae={borderStyle:"dashed"},Xae={solid:qae,dashed:Kae},Zae={baseStyle:Yae,variants:Xae,defaultProps:{variant:"solid"}},{definePartsStyle:IO,defineMultiStyleConfig:Qae}=kr($ne.keys);function Nm(e){return IO(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Jae={bg:"blackAlpha.600",zIndex:"overlay"},eie={display:"flex",zIndex:"modal",justifyContent:"center"},tie=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:ze("white","gray.700")(e),color:"inherit",boxShadow:ze("lg","dark-lg")(e)}},nie={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},rie={position:"absolute",top:"2",insetEnd:"3"},aie={px:"6",py:"2",flex:"1",overflow:"auto"},iie={px:"6",py:"4"},oie=IO(e=>({overlay:Jae,dialogContainer:eie,dialog:Xr(tie,e),header:nie,closeButton:rie,body:aie,footer:iie})),sie={xs:Nm("xs"),sm:Nm("md"),md:Nm("lg"),lg:Nm("2xl"),xl:Nm("4xl"),full:Nm("full")},lie=Qae({baseStyle:oie,sizes:sie,defaultProps:{size:"xs"}}),{definePartsStyle:uie,defineMultiStyleConfig:cie}=kr(Vne.keys),fie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},die={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},pie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},hie=uie({preview:fie,input:die,textarea:pie}),mie=cie({baseStyle:hie}),{definePartsStyle:vie,defineMultiStyleConfig:gie}=kr(Hne.keys),yie=e=>({marginStart:"1",color:ze("red.500","red.300")(e)}),bie=e=>({mt:"2",color:ze("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Sie=vie(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Xr(yie,e),helperText:Xr(bie,e)})),xie=gie({baseStyle:Sie}),{definePartsStyle:wie,defineMultiStyleConfig:Cie}=kr(Wne.keys),_ie=e=>({color:ze("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Eie=e=>({marginEnd:"0.5em",color:ze("red.500","red.300")(e)}),Tie=wie(e=>({text:Xr(_ie,e),icon:Xr(Eie,e)})),Nie=Cie({baseStyle:Tie}),Rie={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Aie={baseStyle:Rie},Oie={fontFamily:"heading",fontWeight:"bold"},kie={"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}},Die={baseStyle:Oie,sizes:kie,defaultProps:{size:"xl"}},{definePartsStyle:cc,defineMultiStyleConfig:Pie}=kr(Gne.keys),Mie=cc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),xf={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"}},Iie={lg:cc({field:xf.lg,addon:xf.lg}),md:cc({field:xf.md,addon:xf.md}),sm:cc({field:xf.sm,addon:xf.sm}),xs:cc({field:xf.xs,addon:xf.xs})};function M2(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ze("blue.500","blue.300")(e),errorBorderColor:r||ze("red.500","red.300")(e)}}var Lie=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ze("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i),boxShadow:`0 0 0 1px ${Aa(t,i)}`},_focusVisible:{zIndex:1,borderColor:Aa(t,r),boxShadow:`0 0 0 1px ${Aa(t,r)}`}},addon:{border:"1px solid",borderColor:ze("inherit","whiteAlpha.50")(e),bg:ze("gray.100","whiteAlpha.300")(e)}}}),Fie=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e),_hover:{bg:ze("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i)},_focusVisible:{bg:"transparent",borderColor:Aa(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e)}}}),zie=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i),boxShadow:`0px 1px 0px 0px ${Aa(t,i)}`},_focusVisible:{borderColor:Aa(t,r),boxShadow:`0px 1px 0px 0px ${Aa(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Bie=cc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Uie={outline:Lie,filled:Fie,flushed:zie,unstyled:Bie},Jn=Pie({baseStyle:Mie,sizes:Iie,variants:Uie,defaultProps:{size:"md",variant:"outline"}}),jie=e=>({bg:ze("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),$ie={baseStyle:jie},Vie={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Hie={baseStyle:Vie},{defineMultiStyleConfig:Wie,definePartsStyle:Gie}=kr(Yne.keys),Yie={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},qie=Gie({icon:Yie}),Kie=Wie({baseStyle:qie}),{defineMultiStyleConfig:Xie,definePartsStyle:Zie}=kr(qne.keys),Qie=e=>({bg:ze("#fff","gray.700")(e),boxShadow:ze("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Jie=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ze("gray.100","whiteAlpha.100")(e)},_active:{bg:ze("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ze("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),eoe={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},toe={opacity:.6},noe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},roe={transitionProperty:"common",transitionDuration:"normal"},aoe=Zie(e=>({button:roe,list:Xr(Qie,e),item:Xr(Jie,e),groupTitle:eoe,command:toe,divider:noe})),ioe=Xie({baseStyle:aoe}),{defineMultiStyleConfig:ooe,definePartsStyle:LO}=kr(Kne.keys),soe={bg:"blackAlpha.600",zIndex:"modal"},loe=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto"}},uoe=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:ze("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:ze("lg","dark-lg")(e)}},coe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},foe={position:"absolute",top:"2",insetEnd:"3"},doe=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},poe={px:"6",py:"4"},hoe=LO(e=>({overlay:soe,dialogContainer:Xr(loe,e),dialog:Xr(uoe,e),header:coe,closeButton:foe,body:Xr(doe,e),footer:poe}));function gl(e){return LO(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var moe={xs:gl("xs"),sm:gl("sm"),md:gl("md"),lg:gl("lg"),xl:gl("xl"),"2xl":gl("2xl"),"3xl":gl("3xl"),"4xl":gl("4xl"),"5xl":gl("5xl"),"6xl":gl("6xl"),full:gl("full")},voe=ooe({baseStyle:hoe,sizes:moe,defaultProps:{size:"md"}}),goe={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"}},T6=goe,{defineMultiStyleConfig:yoe,definePartsStyle:N6}=kr(Xne.keys),I2=So("number-input-stepper-width"),R6=So("number-input-input-padding"),boe=uc(I2).add("0.5rem").toString(),Soe={[I2.variable]:"sizes.6",[R6.variable]:boe},xoe=e=>{var t;return((t=Xr(Jn.baseStyle,e))==null?void 0:t.field)??{}},woe={width:[I2.reference]},Coe=e=>({borderStart:"1px solid",borderStartColor:ze("inherit","whiteAlpha.300")(e),color:ze("inherit","whiteAlpha.800")(e),_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),_oe=N6(e=>({root:Soe,field:xoe,stepperGroup:woe,stepper:Xr(Coe,e)??{}}));function cx(e){var t,r;const i=(t=Jn.sizes)==null?void 0:t[e],s={lg:"md",md:"md",sm:"sm",xs:"sm"},c=((r=i.field)==null?void 0:r.fontSize)??"md",u=T6.fontSizes[c];return N6({field:{...i.field,paddingInlineEnd:R6.reference,verticalAlign:"top"},stepper:{fontSize:uc(u).multiply(.75).toString(),_first:{borderTopEndRadius:s[e]},_last:{borderBottomEndRadius:s[e],mt:"-1px",borderTopWidth:1}}})}var Eoe={xs:cx("xs"),sm:cx("sm"),md:cx("md"),lg:cx("lg")},Toe=yoe({baseStyle:_oe,sizes:Eoe,variants:Jn.variants,defaultProps:Jn.defaultProps}),X5,Noe={...(X5=Jn.baseStyle)==null?void 0:X5.field,textAlign:"center"},Roe={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"}},Z5,Aoe={outline:e=>{var t,r;return((r=Xr((t=Jn.variants)==null?void 0:t.outline,e))==null?void 0:r.field)??{}},flushed:e=>{var t,r;return((r=Xr((t=Jn.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)??{}},filled:e=>{var t,r;return((r=Xr((t=Jn.variants)==null?void 0:t.filled,e))==null?void 0:r.field)??{}},unstyled:((Z5=Jn.variants)==null?void 0:Z5.unstyled.field)??{}},Ooe={baseStyle:Noe,sizes:Roe,variants:Aoe,defaultProps:Jn.defaultProps},{defineMultiStyleConfig:koe,definePartsStyle:Doe}=kr(Zne.keys),mA=So("popper-bg"),Poe=So("popper-arrow-bg"),Moe=So("popper-arrow-shadow-color"),Ioe={zIndex:10},Loe=e=>{const t=ze("white","gray.700")(e),r=ze("gray.200","whiteAlpha.300")(e);return{[mA.variable]:`colors.${t}`,bg:mA.reference,[Poe.variable]:mA.reference,[Moe.variable]:`colors.${r}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Foe={px:3,py:2,borderBottomWidth:"1px"},zoe={px:3,py:2},Boe={px:3,py:2,borderTopWidth:"1px"},Uoe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},joe=Doe(e=>({popper:Ioe,content:Loe(e),header:Foe,body:zoe,footer:Boe,closeButton:Uoe})),$oe=koe({baseStyle:joe}),{defineMultiStyleConfig:Voe,definePartsStyle:Py}=kr(Qne.keys),Hoe=e=>{const{colorScheme:t,theme:r,isIndeterminate:i,hasStripe:s}=e,c=ze(W5(),W5("1rem","rgba(0,0,0,0.1)"))(e),u=ze(`${t}.500`,`${t}.200`)(e),h=`linear-gradient(
to right,
transparent 0%,
${Aa(r,u)} 50%,
transparent 100%
)`;return{...!i&&s&&c,...i?{bgImage:h}:{bgColor:u}}},Woe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Goe=e=>({bg:ze("gray.100","whiteAlpha.300")(e)}),Yoe=e=>({transitionProperty:"common",transitionDuration:"slow",...Hoe(e)}),qoe=Py(e=>({label:Woe,filledTrack:Yoe(e),track:Goe(e)})),Koe={xs:Py({track:{h:"1"}}),sm:Py({track:{h:"2"}}),md:Py({track:{h:"3"}}),lg:Py({track:{h:"4"}})},Xoe=Voe({sizes:Koe,baseStyle:qoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zoe,definePartsStyle:Px}=kr(Jne.keys),Qoe=e=>{var t;const r=(t=Xr(gw.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Joe=Px(e=>{var t,r,i,s;return{label:(r=(t=gw).baseStyle)==null?void 0:r.call(t,e).label,container:(s=(i=gw).baseStyle)==null?void 0:s.call(i,e).container,control:Qoe(e)}}),ese={md:Px({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Px({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Px({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},tse=Zoe({baseStyle:Joe,sizes:ese,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nse,definePartsStyle:rse}=kr(ere.keys),ase=e=>{var t;return{...(t=Jn.baseStyle)==null?void 0:t.field,bg:ze("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ze("white","gray.700")(e)}}},ise={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ose=rse(e=>({field:ase(e),icon:ise})),fx={paddingInlineEnd:"8"},Q5,J5,eF,tF,nF,rF,aF,iF,sse={lg:{...(Q5=Jn.sizes)==null?void 0:Q5.lg,field:{...(J5=Jn.sizes)==null?void 0:J5.lg.field,...fx}},md:{...(eF=Jn.sizes)==null?void 0:eF.md,field:{...(tF=Jn.sizes)==null?void 0:tF.md.field,...fx}},sm:{...(nF=Jn.sizes)==null?void 0:nF.sm,field:{...(rF=Jn.sizes)==null?void 0:rF.sm.field,...fx}},xs:{...(aF=Jn.sizes)==null?void 0:aF.xs,field:{...(iF=Jn.sizes)==null?void 0:iF.sm.field,...fx},icon:{insetEnd:"1"}}},lse=nse({baseStyle:ose,sizes:sse,variants:Jn.variants,defaultProps:Jn.defaultProps}),use=Kf("skeleton-start-color"),cse=Kf("skeleton-end-color"),fse=e=>{const t=ze("gray.100","gray.800")(e),r=ze("gray.400","gray.600")(e),{startColor:i=t,endColor:s=r,theme:c}=e,u=Aa(c,i),h=Aa(c,s);return{[use.variable]:u,[cse.variable]:h,opacity:.7,borderRadius:"2px",borderColor:u,background:h}},dse={baseStyle:fse},pse=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:ze("white","gray.700")(e)}}),hse={baseStyle:pse},{defineMultiStyleConfig:mse,definePartsStyle:fC}=kr(tre.keys),vb=Kf("slider-thumb-size"),gb=Kf("slider-track-size"),vse=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...D2({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},gse=e=>({...D2({orientation:e.orientation,horizontal:{h:gb.reference},vertical:{w:gb.reference}}),overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}),yse=e=>{const{orientation:t}=e;return{...D2({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:vb.reference,h:vb.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"}}},bse=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:ze(`${t}.500`,`${t}.200`)(e)}},Sse=fC(e=>({container:vse(e),track:gse(e),thumb:yse(e),filledTrack:bse(e)})),xse=fC({container:{[vb.variable]:"sizes.4",[gb.variable]:"sizes.1"}}),wse=fC({container:{[vb.variable]:"sizes.3.5",[gb.variable]:"sizes.1"}}),Cse=fC({container:{[vb.variable]:"sizes.2.5",[gb.variable]:"sizes.0.5"}}),_se={lg:xse,md:wse,sm:Cse},Ese=mse({baseStyle:Sse,sizes:_se,defaultProps:{size:"md",colorScheme:"blue"}}),Ap=So("spinner-size"),Tse={width:[Ap.reference],height:[Ap.reference]},Nse={xs:{[Ap.variable]:"sizes.3"},sm:{[Ap.variable]:"sizes.4"},md:{[Ap.variable]:"sizes.6"},lg:{[Ap.variable]:"sizes.8"},xl:{[Ap.variable]:"sizes.12"}},Rse={baseStyle:Tse,sizes:Nse,defaultProps:{size:"md"}},{defineMultiStyleConfig:Ase,definePartsStyle:A6}=kr(nre.keys),Ose={fontWeight:"medium"},kse={opacity:.8,marginBottom:"2"},Dse={verticalAlign:"baseline",fontWeight:"semibold"},Pse={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Mse=A6({container:{},label:Ose,helpText:kse,number:Dse,icon:Pse}),Ise={md:A6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Lse=Ase({baseStyle:Mse,sizes:Ise,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Fse,definePartsStyle:Mx}=kr(rre.keys),Ky=So("switch-track-width"),Fp=So("switch-track-height"),vA=So("switch-track-diff"),zse=uc.subtract(Ky,Fp),FO=So("switch-thumb-x"),Bse=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ky.reference],height:[Fp.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(`${t}.500`,`${t}.200`)(e)}}},Use={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Fp.reference],height:[Fp.reference],_checked:{transform:`translateX(${FO.reference})`}},jse=Mx(e=>({container:{[vA.variable]:zse,[FO.variable]:vA.reference,_rtl:{[FO.variable]:uc(vA).negate().toString()}},track:Bse(e),thumb:Use})),$se={sm:Mx({container:{[Ky.variable]:"1.375rem",[Fp.variable]:"sizes.3"}}),md:Mx({container:{[Ky.variable]:"1.875rem",[Fp.variable]:"sizes.4"}}),lg:Mx({container:{[Ky.variable]:"2.875rem",[Fp.variable]:"sizes.6"}})},Vse=Fse({baseStyle:jse,sizes:$se,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Hse,definePartsStyle:$m}=kr(are.keys),Wse=$m({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"}}),yw={"&[data-is-numeric=true]":{textAlign:"end"}},Gse=$m(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...yw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...yw},caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Yse=$m(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...yw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...yw},caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e)},td:{background:ze(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qse={simple:Gse,striped:Yse,unstyled:{}},Kse={sm:$m({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:$m({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:$m({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Xse=Hse({baseStyle:Wse,variants:qse,sizes:Kse,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Zse,definePartsStyle:cu}=kr(ire.keys),Qse=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Jse=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}}},ele=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},tle={p:4},nle=cu(e=>({root:Qse(e),tab:Jse(e),tablist:ele(e),tabpanel:tle})),rle={sm:cu({tab:{py:1,px:4,fontSize:"sm"}}),md:cu({tab:{fontSize:"md",py:2,px:4}}),lg:cu({tab:{fontSize:"lg",py:3,px:4}})},ale=cu(e=>{const{colorScheme:t,orientation:r}=e,i=r==="vertical",s=r==="vertical"?"borderStart":"borderBottom",c=i?"marginStart":"marginBottom";return{tablist:{[s]:"2px solid",borderColor:"inherit"},tab:{[s]:"2px solid",borderColor:"transparent",[c]:"-2px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),ile=cu(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ole=cu(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),sle=cu(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Aa(r,`${t}.700`),bg:Aa(r,`${t}.100`)}}}}),lle=cu(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(`${t}.600`,`${t}.300`)(e)}}}}),ule=cu({}),cle={line:ale,enclosed:ile,"enclosed-colored":ole,"soft-rounded":sle,"solid-rounded":lle,unstyled:ule},fle=Zse({baseStyle:nle,sizes:rle,variants:cle,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:dle,definePartsStyle:zp}=kr(ore.keys),ple={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},hle={lineHeight:1.2,overflow:"visible"},mle={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}},vle=zp({container:ple,label:hle,closeButton:mle}),gle={sm:zp({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zp({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:zp({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},yle={subtle:zp(e=>{var t;return{container:(t=Gy.variants)==null?void 0:t.subtle(e)}}),solid:zp(e=>{var t;return{container:(t=Gy.variants)==null?void 0:t.solid(e)}}),outline:zp(e=>{var t;return{container:(t=Gy.variants)==null?void 0:t.outline(e)}})},ble=dle({variants:yle,baseStyle:vle,sizes:gle,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),oF,Sle={...(oF=Jn.baseStyle)==null?void 0:oF.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},sF,xle={outline:e=>{var t;return((t=Jn.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Jn.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Jn.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((sF=Jn.variants)==null?void 0:sF.unstyled.field)??{}},lF,uF,cF,fF,wle={xs:((lF=Jn.sizes)==null?void 0:lF.xs.field)??{},sm:((uF=Jn.sizes)==null?void 0:uF.sm.field)??{},md:((cF=Jn.sizes)==null?void 0:cF.md.field)??{},lg:((fF=Jn.sizes)==null?void 0:fF.lg.field)??{}},Cle={baseStyle:Sle,sizes:wle,variants:xle,defaultProps:{size:"md",variant:"outline"}},gA=So("tooltip-bg"),dF=So("tooltip-fg"),_le=So("popper-arrow-bg"),Ele=e=>{const t=ze("gray.700","gray.300")(e),r=ze("whiteAlpha.900","gray.900")(e);return{bg:gA.reference,color:dF.reference,[gA.variable]:`colors.${t}`,[dF.variable]:`colors.${r}`,[_le.variable]:gA.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Tle={baseStyle:Ele},Nle={Accordion:Gre,Alert:eae,Avatar:fae,Badge:Gy,Breadcrumb:xae,Button:Oae,Checkbox:gw,CloseButton:Uae,Code:Hae,Container:Gae,Divider:Zae,Drawer:lie,Editable:mie,Form:xie,FormError:Nie,FormLabel:Aie,Heading:Die,Input:Jn,Kbd:$ie,Link:Hie,List:Kie,Menu:ioe,Modal:voe,NumberInput:Toe,PinInput:Ooe,Popover:$oe,Progress:Xoe,Radio:tse,Select:lse,Skeleton:dse,SkipLink:hse,Slider:Ese,Spinner:Rse,Stat:Lse,Switch:Vse,Table:Xse,Tabs:fle,Tag:ble,Textarea:Cle,Tooltip:Tle},Rle={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Ale=Rle,Ole={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},kle=Ole,Dle={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"}},Ple=Dle,Mle={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Ile=Mle,Lle={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"},Fle=Lle,zle={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"},Ble={"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)"},Ule={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},jle={property:zle,easing:Ble,duration:Ule},$le=jle,Vle={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},Hle=Vle,Wle={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Gle=Wle,Yle={breakpoints:kle,zIndices:Hle,radii:Ile,blur:Gle,colors:Ple,...T6,sizes:C6,shadows:Fle,space:w6,borders:Ale,transition:$le},qle={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"}}},Kle={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 Xle(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Zle=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Qle(e){return Xle(e)?Zle.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Jle="ltr",eue={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},O6={semanticTokens:qle,direction:Jle,...Yle,components:Nle,styles:Kle,config:eue};function tue(e,t){const r=ki(e);D.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{r()},t),()=>{i&&window.clearTimeout(i)}},[t,r])}var fc="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function zO(e,...t){return nue(e)?e(...t):e}var nue=e=>typeof e=="function";function rue(e,t){const r=e??"bottom",s={"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"}}[r];return s?.[t]??r}var aue=(e,t)=>e.find(r=>r.id===t);function pF(e,t){const r=k6(e,t),i=r?e[r].findIndex(s=>s.id===t):-1;return{position:r,index:i}}function k6(e,t){for(const[r,i]of Object.entries(e))if(aue(i,t))return r}function iue(e){const t=e.includes("right"),r=e.includes("left");let i="center";return t&&(i="flex-end"),r&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function oue(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,c=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",u=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:i,bottom:s,right:c,left:u}}var sue={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},iu=lue(sue);function lue(e){let t=e;const r=new Set,i=s=>{t=s(t),r.forEach(c=>c())};return{getState:()=>t,subscribe:s=>(r.add(s),()=>{i(()=>e),r.delete(s)}),removeToast:(s,c)=>{i(u=>({...u,[c]:u[c].filter(h=>h.id!=s)}))},notify:(s,c)=>{const u=uue(s,c),{position:h,id:m}=u;return i(v=>{const x=h.includes("top")?[u,...v[h]??[]]:[...v[h]??[],u];return{...v,[h]:x}}),m},update:(s,c)=>{!s||i(u=>{const h={...u},{position:m,index:v}=pF(h,s);return m&&v!==-1&&(h[m][v]={...h[m][v],...c,message:D6(c)}),h})},closeAll:({positions:s}={})=>{i(c=>(s??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((m,v)=>(m[v]=c[v].map(b=>({...b,requestClose:!0})),m),{...c}))},close:s=>{i(c=>{const u=k6(c,s);return u?{...c,[u]:c[u].map(h=>h.id==s?{...h,requestClose:!0}:h)}:c})},isActive:s=>Boolean(pF(iu.getState(),s).position)}}var hF=0;function uue(e,t={}){hF+=1;const r=t.id??hF,i=t.position??"bottom";return{id:r,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>iu.removeToast(String(r),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var cue=e=>{const{status:t,variant:r="solid",id:i,title:s,isClosable:c,onClose:u,description:h,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Ue.createElement(Tz,{addRole:!1,status:t,variant:r,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},k(Rz,{children:m},void 0,!1,{fileName:fc,lineNumber:237,columnNumber:22},globalThis),Ue.createElement(Ge.div,{flex:"1",maxWidth:"100%"},s&&k(Az,{id:v?.title,children:s},void 0,!1,{fileName:fc,lineNumber:240,columnNumber:31},globalThis),h&&k(Nz,{id:v?.description,display:"block",children:h},void 0,!1,{fileName:fc,lineNumber:242,columnNumber:45},globalThis)),c&&k(i2,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:fc,lineNumber:245,columnNumber:51},globalThis))};function D6(e={}){const{render:t,toastComponent:r=cue}=e;return s=>typeof t=="function"?t(s):k(r,{...s,...e},void 0,!1,{fileName:fc,lineNumber:259,columnNumber:28},this)}function fue(e,t){const r=s=>({...t,...s,position:rue(s?.position??t?.position,e)}),i=s=>{const c=r(s),u=D6(c);return iu.notify(u,c)};return i.update=(s,c)=>{iu.update(s,r(c))},i.promise=(s,c)=>{const u=i({...c.loading,status:"loading",duration:null});s.then(h=>i.update(u,{status:"success",duration:5e3,...zO(c.success,h)})).catch(h=>i.update(u,{status:"error",duration:5e3,...zO(c.error,h)}))},i.closeAll=iu.closeAll,i.close=iu.close,i.isActive=iu.isActive,i}function due(e){const{theme:t}=G3();return D.exports.useMemo(()=>fue(t.direction,e),[e,t.direction])}var pue={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[r]:i*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]}}},P6=D.exports.memo(e=>{const{id:t,message:r,onCloseComplete:i,onRequestRemove:s,requestClose:c=!1,position:u="bottom",duration:h=5e3,containerStyle:m,motionVariants:v=pue,toastSpacing:b="0.5rem"}=e,[x,C]=D.exports.useState(h),_=PY();ow(()=>{_||i?.()},[_]),ow(()=>{C(h)},[h]);const N=()=>C(null),A=()=>C(h),I=()=>{_&&s()};D.exports.useEffect(()=>{_&&c&&s()},[_,c,s]),tue(I,x);const j=D.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...m}),[m,b]),M=D.exports.useMemo(()=>iue(u),[u]);return Ue.createElement(Tl.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:N,onHoverEnd:A,custom:{position:u},style:M},Ue.createElement(Ge.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:j},zO(r,{id:t,onClose:I})))});P6.displayName="ToastComponent";var hue=e=>{const t=D.exports.useSyncExternalStore(iu.subscribe,iu.getState,iu.getState),{children:r,motionVariants:i,component:s=P6,portalProps:c}=e,h=Object.keys(t).map(m=>{const v=t[m];return k("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${m}`,style:oue(m),children:k(gc,{initial:!1,children:v.map(b=>k(s,{motionVariants:i,...b},b.id,!1,{fileName:fc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:fc,lineNumber:432,columnNumber:24},globalThis)},m,!1,{fileName:fc,lineNumber:426,columnNumber:28},globalThis)});return k(yo,{children:[r,k(Yp,{...c,children:h},void 0,!1,{fileName:fc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},mF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function mue(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function vue(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var gue={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 Ny(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var BO=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},UO=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function yue(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnEsc:c=!0,onOpen:u,onClose:h,placement:m,id:v,isOpen:b,defaultIsOpen:x,arrowSize:C=10,arrowShadowColor:_,arrowPadding:N,modifiers:A,isDisabled:I,gutter:j,offset:M,direction:z,...U}=e,{isOpen:V,onOpen:K,onClose:X}=UJ({isOpen:b,defaultIsOpen:x,onOpen:u,onClose:h}),{referenceRef:de,getPopperProps:ve,getArrowInnerProps:se,getArrowProps:be}=zJ({enabled:V,placement:m,arrowPadding:N,modifiers:A,gutter:j,offset:M,direction:z}),Xe=D.exports.useId(),ce=`tooltip-${v??Xe}`,Re=D.exports.useRef(null),Ce=D.exports.useRef(),oe=D.exports.useRef(),Se=D.exports.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=void 0),X()},[X]),Te=bue(Re,Se),pe=D.exports.useCallback(()=>{if(!I&&!Ce.current){Te();const Qe=UO(Re);Ce.current=Qe.setTimeout(K,t)}},[Te,I,K,t]),we=D.exports.useCallback(()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=void 0);const Qe=UO(Re);oe.current=Qe.setTimeout(Se,r)},[r,Se]),Ie=D.exports.useCallback(()=>{V&&i&&we()},[i,we,V]),Le=D.exports.useCallback(()=>{V&&s&&we()},[s,we,V]),Ye=D.exports.useCallback(Qe=>{V&&Qe.key==="Escape"&&we()},[V,we]);yO(()=>BO(Re),"keydown",c?Ye:void 0),D.exports.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(oe.current)},[]),yO(()=>Re.current,"mouseleave",we);const st=D.exports.useCallback((Qe={},vt=null)=>({...Qe,ref:Xi(Re,vt,de),onMouseEnter:Ny(Qe.onMouseEnter,pe),onClick:Ny(Qe.onClick,Ie),onMouseDown:Ny(Qe.onMouseDown,Le),onFocus:Ny(Qe.onFocus,pe),onBlur:Ny(Qe.onBlur,we),"aria-describedby":V?ce:void 0}),[pe,we,Le,V,ce,Ie,de]),mt=D.exports.useCallback((Qe={},vt=null)=>ve({...Qe,style:{...Qe.style,[si.arrowSize.var]:C?`${C}px`:void 0,[si.arrowShadowColor.var]:_}},vt),[ve,C,_]),Gt=D.exports.useCallback((Qe={},vt=null)=>{const Et={...Qe.style,position:"relative",transformOrigin:si.transformOrigin.varRef};return{ref:vt,...U,...Qe,id:ce,role:"tooltip",style:Et}},[U,ce]);return{isOpen:V,show:pe,hide:we,getTriggerProps:st,getTooltipProps:Gt,getTooltipPositionerProps:mt,getArrowProps:be,getArrowInnerProps:se}}var yA="chakra-ui:close-tooltip";function bue(e,t){return D.exports.useEffect(()=>{const r=BO(e);return r.addEventListener(yA,t),()=>r.removeEventListener(yA,t)},[t,e]),()=>{const r=BO(e),i=UO(e);r.dispatchEvent(new i.CustomEvent(yA))}}var Sue=Ge(Tl.div),jO=et((e,t)=>{const r=Zi("Tooltip",e),i=vr(e),s=Ck(),{children:c,label:u,shouldWrapChildren:h,"aria-label":m,hasArrow:v,bg:b,portalProps:x,background:C,backgroundColor:_,bgColor:N,...A}=i,I=C??_??b??N;if(I){r.bg=I;const de=v8(s,"colors",I);r[si.arrowBg.var]=de}const j=yue({...A,direction:s.direction}),M=typeof c=="string"||h;let z;if(M)z=Ue.createElement(Ge.span,{tabIndex:0,...j.getTriggerProps()},c);else{const de=D.exports.Children.only(c);z=D.exports.cloneElement(de,j.getTriggerProps(de.props,de.ref))}const U=!!m,V=j.getTooltipProps({},t),K=U?mue(V,["role","id"]):V,X=vue(V,["role","id"]);return u?k(yo,{children:[z,k(gc,{children:j.isOpen&&Ue.createElement(Yp,{...x},Ue.createElement(Ge.div,{...j.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"}},k(Sue,{variants:gue,...K,initial:"exit",animate:"enter",exit:"exit",__css:r,children:[u,U&&Ue.createElement(Ge.span,{srOnly:!0,...X},m),v&&Ue.createElement(Ge.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Ue.createElement(Ge.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}}))]},void 0,!0,{fileName:mF,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:mF,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):k(yo,{children:c},void 0,!1)});jO.displayName="Tooltip";var bp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",xue=e=>{const{children:t,colorModeManager:r,portalZIndex:i,resetCSS:s=!0,theme:c={},environment:u,cssVarsRoot:h}=e,m=k(tB,{environment:u,children:t},void 0,!1,{fileName:bp,lineNumber:25,columnNumber:37},globalThis);return k(W7,{theme:c,cssVarsRoot:h,children:k(y3,{colorModeManager:r,options:c.config,children:[s?k(TZ,{},void 0,!1,{fileName:bp,lineNumber:34,columnNumber:33},globalThis):k(EZ,{},void 0,!1,{fileName:bp,lineNumber:34,columnNumber:87},globalThis),k(Y7,{},void 0,!1,{fileName:bp,lineNumber:34,columnNumber:143},globalThis),i?k(dB,{zIndex:i,children:m},void 0,!1,{fileName:bp,lineNumber:34,columnNumber:214},globalThis):m]},void 0,!0,{fileName:bp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:bp,lineNumber:28,columnNumber:26},globalThis)},vF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function wue({children:e,theme:t=O6,toastOptions:r,...i}){return k(xue,{theme:t,...i,children:[e,k(hue,{...r},void 0,!1,{fileName:vF,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:vF,lineNumber:62,columnNumber:26},this)}function Cue(...e){let t=[...e],r=e[e.length-1];return Qle(r)&&t.length>1?t=t.slice(0,t.length-1):r=O6,R7(...t.map(i=>s=>km(i)?i(s):_ue(s,i)))(r)}function _ue(...e){return jf({},...e,M6)}function M6(e,t,r,i){if((km(e)||km(t))&&Object.prototype.hasOwnProperty.call(i,r))return(...s)=>{const c=km(e)?e(...s):e,u=km(t)?t(...s):t;return jf({},c,u,M6)}}function Ua(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];{var s=Pue[e],c=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function qf(e){return!!e&&!!e[Ar]}function mc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Mue}(e)||Array.isArray(e)||!!e[CF]||!!e.constructor[CF]||L2(e)||F2(e))}function Vp(e,t,r){r===void 0&&(r=!1),sv(e)===0?(r?Object.keys:Hm)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,s){return t(s,i,e)})}function sv(e){var t=e[Ar];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:L2(e)?2:F2(e)?3:0}function Vm(e,t){return sv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Eue(e,t){return sv(e)===2?e.get(t):e[t]}function I6(e,t,r){var i=sv(e);i===2?e.set(t,r):i===3?(e.delete(t),e.add(r)):e[t]=r}function L6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function L2(e){return kue&&e instanceof Map}function F2(e){return Due&&e instanceof Set}function Af(e){return e.o||e.t}function z2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=z6(e);delete t[Ar];for(var r=Hm(t),i=0;i<r.length;i++){var s=r[i],c=t[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function B2(e,t){return t===void 0&&(t=!1),U2(e)||qf(e)||!mc(e)||(sv(e)>1&&(e.set=e.add=e.clear=e.delete=Tue),Object.freeze(e),t&&Vp(e,function(r,i){return B2(i,!0)},!0)),e}function Tue(){Ua(2)}function U2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fu(e){var t=WO[e];return t||Ua(18,e),t}function Nue(e,t){WO[e]||(WO[e]=t)}function $O(){return ev||Ua(0),ev}function bA(e,t){t&&(fu("Patches"),e.u=[],e.s=[],e.v=t)}function bw(e){VO(e),e.p.forEach(Rue),e.p=null}function VO(e){e===ev&&(ev=e.l)}function gF(e){return ev={p:[],l:ev,h:e,m:!0,_:0}}function Rue(e){var t=e[Ar];t.i===0||t.i===1?t.j():t.O=!0}function SA(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.g||fu("ES5").S(t,e,i),i?(r[Ar].P&&(bw(t),Ua(4)),mc(e)&&(e=Sw(t,e),t.l||xw(t,e)),t.u&&fu("Patches").M(r[Ar].t,e,t.u,t.s)):e=Sw(t,r,[]),bw(t),t.u&&t.v(t.u,t.s),e!==F6?e:void 0}function Sw(e,t,r){if(U2(t))return t;var i=t[Ar];if(!i)return Vp(t,function(c,u){return yF(e,i,t,c,u,r)},!0),t;if(i.A!==e)return t;if(!i.P)return xw(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=z2(i.k):i.o;Vp(i.i===3?new Set(s):s,function(c,u){return yF(e,i,s,c,u,r)}),xw(e,s,!1),r&&e.u&&fu("Patches").R(i,r,e.u,e.s)}return i.o}function yF(e,t,r,i,s,c){if(s===r&&Ua(5),qf(s)){var u=Sw(e,s,c&&t&&t.i!==3&&!Vm(t.D,i)?c.concat(i):void 0);if(I6(r,i,u),!qf(u))return;e.m=!1}if(mc(s)&&!U2(s)){if(!e.h.F&&e._<1)return;Sw(e,s),t&&t.A.l||xw(e,s)}}function xw(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&B2(t,r)}function xA(e,t){var r=e[Ar];return(r?Af(r):e)[t]}function bF(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Of(e){e.P||(e.P=!0,e.l&&Of(e.l))}function wA(e){e.o||(e.o=z2(e.t))}function HO(e,t,r){var i=L2(t)?fu("MapSet").N(t,r):F2(t)?fu("MapSet").T(t,r):e.g?function(s,c){var u=Array.isArray(s),h={i:u?1:0,A:c?c.A:$O(),P:!1,I:!1,D:{},l:c,t:s,k:null,o:null,j:null,C:!1},m=h,v=yb;u&&(m=[h],v=My);var b=Proxy.revocable(m,v),x=b.revoke,C=b.proxy;return h.k=C,h.j=x,C}(t,r):fu("ES5").J(t,r);return(r?r.A:$O()).p.push(i),i}function Aue(e){return qf(e)||Ua(22,e),function t(r){if(!mc(r))return r;var i,s=r[Ar],c=sv(r);if(s){if(!s.P&&(s.i<4||!fu("ES5").K(s)))return s.t;s.I=!0,i=SF(r,c),s.I=!1}else i=SF(r,c);return Vp(i,function(u,h){s&&Eue(s.t,u)===h||I6(i,u,t(h))}),c===3?new Set(i):i}(e)}function SF(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return z2(e)}function Oue(){function e(u,h){var m=c[u];return m?m.enumerable=h:c[u]=m={configurable:!0,enumerable:h,get:function(){var v=this[Ar];return s(v),yb.get(v,u)},set:function(v){var b=this[Ar];s(b),yb.set(b,u,v)}},m}function t(u){for(var h=u.length-1;h>=0;h--){var m=u[h][Ar];if(!m.P)switch(m.i){case 5:i(m)&&Of(m);break;case 4:r(m)&&Of(m)}}}function r(u){for(var h=u.t,m=u.k,v=Hm(m),b=v.length-1;b>=0;b--){var x=v[b];if(x!==Ar){var C=h[x];if(C===void 0&&!Vm(h,x))return!0;var _=m[x],N=_&&_[Ar];if(N?N.t!==C:!L6(_,C))return!0}}var A=!!h[Ar];return v.length!==Hm(h).length+(A?0:1)}function i(u){var h=u.k;if(h.length!==u.t.length)return!0;var m=Object.getOwnPropertyDescriptor(h,h.length-1);if(m&&!m.get)return!0;for(var v=0;v<h.length;v++)if(!h.hasOwnProperty(v))return!0;return!1}function s(u){u.O&&Ua(3,JSON.stringify(Af(u)))}var c={};Nue("ES5",{J:function(u,h){var m=Array.isArray(u),v=function(x,C){if(x){for(var _=Array(C.length),N=0;N<C.length;N++)Object.defineProperty(_,""+N,e(N,!0));return _}var A=z6(C);delete A[Ar];for(var I=Hm(A),j=0;j<I.length;j++){var M=I[j];A[M]=e(M,x||!!A[M].enumerable)}return Object.create(Object.getPrototypeOf(C),A)}(m,u),b={i:m?5:4,A:h?h.A:$O(),P:!1,I:!1,D:{},l:h,t:u,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Ar,{value:b,writable:!0}),v},S:function(u,h,m){m?qf(h)&&h[Ar].A===u&&t(u.p):(u.u&&function v(b){if(b&&typeof b=="object"){var x=b[Ar];if(x){var C=x.t,_=x.k,N=x.D,A=x.i;if(A===4)Vp(_,function(U){U!==Ar&&(C[U]!==void 0||Vm(C,U)?N[U]||v(_[U]):(N[U]=!0,Of(x)))}),Vp(C,function(U){_[U]!==void 0||Vm(_,U)||(N[U]=!1,Of(x))});else if(A===5){if(i(x)&&(Of(x),N.length=!0),_.length<C.length)for(var I=_.length;I<C.length;I++)N[I]=!1;else for(var j=C.length;j<_.length;j++)N[j]=!0;for(var M=Math.min(_.length,C.length),z=0;z<M;z++)_.hasOwnProperty(z)||(N[z]=!0),N[z]===void 0&&v(_[z])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):i(u)}})}var xF,ev,j2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kue=typeof Map<"u",Due=typeof Set<"u",wF=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",F6=j2?Symbol.for("immer-nothing"):((xF={})["immer-nothing"]=!0,xF),CF=j2?Symbol.for("immer-draftable"):"__$immer_draftable",Ar=j2?Symbol.for("immer-state"):"__$immer_state",Pue={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"},Mue=""+Object.prototype.constructor,Hm=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,z6=Object.getOwnPropertyDescriptors||function(e){var t={};return Hm(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},WO={},yb={get:function(e,t){if(t===Ar)return e;var r=Af(e);if(!Vm(r,t))return function(s,c,u){var h,m=bF(c,u);return m?"value"in m?m.value:(h=m.get)===null||h===void 0?void 0:h.call(s.k):void 0}(e,r,t);var i=r[t];return e.I||!mc(i)?i:i===xA(e.t,t)?(wA(e),e.o[t]=HO(e.A.h,i,e)):i},has:function(e,t){return t in Af(e)},ownKeys:function(e){return Reflect.ownKeys(Af(e))},set:function(e,t,r){var i=bF(Af(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var s=xA(Af(e),t),c=s?.[Ar];if(c&&c.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(L6(r,s)&&(r!==void 0||Vm(e.t,t)))return!0;wA(e),Of(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return xA(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,wA(e),Of(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Af(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Ua(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ua(12)}},My={};Vp(yb,function(e,t){My[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),My.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ua(13),My.set.call(this,e,t,void 0)},My.set=function(e,t,r){return t!=="length"&&isNaN(parseInt(t))&&Ua(14),yb.set.call(this,e[0],t,r,e[0])};var Iue=function(){function e(r){var i=this;this.g=wF,this.F=!0,this.produce=function(s,c,u){if(typeof s=="function"&&typeof c!="function"){var h=c;c=s;var m=i;return function(A){var I=this;A===void 0&&(A=h);for(var j=arguments.length,M=Array(j>1?j-1:0),z=1;z<j;z++)M[z-1]=arguments[z];return m.produce(A,function(U){var V;return(V=c).call.apply(V,[I,U].concat(M))})}}var v;if(typeof c!="function"&&Ua(6),u!==void 0&&typeof u!="function"&&Ua(7),mc(s)){var b=gF(i),x=HO(i,s,void 0),C=!0;try{v=c(x),C=!1}finally{C?bw(b):VO(b)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(A){return bA(b,u),SA(A,b)},function(A){throw bw(b),A}):(bA(b,u),SA(v,b))}if(!s||typeof s!="object"){if((v=c(s))===void 0&&(v=s),v===F6&&(v=void 0),i.F&&B2(v,!0),u){var _=[],N=[];fu("Patches").M(s,v,_,N),u(_,N)}return v}Ua(21,s)},this.produceWithPatches=function(s,c){if(typeof s=="function")return function(v){for(var b=arguments.length,x=Array(b>1?b-1:0),C=1;C<b;C++)x[C-1]=arguments[C];return i.produceWithPatches(v,function(_){return s.apply(void 0,[_].concat(x))})};var u,h,m=i.produce(s,c,function(v,b){u=v,h=b});return typeof Promise<"u"&&m instanceof Promise?m.then(function(v){return[v,u,h]}):[m,u,h]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){mc(r)||Ua(8),qf(r)&&(r=Aue(r));var i=gF(this),s=HO(this,r,void 0);return s[Ar].C=!0,VO(i),s},t.finishDraft=function(r,i){var s=r&&r[Ar];s&&s.C||Ua(9),s.I&&Ua(10);var c=s.A;return bA(c,i),SA(void 0,c)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!wF&&Ua(20),this.g=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var c=i[s];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}s>-1&&(i=i.slice(s+1));var u=fu("Patches").$;return qf(r)?u(r,i):this.produce(r,function(h){return u(h,i)})},e}(),qo=new Iue,B6=qo.produce;qo.produceWithPatches.bind(qo);qo.setAutoFreeze.bind(qo);qo.setUseProxies.bind(qo);qo.applyPatches.bind(qo);qo.createDraft.bind(qo);qo.finishDraft.bind(qo);function _F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function EF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_F(Object(r),!0).forEach(function(i){TB(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_F(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var TF=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),CA=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bp={INIT:"@@redux/INIT"+CA(),REPLACE:"@@redux/REPLACE"+CA(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+CA()}};function U6(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 Lue(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(Bue(e))return"date";if(zue(e))return"error";var r=Fue(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Fue(e){return typeof e.constructor=="function"?e.constructor.name:null}function zue(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Bue(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Np(e){var t=typeof e;return t=Lue(e),t}function $2(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+Np(r)+"'");return r($2)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+Np(e)+"'");var s=e,c=t,u=[],h=u,m=!1;function v(){h===u&&(h=u.slice())}function b(){if(m)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 c}function x(A){if(typeof A!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+Np(A)+"'");if(m)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 I=!0;return v(),h.push(A),function(){if(!!I){if(m)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.");I=!1,v();var M=h.indexOf(A);h.splice(M,1),u=null}}}function C(A){if(!U6(A))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+Np(A)+"'. 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 A.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,c=s(c,A)}finally{m=!1}for(var I=u=h,j=0;j<I.length;j++){var M=I[j];M()}return A}function _(A){if(typeof A!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+Np(A));s=A,C({type:Bp.REPLACE})}function N(){var A,I=x;return A={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error("Expected the observer to be an object. Instead, received: '"+Np(M)+"'");function z(){M.next&&M.next(b())}z();var U=I(z);return{unsubscribe:U}}},A[TF]=function(){return this},A}return C({type:Bp.INIT}),i={dispatch:C,subscribe:x,getState:b,replaceReducer:_},i[TF]=N,i}function GO(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Uue(e,t,r,i){var s=Object.keys(t),c=r&&r.type===Bp.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.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(!U6(e))return"The "+c+' has unexpected type of "'+Np(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var u=Object.keys(e).filter(function(h){return!t.hasOwnProperty(h)&&!i[h]});if(u.forEach(function(h){i[h]=!0}),!(r&&r.type===Bp.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+c+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function jue(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Bp.INIT});if(typeof i>"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 r(void 0,{type:Bp.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 '"+Bp.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 j6(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var s=t[i];typeof e[s]>"u"&&GO('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(r[s]=e[s])}var c=Object.keys(r),u;u={};var h;try{jue(r)}catch(m){h=m}return function(v,b){if(v===void 0&&(v={}),h)throw h;{var x=Uue(v,r,b,u);x&&GO(x)}for(var C=!1,_={},N=0;N<c.length;N++){var A=c[N],I=r[A],j=v[A],M=I(j,b);if(typeof M>"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 "'+A+'" 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.')}_[A]=M,C=C||M!==j}return C=C||c.length!==Object.keys(v).length,C?_:v}}function ww(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,s){return function(){return i(s.apply(void 0,arguments))}})}function $ue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var s=i.apply(void 0,arguments),c=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:s.getState,dispatch:function(){return c.apply(void 0,arguments)}},h=t.map(function(m){return m(u)});return c=ww.apply(void 0,h)(s.dispatch),EF(EF({},s),{},{dispatch:c})}}}function NF(){}typeof NF.name=="string"&&NF.name!=="isCrushed"&&GO('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 Cw="NOT_FOUND";function Vue(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:Cw},put:function(i,s){t={key:i,value:s}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Hue(e,t){var r=[];function i(h){var m=r.findIndex(function(b){return t(h,b.key)});if(m>-1){var v=r[m];return m>0&&(r.splice(m,1),r.unshift(v)),v.value}return Cw}function s(h,m){i(h)===Cw&&(r.unshift({key:h,value:m}),r.length>e&&r.pop())}function c(){return r}function u(){r=[]}return{get:i,put:s,getEntries:c,clear:u}}var Wue=function(t,r){return t===r};function Gue(e){return function(r,i){if(r===null||i===null||r.length!==i.length)return!1;for(var s=r.length,c=0;c<s;c++)if(!e(r[c],i[c]))return!1;return!0}}function Yue(e,t){var r=typeof t=="object"?t:{equalityCheck:t},i=r.equalityCheck,s=i===void 0?Wue:i,c=r.maxSize,u=c===void 0?1:c,h=r.resultEqualityCheck,m=Gue(s),v=u===1?Vue(m):Hue(u,m);function b(){var x=v.get(arguments);if(x===Cw){if(x=e.apply(null,arguments),h){var C=v.getEntries(),_=C.find(function(N){return h(N.value,x)});_&&(x=_.value)}v.put(arguments,x)}return x}return b.clearCache=function(){return v.clear()},b}function que(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var r=t.map(function(i){return typeof i=="function"?"function "+(i.name||"unnamed")+"()":typeof i}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Kue(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=function(){for(var u=arguments.length,h=new Array(u),m=0;m<u;m++)h[m]=arguments[m];var v=0,b,x={memoizeOptions:void 0},C=h.pop();if(typeof C=="object"&&(x=C,C=h.pop()),typeof C!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof C+"]");var _=x,N=_.memoizeOptions,A=N===void 0?r:N,I=Array.isArray(A)?A:[A],j=que(h),M=e.apply(void 0,[function(){return v++,C.apply(null,arguments)}].concat(I)),z=e(function(){for(var V=[],K=j.length,X=0;X<K;X++)V.push(j[X].apply(null,arguments));return b=M.apply(null,V),b});return Object.assign(z,{resultFunc:C,memoizedResultFunc:M,dependencies:j,lastResult:function(){return b},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),z};return s}var $r=Kue(Yue);function $6(e){var t=function(i){var s=i.dispatch,c=i.getState;return function(u){return function(h){return typeof h=="function"?h(s,c,e):u(h)}}};return t}var V6=$6();V6.withExtraArgument=$6;const RF=V6;var Xue=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(i[c]=s[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();globalThis&&globalThis.__generator;var _w=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,i=t.length,s=e.length;r<i;r++,s++)e[s]=t[r];return e},Zue=Object.defineProperty,AF=Object.getOwnPropertySymbols,Que=Object.prototype.hasOwnProperty,Jue=Object.prototype.propertyIsEnumerable,OF=function(e,t,r){return t in e?Zue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},bb=function(e,t){for(var r in t||(t={}))Que.call(t,r)&&OF(e,r,t[r]);if(AF)for(var i=0,s=AF(t);i<s.length;i++){var r=s[i];Jue.call(t,r)&&OF(e,r,t[r])}return e},ece=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ww:ww.apply(null,arguments)};function H6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function W6(e,t){var r=0;return{measureTime:function(i){var s=Date.now();try{return i()}finally{var c=Date.now();r+=c-s}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"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 tce=function(e){Xue(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=e.apply(this,r)||this;return Object.setPrototypeOf(s,t.prototype),s}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,_w([void 0],r[0].concat(this)))):new(t.bind.apply(t,_w([void 0],r.concat(this))))},t}(Array);function YO(e){return mc(e)?B6(e,function(){}):e}var nce="Invariant failed";function kF(e,t){if(!e)throw new Error(nce+": "+(t||""))}function rce(e,t,r,i){return JSON.stringify(e,ace(t,i),r)}function ace(e,t){var r=[],i=[];return t||(t=function(s,c){return r[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(c)).join(".")+"]"}),function(s,c){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?i.splice(u,1/0,s):i.push(s),~r.indexOf(c)&&(c=t.call(this,s,c))}else r.push(c);return e==null?c:e.call(this,s,c)}}function ice(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function oce(e,t,r){var i=G6(e,t,r);return{detectMutations:function(){return Y6(e,t,i,r)}}}function G6(e,t,r,i){t===void 0&&(t=[]),i===void 0&&(i="");var s={value:r};if(!e(r)){s.children={};for(var c in r){var u=i?i+"."+c:c;t.length&&t.indexOf(u)!==-1||(s.children[c]=G6(e,t,r[c],u))}}return s}function Y6(e,t,r,i,s,c){t===void 0&&(t=[]),s===void 0&&(s=!1),c===void 0&&(c="");var u=r?r.value:void 0,h=u===i;if(s&&!h&&!Number.isNaN(i))return{wasMutated:!0,path:c};if(e(u)||e(i))return{wasMutated:!1};var m={};for(var v in r.children)m[v]=!0;for(var v in i)m[v]=!0;for(var v in m){var b=c?c+"."+v:v;if(!(t.length&&t.indexOf(b)!==-1)){var x=Y6(e,t,r.children[v],i[v],h,b);if(x.wasMutated)return x}}return{wasMutated:!1}}function sce(e){e===void 0&&(e={});var t=e.isImmutable,r=t===void 0?ice:t,i=e.ignoredPaths,s=e.warnAfter,c=s===void 0?32:s,u=e.ignore;i=i||u;var h=oce.bind(null,r,i);return function(m){var v=m.getState,b=v(),x=h(b),C;return function(_){return function(N){var A=W6(c,"ImmutableStateInvariantMiddleware");A.measureTime(function(){b=v(),C=x.detectMutations(),x=h(b),kF(!C.wasMutated,"A state mutation was detected between dispatches, in the path '"+(C.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var I=_(N);return A.measureTime(function(){b=v(),C=x.detectMutations(),x=h(b),C.wasMutated&&kF(!C.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(C.path||"")+". Take a look at the reducer(s) handling the action "+rce(N)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),A.warnIfExceeded(),I}}}}function q6(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||H6(e)}function qO(e,t,r,i,s){t===void 0&&(t=""),r===void 0&&(r=q6),s===void 0&&(s=[]);var c;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var u=i!=null?i(e):Object.entries(e),h=s.length>0,m=0,v=u;m<v.length;m++){var b=v[m],x=b[0],C=b[1],_=t?t+"."+x:x;if(!(h&&s.indexOf(_)>=0)){if(!r(C))return{keyPath:_,value:C};if(typeof C=="object"&&(c=qO(C,_,r,i,s),c))return c}}return!1}function lce(e){e===void 0&&(e={});var t=e.isSerializable,r=t===void 0?q6:t,i=e.getEntries,s=e.ignoredActions,c=s===void 0?[]:s,u=e.ignoredActionPaths,h=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,m=e.ignoredPaths,v=m===void 0?[]:m,b=e.warnAfter,x=b===void 0?32:b,C=e.ignoreState,_=C===void 0?!1:C,N=e.ignoreActions,A=N===void 0?!1:N;return function(I){return function(j){return function(M){var z=j(M),U=W6(x,"SerializableStateInvariantMiddleware");return!A&&!(c.length&&c.indexOf(M.type)!==-1)&&U.measureTime(function(){var V=qO(M,"",r,i,h);if(V){var K=V.keyPath,X=V.value;console.error("A non-serializable value was detected in an action, in the path: `"+K+"`. Value:",X,`
Take a look at the logic that dispatched this action: `,M,`
(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)`)}}),_||(U.measureTime(function(){var V=I.getState(),K=qO(V,"",r,i,v);if(K){var X=K.keyPath,de=K.value;console.error("A non-serializable value was detected in the state, in the path: `"+X+"`. Value:",de,`
Take a look at the reducer(s) handling this action type: `+M.type+`.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),U.warnIfExceeded()),z}}}}function _A(e){return typeof e=="boolean"}function uce(){return function(t){return cce(t)}}function cce(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,s=i===void 0?!0:i,c=e.serializableCheck,u=c===void 0?!0:c,h=new tce;r&&(_A(r)?h.push(RF):h.push(RF.withExtraArgument(r.extraArgument)));{if(s){var m={};_A(s)||(m=s),h.unshift(sce(m))}if(u){var v={};_A(u)||(v=u),h.push(lce(v))}}return h}var fce=!1;function dce(e){var t=uce(),r=e||{},i=r.reducer,s=i===void 0?void 0:i,c=r.middleware,u=c===void 0?t():c,h=r.devTools,m=h===void 0?!0:h,v=r.preloadedState,b=v===void 0?void 0:v,x=r.enhancers,C=x===void 0?void 0:x,_;if(typeof s=="function")_=s;else if(H6(s))_=j6(s);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 N=u;if(typeof N=="function"&&(N=N(t),!Array.isArray(N)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(N.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=$ue.apply(void 0,N),I=ww;m&&(I=ece(bb({trace:!fce},typeof m=="object"&&m)));var j=[A];Array.isArray(C)?j=_w([A],C):typeof C=="function"&&(j=C(j));var M=I.apply(void 0,j);return $2(_,b,M)}function Ko(e,t){function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(t){var c=t.apply(void 0,i);if(!c)throw new Error("prepareAction did not return an object");return bb(bb({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function K6(e){var t={},r=[],i,s={addCase:function(c,u){{if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var h=typeof c=="string"?c:c.type;if(h in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[h]=u,s},addMatcher:function(c,u){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:c,reducer:u}),s},addDefaultCase:function(c){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=c,s}};return e(s),[t,r,i]}function pce(e){return typeof e=="function"}function hce(e,t,r,i){r===void 0&&(r=[]);var s=typeof t=="function"?K6(t):[t,r,i],c=s[0],u=s[1],h=s[2],m;if(pce(e))m=function(){return YO(e())};else{var v=YO(e);m=function(){return v}}function b(x,C){x===void 0&&(x=m());var _=_w([c[C.type]],u.filter(function(N){var A=N.matcher;return A(C)}).map(function(N){var A=N.reducer;return A}));return _.filter(function(N){return!!N}).length===0&&(_=[h]),_.reduce(function(N,A){if(A)if(qf(N)){var I=N,j=A(I,C);return j===void 0?N:j}else{if(mc(N))return B6(N,function(M){return A(M,C)});var j=A(N,C);if(j===void 0){if(N===null)return N;throw Error("A case reducer on a non-draftable value must not return undefined")}return j}return N},x)}return b.getInitialState=m,b}function mce(e,t){return e+"/"+t}function V2(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 r=typeof e.initialState=="function"?e.initialState:YO(e.initialState),i=e.reducers||{},s=Object.keys(i),c={},u={},h={};s.forEach(function(b){var x=i[b],C=mce(t,b),_,N;"reducer"in x?(_=x.reducer,N=x.prepare):_=x,c[b]=_,u[C]=_,h[b]=N?Ko(C,N):Ko(C)});function m(){var b=typeof e.extraReducers=="function"?K6(e.extraReducers):[e.extraReducers],x=b[0],C=x===void 0?{}:x,_=b[1],N=_===void 0?[]:_,A=b[2],I=A===void 0?void 0:A,j=bb(bb({},C),u);return hce(r,j,N,I)}var v;return{name:t,reducer:function(b,x){return v||(v=m()),v(b,x)},actions:h,caseReducers:c,getInitialState:function(){return v||(v=m()),v.getInitialState()}}}var H2="listenerMiddleware";Ko(H2+"/add");Ko(H2+"/removeAll");Ko(H2+"/remove");Oue();var W2="persist:",X6="persist/FLUSH",G2="persist/REHYDRATE",Z6="persist/PAUSE",Q6="persist/PERSIST",J6="persist/PURGE",eU="persist/REGISTER",vce=-1;function Xy(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xy=function(r){return typeof r}:Xy=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xy(e)}function DF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function gce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DF(r,!0).forEach(function(i){yce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bce(e,t,r,i){var s=i.debug,c=gce({},r);return e&&Xy(e)==="object"&&Object.keys(e).forEach(function(u){if(u!=="_persist"){if(t[u]!==r[u]){s&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",u);return}c[u]=e[u]}}),s&&e&&Xy(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),c}function Sce(e){var t=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],s=e.throttle||0,c="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key),u=e.storage,h;e.serialize===!1?h=function(V){return V}:typeof e.serialize=="function"?h=e.serialize:h=xce;var m=e.writeFailHandler||null,v={},b={},x=[],C=null,_=null,N=function(V){Object.keys(V).forEach(function(K){!j(K)||v[K]!==V[K]&&x.indexOf(K)===-1&&x.push(K)}),Object.keys(v).forEach(function(K){V[K]===void 0&&j(K)&&x.indexOf(K)===-1&&v[K]!==void 0&&x.push(K)}),C===null&&(C=setInterval(A,s)),v=V};function A(){if(x.length===0){C&&clearInterval(C),C=null;return}var U=x.shift(),V=i.reduce(function(K,X){return X.in(K,U,v)},v[U]);if(V!==void 0)try{b[U]=h(V)}catch(K){console.error("redux-persist/createPersistoid: error serializing state",K)}else delete b[U];x.length===0&&I()}function I(){Object.keys(b).forEach(function(U){v[U]===void 0&&delete b[U]}),_=u.setItem(c,h(b)).catch(M)}function j(U){return!(r&&r.indexOf(U)===-1&&U!=="_persist"||t&&t.indexOf(U)!==-1)}function M(U){m&&m(U),U&&console.error("Error storing data",U)}var z=function(){for(;x.length!==0;)A();return _||Promise.resolve()};return{update:N,flush:z}}function xce(e){return JSON.stringify(e)}function wce(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key),i=e.storage,s=e.debug,c;return e.deserialize===!1?c=function(h){return h}:typeof e.deserialize=="function"?c=e.deserialize:c=Cce,i.getItem(r).then(function(u){if(u)try{var h={},m=c(u);return Object.keys(m).forEach(function(v){h[v]=t.reduceRight(function(b,x){return x.out(b,v,m)},c(m[v]))}),h}catch(v){throw s&&console.log("redux-persist/getStoredState: Error restoring data ".concat(u),v),v}else return})}function Cce(e){return JSON.parse(e)}function _ce(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key);return t.removeItem(r,Ece)}function Ece(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function PF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function ic(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PF(r,!0).forEach(function(i){Tce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Tce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nce(e,t){if(e==null)return{};var r=Rce(e,t),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)i=c[s],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function Rce(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Ace=5e3;function Oce(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 r=e.version!==void 0?e.version:vce;e.debug;var i=e.stateReconciler===void 0?bce:e.stateReconciler,s=e.getStoredState||wce,c=e.timeout!==void 0?e.timeout:Ace,u=null,h=!1,m=!0,v=function(x){return x._persist.rehydrated&&u&&!m&&u.update(x),x};return function(b,x){var C=b||{},_=C._persist,N=Nce(C,["_persist"]),A=N;if(x.type===Q6){var I=!1,j=function(de,ve){I&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),de,ve),I||(x.rehydrate(e.key,de,ve),I=!0)};if(c&&setTimeout(function(){!I&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},c),m=!1,u||(u=Sce(e)),_)return ic({},t(A,x),{_persist:_});if(typeof x.rehydrate!="function"||typeof x.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 x.register(e.key),s(e).then(function(X){var de=e.migrate||function(ve,se){return Promise.resolve(ve)};de(X,r).then(function(ve){j(ve)},function(ve){ve&&console.error("redux-persist: migration error",ve),j(void 0,ve)})},function(X){j(void 0,X)}),ic({},t(A,x),{_persist:{version:r,rehydrated:!1}})}else{if(x.type===J6)return h=!0,x.result(_ce(e)),ic({},t(A,x),{_persist:_});if(x.type===X6)return x.result(u&&u.flush()),ic({},t(A,x),{_persist:_});if(x.type===Z6)m=!0;else if(x.type===G2){if(h)return ic({},A,{_persist:ic({},_,{rehydrated:!0})});if(x.key===e.key){var M=t(A,x),z=x.payload,U=i!==!1&&z!==void 0?i(z,b,M,e):M,V=ic({},U,{_persist:ic({},_,{rehydrated:!0})});return v(V)}}}if(!_)return t(b,x);var K=t(A,x);return K===A?b:v(ic({},K,{_persist:_}))}}function MF(e){return Pce(e)||Dce(e)||kce()}function kce(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Dce(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Pce(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function IF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function KO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IF(r,!0).forEach(function(i){Mce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Mce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tU={registry:[],bootstrapped:!1},Ice=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tU,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case eU:return KO({},t,{registry:[].concat(MF(t.registry),[r.key])});case G2:var i=t.registry.indexOf(r.key),s=MF(t.registry);return s.splice(i,1),KO({},t,{registry:s,bootstrapped:s.length===0});default:return t}};function Lce(e,t,r){{var i=t||{},s=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];s.forEach(function(b){i[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 c=r||!1,u=$2(Ice,tU,t&&t.enhancer?t.enhancer:void 0),h=function(x){u.dispatch({type:eU,key:x})},m=function(x,C,_){var N={type:G2,payload:C,err:_,key:x};e.dispatch(N),u.dispatch(N),c&&v.getState().bootstrapped&&(c(),c=!1)},v=KO({},u,{purge:function(){var x=[];return e.dispatch({type:J6,result:function(_){x.push(_)}}),Promise.all(x)},flush:function(){var x=[];return e.dispatch({type:X6,result:function(_){x.push(_)}}),Promise.all(x)},pause:function(){e.dispatch({type:Z6})},persist:function(){e.dispatch({type:Q6,register:h,rehydrate:m})}});return t&&t.manualPersist||v.persist(),v}var Y2={},q2={};q2.__esModule=!0;q2.default=Bce;function Ix(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ix=function(r){return typeof r}:Ix=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ix(e)}function EA(){}var Fce={getItem:EA,setItem:EA,removeItem:EA};function zce(e){if((typeof self>"u"?"undefined":Ix(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Bce(e){var t="".concat(e,"Storage");return zce(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),Fce)}Y2.__esModule=!0;Y2.default=$ce;var Uce=jce(q2);function jce(e){return e&&e.__esModule?e:{default:e}}function $ce(e){var t=(0,Uce.default)(e);return{getItem:function(i){return new Promise(function(s,c){s(t.getItem(i))})},setItem:function(i,s){return new Promise(function(c,u){c(t.setItem(i,s))})},removeItem:function(i){return new Promise(function(s,c){s(t.removeItem(i))})}}}var nU=void 0,Vce=Hce(Y2);function Hce(e){return e&&e.__esModule?e:{default:e}}var Wce=(0,Vce.default)("local");nU=Wce;const TA=(e,t,r)=>r?Math.floor(t*e):e,rU={prompt:"",iterations:1,steps:50,realSteps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},Gce=rU,aU=V2({name:"sd",initialState:Gce,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{const{img2imgStrength:r,initialImagePath:i}=e,s=t.payload;e.steps=s,e.realSteps=TA(s,r,Boolean(i))},setCfgScale:(e,t)=>{e.cfgScale=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)=>{const r=t.payload,{steps:i,initialImagePath:s}=e;e.img2imgStrength=r,e.realSteps=TA(i,r,Boolean(s))},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const r=t.payload,{steps:i,img2imgStrength:s}=e;e.shouldUseInitImage=!!r,e.initialImagePath=r,e.realSteps=TA(i,s,Boolean(r))},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:r,value:i}=t.payload,s={...e,[r]:i};return r==="seed"&&(s.shouldRandomizeSeed=!1),r==="initialImagePath"&&i===""&&(s.shouldUseInitImage=!1),s},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{prompt:r,steps:i,cfgScale:s,height:c,width:u,sampler:h,seed:m,img2imgStrength:v,gfpganStrength:b,upscalingLevel:x,upscalingStrength:C,initialImagePath:_,maskPath:N,seamless:A,shouldFitToWidthHeight:I}=t.payload;e.prompt=r??e.prompt,e.steps=i||e.steps,e.cfgScale=s||e.cfgScale,e.width=u||e.width,e.height=c||e.height,e.sampler=h||e.sampler,e.seed=m??e.seed,e.seamless=A??e.seamless,e.shouldFitToWidthHeight=I??e.shouldFitToWidthHeight,e.img2imgStrength=v??e.img2imgStrength,e.gfpganStrength=b??e.gfpganStrength,e.upscalingLevel=x??e.upscalingLevel,e.upscalingStrength=C??e.upscalingStrength,e.initialImagePath=_??e.initialImagePath,e.maskPath=N??e.maskPath,m&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!b,e.shouldRunESRGAN=!!x,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!_},resetSDState:e=>({...e,...rU}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:Yce,setIterations:qce,setSteps:Kce,setCfgScale:Xce,setHeight:Zce,setWidth:Qce,setSampler:Jce,setSeed:Ew,setSeamless:efe,setImg2imgStrength:tfe,setGfpganStrength:nfe,setUpscalingLevel:rfe,setUpscalingStrength:afe,setShouldUseInitImage:ife,setInitialImagePath:K2,setMaskPath:iU,resetSeed:Cme,resetSDState:_me,setShouldFitToWidthHeight:ofe,setParameter:sfe,setShouldGenerateVariations:lfe,setSeedWeights:ufe,setVariationAmount:cfe,setAllParameters:X2,setShouldRunGFPGAN:ffe,setShouldRunESRGAN:dfe,setShouldRandomizeSeed:pfe}=aU.actions,hfe=aU.reducer;let dx;const mfe=new Uint8Array(16);function vfe(){if(!dx&&(dx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!dx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dx(mfe)}const ii=[];for(let e=0;e<256;++e)ii.push((e+256).toString(16).slice(1));function gfe(e,t=0){return(ii[e[t+0]]+ii[e[t+1]]+ii[e[t+2]]+ii[e[t+3]]+"-"+ii[e[t+4]]+ii[e[t+5]]+"-"+ii[e[t+6]]+ii[e[t+7]]+"-"+ii[e[t+8]]+ii[e[t+9]]+"-"+ii[e[t+10]]+ii[e[t+11]]+ii[e[t+12]]+ii[e[t+13]]+ii[e[t+14]]+ii[e[t+15]]).toLowerCase()}const yfe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),LF={randomUUID:yfe};function XO(e,t,r){if(LF.randomUUID&&!t&&!e)return LF.randomUUID();e=e||{};const i=e.random||(e.rng||vfe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(let s=0;s<16;++s)t[r+s]=i[s];return t}return gfe(i)}const oU=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),sU=e=>{const i=e.split(",").map(s=>s.split(":")).map(s=>[parseInt(s[0]),parseFloat(s[1])]);return dC(i)?i:!1},dC=e=>Boolean(typeof e=="string"?sU(e):e.length&&!e.some(t=>{const[r,i]=t,s=!isNaN(parseInt(r.toString(),10)),c=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(s&&c)})),bfe=e=>dC(e)?e.reduce((t,r,i,s)=>{const[c,u]=r;return t+=`${c}:${u}`,i!==s.length-1&&(t+=","),t},""):!1,Sfe=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],xfe=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],wfe=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Cfe=[{key:"2x",value:2},{key:"4x",value:4}],FF={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},ZO=0,QO=4294967295,_fe=(e,t)=>{const{prompt:r,iterations:i,steps:s,cfgScale:c,height:u,width:h,sampler:m,seed:v,seamless:b,shouldUseInitImage:x,img2imgStrength:C,initialImagePath:_,maskPath:N,shouldFitToWidthHeight:A,shouldGenerateVariations:I,variationAmount:j,seedWeights:M,shouldRunESRGAN:z,upscalingLevel:U,upscalingStrength:V,shouldRunGFPGAN:K,gfpganStrength:X,shouldRandomizeSeed:de}=e,{shouldDisplayInProgress:ve}=t,se={prompt:r,iterations:i,steps:s,cfg_scale:c,height:u,width:h,sampler_name:m,seed:v,seamless:b,progress_images:ve};se.seed=de?oU(ZO,QO):v,x&&(se.init_img=_,se.strength=C,se.fit=A,N&&(se.init_mask=N)),I?(se.variation_amount=j,M&&(se.with_variations=sU(M))):se.variation_amount=.1;let be=!1,Xe=!1;return z&&(be={level:U,strength:V}),K&&(Xe={strength:X}),{generationParameters:se,esrganParameters:be,gfpganParameters:Xe}},lU=e=>{const{prompt:t,iterations:r,steps:i,cfg_scale:s,height:c,width:u,sampler_name:h,seed:m,seamless:v,progress_images:b,variation_amount:x,with_variations:C,gfpgan_strength:_,upscale:N,init_img:A,init_mask:I,strength:j}=e,M={shouldDisplayInProgress:b,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return x>0&&(M.shouldGenerateVariations=!0,M.variationAmount=x,C&&(M.seedWeights=bfe(C))),_>0&&(M.shouldRunGFPGAN=!0,M.gfpganStrength=_),N&&(M.shouldRunESRGAN=!0,M.upscalingLevel=N[0],M.upscalingStrength=N[1]),A&&(M.shouldUseInitImage=!0,M.initialImagePath=A,M.strength=j,I&&(M.maskPath=I)),t&&(M.prompt=t,M.iterations=r,M.steps=i,M.cfgScale=s,M.height=c,M.width=u,M.sampler=h,M.seed=m,M.seamless=v),M},Efe={currentImageUuid:"",images:[]},uU=V2({name:"gallery",initialState:Efe,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const{uuid:r}=t.payload,i=e.images.filter(u=>u.uuid!==r),s=e.images.findIndex(u=>u.uuid===r),c=Math.min(Math.max(s,0),i.length-1);e.images=i,e.currentImage=i.length?i[c]:void 0,e.currentImageUuid=i.length?i[c].uuid:""},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{if(t.payload.length===0)e.images=[],e.currentImageUuid="",e.currentImage=void 0;else{const s=t.payload.filter(u=>!e.images.find(h=>h.url===u.path)).map(u=>({uuid:XO(),url:u.path,metadata:lU(u.metadata)})),c=[...e.images].concat(s);if(!c.find(u=>u.uuid===e.currentImageUuid)){const u=c[c.length-1];e.currentImage=u,e.currentImageUuid=u.uuid}e.images=c}}}}),{setCurrentImage:Tfe,removeImage:Nfe,addImage:px,setGalleryImages:Rfe,setIntermediateImage:Afe,clearIntermediateImage:zF}=uU.actions,Ofe=uU.reducer;var kfe=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Dfe=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Pfe=/[^-+\dA-Z]/g;function Mfe(e,t,r,i){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(BF[t]||t||BF.default);var s=t.slice(0,4);(s==="UTC:"||s==="GMT:")&&(t=t.slice(4),r=!0,s==="GMT:"&&(i=!0));var c=function(){return r?"getUTC":"get"},u=function(){return e[c()+"Date"]()},h=function(){return e[c()+"Day"]()},m=function(){return e[c()+"Month"]()},v=function(){return e[c()+"FullYear"]()},b=function(){return e[c()+"Hours"]()},x=function(){return e[c()+"Minutes"]()},C=function(){return e[c()+"Seconds"]()},_=function(){return e[c()+"Milliseconds"]()},N=function(){return r?0:e.getTimezoneOffset()},A=function(){return Ife(e)},I=function(){return Lfe(e)},j={d:function(){return u()},dd:function(){return $o(u())},ddd:function(){return co.dayNames[h()]},DDD:function(){return UF({y:v(),m:m(),d:u(),_:c(),dayName:co.dayNames[h()],short:!0})},dddd:function(){return co.dayNames[h()+7]},DDDD:function(){return UF({y:v(),m:m(),d:u(),_:c(),dayName:co.dayNames[h()+7]})},m:function(){return m()+1},mm:function(){return $o(m()+1)},mmm:function(){return co.monthNames[m()]},mmmm:function(){return co.monthNames[m()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return $o(v(),4)},h:function(){return b()%12||12},hh:function(){return $o(b()%12||12)},H:function(){return b()},HH:function(){return $o(b())},M:function(){return x()},MM:function(){return $o(x())},s:function(){return C()},ss:function(){return $o(C())},l:function(){return $o(_(),3)},L:function(){return $o(Math.floor(_()/10))},t:function(){return b()<12?co.timeNames[0]:co.timeNames[1]},tt:function(){return b()<12?co.timeNames[2]:co.timeNames[3]},T:function(){return b()<12?co.timeNames[4]:co.timeNames[5]},TT:function(){return b()<12?co.timeNames[6]:co.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":Ffe(e)},o:function(){return(N()>0?"-":"+")+$o(Math.floor(Math.abs(N())/60)*100+Math.abs(N())%60,4)},p:function(){return(N()>0?"-":"+")+$o(Math.floor(Math.abs(N())/60),2)+":"+$o(Math.floor(Math.abs(N())%60),2)},S:function(){return["th","st","nd","rd"][u()%10>3?0:(u()%100-u()%10!=10)*u()%10]},W:function(){return A()},WW:function(){return $o(A())},N:function(){return I()}};return t.replace(kfe,function(M){return M in j?j[M]():M.slice(1,M.length-1)})}var BF={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"},co={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"]},$o=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(r,"0")},UF=function(t){var r=t.y,i=t.m,s=t.d,c=t._,u=t.dayName,h=t.short,m=h===void 0?!1:h,v=new Date,b=new Date;b.setDate(b[c+"Date"]()-1);var x=new Date;x.setDate(x[c+"Date"]()+1);var C=function(){return v[c+"Date"]()},_=function(){return v[c+"Month"]()},N=function(){return v[c+"FullYear"]()},A=function(){return b[c+"Date"]()},I=function(){return b[c+"Month"]()},j=function(){return b[c+"FullYear"]()},M=function(){return x[c+"Date"]()},z=function(){return x[c+"Month"]()},U=function(){return x[c+"FullYear"]()};return N()===r&&_()===i&&C()===s?m?"Tdy":"Today":j()===r&&I()===i&&A()===s?m?"Ysd":"Yesterday":U()===r&&z()===i&&M()===s?m?"Tmw":"Tomorrow":u},Ife=function(t){var r=new Date(t.getFullYear(),t.getMonth(),t.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=new Date(r.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var s=r.getTimezoneOffset()-i.getTimezoneOffset();r.setHours(r.getHours()-s);var c=(r-i)/(864e5*7);return 1+Math.floor(c)},Lfe=function(t){var r=t.getDay();return r===0&&(r=7),r},Ffe=function(t){return(String(t).match(Dfe)||[""]).pop().replace(Pfe,"").replace(/GMT\+0000/g,"UTC")};const zfe={isConnected:!1,isProcessing:!1,currentStep:0,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0]},Bfe=zfe,cU=V2({name:"system",initialState:Bfe,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload,t.payload===!1&&(e.currentStep=0)},setCurrentStep:(e,t)=>{e.currentStep=t.payload},addLogEntry:(e,t)=>{const r={timestamp:Mfe(new Date,"isoDateTime"),message:t.payload};e.log.push(r)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:Ufe,setIsProcessing:wf,setCurrentStep:hx,addLogEntry:qi,setShouldShowLogViewer:jfe,setIsConnected:jF,setSocketId:Eme,setShouldConfirmOnDelete:fU,setOpenAccordions:$fe}=cU.actions,Vfe=cU.reducer,vu=Object.create(null);vu.open="0";vu.close="1";vu.ping="2";vu.pong="3";vu.message="4";vu.upgrade="5";vu.noop="6";const Lx=Object.create(null);Object.keys(vu).forEach(e=>{Lx[vu[e]]=e});const Hfe={type:"error",data:"parser error"},Wfe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gfe=typeof ArrayBuffer=="function",Yfe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,dU=({type:e,data:t},r,i)=>Wfe&&t instanceof Blob?r?i(t):$F(t,i):Gfe&&(t instanceof ArrayBuffer||Yfe(t))?r?i(t):$F(new Blob([t]),i):i(vu[e]+(t||"")),$F=(e,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+i)},r.readAsDataURL(e)},VF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iy=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<VF.length;e++)Iy[VF.charCodeAt(e)]=e;const qfe=e=>{let t=e.length*.75,r=e.length,i,s=0,c,u,h,m;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),b=new Uint8Array(v);for(i=0;i<r;i+=4)c=Iy[e.charCodeAt(i)],u=Iy[e.charCodeAt(i+1)],h=Iy[e.charCodeAt(i+2)],m=Iy[e.charCodeAt(i+3)],b[s++]=c<<2|u>>4,b[s++]=(u&15)<<4|h>>2,b[s++]=(h&3)<<6|m&63;return v},Kfe=typeof ArrayBuffer=="function",pU=(e,t)=>{if(typeof e!="string")return{type:"message",data:hU(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:Xfe(e.substring(1),t)}:Lx[r]?e.length>1?{type:Lx[r],data:e.substring(1)}:{type:Lx[r]}:Hfe},Xfe=(e,t)=>{if(Kfe){const r=qfe(e);return hU(r,t)}else return{base64:!0,data:e}},hU=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},mU=String.fromCharCode(30),Zfe=(e,t)=>{const r=e.length,i=new Array(r);let s=0;e.forEach((c,u)=>{dU(c,!1,h=>{i[u]=h,++s===r&&t(i.join(mU))})})},Qfe=(e,t)=>{const r=e.split(mU),i=[];for(let s=0;s<r.length;s++){const c=pU(r[s],t);if(i.push(c),c.type==="error")break}return i},vU=4;function ua(e){if(e)return Jfe(e)}function Jfe(e){for(var t in ua.prototype)e[t]=ua.prototype[t];return e}ua.prototype.on=ua.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ua.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ua.prototype.off=ua.prototype.removeListener=ua.prototype.removeAllListeners=ua.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,s=0;s<r.length;s++)if(i=r[s],i===t||i.fn===t){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ua.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,s=r.length;i<s;++i)r[i].apply(this,t)}return this};ua.prototype.emitReserved=ua.prototype.emit;ua.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ua.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Lf=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function gU(e,...t){return t.reduce((r,i)=>(e.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}const ede=setTimeout,tde=clearTimeout;function pC(e,t){t.useNativeTimers?(e.setTimeoutFn=ede.bind(Lf),e.clearTimeoutFn=tde.bind(Lf)):(e.setTimeoutFn=setTimeout.bind(Lf),e.clearTimeoutFn=clearTimeout.bind(Lf))}const nde=1.33;function rde(e){return typeof e=="string"?ade(e):Math.ceil((e.byteLength||e.size)*nde)}function ade(e){let t=0,r=0;for(let i=0,s=e.length;i<s;i++)t=e.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}class ide extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class yU extends ua{constructor(t){super(),this.writable=!1,pC(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,r,i){return super.emitReserved("error",new ide(t,r,i)),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 r=pU(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const bU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),JO=64,ode={};let HF=0,mx=0,WF;function GF(e){let t="";do t=bU[e%JO]+t,e=Math.floor(e/JO);while(e>0);return t}function SU(){const e=GF(+new Date);return e!==WF?(HF=0,WF=e):e+"."+GF(HF++)}for(;mx<JO;mx++)ode[bU[mx]]=mx;function xU(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function sde(e){let t={},r=e.split("&");for(let i=0,s=r.length;i<s;i++){let c=r[i].split("=");t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}let wU=!1;try{wU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const lde=wU;function CU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||lde))return new XMLHttpRequest}catch{}if(!t)try{return new Lf[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function ude(){}const cde=function(){return new CU({xdomain:!1}).responseType!=null}();class fde extends yU{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port,this.xs=t.secure!==i}const r=t&&t.forceBase64;this.supportsBinary=cde&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};Qfe(t,this.socket.binaryType).forEach(r),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,Zfe(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=SU()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const s=xU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new du(this.uri(),t)}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(s,c)=>{this.onError("xhr post error",s,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class du extends ua{constructor(t,r){super(),pC(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=gU(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new CU(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=du.requestsCount++,du.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=ude,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete du.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()}}du.requestsCount=0;du.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",YF);else if(typeof addEventListener=="function"){const e="onpagehide"in Lf?"pagehide":"unload";addEventListener(e,YF,!1)}}function YF(){for(let e in du.requests)du.requests.hasOwnProperty(e)&&du.requests[e].abort()}const dde=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),vx=Lf.WebSocket||Lf.MozWebSocket,qF=!0,pde="arraybuffer",KF=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class hde extends yU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,i=KF?{}:gU(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=qF&&!KF?r?new vx(t,r):new vx(t):new vx(t,r,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||pde,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 r=0;r<t.length;r++){const i=t[r],s=r===t.length-1;dU(i,this.supportsBinary,c=>{const u={};try{qF&&this.ws.send(c)}catch{}s&&dde(()=>{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 r=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=SU()),this.supportsBinary||(t.b64=1);const s=xU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(s.length?"?"+s:"")}check(){return!!vx}}const mde={websocket:hde,polling:fde},vde=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,gde=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ek(e){const t=e,r=e.indexOf("["),i=e.indexOf("]");r!=-1&&i!=-1&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let s=vde.exec(e||""),c={},u=14;for(;u--;)c[gde[u]]=s[u]||"";return r!=-1&&i!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=yde(c,c.path),c.queryKey=bde(c,c.query),c}function yde(e,t){const r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&i.splice(0,1),t.substr(t.length-1,1)=="/"&&i.splice(i.length-1,1),i}function bde(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,c){s&&(r[s]=c)}),r}class kf extends ua{constructor(t,r={}){super(),t&&typeof t=="object"&&(r=t,t=null),t?(t=ek(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=ek(r.host).host),pC(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=sde(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 r=Object.assign({},this.opts.query);r.EIO=vU,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new mde[t](i)}open(){let t;if(this.opts.rememberUpgrade&&kf.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",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;kf.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",x=>{if(!i)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;kf.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(b(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){i||(i=!0,b(),r.close(),r=null)}const u=x=>{const C=new Error("probe error: "+x);C.transport=r.name,c(),this.emitReserved("upgradeError",C)};function h(){u("transport closed")}function m(){u("socket closed")}function v(x){r&&x.name!==r.name&&c()}const b=()=>{r.removeListener("open",s),r.removeListener("error",u),r.removeListener("close",h),this.off("close",m),this.off("upgrading",v)};r.once("open",s),r.once("error",u),r.once("close",h),this.once("close",m),this.once("upgrading",v),r.open()}onOpen(){if(this.readyState="open",kf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const r=this.upgrades.length;for(;t<r;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 r=new Error("server error");r.code=t.data,this.onError(r);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 r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=rde(s)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,s){if(typeof r=="function"&&(s=r,r=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const c={type:t,data:r,options:i};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){kf.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(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,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const s=t.length;for(;i<s;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}}kf.protocol=vU;function Sde(e,t="",r){let i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),i=ek(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const c=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+c+":"+i.port+t,i.href=i.protocol+"://"+c+(r&&r.port===i.port?"":":"+i.port),i}const xde=typeof ArrayBuffer=="function",wde=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,_U=Object.prototype.toString,Cde=typeof Blob=="function"||typeof Blob<"u"&&_U.call(Blob)==="[object BlobConstructor]",_de=typeof File=="function"||typeof File<"u"&&_U.call(File)==="[object FileConstructor]";function Z2(e){return xde&&(e instanceof ArrayBuffer||wde(e))||Cde&&e instanceof Blob||_de&&e instanceof File}function Fx(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,i=e.length;r<i;r++)if(Fx(e[r]))return!0;return!1}if(Z2(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Fx(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Fx(e[r]))return!0;return!1}function Ede(e){const t=[],r=e.data,i=e;return i.data=tk(r,t),i.attachments=t.length,{packet:i,buffers:t}}function tk(e,t){if(!e)return e;if(Z2(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=tk(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=tk(e[i],t));return r}return e}function Tde(e,t){return e.data=nk(e.data,t),e.attachments=void 0,e}function nk(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 r=0;r<e.length;r++)e[r]=nk(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=nk(e[r],t));return e}const Nde=5;var Vn;(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"})(Vn||(Vn={}));class Rde{constructor(t){this.replacer=t}encode(t){return(t.type===Vn.EVENT||t.type===Vn.ACK)&&Fx(t)?(t.type=t.type===Vn.EVENT?Vn.BINARY_EVENT:Vn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Vn.BINARY_EVENT||t.type===Vn.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=Ede(t),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}class Q2 extends ua{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t),r.type===Vn.BINARY_EVENT||r.type===Vn.BINARY_ACK?(this.reconstructor=new Ade(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Z2(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(Vn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Vn.BINARY_EVENT||i.type===Vn.BINARY_ACK){const c=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const u=t.substring(c,r);if(u!=Number(u)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(r+1)==="/"){const c=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(c,r)}else i.nsp="/";const s=t.charAt(r+1);if(s!==""&&Number(s)==s){const c=r+1;for(;++r;){const u=t.charAt(r);if(u==null||Number(u)!=u){--r;break}if(r===t.length)break}i.id=Number(t.substring(c,r+1))}if(t.charAt(++r)){const c=this.tryParse(t.substr(r));if(Q2.isPayloadValid(i.type,c))i.data=c;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Vn.CONNECT:return typeof r=="object";case Vn.DISCONNECT:return r===void 0;case Vn.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case Vn.EVENT:case Vn.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case Vn.ACK:case Vn.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Ade{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=Tde(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Ode=Object.freeze(Object.defineProperty({__proto__:null,protocol:Nde,get PacketType(){return Vn},Encoder:Rde,Decoder:Q2},Symbol.toStringTag,{value:"Module"}));function Sl(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const kde=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class EU extends ua{constructor(t,r,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Sl(t,"open",this.onopen.bind(this)),Sl(t,"packet",this.onpacket.bind(this)),Sl(t,"error",this.onerror.bind(this)),Sl(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,...r){if(kde.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');r.unshift(t);const i={type:Vn.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const u=this.ids++,h=r.pop();this._registerAckCallback(u,h),i.id=u}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){const i=this.flags.timeout;if(i===void 0){this.acks[t]=r;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...c)=>{this.io.clearTimeoutFn(s),r.apply(this,[null,...c])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Vn.CONNECT,data:t})}):this.packet({type:Vn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Vn.CONNECT:if(t.data&&t.data.sid){const s=t.data.sid;this.onconnect(s)}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 Vn.EVENT:case Vn.BINARY_EVENT:this.onevent(t);break;case Vn.ACK:case Vn.BINARY_ACK:this.onack(t);break;case Vn.DISCONNECT:this.ondisconnect();break;case Vn.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const r=this;let i=!1;return function(...s){i||(i=!0,r.packet({type:Vn.ACK,id:t,data:s}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.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:Vn.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 r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,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 r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}}function lv(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}lv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};lv.prototype.reset=function(){this.attempts=0};lv.prototype.setMin=function(e){this.ms=e};lv.prototype.setMax=function(e){this.max=e};lv.prototype.setJitter=function(e){this.jitter=e};class rk extends ua{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pC(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new lv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const s=r.parser||Ode;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.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 r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.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 kf(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Sl(r,"open",function(){i.onopen(),t&&t()}),c=Sl(r,"error",u=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",u),t?t(u):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const u=this._timeout;u===0&&s();const h=this.setTimeoutFn(()=>{s(),r.close(),r.emit("error",new Error("timeout"))},u);this.opts.autoUnref&&h.unref(),this.subs.push(function(){clearTimeout(h)})}return this.subs.push(s),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Sl(t,"ping",this.onping.bind(this)),Sl(t,"data",this.ondata.bind(this)),Sl(t,"error",this.onerror.bind(this)),Sl(t,"close",this.onclose.bind(this)),Sl(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,r){let i=this.nsps[t];return i||(i=new EU(this,t,r),this.nsps[t]=i),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[i],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,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),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 r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ry={};function zx(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=Sde(e,t.path||"/socket.io"),i=r.source,s=r.id,c=r.path,u=Ry[s]&&c in Ry[s].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let m;return h?m=new rk(i,t):(Ry[s]||(Ry[s]=new rk(i,t)),m=Ry[s]),r.query&&!t.query&&(t.query=r.queryKey),m.socket(r.path,t)}Object.assign(zx,{Manager:rk,Socket:EU,io:zx,connect:zx});const Dde=()=>{const{hostname:e,port:t}=new URL(window.location.href),r=zx(`http://${e}:9090`);let i=!1;return c=>u=>h=>{const{dispatch:m,getState:v}=c;switch(i||(r.on("connect",()=>{try{m(jF(!0))}catch(b){console.error(b)}}),r.on("disconnect",()=>{try{m(jF(!1)),m(wf(!1)),m(qi("Disconnected from server"))}catch(b){console.error(b)}}),r.on("result",b=>{try{const x=XO(),{type:C,url:_,uuid:N,metadata:A}=b;switch(C){case"generation":{const I=lU(A);m(px({uuid:x,url:_,metadata:I})),m(qi(`Image generated: ${_}`));break}case"esrgan":{const j={...v().gallery.images.find(M=>M.uuid===N).metadata};j.shouldRunESRGAN=!0,j.upscalingLevel=A.upscale[0],j.upscalingStrength=A.upscale[1],m(px({uuid:x,url:_,metadata:j})),m(qi(`ESRGAN upscaled: ${_}`));break}case"gfpgan":{const j={...v().gallery.images.find(M=>M.uuid===N).metadata};j.shouldRunGFPGAN=!0,j.gfpganStrength=A.gfpgan_strength,m(px({uuid:x,url:_,metadata:j})),m(qi(`GFPGAN fixed faces: ${_}`));break}}m(wf(!1))}catch(x){console.error(x)}}),r.on("progress",b=>{try{m(wf(!0)),m(hx(b.step))}catch(x){console.error(x)}}),r.on("intermediateResult",b=>{try{const x=XO(),{url:C,metadata:_}=b;m(Afe({uuid:x,url:C,metadata:_})),m(qi(`Intermediate image generated: ${C}`))}catch(x){console.error(x)}}),r.on("error",b=>{try{m(qi(`Server error: ${b}`)),m(wf(!1)),m(zF())}catch(x){console.error(x)}}),i=!0),h.type){case"socketio/generateImage":{m(wf(!0)),m(hx(-1));const{generationParameters:b,esrganParameters:x,gfpganParameters:C}=_fe(v().sd,v().system);r.emit("generateImage",b,x,C),m(qi(`Image generation requested: ${JSON.stringify({...b,...x,...C})}`));break}case"socketio/runESRGAN":{const b=h.payload;m(wf(!0)),m(hx(-1));const{upscalingLevel:x,upscalingStrength:C}=v().sd,_={upscale:[x,C]};r.emit("runESRGAN",b,_),m(qi(`ESRGAN upscale requested: ${JSON.stringify({file:b.url,..._})}`));break}case"socketio/runGFPGAN":{const b=h.payload;m(wf(!0)),m(hx(-1));const{gfpganStrength:x}=v().sd,C={gfpgan_strength:x};r.emit("runGFPGAN",b,C),m(qi(`GFPGAN fix faces requested: ${JSON.stringify({file:b.url,...C})}`));break}case"socketio/deleteImage":{const b=h.payload,{url:x}=b;r.emit("deleteImage",x,C=>{C.status==="OK"&&(m(Nfe(b)),m(qi(`Image deleted: ${x}`)))});break}case"socketio/requestAllImages":{r.emit("requestAllImages",b=>{m(Rfe(b.data)),m(qi(`Loaded ${b.data.length} images`))});break}case"socketio/cancelProcessing":{r.emit("cancel",b=>{const{intermediateImage:x}=v().gallery;b.status==="OK"&&(m(wf(!1)),x&&(m(px(x)),m(qi(`Intermediate image saved: ${x.url}`)),m(zF())),m(qi("Processing canceled")))});break}case"socketio/uploadInitialImage":{const b=h.payload;r.emit("uploadInitialImage",b,b.name,x=>{x.status==="OK"&&(m(K2(x.data)),m(qi(`Initial image uploaded: ${x.data}`)))});break}case"socketio/uploadMaskImage":{const b=h.payload;r.emit("uploadMaskImage",b,b.name,x=>{x.status==="OK"&&(m(iU(x.data)),m(qi(`Mask image uploaded: ${x.data}`)))});break}}u(h)}},Pde=Ko("socketio/generateImage"),Mde=Ko("socketio/runESRGAN"),Ide=Ko("socketio/runGFPGAN"),Lde=Ko("socketio/deleteImage"),Fde=Ko("socketio/requestAllImages"),zde=Ko("socketio/cancelProcessing"),Bde=Ko("socketio/uploadInitialImage"),Ude=Ko("socketio/uploadMaskImage"),jde=j6({sd:hfe,gallery:Ofe,system:Vfe}),$de={key:"root",storage:nU},Vde=Oce($de,jde),TU=dce({reducer:Vde,middleware:e=>e({serializableCheck:!1}).concat(Dde())});var NU={exports:{}},RU={};/**
* @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=D.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(z){{for(var U=arguments.length,V=new Array(U>1?U-1:0),K=1;K<U;K++)V[K-1]=arguments[K];i("error",z,V)}}function i(z,U,V){{var K=t.ReactDebugCurrentFrame,X=K.getStackAddendum();X!==""&&(U+="%s",V=V.concat([X]));var de=V.map(function(ve){return String(ve)});de.unshift("Warning: "+U),Function.prototype.apply.call(console[z],console,de)}}function s(z,U){return z===U&&(z!==0||1/z===1/U)||z!==z&&U!==U}var c=typeof Object.is=="function"?Object.is:s,u=e.useState,h=e.useEffect,m=e.useLayoutEffect,v=e.useDebugValue,b=!1,x=!1;function C(z,U,V){b||e.startTransition!==void 0&&(b=!0,r("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=U();if(!x){var X=U();c(K,X)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}var de=u({inst:{value:K,getSnapshot:U}}),ve=de[0].inst,se=de[1];return m(function(){ve.value=K,ve.getSnapshot=U,_(ve)&&se({inst:ve})},[z,K,U]),h(function(){_(ve)&&se({inst:ve});var be=function(){_(ve)&&se({inst:ve})};return z(be)},[z]),v(K),K}function _(z){var U=z.getSnapshot,V=z.value;try{var K=U();return!c(V,K)}catch{return!0}}function N(z,U,V){return U()}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I=!A,j=I?N:C,M=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:j;RU.useSyncExternalStore=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=RU})(NU);var AU={exports:{}},OU={};/**
* @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=D.exports,t=NU.exports;function r(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,m=e.useDebugValue;function v(b,x,C,_,N){var A=c(null),I;A.current===null?(I={hasValue:!1,value:null},A.current=I):I=A.current;var j=h(function(){var V=!1,K,X,de=function(Xe){if(!V){V=!0,K=Xe;var ie=_(Xe);if(N!==void 0&&I.hasValue){var ce=I.value;if(N(ce,ie))return X=ce,ce}return X=ie,ie}var Re=K,Ce=X;if(i(Re,Xe))return Ce;var oe=_(Xe);return N!==void 0&&N(Ce,oe)?Ce:(K=Xe,X=oe,oe)},ve=C===void 0?null:C,se=function(){return de(x())},be=ve===null?void 0:function(){return de(ve())};return[se,be]},[x,C,_,N]),M=j[0],z=j[1],U=s(b,M,z);return u(function(){I.hasValue=!0,I.value=U},[U]),m(U),U}OU.useSyncExternalStoreWithSelector=v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=OU})(AU);function Hde(e){e()}let kU=Hde;const Wde=e=>kU=e,Gde=()=>kU,vc=Ue.createContext(null);vc.displayName="ReactRedux";function DU(){const e=D.exports.useContext(vc);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const Yde=()=>{throw new Error("uSES not initialized!")};let PU=Yde;const qde=e=>{PU=e},Kde=(e,t)=>e===t;function Xde(e=vc){const t=e===vc?DU:()=>D.exports.useContext(e);return function(i,s=Kde){{if(!i)throw new Error("You must pass a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:c,subscription:u,getServerState:h}=t(),m=PU(u.addNestedSub,c.getState,h||c.getState,i,s);return D.exports.useDebugValue(m),m}}const Zde=Xde();var Qde={exports:{}},sr={};/**
* @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"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=!1,A=!1,I=!1,j=!1,M=!1,z;z=Symbol.for("react.module.reference");function U(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===r||ye===s||M||ye===i||ye===v||ye===b||j||ye===_||N||A||I||typeof ye=="object"&&ye!==null&&(ye.$$typeof===C||ye.$$typeof===x||ye.$$typeof===c||ye.$$typeof===u||ye.$$typeof===m||ye.$$typeof===z||ye.getModuleId!==void 0))}function V(ye){if(typeof ye=="object"&&ye!==null){var Mt=ye.$$typeof;switch(Mt){case e:var Kt=ye.type;switch(Kt){case r:case s:case i:case v:case b:return Kt;default:var St=Kt&&Kt.$$typeof;switch(St){case h:case u:case m:case C:case x:case c:return St;default:return Mt}}case t:return Mt}}}var K=u,X=c,de=e,ve=m,se=r,be=C,Xe=x,ie=t,ce=s,Re=i,Ce=v,oe=b,Se=!1,Te=!1;function pe(ye){return Se||(Se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(ye){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ie(ye){return V(ye)===u}function Le(ye){return V(ye)===c}function Ye(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function st(ye){return V(ye)===m}function mt(ye){return V(ye)===r}function Gt(ye){return V(ye)===C}function Qe(ye){return V(ye)===x}function vt(ye){return V(ye)===t}function Et(ye){return V(ye)===s}function zt(ye){return V(ye)===i}function We(ye){return V(ye)===v}function Yt(ye){return V(ye)===b}sr.ContextConsumer=K,sr.ContextProvider=X,sr.Element=de,sr.ForwardRef=ve,sr.Fragment=se,sr.Lazy=be,sr.Memo=Xe,sr.Portal=ie,sr.Profiler=ce,sr.StrictMode=Re,sr.Suspense=Ce,sr.SuspenseList=oe,sr.isAsyncMode=pe,sr.isConcurrentMode=we,sr.isContextConsumer=Ie,sr.isContextProvider=Le,sr.isElement=Ye,sr.isForwardRef=st,sr.isFragment=mt,sr.isLazy=Gt,sr.isMemo=Qe,sr.isPortal=vt,sr.isProfiler=Et,sr.isStrictMode=zt,sr.isSuspense=We,sr.isSuspenseList=Yt,sr.isValidElementType=U,sr.typeOf=V})();(function(e){e.exports=sr})(Qde);function Jde(){const e=Gde();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0,c=r={callback:i,next:null,prev:r};return c.prev?c.prev.next=c:t=c,function(){!s||t===null||(s=!1,c.next?c.next.prev=c.prev:r=c.prev,c.prev?c.prev.next=c.next:t=c.next)}}}}const XF={notify(){},get:()=>[]};function epe(e,t){let r,i=XF;function s(x){return m(),i.subscribe(x)}function c(){i.notify()}function u(){b.onStateChange&&b.onStateChange()}function h(){return Boolean(r)}function m(){r||(r=t?t.addNestedSub(u):e.subscribe(u),i=Jde())}function v(){r&&(r(),r=void 0,i.clear(),i=XF)}const b={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:h,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>i};return b}const tpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",npe=tpe?D.exports.useLayoutEffect:D.exports.useEffect;var rpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function ape({store:e,context:t,children:r,serverState:i}){const s=D.exports.useMemo(()=>{const h=epe(e);return{store:e,subscription:h,getServerState:i?()=>i:void 0}},[e,i]),c=D.exports.useMemo(()=>e.getState(),[e]);return npe(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==e.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,c]),k((t||vc).Provider,{value:s,children:r},void 0,!1,{fileName:rpe,lineNumber:39,columnNumber:23},this)}function MU(e=vc){const t=e===vc?DU:()=>D.exports.useContext(e);return function(){const{store:i}=t();return i}}const ipe=MU();function ope(e=vc){const t=e===vc?ipe:MU(e);return function(){return t().dispatch}}const spe=ope();qde(AU.exports.useSyncExternalStoreWithSelector);Wde(xb.exports.unstable_batchedUpdates);function Bx(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bx=function(r){return typeof r}:Bx=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bx(e)}function lpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZF(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function upe(e,t,r){return t&&ZF(e.prototype,t),r&&ZF(e,r),e}function cpe(e,t){return t&&(Bx(t)==="object"||typeof t=="function")?t:Ux(e)}function ak(e){return ak=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ak(e)}function Ux(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fpe(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&&ik(e,t)}function ik(e,t){return ik=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i},ik(e,t)}function jx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var IU=function(e){fpe(t,e);function t(){var r,i;lpe(this,t);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i=cpe(this,(r=ak(t)).call.apply(r,[this].concat(c))),jx(Ux(i),"state",{bootstrapped:!1}),jx(Ux(i),"_unsubscribe",void 0),jx(Ux(i),"handlePersistorState",function(){var h=i.props.persistor,m=h.getState(),v=m.bootstrapped;v&&(i.props.onBeforeLift?Promise.resolve(i.props.onBeforeLift()).finally(function(){return i.setState({bootstrapped:!0})}):i.setState({bootstrapped:!0}),i._unsubscribe&&i._unsubscribe())}),i}return upe(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}(D.exports.PureComponent);jx(IU,"defaultProps",{children:null,loading:null});const ui=spe,mr=Zde;var LU={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},QF=Ue.createContext&&Ue.createContext(LU),$x="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",Bf=globalThis&&globalThis.__assign||function(){return Bf=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Bf.apply(this,arguments)},dpe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r};function FU(e){return e&&e.map(function(t,r){return Ue.createElement(t.tag,Bf({key:r},t.attr),FU(t.child))})}function Zo(e){return function(t){return k(ppe,{...Bf({attr:Bf({},e.attr)},t),children:FU(e.child)},void 0,!1,{fileName:$x,lineNumber:39,columnNumber:12},this)}}function ppe(e){var t=function(r){var i=e.attr,s=e.size,c=e.title,u=dpe(e,["attr","size","title"]),h=s||r.size||"1em",m;return r.className&&(m=r.className),e.className&&(m=(m?m+" ":"")+e.className),k("svg",{...Bf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,u,{className:m,style:Bf(Bf({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),children:[c&&k("title",{children:c},void 0,!1,{fileName:$x,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:$x,lineNumber:55,columnNumber:12},this)};return QF!==void 0?k(QF.Consumer,{children:function(r){return t(r)}},void 0,!1,{fileName:$x,lineNumber:70,columnNumber:38},this):t(LU)}function hpe(e){return Zo({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 mpe(e){return Zo({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 vpe(e){return Zo({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 gpe(e){return Zo({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 ype(e){return Zo({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 bpe(e){return Zo({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 Spe(e){return Zo({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 xpe(e){return Zo({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 wpe(e){return Zo({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 Cpe(e){return Zo({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 zU(e){return Zo({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)}var _pe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDButton.tsx";const tu=e=>{const{label:t,size:r="sm",...i}=e;return k(hu,{size:r,...i,children:t},void 0,!1,{fileName:_pe,lineNumber:15,columnNumber:5},void 0)};var Ra="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetadataViewer.tsx";const Epe=(e,t)=>e.image.uuid===t.image.uuid,Tpe=D.exports.memo(({image:e})=>{const t=ui(),r=Object.keys(FF),i=[];return r.forEach(s=>{const c=e.metadata[s];c!==void 0&&i.push({label:FF[s],key:s,value:c})}),k(On,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[k(tu,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:i.length===0,onClick:()=>t(X2(e.metadata))},void 0,!1,{fileName:Ra,lineNumber:63,columnNumber:7},void 0),k(On,{gap:2,children:[k(Or,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:Ra,lineNumber:71,columnNumber:9},void 0),k(lw,{href:e.url,isExternal:!0,children:k(Or,{children:e.url},void 0,!1,{fileName:Ra,lineNumber:73,columnNumber:11},void 0)},void 0,!1,{fileName:Ra,lineNumber:72,columnNumber:9},void 0)]},void 0,!0,{fileName:Ra,lineNumber:70,columnNumber:7},void 0),i.length?k(yo,{children:[k(iC,{children:i.map((s,c)=>{const{label:u,key:h,value:m}=s;return k(qz,{pb:1,children:k(On,{gap:2,children:[k(Ds,{"aria-label":"Use this parameter",icon:k(xpe,{},void 0,!1,{fileName:Ra,lineNumber:86,columnNumber:29},void 0),size:"xs",onClick:()=>t(sfe({key:h,value:m}))},void 0,!1,{fileName:Ra,lineNumber:84,columnNumber:21},void 0),k(Or,{fontWeight:"semibold",children:[u,":"]},void 0,!0,{fileName:Ra,lineNumber:97,columnNumber:21},void 0),m==null||m===""||m===0?k(Or,{maxHeight:100,fontStyle:"italic",children:"None"},void 0,!1,{fileName:Ra,lineNumber:103,columnNumber:23},void 0):k(Or,{maxHeight:100,overflowY:"scroll",children:m.toString()},void 0,!1,{fileName:Ra,lineNumber:107,columnNumber:23},void 0)]},void 0,!0,{fileName:Ra,lineNumber:83,columnNumber:19},void 0)},c,!1,{fileName:Ra,lineNumber:82,columnNumber:17},void 0)})},void 0,!1,{fileName:Ra,lineNumber:78,columnNumber:11},void 0),k(On,{gap:2,children:[k(Or,{fontWeight:"semibold",children:"Raw:"},void 0,!1,{fileName:Ra,lineNumber:117,columnNumber:13},void 0),k(Or,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)},void 0,!1,{fileName:Ra,lineNumber:118,columnNumber:13},void 0)]},void 0,!0,{fileName:Ra,lineNumber:116,columnNumber:11},void 0)]},void 0,!0):k(sw,{width:"100%",pt:10,children:k(Or,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:Ra,lineNumber:125,columnNumber:11},void 0)},void 0,!1,{fileName:Ra,lineNumber:124,columnNumber:9},void 0)]},void 0,!0,{fileName:Ra,lineNumber:62,columnNumber:5},void 0)},Epe);var fo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const Npe=$r(e=>e.system,e=>e.shouldConfirmOnDelete),BU=({image:e,children:t})=>{const{isOpen:r,onOpen:i,onClose:s}=bO(),c=ui(),u=mr(Npe),h=D.exports.useRef(null),m=x=>{x.stopPropagation(),u?i():v()},v=()=>{c(Lde(e)),s()},b=x=>c(fU(!x.target.checked));return k(yo,{children:[D.exports.cloneElement(t,{onClick:m}),k(rne,{isOpen:r,leastDestructiveRef:h,onClose:s,children:k(mw,{children:k(ane,{children:[k(O2,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:fo,lineNumber:86,columnNumber:13},void 0),k(pw,{children:k(On,{direction:"column",gap:5,children:[k(Or,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:fo,lineNumber:92,columnNumber:17},void 0),k(Vf,{children:k(On,{alignItems:"center",children:[k(Hf,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:fo,lineNumber:97,columnNumber:21},void 0),k(zf,{checked:!u,onChange:b},void 0,!1,{fileName:fo,lineNumber:98,columnNumber:21},void 0)]},void 0,!0,{fileName:fo,lineNumber:96,columnNumber:19},void 0)},void 0,!1,{fileName:fo,lineNumber:95,columnNumber:17},void 0)]},void 0,!0,{fileName:fo,lineNumber:91,columnNumber:15},void 0)},void 0,!1,{fileName:fo,lineNumber:90,columnNumber:13},void 0),k(A2,{children:[k(hu,{ref:h,onClick:s,children:"Cancel"},void 0,!1,{fileName:fo,lineNumber:107,columnNumber:15},void 0),k(hu,{colorScheme:"red",onClick:v,ml:3,children:"Delete"},void 0,!1,{fileName:fo,lineNumber:110,columnNumber:15},void 0)]},void 0,!0,{fileName:fo,lineNumber:106,columnNumber:13},void 0)]},void 0,!0,{fileName:fo,lineNumber:85,columnNumber:11},void 0)},void 0,!1,{fileName:fo,lineNumber:84,columnNumber:9},void 0)},void 0,!1,{fileName:fo,lineNumber:79,columnNumber:7},void 0)]},void 0,!0)};var Zr={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 r,i="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",h="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",v=500,b="__lodash_placeholder__",x=1,C=2,_=4,N=1,A=2,I=1,j=2,M=4,z=8,U=16,V=32,K=64,X=128,de=256,ve=512,se=30,be="...",Xe=800,ie=16,ce=1,Re=2,Ce=3,oe=1/0,Se=9007199254740991,Te=17976931348623157e292,pe=0/0,we=4294967295,Ie=we-1,Le=we>>>1,Ye=[["ary",X],["bind",I],["bindKey",j],["curry",z],["curryRight",U],["flip",ve],["partial",V],["partialRight",K],["rearg",de]],st="[object Arguments]",mt="[object Array]",Gt="[object AsyncFunction]",Qe="[object Boolean]",vt="[object Date]",Et="[object DOMException]",zt="[object Error]",We="[object Function]",Yt="[object GeneratorFunction]",ye="[object Map]",Mt="[object Number]",Kt="[object Null]",St="[object Object]",ar="[object Promise]",ir="[object Proxy]",Bt="[object RegExp]",fn="[object Set]",kn="[object String]",hn="[object Symbol]",Ve="[object Undefined]",Ze="[object WeakMap]",Jt="[object WeakSet]",Tt="[object ArrayBuffer]",ke="[object DataView]",jt="[object Float32Array]",xn="[object Float64Array]",je="[object Int8Array]",rt="[object Int16Array]",xt="[object Int32Array]",dn="[object Uint8Array]",Xt="[object Uint8ClampedArray]",wn="[object Uint16Array]",Dn="[object Uint32Array]",Nr=/\b__p \+= '';/g,Tn=/\b(__p \+=) '' \+/g,ca=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,Cn=/[&<>"']/g,fa=RegExp(Fn.source),gr=RegExp(Cn.source),xo=/<%-([\s\S]+?)%>/g,Qo=/<%([\s\S]+?)%>/g,Jo=/<%=([\s\S]+?)%>/g,wo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Co=/^\w*$/,cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oa=/[\\^$.*+?()[\]{}|]/g,Di=RegExp(Oa.source),ka=/^\s+/,q=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,bt=/,? & /,nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gn=/[()=,{}\[\]\/\s]/,tt=/\\(\\)?/g,$t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zn=/\w*$/,In=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Lr=/^\[object .+?Constructor\]$/,ci=/^0o[0-7]+$/i,_o=/^(?:0|[1-9]\d*)$/,da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qi=/($^)/,yu=/['\n\r\u2028\u2029\\]/g,fi="\\ud800-\\udfff",zs="\\u0300-\\u036f",Pi="\\ufe20-\\ufe2f",Zt="\\u20d0-\\u20ff",Mi=zs+Pi+Zt,pa="\\u2700-\\u27bf",Eo="a-z\\xdf-\\xf6\\xf8-\\xff",es="\\xac\\xb1\\xd7\\xf7",To="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ts="\\u2000-\\u206f",ns=" \\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",No="A-Z\\xc0-\\xd6\\xd8-\\xde",Ro="\\ufe0e\\ufe0f",rs=es+To+ts+ns,Bs="['\u2019]",Us="["+fi+"]",di="["+rs+"]",Dr="["+Mi+"]",Da="\\d+",ha="["+pa+"]",Pa="["+Eo+"]",as="[^"+fi+rs+Da+pa+Eo+No+"]",Ao="\\ud83c[\\udffb-\\udfff]",is="(?:"+Dr+"|"+Ao+")",Nl="[^"+fi+"]",ma="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",Ma="["+No+"]",pi="\\u200d",js="(?:"+Pa+"|"+as+")",on="(?:"+Ma+"|"+as+")",hi="(?:"+Bs+"(?:d|ll|m|re|s|t|ve))?",ko="(?:"+Bs+"(?:D|LL|M|RE|S|T|VE))?",It=is+"?",$s="["+Ro+"]?",yr="(?:"+pi+"(?:"+[Nl,ma,Oo].join("|")+")"+$s+It+")*",Ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ja="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ji=$s+It+yr,Cr="(?:"+[ha,ma,Oo].join("|")+")"+Ji,er="(?:"+[Nl+Dr+"?",Dr,ma,Oo,Us].join("|")+")",Do=RegExp(Bs,"g"),Vr=RegExp(Dr,"g"),ur=RegExp(Ao+"(?="+Ao+")|"+er+Ji,"g"),ea=RegExp([Ma+"?"+Pa+"+"+hi+"(?="+[di,Ma,"$"].join("|")+")",on+"+"+ko+"(?="+[di,Ma+js,"$"].join("|")+")",Ma+"?"+js+"+"+hi,Ma+"+"+ko,ja,Ii,Da,Cr].join("|"),"g"),bu=RegExp("["+pi+fi+Mi+Ro+"]"),eo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mi=["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"],Vs=-1,pn={};pn[jt]=pn[xn]=pn[je]=pn[rt]=pn[xt]=pn[dn]=pn[Xt]=pn[wn]=pn[Dn]=!0,pn[st]=pn[mt]=pn[Tt]=pn[Qe]=pn[ke]=pn[vt]=pn[zt]=pn[We]=pn[ye]=pn[Mt]=pn[St]=pn[Bt]=pn[fn]=pn[kn]=pn[Ze]=!1;var Pn={};Pn[st]=Pn[mt]=Pn[Tt]=Pn[ke]=Pn[Qe]=Pn[vt]=Pn[jt]=Pn[xn]=Pn[je]=Pn[rt]=Pn[xt]=Pn[ye]=Pn[Mt]=Pn[St]=Pn[Bt]=Pn[fn]=Pn[kn]=Pn[hn]=Pn[dn]=Pn[Xt]=Pn[wn]=Pn[Dn]=!0,Pn[zt]=Pn[We]=Pn[Ze]=!1;var Rl={\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"},Ia={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Q={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,at=parseInt,sn=typeof lc=="object"&&lc&&lc.Object===Object&&lc,Mn=typeof self=="object"&&self&&self.Object===Object&&self,Vt=sn||Mn||Function("return this")(),S=t&&!t.nodeType&&t,R=S&&!0&&e&&!e.nodeType&&e,$=R&&R.exports===S,G=$&&sn.process,te=function(){try{var re=R&&R.require&&R.require("util").types;return re||G&&G.binding&&G.binding("util")}catch{}}(),Fe=te&&te.isArrayBuffer,xe=te&&te.isDate,$e=te&&te.isMap,it=te&&te.isRegExp,gt=te&&te.isSet,Nt=te&&te.isTypedArray;function pt(re,Ne,ge){switch(ge.length){case 0:return re.call(Ne);case 1:return re.call(Ne,ge[0]);case 2:return re.call(Ne,ge[0],ge[1]);case 3:return re.call(Ne,ge[0],ge[1],ge[2])}return re.apply(Ne,ge)}function Lt(re,Ne,ge,ft){for(var en=-1,Hn=re==null?0:re.length;++en<Hn;){var Hr=re[en];Ne(ft,Hr,ge(Hr),re)}return ft}function wt(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft&&Ne(re[ge],ge,re)!==!1;);return re}function Dt(re,Ne){for(var ge=re==null?0:re.length;ge--&&Ne(re[ge],ge,re)!==!1;);return re}function vi(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft;)if(!Ne(re[ge],ge,re))return!1;return!0}function va(re,Ne){for(var ge=-1,ft=re==null?0:re.length,en=0,Hn=[];++ge<ft;){var Hr=re[ge];Ne(Hr,ge,re)&&(Hn[en++]=Hr)}return Hn}function Po(re,Ne){var ge=re==null?0:re.length;return!!ge&&xu(re,Ne,0)>-1}function Su(re,Ne,ge){for(var ft=-1,en=re==null?0:re.length;++ft<en;)if(ge(Ne,re[ft]))return!0;return!1}function Nn(re,Ne){for(var ge=-1,ft=re==null?0:re.length,en=Array(ft);++ge<ft;)en[ge]=Ne(re[ge],ge,re);return en}function gi(re,Ne){for(var ge=-1,ft=Ne.length,en=re.length;++ge<ft;)re[en+ge]=Ne[ge];return re}function os(re,Ne,ge,ft){var en=-1,Hn=re==null?0:re.length;for(ft&&Hn&&(ge=re[++en]);++en<Hn;)ge=Ne(ge,re[en],en,re);return ge}function Zf(re,Ne,ge,ft){var en=re==null?0:re.length;for(ft&&en&&(ge=re[--en]);en--;)ge=Ne(ge,re[en],en,re);return ge}function uv(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft;)if(Ne(re[ge],ge,re))return!0;return!1}var hC=Jf("length");function Ub(re){return re.split("")}function cv(re){return re.match(nn)||[]}function fv(re,Ne,ge){var ft;return ge(re,function(en,Hn,Hr){if(Ne(en,Hn,Hr))return ft=Hn,!1}),ft}function Qf(re,Ne,ge,ft){for(var en=re.length,Hn=ge+(ft?1:-1);ft?Hn--:++Hn<en;)if(Ne(re[Hn],Hn,re))return Hn;return-1}function xu(re,Ne,ge){return Ne===Ne?hv(re,Ne,ge):Qf(re,ss,ge)}function mC(re,Ne,ge,ft){for(var en=ge-1,Hn=re.length;++en<Hn;)if(ft(re[en],Ne))return en;return-1}function ss(re){return re!==re}function jb(re,Ne){var ge=re==null?0:re.length;return ge?yc(re,Ne)/ge:pe}function Jf(re){return function(Ne){return Ne==null?r:Ne[re]}}function ed(re){return function(Ne){return re==null?r:re[Ne]}}function Xp(re,Ne,ge,ft,en){return en(re,function(Hn,Hr,qn){ge=ft?(ft=!1,Hn):Ne(ge,Hn,Hr,qn)}),ge}function vC(re,Ne){var ge=re.length;for(re.sort(Ne);ge--;)re[ge]=re[ge].value;return re}function yc(re,Ne){for(var ge,ft=-1,en=re.length;++ft<en;){var Hn=Ne(re[ft]);Hn!==r&&(ge=ge===r?Hn:ge+Hn)}return ge}function Zp(re,Ne){for(var ge=-1,ft=Array(re);++ge<re;)ft[ge]=Ne(ge);return ft}function yi(re,Ne){return Nn(Ne,function(ge){return[ge,re[ge]]})}function ls(re){return re&&re.slice(0,Gb(re)+1).replace(ka,"")}function Bn(re){return function(Ne){return re(Ne)}}function Mo(re,Ne){return Nn(Ne,function(ge){return re[ge]})}function wu(re,Ne){return re.has(Ne)}function td(re,Ne){for(var ge=-1,ft=re.length;++ge<ft&&xu(Ne,re[ge],0)>-1;);return ge}function $b(re,Ne){for(var ge=re.length;ge--&&xu(Ne,re[ge],0)>-1;);return ge}function nd(re,Ne){for(var ge=re.length,ft=0;ge--;)re[ge]===Ne&&++ft;return ft}var gC=ed(Rl),yC=ed(Ia);function dv(re){return"\\"+Q[re]}function bC(re,Ne){return re==null?r:re[Ne]}function bc(re){return bu.test(re)}function SC(re){return eo.test(re)}function Vb(re){for(var Ne,ge=[];!(Ne=re.next()).done;)ge.push(Ne.value);return ge}function pv(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft,en){ge[++Ne]=[en,ft]}),ge}function Hb(re,Ne){return function(ge){return re(Ne(ge))}}function Al(re,Ne){for(var ge=-1,ft=re.length,en=0,Hn=[];++ge<ft;){var Hr=re[ge];(Hr===Ne||Hr===b)&&(re[ge]=b,Hn[en++]=ge)}return Hn}function rd(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft){ge[++Ne]=ft}),ge}function Sc(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft){ge[++Ne]=[ft,ft]}),ge}function hv(re,Ne,ge){for(var ft=ge-1,en=re.length;++ft<en;)if(re[ft]===Ne)return ft;return-1}function Wb(re,Ne,ge){for(var ft=ge+1;ft--;)if(re[ft]===Ne)return ft;return ft}function Cu(re){return bc(re)?wC(re):hC(re)}function Io(re){return bc(re)?CC(re):Ub(re)}function Gb(re){for(var Ne=re.length;Ne--&&q.test(re.charAt(Ne)););return Ne}var xC=ed(W);function wC(re){for(var Ne=ur.lastIndex=0;ur.test(re);)++Ne;return Ne}function CC(re){return re.match(ur)||[]}function _C(re){return re.match(ea)||[]}var EC=function re(Ne){Ne=Ne==null?Vt:xc.defaults(Vt.Object(),Ne,xc.pick(Vt,mi));var ge=Ne.Array,ft=Ne.Date,en=Ne.Error,Hn=Ne.Function,Hr=Ne.Math,qn=Ne.Object,Hs=Ne.RegExp,Qp=Ne.String,Li=Ne.TypeError,Ws=ge.prototype,TC=Hn.prototype,wc=qn.prototype,Jp=Ne["__core-js_shared__"],eh=TC.toString,Kn=wc.hasOwnProperty,Yb=0,qb=function(){var l=/[^.]+$/.exec(Jp&&Jp.keys&&Jp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),ad=wc.toString,$a=eh.call(qn),Kb=Vt._,NC=Hs("^"+eh.call(Kn).replace(Oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),th=$?Ne.Buffer:r,Ol=Ne.Symbol,nh=Ne.Uint8Array,Xb=th?th.allocUnsafe:r,id=Hb(qn.getPrototypeOf,qn),rh=qn.create,Cc=wc.propertyIsEnumerable,ah=Ws.splice,_c=Ol?Ol.isConcatSpreadable:r,od=Ol?Ol.iterator:r,_u=Ol?Ol.toStringTag:r,ih=function(){try{var l=Il(qn,"defineProperty");return l({},"",{}),l}catch{}}(),mv=Ne.clearTimeout!==Vt.clearTimeout&&Ne.clearTimeout,vv=ft&&ft.now!==Vt.Date.now&&ft.now,Ec=Ne.setTimeout!==Vt.setTimeout&&Ne.setTimeout,Gs=Hr.ceil,sd=Hr.floor,gv=qn.getOwnPropertySymbols,Zb=th?th.isBuffer:r,Qb=Ne.isFinite,Jb=Ws.join,e0=Hb(qn.keys,qn),Fr=Hr.max,ta=Hr.min,RC=ft.now,t0=Ne.parseInt,n0=Hr.random,AC=Ws.reverse,yv=Il(Ne,"DataView"),Ys=Il(Ne,"Map"),ld=Il(Ne,"Promise"),us=Il(Ne,"Set"),Tc=Il(Ne,"WeakMap"),Nc=Il(qn,"create"),Rc=Tc&&new Tc,Ac={},Oc=Fu(yv),oh=Fu(Ys),sh=Fu(ld),bv=Fu(us),OC=Fu(Tc),kc=Ol?Ol.prototype:r,ud=kc?kc.valueOf:r,r0=kc?kc.toString:r;function L(l){if(Er(l)&&!rn(l)&&!(l instanceof _n)){if(l instanceof to)return l;if(Kn.call(l,"__wrapped__"))return M0(l)}return new to(l)}var kl=function(){function l(){}return function(d){if(!Sr(d))return{};if(rh)return rh(d);l.prototype=d;var g=new l;return l.prototype=r,g}}();function qs(){}function to(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}L.templateSettings={escape:xo,evaluate:Qo,interpolate:Jo,variable:"",imports:{_:L}},L.prototype=qs.prototype,L.prototype.constructor=L,to.prototype=kl(qs.prototype),to.prototype.constructor=to;function _n(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function kt(){var l=new _n(this.__wrapped__);return l.__actions__=ra(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=ra(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=ra(this.__views__),l}function Dc(){if(this.__filtered__){var l=new _n(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function zr(){var l=this.__wrapped__.value(),d=this.__dir__,g=rn(l),E=d<0,P=g?l.length:0,B=Th(0,P,this.__views__),Y=B.start,Z=B.end,ae=Z-Y,De=E?Z:Y-1,Ae=this.__iteratees__,Pe=Ae.length,Ke=0,dt=ta(ae,this.__takeCount__);if(!g||!E&&P==ae&&dt==ae)return mh(l,this.__actions__);var Ot=[];e:for(;ae--&&Ke<dt;){De+=d;for(var cn=-1,Pt=l[De];++cn<Pe;){var vn=Ae[cn],En=vn.iteratee,za=vn.type,dr=En(Pt);if(za==Re)Pt=dr;else if(!dr){if(za==ce)continue e;break e}}Ot[Ke++]=Pt}return Ot}_n.prototype=kl(qs.prototype),_n.prototype.constructor=_n;function ln(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Eu(){this.__data__=Nc?Nc(null):{},this.size=0}function cd(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function Sv(l){var d=this.__data__;if(Nc){var g=d[l];return g===m?r:g}return Kn.call(d,l)?d[l]:r}function Ln(l){var d=this.__data__;return Nc?d[l]!==r:Kn.call(d,l)}function Ks(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Nc&&d===r?m:d,this}ln.prototype.clear=Eu,ln.prototype.delete=cd,ln.prototype.get=Sv,ln.prototype.has=Ln,ln.prototype.set=Ks;function La(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Tu(){this.__data__=[],this.size=0}function Lo(l){var d=this.__data__,g=fh(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():ah.call(d,g,1),--this.size,!0}function Xs(l){var d=this.__data__,g=fh(d,l);return g<0?r:d[g][1]}function Nu(l){return fh(this.__data__,l)>-1}function lh(l,d){var g=this.__data__,E=fh(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}La.prototype.clear=Tu,La.prototype.delete=Lo,La.prototype.get=Xs,La.prototype.has=Nu,La.prototype.set=lh;function Zs(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function kC(){this.size=0,this.__data__={hash:new ln,map:new(Ys||La),string:new ln}}function fd(l){var d=_h(this,l).delete(l);return this.size-=d?1:0,d}function Va(l){return _h(this,l).get(l)}function xv(l){return _h(this,l).has(l)}function a0(l,d){var g=_h(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}Zs.prototype.clear=kC,Zs.prototype.delete=fd,Zs.prototype.get=Va,Zs.prototype.has=xv,Zs.prototype.set=a0;function Qs(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new Zs;++d<g;)this.add(l[d])}function Ru(l){return this.__data__.set(l,m),this}function wv(l){return this.__data__.has(l)}Qs.prototype.add=Qs.prototype.push=Ru,Qs.prototype.has=wv;function Wr(l){var d=this.__data__=new La(l);this.size=d.size}function uh(){this.__data__=new La,this.size=0}function Cv(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function _v(l){return this.__data__.get(l)}function dd(l){return this.__data__.has(l)}function Pc(l,d){var g=this.__data__;if(g instanceof La){var E=g.__data__;if(!Ys||E.length<s-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new Zs(E)}return g.set(l,d),this.size=g.size,this}Wr.prototype.clear=uh,Wr.prototype.delete=Cv,Wr.prototype.get=_v,Wr.prototype.has=dd,Wr.prototype.set=Pc;function cs(l,d){var g=rn(l),E=!g&&Bu(l),P=!g&&!E&&Ss(l),B=!g&&!E&&!P&&Bl(l),Y=g||E||P||B,Z=Y?Zp(l.length,Qp):[],ae=Z.length;for(var De in l)(d||Kn.call(l,De))&&!(Y&&(De=="length"||P&&(De=="offset"||De=="parent")||B&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||gs(De,ae)))&&Z.push(De);return Z}function i0(l){var d=l.length;return d?l[no(0,d-1)]:r}function Au(l,d){return Rh(ra(l),Dl(d,0,l.length))}function o0(l){return Rh(ra(l))}function ch(l,d,g){(g!==r&&!zo(l[d],g)||g===r&&!(d in l))&&fs(l,d,g)}function pd(l,d,g){var E=l[d];(!(Kn.call(l,d)&&zo(E,g))||g===r&&!(d in l))&&fs(l,d,g)}function fh(l,d){for(var g=l.length;g--;)if(zo(l[g][0],d))return g;return-1}function s0(l,d,g,E){return Pl(l,function(P,B,Y){d(E,P,g(P),Y)}),E}function Ev(l,d){return l&&Fa(d,oa(d),l)}function l0(l,d){return l&&Fa(d,wi(d),l)}function fs(l,d,g){d=="__proto__"&&ih?ih(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function Tv(l,d){for(var g=-1,E=d.length,P=ge(E),B=l==null;++g<E;)P[g]=B?r:bg(l,d[g]);return P}function Dl(l,d,g){return l===l&&(g!==r&&(l=l<=g?l:g),d!==r&&(l=l>=d?l:d)),l}function Fi(l,d,g,E,P,B){var Y,Z=d&x,ae=d&C,De=d&_;if(g&&(Y=P?g(l,E,P,B):g(l)),Y!==r)return Y;if(!Sr(l))return l;var Ae=rn(l);if(Ae){if(Y=aa(l),!Z)return ra(l,Y)}else{var Pe=br(l),Ke=Pe==We||Pe==Yt;if(Ss(l))return yh(l,Z);if(Pe==St||Pe==st||Ke&&!P){if(Y=ae||Ke?{}:R0(l),!Z)return ae?$C(l,l0(Y,l)):Ui(l,Ev(Y,l))}else{if(!Pn[Pe])return P?l:{};Y=WC(l,Pe,Z)}}B||(B=new Wr);var dt=B.get(l);if(dt)return dt;B.set(l,Y),mg(l)?l.forEach(function(Pt){Y.add(Fi(Pt,d,g,Pt,l,B))}):hg(l)&&l.forEach(function(Pt,vn){Y.set(vn,Fi(Pt,d,g,vn,l,B))});var Ot=De?ae?Lu:Nd:ae?wi:oa,cn=Ae?r:Ot(l);return wt(cn||l,function(Pt,vn){cn&&(vn=Pt,Pt=l[vn]),pd(Y,vn,Fi(Pt,d,g,vn,l,B))}),Y}function DC(l){var d=oa(l);return function(g){return u0(g,l,d)}}function u0(l,d,g){var E=g.length;if(l==null)return!E;for(l=qn(l);E--;){var P=g[E],B=d[P],Y=l[P];if(Y===r&&!(P in l)||!B(Y))return!1}return!0}function c0(l,d,g){if(typeof l!="function")throw new Li(u);return rl(function(){l.apply(r,g)},d)}function Rr(l,d,g,E){var P=-1,B=Po,Y=!0,Z=l.length,ae=[],De=d.length;if(!Z)return ae;g&&(d=Nn(d,Bn(g))),E?(B=Su,Y=!1):d.length>=s&&(B=wu,Y=!1,d=new Qs(d));e:for(;++P<Z;){var Ae=l[P],Pe=g==null?Ae:g(Ae);if(Ae=E||Ae!==0?Ae:0,Y&&Pe===Pe){for(var Ke=De;Ke--;)if(d[Ke]===Pe)continue e;ae.push(Ae)}else B(d,Pe,E)||ae.push(Ae)}return ae}var Pl=wd(fr),hd=wd(nt,!0);function Nv(l,d){var g=!0;return Pl(l,function(E,P,B){return g=!!d(E,P,B),g}),g}function ds(l,d,g){for(var E=-1,P=l.length;++E<P;){var B=l[E],Y=d(B);if(Y!=null&&(Z===r?Y===Y&&!bn(Y):g(Y,Z)))var Z=Y,ae=B}return ae}function PC(l,d,g,E){var P=l.length;for(g=tn(g),g<0&&(g=-g>P?0:P+g),E=E===r||E>P?P:tn(E),E<0&&(E+=P),E=g>E?0:ju(E);g<E;)l[g++]=d;return l}function dh(l,d){var g=[];return Pl(l,function(E,P,B){d(E,P,B)&&g.push(E)}),g}function ga(l,d,g,E,P){var B=-1,Y=l.length;for(g||(g=Yv),P||(P=[]);++B<Y;){var Z=l[B];d>0&&g(Z)?d>1?ga(Z,d-1,g,E,P):gi(P,Z):E||(P[P.length]=Z)}return P}var Rv=jc(),Ou=jc(!0);function fr(l,d){return l&&Rv(l,d,oa)}function nt(l,d){return l&&Ou(l,d,oa)}function zi(l,d){return va(d,function(g){return xs(l[g])})}function ya(l,d){d=hs(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[Si(d[g++])];return g&&g==E?l:r}function f0(l,d,g){var E=d(l);return rn(l)?E:gi(E,g(l))}function Ha(l){return l==null?l===r?Ve:Kt:_u&&_u in qn(l)?N0(l):Zv(l)}function Av(l,d){return l>d}function MC(l,d){return l!=null&&Kn.call(l,d)}function IC(l,d){return l!=null&&d in qn(l)}function na(l,d,g){return l>=ta(d,g)&&l<Fr(d,g)}function Ov(l,d,g){for(var E=g?Su:Po,P=l[0].length,B=l.length,Y=B,Z=ge(B),ae=1/0,De=[];Y--;){var Ae=l[Y];Y&&d&&(Ae=Nn(Ae,Bn(d))),ae=ta(Ae.length,ae),Z[Y]=!g&&(d||P>=120&&Ae.length>=120)?new Qs(Y&&Ae):r}Ae=l[0];var Pe=-1,Ke=Z[0];e:for(;++Pe<P&&De.length<ae;){var dt=Ae[Pe],Ot=d?d(dt):dt;if(dt=g||dt!==0?dt:0,!(Ke?wu(Ke,Ot):E(De,Ot,g))){for(Y=B;--Y;){var cn=Z[Y];if(!(cn?wu(cn,Ot):E(l[Y],Ot,g)))continue e}Ke&&Ke.push(Ot),De.push(dt)}}return De}function LC(l,d,g,E){return fr(l,function(P,B,Y){d(E,g(P),B,Y)}),E}function md(l,d,g){d=hs(d,l),l=nl(l,d);var E=l==null?l:l[Si(ao(d))];return E==null?r:pt(E,l,g)}function kv(l){return Er(l)&&Ha(l)==st}function vd(l){return Er(l)&&Ha(l)==Tt}function Mc(l){return Er(l)&&Ha(l)==vt}function gd(l,d,g,E,P){return l===d?!0:l==null||d==null||!Er(l)&&!Er(d)?l!==l&&d!==d:FC(l,d,g,E,gd,P)}function FC(l,d,g,E,P,B){var Y=rn(l),Z=rn(d),ae=Y?mt:br(l),De=Z?mt:br(d);ae=ae==st?St:ae,De=De==st?St:De;var Ae=ae==St,Pe=De==St,Ke=ae==De;if(Ke&&Ss(l)){if(!Ss(d))return!1;Y=!0,Ae=!1}if(Ke&&!Ae)return B||(B=new Wr),Y||Bl(l)?Td(l,d,g,E,P,B):T0(l,d,ae,g,E,P,B);if(!(g&N)){var dt=Ae&&Kn.call(l,"__wrapped__"),Ot=Pe&&Kn.call(d,"__wrapped__");if(dt||Ot){var cn=dt?l.value():l,Pt=Ot?d.value():d;return B||(B=new Wr),P(cn,Pt,g,E,B)}}return Ke?(B||(B=new Wr),eD(l,d,g,E,P,B)):!1}function zC(l){return Er(l)&&br(l)==ye}function Dv(l,d,g,E){var P=g.length,B=P,Y=!E;if(l==null)return!B;for(l=qn(l);P--;){var Z=g[P];if(Y&&Z[2]?Z[1]!==l[Z[0]]:!(Z[0]in l))return!1}for(;++P<B;){Z=g[P];var ae=Z[0],De=l[ae],Ae=Z[1];if(Y&&Z[2]){if(De===r&&!(ae in l))return!1}else{var Pe=new Wr;if(E)var Ke=E(De,Ae,ae,l,d,Pe);if(!(Ke===r?gd(Ae,De,N|A,E,Pe):Ke))return!1}}return!0}function d0(l){if(!Sr(l)||Kv(l))return!1;var d=xs(l)?NC:Lr;return d.test(Fu(l))}function BC(l){return Er(l)&&Ha(l)==Bt}function p0(l){return Er(l)&&br(l)==fn}function h0(l){return Er(l)&&Hd(l.length)&&!!pn[Ha(l)]}function m0(l){return typeof l=="function"?l:l==null?Ci:typeof l=="object"?rn(l)?Iv(l[0],l[1]):g0(l):Jd(l)}function Pv(l){if(!Wc(l))return e0(l);var d=[];for(var g in qn(l))Kn.call(l,g)&&g!="constructor"&&d.push(g);return d}function UC(l){if(!Sr(l))return XC(l);var d=Wc(l),g=[];for(var E in l)E=="constructor"&&(d||!Kn.call(l,E))||g.push(E);return g}function Mv(l,d){return l<d}function v0(l,d){var g=-1,E=Yr(l)?ge(l.length):[];return Pl(l,function(P,B,Y){E[++g]=d(P,B,Y)}),E}function g0(l){var d=Eh(l);return d.length==1&&d[0][2]?Xv(d[0][0],d[0][1]):function(g){return g===l||Dv(g,l,d)}}function Iv(l,d){return Nh(l)&&A0(d)?Xv(Si(l),d):function(g){var E=bg(g,l);return E===r&&E===d?ef(g,l):gd(d,E,N|A)}}function ph(l,d,g,E,P){l!==d&&Rv(d,function(B,Y){if(P||(P=new Wr),Sr(B))y0(l,d,Y,g,ph,E,P);else{var Z=E?E(ys(l,Y),B,Y+"",l,d,P):r;Z===r&&(Z=B),ch(l,Y,Z)}},wi)}function y0(l,d,g,E,P,B,Y){var Z=ys(l,g),ae=ys(d,g),De=Y.get(ae);if(De){ch(l,g,De);return}var Ae=B?B(Z,ae,g+"",l,d,Y):r,Pe=Ae===r;if(Pe){var Ke=rn(ae),dt=!Ke&&Ss(ae),Ot=!Ke&&!dt&&Bl(ae);Ae=ae,Ke||dt||Ot?rn(Z)?Ae=Z:_r(Z)?Ae=ra(Z):dt?(Pe=!1,Ae=yh(ae,!0)):Ot?(Pe=!1,Ae=bh(ae,!0)):Ae=[]:Uu(ae)||Bu(ae)?(Ae=Z,Bu(Z)?Ae=gg(Z):(!Sr(Z)||xs(Z))&&(Ae=R0(ae))):Pe=!1}Pe&&(Y.set(ae,Ae),P(Ae,ae,E,B,Y),Y.delete(ae)),ch(l,g,Ae)}function b0(l,d){var g=l.length;if(!!g)return d+=d<0?g:0,gs(d,g)?l[d]:r}function S0(l,d,g){d.length?d=Nn(d,function(B){return rn(B)?function(Y){return ya(Y,B.length===1?B[0]:B)}:B}):d=[Ci];var E=-1;d=Nn(d,Bn(At()));var P=v0(l,function(B,Y,Z){var ae=Nn(d,function(De){return De(B)});return{criteria:ae,index:++E,value:B}});return vC(P,function(B,Y){return w0(B,Y,g)})}function Lv(l,d){return Rt(l,d,function(g,E){return ef(l,E)})}function Rt(l,d,g){for(var E=-1,P=d.length,B={};++E<P;){var Y=d[E],Z=ya(l,Y);g(Z,Y)&&Me(B,hs(Y,l),Z)}return B}function yn(l){return function(d){return ya(d,l)}}function Un(l,d,g,E){var P=E?mC:xu,B=-1,Y=d.length,Z=l;for(l===d&&(d=ra(d)),g&&(Z=Nn(l,Bn(g)));++B<Y;)for(var ae=0,De=d[B],Ae=g?g(De):De;(ae=P(Z,Ae,ae,E))>-1;)Z!==l&&ah.call(Z,ae,1),ah.call(l,ae,1);return l}function Pr(l,d){for(var g=l?d.length:0,E=g-1;g--;){var P=d[g];if(g==E||P!==B){var B=P;gs(P)?ah.call(l,P,1):yd(l,P)}}return l}function no(l,d){return l+sd(n0()*(d-l+1))}function x0(l,d,g,E){for(var P=-1,B=Fr(Gs((d-l)/(g||1)),0),Y=ge(B);B--;)Y[E?B:++P]=l,l+=g;return Y}function Fv(l,d){var g="";if(!l||d<1||d>Se)return g;do d%2&&(g+=l),d=sd(d/2),d&&(l+=l);while(d);return g}function mn(l,d){return bs(Od(l,d,Ci),l+"")}function jC(l){return i0(tf(l))}function zv(l,d){var g=tf(l);return Rh(g,Dl(d,0,g.length))}function Me(l,d,g,E){if(!Sr(l))return l;d=hs(d,l);for(var P=-1,B=d.length,Y=B-1,Z=l;Z!=null&&++P<B;){var ae=Si(d[P]),De=g;if(ae==="__proto__"||ae==="constructor"||ae==="prototype")return l;if(P!=Y){var Ae=Z[ae];De=E?E(Ae,ae,Z):r,De===r&&(De=Sr(Ae)?Ae:gs(d[P+1])?[]:{})}pd(Z,ae,De),Z=Z[ae]}return l}var Gr=Rc?function(l,d){return Rc.set(l,d),l}:Ci,Ut=ih?function(l,d){return ih(l,"toString",{configurable:!0,enumerable:!1,value:Og(d),writable:!0})}:Ci;function Ic(l){return Rh(tf(l))}function Br(l,d,g){var E=-1,P=l.length;d<0&&(d=-d>P?0:P+d),g=g>P?P:g,g<0&&(g+=P),P=d>g?0:g-d>>>0,d>>>=0;for(var B=ge(P);++E<P;)B[E]=l[E+d];return B}function ku(l,d){var g;return Pl(l,function(E,P,B){return g=d(E,P,B),!g}),!!g}function Bi(l,d,g){var E=0,P=l==null?E:l.length;if(typeof d=="number"&&d===d&&P<=Le){for(;E<P;){var B=E+P>>>1,Y=l[B];Y!==null&&!bn(Y)&&(g?Y<=d:Y<d)?E=B+1:P=B}return P}return Du(l,d,Ci,g)}function Du(l,d,g,E){var P=0,B=l==null?0:l.length;if(B===0)return 0;d=g(d);for(var Y=d!==d,Z=d===null,ae=bn(d),De=d===r;P<B;){var Ae=sd((P+B)/2),Pe=g(l[Ae]),Ke=Pe!==r,dt=Pe===null,Ot=Pe===Pe,cn=bn(Pe);if(Y)var Pt=E||Ot;else De?Pt=Ot&&(E||Ke):Z?Pt=Ot&&Ke&&(E||!dt):ae?Pt=Ot&&Ke&&!dt&&(E||!cn):dt||cn?Pt=!1:Pt=E?Pe<=d:Pe<d;Pt?P=Ae+1:B=Ae}return ta(B,Ie)}function Pu(l,d){for(var g=-1,E=l.length,P=0,B=[];++g<E;){var Y=l[g],Z=d?d(Y):Y;if(!g||!zo(Z,ae)){var ae=Z;B[P++]=Y===0?0:Y}}return B}function Lc(l){return typeof l=="number"?l:bn(l)?pe:+l}function Wa(l){if(typeof l=="string")return l;if(rn(l))return Nn(l,Wa)+"";if(bn(l))return r0?r0.call(l):"";var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function ps(l,d,g){var E=-1,P=Po,B=l.length,Y=!0,Z=[],ae=Z;if(g)Y=!1,P=Su;else if(B>=s){var De=d?null:Ed(l);if(De)return rd(De);Y=!1,P=wu,ae=new Qs}else ae=d?[]:Z;e:for(;++E<B;){var Ae=l[E],Pe=d?d(Ae):Ae;if(Ae=g||Ae!==0?Ae:0,Y&&Pe===Pe){for(var Ke=ae.length;Ke--;)if(ae[Ke]===Pe)continue e;d&&ae.push(Pe),Z.push(Ae)}else P(ae,Pe,g)||(ae!==Z&&ae.push(Pe),Z.push(Ae))}return Z}function yd(l,d){return d=hs(d,l),l=nl(l,d),l==null||delete l[Si(ao(d))]}function hh(l,d,g,E){return Me(l,d,g(ya(l,d)),E)}function Fc(l,d,g,E){for(var P=l.length,B=E?P:-1;(E?B--:++B<P)&&d(l[B],B,l););return g?Br(l,E?0:B,E?B+1:P):Br(l,E?B+1:0,E?P:B)}function mh(l,d){var g=l;return g instanceof _n&&(g=g.value()),os(d,function(E,P){return P.func.apply(P.thisArg,gi([E],P.args))},g)}function bd(l,d,g){var E=l.length;if(E<2)return E?ps(l[0]):[];for(var P=-1,B=ge(E);++P<E;)for(var Y=l[P],Z=-1;++Z<E;)Z!=P&&(B[P]=Rr(B[P]||Y,l[Z],d,g));return ps(ga(B,1),d,g)}function vh(l,d,g){for(var E=-1,P=l.length,B=d.length,Y={};++E<P;){var Z=E<B?d[E]:r;g(Y,l[E],Z)}return Y}function Sd(l){return _r(l)?l:[]}function xd(l){return typeof l=="function"?l:Ci}function hs(l,d){return rn(l)?l:Nh(l,d)?[l]:Qv(Gn(l))}var Bv=mn;function ms(l,d,g){var E=l.length;return g=g===r?E:g,!d&&g>=E?l:Br(l,d,g)}var gh=mv||function(l){return Vt.clearTimeout(l)};function yh(l,d){if(d)return l.slice();var g=l.length,E=Xb?Xb(g):new l.constructor(g);return l.copy(E),E}function zc(l){var d=new l.constructor(l.byteLength);return new nh(d).set(new nh(l)),d}function Bc(l,d){var g=d?zc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function Uv(l){var d=new l.constructor(l.source,zn.exec(l));return d.lastIndex=l.lastIndex,d}function jv(l){return ud?qn(ud.call(l)):{}}function bh(l,d){var g=d?zc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function Sh(l,d){if(l!==d){var g=l!==r,E=l===null,P=l===l,B=bn(l),Y=d!==r,Z=d===null,ae=d===d,De=bn(d);if(!Z&&!De&&!B&&l>d||B&&Y&&ae&&!Z&&!De||E&&Y&&ae||!g&&ae||!P)return 1;if(!E&&!B&&!De&&l<d||De&&g&&P&&!E&&!B||Z&&g&&P||!Y&&P||!ae)return-1}return 0}function w0(l,d,g){for(var E=-1,P=l.criteria,B=d.criteria,Y=P.length,Z=g.length;++E<Y;){var ae=Sh(P[E],B[E]);if(ae){if(E>=Z)return ae;var De=g[E];return ae*(De=="desc"?-1:1)}}return l.index-d.index}function Uc(l,d,g,E){for(var P=-1,B=l.length,Y=g.length,Z=-1,ae=d.length,De=Fr(B-Y,0),Ae=ge(ae+De),Pe=!E;++Z<ae;)Ae[Z]=d[Z];for(;++P<Y;)(Pe||P<B)&&(Ae[g[P]]=l[P]);for(;De--;)Ae[Z++]=l[P++];return Ae}function $v(l,d,g,E){for(var P=-1,B=l.length,Y=-1,Z=g.length,ae=-1,De=d.length,Ae=Fr(B-Z,0),Pe=ge(Ae+De),Ke=!E;++P<Ae;)Pe[P]=l[P];for(var dt=P;++ae<De;)Pe[dt+ae]=d[ae];for(;++Y<Z;)(Ke||P<B)&&(Pe[dt+g[Y]]=l[P++]);return Pe}function ra(l,d){var g=-1,E=l.length;for(d||(d=ge(E));++g<E;)d[g]=l[g];return d}function Fa(l,d,g,E){var P=!g;g||(g={});for(var B=-1,Y=d.length;++B<Y;){var Z=d[B],ae=E?E(g[Z],l[Z],Z,g,l):r;ae===r&&(ae=l[Z]),P?fs(g,Z,ae):pd(g,Z,ae)}return g}function Ui(l,d){return Fa(l,Ga(l),d)}function $C(l,d){return Fa(l,vs(l),d)}function Xn(l,d){return function(g,E){var P=rn(g)?Lt:s0,B=d?d():{};return P(g,l,At(E,2),B)}}function Js(l){return mn(function(d,g){var E=-1,P=g.length,B=P>1?g[P-1]:r,Y=P>2?g[2]:r;for(B=l.length>3&&typeof B=="function"?(P--,B):r,Y&&ia(g[0],g[1],Y)&&(B=P<3?r:B,P=1),d=qn(d);++E<P;){var Z=g[E];Z&&l(d,Z,E,B)}return d})}function wd(l,d){return function(g,E){if(g==null)return g;if(!Yr(g))return l(g,E);for(var P=g.length,B=d?P:-1,Y=qn(g);(d?B--:++B<P)&&E(Y[B],B,Y)!==!1;);return g}}function jc(l){return function(d,g,E){for(var P=-1,B=qn(d),Y=E(d),Z=Y.length;Z--;){var ae=Y[l?Z:++P];if(g(B[ae],ae,B)===!1)break}return d}}function xh(l,d,g){var E=d&I,P=Cd(l);function B(){var Y=this&&this!==Vt&&this instanceof B?P:l;return Y.apply(E?g:this,arguments)}return B}function C0(l){return function(d){d=Gn(d);var g=bc(d)?Io(d):r,E=g?g[0]:d.charAt(0),P=g?ms(g,1).join(""):d.slice(1);return E[l]()+P}}function $c(l){return function(d){return os(Ag(Xd(d).replace(Do,"")),l,"")}}function Cd(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=kl(l.prototype),E=l.apply(g,d);return Sr(E)?E:g}}function VC(l,d,g){var E=Cd(l);function P(){for(var B=arguments.length,Y=ge(B),Z=B,ae=Hc(P);Z--;)Y[Z]=arguments[Z];var De=B<3&&Y[0]!==ae&&Y[B-1]!==ae?[]:Al(Y,ae);if(B-=De.length,B<g)return E0(l,d,Vc,P.placeholder,r,Y,De,r,r,g-B);var Ae=this&&this!==Vt&&this instanceof P?E:l;return pt(Ae,this,Y)}return P}function wh(l){return function(d,g,E){var P=qn(d);if(!Yr(d)){var B=At(g,3);d=oa(d),g=function(Z){return B(P[Z],Z,P)}}var Y=l(d,g,E);return Y>-1?P[B?d[Y]:Y]:r}}function _0(l){return tl(function(d){var g=d.length,E=g,P=to.prototype.thru;for(l&&d.reverse();E--;){var B=d[E];if(typeof B!="function")throw new Li(u);if(P&&!Y&&Rd(B)=="wrapper")var Y=new to([],!0)}for(E=Y?E:g;++E<g;){B=d[E];var Z=Rd(B),ae=Z=="wrapper"?Gv(B):r;ae&&qv(ae[0])&&ae[1]==(X|z|V|de)&&!ae[4].length&&ae[9]==1?Y=Y[Rd(ae[0])].apply(Y,ae[3]):Y=B.length==1&&qv(B)?Y[Z]():Y.thru(B)}return function(){var De=arguments,Ae=De[0];if(Y&&De.length==1&&rn(Ae))return Y.plant(Ae).value();for(var Pe=0,Ke=g?d[Pe].apply(this,De):Ae;++Pe<g;)Ke=d[Pe].call(this,Ke);return Ke}})}function Vc(l,d,g,E,P,B,Y,Z,ae,De){var Ae=d&X,Pe=d&I,Ke=d&j,dt=d&(z|U),Ot=d&ve,cn=Ke?r:Cd(l);function Pt(){for(var vn=arguments.length,En=ge(vn),za=vn;za--;)En[za]=arguments[za];if(dt)var dr=Hc(Pt),qa=nd(En,dr);if(E&&(En=Uc(En,E,P,dt)),B&&(En=$v(En,B,Y,dt)),vn-=qa,dt&&vn<De){var xr=Al(En,dr);return E0(l,d,Vc,Pt.placeholder,g,En,xr,Z,ae,De-vn)}var qr=Pe?g:this,Ba=Ke?qr[l]:l;return vn=En.length,Z?En=Ll(En,Z):Ot&&vn>1&&En.reverse(),Ae&&ae<vn&&(En.length=ae),this&&this!==Vt&&this instanceof Pt&&(Ba=cn||Cd(Ba)),Ba.apply(qr,En)}return Pt}function Vv(l,d){return function(g,E){return LC(g,l,d(E),{})}}function Ch(l,d){return function(g,E){var P;if(g===r&&E===r)return d;if(g!==r&&(P=g),E!==r){if(P===r)return E;typeof g=="string"||typeof E=="string"?(g=Wa(g),E=Wa(E)):(g=Lc(g),E=Lc(E)),P=l(g,E)}return P}}function Hv(l){return tl(function(d){return d=Nn(d,Bn(At())),mn(function(g){var E=this;return l(d,function(P){return pt(P,E,g)})})})}function Mu(l,d){d=d===r?" ":Wa(d);var g=d.length;if(g<2)return g?Fv(d,l):d;var E=Fv(d,Gs(l/Cu(d)));return bc(d)?ms(Io(E),0,l).join(""):E.slice(0,l)}function HC(l,d,g,E){var P=d&I,B=Cd(l);function Y(){for(var Z=-1,ae=arguments.length,De=-1,Ae=E.length,Pe=ge(Ae+ae),Ke=this&&this!==Vt&&this instanceof Y?B:l;++De<Ae;)Pe[De]=E[De];for(;ae--;)Pe[De++]=arguments[++Z];return pt(Ke,P?g:this,Pe)}return Y}function Wv(l){return function(d,g,E){return E&&typeof E!="number"&&ia(d,g,E)&&(g=E=r),d=al(d),g===r?(g=d,d=0):g=al(g),E=E===r?d<g?1:-1:al(E),x0(d,g,E,l)}}function _d(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=io(d),g=io(g)),l(d,g)}}function E0(l,d,g,E,P,B,Y,Z,ae,De){var Ae=d&z,Pe=Ae?Y:r,Ke=Ae?r:Y,dt=Ae?B:r,Ot=Ae?r:B;d|=Ae?V:K,d&=~(Ae?K:V),d&M||(d&=~(I|j));var cn=[l,d,P,dt,Pe,Ot,Ke,Z,ae,De],Pt=g.apply(r,cn);return qv(l)&&Gc(Pt,cn),Pt.placeholder=E,k0(Pt,l,d)}function el(l){var d=Hr[l];return function(g,E){if(g=io(g),E=E==null?0:ta(tn(E),292),E&&Qb(g)){var P=(Gn(g)+"e").split("e"),B=d(P[0]+"e"+(+P[1]+E));return P=(Gn(B)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return d(g)}}var Ed=us&&1/rd(new us([,-0]))[1]==oe?function(l){return new us(l)}:Mg;function Ml(l){return function(d){var g=br(d);return g==ye?pv(d):g==fn?Sc(d):yi(d,l(d))}}function Fo(l,d,g,E,P,B,Y,Z){var ae=d&j;if(!ae&&typeof l!="function")throw new Li(u);var De=E?E.length:0;if(De||(d&=~(V|K),E=P=r),Y=Y===r?Y:Fr(tn(Y),0),Z=Z===r?Z:tn(Z),De-=P?P.length:0,d&K){var Ae=E,Pe=P;E=P=r}var Ke=ae?r:Gv(l),dt=[l,d,g,E,P,Ae,Pe,B,Y,Z];if(Ke&&O0(dt,Ke),l=dt[0],d=dt[1],g=dt[2],E=dt[3],P=dt[4],Z=dt[9]=dt[9]===r?ae?0:l.length:Fr(dt[9]-De,0),!Z&&d&(z|U)&&(d&=~(z|U)),!d||d==I)var Ot=xh(l,d,g);else d==z||d==U?Ot=VC(l,d,Z):(d==V||d==(I|V))&&!P.length?Ot=HC(l,d,g,E):Ot=Vc.apply(r,dt);var cn=Ke?Gr:Gc;return k0(cn(Ot,dt),l,d)}function bi(l,d,g,E){return l===r||zo(l,wc[g])&&!Kn.call(E,g)?d:l}function Iu(l,d,g,E,P,B){return Sr(l)&&Sr(d)&&(B.set(d,l),ph(l,d,r,Iu,B),B.delete(d)),l}function un(l){return Uu(l)?r:l}function Td(l,d,g,E,P,B){var Y=g&N,Z=l.length,ae=d.length;if(Z!=ae&&!(Y&&ae>Z))return!1;var De=B.get(l),Ae=B.get(d);if(De&&Ae)return De==d&&Ae==l;var Pe=-1,Ke=!0,dt=g&A?new Qs:r;for(B.set(l,d),B.set(d,l);++Pe<Z;){var Ot=l[Pe],cn=d[Pe];if(E)var Pt=Y?E(cn,Ot,Pe,d,l,B):E(Ot,cn,Pe,l,d,B);if(Pt!==r){if(Pt)continue;Ke=!1;break}if(dt){if(!uv(d,function(vn,En){if(!wu(dt,En)&&(Ot===vn||P(Ot,vn,g,E,B)))return dt.push(En)})){Ke=!1;break}}else if(!(Ot===cn||P(Ot,cn,g,E,B))){Ke=!1;break}}return B.delete(l),B.delete(d),Ke}function T0(l,d,g,E,P,B,Y){switch(g){case ke:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Tt:return!(l.byteLength!=d.byteLength||!B(new nh(l),new nh(d)));case Qe:case vt:case Mt:return zo(+l,+d);case zt:return l.name==d.name&&l.message==d.message;case Bt:case kn:return l==d+"";case ye:var Z=pv;case fn:var ae=E&N;if(Z||(Z=rd),l.size!=d.size&&!ae)return!1;var De=Y.get(l);if(De)return De==d;E|=A,Y.set(l,d);var Ae=Td(Z(l),Z(d),E,P,B,Y);return Y.delete(l),Ae;case hn:if(ud)return ud.call(l)==ud.call(d)}return!1}function eD(l,d,g,E,P,B){var Y=g&N,Z=Nd(l),ae=Z.length,De=Nd(d),Ae=De.length;if(ae!=Ae&&!Y)return!1;for(var Pe=ae;Pe--;){var Ke=Z[Pe];if(!(Y?Ke in d:Kn.call(d,Ke)))return!1}var dt=B.get(l),Ot=B.get(d);if(dt&&Ot)return dt==d&&Ot==l;var cn=!0;B.set(l,d),B.set(d,l);for(var Pt=Y;++Pe<ae;){Ke=Z[Pe];var vn=l[Ke],En=d[Ke];if(E)var za=Y?E(En,vn,Ke,d,l,B):E(vn,En,Ke,l,d,B);if(!(za===r?vn===En||P(vn,En,g,E,B):za)){cn=!1;break}Pt||(Pt=Ke=="constructor")}if(cn&&!Pt){var dr=l.constructor,qa=d.constructor;dr!=qa&&"constructor"in l&&"constructor"in d&&!(typeof dr=="function"&&dr instanceof dr&&typeof qa=="function"&&qa instanceof qa)&&(cn=!1)}return B.delete(l),B.delete(d),cn}function tl(l){return bs(Od(l,r,z0),l+"")}function Nd(l){return f0(l,oa,Ga)}function Lu(l){return f0(l,wi,vs)}var Gv=Rc?function(l){return Rc.get(l)}:Mg;function Rd(l){for(var d=l.name+"",g=Ac[d],E=Kn.call(Ac,d)?g.length:0;E--;){var P=g[E],B=P.func;if(B==null||B==l)return P.name}return d}function Hc(l){var d=Kn.call(L,"placeholder")?L:l;return d.placeholder}function At(){var l=L.iteratee||Dg;return l=l===Dg?m0:l,arguments.length?l(arguments[0],arguments[1]):l}function _h(l,d){var g=l.__data__;return YC(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Eh(l){for(var d=oa(l),g=d.length;g--;){var E=d[g],P=l[E];d[g]=[E,P,A0(P)]}return d}function Il(l,d){var g=bC(l,d);return d0(g)?g:r}function N0(l){var d=Kn.call(l,_u),g=l[_u];try{l[_u]=r;var E=!0}catch{}var P=ad.call(l);return E&&(d?l[_u]=g:delete l[_u]),P}var Ga=gv?function(l){return l==null?[]:(l=qn(l),va(gv(l),function(d){return Cc.call(l,d)}))}:Lg,vs=gv?function(l){for(var d=[];l;)gi(d,Ga(l)),l=id(l);return d}:Lg,br=Ha;(yv&&br(new yv(new ArrayBuffer(1)))!=ke||Ys&&br(new Ys)!=ye||ld&&br(ld.resolve())!=ar||us&&br(new us)!=fn||Tc&&br(new Tc)!=Ze)&&(br=function(l){var d=Ha(l),g=d==St?l.constructor:r,E=g?Fu(g):"";if(E)switch(E){case Oc:return ke;case oh:return ye;case sh:return ar;case bv:return fn;case OC:return Ze}return d});function Th(l,d,g){for(var E=-1,P=g.length;++E<P;){var B=g[E],Y=B.size;switch(B.type){case"drop":l+=Y;break;case"dropRight":d-=Y;break;case"take":d=ta(d,l+Y);break;case"takeRight":l=Fr(l,d-Y);break}}return{start:l,end:d}}function Ad(l){var d=l.match(qe);return d?d[1].split(bt):[]}function ro(l,d,g){d=hs(d,l);for(var E=-1,P=d.length,B=!1;++E<P;){var Y=Si(d[E]);if(!(B=l!=null&&g(l,Y)))break;l=l[Y]}return B||++E!=P?B:(P=l==null?0:l.length,!!P&&Hd(P)&&gs(Y,P)&&(rn(l)||Bu(l)))}function aa(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&Kn.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function R0(l){return typeof l.constructor=="function"&&!Wc(l)?kl(id(l)):{}}function WC(l,d,g){var E=l.constructor;switch(d){case Tt:return zc(l);case Qe:case vt:return new E(+l);case ke:return Bc(l,g);case jt:case xn:case je:case rt:case xt:case dn:case Xt:case wn:case Dn:return bh(l,g);case ye:return new E;case Mt:case kn:return new E(l);case Bt:return Uv(l);case fn:return new E;case hn:return jv(l)}}function GC(l,d){var g=d.length;if(!g)return l;var E=g-1;return d[E]=(g>1?"& ":"")+d[E],d=d.join(g>2?", ":" "),l.replace(Be,`{
/* [wrapped with `+d+`] */
`)}function Yv(l){return rn(l)||Bu(l)||!!(_c&&l&&l[_c])}function gs(l,d){var g=typeof l;return d=d??Se,!!d&&(g=="number"||g!="symbol"&&_o.test(l))&&l>-1&&l%1==0&&l<d}function ia(l,d,g){if(!Sr(g))return!1;var E=typeof d;return(E=="number"?Yr(g)&&gs(d,g.length):E=="string"&&d in g)?zo(g[d],l):!1}function Nh(l,d){if(rn(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||bn(l)?!0:Co.test(l)||!wo.test(l)||d!=null&&l in qn(d)}function YC(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function qv(l){var d=Rd(l),g=L[d];if(typeof g!="function"||!(d in _n.prototype))return!1;if(l===g)return!0;var E=Gv(g);return!!E&&l===E[0]}function Kv(l){return!!qb&&qb in l}var qC=Jp?xs:Fg;function Wc(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||wc;return l===g}function A0(l){return l===l&&!Sr(l)}function Xv(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==r||l in qn(g))}}function KC(l){var d=Fh(l,function(E){return g.size===v&&g.clear(),E}),g=d.cache;return d}function O0(l,d){var g=l[1],E=d[1],P=g|E,B=P<(I|j|X),Y=E==X&&g==z||E==X&&g==de&&l[7].length<=d[8]||E==(X|de)&&d[7].length<=d[8]&&g==z;if(!(B||Y))return l;E&I&&(l[2]=d[2],P|=g&I?0:M);var Z=d[3];if(Z){var ae=l[3];l[3]=ae?Uc(ae,Z,d[4]):Z,l[4]=ae?Al(l[3],b):d[4]}return Z=d[5],Z&&(ae=l[5],l[5]=ae?$v(ae,Z,d[6]):Z,l[6]=ae?Al(l[5],b):d[6]),Z=d[7],Z&&(l[7]=Z),E&X&&(l[8]=l[8]==null?d[8]:ta(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=P,l}function XC(l){var d=[];if(l!=null)for(var g in qn(l))d.push(g);return d}function Zv(l){return ad.call(l)}function Od(l,d,g){return d=Fr(d===r?l.length-1:d,0),function(){for(var E=arguments,P=-1,B=Fr(E.length-d,0),Y=ge(B);++P<B;)Y[P]=E[d+P];P=-1;for(var Z=ge(d+1);++P<d;)Z[P]=E[P];return Z[d]=g(Y),pt(l,this,Z)}}function nl(l,d){return d.length<2?l:ya(l,Br(d,0,-1))}function Ll(l,d){for(var g=l.length,E=ta(d.length,g),P=ra(l);E--;){var B=d[E];l[E]=gs(B,g)?P[B]:r}return l}function ys(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var Gc=D0(Gr),rl=Ec||function(l,d){return Vt.setTimeout(l,d)},bs=D0(Ut);function k0(l,d,g){var E=d+"";return bs(l,GC(E,P0(Ad(E),g)))}function D0(l){var d=0,g=0;return function(){var E=RC(),P=ie-(E-g);if(g=E,P>0){if(++d>=Xe)return arguments[0]}else d=0;return l.apply(r,arguments)}}function Rh(l,d){var g=-1,E=l.length,P=E-1;for(d=d===r?E:d;++g<d;){var B=no(g,P),Y=l[B];l[B]=l[g],l[g]=Y}return l.length=d,l}var Qv=KC(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(cr,function(g,E,P,B){d.push(P?B.replace(tt,"$1"):E||g)}),d});function Si(l){if(typeof l=="string"||bn(l))return l;var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function Fu(l){if(l!=null){try{return eh.call(l)}catch{}try{return l+""}catch{}}return""}function P0(l,d){return wt(Ye,function(g){var E="_."+g[0];d&g[1]&&!Po(l,E)&&l.push(E)}),l.sort()}function M0(l){if(l instanceof _n)return l.clone();var d=new to(l.__wrapped__,l.__chain__);return d.__actions__=ra(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Ah(l,d,g){(g?ia(l,d,g):d===r)?d=1:d=Fr(tn(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var P=0,B=0,Y=ge(Gs(E/d));P<E;)Y[B++]=Br(l,P,P+=d);return Y}function I0(l){for(var d=-1,g=l==null?0:l.length,E=0,P=[];++d<g;){var B=l[d];B&&(P[E++]=B)}return P}function ZC(){var l=arguments.length;if(!l)return[];for(var d=ge(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return gi(rn(g)?ra(g):[g],ga(d,1))}var kd=mn(function(l,d){return _r(l)?Rr(l,ga(d,1,_r,!0)):[]}),Dd=mn(function(l,d){var g=ao(d);return _r(g)&&(g=r),_r(l)?Rr(l,ga(d,1,_r,!0),At(g,2)):[]}),Yc=mn(function(l,d){var g=ao(d);return _r(g)&&(g=r),_r(l)?Rr(l,ga(d,1,_r,!0),r,g):[]});function Jv(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),Br(l,d<0?0:d,E)):[]}function L0(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,0,d<0?0:d)):[]}function QC(l,d){return l&&l.length?Fc(l,At(d,3),!0,!0):[]}function JC(l,d){return l&&l.length?Fc(l,At(d,3),!0):[]}function e_(l,d,g,E){var P=l==null?0:l.length;return P?(g&&typeof g!="number"&&ia(l,d,g)&&(g=0,E=P),PC(l,d,g,E)):[]}function F0(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),Qf(l,At(d,3),P)}function Oh(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E-1;return g!==r&&(P=tn(g),P=g<0?Fr(E+P,0):ta(P,E-1)),Qf(l,At(d,3),P,!0)}function z0(l){var d=l==null?0:l.length;return d?ga(l,1):[]}function kh(l){var d=l==null?0:l.length;return d?ga(l,oe):[]}function eg(l,d){var g=l==null?0:l.length;return g?(d=d===r?1:tn(d),ga(l,d)):[]}function B0(l){for(var d=-1,g=l==null?0:l.length,E={};++d<g;){var P=l[d];E[P[0]]=P[1]}return E}function U0(l){return l&&l.length?l[0]:r}function t_(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),xu(l,d,P)}function n_(l){var d=l==null?0:l.length;return d?Br(l,0,-1):[]}var r_=mn(function(l){var d=Nn(l,Sd);return d.length&&d[0]===l[0]?Ov(d):[]}),Pd=mn(function(l){var d=ao(l),g=Nn(l,Sd);return d===ao(g)?d=r:g.pop(),g.length&&g[0]===l[0]?Ov(g,At(d,2)):[]}),tg=mn(function(l){var d=ao(l),g=Nn(l,Sd);return d=typeof d=="function"?d:r,d&&g.pop(),g.length&&g[0]===l[0]?Ov(g,r,d):[]});function Md(l,d){return l==null?"":Jb.call(l,d)}function ao(l){var d=l==null?0:l.length;return d?l[d-1]:r}function a_(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E;return g!==r&&(P=tn(g),P=P<0?Fr(E+P,0):ta(P,E-1)),d===d?Wb(l,d,P):Qf(l,ss,P,!0)}function j0(l,d){return l&&l.length?b0(l,tn(d)):r}var $0=mn(Id);function Id(l,d){return l&&l.length&&d&&d.length?Un(l,d):l}function Dh(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,At(g,2)):l}function V0(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,r,g):l}var ji=tl(function(l,d){var g=l==null?0:l.length,E=Tv(l,d);return Pr(l,Nn(d,function(P){return gs(P,g)?+P:P}).sort(Sh)),E});function qc(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,P=[],B=l.length;for(d=At(d,3);++E<B;){var Y=l[E];d(Y,E,l)&&(g.push(Y),P.push(E))}return Pr(l,P),g}function Ld(l){return l==null?l:AC.call(l)}function Fd(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&ia(l,d,g)?(d=0,g=E):(d=d==null?0:tn(d),g=g===r?E:tn(g)),Br(l,d,g)):[]}function i_(l,d){return Bi(l,d)}function ng(l,d,g){return Du(l,d,At(g,2))}function rg(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d);if(E<g&&zo(l[E],d))return E}return-1}function zd(l,d){return Bi(l,d,!0)}function o_(l,d,g){return Du(l,d,At(g,2),!0)}function Ph(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d,!0)-1;if(zo(l[E],d))return E}return-1}function H0(l){return l&&l.length?Pu(l):[]}function s_(l,d){return l&&l.length?Pu(l,At(d,2)):[]}function l_(l){var d=l==null?0:l.length;return d?Br(l,1,d):[]}function u_(l,d,g){return l&&l.length?(d=g||d===r?1:tn(d),Br(l,0,d<0?0:d)):[]}function ag(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,d<0?0:d,E)):[]}function c_(l,d){return l&&l.length?Fc(l,At(d,3),!1,!0):[]}function f_(l,d){return l&&l.length?Fc(l,At(d,3)):[]}var d_=mn(function(l){return ps(ga(l,1,_r,!0))}),p_=mn(function(l){var d=ao(l);return _r(d)&&(d=r),ps(ga(l,1,_r,!0),At(d,2))}),h_=mn(function(l){var d=ao(l);return d=typeof d=="function"?d:r,ps(ga(l,1,_r,!0),r,d)});function W0(l){return l&&l.length?ps(l):[]}function m_(l,d){return l&&l.length?ps(l,At(d,2)):[]}function v_(l,d){return d=typeof d=="function"?d:r,l&&l.length?ps(l,r,d):[]}function ig(l){if(!(l&&l.length))return[];var d=0;return l=va(l,function(g){if(_r(g))return d=Fr(g.length,d),!0}),Zp(d,function(g){return Nn(l,Jf(g))})}function G0(l,d){if(!(l&&l.length))return[];var g=ig(l);return d==null?g:Nn(g,function(E){return pt(d,r,E)})}var g_=mn(function(l,d){return _r(l)?Rr(l,d):[]}),y_=mn(function(l){return bd(va(l,_r))}),og=mn(function(l){var d=ao(l);return _r(d)&&(d=r),bd(va(l,_r),At(d,2))}),b_=mn(function(l){var d=ao(l);return d=typeof d=="function"?d:r,bd(va(l,_r),r,d)}),S_=mn(ig);function x_(l,d){return vh(l||[],d||[],pd)}function Y0(l,d){return vh(l||[],d||[],Me)}var w_=mn(function(l){var d=l.length,g=d>1?l[d-1]:r;return g=typeof g=="function"?(l.pop(),g):r,G0(l,g)});function q0(l){var d=L(l);return d.__chain__=!0,d}function C_(l,d){return d(l),l}function Mh(l,d){return d(l)}var __=tl(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,P=function(B){return Tv(B,l)};return d>1||this.__actions__.length||!(E instanceof _n)||!gs(g)?this.thru(P):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:Mh,args:[P],thisArg:r}),new to(E,this.__chain__).thru(function(B){return d&&!B.length&&B.push(r),B}))});function E_(){return q0(this)}function T_(){return new to(this.value(),this.__chain__)}function K0(){this.__values__===r&&(this.__values__=Qc(this.value()));var l=this.__index__>=this.__values__.length,d=l?r:this.__values__[this.__index__++];return{done:l,value:d}}function sg(){return this}function Bd(l){for(var d,g=this;g instanceof qs;){var E=M0(g);E.__index__=0,E.__values__=r,d?P.__wrapped__=E:d=E;var P=E;g=g.__wrapped__}return P.__wrapped__=l,d}function N_(){var l=this.__wrapped__;if(l instanceof _n){var d=l;return this.__actions__.length&&(d=new _n(this)),d=d.reverse(),d.__actions__.push({func:Mh,args:[Ld],thisArg:r}),new to(d,this.__chain__)}return this.thru(Ld)}function X0(){return mh(this.__wrapped__,this.__actions__)}var Z0=Xn(function(l,d,g){Kn.call(l,g)?++l[g]:fs(l,g,1)});function Q0(l,d,g){var E=rn(l)?vi:Nv;return g&&ia(l,d,g)&&(d=r),E(l,At(d,3))}function R_(l,d){var g=rn(l)?va:dh;return g(l,At(d,3))}var J0=wh(F0),A_=wh(Oh);function O_(l,d){return ga(Ih(l,d),1)}function k_(l,d){return ga(Ih(l,d),oe)}function eS(l,d,g){return g=g===r?1:tn(g),ga(Ih(l,d),g)}function lg(l,d){var g=rn(l)?wt:Pl;return g(l,At(d,3))}function ug(l,d){var g=rn(l)?Dt:hd;return g(l,At(d,3))}var Kc=Xn(function(l,d,g){Kn.call(l,g)?l[g].push(d):fs(l,g,[d])});function D_(l,d,g,E){l=Yr(l)?l:tf(l),g=g&&!E?tn(g):0;var P=l.length;return g<0&&(g=Fr(P+g,0)),jh(l)?g<=P&&l.indexOf(d,g)>-1:!!P&&xu(l,d,g)>-1}var P_=mn(function(l,d,g){var E=-1,P=typeof d=="function",B=Yr(l)?ge(l.length):[];return Pl(l,function(Y){B[++E]=P?pt(d,Y,g):md(Y,d,g)}),B}),M_=Xn(function(l,d,g){fs(l,g,d)});function Ih(l,d){var g=rn(l)?Nn:v0;return g(l,At(d,3))}function I_(l,d,g,E){return l==null?[]:(rn(d)||(d=d==null?[]:[d]),g=E?r:g,rn(g)||(g=g==null?[]:[g]),S0(l,d,g))}var L_=Xn(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function tS(l,d,g){var E=rn(l)?os:Xp,P=arguments.length<3;return E(l,At(d,4),g,P,Pl)}function F_(l,d,g){var E=rn(l)?Zf:Xp,P=arguments.length<3;return E(l,At(d,4),g,P,hd)}function z_(l,d){var g=rn(l)?va:dh;return g(l,zh(At(d,3)))}function nS(l){var d=rn(l)?i0:jC;return d(l)}function Ud(l,d,g){(g?ia(l,d,g):d===r)?d=1:d=tn(d);var E=rn(l)?Au:zv;return E(l,d)}function jd(l){var d=rn(l)?o0:Ic;return d(l)}function B_(l){if(l==null)return 0;if(Yr(l))return jh(l)?Cu(l):l.length;var d=br(l);return d==ye||d==fn?l.size:Pv(l).length}function U_(l,d,g){var E=rn(l)?uv:ku;return g&&ia(l,d,g)&&(d=r),E(l,At(d,3))}var j_=mn(function(l,d){if(l==null)return[];var g=d.length;return g>1&&ia(l,d[0],d[1])?d=[]:g>2&&ia(d[0],d[1],d[2])&&(d=[d[0]]),S0(l,ga(d,1),[])}),zu=vv||function(){return Vt.Date.now()};function $_(l,d){if(typeof d!="function")throw new Li(u);return l=tn(l),function(){if(--l<1)return d.apply(this,arguments)}}function cg(l,d,g){return d=g?r:d,d=l&&d==null?l.length:d,Fo(l,X,r,r,r,r,d)}function rS(l,d){var g;if(typeof d!="function")throw new Li(u);return l=tn(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=r),g}}var Lh=mn(function(l,d,g){var E=I;if(g.length){var P=Al(g,Hc(Lh));E|=V}return Fo(l,E,d,g,P)}),fg=mn(function(l,d,g){var E=I|j;if(g.length){var P=Al(g,Hc(fg));E|=V}return Fo(d,E,l,g,P)});function aS(l,d,g){d=g?r:d;var E=Fo(l,z,r,r,r,r,r,d);return E.placeholder=aS.placeholder,E}function iS(l,d,g){d=g?r:d;var E=Fo(l,U,r,r,r,r,r,d);return E.placeholder=iS.placeholder,E}function oS(l,d,g){var E,P,B,Y,Z,ae,De=0,Ae=!1,Pe=!1,Ke=!0;if(typeof l!="function")throw new Li(u);d=io(d)||0,Sr(g)&&(Ae=!!g.leading,Pe="maxWait"in g,B=Pe?Fr(io(g.maxWait)||0,d):B,Ke="trailing"in g?!!g.trailing:Ke);function dt(xr){var qr=E,Ba=P;return E=P=r,De=xr,Y=l.apply(Ba,qr),Y}function Ot(xr){return De=xr,Z=rl(vn,d),Ae?dt(xr):Y}function cn(xr){var qr=xr-ae,Ba=xr-De,ba=d-qr;return Pe?ta(ba,B-Ba):ba}function Pt(xr){var qr=xr-ae,Ba=xr-De;return ae===r||qr>=d||qr<0||Pe&&Ba>=B}function vn(){var xr=zu();if(Pt(xr))return En(xr);Z=rl(vn,cn(xr))}function En(xr){return Z=r,Ke&&E?dt(xr):(E=P=r,Y)}function za(){Z!==r&&gh(Z),De=0,E=ae=P=Z=r}function dr(){return Z===r?Y:En(zu())}function qa(){var xr=zu(),qr=Pt(xr);if(E=arguments,P=this,ae=xr,qr){if(Z===r)return Ot(ae);if(Pe)return gh(Z),Z=rl(vn,d),dt(ae)}return Z===r&&(Z=rl(vn,d)),Y}return qa.cancel=za,qa.flush=dr,qa}var V_=mn(function(l,d){return c0(l,1,d)}),H_=mn(function(l,d,g){return c0(l,io(d)||0,g)});function W_(l){return Fo(l,ve)}function Fh(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Li(u);var g=function(){var E=arguments,P=d?d.apply(this,E):E[0],B=g.cache;if(B.has(P))return B.get(P);var Y=l.apply(this,E);return g.cache=B.set(P,Y)||B,Y};return g.cache=new(Fh.Cache||Zs),g}Fh.Cache=Zs;function zh(l){if(typeof l!="function")throw new Li(u);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function G_(l){return rS(2,l)}var Y_=Bv(function(l,d){d=d.length==1&&rn(d[0])?Nn(d[0],Bn(At())):Nn(ga(d,1),Bn(At()));var g=d.length;return mn(function(E){for(var P=-1,B=ta(E.length,g);++P<B;)E[P]=d[P].call(this,E[P]);return pt(l,this,E)})}),Ya=mn(function(l,d){var g=Al(d,Hc(Ya));return Fo(l,V,r,d,g)}),Xc=mn(function(l,d){var g=Al(d,Hc(Xc));return Fo(l,K,r,d,g)}),sS=tl(function(l,d){return Fo(l,de,r,r,r,d)});function q_(l,d){if(typeof l!="function")throw new Li(u);return d=d===r?d:tn(d),mn(l,d)}function lS(l,d){if(typeof l!="function")throw new Li(u);return d=d==null?0:Fr(tn(d),0),mn(function(g){var E=g[d],P=ms(g,0,d);return E&&gi(P,E),pt(l,this,P)})}function K_(l,d,g){var E=!0,P=!0;if(typeof l!="function")throw new Li(u);return Sr(g)&&(E="leading"in g?!!g.leading:E,P="trailing"in g?!!g.trailing:P),oS(l,d,{leading:E,maxWait:d,trailing:P})}function X_(l){return cg(l,1)}function Z_(l,d){return Ya(xd(d),l)}function uS(){if(!arguments.length)return[];var l=arguments[0];return rn(l)?l:[l]}function cS(l){return Fi(l,_)}function Q_(l,d){return d=typeof d=="function"?d:r,Fi(l,_,d)}function J_(l){return Fi(l,x|_)}function fS(l,d){return d=typeof d=="function"?d:r,Fi(l,x|_,d)}function dg(l,d){return d==null||u0(l,d,oa(d))}function zo(l,d){return l===d||l!==l&&d!==d}var eE=_d(Av),tE=_d(function(l,d){return l>=d}),Bu=kv(function(){return arguments}())?kv:function(l){return Er(l)&&Kn.call(l,"callee")&&!Cc.call(l,"callee")},rn=ge.isArray,nE=Fe?Bn(Fe):vd;function Yr(l){return l!=null&&Hd(l.length)&&!xs(l)}function _r(l){return Er(l)&&Yr(l)}function $d(l){return l===!0||l===!1||Er(l)&&Ha(l)==Qe}var Ss=Zb||Fg,rE=xe?Bn(xe):Mc;function aE(l){return Er(l)&&l.nodeType===1&&!Uu(l)}function dS(l){if(l==null)return!0;if(Yr(l)&&(rn(l)||typeof l=="string"||typeof l.splice=="function"||Ss(l)||Bl(l)||Bu(l)))return!l.length;var d=br(l);if(d==ye||d==fn)return!l.size;if(Wc(l))return!Pv(l).length;for(var g in l)if(Kn.call(l,g))return!1;return!0}function iE(l,d){return gd(l,d)}function Bh(l,d,g){g=typeof g=="function"?g:r;var E=g?g(l,d):r;return E===r?gd(l,d,r,g):!!E}function Fl(l){if(!Er(l))return!1;var d=Ha(l);return d==zt||d==Et||typeof l.message=="string"&&typeof l.name=="string"&&!Uu(l)}function pg(l){return typeof l=="number"&&Qb(l)}function xs(l){if(!Sr(l))return!1;var d=Ha(l);return d==We||d==Yt||d==Gt||d==ir}function Vd(l){return typeof l=="number"&&l==tn(l)}function Hd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=Se}function Sr(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Er(l){return l!=null&&typeof l=="object"}var hg=$e?Bn($e):zC;function pS(l,d){return l===d||Dv(l,d,Eh(d))}function hS(l,d,g){return g=typeof g=="function"?g:r,Dv(l,d,Eh(d),g)}function zl(l){return Zc(l)&&l!=+l}function oE(l){if(qC(l))throw new en(c);return d0(l)}function sE(l){return l===null}function lE(l){return l==null}function Zc(l){return typeof l=="number"||Er(l)&&Ha(l)==Mt}function Uu(l){if(!Er(l)||Ha(l)!=St)return!1;var d=id(l);if(d===null)return!0;var g=Kn.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&eh.call(g)==$a}var Uh=it?Bn(it):BC;function uE(l){return Vd(l)&&l>=-Se&&l<=Se}var mg=gt?Bn(gt):p0;function jh(l){return typeof l=="string"||!rn(l)&&Er(l)&&Ha(l)==kn}function bn(l){return typeof l=="symbol"||Er(l)&&Ha(l)==hn}var Bl=Nt?Bn(Nt):h0;function $h(l){return l===r}function Wd(l){return Er(l)&&br(l)==Ze}function mS(l){return Er(l)&&Ha(l)==Jt}var vS=_d(Mv),vg=_d(function(l,d){return l<=d});function Qc(l){if(!l)return[];if(Yr(l))return jh(l)?Io(l):ra(l);if(od&&l[od])return Vb(l[od]());var d=br(l),g=d==ye?pv:d==fn?rd:tf;return g(l)}function al(l){if(!l)return l===0?l:0;if(l=io(l),l===oe||l===-oe){var d=l<0?-1:1;return d*Te}return l===l?l:0}function tn(l){var d=al(l),g=d%1;return d===d?g?d-g:d:0}function ju(l){return l?Dl(tn(l),0,we):0}function io(l){if(typeof l=="number")return l;if(bn(l))return pe;if(Sr(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Sr(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=ls(l);var g=an.test(l);return g||ci.test(l)?at(l.slice(2),g?2:8):In.test(l)?pe:+l}function gg(l){return Fa(l,wi(l))}function cE(l){return l?Dl(tn(l),-Se,Se):l===0?l:0}function Gn(l){return l==null?"":Wa(l)}var xi=Js(function(l,d){if(Wc(d)||Yr(d)){Fa(d,oa(d),l);return}for(var g in d)Kn.call(d,g)&&pd(l,g,d[g])}),Jc=Js(function(l,d){Fa(d,wi(d),l)}),$u=Js(function(l,d,g,E){Fa(d,wi(d),l,E)}),Ul=Js(function(l,d,g,E){Fa(d,oa(d),l,E)}),gS=tl(Tv);function Vu(l,d){var g=kl(l);return d==null?g:Ev(g,d)}var Hu=mn(function(l,d){l=qn(l);var g=-1,E=d.length,P=E>2?d[2]:r;for(P&&ia(d[0],d[1],P)&&(E=1);++g<E;)for(var B=d[g],Y=wi(B),Z=-1,ae=Y.length;++Z<ae;){var De=Y[Z],Ae=l[De];(Ae===r||zo(Ae,wc[De])&&!Kn.call(l,De))&&(l[De]=B[De])}return l}),Vh=mn(function(l){return l.push(r,Iu),pt(wS,r,l)});function yg(l,d){return fv(l,At(d,3),fr)}function Hh(l,d){return fv(l,At(d,3),nt)}function Gd(l,d){return l==null?l:Rv(l,At(d,3),wi)}function yS(l,d){return l==null?l:Ou(l,At(d,3),wi)}function Wh(l,d){return l&&fr(l,At(d,3))}function bS(l,d){return l&&nt(l,At(d,3))}function SS(l){return l==null?[]:zi(l,oa(l))}function fE(l){return l==null?[]:zi(l,wi(l))}function bg(l,d,g){var E=l==null?r:ya(l,d);return E===r?g:E}function Gh(l,d){return l!=null&&ro(l,d,MC)}function ef(l,d){return l!=null&&ro(l,d,IC)}var xS=Vv(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=ad.call(d)),l[d]=g},Og(Ci)),dE=Vv(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=ad.call(d)),Kn.call(l,d)?l[d].push(g):l[d]=[g]},At),Yh=mn(md);function oa(l){return Yr(l)?cs(l):Pv(l)}function wi(l){return Yr(l)?cs(l,!0):UC(l)}function pE(l,d){var g={};return d=At(d,3),fr(l,function(E,P,B){fs(g,d(E,P,B),E)}),g}function hE(l,d){var g={};return d=At(d,3),fr(l,function(E,P,B){fs(g,P,d(E,P,B))}),g}var mE=Js(function(l,d,g){ph(l,d,g)}),wS=Js(function(l,d,g,E){ph(l,d,g,E)}),vE=tl(function(l,d){var g={};if(l==null)return g;var E=!1;d=Nn(d,function(B){return B=hs(B,l),E||(E=B.length>1),B}),Fa(l,Lu(l),g),E&&(g=Fi(g,x|C|_,un));for(var P=d.length;P--;)yd(g,d[P]);return g});function gE(l,d){return CS(l,zh(At(d)))}var yE=tl(function(l,d){return l==null?{}:Lv(l,d)});function CS(l,d){if(l==null)return{};var g=Nn(Lu(l),function(E){return[E]});return d=At(d),Rt(l,g,function(E,P){return d(E,P[0])})}function Sg(l,d,g){d=hs(d,l);var E=-1,P=d.length;for(P||(P=1,l=r);++E<P;){var B=l==null?r:l[Si(d[E])];B===r&&(E=P,B=g),l=xs(B)?B.call(l):B}return l}function xg(l,d,g){return l==null?l:Me(l,d,g)}function wg(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:Me(l,d,g,E)}var qh=Ml(oa),_S=Ml(wi);function Yd(l,d,g){var E=rn(l),P=E||Ss(l)||Bl(l);if(d=At(d,4),g==null){var B=l&&l.constructor;P?g=E?new B:[]:Sr(l)?g=xs(B)?kl(id(l)):{}:g={}}return(P?wt:fr)(l,function(Y,Z,ae){return d(g,Y,Z,ae)}),g}function qd(l,d){return l==null?!0:yd(l,d)}function bE(l,d,g){return l==null?l:hh(l,d,xd(g))}function ES(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:hh(l,d,xd(g),E)}function tf(l){return l==null?[]:Mo(l,oa(l))}function SE(l){return l==null?[]:Mo(l,wi(l))}function TS(l,d,g){return g===r&&(g=d,d=r),g!==r&&(g=io(g),g=g===g?g:0),d!==r&&(d=io(d),d=d===d?d:0),Dl(io(l),d,g)}function xE(l,d,g){return d=al(d),g===r?(g=d,d=0):g=al(g),l=io(l),na(l,d,g)}function wE(l,d,g){if(g&&typeof g!="boolean"&&ia(l,d,g)&&(d=g=r),g===r&&(typeof d=="boolean"?(g=d,d=r):typeof l=="boolean"&&(g=l,l=r)),l===r&&d===r?(l=0,d=1):(l=al(l),d===r?(d=l,l=0):d=al(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var P=n0();return ta(l+P*(d-l+fe("1e-"+((P+"").length-1))),d)}return no(l,d)}var NS=$c(function(l,d,g){return d=d.toLowerCase(),l+(g?Kd(d):d)});function Kd(l){return Rg(Gn(l).toLowerCase())}function Xd(l){return l=Gn(l),l&&l.replace(da,gC).replace(Vr,"")}function Kh(l,d,g){l=Gn(l),d=Wa(d);var E=l.length;g=g===r?E:Dl(tn(g),0,E);var P=g;return g-=d.length,g>=0&&l.slice(g,P)==d}function Zd(l){return l=Gn(l),l&&gr.test(l)?l.replace(Cn,yC):l}function Qd(l){return l=Gn(l),l&&Di.test(l)?l.replace(Oa,"\\$&"):l}var CE=$c(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),Cg=$c(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),_g=C0("toLowerCase");function _E(l,d,g){l=Gn(l),d=tn(d);var E=d?Cu(l):0;if(!d||E>=d)return l;var P=(d-E)/2;return Mu(sd(P),g)+l+Mu(Gs(P),g)}function EE(l,d,g){l=Gn(l),d=tn(d);var E=d?Cu(l):0;return d&&E<d?l+Mu(d-E,g):l}function tD(l,d,g){l=Gn(l),d=tn(d);var E=d?Cu(l):0;return d&&E<d?Mu(d-E,g)+l:l}function TE(l,d,g){return g||d==null?d=0:d&&(d=+d),t0(Gn(l).replace(ka,""),d||0)}function NE(l,d,g){return(g?ia(l,d,g):d===r)?d=1:d=tn(d),Fv(Gn(l),d)}function RE(){var l=arguments,d=Gn(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var AE=$c(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function OE(l,d,g){return g&&typeof g!="number"&&ia(l,d,g)&&(d=g=r),g=g===r?we:g>>>0,g?(l=Gn(l),l&&(typeof d=="string"||d!=null&&!Uh(d))&&(d=Wa(d),!d&&bc(l))?ms(Io(l),0,g):l.split(d,g)):[]}var kE=$c(function(l,d,g){return l+(g?" ":"")+Rg(d)});function Eg(l,d,g){return l=Gn(l),g=g==null?0:Dl(tn(g),0,l.length),d=Wa(d),l.slice(g,g+d.length)==d}function DE(l,d,g){var E=L.templateSettings;g&&ia(l,d,g)&&(d=r),l=Gn(l),d=$u({},d,E,bi);var P=$u({},d.imports,E.imports,bi),B=oa(P),Y=Mo(P,B),Z,ae,De=0,Ae=d.interpolate||Qi,Pe="__p += '",Ke=Hs((d.escape||Qi).source+"|"+Ae.source+"|"+(Ae===Jo?$t:Qi).source+"|"+(d.evaluate||Qi).source+"|$","g"),dt="//# sourceURL="+(Kn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vs+"]")+`
`;l.replace(Ke,function(Pt,vn,En,za,dr,qa){return En||(En=za),Pe+=l.slice(De,qa).replace(yu,dv),vn&&(Z=!0,Pe+=`' +
__e(`+vn+`) +
'`),dr&&(ae=!0,Pe+=`';
`+dr+`;
__p += '`),En&&(Pe+=`' +
((__t = (`+En+`)) == null ? '' : __t) +
'`),De=qa+Pt.length,Pt}),Pe+=`';
`;var Ot=Kn.call(d,"variable")&&d.variable;if(!Ot)Pe=`with (obj) {
`+Pe+`
}
`;else if(gn.test(Ot))throw new en(h);Pe=(ae?Pe.replace(Nr,""):Pe).replace(Tn,"$1").replace(ca,"$1;"),Pe="function("+(Ot||"obj")+`) {
`+(Ot?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Pe+`return __p
}`;var cn=AS(function(){return Hn(B,dt+"return "+Pe).apply(r,Y)});if(cn.source=Pe,Fl(cn))throw cn;return cn}function PE(l){return Gn(l).toLowerCase()}function Tg(l){return Gn(l).toUpperCase()}function ME(l,d,g){if(l=Gn(l),l&&(g||d===r))return ls(l);if(!l||!(d=Wa(d)))return l;var E=Io(l),P=Io(d),B=td(E,P),Y=$b(E,P)+1;return ms(E,B,Y).join("")}function Ng(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.slice(0,Gb(l)+1);if(!l||!(d=Wa(d)))return l;var E=Io(l),P=$b(E,Io(d))+1;return ms(E,0,P).join("")}function RS(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.replace(ka,"");if(!l||!(d=Wa(d)))return l;var E=Io(l),P=td(E,Io(d));return ms(E,P).join("")}function IE(l,d){var g=se,E=be;if(Sr(d)){var P="separator"in d?d.separator:P;g="length"in d?tn(d.length):g,E="omission"in d?Wa(d.omission):E}l=Gn(l);var B=l.length;if(bc(l)){var Y=Io(l);B=Y.length}if(g>=B)return l;var Z=g-Cu(E);if(Z<1)return E;var ae=Y?ms(Y,0,Z).join(""):l.slice(0,Z);if(P===r)return ae+E;if(Y&&(Z+=ae.length-Z),Uh(P)){if(l.slice(Z).search(P)){var De,Ae=ae;for(P.global||(P=Hs(P.source,Gn(zn.exec(P))+"g")),P.lastIndex=0;De=P.exec(Ae);)var Pe=De.index;ae=ae.slice(0,Pe===r?Z:Pe)}}else if(l.indexOf(Wa(P),Z)!=Z){var Ke=ae.lastIndexOf(P);Ke>-1&&(ae=ae.slice(0,Ke))}return ae+E}function LE(l){return l=Gn(l),l&&fa.test(l)?l.replace(Fn,xC):l}var FE=$c(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),Rg=C0("toUpperCase");function Ag(l,d,g){return l=Gn(l),d=g?r:d,d===r?SC(l)?_C(l):cv(l):l.match(d)||[]}var AS=mn(function(l,d){try{return pt(l,r,d)}catch(g){return Fl(g)?g:new en(g)}}),zE=tl(function(l,d){return wt(d,function(g){g=Si(g),fs(l,g,Lh(l[g],l))}),l});function BE(l){var d=l==null?0:l.length,g=At();return l=d?Nn(l,function(E){if(typeof E[1]!="function")throw new Li(u);return[g(E[0]),E[1]]}):[],mn(function(E){for(var P=-1;++P<d;){var B=l[P];if(pt(B[0],this,E))return pt(B[1],this,E)}})}function UE(l){return DC(Fi(l,x))}function Og(l){return function(){return l}}function jE(l,d){return l==null||l!==l?d:l}var $E=_0(),kg=_0(!0);function Ci(l){return l}function Dg(l){return m0(typeof l=="function"?l:Fi(l,x))}function VE(l){return g0(Fi(l,x))}function HE(l,d){return Iv(l,Fi(d,x))}var WE=mn(function(l,d){return function(g){return md(g,l,d)}}),GE=mn(function(l,d){return function(g){return md(l,g,d)}});function Pg(l,d,g){var E=oa(d),P=zi(d,E);g==null&&!(Sr(d)&&(P.length||!E.length))&&(g=d,d=l,l=this,P=zi(d,oa(d)));var B=!(Sr(g)&&"chain"in g)||!!g.chain,Y=xs(l);return wt(P,function(Z){var ae=d[Z];l[Z]=ae,Y&&(l.prototype[Z]=function(){var De=this.__chain__;if(B||De){var Ae=l(this.__wrapped__),Pe=Ae.__actions__=ra(this.__actions__);return Pe.push({func:ae,args:arguments,thisArg:l}),Ae.__chain__=De,Ae}return ae.apply(l,gi([this.value()],arguments))})}),l}function YE(){return Vt._===this&&(Vt._=Kb),this}function Mg(){}function OS(l){return l=tn(l),mn(function(d){return b0(d,l)})}var Ig=Hv(Nn),qE=Hv(vi),KE=Hv(uv);function Jd(l){return Nh(l)?Jf(Si(l)):yn(l)}function ep(l){return function(d){return l==null?r:ya(l,d)}}var XE=Wv(),ZE=Wv(!0);function Lg(){return[]}function Fg(){return!1}function QE(){return{}}function JE(){return""}function eT(){return!0}function kS(l,d){if(l=tn(l),l<1||l>Se)return[];var g=we,E=ta(l,we);d=At(d),l-=we;for(var P=Zp(E,d);++g<l;)d(g);return P}function tT(l){return rn(l)?Nn(l,Si):bn(l)?[l]:ra(Qv(Gn(l)))}function nT(l){var d=++Yb;return Gn(l)+d}var rT=Ch(function(l,d){return l+d},0),aT=el("ceil"),iT=Ch(function(l,d){return l/d},1),oT=el("floor");function sT(l){return l&&l.length?ds(l,Ci,Av):r}function lT(l,d){return l&&l.length?ds(l,At(d,2),Av):r}function uT(l){return jb(l,Ci)}function cT(l,d){return jb(l,At(d,2))}function fT(l){return l&&l.length?ds(l,Ci,Mv):r}function dT(l,d){return l&&l.length?ds(l,At(d,2),Mv):r}var pT=Ch(function(l,d){return l*d},1),hT=el("round"),mT=Ch(function(l,d){return l-d},0);function vT(l){return l&&l.length?yc(l,Ci):0}function nf(l,d){return l&&l.length?yc(l,At(d,2)):0}return L.after=$_,L.ary=cg,L.assign=xi,L.assignIn=Jc,L.assignInWith=$u,L.assignWith=Ul,L.at=gS,L.before=rS,L.bind=Lh,L.bindAll=zE,L.bindKey=fg,L.castArray=uS,L.chain=q0,L.chunk=Ah,L.compact=I0,L.concat=ZC,L.cond=BE,L.conforms=UE,L.constant=Og,L.countBy=Z0,L.create=Vu,L.curry=aS,L.curryRight=iS,L.debounce=oS,L.defaults=Hu,L.defaultsDeep=Vh,L.defer=V_,L.delay=H_,L.difference=kd,L.differenceBy=Dd,L.differenceWith=Yc,L.drop=Jv,L.dropRight=L0,L.dropRightWhile=QC,L.dropWhile=JC,L.fill=e_,L.filter=R_,L.flatMap=O_,L.flatMapDeep=k_,L.flatMapDepth=eS,L.flatten=z0,L.flattenDeep=kh,L.flattenDepth=eg,L.flip=W_,L.flow=$E,L.flowRight=kg,L.fromPairs=B0,L.functions=SS,L.functionsIn=fE,L.groupBy=Kc,L.initial=n_,L.intersection=r_,L.intersectionBy=Pd,L.intersectionWith=tg,L.invert=xS,L.invertBy=dE,L.invokeMap=P_,L.iteratee=Dg,L.keyBy=M_,L.keys=oa,L.keysIn=wi,L.map=Ih,L.mapKeys=pE,L.mapValues=hE,L.matches=VE,L.matchesProperty=HE,L.memoize=Fh,L.merge=mE,L.mergeWith=wS,L.method=WE,L.methodOf=GE,L.mixin=Pg,L.negate=zh,L.nthArg=OS,L.omit=vE,L.omitBy=gE,L.once=G_,L.orderBy=I_,L.over=Ig,L.overArgs=Y_,L.overEvery=qE,L.overSome=KE,L.partial=Ya,L.partialRight=Xc,L.partition=L_,L.pick=yE,L.pickBy=CS,L.property=Jd,L.propertyOf=ep,L.pull=$0,L.pullAll=Id,L.pullAllBy=Dh,L.pullAllWith=V0,L.pullAt=ji,L.range=XE,L.rangeRight=ZE,L.rearg=sS,L.reject=z_,L.remove=qc,L.rest=q_,L.reverse=Ld,L.sampleSize=Ud,L.set=xg,L.setWith=wg,L.shuffle=jd,L.slice=Fd,L.sortBy=j_,L.sortedUniq=H0,L.sortedUniqBy=s_,L.split=OE,L.spread=lS,L.tail=l_,L.take=u_,L.takeRight=ag,L.takeRightWhile=c_,L.takeWhile=f_,L.tap=C_,L.throttle=K_,L.thru=Mh,L.toArray=Qc,L.toPairs=qh,L.toPairsIn=_S,L.toPath=tT,L.toPlainObject=gg,L.transform=Yd,L.unary=X_,L.union=d_,L.unionBy=p_,L.unionWith=h_,L.uniq=W0,L.uniqBy=m_,L.uniqWith=v_,L.unset=qd,L.unzip=ig,L.unzipWith=G0,L.update=bE,L.updateWith=ES,L.values=tf,L.valuesIn=SE,L.without=g_,L.words=Ag,L.wrap=Z_,L.xor=y_,L.xorBy=og,L.xorWith=b_,L.zip=S_,L.zipObject=x_,L.zipObjectDeep=Y0,L.zipWith=w_,L.entries=qh,L.entriesIn=_S,L.extend=Jc,L.extendWith=$u,Pg(L,L),L.add=rT,L.attempt=AS,L.camelCase=NS,L.capitalize=Kd,L.ceil=aT,L.clamp=TS,L.clone=cS,L.cloneDeep=J_,L.cloneDeepWith=fS,L.cloneWith=Q_,L.conformsTo=dg,L.deburr=Xd,L.defaultTo=jE,L.divide=iT,L.endsWith=Kh,L.eq=zo,L.escape=Zd,L.escapeRegExp=Qd,L.every=Q0,L.find=J0,L.findIndex=F0,L.findKey=yg,L.findLast=A_,L.findLastIndex=Oh,L.findLastKey=Hh,L.floor=oT,L.forEach=lg,L.forEachRight=ug,L.forIn=Gd,L.forInRight=yS,L.forOwn=Wh,L.forOwnRight=bS,L.get=bg,L.gt=eE,L.gte=tE,L.has=Gh,L.hasIn=ef,L.head=U0,L.identity=Ci,L.includes=D_,L.indexOf=t_,L.inRange=xE,L.invoke=Yh,L.isArguments=Bu,L.isArray=rn,L.isArrayBuffer=nE,L.isArrayLike=Yr,L.isArrayLikeObject=_r,L.isBoolean=$d,L.isBuffer=Ss,L.isDate=rE,L.isElement=aE,L.isEmpty=dS,L.isEqual=iE,L.isEqualWith=Bh,L.isError=Fl,L.isFinite=pg,L.isFunction=xs,L.isInteger=Vd,L.isLength=Hd,L.isMap=hg,L.isMatch=pS,L.isMatchWith=hS,L.isNaN=zl,L.isNative=oE,L.isNil=lE,L.isNull=sE,L.isNumber=Zc,L.isObject=Sr,L.isObjectLike=Er,L.isPlainObject=Uu,L.isRegExp=Uh,L.isSafeInteger=uE,L.isSet=mg,L.isString=jh,L.isSymbol=bn,L.isTypedArray=Bl,L.isUndefined=$h,L.isWeakMap=Wd,L.isWeakSet=mS,L.join=Md,L.kebabCase=CE,L.last=ao,L.lastIndexOf=a_,L.lowerCase=Cg,L.lowerFirst=_g,L.lt=vS,L.lte=vg,L.max=sT,L.maxBy=lT,L.mean=uT,L.meanBy=cT,L.min=fT,L.minBy=dT,L.stubArray=Lg,L.stubFalse=Fg,L.stubObject=QE,L.stubString=JE,L.stubTrue=eT,L.multiply=pT,L.nth=j0,L.noConflict=YE,L.noop=Mg,L.now=zu,L.pad=_E,L.padEnd=EE,L.padStart=tD,L.parseInt=TE,L.random=wE,L.reduce=tS,L.reduceRight=F_,L.repeat=NE,L.replace=RE,L.result=Sg,L.round=hT,L.runInContext=re,L.sample=nS,L.size=B_,L.snakeCase=AE,L.some=U_,L.sortedIndex=i_,L.sortedIndexBy=ng,L.sortedIndexOf=rg,L.sortedLastIndex=zd,L.sortedLastIndexBy=o_,L.sortedLastIndexOf=Ph,L.startCase=kE,L.startsWith=Eg,L.subtract=mT,L.sum=vT,L.sumBy=nf,L.template=DE,L.times=kS,L.toFinite=al,L.toInteger=tn,L.toLength=ju,L.toLower=PE,L.toNumber=io,L.toSafeInteger=cE,L.toString=Gn,L.toUpper=Tg,L.trim=ME,L.trimEnd=Ng,L.trimStart=RS,L.truncate=IE,L.unescape=LE,L.uniqueId=nT,L.upperCase=FE,L.upperFirst=Rg,L.each=lg,L.eachRight=ug,L.first=U0,Pg(L,function(){var l={};return fr(L,function(d,g){Kn.call(L.prototype,g)||(l[g]=d)}),l}(),{chain:!1}),L.VERSION=i,wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){L[l].placeholder=L}),wt(["drop","take"],function(l,d){_n.prototype[l]=function(g){g=g===r?1:Fr(tn(g),0);var E=this.__filtered__&&!d?new _n(this):this.clone();return E.__filtered__?E.__takeCount__=ta(g,E.__takeCount__):E.__views__.push({size:ta(g,we),type:l+(E.__dir__<0?"Right":"")}),E},_n.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),wt(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==ce||g==Ce;_n.prototype[l]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:At(P,3),type:g}),B.__filtered__=B.__filtered__||E,B}}),wt(["head","last"],function(l,d){var g="take"+(d?"Right":"");_n.prototype[l]=function(){return this[g](1).value()[0]}}),wt(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");_n.prototype[l]=function(){return this.__filtered__?new _n(this):this[g](1)}}),_n.prototype.compact=function(){return this.filter(Ci)},_n.prototype.find=function(l){return this.filter(l).head()},_n.prototype.findLast=function(l){return this.reverse().find(l)},_n.prototype.invokeMap=mn(function(l,d){return typeof l=="function"?new _n(this):this.map(function(g){return md(g,l,d)})}),_n.prototype.reject=function(l){return this.filter(zh(At(l)))},_n.prototype.slice=function(l,d){l=tn(l);var g=this;return g.__filtered__&&(l>0||d<0)?new _n(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==r&&(d=tn(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},_n.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},_n.prototype.toArray=function(){return this.take(we)},fr(_n.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),P=L[E?"take"+(d=="last"?"Right":""):d],B=E||/^find/.test(d);!P||(L.prototype[d]=function(){var Y=this.__wrapped__,Z=E?[1]:arguments,ae=Y instanceof _n,De=Z[0],Ae=ae||rn(Y),Pe=function(vn){var En=P.apply(L,gi([vn],Z));return E&&Ke?En[0]:En};Ae&&g&&typeof De=="function"&&De.length!=1&&(ae=Ae=!1);var Ke=this.__chain__,dt=!!this.__actions__.length,Ot=B&&!Ke,cn=ae&&!dt;if(!B&&Ae){Y=cn?Y:new _n(this);var Pt=l.apply(Y,Z);return Pt.__actions__.push({func:Mh,args:[Pe],thisArg:r}),new to(Pt,Ke)}return Ot&&cn?l.apply(this,Z):(Pt=this.thru(Pe),Ot?E?Pt.value()[0]:Pt.value():Pt)})}),wt(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ws[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);L.prototype[l]=function(){var P=arguments;if(E&&!this.__chain__){var B=this.value();return d.apply(rn(B)?B:[],P)}return this[g](function(Y){return d.apply(rn(Y)?Y:[],P)})}}),fr(_n.prototype,function(l,d){var g=L[d];if(g){var E=g.name+"";Kn.call(Ac,E)||(Ac[E]=[]),Ac[E].push({name:d,func:g})}}),Ac[Vc(r,j).name]=[{name:"wrapper",func:r}],_n.prototype.clone=kt,_n.prototype.reverse=Dc,_n.prototype.value=zr,L.prototype.at=__,L.prototype.chain=E_,L.prototype.commit=T_,L.prototype.next=K0,L.prototype.plant=Bd,L.prototype.reverse=N_,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=X0,L.prototype.first=L.prototype.head,od&&(L.prototype[od]=sg),L},xc=EC();R?((R.exports=xc)._=xc,S._=xc):Vt._=xc}).call(lc)})(Zr,Zr.exports);var oc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Rpe=$r(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Ape=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:r})=>{const i=ui(),{intermediateImage:s}=mr(A=>A.gallery),{isProcessing:c,isConnected:u,isGFPGANAvailable:h,isESRGANAvailable:m}=mr(Rpe),v=()=>i(K2(e.url)),b=()=>i(X2(e.metadata)),x=()=>i(Ew(e.metadata.seed)),C=()=>i(Mde(e)),_=()=>i(Ide(e)),N=()=>r(!t);return k(On,{gap:2,children:[k(tu,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:v},void 0,!1,{fileName:oc,lineNumber:71,columnNumber:7},void 0),k(tu,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:b},void 0,!1,{fileName:oc,lineNumber:79,columnNumber:7},void 0),k(tu,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e.metadata.seed,onClick:x},void 0,!1,{fileName:oc,lineNumber:87,columnNumber:7},void 0),k(tu,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!m||Boolean(s)||!(u&&!c),onClick:C},void 0,!1,{fileName:oc,lineNumber:96,columnNumber:7},void 0),k(tu,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!h||Boolean(s)||!(u&&!c),onClick:_},void 0,!1,{fileName:oc,lineNumber:108,columnNumber:7},void 0),k(tu,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:N},void 0,!1,{fileName:oc,lineNumber:120,columnNumber:7},void 0),k(BU,{image:e,children:k(tu,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(s)},void 0,!1,{fileName:oc,lineNumber:129,columnNumber:9},void 0)},void 0,!1,{fileName:oc,lineNumber:128,columnNumber:7},void 0)]},void 0,!0,{fileName:oc,lineNumber:70,columnNumber:5},void 0)};var Cf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const Ope="calc(100vh - 238px)",kpe=()=>{const{currentImage:e,intermediateImage:t}=mr(u=>u.gallery),r=Im("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[i,s]=D.exports.useState(!1),c=t||e;return c?k(On,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[k(Ape,{image:c,shouldShowImageDetails:i,setShouldShowImageDetails:s},void 0,!1,{fileName:Cf,lineNumber:31,columnNumber:7},void 0),k(sw,{height:Ope,position:"relative",children:[k(cb,{src:c.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Cf,lineNumber:37,columnNumber:9},void 0),i&&k(On,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:r,overflow:"scroll",children:k(Tpe,{image:c},void 0,!1,{fileName:Cf,lineNumber:55,columnNumber:13},void 0)},void 0,!1,{fileName:Cf,lineNumber:44,columnNumber:11},void 0)]},void 0,!0,{fileName:Cf,lineNumber:36,columnNumber:7},void 0)]},void 0,!0,{fileName:Cf,lineNumber:30,columnNumber:5},void 0):k(sw,{height:"100%",position:"relative",children:k(Or,{size:"xl",children:"No image selected"},void 0,!1,{fileName:Cf,lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:Cf,lineNumber:61,columnNumber:5},void 0)};var yl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/LogViewer.tsx";const Dpe=$r(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),Ppe=$r(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Mpe=()=>{const e=ui(),t=mr(Dpe),{shouldShowLogViewer:r}=mr(Ppe),i=Im("gray.50","gray.900"),s=Im("gray.500","gray.500"),[c,u]=D.exports.useState(!0),h=D.exports.useRef(null);return D.exports.useLayoutEffect(()=>{h.current!==null&&c&&(h.current.scrollTop=h.current.scrollHeight)},[c]),k(yo,{children:[r&&k(On,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:s,background:i,ref:h,children:t.map((m,v)=>k(On,{gap:2,children:[k(Or,{fontSize:"sm",fontWeight:"semibold",children:[m.timestamp,":"]},void 0,!0,{fileName:yl,lineNumber:83,columnNumber:15},void 0),k(Or,{fontSize:"sm",wordBreak:"break-all",children:m.message},void 0,!1,{fileName:yl,lineNumber:86,columnNumber:15},void 0)]},v,!0,{fileName:yl,lineNumber:82,columnNumber:13},void 0))},void 0,!1,{fileName:yl,lineNumber:63,columnNumber:9},void 0),r&&k(jO,{label:c?"Autoscroll on":"Autoscroll off",children:k(Ds,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:c?"blue":"gray",icon:k(mpe,{},void 0,!1,{fileName:yl,lineNumber:103,columnNumber:19},void 0),onClick:()=>u(!c)},void 0,!1,{fileName:yl,lineNumber:95,columnNumber:11},void 0)},void 0,!1,{fileName:yl,lineNumber:94,columnNumber:9},void 0),k(jO,{label:r?"Hide logs":"Show logs",children:k(Ds,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:r?k(bpe,{},void 0,!1,{fileName:yl,lineNumber:116,columnNumber:39},void 0):k(gpe,{},void 0,!1,{fileName:yl,lineNumber:116,columnNumber:53},void 0),onClick:()=>e(jfe(!r))},void 0,!1,{fileName:yl,lineNumber:109,columnNumber:9},void 0)},void 0,!1,{fileName:yl,lineNumber:108,columnNumber:7},void 0)]},void 0,!0)};var Ipe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/PromptInput.tsx";const Lpe=()=>{const{prompt:e}=mr(i=>i.sd),t=ui(),r=i=>t(Yce(i.target.value));return k(h6,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:r,value:e,placeholder:"I'm dreaming of..."},void 0,!1,{fileName:Ipe,lineNumber:18,columnNumber:5},void 0)};var Fpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/ProgressBar.tsx";const zpe=$r(e=>e.sd,e=>({realSteps:e.realSteps}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Bpe=()=>{const{realSteps:e}=mr(zpe),{currentStep:t}=mr(i=>i.system),r=Math.round(t*100/e);return k(c6,{height:"10px",value:r,isIndeterminate:r<0||t===e},void 0,!1,{fileName:Fpe,lineNumber:27,columnNumber:9},void 0)},Upe=$r(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),jpe=$r(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),$pe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:r,maskPath:i,initialImagePath:s,seed:c}=mr(Upe),{isProcessing:u,isConnected:h}=mr(jpe);return D.exports.useMemo(()=>!(!e||i&&!s||u||!h||t&&(!(dC(r)||r==="")||c===-1)),[e,i,s,u,h,t,r,c])};var NA="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ProcessButtons.tsx";const Vpe=$r(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Hpe=()=>{const e=ui(),{isProcessing:t,isConnected:r}=mr(Vpe),i=$pe();return k(On,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[k(tu,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!i,fontSize:"md",size:"md",onClick:()=>e(Pde())},void 0,!1,{fileName:NA,lineNumber:45,columnNumber:7},void 0),k(tu,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!r||!t,onClick:()=>e(zde())},void 0,!1,{fileName:NA,lineNumber:55,columnNumber:7},void 0)]},void 0,!0,{fileName:NA,lineNumber:39,columnNumber:5},void 0)};var Os="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Wpe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,Gpe=D.exports.memo(e=>{const[t,r]=D.exports.useState(!1),i=ui(),s=Im("green.600","green.300"),c=Im("gray.200","gray.700"),u=Im("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:h,isSelected:m}=e,{url:v,uuid:b,metadata:x}=h,C=()=>r(!0),_=()=>r(!1),N=j=>{j.stopPropagation(),i(X2(x))},A=j=>{j.stopPropagation(),i(Ew(h.metadata.seed))};return k(Ip,{position:"relative",children:[k(cb,{width:120,height:120,objectFit:"cover",rounded:"md",src:v,loading:"lazy",backgroundColor:c},void 0,!1,{fileName:Os,lineNumber:62,columnNumber:7},void 0),k(On,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:m?u:void 0,onClick:()=>i(Tfe(h)),onMouseOver:C,onMouseOut:_,children:[m&&k(El,{fill:s,width:"50%",height:"50%",as:vpe},void 0,!1,{fileName:Os,lineNumber:87,columnNumber:11},void 0),t&&k(On,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[k(BU,{image:h,children:k(Ds,{colorScheme:"red","aria-label":"Delete image",icon:k(zU,{},void 0,!1,{fileName:Os,lineNumber:101,columnNumber:23},void 0),size:"xs",fontSize:15},void 0,!1,{fileName:Os,lineNumber:98,columnNumber:15},void 0)},void 0,!1,{fileName:Os,lineNumber:97,columnNumber:13},void 0),k(Ds,{"aria-label":"Use all parameters",colorScheme:"blue",icon:k(ype,{},void 0,!1,{fileName:Os,lineNumber:109,columnNumber:21},void 0),size:"xs",fontSize:15,onClickCapture:N},void 0,!1,{fileName:Os,lineNumber:106,columnNumber:13},void 0),h.metadata.seed&&k(Ds,{"aria-label":"Use seed",colorScheme:"blue",icon:k(wpe,{},void 0,!1,{fileName:Os,lineNumber:118,columnNumber:23},void 0),size:"xs",fontSize:16,onClickCapture:A},void 0,!1,{fileName:Os,lineNumber:115,columnNumber:15},void 0)]},void 0,!0,{fileName:Os,lineNumber:90,columnNumber:11},void 0)]},void 0,!0,{fileName:Os,lineNumber:71,columnNumber:7},void 0)]},b,!0,{fileName:Os,lineNumber:61,columnNumber:5},void 0)},Wpe);var JF="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";const Ype=()=>{const{images:e,currentImageUuid:t}=mr(r=>r.gallery);return k(On,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(r=>{const{uuid:i}=r;return k(Gpe,{image:r,isSelected:t===i},i,!1,{fileName:JF,lineNumber:28,columnNumber:11},void 0)})},void 0,!1,{fileName:JF,lineNumber:23,columnNumber:5},void 0)};function qpe(e){return Zo({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 Kpe(e){return Zo({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)}var hr="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal.tsx";const Xpe=$r(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}},{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Zpe=({children:e})=>{const{isOpen:t,onOpen:r,onClose:i}=bO(),{isOpen:s,onOpen:c,onClose:u}=bO(),{shouldDisplayInProgress:h,shouldConfirmOnDelete:m}=mr(Xpe),v=ui(),b=()=>{ZU.purge().then(()=>{i(),c()})};return k(yo,{children:[D.exports.cloneElement(e,{onClick:r}),k(mb,{isOpen:t,onClose:i,children:[k(mw,{},void 0,!1,{fileName:hr,lineNumber:89,columnNumber:9},void 0),k(hw,{children:[k(O2,{children:"Settings"},void 0,!1,{fileName:hr,lineNumber:91,columnNumber:11},void 0),k(e6,{},void 0,!1,{fileName:hr,lineNumber:92,columnNumber:11},void 0),k(pw,{children:k(On,{gap:5,direction:"column",children:[k(Vf,{children:k(uw,{children:[k(Hf,{marginBottom:1,children:"Display in-progress images (slower)"},void 0,!1,{fileName:hr,lineNumber:97,columnNumber:19},void 0),k(zf,{isChecked:h,onChange:x=>v(Ufe(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:100,columnNumber:19},void 0)]},void 0,!0,{fileName:hr,lineNumber:96,columnNumber:17},void 0)},void 0,!1,{fileName:hr,lineNumber:95,columnNumber:15},void 0),k(Vf,{children:k(uw,{children:[k(Hf,{marginBottom:1,children:"Confirm on delete"},void 0,!1,{fileName:hr,lineNumber:110,columnNumber:19},void 0),k(zf,{isChecked:m,onChange:x=>v(fU(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:111,columnNumber:19},void 0)]},void 0,!0,{fileName:hr,lineNumber:109,columnNumber:17},void 0)},void 0,!1,{fileName:hr,lineNumber:108,columnNumber:15},void 0),k(c2,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:hr,lineNumber:120,columnNumber:15},void 0),k(Or,{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:hr,lineNumber:121,columnNumber:15},void 0),k(Or,{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:hr,lineNumber:126,columnNumber:15},void 0),k(hu,{colorScheme:"red",onClick:b,children:"Reset Web UI"},void 0,!1,{fileName:hr,lineNumber:131,columnNumber:15},void 0)]},void 0,!0,{fileName:hr,lineNumber:94,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:93,columnNumber:11},void 0),k(A2,{children:k(hu,{onClick:i,children:"Close"},void 0,!1,{fileName:hr,lineNumber:138,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:137,columnNumber:11},void 0)]},void 0,!0,{fileName:hr,lineNumber:90,columnNumber:9},void 0)]},void 0,!0,{fileName:hr,lineNumber:88,columnNumber:7},void 0),k(mb,{closeOnOverlayClick:!1,isOpen:s,onClose:u,isCentered:!0,children:[k(mw,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:hr,lineNumber:149,columnNumber:9},void 0),k(hw,{children:k(pw,{pb:6,pt:6,children:k(On,{justifyContent:"center",children:k(Or,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:hr,lineNumber:153,columnNumber:15},void 0)},void 0,!1,{fileName:hr,lineNumber:152,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:hr,lineNumber:150,columnNumber:9},void 0)]},void 0,!0,{fileName:hr,lineNumber:143,columnNumber:7},void 0)]},void 0,!0)};var Ri="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/SiteHeader.tsx";const Qpe=$r(e=>e.system,e=>({isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),Jpe=()=>{const{colorMode:e,toggleColorMode:t}=kw(),{isConnected:r}=mr(Qpe),i=r?"Connected to server":"No connection to server",s=r?"green.500":"red.500",c=e=="light"?k(Spe,{},void 0,!1,{fileName:Ri,lineNumber:43,columnNumber:48},void 0):k(Cpe,{},void 0,!1,{fileName:Ri,lineNumber:43,columnNumber:61},void 0),u=e=="light"?18:20;return k(On,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[k(c2,{size:"lg",children:"Stable Diffusion Dream Server"},void 0,!1,{fileName:Ri,lineNumber:50,columnNumber:7},void 0),k(Kz,{},void 0,!1,{fileName:Ri,lineNumber:52,columnNumber:7},void 0),k(Or,{textColor:s,children:i},void 0,!1,{fileName:Ri,lineNumber:54,columnNumber:7},void 0),k(Zpe,{children:k(Ds,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:k(Kpe,{},void 0,!1,{fileName:Ri,lineNumber:62,columnNumber:17},void 0)},void 0,!1,{fileName:Ri,lineNumber:57,columnNumber:9},void 0)},void 0,!1,{fileName:Ri,lineNumber:56,columnNumber:7},void 0),k(Ds,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:k(lw,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:k(qpe,{},void 0,!1,{fileName:Ri,lineNumber:76,columnNumber:13},void 0)},void 0,!1,{fileName:Ri,lineNumber:72,columnNumber:11},void 0)},void 0,!1,{fileName:Ri,lineNumber:66,columnNumber:7},void 0),k(Ds,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:k(lw,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:k(hpe,{},void 0,!1,{fileName:Ri,lineNumber:88,columnNumber:13},void 0)},void 0,!1,{fileName:Ri,lineNumber:87,columnNumber:11},void 0)},void 0,!1,{fileName:Ri,lineNumber:81,columnNumber:7},void 0),k(Ds,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:u,icon:c},void 0,!1,{fileName:Ri,lineNumber:93,columnNumber:7},void 0)]},void 0,!0,{fileName:Ri,lineNumber:49,columnNumber:5},void 0)};var sc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDNumberInput.tsx";const Uf=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:s="sm",width:c,isInvalid:u,...h}=e;return k(Vf,{isDisabled:r,width:c,isInvalid:u,children:k(On,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&k(Hf,{marginBottom:1,children:k(Or,{fontSize:i,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:sc,lineNumber:37,columnNumber:13},void 0)},void 0,!1,{fileName:sc,lineNumber:36,columnNumber:11},void 0),k(a6,{size:s,...h,keepWithinRange:!1,clampValueOnBlur:!0,children:[k(o6,{fontSize:"md"},void 0,!1,{fileName:sc,lineNumber:48,columnNumber:11},void 0),k(i6,{children:[k(u6,{},void 0,!1,{fileName:sc,lineNumber:50,columnNumber:13},void 0),k(l6,{},void 0,!1,{fileName:sc,lineNumber:51,columnNumber:13},void 0)]},void 0,!0,{fileName:sc,lineNumber:49,columnNumber:11},void 0)]},void 0,!0,{fileName:sc,lineNumber:42,columnNumber:9},void 0)]},void 0,!0,{fileName:sc,lineNumber:34,columnNumber:7},void 0)},void 0,!1,{fileName:sc,lineNumber:33,columnNumber:5},void 0)};var gx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDSwitch.tsx";const Tw=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:s="md",width:c,...u}=e;return k(Vf,{isDisabled:r,width:c,children:k(On,{justifyContent:"space-between",alignItems:"center",children:[t&&k(Hf,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:gx,lineNumber:30,columnNumber:11},void 0),k(zf,{size:s,...u},void 0,!1,{fileName:gx,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:gx,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:gx,lineNumber:27,columnNumber:5},void 0)};var po="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SeedVariationOptions.tsx";const ehe=$r(e=>e.sd,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),the=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:r,shouldRandomizeSeed:i,seed:s,iterations:c}=mr(ehe),u=ui(),h=N=>u(qce(Number(N))),m=N=>u(pfe(N.target.checked)),v=N=>u(Ew(Number(N))),b=()=>u(Ew(oU(ZO,QO))),x=N=>u(lfe(N.target.checked)),C=N=>u(cfe(Number(N))),_=N=>u(ufe(N.target.value));return k(On,{gap:2,direction:"column",children:[k(Uf,{label:"Images to generate",step:1,min:1,precision:0,onChange:h,value:c},void 0,!1,{fileName:po,lineNumber:87,columnNumber:7},void 0),k(Tw,{label:"Randomize seed on generation",isChecked:i,onChange:m},void 0,!1,{fileName:po,lineNumber:95,columnNumber:7},void 0),k(On,{gap:2,children:[k(Uf,{label:"Seed",step:1,precision:0,flexGrow:1,min:ZO,max:QO,isDisabled:i,isInvalid:s<0&&e,onChange:v,value:s},void 0,!1,{fileName:po,lineNumber:101,columnNumber:9},void 0),k(hu,{size:"sm",isDisabled:i,onClick:b,children:k(Or,{pl:2,pr:2,children:"Shuffle"},void 0,!1,{fileName:po,lineNumber:118,columnNumber:11},void 0)},void 0,!1,{fileName:po,lineNumber:113,columnNumber:9},void 0)]},void 0,!0,{fileName:po,lineNumber:100,columnNumber:7},void 0),k(Tw,{label:"Generate variations",isChecked:e,width:"auto",onChange:x},void 0,!1,{fileName:po,lineNumber:123,columnNumber:7},void 0),k(Uf,{label:"Variation amount",value:t,step:.01,min:0,max:1,onChange:C},void 0,!1,{fileName:po,lineNumber:129,columnNumber:7},void 0),k(Vf,{isInvalid:e&&!(dC(r)||r===""),flexGrow:1,children:k(uw,{children:[k(Hf,{marginInlineEnd:0,marginBottom:1,children:k(Or,{whiteSpace:"nowrap",children:"Seed Weights"},void 0,!1,{fileName:po,lineNumber:146,columnNumber:13},void 0)},void 0,!1,{fileName:po,lineNumber:145,columnNumber:11},void 0),k(s2,{size:"sm",value:r,onChange:_},void 0,!1,{fileName:po,lineNumber:148,columnNumber:11},void 0)]},void 0,!0,{fileName:po,lineNumber:144,columnNumber:9},void 0)},void 0,!1,{fileName:po,lineNumber:137,columnNumber:7},void 0)]},void 0,!0,{fileName:po,lineNumber:86,columnNumber:5},void 0)};var Sp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDSelect.tsx";const Nw=e=>{const{label:t,isDisabled:r,validValues:i,size:s="sm",fontSize:c="md",marginBottom:u=1,whiteSpace:h="nowrap",...m}=e;return k(Vf,{isDisabled:r,children:k(On,{justifyContent:"space-between",alignItems:"center",children:[k(Hf,{marginBottom:u,children:k(Or,{fontSize:c,whiteSpace:h,children:t},void 0,!1,{fileName:Sp,lineNumber:34,columnNumber:11},void 0)},void 0,!1,{fileName:Sp,lineNumber:33,columnNumber:9},void 0),k(d6,{fontSize:c,size:s,...m,children:i.map(v=>typeof v=="string"||typeof v=="number"?k("option",{value:v,children:v},v,!1,{fileName:Sp,lineNumber:41,columnNumber:15},void 0):k("option",{value:v.value,children:v.key},v.value,!1,{fileName:Sp,lineNumber:45,columnNumber:15},void 0))},void 0,!1,{fileName:Sp,lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:Sp,lineNumber:32,columnNumber:7},void 0)},void 0,!1,{fileName:Sp,lineNumber:31,columnNumber:5},void 0)};var yx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SamplerOptions.tsx";const nhe=$r(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),rhe=()=>{const e=ui(),{steps:t,cfgScale:r,sampler:i}=mr(nhe);return k(On,{gap:2,direction:"column",children:[k(Uf,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(Kce(Number(h))),value:t},void 0,!1,{fileName:yx,lineNumber:50,columnNumber:7},void 0),k(Uf,{label:"CFG scale",step:.5,onChange:h=>e(Xce(Number(h))),value:r},void 0,!1,{fileName:yx,lineNumber:58,columnNumber:7},void 0),k(Nw,{label:"Sampler",value:i,onChange:h=>e(Jce(h.target.value)),validValues:Sfe},void 0,!1,{fileName:yx,lineNumber:64,columnNumber:7},void 0)]},void 0,!0,{fileName:yx,lineNumber:49,columnNumber:5},void 0)};var RA="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ESRGANOptions.tsx";const ahe=$r(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),ihe=$r(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),ohe=()=>{const e=ui(),{upscalingLevel:t,upscalingStrength:r}=mr(ahe),{isESRGANAvailable:i}=mr(ihe);return k(On,{direction:"column",gap:2,children:[k(Nw,{isDisabled:!i,label:"Scale",value:t,onChange:u=>e(rfe(Number(u.target.value))),validValues:Cfe},void 0,!1,{fileName:RA,lineNumber:67,columnNumber:7},void 0),k(Uf,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:u=>e(afe(Number(u))),value:r},void 0,!1,{fileName:RA,lineNumber:74,columnNumber:7},void 0)]},void 0,!0,{fileName:RA,lineNumber:66,columnNumber:5},void 0)};var e3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/GFPGANOptions.tsx";const she=$r(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),lhe=$r(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),uhe=()=>{const e=ui(),{gfpganStrength:t}=mr(she),{isGFPGANAvailable:r}=mr(lhe);return k(On,{direction:"column",gap:2,children:k(Uf,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(nfe(Number(s))),value:t},void 0,!1,{fileName:e3,lineNumber:55,columnNumber:7},void 0)},void 0,!1,{fileName:e3,lineNumber:54,columnNumber:5},void 0)};var Ay="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OutputOptions.tsx";const che=$r(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),fhe=()=>{const e=ui(),{height:t,width:r,seamless:i}=mr(che);return k(On,{gap:2,direction:"column",children:[k(On,{gap:2,children:[k(Nw,{label:"Width",value:r,flexGrow:1,onChange:h=>e(Qce(Number(h.target.value))),validValues:xfe},void 0,!1,{fileName:Ay,lineNumber:51,columnNumber:9},void 0),k(Nw,{label:"Height",value:t,flexGrow:1,onChange:h=>e(Zce(Number(h.target.value))),validValues:wfe},void 0,!1,{fileName:Ay,lineNumber:58,columnNumber:9},void 0)]},void 0,!0,{fileName:Ay,lineNumber:50,columnNumber:7},void 0),k(Tw,{label:"Seamless tiling",fontSize:"md",isChecked:i,onChange:h=>e(efe(h.target.checked))},void 0,!1,{fileName:Ay,lineNumber:66,columnNumber:7},void 0)]},void 0,!0,{fileName:Ay,lineNumber:49,columnNumber:5},void 0)};var dhe=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 Bb(e,t){var r=phe(e);if(typeof r.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function phe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var i=t.split(".").pop().toLowerCase(),s=dhe.get(i);s&&Object.defineProperty(e,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return e}var hhe=[".DS_Store","Thumbs.db"];function mhe(e){return rv(this,void 0,void 0,function(){return av(this,function(t){return Rw(e)&&vhe(e.dataTransfer)?[2,She(e.dataTransfer,e.type)]:ghe(e)?[2,yhe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,bhe(e)]:[2,[]]})})}function vhe(e){return Rw(e)}function ghe(e){return Rw(e)&&Rw(e.target)}function Rw(e){return typeof e=="object"&&e!==null}function yhe(e){return ok(e.target.files).map(function(t){return Bb(t)})}function bhe(e){return rv(this,void 0,void 0,function(){var t;return av(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(i){return Bb(i)})]}})})}function She(e,t){return rv(this,void 0,void 0,function(){var r,i;return av(this,function(s){switch(s.label){case 0:return e.items?(r=ok(e.items).filter(function(c){return c.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(xhe))]):[3,2];case 1:return i=s.sent(),[2,t3(UU(i))];case 2:return[2,t3(ok(e.files).map(function(c){return Bb(c)}))]}})})}function t3(e){return e.filter(function(t){return hhe.indexOf(t.name)===-1})}function ok(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var i=e[r];t.push(i)}return t}function xhe(e){if(typeof e.webkitGetAsEntry!="function")return n3(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jU(t):n3(e)}function UU(e){return e.reduce(function(t,r){return qA(qA([],YI(t),!1),YI(Array.isArray(r)?UU(r):[r]),!1)},[])}function n3(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Bb(t);return Promise.resolve(r)}function whe(e){return rv(this,void 0,void 0,function(){return av(this,function(t){return[2,e.isDirectory?jU(e):Che(e)]})})}function jU(e){var t=e.createReader();return new Promise(function(r,i){var s=[];function c(){var u=this;t.readEntries(function(h){return rv(u,void 0,void 0,function(){var m,v,b;return av(this,function(x){switch(x.label){case 0:if(h.length)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,Promise.all(s)];case 2:return m=x.sent(),r(m),[3,4];case 3:return v=x.sent(),i(v),[3,4];case 4:return[3,6];case 5:b=Promise.all(h.map(whe)),s.push(b),c(),x.label=6;case 6:return[2]}})})},function(h){i(h)})}c()})}function Che(e){return rv(this,void 0,void 0,function(){return av(this,function(t){return[2,new Promise(function(r,i){e.file(function(s){var c=Bb(s,e.fullPath);r(c)},function(s){i(s)})})]})})}var _he=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),i=e.name||"",s=(e.type||"").toLowerCase(),c=s.replace(/\/.*$/,"");return r.some(function(u){var h=u.trim().toLowerCase();return h.charAt(0)==="."?i.toLowerCase().endsWith(h):h.endsWith("/*")?c===h.replace(/\/.*$/,""):s===h})}return!0};function r3(e){return Nhe(e)||The(e)||VU(e)||Ehe()}function Ehe(){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 The(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nhe(e){if(Array.isArray(e))return sk(e)}function a3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function i3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a3(Object(r),!0).forEach(function(i){$U(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a3(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sb(e,t){return Ohe(e)||Ahe(e,t)||VU(e,t)||Rhe()}function Rhe(){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 VU(e,t){if(!!e){if(typeof e=="string")return sk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sk(e,t)}}function sk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Ahe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],s=!0,c=!1,u,h;try{for(r=r.call(e);!(s=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));s=!0);}catch(m){c=!0,h=m}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function Ohe(e){if(Array.isArray(e))return e}var khe="file-invalid-type",Dhe="file-too-large",Phe="file-too-small",Mhe="too-many-files",Ihe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:khe,message:"File type must be ".concat(r)}},o3=function(t){return{code:Dhe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},s3=function(t){return{code:Phe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Lhe={code:Mhe,message:"Too many files"};function HU(e,t){var r=e.type==="application/x-moz-file"||_he(e,t);return[r,r?null:Ihe(t)]}function WU(e,t,r){if(Op(e.size))if(Op(t)&&Op(r)){if(e.size>r)return[!1,o3(r)];if(e.size<t)return[!1,s3(t)]}else{if(Op(t)&&e.size<t)return[!1,s3(t)];if(Op(r)&&e.size>r)return[!1,o3(r)]}return[!0,null]}function Op(e){return e!=null}function Fhe(e){var t=e.files,r=e.accept,i=e.minSize,s=e.maxSize,c=e.multiple,u=e.maxFiles,h=e.validator;return!c&&t.length>1||c&&u>=1&&t.length>u?!1:t.every(function(m){var v=HU(m,r),b=Sb(v,1),x=b[0],C=WU(m,i,s),_=Sb(C,1),N=_[0],A=h?h(m):null;return x&&N&&!A})}function Aw(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function bx(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 l3(e){e.preventDefault()}function zhe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Bhe(e){return e.indexOf("Edge/")!==-1}function Uhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zhe(e)||Bhe(e)}function Jl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return t.some(function(h){return!Aw(i)&&h&&h.apply(void 0,[i].concat(c)),Aw(i)})}}function jhe(){return"showOpenFilePicker"in window}function $he(e){if(Op(e)){var t=Object.entries(e).filter(function(r){var i=Sb(r,2),s=i[0],c=i[1],u=!0;return GU(s)||(console.warn('Skipped "'.concat(s,'" 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.')),u=!1),(!Array.isArray(c)||!c.every(YU))&&(console.warn('Skipped "'.concat(s,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(r,i){var s=Sb(i,2),c=s[0],u=s[1];return i3(i3({},r),{},$U({},c,u))},{});return[{accept:t}]}return e}function Vhe(e){if(Op(e))return Object.entries(e).reduce(function(t,r){var i=Sb(r,2),s=i[0],c=i[1];return[].concat(r3(t),[s],r3(c))},[]).filter(function(t){return GU(t)||YU(t)}).join(",")}function Hhe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Whe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function GU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function YU(e){return/^.*\.[\w]+$/.test(e)}var Ghe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",Yhe=["children"],qhe=["open"],Khe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Xhe=["refKey","onChange","onClick"];function Zhe(e){return eme(e)||Jhe(e)||qU(e)||Qhe()}function Qhe(){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 Jhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eme(e){if(Array.isArray(e))return lk(e)}function AA(e,t){return rme(e)||nme(e,t)||qU(e,t)||tme()}function tme(){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 qU(e,t){if(!!e){if(typeof e=="string")return lk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lk(e,t)}}function lk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function nme(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],s=!0,c=!1,u,h;try{for(r=r.call(e);!(s=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));s=!0);}catch(m){c=!0,h=m}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function rme(e){if(Array.isArray(e))return e}function u3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u3(Object(r),!0).forEach(function(i){uk(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u3(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function uk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ow(e,t){if(e==null)return{};var r=ame(e,t),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)i=c[s],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function ame(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var J2=D.exports.forwardRef(function(e,t){var r=e.children,i=Ow(e,Yhe),s=XU(i),c=s.open,u=Ow(s,qhe);return D.exports.useImperativeHandle(t,function(){return{open:c}},[c]),k(D.exports.Fragment,{children:r(Ir(Ir({},u),{},{open:c}))},void 0,!1,{fileName:Ghe,lineNumber:70,columnNumber:23},this)});J2.displayName="Dropzone";var KU={disabled:!1,getFilesFromEvent:mhe,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};J2.defaultProps=KU;J2.propTypes={children:_t.exports.func,accept:_t.exports.objectOf(_t.exports.arrayOf(_t.exports.string)),multiple:_t.exports.bool,preventDropOnDocument:_t.exports.bool,noClick:_t.exports.bool,noKeyboard:_t.exports.bool,noDrag:_t.exports.bool,noDragEventsBubbling:_t.exports.bool,minSize:_t.exports.number,maxSize:_t.exports.number,maxFiles:_t.exports.number,disabled:_t.exports.bool,getFilesFromEvent:_t.exports.func,onFileDialogCancel:_t.exports.func,onFileDialogOpen:_t.exports.func,useFsAccessApi:_t.exports.bool,autoFocus:_t.exports.bool,onDragEnter:_t.exports.func,onDragLeave:_t.exports.func,onDragOver:_t.exports.func,onDrop:_t.exports.func,onDropAccepted:_t.exports.func,onDropRejected:_t.exports.func,onError:_t.exports.func,validator:_t.exports.func};var ck={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function XU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ir(Ir({},KU),e),r=t.accept,i=t.disabled,s=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,h=t.multiple,m=t.maxFiles,v=t.onDragEnter,b=t.onDragLeave,x=t.onDragOver,C=t.onDrop,_=t.onDropAccepted,N=t.onDropRejected,A=t.onFileDialogCancel,I=t.onFileDialogOpen,j=t.useFsAccessApi,M=t.autoFocus,z=t.preventDropOnDocument,U=t.noClick,V=t.noKeyboard,K=t.noDrag,X=t.noDragEventsBubbling,de=t.onError,ve=t.validator,se=D.exports.useMemo(function(){return Vhe(r)},[r]),be=D.exports.useMemo(function(){return $he(r)},[r]),Xe=D.exports.useMemo(function(){return typeof I=="function"?I:c3},[I]),ie=D.exports.useMemo(function(){return typeof A=="function"?A:c3},[A]),ce=D.exports.useRef(null),Re=D.exports.useRef(null),Ce=D.exports.useReducer(ime,ck),oe=AA(Ce,2),Se=oe[0],Te=oe[1],pe=Se.isFocused,we=Se.isFileDialogActive,Ie=D.exports.useRef(typeof window<"u"&&window.isSecureContext&&j&&jhe()),Le=function(){!Ie.current&&we&&setTimeout(function(){if(Re.current){var Ze=Re.current.files;Ze.length||(Te({type:"closeDialog"}),ie())}},300)};D.exports.useEffect(function(){return window.addEventListener("focus",Le,!1),function(){window.removeEventListener("focus",Le,!1)}},[Re,we,ie,Ie]);var Ye=D.exports.useRef([]),st=function(Ze){ce.current&&ce.current.contains(Ze.target)||(Ze.preventDefault(),Ye.current=[])};D.exports.useEffect(function(){return z&&(document.addEventListener("dragover",l3,!1),document.addEventListener("drop",st,!1)),function(){z&&(document.removeEventListener("dragover",l3),document.removeEventListener("drop",st))}},[ce,z]),D.exports.useEffect(function(){return!i&&M&&ce.current&&ce.current.focus(),function(){}},[ce,M,i]);var mt=D.exports.useCallback(function(Ve){de?de(Ve):console.error(Ve)},[de]),Gt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[].concat(Zhe(Ye.current),[Ve.target]),bx(Ve)&&Promise.resolve(s(Ve)).then(function(Ze){if(!(Aw(Ve)&&!X)){var Jt=Ze.length,Tt=Jt>0&&Fhe({files:Ze,accept:se,minSize:u,maxSize:c,multiple:h,maxFiles:m,validator:ve}),ke=Jt>0&&!Tt;Te({isDragAccept:Tt,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),v&&v(Ve)}}).catch(function(Ze){return mt(Ze)})},[s,v,mt,X,se,u,c,h,m,ve]),Qe=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=bx(Ve);if(Ze&&Ve.dataTransfer)try{Ve.dataTransfer.dropEffect="copy"}catch{}return Ze&&x&&x(Ve),!1},[x,X]),vt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=Ye.current.filter(function(Tt){return ce.current&&ce.current.contains(Tt)}),Jt=Ze.indexOf(Ve.target);Jt!==-1&&Ze.splice(Jt,1),Ye.current=Ze,!(Ze.length>0)&&(Te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bx(Ve)&&b&&b(Ve))},[ce,b,X]),Et=D.exports.useCallback(function(Ve,Ze){var Jt=[],Tt=[];Ve.forEach(function(ke){var jt=HU(ke,se),xn=AA(jt,2),je=xn[0],rt=xn[1],xt=WU(ke,u,c),dn=AA(xt,2),Xt=dn[0],wn=dn[1],Dn=ve?ve(ke):null;if(je&&Xt&&!Dn)Jt.push(ke);else{var Nr=[rt,wn];Dn&&(Nr=Nr.concat(Dn)),Tt.push({file:ke,errors:Nr.filter(function(Tn){return Tn})})}}),(!h&&Jt.length>1||h&&m>=1&&Jt.length>m)&&(Jt.forEach(function(ke){Tt.push({file:ke,errors:[Lhe]})}),Jt.splice(0)),Te({acceptedFiles:Jt,fileRejections:Tt,type:"setFiles"}),C&&C(Jt,Tt,Ze),Tt.length>0&&N&&N(Tt,Ze),Jt.length>0&&_&&_(Jt,Ze)},[Te,h,se,u,c,m,C,_,N,ve]),zt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[],bx(Ve)&&Promise.resolve(s(Ve)).then(function(Ze){Aw(Ve)&&!X||Et(Ze,Ve)}).catch(function(Ze){return mt(Ze)}),Te({type:"reset"})},[s,Et,mt,X]),We=D.exports.useCallback(function(){if(Ie.current){Te({type:"openDialog"}),Xe();var Ve={multiple:h,types:be};window.showOpenFilePicker(Ve).then(function(Ze){return s(Ze)}).then(function(Ze){Et(Ze,null),Te({type:"closeDialog"})}).catch(function(Ze){Hhe(Ze)?(ie(Ze),Te({type:"closeDialog"})):Whe(Ze)?(Ie.current=!1,Re.current?(Re.current.value=null,Re.current.click()):mt(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."))):mt(Ze)});return}Re.current&&(Te({type:"openDialog"}),Xe(),Re.current.value=null,Re.current.click())},[Te,Xe,ie,j,Et,mt,be,h]),Yt=D.exports.useCallback(function(Ve){!ce.current||!ce.current.isEqualNode(Ve.target)||(Ve.key===" "||Ve.key==="Enter"||Ve.keyCode===32||Ve.keyCode===13)&&(Ve.preventDefault(),We())},[ce,We]),ye=D.exports.useCallback(function(){Te({type:"focus"})},[]),Mt=D.exports.useCallback(function(){Te({type:"blur"})},[]),Kt=D.exports.useCallback(function(){U||(Uhe()?setTimeout(We,0):We())},[U,We]),St=function(Ze){return i?null:Ze},ar=function(Ze){return V?null:St(Ze)},ir=function(Ze){return K?null:St(Ze)},Bt=function(Ze){X&&Ze.stopPropagation()},fn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.role,ke=Ve.onKeyDown,jt=Ve.onFocus,xn=Ve.onBlur,je=Ve.onClick,rt=Ve.onDragEnter,xt=Ve.onDragOver,dn=Ve.onDragLeave,Xt=Ve.onDrop,wn=Ow(Ve,Khe);return Ir(Ir(uk({onKeyDown:ar(Jl(ke,Yt)),onFocus:ar(Jl(jt,ye)),onBlur:ar(Jl(xn,Mt)),onClick:St(Jl(je,Kt)),onDragEnter:ir(Jl(rt,Gt)),onDragOver:ir(Jl(xt,Qe)),onDragLeave:ir(Jl(dn,vt)),onDrop:ir(Jl(Xt,zt)),role:typeof Tt=="string"&&Tt!==""?Tt:"presentation"},Jt,ce),!i&&!V?{tabIndex:0}:{}),wn)}},[ce,Yt,ye,Mt,Kt,Gt,Qe,vt,zt,V,K,i]),kn=D.exports.useCallback(function(Ve){Ve.stopPropagation()},[]),hn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.onChange,ke=Ve.onClick,jt=Ow(Ve,Xhe),xn=uk({accept:se,multiple:h,type:"file",style:{display:"none"},onChange:St(Jl(Tt,zt)),onClick:St(Jl(ke,kn)),tabIndex:-1},Jt,Re);return Ir(Ir({},xn),jt)}},[Re,r,h,zt,i]);return Ir(Ir({},Se),{},{isFocused:pe&&!i,getRootProps:fn,getInputProps:hn,rootRef:ce,inputRef:Re,open:St(We)})}function ime(e,t){switch(t.type){case"focus":return Ir(Ir({},e),{},{isFocused:!0});case"blur":return Ir(Ir({},e),{},{isFocused:!1});case"openDialog":return Ir(Ir({},ck),{},{isFileDialogActive:!0});case"closeDialog":return Ir(Ir({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ir(Ir({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ir(Ir({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ir({},ck);default:return e}}function c3(){}var f3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ImageUploader.tsx";const d3=({children:e,fileAcceptedCallback:t,fileRejectionCallback:r})=>{const i=D.exports.useCallback((m,v)=>{v.forEach(b=>{r(b)}),m.forEach(b=>{t(b)})},[t,r]),{getRootProps:s,getInputProps:c,open:u}=XU({onDrop:i,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),h=m=>{m.stopPropagation(),u()};return k("div",{...s(),children:[k("input",{...c({multiple:!1})},void 0,!1,{fileName:f3,lineNumber:55,columnNumber:7},void 0),D.exports.cloneElement(e,{onClick:h})]},void 0,!0,{fileName:f3,lineNumber:54,columnNumber:5},void 0)};var xp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/InitAndMaskUploadButtons.tsx";const ome=$r(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),sme=({setShouldShowMask:e})=>{const t=ui(),{initialImagePath:r}=mr(ome),i=due(),s=C=>{C.stopPropagation(),t(K2("")),t(iU(""))},c=()=>e(!1),u=()=>e(!0),h=()=>e(!0),m=()=>e(!0),v=D.exports.useCallback(C=>t(Bde(C)),[t]),b=D.exports.useCallback(C=>t(Ude(C)),[t]),x=D.exports.useCallback(C=>{const _=C.errors.reduce((N,A)=>N+`
`+A.message,"");i({title:"Upload failed",description:_,status:"error",isClosable:!0})},[i]);return k(On,{gap:2,justifyContent:"space-between",width:"100%",children:[k(d3,{fileAcceptedCallback:v,fileRejectionCallback:x,children:k(hu,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:c,onMouseOut:u,children:"Upload Image"},void 0,!1,{fileName:xp,lineNumber:93,columnNumber:9},void 0)},void 0,!1,{fileName:xp,lineNumber:89,columnNumber:7},void 0),k(d3,{fileAcceptedCallback:b,fileRejectionCallback:x,children:k(hu,{isDisabled:!r,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:h,onMouseOut:m,children:"Upload Mask"},void 0,!1,{fileName:xp,lineNumber:108,columnNumber:9},void 0)},void 0,!1,{fileName:xp,lineNumber:104,columnNumber:7},void 0),k(Ds,{isDisabled:!r,size:"sm","aria-label":"Reset initial image and mask",onClick:s,icon:k(zU,{},void 0,!1,{fileName:xp,lineNumber:125,columnNumber:15},void 0)},void 0,!1,{fileName:xp,lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:xp,lineNumber:88,columnNumber:5},void 0)};var Oy="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/InitAndMaskImage.tsx";const lme=$r(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),ume=()=>{const{initialImagePath:e,maskPath:t}=mr(lme),[r,i]=D.exports.useState(!1);return k(On,{direction:"column",alignItems:"center",gap:2,children:[k(sme,{setShouldShowMask:i},void 0,!1,{fileName:Oy,lineNumber:31,columnNumber:7},void 0),e&&k(On,{position:"relative",width:"100%",children:[k(cb,{fit:"contain",src:e,rounded:"md",className:"checkerboard"},void 0,!1,{fileName:Oy,lineNumber:34,columnNumber:11},void 0),r&&t&&k(cb,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1},void 0,!1,{fileName:Oy,lineNumber:41,columnNumber:13},void 0)]},void 0,!0,{fileName:Oy,lineNumber:33,columnNumber:9},void 0)]},void 0,!0,{fileName:Oy,lineNumber:30,columnNumber:5},void 0)};var Sx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ImageToImageOptions.tsx";const cme=$r(e=>e.sd,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),fme=()=>{const e=ui(),{img2imgStrength:t,shouldFitToWidthHeight:r}=mr(cme);return k(On,{direction:"column",gap:2,children:[k(Uf,{label:"Strength",step:.01,min:0,max:1,onChange:c=>e(tfe(Number(c))),value:t},void 0,!1,{fileName:Sx,lineNumber:41,columnNumber:7},void 0),k(Tw,{label:"Fit initial image to output size",isChecked:r,onChange:c=>e(ofe(c.target.checked))},void 0,!1,{fileName:Sx,lineNumber:49,columnNumber:7},void 0),k(ume,{},void 0,!1,{fileName:Sx,lineNumber:54,columnNumber:7},void 0)]},void 0,!0,{fileName:Sx,lineNumber:40,columnNumber:5},void 0)};var Ht="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OptionsAccordion.tsx";const dme=$r(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),pme=$r(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Zr.exports.isEqual}}),hme=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:r,initialImagePath:i}=mr(dme),{isGFPGANAvailable:s,isESRGANAvailable:c,openAccordions:u}=mr(pme),h=ui();return k(_z,{defaultIndex:u,allowMultiple:!0,reduceMotion:!0,onChange:C=>h($fe(C)),children:[k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(Ip,{flex:"1",textAlign:"left",children:"Seed & Variation"},void 0,!1,{fileName:Ht,lineNumber:108,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:111,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:107,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:106,columnNumber:9},void 0),k(Tp,{children:k(the,{},void 0,!1,{fileName:Ht,lineNumber:115,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:114,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:105,columnNumber:7},void 0),k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(Ip,{flex:"1",textAlign:"left",children:"Sampler"},void 0,!1,{fileName:Ht,lineNumber:121,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:124,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:120,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:119,columnNumber:9},void 0),k(Tp,{children:k(rhe,{},void 0,!1,{fileName:Ht,lineNumber:128,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:127,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:118,columnNumber:7},void 0),k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Or,{children:"Upscale (ESRGAN)"},void 0,!1,{fileName:Ht,lineNumber:140,columnNumber:15},void 0),k(zf,{isDisabled:!c,isChecked:e,onChange:C=>h(dfe(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:141,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:134,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:147,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:133,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:132,columnNumber:9},void 0),k(Tp,{children:k(ohe,{},void 0,!1,{fileName:Ht,lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:150,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:131,columnNumber:7},void 0),k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Or,{children:"Fix Faces (GFPGAN)"},void 0,!1,{fileName:Ht,lineNumber:163,columnNumber:15},void 0),k(zf,{isDisabled:!s,isChecked:t,onChange:C=>h(ffe(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:164,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:157,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:170,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:156,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:155,columnNumber:9},void 0),k(Tp,{children:k(uhe,{},void 0,!1,{fileName:Ht,lineNumber:174,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:173,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:154,columnNumber:7},void 0),k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Or,{children:"Image to Image"},void 0,!1,{fileName:Ht,lineNumber:186,columnNumber:15},void 0),k(zf,{isDisabled:!i,isChecked:r,onChange:C=>h(ife(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:187,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:180,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:193,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:179,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:178,columnNumber:9},void 0),k(Tp,{children:k(fme,{},void 0,!1,{fileName:Ht,lineNumber:197,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:196,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:177,columnNumber:7},void 0),k(Ep,{children:[k("h2",{children:k(Cp,{children:[k(Ip,{flex:"1",textAlign:"left",children:"Output"},void 0,!1,{fileName:Ht,lineNumber:203,columnNumber:13},void 0),k(_p,{},void 0,!1,{fileName:Ht,lineNumber:206,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:202,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:201,columnNumber:9},void 0),k(Tp,{children:k(fhe,{},void 0,!1,{fileName:Ht,lineNumber:210,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:209,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:200,columnNumber:7},void 0)]},void 0,!0,{fileName:Ht,lineNumber:99,columnNumber:5},void 0)};var Ai="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/App.tsx";const mme=()=>{const e=ui();return D.exports.useEffect(()=>{e(Fde())},[e]),k(yo,{children:[k(u2,{width:"100vw",height:"100vh",templateAreas:`
"header header header header"
"progressBar progressBar progressBar progressBar"
"menu prompt processButtons imageRoll"
"menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[k(Nf,{area:"header",pt:1,children:k(Jpe,{},void 0,!1,{fileName:Ai,lineNumber:37,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:36,columnNumber:9},void 0),k(Nf,{area:"progressBar",children:k(Bpe,{},void 0,!1,{fileName:Ai,lineNumber:40,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:39,columnNumber:9},void 0),k(Nf,{pl:"2",area:"menu",overflowY:"scroll",children:k(hme,{},void 0,!1,{fileName:Ai,lineNumber:43,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:42,columnNumber:9},void 0),k(Nf,{area:"prompt",children:k(Lpe,{},void 0,!1,{fileName:Ai,lineNumber:46,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:45,columnNumber:9},void 0),k(Nf,{area:"processButtons",children:k(Hpe,{},void 0,!1,{fileName:Ai,lineNumber:49,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:48,columnNumber:9},void 0),k(Nf,{area:"currentImage",children:k(kpe,{},void 0,!1,{fileName:Ai,lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:51,columnNumber:9},void 0),k(Nf,{pr:"2",area:"imageRoll",overflowY:"scroll",children:k(Ype,{},void 0,!1,{fileName:Ai,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:54,columnNumber:9},void 0)]},void 0,!0,{fileName:Ai,lineNumber:24,columnNumber:7},void 0),k(Mpe,{},void 0,!1,{fileName:Ai,lineNumber:58,columnNumber:7},void 0)]},void 0,!0)},p3=Cue({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"}}}});var h3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const vme=()=>k(On,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:k(eC,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:h3,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:h3,lineNumber:5,columnNumber:9},void 0);var wp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const ZU=Lce(TU);kA.createRoot(document.getElementById("root")).render(k(Ue.StrictMode,{children:k(ape,{store:TU,children:k(IU,{loading:k(vme,{},void 0,!1,{fileName:wp,lineNumber:18,columnNumber:29},void 0),persistor:ZU,children:k(wue,{theme:p3,children:[k(eH,{initialColorMode:p3.config.initialColorMode},void 0,!1,{fileName:wp,lineNumber:20,columnNumber:11},void 0),k(mme,{},void 0,!1,{fileName:wp,lineNumber:21,columnNumber:11},void 0)]},void 0,!0,{fileName:wp,lineNumber:19,columnNumber:9},void 0)},void 0,!1,{fileName:wp,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:wp,lineNumber:17,columnNumber:5},void 0)},void 0,!1,{fileName:wp,lineNumber:16,columnNumber:3},void 0));