InvokeAI/frontend/dist/assets/index.678a45f6.js

502 lines
1.2 MiB
JavaScript
Raw Normal View History

function aq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},qt={};/**
* @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 yv=Symbol.for("react.element"),sq=Symbol.for("react.portal"),lq=Symbol.for("react.fragment"),uq=Symbol.for("react.strict_mode"),cq=Symbol.for("react.profiler"),dq=Symbol.for("react.provider"),fq=Symbol.for("react.context"),hq=Symbol.for("react.forward_ref"),pq=Symbol.for("react.suspense"),gq=Symbol.for("react.memo"),mq=Symbol.for("react.lazy"),Dk=Symbol.iterator;function vq(e){return e===null||typeof e!="object"?null:(e=Dk&&e[Dk]||e["@@iterator"],typeof e=="function"?e:null)}var XI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QI=Object.assign,JI={};function z0(e,t,n){this.props=e,this.context=t,this.refs=JI,this.updater=n||XI}z0.prototype.isReactComponent={};z0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};z0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eM(){}eM.prototype=z0.prototype;function v9(e,t,n){this.props=e,this.context=t,this.refs=JI,this.updater=n||XI}var y9=v9.prototype=new eM;y9.constructor=v9;QI(y9,z0.prototype);y9.isPureReactComponent=!0;var zk=Array.isArray,tM=Object.prototype.hasOwnProperty,b9={current:null},nM={key:!0,ref:!0,__self:!0,__source:!0};function rM(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)tM.call(t,r)&&!nM.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:yv,type:e,key:o,ref:a,props:i,_owner:b9.current}}function yq(e,t){return{$$typeof:yv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x9(e){return typeof e=="object"&&e!==null&&e.$$typeof===yv}function bq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fk=/\/+/g;function yx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bq(""+e.key):t.toString(36)}function qy(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case yv:case sq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+yx(a,0):r,zk(i)?(n="",e!=null&&(n=e.replace(Fk,"$&/")+"/"),qy(i,t,n,"",function(c){return c})):i!=null&&(x9(i)&&(i=yq(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Fk,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",zk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+yx(o,s);a+=qy(o,t,n,l,i)}else if(l=vq(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+yx(o,s++),a+=qy(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function R2(e,t,n){if(e==null)return e;var r=[],i=0;return qy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function xq(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oo={current:null},Ky={transition:null},Sq={ReactCurrentDispatcher:oo,ReactCurrentBatchConfig:Ky,ReactCurrentOwner:b9};qt.Children={map:R2,forEach:function(e,t,n){R2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R2(e,function(){t++}),t},toArray:function(e){return R2(e,function(t){return t})||[]},only:function(e){if(!x9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qt.Component=z0;qt.Fragment=lq;qt.Profiler=cq;qt
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(U,ee){var pe=U.length;U.push(ee);e:for(;0<pe;){var ye=pe-1>>>1,De=U[ye];if(0<i(De,ee))U[ye]=ee,U[pe]=De,pe=ye;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var ee=U[0],pe=U.pop();if(pe!==ee){U[0]=pe;e:for(var ye=0,De=U.length,Oe=De>>>1;ye<Oe;){var we=2*(ye+1)-1,Ue=U[we],Ge=we+1,at=U[Ge];if(0>i(Ue,pe))Ge<De&&0>i(at,Ue)?(U[ye]=at,U[Ge]=pe,ye=Ge):(U[ye]=Ue,U[we]=pe,ye=we);else if(Ge<De&&0>i(at,pe))U[ye]=at,U[Ge]=pe,ye=Ge;else break e}}return ee}function i(U,ee){var pe=U.sortIndex-ee.sortIndex;return pe!==0?pe:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],p=1,g=null,m=3,y=!1,x=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(U){for(var ee=n(c);ee!==null;){if(ee.callback===null)r(c);else if(ee.startTime<=U)r(c),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(c)}}function I(U){if(S=!1,L(U),!x)if(n(l)!==null)x=!0,me(O);else{var ee=n(c);ee!==null&&Y(I,ee.startTime-U)}}function O(U,ee){x=!1,S&&(S=!1,E(z),z=-1),y=!0;var pe=m;try{for(L(ee),g=n(l);g!==null&&(!(g.expirationTime>ee)||U&&!q());){var ye=g.callback;if(typeof ye=="function"){g.callback=null,m=g.priorityLevel;var De=ye(g.expirationTime<=ee);ee=e.unstable_now(),typeof De=="function"?g.callback=De:g===n(l)&&r(l),L(ee)}else r(l);g=n(l)}if(g!==null)var Oe=!0;else{var we=n(c);we!==null&&Y(I,we.startTime-ee),Oe=!1}return Oe}finally{g=null,m=pe,y=!1}}var D=!1,N=null,z=-1,V=5,W=-1;function q(){return!(e.unstable_now()-W<V)}function de(){if(N!==null){var U=e.unstable_now();W=U;var ee=!0;try{ee=N(!0,U)}finally{ee?ue():(D=!1,N=null)}}else D=!1}var ue;if(typeof k=="function")ue=function(){k(de)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,Pe=ge.port2;ge.port1.onmessage=de,ue=function(){Pe.postMessage(null)}}else ue=function(){P(de,0)};function me(U){N=U,D||(D=!0,ue())}function Y(U,ee){z=P(function(){U(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,me(O))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var ee=3;break;default:ee=m}var pe=m;m=ee;try{return U()}finally{m=pe}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var pe=m;m=U;try{return ee()}finally{m=pe}},e.unstable_scheduleCallback=function(U,ee,pe){var ye=e.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?ye+pe:ye):pe=ye,U){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=pe+De,U={id:p++,callback:ee,priorityLevel:U,startTime:pe,expirationTime:De,sortIndex:-1},pe>ye?(U.sortIndex=pe,t(c,U),n(l)===null&&U===n(c)&&(S?(E(z),z=-1):S=!0,Y(I,pe-ye))):(U.sortIndex=De,t(l,U),x||y||(x=!0,me(O))),U},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(U){var ee=m;return function(){var pe=m;m=ee;try{return U.apply(this,arguments)}finally{m=pe}}}})(iM);(function(e){e.exports=iM})(Up);/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var oM=C.exports,sa=Up.exports;function Ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var aM=new Set,Em={};function eh(e,t){v0(e,t),v0(e+"Capture",t)}function v0(e,t){for(Em[e]=t,e=0;e<t.length;e++)aM.add(t[e])}var fu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sw=Object.prototype.hasOwnProperty,wq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bk={},$k={};function Cq(e){return Sw.call($k,e)?!0:Sw.call(Bk,e)?!1:wq.test(e)?$k[e]=!0:(Bk[e]=!0,!1)}function _q(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kq(e,t,n,r){if(t===null||typeof t>"u"||_q(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ao(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ai={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ai[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ai[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ai[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ai[e]=new ao(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ai[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ai[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ai[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ai[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ai[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var S9=/[\-:]([a-z])/g;function w9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-a
`+bx+e}var xx=!1;function Sx(e,t){if(!e||xx)return"";xx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{xx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mg(e):""}function Eq(e){switch(e.tag){case 5:return Mg(e.type);case 16:return Mg("Lazy");case 13:return Mg("Suspense");case 19:return Mg("SuspenseList");case 0:case 2:case 15:return e=Sx(e.type,!1),e;case 11:return e=Sx(e.type.render,!1),e;case 1:return e=Sx(e.type,!0),e;default:return""}}function kw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Lp:return"Fragment";case Tp:return"Portal";case ww:return"Profiler";case _9:return"StrictMode";case Cw:return"Suspense";case _w:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lM:return(e.displayName||"Context")+".Consumer";case sM:return(e._context.displayName||"Context")+".Provider";case k9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E9:return t=e.displayName||null,t!==null?t:kw(e.type)||"Memo";case Cc:t=e._payload,e=e._init;try{return kw(e(t))}catch{}}return null}function Pq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kw(t);case 8:return t===_9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tq(e){var t=cM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function N2(e){e._valueTracker||(e._valueTracker=Tq(e))}function dM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function B3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ew(e,t){var n=t.checked;return fr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fM(e,t){t=t.checked,t!=null&&C9(e,"checked",t,!1)}function Pw(e,t){fM(e,t);var n=Zc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tw(e,t.type,Zc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wk(e,t,n){if(t.hasOwnProperty("val
`).replace(FK,"")}function W2(e,t,n){if(t=fE(t),fE(e)!==t&&n)throw Error(Ie(425))}function q3(){}var Vw=null,Ww=null;function Uw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gw=typeof setTimeout=="function"?setTimeout:void 0,BK=typeof clearTimeout=="function"?clearTimeout:void 0,hE=typeof Promise=="function"?Promise:void 0,$K=typeof queueMicrotask=="function"?queueMicrotask:typeof hE<"u"?function(e){return hE.resolve(null).then(e).catch(HK)}:Gw;function HK(e){setTimeout(function(){throw e})}function Ox(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Im(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Im(t)}function Hc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var B0=Math.random().toString(36).slice(2),cl="__reactFiber$"+B0,Dm="__reactProps$"+B0,hu="__reactContainer$"+B0,jw="__reactEvents$"+B0,VK="__reactListeners$"+B0,WK="__reactHandles$"+B0;function Cf(e){var t=e[cl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hu]||n[cl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pE(e);e!==null;){if(n=e[cl])return n;e=pE(e)}return t}e=n,n=e.parentNode}return null}function Sv(e){return e=e[cl]||e[hu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ie(33))}function a5(e){return e[Dm]||null}var qw=[],Op=-1;function od(e){return{current:e}}function Zn(e){0>Op||(e.current=qw[Op],qw[Op]=null,Op--)}function Gn(e,t){Op++,qw[Op]=e.current,e.current=t}var Yc={},$i=od(Yc),Po=od(!1),Gf=Yc;function y0(e,t){var n=e.type.contextTypes;if(!n)return Yc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function To(e){return e=e.childContextTypes,e!=null}function K3(){Zn(Po),Zn($i)}function gE(e,t,n){if($i.current!==Yc)throw Error(Ie(168));Gn($i,t),Gn(Po,n)}function eR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ie(108,Pq(e)||"Unknown",i));return fr({},n,r)}function Z3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yc,Gf=$i.current,Gn($i,e),Gn(Po,Po.current),!0}function mE(e,t,n){var r=e.stateNode;if(!r)throw Error(Ie(169));n?(e=eR(e,t,Gf),r.__reactInternalMemoizedMergedChildContext=e,Zn(Po),Zn($i),Gn($i,e)):Zn(Po),Gn(Po,n)}var ru=null,s5=!1,Nx=!1;function tR(e){ru===null?ru=[e]:ru.push(e)}function UK(e){s5=!0,tR(e)}function ad(){if(!Nx&&ru!==null){Nx=!0;var e=0,t=En;try{var n=ru;for(En=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ru=null,s5=!1}catch(i){throw ru!==null&&(ru=ru.slice(e+1)),EM(T9,ad),i}finally{En=t,Nx=!1}}return null}var Np=[],Dp=0,Y3=null,X3=0,Ta=[],La=0,jf=null,au=1,su="";function ff(e,t){Np[Dp++]=X3,Np[Dp++]=Y3,Y3=e,X3=t}function nR(e,t,n){Ta[La++]=au,Ta[La++]=su,Ta[La++]=jf,jf=e;var r=au;e=su;var i=32-ms(r)-1;r&=~(1<<i),n+=1;var o=32-ms(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,au=1<<32-ms(t)+i|n<<i|r,su=o+e}else au=1<<o|n<<i|r,su=e}function z9(e){e.return!==null&&(ff(e,1),nR(e,1,0))}function F9(e){for(;e===Y3;)Y3=Np[--Dp],Np[Dp]=null,X3=Np[--Dp],Np[Dp]=null;for(;e===jf;)jf=Ta[--La],Ta[La]=null,su=Ta[--La],Ta[La]=null,au=Ta[--La],Ta[La]=null}var ra=null,ta=null,rr=!1,hs=null;function rR(e,t){var n=Ma(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function $x(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var JK=typeof WeakMap=="function"?WeakMap:Map;function IR(e,t,n){n=du(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){o4||(o4=!0,u6=r),Jw(e,t)},n}function MR(e,t,n){n=du(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Jw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Jw(e,t),typeof r!="function"&&(Wc===null?Wc=new Set([this]):Wc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function EE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new JK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hZ.bind(null,e,t,n),t.then(e,e))}function PE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function TE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=du(-1,1),t.tag=2,Vc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var eZ=_u.ReactCurrentOwner,Eo=!1;function Qi(e,t,n,r){t.child=e===null?cR(t,null,n,r):x0(t,e.child,n,r)}function LE(e,t,n,r,i){n=n.render;var o=t.ref;return Zp(t,i),r=Z9(e,t,n,r,o,i),n=Y9(),e!==null&&!Eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gu(e,t,i)):(rr&&n&&z9(t),t.flags|=1,Qi(e,t,r,i),t.child)}function AE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!aC(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,RR(e,t,o,r,i)):(e=i3(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Rm,n(a,r)&&e.ref===t.ref)return gu(e,t,i)}return t.flags|=1,e=Gc(o,r),e.ref=t.ref,e.return=t,t.child=e}function RR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Rm(o,r)&&e.ref===t.ref)if(Eo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Eo=!0);else return t.lanes=e.lanes,gu(e,t,i)}return e6(e,t,n,r,i)}function OR(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gn(Bp,Jo),Jo|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gn(Bp,Jo),Jo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Gn(Bp,Jo),Jo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Gn(Bp,Jo),Jo|=r;return Qi(e,t,i,n),t.child}function NR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function e6(e,t,n,r,i){var o=To(n)?Gf:$i.current;return o=y0(t,o),Zp(t,i),n=Z9(e,t,n,r,o,i),r=Y9(),e!==null&&!Eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gu(e,t,i)):(rr&&r&&z9(t),t.flags|=1,Qi(e,t,n,i),t.child)}function IE(e,t,n,r,i){if(To(n)){var o=!0;Z3(t)}else o=!1;if(Zp(t,i),t.stateNode===null)t3(e,t),lR(t,n,r),Qw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=za(c):(c=To(n)?Gf:$i.current,c=y0(t,c));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&wE(t,a,r,c),_c=!1;var m=t.memoizedState;a.state=m,e4(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Po.current||_c?(typeof p=="function"&&(Xw(t,n,p,r),l=t.memoizedState),(s=_c||SE(t,n,s,r,m,l,c))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _Z=C.exports,kZ=Symbol.for("react.element"),EZ=Symbol.for("react.fragment"),PZ=Object.prototype.hasOwnProperty,TZ=_Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LZ={key:!0,ref:!0,__self:!0,__source:!0};function iO(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)PZ.call(t,r)&&!LZ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:kZ,type:e,key:o,ref:a,props:i,_owner:TZ.current}}y5.Fragment=EZ;y5.jsx=iO;y5.jsxs=iO;(function(e){e.exports=y5})(v5);const Bn=v5.exports.Fragment,w=v5.exports.jsx,te=v5.exports.jsxs;var dC=C.exports.createContext({});dC.displayName="ColorModeContext";function b5(){const e=C.exports.useContext(dC);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var X2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function AZ(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?X2.dark:X2.light),document.body.classList.remove(r?X2.light:X2.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var IZ="chakra-ui-color-mode";function MZ(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 RZ=MZ(IZ),GE=()=>{};function jE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function oO(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=RZ}=e,s=i==="dark"?"dark":"light",[l,c]=C.exports.useState(()=>jE(a,s)),[p,g]=C.exports.useState(()=>jE(a)),{getSystemTheme:m,setClassName:y,setDataset:x,addListener:S}=C.exports.useMemo(()=>AZ({preventTransition:o}),[o]),P=i==="system"&&!l?p:l,E=C.exports.useCallback(I=>{const O=I==="system"?m():I;c(O),y(O==="dark"),x(O),a.set(O)},[a,m,y,x]);ys(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const I=a.get();if(I){E(I);return}if(i==="system"){E("system");return}E(s)},[a,s,i,E]);const k=C.exports.useCallback(()=>{E(P==="dark"?"light":"dark")},[P,E]);C.exports.useEffect(()=>{if(!!r)return S(E)},[r,S,E]);const L=C.exports.useMemo(()=>({colorMode:t??P,toggleColorMode:t?GE:k,setColorMode:t?GE:E,forced:t!==void 0}),[P,k,E,t]);return w(dC.Provider,{value:L,children:n})}oO.displayName="ColorModeProvider";var OZ=new Set(["dark","light","system"]);function NZ(e){let t=e;return OZ.has(t)||(t="light"),t}function DZ(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=NZ(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${o?a:s}`.trim()}function zZ(e={}){const{nonce:t}=e;return w("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:DZ(e)}})}var h6={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",x="[object GeneratorFunction]",S="[object Map]",P="[object Number]",E="[object Null]",k="[object Object]",L="[object Proxy]",I="[object RegExp]",O="[object Set]",D="[object String]",N="[object Undefined]",z="[object WeakMap]",V="[object ArrayBuffer]",W="[object DataView]",q="[object Float32Array]",de="[object Float64Array]",ue="[object Int8Array]",ge="[object Int16Array]",Pe="[object Int32Array]",me="[object Uint8Array]",Y="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,Oe={};Oe[q]=Oe[de]=Oe[ue]=Oe[ge]=Oe[Pe]=Oe[me]=Oe[Y]=Oe[U]=Oe[ee]=!0,Oe[s]=Oe[l]=Oe[V]=Oe[p]=Oe[W]=Oe[g]=Oe[m]=Oe[y]=Oe[S]=Oe[P]=Oe[k]=Oe[I]=Oe[O]=Oe[D]=Oe[z]=!1;var we=typeof iu=="object"&&iu&&iu.Object===Object&&iu,Ue=typeof self=="object"&&self&&self.Object===Object&&self,Ge=we||Ue||Function("return this")(),at=t&&!t.nodeType&&t,nt=at&&!0&&e&&!e.nodeType&&e,st=nt&&nt.exports===at,Lt=st&&we.process,dt=function(){try{var H=nt&&nt.require&&nt.require("util").types;return H||Lt&&Lt.binding&&Lt.binding("util")}catch{}}(),lt=dt&&dt.isTypedArray;function mt(H,Z,se){switch(se.length){case 0:return H.call(Z);case 1:return H.call(Z,se[0]);case 2:return H.call(Z,se[0],se[1]);case 3:return H.call(Z,se[0],se[1],se[2])}return H.apply(Z,se)}function ke(H,Z){for(var se=-1,We=Array(H);++se<H;)We[se]=Z(se);return We}function Je(H){return function(Z){return H(Z)}}function At(H,Z){return H?.[Z]}function rt(H,Z){return function(se){return H(Z(se))}}var vt=Array.prototype,wn=Function.prototype,Ct=Object.prototype,Kt=Ge["__core-js_shared__"],Cn=wn.toString,pn=Ct.hasOwnProperty,Ae=function(){var H=/[^.]+$/.exec(Kt&&Kt.keys&&Kt.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),qe=Ct.toString,Zt=Cn.call(Object),Gt=RegExp("^"+Cn.call(pn).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Se=st?Ge.Buffer:void 0,Tt=Ge.Symbol,Re=Ge.Uint8Array,et=Se?Se.allocUnsafe:void 0,rn=rt(Object.getPrototypeOf,Object),Rn=Object.create,Fe=Ct.propertyIsEnumerable,ot=vt.splice,Ye=Tt?Tt.toStringTag:void 0,Rt=function(){try{var H=qa(Object,"defineProperty");return H({},"",{}),H}catch{}}(),Yt=Se?Se.isBuffer:void 0,Xn=Math.max,lo=Date.now,fi=qa(Ge,"Map"),ks=qa(Object,"create"),n1=function(){function H(){}return function(Z){if(!zo(Z))return{};if(Rn)return Rn(Z);H.prototype=Z;var se=new H;return H.prototype=void 0,se}}();function ga(H){var Z=-1,se=H==null?0:H.length;for(this.clear();++Z<se;){var We=H[Z];this.set(We[0],We[1])}}function mh(){this.__data__=ks?ks(null):{},this.size=0}function r1(H){var Z=this.has(H)&&delete this.__data__[H];return this.size-=Z?1:0,Z}function Au(H){var Z=this.__data__;if(ks){var se=Z[H];return se===r?void 0:se}return pn.call(Z,H)?Z[H]:void 0}function vh(H){var Z=this.__data__;return ks?Z[H]!==void 0:pn.call(Z,H)}function yh(H,Z){var se=this.__data__;return this.size+=this.has(H)?0:1,se[H]=ks&&Z===void 0?r:Z,this}ga.prototype.clear=mh,ga.prototype.delete=r1,ga.prototype.get=Au,ga.prototype.has=vh,ga.prototype.set=yh;function Ro(H){var Z=-1,se=H==null?0:H.length;for(this.clear();++Z<se;){var We=H[Z];this.set(We[0],We[1])}}function xd(){this.__data__=[],this.size=0}function i1(H){var Z=this.__data__,se=Ga(Z,H);if(se<0)return!1;var We=Z.length-1;return se==We?Z.pop():ot.call(Z,se,1),--this.size,!0}function Iu(H){var Z=this.__data__,se=Ga(Z,H);return se<0?void 0:Z[se][1]}function Sd(H){return Ga(this.__data__,H)>-1}function o1(H,Z){var se=this.__data__,We=Ga(se,H);return We<0?(++this.size,se.push([H,Z])):se[We][1]=Z,this}Ro.prototype.clear=xd,Ro.prototype.delete=i1,Ro.prototype.get=Iu,Ro.prototype.has=Sd,Ro.prototype.set=o
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var di=typeof Symbol=="function"&&Symbol.for,vC=di?Symbol.for("react.element"):60103,yC=di?Symbol.for("react.portal"):60106,k5=di?Symbol.for("react.fragment"):60107,E5=di?Symbol.for("react.strict_mode"):60108,P5=di?Symbol.for("react.profiler"):60114,T5=di?Symbol.for("react.provider"):60109,L5=di?Symbol.for("react.context"):60110,bC=di?Symbol.for("react.async_mode"):60111,A5=di?Symbol.for("react.concurrent_mode"):60111,I5=di?Symbol.for("react.forward_ref"):60112,M5=di?Symbol.for("react.suspense"):60113,LX=di?Symbol.for("react.suspense_list"):60120,R5=di?Symbol.for("react.memo"):60115,O5=di?Symbol.for("react.lazy"):60116,AX=di?Symbol.for("react.block"):60121,IX=di?Symbol.for("react.fundamental"):60117,MX=di?Symbol.for("react.responder"):60118,RX=di?Symbol.for("react.scope"):60119;function ha(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vC:switch(e=e.type,e){case bC:case A5:case k5:case P5:case E5:case M5:return e;default:switch(e=e&&e.$$typeof,e){case L5:case I5:case O5:case R5:case T5:return e;default:return t}}case yC:return t}}}function _O(e){return ha(e)===A5}Tn.AsyncMode=bC;Tn.ConcurrentMode=A5;Tn.ContextConsumer=L5;Tn.ContextProvider=T5;Tn.Element=vC;Tn.ForwardRef=I5;Tn.Fragment=k5;Tn.Lazy=O5;Tn.Memo=R5;Tn.Portal=yC;Tn.Profiler=P5;Tn.StrictMode=E5;Tn.Suspense=M5;Tn.isAsyncMode=function(e){return _O(e)||ha(e)===bC};Tn.isConcurrentMode=_O;Tn.isContextConsumer=function(e){return ha(e)===L5};Tn.isContextProvider=function(e){return ha(e)===T5};Tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vC};Tn.isForwardRef=function(e){return ha(e)===I5};Tn.isFragment=function(e){return ha(e)===k5};Tn.isLazy=function(e){return ha(e)===O5};Tn.isMemo=function(e){return ha(e)===R5};Tn.isPortal=function(e){return ha(e)===yC};Tn.isProfiler=function(e){return ha(e)===P5};Tn.isStrictMode=function(e){return ha(e)===E5};Tn.isSuspense=function(e){return ha(e)===M5};Tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===k5||e===A5||e===P5||e===E5||e===M5||e===LX||typeof e=="object"&&e!==null&&(e.$$typeof===O5||e.$$typeof===R5||e.$$typeof===T5||e.$$typeof===L5||e.$$typeof===I5||e.$$typeof===IX||e.$$typeof===MX||e.$$typeof===RX||e.$$typeof===AX)};Tn.typeOf=ha;(function(e){e.exports=Tn})(CO);var kO=CO.exports,OX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},NX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},EO={};EO[kO.ForwardRef]=OX;EO[kO.Memo]=NX;var DX=!0;function zX(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var PO=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||DX===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},TO=function(t,n,r){PO(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function FX(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BX={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,strokeWid
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function uJ(e){const t=HO().toHexString();return!e||aJ(e)?t:e.string&&e.colors?dJ(e.string,e.colors):e.string&&!e.colors?cJ(e.string):e.colors&&!e.string?fJ(e.colors):t}function cJ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function dJ(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function fJ(e){return e[Math.floor(Math.random()*e.length)]}function ct(e,t){return n=>n.colorMode==="dark"?t:e}function wC(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function GO(e){return hJ(e)&&e.reference?e.reference:String(e)}var z5=(e,...t)=>t.map(GO).join(` ${e} `).replace(/calc/g,""),vP=(...e)=>`calc(${z5("+",...e)})`,yP=(...e)=>`calc(${z5("-",...e)})`,E6=(...e)=>`calc(${z5("*",...e)})`,bP=(...e)=>`calc(${z5("/",...e)})`,xP=e=>{const t=GO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:E6(t,-1)},ou=Object.assign(e=>({add:(...t)=>ou(vP(e,...t)),subtract:(...t)=>ou(yP(e,...t)),multiply:(...t)=>ou(E6(e,...t)),divide:(...t)=>ou(bP(e,...t)),negate:()=>ou(xP(e)),toString:()=>e.toString()}),{add:vP,subtract:yP,multiply:E6,divide:bP,negate:xP});function pJ(e){return!Number.isInteger(parseFloat(e.toString()))}function gJ(e,t="-"){return e.replace(/\s+/g,t)}function jO(e){const t=gJ(e.toString());return t.includes("\\.")?e:pJ(e)?t.replace(".","\\."):e}function mJ(e,t=""){return[t,jO(e)].filter(Boolean).join("-")}function vJ(e,t){return`var(${jO(e)}${t?`, ${t}`:""})`}function yJ(e,t=""){return`--${mJ(e,t)}`}function ei(e,t){const n=yJ(e,t?.prefix);return{variable:n,reference:vJ(n,bJ(t?.fallback))}}function bJ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:xJ,defineMultiStyleConfig:SJ}=Yn(vQ.keys),wJ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},CJ={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},_J={pt:"2",px:"4",pb:"5"},kJ={fontSize:"1.25em"},EJ=xJ({container:wJ,button:CJ,panel:_J,icon:kJ}),PJ=SJ({baseStyle:EJ}),{definePartsStyle:kv,defineMultiStyleConfig:TJ}=Yn(yQ.keys),oa=Mn("alert-fg"),mu=Mn("alert-bg"),LJ=kv({container:{bg:mu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function CC(e){const{theme:t,colorScheme:n}=e,r=k0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var AJ=kv(e=>{const{colorScheme:t}=e,n=CC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark}}}}),IJ=kv(e=>{const{colorScheme:t}=e,n=CC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:oa.reference}}}),MJ=kv(e=>{const{colorScheme:t}=e,n=CC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:oa.reference}}}),RJ=kv(e=>{const{colorScheme:t}=e;return{container:{[oa.variable]:"colors.white",[mu.variable]:`colors.${t}.500`,_dark:{[oa.variable]:"colors.gray.900",[mu.variable]:`colors.${t}.200`},color:oa.reference}}}),OJ={subtle:AJ,"left-accent":IJ,"top-accent":MJ,solid:RJ},NJ=TJ({baseStyle:LJ,variants:OJ,defaultProps:{variant:"subtle",colorScheme:"blue"}}),qO={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:"
to right,
transparent 0%,
${eo(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Ane={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Ine=e=>({bg:ct("gray.100","whiteAlpha.300")(e)}),Mne=e=>({transitionProperty:"common",transitionDuration:"slow",...Lne(e)}),Rne=zg(e=>({label:Ane,filledTrack:Mne(e),track:Ine(e)})),One={xs:zg({track:{h:"1"}}),sm:zg({track:{h:"2"}}),md:zg({track:{h:"3"}}),lg:zg({track:{h:"4"}})},Nne=Tne({sizes:One,baseStyle:Rne,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Dne,definePartsStyle:c3}=Yn(RQ.keys),zne=e=>{var t;const n=(t=ro(h4.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"}}}},Fne=c3(e=>{var t,n,r,i;return{label:(n=(t=h4).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=h4).baseStyle)==null?void 0:i.call(r,e).container,control:zne(e)}}),Bne={md:c3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:c3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:c3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},$ne=Dne({baseStyle:Fne,sizes:Bne,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Hne,definePartsStyle:Vne}=Yn(OQ.keys),iy=Mn("select-bg"),kP,Wne={...(kP=fn.baseStyle)==null?void 0:kP.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:iy.reference,[iy.variable]:"colors.white",_dark:{[iy.variable]:"colors.gray.700"},"> option, > optgroup":{bg:iy.reference}},Une={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Gne=Vne({field:Wne,icon:Une}),oy={paddingInlineEnd:"8"},EP,PP,TP,LP,AP,IP,MP,RP,jne={lg:{...(EP=fn.sizes)==null?void 0:EP.lg,field:{...(PP=fn.sizes)==null?void 0:PP.lg.field,...oy}},md:{...(TP=fn.sizes)==null?void 0:TP.md,field:{...(LP=fn.sizes)==null?void 0:LP.md.field,...oy}},sm:{...(AP=fn.sizes)==null?void 0:AP.sm,field:{...(IP=fn.sizes)==null?void 0:IP.sm.field,...oy}},xs:{...(MP=fn.sizes)==null?void 0:MP.xs,field:{...(RP=fn.sizes)==null?void 0:RP.xs.field,...oy},icon:{insetEnd:"1"}}},qne=Hne({baseStyle:Gne,sizes:jne,variants:fn.variants,defaultProps:fn.defaultProps}),rS=Mn("skeleton-start-color"),iS=Mn("skeleton-end-color"),Kne={[rS.variable]:"colors.gray.100",[iS.variable]:"colors.gray.400",_dark:{[rS.variable]:"colors.gray.800",[iS.variable]:"colors.gray.600"},background:rS.reference,borderColor:iS.reference,opacity:.7,borderRadius:"sm"},Zne={baseStyle:Kne},oS=Mn("skip-link-bg"),Yne={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[oS.variable]:"colors.white",_dark:{[oS.variable]:"colors.gray.700"},bg:oS.reference}},Xne={baseStyle:Yne},{defineMultiStyleConfig:Qne,definePartsStyle:F5}=Yn(NQ.keys),Zm=Mn("slider-thumb-size"),Ym=Mn("slider-track-size"),Lc=Mn("slider-bg"),Jne=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...wC({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},ere=e=>({...wC({orientation:e.orientation,horizontal:{h:Ym.reference},vertical:{w:Ym.reference}}),overflow:"hidden",borderRadius:"sm",[Lc.variable]:"colors.gray.200",_dark:{[Lc.variable]:"colors.whiteAlpha.200"},_disabled:{[Lc.variable]:"colors.gray.300",_dark:{[Lc.variable]:"colors.whiteAlpha.300"}},bg:Lc.reference}),tre=e=>{const{orientation:t}=e;return{...wC({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:Zm.reference,h:Zm.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"}}},nre=e=>{const{col
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(c)}},[t]),w(Kue,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const bS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=W5(Yue),l=C.exports.useId(),c=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:p=>{s.set(p,!0);for(const g of s.values())if(!g)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((p,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w(Zue,{isPresent:n,children:e})),w(V0.Provider,{value:c,children:e})};function Yue(){return new Map}const Ep=e=>e.key||"";function Xue(e,t){e.forEach(n=>{const r=Ep(n);t.set(r,n)})}function Que(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const ld=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",oD(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=que();const l=C.exports.useContext(PC).forceRender;l&&(s=l);const c=RD(),p=Que(e);let g=p;const m=new Set,y=C.exports.useRef(g),x=C.exports.useRef(new Map).current,S=C.exports.useRef(!0);if(m4(()=>{S.current=!1,Xue(p,x),y.current=g}),DC(()=>{S.current=!0,x.clear(),m.clear()}),S.current)return w(Bn,{children:g.map(L=>w(bS,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},Ep(L)))});g=[...g];const P=y.current.map(Ep),E=p.map(Ep),k=P.length;for(let L=0;L<k;L++){const I=P[L];E.indexOf(I)===-1&&m.add(I)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(E.indexOf(L)!==-1)return;const I=x.get(L);if(!I)return;const O=P.indexOf(L),D=()=>{x.delete(L),m.delete(L);const N=y.current.findIndex(z=>z.key===L);if(y.current.splice(N,1),!m.size){if(y.current=p,c.current===!1)return;s(),r&&r()}};g.splice(O,0,w(bS,{isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:o,mode:a,children:I},Ep(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:w(bS,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},Ep(L))}),iD!=="production"&&a==="wait"&&g.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.`),w(Bn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var dl=function(){return dl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},dl.apply(this,arguments)};function OD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function W0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(p){try{c(r.next(p))}catch(g){a(g)}}function l(p){try{c(r.throw(p))}catch(g){a(g)}}function c(p){p.done?o(p.value):i(p.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function U0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(p){return l([c,p])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[
`})}function wce(e){Y5({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function If(e){const{isOpen:t,isDisabled:n}=QC(),{reduceMotion:r}=JC(),i=Mv("chakra-accordion__icon",e.className),o=X5(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return w(pa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}If.displayName="AccordionIcon";var Mf=Ce(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=yce(t),l={...X5().container,overflowAnchor:"none"},c=C.exports.useMemo(()=>a,[a]);return ne.createElement(fce,{value:c},ne.createElement(ve.div,{ref:n,...o,className:Mv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Mf.displayName="AccordionItem";var Rf=Ce(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=JC(),{getPanelProps:s,isOpen:l}=QC(),c=s(o,n),p=Mv("chakra-accordion__panel",r),g=X5();a||delete c.hidden;const m=ne.createElement(ve.div,{...c,__css:g.panel,className:p});return a?m:w(ND,{in:l,...i,children:m})});Rf.displayName="AccordionPanel";var Q5=Ce(function({children:t,reduceMotion:n,...r},i){const o=Ii("Accordion",r),a=hn(r),{htmlProps:s,descendants:l,...c}=mce(a),p=C.exports.useMemo(()=>({...c,reduceMotion:!!n}),[c,n]);return ne.createElement(hce,{value:l},ne.createElement(vce,{value:p},ne.createElement(dce,{value:o},ne.createElement(ve.div,{ref:i,...s,className:Mv("chakra-accordion",r.className),__css:o.root},t))))});Q5.displayName="Accordion";var Cce=(...e)=>e.filter(Boolean).join(" "),_ce=sd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Rv=Ce((e,t)=>{const n=so("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=hn(e),c=Cce("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${_ce} ${o} linear infinite`,...n};return ne.createElement(ve.div,{ref:t,__css:p,className:c,...l},r&&ne.createElement(ve.span,{srOnly:!0},r))});Rv.displayName="Spinner";var J5=(...e)=>e.filter(Boolean).join(" ");function kce(e){return w(pa,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Ece(e){return w(pa,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function JT(e){return w(pa,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[Pce,Tce]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Lce,e7]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),BD={info:{icon:Ece,colorScheme:"blue"},warning:{icon:JT,colorScheme:"orange"},success:{icon:kce,colorScheme:"green"},error:{icon:JT,colorScheme:"red"},loading:{icon:Rv,colorScheme:"blue"}};function Ace(e){return BD[e].colorScheme}function Ice(e){return BD[e].icon}var $D=Ce(function(t,n){const{status:r="info",addRole:i=!0,...o}=hn(t),a=t.colorScheme??Ace(r),s=Ii("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
: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: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,gde=()=>w(N5,{styles:YD}),mde=()=>w(N5,{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;
}
${YD}
`});function $f(e,t,n,r){const i=cr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}function vde(e){return"current"in e}var XD=()=>typeof window<"u";function yde(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var bde=e=>XD()&&e.test(navigator.vendor),xde=e=>XD()&&e.test(yde()),Sde=()=>xde(/mac|iphone|ipad|ipod/i),wde=()=>Sde()&&bde(/apple/i);function Cde(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};$f(i,"pointerdown",o=>{if(!wde()||!r)return;const a=o.target,l=(n??[t]).some(c=>{const p=vde(c)?c.current:c;return p?.contains(a)||p===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var _de=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},kde=_de,sL={"text/plain":"Text","text/html":"Url",default:"Text"},Ede="Copy to clipboard: #{key}, Enter";function Pde(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Tde(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=kde(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=sL[t.format]||sL.default;window.clipboardData.setData(g,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(g){n&&console.error("unable to copy using clipboardData: ",g),n&&console.error("falling back to prompt"),r=Pde("message"in t?t.message:Ede),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Lde=Tde,Ade=sQ?C.exports.useLayoutEffect:C.exports.useEffect;function lL(e,t=[]){const n=C.exports.useRef(e);return Ade(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Ide(e,t={}){const[n,r]=C.exports.useState(!1),[i,o]=C.exports.useState(e),{timeout:a=1500,...s}=typeof t=="number"?{timeout:t}:t,l=C.exports.useCallback(()=>{const c=Lde(i,s);r(c)},[i,s]);return C.exports.useEffect(()=>{let c=null;return n&&(c=window.setTimeout(()=>{r(!1)},a)),()=>{c&&window.clearTimeout(c)}},[a,n]),{value:i,setValue:o,onCopy:l,hasCopied:n}}function Mde(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Rde(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function A4(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=lL(n),a=lL(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[c,p]=Mde(r,s),g=Rde(i,"disclosure"),m=C.exports.useCallback(()=>{c||l(!1),a?.()},[c,a]),y=C.exports.useCallback(()=>{c||l(!0),o?.()},[c,o
.`.concat(c0e,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(v3,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(y3,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(v3," .").concat(v3,` {
right: 0 `).concat(r,`;
}
.`).concat(y3," .").concat(y3,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(d0e,": ").concat(s,`px;
}
`)},C0e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return x0e(i)},[i]);return w(S0e,{styles:w0e(o,!t,i,n?"":"!important")})},h8=!1;if(typeof window<"u")try{var vy=Object.defineProperty({},"passive",{get:function(){return h8=!0,!0}});window.addEventListener("test",vy,vy),window.removeEventListener("test",vy,vy)}catch{h8=!1}var yp=h8?{passive:!1}:!1,_0e=function(e){return e.tagName==="TEXTAREA"},xF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_0e(e)&&n[t]==="visible")},k0e=function(e){return xF(e,"overflowY")},E0e=function(e){return xF(e,"overflowX")},TL=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=SF(e,n);if(r){var i=wF(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},P0e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},T0e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},SF=function(e,t){return e==="v"?k0e(t):E0e(t)},wF=function(e,t){return e==="v"?P0e(t):T0e(t)},L0e=function(e,t){return e==="h"&&t==="rtl"?-1:1},A0e=function(e,t,n,r,i){var o=L0e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),c=!1,p=a>0,g=0,m=0;do{var y=wF(e,s),x=y[0],S=y[1],P=y[2],E=S-P-o*x;(x||E)&&SF(e,s)&&(g+=E,m+=x),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(c=!0),c},yy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},LL=function(e){return[e.deltaX,e.deltaY]},AL=function(e){return e&&"current"in e?e.current:e},I0e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},M0e=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},R0e=0,bp=[];function O0e(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(R0e++)[0],o=C.exports.useState(function(){return bF()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=X6([e.lockRef.current],(e.shards||[]).map(AL),!0).filter(Boolean);return S.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(S,P){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var E=yy(S),k=n.current,L="deltaX"in S?S.deltaX:k[0]-E[0],I="deltaY"in S?S.deltaY:k[1]-E[1],O,D=S.target,N=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in S&&N==="h"&&D.type==="range")return!1;var z=TL(N,D);if(!z)return!0;if(z?O=N:(O=N==="v"?"h":"v",z=TL(N,D)),!z)return!1;if(!r.current&&"changedTouches"in S&&(L||I)&&(r.current=O),!O)return!0;var V=r.current||O;return A0e(V,P,S,V==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(S){var P=S;if(!(!bp.length||bp[bp.length-1]!==o)){var E="deltaY"in P?LL(P):yy(P),k=t.current.filter(function(O){return O.name===P.type&&O.target===P.target&&I0e(O.delta,E)})[0];if(k&&k.should){P.cancelable&&P.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(AL).filter(Boolean).filter(function(O){return O.contains(P.target)}),I=L.length>0?s(P,L[0]):!a.current.noIsolation;I&&P.cancelable&&P.preventDefault()}}},[]),c=C.exports.useCallback(function(S,P,E,k){var L={name:S,delta:P,target:E,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(I){return I!==L})},1)},[]),p=C.exports.useCallback(function(S){n.current=yy(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){c(S.type,LL(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){c(S.type,yy(S),S.target,s(S,e.lockRef.current))},[]);C.exports.useEffect(function(){return bp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,yp),document.addEventListener("touchmove",l,yp),document.addEventListener("touchstart",p,yp),function(){bp=bp.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,yp),document.removeEventListener("touchmove",l,yp),document.removeEventListener("touchstart",p,yp)}},[]);var y=e.removeScrollBar,x=e.inert;return te(Bn,{children:[x?w(o,{styles:M0e(i)}):null,y?w(C0e,{gapMode:"margin"}):null]})}const N0e=ppe(yF,O0e);var CF=C.exports.forwardRef(function(e,t){return w(sb,{...dl({},e,{ref:t,sideCar:N0e})})});CF.classNames=sb.classNames;const _F=CF;var ah=(...e)=>e.filter(Boolean).join(" ");function Bg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var D0e=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}},p8=new D0e;function z0e(e,t){C.exports.useEffect(()=>(t&&p8.add(e),()=>{p8.remove(e)}),[t,e])}function F0e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,c=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=$0e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");B0e(c,t&&a),z0e(c,t);const x=C.exports.useRef(null),S=C.exports.useCallback(z=>{x.current=z.target},[]),P=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[E,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),O=C.exports.useCallback((z={},V=null)=>({role:"dialog",...z,ref:Fn(V,c),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":L?y:void 0,onClick:Bg(z.onClick,W=>W.stopPropagation())}),[y,L,g,m,E]),D=C.exports.useCallback(z=>{z.stopPropagation(),x.current===z.target&&(!p8.isTopModal(c)||(i&&n?.()
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var R0=C.exports;function Zme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yme=typeof Object.is=="function"?Object.is:Zme,Xme=R0.useState,Qme=R0.useEffect,Jme=R0.useLayoutEffect,eve=R0.useDebugValue;function tve(e,t){var n=t(),r=Xme({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Jme(function(){i.value=n,i.getSnapshot=t,WS(i)&&o({inst:i})},[e,n,t]),Qme(function(){return WS(i)&&o({inst:i}),e(function(){WS(i)&&o({inst:i})})},[e]),eve(n),n}function WS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yme(e,n)}catch{return!0}}function nve(e,t){return t()}var rve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nve:tve;yB.useSyncExternalStore=R0.useSyncExternalStore!==void 0?R0.useSyncExternalStore:rve;(function(e){e.exports=yB})(vB);var bB={exports:{}},xB={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hb=C.exports,ive=vB.exports;function ove(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ave=typeof Object.is=="function"?Object.is:ove,sve=ive.useSyncExternalStore,lve=hb.useRef,uve=hb.useEffect,cve=hb.useMemo,dve=hb.useDebugValue;xB.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=lve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=cve(function(){function l(y){if(!c){if(c=!0,p=y,y=r(y),i!==void 0&&a.hasValue){var x=a.value;if(i(x,y))return g=x}return g=y}if(x=g,ave(p,y))return x;var S=r(y);return i!==void 0&&i(x,S)?x:(p=y,g=S)}var c=!1,p,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=sve(e,o[0],o[1]);return uve(function(){a.hasValue=!0,a.value=s},[s]),dve(s),s};(function(e){e.exports=xB})(bB);function fve(e){e()}let SB=fve;const hve=e=>SB=e,pve=()=>SB,td=C.exports.createContext(null);function wB(){return C.exports.useContext(td)}const gve=()=>{throw new Error("uSES not initialized!")};let CB=gve;const mve=e=>{CB=e},vve=(e,t)=>e===t;function yve(e=td){const t=e===td?wB:()=>C.exports.useContext(e);return function(r,i=vve){const{store:o,subscription:a,getServerState:s}=t(),l=CB(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const bve=yve();var xve={exports:{}},Ln={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Y7=Symbol.for("react.element"),X7=Symbol.for("react.portal"),pb=Symbol.for("react.fragment"),gb=Symbol.for("react.strict_mode"),mb=Symbol.for("react.profiler"),vb=Symbol.for("react.provider"),yb=Symbol.for("react.context"),Sve=Symbol.for("react.server_context"),bb=Symbol.for("react.forward_ref"),xb=Symbol.for("react.suspense"),Sb=Symbol.for("react.suspense_list"),wb=Symbol.for("react.memo"),Cb=Symbol.for("react.lazy"),wve=Symbol.for("react.offscreen"),_B;_B=Symbol.for("react.module.reference");function Wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Y7:switch(e=e.type,e){case pb:case mb:case gb:case xb:case Sb:return e;default:switch(e=e&&e.$$typeof,e){case Sve:case yb:case bb:case Cb:case wb:case vb:return e;default:return t}}case X7:return t}}}Ln.ContextConsumer=yb;Ln.ContextProvider=vb;Ln.Element=Y7;Ln.ForwardRef=bb;Ln.Fragment=pb;Ln.Lazy=Cb;Ln.Memo=wb;Ln.Portal=X7;Ln.Profiler=mb;Ln.StrictMode=gb;Ln.Suspense=xb;Ln.SuspenseList=Sb;Ln.isAsyncMode=function(){return!1};Ln.isConcurrentMode=function(){return!1};Ln.isContextConsumer=function(e){return Wa(e)===yb};Ln.isContextProvider=function(e){return Wa(e)===vb};Ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y7};Ln.isForwardRef=function(e){return Wa(e)===bb};Ln.isFragment=function(e){return Wa(e)===pb};Ln.isLazy=function(e){return Wa(e)===Cb};Ln.isMemo=function(e){return Wa(e)===wb};Ln.isPortal=function(e){return Wa(e)===X7};Ln.isProfiler=function(e){return Wa(e)===mb};Ln.isStrictMode=function(e){return Wa(e)===gb};Ln.isSuspense=function(e){return Wa(e)===xb};Ln.isSuspenseList=function(e){return Wa(e)===Sb};Ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pb||e===mb||e===gb||e===xb||e===Sb||e===wve||typeof e=="object"&&e!==null&&(e.$$typeof===Cb||e.$$typeof===wb||e.$$typeof===vb||e.$$typeof===yb||e.$$typeof===bb||e.$$typeof===_B||e.getModuleId!==void 0)};Ln.typeOf=Wa;(function(e){e.exports=Ln})(xve);function Cve(){const e=pve();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const eA={notify(){},get:()=>[]};function _ve(e,t){let n,r=eA;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){p.onStateChange&&p.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=Cve())}function c(){n&&(n(),n=void 0,r.clear(),r=eA)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return p}const kve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eve=kve?C.exports.useLayoutEffect:C.exports.useEffect;function Pve({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=_ve(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Eve(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),w((t||td).Provider,{value:i,children:n})}function kB(e=td){const t=e===td?wB:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Tve=kB();function Lve(e=td){const t=e===td?Tve:kB(e);return function(){return t().dispatch}}const Ave=Lve();mve(bB.exports.useSyncExternalStoreWithSelector);hve(Tl.exports.unstable_batchedUpdates);var Q7="persist:",EB="persist/FLUSH",J7="persist/REHYDRATE",PB="persist/PAUSE",TB="persist/PERSIST",LB="persist/PURGE",AB="persist/REGISTER",Ive=-1;function S3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S3=function(n){return typeof n}:S3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",g=1,m=2,y=4,x=1,S=2,P=1,E=2,k=4,L=8,I=16,O=32,D=64,N=128,z=256,V=512,W=30,q="...",de=800,ue=16,ge=1,Pe=2,me=3,Y=1/0,U=9007199254740991,ee=17976931348623157e292,pe=0/0,ye=4294967295,De=ye-1,Oe=ye>>>1,we=[["ary",N],["bind",P],["bindKey",E],["curry",L],["curryRight",I],["flip",V],["partial",O],["partialRight",D],["rearg",z]],Ue="[object Arguments]",Ge="[object Array]",at="[object AsyncFunction]",nt="[object Boolean]",st="[object Date]",Lt="[object DOMException]",dt="[object Error]",lt="[object Function]",mt="[object GeneratorFunction]",ke="[object Map]",Je="[object Number]",At="[object Null]",rt="[object Object]",vt="[object Promise]",wn="[object Proxy]",Ct="[object RegExp]",Kt="[object Set]",Cn="[object String]",pn="[object Symbol]",Ae="[object Undefined]",qe="[object WeakMap]",Zt="[object WeakSet]",Gt="[object ArrayBuffer]",Se="[object DataView]",Tt="[object Float32Array]",Re="[object Float64Array]",et="[object Int8Array]",rn="[object Int16Array]",Rn="[object Int32Array]",Fe="[object Uint8Array]",ot="[object Uint8ClampedArray]",Ye="[object Uint16Array]",Rt="[object Uint32Array]",Yt=/\b__p \+= '';/g,Xn=/\b(__p \+=) '' \+/g,lo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fi=/&(?:amp|lt|gt|quot|#39);/g,ks=/[&<>"']/g,n1=RegExp(fi.source),ga=RegExp(ks.source),mh=/<%-([\s\S]+?)%>/g,r1=/<%([\s\S]+?)%>/g,Au=/<%=([\s\S]+?)%>/g,vh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yh=/^\w*$/,Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xd=/[\\^$.*+?()[\]{}|]/g,i1=RegExp(xd.source),Iu=/^\s+/,Sd=/\s/,o1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Es=/\{\n\/\* \[wrapped with (.+)\] \*/,Mu=/,? & /,a1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s1=/[()=,{}\[\]\/\s]/,l1=/\\(\\)?/g,u1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ua=/\w*$/,c1=/^[-+]0x[0-9a-f]+$/i,d1=/^0b[01]+$/i,f1=/^\[object .+?Constructor\]$/,h1=/^0o[0-7]+$/i,p1=/^(?:0|[1-9]\d*)$/,g1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ps=/($^)/,m1=/['\n\r\u2028\u2029\\]/g,Ga="\\ud800-\\udfff",Ml="\\u0300-\\u036f",Rl="\\ufe20-\\ufe2f",Ts="\\u20d0-\\u20ff",Ol=Ml+Rl+Ts,bh="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",Ls="\\xac\\xb1\\xd7\\xf7",Oo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_n="\\u2000-\\u206f",gn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",No="A-Z\\xc0-\\xd6\\xd8-\\xde",_r="\\ufe0e\\ufe0f",Ur=Ls+Oo+_n+gn,Do="['\u2019]",As="["+Ga+"]",Gr="["+Ur+"]",ja="["+Ol+"]",wd="\\d+",Nl="["+bh+"]",qa="["+Ru+"]",Cd="[^"+Ga+Ur+wd+bh+Ru+No+"]",hi="\\ud83c[\\udffb-\\udfff]",xh="(?:"+ja+"|"+hi+")",Sh="[^"+Ga+"]",_d="(?:\\ud83c[\\udde6-\\uddff]){2}",Is="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+No+"]",Ms="\\u200d",Dl="(?:"+qa+"|"+Cd+")",v1="(?:"+uo+"|"+Cd+")",Ou="(?:"+Do+"(?:d|ll|m|re|s|t|ve))?",Nu="(?:"+Do+"(?:D|LL|M|RE|S|T|VE))?",kd=xh+"?",Du="["+_r+"]?",ma="(?:"+Ms+"(?:"+[Sh,_d,Is].join("|")+")"+Du+kd+")*",Ed="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=Du+kd+ma,wh="(?:"+[Nl,_d,Is].join("|")+")"+Bt,zu="(?:"+[Sh+ja+"?",ja,_d,Is,As].join("|")+")",Fu=RegExp(Do,"g"),Ch=RegExp(ja,"g"),zo=RegExp(hi+"(?="+hi+")|"+zu+Bt,"g"),Hn=RegExp([uo+"?"+qa+"+"+Ou+"(?="+[Gr,uo,"$"].join("|")+")",v1+"+"+Nu+"(?="+[Gr,uo+Dl,"$"].join("|")+")",uo+"?"+Dl+"+"+Ou,uo+"+"+Nu,zl,Ed,wd,wh].join("|"),"g"),Pd=RegExp("["+Ms+Ga+Ol+_r+"]"),_h=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Td=["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"],kh=-1,on=
/* [wrapped with `+h+`] */
`)}function FV(u){return Mt(u)||af(u)||!!(L1&&u&&u[L1])}function ql(u,h){var b=typeof u;return h=h??U,!!h&&(b=="number"||b!="symbol"&&p1.test(u))&&u>-1&&u%1==0&&u<h}function Ki(u,h,b){if(!sr(b))return!1;var A=typeof h;return(A=="number"?bo(b)&&ql(h,b.length):A=="string"&&h in b)?rs(b[h],u):!1}function Jb(u,h){if(Mt(u))return!1;var b=typeof u;return b=="number"||b=="symbol"||b=="boolean"||u==null||Ko(u)?!0:yh.test(u)||!vh.test(u)||h!=null&&u in an(h)}function BV(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function ex(u){var h=fe(u),b=F[h];if(typeof b!="function"||!(h in Vt.prototype))return!1;if(u===b)return!0;var A=re(b);return!!A&&u===A[0]}function $V(u){return!!ju&&ju in u}var HV=Qn?Kl:vx;function ag(u){var h=u&&u.constructor,b=typeof h=="function"&&h.prototype||mn;return u===b}function q_(u){return u===u&&!sr(u)}function K_(u,h){return function(b){return b==null?!1:b[u]===h&&(h!==n||u in an(b))}}function VV(u){var h=T2(u,function(A){return b.size===c&&b.clear(),A}),b=h.cache;return h}function WV(u,h){var b=u[1],A=h[1],R=b|A,B=R<(P|E|N),G=A==N&&b==L||A==N&&b==z&&u[7].length<=h[8]||A==(N|z)&&h[7].length<=h[8]&&b==L;if(!(B||G))return u;A&P&&(u[2]=h[2],R|=b&P?0:k);var K=h[3];if(K){var ie=u[3];u[3]=ie?w2(ie,K,h[4]):K,u[4]=ie?$o(u[3],p):h[4]}return K=h[5],K&&(ie=u[5],u[5]=ie?tg(ie,K,h[6]):K,u[6]=ie?$o(u[5],p):h[6]),K=h[7],K&&(u[7]=K),A&N&&(u[8]=u[8]==null?h[8]:Kr(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=R,u}function UV(u){var h=[];if(u!=null)for(var b in an(u))h.push(b);return h}function GV(u){return Rh.call(u)}function Z_(u,h,b){return h=mr(h===n?u.length-1:h,0),function(){for(var A=arguments,R=-1,B=mr(A.length-h,0),G=ce(B);++R<B;)G[R]=A[h+R];R=-1;for(var K=ce(h+1);++R<h;)K[R]=A[R];return K[h]=b(G),pi(u,this,K)}}function Y_(u,h){return h.length<2?u:Bs(u,Lr(h,0,-1))}function jV(u,h){for(var b=u.length,A=Kr(h.length,b),R=xi(u);A--;){var B=h[A];u[A]=ql(B,b)?R[B]:n}return u}function tx(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var X_=J_(Qd),sg=Vd||function(u,h){return ut.setTimeout(u,h)},nx=J_(ep);function Q_(u,h,b){var A=h+"";return nx(u,zV(A,qV(OV(A),b)))}function J_(u){var h=0,b=0;return function(){var A=A1(),R=ue-(A-b);if(b=A,R>0){if(++h>=de)return arguments[0]}else h=0;return u.apply(n,arguments)}}function _2(u,h){var b=-1,A=u.length,R=A-1;for(h=h===n?A:h;++b<h;){var B=Yd(b,R),G=u[B];u[B]=u[b],u[b]=G}return u.length=h,u}var ek=VV(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(Ro,function(b,A,R,B){h.push(R?B.replace(l1,"$1"):A||b)}),h});function Zs(u){if(typeof u=="string"||Ko(u))return u;var h=u+"";return h=="0"&&1/u==-Y?"-0":h}function of(u){if(u!=null){try{return ir.call(u)}catch{}try{return u+""}catch{}}return""}function qV(u,h){return Vn(we,function(b){var A="_."+b[0];h&b[1]&&!Mi(u,A)&&u.push(A)}),u.sort()}function tk(u){if(u instanceof Vt)return u.clone();var h=new Ui(u.__wrapped__,u.__chain__);return h.__actions__=xi(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function KV(u,h,b){(b?Ki(u,h,b):h===n)?h=1:h=mr(Ot(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var R=0,B=0,G=ce(Wd(A/h));R<A;)G[B++]=Lr(u,R,R+=h);return G}function ZV(u){for(var h=-1,b=u==null?0:u.length,A=0,R=[];++h<b;){var B=u[h];B&&(R[A++]=B)}return R}function YV(){var u=arguments.length;if(!u)return[];for(var h=ce(u-1),b=arguments[0],A=u;A--;)h[A-1]=arguments[A];return ya(Mt(b)?xi(b):[b],Pr(h,1))}var XV=bt(function(u,h){return Ar(u)?ac(u,Pr(h,1,Ar,!0)):[]}),QV=bt(function(u,h){var b=Ca(h);return Ar(b)&&(b=n),Ar(u)?ac(u,Pr(h,1,Ar,!0),_e(b,2)):[]}),JV=bt(function(u,h){var b=Ca(h);return Ar(b)&&(b=n),Ar(u)?ac(u,Pr(h,1,Ar,!0),n,b):[]});function eW(u,h,b){var A=u==null?0:u.length;return A?(h=b||h===n?1:Ot(h),Lr(u,h<0?0:h,A)):[]}function tW(u,h,b){var A=u==null?0:u.length;return A?(h=b||h===n?1:Ot(h),h=A-h,Lr(u,0,h<0?0:h)):[]}function nW(u,h){return u&&u.length?hc(u,_e(h,3),!0,!0):[]}function rW(u,h){return u&&u.length?hc(u,_e(h,3),!0):[]}function iW(u,h,b,A){var R=u==null?0:u.length;return R?(b&&t
`;u.replace($e,function(gt,Wt,Qt,Zo,Zi,Yo){return Qt||(Qt=Zo),Ee+=u.slice(be,Yo).replace(m1,Ns),Wt&&(K=!0,Ee+=`' +
__e(`+Wt+`) +
'`),Zi&&(ie=!0,Ee+=`';
`+Zi+`;
__p += '`),Qt&&(Ee+=`' +
((__t = (`+Qt+`)) == null ? '' : __t) +
'`),be=Yo+gt.length,gt}),Ee+=`';
`;var pt=Jt.call(h,"variable")&&h.variable;if(!pt)Ee=`with (obj) {
`+Ee+`
}
`;else if(s1.test(pt))throw new xt(s);Ee=(ie?Ee.replace(Yt,""):Ee).replace(Xn,"$1").replace(lo,"$1;"),Ee="function("+(pt||"obj")+`) {
`+(pt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ee+`return __p
}`;var Ft=Rk(function(){return Xt(B,it+"return "+Ee).apply(n,G)});if(Ft.source=Ee,sx(Ft))throw Ft;return Ft}function hj(u){return vn(u).toLowerCase()}function pj(u){return vn(u).toUpperCase()}function gj(u,h,b){if(u=vn(u),u&&(b||h===n))return Wi(u);if(!u||!(h=ji(h)))return u;var A=Ri(u),R=Ri(h),B=Bo(A,R),G=Ka(A,R)+1;return ts(A,B,G).join("")}function mj(u,h,b){if(u=vn(u),u&&(b||h===n))return u.slice(0,_1(u)+1);if(!u||!(h=ji(h)))return u;var A=Ri(u),R=Ka(A,Ri(h))+1;return ts(A,0,R).join("")}function vj(u,h,b){if(u=vn(u),u&&(b||h===n))return u.replace(Iu,"");if(!u||!(h=ji(h)))return u;var A=Ri(u),R=Bo(A,Ri(h));return ts(A,R).join("")}function yj(u,h){var b=W,A=q;if(sr(h)){var R="separator"in h?h.separator:R;b="length"in h?Ot(h.length):b,A="omission"in h?ji(h.omission):A}u=vn(u);var B=u.length;if(Bl(u)){var G=Ri(u);B=G.length}if(b>=B)return u;var K=b-ba(A);if(K<1)return A;var ie=G?ts(G,0,K).join(""):u.slice(0,K);if(R===n)return ie+A;if(G&&(K+=ie.length-K),lx(R)){if(u.slice(K).search(R)){var be,xe=ie;for(R.global||(R=Fd(R.source,vn(Ua.exec(R))+"g")),R.lastIndex=0;be=R.exec(xe);)var Ee=be.index;ie=ie.slice(0,Ee===n?K:Ee)}}else if(u.indexOf(ji(R),K)!=K){var $e=ie.lastIndexOf(R);$e>-1&&(ie=ie.slice(0,$e))}return ie+A}function bj(u){return u=vn(u),u&&n1.test(u)?u.replace(fi,e2):u}var xj=Ks(function(u,h,b){return u+(b?" ":"")+h.toUpperCase()}),dx=lp("toUpperCase");function Mk(u,h,b){return u=vn(u),h=b?n:h,h===n?Ah(u)?zd(u):S1(u):u.match(h)||[]}var Rk=bt(function(u,h){try{return pi(u,n,h)}catch(b){return sx(b)?b:new xt(b)}}),Sj=Jn(function(u,h){return Vn(h,function(b){b=Zs(b),Wo(u,b,ox(u[b],u))}),u});function wj(u){var h=u==null?0:u.length,b=_e();return u=h?Nn(u,function(A){if(typeof A[1]!="function")throw new gi(a);return[b(A[0]),A[1]]}):[],bt(function(A){for(var R=-1;++R<h;){var B=u[R];if(pi(B[0],this,A))return pi(B[1],this,A)}})}function Cj(u){return $h(ii(u,g))}function fx(u){return function(){return u}}function _j(u,h){return u==null||u!==u?h:u}var kj=ig(),Ej=ig(!0);function So(u){return u}function hx(u){return ar(typeof u=="function"?u:ii(u,g))}function Pj(u){return cc(ii(u,g))}function Tj(u,h){return Hs(u,ii(h,g))}var Lj=bt(function(u,h){return function(b){return Ja(b,u,h)}}),Aj=bt(function(u,h){return function(b){return Ja(u,b,h)}});function px(u,h,b){var A=li(h),R=Uh(h,A);b==null&&!(sr(h)&&(R.length||!A.length))&&(b=h,h=u,u=this,R=Uh(h,li(h)));var B=!(sr(b)&&"chain"in b)||!!b.chain,G=Kl(u);return Vn(R,function(K){var ie=h[K];u[K]=ie,G&&(u.prototype[K]=function(){var be=this.__chain__;if(B||be){var xe=u(this.__wrapped__),Ee=xe.__actions__=xi(this.__actions__);return Ee.push({func:ie,args:arguments,thisArg:u}),xe.__chain__=be,xe}return ie.apply(u,ya([this.value()],arguments))})}),u}function Ij(){return ut._===this&&(ut._=E1),this}function gx(){}function Mj(u){return u=Ot(u),bt(function(h){return dc(h,u)})}var Rj=og(Nn),Oj=og(On),Nj=og(Bu);function Ok(u){return Jb(u)?Os(Zs(u)):es(u)}function Dj(u){return function(h){return u==null?n:Bs(u,h)}}var zj=v(),Fj=v(!0);function mx(){return[]}function vx(){return!1}function Bj(){return{}}function $j(){return""}function Hj(){return!0}function Vj(u,h){if(u=Ot(u),u<1||u>U)return[];var b=ye,A=Kr(u,ye);h=_e(h),u-=ye;for(var R=Od(A,h);++b<u;)h(b);return R}function Wj(u){return Mt(u)?Nn(u,Zs):Ko(u)?[u]:xi(ek(vn(u)))}function Uj(u){var h=++Bd;return vn(u)+h}var Gj=up(function(u,h){return u+h},0),jj=M("ceil"),qj=up(function(u,h){return u/h},1),Kj=M("floor");function Zj(u){return u&&u.length?yr(u,So,Gh):n}function Yj(u,h){return u&&u.length?yr(u,_e(h,2),Gh):n}function Xj(u){return Id(u,So)}function Qj(u,h){return Id(u,_e(h,2))}function Jj(u){return u&&u.length?yr(u,So,$s):n}function eq(u,h){return u&&u.length?yr(u,_e(h,2),$s):n}var tq=up(function(u,h){return u*h},1),nq=M("round"),rq=up(function(u,h){return u-h},0);function iq(u){return u&&u.length?Rd(u,So):0}function oq(u,h){return u&&u.length?Rd(u,_e(h,2)):0}return F.after=PU,F.ary=dk,F.assign=pG,F.assignIn=kk,F.assignInWith=M2,F.assignWith=gG,F.at=mG,F.before=fk,F.bind=ox,F.bindAll=Sj,F.bindKey=hk,F.castArray=BU,F.chain=lk,F.chunk=KV,F.comp
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==kp&&o!==void 0,l=a!==kp&&a!==void 0,c=this.padding(),p=o-c*2,g=a-c*2,m=0,y=this.wrap(),x=y!==pI,S=y!==_Se&&x,P=this.ellipsis();this.textArr=[],hw().font=this._getContextFont();for(var E=P?this._getTextWidth(fw):0,k=0,L=t.length;k<L;++k){var I=t[k],O=this._getTextWidth(I);if(s&&O>p)for(;I.length>0;){for(var D=0,N=I.length,z="",V=0;D<N;){var W=D+N>>>1,q=I.slice(0,W+1),de=this._getTextWidth(q)+E;de<=p?(D=W+1,z=q,V=de):N=W}if(z){if(S){var ue,ge=I[z.length],Pe=ge===By||ge===fI;Pe&&V<=p?ue=z.length:ue=Math.max(z.lastIndexOf(By),z.lastIndexOf(fI))+1,ue>0&&(D=ue,z=z.slice(0,D),V=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,V),m+=i;var me=this._shouldHandleEllipsis(m);if(me){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(D),I=I.trimLeft(),I.length>0&&(O=this._getTextWidth(I),O<=p)){this._addTextLine(I),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==kp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),c=l!==pI;return!c||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==kp&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+fw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+fw)}}getStrokeScaleEnabled(){return!0}}hr.prototype._fillFunc=PSe;hr.prototype._strokeFunc=TSe;hr.prototype.className=ySe;hr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];pr(hr);j.overWriteSetter(hr,"width",I_());j.overWriteSetter(hr,"height",I_());j.addGetterSetter(hr,"fontFamily","Arial");j.addGetterSetter(hr,"fontSize",12,Ne());j.addGetterSetter(hr,"fontStyle",EH);j.addGetterSetter(hr,"fontVariant",EH);j.addGetterSetter(hr,"padding",0,Ne());j.addGetterSetter(hr,"align",kH);j.addGetterSetter(hr,"verticalAlign",bSe);j.addGetterSetter(hr,"lineHeight",1,Ne());j.addGetterSetter(hr,"wrap",CSe);j.addGetterSetter(hr,"ellipsis",!1,Cs());j.addGetterSetter(hr,"letterSpacing",0,Ne());j.addGetterSetter(hr,"text","",J0());j.addGetterSetter(hr,"textDecoration","");var ASe="",TH="normal";function LH(e){e.fillText(this.partialText,0,0)}function AH(e){e.strokeText(this.partialText,0,0)}class ti extends Te{constructor(t){super(t),this.dummyCanvas=oe.createCanvasElement(),this.dataArray=[],this.dataArray=In.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=In.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return oe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
* @license React
* react-reconciler.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 mwe=function(t){var n={},r=C.exports,i=Up.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),c=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator;function D(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}function N(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case p:return"Fragment";case c:return"Portal";case m:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case x:return(d.displayName||"Context")+".Consumer";case y:return(d._context.displayName||"Context")+".Provider";case S:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:N(d.type)||"Memo";case L:f=d._payload,d=d._init;try{return N(d(f))}catch{}}return null}function z(d){var f=d.type;switch(d.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return N(f);case 8:return f===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function V(d){var f=d,v=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(v=f.return),d=f.return;while(d)}return f.tag===3?v:null}function W(d){if(V(d)!==d)throw Error(a(188))}function q(d){var f=d.alternate;if(!f){if(f=V(d),f===null)throw Error(a(188));return f!==d?null:d}for(var v=d,_=f;;){var T=v.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){v=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===v)return W(T),d;if(M===_)return W(T),f;M=M.sibling}throw Error(a(188))}if(v.return!==_.return)v=T,_=M;else{for(var $=!1,J=T.child;J;){if(J===v){$=!0,v=T,_=M;break}if(J===_){$=!0,_=T,v=M;break}J=J.sibling}if(!$){for(J=M.child;J;){if(J===v){$=!0,v=M,_=T;break}if(J===_){$=!0,_=M,v=T;break}J=J.sibling}if(!$)throw Error(a(189))}}if(v.alternate!==_)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?d:f}function de(d){return d=q(d),d!==null?ue(d):null}function ue(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=ue(d);if(f!==null)return f;d=d.sibling}return null}function ge(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=ge(d);if(f!==null)return f}d=d.sibling}return null}var Pe=Array.isArray,me=t.getPublicInstance,Y=t.getRootHostContext,U=t.getChildHostContext,ee=t.prepareForCommit,pe=t.resetAfterCommit,ye=t.createInstance,De=t.appendInitialChild,Oe=t.finalizeInitialChildren,we=t.prepareUpdate,Ue=t.shouldSetTextContent,Ge=t.createTextInstance,at=t.scheduleTimeout,nt=t.cancelTimeout,st=t.noTimeout,Lt=t.isPrimaryRenderer,dt=t.supportsMutation,lt=t.supportsPersist
`+Ml+d}var Ts=!1;function Ol(d,f){if(!d||Ts)return"";Ts=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Me){var _=Me}Reflect.construct(d,[],f)}else{try{f.call()}catch(Me){_=Me}d.call(f.prototype)}else{try{throw Error()}catch(Me){_=Me}d()}}catch(Me){if(Me&&_&&typeof Me.stack=="string"){for(var T=Me.stack.split(`
`),M=_.stack.split(`
`),$=T.length-1,J=M.length-1;1<=$&&0<=J&&T[$]!==M[J];)J--;for(;1<=$&&0<=J;$--,J--)if(T[$]!==M[J]){if($!==1||J!==1)do if($--,J--,0>J||T[$]!==M[J]){var ae=`
`+T[$].replace(" at new "," at ");return d.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",d.displayName)),ae}while(1<=$&&0<=J);break}}}finally{Ts=!1,Error.prepareStackTrace=v}return(d=d?d.displayName||d.name:"")?Rl(d):""}var bh=Object.prototype.hasOwnProperty,Ru=[],Ls=-1;function Oo(d){return{current:d}}function _n(d){0>Ls||(d.current=Ru[Ls],Ru[Ls]=null,Ls--)}function gn(d,f){Ls++,Ru[Ls]=d.current,d.current=f}var No={},_r=Oo(No),Ur=Oo(!1),Do=No;function As(d,f){var v=d.type.contextTypes;if(!v)return No;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in v)T[M]=f[M];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=T),T}function Gr(d){return d=d.childContextTypes,d!=null}function ja(){_n(Ur),_n(_r)}function wd(d,f,v){if(_r.current!==No)throw Error(a(168));gn(_r,f),gn(Ur,v)}function Nl(d,f,v){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,z(d)||"Unknown",T));return o({},v,_)}function qa(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||No,Do=_r.current,gn(_r,d),gn(Ur,Ur.current),!0}function Cd(d,f,v){var _=d.stateNode;if(!_)throw Error(a(169));v?(d=Nl(d,f,Do),_.__reactInternalMemoizedMergedChildContext=d,_n(Ur),_n(_r),gn(_r,d)):_n(Ur),gn(Ur,v)}var hi=Math.clz32?Math.clz32:_d,xh=Math.log,Sh=Math.LN2;function _d(d){return d>>>=0,d===0?32:31-(xh(d)/Sh|0)|0}var Is=64,uo=4194304;function Ms(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function Dl(d,f){var v=d.pendingLanes;if(v===0)return 0;var _=0,T=d.suspendedLanes,M=d.pingedLanes,$=v&268435455;if($!==0){var J=$&~T;J!==0?_=Ms(J):(M&=$,M!==0&&(_=Ms(M)))}else $=v&~T,$!==0?_=Ms($):M!==0&&(_=Ms(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)v=31-hi(f),T=1<<v,_|=d[v],f&=~T;return _}function v1(d,f){switch(d){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ou(d,f){for(var v=d.suspendedLanes,_=d.pingedLanes,T=d.expirationTimes,M=d.pendingLanes;0<M;){var $=31-hi(M),J=1<<$,ae=T[$];ae===-1?((J&v)===0||(J&_)!==0)&&(T[$]=v1(J,f)):ae<=f&&(d.expiredLanes|=J),M&=~J}}function Nu(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function kd(){var d=Is;return Is<<=1,(Is&4194240)===0&&(Is=64),d}function Du(d){for(var f=[],v=0;31>v;v++)f.push(d);return f}function ma(d,f,v){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-hi(f),d[f]=v}function Ed(d,f){var v=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<v;){var T=31-hi(v),M=1<<T;f[T]=0,_[T]=-1,d[T]=-1,v&=~M}}function zl(d,f){var v=d.entangledLanes|=f;for(d=d.entanglements;v;){var _=31-hi(v),T=1<<_;T&f|d[_]&f&&(d[_]|=f),v&=~T}}var Bt=0;function wh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var zu=i.unstable_scheduleCallback,Fu=i.unstabl
Error generating stack: `+M.message+`
`+M.stack}return{value:d,source:f,stack:T,digest:null}}function O1(d,f,v){return{value:d,source:null,stack:v??null,digest:f??null}}function rc(d,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var Gd=typeof WeakMap=="function"?WeakMap:Map;function N1(d,f,v){v=Za(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){Zd||(Zd=!0,Yd=_),rc(d,f)},v}function F(d,f,v){v=Za(-1,v),v.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;v.payload=function(){return _(T)},v.callback=function(){rc(d,f)}}var M=d.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){rc(d,f),typeof _!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})}),v}function Vl(d,f,v){var _=d.pingCache;if(_===null){_=d.pingCache=new Gd;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(v)||(T.add(v),d=S2.bind(null,d,f,v),f.then(d,d))}function jd(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function Ui(d,f,v,_,T){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=Za(-1,1),f.tag=2,Ns(v,f,1))),v.lanes|=1),d):(d.flags|=65536,d.lanes=T,d)}var Vt=s.ReactCurrentOwner,Oi=!1;function vi(d,f,v,_){f.child=d===null?t2(f,null,v,_):Uu(f,d.child,v,_)}function u2(d,f,v,_,T){v=v.render;var M=f.ref;return Vu(f,T),_=P1(d,f,v,_,M,T),v=qu(),d!==null&&!Oi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(On&&v&&pi(f),f.flags|=1,vi(d,f,_,T),f.child)}function zs(d,f,v,_,T){if(d===null){var M=v.type;return typeof M=="function"&&!ng(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=M,c2(d,f,M,_,T)):(d=ef(v.type,null,_,f,f.mode,T),d.ref=f.ref,d.return=f,f.child=d)}if(M=d.child,(d.lanes&T)===0){var $=M.memoizedProps;if(v=v.compare,v=v!==null?v:Fl,v($,_)&&d.ref===f.ref)return Xa(d,f,T)}return f.flags|=1,d=qi(M,_),d.ref=f.ref,d.return=f,f.child=d}function c2(d,f,v,_,T){if(d!==null){var M=d.memoizedProps;if(Fl(M,_)&&d.ref===f.ref)if(Oi=!1,f.pendingProps=_=M,(d.lanes&T)!==0)(d.flags&131072)!==0&&(Oi=!0);else return f.lanes=d.lanes,Xa(d,f,T)}return D1(d,f,v,_,T)}function d2(d,f,v){var _=f.pendingProps,T=_.children,M=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn($s,Gi),Gi|=v;else{if((v&1073741824)===0)return d=M!==null?M.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,gn($s,Gi),Gi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,gn($s,Gi),Gi|=_}else M!==null?(_=M.baseLanes|v,f.memoizedState=null):_=v,gn($s,Gi),Gi|=_;return vi(d,f,T,v),f.child}function f2(d,f){var v=f.ref;(d===null&&v!==null||d!==null&&d.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function D1(d,f,v,_,T){var M=Gr(v)?Do:_r.current;return M=As(f,M),Vu(f,T),v=P1(d,f,v,_,M,T),_=qu(),d!==null&&!Oi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(On&&_&&pi(f),f.flags|=1,vi(d,f,v,T),f.child)}function h2(d,f,v,_,T){if(Gr(v)){var M=!0;qa(f)}else M=!1;if(Vu(f,T),f.stateNode===null)Sa(d,f),Qv(f,v,_),C1(f,v,_,T),_=!0;else if(d===null){var $=f.stateNode,J=f.memoizedProps;$.props=J;var ae=$.context,Me=v.contextType;typeof Me=="object"&&Me!==null?Me=Wi(Me):(Me=Gr(v)?Do:_r.current,Me=As(f,Me));var Ke=v.getDerivedStateFromProps,Et=typeof Ke=="function"||typeof $.getSnapshotBeforeUpdate=="function";Et||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(J!==_||ae!==Me)&&Jv(f,$,_,Me),Ka=!1;var Ve=f.memoizedState;$.state=Ve,Ah(f,_,$,T),ae=f.memoizedState,J!==_||Ve!==ae||Ur.current||Ka?(typeof Ke=="function"&&(Mh(f,v,Ke,_),ae=f.memoizedState),(J=Ka||Dd(f,v,J,_,Ve,ae,Me))?(Et||typeof $.UNSAFE_componentWillMount!="function"&&typeo
`+(_.join(" > ")+`
No matching component was found for:
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return me(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:up,findFiberByHostInstance:d.findFiberByHostInstance||og,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{on=f.inject(d),$t=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,v,_){if(!Ct)throw Error(a(363));d=q1(d,f);var T=Gt(d,v,_).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(d,f){var v=f._getVersion;v=v(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,v]:d.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(d,f){var v=Bt;try{return Bt=d,f()}finally{Bt=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,v,_){var T=f.current,M=ai(),$=Lr(T);return v=rg(v),f.context===null?f.context=v:f.pendingContext=v,f=Za(M,$),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=Ns(T,f,$),d!==null&&(vo(d,T,$,M),Lh(d,T,$)),$},n};(function(e){e.exports=mwe})(RH);const vwe=m9(RH.exports);var D_={exports:{}},gh={};/**
* @license React
* react-reconciler-constants.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.
*/gh.ConcurrentRoot=1;gh.ContinuousEventPriority=4;gh.DefaultEventPriority=16;gh.DiscreteEventPriority=1;gh.IdleEventPriority=536870912;gh.LegacyRoot=0;(function(e){e.exports=gh})(D_);const yI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let bI=!1,xI=!1;const z_=".react-konva-event",ywe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,bwe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,xwe={};function zb(e,t,n=xwe){if(!bI&&"zIndex"in t&&(console.warn(bwe),bI=!0),!xI&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(ywe),xI=!0)}for(var o in n)if(!yI[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var c=!t.hasOwnProperty(o);c&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!yI[o]){var a=o.slice(0,2)==="on",x=n[o]!==t[o];if(a&&x){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||p&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),bd(e));for(var l in y)e.on(l+z_,y[l])}function bd(e){if(!Qe.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const OH={},Swe={};Jf.Node.prototype._applyProps=zb;function wwe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),bd(e)}function Cwe(e,t,n){let r=Jf[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=Jf.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return zb(l,o),l}function _we(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function kwe(e,t,n){return!1}function Ewe(e){return e}function Pwe(){return null}function Twe(){return null}function Lwe(e,t,n,r){return Swe}function Awe(){}function Iwe(e){}function Mwe(e,t){return!1}function Rwe(){return OH}function Owe(){return OH}const Nwe=setTimeout,Dwe=clearTimeout,zwe=-1;function Fwe(e,t){return!1}const Bwe=!1,$we=!0,Hwe=!0;function Vwe(e,t){t.parent===e?t.moveToTop():e.add(t),bd(e)}function Wwe(e,t){t.parent===e?t.moveToTop():e.add(t),bd(e)}function NH(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),bd(e)}function Uwe(e,t,n){NH(e,t,n)}function Gwe(e,t){t.destroy(),t.off(z_),bd(e)}function jwe(e,t){t.destroy(),t.off(z_),bd(e)}function qwe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Kwe(e,t,n){}function Zwe(e,t,n,r,i){zb(e,i,r)}function Ywe(e){e.hide(),bd(e)}function Xwe(e){}function Qwe(e,t){(t.visible==null||t.visible)&&e.show()}function Jwe(e,t){}function e6e(e){}function t6e(){}const n6e=()=>D_.exports.DefaultEventPriority,r6e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:wwe,createInstance:Cwe,createTextInstance:_we,finalizeInitialChildren:kwe,getPublicInstance:Ewe,prepareForCommit:Pwe,preparePortalMount:Twe,prepareUpdate:Lwe,resetAfterCommit:Awe,resetTextContent:Iwe,shouldDeprioritizeSubtree:Mwe,getRootHostContext:Rwe,getChildHostContext:Owe,scheduleTimeout:Nwe,cancelTimeout:Dwe,noTimeout:zwe,shouldSetTextContent:Fwe,isPrimaryRenderer:Bwe,warnsIfNotActing:$we,supportsMutation:Hwe,appendChild:Vwe,appendChildToContainer:Wwe,insertBefore:NH,insertInContainerBefore:Uwe,removeChild:Gwe,removeChildFromContainer:jwe,commitTextUpdate:qwe,commitMount:Kwe,commitUpdate:Zwe,hideInstance:Ywe,hideTextInstance:Xwe,unhideInstance:Qwe,unhideTextInstance:Jwe,clearContainer:e6e,detachDeletedInstance:t6e,getCurrentEventPriority:n6e,now:Up.exports.unstable_now,idlePriority:Up.exports.unstable_IdlePriority,run:Up.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var i6e=Object.defineProperty,o6e=Object.defineProperties,a6e=Object.getOwnPropertyDescriptors,SI=Object.getOwnPropertySymbols,s6e=Object.prototype.hasOwnProperty,l6e=Object.prototype.propertyIsEnumerable,wI=(e,t,n)=>t in e?i6e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CI=(e,t)=>{for(var n in t||(t={}))s6e.call(t,n)&&wI(e,n,t[n]);if(SI)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ICe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MCe(e){if(Array.isArray(e))return f9(e)}function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function GI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UI(Object(n),!0).forEach(function(r){CV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vv(e,t){return NCe(e)||OCe(e,t)||_V(e,t)||RCe()}function RCe(){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 _V(e,t){if(!!e){if(typeof e=="string")return f9(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 f9(e,t)}}function f9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function NCe(e){if(Array.isArray(e))return e}var DCe="file-invalid-type",zCe="file-too-large",FCe="file-too-small",BCe="too-many-files",$Ce=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:DCe,message:"File type must be ".concat(n)}},jI=function(t){return{code:zCe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},qI=function(t){return{code:FCe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},HCe={code:BCe,message:"Too many files"};function kV(e,t){var n=e.type==="application/x-moz-file"||LCe(e,t);return[n,n?null:$Ce(t)]}function EV(e,t,n){if(wf(e.size))if(wf(t)&&wf(n)){if(e.size>n)return[!1,jI(n)];if(e.size<t)return[!1,qI(t)]}else{if(wf(t)&&e.size<t)return[!1,qI(t)];if(wf(n)&&e.size>n)return[!1,jI(n)]}return[!0,null]}function wf(e){return e!=null}function VCe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=kV(l,n),p=vv(c,1),g=p[0],m=EV(l,r,i),y=vv(m,1),x=y[0],S=s?s(l):null;return g&&x&&!S})}function e5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function jy(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 KI(e){e.preventDefault()}function WCe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function UCe(e){return e.indexOf("Edge/")!==-1}function GCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return WCe(e)||UCe(e)}function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!e5(r)&&s&&s.apply(void 0,[r].concat(o)),e5(r)})}}function jCe(){return"showOpenFilePicker"in window}function qCe(e){if(wf(e)){var t=Object.entries(e).filter(function(n){var r=vv(n,2),i=r[0],o=r[1],a=!0;return PV(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(TV))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=vv(r,2),o=i[0],a=i[1];return GI(GI({},n),{},CV({},o,a))},{});return[{description:"Files",accept:t}]}return e}function KCe(e){if(wf(e))return Object.entries(e).reduce(function(t,n){var r=vv(n,2),i=r[0],o=r[1];return[].concat(WI(t),[i],WI(o))},[]).filter(function(t){return PV(t)||TV(t)}).join(",")}function ZCe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function YCe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function PV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function TV(e){return/^.*\.[\w]+$/.test(e)}var XCe=["children"],QCe=["open"],JCe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i7e(e){if(Array.isArray(e))return h9(e)}function yw(e,t){return s7e(e)||a7e(e,t)||LV(e,t)||o7e()}function o7e(){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 LV(e,t){if(!!e){if(typeof e=="string")return h9(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 h9(e,t)}}function h9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a7e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function s7e(e){if(Array.isArray(e))return e}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(r){p9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t5(e,t){if(e==null)return{};var n=l7e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function l7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var U_=C.exports.forwardRef(function(e,t){var n=e.children,r=t5(e,XCe),i=IV(r),o=i.open,a=t5(i,QCe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),w(C.exports.Fragment,{children:n(lr(lr({},a),{},{open:o}))})});U_.displayName="Dropzone";var AV={disabled:!1,getFilesFromEvent:xCe,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};U_.defaultProps=AV;U_.propTypes={children:An.exports.func,accept:An.exports.objectOf(An.exports.arrayOf(An.exports.string)),multiple:An.exports.bool,preventDropOnDocument:An.exports.bool,noClick:An.exports.bool,noKeyboard:An.exports.bool,noDrag:An.exports.bool,noDragEventsBubbling:An.exports.bool,minSize:An.exports.number,maxSize:An.exports.number,maxFiles:An.exports.number,disabled:An.exports.bool,getFilesFromEvent:An.exports.func,onFileDialogCancel:An.exports.func,onFileDialogOpen:An.exports.func,useFsAccessApi:An.exports.bool,autoFocus:An.exports.bool,onDragEnter:An.exports.func,onDragLeave:An.exports.func,onDragOver:An.exports.func,onDrop:An.exports.func,onDropAccepted:An.exports.func,onDropRejected:An.exports.func,onError:An.exports.func,validator:An.exports.func};var g9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function IV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=lr(lr({},AV),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,x=t.onDropRejected,S=t.onFileDialogCancel,P=t.onFileDialogOpen,E=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,I=t.noClick,O=t.noKeyboard,D=t.noDrag,N=t.noDragEventsBubbling,z=t.onError,V=t.validator,W=C.exports.useMemo(function(){return KCe(n)},[n]),q=C.exports.useMemo(function(){return qCe(n)},[n]),de=C.exports.useMemo(function(){return typeof P=="function"?P:YI},[P]),ue=C.exports.useMemo(function(){return typeof S=="function"?S:YI},[S]),ge=C.exports.useRef(null),Pe=C.exports.useRef(null),me=C.ex
`+I.message,"");i({title:"Upload failed",description:k,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(E=>{a(!0);const k={file:E};["img2img","inpainting"].includes(r)&&(k.destination=r),n(vA(k))},[n,r]),c=C.exports.useCallback((E,k)=>{k.forEach(L=>{s(L)}),E.forEach(L=>{l(L)})},[l,s]),{getRootProps:p,getInputProps:g,isDragAccept:m,isDragReject:y,isDragActive:x,open:S}=IV({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:c,onDragOver:()=>a(!0),maxFiles:1});C.exports.useEffect(()=>{const E=k=>{const L=k.clipboardData?.items;if(!L)return;const I=[];for(const N of L)N.kind==="file"&&["image/png","image/jpg"].includes(N.type)&&I.push(N);if(!I.length)return;if(k.stopImmediatePropagation(),I.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const O=I[0].getAsFile();if(!O){i({description:"Unable to load file",status:"error",isClosable:!0});return}const D={file:O};["img2img","inpainting"].includes(r)&&(D.destination=r),n(vA(D))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]);const P=["img2img","inpainting"].includes(r)?` to ${Sf[r].tooltip}`:"";return w(S_.Provider,{value:S,children:te("div",{...p({style:{}}),children:[w("input",{...g()}),t,x&&o&&w(c7e,{isDragAccept:m,isDragReject:y,overlaySecondaryText:P,setIsHandlingUpload:a})]})})},f7e=()=>{const e=Ze();return w(Ut,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(k3(!0))},children:w(qB,{})})};function h7e(e){return ft({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const p7e=wt(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:ht.isEqual}}),g7e=()=>{const e=Ze(),{shouldShowProcessButtons:t}=Le(p7e);return te("div",{className:"show-hide-button-options",children:[w(Ut,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:()=>{e(M3(!0))},children:w(h7e,{})}),t&&te(Bn,{children:[w(JB,{iconButton:!0}),w(t$,{}),w(e$,{})]})]})};mCe();const m7e=wt([e=>e.gallery,e=>e.options,e=>e.system,Cr],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:c}=t,p=ht.reduce(n.model_list,(y,x,S)=>(x.status==="active"&&(y=S),y),""),g=!(i||o&&!a),m=!(s||l&&!c)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:p,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:ht.isEqual}}),v7e=()=>{const e=Ze(),{shouldShowGalleryButton:t,shouldShowOptionsPanelButton:n}=Le(m7e);return C.exports.useEffect(()=>{e(d3e())},[e]),w("div",{className:"App",children:te(d7e,{children:[w(nCe,{}),te("div",{className:"app-content",children:[w(fCe,{}),w(x8e,{})]}),w("div",{className:"app-console",children:w(gCe,{})}),t&&w(f7e,{}),n&&w(g7e,{})]})})};const MV=Qve(bV);xw.createRoot(document.getElementById("root")).render(w(ne.StrictMode,{children:w(Pve,{store:bV,children:w(xV,{loading:w(eCe,{}),persistor:MV,children:te(rme,{theme:$I,children:[w(zZ,{initialColorMode:$I.config.initialColorMode}),w(v7e,{})]})})})}));