mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
40430ad29c
This reverts commit 9ce62f0478
.
695 lines
1.0 MiB
695 lines
1.0 MiB
function Yj(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)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 n(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerpolicy&&(c.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?c.credentials="include":o.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=n(o);fetch(o.href,c)}})();var vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k={exports:{}},e5={exports:{}};/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator,B="@@iterator";function I(S){if(S===null||typeof S!="object")return null;var A=M&&S[M]||S[B];return typeof A=="function"?A:null}var F={current:null},z={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},K={},le=null;function me(S){le=S}K.setExtraStackFrame=function(S){le=S},K.getCurrentStack=null,K.getStackAddendum=function(){var S="";le&&(S+=le);var A=K.getCurrentStack;return A&&(S+=A()||""),S};var se=!1,Se=!1,qe=!1,ae=!1,ue=!1,Ee={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:z,ReactCurrentOwner:q};Ee.ReactDebugCurrentFrame=K,Ee.ReactCurrentActQueue=$;function de(S){{for(var A=arguments.length,V=new Array(A>1?A-1:0),G=1;G<A;G++)V[G-1]=arguments[G];xe("warn",S,V)}}function ie(S){{for(var A=arguments.length,V=new Array(A>1?A-1:0),G=1;G<A;G++)V[G-1]=arguments[G];xe("error",S,V)}}function xe(S,A,V){{var G=Ee.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(A+="%s",V=V.concat([te]));var ze=V.map(function(we){return String(we)});ze.unshift("Warning: "+A),Function.prototype.apply.call(console[S],console,ze)}}var Ne={};function he(S,A){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",te=G+"."+A;if(Ne[te])return;ie("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.",A,G),Ne[te]=!0}}var Ce={isMounted:function(S){return!1},enqueueForceUpdate:function(S,A,V){he(S,"forceUpdate")},enqueueReplaceState:function(S,A,V,G){he(S,"replaceState")},enqueueSetState:function(S,A,V,G){he(S,"setState")}},Me=Object.assign,Ie={};Object.freeze(Ie);function Ye(S,A,V){this.props=S,this.context=A,this.refs=Ie,this.updater=V||Ce}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,A){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,A,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var at={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)."]},gt=function(S,A){Object.defineProperty(Ye.prototype,S,{get:function(){de("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1])}})};for(var Ht in at)at.hasOwnProperty(Ht)&>(Ht,at[Ht])}function Ze(){}Ze.prototype=Ye.prototype;function ct(S,A,V){this.props=S,this.context=A,this.refs=Ie,this.updater=V||Ce}var wt=ct.prototype=new Ze;wt.constructor=ct,Me(wt,Ye.prototype),wt.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var Ge=Array.isArray;function Wt(S){return Ge(S)}function ye(S){{var A=typeof Symbol=="function"&&Symbol.toStringTag,V=A&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function et(S){try{return Nt(S),!1}catch{return!0}}function Nt(S){return""+S}function lt(S){if(et(S))return ie("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Nt(S)}function xn(S,A,V){var G=S.displayName;if(G)return G;var te=A.displayName||A.name||"";return te!==""?V+"("+te+")":V}function $n(S){return S.displayName||"Context"}function Lt(S){if(S==null)return null;if(typeof S.tag=="number"&&ie("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 o:return"Portal";case m:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var A=S;return $n(A)+".Consumer";case h:var V=S;return $n(V._context)+".Provider";case b:return xn(S,S.render,"ForwardRef");case N:var G=S.displayName||null;return G!==null?G:Lt(S.type)||"Memo";case R:{var te=S,ze=te._payload,we=te._init;try{return Lt(we(ze))}catch{return null}}}return null}var an=Object.prototype.hasOwnProperty,On={key:!0,ref:!0,__self:!0,__source:!0},gn,He,Je;Je={};function tn(S){if(an.call(S,"ref")){var A=Object.getOwnPropertyDescriptor(S,"ref").get;if(A&&A.isReactWarning)return!1}return S.ref!==void 0}function kt(S){if(an.call(S,"key")){var A=Object.getOwnPropertyDescriptor(S,"key").get;if(A&&A.isReactWarning)return!1}return S.key!==void 0}function Oe(S,A){var V=function(){gn||(gn=!0,ie("%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)",A))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function Yt(S,A){var V=function(){He||(He=!0,ie("%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)",A))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function _n(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var A=Lt(q.current.type);Je[A]||(ie('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',A,S.ref),Je[A]=!0)}}var je=function(S,A,V,G,te,ze,we){var Ve={$$typeof:i,type:S,key:A,ref:V,props:we,_owner:ze};return Ve._store={},Object.defineProperty(Ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(Ve.props),Object.freeze(Ve)),Ve};function it(S,A,V){var G,te={},ze=null,we=null,Ve=null,st=null;if(A!=null){tn(A)&&(we=A.ref,_n(A)),kt(A)&&(lt(A.key),ze=""+A.key),Ve=A.__self===void 0?null:A.__self,st=A.__source===void 0?null:A.__source;for(G in A)an.call(A,G)&&!On.hasOwnProperty(G)&&(te[G]=A[G])}var St=arguments.length-2;if(St===1)te.children=V;else if(St>1){for(var Ot=Array(St),yt=0;yt<St;yt++)Ot[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Ot),te.children=Ot}if(S&&S.defaultProps){var jt=S.defaultProps;for(G in jt)te[G]===void 0&&(te[G]=jt[G])}if(ze||we){var Tt=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&Oe(te,Tt),we&&Yt(te,Tt)}return je(S,ze,we,Ve,st,q.current,te)}function _t(S,A){var V=je(S.type,A,S.ref,S._self,S._source,S._owner,S.props);return V}function hn(S,A,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Me({},S.props),ze=S.key,we=S.ref,Ve=S._self,st=S._source,St=S._owner;if(A!=null){tn(A)&&(we=A.ref,St=q.current),kt(A)&&(lt(A.key),ze=""+A.key);var Ot;S.type&&S.type.defaultProps&&(Ot=S.type.defaultProps);for(G in A)an.call(A,G)&&!On.hasOwnProperty(G)&&(A[G]===void 0&&Ot!==void 0?te[G]=Ot[G]:te[G]=A[G])}var yt=arguments.length-2;if(yt===1)te.children=V;else if(yt>1){for(var jt=Array(yt),Tt=0;Tt<yt;Tt++)jt[Tt]=arguments[Tt+2];te.children=jt}return je(S.type,ze,we,Ve,st,St,te)}function Qt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",Ln=":";function kr(S){var A=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(A,function(te){return V[te]});return"$"+G}var Dn=!1,va=/\/+/g;function jn(S){return S.replace(va,"$&/")}function Rn(S,A){return typeof S=="object"&&S!==null&&S.key!=null?(lt(S.key),kr(""+S.key)):A.toString(36)}function ga(S,A,V,G,te){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var we=!1;if(S===null)we=!0;else switch(ze){case"string":case"number":we=!0;break;case"object":switch(S.$$typeof){case i:case o:we=!0}}if(we){var Ve=S,st=te(Ve),St=G===""?Tn+Rn(Ve,0):G;if(Wt(st)){var Ot="";St!=null&&(Ot=jn(St)+"/"),ga(st,A,Ot,"",function(od){return od})}else st!=null&&(Qt(st)&&(st.key&&(!Ve||Ve.key!==st.key)&<(st.key),st=_t(st,V+(st.key&&(!Ve||Ve.key!==st.key)?jn(""+st.key)+"/":"")+St)),A.push(st));return 1}var yt,jt,Tt=0,Bt=G===""?Tn:G+Ln;if(Wt(S))for(var Ci=0;Ci<S.length;Ci++)yt=S[Ci],jt=Bt+Rn(yt,Ci),Tt+=ga(yt,A,V,jt,te);else{var Ca=I(S);if(typeof Ca=="function"){var jo=S;Ca===jo.entries&&(Dn||de("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dn=!0);for(var _u=Ca.call(jo),Pn,wi=0;!(Pn=_u.next()).done;)yt=Pn.value,jt=Bt+Rn(yt,wi++),Tt+=ga(yt,A,V,jt,te)}else if(ze==="object"){var ds=String(S);throw new Error("Objects are not valid as a React child (found: "+(ds==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ds)+"). If you meant to render a collection of children, use an array instead.")}}return Tt}function Sr(S,A,V){if(S==null)return S;var G=[],te=0;return ga(S,G,"","",function(ze){return A.call(V,ze,te++)}),G}function ko(S){var A=0;return Sr(S,function(){A++}),A}function as(S,A,V){Sr(S,function(){A.apply(this,arguments)},V)}function is(S){return Sr(S,function(A){return A})||[]}function Oo(S){if(!Qt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Do(S){var A={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:h,_context:A};var V=!1,G=!1,te=!1;{var ze={$$typeof:v,_context:A};Object.defineProperties(ze,{Provider:{get:function(){return G||(G=!0,ie("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),A.Provider},set:function(we){A.Provider=we}},_currentValue:{get:function(){return A._currentValue},set:function(we){A._currentValue=we}},_currentValue2:{get:function(){return A._currentValue2},set:function(we){A._currentValue2=we}},_threadCount:{get:function(){return A._threadCount},set:function(we){A._threadCount=we}},Consumer:{get:function(){return V||(V=!0,ie("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),A.Consumer}},displayName:{get:function(){return A.displayName},set:function(we){te||(de("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",we),te=!0)}}}),A.Consumer=ze}return A._currentRenderer=null,A._currentRenderer2=null,A}var vr=-1,Ia=0,Fi=1,La=2;function X(S){if(S._status===vr){var A=S._result,V=A();if(V.then(function(ze){if(S._status===Ia||S._status===vr){var we=S;we._status=Fi,we._result=ze}},function(ze){if(S._status===Ia||S._status===vr){var we=S;we._status=La,we._result=ze}}),S._status===vr){var G=S;G._status=Ia,G._result=V}}if(S._status===Fi){var te=S._result;return te===void 0&&ie(`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||ie(`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 Ue(S){var A={_status:vr,_result:S},V={$$typeof:R,_payload:A,_init:X};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(ze){ie("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=ze,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(ze){ie("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=ze,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Ke(S){S!=null&&S.$$typeof===N?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?ie("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&ie("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)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var A={$$typeof:b,render:S};{var V;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return A}var Ct;Ct=Symbol.for("react.module.reference");function on(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===m||ue||S===u||S===x||S===w||ae||S===O||se||Se||qe||typeof S=="object"&&S!==null&&(S.$$typeof===R||S.$$typeof===N||S.$$typeof===h||S.$$typeof===v||S.$$typeof===b||S.$$typeof===Ct||S.getModuleId!==void 0))}function Cn(S,A){on(S)||ie("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:N,type:S,compare:A===void 0?null:A};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return V}function nt(){var S=F.current;return S===null&&ie(`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 qt(S){var A=nt();if(S._context!==void 0){var V=S._context;V.Consumer===S?ie("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?"):V.Provider===S&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(S)}function Vn(S){var A=nt();return A.useState(S)}function Bn(S,A,V){var G=nt();return G.useReducer(S,A,V)}function ln(S){var A=nt();return A.useRef(S)}function Ur(S,A){var V=nt();return V.useEffect(S,A)}function vi(S,A){var V=nt();return V.useInsertionEffect(S,A)}function Po(S,A){var V=nt();return V.useLayoutEffect(S,A)}function ya(S,A){var V=nt();return V.useCallback(S,A)}function oo(S,A){var V=nt();return V.useMemo(S,A)}function Nu(S,A,V){var G=nt();return G.useImperativeHandle(S,A,V)}function gi(S,A){{var V=nt();return V.useDebugValue(S,A)}}function Hs(){var S=nt();return S.useTransition()}function zi(S){var A=nt();return A.useDeferredValue(S)}function Jt(){var S=nt();return S.useId()}function Bi(S,A,V){var G=nt();return G.useSyncExternalStore(S,A,V)}var ba=0,Mo,os,Io,ss,ls,Lo,Fo;function us(){}us.__reactDisabledLog=!0;function Ws(){{if(ba===0){Mo=console.log,os=console.info,Io=console.warn,ss=console.error,ls=console.group,Lo=console.groupCollapsed,Fo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:us,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}ba++}}function Gs(){{if(ba--,ba===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},S,{value:Mo}),info:Me({},S,{value:os}),warn:Me({},S,{value:Io}),error:Me({},S,{value:ss}),group:Me({},S,{value:ls}),groupCollapsed:Me({},S,{value:Lo}),groupEnd:Me({},S,{value:Fo})})}ba<0&&ie("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yi=Ee.ReactCurrentDispatcher,Mr;function Fa(S,A,V){{if(Mr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);Mr=G&&G[1]||""}return`
|
|
`+Mr+S}}var Sa=!1,za;{var cs=typeof WeakMap=="function"?WeakMap:Map;za=new cs}function zo(S,A){if(!S||Sa)return"";{var V=za.get(S);if(V!==void 0)return V}var G;Sa=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=yi.current,yi.current=null,Ws();try{if(A){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(Bt){G=Bt}Reflect.construct(S,[],we)}else{try{we.call()}catch(Bt){G=Bt}S.call(we.prototype)}}else{try{throw Error()}catch(Bt){G=Bt}S()}}catch(Bt){if(Bt&&G&&typeof Bt.stack=="string"){for(var Ve=Bt.stack.split(`
|
|
`),st=G.stack.split(`
|
|
`),St=Ve.length-1,Ot=st.length-1;St>=1&&Ot>=0&&Ve[St]!==st[Ot];)Ot--;for(;St>=1&&Ot>=0;St--,Ot--)if(Ve[St]!==st[Ot]){if(St!==1||Ot!==1)do if(St--,Ot--,Ot<0||Ve[St]!==st[Ot]){var yt=`
|
|
`+Ve[St].replace(" at new "," at ");return S.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",S.displayName)),typeof S=="function"&&za.set(S,yt),yt}while(St>=1&&Ot>=0);break}}}finally{Sa=!1,yi.current=ze,Gs(),Error.prepareStackTrace=te}var jt=S?S.displayName||S.name:"",Tt=jt?Fa(jt):"";return typeof S=="function"&&za.set(S,Tt),Tt}function fs(S,A,V){return zo(S,!1)}function Ml(S){var A=S.prototype;return!!(A&&A.isReactComponent)}function xa(S,A,V){if(S==null)return"";if(typeof S=="function")return zo(S,Ml(S));if(typeof S=="string")return Fa(S);switch(S){case x:return Fa("Suspense");case w:return Fa("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return fs(S.render);case N:return xa(S.type,A,V);case R:{var G=S,te=G._payload,ze=G._init;try{return xa(ze(te),A,V)}catch{}}}return""}var Bo={},Ba=Ee.ReactDebugCurrentFrame;function bi(S){if(S){var A=S._owner,V=xa(S.type,S._source,A?A.type:null);Ba.setExtraStackFrame(V)}else Ba.setExtraStackFrame(null)}function Ys(S,A,V,G,te){{var ze=Function.call.bind(an);for(var we in S)if(ze(S,we)){var Ve=void 0;try{if(typeof S[we]!="function"){var st=Error((G||"React class")+": "+V+" type `"+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[we]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}Ve=S[we](A,we,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(St){Ve=St}Ve&&!(Ve instanceof Error)&&(bi(te),ie("%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",V,we,typeof Ve),bi(null)),Ve instanceof Error&&!(Ve.message in Bo)&&(Bo[Ve.message]=!0,bi(te),ie("Failed %s type: %s",V,Ve.message),bi(null))}}}function un(S){if(S){var A=S._owner,V=xa(S.type,S._source,A?A.type:null);me(V)}else me(null)}var Si;Si=!1;function Uo(){if(q.current){var S=Lt(q.current.type);if(S)return`
|
|
|
|
Check the render method of \``+S+"`."}return""}function $t(S){if(S!==void 0){var A=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
|
|
|
|
Check your code at `+A+":"+V+"."}return""}function qs(S){return S!=null?$t(S.__source):""}var xr={};function Ui(S){var A=Uo();if(!A){var V=typeof S=="string"?S:S.displayName||S.name;V&&(A=`
|
|
|
|
Check the top-level render call using <`+V+">.")}return A}function Ya(S,A){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ui(A);if(!xr[V]){xr[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+Lt(S._owner.type)+"."),un(S),ie('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),un(null)}}}function so(S,A){if(typeof S=="object"){if(Wt(S))for(var V=0;V<S.length;V++){var G=S[V];Qt(G)&&Ya(G,A)}else if(Qt(S))S._store&&(S._store.validated=!0);else if(S){var te=I(S);if(typeof te=="function"&&te!==S.entries)for(var ze=te.call(S),we;!(we=ze.next()).done;)Qt(we.value)&&Ya(we.value,A)}}}function _r(S){{var A=S.type;if(A==null||typeof A=="string")return;var V;if(typeof A=="function")V=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===b||A.$$typeof===N))V=A.propTypes;else return;if(V){var G=Lt(A);Ys(V,S.props,"prop",G,S)}else if(A.PropTypes!==void 0&&!Si){Si=!0;var te=Lt(A);ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(S){{for(var A=Object.keys(S.props),V=0;V<A.length;V++){var G=A[V];if(G!=="children"&&G!=="key"){un(S),ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),un(null);break}}S.ref!==null&&(un(S),ie("Invalid attribute `ref` supplied to `React.Fragment`."),un(null))}}function $o(S,A,V){var G=on(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 ze=qs(A);ze?te+=ze:te+=Uo();var we;S===null?we="null":Wt(S)?we="array":S!==void 0&&S.$$typeof===i?(we="<"+(Lt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):we=typeof S,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,te)}var Ve=it.apply(this,arguments);if(Ve==null)return Ve;if(G)for(var st=2;st<arguments.length;st++)so(arguments[st],S);return S===c?or(Ve):_r(Ve),Ve}var Kr=!1;function pr(S){var A=$o.bind(null,S);return A.type=S,Kr||(Kr=!0,de("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(A,"type",{enumerable:!1,get:function(){return de("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),A}function aa(S,A,V){for(var G=hn.apply(this,arguments),te=2;te<arguments.length;te++)so(arguments[te],G.type);return _r(G),G}function Eu(S,A){var V=z.transition;z.transition={};var G=z.transition;z.transition._updatedFibers=new Set;try{S()}finally{if(z.transition=V,V===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&de("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 lo=!1,xi=null;function Ks(S){if(xi===null)try{var A=("require"+Math.random()).slice(0,7),V=e&&e[A];xi=V.call(e,"timers").setImmediate}catch{xi=function(te){lo===!1&&(lo=!0,typeof MessageChannel>"u"&&ie("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 ze=new MessageChannel;ze.port1.onmessage=te,ze.port2.postMessage(void 0)}}return xi(S)}var vn=0,Fn=!1;function Il(S){{var A=vn;vn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,pe(te))}}catch(jt){throw Ua(A),jt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var ze=G,we=!1,Ve={then:function(jt,Tt){we=!0,ze.then(function(Bt){Ua(A),vn===0?W(Bt,jt,Tt):jt(Bt)},function(Bt){Ua(A),Tt(Bt)})}};return!Fn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){we||(Fn=!0,ie("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 () => ...);"))}),Ve}else{var st=G;if(Ua(A),vn===0){var St=$.current;St!==null&&(pe(St),$.current=null);var Ot={then:function(jt,Tt){$.current===null?($.current=[],W(st,jt,Tt)):jt(st)}};return Ot}else{var yt={then:function(jt,Tt){jt(st)}};return yt}}}}function Ua(S){S!==vn-1&&ie("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),vn=S}function W(S,A,V){{var G=$.current;if(G!==null)try{pe(G),Ks(function(){G.length===0?($.current=null,A(S)):W(S,A,V)})}catch(te){V(te)}else A(S)}}var Q=!1;function pe(S){if(!Q){Q=!0;var A=0;try{for(;A<S.length;A++){var V=S[A];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(A+1),G}finally{Q=!1}}}var ot=$o,cn=aa,zn=pr,Kt={map:Sr,forEach:as,count:ko,toArray:is,only:Oo};t.Children=Kt,t.Component=Ye,t.Fragment=c,t.Profiler=m,t.PureComponent=ct,t.StrictMode=u,t.Suspense=x,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ee,t.cloneElement=cn,t.createContext=Do,t.createElement=ot,t.createFactory=zn,t.createRef=zt,t.forwardRef=Ke,t.isValidElement=Qt,t.lazy=Ue,t.memo=Cn,t.startTransition=Eu,t.unstable_act=Il,t.useCallback=ya,t.useContext=qt,t.useDebugValue=gi,t.useDeferredValue=zi,t.useEffect=Ur,t.useId=Jt,t.useImperativeHandle=Nu,t.useInsertionEffect=vi,t.useLayoutEffect=Po,t.useMemo=oo,t.useReducer=Bn,t.useRef=ln,t.useState=Vn,t.useSyncExternalStore=Bi,t.useTransition=Hs,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(e5,e5.exports);(function(e){e.exports=e5.exports})(k);const Pe=qj(k.exports),zD=Yj({__proto__:null,default:Pe},[k.exports]);var t5={},By={exports:{}},Qo={},XI={exports:{}},ZI={};/**
|
|
* @license React
|
|
* scheduler.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1,i=5;function o(je,it){var _t=je.length;je.push(it),m(je,it,_t)}function c(je){return je.length===0?null:je[0]}function u(je){if(je.length===0)return null;var it=je[0],_t=je.pop();return _t!==it&&(je[0]=_t,h(je,_t,0)),it}function m(je,it,_t){for(var hn=_t;hn>0;){var Qt=hn-1>>>1,Tn=je[Qt];if(v(Tn,it)>0)je[Qt]=it,je[hn]=Tn,hn=Qt;else return}}function h(je,it,_t){for(var hn=_t,Qt=je.length,Tn=Qt>>>1;hn<Tn;){var Ln=(hn+1)*2-1,kr=je[Ln],Dn=Ln+1,va=je[Dn];if(v(kr,it)<0)Dn<Qt&&v(va,kr)<0?(je[hn]=va,je[Dn]=it,hn=Dn):(je[hn]=kr,je[Ln]=it,hn=Ln);else if(Dn<Qt&&v(va,it)<0)je[hn]=va,je[Dn]=it,hn=Dn;else return}}function v(je,it){var _t=je.sortIndex-it.sortIndex;return _t!==0?_t:je.id-it.id}var b=1,x=2,w=3,N=4,R=5;function O(je,it){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var B=performance;e.unstable_now=function(){return B.now()}}else{var I=Date,F=I.now();e.unstable_now=function(){return I.now()-F}}var z=1073741823,$=-1,q=250,K=5e3,le=1e4,me=z,se=[],Se=[],qe=1,ae=null,ue=w,Ee=!1,de=!1,ie=!1,xe=typeof setTimeout=="function"?setTimeout:null,Ne=typeof clearTimeout=="function"?clearTimeout:null,he=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ce(je){for(var it=c(Se);it!==null;){if(it.callback===null)u(Se);else if(it.startTime<=je)u(Se),it.sortIndex=it.expirationTime,o(se,it);else return;it=c(Se)}}function Me(je){if(ie=!1,Ce(je),!de)if(c(se)!==null)de=!0,tn(Ie);else{var it=c(Se);it!==null&&kt(Me,it.startTime-je)}}function Ie(je,it){de=!1,ie&&(ie=!1,Oe()),Ee=!0;var _t=ue;try{var hn;if(!n)return Ye(je,it)}finally{ae=null,ue=_t,Ee=!1}}function Ye(je,it){var _t=it;for(Ce(_t),ae=c(se);ae!==null&&!t&&!(ae.expirationTime>_t&&(!je||$n()));){var hn=ae.callback;if(typeof hn=="function"){ae.callback=null,ue=ae.priorityLevel;var Qt=ae.expirationTime<=_t,Tn=hn(Qt);_t=e.unstable_now(),typeof Tn=="function"?ae.callback=Tn:ae===c(se)&&u(se),Ce(_t)}else u(se);ae=c(se)}if(ae!==null)return!0;var Ln=c(Se);return Ln!==null&&kt(Me,Ln.startTime-_t),!1}function at(je,it){switch(je){case b:case x:case w:case N:case R:break;default:je=w}var _t=ue;ue=je;try{return it()}finally{ue=_t}}function gt(je){var it;switch(ue){case b:case x:case w:it=w;break;default:it=ue;break}var _t=ue;ue=it;try{return je()}finally{ue=_t}}function Ht(je){var it=ue;return function(){var _t=ue;ue=it;try{return je.apply(this,arguments)}finally{ue=_t}}}function Ze(je,it,_t){var hn=e.unstable_now(),Qt;if(typeof _t=="object"&&_t!==null){var Tn=_t.delay;typeof Tn=="number"&&Tn>0?Qt=hn+Tn:Qt=hn}else Qt=hn;var Ln;switch(je){case b:Ln=$;break;case x:Ln=q;break;case R:Ln=me;break;case N:Ln=le;break;case w:default:Ln=K;break}var kr=Qt+Ln,Dn={id:qe++,callback:it,priorityLevel:je,startTime:Qt,expirationTime:kr,sortIndex:-1};return Qt>hn?(Dn.sortIndex=Qt,o(Se,Dn),c(se)===null&&Dn===c(Se)&&(ie?Oe():ie=!0,kt(Me,Qt-hn))):(Dn.sortIndex=kr,o(se,Dn),!de&&!Ee&&(de=!0,tn(Ie))),Dn}function ct(){}function wt(){!de&&!Ee&&(de=!0,tn(Ie))}function zt(){return c(se)}function Ge(je){je.callback=null}function Wt(){return ue}var ye=!1,et=null,Nt=-1,lt=i,xn=-1;function $n(){var je=e.unstable_now()-xn;return!(je<lt)}function Lt(){}function an(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?lt=Math.floor(1e3/je):lt=i}var On=function(){if(et!==null){var je=e.unstable_now();xn=je;var it=!0,_t=!0;try{_t=et(it,je)}finally{_t?gn():(ye=!1,et=null)}}else ye=!1},gn;if(typeof he=="function")gn=function(){he(On)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Je=He.port2;He.port1.onmessage=On,gn=function(){Je.postMessage(null)}}else gn=function(){xe(On,0)};function tn(je){et=je,ye||(ye=!0,gn())}function kt(je,it){Nt=xe(function(){je(e.unstable_now())},it)}function Oe(){Ne(Nt),Nt=-1}var Yt=Lt,_n=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=N,e.unstable_NormalPriority=w,e.unstable_Profiling=_n,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=Ge,e.unstable_continueExecution=wt,e.unstable_forceFrameRate=an,e.unstable_getCurrentPriorityLevel=Wt,e.unstable_getFirstCallbackNode=zt,e.unstable_next=gt,e.unstable_pauseExecution=ct,e.unstable_requestPaint=Yt,e.unstable_runWithPriority=at,e.unstable_scheduleCallback=Ze,e.unstable_shouldYield=$n,e.unstable_wrapCallback=Ht,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(ZI);(function(e){e.exports=ZI})(XI);/**
|
|
* @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=k.exports,t=XI.exports,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(r){i=r}function c(r){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];m("warn",r,s)}}function u(r){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];m("error",r,s)}}function m(r,a,s){{var f=n.ReactDebugCurrentFrame,p=f.getStackAddendum();p!==""&&(a+="%s",s=s.concat([p]));var y=s.map(function(C){return String(C)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,y)}}var h=0,v=1,b=2,x=3,w=4,N=5,R=6,O=7,M=8,B=9,I=10,F=11,z=12,$=13,q=14,K=15,le=16,me=17,se=18,Se=19,qe=21,ae=22,ue=23,Ee=24,de=25,ie=!0,xe=!1,Ne=!1,he=!1,Ce=!1,Me=!0,Ie=!1,Ye=!1,at=!0,gt=!0,Ht=!0,Ze=new Set,ct={},wt={};function zt(r,a){Ge(r,a),Ge(r+"Capture",a)}function Ge(r,a){ct[r]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),ct[r]=a;{var s=r.toLowerCase();wt[s]=r,r==="onDoubleClick"&&(wt.ondblclick=r)}for(var f=0;f<a.length;f++)Ze.add(a[f])}var Wt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=Object.prototype.hasOwnProperty;function et(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return s}}function Nt(r){try{return lt(r),!1}catch{return!0}}function lt(r){return""+r}function xn(r,a){if(Nt(r))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,et(r)),lt(r)}function $n(r){if(Nt(r))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(r)),lt(r)}function Lt(r,a){if(Nt(r))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,et(r)),lt(r)}function an(r,a){if(Nt(r))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,et(r)),lt(r)}function On(r){if(Nt(r))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.",et(r)),lt(r)}function gn(r){if(Nt(r))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.",et(r)),lt(r)}var He=0,Je=1,tn=2,kt=3,Oe=4,Yt=5,_n=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",it=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_t=new RegExp("^["+je+"]["+it+"]*$"),hn={},Qt={};function Tn(r){return ye.call(Qt,r)?!0:ye.call(hn,r)?!1:_t.test(r)?(Qt[r]=!0,!0):(hn[r]=!0,u("Invalid attribute name: `%s`",r),!1)}function Ln(r,a,s){return a!==null?a.type===He:s?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function kr(r,a,s,f){if(s!==null&&s.type===He)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(s!==null)return!s.acceptsBooleans;var p=r.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Dn(r,a,s,f){if(a===null||typeof a>"u"||kr(r,a,s,f))return!0;if(f)return!1;if(s!==null)switch(s.type){case kt:return!a;case Oe:return a===!1;case Yt:return isNaN(a);case _n:return isNaN(a)||a<1}return!1}function va(r){return Rn.hasOwnProperty(r)?Rn[r]:null}function jn(r,a,s,f,p,y,C){this.acceptsBooleans=a===tn||a===kt||a===Oe,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=r,this.type=a,this.sanitizeURL=y,this.removeEmptyString=C}var Rn={},ga=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ga.forEach(function(r){Rn[r]=new jn(r,He,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0],s=r[1];Rn[a]=new jn(a,Je,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){Rn[r]=new jn(r,tn,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Rn[r]=new jn(r,tn,!1,r,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(r){Rn[r]=new jn(r,kt,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){Rn[r]=new jn(r,kt,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){Rn[r]=new jn(r,Oe,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){Rn[r]=new jn(r,_n,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){Rn[r]=new jn(r,Yt,!1,r.toLowerCase(),null,!1,!1)});var Sr=/[\-\:]([a-z])/g,ko=function(r){return r[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(r){var a=r.replace(Sr,ko);Rn[a]=new jn(a,Je,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var a=r.replace(Sr,ko);Rn[a]=new jn(a,Je,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(Sr,ko);Rn[a]=new jn(a,Je,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){Rn[r]=new jn(r,Je,!1,r.toLowerCase(),null,!1,!1)});var as="xlinkHref";Rn[as]=new jn("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){Rn[r]=new jn(r,Je,!1,r.toLowerCase(),null,!0,!0)});var is=/^[\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,Oo=!1;function Do(r){!Oo&&is.test(r)&&(Oo=!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(r)))}function vr(r,a,s,f){if(f.mustUseProperty){var p=f.propertyName;return r[p]}else{xn(s,a),f.sanitizeURL&&Do(""+s);var y=f.attributeName,C=null;if(f.type===Oe){if(r.hasAttribute(y)){var T=r.getAttribute(y);return T===""?!0:Dn(a,s,f,!1)?T:T===""+s?s:T}}else if(r.hasAttribute(y)){if(Dn(a,s,f,!1))return r.getAttribute(y);if(f.type===kt)return s;C=r.getAttribute(y)}return Dn(a,s,f,!1)?C===null?s:C:C===""+s?s:C}}function Ia(r,a,s,f){{if(!Tn(a))return;if(!r.hasAttribute(a))return s===void 0?void 0:null;var p=r.getAttribute(a);return xn(s,a),p===""+s?s:p}}function Fi(r,a,s,f){var p=va(a);if(!Ln(a,p,f)){if(Dn(a,s,p,f)&&(s=null),f||p===null){if(Tn(a)){var y=a;s===null?r.removeAttribute(y):(xn(s,a),r.setAttribute(y,""+s))}return}var C=p.mustUseProperty;if(C){var T=p.propertyName;if(s===null){var D=p.type;r[T]=D===kt?!1:""}else r[T]=s;return}var U=p.attributeName,H=p.attributeNamespace;if(s===null)r.removeAttribute(U);else{var ee=p.type,J;ee===kt||ee===Oe&&s===!0?J="":(xn(s,U),J=""+s,p.sanitizeURL&&Do(J.toString())),H?r.setAttributeNS(H,U,J):r.setAttribute(U,J)}}}var La=Symbol.for("react.element"),X=Symbol.for("react.portal"),Ue=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),Ct=Symbol.for("react.profiler"),on=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),qt=Symbol.for("react.suspense"),Vn=Symbol.for("react.suspense_list"),Bn=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),Ur=Symbol.for("react.scope"),vi=Symbol.for("react.debug_trace_mode"),Po=Symbol.for("react.offscreen"),ya=Symbol.for("react.legacy_hidden"),oo=Symbol.for("react.cache"),Nu=Symbol.for("react.tracing_marker"),gi=Symbol.iterator,Hs="@@iterator";function zi(r){if(r===null||typeof r!="object")return null;var a=gi&&r[gi]||r[Hs];return typeof a=="function"?a:null}var Jt=Object.assign,Bi=0,ba,Mo,os,Io,ss,ls,Lo;function Fo(){}Fo.__reactDisabledLog=!0;function us(){{if(Bi===0){ba=console.log,Mo=console.info,os=console.warn,Io=console.error,ss=console.group,ls=console.groupCollapsed,Lo=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Fo,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Bi++}}function Ws(){{if(Bi--,Bi===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Jt({},r,{value:ba}),info:Jt({},r,{value:Mo}),warn:Jt({},r,{value:os}),error:Jt({},r,{value:Io}),group:Jt({},r,{value:ss}),groupCollapsed:Jt({},r,{value:ls}),groupEnd:Jt({},r,{value:Lo})})}Bi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gs=n.ReactCurrentDispatcher,yi;function Mr(r,a,s){{if(yi===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);yi=f&&f[1]||""}return`
|
|
`+yi+r}}var Fa=!1,Sa;{var za=typeof WeakMap=="function"?WeakMap:Map;Sa=new za}function cs(r,a){if(!r||Fa)return"";{var s=Sa.get(r);if(s!==void 0)return s}var f;Fa=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Gs.current,Gs.current=null,us();try{if(a){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(ge){f=ge}Reflect.construct(r,[],C)}else{try{C.call()}catch(ge){f=ge}r.call(C.prototype)}}else{try{throw Error()}catch(ge){f=ge}r()}}catch(ge){if(ge&&f&&typeof ge.stack=="string"){for(var T=ge.stack.split(`
|
|
`),D=f.stack.split(`
|
|
`),U=T.length-1,H=D.length-1;U>=1&&H>=0&&T[U]!==D[H];)H--;for(;U>=1&&H>=0;U--,H--)if(T[U]!==D[H]){if(U!==1||H!==1)do if(U--,H--,H<0||T[U]!==D[H]){var ee=`
|
|
`+T[U].replace(" at new "," at ");return r.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",r.displayName)),typeof r=="function"&&Sa.set(r,ee),ee}while(U>=1&&H>=0);break}}}finally{Fa=!1,Gs.current=y,Ws(),Error.prepareStackTrace=p}var J=r?r.displayName||r.name:"",ve=J?Mr(J):"";return typeof r=="function"&&Sa.set(r,ve),ve}function zo(r,a,s){return cs(r,!0)}function fs(r,a,s){return cs(r,!1)}function Ml(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function xa(r,a,s){if(r==null)return"";if(typeof r=="function")return cs(r,Ml(r));if(typeof r=="string")return Mr(r);switch(r){case qt:return Mr("Suspense");case Vn:return Mr("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case nt:return fs(r.render);case Bn:return xa(r.type,a,s);case ln:{var f=r,p=f._payload,y=f._init;try{return xa(y(p),a,s)}catch{}}}return""}function Bo(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case N:return Mr(r.type);case le:return Mr("Lazy");case $:return Mr("Suspense");case Se:return Mr("SuspenseList");case h:case b:case K:return fs(r.type);case F:return fs(r.type.render);case v:return zo(r.type);default:return""}}function Ba(r){try{var a="",s=r;do a+=Bo(s),s=s.return;while(s);return a}catch(f){return`
|
|
Error generating stack: `+f.message+`
|
|
`+f.stack}}function bi(r,a,s){var f=r.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?s+"("+p+")":s}function Ys(r){return r.displayName||"Context"}function un(r){if(r==null)return null;if(typeof r.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ue:return"Fragment";case X:return"Portal";case Ct:return"Profiler";case Ke:return"StrictMode";case qt:return"Suspense";case Vn:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Cn:var a=r;return Ys(a)+".Consumer";case on:var s=r;return Ys(s._context)+".Provider";case nt:return bi(r,r.render,"ForwardRef");case Bn:var f=r.displayName||null;return f!==null?f:un(r.type)||"Memo";case ln:{var p=r,y=p._payload,C=p._init;try{return un(C(y))}catch{return null}}}return null}function Si(r,a,s){var f=a.displayName||a.name||"";return r.displayName||(f!==""?s+"("+f+")":s)}function Uo(r){return r.displayName||"Context"}function $t(r){var a=r.tag,s=r.type;switch(a){case Ee:return"Cache";case B:var f=s;return Uo(f)+".Consumer";case I:var p=s;return Uo(p._context)+".Provider";case se:return"DehydratedFragment";case F:return Si(s,s.render,"ForwardRef");case O:return"Fragment";case N:return s;case w:return"Portal";case x:return"Root";case R:return"Text";case le:return un(s);case M:return s===Ke?"StrictMode":"Mode";case ae:return"Offscreen";case z:return"Profiler";case qe:return"Scope";case $:return"Suspense";case Se:return"SuspenseList";case de:return"TracingMarker";case v:case h:case me:case b:case q:case K:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var qs=n.ReactDebugCurrentFrame,xr=null,Ui=!1;function Ya(){{if(xr===null)return null;var r=xr._debugOwner;if(r!==null&&typeof r<"u")return $t(r)}return null}function so(){return xr===null?"":Ba(xr)}function _r(){qs.getCurrentStack=null,xr=null,Ui=!1}function or(r){qs.getCurrentStack=r===null?null:so,xr=r,Ui=!1}function $o(){return xr}function Kr(r){Ui=r}function pr(r){return""+r}function aa(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return gn(r),r;default:return""}}var Eu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function lo(r,a){Eu[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 xi(r){var a=r.type,s=r.nodeName;return s&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ks(r){return r._valueTracker}function vn(r){r._valueTracker=null}function Fn(r){var a="";return r&&(xi(r)?a=r.checked?"true":"false":a=r.value),a}function Il(r){var a=xi(r)?"checked":"value",s=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);gn(r[a]);var f=""+r[a];if(!(r.hasOwnProperty(a)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,y=s.set;Object.defineProperty(r,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){gn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(r,a,{enumerable:s.enumerable});var C={getValue:function(){return f},setValue:function(T){gn(T),f=""+T},stopTracking:function(){vn(r),delete r[a]}};return C}}function Ua(r){Ks(r)||(r._valueTracker=Il(r))}function W(r){if(!r)return!1;var a=Ks(r);if(!a)return!0;var s=a.getValue(),f=Fn(r);return f!==s?(a.setValue(f),!0):!1}function Q(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var pe=!1,ot=!1,cn=!1,zn=!1;function Kt(r){var a=r.type==="checkbox"||r.type==="radio";return a?r.checked!=null:r.value!=null}function S(r,a){var s=r,f=a.checked,p=Jt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked});return p}function A(r,a){lo("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!ot&&(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",Ya()||"A component",a.type),ot=!0),a.value!==void 0&&a.defaultValue!==void 0&&!pe&&(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",Ya()||"A component",a.type),pe=!0);var s=r,f=a.defaultValue==null?"":a.defaultValue;s._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:aa(a.value!=null?a.value:f),controlled:Kt(a)}}function V(r,a){var s=r,f=a.checked;f!=null&&Fi(s,"checked",f,!1)}function G(r,a){var s=r;{var f=Kt(a);!s._wrapperState.controlled&&f&&!zn&&(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"),zn=!0),s._wrapperState.controlled&&!f&&!cn&&(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"),cn=!0)}V(r,a);var p=aa(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=pr(p)):s.value!==pr(p)&&(s.value=pr(p));else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?Ve(s,a.type,p):a.hasOwnProperty("defaultValue")&&Ve(s,a.type,aa(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function te(r,a,s){var f=r;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 C=pr(f._wrapperState.initialValue);s||C!==f.value&&(f.value=C),f.defaultValue=C}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function ze(r,a){var s=r;G(s,a),we(s,a)}function we(r,a){var s=a.name;if(a.type==="radio"&&s!=null){for(var f=r;f.parentNode;)f=f.parentNode;xn(s,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),y=0;y<p.length;y++){var C=p[y];if(!(C===r||C.form!==r.form)){var T=Mt(C);if(!T)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(C),G(C,T)}}}}function Ve(r,a,s){(a!=="number"||Q(r.ownerDocument)!==r)&&(s==null?r.defaultValue=pr(r._wrapperState.initialValue):r.defaultValue!==pr(s)&&(r.defaultValue=pr(s)))}var st=!1,St=!1,Ot=!1;function yt(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||St||(St=!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&&(Ot||(Ot=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!st&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),st=!0)}function jt(r,a){a.value!=null&&r.setAttribute("value",pr(aa(a.value)))}var Tt=Array.isArray;function Bt(r){return Tt(r)}var Ci;Ci=!1;function Ca(){var r=Ya();return r?`
|
|
|
|
Check the render method of \``+r+"`.":""}var jo=["value","defaultValue"];function _u(r){{lo("select",r);for(var a=0;a<jo.length;a++){var s=jo[a];if(r[s]!=null){var f=Bt(r[s]);r.multiple&&!f?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Ca()):!r.multiple&&f&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Ca())}}}}function Pn(r,a,s,f){var p=r.options;if(a){for(var y=s,C={},T=0;T<y.length;T++)C["$"+y[T]]=!0;for(var D=0;D<p.length;D++){var U=C.hasOwnProperty("$"+p[D].value);p[D].selected!==U&&(p[D].selected=U),U&&f&&(p[D].defaultSelected=!0)}}else{for(var H=pr(aa(s)),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 wi(r,a){return Jt({},a,{value:void 0})}function ds(r,a){var s=r;_u(a),s._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Ci&&(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"),Ci=!0)}function od(r,a){var s=r;s.multiple=!!a.multiple;var f=a.value;f!=null?Pn(s,!!a.multiple,f,!1):a.defaultValue!=null&&Pn(s,!!a.multiple,a.defaultValue,!0)}function Cv(r,a){var s=r,f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Pn(s,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?Pn(s,!!a.multiple,a.defaultValue,!0):Pn(s,!!a.multiple,a.multiple?[]:"",!1))}function FC(r,a){var s=r,f=a.value;f!=null&&Pn(s,!!a.multiple,f,!1)}var lb=!1;function wv(r,a){var s=r;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var f=Jt({},a,{value:void 0,defaultValue:void 0,children:pr(s._wrapperState.initialValue)});return f}function Nv(r,a){var s=r;lo("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!lb&&(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",Ya()||"A component"),lb=!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(Bt(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}s._wrapperState={initialValue:aa(f)}}function sd(r,a){var s=r,f=aa(a.value),p=aa(a.defaultValue);if(f!=null){var y=pr(f);y!==s.value&&(s.value=y),a.defaultValue==null&&s.defaultValue!==y&&(s.defaultValue=y)}p!=null&&(s.defaultValue=pr(p))}function Tu(r,a){var s=r,f=s.textContent;f===s._wrapperState.initialValue&&f!==""&&f!==null&&(s.value=f)}function zC(r,a){sd(r,a)}var ps="http://www.w3.org/1999/xhtml",ub="http://www.w3.org/1998/Math/MathML",ld="http://www.w3.org/2000/svg";function ud(r){switch(r){case"svg":return ld;case"math":return ub;default:return ps}}function im(r,a){return r==null||r===ps?ud(a):r===ld&&a==="foreignObject"?ps:r}var BC=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,f,p){MSApp.execUnsafeLocalFunction(function(){return r(a,s,f,p)})}:r},Ac,om=BC(function(r,a){if(r.namespaceURI===ld&&!("innerHTML"in r)){Ac=Ac||document.createElement("div"),Ac.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var s=Ac.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild);return}r.innerHTML=a}),Ni=1,ms=3,Hn=8,Vo=9,Ru=11,cd=function(r,a){if(a){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===ms){s.nodeValue=a;return}}r.textContent=a},cb={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"]},fd={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 UC(r,a){return r+a.charAt(0).toUpperCase()+a.substring(1)}var $C=["Webkit","ms","Moz","O"];Object.keys(fd).forEach(function(r){$C.forEach(function(a){fd[UC(a,r)]=fd[r]})});function Ev(r,a,s){var f=a==null||typeof a=="boolean"||a==="";return f?"":!s&&typeof a=="number"&&a!==0&&!(fd.hasOwnProperty(r)&&fd[r])?a+"px":(an(a,r),(""+a).trim())}var jC=/([A-Z])/g,kc=/^ms-/;function VC(r){return r.replace(jC,"-$1").toLowerCase().replace(kc,"-ms-")}var fb=function(){};{var _v=/^(?:webkit|moz|o)[A-Z]/,db=/^-ms-/,Ll=/-(.)/g,dd=/;\s*$/,Oc={},Tv={},pb=!1,Au=!1,Ho=function(r){return r.replace(Ll,function(a,s){return s.toUpperCase()})},mb=function(r){Oc.hasOwnProperty(r)&&Oc[r]||(Oc[r]=!0,u("Unsupported style property %s. Did you mean %s?",r,Ho(r.replace(db,"ms-"))))},HC=function(r){Oc.hasOwnProperty(r)&&Oc[r]||(Oc[r]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},WC=function(r,a){Tv.hasOwnProperty(a)&&Tv[a]||(Tv[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,a.replace(dd,"")))},GC=function(r,a){pb||(pb=!0,u("`NaN` is an invalid value for the `%s` css style property.",r))},YC=function(r,a){Au||(Au=!0,u("`Infinity` is an invalid value for the `%s` css style property.",r))};fb=function(r,a){r.indexOf("-")>-1?mb(r):_v.test(r)?HC(r):dd.test(a)&&WC(r,a),typeof a=="number"&&(isNaN(a)?GC(r,a):isFinite(a)||YC(r,a))}}var qC=fb;function Dc(r){{var a="",s="";for(var f in r)if(!!r.hasOwnProperty(f)){var p=r[f];if(p!=null){var y=f.indexOf("--")===0;a+=s+(y?f:VC(f))+":",a+=Ev(f,p,y),s=";"}}return a||null}}function re(r,a){var s=r.style;for(var f in a)if(!!a.hasOwnProperty(f)){var p=f.indexOf("--")===0;p||qC(f,a[f]);var y=Ev(f,a[f],p);f==="float"&&(f="cssFloat"),p?s.setProperty(f,y):s[f]=y}}function Re(r){return r==null||typeof r=="boolean"||r===""}function be(r){var a={};for(var s in r)for(var f=cb[s]||[s],p=0;p<f.length;p++)a[f[p]]=s;return a}function ht(r,a){{if(!a)return;var s=be(r),f=be(a),p={};for(var y in s){var C=s[y],T=f[y];if(T&&C!==T){var D=C+","+T;if(p[D])continue;p[D]=!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.",Re(r[C])?"Removing":"Updating",C,T)}}}}var nn={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},Kn=Jt({menuitem:!0},nn),Xr="__html";function Jn(r,a){if(!!a){if(Kn[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(r+" 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"||!(Xr 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 Xs(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){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 sm={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"},$i={"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},Zs={},KC=new RegExp("^(aria)-["+it+"]*$"),Pc=new RegExp("^(aria)[A-Z]["+it+"]*$");function lm(r,a){{if(ye.call(Zs,a)&&Zs[a])return!0;if(Pc.test(a)){var s="aria-"+a.slice(4).toLowerCase(),f=$i.hasOwnProperty(s)?s:null;if(f==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Zs[a]=!0,!0;if(a!==f)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),Zs[a]=!0,!0}if(KC.test(a)){var p=a.toLowerCase(),y=$i.hasOwnProperty(p)?p:null;if(y==null)return Zs[a]=!0,!1;if(a!==y)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,y),Zs[a]=!0,!0}}return!0}function um(r,a){{var s=[];for(var f in a){var p=lm(r,f);p||s.push(f)}var y=s.map(function(C){return"`"+C+"`"}).join(", ");s.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,r):s.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,r)}}function er(r,a){Xs(r,a)||um(r,a)}var hb=!1;function vb(r,a){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;a!=null&&a.value===null&&!hb&&(hb=!0,r==="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.",r):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var pd=function(){};{var qa={},gb=/^on./,XC=/^on[^A-Z]/,cm=new RegExp("^(aria)-["+it+"]*$"),Fl=new RegExp("^(aria)[A-Z]["+it+"]*$");pd=function(r,a,s,f){if(ye.call(qa,a)&&qa[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."),qa[a]=!0,!0;if(f!=null){var y=f.registrationNameDependencies,C=f.possibleRegistrationNames;if(y.hasOwnProperty(a))return!0;var T=C.hasOwnProperty(p)?C[p]:null;if(T!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,T),qa[a]=!0,!0;if(gb.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),qa[a]=!0,!0}else if(gb.test(a))return XC.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),qa[a]=!0,!0;if(cm.test(a)||Fl.test(a))return!0;if(p==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qa[a]=!0,!0;if(p==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qa[a]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),qa[a]=!0,!0;if(typeof s=="number"&&isNaN(s))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),qa[a]=!0,!0;var D=va(a),U=D!==null&&D.type===He;if(sm.hasOwnProperty(p)){var H=sm[p];if(H!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,H),qa[a]=!0,!0}else if(!U&&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),qa[a]=!0,!0;return typeof s=="boolean"&&kr(a,s,D,!1)?(s?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()}.',s,a,a,s,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.',s,a,a,s,a,a,a),qa[a]=!0,!0):U?!0:kr(a,s,D,!1)?(qa[a]=!0,!1):((s==="false"||s==="true")&&D!==null&&D.type===kt&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,a,s==="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,s),qa[a]=!0),!0)}}var fm=function(r,a,s){{var f=[];for(var p in a){var y=pd(r,p,a[p],s);y||f.push(p)}var C=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 ",C,r):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 ",C,r)}};function yb(r,a,s){Xs(r,a)||fm(r,a,s)}var md=1,dm=1<<1,Mc=1<<2,pm=md|dm|Mc,Ic=null;function hd(r){Ic!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ic=r}function ku(){Ic===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ic=null}function mm(r){return r===Ic}function Rv(r){var a=r.target||r.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===ms?a.parentNode:a}var Av=null,Lc=null,Qs=null;function vd(r){var a=Qe(r);if(!!a){if(typeof Av!="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 s=a.stateNode;if(s){var f=Mt(s);Av(a.stateNode,a.type,f)}}}function kv(r){Av=r}function bb(r){Lc?Qs?Qs.push(r):Qs=[r]:Lc=r}function Sb(){return Lc!==null||Qs!==null}function xb(){if(!!Lc){var r=Lc,a=Qs;if(Lc=null,Qs=null,vd(r),a)for(var s=0;s<a.length;s++)vd(a[s])}}var Cb=function(r,a){return r(a)},$r=function(){},ia=!1;function ZC(){var r=Sb();r&&($r(),xb())}function wb(r,a,s){if(ia)return r(a,s);ia=!0;try{return Cb(r,a,s)}finally{ia=!1,ZC()}}function Nb(r,a,s){Cb=r,$r=s}function QC(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function Ov(r,a,s){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&QC(a));default:return!1}}function Js(r,a){var s=r.stateNode;if(s===null)return null;var f=Mt(s);if(f===null)return null;var p=f[a];if(Ov(a,r.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 gd=!1;if(Wt)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){gd=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{gd=!1}function Fc(r,a,s,f,p,y,C,T,D){var U=Array.prototype.slice.call(arguments,3);try{a.apply(s,U)}catch(H){this.onError(H)}}var zc=Fc;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Bc=document.createElement("react");zc=function(a,s,f,p,y,C,T,D,U){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,ve=window.event,ge=Object.getOwnPropertyDescriptor(window,"event");function _e(){Bc.removeEventListener(Te,Rt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ve)}var pt=Array.prototype.slice.call(arguments,3);function Rt(){ee=!0,_e(),s.apply(f,pt),J=!1}var xt,In=!1,En=!1;function ce(fe){if(xt=fe.error,In=!0,xt===null&&fe.colno===0&&fe.lineno===0&&(En=!0),fe.defaultPrevented&&xt!=null&&typeof xt=="object")try{xt._suppressLogging=!0}catch{}}var Te="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",ce),Bc.addEventListener(Te,Rt,!1),H.initEvent(Te,!1,!1),Bc.dispatchEvent(H),ge&&Object.defineProperty(window,"event",ge),ee&&J&&(In?En&&(xt=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.")):xt=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(xt)),window.removeEventListener("error",ce),!ee)return _e(),Fc.apply(this,arguments)}}var Uc=zc,$c=!1,hm=null,vm=!1,Dv=null,JC={onError:function(r){$c=!0,hm=r}};function jc(r,a,s,f,p,y,C,T,D){$c=!1,hm=null,Uc.apply(JC,arguments)}function yd(r,a,s,f,p,y,C,T,D){if(jc.apply(this,arguments),$c){var U=zl();vm||(vm=!0,Dv=U)}}function Eb(){if(vm){var r=Dv;throw vm=!1,Dv=null,r}}function L(){return $c}function zl(){if($c){var r=hm;return $c=!1,hm=null,r}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 el(r){return r._reactInternals}function uo(r){return r._reactInternals!==void 0}function An(r,a){r._reactInternals=a}var Ft=0,Vc=1,jr=2,fn=4,Ou=16,bd=32,Pv=64,Un=128,tl=256,$a=512,Du=1024,Wo=2048,nl=4096,Pu=8192,gm=16384,rl=Wo|fn|Pv|$a|Du|gm,ew=32767,Sd=32768,Ka=65536,Mv=131072,_b=1048576,al=2097152,Mu=4194304,Iv=8388608,Zr=16777216,ym=33554432,Lv=fn|Du|0,Fv=jr|fn|Ou|bd|$a|nl|Pu,xd=fn|Pv|$a|Pu,Hc=Wo|Ou,vs=Mu|Iv|al,Tb=n.ReactCurrentOwner;function Iu(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(jr|nl))!==Ft&&(s=a.return),f=a.return;while(f)}return a.tag===x?s:null}function Rb(r){if(r.tag===$){var a=r.memoizedState;if(a===null){var s=r.alternate;s!==null&&(a=s.memoizedState)}if(a!==null)return a.dehydrated}return null}function bm(r){return r.tag===x?r.stateNode.containerInfo:null}function Cd(r){return Iu(r)===r}function Sm(r){{var a=Tb.current;if(a!==null&&a.tag===v){var s=a,f=s.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.",$t(s)||"A component"),f._warnedAboutRefsInRender=!0}}var p=el(r);return p?Iu(p)===p:!1}function Ab(r){if(Iu(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function zv(r){var a=r.alternate;if(!a){var s=Iu(r);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==r?null:r}for(var f=r,p=a;;){var y=f.return;if(y===null)break;var C=y.alternate;if(C===null){var T=y.return;if(T!==null){f=p=T;continue}break}if(y.child===C.child){for(var D=y.child;D;){if(D===f)return Ab(y),r;if(D===p)return Ab(y),a;D=D.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==p.return)f=y,p=C;else{for(var U=!1,H=y.child;H;){if(H===f){U=!0,f=y,p=C;break}if(H===p){U=!0,p=y,f=C;break}H=H.sibling}if(!U){for(H=C.child;H;){if(H===f){U=!0,f=C,p=y;break}if(H===p){U=!0,p=C,f=y;break}H=H.sibling}if(!U)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?r:a}function kb(r){var a=zv(r);return a!==null?gs(a):null}function gs(r){if(r.tag===N||r.tag===R)return r;for(var a=r.child;a!==null;){var s=gs(a);if(s!==null)return s;a=a.sibling}return null}function Bv(r){var a=zv(r);return a!==null?Bl(a):null}function Bl(r){if(r.tag===N||r.tag===R)return r;for(var a=r.child;a!==null;){if(a.tag!==w){var s=Bl(a);if(s!==null)return s}a=a.sibling}return null}var ji=t.unstable_scheduleCallback,tw=t.unstable_cancelCallback,Ob=t.unstable_shouldYield,Db=t.unstable_requestPaint,Or=t.unstable_now,Ul=t.unstable_getCurrentPriorityLevel,wd=t.unstable_ImmediatePriority,Uv=t.unstable_UserBlockingPriority,ys=t.unstable_NormalPriority,nw=t.unstable_LowPriority,xm=t.unstable_IdlePriority,wa=t.unstable_yieldValue,$v=t.unstable_setDisableYieldValue,Lu=null,gr=null,rt=null,Vi=!1,Na=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Pb(r){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{at&&(r=Jt({},r,{getLaneLabelMap:iw,injectProfilingHooks:Vv})),Lu=a.inject(r),gr=a}catch(s){u("React instrumentation encountered an error: %s.",s)}return!!a.checkDCE}function Xa(r,a){if(gr&&typeof gr.onScheduleFiberRoot=="function")try{gr.onScheduleFiberRoot(Lu,r,a)}catch(s){Vi||(Vi=!0,u("React instrumentation encountered an error: %s",s))}}function jv(r,a){if(gr&&typeof gr.onCommitFiberRoot=="function")try{var s=(r.current.flags&Un)===Un;if(gt){var f;switch(a){case Qa:f=wd;break;case Cs:f=Uv;break;case Cr:f=ys;break;case Im:f=xm;break;default:f=ys;break}gr.onCommitFiberRoot(Lu,r,f,s)}}catch(p){Vi||(Vi=!0,u("React instrumentation encountered an error: %s",p))}}function rw(r){if(gr&&typeof gr.onPostCommitFiberRoot=="function")try{gr.onPostCommitFiberRoot(Lu,r)}catch(a){Vi||(Vi=!0,u("React instrumentation encountered an error: %s",a))}}function aw(r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Lu,r)}catch(a){Vi||(Vi=!0,u("React instrumentation encountered an error: %s",a))}}function oa(r){if(typeof wa=="function"&&($v(r),o(r)),gr&&typeof gr.setStrictMode=="function")try{gr.setStrictMode(Lu,r)}catch(a){Vi||(Vi=!0,u("React instrumentation encountered an error: %s",a))}}function Vv(r){rt=r}function iw(){{for(var r=new Map,a=1,s=0;s<Zv;s++){var f=fw(a);r.set(a,f),a*=2}return r}}function Nd(r){rt!==null&&typeof rt.markCommitStarted=="function"&&rt.markCommitStarted(r)}function Hv(){rt!==null&&typeof rt.markCommitStopped=="function"&&rt.markCommitStopped()}function Ed(r){rt!==null&&typeof rt.markComponentRenderStarted=="function"&&rt.markComponentRenderStarted(r)}function Wc(){rt!==null&&typeof rt.markComponentRenderStopped=="function"&&rt.markComponentRenderStopped()}function _d(r){rt!==null&&typeof rt.markComponentPassiveEffectMountStarted=="function"&&rt.markComponentPassiveEffectMountStarted(r)}function ow(){rt!==null&&typeof rt.markComponentPassiveEffectMountStopped=="function"&&rt.markComponentPassiveEffectMountStopped()}function sw(r){rt!==null&&typeof rt.markComponentPassiveEffectUnmountStarted=="function"&&rt.markComponentPassiveEffectUnmountStarted(r)}function Wv(){rt!==null&&typeof rt.markComponentPassiveEffectUnmountStopped=="function"&&rt.markComponentPassiveEffectUnmountStopped()}function Mb(r){rt!==null&&typeof rt.markComponentLayoutEffectMountStarted=="function"&&rt.markComponentLayoutEffectMountStarted(r)}function lw(){rt!==null&&typeof rt.markComponentLayoutEffectMountStopped=="function"&&rt.markComponentLayoutEffectMountStopped()}function Ib(r){rt!==null&&typeof rt.markComponentLayoutEffectUnmountStarted=="function"&&rt.markComponentLayoutEffectUnmountStarted(r)}function Lb(){rt!==null&&typeof rt.markComponentLayoutEffectUnmountStopped=="function"&&rt.markComponentLayoutEffectUnmountStopped()}function Fb(r,a,s){rt!==null&&typeof rt.markComponentErrored=="function"&&rt.markComponentErrored(r,a,s)}function Gv(r,a,s){rt!==null&&typeof rt.markComponentSuspended=="function"&&rt.markComponentSuspended(r,a,s)}function uw(r){rt!==null&&typeof rt.markLayoutEffectsStarted=="function"&&rt.markLayoutEffectsStarted(r)}function Yv(){rt!==null&&typeof rt.markLayoutEffectsStopped=="function"&&rt.markLayoutEffectsStopped()}function zb(r){rt!==null&&typeof rt.markPassiveEffectsStarted=="function"&&rt.markPassiveEffectsStarted(r)}function Bb(){rt!==null&&typeof rt.markPassiveEffectsStopped=="function"&&rt.markPassiveEffectsStopped()}function qv(r){rt!==null&&typeof rt.markRenderStarted=="function"&&rt.markRenderStarted(r)}function Cm(){rt!==null&&typeof rt.markRenderYielded=="function"&&rt.markRenderYielded()}function Ub(){rt!==null&&typeof rt.markRenderStopped=="function"&&rt.markRenderStopped()}function $b(r){rt!==null&&typeof rt.markRenderScheduled=="function"&&rt.markRenderScheduled(r)}function jb(r,a){rt!==null&&typeof rt.markForceUpdateScheduled=="function"&&rt.markForceUpdateScheduled(r,a)}function Kv(r,a){rt!==null&&typeof rt.markStateUpdateScheduled=="function"&&rt.markStateUpdateScheduled(r,a)}var Dt=0,wn=1,Wn=2,Ir=8,co=16,Vb=Math.clz32?Math.clz32:cw,Xv=Math.log,yn=Math.LN2;function cw(r){var a=r>>>0;return a===0?32:31-(Xv(a)/yn|0)|0}var Zv=31,Fe=0,Qr=0,Gt=1,Gc=2,Vr=4,Fu=8,Hi=16,zu=32,Bu=4194240,Yc=64,Za=128,bs=256,Td=512,wm=1024,qc=2048,Nm=4096,Rd=8192,Em=16384,Ad=32768,kd=65536,Ss=131072,Qv=262144,xs=524288,_m=1048576,Tm=2097152,Kc=130023424,Xc=4194304,Jv=8388608,eg=16777216,Rm=33554432,Am=67108864,Hb=Xc,Zc=134217728,tg=268435455,sa=268435456,ja=536870912,Wi=1073741824;function fw(r){{if(r&Gt)return"Sync";if(r&Gc)return"InputContinuousHydration";if(r&Vr)return"InputContinuous";if(r&Fu)return"DefaultHydration";if(r&Hi)return"Default";if(r&zu)return"TransitionHydration";if(r&Bu)return"Transition";if(r&Kc)return"Retry";if(r&Zc)return"SelectiveHydration";if(r&sa)return"IdleHydration";if(r&ja)return"Idle";if(r&Wi)return"Offscreen"}}var tr=-1,il=Yc,Od=Xc;function Qc(r){switch(ol(r)){case Gt:return Gt;case Gc:return Gc;case Vr:return Vr;case Fu:return Fu;case Hi:return Hi;case zu:return zu;case Yc:case Za:case bs:case Td:case wm:case qc:case Nm:case Rd:case Em:case Ad:case kd:case Ss:case Qv:case xs:case _m:case Tm:return r&Bu;case Xc:case Jv:case eg:case Rm:case Am:return r&Kc;case Zc:return Zc;case sa:return sa;case ja:return ja;case Wi:return Wi;default:return u("Should have found matching lanes. This is a bug in React."),r}}function km(r,a){var s=r.pendingLanes;if(s===Fe)return Fe;var f=Fe,p=r.suspendedLanes,y=r.pingedLanes,C=s&tg;if(C!==Fe){var T=C&~p;if(T!==Fe)f=Qc(T);else{var D=C&y;D!==Fe&&(f=Qc(D))}}else{var U=s&~p;U!==Fe?f=Qc(U):y!==Fe&&(f=Qc(y))}if(f===Fe)return Fe;if(a!==Fe&&a!==f&&(a&p)===Fe){var H=ol(f),ee=ol(a);if(H>=ee||H===Hi&&(ee&Bu)!==Fe)return a}(f&Vr)!==Fe&&(f|=s&Hi);var J=r.entangledLanes;if(J!==Fe)for(var ve=r.entanglements,ge=f&J;ge>0;){var _e=$l(ge),pt=1<<_e;f|=ve[_e],ge&=~pt}return f}function Wb(r,a){for(var s=r.eventTimes,f=tr;a>0;){var p=$l(a),y=1<<p,C=s[p];C>f&&(f=C),a&=~y}return f}function Jc(r,a){switch(r){case Gt:case Gc:case Vr:return a+250;case Fu:case Hi:case zu:case Yc:case Za:case bs:case Td:case wm:case qc:case Nm:case Rd:case Em:case Ad:case kd:case Ss:case Qv:case xs:case _m:case Tm:return a+5e3;case Xc:case Jv:case eg:case Rm:case Am:return tr;case Zc:case sa:case ja:case Wi:return tr;default:return u("Should have found matching lanes. This is a bug in React."),tr}}function Dd(r,a){for(var s=r.pendingLanes,f=r.suspendedLanes,p=r.pingedLanes,y=r.expirationTimes,C=s;C>0;){var T=$l(C),D=1<<T,U=y[T];U===tr?((D&f)===Fe||(D&p)!==Fe)&&(y[T]=Jc(D,a)):U<=a&&(r.expiredLanes|=D),C&=~D}}function dw(r){return Qc(r.pendingLanes)}function Om(r){var a=r.pendingLanes&~Wi;return a!==Fe?a:a&Wi?Wi:Fe}function Gb(r){return(r&Gt)!==Fe}function ef(r){return(r&tg)!==Fe}function ng(r){return(r&Kc)===r}function Dm(r){var a=Gt|Vr|Hi;return(r&a)===Fe}function rg(r){return(r&Bu)===r}function Uu(r,a){var s=Gc|Vr|Fu|Hi;return(a&s)!==Fe}function pw(r,a){return(a&r.expiredLanes)!==Fe}function ag(r){return(r&Bu)!==Fe}function Pd(){var r=il;return il<<=1,(il&Bu)===Fe&&(il=Yc),r}function Yb(){var r=Od;return Od<<=1,(Od&Kc)===Fe&&(Od=Xc),r}function ol(r){return r&-r}function Md(r){return ol(r)}function $l(r){return 31-Vb(r)}function Go(r){return $l(r)}function Ei(r,a){return(r&a)!==Fe}function $u(r,a){return(r&a)===a}function dn(r,a){return r|a}function Id(r,a){return r&~a}function qb(r,a){return r&a}function PO(r){return r}function sl(r,a){return r!==Qr&&r<a?r:a}function Ld(r){for(var a=[],s=0;s<Zv;s++)a.push(r);return a}function ju(r,a,s){r.pendingLanes|=a,a!==ja&&(r.suspendedLanes=Fe,r.pingedLanes=Fe);var f=r.eventTimes,p=Go(a);f[p]=s}function ig(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var s=r.expirationTimes,f=a;f>0;){var p=$l(f),y=1<<p;s[p]=tr,f&=~y}}function Fd(r,a,s){r.pingedLanes|=r.suspendedLanes&a}function tf(r,a){var s=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Fe,r.pingedLanes=Fe,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var f=r.entanglements,p=r.eventTimes,y=r.expirationTimes,C=s;C>0;){var T=$l(C),D=1<<T;f[T]=Fe,p[T]=tr,y[T]=tr,C&=~D}}function Pt(r,a){for(var s=r.entangledLanes|=a,f=r.entanglements,p=s;p;){var y=$l(p),C=1<<y;C&a|f[y]&a&&(f[y]|=a),p&=~C}}function Pm(r,a){var s=ol(a),f;switch(s){case Vr:f=Gc;break;case Hi:f=Fu;break;case Yc:case Za:case bs:case Td:case wm:case qc:case Nm:case Rd:case Em:case Ad:case kd:case Ss:case Qv:case xs:case _m:case Tm:case Xc:case Jv:case eg:case Rm:case Am:f=zu;break;case ja:f=sa;break;default:f=Qr;break}return(f&(r.suspendedLanes|a))!==Qr?Qr:f}function Mm(r,a,s){if(!!Na)for(var f=r.pendingUpdatersLaneMap;s>0;){var p=Go(s),y=1<<p,C=f[p];C.add(a),s&=~y}}function jl(r,a){if(!!Na)for(var s=r.pendingUpdatersLaneMap,f=r.memoizedUpdaters;a>0;){var p=Go(a),y=1<<p,C=s[p];C.size>0&&(C.forEach(function(T){var D=T.alternate;(D===null||!f.has(D))&&f.add(T)}),C.clear()),a&=~y}}function Kb(r,a){return null}var Qa=Gt,Cs=Vr,Cr=Hi,Im=ja,zd=Qr;function fo(){return zd}function la(r){zd=r}function Xb(r,a){var s=zd;try{return zd=r,a()}finally{zd=s}}function mw(r,a){return r!==0&&r<a?r:a}function hw(r,a){return r===0||r>a?r:a}function og(r,a){return r!==0&&r<a}function ws(r){var a=ol(r);return og(Qa,a)?og(Cs,a)?ef(a)?Cr:Im:Cs:Qa}function ua(r){var a=r.current.memoizedState;return a.isDehydrated}var Lm;function vw(r){Lm=r}function sg(r){Lm(r)}var lg;function gw(r){lg=r}var nf;function Zb(r){nf=r}var ug;function yw(r){ug=r}var Qb;function bw(r){Qb=r}var cg=!1,Bd=[],ll=null,Vl=null,Ns=null,rf=new Map,ul=new Map,Es=[],Jb=["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 e1(r){return Jb.indexOf(r)>-1}function Fm(r,a,s,f,p){return{blockedOn:r,domEventName:a,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]}}function fg(r,a){switch(r){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":Vl=null;break;case"mouseover":case"mouseout":Ns=null;break;case"pointerover":case"pointerout":{var s=a.pointerId;rf.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;ul.delete(f);break}}}function _i(r,a,s,f,p,y){if(r===null||r.nativeEvent!==y){var C=Fm(a,s,f,p,y);if(a!==null){var T=Qe(a);T!==null&&lg(T)}return C}r.eventSystemFlags|=f;var D=r.targetContainers;return p!==null&&D.indexOf(p)===-1&&D.push(p),r}function Vu(r,a,s,f,p){switch(a){case"focusin":{var y=p;return ll=_i(ll,r,a,s,f,y),!0}case"dragenter":{var C=p;return Vl=_i(Vl,r,a,s,f,C),!0}case"mouseover":{var T=p;return Ns=_i(Ns,r,a,s,f,T),!0}case"pointerover":{var D=p,U=D.pointerId;return rf.set(U,_i(rf.get(U)||null,r,a,s,f,D)),!0}case"gotpointercapture":{var H=p,ee=H.pointerId;return ul.set(ee,_i(ul.get(ee)||null,r,a,s,f,H)),!0}}return!1}function t1(r){var a=Le(r.target);if(a!==null){var s=Iu(a);if(s!==null){var f=s.tag;if(f===$){var p=Rb(s);if(p!==null){r.blockedOn=p,Qb(r.priority,function(){nf(s)});return}}else if(f===x){var y=s.stateNode;if(ua(y)){r.blockedOn=bm(s);return}}}}r.blockedOn=null}function n1(r){for(var a=ug(),s={blockedOn:null,target:r,priority:a},f=0;f<Es.length&&og(a,Es[f].priority);f++);Es.splice(f,0,s),f===0&&t1(s)}function zm(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;a.length>0;){var s=a[0],f=pg(r.domEventName,r.eventSystemFlags,s,r.nativeEvent);if(f===null){var p=r.nativeEvent,y=new p.constructor(p.type,p);hd(y),p.target.dispatchEvent(y),ku()}else{var C=Qe(f);return C!==null&&lg(C),r.blockedOn=f,!1}a.shift()}return!0}function r1(r,a,s){zm(r)&&s.delete(a)}function Sw(){cg=!1,ll!==null&&zm(ll)&&(ll=null),Vl!==null&&zm(Vl)&&(Vl=null),Ns!==null&&zm(Ns)&&(Ns=null),rf.forEach(r1),ul.forEach(r1)}function Ud(r,a){r.blockedOn===a&&(r.blockedOn=null,cg||(cg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Sw)))}function $d(r){if(Bd.length>0){Ud(Bd[0],r);for(var a=1;a<Bd.length;a++){var s=Bd[a];s.blockedOn===r&&(s.blockedOn=null)}}ll!==null&&Ud(ll,r),Vl!==null&&Ud(Vl,r),Ns!==null&&Ud(Ns,r);var f=function(T){return Ud(T,r)};rf.forEach(f),ul.forEach(f);for(var p=0;p<Es.length;p++){var y=Es[p];y.blockedOn===r&&(y.blockedOn=null)}for(;Es.length>0;){var C=Es[0];if(C.blockedOn!==null)break;t1(C),C.blockedOn===null&&Es.shift()}}var af=n.ReactCurrentBatchConfig,dg=!0;function a1(r){dg=!!r}function xw(){return dg}function Cw(r,a,s){var f=s1(a),p;switch(f){case Qa:p=ww;break;case Cs:p=i1;break;case Cr:default:p=Bm;break}return p.bind(null,a,s,r)}function ww(r,a,s,f){var p=fo(),y=af.transition;af.transition=null;try{la(Qa),Bm(r,a,s,f)}finally{la(p),af.transition=y}}function i1(r,a,s,f){var p=fo(),y=af.transition;af.transition=null;try{la(Cs),Bm(r,a,s,f)}finally{la(p),af.transition=y}}function Bm(r,a,s,f){!dg||o1(r,a,s,f)}function o1(r,a,s,f){var p=pg(r,a,s,f);if(p===null){Ag(r,a,f,Um,s),fg(r,f);return}if(Vu(p,r,a,s,f)){f.stopPropagation();return}if(fg(r,f),a&Mc&&e1(r)){for(;p!==null;){var y=Qe(p);y!==null&&sg(y);var C=pg(r,a,s,f);if(C===null&&Ag(r,a,f,Um,s),C===p)break;p=C}p!==null&&f.stopPropagation();return}Ag(r,a,f,null,s)}var Um=null;function pg(r,a,s,f){Um=null;var p=Rv(f),y=Le(p);if(y!==null){var C=Iu(y);if(C===null)y=null;else{var T=C.tag;if(T===$){var D=Rb(C);if(D!==null)return D;y=null}else if(T===x){var U=C.stateNode;if(ua(U))return bm(C);y=null}else C!==y&&(y=null)}}return Um=y,null}function s1(r){switch(r){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 Qa;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 Cs;case"message":{var a=Ul();switch(a){case wd:return Qa;case Uv:return Cs;case ys:case nw:return Cr;case xm:return Im;default:return Cr}}default:return Cr}}function l1(r,a,s){return r.addEventListener(a,s,!1),s}function Nw(r,a,s){return r.addEventListener(a,s,!0),s}function Ew(r,a,s,f){return r.addEventListener(a,s,{capture:!0,passive:f}),s}function _w(r,a,s,f){return r.addEventListener(a,s,{passive:f}),s}var jd=null,mg=null,Vd=null;function po(r){return jd=r,mg=c1(),!0}function Tw(){jd=null,mg=null,Vd=null}function u1(){if(Vd)return Vd;var r,a=mg,s=a.length,f,p=c1(),y=p.length;for(r=0;r<s&&a[r]===p[r];r++);var C=s-r;for(f=1;f<=C&&a[s-f]===p[y-f];f++);var T=f>1?1-f:void 0;return Vd=p.slice(r,T),Vd}function c1(){return"value"in jd?jd.value:jd.textContent}function Hd(r){var a,s=r.keyCode;return"charCode"in r?(a=r.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),a>=32||a===13?a:0}function $m(){return!0}function f1(){return!1}function Gi(r){function a(s,f,p,y,C){this._reactName=s,this._targetInst=p,this.type=f,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var T in r)if(!!r.hasOwnProperty(T)){var D=r[T];D?this[T]=D(y):this[T]=y[T]}var U=y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1;return U?this.isDefaultPrevented=$m:this.isDefaultPrevented=f1,this.isPropagationStopped=f1,this}return Jt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;!s||(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=$m)},stopPropagation:function(){var s=this.nativeEvent;!s||(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=$m)},persist:function(){},isPersistent:$m}),a}var of={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Gi(of),Gd=Jt({},of,{view:0,detail:0}),Rw=Gi(Gd),hg,vg,Yd;function Aw(r){r!==Yd&&(Yd&&r.type==="mousemove"?(hg=r.screenX-Yd.screenX,vg=r.screenY-Yd.screenY):(hg=0,vg=0),Yd=r)}var jm=Jt({},Gd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bg,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(Aw(r),hg)},movementY:function(r){return"movementY"in r?r.movementY:vg}}),d1=Gi(jm),kw=Jt({},jm,{dataTransfer:0}),Ow=Gi(kw),Dw=Jt({},Gd,{relatedTarget:0}),gg=Gi(Dw),Pw=Jt({},of,{animationName:0,elapsedTime:0,pseudoElement:0}),Mw=Gi(Pw),Iw=Jt({},of,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Lw=Gi(Iw),Fw=Jt({},of,{data:0}),p1=Gi(Fw),zw=p1,Bw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yg={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 m1(r){if(r.key){var a=Bw[r.key]||r.key;if(a!=="Unidentified")return a}if(r.type==="keypress"){var s=Hd(r);return s===13?"Enter":String.fromCharCode(s)}return r.type==="keydown"||r.type==="keyup"?yg[r.keyCode]||"Unidentified":""}var Uw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $w(r){var a=this,s=a.nativeEvent;if(s.getModifierState)return s.getModifierState(r);var f=Uw[r];return f?!!s[f]:!1}function bg(r){return $w}var jw=Jt({},Gd,{key:m1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bg,charCode:function(r){return r.type==="keypress"?Hd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Hd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Vw=Gi(jw),Hw=Jt({},jm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h1=Gi(Hw),Ww=Jt({},Gd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bg}),v1=Gi(Ww),Gw=Jt({},of,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vm=Gi(Gw),Yw=Jt({},jm,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),qw=Gi(Yw),Kw=[9,13,27,32],g1=229,Sg=Wt&&"CompositionEvent"in window,qd=null;Wt&&"documentMode"in document&&(qd=document.documentMode);var Xw=Wt&&"TextEvent"in window&&!qd,y1=Wt&&(!Sg||qd&&qd>8&&qd<=11),b1=32,S1=String.fromCharCode(b1);function Zw(){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 x1=!1;function Qw(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function Jw(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eN(r,a){return r==="keydown"&&a.keyCode===g1}function C1(r,a){switch(r){case"keyup":return Kw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==g1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xg(r){var a=r.detail;return typeof a=="object"&&"data"in a?a.data:null}function Cg(r){return r.locale==="ko"}var sf=!1;function tN(r,a,s,f,p){var y,C;if(Sg?y=Jw(a):sf?C1(a,f)&&(y="onCompositionEnd"):eN(a,f)&&(y="onCompositionStart"),!y)return null;y1&&!Cg(f)&&(!sf&&y==="onCompositionStart"?sf=po(p):y==="onCompositionEnd"&&sf&&(C=u1()));var T=rn(s,y);if(T.length>0){var D=new p1(y,a,null,f,p);if(r.push({event:D,listeners:T}),C)D.data=C;else{var U=xg(f);U!==null&&(D.data=U)}}}function nN(r,a){switch(r){case"compositionend":return xg(a);case"keypress":var s=a.which;return s!==b1?null:(x1=!0,S1);case"textInput":var f=a.data;return f===S1&&x1?null:f;default:return null}}function rN(r,a){if(sf){if(r==="compositionend"||!Sg&&C1(r,a)){var s=u1();return Tw(),sf=!1,s}return null}switch(r){case"paste":return null;case"keypress":if(!Qw(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return y1&&!Cg(a)?null:a.data;default:return null}}function Hm(r,a,s,f,p){var y;if(Xw?y=nN(a,f):y=rN(a,f),!y)return null;var C=rn(s,"onBeforeInput");if(C.length>0){var T=new zw("onBeforeInput","beforeinput",null,f,p);r.push({event:T,listeners:C}),T.data=y}}function aN(r,a,s,f,p,y,C){tN(r,a,s,f,p),Hm(r,a,s,f,p)}var iN={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 w1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!iN[r.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 oN(r){if(!Wt)return!1;var a="on"+r,s=a in document;if(!s){var f=document.createElement("div");f.setAttribute(a,"return;"),s=typeof f[a]=="function"}return s}function sN(){zt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function N1(r,a,s,f){bb(f);var p=rn(a,"onChange");if(p.length>0){var y=new Wd("onChange","change",null,s,f);r.push({event:y,listeners:p})}}var Kd=null,Xd=null;function lN(r){var a=r.nodeName&&r.nodeName.toLowerCase();return a==="select"||a==="input"&&r.type==="file"}function uN(r){var a=[];N1(a,Xd,r,Rv(r)),wb(cN,a)}function cN(r){Rg(r,0)}function Hu(r){var a=vt(r);if(W(a))return r}function fN(r,a){if(r==="change")return a}var wg=!1;Wt&&(wg=oN("input")&&(!document.documentMode||document.documentMode>9));function E1(r,a){Kd=r,Xd=a,Kd.attachEvent("onpropertychange",Ng)}function Wm(){!Kd||(Kd.detachEvent("onpropertychange",Ng),Kd=null,Xd=null)}function Ng(r){r.propertyName==="value"&&Hu(Xd)&&uN(r)}function _1(r,a,s){r==="focusin"?(Wm(),E1(a,s)):r==="focusout"&&Wm()}function T1(r,a){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Hu(Xd)}function R1(r){var a=r.nodeName;return a&&a.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function dN(r,a){if(r==="click")return Hu(a)}function pN(r,a){if(r==="input"||r==="change")return Hu(a)}function mN(r){var a=r._wrapperState;!a||!a.controlled||r.type!=="number"||Ve(r,"number",r.value)}function Gm(r,a,s,f,p,y,C){var T=s?vt(s):window,D,U;if(lN(T)?D=fN:w1(T)?wg?D=pN:(D=T1,U=_1):R1(T)&&(D=dN),D){var H=D(a,s);if(H){N1(r,H,f,p);return}}U&&U(a,T,s),a==="focusout"&&mN(T)}function Ym(){Ge("onMouseEnter",["mouseout","mouseover"]),Ge("onMouseLeave",["mouseout","mouseover"]),Ge("onPointerEnter",["pointerout","pointerover"]),Ge("onPointerLeave",["pointerout","pointerover"])}function hN(r,a,s,f,p,y,C){var T=a==="mouseover"||a==="pointerover",D=a==="mouseout"||a==="pointerout";if(T&&!mm(f)){var U=f.relatedTarget||f.fromElement;if(U&&(Le(U)||Ae(U)))return}if(!(!D&&!T)){var H;if(p.window===p)H=p;else{var ee=p.ownerDocument;ee?H=ee.defaultView||ee.parentWindow:H=window}var J,ve;if(D){var ge=f.relatedTarget||f.toElement;if(J=s,ve=ge?Le(ge):null,ve!==null){var _e=Iu(ve);(ve!==_e||ve.tag!==N&&ve.tag!==R)&&(ve=null)}}else J=null,ve=s;if(J!==ve){var pt=d1,Rt="onMouseLeave",xt="onMouseEnter",In="mouse";(a==="pointerout"||a==="pointerover")&&(pt=h1,Rt="onPointerLeave",xt="onPointerEnter",In="pointer");var En=J==null?H:vt(J),ce=ve==null?H:vt(ve),Te=new pt(Rt,In+"leave",J,f,p);Te.target=En,Te.relatedTarget=ce;var fe=null,We=Le(p);if(We===s){var mt=new pt(xt,In+"enter",ve,f,p);mt.target=ce,mt.relatedTarget=En,fe=mt}PN(r,Te,fe,J,ve)}}}function vN(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Ja=typeof Object.is=="function"?Object.is:vN;function lf(r,a){if(Ja(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var s=Object.keys(r),f=Object.keys(a);if(s.length!==f.length)return!1;for(var p=0;p<s.length;p++){var y=s[p];if(!ye.call(a,y)||!Ja(r[y],a[y]))return!1}return!0}function A1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function gN(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function k1(r,a){for(var s=A1(r),f=0,p=0;s;){if(s.nodeType===ms){if(p=f+s.textContent.length,f<=a&&p>=a)return{node:s,offset:a-f};f=p}s=A1(gN(s))}}function yN(r){var a=r.ownerDocument,s=a&&a.defaultView||window,f=s.getSelection&&s.getSelection();if(!f||f.rangeCount===0)return null;var p=f.anchorNode,y=f.anchorOffset,C=f.focusNode,T=f.focusOffset;try{p.nodeType,C.nodeType}catch{return null}return bN(r,p,y,C,T)}function bN(r,a,s,f,p){var y=0,C=-1,T=-1,D=0,U=0,H=r,ee=null;e:for(;;){for(var J=null;H===a&&(s===0||H.nodeType===ms)&&(C=y+s),H===f&&(p===0||H.nodeType===ms)&&(T=y+p),H.nodeType===ms&&(y+=H.nodeValue.length),(J=H.firstChild)!==null;)ee=H,H=J;for(;;){if(H===r)break e;if(ee===a&&++D===s&&(C=y),ee===f&&++U===p&&(T=y),(J=H.nextSibling)!==null)break;H=ee,ee=H.parentNode}H=J}return C===-1||T===-1?null:{start:C,end:T}}function SN(r,a){var s=r.ownerDocument||document,f=s&&s.defaultView||window;if(!!f.getSelection){var p=f.getSelection(),y=r.textContent.length,C=Math.min(a.start,y),T=a.end===void 0?C:Math.min(a.end,y);if(!p.extend&&C>T){var D=T;T=C,C=D}var U=k1(r,C),H=k1(r,T);if(U&&H){if(p.rangeCount===1&&p.anchorNode===U.node&&p.anchorOffset===U.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var ee=s.createRange();ee.setStart(U.node,U.offset),p.removeAllRanges(),C>T?(p.addRange(ee),p.extend(H.node,H.offset)):(ee.setEnd(H.node,H.offset),p.addRange(ee))}}}function O1(r){return r&&r.nodeType===ms}function D1(r,a){return!r||!a?!1:r===a?!0:O1(r)?!1:O1(a)?D1(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1}function xN(r){return r&&r.ownerDocument&&D1(r.ownerDocument.documentElement,r)}function CN(r){try{return typeof r.contentWindow.location.href=="string"}catch{return!1}}function P1(){for(var r=window,a=Q();a instanceof r.HTMLIFrameElement;){if(CN(a))r=a.contentWindow;else return a;a=Q(r.document)}return a}function Eg(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Yo(){var r=P1();return{focusedElem:r,selectionRange:Eg(r)?NN(r):null}}function wN(r){var a=P1(),s=r.focusedElem,f=r.selectionRange;if(a!==s&&xN(s)){f!==null&&Eg(s)&&Wu(s,f);for(var p=[],y=s;y=y.parentNode;)y.nodeType===Ni&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var C=0;C<p.length;C++){var T=p[C];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}}function NN(r){var a;return"selectionStart"in r?a={start:r.selectionStart,end:r.selectionEnd}:a=yN(r),a||{start:0,end:0}}function Wu(r,a){var s=a.start,f=a.end;f===void 0&&(f=s),"selectionStart"in r?(r.selectionStart=s,r.selectionEnd=Math.min(f,r.value.length)):SN(r,a)}var sn=Wt&&"documentMode"in document&&document.documentMode<=11;function EN(){zt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Jr=null,Tr=null,Zd=null,_s=!1;function _N(r){if("selectionStart"in r&&Eg(r))return{start:r.selectionStart,end:r.selectionEnd};var a=r.ownerDocument&&r.ownerDocument.defaultView||window,s=a.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function TN(r){return r.window===r?r.document:r.nodeType===Vo?r:r.ownerDocument}function M1(r,a,s){var f=TN(s);if(!(_s||Jr==null||Jr!==Q(f))){var p=_N(Jr);if(!Zd||!lf(Zd,p)){Zd=p;var y=rn(Tr,"onSelect");if(y.length>0){var C=new Wd("onSelect","select",null,a,s);r.push({event:C,listeners:y}),C.target=Jr}}}}function RN(r,a,s,f,p,y,C){var T=s?vt(s):window;switch(a){case"focusin":(w1(T)||T.contentEditable==="true")&&(Jr=T,Tr=s,Zd=null);break;case"focusout":Jr=null,Tr=null,Zd=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,M1(r,f,p);break;case"selectionchange":if(sn)break;case"keydown":case"keyup":M1(r,f,p)}}function qm(r,a){var s={};return s[r.toLowerCase()]=a.toLowerCase(),s["Webkit"+r]="webkit"+a,s["Moz"+r]="moz"+a,s}var Hl={animationend:qm("Animation","AnimationEnd"),animationiteration:qm("Animation","AnimationIteration"),animationstart:qm("Animation","AnimationStart"),transitionend:qm("Transition","TransitionEnd")},_g={},Ts={};Wt&&(Ts=document.createElement("div").style,"AnimationEvent"in window||(delete Hl.animationend.animation,delete Hl.animationiteration.animation,delete Hl.animationstart.animation),"TransitionEvent"in window||delete Hl.transitionend.transition);function Qd(r){if(_g[r])return _g[r];if(!Hl[r])return r;var a=Hl[r];for(var s in a)if(a.hasOwnProperty(s)&&s in Ts)return _g[r]=a[s];return r}var Jd=Qd("animationend"),wr=Qd("animationiteration"),Rr=Qd("animationstart"),Tg=Qd("transitionend"),I1=new Map,L1=["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 Wl(r,a){I1.set(r,a),zt(a,[r])}function AN(){for(var r=0;r<L1.length;r++){var a=L1[r],s=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);Wl(s,"on"+f)}Wl(Jd,"onAnimationEnd"),Wl(wr,"onAnimationIteration"),Wl(Rr,"onAnimationStart"),Wl("dblclick","onDoubleClick"),Wl("focusin","onFocus"),Wl("focusout","onBlur"),Wl(Tg,"onTransitionEnd")}function kN(r,a,s,f,p,y,C){var T=I1.get(a);if(T!==void 0){var D=Wd,U=a;switch(a){case"keypress":if(Hd(f)===0)return;case"keydown":case"keyup":D=Vw;break;case"focusin":U="focus",D=gg;break;case"focusout":U="blur",D=gg;break;case"beforeblur":case"afterblur":D=gg;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=d1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Ow;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=v1;break;case Jd:case wr:case Rr:D=Mw;break;case Tg:D=Vm;break;case"scroll":D=Rw;break;case"wheel":D=qw;break;case"copy":case"cut":case"paste":D=Lw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=h1;break}var H=(y&Mc)!==0;{var ee=!H&&a==="scroll",J=cl(s,T,f.type,H,ee);if(J.length>0){var ve=new D(T,U,null,f,p);r.push({event:ve,listeners:J})}}}}AN(),Ym(),sN(),EN(),Zw();function ON(r,a,s,f,p,y,C){kN(r,a,s,f,p,y);var T=(y&pm)===0;T&&(hN(r,a,s,f,p),Gm(r,a,s,f,p),RN(r,a,s,f,p),aN(r,a,s,f,p))}var uf=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Gu=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(uf));function Km(r,a,s){var f=r.type||"unknown-event";r.currentTarget=s,yd(f,a,void 0,r),r.currentTarget=null}function DN(r,a,s){var f;if(s)for(var p=a.length-1;p>=0;p--){var y=a[p],C=y.instance,T=y.currentTarget,D=y.listener;if(C!==f&&r.isPropagationStopped())return;Km(r,D,T),f=C}else for(var U=0;U<a.length;U++){var H=a[U],ee=H.instance,J=H.currentTarget,ve=H.listener;if(ee!==f&&r.isPropagationStopped())return;Km(r,ve,J),f=ee}}function Rg(r,a){for(var s=(a&Mc)!==0,f=0;f<r.length;f++){var p=r[f],y=p.event,C=p.listeners;DN(y,C,s)}Eb()}function Xm(r,a,s,f,p){var y=Rv(s),C=[];ON(C,r,f,s,y,a),Rg(C,a)}function Nn(r,a){Gu.has(r)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var s=!1,f=Ut(a),p=Zn(r,s);f.has(p)||(F1(a,r,dm,s),f.add(p))}function Gl(r,a,s){Gu.has(r)&&!a&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var f=0;a&&(f|=Mc),F1(s,r,f,a)}var Zm="_reactListening"+Math.random().toString(36).slice(2);function ep(r){if(!r[Zm]){r[Zm]=!0,Ze.forEach(function(s){s!=="selectionchange"&&(Gu.has(s)||Gl(s,!1,r),Gl(s,!0,r))});var a=r.nodeType===Vo?r:r.ownerDocument;a!==null&&(a[Zm]||(a[Zm]=!0,Gl("selectionchange",!1,a)))}}function F1(r,a,s,f,p){var y=Cw(r,a,s),C=void 0;gd&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(C=!0),r=r,f?C!==void 0?Ew(r,a,y,C):Nw(r,a,y):C!==void 0?_w(r,a,y,C):l1(r,a,y)}function z1(r,a){return r===a||r.nodeType===Hn&&r.parentNode===a}function Ag(r,a,s,f,p){var y=f;if((a&md)===0&&(a&dm)===0){var C=p;if(f!==null){var T=f;e:for(;;){if(T===null)return;var D=T.tag;if(D===x||D===w){var U=T.stateNode.containerInfo;if(z1(U,C))break;if(D===w)for(var H=T.return;H!==null;){var ee=H.tag;if(ee===x||ee===w){var J=H.stateNode.containerInfo;if(z1(J,C))return}H=H.return}for(;U!==null;){var ve=Le(U);if(ve===null)return;var ge=ve.tag;if(ge===N||ge===R){T=y=ve;continue e}U=U.parentNode}}T=T.return}}}wb(function(){return Xm(r,a,s,y)})}function cf(r,a,s){return{instance:r,listener:a,currentTarget:s}}function cl(r,a,s,f,p,y){for(var C=a!==null?a+"Capture":null,T=f?C:a,D=[],U=r,H=null;U!==null;){var ee=U,J=ee.stateNode,ve=ee.tag;if(ve===N&&J!==null&&(H=J,T!==null)){var ge=Js(U,T);ge!=null&&D.push(cf(U,ge,H))}if(p)break;U=U.return}return D}function rn(r,a){for(var s=a+"Capture",f=[],p=r;p!==null;){var y=p,C=y.stateNode,T=y.tag;if(T===N&&C!==null){var D=C,U=Js(p,s);U!=null&&f.unshift(cf(p,U,D));var H=Js(p,a);H!=null&&f.push(cf(p,H,D))}p=p.return}return f}function Yu(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==N);return r||null}function mo(r,a){for(var s=r,f=a,p=0,y=s;y;y=Yu(y))p++;for(var C=0,T=f;T;T=Yu(T))C++;for(;p-C>0;)s=Yu(s),p--;for(;C-p>0;)f=Yu(f),C--;for(var D=p;D--;){if(s===f||f!==null&&s===f.alternate)return s;s=Yu(s),f=Yu(f)}return null}function kg(r,a,s,f,p){for(var y=a._reactName,C=[],T=s;T!==null&&T!==f;){var D=T,U=D.alternate,H=D.stateNode,ee=D.tag;if(U!==null&&U===f)break;if(ee===N&&H!==null){var J=H;if(p){var ve=Js(T,y);ve!=null&&C.unshift(cf(T,ve,J))}else if(!p){var ge=Js(T,y);ge!=null&&C.push(cf(T,ge,J))}}T=T.return}C.length!==0&&r.push({event:a,listeners:C})}function PN(r,a,s,f,p){var y=f&&p?mo(f,p):null;f!==null&&kg(r,a,f,y,!1),p!==null&&s!==null&&kg(r,s,p,y,!0)}function Zn(r,a){return r+"__"+(a?"capture":"bubble")}var Ti=!1,ff="dangerouslySetInnerHTML",qu="suppressContentEditableWarning",Yl="suppressHydrationWarning",B1="autoFocus",Ku="children",Xu="style",Qm="__html",Og,Jm,tp,U1,eh,$1,j1;Og={dialog:!0,webview:!0},Jm=function(r,a){er(r,a),vb(r,a),yb(r,a,{registrationNameDependencies:ct,possibleRegistrationNames:wt})},$1=Wt&&!document.documentMode,tp=function(r,a,s){if(!Ti){var f=th(s),p=th(a);p!==f&&(Ti=!0,u("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(p),JSON.stringify(f)))}},U1=function(r){if(!Ti){Ti=!0;var a=[];r.forEach(function(s){a.push(s)}),u("Extra attributes from the server: %s",a)}},eh=function(r,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.",r,r,r):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)},j1=function(r,a){var s=r.namespaceURI===ps?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return s.innerHTML=a,s.innerHTML};var MN=/\r\n?/g,Dg=/\u0000|\uFFFD/g;function th(r){On(r);var a=typeof r=="string"?r:""+r;return a.replace(MN,`
|
|
`).replace(Dg,"")}function df(r,a,s,f){var p=th(a),y=th(r);if(y!==p&&(f&&(Ti||(Ti=!0,u('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&ie))throw new Error("Text content does not match server-rendered HTML.")}function V1(r){return r.nodeType===Vo?r:r.ownerDocument}function IN(){}function nh(r){r.onclick=IN}function ca(r,a,s,f,p){for(var y in f)if(!!f.hasOwnProperty(y)){var C=f[y];if(y===Xu)C&&Object.freeze(C),re(a,C);else if(y===ff){var T=C?C[Qm]:void 0;T!=null&&om(a,T)}else if(y===Ku)if(typeof C=="string"){var D=r!=="textarea"||C!=="";D&&cd(a,C)}else typeof C=="number"&&cd(a,""+C);else y===qu||y===Yl||y===B1||(ct.hasOwnProperty(y)?C!=null&&(typeof C!="function"&&eh(y,C),y==="onScroll"&&Nn("scroll",a)):C!=null&&Fi(a,y,C,p))}}function Ri(r,a,s,f){for(var p=0;p<a.length;p+=2){var y=a[p],C=a[p+1];y===Xu?re(r,C):y===ff?om(r,C):y===Ku?cd(r,C):Fi(r,y,C,f)}}function LN(r,a,s,f){var p,y=V1(s),C,T=f;if(T===ps&&(T=ud(r)),T===ps){if(p=Xs(r,a),!p&&r!==r.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var D=y.createElement("div");D.innerHTML="<script><\/script>";var U=D.firstChild;C=D.removeChild(U)}else if(typeof a.is=="string")C=y.createElement(r,{is:a.is});else if(C=y.createElement(r),r==="select"){var H=C;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else C=y.createElementNS(T,r);return T===ps&&!p&&Object.prototype.toString.call(C)==="[object HTMLUnknownElement]"&&!ye.call(Og,r)&&(Og[r]=!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.",r)),C}function FN(r,a){return V1(a).createTextNode(r)}function zN(r,a,s,f){var p=Xs(a,s);Jm(a,s);var y;switch(a){case"dialog":Nn("cancel",r),Nn("close",r),y=s;break;case"iframe":case"object":case"embed":Nn("load",r),y=s;break;case"video":case"audio":for(var C=0;C<uf.length;C++)Nn(uf[C],r);y=s;break;case"source":Nn("error",r),y=s;break;case"img":case"image":case"link":Nn("error",r),Nn("load",r),y=s;break;case"details":Nn("toggle",r),y=s;break;case"input":A(r,s),y=S(r,s),Nn("invalid",r);break;case"option":yt(r,s),y=s;break;case"select":ds(r,s),y=wi(r,s),Nn("invalid",r);break;case"textarea":Nv(r,s),y=wv(r,s),Nn("invalid",r);break;default:y=s}switch(Jn(a,y),ca(a,r,f,y,p),a){case"input":Ua(r),te(r,s,!1);break;case"textarea":Ua(r),Tu(r);break;case"option":jt(r,s);break;case"select":od(r,s);break;default:typeof y.onClick=="function"&&nh(r);break}}function H1(r,a,s,f,p){Jm(a,f);var y=null,C,T;switch(a){case"input":C=S(r,s),T=S(r,f),y=[];break;case"select":C=wi(r,s),T=wi(r,f),y=[];break;case"textarea":C=wv(r,s),T=wv(r,f),y=[];break;default:C=s,T=f,typeof C.onClick!="function"&&typeof T.onClick=="function"&&nh(r);break}Jn(a,T);var D,U,H=null;for(D in C)if(!(T.hasOwnProperty(D)||!C.hasOwnProperty(D)||C[D]==null))if(D===Xu){var ee=C[D];for(U in ee)ee.hasOwnProperty(U)&&(H||(H={}),H[U]="")}else D===ff||D===Ku||D===qu||D===Yl||D===B1||(ct.hasOwnProperty(D)?y||(y=[]):(y=y||[]).push(D,null));for(D in T){var J=T[D],ve=C?.[D];if(!(!T.hasOwnProperty(D)||J===ve||J==null&&ve==null))if(D===Xu)if(J&&Object.freeze(J),ve){for(U in ve)ve.hasOwnProperty(U)&&(!J||!J.hasOwnProperty(U))&&(H||(H={}),H[U]="");for(U in J)J.hasOwnProperty(U)&&ve[U]!==J[U]&&(H||(H={}),H[U]=J[U])}else H||(y||(y=[]),y.push(D,H)),H=J;else if(D===ff){var ge=J?J[Qm]:void 0,_e=ve?ve[Qm]:void 0;ge!=null&&_e!==ge&&(y=y||[]).push(D,ge)}else D===Ku?(typeof J=="string"||typeof J=="number")&&(y=y||[]).push(D,""+J):D===qu||D===Yl||(ct.hasOwnProperty(D)?(J!=null&&(typeof J!="function"&&eh(D,J),D==="onScroll"&&Nn("scroll",r)),!y&&ve!==J&&(y=[])):(y=y||[]).push(D,J))}return H&&(ht(H,T[Xu]),(y=y||[]).push(Xu,H)),y}function BN(r,a,s,f,p){s==="input"&&p.type==="radio"&&p.name!=null&&V(r,p);var y=Xs(s,f),C=Xs(s,p);switch(Ri(r,a,y,C),s){case"input":G(r,p);break;case"textarea":sd(r,p);break;case"select":Cv(r,p);break}}function UN(r){{var a=r.toLowerCase();return sm.hasOwnProperty(a)&&sm[a]||null}}function $N(r,a,s,f,p,y,C){var T,D;switch(T=Xs(a,s),Jm(a,s),a){case"dialog":Nn("cancel",r),Nn("close",r);break;case"iframe":case"object":case"embed":Nn("load",r);break;case"video":case"audio":for(var U=0;U<uf.length;U++)Nn(uf[U],r);break;case"source":Nn("error",r);break;case"img":case"image":case"link":Nn("error",r),Nn("load",r);break;case"details":Nn("toggle",r);break;case"input":A(r,s),Nn("invalid",r);break;case"option":yt(r,s);break;case"select":ds(r,s),Nn("invalid",r);break;case"textarea":Nv(r,s),Nn("invalid",r);break}Jn(a,s);{D=new Set;for(var H=r.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:D.add(H[ee].name)}}}var ve=null;for(var ge in s)if(!!s.hasOwnProperty(ge)){var _e=s[ge];if(ge===Ku)typeof _e=="string"?r.textContent!==_e&&(s[Yl]!==!0&&df(r.textContent,_e,y,C),ve=[Ku,_e]):typeof _e=="number"&&r.textContent!==""+_e&&(s[Yl]!==!0&&df(r.textContent,_e,y,C),ve=[Ku,""+_e]);else if(ct.hasOwnProperty(ge))_e!=null&&(typeof _e!="function"&&eh(ge,_e),ge==="onScroll"&&Nn("scroll",r));else if(C&&!0&&typeof T=="boolean"){var pt=void 0,Rt=T&&Ie?null:va(ge);if(s[Yl]!==!0){if(!(ge===qu||ge===Yl||ge==="value"||ge==="checked"||ge==="selected")){if(ge===ff){var xt=r.innerHTML,In=_e?_e[Qm]:void 0;if(In!=null){var En=j1(r,In);En!==xt&&tp(ge,xt,En)}}else if(ge===Xu){if(D.delete(ge),$1){var ce=Dc(_e);pt=r.getAttribute("style"),ce!==pt&&tp(ge,pt,ce)}}else if(T&&!Ie)D.delete(ge.toLowerCase()),pt=Ia(r,ge,_e),_e!==pt&&tp(ge,pt,_e);else if(!Ln(ge,Rt,T)&&!Dn(ge,_e,Rt,T)){var Te=!1;if(Rt!==null)D.delete(Rt.attributeName),pt=vr(r,ge,_e,Rt);else{var fe=f;if(fe===ps&&(fe=ud(a)),fe===ps)D.delete(ge.toLowerCase());else{var We=UN(ge);We!==null&&We!==ge&&(Te=!0,D.delete(We)),D.delete(ge)}pt=Ia(r,ge,_e)}var mt=Ie;!mt&&_e!==pt&&!Te&&tp(ge,pt,_e)}}}}}switch(C&&D.size>0&&s[Yl]!==!0&&U1(D),a){case"input":Ua(r),te(r,s,!0);break;case"textarea":Ua(r),Tu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&nh(r);break}return ve}function W1(r,a,s){var f=r.nodeValue!==a;return f}function Pg(r,a){{if(Ti)return;Ti=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function Mg(r,a){{if(Ti)return;Ti=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,r.nodeName.toLowerCase())}}function Ig(r,a,s){{if(Ti)return;Ti=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,r.nodeName.toLowerCase())}}function rh(r,a){{if(a===""||Ti)return;Ti=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,r.nodeName.toLowerCase())}}function G1(r,a,s){switch(a){case"input":ze(r,s);return;case"textarea":zC(r,s);return;case"select":FC(r,s);return}}var np=function(){},rp=function(){};{var jN=["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"],Y1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],pf=Y1.concat(["button"]),VN=["dd","dt","li","option","optgroup","p","rp","rt"],q1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};rp=function(r,a){var s=Jt({},r||q1),f={tag:a};return Y1.indexOf(a)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),pf.indexOf(a)!==-1&&(s.pTagInButtonScope=null),jN.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=f,a==="form"&&(s.formTag=f),a==="a"&&(s.aTagInScope=f),a==="button"&&(s.buttonTagInScope=f),a==="nobr"&&(s.nobrTagInScope=f),a==="p"&&(s.pTagInButtonScope=f),a==="li"&&(s.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(s.dlItemTagAutoclosing=f),s};var HN=function(r,a){switch(a){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){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 VN.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},WN=function(r,a){switch(r){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},K1={};np=function(r,a,s){s=s||q1;var f=s.current,p=f&&f.tag;a!=null&&(r!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var y=HN(r,p)?null:f,C=y?null:WN(r,s),T=y||C;if(!!T){var D=T.tag,U=!!y+"|"+r+"|"+D;if(!K1[U]){K1[U]=!0;var H=r,ee="";if(r==="#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="<"+r+">",y){var J="";D==="table"&&r==="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,D,ee,J)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,D)}}}}var ap="suppressHydrationWarning",ip="$",ah="/$",op="$?",sp="$!",GN="style",Lg=null,Fg=null;function YN(r){var a,s,f=r.nodeType;switch(f){case Vo:case Ru:{a=f===Vo?"#document":"#fragment";var p=r.documentElement;s=p?p.namespaceURI:im(null,"");break}default:{var y=f===Hn?r.parentNode:r,C=y.namespaceURI||null;a=y.tagName,s=im(C,a);break}}{var T=a.toLowerCase(),D=rp(null,T);return{namespace:s,ancestorInfo:D}}}function qN(r,a,s){{var f=r,p=im(f.namespace,a),y=rp(f.ancestorInfo,a);return{namespace:p,ancestorInfo:y}}}function MO(r){return r}function KN(r){Lg=xw(),Fg=Yo();var a=null;return a1(!1),a}function XN(r){wN(Fg),a1(Lg),Lg=null,Fg=null}function ZN(r,a,s,f,p){var y;{var C=f;if(np(r,null,C.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var T=""+a.children,D=rp(C.ancestorInfo,r);np(null,T,D)}y=C.namespace}var U=LN(r,a,s,y);return Z(p,U),pn(U,a),U}function QN(r,a){r.appendChild(a)}function JN(r,a,s,f,p){switch(zN(r,a,s,f),a){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function eE(r,a,s,f,p,y){{var C=y;if(typeof f.children!=typeof s.children&&(typeof f.children=="string"||typeof f.children=="number")){var T=""+f.children,D=rp(C.ancestorInfo,a);np(null,T,D)}}return H1(r,a,s,f)}function zg(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function tE(r,a,s,f){{var p=s;np(null,r,p.ancestorInfo)}var y=FN(r,a);return Z(f,y),y}function nE(){var r=window.event;return r===void 0?Cr:s1(r.type)}var Bg=typeof setTimeout=="function"?setTimeout:void 0,rE=typeof clearTimeout=="function"?clearTimeout:void 0,Ug=-1,X1=typeof Promise=="function"?Promise:void 0,aE=typeof queueMicrotask=="function"?queueMicrotask:typeof X1<"u"?function(r){return X1.resolve(null).then(r).catch(iE)}:Bg;function iE(r){setTimeout(function(){throw r})}function oE(r,a,s,f){switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();return;case"img":{s.src&&(r.src=s.src);return}}}function $g(r,a,s,f,p,y){BN(r,a,s,f,p),pn(r,p)}function jg(r){cd(r,"")}function Z1(r,a,s){r.nodeValue=s}function sE(r,a){r.appendChild(a)}function lE(r,a){var s;r.nodeType===Hn?(s=r.parentNode,s.insertBefore(a,r)):(s=r,s.appendChild(a));var f=r._reactRootContainer;f==null&&s.onclick===null&&nh(s)}function uE(r,a,s){r.insertBefore(a,s)}function Vg(r,a,s){r.nodeType===Hn?r.parentNode.insertBefore(a,s):r.insertBefore(a,s)}function cE(r,a){r.removeChild(a)}function fE(r,a){r.nodeType===Hn?r.parentNode.removeChild(a):r.removeChild(a)}function Hg(r,a){var s=a,f=0;do{var p=s.nextSibling;if(r.removeChild(s),p&&p.nodeType===Hn){var y=p.data;if(y===ah)if(f===0){r.removeChild(p),$d(a);return}else f--;else(y===ip||y===op||y===sp)&&f++}s=p}while(s);$d(a)}function Ai(r,a){r.nodeType===Hn?Hg(r.parentNode,a):r.nodeType===Ni&&Hg(r,a),$d(r)}function Wg(r){r=r;var a=r.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function dE(r){r.nodeValue=""}function pE(r,a){r=r;var s=a[GN],f=s!=null&&s.hasOwnProperty("display")?s.display:null;r.style.display=Ev("display",f)}function mE(r,a){r.nodeValue=a}function hE(r){r.nodeType===Ni?r.textContent="":r.nodeType===Vo&&r.documentElement&&r.removeChild(r.documentElement)}function Gg(r,a,s){return r.nodeType!==Ni||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function vE(r,a){return a===""||r.nodeType!==ms?null:r}function Yg(r){return r.nodeType!==Hn?null:r}function Q1(r){return r.data===op}function qg(r){return r.data===sp}function gE(r){var a=r.nextSibling&&r.nextSibling.dataset,s,f,p;return a&&(s=a.dgst,f=a.msg,p=a.stck),{message:f,digest:s,stack:p}}function yE(r,a){r._reactRetry=a}function lp(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===Ni||a===ms)break;if(a===Hn){var s=r.data;if(s===ip||s===sp||s===op)break;if(s===ah)return null}}return r}function up(r){return lp(r.nextSibling)}function bE(r){return lp(r.firstChild)}function SE(r){return lp(r.firstChild)}function Kg(r){return lp(r.nextSibling)}function Xg(r,a,s,f,p,y,C){Z(y,r),pn(r,s);var T;{var D=p;T=D.namespace}var U=(y.mode&wn)!==Dt;return $N(r,a,s,T,f,U,C)}function xE(r,a,s,f){return Z(s,r),s.mode&wn,W1(r,a)}function CE(r,a){Z(a,r)}function wE(r){for(var a=r.nextSibling,s=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===ah){if(s===0)return up(a);s--}else(f===ip||f===sp||f===op)&&s++}a=a.nextSibling}return null}function J1(r){for(var a=r.previousSibling,s=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===ip||f===sp||f===op){if(s===0)return a;s--}else f===ah&&s++}a=a.previousSibling}return null}function NE(r){$d(r)}function EE(r){$d(r)}function _E(r){return r!=="head"&&r!=="body"}function TE(r,a,s,f){var p=!0;df(a.nodeValue,s,f,p)}function RE(r,a,s,f,p,y){if(a[ap]!==!0){var C=!0;df(f.nodeValue,p,y,C)}}function AE(r,a){a.nodeType===Ni?Pg(r,a):a.nodeType===Hn||Mg(r,a)}function kE(r,a){{var s=r.parentNode;s!==null&&(a.nodeType===Ni?Pg(s,a):a.nodeType===Hn||Mg(s,a))}}function OE(r,a,s,f,p){(p||a[ap]!==!0)&&(f.nodeType===Ni?Pg(s,f):f.nodeType===Hn||Mg(s,f))}function DE(r,a,s){Ig(r,a)}function PE(r,a){rh(r,a)}function ME(r,a,s){{var f=r.parentNode;f!==null&&Ig(f,a)}}function IE(r,a){{var s=r.parentNode;s!==null&&rh(s,a)}}function LE(r,a,s,f,p,y){(y||a[ap]!==!0)&&Ig(s,f)}function FE(r,a,s,f,p){(p||a[ap]!==!0)&&rh(s,f)}function zE(r){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function BE(r){ep(r)}var mf=Math.random().toString(36).slice(2),l="__reactFiber$"+mf,d="__reactProps$"+mf,g="__reactContainer$"+mf,E="__reactEvents$"+mf,P="__reactListeners$"+mf,j="__reactHandles$"+mf;function Y(r){delete r[l],delete r[d],delete r[E],delete r[P],delete r[j]}function Z(r,a){a[l]=r}function oe(r,a){a[g]=r}function De(r){r[g]=null}function Ae(r){return!!r[g]}function Le(r){var a=r[l];if(a)return a;for(var s=r.parentNode;s;){if(a=s[g]||s[l],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var p=J1(r);p!==null;){var y=p[l];if(y)return y;p=J1(p)}return a}r=s,s=r.parentNode}return null}function Qe(r){var a=r[l]||r[g];return a&&(a.tag===N||a.tag===R||a.tag===$||a.tag===x)?a:null}function vt(r){if(r.tag===N||r.tag===R)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Mt(r){return r[d]||null}function pn(r,a){r[d]=a}function Ut(r){var a=r[E];return a===void 0&&(a=r[E]=new Set),a}var bn={},kn=n.ReactDebugCurrentFrame;function Va(r){if(r){var a=r._owner,s=xa(r.type,r._source,a?a.type:null);kn.setExtraStackFrame(s)}else kn.setExtraStackFrame(null)}function yr(r,a,s,f,p){{var y=Function.call.bind(ye);for(var C in r)if(y(r,C)){var T=void 0;try{if(typeof r[C]!="function"){var D=Error((f||"React class")+": "+s+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}T=r[C](a,C,f,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){T=U}T&&!(T instanceof Error)&&(Va(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",s,C,typeof T),Va(null)),T instanceof Error&&!(T.message in bn)&&(bn[T.message]=!0,Va(p),u("Failed %s type: %s",s,T.message),Va(null))}}}var ei=[],Nr;Nr=[];var ea=-1;function Ha(r){return{current:r}}function Ea(r,a){if(ea<0){u("Unexpected pop.");return}a!==Nr[ea]&&u("Unexpected Fiber popped."),r.current=ei[ea],ei[ea]=null,Nr[ea]=null,ea--}function ki(r,a,s){ea++,ei[ea]=r.current,Nr[ea]=s,r.current=a}var UE;UE={};var qo={};Object.freeze(qo);var Zu=Ha(qo),ql=Ha(!1),$E=qo;function ih(r,a,s){return s&&Kl(a)?$E:Zu.current}function IO(r,a,s){{var f=r.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=s}}function oh(r,a){{var s=r.type,f=s.contextTypes;if(!f)return qo;var p=r.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var C in f)y[C]=a[C];{var T=$t(r)||"Unknown";yr(f,y,"context",T)}return p&&IO(r,a,y),y}}function eS(){return ql.current}function Kl(r){{var a=r.childContextTypes;return a!=null}}function tS(r){Ea(ql,r),Ea(Zu,r)}function jE(r){Ea(ql,r),Ea(Zu,r)}function LO(r,a,s){{if(Zu.current!==qo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ki(Zu,a,r),ki(ql,s,r)}}function FO(r,a,s){{var f=r.stateNode,p=a.childContextTypes;if(typeof f.getChildContext!="function"){{var y=$t(r)||"Unknown";UE[y]||(UE[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 s}var C=f.getChildContext();for(var T in C)if(!(T in p))throw new Error(($t(r)||"Unknown")+'.getChildContext(): key "'+T+'" is not defined in childContextTypes.');{var D=$t(r)||"Unknown";yr(p,C,"child context",D)}return Jt({},s,C)}}function nS(r){{var a=r.stateNode,s=a&&a.__reactInternalMemoizedMergedChildContext||qo;return $E=Zu.current,ki(Zu,s,r),ki(ql,ql.current,r),!0}}function zO(r,a,s){{var f=r.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(s){var p=FO(r,a,$E);f.__reactInternalMemoizedMergedChildContext=p,Ea(ql,r),Ea(Zu,r),ki(Zu,p,r),ki(ql,s,r)}else Ea(ql,r),ki(ql,s,r)}}function eB(r){{if(!Cd(r)||r.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=r;do{switch(a.tag){case x:return a.stateNode.context;case v:{var s=a.type;if(Kl(s))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 hf=0,rS=1,Qu=null,VE=!1,HE=!1;function BO(r){Qu===null?Qu=[r]:Qu.push(r)}function tB(r){VE=!0,BO(r)}function UO(){VE&&vf()}function vf(){if(!HE&&Qu!==null){HE=!0;var r=0,a=fo();try{var s=!0,f=Qu;for(la(Qa);r<f.length;r++){var p=f[r];do p=p(s);while(p!==null)}Qu=null,VE=!1}catch(y){throw Qu!==null&&(Qu=Qu.slice(r+1)),ji(wd,vf),y}finally{la(a),HE=!1}}return null}var sh=[],lh=0,aS=null,iS=0,Rs=[],As=0,cp=null,Ju=1,ec="";function nB(r){return dp(),(r.flags&_b)!==Ft}function rB(r){return dp(),iS}function aB(){var r=ec,a=Ju,s=a&~iB(a);return s.toString(32)+r}function fp(r,a){dp(),sh[lh++]=iS,sh[lh++]=aS,aS=r,iS=a}function $O(r,a,s){dp(),Rs[As++]=Ju,Rs[As++]=ec,Rs[As++]=cp,cp=r;var f=Ju,p=ec,y=oS(f)-1,C=f&~(1<<y),T=s+1,D=oS(a)+y;if(D>30){var U=y-y%5,H=(1<<U)-1,ee=(C&H).toString(32),J=C>>U,ve=y-U,ge=oS(a)+ve,_e=T<<ve,pt=_e|J,Rt=ee+p;Ju=1<<ge|pt,ec=Rt}else{var xt=T<<y,In=xt|C,En=p;Ju=1<<D|In,ec=En}}function WE(r){dp();var a=r.return;if(a!==null){var s=1,f=0;fp(r,s),$O(r,s,f)}}function oS(r){return 32-Vb(r)}function iB(r){return 1<<oS(r)-1}function GE(r){for(;r===aS;)aS=sh[--lh],sh[lh]=null,iS=sh[--lh],sh[lh]=null;for(;r===cp;)cp=Rs[--As],Rs[As]=null,ec=Rs[--As],Rs[As]=null,Ju=Rs[--As],Rs[As]=null}function oB(){return dp(),cp!==null?{id:Ju,overflow:ec}:null}function sB(r,a){dp(),Rs[As++]=Ju,Rs[As++]=ec,Rs[As++]=cp,Ju=a.id,ec=a.overflow,cp=r}function dp(){ni()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ti=null,ks=null,fl=!1,pp=!1,gf=null;function lB(){fl&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function jO(){pp=!0}function uB(){return pp}function cB(r){var a=r.stateNode.containerInfo;return ks=SE(a),ti=r,fl=!0,gf=null,pp=!1,!0}function fB(r,a,s){return ks=Kg(a),ti=r,fl=!0,gf=null,pp=!1,s!==null&&sB(r,s),!0}function VO(r,a){switch(r.tag){case x:{AE(r.stateNode.containerInfo,a);break}case N:{var s=(r.mode&wn)!==Dt;OE(r.type,r.memoizedProps,r.stateNode,a,s);break}case $:{var f=r.memoizedState;f.dehydrated!==null&&kE(f.dehydrated,a);break}}}function HO(r,a){VO(r,a);var s=mj();s.stateNode=a,s.return=r;var f=r.deletions;f===null?(r.deletions=[s],r.flags|=Ou):f.push(s)}function YE(r,a){{if(pp)return;switch(r.tag){case x:{var s=r.stateNode.containerInfo;switch(a.tag){case N:var f=a.type;a.pendingProps,DE(s,f);break;case R:var p=a.pendingProps;PE(s,p);break}break}case N:{var y=r.type,C=r.memoizedProps,T=r.stateNode;switch(a.tag){case N:{var D=a.type,U=a.pendingProps,H=(r.mode&wn)!==Dt;LE(y,C,T,D,U,H);break}case R:{var ee=a.pendingProps,J=(r.mode&wn)!==Dt;FE(y,C,T,ee,J);break}}break}case $:{var ve=r.memoizedState,ge=ve.dehydrated;if(ge!==null)switch(a.tag){case N:var _e=a.type;a.pendingProps,ME(ge,_e);break;case R:var pt=a.pendingProps;IE(ge,pt);break}break}default:return}}}function WO(r,a){a.flags=a.flags&~nl|jr,YE(r,a)}function GO(r,a){switch(r.tag){case N:{var s=r.type;r.pendingProps;var f=Gg(a,s);return f!==null?(r.stateNode=f,ti=r,ks=bE(f),!0):!1}case R:{var p=r.pendingProps,y=vE(a,p);return y!==null?(r.stateNode=y,ti=r,ks=null,!0):!1}case $:{var C=Yg(a);if(C!==null){var T={dehydrated:C,treeContext:oB(),retryLane:Wi};r.memoizedState=T;var D=hj(C);return D.return=r,r.child=D,ti=r,ks=null,!0}return!1}default:return!1}}function qE(r){return(r.mode&wn)!==Dt&&(r.flags&Un)===Ft}function KE(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function XE(r){if(!!fl){var a=ks;if(!a){qE(r)&&(YE(ti,r),KE()),WO(ti,r),fl=!1,ti=r;return}var s=a;if(!GO(r,a)){qE(r)&&(YE(ti,r),KE()),a=up(s);var f=ti;if(!a||!GO(r,a)){WO(ti,r),fl=!1,ti=r;return}HO(f,s)}}}function dB(r,a,s){var f=r.stateNode,p=!pp,y=Xg(f,r.type,r.memoizedProps,a,s,r,p);return r.updateQueue=y,y!==null}function pB(r){var a=r.stateNode,s=r.memoizedProps,f=xE(a,s,r);if(f){var p=ti;if(p!==null)switch(p.tag){case x:{var y=p.stateNode.containerInfo,C=(p.mode&wn)!==Dt;TE(y,a,s,C);break}case N:{var T=p.type,D=p.memoizedProps,U=p.stateNode,H=(p.mode&wn)!==Dt;RE(T,D,U,a,s,H);break}}}return f}function mB(r){var a=r.memoizedState,s=a!==null?a.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");CE(s,r)}function hB(r){var a=r.memoizedState,s=a!==null?a.dehydrated:null;if(!s)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 wE(s)}function YO(r){for(var a=r.return;a!==null&&a.tag!==N&&a.tag!==x&&a.tag!==$;)a=a.return;ti=a}function sS(r){if(r!==ti)return!1;if(!fl)return YO(r),fl=!0,!1;if(r.tag!==x&&(r.tag!==N||_E(r.type)&&!zg(r.type,r.memoizedProps))){var a=ks;if(a)if(qE(r))qO(r),KE();else for(;a;)HO(r,a),a=up(a)}return YO(r),r.tag===$?ks=hB(r):ks=ti?up(r.stateNode):null,!0}function vB(){return fl&&ks!==null}function qO(r){for(var a=ks;a;)VO(r,a),a=up(a)}function uh(){ti=null,ks=null,fl=!1,pp=!1}function KO(){gf!==null&&(V3(gf),gf=null)}function ni(){return fl}function ZE(r){gf===null?gf=[r]:gf.push(r)}var gB=n.ReactCurrentBatchConfig,yB=null;function bB(){return gB.transition}var dl={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var SB=function(r){for(var a=null,s=r;s!==null;)s.mode&Ir&&(a=s),s=s.return;return a},mp=function(r){var a=[];return r.forEach(function(s){a.push(s)}),a.sort().join(", ")},Zg=[],Qg=[],Jg=[],e0=[],t0=[],n0=[],hp=new Set;dl.recordUnsafeLifecycleWarnings=function(r,a){hp.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&Zg.push(r),r.mode&Ir&&typeof a.UNSAFE_componentWillMount=="function"&&Qg.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Jg.push(r),r.mode&Ir&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&e0.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&t0.push(r),r.mode&Ir&&typeof a.UNSAFE_componentWillUpdate=="function"&&n0.push(r))},dl.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;Zg.length>0&&(Zg.forEach(function(J){r.add($t(J)||"Component"),hp.add(J.type)}),Zg=[]);var a=new Set;Qg.length>0&&(Qg.forEach(function(J){a.add($t(J)||"Component"),hp.add(J.type)}),Qg=[]);var s=new Set;Jg.length>0&&(Jg.forEach(function(J){s.add($t(J)||"Component"),hp.add(J.type)}),Jg=[]);var f=new Set;e0.length>0&&(e0.forEach(function(J){f.add($t(J)||"Component"),hp.add(J.type)}),e0=[]);var p=new Set;t0.length>0&&(t0.forEach(function(J){p.add($t(J)||"Component"),hp.add(J.type)}),t0=[]);var y=new Set;if(n0.length>0&&(n0.forEach(function(J){y.add($t(J)||"Component"),hp.add(J.type)}),n0=[]),a.size>0){var C=mp(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`,C)}if(f.size>0){var T=mp(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 D=mp(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`,D)}if(r.size>0){var U=mp(r);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`,U)}if(s.size>0){var H=mp(s);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=mp(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 lS=new Map,XO=new Set;dl.recordLegacyContextWarning=function(r,a){var s=SB(r);if(s===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(!XO.has(r.type)){var f=lS.get(s);(r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],lS.set(s,f)),f.push(r))}},dl.flushLegacyContextWarning=function(){lS.forEach(function(r,a){if(r.length!==0){var s=r[0],f=new Set;r.forEach(function(y){f.add($t(y)||"Component"),XO.add(y.type)});var p=mp(f);try{or(s),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{_r()}}})},dl.discardPendingWarnings=function(){Zg=[],Qg=[],Jg=[],e0=[],t0=[],n0=[],lS=new Map}}function pl(r,a){if(r&&r.defaultProps){var s=Jt({},a),f=r.defaultProps;for(var p in f)s[p]===void 0&&(s[p]=f[p]);return s}return a}var QE=Ha(null),JE;JE={};var uS=null,ch=null,e_=null,cS=!1;function fS(){uS=null,ch=null,e_=null,cS=!1}function ZO(){cS=!0}function QO(){cS=!1}function JO(r,a,s){ki(QE,a._currentValue,r),a._currentValue=s,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==JE&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=JE}function t_(r,a){var s=QE.current;Ea(QE,a),r._currentValue=s}function n_(r,a,s){for(var f=r;f!==null;){var p=f.alternate;if($u(f.childLanes,a)?p!==null&&!$u(p.childLanes,a)&&(p.childLanes=dn(p.childLanes,a)):(f.childLanes=dn(f.childLanes,a),p!==null&&(p.childLanes=dn(p.childLanes,a))),f===s)break;f=f.return}f!==s&&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 xB(r,a,s){CB(r,a,s)}function CB(r,a,s){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var p=void 0,y=f.dependencies;if(y!==null){p=f.child;for(var C=y.firstContext;C!==null;){if(C.context===a){if(f.tag===v){var T=Md(s),D=tc(tr,T);D.tag=pS;var U=f.updateQueue;if(U!==null){var H=U.shared,ee=H.pending;ee===null?D.next=D:(D.next=ee.next,ee.next=D),H.pending=D}}f.lanes=dn(f.lanes,s);var J=f.alternate;J!==null&&(J.lanes=dn(J.lanes,s)),n_(f.return,s,r),y.lanes=dn(y.lanes,s);break}C=C.next}}else if(f.tag===I)p=f.type===r.type?null:f.child;else if(f.tag===se){var ve=f.return;if(ve===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ve.lanes=dn(ve.lanes,s);var ge=ve.alternate;ge!==null&&(ge.lanes=dn(ge.lanes,s)),n_(ve,s,r),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===r){p=null;break}var _e=p.sibling;if(_e!==null){_e.return=p.return,p=_e;break}p=p.return}f=p}}function fh(r,a){uS=r,ch=null,e_=null;var s=r.dependencies;if(s!==null){var f=s.firstContext;f!==null&&(Ei(s.lanes,a)&&v0(),s.firstContext=null)}}function fa(r){cS&&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=r._currentValue;if(e_!==r){var s={context:r,memoizedValue:a,next:null};if(ch===null){if(uS===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().");ch=s,uS.dependencies={lanes:Fe,firstContext:s}}else ch=ch.next=s}return a}var vp=null;function r_(r){vp===null?vp=[r]:vp.push(r)}function wB(){if(vp!==null){for(var r=0;r<vp.length;r++){var a=vp[r],s=a.interleaved;if(s!==null){a.interleaved=null;var f=s.next,p=a.pending;if(p!==null){var y=p.next;p.next=f,s.next=y}a.pending=s}}vp=null}}function e4(r,a,s,f){var p=a.interleaved;return p===null?(s.next=s,r_(a)):(s.next=p.next,p.next=s),a.interleaved=s,dS(r,f)}function NB(r,a,s,f){var p=a.interleaved;p===null?(s.next=s,r_(a)):(s.next=p.next,p.next=s),a.interleaved=s}function EB(r,a,s,f){var p=a.interleaved;return p===null?(s.next=s,r_(a)):(s.next=p.next,p.next=s),a.interleaved=s,dS(r,f)}function ho(r,a){return dS(r,a)}var _B=dS;function dS(r,a){r.lanes=dn(r.lanes,a);var s=r.alternate;s!==null&&(s.lanes=dn(s.lanes,a)),s===null&&(r.flags&(jr|nl))!==Ft&&tD(r);for(var f=r,p=r.return;p!==null;)p.childLanes=dn(p.childLanes,a),s=p.alternate,s!==null?s.childLanes=dn(s.childLanes,a):(p.flags&(jr|nl))!==Ft&&tD(r),f=p,p=p.return;if(f.tag===x){var y=f.stateNode;return y}else return null}var t4=0,n4=1,pS=2,a_=3,mS=!1,i_,hS;i_=!1,hS=null;function o_(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Fe},effects:null};r.updateQueue=a}function r4(r,a){var s=a.updateQueue,f=r.updateQueue;if(s===f){var p={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=p}}function tc(r,a){var s={eventTime:r,lane:a,tag:t4,payload:null,callback:null,next:null};return s}function yf(r,a,s){var f=r.updateQueue;if(f===null)return null;var p=f.shared;if(hS===p&&!i_&&(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."),i_=!0),_$()){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,_B(r,s)}else return EB(r,p,a,s)}function vS(r,a,s){var f=a.updateQueue;if(f!==null){var p=f.shared;if(ag(s)){var y=p.lanes;y=qb(y,r.pendingLanes);var C=dn(y,s);p.lanes=C,Pt(r,C)}}}function s_(r,a){var s=r.updateQueue,f=r.alternate;if(f!==null){var p=f.updateQueue;if(s===p){var y=null,C=null,T=s.firstBaseUpdate;if(T!==null){var D=T;do{var U={eventTime:D.eventTime,lane:D.lane,tag:D.tag,payload:D.payload,callback:D.callback,next:null};C===null?y=C=U:(C.next=U,C=U),D=D.next}while(D!==null);C===null?y=C=a:(C.next=a,C=a)}else y=C=a;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:C,shared:p.shared,effects:p.effects},r.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=a:H.next=a,s.lastBaseUpdate=a}function TB(r,a,s,f,p,y){switch(s.tag){case n4:{var C=s.payload;if(typeof C=="function"){ZO();var T=C.call(y,f,p);{if(r.mode&Ir){oa(!0);try{C.call(y,f,p)}finally{oa(!1)}}QO()}return T}return C}case a_:r.flags=r.flags&~Ka|Un;case t4:{var D=s.payload,U;if(typeof D=="function"){ZO(),U=D.call(y,f,p);{if(r.mode&Ir){oa(!0);try{D.call(y,f,p)}finally{oa(!1)}}QO()}}else U=D;return U==null?f:Jt({},f,U)}case pS:return mS=!0,f}return f}function gS(r,a,s,f){var p=r.updateQueue;mS=!1,hS=p.shared;var y=p.firstBaseUpdate,C=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var D=T,U=D.next;D.next=null,C===null?y=U:C.next=U,C=D;var H=r.alternate;if(H!==null){var ee=H.updateQueue,J=ee.lastBaseUpdate;J!==C&&(J===null?ee.firstBaseUpdate=U:J.next=U,ee.lastBaseUpdate=D)}}if(y!==null){var ve=p.baseState,ge=Fe,_e=null,pt=null,Rt=null,xt=y;do{var In=xt.lane,En=xt.eventTime;if($u(f,In)){if(Rt!==null){var Te={eventTime:En,lane:Qr,tag:xt.tag,payload:xt.payload,callback:xt.callback,next:null};Rt=Rt.next=Te}ve=TB(r,p,xt,ve,a,s);var fe=xt.callback;if(fe!==null&&xt.lane!==Qr){r.flags|=Pv;var We=p.effects;We===null?p.effects=[xt]:We.push(xt)}}else{var ce={eventTime:En,lane:In,tag:xt.tag,payload:xt.payload,callback:xt.callback,next:null};Rt===null?(pt=Rt=ce,_e=ve):Rt=Rt.next=ce,ge=dn(ge,In)}if(xt=xt.next,xt===null){if(T=p.shared.pending,T===null)break;var mt=T,ut=mt.next;mt.next=null,xt=ut,p.lastBaseUpdate=mt,p.shared.pending=null}}while(!0);Rt===null&&(_e=ve),p.baseState=_e,p.firstBaseUpdate=pt,p.lastBaseUpdate=Rt;var Vt=p.shared.interleaved;if(Vt!==null){var en=Vt;do ge=dn(ge,en.lane),en=en.next;while(en!==Vt)}else y===null&&(p.shared.lanes=Fe);R0(ge),r.lanes=ge,r.memoizedState=ve}hS=null}function RB(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function a4(){mS=!1}function yS(){return mS}function i4(r,a,s){var f=a.effects;if(a.effects=null,f!==null)for(var p=0;p<f.length;p++){var y=f[p],C=y.callback;C!==null&&(y.callback=null,RB(C,s))}}var l_={},o4=new e.Component().refs,u_,c_,f_,d_,p_,s4,bS,m_,h_,v_;{u_=new Set,c_=new Set,f_=new Set,d_=new Set,m_=new Set,p_=new Set,h_=new Set,v_=new Set;var l4=new Set;bS=function(r,a){if(!(r===null||typeof r=="function")){var s=a+"_"+r;l4.has(s)||(l4.add(s),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},s4=function(r,a){if(a===void 0){var s=un(r)||"Component";p_.has(s)||(p_.add(s),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(l_,"_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(l_)}function g_(r,a,s,f){var p=r.memoizedState,y=s(f,p);{if(r.mode&Ir){oa(!0);try{y=s(f,p)}finally{oa(!1)}}s4(a,y)}var C=y==null?p:Jt({},p,y);if(r.memoizedState=C,r.lanes===Fe){var T=r.updateQueue;T.baseState=C}}var y_={isMounted:Sm,enqueueSetState:function(r,a,s){var f=el(r),p=Ki(),y=_f(f),C=tc(p,y);C.payload=a,s!=null&&(bS(s,"setState"),C.callback=s);var T=yf(f,C,y);T!==null&&(Pa(T,f,y,p),vS(T,f,y)),Kv(f,y)},enqueueReplaceState:function(r,a,s){var f=el(r),p=Ki(),y=_f(f),C=tc(p,y);C.tag=n4,C.payload=a,s!=null&&(bS(s,"replaceState"),C.callback=s);var T=yf(f,C,y);T!==null&&(Pa(T,f,y,p),vS(T,f,y)),Kv(f,y)},enqueueForceUpdate:function(r,a){var s=el(r),f=Ki(),p=_f(s),y=tc(f,p);y.tag=pS,a!=null&&(bS(a,"forceUpdate"),y.callback=a);var C=yf(s,y,p);C!==null&&(Pa(C,s,p,f),vS(C,s,p)),jb(s,p)}};function u4(r,a,s,f,p,y,C){var T=r.stateNode;if(typeof T.shouldComponentUpdate=="function"){var D=T.shouldComponentUpdate(f,y,C);{if(r.mode&Ir){oa(!0);try{D=T.shouldComponentUpdate(f,y,C)}finally{oa(!1)}}D===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",un(a)||"Component")}return D}return a.prototype&&a.prototype.isPureReactComponent?!lf(s,f)||!lf(p,y):!0}function AB(r,a,s){var f=r.stateNode;{var p=un(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&&!h_.has(a)&&(h_.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.",un(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 C=f.props!==s;f.props!==void 0&&C&&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"&&!f_.has(a)&&(f_.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",un(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"||Bt(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 c4(r,a){a.updater=y_,r.stateNode=a,An(a,r),a._reactInternalInstance=l_}function f4(r,a,s){var f=!1,p=qo,y=qo,C=a.contextType;if("contextType"in a){var T=C===null||C!==void 0&&C.$$typeof===Cn&&C._context===void 0;if(!T&&!v_.has(a)){v_.add(a);var D="";C===void 0?D=" 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 C!="object"?D=" However, it is set to a "+typeof C+".":C.$$typeof===on?D=" Did you accidentally pass the Context.Provider instead?":C._context!==void 0?D=" Did you accidentally pass the Context.Consumer instead?":D=" However, it is set to an object with keys {"+Object.keys(C).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",un(a)||"Component",D)}}if(typeof C=="object"&&C!==null)y=fa(C);else{p=ih(r,a,!0);var U=a.contextTypes;f=U!=null,y=f?oh(r,p):qo}var H=new a(s,y);if(r.mode&Ir){oa(!0);try{H=new a(s,y)}finally{oa(!1)}}var ee=r.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;c4(r,H);{if(typeof a.getDerivedStateFromProps=="function"&&ee===null){var J=un(a)||"Component";c_.has(J)||(c_.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 ve=null,ge=null,_e=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?ve="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(ve="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ge="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ge="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?_e="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(_e="UNSAFE_componentWillUpdate"),ve!==null||ge!==null||_e!==null){var pt=un(a)||"Component",Rt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";d_.has(pt)||(d_.add(pt),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`,pt,Rt,ve!==null?`
|
|
`+ve:"",ge!==null?`
|
|
`+ge:"",_e!==null?`
|
|
`+_e:""))}}}return f&&IO(r,p,y),H}function kB(r,a){var s=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$t(r)||"Component"),y_.enqueueReplaceState(a,a.state,null))}function d4(r,a,s,f){var p=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,f),a.state!==p){{var y=$t(r)||"Component";u_.has(y)||(u_.add(y),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}y_.enqueueReplaceState(a,a.state,null)}}function b_(r,a,s,f){AB(r,a,s);var p=r.stateNode;p.props=s,p.state=r.memoizedState,p.refs=o4,o_(r);var y=a.contextType;if(typeof y=="object"&&y!==null)p.context=fa(y);else{var C=ih(r,a,!0);p.context=oh(r,C)}{if(p.state===s){var T=un(a)||"Component";m_.has(T)||(m_.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))}r.mode&Ir&&dl.recordLegacyContextWarning(r,p),dl.recordUnsafeLifecycleWarnings(r,p)}p.state=r.memoizedState;var D=a.getDerivedStateFromProps;if(typeof D=="function"&&(g_(r,a,D,s),p.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(kB(r,p),gS(r,s,p,f),p.state=r.memoizedState),typeof p.componentDidMount=="function"){var U=fn;U|=Mu,(r.mode&co)!==Dt&&(U|=Zr),r.flags|=U}}function OB(r,a,s,f){var p=r.stateNode,y=r.memoizedProps;p.props=y;var C=p.context,T=a.contextType,D=qo;if(typeof T=="object"&&T!==null)D=fa(T);else{var U=ih(r,a,!0);D=oh(r,U)}var H=a.getDerivedStateFromProps,ee=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!ee&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(y!==s||C!==D)&&d4(r,p,s,D),a4();var J=r.memoizedState,ve=p.state=J;if(gS(r,s,p,f),ve=r.memoizedState,y===s&&J===ve&&!eS()&&!yS()){if(typeof p.componentDidMount=="function"){var ge=fn;ge|=Mu,(r.mode&co)!==Dt&&(ge|=Zr),r.flags|=ge}return!1}typeof H=="function"&&(g_(r,a,H,s),ve=r.memoizedState);var _e=yS()||u4(r,a,y,s,J,ve,D);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 pt=fn;pt|=Mu,(r.mode&co)!==Dt&&(pt|=Zr),r.flags|=pt}}else{if(typeof p.componentDidMount=="function"){var Rt=fn;Rt|=Mu,(r.mode&co)!==Dt&&(Rt|=Zr),r.flags|=Rt}r.memoizedProps=s,r.memoizedState=ve}return p.props=s,p.state=ve,p.context=D,_e}function DB(r,a,s,f,p){var y=a.stateNode;r4(r,a);var C=a.memoizedProps,T=a.type===a.elementType?C:pl(a.type,C);y.props=T;var D=a.pendingProps,U=y.context,H=s.contextType,ee=qo;if(typeof H=="object"&&H!==null)ee=fa(H);else{var J=ih(a,s,!0);ee=oh(a,J)}var ve=s.getDerivedStateFromProps,ge=typeof ve=="function"||typeof y.getSnapshotBeforeUpdate=="function";!ge&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(C!==D||U!==ee)&&d4(a,y,f,ee),a4();var _e=a.memoizedState,pt=y.state=_e;if(gS(a,f,y,p),pt=a.memoizedState,C===D&&_e===pt&&!eS()&&!yS()&&!Ne)return typeof y.componentDidUpdate=="function"&&(C!==r.memoizedProps||_e!==r.memoizedState)&&(a.flags|=fn),typeof y.getSnapshotBeforeUpdate=="function"&&(C!==r.memoizedProps||_e!==r.memoizedState)&&(a.flags|=Du),!1;typeof ve=="function"&&(g_(a,s,ve,f),pt=a.memoizedState);var Rt=yS()||u4(a,s,T,f,_e,pt,ee)||Ne;return Rt?(!ge&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,pt,ee),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,pt,ee)),typeof y.componentDidUpdate=="function"&&(a.flags|=fn),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=Du)):(typeof y.componentDidUpdate=="function"&&(C!==r.memoizedProps||_e!==r.memoizedState)&&(a.flags|=fn),typeof y.getSnapshotBeforeUpdate=="function"&&(C!==r.memoizedProps||_e!==r.memoizedState)&&(a.flags|=Du),a.memoizedProps=f,a.memoizedState=pt),y.props=f,y.state=pt,y.context=ee,Rt}var S_,x_,C_,w_,N_,p4=function(r,a){};S_=!1,x_=!1,C_={},w_={},N_={},p4=function(r,a){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._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.");r._store.validated=!0;var s=$t(a)||"Component";w_[s]||(w_[s]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function r0(r,a,s){var f=s.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((r.mode&Ir||Ye)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=$t(r)||"Component";C_[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),C_[p]=!0)}if(s._owner){var y=s._owner,C;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");C=T.stateNode}if(!C)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var D=C;Lt(f,"ref");var U=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===U)return a.ref;var H=function(ee){var J=D.refs;J===o4&&(J=D.refs={}),ee===null?delete J[U]:J[U]=ee};return H._stringRef=U,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(!s._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 SS(r,a){var s=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function xS(r){{var a=$t(r)||"Component";if(N_[a])return;N_[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 m4(r){var a=r._payload,s=r._init;return s(a)}function h4(r){function a(ce,Te){if(!!r){var fe=ce.deletions;fe===null?(ce.deletions=[Te],ce.flags|=Ou):fe.push(Te)}}function s(ce,Te){if(!r)return null;for(var fe=Te;fe!==null;)a(ce,fe),fe=fe.sibling;return null}function f(ce,Te){for(var fe=new Map,We=Te;We!==null;)We.key!==null?fe.set(We.key,We):fe.set(We.index,We),We=We.sibling;return fe}function p(ce,Te){var fe=Np(ce,Te);return fe.index=0,fe.sibling=null,fe}function y(ce,Te,fe){if(ce.index=fe,!r)return ce.flags|=_b,Te;var We=ce.alternate;if(We!==null){var mt=We.index;return mt<Te?(ce.flags|=jr,Te):mt}else return ce.flags|=jr,Te}function C(ce){return r&&ce.alternate===null&&(ce.flags|=jr),ce}function T(ce,Te,fe,We){if(Te===null||Te.tag!==R){var mt=ZT(fe,ce.mode,We);return mt.return=ce,mt}else{var ut=p(Te,fe);return ut.return=ce,ut}}function D(ce,Te,fe,We){var mt=fe.type;if(mt===Ue)return H(ce,Te,fe.props.children,We,fe.key);if(Te!==null&&(Te.elementType===mt||iD(Te,fe)||typeof mt=="object"&&mt!==null&&mt.$$typeof===ln&&m4(mt)===Te.type)){var ut=p(Te,fe.props);return ut.ref=r0(ce,Te,fe),ut.return=ce,ut._debugSource=fe._source,ut._debugOwner=fe._owner,ut}var Vt=XT(fe,ce.mode,We);return Vt.ref=r0(ce,Te,fe),Vt.return=ce,Vt}function U(ce,Te,fe,We){if(Te===null||Te.tag!==w||Te.stateNode.containerInfo!==fe.containerInfo||Te.stateNode.implementation!==fe.implementation){var mt=QT(fe,ce.mode,We);return mt.return=ce,mt}else{var ut=p(Te,fe.children||[]);return ut.return=ce,ut}}function H(ce,Te,fe,We,mt){if(Te===null||Te.tag!==O){var ut=Rf(fe,ce.mode,We,mt);return ut.return=ce,ut}else{var Vt=p(Te,fe);return Vt.return=ce,Vt}}function ee(ce,Te,fe){if(typeof Te=="string"&&Te!==""||typeof Te=="number"){var We=ZT(""+Te,ce.mode,fe);return We.return=ce,We}if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case La:{var mt=XT(Te,ce.mode,fe);return mt.ref=r0(ce,null,Te),mt.return=ce,mt}case X:{var ut=QT(Te,ce.mode,fe);return ut.return=ce,ut}case ln:{var Vt=Te._payload,en=Te._init;return ee(ce,en(Vt),fe)}}if(Bt(Te)||zi(Te)){var lr=Rf(Te,ce.mode,fe,null);return lr.return=ce,lr}SS(ce,Te)}return typeof Te=="function"&&xS(ce),null}function J(ce,Te,fe,We){var mt=Te!==null?Te.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number")return mt!==null?null:T(ce,Te,""+fe,We);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case La:return fe.key===mt?D(ce,Te,fe,We):null;case X:return fe.key===mt?U(ce,Te,fe,We):null;case ln:{var ut=fe._payload,Vt=fe._init;return J(ce,Te,Vt(ut),We)}}if(Bt(fe)||zi(fe))return mt!==null?null:H(ce,Te,fe,We,null);SS(ce,fe)}return typeof fe=="function"&&xS(ce),null}function ve(ce,Te,fe,We,mt){if(typeof We=="string"&&We!==""||typeof We=="number"){var ut=ce.get(fe)||null;return T(Te,ut,""+We,mt)}if(typeof We=="object"&&We!==null){switch(We.$$typeof){case La:{var Vt=ce.get(We.key===null?fe:We.key)||null;return D(Te,Vt,We,mt)}case X:{var en=ce.get(We.key===null?fe:We.key)||null;return U(Te,en,We,mt)}case ln:var lr=We._payload,Gn=We._init;return ve(ce,Te,fe,Gn(lr),mt)}if(Bt(We)||zi(We)){var ta=ce.get(fe)||null;return H(Te,ta,We,mt,null)}SS(Te,We)}return typeof We=="function"&&xS(Te),null}function ge(ce,Te,fe){{if(typeof ce!="object"||ce===null)return Te;switch(ce.$$typeof){case La:case X:p4(ce,fe);var We=ce.key;if(typeof We!="string")break;if(Te===null){Te=new Set,Te.add(We);break}if(!Te.has(We)){Te.add(We);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.",We);break;case ln:var mt=ce._payload,ut=ce._init;ge(ut(mt),Te,fe);break}}return Te}function _e(ce,Te,fe,We){for(var mt=null,ut=0;ut<fe.length;ut++){var Vt=fe[ut];mt=ge(Vt,mt,ce)}for(var en=null,lr=null,Gn=Te,ta=0,Yn=0,Hr=null;Gn!==null&&Yn<fe.length;Yn++){Gn.index>Yn?(Hr=Gn,Gn=null):Hr=Gn.sibling;var Di=J(ce,Gn,fe[Yn],We);if(Di===null){Gn===null&&(Gn=Hr);break}r&&Gn&&Di.alternate===null&&a(ce,Gn),ta=y(Di,ta,Yn),lr===null?en=Di:lr.sibling=Di,lr=Di,Gn=Hr}if(Yn===fe.length){if(s(ce,Gn),ni()){var ui=Yn;fp(ce,ui)}return en}if(Gn===null){for(;Yn<fe.length;Yn++){var Xo=ee(ce,fe[Yn],We);Xo!==null&&(ta=y(Xo,ta,Yn),lr===null?en=Xo:lr.sibling=Xo,lr=Xo)}if(ni()){var Xi=Yn;fp(ce,Xi)}return en}for(var Zi=f(ce,Gn);Yn<fe.length;Yn++){var Pi=ve(Zi,ce,Yn,fe[Yn],We);Pi!==null&&(r&&Pi.alternate!==null&&Zi.delete(Pi.key===null?Yn:Pi.key),ta=y(Pi,ta,Yn),lr===null?en=Pi:lr.sibling=Pi,lr=Pi)}if(r&&Zi.forEach(function(Rh){return a(ce,Rh)}),ni()){var sc=Yn;fp(ce,sc)}return en}function pt(ce,Te,fe,We){var mt=zi(fe);if(typeof mt!="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"&&fe[Symbol.toStringTag]==="Generator"&&(x_||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."),x_=!0),fe.entries===mt&&(S_||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),S_=!0);var ut=mt.call(fe);if(ut)for(var Vt=null,en=ut.next();!en.done;en=ut.next()){var lr=en.value;Vt=ge(lr,Vt,ce)}}var Gn=mt.call(fe);if(Gn==null)throw new Error("An iterable object provided no iterator.");for(var ta=null,Yn=null,Hr=Te,Di=0,ui=0,Xo=null,Xi=Gn.next();Hr!==null&&!Xi.done;ui++,Xi=Gn.next()){Hr.index>ui?(Xo=Hr,Hr=null):Xo=Hr.sibling;var Zi=J(ce,Hr,Xi.value,We);if(Zi===null){Hr===null&&(Hr=Xo);break}r&&Hr&&Zi.alternate===null&&a(ce,Hr),Di=y(Zi,Di,ui),Yn===null?ta=Zi:Yn.sibling=Zi,Yn=Zi,Hr=Xo}if(Xi.done){if(s(ce,Hr),ni()){var Pi=ui;fp(ce,Pi)}return ta}if(Hr===null){for(;!Xi.done;ui++,Xi=Gn.next()){var sc=ee(ce,Xi.value,We);sc!==null&&(Di=y(sc,Di,ui),Yn===null?ta=sc:Yn.sibling=sc,Yn=sc)}if(ni()){var Rh=ui;fp(ce,Rh)}return ta}for(var P0=f(ce,Hr);!Xi.done;ui++,Xi=Gn.next()){var ru=ve(P0,ce,ui,Xi.value,We);ru!==null&&(r&&ru.alternate!==null&&P0.delete(ru.key===null?ui:ru.key),Di=y(ru,Di,ui),Yn===null?ta=ru:Yn.sibling=ru,Yn=ru)}if(r&&P0.forEach(function(Gj){return a(ce,Gj)}),ni()){var Wj=ui;fp(ce,Wj)}return ta}function Rt(ce,Te,fe,We){if(Te!==null&&Te.tag===R){s(ce,Te.sibling);var mt=p(Te,fe);return mt.return=ce,mt}s(ce,Te);var ut=ZT(fe,ce.mode,We);return ut.return=ce,ut}function xt(ce,Te,fe,We){for(var mt=fe.key,ut=Te;ut!==null;){if(ut.key===mt){var Vt=fe.type;if(Vt===Ue){if(ut.tag===O){s(ce,ut.sibling);var en=p(ut,fe.props.children);return en.return=ce,en._debugSource=fe._source,en._debugOwner=fe._owner,en}}else if(ut.elementType===Vt||iD(ut,fe)||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===ln&&m4(Vt)===ut.type){s(ce,ut.sibling);var lr=p(ut,fe.props);return lr.ref=r0(ce,ut,fe),lr.return=ce,lr._debugSource=fe._source,lr._debugOwner=fe._owner,lr}s(ce,ut);break}else a(ce,ut);ut=ut.sibling}if(fe.type===Ue){var Gn=Rf(fe.props.children,ce.mode,We,fe.key);return Gn.return=ce,Gn}else{var ta=XT(fe,ce.mode,We);return ta.ref=r0(ce,Te,fe),ta.return=ce,ta}}function In(ce,Te,fe,We){for(var mt=fe.key,ut=Te;ut!==null;){if(ut.key===mt)if(ut.tag===w&&ut.stateNode.containerInfo===fe.containerInfo&&ut.stateNode.implementation===fe.implementation){s(ce,ut.sibling);var Vt=p(ut,fe.children||[]);return Vt.return=ce,Vt}else{s(ce,ut);break}else a(ce,ut);ut=ut.sibling}var en=QT(fe,ce.mode,We);return en.return=ce,en}function En(ce,Te,fe,We){var mt=typeof fe=="object"&&fe!==null&&fe.type===Ue&&fe.key===null;if(mt&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case La:return C(xt(ce,Te,fe,We));case X:return C(In(ce,Te,fe,We));case ln:var ut=fe._payload,Vt=fe._init;return En(ce,Te,Vt(ut),We)}if(Bt(fe))return _e(ce,Te,fe,We);if(zi(fe))return pt(ce,Te,fe,We);SS(ce,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"?C(Rt(ce,Te,""+fe,We)):(typeof fe=="function"&&xS(ce),s(ce,Te))}return En}var dh=h4(!0),v4=h4(!1);function PB(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var s=a.child,f=Np(s,s.pendingProps);for(a.child=f,f.return=a;s.sibling!==null;)s=s.sibling,f=f.sibling=Np(s,s.pendingProps),f.return=a;f.sibling=null}}function MB(r,a){for(var s=r.child;s!==null;)uj(s,a),s=s.sibling}var a0={},bf=Ha(a0),i0=Ha(a0),CS=Ha(a0);function wS(r){if(r===a0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function g4(){var r=wS(CS.current);return r}function E_(r,a){ki(CS,a,r),ki(i0,r,r),ki(bf,a0,r);var s=YN(a);Ea(bf,r),ki(bf,s,r)}function ph(r){Ea(bf,r),Ea(i0,r),Ea(CS,r)}function __(){var r=wS(bf.current);return r}function y4(r){wS(CS.current);var a=wS(bf.current),s=qN(a,r.type);a!==s&&(ki(i0,r,r),ki(bf,s,r))}function T_(r){i0.current===r&&(Ea(bf,r),Ea(i0,r))}var IB=0,b4=1,S4=1,o0=2,ml=Ha(IB);function R_(r,a){return(r&a)!==0}function mh(r){return r&b4}function A_(r,a){return r&b4|a}function LB(r,a){return r|a}function Sf(r,a){ki(ml,a,r)}function hh(r){Ea(ml,r)}function FB(r,a){var s=r.memoizedState;return s!==null?s.dehydrated!==null:(r.memoizedProps,!0)}function NS(r){for(var a=r;a!==null;){if(a.tag===$){var s=a.memoizedState;if(s!==null){var f=s.dehydrated;if(f===null||Q1(f)||qg(f))return a}}else if(a.tag===Se&&a.memoizedProps.revealOrder!==void 0){var p=(a.flags&Un)!==Ft;if(p)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var vo=0,_a=1,Xl=2,Ta=4,ri=8,k_=[];function O_(){for(var r=0;r<k_.length;r++){var a=k_[r];a._workInProgressVersionPrimary=null}k_.length=0}function zB(r,a){var s=a._getVersion,f=s(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,f]:r.mutableSourceEagerHydrationData.push(a,f)}var ft=n.ReactCurrentDispatcher,s0=n.ReactCurrentBatchConfig,D_,vh;D_=new Set;var gp=Fe,sr=null,Ra=null,Aa=null,ES=!1,l0=!1,u0=0,BB=0,UB=25,ke=null,Os=null,xf=-1,P_=!1;function Qn(){{var r=ke;Os===null?Os=[r]:Os.push(r)}}function tt(){{var r=ke;Os!==null&&(xf++,Os[xf]!==r&&$B(r))}}function gh(r){r!=null&&!Bt(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ke,typeof r)}function $B(r){{var a=$t(sr);if(!D_.has(a)&&(D_.add(a),Os!==null)){for(var s="",f=30,p=0;p<=xf;p++){for(var y=Os[p],C=p===xf?r:y,T=p+1+". "+y;T.length<f;)T+=" ";T+=C+`
|
|
`,s+=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,s)}}}function Oi(){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 M_(r,a){if(P_)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.",ke),!1;r.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`,ke,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<a.length&&s<r.length;s++)if(!Ja(r[s],a[s]))return!1;return!0}function yh(r,a,s,f,p,y){gp=y,sr=a,Os=r!==null?r._debugHookTypes:null,xf=-1,P_=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Fe,r!==null&&r.memoizedState!==null?ft.current=j4:Os!==null?ft.current=$4:ft.current=U4;var C=s(f,p);if(l0){var T=0;do{if(l0=!1,u0=0,T>=UB)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");T+=1,P_=!1,Ra=null,Aa=null,a.updateQueue=null,xf=-1,ft.current=V4,C=s(f,p)}while(l0)}ft.current=zS,a._debugHookTypes=Os;var D=Ra!==null&&Ra.next!==null;if(gp=Fe,sr=null,Ra=null,Aa=null,ke=null,Os=null,xf=-1,r!==null&&(r.flags&vs)!==(a.flags&vs)&&(r.mode&wn)!==Dt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),ES=!1,D)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return C}function bh(){var r=u0!==0;return u0=0,r}function x4(r,a,s){a.updateQueue=r.updateQueue,(a.mode&co)!==Dt?a.flags&=~(ym|Zr|Wo|fn):a.flags&=~(Wo|fn),r.lanes=Id(r.lanes,s)}function C4(){if(ft.current=zS,ES){for(var r=sr.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}ES=!1}gp=Fe,sr=null,Ra=null,Aa=null,Os=null,xf=-1,ke=null,I4=!1,l0=!1,u0=0}function Zl(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Aa===null?sr.memoizedState=Aa=r:Aa=Aa.next=r,Aa}function Ds(){var r;if(Ra===null){var a=sr.alternate;a!==null?r=a.memoizedState:r=null}else r=Ra.next;var s;if(Aa===null?s=sr.memoizedState:s=Aa.next,s!==null)Aa=s,s=Aa.next,Ra=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");Ra=r;var f={memoizedState:Ra.memoizedState,baseState:Ra.baseState,baseQueue:Ra.baseQueue,queue:Ra.queue,next:null};Aa===null?sr.memoizedState=Aa=f:Aa=Aa.next=f}return Aa}function w4(){return{lastEffect:null,stores:null}}function I_(r,a){return typeof a=="function"?a(r):a}function L_(r,a,s){var f=Zl(),p;s!==void 0?p=s(a):p=a,f.memoizedState=f.baseState=p;var y={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:r,lastRenderedState:p};f.queue=y;var C=y.dispatch=WB.bind(null,sr,y);return[f.memoizedState,C]}function F_(r,a,s){var f=Ds(),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=r;var y=Ra,C=y.baseQueue,T=p.pending;if(T!==null){if(C!==null){var D=C.next,U=T.next;C.next=U,T.next=D}y.baseQueue!==C&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=C=T,p.pending=null}if(C!==null){var H=C.next,ee=y.baseState,J=null,ve=null,ge=null,_e=H;do{var pt=_e.lane;if($u(gp,pt)){if(ge!==null){var xt={lane:Qr,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ge=ge.next=xt}if(_e.hasEagerState)ee=_e.eagerState;else{var In=_e.action;ee=r(ee,In)}}else{var Rt={lane:pt,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ge===null?(ve=ge=Rt,J=ee):ge=ge.next=Rt,sr.lanes=dn(sr.lanes,pt),R0(pt)}_e=_e.next}while(_e!==null&&_e!==H);ge===null?J=ee:ge.next=ve,Ja(ee,f.memoizedState)||v0(),f.memoizedState=ee,f.baseState=J,f.baseQueue=ge,p.lastRenderedState=ee}var En=p.interleaved;if(En!==null){var ce=En;do{var Te=ce.lane;sr.lanes=dn(sr.lanes,Te),R0(Te),ce=ce.next}while(ce!==En)}else C===null&&(p.lanes=Fe);var fe=p.dispatch;return[f.memoizedState,fe]}function z_(r,a,s){var f=Ds(),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=r;var y=p.dispatch,C=p.pending,T=f.memoizedState;if(C!==null){p.pending=null;var D=C.next,U=D;do{var H=U.action;T=r(T,H),U=U.next}while(U!==D);Ja(T,f.memoizedState)||v0(),f.memoizedState=T,f.baseQueue===null&&(f.baseState=T),p.lastRenderedState=T}return[T,y]}function cge(r,a,s){}function fge(r,a,s){}function B_(r,a,s){var f=sr,p=Zl(),y,C=ni();if(C){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=s(),vh||y!==s()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),vh=!0)}else{if(y=a(),!vh){var T=a();Ja(y,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),vh=!0)}var D=nx();if(D===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Uu(D,gp)||N4(f,a,y)}p.memoizedState=y;var U={value:y,getSnapshot:a};return p.queue=U,kS(_4.bind(null,f,U,r),[r]),f.flags|=Wo,c0(_a|ri,E4.bind(null,f,U,y,a),void 0,null),y}function _S(r,a,s){var f=sr,p=Ds(),y=a();if(!vh){var C=a();Ja(y,C)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),vh=!0)}var T=p.memoizedState,D=!Ja(T,y);D&&(p.memoizedState=y,v0());var U=p.queue;if(d0(_4.bind(null,f,U,r),[r]),U.getSnapshot!==a||D||Aa!==null&&Aa.memoizedState.tag&_a){f.flags|=Wo,c0(_a|ri,E4.bind(null,f,U,y,a),void 0,null);var H=nx();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Uu(H,gp)||N4(f,a,y)}return y}function N4(r,a,s){r.flags|=gm;var f={getSnapshot:a,value:s},p=sr.updateQueue;if(p===null)p=w4(),sr.updateQueue=p,p.stores=[f];else{var y=p.stores;y===null?p.stores=[f]:y.push(f)}}function E4(r,a,s,f){a.value=s,a.getSnapshot=f,T4(a)&&R4(r)}function _4(r,a,s){var f=function(){T4(a)&&R4(r)};return s(f)}function T4(r){var a=r.getSnapshot,s=r.value;try{var f=a();return!Ja(s,f)}catch{return!0}}function R4(r){var a=ho(r,Gt);a!==null&&Pa(a,r,Gt,tr)}function TS(r){var a=Zl();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var s={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:I_,lastRenderedState:r};a.queue=s;var f=s.dispatch=GB.bind(null,sr,s);return[a.memoizedState,f]}function U_(r){return F_(I_)}function $_(r){return z_(I_)}function c0(r,a,s,f){var p={tag:r,create:a,destroy:s,deps:f,next:null},y=sr.updateQueue;if(y===null)y=w4(),sr.updateQueue=y,y.lastEffect=p.next=p;else{var C=y.lastEffect;if(C===null)y.lastEffect=p.next=p;else{var T=C.next;C.next=p,p.next=T,y.lastEffect=p}}return p}function j_(r){var a=Zl();{var s={current:r};return a.memoizedState=s,s}}function RS(r){var a=Ds();return a.memoizedState}function f0(r,a,s,f){var p=Zl(),y=f===void 0?null:f;sr.flags|=r,p.memoizedState=c0(_a|a,s,void 0,y)}function AS(r,a,s,f){var p=Ds(),y=f===void 0?null:f,C=void 0;if(Ra!==null){var T=Ra.memoizedState;if(C=T.destroy,y!==null){var D=T.deps;if(M_(y,D)){p.memoizedState=c0(a,s,C,y);return}}}sr.flags|=r,p.memoizedState=c0(_a|a,s,C,y)}function kS(r,a){return(sr.mode&co)!==Dt?f0(ym|Wo|Iv,ri,r,a):f0(Wo|Iv,ri,r,a)}function d0(r,a){return AS(Wo,ri,r,a)}function V_(r,a){return f0(fn,Xl,r,a)}function OS(r,a){return AS(fn,Xl,r,a)}function H_(r,a){var s=fn;return s|=Mu,(sr.mode&co)!==Dt&&(s|=Zr),f0(s,Ta,r,a)}function DS(r,a){return AS(fn,Ta,r,a)}function A4(r,a){if(typeof a=="function"){var s=a,f=r();return s(f),function(){s(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=r();return p.current=y,function(){p.current=null}}}function W_(r,a,s){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=s!=null?s.concat([r]):null,p=fn;return p|=Mu,(sr.mode&co)!==Dt&&(p|=Zr),f0(p,Ta,A4.bind(null,a,r),f)}function PS(r,a,s){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=s!=null?s.concat([r]):null;return AS(fn,Ta,A4.bind(null,a,r),f)}function jB(r,a){}var MS=jB;function G_(r,a){var s=Zl(),f=a===void 0?null:a;return s.memoizedState=[r,f],r}function IS(r,a){var s=Ds(),f=a===void 0?null:a,p=s.memoizedState;if(p!==null&&f!==null){var y=p[1];if(M_(f,y))return p[0]}return s.memoizedState=[r,f],r}function Y_(r,a){var s=Zl(),f=a===void 0?null:a,p=r();return s.memoizedState=[p,f],p}function LS(r,a){var s=Ds(),f=a===void 0?null:a,p=s.memoizedState;if(p!==null&&f!==null){var y=p[1];if(M_(f,y))return p[0]}var C=r();return s.memoizedState=[C,f],C}function q_(r){var a=Zl();return a.memoizedState=r,r}function k4(r){var a=Ds(),s=Ra,f=s.memoizedState;return D4(a,f,r)}function O4(r){var a=Ds();if(Ra===null)return a.memoizedState=r,r;var s=Ra.memoizedState;return D4(a,s,r)}function D4(r,a,s){var f=!Dm(gp);if(f){if(!Ja(s,a)){var p=Pd();sr.lanes=dn(sr.lanes,p),R0(p),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,v0()),r.memoizedState=s,s}function VB(r,a,s){var f=fo();la(mw(f,Cs)),r(!0);var p=s0.transition;s0.transition={};var y=s0.transition;s0.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(la(f),s0.transition=p,p===null&&y._updatedFibers){var C=y._updatedFibers.size;C>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 K_(){var r=TS(!1),a=r[0],s=r[1],f=VB.bind(null,s),p=Zl();return p.memoizedState=f,[a,f]}function P4(){var r=U_(),a=r[0],s=Ds(),f=s.memoizedState;return[a,f]}function M4(){var r=$_(),a=r[0],s=Ds(),f=s.memoizedState;return[a,f]}var I4=!1;function HB(){return I4}function X_(){var r=Zl(),a=nx(),s=a.identifierPrefix,f;if(ni()){var p=aB();f=":"+s+"R"+p;var y=u0++;y>0&&(f+="H"+y.toString(32)),f+=":"}else{var C=BB++;f=":"+s+"r"+C.toString(32)+":"}return r.memoizedState=f,f}function FS(){var r=Ds(),a=r.memoizedState;return a}function WB(r,a,s){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=_f(r),p={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(L4(r))F4(a,p);else{var y=e4(r,a,p,f);if(y!==null){var C=Ki();Pa(y,r,f,C),z4(y,a,f)}}B4(r,f)}function GB(r,a,s){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=_f(r),p={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(L4(r))F4(a,p);else{var y=r.alternate;if(r.lanes===Fe&&(y===null||y.lanes===Fe)){var C=a.lastRenderedReducer;if(C!==null){var T;T=ft.current,ft.current=hl;try{var D=a.lastRenderedState,U=C(D,s);if(p.hasEagerState=!0,p.eagerState=U,Ja(U,D)){NB(r,a,p,f);return}}catch{}finally{ft.current=T}}}var H=e4(r,a,p,f);if(H!==null){var ee=Ki();Pa(H,r,f,ee),z4(H,a,f)}}B4(r,f)}function L4(r){var a=r.alternate;return r===sr||a!==null&&a===sr}function F4(r,a){l0=ES=!0;var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}function z4(r,a,s){if(ag(s)){var f=a.lanes;f=qb(f,r.pendingLanes);var p=dn(f,s);a.lanes=p,Pt(r,p)}}function B4(r,a,s){Kv(r,a)}var zS={readContext:fa,useCallback:Oi,useContext:Oi,useEffect:Oi,useImperativeHandle:Oi,useInsertionEffect:Oi,useLayoutEffect:Oi,useMemo:Oi,useReducer:Oi,useRef:Oi,useState:Oi,useDebugValue:Oi,useDeferredValue:Oi,useTransition:Oi,useMutableSource:Oi,useSyncExternalStore:Oi,useId:Oi,unstable_isNewReconciler:xe},U4=null,$4=null,j4=null,V4=null,Ql=null,hl=null,BS=null;{var Z_=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().")},Zt=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")};U4={readContext:function(r){return fa(r)},useCallback:function(r,a){return ke="useCallback",Qn(),gh(a),G_(r,a)},useContext:function(r){return ke="useContext",Qn(),fa(r)},useEffect:function(r,a){return ke="useEffect",Qn(),gh(a),kS(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",Qn(),gh(s),W_(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Qn(),gh(a),V_(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Qn(),gh(a),H_(r,a)},useMemo:function(r,a){ke="useMemo",Qn(),gh(a);var s=ft.current;ft.current=Ql;try{return Y_(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",Qn();var f=ft.current;ft.current=Ql;try{return L_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",Qn(),j_(r)},useState:function(r){ke="useState",Qn();var a=ft.current;ft.current=Ql;try{return TS(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Qn(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",Qn(),q_(r)},useTransition:function(){return ke="useTransition",Qn(),K_()},useMutableSource:function(r,a,s){return ke="useMutableSource",Qn(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",Qn(),B_(r,a,s)},useId:function(){return ke="useId",Qn(),X_()},unstable_isNewReconciler:xe},$4={readContext:function(r){return fa(r)},useCallback:function(r,a){return ke="useCallback",tt(),G_(r,a)},useContext:function(r){return ke="useContext",tt(),fa(r)},useEffect:function(r,a){return ke="useEffect",tt(),kS(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",tt(),W_(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",tt(),V_(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",tt(),H_(r,a)},useMemo:function(r,a){ke="useMemo",tt();var s=ft.current;ft.current=Ql;try{return Y_(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",tt();var f=ft.current;ft.current=Ql;try{return L_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",tt(),j_(r)},useState:function(r){ke="useState",tt();var a=ft.current;ft.current=Ql;try{return TS(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",tt(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",tt(),q_(r)},useTransition:function(){return ke="useTransition",tt(),K_()},useMutableSource:function(r,a,s){return ke="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",tt(),B_(r,a,s)},useId:function(){return ke="useId",tt(),X_()},unstable_isNewReconciler:xe},j4={readContext:function(r){return fa(r)},useCallback:function(r,a){return ke="useCallback",tt(),IS(r,a)},useContext:function(r){return ke="useContext",tt(),fa(r)},useEffect:function(r,a){return ke="useEffect",tt(),d0(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",tt(),PS(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",tt(),OS(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",tt(),DS(r,a)},useMemo:function(r,a){ke="useMemo",tt();var s=ft.current;ft.current=hl;try{return LS(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",tt();var f=ft.current;ft.current=hl;try{return F_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",tt(),RS()},useState:function(r){ke="useState",tt();var a=ft.current;ft.current=hl;try{return U_(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",tt(),MS()},useDeferredValue:function(r){return ke="useDeferredValue",tt(),k4(r)},useTransition:function(){return ke="useTransition",tt(),P4()},useMutableSource:function(r,a,s){return ke="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",tt(),_S(r,a)},useId:function(){return ke="useId",tt(),FS()},unstable_isNewReconciler:xe},V4={readContext:function(r){return fa(r)},useCallback:function(r,a){return ke="useCallback",tt(),IS(r,a)},useContext:function(r){return ke="useContext",tt(),fa(r)},useEffect:function(r,a){return ke="useEffect",tt(),d0(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",tt(),PS(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",tt(),OS(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",tt(),DS(r,a)},useMemo:function(r,a){ke="useMemo",tt();var s=ft.current;ft.current=BS;try{return LS(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",tt();var f=ft.current;ft.current=BS;try{return z_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",tt(),RS()},useState:function(r){ke="useState",tt();var a=ft.current;ft.current=BS;try{return $_(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",tt(),MS()},useDeferredValue:function(r){return ke="useDeferredValue",tt(),O4(r)},useTransition:function(){return ke="useTransition",tt(),M4()},useMutableSource:function(r,a,s){return ke="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",tt(),_S(r,a)},useId:function(){return ke="useId",tt(),FS()},unstable_isNewReconciler:xe},Ql={readContext:function(r){return Z_(),fa(r)},useCallback:function(r,a){return ke="useCallback",Zt(),Qn(),G_(r,a)},useContext:function(r){return ke="useContext",Zt(),Qn(),fa(r)},useEffect:function(r,a){return ke="useEffect",Zt(),Qn(),kS(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",Zt(),Qn(),W_(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Zt(),Qn(),V_(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Zt(),Qn(),H_(r,a)},useMemo:function(r,a){ke="useMemo",Zt(),Qn();var s=ft.current;ft.current=Ql;try{return Y_(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",Zt(),Qn();var f=ft.current;ft.current=Ql;try{return L_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",Zt(),Qn(),j_(r)},useState:function(r){ke="useState",Zt(),Qn();var a=ft.current;ft.current=Ql;try{return TS(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Zt(),Qn(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",Zt(),Qn(),q_(r)},useTransition:function(){return ke="useTransition",Zt(),Qn(),K_()},useMutableSource:function(r,a,s){return ke="useMutableSource",Zt(),Qn(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",Zt(),Qn(),B_(r,a,s)},useId:function(){return ke="useId",Zt(),Qn(),X_()},unstable_isNewReconciler:xe},hl={readContext:function(r){return Z_(),fa(r)},useCallback:function(r,a){return ke="useCallback",Zt(),tt(),IS(r,a)},useContext:function(r){return ke="useContext",Zt(),tt(),fa(r)},useEffect:function(r,a){return ke="useEffect",Zt(),tt(),d0(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",Zt(),tt(),PS(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Zt(),tt(),OS(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Zt(),tt(),DS(r,a)},useMemo:function(r,a){ke="useMemo",Zt(),tt();var s=ft.current;ft.current=hl;try{return LS(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",Zt(),tt();var f=ft.current;ft.current=hl;try{return F_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",Zt(),tt(),RS()},useState:function(r){ke="useState",Zt(),tt();var a=ft.current;ft.current=hl;try{return U_(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Zt(),tt(),MS()},useDeferredValue:function(r){return ke="useDeferredValue",Zt(),tt(),k4(r)},useTransition:function(){return ke="useTransition",Zt(),tt(),P4()},useMutableSource:function(r,a,s){return ke="useMutableSource",Zt(),tt(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",Zt(),tt(),_S(r,a)},useId:function(){return ke="useId",Zt(),tt(),FS()},unstable_isNewReconciler:xe},BS={readContext:function(r){return Z_(),fa(r)},useCallback:function(r,a){return ke="useCallback",Zt(),tt(),IS(r,a)},useContext:function(r){return ke="useContext",Zt(),tt(),fa(r)},useEffect:function(r,a){return ke="useEffect",Zt(),tt(),d0(r,a)},useImperativeHandle:function(r,a,s){return ke="useImperativeHandle",Zt(),tt(),PS(r,a,s)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Zt(),tt(),OS(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Zt(),tt(),DS(r,a)},useMemo:function(r,a){ke="useMemo",Zt(),tt();var s=ft.current;ft.current=hl;try{return LS(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){ke="useReducer",Zt(),tt();var f=ft.current;ft.current=hl;try{return z_(r,a,s)}finally{ft.current=f}},useRef:function(r){return ke="useRef",Zt(),tt(),RS()},useState:function(r){ke="useState",Zt(),tt();var a=ft.current;ft.current=hl;try{return $_(r)}finally{ft.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Zt(),tt(),MS()},useDeferredValue:function(r){return ke="useDeferredValue",Zt(),tt(),O4(r)},useTransition:function(){return ke="useTransition",Zt(),tt(),M4()},useMutableSource:function(r,a,s){return ke="useMutableSource",Zt(),tt(),void 0},useSyncExternalStore:function(r,a,s){return ke="useSyncExternalStore",Zt(),tt(),_S(r,a)},useId:function(){return ke="useId",Zt(),tt(),FS()},unstable_isNewReconciler:xe}}var Cf=t.unstable_now,H4=0,US=-1,p0=-1,$S=-1,Q_=!1,jS=!1;function W4(){return Q_}function YB(){jS=!0}function qB(){Q_=!1,jS=!1}function KB(){Q_=jS,jS=!1}function G4(){return H4}function Y4(){H4=Cf()}function J_(r){p0=Cf(),r.actualStartTime<0&&(r.actualStartTime=Cf())}function q4(r){p0=-1}function VS(r,a){if(p0>=0){var s=Cf()-p0;r.actualDuration+=s,a&&(r.selfBaseDuration=s),p0=-1}}function Jl(r){if(US>=0){var a=Cf()-US;US=-1;for(var s=r.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f.effectDuration+=a;return;case z:var p=s.stateNode;p.effectDuration+=a;return}s=s.return}}}function eT(r){if($S>=0){var a=Cf()-$S;$S=-1;for(var s=r.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case z:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=a);return}s=s.return}}}function eu(){US=Cf()}function tT(){$S=Cf()}function nT(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function yp(r,a){return{value:r,source:a,stack:Ba(a),digest:null}}function rT(r,a,s){return{value:r,source:null,stack:s??null,digest:a??null}}function XB(r,a){return!0}function aT(r,a){try{var s=XB(r,a);if(s===!1)return;var f=a.value,p=a.source,y=a.stack,C=y!==null?y:"";if(f!=null&&f._suppressLogging){if(r.tag===v)return;console.error(f)}var T=p?$t(p):null,D=T?"The above error occurred in the <"+T+"> component:":"The above error occurred in one of your React components:",U;if(r.tag===x)U=`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=$t(r)||"Anonymous";U="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var ee=D+`
|
|
`+C+`
|
|
|
|
`+(""+U);console.error(ee)}catch(J){setTimeout(function(){throw J})}}var ZB=typeof WeakMap=="function"?WeakMap:Map;function K4(r,a,s){var f=tc(tr,s);f.tag=a_,f.payload={element:null};var p=a.value;return f.callback=function(){V$(p),aT(r,a)},f}function iT(r,a,s){var f=tc(tr,s);f.tag=a_;var p=r.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;f.payload=function(){return p(y)},f.callback=function(){oD(r),aT(r,a)}}var C=r.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(f.callback=function(){oD(r),aT(r,a),typeof p!="function"&&$$(this);var D=a.value,U=a.stack;this.componentDidCatch(D,{componentStack:U!==null?U:""}),typeof p!="function"&&(Ei(r.lanes,Gt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",$t(r)||"Unknown"))}),f}function X4(r,a,s){var f=r.pingCache,p;if(f===null?(f=r.pingCache=new ZB,p=new Set,f.set(a,p)):(p=f.get(a),p===void 0&&(p=new Set,f.set(a,p))),!p.has(s)){p.add(s);var y=H$.bind(null,r,a,s);Na&&A0(r,s),a.then(y,y)}}function QB(r,a,s,f){var p=r.updateQueue;if(p===null){var y=new Set;y.add(s),r.updateQueue=y}else p.add(s)}function JB(r,a){var s=r.tag;if((r.mode&wn)===Dt&&(s===h||s===F||s===K)){var f=r.alternate;f?(r.updateQueue=f.updateQueue,r.memoizedState=f.memoizedState,r.lanes=f.lanes):(r.updateQueue=null,r.memoizedState=null)}}function Z4(r){var a=r;do{if(a.tag===$&&FB(a))return a;a=a.return}while(a!==null);return null}function Q4(r,a,s,f,p){if((r.mode&wn)===Dt){if(r===a)r.flags|=Ka;else{if(r.flags|=Un,s.flags|=Mv,s.flags&=~(rl|Sd),s.tag===v){var y=s.alternate;if(y===null)s.tag=me;else{var C=tc(tr,Gt);C.tag=pS,yf(s,C,Gt)}}s.lanes=dn(s.lanes,Gt)}return r}return r.flags|=Ka,r.lanes=p,r}function eU(r,a,s,f,p){if(s.flags|=Sd,Na&&A0(r,p),f!==null&&typeof f=="object"&&typeof f.then=="function"){var y=f;JB(s),ni()&&s.mode&wn&&jO();var C=Z4(a);if(C!==null){C.flags&=~tl,Q4(C,a,s,r,p),C.mode&wn&&X4(r,y,p),QB(C,r,y);return}else{if(!Gb(p)){X4(r,y,p),zT();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(ni()&&s.mode&wn){jO();var D=Z4(a);if(D!==null){(D.flags&Ka)===Ft&&(D.flags|=tl),Q4(D,a,s,r,p),ZE(yp(f,s));return}}f=yp(f,s),P$(f);var U=a;do{switch(U.tag){case x:{var H=f;U.flags|=Ka;var ee=Md(p);U.lanes=dn(U.lanes,ee);var J=K4(U,H,ee);s_(U,J);return}case v:var ve=f,ge=U.type,_e=U.stateNode;if((U.flags&Un)===Ft&&(typeof ge.getDerivedStateFromError=="function"||_e!==null&&typeof _e.componentDidCatch=="function"&&!Z3(_e))){U.flags|=Ka;var pt=Md(p);U.lanes=dn(U.lanes,pt);var Rt=iT(U,ve,pt);s_(U,Rt);return}break}U=U.return}while(U!==null)}function tU(){return null}var m0=n.ReactCurrentOwner,vl=!1,oT,h0,sT,lT,uT,bp,cT,HS;oT={},h0={},sT={},lT={},uT={},bp=!1,cT={},HS={};function Yi(r,a,s,f){r===null?a.child=v4(a,null,s,f):a.child=dh(a,r.child,s,f)}function nU(r,a,s,f){a.child=dh(a,r.child,null,f),a.child=dh(a,null,s,f)}function J4(r,a,s,f,p){if(a.type!==a.elementType){var y=s.propTypes;y&&yr(y,f,"prop",un(s))}var C=s.render,T=a.ref,D,U;fh(a,p),Ed(a);{if(m0.current=a,Kr(!0),D=yh(r,a,C,f,T,p),U=bh(),a.mode&Ir){oa(!0);try{D=yh(r,a,C,f,T,p),U=bh()}finally{oa(!1)}}Kr(!1)}return Wc(),r!==null&&!vl?(x4(r,a,p),nc(r,a,p)):(ni()&&U&&WE(a),a.flags|=Vc,Yi(r,a,D,p),a.child)}function e3(r,a,s,f,p){if(r===null){var y=s.type;if(sj(y)&&s.compare===null&&s.defaultProps===void 0){var C=y;return C=Th(y),a.tag=K,a.type=C,pT(a,y),t3(r,a,C,f,p)}{var T=y.propTypes;T&&yr(T,f,"prop",un(y))}var D=KT(s.type,null,f,a,a.mode,p);return D.ref=a.ref,D.return=a,a.child=D,D}{var U=s.type,H=U.propTypes;H&&yr(H,f,"prop",un(U))}var ee=r.child,J=bT(r,p);if(!J){var ve=ee.memoizedProps,ge=s.compare;if(ge=ge!==null?ge:lf,ge(ve,f)&&r.ref===a.ref)return nc(r,a,p)}a.flags|=Vc;var _e=Np(ee,f);return _e.ref=a.ref,_e.return=a,a.child=_e,_e}function t3(r,a,s,f,p){if(a.type!==a.elementType){var y=a.elementType;if(y.$$typeof===ln){var C=y,T=C._payload,D=C._init;try{y=D(T)}catch{y=null}var U=y&&y.propTypes;U&&yr(U,f,"prop",un(y))}}if(r!==null){var H=r.memoizedProps;if(lf(H,f)&&r.ref===a.ref&&a.type===r.type)if(vl=!1,a.pendingProps=f=H,bT(r,p))(r.flags&Mv)!==Ft&&(vl=!0);else return a.lanes=r.lanes,nc(r,a,p)}return fT(r,a,s,f,p)}function n3(r,a,s){var f=a.pendingProps,p=f.children,y=r!==null?r.memoizedState:null;if(f.mode==="hidden"||he)if((a.mode&wn)===Dt){var C={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=C,rx(a,s)}else if(Ei(s,Wi)){var ee={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=ee;var J=y!==null?y.baseLanes:s;rx(a,J)}else{var T=null,D;if(y!==null){var U=y.baseLanes;D=dn(U,s)}else D=s;a.lanes=a.childLanes=Wi;var H={baseLanes:D,cachePool:T,transitions:null};return a.memoizedState=H,a.updateQueue=null,rx(a,D),null}else{var ve;y!==null?(ve=dn(y.baseLanes,s),a.memoizedState=null):ve=s,rx(a,ve)}return Yi(r,a,p,s),a.child}function rU(r,a,s){var f=a.pendingProps;return Yi(r,a,f,s),a.child}function aU(r,a,s){var f=a.pendingProps.children;return Yi(r,a,f,s),a.child}function iU(r,a,s){{a.flags|=fn;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var p=a.pendingProps,y=p.children;return Yi(r,a,y,s),a.child}function r3(r,a){var s=a.ref;(r===null&&s!==null||r!==null&&r.ref!==s)&&(a.flags|=$a,a.flags|=al)}function fT(r,a,s,f,p){if(a.type!==a.elementType){var y=s.propTypes;y&&yr(y,f,"prop",un(s))}var C;{var T=ih(a,s,!0);C=oh(a,T)}var D,U;fh(a,p),Ed(a);{if(m0.current=a,Kr(!0),D=yh(r,a,s,f,C,p),U=bh(),a.mode&Ir){oa(!0);try{D=yh(r,a,s,f,C,p),U=bh()}finally{oa(!1)}}Kr(!1)}return Wc(),r!==null&&!vl?(x4(r,a,p),nc(r,a,p)):(ni()&&U&&WE(a),a.flags|=Vc,Yi(r,a,D,p),a.child)}function a3(r,a,s,f,p){{switch(Cj(a)){case!1:{var y=a.stateNode,C=a.type,T=new C(a.memoizedProps,y.context),D=T.state;y.updater.enqueueSetState(y,D,null);break}case!0:{a.flags|=Un,a.flags|=Ka;var U=new Error("Simulated error coming from DevTools"),H=Md(p);a.lanes=dn(a.lanes,H);var ee=iT(a,yp(U,a),H);s_(a,ee);break}}if(a.type!==a.elementType){var J=s.propTypes;J&&yr(J,f,"prop",un(s))}}var ve;Kl(s)?(ve=!0,nS(a)):ve=!1,fh(a,p);var ge=a.stateNode,_e;ge===null?(GS(r,a),f4(a,s,f),b_(a,s,f,p),_e=!0):r===null?_e=OB(a,s,f,p):_e=DB(r,a,s,f,p);var pt=dT(r,a,s,_e,ve,p);{var Rt=a.stateNode;_e&&Rt.props!==f&&(bp||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",$t(a)||"a component"),bp=!0)}return pt}function dT(r,a,s,f,p,y){r3(r,a);var C=(a.flags&Un)!==Ft;if(!f&&!C)return p&&zO(a,s,!1),nc(r,a,y);var T=a.stateNode;m0.current=a;var D;if(C&&typeof s.getDerivedStateFromError!="function")D=null,q4();else{Ed(a);{if(Kr(!0),D=T.render(),a.mode&Ir){oa(!0);try{T.render()}finally{oa(!1)}}Kr(!1)}Wc()}return a.flags|=Vc,r!==null&&C?nU(r,a,D,y):Yi(r,a,D,y),a.memoizedState=T.state,p&&zO(a,s,!0),a.child}function i3(r){var a=r.stateNode;a.pendingContext?LO(r,a.pendingContext,a.pendingContext!==a.context):a.context&&LO(r,a.context,!1),E_(r,a.containerInfo)}function oU(r,a,s){if(i3(a),r===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;r4(r,a),gS(a,f,null,s);var C=a.memoizedState;a.stateNode;var T=C.element;if(p.isDehydrated){var D={element:T,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},U=a.updateQueue;if(U.baseState=D,a.memoizedState=D,a.flags&tl){var H=yp(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 o3(r,a,T,s,H)}else if(T!==y){var ee=yp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return o3(r,a,T,s,ee)}else{cB(a);var J=v4(a,null,T,s);a.child=J;for(var ve=J;ve;)ve.flags=ve.flags&~jr|nl,ve=ve.sibling}}else{if(uh(),T===y)return nc(r,a,s);Yi(r,a,T,s)}return a.child}function o3(r,a,s,f,p){return uh(),ZE(p),a.flags|=tl,Yi(r,a,s,f),a.child}function sU(r,a,s){y4(a),r===null&&XE(a);var f=a.type,p=a.pendingProps,y=r!==null?r.memoizedProps:null,C=p.children,T=zg(f,p);return T?C=null:y!==null&&zg(f,y)&&(a.flags|=bd),r3(r,a),Yi(r,a,C,s),a.child}function lU(r,a){return r===null&&XE(a),null}function uU(r,a,s,f){GS(r,a);var p=a.pendingProps,y=s,C=y._payload,T=y._init,D=T(C);a.type=D;var U=a.tag=lj(D),H=pl(D,p),ee;switch(U){case h:return pT(a,D),a.type=D=Th(D),ee=fT(null,a,D,H,f),ee;case v:return a.type=D=VT(D),ee=a3(null,a,D,H,f),ee;case F:return a.type=D=HT(D),ee=J4(null,a,D,H,f),ee;case q:{if(a.type!==a.elementType){var J=D.propTypes;J&&yr(J,H,"prop",un(D))}return ee=e3(null,a,D,pl(D.type,H),f),ee}}var ve="";throw D!==null&&typeof D=="object"&&D.$$typeof===ln&&(ve=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+D+". "+("Lazy element type must resolve to a class or function."+ve))}function cU(r,a,s,f,p){GS(r,a),a.tag=v;var y;return Kl(s)?(y=!0,nS(a)):y=!1,fh(a,p),f4(a,s,f),b_(a,s,f,p),dT(null,a,s,!0,y,p)}function fU(r,a,s,f){GS(r,a);var p=a.pendingProps,y;{var C=ih(a,s,!1);y=oh(a,C)}fh(a,f);var T,D;Ed(a);{if(s.prototype&&typeof s.prototype.render=="function"){var U=un(s)||"Unknown";oT[U]||(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.",U,U),oT[U]=!0)}a.mode&Ir&&dl.recordLegacyContextWarning(a,null),Kr(!0),m0.current=a,T=yh(null,a,s,p,y,f),D=bh(),Kr(!1)}if(Wc(),a.flags|=Vc,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){var H=un(s)||"Unknown";h0[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),h0[H]=!0)}if(typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){{var ee=un(s)||"Unknown";h0[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),h0[ee]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var J=!1;return Kl(s)?(J=!0,nS(a)):J=!1,a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,o_(a),c4(a,T),b_(a,s,p,f),dT(null,a,s,!0,J,f)}else{if(a.tag=h,a.mode&Ir){oa(!0);try{T=yh(null,a,s,p,y,f),D=bh()}finally{oa(!1)}}return ni()&&D&&WE(a),Yi(null,a,T,f),pT(a,s),a.child}}function pT(r,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var s="",f=Ya();f&&(s+=`
|
|
|
|
Check the render method of \``+f+"`.");var p=f||"",y=r._debugSource;y&&(p=y.fileName+":"+y.lineNumber),uT[p]||(uT[p]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof a.getDerivedStateFromProps=="function"){var C=un(a)||"Unknown";lT[C]||(u("%s: Function components do not support getDerivedStateFromProps.",C),lT[C]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var T=un(a)||"Unknown";sT[T]||(u("%s: Function components do not support contextType.",T),sT[T]=!0)}}}var mT={dehydrated:null,treeContext:null,retryLane:Qr};function hT(r){return{baseLanes:r,cachePool:tU(),transitions:null}}function dU(r,a){var s=null;return{baseLanes:dn(r.baseLanes,a),cachePool:s,transitions:r.transitions}}function pU(r,a,s,f){if(a!==null){var p=a.memoizedState;if(p===null)return!1}return R_(r,o0)}function mU(r,a){return Id(r.childLanes,a)}function s3(r,a,s){var f=a.pendingProps;wj(a)&&(a.flags|=Un);var p=ml.current,y=!1,C=(a.flags&Un)!==Ft;if(C||pU(p,r)?(y=!0,a.flags&=~Un):(r===null||r.memoizedState!==null)&&(p=LB(p,S4)),p=mh(p),Sf(a,p),r===null){XE(a);var T=a.memoizedState;if(T!==null){var D=T.dehydrated;if(D!==null)return bU(a,D)}var U=f.children,H=f.fallback;if(y){var ee=hU(a,U,H,s),J=a.child;return J.memoizedState=hT(s),a.memoizedState=mT,ee}else return vT(a,U)}else{var ve=r.memoizedState;if(ve!==null){var ge=ve.dehydrated;if(ge!==null)return SU(r,a,C,f,ge,ve,s)}if(y){var _e=f.fallback,pt=f.children,Rt=gU(r,a,pt,_e,s),xt=a.child,In=r.child.memoizedState;return xt.memoizedState=In===null?hT(s):dU(In,s),xt.childLanes=mU(r,s),a.memoizedState=mT,Rt}else{var En=f.children,ce=vU(r,a,En,s);return a.memoizedState=null,ce}}}function vT(r,a,s){var f=r.mode,p={mode:"visible",children:a},y=gT(p,f);return y.return=r,r.child=y,y}function hU(r,a,s,f){var p=r.mode,y=r.child,C={mode:"hidden",children:a},T,D;return(p&wn)===Dt&&y!==null?(T=y,T.childLanes=Fe,T.pendingProps=C,r.mode&Wn&&(T.actualDuration=0,T.actualStartTime=-1,T.selfBaseDuration=0,T.treeBaseDuration=0),D=Rf(s,p,f,null)):(T=gT(C,p),D=Rf(s,p,f,null)),T.return=r,D.return=r,T.sibling=D,r.child=T,D}function gT(r,a,s){return lD(r,a,Fe,null)}function l3(r,a){return Np(r,a)}function vU(r,a,s,f){var p=r.child,y=p.sibling,C=l3(p,{mode:"visible",children:s});if((a.mode&wn)===Dt&&(C.lanes=f),C.return=a,C.sibling=null,y!==null){var T=a.deletions;T===null?(a.deletions=[y],a.flags|=Ou):T.push(y)}return a.child=C,C}function gU(r,a,s,f,p){var y=a.mode,C=r.child,T=C.sibling,D={mode:"hidden",children:s},U;if((y&wn)===Dt&&a.child!==C){var H=a.child;U=H,U.childLanes=Fe,U.pendingProps=D,a.mode&Wn&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=C.selfBaseDuration,U.treeBaseDuration=C.treeBaseDuration),a.deletions=null}else U=l3(C,D),U.subtreeFlags=C.subtreeFlags&vs;var ee;return T!==null?ee=Np(T,f):(ee=Rf(f,y,p,null),ee.flags|=jr),ee.return=a,U.return=a,U.sibling=ee,a.child=U,ee}function WS(r,a,s,f){f!==null&&ZE(f),dh(a,r.child,null,s);var p=a.pendingProps,y=p.children,C=vT(a,y);return C.flags|=jr,a.memoizedState=null,C}function yU(r,a,s,f,p){var y=a.mode,C={mode:"visible",children:s},T=gT(C,y),D=Rf(f,y,p,null);return D.flags|=jr,T.return=a,D.return=a,T.sibling=D,a.child=T,(a.mode&wn)!==Dt&&dh(a,r.child,null,p),D}function bU(r,a,s){return(r.mode&wn)===Dt?(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."),r.lanes=Gt):qg(a)?r.lanes=Fu:r.lanes=Wi,null}function SU(r,a,s,f,p,y,C){if(s)if(a.flags&tl){a.flags&=~tl;var ce=rT(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return WS(r,a,C,ce)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=Un,null;var Te=f.children,fe=f.fallback,We=yU(r,a,Te,fe,C),mt=a.child;return mt.memoizedState=hT(C),a.memoizedState=mT,We}else{if(lB(),(a.mode&wn)===Dt)return WS(r,a,C,null);if(qg(p)){var T,D,U;{var H=gE(p);T=H.digest,D=H.message,U=H.stack}var ee;D?ee=new Error(D):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=rT(ee,T,U);return WS(r,a,C,J)}var ve=Ei(C,r.childLanes);if(vl||ve){var ge=nx();if(ge!==null){var _e=Pm(ge,C);if(_e!==Qr&&_e!==y.retryLane){y.retryLane=_e;var pt=tr;ho(r,_e),Pa(ge,r,_e,pt)}}zT();var Rt=rT(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 WS(r,a,C,Rt)}else if(Q1(p)){a.flags|=Un,a.child=r.child;var xt=W$.bind(null,r);return yE(p,xt),null}else{fB(a,p,y.treeContext);var In=f.children,En=vT(a,In);return En.flags|=nl,En}}}function u3(r,a,s){r.lanes=dn(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=dn(f.lanes,a)),n_(r.return,a,s)}function xU(r,a,s){for(var f=a;f!==null;){if(f.tag===$){var p=f.memoizedState;p!==null&&u3(f,s,r)}else if(f.tag===Se)u3(f,s,r);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function CU(r){for(var a=r,s=null;a!==null;){var f=a.alternate;f!==null&&NS(f)===null&&(s=a),a=a.sibling}return s}function wU(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!cT[r])if(cT[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.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.',r,r.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function NU(r,a){r!==void 0&&!HS[r]&&(r!=="collapsed"&&r!=="hidden"?(HS[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(HS[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function c3(r,a){{var s=Bt(r),f=!s&&typeof zi(r)=="function";if(s||f){var p=s?"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 EU(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(Bt(r)){for(var s=0;s<r.length;s++)if(!c3(r[s],s))return}else{var f=zi(r);if(typeof f=="function"){var p=f.call(r);if(p)for(var y=p.next(),C=0;!y.done;y=p.next()){if(!c3(y.value,C))return;C++}}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 yT(r,a,s,f,p){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:p}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=s,y.tailMode=p)}function f3(r,a,s){var f=a.pendingProps,p=f.revealOrder,y=f.tail,C=f.children;wU(p),NU(y,p),EU(C,p),Yi(r,a,C,s);var T=ml.current,D=R_(T,o0);if(D)T=A_(T,o0),a.flags|=Un;else{var U=r!==null&&(r.flags&Un)!==Ft;U&&xU(a,a.child,s),T=mh(T)}if(Sf(a,T),(a.mode&wn)===Dt)a.memoizedState=null;else switch(p){case"forwards":{var H=CU(a.child),ee;H===null?(ee=a.child,a.child=null):(ee=H.sibling,H.sibling=null),yT(a,!1,ee,H,y);break}case"backwards":{var J=null,ve=a.child;for(a.child=null;ve!==null;){var ge=ve.alternate;if(ge!==null&&NS(ge)===null){a.child=ve;break}var _e=ve.sibling;ve.sibling=J,J=ve,ve=_e}yT(a,!0,J,null,y);break}case"together":{yT(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function _U(r,a,s){E_(a,a.stateNode.containerInfo);var f=a.pendingProps;return r===null?a.child=dh(a,null,f,s):Yi(r,a,f,s),a.child}var d3=!1;function TU(r,a,s){var f=a.type,p=f._context,y=a.pendingProps,C=a.memoizedProps,T=y.value;{"value"in y||d3||(d3=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var D=a.type.propTypes;D&&yr(D,y,"prop","Context.Provider")}if(JO(a,p,T),C!==null){var U=C.value;if(Ja(U,T)){if(C.children===y.children&&!eS())return nc(r,a,s)}else xB(a,p,s)}var H=y.children;return Yi(r,a,H,s),a.child}var p3=!1;function RU(r,a,s){var f=a.type;f._context===void 0?f!==f.Consumer&&(p3||(p3=!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."),fh(a,s);var C=fa(f);Ed(a);var T;return m0.current=a,Kr(!0),T=y(C),Kr(!1),Wc(),a.flags|=Vc,Yi(r,a,T,s),a.child}function v0(){vl=!0}function GS(r,a){(a.mode&wn)===Dt&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=jr)}function nc(r,a,s){return r!==null&&(a.dependencies=r.dependencies),q4(),R0(a.lanes),Ei(s,a.childLanes)?(PB(r,a),a.child):null}function AU(r,a,s){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,s.index=a.index,s.sibling=a.sibling,s.return=a.return,s.ref=a.ref,a===f.child)f.child=s;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=s}var y=f.deletions;return y===null?(f.deletions=[r],f.flags|=Ou):y.push(r),s.flags|=jr,s}}function bT(r,a){var s=r.lanes;return!!Ei(s,a)}function kU(r,a,s){switch(a.tag){case x:i3(a),a.stateNode,uh();break;case N:y4(a);break;case v:{var f=a.type;Kl(f)&&nS(a);break}case w:E_(a,a.stateNode.containerInfo);break;case I:{var p=a.memoizedProps.value,y=a.type._context;JO(a,y,p);break}case z:{var C=Ei(s,a.childLanes);C&&(a.flags|=fn);{var T=a.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case $:{var D=a.memoizedState;if(D!==null){if(D.dehydrated!==null)return Sf(a,mh(ml.current)),a.flags|=Un,null;var U=a.child,H=U.childLanes;if(Ei(s,H))return s3(r,a,s);Sf(a,mh(ml.current));var ee=nc(r,a,s);return ee!==null?ee.sibling:null}else Sf(a,mh(ml.current));break}case Se:{var J=(r.flags&Un)!==Ft,ve=Ei(s,a.childLanes);if(J){if(ve)return f3(r,a,s);a.flags|=Un}var ge=a.memoizedState;if(ge!==null&&(ge.rendering=null,ge.tail=null,ge.lastEffect=null),Sf(a,ml.current),ve)break;return null}case ae:case ue:return a.lanes=Fe,n3(r,a,s)}return nc(r,a,s)}function m3(r,a,s){if(a._debugNeedsRemount&&r!==null)return AU(r,a,KT(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var f=r.memoizedProps,p=a.pendingProps;if(f!==p||eS()||a.type!==r.type)vl=!0;else{var y=bT(r,s);if(!y&&(a.flags&Un)===Ft)return vl=!1,kU(r,a,s);(r.flags&Mv)!==Ft?vl=!0:vl=!1}}else if(vl=!1,ni()&&nB(a)){var C=a.index,T=rB();$O(a,T,C)}switch(a.lanes=Fe,a.tag){case b:return fU(r,a,a.type,s);case le:{var D=a.elementType;return uU(r,a,D,s)}case h:{var U=a.type,H=a.pendingProps,ee=a.elementType===U?H:pl(U,H);return fT(r,a,U,ee,s)}case v:{var J=a.type,ve=a.pendingProps,ge=a.elementType===J?ve:pl(J,ve);return a3(r,a,J,ge,s)}case x:return oU(r,a,s);case N:return sU(r,a,s);case R:return lU(r,a);case $:return s3(r,a,s);case w:return _U(r,a,s);case F:{var _e=a.type,pt=a.pendingProps,Rt=a.elementType===_e?pt:pl(_e,pt);return J4(r,a,_e,Rt,s)}case O:return rU(r,a,s);case M:return aU(r,a,s);case z:return iU(r,a,s);case I:return TU(r,a,s);case B:return RU(r,a,s);case q:{var xt=a.type,In=a.pendingProps,En=pl(xt,In);if(a.type!==a.elementType){var ce=xt.propTypes;ce&&yr(ce,En,"prop",un(xt))}return En=pl(xt.type,En),e3(r,a,xt,En,s)}case K:return t3(r,a,a.type,a.pendingProps,s);case me:{var Te=a.type,fe=a.pendingProps,We=a.elementType===Te?fe:pl(Te,fe);return cU(r,a,Te,We,s)}case Se:return f3(r,a,s);case qe:break;case ae:return n3(r,a,s)}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 Sh(r){r.flags|=fn}function h3(r){r.flags|=$a,r.flags|=al}var v3,ST,g3,y3;v3=function(r,a,s,f){for(var p=a.child;p!==null;){if(p.tag===N||p.tag===R)QN(r,p.stateNode);else if(p.tag!==w){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}},ST=function(r,a){},g3=function(r,a,s,f,p){var y=r.memoizedProps;if(y!==f){var C=a.stateNode,T=__(),D=eE(C,s,y,f,p,T);a.updateQueue=D,D&&Sh(a)}},y3=function(r,a,s,f){s!==f&&Sh(a)};function g0(r,a){if(!ni())switch(r.tailMode){case"hidden":{for(var s=r.tail,f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?r.tail=null:f.sibling=null;break}case"collapsed":{for(var p=r.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:y.sibling=null;break}}}function ai(r){var a=r.alternate!==null&&r.alternate.child===r.child,s=Fe,f=Ft;if(a){if((r.mode&Wn)!==Dt){for(var D=r.selfBaseDuration,U=r.child;U!==null;)s=dn(s,dn(U.lanes,U.childLanes)),f|=U.subtreeFlags&vs,f|=U.flags&vs,D+=U.treeBaseDuration,U=U.sibling;r.treeBaseDuration=D}else for(var H=r.child;H!==null;)s=dn(s,dn(H.lanes,H.childLanes)),f|=H.subtreeFlags&vs,f|=H.flags&vs,H.return=r,H=H.sibling;r.subtreeFlags|=f}else{if((r.mode&Wn)!==Dt){for(var p=r.actualDuration,y=r.selfBaseDuration,C=r.child;C!==null;)s=dn(s,dn(C.lanes,C.childLanes)),f|=C.subtreeFlags,f|=C.flags,p+=C.actualDuration,y+=C.treeBaseDuration,C=C.sibling;r.actualDuration=p,r.treeBaseDuration=y}else for(var T=r.child;T!==null;)s=dn(s,dn(T.lanes,T.childLanes)),f|=T.subtreeFlags,f|=T.flags,T.return=r,T=T.sibling;r.subtreeFlags|=f}return r.childLanes=s,a}function OU(r,a,s){if(vB()&&(a.mode&wn)!==Dt&&(a.flags&Un)===Ft)return qO(a),uh(),a.flags|=tl|Sd|Ka,!1;var f=sS(a);if(s!==null&&s.dehydrated!==null)if(r===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(mB(a),ai(a),(a.mode&Wn)!==Dt){var p=s!==null;if(p){var y=a.child;y!==null&&(a.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(uh(),(a.flags&Un)===Ft&&(a.memoizedState=null),a.flags|=fn,ai(a),(a.mode&Wn)!==Dt){var C=s!==null;if(C){var T=a.child;T!==null&&(a.treeBaseDuration-=T.treeBaseDuration)}}return!1}else return KO(),!0}function b3(r,a,s){var f=a.pendingProps;switch(GE(a),a.tag){case b:case le:case K:case h:case F:case O:case M:case z:case B:case q:return ai(a),null;case v:{var p=a.type;return Kl(p)&&tS(a),ai(a),null}case x:{var y=a.stateNode;if(ph(a),jE(a),O_(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),r===null||r.child===null){var C=sS(a);if(C)Sh(a);else if(r!==null){var T=r.memoizedState;(!T.isDehydrated||(a.flags&tl)!==Ft)&&(a.flags|=Du,KO())}}return ST(r,a),ai(a),null}case N:{T_(a);var D=g4(),U=a.type;if(r!==null&&a.stateNode!=null)g3(r,a,U,f,D),r.ref!==a.ref&&h3(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 ai(a),null}var H=__(),ee=sS(a);if(ee)dB(a,D,H)&&Sh(a);else{var J=ZN(U,f,D,H,a);v3(J,a,!1,!1),a.stateNode=J,JN(J,U,f,D)&&Sh(a)}a.ref!==null&&h3(a)}return ai(a),null}case R:{var ve=f;if(r&&a.stateNode!=null){var ge=r.memoizedProps;y3(r,a,ge,ve)}else{if(typeof ve!="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=g4(),pt=__(),Rt=sS(a);Rt?pB(a)&&Sh(a):a.stateNode=tE(ve,_e,pt,a)}return ai(a),null}case $:{hh(a);var xt=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var In=OU(r,a,xt);if(!In)return a.flags&Ka?a:null}if((a.flags&Un)!==Ft)return a.lanes=s,(a.mode&Wn)!==Dt&&nT(a),a;var En=xt!==null,ce=r!==null&&r.memoizedState!==null;if(En!==ce&&En){var Te=a.child;if(Te.flags|=Pu,(a.mode&wn)!==Dt){var fe=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!Ce);fe||R_(ml.current,S4)?D$():zT()}}var We=a.updateQueue;if(We!==null&&(a.flags|=fn),ai(a),(a.mode&Wn)!==Dt&&En){var mt=a.child;mt!==null&&(a.treeBaseDuration-=mt.treeBaseDuration)}return null}case w:return ph(a),ST(r,a),r===null&&BE(a.stateNode.containerInfo),ai(a),null;case I:var ut=a.type._context;return t_(ut,a),ai(a),null;case me:{var Vt=a.type;return Kl(Vt)&&tS(a),ai(a),null}case Se:{hh(a);var en=a.memoizedState;if(en===null)return ai(a),null;var lr=(a.flags&Un)!==Ft,Gn=en.rendering;if(Gn===null)if(lr)g0(en,!1);else{var ta=M$()&&(r===null||(r.flags&Un)===Ft);if(!ta)for(var Yn=a.child;Yn!==null;){var Hr=NS(Yn);if(Hr!==null){lr=!0,a.flags|=Un,g0(en,!1);var Di=Hr.updateQueue;return Di!==null&&(a.updateQueue=Di,a.flags|=fn),a.subtreeFlags=Ft,MB(a,s),Sf(a,A_(ml.current,o0)),a.child}Yn=Yn.sibling}en.tail!==null&&Or()>U3()&&(a.flags|=Un,lr=!0,g0(en,!1),a.lanes=Hb)}else{if(!lr){var ui=NS(Gn);if(ui!==null){a.flags|=Un,lr=!0;var Xo=ui.updateQueue;if(Xo!==null&&(a.updateQueue=Xo,a.flags|=fn),g0(en,!0),en.tail===null&&en.tailMode==="hidden"&&!Gn.alternate&&!ni())return ai(a),null}else Or()*2-en.renderingStartTime>U3()&&s!==Wi&&(a.flags|=Un,lr=!0,g0(en,!1),a.lanes=Hb)}if(en.isBackwards)Gn.sibling=a.child,a.child=Gn;else{var Xi=en.last;Xi!==null?Xi.sibling=Gn:a.child=Gn,en.last=Gn}}if(en.tail!==null){var Zi=en.tail;en.rendering=Zi,en.tail=Zi.sibling,en.renderingStartTime=Or(),Zi.sibling=null;var Pi=ml.current;return lr?Pi=A_(Pi,o0):Pi=mh(Pi),Sf(a,Pi),Zi}return ai(a),null}case qe:break;case ae:case ue:{FT(a);var sc=a.memoizedState,Rh=sc!==null;if(r!==null){var P0=r.memoizedState,ru=P0!==null;ru!==Rh&&!he&&(a.flags|=Pu)}return!Rh||(a.mode&wn)===Dt?ai(a):Ei(nu,Wi)&&(ai(a),a.subtreeFlags&(jr|fn)&&(a.flags|=Pu)),null}case Ee:return null;case de: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 DU(r,a,s){switch(GE(a),a.tag){case v:{var f=a.type;Kl(f)&&tS(a);var p=a.flags;return p&Ka?(a.flags=p&~Ka|Un,(a.mode&Wn)!==Dt&&nT(a),a):null}case x:{a.stateNode,ph(a),jE(a),O_();var y=a.flags;return(y&Ka)!==Ft&&(y&Un)===Ft?(a.flags=y&~Ka|Un,a):null}case N:return T_(a),null;case $:{hh(a);var C=a.memoizedState;if(C!==null&&C.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.");uh()}var T=a.flags;return T&Ka?(a.flags=T&~Ka|Un,(a.mode&Wn)!==Dt&&nT(a),a):null}case Se:return hh(a),null;case w:return ph(a),null;case I:var D=a.type._context;return t_(D,a),null;case ae:case ue:return FT(a),null;case Ee:return null;default:return null}}function S3(r,a,s){switch(GE(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&tS(a);break}case x:{a.stateNode,ph(a),jE(a),O_();break}case N:{T_(a);break}case w:ph(a);break;case $:hh(a);break;case Se:hh(a);break;case I:var p=a.type._context;t_(p,a);break;case ae:case ue:FT(a);break}}var x3=null;x3=new Set;var YS=!1,ii=!1,PU=typeof WeakSet=="function"?WeakSet:Set,bt=null,xh=null,Ch=null;function MU(r){jc(null,function(){throw r}),zl()}var IU=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&Wn)try{eu(),a.componentWillUnmount()}finally{Jl(r)}else a.componentWillUnmount()};function C3(r,a){try{wf(Ta,r)}catch(s){br(r,a,s)}}function xT(r,a,s){try{IU(r,s)}catch(f){br(r,a,f)}}function LU(r,a,s){try{s.componentDidMount()}catch(f){br(r,a,f)}}function w3(r,a){try{E3(r)}catch(s){br(r,a,s)}}function wh(r,a){var s=r.ref;if(s!==null)if(typeof s=="function"){var f;try{if(gt&&Ht&&r.mode&Wn)try{eu(),f=s(null)}finally{Jl(r)}else f=s(null)}catch(p){br(r,a,p)}typeof f=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",$t(r))}else s.current=null}function qS(r,a,s){try{s()}catch(f){br(r,a,f)}}var N3=!1;function FU(r,a){KN(r.containerInfo),bt=a,zU();var s=N3;return N3=!1,s}function zU(){for(;bt!==null;){var r=bt,a=r.child;(r.subtreeFlags&Lv)!==Ft&&a!==null?(a.return=r,bt=a):BU()}}function BU(){for(;bt!==null;){var r=bt;or(r);try{UU(r)}catch(s){br(r,r.return,s)}_r();var a=r.sibling;if(a!==null){a.return=r.return,bt=a;return}bt=r.return}}function UU(r){var a=r.alternate,s=r.flags;if((s&Du)!==Ft){switch(or(r),r.tag){case h:case F:case K:break;case v:{if(a!==null){var f=a.memoizedProps,p=a.memoizedState,y=r.stateNode;r.type===r.elementType&&!bp&&(y.props!==r.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.",$t(r)||"instance"),y.state!==r.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.",$t(r)||"instance"));var C=y.getSnapshotBeforeUpdate(r.elementType===r.type?f:pl(r.type,f),p);{var T=x3;C===void 0&&!T.has(r.type)&&(T.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",$t(r)))}y.__reactInternalSnapshotBeforeUpdate=C}break}case x:{{var D=r.stateNode;hE(D.containerInfo)}break}case N:case R:case w:case me: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.")}_r()}}function gl(r,a,s){var f=a.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var y=p.next,C=y;do{if((C.tag&r)===r){var T=C.destroy;C.destroy=void 0,T!==void 0&&((r&ri)!==vo?sw(a):(r&Ta)!==vo&&Ib(a),(r&Xl)!==vo&&k0(!0),qS(a,s,T),(r&Xl)!==vo&&k0(!1),(r&ri)!==vo?Wv():(r&Ta)!==vo&&Lb())}C=C.next}while(C!==y)}}function wf(r,a){var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next,y=p;do{if((y.tag&r)===r){(r&ri)!==vo?_d(a):(r&Ta)!==vo&&Mb(a);var C=y.create;(r&Xl)!==vo&&k0(!0),y.destroy=C(),(r&Xl)!==vo&&k0(!1),(r&ri)!==vo?ow():(r&Ta)!==vo&&lw();{var T=y.destroy;if(T!==void 0&&typeof T!="function"){var D=void 0;(y.tag&Ta)!==Ft?D="useLayoutEffect":(y.tag&Xl)!==Ft?D="useInsertionEffect":D="useEffect";var U=void 0;T===null?U=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof T.then=="function"?U=`
|
|
|
|
It looks like you wrote `+D+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
|
|
`+D+`(() => {
|
|
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`:U=" You returned: "+T,u("%s must not return anything besides a function, which is used for clean-up.%s",D,U)}}}y=y.next}while(y!==p)}}function $U(r,a){if((a.flags&fn)!==Ft)switch(a.tag){case z:{var s=a.stateNode.passiveEffectDuration,f=a.memoizedProps,p=f.id,y=f.onPostCommit,C=G4(),T=a.alternate===null?"mount":"update";W4()&&(T="nested-update"),typeof y=="function"&&y(p,T,s,C);var D=a.return;e:for(;D!==null;){switch(D.tag){case x:var U=D.stateNode;U.passiveEffectDuration+=s;break e;case z:var H=D.stateNode;H.passiveEffectDuration+=s;break e}D=D.return}break}}}function jU(r,a,s,f){if((s.flags&xd)!==Ft)switch(s.tag){case h:case F:case K:{if(!ii)if(s.mode&Wn)try{eu(),wf(Ta|_a,s)}finally{Jl(s)}else wf(Ta|_a,s);break}case v:{var p=s.stateNode;if(s.flags&fn&&!ii)if(a===null)if(s.type===s.elementType&&!bp&&(p.props!==s.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.",$t(s)||"instance"),p.state!==s.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.",$t(s)||"instance")),s.mode&Wn)try{eu(),p.componentDidMount()}finally{Jl(s)}else p.componentDidMount();else{var y=s.elementType===s.type?a.memoizedProps:pl(s.type,a.memoizedProps),C=a.memoizedState;if(s.type===s.elementType&&!bp&&(p.props!==s.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.",$t(s)||"instance"),p.state!==s.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.",$t(s)||"instance")),s.mode&Wn)try{eu(),p.componentDidUpdate(y,C,p.__reactInternalSnapshotBeforeUpdate)}finally{Jl(s)}else p.componentDidUpdate(y,C,p.__reactInternalSnapshotBeforeUpdate)}var T=s.updateQueue;T!==null&&(s.type===s.elementType&&!bp&&(p.props!==s.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.",$t(s)||"instance"),p.state!==s.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.",$t(s)||"instance")),i4(s,T,p));break}case x:{var D=s.updateQueue;if(D!==null){var U=null;if(s.child!==null)switch(s.child.tag){case N:U=s.child.stateNode;break;case v:U=s.child.stateNode;break}i4(s,D,U)}break}case N:{var H=s.stateNode;if(a===null&&s.flags&fn){var ee=s.type,J=s.memoizedProps;oE(H,ee,J)}break}case R:break;case w:break;case z:{{var ve=s.memoizedProps,ge=ve.onCommit,_e=ve.onRender,pt=s.stateNode.effectDuration,Rt=G4(),xt=a===null?"mount":"update";W4()&&(xt="nested-update"),typeof _e=="function"&&_e(s.memoizedProps.id,xt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,Rt);{typeof ge=="function"&&ge(s.memoizedProps.id,xt,pt,Rt),B$(s);var In=s.return;e:for(;In!==null;){switch(In.tag){case x:var En=In.stateNode;En.effectDuration+=pt;break e;case z:var ce=In.stateNode;ce.effectDuration+=pt;break e}In=In.return}}}break}case $:{XU(r,s);break}case Se:case me:case qe:case ae:case ue:case de: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.")}ii||s.flags&$a&&E3(s)}function VU(r){switch(r.tag){case h:case F:case K:{if(r.mode&Wn)try{eu(),C3(r,r.return)}finally{Jl(r)}else C3(r,r.return);break}case v:{var a=r.stateNode;typeof a.componentDidMount=="function"&&LU(r,r.return,a),w3(r,r.return);break}case N:{w3(r,r.return);break}}}function HU(r,a){for(var s=null,f=r;;){if(f.tag===N){if(s===null){s=f;try{var p=f.stateNode;a?Wg(p):pE(f.stateNode,f.memoizedProps)}catch(C){br(r,r.return,C)}}}else if(f.tag===R){if(s===null)try{var y=f.stateNode;a?dE(y):mE(y,f.memoizedProps)}catch(C){br(r,r.return,C)}}else if(!((f.tag===ae||f.tag===ue)&&f.memoizedState!==null&&f!==r)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;s===f&&(s=null),f=f.return}s===f&&(s=null),f.sibling.return=f.return,f=f.sibling}}function E3(r){var a=r.ref;if(a!==null){var s=r.stateNode,f;switch(r.tag){case N:f=s;break;default:f=s}if(typeof a=="function"){var p;if(r.mode&Wn)try{eu(),p=a(f)}finally{Jl(r)}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.",$t(r))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",$t(r)),a.current=f}}function WU(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function _3(r){var a=r.alternate;a!==null&&(r.alternate=null,_3(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===N){var s=r.stateNode;s!==null&&Y(s)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function GU(r){for(var a=r.return;a!==null;){if(T3(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 T3(r){return r.tag===N||r.tag===x||r.tag===w}function R3(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||T3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==N&&a.tag!==R&&a.tag!==se;){if(a.flags&jr||a.child===null||a.tag===w)continue e;a.child.return=a,a=a.child}if(!(a.flags&jr))return a.stateNode}}function YU(r){var a=GU(r);switch(a.tag){case N:{var s=a.stateNode;a.flags&bd&&(jg(s),a.flags&=~bd);var f=R3(r);wT(r,f,s);break}case x:case w:{var p=a.stateNode.containerInfo,y=R3(r);CT(r,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 CT(r,a,s){var f=r.tag,p=f===N||f===R;if(p){var y=r.stateNode;a?Vg(s,y,a):lE(s,y)}else if(f!==w){var C=r.child;if(C!==null){CT(C,a,s);for(var T=C.sibling;T!==null;)CT(T,a,s),T=T.sibling}}}function wT(r,a,s){var f=r.tag,p=f===N||f===R;if(p){var y=r.stateNode;a?uE(s,y,a):sE(s,y)}else if(f!==w){var C=r.child;if(C!==null){wT(C,a,s);for(var T=C.sibling;T!==null;)wT(T,a,s),T=T.sibling}}}var oi=null,yl=!1;function qU(r,a,s){{var f=a;e:for(;f!==null;){switch(f.tag){case N:{oi=f.stateNode,yl=!1;break e}case x:{oi=f.stateNode.containerInfo,yl=!0;break e}case w:{oi=f.stateNode.containerInfo,yl=!0;break e}}f=f.return}if(oi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");A3(r,a,s),oi=null,yl=!1}WU(s)}function Nf(r,a,s){for(var f=s.child;f!==null;)A3(r,a,f),f=f.sibling}function A3(r,a,s){switch(aw(s),s.tag){case N:ii||wh(s,a);case R:{{var f=oi,p=yl;oi=null,Nf(r,a,s),oi=f,yl=p,oi!==null&&(yl?fE(oi,s.stateNode):cE(oi,s.stateNode))}return}case se:{oi!==null&&(yl?Ai(oi,s.stateNode):Hg(oi,s.stateNode));return}case w:{{var y=oi,C=yl;oi=s.stateNode.containerInfo,yl=!0,Nf(r,a,s),oi=y,yl=C}return}case h:case F:case q:case K:{if(!ii){var T=s.updateQueue;if(T!==null){var D=T.lastEffect;if(D!==null){var U=D.next,H=U;do{var ee=H,J=ee.destroy,ve=ee.tag;J!==void 0&&((ve&Xl)!==vo?qS(s,a,J):(ve&Ta)!==vo&&(Ib(s),s.mode&Wn?(eu(),qS(s,a,J),Jl(s)):qS(s,a,J),Lb())),H=H.next}while(H!==U)}}}Nf(r,a,s);return}case v:{if(!ii){wh(s,a);var ge=s.stateNode;typeof ge.componentWillUnmount=="function"&&xT(s,a,ge)}Nf(r,a,s);return}case qe:{Nf(r,a,s);return}case ae:{if(s.mode&wn){var _e=ii;ii=_e||s.memoizedState!==null,Nf(r,a,s),ii=_e}else Nf(r,a,s);break}default:{Nf(r,a,s);return}}}function KU(r){r.memoizedState}function XU(r,a){var s=a.memoizedState;if(s===null){var f=a.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&EE(y)}}}}function k3(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var s=r.stateNode;s===null&&(s=r.stateNode=new PU),a.forEach(function(f){var p=G$.bind(null,r,f);if(!s.has(f)){if(s.add(f),Na)if(xh!==null&&Ch!==null)A0(Ch,xh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(p,p)}})}}function ZU(r,a,s){xh=s,Ch=r,or(a),O3(a,r),or(a),xh=null,Ch=null}function bl(r,a,s){var f=a.deletions;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p];try{qU(r,a,y)}catch(D){br(y,a,D)}}var C=$o();if(a.subtreeFlags&Fv)for(var T=a.child;T!==null;)or(T),O3(T,r),T=T.sibling;or(C)}function O3(r,a,s){var f=r.alternate,p=r.flags;switch(r.tag){case h:case F:case q:case K:{if(bl(a,r),tu(r),p&fn){try{gl(Xl|_a,r,r.return),wf(Xl|_a,r)}catch(Vt){br(r,r.return,Vt)}if(r.mode&Wn){try{eu(),gl(Ta|_a,r,r.return)}catch(Vt){br(r,r.return,Vt)}Jl(r)}else try{gl(Ta|_a,r,r.return)}catch(Vt){br(r,r.return,Vt)}}return}case v:{bl(a,r),tu(r),p&$a&&f!==null&&wh(f,f.return);return}case N:{bl(a,r),tu(r),p&$a&&f!==null&&wh(f,f.return);{if(r.flags&bd){var y=r.stateNode;try{jg(y)}catch(Vt){br(r,r.return,Vt)}}if(p&fn){var C=r.stateNode;if(C!=null){var T=r.memoizedProps,D=f!==null?f.memoizedProps:T,U=r.type,H=r.updateQueue;if(r.updateQueue=null,H!==null)try{$g(C,H,U,D,T,r)}catch(Vt){br(r,r.return,Vt)}}}}return}case R:{if(bl(a,r),tu(r),p&fn){if(r.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=r.stateNode,J=r.memoizedProps,ve=f!==null?f.memoizedProps:J;try{Z1(ee,ve,J)}catch(Vt){br(r,r.return,Vt)}}return}case x:{if(bl(a,r),tu(r),p&fn&&f!==null){var ge=f.memoizedState;if(ge.isDehydrated)try{NE(a.containerInfo)}catch(Vt){br(r,r.return,Vt)}}return}case w:{bl(a,r),tu(r);return}case $:{bl(a,r),tu(r);var _e=r.child;if(_e.flags&Pu){var pt=_e.stateNode,Rt=_e.memoizedState,xt=Rt!==null;if(pt.isHidden=xt,xt){var In=_e.alternate!==null&&_e.alternate.memoizedState!==null;In||O$()}}if(p&fn){try{KU(r)}catch(Vt){br(r,r.return,Vt)}k3(r)}return}case ae:{var En=f!==null&&f.memoizedState!==null;if(r.mode&wn){var ce=ii;ii=ce||En,bl(a,r),ii=ce}else bl(a,r);if(tu(r),p&Pu){var Te=r.stateNode,fe=r.memoizedState,We=fe!==null,mt=r;if(Te.isHidden=We,We&&!En&&(mt.mode&wn)!==Dt){bt=mt;for(var ut=mt.child;ut!==null;)bt=ut,JU(ut),ut=ut.sibling}HU(mt,We)}return}case Se:{bl(a,r),tu(r),p&fn&&k3(r);return}case qe:return;default:{bl(a,r),tu(r);return}}}function tu(r){var a=r.flags;if(a&jr){try{YU(r)}catch(s){br(r,r.return,s)}r.flags&=~jr}a&nl&&(r.flags&=~nl)}function QU(r,a,s){xh=s,Ch=a,bt=r,D3(r,a,s),xh=null,Ch=null}function D3(r,a,s){for(var f=(r.mode&wn)!==Dt;bt!==null;){var p=bt,y=p.child;if(p.tag===ae&&f){var C=p.memoizedState!==null,T=C||YS;if(T){NT(r,a,s);continue}else{var D=p.alternate,U=D!==null&&D.memoizedState!==null,H=U||ii,ee=YS,J=ii;YS=T,ii=H,ii&&!J&&(bt=p,e$(p));for(var ve=y;ve!==null;)bt=ve,D3(ve,a,s),ve=ve.sibling;bt=p,YS=ee,ii=J,NT(r,a,s);continue}}(p.subtreeFlags&xd)!==Ft&&y!==null?(y.return=p,bt=y):NT(r,a,s)}}function NT(r,a,s){for(;bt!==null;){var f=bt;if((f.flags&xd)!==Ft){var p=f.alternate;or(f);try{jU(a,p,f,s)}catch(C){br(f,f.return,C)}_r()}if(f===r){bt=null;return}var y=f.sibling;if(y!==null){y.return=f.return,bt=y;return}bt=f.return}}function JU(r){for(;bt!==null;){var a=bt,s=a.child;switch(a.tag){case h:case F:case q:case K:{if(a.mode&Wn)try{eu(),gl(Ta,a,a.return)}finally{Jl(a)}else gl(Ta,a,a.return);break}case v:{wh(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&xT(a,a.return,f);break}case N:{wh(a,a.return);break}case ae:{var p=a.memoizedState!==null;if(p){P3(r);continue}break}}s!==null?(s.return=a,bt=s):P3(r)}}function P3(r){for(;bt!==null;){var a=bt;if(a===r){bt=null;return}var s=a.sibling;if(s!==null){s.return=a.return,bt=s;return}bt=a.return}}function e$(r){for(;bt!==null;){var a=bt,s=a.child;if(a.tag===ae){var f=a.memoizedState!==null;if(f){M3(r);continue}}s!==null?(s.return=a,bt=s):M3(r)}}function M3(r){for(;bt!==null;){var a=bt;or(a);try{VU(a)}catch(f){br(a,a.return,f)}if(_r(),a===r){bt=null;return}var s=a.sibling;if(s!==null){s.return=a.return,bt=s;return}bt=a.return}}function t$(r,a,s,f){bt=a,n$(a,r,s,f)}function n$(r,a,s,f){for(;bt!==null;){var p=bt,y=p.child;(p.subtreeFlags&Hc)!==Ft&&y!==null?(y.return=p,bt=y):r$(r,a,s,f)}}function r$(r,a,s,f){for(;bt!==null;){var p=bt;if((p.flags&Wo)!==Ft){or(p);try{a$(a,p,s,f)}catch(C){br(p,p.return,C)}_r()}if(p===r){bt=null;return}var y=p.sibling;if(y!==null){y.return=p.return,bt=y;return}bt=p.return}}function a$(r,a,s,f){switch(a.tag){case h:case F:case K:{if(a.mode&Wn){tT();try{wf(ri|_a,a)}finally{eT(a)}}else wf(ri|_a,a);break}}}function i$(r){bt=r,o$()}function o$(){for(;bt!==null;){var r=bt,a=r.child;if((bt.flags&Ou)!==Ft){var s=r.deletions;if(s!==null){for(var f=0;f<s.length;f++){var p=s[f];bt=p,u$(p,r)}{var y=r.alternate;if(y!==null){var C=y.child;if(C!==null){y.child=null;do{var T=C.sibling;C.sibling=null,C=T}while(C!==null)}}}bt=r}}(r.subtreeFlags&Hc)!==Ft&&a!==null?(a.return=r,bt=a):s$()}}function s$(){for(;bt!==null;){var r=bt;(r.flags&Wo)!==Ft&&(or(r),l$(r),_r());var a=r.sibling;if(a!==null){a.return=r.return,bt=a;return}bt=r.return}}function l$(r){switch(r.tag){case h:case F:case K:{r.mode&Wn?(tT(),gl(ri|_a,r,r.return),eT(r)):gl(ri|_a,r,r.return);break}}}function u$(r,a){for(;bt!==null;){var s=bt;or(s),f$(s,a),_r();var f=s.child;f!==null?(f.return=s,bt=f):c$(r)}}function c$(r){for(;bt!==null;){var a=bt,s=a.sibling,f=a.return;if(_3(a),a===r){bt=null;return}if(s!==null){s.return=f,bt=s;return}bt=f}}function f$(r,a){switch(r.tag){case h:case F:case K:{r.mode&Wn?(tT(),gl(ri,r,a),eT(r)):gl(ri,r,a);break}}}function d$(r){switch(r.tag){case h:case F:case K:{try{wf(Ta|_a,r)}catch(s){br(r,r.return,s)}break}case v:{var a=r.stateNode;try{a.componentDidMount()}catch(s){br(r,r.return,s)}break}}}function p$(r){switch(r.tag){case h:case F:case K:{try{wf(ri|_a,r)}catch(a){br(r,r.return,a)}break}}}function m$(r){switch(r.tag){case h:case F:case K:{try{gl(Ta|_a,r,r.return)}catch(s){br(r,r.return,s)}break}case v:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&xT(r,r.return,a);break}}}function h$(r){switch(r.tag){case h:case F:case K:try{gl(ri|_a,r,r.return)}catch(a){br(r,r.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var y0=Symbol.for;y0("selector.component"),y0("selector.has_pseudo_class"),y0("selector.role"),y0("selector.test_id"),y0("selector.text")}var v$=[];function g$(){v$.forEach(function(r){return r()})}var y$=n.ReactCurrentActQueue;function b$(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&a!==!1}}function I3(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&y$.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var S$=Math.ceil,ET=n.ReactCurrentDispatcher,_T=n.ReactCurrentOwner,si=n.ReactCurrentBatchConfig,Sl=n.ReactCurrentActQueue,ka=0,L3=1,li=2,Ps=4,rc=0,b0=1,Sp=2,KS=3,S0=4,F3=5,TT=6,Mn=ka,qi=null,Lr=null,Oa=Fe,nu=Fe,RT=Ha(Fe),Da=rc,x0=null,XS=Fe,C0=Fe,ZS=Fe,w0=null,go=null,AT=0,z3=500,B3=1/0,x$=500,ac=null;function N0(){B3=Or()+x$}function U3(){return B3}var QS=!1,kT=null,Nh=null,xp=!1,Ef=null,E0=Fe,OT=[],DT=null,C$=50,_0=0,PT=null,MT=!1,JS=!1,w$=50,Eh=0,ex=null,T0=tr,tx=Fe,$3=!1;function nx(){return qi}function Ki(){return(Mn&(li|Ps))!==ka?Or():(T0!==tr||(T0=Or()),T0)}function _f(r){var a=r.mode;if((a&wn)===Dt)return Gt;if((Mn&li)!==ka&&Oa!==Fe)return Md(Oa);var s=bB()!==yB;if(s){if(si.transition!==null){var f=si.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(r)}return tx===Qr&&(tx=Pd()),tx}var p=fo();if(p!==Qr)return p;var y=nE();return y}function N$(r){var a=r.mode;return(a&wn)===Dt?Gt:Yb()}function Pa(r,a,s,f){q$(),$3&&u("useInsertionEffect must not schedule updates."),MT&&(JS=!0),ju(r,s,f),(Mn&li)!==Fe&&r===qi?Z$(a):(Na&&Mm(r,a,s),Q$(a),r===qi&&((Mn&li)===ka&&(C0=dn(C0,s)),Da===S0&&Tf(r,Oa)),yo(r,f),s===Gt&&Mn===ka&&(a.mode&wn)===Dt&&!Sl.isBatchingLegacy&&(N0(),UO()))}function E$(r,a,s){var f=r.current;f.lanes=a,ju(r,a,s),yo(r,s)}function _$(r){return(Mn&li)!==ka}function yo(r,a){var s=r.callbackNode;Dd(r,a);var f=km(r,r===qi?Oa:Fe);if(f===Fe){s!==null&&rD(s),r.callbackNode=null,r.callbackPriority=Qr;return}var p=ol(f),y=r.callbackPriority;if(y===p&&!(Sl.current!==null&&s!==$T)){s==null&&y!==Gt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&rD(s);var C;if(p===Gt)r.tag===hf?(Sl.isBatchingLegacy!==null&&(Sl.didScheduleLegacyUpdate=!0),tB(H3.bind(null,r))):BO(H3.bind(null,r)),Sl.current!==null?Sl.current.push(vf):aE(function(){(Mn&(li|Ps))===ka&&vf()}),C=null;else{var T;switch(ws(f)){case Qa:T=wd;break;case Cs:T=Uv;break;case Cr:T=ys;break;case Im:T=xm;break;default:T=ys;break}C=jT(T,j3.bind(null,r))}r.callbackPriority=p,r.callbackNode=C}function j3(r,a){if(qB(),T0=tr,tx=Fe,(Mn&(li|Ps))!==ka)throw new Error("Should not already be working.");var s=r.callbackNode,f=oc();if(f&&r.callbackNode!==s)return null;var p=km(r,r===qi?Oa:Fe);if(p===Fe)return null;var y=!Uu(r,p)&&!pw(r,p)&&!a,C=y?L$(r,p):ax(r,p);if(C!==rc){if(C===Sp){var T=Om(r);T!==Fe&&(p=T,C=IT(r,T))}if(C===b0){var D=x0;throw Cp(r,Fe),Tf(r,p),yo(r,Or()),D}if(C===TT)Tf(r,p);else{var U=!Uu(r,p),H=r.current.alternate;if(U&&!R$(H)){if(C=ax(r,p),C===Sp){var ee=Om(r);ee!==Fe&&(p=ee,C=IT(r,ee))}if(C===b0){var J=x0;throw Cp(r,Fe),Tf(r,p),yo(r,Or()),J}}r.finishedWork=H,r.finishedLanes=p,T$(r,C,p)}}return yo(r,Or()),r.callbackNode===s?j3.bind(null,r):null}function IT(r,a){var s=w0;if(ua(r)){var f=Cp(r,a);f.flags|=tl,zE(r.containerInfo)}var p=ax(r,a);if(p!==Sp){var y=go;go=s,y!==null&&V3(y)}return p}function V3(r){go===null?go=r:go.push.apply(go,r)}function T$(r,a,s){switch(a){case rc:case b0:throw new Error("Root did not complete. This is a bug in React.");case Sp:{wp(r,go,ac);break}case KS:{if(Tf(r,s),ng(s)&&!aD()){var f=AT+z3-Or();if(f>10){var p=km(r,Fe);if(p!==Fe)break;var y=r.suspendedLanes;if(!$u(y,s)){Ki(),Fd(r,y);break}r.timeoutHandle=Bg(wp.bind(null,r,go,ac),f);break}}wp(r,go,ac);break}case S0:{if(Tf(r,s),rg(s))break;if(!aD()){var C=Wb(r,s),T=C,D=Or()-T,U=Y$(D)-D;if(U>10){r.timeoutHandle=Bg(wp.bind(null,r,go,ac),U);break}}wp(r,go,ac);break}case F3:{wp(r,go,ac);break}default:throw new Error("Unknown root exit status.")}}function R$(r){for(var a=r;;){if(a.flags&gm){var s=a.updateQueue;if(s!==null){var f=s.stores;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p],C=y.getSnapshot,T=y.value;try{if(!Ja(C(),T))return!1}catch{return!1}}}}var D=a.child;if(a.subtreeFlags&gm&&D!==null){D.return=a,a=D;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function Tf(r,a){a=Id(a,ZS),a=Id(a,C0),ig(r,a)}function H3(r){if(KB(),(Mn&(li|Ps))!==ka)throw new Error("Should not already be working.");oc();var a=km(r,Fe);if(!Ei(a,Gt))return yo(r,Or()),null;var s=ax(r,a);if(r.tag!==hf&&s===Sp){var f=Om(r);f!==Fe&&(a=f,s=IT(r,f))}if(s===b0){var p=x0;throw Cp(r,Fe),Tf(r,a),yo(r,Or()),p}if(s===TT)throw new Error("Root did not complete. This is a bug in React.");var y=r.current.alternate;return r.finishedWork=y,r.finishedLanes=a,wp(r,go,ac),yo(r,Or()),null}function A$(r,a){a!==Fe&&(Pt(r,dn(a,Gt)),yo(r,Or()),(Mn&(li|Ps))===ka&&(N0(),vf()))}function LT(r,a){var s=Mn;Mn|=L3;try{return r(a)}finally{Mn=s,Mn===ka&&!Sl.isBatchingLegacy&&(N0(),UO())}}function k$(r,a,s,f,p){var y=fo(),C=si.transition;try{return si.transition=null,la(Qa),r(a,s,f,p)}finally{la(y),si.transition=C,Mn===ka&&N0()}}function ic(r){Ef!==null&&Ef.tag===hf&&(Mn&(li|Ps))===ka&&oc();var a=Mn;Mn|=L3;var s=si.transition,f=fo();try{return si.transition=null,la(Qa),r?r():void 0}finally{la(f),si.transition=s,Mn=a,(Mn&(li|Ps))===ka&&vf()}}function W3(){return(Mn&(li|Ps))!==ka}function rx(r,a){ki(RT,nu,r),nu=dn(nu,a)}function FT(r){nu=RT.current,Ea(RT,r)}function Cp(r,a){r.finishedWork=null,r.finishedLanes=Fe;var s=r.timeoutHandle;if(s!==Ug&&(r.timeoutHandle=Ug,rE(s)),Lr!==null)for(var f=Lr.return;f!==null;){var p=f.alternate;S3(p,f),f=f.return}qi=r;var y=Np(r.current,null);return Lr=y,Oa=nu=a,Da=rc,x0=null,XS=Fe,C0=Fe,ZS=Fe,w0=null,go=null,wB(),dl.discardPendingWarnings(),y}function G3(r,a){do{var s=Lr;try{if(fS(),C4(),_r(),_T.current=null,s===null||s.return===null){Da=b0,x0=a,Lr=null;return}if(gt&&s.mode&Wn&&VS(s,!0),at)if(Wc(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;Gv(s,f,Oa)}else Fb(s,a,Oa);eU(r,s.return,s,a,Oa),X3(s)}catch(p){a=p,Lr===s&&s!==null?(s=s.return,Lr=s):s=Lr;continue}return}while(!0)}function Y3(){var r=ET.current;return ET.current=zS,r===null?zS:r}function q3(r){ET.current=r}function O$(){AT=Or()}function R0(r){XS=dn(r,XS)}function D$(){Da===rc&&(Da=KS)}function zT(){(Da===rc||Da===KS||Da===Sp)&&(Da=S0),qi!==null&&(ef(XS)||ef(C0))&&Tf(qi,Oa)}function P$(r){Da!==S0&&(Da=Sp),w0===null?w0=[r]:w0.push(r)}function M$(){return Da===rc}function ax(r,a){var s=Mn;Mn|=li;var f=Y3();if(qi!==r||Oa!==a){if(Na){var p=r.memoizedUpdaters;p.size>0&&(A0(r,Oa),p.clear()),jl(r,a)}ac=Kb(),Cp(r,a)}qv(a);do try{I$();break}catch(y){G3(r,y)}while(!0);if(fS(),Mn=s,q3(f),Lr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ub(),qi=null,Oa=Fe,Da}function I$(){for(;Lr!==null;)K3(Lr)}function L$(r,a){var s=Mn;Mn|=li;var f=Y3();if(qi!==r||Oa!==a){if(Na){var p=r.memoizedUpdaters;p.size>0&&(A0(r,Oa),p.clear()),jl(r,a)}ac=Kb(),N0(),Cp(r,a)}qv(a);do try{F$();break}catch(y){G3(r,y)}while(!0);return fS(),q3(f),Mn=s,Lr!==null?(Cm(),rc):(Ub(),qi=null,Oa=Fe,Da)}function F$(){for(;Lr!==null&&!Ob();)K3(Lr)}function K3(r){var a=r.alternate;or(r);var s;(r.mode&Wn)!==Dt?(J_(r),s=BT(a,r,nu),VS(r,!0)):s=BT(a,r,nu),_r(),r.memoizedProps=r.pendingProps,s===null?X3(r):Lr=s,_T.current=null}function X3(r){var a=r;do{var s=a.alternate,f=a.return;if((a.flags&Sd)===Ft){or(a);var p=void 0;if((a.mode&Wn)===Dt?p=b3(s,a,nu):(J_(a),p=b3(s,a,nu),VS(a,!1)),_r(),p!==null){Lr=p;return}}else{var y=DU(s,a);if(y!==null){y.flags&=ew,Lr=y;return}if((a.mode&Wn)!==Dt){VS(a,!1);for(var C=a.actualDuration,T=a.child;T!==null;)C+=T.actualDuration,T=T.sibling;a.actualDuration=C}if(f!==null)f.flags|=Sd,f.subtreeFlags=Ft,f.deletions=null;else{Da=TT,Lr=null;return}}var D=a.sibling;if(D!==null){Lr=D;return}a=f,Lr=a}while(a!==null);Da===rc&&(Da=F3)}function wp(r,a,s){var f=fo(),p=si.transition;try{si.transition=null,la(Qa),z$(r,a,s,f)}finally{si.transition=p,la(f)}return null}function z$(r,a,s,f){do oc();while(Ef!==null);if(K$(),(Mn&(li|Ps))!==ka)throw new Error("Should not already be working.");var p=r.finishedWork,y=r.finishedLanes;if(Nd(y),p===null)return Hv(),null;if(y===Fe&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Fe,p===r.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.");r.callbackNode=null,r.callbackPriority=Qr;var C=dn(p.lanes,p.childLanes);tf(r,C),r===qi&&(qi=null,Lr=null,Oa=Fe),((p.subtreeFlags&Hc)!==Ft||(p.flags&Hc)!==Ft)&&(xp||(xp=!0,DT=s,jT(ys,function(){return oc(),null})));var T=(p.subtreeFlags&(Lv|Fv|xd|Hc))!==Ft,D=(p.flags&(Lv|Fv|xd|Hc))!==Ft;if(T||D){var U=si.transition;si.transition=null;var H=fo();la(Qa);var ee=Mn;Mn|=Ps,_T.current=null,FU(r,p),Y4(),ZU(r,p,y),XN(r.containerInfo),r.current=p,uw(y),QU(p,r,y),Yv(),Db(),Mn=ee,la(H),si.transition=U}else r.current=p,Y4();var J=xp;if(xp?(xp=!1,Ef=r,E0=y):(Eh=0,ex=null),C=r.pendingLanes,C===Fe&&(Nh=null),J||eD(r.current,!1),jv(p.stateNode,f),Na&&r.memoizedUpdaters.clear(),g$(),yo(r,Or()),a!==null)for(var ve=r.onRecoverableError,ge=0;ge<a.length;ge++){var _e=a[ge],pt=_e.stack,Rt=_e.digest;ve(_e.value,{componentStack:pt,digest:Rt})}if(QS){QS=!1;var xt=kT;throw kT=null,xt}return Ei(E0,Gt)&&r.tag!==hf&&oc(),C=r.pendingLanes,Ei(C,Gt)?(YB(),r===PT?_0++:(_0=0,PT=r)):_0=0,vf(),Hv(),null}function oc(){if(Ef!==null){var r=ws(E0),a=hw(Cr,r),s=si.transition,f=fo();try{return si.transition=null,la(a),U$()}finally{la(f),si.transition=s}}return!1}function B$(r){OT.push(r),xp||(xp=!0,jT(ys,function(){return oc(),null}))}function U$(){if(Ef===null)return!1;var r=DT;DT=null;var a=Ef,s=E0;if(Ef=null,E0=Fe,(Mn&(li|Ps))!==ka)throw new Error("Cannot flush passive effects while already rendering.");MT=!0,JS=!1,zb(s);var f=Mn;Mn|=Ps,i$(a.current),t$(a,a.current,s,r);{var p=OT;OT=[];for(var y=0;y<p.length;y++){var C=p[y];$U(a,C)}}Bb(),eD(a.current,!0),Mn=f,vf(),JS?a===ex?Eh++:(Eh=0,ex=a):Eh=0,MT=!1,JS=!1,rw(a);{var T=a.current.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}return!0}function Z3(r){return Nh!==null&&Nh.has(r)}function $$(r){Nh===null?Nh=new Set([r]):Nh.add(r)}function j$(r){QS||(QS=!0,kT=r)}var V$=j$;function Q3(r,a,s){var f=yp(s,a),p=K4(r,f,Gt),y=yf(r,p,Gt),C=Ki();y!==null&&(ju(y,Gt,C),yo(y,C))}function br(r,a,s){if(MU(s),k0(!1),r.tag===x){Q3(r,r,s);return}var f=null;for(f=a;f!==null;){if(f.tag===x){Q3(f,r,s);return}else if(f.tag===v){var p=f.type,y=f.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!Z3(y)){var C=yp(s,r),T=iT(f,C,Gt),D=yf(f,T,Gt),U=Ki();D!==null&&(ju(D,Gt,U),yo(D,U));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`,s)}function H$(r,a,s){var f=r.pingCache;f!==null&&f.delete(a);var p=Ki();Fd(r,s),J$(r),qi===r&&$u(Oa,s)&&(Da===S0||Da===KS&&ng(Oa)&&Or()-AT<z3?Cp(r,Fe):ZS=dn(ZS,s)),yo(r,p)}function J3(r,a){a===Qr&&(a=N$(r));var s=Ki(),f=ho(r,a);f!==null&&(ju(f,a,s),yo(f,s))}function W$(r){var a=r.memoizedState,s=Qr;a!==null&&(s=a.retryLane),J3(r,s)}function G$(r,a){var s=Qr,f;switch(r.tag){case $:f=r.stateNode;var p=r.memoizedState;p!==null&&(s=p.retryLane);break;case Se:f=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),J3(r,s)}function Y$(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:S$(r/1960)*1960}function q$(){if(_0>C$)throw _0=0,PT=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.");Eh>w$&&(Eh=0,ex=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 K$(){dl.flushLegacyContextWarning(),dl.flushPendingUnsafeLifecycleWarnings()}function eD(r,a){or(r),ix(r,Zr,m$),a&&ix(r,ym,h$),ix(r,Zr,d$),a&&ix(r,ym,p$),_r()}function ix(r,a,s){for(var f=r,p=null;f!==null;){var y=f.subtreeFlags&a;f!==p&&f.child!==null&&y!==Ft?f=f.child:((f.flags&a)!==Ft&&s(f),f.sibling!==null?f=f.sibling:f=p=f.return)}}var ox=null;function tD(r){{if((Mn&li)!==ka||!(r.mode&wn))return;var a=r.tag;if(a!==b&&a!==x&&a!==v&&a!==h&&a!==F&&a!==q&&a!==K)return;var s=$t(r)||"ReactComponent";if(ox!==null){if(ox.has(s))return;ox.add(s)}else ox=new Set([s]);var f=xr;try{or(r),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?or(r):_r()}}}var BT;{var X$=null;BT=function(r,a,s){var f=uD(X$,a);try{return m3(r,a,s)}catch(y){if(uB()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(fS(),C4(),S3(r,a),uD(a,f),a.mode&Wn&&J_(a),jc(null,m3,null,r,a,s),L()){var p=zl();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var nD=!1,UT;UT=new Set;function Z$(r){if(Ui&&!HB())switch(r.tag){case h:case F:case K:{var a=Lr&&$t(Lr)||"Unknown",s=a;if(!UT.has(s)){UT.add(s);var f=$t(r)||"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:{nD||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),nD=!0);break}}}function A0(r,a){if(Na){var s=r.memoizedUpdaters;s.forEach(function(f){Mm(r,f,a)})}}var $T={};function jT(r,a){{var s=Sl.current;return s!==null?(s.push(a),$T):ji(r,a)}}function rD(r){if(r!==$T)return tw(r)}function aD(){return Sl.current!==null}function Q$(r){{if(r.mode&wn){if(!I3())return}else if(!b$()||Mn!==ka||r.tag!==h&&r.tag!==F&&r.tag!==K)return;if(Sl.current===null){var a=xr;try{or(r),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`,$t(r))}finally{a?or(r):_r()}}}}function J$(r){r.tag!==hf&&I3()&&Sl.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 k0(r){$3=r}var Ms=null,_h=null,ej=function(r){Ms=r};function Th(r){{if(Ms===null)return r;var a=Ms(r);return a===void 0?r:a.current}}function VT(r){return Th(r)}function HT(r){{if(Ms===null)return r;var a=Ms(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var s=Th(r.render);if(r.render!==s){var f={$$typeof:nt,render:s};return r.displayName!==void 0&&(f.displayName=r.displayName),f}}return r}return a.current}}function iD(r,a){{if(Ms===null)return!1;var s=r.elementType,f=a.type,p=!1,y=typeof f=="object"&&f!==null?f.$$typeof:null;switch(r.tag){case v:{typeof f=="function"&&(p=!0);break}case h:{(typeof f=="function"||y===ln)&&(p=!0);break}case F:{(y===nt||y===ln)&&(p=!0);break}case q:case K:{(y===Bn||y===ln)&&(p=!0);break}default:return!1}if(p){var C=Ms(s);if(C!==void 0&&C===Ms(f))return!0}return!1}}function oD(r){{if(Ms===null||typeof WeakSet!="function")return;_h===null&&(_h=new WeakSet),_h.add(r)}}var tj=function(r,a){{if(Ms===null)return;var s=a.staleFamilies,f=a.updatedFamilies;oc(),ic(function(){WT(r.current,f,s)})}},nj=function(r,a){{if(r.context!==qo)return;oc(),ic(function(){O0(a,r,null,null)})}};function WT(r,a,s){{var f=r.alternate,p=r.child,y=r.sibling,C=r.tag,T=r.type,D=null;switch(C){case h:case K:case v:D=T;break;case F:D=T.render;break}if(Ms===null)throw new Error("Expected resolveFamily to be set during hot reload.");var U=!1,H=!1;if(D!==null){var ee=Ms(D);ee!==void 0&&(s.has(ee)?H=!0:a.has(ee)&&(C===v?H=!0:U=!0))}if(_h!==null&&(_h.has(r)||f!==null&&_h.has(f))&&(H=!0),H&&(r._debugNeedsRemount=!0),H||U){var J=ho(r,Gt);J!==null&&Pa(J,r,Gt,tr)}p!==null&&!H&&WT(p,a,s),y!==null&&WT(y,a,s)}}var rj=function(r,a){{var s=new Set,f=new Set(a.map(function(p){return p.current}));return GT(r.current,f,s),s}};function GT(r,a,s){{var f=r.child,p=r.sibling,y=r.tag,C=r.type,T=null;switch(y){case h:case K:case v:T=C;break;case F:T=C.render;break}var D=!1;T!==null&&a.has(T)&&(D=!0),D?aj(r,s):f!==null&>(f,a,s),p!==null&>(p,a,s)}}function aj(r,a){{var s=ij(r,a);if(s)return;for(var f=r;;){switch(f.tag){case N:a.add(f.stateNode);return;case w: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 ij(r,a){for(var s=r,f=!1;;){if(s.tag===N)f=!0,a.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)return f;for(;s.sibling===null;){if(s.return===null||s.return===r)return f;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var YT;{YT=!1;try{var sD=Object.preventExtensions({})}catch{YT=!0}}function oj(r,a,s,f){this.tag=r,this.key=s,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=Ft,this.subtreeFlags=Ft,this.deletions=null,this.lanes=Fe,this.childLanes=Fe,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,!YT&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ko=function(r,a,s,f){return new oj(r,a,s,f)};function qT(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function sj(r){return typeof r=="function"&&!qT(r)&&r.defaultProps===void 0}function lj(r){if(typeof r=="function")return qT(r)?v:h;if(r!=null){var a=r.$$typeof;if(a===nt)return F;if(a===Bn)return q}return b}function Np(r,a){var s=r.alternate;s===null?(s=Ko(r.tag,a,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s._debugSource=r._debugSource,s._debugOwner=r._debugOwner,s._debugHookTypes=r._debugHookTypes,s.alternate=r,r.alternate=s):(s.pendingProps=a,s.type=r.type,s.flags=Ft,s.subtreeFlags=Ft,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=r.flags&vs,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue;var f=r.dependencies;switch(s.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.selfBaseDuration=r.selfBaseDuration,s.treeBaseDuration=r.treeBaseDuration,s._debugNeedsRemount=r._debugNeedsRemount,s.tag){case b:case h:case K:s.type=Th(r.type);break;case v:s.type=VT(r.type);break;case F:s.type=HT(r.type);break}return s}function uj(r,a){r.flags&=vs|jr;var s=r.alternate;if(s===null)r.childLanes=Fe,r.lanes=a,r.child=null,r.subtreeFlags=Ft,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=Ft,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type;var f=s.dependencies;r.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},r.selfBaseDuration=s.selfBaseDuration,r.treeBaseDuration=s.treeBaseDuration}return r}function cj(r,a,s){var f;return r===rS?(f=wn,a===!0&&(f|=Ir,f|=co)):f=Dt,Na&&(f|=Wn),Ko(x,null,null,f)}function KT(r,a,s,f,p,y){var C=b,T=r;if(typeof r=="function")qT(r)?(C=v,T=VT(T)):T=Th(T);else if(typeof r=="string")C=N;else{e:switch(r){case Ue:return Rf(s.children,p,y,a);case Ke:C=M,p|=Ir,(p&wn)!==Dt&&(p|=co);break;case Ct:return fj(s,p,y,a);case qt:return dj(s,p,y,a);case Vn:return pj(s,p,y,a);case Po:return lD(s,p,y,a);case ya:case Ur:case oo:case Nu:case vi:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case on:C=I;break e;case Cn:C=B;break e;case nt:C=F,T=HT(T);break e;case Bn:C=q;break e;case ln:C=le,T=null;break e}var D="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(D+=" 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 U=f?$t(f):null;U&&(D+=`
|
|
|
|
Check the render method of \``+U+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+D))}}}var H=Ko(C,s,a,p);return H.elementType=r,H.type=T,H.lanes=y,H._debugOwner=f,H}function XT(r,a,s){var f=null;f=r._owner;var p=r.type,y=r.key,C=r.props,T=KT(p,y,C,f,a,s);return T._debugSource=r._source,T._debugOwner=r._owner,T}function Rf(r,a,s,f){var p=Ko(O,r,f,a);return p.lanes=s,p}function fj(r,a,s,f){typeof r.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var p=Ko(z,r,f,a|Wn);return p.elementType=Ct,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function dj(r,a,s,f){var p=Ko($,r,f,a);return p.elementType=qt,p.lanes=s,p}function pj(r,a,s,f){var p=Ko(Se,r,f,a);return p.elementType=Vn,p.lanes=s,p}function lD(r,a,s,f){var p=Ko(ae,r,f,a);p.elementType=Po,p.lanes=s;var y={isHidden:!1};return p.stateNode=y,p}function ZT(r,a,s){var f=Ko(R,r,null,a);return f.lanes=s,f}function mj(){var r=Ko(N,null,null,Dt);return r.elementType="DELETED",r}function hj(r){var a=Ko(se,null,null,Dt);return a.stateNode=r,a}function QT(r,a,s){var f=r.children!==null?r.children:[],p=Ko(w,f,r.key,a);return p.lanes=s,p.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},p}function uD(r,a){return r===null&&(r=Ko(b,null,null,Dt)),r.tag=a.tag,r.key=a.key,r.elementType=a.elementType,r.type=a.type,r.stateNode=a.stateNode,r.return=a.return,r.child=a.child,r.sibling=a.sibling,r.index=a.index,r.ref=a.ref,r.pendingProps=a.pendingProps,r.memoizedProps=a.memoizedProps,r.updateQueue=a.updateQueue,r.memoizedState=a.memoizedState,r.dependencies=a.dependencies,r.mode=a.mode,r.flags=a.flags,r.subtreeFlags=a.subtreeFlags,r.deletions=a.deletions,r.lanes=a.lanes,r.childLanes=a.childLanes,r.alternate=a.alternate,r.actualDuration=a.actualDuration,r.actualStartTime=a.actualStartTime,r.selfBaseDuration=a.selfBaseDuration,r.treeBaseDuration=a.treeBaseDuration,r._debugSource=a._debugSource,r._debugOwner=a._debugOwner,r._debugNeedsRemount=a._debugNeedsRemount,r._debugHookTypes=a._debugHookTypes,r}function vj(r,a,s,f,p){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ug,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Qr,this.eventTimes=Ld(Fe),this.expirationTimes=Ld(tr),this.pendingLanes=Fe,this.suspendedLanes=Fe,this.pingedLanes=Fe,this.expiredLanes=Fe,this.mutableReadLanes=Fe,this.finishedLanes=Fe,this.entangledLanes=Fe,this.entanglements=Ld(Fe),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],C=0;C<Zv;C++)y.push(new Set)}switch(a){case rS:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case hf:this._debugRootType=s?"hydrate()":"render()";break}}function cD(r,a,s,f,p,y,C,T,D,U){var H=new vj(r,a,s,T,D),ee=cj(a,y);H.current=ee,ee.stateNode=H;{var J={element:f,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};ee.memoizedState=J}return o_(ee),H}var JT="18.2.0";function gj(r,a,s){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return $n(f),{$$typeof:X,key:f==null?null:""+f,children:r,containerInfo:a,implementation:s}}var eR,tR;eR=!1,tR={};function fD(r){if(!r)return qo;var a=el(r),s=eB(a);if(a.tag===v){var f=a.type;if(Kl(f))return FO(a,f,s)}return s}function yj(r,a){{var s=el(r);if(s===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var p=kb(s);if(p===null)return null;if(p.mode&Ir){var y=$t(s)||"Component";if(!tR[y]){tR[y]=!0;var C=xr;try{or(p),s.mode&Ir?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{C?or(C):_r()}}}return p.stateNode}}function dD(r,a,s,f,p,y,C,T){var D=!1,U=null;return cD(r,a,D,U,s,f,p,y,C)}function pD(r,a,s,f,p,y,C,T,D,U){var H=!0,ee=cD(s,f,H,r,p,y,C,T,D);ee.context=fD(null);var J=ee.current,ve=Ki(),ge=_f(J),_e=tc(ve,ge);return _e.callback=a??null,yf(J,_e,ge),E$(ee,ge,ve),ee}function O0(r,a,s,f){Xa(a,r);var p=a.current,y=Ki(),C=_f(p);$b(C);var T=fD(s);a.context===null?a.context=T:a.pendingContext=T,Ui&&xr!==null&&!eR&&(eR=!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.`,$t(xr)||"Unknown"));var D=tc(y,C);D.payload={element:r},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),D.callback=f);var U=yf(p,D,C);return U!==null&&(Pa(U,p,C,y),vS(U,p,C)),C}function sx(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case N:return a.child.stateNode;default:return a.child.stateNode}}function bj(r){switch(r.tag){case x:{var a=r.stateNode;if(ua(a)){var s=dw(a);A$(a,s)}break}case $:{ic(function(){var p=ho(r,Gt);if(p!==null){var y=Ki();Pa(p,r,Gt,y)}});var f=Gt;nR(r,f);break}}}function mD(r,a){var s=r.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=sl(s.retryLane,a))}function nR(r,a){mD(r,a);var s=r.alternate;s&&mD(s,a)}function Sj(r){if(r.tag===$){var a=Zc,s=ho(r,a);if(s!==null){var f=Ki();Pa(s,r,a,f)}nR(r,a)}}function xj(r){if(r.tag===$){var a=_f(r),s=ho(r,a);if(s!==null){var f=Ki();Pa(s,r,a,f)}nR(r,a)}}function hD(r){var a=Bv(r);return a===null?null:a.stateNode}var vD=function(r){return null};function Cj(r){return vD(r)}var gD=function(r){return!1};function wj(r){return gD(r)}var yD=null,bD=null,SD=null,xD=null,CD=null,wD=null,ND=null,ED=null,_D=null;{var TD=function(r,a,s){var f=a[s],p=Bt(r)?r.slice():Jt({},r);return s+1===a.length?(Bt(p)?p.splice(f,1):delete p[f],p):(p[f]=TD(r[f],a,s+1),p)},RD=function(r,a){return TD(r,a,0)},AD=function(r,a,s,f){var p=a[f],y=Bt(r)?r.slice():Jt({},r);if(f+1===a.length){var C=s[f];y[C]=y[p],Bt(y)?y.splice(p,1):delete y[p]}else y[p]=AD(r[p],a,s,f+1);return y},kD=function(r,a,s){if(a.length!==s.length){c("copyWithRename() expects paths of the same length");return}else for(var f=0;f<s.length-1;f++)if(a[f]!==s[f]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return AD(r,a,s,0)},OD=function(r,a,s,f){if(s>=a.length)return f;var p=a[s],y=Bt(r)?r.slice():Jt({},r);return y[p]=OD(r[p],a,s+1,f),y},DD=function(r,a,s){return OD(r,a,0,s)},rR=function(r,a){for(var s=r.memoizedState;s!==null&&a>0;)s=s.next,a--;return s};yD=function(r,a,s,f){var p=rR(r,a);if(p!==null){var y=DD(p.memoizedState,s,f);p.memoizedState=y,p.baseState=y,r.memoizedProps=Jt({},r.memoizedProps);var C=ho(r,Gt);C!==null&&Pa(C,r,Gt,tr)}},bD=function(r,a,s){var f=rR(r,a);if(f!==null){var p=RD(f.memoizedState,s);f.memoizedState=p,f.baseState=p,r.memoizedProps=Jt({},r.memoizedProps);var y=ho(r,Gt);y!==null&&Pa(y,r,Gt,tr)}},SD=function(r,a,s,f){var p=rR(r,a);if(p!==null){var y=kD(p.memoizedState,s,f);p.memoizedState=y,p.baseState=y,r.memoizedProps=Jt({},r.memoizedProps);var C=ho(r,Gt);C!==null&&Pa(C,r,Gt,tr)}},xD=function(r,a,s){r.pendingProps=DD(r.memoizedProps,a,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=ho(r,Gt);f!==null&&Pa(f,r,Gt,tr)},CD=function(r,a){r.pendingProps=RD(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var s=ho(r,Gt);s!==null&&Pa(s,r,Gt,tr)},wD=function(r,a,s){r.pendingProps=kD(r.memoizedProps,a,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=ho(r,Gt);f!==null&&Pa(f,r,Gt,tr)},ND=function(r){var a=ho(r,Gt);a!==null&&Pa(a,r,Gt,tr)},ED=function(r){vD=r},_D=function(r){gD=r}}function Nj(r){var a=kb(r);return a===null?null:a.stateNode}function Ej(r){return null}function _j(){return xr}function Tj(r){var a=r.findFiberByHostInstance,s=n.ReactCurrentDispatcher;return Pb({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:yD,overrideHookStateDeletePath:bD,overrideHookStateRenamePath:SD,overrideProps:xD,overridePropsDeletePath:CD,overridePropsRenamePath:wD,setErrorHandler:ED,setSuspenseHandler:_D,scheduleUpdate:ND,currentDispatcherRef:s,findHostInstanceByFiber:Nj,findFiberByHostInstance:a||Ej,findHostInstancesForRefresh:rj,scheduleRefresh:tj,scheduleRoot:nj,setRefreshHandler:ej,getCurrentFiber:_j,reconcilerVersion:JT})}var PD=typeof reportError=="function"?reportError:function(r){console.error(r)};function aR(r){this._internalRoot=r}lx.prototype.render=aR.prototype.render=function(r){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()."):ux(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 s=a.containerInfo;if(s.nodeType!==Hn){var f=hD(a.current);f&&f.parentNode!==s&&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.")}}O0(r,a,null,null)},lx.prototype.unmount=aR.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 r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;W3()&&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."),ic(function(){O0(null,r,null,null)}),De(a)}};function Rj(r,a){if(!ux(r))throw new Error("createRoot(...): Target container is not a DOM element.");MD(r);var s=!1,f=!1,p="",y=PD;a!=null&&(a.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===La&&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&&(s=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var C=dD(r,rS,null,s,f,p,y);oe(C.current,r);var T=r.nodeType===Hn?r.parentNode:r;return ep(T),new aR(C)}function lx(r){this._internalRoot=r}function Aj(r){r&&n1(r)}lx.prototype.unstable_scheduleHydration=Aj;function kj(r,a,s){if(!ux(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");MD(r),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=s??null,p=s!=null&&s.hydratedSources||null,y=!1,C=!1,T="",D=PD;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(T=s.identifierPrefix),s.onRecoverableError!==void 0&&(D=s.onRecoverableError));var U=pD(a,null,r,rS,f,y,C,T,D);if(oe(U.current,r),ep(r),p)for(var H=0;H<p.length;H++){var ee=p[H];zB(U,ee)}return new lx(U)}function ux(r){return!!(r&&(r.nodeType===Ni||r.nodeType===Vo||r.nodeType===Ru||!Me))}function D0(r){return!!(r&&(r.nodeType===Ni||r.nodeType===Vo||r.nodeType===Ru||r.nodeType===Hn&&r.nodeValue===" react-mount-point-unstable "))}function MD(r){r.nodeType===Ni&&r.tagName&&r.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(r)&&(r._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 Oj=n.ReactCurrentOwner,ID;ID=function(r){if(r._reactRootContainer&&r.nodeType!==Hn){var a=hD(r._reactRootContainer.current);a&&a.parentNode!==r&&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 s=!!r._reactRootContainer,f=iR(r),p=!!(f&&Qe(f));p&&!s&&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."),r.nodeType===Ni&&r.tagName&&r.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 iR(r){return r?r.nodeType===Vo?r.documentElement:r.firstChild:null}function LD(){}function Dj(r,a,s,f,p){if(p){if(typeof f=="function"){var y=f;f=function(){var J=sx(C);y.call(J)}}var C=pD(a,f,r,hf,null,!1,!1,"",LD);r._reactRootContainer=C,oe(C.current,r);var T=r.nodeType===Hn?r.parentNode:r;return ep(T),ic(),C}else{for(var D;D=r.lastChild;)r.removeChild(D);if(typeof f=="function"){var U=f;f=function(){var J=sx(H);U.call(J)}}var H=dD(r,hf,null,!1,!1,"",LD);r._reactRootContainer=H,oe(H.current,r);var ee=r.nodeType===Hn?r.parentNode:r;return ep(ee),ic(function(){O0(a,H,s,f)}),H}}function Pj(r,a){r!==null&&typeof r!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r)}function cx(r,a,s,f,p){ID(s),Pj(p===void 0?null:p,"render");var y=s._reactRootContainer,C;if(!y)C=Dj(s,a,r,p,f);else{if(C=y,typeof p=="function"){var T=p;p=function(){var D=sx(C);T.call(D)}}O0(a,C,r,p)}return sx(C)}function Mj(r){{var a=Oj.current;if(a!==null&&a.stateNode!==null){var s=a.stateNode._warnedAboutRefsInRender;s||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.",un(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===Ni?r:yj(r,"findDOMNode")}function Ij(r,a,s){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"),!D0(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 cx(null,r,a,!0,s)}function Lj(r,a,s){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"),!D0(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 cx(null,r,a,!1,s)}function Fj(r,a,s,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"),!D0(s))throw new Error("Target container is not a DOM element.");if(r==null||!uo(r))throw new Error("parentComponent must be a valid React Component");return cx(r,a,s,!1,f)}function zj(r){if(!D0(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Ae(r)&&r._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(r._reactRootContainer){{var s=iR(r),f=s&&!Qe(s);f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return ic(function(){cx(null,null,r,!1,function(){r._reactRootContainer=null,De(r)})}),!0}else{{var p=iR(r),y=!!(p&&Qe(p)),C=r.nodeType===Ni&&D0(r.parentNode)&&!!r.parentNode._reactRootContainer;y&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",C?"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}}vw(bj),gw(Sj),Zb(xj),yw(fo),bw(Xb),(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"),kv(G1),Nb(LT,k$,ic);function Bj(r,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ux(a))throw new Error("Target container is not a DOM element.");return gj(r,a,null,s)}function Uj(r,a,s,f){return Fj(r,a,s,f)}var oR={usingClientEntryPoint:!1,Events:[Qe,vt,Mt,bb,xb,LT]};function $j(r,a){return oR.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),Rj(r,a)}function jj(r,a,s){return oR.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),kj(r,a,s)}function Vj(r){return W3()&&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."),ic(r)}var Hj=Tj({findFiberByHostInstance:Le,bundleType:1,version:JT,rendererPackageName:"react-dom"});if(!Hj&&Wt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var FD=window.location.protocol;/^(https?|file):$/.test(FD)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(FD==="file:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Qo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oR,Qo.createPortal=Bj,Qo.createRoot=$j,Qo.findDOMNode=Mj,Qo.flushSync=Vj,Qo.hydrate=Ij,Qo.hydrateRoot=jj,Qo.render=Lj,Qo.unmountComponentAtNode=zj,Qo.unstable_batchedUpdates=LT,Qo.unstable_renderSubtreeIntoContainer=Uj,Qo.version=JT,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=Qo})(By);var sR=By.exports;{var fx=sR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t5.createRoot=function(e,t){fx.usingClientEntryPoint=!0;try{return sR.createRoot(e,t)}finally{fx.usingClientEntryPoint=!1}},t5.hydrateRoot=function(e,t,n){fx.usingClientEntryPoint=!0;try{return sR.hydrateRoot(e,t,n)}finally{fx.usingClientEntryPoint=!1}}}var Sc=Boolean(globalThis?.document)?k.exports.useLayoutEffect:k.exports.useEffect,UA={exports:{}},n5={};/**
|
|
* @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=k.exports,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),R=Symbol.iterator,O="@@iterator";function M(X){if(X===null||typeof X!="object")return null;var Ue=R&&X[R]||X[O];return typeof Ue=="function"?Ue:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(X){{for(var Ue=arguments.length,Ke=new Array(Ue>1?Ue-1:0),Ct=1;Ct<Ue;Ct++)Ke[Ct-1]=arguments[Ct];F("error",X,Ke)}}function F(X,Ue,Ke){{var Ct=B.ReactDebugCurrentFrame,on=Ct.getStackAddendum();on!==""&&(Ue+="%s",Ke=Ke.concat([on]));var Cn=Ke.map(function(nt){return String(nt)});Cn.unshift("Warning: "+Ue),Function.prototype.apply.call(console[X],console,Cn)}}var z=!1,$=!1,q=!1,K=!1,le=!1,me;me=Symbol.for("react.module.reference");function se(X){return!!(typeof X=="string"||typeof X=="function"||X===i||X===c||le||X===o||X===v||X===b||K||X===N||z||$||q||typeof X=="object"&&X!==null&&(X.$$typeof===w||X.$$typeof===x||X.$$typeof===u||X.$$typeof===m||X.$$typeof===h||X.$$typeof===me||X.getModuleId!==void 0))}function Se(X,Ue,Ke){var Ct=X.displayName;if(Ct)return Ct;var on=Ue.displayName||Ue.name||"";return on!==""?Ke+"("+on+")":Ke}function qe(X){return X.displayName||"Context"}function ae(X){if(X==null)return null;if(typeof X.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof X=="function")return X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){case i:return"Fragment";case n:return"Portal";case c:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof X=="object")switch(X.$$typeof){case m:var Ue=X;return qe(Ue)+".Consumer";case u:var Ke=X;return qe(Ke._context)+".Provider";case h:return Se(X,X.render,"ForwardRef");case x:var Ct=X.displayName||null;return Ct!==null?Ct:ae(X.type)||"Memo";case w:{var on=X,Cn=on._payload,nt=on._init;try{return ae(nt(Cn))}catch{return null}}}return null}var ue=Object.assign,Ee=0,de,ie,xe,Ne,he,Ce,Me;function Ie(){}Ie.__reactDisabledLog=!0;function Ye(){{if(Ee===0){de=console.log,ie=console.info,xe=console.warn,Ne=console.error,he=console.group,Ce=console.groupCollapsed,Me=console.groupEnd;var X={configurable:!0,enumerable:!0,value:Ie,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}Ee++}}function at(){{if(Ee--,Ee===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},X,{value:de}),info:ue({},X,{value:ie}),warn:ue({},X,{value:xe}),error:ue({},X,{value:Ne}),group:ue({},X,{value:he}),groupCollapsed:ue({},X,{value:Ce}),groupEnd:ue({},X,{value:Me})})}Ee<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gt=B.ReactCurrentDispatcher,Ht;function Ze(X,Ue,Ke){{if(Ht===void 0)try{throw Error()}catch(on){var Ct=on.stack.trim().match(/\n( *(at )?)/);Ht=Ct&&Ct[1]||""}return`
|
|
`+Ht+X}}var ct=!1,wt;{var zt=typeof WeakMap=="function"?WeakMap:Map;wt=new zt}function Ge(X,Ue){if(!X||ct)return"";{var Ke=wt.get(X);if(Ke!==void 0)return Ke}var Ct;ct=!0;var on=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Cn;Cn=gt.current,gt.current=null,Ye();try{if(Ue){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(ya){Ct=ya}Reflect.construct(X,[],nt)}else{try{nt.call()}catch(ya){Ct=ya}X.call(nt.prototype)}}else{try{throw Error()}catch(ya){Ct=ya}X()}}catch(ya){if(ya&&Ct&&typeof ya.stack=="string"){for(var qt=ya.stack.split(`
|
|
`),Vn=Ct.stack.split(`
|
|
`),Bn=qt.length-1,ln=Vn.length-1;Bn>=1&&ln>=0&&qt[Bn]!==Vn[ln];)ln--;for(;Bn>=1&&ln>=0;Bn--,ln--)if(qt[Bn]!==Vn[ln]){if(Bn!==1||ln!==1)do if(Bn--,ln--,ln<0||qt[Bn]!==Vn[ln]){var Ur=`
|
|
`+qt[Bn].replace(" at new "," at ");return X.displayName&&Ur.includes("<anonymous>")&&(Ur=Ur.replace("<anonymous>",X.displayName)),typeof X=="function"&&wt.set(X,Ur),Ur}while(Bn>=1&&ln>=0);break}}}finally{ct=!1,gt.current=Cn,at(),Error.prepareStackTrace=on}var vi=X?X.displayName||X.name:"",Po=vi?Ze(vi):"";return typeof X=="function"&&wt.set(X,Po),Po}function Wt(X,Ue,Ke){return Ge(X,!1)}function ye(X){var Ue=X.prototype;return!!(Ue&&Ue.isReactComponent)}function et(X,Ue,Ke){if(X==null)return"";if(typeof X=="function")return Ge(X,ye(X));if(typeof X=="string")return Ze(X);switch(X){case v:return Ze("Suspense");case b:return Ze("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case h:return Wt(X.render);case x:return et(X.type,Ue,Ke);case w:{var Ct=X,on=Ct._payload,Cn=Ct._init;try{return et(Cn(on),Ue,Ke)}catch{}}}return""}var Nt=Object.prototype.hasOwnProperty,lt={},xn=B.ReactDebugCurrentFrame;function $n(X){if(X){var Ue=X._owner,Ke=et(X.type,X._source,Ue?Ue.type:null);xn.setExtraStackFrame(Ke)}else xn.setExtraStackFrame(null)}function Lt(X,Ue,Ke,Ct,on){{var Cn=Function.call.bind(Nt);for(var nt in X)if(Cn(X,nt)){var qt=void 0;try{if(typeof X[nt]!="function"){var Vn=Error((Ct||"React class")+": "+Ke+" type `"+nt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[nt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Vn.name="Invariant Violation",Vn}qt=X[nt](Ue,nt,Ct,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bn){qt=Bn}qt&&!(qt instanceof Error)&&($n(on),I("%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).",Ct||"React class",Ke,nt,typeof qt),$n(null)),qt instanceof Error&&!(qt.message in lt)&&(lt[qt.message]=!0,$n(on),I("Failed %s type: %s",Ke,qt.message),$n(null))}}}var an=Array.isArray;function On(X){return an(X)}function gn(X){{var Ue=typeof Symbol=="function"&&Symbol.toStringTag,Ke=Ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return Ke}}function He(X){try{return Je(X),!1}catch{return!0}}function Je(X){return""+X}function tn(X){if(He(X))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gn(X)),Je(X)}var kt=B.ReactCurrentOwner,Oe={key:!0,ref:!0,__self:!0,__source:!0},Yt,_n,je;je={};function it(X){if(Nt.call(X,"ref")){var Ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(Ue&&Ue.isReactWarning)return!1}return X.ref!==void 0}function _t(X){if(Nt.call(X,"key")){var Ue=Object.getOwnPropertyDescriptor(X,"key").get;if(Ue&&Ue.isReactWarning)return!1}return X.key!==void 0}function hn(X,Ue){if(typeof X.ref=="string"&&kt.current&&Ue&&kt.current.stateNode!==Ue){var Ke=ae(kt.current.type);je[Ke]||(I('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',ae(kt.current.type),X.ref),je[Ke]=!0)}}function Qt(X,Ue){{var Ke=function(){Yt||(Yt=!0,I("%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)",Ue))};Ke.isReactWarning=!0,Object.defineProperty(X,"key",{get:Ke,configurable:!0})}}function Tn(X,Ue){{var Ke=function(){_n||(_n=!0,I("%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)",Ue))};Ke.isReactWarning=!0,Object.defineProperty(X,"ref",{get:Ke,configurable:!0})}}var Ln=function(X,Ue,Ke,Ct,on,Cn,nt){var qt={$$typeof:t,type:X,key:Ue,ref:Ke,props:nt,_owner:Cn};return qt._store={},Object.defineProperty(qt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ct}),Object.defineProperty(qt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:on}),Object.freeze&&(Object.freeze(qt.props),Object.freeze(qt)),qt};function kr(X,Ue,Ke,Ct,on){{var Cn,nt={},qt=null,Vn=null;Ke!==void 0&&(tn(Ke),qt=""+Ke),_t(Ue)&&(tn(Ue.key),qt=""+Ue.key),it(Ue)&&(Vn=Ue.ref,hn(Ue,on));for(Cn in Ue)Nt.call(Ue,Cn)&&!Oe.hasOwnProperty(Cn)&&(nt[Cn]=Ue[Cn]);if(X&&X.defaultProps){var Bn=X.defaultProps;for(Cn in Bn)nt[Cn]===void 0&&(nt[Cn]=Bn[Cn])}if(qt||Vn){var ln=typeof X=="function"?X.displayName||X.name||"Unknown":X;qt&&Qt(nt,ln),Vn&&Tn(nt,ln)}return Ln(X,qt,Vn,on,Ct,kt.current,nt)}}var Dn=B.ReactCurrentOwner,va=B.ReactDebugCurrentFrame;function jn(X){if(X){var Ue=X._owner,Ke=et(X.type,X._source,Ue?Ue.type:null);va.setExtraStackFrame(Ke)}else va.setExtraStackFrame(null)}var Rn;Rn=!1;function ga(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function Sr(){{if(Dn.current){var X=ae(Dn.current.type);if(X)return`
|
|
|
|
Check the render method of \``+X+"`."}return""}}function ko(X){{if(X!==void 0){var Ue=X.fileName.replace(/^.*[\\\/]/,""),Ke=X.lineNumber;return`
|
|
|
|
Check your code at `+Ue+":"+Ke+"."}return""}}var as={};function is(X){{var Ue=Sr();if(!Ue){var Ke=typeof X=="string"?X:X.displayName||X.name;Ke&&(Ue=`
|
|
|
|
Check the top-level render call using <`+Ke+">.")}return Ue}}function Oo(X,Ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var Ke=is(Ue);if(as[Ke])return;as[Ke]=!0;var Ct="";X&&X._owner&&X._owner!==Dn.current&&(Ct=" It was passed a child from "+ae(X._owner.type)+"."),jn(X),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,Ct),jn(null)}}function Do(X,Ue){{if(typeof X!="object")return;if(On(X))for(var Ke=0;Ke<X.length;Ke++){var Ct=X[Ke];ga(Ct)&&Oo(Ct,Ue)}else if(ga(X))X._store&&(X._store.validated=!0);else if(X){var on=M(X);if(typeof on=="function"&&on!==X.entries)for(var Cn=on.call(X),nt;!(nt=Cn.next()).done;)ga(nt.value)&&Oo(nt.value,Ue)}}}function vr(X){{var Ue=X.type;if(Ue==null||typeof Ue=="string")return;var Ke;if(typeof Ue=="function")Ke=Ue.propTypes;else if(typeof Ue=="object"&&(Ue.$$typeof===h||Ue.$$typeof===x))Ke=Ue.propTypes;else return;if(Ke){var Ct=ae(Ue);Lt(Ke,X.props,"prop",Ct,X)}else if(Ue.PropTypes!==void 0&&!Rn){Rn=!0;var on=ae(Ue);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",on||"Unknown")}typeof Ue.getDefaultProps=="function"&&!Ue.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ia(X){{for(var Ue=Object.keys(X.props),Ke=0;Ke<Ue.length;Ke++){var Ct=Ue[Ke];if(Ct!=="children"&&Ct!=="key"){jn(X),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ct),jn(null);break}}X.ref!==null&&(jn(X),I("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}function Fi(X,Ue,Ke,Ct,on,Cn){{var nt=se(X);if(!nt){var qt="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(qt+=" 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 Vn=ko(on);Vn?qt+=Vn:qt+=Sr();var Bn;X===null?Bn="null":On(X)?Bn="array":X!==void 0&&X.$$typeof===t?(Bn="<"+(ae(X.type)||"Unknown")+" />",qt=" Did you accidentally export a JSX literal instead of a component?"):Bn=typeof X,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Bn,qt)}var ln=kr(X,Ue,Ke,on,Cn);if(ln==null)return ln;if(nt){var Ur=Ue.children;if(Ur!==void 0)if(Ct)if(On(Ur)){for(var vi=0;vi<Ur.length;vi++)Do(Ur[vi],X);Object.freeze&&Object.freeze(Ur)}else I("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 Do(Ur,X)}return X===i?Ia(ln):vr(ln),ln}}var La=Fi;n5.Fragment=i,n5.jsxDEV=La})();(function(e){e.exports=n5})(UA);const hi=UA.exports.Fragment,_=UA.exports.jsxDEV;var QI="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",$A=k.exports.createContext({});$A.displayName="ColorModeContext";function Q2(){const e=k.exports.useContext($A);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Yf(e,t){const{colorMode:n}=Q2();return n==="dark"?t:e}var dx={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Kj(e={}){const{preventTransition:t=!0}=e,n={setDataset:i=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o?.()},setClassName(i){document.body.classList.add(i?dx.dark:dx.light),document.body.classList.remove(i?dx.light:dx.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return n.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=n.query(),c=u=>{i(u.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(c):o.addEventListener("change",c),()=>{typeof o.removeListener=="function"?o.removeListener(c):o.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 n}var Xj="chakra-ui-color-mode";function Zj(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var Qj=Zj(Xj),BD=()=>{};function UD(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function JI(e){const{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:c}={},colorModeManager:u=Qj}=e,m=o==="dark"?"dark":"light",[h,v]=k.exports.useState(()=>UD(u,m)),[b,x]=k.exports.useState(()=>UD(u)),{getSystemTheme:w,setClassName:N,setDataset:R,addListener:O}=k.exports.useMemo(()=>Kj({preventTransition:c}),[c]),M=o==="system"&&!h?b:h,B=k.exports.useCallback(z=>{const $=z==="system"?w():z;v($),N($==="dark"),R($),u.set($)},[u,w,N,R]);Sc(()=>{o==="system"&&x(w())},[]),k.exports.useEffect(()=>{const z=u.get();if(z){B(z);return}if(o==="system"){B("system");return}B(m)},[u,m,o,B]);const I=k.exports.useCallback(()=>{B(M==="dark"?"light":"dark")},[M,B]);k.exports.useEffect(()=>{if(!!i)return O(B)},[i,O,B]);const F=k.exports.useMemo(()=>({colorMode:t??M,toggleColorMode:t?BD:I,setColorMode:t?BD:B}),[M,I,B,t]);return _($A.Provider,{value:F,children:n},void 0,!1,{fileName:QI,lineNumber:190,columnNumber:26},this)}JI.displayName="ColorModeProvider";var Jj=new Set(["dark","light","system"]);function eV(e){let t=e;return Jj.has(t)||(t="light"),t}function tV(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:i="chakra-ui-color-mode"}=e,o=eV(t),c=n==="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="${o}",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){}})();
|
|
`,m=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${i}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
|
|
`;return`!${c?u:m}`.trim()}function nV(e={}){return _("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:tV(e)}},void 0,!1,{fileName:QI,lineNumber:244,columnNumber:26},this)}var r5={exports:{}};(function(e,t){var n=200,i="__lodash_hash_undefined__",o=800,c=16,u=9007199254740991,m="[object Arguments]",h="[object Array]",v="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",w="[object Error]",N="[object Function]",R="[object GeneratorFunction]",O="[object Map]",M="[object Number]",B="[object Null]",I="[object Object]",F="[object Proxy]",z="[object RegExp]",$="[object Set]",q="[object String]",K="[object Undefined]",le="[object WeakMap]",me="[object ArrayBuffer]",se="[object DataView]",Se="[object Float32Array]",qe="[object Float64Array]",ae="[object Int8Array]",ue="[object Int16Array]",Ee="[object Int32Array]",de="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",Ne="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,Ce=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,Ie={};Ie[Se]=Ie[qe]=Ie[ae]=Ie[ue]=Ie[Ee]=Ie[de]=Ie[ie]=Ie[xe]=Ie[Ne]=!0,Ie[m]=Ie[h]=Ie[me]=Ie[b]=Ie[se]=Ie[x]=Ie[w]=Ie[N]=Ie[O]=Ie[M]=Ie[I]=Ie[z]=Ie[$]=Ie[q]=Ie[le]=!1;var Ye=typeof vc=="object"&&vc&&vc.Object===Object&&vc,at=typeof self=="object"&&self&&self.Object===Object&&self,gt=Ye||at||Function("return this")(),Ht=t&&!t.nodeType&&t,Ze=Ht&&!0&&e&&!e.nodeType&&e,ct=Ze&&Ze.exports===Ht,wt=ct&&Ye.process,zt=function(){try{var W=Ze&&Ze.require&&Ze.require("util").types;return W||wt&&wt.binding&&wt.binding("util")}catch{}}(),Ge=zt&&zt.isTypedArray;function Wt(W,Q,pe){switch(pe.length){case 0:return W.call(Q);case 1:return W.call(Q,pe[0]);case 2:return W.call(Q,pe[0],pe[1]);case 3:return W.call(Q,pe[0],pe[1],pe[2])}return W.apply(Q,pe)}function ye(W,Q){for(var pe=-1,ot=Array(W);++pe<W;)ot[pe]=Q(pe);return ot}function et(W){return function(Q){return W(Q)}}function Nt(W,Q){return W?.[Q]}function lt(W,Q){return function(pe){return W(Q(pe))}}var xn=Array.prototype,$n=Function.prototype,Lt=Object.prototype,an=gt["__core-js_shared__"],On=$n.toString,gn=Lt.hasOwnProperty,He=function(){var W=/[^.]+$/.exec(an&&an.keys&&an.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),Je=Lt.toString,tn=On.call(Object),kt=RegExp("^"+On.call(gn).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=ct?gt.Buffer:void 0,Yt=gt.Symbol,_n=gt.Uint8Array,je=Oe?Oe.allocUnsafe:void 0,it=lt(Object.getPrototypeOf,Object),_t=Object.create,hn=Lt.propertyIsEnumerable,Qt=xn.splice,Tn=Yt?Yt.toStringTag:void 0,Ln=function(){try{var W=za(Object,"defineProperty");return W({},"",{}),W}catch{}}(),kr=Oe?Oe.isBuffer:void 0,Dn=Math.max,va=Date.now,jn=za(gt,"Map"),Rn=za(Object,"create"),ga=function(){function W(){}return function(Q){if(!pr(Q))return{};if(_t)return _t(Q);W.prototype=Q;var pe=new W;return W.prototype=void 0,pe}}();function Sr(W){var Q=-1,pe=W==null?0:W.length;for(this.clear();++Q<pe;){var ot=W[Q];this.set(ot[0],ot[1])}}function ko(){this.__data__=Rn?Rn(null):{},this.size=0}function as(W){var Q=this.has(W)&&delete this.__data__[W];return this.size-=Q?1:0,Q}function is(W){var Q=this.__data__;if(Rn){var pe=Q[W];return pe===i?void 0:pe}return gn.call(Q,W)?Q[W]:void 0}function Oo(W){var Q=this.__data__;return Rn?Q[W]!==void 0:gn.call(Q,W)}function Do(W,Q){var pe=this.__data__;return this.size+=this.has(W)?0:1,pe[W]=Rn&&Q===void 0?i:Q,this}Sr.prototype.clear=ko,Sr.prototype.delete=as,Sr.prototype.get=is,Sr.prototype.has=Oo,Sr.prototype.set=Do;function vr(W){var Q=-1,pe=W==null?0:W.length;for(this.clear();++Q<pe;){var ot=W[Q];this.set(ot[0],ot[1])}}function Ia(){this.__data__=[],this.size=0}function Fi(W){var Q=this.__data__,pe=gi(Q,W);if(pe<0)return!1;var ot=Q.length-1;return pe==ot?Q.pop():Qt.call(Q,pe,1),--this.size,!0}function La(W){var Q=this.__data__,pe=gi(Q,W);return pe<0?void 0:Q[pe][1]}function X(W){return gi(this.__data__,W)>-1}function Ue(W,Q){var pe=this.__data__,ot=gi(pe,W);return ot<0?(++this.size,pe.push([W,Q])):pe[ot][1]=Q,this}vr.prototype.clear=Ia,vr.prototype.delete=Fi,vr.prototype.get=La,vr.prototype.has=X,vr.prototype.set=Ue;function Ke(W){var Q=-1,pe=W==null?0:W.length;for(this.clear();++Q<pe;){var ot=W[Q];this.set(ot[0],ot[1])}}function Ct(){this.size=0,this.__data__={hash:new Sr,map:new(jn||vr),string:new Sr}}function on(W){var Q=Sa(this,W).delete(W);return this.size-=Q?1:0,Q}function Cn(W){return Sa(this,W).get(W)}function nt(W){return Sa(this,W).has(W)}function qt(W,Q){var pe=Sa(this,W),ot=pe.size;return pe.set(W,Q),this.size+=pe.size==ot?0:1,this}Ke.prototype.clear=Ct,Ke.prototype.delete=on,Ke.prototype.get=Cn,Ke.prototype.has=nt,Ke.prototype.set=qt;function Vn(W){var Q=this.__data__=new vr(W);this.size=Q.size}function Bn(){this.__data__=new vr,this.size=0}function ln(W){var Q=this.__data__,pe=Q.delete(W);return this.size=Q.size,pe}function Ur(W){return this.__data__.get(W)}function vi(W){return this.__data__.has(W)}function Po(W,Q){var pe=this.__data__;if(pe instanceof vr){var ot=pe.__data__;if(!jn||ot.length<n-1)return ot.push([W,Q]),this.size=++pe.size,this;pe=this.__data__=new Ke(ot)}return pe.set(W,Q),this.size=pe.size,this}Vn.prototype.clear=Bn,Vn.prototype.delete=ln,Vn.prototype.get=Ur,Vn.prototype.has=vi,Vn.prototype.set=Po;function ya(W,Q){var pe=Ya(W),ot=!pe&&Ui(W),cn=!pe&&!ot&&or(W),zn=!pe&&!ot&&!cn&&lo(W),Kt=pe||ot||cn||zn,S=Kt?ye(W.length,String):[],A=S.length;for(var V in W)(Q||gn.call(W,V))&&!(Kt&&(V=="length"||cn&&(V=="offset"||V=="parent")||zn&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||fs(V,A)))&&S.push(V);return S}function oo(W,Q,pe){(pe!==void 0&&!xr(W[Q],pe)||pe===void 0&&!(Q in W))&&Hs(W,Q,pe)}function Nu(W,Q,pe){var ot=W[Q];(!(gn.call(W,Q)&&xr(ot,pe))||pe===void 0&&!(Q in W))&&Hs(W,Q,pe)}function gi(W,Q){for(var pe=W.length;pe--;)if(xr(W[pe][0],Q))return pe;return-1}function Hs(W,Q,pe){Q=="__proto__"&&Ln?Ln(W,Q,{configurable:!0,enumerable:!0,value:pe,writable:!0}):W[Q]=pe}var zi=Fa();function Jt(W){return W==null?W===void 0?K:B:Tn&&Tn in Object(W)?cs(W):Ys(W)}function Bi(W){return aa(W)&&Jt(W)==m}function ba(W){if(!pr(W)||Bo(W))return!1;var Q=$o(W)?kt:Ce;return Q.test(qs(W))}function Mo(W){return aa(W)&&Kr(W.length)&&!!Ie[Jt(W)]}function os(W){if(!pr(W))return bi(W);var Q=Ba(W),pe=[];for(var ot in W)ot=="constructor"&&(Q||!gn.call(W,ot))||pe.push(ot);return pe}function Io(W,Q,pe,ot,cn){W!==Q&&zi(Q,function(zn,Kt){if(cn||(cn=new Vn),pr(zn))ss(W,Q,Kt,pe,Io,ot,cn);else{var S=ot?ot(Si(W,Kt),zn,Kt+"",W,Q,cn):void 0;S===void 0&&(S=zn),oo(W,Kt,S)}},Ks)}function ss(W,Q,pe,ot,cn,zn,Kt){var S=Si(W,pe),A=Si(Q,pe),V=Kt.get(A);if(V){oo(W,pe,V);return}var G=zn?zn(S,A,pe+"",W,Q,Kt):void 0,te=G===void 0;if(te){var ze=Ya(A),we=!ze&&or(A),Ve=!ze&&!we&&lo(A);G=A,ze||we||Ve?Ya(S)?G=S:_r(S)?G=Gs(S):we?(te=!1,G=Fo(A,!0)):Ve?(te=!1,G=Ws(A,!0)):G=[]:Eu(A)||Ui(A)?(G=S,Ui(S)?G=xi(S):(!pr(S)||$o(S))&&(G=zo(A))):te=!1}te&&(Kt.set(A,G),cn(G,A,ot,zn,Kt),Kt.delete(A)),oo(W,pe,G)}function ls(W,Q){return Uo(un(W,Q,Il),W+"")}var Lo=Ln?function(W,Q){return Ln(W,"toString",{configurable:!0,enumerable:!1,value:Fn(Q),writable:!0})}:Il;function Fo(W,Q){if(Q)return W.slice();var pe=W.length,ot=je?je(pe):new W.constructor(pe);return W.copy(ot),ot}function us(W){var Q=new W.constructor(W.byteLength);return new _n(Q).set(new _n(W)),Q}function Ws(W,Q){var pe=Q?us(W.buffer):W.buffer;return new W.constructor(pe,W.byteOffset,W.length)}function Gs(W,Q){var pe=-1,ot=W.length;for(Q||(Q=Array(ot));++pe<ot;)Q[pe]=W[pe];return Q}function yi(W,Q,pe,ot){var cn=!pe;pe||(pe={});for(var zn=-1,Kt=Q.length;++zn<Kt;){var S=Q[zn],A=ot?ot(pe[S],W[S],S,pe,W):void 0;A===void 0&&(A=W[S]),cn?Hs(pe,S,A):Nu(pe,S,A)}return pe}function Mr(W){return ls(function(Q,pe){var ot=-1,cn=pe.length,zn=cn>1?pe[cn-1]:void 0,Kt=cn>2?pe[2]:void 0;for(zn=W.length>3&&typeof zn=="function"?(cn--,zn):void 0,Kt&&Ml(pe[0],pe[1],Kt)&&(zn=cn<3?void 0:zn,cn=1),Q=Object(Q);++ot<cn;){var S=pe[ot];S&&W(Q,S,ot,zn)}return Q})}function Fa(W){return function(Q,pe,ot){for(var cn=-1,zn=Object(Q),Kt=ot(Q),S=Kt.length;S--;){var A=Kt[W?S:++cn];if(pe(zn[A],A,zn)===!1)break}return Q}}function Sa(W,Q){var pe=W.__data__;return xa(Q)?pe[typeof Q=="string"?"string":"hash"]:pe.map}function za(W,Q){var pe=Nt(W,Q);return ba(pe)?pe:void 0}function cs(W){var Q=gn.call(W,Tn),pe=W[Tn];try{W[Tn]=void 0;var ot=!0}catch{}var cn=Je.call(W);return ot&&(Q?W[Tn]=pe:delete W[Tn]),cn}function zo(W){return typeof W.constructor=="function"&&!Ba(W)?ga(it(W)):{}}function fs(W,Q){var pe=typeof W;return Q=Q??u,!!Q&&(pe=="number"||pe!="symbol"&&Me.test(W))&&W>-1&&W%1==0&&W<Q}function Ml(W,Q,pe){if(!pr(pe))return!1;var ot=typeof Q;return(ot=="number"?so(pe)&&fs(Q,pe.length):ot=="string"&&Q in pe)?xr(pe[Q],W):!1}function xa(W){var Q=typeof W;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?W!=="__proto__":W===null}function Bo(W){return!!He&&He in W}function Ba(W){var Q=W&&W.constructor,pe=typeof Q=="function"&&Q.prototype||Lt;return W===pe}function bi(W){var Q=[];if(W!=null)for(var pe in Object(W))Q.push(pe);return Q}function Ys(W){return Je.call(W)}function un(W,Q,pe){return Q=Dn(Q===void 0?W.length-1:Q,0),function(){for(var ot=arguments,cn=-1,zn=Dn(ot.length-Q,0),Kt=Array(zn);++cn<zn;)Kt[cn]=ot[Q+cn];cn=-1;for(var S=Array(Q+1);++cn<Q;)S[cn]=ot[cn];return S[Q]=pe(Kt),Wt(W,this,S)}}function Si(W,Q){if(!(Q==="constructor"&&typeof W[Q]=="function")&&Q!="__proto__")return W[Q]}var Uo=$t(Lo);function $t(W){var Q=0,pe=0;return function(){var ot=va(),cn=c-(ot-pe);if(pe=ot,cn>0){if(++Q>=o)return arguments[0]}else Q=0;return W.apply(void 0,arguments)}}function qs(W){if(W!=null){try{return On.call(W)}catch{}try{return W+""}catch{}}return""}function xr(W,Q){return W===Q||W!==W&&Q!==Q}var Ui=Bi(function(){return arguments}())?Bi:function(W){return aa(W)&&gn.call(W,"callee")&&!hn.call(W,"callee")},Ya=Array.isArray;function so(W){return W!=null&&Kr(W.length)&&!$o(W)}function _r(W){return aa(W)&&so(W)}var or=kr||Ua;function $o(W){if(!pr(W))return!1;var Q=Jt(W);return Q==N||Q==R||Q==v||Q==F}function Kr(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=u}function pr(W){var Q=typeof W;return W!=null&&(Q=="object"||Q=="function")}function aa(W){return W!=null&&typeof W=="object"}function Eu(W){if(!aa(W)||Jt(W)!=I)return!1;var Q=it(W);if(Q===null)return!0;var pe=gn.call(Q,"constructor")&&Q.constructor;return typeof pe=="function"&&pe instanceof pe&&On.call(pe)==tn}var lo=Ge?et(Ge):Mo;function xi(W){return yi(W,Ks(W))}function Ks(W){return so(W)?ya(W,!0):os(W)}var vn=Mr(function(W,Q,pe,ot){Io(W,Q,pe,ot)});function Fn(W){return function(){return W}}function Il(W){return W}function Ua(){return!1}e.exports=vn})(r5,r5.exports);const Qf=r5.exports;function pu(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Vh(e,...t){return rV(e)?e(...t):e}var rV=e=>typeof e=="function",aV=e=>/!(important)?$/.test(e),$D=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,a5=(e,t)=>n=>{const i=String(t),o=aV(i),c=$D(i),u=e?`${e}.${c}`:c;let m=pu(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return m=$D(m),o?`${m} !important`:m};function dy(e){const{scale:t,transform:n,compose:i}=e;return(c,u)=>{const m=a5(t,c)(u);let h=n?.(m,u)??m;return i&&(h=i(h,u)),h}}var px=(...e)=>t=>e.reduce((n,i)=>i(n),t);function xl(e,t){return n=>{const i={property:n,scale:e};return i.transform=dy({scale:e,transform:t}),i}}var iV=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function oV(e){const{property:t,scale:n,transform:i}=e;return{scale:n,property:iV(t),transform:n?dy({scale:n,compose:i}):i}}var eL=["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 sV(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...eL].join(" ")}function lV(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...eL].join(" ")}var uV={"--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(" ")},cV={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 fV(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 dV={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tL="& > :not(style) ~ :not(style)",pV={[tL]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},mV={[tL]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},i5={"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"},hV=new Set(Object.values(i5)),nL=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),vV=e=>e.trim();function gV(e,t){var n;if(e==null||nL.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:c}=((n=i.exec(e))==null?void 0:n.groups)??{};if(!o||!c)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[m,...h]=c.split(",").map(vV).filter(Boolean);if(h?.length===0)return e;const v=m in i5?i5[m]:m;h.unshift(v);const b=h.map(x=>{if(hV.has(x))return x;const w=x.indexOf(" "),[N,R]=w!==-1?[x.substr(0,w),x.substr(w+1)]:[x],O=rL(R)?R:R&&R.split(" "),M=`colors.${N}`,B=M in t.__cssMap?t.__cssMap[M].varRef:N;return O?[B,...Array.isArray(O)?O:[O]].join(" "):B});return`${u}(${b.join(", ")})`}var rL=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),yV=(e,t)=>gV(e,t??{});function bV(e){return/^var\(--.+\)$/.test(e)}var SV=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},au=e=>t=>`${e}(${t})`,Xn={filter(e){return e!=="auto"?e:uV},backdropFilter(e){return e!=="auto"?e:cV},ring(e){return fV(Xn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?sV():e==="auto-gpu"?lV():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=SV(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(bV(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:yV,blur:au("blur"),opacity:au("opacity"),brightness:au("brightness"),contrast:au("contrast"),dropShadow:au("drop-shadow"),grayscale:au("grayscale"),hueRotate:au("hue-rotate"),invert:au("invert"),saturate:au("saturate"),sepia:au("sepia"),bgImage(e){return e==null||rL(e)||nL.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=dV[e]??{},i={flexDirection:e};return t&&(i[t]=1),n&&(i[n]=1),i}},ne={borderWidths:xl("borderWidths"),borderStyles:xl("borderStyles"),colors:xl("colors"),borders:xl("borders"),radii:xl("radii",Xn.px),space:xl("space",px(Xn.vh,Xn.px)),spaceT:xl("space",px(Xn.vh,Xn.px)),degreeT(e){return{property:e,transform:Xn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:dy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xl("sizes",px(Xn.vh,Xn.px)),sizesT:xl("sizes",px(Xn.vh,Xn.fraction)),shadows:xl("shadows"),logical:oV,blur:xl("blur",Xn.blur)},Vx={background:ne.colors("background"),backgroundColor:ne.colors("backgroundColor"),backgroundImage:ne.propT("backgroundImage",Xn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Xn.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",Xn.gradient),bgClip:{transform:Xn.bgClip}};Object.assign(Vx,{bgImage:Vx.backgroundImage,bgImg:Vx.backgroundImage});var rr={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(rr,{rounded:rr.borderRadius,roundedTop:rr.borderTopRadius,roundedTopLeft:rr.borderTopLeftRadius,roundedTopRight:rr.borderTopRightRadius,roundedTopStart:rr.borderStartStartRadius,roundedTopEnd:rr.borderStartEndRadius,roundedBottom:rr.borderBottomRadius,roundedBottomLeft:rr.borderBottomLeftRadius,roundedBottomRight:rr.borderBottomRightRadius,roundedBottomStart:rr.borderEndStartRadius,roundedBottomEnd:rr.borderEndEndRadius,roundedLeft:rr.borderLeftRadius,roundedRight:rr.borderRightRadius,roundedStart:rr.borderInlineStartRadius,roundedEnd:rr.borderInlineEndRadius,borderStart:rr.borderInlineStart,borderEnd:rr.borderInlineEnd,borderTopStartRadius:rr.borderStartStartRadius,borderTopEndRadius:rr.borderStartEndRadius,borderBottomStartRadius:rr.borderEndStartRadius,borderBottomEndRadius:rr.borderEndEndRadius,borderStartRadius:rr.borderInlineStartRadius,borderEndRadius:rr.borderInlineEndRadius,borderStartWidth:rr.borderInlineStartWidth,borderEndWidth:rr.borderInlineEndWidth,borderStartColor:rr.borderInlineStartColor,borderEndColor:rr.borderInlineEndColor,borderStartStyle:rr.borderInlineStartStyle,borderEndStyle:rr.borderInlineEndStyle});var xV={color:ne.colors("color"),textColor:ne.colors("color"),fill:ne.colors("fill"),stroke:ne.colors("stroke")},o5={boxShadow:ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(o5,{shadow:o5.boxShadow});var CV={filter:{transform:Xn.filter},blur:ne.blur("--chakra-blur"),brightness:ne.propT("--chakra-brightness",Xn.brightness),contrast:ne.propT("--chakra-contrast",Xn.contrast),hueRotate:ne.degreeT("--chakra-hue-rotate"),invert:ne.propT("--chakra-invert",Xn.invert),saturate:ne.propT("--chakra-saturate",Xn.saturate),dropShadow:ne.propT("--chakra-drop-shadow",Xn.dropShadow),backdropFilter:{transform:Xn.backdropFilter},backdropBlur:ne.blur("--chakra-backdrop-blur"),backdropBrightness:ne.propT("--chakra-backdrop-brightness",Xn.brightness),backdropContrast:ne.propT("--chakra-backdrop-contrast",Xn.contrast),backdropHueRotate:ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ne.propT("--chakra-backdrop-invert",Xn.invert),backdropSaturate:ne.propT("--chakra-backdrop-saturate",Xn.saturate)},f2={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Xn.flexDirection},experimental_spaceX:{static:pV,transform:dy({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:mV,transform:dy({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(f2,{flexDir:f2.flexDirection});var aL={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},wV={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Xn.outline},outlineOffset:!0,outlineColor:ne.colors("outlineColor")},Ls={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",Xn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ls,{w:Ls.width,h:Ls.height,minW:Ls.minWidth,maxW:Ls.maxWidth,minH:Ls.minHeight,maxH:Ls.maxHeight,overscroll:Ls.overscrollBehavior,overscrollX:Ls.overscrollBehaviorX,overscrollY:Ls.overscrollBehaviorY});var NV={listStyleType:!0,listStylePosition:!0,listStylePos:ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ne.prop("listStyleImage")};function EV(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var _V=e=>{const t=new WeakMap;return(i,o,c,u)=>{if(typeof i>"u")return e(i,o,c);t.has(i)||t.set(i,new Map);const m=t.get(i);if(m.has(o))return m.get(o);const h=e(i,o,c,u);return m.set(o,h),h}},TV=_V(EV),RV={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},AV={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},lR=(e,t,n)=>{const i={},o=TV(e,t,{});for(const c in o)c in n&&n[c]!=null||(i[c]=o[c]);return i},kV={srOnly:{transform(e){return e===!0?RV:e==="focusable"?AV:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>lR(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>lR(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>lR(t,e,n)}},X0={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(X0,{insetStart:X0.insetInlineStart,insetEnd:X0.insetInlineEnd});var OV={ring:{transform:Xn.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")},Ar={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(Ar,{m:Ar.margin,mt:Ar.marginTop,mr:Ar.marginRight,me:Ar.marginInlineEnd,marginEnd:Ar.marginInlineEnd,mb:Ar.marginBottom,ml:Ar.marginLeft,ms:Ar.marginInlineStart,marginStart:Ar.marginInlineStart,mx:Ar.marginX,my:Ar.marginY,p:Ar.padding,pt:Ar.paddingTop,py:Ar.paddingY,px:Ar.paddingX,pb:Ar.paddingBottom,pl:Ar.paddingLeft,ps:Ar.paddingInlineStart,paddingStart:Ar.paddingInlineStart,pr:Ar.paddingRight,pe:Ar.paddingInlineEnd,paddingEnd:Ar.paddingInlineEnd});var DV={textDecorationColor:ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ne.shadows("textShadow")},PV={clipPath:!0,transform:ne.propT("transform",Xn.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")},MV={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")},IV={fontFamily:ne.prop("fontFamily","fonts"),fontSize:ne.prop("fontSize","fontSizes",Xn.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"}},LV={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 iL(e){return pu(e)&&e.reference?e.reference:String(e)}var J2=(e,...t)=>t.map(iL).join(` ${e} `).replace(/calc/g,""),jD=(...e)=>`calc(${J2("+",...e)})`,VD=(...e)=>`calc(${J2("-",...e)})`,s5=(...e)=>`calc(${J2("*",...e)})`,HD=(...e)=>`calc(${J2("/",...e)})`,WD=e=>{const t=iL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:s5(t,-1)},Fp=Object.assign(e=>({add:(...t)=>Fp(jD(e,...t)),subtract:(...t)=>Fp(VD(e,...t)),multiply:(...t)=>Fp(s5(e,...t)),divide:(...t)=>Fp(HD(e,...t)),negate:()=>Fp(WD(e)),toString:()=>e.toString()}),{add:jD,subtract:VD,multiply:s5,divide:HD,negate:WD});function FV(e,t="-"){return e.replace(/\s+/g,t)}function zV(e){const t=FV(e.toString());return UV(BV(t))}function BV(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function UV(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function $V(e,t=""){return[t,e].filter(Boolean).join("-")}function jV(e,t){return`var(${e}${t?`, ${t}`:""})`}function VV(e,t=""){return zV(`--${$V(e,t)}`)}function ad(e,t,n){const i=VV(e,n);return{variable:i,reference:jV(i,t)}}function HV(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function WV(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function GV(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function l5(e){if(e==null)return e;const{unitless:t}=GV(e);return t||typeof e=="number"?`${e}px`:e}var oL=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,jA=e=>Object.fromEntries(Object.entries(e).sort(oL));function GD(e){const t=jA(e);return Object.assign(Object.values(t),t)}function YV(e){const t=Object.keys(jA(e));return new Set(t)}function YD(e){if(!e)return e;e=l5(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function W0(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${l5(e)})`),t&&n.push("and",`(max-width: ${l5(t)})`),n.join(" ")}function qV(e){if(!e)return null;e.base=e.base??"0px";const t=GD(e),n=Object.entries(e).sort(oL).map(([c,u],m,h)=>{let[,v]=h[m+1]??[];return v=parseFloat(v)>0?YD(v):void 0,{_minW:YD(u),breakpoint:c,minW:u,maxW:v,maxWQuery:W0(null,v),minWQuery:W0(u),minMaxQuery:W0(u,v)}}),i=YV(e),o=Array.from(i.values());return{keys:i,normalized:t,isResponsive(c){const u=Object.keys(c);return u.length>0&&u.every(m=>i.has(m))},asObject:jA(e),asArray:GD(e),details:n,media:[null,...t.map(c=>W0(c)).slice(1)],toArrayValue(c){if(!HV(c))throw new Error("toArrayValue: value must be an object");const u=o.map(m=>c[m]??null);for(;WV(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,m,h)=>{const v=o[h];return v!=null&&m!=null&&(u[v]=m),u},{})}}}var ci={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}`},Af=e=>sL(t=>e(t,"&"),"[role=group]","[data-group]",".group"),lc=e=>sL(t=>e(t,"~ &"),"[data-peer]",".peer"),sL=(e,...t)=>t.map(e).join(", "),eC={_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:Af(ci.hover),_peerHover:lc(ci.hover),_groupFocus:Af(ci.focus),_peerFocus:lc(ci.focus),_groupFocusVisible:Af(ci.focusVisible),_peerFocusVisible:lc(ci.focusVisible),_groupActive:Af(ci.active),_peerActive:lc(ci.active),_groupDisabled:Af(ci.disabled),_peerDisabled:lc(ci.disabled),_groupInvalid:Af(ci.invalid),_peerInvalid:lc(ci.invalid),_groupChecked:Af(ci.checked),_peerChecked:lc(ci.checked),_groupFocusWithin:Af(ci.focusWithin),_peerFocusWithin:lc(ci.focusWithin),_peerPlaceholderShown:lc(ci.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]"},KV=Object.keys(eC);function qD(e,t){return ad(String(e).replace(/\./g,"-"),void 0,t)}function XV(e,t){let n={};const i={};for(const[o,c]of Object.entries(e)){const{isSemantic:u,value:m}=c,{variable:h,reference:v}=qD(o,t?.cssVarPrefix);if(!u){if(o.startsWith("space")){const w=o.split("."),[N,...R]=w,O=`${N}.-${R.join(".")}`,M=Fp.negate(m),B=Fp.negate(v);i[O]={value:M,var:h,varRef:B}}n[h]=m,i[o]={value:m,var:h,varRef:v};continue}const b=w=>{const R=[String(o).split(".")[0],w].join(".");if(!e[R])return w;const{reference:M}=qD(R,t?.cssVarPrefix);return M},x=pu(m)?m:{default:m};n=Qf(n,Object.entries(x).reduce((w,[N,R])=>{var O;const M=b(R);if(N==="default")return w[h]=M,w;const B=((O=eC)==null?void 0:O[N])??N;return w[B]={[h]:M},w},{})),i[o]={value:v,var:h,varRef:v}}return{cssVars:n,cssMap:i}}function ZV(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function QV(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var JV=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function eH(e){return QV(e,JV)}function tH(e){return e.semanticTokens}function nH(e){const{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}function rH({tokens:e,semanticTokens:t}){const n=Object.entries(u5(e)??{}).map(([o,c])=>[o,{isSemantic:!1,value:c}]),i=Object.entries(u5(t,1)??{}).map(([o,c])=>[o,{isSemantic:!0,value:c}]);return Object.fromEntries([...n,...i])}function u5(e,t=1/0){return!pu(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[i,o])=>(pu(o)||Array.isArray(o)?Object.entries(u5(o,t-1)).forEach(([c,u])=>{n[`${i}.${c}`]=u}):n[i]=o,n),{})}function aH(e){var t;const n=nH(e),i=eH(n),o=tH(n),c=rH({tokens:i,semanticTokens:o}),u=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:m,cssVars:h}=XV(c,{cssVarPrefix:u});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...h},__cssMap:m,__breakpoints:qV(n.breakpoints)}),n}var VA=Qf({},Vx,rr,xV,f2,Ls,CV,OV,wV,aL,kV,X0,o5,Ar,LV,IV,DV,PV,NV,MV),iH=Object.assign({},Ar,Ls,f2,aL,X0),oH=Object.keys(iH),sH=[...Object.keys(VA),...KV],lH={...VA,...eC},uH=e=>e in lH;function cH(e){return/^var\(--.+\)$/.test(e)}var fH=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!cH(t),dH=(e,t)=>{if(t==null)return t;const n=m=>{var h,v;return(v=(h=e.__cssMap)==null?void 0:h[m])==null?void 0:v.varRef},i=m=>n(m)??m,o=t.split(",").map(m=>m.trim()),[c,u]=o;return t=n(c)??i(u)??i(t),t};function pH(e){const{configs:t={},pseudos:n={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:c,media:u}=i.__breakpoints,m=(h,v=!1)=>{var b;const x=Vh(h,i);let w={};for(let N in x){let R=Vh(x[N],i);if(R==null)continue;if(Array.isArray(R)||pu(R)&&o(R)){let I=Array.isArray(R)?R:c(R);I=I.slice(0,u.length);for(let F=0;F<I.length;F++){const z=u[F],$=I[F];z?$==null?w[z]??(w[z]={}):w[z]=Object.assign({},w[z],m({[N]:$},!0)):w=Object.assign({},w,m({...x,[N]:$},!1))}continue}if(N in n&&(N=n[N]),fH(N,R)&&(R=dH(i,R)),pu(R)){w[N]=Object.assign({},w[N],m(R,!0));continue}let O=t[N];if(O===!0&&(O={property:N}),!v&&O?.static){const I=Vh(O.static,i);w=Object.assign({},w,I)}let M=((b=O?.transform)==null?void 0:b.call(O,R,i,x))??R;if(M=O?.processResult?m(M,!0):M,pu(M)){w=Object.assign({},w,M);continue}const B=Vh(O?.property,i);if(B){if(Array.isArray(B)){for(const I of B)w[I]=M;continue}B==="&"&&pu(M)?w=Object.assign({},w,M):w[B]=M;continue}w[N]=M}return w};return m}var lL=e=>t=>pH({theme:t,pseudos:eC,configs:VA})(e);function Pr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function mH(e,t){if(Array.isArray(e))return e;if(pu(e))return t(e);if(e!=null)return[e]}function hH(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function vH(e){const t=e.__breakpoints;return function(i,o,c,u){var m,h;if(!t)return;const v={},b=mH(c,t.toArrayValue);if(!b)return v;const x=b.length,w=x===1,N=!!i.parts;for(let R=0;R<x;R++){const O=t.details[R],M=t.details[hH(b,R)],B=W0(O.minW,M?._minW),I=Vh((m=i[o])==null?void 0:m[b[R]],u);if(!!I){if(N){(h=i.parts)==null||h.forEach(F=>{Qf(v,{[F]:w?I[F]:{[B]:I[F]}})});continue}if(!N){w?Qf(v,I):v[B]=I;continue}v[B]=I}}return v}}function gH(e){return t=>{const{variant:n,size:i,theme:o}=t,c=vH(o);return Qf({},Vh(e.baseStyle??{},t),c(e,"sizes",i,t),c(e,"variants",n,t))}}function yH(e,t,n){var i,o;return((o=(i=e.__cssMap)==null?void 0:i[`${t}.${n}`])==null?void 0:o.varRef)??n}function hr(e){return ZV(e,["styleConfig","size","variant","colorScheme"])}function bH(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 SH(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 xH=function(){function e(n){var i=this;this._insertTag=function(o){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(o,c),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!1:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(SH(this));var o=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=bH(o);try{u.insertRule(i,u.cssRules.length)}catch(m){/:(-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+'"',m)}}else o.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}(),Ii="-ms-",d2="-moz-",ar="-webkit-",HA="comm",WA="rule",GA="decl",CH="@import",uL="@keyframes",wH=Math.abs,tC=String.fromCharCode,NH=Object.assign;function EH(e,t){return(((t<<2^Co(e,0))<<2^Co(e,1))<<2^Co(e,2))<<2^Co(e,3)}function cL(e){return e.trim()}function _H(e,t){return(e=t.exec(e))?e[0]:e}function ur(e,t,n){return e.replace(t,n)}function c5(e,t){return e.indexOf(t)}function Co(e,t){return e.charCodeAt(t)|0}function py(e,t,n){return e.slice(t,n)}function uu(e){return e.length}function YA(e){return e.length}function mx(e,t){return t.push(e),e}function TH(e,t){return e.map(t).join("")}var nC=1,av=1,fL=0,To=0,da=0,mv="";function rC(e,t,n,i,o,c,u){return{value:e,root:t,parent:n,type:i,props:o,children:c,line:nC,column:av,length:u,return:""}}function M0(e,t){return NH(rC("",null,null,"",null,null,0),e,{length:-e.length},t)}function RH(){return da}function AH(){return da=To>0?Co(mv,--To):0,av--,da===10&&(av=1,nC--),da}function es(){return da=To<fL?Co(mv,To++):0,av++,da===10&&(av=1,nC++),da}function mu(){return Co(mv,To)}function Hx(){return To}function Uy(e,t){return py(mv,e,t)}function my(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 dL(e){return nC=av=1,fL=uu(mv=e),To=0,[]}function pL(e){return mv="",e}function Wx(e){return cL(Uy(To-1,f5(e===91?e+2:e===40?e+1:e)))}function kH(e){for(;(da=mu())&&da<33;)es();return my(e)>2||my(da)>3?"":" "}function OH(e,t){for(;--t&&es()&&!(da<48||da>102||da>57&&da<65||da>70&&da<97););return Uy(e,Hx()+(t<6&&mu()==32&&es()==32))}function f5(e){for(;es();)switch(da){case e:return To;case 34:case 39:e!==34&&e!==39&&f5(da);break;case 40:e===41&&f5(e);break;case 92:es();break}return To}function DH(e,t){for(;es()&&e+da!==47+10;)if(e+da===42+42&&mu()===47)break;return"/*"+Uy(t,To-1)+"*"+tC(e===47?e:es())}function PH(e){for(;!my(mu());)es();return Uy(e,To)}function MH(e){return pL(Gx("",null,null,null,[""],e=dL(e),0,[0],e))}function Gx(e,t,n,i,o,c,u,m,h){for(var v=0,b=0,x=u,w=0,N=0,R=0,O=1,M=1,B=1,I=0,F="",z=o,$=c,q=i,K=F;M;)switch(R=I,I=es()){case 40:if(R!=108&&K.charCodeAt(x-1)==58){c5(K+=ur(Wx(I),"&","&\f"),"&\f")!=-1&&(B=-1);break}case 34:case 39:case 91:K+=Wx(I);break;case 9:case 10:case 13:case 32:K+=kH(R);break;case 92:K+=OH(Hx()-1,7);continue;case 47:switch(mu()){case 42:case 47:mx(IH(DH(es(),Hx()),t,n),h);break;default:K+="/"}break;case 123*O:m[v++]=uu(K)*B;case 125*O:case 59:case 0:switch(I){case 0:case 125:M=0;case 59+b:N>0&&uu(K)-x&&mx(N>32?XD(K+";",i,n,x-1):XD(ur(K," ","")+";",i,n,x-2),h);break;case 59:K+=";";default:if(mx(q=KD(K,t,n,v,b,o,m,F,z=[],$=[],x),c),I===123)if(b===0)Gx(K,t,q,q,z,c,x,m,$);else switch(w){case 100:case 109:case 115:Gx(e,q,q,i&&mx(KD(e,q,q,0,0,o,m,F,o,z=[],x),$),o,$,x,m,i?z:$);break;default:Gx(K,q,q,q,[""],$,0,m,$)}}v=b=N=0,O=B=1,F=K="",x=u;break;case 58:x=1+uu(K),N=R;default:if(O<1){if(I==123)--O;else if(I==125&&O++==0&&AH()==125)continue}switch(K+=tC(I),I*O){case 38:B=b>0?1:(K+="\f",-1);break;case 44:m[v++]=(uu(K)-1)*B,B=1;break;case 64:mu()===45&&(K+=Wx(es())),w=mu(),b=x=uu(F=K+=PH(Hx())),I++;break;case 45:R===45&&uu(K)==2&&(O=0)}}return c}function KD(e,t,n,i,o,c,u,m,h,v,b){for(var x=o-1,w=o===0?c:[""],N=YA(w),R=0,O=0,M=0;R<i;++R)for(var B=0,I=py(e,x+1,x=wH(O=u[R])),F=e;B<N;++B)(F=cL(O>0?w[B]+" "+I:ur(I,/&\f/g,w[B])))&&(h[M++]=F);return rC(e,t,n,o===0?WA:m,h,v,b)}function IH(e,t,n){return rC(e,t,n,HA,tC(RH()),py(e,2,-2),0)}function XD(e,t,n,i){return rC(e,t,n,GA,py(e,0,i),py(e,i+1,-1),i)}function mL(e,t){switch(EH(e,t)){case 5103:return ar+"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 ar+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ar+e+d2+e+Ii+e+e;case 6828:case 4268:return ar+e+Ii+e+e;case 6165:return ar+e+Ii+"flex-"+e+e;case 5187:return ar+e+ur(e,/(\w+).+(:[^]+)/,ar+"box-$1$2"+Ii+"flex-$1$2")+e;case 5443:return ar+e+Ii+"flex-item-"+ur(e,/flex-|-self/,"")+e;case 4675:return ar+e+Ii+"flex-line-pack"+ur(e,/align-content|flex-|-self/,"")+e;case 5548:return ar+e+Ii+ur(e,"shrink","negative")+e;case 5292:return ar+e+Ii+ur(e,"basis","preferred-size")+e;case 6060:return ar+"box-"+ur(e,"-grow","")+ar+e+Ii+ur(e,"grow","positive")+e;case 4554:return ar+ur(e,/([^-])(transform)/g,"$1"+ar+"$2")+e;case 6187:return ur(ur(ur(e,/(zoom-|grab)/,ar+"$1"),/(image-set)/,ar+"$1"),e,"")+e;case 5495:case 3959:return ur(e,/(image-set\([^]*)/,ar+"$1$`$1");case 4968:return ur(ur(e,/(.+:)(flex-)?(.*)/,ar+"box-pack:$3"+Ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ar+e+e;case 4095:case 3583:case 4068:case 2532:return ur(e,/(.+)-inline(.+)/,ar+"$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(uu(e)-1-t>6)switch(Co(e,t+1)){case 109:if(Co(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+ar+"$2-$3$1"+d2+(Co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~c5(e,"stretch")?mL(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Co(e,t+1)!==115)break;case 6444:switch(Co(e,uu(e)-3-(~c5(e,"!important")&&10))){case 107:return ur(e,":",":"+ar)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ar+(Co(e,14)===45?"inline-":"")+"box$3$1"+ar+"$2$3$1"+Ii+"$2box$3")+e}break;case 5936:switch(Co(e,t+11)){case 114:return ar+e+Ii+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ar+e+Ii+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ar+e+Ii+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ar+e+Ii+e+e}return e}function Kh(e,t){for(var n="",i=YA(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function LH(e,t,n,i){switch(e.type){case CH:case GA:return e.return=e.return||e.value;case HA:return"";case uL:return e.return=e.value+"{"+Kh(e.children,i)+"}";case WA:e.value=e.props.join(",")}return uu(n=Kh(e.children,i))?e.return=e.value+"{"+n+"}":""}function FH(e){var t=YA(e);return function(n,i,o,c){for(var u="",m=0;m<t;m++)u+=e[m](n,i,o,c)||"";return u}}function zH(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case GA:e.return=mL(e.value,e.length);break;case uL:return Kh([M0(e,{value:ur(e.value,"@","@"+ar)})],i);case WA:if(e.length)return TH(e.props,function(o){switch(_H(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kh([M0(e,{props:[ur(o,/:(read-\w+)/,":"+d2+"$1")]})],i);case"::placeholder":return Kh([M0(e,{props:[ur(o,/:(plac\w+)/,":"+ar+"input-$1")]}),M0(e,{props:[ur(o,/:(plac\w+)/,":"+d2+"$1")]}),M0(e,{props:[ur(o,/:(plac\w+)/,Ii+"input-$1")]})],i)}return""})}}var ZD=function(t){var n=new WeakMap;return function(i){if(n.has(i))return n.get(i);var o=t(i);return n.set(i,o),o}};function hL(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BH=function(t,n,i){for(var o=0,c=0;o=c,c=mu(),o===38&&c===12&&(n[i]=1),!my(c);)es();return Uy(t,To)},UH=function(t,n){var i=-1,o=44;do switch(my(o)){case 0:o===38&&mu()===12&&(n[i]=1),t[i]+=BH(To-1,n,i);break;case 2:t[i]+=Wx(o);break;case 4:if(o===44){t[++i]=mu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=tC(o)}while(o=es());return t},$H=function(t,n){return pL(UH(dL(t),n))},QD=new WeakMap,jH=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!QD.get(i))&&!o){QD.set(t,!0);for(var c=[],u=$H(n,c),m=i.props,h=0,v=0;h<u.length;h++)for(var b=0;b<m.length;b++,v++)t.props[v]=c[h]?u[h].replace(/&\f/g,m[b]):m[b]+" "+u[h]}}},VH=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},HH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",WH=function(t){return t.type==="comm"&&t.children.indexOf(HH)>-1},GH=function(t){return function(n,i,o){if(!(n.type!=="rule"||t.compat)){var c=n.value.match(/(:first|:nth|:nth-last)-child/g);if(c){for(var u=n.parent===o[0],m=u?o[0].children:o,h=m.length-1;h>=0;h--){var v=m[h];if(v.line<n.line)break;if(v.column<n.column){if(WH(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".')})}}}},vL=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},YH=function(t,n){for(var i=t-1;i>=0;i--)if(!vL(n[i]))return!0;return!1},JD=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},qH=function(t,n,i){!vL(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."),JD(t)):YH(n,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),JD(t)))},KH=[zH],XH=function(t){var n=t.key;if(!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(O){var M=O.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var o=t.stylisPlugins||KH;if(/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var c={},u,m=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(O){for(var M=O.getAttribute("data-emotion").split(" "),B=1;B<M.length;B++)c[M[B]]=!0;m.push(O)});var h,v=[jH,VH];v.push(GH({get compat(){return R.compat}}),qH);{var b,x=[LH,function(O){O.root||(O.return?b.insert(O.return):O.value&&O.type!==HA&&b.insert(O.value+"{}"))}],w=FH(v.concat(o,x)),N=function(M){return Kh(MH(M),w)};h=function(M,B,I,F){b=I,B.map!==void 0&&(b={insert:function($){I.insert($+B.map)}}),N(M?M+"{"+B.styles+"}":B.styles),F&&(R.inserted[B.name]=!0)}}var R={key:n,sheet:new xH({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:h};return R.sheet.hydrate(m),R};function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hy.apply(this,arguments)}var aC={exports:{}},cr={};/** @license React v16.13.1
|
|
* react-is.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,m=e?Symbol.for("react.context"):60110,h=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,w=e?Symbol.for("react.suspense_list"):60120,N=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,O=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,B=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function F(Ge){return typeof Ge=="string"||typeof Ge=="function"||Ge===i||Ge===v||Ge===c||Ge===o||Ge===x||Ge===w||typeof Ge=="object"&&Ge!==null&&(Ge.$$typeof===R||Ge.$$typeof===N||Ge.$$typeof===u||Ge.$$typeof===m||Ge.$$typeof===b||Ge.$$typeof===M||Ge.$$typeof===B||Ge.$$typeof===I||Ge.$$typeof===O)}function z(Ge){if(typeof Ge=="object"&&Ge!==null){var Wt=Ge.$$typeof;switch(Wt){case t:var ye=Ge.type;switch(ye){case h:case v:case i:case c:case o:case x:return ye;default:var et=ye&&ye.$$typeof;switch(et){case m:case b:case R:case N:case u:return et;default:return Wt}}case n:return Wt}}}var $=h,q=v,K=m,le=u,me=t,se=b,Se=i,qe=R,ae=N,ue=n,Ee=c,de=o,ie=x,xe=!1;function Ne(Ge){return xe||(xe=!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.")),he(Ge)||z(Ge)===h}function he(Ge){return z(Ge)===v}function Ce(Ge){return z(Ge)===m}function Me(Ge){return z(Ge)===u}function Ie(Ge){return typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===t}function Ye(Ge){return z(Ge)===b}function at(Ge){return z(Ge)===i}function gt(Ge){return z(Ge)===R}function Ht(Ge){return z(Ge)===N}function Ze(Ge){return z(Ge)===n}function ct(Ge){return z(Ge)===c}function wt(Ge){return z(Ge)===o}function zt(Ge){return z(Ge)===x}cr.AsyncMode=$,cr.ConcurrentMode=q,cr.ContextConsumer=K,cr.ContextProvider=le,cr.Element=me,cr.ForwardRef=se,cr.Fragment=Se,cr.Lazy=qe,cr.Memo=ae,cr.Portal=ue,cr.Profiler=Ee,cr.StrictMode=de,cr.Suspense=ie,cr.isAsyncMode=Ne,cr.isConcurrentMode=he,cr.isContextConsumer=Ce,cr.isContextProvider=Me,cr.isElement=Ie,cr.isForwardRef=Ye,cr.isFragment=at,cr.isLazy=gt,cr.isMemo=Ht,cr.isPortal=Ze,cr.isProfiler=ct,cr.isStrictMode=wt,cr.isSuspense=zt,cr.isValidElementType=F,cr.typeOf=z})();(function(e){e.exports=cr})(aC);var gL=aC.exports,ZH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},QH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yL={};yL[gL.ForwardRef]=ZH;yL[gL.Memo]=QH;var JH=!0;function qA(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):i+=o+" "}),i}var iC=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||JH===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},oC=function(t,n,i){iC(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var c=n;do t.insert(n===c?"."+o:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function eW(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(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 tW={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},eP=`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`,nW="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",rW=/[A-Z]|^ms/g,bL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KA=function(t){return t.charCodeAt(1)===45},tP=function(t){return t!=null&&typeof t!="boolean"},uR=hL(function(e){return KA(e)?e:e.replace(rW,"-$&").toLowerCase()}),p2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(bL,function(i,o,c){return cu={name:o,styles:c,next:cu},o})}return tW[t]!==1&&!KA(t)&&typeof n=="number"&&n!==0?n+"px":n};{var aW=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,iW=["normal","none","initial","inherit","unset"],oW=p2,sW=/^-ms-/,lW=/-(.)/g,nP={};p2=function(t,n){if(t==="content"&&(typeof n!="string"||iW.indexOf(n)===-1&&!aW.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var i=oW(t,n);return i!==""&&!KA(t)&&t.indexOf("-")!==-1&&nP[t]===void 0&&(nP[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(sW,"ms-").replace(lW,function(o,c){return c.toUpperCase()})+"?")),i}}var SL="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function vy(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(SL);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return cu={name:n.name,styles:n.styles,next:cu},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)cu={name:i.name,styles:i.styles,next:cu},i=i.next;var o=n.styles+";";return n.map!==void 0&&(o+=n.map),o}return uW(e,t,n)}case"function":{if(e!==void 0){var c=cu,u=n(e);return cu=c,vy(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 m=[],h=n.replace(bL,function(b,x,w){var N="animation"+m.length;return m.push("const "+N+" = keyframes`"+w.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+N+"}"});m.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(m,["`"+h+"`"]).join(`
|
|
`)+`
|
|
|
|
You should wrap it with \`css\` like this:
|
|
|
|
`+("css`"+h+"`"))}break}if(t==null)return n;var v=t[n];return v!==void 0?v:n}function uW(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=vy(e,t,n[o])+";";else for(var c in n){var u=n[c];if(typeof u!="object")t!=null&&t[u]!==void 0?i+=c+"{"+t[u]+"}":tP(u)&&(i+=uR(c)+":"+p2(c,u)+";");else{if(c==="NO_COMPONENT_SELECTOR")throw new Error(SL);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var m=0;m<u.length;m++)tP(u[m])&&(i+=uR(c)+":"+p2(c,u[m])+";");else{var h=vy(e,t,u);switch(c){case"animation":case"animationName":{i+=uR(c)+":"+h+";";break}default:c==="undefined"&&console.error(nW),i+=c+"{"+h+"}"}}}}return i}var rP=/label:\s*([^\s;\n{]+)\s*(;|$)/g,xL;xL=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var cu,iv=function(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,c="";cu=void 0;var u=t[0];u==null||u.raw===void 0?(o=!1,c+=vy(i,n,u)):(u[0]===void 0&&console.error(eP),c+=u[0]);for(var m=1;m<t.length;m++)c+=vy(i,n,t[m]),o&&(u[m]===void 0&&console.error(eP),c+=u[m]);var h;c=c.replace(xL,function(w){return h=w,""}),rP.lastIndex=0;for(var v="",b;(b=rP.exec(c))!==null;)v+="-"+b[1];var x=eW(c)+v;return{name:x,styles:c,map:h,next:cu,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)."}}},cW=function(t){return t()},CL=zD["useInsertionEffect"]?zD["useInsertionEffect"]:!1,XA=CL||cW,aP=CL||k.exports.useLayoutEffect,fW={}.hasOwnProperty,ZA=k.exports.createContext(typeof HTMLElement<"u"?XH({key:"css"}):null);ZA.displayName="EmotionCacheContext";ZA.Provider;var sC=function(t){return k.exports.forwardRef(function(n,i){var o=k.exports.useContext(ZA);return t(n,o,i)})},Jf=k.exports.createContext({});Jf.displayName="EmotionThemeContext";var dW=function(t,n){if(typeof n=="function"){var i=n(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(n==null||typeof n!="object"||Array.isArray(n))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return hy({},t,n)},pW=ZD(function(e){return ZD(function(t){return dW(e,t)})}),mW=function(t){var n=k.exports.useContext(Jf);return t.theme!==n&&(n=pW(n)(t.theme)),k.exports.createElement(Jf.Provider,{value:n},t.children)},iP="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oP="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",hW=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return iC(n,i,o),XA(function(){return oC(n,i,o)}),null},vW=sC(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[iP],c=[i],u="";typeof e.className=="string"?u=qA(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var m=iv(c,void 0,k.exports.useContext(Jf));if(m.name.indexOf("-")===-1){var h=e[oP];h&&(m=iv([m,"label:"+h+";"]))}u+=t.key+"-"+m.name;var v={};for(var b in e)fW.call(e,b)&&b!=="css"&&b!==iP&&b!==oP&&(v[b]=e[b]);return v.ref=n,v.className=u,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(hW,{cache:t,serialized:m,isStringTag:typeof o=="string"}),k.exports.createElement(o,v))});vW.displayName="EmotionCssPropInternal";var gW={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"}}}},sP=!1,$y=sC(function(e,t){!sP&&(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?"),sP=!0);var n=e.styles,i=iv([n],void 0,k.exports.useContext(Jf)),o=k.exports.useRef();return aP(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}),m=!1,h=document.querySelector('style[data-emotion="'+c+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),h!==null&&(m=!0,h.setAttribute("data-emotion",c),u.hydrate([h])),o.current=[u,m],function(){u.flush()}},[t]),aP(function(){var c=o.current,u=c[0],m=c[1];if(m){c[1]=!1;return}if(i.next!==void 0&&oC(t,i.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});$y.displayName="EmotionGlobal";function yW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return iv(t)}var jy=function(){var t=yW.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},bW=function e(t){for(var n=t.length,i=0,o="";i<n;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 m in c)c[m]&&m&&(u&&(u+=" "),u+=m)}break}default:u=c}u&&(o&&(o+=" "),o+=u)}}return o};function SW(e,t,n){var i=[],o=qA(e,i,n);return i.length<2?n:o+t(i)}var xW=function(t){var n=t.cache,i=t.serializedArr;return XA(function(){for(var o=0;o<i.length;o++)oC(n,i[o],!1)}),null},CW=sC(function(e,t){var n=!1,i=[],o=function(){if(n)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 w=iv(b,t.registered);return i.push(w),iC(t,w,!1),t.key+"-"+w.name},c=function(){if(n)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 SW(t.registered,o,bW(b))},u={css:o,cx:c,theme:k.exports.useContext(Jf)},m=e.children(u);return n=!0,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(xW,{cache:t,serializedArr:i}),m)});CW.displayName="EmotionClassNames";{var lP=!0,wW=typeof jest<"u";if(lP&&!wW){var uP=typeof globalThis<"u"?globalThis:lP?window:global,cP="__EMOTION_REACT_"+gW.version.split(".")[0]+"__";uP[cP]&&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."),uP[cP]=!0}}function Hh(e){return typeof e=="function"}var NW=!0;function wL(e){return"current"in e}function EW(e,t){const n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}function _W(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var TW=e=>{const t=new WeakMap;return(i,o,c,u)=>{if(typeof i>"u")return e(i,o,c);t.has(i)||t.set(i,new Map);const m=t.get(i);if(m.has(o))return m.get(o);const h=e(i,o,c,u);return m.set(o,h),h}},NL=TW(_W);function EL(e,t){const n={};return Object.keys(e).forEach(i=>{const o=e[i];t(o,i,e)&&(n[i]=o)}),n}var _L=e=>EL(e,t=>t!=null);function QA(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function lC(e){if(!QA(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function RW(e){var t;return QA(e)?((t=Vy(e))==null?void 0:t.defaultView)??window:window}function Vy(e){return QA(e)?e.ownerDocument??document:document}function AW(e){return e.view??window}function kW(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Hy=kW();function OW(e){const t=Vy(e);return t?.activeElement}function JA(e,t){return e?e===t||e.contains(t):!1}var TL=e=>e.hasAttribute("tabindex"),DW=e=>TL(e)&&e.tabIndex===-1;function PW(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function MW(e){return lC(e)&&e.localName==="input"&&"select"in e}function RL(e){return(lC(e)?Vy(e):document).activeElement===e}function AL(e){return e.parentElement&&AL(e.parentElement)?!0:e.hidden}function IW(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function kL(e){if(!lC(e)||AL(e)||PW(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]():IW(e)?!0:TL(e)}function LW(e){return e?lC(e)&&kL(e)&&!DW(e):!1}var FW=["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]"],zW=FW.join(),BW=e=>e.offsetWidth>0&&e.offsetHeight>0;function UW(e){const t=Array.from(e.querySelectorAll(zW));return t.unshift(e),t.filter(n=>kL(n)&&BW(n))}function m2(e,...t){return Hh(e)?e(...t):e}function $W(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function jW(e){let t;return function(...i){return e&&(t=e.apply(this,i),e=null),t}}var VW=jW(e=>()=>{const{condition:t,message:n}=e;t&&NW&&console.warn(n)}),HW=(...e)=>t=>e.reduce((n,i)=>i(n),t);function h2(e,t={}){const{isActive:n=RL,nextTick:i,preventScroll:o=!0,selectTextIfInput:c=!0}=t;if(!e||n(e))return-1;function u(){if(!e){VW({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(WW())e.focus({preventScroll:o});else if(e.focus(),o){const m=GW(e);YW(m)}if(c){if(MW(e))e.select();else if("setSelectionRange"in e){const m=e;m.setSelectionRange(m.value.length,m.value.length)}}}return i?requestAnimationFrame(u):(u(),-1)}var hx=null;function WW(){if(hx==null){hx=!1;try{document.createElement("div").focus({get preventScroll(){return hx=!0,!0}})}catch{}}return hx}function GW(e){const t=Vy(e),n=t.defaultView??window;let i=e.parentNode;const o=[],c=t.scrollingElement||t.documentElement;for(;i instanceof n.HTMLElement&&i!==c;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return c instanceof n.HTMLElement&&o.push({element:c,scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}),o}function YW(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function qW(e){return!!e.touches}function KW(e){return t=>{const n=AW(t),i=t instanceof n.MouseEvent;(!i||i&&t.button===0)&&e(t)}}var XW={pageX:0,pageY:0};function ZW(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||XW;return{x:i[`${t}X`],y:i[`${t}Y`]}}function QW(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function JW(e,t="page"){return{point:qW(e)?ZW(e,t):QW(e,t)}}var eG=(e,t=!1)=>{const n=i=>e(i,JW(i));return t?KW(n):n},tG=()=>Hy&&window.onpointerdown===null,nG=()=>Hy&&window.ontouchstart===null,rG=()=>Hy&&window.onmousedown===null,aG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},iG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function oG(e){return tG()?e:nG()?iG[e]:rG()?aG[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function sG(e){const{userAgent:t,vendor:n}=e,i=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(i&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case i:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function lG(e){return Hy?sG(window.navigator)===e:!1}function uG(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=k.exports.createContext(void 0);o.displayName=i;function c(){var u;const m=k.exports.useContext(o);if(!m&&t){const h=new Error(n);throw h.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,h,c),h}return m}return[o.Provider,c,o]}var cG=/^((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)-.*))$/,fG=hL(function(e){return cG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),dG=fG,pG=function(t){return t!=="theme"},fP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?dG:pG},dP=function(t,n,i){var o;if(n){var c=n.shouldForwardProp;o=t.__emotion_forwardProp&&c?function(u){return t.__emotion_forwardProp(u)&&c(u)}:c}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},pP=`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`,mG=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return iC(n,i,o),XA(function(){return oC(n,i,o)}),null},hG=function e(t,n){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
You may have forgotten to import it.`);var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,c,u;n!==void 0&&(c=n.label,u=n.target);var m=dP(t,n,i),h=m||fP(o),v=!h("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(pP),x.push(b[0][0]);for(var w=b.length,N=1;N<w;N++)b[0][N]===void 0&&console.error(pP),x.push(b[N],b[0][N])}var R=sC(function(O,M,B){var I=v&&O.as||o,F="",z=[],$=O;if(O.theme==null){$={};for(var q in O)$[q]=O[q];$.theme=k.exports.useContext(Jf)}typeof O.className=="string"?F=qA(M.registered,z,O.className):O.className!=null&&(F=O.className+" ");var K=iv(x.concat(z),M.registered,$);F+=M.key+"-"+K.name,u!==void 0&&(F+=" "+u);var le=v&&m===void 0?fP(I):h,me={};for(var se in O)v&&se==="as"||le(se)&&(me[se]=O[se]);return me.className=F,me.ref=B,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(mG,{cache:M,serialized:K,isStringTag:typeof I=="string"}),k.exports.createElement(I,me))});return R.displayName=c!==void 0?c:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",R.defaultProps=t.defaultProps,R.__emotion_real=R,R.__emotion_base=o,R.__emotion_styles=x,R.__emotion_forwardProp=m,Object.defineProperty(R,"toString",{value:function(){return u===void 0?"NO_COMPONENT_SELECTOR":"."+u}}),R.withComponent=function(O,M){return e(O,hy({},n,M,{shouldForwardProp:dP(R,M,!0)})).apply(void 0,x)},R}},vG=["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"],d5=hG.bind();vG.forEach(function(e){d5[e]=d5(e)});var gG=typeof Element<"u",yG=typeof Map=="function",bG=typeof Set=="function",SG=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Yx(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!Yx(e[i],t[i]))return!1;return!0}var c;if(yG&&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(!Yx(i.value[1],t.get(i.value[0])))return!1;return!0}if(bG&&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(SG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(gG&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!Yx(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var xG=function(t,n){try{return Yx(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},v2="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function uC(){const e=k.exports.useContext(Jf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function OL(){const e=Q2(),t=uC();return{...e,theme:t}}function CG(e,t,n){if(t==null)return t;const i=o=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[o]};return i(t)??i(n)??n}function wG(e,t,n){if(t==null)return t;const i=o=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[o])==null?void 0:u.value};return i(t)??i(n)??n}function NG(e,t,n){const i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return c=>{const u=o.filter(Boolean),m=i.map((h,v)=>{if(e==="breakpoints")return CG(c,h,u[v]??h);const b=`${e}.${h}`;return wG(c,b,u[v]??h)});return Array.isArray(t)?m:m[0]}}function EG(e){const{cssVarsRoot:t,theme:n,children:i}=e,o=k.exports.useMemo(()=>aH(n),[n]);return _(mW,{theme:o,children:[_(_G,{root:t},void 0,!1,{fileName:v2,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:v2,lineNumber:80,columnNumber:26},this)}function _G({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _($y,{styles:n=>({[t]:n.__cssVars})},void 0,!1,{fileName:v2,lineNumber:88,columnNumber:26},this)}uG({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function TG(){const{colorMode:e}=Q2();return _($y,{styles:t=>{const n=NL(t,"styles.global"),i=m2(n,{theme:t,colorMode:e});return i?lL(i)(t):void 0}},void 0,!1,{fileName:v2,lineNumber:104,columnNumber:26},this)}var RG=new Set([...sH,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AG=new Set(["htmlWidth","htmlHeight","htmlSize"]);function kG(e){return AG.has(e)||!RG.has(e)}var OG=({baseStyle:e})=>t=>{const{theme:n,css:i,__css:o,sx:c,...u}=t,m=EL(u,(x,w)=>uH(w)),h=m2(e,t),v=Object.assign({},o,h,_L(m),c),b=lL(v)(t.theme);return i?[b,i]:b};function cR(e,t){const{baseStyle:n,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=kG);const o=OG({baseStyle:n});return d5(e,i)(o)}function Xe(e){return k.exports.forwardRef(e)}function DL(e,t={}){const{styleConfig:n,...i}=t,{theme:o,colorMode:c}=OL(),u=NL(o,`components.${e}`),m=n||u,h=Qf({theme:o,colorMode:c},m?.defaultProps??{},_L(EW(i,["children"]))),v=k.exports.useRef({});if(m){const x=gH(m)(h);xG(v.current,x)||(v.current=x)}return v.current}function ao(e,t={}){return DL(e,t)}function Ro(e,t={}){return DL(e,t)}function DG(){const e=new Map;return new Proxy(cR,{apply(t,n,i){return cR(...i)},get(t,n){return e.has(n)||e.set(n,cR(n)),e.get(n)}})}var $e=DG();function PG(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zr(e={}){const{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:c}=e,u=k.exports.createContext(void 0);u.displayName=t;function m(){var h;const v=k.exports.useContext(u);if(!v&&n){const b=new Error(c??PG(i,o));throw b.name="ContextError",(h=Error.captureStackTrace)==null||h.call(Error,b,m),b}return v}return[u.Provider,m,u]}function MG(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 ma(...e){return t=>{e.forEach(n=>{MG(n,t)})}}function IG(...e){return k.exports.useMemo(()=>ma(...e),e)}function mP(e){return e.sort((t,n)=>{const i=t.compareDocumentPosition(n);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 LG=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function hP(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function vP(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var p5=typeof window<"u"?k.exports.useLayoutEffect:k.exports.useEffect,g2=e=>e,FG=class{descendants=new Map;register=e=>{if(e!=null)return LG(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=mP(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=hP(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=hP(i,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=vP(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=vP(i,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),i=mP(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)}};function zG(){const e=k.exports.useRef(new FG);return p5(()=>()=>e.current.destroy()),e.current}var[BG,PL]=zr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function UG(e){const t=PL(),[n,i]=k.exports.useState(-1),o=k.exports.useRef(null);p5(()=>()=>{!o.current||t.unregister(o.current)},[]),p5(()=>{if(!o.current)return;const u=Number(o.current.dataset.index);n!=u&&!Number.isNaN(u)&&i(u)});const c=g2(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:ma(c,o)}}function $G(){return[g2(BG),()=>g2(PL()),()=>zG(),o=>UG(o)]}var qr=(...e)=>e.filter(Boolean).join(" "),vx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",gP={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:vx,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:vx,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:vx,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:vx,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},$s=Xe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:c=!1,children:u,className:m,__css:h,...v}=e,b=qr("chakra-icon",m),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},w={ref:t,focusable:c,className:b,__css:x},N=i??gP.viewBox;if(n&&typeof n!="string")return Pe.createElement($e.svg,{as:n,...w,...v});const R=u??gP.path;return Pe.createElement($e.svg,{verticalAlign:"middle",viewBox:N,...w,...v},R)});$s.displayName="Icon";function Li(e,t=[]){const n=k.exports.useRef(e);return k.exports.useEffect(()=>{n.current=e}),k.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function jG(e){const{value:t,defaultValue:n,onChange:i,shouldUpdate:o=(w,N)=>w!==N}=e,c=Li(i),u=Li(o),[m,h]=k.exports.useState(n),v=t!==void 0,b=v?t:m,x=k.exports.useCallback(w=>{const R=typeof w=="function"?w(b):w;!u(b,R)||(v||h(R),c(R))},[v,c,b,u]);return[b,x]}const ek=k.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cC=k.exports.createContext({});function VG(){return k.exports.useContext(cC).visualElement}const hv=k.exports.createContext(null),Qp=typeof document<"u",y2=Qp?k.exports.useLayoutEffect:k.exports.useEffect,ML=k.exports.createContext({strict:!1});function HG(e,t,n,i){const o=VG(),c=k.exports.useContext(ML),u=k.exports.useContext(hv),m=k.exports.useContext(ek).reducedMotion,h=k.exports.useRef(void 0);i=i||c.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:o,props:n,presenceId:u?u.id:void 0,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:m}));const v=h.current;return y2(()=>{v&&v.syncRender()}),k.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),y2(()=>()=>v&&v.notifyUnmount(),[]),v}function Wh(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function WG(e,t,n){return k.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Wh(n)&&(n.current=i))},[t])}function gy(e){return typeof e=="string"||Array.isArray(e)}function fC(e){return typeof e=="object"&&typeof e.start=="function"}const GG=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function dC(e){return fC(e.animate)||GG.some(t=>gy(e[t]))}function IL(e){return Boolean(dC(e)||e.variants)}function YG(e,t){if(dC(e)){const{initial:n,animate:i}=e;return{initial:n===!1||gy(n)?n:void 0,animate:gy(i)?i:void 0}}return e.inherit!==!1?t:{}}function qG(e){const{initial:t,animate:n}=YG(e,k.exports.useContext(cC));return k.exports.useMemo(()=>({initial:t,animate:n}),[yP(t),yP(n)])}function yP(e){return Array.isArray(e)?e.join(" "):e}const uc=e=>({isEnabled:t=>e.some(n=>!!t[n])}),yy={measureLayout:uc(["layout","layoutId","drag"]),animation:uc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:uc(["exit"]),drag:uc(["drag","dragControls"]),focus:uc(["whileFocus"]),hover:uc(["whileHover","onHoverStart","onHoverEnd"]),tap:uc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:uc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:uc(["whileInView","onViewportEnter","onViewportLeave"])};function KG(e){for(const t in e)t==="projectionNodeConstructor"?yy.projectionNodeConstructor=e[t]:yy[t].Component=e[t]}function pC(e){const t=k.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Z0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let XG=1;function ZG(){return pC(()=>{if(Z0.hasEverUpdated)return XG++})}const tk=k.exports.createContext({});class QG extends Pe.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const LL=k.exports.createContext({}),JG=Symbol.for("motionComponentSymbol");var bP="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function eY({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:i,useVisualState:o,Component:c}){e&&KG(e);function u(h,v){const b={...k.exports.useContext(ek),...h,layoutId:tY(h)},{isStatic:x}=b;let w=null;const N=qG(h),R=x?void 0:ZG(),O=o(h,x);if(!x&&Qp){N.visualElement=HG(c,O,b,t);const M=k.exports.useContext(ML).strict,B=k.exports.useContext(LL);N.visualElement&&(w=N.visualElement.loadFeatures(b,M,e,R,n||yy.projectionNodeConstructor,B))}return _(QG,{visualElement:N.visualElement,props:b,children:[w,_(cC.Provider,{value:N,children:i(c,h,R,WG(O,N.visualElement,v),O,x,N.visualElement)},void 0,!1,{fileName:bP,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:bP,lineNumber:79,columnNumber:17},this)}const m=k.exports.forwardRef(u);return m[JG]=c,m}function tY({layoutId:e}){const t=k.exports.useContext(tk).id;return t&&e!==void 0?t+"-"+e:e}function nY(e){function t(i,o={}){return eY(e(i,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const rY=["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 nk(e){return typeof e!="string"||e.includes("-")?!1:!!(rY.indexOf(e)>-1||/[A-Z]/.test(e))}const b2={};function aY(e){Object.assign(b2,e)}const S2=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wy=new Set(S2);function FL(e,{layout:t,layoutId:n}){return Wy.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!b2[e]||e==="opacity")}const Su=e=>!!e?.getVelocity,iY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oY=(e,t)=>S2.indexOf(e)-S2.indexOf(t);function sY({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,c){let u="";t.sort(oY);for(const m of t)u+=`${iY[m]||m}(${e[m]}) `;return n&&!e.z&&(u+="translateZ(0)"),u=u.trim(),c?u=c(e,o?"":u):i&&o&&(u="none"),u}function zL(e){return e.startsWith("--")}const lY=(e,t)=>t&&typeof e=="number"?t.transform(e):e,BL=(e,t)=>n=>Math.max(Math.min(n,t),e),Q0=e=>e%1?Number(e.toFixed(5)):e,by=/(-)?([\d]*\.?[\d])+/g,m5=/(#[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,uY=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gy(e){return typeof e=="string"}const Jp={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},J0=Object.assign(Object.assign({},Jp),{transform:BL(0,1)}),gx=Object.assign(Object.assign({},Jp),{default:1}),Yy=e=>({test:t=>Gy(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mf=Yy("deg"),hu=Yy("%"),Xt=Yy("px"),cY=Yy("vh"),fY=Yy("vw"),SP=Object.assign(Object.assign({},hu),{parse:e=>hu.parse(e)/100,transform:e=>hu.transform(e*100)}),rk=(e,t)=>n=>Boolean(Gy(n)&&uY.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UL=(e,t,n)=>i=>{if(!Gy(i))return i;const[o,c,u,m]=i.match(by);return{[e]:parseFloat(o),[t]:parseFloat(c),[n]:parseFloat(u),alpha:m!==void 0?parseFloat(m):1}},Up={test:rk("hsl","hue"),parse:UL("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+hu.transform(Q0(t))+", "+hu.transform(Q0(n))+", "+Q0(J0.transform(i))+")"},dY=BL(0,255),fR=Object.assign(Object.assign({},Jp),{transform:e=>Math.round(dY(e))}),jf={test:rk("rgb","red"),parse:UL("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+fR.transform(e)+", "+fR.transform(t)+", "+fR.transform(n)+", "+Q0(J0.transform(i))+")"};function pY(e){let t="",n="",i="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const h5={test:rk("#"),parse:pY,transform:jf.transform},no={test:e=>jf.test(e)||h5.test(e)||Up.test(e),parse:e=>jf.test(e)?jf.parse(e):Up.test(e)?Up.parse(e):h5.parse(e),transform:e=>Gy(e)?e:e.hasOwnProperty("red")?jf.transform(e):Up.transform(e)},$L="${c}",jL="${n}";function mY(e){var t,n,i,o;return isNaN(e)&&Gy(e)&&((n=(t=e.match(by))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(i=e.match(m5))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0)>0}function VL(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const i=e.match(m5);i&&(n=i.length,e=e.replace(m5,$L),t.push(...i.map(no.parse)));const o=e.match(by);return o&&(e=e.replace(by,jL),t.push(...o.map(Jp.parse))),{values:t,numColors:n,tokenised:e}}function HL(e){return VL(e).values}function WL(e){const{values:t,numColors:n,tokenised:i}=VL(e),o=t.length;return c=>{let u=i;for(let m=0;m<o;m++)u=u.replace(m<n?$L:jL,m<n?no.transform(c[m]):Q0(c[m]));return u}}const hY=e=>typeof e=="number"?0:e;function vY(e){const t=HL(e);return WL(e)(t.map(hY))}const Nc={test:mY,parse:HL,createTransformer:WL,getAnimatableNone:vY},gY=new Set(["brightness","contrast","saturate","opacity"]);function yY(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(by)||[];if(!i)return e;const o=n.replace(i,"");let c=gY.has(t)?1:0;return i!==n&&(c*=100),t+"("+c+o+")"}const bY=/([a-z-]*)\(.*?\)/g,v5=Object.assign(Object.assign({},Nc),{getAnimatableNone:e=>{const t=e.match(bY);return t?t.map(yY).join(" "):e}}),xP={...Jp,transform:Math.round},GL={borderWidth:Xt,borderTopWidth:Xt,borderRightWidth:Xt,borderBottomWidth:Xt,borderLeftWidth:Xt,borderRadius:Xt,radius:Xt,borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomRightRadius:Xt,borderBottomLeftRadius:Xt,width:Xt,maxWidth:Xt,height:Xt,maxHeight:Xt,size:Xt,top:Xt,right:Xt,bottom:Xt,left:Xt,padding:Xt,paddingTop:Xt,paddingRight:Xt,paddingBottom:Xt,paddingLeft:Xt,margin:Xt,marginTop:Xt,marginRight:Xt,marginBottom:Xt,marginLeft:Xt,rotate:Mf,rotateX:Mf,rotateY:Mf,rotateZ:Mf,scale:gx,scaleX:gx,scaleY:gx,scaleZ:gx,skew:Mf,skewX:Mf,skewY:Mf,distance:Xt,translateX:Xt,translateY:Xt,translateZ:Xt,x:Xt,y:Xt,z:Xt,perspective:Xt,transformPerspective:Xt,opacity:J0,originX:SP,originY:SP,originZ:Xt,zIndex:xP,fillOpacity:J0,strokeOpacity:J0,numOctaves:xP};function ak(e,t,n,i){const{style:o,vars:c,transform:u,transformKeys:m,transformOrigin:h}=e;m.length=0;let v=!1,b=!1,x=!0;for(const w in t){const N=t[w];if(zL(w)){c[w]=N;continue}const R=GL[w],O=lY(N,R);if(Wy.has(w)){if(v=!0,u[w]=O,m.push(w),!x)continue;N!==(R.default||0)&&(x=!1)}else w.startsWith("origin")?(b=!0,h[w]=O):o[w]=O}if(v||i?o.transform=sY(e,n,x,i):!t.transform&&o.transform&&(o.transform="none"),b){const{originX:w="50%",originY:N="50%",originZ:R=0}=h;o.transformOrigin=`${w} ${N} ${R}`}}const ik=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function YL(e,t,n){for(const i in t)!Su(t[i])&&!FL(i,n)&&(e[i]=t[i])}function SY({transformTemplate:e},t,n){return k.exports.useMemo(()=>{const i=ik();return ak(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}function xY(e,t,n){const i=e.style||{},o={};return YL(o,i,e),Object.assign(o,SY(e,t,n)),e.transformValues?e.transformValues(o):o}function CY(e,t,n){const i={},o=xY(e,t,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),i.style=o,i}const wY=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],NY=["whileTap","onTap","onTapStart","onTapCancel"],EY=["onPan","onPanStart","onPanSessionStart","onPanEnd"],_Y=["whileInView","onViewportEnter","onViewportLeave","viewport"],TY=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",..._Y,...NY,...wY,...EY]);function x2(e){return TY.has(e)}let qL=e=>!x2(e);function RY(e){!e||(qL=t=>t.startsWith("on")?!x2(t):e(t))}try{RY(require("@emotion/is-prop-valid").default)}catch{}function AY(e,t,n){const i={};for(const o in e)(qL(o)||n===!0&&x2(o)||!t&&!x2(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function CP(e,t,n){return typeof e=="string"?e:Xt.transform(t+n*e)}function kY(e,t,n){const i=CP(t,e.x,e.width),o=CP(n,e.y,e.height);return`${i} ${o}`}const OY={offset:"stroke-dashoffset",array:"stroke-dasharray"},DY={offset:"strokeDashoffset",array:"strokeDasharray"};function PY(e,t,n=1,i=0,o=!0){e.pathLength=1;const c=o?OY:DY;e[c.offset]=Xt.transform(-i);const u=Xt.transform(t),m=Xt.transform(n);e[c.array]=`${u} ${m}`}function ok(e,{attrX:t,attrY:n,originX:i,originY:o,pathLength:c,pathSpacing:u=1,pathOffset:m=0,...h},v,b){ak(e,h,v,b),e.attrs=e.style,e.style={};const{attrs:x,style:w,dimensions:N}=e;x.transform&&(N&&(w.transform=x.transform),delete x.transform),N&&(i!==void 0||o!==void 0||w.transform)&&(w.transformOrigin=kY(N,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),c!==void 0&&PY(x,c,u,m,!1)}const KL=()=>({...ik(),attrs:{}});function MY(e,t){const n=k.exports.useMemo(()=>{const i=KL();return ok(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};YL(i,e.style,e),n.style={...i,...n.style}}return n}function IY(e=!1){return(n,i,o,c,{latestValues:u},m)=>{const v=(nk(n)?MY:CY)(i,u,m),x={...AY(i,typeof n=="string",e),...v,ref:c};return o&&(x["data-projection-id"]=o),k.exports.createElement(n,x)}}const XL=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ZL(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const c in n)e.style.setProperty(c,n[c])}const QL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function JL(e,t,n,i){ZL(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(QL.has(o)?o:XL(o),t.attrs[o])}function sk(e){const{style:t}=e,n={};for(const i in t)(Su(t[i])||FL(i,e))&&(n[i]=t[i]);return n}function e9(e){const t=sk(e);for(const n in e)if(Su(e[n])){const i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[i]=e[n]}return t}function t9(e,t,n,i={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),t}const Sy=e=>Array.isArray(e),LY=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),n9=e=>Sy(e)?e[e.length-1]||0:e;function qx(e){const t=Su(e)?e.get():e;return LY(t)?t.toValue():t}function FY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,c){const u={latestValues:zY(i,o,c,e),renderState:t()};return n&&(u.mount=m=>n(i,m,u)),u}const r9=e=>(t,n)=>{const i=k.exports.useContext(cC),o=k.exports.useContext(hv),c=()=>FY(e,t,i,o);return n?c():pC(c)};function zY(e,t,n,i){const o={},c=i(e);for(const w in c)o[w]=qx(c[w]);let{initial:u,animate:m}=e;const h=dC(e),v=IL(e);t&&v&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),m===void 0&&(m=t.animate));let b=n?n.initial===!1:!1;b=b||u===!1;const x=b?m:u;return x&&typeof x!="boolean"&&!fC(x)&&(Array.isArray(x)?x:[x]).forEach(N=>{const R=t9(e,N);if(!R)return;const{transitionEnd:O,transition:M,...B}=R;for(const I in B){let F=B[I];if(Array.isArray(F)){const z=b?F.length-1:0;F=F[z]}F!==null&&(o[I]=F)}for(const I in O)o[I]=O[I]}),o}const BY={useVisualState:r9({scrapeMotionValuesFromProps:e9,createRenderState:KL,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}ok(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),JL(t,n)}})},UY={useVisualState:r9({scrapeMotionValuesFromProps:sk,createRenderState:ik})};function $Y(e,{forwardMotionProps:t=!1},n,i,o){return{...nk(e)?BY:UY,preloadedFeatures:n,useRender:IY(t),createVisualElement:i,projectionNodeConstructor:o,Component:e}}var Er;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Er||(Er={}));function mC(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function g5(e,t,n,i){k.exports.useEffect(()=>{const o=e.current;if(n&&o)return mC(o,t,n,i)},[e,t,n,i])}function jY({whileFocus:e,visualElement:t}){const{animationState:n}=t,i=()=>{n&&n.setActive(Er.Focus,!0)},o=()=>{n&&n.setActive(Er.Focus,!1)};g5(t,"focus",e?i:void 0),g5(t,"blur",e?o:void 0)}function a9(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function i9(e){return!!e.touches}function VY(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const HY={pageX:0,pageY:0};function WY(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||HY;return{x:i[t+"X"],y:i[t+"Y"]}}function GY(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function lk(e,t="page"){return{point:i9(e)?WY(e,t):GY(e,t)}}const o9=(e,t=!1)=>{const n=i=>e(i,lk(i));return t?VY(n):n},YY=()=>Qp&&window.onpointerdown===null,qY=()=>Qp&&window.ontouchstart===null,KY=()=>Qp&&window.onmousedown===null,XY={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ZY={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function s9(e){return YY()?e:qY()?ZY[e]:KY()?XY[e]:e}function Xh(e,t,n,i){return mC(e,s9(t),o9(n,t==="pointerdown"),i)}function C2(e,t,n,i){return g5(e,s9(t),n&&o9(n,t==="pointerdown"),i)}function l9(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wP=l9("dragHorizontal"),NP=l9("dragVertical");function u9(e){let t=!1;if(e==="y")t=NP();else if(e==="x")t=wP();else{const n=wP(),i=NP();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function c9(){const e=u9(!0);return e?(e(),!1):!0}function EP(e,t,n){return(i,o)=>{!a9(i)||c9()||(e.animationState&&e.animationState.setActive(Er.Hover,t),n&&n(i,o))}}function QY({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:i}){C2(i,"pointerenter",e||n?EP(i,!0,e):void 0,{passive:!e}),C2(i,"pointerleave",t||n?EP(i,!1,t):void 0,{passive:!t})}const f9=(e,t)=>t?e===t?!0:f9(e,t.parentElement):!1;function uk(e){return k.exports.useEffect(()=>()=>e(),[])}var fu=function(){return fu=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(t[c]=n[c])}return t},fu.apply(this,arguments)};function hC(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function vv(e,t,n,i){function o(c){return c instanceof n?c:new n(function(u){u(c)})}return new(n||(n=Promise))(function(c,u){function m(b){try{v(i.next(b))}catch(x){u(x)}}function h(b){try{v(i.throw(b))}catch(x){u(x)}}function v(b){b.done?c(b.value):o(b.value).then(m,h)}v((i=i.apply(e,t||[])).next())})}function gv(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,o,c,u;return u={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function m(v){return function(b){return h([v,b])}}function h(v){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(c=v[0]&2?o.return:v[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,v[1])).done)return c;switch(o=0,c&&(v=[v[0]&2,c.value]),v[0]){case 0:case 1:c=v;break;case 4:return n.label++,{value:v[1],done:!1};case 5:n.label++,o=v[1],v=[0];continue;case 7:v=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(v[0]===6||v[0]===2)){n=0;continue}if(v[0]===3&&(!c||v[1]>c[0]&&v[1]<c[3])){n.label=v[1];break}if(v[0]===6&&n.label<c[1]){n.label=c[1],c=v;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(v);break}c[2]&&n.ops.pop(),n.trys.pop();continue}v=t.call(e,n)}catch(b){v=[6,b],o=0}finally{i=c=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function _P(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)c.push(o.value)}catch(m){u={error:m}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return c}function y5(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,c;i<o;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 qy=function(){},Fs=function(){};qy=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Fs=function(e,t){if(!e)throw new Error(t)};const w2=(e,t,n)=>Math.min(Math.max(n,e),t),dR=.001,JY=.01,TP=10,eq=.05,tq=1;function nq({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,c;qy(e<=TP*1e3,"Spring duration must be 10 seconds or less");let u=1-t;u=w2(eq,tq,u),e=w2(JY,TP,e/1e3),u<1?(o=v=>{const b=v*u,x=b*e,w=b-n,N=b5(v,u),R=Math.exp(-x);return dR-w/N*R},c=v=>{const x=v*u*e,w=x*n+n,N=Math.pow(u,2)*Math.pow(v,2)*e,R=Math.exp(-x),O=b5(Math.pow(v,2),u);return(-o(v)+dR>0?-1:1)*((w-N)*R)/O}):(o=v=>{const b=Math.exp(-v*e),x=(v-n)*e+1;return-dR+b*x},c=v=>{const b=Math.exp(-v*e),x=(n-v)*(e*e);return b*x});const m=5/e,h=aq(o,c,m);if(e=e*1e3,isNaN(h))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(h,2)*i;return{stiffness:v,damping:u*2*Math.sqrt(i*v),duration:e}}}const rq=12;function aq(e,t,n){let i=n;for(let o=1;o<rq;o++)i=i-e(i)/t(i);return i}function b5(e,t){return e*Math.sqrt(1-t*t)}const iq=["duration","bounce"],oq=["stiffness","damping","mass"];function RP(e,t){return t.some(n=>e[n]!==void 0)}function sq(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!RP(e,oq)&&RP(e,iq)){const n=nq(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ck(e){var{from:t=0,to:n=1,restSpeed:i=2,restDelta:o}=e,c=hC(e,["from","to","restSpeed","restDelta"]);const u={done:!1,value:t};let{stiffness:m,damping:h,mass:v,velocity:b,duration:x,isResolvedFromDuration:w}=sq(c),N=AP,R=AP;function O(){const M=b?-(b/1e3):0,B=n-t,I=h/(2*Math.sqrt(m*v)),F=Math.sqrt(m/v)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),I<1){const z=b5(F,I);N=$=>{const q=Math.exp(-I*F*$);return n-q*((M+I*F*B)/z*Math.sin(z*$)+B*Math.cos(z*$))},R=$=>{const q=Math.exp(-I*F*$);return I*F*q*(Math.sin(z*$)*(M+I*F*B)/z+B*Math.cos(z*$))-q*(Math.cos(z*$)*(M+I*F*B)-z*B*Math.sin(z*$))}}else if(I===1)N=z=>n-Math.exp(-F*z)*(B+(M+F*B)*z);else{const z=F*Math.sqrt(I*I-1);N=$=>{const q=Math.exp(-I*F*$),K=Math.min(z*$,300);return n-q*((M+I*F*B)*Math.sinh(K)+z*B*Math.cosh(K))/z}}}return O(),{next:M=>{const B=N(M);if(w)u.done=M>=x;else{const I=R(M)*1e3,F=Math.abs(I)<=i,z=Math.abs(n-B)<=o;u.done=F&&z}return u.value=u.done?n:B,u},flipTarget:()=>{b=-b,[t,n]=[n,t],O()}}}ck.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const AP=e=>0,xy=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Wr=(e,t,n)=>-n*e+n*t+e;function pR(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kP({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,c=0,u=0;if(!t)o=c=u=n;else{const m=n<.5?n*(1+t):n+t-n*t,h=2*n-m;o=pR(h,m,e+1/3),c=pR(h,m,e),u=pR(h,m,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}const lq=(e,t,n)=>{const i=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-i)+i))},uq=[h5,jf,Up],OP=e=>uq.find(t=>t.test(e)),DP=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,d9=(e,t)=>{let n=OP(e),i=OP(t);Fs(!!n,DP(e)),Fs(!!i,DP(t));let o=n.parse(e),c=i.parse(t);n===Up&&(o=kP(o),n=jf),i===Up&&(c=kP(c),i=jf);const u=Object.assign({},o);return m=>{for(const h in u)h!=="alpha"&&(u[h]=lq(o[h],c[h],m));return u.alpha=Wr(o.alpha,c.alpha,m),n.transform(u)}},S5=e=>typeof e=="number",cq=(e,t)=>n=>t(e(n)),vC=(...e)=>e.reduce(cq);function p9(e,t){return S5(e)?n=>Wr(e,t,n):no.test(e)?d9(e,t):h9(e,t)}const m9=(e,t)=>{const n=[...e],i=n.length,o=e.map((c,u)=>p9(c,t[u]));return c=>{for(let u=0;u<i;u++)n[u]=o[u](c);return n}},fq=(e,t)=>{const n=Object.assign(Object.assign({},e),t),i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=p9(e[o],t[o]));return o=>{for(const c in i)n[c]=i[c](o);return n}};function PP(e){const t=Nc.parse(e),n=t.length;let i=0,o=0,c=0;for(let u=0;u<n;u++)i||typeof t[u]=="number"?i++:t[u].hue!==void 0?c++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:c}}const h9=(e,t)=>{const n=Nc.createTransformer(t),i=PP(e),o=PP(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?vC(m9(i.parsed,o.parsed),n):(qy(!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}`)},dq=(e,t)=>n=>Wr(e,t,n);function pq(e){if(typeof e=="number")return dq;if(typeof e=="string")return no.test(e)?d9:h9;if(Array.isArray(e))return m9;if(typeof e=="object")return fq}function mq(e,t,n){const i=[],o=n||pq(e[0]),c=e.length-1;for(let u=0;u<c;u++){let m=o(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]:t;m=vC(h,m)}i.push(m)}return i}function hq([e,t],[n]){return i=>n(xy(e,t,i))}function vq(e,t){const n=e.length,i=n-1;return o=>{let c=0,u=!1;if(o<=e[0]?u=!0:o>=e[i]&&(c=i-1,u=!0),!u){let h=1;for(;h<n&&!(e[h]>o||h===i);h++);c=h-1}const m=xy(e[c],e[c+1],o);return t[c](m)}}function v9(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const c=e.length;Fs(c===t.length,"Both input and output ranges must be the same length"),Fs(!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=mq(t,i,o),m=c===2?hq(e,u):vq(e,u);return n?h=>m(w2(e[0],e[c-1],h)):m}const gC=e=>t=>1-e(1-t),fk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gq=e=>t=>Math.pow(t,e),g9=e=>t=>t*t*((e+1)*t-e),yq=e=>{const t=g9(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},y9=1.525,bq=4/11,Sq=8/11,xq=9/10,dk=e=>e,pk=gq(2),Cq=gC(pk),b9=fk(pk),S9=e=>1-Math.sin(Math.acos(e)),mk=gC(S9),wq=fk(mk),hk=g9(y9),Nq=gC(hk),Eq=fk(hk),_q=yq(y9),Tq=4356/361,Rq=35442/1805,Aq=16061/1805,N2=e=>{if(e===1||e===0)return e;const t=e*e;return e<bq?7.5625*t:e<Sq?9.075*t-9.9*e+3.4:e<xq?Tq*t-Rq*e+Aq:10.8*e*e-20.52*e+10.72},kq=gC(N2),Oq=e=>e<.5?.5*(1-N2(1-e*2)):.5*N2(e*2-1)+.5;function Dq(e,t){return e.map(()=>t||b9).splice(0,e.length-1)}function Pq(e){const t=e.length;return e.map((n,i)=>i!==0?i/(t-1):0)}function Mq(e,t){return e.map(n=>n*t)}function Kx({from:e=0,to:t=1,ease:n,offset:i,duration:o=300}){const c={done:!1,value:e},u=Array.isArray(t)?t:[e,t],m=Mq(i&&i.length===u.length?i:Pq(u),o);function h(){return v9(m,u,{ease:Array.isArray(n)?n:Dq(u,n)})}let v=h();return{next:b=>(c.value=v(b),c.done=b>=o,c),flipTarget:()=>{u.reverse(),v=h()}}}function Iq({velocity:e=0,from:t=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:c}){const u={done:!1,value:t};let m=n*e;const h=t+m,v=c===void 0?h:c(h);return v!==h&&(m=v-t),{next:b=>{const x=-m*Math.exp(-b/i);return u.done=!(x>o||x<-o),u.value=u.done?v:v+x,u},flipTarget:()=>{}}}const MP={keyframes:Kx,spring:ck,decay:Iq};function Lq(e){if(Array.isArray(e.to))return Kx;if(MP[e.type])return MP[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Kx:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ck:Kx}const x9=1/60*1e3,Fq=typeof performance<"u"?()=>performance.now():()=>Date.now(),C9=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Fq()),x9);function zq(e){let t=[],n=[],i=0,o=!1,c=!1;const u=new WeakSet,m={schedule:(h,v=!1,b=!1)=>{const x=b&&o,w=x?t:n;return v&&u.add(h),w.indexOf(h)===-1&&(w.push(h),x&&o&&(i=t.length)),h},cancel:h=>{const v=n.indexOf(h);v!==-1&&n.splice(v,1),u.delete(h)},process:h=>{if(o){c=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(h),u.has(b)&&(m.schedule(b),e())}o=!1,c&&(c=!1,m.process(h))}};return m}const Bq=40;let x5=!0,Cy=!1,C5=!1;const Zh={delta:0,timestamp:0},Ky=["read","update","preRender","render","postRender"],yC=Ky.reduce((e,t)=>(e[t]=zq(()=>Cy=!0),e),{}),Uq=Ky.reduce((e,t)=>{const n=yC[t];return e[t]=(i,o=!1,c=!1)=>(Cy||Vq(),n.schedule(i,o,c)),e},{}),$q=Ky.reduce((e,t)=>(e[t]=yC[t].cancel,e),{});Ky.reduce((e,t)=>(e[t]=()=>yC[t].process(Zh),e),{});const jq=e=>yC[e].process(Zh),w9=e=>{Cy=!1,Zh.delta=x5?x9:Math.max(Math.min(e-Zh.timestamp,Bq),1),Zh.timestamp=e,C5=!0,Ky.forEach(jq),C5=!1,Cy&&(x5=!1,C9(w9))},Vq=()=>{Cy=!0,x5=!0,C5||C9(w9)},Hq=()=>Zh;function N9(e,t,n=0){return e-t-n}function Wq(e,t,n=0,i=!0){return i?N9(t+-e,t,n):t-(e-t)+n}function Gq(e,t,n,i){return i?e>=t+n:e<=-n}const Yq=e=>{const t=({delta:n})=>e(n);return{start:()=>Uq.update(t,!0),stop:()=>$q.update(t)}};function E9(e){var t,n,{from:i,autoplay:o=!0,driver:c=Yq,elapsed:u=0,repeat:m=0,repeatType:h="loop",repeatDelay:v=0,onPlay:b,onStop:x,onComplete:w,onRepeat:N,onUpdate:R}=e,O=hC(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=O,B,I=0,F=O.duration,z,$=!1,q=!0,K;const le=Lq(O);!((n=(t=le).needsInterpolation)===null||n===void 0)&&n.call(t,i,M)&&(K=v9([0,100],[i,M],{clamp:!1}),i=0,M=100);const me=le(Object.assign(Object.assign({},O),{from:i,to:M}));function se(){I++,h==="reverse"?(q=I%2===0,u=Wq(u,F,v,q)):(u=N9(u,F,v),h==="mirror"&&me.flipTarget()),$=!1,N&&N()}function Se(){B.stop(),w&&w()}function qe(ue){if(q||(ue=-ue),u+=ue,!$){const Ee=me.next(Math.max(0,u));z=Ee.value,K&&(z=K(z)),$=q?Ee.done:u<=0}R?.(z),$&&(I===0&&(F??(F=u)),I<m?Gq(u,F,v,q)&&se():Se())}function ae(){b?.(),B=c(qe),B.start()}return o&&ae(),{stop:()=>{x?.(),B.stop()}}}function _9(e,t){return t?e*(1e3/t):0}function qq({from:e=0,velocity:t=0,min:n,max:i,power:o=.8,timeConstant:c=750,bounceStiffness:u=500,bounceDamping:m=10,restDelta:h=1,modifyTarget:v,driver:b,onUpdate:x,onComplete:w,onStop:N}){let R;function O(F){return n!==void 0&&F<n||i!==void 0&&F>i}function M(F){return n===void 0?i:i===void 0||Math.abs(n-F)<Math.abs(i-F)?n:i}function B(F){R?.stop(),R=E9(Object.assign(Object.assign({},F),{driver:b,onUpdate:z=>{var $;x?.(z),($=F.onUpdate)===null||$===void 0||$.call(F,z)},onComplete:w,onStop:N}))}function I(F){B(Object.assign({type:"spring",stiffness:u,damping:m,restDelta:h},F))}if(O(e))I({from:e,velocity:t,to:M(e)});else{let F=o*t+e;typeof v<"u"&&(F=v(F));const z=M(F),$=z===n?-1:1;let q,K;const le=me=>{q=K,K=me,t=_9(me-q,Hq().delta),($===1&&me>z||$===-1&&me<z)&&I({from:me,to:z,velocity:t})};B({type:"decay",from:e,velocity:t,timeConstant:c,power:o,restDelta:h,modifyTarget:v,onUpdate:O(F)?le:void 0})}return{stop:()=>R?.stop()}}const w5=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),IP=e=>w5(e)&&e.hasOwnProperty("z"),yx=(e,t)=>Math.abs(e-t);function vk(e,t){if(S5(e)&&S5(t))return yx(e,t);if(w5(e)&&w5(t)){const n=yx(e.x,t.x),i=yx(e.y,t.y),o=IP(e)&&IP(t)?yx(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}const T9=(e,t)=>1-3*t+3*e,R9=(e,t)=>3*t-6*e,A9=e=>3*e,E2=(e,t,n)=>((T9(t,n)*e+R9(t,n))*e+A9(t))*e,k9=(e,t,n)=>3*T9(t,n)*e*e+2*R9(t,n)*e+A9(t),Kq=1e-7,Xq=10;function Zq(e,t,n,i,o){let c,u,m=0;do u=t+(n-t)/2,c=E2(u,i,o)-e,c>0?n=u:t=u;while(Math.abs(c)>Kq&&++m<Xq);return u}const Qq=8,Jq=.001;function eK(e,t,n,i){for(let o=0;o<Qq;++o){const c=k9(t,n,i);if(c===0)return t;t-=(E2(t,n,i)-e)/c}return t}const Xx=11,bx=1/(Xx-1);function tK(e,t,n,i){if(e===t&&n===i)return dk;const o=new Float32Array(Xx);for(let u=0;u<Xx;++u)o[u]=E2(u*bx,e,n);function c(u){let m=0,h=1;const v=Xx-1;for(;h!==v&&o[h]<=u;++h)m+=bx;--h;const b=(u-o[h])/(o[h+1]-o[h]),x=m+b*bx,w=k9(x,e,n);return w>=Jq?eK(u,x,e,n):w===0?x:Zq(u,m,m+bx,e,n)}return u=>u===0||u===1?u:E2(c(u),t,i)}function nK({onTap:e,onTapStart:t,onTapCancel:n,whileTap:i,visualElement:o}){const c=e||t||n||i,u=k.exports.useRef(!1),m=k.exports.useRef(null),h={passive:!(t||e||n||N)};function v(){m.current&&m.current(),m.current=null}function b(){return v(),u.current=!1,o.animationState&&o.animationState.setActive(Er.Tap,!1),!c9()}function x(R,O){!b()||(f9(o.getInstance(),R.target)?e&&e(R,O):n&&n(R,O))}function w(R,O){!b()||n&&n(R,O)}function N(R,O){v(),!u.current&&(u.current=!0,m.current=vC(Xh(window,"pointerup",x,h),Xh(window,"pointercancel",w,h)),o.animationState&&o.animationState.setActive(Er.Tap,!0),t&&t(R,O))}C2(o,"pointerdown",c?N:void 0,h),uk(v)}const rK="production",gk=typeof process>"u"||process.env===void 0?rK:"development",LP=new Set;function yk(e,t,n){e||LP.has(t)||(console.warn(t),n&&console.warn(n),LP.add(t))}const N5=new WeakMap,mR=new WeakMap,aK=e=>{const t=N5.get(e.target);t&&t(e)},iK=e=>{e.forEach(aK)};function oK({root:e,...t}){const n=e||document;mR.has(n)||mR.set(n,{});const i=mR.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(iK,{root:e,...t})),i[o]}function sK(e,t,n){const i=oK(t);return N5.set(e,n),i.observe(e),()=>{N5.delete(e),i.unobserve(e)}}function lK({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:i,viewport:o={}}){const c=k.exports.useRef({hasEnteredView:!1,isInView:!1});let u=Boolean(t||n||i);o.once&&c.current.hasEnteredView&&(u=!1),(typeof IntersectionObserver>"u"?fK:cK)(u,c.current,e,o)}const uK={some:0,all:1};function cK(e,t,n,{root:i,margin:o,amount:c="some",once:u}){k.exports.useEffect(()=>{if(!e)return;const m={root:i?.current,rootMargin:o,threshold:typeof c=="number"?c:uK[c]},h=v=>{const{isIntersecting:b}=v;if(t.isInView===b||(t.isInView=b,u&&!b&&t.hasEnteredView))return;b&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Er.InView,b);const x=n.getProps(),w=b?x.onViewportEnter:x.onViewportLeave;w&&w(v)};return sK(n.getInstance(),m,h)},[e,i,o,c])}function fK(e,t,n,{fallback:i=!0}){k.exports.useEffect(()=>{!e||!i||(gk!=="production"&&yk(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Er.InView,!0)}))},[e])}const Vf=e=>t=>(e(t),null),dK={inView:Vf(lK),tap:Vf(nK),focus:Vf(jY),hover:Vf(QY)};function bk(){const e=k.exports.useContext(hv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=k.exports.useId();return k.exports.useEffect(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function pK(){return mK(k.exports.useContext(hv))}function mK(e){return e===null?!0:e.isPresent}function O9(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const _2=e=>e*1e3,FP={linear:dk,easeIn:pk,easeInOut:b9,easeOut:Cq,circIn:S9,circInOut:wq,circOut:mk,backIn:hk,backInOut:Eq,backOut:Nq,anticipate:_q,bounceIn:kq,bounceInOut:Oq,bounceOut:N2},zP=e=>{if(Array.isArray(e)){Fs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return tK(t,n,i,o)}else if(typeof e=="string")return Fs(FP[e]!==void 0,`Invalid easing type '${e}'`),FP[e];return e},hK=e=>Array.isArray(e)&&typeof e[0]!="number",BP=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Nc.test(t)&&!t.startsWith("url(")),Ep=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Sx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hR=()=>({type:"keyframes",ease:"linear",duration:.3}),vK=e=>({type:"keyframes",duration:.8,values:e}),UP={x:Ep,y:Ep,z:Ep,rotate:Ep,rotateX:Ep,rotateY:Ep,rotateZ:Ep,scaleX:Sx,scaleY:Sx,scale:Sx,opacity:hR,backgroundColor:hR,color:hR,default:Sx},gK=(e,t)=>{let n;return Sy(t)?n=vK:n=UP[e]||UP.default,{to:t,...n(t)}},yK={...GL,color:no,backgroundColor:no,outlineColor:no,fill:no,stroke:no,borderColor:no,borderTopColor:no,borderRightColor:no,borderBottomColor:no,borderLeftColor:no,filter:v5,WebkitFilter:v5},Sk=e=>yK[e];function xk(e,t){var n;let i=Sk(e);return i!==v5&&(i=Nc),(n=i.getAnimatableNone)===null||n===void 0?void 0:n.call(i,t)}const bK={current:!1};function SK({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:m,from:h,...v}){return!!Object.keys(v).length}let $P=!1;function xK({ease:e,times:t,yoyo:n,flip:i,loop:o,...c}){const u={...c};return t&&(u.offset=t),c.duration&&(u.duration=_2(c.duration)),c.repeatDelay&&(u.repeatDelay=_2(c.repeatDelay)),e&&(u.ease=hK(e)?e.map(zP):zP(e)),c.type==="tween"&&(u.type="keyframes"),(n||o||i)&&(qy(!$P,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),$P=!0,n?u.repeatType="reverse":o?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=o||n||i||c.repeat),c.type!=="spring"&&(u.type="keyframes"),u}function CK(e,t){var n,i;return(i=(n=(Ck(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&i!==void 0?i:0}function wK(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function NK(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),wK(t),SK(e)||(e={...e,...gK(n,t.to)}),{...t,...xK(e)}}function EK(e,t,n,i,o){const c=Ck(i,e)||{};let u=c.from!==void 0?c.from:t.get();const m=BP(e,n);u==="none"&&m&&typeof n=="string"?u=xk(e,n):jP(u)&&typeof n=="string"?u=VP(n):!Array.isArray(n)&&jP(n)&&typeof u=="string"&&(n=VP(u));const h=BP(e,u);qy(h===m,`You are trying to animate ${e} from "${u}" to "${n}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${n} via the \`style\` property.`);function v(){const x={from:u,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:w=>t.set(w)};return c.type==="inertia"||c.type==="decay"?qq({...x,...c}):E9({...NK(c,x,e),onUpdate:w=>{x.onUpdate(w),c.onUpdate&&c.onUpdate(w)},onComplete:()=>{x.onComplete(),c.onComplete&&c.onComplete()}})}function b(){const x=n9(n);return t.set(x),o(),c.onUpdate&&c.onUpdate(x),c.onComplete&&c.onComplete(),{stop:()=>{}}}return!h||!m||c.type===!1?b:v}function jP(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function VP(e){return typeof e=="number"?0:xk("",e)}function Ck(e,t){return e[t]||e.default||e}function wk(e,t,n,i={}){return bK.current&&(i={type:!1}),t.start(o=>{let c,u;const m=EK(e,t,n,i,o),h=CK(i,e),v=()=>u=m();return h?c=window.setTimeout(v,_2(h)):v(),()=>{clearTimeout(c),u&&u.stop()}})}const _K=e=>/^\-?\d*\.?\d+$/.test(e),TK=e=>/^0[^.\s]+$/.test(e),D9=1/60*1e3,RK=typeof performance<"u"?()=>performance.now():()=>Date.now(),P9=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(RK()),D9);function AK(e){let t=[],n=[],i=0,o=!1,c=!1;const u=new WeakSet,m={schedule:(h,v=!1,b=!1)=>{const x=b&&o,w=x?t:n;return v&&u.add(h),w.indexOf(h)===-1&&(w.push(h),x&&o&&(i=t.length)),h},cancel:h=>{const v=n.indexOf(h);v!==-1&&n.splice(v,1),u.delete(h)},process:h=>{if(o){c=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(h),u.has(b)&&(m.schedule(b),e())}o=!1,c&&(c=!1,m.process(h))}};return m}const kK=40;let E5=!0,wy=!1,_5=!1;const Qh={delta:0,timestamp:0},Xy=["read","update","preRender","render","postRender"],bC=Xy.reduce((e,t)=>(e[t]=AK(()=>wy=!0),e),{}),vu=Xy.reduce((e,t)=>{const n=bC[t];return e[t]=(i,o=!1,c=!1)=>(wy||DK(),n.schedule(i,o,c)),e},{}),Ny=Xy.reduce((e,t)=>(e[t]=bC[t].cancel,e),{}),vR=Xy.reduce((e,t)=>(e[t]=()=>bC[t].process(Qh),e),{}),OK=e=>bC[e].process(Qh),M9=e=>{wy=!1,Qh.delta=E5?D9:Math.max(Math.min(e-Qh.timestamp,kK),1),Qh.timestamp=e,_5=!0,Xy.forEach(OK),_5=!1,wy&&(E5=!1,P9(M9))},DK=()=>{wy=!0,E5=!0,_5||P9(M9)},T5=()=>Qh;function Nk(e,t){e.indexOf(t)===-1&&e.push(t)}function Ek(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ey{constructor(){this.subscriptions=[]}add(t){return Nk(this.subscriptions,t),()=>Ek(this.subscriptions,t)}notify(t,n,i){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,i);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const PK=e=>!isNaN(parseFloat(e));class MK{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ey,this.velocityUpdateSubscribers=new ey,this.renderSubscribers=new ey,this.canTrackVelocity=!1,this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:c}=T5();this.lastUpdated!==c&&(this.timeDelta=o,this.lastUpdated=c,vu.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=()=>vu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=PK(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_9(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function ov(e){return new MK(e)}const I9=e=>t=>t.test(e),IK={test:e=>e==="auto",parse:e=>e},L9=[Jp,Xt,hu,Mf,fY,cY,IK],I0=e=>L9.find(I9(e)),LK=[...L9,no,Nc],FK=e=>LK.find(I9(e));function zK(e){const t={};return e.forEachValue((n,i)=>t[i]=n.get()),t}function BK(e){const t={};return e.forEachValue((n,i)=>t[i]=n.getVelocity()),t}function SC(e,t,n){const i=e.getProps();return t9(i,t,n!==void 0?n:i.custom,zK(e),BK(e))}function UK(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ov(n))}function $K(e,t){const n=SC(e,t);let{transitionEnd:i={},transition:o={},...c}=n?e.makeTargetAnimatable(n,!1):{};c={...c,...i};for(const u in c){const m=n9(c[u]);UK(e,u,m)}}function jK(e,t,n){var i,o;const c=Object.keys(t).filter(m=>!e.hasValue(m)),u=c.length;if(!!u)for(let m=0;m<u;m++){const h=c[m],v=t[h];let b=null;Array.isArray(v)&&(b=v[0]),b===null&&(b=(o=(i=n[h])!==null&&i!==void 0?i:e.readValue(h))!==null&&o!==void 0?o:t[h]),b!=null&&(typeof b=="string"&&(_K(b)||TK(b))?b=parseFloat(b):!FK(b)&&Nc.test(v)&&(b=xk(h,v)),e.addValue(h,ov(b)),n[h]===void 0&&(n[h]=b),e.setBaseTarget(h,b))}}function VK(e,t){return t?(t[e]||t.default||t).from:void 0}function HK(e,t,n){var i;const o={};for(const c in e){const u=VK(c,t);o[c]=u!==void 0?u:(i=n.getValue(c))===null||i===void 0?void 0:i.get()}return o}function T2(e){return Boolean(Su(e)&&e.add)}function WK(e,t,n={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const o=t.map(c=>R5(e,c,n));i=Promise.all(o)}else if(typeof t=="string")i=R5(e,t,n);else{const o=typeof t=="function"?SC(e,t,n.custom):t;i=F9(e,o,n)}return i.then(()=>e.notifyAnimationComplete(t))}function R5(e,t,n={}){var i;const o=SC(e,t,n.custom);let{transition:c=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(c=n.transitionOverride);const u=o?()=>F9(e,o,n):()=>Promise.resolve(),m=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:b=0,staggerChildren:x,staggerDirection:w}=c;return GK(e,t,b+v,x,w,n)}:()=>Promise.resolve(),{when:h}=c;if(h){const[v,b]=h==="beforeChildren"?[u,m]:[m,u];return v().then(b)}else return Promise.all([u(),m(n.delay)])}function F9(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:m,...h}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(u=i);const b=[],x=o&&((c=e.animationState)===null||c===void 0?void 0:c.getState()[o]);for(const w in h){const N=e.getValue(w),R=h[w];if(!N||R===void 0||x&&qK(x,w))continue;let O={delay:n,...u};e.shouldReduceMotion&&Wy.has(w)&&(O={...O,type:!1,delay:0});let M=wk(w,N,R,O);T2(v)&&(v.add(w),M=M.then(()=>v.remove(w))),b.push(M)}return Promise.all(b).then(()=>{m&&$K(e,m)})}function GK(e,t,n=0,i=0,o=1,c){const u=[],m=(e.variantChildren.size-1)*i,h=o===1?(v=0)=>v*i:(v=0)=>m-v*i;return Array.from(e.variantChildren).sort(YK).forEach((v,b)=>{u.push(R5(v,t,{...c,delay:n+h(b)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(u)}function YK(e,t){return e.sortNodePosition(t)}function qK({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}const _k=[Er.Animate,Er.InView,Er.Focus,Er.Hover,Er.Tap,Er.Drag,Er.Exit],KK=[..._k].reverse(),XK=_k.length;function ZK(e){return t=>Promise.all(t.map(({animation:n,options:i})=>WK(e,n,i)))}function QK(e){let t=ZK(e);const n=eX();let i=!0;const o=(h,v)=>{const b=SC(e,v);if(b){const{transition:x,transitionEnd:w,...N}=b;h={...h,...N,...w}}return h};function c(h){t=h(e)}function u(h,v){var b;const x=e.getProps(),w=e.getVariantContext(!0)||{},N=[],R=new Set;let O={},M=1/0;for(let I=0;I<XK;I++){const F=KK[I],z=n[F],$=(b=x[F])!==null&&b!==void 0?b:w[F],q=gy($),K=F===v?z.isActive:null;K===!1&&(M=I);let le=$===w[F]&&$!==x[F]&&q;if(le&&i&&e.manuallyAnimateOnMount&&(le=!1),z.protectedKeys={...O},!z.isActive&&K===null||!$&&!z.prevProp||fC($)||typeof $=="boolean")continue;const me=JK(z.prevProp,$);let se=me||F===v&&z.isActive&&!le&&q||I>M&&q;const Se=Array.isArray($)?$:[$];let qe=Se.reduce(o,{});K===!1&&(qe={});const{prevResolvedValues:ae={}}=z,ue={...ae,...qe},Ee=de=>{se=!0,R.delete(de),z.needsAnimating[de]=!0};for(const de in ue){const ie=qe[de],xe=ae[de];O.hasOwnProperty(de)||(ie!==xe?Sy(ie)&&Sy(xe)?!O9(ie,xe)||me?Ee(de):z.protectedKeys[de]=!0:ie!==void 0?Ee(de):R.add(de):ie!==void 0&&R.has(de)?Ee(de):z.protectedKeys[de]=!0)}z.prevProp=$,z.prevResolvedValues=qe,z.isActive&&(O={...O,...qe}),i&&e.blockInitialAnimation&&(se=!1),se&&!le&&N.push(...Se.map(de=>({animation:de,options:{type:F,...h}})))}if(R.size){const I={};R.forEach(F=>{const z=e.getBaseTarget(F);z!==void 0&&(I[F]=z)}),N.push({animation:I})}let B=Boolean(N.length);return i&&x.initial===!1&&!e.manuallyAnimateOnMount&&(B=!1),i=!1,B?t(N):Promise.resolve()}function m(h,v,b){var x;if(n[h].isActive===v)return Promise.resolve();(x=e.variantChildren)===null||x===void 0||x.forEach(N=>{var R;return(R=N.animationState)===null||R===void 0?void 0:R.setActive(h,v)}),n[h].isActive=v;const w=u(b,h);for(const N in n)n[N].protectedKeys={};return w}return{animateChanges:u,setActive:m,setAnimateFunction:c,getState:()=>n}}function JK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!O9(t,e):!1}function _p(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eX(){return{[Er.Animate]:_p(!0),[Er.InView]:_p(),[Er.Hover]:_p(),[Er.Tap]:_p(),[Er.Drag]:_p(),[Er.Focus]:_p(),[Er.Exit]:_p()}}const tX={animation:Vf(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=QK(e)),fC(t)&&k.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Vf(e=>{const{custom:t,visualElement:n}=e,[i,o]=bk(),c=k.exports.useContext(hv);k.exports.useEffect(()=>{n.isPresent=i;const u=n.animationState&&n.animationState.setActive(Er.Exit,!i,{custom:c&&c.custom||t});u&&!i&&u.then(o)},[i])})};class z9{constructor(t,n,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=yR(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=vk(v.offset,{x:0,y:0})>=3;if(!b&&!x)return;const{point:w}=v,{timestamp:N}=T5();this.history.push({...w,timestamp:N});const{onStart:R,onMove:O}=this.handlers;b||(R&&R(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=gR(b,this.transformPagePoint),a9(v)&&v.buttons===0){this.handlePointerUp(v,b);return}vu.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:w}=this.handlers,N=yR(gR(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,N),w&&w(v,N)},i9(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=i;const o=lk(t),c=gR(o,this.transformPagePoint),{point:u}=c,{timestamp:m}=T5();this.history=[{...u,timestamp:m}];const{onSessionStart:h}=n;h&&h(t,yR(c,this.history)),this.removeListeners=vC(Xh(window,"pointermove",this.handlePointerMove),Xh(window,"pointerup",this.handlePointerUp),Xh(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ny.update(this.updatePoint)}}function gR(e,t){return t?{point:t(e.point)}:e}function HP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yR({point:e},t){return{point:e,delta:HP(e,B9(t)),offset:HP(e,nX(t)),velocity:rX(t,.1)}}function nX(e){return e[0]}function B9(e){return e[e.length-1]}function rX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=B9(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>_2(t)));)n--;if(!i)return{x:0,y:0};const c=(o.timestamp-i.timestamp)/1e3;if(c===0)return{x:0,y:0};const u={x:(o.x-i.x)/c,y:(o.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function ns(e){return e.max-e.min}function WP(e,t=0,n=.01){return vk(e,t)<n}function GP(e,t,n,i=.5){e.origin=i,e.originPoint=Wr(t.min,t.max,e.origin),e.scale=ns(n)/ns(t),(WP(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Wr(n.min,n.max,e.origin)-e.originPoint,(WP(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ty(e,t,n,i){GP(e.x,t.x,n.x,i?.originX),GP(e.y,t.y,n.y,i?.originY)}function YP(e,t,n){e.min=n.min+t.min,e.max=e.min+ns(t)}function aX(e,t,n){YP(e.x,t.x,n.x),YP(e.y,t.y,n.y)}function qP(e,t,n){e.min=t.min-n.min,e.max=e.min+ns(t)}function ny(e,t,n){qP(e.x,t.x,n.x),qP(e.y,t.y,n.y)}function iX(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?Wr(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?Wr(n,e,i.max):Math.min(e,n)),e}function KP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function oX(e,{top:t,left:n,bottom:i,right:o}){return{x:KP(e.x,n,o),y:KP(e.y,t,i)}}function XP(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function sX(e,t){return{x:XP(e.x,t.x),y:XP(e.y,t.y)}}function lX(e,t){let n=.5;const i=ns(e),o=ns(t);return o>i?n=xy(t.min,t.max-i,e.min):i>o&&(n=xy(e.min,e.max-o,t.min)),w2(0,1,n)}function uX(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const A5=.35;function cX(e=A5){return e===!1?e=0:e===!0&&(e=A5),{x:ZP(e,"left","right"),y:ZP(e,"top","bottom")}}function ZP(e,t,n){return{min:QP(e,t),max:QP(e,n)}}function QP(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const JP=()=>({translate:0,scale:1,origin:0,originPoint:0}),ry=()=>({x:JP(),y:JP()}),eM=()=>({min:0,max:0}),pi=()=>({x:eM(),y:eM()});function lu(e){return[e("x"),e("y")]}function U9({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function fX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dX(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function bR(e){return e===void 0||e===1}function $9({scale:e,scaleX:t,scaleY:n}){return!bR(e)||!bR(t)||!bR(n)}function If(e){return $9(e)||tM(e.x)||tM(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function tM(e){return e&&e!=="0%"}function R2(e,t,n){const i=e-n,o=t*i;return n+o}function nM(e,t,n,i,o){return o!==void 0&&(e=R2(e,o,i)),R2(e,n,i)+t}function k5(e,t=0,n=1,i,o){e.min=nM(e.min,t,n,i,o),e.max=nM(e.max,t,n,i,o)}function j9(e,{x:t,y:n}){k5(e.x,t.translate,t.scale,t.originPoint),k5(e.y,n.translate,n.scale,n.originPoint)}function pX(e,t,n,i=!1){var o,c;const u=n.length;if(!u)return;t.x=t.y=1;let m,h;for(let v=0;v<u;v++)m=n[v],h=m.projectionDelta,((c=(o=m.instance)===null||o===void 0?void 0:o.style)===null||c===void 0?void 0:c.display)!=="contents"&&(i&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Gh(e,{x:-m.scroll.x,y:-m.scroll.y}),h&&(t.x*=h.x.scale,t.y*=h.y.scale,j9(e,h)),i&&If(m.latestValues)&&Gh(e,m.latestValues))}function zf(e,t){e.min=e.min+t,e.max=e.max+t}function rM(e,t,[n,i,o]){const c=t[o]!==void 0?t[o]:.5,u=Wr(e.min,e.max,c);k5(e,t[n],t[i],u,t.scale)}const mX=["x","scaleX","originX"],hX=["y","scaleY","originY"];function Gh(e,t){rM(e.x,t,mX),rM(e.y,t,hX)}function V9(e,t){return U9(dX(e.getBoundingClientRect(),t))}function vX(e,t,n){const i=V9(e,n),{scroll:o}=t;return o&&(zf(i.x,o.x),zf(i.y,o.y)),i}const gX=new WeakMap;class yX{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=pi(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const i=m=>{this.stopAnimation(),n&&this.snapToCursor(lk(m,"page").point)},o=(m,h)=>{var v;const{drag:b,dragPropagation:x,onDragStart:w}=this.getProps();b&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=u9(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),lu(N=>{var R,O;let M=this.getAxisMotionValue(N).get()||0;if(hu.test(M)){const B=(O=(R=this.visualElement.projection)===null||R===void 0?void 0:R.layout)===null||O===void 0?void 0:O.actual[N];B&&(M=ns(B)*(parseFloat(M)/100))}this.originPoint[N]=M}),w?.(m,h),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(Er.Drag,!0))},c=(m,h)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:x,onDrag:w}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:N}=h;if(b&&this.currentDirection===null){this.currentDirection=bX(N),this.currentDirection!==null&&x?.(this.currentDirection);return}this.updateAxis("x",h.point,N),this.updateAxis("y",h.point,N),this.visualElement.syncRender(),w?.(m,h)},u=(m,h)=>this.stop(m,h);this.panSession=new z9(t,{onSessionStart:i,onStart:o,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Er.Drag,!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!xx(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=iX(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:i}=this.visualElement.projection||{},o=this.constraints;t&&Wh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=oX(i.actual,t):this.constraints=!1,this.elastic=cX(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&lu(c=>{this.getAxisMotionValue(c)&&(this.constraints[c]=uX(i.actual[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Wh(t))return!1;const i=t.current;Fs(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=vX(i,o.root,this.visualElement.getTransformPagePoint());let u=sX(o.layout.actual,c);if(n){const m=n(fX(u));this.hasMutatedConstraints=!!m,m&&(u=U9(m))}return u}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:m}=this.getProps(),h=this.constraints||{},v=lu(b=>{var x;if(!xx(b,n,this.currentDirection))return;let w=(x=h?.[b])!==null&&x!==void 0?x:{};u&&(w={min:0,max:0});const N=o?200:1e6,R=o?40:1e7,O={type:"inertia",velocity:i?t[b]:0,bounceStiffness:N,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...c,...w};return this.startAxisValueAnimation(b,O)});return Promise.all(v).then(m)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return wk(t,i,0,n)}stopAnimation(){lu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,i;const o="_drag"+t.toUpperCase(),c=this.visualElement.getProps()[o];return c||this.visualElement.getValue(t,(i=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:0)}snapToCursor(t){lu(n=>{const{drag:i}=this.getProps();if(!xx(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:m}=o.layout.actual[n];c.set(t[n]-Wr(u,m,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!Wh(i)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};lu(m=>{const h=this.getAxisMotionValue(m);if(h){const v=h.get();c[m]=lX({min:v,max:v},this.constraints[m])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=u?u({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),lu(m=>{if(!xx(m,n,null))return;const h=this.getAxisMotionValue(m),{min:v,max:b}=this.constraints[m];h.set(Wr(v,b,c[m]))})}addListeners(){var t;gX.set(this.visualElement,this);const n=this.visualElement.getInstance(),i=Xh(n,"pointerdown",v=>{const{drag:b,dragListener:x=!0}=this.getProps();b&&x&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();Wh(v)&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&((t=c.root)===null||t===void 0||t.updateScroll(),c.updateLayout()),o();const m=mC(window,"resize",()=>this.scalePositionWithinConstraints()),h=c.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b})=>{this.isDragging&&b&&(lu(x=>{const w=this.getAxisMotionValue(x);!w||(this.originPoint[x]+=v[x].translate,w.set(w.get()+v[x].translate))}),this.visualElement.syncRender())});return()=>{m(),i(),u(),h?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=A5,dragMomentum:m=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:m}}}function xx(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function SX(e){const{dragControls:t,visualElement:n}=e,i=pC(()=>new yX(n));k.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),k.exports.useEffect(()=>i.addListeners(),[i])}function xX({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:i,visualElement:o}){const c=e||t||n||i,u=k.exports.useRef(null),{transformPagePoint:m}=k.exports.useContext(ek),h={onSessionStart:i,onStart:t,onMove:e,onEnd:(b,x)=>{u.current=null,n&&n(b,x)}};k.exports.useEffect(()=>{u.current!==null&&u.current.updateHandlers(h)});function v(b){u.current=new z9(b,h,{transformPagePoint:m})}C2(o,"pointerdown",c&&v),uk(()=>u.current&&u.current.end())}const CX={pan:Vf(xX),drag:Vf(SX)},O5={current:null},H9={current:!1};function wX(){if(H9.current=!0,!!Qp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>O5.current=e.matches;e.addListener(t),t()}else O5.current=!1}const Cx=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function NX(){const e=Cx.map(()=>new ey),t={},n={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{Cx.forEach(o=>{var c;const u="on"+o,m=i[u];(c=t[o])===null||c===void 0||c.call(t),m&&(t[o]=n[u](m))})}};return e.forEach((i,o)=>{n["on"+Cx[o]]=c=>i.add(c),n["notify"+Cx[o]]=(...c)=>i.notify(...c)}),n}function EX(e,t,n){const{willChange:i}=t;for(const o in t){const c=t[o],u=n[o];if(Su(c))e.addValue(o,c),T2(i)&&i.add(o),yk(c.version==="7.3.5",`Attempting to mix Framer Motion versions ${c.version} with 7.3.5 may not work as expected.`);else if(Su(u))e.addValue(o,ov(c)),T2(i)&&i.remove(o);else if(u!==c)if(e.hasValue(o)){const m=e.getValue(o);!m.hasAnimated&&m.set(c)}else{const m=e.getStaticValue(o);e.addValue(o,ov(m!==void 0?m:c))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const W9=Object.keys(yy),_X=W9.length,G9=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:i,measureViewportBox:o,render:c,readValueFromInstance:u,removeValueFromRenderState:m,sortNodePosition:h,scrapeMotionValuesFromProps:v})=>({parent:b,props:x,presenceId:w,blockInitialAnimation:N,visualState:R,reducedMotionConfig:O},M={})=>{let B=!1;const{latestValues:I,renderState:F}=R;let z;const $=NX(),q=new Map,K=new Map;let le={};const me={...I};let se;function Se(){!z||!B||(qe(),c(z,F,x.style,Ne.projection))}function qe(){t(Ne,F,I,M,x)}function ae(){$.notifyUpdate(I)}function ue(he,Ce){const Me=Ce.onChange(Ye=>{I[he]=Ye,x.onUpdate&&vu.update(ae,!1,!0)}),Ie=Ce.onRenderRequest(Ne.scheduleRender);K.set(he,()=>{Me(),Ie()})}const{willChange:Ee,...de}=v(x);for(const he in de){const Ce=de[he];I[he]!==void 0&&Su(Ce)&&(Ce.set(I[he],!1),T2(Ee)&&Ee.add(he))}const ie=dC(x),xe=IL(x),Ne={treeType:e,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:w,shouldReduceMotion:null,variantChildren:xe?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(b?.isMounted()),blockInitialAnimation:N,isMounted:()=>Boolean(z),mount(he){B=!0,z=Ne.current=he,Ne.projection&&Ne.projection.mount(he),xe&&b&&!ie&&(se=b?.addVariantChild(Ne)),q.forEach((Ce,Me)=>ue(Me,Ce)),H9.current||wX(),Ne.shouldReduceMotion=O==="never"?!1:O==="always"?!0:O5.current,b?.children.add(Ne),Ne.setProps(x)},unmount(){var he;(he=Ne.projection)===null||he===void 0||he.unmount(),Ny.update(ae),Ny.render(Se),K.forEach(Ce=>Ce()),se?.(),b?.children.delete(Ne),$.clearAllListeners(),z=void 0,B=!1},loadFeatures(he,Ce,Me,Ie,Ye,at){const gt=[];gk!=="production"&&Me&&Ce&&Fs(!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 Ht=0;Ht<_X;Ht++){const Ze=W9[Ht],{isEnabled:ct,Component:wt}=yy[Ze];ct(he)&&wt&>.push(k.exports.createElement(wt,{key:Ze,...he,visualElement:Ne}))}if(!Ne.projection&&Ye){Ne.projection=new Ye(Ie,Ne.getLatestValues(),b&&b.projection);const{layoutId:Ht,layout:Ze,drag:ct,dragConstraints:wt,layoutScroll:zt}=he;Ne.projection.setOptions({layoutId:Ht,layout:Ze,alwaysMeasureLayout:Boolean(ct)||wt&&Wh(wt),visualElement:Ne,scheduleRender:()=>Ne.scheduleRender(),animationType:typeof Ze=="string"?Ze:"both",initialPromotionConfig:at,layoutScroll:zt})}return gt},addVariantChild(he){var Ce;const Me=Ne.getClosestVariantNode();if(Me)return(Ce=Me.variantChildren)===null||Ce===void 0||Ce.add(he),()=>Me.variantChildren.delete(he)},sortNodePosition(he){return!h||e!==he.treeType?0:h(Ne.getInstance(),he.getInstance())},getClosestVariantNode:()=>xe?Ne:b?.getClosestVariantNode(),getLayoutId:()=>x.layoutId,getInstance:()=>z,getStaticValue:he=>I[he],setStaticValue:(he,Ce)=>I[he]=Ce,getLatestValues:()=>I,setVisibility(he){Ne.isVisible!==he&&(Ne.isVisible=he,Ne.scheduleRender())},makeTargetAnimatable(he,Ce=!0){return i(Ne,he,x,Ce)},measureViewportBox(){return o(z,x)},addValue(he,Ce){Ne.hasValue(he)&&Ne.removeValue(he),q.set(he,Ce),I[he]=Ce.get(),ue(he,Ce)},removeValue(he){var Ce;q.delete(he),(Ce=K.get(he))===null||Ce===void 0||Ce(),K.delete(he),delete I[he],m(he,F)},hasValue:he=>q.has(he),getValue(he,Ce){let Me=q.get(he);return Me===void 0&&Ce!==void 0&&(Me=ov(Ce),Ne.addValue(he,Me)),Me},forEachValue:he=>q.forEach(he),readValue:he=>I[he]!==void 0?I[he]:u(z,he,M),setBaseTarget(he,Ce){me[he]=Ce},getBaseTarget(he){if(n){const Ce=n(x,he);if(Ce!==void 0&&!Su(Ce))return Ce}return me[he]},...$,build(){return qe(),F},scheduleRender(){vu.render(Se,!1,!0)},syncRender:Se,setProps(he){(he.transformTemplate||x.transformTemplate)&&Ne.scheduleRender(),x=he,$.updatePropListeners(he),le=EX(Ne,v(x),le)},getProps:()=>x,getVariant:he=>{var Ce;return(Ce=x.variants)===null||Ce===void 0?void 0:Ce[he]},getDefaultTransition:()=>x.transition,getTransformPagePoint:()=>x.transformPagePoint,getVariantContext(he=!1){if(he)return b?.getVariantContext();if(!ie){const Me=b?.getVariantContext()||{};return x.initial!==void 0&&(Me.initial=x.initial),Me}const Ce={};for(let Me=0;Me<TX;Me++){const Ie=Y9[Me],Ye=x[Ie];(gy(Ye)||Ye===!1)&&(Ce[Ie]=Ye)}return Ce}};return Ne},Y9=["initial",..._k],TX=Y9.length;function D5(e){return typeof e=="string"&&e.startsWith("var(--")}const q9=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function RX(e){const t=q9.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}const AX=4;function P5(e,t,n=1){Fs(n<=AX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=RX(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);return c?c.trim():D5(o)?P5(o,t,n+1):o}function kX(e,{...t},n){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const c=o.get();if(!D5(c))return;const u=P5(c,i);u&&o.set(u)});for(const o in t){const c=t[o];if(!D5(c))continue;const u=P5(c,i);!u||(t[o]=u,n&&n[o]===void 0&&(n[o]=c))}return{target:t,transitionEnd:n}}const OX=new Set(["width","height","top","left","right","bottom","x","y"]),K9=e=>OX.has(e),DX=e=>Object.keys(e).some(K9),X9=(e,t)=>{e.set(t,!1),e.set(t)},wx=e=>e===Jp||e===Xt;var aM;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(aM||(aM={}));const iM=(e,t)=>parseFloat(e.split(", ")[t]),oM=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return iM(o[1],t);{const c=i.match(/^matrix\((.+)\)$/);return c?iM(c[1],e):0}},PX=new Set(["x","y","z"]),MX=S2.filter(e=>!PX.has(e));function IX(e){const t=[];return MX.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const sM={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:oM(4,13),y:oM(5,14)},LX=(e,t,n)=>{const i=t.measureViewportBox(),o=t.getInstance(),c=getComputedStyle(o),{display:u}=c,m={};u==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(v=>{m[v]=sM[v](i,c)}),t.syncRender();const h=t.measureViewportBox();return n.forEach(v=>{const b=t.getValue(v);X9(b,m[v]),e[v]=sM[v](h,c)}),e},FX=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(K9);let c=[],u=!1;const m=[];if(o.forEach(h=>{const v=e.getValue(h);if(!e.hasValue(h))return;let b=n[h],x=I0(b);const w=t[h];let N;if(Sy(w)){const R=w.length,O=w[0]===null?1:0;b=w[O],x=I0(b);for(let M=O;M<R;M++)N?Fs(I0(w[M])===N,"All keyframes must be of the same type"):(N=I0(w[M]),Fs(N===x||wx(x)&&wx(N),"Keyframes must be of the same dimension as the current value"))}else N=I0(w);if(x!==N)if(wx(x)&&wx(N)){const R=v.get();typeof R=="string"&&v.set(parseFloat(R)),typeof w=="string"?t[h]=parseFloat(w):Array.isArray(w)&&N===Xt&&(t[h]=w.map(parseFloat))}else x?.transform&&N?.transform&&(b===0||w===0)?b===0?v.set(N.transform(b)):t[h]=x.transform(w):(u||(c=IX(e),u=!0),m.push(h),i[h]=i[h]!==void 0?i[h]:t[h],X9(v,w))}),m.length){const h=m.indexOf("height")>=0?window.pageYOffset:null,v=LX(t,e,m);return c.length&&c.forEach(([b,x])=>{e.getValue(b).set(x)}),e.syncRender(),Qp&&h!==null&&window.scrollTo({top:h}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function zX(e,t,n,i){return DX(t)?FX(e,t,n,i):{target:t,transitionEnd:i}}const BX=(e,t,n,i)=>{const o=kX(e,t,i);return t=o.target,i=o.transitionEnd,zX(e,t,n,i)};function UX(e){return window.getComputedStyle(e)}const Z9={treeType:"dom",readValueFromInstance(e,t){if(Wy.has(t)){const n=Sk(t);return n&&n.default||0}else{const n=UX(e),i=(zL(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return V9(e,t)},resetTransform(e,t,n){const{transformTemplate:i}=n;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...i},{transformValues:o},c=!0){let u=HK(i,t||{},e);if(o&&(n&&(n=o(n)),i&&(i=o(i)),u&&(u=o(u))),c){jK(e,i,u);const m=BX(e,i,u,n);n=m.transitionEnd,i=m.target}return{transition:t,transitionEnd:n,...i}},scrapeMotionValuesFromProps:sk,build(e,t,n,i,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ak(t,n,i,o.transformTemplate)},render:ZL},$X=G9(Z9),jX=G9({...Z9,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Wy.has(t)?((n=Sk(t))===null||n===void 0?void 0:n.default)||0:(t=QL.has(t)?t:XL(t),e.getAttribute(t))},scrapeMotionValuesFromProps:e9,build(e,t,n,i,o){ok(t,n,i,o.transformTemplate)},render:JL}),VX=(e,t)=>nk(e)?jX(t,{enableHardwareAcceleration:!1}):$X(t,{enableHardwareAcceleration:!0});function lM(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const L0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xt.test(e))e=parseFloat(e);else return e;const n=lM(e,t.target.x),i=lM(e,t.target.y);return`${n}% ${i}%`}},uM="_$css",HX={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=e.includes("var("),c=[];o&&(e=e.replace(q9,N=>(c.push(N),uM)));const u=Nc.parse(e);if(u.length>5)return i;const m=Nc.createTransformer(e),h=typeof u[0]!="number"?1:0,v=n.x.scale*t.x,b=n.y.scale*t.y;u[0+h]/=v,u[1+h]/=b;const x=Wr(v,b,.5);typeof u[2+h]=="number"&&(u[2+h]/=x),typeof u[3+h]=="number"&&(u[3+h]/=x);let w=m(u);if(o){let N=0;w=w.replace(uM,()=>{const R=c[N];return N++,R})}return w}};var WX="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class GX extends Pe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:c}=t;aY(qX),c&&(n.group&&n.group.add(c),i&&i.register&&o&&i.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Z0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:c}=this.props,u=i.projection;return u&&(u.isPresent=c,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||vu.postRender(()=>{var m;!((m=u.getStack())===null||m===void 0)&&m.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),i?.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function YX(e){const[t,n]=bk(),i=k.exports.useContext(tk);return _(GX,{...e,layoutGroup:i,switchLayoutGroup:k.exports.useContext(LL),isPresent:t,safeToRemove:n},void 0,!1,{fileName:WX,lineNumber:110,columnNumber:13},this)}const qX={borderRadius:{...L0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:L0,borderTopRightRadius:L0,borderBottomLeftRadius:L0,borderBottomRightRadius:L0,boxShadow:HX},KX={measureLayout:YX};function XX(e,t,n={}){const i=Su(e)?e:ov(e);return wk("",i,t,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const Q9=["TopLeft","TopRight","BottomLeft","BottomRight"],ZX=Q9.length,cM=e=>typeof e=="string"?parseFloat(e):e,fM=e=>typeof e=="number"||Xt.test(e);function QX(e,t,n,i,o,c){var u,m,h,v;o?(e.opacity=Wr(0,(u=n.opacity)!==null&&u!==void 0?u:1,JX(i)),e.opacityExit=Wr((m=t.opacity)!==null&&m!==void 0?m:1,0,eZ(i))):c&&(e.opacity=Wr((h=t.opacity)!==null&&h!==void 0?h:1,(v=n.opacity)!==null&&v!==void 0?v:1,i));for(let b=0;b<ZX;b++){const x=`border${Q9[b]}Radius`;let w=dM(t,x),N=dM(n,x);if(w===void 0&&N===void 0)continue;w||(w=0),N||(N=0),w===0||N===0||fM(w)===fM(N)?(e[x]=Math.max(Wr(cM(w),cM(N),i),0),(hu.test(N)||hu.test(w))&&(e[x]+="%")):e[x]=N}(t.rotate||n.rotate)&&(e.rotate=Wr(t.rotate||0,n.rotate||0,i))}function dM(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const JX=J9(0,.5,mk),eZ=J9(.5,.95,dk);function J9(e,t,n){return i=>i<e?0:i>t?1:n(xy(e,t,i))}function pM(e,t){e.min=t.min,e.max=t.max}function Cl(e,t){pM(e.x,t.x),pM(e.y,t.y)}function mM(e,t,n,i,o){return e-=t,e=R2(e,1/n,i),o!==void 0&&(e=R2(e,1/o,i)),e}function tZ(e,t=0,n=1,i=.5,o,c=e,u=e){if(hu.test(t)&&(t=parseFloat(t),t=Wr(u.min,u.max,t/100)-u.min),typeof t!="number")return;let m=Wr(c.min,c.max,i);e===c&&(m-=t),e.min=mM(e.min,t,n,m,o),e.max=mM(e.max,t,n,m,o)}function hM(e,t,[n,i,o],c,u){tZ(e,t[n],t[i],t[o],t.scale,c,u)}const nZ=["x","scaleX","originX"],rZ=["y","scaleY","originY"];function vM(e,t,n,i){hM(e.x,t,nZ,n?.x,i?.x),hM(e.y,t,rZ,n?.y,i?.y)}function gM(e){return e.translate===0&&e.scale===1}function e7(e){return gM(e.x)&&gM(e.y)}function t7(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 yM(e){return ns(e.x)/ns(e.y)}function aZ(e,t,n=.01){return vk(e,t)<=n}class iZ{constructor(){this.members=[]}add(t){Nk(this.members,t),t.scheduleRender()}remove(t){if(Ek(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(t,n){var i;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((i=t.root)===null||i===void 0)&&i.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:c}=t.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,o,c,u;(i=(n=t.options).onExitComplete)===null||i===void 0||i.call(n),(u=(o=t.resumingFrom)===null||o===void 0?void 0:(c=o.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 oZ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function bM(e,t,n){const i=e.x.translate/t.x,o=e.y.translate/t.y;let c=`translate3d(${i}px, ${o}px, 0) `;if(c+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:h,rotateX:v,rotateY:b}=n;h&&(c+=`rotate(${h}deg) `),v&&(c+=`rotateX(${v}deg) `),b&&(c+=`rotateY(${b}deg) `)}const u=e.x.scale*t.x,m=e.y.scale*t.y;return c+=`scale(${u}, ${m})`,c===oZ?"none":c}const sZ=(e,t)=>e.depth-t.depth;class lZ{constructor(){this.children=[],this.isDirty=!1}add(t){Nk(this.children,t),this.isDirty=!0}remove(t){Ek(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sZ),this.isDirty=!1,this.children.forEach(t)}}const SM=["","X","Y","Z"],xM=1e3;function n7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u,m={},h=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(mZ),this.nodes.forEach(hZ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=m,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.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 lZ)}addEventListener(u,m){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new ey),this.eventHandlers.get(u).add(m)}notifyListeners(u,...m){const h=this.eventHandlers.get(u);h?.notify(...m)}hasListeners(u){return this.eventHandlers.has(u)}registerPotentialNode(u,m){this.potentialNodes.set(u,m)}mount(u,m=!1){var h;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),(h=this.parent)===null||h===void 0||h.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),m&&(b||v)&&(this.isLayoutDirty=!0),e){let w;const N=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,clearTimeout(w),w=window.setTimeout(N,250),Z0.hasAnimatedSinceResize&&(Z0.hasAnimatedSinceResize=!1,this.nodes.forEach(pZ))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&x&&(v||b)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:N,hasRelativeTargetChanged:R,layout:O})=>{var M,B,I,F,z;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=(B=(M=this.options.transition)!==null&&M!==void 0?M:x.getDefaultTransition())!==null&&B!==void 0?B:SZ,{onLayoutAnimationStart:q,onLayoutAnimationComplete:K}=x.getProps(),le=!this.targetLayout||!t7(this.targetLayout,O)||R,me=!N&&R;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||me||N&&(le||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,me);const se={...Ck($,"layout"),onPlay:q,onComplete:K};x.shouldReduceMotion&&(se.delay=0,se.type=!1),this.startAnimation(se)}else!N&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((z=(F=this.options).onExitComplete)===null||z===void 0||z.call(F));this.targetLayout=O})}unmount(){var u,m;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(m=this.parent)===null||m===void 0||m.children.delete(this),this.instance=void 0,Ny.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(vZ))}willUpdate(u=!0){var m,h,v;if(this.root.isUpdateBlocked()){(h=(m=this.options).onExitComplete)===null||h===void 0||h.call(m);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let N=0;N<this.path.length;N++){const R=this.path[N];R.shouldResetTransform=!0,R.updateScroll()}const{layoutId:b,layout:x}=this.options;if(b===void 0&&!x)return;const w=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=w?.(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(CM);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(xZ),this.potentialNodes.clear()),this.nodes.forEach(dZ),this.nodes.forEach(uZ),this.nodes.forEach(cZ),this.clearAllSnapshots(),vR.update(),vR.preRender(),vR.render())}clearAllSnapshots(){this.nodes.forEach(fZ),this.sharedNodes.forEach(gZ)}scheduleUpdateProjection(){vu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){vu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const u=this.measure(),m=this.removeTransform(this.removeElementScroll(u));_M(m),this.snapshot={measured:u,layout:m,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 m=this.measure();_M(m);const h=this.layout;this.layout={measured:m,actual:this.removeElementScroll(m)},this.layoutCorrected=pi(),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,h?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))}resetTransform(){var u;if(!o)return;const m=this.isLayoutDirty||this.shouldResetTransform,h=this.projectionDelta&&!e7(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,b=v?.(this.latestValues,""),x=b!==this.prevTransformTemplateValue;m&&(h||If(this.latestValues)||x)&&(o(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:u}=this.options;if(!u)return pi();const m=u.measureViewportBox(),{scroll:h}=this.root;return h&&(zf(m.x,h.x),zf(m.y,h.y)),m}removeElementScroll(u){const m=pi();Cl(m,u);for(let h=0;h<this.path.length;h++){const v=this.path[h],{scroll:b,options:x,isScrollRoot:w}=v;if(v!==this.root&&b&&x.layoutScroll){if(w){Cl(m,u);const{scroll:N}=this.root;N&&(zf(m.x,-N.x),zf(m.y,-N.y))}zf(m.x,b.x),zf(m.y,b.y)}}return m}applyTransform(u,m=!1){const h=pi();Cl(h,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];!m&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Gh(h,{x:-b.scroll.x,y:-b.scroll.y}),If(b.latestValues)&&Gh(h,b.latestValues)}return If(this.latestValues)&&Gh(h,this.latestValues),h}removeTransform(u){var m;const h=pi();Cl(h,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];if(!b.instance||!If(b.latestValues))continue;$9(b.latestValues)&&b.updateSnapshot();const x=pi(),w=b.measure();Cl(x,w),vM(h,b.latestValues,(m=b.snapshot)===null||m===void 0?void 0:m.layout,x)}return If(this.latestValues)&&vM(h,this.latestValues),h}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:m,layoutId:h}=this.options;!this.layout||!(m||h)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=pi(),this.relativeTargetOrigin=pi(),ny(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Cl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pi(),this.targetWithTransforms=pi()),this.relativeTarget&&this.relativeTargetOrigin&&((u=this.relativeParent)===null||u===void 0?void 0:u.target)?aX(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Cl(this.target,this.layout.actual),j9(this.target,this.targetDelta)):Cl(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=pi(),this.relativeTargetOrigin=pi(),ny(this.relativeTargetOrigin,this.target,this.relativeParent.target),Cl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||If(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var u;const{layout:m,layoutId:h}=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||!(m||h))return;const v=this.getLead();Cl(this.layoutCorrected,this.layout.actual),pX(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:b}=v;if(!b)return;this.projectionDelta||(this.projectionDelta=ry(),this.projectionDeltaWithTransform=ry());const x=this.treeScale.x,w=this.treeScale.y,N=this.projectionTransform;ty(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=bM(this.projectionDelta,this.treeScale),(this.projectionTransform!==N||this.treeScale.x!==x||this.treeScale.y!==w)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var m,h,v;(h=(m=this.options).scheduleRender)===null||h===void 0||h.call(m),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,m=!1){var h;const v=this.snapshot,b=v?.latestValues||{},x={...this.latestValues},w=ry();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!m;const N=pi(),R=v?.isShared,O=(((h=this.getStack())===null||h===void 0?void 0:h.members.length)||0)<=1,M=Boolean(R&&!O&&this.options.crossfade===!0&&!this.path.some(bZ));this.animationProgress=0,this.mixTargetDelta=B=>{var I;const F=B/1e3;wM(w.x,u.x,F),wM(w.y,u.y,F),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((I=this.relativeParent)===null||I===void 0?void 0:I.layout)&&(ny(N,this.layout.actual,this.relativeParent.layout.actual),yZ(this.relativeTarget,this.relativeTargetOrigin,N,F)),R&&(this.animationValues=x,QX(x,b,this.latestValues,F,M,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(0)}startAnimation(u){var m,h;this.notifyListeners("animationStart"),(m=this.currentAnimation)===null||m===void 0||m.stop(),this.resumingFrom&&((h=this.resumingFrom.currentAnimation)===null||h===void 0||h.stop()),this.pendingAnimation&&(Ny.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vu.update(()=>{Z0.hasAnimatedSinceResize=!0,this.currentAnimation=XX(0,xM,{...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,xM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:m,target:h,layout:v,latestValues:b}=u;if(!(!m||!h||!v)){if(this!==u&&this.layout&&v&&r7(this.options.animationType,this.layout.actual,v.actual)){h=this.target||pi();const x=ns(this.layout.actual.x);h.x.min=u.target.x.min,h.x.max=h.x.min+x;const w=ns(this.layout.actual.y);h.y.min=u.target.y.min,h.y.max=h.y.min+w}Cl(m,h),Gh(m,b),ty(this.projectionDeltaWithTransform,this.layoutCorrected,m,b)}}registerSharedNode(u,m){var h,v,b;this.sharedNodes.has(u)||this.sharedNodes.set(u,new iZ),this.sharedNodes.get(u).add(m),m.promote({transition:(h=m.options.initialPromotionConfig)===null||h===void 0?void 0:h.transition,preserveFollowOpacity:(b=(v=m.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||b===void 0?void 0:b.call(v,m)})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:m}=this.options;return m?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:m}=this.options;return m?(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:m,preserveFollowOpacity:h}={}){const v=this.getStack();v&&v.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let m=!1;const h={};for(let v=0;v<SM.length;v++){const b=SM[v],x="rotate"+b;!u.getStaticValue(x)||(m=!0,h[x]=u.getStaticValue(x),u.setStaticValue(x,0))}if(!!m){u?.syncRender();for(const v in h)u.setStaticValue(v,h[v]);u.scheduleRender()}}getProjectionStyles(u={}){var m,h,v;const b={};if(!this.instance||this.isSVG)return b;if(this.isVisible)b.visibility="";else return{visibility:"hidden"};const x=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=qx(u.pointerEvents)||"",b.transform=x?x(this.latestValues,""):"none",b;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=qx(u.pointerEvents)||""),this.hasProjected&&!If(this.latestValues)&&(M.transform=x?x({},""):"none",this.hasProjected=!1),M}const N=w.animationValues||w.latestValues;this.applyTransformsToTarget(),b.transform=bM(this.projectionDeltaWithTransform,this.treeScale,N),x&&(b.transform=x(N,b.transform));const{x:R,y:O}=this.projectionDelta;b.transformOrigin=`${R.origin*100}% ${O.origin*100}% 0`,w.animationValues?b.opacity=w===this?(v=(h=N.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:N.opacityExit:b.opacity=w===this?N.opacity!==void 0?N.opacity:"":N.opacityExit!==void 0?N.opacityExit:0;for(const M in b2){if(N[M]===void 0)continue;const{correct:B,applyTo:I}=b2[M],F=B(N[M],w);if(I){const z=I.length;for(let $=0;$<z;$++)b[I[$]]=F}else b[M]=F}return this.options.layoutId&&(b.pointerEvents=w===this?qx(u.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var m;return(m=u.currentAnimation)===null||m===void 0?void 0:m.stop()}),this.root.nodes.forEach(CM),this.root.sharedNodes.clear()}}}function uZ(e){e.updateLayout()}function cZ(e){var t,n,i;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:c,measured:u}=e.layout,{animationType:m}=e.options;m==="size"?lu(w=>{const N=o.isShared?o.measured[w]:o.layout[w],R=ns(N);N.min=c[w].min,N.max=N.min+R}):r7(m,o.layout,c)&&lu(w=>{const N=o.isShared?o.measured[w]:o.layout[w],R=ns(c[w]);N.max=N.min+R});const h=ry();ty(h,c,o.layout);const v=ry();o.isShared?ty(v,e.applyTransform(u,!0),o.measured):ty(v,c,o.layout);const b=!e7(h);let x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:w,layout:N}=e.relativeParent;if(w&&N){const R=pi();ny(R,o.layout,w.layout);const O=pi();ny(O,c,N.actual),t7(R,O)||(x=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:o,delta:v,layoutDelta:h,hasLayoutChanged:b,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function fZ(e){e.clearSnapshot()}function CM(e){e.clearMeasurements()}function dZ(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function pZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mZ(e){e.resolveTargetDelta()}function hZ(e){e.calcProjection()}function vZ(e){e.resetRotation()}function gZ(e){e.removeLeadSnapshot()}function wM(e,t,n){e.translate=Wr(t.translate,0,n),e.scale=Wr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function NM(e,t,n,i){e.min=Wr(t.min,n.min,i),e.max=Wr(t.max,n.max,i)}function yZ(e,t,n,i){NM(e.x,t.x,n.x,i),NM(e.y,t.y,n.y,i)}function bZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const SZ={duration:.45,ease:[.4,0,.1,1]};function xZ(e,t){let n=e.root;for(let c=e.path.length-1;c>=0;c--)if(Boolean(e.path[c].instance)){n=e.path[c];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function EM(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function _M(e){EM(e.x),EM(e.y)}function r7(e,t,n){return e==="position"||e==="preserve-aspect"&&!aZ(yM(t),yM(n))}const CZ=n7({attachResizeListener:(e,t)=>mC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),SR={current:void 0},wZ=n7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!SR.current){const e=new CZ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),SR.current=e}return SR.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),NZ={...tX,...dK,...CX,...KX},js=nY((e,t)=>$Y(e,t,NZ,VX,wZ));function a7(){const e=k.exports.useRef(!1);return y2(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function EZ(){const e=a7(),[t,n]=k.exports.useState(0),i=k.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[k.exports.useCallback(()=>vu.postRender(i),[i]),t]}var _Z="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class TZ extends k.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function RZ({children:e,isPresent:t}){const n=k.exports.useId(),i=k.exports.useRef(null),o=k.exports.useRef({width:0,height:0,top:0,left:0});return k.exports.useInsertionEffect(()=>{const{width:c,height:u,top:m,left:h}=o.current;if(t||!i.current||!c||!u)return;i.current.dataset.motionPopId=n;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
[data-motion-pop-id="${n}"] {
|
|
position: absolute !important;
|
|
width: ${c}px !important;
|
|
height: ${u}px !important;
|
|
top: ${m}px !important;
|
|
left: ${h}px !important;
|
|
}
|
|
`),()=>{document.head.removeChild(v)}},[t]),_(TZ,{isPresent:t,childRef:i,sizeRef:o,children:k.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:_Z,lineNumber:68,columnNumber:13},this)}var TM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const xR=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:c,mode:u})=>{const m=pC(AZ),h=k.exports.useId(),v=k.exports.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:b=>{m.set(b,!0);for(const x of m.values())if(!x)return;i&&i()},register:b=>(m.set(b,!1),()=>m.delete(b))}),c?void 0:[n]);return k.exports.useMemo(()=>{m.forEach((b,x)=>m.set(x,!1))},[n]),k.exports.useEffect(()=>{!n&&!m.size&&i&&i()},[n]),u==="popLayout"&&(e=_(RZ,{isPresent:n,children:e},void 0,!1,{fileName:TM,lineNumber:48,columnNumber:20},globalThis)),_(hv.Provider,{value:v,children:e},void 0,!1,{fileName:TM,lineNumber:50,columnNumber:13},globalThis)};function AZ(){return new Map}var CR="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const $h=e=>e.key||"";function kZ(e,t){e.forEach(n=>{const i=$h(n);t.set(i,n)})}function OZ(e){const t=[];return k.exports.Children.forEach(e,n=>{k.exports.isValidElement(n)&&t.push(n)}),t}const Rc=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:c=!0,mode:u="sync"})=>{o&&(u="wait",yk(!1,"Replace exitBeforeEnter with mode='wait'"));let[m]=EZ();const h=k.exports.useContext(tk).forceRender;h&&(m=h);const v=a7(),b=OZ(e);let x=b;const w=new Set,N=k.exports.useRef(x),R=k.exports.useRef(new Map).current,O=k.exports.useRef(!0);if(y2(()=>{O.current=!1,kZ(b,R),N.current=x}),uk(()=>{O.current=!0,R.clear(),w.clear()}),O.current)return _(hi,{children:x.map(F=>_(xR,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:c,mode:u,children:F},$h(F),!1,{fileName:CR,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);x=[...x];const M=N.current.map($h),B=b.map($h),I=M.length;for(let F=0;F<I;F++){const z=M[F];B.indexOf(z)===-1&&w.add(z)}return u==="wait"&&w.size&&(x=[]),w.forEach(F=>{if(B.indexOf(F)!==-1)return;const z=R.get(F);if(!z)return;const $=M.indexOf(F),q=()=>{R.delete(F),w.delete(F);const K=N.current.findIndex(le=>le.key===F);if(N.current.splice(K,1),!w.size){if(N.current=b,v.current===!1)return;m(),i&&i()}};x.splice($,0,_(xR,{isPresent:!1,onExitComplete:q,custom:t,presenceAffectsLayout:c,mode:u,children:z},$h(z),!1,{fileName:CR,lineNumber:143,columnNumber:52},globalThis))}),x=x.map(F=>{const z=F.key;return w.has(z)?F:_(xR,{isPresent:!0,presenceAffectsLayout:c,mode:u,children:F},$h(F),!1,{fileName:CR,lineNumber:149,columnNumber:46},globalThis)}),gk!=="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.`),_(hi,{children:w.size?x:x.map(F=>k.exports.cloneElement(F))},void 0,!1)};var Zy="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",Qy=(...e)=>e.filter(Boolean).join(" ");function DZ(){return!0}var PZ=e=>{const{condition:t,message:n}=e;t&&DZ()&&console.warn(n)},$p={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},F0={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 M5(e){switch(e?.direction??"right"){case"right":return F0.slideRight;case"left":return F0.slideLeft;case"bottom":return F0.slideDown;case"top":return F0.slideUp;default:return F0.slideRight}}var Vp={enter:{duration:.2,ease:$p.easeOut},exit:{duration:.1,ease:$p.easeIn}},Al={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},MZ=e=>e!=null&&parseInt(e.toString(),10)>0,RM={exit:{height:{duration:.2,ease:$p.ease},opacity:{duration:.3,ease:$p.ease}},enter:{height:{duration:.3,ease:$p.ease},opacity:{duration:.4,ease:$p.ease}}},IZ={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:MZ(t)?1:0},height:t,transitionEnd:i?.exit,transition:n?.exit??Al.exit(RM.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:n?.enter??Al.enter(RM.enter,o)})},i7=k.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:i,animateOpacity:o=!0,startingHeight:c=0,endingHeight:u="auto",style:m,className:h,transition:v,transitionEnd:b,...x}=e,[w,N]=k.exports.useState(!1);k.exports.useEffect(()=>{const I=setTimeout(()=>{N(!0)});return()=>clearTimeout(I)},[]),PZ({condition:Boolean(c>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const R=parseFloat(c.toString())>0,O={startingHeight:c,endingHeight:u,animateOpacity:o,transition:w?v:{enter:{duration:0}},transitionEnd:{enter:b?.enter,exit:i?b?.exit:{...b?.exit,display:R?"block":"none"}}},M=i?n:!0,B=n||i?"enter":"exit";return _(Rc,{initial:!1,custom:O,children:M&&Pe.createElement(js.div,{ref:t,...x,className:Qy("chakra-collapse",h),style:{overflow:"hidden",display:"block",...m},custom:O,variants:IZ,initial:i?"exit":!1,animate:B,exit:"exit"})},void 0,!1,{fileName:Zy,lineNumber:190,columnNumber:26},globalThis)});i7.displayName="Collapse";var LZ={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Al.enter(Vp.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??Al.exit(Vp.exit,n),transitionEnd:t?.exit})},o7={initial:"exit",animate:"enter",exit:"exit",variants:LZ},FZ=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,className:c,transition:u,transitionEnd:m,delay:h,...v}=t,b=o||i?"enter":"exit",x=i?o&&i:!0,w={transition:u,transitionEnd:m,delay:h};return _(Rc,{custom:w,children:x&&Pe.createElement(js.div,{ref:n,className:Qy("chakra-fade",c),custom:w,...o7,animate:b,...v})},void 0,!1,{fileName:Zy,lineNumber:248,columnNumber:26},this)});FZ.displayName="Fade";var zZ={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:n?.exit??Al.exit(Vp.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Al.enter(Vp.enter,n),transitionEnd:e?.enter})},s7={initial:"exit",animate:"enter",exit:"exit",variants:zZ},BZ=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:c=!0,initialScale:u=.95,className:m,transition:h,transitionEnd:v,delay:b,...x}=t,w=i?o&&i:!0,N=o||i?"enter":"exit",R={initialScale:u,reverse:c,transition:h,transitionEnd:v,delay:b};return _(Rc,{custom:R,children:w&&Pe.createElement(js.div,{ref:n,className:Qy("chakra-offset-slide",m),...s7,animate:N,custom:R,...x})},void 0,!1,{fileName:Zy,lineNumber:301,columnNumber:26},this)});BZ.displayName="ScaleFade";var AM={exit:{duration:.15,ease:$p.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},UZ={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{const{exit:o}=M5({direction:e});return{...o,transition:t?.exit??Al.exit(AM.exit,i),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{const{enter:o}=M5({direction:e});return{...o,transition:n?.enter??Al.enter(AM.enter,i),transitionEnd:t?.enter}}},l7=k.exports.forwardRef(function(t,n){const{direction:i="right",style:o,unmountOnExit:c,in:u,className:m,transition:h,transitionEnd:v,delay:b,...x}=t,w=M5({direction:i}),N=Object.assign({position:"fixed"},w.position,o),R=c?u&&c:!0,O=u||c?"enter":"exit",M={transitionEnd:v,transition:h,direction:i,delay:b};return _(Rc,{custom:M,children:R&&Pe.createElement(js.div,{...x,ref:n,initial:"exit",className:Qy("chakra-slide",m),animate:O,exit:"exit",custom:M,variants:UZ,style:N})},void 0,!1,{fileName:Zy,lineNumber:366,columnNumber:26},this)});l7.displayName="Slide";var $Z={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??Al.exit(Vp.exit,o),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Al.enter(Vp.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:i,reverse:o,delay:c})=>{const u={x:t,y:e};return{opacity:0,transition:n?.exit??Al.exit(Vp.exit,c),...o?{...u,transitionEnd:i?.exit}:{transitionEnd:{...u,...i?.exit}}}}},I5={initial:"initial",animate:"enter",exit:"exit",variants:$Z},jZ=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:c=!0,className:u,offsetX:m=0,offsetY:h=8,transition:v,transitionEnd:b,delay:x,...w}=t,N=i?o&&i:!0,R=o||i?"enter":"exit",O={offsetX:m,offsetY:h,reverse:c,transition:v,transitionEnd:b,delay:x};return _(Rc,{custom:O,children:N&&Pe.createElement(js.div,{ref:n,className:Qy("chakra-offset-slide",u),custom:O,...I5,animate:R,...w})},void 0,!1,{fileName:Zy,lineNumber:441,columnNumber:26},this)});jZ.displayName="SlideFade";var L5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",Jy=(...e)=>e.filter(Boolean).join(" ");function VZ(){return!0}var xC=e=>{const{condition:t,message:n}=e;t&&VZ()&&console.warn(n)};function wR(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[HZ,CC]=zr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[WZ,Tk]=zr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[GZ,pge,YZ,qZ]=$G(),Op=Xe(function(t,n){const{getButtonProps:i}=Tk(),o=i(t,n),c=CC(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...c.button};return Pe.createElement($e.button,{...o,className:Jy("chakra-accordion__button",t.className),__css:u})});Op.displayName="AccordionButton";function KZ(e){const{onChange:t,defaultIndex:n,index:i,allowMultiple:o,allowToggle:c,...u}=e;QZ(e),JZ(e);const m=YZ(),[h,v]=k.exports.useState(-1);k.exports.useEffect(()=>()=>{v(-1)},[]);const[b,x]=jG({value:i,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:b,setIndex:x,htmlProps:u,getAccordionItemProps:N=>{let R=!1;return N!==null&&(R=Array.isArray(b)?b.includes(N):b===N),{isOpen:R,onChange:M=>{if(N!==null)if(o&&Array.isArray(b)){const B=M?b.concat(N):b.filter(I=>I!==N);x(B)}else M?x(N):c&&x(-1)}}},focusedIndex:h,setFocusedIndex:v,descendants:m}}var[XZ,Rk]=zr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function ZZ(e){const{isDisabled:t,isFocusable:n,id:i,...o}=e,{getAccordionItemProps:c,setFocusedIndex:u}=Rk(),m=k.exports.useRef(null),h=k.exports.useId(),v=i??h,b=`accordion-button-${v}`,x=`accordion-panel-${v}`;eQ(e);const{register:w,index:N,descendants:R}=qZ({disabled:t&&!n}),{isOpen:O,onChange:M}=c(N===-1?null:N);tQ({isOpen:O,isDisabled:t});const B=()=>{M?.(!0)},I=()=>{M?.(!1)},F=k.exports.useCallback(()=>{M?.(!O),u(N)},[N,u,O,M]),z=k.exports.useCallback(le=>{const se={ArrowDown:()=>{const Se=R.nextEnabled(N);Se?.node.focus()},ArrowUp:()=>{const Se=R.prevEnabled(N);Se?.node.focus()},Home:()=>{const Se=R.firstEnabled();Se?.node.focus()},End:()=>{const Se=R.lastEnabled();Se?.node.focus()}}[le.key];se&&(le.preventDefault(),se(le))},[R,N]),$=k.exports.useCallback(()=>{u(N)},[u,N]),q=k.exports.useCallback(function(me={},se=null){return{...me,type:"button",ref:ma(w,m,se),id:b,disabled:!!t,"aria-expanded":!!O,"aria-controls":x,onClick:wR(me.onClick,F),onFocus:wR(me.onFocus,$),onKeyDown:wR(me.onKeyDown,z)}},[b,t,O,F,$,z,x,w]),K=k.exports.useCallback(function(me={},se=null){return{...me,ref:se,role:"region",id:x,"aria-labelledby":b,hidden:!O}},[b,O,x]);return{isOpen:O,isDisabled:t,isFocusable:n,onOpen:B,onClose:I,getButtonProps:q,getPanelProps:K,htmlProps:o}}function QZ(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;xC({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function JZ(e){xC({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function eQ(e){xC({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
|
|
`})}function tQ(e){xC({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Dp(e){const{isOpen:t,isDisabled:n}=Tk(),{reduceMotion:i}=Rk(),o=Jy("chakra-accordion__icon",e.className),c=CC(),u={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...c.icon};return _($s,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:u,...e,children:_("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:L5,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:L5,lineNumber:276,columnNumber:26},this)}Dp.displayName="AccordionIcon";var Pp=Xe(function(t,n){const{children:i,className:o}=t,{htmlProps:c,...u}=ZZ(t),h={...CC().container,overflowAnchor:"none"},v=k.exports.useMemo(()=>u,[u]);return Pe.createElement(WZ,{value:v},Pe.createElement($e.div,{ref:n,...c,className:Jy("chakra-accordion__item",o),__css:h},typeof i=="function"?i({isExpanded:!!u.isOpen,isDisabled:!!u.isDisabled}):i))});Pp.displayName="AccordionItem";var Mp=Xe(function(t,n){const{reduceMotion:i}=Rk(),{getPanelProps:o,isOpen:c}=Tk(),u=o(t,n),m=Jy("chakra-accordion__panel",t.className),h=CC();i||delete u.hidden;const v=Pe.createElement($e.div,{...u,__css:h.panel,className:m});return i?v:_(i7,{in:c,children:v},void 0,!1,{fileName:L5,lineNumber:336,columnNumber:28},this)});Mp.displayName="AccordionPanel";var u7=Xe(function({children:t,reduceMotion:n,...i},o){const c=Ro("Accordion",i),u=hr(i),{htmlProps:m,descendants:h,...v}=KZ(u),b=k.exports.useMemo(()=>({...v,reduceMotion:!!n}),[v,n]);return Pe.createElement(GZ,{value:h},Pe.createElement(XZ,{value:b},Pe.createElement(HZ,{value:c},Pe.createElement($e.div,{ref:o,...m,className:Jy("chakra-accordion",i.className),__css:c.root},t))))});u7.displayName="Accordion";var nQ=(...e)=>e.filter(Boolean).join(" "),rQ=jy({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wC=Xe((e,t)=>{const n=ao("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:c="0.45s",emptyColor:u="transparent",className:m,...h}=hr(e),v=nQ("chakra-spinner",m),b={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:u,borderLeftColor:u,animation:`${rQ} ${c} linear infinite`,...n};return Pe.createElement($e.div,{ref:t,__css:b,className:v,...h},i&&Pe.createElement($e.span,{srOnly:!0},i))});wC.displayName="Spinner";var qp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",NC=(...e)=>e.filter(Boolean).join(" ");function aQ(e){return _($s,{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"},void 0,!1,{fileName:qp,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:qp,lineNumber:21,columnNumber:26},this)}function iQ(e){return _($s,{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"},void 0,!1,{fileName:qp,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:qp,lineNumber:30,columnNumber:26},this)}function kM(e){return _($s,{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:qp,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:qp,lineNumber:39,columnNumber:26},this)}var[oQ,sQ]=zr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[lQ,Ak]=zr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),c7={info:{icon:iQ,colorScheme:"blue"},warning:{icon:kM,colorScheme:"orange"},success:{icon:aQ,colorScheme:"green"},error:{icon:kM,colorScheme:"red"},loading:{icon:wC,colorScheme:"blue"}};function uQ(e){return c7[e].colorScheme}function cQ(e){return c7[e].icon}var f7=Xe(function(t,n){const{status:i="info",addRole:o=!0,...c}=hr(t),u=t.colorScheme??uQ(i),m=Ro("Alert",{...t,colorScheme:u}),h={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...m.container};return Pe.createElement(oQ,{value:{status:i}},Pe.createElement(lQ,{value:m},Pe.createElement($e.div,{role:o?"alert":void 0,ref:n,...c,className:NC("chakra-alert",t.className),__css:h})))});f7.displayName="Alert";var d7=Xe(function(t,n){const i=Ak(),o={display:"inline",...i.description};return Pe.createElement($e.div,{ref:n,...t,className:NC("chakra-alert__desc",t.className),__css:o})});d7.displayName="AlertDescription";function p7(e){const{status:t}=sQ(),n=cQ(t),i=Ak(),o=t==="loading"?i.spinner:i.icon;return Pe.createElement($e.span,{display:"inherit",...e,className:NC("chakra-alert__icon",e.className),__css:o},e.children||_(n,{h:"100%",w:"100%"},void 0,!1,{fileName:qp,lineNumber:133,columnNumber:40},this))}p7.displayName="AlertIcon";var m7=Xe(function(t,n){const i=Ak();return Pe.createElement($e.div,{ref:n,...t,className:NC("chakra-alert__title",t.className),__css:i.title})});m7.displayName="AlertTitle";var fQ="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function dQ(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function pQ(e){const{loading:t,src:n,srcSet:i,onLoad:o,onError:c,crossOrigin:u,sizes:m,ignoreFallback:h}=e,[v,b]=k.exports.useState("pending");k.exports.useEffect(()=>{b(n?"loading":"pending")},[n]);const x=k.exports.useRef(),w=k.exports.useCallback(()=>{if(!n)return;N();const R=new Image;R.src=n,u&&(R.crossOrigin=u),i&&(R.srcset=i),m&&(R.sizes=m),t&&(R.loading=t),R.onload=O=>{N(),b("loaded"),o?.(O)},R.onerror=O=>{N(),b("failed"),c?.(O)},x.current=R},[n,u,i,m,o,c,t]),N=()=>{x.current&&(x.current.onload=null,x.current.onerror=null,x.current=null)};return Sc(()=>{if(!h)return v==="loading"&&w(),()=>{N()}},[v,w,h]),h?"loaded":v}var mQ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",A2=Xe(function(t,n){const{htmlWidth:i,htmlHeight:o,alt:c,...u}=t;return _("img",{width:i,height:o,ref:n,alt:c,...u},void 0,!1,{fileName:fQ,lineNumber:90,columnNumber:26},this)});A2.displayName="NativeImage";var Ey=Xe(function(t,n){const{fallbackSrc:i,fallback:o,src:c,srcSet:u,align:m,fit:h,loading:v,ignoreFallback:b,crossOrigin:x,fallbackStrategy:w="beforeLoadOrError",referrerPolicy:N,...R}=t,O=i!==void 0||o!==void 0,M=v!=null||b||!O,B=pQ({...t,ignoreFallback:M}),I=mQ(B,w),F={ref:n,objectFit:h,objectPosition:m,...M?R:dQ(R,["onError","onLoad"])};return I?o||Pe.createElement($e.img,{as:A2,className:"chakra-image__placeholder",src:i,...F}):Pe.createElement($e.img,{as:A2,src:c,srcSet:u,crossOrigin:x,loading:v,referrerPolicy:N,className:"chakra-image",...F})});Ey.displayName="Image";Xe((e,t)=>Pe.createElement($e.img,{ref:t,as:A2,className:"chakra-image",...e}));var hQ=Object.create,h7=Object.defineProperty,vQ=Object.getOwnPropertyDescriptor,v7=Object.getOwnPropertyNames,gQ=Object.getPrototypeOf,yQ=Object.prototype.hasOwnProperty,g7=(e,t)=>function(){return t||(0,e[v7(e)[0]])((t={exports:{}}).exports,t),t.exports},bQ=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of v7(t))!yQ.call(e,o)&&o!==n&&h7(e,o,{get:()=>t[o],enumerable:!(i=vQ(t,o))||i.enumerable});return e},SQ=(e,t,n)=>(n=e!=null?hQ(gQ(e)):{},bQ(t||!e||!e.__esModule?h7(n,"default",{value:e,enumerable:!0}):n,e)),xQ=g7({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator,B="@@iterator";function I(S){if(S===null||typeof S!="object")return null;var A=M&&S[M]||S[B];return typeof A=="function"?A:null}var F={current:null},z={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},K={},le=null;function me(S){le=S}K.setExtraStackFrame=function(S){le=S},K.getCurrentStack=null,K.getStackAddendum=function(){var S="";le&&(S+=le);var A=K.getCurrentStack;return A&&(S+=A()||""),S};var se=!1,Se=!1,qe=!1,ae=!1,ue=!1,Ee={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:z,ReactCurrentOwner:q};Ee.ReactDebugCurrentFrame=K,Ee.ReactCurrentActQueue=$;function de(S){{for(var A=arguments.length,V=new Array(A>1?A-1:0),G=1;G<A;G++)V[G-1]=arguments[G];xe("warn",S,V)}}function ie(S){{for(var A=arguments.length,V=new Array(A>1?A-1:0),G=1;G<A;G++)V[G-1]=arguments[G];xe("error",S,V)}}function xe(S,A,V){{var G=Ee.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(A+="%s",V=V.concat([te]));var ze=V.map(function(we){return String(we)});ze.unshift("Warning: "+A),Function.prototype.apply.call(console[S],console,ze)}}var Ne={};function he(S,A){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",te=G+"."+A;if(Ne[te])return;ie("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.",A,G),Ne[te]=!0}}var Ce={isMounted:function(S){return!1},enqueueForceUpdate:function(S,A,V){he(S,"forceUpdate")},enqueueReplaceState:function(S,A,V,G){he(S,"replaceState")},enqueueSetState:function(S,A,V,G){he(S,"setState")}},Me=Object.assign,Ie={};Object.freeze(Ie);function Ye(S,A,V){this.props=S,this.context=A,this.refs=Ie,this.updater=V||Ce}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,A){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,A,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var at={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)."]},gt=function(S,A){Object.defineProperty(Ye.prototype,S,{get:function(){de("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1])}})};for(var Ht in at)at.hasOwnProperty(Ht)&>(Ht,at[Ht])}function Ze(){}Ze.prototype=Ye.prototype;function ct(S,A,V){this.props=S,this.context=A,this.refs=Ie,this.updater=V||Ce}var wt=ct.prototype=new Ze;wt.constructor=ct,Me(wt,Ye.prototype),wt.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var Ge=Array.isArray;function Wt(S){return Ge(S)}function ye(S){{var A=typeof Symbol=="function"&&Symbol.toStringTag,V=A&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function et(S){try{return Nt(S),!1}catch{return!0}}function Nt(S){return""+S}function lt(S){if(et(S))return ie("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Nt(S)}function xn(S,A,V){var G=S.displayName;if(G)return G;var te=A.displayName||A.name||"";return te!==""?V+"("+te+")":V}function $n(S){return S.displayName||"Context"}function Lt(S){if(S==null)return null;if(typeof S.tag=="number"&&ie("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 o:return"Portal";case m:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var A=S;return $n(A)+".Consumer";case h:var V=S;return $n(V._context)+".Provider";case b:return xn(S,S.render,"ForwardRef");case N:var G=S.displayName||null;return G!==null?G:Lt(S.type)||"Memo";case R:{var te=S,ze=te._payload,we=te._init;try{return Lt(we(ze))}catch{return null}}}return null}var an=Object.prototype.hasOwnProperty,On={key:!0,ref:!0,__self:!0,__source:!0},gn,He,Je;Je={};function tn(S){if(an.call(S,"ref")){var A=Object.getOwnPropertyDescriptor(S,"ref").get;if(A&&A.isReactWarning)return!1}return S.ref!==void 0}function kt(S){if(an.call(S,"key")){var A=Object.getOwnPropertyDescriptor(S,"key").get;if(A&&A.isReactWarning)return!1}return S.key!==void 0}function Oe(S,A){var V=function(){gn||(gn=!0,ie("%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)",A))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function Yt(S,A){var V=function(){He||(He=!0,ie("%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)",A))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function _n(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var A=Lt(q.current.type);Je[A]||(ie('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',A,S.ref),Je[A]=!0)}}var je=function(S,A,V,G,te,ze,we){var Ve={$$typeof:i,type:S,key:A,ref:V,props:we,_owner:ze};return Ve._store={},Object.defineProperty(Ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(Ve.props),Object.freeze(Ve)),Ve};function it(S,A,V){var G,te={},ze=null,we=null,Ve=null,st=null;if(A!=null){tn(A)&&(we=A.ref,_n(A)),kt(A)&&(lt(A.key),ze=""+A.key),Ve=A.__self===void 0?null:A.__self,st=A.__source===void 0?null:A.__source;for(G in A)an.call(A,G)&&!On.hasOwnProperty(G)&&(te[G]=A[G])}var St=arguments.length-2;if(St===1)te.children=V;else if(St>1){for(var Ot=Array(St),yt=0;yt<St;yt++)Ot[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Ot),te.children=Ot}if(S&&S.defaultProps){var jt=S.defaultProps;for(G in jt)te[G]===void 0&&(te[G]=jt[G])}if(ze||we){var Tt=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&Oe(te,Tt),we&&Yt(te,Tt)}return je(S,ze,we,Ve,st,q.current,te)}function _t(S,A){var V=je(S.type,A,S.ref,S._self,S._source,S._owner,S.props);return V}function hn(S,A,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Me({},S.props),ze=S.key,we=S.ref,Ve=S._self,st=S._source,St=S._owner;if(A!=null){tn(A)&&(we=A.ref,St=q.current),kt(A)&&(lt(A.key),ze=""+A.key);var Ot;S.type&&S.type.defaultProps&&(Ot=S.type.defaultProps);for(G in A)an.call(A,G)&&!On.hasOwnProperty(G)&&(A[G]===void 0&&Ot!==void 0?te[G]=Ot[G]:te[G]=A[G])}var yt=arguments.length-2;if(yt===1)te.children=V;else if(yt>1){for(var jt=Array(yt),Tt=0;Tt<yt;Tt++)jt[Tt]=arguments[Tt+2];te.children=jt}return je(S.type,ze,we,Ve,st,St,te)}function Qt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",Ln=":";function kr(S){var A=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(A,function(te){return V[te]});return"$"+G}var Dn=!1,va=/\/+/g;function jn(S){return S.replace(va,"$&/")}function Rn(S,A){return typeof S=="object"&&S!==null&&S.key!=null?(lt(S.key),kr(""+S.key)):A.toString(36)}function ga(S,A,V,G,te){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var we=!1;if(S===null)we=!0;else switch(ze){case"string":case"number":we=!0;break;case"object":switch(S.$$typeof){case i:case o:we=!0}}if(we){var Ve=S,st=te(Ve),St=G===""?Tn+Rn(Ve,0):G;if(Wt(st)){var Ot="";St!=null&&(Ot=jn(St)+"/"),ga(st,A,Ot,"",function(od){return od})}else st!=null&&(Qt(st)&&(st.key&&(!Ve||Ve.key!==st.key)&<(st.key),st=_t(st,V+(st.key&&(!Ve||Ve.key!==st.key)?jn(""+st.key)+"/":"")+St)),A.push(st));return 1}var yt,jt,Tt=0,Bt=G===""?Tn:G+Ln;if(Wt(S))for(var Ci=0;Ci<S.length;Ci++)yt=S[Ci],jt=Bt+Rn(yt,Ci),Tt+=ga(yt,A,V,jt,te);else{var Ca=I(S);if(typeof Ca=="function"){var jo=S;Ca===jo.entries&&(Dn||de("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dn=!0);for(var _u=Ca.call(jo),Pn,wi=0;!(Pn=_u.next()).done;)yt=Pn.value,jt=Bt+Rn(yt,wi++),Tt+=ga(yt,A,V,jt,te)}else if(ze==="object"){var ds=String(S);throw new Error("Objects are not valid as a React child (found: "+(ds==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ds)+"). If you meant to render a collection of children, use an array instead.")}}return Tt}function Sr(S,A,V){if(S==null)return S;var G=[],te=0;return ga(S,G,"","",function(ze){return A.call(V,ze,te++)}),G}function ko(S){var A=0;return Sr(S,function(){A++}),A}function as(S,A,V){Sr(S,function(){A.apply(this,arguments)},V)}function is(S){return Sr(S,function(A){return A})||[]}function Oo(S){if(!Qt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Do(S){var A={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:h,_context:A};var V=!1,G=!1,te=!1;{var ze={$$typeof:v,_context:A};Object.defineProperties(ze,{Provider:{get:function(){return G||(G=!0,ie("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),A.Provider},set:function(we){A.Provider=we}},_currentValue:{get:function(){return A._currentValue},set:function(we){A._currentValue=we}},_currentValue2:{get:function(){return A._currentValue2},set:function(we){A._currentValue2=we}},_threadCount:{get:function(){return A._threadCount},set:function(we){A._threadCount=we}},Consumer:{get:function(){return V||(V=!0,ie("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),A.Consumer}},displayName:{get:function(){return A.displayName},set:function(we){te||(de("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",we),te=!0)}}}),A.Consumer=ze}return A._currentRenderer=null,A._currentRenderer2=null,A}var vr=-1,Ia=0,Fi=1,La=2;function X(S){if(S._status===vr){var A=S._result,V=A();if(V.then(function(ze){if(S._status===Ia||S._status===vr){var we=S;we._status=Fi,we._result=ze}},function(ze){if(S._status===Ia||S._status===vr){var we=S;we._status=La,we._result=ze}}),S._status===vr){var G=S;G._status=Ia,G._result=V}}if(S._status===Fi){var te=S._result;return te===void 0&&ie(`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||ie(`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 Ue(S){var A={_status:vr,_result:S},V={$$typeof:R,_payload:A,_init:X};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(ze){ie("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=ze,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(ze){ie("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=ze,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Ke(S){S!=null&&S.$$typeof===N?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?ie("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&ie("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)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var A={$$typeof:b,render:S};{var V;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return A}var Ct;Ct=Symbol.for("react.module.reference");function on(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===m||ue||S===u||S===x||S===w||ae||S===O||se||Se||qe||typeof S=="object"&&S!==null&&(S.$$typeof===R||S.$$typeof===N||S.$$typeof===h||S.$$typeof===v||S.$$typeof===b||S.$$typeof===Ct||S.getModuleId!==void 0))}function Cn(S,A){on(S)||ie("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:N,type:S,compare:A===void 0?null:A};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return V}function nt(){var S=F.current;return S===null&&ie(`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 qt(S){var A=nt();if(S._context!==void 0){var V=S._context;V.Consumer===S?ie("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?"):V.Provider===S&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(S)}function Vn(S){var A=nt();return A.useState(S)}function Bn(S,A,V){var G=nt();return G.useReducer(S,A,V)}function ln(S){var A=nt();return A.useRef(S)}function Ur(S,A){var V=nt();return V.useEffect(S,A)}function vi(S,A){var V=nt();return V.useInsertionEffect(S,A)}function Po(S,A){var V=nt();return V.useLayoutEffect(S,A)}function ya(S,A){var V=nt();return V.useCallback(S,A)}function oo(S,A){var V=nt();return V.useMemo(S,A)}function Nu(S,A,V){var G=nt();return G.useImperativeHandle(S,A,V)}function gi(S,A){{var V=nt();return V.useDebugValue(S,A)}}function Hs(){var S=nt();return S.useTransition()}function zi(S){var A=nt();return A.useDeferredValue(S)}function Jt(){var S=nt();return S.useId()}function Bi(S,A,V){var G=nt();return G.useSyncExternalStore(S,A,V)}var ba=0,Mo,os,Io,ss,ls,Lo,Fo;function us(){}us.__reactDisabledLog=!0;function Ws(){{if(ba===0){Mo=console.log,os=console.info,Io=console.warn,ss=console.error,ls=console.group,Lo=console.groupCollapsed,Fo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:us,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}ba++}}function Gs(){{if(ba--,ba===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},S,{value:Mo}),info:Me({},S,{value:os}),warn:Me({},S,{value:Io}),error:Me({},S,{value:ss}),group:Me({},S,{value:ls}),groupCollapsed:Me({},S,{value:Lo}),groupEnd:Me({},S,{value:Fo})})}ba<0&&ie("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yi=Ee.ReactCurrentDispatcher,Mr;function Fa(S,A,V){{if(Mr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);Mr=G&&G[1]||""}return`
|
|
`+Mr+S}}var Sa=!1,za;{var cs=typeof WeakMap=="function"?WeakMap:Map;za=new cs}function zo(S,A){if(!S||Sa)return"";{var V=za.get(S);if(V!==void 0)return V}var G;Sa=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=yi.current,yi.current=null,Ws();try{if(A){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(Bt){G=Bt}Reflect.construct(S,[],we)}else{try{we.call()}catch(Bt){G=Bt}S.call(we.prototype)}}else{try{throw Error()}catch(Bt){G=Bt}S()}}catch(Bt){if(Bt&&G&&typeof Bt.stack=="string"){for(var Ve=Bt.stack.split(`
|
|
`),st=G.stack.split(`
|
|
`),St=Ve.length-1,Ot=st.length-1;St>=1&&Ot>=0&&Ve[St]!==st[Ot];)Ot--;for(;St>=1&&Ot>=0;St--,Ot--)if(Ve[St]!==st[Ot]){if(St!==1||Ot!==1)do if(St--,Ot--,Ot<0||Ve[St]!==st[Ot]){var yt=`
|
|
`+Ve[St].replace(" at new "," at ");return S.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",S.displayName)),typeof S=="function"&&za.set(S,yt),yt}while(St>=1&&Ot>=0);break}}}finally{Sa=!1,yi.current=ze,Gs(),Error.prepareStackTrace=te}var jt=S?S.displayName||S.name:"",Tt=jt?Fa(jt):"";return typeof S=="function"&&za.set(S,Tt),Tt}function fs(S,A,V){return zo(S,!1)}function Ml(S){var A=S.prototype;return!!(A&&A.isReactComponent)}function xa(S,A,V){if(S==null)return"";if(typeof S=="function")return zo(S,Ml(S));if(typeof S=="string")return Fa(S);switch(S){case x:return Fa("Suspense");case w:return Fa("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return fs(S.render);case N:return xa(S.type,A,V);case R:{var G=S,te=G._payload,ze=G._init;try{return xa(ze(te),A,V)}catch{}}}return""}var Bo={},Ba=Ee.ReactDebugCurrentFrame;function bi(S){if(S){var A=S._owner,V=xa(S.type,S._source,A?A.type:null);Ba.setExtraStackFrame(V)}else Ba.setExtraStackFrame(null)}function Ys(S,A,V,G,te){{var ze=Function.call.bind(an);for(var we in S)if(ze(S,we)){var Ve=void 0;try{if(typeof S[we]!="function"){var st=Error((G||"React class")+": "+V+" type `"+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[we]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}Ve=S[we](A,we,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(St){Ve=St}Ve&&!(Ve instanceof Error)&&(bi(te),ie("%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",V,we,typeof Ve),bi(null)),Ve instanceof Error&&!(Ve.message in Bo)&&(Bo[Ve.message]=!0,bi(te),ie("Failed %s type: %s",V,Ve.message),bi(null))}}}function un(S){if(S){var A=S._owner,V=xa(S.type,S._source,A?A.type:null);me(V)}else me(null)}var Si;Si=!1;function Uo(){if(q.current){var S=Lt(q.current.type);if(S)return`
|
|
|
|
Check the render method of \``+S+"`."}return""}function $t(S){if(S!==void 0){var A=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
|
|
|
|
Check your code at `+A+":"+V+"."}return""}function qs(S){return S!=null?$t(S.__source):""}var xr={};function Ui(S){var A=Uo();if(!A){var V=typeof S=="string"?S:S.displayName||S.name;V&&(A=`
|
|
|
|
Check the top-level render call using <`+V+">.")}return A}function Ya(S,A){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ui(A);if(!xr[V]){xr[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+Lt(S._owner.type)+"."),un(S),ie('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),un(null)}}}function so(S,A){if(typeof S=="object"){if(Wt(S))for(var V=0;V<S.length;V++){var G=S[V];Qt(G)&&Ya(G,A)}else if(Qt(S))S._store&&(S._store.validated=!0);else if(S){var te=I(S);if(typeof te=="function"&&te!==S.entries)for(var ze=te.call(S),we;!(we=ze.next()).done;)Qt(we.value)&&Ya(we.value,A)}}}function _r(S){{var A=S.type;if(A==null||typeof A=="string")return;var V;if(typeof A=="function")V=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===b||A.$$typeof===N))V=A.propTypes;else return;if(V){var G=Lt(A);Ys(V,S.props,"prop",G,S)}else if(A.PropTypes!==void 0&&!Si){Si=!0;var te=Lt(A);ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(S){{for(var A=Object.keys(S.props),V=0;V<A.length;V++){var G=A[V];if(G!=="children"&&G!=="key"){un(S),ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),un(null);break}}S.ref!==null&&(un(S),ie("Invalid attribute `ref` supplied to `React.Fragment`."),un(null))}}function $o(S,A,V){var G=on(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 ze=qs(A);ze?te+=ze:te+=Uo();var we;S===null?we="null":Wt(S)?we="array":S!==void 0&&S.$$typeof===i?(we="<"+(Lt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):we=typeof S,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,te)}var Ve=it.apply(this,arguments);if(Ve==null)return Ve;if(G)for(var st=2;st<arguments.length;st++)so(arguments[st],S);return S===c?or(Ve):_r(Ve),Ve}var Kr=!1;function pr(S){var A=$o.bind(null,S);return A.type=S,Kr||(Kr=!0,de("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(A,"type",{enumerable:!1,get:function(){return de("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),A}function aa(S,A,V){for(var G=hn.apply(this,arguments),te=2;te<arguments.length;te++)so(arguments[te],G.type);return _r(G),G}function Eu(S,A){var V=z.transition;z.transition={};var G=z.transition;z.transition._updatedFibers=new Set;try{S()}finally{if(z.transition=V,V===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&de("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 lo=!1,xi=null;function Ks(S){if(xi===null)try{var A=("require"+Math.random()).slice(0,7),V=t&&t[A];xi=V.call(t,"timers").setImmediate}catch{xi=function(te){lo===!1&&(lo=!0,typeof MessageChannel>"u"&&ie("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 ze=new MessageChannel;ze.port1.onmessage=te,ze.port2.postMessage(void 0)}}return xi(S)}var vn=0,Fn=!1;function Il(S){{var A=vn;vn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,pe(te))}}catch(jt){throw Ua(A),jt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var ze=G,we=!1,Ve={then:function(jt,Tt){we=!0,ze.then(function(Bt){Ua(A),vn===0?W(Bt,jt,Tt):jt(Bt)},function(Bt){Ua(A),Tt(Bt)})}};return!Fn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){we||(Fn=!0,ie("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 () => ...);"))}),Ve}else{var st=G;if(Ua(A),vn===0){var St=$.current;St!==null&&(pe(St),$.current=null);var Ot={then:function(jt,Tt){$.current===null?($.current=[],W(st,jt,Tt)):jt(st)}};return Ot}else{var yt={then:function(jt,Tt){jt(st)}};return yt}}}}function Ua(S){S!==vn-1&&ie("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),vn=S}function W(S,A,V){{var G=$.current;if(G!==null)try{pe(G),Ks(function(){G.length===0?($.current=null,A(S)):W(S,A,V)})}catch(te){V(te)}else A(S)}}var Q=!1;function pe(S){if(!Q){Q=!0;var A=0;try{for(;A<S.length;A++){var V=S[A];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(A+1),G}finally{Q=!1}}}var ot=$o,cn=aa,zn=pr,Kt={map:Sr,forEach:as,count:ko,toArray:is,only:Oo};e.Children=Kt,e.Component=Ye,e.Fragment=c,e.Profiler=m,e.PureComponent=ct,e.StrictMode=u,e.Suspense=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ee,e.cloneElement=cn,e.createContext=Do,e.createElement=ot,e.createFactory=zn,e.createRef=zt,e.forwardRef=Ke,e.isValidElement=Qt,e.lazy=Ue,e.memo=Cn,e.startTransition=Eu,e.unstable_act=Il,e.useCallback=ya,e.useContext=qt,e.useDebugValue=gi,e.useDeferredValue=zi,e.useEffect=Ur,e.useId=Jt,e.useImperativeHandle=Nu,e.useInsertionEffect=vi,e.useLayoutEffect=Po,e.useMemo=oo,e.useReducer=Bn,e.useRef=ln,e.useState=Vn,e.useSyncExternalStore=Bi,e.useTransition=Hs,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),CQ=g7({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=xQ()}}),OM=SQ(CQ());function kk(e){return OM.Children.toArray(e).filter(t=>(0,OM.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 Hf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",EC=(...e)=>e.filter(Boolean).join(" "),DM=e=>e?"":void 0,[wQ,NQ]=zr({strict:!1,name:"ButtonGroupContext"});function F5(e){const{children:t,className:n,...i}=e,o=k.exports.isValidElement(t)?k.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,c=EC("chakra-button__icon",n);return Pe.createElement($e.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:c},o)}F5.displayName="ButtonIcon";function z5(e){const{label:t,placement:n,spacing:i="0.5rem",children:o=_(wC,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:Hf,lineNumber:56,columnNumber:32},this),className:c,__css:u,...m}=e,h=EC("chakra-button__spinner",c),v=n==="start"?"marginEnd":"marginStart",b=k.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,v,i]);return Pe.createElement($e.div,{className:h,...m,__css:b},o)}z5.displayName="ButtonSpinner";function EQ(e){const[t,n]=k.exports.useState(!e);return{ref:k.exports.useCallback(c=>{!c||n(c.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Dl=Xe((e,t)=>{const n=NQ(),i=ao("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:c,isActive:u,children:m,leftIcon:h,rightIcon:v,loadingText:b,iconSpacing:x="0.5rem",type:w,spinner:N,spinnerPlacement:R="start",className:O,as:M,...B}=hr(e),I=k.exports.useMemo(()=>{const q={...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,...!!n&&{_focus:q}}},[i,n]),{ref:F,type:z}=EQ(M),$={rightIcon:v,leftIcon:h,iconSpacing:x,children:m};return Pe.createElement($e.button,{disabled:o||c,ref:IG(t,F),as:M,type:w??z,"data-active":DM(u),"data-loading":DM(c),__css:I,className:EC("chakra-button",O),...B},c&&R==="start"&&_(z5,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:N},void 0,!1,{fileName:Hf,lineNumber:145,columnNumber:67},globalThis),c?b||Pe.createElement($e.span,{opacity:0},_(PM,{...$},void 0,!1,{fileName:Hf,lineNumber:152,columnNumber:22},globalThis)):_(PM,{...$},void 0,!1,{fileName:Hf,lineNumber:154,columnNumber:25},globalThis),c&&R==="end"&&_(z5,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:N},void 0,!1,{fileName:Hf,lineNumber:156,columnNumber:66},globalThis))});Dl.displayName="Button";function PM(e){const{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return _(hi,{children:[t&&_(F5,{marginEnd:o,children:t},void 0,!1,{fileName:Hf,lineNumber:166,columnNumber:96},this),i,n&&_(F5,{marginStart:o,children:n},void 0,!1,{fileName:Hf,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var _Q=Xe(function(t,n){const{size:i,colorScheme:o,variant:c,className:u,spacing:m="0.5rem",isAttached:h,isDisabled:v,...b}=t,x=EC("chakra-button__group",u),w=k.exports.useMemo(()=>({size:i,colorScheme:o,variant:c,isDisabled:v}),[i,o,c,v]);let N={display:"inline-flex"};return h?N={...N,"> *: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}}:N={...N,"& > *:not(style) ~ *:not(style)":{marginStart:m}},Pe.createElement(wQ,{value:w},Pe.createElement($e.div,{ref:n,role:"group",__css:N,className:x,"data-attached":h?"":void 0,...b}))});_Q.displayName="ButtonGroup";var wo=Xe((e,t)=>{const{icon:n,children:i,isRound:o,"aria-label":c,...u}=e,m=n||i,h=k.exports.isValidElement(m)?k.exports.cloneElement(m,{"aria-hidden":!0,focusable:!1}):null;return _(Dl,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":c,...u,children:h},void 0,!1,{fileName:Hf,lineNumber:231,columnNumber:26},globalThis)});wo.displayName="IconButton";var B5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",yv=(...e)=>e.filter(Boolean).join(" "),Nx=e=>e?"":void 0,NR=e=>e?!0:void 0;function MM(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[TQ,y7]=zr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[RQ,bv]=zr({strict:!1,name:"FormControlContext"});function AQ(e){const{id:t,isRequired:n,isInvalid:i,isDisabled:o,isReadOnly:c,...u}=e,m=k.exports.useId(),h=t||`field-${m}`,v=`${h}-label`,b=`${h}-feedback`,x=`${h}-helptext`,[w,N]=k.exports.useState(!1),[R,O]=k.exports.useState(!1),[M,B]=k.exports.useState(!1),I=k.exports.useCallback((K={},le=null)=>({id:x,...K,ref:ma(le,me=>{!me||O(!0)})}),[x]),F=k.exports.useCallback((K={},le=null)=>({...K,ref:le,"data-focus":Nx(M),"data-disabled":Nx(o),"data-invalid":Nx(i),"data-readonly":Nx(c),id:K.id??v,htmlFor:K.htmlFor??h}),[h,o,M,i,c,v]),z=k.exports.useCallback((K={},le=null)=>({id:b,...K,ref:ma(le,me=>{!me||N(!0)}),"aria-live":"polite"}),[b]),$=k.exports.useCallback((K={},le=null)=>({...K,...u,ref:le,role:"group"}),[u]),q=k.exports.useCallback((K={},le=null)=>({...K,ref:le,role:"presentation","aria-hidden":!0,children:K.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!c,isDisabled:!!o,isFocused:!!M,onFocus:()=>B(!0),onBlur:()=>B(!1),hasFeedbackText:w,setHasFeedbackText:N,hasHelpText:R,setHasHelpText:O,id:h,labelId:v,feedbackId:b,helpTextId:x,htmlProps:u,getHelpTextProps:I,getErrorMessageProps:z,getRootProps:$,getLabelProps:F,getRequiredIndicatorProps:q}}var xc=Xe(function(t,n){const i=Ro("Form",t),o=hr(t),{getRootProps:c,htmlProps:u,...m}=AQ(o),h=yv("chakra-form-control",t.className);return Pe.createElement(RQ,{value:m},Pe.createElement(TQ,{value:i},Pe.createElement($e.div,{...c({},n),className:h,__css:i.container})))});xc.displayName="FormControl";var kQ=Xe(function(t,n){const i=bv(),o=y7(),c=yv("chakra-form__helper-text",t.className);return Pe.createElement($e.div,{...i?.getHelpTextProps(t,n),__css:o.helperText,className:c})});kQ.displayName="FormHelperText";function Ok(e){const{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...c}=Dk(e);return{...c,disabled:t,readOnly:i,required:o,"aria-invalid":NR(n),"aria-required":NR(o),"aria-readonly":NR(i)}}function Dk(e){const t=bv(),{id:n,disabled:i,readOnly:o,required:c,isRequired:u,isInvalid:m,isReadOnly:h,isDisabled:v,onFocus:b,onBlur:x,...w}=e,N=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&N.push(t.feedbackId),t?.hasHelpText&&N.push(t.helpTextId),{...w,"aria-describedby":N.join(" ")||void 0,id:n??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:o??h??t?.isReadOnly,isRequired:c??u??t?.isRequired,isInvalid:m??t?.isInvalid,onFocus:MM(t?.onFocus,b),onBlur:MM(t?.onBlur,x)}}var[OQ,DQ]=zr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),PQ=Xe((e,t)=>{const n=Ro("FormError",e),i=hr(e),o=bv();return o?.isInvalid?Pe.createElement(OQ,{value:n},Pe.createElement($e.div,{...o?.getErrorMessageProps(i,t),className:yv("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});PQ.displayName="FormErrorMessage";var MQ=Xe((e,t)=>{const n=DQ(),i=bv();if(!i?.isInvalid)return null;const o=yv("chakra-form__error-icon",e.className);return _($s,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:_("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:B5,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:B5,lineNumber:238,columnNumber:26},globalThis)});MQ.displayName="FormErrorIcon";var Cc=Xe(function(t,n){const i=ao("FormLabel",t),o=hr(t),{className:c,children:u,requiredIndicator:m=_(b7,{},void 0,!1,{fileName:B5,lineNumber:264,columnNumber:41},this),optionalIndicator:h=null,...v}=o,b=bv(),x=b?.getLabelProps(v,n)??{ref:n,...v};return Pe.createElement($e.label,{...x,className:yv("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i}},u,b?.isRequired?m:h)});Cc.displayName="FormLabel";var b7=Xe(function(t,n){const i=bv(),o=y7();if(!i?.isRequired)return null;const c=yv("chakra-form__required-indicator",t.className);return Pe.createElement($e.span,{...i?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:c})});b7.displayName="RequiredIndicator";function k2(e,t){const n=k.exports.useRef(!1),i=k.exports.useRef(!1);k.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),k.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var Pk={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},IQ=$e("span",{baseStyle:Pk});IQ.displayName="VisuallyHidden";var LQ=$e("input",{baseStyle:Pk});LQ.displayName="VisuallyHiddenInput";var IM=!1,_C=null,sv=!1,U5=new Set,FQ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function zQ(e){return!(e.metaKey||!FQ&&e.altKey||e.ctrlKey)}function Mk(e,t){U5.forEach(n=>n(e,t))}function LM(e){sv=!0,zQ(e)&&(_C="keyboard",Mk("keyboard",e))}function Ah(e){_C="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(sv=!0,Mk("pointer",e))}function BQ(e){e.target===window||e.target===document||(sv||(_C="keyboard",Mk("keyboard",e)),sv=!1)}function UQ(){sv=!1}function FM(){return _C!=="pointer"}function $Q(){if(typeof window>"u"||IM)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){sv=!0,e.apply(this,n)},document.addEventListener("keydown",LM,!0),document.addEventListener("keyup",LM,!0),window.addEventListener("focus",BQ,!0),window.addEventListener("blur",UQ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ah,!0),document.addEventListener("pointermove",Ah,!0),document.addEventListener("pointerup",Ah,!0)):(document.addEventListener("mousedown",Ah,!0),document.addEventListener("mousemove",Ah,!0),document.addEventListener("mouseup",Ah,!0)),IM=!0}function jQ(e){$Q(),e(FM());const t=()=>e(FM());return U5.add(t),()=>{U5.delete(t)}}var Rl="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[mge,VQ]=zr({name:"CheckboxGroupContext",strict:!1}),HQ=(...e)=>e.filter(Boolean).join(" "),Qi=e=>e?"":void 0;function Is(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function WQ(...e){return function(n){e.forEach(i=>{i?.(n)})}}function GQ(e){const t=js;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var S7=GQ($e.svg);function YQ(e){return _(S7,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:_("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:Rl,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:Rl,lineNumber:116,columnNumber:26},this)}function qQ(e){return _(S7,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:_("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:Rl,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:Rl,lineNumber:142,columnNumber:26},this)}function KQ({open:e,children:t}){return _(Rc,{initial:!1,children:e&&Pe.createElement(js.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:Rl,lineNumber:169,columnNumber:26},this)}function XQ(e){const{isIndeterminate:t,isChecked:n,...i}=e;return _(KQ,{open:n||t,children:_(t?qQ:YQ,{...i},void 0,!1,{fileName:Rl,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:Rl,lineNumber:190,columnNumber:26},this)}function ZQ(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function x7(e={}){const t=Dk(e),{isDisabled:n,isReadOnly:i,isRequired:o,isInvalid:c,id:u,onBlur:m,onFocus:h,"aria-describedby":v}=t,{defaultChecked:b,isChecked:x,isFocusable:w,onChange:N,isIndeterminate:R,name:O,value:M,tabIndex:B=void 0,"aria-label":I,"aria-labelledby":F,"aria-invalid":z,...$}=e,q=ZQ($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),K=Li(N),le=Li(m),me=Li(h),[se,Se]=k.exports.useState(!1),[qe,ae]=k.exports.useState(!1),[ue,Ee]=k.exports.useState(!1),[de,ie]=k.exports.useState(!1);k.exports.useEffect(()=>jQ(Se),[]);const xe=k.exports.useRef(null),[Ne,he]=k.exports.useState(!0),[Ce,Me]=k.exports.useState(!!b),Ie=x!==void 0,Ye=Ie?x:Ce,at=k.exports.useCallback(ye=>{if(i||n){ye.preventDefault();return}Ie||Me(Ye?ye.target.checked:R?!0:ye.target.checked),K?.(ye)},[i,n,Ye,Ie,R,K]);Sc(()=>{xe.current&&(xe.current.indeterminate=Boolean(R))},[R]),k2(()=>{n&&ae(!1)},[n,ae]),Sc(()=>{const ye=xe.current;!ye?.form||(ye.form.onreset=()=>{Me(!!b)})},[]);const gt=n&&!w,Ht=k.exports.useCallback(ye=>{ye.key===" "&&ie(!0)},[ie]),Ze=k.exports.useCallback(ye=>{ye.key===" "&&ie(!1)},[ie]);Sc(()=>{if(!xe.current)return;xe.current.checked!==Ye&&Me(xe.current.checked)},[xe.current]);const ct=k.exports.useCallback((ye={},et=null)=>{const Nt=lt=>{qe&<.preventDefault(),ie(!0)};return{...ye,ref:et,"data-active":Qi(de),"data-hover":Qi(ue),"data-checked":Qi(Ye),"data-focus":Qi(qe),"data-focus-visible":Qi(qe&&se),"data-indeterminate":Qi(R),"data-disabled":Qi(n),"data-invalid":Qi(c),"data-readonly":Qi(i),"aria-hidden":!0,onMouseDown:Is(ye.onMouseDown,Nt),onMouseUp:Is(ye.onMouseUp,()=>ie(!1)),onMouseEnter:Is(ye.onMouseEnter,()=>Ee(!0)),onMouseLeave:Is(ye.onMouseLeave,()=>Ee(!1))}},[de,Ye,n,qe,se,ue,R,c,i]),wt=k.exports.useCallback((ye={},et=null)=>({...q,...ye,ref:ma(et,Nt=>{!Nt||he(Nt.tagName==="LABEL")}),onClick:Is(ye.onClick,()=>{var Nt;Ne||((Nt=xe.current)==null||Nt.click(),requestAnimationFrame(()=>{var lt;(lt=xe.current)==null||lt.focus()}))}),"data-disabled":Qi(n),"data-checked":Qi(Ye),"data-invalid":Qi(c)}),[q,n,Ye,c,Ne]),zt=k.exports.useCallback((ye={},et=null)=>({...ye,ref:ma(xe,et),type:"checkbox",name:O,value:M,id:u,tabIndex:B,onChange:Is(ye.onChange,at),onBlur:Is(ye.onBlur,le,()=>ae(!1)),onFocus:Is(ye.onFocus,me,()=>ae(!0)),onKeyDown:Is(ye.onKeyDown,Ht),onKeyUp:Is(ye.onKeyUp,Ze),required:o,checked:Ye,disabled:gt,readOnly:i,"aria-label":I,"aria-labelledby":F,"aria-invalid":z?Boolean(z):c,"aria-describedby":v,"aria-disabled":n,style:Pk}),[O,M,u,at,le,me,Ht,Ze,o,Ye,gt,i,I,F,z,c,v,n,B]),Ge=k.exports.useCallback((ye={},et=null)=>({...ye,ref:et,onMouseDown:Is(ye.onMouseDown,zM),onTouchStart:Is(ye.onTouchStart,zM),"data-disabled":Qi(n),"data-checked":Qi(Ye),"data-invalid":Qi(c)}),[Ye,n,c]);return{state:{isInvalid:c,isFocused:qe,isChecked:Ye,isActive:de,isHovered:ue,isIndeterminate:R,isDisabled:n,isReadOnly:i,isRequired:o},getRootProps:wt,getCheckboxProps:ct,getInputProps:zt,getLabelProps:Ge,htmlProps:q}}function zM(e){e.preventDefault(),e.stopPropagation()}var QQ=$e("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),JQ=$e("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),eJ=Xe(function(t,n){const i=VQ(),o={...i,...t},c=Ro("Checkbox",o),u=hr(t),{spacing:m="0.5rem",className:h,children:v,iconColor:b,iconSize:x,icon:w=_(XQ,{},void 0,!1,{fileName:Rl,lineNumber:505,columnNumber:28},this),isChecked:N,isDisabled:R=i?.isDisabled,onChange:O,inputProps:M,...B}=u;let I=N;i?.value&&u.value&&(I=i.value.includes(u.value));let F=O;i?.onChange&&u.value&&(F=WQ(i.onChange,O));const{state:z,getInputProps:$,getCheckboxProps:q,getLabelProps:K,getRootProps:le}=x7({...B,isDisabled:R,isChecked:I,onChange:F}),me=k.exports.useMemo(()=>({opacity:z.isChecked||z.isIndeterminate?1:0,transform:z.isChecked||z.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:x,color:b,...c.icon}),[b,x,z.isChecked,z.isIndeterminate,c.icon]),se=k.exports.cloneElement(w,{__css:me,isIndeterminate:z.isIndeterminate,isChecked:z.isChecked});return _(JQ,{__css:c.container,className:HQ("chakra-checkbox",h),...le(),children:[_("input",{className:"chakra-checkbox__input",...$(M,n)},void 0,!1,{fileName:Rl,lineNumber:548,columnNumber:22},this),_(QQ,{__css:c.control,className:"chakra-checkbox__control",...q(),children:se},void 0,!1,{fileName:Rl,lineNumber:551,columnNumber:23},this),v&&Pe.createElement($e.span,{className:"chakra-checkbox__label",...K(),__css:{marginStart:m,...c.label}},v)]},void 0,!0,{fileName:Rl,lineNumber:544,columnNumber:26},this)});eJ.displayName="Checkbox";var $5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function tJ(e){return _($s,{focusable:"false","aria-hidden":!0,...e,children:_("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"},void 0,!1,{fileName:$5,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:$5,lineNumber:13,columnNumber:26},this)}var TC=Xe(function(t,n){const i=ao("CloseButton",t),{children:o,isDisabled:c,__css:u,...m}=hr(t),h={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Pe.createElement($e.button,{type:"button","aria-label":"Close",ref:n,disabled:c,__css:{...h,...i,...u},...m},o||_(tJ,{width:"1em",height:"1em"},void 0,!1,{fileName:$5,lineNumber:43,columnNumber:34},this))});TC.displayName="CloseButton";function nJ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function C7(e,t){let n=nJ(e);const i=10**(t??10);return n=Math.round(n*i)/i,t?n.toFixed(t):n.toString()}function BM(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function rJ(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function aJ(e={}){const{onChange:t,precision:n,defaultValue:i,value:o,step:c=1,min:u=Number.MIN_SAFE_INTEGER,max:m=Number.MAX_SAFE_INTEGER,keepWithinRange:h=!0}=e,v=Li(t),[b,x]=k.exports.useState(()=>i==null?"":ER(i,c,n)??""),w=typeof o<"u",N=w?o:b,R=w7(Lf(N),c),O=n??R,M=k.exports.useCallback(se=>{se!==N&&(w||x(se.toString()),v?.(se.toString(),Lf(se)))},[v,w,N]),B=k.exports.useCallback(se=>{let Se=se;return h&&(Se=rJ(Se,u,m)),C7(Se,O)},[O,h,m,u]),I=k.exports.useCallback((se=c)=>{let Se;N===""?Se=Lf(se):Se=Lf(N)+se,Se=B(Se),M(Se)},[B,c,M,N]),F=k.exports.useCallback((se=c)=>{let Se;N===""?Se=Lf(-se):Se=Lf(N)-se,Se=B(Se),M(Se)},[B,c,M,N]),z=k.exports.useCallback(()=>{let se;i==null?se="":se=ER(i,c,n)??u,M(se)},[i,n,c,M,u]),$=k.exports.useCallback(se=>{const Se=ER(se,c,O)??u;M(Se)},[O,c,M,u]),q=Lf(N);return{isOutOfRange:q>m||q<u,isAtMax:q===m,isAtMin:q===u,precision:O,value:N,valueAsNumber:q,update:M,reset:z,increment:I,decrement:F,clamp:B,cast:$,setValue:x}}function Lf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function w7(e,t){return Math.max(BM(t),BM(e))}function ER(e,t,n){const i=Lf(e);if(Number.isNaN(i))return;const o=w7(i,t);return C7(i,n??o)}var N7="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",E7=`
|
|
: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;
|
|
}
|
|
}
|
|
`,iJ=()=>_($y,{styles:E7},void 0,!1,{fileName:N7,lineNumber:29,columnNumber:41},globalThis),oJ=()=>_($y,{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;
|
|
}
|
|
|
|
${E7}
|
|
`},void 0,!1,{fileName:N7,lineNumber:32,columnNumber:38},globalThis);function j5(e,t,n,i){const o=Li(n);return k.exports.useEffect(()=>{const c=typeof e=="function"?e():e??document;if(!(!n||!c))return c.addEventListener(t,o,i),()=>{c.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{const c=typeof e=="function"?e():e??document;c?.removeEventListener(t,o,i)}}var sJ=Hy?k.exports.useLayoutEffect:k.exports.useEffect;function V5(e,t=[]){const n=k.exports.useRef(e);return sJ(()=>{n.current=e}),k.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function Ik(e,t,n,i){const o=V5(t);return k.exports.useEffect(()=>{const c=m2(n)??document;if(!!t)return c.addEventListener(e,o,i),()=>{c.removeEventListener(e,o,i)}},[e,n,i,o,t]),()=>{(m2(n)??document).removeEventListener(e,o,i)}}function lJ(e){const{isOpen:t,ref:n}=e,[i,o]=k.exports.useState(t),[c,u]=k.exports.useState(!1);return k.exports.useEffect(()=>{c||(o(t),u(!0))},[t,c,i]),Ik("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!i),onComplete(){var h;const v=RW(n.current),b=new v.CustomEvent("animationend",{bubbles:!0});(h=n.current)==null||h.dispatchEvent(b)}}}function uJ(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function cJ(e,t){const n=k.exports.useId();return k.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function H5(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,c=V5(n),u=V5(t),[m,h]=k.exports.useState(e.defaultIsOpen||!1),[v,b]=uJ(i,m),x=cJ(o,"disclosure"),w=k.exports.useCallback(()=>{v||h(!1),u?.()},[v,u]),N=k.exports.useCallback(()=>{v||h(!0),c?.()},[v,c]),R=k.exports.useCallback(()=>{(b?w:N)()},[b,N,w]);return{isOpen:!!b,onOpen:N,onClose:w,onToggle:R,isControlled:v,getButtonProps:(O={})=>({...O,"aria-expanded":b,"aria-controls":x,onClick:$W(O.onClick,R)}),getDisclosureProps:(O={})=>({...O,hidden:!b,id:x})}}var _7=(e,t)=>{const n=k.exports.useRef(!1),i=k.exports.useRef(!1);k.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),k.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function fJ(e){const t=e.current;if(!t)return!1;const n=OW(t);return!n||JA(t,n)?!1:!!LW(n)}function dJ(e,t){const{shouldFocus:n,visible:i,focusRef:o}=t,c=n&&!i;_7(()=>{if(!c||fJ(e))return;const u=o?.current||e.current;u&&h2(u,{nextTick:!0})},[c,e,o])}function pJ(e,t,n,i){return Ik(oG(t),eG(n,t==="pointerdown"),e,i)}function mJ(e){const{ref:t,elements:n,enabled:i}=e,o=lG("Safari");pJ(()=>Vy(t.current),"pointerdown",u=>{if(!o||!i)return;const m=u.target,v=(n??[t]).some(b=>{const x=wL(b)?b.current:b;return JA(x,m)});!RL(m)&&v&&(u.preventDefault(),h2(m))})}var hJ={preventScroll:!0,shouldFocus:!1};function vJ(e,t=hJ){const{focusRef:n,preventScroll:i,shouldFocus:o,visible:c}=t,u=wL(e)?e.current:e,m=o&&c,h=k.exports.useCallback(()=>{if(!(!u||!m)&&!JA(u,document.activeElement))if(n?.current)h2(n.current,{preventScroll:i,nextTick:!0});else{const v=UW(u);v.length>0&&h2(v[0],{preventScroll:i,nextTick:!0})}},[m,i,u,n]);_7(()=>{h()},[h]),Ik("transitionend",h,u)}function Lk(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var em="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",Fk=Xe(function(t,n){const{htmlSize:i,...o}=t,c=Ro("Input",o),u=hr(o),m=Ok(u),h=qr("chakra-input",t.className);return Pe.createElement($e.input,{size:i,...m,__css:c.field,ref:n,className:h})});Fk.displayName="Input";Fk.id="Input";var[gJ,T7]=zr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),yJ=Xe(function(t,n){const i=Ro("Input",t),{children:o,className:c,...u}=hr(t),m=qr("chakra-input__group",c),h={},v=kk(o),b=i.field;v.forEach(w=>{!i||(b&&w.type.id==="InputLeftElement"&&(h.paddingStart=b.height??b.h),b&&w.type.id==="InputRightElement"&&(h.paddingEnd=b.height??b.h),w.type.id==="InputRightAddon"&&(h.borderEndRadius=0),w.type.id==="InputLeftAddon"&&(h.borderStartRadius=0))});const x=v.map(w=>{var N,R;const O=Lk({size:((N=w.props)==null?void 0:N.size)||t.size,variant:((R=w.props)==null?void 0:R.variant)||t.variant});return w.type.id!=="Input"?k.exports.cloneElement(w,O):k.exports.cloneElement(w,Object.assign(O,h,w.props))});return Pe.createElement($e.div,{className:m,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...u},_(gJ,{value:i,children:x},void 0,!1,{fileName:em,lineNumber:90,columnNumber:22},this))});yJ.displayName="InputGroup";var bJ={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},SJ=$e("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),zk=Xe(function(t,n){const{placement:i="left",...o}=t,c=bJ[i]??{},u=T7();return _(SJ,{ref:n,...o,__css:{...u.addon,...c}},void 0,!1,{fileName:em,lineNumber:122,columnNumber:26},this)});zk.displayName="InputAddon";var R7=Xe(function(t,n){return _(zk,{ref:n,placement:"left",...t,className:qr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:em,lineNumber:133,columnNumber:26},this)});R7.displayName="InputLeftAddon";R7.id="InputLeftAddon";var A7=Xe(function(t,n){return _(zk,{ref:n,placement:"right",...t,className:qr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:em,lineNumber:143,columnNumber:26},this)});A7.displayName="InputRightAddon";A7.id="InputRightAddon";var xJ=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),RC=Xe(function(t,n){const{placement:i="left",...o}=t,c=T7(),u=c.field,h={[i==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...c.element};return _(xJ,{ref:n,__css:h,...o},void 0,!1,{fileName:em,lineNumber:181,columnNumber:26},this)});RC.id="InputElement";RC.displayName="InputElement";var k7=Xe(function(t,n){const{className:i,...o}=t,c=qr("chakra-input__left-element",i);return _(RC,{ref:n,placement:"left",className:c,...o},void 0,!1,{fileName:em,lineNumber:192,columnNumber:26},this)});k7.id="InputLeftElement";k7.displayName="InputLeftElement";var O7=Xe(function(t,n){const{className:i,...o}=t,c=qr("chakra-input__right-element",i);return _(RC,{ref:n,placement:"right",className:c,...o},void 0,!1,{fileName:em,lineNumber:204,columnNumber:26},this)});O7.id="InputRightElement";O7.displayName="InputRightElement";function CJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function ed(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):CJ(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):e!=null?t(e):null}var zs="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",wJ=Xe(function(e,t){const{ratio:n=4/3,children:i,className:o,...c}=e,u=k.exports.Children.only(i),m=qr("chakra-aspect-ratio",o);return Pe.createElement($e.div,{ref:t,position:"relative",className:m,_before:{height:0,content:'""',display:"block",paddingBottom:ed(n,h=>`${1/h*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)});wJ.displayName="AspectRatio";var NJ=Xe(function(t,n){const i=ao("Badge",t),{className:o,...c}=hr(t);return Pe.createElement($e.span,{ref:n,className:qr("chakra-badge",t.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});NJ.displayName="Badge";var kl=$e("div");kl.displayName="Box";var D7=Xe(function(t,n){const{size:i,centerContent:o=!0,...c}=t;return _(kl,{ref:n,boxSize:i,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...c},void 0,!1,{fileName:zs,lineNumber:84,columnNumber:26},this)});D7.displayName="Square";var EJ=Xe(function(t,n){const{size:i,...o}=t;return _(D7,{size:i,ref:n,borderRadius:"9999px",...o},void 0,!1,{fileName:zs,lineNumber:98,columnNumber:26},this)});EJ.displayName="Circle";var _y=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});_y.displayName="Center";var _J={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Xe(function(t,n){const{axis:i="both",...o}=t;return Pe.createElement($e.div,{ref:n,__css:_J[i],...o,position:"absolute"})});var TJ=Xe(function(t,n){const i=ao("Code",t),{className:o,...c}=hr(t);return Pe.createElement($e.code,{ref:n,className:qr("chakra-code",t.className),...c,__css:{display:"inline-block",...i}})});TJ.displayName="Code";var RJ=Xe(function(t,n){const{className:i,centerContent:o,...c}=hr(t),u=ao("Container",t);return Pe.createElement($e.div,{ref:n,className:qr("chakra-container",i),...c,__css:{...u,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});RJ.displayName="Container";var AJ=Xe(function(t,n){const{borderLeftWidth:i,borderBottomWidth:o,borderTopWidth:c,borderRightWidth:u,borderWidth:m,borderStyle:h,borderColor:v,...b}=ao("Divider",t),{className:x,orientation:w="horizontal",__css:N,...R}=hr(t),O={vertical:{borderLeftWidth:i||u||m||"1px",height:"100%"},horizontal:{borderBottomWidth:o||c||m||"1px",width:"100%"}};return Pe.createElement($e.hr,{ref:n,"aria-orientation":w,...R,__css:{...b,border:"0",borderColor:v,borderStyle:h,...O[w],...N},className:qr("chakra-divider",x)})});AJ.displayName="Divider";var Sn=Xe(function(t,n){const{direction:i,align:o,justify:c,wrap:u,basis:m,grow:h,shrink:v,...b}=t,x={display:"flex",flexDirection:i,alignItems:o,justifyContent:c,flexWrap:u,flexBasis:m,flexGrow:h,flexShrink:v};return Pe.createElement($e.div,{ref:n,__css:x,...b})});Sn.displayName="Flex";var Bk=Xe(function(t,n){const{templateAreas:i,gap:o,rowGap:c,columnGap:u,column:m,row:h,autoFlow:v,autoRows:b,templateRows:x,autoColumns:w,templateColumns:N,...R}=t,O={display:"grid",gridTemplateAreas:i,gridGap:o,gridRowGap:c,gridColumnGap:u,gridAutoColumns:w,gridColumn:m,gridRow:h,gridAutoFlow:v,gridAutoRows:b,gridTemplateRows:x,gridTemplateColumns:N};return Pe.createElement($e.div,{ref:n,__css:O,...R})});Bk.displayName="Grid";function UM(e){return ed(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Ff=Xe(function(t,n){const{area:i,colSpan:o,colStart:c,colEnd:u,rowEnd:m,rowSpan:h,rowStart:v,...b}=t,x=Lk({gridArea:i,gridColumn:UM(o),gridRow:UM(h),gridColumnStart:c,gridColumnEnd:u,gridRowStart:v,gridRowEnd:m});return Pe.createElement($e.div,{ref:n,__css:x,...b})});Ff.displayName="GridItem";var Uk=Xe(function(t,n){const i=ao("Heading",t),{className:o,...c}=hr(t);return Pe.createElement($e.h2,{ref:n,className:qr("chakra-heading",t.className),...c,__css:i})});Uk.displayName="Heading";Xe(function(t,n){const i=ao("Mark",t),o=hr(t);return _(kl,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:zs,lineNumber:399,columnNumber:26},this)});var kJ=Xe(function(t,n){const i=ao("Kbd",t),{className:o,...c}=hr(t);return Pe.createElement($e.kbd,{ref:n,className:qr("chakra-kbd",o),...c,__css:{fontFamily:"mono",...i}})});kJ.displayName="Kbd";var Ty=Xe(function(t,n){const i=ao("Link",t),{className:o,isExternal:c,...u}=hr(t);return Pe.createElement($e.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:n,className:qr("chakra-link",o),...u,__css:i})});Ty.displayName="Link";Xe(function(t,n){const{isExternal:i,target:o,rel:c,className:u,...m}=t;return Pe.createElement($e.a,{...m,ref:n,className:qr("chakra-linkbox__overlay",u),rel:i?"noopener noreferrer":c,target:i?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});Xe(function(t,n){const{className:i,...o}=t;return Pe.createElement($e.div,{ref:n,position:"relative",...o,className:qr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[OJ,P7]=zr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),$k=Xe(function(t,n){const i=Ro("List",t),{children:o,styleType:c="none",stylePosition:u,spacing:m,...h}=hr(t),v=kk(o),x=m?{["& > *:not(style) ~ *:not(style)"]:{mt:m}}:{};return Pe.createElement(OJ,{value:i},Pe.createElement($e.ul,{ref:n,listStyleType:c,listStylePosition:u,role:"list",__css:{...i.container,...x},...h},v))});$k.displayName="List";var DJ=Xe((e,t)=>{const{as:n,...i}=e;return _($k,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:zs,lineNumber:550,columnNumber:26},globalThis)});DJ.displayName="OrderedList";var PJ=Xe(function(t,n){const{as:i,...o}=t;return _($k,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o},void 0,!1,{fileName:zs,lineNumber:561,columnNumber:26},this)});PJ.displayName="UnorderedList";var MJ=Xe(function(t,n){const i=P7();return Pe.createElement($e.li,{ref:n,...t,__css:i.item})});MJ.displayName="ListItem";var IJ=Xe(function(t,n){const i=P7();return _($s,{ref:n,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:zs,lineNumber:581,columnNumber:26},this)});IJ.displayName="ListIcon";var LJ=Xe(function(t,n){const{columns:i,spacingX:o,spacingY:c,spacing:u,minChildWidth:m,...h}=t,v=uC(),b=m?zJ(m,v):BJ(i);return _(Bk,{ref:n,gap:u,columnGap:o,rowGap:c,templateColumns:b,...h},void 0,!1,{fileName:zs,lineNumber:601,columnNumber:26},this)});LJ.displayName="SimpleGrid";function FJ(e){return typeof e=="number"?`${e}px`:e}function zJ(e,t){return ed(e,n=>{const i=NG("sizes",n,FJ(n))(t);return n===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function BJ(e){return ed(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var M7=$e("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});M7.displayName="Spacer";var W5="& > *:not(style) ~ *:not(style)";function UJ(e){const{spacing:t,direction:n}=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:n,[W5]:ed(n,o=>i[o])}}function $J(e){const{spacing:t,direction:n}=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{"&":ed(n,o=>i[o])}}var I7=e=>Pe.createElement($e.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});I7.displayName="StackItem";var jk=Xe((e,t)=>{const{isInline:n,direction:i,align:o,justify:c,spacing:u="0.5rem",wrap:m,children:h,divider:v,className:b,shouldWrapChildren:x,...w}=e,N=n?"row":i??"column",R=k.exports.useMemo(()=>UJ({direction:N,spacing:u}),[N,u]),O=k.exports.useMemo(()=>$J({spacing:u,direction:N}),[u,N]),M=!!v,B=!x&&!M,I=kk(h),F=B?I:I.map(($,q)=>{const K=typeof $.key<"u"?$.key:q,le=q+1===I.length,se=x?_(I7,{children:$},K,!1,{fileName:zs,lineNumber:749,columnNumber:42},globalThis):$;if(!M)return se;const Se=k.exports.cloneElement(v,{__css:O}),qe=le?null:Se;return _(k.exports.Fragment,{children:[se,qe]},K,!0,{fileName:zs,lineNumber:759,columnNumber:28},globalThis)}),z=qr("chakra-stack",b);return Pe.createElement($e.div,{ref:t,display:"flex",alignItems:o,justifyContent:c,flexDirection:R.flexDirection,flexWrap:m,className:z,__css:M?{}:{[W5]:R[W5]},...w},F)});jk.displayName="Stack";var ay=Xe((e,t)=>_(jk,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:zs,lineNumber:779,columnNumber:59},globalThis));ay.displayName="HStack";var jJ=Xe((e,t)=>_(jk,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:zs,lineNumber:805,columnNumber:59},globalThis));jJ.displayName="VStack";var Gr=Xe(function(t,n){const i=ao("Text",t),{className:o,align:c,decoration:u,casing:m,...h}=hr(t),v=Lk({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Pe.createElement($e.p,{ref:n,className:qr("chakra-text",t.className),...v,...h,__css:i})});Gr.displayName="Text";function $M(e){return typeof e=="number"?`${e}px`:e}var VJ=Xe(function(t,n){const{spacing:i="0.5rem",spacingX:o,spacingY:c,children:u,justify:m,direction:h,align:v,className:b,shouldWrapChildren:x,...w}=t,N=k.exports.useMemo(()=>{const{spacingX:O=i,spacingY:M=i}={spacingX:o,spacingY:c};return{"--chakra-wrap-x-spacing":B=>ed(O,I=>$M(a5("space",I)(B))),"--chakra-wrap-y-spacing":B=>ed(M,I=>$M(a5("space",I)(B))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:m,alignItems:v,flexDirection:h,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,o,c,m,v,h]),R=x?k.exports.Children.map(u,(O,M)=>_(L7,{children:O},M,!1,{fileName:zs,lineNumber:888,columnNumber:107},this)):u;return Pe.createElement($e.div,{ref:n,className:qr("chakra-wrap",b),overflow:"hidden",...w},Pe.createElement($e.ul,{className:"chakra-wrap__list",__css:N},R))});VJ.displayName="Wrap";var L7=Xe(function(t,n){const{className:i,...o}=t;return Pe.createElement($e.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:qr("chakra-wrap__listitem",i),...o})});L7.displayName="WrapItem";var jM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",HJ={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[]}}}},F7=HJ,kh=()=>{},WJ={document:F7,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:kh,removeEventListener:kh,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:kh,removeListener:kh}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:kh,setInterval:()=>0,clearInterval:kh},GJ=WJ,YJ={window:GJ,document:F7},z7=typeof window<"u"?{window,document}:YJ,B7=k.exports.createContext(z7);B7.displayName="EnvironmentContext";function U7(e){const{children:t,environment:n}=e,[i,o]=k.exports.useState(null),[c,u]=k.exports.useState(!1);k.exports.useEffect(()=>u(!0),[]);const m=k.exports.useMemo(()=>{if(n)return n;const h=i?.ownerDocument,v=i?.ownerDocument.defaultView;return h?{document:h,window:v}:z7},[i,n]);return _(B7.Provider,{value:m,children:[t,!n&&c&&_("span",{id:"__chakra_env",hidden:!0,ref:h=>{k.exports.startTransition(()=>{h&&o(h)})}},void 0,!1,{fileName:jM,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:jM,lineNumber:134,columnNumber:26},this)}U7.displayName="EnvironmentProvider";function qJ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function KJ(e){if(!qJ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var XJ=e=>e.hasAttribute("tabindex");function ZJ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function $7(e){return e.parentElement&&$7(e.parentElement)?!0:e.hidden}function QJ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function JJ(e){if(!KJ(e)||$7(e)||ZJ(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]():QJ(e)?!0:XJ(e)}var eee=["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]"],tee=eee.join(),nee=e=>e.offsetWidth>0&&e.offsetHeight>0;function ree(e){const t=Array.from(e.querySelectorAll(tee));return t.unshift(e),t.filter(n=>JJ(n)&&nee(n))}var Eo="top",Bs="bottom",Us="right",_o="left",AC="auto",eb=[Eo,Bs,Us,_o],lv="start",Ry="end",aee="clippingParents",j7="viewport",z0="popper",iee="reference",VM=eb.reduce(function(e,t){return e.concat([t+"-"+lv,t+"-"+Ry])},[]),V7=[].concat(eb,[AC]).reduce(function(e,t){return e.concat([t,t+"-"+lv,t+"-"+Ry])},[]),oee="beforeRead",see="read",lee="afterRead",uee="beforeMain",cee="main",fee="afterMain",dee="beforeWrite",pee="write",mee="afterWrite",G5=[oee,see,lee,uee,cee,fee,dee,pee,mee];function xu(e){return e?(e.nodeName||"").toLowerCase():null}function Vs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kp(e){var t=Vs(e).Element;return e instanceof t||e instanceof Element}function ts(e){var t=Vs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vk(e){if(typeof ShadowRoot>"u")return!1;var t=Vs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},c=t.elements[n];!ts(c)||!xu(c)||(Object.assign(c.style,i),Object.keys(o).forEach(function(u){var m=o[u];m===!1?c.removeAttribute(u):c.setAttribute(u,m===!0?"":m)}))})}function vee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],c=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),m=u.reduce(function(h,v){return h[v]="",h},{});!ts(o)||!xu(o)||(Object.assign(o.style,m),Object.keys(c).forEach(function(h){o.removeAttribute(h)}))})}}const gee={name:"applyStyles",enabled:!0,phase:"write",fn:hee,effect:vee,requires:["computeStyles"]};function Ol(e){return e.split("-")[0]}var Hp=Math.max,O2=Math.min,uv=Math.round;function Y5(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function H7(){return!/^((?!chrome|android).)*safari/i.test(Y5())}function cv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,c=1;t&&ts(e)&&(o=e.offsetWidth>0&&uv(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&uv(i.height)/e.offsetHeight||1);var u=Kp(e)?Vs(e):window,m=u.visualViewport,h=!H7()&&n,v=(i.left+(h&&m?m.offsetLeft:0))/o,b=(i.top+(h&&m?m.offsetTop:0))/c,x=i.width/o,w=i.height/c;return{width:x,height:w,top:b,right:v+x,bottom:b+w,left:v,x:v,y:b}}function Hk(e){var t=cv(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function W7(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vk(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Pl(e){return Vs(e).getComputedStyle(e)}function yee(e){return["table","td","th"].indexOf(xu(e))>=0}function id(e){return((Kp(e)?e.ownerDocument:e.document)||window.document).documentElement}function kC(e){return xu(e)==="html"?e:e.assignedSlot||e.parentNode||(Vk(e)?e.host:null)||id(e)}function HM(e){return!ts(e)||Pl(e).position==="fixed"?null:e.offsetParent}function bee(e){var t=/firefox/i.test(Y5()),n=/Trident/i.test(Y5());if(n&&ts(e)){var i=Pl(e);if(i.position==="fixed")return null}var o=kC(e);for(Vk(o)&&(o=o.host);ts(o)&&["html","body"].indexOf(xu(o))<0;){var c=Pl(o);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 o;o=o.parentNode}return null}function tb(e){for(var t=Vs(e),n=HM(e);n&&yee(n)&&Pl(n).position==="static";)n=HM(n);return n&&(xu(n)==="html"||xu(n)==="body"&&Pl(n).position==="static")?t:n||bee(e)||t}function Wk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iy(e,t,n){return Hp(e,O2(t,n))}function See(e,t,n){var i=iy(e,t,n);return i>n?n:i}function G7(){return{top:0,right:0,bottom:0,left:0}}function Y7(e){return Object.assign({},G7(),e)}function q7(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var xee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y7(typeof t!="number"?t:q7(t,eb))};function Cee(e){var t,n=e.state,i=e.name,o=e.options,c=n.elements.arrow,u=n.modifiersData.popperOffsets,m=Ol(n.placement),h=Wk(m),v=[_o,Us].indexOf(m)>=0,b=v?"height":"width";if(!(!c||!u)){var x=xee(o.padding,n),w=Hk(c),N=h==="y"?Eo:_o,R=h==="y"?Bs:Us,O=n.rects.reference[b]+n.rects.reference[h]-u[h]-n.rects.popper[b],M=u[h]-n.rects.reference[h],B=tb(c),I=B?h==="y"?B.clientHeight||0:B.clientWidth||0:0,F=O/2-M/2,z=x[N],$=I-w[b]-x[R],q=I/2-w[b]/2+F,K=iy(z,q,$),le=h;n.modifiersData[i]=(t={},t[le]=K,t.centerOffset=K-q,t)}}function wee(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(ts(o)||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(" ")),!W7(t.elements.popper,o)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Nee={name:"arrow",enabled:!0,phase:"main",fn:Cee,effect:wee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fv(e){return e.split("-")[1]}var Eee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _ee(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:uv(t*o)/o||0,y:uv(n*o)/o||0}}function WM(e){var t,n=e.popper,i=e.popperRect,o=e.placement,c=e.variation,u=e.offsets,m=e.position,h=e.gpuAcceleration,v=e.adaptive,b=e.roundOffsets,x=e.isFixed,w=u.x,N=w===void 0?0:w,R=u.y,O=R===void 0?0:R,M=typeof b=="function"?b({x:N,y:O}):{x:N,y:O};N=M.x,O=M.y;var B=u.hasOwnProperty("x"),I=u.hasOwnProperty("y"),F=_o,z=Eo,$=window;if(v){var q=tb(n),K="clientHeight",le="clientWidth";if(q===Vs(n)&&(q=id(n),Pl(q).position!=="static"&&m==="absolute"&&(K="scrollHeight",le="scrollWidth")),q=q,o===Eo||(o===_o||o===Us)&&c===Ry){z=Bs;var me=x&&q===$&&$.visualViewport?$.visualViewport.height:q[K];O-=me-i.height,O*=h?1:-1}if(o===_o||(o===Eo||o===Bs)&&c===Ry){F=Us;var se=x&&q===$&&$.visualViewport?$.visualViewport.width:q[le];N-=se-i.width,N*=h?1:-1}}var Se=Object.assign({position:m},v&&Eee),qe=b===!0?_ee({x:N,y:O}):{x:N,y:O};if(N=qe.x,O=qe.y,h){var ae;return Object.assign({},Se,(ae={},ae[z]=I?"0":"",ae[F]=B?"0":"",ae.transform=($.devicePixelRatio||1)<=1?"translate("+N+"px, "+O+"px)":"translate3d("+N+"px, "+O+"px, 0)",ae))}return Object.assign({},Se,(t={},t[z]=I?O+"px":"",t[F]=B?N+"px":"",t.transform="",t))}function Tee(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,c=n.adaptive,u=c===void 0?!0:c,m=n.roundOffsets,h=m===void 0?!0:m;{var v=Pl(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:Ol(t.placement),variation:fv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,WM(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,WM(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ree={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Tee,data:{}};var Ex={passive:!0};function Aee(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,c=o===void 0?!0:o,u=i.resize,m=u===void 0?!0:u,h=Vs(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&v.forEach(function(b){b.addEventListener("scroll",n.update,Ex)}),m&&h.addEventListener("resize",n.update,Ex),function(){c&&v.forEach(function(b){b.removeEventListener("scroll",n.update,Ex)}),m&&h.removeEventListener("resize",n.update,Ex)}}const kee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Aee,data:{}};var Oee={left:"right",right:"left",bottom:"top",top:"bottom"};function Zx(e){return e.replace(/left|right|bottom|top/g,function(t){return Oee[t]})}var Dee={start:"end",end:"start"};function GM(e){return e.replace(/start|end/g,function(t){return Dee[t]})}function Gk(e){var t=Vs(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Yk(e){return cv(id(e)).left+Gk(e).scrollLeft}function Pee(e,t){var n=Vs(e),i=id(e),o=n.visualViewport,c=i.clientWidth,u=i.clientHeight,m=0,h=0;if(o){c=o.width,u=o.height;var v=H7();(v||!v&&t==="fixed")&&(m=o.offsetLeft,h=o.offsetTop)}return{width:c,height:u,x:m+Yk(e),y:h}}function Mee(e){var t,n=id(e),i=Gk(e),o=(t=e.ownerDocument)==null?void 0:t.body,c=Hp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Hp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),m=-i.scrollLeft+Yk(e),h=-i.scrollTop;return Pl(o||n).direction==="rtl"&&(m+=Hp(n.clientWidth,o?o.clientWidth:0)-c),{width:c,height:u,x:m,y:h}}function qk(e){var t=Pl(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function K7(e){return["html","body","#document"].indexOf(xu(e))>=0?e.ownerDocument.body:ts(e)&&qk(e)?e:K7(kC(e))}function oy(e,t){var n;t===void 0&&(t=[]);var i=K7(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),c=Vs(i),u=o?[c].concat(c.visualViewport||[],qk(i)?i:[]):i,m=t.concat(u);return o?m:m.concat(oy(kC(u)))}function q5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Iee(e,t){var n=cv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function YM(e,t,n){return t===j7?q5(Pee(e,n)):Kp(t)?Iee(t,n):q5(Mee(id(e)))}function Lee(e){var t=oy(kC(e)),n=["absolute","fixed"].indexOf(Pl(e).position)>=0,i=n&&ts(e)?tb(e):e;return Kp(i)?t.filter(function(o){return Kp(o)&&W7(o,i)&&xu(o)!=="body"}):[]}function Fee(e,t,n,i){var o=t==="clippingParents"?Lee(e):[].concat(t),c=[].concat(o,[n]),u=c[0],m=c.reduce(function(h,v){var b=YM(e,v,i);return h.top=Hp(b.top,h.top),h.right=O2(b.right,h.right),h.bottom=O2(b.bottom,h.bottom),h.left=Hp(b.left,h.left),h},YM(e,u,i));return m.width=m.right-m.left,m.height=m.bottom-m.top,m.x=m.left,m.y=m.top,m}function X7(e){var t=e.reference,n=e.element,i=e.placement,o=i?Ol(i):null,c=i?fv(i):null,u=t.x+t.width/2-n.width/2,m=t.y+t.height/2-n.height/2,h;switch(o){case Eo:h={x:u,y:t.y-n.height};break;case Bs:h={x:u,y:t.y+t.height};break;case Us:h={x:t.x+t.width,y:m};break;case _o:h={x:t.x-n.width,y:m};break;default:h={x:t.x,y:t.y}}var v=o?Wk(o):null;if(v!=null){var b=v==="y"?"height":"width";switch(c){case lv:h[v]=h[v]-(t[b]/2-n[b]/2);break;case Ry:h[v]=h[v]+(t[b]/2-n[b]/2);break}}return h}function Ay(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,c=n.strategy,u=c===void 0?e.strategy:c,m=n.boundary,h=m===void 0?aee:m,v=n.rootBoundary,b=v===void 0?j7:v,x=n.elementContext,w=x===void 0?z0:x,N=n.altBoundary,R=N===void 0?!1:N,O=n.padding,M=O===void 0?0:O,B=Y7(typeof M!="number"?M:q7(M,eb)),I=w===z0?iee:z0,F=e.rects.popper,z=e.elements[R?I:w],$=Fee(Kp(z)?z:z.contextElement||id(e.elements.popper),h,b,u),q=cv(e.elements.reference),K=X7({reference:q,element:F,strategy:"absolute",placement:o}),le=q5(Object.assign({},F,K)),me=w===z0?le:q,se={top:$.top-me.top+B.top,bottom:me.bottom-$.bottom+B.bottom,left:$.left-me.left+B.left,right:me.right-$.right+B.right},Se=e.modifiersData.offset;if(w===z0&&Se){var qe=Se[o];Object.keys(se).forEach(function(ae){var ue=[Us,Bs].indexOf(ae)>=0?1:-1,Ee=[Eo,Bs].indexOf(ae)>=0?"y":"x";se[ae]+=qe[Ee]*ue})}return se}function zee(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,c=n.rootBoundary,u=n.padding,m=n.flipVariations,h=n.allowedAutoPlacements,v=h===void 0?V7:h,b=fv(i),x=b?m?VM:VM.filter(function(R){return fv(R)===b}):eb,w=x.filter(function(R){return v.indexOf(R)>=0});w.length===0&&(w=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 N=w.reduce(function(R,O){return R[O]=Ay(e,{placement:O,boundary:o,rootBoundary:c,padding:u})[Ol(O)],R},{});return Object.keys(N).sort(function(R,O){return N[R]-N[O]})}function Bee(e){if(Ol(e)===AC)return[];var t=Zx(e);return[GM(e),t,GM(t)]}function Uee(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,c=o===void 0?!0:o,u=n.altAxis,m=u===void 0?!0:u,h=n.fallbackPlacements,v=n.padding,b=n.boundary,x=n.rootBoundary,w=n.altBoundary,N=n.flipVariations,R=N===void 0?!0:N,O=n.allowedAutoPlacements,M=t.options.placement,B=Ol(M),I=B===M,F=h||(I||!R?[Zx(M)]:Bee(M)),z=[M].concat(F).reduce(function(Ye,at){return Ye.concat(Ol(at)===AC?zee(t,{placement:at,boundary:b,rootBoundary:x,padding:v,flipVariations:R,allowedAutoPlacements:O}):at)},[]),$=t.rects.reference,q=t.rects.popper,K=new Map,le=!0,me=z[0],se=0;se<z.length;se++){var Se=z[se],qe=Ol(Se),ae=fv(Se)===lv,ue=[Eo,Bs].indexOf(qe)>=0,Ee=ue?"width":"height",de=Ay(t,{placement:Se,boundary:b,rootBoundary:x,altBoundary:w,padding:v}),ie=ue?ae?Us:_o:ae?Bs:Eo;$[Ee]>q[Ee]&&(ie=Zx(ie));var xe=Zx(ie),Ne=[];if(c&&Ne.push(de[qe]<=0),m&&Ne.push(de[ie]<=0,de[xe]<=0),Ne.every(function(Ye){return Ye})){me=Se,le=!1;break}K.set(Se,Ne)}if(le)for(var he=R?3:1,Ce=function(at){var gt=z.find(function(Ht){var Ze=K.get(Ht);if(Ze)return Ze.slice(0,at).every(function(ct){return ct})});if(gt)return me=gt,"break"},Me=he;Me>0;Me--){var Ie=Ce(Me);if(Ie==="break")break}t.placement!==me&&(t.modifiersData[i]._skip=!0,t.placement=me,t.reset=!0)}}const $ee={name:"flip",enabled:!0,phase:"main",fn:Uee,requiresIfExists:["offset"],data:{_skip:!1}};function qM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function KM(e){return[Eo,Us,Bs,_o].some(function(t){return e[t]>=0})}function jee(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,c=t.modifiersData.preventOverflow,u=Ay(t,{elementContext:"reference"}),m=Ay(t,{altBoundary:!0}),h=qM(u,i),v=qM(m,o,c),b=KM(h),x=KM(v);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":x})}const Vee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jee};function Hee(e,t,n){var i=Ol(e),o=[_o,Eo].indexOf(i)>=0?-1:1,c=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=c[0],m=c[1];return u=u||0,m=(m||0)*o,[_o,Us].indexOf(i)>=0?{x:m,y:u}:{x:u,y:m}}function Wee(e){var t=e.state,n=e.options,i=e.name,o=n.offset,c=o===void 0?[0,0]:o,u=V7.reduce(function(b,x){return b[x]=Hee(x,t.rects,c),b},{}),m=u[t.placement],h=m.x,v=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=u}const Gee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wee};function Yee(e){var t=e.state,n=e.name;t.modifiersData[n]=X7({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qee={name:"popperOffsets",enabled:!0,phase:"read",fn:Yee,data:{}};function Kee(e){return e==="x"?"y":"x"}function Xee(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,c=o===void 0?!0:o,u=n.altAxis,m=u===void 0?!1:u,h=n.boundary,v=n.rootBoundary,b=n.altBoundary,x=n.padding,w=n.tether,N=w===void 0?!0:w,R=n.tetherOffset,O=R===void 0?0:R,M=Ay(t,{boundary:h,rootBoundary:v,padding:x,altBoundary:b}),B=Ol(t.placement),I=fv(t.placement),F=!I,z=Wk(B),$=Kee(z),q=t.modifiersData.popperOffsets,K=t.rects.reference,le=t.rects.popper,me=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,se=typeof me=="number"?{mainAxis:me,altAxis:me}:Object.assign({mainAxis:0,altAxis:0},me),Se=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,qe={x:0,y:0};if(!!q){if(c){var ae,ue=z==="y"?Eo:_o,Ee=z==="y"?Bs:Us,de=z==="y"?"height":"width",ie=q[z],xe=ie+M[ue],Ne=ie-M[Ee],he=N?-le[de]/2:0,Ce=I===lv?K[de]:le[de],Me=I===lv?-le[de]:-K[de],Ie=t.elements.arrow,Ye=N&&Ie?Hk(Ie):{width:0,height:0},at=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G7(),gt=at[ue],Ht=at[Ee],Ze=iy(0,K[de],Ye[de]),ct=F?K[de]/2-he-Ze-gt-se.mainAxis:Ce-Ze-gt-se.mainAxis,wt=F?-K[de]/2+he+Ze+Ht+se.mainAxis:Me+Ze+Ht+se.mainAxis,zt=t.elements.arrow&&tb(t.elements.arrow),Ge=zt?z==="y"?zt.clientTop||0:zt.clientLeft||0:0,Wt=(ae=Se?.[z])!=null?ae:0,ye=ie+ct-Wt-Ge,et=ie+wt-Wt,Nt=iy(N?O2(xe,ye):xe,ie,N?Hp(Ne,et):Ne);q[z]=Nt,qe[z]=Nt-ie}if(m){var lt,xn=z==="x"?Eo:_o,$n=z==="x"?Bs:Us,Lt=q[$],an=$==="y"?"height":"width",On=Lt+M[xn],gn=Lt-M[$n],He=[Eo,_o].indexOf(B)!==-1,Je=(lt=Se?.[$])!=null?lt:0,tn=He?On:Lt-K[an]-le[an]-Je+se.altAxis,kt=He?Lt+K[an]+le[an]-Je-se.altAxis:gn,Oe=N&&He?See(tn,Lt,kt):iy(N?tn:On,Lt,N?kt:gn);q[$]=Oe,qe[$]=Oe-Lt}t.modifiersData[i]=qe}}const Zee={name:"preventOverflow",enabled:!0,phase:"main",fn:Xee,requiresIfExists:["offset"]};function Qee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jee(e){return e===Vs(e)||!ts(e)?Gk(e):Qee(e)}function ete(e){var t=e.getBoundingClientRect(),n=uv(t.width)/e.offsetWidth||1,i=uv(t.height)/e.offsetHeight||1;return n!==1||i!==1}function tte(e,t,n){n===void 0&&(n=!1);var i=ts(t),o=ts(t)&&ete(t),c=id(t),u=cv(e,o,n),m={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!n)&&((xu(t)!=="body"||qk(c))&&(m=Jee(t)),ts(t)?(h=cv(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):c&&(h.x=Yk(c))),{x:u.left+m.scrollLeft-h.x,y:u.top+m.scrollTop-h.y,width:u.width,height:u.height}}function nte(e){var t=new Map,n=new Set,i=[];e.forEach(function(c){t.set(c.name,c)});function o(c){n.add(c.name);var u=[].concat(c.requires||[],c.requiresIfExists||[]);u.forEach(function(m){if(!n.has(m)){var h=t.get(m);h&&o(h)}}),i.push(c)}return e.forEach(function(c){n.has(c.name)||o(c)}),i}function rte(e){var t=nte(e);return G5.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function ate(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(o,c){return o.replace(/%s/,c)},e)}var Tp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ite='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',XM=["name","enabled","phase","fn","effect","requires","options"];function ote(e){e.forEach(function(t){[].concat(Object.keys(t),XM).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(kf(Tp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(kf(Tp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":G5.indexOf(t.phase)<0&&console.error(kf(Tp,t.name,'"phase"',"either "+G5.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(kf(Tp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(kf(Tp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(kf(Tp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(kf(Tp,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 '+XM.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(kf(ite,String(t.name),i,i))})})})}function ste(e,t){var n=new Set;return e.filter(function(i){var o=t(i);if(!n.has(o))return n.add(o),!0})}function lte(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ZM="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ute="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",QM={placement:"bottom",modifiers:[],strategy:"absolute"};function JM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function cte(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,c=o===void 0?QM:o;return function(m,h,v){v===void 0&&(v=c);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},QM,c),modifiersData:{},elements:{reference:m,popper:h},attributes:{},styles:{}},x=[],w=!1,N={state:b,setOptions:function(B){var I=typeof B=="function"?B(b.options):B;O(),b.options=Object.assign({},c,b.options,I),b.scrollParents={reference:Kp(m)?oy(m):m.contextElement?oy(m.contextElement):[],popper:oy(h)};var F=rte(lte([].concat(i,b.options.modifiers)));b.orderedModifiers=F.filter(function(Se){return Se.enabled});{var z=ste([].concat(F,b.options.modifiers),function(Se){var qe=Se.name;return qe});if(ote(z),Ol(b.options.placement)===AC){var $=b.orderedModifiers.find(function(Se){var qe=Se.name;return qe==="flip"});$||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var q=Pl(h),K=q.marginTop,le=q.marginRight,me=q.marginBottom,se=q.marginLeft;[K,le,me,se].some(function(Se){return parseFloat(Se)})&&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 R(),N.update()},forceUpdate:function(){if(!w){var B=b.elements,I=B.reference,F=B.popper;if(!JM(I,F)){console.error(ZM);return}b.rects={reference:tte(I,tb(F),b.options.strategy==="fixed"),popper:Hk(F)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(Se){return b.modifiersData[Se.name]=Object.assign({},Se.data)});for(var z=0,$=0;$<b.orderedModifiers.length;$++){if(z+=1,z>100){console.error(ute);break}if(b.reset===!0){b.reset=!1,$=-1;continue}var q=b.orderedModifiers[$],K=q.fn,le=q.options,me=le===void 0?{}:le,se=q.name;typeof K=="function"&&(b=K({state:b,options:me,name:se,instance:N})||b)}}},update:ate(function(){return new Promise(function(M){N.forceUpdate(),M(b)})}),destroy:function(){O(),w=!0}};if(!JM(m,h))return console.error(ZM),N;N.setOptions(v).then(function(M){!w&&v.onFirstUpdate&&v.onFirstUpdate(M)});function R(){b.orderedModifiers.forEach(function(M){var B=M.name,I=M.options,F=I===void 0?{}:I,z=M.effect;if(typeof z=="function"){var $=z({state:b,name:B,instance:N,options:F}),q=function(){};x.push($||q)}})}function O(){x.forEach(function(M){return M()}),x=[]}return N}}var fte=[kee,qee,Ree,gee,Gee,$ee,Zee,Nee,Vee],dte=cte({defaultModifiers:fte}),Oh=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),pa={arrowShadowColor:Oh("--popper-arrow-shadow-color"),arrowSize:Oh("--popper-arrow-size","8px"),arrowSizeHalf:Oh("--popper-arrow-size-half"),arrowBg:Oh("--popper-arrow-bg"),transformOrigin:Oh("--popper-transform-origin"),arrowOffset:Oh("--popper-arrow-offset")};function pte(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 mte={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"},hte=e=>mte[e],e6={scroll:!0,resize:!0};function vte(e){let t;return typeof e=="object"?t={enabled:!0,options:{...e6,...e}}:t={enabled:e,options:e6},t}var gte={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`}},yte={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{t6(e)},effect:({state:e})=>()=>{t6(e)}},t6=e=>{e.elements.popper.style.setProperty(pa.transformOrigin.var,hte(e.placement))},bte={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Ste(e)}},Ste=e=>{var t;if(!e.placement)return;const n=xte(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:pa.arrowSize.varRef,height:pa.arrowSize.varRef,zIndex:-1});const i={[pa.arrowSizeHalf.var]:`calc(${pa.arrowSize.varRef} / 2)`,[pa.arrowOffset.var]:`calc(${pa.arrowSizeHalf.varRef} * -1)`};for(const o in i)e.elements.arrow.style.setProperty(o,i[o])}},xte=e=>{if(e.startsWith("top"))return{property:"bottom",value:pa.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:pa.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:pa.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:pa.arrowOffset.varRef}},Cte={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{n6(e)},effect:({state:e})=>()=>{n6(e)}},n6=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:pa.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:pte(e.placement)})},wte={"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"}},Nte={"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 Ete(e,t="ltr"){var n;const i=((n=wte[e])==null?void 0:n[t])||e;return t==="ltr"?i:Nte[e]??i}function Z7(e={}){const{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:c=8,eventListeners:u=!0,offset:m,gutter:h=8,flip:v=!0,boundary:b="clippingParents",preventOverflow:x=!0,matchWidth:w,direction:N="ltr"}=e,R=k.exports.useRef(null),O=k.exports.useRef(null),M=k.exports.useRef(null),B=Ete(i,N),I=k.exports.useRef(()=>{}),F=k.exports.useCallback(()=>{var se;!t||!R.current||!O.current||((se=I.current)==null||se.call(I),M.current=dte(R.current,O.current,{placement:B,modifiers:[Cte,bte,yte,{...gte,enabled:!!w},{name:"eventListeners",...vte(u)},{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:m??[0,h]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:b}},...n??[]],strategy:o}),M.current.forceUpdate(),I.current=M.current.destroy)},[B,t,n,w,u,c,m,h,v,x,b,o]);k.exports.useEffect(()=>()=>{var se;!R.current&&!O.current&&((se=M.current)==null||se.destroy(),M.current=null)},[]);const z=k.exports.useCallback(se=>{R.current=se,F()},[F]),$=k.exports.useCallback((se={},Se=null)=>({...se,ref:ma(z,Se)}),[z]),q=k.exports.useCallback(se=>{O.current=se,F()},[F]),K=k.exports.useCallback((se={},Se=null)=>({...se,ref:ma(q,Se),style:{...se.style,position:o,minWidth:w?void 0:"max-content",inset:"0 auto auto 0"}}),[o,q,w]),le=k.exports.useCallback((se={},Se=null)=>{const{size:qe,shadowColor:ae,bg:ue,style:Ee,...de}=se;return{...de,ref:Se,"data-popper-arrow":"",style:_te(se)}},[]),me=k.exports.useCallback((se={},Se=null)=>({...se,ref:Se,"data-popper-arrow-inner":""}),[]);return{update(){var se;(se=M.current)==null||se.update()},forceUpdate(){var se;(se=M.current)==null||se.forceUpdate()},transformOrigin:pa.transformOrigin.varRef,referenceRef:z,popperRef:q,getPopperProps:K,getArrowProps:le,getArrowInnerProps:me,getReferenceProps:$}}function _te(e){const{size:t,shadowColor:n,bg:i,style:o}=e,c={...o,position:"absolute"};return t&&(c["--popper-arrow-size"]=t),n&&(c["--popper-arrow-shadow-color"]=n),i&&(c["--popper-arrow-bg"]=i),c}function Q7(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,c=Li(n),u=Li(t),[m,h]=k.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:m,b=i!==void 0,x=o??`disclosure-${k.exports.useId()}`,w=k.exports.useCallback(()=>{b||h(!1),u?.()},[b,u]),N=k.exports.useCallback(()=>{b||h(!0),c?.()},[b,c]),R=k.exports.useCallback(()=>{v?w():N()},[v,N,w]);function O(B={}){return{...B,"aria-expanded":v,"aria-controls":x,onClick(I){var F;(F=B.onClick)==null||F.call(B,I),R()}}}function M(B={}){return{...B,hidden:!v,id:x}}return{isOpen:v,onOpen:N,onClose:w,onToggle:R,isControlled:b,getButtonProps:O,getDisclosureProps:M}}function Tte(e){const{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!!(!n||i||o==="keepMounted"&&t)}var qf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[Rte,Ate]=zr({strict:!1,name:"PortalManagerContext"});function J7(e){const{children:t,zIndex:n}=e;return _(Rte,{value:{zIndex:n},children:t},void 0,!1,{fileName:qf,lineNumber:12,columnNumber:26},this)}J7.displayName="PortalManager";var[e8,kte]=zr({strict:!1,name:"PortalContext"}),Kk="chakra-portal",Ote=".chakra-portal",Dte=e=>_("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:qf,lineNumber:29,columnNumber:44},globalThis),Pte=e=>{const{appendToParentPortal:t,children:n}=e,[i,o]=k.exports.useState(null),c=k.exports.useRef(null),[,u]=k.exports.useState({});k.exports.useEffect(()=>u({}),[]);const m=kte(),h=Ate();Sc(()=>{if(!i)return;const b=i.ownerDocument,x=t?m??b.body:b.body;if(!x)return;c.current=b.createElement("div"),c.current.className=Kk,x.appendChild(c.current),u({});const w=c.current;return()=>{x.contains(w)&&x.removeChild(w)}},[i]);const v=h?.zIndex?_(Dte,{zIndex:h?.zIndex,children:n},void 0,!1,{fileName:qf,lineNumber:65,columnNumber:83},globalThis):n;return c.current?By.exports.createPortal(_(e8,{value:c.current,children:v},void 0,!1,{fileName:qf,lineNumber:68,columnNumber:56},globalThis),c.current):_("span",{ref:b=>{b&&o(b)}},void 0,!1,{fileName:qf,lineNumber:70,columnNumber:52},globalThis)},Mte=e=>{const{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,c=o??(typeof window<"u"?document.body:void 0),u=k.exports.useMemo(()=>{const h=o?.ownerDocument.createElement("div");return h&&(h.className=Kk),h},[o]),[,m]=k.exports.useState({});return Sc(()=>m({}),[]),Sc(()=>{if(!(!u||!c))return c.appendChild(u),()=>{c.removeChild(u)}},[u,c]),c&&u?By.exports.createPortal(_(e8,{value:i?u:null,children:t},void 0,!1,{fileName:qf,lineNumber:98,columnNumber:41},globalThis),u):null};function tm(e){const{containerRef:t,...n}=e;return t?_(Mte,{containerRef:t,...n},void 0,!1,{fileName:qf,lineNumber:106,columnNumber:41},this):_(Pte,{...n},void 0,!1,{fileName:qf,lineNumber:109,columnNumber:24},this)}tm.defaultProps={appendToParentPortal:!0};tm.className=Kk;tm.selector=Ote;tm.displayName="Portal";var Ite=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dh=new WeakMap,_x=new WeakMap,Tx={},_R=0,Lte=function(e,t,n,i){var o=Array.isArray(e)?e:[e];Tx[n]||(Tx[n]=new WeakMap);var c=Tx[n],u=[],m=new Set,h=new Set(o),v=function(x){!x||m.has(x)||(m.add(x),v(x.parentNode))};o.forEach(v);var b=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(w){if(m.has(w))b(w);else{var N=w.getAttribute(i),R=N!==null&&N!=="false",O=(Dh.get(w)||0)+1,M=(c.get(w)||0)+1;Dh.set(w,O),c.set(w,M),u.push(w),O===1&&R&&_x.set(w,!0),M===1&&w.setAttribute(n,"true"),R||w.setAttribute(i,"true")}})};return b(t),m.clear(),_R++,function(){u.forEach(function(x){var w=Dh.get(x)-1,N=c.get(x)-1;Dh.set(x,w),c.set(x,N),w||(_x.has(x)||x.removeAttribute(i),_x.delete(x)),N||x.removeAttribute(n)}),_R--,_R||(Dh=new WeakMap,Dh=new WeakMap,_x=new WeakMap,Tx={})}},Fte=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||Ite(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),Lte(i,o,n,"aria-hidden")):function(){return null}};function zte(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var At={exports:{}};/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/var r6=Object.getOwnPropertySymbols,Bte=Object.prototype.hasOwnProperty,Ute=Object.prototype.propertyIsEnumerable;function $te(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function jte(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(c){return t[c]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(c){o[c]=c}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Vte=jte()?Object.assign:function(e,t){for(var n,i=$te(e),o,c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)Bte.call(n,u)&&(i[u]=n[u]);if(r6){o=r6(n);for(var m=0;m<o.length;m++)Ute.call(n,o[m])&&(i[o[m]]=n[o[m]])}}return i},Hte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",t8=Hte,n8=Function.call.bind(Object.prototype.hasOwnProperty),K5=function(){};{var Wte=t8,X5={},Gte=n8;K5=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function r8(e,t,n,i,o){for(var c in e)if(Gte(e,c)){var u;try{if(typeof e[c]!="function"){var m=Error((i||"React class")+": "+n+" 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 m.name="Invariant Violation",m}u=e[c](t,c,i,n,null,Wte)}catch(v){u=v}if(u&&!(u instanceof Error)&&K5((i||"React class")+": type specification of "+n+" `"+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 X5)){X5[u.message]=!0;var h=o?o():"";K5("Failed "+n+" type: "+u.message+(h??""))}}}r8.resetWarningCache=function(){X5={}};var Yte=r8,qte=aC.exports,Kte=Vte,Ph=t8,TR=n8,a6=Yte,jh=function(){};jh=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function Rx(){return null}var Xte=function(e,t){var n=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function o(ae){var ue=ae&&(n&&ae[n]||ae[i]);if(typeof ue=="function")return ue}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:w,element:N(),elementType:R(),instanceOf:O,node:F(),objectOf:B,oneOf:M,oneOfType:I,shape:$,exact:q};function m(ae,ue){return ae===ue?ae!==0||1/ae===1/ue:ae!==ae&&ue!==ue}function h(ae,ue){this.message=ae,this.data=ue&&typeof ue=="object"?ue:{},this.stack=""}h.prototype=Error.prototype;function v(ae){var ue={},Ee=0;function de(xe,Ne,he,Ce,Me,Ie,Ye){if(Ce=Ce||c,Ie=Ie||he,Ye!==Ph){if(t){var at=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 at.name="Invariant Violation",at}else if(typeof console<"u"){var gt=Ce+":"+he;!ue[gt]&&Ee<3&&(jh("You are manually calling a React.PropTypes validation function for the `"+Ie+"` prop on `"+Ce+"`. 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."),ue[gt]=!0,Ee++)}}return Ne[he]==null?xe?Ne[he]===null?new h("The "+Me+" `"+Ie+"` is marked as required "+("in `"+Ce+"`, but its value is `null`.")):new h("The "+Me+" `"+Ie+"` is marked as required in "+("`"+Ce+"`, but its value is `undefined`.")):null:ae(Ne,he,Ce,Me,Ie)}var ie=de.bind(null,!1);return ie.isRequired=de.bind(null,!0),ie}function b(ae){function ue(Ee,de,ie,xe,Ne,he){var Ce=Ee[de],Me=me(Ce);if(Me!==ae){var Ie=se(Ce);return new h("Invalid "+xe+" `"+Ne+"` of type "+("`"+Ie+"` supplied to `"+ie+"`, expected ")+("`"+ae+"`."),{expectedType:ae})}return null}return v(ue)}function x(){return v(Rx)}function w(ae){function ue(Ee,de,ie,xe,Ne){if(typeof ae!="function")return new h("Property `"+Ne+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var he=Ee[de];if(!Array.isArray(he)){var Ce=me(he);return new h("Invalid "+xe+" `"+Ne+"` of type "+("`"+Ce+"` supplied to `"+ie+"`, expected an array."))}for(var Me=0;Me<he.length;Me++){var Ie=ae(he,Me,ie,xe,Ne+"["+Me+"]",Ph);if(Ie instanceof Error)return Ie}return null}return v(ue)}function N(){function ae(ue,Ee,de,ie,xe){var Ne=ue[Ee];if(!e(Ne)){var he=me(Ne);return new h("Invalid "+ie+" `"+xe+"` of type "+("`"+he+"` supplied to `"+de+"`, expected a single ReactElement."))}return null}return v(ae)}function R(){function ae(ue,Ee,de,ie,xe){var Ne=ue[Ee];if(!qte.isValidElementType(Ne)){var he=me(Ne);return new h("Invalid "+ie+" `"+xe+"` of type "+("`"+he+"` supplied to `"+de+"`, expected a single ReactElement type."))}return null}return v(ae)}function O(ae){function ue(Ee,de,ie,xe,Ne){if(!(Ee[de]instanceof ae)){var he=ae.name||c,Ce=qe(Ee[de]);return new h("Invalid "+xe+" `"+Ne+"` of type "+("`"+Ce+"` supplied to `"+ie+"`, expected ")+("instance of `"+he+"`."))}return null}return v(ue)}function M(ae){if(!Array.isArray(ae))return arguments.length>1?jh("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])."):jh("Invalid argument supplied to oneOf, expected an array."),Rx;function ue(Ee,de,ie,xe,Ne){for(var he=Ee[de],Ce=0;Ce<ae.length;Ce++)if(m(he,ae[Ce]))return null;var Me=JSON.stringify(ae,function(Ye,at){var gt=se(at);return gt==="symbol"?String(at):at});return new h("Invalid "+xe+" `"+Ne+"` of value `"+String(he)+"` "+("supplied to `"+ie+"`, expected one of "+Me+"."))}return v(ue)}function B(ae){function ue(Ee,de,ie,xe,Ne){if(typeof ae!="function")return new h("Property `"+Ne+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var he=Ee[de],Ce=me(he);if(Ce!=="object")return new h("Invalid "+xe+" `"+Ne+"` of type "+("`"+Ce+"` supplied to `"+ie+"`, expected an object."));for(var Me in he)if(TR(he,Me)){var Ie=ae(he,Me,ie,xe,Ne+"."+Me,Ph);if(Ie instanceof Error)return Ie}return null}return v(ue)}function I(ae){if(!Array.isArray(ae))return jh("Invalid argument supplied to oneOfType, expected an instance of array."),Rx;for(var ue=0;ue<ae.length;ue++){var Ee=ae[ue];if(typeof Ee!="function")return jh("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Se(Ee)+" at index "+ue+"."),Rx}function de(ie,xe,Ne,he,Ce){for(var Me=[],Ie=0;Ie<ae.length;Ie++){var Ye=ae[Ie],at=Ye(ie,xe,Ne,he,Ce,Ph);if(at==null)return null;at.data&&TR(at.data,"expectedType")&&Me.push(at.data.expectedType)}var gt=Me.length>0?", expected one of type ["+Me.join(", ")+"]":"";return new h("Invalid "+he+" `"+Ce+"` supplied to "+("`"+Ne+"`"+gt+"."))}return v(de)}function F(){function ae(ue,Ee,de,ie,xe){return K(ue[Ee])?null:new h("Invalid "+ie+" `"+xe+"` supplied to "+("`"+de+"`, expected a ReactNode."))}return v(ae)}function z(ae,ue,Ee,de,ie){return new h((ae||"React class")+": "+ue+" type `"+Ee+"."+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function $(ae){function ue(Ee,de,ie,xe,Ne){var he=Ee[de],Ce=me(he);if(Ce!=="object")return new h("Invalid "+xe+" `"+Ne+"` of type `"+Ce+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Me in ae){var Ie=ae[Me];if(typeof Ie!="function")return z(ie,xe,Ne,Me,se(Ie));var Ye=Ie(he,Me,ie,xe,Ne+"."+Me,Ph);if(Ye)return Ye}return null}return v(ue)}function q(ae){function ue(Ee,de,ie,xe,Ne){var he=Ee[de],Ce=me(he);if(Ce!=="object")return new h("Invalid "+xe+" `"+Ne+"` of type `"+Ce+"` "+("supplied to `"+ie+"`, expected `object`."));var Me=Kte({},Ee[de],ae);for(var Ie in Me){var Ye=ae[Ie];if(TR(ae,Ie)&&typeof Ye!="function")return z(ie,xe,Ne,Ie,se(Ye));if(!Ye)return new h("Invalid "+xe+" `"+Ne+"` key `"+Ie+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(Ee[de],null," ")+`
|
|
Valid keys: `+JSON.stringify(Object.keys(ae),null," "));var at=Ye(he,Ie,ie,xe,Ne+"."+Ie,Ph);if(at)return at}return null}return v(ue)}function K(ae){switch(typeof ae){case"number":case"string":case"undefined":return!0;case"boolean":return!ae;case"object":if(Array.isArray(ae))return ae.every(K);if(ae===null||e(ae))return!0;var ue=o(ae);if(ue){var Ee=ue.call(ae),de;if(ue!==ae.entries){for(;!(de=Ee.next()).done;)if(!K(de.value))return!1}else for(;!(de=Ee.next()).done;){var ie=de.value;if(ie&&!K(ie[1]))return!1}}else return!1;return!0;default:return!1}}function le(ae,ue){return ae==="symbol"?!0:ue?ue["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ue instanceof Symbol:!1}function me(ae){var ue=typeof ae;return Array.isArray(ae)?"array":ae instanceof RegExp?"object":le(ue,ae)?"symbol":ue}function se(ae){if(typeof ae>"u"||ae===null)return""+ae;var ue=me(ae);if(ue==="object"){if(ae instanceof Date)return"date";if(ae instanceof RegExp)return"regexp"}return ue}function Se(ae){var ue=se(ae);switch(ue){case"array":case"object":return"an "+ue;case"boolean":case"date":case"regexp":return"a "+ue;default:return ue}}function qe(ae){return!ae.constructor||!ae.constructor.name?c:ae.constructor.name}return u.checkPropTypes=a6,u.resetWarningCache=a6.resetWarningCache,u.PropTypes=u,u};{var Zte=aC.exports,Qte=!0;At.exports=Xte(Zte.isElement,Qte)}var Z5="data-focus-lock",a8="data-focus-lock-disabled",Jte="data-no-focus-lock",ene="data-autofocus-inside",tne="data-no-autofocus";function nne(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rne(e,t){var n=k.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}function i8(e,t){return rne(t||null,function(n){return e.forEach(function(i){return nne(i,n)})})}var RR={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};At.exports.node;function o8(e){return e}function s8(e,t){t===void 0&&(t=o8);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(c){var u=t(c,i);return n.push(u),function(){n=n.filter(function(m){return m!==u})}},assignSyncMedium:function(c){for(i=!0;n.length;){var u=n;n=[],u.forEach(c)}n={push:function(m){return c(m)},filter:function(){return n}}},assignMedium:function(c){i=!0;var u=[];if(n.length){var m=n;n=[],m.forEach(c),u=n}var h=function(){var b=u;u=[],b.forEach(c)},v=function(){return Promise.resolve().then(h)};v(),n={push:function(b){u.push(b),v()},filter:function(b){return u=u.filter(b),n}}}};return o}function Xk(e,t){return t===void 0&&(t=o8),s8(e,t)}function l8(e){e===void 0&&(e={});var t=s8(null);return t.options=fu({async:!0,ssr:!1},e),t}var ane="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",u8=function(e){var t=e.sideCar,n=hC(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 _(i,{...fu({},n)},void 0,!1,{fileName:ane,lineNumber:12,columnNumber:12},this)};u8.isSideCarExport=!0;function ine(e,t){return e.useMedium(t),u8}var c8=Xk({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),f8=Xk(),one=Xk(),sne=l8({async:!0}),B0="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",lne=[],Zk=k.exports.forwardRef(function(t,n){var i,o=k.exports.useState(),c=o[0],u=o[1],m=k.exports.useRef(),h=k.exports.useRef(!1),v=k.exports.useRef(null),b=t.children,x=t.disabled,w=t.noFocusGuards,N=t.persistentFocus,R=t.crossFrame,O=t.autoFocus,M=t.allowTextSelection,B=t.group,I=t.className,F=t.whiteList,z=t.hasPositiveIndices,$=t.shards,q=$===void 0?lne:$,K=t.as,le=K===void 0?"div":K,me=t.lockProps,se=me===void 0?{}:me,Se=t.sideCar,qe=t.returnFocus,ae=t.focusOptions,ue=t.onActivation,Ee=t.onDeactivation,de=k.exports.useState({}),ie=de[0],xe=k.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,m.current&&ue&&ue(m.current),h.current=!0},[ue]),Ne=k.exports.useCallback(function(){h.current=!1,Ee&&Ee(m.current)},[Ee]);k.exports.useEffect(function(){x||(v.current=null)},[]);var he=k.exports.useCallback(function(Ze){var ct=v.current;if(ct&&ct.focus){var wt=typeof qe=="function"?qe(ct):qe;if(wt){var zt=typeof wt=="object"?wt:void 0;v.current=null,Ze?Promise.resolve().then(function(){return ct.focus(zt)}):ct.focus(zt)}}},[qe]),Ce=k.exports.useCallback(function(Ze){h.current&&c8.useMedium(Ze)},[]),Me=f8.useMedium,Ie=k.exports.useCallback(function(Ze){m.current!==Ze&&(m.current=Ze,u(Ze))},[]);typeof M<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),k.exports.useEffect(function(){m.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ye=hy((i={},i[a8]=x&&"disabled",i[Z5]=B,i),se),at=w!==!0,gt=at&&w!=="tail",Ht=i8([n,Ie]);return _(hi,{children:[at&&[_("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:RR},"guard-first",!1,{fileName:B0,lineNumber:130,columnNumber:3},this),z?_("div",{"data-focus-guard":!0,tabIndex:x?-1:1,style:RR},"guard-nearest",!1,{fileName:B0,lineNumber:136,columnNumber:37},this):null],!x&&_(Se,{id:ie,sideCar:sne,observed:c,disabled:x,persistentFocus:N,crossFrame:R,autoFocus:O,whiteList:F,shards:q,onActivation:xe,onDeactivation:Ne,returnFocus:he,focusOptions:ae},void 0,!1,{fileName:B0,lineNumber:141,columnNumber:41},this),_(le,{ref:Ht,...Ye,className:I,onBlur:Me,onFocus:Ce,children:b},void 0,!1,{fileName:B0,lineNumber:155,columnNumber:20},this),gt&&_("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:RR},void 0,!1,{fileName:B0,lineNumber:161,columnNumber:51},this)]},void 0,!0)});Zk.propTypes={children:At.exports.node,disabled:At.exports.bool,returnFocus:At.exports.oneOfType([At.exports.bool,At.exports.object,At.exports.func]),focusOptions:At.exports.object,noFocusGuards:At.exports.bool,hasPositiveIndices:At.exports.bool,allowTextSelection:At.exports.bool,autoFocus:At.exports.bool,persistentFocus:At.exports.bool,crossFrame:At.exports.bool,group:At.exports.string,className:At.exports.string,whiteList:At.exports.func,shards:At.exports.arrayOf(At.exports.any),as:At.exports.oneOfType([At.exports.string,At.exports.func,At.exports.object]),lockProps:At.exports.object,onActivation:At.exports.func,onDeactivation:At.exports.func,sideCar:At.exports.any.isRequired};Zk.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 d8=Zk;function Q5(e,t){return Q5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Q5(e,t)}function une(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Q5(e,t)}function p8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cne="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function fne(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var c=[],u;function m(){u=e(c.map(function(v){return v.props})),t(u)}var h=function(v){une(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),m()},x.componentDidUpdate=function(){m()},x.componentWillUnmount=function(){var N=c.indexOf(this);c.splice(N,1),m()},x.render=function(){return _(o,{...this.props},void 0,!1,{fileName:cne,lineNumber:67,columnNumber:29},this)},b}(k.exports.PureComponent);return p8(h,"displayName","SideEffect("+n(o)+")"),h}}var wu=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},J5=function(e){return Array.isArray(e)?e:[e]},dne=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"},m8=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},h8=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},pne=function(e,t){return!e||h8(e)||!dne(e)&&t(m8(e))},v8=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=pne(t,v8.bind(void 0,e));return e.set(t,i),i},mne=function(e,t){return e&&!h8(e)?gne(e)?t(m8(e)):!1:!0},g8=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=mne(t,g8.bind(void 0,e));return e.set(t,i),i},y8=function(e){return e.dataset},hne=function(e){return e.tagName==="BUTTON"},b8=function(e){return e.tagName==="INPUT"},S8=function(e){return b8(e)&&e.type==="radio"},vne=function(e){return!((b8(e)||hne(e))&&(e.type==="hidden"||e.disabled))},gne=function(e){var t=e.getAttribute(tne);return![!0,"true",""].includes(t)},Qk=function(e){var t;return Boolean(e&&((t=y8(e))===null||t===void 0?void 0:t.focusGuard))},D2=function(e){return!Qk(e)},yne=function(e){return Boolean(e)},bne=function(e,t){var n=e.tabIndex-t.tabIndex,i=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||i},x8=function(e,t,n){return wu(e).map(function(i,o){return{node:i,index:o,tabIndex:n&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort(bne)},Sne=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Jk=Sne.join(","),xne="".concat(Jk,", [data-focus-guard]"),C8=function(e,t){var n;return wu(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(i,o){return i.concat(o.matches(t?xne:Jk)?[o]:[],C8(o))},[])},eO=function(e,t){return e.reduce(function(n,i){return n.concat(C8(i,t),i.parentNode?wu(i.parentNode.querySelectorAll(Jk)).filter(function(o){return o===i}):[])},[])},Cne=function(e){var t=e.querySelectorAll("[".concat(ene,"]"));return wu(t).map(function(n){return eO([n])}).reduce(function(n,i){return n.concat(i)},[])},tO=function(e,t){return wu(e).filter(function(n){return v8(t,n)}).filter(function(n){return vne(n)})},i6=function(e,t){return t===void 0&&(t=new Map),wu(e).filter(function(n){return g8(t,n)})},eA=function(e,t,n){return x8(tO(eO(e,n),t),!0,n)},o6=function(e,t){return x8(tO(eO(e),t),!1)},wne=function(e,t){return tO(Cne(e),t)},ky=function(e,t){return(e.shadowRoot?ky(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||wu(e.children).some(function(n){return ky(n,t)})},Nne=function(e){for(var t=new Set,n=e.length,i=0;i<n;i+=1)for(var o=i+1;o<n;o+=1){var c=e[i].compareDocumentPosition(e[o]);(c&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(c&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(u,m){return!t.has(m)})},w8=function(e){return e.parentNode?w8(e.parentNode):e},nO=function(e){var t=J5(e);return t.filter(Boolean).reduce(function(n,i){var o=i.getAttribute(Z5);return n.push.apply(n,o?Nne(wu(w8(i).querySelectorAll("[".concat(Z5,'="').concat(o,'"]:not([').concat(a8,'="disabled"])')))):[i]),n},[])},N8=function(e){return e.activeElement?e.activeElement.shadowRoot?N8(e.activeElement.shadowRoot):e.activeElement:void 0},rO=function(){return document.activeElement?document.activeElement.shadowRoot?N8(document.activeElement.shadowRoot):document.activeElement:void 0},Ene=function(e){return e===document.activeElement},_ne=function(e){return Boolean(wu(e.querySelectorAll("iframe")).some(function(t){return Ene(t)}))},E8=function(e){var t=document&&rO();return!t||t.dataset&&t.dataset.focusGuard?!1:nO(e).some(function(n){return ky(n,t)||_ne(n)})},Tne=function(){var e=document&&rO();return e?wu(document.querySelectorAll("[".concat(Jte,"]"))).some(function(t){return ky(t,e)}):!1},Rne=function(e,t){return t.filter(S8).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},aO=function(e,t){return S8(e)&&e.name?Rne(e,t):e},Ane=function(e){var t=new Set;return e.forEach(function(n){return t.add(aO(n,e))}),e.filter(function(n){return t.has(n)})},s6=function(e){return e[0]&&e.length>1?aO(e[0],e):e[0]},l6=function(e,t){return e.length>1?e.indexOf(aO(e[t],e)):t},_8="NEW_FOCUS",kne=function(e,t,n,i){var o=e.length,c=e[0],u=e[o-1],m=Qk(n);if(!(n&&e.indexOf(n)>=0)){var h=n!==void 0?t.indexOf(n):-1,v=i?t.indexOf(i):h,b=i?e.indexOf(i):-1,x=h-v,w=t.indexOf(c),N=t.indexOf(u),R=Ane(t),O=n!==void 0?R.indexOf(n):-1,M=O-(i?R.indexOf(i):h),B=l6(e,0),I=l6(e,o-1);if(h===-1||b===-1)return _8;if(!x&&b>=0)return b;if(h<=w&&m&&Math.abs(x)>1)return I;if(h>=N&&m&&Math.abs(x)>1)return B;if(x&&Math.abs(M)>1)return b;if(h<=w)return I;if(h>N)return B;if(x)return Math.abs(x)>1?b:(o+b+x)%o}},tA=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&tA(e.parentNode.host||e.parentNode,t),t},AR=function(e,t){for(var n=tA(e),i=tA(t),o=0;o<n.length;o+=1){var c=n[o];if(i.indexOf(c)>=0)return c}return!1},T8=function(e,t,n){var i=J5(e),o=J5(t),c=i[0],u=!1;return o.filter(Boolean).forEach(function(m){u=AR(u||m,m)||u,n.filter(Boolean).forEach(function(h){var v=AR(c,h);v&&(!u||ky(v,u)?u=v:u=AR(v,u))})}),u},One=function(e,t){return e.reduce(function(n,i){return n.concat(wne(i,t))},[])},Dne=function(e){return function(t){var n;return t.autofocus||!!(!((n=y8(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},Pne=function(e,t){var n=new Map;return t.forEach(function(i){return n.set(i.node,i)}),e.map(function(i){return n.get(i)}).filter(yne)},Mne=function(e,t){var n=document&&rO(),i=nO(e).filter(D2),o=T8(n||e,e,i),c=new Map,u=o6(i,c),m=eA(i,c).filter(function(N){var R=N.node;return D2(R)});if(!(!m[0]&&(m=u,!m[0]))){var h=o6([o],c).map(function(N){var R=N.node;return R}),v=Pne(h,m),b=v.map(function(N){var R=N.node;return R}),x=kne(b,h,n,t);if(x===_8){var w=i6(u.map(function(N){var R=N.node;return R})).filter(Dne(One(i,c)));return{node:w&&w.length?s6(w):s6(i6(b))}}return x===void 0?x:v[x]}},Ine=function(e){var t=nO(e).filter(D2),n=T8(e,e,t),i=new Map,o=eA([n],i,!0),c=eA(t,i).filter(function(u){var m=u.node;return D2(m)}).map(function(u){var m=u.node;return m});return o.map(function(u){var m=u.node,h=u.index;return{node:m,index:h,lockItem:c.indexOf(m)>=0,guard:Qk(m)}})},Lne=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},kR=0,OR=!1,Fne=function(e,t,n){n===void 0&&(n={});var i=Mne(e,t);if(!OR&&i){if(kR>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),OR=!0,setTimeout(function(){OR=!1},1);return}kR++,Lne(i.node,n.focusOptions),kR--}};const R8=Fne;function A8(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var zne=function(){return document&&document.activeElement===document.body},Bne=function(){return zne()||Tne()},Jh=null,Yh=null,ev=null,Oy=!1,Une=function(){return!0},$ne=function(t){return(Jh.whiteList||Une)(t)},jne=function(t,n){ev={observerNode:t,portaledElement:n}},Vne=function(t){return ev&&ev.portaledElement===t};function u6(e,t,n,i){var o=null,c=e;do{var u=i[c];if(u.guard)u.node.dataset.focusAutoGuard&&(o=u);else if(u.lockItem){if(c!==e)return;o=null}else break}while((c+=n)!==t);o&&(o.node.tabIndex=0)}var Hne=function(t){return t&&"current"in t?t.current:t},Wne=function(t){return t?Boolean(Oy):Oy==="meanwhile"},Gne=function e(t,n,i){return n&&(n.host===t&&(!n.activeElement||i.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,i))},Yne=function(t,n){return n.some(function(i){return Gne(t,i,i)})},P2=function(){var t=!1;if(Jh){var n=Jh,i=n.observed,o=n.persistentFocus,c=n.autoFocus,u=n.shards,m=n.crossFrame,h=n.focusOptions,v=i||ev&&ev.portaledElement,b=document&&document.activeElement;if(v){var x=[v].concat(u.map(Hne).filter(Boolean));if((!b||$ne(b))&&(o||Wne(m)||!Bne()||!Yh&&c)&&(v&&!(E8(x)||b&&Yne(b,x)||Vne(b))&&(document&&!Yh&&b&&!c?(b.blur&&b.blur(),document.body.focus()):(t=R8(x,Yh,{focusOptions:h}),ev={})),Oy=!1,Yh=document&&document.activeElement),document){var w=document&&document.activeElement,N=Ine(x),R=N.map(function(O){var M=O.node;return M}).indexOf(w);R>-1&&(N.filter(function(O){var M=O.guard,B=O.node;return M&&B.dataset.focusAutoGuard}).forEach(function(O){var M=O.node;return M.removeAttribute("tabIndex")}),u6(R,N.length,1,N),u6(R,-1,-1,N))}}}return t},k8=function(t){P2()&&t&&(t.stopPropagation(),t.preventDefault())},iO=function(){return A8(P2)},qne=function(t){var n=t.target,i=t.currentTarget;i.contains(n)||jne(i,n)},Kne=function(){return null};At.exports.node.isRequired;var O8=function(){Oy="just",setTimeout(function(){Oy="meanwhile"},0)},Xne=function(){document.addEventListener("focusin",k8),document.addEventListener("focusout",iO),window.addEventListener("blur",O8)},Zne=function(){document.removeEventListener("focusin",k8),document.removeEventListener("focusout",iO),window.removeEventListener("blur",O8)};function Qne(e){return e.filter(function(t){var n=t.disabled;return!n})}function Jne(e){var t=e.slice(-1)[0];t&&!Jh&&Xne();var n=Jh,i=n&&t&&t.id===n.id;Jh=t,n&&!i&&(n.onDeactivation(),e.filter(function(o){var c=o.id;return c===n.id}).length||n.returnFocus(!t)),t?(Yh=null,(!i||n.observed!==t.observed)&&t.onActivation(),P2(),A8(P2)):(Zne(),Yh=null)}c8.assignSyncMedium(qne);f8.assignMedium(iO);one.assignMedium(function(e){return e({moveFocusInside:R8,focusInside:E8})});const ere=fne(Qne,Jne)(Kne);var tre="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",D8=k.exports.forwardRef(function(t,n){return _(d8,{sideCar:ere,ref:n,...t},void 0,!1,{fileName:tre,lineNumber:16,columnNumber:23},this)}),P8=d8.propTypes||{};P8.sideCar;var nre=zte(P8,["sideCar"]);D8.propTypes=nre;const rre=D8;var are="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",M8=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:i,restoreFocus:o,children:c,isDisabled:u,autoFocus:m,persistentFocus:h,lockFocusAcrossFrames:v}=e,b=k.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&ree(i.current).length===0&&requestAnimationFrame(()=>{var R;(R=i.current)==null||R.focus()})},[t,i]),x=k.exports.useCallback(()=>{var N;(N=n?.current)==null||N.focus()},[n]);return _(rre,{crossFrame:v,persistentFocus:h,autoFocus:m,disabled:u,onActivation:b,onDeactivation:x,returnFocus:o&&!n,children:c},void 0,!1,{fileName:are,lineNumber:38,columnNumber:26},globalThis)};M8.displayName="FocusLock";var Qx="right-scroll-bar-position",Jx="width-before-scroll-bar",ire="with-scroll-bars-hidden",ore="--removed-body-scroll-bar-size",I8=l8(),c6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",DR=function(){},OC=k.exports.forwardRef(function(e,t){var n=k.exports.useRef(null),i=k.exports.useState({onScrollCapture:DR,onWheelCapture:DR,onTouchMoveCapture:DR}),o=i[0],c=i[1],u=e.forwardProps,m=e.children,h=e.className,v=e.removeScrollBar,b=e.enabled,x=e.shards,w=e.sideCar,N=e.noIsolation,R=e.inert,O=e.allowPinchZoom,M=e.as,B=M===void 0?"div":M,I=hC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),F=w,z=i8([n,t]),$=fu(fu({},I),o);return _(hi,{children:[b&&_(F,{sideCar:I8,removeScrollBar:v,shards:x,noIsolation:N,inert:R,setCallbacks:c,allowPinchZoom:!!O,lockRef:n},void 0,!1,{fileName:c6,lineNumber:24,columnNumber:21},this),u?k.exports.cloneElement(k.exports.Children.only(m),fu(fu({},$),{ref:z})):_(B,{...fu({},$,{className:h,ref:z}),children:m},void 0,!1,{fileName:c6,lineNumber:25,columnNumber:142},this)]},void 0,!0)});OC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};OC.classNames={fullWidth:Jx,zeroRight:Qx};var sre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sre();return t&&e.setAttribute("nonce",t),e}function ure(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lre())&&(ure(t,n),cre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dre=function(){var e=fre();return function(t,n){k.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},L8=function(){var e=dre(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},pre={left:0,top:0,right:0,gap:0},PR=function(e){return parseInt(e||"",10)||0},mre=function(e){var t=window.getComputedStyle(document.body);t.overflowY==="hidden"&&console.error("react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body");var n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[PR(n),PR(i),PR(o)]},hre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pre;var t=mre(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},vre="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",gre=L8(),yre=function(e,t,n,i){var o=e.left,c=e.top,u=e.right,m=e.gap;return n===void 0&&(n="margin"),`
|
|
.`.concat(ire,` {
|
|
overflow: hidden `).concat(i,`;
|
|
padding-right: `).concat(m,"px ").concat(i,`;
|
|
}
|
|
body {
|
|
overflow: hidden `).concat(i,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
padding-left: `.concat(o,`px;
|
|
padding-top: `).concat(c,`px;
|
|
padding-right: `).concat(u,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(m,"px ").concat(i,`;
|
|
`),n==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat(Qx,` {
|
|
right: `).concat(m,"px ").concat(i,`;
|
|
}
|
|
|
|
.`).concat(Jx,` {
|
|
margin-right: `).concat(m,"px ").concat(i,`;
|
|
}
|
|
|
|
.`).concat(Qx," .").concat(Qx,` {
|
|
right: 0 `).concat(i,`;
|
|
}
|
|
|
|
.`).concat(Jx," .").concat(Jx,` {
|
|
margin-right: 0 `).concat(i,`;
|
|
}
|
|
|
|
body {
|
|
`).concat(ore,": ").concat(m,`px;
|
|
}
|
|
`)},bre=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i,c=k.exports.useMemo(function(){return hre(o)},[o]);return _(gre,{styles:yre(c,!t,o,n?"":"!important")},void 0,!1,{fileName:vre,lineNumber:27,columnNumber:12},this)},nA=!1;if(typeof window<"u")try{var Ax=Object.defineProperty({},"passive",{get:function(){return nA=!0,!0}});window.addEventListener("test",Ax,Ax),window.removeEventListener("test",Ax,Ax)}catch{nA=!1}var Mh=nA?{passive:!1}:!1,Sre=function(e){return e.tagName==="TEXTAREA"},F8=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sre(e)&&n[t]==="visible")},xre=function(e){return F8(e,"overflowY")},Cre=function(e){return F8(e,"overflowX")},f6=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=z8(e,n);if(i){var o=B8(e,n),c=o[1],u=o[2];if(c>u)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},wre=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Nre=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},z8=function(e,t){return e==="v"?xre(t):Cre(t)},B8=function(e,t){return e==="v"?wre(t):Nre(t)},Ere=function(e,t){return e==="h"&&t==="rtl"?-1:1},_re=function(e,t,n,i,o){var c=Ere(e,window.getComputedStyle(t).direction),u=c*i,m=n.target,h=t.contains(m),v=!1,b=u>0,x=0,w=0;do{var N=B8(e,m),R=N[0],O=N[1],M=N[2],B=O-M-c*R;(R||B)&&z8(e,m)&&(x+=B,w+=R),m=m.parentNode}while(!h&&m!==document.body||h&&(t.contains(m)||t===m));return(b&&(o&&x===0||!o&&u>x)||!b&&(o&&w===0||!o&&-u>w))&&(v=!0),v},d6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",kx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},p6=function(e){return[e.deltaX,e.deltaY]},m6=function(e){return e&&"current"in e?e.current:e},Tre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rre=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},Are=0,Ih=[];function kre(e){var t=k.exports.useRef([]),n=k.exports.useRef([0,0]),i=k.exports.useRef(),o=k.exports.useState(Are++)[0],c=k.exports.useState(function(){return L8()})[0],u=k.exports.useRef(e);k.exports.useEffect(function(){u.current=e},[e]),k.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var O=y5([e.lockRef.current],(e.shards||[]).map(m6),!0).filter(Boolean);return O.forEach(function(M){return M.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),O.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var m=k.exports.useCallback(function(O,M){if("touches"in O&&O.touches.length===2)return!u.current.allowPinchZoom;var B=kx(O),I=n.current,F="deltaX"in O?O.deltaX:I[0]-B[0],z="deltaY"in O?O.deltaY:I[1]-B[1],$,q=O.target,K=Math.abs(F)>Math.abs(z)?"h":"v";if("touches"in O&&K==="h"&&q.type==="range")return!1;var le=f6(K,q);if(!le)return!0;if(le?$=K:($=K==="v"?"h":"v",le=f6(K,q)),!le)return!1;if(!i.current&&"changedTouches"in O&&(F||z)&&(i.current=$),!$)return!0;var me=i.current||$;return _re(me,M,O,me==="h"?F:z,!0)},[]),h=k.exports.useCallback(function(O){var M=O;if(!(!Ih.length||Ih[Ih.length-1]!==c)){var B="deltaY"in M?p6(M):kx(M),I=t.current.filter(function($){return $.name===M.type&&$.target===M.target&&Tre($.delta,B)})[0];if(I&&I.should){M.cancelable&&M.preventDefault();return}if(!I){var F=(u.current.shards||[]).map(m6).filter(Boolean).filter(function($){return $.contains(M.target)}),z=F.length>0?m(M,F[0]):!u.current.noIsolation;z&&M.cancelable&&M.preventDefault()}}},[]),v=k.exports.useCallback(function(O,M,B,I){var F={name:O,delta:M,target:B,should:I};t.current.push(F),setTimeout(function(){t.current=t.current.filter(function(z){return z!==F})},1)},[]),b=k.exports.useCallback(function(O){n.current=kx(O),i.current=void 0},[]),x=k.exports.useCallback(function(O){v(O.type,p6(O),O.target,m(O,e.lockRef.current))},[]),w=k.exports.useCallback(function(O){v(O.type,kx(O),O.target,m(O,e.lockRef.current))},[]);k.exports.useEffect(function(){return Ih.push(c),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",h,Mh),document.addEventListener("touchmove",h,Mh),document.addEventListener("touchstart",b,Mh),function(){Ih=Ih.filter(function(O){return O!==c}),document.removeEventListener("wheel",h,Mh),document.removeEventListener("touchmove",h,Mh),document.removeEventListener("touchstart",b,Mh)}},[]);var N=e.removeScrollBar,R=e.inert;return _(hi,{children:[R?_(c,{styles:Rre(o)},void 0,!1,{fileName:d6,lineNumber:144,columnNumber:17},this):null,N?_(bre,{gapMode:"margin"},void 0,!1,{fileName:d6,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Ore=ine(I8,kre);var Dre="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",U8=k.exports.forwardRef(function(e,t){return _(OC,{...fu({},e,{ref:t,sideCar:Ore})},void 0,!1,{fileName:Dre,lineNumber:5,columnNumber:74},this)});U8.classNames=OC.classNames;const Pre=U8;var No="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",nm=(...e)=>e.filter(Boolean).join(" ");function G0(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var Mre=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}},rA=new Mre;function Ire(e,t){k.exports.useEffect(()=>(t&&rA.add(e),()=>{rA.remove(e)}),[t,e])}function Lre(e){const{isOpen:t,onClose:n,id:i,closeOnOverlayClick:o=!0,closeOnEsc:c=!0,useInert:u=!0,onOverlayClick:m,onEsc:h}=e,v=k.exports.useRef(null),b=k.exports.useRef(null),[x,w,N]=zre(i,"chakra-modal","chakra-modal--header","chakra-modal--body");Fre(v,t&&u),Ire(v,t);const R=k.exports.useRef(null),O=k.exports.useCallback(le=>{R.current=le.target},[]),M=k.exports.useCallback(le=>{le.key==="Escape"&&(le.stopPropagation(),c&&n?.(),h?.())},[c,n,h]),[B,I]=k.exports.useState(!1),[F,z]=k.exports.useState(!1),$=k.exports.useCallback((le={},me=null)=>({role:"dialog",...le,ref:ma(me,v),id:x,tabIndex:-1,"aria-modal":!0,"aria-labelledby":B?w:void 0,"aria-describedby":F?N:void 0,onClick:G0(le.onClick,se=>se.stopPropagation())}),[N,F,x,w,B]),q=k.exports.useCallback(le=>{le.stopPropagation(),R.current===le.target&&(!rA.isTopModal(v)||(o&&n?.(),m?.()))},[n,o,m]),K=k.exports.useCallback((le={},me=null)=>({...le,ref:ma(me,b),onClick:G0(le.onClick,q),onKeyDown:G0(le.onKeyDown,M),onMouseDown:G0(le.onMouseDown,O)}),[M,O,q]);return{isOpen:t,onClose:n,headerId:w,bodyId:N,setBodyMounted:z,setHeaderMounted:I,dialogRef:v,overlayRef:b,getDialogProps:$,getDialogContainerProps:K}}function Fre(e,t){const n=e.current;k.exports.useEffect(()=>{if(!(!e.current||!t))return Fte(e.current)},[t,e,n])}function zre(e,...t){const n=k.exports.useId(),i=e||n;return k.exports.useMemo(()=>t.map(o=>`${o}-${i}`),[i,t])}var[Bre,rm]=zr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Ure,td]=zr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Dy=e=>{const{portalProps:t,children:n,autoFocus:i,trapFocus:o,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:m,blockScrollOnMount:h,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:w,onCloseComplete:N}=e,R=Ro("Modal",e),M={...Lre(e),autoFocus:i,trapFocus:o,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:m,blockScrollOnMount:h,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:w};return _(Ure,{value:M,children:_(Bre,{value:R,children:_(Rc,{onExitComplete:N,children:M.isOpen&&_(tm,{...t,children:n},void 0,!1,{fileName:No,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:No,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:No,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:No,lineNumber:189,columnNumber:26},globalThis)};Dy.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Dy.displayName="Modal";var M2=Xe((e,t)=>{const{className:n,...i}=e,{bodyId:o,setBodyMounted:c}=td();k.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=nm("chakra-modal__body",n),m=rm();return Pe.createElement($e.div,{ref:t,className:u,id:o,...i,__css:m.body})});M2.displayName="ModalBody";var $8=Xe((e,t)=>{const{onClick:n,className:i,...o}=e,{onClose:c}=td(),u=nm("chakra-modal__close-btn",i),m=rm();return _(TC,{ref:t,__css:m.closeButton,className:u,onClick:G0(n,h=>{h.stopPropagation(),c()}),...o},void 0,!1,{fileName:No,lineNumber:241,columnNumber:26},globalThis)});$8.displayName="ModalCloseButton";function j8(e){const{autoFocus:t,trapFocus:n,dialogRef:i,initialFocusRef:o,blockScrollOnMount:c,allowPinchZoom:u,finalFocusRef:m,returnFocusOnClose:h,preserveScrollBarGap:v,lockFocusAcrossFrames:b}=td(),[x,w]=bk();return k.exports.useEffect(()=>{!x&&w&&setTimeout(w)},[x,w]),_(M8,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:m,restoreFocus:h,contentRef:i,lockFocusAcrossFrames:b,children:_(Pre,{removeScrollBar:!v,allowPinchZoom:u,enabled:c,forwardProps:!0,children:e.children},void 0,!1,{fileName:No,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:No,lineNumber:284,columnNumber:26},this)}var $re={slideInBottom:{...I5,custom:{offsetY:16,reverse:!0}},slideInRight:{...I5,custom:{offsetX:16,reverse:!0}},scale:{...s7,custom:{initialScale:.95,reverse:!0}},none:{}},jre=$e(js.section),V8=k.exports.forwardRef((e,t)=>{const{preset:n,...i}=e,o=$re[n];return _(jre,{ref:t,...o,...i},void 0,!1,{fileName:No,lineNumber:324,columnNumber:26},globalThis)});V8.displayName="ModalTransition";var I2=Xe((e,t)=>{const{className:n,children:i,containerProps:o,...c}=e,{getDialogProps:u,getDialogContainerProps:m}=td(),h=u(c,t),v=m(o),b=nm("chakra-modal__content",n),x=rm(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},N={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:R}=td();return Pe.createElement(j8,null,Pe.createElement($e.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:N},_(V8,{preset:R,className:b,...h,__css:w,children:i},void 0,!1,{fileName:No,lineNumber:366,columnNumber:22},globalThis)))});I2.displayName="ModalContent";var oO=Xe((e,t)=>{const{className:n,...i}=e,o=nm("chakra-modal__footer",n),c=rm(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer};return Pe.createElement($e.footer,{ref:t,...i,__css:u,className:o})});oO.displayName="ModalFooter";var sO=Xe((e,t)=>{const{className:n,...i}=e,{headerId:o,setHeaderMounted:c}=td();k.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=nm("chakra-modal__header",n),m=rm(),h={flex:0,...m.header};return Pe.createElement($e.header,{ref:t,className:u,id:o,...i,__css:h})});sO.displayName="ModalHeader";var Vre=$e(js.div),L2=Xe((e,t)=>{const{className:n,transition:i,...o}=e,c=nm("chakra-modal__overlay",n),u=rm(),m={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...u.overlay},{motionPreset:h}=td();return _(Vre,{...h==="none"?{}:o7,__css:m,ref:t,className:c,...o},void 0,!1,{fileName:No,lineNumber:450,columnNumber:26},globalThis)});L2.displayName="ModalOverlay";function Hre(e){const{leastDestructiveRef:t,...n}=e;return _(Dy,{...n,initialFocusRef:t},void 0,!1,{fileName:No,lineNumber:464,columnNumber:26},this)}var Wre=Xe((e,t)=>_(I2,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:No,lineNumber:469,columnNumber:70},globalThis)),[hge,Gre]=zr(),Yre=$e(l7),qre=Xe((e,t)=>{const{className:n,children:i,...o}=e,{getDialogProps:c,getDialogContainerProps:u,isOpen:m}=td(),h=c(o,t),v=u(),b=nm("chakra-modal__content",n),x=rm(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},N={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{placement:R}=Gre();return Pe.createElement($e.div,{...v,className:"chakra-modal__content-container",__css:N},_(j8,{children:_(Yre,{direction:R,in:m,className:b,...h,__css:w,children:i},void 0,!1,{fileName:No,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:No,lineNumber:547,columnNumber:22},globalThis))});qre.displayName="DrawerContent";function Kre(e,t){const n=Li(e);k.exports.useEffect(()=>{let i=null;const o=()=>n();return t!==null&&(i=window.setInterval(o,t)),()=>{i&&window.clearInterval(i)}},[t,n])}var nd="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",H8=(...e)=>e.filter(Boolean).join(" "),MR=e=>e?!0:void 0;function iu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var Xre=e=>_($s,{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"},void 0,!1,{fileName:nd,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:nd,lineNumber:31,columnNumber:51},globalThis),Zre=e=>_($s,{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"},void 0,!1,{fileName:nd,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:nd,lineNumber:38,columnNumber:49},globalThis);function h6(e,t,n,i){k.exports.useEffect(()=>{if(!e.current||!i)return;const o=e.current.ownerDocument.defaultView??window,c=Array.isArray(t)?t:[t],u=new o.MutationObserver(m=>{for(const h of m)h.type==="attributes"&&h.attributeName&&c.includes(h.attributeName)&&n(h)});return u.observe(e.current,{attributes:!0,attributeFilter:c}),()=>u.disconnect()})}var Qre=50,v6=300;function Jre(e,t){const[n,i]=k.exports.useState(!1),[o,c]=k.exports.useState(null),[u,m]=k.exports.useState(!0),h=k.exports.useRef(null),v=()=>clearTimeout(h.current);Kre(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?Qre:null);const b=k.exports.useCallback(()=>{u&&e(),h.current=setTimeout(()=>{m(!1),i(!0),c("increment")},v6)},[e,u]),x=k.exports.useCallback(()=>{u&&t(),h.current=setTimeout(()=>{m(!1),i(!0),c("decrement")},v6)},[t,u]),w=k.exports.useCallback(()=>{m(!0),i(!1),v()},[]);return k.exports.useEffect(()=>()=>v(),[]),{up:b,down:x,stop:w,isSpinning:n}}var eae=/^[Ee0-9+\-.]$/;function tae(e){return eae.test(e)}function nae(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function rae(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:i=!0,min:o=Number.MIN_SAFE_INTEGER,max:c=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:m,isDisabled:h,isRequired:v,isInvalid:b,pattern:x="[0-9]*(.[0-9]+)?",inputMode:w="decimal",allowMouseWheel:N,id:R,onChange:O,precision:M,name:B,"aria-describedby":I,"aria-label":F,"aria-labelledby":z,onFocus:$,onBlur:q,onInvalid:K,getAriaValueText:le,isValidCharacter:me,format:se,parse:Se,...qe}=e,ae=Li($),ue=Li(q),Ee=Li(K),de=Li(me??tae),ie=Li(le),xe=aJ(e),{update:Ne,increment:he,decrement:Ce}=xe,[Me,Ie]=k.exports.useState(!1),Ye=!(m||h),at=k.exports.useRef(null),gt=k.exports.useRef(null),Ht=k.exports.useRef(null),Ze=k.exports.useRef(null),ct=k.exports.useCallback(Oe=>Oe.split("").filter(de).join(""),[de]),wt=k.exports.useCallback(Oe=>Se?.(Oe)??Oe,[Se]),zt=k.exports.useCallback(Oe=>(se?.(Oe)??Oe).toString(),[se]);k2(()=>{(xe.valueAsNumber>c||xe.valueAsNumber<o)&&Ee?.("rangeOverflow",zt(xe.value),xe.valueAsNumber)},[xe.valueAsNumber,xe.value,zt,Ee]),Sc(()=>{if(!at.current)return;if(at.current.value!=xe.value){const Yt=wt(at.current.value);xe.setValue(ct(Yt))}},[wt,ct]);const Ge=k.exports.useCallback((Oe=u)=>{Ye&&he(Oe)},[he,Ye,u]),Wt=k.exports.useCallback((Oe=u)=>{Ye&&Ce(Oe)},[Ce,Ye,u]),ye=Jre(Ge,Wt);h6(Ht,"disabled",ye.stop,ye.isSpinning),h6(Ze,"disabled",ye.stop,ye.isSpinning);const et=k.exports.useCallback(Oe=>{if(Oe.nativeEvent.isComposing)return;const _n=wt(Oe.currentTarget.value);Ne(ct(_n)),gt.current={start:Oe.currentTarget.selectionStart,end:Oe.currentTarget.selectionEnd}},[Ne,ct,wt]),Nt=k.exports.useCallback(Oe=>{var Yt;ae?.(Oe),gt.current&&(Oe.target.selectionStart=gt.current.start??((Yt=Oe.currentTarget.value)==null?void 0:Yt.length),Oe.currentTarget.selectionEnd=gt.current.end??Oe.currentTarget.selectionStart)},[ae]),lt=k.exports.useCallback(Oe=>{if(Oe.nativeEvent.isComposing)return;nae(Oe,de)||Oe.preventDefault();const Yt=xn(Oe)*u,_n=Oe.key,it={ArrowUp:()=>Ge(Yt),ArrowDown:()=>Wt(Yt),Home:()=>Ne(o),End:()=>Ne(c)}[_n];it&&(Oe.preventDefault(),it(Oe))},[de,u,Ge,Wt,Ne,o,c]),xn=Oe=>{let Yt=1;return(Oe.metaKey||Oe.ctrlKey)&&(Yt=.1),Oe.shiftKey&&(Yt=10),Yt},$n=k.exports.useMemo(()=>{const Oe=ie?.(xe.value);if(Oe!=null)return Oe;const Yt=xe.value.toString();return Yt||void 0},[xe.value,ie]),Lt=k.exports.useCallback(()=>{let Oe=xe.value;Oe!==""&&(xe.valueAsNumber<o&&(Oe=o),xe.valueAsNumber>c&&(Oe=c),xe.cast(Oe))},[xe,c,o]),an=k.exports.useCallback(()=>{Ie(!1),n&&Lt()},[n,Ie,Lt]),On=k.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var Oe;(Oe=at.current)==null||Oe.focus()})},[t]),gn=k.exports.useCallback(Oe=>{Oe.preventDefault(),ye.up(),On()},[On,ye]),He=k.exports.useCallback(Oe=>{Oe.preventDefault(),ye.down(),On()},[On,ye]);j5(()=>at.current,"wheel",Oe=>{var Yt;const je=(((Yt=at.current)==null?void 0:Yt.ownerDocument)??document).activeElement===at.current;if(!N||!je)return;Oe.preventDefault();const it=xn(Oe)*u,_t=Math.sign(Oe.deltaY);_t===-1?Ge(it):_t===1&&Wt(it)},{passive:!1});const Je=k.exports.useCallback((Oe={},Yt=null)=>{const _n=h||i&&xe.isAtMax;return{...Oe,ref:ma(Yt,Ht),role:"button",tabIndex:-1,onPointerDown:iu(Oe.onPointerDown,je=>{_n||gn(je)}),onPointerLeave:iu(Oe.onPointerLeave,ye.stop),onPointerUp:iu(Oe.onPointerUp,ye.stop),disabled:_n,"aria-disabled":MR(_n)}},[xe.isAtMax,i,gn,ye.stop,h]),tn=k.exports.useCallback((Oe={},Yt=null)=>{const _n=h||i&&xe.isAtMin;return{...Oe,ref:ma(Yt,Ze),role:"button",tabIndex:-1,onPointerDown:iu(Oe.onPointerDown,je=>{_n||He(je)}),onPointerLeave:iu(Oe.onPointerLeave,ye.stop),onPointerUp:iu(Oe.onPointerUp,ye.stop),disabled:_n,"aria-disabled":MR(_n)}},[xe.isAtMin,i,He,ye.stop,h]),kt=k.exports.useCallback((Oe={},Yt=null)=>({name:B,inputMode:w,type:"text",pattern:x,"aria-labelledby":z,"aria-label":F,"aria-describedby":I,id:R,disabled:h,...Oe,readOnly:Oe.readOnly??m,"aria-readonly":Oe.readOnly??m,"aria-required":Oe.required??v,required:Oe.required??v,ref:ma(at,Yt),value:zt(xe.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":c,"aria-valuenow":Number.isNaN(xe.valueAsNumber)?void 0:xe.valueAsNumber,"aria-invalid":MR(b??xe.isOutOfRange),"aria-valuetext":$n,autoComplete:"off",autoCorrect:"off",onChange:iu(Oe.onChange,et),onKeyDown:iu(Oe.onKeyDown,lt),onFocus:iu(Oe.onFocus,Nt,()=>Ie(!0)),onBlur:iu(Oe.onBlur,ue,an)}),[B,w,x,z,F,zt,I,R,h,v,m,b,xe.value,xe.valueAsNumber,xe.isOutOfRange,o,c,$n,et,lt,Nt,ue,an]);return{value:zt(xe.value),valueAsNumber:xe.valueAsNumber,isFocused:Me,isDisabled:h,isReadOnly:m,getIncrementButtonProps:Je,getDecrementButtonProps:tn,getInputProps:kt,htmlProps:qe}}var[aae,DC]=zr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[iae,lO]=zr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),W8=Xe(function(t,n){const i=Ro("NumberInput",t),o=hr(t),c=Dk(o),{htmlProps:u,...m}=rae(c),h=k.exports.useMemo(()=>m,[m]);return Pe.createElement(iae,{value:h},Pe.createElement(aae,{value:i},Pe.createElement($e.div,{...u,ref:n,className:H8("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});W8.displayName="NumberInput";var G8=Xe(function(t,n){const i=DC();return Pe.createElement($e.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});G8.displayName="NumberInputStepper";var Y8=Xe(function(t,n){const{getInputProps:i}=lO(),o=i(t,n),c=DC();return Pe.createElement($e.input,{...o,className:H8("chakra-numberinput__field",t.className),__css:{width:"100%",...c.field}})});Y8.displayName="NumberInputField";var q8=$e("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),K8=Xe(function(t,n){const i=DC(),{getDecrementButtonProps:o}=lO(),c=o(t,n);return _(q8,{...c,__css:i.stepper,children:t.children??_(Xre,{},void 0,!1,{fileName:nd,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:nd,lineNumber:509,columnNumber:26},this)});K8.displayName="NumberDecrementStepper";var X8=Xe(function(t,n){const{getIncrementButtonProps:i}=lO(),o=i(t,n),c=DC();return _(q8,{...o,__css:c.stepper,children:t.children??_(Zre,{},void 0,!1,{fileName:nd,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:nd,lineNumber:519,columnNumber:26},this)});X8.displayName="NumberIncrementStepper";var F2="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/popover/dist/index.esm.js",nb=(...e)=>e.filter(Boolean).join(" ");function oae(e,...t){return sae(e)?e(...t):e}var sae=e=>typeof e=="function";function ou(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function lae(...e){return function(n){e.forEach(i=>{i?.(n)})}}var[uae,am]=zr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[cae,rb]=zr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),Lh={click:"click",hover:"hover"};function fae(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:i,id:o,returnFocusOnClose:c=!0,autoFocus:u=!0,arrowSize:m,arrowShadowColor:h,trigger:v=Lh.click,openDelay:b=200,closeDelay:x=200,isLazy:w,lazyBehavior:N="unmount",computePositionOnMount:R,...O}=e,{isOpen:M,onClose:B,onOpen:I,onToggle:F}=Q7(e),z=k.exports.useRef(null),$=k.exports.useRef(null),q=k.exports.useRef(null),K=k.exports.useRef(!1),le=k.exports.useRef(!1);M&&(le.current=!0);const[me,se]=k.exports.useState(!1),[Se,qe]=k.exports.useState(!1),ae=k.exports.useId(),ue=o??ae,[Ee,de,ie,xe]=["popover-trigger","popover-content","popover-header","popover-body"].map(et=>`${et}-${ue}`),{referenceRef:Ne,getArrowProps:he,getPopperProps:Ce,getArrowInnerProps:Me,forceUpdate:Ie}=Z7({...O,enabled:M||!!R}),Ye=lJ({isOpen:M,ref:q});mJ({enabled:M,ref:$}),dJ(q,{focusRef:$,visible:M,shouldFocus:c&&v===Lh.click}),vJ(q,{focusRef:i,visible:M,shouldFocus:u&&v===Lh.click});const at=Tte({wasSelected:le.current,enabled:w,mode:N,isSelected:Ye.present}),gt=k.exports.useCallback((et={},Nt=null)=>{const lt={...et,style:{...et.style,transformOrigin:pa.transformOrigin.varRef,[pa.arrowSize.var]:m?`${m}px`:void 0,[pa.arrowShadowColor.var]:h},ref:ma(q,Nt),children:at?et.children:null,id:de,tabIndex:-1,role:"dialog",onKeyDown:ou(et.onKeyDown,xn=>{n&&xn.key==="Escape"&&B()}),onBlur:ou(et.onBlur,xn=>{const $n=g6(xn),Lt=IR(q.current,$n),an=IR($.current,$n);M&&t&&(!Lt&&!an)&&B()}),"aria-labelledby":me?ie:void 0,"aria-describedby":Se?xe:void 0};return v===Lh.hover&&(lt.role="tooltip",lt.onMouseEnter=ou(et.onMouseEnter,()=>{K.current=!0}),lt.onMouseLeave=ou(et.onMouseLeave,xn=>{xn.nativeEvent.relatedTarget!==null&&(K.current=!1,setTimeout(B,x))})),lt},[at,de,me,ie,Se,xe,v,n,B,M,t,x,h,m]),Ht=k.exports.useCallback((et={},Nt=null)=>Ce({...et,style:{visibility:M?"visible":"hidden",...et.style}},Nt),[M,Ce]),Ze=k.exports.useCallback((et,Nt=null)=>({...et,ref:ma(Nt,z,Ne)}),[z,Ne]),ct=k.exports.useRef(),wt=k.exports.useRef(),zt=k.exports.useCallback(et=>{z.current==null&&Ne(et)},[Ne]),Ge=k.exports.useCallback((et={},Nt=null)=>{const lt={...et,ref:ma($,Nt,zt),id:Ee,"aria-haspopup":"dialog","aria-expanded":M,"aria-controls":de};return v===Lh.click&&(lt.onClick=ou(et.onClick,F)),v===Lh.hover&&(lt.onFocus=ou(et.onFocus,()=>{ct.current===void 0&&I()}),lt.onBlur=ou(et.onBlur,xn=>{const $n=g6(xn),Lt=!IR(q.current,$n);M&&t&&Lt&&B()}),lt.onKeyDown=ou(et.onKeyDown,xn=>{xn.key==="Escape"&&B()}),lt.onMouseEnter=ou(et.onMouseEnter,()=>{K.current=!0,ct.current=window.setTimeout(I,b)}),lt.onMouseLeave=ou(et.onMouseLeave,()=>{K.current=!1,ct.current&&(clearTimeout(ct.current),ct.current=void 0),wt.current=window.setTimeout(()=>{K.current===!1&&B()},x)})),lt},[Ee,M,de,v,zt,F,I,t,B,b,x]);k.exports.useEffect(()=>()=>{ct.current&&clearTimeout(ct.current),wt.current&&clearTimeout(wt.current)},[]);const Wt=k.exports.useCallback((et={},Nt=null)=>({...et,id:ie,ref:ma(Nt,lt=>{se(!!lt)})}),[ie]),ye=k.exports.useCallback((et={},Nt=null)=>({...et,id:xe,ref:ma(Nt,lt=>{qe(!!lt)})}),[xe]);return{forceUpdate:Ie,isOpen:M,onAnimationComplete:Ye.onComplete,onClose:B,getAnchorProps:Ze,getArrowProps:he,getArrowInnerProps:Me,getPopoverPositionerProps:Ht,getPopoverProps:gt,getTriggerProps:Ge,getHeaderProps:Wt,getBodyProps:ye}}function IR(e,t){return e===t||e?.contains(t)}function g6(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function Z8(e){const t=Ro("Popover",e),{children:n,...i}=hr(e),o=uC(),c=fae({...i,direction:o.direction});return _(uae,{value:c,children:_(cae,{value:t,children:oae(n,{isOpen:c.isOpen,onClose:c.onClose,forceUpdate:c.forceUpdate})},void 0,!1,{fileName:F2,lineNumber:325,columnNumber:22},this)},void 0,!1,{fileName:F2,lineNumber:323,columnNumber:26},this)}Z8.displayName="Popover";function Q8(e){const{bg:t,bgColor:n,backgroundColor:i}=e,{getArrowProps:o,getArrowInnerProps:c}=am(),u=rb(),m=t??n??i;return Pe.createElement($e.div,{...o(),className:"chakra-popover__arrow-positioner"},Pe.createElement($e.div,{className:nb("chakra-popover__arrow",e.className),...c(e),__css:{...u.arrow,"--popper-arrow-bg":m?`colors.${m}, ${m}`:void 0}}))}Q8.displayName="PopoverArrow";var dae=Xe(function(t,n){const{getBodyProps:i}=am(),o=rb();return Pe.createElement($e.div,{...i(t,n),className:nb("chakra-popover__body",t.className),__css:o.body})});dae.displayName="PopoverBody";var pae=Xe(function(t,n){const{onClose:i}=am(),o=rb();return _(TC,{size:"sm",onClick:i,className:nb("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t},void 0,!1,{fileName:F2,lineNumber:384,columnNumber:26},this)});pae.displayName="PopoverCloseButton";function mae(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var hae={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},vae=js($e.section),uO=Xe(function(t,n){const{isOpen:i}=am();return Pe.createElement(vae,{ref:n,variants:mae(t.variants),...t,initial:!1,animate:i?"enter":"exit"})});uO.defaultProps={variants:hae};uO.displayName="PopoverTransition";var J8=Xe(function(t,n){const{rootProps:i,...o}=t,{getPopoverProps:c,getPopoverPositionerProps:u,onAnimationComplete:m}=am(),h=rb(),v={position:"relative",display:"flex",flexDirection:"column",...h.content};return Pe.createElement($e.div,{...u(i),__css:h.popper,className:"chakra-popover__popper"},_(uO,{...c(o,n),onAnimationComplete:lae(m,o.onAnimationComplete),className:nb("chakra-popover__content",t.className),__css:v},void 0,!1,{fileName:F2,lineNumber:470,columnNumber:22},this))});J8.displayName="PopoverContent";var gae=Xe(function(t,n){const{getHeaderProps:i}=am(),o=rb();return Pe.createElement($e.header,{...i(t,n),className:nb("chakra-popover__header",t.className),__css:o.header})});gae.displayName="PopoverHeader";function eF(e){const t=k.exports.Children.only(e.children),{getTriggerProps:n}=am();return k.exports.cloneElement(t,n(t.props,t.ref))}eF.displayName="PopoverTrigger";var y6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function yae(e,t,n){return(e-t)*100/(n-t)}jy({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});jy({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var bae=jy({"0%":{left:"-40%"},"100%":{left:"100%"}}),Sae=jy({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function xae(e){const{value:t=0,min:n,max:i,valueText:o,getValueText:c,isIndeterminate:u}=e,m=yae(t,n,i);return{bind:{"data-indeterminate":u?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":u?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof c=="function"?c(t,m):o})(),role:"progressbar"},percent:m,value:t}}var[Cae,wae]=zr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Nae=e=>{const{min:t,max:n,value:i,isIndeterminate:o,...c}=e,u=xae({value:i,min:t,max:n,isIndeterminate:o}),m=wae(),h={height:"100%",...m.filledTrack};return Pe.createElement($e.div,{style:{width:`${u.percent}%`,...c.style},...u.bind,...c,__css:h})},tF=e=>{var t;const{value:n,min:i=0,max:o=100,hasStripe:c,isAnimated:u,children:m,borderRadius:h,isIndeterminate:v,"aria-label":b,"aria-labelledby":x,...w}=hr(e),N=Ro("Progress",e),R=h??((t=N.track)==null?void 0:t.borderRadius),O={animation:`${Sae} 1s linear infinite`},I={...!v&&c&&u&&O,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${bae} 1s ease infinite normal none running`}},F={overflow:"hidden",position:"relative",...N.track};return Pe.createElement($e.div,{borderRadius:R,__css:F,...w},_(Cae,{value:N,children:[_(Nae,{"aria-label":b,"aria-labelledby":x,min:i,max:o,value:n,isIndeterminate:v,css:I,borderRadius:R},void 0,!1,{fileName:y6,lineNumber:232,columnNumber:22},globalThis),m]},void 0,!0,{fileName:y6,lineNumber:230,columnNumber:22},globalThis))};tF.displayName="Progress";var Eae=$e("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Eae.displayName="CircularProgressLabel";var Xp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",_ae=(...e)=>e.filter(Boolean).join(" "),Tae=e=>e?"":void 0;function Rae(e,t){const n={},i={};for(const[o,c]of Object.entries(e))t.includes(o)?n[o]=c:i[o]=c;return[n,i]}var nF=Xe(function(t,n){const{children:i,placeholder:o,className:c,...u}=t;return Pe.createElement($e.select,{...u,ref:n,className:_ae("chakra-select",c)},o&&_("option",{value:"",children:o},void 0,!1,{fileName:Xp,lineNumber:42,columnNumber:37},this),i)});nF.displayName="SelectField";var rF=Xe((e,t)=>{var n;const i=Ro("Select",e),{rootProps:o,placeholder:c,icon:u,color:m,height:h,h:v,minH:b,minHeight:x,iconColor:w,iconSize:N,...R}=hr(e),[O,M]=Rae(R,oH),B=Ok(M),I={width:"100%",height:"fit-content",position:"relative",color:m},F={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(n=i.field)==null?void 0:n._focus}};return Pe.createElement($e.div,{className:"chakra-select__wrapper",__css:I,...O,...o},_(nF,{ref:t,height:v??h,minH:b??x,placeholder:c,...B,__css:F,children:e.children},void 0,!1,{fileName:Xp,lineNumber:86,columnNumber:22},globalThis),_(aF,{"data-disabled":Tae(B.disabled),...(w||m)&&{color:w||m},__css:i.icon,...N&&{fontSize:N},children:u},void 0,!1,{fileName:Xp,lineNumber:93,columnNumber:39},globalThis))});rF.displayName="Select";var Aae=e=>_("svg",{viewBox:"0 0 24 24",...e,children:_("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:Xp,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:Xp,lineNumber:101,columnNumber:46},globalThis),kae=$e("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),aF=e=>{const{children:t=_(Aae,{},void 0,!1,{fileName:Xp,lineNumber:120,columnNumber:38},globalThis),...n}=e,i=k.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return _(kae,{...n,className:"chakra-select__icon-wrapper",children:k.exports.isValidElement(t)?i:null},void 0,!1,{fileName:Xp,lineNumber:132,columnNumber:26},globalThis)};aF.displayName="SelectIcon";var Oae="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",Dae=(...e)=>e.filter(Boolean).join(" "),b6=e=>e?"":void 0,wc=Xe(function(t,n){const i=Ro("Switch",t),{spacing:o="0.5rem",children:c,...u}=hr(t),{state:m,getInputProps:h,getCheckboxProps:v,getRootProps:b,getLabelProps:x}=x7(u),w=k.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),N=k.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),R=k.exports.useMemo(()=>({userSelect:"none",marginStart:o,...i.label}),[o,i.label]);return Pe.createElement($e.label,{...b(),className:Dae("chakra-switch",t.className),__css:w},_("input",{className:"chakra-switch__input",...h({},n)},void 0,!1,{fileName:Oae,lineNumber:53,columnNumber:22},this),Pe.createElement($e.span,{...v(),className:"chakra-switch__track",__css:N},Pe.createElement($e.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":b6(m.isChecked),"data-hover":b6(m.isHovered)})),c&&Pe.createElement($e.span,{className:"chakra-switch__label",...x(),__css:R},c))});wc.displayName="Switch";var Pae=(...e)=>e.filter(Boolean).join(" ");function Mae(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}var Iae=["h","minH","height","minHeight"],iF=Xe((e,t)=>{const n=ao("Textarea",e),{className:i,rows:o,...c}=hr(e),u=Ok(c),m=o?Mae(n,Iae):n;return Pe.createElement($e.textarea,{ref:t,rows:o,...u,className:Pae("chakra-textarea",i),__css:m})});iF.displayName="Textarea";function dr(e,t={}){let n=!1;function i(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...b){i();for(const x of b)t[x]=h(x);return dr(e,t)}function c(...b){for(const x of b)x in t||(t[x]=h(x));return dr(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([x,w])=>[x,w.selector]))}function m(){return Object.fromEntries(Object.entries(t).map(([x,w])=>[x,w.className]))}function h(b){const N=`chakra-${(["container","root"].includes(b??"")?[e]:[e,b]).filter(Boolean).join("__")}`;return{className:N,selector:`.${N}`,toString:()=>b}}return{parts:o,toPart:h,extend:c,selectors:u,classnames:m,get keys(){return Object.keys(t)},__type:{}}}var Lae=dr("accordion").parts("root","container","button","panel").extend("icon"),Fae=dr("alert").parts("title","description","container").extend("icon","spinner"),zae=dr("avatar").parts("label","badge","container").extend("excessLabel","group"),Bae=dr("breadcrumb").parts("link","item","container").extend("separator");dr("button").parts();var Uae=dr("checkbox").parts("control","icon","container").extend("label");dr("progress").parts("track","filledTrack").extend("label");var $ae=dr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),jae=dr("editable").parts("preview","input","textarea"),Vae=dr("form").parts("container","requiredIndicator","helperText"),Hae=dr("formError").parts("text","icon"),Wae=dr("input").parts("addon","field","element"),Gae=dr("list").parts("container","item","icon"),Yae=dr("menu").parts("button","list","item").extend("groupTitle","command","divider"),qae=dr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Kae=dr("numberinput").parts("root","field","stepperGroup","stepper");dr("pininput").parts("field");var Xae=dr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Zae=dr("progress").parts("label","filledTrack","track"),Qae=dr("radio").parts("container","control","label"),Jae=dr("select").parts("field","icon"),eie=dr("slider").parts("container","track","thumb","filledTrack","mark"),tie=dr("stat").parts("container","label","helpText","number","icon"),nie=dr("switch").parts("container","track","thumb"),rie=dr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),aie=dr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),iie=dr("tag").parts("container","label","closeButton");function mi(e,t){oie(e)&&(e="100%");var n=sie(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ox(e){return Math.min(1,Math.max(0,e))}function oie(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sie(e){return typeof e=="string"&&e.indexOf("%")!==-1}function oF(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function jp(e){return e.length===1?"0"+e:String(e)}function lie(e,t,n){return{r:mi(e,255)*255,g:mi(t,255)*255,b:mi(n,255)*255}}function S6(e,t,n){e=mi(e,255),t=mi(t,255),n=mi(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),c=0,u=0,m=(i+o)/2;if(i===o)u=0,c=0;else{var h=i-o;switch(u=m>.5?h/(2-i-o):h/(i+o),i){case e:c=(t-n)/h+(t<n?6:0);break;case t:c=(n-e)/h+2;break;case n:c=(e-t)/h+4;break}c/=6}return{h:c,s:u,l:m}}function LR(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uie(e,t,n){var i,o,c;if(e=mi(e,360),t=mi(t,100),n=mi(n,100),t===0)o=n,c=n,i=n;else{var u=n<.5?n*(1+t):n+t-n*t,m=2*n-u;i=LR(m,u,e+1/3),o=LR(m,u,e),c=LR(m,u,e-1/3)}return{r:i*255,g:o*255,b:c*255}}function x6(e,t,n){e=mi(e,255),t=mi(t,255),n=mi(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),c=0,u=i,m=i-o,h=i===0?0:m/i;if(i===o)c=0;else{switch(i){case e:c=(t-n)/m+(t<n?6:0);break;case t:c=(n-e)/m+2;break;case n:c=(e-t)/m+4;break}c/=6}return{h:c,s:h,v:u}}function cie(e,t,n){e=mi(e,360)*6,t=mi(t,100),n=mi(n,100);var i=Math.floor(e),o=e-i,c=n*(1-t),u=n*(1-o*t),m=n*(1-(1-o)*t),h=i%6,v=[n,u,c,c,m,n][h],b=[m,n,n,u,c,c][h],x=[c,c,m,n,n,u][h];return{r:v*255,g:b*255,b:x*255}}function C6(e,t,n,i){var o=[jp(Math.round(e).toString(16)),jp(Math.round(t).toString(16)),jp(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function fie(e,t,n,i,o){var c=[jp(Math.round(e).toString(16)),jp(Math.round(t).toString(16)),jp(Math.round(n).toString(16)),jp(die(i))];return o&&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 die(e){return Math.round(parseFloat(e)*255).toString(16)}function w6(e){return Jo(e)/255}function Jo(e){return parseInt(e,16)}function pie(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var aA={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 mie(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,c=null,u=!1,m=!1;return typeof e=="string"&&(e=gie(e)),typeof e=="object"&&(cc(e.r)&&cc(e.g)&&cc(e.b)?(t=lie(e.r,e.g,e.b),u=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):cc(e.h)&&cc(e.s)&&cc(e.v)?(i=Dx(e.s),o=Dx(e.v),t=cie(e.h,i,o),u=!0,m="hsv"):cc(e.h)&&cc(e.s)&&cc(e.l)&&(i=Dx(e.s),c=Dx(e.l),t=uie(e.h,i,c),u=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=oF(n),{ok:u,format:e.format||m,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var hie="[-\\+]?\\d+%?",vie="[-\\+]?\\d*\\.\\d+%?",Wf="(?:".concat(vie,")|(?:").concat(hie,")"),FR="[\\s|\\(]+(".concat(Wf,")[,|\\s]+(").concat(Wf,")[,|\\s]+(").concat(Wf,")\\s*\\)?"),zR="[\\s|\\(]+(".concat(Wf,")[,|\\s]+(").concat(Wf,")[,|\\s]+(").concat(Wf,")[,|\\s]+(").concat(Wf,")\\s*\\)?"),_l={CSS_UNIT:new RegExp(Wf),rgb:new RegExp("rgb"+FR),rgba:new RegExp("rgba"+zR),hsl:new RegExp("hsl"+FR),hsla:new RegExp("hsla"+zR),hsv:new RegExp("hsv"+FR),hsva:new RegExp("hsva"+zR),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 gie(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(aA[e])e=aA[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_l.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_l.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_l.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_l.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_l.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_l.hex8.exec(e),n?{r:Jo(n[1]),g:Jo(n[2]),b:Jo(n[3]),a:w6(n[4]),format:t?"name":"hex8"}:(n=_l.hex6.exec(e),n?{r:Jo(n[1]),g:Jo(n[2]),b:Jo(n[3]),format:t?"name":"hex"}:(n=_l.hex4.exec(e),n?{r:Jo(n[1]+n[1]),g:Jo(n[2]+n[2]),b:Jo(n[3]+n[3]),a:w6(n[4]+n[4]),format:t?"name":"hex8"}:(n=_l.hex3.exec(e),n?{r:Jo(n[1]+n[1]),g:Jo(n[2]+n[2]),b:Jo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function cc(e){return Boolean(_l.CSS_UNIT.exec(String(e)))}var ab=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=pie(t)),this.originalInput=t;var o=mie(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,i,o,c=t.r/255,u=t.g/255,m=t.b/255;return c<=.03928?n=c/12.92:n=Math.pow((c+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),m<=.03928?o=m/12.92:o=Math.pow((m+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=oF(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=x6(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=x6(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=S6(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=S6(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),C6(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),fie(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(mi(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(mi(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+C6(this.r,this.g,this.b,!1),n=0,i=Object.entries(aA);n<i.length;n++){var o=i[n],c=o[0],u=o[1];if(t===u)return c}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var i=!1,o=this.a<1&&this.a>=0,c=!n&&o&&(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 n=this.toHsl();return n.l+=t/100,n.l=Ox(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ox(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ox(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ox(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),c=n/100,u={r:(o.r-i.r)*c+i.r,g:(o.g-i.g)*c+i.g,b:(o.b-i.b)*c+i.b,a:(o.a-i.a)*c+i.a};return new e(u)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,c=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%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 n=this.toHsv(),i=n.h,o=n.s,c=n.v,u=[],m=1/t;t--;)u.push(new e({h:i,s:o,v:c})),c=(c+m)%1;return u},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,o=[this],c=360/t,u=1;u<t;u++)o.push(new e({h:(i+u*c)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function sF(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(sF(e));return e.count=t,n}var i=yie(e.hue,e.seed),o=bie(i,e),c=Sie(i,o,e),u={h:i,s:o,v:c};return e.alpha!==void 0&&(u.a=e.alpha),new ab(u)}function yie(e,t){var n=Cie(e),i=z2(n,t);return i<0&&(i=360+i),i}function bie(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return z2([0,100],t.seed);var n=lF(e).saturationRange,i=n[0],o=n[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=o-10;break;case"light":o=55;break}return z2([i,o],t.seed)}function Sie(e,t,n){var i=xie(e,t),o=100;switch(n.luminosity){case"dark":o=i+20;break;case"light":i=(o+i)/2;break;case"random":i=0,o=100;break}return z2([i,o],n.seed)}function xie(e,t){for(var n=lF(e).lowerBounds,i=0;i<n.length-1;i++){var o=n[i][0],c=n[i][1],u=n[i+1][0],m=n[i+1][1];if(t>=o&&t<=u){var h=(m-c)/(u-o),v=c-h*o;return h*t+v}}return 0}function Cie(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=cF.find(function(u){return u.name===e});if(n){var i=uF(n);if(i.hueRange)return i.hueRange}var o=new ab(e);if(o.isValid){var c=o.toHsv().h;return[c,c]}}return[0,360]}function lF(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=cF;t<n.length;t++){var i=n[t],o=uF(i);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function z2(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(i+o*(n-i))}function uF(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],i=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[i,o]}}var cF=[{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 wie(e,t,n,i,o){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:o;return e===o?n:e}var Nie=e=>Object.keys(e).length===0,Ma=(e,t,n)=>{const i=wie(e,`colors.${t}`,t),{isValid:o}=new ab(i);return o?i:n},Eie=e=>t=>{const n=Ma(t,e);return new ab(n).isDark()?"dark":"light"},_ie=e=>t=>Eie(e)(t)==="dark",dv=(e,t)=>n=>{const i=Ma(n,e);return new ab(i).setAlpha(t).toRgbString()};function N6(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 Tie(e){const t=sF().toHexString();return!e||Nie(e)?t:e.string&&e.colors?Aie(e.string,e.colors):e.string&&!e.colors?Rie(e.string):e.colors&&!e.string?kie(e.colors):t}function Rie(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 n="#";for(let i=0;i<3;i+=1)n+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return n}function Aie(e,t){let n=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)n=e.charCodeAt(i)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function kie(e){return e[Math.floor(Math.random()*e.length)]}function Be(e,t){return n=>n.colorMode==="dark"?t:e}function cO(e){const{orientation:t,vertical:n,horizontal:i}=e;return t?t==="vertical"?n:i:{}}function Oie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function fF(e){return Oie(e)&&e.reference?e.reference:String(e)}var PC=(e,...t)=>t.map(fF).join(` ${e} `).replace(/calc/g,""),E6=(...e)=>`calc(${PC("+",...e)})`,_6=(...e)=>`calc(${PC("-",...e)})`,iA=(...e)=>`calc(${PC("*",...e)})`,T6=(...e)=>`calc(${PC("/",...e)})`,R6=e=>{const t=fF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:iA(t,-1)},gc=Object.assign(e=>({add:(...t)=>gc(E6(e,...t)),subtract:(...t)=>gc(_6(e,...t)),multiply:(...t)=>gc(iA(e,...t)),divide:(...t)=>gc(T6(e,...t)),negate:()=>gc(R6(e)),toString:()=>e.toString()}),{add:E6,subtract:_6,multiply:iA,divide:T6,negate:R6});function Die(e){return!Number.isInteger(parseFloat(e.toString()))}function Pie(e,t="-"){return e.replace(/\s+/g,t)}function dF(e){const t=Pie(e.toString());return t.includes("\\.")?e:Die(e)?t.replace(".","\\."):e}function Mie(e,t=""){return[t,dF(e)].filter(Boolean).join("-")}function Iie(e,t){return`var(${dF(e)}${t?`, ${t}`:""})`}function Lie(e,t=""){return`--${Mie(e,t)}`}function Ao(e,t){const n=Lie(e,t?.prefix);return{variable:n,reference:Iie(n,Fie(t?.fallback))}}function Fie(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:zie,defineMultiStyleConfig:Bie}=Pr(Lae.keys),Uie={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},$ie={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},jie={pt:"2",px:"4",pb:"5"},Vie={fontSize:"1.25em"},Hie=zie({container:Uie,button:$ie,panel:jie,icon:Vie}),Wie=Bie({baseStyle:Hie}),{definePartsStyle:ib,defineMultiStyleConfig:Gie}=Pr(Fae.keys),Ec=ad("alert-fg"),ob=ad("alert-bg"),Yie=ib({container:{bg:ob.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ec.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ec.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function fO(e){const{theme:t,colorScheme:n}=e,i=Ma(t,`${n}.100`,n),o=dv(`${n}.200`,.16)(t);return Be(i,o)(e)}var qie=ib(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[ob.variable]:fO(e),[Ec.variable]:`colors.${n}`}}}),Kie=ib(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[ob.variable]:fO(e),[Ec.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ec.reference}}}),Xie=ib(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[ob.variable]:fO(e),[Ec.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ec.reference}}}),Zie=ib(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e),i=Be("white","gray.900")(e);return{container:{[ob.variable]:`colors.${n}`,[Ec.variable]:`colors.${i}`,color:Ec.reference}}}),Qie={subtle:qie,"left-accent":Kie,"top-accent":Xie,solid:Zie},Jie=Gie({baseStyle:Yie,variants:Qie,defaultProps:{variant:"subtle",colorScheme:"blue"}}),pF={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"},eoe={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"},toe={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},noe={...pF,...eoe,container:toe},mF=noe,roe=e=>typeof e=="function";function ra(e,...t){return roe(e)?e(...t):e}var{definePartsStyle:hF,defineMultiStyleConfig:aoe}=Pr(zae.keys),ioe=e=>({borderRadius:"full",border:"0.2em solid",borderColor:Be("white","gray.800")(e)}),ooe=e=>({bg:Be("gray.200","whiteAlpha.400")(e)}),soe=e=>{const{name:t,theme:n}=e,i=t?Tie({string:t}):"gray.400",o=_ie(i)(n);let c="white";o||(c="gray.800");const u=Be("white","gray.800")(e);return{bg:i,color:c,borderColor:u,verticalAlign:"top"}},loe=hF(e=>({badge:ra(ioe,e),excessLabel:ra(ooe,e),container:ra(soe,e)}));function Of(e){const t=e!=="100%"?mF[e]:void 0;return hF({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 uoe={"2xs":Of(4),xs:Of(6),sm:Of(8),md:Of(12),lg:Of(16),xl:Of(24),"2xl":Of(32),full:Of("100%")},coe=aoe({baseStyle:loe,sizes:uoe,defaultProps:{size:"md"}}),foe={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},doe=e=>{const{colorScheme:t,theme:n}=e,i=dv(`${t}.500`,.6)(n);return{bg:Be(`${t}.500`,i)(e),color:Be("white","whiteAlpha.800")(e)}},poe=e=>{const{colorScheme:t,theme:n}=e,i=dv(`${t}.200`,.16)(n);return{bg:Be(`${t}.100`,i)(e),color:Be(`${t}.800`,`${t}.200`)(e)}},moe=e=>{const{colorScheme:t,theme:n}=e,i=dv(`${t}.200`,.8)(n),o=Ma(n,`${t}.500`),c=Be(o,i)(e);return{color:c,boxShadow:`inset 0 0 0px 1px ${c}`}},hoe={solid:doe,subtle:poe,outline:moe},sy={baseStyle:foe,variants:hoe,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:voe,definePartsStyle:goe}=Pr(Bae.keys),yoe={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},boe=goe({link:yoe}),Soe=voe({baseStyle:boe}),xoe={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"}}},vF=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Be("inherit","whiteAlpha.900")(e),_hover:{bg:Be("gray.100","whiteAlpha.200")(e)},_active:{bg:Be("gray.200","whiteAlpha.300")(e)}};const i=dv(`${t}.200`,.12)(n),o=dv(`${t}.200`,.24)(n);return{color:Be(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Be(`${t}.50`,i)(e)},_active:{bg:Be(`${t}.100`,o)(e)}}},Coe=e=>{const{colorScheme:t}=e,n=Be("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...ra(vF,e)}},woe={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Noe=e=>{const{colorScheme:t}=e;if(t==="gray"){const m=Be("gray.100","whiteAlpha.200")(e);return{bg:m,_hover:{bg:Be("gray.200","whiteAlpha.300")(e),_disabled:{bg:m}},_active:{bg:Be("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:i="white",hoverBg:o=`${t}.600`,activeBg:c=`${t}.700`}=woe[t]??{},u=Be(n,`${t}.200`)(e);return{bg:u,color:Be(i,"gray.800")(e),_hover:{bg:Be(o,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:Be(c,`${t}.400`)(e)}}},Eoe=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Be(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Be(`${t}.700`,`${t}.500`)(e)}}},_oe={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Toe={ghost:vF,outline:Coe,solid:Noe,link:Eoe,unstyled:_oe},Roe={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"}},Aoe={baseStyle:xoe,variants:Toe,sizes:Roe,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:e2,defineMultiStyleConfig:koe}=Pr(Uae.keys),ly=ad("checkbox-size"),Ooe=e=>{const{colorScheme:t}=e;return{w:ly.reference,h:ly.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Be(`${t}.500`,`${t}.200`)(e),borderColor:Be(`${t}.500`,`${t}.200`)(e),color:Be("white","gray.900")(e),_hover:{bg:Be(`${t}.600`,`${t}.300`)(e),borderColor:Be(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Be("gray.200","transparent")(e),bg:Be("gray.200","whiteAlpha.300")(e),color:Be("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Be(`${t}.500`,`${t}.200`)(e),borderColor:Be(`${t}.500`,`${t}.200`)(e),color:Be("white","gray.900")(e)},_disabled:{bg:Be("gray.100","whiteAlpha.100")(e),borderColor:Be("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Be("red.500","red.300")(e)}}},Doe={_disabled:{cursor:"not-allowed"}},Poe={userSelect:"none",_disabled:{opacity:.4}},Moe={transitionProperty:"transform",transitionDuration:"normal"},Ioe=e2(e=>({icon:Moe,container:Doe,control:ra(Ooe,e),label:Poe})),Loe={sm:e2({control:{[ly.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:e2({control:{[ly.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:e2({control:{[ly.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},B2=koe({baseStyle:Ioe,sizes:Loe,defaultProps:{size:"md",colorScheme:"blue"}}),uy=Ao("close-button-size"),Foe=e=>{const t=Be("blackAlpha.100","whiteAlpha.100")(e),n=Be("blackAlpha.200","whiteAlpha.200")(e);return{w:[uy.reference],h:[uy.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},zoe={lg:{[uy.variable]:"sizes.10",fontSize:"md"},md:{[uy.variable]:"sizes.8",fontSize:"xs"},sm:{[uy.variable]:"sizes.6",fontSize:"2xs"}},Boe={baseStyle:Foe,sizes:zoe,defaultProps:{size:"md"}},{variants:Uoe,defaultProps:$oe}=sy,joe={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Voe={baseStyle:joe,variants:Uoe,defaultProps:$oe},Hoe={w:"100%",mx:"auto",maxW:"prose",px:"4"},Woe={baseStyle:Hoe},Goe={opacity:.6,borderColor:"inherit"},Yoe={borderStyle:"solid"},qoe={borderStyle:"dashed"},Koe={solid:Yoe,dashed:qoe},Xoe={baseStyle:Goe,variants:Koe,defaultProps:{variant:"solid"}},{definePartsStyle:oA,defineMultiStyleConfig:Zoe}=Pr($ae.keys);function Fh(e){return oA(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Qoe={bg:"blackAlpha.600",zIndex:"overlay"},Joe={display:"flex",zIndex:"modal",justifyContent:"center"},ese=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:Be("white","gray.700")(e),color:"inherit",boxShadow:Be("lg","dark-lg")(e)}},tse={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},nse={position:"absolute",top:"2",insetEnd:"3"},rse={px:"6",py:"2",flex:"1",overflow:"auto"},ase={px:"6",py:"4"},ise=oA(e=>({overlay:Qoe,dialogContainer:Joe,dialog:ra(ese,e),header:tse,closeButton:nse,body:rse,footer:ase})),ose={xs:Fh("xs"),sm:Fh("md"),md:Fh("lg"),lg:Fh("2xl"),xl:Fh("4xl"),full:Fh("full")},sse=Zoe({baseStyle:ise,sizes:ose,defaultProps:{size:"xs"}}),{definePartsStyle:lse,defineMultiStyleConfig:use}=Pr(jae.keys),cse={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},fse={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},dse={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},pse=lse({preview:cse,input:fse,textarea:dse}),mse=use({baseStyle:pse}),{definePartsStyle:hse,defineMultiStyleConfig:vse}=Pr(Vae.keys),gse=e=>({marginStart:"1",color:Be("red.500","red.300")(e)}),yse=e=>({mt:"2",color:Be("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),bse=hse(e=>({container:{width:"100%",position:"relative"},requiredIndicator:ra(gse,e),helperText:ra(yse,e)})),Sse=vse({baseStyle:bse}),{definePartsStyle:xse,defineMultiStyleConfig:Cse}=Pr(Hae.keys),wse=e=>({color:Be("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Nse=e=>({marginEnd:"0.5em",color:Be("red.500","red.300")(e)}),Ese=xse(e=>({text:ra(wse,e),icon:ra(Nse,e)})),_se=Cse({baseStyle:Ese}),Tse={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Rse={baseStyle:Tse},Ase={fontFamily:"heading",fontWeight:"bold"},kse={"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}},Ose={baseStyle:Ase,sizes:kse,defaultProps:{size:"xl"}},{definePartsStyle:yc,defineMultiStyleConfig:Dse}=Pr(Wae.keys),Pse=yc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Df={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"}},Mse={lg:yc({field:Df.lg,addon:Df.lg}),md:yc({field:Df.md,addon:Df.md}),sm:yc({field:Df.sm,addon:Df.sm}),xs:yc({field:Df.xs,addon:Df.xs})};function dO(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Be("blue.500","blue.300")(e),errorBorderColor:n||Be("red.500","red.300")(e)}}var Ise=yc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dO(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Be("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ma(t,i),boxShadow:`0 0 0 1px ${Ma(t,i)}`},_focusVisible:{zIndex:1,borderColor:Ma(t,n),boxShadow:`0 0 0 1px ${Ma(t,n)}`}},addon:{border:"1px solid",borderColor:Be("inherit","whiteAlpha.50")(e),bg:Be("gray.100","whiteAlpha.300")(e)}}}),Lse=yc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dO(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Be("gray.100","whiteAlpha.50")(e),_hover:{bg:Be("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ma(t,i)},_focusVisible:{bg:"transparent",borderColor:Ma(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Be("gray.100","whiteAlpha.50")(e)}}}),Fse=yc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dO(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ma(t,i),boxShadow:`0px 1px 0px 0px ${Ma(t,i)}`},_focusVisible:{borderColor:Ma(t,n),boxShadow:`0px 1px 0px 0px ${Ma(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),zse=yc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Bse={outline:Ise,filled:Lse,flushed:Fse,unstyled:zse},ir=Dse({baseStyle:Pse,sizes:Mse,variants:Bse,defaultProps:{size:"md",variant:"outline"}}),Use=e=>({bg:Be("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),$se={baseStyle:Use},jse={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Vse={baseStyle:jse},{defineMultiStyleConfig:Hse,definePartsStyle:Wse}=Pr(Gae.keys),Gse={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Yse=Wse({icon:Gse}),qse=Hse({baseStyle:Yse}),{defineMultiStyleConfig:Kse,definePartsStyle:Xse}=Pr(Yae.keys),Zse=e=>({bg:Be("#fff","gray.700")(e),boxShadow:Be("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Qse=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:Be("gray.100","whiteAlpha.100")(e)},_active:{bg:Be("gray.200","whiteAlpha.200")(e)},_expanded:{bg:Be("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Jse={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ele={opacity:.6},tle={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},nle={transitionProperty:"common",transitionDuration:"normal"},rle=Xse(e=>({button:nle,list:ra(Zse,e),item:ra(Qse,e),groupTitle:Jse,command:ele,divider:tle})),ale=Kse({baseStyle:rle}),{defineMultiStyleConfig:ile,definePartsStyle:sA}=Pr(qae.keys),ole={bg:"blackAlpha.600",zIndex:"modal"},sle=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},lle=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:Be("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:Be("lg","dark-lg")(e)}},ule={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},cle={position:"absolute",top:"2",insetEnd:"3"},fle=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},dle={px:"6",py:"4"},ple=sA(e=>({overlay:ole,dialogContainer:ra(sle,e),dialog:ra(lle,e),header:ule,closeButton:cle,body:ra(fle,e),footer:dle}));function wl(e){return sA(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var mle={xs:wl("xs"),sm:wl("sm"),md:wl("md"),lg:wl("lg"),xl:wl("xl"),"2xl":wl("2xl"),"3xl":wl("3xl"),"4xl":wl("4xl"),"5xl":wl("5xl"),"6xl":wl("6xl"),full:wl("full")},hle=ile({baseStyle:ple,sizes:mle,defaultProps:{size:"md"}}),vle={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"}},gF=vle,{defineMultiStyleConfig:gle,definePartsStyle:yF}=Pr(Kae.keys),pO=Ao("number-input-stepper-width"),bF=Ao("number-input-input-padding"),yle=gc(pO).add("0.5rem").toString(),ble={[pO.variable]:"sizes.6",[bF.variable]:yle},Sle=e=>{var t;return((t=ra(ir.baseStyle,e))==null?void 0:t.field)??{}},xle={width:[pO.reference]},Cle=e=>({borderStart:"1px solid",borderStartColor:Be("inherit","whiteAlpha.300")(e),color:Be("inherit","whiteAlpha.800")(e),_active:{bg:Be("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),wle=yF(e=>({root:ble,field:Sle,stepperGroup:xle,stepper:ra(Cle,e)??{}}));function Px(e){var t,n;const i=(t=ir.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},c=((n=i.field)==null?void 0:n.fontSize)??"md",u=gF.fontSizes[c];return yF({field:{...i.field,paddingInlineEnd:bF.reference,verticalAlign:"top"},stepper:{fontSize:gc(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Nle={xs:Px("xs"),sm:Px("sm"),md:Px("md"),lg:Px("lg")},Ele=gle({baseStyle:wle,sizes:Nle,variants:ir.variants,defaultProps:ir.defaultProps}),A6,_le={...(A6=ir.baseStyle)==null?void 0:A6.field,textAlign:"center"},Tle={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"}},k6,Rle={outline:e=>{var t,n;return((n=ra((t=ir.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=ra((t=ir.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=ra((t=ir.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((k6=ir.variants)==null?void 0:k6.unstyled.field)??{}},Ale={baseStyle:_le,sizes:Tle,variants:Rle,defaultProps:ir.defaultProps},{defineMultiStyleConfig:kle,definePartsStyle:Ole}=Pr(Xae.keys),BR=Ao("popper-bg"),Dle=Ao("popper-arrow-bg"),Ple=Ao("popper-arrow-shadow-color"),Mle={zIndex:10},Ile=e=>{const t=Be("white","gray.700")(e),n=Be("gray.200","whiteAlpha.300")(e);return{[BR.variable]:`colors.${t}`,bg:BR.reference,[Dle.variable]:BR.reference,[Ple.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Lle={px:3,py:2,borderBottomWidth:"1px"},Fle={px:3,py:2},zle={px:3,py:2,borderTopWidth:"1px"},Ble={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Ule=Ole(e=>({popper:Mle,content:Ile(e),header:Lle,body:Fle,footer:zle,closeButton:Ble})),$le=kle({baseStyle:Ule}),{defineMultiStyleConfig:jle,definePartsStyle:Y0}=Pr(Zae.keys),Vle=e=>{const{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,c=Be(N6(),N6("1rem","rgba(0,0,0,0.1)"))(e),u=Be(`${t}.500`,`${t}.200`)(e),m=`linear-gradient(
|
|
to right,
|
|
transparent 0%,
|
|
${Ma(n,u)} 50%,
|
|
transparent 100%
|
|
)`;return{...!i&&o&&c,...i?{bgImage:m}:{bgColor:u}}},Hle={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Wle=e=>({bg:Be("gray.100","whiteAlpha.300")(e)}),Gle=e=>({transitionProperty:"common",transitionDuration:"slow",...Vle(e)}),Yle=Y0(e=>({label:Hle,filledTrack:Gle(e),track:Wle(e)})),qle={xs:Y0({track:{h:"1"}}),sm:Y0({track:{h:"2"}}),md:Y0({track:{h:"3"}}),lg:Y0({track:{h:"4"}})},Kle=jle({sizes:qle,baseStyle:Yle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Xle,definePartsStyle:t2}=Pr(Qae.keys),Zle=e=>{var t;const n=(t=ra(B2.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Qle=t2(e=>{var t,n,i,o;return{label:(n=(t=B2).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(i=B2).baseStyle)==null?void 0:o.call(i,e).container,control:Zle(e)}}),Jle={md:t2({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:t2({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:t2({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},eue=Xle({baseStyle:Qle,sizes:Jle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tue,definePartsStyle:nue}=Pr(Jae.keys),rue=e=>{var t;return{...(t=ir.baseStyle)==null?void 0:t.field,bg:Be("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Be("white","gray.700")(e)}}},aue={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},iue=nue(e=>({field:rue(e),icon:aue})),Mx={paddingInlineEnd:"8"},O6,D6,P6,M6,I6,L6,F6,z6,oue={lg:{...(O6=ir.sizes)==null?void 0:O6.lg,field:{...(D6=ir.sizes)==null?void 0:D6.lg.field,...Mx}},md:{...(P6=ir.sizes)==null?void 0:P6.md,field:{...(M6=ir.sizes)==null?void 0:M6.md.field,...Mx}},sm:{...(I6=ir.sizes)==null?void 0:I6.sm,field:{...(L6=ir.sizes)==null?void 0:L6.sm.field,...Mx}},xs:{...(F6=ir.sizes)==null?void 0:F6.xs,field:{...(z6=ir.sizes)==null?void 0:z6.sm.field,...Mx},icon:{insetEnd:"1"}}},sue=tue({baseStyle:iue,sizes:oue,variants:ir.variants,defaultProps:ir.defaultProps}),lue=ad("skeleton-start-color"),uue=ad("skeleton-end-color"),cue=e=>{const t=Be("gray.100","gray.800")(e),n=Be("gray.400","gray.600")(e),{startColor:i=t,endColor:o=n,theme:c}=e,u=Ma(c,i),m=Ma(c,o);return{[lue.variable]:u,[uue.variable]:m,opacity:.7,borderRadius:"2px",borderColor:u,background:m}},fue={baseStyle:cue},due=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Be("white","gray.700")(e)}}),pue={baseStyle:due},{defineMultiStyleConfig:mue,definePartsStyle:MC}=Pr(eie.keys),Py=ad("slider-thumb-size"),My=ad("slider-track-size"),hue=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...cO({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},vue=e=>({...cO({orientation:e.orientation,horizontal:{h:My.reference},vertical:{w:My.reference}}),overflow:"hidden",borderRadius:"sm",bg:Be("gray.200","whiteAlpha.200")(e),_disabled:{bg:Be("gray.300","whiteAlpha.300")(e)}}),gue=e=>{const{orientation:t}=e;return{...cO({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:Py.reference,h:Py.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"}}},yue=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Be(`${t}.500`,`${t}.200`)(e)}},bue=MC(e=>({container:hue(e),track:vue(e),thumb:gue(e),filledTrack:yue(e)})),Sue=MC({container:{[Py.variable]:"sizes.4",[My.variable]:"sizes.1"}}),xue=MC({container:{[Py.variable]:"sizes.3.5",[My.variable]:"sizes.1"}}),Cue=MC({container:{[Py.variable]:"sizes.2.5",[My.variable]:"sizes.0.5"}}),wue={lg:Sue,md:xue,sm:Cue},Nue=mue({baseStyle:bue,sizes:wue,defaultProps:{size:"md",colorScheme:"blue"}}),zp=Ao("spinner-size"),Eue={width:[zp.reference],height:[zp.reference]},_ue={xs:{[zp.variable]:"sizes.3"},sm:{[zp.variable]:"sizes.4"},md:{[zp.variable]:"sizes.6"},lg:{[zp.variable]:"sizes.8"},xl:{[zp.variable]:"sizes.12"}},Tue={baseStyle:Eue,sizes:_ue,defaultProps:{size:"md"}},{defineMultiStyleConfig:Rue,definePartsStyle:SF}=Pr(tie.keys),Aue={fontWeight:"medium"},kue={opacity:.8,marginBottom:"2"},Oue={verticalAlign:"baseline",fontWeight:"semibold"},Due={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Pue=SF({container:{},label:Aue,helpText:kue,number:Oue,icon:Due}),Mue={md:SF({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Iue=Rue({baseStyle:Pue,sizes:Mue,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Lue,definePartsStyle:n2}=Pr(nie.keys),cy=Ao("switch-track-width"),Wp=Ao("switch-track-height"),UR=Ao("switch-track-diff"),Fue=gc.subtract(cy,Wp),lA=Ao("switch-thumb-x"),zue=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[cy.reference],height:[Wp.reference],transitionProperty:"common",transitionDuration:"fast",bg:Be("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:Be(`${t}.500`,`${t}.200`)(e)}}},Bue={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Wp.reference],height:[Wp.reference],_checked:{transform:`translateX(${lA.reference})`}},Uue=n2(e=>({container:{[UR.variable]:Fue,[lA.variable]:UR.reference,_rtl:{[lA.variable]:gc(UR).negate().toString()}},track:zue(e),thumb:Bue})),$ue={sm:n2({container:{[cy.variable]:"1.375rem",[Wp.variable]:"sizes.3"}}),md:n2({container:{[cy.variable]:"1.875rem",[Wp.variable]:"sizes.4"}}),lg:n2({container:{[cy.variable]:"2.875rem",[Wp.variable]:"sizes.6"}})},jue=Lue({baseStyle:Uue,sizes:$ue,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Vue,definePartsStyle:tv}=Pr(rie.keys),Hue=tv({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"}}),U2={"&[data-is-numeric=true]":{textAlign:"end"}},Wue=tv(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...U2},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...U2},caption:{color:Be("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Gue=tv(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...U2},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...U2},caption:{color:Be("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e)},td:{background:Be(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Yue={simple:Wue,striped:Gue,unstyled:{}},que={sm:tv({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:tv({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:tv({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Kue=Vue({baseStyle:Hue,variants:Yue,sizes:que,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Xue,definePartsStyle:gu}=Pr(aie.keys),Zue=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Que=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}}},Jue=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},ece={p:4},tce=gu(e=>({root:Zue(e),tab:Que(e),tablist:Jue(e),tabpanel:ece})),nce={sm:gu({tab:{py:1,px:4,fontSize:"sm"}}),md:gu({tab:{fontSize:"md",py:2,px:4}}),lg:gu({tab:{fontSize:"lg",py:3,px:4}})},rce=gu(e=>{const{colorScheme:t,orientation:n}=e,i=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",c=i?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[c]:"-2px",_selected:{color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:Be("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),ace=gu(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:Be("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ice=gu(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:Be("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:Be("#fff","gray.800")(e),color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),oce=gu(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ma(n,`${t}.700`),bg:Ma(n,`${t}.100`)}}}}),sce=gu(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:Be("gray.600","inherit")(e),_selected:{color:Be("#fff","gray.800")(e),bg:Be(`${t}.600`,`${t}.300`)(e)}}}}),lce=gu({}),uce={line:rce,enclosed:ace,"enclosed-colored":ice,"soft-rounded":oce,"solid-rounded":sce,unstyled:lce},cce=Xue({baseStyle:tce,sizes:nce,variants:uce,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:fce,definePartsStyle:Gp}=Pr(iie.keys),dce={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},pce={lineHeight:1.2,overflow:"visible"},mce={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}},hce=Gp({container:dce,label:pce,closeButton:mce}),vce={sm:Gp({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Gp({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Gp({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},gce={subtle:Gp(e=>{var t;return{container:(t=sy.variants)==null?void 0:t.subtle(e)}}),solid:Gp(e=>{var t;return{container:(t=sy.variants)==null?void 0:t.solid(e)}}),outline:Gp(e=>{var t;return{container:(t=sy.variants)==null?void 0:t.outline(e)}})},yce=fce({variants:gce,baseStyle:hce,sizes:vce,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),B6,bce={...(B6=ir.baseStyle)==null?void 0:B6.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},U6,Sce={outline:e=>{var t;return((t=ir.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=ir.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=ir.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((U6=ir.variants)==null?void 0:U6.unstyled.field)??{}},$6,j6,V6,H6,xce={xs:(($6=ir.sizes)==null?void 0:$6.xs.field)??{},sm:((j6=ir.sizes)==null?void 0:j6.sm.field)??{},md:((V6=ir.sizes)==null?void 0:V6.md.field)??{},lg:((H6=ir.sizes)==null?void 0:H6.lg.field)??{}},Cce={baseStyle:bce,sizes:xce,variants:Sce,defaultProps:{size:"md",variant:"outline"}},$R=Ao("tooltip-bg"),W6=Ao("tooltip-fg"),wce=Ao("popper-arrow-bg"),Nce=e=>{const t=Be("gray.700","gray.300")(e),n=Be("whiteAlpha.900","gray.900")(e);return{bg:$R.reference,color:W6.reference,[$R.variable]:`colors.${t}`,[W6.variable]:`colors.${n}`,[wce.variable]:$R.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Ece={baseStyle:Nce},_ce={Accordion:Wie,Alert:Jie,Avatar:coe,Badge:sy,Breadcrumb:Soe,Button:Aoe,Checkbox:B2,CloseButton:Boe,Code:Voe,Container:Woe,Divider:Xoe,Drawer:sse,Editable:mse,Form:Sse,FormError:_se,FormLabel:Rse,Heading:Ose,Input:ir,Kbd:$se,Link:Vse,List:qse,Menu:ale,Modal:hle,NumberInput:Ele,PinInput:Ale,Popover:$le,Progress:Kle,Radio:eue,Select:sue,Skeleton:fue,SkipLink:pue,Slider:Nue,Spinner:Tue,Stat:Iue,Switch:jue,Table:Kue,Tabs:cce,Tag:yce,Textarea:Cce,Tooltip:Ece},Tce={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Rce=Tce,Ace={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},kce=Ace,Oce={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"}},Dce=Oce,Pce={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Mce=Pce,Ice={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"},Lce=Ice,Fce={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"},zce={"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)"},Bce={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Uce={property:Fce,easing:zce,duration:Bce},$ce=Uce,jce={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},Vce=jce,Hce={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Wce=Hce,Gce={breakpoints:kce,zIndices:Vce,radii:Mce,blur:Wce,colors:Dce,...gF,sizes:mF,shadows:Lce,space:pF,borders:Rce,transition:$ce},Yce={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"}}},qce={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 Kce(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Xce=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Zce(e){return Kce(e)?Xce.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Qce="ltr",Jce={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},xF={semanticTokens:Yce,direction:Qce,...Gce,components:_ce,styles:qce,config:Jce};function efe(e,t){const n=Li(e);k.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{n()},t),()=>{i&&window.clearTimeout(i)}},[t,n])}var bc="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function uA(e,...t){return tfe(e)?e(...t):e}var tfe=e=>typeof e=="function";function nfe(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var rfe=(e,t)=>e.find(n=>n.id===t);function G6(e,t){const n=CF(e,t),i=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:i}}function CF(e,t){for(const[n,i]of Object.entries(e))if(rfe(i,t))return n}function afe(e){const t=e.includes("right"),n=e.includes("left");let i="center";return t&&(i="flex-end"),n&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function ife(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=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:n,top:i,bottom:o,right:c,left:u}}var ofe={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},du=sfe(ofe);function sfe(e){let t=e;const n=new Set,i=o=>{t=o(t),n.forEach(c=>c())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{i(()=>e),n.delete(o)}),removeToast:(o,c)=>{i(u=>({...u,[c]:u[c].filter(m=>m.id!=o)}))},notify:(o,c)=>{const u=lfe(o,c),{position:m,id:h}=u;return i(v=>{const x=m.includes("top")?[u,...v[m]??[]]:[...v[m]??[],u];return{...v,[m]:x}}),h},update:(o,c)=>{!o||i(u=>{const m={...u},{position:h,index:v}=G6(m,o);return h&&v!==-1&&(m[h][v]={...m[h][v],...c,message:wF(c)}),m})},closeAll:({positions:o}={})=>{i(c=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((h,v)=>(h[v]=c[v].map(b=>({...b,requestClose:!0})),h),{...c}))},close:o=>{i(c=>{const u=CF(c,o);return u?{...c,[u]:c[u].map(m=>m.id==o?{...m,requestClose:!0}:m)}:c})},isActive:o=>Boolean(G6(du.getState(),o).position)}}var Y6=0;function lfe(e,t={}){Y6+=1;const n=t.id??Y6,i=t.position??"bottom";return{id:n,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>du.removeToast(String(n),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var ufe=e=>{const{status:t,variant:n="solid",id:i,title:o,isClosable:c,onClose:u,description:m,icon:h}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Pe.createElement(f7,{addRole:!1,status:t,variant:n,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},_(p7,{children:h},void 0,!1,{fileName:bc,lineNumber:237,columnNumber:22},globalThis),Pe.createElement($e.div,{flex:"1",maxWidth:"100%"},o&&_(m7,{id:v?.title,children:o},void 0,!1,{fileName:bc,lineNumber:240,columnNumber:31},globalThis),m&&_(d7,{id:v?.description,display:"block",children:m},void 0,!1,{fileName:bc,lineNumber:242,columnNumber:45},globalThis)),c&&_(TC,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:bc,lineNumber:245,columnNumber:51},globalThis))};function wF(e={}){const{render:t,toastComponent:n=ufe}=e;return o=>typeof t=="function"?t(o):_(n,{...o,...e},void 0,!1,{fileName:bc,lineNumber:259,columnNumber:28},this)}function cfe(e,t){const n=o=>({...t,...o,position:nfe(o?.position??t?.position,e)}),i=o=>{const c=n(o),u=wF(c);return du.notify(u,c)};return i.update=(o,c)=>{du.update(o,n(c))},i.promise=(o,c)=>{const u=i({...c.loading,status:"loading",duration:null});o.then(m=>i.update(u,{status:"success",duration:5e3,...uA(c.success,m)})).catch(m=>i.update(u,{status:"error",duration:5e3,...uA(c.error,m)}))},i.closeAll=du.closeAll,i.close=du.close,i.isActive=du.isActive,i}function ffe(e){const{theme:t}=OL();return k.exports.useMemo(()=>cfe(t.direction,e),[e,t.direction])}var dfe={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[n]: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]}}},NF=k.exports.memo(e=>{const{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:c=!1,position:u="bottom",duration:m=5e3,containerStyle:h,motionVariants:v=dfe,toastSpacing:b="0.5rem"}=e,[x,w]=k.exports.useState(m),N=pK();k2(()=>{N||i?.()},[N]),k2(()=>{w(m)},[m]);const R=()=>w(null),O=()=>w(m),M=()=>{N&&o()};k.exports.useEffect(()=>{N&&c&&o()},[N,c,o]),efe(M,x);const B=k.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...h}),[h,b]),I=k.exports.useMemo(()=>afe(u),[u]);return Pe.createElement(js.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:R,onHoverEnd:O,custom:{position:u},style:I},Pe.createElement($e.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:B},uA(n,{id:t,onClose:M})))});NF.displayName="ToastComponent";var pfe=e=>{const t=k.exports.useSyncExternalStore(du.subscribe,du.getState,du.getState),{children:n,motionVariants:i,component:o=NF,portalProps:c}=e,m=Object.keys(t).map(h=>{const v=t[h];return _("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${h}`,style:ife(h),children:_(Rc,{initial:!1,children:v.map(b=>_(o,{motionVariants:i,...b},b.id,!1,{fileName:bc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:bc,lineNumber:432,columnNumber:24},globalThis)},h,!1,{fileName:bc,lineNumber:426,columnNumber:28},globalThis)});return _(hi,{children:[n,_(tm,{...c,children:m},void 0,!1,{fileName:bc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},q6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function mfe(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function hfe(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var vfe={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 U0(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var cA=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},fA=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function gfe(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnEsc:c=!0,onOpen:u,onClose:m,placement:h,id:v,isOpen:b,defaultIsOpen:x,arrowSize:w=10,arrowShadowColor:N,arrowPadding:R,modifiers:O,isDisabled:M,gutter:B,offset:I,direction:F,...z}=e,{isOpen:$,onOpen:q,onClose:K}=Q7({isOpen:b,defaultIsOpen:x,onOpen:u,onClose:m}),{referenceRef:le,getPopperProps:me,getArrowInnerProps:se,getArrowProps:Se}=Z7({enabled:$,placement:h,arrowPadding:R,modifiers:O,gutter:B,offset:I,direction:F}),qe=k.exports.useId(),ue=`tooltip-${v??qe}`,Ee=k.exports.useRef(null),de=k.exports.useRef(),ie=k.exports.useRef(),xe=k.exports.useCallback(()=>{ie.current&&(clearTimeout(ie.current),ie.current=void 0),K()},[K]),Ne=yfe(Ee,xe),he=k.exports.useCallback(()=>{if(!M&&!de.current){Ne();const Ze=fA(Ee);de.current=Ze.setTimeout(q,t)}},[Ne,M,q,t]),Ce=k.exports.useCallback(()=>{de.current&&(clearTimeout(de.current),de.current=void 0);const Ze=fA(Ee);ie.current=Ze.setTimeout(xe,n)},[n,xe]),Me=k.exports.useCallback(()=>{$&&i&&Ce()},[i,Ce,$]),Ie=k.exports.useCallback(()=>{$&&o&&Ce()},[o,Ce,$]),Ye=k.exports.useCallback(Ze=>{$&&Ze.key==="Escape"&&Ce()},[$,Ce]);j5(()=>cA(Ee),"keydown",c?Ye:void 0),k.exports.useEffect(()=>()=>{clearTimeout(de.current),clearTimeout(ie.current)},[]),j5(()=>Ee.current,"mouseleave",Ce);const at=k.exports.useCallback((Ze={},ct=null)=>({...Ze,ref:ma(Ee,ct,le),onMouseEnter:U0(Ze.onMouseEnter,he),onClick:U0(Ze.onClick,Me),onMouseDown:U0(Ze.onMouseDown,Ie),onFocus:U0(Ze.onFocus,he),onBlur:U0(Ze.onBlur,Ce),"aria-describedby":$?ue:void 0}),[he,Ce,Ie,$,ue,Me,le]),gt=k.exports.useCallback((Ze={},ct=null)=>me({...Ze,style:{...Ze.style,[pa.arrowSize.var]:w?`${w}px`:void 0,[pa.arrowShadowColor.var]:N}},ct),[me,w,N]),Ht=k.exports.useCallback((Ze={},ct=null)=>{const wt={...Ze.style,position:"relative",transformOrigin:pa.transformOrigin.varRef};return{ref:ct,...z,...Ze,id:ue,role:"tooltip",style:wt}},[z,ue]);return{isOpen:$,show:he,hide:Ce,getTriggerProps:at,getTooltipProps:Ht,getTooltipPositionerProps:gt,getArrowProps:Se,getArrowInnerProps:se}}var jR="chakra-ui:close-tooltip";function yfe(e,t){return k.exports.useEffect(()=>{const n=cA(e);return n.addEventListener(jR,t),()=>n.removeEventListener(jR,t)},[t,e]),()=>{const n=cA(e),i=fA(e);n.dispatchEvent(new i.CustomEvent(jR))}}var bfe=$e(js.div),Kf=Xe((e,t)=>{const n=ao("Tooltip",e),i=hr(e),o=uC(),{children:c,label:u,shouldWrapChildren:m,"aria-label":h,hasArrow:v,bg:b,portalProps:x,background:w,backgroundColor:N,bgColor:R,...O}=i,M=w??N??b??R;if(M){n.bg=M;const le=yH(o,"colors",M);n[pa.arrowBg.var]=le}const B=gfe({...O,direction:o.direction}),I=typeof c=="string"||m;let F;if(I)F=Pe.createElement($e.span,{tabIndex:0,...B.getTriggerProps()},c);else{const le=k.exports.Children.only(c);F=k.exports.cloneElement(le,B.getTriggerProps(le.props,le.ref))}const z=!!h,$=B.getTooltipProps({},t),q=z?mfe($,["role","id"]):$,K=hfe($,["role","id"]);return u?_(hi,{children:[F,_(Rc,{children:B.isOpen&&Pe.createElement(tm,{...x},Pe.createElement($e.div,{...B.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},_(bfe,{variants:vfe,...q,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[u,z&&Pe.createElement($e.span,{srOnly:!0,...K},h),v&&Pe.createElement($e.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Pe.createElement($e.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]},void 0,!0,{fileName:q6,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:q6,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):_(hi,{children:c},void 0,!1)});Kf.displayName="Tooltip";var Rp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",Sfe=e=>{const{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:c={},environment:u,cssVarsRoot:m}=e,h=_(U7,{environment:u,children:t},void 0,!1,{fileName:Rp,lineNumber:25,columnNumber:37},globalThis);return _(EG,{theme:c,cssVarsRoot:m,children:_(JI,{colorModeManager:n,options:c.config,children:[o?_(oJ,{},void 0,!1,{fileName:Rp,lineNumber:34,columnNumber:33},globalThis):_(iJ,{},void 0,!1,{fileName:Rp,lineNumber:34,columnNumber:87},globalThis),_(TG,{},void 0,!1,{fileName:Rp,lineNumber:34,columnNumber:143},globalThis),i?_(J7,{zIndex:i,children:h},void 0,!1,{fileName:Rp,lineNumber:34,columnNumber:214},globalThis):h]},void 0,!0,{fileName:Rp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:Rp,lineNumber:28,columnNumber:26},globalThis)},K6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function xfe({children:e,theme:t=xF,toastOptions:n,...i}){return _(Sfe,{theme:t,...i,children:[e,_(pfe,{...n},void 0,!1,{fileName:K6,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:K6,lineNumber:62,columnNumber:26},this)}function Cfe(...e){let t=[...e],n=e[e.length-1];return Zce(n)&&t.length>1?t=t.slice(0,t.length-1):n=xF,HW(...t.map(i=>o=>Hh(i)?i(o):wfe(o,i)))(n)}function wfe(...e){return Qf({},...e,EF)}function EF(e,t,n,i){if((Hh(e)||Hh(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...o)=>{const c=Hh(e)?e(...o):e,u=Hh(t)?t(...o):t;return Qf({},c,u,EF)}}function Wa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];{var o=Dfe[e],c=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function rd(e){return!!e&&!!e[Dr]}function _c(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Pfe}(e)||Array.isArray(e)||!!e[nI]||!!e.constructor[nI]||mO(e)||hO(e))}function Zp(e,t,n){n===void 0&&(n=!1),Sv(e)===0?(n?Object.keys:rv)(e).forEach(function(i){n&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,o){return t(o,i,e)})}function Sv(e){var t=e[Dr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:mO(e)?2:hO(e)?3:0}function nv(e,t){return Sv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nfe(e,t){return Sv(e)===2?e.get(t):e[t]}function _F(e,t,n){var i=Sv(e);i===2?e.set(t,n):i===3?(e.delete(t),e.add(n)):e[t]=n}function TF(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function mO(e){return kfe&&e instanceof Map}function hO(e){return Ofe&&e instanceof Set}function Bf(e){return e.o||e.t}function vO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AF(e);delete t[Dr];for(var n=rv(t),i=0;i<n.length;i++){var o=n[i],c=t[o];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[o]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function gO(e,t){return t===void 0&&(t=!1),yO(e)||rd(e)||!_c(e)||(Sv(e)>1&&(e.set=e.add=e.clear=e.delete=Efe),Object.freeze(e),t&&Zp(e,function(n,i){return gO(i,!0)},!0)),e}function Efe(){Wa(2)}function yO(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function yu(e){var t=hA[e];return t||Wa(18,e),t}function _fe(e,t){hA[e]||(hA[e]=t)}function dA(){return pv||Wa(0),pv}function VR(e,t){t&&(yu("Patches"),e.u=[],e.s=[],e.v=t)}function $2(e){pA(e),e.p.forEach(Tfe),e.p=null}function pA(e){e===pv&&(pv=e.l)}function X6(e){return pv={p:[],l:pv,h:e,m:!0,_:0}}function Tfe(e){var t=e[Dr];t.i===0||t.i===1?t.j():t.O=!0}function HR(e,t){t._=t.p.length;var n=t.p[0],i=e!==void 0&&e!==n;return t.h.g||yu("ES5").S(t,e,i),i?(n[Dr].P&&($2(t),Wa(4)),_c(e)&&(e=j2(t,e),t.l||V2(t,e)),t.u&&yu("Patches").M(n[Dr].t,e,t.u,t.s)):e=j2(t,n,[]),$2(t),t.u&&t.v(t.u,t.s),e!==RF?e:void 0}function j2(e,t,n){if(yO(t))return t;var i=t[Dr];if(!i)return Zp(t,function(c,u){return Z6(e,i,t,c,u,n)},!0),t;if(i.A!==e)return t;if(!i.P)return V2(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=vO(i.k):i.o;Zp(i.i===3?new Set(o):o,function(c,u){return Z6(e,i,o,c,u,n)}),V2(e,o,!1),n&&e.u&&yu("Patches").R(i,n,e.u,e.s)}return i.o}function Z6(e,t,n,i,o,c){if(o===n&&Wa(5),rd(o)){var u=j2(e,o,c&&t&&t.i!==3&&!nv(t.D,i)?c.concat(i):void 0);if(_F(n,i,u),!rd(u))return;e.m=!1}if(_c(o)&&!yO(o)){if(!e.h.F&&e._<1)return;j2(e,o),t&&t.A.l||V2(e,o)}}function V2(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&gO(t,n)}function WR(e,t){var n=e[Dr];return(n?Bf(n):e)[t]}function Q6(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Uf(e){e.P||(e.P=!0,e.l&&Uf(e.l))}function GR(e){e.o||(e.o=vO(e.t))}function mA(e,t,n){var i=mO(t)?yu("MapSet").N(t,n):hO(t)?yu("MapSet").T(t,n):e.g?function(o,c){var u=Array.isArray(o),m={i:u?1:0,A:c?c.A:dA(),P:!1,I:!1,D:{},l:c,t:o,k:null,o:null,j:null,C:!1},h=m,v=Iy;u&&(h=[m],v=q0);var b=Proxy.revocable(h,v),x=b.revoke,w=b.proxy;return m.k=w,m.j=x,w}(t,n):yu("ES5").J(t,n);return(n?n.A:dA()).p.push(i),i}function Rfe(e){return rd(e)||Wa(22,e),function t(n){if(!_c(n))return n;var i,o=n[Dr],c=Sv(n);if(o){if(!o.P&&(o.i<4||!yu("ES5").K(o)))return o.t;o.I=!0,i=J6(n,c),o.I=!1}else i=J6(n,c);return Zp(i,function(u,m){o&&Nfe(o.t,u)===m||_F(i,u,t(m))}),c===3?new Set(i):i}(e)}function J6(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vO(e)}function Afe(){function e(u,m){var h=c[u];return h?h.enumerable=m:c[u]=h={configurable:!0,enumerable:m,get:function(){var v=this[Dr];return o(v),Iy.get(v,u)},set:function(v){var b=this[Dr];o(b),Iy.set(b,u,v)}},h}function t(u){for(var m=u.length-1;m>=0;m--){var h=u[m][Dr];if(!h.P)switch(h.i){case 5:i(h)&&Uf(h);break;case 4:n(h)&&Uf(h)}}}function n(u){for(var m=u.t,h=u.k,v=rv(h),b=v.length-1;b>=0;b--){var x=v[b];if(x!==Dr){var w=m[x];if(w===void 0&&!nv(m,x))return!0;var N=h[x],R=N&&N[Dr];if(R?R.t!==w:!TF(N,w))return!0}}var O=!!m[Dr];return v.length!==rv(m).length+(O?0:1)}function i(u){var m=u.k;if(m.length!==u.t.length)return!0;var h=Object.getOwnPropertyDescriptor(m,m.length-1);if(h&&!h.get)return!0;for(var v=0;v<m.length;v++)if(!m.hasOwnProperty(v))return!0;return!1}function o(u){u.O&&Wa(3,JSON.stringify(Bf(u)))}var c={};_fe("ES5",{J:function(u,m){var h=Array.isArray(u),v=function(x,w){if(x){for(var N=Array(w.length),R=0;R<w.length;R++)Object.defineProperty(N,""+R,e(R,!0));return N}var O=AF(w);delete O[Dr];for(var M=rv(O),B=0;B<M.length;B++){var I=M[B];O[I]=e(I,x||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(w),O)}(h,u),b={i:h?5:4,A:m?m.A:dA(),P:!1,I:!1,D:{},l:m,t:u,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Dr,{value:b,writable:!0}),v},S:function(u,m,h){h?rd(m)&&m[Dr].A===u&&t(u.p):(u.u&&function v(b){if(b&&typeof b=="object"){var x=b[Dr];if(x){var w=x.t,N=x.k,R=x.D,O=x.i;if(O===4)Zp(N,function(z){z!==Dr&&(w[z]!==void 0||nv(w,z)?R[z]||v(N[z]):(R[z]=!0,Uf(x)))}),Zp(w,function(z){N[z]!==void 0||nv(N,z)||(R[z]=!1,Uf(x))});else if(O===5){if(i(x)&&(Uf(x),R.length=!0),N.length<w.length)for(var M=N.length;M<w.length;M++)R[M]=!1;else for(var B=w.length;B<N.length;B++)R[B]=!0;for(var I=Math.min(N.length,w.length),F=0;F<I;F++)N.hasOwnProperty(F)||(R[F]=!0),R[F]===void 0&&v(N[F])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?n(u):i(u)}})}var eI,pv,bO=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kfe=typeof Map<"u",Ofe=typeof Set<"u",tI=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",RF=bO?Symbol.for("immer-nothing"):((eI={})["immer-nothing"]=!0,eI),nI=bO?Symbol.for("immer-draftable"):"__$immer_draftable",Dr=bO?Symbol.for("immer-state"):"__$immer_state",Dfe={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"},Pfe=""+Object.prototype.constructor,rv=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AF=Object.getOwnPropertyDescriptors||function(e){var t={};return rv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},hA={},Iy={get:function(e,t){if(t===Dr)return e;var n=Bf(e);if(!nv(n,t))return function(o,c,u){var m,h=Q6(c,u);return h?"value"in h?h.value:(m=h.get)===null||m===void 0?void 0:m.call(o.k):void 0}(e,n,t);var i=n[t];return e.I||!_c(i)?i:i===WR(e.t,t)?(GR(e),e.o[t]=mA(e.A.h,i,e)):i},has:function(e,t){return t in Bf(e)},ownKeys:function(e){return Reflect.ownKeys(Bf(e))},set:function(e,t,n){var i=Q6(Bf(e),t);if(i?.set)return i.set.call(e.k,n),!0;if(!e.P){var o=WR(Bf(e),t),c=o?.[Dr];if(c&&c.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(TF(n,o)&&(n!==void 0||nv(e.t,t)))return!0;GR(e),Uf(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return WR(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,GR(e),Uf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Bf(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty:function(){Wa(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Wa(12)}},q0={};Zp(Iy,function(e,t){q0[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),q0.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Wa(13),q0.set.call(this,e,t,void 0)},q0.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Wa(14),Iy.set.call(this,e[0],t,n,e[0])};var Mfe=function(){function e(n){var i=this;this.g=tI,this.F=!0,this.produce=function(o,c,u){if(typeof o=="function"&&typeof c!="function"){var m=c;c=o;var h=i;return function(O){var M=this;O===void 0&&(O=m);for(var B=arguments.length,I=Array(B>1?B-1:0),F=1;F<B;F++)I[F-1]=arguments[F];return h.produce(O,function(z){var $;return($=c).call.apply($,[M,z].concat(I))})}}var v;if(typeof c!="function"&&Wa(6),u!==void 0&&typeof u!="function"&&Wa(7),_c(o)){var b=X6(i),x=mA(i,o,void 0),w=!0;try{v=c(x),w=!1}finally{w?$2(b):pA(b)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(O){return VR(b,u),HR(O,b)},function(O){throw $2(b),O}):(VR(b,u),HR(v,b))}if(!o||typeof o!="object"){if((v=c(o))===void 0&&(v=o),v===RF&&(v=void 0),i.F&&gO(v,!0),u){var N=[],R=[];yu("Patches").M(o,v,N,R),u(N,R)}return v}Wa(21,o)},this.produceWithPatches=function(o,c){if(typeof o=="function")return function(v){for(var b=arguments.length,x=Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return i.produceWithPatches(v,function(N){return o.apply(void 0,[N].concat(x))})};var u,m,h=i.produce(o,c,function(v,b){u=v,m=b});return typeof Promise<"u"&&h instanceof Promise?h.then(function(v){return[v,u,m]}):[h,u,m]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){_c(n)||Wa(8),rd(n)&&(n=Rfe(n));var i=X6(this),o=mA(this,n,void 0);return o[Dr].C=!0,pA(i),o},t.finishDraft=function(n,i){var o=n&&n[Dr];o&&o.C||Wa(9),o.I&&Wa(10);var c=o.A;return VR(c,i),HR(void 0,c)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!tI&&Wa(20),this.g=n},t.applyPatches=function(n,i){var o;for(o=i.length-1;o>=0;o--){var c=i[o];if(c.path.length===0&&c.op==="replace"){n=c.value;break}}o>-1&&(i=i.slice(o+1));var u=yu("Patches").$;return rd(n)?u(n,i):this.produce(n,function(m){return u(m,i)})},e}(),rs=new Mfe,kF=rs.produce;rs.produceWithPatches.bind(rs);rs.setAutoFreeze.bind(rs);rs.setUseProxies.bind(rs);rs.applyPatches.bind(rs);rs.createDraft.bind(rs);rs.finishDraft.bind(rs);function rI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function aI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(n),!0).forEach(function(i){p8(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var iI=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),YR=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yp={INIT:"@@redux/INIT"+YR(),REPLACE:"@@redux/REPLACE"+YR(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+YR()}};function OF(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 Ife(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(zfe(e))return"date";if(Ffe(e))return"error";var n=Lfe(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Lfe(e){return typeof e.constructor=="function"?e.constructor.name:null}function Ffe(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function zfe(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ip(e){var t=typeof e;return t=Ife(e),t}function SO(e,t,n){var i;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+Ip(n)+"'");return n(SO)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+Ip(e)+"'");var o=e,c=t,u=[],m=u,h=!1;function v(){m===u&&(m=u.slice())}function b(){if(h)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(O){if(typeof O!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+Ip(O)+"'");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var M=!0;return v(),m.push(O),function(){if(!!M){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,v();var I=m.indexOf(O);m.splice(I,1),u=null}}}function w(O){if(!OF(O))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+Ip(O)+"'. 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 O.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=o(c,O)}finally{h=!1}for(var M=u=m,B=0;B<M.length;B++){var I=M[B];I()}return O}function N(O){if(typeof O!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+Ip(O));o=O,w({type:Yp.REPLACE})}function R(){var O,M=x;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error("Expected the observer to be an object. Instead, received: '"+Ip(I)+"'");function F(){I.next&&I.next(b())}F();var z=M(F);return{unsubscribe:z}}},O[iI]=function(){return this},O}return w({type:Yp.INIT}),i={dispatch:w,subscribe:x,getState:b,replaceReducer:N},i[iI]=R,i}function vA(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Bfe(e,t,n,i){var o=Object.keys(t),c=n&&n.type===Yp.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!OF(e))return"The "+c+' has unexpected type of "'+Ip(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var u=Object.keys(e).filter(function(m){return!t.hasOwnProperty(m)&&!i[m]});if(u.forEach(function(m){i[m]=!0}),!(n&&n.type===Yp.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: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function Ufe(e){Object.keys(e).forEach(function(t){var n=e[t],i=n(void 0,{type:Yp.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 n(void 0,{type:Yp.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 '"+Yp.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 DF(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];typeof e[o]>"u"&&vA('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var c=Object.keys(n),u;u={};var m;try{Ufe(n)}catch(h){m=h}return function(v,b){if(v===void 0&&(v={}),m)throw m;{var x=Bfe(v,n,b,u);x&&vA(x)}for(var w=!1,N={},R=0;R<c.length;R++){var O=c[R],M=n[O],B=v[O],I=M(B,b);if(typeof I>"u"){var F=b&&b.type;throw new Error("When called with an action of type "+(F?'"'+String(F)+'"':"(unknown type)")+', the slice reducer for key "'+O+'" 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.')}N[O]=I,w=w||I!==B}return w=w||c.length!==Object.keys(v).length,w?N:v}}function H2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function $fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return function(){var o=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:o.getState,dispatch:function(){return c.apply(void 0,arguments)}},m=t.map(function(h){return h(u)});return c=H2.apply(void 0,m)(o.dispatch),aI(aI({},o),{},{dispatch:c})}}}function oI(){}typeof oI.name=="string"&&oI.name!=="isCrushed"&&vA('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 W2="NOT_FOUND";function jfe(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:W2},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Vfe(e,t){var n=[];function i(m){var h=n.findIndex(function(b){return t(m,b.key)});if(h>-1){var v=n[h];return h>0&&(n.splice(h,1),n.unshift(v)),v.value}return W2}function o(m,h){i(m)===W2&&(n.unshift({key:m,value:h}),n.length>e&&n.pop())}function c(){return n}function u(){n=[]}return{get:i,put:o,getEntries:c,clear:u}}var Hfe=function(t,n){return t===n};function Wfe(e){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;for(var o=n.length,c=0;c<o;c++)if(!e(n[c],i[c]))return!1;return!0}}function Gfe(e,t){var n=typeof t=="object"?t:{equalityCheck:t},i=n.equalityCheck,o=i===void 0?Hfe:i,c=n.maxSize,u=c===void 0?1:c,m=n.resultEqualityCheck,h=Wfe(o),v=u===1?jfe(h):Vfe(u,h);function b(){var x=v.get(arguments);if(x===W2){if(x=e.apply(null,arguments),m){var w=v.getEntries(),N=w.find(function(R){return m(R.value,x)});N&&(x=N.value)}v.put(arguments,x)}return x}return b.clearCache=function(){return v.clear()},b}function Yfe(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var n=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: ["+n+"]")}return t}function qfe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=function(){for(var u=arguments.length,m=new Array(u),h=0;h<u;h++)m[h]=arguments[h];var v=0,b,x={memoizeOptions:void 0},w=m.pop();if(typeof w=="object"&&(x=w,w=m.pop()),typeof w!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof w+"]");var N=x,R=N.memoizeOptions,O=R===void 0?n:R,M=Array.isArray(O)?O:[O],B=Yfe(m),I=e.apply(void 0,[function(){return v++,w.apply(null,arguments)}].concat(M)),F=e(function(){for(var $=[],q=B.length,K=0;K<q;K++)$.push(B[K].apply(null,arguments));return b=I.apply(null,$),b});return Object.assign(F,{resultFunc:w,memoizedResultFunc:I,dependencies:B,lastResult:function(){return b},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),F};return o}var Br=qfe(Gfe);function PF(e){var t=function(i){var o=i.dispatch,c=i.getState;return function(u){return function(m){return typeof m=="function"?m(o,c,e):u(m)}}};return t}var MF=PF();MF.withExtraArgument=PF;const sI=MF;var Kfe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();globalThis&&globalThis.__generator;var G2=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},Xfe=Object.defineProperty,lI=Object.getOwnPropertySymbols,Zfe=Object.prototype.hasOwnProperty,Qfe=Object.prototype.propertyIsEnumerable,uI=function(e,t,n){return t in e?Xfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ly=function(e,t){for(var n in t||(t={}))Zfe.call(t,n)&&uI(e,n,t[n]);if(lI)for(var i=0,o=lI(t);i<o.length;i++){var n=o[i];Qfe.call(t,n)&&uI(e,n,t[n])}return e},Jfe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?H2:H2.apply(null,arguments)};function IF(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function LF(e,t){var n=0;return{measureTime:function(i){var o=Date.now();try{return i()}finally{var c=Date.now();n+=c-o}},warnIfExceeded:function(){n>e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+`ms.
|
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
It is disabled in production builds, so you don't need to worry about that.`)}}}var ede=function(e){Kfe(t,e);function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,G2([void 0],n[0].concat(this)))):new(t.bind.apply(t,G2([void 0],n.concat(this))))},t}(Array);function gA(e){return _c(e)?kF(e,function(){}):e}var tde="Invariant failed";function cI(e,t){if(!e)throw new Error(tde+": "+(t||""))}function nde(e,t,n,i){return JSON.stringify(e,rde(t,i),n)}function rde(e,t){var n=[],i=[];return t||(t=function(o,c){return n[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(c)).join(".")+"]"}),function(o,c){if(n.length>0){var u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?i.splice(u,1/0,o):i.push(o),~n.indexOf(c)&&(c=t.call(this,o,c))}else n.push(c);return e==null?c:e.call(this,o,c)}}function ade(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function ide(e,t,n){var i=FF(e,t,n);return{detectMutations:function(){return zF(e,t,i,n)}}}function FF(e,t,n,i){t===void 0&&(t=[]),i===void 0&&(i="");var o={value:n};if(!e(n)){o.children={};for(var c in n){var u=i?i+"."+c:c;t.length&&t.indexOf(u)!==-1||(o.children[c]=FF(e,t,n[c],u))}}return o}function zF(e,t,n,i,o,c){t===void 0&&(t=[]),o===void 0&&(o=!1),c===void 0&&(c="");var u=n?n.value:void 0,m=u===i;if(o&&!m&&!Number.isNaN(i))return{wasMutated:!0,path:c};if(e(u)||e(i))return{wasMutated:!1};var h={};for(var v in n.children)h[v]=!0;for(var v in i)h[v]=!0;for(var v in h){var b=c?c+"."+v:v;if(!(t.length&&t.indexOf(b)!==-1)){var x=zF(e,t,n.children[v],i[v],m,b);if(x.wasMutated)return x}}return{wasMutated:!1}}function ode(e){e===void 0&&(e={});var t=e.isImmutable,n=t===void 0?ade:t,i=e.ignoredPaths,o=e.warnAfter,c=o===void 0?32:o,u=e.ignore;i=i||u;var m=ide.bind(null,n,i);return function(h){var v=h.getState,b=v(),x=m(b),w;return function(N){return function(R){var O=LF(c,"ImmutableStateInvariantMiddleware");O.measureTime(function(){b=v(),w=x.detectMutations(),x=m(b),cI(!w.wasMutated,"A state mutation was detected between dispatches, in the path '"+(w.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var M=N(R);return O.measureTime(function(){b=v(),w=x.detectMutations(),x=m(b),w.wasMutated&&cI(!w.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(w.path||"")+". Take a look at the reducer(s) handling the action "+nde(R)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),O.warnIfExceeded(),M}}}}function BF(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||IF(e)}function yA(e,t,n,i,o){t===void 0&&(t=""),n===void 0&&(n=BF),o===void 0&&(o=[]);var c;if(!n(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),m=o.length>0,h=0,v=u;h<v.length;h++){var b=v[h],x=b[0],w=b[1],N=t?t+"."+x:x;if(!(m&&o.indexOf(N)>=0)){if(!n(w))return{keyPath:N,value:w};if(typeof w=="object"&&(c=yA(w,N,n,i,o),c))return c}}return!1}function sde(e){e===void 0&&(e={});var t=e.isSerializable,n=t===void 0?BF:t,i=e.getEntries,o=e.ignoredActions,c=o===void 0?[]:o,u=e.ignoredActionPaths,m=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,h=e.ignoredPaths,v=h===void 0?[]:h,b=e.warnAfter,x=b===void 0?32:b,w=e.ignoreState,N=w===void 0?!1:w,R=e.ignoreActions,O=R===void 0?!1:R;return function(M){return function(B){return function(I){var F=B(I),z=LF(x,"SerializableStateInvariantMiddleware");return!O&&!(c.length&&c.indexOf(I.type)!==-1)&&z.measureTime(function(){var $=yA(I,"",n,i,m);if($){var q=$.keyPath,K=$.value;console.error("A non-serializable value was detected in an action, in the path: `"+q+"`. Value:",K,`
|
|
Take a look at the logic that dispatched this action: `,I,`
|
|
(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)`)}}),N||(z.measureTime(function(){var $=M.getState(),q=yA($,"",n,i,v);if(q){var K=q.keyPath,le=q.value;console.error("A non-serializable value was detected in the state, in the path: `"+K+"`. Value:",le,`
|
|
Take a look at the reducer(s) handling this action type: `+I.type+`.
|
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),z.warnIfExceeded()),F}}}}function qR(e){return typeof e=="boolean"}function lde(){return function(t){return ude(t)}}function ude(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,i=e.immutableCheck,o=i===void 0?!0:i,c=e.serializableCheck,u=c===void 0?!0:c,m=new ede;n&&(qR(n)?m.push(sI):m.push(sI.withExtraArgument(n.extraArgument)));{if(o){var h={};qR(o)||(h=o),m.unshift(ode(h))}if(u){var v={};qR(u)||(v=u),m.push(sde(v))}}return m}var cde=!1;function fde(e){var t=lde(),n=e||{},i=n.reducer,o=i===void 0?void 0:i,c=n.middleware,u=c===void 0?t():c,m=n.devTools,h=m===void 0?!0:m,v=n.preloadedState,b=v===void 0?void 0:v,x=n.enhancers,w=x===void 0?void 0:x,N;if(typeof o=="function")N=o;else if(IF(o))N=DF(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var R=u;if(typeof R=="function"&&(R=R(t),!Array.isArray(R)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(R.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=$fe.apply(void 0,R),M=H2;h&&(M=Jfe(Ly({trace:!cde},typeof h=="object"&&h)));var B=[O];Array.isArray(w)?B=G2([O],w):typeof w=="function"&&(B=w(B));var I=M.apply(void 0,B);return SO(N,b,I)}function ro(e,t){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var c=t.apply(void 0,i);if(!c)throw new Error("prepareAction did not return an object");return Ly(Ly({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:i[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(i){return i.type===e},n}function UF(e){var t={},n=[],i,o={addCase:function(c,u){{if(n.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 m=typeof c=="string"?c:c.type;if(m in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[m]=u,o},addMatcher:function(c,u){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:c,reducer:u}),o},addDefaultCase:function(c){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=c,o}};return e(o),[t,n,i]}function dde(e){return typeof e=="function"}function pde(e,t,n,i){n===void 0&&(n=[]);var o=typeof t=="function"?UF(t):[t,n,i],c=o[0],u=o[1],m=o[2],h;if(dde(e))h=function(){return gA(e())};else{var v=gA(e);h=function(){return v}}function b(x,w){x===void 0&&(x=h());var N=G2([c[w.type]],u.filter(function(R){var O=R.matcher;return O(w)}).map(function(R){var O=R.reducer;return O}));return N.filter(function(R){return!!R}).length===0&&(N=[m]),N.reduce(function(R,O){if(O)if(rd(R)){var M=R,B=O(M,w);return B===void 0?R:B}else{if(_c(R))return kF(R,function(I){return O(I,w)});var B=O(R,w);if(B===void 0){if(R===null)return R;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return R},x)}return b.getInitialState=h,b}function mde(e,t){return e+"/"+t}function xO(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var n=typeof e.initialState=="function"?e.initialState:gA(e.initialState),i=e.reducers||{},o=Object.keys(i),c={},u={},m={};o.forEach(function(b){var x=i[b],w=mde(t,b),N,R;"reducer"in x?(N=x.reducer,R=x.prepare):N=x,c[b]=N,u[w]=N,m[b]=R?ro(w,R):ro(w)});function h(){var b=typeof e.extraReducers=="function"?UF(e.extraReducers):[e.extraReducers],x=b[0],w=x===void 0?{}:x,N=b[1],R=N===void 0?[]:N,O=b[2],M=O===void 0?void 0:O,B=Ly(Ly({},w),u);return pde(n,B,R,M)}var v;return{name:t,reducer:function(b,x){return v||(v=h()),v(b,x)},actions:m,caseReducers:c,getInitialState:function(){return v||(v=h()),v.getInitialState()}}}var CO="listenerMiddleware";ro(CO+"/add");ro(CO+"/removeAll");ro(CO+"/remove");Afe();var $F={exports:{}},jF={};/**
|
|
* @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=k.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(F){{for(var z=arguments.length,$=new Array(z>1?z-1:0),q=1;q<z;q++)$[q-1]=arguments[q];i("error",F,$)}}function i(F,z,$){{var q=t.ReactDebugCurrentFrame,K=q.getStackAddendum();K!==""&&(z+="%s",$=$.concat([K]));var le=$.map(function(me){return String(me)});le.unshift("Warning: "+z),Function.prototype.apply.call(console[F],console,le)}}function o(F,z){return F===z&&(F!==0||1/F===1/z)||F!==F&&z!==z}var c=typeof Object.is=="function"?Object.is:o,u=e.useState,m=e.useEffect,h=e.useLayoutEffect,v=e.useDebugValue,b=!1,x=!1;function w(F,z,$){b||e.startTransition!==void 0&&(b=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var q=z();if(!x){var K=z();c(q,K)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}var le=u({inst:{value:q,getSnapshot:z}}),me=le[0].inst,se=le[1];return h(function(){me.value=q,me.getSnapshot=z,N(me)&&se({inst:me})},[F,q,z]),m(function(){N(me)&&se({inst:me});var Se=function(){N(me)&&se({inst:me})};return F(Se)},[F]),v(q),q}function N(F){var z=F.getSnapshot,$=F.value;try{var q=z();return!c($,q)}catch{return!0}}function R(F,z,$){return z()}var O=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M=!O,B=M?R:w,I=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:B;jF.useSyncExternalStore=I,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=jF})($F);var VF={exports:{}},HF={};/**
|
|
* @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=k.exports,t=$F.exports;function n(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,m=e.useMemo,h=e.useDebugValue;function v(b,x,w,N,R){var O=c(null),M;O.current===null?(M={hasValue:!1,value:null},O.current=M):M=O.current;var B=m(function(){var $=!1,q,K,le=function(qe){if(!$){$=!0,q=qe;var ae=N(qe);if(R!==void 0&&M.hasValue){var ue=M.value;if(R(ue,ae))return K=ue,ue}return K=ae,ae}var Ee=q,de=K;if(i(Ee,qe))return de;var ie=N(qe);return R!==void 0&&R(de,ie)?de:(q=qe,K=ie,ie)},me=w===void 0?null:w,se=function(){return le(x())},Se=me===null?void 0:function(){return le(me())};return[se,Se]},[x,w,N,R]),I=B[0],F=B[1],z=o(b,I,F);return u(function(){M.hasValue=!0,M.value=z},[z]),h(z),z}HF.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=HF})(VF);function hde(e){e()}let WF=hde;const vde=e=>WF=e,gde=()=>WF,Tc=Pe.createContext(null);Tc.displayName="ReactRedux";function GF(){const e=k.exports.useContext(Tc);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 YF=yde;const bde=e=>{YF=e},Sde=(e,t)=>e===t;function xde(e=Tc){const t=e===Tc?GF:()=>k.exports.useContext(e);return function(i,o=Sde){{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 o!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:c,subscription:u,getServerState:m}=t(),h=YF(u.addNestedSub,c.getState,m||c.getState,i,o);return k.exports.useDebugValue(h),h}}const Cde=xde();var wde={exports:{}},fr={};/**
|
|
* @license React
|
|
* react-is.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),m=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),R=!1,O=!1,M=!1,B=!1,I=!1,F;F=Symbol.for("react.module.reference");function z(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===n||ye===o||I||ye===i||ye===v||ye===b||B||ye===N||R||O||M||typeof ye=="object"&&ye!==null&&(ye.$$typeof===w||ye.$$typeof===x||ye.$$typeof===c||ye.$$typeof===u||ye.$$typeof===h||ye.$$typeof===F||ye.getModuleId!==void 0))}function $(ye){if(typeof ye=="object"&&ye!==null){var et=ye.$$typeof;switch(et){case e:var Nt=ye.type;switch(Nt){case n:case o:case i:case v:case b:return Nt;default:var lt=Nt&&Nt.$$typeof;switch(lt){case m:case u:case h:case w:case x:case c:return lt;default:return et}}case t:return et}}}var q=u,K=c,le=e,me=h,se=n,Se=w,qe=x,ae=t,ue=o,Ee=i,de=v,ie=b,xe=!1,Ne=!1;function he(ye){return xe||(xe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ce(ye){return Ne||(Ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Me(ye){return $(ye)===u}function Ie(ye){return $(ye)===c}function Ye(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function at(ye){return $(ye)===h}function gt(ye){return $(ye)===n}function Ht(ye){return $(ye)===w}function Ze(ye){return $(ye)===x}function ct(ye){return $(ye)===t}function wt(ye){return $(ye)===o}function zt(ye){return $(ye)===i}function Ge(ye){return $(ye)===v}function Wt(ye){return $(ye)===b}fr.ContextConsumer=q,fr.ContextProvider=K,fr.Element=le,fr.ForwardRef=me,fr.Fragment=se,fr.Lazy=Se,fr.Memo=qe,fr.Portal=ae,fr.Profiler=ue,fr.StrictMode=Ee,fr.Suspense=de,fr.SuspenseList=ie,fr.isAsyncMode=he,fr.isConcurrentMode=Ce,fr.isContextConsumer=Me,fr.isContextProvider=Ie,fr.isElement=Ye,fr.isForwardRef=at,fr.isFragment=gt,fr.isLazy=Ht,fr.isMemo=Ze,fr.isPortal=ct,fr.isProfiler=wt,fr.isStrictMode=zt,fr.isSuspense=Ge,fr.isSuspenseList=Wt,fr.isValidElementType=z,fr.typeOf=$})();(function(e){e.exports=fr})(wde);function Nde(){const e=gde();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],o=t;for(;o;)i.push(o),o=o.next;return i},subscribe(i){let o=!0,c=n={callback:i,next:null,prev:n};return c.prev?c.prev.next=c:t=c,function(){!o||t===null||(o=!1,c.next?c.next.prev=c.prev:n=c.prev,c.prev?c.prev.next=c.next:t=c.next)}}}}const fI={notify(){},get:()=>[]};function Ede(e,t){let n,i=fI;function o(x){return h(),i.subscribe(x)}function c(){i.notify()}function u(){b.onStateChange&&b.onStateChange()}function m(){return Boolean(n)}function h(){n||(n=t?t.addNestedSub(u):e.subscribe(u),i=Nde())}function v(){n&&(n(),n=void 0,i.clear(),i=fI)}const b={addNestedSub:o,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:m,trySubscribe:h,tryUnsubscribe:v,getListeners:()=>i};return b}const _de=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tde=_de?k.exports.useLayoutEffect:k.exports.useEffect;var Rde="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function Ade({store:e,context:t,children:n,serverState:i}){const o=k.exports.useMemo(()=>{const m=Ede(e);return{store:e,subscription:m,getServerState:i?()=>i:void 0}},[e,i]),c=k.exports.useMemo(()=>e.getState(),[e]);return Tde(()=>{const{subscription:m}=o;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),c!==e.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[o,c]),_((t||Tc).Provider,{value:o,children:n},void 0,!1,{fileName:Rde,lineNumber:39,columnNumber:23},this)}function qF(e=Tc){const t=e===Tc?GF:()=>k.exports.useContext(e);return function(){const{store:i}=t();return i}}const kde=qF();function Ode(e=Tc){const t=e===Tc?kde:qF(e);return function(){return t().dispatch}}const Dde=Ode();bde(VF.exports.useSyncExternalStoreWithSelector);vde(By.exports.unstable_batchedUpdates);var wO="persist:",KF="persist/FLUSH",NO="persist/REHYDRATE",XF="persist/PAUSE",ZF="persist/PERSIST",QF="persist/PURGE",JF="persist/REGISTER",Pde=-1;function fy(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fy=function(n){return typeof n}:fy=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fy(e)}function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Mde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dI(n,!0).forEach(function(i){Ide(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ide(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lde(e,t,n,i){var o=i.debug,c=Mde({},n);return e&&fy(e)==="object"&&Object.keys(e).forEach(function(u){if(u!=="_persist"){if(t[u]!==n[u]){o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",u);return}c[u]=e[u]}}),o&&e&&fy(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),c}function Fde(e){var t=e.blacklist||null,n=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,c="".concat(e.keyPrefix!==void 0?e.keyPrefix:wO).concat(e.key),u=e.storage,m;e.serialize===!1?m=function($){return $}:typeof e.serialize=="function"?m=e.serialize:m=zde;var h=e.writeFailHandler||null,v={},b={},x=[],w=null,N=null,R=function($){Object.keys($).forEach(function(q){!B(q)||v[q]!==$[q]&&x.indexOf(q)===-1&&x.push(q)}),Object.keys(v).forEach(function(q){$[q]===void 0&&B(q)&&x.indexOf(q)===-1&&v[q]!==void 0&&x.push(q)}),w===null&&(w=setInterval(O,o)),v=$};function O(){if(x.length===0){w&&clearInterval(w),w=null;return}var z=x.shift(),$=i.reduce(function(q,K){return K.in(q,z,v)},v[z]);if($!==void 0)try{b[z]=m($)}catch(q){console.error("redux-persist/createPersistoid: error serializing state",q)}else delete b[z];x.length===0&&M()}function M(){Object.keys(b).forEach(function(z){v[z]===void 0&&delete b[z]}),N=u.setItem(c,m(b)).catch(I)}function B(z){return!(n&&n.indexOf(z)===-1&&z!=="_persist"||t&&t.indexOf(z)!==-1)}function I(z){h&&h(z),z&&console.error("Error storing data",z)}var F=function(){for(;x.length!==0;)O();return N||Promise.resolve()};return{update:R,flush:F}}function zde(e){return JSON.stringify(e)}function Bde(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:wO).concat(e.key),i=e.storage,o=e.debug,c;return e.deserialize===!1?c=function(m){return m}:typeof e.deserialize=="function"?c=e.deserialize:c=Ude,i.getItem(n).then(function(u){if(u)try{var m={},h=c(u);return Object.keys(h).forEach(function(v){m[v]=t.reduceRight(function(b,x){return x.out(b,v,h)},c(h[v]))}),m}catch(v){throw o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(u),v),v}else return})}function Ude(e){return JSON.parse(e)}function $de(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:wO).concat(e.key);return t.removeItem(n,jde)}function jde(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pI(n,!0).forEach(function(i){Vde(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Vde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hde(e,t){if(e==null)return{};var n=Wde(e,t),i,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)i=c[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function Wde(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Gde=5e3;function ez(e,t){{if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:Pde;e.debug;var i=e.stateReconciler===void 0?Lde:e.stateReconciler,o=e.getStoredState||Bde,c=e.timeout!==void 0?e.timeout:Gde,u=null,m=!1,h=!0,v=function(x){return x._persist.rehydrated&&u&&!h&&u.update(x),x};return function(b,x){var w=b||{},N=w._persist,R=Hde(w,["_persist"]),O=R;if(x.type===ZF){var M=!1,B=function(le,me){M&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),le,me),M||(x.rehydrate(e.key,le,me),M=!0)};if(c&&setTimeout(function(){!M&&B(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},c),h=!1,u||(u=Fde(e)),N)return fc({},t(O,x),{_persist:N});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),o(e).then(function(K){var le=e.migrate||function(me,se){return Promise.resolve(me)};le(K,n).then(function(me){B(me)},function(me){me&&console.error("redux-persist: migration error",me),B(void 0,me)})},function(K){B(void 0,K)}),fc({},t(O,x),{_persist:{version:n,rehydrated:!1}})}else{if(x.type===QF)return m=!0,x.result($de(e)),fc({},t(O,x),{_persist:N});if(x.type===KF)return x.result(u&&u.flush()),fc({},t(O,x),{_persist:N});if(x.type===XF)h=!0;else if(x.type===NO){if(m)return fc({},O,{_persist:fc({},N,{rehydrated:!0})});if(x.key===e.key){var I=t(O,x),F=x.payload,z=i!==!1&&F!==void 0?i(F,b,I,e):I,$=fc({},z,{_persist:fc({},N,{rehydrated:!0})});return v($)}}}if(!N)return t(b,x);var q=t(O,x);return q===O?b:v(fc({},q,{_persist:N}))}}function mI(e){return Kde(e)||qde(e)||Yde()}function Yde(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function qde(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Kde(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function bA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hI(n,!0).forEach(function(i){Xde(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Xde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tz={registry:[],bootstrapped:!1},Zde=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tz,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case JF:return bA({},t,{registry:[].concat(mI(t.registry),[n.key])});case NO:var i=t.registry.indexOf(n.key),o=mI(t.registry);return o.splice(i,1),bA({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Qde(e,t,n){{var i=t||{},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.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=n||!1,u=SO(Zde,tz,t&&t.enhancer?t.enhancer:void 0),m=function(x){u.dispatch({type:JF,key:x})},h=function(x,w,N){var R={type:NO,payload:w,err:N,key:x};e.dispatch(R),u.dispatch(R),c&&v.getState().bootstrapped&&(c(),c=!1)},v=bA({},u,{purge:function(){var x=[];return e.dispatch({type:QF,result:function(N){x.push(N)}}),Promise.all(x)},flush:function(){var x=[];return e.dispatch({type:KF,result:function(N){x.push(N)}}),Promise.all(x)},pause:function(){e.dispatch({type:XF})},persist:function(){e.dispatch({type:ZF,register:m,rehydrate:h})}});return t&&t.manualPersist||v.persist(),v}var EO={},_O={};_O.__esModule=!0;_O.default=tpe;function r2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r2=function(n){return typeof n}:r2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r2(e)}function KR(){}var Jde={getItem:KR,setItem:KR,removeItem:KR};function epe(e){if((typeof self>"u"?"undefined":r2(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function tpe(e){var t="".concat(e,"Storage");return epe(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),Jde)}EO.__esModule=!0;EO.default=ape;var npe=rpe(_O);function rpe(e){return e&&e.__esModule?e:{default:e}}function ape(e){var t=(0,npe.default)(e);return{getItem:function(i){return new Promise(function(o,c){o(t.getItem(i))})},setItem:function(i,o){return new Promise(function(c,u){c(t.setItem(i,o))})},removeItem:function(i){return new Promise(function(o,c){o(t.removeItem(i))})}}}var TO=void 0,ipe=ope(EO);function ope(e){return e&&e.__esModule?e:{default:e}}var spe=(0,ipe.default)("local");TO=spe;const SA=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),lpe=e=>{const i=e.split(",").map(o=>o.split(":")).map(o=>({seed:parseInt(o[0]),weight:parseFloat(o[1])}));return RO(i)?i:!1},RO=e=>Boolean(typeof e=="string"?lpe(e):e.length&&!e.some(t=>{const{seed:n,weight:i}=t,o=!isNaN(parseInt(n.toString(),10)),c=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(o&&c)})),xA=e=>e.reduce((t,n,i,o)=>{const{seed:c,weight:u}=n;return t+=`${c}:${u}`,i!==o.length-1&&(t+=","),t},""),upe=e=>e.split(",").map(i=>i.split(":")).map(i=>[parseInt(i[0]),parseFloat(i[1])]),nz={prompt:"",iterations:1,steps: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},cpe=nz,rz=xO({name:"options",initialState:cpe,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=SA(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},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)=>{e.img2imgStrength=t.payload},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:i}=t.payload,o={...e,[n]:i};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&i===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{type:n,postprocessing:i,sampler:o,prompt:c,seed:u,variations:m,steps:h,cfg_scale:v,seamless:b,width:x,height:w,strength:N,fit:R,init_image_path:O,mask_image_path:M}=t.payload.image;n==="img2img"?(O&&(e.initialImagePath=O),M&&(e.maskPath=M),N&&(e.img2imgStrength=N),typeof R=="boolean"&&(e.shouldFitToWidthHeight=R),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,m&&m.length>0?(e.seedWeights=xA(m),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,u&&(e.seed=u,e.shouldRandomizeSeed=!1);let B=["gfpgan","esrgan"];i&&i.length>0&&i.forEach(I=>{if(I.type==="gfpgan"){const{strength:F}=I;F&&(e.gfpganStrength=F),e.shouldRunGFPGAN=!0,B=B.filter(z=>z!=="gfpgan")}if(I.type==="esrgan"){const{scale:F,strength:z}=I;F&&(e.upscalingLevel=F),z&&(e.upscalingStrength=z),e.shouldRunESRGAN=!0,B=B.filter($=>$!=="esrgan")}}),B.forEach(I=>{I==="esrgan"&&(e.shouldRunESRGAN=!1),I==="gfpgan"&&(e.shouldRunGFPGAN=!1)}),c&&(e.prompt=SA(c)),o&&(e.sampler=o),h&&(e.steps=h),v&&(e.cfgScale=v),typeof b=="boolean"&&(e.seamless=b),x&&(e.width=x),w&&(e.height=w)},resetOptionsState:e=>({...e,...nz}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:az,setIterations:fpe,setSteps:iz,setCfgScale:oz,setHeight:sz,setWidth:CA,setSampler:lz,setSeed:Fy,setSeamless:dpe,setImg2imgStrength:uz,setGfpganStrength:wA,setUpscalingLevel:NA,setUpscalingStrength:EA,setShouldUseInitImage:ppe,setInitialImagePath:IC,setMaskPath:AO,resetSeed:vge,resetOptionsState:gge,setShouldFitToWidthHeight:cz,setParameter:yge,setShouldGenerateVariations:mpe,setSeedWeights:fz,setVariationAmount:hpe,setAllParameters:dz,setShouldRunGFPGAN:vpe,setShouldRunESRGAN:gpe,setShouldRandomizeSeed:ype}=rz.actions,bpe=rz.reducer;var Yr={exports:{}};/**
|
|
* @license
|
|
* Lodash <https://lodash.com/>
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
* Released under MIT license <https://lodash.com/license>
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
*/(function(e,t){(function(){var n,i="4.17.21",o=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",m="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",v=500,b="__lodash_placeholder__",x=1,w=2,N=4,R=1,O=2,M=1,B=2,I=4,F=8,z=16,$=32,q=64,K=128,le=256,me=512,se=30,Se="...",qe=800,ae=16,ue=1,Ee=2,de=3,ie=1/0,xe=9007199254740991,Ne=17976931348623157e292,he=0/0,Ce=4294967295,Me=Ce-1,Ie=Ce>>>1,Ye=[["ary",K],["bind",M],["bindKey",B],["curry",F],["curryRight",z],["flip",me],["partial",$],["partialRight",q],["rearg",le]],at="[object Arguments]",gt="[object Array]",Ht="[object AsyncFunction]",Ze="[object Boolean]",ct="[object Date]",wt="[object DOMException]",zt="[object Error]",Ge="[object Function]",Wt="[object GeneratorFunction]",ye="[object Map]",et="[object Number]",Nt="[object Null]",lt="[object Object]",xn="[object Promise]",$n="[object Proxy]",Lt="[object RegExp]",an="[object Set]",On="[object String]",gn="[object Symbol]",He="[object Undefined]",Je="[object WeakMap]",tn="[object WeakSet]",kt="[object ArrayBuffer]",Oe="[object DataView]",Yt="[object Float32Array]",_n="[object Float64Array]",je="[object Int8Array]",it="[object Int16Array]",_t="[object Int32Array]",hn="[object Uint8Array]",Qt="[object Uint8ClampedArray]",Tn="[object Uint16Array]",Ln="[object Uint32Array]",kr=/\b__p \+= '';/g,Dn=/\b(__p \+=) '' \+/g,va=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jn=/&(?:amp|lt|gt|quot|#39);/g,Rn=/[&<>"']/g,ga=RegExp(jn.source),Sr=RegExp(Rn.source),ko=/<%-([\s\S]+?)%>/g,as=/<%([\s\S]+?)%>/g,is=/<%=([\s\S]+?)%>/g,Oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Do=/^\w*$/,vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ia=/[\\^$.*+?()[\]{}|]/g,Fi=RegExp(Ia.source),La=/^\s+/,X=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Ct=/,? & /,on=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,nt=/\\(\\)?/g,qt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vn=/\w*$/,Bn=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,Ur=/^\[object .+?Constructor\]$/,vi=/^0o[0-7]+$/i,Po=/^(?:0|[1-9]\d*)$/,ya=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oo=/($^)/,Nu=/['\n\r\u2028\u2029\\]/g,gi="\\ud800-\\udfff",Hs="\\u0300-\\u036f",zi="\\ufe20-\\ufe2f",Jt="\\u20d0-\\u20ff",Bi=Hs+zi+Jt,ba="\\u2700-\\u27bf",Mo="a-z\\xdf-\\xf6\\xf8-\\xff",os="\\xac\\xb1\\xd7\\xf7",Io="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ss="\\u2000-\\u206f",ls=" \\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",Lo="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\ufe0e\\ufe0f",us=os+Io+ss+ls,Ws="['\u2019]",Gs="["+gi+"]",yi="["+us+"]",Mr="["+Bi+"]",Fa="\\d+",Sa="["+ba+"]",za="["+Mo+"]",cs="[^"+gi+us+Fa+ba+Mo+Lo+"]",zo="\\ud83c[\\udffb-\\udfff]",fs="(?:"+Mr+"|"+zo+")",Ml="[^"+gi+"]",xa="(?:\\ud83c[\\udde6-\\uddff]){2}",Bo="[\\ud800-\\udbff][\\udc00-\\udfff]",Ba="["+Lo+"]",bi="\\u200d",Ys="(?:"+za+"|"+cs+")",un="(?:"+Ba+"|"+cs+")",Si="(?:"+Ws+"(?:d|ll|m|re|s|t|ve))?",Uo="(?:"+Ws+"(?:D|LL|M|RE|S|T|VE))?",$t=fs+"?",qs="["+Fo+"]?",xr="(?:"+bi+"(?:"+[Ml,xa,Bo].join("|")+")"+qs+$t+")*",Ui="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ya="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",so=qs+$t+xr,_r="(?:"+[Sa,xa,Bo].join("|")+")"+so,or="(?:"+[Ml+Mr+"?",Mr,xa,Bo,Gs].join("|")+")",$o=RegExp(Ws,"g"),Kr=RegExp(Mr,"g"),pr=RegExp(zo+"(?="+zo+")|"+or+so,"g"),aa=RegExp([Ba+"?"+za+"+"+Si+"(?="+[yi,Ba,"$"].join("|")+")",un+"+"+Uo+"(?="+[yi,Ba+Ys,"$"].join("|")+")",Ba+"?"+Ys+"+"+Si,Ba+"+"+Uo,Ya,Ui,Fa,_r].join("|"),"g"),Eu=RegExp("["+bi+gi+Bi+Fo+"]"),lo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xi=["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"],Ks=-1,vn={};vn[Yt]=vn[_n]=vn[je]=vn[it]=vn[_t]=vn[hn]=vn[Qt]=vn[Tn]=vn[Ln]=!0,vn[at]=vn[gt]=vn[kt]=vn[Ze]=vn[Oe]=vn[ct]=vn[zt]=vn[Ge]=vn[ye]=vn[et]=vn[lt]=vn[Lt]=vn[an]=vn[On]=vn[Je]=!1;var Fn={};Fn[at]=Fn[gt]=Fn[kt]=Fn[Oe]=Fn[Ze]=Fn[ct]=Fn[Yt]=Fn[_n]=Fn[je]=Fn[it]=Fn[_t]=Fn[ye]=Fn[et]=Fn[lt]=Fn[Lt]=Fn[an]=Fn[On]=Fn[gn]=Fn[hn]=Fn[Qt]=Fn[Tn]=Fn[Ln]=!0,Fn[zt]=Fn[Ge]=Fn[Je]=!1;var Il={\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"},Ua={"&":"&","<":"<",">":">",'"':""","'":"'"},W={"&":"&","<":"<",">":">",""":'"',"'":"'"},Q={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pe=parseFloat,ot=parseInt,cn=typeof vc=="object"&&vc&&vc.Object===Object&&vc,zn=typeof self=="object"&&self&&self.Object===Object&&self,Kt=cn||zn||Function("return this")(),S=t&&!t.nodeType&&t,A=S&&!0&&e&&!e.nodeType&&e,V=A&&A.exports===S,G=V&&cn.process,te=function(){try{var re=A&&A.require&&A.require("util").types;return re||G&&G.binding&&G.binding("util")}catch{}}(),ze=te&&te.isArrayBuffer,we=te&&te.isDate,Ve=te&&te.isMap,st=te&&te.isRegExp,St=te&&te.isSet,Ot=te&&te.isTypedArray;function yt(re,Re,be){switch(be.length){case 0:return re.call(Re);case 1:return re.call(Re,be[0]);case 2:return re.call(Re,be[0],be[1]);case 3:return re.call(Re,be[0],be[1],be[2])}return re.apply(Re,be)}function jt(re,Re,be,ht){for(var nn=-1,Kn=re==null?0:re.length;++nn<Kn;){var Xr=re[nn];Re(ht,Xr,be(Xr),re)}return ht}function Tt(re,Re){for(var be=-1,ht=re==null?0:re.length;++be<ht&&Re(re[be],be,re)!==!1;);return re}function Bt(re,Re){for(var be=re==null?0:re.length;be--&&Re(re[be],be,re)!==!1;);return re}function Ci(re,Re){for(var be=-1,ht=re==null?0:re.length;++be<ht;)if(!Re(re[be],be,re))return!1;return!0}function Ca(re,Re){for(var be=-1,ht=re==null?0:re.length,nn=0,Kn=[];++be<ht;){var Xr=re[be];Re(Xr,be,re)&&(Kn[nn++]=Xr)}return Kn}function jo(re,Re){var be=re==null?0:re.length;return!!be&&Tu(re,Re,0)>-1}function _u(re,Re,be){for(var ht=-1,nn=re==null?0:re.length;++ht<nn;)if(be(Re,re[ht]))return!0;return!1}function Pn(re,Re){for(var be=-1,ht=re==null?0:re.length,nn=Array(ht);++be<ht;)nn[be]=Re(re[be],be,re);return nn}function wi(re,Re){for(var be=-1,ht=Re.length,nn=re.length;++be<ht;)re[nn+be]=Re[be];return re}function ds(re,Re,be,ht){var nn=-1,Kn=re==null?0:re.length;for(ht&&Kn&&(be=re[++nn]);++nn<Kn;)be=Re(be,re[nn],nn,re);return be}function od(re,Re,be,ht){var nn=re==null?0:re.length;for(ht&&nn&&(be=re[--nn]);nn--;)be=Re(be,re[nn],nn,re);return be}function Cv(re,Re){for(var be=-1,ht=re==null?0:re.length;++be<ht;)if(Re(re[be],be,re))return!0;return!1}var FC=ld("length");function lb(re){return re.split("")}function wv(re){return re.match(on)||[]}function Nv(re,Re,be){var ht;return be(re,function(nn,Kn,Xr){if(Re(nn,Kn,Xr))return ht=Kn,!1}),ht}function sd(re,Re,be,ht){for(var nn=re.length,Kn=be+(ht?1:-1);ht?Kn--:++Kn<nn;)if(Re(re[Kn],Kn,re))return Kn;return-1}function Tu(re,Re,be){return Re===Re?Tv(re,Re,be):sd(re,ps,be)}function zC(re,Re,be,ht){for(var nn=be-1,Kn=re.length;++nn<Kn;)if(ht(re[nn],Re))return nn;return-1}function ps(re){return re!==re}function ub(re,Re){var be=re==null?0:re.length;return be?Ac(re,Re)/be:he}function ld(re){return function(Re){return Re==null?n:Re[re]}}function ud(re){return function(Re){return re==null?n:re[Re]}}function im(re,Re,be,ht,nn){return nn(re,function(Kn,Xr,Jn){be=ht?(ht=!1,Kn):Re(be,Kn,Xr,Jn)}),be}function BC(re,Re){var be=re.length;for(re.sort(Re);be--;)re[be]=re[be].value;return re}function Ac(re,Re){for(var be,ht=-1,nn=re.length;++ht<nn;){var Kn=Re(re[ht]);Kn!==n&&(be=be===n?Kn:be+Kn)}return be}function om(re,Re){for(var be=-1,ht=Array(re);++be<re;)ht[be]=Re(be);return ht}function Ni(re,Re){return Pn(Re,function(be){return[be,re[be]]})}function ms(re){return re&&re.slice(0,mb(re)+1).replace(La,"")}function Hn(re){return function(Re){return re(Re)}}function Vo(re,Re){return Pn(Re,function(be){return re[be]})}function Ru(re,Re){return re.has(Re)}function cd(re,Re){for(var be=-1,ht=re.length;++be<ht&&Tu(Re,re[be],0)>-1;);return be}function cb(re,Re){for(var be=re.length;be--&&Tu(Re,re[be],0)>-1;);return be}function fd(re,Re){for(var be=re.length,ht=0;be--;)re[be]===Re&&++ht;return ht}var UC=ud(Il),$C=ud(Ua);function Ev(re){return"\\"+Q[re]}function jC(re,Re){return re==null?n:re[Re]}function kc(re){return Eu.test(re)}function VC(re){return lo.test(re)}function fb(re){for(var Re,be=[];!(Re=re.next()).done;)be.push(Re.value);return be}function _v(re){var Re=-1,be=Array(re.size);return re.forEach(function(ht,nn){be[++Re]=[nn,ht]}),be}function db(re,Re){return function(be){return re(Re(be))}}function Ll(re,Re){for(var be=-1,ht=re.length,nn=0,Kn=[];++be<ht;){var Xr=re[be];(Xr===Re||Xr===b)&&(re[be]=b,Kn[nn++]=be)}return Kn}function dd(re){var Re=-1,be=Array(re.size);return re.forEach(function(ht){be[++Re]=ht}),be}function Oc(re){var Re=-1,be=Array(re.size);return re.forEach(function(ht){be[++Re]=[ht,ht]}),be}function Tv(re,Re,be){for(var ht=be-1,nn=re.length;++ht<nn;)if(re[ht]===Re)return ht;return-1}function pb(re,Re,be){for(var ht=be+1;ht--;)if(re[ht]===Re)return ht;return ht}function Au(re){return kc(re)?WC(re):FC(re)}function Ho(re){return kc(re)?GC(re):lb(re)}function mb(re){for(var Re=re.length;Re--&&X.test(re.charAt(Re)););return Re}var HC=ud(W);function WC(re){for(var Re=pr.lastIndex=0;pr.test(re);)++Re;return Re}function GC(re){return re.match(pr)||[]}function YC(re){return re.match(aa)||[]}var qC=function re(Re){Re=Re==null?Kt:Dc.defaults(Kt.Object(),Re,Dc.pick(Kt,xi));var be=Re.Array,ht=Re.Date,nn=Re.Error,Kn=Re.Function,Xr=Re.Math,Jn=Re.Object,Xs=Re.RegExp,sm=Re.String,$i=Re.TypeError,Zs=be.prototype,KC=Kn.prototype,Pc=Jn.prototype,lm=Re["__core-js_shared__"],um=KC.toString,er=Pc.hasOwnProperty,hb=0,vb=function(){var l=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),pd=Pc.toString,qa=um.call(Jn),gb=Kt._,XC=Xs("^"+um.call(er).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cm=V?Re.Buffer:n,Fl=Re.Symbol,fm=Re.Uint8Array,yb=cm?cm.allocUnsafe:n,md=db(Jn.getPrototypeOf,Jn),dm=Jn.create,Mc=Pc.propertyIsEnumerable,pm=Zs.splice,Ic=Fl?Fl.isConcatSpreadable:n,hd=Fl?Fl.iterator:n,ku=Fl?Fl.toStringTag:n,mm=function(){try{var l=jl(Jn,"defineProperty");return l({},"",{}),l}catch{}}(),Rv=Re.clearTimeout!==Kt.clearTimeout&&Re.clearTimeout,Av=ht&&ht.now!==Kt.Date.now&&ht.now,Lc=Re.setTimeout!==Kt.setTimeout&&Re.setTimeout,Qs=Xr.ceil,vd=Xr.floor,kv=Jn.getOwnPropertySymbols,bb=cm?cm.isBuffer:n,Sb=Re.isFinite,xb=Zs.join,Cb=db(Jn.keys,Jn),$r=Xr.max,ia=Xr.min,ZC=ht.now,wb=Re.parseInt,Nb=Xr.random,QC=Zs.reverse,Ov=jl(Re,"DataView"),Js=jl(Re,"Map"),gd=jl(Re,"Promise"),hs=jl(Re,"Set"),Fc=jl(Re,"WeakMap"),zc=jl(Jn,"create"),Bc=Fc&&new Fc,Uc={},$c=Vu(Ov),hm=Vu(Js),vm=Vu(gd),Dv=Vu(hs),JC=Vu(Fc),jc=Fl?Fl.prototype:n,yd=jc?jc.valueOf:n,Eb=jc?jc.toString:n;function L(l){if(Rr(l)&&!sn(l)&&!(l instanceof An)){if(l instanceof uo)return l;if(er.call(l,"__wrapped__"))return n1(l)}return new uo(l)}var zl=function(){function l(){}return function(d){if(!wr(d))return{};if(dm)return dm(d);l.prototype=d;var g=new l;return l.prototype=n,g}}();function el(){}function uo(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}L.templateSettings={escape:ko,evaluate:as,interpolate:is,variable:"",imports:{_:L}},L.prototype=el.prototype,L.prototype.constructor=L,uo.prototype=zl(el.prototype),uo.prototype.constructor=uo;function An(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ce,this.__views__=[]}function Ft(){var l=new An(this.__wrapped__);return l.__actions__=sa(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=sa(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=sa(this.__views__),l}function Vc(){if(this.__filtered__){var l=new An(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function jr(){var l=this.__wrapped__.value(),d=this.__dir__,g=sn(l),E=d<0,P=g?l.length:0,j=Im(0,P,this.__views__),Y=j.start,Z=j.end,oe=Z-Y,De=E?Z:Y-1,Ae=this.__iteratees__,Le=Ae.length,Qe=0,vt=ia(oe,this.__takeCount__);if(!g||!E&&P==oe&&vt==oe)return Nm(l,this.__actions__);var Mt=[];e:for(;oe--&&Qe<vt;){De+=d;for(var pn=-1,Ut=l[De];++pn<Le;){var bn=Ae[pn],kn=bn.iteratee,Va=bn.type,yr=kn(Ut);if(Va==Ee)Ut=yr;else if(!yr){if(Va==ue)continue e;break e}}Mt[Qe++]=Ut}return Mt}An.prototype=zl(el.prototype),An.prototype.constructor=An;function fn(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 Ou(){this.__data__=zc?zc(null):{},this.size=0}function bd(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function Pv(l){var d=this.__data__;if(zc){var g=d[l];return g===h?n:g}return er.call(d,l)?d[l]:n}function Un(l){var d=this.__data__;return zc?d[l]!==n:er.call(d,l)}function tl(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=zc&&d===n?h:d,this}fn.prototype.clear=Ou,fn.prototype.delete=bd,fn.prototype.get=Pv,fn.prototype.has=Un,fn.prototype.set=tl;function $a(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 Du(){this.__data__=[],this.size=0}function Wo(l){var d=this.__data__,g=Sm(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():pm.call(d,g,1),--this.size,!0}function nl(l){var d=this.__data__,g=Sm(d,l);return g<0?n:d[g][1]}function Pu(l){return Sm(this.__data__,l)>-1}function gm(l,d){var g=this.__data__,E=Sm(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}$a.prototype.clear=Du,$a.prototype.delete=Wo,$a.prototype.get=nl,$a.prototype.has=Pu,$a.prototype.set=gm;function rl(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 ew(){this.size=0,this.__data__={hash:new fn,map:new(Js||$a),string:new fn}}function Sd(l){var d=Pm(this,l).delete(l);return this.size-=d?1:0,d}function Ka(l){return Pm(this,l).get(l)}function Mv(l){return Pm(this,l).has(l)}function _b(l,d){var g=Pm(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}rl.prototype.clear=ew,rl.prototype.delete=Sd,rl.prototype.get=Ka,rl.prototype.has=Mv,rl.prototype.set=_b;function al(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new rl;++d<g;)this.add(l[d])}function Mu(l){return this.__data__.set(l,h),this}function Iv(l){return this.__data__.has(l)}al.prototype.add=al.prototype.push=Mu,al.prototype.has=Iv;function Zr(l){var d=this.__data__=new $a(l);this.size=d.size}function ym(){this.__data__=new $a,this.size=0}function Lv(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function Fv(l){return this.__data__.get(l)}function xd(l){return this.__data__.has(l)}function Hc(l,d){var g=this.__data__;if(g instanceof $a){var E=g.__data__;if(!Js||E.length<o-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new rl(E)}return g.set(l,d),this.size=g.size,this}Zr.prototype.clear=ym,Zr.prototype.delete=Lv,Zr.prototype.get=Fv,Zr.prototype.has=xd,Zr.prototype.set=Hc;function vs(l,d){var g=sn(l),E=!g&&Wu(l),P=!g&&!E&&_s(l),j=!g&&!E&&!P&&Gl(l),Y=g||E||P||j,Z=Y?om(l.length,sm):[],oe=Z.length;for(var De in l)(d||er.call(l,De))&&!(Y&&(De=="length"||P&&(De=="offset"||De=="parent")||j&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||ws(De,oe)))&&Z.push(De);return Z}function Tb(l){var d=l.length;return d?l[co(0,d-1)]:n}function Iu(l,d){return Fm(sa(l),Bl(d,0,l.length))}function Rb(l){return Fm(sa(l))}function bm(l,d,g){(g!==n&&!Yo(l[d],g)||g===n&&!(d in l))&&gs(l,d,g)}function Cd(l,d,g){var E=l[d];(!(er.call(l,d)&&Yo(E,g))||g===n&&!(d in l))&&gs(l,d,g)}function Sm(l,d){for(var g=l.length;g--;)if(Yo(l[g][0],d))return g;return-1}function Ab(l,d,g,E){return Ul(l,function(P,j,Y){d(E,P,g(P),Y)}),E}function zv(l,d){return l&&ja(d,ca(d),l)}function kb(l,d){return l&&ja(d,Ri(d),l)}function gs(l,d,g){d=="__proto__"&&mm?mm(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function Bv(l,d){for(var g=-1,E=d.length,P=be(E),j=l==null;++g<E;)P[g]=j?n:Dg(l,d[g]);return P}function Bl(l,d,g){return l===l&&(g!==n&&(l=l<=g?l:g),d!==n&&(l=l>=d?l:d)),l}function ji(l,d,g,E,P,j){var Y,Z=d&x,oe=d&w,De=d&N;if(g&&(Y=P?g(l,E,P,j):g(l)),Y!==n)return Y;if(!wr(l))return l;var Ae=sn(l);if(Ae){if(Y=la(l),!Z)return sa(l,Y)}else{var Le=Cr(l),Qe=Le==Ge||Le==Wt;if(_s(l))return Tm(l,Z);if(Le==lt||Le==at||Qe&&!P){if(Y=oe||Qe?{}:Xb(l),!Z)return oe?fw(l,kb(Y,l)):Wi(l,zv(Y,l))}else{if(!Fn[Le])return P?l:{};Y=mw(l,Le,Z)}}j||(j=new Zr);var vt=j.get(l);if(vt)return vt;j.set(l,Y),Rg(l)?l.forEach(function(Ut){Y.add(ji(Ut,d,g,Ut,l,j))}):Tg(l)&&l.forEach(function(Ut,bn){Y.set(bn,ji(Ut,d,g,bn,l,j))});var Mt=De?oe?ju:Ld:oe?Ri:ca,pn=Ae?n:Mt(l);return Tt(pn||l,function(Ut,bn){pn&&(bn=Ut,Ut=l[bn]),Cd(Y,bn,ji(Ut,d,g,bn,l,j))}),Y}function tw(l){var d=ca(l);return function(g){return Ob(g,l,d)}}function Ob(l,d,g){var E=g.length;if(l==null)return!E;for(l=Jn(l);E--;){var P=g[E],j=d[P],Y=l[P];if(Y===n&&!(P in l)||!j(Y))return!1}return!0}function Db(l,d,g){if(typeof l!="function")throw new $i(u);return ul(function(){l.apply(n,g)},d)}function Or(l,d,g,E){var P=-1,j=jo,Y=!0,Z=l.length,oe=[],De=d.length;if(!Z)return oe;g&&(d=Pn(d,Hn(g))),E?(j=_u,Y=!1):d.length>=o&&(j=Ru,Y=!1,d=new al(d));e:for(;++P<Z;){var Ae=l[P],Le=g==null?Ae:g(Ae);if(Ae=E||Ae!==0?Ae:0,Y&&Le===Le){for(var Qe=De;Qe--;)if(d[Qe]===Le)continue e;oe.push(Ae)}else j(d,Le,E)||oe.push(Ae)}return oe}var Ul=Od(gr),wd=Od(rt,!0);function Uv(l,d){var g=!0;return Ul(l,function(E,P,j){return g=!!d(E,P,j),g}),g}function ys(l,d,g){for(var E=-1,P=l.length;++E<P;){var j=l[E],Y=d(j);if(Y!=null&&(Z===n?Y===Y&&!Nn(Y):g(Y,Z)))var Z=Y,oe=j}return oe}function nw(l,d,g,E){var P=l.length;for(g=rn(g),g<0&&(g=-g>P?0:P+g),E=E===n||E>P?P:rn(E),E<0&&(E+=P),E=g>E?0:Yu(E);g<E;)l[g++]=d;return l}function xm(l,d){var g=[];return Ul(l,function(E,P,j){d(E,P,j)&&g.push(E)}),g}function wa(l,d,g,E,P){var j=-1,Y=l.length;for(g||(g=og),P||(P=[]);++j<Y;){var Z=l[j];d>0&&g(Z)?d>1?wa(Z,d-1,g,E,P):wi(P,Z):E||(P[P.length]=Z)}return P}var $v=Qc(),Lu=Qc(!0);function gr(l,d){return l&&$v(l,d,ca)}function rt(l,d){return l&&Lu(l,d,ca)}function Vi(l,d){return Ca(d,function(g){return Ts(l[g])})}function Na(l,d){d=Ss(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[_i(d[g++])];return g&&g==E?l:n}function Pb(l,d,g){var E=d(l);return sn(l)?E:wi(E,g(l))}function Xa(l){return l==null?l===n?He:Nt:ku&&ku in Jn(l)?Kb(l):cg(l)}function jv(l,d){return l>d}function rw(l,d){return l!=null&&er.call(l,d)}function aw(l,d){return l!=null&&d in Jn(l)}function oa(l,d,g){return l>=ia(d,g)&&l<$r(d,g)}function Vv(l,d,g){for(var E=g?_u:jo,P=l[0].length,j=l.length,Y=j,Z=be(j),oe=1/0,De=[];Y--;){var Ae=l[Y];Y&&d&&(Ae=Pn(Ae,Hn(d))),oe=ia(Ae.length,oe),Z[Y]=!g&&(d||P>=120&&Ae.length>=120)?new al(Y&&Ae):n}Ae=l[0];var Le=-1,Qe=Z[0];e:for(;++Le<P&&De.length<oe;){var vt=Ae[Le],Mt=d?d(vt):vt;if(vt=g||vt!==0?vt:0,!(Qe?Ru(Qe,Mt):E(De,Mt,g))){for(Y=j;--Y;){var pn=Z[Y];if(!(pn?Ru(pn,Mt):E(l[Y],Mt,g)))continue e}Qe&&Qe.push(Mt),De.push(vt)}}return De}function iw(l,d,g,E){return gr(l,function(P,j,Y){d(E,g(P),j,Y)}),E}function Nd(l,d,g){d=Ss(d,l),l=ll(l,d);var E=l==null?l:l[_i(po(d))];return E==null?n:yt(E,l,g)}function Hv(l){return Rr(l)&&Xa(l)==at}function Ed(l){return Rr(l)&&Xa(l)==kt}function Wc(l){return Rr(l)&&Xa(l)==ct}function _d(l,d,g,E,P){return l===d?!0:l==null||d==null||!Rr(l)&&!Rr(d)?l!==l&&d!==d:ow(l,d,g,E,_d,P)}function ow(l,d,g,E,P,j){var Y=sn(l),Z=sn(d),oe=Y?gt:Cr(l),De=Z?gt:Cr(d);oe=oe==at?lt:oe,De=De==at?lt:De;var Ae=oe==lt,Le=De==lt,Qe=oe==De;if(Qe&&_s(l)){if(!_s(d))return!1;Y=!0,Ae=!1}if(Qe&&!Ae)return j||(j=new Zr),Y||Gl(l)?Id(l,d,g,E,P,j):qb(l,d,oe,g,E,P,j);if(!(g&R)){var vt=Ae&&er.call(l,"__wrapped__"),Mt=Le&&er.call(d,"__wrapped__");if(vt||Mt){var pn=vt?l.value():l,Ut=Mt?d.value():d;return j||(j=new Zr),P(pn,Ut,g,E,j)}}return Qe?(j||(j=new Zr),PO(l,d,g,E,P,j)):!1}function sw(l){return Rr(l)&&Cr(l)==ye}function Wv(l,d,g,E){var P=g.length,j=P,Y=!E;if(l==null)return!j;for(l=Jn(l);P--;){var Z=g[P];if(Y&&Z[2]?Z[1]!==l[Z[0]]:!(Z[0]in l))return!1}for(;++P<j;){Z=g[P];var oe=Z[0],De=l[oe],Ae=Z[1];if(Y&&Z[2]){if(De===n&&!(oe in l))return!1}else{var Le=new Zr;if(E)var Qe=E(De,Ae,oe,l,d,Le);if(!(Qe===n?_d(Ae,De,R|O,E,Le):Qe))return!1}}return!0}function Mb(l){if(!wr(l)||lg(l))return!1;var d=Ts(l)?XC:Ur;return d.test(Vu(l))}function lw(l){return Rr(l)&&Xa(l)==Lt}function Ib(l){return Rr(l)&&Cr(l)==an}function Lb(l){return Rr(l)&&Jd(l.length)&&!!vn[Xa(l)]}function Fb(l){return typeof l=="function"?l:l==null?Ai:typeof l=="object"?sn(l)?qv(l[0],l[1]):Bb(l):lp(l)}function Gv(l){if(!nf(l))return Cb(l);var d=[];for(var g in Jn(l))er.call(l,g)&&g!="constructor"&&d.push(g);return d}function uw(l){if(!wr(l))return bw(l);var d=nf(l),g=[];for(var E in l)E=="constructor"&&(d||!er.call(l,E))||g.push(E);return g}function Yv(l,d){return l<d}function zb(l,d){var g=-1,E=Jr(l)?be(l.length):[];return Ul(l,function(P,j,Y){E[++g]=d(P,j,Y)}),E}function Bb(l){var d=Mm(l);return d.length==1&&d[0][2]?ug(d[0][0],d[0][1]):function(g){return g===l||Wv(g,l,d)}}function qv(l,d){return Lm(l)&&Zb(d)?ug(_i(l),d):function(g){var E=Dg(g,l);return E===n&&E===d?df(g,l):_d(d,E,R|O)}}function Cm(l,d,g,E,P){l!==d&&$v(d,function(j,Y){if(P||(P=new Zr),wr(j))Ub(l,d,Y,g,Cm,E,P);else{var Z=E?E(Ns(l,Y),j,Y+"",l,d,P):n;Z===n&&(Z=j),bm(l,Y,Z)}},Ri)}function Ub(l,d,g,E,P,j,Y){var Z=Ns(l,g),oe=Ns(d,g),De=Y.get(oe);if(De){bm(l,g,De);return}var Ae=j?j(Z,oe,g+"",l,d,Y):n,Le=Ae===n;if(Le){var Qe=sn(oe),vt=!Qe&&_s(oe),Mt=!Qe&&!vt&&Gl(oe);Ae=oe,Qe||vt||Mt?sn(Z)?Ae=Z:Tr(Z)?Ae=sa(Z):vt?(Le=!1,Ae=Tm(oe,!0)):Mt?(Le=!1,Ae=Rm(oe,!0)):Ae=[]:Gu(oe)||Wu(oe)?(Ae=Z,Wu(Z)?Ae=kg(Z):(!wr(Z)||Ts(Z))&&(Ae=Xb(oe))):Le=!1}Le&&(Y.set(oe,Ae),P(Ae,oe,E,j,Y),Y.delete(oe)),bm(l,g,Ae)}function $b(l,d){var g=l.length;if(!!g)return d+=d<0?g:0,ws(d,g)?l[d]:n}function jb(l,d,g){d.length?d=Pn(d,function(j){return sn(j)?function(Y){return Na(Y,j.length===1?j[0]:j)}:j}):d=[Ai];var E=-1;d=Pn(d,Hn(Pt()));var P=zb(l,function(j,Y,Z){var oe=Pn(d,function(De){return De(j)});return{criteria:oe,index:++E,value:j}});return BC(P,function(j,Y){return Hb(j,Y,g)})}function Kv(l,d){return Dt(l,d,function(g,E){return df(l,E)})}function Dt(l,d,g){for(var E=-1,P=d.length,j={};++E<P;){var Y=d[E],Z=Na(l,Y);g(Z,Y)&&Fe(j,Ss(Y,l),Z)}return j}function wn(l){return function(d){return Na(d,l)}}function Wn(l,d,g,E){var P=E?zC:Tu,j=-1,Y=d.length,Z=l;for(l===d&&(d=sa(d)),g&&(Z=Pn(l,Hn(g)));++j<Y;)for(var oe=0,De=d[j],Ae=g?g(De):De;(oe=P(Z,Ae,oe,E))>-1;)Z!==l&&pm.call(Z,oe,1),pm.call(l,oe,1);return l}function Ir(l,d){for(var g=l?d.length:0,E=g-1;g--;){var P=d[g];if(g==E||P!==j){var j=P;ws(P)?pm.call(l,P,1):Td(l,P)}}return l}function co(l,d){return l+vd(Nb()*(d-l+1))}function Vb(l,d,g,E){for(var P=-1,j=$r(Qs((d-l)/(g||1)),0),Y=be(j);j--;)Y[E?j:++P]=l,l+=g;return Y}function Xv(l,d){var g="";if(!l||d<1||d>xe)return g;do d%2&&(g+=l),d=vd(d/2),d&&(l+=l);while(d);return g}function yn(l,d){return Es(Bd(l,d,Ai),l+"")}function cw(l){return Tb(pf(l))}function Zv(l,d){var g=pf(l);return Fm(g,Bl(d,0,g.length))}function Fe(l,d,g,E){if(!wr(l))return l;d=Ss(d,l);for(var P=-1,j=d.length,Y=j-1,Z=l;Z!=null&&++P<j;){var oe=_i(d[P]),De=g;if(oe==="__proto__"||oe==="constructor"||oe==="prototype")return l;if(P!=Y){var Ae=Z[oe];De=E?E(Ae,oe,Z):n,De===n&&(De=wr(Ae)?Ae:ws(d[P+1])?[]:{})}Cd(Z,oe,De),Z=Z[oe]}return l}var Qr=Bc?function(l,d){return Bc.set(l,d),l}:Ai,Gt=mm?function(l,d){return mm(l,"toString",{configurable:!0,enumerable:!1,value:Vg(d),writable:!0})}:Ai;function Gc(l){return Fm(pf(l))}function Vr(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 j=be(P);++E<P;)j[E]=l[E+d];return j}function Fu(l,d){var g;return Ul(l,function(E,P,j){return g=d(E,P,j),!g}),!!g}function Hi(l,d,g){var E=0,P=l==null?E:l.length;if(typeof d=="number"&&d===d&&P<=Ie){for(;E<P;){var j=E+P>>>1,Y=l[j];Y!==null&&!Nn(Y)&&(g?Y<=d:Y<d)?E=j+1:P=j}return P}return zu(l,d,Ai,g)}function zu(l,d,g,E){var P=0,j=l==null?0:l.length;if(j===0)return 0;d=g(d);for(var Y=d!==d,Z=d===null,oe=Nn(d),De=d===n;P<j;){var Ae=vd((P+j)/2),Le=g(l[Ae]),Qe=Le!==n,vt=Le===null,Mt=Le===Le,pn=Nn(Le);if(Y)var Ut=E||Mt;else De?Ut=Mt&&(E||Qe):Z?Ut=Mt&&Qe&&(E||!vt):oe?Ut=Mt&&Qe&&!vt&&(E||!pn):vt||pn?Ut=!1:Ut=E?Le<=d:Le<d;Ut?P=Ae+1:j=Ae}return ia(j,Me)}function Bu(l,d){for(var g=-1,E=l.length,P=0,j=[];++g<E;){var Y=l[g],Z=d?d(Y):Y;if(!g||!Yo(Z,oe)){var oe=Z;j[P++]=Y===0?0:Y}}return j}function Yc(l){return typeof l=="number"?l:Nn(l)?he:+l}function Za(l){if(typeof l=="string")return l;if(sn(l))return Pn(l,Za)+"";if(Nn(l))return Eb?Eb.call(l):"";var d=l+"";return d=="0"&&1/l==-ie?"-0":d}function bs(l,d,g){var E=-1,P=jo,j=l.length,Y=!0,Z=[],oe=Z;if(g)Y=!1,P=_u;else if(j>=o){var De=d?null:Md(l);if(De)return dd(De);Y=!1,P=Ru,oe=new al}else oe=d?[]:Z;e:for(;++E<j;){var Ae=l[E],Le=d?d(Ae):Ae;if(Ae=g||Ae!==0?Ae:0,Y&&Le===Le){for(var Qe=oe.length;Qe--;)if(oe[Qe]===Le)continue e;d&&oe.push(Le),Z.push(Ae)}else P(oe,Le,g)||(oe!==Z&&oe.push(Le),Z.push(Ae))}return Z}function Td(l,d){return d=Ss(d,l),l=ll(l,d),l==null||delete l[_i(po(d))]}function wm(l,d,g,E){return Fe(l,d,g(Na(l,d)),E)}function qc(l,d,g,E){for(var P=l.length,j=E?P:-1;(E?j--:++j<P)&&d(l[j],j,l););return g?Vr(l,E?0:j,E?j+1:P):Vr(l,E?j+1:0,E?P:j)}function Nm(l,d){var g=l;return g instanceof An&&(g=g.value()),ds(d,function(E,P){return P.func.apply(P.thisArg,wi([E],P.args))},g)}function Rd(l,d,g){var E=l.length;if(E<2)return E?bs(l[0]):[];for(var P=-1,j=be(E);++P<E;)for(var Y=l[P],Z=-1;++Z<E;)Z!=P&&(j[P]=Or(j[P]||Y,l[Z],d,g));return bs(wa(j,1),d,g)}function Em(l,d,g){for(var E=-1,P=l.length,j=d.length,Y={};++E<P;){var Z=E<j?d[E]:n;g(Y,l[E],Z)}return Y}function Ad(l){return Tr(l)?l:[]}function kd(l){return typeof l=="function"?l:Ai}function Ss(l,d){return sn(l)?l:Lm(l,d)?[l]:fg(Zn(l))}var Qv=yn;function xs(l,d,g){var E=l.length;return g=g===n?E:g,!d&&g>=E?l:Vr(l,d,g)}var _m=Rv||function(l){return Kt.clearTimeout(l)};function Tm(l,d){if(d)return l.slice();var g=l.length,E=yb?yb(g):new l.constructor(g);return l.copy(E),E}function Kc(l){var d=new l.constructor(l.byteLength);return new fm(d).set(new fm(l)),d}function Xc(l,d){var g=d?Kc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function Jv(l){var d=new l.constructor(l.source,Vn.exec(l));return d.lastIndex=l.lastIndex,d}function eg(l){return yd?Jn(yd.call(l)):{}}function Rm(l,d){var g=d?Kc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function Am(l,d){if(l!==d){var g=l!==n,E=l===null,P=l===l,j=Nn(l),Y=d!==n,Z=d===null,oe=d===d,De=Nn(d);if(!Z&&!De&&!j&&l>d||j&&Y&&oe&&!Z&&!De||E&&Y&&oe||!g&&oe||!P)return 1;if(!E&&!j&&!De&&l<d||De&&g&&P&&!E&&!j||Z&&g&&P||!Y&&P||!oe)return-1}return 0}function Hb(l,d,g){for(var E=-1,P=l.criteria,j=d.criteria,Y=P.length,Z=g.length;++E<Y;){var oe=Am(P[E],j[E]);if(oe){if(E>=Z)return oe;var De=g[E];return oe*(De=="desc"?-1:1)}}return l.index-d.index}function Zc(l,d,g,E){for(var P=-1,j=l.length,Y=g.length,Z=-1,oe=d.length,De=$r(j-Y,0),Ae=be(oe+De),Le=!E;++Z<oe;)Ae[Z]=d[Z];for(;++P<Y;)(Le||P<j)&&(Ae[g[P]]=l[P]);for(;De--;)Ae[Z++]=l[P++];return Ae}function tg(l,d,g,E){for(var P=-1,j=l.length,Y=-1,Z=g.length,oe=-1,De=d.length,Ae=$r(j-Z,0),Le=be(Ae+De),Qe=!E;++P<Ae;)Le[P]=l[P];for(var vt=P;++oe<De;)Le[vt+oe]=d[oe];for(;++Y<Z;)(Qe||P<j)&&(Le[vt+g[Y]]=l[P++]);return Le}function sa(l,d){var g=-1,E=l.length;for(d||(d=be(E));++g<E;)d[g]=l[g];return d}function ja(l,d,g,E){var P=!g;g||(g={});for(var j=-1,Y=d.length;++j<Y;){var Z=d[j],oe=E?E(g[Z],l[Z],Z,g,l):n;oe===n&&(oe=l[Z]),P?gs(g,Z,oe):Cd(g,Z,oe)}return g}function Wi(l,d){return ja(l,Qa(l),d)}function fw(l,d){return ja(l,Cs(l),d)}function tr(l,d){return function(g,E){var P=sn(g)?jt:Ab,j=d?d():{};return P(g,l,Pt(E,2),j)}}function il(l){return yn(function(d,g){var E=-1,P=g.length,j=P>1?g[P-1]:n,Y=P>2?g[2]:n;for(j=l.length>3&&typeof j=="function"?(P--,j):n,Y&&ua(g[0],g[1],Y)&&(j=P<3?n:j,P=1),d=Jn(d);++E<P;){var Z=g[E];Z&&l(d,Z,E,j)}return d})}function Od(l,d){return function(g,E){if(g==null)return g;if(!Jr(g))return l(g,E);for(var P=g.length,j=d?P:-1,Y=Jn(g);(d?j--:++j<P)&&E(Y[j],j,Y)!==!1;);return g}}function Qc(l){return function(d,g,E){for(var P=-1,j=Jn(d),Y=E(d),Z=Y.length;Z--;){var oe=Y[l?Z:++P];if(g(j[oe],oe,j)===!1)break}return d}}function km(l,d,g){var E=d&M,P=Dd(l);function j(){var Y=this&&this!==Kt&&this instanceof j?P:l;return Y.apply(E?g:this,arguments)}return j}function Wb(l){return function(d){d=Zn(d);var g=kc(d)?Ho(d):n,E=g?g[0]:d.charAt(0),P=g?xs(g,1).join(""):d.slice(1);return E[l]()+P}}function Jc(l){return function(d){return ds(jg(ip(d).replace($o,"")),l,"")}}function Dd(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=zl(l.prototype),E=l.apply(g,d);return wr(E)?E:g}}function dw(l,d,g){var E=Dd(l);function P(){for(var j=arguments.length,Y=be(j),Z=j,oe=tf(P);Z--;)Y[Z]=arguments[Z];var De=j<3&&Y[0]!==oe&&Y[j-1]!==oe?[]:Ll(Y,oe);if(j-=De.length,j<g)return Yb(l,d,ef,P.placeholder,n,Y,De,n,n,g-j);var Ae=this&&this!==Kt&&this instanceof P?E:l;return yt(Ae,this,Y)}return P}function Om(l){return function(d,g,E){var P=Jn(d);if(!Jr(d)){var j=Pt(g,3);d=ca(d),g=function(Z){return j(P[Z],Z,P)}}var Y=l(d,g,E);return Y>-1?P[j?d[Y]:Y]:n}}function Gb(l){return sl(function(d){var g=d.length,E=g,P=uo.prototype.thru;for(l&&d.reverse();E--;){var j=d[E];if(typeof j!="function")throw new $i(u);if(P&&!Y&&Fd(j)=="wrapper")var Y=new uo([],!0)}for(E=Y?E:g;++E<g;){j=d[E];var Z=Fd(j),oe=Z=="wrapper"?ig(j):n;oe&&sg(oe[0])&&oe[1]==(K|F|$|le)&&!oe[4].length&&oe[9]==1?Y=Y[Fd(oe[0])].apply(Y,oe[3]):Y=j.length==1&&sg(j)?Y[Z]():Y.thru(j)}return function(){var De=arguments,Ae=De[0];if(Y&&De.length==1&&sn(Ae))return Y.plant(Ae).value();for(var Le=0,Qe=g?d[Le].apply(this,De):Ae;++Le<g;)Qe=d[Le].call(this,Qe);return Qe}})}function ef(l,d,g,E,P,j,Y,Z,oe,De){var Ae=d&K,Le=d&M,Qe=d&B,vt=d&(F|z),Mt=d&me,pn=Qe?n:Dd(l);function Ut(){for(var bn=arguments.length,kn=be(bn),Va=bn;Va--;)kn[Va]=arguments[Va];if(vt)var yr=tf(Ut),ei=fd(kn,yr);if(E&&(kn=Zc(kn,E,P,vt)),j&&(kn=tg(kn,j,Y,vt)),bn-=ei,vt&&bn<De){var Nr=Ll(kn,yr);return Yb(l,d,ef,Ut.placeholder,g,kn,Nr,Z,oe,De-bn)}var ea=Le?g:this,Ha=Qe?ea[l]:l;return bn=kn.length,Z?kn=Vl(kn,Z):Mt&&bn>1&&kn.reverse(),Ae&&oe<bn&&(kn.length=oe),this&&this!==Kt&&this instanceof Ut&&(Ha=pn||Dd(Ha)),Ha.apply(ea,kn)}return Ut}function ng(l,d){return function(g,E){return iw(g,l,d(E),{})}}function Dm(l,d){return function(g,E){var P;if(g===n&&E===n)return d;if(g!==n&&(P=g),E!==n){if(P===n)return E;typeof g=="string"||typeof E=="string"?(g=Za(g),E=Za(E)):(g=Yc(g),E=Yc(E)),P=l(g,E)}return P}}function rg(l){return sl(function(d){return d=Pn(d,Hn(Pt())),yn(function(g){var E=this;return l(d,function(P){return yt(P,E,g)})})})}function Uu(l,d){d=d===n?" ":Za(d);var g=d.length;if(g<2)return g?Xv(d,l):d;var E=Xv(d,Qs(l/Au(d)));return kc(d)?xs(Ho(E),0,l).join(""):E.slice(0,l)}function pw(l,d,g,E){var P=d&M,j=Dd(l);function Y(){for(var Z=-1,oe=arguments.length,De=-1,Ae=E.length,Le=be(Ae+oe),Qe=this&&this!==Kt&&this instanceof Y?j:l;++De<Ae;)Le[De]=E[De];for(;oe--;)Le[De++]=arguments[++Z];return yt(Qe,P?g:this,Le)}return Y}function ag(l){return function(d,g,E){return E&&typeof E!="number"&&ua(d,g,E)&&(g=E=n),d=cl(d),g===n?(g=d,d=0):g=cl(g),E=E===n?d<g?1:-1:cl(E),Vb(d,g,E,l)}}function Pd(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=mo(d),g=mo(g)),l(d,g)}}function Yb(l,d,g,E,P,j,Y,Z,oe,De){var Ae=d&F,Le=Ae?Y:n,Qe=Ae?n:Y,vt=Ae?j:n,Mt=Ae?n:j;d|=Ae?$:q,d&=~(Ae?q:$),d&I||(d&=~(M|B));var pn=[l,d,P,vt,Le,Mt,Qe,Z,oe,De],Ut=g.apply(n,pn);return sg(l)&&rf(Ut,pn),Ut.placeholder=E,Jb(Ut,l,d)}function ol(l){var d=Xr[l];return function(g,E){if(g=mo(g),E=E==null?0:ia(rn(E),292),E&&Sb(g)){var P=(Zn(g)+"e").split("e"),j=d(P[0]+"e"+(+P[1]+E));return P=(Zn(j)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return d(g)}}var Md=hs&&1/dd(new hs([,-0]))[1]==ie?function(l){return new hs(l)}:Yg;function $l(l){return function(d){var g=Cr(d);return g==ye?_v(d):g==an?Oc(d):Ni(d,l(d))}}function Go(l,d,g,E,P,j,Y,Z){var oe=d&B;if(!oe&&typeof l!="function")throw new $i(u);var De=E?E.length:0;if(De||(d&=~($|q),E=P=n),Y=Y===n?Y:$r(rn(Y),0),Z=Z===n?Z:rn(Z),De-=P?P.length:0,d&q){var Ae=E,Le=P;E=P=n}var Qe=oe?n:ig(l),vt=[l,d,g,E,P,Ae,Le,j,Y,Z];if(Qe&&Qb(vt,Qe),l=vt[0],d=vt[1],g=vt[2],E=vt[3],P=vt[4],Z=vt[9]=vt[9]===n?oe?0:l.length:$r(vt[9]-De,0),!Z&&d&(F|z)&&(d&=~(F|z)),!d||d==M)var Mt=km(l,d,g);else d==F||d==z?Mt=dw(l,d,Z):(d==$||d==(M|$))&&!P.length?Mt=pw(l,d,g,E):Mt=ef.apply(n,vt);var pn=Qe?Qr:rf;return Jb(pn(Mt,vt),l,d)}function Ei(l,d,g,E){return l===n||Yo(l,Pc[g])&&!er.call(E,g)?d:l}function $u(l,d,g,E,P,j){return wr(l)&&wr(d)&&(j.set(d,l),Cm(l,d,n,$u,j),j.delete(d)),l}function dn(l){return Gu(l)?n:l}function Id(l,d,g,E,P,j){var Y=g&R,Z=l.length,oe=d.length;if(Z!=oe&&!(Y&&oe>Z))return!1;var De=j.get(l),Ae=j.get(d);if(De&&Ae)return De==d&&Ae==l;var Le=-1,Qe=!0,vt=g&O?new al:n;for(j.set(l,d),j.set(d,l);++Le<Z;){var Mt=l[Le],pn=d[Le];if(E)var Ut=Y?E(pn,Mt,Le,d,l,j):E(Mt,pn,Le,l,d,j);if(Ut!==n){if(Ut)continue;Qe=!1;break}if(vt){if(!Cv(d,function(bn,kn){if(!Ru(vt,kn)&&(Mt===bn||P(Mt,bn,g,E,j)))return vt.push(kn)})){Qe=!1;break}}else if(!(Mt===pn||P(Mt,pn,g,E,j))){Qe=!1;break}}return j.delete(l),j.delete(d),Qe}function qb(l,d,g,E,P,j,Y){switch(g){case Oe:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case kt:return!(l.byteLength!=d.byteLength||!j(new fm(l),new fm(d)));case Ze:case ct:case et:return Yo(+l,+d);case zt:return l.name==d.name&&l.message==d.message;case Lt:case On:return l==d+"";case ye:var Z=_v;case an:var oe=E&R;if(Z||(Z=dd),l.size!=d.size&&!oe)return!1;var De=Y.get(l);if(De)return De==d;E|=O,Y.set(l,d);var Ae=Id(Z(l),Z(d),E,P,j,Y);return Y.delete(l),Ae;case gn:if(yd)return yd.call(l)==yd.call(d)}return!1}function PO(l,d,g,E,P,j){var Y=g&R,Z=Ld(l),oe=Z.length,De=Ld(d),Ae=De.length;if(oe!=Ae&&!Y)return!1;for(var Le=oe;Le--;){var Qe=Z[Le];if(!(Y?Qe in d:er.call(d,Qe)))return!1}var vt=j.get(l),Mt=j.get(d);if(vt&&Mt)return vt==d&&Mt==l;var pn=!0;j.set(l,d),j.set(d,l);for(var Ut=Y;++Le<oe;){Qe=Z[Le];var bn=l[Qe],kn=d[Qe];if(E)var Va=Y?E(kn,bn,Qe,d,l,j):E(bn,kn,Qe,l,d,j);if(!(Va===n?bn===kn||P(bn,kn,g,E,j):Va)){pn=!1;break}Ut||(Ut=Qe=="constructor")}if(pn&&!Ut){var yr=l.constructor,ei=d.constructor;yr!=ei&&"constructor"in l&&"constructor"in d&&!(typeof yr=="function"&&yr instanceof yr&&typeof ei=="function"&&ei instanceof ei)&&(pn=!1)}return j.delete(l),j.delete(d),pn}function sl(l){return Es(Bd(l,n,o1),l+"")}function Ld(l){return Pb(l,ca,Qa)}function ju(l){return Pb(l,Ri,Cs)}var ig=Bc?function(l){return Bc.get(l)}:Yg;function Fd(l){for(var d=l.name+"",g=Uc[d],E=er.call(Uc,d)?g.length:0;E--;){var P=g[E],j=P.func;if(j==null||j==l)return P.name}return d}function tf(l){var d=er.call(L,"placeholder")?L:l;return d.placeholder}function Pt(){var l=L.iteratee||Wg;return l=l===Wg?Fb:l,arguments.length?l(arguments[0],arguments[1]):l}function Pm(l,d){var g=l.__data__;return vw(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Mm(l){for(var d=ca(l),g=d.length;g--;){var E=d[g],P=l[E];d[g]=[E,P,Zb(P)]}return d}function jl(l,d){var g=jC(l,d);return Mb(g)?g:n}function Kb(l){var d=er.call(l,ku),g=l[ku];try{l[ku]=n;var E=!0}catch{}var P=pd.call(l);return E&&(d?l[ku]=g:delete l[ku]),P}var Qa=kv?function(l){return l==null?[]:(l=Jn(l),Ca(kv(l),function(d){return Mc.call(l,d)}))}:Kg,Cs=kv?function(l){for(var d=[];l;)wi(d,Qa(l)),l=md(l);return d}:Kg,Cr=Xa;(Ov&&Cr(new Ov(new ArrayBuffer(1)))!=Oe||Js&&Cr(new Js)!=ye||gd&&Cr(gd.resolve())!=xn||hs&&Cr(new hs)!=an||Fc&&Cr(new Fc)!=Je)&&(Cr=function(l){var d=Xa(l),g=d==lt?l.constructor:n,E=g?Vu(g):"";if(E)switch(E){case $c:return Oe;case hm:return ye;case vm:return xn;case Dv:return an;case JC:return Je}return d});function Im(l,d,g){for(var E=-1,P=g.length;++E<P;){var j=g[E],Y=j.size;switch(j.type){case"drop":l+=Y;break;case"dropRight":d-=Y;break;case"take":d=ia(d,l+Y);break;case"takeRight":l=$r(l,d-Y);break}}return{start:l,end:d}}function zd(l){var d=l.match(Ke);return d?d[1].split(Ct):[]}function fo(l,d,g){d=Ss(d,l);for(var E=-1,P=d.length,j=!1;++E<P;){var Y=_i(d[E]);if(!(j=l!=null&&g(l,Y)))break;l=l[Y]}return j||++E!=P?j:(P=l==null?0:l.length,!!P&&Jd(P)&&ws(Y,P)&&(sn(l)||Wu(l)))}function la(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&er.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function Xb(l){return typeof l.constructor=="function"&&!nf(l)?zl(md(l)):{}}function mw(l,d,g){var E=l.constructor;switch(d){case kt:return Kc(l);case Ze:case ct:return new E(+l);case Oe:return Xc(l,g);case Yt:case _n:case je:case it:case _t:case hn:case Qt:case Tn:case Ln:return Rm(l,g);case ye:return new E;case et:case On:return new E(l);case Lt:return Jv(l);case an:return new E;case gn:return eg(l)}}function hw(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(Ue,`{
|
|
/* [wrapped with `+d+`] */
|
|
`)}function og(l){return sn(l)||Wu(l)||!!(Ic&&l&&l[Ic])}function ws(l,d){var g=typeof l;return d=d??xe,!!d&&(g=="number"||g!="symbol"&&Po.test(l))&&l>-1&&l%1==0&&l<d}function ua(l,d,g){if(!wr(g))return!1;var E=typeof d;return(E=="number"?Jr(g)&&ws(d,g.length):E=="string"&&d in g)?Yo(g[d],l):!1}function Lm(l,d){if(sn(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||Nn(l)?!0:Do.test(l)||!Oo.test(l)||d!=null&&l in Jn(d)}function vw(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function sg(l){var d=Fd(l),g=L[d];if(typeof g!="function"||!(d in An.prototype))return!1;if(l===g)return!0;var E=ig(g);return!!E&&l===E[0]}function lg(l){return!!vb&&vb in l}var gw=lm?Ts:Xg;function nf(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||Pc;return l===g}function Zb(l){return l===l&&!wr(l)}function ug(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==n||l in Jn(g))}}function yw(l){var d=Gm(l,function(E){return g.size===v&&g.clear(),E}),g=d.cache;return d}function Qb(l,d){var g=l[1],E=d[1],P=g|E,j=P<(M|B|K),Y=E==K&&g==F||E==K&&g==le&&l[7].length<=d[8]||E==(K|le)&&d[7].length<=d[8]&&g==F;if(!(j||Y))return l;E&M&&(l[2]=d[2],P|=g&M?0:I);var Z=d[3];if(Z){var oe=l[3];l[3]=oe?Zc(oe,Z,d[4]):Z,l[4]=oe?Ll(l[3],b):d[4]}return Z=d[5],Z&&(oe=l[5],l[5]=oe?tg(oe,Z,d[6]):Z,l[6]=oe?Ll(l[5],b):d[6]),Z=d[7],Z&&(l[7]=Z),E&K&&(l[8]=l[8]==null?d[8]:ia(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=P,l}function bw(l){var d=[];if(l!=null)for(var g in Jn(l))d.push(g);return d}function cg(l){return pd.call(l)}function Bd(l,d,g){return d=$r(d===n?l.length-1:d,0),function(){for(var E=arguments,P=-1,j=$r(E.length-d,0),Y=be(j);++P<j;)Y[P]=E[d+P];P=-1;for(var Z=be(d+1);++P<d;)Z[P]=E[P];return Z[d]=g(Y),yt(l,this,Z)}}function ll(l,d){return d.length<2?l:Na(l,Vr(d,0,-1))}function Vl(l,d){for(var g=l.length,E=ia(d.length,g),P=sa(l);E--;){var j=d[E];l[E]=ws(j,g)?P[j]:n}return l}function Ns(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var rf=e1(Qr),ul=Lc||function(l,d){return Kt.setTimeout(l,d)},Es=e1(Gt);function Jb(l,d,g){var E=d+"";return Es(l,hw(E,t1(zd(E),g)))}function e1(l){var d=0,g=0;return function(){var E=ZC(),P=ae-(E-g);if(g=E,P>0){if(++d>=qe)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Fm(l,d){var g=-1,E=l.length,P=E-1;for(d=d===n?E:d;++g<d;){var j=co(g,P),Y=l[j];l[j]=l[g],l[g]=Y}return l.length=d,l}var fg=yw(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(vr,function(g,E,P,j){d.push(P?j.replace(nt,"$1"):E||g)}),d});function _i(l){if(typeof l=="string"||Nn(l))return l;var d=l+"";return d=="0"&&1/l==-ie?"-0":d}function Vu(l){if(l!=null){try{return um.call(l)}catch{}try{return l+""}catch{}}return""}function t1(l,d){return Tt(Ye,function(g){var E="_."+g[0];d&g[1]&&!jo(l,E)&&l.push(E)}),l.sort()}function n1(l){if(l instanceof An)return l.clone();var d=new uo(l.__wrapped__,l.__chain__);return d.__actions__=sa(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function zm(l,d,g){(g?ua(l,d,g):d===n)?d=1:d=$r(rn(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var P=0,j=0,Y=be(Qs(E/d));P<E;)Y[j++]=Vr(l,P,P+=d);return Y}function r1(l){for(var d=-1,g=l==null?0:l.length,E=0,P=[];++d<g;){var j=l[d];j&&(P[E++]=j)}return P}function Sw(){var l=arguments.length;if(!l)return[];for(var d=be(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return wi(sn(g)?sa(g):[g],wa(d,1))}var Ud=yn(function(l,d){return Tr(l)?Or(l,wa(d,1,Tr,!0)):[]}),$d=yn(function(l,d){var g=po(d);return Tr(g)&&(g=n),Tr(l)?Or(l,wa(d,1,Tr,!0),Pt(g,2)):[]}),af=yn(function(l,d){var g=po(d);return Tr(g)&&(g=n),Tr(l)?Or(l,wa(d,1,Tr,!0),n,g):[]});function dg(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:rn(d),Vr(l,d<0?0:d,E)):[]}function a1(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:rn(d),d=E-d,Vr(l,0,d<0?0:d)):[]}function xw(l,d){return l&&l.length?qc(l,Pt(d,3),!0,!0):[]}function Cw(l,d){return l&&l.length?qc(l,Pt(d,3),!0):[]}function ww(l,d,g,E){var P=l==null?0:l.length;return P?(g&&typeof g!="number"&&ua(l,d,g)&&(g=0,E=P),nw(l,d,g,E)):[]}function i1(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:rn(g);return P<0&&(P=$r(E+P,0)),sd(l,Pt(d,3),P)}function Bm(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E-1;return g!==n&&(P=rn(g),P=g<0?$r(E+P,0):ia(P,E-1)),sd(l,Pt(d,3),P,!0)}function o1(l){var d=l==null?0:l.length;return d?wa(l,1):[]}function Um(l){var d=l==null?0:l.length;return d?wa(l,ie):[]}function pg(l,d){var g=l==null?0:l.length;return g?(d=d===n?1:rn(d),wa(l,d)):[]}function s1(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 l1(l){return l&&l.length?l[0]:n}function Nw(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:rn(g);return P<0&&(P=$r(E+P,0)),Tu(l,d,P)}function Ew(l){var d=l==null?0:l.length;return d?Vr(l,0,-1):[]}var _w=yn(function(l){var d=Pn(l,Ad);return d.length&&d[0]===l[0]?Vv(d):[]}),jd=yn(function(l){var d=po(l),g=Pn(l,Ad);return d===po(g)?d=n:g.pop(),g.length&&g[0]===l[0]?Vv(g,Pt(d,2)):[]}),mg=yn(function(l){var d=po(l),g=Pn(l,Ad);return d=typeof d=="function"?d:n,d&&g.pop(),g.length&&g[0]===l[0]?Vv(g,n,d):[]});function Vd(l,d){return l==null?"":xb.call(l,d)}function po(l){var d=l==null?0:l.length;return d?l[d-1]:n}function Tw(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E;return g!==n&&(P=rn(g),P=P<0?$r(E+P,0):ia(P,E-1)),d===d?pb(l,d,P):sd(l,ps,P,!0)}function u1(l,d){return l&&l.length?$b(l,rn(d)):n}var c1=yn(Hd);function Hd(l,d){return l&&l.length&&d&&d.length?Wn(l,d):l}function $m(l,d,g){return l&&l.length&&d&&d.length?Wn(l,d,Pt(g,2)):l}function f1(l,d,g){return l&&l.length&&d&&d.length?Wn(l,d,n,g):l}var Gi=sl(function(l,d){var g=l==null?0:l.length,E=Bv(l,d);return Ir(l,Pn(d,function(P){return ws(P,g)?+P:P}).sort(Am)),E});function of(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,P=[],j=l.length;for(d=Pt(d,3);++E<j;){var Y=l[E];d(Y,E,l)&&(g.push(Y),P.push(E))}return Ir(l,P),g}function Wd(l){return l==null?l:QC.call(l)}function Gd(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&ua(l,d,g)?(d=0,g=E):(d=d==null?0:rn(d),g=g===n?E:rn(g)),Vr(l,d,g)):[]}function Rw(l,d){return Hi(l,d)}function hg(l,d,g){return zu(l,d,Pt(g,2))}function vg(l,d){var g=l==null?0:l.length;if(g){var E=Hi(l,d);if(E<g&&Yo(l[E],d))return E}return-1}function Yd(l,d){return Hi(l,d,!0)}function Aw(l,d,g){return zu(l,d,Pt(g,2),!0)}function jm(l,d){var g=l==null?0:l.length;if(g){var E=Hi(l,d,!0)-1;if(Yo(l[E],d))return E}return-1}function d1(l){return l&&l.length?Bu(l):[]}function kw(l,d){return l&&l.length?Bu(l,Pt(d,2)):[]}function Ow(l){var d=l==null?0:l.length;return d?Vr(l,1,d):[]}function Dw(l,d,g){return l&&l.length?(d=g||d===n?1:rn(d),Vr(l,0,d<0?0:d)):[]}function gg(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:rn(d),d=E-d,Vr(l,d<0?0:d,E)):[]}function Pw(l,d){return l&&l.length?qc(l,Pt(d,3),!1,!0):[]}function Mw(l,d){return l&&l.length?qc(l,Pt(d,3)):[]}var Iw=yn(function(l){return bs(wa(l,1,Tr,!0))}),Lw=yn(function(l){var d=po(l);return Tr(d)&&(d=n),bs(wa(l,1,Tr,!0),Pt(d,2))}),Fw=yn(function(l){var d=po(l);return d=typeof d=="function"?d:n,bs(wa(l,1,Tr,!0),n,d)});function p1(l){return l&&l.length?bs(l):[]}function zw(l,d){return l&&l.length?bs(l,Pt(d,2)):[]}function Bw(l,d){return d=typeof d=="function"?d:n,l&&l.length?bs(l,n,d):[]}function yg(l){if(!(l&&l.length))return[];var d=0;return l=Ca(l,function(g){if(Tr(g))return d=$r(g.length,d),!0}),om(d,function(g){return Pn(l,ld(g))})}function m1(l,d){if(!(l&&l.length))return[];var g=yg(l);return d==null?g:Pn(g,function(E){return yt(d,n,E)})}var Uw=yn(function(l,d){return Tr(l)?Or(l,d):[]}),$w=yn(function(l){return Rd(Ca(l,Tr))}),bg=yn(function(l){var d=po(l);return Tr(d)&&(d=n),Rd(Ca(l,Tr),Pt(d,2))}),jw=yn(function(l){var d=po(l);return d=typeof d=="function"?d:n,Rd(Ca(l,Tr),n,d)}),Vw=yn(yg);function Hw(l,d){return Em(l||[],d||[],Cd)}function h1(l,d){return Em(l||[],d||[],Fe)}var Ww=yn(function(l){var d=l.length,g=d>1?l[d-1]:n;return g=typeof g=="function"?(l.pop(),g):n,m1(l,g)});function v1(l){var d=L(l);return d.__chain__=!0,d}function Gw(l,d){return d(l),l}function Vm(l,d){return d(l)}var Yw=sl(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,P=function(j){return Bv(j,l)};return d>1||this.__actions__.length||!(E instanceof An)||!ws(g)?this.thru(P):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:Vm,args:[P],thisArg:n}),new uo(E,this.__chain__).thru(function(j){return d&&!j.length&&j.push(n),j}))});function qw(){return v1(this)}function Kw(){return new uo(this.value(),this.__chain__)}function g1(){this.__values__===n&&(this.__values__=cf(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Sg(){return this}function qd(l){for(var d,g=this;g instanceof el;){var E=n1(g);E.__index__=0,E.__values__=n,d?P.__wrapped__=E:d=E;var P=E;g=g.__wrapped__}return P.__wrapped__=l,d}function Xw(){var l=this.__wrapped__;if(l instanceof An){var d=l;return this.__actions__.length&&(d=new An(this)),d=d.reverse(),d.__actions__.push({func:Vm,args:[Wd],thisArg:n}),new uo(d,this.__chain__)}return this.thru(Wd)}function y1(){return Nm(this.__wrapped__,this.__actions__)}var b1=tr(function(l,d,g){er.call(l,g)?++l[g]:gs(l,g,1)});function S1(l,d,g){var E=sn(l)?Ci:Uv;return g&&ua(l,d,g)&&(d=n),E(l,Pt(d,3))}function Zw(l,d){var g=sn(l)?Ca:xm;return g(l,Pt(d,3))}var x1=Om(i1),Qw=Om(Bm);function Jw(l,d){return wa(Hm(l,d),1)}function eN(l,d){return wa(Hm(l,d),ie)}function C1(l,d,g){return g=g===n?1:rn(g),wa(Hm(l,d),g)}function xg(l,d){var g=sn(l)?Tt:Ul;return g(l,Pt(d,3))}function Cg(l,d){var g=sn(l)?Bt:wd;return g(l,Pt(d,3))}var sf=tr(function(l,d,g){er.call(l,g)?l[g].push(d):gs(l,g,[d])});function tN(l,d,g,E){l=Jr(l)?l:pf(l),g=g&&!E?rn(g):0;var P=l.length;return g<0&&(g=$r(P+g,0)),Xm(l)?g<=P&&l.indexOf(d,g)>-1:!!P&&Tu(l,d,g)>-1}var nN=yn(function(l,d,g){var E=-1,P=typeof d=="function",j=Jr(l)?be(l.length):[];return Ul(l,function(Y){j[++E]=P?yt(d,Y,g):Nd(Y,d,g)}),j}),rN=tr(function(l,d,g){gs(l,g,d)});function Hm(l,d){var g=sn(l)?Pn:zb;return g(l,Pt(d,3))}function aN(l,d,g,E){return l==null?[]:(sn(d)||(d=d==null?[]:[d]),g=E?n:g,sn(g)||(g=g==null?[]:[g]),jb(l,d,g))}var iN=tr(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function w1(l,d,g){var E=sn(l)?ds:im,P=arguments.length<3;return E(l,Pt(d,4),g,P,Ul)}function oN(l,d,g){var E=sn(l)?od:im,P=arguments.length<3;return E(l,Pt(d,4),g,P,wd)}function sN(l,d){var g=sn(l)?Ca:xm;return g(l,Ym(Pt(d,3)))}function N1(l){var d=sn(l)?Tb:cw;return d(l)}function Kd(l,d,g){(g?ua(l,d,g):d===n)?d=1:d=rn(d);var E=sn(l)?Iu:Zv;return E(l,d)}function Xd(l){var d=sn(l)?Rb:Gc;return d(l)}function lN(l){if(l==null)return 0;if(Jr(l))return Xm(l)?Au(l):l.length;var d=Cr(l);return d==ye||d==an?l.size:Gv(l).length}function uN(l,d,g){var E=sn(l)?Cv:Fu;return g&&ua(l,d,g)&&(d=n),E(l,Pt(d,3))}var cN=yn(function(l,d){if(l==null)return[];var g=d.length;return g>1&&ua(l,d[0],d[1])?d=[]:g>2&&ua(d[0],d[1],d[2])&&(d=[d[0]]),jb(l,wa(d,1),[])}),Hu=Av||function(){return Kt.Date.now()};function fN(l,d){if(typeof d!="function")throw new $i(u);return l=rn(l),function(){if(--l<1)return d.apply(this,arguments)}}function wg(l,d,g){return d=g?n:d,d=l&&d==null?l.length:d,Go(l,K,n,n,n,n,d)}function E1(l,d){var g;if(typeof d!="function")throw new $i(u);return l=rn(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=n),g}}var Wm=yn(function(l,d,g){var E=M;if(g.length){var P=Ll(g,tf(Wm));E|=$}return Go(l,E,d,g,P)}),Ng=yn(function(l,d,g){var E=M|B;if(g.length){var P=Ll(g,tf(Ng));E|=$}return Go(d,E,l,g,P)});function _1(l,d,g){d=g?n:d;var E=Go(l,F,n,n,n,n,n,d);return E.placeholder=_1.placeholder,E}function T1(l,d,g){d=g?n:d;var E=Go(l,z,n,n,n,n,n,d);return E.placeholder=T1.placeholder,E}function R1(l,d,g){var E,P,j,Y,Z,oe,De=0,Ae=!1,Le=!1,Qe=!0;if(typeof l!="function")throw new $i(u);d=mo(d)||0,wr(g)&&(Ae=!!g.leading,Le="maxWait"in g,j=Le?$r(mo(g.maxWait)||0,d):j,Qe="trailing"in g?!!g.trailing:Qe);function vt(Nr){var ea=E,Ha=P;return E=P=n,De=Nr,Y=l.apply(Ha,ea),Y}function Mt(Nr){return De=Nr,Z=ul(bn,d),Ae?vt(Nr):Y}function pn(Nr){var ea=Nr-oe,Ha=Nr-De,Ea=d-ea;return Le?ia(Ea,j-Ha):Ea}function Ut(Nr){var ea=Nr-oe,Ha=Nr-De;return oe===n||ea>=d||ea<0||Le&&Ha>=j}function bn(){var Nr=Hu();if(Ut(Nr))return kn(Nr);Z=ul(bn,pn(Nr))}function kn(Nr){return Z=n,Qe&&E?vt(Nr):(E=P=n,Y)}function Va(){Z!==n&&_m(Z),De=0,E=oe=P=Z=n}function yr(){return Z===n?Y:kn(Hu())}function ei(){var Nr=Hu(),ea=Ut(Nr);if(E=arguments,P=this,oe=Nr,ea){if(Z===n)return Mt(oe);if(Le)return _m(Z),Z=ul(bn,d),vt(oe)}return Z===n&&(Z=ul(bn,d)),Y}return ei.cancel=Va,ei.flush=yr,ei}var dN=yn(function(l,d){return Db(l,1,d)}),pN=yn(function(l,d,g){return Db(l,mo(d)||0,g)});function mN(l){return Go(l,me)}function Gm(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new $i(u);var g=function(){var E=arguments,P=d?d.apply(this,E):E[0],j=g.cache;if(j.has(P))return j.get(P);var Y=l.apply(this,E);return g.cache=j.set(P,Y)||j,Y};return g.cache=new(Gm.Cache||rl),g}Gm.Cache=rl;function Ym(l){if(typeof l!="function")throw new $i(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 hN(l){return E1(2,l)}var vN=Qv(function(l,d){d=d.length==1&&sn(d[0])?Pn(d[0],Hn(Pt())):Pn(wa(d,1),Hn(Pt()));var g=d.length;return yn(function(E){for(var P=-1,j=ia(E.length,g);++P<j;)E[P]=d[P].call(this,E[P]);return yt(l,this,E)})}),Ja=yn(function(l,d){var g=Ll(d,tf(Ja));return Go(l,$,n,d,g)}),lf=yn(function(l,d){var g=Ll(d,tf(lf));return Go(l,q,n,d,g)}),A1=sl(function(l,d){return Go(l,le,n,n,n,d)});function gN(l,d){if(typeof l!="function")throw new $i(u);return d=d===n?d:rn(d),yn(l,d)}function k1(l,d){if(typeof l!="function")throw new $i(u);return d=d==null?0:$r(rn(d),0),yn(function(g){var E=g[d],P=xs(g,0,d);return E&&wi(P,E),yt(l,this,P)})}function yN(l,d,g){var E=!0,P=!0;if(typeof l!="function")throw new $i(u);return wr(g)&&(E="leading"in g?!!g.leading:E,P="trailing"in g?!!g.trailing:P),R1(l,d,{leading:E,maxWait:d,trailing:P})}function bN(l){return wg(l,1)}function SN(l,d){return Ja(kd(d),l)}function O1(){if(!arguments.length)return[];var l=arguments[0];return sn(l)?l:[l]}function D1(l){return ji(l,N)}function xN(l,d){return d=typeof d=="function"?d:n,ji(l,N,d)}function CN(l){return ji(l,x|N)}function P1(l,d){return d=typeof d=="function"?d:n,ji(l,x|N,d)}function Eg(l,d){return d==null||Ob(l,d,ca(d))}function Yo(l,d){return l===d||l!==l&&d!==d}var wN=Pd(jv),NN=Pd(function(l,d){return l>=d}),Wu=Hv(function(){return arguments}())?Hv:function(l){return Rr(l)&&er.call(l,"callee")&&!Mc.call(l,"callee")},sn=be.isArray,EN=ze?Hn(ze):Ed;function Jr(l){return l!=null&&Jd(l.length)&&!Ts(l)}function Tr(l){return Rr(l)&&Jr(l)}function Zd(l){return l===!0||l===!1||Rr(l)&&Xa(l)==Ze}var _s=bb||Xg,_N=we?Hn(we):Wc;function TN(l){return Rr(l)&&l.nodeType===1&&!Gu(l)}function M1(l){if(l==null)return!0;if(Jr(l)&&(sn(l)||typeof l=="string"||typeof l.splice=="function"||_s(l)||Gl(l)||Wu(l)))return!l.length;var d=Cr(l);if(d==ye||d==an)return!l.size;if(nf(l))return!Gv(l).length;for(var g in l)if(er.call(l,g))return!1;return!0}function RN(l,d){return _d(l,d)}function qm(l,d,g){g=typeof g=="function"?g:n;var E=g?g(l,d):n;return E===n?_d(l,d,n,g):!!E}function Hl(l){if(!Rr(l))return!1;var d=Xa(l);return d==zt||d==wt||typeof l.message=="string"&&typeof l.name=="string"&&!Gu(l)}function _g(l){return typeof l=="number"&&Sb(l)}function Ts(l){if(!wr(l))return!1;var d=Xa(l);return d==Ge||d==Wt||d==Ht||d==$n}function Qd(l){return typeof l=="number"&&l==rn(l)}function Jd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=xe}function wr(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Rr(l){return l!=null&&typeof l=="object"}var Tg=Ve?Hn(Ve):sw;function I1(l,d){return l===d||Wv(l,d,Mm(d))}function L1(l,d,g){return g=typeof g=="function"?g:n,Wv(l,d,Mm(d),g)}function Wl(l){return uf(l)&&l!=+l}function AN(l){if(gw(l))throw new nn(c);return Mb(l)}function kN(l){return l===null}function ON(l){return l==null}function uf(l){return typeof l=="number"||Rr(l)&&Xa(l)==et}function Gu(l){if(!Rr(l)||Xa(l)!=lt)return!1;var d=md(l);if(d===null)return!0;var g=er.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&um.call(g)==qa}var Km=st?Hn(st):lw;function DN(l){return Qd(l)&&l>=-xe&&l<=xe}var Rg=St?Hn(St):Ib;function Xm(l){return typeof l=="string"||!sn(l)&&Rr(l)&&Xa(l)==On}function Nn(l){return typeof l=="symbol"||Rr(l)&&Xa(l)==gn}var Gl=Ot?Hn(Ot):Lb;function Zm(l){return l===n}function ep(l){return Rr(l)&&Cr(l)==Je}function F1(l){return Rr(l)&&Xa(l)==tn}var z1=Pd(Yv),Ag=Pd(function(l,d){return l<=d});function cf(l){if(!l)return[];if(Jr(l))return Xm(l)?Ho(l):sa(l);if(hd&&l[hd])return fb(l[hd]());var d=Cr(l),g=d==ye?_v:d==an?dd:pf;return g(l)}function cl(l){if(!l)return l===0?l:0;if(l=mo(l),l===ie||l===-ie){var d=l<0?-1:1;return d*Ne}return l===l?l:0}function rn(l){var d=cl(l),g=d%1;return d===d?g?d-g:d:0}function Yu(l){return l?Bl(rn(l),0,Ce):0}function mo(l){if(typeof l=="number")return l;if(Nn(l))return he;if(wr(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=wr(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=ms(l);var g=ln.test(l);return g||vi.test(l)?ot(l.slice(2),g?2:8):Bn.test(l)?he:+l}function kg(l){return ja(l,Ri(l))}function PN(l){return l?Bl(rn(l),-xe,xe):l===0?l:0}function Zn(l){return l==null?"":Za(l)}var Ti=il(function(l,d){if(nf(d)||Jr(d)){ja(d,ca(d),l);return}for(var g in d)er.call(d,g)&&Cd(l,g,d[g])}),ff=il(function(l,d){ja(d,Ri(d),l)}),qu=il(function(l,d,g,E){ja(d,Ri(d),l,E)}),Yl=il(function(l,d,g,E){ja(d,ca(d),l,E)}),B1=sl(Bv);function Ku(l,d){var g=zl(l);return d==null?g:zv(g,d)}var Xu=yn(function(l,d){l=Jn(l);var g=-1,E=d.length,P=E>2?d[2]:n;for(P&&ua(d[0],d[1],P)&&(E=1);++g<E;)for(var j=d[g],Y=Ri(j),Z=-1,oe=Y.length;++Z<oe;){var De=Y[Z],Ae=l[De];(Ae===n||Yo(Ae,Pc[De])&&!er.call(l,De))&&(l[De]=j[De])}return l}),Qm=yn(function(l){return l.push(n,$u),yt(H1,n,l)});function Og(l,d){return Nv(l,Pt(d,3),gr)}function Jm(l,d){return Nv(l,Pt(d,3),rt)}function tp(l,d){return l==null?l:$v(l,Pt(d,3),Ri)}function U1(l,d){return l==null?l:Lu(l,Pt(d,3),Ri)}function eh(l,d){return l&&gr(l,Pt(d,3))}function $1(l,d){return l&&rt(l,Pt(d,3))}function j1(l){return l==null?[]:Vi(l,ca(l))}function MN(l){return l==null?[]:Vi(l,Ri(l))}function Dg(l,d,g){var E=l==null?n:Na(l,d);return E===n?g:E}function th(l,d){return l!=null&&fo(l,d,rw)}function df(l,d){return l!=null&&fo(l,d,aw)}var V1=ng(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=pd.call(d)),l[d]=g},Vg(Ai)),IN=ng(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=pd.call(d)),er.call(l,d)?l[d].push(g):l[d]=[g]},Pt),nh=yn(Nd);function ca(l){return Jr(l)?vs(l):Gv(l)}function Ri(l){return Jr(l)?vs(l,!0):uw(l)}function LN(l,d){var g={};return d=Pt(d,3),gr(l,function(E,P,j){gs(g,d(E,P,j),E)}),g}function FN(l,d){var g={};return d=Pt(d,3),gr(l,function(E,P,j){gs(g,P,d(E,P,j))}),g}var zN=il(function(l,d,g){Cm(l,d,g)}),H1=il(function(l,d,g,E){Cm(l,d,g,E)}),BN=sl(function(l,d){var g={};if(l==null)return g;var E=!1;d=Pn(d,function(j){return j=Ss(j,l),E||(E=j.length>1),j}),ja(l,ju(l),g),E&&(g=ji(g,x|w|N,dn));for(var P=d.length;P--;)Td(g,d[P]);return g});function UN(l,d){return W1(l,Ym(Pt(d)))}var $N=sl(function(l,d){return l==null?{}:Kv(l,d)});function W1(l,d){if(l==null)return{};var g=Pn(ju(l),function(E){return[E]});return d=Pt(d),Dt(l,g,function(E,P){return d(E,P[0])})}function Pg(l,d,g){d=Ss(d,l);var E=-1,P=d.length;for(P||(P=1,l=n);++E<P;){var j=l==null?n:l[_i(d[E])];j===n&&(E=P,j=g),l=Ts(j)?j.call(l):j}return l}function Mg(l,d,g){return l==null?l:Fe(l,d,g)}function Ig(l,d,g,E){return E=typeof E=="function"?E:n,l==null?l:Fe(l,d,g,E)}var rh=$l(ca),G1=$l(Ri);function np(l,d,g){var E=sn(l),P=E||_s(l)||Gl(l);if(d=Pt(d,4),g==null){var j=l&&l.constructor;P?g=E?new j:[]:wr(l)?g=Ts(j)?zl(md(l)):{}:g={}}return(P?Tt:gr)(l,function(Y,Z,oe){return d(g,Y,Z,oe)}),g}function rp(l,d){return l==null?!0:Td(l,d)}function jN(l,d,g){return l==null?l:wm(l,d,kd(g))}function Y1(l,d,g,E){return E=typeof E=="function"?E:n,l==null?l:wm(l,d,kd(g),E)}function pf(l){return l==null?[]:Vo(l,ca(l))}function VN(l){return l==null?[]:Vo(l,Ri(l))}function q1(l,d,g){return g===n&&(g=d,d=n),g!==n&&(g=mo(g),g=g===g?g:0),d!==n&&(d=mo(d),d=d===d?d:0),Bl(mo(l),d,g)}function HN(l,d,g){return d=cl(d),g===n?(g=d,d=0):g=cl(g),l=mo(l),oa(l,d,g)}function WN(l,d,g){if(g&&typeof g!="boolean"&&ua(l,d,g)&&(d=g=n),g===n&&(typeof d=="boolean"?(g=d,d=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&d===n?(l=0,d=1):(l=cl(l),d===n?(d=l,l=0):d=cl(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var P=Nb();return ia(l+P*(d-l+pe("1e-"+((P+"").length-1))),d)}return co(l,d)}var K1=Jc(function(l,d,g){return d=d.toLowerCase(),l+(g?ap(d):d)});function ap(l){return $g(Zn(l).toLowerCase())}function ip(l){return l=Zn(l),l&&l.replace(ya,UC).replace(Kr,"")}function ah(l,d,g){l=Zn(l),d=Za(d);var E=l.length;g=g===n?E:Bl(rn(g),0,E);var P=g;return g-=d.length,g>=0&&l.slice(g,P)==d}function op(l){return l=Zn(l),l&&Sr.test(l)?l.replace(Rn,$C):l}function sp(l){return l=Zn(l),l&&Fi.test(l)?l.replace(Ia,"\\$&"):l}var GN=Jc(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),Lg=Jc(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),Fg=Wb("toLowerCase");function YN(l,d,g){l=Zn(l),d=rn(d);var E=d?Au(l):0;if(!d||E>=d)return l;var P=(d-E)/2;return Uu(vd(P),g)+l+Uu(Qs(P),g)}function qN(l,d,g){l=Zn(l),d=rn(d);var E=d?Au(l):0;return d&&E<d?l+Uu(d-E,g):l}function MO(l,d,g){l=Zn(l),d=rn(d);var E=d?Au(l):0;return d&&E<d?Uu(d-E,g)+l:l}function KN(l,d,g){return g||d==null?d=0:d&&(d=+d),wb(Zn(l).replace(La,""),d||0)}function XN(l,d,g){return(g?ua(l,d,g):d===n)?d=1:d=rn(d),Xv(Zn(l),d)}function ZN(){var l=arguments,d=Zn(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var QN=Jc(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function JN(l,d,g){return g&&typeof g!="number"&&ua(l,d,g)&&(d=g=n),g=g===n?Ce:g>>>0,g?(l=Zn(l),l&&(typeof d=="string"||d!=null&&!Km(d))&&(d=Za(d),!d&&kc(l))?xs(Ho(l),0,g):l.split(d,g)):[]}var eE=Jc(function(l,d,g){return l+(g?" ":"")+$g(d)});function zg(l,d,g){return l=Zn(l),g=g==null?0:Bl(rn(g),0,l.length),d=Za(d),l.slice(g,g+d.length)==d}function tE(l,d,g){var E=L.templateSettings;g&&ua(l,d,g)&&(d=n),l=Zn(l),d=qu({},d,E,Ei);var P=qu({},d.imports,E.imports,Ei),j=ca(P),Y=Vo(P,j),Z,oe,De=0,Ae=d.interpolate||oo,Le="__p += '",Qe=Xs((d.escape||oo).source+"|"+Ae.source+"|"+(Ae===is?qt:oo).source+"|"+(d.evaluate||oo).source+"|$","g"),vt="//# sourceURL="+(er.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ks+"]")+`
|
|
`;l.replace(Qe,function(Ut,bn,kn,Va,yr,ei){return kn||(kn=Va),Le+=l.slice(De,ei).replace(Nu,Ev),bn&&(Z=!0,Le+=`' +
|
|
__e(`+bn+`) +
|
|
'`),yr&&(oe=!0,Le+=`';
|
|
`+yr+`;
|
|
__p += '`),kn&&(Le+=`' +
|
|
((__t = (`+kn+`)) == null ? '' : __t) +
|
|
'`),De=ei+Ut.length,Ut}),Le+=`';
|
|
`;var Mt=er.call(d,"variable")&&d.variable;if(!Mt)Le=`with (obj) {
|
|
`+Le+`
|
|
}
|
|
`;else if(Cn.test(Mt))throw new nn(m);Le=(oe?Le.replace(kr,""):Le).replace(Dn,"$1").replace(va,"$1;"),Le="function("+(Mt||"obj")+`) {
|
|
`+(Mt?"":`obj || (obj = {});
|
|
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join;
|
|
function print() { __p += __j.call(arguments, '') }
|
|
`:`;
|
|
`)+Le+`return __p
|
|
}`;var pn=Z1(function(){return Kn(j,vt+"return "+Le).apply(n,Y)});if(pn.source=Le,Hl(pn))throw pn;return pn}function nE(l){return Zn(l).toLowerCase()}function Bg(l){return Zn(l).toUpperCase()}function rE(l,d,g){if(l=Zn(l),l&&(g||d===n))return ms(l);if(!l||!(d=Za(d)))return l;var E=Ho(l),P=Ho(d),j=cd(E,P),Y=cb(E,P)+1;return xs(E,j,Y).join("")}function Ug(l,d,g){if(l=Zn(l),l&&(g||d===n))return l.slice(0,mb(l)+1);if(!l||!(d=Za(d)))return l;var E=Ho(l),P=cb(E,Ho(d))+1;return xs(E,0,P).join("")}function X1(l,d,g){if(l=Zn(l),l&&(g||d===n))return l.replace(La,"");if(!l||!(d=Za(d)))return l;var E=Ho(l),P=cd(E,Ho(d));return xs(E,P).join("")}function aE(l,d){var g=se,E=Se;if(wr(d)){var P="separator"in d?d.separator:P;g="length"in d?rn(d.length):g,E="omission"in d?Za(d.omission):E}l=Zn(l);var j=l.length;if(kc(l)){var Y=Ho(l);j=Y.length}if(g>=j)return l;var Z=g-Au(E);if(Z<1)return E;var oe=Y?xs(Y,0,Z).join(""):l.slice(0,Z);if(P===n)return oe+E;if(Y&&(Z+=oe.length-Z),Km(P)){if(l.slice(Z).search(P)){var De,Ae=oe;for(P.global||(P=Xs(P.source,Zn(Vn.exec(P))+"g")),P.lastIndex=0;De=P.exec(Ae);)var Le=De.index;oe=oe.slice(0,Le===n?Z:Le)}}else if(l.indexOf(Za(P),Z)!=Z){var Qe=oe.lastIndexOf(P);Qe>-1&&(oe=oe.slice(0,Qe))}return oe+E}function iE(l){return l=Zn(l),l&&ga.test(l)?l.replace(jn,HC):l}var oE=Jc(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),$g=Wb("toUpperCase");function jg(l,d,g){return l=Zn(l),d=g?n:d,d===n?VC(l)?YC(l):wv(l):l.match(d)||[]}var Z1=yn(function(l,d){try{return yt(l,n,d)}catch(g){return Hl(g)?g:new nn(g)}}),sE=sl(function(l,d){return Tt(d,function(g){g=_i(g),gs(l,g,Wm(l[g],l))}),l});function lE(l){var d=l==null?0:l.length,g=Pt();return l=d?Pn(l,function(E){if(typeof E[1]!="function")throw new $i(u);return[g(E[0]),E[1]]}):[],yn(function(E){for(var P=-1;++P<d;){var j=l[P];if(yt(j[0],this,E))return yt(j[1],this,E)}})}function uE(l){return tw(ji(l,x))}function Vg(l){return function(){return l}}function cE(l,d){return l==null||l!==l?d:l}var fE=Gb(),Hg=Gb(!0);function Ai(l){return l}function Wg(l){return Fb(typeof l=="function"?l:ji(l,x))}function dE(l){return Bb(ji(l,x))}function pE(l,d){return qv(l,ji(d,x))}var mE=yn(function(l,d){return function(g){return Nd(g,l,d)}}),hE=yn(function(l,d){return function(g){return Nd(l,g,d)}});function Gg(l,d,g){var E=ca(d),P=Vi(d,E);g==null&&!(wr(d)&&(P.length||!E.length))&&(g=d,d=l,l=this,P=Vi(d,ca(d)));var j=!(wr(g)&&"chain"in g)||!!g.chain,Y=Ts(l);return Tt(P,function(Z){var oe=d[Z];l[Z]=oe,Y&&(l.prototype[Z]=function(){var De=this.__chain__;if(j||De){var Ae=l(this.__wrapped__),Le=Ae.__actions__=sa(this.__actions__);return Le.push({func:oe,args:arguments,thisArg:l}),Ae.__chain__=De,Ae}return oe.apply(l,wi([this.value()],arguments))})}),l}function vE(){return Kt._===this&&(Kt._=gb),this}function Yg(){}function Q1(l){return l=rn(l),yn(function(d){return $b(d,l)})}var qg=rg(Pn),gE=rg(Ci),yE=rg(Cv);function lp(l){return Lm(l)?ld(_i(l)):wn(l)}function up(l){return function(d){return l==null?n:Na(l,d)}}var bE=ag(),SE=ag(!0);function Kg(){return[]}function Xg(){return!1}function xE(){return{}}function CE(){return""}function wE(){return!0}function J1(l,d){if(l=rn(l),l<1||l>xe)return[];var g=Ce,E=ia(l,Ce);d=Pt(d),l-=Ce;for(var P=om(E,d);++g<l;)d(g);return P}function NE(l){return sn(l)?Pn(l,_i):Nn(l)?[l]:sa(fg(Zn(l)))}function EE(l){var d=++hb;return Zn(l)+d}var _E=Dm(function(l,d){return l+d},0),TE=ol("ceil"),RE=Dm(function(l,d){return l/d},1),AE=ol("floor");function kE(l){return l&&l.length?ys(l,Ai,jv):n}function OE(l,d){return l&&l.length?ys(l,Pt(d,2),jv):n}function DE(l){return ub(l,Ai)}function PE(l,d){return ub(l,Pt(d,2))}function ME(l){return l&&l.length?ys(l,Ai,Yv):n}function IE(l,d){return l&&l.length?ys(l,Pt(d,2),Yv):n}var LE=Dm(function(l,d){return l*d},1),FE=ol("round"),zE=Dm(function(l,d){return l-d},0);function BE(l){return l&&l.length?Ac(l,Ai):0}function mf(l,d){return l&&l.length?Ac(l,Pt(d,2)):0}return L.after=fN,L.ary=wg,L.assign=Ti,L.assignIn=ff,L.assignInWith=qu,L.assignWith=Yl,L.at=B1,L.before=E1,L.bind=Wm,L.bindAll=sE,L.bindKey=Ng,L.castArray=O1,L.chain=v1,L.chunk=zm,L.compact=r1,L.concat=Sw,L.cond=lE,L.conforms=uE,L.constant=Vg,L.countBy=b1,L.create=Ku,L.curry=_1,L.curryRight=T1,L.debounce=R1,L.defaults=Xu,L.defaultsDeep=Qm,L.defer=dN,L.delay=pN,L.difference=Ud,L.differenceBy=$d,L.differenceWith=af,L.drop=dg,L.dropRight=a1,L.dropRightWhile=xw,L.dropWhile=Cw,L.fill=ww,L.filter=Zw,L.flatMap=Jw,L.flatMapDeep=eN,L.flatMapDepth=C1,L.flatten=o1,L.flattenDeep=Um,L.flattenDepth=pg,L.flip=mN,L.flow=fE,L.flowRight=Hg,L.fromPairs=s1,L.functions=j1,L.functionsIn=MN,L.groupBy=sf,L.initial=Ew,L.intersection=_w,L.intersectionBy=jd,L.intersectionWith=mg,L.invert=V1,L.invertBy=IN,L.invokeMap=nN,L.iteratee=Wg,L.keyBy=rN,L.keys=ca,L.keysIn=Ri,L.map=Hm,L.mapKeys=LN,L.mapValues=FN,L.matches=dE,L.matchesProperty=pE,L.memoize=Gm,L.merge=zN,L.mergeWith=H1,L.method=mE,L.methodOf=hE,L.mixin=Gg,L.negate=Ym,L.nthArg=Q1,L.omit=BN,L.omitBy=UN,L.once=hN,L.orderBy=aN,L.over=qg,L.overArgs=vN,L.overEvery=gE,L.overSome=yE,L.partial=Ja,L.partialRight=lf,L.partition=iN,L.pick=$N,L.pickBy=W1,L.property=lp,L.propertyOf=up,L.pull=c1,L.pullAll=Hd,L.pullAllBy=$m,L.pullAllWith=f1,L.pullAt=Gi,L.range=bE,L.rangeRight=SE,L.rearg=A1,L.reject=sN,L.remove=of,L.rest=gN,L.reverse=Wd,L.sampleSize=Kd,L.set=Mg,L.setWith=Ig,L.shuffle=Xd,L.slice=Gd,L.sortBy=cN,L.sortedUniq=d1,L.sortedUniqBy=kw,L.split=JN,L.spread=k1,L.tail=Ow,L.take=Dw,L.takeRight=gg,L.takeRightWhile=Pw,L.takeWhile=Mw,L.tap=Gw,L.throttle=yN,L.thru=Vm,L.toArray=cf,L.toPairs=rh,L.toPairsIn=G1,L.toPath=NE,L.toPlainObject=kg,L.transform=np,L.unary=bN,L.union=Iw,L.unionBy=Lw,L.unionWith=Fw,L.uniq=p1,L.uniqBy=zw,L.uniqWith=Bw,L.unset=rp,L.unzip=yg,L.unzipWith=m1,L.update=jN,L.updateWith=Y1,L.values=pf,L.valuesIn=VN,L.without=Uw,L.words=jg,L.wrap=SN,L.xor=$w,L.xorBy=bg,L.xorWith=jw,L.zip=Vw,L.zipObject=Hw,L.zipObjectDeep=h1,L.zipWith=Ww,L.entries=rh,L.entriesIn=G1,L.extend=ff,L.extendWith=qu,Gg(L,L),L.add=_E,L.attempt=Z1,L.camelCase=K1,L.capitalize=ap,L.ceil=TE,L.clamp=q1,L.clone=D1,L.cloneDeep=CN,L.cloneDeepWith=P1,L.cloneWith=xN,L.conformsTo=Eg,L.deburr=ip,L.defaultTo=cE,L.divide=RE,L.endsWith=ah,L.eq=Yo,L.escape=op,L.escapeRegExp=sp,L.every=S1,L.find=x1,L.findIndex=i1,L.findKey=Og,L.findLast=Qw,L.findLastIndex=Bm,L.findLastKey=Jm,L.floor=AE,L.forEach=xg,L.forEachRight=Cg,L.forIn=tp,L.forInRight=U1,L.forOwn=eh,L.forOwnRight=$1,L.get=Dg,L.gt=wN,L.gte=NN,L.has=th,L.hasIn=df,L.head=l1,L.identity=Ai,L.includes=tN,L.indexOf=Nw,L.inRange=HN,L.invoke=nh,L.isArguments=Wu,L.isArray=sn,L.isArrayBuffer=EN,L.isArrayLike=Jr,L.isArrayLikeObject=Tr,L.isBoolean=Zd,L.isBuffer=_s,L.isDate=_N,L.isElement=TN,L.isEmpty=M1,L.isEqual=RN,L.isEqualWith=qm,L.isError=Hl,L.isFinite=_g,L.isFunction=Ts,L.isInteger=Qd,L.isLength=Jd,L.isMap=Tg,L.isMatch=I1,L.isMatchWith=L1,L.isNaN=Wl,L.isNative=AN,L.isNil=ON,L.isNull=kN,L.isNumber=uf,L.isObject=wr,L.isObjectLike=Rr,L.isPlainObject=Gu,L.isRegExp=Km,L.isSafeInteger=DN,L.isSet=Rg,L.isString=Xm,L.isSymbol=Nn,L.isTypedArray=Gl,L.isUndefined=Zm,L.isWeakMap=ep,L.isWeakSet=F1,L.join=Vd,L.kebabCase=GN,L.last=po,L.lastIndexOf=Tw,L.lowerCase=Lg,L.lowerFirst=Fg,L.lt=z1,L.lte=Ag,L.max=kE,L.maxBy=OE,L.mean=DE,L.meanBy=PE,L.min=ME,L.minBy=IE,L.stubArray=Kg,L.stubFalse=Xg,L.stubObject=xE,L.stubString=CE,L.stubTrue=wE,L.multiply=LE,L.nth=u1,L.noConflict=vE,L.noop=Yg,L.now=Hu,L.pad=YN,L.padEnd=qN,L.padStart=MO,L.parseInt=KN,L.random=WN,L.reduce=w1,L.reduceRight=oN,L.repeat=XN,L.replace=ZN,L.result=Pg,L.round=FE,L.runInContext=re,L.sample=N1,L.size=lN,L.snakeCase=QN,L.some=uN,L.sortedIndex=Rw,L.sortedIndexBy=hg,L.sortedIndexOf=vg,L.sortedLastIndex=Yd,L.sortedLastIndexBy=Aw,L.sortedLastIndexOf=jm,L.startCase=eE,L.startsWith=zg,L.subtract=zE,L.sum=BE,L.sumBy=mf,L.template=tE,L.times=J1,L.toFinite=cl,L.toInteger=rn,L.toLength=Yu,L.toLower=nE,L.toNumber=mo,L.toSafeInteger=PN,L.toString=Zn,L.toUpper=Bg,L.trim=rE,L.trimEnd=Ug,L.trimStart=X1,L.truncate=aE,L.unescape=iE,L.uniqueId=EE,L.upperCase=oE,L.upperFirst=$g,L.each=xg,L.eachRight=Cg,L.first=l1,Gg(L,function(){var l={};return gr(L,function(d,g){er.call(L.prototype,g)||(l[g]=d)}),l}(),{chain:!1}),L.VERSION=i,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){L[l].placeholder=L}),Tt(["drop","take"],function(l,d){An.prototype[l]=function(g){g=g===n?1:$r(rn(g),0);var E=this.__filtered__&&!d?new An(this):this.clone();return E.__filtered__?E.__takeCount__=ia(g,E.__takeCount__):E.__views__.push({size:ia(g,Ce),type:l+(E.__dir__<0?"Right":"")}),E},An.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),Tt(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==ue||g==de;An.prototype[l]=function(P){var j=this.clone();return j.__iteratees__.push({iteratee:Pt(P,3),type:g}),j.__filtered__=j.__filtered__||E,j}}),Tt(["head","last"],function(l,d){var g="take"+(d?"Right":"");An.prototype[l]=function(){return this[g](1).value()[0]}}),Tt(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");An.prototype[l]=function(){return this.__filtered__?new An(this):this[g](1)}}),An.prototype.compact=function(){return this.filter(Ai)},An.prototype.find=function(l){return this.filter(l).head()},An.prototype.findLast=function(l){return this.reverse().find(l)},An.prototype.invokeMap=yn(function(l,d){return typeof l=="function"?new An(this):this.map(function(g){return Nd(g,l,d)})}),An.prototype.reject=function(l){return this.filter(Ym(Pt(l)))},An.prototype.slice=function(l,d){l=rn(l);var g=this;return g.__filtered__&&(l>0||d<0)?new An(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==n&&(d=rn(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},An.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},An.prototype.toArray=function(){return this.take(Ce)},gr(An.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],j=E||/^find/.test(d);!P||(L.prototype[d]=function(){var Y=this.__wrapped__,Z=E?[1]:arguments,oe=Y instanceof An,De=Z[0],Ae=oe||sn(Y),Le=function(bn){var kn=P.apply(L,wi([bn],Z));return E&&Qe?kn[0]:kn};Ae&&g&&typeof De=="function"&&De.length!=1&&(oe=Ae=!1);var Qe=this.__chain__,vt=!!this.__actions__.length,Mt=j&&!Qe,pn=oe&&!vt;if(!j&&Ae){Y=pn?Y:new An(this);var Ut=l.apply(Y,Z);return Ut.__actions__.push({func:Vm,args:[Le],thisArg:n}),new uo(Ut,Qe)}return Mt&&pn?l.apply(this,Z):(Ut=this.thru(Le),Mt?E?Ut.value()[0]:Ut.value():Ut)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(l){var d=Zs[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 j=this.value();return d.apply(sn(j)?j:[],P)}return this[g](function(Y){return d.apply(sn(Y)?Y:[],P)})}}),gr(An.prototype,function(l,d){var g=L[d];if(g){var E=g.name+"";er.call(Uc,E)||(Uc[E]=[]),Uc[E].push({name:d,func:g})}}),Uc[ef(n,B).name]=[{name:"wrapper",func:n}],An.prototype.clone=Ft,An.prototype.reverse=Vc,An.prototype.value=jr,L.prototype.at=Yw,L.prototype.chain=qw,L.prototype.commit=Kw,L.prototype.next=g1,L.prototype.plant=qd,L.prototype.reverse=Xw,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=y1,L.prototype.first=L.prototype.head,hd&&(L.prototype[hd]=Sg),L},Dc=qC();A?((A.exports=Dc)._=Dc,S._=Dc):Kt._=Dc}).call(vc)})(Yr,Yr.exports);const Spe={currentImageUuid:"",images:[],nextPage:1,offset:0},pz=xO({name:"gallery",initialState:Spe,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,i=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(u=>u.uuid===n),c=Yr.exports.clamp(o,0,i.length-1);e.currentImage=i.length?i[c]:void 0,e.currentImageUuid=i.length?i[c].uuid:""}e.images=i},addImage:(e,t)=>{e.images.unshift(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload,e.offset+=1},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},addGalleryImages:(e,t)=>{const{images:n,nextPage:i,offset:o}=t.payload;if(n.length){const c=n[0];e.images=e.images.concat(n).sort((u,m)=>m.mtime-u.mtime),e.currentImage=c,e.currentImageUuid=c.uuid,e.nextPage=i,e.offset=o}}}}),{addImage:Ix,clearIntermediateImage:vI,removeImage:xpe,setCurrentImage:Cpe,addGalleryImages:wpe,setIntermediateImage:Npe}=pz.actions,Epe=pz.reducer,_pe={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:""},Tpe=_pe,mz=xO({name:"system",initialState:Tpe,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>{const n=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:n}},addLogEntry:(e,t)=>{const{timestamp:n,message:i,level:o}=t.payload,u={timestamp:n,message:i,level:o||"info"};e.log.push(u)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload}}}),{setShouldDisplayInProgress:Rpe,setIsProcessing:hc,addLogEntry:eo,setShouldShowLogViewer:Ape,setIsConnected:gI,setSocketId:bge,setShouldConfirmOnDelete:hz,setOpenAccordions:kpe,setSystemStatus:Ope,setCurrentStatus:yI,setSystemConfig:Dpe,setShouldDisplayGuides:Ppe}=mz.actions,Mpe=mz.reducer,Cu=Object.create(null);Cu.open="0";Cu.close="1";Cu.ping="2";Cu.pong="3";Cu.message="4";Cu.upgrade="5";Cu.noop="6";const a2=Object.create(null);Object.keys(Cu).forEach(e=>{a2[Cu[e]]=e});const Ipe={type:"error",data:"parser error"},Lpe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fpe=typeof ArrayBuffer=="function",zpe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,vz=({type:e,data:t},n,i)=>Lpe&&t instanceof Blob?n?i(t):bI(t,i):Fpe&&(t instanceof ArrayBuffer||zpe(t))?n?i(t):bI(new Blob([t]),i):i(Cu[e]+(t||"")),bI=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+i)},n.readAsDataURL(e)},SI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<SI.length;e++)K0[SI.charCodeAt(e)]=e;const Bpe=e=>{let t=e.length*.75,n=e.length,i,o=0,c,u,m,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),b=new Uint8Array(v);for(i=0;i<n;i+=4)c=K0[e.charCodeAt(i)],u=K0[e.charCodeAt(i+1)],m=K0[e.charCodeAt(i+2)],h=K0[e.charCodeAt(i+3)],b[o++]=c<<2|u>>4,b[o++]=(u&15)<<4|m>>2,b[o++]=(m&3)<<6|h&63;return v},Upe=typeof ArrayBuffer=="function",gz=(e,t)=>{if(typeof e!="string")return{type:"message",data:yz(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:$pe(e.substring(1),t)}:a2[n]?e.length>1?{type:a2[n],data:e.substring(1)}:{type:a2[n]}:Ipe},$pe=(e,t)=>{if(Upe){const n=Bpe(e);return yz(n,t)}else return{base64:!0,data:e}},yz=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},bz=String.fromCharCode(30),jpe=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((c,u)=>{vz(c,!1,m=>{i[u]=m,++o===n&&t(i.join(bz))})})},Vpe=(e,t)=>{const n=e.split(bz),i=[];for(let o=0;o<n.length;o++){const c=gz(n[o],t);if(i.push(c),c.type==="error")break}return i},Sz=4;function ha(e){if(e)return Hpe(e)}function Hpe(e){for(var t in ha.prototype)e[t]=ha.prototype[t];return e}ha.prototype.on=ha.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ha.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ha.prototype.off=ha.prototype.removeListener=ha.prototype.removeAllListeners=ha.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===t||i.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ha.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,t)}return this};ha.prototype.emitReserved=ha.prototype.emit;ha.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ha.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Gf=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function xz(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const Wpe=setTimeout,Gpe=clearTimeout;function LC(e,t){t.useNativeTimers?(e.setTimeoutFn=Wpe.bind(Gf),e.clearTimeoutFn=Gpe.bind(Gf)):(e.setTimeoutFn=setTimeout.bind(Gf),e.clearTimeoutFn=clearTimeout.bind(Gf))}const Ype=1.33;function qpe(e){return typeof e=="string"?Kpe(e):Math.ceil((e.byteLength||e.size)*Ype)}function Kpe(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}class Xpe extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class Cz extends ha{constructor(t){super(),this.writable=!1,LC(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,i){return super.emitReserved("error",new Xpe(t,n,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 n=gz(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const wz="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),_A=64,Zpe={};let xI=0,Lx=0,CI;function wI(e){let t="";do t=wz[e%_A]+t,e=Math.floor(e/_A);while(e>0);return t}function Nz(){const e=wI(+new Date);return e!==CI?(xI=0,CI=e):e+"."+wI(xI++)}for(;Lx<_A;Lx++)Zpe[wz[Lx]]=Lx;function Ez(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Qpe(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let c=n[i].split("=");t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}let _z=!1;try{_z=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Jpe=_z;function Tz(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Jpe))return new XMLHttpRequest}catch{}if(!t)try{return new Gf[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function eme(){}const tme=function(){return new Tz({xdomain:!1}).responseType!=null}();class nme extends Cz{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let o=location.port;o||(o=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==i}const n=t&&t.forceBase64;this.supportsBinary=tme&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=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)};Vpe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,jpe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Nz()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const o=Ez(t),c=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new bu(this.uri(),t)}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,c)=>{this.onError("xhr post error",o,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}class bu extends ha{constructor(t,n){super(),LC(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=xz(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Tz(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=bu.requestsCount++,bu.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=eme,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete bu.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()}}bu.requestsCount=0;bu.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",NI);else if(typeof addEventListener=="function"){const e="onpagehide"in Gf?"pagehide":"unload";addEventListener(e,NI,!1)}}function NI(){for(let e in bu.requests)bu.requests.hasOwnProperty(e)&&bu.requests[e].abort()}const rme=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Fx=Gf.WebSocket||Gf.MozWebSocket,EI=!0,ame="arraybuffer",_I=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ime extends Cz{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,i=_I?{}:xz(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=EI&&!_I?n?new Fx(t,n):new Fx(t):new Fx(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||ame,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;vz(i,this.supportsBinary,c=>{const u={};try{EI&&this.ws.send(c)}catch{}o&&rme(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Nz()),this.supportsBinary||(t.b64=1);const o=Ez(t),c=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}check(){return!!Fx}}const ome={websocket:ime,polling:nme},sme=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lme=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function TA(e){const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let o=sme.exec(e||""),c={},u=14;for(;u--;)c[lme[u]]=o[u]||"";return n!=-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=ume(c,c.path),c.queryKey=cme(c,c.query),c}function ume(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").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 cme(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,c){o&&(n[o]=c)}),n}class $f extends ha{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=TA(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=TA(n.host).host),LC(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Qpe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Sz,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ome[t](i)}open(){let t;if(this.opts.rememberUpgrade&&$f.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),i=!1;$f.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",x=>{if(!i)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$f.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(b(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function c(){i||(i=!0,b(),n.close(),n=null)}const u=x=>{const w=new Error("probe error: "+x);w.transport=n.name,c(),this.emitReserved("upgradeError",w)};function m(){u("transport closed")}function h(){u("socket closed")}function v(x){n&&x.name!==n.name&&c()}const b=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",m),this.off("close",h),this.off("upgrading",v)};n.once("open",o),n.once("error",u),n.once("close",m),this.once("close",h),this.once("upgrading",v),n.open()}onOpen(){if(this.readyState="open",$f.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=qpe(o)),i>0&&n>this.maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}write(t,n,i){return this.sendPacket("message",t,n,i),this}send(t,n,i){return this.sendPacket("message",t,n,i),this}sendPacket(t,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const c={type:t,data:n,options:i};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){$f.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let i=0;const o=t.length;for(;i<o;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}$f.protocol=Sz;function fme(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=TA(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+(n&&n.port===i.port?"":":"+i.port),i}const dme=typeof ArrayBuffer=="function",pme=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Rz=Object.prototype.toString,mme=typeof Blob=="function"||typeof Blob<"u"&&Rz.call(Blob)==="[object BlobConstructor]",hme=typeof File=="function"||typeof File<"u"&&Rz.call(File)==="[object FileConstructor]";function kO(e){return dme&&(e instanceof ArrayBuffer||pme(e))||mme&&e instanceof Blob||hme&&e instanceof File}function i2(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(i2(e[n]))return!0;return!1}if(kO(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return i2(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&i2(e[n]))return!0;return!1}function vme(e){const t=[],n=e.data,i=e;return i.data=RA(n,t),i.attachments=t.length,{packet:i,buffers:t}}function RA(e,t){if(!e)return e;if(kO(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=RA(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=RA(e[i],t));return n}return e}function gme(e,t){return e.data=AA(e.data,t),e.attachments=void 0,e}function AA(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=AA(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=AA(e[n],t));return e}const yme=5;var qn;(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"})(qn||(qn={}));class bme{constructor(t){this.replacer=t}encode(t){return(t.type===qn.EVENT||t.type===qn.ACK)&&i2(t)?(t.type=t.type===qn.EVENT?qn.BINARY_EVENT:qn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===qn.BINARY_EVENT||t.type===qn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=vme(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}class OO extends ha{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t),n.type===qn.BINARY_EVENT||n.type===qn.BINARY_ACK?(this.reconstructor=new Sme(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(kO(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(qn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===qn.BINARY_EVENT||i.type===qn.BINARY_ACK){const c=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(c,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(n+1)==="/"){const c=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(c,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const c=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(c,n+1))}if(t.charAt(++n)){const c=this.tryParse(t.substr(n));if(OO.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,n){switch(t){case qn.CONNECT:return typeof n=="object";case qn.DISCONNECT:return n===void 0;case qn.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case qn.EVENT:case qn.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case qn.ACK:case qn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Sme{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=gme(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const xme=Object.freeze(Object.defineProperty({__proto__:null,protocol:yme,get PacketType(){return qn},Encoder:bme,Decoder:OO},Symbol.toStringTag,{value:"Module"}));function Tl(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Cme=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Az extends ha{constructor(t,n,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,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=[Tl(t,"open",this.onopen.bind(this)),Tl(t,"packet",this.onpacket.bind(this)),Tl(t,"error",this.onerror.bind(this)),Tl(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(Cme.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const i={type:qn.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const u=this.ids++,m=n.pop();this._registerAckCallback(u,m),i.id=u}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,n){const i=this.flags.timeout;if(i===void 0){this.acks[t]=n;return}const o=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);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...c)=>{this.io.clearTimeoutFn(o),n.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:qn.CONNECT,data:t})}):this.packet({type:qn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case qn.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case qn.EVENT:case qn.BINARY_EVENT:this.onevent(t);break;case qn.ACK:case qn.BINARY_ACK:this.onack(t);break;case qn.DISCONNECT:this.ondisconnect();break;case qn.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 n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:qn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:qn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.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 n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function xv(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}xv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};xv.prototype.reset=function(){this.attempts=0};xv.prototype.setMin=function(e){this.ms=e};xv.prototype.setMax=function(e){this.max=e};xv.prototype.setJitter=function(e){this.jitter=e};class kA extends ha{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,LC(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new xv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||xme;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new $f(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=Tl(n,"open",function(){i.onopen(),t&&t()}),c=Tl(n,"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&&o();const m=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},u);this.opts.autoUnref&&m.unref(),this.subs.push(function(){clearTimeout(m)})}return this.subs.push(o),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(Tl(t,"ping",this.onping.bind(this)),Tl(t,"data",this.ondata.bind(this)),Tl(t,"error",this.onerror.bind(this)),Tl(t,"close",this.onclose.bind(this)),Tl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i||(i=new Az(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[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,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&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 $0={};function o2(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=fme(e,t.path||"/socket.io"),i=n.source,o=n.id,c=n.path,u=$0[o]&&c in $0[o].nsps,m=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let h;return m?h=new kA(i,t):($0[o]||($0[o]=new kA(i,t)),h=$0[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(o2,{Manager:kA,Socket:Az,io:o2,connect:o2});let zx;const wme=new Uint8Array(16);function Nme(){if(!zx&&(zx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zx(wme)}const di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function Eme(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}const _me=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),TI={randomUUID:_me};function j0(e,t,n){if(TI.randomUUID&&!t&&!e)return TI.randomUUID();e=e||{};const i=e.random||(e.rng||Nme)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=i[o];return t}return Eme(i)}var Tme=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Rme=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Ame=/[^-+\dA-Z]/g;function to(e,t,n,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(RI[t]||t||RI.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(i=!0));var c=function(){return n?"getUTC":"get"},u=function(){return e[c()+"Date"]()},m=function(){return e[c()+"Day"]()},h=function(){return e[c()+"Month"]()},v=function(){return e[c()+"FullYear"]()},b=function(){return e[c()+"Hours"]()},x=function(){return e[c()+"Minutes"]()},w=function(){return e[c()+"Seconds"]()},N=function(){return e[c()+"Milliseconds"]()},R=function(){return n?0:e.getTimezoneOffset()},O=function(){return kme(e)},M=function(){return Ome(e)},B={d:function(){return u()},dd:function(){return Zo(u())},ddd:function(){return bo.dayNames[m()]},DDD:function(){return AI({y:v(),m:h(),d:u(),_:c(),dayName:bo.dayNames[m()],short:!0})},dddd:function(){return bo.dayNames[m()+7]},DDDD:function(){return AI({y:v(),m:h(),d:u(),_:c(),dayName:bo.dayNames[m()+7]})},m:function(){return h()+1},mm:function(){return Zo(h()+1)},mmm:function(){return bo.monthNames[h()]},mmmm:function(){return bo.monthNames[h()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return Zo(v(),4)},h:function(){return b()%12||12},hh:function(){return Zo(b()%12||12)},H:function(){return b()},HH:function(){return Zo(b())},M:function(){return x()},MM:function(){return Zo(x())},s:function(){return w()},ss:function(){return Zo(w())},l:function(){return Zo(N(),3)},L:function(){return Zo(Math.floor(N()/10))},t:function(){return b()<12?bo.timeNames[0]:bo.timeNames[1]},tt:function(){return b()<12?bo.timeNames[2]:bo.timeNames[3]},T:function(){return b()<12?bo.timeNames[4]:bo.timeNames[5]},TT:function(){return b()<12?bo.timeNames[6]:bo.timeNames[7]},Z:function(){return i?"GMT":n?"UTC":Dme(e)},o:function(){return(R()>0?"-":"+")+Zo(Math.floor(Math.abs(R())/60)*100+Math.abs(R())%60,4)},p:function(){return(R()>0?"-":"+")+Zo(Math.floor(Math.abs(R())/60),2)+":"+Zo(Math.floor(Math.abs(R())%60),2)},S:function(){return["th","st","nd","rd"][u()%10>3?0:(u()%100-u()%10!=10)*u()%10]},W:function(){return O()},WW:function(){return Zo(O())},N:function(){return M()}};return t.replace(Tme,function(I){return I in B?B[I]():I.slice(1,I.length-1)})}var RI={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"},bo={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"]},Zo=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},AI=function(t){var n=t.y,i=t.m,o=t.d,c=t._,u=t.dayName,m=t.short,h=m===void 0?!1:m,v=new Date,b=new Date;b.setDate(b[c+"Date"]()-1);var x=new Date;x.setDate(x[c+"Date"]()+1);var w=function(){return v[c+"Date"]()},N=function(){return v[c+"Month"]()},R=function(){return v[c+"FullYear"]()},O=function(){return b[c+"Date"]()},M=function(){return b[c+"Month"]()},B=function(){return b[c+"FullYear"]()},I=function(){return x[c+"Date"]()},F=function(){return x[c+"Month"]()},z=function(){return x[c+"FullYear"]()};return R()===n&&N()===i&&w()===o?h?"Tdy":"Today":B()===n&&M()===i&&O()===o?h?"Ysd":"Yesterday":z()===n&&F()===i&&I()===o?h?"Tmw":"Tomorrow":u},kme=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=new Date(n.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var o=n.getTimezoneOffset()-i.getTimezoneOffset();n.setHours(n.getHours()-o);var c=(n-i)/(864e5*7);return 1+Math.floor(c)},Ome=function(t){var n=t.getDay();return n===0&&(n=7),n},Dme=function(t){return(String(t).match(Rme)||[""]).pop().replace(Ame,"").replace(/GMT\+0000/g,"UTC")};const kz=ro("socketio/generateImage"),Pme=ro("socketio/runESRGAN"),Mme=ro("socketio/runGFPGAN"),Ime=ro("socketio/deleteImage"),Lme=ro("socketio/requestImages"),Fme=ro("socketio/requestNewImages"),zme=ro("socketio/cancelProcessing"),Bme=ro("socketio/uploadInitialImage"),Ume=ro("socketio/uploadMaskImage"),$me=ro("socketio/requestSystemConfig"),jme=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(gI(!0)),t(yI("Connected")),t(Fme())}catch(i){console.error(i)}},onDisconnect:()=>{try{t(gI(!1)),t(yI("Disconnected")),t(eo({timestamp:to(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(i){console.error(i)}},onGenerationResult:i=>{try{const{url:o,mtime:c,metadata:u}=i,m=j0();t(Ix({uuid:m,url:o,mtime:c,metadata:u})),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(hc(!1))}catch(o){console.error(o)}},onIntermediateResult:i=>{try{const o=j0(),{url:c,metadata:u,mtime:m}=i;t(Npe({uuid:o,url:c,mtime:m,metadata:u})),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Intermediate image generated: ${c}`})),t(hc(!1))}catch(o){console.error(o)}},onESRGANResult:i=>{try{const{url:o,metadata:c,mtime:u}=i;t(Ix({uuid:j0(),url:o,mtime:u,metadata:c})),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(hc(!1))}catch(o){console.error(o)}},onGFPGANResult:i=>{try{const{url:o,metadata:c,mtime:u}=i;t(Ix({uuid:j0(),url:o,mtime:u,metadata:c})),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:i=>{try{t(hc(!0)),t(Ope(i))}catch(o){console.error(o)}},onError:i=>{const{message:o,additionalData:c}=i;try{t(eo({timestamp:to(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(hc(!1)),t(vI())}catch(u){console.error(u)}},onGalleryImages:i=>{const{images:o,nextPage:c,offset:u}=i,m=o.map(h=>{const{url:v,metadata:b,mtime:x}=h;return{uuid:j0(),url:v,mtime:x,metadata:b}});t(wpe({images:m,nextPage:c,offset:u})),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(hc(!1));const{intermediateImage:i}=n().gallery;i&&(t(Ix(i)),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Intermediate image saved: ${i.url}`})),t(vI())),t(eo({timestamp:to(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:i=>{const{url:o,uuid:c}=i;t(xpe(c)),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:i=>{const{url:o}=i;t(IC(o)),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:i=>{const{url:o}=i;t(AO(o)),t(eo({timestamp:to(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:i=>{t(Dpe(i))}}},Vme=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],Hme=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Wme=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Gme=[{key:"2x",value:2},{key:"4x",value:4}],OA=0,DA=4294967295,Oz=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Yme=(e,t)=>{const{prompt:n,iterations:i,steps:o,cfgScale:c,height:u,width:m,sampler:h,seed:v,seamless:b,shouldUseInitImage:x,img2imgStrength:w,initialImagePath:N,maskPath:R,shouldFitToWidthHeight:O,shouldGenerateVariations:M,variationAmount:B,seedWeights:I,shouldRunESRGAN:F,upscalingLevel:z,upscalingStrength:$,shouldRunGFPGAN:q,gfpganStrength:K,shouldRandomizeSeed:le}=e,{shouldDisplayInProgress:me}=t,se={prompt:n,iterations:i,steps:o,cfg_scale:c,height:u,width:m,sampler_name:h,seed:v,seamless:b,progress_images:me};se.seed=le?Oz(OA,DA):v,x&&(se.init_img=N,se.strength=w,se.fit=O,R&&(se.init_mask=R)),M?(se.variation_amount=B,I&&(se.with_variations=upe(I))):se.variation_amount=0;let Se=!1,qe=!1;return F&&(Se={level:z,strength:$}),q&&(qe={strength:K}),{generationParameters:se,esrganParameters:Se,gfpganParameters:qe}},qme=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(hc(!0));const{generationParameters:o,esrganParameters:c,gfpganParameters:u}=Yme(i().options,i().system);t.emit("generateImage",o,c,u),n(eo({timestamp:to(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...c,...u})}`}))},emitRunESRGAN:o=>{n(hc(!0));const{upscalingLevel:c,upscalingStrength:u}=i().options,m={upscale:[c,u]};t.emit("runESRGAN",o,m),n(eo({timestamp:to(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...m})}`}))},emitRunGFPGAN:o=>{n(hc(!0));const{gfpganStrength:c}=i().options,u={gfpgan_strength:c};t.emit("runGFPGAN",o,u),n(eo({timestamp:to(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...u})}`}))},emitDeleteImage:o=>{const{url:c,uuid:u}=o;t.emit("deleteImage",c,u)},emitRequestImages:()=>{const{nextPage:o,offset:c}=i().gallery;t.emit("requestImages",o,c)},emitRequestNewImages:()=>{const{nextPage:o,offset:c,images:u}=i().gallery;u.length>0?t.emit("requestImages",o,c,u[0].mtime):t.emit("requestImages",o,c)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},Kme=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=o2(`http://${e}:9090`,{timeout:6e4});let i=!1;return c=>u=>m=>{const{onConnect:h,onDisconnect:v,onError:b,onESRGANResult:x,onGFPGANResult:w,onGenerationResult:N,onIntermediateResult:R,onProgressUpdate:O,onGalleryImages:M,onProcessingCanceled:B,onImageDeleted:I,onInitialImageUploaded:F,onMaskImageUploaded:z,onSystemConfig:$}=jme(c),{emitGenerateImage:q,emitRunESRGAN:K,emitRunGFPGAN:le,emitDeleteImage:me,emitRequestImages:se,emitRequestNewImages:Se,emitCancelProcessing:qe,emitUploadInitialImage:ae,emitUploadMaskImage:ue,emitRequestSystemConfig:Ee}=qme(c,n);switch(i||(n.on("connect",()=>h()),n.on("disconnect",()=>v()),n.on("error",de=>b(de)),n.on("generationResult",de=>N(de)),n.on("esrganResult",de=>x(de)),n.on("gfpganResult",de=>w(de)),n.on("intermediateResult",de=>R(de)),n.on("progressUpdate",de=>O(de)),n.on("galleryImages",de=>M(de)),n.on("processingCanceled",()=>{B()}),n.on("imageDeleted",de=>{I(de)}),n.on("initialImageUploaded",de=>{F(de)}),n.on("maskImageUploaded",de=>{z(de)}),n.on("systemConfig",de=>{$(de)}),i=!0),m.type){case"socketio/generateImage":{q();break}case"socketio/runESRGAN":{K(m.payload);break}case"socketio/runGFPGAN":{le(m.payload);break}case"socketio/deleteImage":{me(m.payload);break}case"socketio/requestImages":{se();break}case"socketio/requestNewImages":{Se();break}case"socketio/cancelProcessing":{qe();break}case"socketio/uploadInitialImage":{ae(m.payload);break}case"socketio/uploadMaskImage":{ue(m.payload);break}case"socketio/requestSystemConfig":{Ee();break}}u(m)}},Xme={key:"root",storage:TO,blacklist:["gallery","system"]},Zme={key:"system",storage:TO,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Qme=DF({options:bpe,gallery:Epe,system:ez(Zme,Mpe)}),Jme=ez(Xme,Qme),Dz=fde({reducer:Jme,middleware:e=>e({serializableCheck:!1}).concat(Kme())}),Ga=Dde,mr=Cde;function s2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s2=function(n){return typeof n}:s2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s2(e)}function ehe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function the(e,t,n){return t&&kI(e.prototype,t),n&&kI(e,n),e}function nhe(e,t){return t&&(s2(t)==="object"||typeof t=="function")?t:l2(e)}function PA(e){return PA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},PA(e)}function l2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rhe(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&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},MA(e,t)}function u2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pz=function(e){rhe(t,e);function t(){var n,i;ehe(this,t);for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];return i=nhe(this,(n=PA(t)).call.apply(n,[this].concat(c))),u2(l2(i),"state",{bootstrapped:!1}),u2(l2(i),"_unsubscribe",void 0),u2(l2(i),"handlePersistorState",function(){var m=i.props.persistor,h=m.getState(),v=h.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 the(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}(k.exports.PureComponent);u2(Pz,"defaultProps",{children:null,loading:null});const OI=Cfe({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var DI="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const Mz=()=>_(Sn,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:_(wC,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:DI,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:DI,lineNumber:5,columnNumber:9},void 0);var qh="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/node_modules/@chakra-ui/icon/dist/index.esm.js",PI={path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:qh,lineNumber:14,columnNumber:22},globalThis),_("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:qh,lineNumber:18,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:qh,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:qh,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},Iz=Xe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:c=!1,children:u,className:m,__css:h,...v}=e,b=qr("chakra-icon",m),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},w={ref:t,focusable:c,className:b,__css:x},N=i??PI.viewBox;if(n&&typeof n!="string")return Pe.createElement($e.svg,{as:n,...w,...v});const R=u??PI.path;return Pe.createElement($e.svg,{verticalAlign:"middle",viewBox:N,...w,...v},R)});Iz.displayName="Icon";function Et(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,c=k.exports.Children.toArray(e.path),u=Xe((m,h)=>_(Iz,{ref:h,viewBox:t,...o,...m,children:c.length?c:_("path",{fill:"currentColor",d:n},void 0,!1,{fileName:qh,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:qh,lineNumber:88,columnNumber:60},this));return u.displayName=i,u}var dt="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Et({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Et({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Et({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Et({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Et({displayName:"SunIcon",path:_("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[_("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:dt,lineNumber:42,columnNumber:22},globalThis),_("path",{d:"M12 1v2"},void 0,!1,{fileName:dt,lineNumber:46,columnNumber:23},globalThis),_("path",{d:"M12 21v2"},void 0,!1,{fileName:dt,lineNumber:48,columnNumber:23},globalThis),_("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:50,columnNumber:23},globalThis),_("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:52,columnNumber:23},globalThis),_("path",{d:"M1 12h2"},void 0,!1,{fileName:dt,lineNumber:54,columnNumber:23},globalThis),_("path",{d:"M21 12h2"},void 0,!1,{fileName:dt,lineNumber:56,columnNumber:23},globalThis),_("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:58,columnNumber:23},globalThis),_("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:36,columnNumber:25},globalThis)});Et({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Et({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:_("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:dt,lineNumber:77,columnNumber:25},globalThis)});Et({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Et({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Et({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Et({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Et({displayName:"ViewIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:dt,lineNumber:119,columnNumber:22},globalThis),_("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:dt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:117,columnNumber:25},globalThis)});Et({displayName:"ViewOffIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:dt,lineNumber:134,columnNumber:22},globalThis),_("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:dt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:132,columnNumber:25},globalThis)});Et({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Et({displayName:"DeleteIcon",path:_("g",{fill:"currentColor",children:_("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:dt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:153,columnNumber:25},globalThis)});Et({displayName:"RepeatIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:dt,lineNumber:166,columnNumber:22},globalThis),_("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:dt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:164,columnNumber:25},globalThis)});Et({displayName:"RepeatClockIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:dt,lineNumber:179,columnNumber:22},globalThis),_("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:dt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:177,columnNumber:25},globalThis)});Et({displayName:"EditIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:dt,lineNumber:195,columnNumber:22},globalThis),_("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:dt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:190,columnNumber:25},globalThis)});Et({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Et({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Et({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Et({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Et({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Et({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Et({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Et({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Et({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var Lz=Et({displayName:"ExternalLinkIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:dt,lineNumber:275,columnNumber:22},globalThis),_("path",{d:"M15 3h6v6"},void 0,!1,{fileName:dt,lineNumber:277,columnNumber:23},globalThis),_("path",{d:"M10 14L21 3"},void 0,!1,{fileName:dt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:270,columnNumber:25},globalThis)});Et({displayName:"LinkIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:dt,lineNumber:290,columnNumber:22},globalThis),_("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:dt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:288,columnNumber:25},globalThis)});Et({displayName:"PlusSquareIcon",path:_("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[_("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:dt,lineNumber:306,columnNumber:22},globalThis),_("path",{d:"M12 8v8"},void 0,!1,{fileName:dt,lineNumber:313,columnNumber:23},globalThis),_("path",{d:"M8 12h8"},void 0,!1,{fileName:dt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:301,columnNumber:25},globalThis)});Et({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Et({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Et({displayName:"TimeIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:dt,lineNumber:342,columnNumber:22},globalThis),_("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:dt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:340,columnNumber:25},globalThis)});Et({displayName:"ArrowRightIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:dt,lineNumber:355,columnNumber:22},globalThis),_("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:dt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:353,columnNumber:25},globalThis)});Et({displayName:"ArrowLeftIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:dt,lineNumber:368,columnNumber:22},globalThis),_("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:dt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:366,columnNumber:25},globalThis)});Et({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Et({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Et({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Et({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Et({displayName:"EmailIcon",path:_("g",{fill:"currentColor",children:[_("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:dt,lineNumber:410,columnNumber:22},globalThis),_("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:dt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:408,columnNumber:25},globalThis)});Et({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Et({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Et({displayName:"SpinnerIcon",path:_(hi,{children:[_("defs",{children:_("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[_("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:dt,lineNumber:443,columnNumber:22},globalThis),_("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:dt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:dt,lineNumber:437,columnNumber:83},globalThis),_("g",{transform:"translate(2)",fill:"none",children:[_("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:dt,lineNumber:453,columnNumber:22},globalThis),_("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:dt,lineNumber:459,columnNumber:23},globalThis),_("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:dt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Et({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Et({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:_("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:dt,lineNumber:484,columnNumber:25},globalThis)});Et({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Et({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Et({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Et({displayName:"InfoOutlineIcon",path:_("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[_("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:dt,lineNumber:521,columnNumber:22},globalThis),_("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:dt,lineNumber:527,columnNumber:23},globalThis),_("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:dt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:516,columnNumber:25},globalThis)});Et({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Et({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"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Et({displayName:"QuestionOutlineIcon",path:_("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:dt,lineNumber:568,columnNumber:22},globalThis),_("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:dt,lineNumber:572,columnNumber:23},globalThis),_("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:dt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:565,columnNumber:25},globalThis)});Et({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Et({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Et({viewBox:"0 0 14 14",path:_("g",{fill:"currentColor",children:_("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:dt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:603,columnNumber:25},globalThis)});Et({displayName:"MinusIcon",path:_("g",{fill:"currentColor",children:_("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:dt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:614,columnNumber:25},globalThis)});Et({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Fz={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},MI=Pe.createContext&&Pe.createContext(Fz),c2="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",Xf=globalThis&&globalThis.__assign||function(){return Xf=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xf.apply(this,arguments)},ahe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};function zz(e){return e&&e.map(function(t,n){return Pe.createElement(t.tag,Xf({key:n},t.attr),zz(t.child))})}function io(e){return function(t){return _(ihe,{...Xf({attr:Xf({},e.attr)},t),children:zz(e.child)},void 0,!1,{fileName:c2,lineNumber:39,columnNumber:12},this)}}function ihe(e){var t=function(n){var i=e.attr,o=e.size,c=e.title,u=ahe(e,["attr","size","title"]),m=o||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),_("svg",{...Xf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:h,style:Xf(Xf({color:e.color||n.color},n.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),children:[c&&_("title",{children:c},void 0,!1,{fileName:c2,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:c2,lineNumber:55,columnNumber:12},this)};return MI!==void 0?_(MI.Consumer,{children:function(n){return t(n)}},void 0,!1,{fileName:c2,lineNumber:70,columnNumber:38},this):t(Fz)}function Bz(e){return io({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}function ohe(e){return io({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 she(e){return io({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 lhe(e){return io({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 uhe(e){return io({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 che(e){return io({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 fhe(e){return io({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 dhe(e){return io({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 phe(e){return io({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 mhe(e){return io({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 hhe(e){return io({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function II(e){return io({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function LI(e){return io({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}var mn="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetadataViewer.tsx";const na=({label:e,value:t,onClick:n,isLink:i})=>_(Sn,{gap:2,children:[n&&_(Kf,{label:`Recall ${e}`,children:_(wo,{"aria-label":"Use this parameter",icon:_(Bz,{},void 0,!1,{fileName:mn,lineNumber:54,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:mn,lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:mn,lineNumber:51,columnNumber:9},void 0),_(Gr,{fontWeight:"semibold",whiteSpace:"nowrap",children:[e,":"]},void 0,!0,{fileName:mn,lineNumber:62,columnNumber:7},void 0),i?_(Ty,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",_(Lz,{mx:"2px"},void 0,!1,{fileName:mn,lineNumber:67,columnNumber:30},void 0)]},void 0,!0,{fileName:mn,lineNumber:66,columnNumber:9},void 0):_(Gr,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:mn,lineNumber:70,columnNumber:9},void 0)]},void 0,!0,{fileName:mn,lineNumber:49,columnNumber:5},void 0),vhe=(e,t)=>e.image.uuid===t.image.uuid,ghe=k.exports.memo(({image:e})=>{const t=Ga(),n=Yf("blackAlpha.100","whiteAlpha.100"),i=e?.metadata?.image||{},{type:o,postprocessing:c,sampler:u,prompt:m,seed:h,variations:v,steps:b,cfg_scale:x,seamless:w,width:N,height:R,strength:O,fit:M,init_image_path:B,mask_image_path:I,orig_path:F,scale:z}=i,$=JSON.stringify(i,null,2);return _(Sn,{gap:1,direction:"column",overflowY:"scroll",width:"100%",children:[_(Sn,{gap:2,children:[_(Gr,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:mn,lineNumber:124,columnNumber:9},void 0),_(Ty,{href:e.url,isExternal:!0,children:[e.url,_(Lz,{mx:"2px"},void 0,!1,{fileName:mn,lineNumber:127,columnNumber:11},void 0)]},void 0,!0,{fileName:mn,lineNumber:125,columnNumber:9},void 0)]},void 0,!0,{fileName:mn,lineNumber:123,columnNumber:7},void 0),Object.keys(i).length>0?_(hi,{children:[o&&_(na,{label:"Type",value:o},void 0,!1,{fileName:mn,lineNumber:132,columnNumber:20},void 0),["esrgan","gfpgan"].includes(o)&&_(na,{label:"Original image",value:F,isLink:!0},void 0,!1,{fileName:mn,lineNumber:134,columnNumber:13},void 0),o==="gfpgan"&&O&&_(na,{label:"Fix faces strength",value:O,onClick:()=>t(wA(O))},void 0,!1,{fileName:mn,lineNumber:137,columnNumber:13},void 0),o==="esrgan"&&z&&_(na,{label:"Upscaling scale",value:z,onClick:()=>t(NA(z))},void 0,!1,{fileName:mn,lineNumber:144,columnNumber:13},void 0),o==="esrgan"&&O&&_(na,{label:"Upscaling strength",value:O,onClick:()=>t(EA(O))},void 0,!1,{fileName:mn,lineNumber:151,columnNumber:13},void 0),m&&_(na,{label:"Prompt",value:SA(m),onClick:()=>t(az(m))},void 0,!1,{fileName:mn,lineNumber:158,columnNumber:13},void 0),h&&_(na,{label:"Seed",value:h,onClick:()=>t(Fy(h))},void 0,!1,{fileName:mn,lineNumber:165,columnNumber:13},void 0),u&&_(na,{label:"Sampler",value:u,onClick:()=>t(lz(u))},void 0,!1,{fileName:mn,lineNumber:172,columnNumber:13},void 0),b&&_(na,{label:"Steps",value:b,onClick:()=>t(iz(b))},void 0,!1,{fileName:mn,lineNumber:179,columnNumber:13},void 0),x&&_(na,{label:"CFG scale",value:x,onClick:()=>t(oz(x))},void 0,!1,{fileName:mn,lineNumber:186,columnNumber:13},void 0),v&&v.length>0&&_(na,{label:"Seed-weight pairs",value:xA(v),onClick:()=>t(fz(xA(v)))},void 0,!1,{fileName:mn,lineNumber:193,columnNumber:13},void 0),w&&_(na,{label:"Seamless",value:w,onClick:()=>t(CA(w))},void 0,!1,{fileName:mn,lineNumber:202,columnNumber:13},void 0),N&&_(na,{label:"Width",value:N,onClick:()=>t(CA(N))},void 0,!1,{fileName:mn,lineNumber:209,columnNumber:13},void 0),R&&_(na,{label:"Height",value:R,onClick:()=>t(sz(R))},void 0,!1,{fileName:mn,lineNumber:216,columnNumber:13},void 0),B&&_(na,{label:"Initial image",value:B,isLink:!0,onClick:()=>t(IC(B))},void 0,!1,{fileName:mn,lineNumber:223,columnNumber:13},void 0),I&&_(na,{label:"Mask image",value:I,isLink:!0,onClick:()=>t(AO(I))},void 0,!1,{fileName:mn,lineNumber:231,columnNumber:13},void 0),o==="img2img"&&O&&_(na,{label:"Image to image strength",value:O,onClick:()=>t(uz(O))},void 0,!1,{fileName:mn,lineNumber:239,columnNumber:13},void 0),M&&_(na,{label:"Image to image fit",value:M,onClick:()=>t(cz(M))},void 0,!1,{fileName:mn,lineNumber:246,columnNumber:13},void 0),c&&c.length>0&&c.map(q=>{if(q.type==="esrgan"){const{scale:K,strength:le}=q;return _(hi,{children:[_(na,{label:"Upscaling scale",value:K,onClick:()=>t(NA(K))},void 0,!1,{fileName:mn,lineNumber:260,columnNumber:23},void 0),_(na,{label:"Upscaling strength",value:le,onClick:()=>t(EA(le))},void 0,!1,{fileName:mn,lineNumber:265,columnNumber:23},void 0)]},void 0,!0)}else if(q.type==="gfpgan"){const{strength:K}=q;return _(na,{label:"Fix faces strength",value:K,onClick:()=>t(wA(K))},void 0,!1,{fileName:mn,lineNumber:275,columnNumber:21},void 0)}}),_(Sn,{gap:2,direction:"column",children:[_(Sn,{gap:2,children:[_(Kf,{label:"Copy metadata JSON",children:_(wo,{"aria-label":"Copy metadata JSON",icon:_(che,{},void 0,!1,{fileName:mn,lineNumber:289,columnNumber:25},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText($)},void 0,!1,{fileName:mn,lineNumber:287,columnNumber:17},void 0)},void 0,!1,{fileName:mn,lineNumber:286,columnNumber:15},void 0),_(Gr,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:mn,lineNumber:296,columnNumber:15},void 0)]},void 0,!0,{fileName:mn,lineNumber:285,columnNumber:13},void 0),_(kl,{overflow:"scroll",flexGrow:3,wordBreak:"break-all",bgColor:n,padding:2,children:_("pre",{children:$},void 0,!1,{fileName:mn,lineNumber:306,columnNumber:15},void 0)},void 0,!1,{fileName:mn,lineNumber:298,columnNumber:13},void 0)]},void 0,!0,{fileName:mn,lineNumber:284,columnNumber:11},void 0)]},void 0,!0):_(_y,{width:"100%",pt:10,children:_(Gr,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:mn,lineNumber:312,columnNumber:11},void 0)},void 0,!1,{fileName:mn,lineNumber:311,columnNumber:9},void 0)]},void 0,!0,{fileName:mn,lineNumber:122,columnNumber:5},void 0)},vhe);var So="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const yhe=Br(e=>e.system,e=>e.shouldConfirmOnDelete),Uz=k.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:c}=H5(),u=Ga(),m=mr(yhe),h=k.exports.useRef(null),v=w=>{w.stopPropagation(),m?o():b()},b=()=>{u(Ime(e)),c()},x=w=>u(hz(!w.target.checked));return _(hi,{children:[k.exports.cloneElement(t,{onClick:v,ref:n}),_(Hre,{isOpen:i,leastDestructiveRef:h,onClose:c,children:_(L2,{children:_(Wre,{children:[_(sO,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:So,lineNumber:89,columnNumber:15},void 0),_(M2,{children:_(Sn,{direction:"column",gap:5,children:[_(Gr,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:So,lineNumber:95,columnNumber:19},void 0),_(xc,{children:_(Sn,{alignItems:"center",children:[_(Cc,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:So,lineNumber:100,columnNumber:23},void 0),_(wc,{checked:!m,onChange:x},void 0,!1,{fileName:So,lineNumber:101,columnNumber:23},void 0)]},void 0,!0,{fileName:So,lineNumber:99,columnNumber:21},void 0)},void 0,!1,{fileName:So,lineNumber:98,columnNumber:19},void 0)]},void 0,!0,{fileName:So,lineNumber:94,columnNumber:17},void 0)},void 0,!1,{fileName:So,lineNumber:93,columnNumber:15},void 0),_(oO,{children:[_(Dl,{ref:h,onClick:c,children:"Cancel"},void 0,!1,{fileName:So,lineNumber:110,columnNumber:17},void 0),_(Dl,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:So,lineNumber:113,columnNumber:17},void 0)]},void 0,!0,{fileName:So,lineNumber:109,columnNumber:15},void 0)]},void 0,!0,{fileName:So,lineNumber:88,columnNumber:13},void 0)},void 0,!1,{fileName:So,lineNumber:87,columnNumber:11},void 0)},void 0,!1,{fileName:So,lineNumber:82,columnNumber:9},void 0)]},void 0,!0)});var bhe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDButton.tsx";const mc=e=>{const{label:t,size:n="sm",...i}=e;return _(Dl,{size:n,...i,children:t},void 0,!1,{fileName:bhe,lineNumber:15,columnNumber:5},void 0)};var dc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const She=Br(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),xhe=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const i=Ga(),{intermediateImage:o}=mr(B=>B.gallery),{upscalingLevel:c,gfpganStrength:u}=mr(B=>B.options),{isProcessing:m,isConnected:h,isGFPGANAvailable:v,isESRGANAvailable:b}=mr(She),x=()=>i(IC(e.url)),w=()=>i(dz(e.metadata)),N=()=>i(Fy(e.metadata.image.seed)),R=()=>i(Pme(e)),O=()=>i(Mme(e)),M=()=>n(!t);return _(Sn,{gap:2,children:[_(mc,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:x},void 0,!1,{fileName:dc,lineNumber:82,columnNumber:7},void 0),_(mc,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:w},void 0,!1,{fileName:dc,lineNumber:90,columnNumber:7},void 0),_(mc,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e?.metadata?.image?.seed,onClick:N},void 0,!1,{fileName:dc,lineNumber:99,columnNumber:7},void 0),_(mc,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!b||Boolean(o)||!(h&&!m)||!c,onClick:R},void 0,!1,{fileName:dc,lineNumber:108,columnNumber:7},void 0),_(mc,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!v||Boolean(o)||!(h&&!m)||!u,onClick:O},void 0,!1,{fileName:dc,lineNumber:121,columnNumber:7},void 0),_(mc,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:M},void 0,!1,{fileName:dc,lineNumber:134,columnNumber:7},void 0),_(Uz,{image:e,children:_(mc,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)},void 0,!1,{fileName:dc,lineNumber:143,columnNumber:9},void 0)},void 0,!1,{fileName:dc,lineNumber:142,columnNumber:7},void 0)]},void 0,!0,{fileName:dc,lineNumber:81,columnNumber:5},void 0)};var Pf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const Che="calc(100vh - 238px)",whe=()=>{const{currentImage:e,intermediateImage:t}=mr(u=>u.gallery),n=Yf("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[i,o]=k.exports.useState(!1),c=t||e;return c?_(Sn,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[_(xhe,{image:c,shouldShowImageDetails:i,setShouldShowImageDetails:o},void 0,!1,{fileName:Pf,lineNumber:31,columnNumber:7},void 0),_(_y,{height:Che,position:"relative",children:[_(Ey,{src:c.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Pf,lineNumber:37,columnNumber:9},void 0),i&&_(Sn,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:_(ghe,{image:c},void 0,!1,{fileName:Pf,lineNumber:55,columnNumber:13},void 0)},void 0,!1,{fileName:Pf,lineNumber:44,columnNumber:11},void 0)]},void 0,!0,{fileName:Pf,lineNumber:36,columnNumber:7},void 0)]},void 0,!0,{fileName:Pf,lineNumber:30,columnNumber:5},void 0):_(_y,{height:"100%",position:"relative",children:_(Gr,{size:"xl",children:"No image selected"},void 0,!1,{fileName:Pf,lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:Pf,lineNumber:61,columnNumber:5},void 0)};var Ji="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Nhe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,Ehe=k.exports.memo(e=>{const[t,n]=k.exports.useState(!1),i=Ga(),o=Yf("green.600","green.300"),c=Yf("gray.200","gray.700"),u=Yf("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:m,isSelected:h}=e,{url:v,uuid:b,metadata:x}=m,w=()=>n(!0),N=()=>n(!1),R=B=>{B.stopPropagation(),i(dz(x))},O=B=>{B.stopPropagation(),i(Fy(m.metadata.image.seed))};return _(kl,{position:"relative",children:[_(Ey,{width:120,height:120,objectFit:"cover",rounded:"md",src:v,loading:"lazy",backgroundColor:c},void 0,!1,{fileName:Ji,lineNumber:63,columnNumber:7},void 0),_(Sn,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:h?u:void 0,onClick:()=>i(Cpe(m)),onMouseOver:w,onMouseOut:N,children:[h&&_($s,{fill:o,width:"50%",height:"50%",as:lhe},void 0,!1,{fileName:Ji,lineNumber:88,columnNumber:11},void 0),t&&_(Sn,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[_(Kf,{label:"Delete image",children:_(Uz,{image:m,children:_(wo,{colorScheme:"red","aria-label":"Delete image",icon:_(hhe,{},void 0,!1,{fileName:Ji,lineNumber:103,columnNumber:25},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:Ji,lineNumber:100,columnNumber:17},void 0)},void 0,!1,{fileName:Ji,lineNumber:99,columnNumber:15},void 0)},void 0,!1,{fileName:Ji,lineNumber:98,columnNumber:13},void 0),["txt2img","img2img"].includes(m?.metadata?.image?.type)&&_(Kf,{label:"Use all parameters",children:_(wo,{"aria-label":"Use all parameters",icon:_(Bz,{},void 0,!1,{fileName:Ji,lineNumber:114,columnNumber:25},void 0),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:R},void 0,!1,{fileName:Ji,lineNumber:112,columnNumber:17},void 0)},void 0,!1,{fileName:Ji,lineNumber:111,columnNumber:15},void 0),m?.metadata?.image?.seed&&_(Kf,{label:"Use seed",children:_(wo,{"aria-label":"Use seed",icon:_(phe,{},void 0,!1,{fileName:Ji,lineNumber:126,columnNumber:25},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:O},void 0,!1,{fileName:Ji,lineNumber:124,columnNumber:17},void 0)},void 0,!1,{fileName:Ji,lineNumber:123,columnNumber:15},void 0)]},void 0,!0,{fileName:Ji,lineNumber:91,columnNumber:11},void 0)]},void 0,!0,{fileName:Ji,lineNumber:72,columnNumber:7},void 0)]},b,!0,{fileName:Ji,lineNumber:62,columnNumber:5},void 0)},Nhe);var zh="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";const _he=()=>{const{images:e,currentImageUuid:t}=mr(o=>o.gallery),n=Ga(),i=()=>{n(Lme())};return e.length?_(Sn,{direction:"column",gap:2,pb:2,children:[_(Sn,{gap:2,wrap:"wrap",children:e.map(o=>{const{uuid:c}=o;return _(Ehe,{image:o,isSelected:t===c},c,!1,{fileName:zh,lineNumber:34,columnNumber:13},void 0)})},void 0,!1,{fileName:zh,lineNumber:29,columnNumber:7},void 0),_(Dl,{onClick:i,children:"Load more..."},void 0,!1,{fileName:zh,lineNumber:38,columnNumber:7},void 0)]},void 0,!0,{fileName:zh,lineNumber:28,columnNumber:5},void 0):_(_y,{height:"100%",position:"relative",children:_(Gr,{size:"xl",children:"No images in gallery"},void 0,!1,{fileName:zh,lineNumber:42,columnNumber:7},void 0)},void 0,!1,{fileName:zh,lineNumber:41,columnNumber:5},void 0)};var The="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const Rhe=Br(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Ahe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=mr(Rhe),o=t?Math.round(t*100/n):0;return _(tF,{height:"10px",value:o,isIndeterminate:e&&!i},void 0,!1,{fileName:The,lineNumber:30,columnNumber:5},void 0)};function $z(e){return io({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 khe(e){return io({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 nr="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal.tsx";const Ohe=Br(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}},{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Dhe=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=H5(),{isOpen:o,onOpen:c,onClose:u}=H5(),{shouldDisplayInProgress:m,shouldConfirmOnDelete:h,shouldDisplayGuides:v}=mr(Ohe),b=Ga(),x=()=>{Jz.purge().then(()=>{i(),c()})};return _(hi,{children:[k.exports.cloneElement(e,{onClick:n}),_(Dy,{isOpen:t,onClose:i,children:[_(L2,{},void 0,!1,{fileName:nr,lineNumber:101,columnNumber:9},void 0),_(I2,{children:[_(sO,{children:"Settings"},void 0,!1,{fileName:nr,lineNumber:103,columnNumber:11},void 0),_($8,{},void 0,!1,{fileName:nr,lineNumber:104,columnNumber:11},void 0),_(M2,{children:_(Sn,{gap:5,direction:"column",children:[_(xc,{children:_(ay,{children:[_(Cc,{marginBottom:1,children:"Display in-progress images (slower)"},void 0,!1,{fileName:nr,lineNumber:109,columnNumber:19},void 0),_(wc,{isChecked:m,onChange:w=>b(Rpe(w.target.checked))},void 0,!1,{fileName:nr,lineNumber:112,columnNumber:19},void 0)]},void 0,!0,{fileName:nr,lineNumber:108,columnNumber:17},void 0)},void 0,!1,{fileName:nr,lineNumber:107,columnNumber:15},void 0),_(xc,{children:_(ay,{children:[_(Cc,{marginBottom:1,children:"Confirm on delete"},void 0,!1,{fileName:nr,lineNumber:122,columnNumber:19},void 0),_(wc,{isChecked:h,onChange:w=>b(hz(w.target.checked))},void 0,!1,{fileName:nr,lineNumber:123,columnNumber:19},void 0)]},void 0,!0,{fileName:nr,lineNumber:121,columnNumber:17},void 0)},void 0,!1,{fileName:nr,lineNumber:120,columnNumber:15},void 0),_(xc,{children:_(ay,{children:[_(Cc,{marginBottom:1,children:"Display help guides in configuration menus"},void 0,!1,{fileName:nr,lineNumber:133,columnNumber:19},void 0),_(wc,{isChecked:v,onChange:w=>b(Ppe(w.target.checked))},void 0,!1,{fileName:nr,lineNumber:136,columnNumber:19},void 0)]},void 0,!0,{fileName:nr,lineNumber:132,columnNumber:17},void 0)},void 0,!1,{fileName:nr,lineNumber:131,columnNumber:15},void 0),_(Uk,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:nr,lineNumber:145,columnNumber:15},void 0),_(Gr,{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:nr,lineNumber:146,columnNumber:15},void 0),_(Gr,{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:nr,lineNumber:151,columnNumber:15},void 0),_(Dl,{colorScheme:"red",onClick:x,children:"Reset Web UI"},void 0,!1,{fileName:nr,lineNumber:156,columnNumber:15},void 0)]},void 0,!0,{fileName:nr,lineNumber:106,columnNumber:13},void 0)},void 0,!1,{fileName:nr,lineNumber:105,columnNumber:11},void 0),_(oO,{children:_(Dl,{onClick:i,children:"Close"},void 0,!1,{fileName:nr,lineNumber:163,columnNumber:13},void 0)},void 0,!1,{fileName:nr,lineNumber:162,columnNumber:11},void 0)]},void 0,!0,{fileName:nr,lineNumber:102,columnNumber:9},void 0)]},void 0,!0,{fileName:nr,lineNumber:100,columnNumber:7},void 0),_(Dy,{closeOnOverlayClick:!1,isOpen:o,onClose:u,isCentered:!0,children:[_(L2,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:nr,lineNumber:174,columnNumber:9},void 0),_(I2,{children:_(M2,{pb:6,pt:6,children:_(Sn,{justifyContent:"center",children:_(Gr,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:nr,lineNumber:178,columnNumber:15},void 0)},void 0,!1,{fileName:nr,lineNumber:177,columnNumber:13},void 0)},void 0,!1,{fileName:nr,lineNumber:176,columnNumber:11},void 0)},void 0,!1,{fileName:nr,lineNumber:175,columnNumber:9},void 0)]},void 0,!0,{fileName:nr,lineNumber:168,columnNumber:7},void 0)]},void 0,!0)};var Mi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const Phe=Br(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Mhe=()=>{const{colorMode:e,toggleColorMode:t}=Q2(),{isConnected:n,isProcessing:i,currentIteration:o,totalIterations:c,currentStatus:u}=mr(Phe),m=n?"green.500":"red.500",h=e=="light"?_(dhe,{},void 0,!1,{fileName:Mi,lineNumber:50,columnNumber:48},void 0):_(mhe,{},void 0,!1,{fileName:Mi,lineNumber:50,columnNumber:61},void 0),v=e=="light"?18:20;let b=u;return i&&c>1&&(b+=` [${o}/${c}]`),_(Sn,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[_(Uk,{size:"lg",children:"InvokeUI"},void 0,!1,{fileName:Mi,lineNumber:65,columnNumber:7},void 0),_(M7,{},void 0,!1,{fileName:Mi,lineNumber:67,columnNumber:7},void 0),_(Gr,{textColor:m,children:b},void 0,!1,{fileName:Mi,lineNumber:69,columnNumber:7},void 0),_(Dhe,{children:_(wo,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:_(khe,{},void 0,!1,{fileName:Mi,lineNumber:77,columnNumber:17},void 0)},void 0,!1,{fileName:Mi,lineNumber:72,columnNumber:9},void 0)},void 0,!1,{fileName:Mi,lineNumber:71,columnNumber:7},void 0),_(wo,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:_(Ty,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:_($z,{},void 0,!1,{fileName:Mi,lineNumber:91,columnNumber:13},void 0)},void 0,!1,{fileName:Mi,lineNumber:87,columnNumber:11},void 0)},void 0,!1,{fileName:Mi,lineNumber:81,columnNumber:7},void 0),_(wo,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:_(Ty,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:_(ohe,{},void 0,!1,{fileName:Mi,lineNumber:103,columnNumber:13},void 0)},void 0,!1,{fileName:Mi,lineNumber:102,columnNumber:11},void 0)},void 0,!1,{fileName:Mi,lineNumber:96,columnNumber:7},void 0),_(wo,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:v,icon:h},void 0,!1,{fileName:Mi,lineNumber:108,columnNumber:7},void 0)]},void 0,!0,{fileName:Mi,lineNumber:64,columnNumber:5},void 0)};var pc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDNumberInput.tsx";const Zf=e=>{const{label:t,isDisabled:n=!1,fontSize:i="md",size:o="sm",width:c,isInvalid:u,...m}=e;return _(xc,{isDisabled:n,width:c,isInvalid:u,children:_(Sn,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&_(Cc,{marginBottom:1,children:_(Gr,{fontSize:i,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:pc,lineNumber:37,columnNumber:13},void 0)},void 0,!1,{fileName:pc,lineNumber:36,columnNumber:11},void 0),_(W8,{size:o,...m,keepWithinRange:!1,clampValueOnBlur:!0,children:[_(Y8,{fontSize:"md"},void 0,!1,{fileName:pc,lineNumber:48,columnNumber:11},void 0),_(G8,{children:[_(X8,{},void 0,!1,{fileName:pc,lineNumber:50,columnNumber:13},void 0),_(K8,{},void 0,!1,{fileName:pc,lineNumber:51,columnNumber:13},void 0)]},void 0,!0,{fileName:pc,lineNumber:49,columnNumber:11},void 0)]},void 0,!0,{fileName:pc,lineNumber:42,columnNumber:9},void 0)]},void 0,!0,{fileName:pc,lineNumber:34,columnNumber:7},void 0)},void 0,!1,{fileName:pc,lineNumber:33,columnNumber:5},void 0)};var Bx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDSwitch.tsx";const Y2=e=>{const{label:t,isDisabled:n=!1,fontSize:i="md",size:o="md",width:c,...u}=e;return _(xc,{isDisabled:n,width:c,children:_(Sn,{justifyContent:"space-between",alignItems:"center",children:[t&&_(Cc,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:Bx,lineNumber:30,columnNumber:11},void 0),_(wc,{size:o,...u},void 0,!1,{fileName:Bx,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:Bx,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:Bx,lineNumber:27,columnNumber:5},void 0)};var xo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/SeedVariationOptions.tsx";const Ihe=Br(e=>e.options,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Lhe=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:i,seed:o,iterations:c}=mr(Ihe),u=Ga(),m=R=>u(fpe(Number(R))),h=R=>u(ype(R.target.checked)),v=R=>u(Fy(Number(R))),b=()=>u(Fy(Oz(OA,DA))),x=R=>u(mpe(R.target.checked)),w=R=>u(hpe(Number(R))),N=R=>u(fz(R.target.value));return _(Sn,{gap:2,direction:"column",children:[_(Zf,{label:"Images to generate",step:1,min:1,precision:0,onChange:m,value:c},void 0,!1,{fileName:xo,lineNumber:87,columnNumber:7},void 0),_(Y2,{label:"Randomize seed on generation",isChecked:i,onChange:h},void 0,!1,{fileName:xo,lineNumber:95,columnNumber:7},void 0),_(Sn,{gap:2,children:[_(Zf,{label:"Seed",step:1,precision:0,flexGrow:1,min:OA,max:DA,isDisabled:i,isInvalid:o<0&&e,onChange:v,value:o},void 0,!1,{fileName:xo,lineNumber:101,columnNumber:9},void 0),_(Dl,{size:"sm",isDisabled:i,onClick:b,children:_(Gr,{pl:2,pr:2,children:"Shuffle"},void 0,!1,{fileName:xo,lineNumber:118,columnNumber:11},void 0)},void 0,!1,{fileName:xo,lineNumber:113,columnNumber:9},void 0)]},void 0,!0,{fileName:xo,lineNumber:100,columnNumber:7},void 0),_(Y2,{label:"Generate variations",isChecked:e,width:"auto",onChange:x},void 0,!1,{fileName:xo,lineNumber:123,columnNumber:7},void 0),_(Zf,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:w},void 0,!1,{fileName:xo,lineNumber:129,columnNumber:7},void 0),_(xc,{isInvalid:e&&!(RO(n)||n===""),flexGrow:1,children:_(ay,{children:[_(Cc,{marginInlineEnd:0,marginBottom:1,children:_(Gr,{whiteSpace:"nowrap",children:"Seed Weights"},void 0,!1,{fileName:xo,lineNumber:147,columnNumber:13},void 0)},void 0,!1,{fileName:xo,lineNumber:146,columnNumber:11},void 0),_(Fk,{size:"sm",value:n,onChange:N},void 0,!1,{fileName:xo,lineNumber:149,columnNumber:11},void 0)]},void 0,!0,{fileName:xo,lineNumber:145,columnNumber:9},void 0)},void 0,!1,{fileName:xo,lineNumber:138,columnNumber:7},void 0)]},void 0,!0,{fileName:xo,lineNumber:86,columnNumber:5},void 0)};var Ap="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDSelect.tsx";const q2=e=>{const{label:t,isDisabled:n,validValues:i,size:o="sm",fontSize:c="md",marginBottom:u=1,whiteSpace:m="nowrap",...h}=e;return _(xc,{isDisabled:n,children:_(Sn,{justifyContent:"space-between",alignItems:"center",children:[_(Cc,{marginBottom:u,children:_(Gr,{fontSize:c,whiteSpace:m,children:t},void 0,!1,{fileName:Ap,lineNumber:34,columnNumber:11},void 0)},void 0,!1,{fileName:Ap,lineNumber:33,columnNumber:9},void 0),_(rF,{fontSize:c,size:o,...h,children:i.map(v=>typeof v=="string"||typeof v=="number"?_("option",{value:v,children:v},v,!1,{fileName:Ap,lineNumber:41,columnNumber:15},void 0):_("option",{value:v.value,children:v.key},v.value,!1,{fileName:Ap,lineNumber:45,columnNumber:15},void 0))},void 0,!1,{fileName:Ap,lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:Ap,lineNumber:32,columnNumber:7},void 0)},void 0,!1,{fileName:Ap,lineNumber:31,columnNumber:5},void 0)};var Ux="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/SamplerOptions.tsx";const Fhe=Br(e=>e.options,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),zhe=()=>{const e=Ga(),{steps:t,cfgScale:n,sampler:i}=mr(Fhe);return _(Sn,{gap:2,direction:"column",children:[_(Zf,{label:"Steps",min:1,step:1,precision:0,onChange:m=>e(iz(Number(m))),value:t},void 0,!1,{fileName:Ux,lineNumber:50,columnNumber:7},void 0),_(Zf,{label:"CFG scale",step:.5,onChange:m=>e(oz(Number(m))),value:n},void 0,!1,{fileName:Ux,lineNumber:58,columnNumber:7},void 0),_(q2,{label:"Sampler",value:i,onChange:m=>e(lz(m.target.value)),validValues:Vme},void 0,!1,{fileName:Ux,lineNumber:64,columnNumber:7},void 0)]},void 0,!0,{fileName:Ux,lineNumber:49,columnNumber:5},void 0)};var XR="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ESRGANOptions.tsx";const Bhe=Br(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Uhe=Br(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),$he=()=>{const e=Ga(),{upscalingLevel:t,upscalingStrength:n}=mr(Bhe),{isESRGANAvailable:i}=mr(Uhe);return _(Sn,{direction:"column",gap:2,children:[_(q2,{isDisabled:!i,label:"Scale",value:t,onChange:u=>e(NA(Number(u.target.value))),validValues:Gme},void 0,!1,{fileName:XR,lineNumber:67,columnNumber:7},void 0),_(Zf,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:u=>e(EA(Number(u))),value:n},void 0,!1,{fileName:XR,lineNumber:74,columnNumber:7},void 0)]},void 0,!0,{fileName:XR,lineNumber:66,columnNumber:5},void 0)};var FI="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/GFPGANOptions.tsx";const jhe=Br(e=>e.options,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Vhe=Br(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Hhe=()=>{const e=Ga(),{gfpganStrength:t}=mr(jhe),{isGFPGANAvailable:n}=mr(Vhe);return _(Sn,{direction:"column",gap:2,children:_(Zf,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(wA(Number(o))),value:t},void 0,!1,{fileName:FI,lineNumber:55,columnNumber:7},void 0)},void 0,!1,{fileName:FI,lineNumber:54,columnNumber:5},void 0)};var V0="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OutputOptions.tsx";const Whe=Br(e=>e.options,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Ghe=()=>{const e=Ga(),{height:t,width:n,seamless:i}=mr(Whe);return _(Sn,{gap:2,direction:"column",children:[_(Sn,{gap:2,children:[_(q2,{label:"Width",value:n,flexGrow:1,onChange:m=>e(CA(Number(m.target.value))),validValues:Hme},void 0,!1,{fileName:V0,lineNumber:51,columnNumber:9},void 0),_(q2,{label:"Height",value:t,flexGrow:1,onChange:m=>e(sz(Number(m.target.value))),validValues:Wme},void 0,!1,{fileName:V0,lineNumber:58,columnNumber:9},void 0)]},void 0,!0,{fileName:V0,lineNumber:50,columnNumber:7},void 0),_(Y2,{label:"Seamless tiling",fontSize:"md",isChecked:i,onChange:m=>e(dpe(m.target.checked))},void 0,!1,{fileName:V0,lineNumber:66,columnNumber:7},void 0)]},void 0,!0,{fileName:V0,lineNumber:49,columnNumber:5},void 0)};var Yhe=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 sb(e,t){var n=qhe(e);if(typeof n.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function qhe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),o=Yhe.get(i);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Khe=[".DS_Store","Thumbs.db"];function Xhe(e){return vv(this,void 0,void 0,function(){return gv(this,function(t){return K2(e)&&Zhe(e.dataTransfer)?[2,tve(e.dataTransfer,e.type)]:Qhe(e)?[2,Jhe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,eve(e)]:[2,[]]})})}function Zhe(e){return K2(e)}function Qhe(e){return K2(e)&&K2(e.target)}function K2(e){return typeof e=="object"&&e!==null}function Jhe(e){return IA(e.target.files).map(function(t){return sb(t)})}function eve(e){return vv(this,void 0,void 0,function(){var t;return gv(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return sb(i)})]}})})}function tve(e,t){return vv(this,void 0,void 0,function(){var n,i;return gv(this,function(o){switch(o.label){case 0:return e.items?(n=IA(e.items).filter(function(c){return c.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(nve))]):[3,2];case 1:return i=o.sent(),[2,zI(jz(i))];case 2:return[2,zI(IA(e.files).map(function(c){return sb(c)}))]}})})}function zI(e){return e.filter(function(t){return Khe.indexOf(t.name)===-1})}function IA(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function nve(e){if(typeof e.webkitGetAsEntry!="function")return BI(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Vz(t):BI(e)}function jz(e){return e.reduce(function(t,n){return y5(y5([],_P(t),!1),_P(Array.isArray(n)?jz(n):[n]),!1)},[])}function BI(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=sb(t);return Promise.resolve(n)}function rve(e){return vv(this,void 0,void 0,function(){return gv(this,function(t){return[2,e.isDirectory?Vz(e):ave(e)]})})}function Vz(e){var t=e.createReader();return new Promise(function(n,i){var o=[];function c(){var u=this;t.readEntries(function(m){return vv(u,void 0,void 0,function(){var h,v,b;return gv(this,function(x){switch(x.label){case 0:if(m.length)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return h=x.sent(),n(h),[3,4];case 3:return v=x.sent(),i(v),[3,4];case 4:return[3,6];case 5:b=Promise.all(m.map(rve)),o.push(b),c(),x.label=6;case 6:return[2]}})})},function(m){i(m)})}c()})}function ave(e){return vv(this,void 0,void 0,function(){return gv(this,function(t){return[2,new Promise(function(n,i){e.file(function(o){var c=sb(o,e.fullPath);n(c)},function(o){i(o)})})]})})}var ive=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",o=(e.type||"").toLowerCase(),c=o.replace(/\/.*$/,"");return n.some(function(u){var m=u.trim().toLowerCase();return m.charAt(0)==="."?i.toLowerCase().endsWith(m):m.endsWith("/*")?c===m.replace(/\/.*$/,""):o===m})}return!0};function UI(e){return lve(e)||sve(e)||Wz(e)||ove()}function ove(){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 sve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lve(e){if(Array.isArray(e))return LA(e)}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function jI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$I(Object(n),!0).forEach(function(i){Hz(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e,t){return fve(e)||cve(e,t)||Wz(e,t)||uve()}function uve(){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 Wz(e,t){if(!!e){if(typeof e=="string")return LA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LA(e,t)}}function LA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function cve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,c=!1,u,m;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(h){c=!0,m=h}finally{try{!o&&n.return!=null&&n.return()}finally{if(c)throw m}}return i}}function fve(e){if(Array.isArray(e))return e}var dve="file-invalid-type",pve="file-too-large",mve="file-too-small",hve="too-many-files",vve=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:dve,message:"File type must be ".concat(n)}},VI=function(t){return{code:pve,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},HI=function(t){return{code:mve,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},gve={code:hve,message:"Too many files"};function Gz(e,t){var n=e.type==="application/x-moz-file"||ive(e,t);return[n,n?null:vve(t)]}function Yz(e,t,n){if(Bp(e.size))if(Bp(t)&&Bp(n)){if(e.size>n)return[!1,VI(n)];if(e.size<t)return[!1,HI(t)]}else{if(Bp(t)&&e.size<t)return[!1,HI(t)];if(Bp(n)&&e.size>n)return[!1,VI(n)]}return[!0,null]}function Bp(e){return e!=null}function yve(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,c=e.multiple,u=e.maxFiles,m=e.validator;return!c&&t.length>1||c&&u>=1&&t.length>u?!1:t.every(function(h){var v=Gz(h,n),b=zy(v,1),x=b[0],w=Yz(h,i,o),N=zy(w,1),R=N[0],O=m?m(h):null;return x&&R&&!O})}function X2(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function $x(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 WI(e){e.preventDefault()}function bve(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Sve(e){return e.indexOf("Edge/")!==-1}function xve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return bve(e)||Sve(e)}function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var o=arguments.length,c=new Array(o>1?o-1:0),u=1;u<o;u++)c[u-1]=arguments[u];return t.some(function(m){return!X2(i)&&m&&m.apply(void 0,[i].concat(c)),X2(i)})}}function Cve(){return"showOpenFilePicker"in window}function wve(e){if(Bp(e)){var t=Object.entries(e).filter(function(n){var i=zy(n,2),o=i[0],c=i[1],u=!0;return qz(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),u=!1),(!Array.isArray(c)||!c.every(Kz))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(n,i){var o=zy(i,2),c=o[0],u=o[1];return jI(jI({},n),{},Hz({},c,u))},{});return[{accept:t}]}return e}function Nve(e){if(Bp(e))return Object.entries(e).reduce(function(t,n){var i=zy(n,2),o=i[0],c=i[1];return[].concat(UI(t),[o],UI(c))},[]).filter(function(t){return qz(t)||Kz(t)}).join(",")}function Eve(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function _ve(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function qz(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Kz(e){return/^.*\.[\w]+$/.test(e)}var Tve="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",Rve=["children"],Ave=["open"],kve=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ove=["refKey","onChange","onClick"];function Dve(e){return Ive(e)||Mve(e)||Xz(e)||Pve()}function Pve(){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 Mve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ive(e){if(Array.isArray(e))return FA(e)}function ZR(e,t){return zve(e)||Fve(e,t)||Xz(e,t)||Lve()}function Lve(){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 Xz(e,t){if(!!e){if(typeof e=="string")return FA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FA(e,t)}}function FA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Fve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,c=!1,u,m;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(h){c=!0,m=h}finally{try{!o&&n.return!=null&&n.return()}finally{if(c)throw m}}return i}}function zve(e){if(Array.isArray(e))return e}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(i){zA(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z2(e,t){if(e==null)return{};var n=Bve(e,t),i,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)i=c[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function Bve(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var DO=k.exports.forwardRef(function(e,t){var n=e.children,i=Z2(e,Rve),o=Qz(i),c=o.open,u=Z2(o,Ave);return k.exports.useImperativeHandle(t,function(){return{open:c}},[c]),_(k.exports.Fragment,{children:n(Fr(Fr({},u),{},{open:c}))},void 0,!1,{fileName:Tve,lineNumber:70,columnNumber:23},this)});DO.displayName="Dropzone";var Zz={disabled:!1,getFilesFromEvent:Xhe,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};DO.defaultProps=Zz;DO.propTypes={children:At.exports.func,accept:At.exports.objectOf(At.exports.arrayOf(At.exports.string)),multiple:At.exports.bool,preventDropOnDocument:At.exports.bool,noClick:At.exports.bool,noKeyboard:At.exports.bool,noDrag:At.exports.bool,noDragEventsBubbling:At.exports.bool,minSize:At.exports.number,maxSize:At.exports.number,maxFiles:At.exports.number,disabled:At.exports.bool,getFilesFromEvent:At.exports.func,onFileDialogCancel:At.exports.func,onFileDialogOpen:At.exports.func,useFsAccessApi:At.exports.bool,autoFocus:At.exports.bool,onDragEnter:At.exports.func,onDragLeave:At.exports.func,onDragOver:At.exports.func,onDrop:At.exports.func,onDropAccepted:At.exports.func,onDropRejected:At.exports.func,onError:At.exports.func,validator:At.exports.func};var BA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Qz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Fr(Fr({},Zz),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,m=t.multiple,h=t.maxFiles,v=t.onDragEnter,b=t.onDragLeave,x=t.onDragOver,w=t.onDrop,N=t.onDropAccepted,R=t.onDropRejected,O=t.onFileDialogCancel,M=t.onFileDialogOpen,B=t.useFsAccessApi,I=t.autoFocus,F=t.preventDropOnDocument,z=t.noClick,$=t.noKeyboard,q=t.noDrag,K=t.noDragEventsBubbling,le=t.onError,me=t.validator,se=k.exports.useMemo(function(){return Nve(n)},[n]),Se=k.exports.useMemo(function(){return wve(n)},[n]),qe=k.exports.useMemo(function(){return typeof M=="function"?M:YI},[M]),ae=k.exports.useMemo(function(){return typeof O=="function"?O:YI},[O]),ue=k.exports.useRef(null),Ee=k.exports.useRef(null),de=k.exports.useReducer(Uve,BA),ie=ZR(de,2),xe=ie[0],Ne=ie[1],he=xe.isFocused,Ce=xe.isFileDialogActive,Me=k.exports.useRef(typeof window<"u"&&window.isSecureContext&&B&&Cve()),Ie=function(){!Me.current&&Ce&&setTimeout(function(){if(Ee.current){var Je=Ee.current.files;Je.length||(Ne({type:"closeDialog"}),ae())}},300)};k.exports.useEffect(function(){return window.addEventListener("focus",Ie,!1),function(){window.removeEventListener("focus",Ie,!1)}},[Ee,Ce,ae,Me]);var Ye=k.exports.useRef([]),at=function(Je){ue.current&&ue.current.contains(Je.target)||(Je.preventDefault(),Ye.current=[])};k.exports.useEffect(function(){return F&&(document.addEventListener("dragover",WI,!1),document.addEventListener("drop",at,!1)),function(){F&&(document.removeEventListener("dragover",WI),document.removeEventListener("drop",at))}},[ue,F]),k.exports.useEffect(function(){return!i&&I&&ue.current&&ue.current.focus(),function(){}},[ue,I,i]);var gt=k.exports.useCallback(function(He){le?le(He):console.error(He)},[le]),Ht=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Lt(He),Ye.current=[].concat(Dve(Ye.current),[He.target]),$x(He)&&Promise.resolve(o(He)).then(function(Je){if(!(X2(He)&&!K)){var tn=Je.length,kt=tn>0&&yve({files:Je,accept:se,minSize:u,maxSize:c,multiple:m,maxFiles:h,validator:me}),Oe=tn>0&&!kt;Ne({isDragAccept:kt,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),v&&v(He)}}).catch(function(Je){return gt(Je)})},[o,v,gt,K,se,u,c,m,h,me]),Ze=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Lt(He);var Je=$x(He);if(Je&&He.dataTransfer)try{He.dataTransfer.dropEffect="copy"}catch{}return Je&&x&&x(He),!1},[x,K]),ct=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Lt(He);var Je=Ye.current.filter(function(kt){return ue.current&&ue.current.contains(kt)}),tn=Je.indexOf(He.target);tn!==-1&&Je.splice(tn,1),Ye.current=Je,!(Je.length>0)&&(Ne({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$x(He)&&b&&b(He))},[ue,b,K]),wt=k.exports.useCallback(function(He,Je){var tn=[],kt=[];He.forEach(function(Oe){var Yt=Gz(Oe,se),_n=ZR(Yt,2),je=_n[0],it=_n[1],_t=Yz(Oe,u,c),hn=ZR(_t,2),Qt=hn[0],Tn=hn[1],Ln=me?me(Oe):null;if(je&&Qt&&!Ln)tn.push(Oe);else{var kr=[it,Tn];Ln&&(kr=kr.concat(Ln)),kt.push({file:Oe,errors:kr.filter(function(Dn){return Dn})})}}),(!m&&tn.length>1||m&&h>=1&&tn.length>h)&&(tn.forEach(function(Oe){kt.push({file:Oe,errors:[gve]})}),tn.splice(0)),Ne({acceptedFiles:tn,fileRejections:kt,type:"setFiles"}),w&&w(tn,kt,Je),kt.length>0&&R&&R(kt,Je),tn.length>0&&N&&N(tn,Je)},[Ne,m,se,u,c,h,w,N,R,me]),zt=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Lt(He),Ye.current=[],$x(He)&&Promise.resolve(o(He)).then(function(Je){X2(He)&&!K||wt(Je,He)}).catch(function(Je){return gt(Je)}),Ne({type:"reset"})},[o,wt,gt,K]),Ge=k.exports.useCallback(function(){if(Me.current){Ne({type:"openDialog"}),qe();var He={multiple:m,types:Se};window.showOpenFilePicker(He).then(function(Je){return o(Je)}).then(function(Je){wt(Je,null),Ne({type:"closeDialog"})}).catch(function(Je){Eve(Je)?(ae(Je),Ne({type:"closeDialog"})):_ve(Je)?(Me.current=!1,Ee.current?(Ee.current.value=null,Ee.current.click()):gt(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."))):gt(Je)});return}Ee.current&&(Ne({type:"openDialog"}),qe(),Ee.current.value=null,Ee.current.click())},[Ne,qe,ae,B,wt,gt,Se,m]),Wt=k.exports.useCallback(function(He){!ue.current||!ue.current.isEqualNode(He.target)||(He.key===" "||He.key==="Enter"||He.keyCode===32||He.keyCode===13)&&(He.preventDefault(),Ge())},[ue,Ge]),ye=k.exports.useCallback(function(){Ne({type:"focus"})},[]),et=k.exports.useCallback(function(){Ne({type:"blur"})},[]),Nt=k.exports.useCallback(function(){z||(xve()?setTimeout(Ge,0):Ge())},[z,Ge]),lt=function(Je){return i?null:Je},xn=function(Je){return $?null:lt(Je)},$n=function(Je){return q?null:lt(Je)},Lt=function(Je){K&&Je.stopPropagation()},an=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,tn=Je===void 0?"ref":Je,kt=He.role,Oe=He.onKeyDown,Yt=He.onFocus,_n=He.onBlur,je=He.onClick,it=He.onDragEnter,_t=He.onDragOver,hn=He.onDragLeave,Qt=He.onDrop,Tn=Z2(He,kve);return Fr(Fr(zA({onKeyDown:xn(su(Oe,Wt)),onFocus:xn(su(Yt,ye)),onBlur:xn(su(_n,et)),onClick:lt(su(je,Nt)),onDragEnter:$n(su(it,Ht)),onDragOver:$n(su(_t,Ze)),onDragLeave:$n(su(hn,ct)),onDrop:$n(su(Qt,zt)),role:typeof kt=="string"&&kt!==""?kt:"presentation"},tn,ue),!i&&!$?{tabIndex:0}:{}),Tn)}},[ue,Wt,ye,et,Nt,Ht,Ze,ct,zt,$,q,i]),On=k.exports.useCallback(function(He){He.stopPropagation()},[]),gn=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,tn=Je===void 0?"ref":Je,kt=He.onChange,Oe=He.onClick,Yt=Z2(He,Ove),_n=zA({accept:se,multiple:m,type:"file",style:{display:"none"},onChange:lt(su(kt,zt)),onClick:lt(su(Oe,On)),tabIndex:-1},tn,Ee);return Fr(Fr({},_n),Yt)}},[Ee,n,m,zt,i]);return Fr(Fr({},xe),{},{isFocused:he&&!i,getRootProps:an,getInputProps:gn,rootRef:ue,inputRef:Ee,open:lt(Ge)})}function Uve(e,t){switch(t.type){case"focus":return Fr(Fr({},e),{},{isFocused:!0});case"blur":return Fr(Fr({},e),{},{isFocused:!1});case"openDialog":return Fr(Fr({},BA),{},{isFileDialogActive:!0});case"closeDialog":return Fr(Fr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Fr(Fr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Fr(Fr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Fr({},BA);default:return e}}function YI(){}var qI="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ImageUploader.tsx";const KI=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const i=k.exports.useCallback((h,v)=>{v.forEach(b=>{n(b)}),h.forEach(b=>{t(b)})},[t,n]),{getRootProps:o,getInputProps:c,open:u}=Qz({onDrop:i,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),m=h=>{h.stopPropagation(),u()};return _(kl,{...o(),flexGrow:3,children:[_("input",{...c({multiple:!1})},void 0,!1,{fileName:qI,lineNumber:56,columnNumber:7},void 0),k.exports.cloneElement(e,{onClick:m})]},void 0,!0,{fileName:qI,lineNumber:55,columnNumber:5},void 0)};var Nl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/InitAndMaskUploadButtons.tsx";const $ve=Br(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),jve=({setShouldShowMask:e})=>{const t=Ga(),{initialImagePath:n,maskPath:i}=mr($ve),o=ffe(),c=R=>{R.stopPropagation(),t(IC(""))},u=R=>{R.stopPropagation(),t(AO(""))},m=()=>e(!1),h=()=>e(!0),v=()=>e(!0),b=()=>e(!0),x=k.exports.useCallback(R=>t(Bme(R)),[t]),w=k.exports.useCallback(R=>t(Ume(R)),[t]),N=k.exports.useCallback(R=>{const O=R.errors.reduce((M,B)=>M+`
|
|
`+B.message,"");o({title:"Upload failed",description:O,status:"error",isClosable:!0})},[o]);return _(Sn,{gap:2,justifyContent:"space-between",width:"100%",children:[_(KI,{fileAcceptedCallback:x,fileRejectionCallback:N,children:_(Dl,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:m,onMouseOut:h,leftIcon:_(LI,{},void 0,!1,{fileName:Nl,lineNumber:107,columnNumber:21},void 0),width:"100%",children:"Image"},void 0,!1,{fileName:Nl,lineNumber:101,columnNumber:9},void 0)},void 0,!1,{fileName:Nl,lineNumber:97,columnNumber:7},void 0),_(wo,{isDisabled:!n,size:"sm","aria-label":"Reset mask",onClick:c,icon:_(II,{},void 0,!1,{fileName:Nl,lineNumber:119,columnNumber:15},void 0)},void 0,!1,{fileName:Nl,lineNumber:114,columnNumber:7},void 0),_(KI,{fileAcceptedCallback:w,fileRejectionCallback:N,children:_(Dl,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:v,onMouseOut:b,leftIcon:_(LI,{},void 0,!1,{fileName:Nl,lineNumber:133,columnNumber:21},void 0),width:"100%",children:"Mask"},void 0,!1,{fileName:Nl,lineNumber:126,columnNumber:9},void 0)},void 0,!1,{fileName:Nl,lineNumber:122,columnNumber:7},void 0),_(wo,{isDisabled:!i,size:"sm","aria-label":"Reset mask",onClick:u,icon:_(II,{},void 0,!1,{fileName:Nl,lineNumber:145,columnNumber:15},void 0)},void 0,!1,{fileName:Nl,lineNumber:140,columnNumber:7},void 0)]},void 0,!0,{fileName:Nl,lineNumber:96,columnNumber:5},void 0)};var H0="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/InitAndMaskImage.tsx";const Vve=Br(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Hve=()=>{const{initialImagePath:e,maskPath:t}=mr(Vve),[n,i]=k.exports.useState(!1);return _(Sn,{direction:"column",alignItems:"center",gap:2,children:[_(jve,{setShouldShowMask:i},void 0,!1,{fileName:H0,lineNumber:31,columnNumber:7},void 0),e&&_(Sn,{position:"relative",width:"100%",children:[_(Ey,{fit:"contain",src:e,rounded:"md",className:"checkerboard"},void 0,!1,{fileName:H0,lineNumber:34,columnNumber:11},void 0),n&&t&&_(Ey,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1},void 0,!1,{fileName:H0,lineNumber:41,columnNumber:13},void 0)]},void 0,!0,{fileName:H0,lineNumber:33,columnNumber:9},void 0)]},void 0,!0,{fileName:H0,lineNumber:30,columnNumber:5},void 0)};var jx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ImageToImageOptions.tsx";const Wve=Br(e=>e.options,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),Gve=()=>{const e=Ga(),{img2imgStrength:t,shouldFitToWidthHeight:n}=mr(Wve);return _(Sn,{direction:"column",gap:2,children:[_(Zf,{label:"Strength",step:.01,min:0,max:1,onChange:c=>e(uz(Number(c))),value:t},void 0,!1,{fileName:jx,lineNumber:41,columnNumber:7},void 0),_(Y2,{label:"Fit initial image to output size",isChecked:n,onChange:c=>e(cz(c.target.checked))},void 0,!1,{fileName:jx,lineNumber:49,columnNumber:7},void 0),_(Hve,{},void 0,!1,{fileName:jx,lineNumber:54,columnNumber:7},void 0)]},void 0,!0,{fileName:jx,lineNumber:40,columnNumber:5},void 0)};var Lp=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OUTPUT=2]="OUTPUT",e[e.SEED_AND_VARIATION=3]="SEED_AND_VARIATION",e[e.ESRGAN=4]="ESRGAN",e[e.FACE_CORRECTION=5]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=6]="IMAGE_TO_IMAGE",e[e.SAMPLER=7]="SAMPLER",e))(Lp||{});const Yve={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. CLI Commands will not work in the prompt.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"The Height and Width of generations can be controlled here. If you experience errors, you may be generating an image too large for your system. The seamless option will more often result in repeating patterns in outputs.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process. Try a variation with an amount of between 0 and 1 to change the output image for that seed.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"The ESRGAN setting can be used to increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[5]:{text:"Using GFPGAN or CodeFormer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher values will apply a stronger corrective pressure on outputs.",href:"link/to/docs/feature2.html",guideImage:"asset/path.gif"},[6]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"This setting allows for different denoising samplers to be used, as well as the number of denoising steps used, which will change the resulting output.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}};var Bh="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuidePopover.tsx";const qve=Br(e=>e.system,e=>e.shouldDisplayGuides),Kve=({children:e,feature:t})=>{const n=mr(qve),{text:i}=Yve[t];return n?_(Z8,{trigger:"hover",children:[_(eF,{children:_(kl,{children:e},void 0,!1,{fileName:Bh,lineNumber:33,columnNumber:9},void 0)},void 0,!1,{fileName:Bh,lineNumber:32,columnNumber:7},void 0),_(J8,{maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[_(Q8,{},void 0,!1,{fileName:Bh,lineNumber:40,columnNumber:9},void 0),_(Sn,{alignItems:"center",gap:2,p:4,children:i},void 0,!1,{fileName:Bh,lineNumber:41,columnNumber:9},void 0)]},void 0,!0,{fileName:Bh,lineNumber:35,columnNumber:7},void 0)]},void 0,!0,{fileName:Bh,lineNumber:31,columnNumber:5},void 0):_(hi,{},void 0,!1)};var QR="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuideIcon.tsx";const Uh=Xe(({feature:e,icon:t=$z},n)=>_(Kve,{feature:e,children:_(kl,{ref:n,children:_($s,{as:t},void 0,!1,{fileName:QR,lineNumber:16,columnNumber:9},void 0)},void 0,!1,{fileName:QR,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:QR,lineNumber:14,columnNumber:5},void 0));var It="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OptionsAccordion.tsx";const Xve=Br(e=>e.options,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Zve=Br(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),Qve=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:i}=mr(Xve),{isGFPGANAvailable:o,isESRGANAvailable:c,openAccordions:u}=mr(Zve),m=Ga(),h=w=>m(kpe(w)),v=w=>m(gpe(w.target.checked)),b=w=>m(vpe(w.target.checked)),x=w=>m(ppe(w.target.checked));return _(u7,{defaultIndex:u,allowMultiple:!0,reduceMotion:!0,onChange:h,children:[_(Pp,{children:[_("h2",{children:_(Op,{children:[_(kl,{flex:"1",textAlign:"left",children:"Seed & Variation"},void 0,!1,{fileName:It,lineNumber:111,columnNumber:13},void 0),_(Uh,{feature:Lp.SEED_AND_VARIATION},void 0,!1,{fileName:It,lineNumber:114,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:115,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:110,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:109,columnNumber:9},void 0),_(Mp,{children:_(Lhe,{},void 0,!1,{fileName:It,lineNumber:119,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:118,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:108,columnNumber:7},void 0),_(Pp,{children:[_("h2",{children:_(Op,{children:[_(kl,{flex:"1",textAlign:"left",children:"Sampler"},void 0,!1,{fileName:It,lineNumber:125,columnNumber:13},void 0),_(Uh,{feature:Lp.SAMPLER},void 0,!1,{fileName:It,lineNumber:128,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:129,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:124,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:123,columnNumber:9},void 0),_(Mp,{children:_(zhe,{},void 0,!1,{fileName:It,lineNumber:133,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:132,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:122,columnNumber:7},void 0),_(Pp,{children:[_("h2",{children:_(Op,{children:[_(Sn,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_(Gr,{children:"Upscale (ESRGAN)"},void 0,!1,{fileName:It,lineNumber:145,columnNumber:15},void 0),_(wc,{isDisabled:!c,isChecked:e,onChange:v},void 0,!1,{fileName:It,lineNumber:146,columnNumber:15},void 0)]},void 0,!0,{fileName:It,lineNumber:139,columnNumber:13},void 0),_(Uh,{feature:Lp.ESRGAN},void 0,!1,{fileName:It,lineNumber:152,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:153,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:138,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:137,columnNumber:9},void 0),_(Mp,{children:_($he,{},void 0,!1,{fileName:It,lineNumber:157,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:156,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:136,columnNumber:7},void 0),_(Pp,{children:[_("h2",{children:_(Op,{children:[_(Sn,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_(Gr,{children:"Face Correction"},void 0,!1,{fileName:It,lineNumber:169,columnNumber:15},void 0),_(wc,{isDisabled:!o,isChecked:t,onChange:b},void 0,!1,{fileName:It,lineNumber:170,columnNumber:15},void 0)]},void 0,!0,{fileName:It,lineNumber:163,columnNumber:13},void 0),_(Uh,{feature:Lp.FACE_CORRECTION},void 0,!1,{fileName:It,lineNumber:176,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:177,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:162,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:161,columnNumber:9},void 0),_(Mp,{children:_(Hhe,{},void 0,!1,{fileName:It,lineNumber:181,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:180,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:160,columnNumber:7},void 0),_(Pp,{children:[_("h2",{children:_(Op,{children:[_(Sn,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[_(Gr,{children:"Image to Image"},void 0,!1,{fileName:It,lineNumber:193,columnNumber:15},void 0),_(wc,{isDisabled:!i,isChecked:n,onChange:x},void 0,!1,{fileName:It,lineNumber:194,columnNumber:15},void 0)]},void 0,!0,{fileName:It,lineNumber:187,columnNumber:13},void 0),_(Uh,{feature:Lp.IMAGE_TO_IMAGE},void 0,!1,{fileName:It,lineNumber:200,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:201,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:186,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:185,columnNumber:9},void 0),_(Mp,{children:_(Gve,{},void 0,!1,{fileName:It,lineNumber:205,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:204,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:184,columnNumber:7},void 0),_(Pp,{children:[_("h2",{children:_(Op,{children:[_(kl,{flex:"1",textAlign:"left",children:"Output"},void 0,!1,{fileName:It,lineNumber:211,columnNumber:13},void 0),_(Uh,{feature:Lp.OUTPUT},void 0,!1,{fileName:It,lineNumber:214,columnNumber:13},void 0),_(Dp,{},void 0,!1,{fileName:It,lineNumber:215,columnNumber:13},void 0)]},void 0,!0,{fileName:It,lineNumber:210,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:209,columnNumber:9},void 0),_(Mp,{children:_(Ghe,{},void 0,!1,{fileName:It,lineNumber:219,columnNumber:11},void 0)},void 0,!1,{fileName:It,lineNumber:218,columnNumber:9},void 0)]},void 0,!0,{fileName:It,lineNumber:208,columnNumber:7},void 0)]},void 0,!0,{fileName:It,lineNumber:102,columnNumber:5},void 0)},Jve=Br(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),ege=Br(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),tge=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:i,initialImagePath:o,seed:c}=mr(Jve),{isProcessing:u,isConnected:m}=mr(ege);return k.exports.useMemo(()=>!(!e||i&&!o||u||!m||t&&(!(RO(n)||n==="")||c===-1)),[e,i,o,u,m,t,n,c])};var JR="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons.tsx";const nge=Br(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),rge=()=>{const e=Ga(),{isProcessing:t,isConnected:n}=mr(nge),i=tge();return _(Sn,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[_(mc,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!i,fontSize:"md",size:"md",onClick:()=>e(kz())},void 0,!1,{fileName:JR,lineNumber:45,columnNumber:7},void 0),_(mc,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(zme())},void 0,!1,{fileName:JR,lineNumber:55,columnNumber:7},void 0)]},void 0,!0,{fileName:JR,lineNumber:39,columnNumber:5},void 0)};var age="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/PromptInput.tsx";const ige=()=>{const{prompt:e}=mr(o=>o.options),t=Ga(),n=o=>t(az(o.target.value)),i=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(kz()))};return _(iF,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:i,value:e,placeholder:"I'm dreaming of..."},void 0,!1,{fileName:age,lineNumber:29,columnNumber:5},void 0)};var El="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/LogViewer.tsx";const oge=Br(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),sge=Br(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Yr.exports.isEqual}}),lge=()=>{const e=Ga(),t=mr(oge),{shouldShowLogViewer:n}=mr(sge),i=Yf("gray.50","gray.900"),o=Yf("gray.500","gray.500"),c=Yf({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[u,m]=k.exports.useState(!0),h=k.exports.useRef(null);k.exports.useLayoutEffect(()=>{h.current!==null&&u&&(h.current.scrollTop=h.current.scrollHeight)},[u,t,n]);const v=()=>{e(Ape(!n))};return _(hi,{children:[n&&_(Sn,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:i,ref:h,children:t.map((b,x)=>{const{timestamp:w,message:N,level:R}=b;return _(Sn,{gap:2,textColor:c[R],children:[_(Gr,{fontSize:"sm",fontWeight:"semibold",children:[w,":"]},void 0,!0,{fileName:El,lineNumber:109,columnNumber:17},void 0),_(Gr,{fontSize:"sm",wordBreak:"break-all",children:N},void 0,!1,{fileName:El,lineNumber:112,columnNumber:17},void 0)]},x,!0,{fileName:El,lineNumber:108,columnNumber:15},void 0)})},void 0,!1,{fileName:El,lineNumber:87,columnNumber:9},void 0),n&&_(Kf,{label:u?"Autoscroll on":"Autoscroll off",children:_(wo,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:u?"blue":"gray",icon:_(she,{},void 0,!1,{fileName:El,lineNumber:130,columnNumber:19},void 0),onClick:()=>m(!u)},void 0,!1,{fileName:El,lineNumber:122,columnNumber:11},void 0)},void 0,!1,{fileName:El,lineNumber:121,columnNumber:9},void 0),_(Kf,{label:n?"Hide logs":"Show logs",children:_(wo,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?_(fhe,{},void 0,!1,{fileName:El,lineNumber:143,columnNumber:39},void 0):_(uhe,{},void 0,!1,{fileName:El,lineNumber:143,columnNumber:53},void 0),onClick:v},void 0,!1,{fileName:El,lineNumber:136,columnNumber:9},void 0)},void 0,!1,{fileName:El,lineNumber:135,columnNumber:7},void 0)]},void 0,!0)};var fi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";const uge=()=>{const e=Ga(),[t,n]=k.exports.useState(!1);return k.exports.useEffect(()=>{e($me()),n(!0)},[e]),t?_(hi,{children:[_(Bk,{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:[_(Ff,{area:"header",pt:1,children:_(Mhe,{},void 0,!1,{fileName:fi,lineNumber:39,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:38,columnNumber:9},void 0),_(Ff,{area:"progressBar",children:_(Ahe,{},void 0,!1,{fileName:fi,lineNumber:42,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:41,columnNumber:9},void 0),_(Ff,{pl:"2",area:"menu",overflowY:"scroll",children:_(Qve,{},void 0,!1,{fileName:fi,lineNumber:45,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:44,columnNumber:9},void 0),_(Ff,{area:"prompt",children:_(ige,{},void 0,!1,{fileName:fi,lineNumber:48,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:47,columnNumber:9},void 0),_(Ff,{area:"processButtons",children:_(rge,{},void 0,!1,{fileName:fi,lineNumber:51,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:50,columnNumber:9},void 0),_(Ff,{area:"currentImage",children:_(whe,{},void 0,!1,{fileName:fi,lineNumber:54,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:53,columnNumber:9},void 0),_(Ff,{pr:"2",area:"imageRoll",overflowY:"scroll",children:_(_he,{},void 0,!1,{fileName:fi,lineNumber:57,columnNumber:11},void 0)},void 0,!1,{fileName:fi,lineNumber:56,columnNumber:9},void 0)]},void 0,!0,{fileName:fi,lineNumber:26,columnNumber:7},void 0),_(lge,{},void 0,!1,{fileName:fi,lineNumber:60,columnNumber:7},void 0)]},void 0,!0):_(Mz,{},void 0,!1,{fileName:fi,lineNumber:63,columnNumber:5},void 0)};var kp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const Jz=Qde(Dz);t5.createRoot(document.getElementById("root")).render(_(Pe.StrictMode,{children:_(Ade,{store:Dz,children:_(Pz,{loading:_(Mz,{},void 0,!1,{fileName:kp,lineNumber:18,columnNumber:29},void 0),persistor:Jz,children:_(xfe,{theme:OI,children:[_(nV,{initialColorMode:OI.config.initialColorMode},void 0,!1,{fileName:kp,lineNumber:20,columnNumber:11},void 0),_(uge,{},void 0,!1,{fileName:kp,lineNumber:21,columnNumber:11},void 0)]},void 0,!0,{fileName:kp,lineNumber:19,columnNumber:9},void 0)},void 0,!1,{fileName:kp,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:kp,lineNumber:17,columnNumber:5},void 0)},void 0,!1,{fileName:kp,lineNumber:16,columnNumber:3},void 0));
|