mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
488 lines
780 KiB
JavaScript
488 lines
780 KiB
JavaScript
function lF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Ye={};/**
|
|
* @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 Xf=Symbol.for("react.element"),cF=Symbol.for("react.portal"),fF=Symbol.for("react.fragment"),dF=Symbol.for("react.strict_mode"),pF=Symbol.for("react.profiler"),hF=Symbol.for("react.provider"),mF=Symbol.for("react.context"),gF=Symbol.for("react.forward_ref"),vF=Symbol.for("react.suspense"),yF=Symbol.for("react.memo"),bF=Symbol.for("react.lazy"),TC=Symbol.iterator;function xF(e){return e===null||typeof e!="object"?null:(e=TC&&e[TC]||e["@@iterator"],typeof e=="function"?e:null)}var wE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},CE=Object.assign,_E={};function _u(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||wE}_u.prototype.isReactComponent={};_u.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")};_u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kE(){}kE.prototype=_u.prototype;function V2(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||wE}var W2=V2.prototype=new kE;W2.constructor=V2;CE(W2,_u.prototype);W2.isPureReactComponent=!0;var IC=Array.isArray,EE=Object.prototype.hasOwnProperty,j2={current:null},PE={key:!0,ref:!0,__self:!0,__source:!0};function AE(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)EE.call(t,r)&&!PE.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var c=Array(u),f=0;f<u;f++)c[f]=arguments[f+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:Xf,type:e,key:i,ref:s,props:o,_owner:j2.current}}function SF(e,t){return{$$typeof:Xf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function U2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xf}function wF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var OC=/\/+/g;function a1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wF(""+e.key):t.toString(36)}function vh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xf:case cF:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+a1(s,0):r,IC(o)?(n="",e!=null&&(n=e.replace(OC,"$&/")+"/"),vh(o,t,n,"",function(f){return f})):o!=null&&(U2(o)&&(o=SF(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(OC,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",IC(e))for(var u=0;u<e.length;u++){i=e[u];var c=r+a1(i,u);s+=vh(i,t,n,c,o)}else if(c=xF(e),typeof c=="function")for(e=c.call(e),u=0;!(i=e.next()).done;)i=i.value,c=r+a1(i,u++),s+=vh(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Tp(e,t,n){if(e==null)return e;var r=[],o=0;return vh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function CF(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 tr={current:null},yh={transition:null},_F={ReactCurrentDispatcher:tr,ReactCurrentBatchConfig:yh,ReactCurrentOwner:j2};Ye.Children={map:Tp,forEach:function(e,t,n){Tp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tp(e,function(){t++}),t},toArray:function(e){return Tp(e,function(t){return t})||[]},only:function(e){if(!U2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ye.Component=_u;Ye.Fragment=fF;Ye.Profiler=pF;Ye.PureComponent=V2;Ye.StrictMode=dF;Ye.Suspense=vF;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_F;Ye.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=CE({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=j2.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)EE.call(t,c)&&!PE.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:Xf,type:e.type,key:o,ref:i,props:r,_owner:s}};Ye.createContext=function(e){return e={$$typeof:mF,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hF,_context:e},e.Consumer=e};Ye.createElement=AE;Ye.createFactory=function(e){var t=AE.bind(null,e);return t.type=e,t};Ye.createRef=function(){return{current:null}};Ye.forwardRef=function(e){return{$$typeof:gF,render:e}};Ye.isValidElement=U2;Ye.lazy=function(e){return{$$typeof:bF,_payload:{_status:-1,_result:e},_init:CF}};Ye.memo=function(e,t){return{$$typeof:yF,type:e,compare:t===void 0?null:t}};Ye.startTransition=function(e){var t=yh.transition;yh.transition={};try{e()}finally{yh.transition=t}};Ye.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ye.useCallback=function(e,t){return tr.current.useCallback(e,t)};Ye.useContext=function(e){return tr.current.useContext(e)};Ye.useDebugValue=function(){};Ye.useDeferredValue=function(e){return tr.current.useDeferredValue(e)};Ye.useEffect=function(e,t){return tr.current.useEffect(e,t)};Ye.useId=function(){return tr.current.useId()};Ye.useImperativeHandle=function(e,t,n){return tr.current.useImperativeHandle(e,t,n)};Ye.useInsertionEffect=function(e,t){return tr.current.useInsertionEffect(e,t)};Ye.useLayoutEffect=function(e,t){return tr.current.useLayoutEffect(e,t)};Ye.useMemo=function(e,t){return tr.current.useMemo(e,t)};Ye.useReducer=function(e,t,n){return tr.current.useReducer(e,t,n)};Ye.useRef=function(e){return tr.current.useRef(e)};Ye.useState=function(e){return tr.current.useState(e)};Ye.useSyncExternalStore=function(e,t,n){return tr.current.useSyncExternalStore(e,t,n)};Ye.useTransition=function(){return tr.current.useTransition()};Ye.version="18.2.0";(function(e){e.exports=Ye})(C);const J=uF(C.exports),RC=lF({__proto__:null,default:J},[C.exports]);var by={},Qf={exports:{}},$r={},TE={exports:{}},IE={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(j,Y){var q=j.length;j.push(Y);e:for(;0<q;){var R=q-1>>>1,U=j[R];if(0<o(U,Y))j[R]=Y,j[q]=U,q=R;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Y=j[0],q=j.pop();if(q!==Y){j[0]=q;e:for(var R=0,U=j.length,se=U>>>1;R<se;){var ue=2*(R+1)-1,he=j[ue],me=ue+1,Pe=j[me];if(0>o(he,q))me<U&&0>o(Pe,he)?(j[R]=Pe,j[me]=q,R=me):(j[R]=he,j[ue]=q,R=ue);else if(me<U&&0>o(Pe,q))j[R]=Pe,j[me]=q,R=me;else break e}}return Y}function o(j,Y){var q=j.sortIndex-Y.sortIndex;return q!==0?q:j.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,v=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(j){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=j)r(f),Y.sortIndex=Y.expirationTime,t(c,Y);else break;Y=n(f)}}function P(j){if(x=!1,_(j),!y)if(n(c)!==null)y=!0,ae(I);else{var Y=n(f);Y!==null&&ke(P,Y.startTime-j)}}function I(j,Y){y=!1,x&&(x=!1,w(z),z=-1),v=!0;var q=m;try{for(_(Y),h=n(c);h!==null&&(!(h.expirationTime>Y)||j&&!te());){var R=h.callback;if(typeof R=="function"){h.callback=null,m=h.priorityLevel;var U=R(h.expirationTime<=Y);Y=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),_(Y)}else r(c);h=n(c)}if(h!==null)var se=!0;else{var ue=n(f);ue!==null&&ke(P,ue.startTime-Y),se=!1}return se}finally{h=null,m=q,v=!1}}var N=!1,L=null,z=-1,K=5,W=-1;function te(){return!(e.unstable_now()-W<K)}function be(){if(L!==null){var j=e.unstable_now();W=j;var Y=!0;try{Y=L(!0,j)}finally{Y?_e():(N=!1,L=null)}}else N=!1}var _e;if(typeof b=="function")_e=function(){b(be)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Ce=ye.port2;ye.port1.onmessage=be,_e=function(){Ce.postMessage(null)}}else _e=function(){E(be,0)};function ae(j){L=j,N||(N=!0,_e())}function ke(j,Y){z=E(function(){j(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,ae(I))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var Y=3;break;default:Y=m}var q=m;m=Y;try{return j()}finally{m=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var q=m;m=j;try{return Y()}finally{m=q}},e.unstable_scheduleCallback=function(j,Y,q){var R=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?R+q:R):q=R,j){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=q+U,j={id:p++,callback:Y,priorityLevel:j,startTime:q,expirationTime:U,sortIndex:-1},q>R?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(x?(w(z),z=-1):x=!0,ke(P,q-R))):(j.sortIndex=U,t(c,j),y||v||(y=!0,ae(I))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var Y=m;return function(){var q=m;m=Y;try{return j.apply(this,arguments)}finally{m=q}}}})(IE);(function(e){e.exports=IE})(TE);/**
|
|
* @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 OE=C.exports,Lr=TE.exports;function le(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 RE=new Set,of={};function Ws(e,t){lu(e,t),lu(e+"Capture",t)}function lu(e,t){for(of[e]=t,e=0;e<t.length;e++)RE.add(t[e])}var Wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xy=Object.prototype.hasOwnProperty,kF=/^[: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]*$/,MC={},NC={};function EF(e){return xy.call(NC,e)?!0:xy.call(MC,e)?!1:kF.test(e)?NC[e]=!0:(MC[e]=!0,!1)}function PF(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 AF(e,t,n,r){if(t===null||typeof t>"u"||PF(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 nr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){On[e]=new nr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];On[t]=new nr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new nr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new nr(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){On[e]=new nr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){On[e]=new nr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){On[e]=new nr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){On[e]=new nr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){On[e]=new nr(e,5,!1,e.toLowerCase(),null,!1,!1)});var H2=/[\-:]([a-z])/g;function G2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(H2,G2);On[t]=new nr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(H2,G2);On[t]=new nr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(H2,G2);On[t]=new nr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){On[e]=new nr(e,1,!1,e.toLowerCase(),null,!1,!1)});On.xlinkHref=new nr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){On[e]=new nr(e,1,!1,e.toLowerCase(),null,!0,!0)});function q2(e,t,n,r){var o=On.hasOwnProperty(t)?On[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(AF(t,n,o,r)&&(n=null),r||o===null?EF(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zi=OE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ip=Symbol.for("react.element"),Il=Symbol.for("react.portal"),Ol=Symbol.for("react.fragment"),K2=Symbol.for("react.strict_mode"),Sy=Symbol.for("react.profiler"),ME=Symbol.for("react.provider"),NE=Symbol.for("react.context"),Y2=Symbol.for("react.forward_ref"),wy=Symbol.for("react.suspense"),Cy=Symbol.for("react.suspense_list"),Z2=Symbol.for("react.memo"),ya=Symbol.for("react.lazy"),LE=Symbol.for("react.offscreen"),LC=Symbol.iterator;function uc(e){return e===null||typeof e!="object"?null:(e=LC&&e[LC]||e["@@iterator"],typeof e=="function"?e:null)}var Vt=Object.assign,s1;function kc(e){if(s1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);s1=t&&t[1]||""}return`
|
|
`+s1+e}var l1=!1;function u1(e,t){if(!e||l1)return"";l1=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
|
|
`),i=r.stack.split(`
|
|
`),s=o.length-1,u=i.length-1;1<=s&&0<=u&&o[s]!==i[u];)u--;for(;1<=s&&0<=u;s--,u--)if(o[s]!==i[u]){if(s!==1||u!==1)do if(s--,u--,0>u||o[s]!==i[u]){var c=`
|
|
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{l1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kc(e):""}function TF(e){switch(e.tag){case 5:return kc(e.type);case 16:return kc("Lazy");case 13:return kc("Suspense");case 19:return kc("SuspenseList");case 0:case 2:case 15:return e=u1(e.type,!1),e;case 11:return e=u1(e.type.render,!1),e;case 1:return e=u1(e.type,!0),e;default:return""}}function _y(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 Ol:return"Fragment";case Il:return"Portal";case Sy:return"Profiler";case K2:return"StrictMode";case wy:return"Suspense";case Cy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NE:return(e.displayName||"Context")+".Consumer";case ME:return(e._context.displayName||"Context")+".Provider";case Y2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z2:return t=e.displayName||null,t!==null?t:_y(e.type)||"Memo";case ya:t=e._payload,e=e._init;try{return _y(e(t))}catch{}}return null}function IF(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 _y(t);case 8:return t===K2?"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 Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function DE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OF(e){var t=DE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Op(e){e._valueTracker||(e._valueTracker=OF(e))}function FE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=DE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xh(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 ky(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function DC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wa(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 $E(e,t){t=t.checked,t!=null&&q2(e,"checked",t,!1)}function Ey(e,t){$E(e,t);var n=Wa(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")?Py(e,t.type,n):t.hasOwnProperty("defaultValue")&&Py(e,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Py(e,t,n){(t!=="number"||Xh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function ql(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Wa(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ay(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(le(91));return Vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $C(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(le(92));if(Ec(n)){if(1<n.length)throw Error(le(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wa(n)}}function BE(e,t){var n=Wa(t.value),r=Wa(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function BC(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zE(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ty(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rp,VE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rp=Rp||document.createElement("div"),Rp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function af(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RF=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){RF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function WE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function jE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=WE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var MF=Vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Iy(e,t){if(t){if(MF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(le(62))}}function Oy(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ry=null;function X2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var My=null,Kl=null,Yl=null;function zC(e){if(e=td(e)){if(typeof My!="function")throw Error(le(280));var t=e.stateNode;t&&(t=fm(t),My(e.stateNode,e.type,t))}}function UE(e){Kl?Yl?Yl.push(e):Yl=[e]:Kl=e}function HE(){if(Kl){var e=Kl,t=Yl;if(Yl=Kl=null,zC(e),t)for(e=0;e<t.length;e++)zC(t[e])}}function GE(e,t){return e(t)}function qE(){}var c1=!1;function KE(e,t,n){if(c1)return e(t,n);c1=!0;try{return GE(e,t,n)}finally{c1=!1,(Kl!==null||Yl!==null)&&(qE(),HE())}}function sf(e,t){var n=e.stateNode;if(n===null)return null;var r=fm(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(le(231,t,typeof n));return n}var Ny=!1;if(Wi)try{var cc={};Object.defineProperty(cc,"passive",{get:function(){Ny=!0}}),window.addEventListener("test",cc,cc),window.removeEventListener("test",cc,cc)}catch{Ny=!1}function NF(e,t,n,r,o,i,s,u,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Lc=!1,Qh=null,Jh=!1,Ly=null,LF={onError:function(e){Lc=!0,Qh=e}};function DF(e,t,n,r,o,i,s,u,c){Lc=!1,Qh=null,NF.apply(LF,arguments)}function FF(e,t,n,r,o,i,s,u,c){if(DF.apply(this,arguments),Lc){if(Lc){var f=Qh;Lc=!1,Qh=null}else throw Error(le(198));Jh||(Jh=!0,Ly=f)}}function js(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function YE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function VC(e){if(js(e)!==e)throw Error(le(188))}function $F(e){var t=e.alternate;if(!t){if(t=js(e),t===null)throw Error(le(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return VC(o),e;if(i===r)return VC(o),t;i=i.sibling}throw Error(le(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(le(189))}}if(n.alternate!==r)throw Error(le(190))}if(n.tag!==3)throw Error(le(188));return n.stateNode.current===n?e:t}function ZE(e){return e=$F(e),e!==null?XE(e):null}function XE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=XE(e);if(t!==null)return t;e=e.sibling}return null}var QE=Lr.unstable_scheduleCallback,WC=Lr.unstable_cancelCallback,BF=Lr.unstable_shouldYield,zF=Lr.unstable_requestPaint,tn=Lr.unstable_now,VF=Lr.unstable_getCurrentPriorityLevel,Q2=Lr.unstable_ImmediatePriority,JE=Lr.unstable_UserBlockingPriority,e0=Lr.unstable_NormalPriority,WF=Lr.unstable_LowPriority,eP=Lr.unstable_IdlePriority,sm=null,Xo=null;function jF(e){if(Xo&&typeof Xo.onCommitFiberRoot=="function")try{Xo.onCommitFiberRoot(sm,e,void 0,(e.current.flags&128)===128)}catch{}}var Po=Math.clz32?Math.clz32:GF,UF=Math.log,HF=Math.LN2;function GF(e){return e>>>=0,e===0?32:31-(UF(e)/HF|0)|0}var Mp=64,Np=4194304;function Pc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function t0(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~o;u!==0?r=Pc(u):(i&=s,i!==0&&(r=Pc(i)))}else s=n&~o,s!==0?r=Pc(s):i!==0&&(r=Pc(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Po(t),o=1<<n,r|=e[n],t&=~o;return r}function qF(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KF(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Po(i),u=1<<s,c=o[s];c===-1?((u&n)===0||(u&r)!==0)&&(o[s]=qF(u,t)):c<=t&&(e.expiredLanes|=u),i&=~u}}function Dy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tP(){var e=Mp;return Mp<<=1,(Mp&4194240)===0&&(Mp=64),e}function f1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Po(t),e[t]=n}function YF(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Po(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function J2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Po(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ht=0;function nP(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var rP,ex,oP,iP,aP,Fy=!1,Lp=[],Oa=null,Ra=null,Ma=null,lf=new Map,uf=new Map,Sa=[],ZF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jC(e,t){switch(e){case"focusin":case"focusout":Oa=null;break;case"dragenter":case"dragleave":Ra=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":lf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uf.delete(t.pointerId)}}function fc(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=td(t),t!==null&&ex(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function XF(e,t,n,r,o){switch(t){case"focusin":return Oa=fc(Oa,e,t,n,r,o),!0;case"dragenter":return Ra=fc(Ra,e,t,n,r,o),!0;case"mouseover":return Ma=fc(Ma,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lf.set(i,fc(lf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,uf.set(i,fc(uf.get(i)||null,e,t,n,r,o)),!0}return!1}function sP(e){var t=Cs(e.target);if(t!==null){var n=js(t);if(n!==null){if(t=n.tag,t===13){if(t=YE(n),t!==null){e.blockedOn=t,aP(e.priority,function(){oP(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$y(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ry=r,n.target.dispatchEvent(r),Ry=null}else return t=td(n),t!==null&&ex(t),e.blockedOn=n,!1;t.shift()}return!0}function UC(e,t,n){bh(e)&&n.delete(t)}function QF(){Fy=!1,Oa!==null&&bh(Oa)&&(Oa=null),Ra!==null&&bh(Ra)&&(Ra=null),Ma!==null&&bh(Ma)&&(Ma=null),lf.forEach(UC),uf.forEach(UC)}function dc(e,t){e.blockedOn===t&&(e.blockedOn=null,Fy||(Fy=!0,Lr.unstable_scheduleCallback(Lr.unstable_NormalPriority,QF)))}function cf(e){function t(o){return dc(o,e)}if(0<Lp.length){dc(Lp[0],e);for(var n=1;n<Lp.length;n++){var r=Lp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Oa!==null&&dc(Oa,e),Ra!==null&&dc(Ra,e),Ma!==null&&dc(Ma,e),lf.forEach(t),uf.forEach(t),n=0;n<Sa.length;n++)r=Sa[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sa.length&&(n=Sa[0],n.blockedOn===null);)sP(n),n.blockedOn===null&&Sa.shift()}var Zl=Zi.ReactCurrentBatchConfig,n0=!0;function JF(e,t,n,r){var o=ht,i=Zl.transition;Zl.transition=null;try{ht=1,tx(e,t,n,r)}finally{ht=o,Zl.transition=i}}function e$(e,t,n,r){var o=ht,i=Zl.transition;Zl.transition=null;try{ht=4,tx(e,t,n,r)}finally{ht=o,Zl.transition=i}}function tx(e,t,n,r){if(n0){var o=$y(e,t,n,r);if(o===null)S1(e,t,r,r0,n),jC(e,r);else if(XF(o,e,t,n,r))r.stopPropagation();else if(jC(e,r),t&4&&-1<ZF.indexOf(e)){for(;o!==null;){var i=td(o);if(i!==null&&rP(i),i=$y(e,t,n,r),i===null&&S1(e,t,r,r0,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else S1(e,t,r,null,n)}}var r0=null;function $y(e,t,n,r){if(r0=null,e=X2(r),e=Cs(e),e!==null)if(t=js(e),t===null)e=null;else if(n=t.tag,n===13){if(e=YE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return r0=e,null}function lP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(VF()){case Q2:return 1;case JE:return 4;case e0:case WF:return 16;case eP:return 536870912;default:return 16}default:return 16}}var ka=null,nx=null,xh=null;function uP(){if(xh)return xh;var e,t=nx,n=t.length,r,o="value"in ka?ka.value:ka.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return xh=o.slice(e,1<r?1-r:void 0)}function Sh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Dp(){return!0}function HC(){return!1}function Br(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Dp:HC,this.isPropagationStopped=HC,this}return Vt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Dp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Dp)},persist:function(){},isPersistent:Dp}),t}var ku={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rx=Br(ku),ed=Vt({},ku,{view:0,detail:0}),t$=Br(ed),d1,p1,pc,lm=Vt({},ed,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ox,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pc&&(pc&&e.type==="mousemove"?(d1=e.screenX-pc.screenX,p1=e.screenY-pc.screenY):p1=d1=0,pc=e),d1)},movementY:function(e){return"movementY"in e?e.movementY:p1}}),GC=Br(lm),n$=Vt({},lm,{dataTransfer:0}),r$=Br(n$),o$=Vt({},ed,{relatedTarget:0}),h1=Br(o$),i$=Vt({},ku,{animationName:0,elapsedTime:0,pseudoElement:0}),a$=Br(i$),s$=Vt({},ku,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),l$=Br(s$),u$=Vt({},ku,{data:0}),qC=Br(u$),c$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},d$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function p$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d$[e])?!!t[e]:!1}function ox(){return p$}var h$=Vt({},ed,{key:function(e){if(e.key){var t=c$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ox,charCode:function(e){return e.type==="keypress"?Sh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m$=Br(h$),g$=Vt({},lm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KC=Br(g$),v$=Vt({},ed,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ox}),y$=Br(v$),b$=Vt({},ku,{propertyName:0,elapsedTime:0,pseudoElement:0}),x$=Br(b$),S$=Vt({},lm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),w$=Br(S$),C$=[9,13,27,32],ix=Wi&&"CompositionEvent"in window,Dc=null;Wi&&"documentMode"in document&&(Dc=document.documentMode);var _$=Wi&&"TextEvent"in window&&!Dc,cP=Wi&&(!ix||Dc&&8<Dc&&11>=Dc),YC=String.fromCharCode(32),ZC=!1;function fP(e,t){switch(e){case"keyup":return C$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function k$(e,t){switch(e){case"compositionend":return dP(t);case"keypress":return t.which!==32?null:(ZC=!0,YC);case"textInput":return e=t.data,e===YC&&ZC?null:e;default:return null}}function E$(e,t){if(Rl)return e==="compositionend"||!ix&&fP(e,t)?(e=uP(),xh=nx=ka=null,Rl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cP&&t.locale!=="ko"?null:t.data;default:return null}}var P$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function XC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P$[e.type]:t==="textarea"}function pP(e,t,n,r){UE(r),t=o0(t,"onChange"),0<t.length&&(n=new rx("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fc=null,ff=null;function A$(e){_P(e,0)}function um(e){var t=Ll(e);if(FE(t))return e}function T$(e,t){if(e==="change")return t}var hP=!1;if(Wi){var m1;if(Wi){var g1="oninput"in document;if(!g1){var QC=document.createElement("div");QC.setAttribute("oninput","return;"),g1=typeof QC.oninput=="function"}m1=g1}else m1=!1;hP=m1&&(!document.documentMode||9<document.documentMode)}function JC(){Fc&&(Fc.detachEvent("onpropertychange",mP),ff=Fc=null)}function mP(e){if(e.propertyName==="value"&&um(ff)){var t=[];pP(t,ff,e,X2(e)),KE(A$,t)}}function I$(e,t,n){e==="focusin"?(JC(),Fc=t,ff=n,Fc.attachEvent("onpropertychange",mP)):e==="focusout"&&JC()}function O$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return um(ff)}function R$(e,t){if(e==="click")return um(t)}function M$(e,t){if(e==="input"||e==="change")return um(t)}function N$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oo=typeof Object.is=="function"?Object.is:N$;function df(e,t){if(Oo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!xy.call(t,o)||!Oo(e[o],t[o]))return!1}return!0}function e_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function t_(e,t){var n=e_(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e_(n)}}function gP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vP(){for(var e=window,t=Xh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xh(e.document)}return t}function ax(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function L$(e){var t=vP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gP(n.ownerDocument.documentElement,n)){if(r!==null&&ax(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=t_(n,i);var s=t_(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var D$=Wi&&"documentMode"in document&&11>=document.documentMode,Ml=null,By=null,$c=null,zy=!1;function n_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zy||Ml==null||Ml!==Xh(r)||(r=Ml,"selectionStart"in r&&ax(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$c&&df($c,r)||($c=r,r=o0(By,"onSelect"),0<r.length&&(t=new rx("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ml)))}function Fp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nl={animationend:Fp("Animation","AnimationEnd"),animationiteration:Fp("Animation","AnimationIteration"),animationstart:Fp("Animation","AnimationStart"),transitionend:Fp("Transition","TransitionEnd")},v1={},yP={};Wi&&(yP=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function cm(e){if(v1[e])return v1[e];if(!Nl[e])return e;var t=Nl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yP)return v1[e]=t[n];return e}var bP=cm("animationend"),xP=cm("animationiteration"),SP=cm("animationstart"),wP=cm("transitionend"),CP=new Map,r_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ya(e,t){CP.set(e,t),Ws(t,[e])}for(var y1=0;y1<r_.length;y1++){var b1=r_[y1],F$=b1.toLowerCase(),$$=b1[0].toUpperCase()+b1.slice(1);Ya(F$,"on"+$$)}Ya(bP,"onAnimationEnd");Ya(xP,"onAnimationIteration");Ya(SP,"onAnimationStart");Ya("dblclick","onDoubleClick");Ya("focusin","onFocus");Ya("focusout","onBlur");Ya(wP,"onTransitionEnd");lu("onMouseEnter",["mouseout","mouseover"]);lu("onMouseLeave",["mouseout","mouseover"]);lu("onPointerEnter",["pointerout","pointerover"]);lu("onPointerLeave",["pointerout","pointerover"]);Ws("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ws("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ws("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ws("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ws("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ws("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),B$=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ac));function o_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,FF(r,t,void 0,e),e.currentTarget=null}function _P(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var u=r[s],c=u.instance,f=u.currentTarget;if(u=u.listener,c!==i&&o.isPropagationStopped())break e;o_(o,u,f),i=c}else for(s=0;s<r.length;s++){if(u=r[s],c=u.instance,f=u.currentTarget,u=u.listener,c!==i&&o.isPropagationStopped())break e;o_(o,u,f),i=c}}}if(Jh)throw e=Ly,Jh=!1,Ly=null,e}function Tt(e,t){var n=t[Hy];n===void 0&&(n=t[Hy]=new Set);var r=e+"__bubble";n.has(r)||(kP(t,e,2,!1),n.add(r))}function x1(e,t,n){var r=0;t&&(r|=4),kP(n,e,r,t)}var $p="_reactListening"+Math.random().toString(36).slice(2);function pf(e){if(!e[$p]){e[$p]=!0,RE.forEach(function(n){n!=="selectionchange"&&(B$.has(n)||x1(n,!1,e),x1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$p]||(t[$p]=!0,x1("selectionchange",!1,t))}}function kP(e,t,n,r){switch(lP(t)){case 1:var o=JF;break;case 4:o=e$;break;default:o=tx}n=o.bind(null,t,n,e),o=void 0,!Ny||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function S1(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;u!==null;){if(s=Cs(u),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}u=u.parentNode}}r=r.return}KE(function(){var f=i,p=X2(n),h=[];e:{var m=CP.get(e);if(m!==void 0){var v=rx,y=e;switch(e){case"keypress":if(Sh(n)===0)break e;case"keydown":case"keyup":v=m$;break;case"focusin":y="focus",v=h1;break;case"focusout":y="blur",v=h1;break;case"beforeblur":case"afterblur":v=h1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=GC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=r$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=y$;break;case bP:case xP:case SP:v=a$;break;case wP:v=x$;break;case"scroll":v=t$;break;case"wheel":v=w$;break;case"copy":case"cut":case"paste":v=l$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=KC}var x=(t&4)!==0,E=!x&&e==="scroll",w=x?m!==null?m+"Capture":null:m;x=[];for(var b=f,_;b!==null;){_=b;var P=_.stateNode;if(_.tag===5&&P!==null&&(_=P,w!==null&&(P=sf(b,w),P!=null&&x.push(hf(b,P,_)))),E)break;b=b.return}0<x.length&&(m=new v(m,y,null,n,p),h.push({event:m,listeners:x}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==Ry&&(y=n.relatedTarget||n.fromElement)&&(Cs(y)||y[ji]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=f,y=y?Cs(y):null,y!==null&&(E=js(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=f),v!==y)){if(x=GC,P="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(x=KC,P="onPointerLeave",w="onPointerEnter",b="pointer"),E=v==null?m:Ll(v),_=y==null?m:Ll(y),m=new x(P,b+"leave",v,n,p),m.target=E,m.relatedTarget=_,P=null,Cs(p)===f&&(x=new x(w,b+"enter",y,n,p),x.target=_,x.relatedTarget=E,P=x),E=P,v&&y)t:{for(x=v,w=y,b=0,_=x;_;_=bl(_))b++;for(_=0,P=w;P;P=bl(P))_++;for(;0<b-_;)x=bl(x),b--;for(;0<_-b;)w=bl(w),_--;for(;b--;){if(x===w||w!==null&&x===w.alternate)break t;x=bl(x),w=bl(w)}x=null}else x=null;v!==null&&i_(h,m,v,x,!1),y!==null&&E!==null&&i_(h,E,y,x,!0)}}e:{if(m=f?Ll(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var I=T$;else if(XC(m))if(hP)I=M$;else{I=O$;var N=I$}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=R$);if(I&&(I=I(e,f))){pP(h,I,n,p);break e}N&&N(e,m,f),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Py(m,"number",m.value)}switch(N=f?Ll(f):window,e){case"focusin":(XC(N)||N.contentEditable==="true")&&(Ml=N,By=f,$c=null);break;case"focusout":$c=By=Ml=null;break;case"mousedown":zy=!0;break;case"contextmenu":case"mouseup":case"dragend":zy=!1,n_(h,n,p);break;case"selectionchange":if(D$)break;case"keydown":case"keyup":n_(h,n,p)}var L;if(ix)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Rl?fP(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(cP&&n.locale!=="ko"&&(Rl||z!=="onCompositionStart"?z==="onCompositionEnd"&&Rl&&(L=uP()):(ka=p,nx="value"in ka?ka.value:ka.textContent,Rl=!0)),N=o0(f,z),0<N.length&&(z=new qC(z,e,null,n,p),h.push({event:z,listeners:N}),L?z.data=L:(L=dP(n),L!==null&&(z.data=L)))),(L=_$?k$(e,n):E$(e,n))&&(f=o0(f,"onBeforeInput"),0<f.length&&(p=new qC("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=L))}_P(h,t)})}function hf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function o0(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=sf(e,n),i!=null&&r.unshift(hf(e,i,o)),i=sf(e,t),i!=null&&r.push(hf(e,i,o))),e=e.return}return r}function bl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function i_(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var u=n,c=u.alternate,f=u.stateNode;if(c!==null&&c===r)break;u.tag===5&&f!==null&&(u=f,o?(c=sf(n,i),c!=null&&s.unshift(hf(n,c,u))):o||(c=sf(n,i),c!=null&&s.push(hf(n,c,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var z$=/\r\n?/g,V$=/\u0000|\uFFFD/g;function a_(e){return(typeof e=="string"?e:""+e).replace(z$,`
|
|
`).replace(V$,"")}function Bp(e,t,n){if(t=a_(t),a_(e)!==t&&n)throw Error(le(425))}function i0(){}var Vy=null,Wy=null;function jy(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 Uy=typeof setTimeout=="function"?setTimeout:void 0,W$=typeof clearTimeout=="function"?clearTimeout:void 0,s_=typeof Promise=="function"?Promise:void 0,j$=typeof queueMicrotask=="function"?queueMicrotask:typeof s_<"u"?function(e){return s_.resolve(null).then(e).catch(U$)}:Uy;function U$(e){setTimeout(function(){throw e})}function w1(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),cf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);cf(t)}function Na(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 l_(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 Eu=Math.random().toString(36).slice(2),Go="__reactFiber$"+Eu,mf="__reactProps$"+Eu,ji="__reactContainer$"+Eu,Hy="__reactEvents$"+Eu,H$="__reactListeners$"+Eu,G$="__reactHandles$"+Eu;function Cs(e){var t=e[Go];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ji]||n[Go]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=l_(e);e!==null;){if(n=e[Go])return n;e=l_(e)}return t}e=n,n=e.parentNode}return null}function td(e){return e=e[Go]||e[ji],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ll(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function fm(e){return e[mf]||null}var Gy=[],Dl=-1;function Za(e){return{current:e}}function Ot(e){0>Dl||(e.current=Gy[Dl],Gy[Dl]=null,Dl--)}function Pt(e,t){Dl++,Gy[Dl]=e.current,e.current=t}var ja={},Wn=Za(ja),hr=Za(!1),Ls=ja;function uu(e,t){var n=e.type.contextTypes;if(!n)return ja;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mr(e){return e=e.childContextTypes,e!=null}function a0(){Ot(hr),Ot(Wn)}function u_(e,t,n){if(Wn.current!==ja)throw Error(le(168));Pt(Wn,t),Pt(hr,n)}function EP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(le(108,IF(e)||"Unknown",o));return Vt({},n,r)}function s0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ja,Ls=Wn.current,Pt(Wn,e),Pt(hr,hr.current),!0}function c_(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=EP(e,t,Ls),r.__reactInternalMemoizedMergedChildContext=e,Ot(hr),Ot(Wn),Pt(Wn,e)):Ot(hr),Pt(hr,n)}var Ii=null,dm=!1,C1=!1;function PP(e){Ii===null?Ii=[e]:Ii.push(e)}function q$(e){dm=!0,PP(e)}function Xa(){if(!C1&&Ii!==null){C1=!0;var e=0,t=ht;try{var n=Ii;for(ht=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ii=null,dm=!1}catch(o){throw Ii!==null&&(Ii=Ii.slice(e+1)),QE(Q2,Xa),o}finally{ht=t,C1=!1}}return null}var Fl=[],$l=0,l0=null,u0=0,Xr=[],Qr=0,Ds=null,Ni=1,Li="";function ds(e,t){Fl[$l++]=u0,Fl[$l++]=l0,l0=e,u0=t}function AP(e,t,n){Xr[Qr++]=Ni,Xr[Qr++]=Li,Xr[Qr++]=Ds,Ds=e;var r=Ni;e=Li;var o=32-Po(r)-1;r&=~(1<<o),n+=1;var i=32-Po(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ni=1<<32-Po(t)+o|n<<o|r,Li=i+e}else Ni=1<<i|n<<o|r,Li=e}function sx(e){e.return!==null&&(ds(e,1),AP(e,1,0))}function lx(e){for(;e===l0;)l0=Fl[--$l],Fl[$l]=null,u0=Fl[--$l],Fl[$l]=null;for(;e===Ds;)Ds=Xr[--Qr],Xr[Qr]=null,Li=Xr[--Qr],Xr[Qr]=null,Ni=Xr[--Qr],Xr[Qr]=null}var Mr=null,Rr=null,Nt=!1,ko=null;function TP(e,t){var n=Jr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function f_(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Mr=e,Rr=Na(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mr=e,Rr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ds!==null?{id:Ni,overflow:Li}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Mr=e,Rr=null,!0):!1;default:return!1}}function qy(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ky(e){if(Nt){var t=Rr;if(t){var n=t;if(!f_(e,t)){if(qy(e))throw Error(le(418));t=Na(n.nextSibling);var r=Mr;t&&f_(e,t)?TP(r,n):(e.flags=e.flags&-4097|2,Nt=!1,Mr=e)}}else{if(qy(e))throw Error(le(418));e.flags=e.flags&-4097|2,Nt=!1,Mr=e}}}function d_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mr=e}function zp(e){if(e!==Mr)return!1;if(!Nt)return d_(e),Nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jy(e.type,e.memoizedProps)),t&&(t=Rr)){if(qy(e))throw IP(),Error(le(418));for(;t;)TP(e,t),t=Na(t.nextSibling)}if(d_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(le(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rr=Na(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rr=null}}else Rr=Mr?Na(e.stateNode.nextSibling):null;return!0}function IP(){for(var e=Rr;e;)e=Na(e.nextSibling)}function cu(){Rr=Mr=null,Nt=!1}function ux(e){ko===null?ko=[e]:ko.push(e)}var K$=Zi.ReactCurrentBatchConfig;function wo(e,t){if(e&&e.defaultProps){t=Vt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var c0=Za(null),f0=null,Bl=null,cx=null;function fx(){cx=Bl=f0=null}function dx(e){var t=c0.current;Ot(c0),e._currentValue=t}function Yy(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xl(e,t){f0=e,cx=Bl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(dr=!0),e.firstContext=null)}function no(e){var t=e._currentValue;if(cx!==e)if(e={context:e,memoizedValue:t,next:null},Bl===null){if(f0===null)throw Error(le(308));Bl=e,f0.dependencies={lanes:0,firstContext:e}}else Bl=Bl.next=e;return t}var _s=null;function px(e){_s===null?_s=[e]:_s.push(e)}function OP(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,px(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ui(e,r)}function Ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ba=!1;function hx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Je&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ui(e,n)}return o=r.interleaved,o===null?(t.next=t,px(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ui(e,n)}function wh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,J2(e,n)}}function p_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function d0(e,t,n,r){var o=e.updateQueue;ba=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==s&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,u=i;do{var m=u.lane,v=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,x=u;switch(m=t,v=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){h=y.call(v,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y=="function"?y.call(v,h,m):y,m==null)break e;h=Vt({},h,m);break e;case 2:ba=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);$s|=s,e.lanes=s,e.memoizedState=h}}function h_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(le(191,o));o.call(r)}}}var MP=new OE.Component().refs;function Zy(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Vt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pm={isMounted:function(e){return(e=e._reactInternals)?js(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jn(),o=Fa(e),i=Fi(r,o);i.payload=t,n!=null&&(i.callback=n),t=La(e,i,o),t!==null&&(Ao(t,e,o,r),wh(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jn(),o=Fa(e),i=Fi(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=La(e,i,o),t!==null&&(Ao(t,e,o,r),wh(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jn(),r=Fa(e),o=Fi(n,r);o.tag=2,t!=null&&(o.callback=t),t=La(e,o,r),t!==null&&(Ao(t,e,r,n),wh(t,e,r))}};function m_(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!df(n,r)||!df(o,i):!0}function NP(e,t,n){var r=!1,o=ja,i=t.contextType;return typeof i=="object"&&i!==null?i=no(i):(o=mr(t)?Ls:Wn.current,r=t.contextTypes,i=(r=r!=null)?uu(e,o):ja),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function g_(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pm.enqueueReplaceState(t,t.state,null)}function Xy(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=MP,hx(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=no(i):(i=mr(t)?Ls:Wn.current,o.context=uu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Zy(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&pm.enqueueReplaceState(o,o.state,null),d0(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function hc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(le(309));var r=n.stateNode}if(!r)throw Error(le(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var u=o.refs;u===MP&&(u=o.refs={}),s===null?delete u[i]:u[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(le(284));if(!n._owner)throw Error(le(290,e))}return e}function Vp(e,t){throw e=Object.prototype.toString.call(t),Error(le(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function v_(e){var t=e._init;return t(e._payload)}function LP(e){function t(w,b){if(e){var _=w.deletions;_===null?(w.deletions=[b],w.flags|=16):_.push(b)}}function n(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function r(w,b){for(w=new Map;b!==null;)b.key!==null?w.set(b.key,b):w.set(b.index,b),b=b.sibling;return w}function o(w,b){return w=$a(w,b),w.index=0,w.sibling=null,w}function i(w,b,_){return w.index=_,e?(_=w.alternate,_!==null?(_=_.index,_<b?(w.flags|=2,b):_):(w.flags|=2,b)):(w.flags|=1048576,b)}function s(w){return e&&w.alternate===null&&(w.flags|=2),w}function u(w,b,_,P){return b===null||b.tag!==6?(b=I1(_,w.mode,P),b.return=w,b):(b=o(b,_),b.return=w,b)}function c(w,b,_,P){var I=_.type;return I===Ol?p(w,b,_.props.children,P,_.key):b!==null&&(b.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ya&&v_(I)===b.type)?(P=o(b,_.props),P.ref=hc(w,b,_),P.return=w,P):(P=Ah(_.type,_.key,_.props,null,w.mode,P),P.ref=hc(w,b,_),P.return=w,P)}function f(w,b,_,P){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=O1(_,w.mode,P),b.return=w,b):(b=o(b,_.children||[]),b.return=w,b)}function p(w,b,_,P,I){return b===null||b.tag!==7?(b=Is(_,w.mode,P,I),b.return=w,b):(b=o(b,_),b.return=w,b)}function h(w,b,_){if(typeof b=="string"&&b!==""||typeof b=="number")return b=I1(""+b,w.mode,_),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ip:return _=Ah(b.type,b.key,b.props,null,w.mode,_),_.ref=hc(w,null,b),_.return=w,_;case Il:return b=O1(b,w.mode,_),b.return=w,b;case ya:var P=b._init;return h(w,P(b._payload),_)}if(Ec(b)||uc(b))return b=Is(b,w.mode,_,null),b.return=w,b;Vp(w,b)}return null}function m(w,b,_,P){var I=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return I!==null?null:u(w,b,""+_,P);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ip:return _.key===I?c(w,b,_,P):null;case Il:return _.key===I?f(w,b,_,P):null;case ya:return I=_._init,m(w,b,I(_._payload),P)}if(Ec(_)||uc(_))return I!==null?null:p(w,b,_,P,null);Vp(w,_)}return null}function v(w,b,_,P,I){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(_)||null,u(b,w,""+P,I);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Ip:return w=w.get(P.key===null?_:P.key)||null,c(b,w,P,I);case Il:return w=w.get(P.key===null?_:P.key)||null,f(b,w,P,I);case ya:var N=P._init;return v(w,b,_,N(P._payload),I)}if(Ec(P)||uc(P))return w=w.get(_)||null,p(b,w,P,I,null);Vp(b,P)}return null}function y(w,b,_,P){for(var I=null,N=null,L=b,z=b=0,K=null;L!==null&&z<_.length;z++){L.index>z?(K=L,L=null):K=L.sibling;var W=m(w,L,_[z],P);if(W===null){L===null&&(L=K);break}e&&L&&W.alternate===null&&t(w,L),b=i(W,b,z),N===null?I=W:N.sibling=W,N=W,L=K}if(z===_.length)return n(w,L),Nt&&ds(w,z),I;if(L===null){for(;z<_.length;z++)L=h(w,_[z],P),L!==null&&(b=i(L,b,z),N===null?I=L:N.sibling=L,N=L);return Nt&&ds(w,z),I}for(L=r(w,L);z<_.length;z++)K=v(L,w,z,_[z],P),K!==null&&(e&&K.alternate!==null&&L.delete(K.key===null?z:K.key),b=i(K,b,z),N===null?I=K:N.sibling=K,N=K);return e&&L.forEach(function(te){return t(w,te)}),Nt&&ds(w,z),I}function x(w,b,_,P){var I=uc(_);if(typeof I!="function")throw Error(le(150));if(_=I.call(_),_==null)throw Error(le(151));for(var N=I=null,L=b,z=b=0,K=null,W=_.next();L!==null&&!W.done;z++,W=_.next()){L.index>z?(K=L,L=null):K=L.sibling;var te=m(w,L,W.value,P);if(te===null){L===null&&(L=K);break}e&&L&&te.alternate===null&&t(w,L),b=i(te,b,z),N===null?I=te:N.sibling=te,N=te,L=K}if(W.done)return n(w,L),Nt&&ds(w,z),I;if(L===null){for(;!W.done;z++,W=_.next())W=h(w,W.value,P),W!==null&&(b=i(W,b,z),N===null?I=W:N.sibling=W,N=W);return Nt&&ds(w,z),I}for(L=r(w,L);!W.done;z++,W=_.next())W=v(L,w,z,W.value,P),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?z:W.key),b=i(W,b,z),N===null?I=W:N.sibling=W,N=W);return e&&L.forEach(function(be){return t(w,be)}),Nt&&ds(w,z),I}function E(w,b,_,P){if(typeof _=="object"&&_!==null&&_.type===Ol&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ip:e:{for(var I=_.key,N=b;N!==null;){if(N.key===I){if(I=_.type,I===Ol){if(N.tag===7){n(w,N.sibling),b=o(N,_.props.children),b.return=w,w=b;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ya&&v_(I)===N.type){n(w,N.sibling),b=o(N,_.props),b.ref=hc(w,N,_),b.return=w,w=b;break e}n(w,N);break}else t(w,N);N=N.sibling}_.type===Ol?(b=Is(_.props.children,w.mode,P,_.key),b.return=w,w=b):(P=Ah(_.type,_.key,_.props,null,w.mode,P),P.ref=hc(w,b,_),P.return=w,w=P)}return s(w);case Il:e:{for(N=_.key;b!==null;){if(b.key===N)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(w,b.sibling),b=o(b,_.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=O1(_,w.mode,P),b.return=w,w=b}return s(w);case ya:return N=_._init,E(w,b,N(_._payload),P)}if(Ec(_))return y(w,b,_,P);if(uc(_))return x(w,b,_,P);Vp(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,_),b.return=w,w=b):(n(w,b),b=I1(_,w.mode,P),b.return=w,w=b),s(w)):n(w,b)}return E}var fu=LP(!0),DP=LP(!1),nd={},Qo=Za(nd),gf=Za(nd),vf=Za(nd);function ks(e){if(e===nd)throw Error(le(174));return e}function mx(e,t){switch(Pt(vf,t),Pt(gf,e),Pt(Qo,nd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ty(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ty(t,e)}Ot(Qo),Pt(Qo,t)}function du(){Ot(Qo),Ot(gf),Ot(vf)}function FP(e){ks(vf.current);var t=ks(Qo.current),n=Ty(t,e.type);t!==n&&(Pt(gf,e),Pt(Qo,n))}function gx(e){gf.current===e&&(Ot(Qo),Ot(gf))}var Bt=Za(0);function p0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _1=[];function vx(){for(var e=0;e<_1.length;e++)_1[e]._workInProgressVersionPrimary=null;_1.length=0}var Ch=Zi.ReactCurrentDispatcher,k1=Zi.ReactCurrentBatchConfig,Fs=0,zt=null,fn=null,yn=null,h0=!1,Bc=!1,yf=0,Y$=0;function Dn(){throw Error(le(321))}function yx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oo(e[n],t[n]))return!1;return!0}function bx(e,t,n,r,o,i){if(Fs=i,zt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ch.current=e===null||e.memoizedState===null?J$:eB,e=n(r,o),Bc){i=0;do{if(Bc=!1,yf=0,25<=i)throw Error(le(301));i+=1,yn=fn=null,t.updateQueue=null,Ch.current=tB,e=n(r,o)}while(Bc)}if(Ch.current=m0,t=fn!==null&&fn.next!==null,Fs=0,yn=fn=zt=null,h0=!1,t)throw Error(le(300));return e}function xx(){var e=yf!==0;return yf=0,e}function Wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?zt.memoizedState=yn=e:yn=yn.next=e,yn}function ro(){if(fn===null){var e=zt.alternate;e=e!==null?e.memoizedState:null}else e=fn.next;var t=yn===null?zt.memoizedState:yn.next;if(t!==null)yn=t,fn=e;else{if(e===null)throw Error(le(310));fn=e,e={memoizedState:fn.memoizedState,baseState:fn.baseState,baseQueue:fn.baseQueue,queue:fn.queue,next:null},yn===null?zt.memoizedState=yn=e:yn=yn.next=e}return yn}function bf(e,t){return typeof t=="function"?t(e):t}function E1(e){var t=ro(),n=t.queue;if(n===null)throw Error(le(311));n.lastRenderedReducer=e;var r=fn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=s=null,c=null,f=i;do{var p=f.lane;if((Fs&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(u=c=h,s=r):c=c.next=h,zt.lanes|=p,$s|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=u,Oo(r,t.memoizedState)||(dr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,zt.lanes|=i,$s|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function P1(e){var t=ro(),n=t.queue;if(n===null)throw Error(le(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Oo(i,t.memoizedState)||(dr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $P(){}function BP(e,t){var n=zt,r=ro(),o=t(),i=!Oo(r.memoizedState,o);if(i&&(r.memoizedState=o,dr=!0),r=r.queue,Sx(WP.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||yn!==null&&yn.memoizedState.tag&1){if(n.flags|=2048,xf(9,VP.bind(null,n,r,o,t),void 0,null),bn===null)throw Error(le(349));(Fs&30)!==0||zP(n,t,o)}return o}function zP(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function VP(e,t,n,r){t.value=n,t.getSnapshot=r,jP(t)&&UP(e)}function WP(e,t,n){return n(function(){jP(t)&&UP(e)})}function jP(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oo(e,n)}catch{return!0}}function UP(e){var t=Ui(e,1);t!==null&&Ao(t,e,1,-1)}function y_(e){var t=Wo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bf,lastRenderedState:e},t.queue=e,e=e.dispatch=Q$.bind(null,zt,e),[t.memoizedState,e]}function xf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function HP(){return ro().memoizedState}function _h(e,t,n,r){var o=Wo();zt.flags|=e,o.memoizedState=xf(1|t,n,void 0,r===void 0?null:r)}function hm(e,t,n,r){var o=ro();r=r===void 0?null:r;var i=void 0;if(fn!==null){var s=fn.memoizedState;if(i=s.destroy,r!==null&&yx(r,s.deps)){o.memoizedState=xf(t,n,i,r);return}}zt.flags|=e,o.memoizedState=xf(1|t,n,i,r)}function b_(e,t){return _h(8390656,8,e,t)}function Sx(e,t){return hm(2048,8,e,t)}function GP(e,t){return hm(4,2,e,t)}function qP(e,t){return hm(4,4,e,t)}function KP(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function YP(e,t,n){return n=n!=null?n.concat([e]):null,hm(4,4,KP.bind(null,t,e),n)}function wx(){}function ZP(e,t){var n=ro();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function XP(e,t){var n=ro();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function QP(e,t,n){return(Fs&21)===0?(e.baseState&&(e.baseState=!1,dr=!0),e.memoizedState=n):(Oo(n,t)||(n=tP(),zt.lanes|=n,$s|=n,e.baseState=!0),t)}function Z$(e,t){var n=ht;ht=n!==0&&4>n?n:4,e(!0);var r=k1.transition;k1.transition={};try{e(!1),t()}finally{ht=n,k1.transition=r}}function JP(){return ro().memoizedState}function X$(e,t,n){var r=Fa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eA(e))tA(t,n);else if(n=OP(e,t,n,r),n!==null){var o=Jn();Ao(n,e,r,o),nA(n,t,r)}}function Q$(e,t,n){var r=Fa(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eA(e))tA(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,Oo(u,s)){var c=t.interleaved;c===null?(o.next=o,px(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=OP(e,t,o,r),n!==null&&(o=Jn(),Ao(n,e,r,o),nA(n,t,r))}}function eA(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function tA(e,t){Bc=h0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nA(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,J2(e,n)}}var m0={readContext:no,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},J$={readContext:no,useCallback:function(e,t){return Wo().memoizedState=[e,t===void 0?null:t],e},useContext:no,useEffect:b_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_h(4194308,4,KP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=Wo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=X$.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=Wo();return e={current:e},t.memoizedState=e},useState:y_,useDebugValue:wx,useDeferredValue:function(e){return Wo().memoizedState=e},useTransition:function(){var e=y_(!1),t=e[0];return e=Z$.bind(null,e[1]),Wo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,o=Wo();if(Nt){if(n===void 0)throw Error(le(407));n=n()}else{if(n=t(),bn===null)throw Error(le(349));(Fs&30)!==0||zP(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,b_(WP.bind(null,r,i,e),[e]),r.flags|=2048,xf(9,VP.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wo(),t=bn.identifierPrefix;if(Nt){var n=Li,r=Ni;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Y$++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eB={readContext:no,useCallback:ZP,useContext:no,useEffect:Sx,useImperativeHandle:YP,useInsertionEffect:GP,useLayoutEffect:qP,useMemo:XP,useReducer:E1,useRef:HP,useState:function(){return E1(bf)},useDebugValue:wx,useDeferredValue:function(e){var t=ro();return QP(t,fn.memoizedState,e)},useTransition:function(){var e=E1(bf)[0],t=ro().memoizedState;return[e,t]},useMutableSource:$P,useSyncExternalStore:BP,useId:JP,unstable_isNewReconciler:!1},tB={readContext:no,useCallback:ZP,useContext:no,useEffect:Sx,useImperativeHandle:YP,useInsertionEffect:GP,useLayoutEffect:qP,useMemo:XP,useReducer:P1,useRef:HP,useState:function(){return P1(bf)},useDebugValue:wx,useDeferredValue:function(e){var t=ro();return fn===null?t.memoizedState=e:QP(t,fn.memoizedState,e)},useTransition:function(){var e=P1(bf)[0],t=ro().memoizedState;return[e,t]},useMutableSource:$P,useSyncExternalStore:BP,useId:JP,unstable_isNewReconciler:!1};function pu(e,t){try{var n="",r=t;do n+=TF(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function A1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qy(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nB=typeof WeakMap=="function"?WeakMap:Map;function rA(e,t,n){n=Fi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){v0||(v0=!0,lb=r),Qy(e,t)},n}function oA(e,t,n){n=Fi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Qy(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qy(e,t),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function x_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nB;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=gB.bind(null,e,t,n),t.then(e,e))}function S_(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 w_(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Fi(-1,1),t.tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var rB=Zi.ReactCurrentOwner,dr=!1;function Qn(e,t,n,r){t.child=e===null?DP(t,null,n,r):fu(t,e.child,n,r)}function C_(e,t,n,r,o){n=n.render;var i=t.ref;return Xl(t,o),r=bx(e,t,n,r,i,o),n=xx(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hi(e,t,o)):(Nt&&n&&sx(t),t.flags|=1,Qn(e,t,r,o),t.child)}function __(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Ix(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,iA(e,t,i,r,o)):(e=Ah(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:df,n(s,r)&&e.ref===t.ref)return Hi(e,t,o)}return t.flags|=1,e=$a(i,r),e.ref=t.ref,e.return=t,t.child=e}function iA(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(df(i,r)&&e.ref===t.ref)if(dr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(dr=!0);else return t.lanes=e.lanes,Hi(e,t,o)}return Jy(e,t,n,r,o)}function aA(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pt(Vl,Or),Or|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pt(Vl,Or),Or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Pt(Vl,Or),Or|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Pt(Vl,Or),Or|=r;return Qn(e,t,o,n),t.child}function sA(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jy(e,t,n,r,o){var i=mr(n)?Ls:Wn.current;return i=uu(t,i),Xl(t,o),n=bx(e,t,n,r,i,o),r=xx(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hi(e,t,o)):(Nt&&r&&sx(t),t.flags|=1,Qn(e,t,n,o),t.child)}function k_(e,t,n,r,o){if(mr(n)){var i=!0;s0(t)}else i=!1;if(Xl(t,o),t.stateNode===null)kh(e,t),NP(t,n,r),Xy(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=no(f):(f=mr(n)?Ls:Wn.current,f=uu(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||c!==f)&&g_(t,s,r,f),ba=!1;var m=t.memoizedState;s.state=m,d0(t,r,s,o),c=t.memoizedState,u!==r||m!==c||hr.current||ba?(typeof p=="function"&&(Zy(t,n,p,r),c=t.memoizedState),(u=ba||m_(t,n,u,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,RP(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:wo(t.type,u),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=no(c):(c=mr(n)?Ls:Wn.current,c=uu(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==h||m!==c)&&g_(t,s,r,c),ba=!1,m=t.memoizedState,s.state=m,d0(t,r,s,o);var y=t.memoizedState;u!==h||m!==y||hr.current||ba?(typeof v=="function"&&(Zy(t,n,v,r),y=t.memoizedState),(f=ba||m_(t,n,f,r,m,y,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=c,r=f):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return eb(e,t,n,r,i,o)}function eb(e,t,n,r,o,i){sA(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&c_(t,n,!1),Hi(e,t,i);r=t.stateNode,rB.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=fu(t,e.child,null,i),t.child=fu(t,null,u,i)):Qn(e,t,u,i),t.memoizedState=r.state,o&&c_(t,n,!0),t.child}function lA(e){var t=e.stateNode;t.pendingContext?u_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&u_(e,t.context,!1),mx(e,t.containerInfo)}function E_(e,t,n,r,o){return cu(),ux(o),t.flags|=256,Qn(e,t,n,r),t.child}var tb={dehydrated:null,treeContext:null,retryLane:0};function nb(e){return{baseLanes:e,cachePool:null,transitions:null}}function uA(e,t,n){var r=t.pendingProps,o=Bt.current,i=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Pt(Bt,o&1),e===null)return Ky(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=vm(s,r,0,null),e=Is(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=nb(n),t.memoizedState=tb,e):Cx(t,s));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return oB(e,t,s,r,u,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,u=o.sibling;var c={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=$a(o,c),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=$a(u,i):(i=Is(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?nb(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=tb,r}return i=e.child,e=i.sibling,r=$a(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Cx(e,t){return t=vm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wp(e,t,n,r){return r!==null&&ux(r),fu(t,e.child,null,n),e=Cx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oB(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=A1(Error(le(422))),Wp(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=vm({mode:"visible",children:r.children},o,0,null),i=Is(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&fu(t,e.child,null,s),t.child.memoizedState=nb(s),t.memoizedState=tb,i);if((t.mode&1)===0)return Wp(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(le(419)),r=A1(i,r,void 0),Wp(e,t,s,r)}if(u=(s&e.childLanes)!==0,dr||u){if(r=bn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ui(e,o),Ao(r,e,o,-1))}return Tx(),r=A1(Error(le(421))),Wp(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=vB.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Rr=Na(o.nextSibling),Mr=t,Nt=!0,ko=null,e!==null&&(Xr[Qr++]=Ni,Xr[Qr++]=Li,Xr[Qr++]=Ds,Ni=e.id,Li=e.overflow,Ds=t),t=Cx(t,r.children),t.flags|=4096,t)}function P_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yy(e.return,t,n)}function T1(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function cA(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Qn(e,t,r.children,n),r=Bt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P_(e,n,t);else if(e.tag===19)P_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pt(Bt,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&p0(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),T1(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&p0(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}T1(t,!0,n,null,i);break;case"together":T1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kh(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(le(153));if(t.child!==null){for(e=t.child,n=$a(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$a(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iB(e,t,n){switch(t.tag){case 3:lA(t),cu();break;case 5:FP(t);break;case 1:mr(t.type)&&s0(t);break;case 4:mx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Pt(c0,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pt(Bt,Bt.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?uA(e,t,n):(Pt(Bt,Bt.current&1),e=Hi(e,t,n),e!==null?e.sibling:null);Pt(Bt,Bt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return cA(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Pt(Bt,Bt.current),r)break;return null;case 22:case 23:return t.lanes=0,aA(e,t,n)}return Hi(e,t,n)}var fA,rb,dA,pA;fA=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};rb=function(){};dA=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ks(Qo.current);var i=null;switch(n){case"input":o=ky(e,o),r=ky(e,r),i=[];break;case"select":o=Vt({},o,{value:void 0}),r=Vt({},r,{value:void 0}),i=[];break;case"textarea":o=Ay(e,o),r=Ay(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=i0)}Iy(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var u=o[f];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(of.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(u=o?.[f],r.hasOwnProperty(f)&&c!==u&&(c!=null||u!=null))if(f==="style")if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(of.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&Tt("scroll",e),i||u===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};pA=function(e,t,n,r){n!==r&&(t.flags|=4)};function mc(e,t){if(!Nt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aB(e,t,n){var r=t.pendingProps;switch(lx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fn(t),null;case 1:return mr(t.type)&&a0(),Fn(t),null;case 3:return r=t.stateNode,du(),Ot(hr),Ot(Wn),vx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ko!==null&&(fb(ko),ko=null))),rb(e,t),Fn(t),null;case 5:gx(t);var o=ks(vf.current);if(n=t.type,e!==null&&t.stateNode!=null)dA(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(le(166));return Fn(t),null}if(e=ks(Qo.current),zp(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Go]=t,r[mf]=i,e=(t.mode&1)!==0,n){case"dialog":Tt("cancel",r),Tt("close",r);break;case"iframe":case"object":case"embed":Tt("load",r);break;case"video":case"audio":for(o=0;o<Ac.length;o++)Tt(Ac[o],r);break;case"source":Tt("error",r);break;case"img":case"image":case"link":Tt("error",r),Tt("load",r);break;case"details":Tt("toggle",r);break;case"input":DC(r,i),Tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Tt("invalid",r);break;case"textarea":$C(r,i),Tt("invalid",r)}Iy(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var u=i[s];s==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&Bp(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&Bp(r.textContent,u,e),o=["children",""+u]):of.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&Tt("scroll",r)}switch(n){case"input":Op(r),FC(r,i,!0);break;case"textarea":Op(r),BC(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=i0)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Go]=t,e[mf]=r,fA(e,t,!1,!1),t.stateNode=e;e:{switch(s=Oy(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),o=r;break;case"iframe":case"object":case"embed":Tt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ac.length;o++)Tt(Ac[o],e);o=r;break;case"source":Tt("error",e),o=r;break;case"img":case"image":case"link":Tt("error",e),Tt("load",e),o=r;break;case"details":Tt("toggle",e),o=r;break;case"input":DC(e,r),o=ky(e,r),Tt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Vt({},r,{value:void 0}),Tt("invalid",e);break;case"textarea":$C(e,r),o=Ay(e,r),Tt("invalid",e);break;default:o=r}Iy(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var c=u[i];i==="style"?jE(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&VE(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&af(e,c):typeof c=="number"&&af(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(of.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Tt("scroll",e):c!=null&&q2(e,i,c,s))}switch(n){case"input":Op(e),FC(e,r,!1);break;case"textarea":Op(e),BC(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wa(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ql(e,!!r.multiple,i,!1):r.defaultValue!=null&&ql(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=i0)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fn(t),null;case 6:if(e&&t.stateNode!=null)pA(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(le(166));if(n=ks(vf.current),ks(Qo.current),zp(t)){if(r=t.stateNode,n=t.memoizedProps,r[Go]=t,(i=r.nodeValue!==n)&&(e=Mr,e!==null))switch(e.tag){case 3:Bp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bp(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Go]=t,t.stateNode=r}return Fn(t),null;case 13:if(Ot(Bt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Nt&&Rr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)IP(),cu(),t.flags|=98560,i=!1;else if(i=zp(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(le(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(le(317));i[Go]=t}else cu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fn(t),i=!1}else ko!==null&&(fb(ko),ko=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Bt.current&1)!==0?dn===0&&(dn=3):Tx())),t.updateQueue!==null&&(t.flags|=4),Fn(t),null);case 4:return du(),rb(e,t),e===null&&pf(t.stateNode.containerInfo),Fn(t),null;case 10:return dx(t.type._context),Fn(t),null;case 17:return mr(t.type)&&a0(),Fn(t),null;case 19:if(Ot(Bt),i=t.memoizedState,i===null)return Fn(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)mc(i,!1);else{if(dn!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=p0(e),s!==null){for(t.flags|=128,mc(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pt(Bt,Bt.current&1|2),t.child}e=e.sibling}i.tail!==null&&tn()>hu&&(t.flags|=128,r=!0,mc(i,!1),t.lanes=4194304)}else{if(!r)if(e=p0(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nt)return Fn(t),null}else 2*tn()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,mc(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=tn(),t.sibling=null,n=Bt.current,Pt(Bt,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return Ax(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Or&1073741824)!==0&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(le(156,t.tag))}function sB(e,t){switch(lx(t),t.tag){case 1:return mr(t.type)&&a0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return du(),Ot(hr),Ot(Wn),vx(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return gx(t),null;case 13:if(Ot(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(le(340));cu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot(Bt),null;case 4:return du(),null;case 10:return dx(t.type._context),null;case 22:case 23:return Ax(),null;case 24:return null;default:return null}}var jp=!1,zn=!1,lB=typeof WeakSet=="function"?WeakSet:Set,we=null;function zl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function ob(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var A_=!1;function uB(e,t){if(Vy=n0,e=vP(),ax(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(u=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wy={focusedElem:e,selectionRange:n},n0=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,E=y.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?x:wo(t.type,x),E);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(P){Gt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return y=A_,A_=!1,y}function zc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ob(t,n,i)}o=o.next}while(o!==r)}}function mm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ib(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hA(e){var t=e.alternate;t!==null&&(e.alternate=null,hA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Go],delete t[mf],delete t[Hy],delete t[H$],delete t[G$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mA(e){return e.tag===5||e.tag===3||e.tag===4}function T_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ab(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=i0));else if(r!==4&&(e=e.child,e!==null))for(ab(e,t,n),e=e.sibling;e!==null;)ab(e,t,n),e=e.sibling}function sb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}var An=null,Co=!1;function ca(e,t,n){for(n=n.child;n!==null;)gA(e,t,n),n=n.sibling}function gA(e,t,n){if(Xo&&typeof Xo.onCommitFiberUnmount=="function")try{Xo.onCommitFiberUnmount(sm,n)}catch{}switch(n.tag){case 5:zn||zl(n,t);case 6:var r=An,o=Co;An=null,ca(e,t,n),An=r,Co=o,An!==null&&(Co?(e=An,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):An.removeChild(n.stateNode));break;case 18:An!==null&&(Co?(e=An,n=n.stateNode,e.nodeType===8?w1(e.parentNode,n):e.nodeType===1&&w1(e,n),cf(e)):w1(An,n.stateNode));break;case 4:r=An,o=Co,An=n.stateNode.containerInfo,Co=!0,ca(e,t,n),An=r,Co=o;break;case 0:case 11:case 14:case 15:if(!zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&ob(n,t,s),o=o.next}while(o!==r)}ca(e,t,n);break;case 1:if(!zn&&(zl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Gt(n,t,u)}ca(e,t,n);break;case 21:ca(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,ca(e,t,n),zn=r):ca(e,t,n);break;default:ca(e,t,n)}}function I_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lB),t.forEach(function(r){var o=yB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:An=u.stateNode,Co=!1;break e;case 3:An=u.stateNode.containerInfo,Co=!0;break e;case 4:An=u.stateNode.containerInfo,Co=!0;break e}u=u.return}if(An===null)throw Error(le(160));gA(i,s,o),An=null,Co=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){Gt(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vA(t,e),t=t.sibling}function vA(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vo(t,e),Fo(e),r&4){try{zc(3,e,e.return),mm(3,e)}catch(x){Gt(e,e.return,x)}try{zc(5,e,e.return)}catch(x){Gt(e,e.return,x)}}break;case 1:vo(t,e),Fo(e),r&512&&n!==null&&zl(n,n.return);break;case 5:if(vo(t,e),Fo(e),r&512&&n!==null&&zl(n,n.return),e.flags&32){var o=e.stateNode;try{af(o,"")}catch(x){Gt(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,u=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&$E(o,i),Oy(u,s);var f=Oy(u,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?jE(o,h):p==="dangerouslySetInnerHTML"?VE(o,h):p==="children"?af(o,h):q2(o,p,h,f)}switch(u){case"input":Ey(o,i);break;case"textarea":BE(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?ql(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?ql(o,!!i.multiple,i.defaultValue,!0):ql(o,!!i.multiple,i.multiple?[]:"",!1))}o[mf]=i}catch(x){Gt(e,e.return,x)}}break;case 6:if(vo(t,e),Fo(e),r&4){if(e.stateNode===null)throw Error(le(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(x){Gt(e,e.return,x)}}break;case 3:if(vo(t,e),Fo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cf(t.containerInfo)}catch(x){Gt(e,e.return,x)}break;case 4:vo(t,e),Fo(e);break;case 13:vo(t,e),Fo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ex=tn())),r&4&&I_(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(zn=(f=zn)||p,vo(t,e),zn=f):vo(t,e),Fo(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&(e.mode&1)!==0)for(we=e,p=e.child;p!==null;){for(h=we=p;we!==null;){switch(m=we,v=m.child,m.tag){case 0:case 11:case 14:case 15:zc(4,m,m.return);break;case 1:zl(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){Gt(r,n,x)}}break;case 5:zl(m,m.return);break;case 22:if(m.memoizedState!==null){R_(h);continue}}v!==null?(v.return=m,we=v):R_(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=WE("display",s))}catch(x){Gt(e,e.return,x)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(x){Gt(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vo(t,e),Fo(e),r&4&&I_(e);break;case 21:break;default:vo(t,e),Fo(e)}}function Fo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mA(n)){var r=n;break e}n=n.return}throw Error(le(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(af(o,""),r.flags&=-33);var i=T_(e);sb(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,u=T_(e);ab(e,u,s);break;default:throw Error(le(161))}}catch(c){Gt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cB(e,t,n){we=e,yA(e)}function yA(e,t,n){for(var r=(e.mode&1)!==0;we!==null;){var o=we,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||jp;if(!s){var u=o.alternate,c=u!==null&&u.memoizedState!==null||zn;u=jp;var f=zn;if(jp=s,(zn=c)&&!f)for(we=o;we!==null;)s=we,c=s.child,s.tag===22&&s.memoizedState!==null?M_(o):c!==null?(c.return=s,we=c):M_(o);for(;i!==null;)we=i,yA(i),i=i.sibling;we=o,jp=u,zn=f}O_(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,we=i):O_(e)}}function O_(e){for(;we!==null;){var t=we;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:zn||mm(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!zn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:wo(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&h_(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}h_(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&cf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(le(163))}zn||t.flags&512&&ib(t)}catch(m){Gt(t,t.return,m)}}if(t===e){we=null;break}if(n=t.sibling,n!==null){n.return=t.return,we=n;break}we=t.return}}function R_(e){for(;we!==null;){var t=we;if(t===e){we=null;break}var n=t.sibling;if(n!==null){n.return=t.return,we=n;break}we=t.return}}function M_(e){for(;we!==null;){var t=we;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mm(4,t)}catch(c){Gt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Gt(t,o,c)}}var i=t.return;try{ib(t)}catch(c){Gt(t,i,c)}break;case 5:var s=t.return;try{ib(t)}catch(c){Gt(t,s,c)}}}catch(c){Gt(t,t.return,c)}if(t===e){we=null;break}var u=t.sibling;if(u!==null){u.return=t.return,we=u;break}we=t.return}}var fB=Math.ceil,g0=Zi.ReactCurrentDispatcher,_x=Zi.ReactCurrentOwner,eo=Zi.ReactCurrentBatchConfig,Je=0,bn=null,an=null,Tn=0,Or=0,Vl=Za(0),dn=0,Sf=null,$s=0,gm=0,kx=0,Vc=null,fr=null,Ex=0,hu=1/0,Ai=null,v0=!1,lb=null,Da=null,Up=!1,Ea=null,y0=0,Wc=0,ub=null,Eh=-1,Ph=0;function Jn(){return(Je&6)!==0?tn():Eh!==-1?Eh:Eh=tn()}function Fa(e){return(e.mode&1)===0?1:(Je&2)!==0&&Tn!==0?Tn&-Tn:K$.transition!==null?(Ph===0&&(Ph=tP()),Ph):(e=ht,e!==0||(e=window.event,e=e===void 0?16:lP(e.type)),e)}function Ao(e,t,n,r){if(50<Wc)throw Wc=0,ub=null,Error(le(185));Jf(e,n,r),((Je&2)===0||e!==bn)&&(e===bn&&((Je&2)===0&&(gm|=n),dn===4&&wa(e,Tn)),gr(e,r),n===1&&Je===0&&(t.mode&1)===0&&(hu=tn()+500,dm&&Xa()))}function gr(e,t){var n=e.callbackNode;KF(e,t);var r=t0(e,e===bn?Tn:0);if(r===0)n!==null&&WC(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&WC(n),t===1)e.tag===0?q$(N_.bind(null,e)):PP(N_.bind(null,e)),j$(function(){(Je&6)===0&&Xa()}),n=null;else{switch(nP(r)){case 1:n=Q2;break;case 4:n=JE;break;case 16:n=e0;break;case 536870912:n=eP;break;default:n=e0}n=EA(n,bA.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bA(e,t){if(Eh=-1,Ph=0,(Je&6)!==0)throw Error(le(327));var n=e.callbackNode;if(Ql()&&e.callbackNode!==n)return null;var r=t0(e,e===bn?Tn:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=b0(e,r);else{t=r;var o=Je;Je|=2;var i=SA();(bn!==e||Tn!==t)&&(Ai=null,hu=tn()+500,Ts(e,t));do try{hB();break}catch(u){xA(e,u)}while(1);fx(),g0.current=i,Je=o,an!==null?t=0:(bn=null,Tn=0,t=dn)}if(t!==0){if(t===2&&(o=Dy(e),o!==0&&(r=o,t=cb(e,o))),t===1)throw n=Sf,Ts(e,0),wa(e,r),gr(e,tn()),n;if(t===6)wa(e,r);else{if(o=e.current.alternate,(r&30)===0&&!dB(o)&&(t=b0(e,r),t===2&&(i=Dy(e),i!==0&&(r=i,t=cb(e,i))),t===1))throw n=Sf,Ts(e,0),wa(e,r),gr(e,tn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(le(345));case 2:ps(e,fr,Ai);break;case 3:if(wa(e,r),(r&130023424)===r&&(t=Ex+500-tn(),10<t)){if(t0(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Jn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Uy(ps.bind(null,e,fr,Ai),t);break}ps(e,fr,Ai);break;case 4:if(wa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Po(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fB(r/1960))-r,10<r){e.timeoutHandle=Uy(ps.bind(null,e,fr,Ai),r);break}ps(e,fr,Ai);break;case 5:ps(e,fr,Ai);break;default:throw Error(le(329))}}}return gr(e,tn()),e.callbackNode===n?bA.bind(null,e):null}function cb(e,t){var n=Vc;return e.current.memoizedState.isDehydrated&&(Ts(e,t).flags|=256),e=b0(e,t),e!==2&&(t=fr,fr=n,t!==null&&fb(t)),e}function fb(e){fr===null?fr=e:fr.push.apply(fr,e)}function dB(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Oo(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wa(e,t){for(t&=~kx,t&=~gm,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Po(t),r=1<<n;e[n]=-1,t&=~r}}function N_(e){if((Je&6)!==0)throw Error(le(327));Ql();var t=t0(e,0);if((t&1)===0)return gr(e,tn()),null;var n=b0(e,t);if(e.tag!==0&&n===2){var r=Dy(e);r!==0&&(t=r,n=cb(e,r))}if(n===1)throw n=Sf,Ts(e,0),wa(e,t),gr(e,tn()),n;if(n===6)throw Error(le(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ps(e,fr,Ai),gr(e,tn()),null}function Px(e,t){var n=Je;Je|=1;try{return e(t)}finally{Je=n,Je===0&&(hu=tn()+500,dm&&Xa())}}function Bs(e){Ea!==null&&Ea.tag===0&&(Je&6)===0&&Ql();var t=Je;Je|=1;var n=eo.transition,r=ht;try{if(eo.transition=null,ht=1,e)return e()}finally{ht=r,eo.transition=n,Je=t,(Je&6)===0&&Xa()}}function Ax(){Or=Vl.current,Ot(Vl)}function Ts(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,W$(n)),an!==null)for(n=an.return;n!==null;){var r=n;switch(lx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&a0();break;case 3:du(),Ot(hr),Ot(Wn),vx();break;case 5:gx(r);break;case 4:du();break;case 13:Ot(Bt);break;case 19:Ot(Bt);break;case 10:dx(r.type._context);break;case 22:case 23:Ax()}n=n.return}if(bn=e,an=e=$a(e.current,null),Tn=Or=t,dn=0,Sf=null,kx=gm=$s=0,fr=Vc=null,_s!==null){for(t=0;t<_s.length;t++)if(n=_s[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}_s=null}return e}function xA(e,t){do{var n=an;try{if(fx(),Ch.current=m0,h0){for(var r=zt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}h0=!1}if(Fs=0,yn=fn=zt=null,Bc=!1,yf=0,_x.current=null,n===null||n.return===null){dn=1,Sf=t,an=null;break}e:{var i=e,s=n.return,u=n,c=t;if(t=Tn,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=u,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=S_(s);if(v!==null){v.flags&=-257,w_(v,s,u,i,t),v.mode&1&&x_(i,f,t),t=v,c=f;var y=t.updateQueue;if(y===null){var x=new Set;x.add(c),t.updateQueue=x}else y.add(c);break e}else{if((t&1)===0){x_(i,f,t),Tx();break e}c=Error(le(426))}}else if(Nt&&u.mode&1){var E=S_(s);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),w_(E,s,u,i,t),ux(pu(c,u));break e}}i=c=pu(c,u),dn!==4&&(dn=2),Vc===null?Vc=[i]:Vc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=rA(i,c,t);p_(i,w);break e;case 1:u=c;var b=i.type,_=i.stateNode;if((i.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Da===null||!Da.has(_)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=oA(i,u,t);p_(i,P);break e}}i=i.return}while(i!==null)}CA(n)}catch(I){t=I,an===n&&n!==null&&(an=n=n.return);continue}break}while(1)}function SA(){var e=g0.current;return g0.current=m0,e===null?m0:e}function Tx(){(dn===0||dn===3||dn===2)&&(dn=4),bn===null||($s&268435455)===0&&(gm&268435455)===0||wa(bn,Tn)}function b0(e,t){var n=Je;Je|=2;var r=SA();(bn!==e||Tn!==t)&&(Ai=null,Ts(e,t));do try{pB();break}catch(o){xA(e,o)}while(1);if(fx(),Je=n,g0.current=r,an!==null)throw Error(le(261));return bn=null,Tn=0,dn}function pB(){for(;an!==null;)wA(an)}function hB(){for(;an!==null&&!BF();)wA(an)}function wA(e){var t=kA(e.alternate,e,Or);e.memoizedProps=e.pendingProps,t===null?CA(e):an=t,_x.current=null}function CA(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=aB(n,t,Or),n!==null){an=n;return}}else{if(n=sB(n,t),n!==null){n.flags&=32767,an=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dn=6,an=null;return}}if(t=t.sibling,t!==null){an=t;return}an=t=e}while(t!==null);dn===0&&(dn=5)}function ps(e,t,n){var r=ht,o=eo.transition;try{eo.transition=null,ht=1,mB(e,t,n,r)}finally{eo.transition=o,ht=r}return null}function mB(e,t,n,r){do Ql();while(Ea!==null);if((Je&6)!==0)throw Error(le(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(le(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(YF(e,i),e===bn&&(an=bn=null,Tn=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Up||(Up=!0,EA(e0,function(){return Ql(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=eo.transition,eo.transition=null;var s=ht;ht=1;var u=Je;Je|=4,_x.current=null,uB(e,n),vA(n,e),L$(Wy),n0=!!Vy,Wy=Vy=null,e.current=n,cB(n),zF(),Je=u,ht=s,eo.transition=i}else e.current=n;if(Up&&(Up=!1,Ea=e,y0=o),i=e.pendingLanes,i===0&&(Da=null),jF(n.stateNode),gr(e,tn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(v0)throw v0=!1,e=lb,lb=null,e;return(y0&1)!==0&&e.tag!==0&&Ql(),i=e.pendingLanes,(i&1)!==0?e===ub?Wc++:(Wc=0,ub=e):Wc=0,Xa(),null}function Ql(){if(Ea!==null){var e=nP(y0),t=eo.transition,n=ht;try{if(eo.transition=null,ht=16>e?16:e,Ea===null)var r=!1;else{if(e=Ea,Ea=null,y0=0,(Je&6)!==0)throw Error(le(331));var o=Je;for(Je|=4,we=e.current;we!==null;){var i=we,s=i.child;if((we.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;c<u.length;c++){var f=u[c];for(we=f;we!==null;){var p=we;switch(p.tag){case 0:case 11:case 15:zc(8,p,i)}var h=p.child;if(h!==null)h.return=p,we=h;else for(;we!==null;){p=we;var m=p.sibling,v=p.return;if(hA(p),p===f){we=null;break}if(m!==null){m.return=v,we=m;break}we=v}}}var y=i.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}we=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,we=s;else e:for(;we!==null;){if(i=we,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:zc(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,we=w;break e}we=i.return}}var b=e.current;for(we=b;we!==null;){s=we;var _=s.child;if((s.subtreeFlags&2064)!==0&&_!==null)_.return=s,we=_;else e:for(s=b;we!==null;){if(u=we,(u.flags&2048)!==0)try{switch(u.tag){case 0:case 11:case 15:mm(9,u)}}catch(I){Gt(u,u.return,I)}if(u===s){we=null;break e}var P=u.sibling;if(P!==null){P.return=u.return,we=P;break e}we=u.return}}if(Je=o,Xa(),Xo&&typeof Xo.onPostCommitFiberRoot=="function")try{Xo.onPostCommitFiberRoot(sm,e)}catch{}r=!0}return r}finally{ht=n,eo.transition=t}}return!1}function L_(e,t,n){t=pu(n,t),t=rA(e,t,1),e=La(e,t,1),t=Jn(),e!==null&&(Jf(e,1,t),gr(e,t))}function Gt(e,t,n){if(e.tag===3)L_(e,e,n);else for(;t!==null;){if(t.tag===3){L_(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Da===null||!Da.has(r))){e=pu(n,e),e=oA(t,e,1),t=La(t,e,1),e=Jn(),t!==null&&(Jf(t,1,e),gr(t,e));break}}t=t.return}}function gB(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Jn(),e.pingedLanes|=e.suspendedLanes&n,bn===e&&(Tn&n)===n&&(dn===4||dn===3&&(Tn&130023424)===Tn&&500>tn()-Ex?Ts(e,0):kx|=n),gr(e,t)}function _A(e,t){t===0&&((e.mode&1)===0?t=1:(t=Np,Np<<=1,(Np&130023424)===0&&(Np=4194304)));var n=Jn();e=Ui(e,t),e!==null&&(Jf(e,t,n),gr(e,n))}function vB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_A(e,n)}function yB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(le(314))}r!==null&&r.delete(t),_A(e,n)}var kA;kA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hr.current)dr=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dr=!1,iB(e,t,n);dr=(e.flags&131072)!==0}else dr=!1,Nt&&(t.flags&1048576)!==0&&AP(t,u0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kh(e,t),e=t.pendingProps;var o=uu(t,Wn.current);Xl(t,n),o=bx(null,t,r,e,o,n);var i=xx();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mr(r)?(i=!0,s0(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hx(t),o.updater=pm,t.stateNode=o,o._reactInternals=t,Xy(t,r,e,n),t=eb(null,t,r,!0,i,n)):(t.tag=0,Nt&&i&&sx(t),Qn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=xB(r),e=wo(r,e),o){case 0:t=Jy(null,t,r,e,n);break e;case 1:t=k_(null,t,r,e,n);break e;case 11:t=C_(null,t,r,e,n);break e;case 14:t=__(null,t,r,wo(r.type,e),n);break e}throw Error(le(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),Jy(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),k_(e,t,r,o,n);case 3:e:{if(lA(t),e===null)throw Error(le(387));r=t.pendingProps,i=t.memoizedState,o=i.element,RP(e,t),d0(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=pu(Error(le(423)),t),t=E_(e,t,r,n,o);break e}else if(r!==o){o=pu(Error(le(424)),t),t=E_(e,t,r,n,o);break e}else for(Rr=Na(t.stateNode.containerInfo.firstChild),Mr=t,Nt=!0,ko=null,n=DP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cu(),r===o){t=Hi(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return FP(t),e===null&&Ky(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,jy(r,o)?s=null:i!==null&&jy(r,i)&&(t.flags|=32),sA(e,t),Qn(e,t,s,n),t.child;case 6:return e===null&&Ky(t),null;case 13:return uA(e,t,n);case 4:return mx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fu(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),C_(e,t,r,o,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Pt(c0,r._currentValue),r._currentValue=s,i!==null)if(Oo(i.value,s)){if(i.children===o.children&&!hr.current){t=Hi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Fi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Yy(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(le(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Yy(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Qn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Xl(t,n),o=no(o),r=r(o),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,o=wo(r,t.pendingProps),o=wo(r.type,o),__(e,t,r,o,n);case 15:return iA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wo(r,o),kh(e,t),t.tag=1,mr(r)?(e=!0,s0(t)):e=!1,Xl(t,n),NP(t,r,o),Xy(t,r,o,n),eb(null,t,r,!0,e,n);case 19:return cA(e,t,n);case 22:return aA(e,t,n)}throw Error(le(156,t.tag))};function EA(e,t){return QE(e,t)}function bB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(e,t,n,r){return new bB(e,t,n,r)}function Ix(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xB(e){if(typeof e=="function")return Ix(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Y2)return 11;if(e===Z2)return 14}return 2}function $a(e,t){var n=e.alternate;return n===null?(n=Jr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ix(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ol:return Is(n.children,o,i,t);case K2:s=8,o|=8;break;case Sy:return e=Jr(12,n,t,o|2),e.elementType=Sy,e.lanes=i,e;case wy:return e=Jr(13,n,t,o),e.elementType=wy,e.lanes=i,e;case Cy:return e=Jr(19,n,t,o),e.elementType=Cy,e.lanes=i,e;case LE:return vm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ME:s=10;break e;case NE:s=9;break e;case Y2:s=11;break e;case Z2:s=14;break e;case ya:s=16,r=null;break e}throw Error(le(130,e==null?e:typeof e,""))}return t=Jr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Is(e,t,n,r){return e=Jr(7,e,r,t),e.lanes=n,e}function vm(e,t,n,r){return e=Jr(22,e,r,t),e.elementType=LE,e.lanes=n,e.stateNode={isHidden:!1},e}function I1(e,t,n){return e=Jr(6,e,null,t),e.lanes=n,e}function O1(e,t,n){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SB(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=f1(0),this.expirationTimes=f1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=f1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ox(e,t,n,r,o,i,s,u,c){return e=new SB(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hx(i),e}function wB(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Il,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function PA(e){if(!e)return ja;e=e._reactInternals;e:{if(js(e)!==e||e.tag!==1)throw Error(le(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(le(171))}if(e.tag===1){var n=e.type;if(mr(n))return EP(e,n,t)}return t}function AA(e,t,n,r,o,i,s,u,c){return e=Ox(n,r,!0,e,o,i,s,u,c),e.context=PA(null),n=e.current,r=Jn(),o=Fa(n),i=Fi(r,o),i.callback=t??null,La(n,i,o),e.current.lanes=o,Jf(e,o,r),gr(e,r),e}function ym(e,t,n,r){var o=t.current,i=Jn(),s=Fa(o);return n=PA(n),t.context===null?t.context=n:t.pendingContext=n,t=Fi(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=La(o,t,s),e!==null&&(Ao(e,o,s,i),wh(e,o,s)),s}function x0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function D_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rx(e,t){D_(e,t),(e=e.alternate)&&D_(e,t)}function CB(){return null}var TA=typeof reportError=="function"?reportError:function(e){console.error(e)};function Mx(e){this._internalRoot=e}bm.prototype.render=Mx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(le(409));ym(e,t,null,null)};bm.prototype.unmount=Mx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bs(function(){ym(null,e,null,null)}),t[ji]=null}};function bm(e){this._internalRoot=e}bm.prototype.unstable_scheduleHydration=function(e){if(e){var t=iP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sa.length&&t!==0&&t<Sa[n].priority;n++);Sa.splice(n,0,e),n===0&&sP(e)}};function Nx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function F_(){}function _B(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=x0(s);i.call(f)}}var s=AA(t,r,e,0,null,!1,!1,"",F_);return e._reactRootContainer=s,e[ji]=s.current,pf(e.nodeType===8?e.parentNode:e),Bs(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var f=x0(c);u.call(f)}}var c=Ox(e,0,!1,null,null,!1,!1,"",F_);return e._reactRootContainer=c,e[ji]=c.current,pf(e.nodeType===8?e.parentNode:e),Bs(function(){ym(t,c,n,r)}),c}function Sm(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var u=o;o=function(){var c=x0(s);u.call(c)}}ym(t,s,e,o)}else s=_B(n,t,e,o,r);return x0(s)}rP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pc(t.pendingLanes);n!==0&&(J2(t,n|1),gr(t,tn()),(Je&6)===0&&(hu=tn()+500,Xa()))}break;case 13:Bs(function(){var r=Ui(e,1);if(r!==null){var o=Jn();Ao(r,e,1,o)}}),Rx(e,1)}};ex=function(e){if(e.tag===13){var t=Ui(e,134217728);if(t!==null){var n=Jn();Ao(t,e,134217728,n)}Rx(e,134217728)}};oP=function(e){if(e.tag===13){var t=Fa(e),n=Ui(e,t);if(n!==null){var r=Jn();Ao(n,e,t,r)}Rx(e,t)}};iP=function(){return ht};aP=function(e,t){var n=ht;try{return ht=e,t()}finally{ht=n}};My=function(e,t,n){switch(t){case"input":if(Ey(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fm(r);if(!o)throw Error(le(90));FE(r),Ey(r,o)}}}break;case"textarea":BE(e,n);break;case"select":t=n.value,t!=null&&ql(e,!!n.multiple,t,!1)}};GE=Px;qE=Bs;var kB={usingClientEntryPoint:!1,Events:[td,Ll,fm,UE,HE,Px]},gc={findFiberByHostInstance:Cs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},EB={bundleType:gc.bundleType,version:gc.version,rendererPackageName:gc.rendererPackageName,rendererConfig:gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ZE(e),e===null?null:e.stateNode},findFiberByHostInstance:gc.findFiberByHostInstance||CB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hp.isDisabled&&Hp.supportsFiber)try{sm=Hp.inject(EB),Xo=Hp}catch{}}$r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kB;$r.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nx(t))throw Error(le(200));return wB(e,t,null,n)};$r.createRoot=function(e,t){if(!Nx(e))throw Error(le(299));var n=!1,r="",o=TA;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ox(e,1,!1,null,null,n,!1,r,o),e[ji]=t.current,pf(e.nodeType===8?e.parentNode:e),new Mx(t)};$r.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(le(188)):(e=Object.keys(e).join(","),Error(le(268,e)));return e=ZE(t),e=e===null?null:e.stateNode,e};$r.flushSync=function(e){return Bs(e)};$r.hydrate=function(e,t,n){if(!xm(t))throw Error(le(200));return Sm(null,e,t,!0,n)};$r.hydrateRoot=function(e,t,n){if(!Nx(e))throw Error(le(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=TA;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=AA(t,null,e,1,n??null,o,!1,i,s),e[ji]=t.current,pf(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new bm(t)};$r.render=function(e,t,n){if(!xm(t))throw Error(le(200));return Sm(null,e,t,!1,n)};$r.unmountComponentAtNode=function(e){if(!xm(e))throw Error(le(40));return e._reactRootContainer?(Bs(function(){Sm(null,null,e,!1,function(){e._reactRootContainer=null,e[ji]=null})}),!0):!1};$r.unstable_batchedUpdates=Px;$r.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xm(n))throw Error(le(200));if(e==null||e._reactInternals===void 0)throw Error(le(38));return Sm(e,t,n,!1,r)};$r.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=$r})(Qf);var $_=Qf.exports;by.createRoot=$_.createRoot,by.hydrateRoot=$_.hydrateRoot;var $i=Boolean(globalThis?.document)?C.exports.useLayoutEffect:C.exports.useEffect,wm={exports:{}},Cm={};/**
|
|
* @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 PB=C.exports,AB=Symbol.for("react.element"),TB=Symbol.for("react.fragment"),IB=Object.prototype.hasOwnProperty,OB=PB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RB={key:!0,ref:!0,__self:!0,__source:!0};function IA(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)IB.call(t,r)&&!RB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:AB,type:e,key:i,ref:s,props:o,_owner:OB.current}}Cm.Fragment=TB;Cm.jsx=IA;Cm.jsxs=IA;(function(e){e.exports=Cm})(wm);const Rn=wm.exports.Fragment,S=wm.exports.jsx,ee=wm.exports.jsxs;var Lx=C.exports.createContext({});Lx.displayName="ColorModeContext";function _m(){const e=C.exports.useContext(Lx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Ba(e,t){const{colorMode:n}=_m();return n==="dark"?t:e}var Gp={light:"chakra-ui-light",dark:"chakra-ui-dark"};function MB(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o?.()},setClassName(r){document.body.classList.add(r?Gp.dark:Gp.light),document.body.classList.remove(r?Gp.light:Gp.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var NB="chakra-ui-color-mode";function LB(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 DB=LB(NB),B_=()=>{};function z_(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function OA(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=DB}=e,u=o==="dark"?"dark":"light",[c,f]=C.exports.useState(()=>z_(s,u)),[p,h]=C.exports.useState(()=>z_(s)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:x}=C.exports.useMemo(()=>MB({preventTransition:i}),[i]),E=o==="system"&&!c?p:c,w=C.exports.useCallback(P=>{const I=P==="system"?m():P;f(I),v(I==="dark"),y(I),s.set(I)},[s,m,v,y]);$i(()=>{o==="system"&&h(m())},[]),C.exports.useEffect(()=>{const P=s.get();if(P){w(P);return}if(o==="system"){w("system");return}w(u)},[s,u,o,w]);const b=C.exports.useCallback(()=>{w(E==="dark"?"light":"dark")},[E,w]);C.exports.useEffect(()=>{if(!!r)return x(w)},[r,x,w]);const _=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?B_:b,setColorMode:t?B_:w}),[E,b,w,t]);return S(Lx.Provider,{value:_,children:n})}OA.displayName="ColorModeProvider";var FB=new Set(["dark","light","system"]);function $B(e){let t=e;return FB.has(t)||(t="light"),t}function BB(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=$B(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
|
|
`,u=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
|
|
`;return`!${i?s:u}`.trim()}function zB(e={}){return S("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:BB(e)}})}var db={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",x="[object Map]",E="[object Number]",w="[object Null]",b="[object Object]",_="[object Proxy]",P="[object RegExp]",I="[object Set]",N="[object String]",L="[object Undefined]",z="[object WeakMap]",K="[object ArrayBuffer]",W="[object DataView]",te="[object Float32Array]",be="[object Float64Array]",_e="[object Int8Array]",ye="[object Int16Array]",Ce="[object Int32Array]",ae="[object Uint8Array]",ke="[object Uint8ClampedArray]",j="[object Uint16Array]",Y="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,se={};se[te]=se[be]=se[_e]=se[ye]=se[Ce]=se[ae]=se[ke]=se[j]=se[Y]=!0,se[u]=se[c]=se[K]=se[p]=se[W]=se[h]=se[m]=se[v]=se[x]=se[E]=se[b]=se[P]=se[I]=se[N]=se[z]=!1;var ue=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,he=typeof self=="object"&&self&&self.Object===Object&&self,me=ue||he||Function("return this")(),Pe=t&&!t.nodeType&&t,fe=Pe&&!0&&e&&!e.nodeType&&e,Se=fe&&fe.exports===Pe,Le=Se&&ue.process,at=function(){try{var O=fe&&fe.require&&fe.require("util").types;return O||Le&&Le.binding&&Le.binding("util")}catch{}}(),At=at&&at.isTypedArray;function hn(O,F,H){switch(H.length){case 0:return O.call(F);case 1:return O.call(F,H[0]);case 2:return O.call(F,H[0],H[1]);case 3:return O.call(F,H[0],H[1],H[2])}return O.apply(F,H)}function ge(O,F){for(var H=-1,ve=Array(O);++H<O;)ve[H]=F(H);return ve}function Ie(O){return function(F){return O(F)}}function et(O,F){return O?.[F]}function De(O,F){return function(H){return O(F(H))}}var Dt=Array.prototype,mn=Function.prototype,st=Object.prototype,wt=me["__core-js_shared__"],Xt=mn.toString,Ut=st.hasOwnProperty,de=function(){var O=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Ee=st.toString,ft=Xt.call(Object),lt=RegExp("^"+Xt.call(Ut).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=Se?me.Buffer:void 0,He=me.Symbol,kt=me.Uint8Array,wn=re?re.allocUnsafe:void 0,Mn=De(Object.getPrototypeOf,Object),wr=Object.create,Mo=st.propertyIsEnumerable,ci=Dt.splice,jn=He?He.toStringTag:void 0,Vr=function(){try{var O=el(Object,"defineProperty");return O({},"",{}),O}catch{}}(),es=re?re.isBuffer:void 0,Zs=Math.max,Eg=Date.now,Lu=el(me,"Map"),Qi=el(Object,"create"),Pg=function(){function O(){}return function(F){if(!fo(F))return{};if(wr)return wr(F);O.prototype=F;var H=new O;return O.prototype=void 0,H}}();function fi(O){var F=-1,H=O==null?0:O.length;for(this.clear();++F<H;){var ve=O[F];this.set(ve[0],ve[1])}}function Ag(){this.__data__=Qi?Qi(null):{},this.size=0}function Tg(O){var F=this.has(O)&&delete this.__data__[O];return this.size-=F?1:0,F}function wd(O){var F=this.__data__;if(Qi){var H=F[O];return H===r?void 0:H}return Ut.call(F,O)?F[O]:void 0}function Ig(O){var F=this.__data__;return Qi?F[O]!==void 0:Ut.call(F,O)}function Og(O,F){var H=this.__data__;return this.size+=this.has(O)?0:1,H[O]=Qi&&F===void 0?r:F,this}fi.prototype.clear=Ag,fi.prototype.delete=Tg,fi.prototype.get=wd,fi.prototype.has=Ig,fi.prototype.set=Og;function co(O){var F=-1,H=O==null?0:O.length;for(this.clear();++F<H;){var ve=O[F];this.set(ve[0],ve[1])}}function Du(){this.__data__=[],this.size=0}function Rg(O){var F=this.__data__,H=pi(F,O);if(H<0)return!1;var ve=F.length-1;return H==ve?F.pop():ci.call(F,H,1),--this.size,!0}function Fu(O){var F=this.__data__,H=pi(F,O);return H<0?void 0:F[H][1]}function Mg(O){return pi(this.__data__,O)>-1}function Ng(O,F){var H=this.__data__,ve=pi(H,O);return ve<0?(++this.size,H.push([O,F])):H[ve][1]=F,this}co.prototype.clear=Du,co.prototype.delete=Rg,co.prototype.get=Fu,co.prototype.has=Mg,co.prototype.set=Ng;function Ji(O){var F=-1,H=O==null?0:O.length;for(this.clear();++F<H;){var ve=O[F];this.set(ve[0],ve[1])}}function Lg(){this.size=0,this.__data__={hash:new fi,map:new(Lu||co),string:new fi}}function Dg(O){var F=Js(this,O).delete(O);return this.size-=F?1:0,F}function Fg(O){return Js(this,O).get(O)}function $g(O){return Js(this,O).has(O)}function Bg(O,F){var H=Js(this,O),ve=H.size;return H.set(O,F),this.size+=H.size==ve?0:1,this}Ji.prototype.clear=Lg,Ji.prototype.delete=Dg,Ji.prototype.get=Fg,Ji.prototype.has=$g,Ji.prototype.set=Bg;function di(O){var F=this.__data__=new co(O);this.size=F.size}function zg(){this.__data__=new co,this.size=0}function Vg(O){var F=this.__data__,H=F.delete(O);return this.size=F.size,H}function Wg(O){return this.__data__.get(O)}function jg(O){return this.__data__.has(O)}function Ug(O,F){var H=this.__data__;if(H instanceof co){var ve=H.__data__;if(!Lu||ve.length<n-1)return ve.push([O,F]),this.size=++H.size,this;H=this.__data__=new Ji(ve)}return H.set(O,F),this.size=H.size,this}di.prototype.clear=zg,di.prototype.delete=Vg,di.prototype.get=Wg,di.prototype.has=jg,di.prototype.set=Ug;function Hg(O,F){var H=Hu(O),ve=!H&&Uu(O),Ge=!H&&!ve&&Bd(O),dt=!H&&!ve&&!Ge&&Vd(O),Be=H||ve||Ge||dt,je=Be?ge(O.length,String):[],tt=je.length;for(var Un in O)(F||Ut.call(O,Un))&&!(Be&&(Un=="length"||Ge&&(Un=="offset"||Un=="parent")||dt&&(Un=="buffer"||Un=="byteLength"||Un=="byteOffset")||Rd(Un,tt)))&&je.push(Un);return je}function ea(O,F,H){(H!==void 0&&!nl(O[F],H)||H===void 0&&!(F in O))&&$u(O,F,H)}function Gg(O,F,H){var ve=O[F];(!(Ut.call(O,F)&&nl(ve,H))||H===void 0&&!(F in O))&&$u(O,F,H)}function pi(O,F){for(var H=O.length;H--;)if(nl(O[H][0],F))return H;return-1}function $u(O,F,H){F=="__proto__"&&Vr?Vr(O,F,{configurable:!0,enumerable:!0,value:H,writable:!0}):O[F]=H}var qg=Id();function Xs(O){return O==null?O===void 0?L:w:jn&&jn in Object(O)?Od(O):Ld(O)}function Bu(O){return ts(O)&&Xs(O)==u}function Cd(O){if(!fo(O)||ju(O))return!1;var F=Gu(O)?lt:R;return F.test($d(O))}function _d(O){return ts(O)&&zd(O.length)&&!!se[Xs(O)]}function Kg(O){if(!fo(O))return Nd(O);var F=hi(O),H=[];for(var ve in O)ve=="constructor"&&(F||!Ut.call(O,ve))||H.push(ve);return H}function kd(O,F,H,ve,Ge){O!==F&&qg(F,function(dt,Be){if(Ge||(Ge=new di),fo(dt))Yg(O,F,Be,H,kd,ve,Ge);else{var je=ve?ve(tl(O,Be),dt,Be+"",O,F,Ge):void 0;je===void 0&&(je=dt),ea(O,Be,je)}},Wd)}function Yg(O,F,H,ve,Ge,dt,Be){var je=tl(O,H),tt=tl(F,H),Un=Be.get(tt);if(Un){ea(O,H,Un);return}var Cn=dt?dt(je,tt,H+"",O,F,Be):void 0,gn=Cn===void 0;if(gn){var ol=Hu(tt),il=!ol&&Bd(tt),qu=!ol&&!il&&Vd(tt);Cn=tt,ol||il||qu?Hu(je)?Cn=je:Jg(je)?Cn=Xg(je):il?(gn=!1,Cn=Pd(tt,!0)):qu?(gn=!1,Cn=zu(tt,!0)):Cn=[]:ev(tt)||Uu(tt)?(Cn=je,Uu(je)?Cn=tv(je):(!fo(je)||Gu(je))&&(Cn=Vu(tt))):gn=!1}gn&&(Be.set(tt,Cn),Ge(Cn,tt,ve,dt,Be),Be.delete(tt)),ea(O,H,Cn)}function Zg(O,F){return Dd(Qg(O,F,jd),O+"")}var Ed=Vr?function(O,F){return Vr(O,"toString",{configurable:!0,enumerable:!1,value:yt(F),writable:!0})}:jd;function Pd(O,F){if(F)return O.slice();var H=O.length,ve=wn?wn(H):new O.constructor(H);return O.copy(ve),ve}function Ad(O){var F=new O.constructor(O.byteLength);return new kt(F).set(new kt(O)),F}function zu(O,F){var H=F?Ad(O.buffer):O.buffer;return new O.constructor(H,O.byteOffset,O.length)}function Xg(O,F){var H=-1,ve=O.length;for(F||(F=Array(ve));++H<ve;)F[H]=O[H];return F}function Td(O,F,H,ve){var Ge=!H;H||(H={});for(var dt=-1,Be=F.length;++dt<Be;){var je=F[dt],tt=ve?ve(H[je],O[je],je,H,O):void 0;tt===void 0&&(tt=O[je]),Ge?$u(H,je,tt):Gg(H,je,tt)}return H}function Qs(O){return Zg(function(F,H){var ve=-1,Ge=H.length,dt=Ge>1?H[Ge-1]:void 0,Be=Ge>2?H[2]:void 0;for(dt=O.length>3&&typeof dt=="function"?(Ge--,dt):void 0,Be&&Md(H[0],H[1],Be)&&(dt=Ge<3?void 0:dt,Ge=1),F=Object(F);++ve<Ge;){var je=H[ve];je&&O(F,je,ve,dt)}return F})}function Id(O){return function(F,H,ve){for(var Ge=-1,dt=Object(F),Be=ve(F),je=Be.length;je--;){var tt=Be[O?je:++Ge];if(H(dt[tt],tt,dt)===!1)break}return F}}function Js(O,F){var H=O.__data__;return Wu(F)?H[typeof F=="string"?"string":"hash"]:H.map}function el(O,F){var H=et(O,F);return Cd(H)?H:void 0}function Od(O){var F=Ut.call(O,jn),H=O[jn];try{O[jn]=void 0;var ve=!0}catch{}var Ge=Ee.call(O);return ve&&(F?O[jn]=H:delete O[jn]),Ge}function Vu(O){return typeof O.constructor=="function"&&!hi(O)?Pg(Mn(O)):{}}function Rd(O,F){var H=typeof O;return F=F??s,!!F&&(H=="number"||H!="symbol"&&U.test(O))&&O>-1&&O%1==0&&O<F}function Md(O,F,H){if(!fo(H))return!1;var ve=typeof F;return(ve=="number"?rl(H)&&Rd(F,H.length):ve=="string"&&F in H)?nl(H[F],O):!1}function Wu(O){var F=typeof O;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?O!=="__proto__":O===null}function ju(O){return!!de&&de in O}function hi(O){var F=O&&O.constructor,H=typeof F=="function"&&F.prototype||st;return O===H}function Nd(O){var F=[];if(O!=null)for(var H in Object(O))F.push(H);return F}function Ld(O){return Ee.call(O)}function Qg(O,F,H){return F=Zs(F===void 0?O.length-1:F,0),function(){for(var ve=arguments,Ge=-1,dt=Zs(ve.length-F,0),Be=Array(dt);++Ge<dt;)Be[Ge]=ve[F+Ge];Ge=-1;for(var je=Array(F+1);++Ge<F;)je[Ge]=ve[Ge];return je[F]=H(Be),hn(O,this,je)}}function tl(O,F){if(!(F==="constructor"&&typeof O[F]=="function")&&F!="__proto__")return O[F]}var Dd=Fd(Ed);function Fd(O){var F=0,H=0;return function(){var ve=Eg(),Ge=i-(ve-H);if(H=ve,Ge>0){if(++F>=o)return arguments[0]}else F=0;return O.apply(void 0,arguments)}}function $d(O){if(O!=null){try{return Xt.call(O)}catch{}try{return O+""}catch{}}return""}function nl(O,F){return O===F||O!==O&&F!==F}var Uu=Bu(function(){return arguments}())?Bu:function(O){return ts(O)&&Ut.call(O,"callee")&&!Mo.call(O,"callee")},Hu=Array.isArray;function rl(O){return O!=null&&zd(O.length)&&!Gu(O)}function Jg(O){return ts(O)&&rl(O)}var Bd=es||nv;function Gu(O){if(!fo(O))return!1;var F=Xs(O);return F==v||F==y||F==f||F==_}function zd(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=s}function fo(O){var F=typeof O;return O!=null&&(F=="object"||F=="function")}function ts(O){return O!=null&&typeof O=="object"}function ev(O){if(!ts(O)||Xs(O)!=b)return!1;var F=Mn(O);if(F===null)return!0;var H=Ut.call(F,"constructor")&&F.constructor;return typeof H=="function"&&H instanceof H&&Xt.call(H)==ft}var Vd=At?Ie(At):_d;function tv(O){return Td(O,Wd(O))}function Wd(O){return rl(O)?Hg(O,!0):Kg(O)}var Ct=Qs(function(O,F,H,ve){kd(O,F,H,ve)});function yt(O){return function(){return O}}function jd(O){return O}function nv(){return!1}e.exports=Ct})(db,db.exports);const Ua=db.exports;function Yo(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Wl(e,...t){return VB(e)?e(...t):e}var VB=e=>typeof e=="function",WB=e=>/!(important)?$/.test(e),V_=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,pb=(e,t)=>n=>{const r=String(t),o=WB(r),i=V_(r),s=e?`${e}.${i}`:i;let u=Yo(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=V_(u),o?`${u} !important`:u};function wf(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=pb(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var qp=(...e)=>t=>e.reduce((n,r)=>r(n),t);function yo(e,t){return n=>{const r={property:n,scale:e};return r.transform=wf({scale:e,transform:t}),r}}var jB=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function UB(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:jB(t),transform:n?wf({scale:n,compose:r}):r}}var RA=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function HB(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...RA].join(" ")}function GB(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...RA].join(" ")}var qB={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},KB={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function YB(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var ZB={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},MA="& > :not(style) ~ :not(style)",XB={[MA]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},QB={[MA]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},hb={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},JB=new Set(Object.values(hb)),NA=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ez=e=>e.trim();function tz(e,t){var n;if(e==null||NA.has(e))return e;const r=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:i}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!o||!i)return e;const s=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=i.split(",").map(ez).filter(Boolean);if(c?.length===0)return e;const f=u in hb?hb[u]:u;c.unshift(f);const p=c.map(h=>{if(JB.has(h))return h;const m=h.indexOf(" "),[v,y]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],x=LA(y)?y:y&&y.split(" "),E=`colors.${v}`,w=E in t.__cssMap?t.__cssMap[E].varRef:v;return x?[w,...Array.isArray(x)?x:[x]].join(" "):w});return`${s}(${p.join(", ")})`}var LA=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),nz=(e,t)=>tz(e,t??{});function rz(e){return/^var\(--.+\)$/.test(e)}var oz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},$o=e=>t=>`${e}(${t})`,Qe={filter(e){return e!=="auto"?e:qB},backdropFilter(e){return e!=="auto"?e:KB},ring(e){return YB(Qe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?HB():e==="auto-gpu"?GB():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=oz(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(rz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:nz,blur:$o("blur"),opacity:$o("opacity"),brightness:$o("brightness"),contrast:$o("contrast"),dropShadow:$o("drop-shadow"),grayscale:$o("grayscale"),hueRotate:$o("hue-rotate"),invert:$o("invert"),saturate:$o("saturate"),sepia:$o("sepia"),bgImage(e){return e==null||LA(e)||NA.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=ZB[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},$={borderWidths:yo("borderWidths"),borderStyles:yo("borderStyles"),colors:yo("colors"),borders:yo("borders"),radii:yo("radii",Qe.px),space:yo("space",qp(Qe.vh,Qe.px)),spaceT:yo("space",qp(Qe.vh,Qe.px)),degreeT(e){return{property:e,transform:Qe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:wf({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:yo("sizes",qp(Qe.vh,Qe.px)),sizesT:yo("sizes",qp(Qe.vh,Qe.fraction)),shadows:yo("shadows"),logical:UB,blur:yo("blur",Qe.blur)},Th={background:$.colors("background"),backgroundColor:$.colors("backgroundColor"),backgroundImage:$.propT("backgroundImage",Qe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Qe.bgClip},bgSize:$.prop("backgroundSize"),bgPosition:$.prop("backgroundPosition"),bg:$.colors("background"),bgColor:$.colors("backgroundColor"),bgPos:$.prop("backgroundPosition"),bgRepeat:$.prop("backgroundRepeat"),bgAttachment:$.prop("backgroundAttachment"),bgGradient:$.propT("backgroundImage",Qe.gradient),bgClip:{transform:Qe.bgClip}};Object.assign(Th,{bgImage:Th.backgroundImage,bgImg:Th.backgroundImage});var rt={border:$.borders("border"),borderWidth:$.borderWidths("borderWidth"),borderStyle:$.borderStyles("borderStyle"),borderColor:$.colors("borderColor"),borderRadius:$.radii("borderRadius"),borderTop:$.borders("borderTop"),borderBlockStart:$.borders("borderBlockStart"),borderTopLeftRadius:$.radii("borderTopLeftRadius"),borderStartStartRadius:$.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:$.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:$.radii("borderTopRightRadius"),borderStartEndRadius:$.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:$.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:$.borders("borderRight"),borderInlineEnd:$.borders("borderInlineEnd"),borderBottom:$.borders("borderBottom"),borderBlockEnd:$.borders("borderBlockEnd"),borderBottomLeftRadius:$.radii("borderBottomLeftRadius"),borderBottomRightRadius:$.radii("borderBottomRightRadius"),borderLeft:$.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:$.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:$.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:$.borders(["borderLeft","borderRight"]),borderInline:$.borders("borderInline"),borderY:$.borders(["borderTop","borderBottom"]),borderBlock:$.borders("borderBlock"),borderTopWidth:$.borderWidths("borderTopWidth"),borderBlockStartWidth:$.borderWidths("borderBlockStartWidth"),borderTopColor:$.colors("borderTopColor"),borderBlockStartColor:$.colors("borderBlockStartColor"),borderTopStyle:$.borderStyles("borderTopStyle"),borderBlockStartStyle:$.borderStyles("borderBlockStartStyle"),borderBottomWidth:$.borderWidths("borderBottomWidth"),borderBlockEndWidth:$.borderWidths("borderBlockEndWidth"),borderBottomColor:$.colors("borderBottomColor"),borderBlockEndColor:$.colors("borderBlockEndColor"),borderBottomStyle:$.borderStyles("borderBottomStyle"),borderBlockEndStyle:$.borderStyles("borderBlockEndStyle"),borderLeftWidth:$.borderWidths("borderLeftWidth"),borderInlineStartWidth:$.borderWidths("borderInlineStartWidth"),borderLeftColor:$.colors("borderLeftColor"),borderInlineStartColor:$.colors("borderInlineStartColor"),borderLeftStyle:$.borderStyles("borderLeftStyle"),borderInlineStartStyle:$.borderStyles("borderInlineStartStyle"),borderRightWidth:$.borderWidths("borderRightWidth"),borderInlineEndWidth:$.borderWidths("borderInlineEndWidth"),borderRightColor:$.colors("borderRightColor"),borderInlineEndColor:$.colors("borderInlineEndColor"),borderRightStyle:$.borderStyles("borderRightStyle"),borderInlineEndStyle:$.borderStyles("borderInlineEndStyle"),borderTopRadius:$.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:$.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:$.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:$.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(rt,{rounded:rt.borderRadius,roundedTop:rt.borderTopRadius,roundedTopLeft:rt.borderTopLeftRadius,roundedTopRight:rt.borderTopRightRadius,roundedTopStart:rt.borderStartStartRadius,roundedTopEnd:rt.borderStartEndRadius,roundedBottom:rt.borderBottomRadius,roundedBottomLeft:rt.borderBottomLeftRadius,roundedBottomRight:rt.borderBottomRightRadius,roundedBottomStart:rt.borderEndStartRadius,roundedBottomEnd:rt.borderEndEndRadius,roundedLeft:rt.borderLeftRadius,roundedRight:rt.borderRightRadius,roundedStart:rt.borderInlineStartRadius,roundedEnd:rt.borderInlineEndRadius,borderStart:rt.borderInlineStart,borderEnd:rt.borderInlineEnd,borderTopStartRadius:rt.borderStartStartRadius,borderTopEndRadius:rt.borderStartEndRadius,borderBottomStartRadius:rt.borderEndStartRadius,borderBottomEndRadius:rt.borderEndEndRadius,borderStartRadius:rt.borderInlineStartRadius,borderEndRadius:rt.borderInlineEndRadius,borderStartWidth:rt.borderInlineStartWidth,borderEndWidth:rt.borderInlineEndWidth,borderStartColor:rt.borderInlineStartColor,borderEndColor:rt.borderInlineEndColor,borderStartStyle:rt.borderInlineStartStyle,borderEndStyle:rt.borderInlineEndStyle});var iz={color:$.colors("color"),textColor:$.colors("color"),fill:$.colors("fill"),stroke:$.colors("stroke")},mb={boxShadow:$.shadows("boxShadow"),mixBlendMode:!0,blendMode:$.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:$.prop("backgroundBlendMode"),opacity:!0};Object.assign(mb,{shadow:mb.boxShadow});var az={filter:{transform:Qe.filter},blur:$.blur("--chakra-blur"),brightness:$.propT("--chakra-brightness",Qe.brightness),contrast:$.propT("--chakra-contrast",Qe.contrast),hueRotate:$.degreeT("--chakra-hue-rotate"),invert:$.propT("--chakra-invert",Qe.invert),saturate:$.propT("--chakra-saturate",Qe.saturate),dropShadow:$.propT("--chakra-drop-shadow",Qe.dropShadow),backdropFilter:{transform:Qe.backdropFilter},backdropBlur:$.blur("--chakra-backdrop-blur"),backdropBrightness:$.propT("--chakra-backdrop-brightness",Qe.brightness),backdropContrast:$.propT("--chakra-backdrop-contrast",Qe.contrast),backdropHueRotate:$.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:$.propT("--chakra-backdrop-invert",Qe.invert),backdropSaturate:$.propT("--chakra-backdrop-saturate",Qe.saturate)},S0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Qe.flexDirection},experimental_spaceX:{static:XB,transform:wf({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:QB,transform:wf({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:$.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:$.space("gap"),rowGap:$.space("rowGap"),columnGap:$.space("columnGap")};Object.assign(S0,{flexDir:S0.flexDirection});var DA={gridGap:$.space("gridGap"),gridColumnGap:$.space("gridColumnGap"),gridRowGap:$.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},sz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Qe.outline},outlineOffset:!0,outlineColor:$.colors("outlineColor")},Zr={width:$.sizesT("width"),inlineSize:$.sizesT("inlineSize"),height:$.sizes("height"),blockSize:$.sizes("blockSize"),boxSize:$.sizes(["width","height"]),minWidth:$.sizes("minWidth"),minInlineSize:$.sizes("minInlineSize"),minHeight:$.sizes("minHeight"),minBlockSize:$.sizes("minBlockSize"),maxWidth:$.sizes("maxWidth"),maxInlineSize:$.sizes("maxInlineSize"),maxHeight:$.sizes("maxHeight"),maxBlockSize:$.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:$.propT("float",Qe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Zr,{w:Zr.width,h:Zr.height,minW:Zr.minWidth,maxW:Zr.maxWidth,minH:Zr.minHeight,maxH:Zr.maxHeight,overscroll:Zr.overscrollBehavior,overscrollX:Zr.overscrollBehaviorX,overscrollY:Zr.overscrollBehaviorY});var lz={listStyleType:!0,listStylePosition:!0,listStylePos:$.prop("listStylePosition"),listStyleImage:!0,listStyleImg:$.prop("listStyleImage")};function uz(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var cz=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},fz=cz(uz),dz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},pz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},R1=(e,t,n)=>{const r={},o=fz(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},hz={srOnly:{transform(e){return e===!0?dz:e==="focusable"?pz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>R1(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>R1(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>R1(t,e,n)}},jc={position:!0,pos:$.prop("position"),zIndex:$.prop("zIndex","zIndices"),inset:$.spaceT("inset"),insetX:$.spaceT(["left","right"]),insetInline:$.spaceT("insetInline"),insetY:$.spaceT(["top","bottom"]),insetBlock:$.spaceT("insetBlock"),top:$.spaceT("top"),insetBlockStart:$.spaceT("insetBlockStart"),bottom:$.spaceT("bottom"),insetBlockEnd:$.spaceT("insetBlockEnd"),left:$.spaceT("left"),insetInlineStart:$.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:$.spaceT("right"),insetInlineEnd:$.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(jc,{insetStart:jc.insetInlineStart,insetEnd:jc.insetInlineEnd});var mz={ring:{transform:Qe.ring},ringColor:$.colors("--chakra-ring-color"),ringOffset:$.prop("--chakra-ring-offset-width"),ringOffsetColor:$.colors("--chakra-ring-offset-color"),ringInset:$.prop("--chakra-ring-inset")},It={margin:$.spaceT("margin"),marginTop:$.spaceT("marginTop"),marginBlockStart:$.spaceT("marginBlockStart"),marginRight:$.spaceT("marginRight"),marginInlineEnd:$.spaceT("marginInlineEnd"),marginBottom:$.spaceT("marginBottom"),marginBlockEnd:$.spaceT("marginBlockEnd"),marginLeft:$.spaceT("marginLeft"),marginInlineStart:$.spaceT("marginInlineStart"),marginX:$.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:$.spaceT("marginInline"),marginY:$.spaceT(["marginTop","marginBottom"]),marginBlock:$.spaceT("marginBlock"),padding:$.space("padding"),paddingTop:$.space("paddingTop"),paddingBlockStart:$.space("paddingBlockStart"),paddingRight:$.space("paddingRight"),paddingBottom:$.space("paddingBottom"),paddingBlockEnd:$.space("paddingBlockEnd"),paddingLeft:$.space("paddingLeft"),paddingInlineStart:$.space("paddingInlineStart"),paddingInlineEnd:$.space("paddingInlineEnd"),paddingX:$.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:$.space("paddingInline"),paddingY:$.space(["paddingTop","paddingBottom"]),paddingBlock:$.space("paddingBlock")};Object.assign(It,{m:It.margin,mt:It.marginTop,mr:It.marginRight,me:It.marginInlineEnd,marginEnd:It.marginInlineEnd,mb:It.marginBottom,ml:It.marginLeft,ms:It.marginInlineStart,marginStart:It.marginInlineStart,mx:It.marginX,my:It.marginY,p:It.padding,pt:It.paddingTop,py:It.paddingY,px:It.paddingX,pb:It.paddingBottom,pl:It.paddingLeft,ps:It.paddingInlineStart,paddingStart:It.paddingInlineStart,pr:It.paddingRight,pe:It.paddingInlineEnd,paddingEnd:It.paddingInlineEnd});var gz={textDecorationColor:$.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:$.shadows("textShadow")},vz={clipPath:!0,transform:$.propT("transform",Qe.transform),transformOrigin:!0,translateX:$.spaceT("--chakra-translate-x"),translateY:$.spaceT("--chakra-translate-y"),skewX:$.degreeT("--chakra-skew-x"),skewY:$.degreeT("--chakra-skew-y"),scaleX:$.prop("--chakra-scale-x"),scaleY:$.prop("--chakra-scale-y"),scale:$.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:$.degreeT("--chakra-rotate")},yz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:$.prop("transitionDuration","transition.duration"),transitionProperty:$.prop("transitionProperty","transition.property"),transitionTimingFunction:$.prop("transitionTimingFunction","transition.easing")},bz={fontFamily:$.prop("fontFamily","fonts"),fontSize:$.prop("fontSize","fontSizes",Qe.px),fontWeight:$.prop("fontWeight","fontWeights"),lineHeight:$.prop("lineHeight","lineHeights"),letterSpacing:$.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},xz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:$.spaceT("scrollMargin"),scrollMarginTop:$.spaceT("scrollMarginTop"),scrollMarginBottom:$.spaceT("scrollMarginBottom"),scrollMarginLeft:$.spaceT("scrollMarginLeft"),scrollMarginRight:$.spaceT("scrollMarginRight"),scrollMarginX:$.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:$.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:$.spaceT("scrollPadding"),scrollPaddingTop:$.spaceT("scrollPaddingTop"),scrollPaddingBottom:$.spaceT("scrollPaddingBottom"),scrollPaddingLeft:$.spaceT("scrollPaddingLeft"),scrollPaddingRight:$.spaceT("scrollPaddingRight"),scrollPaddingX:$.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:$.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function FA(e){return Yo(e)&&e.reference?e.reference:String(e)}var km=(e,...t)=>t.map(FA).join(` ${e} `).replace(/calc/g,""),W_=(...e)=>`calc(${km("+",...e)})`,j_=(...e)=>`calc(${km("-",...e)})`,gb=(...e)=>`calc(${km("*",...e)})`,U_=(...e)=>`calc(${km("/",...e)})`,H_=e=>{const t=FA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:gb(t,-1)},xs=Object.assign(e=>({add:(...t)=>xs(W_(e,...t)),subtract:(...t)=>xs(j_(e,...t)),multiply:(...t)=>xs(gb(e,...t)),divide:(...t)=>xs(U_(e,...t)),negate:()=>xs(H_(e)),toString:()=>e.toString()}),{add:W_,subtract:j_,multiply:gb,divide:U_,negate:H_});function Sz(e,t="-"){return e.replace(/\s+/g,t)}function wz(e){const t=Sz(e.toString());return _z(Cz(t))}function Cz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function _z(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function kz(e,t=""){return[t,e].filter(Boolean).join("-")}function Ez(e,t){return`var(${e}${t?`, ${t}`:""})`}function Pz(e,t=""){return wz(`--${kz(e,t)}`)}function Qa(e,t,n){const r=Pz(e,n);return{variable:r,reference:Ez(r,t)}}function Az(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Tz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Iz(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function vb(e){if(e==null)return e;const{unitless:t}=Iz(e);return t||typeof e=="number"?`${e}px`:e}var $A=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Dx=e=>Object.fromEntries(Object.entries(e).sort($A));function G_(e){const t=Dx(e);return Object.assign(Object.values(t),t)}function Oz(e){const t=Object.keys(Dx(e));return new Set(t)}function q_(e){if(!e)return e;e=vb(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Tc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${vb(e)})`),t&&n.push("and",`(max-width: ${vb(t)})`),n.join(" ")}function Rz(e){if(!e)return null;e.base=e.base??"0px";const t=G_(e),n=Object.entries(e).sort($A).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?q_(f):void 0,{_minW:q_(s),breakpoint:i,minW:s,maxW:f,maxWQuery:Tc(null,f),minWQuery:Tc(s),minMaxQuery:Tc(s,f)}}),r=Oz(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(u=>r.has(u))},asObject:Dx(e),asArray:G_(e),details:n,media:[null,...t.map(i=>Tc(i)).slice(1)],toArrayValue(i){if(!Az(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;Tz(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,u,c)=>{const f=o[c];return f!=null&&u!=null&&(s[f]=u),s},{})}}}var kn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},fa=e=>BA(t=>e(t,"&"),"[role=group]","[data-group]",".group"),_i=e=>BA(t=>e(t,"~ &"),"[data-peer]",".peer"),BA=(e,...t)=>t.map(e).join(", "),Em={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:fa(kn.hover),_peerHover:_i(kn.hover),_groupFocus:fa(kn.focus),_peerFocus:_i(kn.focus),_groupFocusVisible:fa(kn.focusVisible),_peerFocusVisible:_i(kn.focusVisible),_groupActive:fa(kn.active),_peerActive:_i(kn.active),_groupDisabled:fa(kn.disabled),_peerDisabled:_i(kn.disabled),_groupInvalid:fa(kn.invalid),_peerInvalid:_i(kn.invalid),_groupChecked:fa(kn.checked),_peerChecked:_i(kn.checked),_groupFocusWithin:fa(kn.focusWithin),_peerFocusWithin:_i(kn.focusWithin),_peerPlaceholderShown:_i(kn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},Mz=Object.keys(Em);function K_(e,t){return Qa(String(e).replace(/\./g,"-"),void 0,t)}function Nz(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=K_(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...y]=m,x=`${v}.-${y.join(".")}`,E=xs.negate(u),w=xs.negate(f);r[x]={value:E,var:c,varRef:w}}n[c]=u,r[o]={value:u,var:c,varRef:f};continue}const p=m=>{const y=[String(o).split(".")[0],m].join(".");if(!e[y])return m;const{reference:E}=K_(y,t?.cssVarPrefix);return E},h=Yo(u)?u:{default:u};n=Ua(n,Object.entries(h).reduce((m,[v,y])=>{var x;const E=p(y);if(v==="default")return m[c]=E,m;const w=((x=Em)==null?void 0:x[v])??v;return m[w]={[c]:E},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function Lz(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Dz(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Fz=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function $z(e){return Dz(e,Fz)}function Bz(e){return e.semanticTokens}function zz(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function Vz({tokens:e,semanticTokens:t}){const n=Object.entries(yb(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(yb(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function yb(e,t=1/0){return!Yo(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Yo(o)||Array.isArray(o)?Object.entries(yb(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function Wz(e){var t;const n=zz(e),r=$z(n),o=Bz(n),i=Vz({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=Nz(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:Rz(n.breakpoints)}),n}var Fx=Ua({},Th,rt,iz,S0,Zr,az,mz,sz,DA,hz,jc,mb,It,xz,bz,gz,vz,lz,yz),jz=Object.assign({},It,Zr,S0,DA,jc),Uz=Object.keys(jz),Hz=[...Object.keys(Fx),...Mz],Gz={...Fx,...Em},qz=e=>e in Gz;function Kz(e){return/^var\(--.+\)$/.test(e)}var Yz=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Kz(t),Zz=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},r=u=>n(u)??u,o=t.split(",").map(u=>u.trim()),[i,s]=o;return t=n(i)??r(s)??r(t),t};function Xz(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:i,media:s}=r.__breakpoints,u=(c,f=!1)=>{var p;const h=Wl(c,r);let m={};for(let v in h){let y=Wl(h[v],r);if(y==null)continue;if(Array.isArray(y)||Yo(y)&&o(y)){let b=Array.isArray(y)?y:i(y);b=b.slice(0,s.length);for(let _=0;_<b.length;_++){const P=s[_],I=b[_];P?I==null?m[P]??(m[P]={}):m[P]=Object.assign({},m[P],u({[v]:I},!0)):m=Object.assign({},m,u({...h,[v]:I},!1))}continue}if(v in n&&(v=n[v]),Yz(v,y)&&(y=Zz(r,y)),Yo(y)){m[v]=Object.assign({},m[v],u(y,!0));continue}let x=t[v];if(x===!0&&(x={property:v}),!f&&x?.static){const b=Wl(x.static,r);m=Object.assign({},m,b)}let E=((p=x?.transform)==null?void 0:p.call(x,y,r,h))??y;if(E=x?.processResult?u(E,!0):E,Yo(E)){m=Object.assign({},m,E);continue}const w=Wl(x?.property,r);if(w){if(Array.isArray(w)){for(const b of w)m[b]=E;continue}w==="&"&&Yo(E)?m=Object.assign({},m,E):m[w]=E;continue}m[v]=E}return m};return u}var zA=e=>t=>Xz({theme:t,pseudos:Em,configs:Fx})(e);function Lt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Qz(e,t){if(Array.isArray(e))return e;if(Yo(e))return t(e);if(e!=null)return[e]}function Jz(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function eV(e){const t=e.__breakpoints;return function(r,o,i,s){var u,c;if(!t)return;const f={},p=Qz(i,t.toArrayValue);if(!p)return f;const h=p.length,m=h===1,v=!!r.parts;for(let y=0;y<h;y++){const x=t.details[y],E=t.details[Jz(p,y)],w=Tc(x.minW,E?._minW),b=Wl((u=r[o])==null?void 0:u[p[y]],s);if(!!b){if(v){(c=r.parts)==null||c.forEach(_=>{Ua(f,{[_]:m?b[_]:{[w]:b[_]}})});continue}if(!v){m?Ua(f,b):f[w]=b;continue}f[w]=b}}return f}}function tV(e){return t=>{const{variant:n,size:r,theme:o}=t,i=eV(o);return Ua({},Wl(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function nV(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function St(e){return Lz(e,["styleConfig","size","variant","colorScheme"])}function rV(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function oV(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var iV=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oV(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=rV(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$n="-ms-",w0="-moz-",ot="-webkit-",VA="comm",$x="rule",Bx="decl",aV="@import",WA="@keyframes",sV=Math.abs,Pm=String.fromCharCode,lV=Object.assign;function uV(e,t){return(((t<<2^cr(e,0))<<2^cr(e,1))<<2^cr(e,2))<<2^cr(e,3)}function jA(e){return e.trim()}function cV(e,t){return(e=t.exec(e))?e[0]:e}function ct(e,t,n){return e.replace(t,n)}function bb(e,t){return e.indexOf(t)}function cr(e,t){return e.charCodeAt(t)|0}function Cf(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function zx(e){return e.length}function Kp(e,t){return t.push(e),e}function fV(e,t){return e.map(t).join("")}var Am=1,mu=1,UA=0,br=0,rn=0,Pu="";function Tm(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Am,column:mu,length:s,return:""}}function vc(e,t){return lV(Tm("",null,null,"",null,null,0),e,{length:-e.length},t)}function dV(){return rn}function pV(){return rn=br>0?cr(Pu,--br):0,mu--,rn===10&&(mu=1,Am--),rn}function Nr(){return rn=br<UA?cr(Pu,br++):0,mu++,rn===10&&(mu=1,Am++),rn}function Jo(){return cr(Pu,br)}function Ih(){return br}function rd(e,t){return Cf(Pu,e,t)}function _f(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HA(e){return Am=mu=1,UA=Uo(Pu=e),br=0,[]}function GA(e){return Pu="",e}function Oh(e){return jA(rd(br-1,xb(e===91?e+2:e===40?e+1:e)))}function hV(e){for(;(rn=Jo())&&rn<33;)Nr();return _f(e)>2||_f(rn)>3?"":" "}function mV(e,t){for(;--t&&Nr()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return rd(e,Ih()+(t<6&&Jo()==32&&Nr()==32))}function xb(e){for(;Nr();)switch(rn){case e:return br;case 34:case 39:e!==34&&e!==39&&xb(rn);break;case 40:e===41&&xb(e);break;case 92:Nr();break}return br}function gV(e,t){for(;Nr()&&e+rn!==47+10;)if(e+rn===42+42&&Jo()===47)break;return"/*"+rd(t,br-1)+"*"+Pm(e===47?e:Nr())}function vV(e){for(;!_f(Jo());)Nr();return rd(e,br)}function yV(e){return GA(Rh("",null,null,null,[""],e=HA(e),0,[0],e))}function Rh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,y=0,x=1,E=1,w=1,b=0,_="",P=o,I=i,N=r,L=_;E;)switch(y=b,b=Nr()){case 40:if(y!=108&&L.charCodeAt(h-1)==58){bb(L+=ct(Oh(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:L+=Oh(b);break;case 9:case 10:case 13:case 32:L+=hV(y);break;case 92:L+=mV(Ih()-1,7);continue;case 47:switch(Jo()){case 42:case 47:Kp(bV(gV(Nr(),Ih()),t,n),c);break;default:L+="/"}break;case 123*x:u[f++]=Uo(L)*w;case 125*x:case 59:case 0:switch(b){case 0:case 125:E=0;case 59+p:v>0&&Uo(L)-h&&Kp(v>32?Z_(L+";",r,n,h-1):Z_(ct(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Kp(N=Y_(L,t,n,f,p,o,u,_,P=[],I=[],h),i),b===123)if(p===0)Rh(L,t,N,N,P,i,h,u,I);else switch(m){case 100:case 109:case 115:Rh(e,N,N,r&&Kp(Y_(e,N,N,0,0,o,u,_,o,P=[],h),I),o,I,h,u,r?P:I);break;default:Rh(L,N,N,N,[""],I,0,u,I)}}f=p=v=0,x=w=1,_=L="",h=s;break;case 58:h=1+Uo(L),v=y;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&pV()==125)continue}switch(L+=Pm(b),b*x){case 38:w=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(Uo(L)-1)*w,w=1;break;case 64:Jo()===45&&(L+=Oh(Nr())),m=Jo(),p=h=Uo(_=L+=vV(Ih())),b++;break;case 45:y===45&&Uo(L)==2&&(x=0)}}return i}function Y_(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=zx(m),y=0,x=0,E=0;y<r;++y)for(var w=0,b=Cf(e,h+1,h=sV(x=s[y])),_=e;w<v;++w)(_=jA(x>0?m[w]+" "+b:ct(b,/&\f/g,m[w])))&&(c[E++]=_);return Tm(e,t,n,o===0?$x:u,c,f,p)}function bV(e,t,n){return Tm(e,t,n,VA,Pm(dV()),Cf(e,2,-2),0)}function Z_(e,t,n,r){return Tm(e,t,n,Bx,Cf(e,0,r),Cf(e,r+1,-1),r)}function qA(e,t){switch(uV(e,t)){case 5103:return ot+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+w0+e+$n+e+e;case 6828:case 4268:return ot+e+$n+e+e;case 6165:return ot+e+$n+"flex-"+e+e;case 5187:return ot+e+ct(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+$n+"flex-$1$2")+e;case 5443:return ot+e+$n+"flex-item-"+ct(e,/flex-|-self/,"")+e;case 4675:return ot+e+$n+"flex-line-pack"+ct(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+$n+ct(e,"shrink","negative")+e;case 5292:return ot+e+$n+ct(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+ct(e,"-grow","")+ot+e+$n+ct(e,"grow","positive")+e;case 4554:return ot+ct(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return ct(ct(ct(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return ct(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return ct(ct(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+$n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return ct(e,/(.+)-inline(.+)/,ot+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(cr(e,t+1)){case 109:if(cr(e,t+4)!==45)break;case 102:return ct(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+w0+(cr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bb(e,"stretch")?qA(ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cr(e,t+1)!==115)break;case 6444:switch(cr(e,Uo(e)-3-(~bb(e,"!important")&&10))){case 107:return ct(e,":",":"+ot)+e;case 101:return ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(cr(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(cr(e,t+11)){case 114:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+$n+ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+$n+e+e}return e}function Jl(e,t){for(var n="",r=zx(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xV(e,t,n,r){switch(e.type){case aV:case Bx:return e.return=e.return||e.value;case VA:return"";case WA:return e.return=e.value+"{"+Jl(e.children,r)+"}";case $x:e.value=e.props.join(",")}return Uo(n=Jl(e.children,r))?e.return=e.value+"{"+n+"}":""}function SV(e){var t=zx(e);return function(n,r,o,i){for(var s="",u=0;u<t;u++)s+=e[u](n,r,o,i)||"";return s}}function wV(e){return function(t){t.root||(t=t.return)&&e(t)}}function CV(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bx:e.return=qA(e.value,e.length);break;case WA:return Jl([vc(e,{value:ct(e.value,"@","@"+ot)})],r);case $x:if(e.length)return fV(e.props,function(o){switch(cV(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jl([vc(e,{props:[ct(o,/:(read-\w+)/,":"+w0+"$1")]})],r);case"::placeholder":return Jl([vc(e,{props:[ct(o,/:(plac\w+)/,":"+ot+"input-$1")]}),vc(e,{props:[ct(o,/:(plac\w+)/,":"+w0+"$1")]}),vc(e,{props:[ct(o,/:(plac\w+)/,$n+"input-$1")]})],r)}return""})}}var X_=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function KA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _V=function(t,n,r){for(var o=0,i=0;o=i,i=Jo(),o===38&&i===12&&(n[r]=1),!_f(i);)Nr();return rd(t,br)},kV=function(t,n){var r=-1,o=44;do switch(_f(o)){case 0:o===38&&Jo()===12&&(n[r]=1),t[r]+=_V(br-1,n,r);break;case 2:t[r]+=Oh(o);break;case 4:if(o===44){t[++r]=Jo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Pm(o)}while(o=Nr());return t},EV=function(t,n){return GA(kV(HA(t),n))},Q_=new WeakMap,PV=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Q_.get(r))&&!o){Q_.set(t,!0);for(var i=[],s=EV(n,i),u=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,u[p]):u[p]+" "+s[c]}}},AV=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},TV=[CV],IV=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||TV,i={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),w=1;w<E.length;w++)i[E[w]]=!0;u.push(x)});var c,f=[PV,AV];{var p,h=[xV,wV(function(x){p.insert(x)})],m=SV(f.concat(o,h)),v=function(E){return Jl(yV(E),m)};c=function(E,w,b,_){p=b,v(E?E+"{"+w.styles+"}":w.styles),_&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new iV({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(u),y};function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}var YA={exports:{}},gt={};/** @license React v16.13.1
|
|
* react-is.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var xn=typeof Symbol=="function"&&Symbol.for,Vx=xn?Symbol.for("react.element"):60103,Wx=xn?Symbol.for("react.portal"):60106,Im=xn?Symbol.for("react.fragment"):60107,Om=xn?Symbol.for("react.strict_mode"):60108,Rm=xn?Symbol.for("react.profiler"):60114,Mm=xn?Symbol.for("react.provider"):60109,Nm=xn?Symbol.for("react.context"):60110,jx=xn?Symbol.for("react.async_mode"):60111,Lm=xn?Symbol.for("react.concurrent_mode"):60111,Dm=xn?Symbol.for("react.forward_ref"):60112,Fm=xn?Symbol.for("react.suspense"):60113,OV=xn?Symbol.for("react.suspense_list"):60120,$m=xn?Symbol.for("react.memo"):60115,Bm=xn?Symbol.for("react.lazy"):60116,RV=xn?Symbol.for("react.block"):60121,MV=xn?Symbol.for("react.fundamental"):60117,NV=xn?Symbol.for("react.responder"):60118,LV=xn?Symbol.for("react.scope"):60119;function zr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vx:switch(e=e.type,e){case jx:case Lm:case Im:case Rm:case Om:case Fm:return e;default:switch(e=e&&e.$$typeof,e){case Nm:case Dm:case Bm:case $m:case Mm:return e;default:return t}}case Wx:return t}}}function ZA(e){return zr(e)===Lm}gt.AsyncMode=jx;gt.ConcurrentMode=Lm;gt.ContextConsumer=Nm;gt.ContextProvider=Mm;gt.Element=Vx;gt.ForwardRef=Dm;gt.Fragment=Im;gt.Lazy=Bm;gt.Memo=$m;gt.Portal=Wx;gt.Profiler=Rm;gt.StrictMode=Om;gt.Suspense=Fm;gt.isAsyncMode=function(e){return ZA(e)||zr(e)===jx};gt.isConcurrentMode=ZA;gt.isContextConsumer=function(e){return zr(e)===Nm};gt.isContextProvider=function(e){return zr(e)===Mm};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vx};gt.isForwardRef=function(e){return zr(e)===Dm};gt.isFragment=function(e){return zr(e)===Im};gt.isLazy=function(e){return zr(e)===Bm};gt.isMemo=function(e){return zr(e)===$m};gt.isPortal=function(e){return zr(e)===Wx};gt.isProfiler=function(e){return zr(e)===Rm};gt.isStrictMode=function(e){return zr(e)===Om};gt.isSuspense=function(e){return zr(e)===Fm};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Im||e===Lm||e===Rm||e===Om||e===Fm||e===OV||typeof e=="object"&&e!==null&&(e.$$typeof===Bm||e.$$typeof===$m||e.$$typeof===Mm||e.$$typeof===Nm||e.$$typeof===Dm||e.$$typeof===MV||e.$$typeof===NV||e.$$typeof===LV||e.$$typeof===RV)};gt.typeOf=zr;(function(e){e.exports=gt})(YA);var XA=YA.exports,DV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QA={};QA[XA.ForwardRef]=DV;QA[XA.Memo]=FV;var $V=!0;function BV(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var JA=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||$V===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},e6=function(t,n,r){JA(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zV(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var VV={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},WV=/[A-Z]|^ms/g,jV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t6=function(t){return t.charCodeAt(1)===45},J_=function(t){return t!=null&&typeof t!="boolean"},M1=KA(function(e){return t6(e)?e:e.replace(WV,"-$&").toLowerCase()}),e4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jV,function(r,o,i){return Ho={name:o,styles:i,next:Ho},o})}return VV[t]!==1&&!t6(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ef(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ho={name:n.name,styles:n.styles,next:Ho},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ho={name:r.name,styles:r.styles,next:Ho},r=r.next;var o=n.styles+";";return o}return UV(e,t,n)}case"function":{if(e!==void 0){var i=Ho,s=n(e);return Ho=i,Ef(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function UV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ef(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":J_(s)&&(r+=M1(i)+":"+e4(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)J_(s[u])&&(r+=M1(i)+":"+e4(i,s[u])+";");else{var c=Ef(e,t,s);switch(i){case"animation":case"animationName":{r+=M1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var t4=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ho,Ux=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ho=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Ef(r,n,s)):i+=s[0];for(var u=1;u<t.length;u++)i+=Ef(r,n,t[u]),o&&(i+=s[u]);t4.lastIndex=0;for(var c="",f;(f=t4.exec(i))!==null;)c+="-"+f[1];var p=zV(i)+c;return{name:p,styles:i,next:Ho}},HV=function(t){return t()},n6=RC["useInsertionEffect"]?RC["useInsertionEffect"]:!1,GV=n6||HV,n4=n6||C.exports.useLayoutEffect,r6=C.exports.createContext(typeof HTMLElement<"u"?IV({key:"css"}):null);r6.Provider;var o6=function(t){return C.exports.forwardRef(function(n,r){var o=C.exports.useContext(r6);return t(n,o,r)})},Pf=C.exports.createContext({}),qV=function(t,n){if(typeof n=="function"){var r=n(t);return r}return kf({},t,n)},KV=X_(function(e){return X_(function(t){return qV(e,t)})}),YV=function(t){var n=C.exports.useContext(Pf);return t.theme!==n&&(n=KV(n)(t.theme)),C.exports.createElement(Pf.Provider,{value:n},t.children)},zm=o6(function(e,t){var n=e.styles,r=Ux([n],void 0,C.exports.useContext(Pf)),o=C.exports.useRef();return n4(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,u],function(){s.flush()}},[t]),n4(function(){var i=o.current,s=i[0],u=i[1];if(u){i[1]=!1;return}if(r.next!==void 0&&e6(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function ZV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ux(t)}var od=function(){var t=ZV.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function jl(e){return typeof e=="function"}var XV=!1;function i6(e){return"current"in e}function QV(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function JV(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var eW=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},a6=eW(JV);function s6(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var l6=e=>s6(e,t=>t!=null);function Hx(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Vm(e){if(!Hx(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function tW(e){var t;return Hx(e)?((t=id(e))==null?void 0:t.defaultView)??window:window}function id(e){return Hx(e)?e.ownerDocument??document:document}function nW(e){return e.view??window}function rW(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ad=rW();function oW(e){const t=id(e);return t?.activeElement}function Gx(e,t){return e?e===t||e.contains(t):!1}var u6=e=>e.hasAttribute("tabindex"),iW=e=>u6(e)&&e.tabIndex===-1;function aW(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function sW(e){return Vm(e)&&e.localName==="input"&&"select"in e}function c6(e){return(Vm(e)?id(e):document).activeElement===e}function f6(e){return e.parentElement&&f6(e.parentElement)?!0:e.hidden}function lW(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function d6(e){if(!Vm(e)||f6(e)||aW(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():lW(e)?!0:u6(e)}function uW(e){return e?Vm(e)&&d6(e)&&!iW(e):!1}var cW=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],fW=cW.join(),dW=e=>e.offsetWidth>0&&e.offsetHeight>0;function pW(e){const t=Array.from(e.querySelectorAll(fW));return t.unshift(e),t.filter(n=>d6(n)&&dW(n))}function C0(e,...t){return jl(e)?e(...t):e}function hW(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function mW(e){let t;return function(...r){return e&&(t=e.apply(this,r),e=null),t}}var gW=mW(e=>()=>{const{condition:t,message:n}=e;t&&XV&&console.warn(n)}),vW=(...e)=>t=>e.reduce((n,r)=>r(n),t);function _0(e,t={}){const{isActive:n=c6,nextTick:r,preventScroll:o=!0,selectTextIfInput:i=!0}=t;if(!e||n(e))return-1;function s(){if(!e){gW({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(yW())e.focus({preventScroll:o});else if(e.focus(),o){const u=bW(e);xW(u)}if(i){if(sW(e))e.select();else if("setSelectionRange"in e){const u=e;u.setSelectionRange(u.value.length,u.value.length)}}}return r?requestAnimationFrame(s):(s(),-1)}var Yp=null;function yW(){if(Yp==null){Yp=!1;try{document.createElement("div").focus({get preventScroll(){return Yp=!0,!0}})}catch{}}return Yp}function bW(e){const t=id(e),n=t.defaultView??window;let r=e.parentNode;const o=[],i=t.scrollingElement||t.documentElement;for(;r instanceof n.HTMLElement&&r!==i;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return i instanceof n.HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),o}function xW(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function SW(e){return!!e.touches}function wW(e){return t=>{const n=nW(t),r=t instanceof n.MouseEvent;(!r||r&&t.button===0)&&e(t)}}var CW={pageX:0,pageY:0};function _W(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||CW;return{x:r[`${t}X`],y:r[`${t}Y`]}}function kW(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function EW(e,t="page"){return{point:SW(e)?_W(e,t):kW(e,t)}}var PW=(e,t=!1)=>{const n=r=>e(r,EW(r));return t?wW(n):n},AW=()=>ad&&window.onpointerdown===null,TW=()=>ad&&window.ontouchstart===null,IW=()=>ad&&window.onmousedown===null,OW={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},RW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function MW(e){return AW()?e:TW()?RW[e]:IW()?OW[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function NW(e){const{userAgent:t,vendor:n}=e,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(r&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function LW(e){return ad?NW(window.navigator)===e:!1}function DW(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=C.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=C.exports.useContext(o);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,i),c}return u}return[o.Provider,i,o]}var FW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$W=KA(function(e){return FW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),BW=$W,zW=function(t){return t!=="theme"},r4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?BW:zW},o4=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},VW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return JA(n,r,o),GV(function(){return e6(n,r,o)}),null},WW=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var u=o4(t,n,r),c=u||r4(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var y=o6(function(x,E,w){var b=f&&x.as||o,_="",P=[],I=x;if(x.theme==null){I={};for(var N in x)I[N]=x[N];I.theme=C.exports.useContext(Pf)}typeof x.className=="string"?_=BV(E.registered,P,x.className):x.className!=null&&(_=x.className+" ");var L=Ux(h.concat(P),E.registered,I);_+=E.key+"-"+L.name,s!==void 0&&(_+=" "+s);var z=f&&u===void 0?r4(b):c,K={};for(var W in x)f&&W==="as"||z(W)&&(K[W]=x[W]);return K.className=_,K.ref=w,C.exports.createElement(C.exports.Fragment,null,C.exports.createElement(VW,{cache:E,serialized:L,isStringTag:typeof b=="string"}),C.exports.createElement(b,K))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=h,y.__emotion_forwardProp=u,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(x,E){return e(x,kf({},n,E,{shouldForwardProp:o4(y,E,!0)})).apply(void 0,h)},y}},jW=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Sb=WW.bind();jW.forEach(function(e){Sb[e]=Sb(e)});var UW=typeof Element<"u",HW=typeof Map=="function",GW=typeof Set=="function",qW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Mh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Mh(e[r],t[r]))return!1;return!0}var i;if(HW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Mh(r.value[1],t.get(r.value[0])))return!1;return!0}if(GW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(qW&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(UW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Mh(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var KW=function(t,n){try{return Mh(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function Wm(){const e=C.exports.useContext(Pf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function p6(){const e=_m(),t=Wm();return{...e,theme:t}}function YW(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return r(t)??r(n)??n}function ZW(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function XW(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),u=r.map((c,f)=>{if(e==="breakpoints")return YW(i,c,s[f]??c);const p=`${e}.${c}`;return ZW(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function QW(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=C.exports.useMemo(()=>Wz(n),[n]);return ee(YV,{theme:o,children:[S(JW,{root:t}),r]})}function JW({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return S(zm,{styles:n=>({[t]:n.__cssVars})})}DW({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function ej(){const{colorMode:e}=_m();return S(zm,{styles:t=>{const n=a6(t,"styles.global"),r=C0(n,{theme:t,colorMode:e});return r?zA(r)(t):void 0}})}var tj=new Set([...Hz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),nj=new Set(["htmlWidth","htmlHeight","htmlSize"]);function rj(e){return nj.has(e)||!tj.has(e)}var oj=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=s6(s,(h,m)=>qz(m)),c=C0(e,t),f=Object.assign({},o,c,l6(u),i),p=zA(f)(t.theme);return r?[p,r]:p};function N1(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=rj);const o=oj({baseStyle:n});return Sb(e,r)(o)}function ce(e){return C.exports.forwardRef(e)}function h6(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=p6(),s=a6(o,`components.${e}`),u=n||s,c=Ua({theme:o,colorMode:i},u?.defaultProps??{},l6(QV(r,["children"]))),f=C.exports.useRef({});if(u){const h=tV(u)(c);KW(f.current,h)||(f.current=h)}return f.current}function rr(e,t={}){return h6(e,t)}function xr(e,t={}){return h6(e,t)}function ij(){const e=new Map;return new Proxy(N1,{apply(t,n,r){return N1(...r)},get(t,n){return e.has(n)||e.set(n,N1(n)),e.get(n)}})}var ie=ij();function aj(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=C.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=C.exports.useContext(s);if(!f&&n){const p=new Error(i??aj(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function sj(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function sn(...e){return t=>{e.forEach(n=>{sj(n,t)})}}function lj(...e){return C.exports.useMemo(()=>sn(...e),e)}function i4(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var uj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function a4(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function s4(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wb=typeof window<"u"?C.exports.useLayoutEffect:C.exports.useEffect,k0=e=>e,cj=class{descendants=new Map;register=e=>{if(e!=null)return uj(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=i4(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=a4(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=a4(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=s4(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=s4(r,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=i4(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function fj(){const e=C.exports.useRef(new cj);return wb(()=>()=>e.current.destroy()),e.current}var[dj,m6]=Wt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function pj(e){const t=m6(),[n,r]=C.exports.useState(-1),o=C.exports.useRef(null);wb(()=>()=>{!o.current||t.unregister(o.current)},[]),wb(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=k0(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:sn(i,o)}}function hj(){return[k0(dj),()=>k0(m6()),()=>fj(),o=>pj(o)]}var Zt=(...e)=>e.filter(Boolean).join(" "),l4={path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),S("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ao=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Zt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??l4.viewBox;if(n&&typeof n!="string")return J.createElement(ie.svg,{as:n,...m,...f});const y=s??l4.path;return J.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});ao.displayName="Icon";function Vn(e,t=[]){const n=C.exports.useRef(e);return C.exports.useEffect(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function mj(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Vn(r),s=Vn(o),[u,c]=C.exports.useState(n),f=t!==void 0,p=f?t:u,h=C.exports.useCallback(m=>{const y=typeof m=="function"?m(p):m;!s(p,y)||(f||c(y),i(y))},[f,i,p,s]);return[p,h]}const qx=C.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jm=C.exports.createContext({});function gj(){return C.exports.useContext(jm).visualElement}const Au=C.exports.createContext(null),Us=typeof document<"u",E0=Us?C.exports.useLayoutEffect:C.exports.useEffect,g6=C.exports.createContext({strict:!1});function vj(e,t,n,r){const o=gj(),i=C.exports.useContext(g6),s=C.exports.useContext(Au),u=C.exports.useContext(qx).reducedMotion,c=C.exports.useRef(void 0);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;return E0(()=>{f&&f.syncRender()}),C.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),E0(()=>()=>f&&f.notifyUnmount(),[]),f}function Ul(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yj(e,t,n){return C.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ul(n)&&(n.current=r))},[t])}function Af(e){return typeof e=="string"||Array.isArray(e)}function Um(e){return typeof e=="object"&&typeof e.start=="function"}const bj=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Hm(e){return Um(e.animate)||bj.some(t=>Af(e[t]))}function v6(e){return Boolean(Hm(e)||e.variants)}function xj(e,t){if(Hm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Af(n)?n:void 0,animate:Af(r)?r:void 0}}return e.inherit!==!1?t:{}}function Sj(e){const{initial:t,animate:n}=xj(e,C.exports.useContext(jm));return C.exports.useMemo(()=>({initial:t,animate:n}),[u4(t),u4(n)])}function u4(e){return Array.isArray(e)?e.join(" "):e}const ki=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Tf={measureLayout:ki(["layout","layoutId","drag"]),animation:ki(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ki(["exit"]),drag:ki(["drag","dragControls"]),focus:ki(["whileFocus"]),hover:ki(["whileHover","onHoverStart","onHoverEnd"]),tap:ki(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ki(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ki(["whileInView","onViewportEnter","onViewportLeave"])};function wj(e){for(const t in e)t==="projectionNodeConstructor"?Tf.projectionNodeConstructor=e[t]:Tf[t].Component=e[t]}function Gm(e){const t=C.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Uc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Cj=1;function _j(){return Gm(()=>{if(Uc.hasEverUpdated)return Cj++})}const Kx=C.exports.createContext({});class kj extends J.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const y6=C.exports.createContext({}),Ej=Symbol.for("motionComponentSymbol");function Pj({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&wj(e);function s(c,f){const p={...C.exports.useContext(qx),...c,layoutId:Aj(c)},{isStatic:h}=p;let m=null;const v=Sj(c),y=h?void 0:_j(),x=o(c,h);if(!h&&Us){v.visualElement=vj(i,x,p,t);const E=C.exports.useContext(g6).strict,w=C.exports.useContext(y6);v.visualElement&&(m=v.visualElement.loadFeatures(p,E,e,y,n||Tf.projectionNodeConstructor,w))}return ee(kj,{visualElement:v.visualElement,props:p,children:[m,S(jm.Provider,{value:v,children:r(i,c,y,yj(x,v.visualElement,f),x,h,v.visualElement)})]})}const u=C.exports.forwardRef(s);return u[Ej]=i,u}function Aj({layoutId:e}){const t=C.exports.useContext(Kx).id;return t&&e!==void 0?t+"-"+e:e}function Tj(e){function t(r,o={}){return Pj(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Ij=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Yx(e){return typeof e!="string"||e.includes("-")?!1:!!(Ij.indexOf(e)>-1||/[A-Z]/.test(e))}const P0={};function Oj(e){Object.assign(P0,e)}const A0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sd=new Set(A0);function b6(e,{layout:t,layoutId:n}){return sd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!P0[e]||e==="opacity")}const ai=e=>!!e?.getVelocity,Rj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mj=(e,t)=>A0.indexOf(e)-A0.indexOf(t);function Nj({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(Mj);for(const u of t)s+=`${Rj[u]||u}(${e[u]}) `;return n&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):r&&o&&(s="none"),s}function x6(e){return e.startsWith("--")}const Lj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,S6=(e,t)=>n=>Math.max(Math.min(n,t),e),Hc=e=>e%1?Number(e.toFixed(5)):e,If=/(-)?([\d]*\.?[\d])+/g,Cb=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Dj=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ld(e){return typeof e=="string"}const Hs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gc=Object.assign(Object.assign({},Hs),{transform:S6(0,1)}),Zp=Object.assign(Object.assign({},Hs),{default:1}),ud=e=>({test:t=>ld(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ha=ud("deg"),ei=ud("%"),Ne=ud("px"),Fj=ud("vh"),$j=ud("vw"),c4=Object.assign(Object.assign({},ei),{parse:e=>ei.parse(e)/100,transform:e=>ei.transform(e*100)}),Zx=(e,t)=>n=>Boolean(ld(n)&&Dj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),w6=(e,t,n)=>r=>{if(!ld(r))return r;const[o,i,s,u]=r.match(If);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Es={test:Zx("hsl","hue"),parse:w6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ei.transform(Hc(t))+", "+ei.transform(Hc(n))+", "+Hc(Gc.transform(r))+")"},Bj=S6(0,255),L1=Object.assign(Object.assign({},Hs),{transform:e=>Math.round(Bj(e))}),Pa={test:Zx("rgb","red"),parse:w6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+L1.transform(e)+", "+L1.transform(t)+", "+L1.transform(n)+", "+Hc(Gc.transform(r))+")"};function zj(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const _b={test:Zx("#"),parse:zj,transform:Pa.transform},Xn={test:e=>Pa.test(e)||_b.test(e)||Es.test(e),parse:e=>Pa.test(e)?Pa.parse(e):Es.test(e)?Es.parse(e):_b.parse(e),transform:e=>ld(e)?e:e.hasOwnProperty("red")?Pa.transform(e):Es.transform(e)},C6="${c}",_6="${n}";function Vj(e){var t,n,r,o;return isNaN(e)&&ld(e)&&((n=(t=e.match(If))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(Cb))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function k6(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Cb);r&&(n=r.length,e=e.replace(Cb,C6),t.push(...r.map(Xn.parse)));const o=e.match(If);return o&&(e=e.replace(If,_6),t.push(...o.map(Hs.parse))),{values:t,numColors:n,tokenised:e}}function E6(e){return k6(e).values}function P6(e){const{values:t,numColors:n,tokenised:r}=k6(e),o=t.length;return i=>{let s=r;for(let u=0;u<o;u++)s=s.replace(u<n?C6:_6,u<n?Xn.transform(i[u]):Hc(i[u]));return s}}const Wj=e=>typeof e=="number"?0:e;function jj(e){const t=E6(e);return P6(e)(t.map(Wj))}const Gi={test:Vj,parse:E6,createTransformer:P6,getAnimatableNone:jj},Uj=new Set(["brightness","contrast","saturate","opacity"]);function Hj(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(If)||[];if(!r)return e;const o=n.replace(r,"");let i=Uj.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Gj=/([a-z-]*)\(.*?\)/g,kb=Object.assign(Object.assign({},Gi),{getAnimatableNone:e=>{const t=e.match(Gj);return t?t.map(Hj).join(" "):e}}),f4={...Hs,transform:Math.round},A6={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,size:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:Zp,scaleX:Zp,scaleY:Zp,scaleZ:Zp,skew:ha,skewX:ha,skewY:ha,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:Gc,originX:c4,originY:c4,originZ:Ne,zIndex:f4,fillOpacity:Gc,strokeOpacity:Gc,numOctaves:f4};function Xx(e,t,n,r){const{style:o,vars:i,transform:s,transformKeys:u,transformOrigin:c}=e;u.length=0;let f=!1,p=!1,h=!0;for(const m in t){const v=t[m];if(x6(m)){i[m]=v;continue}const y=A6[m],x=Lj(v,y);if(sd.has(m)){if(f=!0,s[m]=x,u.push(m),!h)continue;v!==(y.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=x):o[m]=x}if(f||r?o.transform=Nj(e,n,h,r):!t.transform&&o.transform&&(o.transform="none"),p){const{originX:m="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${m} ${v} ${y}`}}const Qx=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function T6(e,t,n){for(const r in t)!ai(t[r])&&!b6(r,n)&&(e[r]=t[r])}function qj({transformTemplate:e},t,n){return C.exports.useMemo(()=>{const r=Qx();return Xx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Kj(e,t,n){const r=e.style||{},o={};return T6(o,r,e),Object.assign(o,qj(e,t,n)),e.transformValues?e.transformValues(o):o}function Yj(e,t,n){const r={},o=Kj(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=o,r}const Zj=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],Xj=["whileTap","onTap","onTapStart","onTapCancel"],Qj=["onPan","onPanStart","onPanSessionStart","onPanEnd"],Jj=["whileInView","onViewportEnter","onViewportLeave","viewport"],eU=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...Jj,...Xj,...Zj,...Qj]);function T0(e){return eU.has(e)}let I6=e=>!T0(e);function tU(e){!e||(I6=t=>t.startsWith("on")?!T0(t):e(t))}try{tU(require("@emotion/is-prop-valid").default)}catch{}function nU(e,t,n){const r={};for(const o in e)(I6(o)||n===!0&&T0(o)||!t&&!T0(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function d4(e,t,n){return typeof e=="string"?e:Ne.transform(t+n*e)}function rU(e,t,n){const r=d4(t,e.x,e.width),o=d4(n,e.y,e.height);return`${r} ${o}`}const oU={offset:"stroke-dashoffset",array:"stroke-dasharray"},iU={offset:"strokeDashoffset",array:"strokeDasharray"};function aU(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?oU:iU;e[i.offset]=Ne.transform(-r);const s=Ne.transform(t),u=Ne.transform(n);e[i.array]=`${s} ${u}`}function Jx(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){Xx(e,c,f,p),e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:v}=e;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rU(v,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&aU(h,i,s,u,!1)}const O6=()=>({...Qx(),attrs:{}});function sU(e,t){const n=C.exports.useMemo(()=>{const r=O6();return Jx(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};T6(r,e.style,e),n.style={...r,...n.style}}return n}function lU(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(Yx(n)?sU:Yj)(r,s,u),h={...nU(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),C.exports.createElement(n,h)}}const R6=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function M6(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const N6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function L6(e,t,n,r){M6(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(N6.has(o)?o:R6(o),t.attrs[o])}function eS(e){const{style:t}=e,n={};for(const r in t)(ai(t[r])||b6(r,e))&&(n[r]=t[r]);return n}function D6(e){const t=eS(e);for(const n in e)if(ai(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function F6(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}const Of=e=>Array.isArray(e),uU=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),$6=e=>Of(e)?e[e.length-1]||0:e;function Nh(e){const t=ai(e)?e.get():e;return uU(t)?t.toValue():t}function cU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:fU(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const B6=e=>(t,n)=>{const r=C.exports.useContext(jm),o=C.exports.useContext(Au),i=()=>cU(e,t,r,o);return n?i():Gm(i)};function fU(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=Nh(i[m]);let{initial:s,animate:u}=e;const c=Hm(e),f=v6(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Um(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=F6(e,v);if(!y)return;const{transitionEnd:x,transition:E,...w}=y;for(const b in w){let _=w[b];if(Array.isArray(_)){const P=p?_.length-1:0;_=_[P]}_!==null&&(o[b]=_)}for(const b in x)o[b]=x[b]}),o}const dU={useVisualState:B6({scrapeMotionValuesFromProps:D6,createRenderState:O6,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Jx(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),L6(t,n)}})},pU={useVisualState:B6({scrapeMotionValuesFromProps:eS,createRenderState:Qx})};function hU(e,{forwardMotionProps:t=!1},n,r,o){return{...Yx(e)?dU:pU,preloadedFeatures:n,useRender:lU(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var Et;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Et||(Et={}));function qm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Eb(e,t,n,r){C.exports.useEffect(()=>{const o=e.current;if(n&&o)return qm(o,t,n,r)},[e,t,n,r])}function mU({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Et.Focus,!0)},o=()=>{n&&n.setActive(Et.Focus,!1)};Eb(t,"focus",e?r:void 0),Eb(t,"blur",e?o:void 0)}function z6(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function V6(e){return!!e.touches}function gU(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const vU={pageX:0,pageY:0};function yU(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||vU;return{x:r[t+"X"],y:r[t+"Y"]}}function bU(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function tS(e,t="page"){return{point:V6(e)?yU(e,t):bU(e,t)}}const W6=(e,t=!1)=>{const n=r=>e(r,tS(r));return t?gU(n):n},xU=()=>Us&&window.onpointerdown===null,SU=()=>Us&&window.ontouchstart===null,wU=()=>Us&&window.onmousedown===null,CU={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},_U={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function j6(e){return xU()?e:SU()?_U[e]:wU()?CU[e]:e}function eu(e,t,n,r){return qm(e,j6(t),W6(n,t==="pointerdown"),r)}function I0(e,t,n,r){return Eb(e,j6(t),n&&W6(n,t==="pointerdown"),r)}function U6(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const p4=U6("dragHorizontal"),h4=U6("dragVertical");function H6(e){let t=!1;if(e==="y")t=h4();else if(e==="x")t=p4();else{const n=p4(),r=h4();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function G6(){const e=H6(!0);return e?(e(),!1):!0}function m4(e,t,n){return(r,o)=>{!z6(r)||G6()||(e.animationState&&e.animationState.setActive(Et.Hover,t),n&&n(r,o))}}function kU({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){I0(r,"pointerenter",e||n?m4(r,!0,e):void 0,{passive:!e}),I0(r,"pointerleave",t||n?m4(r,!1,t):void 0,{passive:!t})}const q6=(e,t)=>t?e===t?!0:q6(e,t.parentElement):!1;function nS(e){return C.exports.useEffect(()=>()=>e(),[])}var qo=function(){return qo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qo.apply(this,arguments)};function Km(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Tu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(u,c)}f((r=r.apply(e,t||[])).next())})}function Iu(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(f){return function(p){return c([f,p])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(p){f=[6,p],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function g4(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Pb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var EU=function(){},O0=function(){};const R0=(e,t,n)=>Math.min(Math.max(n,e),t),D1=.001,PU=.01,v4=10,AU=.05,TU=1;function IU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;EU(e<=v4*1e3);let s=1-t;s=R0(AU,TU,s),e=R0(PU,v4,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=Ab(f,s),y=Math.exp(-h);return D1-m/v*y},i=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,y=Math.exp(-h),x=Ab(Math.pow(f,2),s);return(-o(f)+D1>0?-1:1)*((m-v)*y)/x}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-D1+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=RU(o,i,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const OU=12;function RU(e,t,n){let r=n;for(let o=1;o<OU;o++)r=r-e(r)/t(r);return r}function Ab(e,t){return e*Math.sqrt(1-t*t)}const MU=["duration","bounce"],NU=["stiffness","damping","mass"];function y4(e,t){return t.some(n=>e[n]!==void 0)}function LU(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!y4(e,NU)&&y4(e,MU)){const n=IU(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function rS(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Km(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=LU(i),v=b4,y=b4;function x(){const E=p?-(p/1e3):0,w=n-t,b=c/(2*Math.sqrt(u*f)),_=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),b<1){const P=Ab(_,b);v=I=>{const N=Math.exp(-b*_*I);return n-N*((E+b*_*w)/P*Math.sin(P*I)+w*Math.cos(P*I))},y=I=>{const N=Math.exp(-b*_*I);return b*_*N*(Math.sin(P*I)*(E+b*_*w)/P+w*Math.cos(P*I))-N*(Math.cos(P*I)*(E+b*_*w)-P*w*Math.sin(P*I))}}else if(b===1)v=P=>n-Math.exp(-_*P)*(w+(E+_*w)*P);else{const P=_*Math.sqrt(b*b-1);v=I=>{const N=Math.exp(-b*_*I),L=Math.min(P*I,300);return n-N*((E+b*_*w)*Math.sinh(L)+P*w*Math.cosh(L))/P}}}return x(),{next:E=>{const w=v(E);if(m)s.done=E>=h;else{const b=y(E)*1e3,_=Math.abs(b)<=r,P=Math.abs(n-w)<=o;s.done=_&&P}return s.value=s.done?n:w,s},flipTarget:()=>{p=-p,[t,n]=[n,t],x()}}}rS.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const b4=e=>0,Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qt=(e,t,n)=>-n*e+n*t+e;function F1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function x4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=F1(c,u,e+1/3),i=F1(c,u,e),s=F1(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const DU=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},FU=[_b,Pa,Es],S4=e=>FU.find(t=>t.test(e)),K6=(e,t)=>{let n=S4(e),r=S4(t),o=n.parse(e),i=r.parse(t);n===Es&&(o=x4(o),n=Pa),r===Es&&(i=x4(i),r=Pa);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=DU(o[c],i[c],u));return s.alpha=qt(o.alpha,i.alpha,u),n.transform(s)}},Tb=e=>typeof e=="number",$U=(e,t)=>n=>t(e(n)),Ym=(...e)=>e.reduce($U);function Y6(e,t){return Tb(e)?n=>qt(e,t,n):Xn.test(e)?K6(e,t):X6(e,t)}const Z6=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Y6(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},BU=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Y6(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function w4(e){const t=Gi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const X6=(e,t)=>{const n=Gi.createTransformer(t),r=w4(e),o=w4(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Ym(Z6(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},zU=(e,t)=>n=>qt(e,t,n);function VU(e){if(typeof e=="number")return zU;if(typeof e=="string")return Xn.test(e)?K6:X6;if(Array.isArray(e))return Z6;if(typeof e=="object")return BU}function WU(e,t,n){const r=[],o=n||VU(e[0]),i=e.length-1;for(let s=0;s<i;s++){let u=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;u=Ym(c,u)}r.push(u)}return r}function jU([e,t],[n]){return r=>n(Rf(e,t,r))}function UU(e,t){const n=e.length,r=n-1;return o=>{let i=0,s=!1;if(o<=e[0]?s=!0:o>=e[r]&&(i=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>o||c===r);c++);i=c-1}const u=Rf(e[i],e[i+1],o);return t[i](u)}}function Q6(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;O0(i===t.length),O0(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=WU(t,r,o),u=i===2?jU(e,s):UU(e,s);return n?c=>u(R0(e[0],e[i-1],c)):u}const Zm=e=>t=>1-e(1-t),oS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HU=e=>t=>Math.pow(t,e),J6=e=>t=>t*t*((e+1)*t-e),GU=e=>{const t=J6(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},eT=1.525,qU=4/11,KU=8/11,YU=9/10,iS=e=>e,aS=HU(2),ZU=Zm(aS),tT=oS(aS),nT=e=>1-Math.sin(Math.acos(e)),sS=Zm(nT),XU=oS(sS),lS=J6(eT),QU=Zm(lS),JU=oS(lS),eH=GU(eT),tH=4356/361,nH=35442/1805,rH=16061/1805,M0=e=>{if(e===1||e===0)return e;const t=e*e;return e<qU?7.5625*t:e<KU?9.075*t-9.9*e+3.4:e<YU?tH*t-nH*e+rH:10.8*e*e-20.52*e+10.72},oH=Zm(M0),iH=e=>e<.5?.5*(1-M0(1-e*2)):.5*M0(e*2-1)+.5;function aH(e,t){return e.map(()=>t||tT).splice(0,e.length-1)}function sH(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function lH(e,t){return e.map(n=>n*t)}function Lh({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=lH(r&&r.length===s.length?r:sH(s),o);function c(){return Q6(u,s,{ease:Array.isArray(n)?n:aH(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function uH({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const s={done:!1,value:t};let u=n*e;const c=t+u,f=i===void 0?c:i(c);return f!==c&&(u=f-t),{next:p=>{const h=-u*Math.exp(-p/r);return s.done=!(h>o||h<-o),s.value=s.done?f:f+h,s},flipTarget:()=>{}}}const C4={keyframes:Lh,spring:rS,decay:uH};function cH(e){if(Array.isArray(e.to))return Lh;if(C4[e.type])return C4[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Lh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?rS:Lh}const rT=1/60*1e3,fH=typeof performance<"u"?()=>performance.now():()=>Date.now(),oT=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(fH()),rT);function dH(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f<r;f++){const p=t[f];p(c),s.has(p)&&(u.schedule(p),e())}o=!1,i&&(i=!1,u.process(c))}};return u}const pH=40;let Ib=!0,Mf=!1,Ob=!1;const tu={delta:0,timestamp:0},cd=["read","update","preRender","render","postRender"],Xm=cd.reduce((e,t)=>(e[t]=dH(()=>Mf=!0),e),{}),hH=cd.reduce((e,t)=>{const n=Xm[t];return e[t]=(r,o=!1,i=!1)=>(Mf||vH(),n.schedule(r,o,i)),e},{}),mH=cd.reduce((e,t)=>(e[t]=Xm[t].cancel,e),{});cd.reduce((e,t)=>(e[t]=()=>Xm[t].process(tu),e),{});const gH=e=>Xm[e].process(tu),iT=e=>{Mf=!1,tu.delta=Ib?rT:Math.max(Math.min(e-tu.timestamp,pH),1),tu.timestamp=e,Ob=!0,cd.forEach(gH),Ob=!1,Mf&&(Ib=!1,oT(iT))},vH=()=>{Mf=!0,Ib=!0,Ob||oT(iT)},yH=()=>tu;function aT(e,t,n=0){return e-t-n}function bH(e,t,n=0,r=!0){return r?aT(t+-e,t,n):t-(e-t)+n}function xH(e,t,n,r){return r?e>=t+n:e<=-n}const SH=e=>{const t=({delta:n})=>e(n);return{start:()=>hH.update(t,!0),stop:()=>mH.update(t)}};function sT(e){var t,n,{from:r,autoplay:o=!0,driver:i=SH,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:y}=e,x=Km(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=x,w,b=0,_=x.duration,P,I=!1,N=!0,L;const z=cH(x);!((n=(t=z).needsInterpolation)===null||n===void 0)&&n.call(t,r,E)&&(L=Q6([0,100],[r,E],{clamp:!1}),r=0,E=100);const K=z(Object.assign(Object.assign({},x),{from:r,to:E}));function W(){b++,c==="reverse"?(N=b%2===0,s=bH(s,_,f,N)):(s=aT(s,_,f),c==="mirror"&&K.flipTarget()),I=!1,v&&v()}function te(){w.stop(),m&&m()}function be(ye){if(N||(ye=-ye),s+=ye,!I){const Ce=K.next(Math.max(0,s));P=Ce.value,L&&(P=L(P)),I=N?Ce.done:s<=0}y?.(P),I&&(b===0&&(_??(_=s)),b<u?xH(s,_,f,N)&&W():te())}function _e(){p?.(),w=i(be),w.start()}return o&&_e(),{stop:()=>{h?.(),w.stop()}}}function lT(e,t){return t?e*(1e3/t):0}function wH({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:h,onComplete:m,onStop:v}){let y;function x(_){return n!==void 0&&_<n||r!==void 0&&_>r}function E(_){return n===void 0?r:r===void 0||Math.abs(n-_)<Math.abs(r-_)?n:r}function w(_){y?.stop(),y=sT(Object.assign(Object.assign({},_),{driver:p,onUpdate:P=>{var I;h?.(P),(I=_.onUpdate)===null||I===void 0||I.call(_,P)},onComplete:m,onStop:v}))}function b(_){w(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},_))}if(x(e))b({from:e,velocity:t,to:E(e)});else{let _=o*t+e;typeof f<"u"&&(_=f(_));const P=E(_),I=P===n?-1:1;let N,L;const z=K=>{N=L,L=K,t=lT(K-N,yH().delta),(I===1&&K>P||I===-1&&K<P)&&b({from:K,to:P,velocity:t})};w({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:c,modifyTarget:f,onUpdate:x(_)?z:void 0})}return{stop:()=>y?.stop()}}const Rb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),_4=e=>Rb(e)&&e.hasOwnProperty("z"),Xp=(e,t)=>Math.abs(e-t);function uS(e,t){if(Tb(e)&&Tb(t))return Xp(e,t);if(Rb(e)&&Rb(t)){const n=Xp(e.x,t.x),r=Xp(e.y,t.y),o=_4(e)&&_4(t)?Xp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const uT=(e,t)=>1-3*t+3*e,cT=(e,t)=>3*t-6*e,fT=e=>3*e,N0=(e,t,n)=>((uT(t,n)*e+cT(t,n))*e+fT(t))*e,dT=(e,t,n)=>3*uT(t,n)*e*e+2*cT(t,n)*e+fT(t),CH=1e-7,_H=10;function kH(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=N0(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>CH&&++u<_H);return s}const EH=8,PH=.001;function AH(e,t,n,r){for(let o=0;o<EH;++o){const i=dT(t,n,r);if(i===0)return t;t-=(N0(t,n,r)-e)/i}return t}const Dh=11,Qp=1/(Dh-1);function TH(e,t,n,r){if(e===t&&n===r)return iS;const o=new Float32Array(Dh);for(let s=0;s<Dh;++s)o[s]=N0(s*Qp,e,n);function i(s){let u=0,c=1;const f=Dh-1;for(;c!==f&&o[c]<=s;++c)u+=Qp;--c;const p=(s-o[c])/(o[c+1]-o[c]),h=u+p*Qp,m=dT(h,e,n);return m>=PH?AH(s,h,e,n):m===0?h:kH(s,u,u+Qp,e,n)}return s=>s===0||s===1?s:N0(i(s),t,r)}function IH({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(!1),u=C.exports.useRef(null),c={passive:!(t||e||n||v)};function f(){u.current&&u.current(),u.current=null}function p(){return f(),s.current=!1,o.animationState&&o.animationState.setActive(Et.Tap,!1),!G6()}function h(y,x){!p()||(q6(o.getInstance(),y.target)?e&&e(y,x):n&&n(y,x))}function m(y,x){!p()||n&&n(y,x)}function v(y,x){f(),!s.current&&(s.current=!0,u.current=Ym(eu(window,"pointerup",h,c),eu(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(Et.Tap,!0),t&&t(y,x))}I0(o,"pointerdown",i?v:void 0,c),nS(f)}const OH="production",pT=typeof process>"u"||process.env===void 0?OH:"production",k4=new Set;function hT(e,t,n){e||k4.has(t)||(console.warn(t),n&&console.warn(n),k4.add(t))}const Mb=new WeakMap,$1=new WeakMap,RH=e=>{const t=Mb.get(e.target);t&&t(e)},MH=e=>{e.forEach(RH)};function NH({root:e,...t}){const n=e||document;$1.has(n)||$1.set(n,{});const r=$1.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(MH,{root:e,...t})),r[o]}function LH(e,t,n){const r=NH(t);return Mb.set(e,n),r.observe(e),()=>{Mb.delete(e),r.unobserve(e)}}function DH({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=C.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?BH:$H)(s,i.current,e,o)}const FH={some:0,all:1};function $H(e,t,n,{root:r,margin:o,amount:i="some",once:s}){C.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:FH[i]},c=f=>{const{isIntersecting:p}=f;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Et.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return LH(n.getInstance(),u,c)},[e,r,o,i])}function BH(e,t,n,{fallback:r=!0}){C.exports.useEffect(()=>{!e||!r||(pT!=="production"&&hT(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Et.InView,!0)}))},[e])}const Aa=e=>t=>(e(t),null),zH={inView:Aa(DH),tap:Aa(IH),focus:Aa(mU),hover:Aa(kU)};function cS(){const e=C.exports.useContext(Au);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.exports.useId();return C.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function VH(){return WH(C.exports.useContext(Au))}function WH(e){return e===null?!0:e.isPresent}function mT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const L0=e=>e*1e3,jH={linear:iS,easeIn:aS,easeInOut:tT,easeOut:ZU,circIn:nT,circInOut:XU,circOut:sS,backIn:lS,backInOut:JU,backOut:QU,anticipate:eH,bounceIn:oH,bounceInOut:iH,bounceOut:M0},E4=e=>{if(Array.isArray(e)){O0(e.length===4);const[t,n,r,o]=e;return TH(t,n,r,o)}else if(typeof e=="string")return jH[e];return e},UH=e=>Array.isArray(e)&&typeof e[0]!="number",P4=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Gi.test(t)&&!t.startsWith("url(")),cs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Jp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),B1=()=>({type:"keyframes",ease:"linear",duration:.3}),HH=e=>({type:"keyframes",duration:.8,values:e}),A4={x:cs,y:cs,z:cs,rotate:cs,rotateX:cs,rotateY:cs,rotateZ:cs,scaleX:Jp,scaleY:Jp,scale:Jp,opacity:B1,backgroundColor:B1,color:B1,default:Jp},GH=(e,t)=>{let n;return Of(t)?n=HH:n=A4[e]||A4.default,{to:t,...n(t)}},qH={...A6,color:Xn,backgroundColor:Xn,outlineColor:Xn,fill:Xn,stroke:Xn,borderColor:Xn,borderTopColor:Xn,borderRightColor:Xn,borderBottomColor:Xn,borderLeftColor:Xn,filter:kb,WebkitFilter:kb},fS=e=>qH[e];function dS(e,t){var n;let r=fS(e);return r!==kb&&(r=Gi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const KH={current:!1};function YH({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:c,...f}){return!!Object.keys(f).length}function ZH({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=L0(i.duration)),i.repeatDelay&&(s.repeatDelay=L0(i.repeatDelay)),e&&(s.ease=UH(e)?e.map(E4):E4(e)),i.type==="tween"&&(s.type="keyframes"),(n||o||r)&&(n?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||n||r||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function XH(e,t){var n,r;return(r=(n=(pS(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function QH(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function JH(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),QH(t),YH(e)||(e={...e,...GH(n,t.to)}),{...t,...ZH(e)}}function eG(e,t,n,r,o){const i=pS(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=P4(e,n);s==="none"&&u&&typeof n=="string"?s=dS(e,n):T4(s)&&typeof n=="string"?s=I4(n):!Array.isArray(n)&&T4(n)&&typeof s=="string"&&(n=I4(s));const c=P4(e,s);function f(){const h={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:m=>t.set(m)};return i.type==="inertia"||i.type==="decay"?wH({...h,...i}):sT({...JH(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=$6(n);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!c||!u||i.type===!1?p:f}function T4(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function I4(e){return typeof e=="number"?0:dS("",e)}function pS(e,t){return e[t]||e.default||e}function hS(e,t,n,r={}){return KH.current&&(r={type:!1}),t.start(o=>{let i,s;const u=eG(e,t,n,r,o),c=XH(r,e),f=()=>s=u();return c?i=window.setTimeout(f,L0(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const tG=e=>/^\-?\d*\.?\d+$/.test(e),nG=e=>/^0[^.\s]+$/.test(e),gT=1/60*1e3,rG=typeof performance<"u"?()=>performance.now():()=>Date.now(),vT=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rG()),gT);function oG(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f<r;f++){const p=t[f];p(c),s.has(p)&&(u.schedule(p),e())}o=!1,i&&(i=!1,u.process(c))}};return u}const iG=40;let Nb=!0,Nf=!1,Lb=!1;const nu={delta:0,timestamp:0},fd=["read","update","preRender","render","postRender"],Qm=fd.reduce((e,t)=>(e[t]=oG(()=>Nf=!0),e),{}),ti=fd.reduce((e,t)=>{const n=Qm[t];return e[t]=(r,o=!1,i=!1)=>(Nf||sG(),n.schedule(r,o,i)),e},{}),Lf=fd.reduce((e,t)=>(e[t]=Qm[t].cancel,e),{}),z1=fd.reduce((e,t)=>(e[t]=()=>Qm[t].process(nu),e),{}),aG=e=>Qm[e].process(nu),yT=e=>{Nf=!1,nu.delta=Nb?gT:Math.max(Math.min(e-nu.timestamp,iG),1),nu.timestamp=e,Lb=!0,fd.forEach(aG),Lb=!1,Nf&&(Nb=!1,vT(yT))},sG=()=>{Nf=!0,Nb=!0,Lb||vT(yT)},Db=()=>nu;function mS(e,t){e.indexOf(t)===-1&&e.push(t)}function gS(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qc{constructor(){this.subscriptions=[]}add(t){return mS(this.subscriptions,t),()=>gS(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const lG=e=>!isNaN(parseFloat(e));class uG{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new qc,this.velocityUpdateSubscribers=new qc,this.renderSubscribers=new qc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=Db();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,ti.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),r&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>ti.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=lG(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lT(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function gu(e){return new uG(e)}const bT=e=>t=>t.test(e),cG={test:e=>e==="auto",parse:e=>e},xT=[Hs,Ne,ei,ha,$j,Fj,cG],yc=e=>xT.find(bT(e)),fG=[...xT,Xn,Gi],dG=e=>fG.find(bT(e));function pG(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function hG(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Jm(e,t,n){const r=e.getProps();return F6(r,t,n!==void 0?n:r.custom,pG(e),hG(e))}function mG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gu(n))}function gG(e,t){const n=Jm(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=$6(i[s]);mG(e,s,u)}}function vG(e,t,n){var r,o;const i=Object.keys(t).filter(u=>!e.hasValue(u)),s=i.length;if(!!s)for(let u=0;u<s;u++){const c=i[u],f=t[c];let p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(o=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&o!==void 0?o:t[c]),p!=null&&(typeof p=="string"&&(tG(p)||nG(p))?p=parseFloat(p):!dG(p)&&Gi.test(f)&&(p=dS(c,f)),e.addValue(c,gu(p)),n[c]===void 0&&(n[c]=p),e.setBaseTarget(c,p))}}function yG(e,t){return t?(t[e]||t.default||t).from:void 0}function bG(e,t,n){var r;const o={};for(const i in e){const s=yG(i,t);o[i]=s!==void 0?s:(r=n.getValue(i))===null||r===void 0?void 0:r.get()}return o}function D0(e){return Boolean(ai(e)&&e.add)}function xG(e,t,n={}){e.notifyAnimationStart(t);let r;if(Array.isArray(t)){const o=t.map(i=>Fb(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Fb(e,t,n);else{const o=typeof t=="function"?Jm(e,t,n.custom):t;r=ST(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function Fb(e,t,n={}){var r;const o=Jm(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>ST(e,o,n):()=>Promise.resolve(),u=!((r=e.variantChildren)===null||r===void 0)&&r.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:m}=i;return SG(e,t,p+f,h,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[s,u]:[u,s];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function ST(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(s=r);const p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(const m in c){const v=e.getValue(m),y=c[m];if(!v||y===void 0||h&&CG(h,m))continue;let x={delay:n,...s};e.shouldReduceMotion&&sd.has(m)&&(x={...x,type:!1,delay:0});let E=hS(m,v,y,x);D0(f)&&(f.add(m),E=E.then(()=>f.remove(m))),p.push(E)}return Promise.all(p).then(()=>{u&&gG(e,u)})}function SG(e,t,n=0,r=0,o=1,i){const s=[],u=(e.variantChildren.size-1)*r,c=o===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(wG).forEach((f,p)=>{s.push(Fb(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function wG(e,t){return e.sortNodePosition(t)}function CG({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const vS=[Et.Animate,Et.InView,Et.Focus,Et.Hover,Et.Tap,Et.Drag,Et.Exit],_G=[...vS].reverse(),kG=vS.length;function EG(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xG(e,n,r)))}function PG(e){let t=EG(e);const n=TG();let r=!0;const o=(c,f)=>{const p=Jm(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function i(c){t=c(e)}function s(c,f){var p;const h=e.getProps(),m=e.getVariantContext(!0)||{},v=[],y=new Set;let x={},E=1/0;for(let b=0;b<kG;b++){const _=_G[b],P=n[_],I=(p=h[_])!==null&&p!==void 0?p:m[_],N=Af(I),L=_===f?P.isActive:null;L===!1&&(E=b);let z=I===m[_]&&I!==h[_]&&N;if(z&&r&&e.manuallyAnimateOnMount&&(z=!1),P.protectedKeys={...x},!P.isActive&&L===null||!I&&!P.prevProp||Um(I)||typeof I=="boolean")continue;const K=AG(P.prevProp,I);let W=K||_===f&&P.isActive&&!z&&N||b>E&&N;const te=Array.isArray(I)?I:[I];let be=te.reduce(o,{});L===!1&&(be={});const{prevResolvedValues:_e={}}=P,ye={..._e,...be},Ce=ae=>{W=!0,y.delete(ae),P.needsAnimating[ae]=!0};for(const ae in ye){const ke=be[ae],j=_e[ae];x.hasOwnProperty(ae)||(ke!==j?Of(ke)&&Of(j)?!mT(ke,j)||K?Ce(ae):P.protectedKeys[ae]=!0:ke!==void 0?Ce(ae):y.add(ae):ke!==void 0&&y.has(ae)?Ce(ae):P.protectedKeys[ae]=!0)}P.prevProp=I,P.prevResolvedValues=be,P.isActive&&(x={...x,...be}),r&&e.blockInitialAnimation&&(W=!1),W&&!z&&v.push(...te.map(ae=>({animation:ae,options:{type:_,...c}})))}if(y.size){const b={};y.forEach(_=>{const P=e.getBaseTarget(_);P!==void 0&&(b[_]=P)}),v.push({animation:b})}let w=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>n}}function AG(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mT(t,e):!1}function fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TG(){return{[Et.Animate]:fs(!0),[Et.InView]:fs(),[Et.Hover]:fs(),[Et.Tap]:fs(),[Et.Drag]:fs(),[Et.Focus]:fs(),[Et.Exit]:fs()}}const IG={animation:Aa(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=PG(e)),Um(t)&&C.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Aa(e=>{const{custom:t,visualElement:n}=e,[r,o]=cS(),i=C.exports.useContext(Au);C.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(Et.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class wT{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=W1(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=uS(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=Db();this.history.push({...m,timestamp:v});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=V1(p,this.transformPagePoint),z6(f)&&f.buttons===0){this.handlePointerUp(f,p);return}ti.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=W1(V1(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},V6(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=tS(t),i=V1(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=Db();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,W1(i,this.history)),this.removeListeners=Ym(eu(window,"pointermove",this.handlePointerMove),eu(window,"pointerup",this.handlePointerUp),eu(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lf.update(this.updatePoint)}}function V1(e,t){return t?{point:t(e.point)}:e}function O4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function W1({point:e},t){return{point:e,delta:O4(e,CT(t)),offset:O4(e,OG(t)),velocity:RG(t,.1)}}function OG(e){return e[0]}function CT(e){return e[e.length-1]}function RG(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=CT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>L0(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Dr(e){return e.max-e.min}function R4(e,t=0,n=.01){return uS(e,t)<n}function M4(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=Dr(n)/Dr(t),(R4(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(R4(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kc(e,t,n,r){M4(e.x,t.x,n.x,r?.originX),M4(e.y,t.y,n.y,r?.originY)}function N4(e,t,n){e.min=n.min+t.min,e.max=e.min+Dr(t)}function MG(e,t,n){N4(e.x,t.x,n.x),N4(e.y,t.y,n.y)}function L4(e,t,n){e.min=t.min-n.min,e.max=e.min+Dr(t)}function Yc(e,t,n){L4(e.x,t.x,n.x),L4(e.y,t.y,n.y)}function NG(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function D4(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LG(e,{top:t,left:n,bottom:r,right:o}){return{x:D4(e.x,n,o),y:D4(e.y,t,r)}}function F4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function DG(e,t){return{x:F4(e.x,t.x),y:F4(e.y,t.y)}}function FG(e,t){let n=.5;const r=Dr(e),o=Dr(t);return o>r?n=Rf(t.min,t.max-r,e.min):r>o&&(n=Rf(e.min,e.max-o,t.min)),R0(0,1,n)}function $G(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $b=.35;function BG(e=$b){return e===!1?e=0:e===!0&&(e=$b),{x:$4(e,"left","right"),y:$4(e,"top","bottom")}}function $4(e,t,n){return{min:B4(e,t),max:B4(e,n)}}function B4(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const z4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zc=()=>({x:z4(),y:z4()}),V4=()=>({min:0,max:0}),Pn=()=>({x:V4(),y:V4()});function jo(e){return[e("x"),e("y")]}function _T({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VG(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function j1(e){return e===void 0||e===1}function kT({scale:e,scaleX:t,scaleY:n}){return!j1(e)||!j1(t)||!j1(n)}function ma(e){return kT(e)||W4(e.x)||W4(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function W4(e){return e&&e!=="0%"}function F0(e,t,n){const r=e-n,o=t*r;return n+o}function j4(e,t,n,r,o){return o!==void 0&&(e=F0(e,o,r)),F0(e,n,r)+t}function Bb(e,t=0,n=1,r,o){e.min=j4(e.min,t,n,r,o),e.max=j4(e.max,t,n,r,o)}function ET(e,{x:t,y:n}){Bb(e.x,t.translate,t.scale,t.originPoint),Bb(e.y,n.translate,n.scale,n.originPoint)}function WG(e,t,n,r=!1){var o,i;const s=n.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f<s;f++)u=n[f],c=u.projectionDelta,((i=(o=u.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Hl(e,{x:-u.scroll.x,y:-u.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,ET(e,c)),r&&ma(u.latestValues)&&Hl(e,u.latestValues))}function xa(e,t){e.min=e.min+t,e.max=e.max+t}function U4(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=qt(e.min,e.max,i);Bb(e,t[n],t[r],s,t.scale)}const jG=["x","scaleX","originX"],UG=["y","scaleY","originY"];function Hl(e,t){U4(e.x,t,jG),U4(e.y,t,UG)}function PT(e,t){return _T(VG(e.getBoundingClientRect(),t))}function HG(e,t,n){const r=PT(e,n),{scroll:o}=t;return o&&(xa(r.x,o.x),xa(r.y,o.y)),r}const GG=new WeakMap;class qG{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=u=>{this.stopAnimation(),n&&this.snapToCursor(tS(u,"page").point)},o=(u,c)=>{var f;const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=H6(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jo(v=>{var y,x;let E=this.getAxisMotionValue(v).get()||0;if(ei.test(E)){const w=(x=(y=this.visualElement.projection)===null||y===void 0?void 0:y.layout)===null||x===void 0?void 0:x.actual[v];w&&(E=Dr(w)*(parseFloat(E)/100))}this.originPoint[v]=E}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(Et.Drag,!0))},i=(u,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=c;if(p&&this.currentDirection===null){this.currentDirection=KG(v),this.currentDirection!==null&&h?.(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.syncRender(),m?.(u,c)},s=(u,c)=>this.stop(u,c);this.panSession=new wT(t,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Et.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!eh(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=NG(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Ul(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=LG(r.actual,t):this.constraints=!1,this.elastic=BG(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&jo(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=$G(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ul(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HG(r,o.root,this.visualElement.getTransformPagePoint());let s=DG(o.layout.actual,i);if(n){const u=n(zG(s));this.hasMutatedConstraints=!!u,u&&(s=_T(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=jo(p=>{var h;if(!eh(p,n,this.currentDirection))return;let m=(h=c?.[p])!==null&&h!==void 0?h:{};s&&(m={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hS(t,r,0,n)}stopAnimation(){jo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)}snapToCursor(t){jo(n=>{const{drag:r}=this.getProps();if(!eh(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:u}=o.layout.actual[n];i.set(t[n]-qt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Ul(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};jo(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=FG({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),jo(u=>{if(!eh(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(qt(f,p,i[u]))})}addListeners(){var t;GG.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=eu(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Ul(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();const u=qm(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(jo(h=>{const m=this.getAxisMotionValue(h);!m||(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.syncRender())});return()=>{u(),r(),s(),c?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=$b,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KG(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function YG(e){const{dragControls:t,visualElement:n}=e,r=Gm(()=>new qG(n));C.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),C.exports.useEffect(()=>r.addListeners(),[r])}function ZG({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(null),{transformPagePoint:u}=C.exports.useContext(qx),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};C.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new wT(p,c,{transformPagePoint:u})}I0(o,"pointerdown",i&&f),nS(()=>s.current&&s.current.end())}const XG={pan:Aa(ZG),drag:Aa(YG)},zb={current:null},AT={current:!1};function QG(){if(AT.current=!0,!!Us)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zb.current=e.matches;e.addListener(t),t()}else zb.current=!1}const th=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function JG(){const e=th.map(()=>new qc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{th.forEach(o=>{var i;const s="on"+o,u=r[s];(i=t[o])===null||i===void 0||i.call(t),u&&(t[o]=n[s](u))})}};return e.forEach((r,o)=>{n["on"+th[o]]=i=>r.add(i),n["notify"+th[o]]=(...i)=>r.notify(...i)}),n}function eq(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ai(i))e.addValue(o,i),D0(r)&&r.add(o);else if(ai(s))e.addValue(o,gu(i)),D0(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const u=e.getValue(o);!u.hasAnimated&&u.set(i)}else{const u=e.getStaticValue(o);e.addValue(o,gu(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const TT=Object.keys(Tf),tq=TT.length,IT=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:s,removeValueFromRenderState:u,sortNodePosition:c,scrapeMotionValuesFromProps:f})=>({parent:p,props:h,presenceId:m,blockInitialAnimation:v,visualState:y,reducedMotionConfig:x},E={})=>{let w=!1;const{latestValues:b,renderState:_}=y;let P;const I=JG(),N=new Map,L=new Map;let z={};const K={...b};let W;function te(){!P||!w||(be(),i(P,_,h.style,Y.projection))}function be(){t(Y,_,b,E,h)}function _e(){I.notifyUpdate(b)}function ye(q,R){const U=R.onChange(ue=>{b[q]=ue,h.onUpdate&&ti.update(_e,!1,!0)}),se=R.onRenderRequest(Y.scheduleRender);L.set(q,()=>{U(),se()})}const{willChange:Ce,...ae}=f(h);for(const q in ae){const R=ae[q];b[q]!==void 0&&ai(R)&&(R.set(b[q],!1),D0(Ce)&&Ce.add(q))}const ke=Hm(h),j=v6(h),Y={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p?.isMounted()),blockInitialAnimation:v,isMounted:()=>Boolean(P),mount(q){w=!0,P=Y.current=q,Y.projection&&Y.projection.mount(q),j&&p&&!ke&&(W=p?.addVariantChild(Y)),N.forEach((R,U)=>ye(U,R)),AT.current||QG(),Y.shouldReduceMotion=x==="never"?!1:x==="always"?!0:zb.current,p?.children.add(Y),Y.setProps(h)},unmount(){var q;(q=Y.projection)===null||q===void 0||q.unmount(),Lf.update(_e),Lf.render(te),L.forEach(R=>R()),W?.(),p?.children.delete(Y),I.clearAllListeners(),P=void 0,w=!1},loadFeatures(q,R,U,se,ue,he){const me=[];for(let Pe=0;Pe<tq;Pe++){const fe=TT[Pe],{isEnabled:Se,Component:Le}=Tf[fe];Se(q)&&Le&&me.push(C.exports.createElement(Le,{key:fe,...q,visualElement:Y}))}if(!Y.projection&&ue){Y.projection=new ue(se,Y.getLatestValues(),p&&p.projection);const{layoutId:Pe,layout:fe,drag:Se,dragConstraints:Le,layoutScroll:at}=q;Y.projection.setOptions({layoutId:Pe,layout:fe,alwaysMeasureLayout:Boolean(Se)||Le&&Ul(Le),visualElement:Y,scheduleRender:()=>Y.scheduleRender(),animationType:typeof fe=="string"?fe:"both",initialPromotionConfig:he,layoutScroll:at})}return me},addVariantChild(q){var R;const U=Y.getClosestVariantNode();if(U)return(R=U.variantChildren)===null||R===void 0||R.add(q),()=>U.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(Y.getInstance(),q.getInstance())},getClosestVariantNode:()=>j?Y:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>P,getStaticValue:q=>b[q],setStaticValue:(q,R)=>b[q]=R,getLatestValues:()=>b,setVisibility(q){Y.isVisible!==q&&(Y.isVisible=q,Y.scheduleRender())},makeTargetAnimatable(q,R=!0){return r(Y,q,h,R)},measureViewportBox(){return o(P,h)},addValue(q,R){Y.hasValue(q)&&Y.removeValue(q),N.set(q,R),b[q]=R.get(),ye(q,R)},removeValue(q){var R;N.delete(q),(R=L.get(q))===null||R===void 0||R(),L.delete(q),delete b[q],u(q,_)},hasValue:q=>N.has(q),getValue(q,R){let U=N.get(q);return U===void 0&&R!==void 0&&(U=gu(R),Y.addValue(q,U)),U},forEachValue:q=>N.forEach(q),readValue:q=>b[q]!==void 0?b[q]:s(P,q,E),setBaseTarget(q,R){K[q]=R},getBaseTarget(q){if(n){const R=n(h,q);if(R!==void 0&&!ai(R))return R}return K[q]},...I,build(){return be(),_},scheduleRender(){ti.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&Y.scheduleRender(),h=q,I.updatePropListeners(q),z=eq(Y,f(h),z)},getProps:()=>h,getVariant:q=>{var R;return(R=h.variants)===null||R===void 0?void 0:R[q]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(q=!1){if(q)return p?.getVariantContext();if(!ke){const U=p?.getVariantContext()||{};return h.initial!==void 0&&(U.initial=h.initial),U}const R={};for(let U=0;U<nq;U++){const se=OT[U],ue=h[se];(Af(ue)||ue===!1)&&(R[se]=ue)}return R}};return Y},OT=["initial",...vS],nq=OT.length;function Vb(e){return typeof e=="string"&&e.startsWith("var(--")}const RT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rq(e){const t=RT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Wb(e,t,n=1){const[r,o]=rq(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Vb(o)?Wb(o,t,n+1):o}function oq(e,{...t},n){const r=e.getInstance();if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const i=o.get();if(!Vb(i))return;const s=Wb(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Vb(i))continue;const s=Wb(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const iq=new Set(["width","height","top","left","right","bottom","x","y"]),MT=e=>iq.has(e),aq=e=>Object.keys(e).some(MT),NT=(e,t)=>{e.set(t,!1),e.set(t)},H4=e=>e===Hs||e===Ne;var G4;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(G4||(G4={}));const q4=(e,t)=>parseFloat(e.split(", ")[t]),K4=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return q4(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?q4(i[1],e):0}},sq=new Set(["x","y","z"]),lq=A0.filter(e=>!sq.has(e));function uq(e){const t=[];return lq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const Y4={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:K4(4,13),y:K4(5,14)},cq=(e,t,n)=>{const r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),{display:s}=i,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=Y4[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);NT(p,u[f]),e[f]=Y4[f](c,i)}),e},fq=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(MT);let i=[],s=!1;const u=[];if(o.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=yc(p);const m=t[c];let v;if(Of(m)){const y=m.length,x=m[0]===null?1:0;p=m[x],h=yc(p);for(let E=x;E<y;E++)v?O0(yc(m[E])===v):v=yc(m[E])}else v=yc(m);if(h!==v)if(H4(h)&&H4(v)){const y=f.get();typeof y=="string"&&f.set(parseFloat(y)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&v===Ne&&(t[c]=m.map(parseFloat))}else h?.transform&&v?.transform&&(p===0||m===0)?p===0?f.set(v.transform(p)):t[c]=h.transform(m):(s||(i=uq(e),s=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:t[c],NT(f,m))}),u.length){const c=u.indexOf("height")>=0?window.pageYOffset:null,f=cq(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Us&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function dq(e,t,n,r){return aq(t)?fq(e,t,n,r):{target:t,transitionEnd:r}}const pq=(e,t,n,r)=>{const o=oq(e,t,r);return t=o.target,r=o.transitionEnd,dq(e,t,n,r)};function hq(e){return window.getComputedStyle(e)}const LT={treeType:"dom",readValueFromInstance(e,t){if(sd.has(t)){const n=fS(t);return n&&n.default||0}else{const n=hq(e),r=(x6(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return PT(e,t)},resetTransform(e,t,n){const{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let s=bG(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){vG(e,r,s);const u=pq(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:eS,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xx(t,n,r,o.transformTemplate)},render:M6},mq=IT(LT),gq=IT({...LT,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return sd.has(t)?((n=fS(t))===null||n===void 0?void 0:n.default)||0:(t=N6.has(t)?t:R6(t),e.getAttribute(t))},scrapeMotionValuesFromProps:D6,build(e,t,n,r,o){Jx(t,n,r,o.transformTemplate)},render:L6}),vq=(e,t)=>Yx(e)?gq(t,{enableHardwareAcceleration:!1}):mq(t,{enableHardwareAcceleration:!0});function Z4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=Z4(e,t.target.x),r=Z4(e,t.target.y);return`${n}% ${r}%`}},X4="_$css",yq={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(RT,v=>(i.push(v),X4)));const s=Gi.parse(e);if(s.length>5)return r;const u=Gi.createTransformer(e),c=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;s[0+c]/=f,s[1+c]/=p;const h=qt(f,p,.5);typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h);let m=u(s);if(o){let v=0;m=m.replace(X4,()=>{const y=i[v];return v++,y})}return m}};class bq extends J.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Oj(Sq),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Uc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ti.postRender(()=>{var u;!((u=s.getStack())===null||u===void 0)&&u.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),r?.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function xq(e){const[t,n]=cS(),r=C.exports.useContext(Kx);return S(bq,{...e,layoutGroup:r,switchLayoutGroup:C.exports.useContext(y6),isPresent:t,safeToRemove:n})}const Sq={borderRadius:{...bc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bc,borderTopRightRadius:bc,borderBottomLeftRadius:bc,borderBottomRightRadius:bc,boxShadow:yq},wq={measureLayout:xq};function Cq(e,t,n={}){const r=ai(e)?e:gu(e);return hS("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const DT=["TopLeft","TopRight","BottomLeft","BottomRight"],_q=DT.length,Q4=e=>typeof e=="string"?parseFloat(e):e,J4=e=>typeof e=="number"||Ne.test(e);function kq(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=qt(0,(s=n.opacity)!==null&&s!==void 0?s:1,Eq(r)),e.opacityExit=qt((u=t.opacity)!==null&&u!==void 0?u:1,0,Pq(r))):i&&(e.opacity=qt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;p<_q;p++){const h=`border${DT[p]}Radius`;let m=ek(t,h),v=ek(n,h);if(m===void 0&&v===void 0)continue;m||(m=0),v||(v=0),m===0||v===0||J4(m)===J4(v)?(e[h]=Math.max(qt(Q4(m),Q4(v),r),0),(ei.test(v)||ei.test(m))&&(e[h]+="%")):e[h]=v}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function ek(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const Eq=FT(0,.5,sS),Pq=FT(.5,.95,iS);function FT(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function tk(e,t){e.min=t.min,e.max=t.max}function bo(e,t){tk(e.x,t.x),tk(e.y,t.y)}function nk(e,t,n,r,o){return e-=t,e=F0(e,1/n,r),o!==void 0&&(e=F0(e,1/o,r)),e}function Aq(e,t=0,n=1,r=.5,o,i=e,s=e){if(ei.test(t)&&(t=parseFloat(t),t=qt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=qt(i.min,i.max,r);e===i&&(u-=t),e.min=nk(e.min,t,n,u,o),e.max=nk(e.max,t,n,u,o)}function rk(e,t,[n,r,o],i,s){Aq(e,t[n],t[r],t[o],t.scale,i,s)}const Tq=["x","scaleX","originX"],Iq=["y","scaleY","originY"];function ok(e,t,n,r){rk(e.x,t,Tq,n?.x,r?.x),rk(e.y,t,Iq,n?.y,r?.y)}function ik(e){return e.translate===0&&e.scale===1}function $T(e){return ik(e.x)&&ik(e.y)}function BT(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ak(e){return Dr(e.x)/Dr(e.y)}function Oq(e,t,n=.01){return uS(e,t)<=n}class Rq{constructor(){this.members=[]}add(t){mS(this.members,t),t.scheduleRender()}remove(t){if(gS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,i,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Mq="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function sk(e,t,n){const r=e.x.translate/t.x,o=e.y.translate/t.y;let i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return i+=`scale(${s}, ${u})`,i===Mq?"none":i}const Nq=(e,t)=>e.depth-t.depth;class Lq{constructor(){this.children=[],this.isDirty=!1}add(t){mS(this.children,t),this.isDirty=!0}remove(t){gS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nq),this.isDirty=!1,this.children.forEach(t)}}const lk=["","X","Y","Z"],uk=1e3;function zT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s,u={},c=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Vq),this.nodes.forEach(Wq)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lq)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new qc),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const c=this.eventHandlers.get(s);c?.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,u){this.potentialNodes.set(s,u)}mount(s,u=!1){var c;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;const{layoutId:f,layout:p,visualElement:h}=this.options;if(h&&!h.getInstance()&&h.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),u&&(p||f)&&(this.isLayoutDirty=!0),e){let m;const v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Uc.hasAnimatedSinceResize&&(Uc.hasAnimatedSinceResize=!1,this.nodes.forEach(zq))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:x})=>{var E,w,b,_,P;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=(w=(E=this.options.transition)!==null&&E!==void 0?E:h.getDefaultTransition())!==null&&w!==void 0?w:qq,{onLayoutAnimationStart:N,onLayoutAnimationComplete:L}=h.getProps(),z=!this.targetLayout||!BT(this.targetLayout,x)||y,K=!v&&y;if(((b=this.resumeFrom)===null||b===void 0?void 0:b.instance)||K||v&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,K);const W={...pS(I,"layout"),onPlay:N,onComplete:L};h.shouldReduceMotion&&(W.delay=0,W.type=!1),this.startAnimation(W)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((P=(_=this.options).onExitComplete)===null||P===void 0||P.call(_));this.targetLayout=x})}unmount(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Lf.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(jq))}willUpdate(s=!0){var u,c,f;if(this.root.isUpdateBlocked()){(c=(u=this.options).onExitComplete)===null||c===void 0||c.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll()}const{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;const m=(f=this.options.visualElement)===null||f===void 0?void 0:f.getProps().transformTemplate;this.prevTransformTemplateValue=m?.(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ck);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Kq),this.potentialNodes.clear()),this.nodes.forEach(Bq),this.nodes.forEach(Dq),this.nodes.forEach(Fq),this.clearAllSnapshots(),z1.update(),z1.preRender(),z1.render())}clearAllSnapshots(){this.nodes.forEach($q),this.sharedNodes.forEach(Uq)}scheduleUpdateProjection(){ti.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ti.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));hk(u),this.snapshot={measured:s,layout:u,latestValues:{}}}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.measure();hk(u);const c=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=Pn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,c?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=n(this.instance))}resetTransform(){var s;if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!$T(this.projectionDelta),f=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=f?.(this.latestValues,""),h=p!==this.prevTransformTemplateValue;u&&(c||ma(this.latestValues)||h)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:s}=this.options;if(!s)return Pn();const u=s.measureViewportBox(),{scroll:c}=this.root;return c&&(xa(u.x,c.x),xa(u.y,c.y)),u}removeElementScroll(s){const u=Pn();bo(u,s);for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:p,options:h,isScrollRoot:m}=f;if(f!==this.root&&p&&h.layoutScroll){if(m){bo(u,s);const{scroll:v}=this.root;v&&(xa(u.x,-v.x),xa(u.y,-v.y))}xa(u.x,p.x),xa(u.y,p.y)}}return u}applyTransform(s,u=!1){const c=Pn();bo(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Hl(c,{x:-p.scroll.x,y:-p.scroll.y}),ma(p.latestValues)&&Hl(c,p.latestValues)}return ma(this.latestValues)&&Hl(c,this.latestValues),c}removeTransform(s){var u;const c=Pn();bo(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!ma(p.latestValues))continue;kT(p.latestValues)&&p.updateSnapshot();const h=Pn(),m=p.measure();bo(h,m),ok(c,p.latestValues,(u=p.snapshot)===null||u===void 0?void 0:u.layout,h)}return ma(this.latestValues)&&ok(c,this.latestValues),c}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection()}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;const{layout:u,layoutId:c}=this.options;!this.layout||!(u||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Pn(),this.relativeTargetOrigin=Pn(),Yc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),bo(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pn(),this.targetWithTransforms=Pn()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?MG(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):bo(this.target,this.layout.actual),ET(this.target,this.targetDelta)):bo(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Pn(),this.relativeTargetOrigin=Pn(),Yc(this.relativeTargetOrigin,this.target,this.relativeParent.target),bo(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||ma(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;const f=this.getLead();bo(this.layoutCorrected,this.layout.actual),WG(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==f);const{target:p}=f;if(!p)return;this.projectionDelta||(this.projectionDelta=Zc(),this.projectionDeltaWithTransform=Zc());const h=this.treeScale.x,m=this.treeScale.y,v=this.projectionTransform;Kc(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=sk(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u,c,f;(c=(u=this.options).scheduleRender)===null||c===void 0||c.call(u),s&&((f=this.getStack())===null||f===void 0||f.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){var c;const f=this.snapshot,p=f?.latestValues||{},h={...this.latestValues},m=Zc();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!u;const v=Pn(),y=f?.isShared,x=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,E=Boolean(y&&!x&&this.options.crossfade===!0&&!this.path.some(Gq));this.animationProgress=0,this.mixTargetDelta=w=>{var b;const _=w/1e3;fk(m.x,s.x,_),fk(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((b=this.relativeParent)===null||b===void 0?void 0:b.layout)&&(Yc(v,this.layout.actual,this.relativeParent.layout.actual),Hq(this.relativeTarget,this.relativeTargetOrigin,v,_)),y&&(this.animationValues=h,kq(h,p,this.latestValues,_,E,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(0)}startAnimation(s){var u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Lf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ti.update(()=>{Uc.hasAnimatedSinceResize=!0,this.currentAnimation=Cq(0,uk,{...s,onUpdate:f=>{var p;this.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:()=>{var f;(f=s.onComplete)===null||f===void 0||f.call(s),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,uk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&VT(this.options.animationType,this.layout.actual,f.actual)){c=this.target||Pn();const h=Dr(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Dr(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}bo(u,c),Hl(u,p),Kc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Rq),this.sharedNodes.get(s).add(u),u.promote({transition:(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(p=(f=u.options.initialPromotionConfig)===null||f===void 0?void 0:f.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(f,u)})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const c={};for(let f=0;f<lk.length;f++){const p=lk[f],h="rotate"+p;!s.getStaticValue(h)||(u=!0,c[h]=s.getStaticValue(h),s.setStaticValue(h,0))}if(!!u){s?.syncRender();for(const f in c)s.setStaticValue(f,c[f]);s.scheduleRender()}}getProjectionStyles(s={}){var u,c,f;const p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};const h=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Nh(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Nh(s.pointerEvents)||""),this.hasProjected&&!ma(this.latestValues)&&(E.transform=h?h({},""):"none",this.hasProjected=!1),E}const v=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=sk(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));const{x:y,y:x}=this.projectionDelta;p.transformOrigin=`${y.origin*100}% ${x.origin*100}% 0`,m.animationValues?p.opacity=m===this?(f=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in P0){if(v[E]===void 0)continue;const{correct:w,applyTo:b}=P0[E],_=w(v[E],m);if(b){const P=b.length;for(let I=0;I<P;I++)p[b[I]]=_}else p[E]=_}return this.options.layoutId&&(p.pointerEvents=m===this?Nh(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(ck),this.root.sharedNodes.clear()}}}function Dq(e){e.updateLayout()}function Fq(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:i,measured:s}=e.layout,{animationType:u}=e.options;u==="size"?jo(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Dr(v);v.min=i[m].min,v.max=v.min+y}):VT(u,o.layout,i)&&jo(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Dr(i[m]);v.max=v.min+y});const c=Zc();Kc(c,i,o.layout);const f=Zc();o.isShared?Kc(f,e.applyTransform(s,!0),o.measured):Kc(f,i,o.layout);const p=!$T(c);let h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:m,layout:v}=e.relativeParent;if(m&&v){const y=Pn();Yc(y,o.layout,m.layout);const x=Pn();Yc(x,i,v.actual),BT(y,x)||(h=!0)}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:h})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function $q(e){e.clearSnapshot()}function ck(e){e.clearMeasurements()}function Bq(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function zq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Vq(e){e.resolveTargetDelta()}function Wq(e){e.calcProjection()}function jq(e){e.resetRotation()}function Uq(e){e.removeLeadSnapshot()}function fk(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dk(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function Hq(e,t,n,r){dk(e.x,t.x,n.x,r),dk(e.y,t.y,n.y,r)}function Gq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qq={duration:.45,ease:[.4,0,.1,1]};function Kq(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function pk(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function hk(e){pk(e.x),pk(e.y)}function VT(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oq(ak(t),ak(n))}const Yq=zT({attachResizeListener:(e,t)=>qm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),U1={current:void 0},Zq=zT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!U1.current){const e=new Yq(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),U1.current=e}return U1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Xq={...IG,...zH,...XG,...wq},so=Tj((e,t)=>hU(e,t,Xq,vq,Zq));function WT(){const e=C.exports.useRef(!1);return E0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Qq(){const e=WT(),[t,n]=C.exports.useState(0),r=C.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.exports.useCallback(()=>ti.postRender(r),[r]),t]}class Jq extends C.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eK({children:e,isPresent:t}){const n=C.exports.useId(),r=C.exports.useRef(null),o=C.exports.useRef({width:0,height:0,top:0,left:0});return C.exports.useInsertionEffect(()=>{const{width:i,height:s,top:u,left:c}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
|
|
[data-motion-pop-id="${n}"] {
|
|
position: absolute !important;
|
|
width: ${i}px !important;
|
|
height: ${s}px !important;
|
|
top: ${u}px !important;
|
|
left: ${c}px !important;
|
|
}
|
|
`),()=>{document.head.removeChild(f)}},[t]),S(Jq,{isPresent:t,childRef:r,sizeRef:o,children:C.exports.cloneElement(e,{ref:r})})}const H1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Gm(tK),c=C.exports.useId(),f=C.exports.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),i?void 0:[n]);return C.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),C.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=S(eK,{isPresent:n,children:e})),S(Au.Provider,{value:f,children:e})};function tK(){return new Map}const Tl=e=>e.key||"";function nK(e,t){e.forEach(n=>{const r=Tl(n);t.set(r,n)})}function rK(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Xi=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",hT(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=Qq();const c=C.exports.useContext(Kx).forceRender;c&&(u=c);const f=WT(),p=rK(e);let h=p;const m=new Set,v=C.exports.useRef(h),y=C.exports.useRef(new Map).current,x=C.exports.useRef(!0);if(E0(()=>{x.current=!1,nK(p,y),v.current=h}),nS(()=>{x.current=!0,y.clear(),m.clear()}),x.current)return S(Rn,{children:h.map(_=>S(H1,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:_},Tl(_)))});h=[...h];const E=v.current.map(Tl),w=p.map(Tl),b=E.length;for(let _=0;_<b;_++){const P=E[_];w.indexOf(P)===-1&&m.add(P)}return s==="wait"&&m.size&&(h=[]),m.forEach(_=>{if(w.indexOf(_)!==-1)return;const P=y.get(_);if(!P)return;const I=E.indexOf(_),N=()=>{y.delete(_),m.delete(_);const L=v.current.findIndex(z=>z.key===_);if(v.current.splice(L,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(I,0,S(H1,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s,children:P},Tl(P)))}),h=h.map(_=>{const P=_.key;return m.has(P)?_:S(H1,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:_},Tl(_))}),pT!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S(Rn,{children:m.size?h:h.map(_=>C.exports.cloneElement(_))})};var dd=(...e)=>e.filter(Boolean).join(" ");function oK(){return!1}var iK=e=>{const{condition:t,message:n}=e;t&&oK()&&console.warn(n)},Ps={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},xc={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function jb(e){switch(e?.direction??"right"){case"right":return xc.slideRight;case"left":return xc.slideLeft;case"bottom":return xc.slideDown;case"top":return xc.slideUp;default:return xc.slideRight}}var Os={enter:{duration:.2,ease:Ps.easeOut},exit:{duration:.1,ease:Ps.easeIn}},To={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},aK=e=>e!=null&&parseInt(e.toString(),10)>0,mk={exit:{height:{duration:.2,ease:Ps.ease},opacity:{duration:.3,ease:Ps.ease}},enter:{height:{duration:.3,ease:Ps.ease},opacity:{duration:.4,ease:Ps.ease}}},sK={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:aK(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??To.exit(mk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??To.enter(mk.enter,o)})},jT=C.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:u,className:c,transition:f,transitionEnd:p,...h}=e,[m,v]=C.exports.useState(!1);C.exports.useEffect(()=>{const b=setTimeout(()=>{v(!0)});return()=>clearTimeout(b)},[]),iK({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:s,animateOpacity:o,transition:m?f:{enter:{duration:0}},transitionEnd:{enter:p?.enter,exit:r?p?.exit:{...p?.exit,display:y?"block":"none"}}},E=r?n:!0,w=n||r?"enter":"exit";return S(Xi,{initial:!1,custom:x,children:E&&J.createElement(so.div,{ref:t,...h,className:dd("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:x,variants:sK,initial:r?"exit":!1,animate:w,exit:"exit"})})});jT.displayName="Collapse";var lK={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??To.enter(Os.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??To.exit(Os.exit,n),transitionEnd:t?.exit})},UT={initial:"exit",animate:"enter",exit:"exit",variants:lK},uK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:u,delay:c,...f}=t,p=o||r?"enter":"exit",h=r?o&&r:!0,m={transition:s,transitionEnd:u,delay:c};return S(Xi,{custom:m,children:h&&J.createElement(so.div,{ref:n,className:dd("chakra-fade",i),custom:m,...UT,animate:p,...f})})});uK.displayName="Fade";var cK={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??To.exit(Os.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??To.enter(Os.enter,n),transitionEnd:e?.enter})},HT={initial:"exit",animate:"enter",exit:"exit",variants:cK},fK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?o&&r:!0,v=o||r?"enter":"exit",y={initialScale:s,reverse:i,transition:c,transitionEnd:f,delay:p};return S(Xi,{custom:y,children:m&&J.createElement(so.div,{ref:n,className:dd("chakra-offset-slide",u),...HT,animate:v,custom:y,...h})})});fK.displayName="ScaleFade";var gk={exit:{duration:.15,ease:Ps.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},dK={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=jb({direction:e});return{...o,transition:t?.exit??To.exit(gk.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=jb({direction:e});return{...o,transition:n?.enter??To.enter(gk.enter,r),transitionEnd:t?.enter}}},GT=C.exports.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=jb({direction:r}),v=Object.assign({position:"fixed"},m.position,o),y=i?s&&i:!0,x=s||i?"enter":"exit",E={transitionEnd:f,transition:c,direction:r,delay:p};return S(Xi,{custom:E,children:y&&J.createElement(so.div,{...h,ref:n,initial:"exit",className:dd("chakra-slide",u),animate:x,exit:"exit",custom:E,variants:dK,style:v})})});GT.displayName="Slide";var pK={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??To.exit(Os.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??To.enter(Os.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:n?.exit??To.exit(Os.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},Ub={initial:"initial",animate:"enter",exit:"exit",variants:pK},hK=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,v=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return S(Xi,{custom:x,children:v&&J.createElement(so.div,{ref:n,className:dd("chakra-offset-slide",s),custom:x,...Ub,animate:y,...m})})});hK.displayName="SlideFade";var pd=(...e)=>e.filter(Boolean).join(" ");function mK(){return!1}var eg=e=>{const{condition:t,message:n}=e;t&&mK()&&console.warn(n)};function G1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[gK,tg]=Wt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[vK,yS]=Wt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[yK,Spe,bK,xK]=hj(),hs=ce(function(t,n){const{getButtonProps:r}=yS(),o=r(t,n),i=tg(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return J.createElement(ie.button,{...o,className:pd("chakra-accordion__button",t.className),__css:s})});hs.displayName="AccordionButton";function SK(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;_K(e),kK(e);const u=bK(),[c,f]=C.exports.useState(-1);C.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=mj({value:r,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:p,setIndex:h,htmlProps:s,getAccordionItemProps:v=>{let y=!1;return v!==null&&(y=Array.isArray(p)?p.includes(v):p===v),{isOpen:y,onChange:E=>{if(v!==null)if(o&&Array.isArray(p)){const w=E?p.concat(v):p.filter(b=>b!==v);h(w)}else E?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[wK,bS]=Wt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function CK(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=bS(),u=C.exports.useRef(null),c=C.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;EK(e);const{register:m,index:v,descendants:y}=xK({disabled:t&&!n}),{isOpen:x,onChange:E}=i(v===-1?null:v);PK({isOpen:x,isDisabled:t});const w=()=>{E?.(!0)},b=()=>{E?.(!1)},_=C.exports.useCallback(()=>{E?.(!x),s(v)},[v,s,x,E]),P=C.exports.useCallback(z=>{const W={ArrowDown:()=>{const te=y.nextEnabled(v);te?.node.focus()},ArrowUp:()=>{const te=y.prevEnabled(v);te?.node.focus()},Home:()=>{const te=y.firstEnabled();te?.node.focus()},End:()=>{const te=y.lastEnabled();te?.node.focus()}}[z.key];W&&(z.preventDefault(),W(z))},[y,v]),I=C.exports.useCallback(()=>{s(v)},[s,v]),N=C.exports.useCallback(function(K={},W=null){return{...K,type:"button",ref:sn(m,u,W),id:p,disabled:!!t,"aria-expanded":!!x,"aria-controls":h,onClick:G1(K.onClick,_),onFocus:G1(K.onFocus,I),onKeyDown:G1(K.onKeyDown,P)}},[p,t,x,_,I,P,h,m]),L=C.exports.useCallback(function(K={},W=null){return{...K,ref:W,role:"region",id:h,"aria-labelledby":p,hidden:!x}},[p,x,h]);return{isOpen:x,isDisabled:t,isFocusable:n,onOpen:w,onClose:b,getButtonProps:N,getPanelProps:L,htmlProps:o}}function _K(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;eg({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function kK(e){eg({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function EK(e){eg({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
|
|
`})}function PK(e){eg({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function ms(e){const{isOpen:t,isDisabled:n}=yS(),{reduceMotion:r}=bS(),o=pd("chakra-accordion__icon",e.className),i=tg(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return S(ao,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}ms.displayName="AccordionIcon";var gs=ce(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=CK(t),c={...tg().container,overflowAnchor:"none"},f=C.exports.useMemo(()=>s,[s]);return J.createElement(vK,{value:f},J.createElement(ie.div,{ref:n,...i,className:pd("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});gs.displayName="AccordionItem";var vs=ce(function(t,n){const{reduceMotion:r}=bS(),{getPanelProps:o,isOpen:i}=yS(),s=o(t,n),u=pd("chakra-accordion__panel",t.className),c=tg();r||delete s.hidden;const f=J.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:S(jT,{in:i,children:f})});vs.displayName="AccordionPanel";var qT=ce(function({children:t,reduceMotion:n,...r},o){const i=xr("Accordion",r),s=St(r),{htmlProps:u,descendants:c,...f}=SK(s),p=C.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return J.createElement(yK,{value:c},J.createElement(wK,{value:p},J.createElement(gK,{value:i},J.createElement(ie.div,{ref:o,...u,className:pd("chakra-accordion",r.className),__css:i.root},t))))});qT.displayName="Accordion";var AK=(...e)=>e.filter(Boolean).join(" "),TK=od({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ng=ce((e,t)=>{const n=rr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=St(e),f=AK("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${TK} ${i} linear infinite`,...n};return J.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&J.createElement(ie.span,{srOnly:!0},r))});ng.displayName="Spinner";var rg=(...e)=>e.filter(Boolean).join(" ");function IK(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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 OK(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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 vk(e){return S(ao,{viewBox:"0 0 24 24",...e,children:S("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[RK,MK]=Wt({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[NK,xS]=Wt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),KT={info:{icon:OK,colorScheme:"blue"},warning:{icon:vk,colorScheme:"orange"},success:{icon:IK,colorScheme:"green"},error:{icon:vk,colorScheme:"red"},loading:{icon:ng,colorScheme:"blue"}};function LK(e){return KT[e].colorScheme}function DK(e){return KT[e].icon}var YT=ce(function(t,n){const{status:r="info",addRole:o=!0,...i}=St(t),s=t.colorScheme??LK(r),u=xr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return J.createElement(RK,{value:{status:r}},J.createElement(NK,{value:u},J.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:rg("chakra-alert",t.className),__css:c})))});YT.displayName="Alert";var ZT=ce(function(t,n){const r=xS(),o={display:"inline",...r.description};return J.createElement(ie.div,{ref:n,...t,className:rg("chakra-alert__desc",t.className),__css:o})});ZT.displayName="AlertDescription";function XT(e){const{status:t}=MK(),n=DK(t),r=xS(),o=t==="loading"?r.spinner:r.icon;return J.createElement(ie.span,{display:"inherit",...e,className:rg("chakra-alert__icon",e.className),__css:o},e.children||S(n,{h:"100%",w:"100%"}))}XT.displayName="AlertIcon";var QT=ce(function(t,n){const r=xS();return J.createElement(ie.div,{ref:n,...t,className:rg("chakra-alert__title",t.className),__css:r.title})});QT.displayName="AlertTitle";function FK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function $K(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=C.exports.useState("pending");C.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=C.exports.useRef(),m=C.exports.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),u&&(y.sizes=u),t&&(y.loading=t),y.onload=x=>{v(),p("loaded"),o?.(x)},y.onerror=x=>{v(),p("failed"),i?.(x)},h.current=y},[n,s,r,u,o,i,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return $i(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var BK=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",$0=ce(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return S("img",{width:r,height:o,ref:n,alt:i,...s})});$0.displayName="NativeImage";var Df=ce(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:u,fit:c,loading:f,ignoreFallback:p,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...y}=t,x=r!==void 0||o!==void 0,E=f!=null||p||!x,w=$K({...t,ignoreFallback:E}),b=BK(w,m),_={ref:n,objectFit:c,objectPosition:u,...E?y:FK(y,["onError","onLoad"])};return b?o||J.createElement(ie.img,{as:$0,className:"chakra-image__placeholder",src:r,..._}):J.createElement(ie.img,{as:$0,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",..._})});Df.displayName="Image";ce((e,t)=>J.createElement(ie.img,{ref:t,as:$0,className:"chakra-image",...e}));var zK=Object.create,JT=Object.defineProperty,VK=Object.getOwnPropertyDescriptor,eI=Object.getOwnPropertyNames,WK=Object.getPrototypeOf,jK=Object.prototype.hasOwnProperty,tI=(e,t)=>function(){return t||(0,e[eI(e)[0]])((t={exports:{}}).exports,t),t.exports},UK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eI(t))!jK.call(e,o)&&o!==n&&JT(e,o,{get:()=>t[o],enumerable:!(r=VK(t,o))||r.enumerable});return e},HK=(e,t,n)=>(n=e!=null?zK(WK(e)):{},UK(t||!e||!e.__esModule?JT(n,"default",{value:e,enumerable:!0}):n,e)),GK=tI({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=m&&R[m]||R["@@iterator"],typeof R=="function"?R:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function w(R,U,se){this.props=R,this.context=U,this.refs=E,this.updater=se||y}w.prototype.isReactComponent={},w.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,U,"setState")},w.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function b(){}b.prototype=w.prototype;function _(R,U,se){this.props=R,this.context=U,this.refs=E,this.updater=se||y}var P=_.prototype=new b;P.constructor=_,x(P,w.prototype),P.isPureReactComponent=!0;var I=Array.isArray,N=Object.prototype.hasOwnProperty,L={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function K(R,U,se){var ue,he={},me=null,Pe=null;if(U!=null)for(ue in U.ref!==void 0&&(Pe=U.ref),U.key!==void 0&&(me=""+U.key),U)N.call(U,ue)&&!z.hasOwnProperty(ue)&&(he[ue]=U[ue]);var fe=arguments.length-2;if(fe===1)he.children=se;else if(1<fe){for(var Se=Array(fe),Le=0;Le<fe;Le++)Se[Le]=arguments[Le+2];he.children=Se}if(R&&R.defaultProps)for(ue in fe=R.defaultProps,fe)he[ue]===void 0&&(he[ue]=fe[ue]);return{$$typeof:t,type:R,key:me,ref:Pe,props:he,_owner:L.current}}function W(R,U){return{$$typeof:t,type:R.type,key:U,ref:R.ref,props:R.props,_owner:R._owner}}function te(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function be(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(se){return U[se]})}var _e=/\/+/g;function ye(R,U){return typeof R=="object"&&R!==null&&R.key!=null?be(""+R.key):U.toString(36)}function Ce(R,U,se,ue,he){var me=typeof R;(me==="undefined"||me==="boolean")&&(R=null);var Pe=!1;if(R===null)Pe=!0;else switch(me){case"string":case"number":Pe=!0;break;case"object":switch(R.$$typeof){case t:case n:Pe=!0}}if(Pe)return Pe=R,he=he(Pe),R=ue===""?"."+ye(Pe,0):ue,I(he)?(se="",R!=null&&(se=R.replace(_e,"$&/")+"/"),Ce(he,U,se,"",function(Le){return Le})):he!=null&&(te(he)&&(he=W(he,se+(!he.key||Pe&&Pe.key===he.key?"":(""+he.key).replace(_e,"$&/")+"/")+R)),U.push(he)),1;if(Pe=0,ue=ue===""?".":ue+":",I(R))for(var fe=0;fe<R.length;fe++){me=R[fe];var Se=ue+ye(me,fe);Pe+=Ce(me,U,se,Se,he)}else if(Se=v(R),typeof Se=="function")for(R=Se.call(R),fe=0;!(me=R.next()).done;)me=me.value,Se=ue+ye(me,fe++),Pe+=Ce(me,U,se,Se,he);else if(me==="object")throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Pe}function ae(R,U,se){if(R==null)return R;var ue=[],he=0;return Ce(R,ue,"","",function(me){return U.call(se,me,he++)}),ue}function ke(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(se){(R._status===0||R._status===-1)&&(R._status=1,R._result=se)},function(se){(R._status===0||R._status===-1)&&(R._status=2,R._result=se)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var j={current:null},Y={transition:null},q={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:Y,ReactCurrentOwner:L};e.Children={map:ae,forEach:function(R,U,se){ae(R,function(){U.apply(this,arguments)},se)},count:function(R){var U=0;return ae(R,function(){U++}),U},toArray:function(R){return ae(R,function(U){return U})||[]},only:function(R){if(!te(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},e.Component=w,e.Fragment=r,e.Profiler=i,e.PureComponent=_,e.StrictMode=o,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,e.cloneElement=function(R,U,se){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ue=x({},R.props),he=R.key,me=R.ref,Pe=R._owner;if(U!=null){if(U.ref!==void 0&&(me=U.ref,Pe=L.current),U.key!==void 0&&(he=""+U.key),R.type&&R.type.defaultProps)var fe=R.type.defaultProps;for(Se in U)N.call(U,Se)&&!z.hasOwnProperty(Se)&&(ue[Se]=U[Se]===void 0&&fe!==void 0?fe[Se]:U[Se])}var Se=arguments.length-2;if(Se===1)ue.children=se;else if(1<Se){fe=Array(Se);for(var Le=0;Le<Se;Le++)fe[Le]=arguments[Le+2];ue.children=fe}return{$$typeof:t,type:R.type,key:he,ref:me,props:ue,_owner:Pe}},e.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:s,_context:R},R.Consumer=R},e.createElement=K,e.createFactory=function(R){var U=K.bind(null,R);return U.type=R,U},e.createRef=function(){return{current:null}},e.forwardRef=function(R){return{$$typeof:c,render:R}},e.isValidElement=te,e.lazy=function(R){return{$$typeof:h,_payload:{_status:-1,_result:R},_init:ke}},e.memo=function(R,U){return{$$typeof:p,type:R,compare:U===void 0?null:U}},e.startTransition=function(R){var U=Y.transition;Y.transition={};try{R()}finally{Y.transition=U}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(R,U){return j.current.useCallback(R,U)},e.useContext=function(R){return j.current.useContext(R)},e.useDebugValue=function(){},e.useDeferredValue=function(R){return j.current.useDeferredValue(R)},e.useEffect=function(R,U){return j.current.useEffect(R,U)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(R,U,se){return j.current.useImperativeHandle(R,U,se)},e.useInsertionEffect=function(R,U){return j.current.useInsertionEffect(R,U)},e.useLayoutEffect=function(R,U){return j.current.useLayoutEffect(R,U)},e.useMemo=function(R,U){return j.current.useMemo(R,U)},e.useReducer=function(R,U,se){return j.current.useReducer(R,U,se)},e.useRef=function(R){return j.current.useRef(R)},e.useState=function(R){return j.current.useState(R)},e.useSyncExternalStore=function(R,U,se){return j.current.useSyncExternalStore(R,U,se)},e.useTransition=function(){return j.current.useTransition()},e.version="18.2.0"}}),qK=tI({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=GK()}}),yk=HK(qK());function SS(e){return yk.Children.toArray(e).filter(t=>(0,yk.isValidElement)(t))}/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*//**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var og=(...e)=>e.filter(Boolean).join(" "),bk=e=>e?"":void 0,[KK,YK]=Wt({strict:!1,name:"ButtonGroupContext"});function Hb(e){const{children:t,className:n,...r}=e,o=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=og("chakra-button__icon",n);return J.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}Hb.displayName="ButtonIcon";function Gb(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=S(ng,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=og("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return J.createElement(ie.div,{className:c,...u,__css:p},o)}Gb.displayName="ButtonSpinner";function ZK(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Ro=ce((e,t)=>{const n=YK(),r=rr("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:y="start",className:x,as:E,...w}=St(e),b=C.exports.useMemo(()=>{const N={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:N}}},[r,n]),{ref:_,type:P}=ZK(E),I={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return J.createElement(ie.button,{disabled:o||i,ref:lj(t,_),as:E,type:m??P,"data-active":bk(s),"data-loading":bk(i),__css:b,className:og("chakra-button",x),...w},i&&y==="start"&&S(Gb,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||J.createElement(ie.span,{opacity:0},S(xk,{...I})):S(xk,{...I}),i&&y==="end"&&S(Gb,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});Ro.displayName="Button";function xk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ee(Rn,{children:[t&&S(Hb,{marginEnd:o,children:t}),r,n&&S(Hb,{marginStart:o,children:n})]})}var XK=ce(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=og("chakra-button__group",s),m=C.exports.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:f}),[r,o,i,f]);let v={display:"inline-flex"};return c?v={...v,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:v={...v,"& > *:not(style) ~ *:not(style)":{marginStart:u}},J.createElement(KK,{value:m},J.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});XK.displayName="ButtonGroup";var pr=ce((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=C.exports.isValidElement(u)?C.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return S(Ro,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});pr.displayName="IconButton";var Ou=(...e)=>e.filter(Boolean).join(" "),nh=e=>e?"":void 0,q1=e=>e?!0:void 0;function Sk(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[QK,nI]=Wt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[JK,Ru]=Wt({strict:!1,name:"FormControlContext"});function eY(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=C.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=C.exports.useState(!1),[y,x]=C.exports.useState(!1),[E,w]=C.exports.useState(!1),b=C.exports.useCallback((L={},z=null)=>({id:h,...L,ref:sn(z,K=>{!K||x(!0)})}),[h]),_=C.exports.useCallback((L={},z=null)=>({...L,ref:z,"data-focus":nh(E),"data-disabled":nh(o),"data-invalid":nh(r),"data-readonly":nh(i),id:L.id??f,htmlFor:L.htmlFor??c}),[c,o,E,r,i,f]),P=C.exports.useCallback((L={},z=null)=>({id:p,...L,ref:sn(z,K=>{!K||v(!0)}),"aria-live":"polite"}),[p]),I=C.exports.useCallback((L={},z=null)=>({...L,...s,ref:z,role:"group"}),[s]),N=C.exports.useCallback((L={},z=null)=>({...L,ref:z,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:x,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:P,getRootProps:I,getLabelProps:_,getRequiredIndicatorProps:N}}var Bi=ce(function(t,n){const r=xr("Form",t),o=St(t),{getRootProps:i,htmlProps:s,...u}=eY(o),c=Ou("chakra-form-control",t.className);return J.createElement(JK,{value:u},J.createElement(QK,{value:r},J.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});Bi.displayName="FormControl";var tY=ce(function(t,n){const r=Ru(),o=nI(),i=Ou("chakra-form__helper-text",t.className);return J.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});tY.displayName="FormHelperText";function wS(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=CS(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":q1(n),"aria-required":q1(o),"aria-readonly":q1(r)}}function CS(e){const t=Ru(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:u,isReadOnly:c,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&v.push(t.feedbackId),t?.hasHelpText&&v.push(t.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:n??t?.id,isDisabled:r??f??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:u??t?.isInvalid,onFocus:Sk(t?.onFocus,p),onBlur:Sk(t?.onBlur,h)}}var[nY,rY]=Wt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),oY=ce((e,t)=>{const n=xr("FormError",e),r=St(e),o=Ru();return o?.isInvalid?J.createElement(nY,{value:n},J.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:Ou("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});oY.displayName="FormErrorMessage";var iY=ce((e,t)=>{const n=rY(),r=Ru();if(!r?.isInvalid)return null;const o=Ou("chakra-form__error-icon",e.className);return S(ao,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:S("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"})})});iY.displayName="FormErrorIcon";var zi=ce(function(t,n){const r=rr("FormLabel",t),o=St(t),{className:i,children:s,requiredIndicator:u=S(rI,{}),optionalIndicator:c=null,...f}=o,p=Ru(),h=p?.getLabelProps(f,n)??{ref:n,...f};return J.createElement(ie.label,{...h,className:Ou("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});zi.displayName="FormLabel";var rI=ce(function(t,n){const r=Ru(),o=nI();if(!r?.isRequired)return null;const i=Ou("chakra-form__required-indicator",t.className);return J.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});rI.displayName="RequiredIndicator";function B0(e,t){const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var _S={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},aY=ie("span",{baseStyle:_S});aY.displayName="VisuallyHidden";var sY=ie("input",{baseStyle:_S});sY.displayName="VisuallyHiddenInput";var wk=!1,ig=null,vu=!1,qb=new Set,lY=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function uY(e){return!(e.metaKey||!lY&&e.altKey||e.ctrlKey)}function kS(e,t){qb.forEach(n=>n(e,t))}function Ck(e){vu=!0,uY(e)&&(ig="keyboard",kS("keyboard",e))}function xl(e){ig="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(vu=!0,kS("pointer",e))}function cY(e){e.target===window||e.target===document||(vu||(ig="keyboard",kS("keyboard",e)),vu=!1)}function fY(){vu=!1}function _k(){return ig!=="pointer"}function dY(){if(typeof window>"u"||wk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){vu=!0,e.apply(this,n)},document.addEventListener("keydown",Ck,!0),document.addEventListener("keyup",Ck,!0),window.addEventListener("focus",cY,!0),window.addEventListener("blur",fY,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",xl,!0),document.addEventListener("pointermove",xl,!0),document.addEventListener("pointerup",xl,!0)):(document.addEventListener("mousedown",xl,!0),document.addEventListener("mousemove",xl,!0),document.addEventListener("mouseup",xl,!0)),wk=!0}function pY(e){dY(),e(_k());const t=()=>e(_k());return qb.add(t),()=>{qb.delete(t)}}var[wpe,hY]=Wt({name:"CheckboxGroupContext",strict:!1}),mY=(...e)=>e.filter(Boolean).join(" "),Kn=e=>e?"":void 0;function Yr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function gY(...e){return function(n){e.forEach(r=>{r?.(n)})}}function vY(e){const t=so;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var oI=vY(ie.svg);function yY(e){return S(oI,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:S("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function bY(e){return S(oI,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:S("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function xY({open:e,children:t}){return S(Xi,{initial:!1,children:e&&J.createElement(so.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)})}function SY(e){const{isIndeterminate:t,isChecked:n,...r}=e;return S(xY,{open:n||t,children:S(t?bY:yY,{...r})})}function wY(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function iI(e={}){const t=CS(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:y,name:x,value:E,tabIndex:w=void 0,"aria-label":b,"aria-labelledby":_,"aria-invalid":P,...I}=e,N=wY(I,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),L=Vn(v),z=Vn(u),K=Vn(c),[W,te]=C.exports.useState(!1),[be,_e]=C.exports.useState(!1),[ye,Ce]=C.exports.useState(!1),[ae,ke]=C.exports.useState(!1);C.exports.useEffect(()=>pY(te),[]);const j=C.exports.useRef(null),[Y,q]=C.exports.useState(!0),[R,U]=C.exports.useState(!!p),se=h!==void 0,ue=se?h:R,he=C.exports.useCallback(ge=>{if(r||n){ge.preventDefault();return}se||U(ue?ge.target.checked:y?!0:ge.target.checked),L?.(ge)},[r,n,ue,se,y,L]);$i(()=>{j.current&&(j.current.indeterminate=Boolean(y))},[y]),B0(()=>{n&&_e(!1)},[n,_e]),$i(()=>{const ge=j.current;!ge?.form||(ge.form.onreset=()=>{U(!!p)})},[]);const me=n&&!m,Pe=C.exports.useCallback(ge=>{ge.key===" "&&ke(!0)},[ke]),fe=C.exports.useCallback(ge=>{ge.key===" "&&ke(!1)},[ke]);$i(()=>{if(!j.current)return;j.current.checked!==ue&&U(j.current.checked)},[j.current]);const Se=C.exports.useCallback((ge={},Ie=null)=>{const et=De=>{be&&De.preventDefault(),ke(!0)};return{...ge,ref:Ie,"data-active":Kn(ae),"data-hover":Kn(ye),"data-checked":Kn(ue),"data-focus":Kn(be),"data-focus-visible":Kn(be&&W),"data-indeterminate":Kn(y),"data-disabled":Kn(n),"data-invalid":Kn(i),"data-readonly":Kn(r),"aria-hidden":!0,onMouseDown:Yr(ge.onMouseDown,et),onMouseUp:Yr(ge.onMouseUp,()=>ke(!1)),onMouseEnter:Yr(ge.onMouseEnter,()=>Ce(!0)),onMouseLeave:Yr(ge.onMouseLeave,()=>Ce(!1))}},[ae,ue,n,be,W,ye,y,i,r]),Le=C.exports.useCallback((ge={},Ie=null)=>({...N,...ge,ref:sn(Ie,et=>{!et||q(et.tagName==="LABEL")}),onClick:Yr(ge.onClick,()=>{var et;Y||((et=j.current)==null||et.click(),requestAnimationFrame(()=>{var De;(De=j.current)==null||De.focus()}))}),"data-disabled":Kn(n),"data-checked":Kn(ue),"data-invalid":Kn(i)}),[N,n,ue,i,Y]),at=C.exports.useCallback((ge={},Ie=null)=>({...ge,ref:sn(j,Ie),type:"checkbox",name:x,value:E,id:s,tabIndex:w,onChange:Yr(ge.onChange,he),onBlur:Yr(ge.onBlur,z,()=>_e(!1)),onFocus:Yr(ge.onFocus,K,()=>_e(!0)),onKeyDown:Yr(ge.onKeyDown,Pe),onKeyUp:Yr(ge.onKeyUp,fe),required:o,checked:ue,disabled:me,readOnly:r,"aria-label":b,"aria-labelledby":_,"aria-invalid":P?Boolean(P):i,"aria-describedby":f,"aria-disabled":n,style:_S}),[x,E,s,he,z,K,Pe,fe,o,ue,me,r,b,_,P,i,f,n,w]),At=C.exports.useCallback((ge={},Ie=null)=>({...ge,ref:Ie,onMouseDown:Yr(ge.onMouseDown,kk),onTouchStart:Yr(ge.onTouchStart,kk),"data-disabled":Kn(n),"data-checked":Kn(ue),"data-invalid":Kn(i)}),[ue,n,i]);return{state:{isInvalid:i,isFocused:be,isChecked:ue,isActive:ae,isHovered:ye,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Le,getCheckboxProps:Se,getInputProps:at,getLabelProps:At,htmlProps:N}}function kk(e){e.preventDefault(),e.stopPropagation()}var CY=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),_Y=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),kY=ce(function(t,n){const r=hY(),o={...r,...t},i=xr("Checkbox",o),s=St(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=S(SY,{}),isChecked:v,isDisabled:y=r?.isDisabled,onChange:x,inputProps:E,...w}=s;let b=v;r?.value&&s.value&&(b=r.value.includes(s.value));let _=x;r?.onChange&&s.value&&(_=gY(r.onChange,x));const{state:P,getInputProps:I,getCheckboxProps:N,getLabelProps:L,getRootProps:z}=iI({...w,isDisabled:y,isChecked:b,onChange:_}),K=C.exports.useMemo(()=>({opacity:P.isChecked||P.isIndeterminate?1:0,transform:P.isChecked||P.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p,...i.icon}),[p,h,P.isChecked,P.isIndeterminate,i.icon]),W=C.exports.cloneElement(m,{__css:K,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return ee(_Y,{__css:i.container,className:mY("chakra-checkbox",c),...z(),children:[S("input",{className:"chakra-checkbox__input",...I(E,n)}),S(CY,{__css:i.control,className:"chakra-checkbox__control",...N(),children:W}),f&&J.createElement(ie.span,{className:"chakra-checkbox__label",...L(),__css:{marginStart:u,...i.label}},f)]})});kY.displayName="Checkbox";function EY(e){return S(ao,{focusable:"false","aria-hidden":!0,...e,children:S("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var ag=ce(function(t,n){const r=rr("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=St(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return J.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||S(EY,{width:"1em",height:"1em"}))});ag.displayName="CloseButton";function PY(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function aI(e,t){let n=PY(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function Ek(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function AY(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function TY(e={}){const{onChange:t,precision:n,defaultValue:r,value:o,step:i=1,min:s=Number.MIN_SAFE_INTEGER,max:u=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,f=Vn(t),[p,h]=C.exports.useState(()=>r==null?"":K1(r,i,n)??""),m=typeof o<"u",v=m?o:p,y=sI(ga(v),i),x=n??y,E=C.exports.useCallback(W=>{W!==v&&(m||h(W.toString()),f?.(W.toString(),ga(W)))},[f,m,v]),w=C.exports.useCallback(W=>{let te=W;return c&&(te=AY(te,s,u)),aI(te,x)},[x,c,u,s]),b=C.exports.useCallback((W=i)=>{let te;v===""?te=ga(W):te=ga(v)+W,te=w(te),E(te)},[w,i,E,v]),_=C.exports.useCallback((W=i)=>{let te;v===""?te=ga(-W):te=ga(v)-W,te=w(te),E(te)},[w,i,E,v]),P=C.exports.useCallback(()=>{let W;r==null?W="":W=K1(r,i,n)??s,E(W)},[r,n,i,E,s]),I=C.exports.useCallback(W=>{const te=K1(W,i,x)??s;E(te)},[x,i,E,s]),N=ga(v);return{isOutOfRange:N>u||N<s,isAtMax:N===u,isAtMin:N===s,precision:x,value:v,valueAsNumber:N,update:E,reset:P,increment:b,decrement:_,clamp:w,cast:I,setValue:h}}function ga(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function sI(e,t){return Math.max(Ek(t),Ek(e))}function K1(e,t,n){const r=ga(e);if(Number.isNaN(r))return;const o=sI(r,t);return aI(r,n??o)}var lI=`
|
|
:root {
|
|
--chakra-vh: 100vh;
|
|
}
|
|
|
|
@supports (height: -webkit-fill-available) {
|
|
:root {
|
|
--chakra-vh: -webkit-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: -moz-fill-available) {
|
|
:root {
|
|
--chakra-vh: -moz-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: 100lvh) {
|
|
:root {
|
|
--chakra-vh: 100lvh;
|
|
}
|
|
}
|
|
`,IY=()=>S(zm,{styles:lI}),OY=()=>S(zm,{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;
|
|
}
|
|
|
|
${lI}
|
|
`});function Kb(e,t,n,r){const o=Vn(n);return C.exports.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i?.removeEventListener(t,o,r)}}var RY=ad?C.exports.useLayoutEffect:C.exports.useEffect;function Yb(e,t=[]){const n=C.exports.useRef(e);return RY(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function ES(e,t,n,r){const o=Yb(t);return C.exports.useEffect(()=>{const i=C0(n)??document;if(!!t)return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r,o,t]),()=>{(C0(n)??document).removeEventListener(e,o,r)}}function MY(e){const{isOpen:t,ref:n}=e,[r,o]=C.exports.useState(t),[i,s]=C.exports.useState(!1);return C.exports.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),ES("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var c;const f=tW(n.current),p=new f.CustomEvent("animationend",{bubbles:!0});(c=n.current)==null||c.dispatchEvent(p)}}}function NY(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function LY(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Zb(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Yb(n),s=Yb(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),[f,p]=NY(r,u),h=LY(o,"disclosure"),m=C.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=C.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),y=C.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:y,isControlled:f,getButtonProps:(x={})=>({...x,"aria-expanded":p,"aria-controls":h,onClick:hW(x.onClick,y)}),getDisclosureProps:(x={})=>({...x,hidden:!p,id:h})}}var uI=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function DY(e){const t=e.current;if(!t)return!1;const n=oW(t);return!n||Gx(t,n)?!1:!!uW(n)}function FY(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;uI(()=>{if(!i||DY(e))return;const s=o?.current||e.current;s&&_0(s,{nextTick:!0})},[i,e,o])}function $Y(e,t,n,r){return ES(MW(t),PW(n,t==="pointerdown"),e,r)}function BY(e){const{ref:t,elements:n,enabled:r}=e,o=LW("Safari");$Y(()=>id(t.current),"pointerdown",s=>{if(!o||!r)return;const u=s.target,f=(n??[t]).some(p=>{const h=i6(p)?p.current:p;return Gx(h,u)});!c6(u)&&f&&(s.preventDefault(),_0(u))})}var zY={preventScroll:!0,shouldFocus:!1};function VY(e,t=zY){const{focusRef:n,preventScroll:r,shouldFocus:o,visible:i}=t,s=i6(e)?e.current:e,u=o&&i,c=C.exports.useCallback(()=>{if(!(!s||!u)&&!Gx(s,document.activeElement))if(n?.current)_0(n.current,{preventScroll:r,nextTick:!0});else{const f=pW(s);f.length>0&&_0(f[0],{preventScroll:r,nextTick:!0})}},[u,r,s,n]);uI(()=>{c()},[c]),ES("transitionend",c,s)}function PS(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var AS=ce(function(t,n){const{htmlSize:r,...o}=t,i=xr("Input",o),s=St(o),u=wS(s),c=Zt("chakra-input",t.className);return J.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});AS.displayName="Input";AS.id="Input";var[WY,cI]=Wt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),jY=ce(function(t,n){const r=xr("Input",t),{children:o,className:i,...s}=St(t),u=Zt("chakra-input__group",i),c={},f=SS(o),p=r.field;f.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(c.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(c.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(c.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const h=f.map(m=>{var v,y;const x=PS({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((y=m.props)==null?void 0:y.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,x):C.exports.cloneElement(m,Object.assign(x,c,m.props))});return J.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},S(WY,{value:r,children:h}))});jY.displayName="InputGroup";var UY={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},HY=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),TS=ce(function(t,n){const{placement:r="left",...o}=t,i=UY[r]??{},s=cI();return S(HY,{ref:n,...o,__css:{...s.addon,...i}})});TS.displayName="InputAddon";var fI=ce(function(t,n){return S(TS,{ref:n,placement:"left",...t,className:Zt("chakra-input__left-addon",t.className)})});fI.displayName="InputLeftAddon";fI.id="InputLeftAddon";var dI=ce(function(t,n){return S(TS,{ref:n,placement:"right",...t,className:Zt("chakra-input__right-addon",t.className)})});dI.displayName="InputRightAddon";dI.id="InputRightAddon";var GY=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),sg=ce(function(t,n){const{placement:r="left",...o}=t,i=cI(),s=i.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:s?.height??s?.h,height:s?.height??s?.h,fontSize:s?.fontSize,...i.element};return S(GY,{ref:n,__css:c,...o})});sg.id="InputElement";sg.displayName="InputElement";var pI=ce(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__left-element",r);return S(sg,{ref:n,placement:"left",className:i,...o})});pI.id="InputLeftElement";pI.displayName="InputLeftElement";var hI=ce(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__right-element",r);return S(sg,{ref:n,placement:"right",className:i,...o})});hI.id="InputRightElement";hI.displayName="InputRightElement";function qY(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ha(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):qY(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var KY=ce(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=C.exports.Children.only(r),u=Zt("chakra-aspect-ratio",o);return J.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Ha(n,c=>`${1/c*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...i},s)});KY.displayName="AspectRatio";var YY=ce(function(t,n){const r=rr("Badge",t),{className:o,...i}=St(t);return J.createElement(ie.span,{ref:n,className:Zt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});YY.displayName="Badge";var Io=ie("div");Io.displayName="Box";var mI=ce(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return S(Io,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});mI.displayName="Square";var ZY=ce(function(t,n){const{size:r,...o}=t;return S(mI,{size:r,ref:n,borderRadius:"9999px",...o})});ZY.displayName="Circle";var Ff=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Ff.displayName="Center";var XY={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};ce(function(t,n){const{axis:r="both",...o}=t;return J.createElement(ie.div,{ref:n,__css:XY[r],...o,position:"absolute"})});var QY=ce(function(t,n){const r=rr("Code",t),{className:o,...i}=St(t);return J.createElement(ie.code,{ref:n,className:Zt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});QY.displayName="Code";var JY=ce(function(t,n){const{className:r,centerContent:o,...i}=St(t),s=rr("Container",t);return J.createElement(ie.div,{ref:n,className:Zt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});JY.displayName="Container";var eZ=ce(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=rr("Divider",t),{className:h,orientation:m="horizontal",__css:v,...y}=St(t),x={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return J.createElement(ie.hr,{ref:n,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:f,borderStyle:c,...x[m],...v},className:Zt("chakra-divider",h)})});eZ.displayName="Divider";var We=ce(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return J.createElement(ie.div,{ref:n,__css:h,...p})});We.displayName="Flex";var IS=ce(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:u,row:c,autoFlow:f,autoRows:p,templateRows:h,autoColumns:m,templateColumns:v,...y}=t,x={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:u,gridRow:c,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return J.createElement(ie.div,{ref:n,__css:x,...y})});IS.displayName="Grid";function Pk(e){return Ha(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var va=ce(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=PS({gridArea:r,gridColumn:Pk(o),gridRow:Pk(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return J.createElement(ie.div,{ref:n,__css:h,...p})});va.displayName="GridItem";var OS=ce(function(t,n){const r=rr("Heading",t),{className:o,...i}=St(t);return J.createElement(ie.h2,{ref:n,className:Zt("chakra-heading",t.className),...i,__css:r})});OS.displayName="Heading";ce(function(t,n){const r=rr("Mark",t),o=St(t);return S(Io,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var tZ=ce(function(t,n){const r=rr("Kbd",t),{className:o,...i}=St(t);return J.createElement(ie.kbd,{ref:n,className:Zt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});tZ.displayName="Kbd";var $f=ce(function(t,n){const r=rr("Link",t),{className:o,isExternal:i,...s}=St(t);return J.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Zt("chakra-link",o),...s,__css:r})});$f.displayName="Link";ce(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return J.createElement(ie.a,{...u,ref:n,className:Zt("chakra-linkbox__overlay",s),rel:r?"noopener noreferrer":i,target:r?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});ce(function(t,n){const{className:r,...o}=t;return J.createElement(ie.div,{ref:n,position:"relative",...o,className:Zt("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[nZ,gI]=Wt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),RS=ce(function(t,n){const r=xr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=St(t),f=SS(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return J.createElement(nZ,{value:r},J.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});RS.displayName="List";var rZ=ce((e,t)=>{const{as:n,...r}=e;return S(RS,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});rZ.displayName="OrderedList";var oZ=ce(function(t,n){const{as:r,...o}=t;return S(RS,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});oZ.displayName="UnorderedList";var iZ=ce(function(t,n){const r=gI();return J.createElement(ie.li,{ref:n,...t,__css:r.item})});iZ.displayName="ListItem";var aZ=ce(function(t,n){const r=gI();return S(ao,{ref:n,role:"presentation",...t,__css:r.icon})});aZ.displayName="ListIcon";var sZ=ce(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=Wm(),p=u?uZ(u,f):cZ(r);return S(IS,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});sZ.displayName="SimpleGrid";function lZ(e){return typeof e=="number"?`${e}px`:e}function uZ(e,t){return Ha(e,n=>{const r=XW("sizes",n,lZ(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function cZ(e){return Ha(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var vI=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});vI.displayName="Spacer";var Xb="& > *:not(style) ~ *:not(style)";function fZ(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[Xb]:Ha(n,o=>r[o])}}function dZ(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Ha(n,o=>r[o])}}var yI=e=>J.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});yI.displayName="StackItem";var MS=ce((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,v=n?"row":r??"column",y=C.exports.useMemo(()=>fZ({direction:v,spacing:s}),[v,s]),x=C.exports.useMemo(()=>dZ({spacing:s,direction:v}),[s,v]),E=!!f,w=!h&&!E,b=SS(c),_=w?b:b.map((I,N)=>{const L=typeof I.key<"u"?I.key:N,z=N+1===b.length,W=h?S(yI,{children:I},L):I;if(!E)return W;const te=C.exports.cloneElement(f,{__css:x}),be=z?null:te;return ee(C.exports.Fragment,{children:[W,be]},L)}),P=Zt("chakra-stack",p);return J.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y.flexDirection,flexWrap:u,className:P,__css:E?{}:{[Xb]:y[Xb]},...m},_)});MS.displayName="Stack";var Xc=ce((e,t)=>S(MS,{align:"center",...e,direction:"row",ref:t}));Xc.displayName="HStack";var pZ=ce((e,t)=>S(MS,{align:"center",...e,direction:"column",ref:t}));pZ.displayName="VStack";var Kt=ce(function(t,n){const r=rr("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=St(t),f=PS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return J.createElement(ie.p,{ref:n,className:Zt("chakra-text",t.className),...f,...c,__css:r})});Kt.displayName="Text";function Ak(e){return typeof e=="number"?`${e}px`:e}var hZ=ce(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:u,direction:c,align:f,className:p,shouldWrapChildren:h,...m}=t,v=C.exports.useMemo(()=>{const{spacingX:x=r,spacingY:E=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":w=>Ha(x,b=>Ak(pb("space",b)(w))),"--chakra-wrap-y-spacing":w=>Ha(E,b=>Ak(pb("space",b)(w))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:f,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,i,u,f,c]),y=h?C.exports.Children.map(s,(x,E)=>S(bI,{children:x},E)):s;return J.createElement(ie.div,{ref:n,className:Zt("chakra-wrap",p),overflow:"hidden",...m},J.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},y))});hZ.displayName="Wrap";var bI=ce(function(t,n){const{className:r,...o}=t;return J.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Zt("chakra-wrap__listitem",r),...o})});bI.displayName="WrapItem";var mZ={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},xI=mZ,Sl=()=>{},gZ={document:xI,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Sl,removeEventListener:Sl,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Sl,removeListener:Sl}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:Sl,setInterval:()=>0,clearInterval:Sl},vZ=gZ,yZ={window:vZ,document:xI},SI=typeof window<"u"?{window,document}:yZ,wI=C.exports.createContext(SI);wI.displayName="EnvironmentContext";function CI(e){const{children:t,environment:n}=e,[r,o]=C.exports.useState(null),[i,s]=C.exports.useState(!1);C.exports.useEffect(()=>s(!0),[]);const u=C.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:SI},[r,n]);return ee(wI.Provider,{value:u,children:[t,!n&&i&&S("span",{id:"__chakra_env",hidden:!0,ref:c=>{C.exports.startTransition(()=>{c&&o(c)})}})]})}CI.displayName="EnvironmentProvider";function bZ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function xZ(e){if(!bZ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var SZ=e=>e.hasAttribute("tabindex");function wZ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function _I(e){return e.parentElement&&_I(e.parentElement)?!0:e.hidden}function CZ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function _Z(e){if(!xZ(e)||_I(e)||wZ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():CZ(e)?!0:SZ(e)}var kZ=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],EZ=kZ.join(),PZ=e=>e.offsetWidth>0&&e.offsetHeight>0;function AZ(e){const t=Array.from(e.querySelectorAll(EZ));return t.unshift(e),t.filter(n=>_Z(n)&&PZ(n))}var vr="top",oo="bottom",io="right",yr="left",NS="auto",hd=[vr,oo,io,yr],yu="start",Bf="end",TZ="clippingParents",kI="viewport",Sc="popper",IZ="reference",Tk=hd.reduce(function(e,t){return e.concat([t+"-"+yu,t+"-"+Bf])},[]),EI=[].concat(hd,[NS]).reduce(function(e,t){return e.concat([t,t+"-"+yu,t+"-"+Bf])},[]),OZ="beforeRead",RZ="read",MZ="afterRead",NZ="beforeMain",LZ="main",DZ="afterMain",FZ="beforeWrite",$Z="write",BZ="afterWrite",zZ=[OZ,RZ,MZ,NZ,LZ,DZ,FZ,$Z,BZ];function si(e){return e?(e.nodeName||"").toLowerCase():null}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function to(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function LS(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!to(i)||!si(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function WZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!to(o)||!si(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const jZ={name:"applyStyles",enabled:!0,phase:"write",fn:VZ,effect:WZ,requires:["computeStyles"]};function ni(e){return e.split("-")[0]}var Rs=Math.max,z0=Math.min,bu=Math.round;function Qb(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function PI(){return!/^((?!chrome|android).)*safari/i.test(Qb())}function xu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&to(e)&&(o=e.offsetWidth>0&&bu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&bu(r.height)/e.offsetHeight||1);var s=zs(e)?lo(e):window,u=s.visualViewport,c=!PI()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function DS(e){var t=xu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function AI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&LS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qi(e){return lo(e).getComputedStyle(e)}function UZ(e){return["table","td","th"].indexOf(si(e))>=0}function Ja(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function lg(e){return si(e)==="html"?e:e.assignedSlot||e.parentNode||(LS(e)?e.host:null)||Ja(e)}function Ik(e){return!to(e)||qi(e).position==="fixed"?null:e.offsetParent}function HZ(e){var t=/firefox/i.test(Qb()),n=/Trident/i.test(Qb());if(n&&to(e)){var r=qi(e);if(r.position==="fixed")return null}var o=lg(e);for(LS(o)&&(o=o.host);to(o)&&["html","body"].indexOf(si(o))<0;){var i=qi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function md(e){for(var t=lo(e),n=Ik(e);n&&UZ(n)&&qi(n).position==="static";)n=Ik(n);return n&&(si(n)==="html"||si(n)==="body"&&qi(n).position==="static")?t:n||HZ(e)||t}function FS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qc(e,t,n){return Rs(e,z0(t,n))}function GZ(e,t,n){var r=Qc(e,t,n);return r>n?n:r}function TI(){return{top:0,right:0,bottom:0,left:0}}function II(e){return Object.assign({},TI(),e)}function OI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var qZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,II(typeof t!="number"?t:OI(t,hd))};function KZ(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=ni(n.placement),c=FS(u),f=[yr,io].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=qZ(o.padding,n),m=DS(i),v=c==="y"?vr:yr,y=c==="y"?oo:io,x=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],E=s[c]-n.rects.reference[c],w=md(i),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,_=x/2-E/2,P=h[v],I=b-m[p]-h[y],N=b/2-m[p]/2+_,L=Qc(P,N,I),z=c;n.modifiersData[r]=(t={},t[z]=L,t.centerOffset=L-N,t)}}function YZ(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!AI(t.elements.popper,o)||(t.elements.arrow=o))}const ZZ={name:"arrow",enabled:!0,phase:"main",fn:KZ,effect:YZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var XZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QZ(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:bu(t*o)/o||0,y:bu(n*o)/o||0}}function Ok(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,x=y===void 0?0:y,E=typeof p=="function"?p({x:v,y:x}):{x:v,y:x};v=E.x,x=E.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),_=yr,P=vr,I=window;if(f){var N=md(n),L="clientHeight",z="clientWidth";if(N===lo(n)&&(N=Ja(n),qi(N).position!=="static"&&u==="absolute"&&(L="scrollHeight",z="scrollWidth")),N=N,o===vr||(o===yr||o===io)&&i===Bf){P=oo;var K=h&&N===I&&I.visualViewport?I.visualViewport.height:N[L];x-=K-r.height,x*=c?1:-1}if(o===yr||(o===vr||o===oo)&&i===Bf){_=io;var W=h&&N===I&&I.visualViewport?I.visualViewport.width:N[z];v-=W-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&XZ),be=p===!0?QZ({x:v,y:x}):{x:v,y:x};if(v=be.x,x=be.y,c){var _e;return Object.assign({},te,(_e={},_e[P]=b?"0":"",_e[_]=w?"0":"",_e.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",_e))}return Object.assign({},te,(t={},t[P]=b?x+"px":"",t[_]=w?v+"px":"",t.transform="",t))}function JZ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:ni(t.placement),variation:Su(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ok(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ok(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JZ,data:{}};var rh={passive:!0};function tX(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,rh)}),u&&c.addEventListener("resize",n.update,rh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,rh)}),u&&c.removeEventListener("resize",n.update,rh)}}const nX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tX,data:{}};var rX={left:"right",right:"left",bottom:"top",top:"bottom"};function Fh(e){return e.replace(/left|right|bottom|top/g,function(t){return rX[t]})}var oX={start:"end",end:"start"};function Rk(e){return e.replace(/start|end/g,function(t){return oX[t]})}function $S(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BS(e){return xu(Ja(e)).left+$S(e).scrollLeft}function iX(e,t){var n=lo(e),r=Ja(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=PI();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+BS(e),y:c}}function aX(e){var t,n=Ja(e),r=$S(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Rs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Rs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+BS(e),c=-r.scrollTop;return qi(o||n).direction==="rtl"&&(u+=Rs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function zS(e){var t=qi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function RI(e){return["html","body","#document"].indexOf(si(e))>=0?e.ownerDocument.body:to(e)&&zS(e)?e:RI(lg(e))}function Jc(e,t){var n;t===void 0&&(t=[]);var r=RI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=lo(r),s=o?[i].concat(i.visualViewport||[],zS(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(Jc(lg(s)))}function Jb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sX(e,t){var n=xu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Mk(e,t,n){return t===kI?Jb(iX(e,n)):zs(t)?sX(t,n):Jb(aX(Ja(e)))}function lX(e){var t=Jc(lg(e)),n=["absolute","fixed"].indexOf(qi(e).position)>=0,r=n&&to(e)?md(e):e;return zs(r)?t.filter(function(o){return zs(o)&&AI(o,r)&&si(o)!=="body"}):[]}function uX(e,t,n,r){var o=t==="clippingParents"?lX(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=Mk(e,f,r);return c.top=Rs(p.top,c.top),c.right=z0(p.right,c.right),c.bottom=z0(p.bottom,c.bottom),c.left=Rs(p.left,c.left),c},Mk(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function MI(e){var t=e.reference,n=e.element,r=e.placement,o=r?ni(r):null,i=r?Su(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case vr:c={x:s,y:t.y-n.height};break;case oo:c={x:s,y:t.y+t.height};break;case io:c={x:t.x+t.width,y:u};break;case yr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?FS(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case yu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Bf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function zf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?TZ:u,f=n.rootBoundary,p=f===void 0?kI:f,h=n.elementContext,m=h===void 0?Sc:h,v=n.altBoundary,y=v===void 0?!1:v,x=n.padding,E=x===void 0?0:x,w=II(typeof E!="number"?E:OI(E,hd)),b=m===Sc?IZ:Sc,_=e.rects.popper,P=e.elements[y?b:m],I=uX(zs(P)?P:P.contextElement||Ja(e.elements.popper),c,p,s),N=xu(e.elements.reference),L=MI({reference:N,element:_,strategy:"absolute",placement:o}),z=Jb(Object.assign({},_,L)),K=m===Sc?z:N,W={top:I.top-K.top+w.top,bottom:K.bottom-I.bottom+w.bottom,left:I.left-K.left+w.left,right:K.right-I.right+w.right},te=e.modifiersData.offset;if(m===Sc&&te){var be=te[o];Object.keys(W).forEach(function(_e){var ye=[io,oo].indexOf(_e)>=0?1:-1,Ce=[vr,oo].indexOf(_e)>=0?"y":"x";W[_e]+=be[Ce]*ye})}return W}function cX(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?EI:c,p=Su(r),h=p?u?Tk:Tk.filter(function(y){return Su(y)===p}):hd,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var v=m.reduce(function(y,x){return y[x]=zf(e,{placement:x,boundary:o,rootBoundary:i,padding:s})[ni(x)],y},{});return Object.keys(v).sort(function(y,x){return v[y]-v[x]})}function fX(e){if(ni(e)===NS)return[];var t=Fh(e);return[Rk(e),t,Rk(t)]}function dX(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,x=n.allowedAutoPlacements,E=t.options.placement,w=ni(E),b=w===E,_=c||(b||!y?[Fh(E)]:fX(E)),P=[E].concat(_).reduce(function(ue,he){return ue.concat(ni(he)===NS?cX(t,{placement:he,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:x}):he)},[]),I=t.rects.reference,N=t.rects.popper,L=new Map,z=!0,K=P[0],W=0;W<P.length;W++){var te=P[W],be=ni(te),_e=Su(te)===yu,ye=[vr,oo].indexOf(be)>=0,Ce=ye?"width":"height",ae=zf(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),ke=ye?_e?io:yr:_e?oo:vr;I[Ce]>N[Ce]&&(ke=Fh(ke));var j=Fh(ke),Y=[];if(i&&Y.push(ae[be]<=0),u&&Y.push(ae[ke]<=0,ae[j]<=0),Y.every(function(ue){return ue})){K=te,z=!1;break}L.set(te,Y)}if(z)for(var q=y?3:1,R=function(he){var me=P.find(function(Pe){var fe=L.get(Pe);if(fe)return fe.slice(0,he).every(function(Se){return Se})});if(me)return K=me,"break"},U=q;U>0;U--){var se=R(U);if(se==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const pX={name:"flip",enabled:!0,phase:"main",fn:dX,requiresIfExists:["offset"],data:{_skip:!1}};function Nk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lk(e){return[vr,io,oo,yr].some(function(t){return e[t]>=0})}function hX(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=zf(t,{elementContext:"reference"}),u=zf(t,{altBoundary:!0}),c=Nk(s,r),f=Nk(u,o,i),p=Lk(c),h=Lk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const mX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hX};function gX(e,t,n){var r=ni(e),o=[yr,vr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[yr,io].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function vX(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=EI.reduce(function(p,h){return p[h]=gX(h,t.rects,i),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const yX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vX};function bX(e){var t=e.state,n=e.name;t.modifiersData[n]=MI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xX={name:"popperOffsets",enabled:!0,phase:"read",fn:bX,data:{}};function SX(e){return e==="x"?"y":"x"}function wX(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,x=y===void 0?0:y,E=zf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),w=ni(t.placement),b=Su(t.placement),_=!b,P=FS(w),I=SX(P),N=t.modifiersData.popperOffsets,L=t.rects.reference,z=t.rects.popper,K=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(!!N){if(i){var _e,ye=P==="y"?vr:yr,Ce=P==="y"?oo:io,ae=P==="y"?"height":"width",ke=N[P],j=ke+E[ye],Y=ke-E[Ce],q=v?-z[ae]/2:0,R=b===yu?L[ae]:z[ae],U=b===yu?-z[ae]:-L[ae],se=t.elements.arrow,ue=v&&se?DS(se):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TI(),me=he[ye],Pe=he[Ce],fe=Qc(0,L[ae],ue[ae]),Se=_?L[ae]/2-q-fe-me-W.mainAxis:R-fe-me-W.mainAxis,Le=_?-L[ae]/2+q+fe+Pe+W.mainAxis:U+fe+Pe+W.mainAxis,at=t.elements.arrow&&md(t.elements.arrow),At=at?P==="y"?at.clientTop||0:at.clientLeft||0:0,hn=(_e=te?.[P])!=null?_e:0,ge=ke+Se-hn-At,Ie=ke+Le-hn,et=Qc(v?z0(j,ge):j,ke,v?Rs(Y,Ie):Y);N[P]=et,be[P]=et-ke}if(u){var De,Dt=P==="x"?vr:yr,mn=P==="x"?oo:io,st=N[I],wt=I==="y"?"height":"width",Xt=st+E[Dt],Ut=st-E[mn],de=[vr,yr].indexOf(w)!==-1,Ee=(De=te?.[I])!=null?De:0,ft=de?Xt:st-L[wt]-z[wt]-Ee+W.altAxis,lt=de?st+L[wt]+z[wt]-Ee-W.altAxis:Ut,re=v&&de?GZ(ft,st,lt):Qc(v?ft:Xt,st,v?lt:Ut);N[I]=re,be[I]=re-st}t.modifiersData[r]=be}}const CX={name:"preventOverflow",enabled:!0,phase:"main",fn:wX,requiresIfExists:["offset"]};function _X(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kX(e){return e===lo(e)||!to(e)?$S(e):_X(e)}function EX(e){var t=e.getBoundingClientRect(),n=bu(t.width)/e.offsetWidth||1,r=bu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function PX(e,t,n){n===void 0&&(n=!1);var r=to(t),o=to(t)&&EX(t),i=Ja(t),s=xu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((si(t)!=="body"||zS(i))&&(u=kX(t)),to(t)?(c=xu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=BS(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function AX(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function TX(e){var t=AX(e);return zZ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function IX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function OX(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dk={placement:"bottom",modifiers:[],strategy:"absolute"};function Fk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function RX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Dk:o;return function(u,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dk,i),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(w){var b=typeof w=="function"?w(p.options):w;x(),p.options=Object.assign({},i,p.options,b),p.scrollParents={reference:zs(u)?Jc(u):u.contextElement?Jc(u.contextElement):[],popper:Jc(c)};var _=TX(OX([].concat(r,p.options.modifiers)));return p.orderedModifiers=_.filter(function(P){return P.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var w=p.elements,b=w.reference,_=w.popper;if(!!Fk(b,_)){p.rects={reference:PX(b,md(_),p.options.strategy==="fixed"),popper:DS(_)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(W){return p.modifiersData[W.name]=Object.assign({},W.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var I=p.orderedModifiers[P],N=I.fn,L=I.options,z=L===void 0?{}:L,K=I.name;typeof N=="function"&&(p=N({state:p,options:z,name:K,instance:v})||p)}}}},update:IX(function(){return new Promise(function(E){v.forceUpdate(),E(p)})}),destroy:function(){x(),m=!0}};if(!Fk(u,c))return v;v.setOptions(f).then(function(E){!m&&f.onFirstUpdate&&f.onFirstUpdate(E)});function y(){p.orderedModifiers.forEach(function(E){var w=E.name,b=E.options,_=b===void 0?{}:b,P=E.effect;if(typeof P=="function"){var I=P({state:p,name:w,instance:v,options:_}),N=function(){};h.push(I||N)}})}function x(){h.forEach(function(E){return E()}),h=[]}return v}}var MX=[nX,xX,eX,jZ,yX,pX,CX,ZZ,mX],NX=RX({defaultModifiers:MX}),wl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),on={arrowShadowColor:wl("--popper-arrow-shadow-color"),arrowSize:wl("--popper-arrow-size","8px"),arrowSizeHalf:wl("--popper-arrow-size-half"),arrowBg:wl("--popper-arrow-bg"),transformOrigin:wl("--popper-transform-origin"),arrowOffset:wl("--popper-arrow-offset")};function LX(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var DX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},FX=e=>DX[e],$k={scroll:!0,resize:!0};function $X(e){let t;return typeof e=="object"?t={enabled:!0,options:{...$k,...e}}:t={enabled:e,options:$k},t}var BX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},zX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Bk(e)},effect:({state:e})=>()=>{Bk(e)}},Bk=e=>{e.elements.popper.style.setProperty(on.transformOrigin.var,FX(e.placement))},VX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{WX(e)}},WX=e=>{var t;if(!e.placement)return;const n=jX(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:on.arrowSize.varRef,height:on.arrowSize.varRef,zIndex:-1});const r={[on.arrowSizeHalf.var]:`calc(${on.arrowSize.varRef} / 2)`,[on.arrowOffset.var]:`calc(${on.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},jX=e=>{if(e.startsWith("top"))return{property:"bottom",value:on.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:on.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:on.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:on.arrowOffset.varRef}},UX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{zk(e)},effect:({state:e})=>()=>{zk(e)}},zk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:on.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:LX(e.placement)})},HX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},GX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function qX(e,t="ltr"){var n;const r=((n=HX[e])==null?void 0:n[t])||e;return t==="ltr"?r:GX[e]??r}function NI(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:h=!0,matchWidth:m,direction:v="ltr"}=e,y=C.exports.useRef(null),x=C.exports.useRef(null),E=C.exports.useRef(null),w=qX(r,v),b=C.exports.useRef(()=>{}),_=C.exports.useCallback(()=>{var W;!t||!y.current||!x.current||((W=b.current)==null||W.call(b),E.current=NX(y.current,x.current,{placement:w,modifiers:[UX,VX,zX,{...BX,enabled:!!m},{name:"eventListeners",...$X(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:o}),E.current.forceUpdate(),b.current=E.current.destroy)},[w,t,n,m,s,i,u,c,f,h,p,o]);C.exports.useEffect(()=>()=>{var W;!y.current&&!x.current&&((W=E.current)==null||W.destroy(),E.current=null)},[]);const P=C.exports.useCallback(W=>{y.current=W,_()},[_]),I=C.exports.useCallback((W={},te=null)=>({...W,ref:sn(P,te)}),[P]),N=C.exports.useCallback(W=>{x.current=W,_()},[_]),L=C.exports.useCallback((W={},te=null)=>({...W,ref:sn(N,te),style:{...W.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,m]),z=C.exports.useCallback((W={},te=null)=>{const{size:be,shadowColor:_e,bg:ye,style:Ce,...ae}=W;return{...ae,ref:te,"data-popper-arrow":"",style:KX(W)}},[]),K=C.exports.useCallback((W={},te=null)=>({...W,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var W;(W=E.current)==null||W.update()},forceUpdate(){var W;(W=E.current)==null||W.forceUpdate()},transformOrigin:on.transformOrigin.varRef,referenceRef:P,popperRef:N,getPopperProps:L,getArrowProps:z,getArrowInnerProps:K,getReferenceProps:I}}function KX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function LI(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Vn(n),s=Vn(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${C.exports.useId()}`,m=C.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=C.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),y=C.exports.useCallback(()=>{f?m():v()},[f,v,m]);function x(w={}){return{...w,"aria-expanded":f,"aria-controls":h,onClick(b){var _;(_=w.onClick)==null||_.call(w,b),y()}}}function E(w={}){return{...w,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:y,isControlled:p,getButtonProps:x,getDisclosureProps:E}}function YX(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[ZX,XX]=Wt({strict:!1,name:"PortalManagerContext"});function DI(e){const{children:t,zIndex:n}=e;return S(ZX,{value:{zIndex:n},children:t})}DI.displayName="PortalManager";var[FI,QX]=Wt({strict:!1,name:"PortalContext"}),VS="chakra-portal",JX=".chakra-portal",eQ=e=>S("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),tQ=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=C.exports.useState(null),i=C.exports.useRef(null),[,s]=C.exports.useState({});C.exports.useEffect(()=>s({}),[]);const u=QX(),c=XX();$i(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;i.current=p.createElement("div"),i.current.className=VS,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?S(eQ,{zIndex:c?.zIndex,children:n}):n;return i.current?Qf.exports.createPortal(S(FI,{value:i.current,children:f}),i.current):S("span",{ref:p=>{p&&o(p)}})},nQ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=C.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=VS),c},[o]),[,u]=C.exports.useState({});return $i(()=>u({}),[]),$i(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Qf.exports.createPortal(S(FI,{value:r?s:null,children:t}),s):null};function Gs(e){const{containerRef:t,...n}=e;return t?S(nQ,{containerRef:t,...n}):S(tQ,{...n})}Gs.defaultProps={appendToParentPortal:!0};Gs.className=VS;Gs.selector=JX;Gs.displayName="Portal";var rQ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cl=new WeakMap,oh=new WeakMap,ih={},Y1=0,oQ=function(e,t,n,r){var o=Array.isArray(e)?e:[e];ih[n]||(ih[n]=new WeakMap);var i=ih[n],s=[],u=new Set,c=new Set(o),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else{var v=m.getAttribute(r),y=v!==null&&v!=="false",x=(Cl.get(m)||0)+1,E=(i.get(m)||0)+1;Cl.set(m,x),i.set(m,E),s.push(m),x===1&&y&&oh.set(m,!0),E===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}})};return p(t),u.clear(),Y1++,function(){s.forEach(function(h){var m=Cl.get(h)-1,v=i.get(h)-1;Cl.set(h,m),i.set(h,v),m||(oh.has(h)||h.removeAttribute(r),oh.delete(h)),v||h.removeAttribute(n)}),Y1--,Y1||(Cl=new WeakMap,Cl=new WeakMap,oh=new WeakMap,ih={})}},iQ=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||rQ(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),oQ(r,o,n,"aria-hidden")):function(){return null}};function aQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var bt={exports:{}},sQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lQ=sQ,uQ=lQ;function $I(){}function BI(){}BI.resetWarningCache=$I;var cQ=function(){function e(r,o,i,s,u,c){if(c!==uQ){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BI,resetWarningCache:$I};return n.PropTypes=n,n};bt.exports=cQ();var e2="data-focus-lock",zI="data-focus-lock-disabled",fQ="data-no-focus-lock",dQ="data-autofocus-inside",pQ="data-no-autofocus";function hQ(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mQ(e,t){var n=C.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function VI(e,t){return mQ(t||null,function(n){return e.forEach(function(r){return hQ(r,n)})})}var Z1={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function WI(e){return e}function jI(e,t){t===void 0&&(t=WI);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(i),s=n}var c=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function WS(e,t){return t===void 0&&(t=WI),jI(e,t)}function UI(e){e===void 0&&(e={});var t=jI(null);return t.options=qo({async:!0,ssr:!1},e),t}var HI=function(e){var t=e.sideCar,n=Km(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S(r,{...qo({},n)})};HI.isSideCarExport=!0;function gQ(e,t){return e.useMedium(t),HI}var GI=WS({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),qI=WS(),vQ=WS(),yQ=UI({async:!0}),bQ=[],jS=C.exports.forwardRef(function(t,n){var r,o=C.exports.useState(),i=o[0],s=o[1],u=C.exports.useRef(),c=C.exports.useRef(!1),f=C.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var E=t.group,w=t.className,b=t.whiteList,_=t.hasPositiveIndices,P=t.shards,I=P===void 0?bQ:P,N=t.as,L=N===void 0?"div":N,z=t.lockProps,K=z===void 0?{}:z,W=t.sideCar,te=t.returnFocus,be=t.focusOptions,_e=t.onActivation,ye=t.onDeactivation,Ce=C.exports.useState({}),ae=Ce[0],ke=C.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&_e&&_e(u.current),c.current=!0},[_e]),j=C.exports.useCallback(function(){c.current=!1,ye&&ye(u.current)},[ye]);C.exports.useEffect(function(){h||(f.current=null)},[]);var Y=C.exports.useCallback(function(Pe){var fe=f.current;if(fe&&fe.focus){var Se=typeof te=="function"?te(fe):te;if(Se){var Le=typeof Se=="object"?Se:void 0;f.current=null,Pe?Promise.resolve().then(function(){return fe.focus(Le)}):fe.focus(Le)}}},[te]),q=C.exports.useCallback(function(Pe){c.current&&GI.useMedium(Pe)},[]),R=qI.useMedium,U=C.exports.useCallback(function(Pe){u.current!==Pe&&(u.current=Pe,s(Pe))},[]),se=kf((r={},r[zI]=h&&"disabled",r[e2]=E,r),K),ue=m!==!0,he=ue&&m!=="tail",me=VI([n,U]);return ee(Rn,{children:[ue&&[S("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Z1},"guard-first"),_?S("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:Z1},"guard-nearest"):null],!h&&S(W,{id:ae,sideCar:yQ,observed:i,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:x,whiteList:b,shards:I,onActivation:ke,onDeactivation:j,returnFocus:Y,focusOptions:be}),S(L,{ref:me,...se,className:w,onBlur:R,onFocus:q,children:p}),he&&S("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Z1})]})});jS.propTypes={};jS.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const KI=jS;function t2(e,t){return t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},t2(e,t)}function xQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,t2(e,t)}function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SQ(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],s;function u(){s=e(i.map(function(f){return f.props})),t(s)}var c=function(f){xQ(p,f);function p(){return f.apply(this,arguments)||this}p.peek=function(){return s};var h=p.prototype;return h.componentDidMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},h.render=function(){return S(o,{...this.props})},p}(C.exports.PureComponent);return YI(c,"displayName","SideEffect("+n(o)+")"),c}}var ui=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},n2=function(e){return Array.isArray(e)?e:[e]},wQ=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},ZI=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},XI=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},CQ=function(e,t){return!e||XI(e)||!wQ(e)&&t(ZI(e))},QI=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=CQ(t,QI.bind(void 0,e));return e.set(t,r),r},_Q=function(e,t){return e&&!XI(e)?PQ(e)?t(ZI(e)):!1:!0},JI=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=_Q(t,JI.bind(void 0,e));return e.set(t,r),r},eO=function(e){return e.dataset},kQ=function(e){return e.tagName==="BUTTON"},tO=function(e){return e.tagName==="INPUT"},nO=function(e){return tO(e)&&e.type==="radio"},EQ=function(e){return!((tO(e)||kQ(e))&&(e.type==="hidden"||e.disabled))},PQ=function(e){var t=e.getAttribute(pQ);return![!0,"true",""].includes(t)},US=function(e){var t;return Boolean(e&&((t=eO(e))===null||t===void 0?void 0:t.focusGuard))},V0=function(e){return!US(e)},AQ=function(e){return Boolean(e)},TQ=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},rO=function(e,t,n){return ui(e).map(function(r,o){return{node:r,index:o,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(TQ)},IQ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],HS=IQ.join(","),OQ="".concat(HS,", [data-focus-guard]"),oO=function(e,t){var n;return ui(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?OQ:HS)?[o]:[],oO(o))},[])},GS=function(e,t){return e.reduce(function(n,r){return n.concat(oO(r,t),r.parentNode?ui(r.parentNode.querySelectorAll(HS)).filter(function(o){return o===r}):[])},[])},RQ=function(e){var t=e.querySelectorAll("[".concat(dQ,"]"));return ui(t).map(function(n){return GS([n])}).reduce(function(n,r){return n.concat(r)},[])},qS=function(e,t){return ui(e).filter(function(n){return QI(t,n)}).filter(function(n){return EQ(n)})},Vk=function(e,t){return t===void 0&&(t=new Map),ui(e).filter(function(n){return JI(t,n)})},r2=function(e,t,n){return rO(qS(GS(e,n),t),!0,n)},Wk=function(e,t){return rO(qS(GS(e),t),!1)},MQ=function(e,t){return qS(RQ(e),t)},Vf=function(e,t){return(e.shadowRoot?Vf(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||ui(e.children).some(function(n){return Vf(n,t)})},NQ=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},iO=function(e){return e.parentNode?iO(e.parentNode):e},KS=function(e){var t=n2(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(e2);return n.push.apply(n,o?NQ(ui(iO(r).querySelectorAll("[".concat(e2,'="').concat(o,'"]:not([').concat(zI,'="disabled"])')))):[r]),n},[])},aO=function(e){return e.activeElement?e.activeElement.shadowRoot?aO(e.activeElement.shadowRoot):e.activeElement:void 0},YS=function(){return document.activeElement?document.activeElement.shadowRoot?aO(document.activeElement.shadowRoot):document.activeElement:void 0},LQ=function(e){return e===document.activeElement},DQ=function(e){return Boolean(ui(e.querySelectorAll("iframe")).some(function(t){return LQ(t)}))},sO=function(e){var t=document&&YS();return!t||t.dataset&&t.dataset.focusGuard?!1:KS(e).some(function(n){return Vf(n,t)||DQ(n)})},FQ=function(){var e=document&&YS();return e?ui(document.querySelectorAll("[".concat(fQ,"]"))).some(function(t){return Vf(t,e)}):!1},$Q=function(e,t){return t.filter(nO).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},ZS=function(e,t){return nO(e)&&e.name?$Q(e,t):e},BQ=function(e){var t=new Set;return e.forEach(function(n){return t.add(ZS(n,e))}),e.filter(function(n){return t.has(n)})},jk=function(e){return e[0]&&e.length>1?ZS(e[0],e):e[0]},Uk=function(e,t){return e.length>1?e.indexOf(ZS(e[t],e)):t},lO="NEW_FOCUS",zQ=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=US(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,h=c-f,m=t.indexOf(i),v=t.indexOf(s),y=BQ(t),x=n!==void 0?y.indexOf(n):-1,E=x-(r?y.indexOf(r):c),w=Uk(e,0),b=Uk(e,o-1);if(c===-1||p===-1)return lO;if(!h&&p>=0)return p;if(c<=m&&u&&Math.abs(h)>1)return b;if(c>=v&&u&&Math.abs(h)>1)return w;if(h&&Math.abs(E)>1)return p;if(c<=m)return b;if(c>v)return w;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},o2=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&o2(e.parentNode.host||e.parentNode,t),t},X1=function(e,t){for(var n=o2(e),r=o2(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},uO=function(e,t,n){var r=n2(e),o=n2(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=X1(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=X1(i,c);f&&(!s||Vf(f,s)?s=f:s=X1(f,s))})}),s},VQ=function(e,t){return e.reduce(function(n,r){return n.concat(MQ(r,t))},[])},WQ=function(e){return function(t){var n;return t.autofocus||!!(!((n=eO(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},jQ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(AQ)},UQ=function(e,t){var n=document&&YS(),r=KS(e).filter(V0),o=uO(n||e,e,r),i=new Map,s=Wk(r,i),u=r2(r,i).filter(function(v){var y=v.node;return V0(y)});if(!(!u[0]&&(u=s,!u[0]))){var c=Wk([o],i).map(function(v){var y=v.node;return y}),f=jQ(c,u),p=f.map(function(v){var y=v.node;return y}),h=zQ(p,c,n,t);if(h===lO){var m=Vk(s.map(function(v){var y=v.node;return y})).filter(WQ(VQ(r,i)));return{node:m&&m.length?jk(m):jk(Vk(p))}}return h===void 0?h:f[h]}},HQ=function(e){var t=KS(e).filter(V0),n=uO(e,e,t),r=new Map,o=r2([n],r,!0),i=r2(t,r).filter(function(s){var u=s.node;return V0(u)}).map(function(s){var u=s.node;return u});return o.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:US(u)}})},GQ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Q1=0,J1=!1,qQ=function(e,t,n){n===void 0&&(n={});var r=UQ(e,t);if(!J1&&r){if(Q1>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),J1=!0,setTimeout(function(){J1=!1},1);return}Q1++,GQ(r.node,n.focusOptions),Q1--}};const cO=qQ;function fO(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var KQ=function(){return document&&document.activeElement===document.body},YQ=function(){return KQ()||FQ()},ru=null,Gl=null,ou=null,Wf=!1,ZQ=function(){return!0},XQ=function(t){return(ru.whiteList||ZQ)(t)},QQ=function(t,n){ou={observerNode:t,portaledElement:n}},JQ=function(t){return ou&&ou.portaledElement===t};function Hk(e,t,n,r){var o=null,i=e;do{var s=r[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var eJ=function(t){return t&&"current"in t?t.current:t},tJ=function(t){return t?Boolean(Wf):Wf==="meanwhile"},nJ=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},rJ=function(t,n){return n.some(function(r){return nJ(t,r,r)})},W0=function(){var t=!1;if(ru){var n=ru,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||ou&&ou.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(eJ).filter(Boolean));if((!p||XQ(p))&&(o||tJ(u)||!YQ()||!Gl&&i)&&(f&&!(sO(h)||p&&rJ(p,h)||JQ(p))&&(document&&!Gl&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=cO(h,Gl,{focusOptions:c}),ou={})),Wf=!1,Gl=document&&document.activeElement),document){var m=document&&document.activeElement,v=HQ(h),y=v.map(function(x){var E=x.node;return E}).indexOf(m);y>-1&&(v.filter(function(x){var E=x.guard,w=x.node;return E&&w.dataset.focusAutoGuard}).forEach(function(x){var E=x.node;return E.removeAttribute("tabIndex")}),Hk(y,v.length,1,v),Hk(y,-1,-1,v))}}}return t},dO=function(t){W0()&&t&&(t.stopPropagation(),t.preventDefault())},XS=function(){return fO(W0)},oJ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||QQ(r,n)},iJ=function(){return null},pO=function(){Wf="just",setTimeout(function(){Wf="meanwhile"},0)},aJ=function(){document.addEventListener("focusin",dO),document.addEventListener("focusout",XS),window.addEventListener("blur",pO)},sJ=function(){document.removeEventListener("focusin",dO),document.removeEventListener("focusout",XS),window.removeEventListener("blur",pO)};function lJ(e){return e.filter(function(t){var n=t.disabled;return!n})}function uJ(e){var t=e.slice(-1)[0];t&&!ru&&aJ();var n=ru,r=n&&t&&t.id===n.id;ru=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Gl=null,(!r||n.observed!==t.observed)&&t.onActivation(),W0(),fO(W0)):(sJ(),Gl=null)}GI.assignSyncMedium(oJ);qI.assignMedium(XS);vQ.assignMedium(function(e){return e({moveFocusInside:cO,focusInside:sO})});const cJ=SQ(lJ,uJ)(iJ);var hO=C.exports.forwardRef(function(t,n){return S(KI,{sideCar:cJ,ref:n,...t})}),mO=KI.propTypes||{};mO.sideCar;aQ(mO,["sideCar"]);hO.propTypes={};const fJ=hO;var gO=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=C.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&AZ(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=C.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return S(fJ,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};gO.displayName="FocusLock";var $h="right-scroll-bar-position",Bh="width-before-scroll-bar",dJ="with-scroll-bars-hidden",pJ="--removed-body-scroll-bar-size",vO=UI(),ey=function(){},ug=C.exports.forwardRef(function(e,t){var n=C.exports.useRef(null),r=C.exports.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),o=r[0],i=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,E=e.as,w=E===void 0?"div":E,b=Km(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=m,P=VI([n,t]),I=qo(qo({},b),o);return ee(Rn,{children:[p&&S(_,{sideCar:vO,removeScrollBar:f,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n}),s?C.exports.cloneElement(C.exports.Children.only(u),qo(qo({},I),{ref:P})):S(w,{...qo({},I,{className:c,ref:P}),children:u})]})});ug.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ug.classNames={fullWidth:Bh,zeroRight:$h};var hJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hJ();return t&&e.setAttribute("nonce",t),e}function gJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yJ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mJ())&&(gJ(t,n),vJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bJ=function(){var e=yJ();return function(t,n){C.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yO=function(){var e=bJ(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xJ={left:0,top:0,right:0,gap:0},ty=function(e){return parseInt(e||"",10)||0},SJ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ty(n),ty(r),ty(o)]},wJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xJ;var t=SJ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},CJ=yO(),_J=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
.`.concat(dJ,` {
|
|
overflow: hidden `).concat(r,`;
|
|
padding-right: `).concat(u,"px ").concat(r,`;
|
|
}
|
|
body {
|
|
overflow: hidden `).concat(r,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
padding-left: `.concat(o,`px;
|
|
padding-top: `).concat(i,`px;
|
|
padding-right: `).concat(s,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(u,"px ").concat(r,`;
|
|
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat($h,` {
|
|
right: `).concat(u,"px ").concat(r,`;
|
|
}
|
|
|
|
.`).concat(Bh,` {
|
|
margin-right: `).concat(u,"px ").concat(r,`;
|
|
}
|
|
|
|
.`).concat($h," .").concat($h,` {
|
|
right: 0 `).concat(r,`;
|
|
}
|
|
|
|
.`).concat(Bh," .").concat(Bh,` {
|
|
margin-right: 0 `).concat(r,`;
|
|
}
|
|
|
|
body {
|
|
`).concat(pJ,": ").concat(u,`px;
|
|
}
|
|
`)},kJ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=C.exports.useMemo(function(){return wJ(o)},[o]);return S(CJ,{styles:_J(i,!t,o,n?"":"!important")})},i2=!1;if(typeof window<"u")try{var ah=Object.defineProperty({},"passive",{get:function(){return i2=!0,!0}});window.addEventListener("test",ah,ah),window.removeEventListener("test",ah,ah)}catch{i2=!1}var _l=i2?{passive:!1}:!1,EJ=function(e){return e.tagName==="TEXTAREA"},bO=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!EJ(e)&&n[t]==="visible")},PJ=function(e){return bO(e,"overflowY")},AJ=function(e){return bO(e,"overflowX")},Gk=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=xO(e,n);if(r){var o=SO(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},TJ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},IJ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xO=function(e,t){return e==="v"?PJ(t):AJ(t)},SO=function(e,t){return e==="v"?TJ(t):IJ(t)},OJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},RJ=function(e,t,n,r,o){var i=OJ(e,window.getComputedStyle(t).direction),s=i*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var v=SO(e,u),y=v[0],x=v[1],E=v[2],w=x-E-i*y;(y||w)&&xO(e,u)&&(h+=w,m+=y),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&m===0||!o&&-s>m))&&(f=!0),f},sh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qk=function(e){return[e.deltaX,e.deltaY]},Kk=function(e){return e&&"current"in e?e.current:e},MJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},NJ=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},LJ=0,kl=[];function DJ(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),o=C.exports.useState(LJ++)[0],i=C.exports.useState(function(){return yO()})[0],s=C.exports.useRef(e);C.exports.useEffect(function(){s.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=Pb([e.lockRef.current],(e.shards||[]).map(Kk),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=C.exports.useCallback(function(x,E){if("touches"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var w=sh(x),b=n.current,_="deltaX"in x?x.deltaX:b[0]-w[0],P="deltaY"in x?x.deltaY:b[1]-w[1],I,N=x.target,L=Math.abs(_)>Math.abs(P)?"h":"v";if("touches"in x&&L==="h"&&N.type==="range")return!1;var z=Gk(L,N);if(!z)return!0;if(z?I=L:(I=L==="v"?"h":"v",z=Gk(L,N)),!z)return!1;if(!r.current&&"changedTouches"in x&&(_||P)&&(r.current=I),!I)return!0;var K=r.current||I;return RJ(K,E,x,K==="h"?_:P,!0)},[]),c=C.exports.useCallback(function(x){var E=x;if(!(!kl.length||kl[kl.length-1]!==i)){var w="deltaY"in E?qk(E):sh(E),b=t.current.filter(function(I){return I.name===E.type&&I.target===E.target&&MJ(I.delta,w)})[0];if(b&&b.should){E.cancelable&&E.preventDefault();return}if(!b){var _=(s.current.shards||[]).map(Kk).filter(Boolean).filter(function(I){return I.contains(E.target)}),P=_.length>0?u(E,_[0]):!s.current.noIsolation;P&&E.cancelable&&E.preventDefault()}}},[]),f=C.exports.useCallback(function(x,E,w,b){var _={name:x,delta:E,target:w,should:b};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(P){return P!==_})},1)},[]),p=C.exports.useCallback(function(x){n.current=sh(x),r.current=void 0},[]),h=C.exports.useCallback(function(x){f(x.type,qk(x),x.target,u(x,e.lockRef.current))},[]),m=C.exports.useCallback(function(x){f(x.type,sh(x),x.target,u(x,e.lockRef.current))},[]);C.exports.useEffect(function(){return kl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,_l),document.addEventListener("touchmove",c,_l),document.addEventListener("touchstart",p,_l),function(){kl=kl.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,_l),document.removeEventListener("touchmove",c,_l),document.removeEventListener("touchstart",p,_l)}},[]);var v=e.removeScrollBar,y=e.inert;return ee(Rn,{children:[y?S(i,{styles:NJ(o)}):null,v?S(kJ,{gapMode:"margin"}):null]})}const FJ=gQ(vO,DJ);var wO=C.exports.forwardRef(function(e,t){return S(ug,{...qo({},e,{ref:t,sideCar:FJ})})});wO.classNames=ug.classNames;const $J=wO;var qs=(...e)=>e.filter(Boolean).join(" ");function Ic(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var BJ=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}},a2=new BJ;function zJ(e,t){C.exports.useEffect(()=>(t&&a2.add(e),()=>{a2.remove(e)}),[t,e])}function VJ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=C.exports.useRef(null),p=C.exports.useRef(null),[h,m,v]=jJ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");WJ(f,t&&s),zJ(f,t);const y=C.exports.useRef(null),x=C.exports.useCallback(z=>{y.current=z.target},[]),E=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[w,b]=C.exports.useState(!1),[_,P]=C.exports.useState(!1),I=C.exports.useCallback((z={},K=null)=>({role:"dialog",...z,ref:sn(K,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":w?m:void 0,"aria-describedby":_?v:void 0,onClick:Ic(z.onClick,W=>W.stopPropagation())}),[v,_,h,m,w]),N=C.exports.useCallback(z=>{z.stopPropagation(),y.current===z.target&&(!a2.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),L=C.exports.useCallback((z={},K=null)=>({...z,ref:sn(K,p),onClick:Ic(z.onClick,N),onKeyDown:Ic(z.onKeyDown,E),onMouseDown:Ic(z.onMouseDown,x)}),[E,x,N]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:P,setHeaderMounted:b,dialogRef:f,overlayRef:p,getDialogProps:I,getDialogContainerProps:L}}function WJ(e,t){const n=e.current;C.exports.useEffect(()=>{if(!(!e.current||!t))return iQ(e.current)},[t,e,n])}function jJ(e,...t){const n=C.exports.useId(),r=e||n;return C.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[UJ,Ks]=Wt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[HJ,Ga]=Wt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),jf=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m,onCloseComplete:v}=e,y=xr("Modal",e),E={...VJ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return S(HJ,{value:E,children:S(UJ,{value:y,children:S(Xi,{onExitComplete:v,children:E.isOpen&&S(Gs,{...t,children:n})})})})};jf.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};jf.displayName="Modal";var j0=ce((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Ga();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=qs("chakra-modal__body",n),u=Ks();return J.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});j0.displayName="ModalBody";var CO=ce((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Ga(),s=qs("chakra-modal__close-btn",r),u=Ks();return S(ag,{ref:t,__css:u.closeButton,className:s,onClick:Ic(n,c=>{c.stopPropagation(),i()}),...o})});CO.displayName="ModalCloseButton";function _O(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=Ga(),[h,m]=cS();return C.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),S(gO,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:S($J,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var GJ={slideInBottom:{...Ub,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ub,custom:{offsetX:16,reverse:!0}},scale:{...HT,custom:{initialScale:.95,reverse:!0}},none:{}},qJ=ie(so.section),kO=C.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=GJ[n];return S(qJ,{ref:t,...o,...r})});kO.displayName="ModalTransition";var U0=ce((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=Ga(),c=s(i,t),f=u(o),p=qs("chakra-modal__content",n),h=Ks(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:y}=Ga();return J.createElement(_O,null,J.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},S(kO,{preset:y,className:p,...c,__css:m,children:r})))});U0.displayName="ModalContent";var QS=ce((e,t)=>{const{className:n,...r}=e,o=qs("chakra-modal__footer",n),i=Ks(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return J.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});QS.displayName="ModalFooter";var JS=ce((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Ga();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=qs("chakra-modal__header",n),u=Ks(),c={flex:0,...u.header};return J.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});JS.displayName="ModalHeader";var KJ=ie(so.div),H0=ce((e,t)=>{const{className:n,transition:r,...o}=e,i=qs("chakra-modal__overlay",n),s=Ks(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=Ga();return S(KJ,{...c==="none"?{}:UT,__css:u,ref:t,className:i,...o})});H0.displayName="ModalOverlay";function YJ(e){const{leastDestructiveRef:t,...n}=e;return S(jf,{...n,initialFocusRef:t})}var ZJ=ce((e,t)=>S(U0,{ref:t,role:"alertdialog",...e})),[Cpe,XJ]=Wt(),QJ=ie(GT),JJ=ce((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=Ga(),c=i(o,t),f=s(),p=qs("chakra-modal__content",n),h=Ks(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:y}=XJ();return J.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},S(_O,{children:S(QJ,{direction:y,in:u,className:p,...c,__css:m,children:r})}))});JJ.displayName="DrawerContent";function eee(e,t){const n=Vn(e);C.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var EO=(...e)=>e.filter(Boolean).join(" "),ny=e=>e?!0:void 0;function Bo(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var tee=e=>S(ao,{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),nee=e=>S(ao,{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Yk(e,t,n,r){C.exports.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,i=Array.isArray(t)?t:[t],s=new o.MutationObserver(u=>{for(const c of u)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&n(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}var ree=50,Zk=300;function oee(e,t){const[n,r]=C.exports.useState(!1),[o,i]=C.exports.useState(null),[s,u]=C.exports.useState(!0),c=C.exports.useRef(null),f=()=>clearTimeout(c.current);eee(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?ree:null);const p=C.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},Zk)},[e,s]),h=C.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},Zk)},[t,s]),m=C.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return C.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var iee=/^[Ee0-9+\-.]$/;function aee(e){return iee.test(e)}function see(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function lee(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:y,onChange:x,precision:E,name:w,"aria-describedby":b,"aria-label":_,"aria-labelledby":P,onFocus:I,onBlur:N,onInvalid:L,getAriaValueText:z,isValidCharacter:K,format:W,parse:te,...be}=e,_e=Vn(I),ye=Vn(N),Ce=Vn(L),ae=Vn(K??aee),ke=Vn(z),j=TY(e),{update:Y,increment:q,decrement:R}=j,[U,se]=C.exports.useState(!1),ue=!(u||c),he=C.exports.useRef(null),me=C.exports.useRef(null),Pe=C.exports.useRef(null),fe=C.exports.useRef(null),Se=C.exports.useCallback(re=>re.split("").filter(ae).join(""),[ae]),Le=C.exports.useCallback(re=>te?.(re)??re,[te]),at=C.exports.useCallback(re=>(W?.(re)??re).toString(),[W]);B0(()=>{(j.valueAsNumber>i||j.valueAsNumber<o)&&Ce?.("rangeOverflow",at(j.value),j.valueAsNumber)},[j.valueAsNumber,j.value,at,Ce]),$i(()=>{if(!he.current)return;if(he.current.value!=j.value){const He=Le(he.current.value);j.setValue(Se(He))}},[Le,Se]);const At=C.exports.useCallback((re=s)=>{ue&&q(re)},[q,ue,s]),hn=C.exports.useCallback((re=s)=>{ue&&R(re)},[R,ue,s]),ge=oee(At,hn);Yk(Pe,"disabled",ge.stop,ge.isSpinning),Yk(fe,"disabled",ge.stop,ge.isSpinning);const Ie=C.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;const kt=Le(re.currentTarget.value);Y(Se(kt)),me.current={start:re.currentTarget.selectionStart,end:re.currentTarget.selectionEnd}},[Y,Se,Le]),et=C.exports.useCallback(re=>{var He;_e?.(re),me.current&&(re.target.selectionStart=me.current.start??((He=re.currentTarget.value)==null?void 0:He.length),re.currentTarget.selectionEnd=me.current.end??re.currentTarget.selectionStart)},[_e]),De=C.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;see(re,ae)||re.preventDefault();const He=Dt(re)*s,kt=re.key,Mn={ArrowUp:()=>At(He),ArrowDown:()=>hn(He),Home:()=>Y(o),End:()=>Y(i)}[kt];Mn&&(re.preventDefault(),Mn(re))},[ae,s,At,hn,Y,o,i]),Dt=re=>{let He=1;return(re.metaKey||re.ctrlKey)&&(He=.1),re.shiftKey&&(He=10),He},mn=C.exports.useMemo(()=>{const re=ke?.(j.value);if(re!=null)return re;const He=j.value.toString();return He||void 0},[j.value,ke]),st=C.exports.useCallback(()=>{let re=j.value;re!==""&&(j.valueAsNumber<o&&(re=o),j.valueAsNumber>i&&(re=i),j.cast(re))},[j,i,o]),wt=C.exports.useCallback(()=>{se(!1),n&&st()},[n,se,st]),Xt=C.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var re;(re=he.current)==null||re.focus()})},[t]),Ut=C.exports.useCallback(re=>{re.preventDefault(),ge.up(),Xt()},[Xt,ge]),de=C.exports.useCallback(re=>{re.preventDefault(),ge.down(),Xt()},[Xt,ge]);Kb(()=>he.current,"wheel",re=>{var He;const wn=(((He=he.current)==null?void 0:He.ownerDocument)??document).activeElement===he.current;if(!v||!wn)return;re.preventDefault();const Mn=Dt(re)*s,wr=Math.sign(re.deltaY);wr===-1?At(Mn):wr===1&&hn(Mn)},{passive:!1});const Ee=C.exports.useCallback((re={},He=null)=>{const kt=c||r&&j.isAtMax;return{...re,ref:sn(He,Pe),role:"button",tabIndex:-1,onPointerDown:Bo(re.onPointerDown,wn=>{kt||Ut(wn)}),onPointerLeave:Bo(re.onPointerLeave,ge.stop),onPointerUp:Bo(re.onPointerUp,ge.stop),disabled:kt,"aria-disabled":ny(kt)}},[j.isAtMax,r,Ut,ge.stop,c]),ft=C.exports.useCallback((re={},He=null)=>{const kt=c||r&&j.isAtMin;return{...re,ref:sn(He,fe),role:"button",tabIndex:-1,onPointerDown:Bo(re.onPointerDown,wn=>{kt||de(wn)}),onPointerLeave:Bo(re.onPointerLeave,ge.stop),onPointerUp:Bo(re.onPointerUp,ge.stop),disabled:kt,"aria-disabled":ny(kt)}},[j.isAtMin,r,de,ge.stop,c]),lt=C.exports.useCallback((re={},He=null)=>({name:w,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":_,"aria-describedby":b,id:y,disabled:c,...re,readOnly:re.readOnly??u,"aria-readonly":re.readOnly??u,"aria-required":re.required??f,required:re.required??f,ref:sn(he,He),value:at(j.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(j.valueAsNumber)?void 0:j.valueAsNumber,"aria-invalid":ny(p??j.isOutOfRange),"aria-valuetext":mn,autoComplete:"off",autoCorrect:"off",onChange:Bo(re.onChange,Ie),onKeyDown:Bo(re.onKeyDown,De),onFocus:Bo(re.onFocus,et,()=>se(!0)),onBlur:Bo(re.onBlur,ye,wt)}),[w,m,h,P,_,at,b,y,c,f,u,p,j.value,j.valueAsNumber,j.isOutOfRange,o,i,mn,Ie,De,et,ye,wt]);return{value:at(j.value),valueAsNumber:j.valueAsNumber,isFocused:U,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Ee,getDecrementButtonProps:ft,getInputProps:lt,htmlProps:be}}var[uee,cg]=Wt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[cee,ew]=Wt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),PO=ce(function(t,n){const r=xr("NumberInput",t),o=St(t),i=CS(o),{htmlProps:s,...u}=lee(i),c=C.exports.useMemo(()=>u,[u]);return J.createElement(cee,{value:c},J.createElement(uee,{value:r},J.createElement(ie.div,{...s,ref:n,className:EO("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});PO.displayName="NumberInput";var AO=ce(function(t,n){const r=cg();return J.createElement(ie.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});AO.displayName="NumberInputStepper";var TO=ce(function(t,n){const{getInputProps:r}=ew(),o=r(t,n),i=cg();return J.createElement(ie.input,{...o,className:EO("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});TO.displayName="NumberInputField";var IO=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),OO=ce(function(t,n){const r=cg(),{getDecrementButtonProps:o}=ew(),i=o(t,n);return S(IO,{...i,__css:r.stepper,children:t.children??S(tee,{})})});OO.displayName="NumberDecrementStepper";var RO=ce(function(t,n){const{getIncrementButtonProps:r}=ew(),o=r(t,n),i=cg();return S(IO,{...o,__css:i.stepper,children:t.children??S(nee,{})})});RO.displayName="NumberIncrementStepper";var gd=(...e)=>e.filter(Boolean).join(" ");function fee(e,...t){return dee(e)?e(...t):e}var dee=e=>typeof e=="function";function zo(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function pee(...e){return function(n){e.forEach(r=>{r?.(n)})}}var[hee,Ys]=Wt({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[mee,vd]=Wt({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),El={click:"click",hover:"hover"};function gee(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:o,returnFocusOnClose:i=!0,autoFocus:s=!0,arrowSize:u,arrowShadowColor:c,trigger:f=El.click,openDelay:p=200,closeDelay:h=200,isLazy:m,lazyBehavior:v="unmount",computePositionOnMount:y,...x}=e,{isOpen:E,onClose:w,onOpen:b,onToggle:_}=LI(e),P=C.exports.useRef(null),I=C.exports.useRef(null),N=C.exports.useRef(null),L=C.exports.useRef(!1),z=C.exports.useRef(!1);E&&(z.current=!0);const[K,W]=C.exports.useState(!1),[te,be]=C.exports.useState(!1),_e=C.exports.useId(),ye=o??_e,[Ce,ae,ke,j]=["popover-trigger","popover-content","popover-header","popover-body"].map(Ie=>`${Ie}-${ye}`),{referenceRef:Y,getArrowProps:q,getPopperProps:R,getArrowInnerProps:U,forceUpdate:se}=NI({...x,enabled:E||!!y}),ue=MY({isOpen:E,ref:N});BY({enabled:E,ref:I}),FY(N,{focusRef:I,visible:E,shouldFocus:i&&f===El.click}),VY(N,{focusRef:r,visible:E,shouldFocus:s&&f===El.click});const he=YX({wasSelected:z.current,enabled:m,mode:v,isSelected:ue.present}),me=C.exports.useCallback((Ie={},et=null)=>{const De={...Ie,style:{...Ie.style,transformOrigin:on.transformOrigin.varRef,[on.arrowSize.var]:u?`${u}px`:void 0,[on.arrowShadowColor.var]:c},ref:sn(N,et),children:he?Ie.children:null,id:ae,tabIndex:-1,role:"dialog",onKeyDown:zo(Ie.onKeyDown,Dt=>{n&&Dt.key==="Escape"&&w()}),onBlur:zo(Ie.onBlur,Dt=>{const mn=Xk(Dt),st=ry(N.current,mn),wt=ry(I.current,mn);E&&t&&(!st&&!wt)&&w()}),"aria-labelledby":K?ke:void 0,"aria-describedby":te?j:void 0};return f===El.hover&&(De.role="tooltip",De.onMouseEnter=zo(Ie.onMouseEnter,()=>{L.current=!0}),De.onMouseLeave=zo(Ie.onMouseLeave,Dt=>{Dt.nativeEvent.relatedTarget!==null&&(L.current=!1,setTimeout(w,h))})),De},[he,ae,K,ke,te,j,f,n,w,E,t,h,c,u]),Pe=C.exports.useCallback((Ie={},et=null)=>R({...Ie,style:{visibility:E?"visible":"hidden",...Ie.style}},et),[E,R]),fe=C.exports.useCallback((Ie,et=null)=>({...Ie,ref:sn(et,P,Y)}),[P,Y]),Se=C.exports.useRef(),Le=C.exports.useRef(),at=C.exports.useCallback(Ie=>{P.current==null&&Y(Ie)},[Y]),At=C.exports.useCallback((Ie={},et=null)=>{const De={...Ie,ref:sn(I,et,at),id:Ce,"aria-haspopup":"dialog","aria-expanded":E,"aria-controls":ae};return f===El.click&&(De.onClick=zo(Ie.onClick,_)),f===El.hover&&(De.onFocus=zo(Ie.onFocus,()=>{Se.current===void 0&&b()}),De.onBlur=zo(Ie.onBlur,Dt=>{const mn=Xk(Dt),st=!ry(N.current,mn);E&&t&&st&&w()}),De.onKeyDown=zo(Ie.onKeyDown,Dt=>{Dt.key==="Escape"&&w()}),De.onMouseEnter=zo(Ie.onMouseEnter,()=>{L.current=!0,Se.current=window.setTimeout(b,p)}),De.onMouseLeave=zo(Ie.onMouseLeave,()=>{L.current=!1,Se.current&&(clearTimeout(Se.current),Se.current=void 0),Le.current=window.setTimeout(()=>{L.current===!1&&w()},h)})),De},[Ce,E,ae,f,at,_,b,t,w,p,h]);C.exports.useEffect(()=>()=>{Se.current&&clearTimeout(Se.current),Le.current&&clearTimeout(Le.current)},[]);const hn=C.exports.useCallback((Ie={},et=null)=>({...Ie,id:ke,ref:sn(et,De=>{W(!!De)})}),[ke]),ge=C.exports.useCallback((Ie={},et=null)=>({...Ie,id:j,ref:sn(et,De=>{be(!!De)})}),[j]);return{forceUpdate:se,isOpen:E,onAnimationComplete:ue.onComplete,onClose:w,getAnchorProps:fe,getArrowProps:q,getArrowInnerProps:U,getPopoverPositionerProps:Pe,getPopoverProps:me,getTriggerProps:At,getHeaderProps:hn,getBodyProps:ge}}function ry(e,t){return e===t||e?.contains(t)}function Xk(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function MO(e){const t=xr("Popover",e),{children:n,...r}=St(e),o=Wm(),i=gee({...r,direction:o.direction});return S(hee,{value:i,children:S(mee,{value:t,children:fee(n,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}MO.displayName="Popover";function NO(e){const{bg:t,bgColor:n,backgroundColor:r}=e,{getArrowProps:o,getArrowInnerProps:i}=Ys(),s=vd(),u=t??n??r;return J.createElement(ie.div,{...o(),className:"chakra-popover__arrow-positioner"},J.createElement(ie.div,{className:gd("chakra-popover__arrow",e.className),...i(e),__css:{...s.arrow,"--popper-arrow-bg":u?`colors.${u}, ${u}`:void 0}}))}NO.displayName="PopoverArrow";var vee=ce(function(t,n){const{getBodyProps:r}=Ys(),o=vd();return J.createElement(ie.div,{...r(t,n),className:gd("chakra-popover__body",t.className),__css:o.body})});vee.displayName="PopoverBody";var yee=ce(function(t,n){const{onClose:r}=Ys(),o=vd();return S(ag,{size:"sm",onClick:r,className:gd("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t})});yee.displayName="PopoverCloseButton";function bee(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var xee={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},See=so(ie.section),tw=ce(function(t,n){const{isOpen:r}=Ys();return J.createElement(See,{ref:n,variants:bee(t.variants),...t,initial:!1,animate:r?"enter":"exit"})});tw.defaultProps={variants:xee};tw.displayName="PopoverTransition";var LO=ce(function(t,n){const{rootProps:r,...o}=t,{getPopoverProps:i,getPopoverPositionerProps:s,onAnimationComplete:u}=Ys(),c=vd(),f={position:"relative",display:"flex",flexDirection:"column",...c.content};return J.createElement(ie.div,{...s(r),__css:c.popper,className:"chakra-popover__popper"},S(tw,{...i(o,n),onAnimationComplete:pee(u,o.onAnimationComplete),className:gd("chakra-popover__content",t.className),__css:f}))});LO.displayName="PopoverContent";var wee=ce(function(t,n){const{getHeaderProps:r}=Ys(),o=vd();return J.createElement(ie.header,{...r(t,n),className:gd("chakra-popover__header",t.className),__css:o.header})});wee.displayName="PopoverHeader";function DO(e){const t=C.exports.Children.only(e.children),{getTriggerProps:n}=Ys();return C.exports.cloneElement(t,n(t.props,t.ref))}DO.displayName="PopoverTrigger";function Cee(e,t,n){return(e-t)*100/(n-t)}od({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});od({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var _ee=od({"0%":{left:"-40%"},"100%":{left:"100%"}}),kee=od({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Eee(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=Cee(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,u):o})(),role:"progressbar"},percent:u,value:t}}var[Pee,Aee]=Wt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Tee=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=Eee({value:r,min:t,max:n,isIndeterminate:o}),u=Aee(),c={height:"100%",...u.filledTrack};return J.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},FO=e=>{var t;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:u,borderRadius:c,isIndeterminate:f,"aria-label":p,"aria-labelledby":h,...m}=St(e),v=xr("Progress",e),y=c??((t=v.track)==null?void 0:t.borderRadius),x={animation:`${kee} 1s linear infinite`},b={...!f&&i&&s&&x,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${_ee} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...v.track};return J.createElement(ie.div,{borderRadius:y,__css:_,...m},ee(Pee,{value:v,children:[S(Tee,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:b,borderRadius:y}),u]}))};FO.displayName="Progress";var Iee=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Iee.displayName="CircularProgressLabel";var Oee=(...e)=>e.filter(Boolean).join(" "),Ree=e=>e?"":void 0;function Mee(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var $O=ce(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return J.createElement(ie.select,{...s,ref:n,className:Oee("chakra-select",i)},o&&S("option",{value:"",children:o}),r)});$O.displayName="SelectField";var BO=ce((e,t)=>{var n;const r=xr("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...y}=St(e),[x,E]=Mee(y,Uz),w=wS(E),b={width:"100%",height:"fit-content",position:"relative",color:u},_={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return J.createElement(ie.div,{className:"chakra-select__wrapper",__css:b,...x,...o},S($O,{ref:t,height:f??c,minH:p??h,placeholder:i,...w,__css:_,children:e.children}),S(zO,{"data-disabled":Ree(w.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});BO.displayName="Select";var Nee=e=>S("svg",{viewBox:"0 0 24 24",...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Lee=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),zO=e=>{const{children:t=S(Nee,{}),...n}=e,r=C.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return S(Lee,{...n,className:"chakra-select__icon-wrapper",children:C.exports.isValidElement(t)?r:null})};zO.displayName="SelectIcon";var Dee=(...e)=>e.filter(Boolean).join(" "),Qk=e=>e?"":void 0,Vi=ce(function(t,n){const r=xr("Switch",t),{spacing:o="0.5rem",children:i,...s}=St(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=iI(s),m=C.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=C.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),y=C.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return J.createElement(ie.label,{...p(),className:Dee("chakra-switch",t.className),__css:m},S("input",{className:"chakra-switch__input",...c({},n)}),J.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},J.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Qk(u.isChecked),"data-hover":Qk(u.isHovered)})),i&&J.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:y},i))});Vi.displayName="Switch";var Fee=(...e)=>e.filter(Boolean).join(" ");function $ee(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var Bee=["h","minH","height","minHeight"],VO=ce((e,t)=>{const n=rr("Textarea",e),{className:r,rows:o,...i}=St(e),s=wS(i),u=o?$ee(n,Bee):n;return J.createElement(ie.textarea,{ref:t,rows:o,...s,className:Fee("chakra-textarea",r),__css:u})});VO.displayName="Textarea";function mt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...p){r();for(const h of p)t[h]=c(h);return mt(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return mt(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const v=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>p}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var zee=mt("accordion").parts("root","container","button","panel").extend("icon"),Vee=mt("alert").parts("title","description","container").extend("icon","spinner"),Wee=mt("avatar").parts("label","badge","container").extend("excessLabel","group"),jee=mt("breadcrumb").parts("link","item","container").extend("separator");mt("button").parts();var Uee=mt("checkbox").parts("control","icon","container").extend("label");mt("progress").parts("track","filledTrack").extend("label");var Hee=mt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Gee=mt("editable").parts("preview","input","textarea"),qee=mt("form").parts("container","requiredIndicator","helperText"),Kee=mt("formError").parts("text","icon"),Yee=mt("input").parts("addon","field","element"),Zee=mt("list").parts("container","item","icon"),Xee=mt("menu").parts("button","list","item").extend("groupTitle","command","divider"),Qee=mt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Jee=mt("numberinput").parts("root","field","stepperGroup","stepper");mt("pininput").parts("field");var ete=mt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tte=mt("progress").parts("label","filledTrack","track"),nte=mt("radio").parts("container","control","label"),rte=mt("select").parts("field","icon"),ote=mt("slider").parts("container","track","thumb","filledTrack","mark"),ite=mt("stat").parts("container","label","helpText","number","icon"),ate=mt("switch").parts("container","track","thumb"),ste=mt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),lte=mt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),ute=mt("tag").parts("container","label","closeButton");function In(e,t){cte(e)&&(e="100%");var n=fte(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function lh(e){return Math.min(1,Math.max(0,e))}function cte(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fte(e){return typeof e=="string"&&e.indexOf("%")!==-1}function WO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function As(e){return e.length===1?"0"+e:String(e)}function dte(e,t,n){return{r:In(e,255)*255,g:In(t,255)*255,b:In(n,255)*255}}function Jk(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s,l:u}}function oy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pte(e,t,n){var r,o,i;if(e=In(e,360),t=In(t,100),n=In(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=oy(u,s,e+1/3),o=oy(u,s,e),i=oy(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function e3(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=r===0?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4;break}i/=6}return{h:i,s:c,v:s}}function hte(e,t,n){e=In(e,360)*6,t=In(t,100),n=In(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),c=r%6,f=[n,s,i,i,u,n][c],p=[u,n,n,s,i,i][c],h=[i,i,u,n,n,s][c];return{r:f*255,g:p*255,b:h*255}}function t3(e,t,n,r){var o=[As(Math.round(e).toString(16)),As(Math.round(t).toString(16)),As(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function mte(e,t,n,r,o){var i=[As(Math.round(e).toString(16)),As(Math.round(t).toString(16)),As(Math.round(n).toString(16)),As(gte(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function gte(e){return Math.round(parseFloat(e)*255).toString(16)}function n3(e){return Ir(e)/255}function Ir(e){return parseInt(e,16)}function vte(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var s2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function yte(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,u=!1;return typeof e=="string"&&(e=Ste(e)),typeof e=="object"&&(Ei(e.r)&&Ei(e.g)&&Ei(e.b)?(t=dte(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ei(e.h)&&Ei(e.s)&&Ei(e.v)?(r=uh(e.s),o=uh(e.v),t=hte(e.h,r,o),s=!0,u="hsv"):Ei(e.h)&&Ei(e.s)&&Ei(e.l)&&(r=uh(e.s),i=uh(e.l),t=pte(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=WO(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var bte="[-\\+]?\\d+%?",xte="[-\\+]?\\d*\\.\\d+%?",Ta="(?:".concat(xte,")|(?:").concat(bte,")"),iy="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),ay="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),So={CSS_UNIT:new RegExp(Ta),rgb:new RegExp("rgb"+iy),rgba:new RegExp("rgba"+ay),hsl:new RegExp("hsl"+iy),hsla:new RegExp("hsla"+ay),hsv:new RegExp("hsv"+iy),hsva:new RegExp("hsva"+ay),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ste(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(s2[e])e=s2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=So.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=So.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=So.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=So.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=So.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=So.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=So.hex8.exec(e),n?{r:Ir(n[1]),g:Ir(n[2]),b:Ir(n[3]),a:n3(n[4]),format:t?"name":"hex8"}:(n=So.hex6.exec(e),n?{r:Ir(n[1]),g:Ir(n[2]),b:Ir(n[3]),format:t?"name":"hex"}:(n=So.hex4.exec(e),n?{r:Ir(n[1]+n[1]),g:Ir(n[2]+n[2]),b:Ir(n[3]+n[3]),a:n3(n[4]+n[4]),format:t?"name":"hex8"}:(n=So.hex3.exec(e),n?{r:Ir(n[1]+n[1]),g:Ir(n[2]+n[2]),b:Ir(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ei(e){return Boolean(So.CSS_UNIT.exec(String(e)))}var yd=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=vte(t)),this.originalInput=t;var o=yte(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,u=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=WO(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=e3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=e3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Jk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Jk(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),t3(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),mte(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(In(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(In(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+t3(this.r,this.g,this.b,!1),n=0,r=Object.entries(s2);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=lh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=lh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=lh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=lh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],u=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function jO(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(jO(e));return e.count=t,n}var r=wte(e.hue,e.seed),o=Cte(r,e),i=_te(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new yd(s)}function wte(e,t){var n=Ete(e),r=G0(n,t);return r<0&&(r=360+r),r}function Cte(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return G0([0,100],t.seed);var n=UO(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break}return G0([r,o],t.seed)}function _te(e,t,n){var r=kte(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break}return G0([r,o],n.seed)}function kte(e,t){for(var n=UO(e).lowerBounds,r=0;r<n.length-1;r++){var o=n[r][0],i=n[r][1],s=n[r+1][0],u=n[r+1][1];if(t>=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function Ete(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=GO.find(function(s){return s.name===e});if(n){var r=HO(n);if(r.hueRange)return r.hueRange}var o=new yd(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function UO(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=GO;t<n.length;t++){var r=n[t],o=HO(r);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function G0(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function HO(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var GO=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function Pte(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}var Ate=e=>Object.keys(e).length===0,pn=(e,t,n)=>{const r=Pte(e,`colors.${t}`,t),{isValid:o}=new yd(r);return o?r:n},Tte=e=>t=>{const n=pn(t,e);return new yd(n).isDark()?"dark":"light"},Ite=e=>t=>Tte(e)(t)==="dark",wu=(e,t)=>n=>{const r=pn(n,e);return new yd(r).setAlpha(t).toRgbString()};function r3(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
|
|
45deg,
|
|
${t} 25%,
|
|
transparent 25%,
|
|
transparent 50%,
|
|
${t} 50%,
|
|
${t} 75%,
|
|
transparent 75%,
|
|
transparent
|
|
)`,backgroundSize:`${e} ${e}`}}function Ote(e){const t=jO().toHexString();return!e||Ate(e)?t:e.string&&e.colors?Mte(e.string,e.colors):e.string&&!e.colors?Rte(e.string):e.colors&&!e.string?Nte(e.colors):t}function Rte(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1)n+=`00${(t>>r*8&255).toString(16)}`.substr(-2);return n}function Mte(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 Nte(e){return e[Math.floor(Math.random()*e.length)]}function ne(e,t){return n=>n.colorMode==="dark"?t:e}function nw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Lte(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function qO(e){return Lte(e)&&e.reference?e.reference:String(e)}var fg=(e,...t)=>t.map(qO).join(` ${e} `).replace(/calc/g,""),o3=(...e)=>`calc(${fg("+",...e)})`,i3=(...e)=>`calc(${fg("-",...e)})`,l2=(...e)=>`calc(${fg("*",...e)})`,a3=(...e)=>`calc(${fg("/",...e)})`,s3=e=>{const t=qO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:l2(t,-1)},Mi=Object.assign(e=>({add:(...t)=>Mi(o3(e,...t)),subtract:(...t)=>Mi(i3(e,...t)),multiply:(...t)=>Mi(l2(e,...t)),divide:(...t)=>Mi(a3(e,...t)),negate:()=>Mi(s3(e)),toString:()=>e.toString()}),{add:o3,subtract:i3,multiply:l2,divide:a3,negate:s3});function Dte(e){return!Number.isInteger(parseFloat(e.toString()))}function Fte(e,t="-"){return e.replace(/\s+/g,t)}function KO(e){const t=Fte(e.toString());return t.includes("\\.")?e:Dte(e)?t.replace(".","\\."):e}function $te(e,t=""){return[t,KO(e)].filter(Boolean).join("-")}function Bte(e,t){return`var(${KO(e)}${t?`, ${t}`:""})`}function zte(e,t=""){return`--${$te(e,t)}`}function Sr(e,t){const n=zte(e,t?.prefix);return{variable:n,reference:Bte(n,Vte(t?.fallback))}}function Vte(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Wte,defineMultiStyleConfig:jte}=Lt(zee.keys),Ute={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Hte={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Gte={pt:"2",px:"4",pb:"5"},qte={fontSize:"1.25em"},Kte=Wte({container:Ute,button:Hte,panel:Gte,icon:qte}),Yte=jte({baseStyle:Kte}),{definePartsStyle:bd,defineMultiStyleConfig:Zte}=Lt(Vee.keys),Ki=Qa("alert-fg"),xd=Qa("alert-bg"),Xte=bd({container:{bg:xd.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ki.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ki.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function rw(e){const{theme:t,colorScheme:n}=e,r=pn(t,`${n}.100`,n),o=wu(`${n}.200`,.16)(t);return ne(r,o)(e)}var Qte=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`}}}),Jte=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ki.reference}}}),ene=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e);return{container:{[xd.variable]:rw(e),[Ki.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ki.reference}}}),tne=bd(e=>{const{colorScheme:t}=e,n=ne(`${t}.500`,`${t}.200`)(e),r=ne("white","gray.900")(e);return{container:{[xd.variable]:`colors.${n}`,[Ki.variable]:`colors.${r}`,color:Ki.reference}}}),nne={subtle:Qte,"left-accent":Jte,"top-accent":ene,solid:tne},rne=Zte({baseStyle:Xte,variants:nne,defaultProps:{variant:"subtle",colorScheme:"blue"}}),YO={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},one={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},ine={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ane={...YO,...one,container:ine},ZO=ane,sne=e=>typeof e=="function";function nn(e,...t){return sne(e)?e(...t):e}var{definePartsStyle:XO,defineMultiStyleConfig:lne}=Lt(Wee.keys),une=e=>({borderRadius:"full",border:"0.2em solid",borderColor:ne("white","gray.800")(e)}),cne=e=>({bg:ne("gray.200","whiteAlpha.400")(e)}),fne=e=>{const{name:t,theme:n}=e,r=t?Ote({string:t}):"gray.400",o=Ite(r)(n);let i="white";o||(i="gray.800");const s=ne("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},dne=XO(e=>({badge:nn(une,e),excessLabel:nn(cne,e),container:nn(fne,e)}));function da(e){const t=e!=="100%"?ZO[e]:void 0;return XO({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var pne={"2xs":da(4),xs:da(6),sm:da(8),md:da(12),lg:da(16),xl:da(24),"2xl":da(32),full:da("100%")},hne=lne({baseStyle:dne,sizes:pne,defaultProps:{size:"md"}}),mne={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},gne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.500`,.6)(n);return{bg:ne(`${t}.500`,r)(e),color:ne("white","whiteAlpha.800")(e)}},vne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.200`,.16)(n);return{bg:ne(`${t}.100`,r)(e),color:ne(`${t}.800`,`${t}.200`)(e)}},yne=e=>{const{colorScheme:t,theme:n}=e,r=wu(`${t}.200`,.8)(n),o=pn(n,`${t}.500`),i=ne(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},bne={solid:gne,subtle:vne,outline:yne},ef={baseStyle:mne,variants:bne,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:xne,definePartsStyle:Sne}=Lt(jee.keys),wne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Cne=Sne({link:wne}),_ne=xne({baseStyle:Cne}),kne={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},QO=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:ne("inherit","whiteAlpha.900")(e),_hover:{bg:ne("gray.100","whiteAlpha.200")(e)},_active:{bg:ne("gray.200","whiteAlpha.300")(e)}};const r=wu(`${t}.200`,.12)(n),o=wu(`${t}.200`,.24)(n);return{color:ne(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ne(`${t}.50`,r)(e)},_active:{bg:ne(`${t}.100`,o)(e)}}},Ene=e=>{const{colorScheme:t}=e,n=ne("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...nn(QO,e)}},Pne={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ane=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=ne("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:ne("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:ne("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Pne[t]??{},s=ne(n,`${t}.200`)(e);return{bg:s,color:ne(r,"gray.800")(e),_hover:{bg:ne(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:ne(i,`${t}.400`)(e)}}},Tne=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ne(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ne(`${t}.700`,`${t}.500`)(e)}}},Ine={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},One={ghost:QO,outline:Ene,solid:Ane,link:Tne,unstyled:Ine},Rne={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Mne={baseStyle:kne,variants:One,sizes:Rne,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:zh,defineMultiStyleConfig:Nne}=Lt(Uee.keys),tf=Qa("checkbox-size"),Lne=e=>{const{colorScheme:t}=e;return{w:tf.reference,h:tf.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ne(`${t}.500`,`${t}.200`)(e),borderColor:ne(`${t}.500`,`${t}.200`)(e),color:ne("white","gray.900")(e),_hover:{bg:ne(`${t}.600`,`${t}.300`)(e),borderColor:ne(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ne("gray.200","transparent")(e),bg:ne("gray.200","whiteAlpha.300")(e),color:ne("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ne(`${t}.500`,`${t}.200`)(e),borderColor:ne(`${t}.500`,`${t}.200`)(e),color:ne("white","gray.900")(e)},_disabled:{bg:ne("gray.100","whiteAlpha.100")(e),borderColor:ne("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ne("red.500","red.300")(e)}}},Dne={_disabled:{cursor:"not-allowed"}},Fne={userSelect:"none",_disabled:{opacity:.4}},$ne={transitionProperty:"transform",transitionDuration:"normal"},Bne=zh(e=>({icon:$ne,container:Dne,control:nn(Lne,e),label:Fne})),zne={sm:zh({control:{[tf.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:zh({control:{[tf.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:zh({control:{[tf.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},q0=Nne({baseStyle:Bne,sizes:zne,defaultProps:{size:"md",colorScheme:"blue"}}),nf=Sr("close-button-size"),Vne=e=>{const t=ne("blackAlpha.100","whiteAlpha.100")(e),n=ne("blackAlpha.200","whiteAlpha.200")(e);return{w:[nf.reference],h:[nf.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},Wne={lg:{[nf.variable]:"sizes.10",fontSize:"md"},md:{[nf.variable]:"sizes.8",fontSize:"xs"},sm:{[nf.variable]:"sizes.6",fontSize:"2xs"}},jne={baseStyle:Vne,sizes:Wne,defaultProps:{size:"md"}},{variants:Une,defaultProps:Hne}=ef,Gne={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},qne={baseStyle:Gne,variants:Une,defaultProps:Hne},Kne={w:"100%",mx:"auto",maxW:"prose",px:"4"},Yne={baseStyle:Kne},Zne={opacity:.6,borderColor:"inherit"},Xne={borderStyle:"solid"},Qne={borderStyle:"dashed"},Jne={solid:Xne,dashed:Qne},ere={baseStyle:Zne,variants:Jne,defaultProps:{variant:"solid"}},{definePartsStyle:u2,defineMultiStyleConfig:tre}=Lt(Hee.keys);function Pl(e){return u2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var nre={bg:"blackAlpha.600",zIndex:"overlay"},rre={display:"flex",zIndex:"modal",justifyContent:"center"},ore=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:ne("white","gray.700")(e),color:"inherit",boxShadow:ne("lg","dark-lg")(e)}},ire={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},are={position:"absolute",top:"2",insetEnd:"3"},sre={px:"6",py:"2",flex:"1",overflow:"auto"},lre={px:"6",py:"4"},ure=u2(e=>({overlay:nre,dialogContainer:rre,dialog:nn(ore,e),header:ire,closeButton:are,body:sre,footer:lre})),cre={xs:Pl("xs"),sm:Pl("md"),md:Pl("lg"),lg:Pl("2xl"),xl:Pl("4xl"),full:Pl("full")},fre=tre({baseStyle:ure,sizes:cre,defaultProps:{size:"xs"}}),{definePartsStyle:dre,defineMultiStyleConfig:pre}=Lt(Gee.keys),hre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},gre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},vre=dre({preview:hre,input:mre,textarea:gre}),yre=pre({baseStyle:vre}),{definePartsStyle:bre,defineMultiStyleConfig:xre}=Lt(qee.keys),Sre=e=>({marginStart:"1",color:ne("red.500","red.300")(e)}),wre=e=>({mt:"2",color:ne("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Cre=bre(e=>({container:{width:"100%",position:"relative"},requiredIndicator:nn(Sre,e),helperText:nn(wre,e)})),_re=xre({baseStyle:Cre}),{definePartsStyle:kre,defineMultiStyleConfig:Ere}=Lt(Kee.keys),Pre=e=>({color:ne("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Are=e=>({marginEnd:"0.5em",color:ne("red.500","red.300")(e)}),Tre=kre(e=>({text:nn(Pre,e),icon:nn(Are,e)})),Ire=Ere({baseStyle:Tre}),Ore={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Rre={baseStyle:Ore},Mre={fontFamily:"heading",fontWeight:"bold"},Nre={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Lre={baseStyle:Mre,sizes:Nre,defaultProps:{size:"xl"}},{definePartsStyle:Di,defineMultiStyleConfig:Dre}=Lt(Yee.keys),Fre=Di({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),pa={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},$re={lg:Di({field:pa.lg,addon:pa.lg}),md:Di({field:pa.md,addon:pa.md}),sm:Di({field:pa.sm,addon:pa.sm}),xs:Di({field:pa.xs,addon:pa.xs})};function ow(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||ne("blue.500","blue.300")(e),errorBorderColor:n||ne("red.500","red.300")(e)}}var Bre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ne("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r),boxShadow:`0 0 0 1px ${pn(t,r)}`},_focusVisible:{zIndex:1,borderColor:pn(t,n),boxShadow:`0 0 0 1px ${pn(t,n)}`}},addon:{border:"1px solid",borderColor:ne("inherit","whiteAlpha.50")(e),bg:ne("gray.100","whiteAlpha.300")(e)}}}),zre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ne("gray.100","whiteAlpha.50")(e),_hover:{bg:ne("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r)},_focusVisible:{bg:"transparent",borderColor:pn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ne("gray.100","whiteAlpha.50")(e)}}}),Vre=Di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ow(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pn(t,r),boxShadow:`0px 1px 0px 0px ${pn(t,r)}`},_focusVisible:{borderColor:pn(t,n),boxShadow:`0px 1px 0px 0px ${pn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Wre=Di({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),jre={outline:Bre,filled:zre,flushed:Vre,unstyled:Wre},it=Dre({baseStyle:Fre,sizes:$re,variants:jre,defaultProps:{size:"md",variant:"outline"}}),Ure=e=>({bg:ne("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Hre={baseStyle:Ure},Gre={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},qre={baseStyle:Gre},{defineMultiStyleConfig:Kre,definePartsStyle:Yre}=Lt(Zee.keys),Zre={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Xre=Yre({icon:Zre}),Qre=Kre({baseStyle:Xre}),{defineMultiStyleConfig:Jre,definePartsStyle:eoe}=Lt(Xee.keys),toe=e=>({bg:ne("#fff","gray.700")(e),boxShadow:ne("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),noe=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ne("gray.100","whiteAlpha.100")(e)},_active:{bg:ne("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ne("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),roe={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ooe={opacity:.6},ioe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},aoe={transitionProperty:"common",transitionDuration:"normal"},soe=eoe(e=>({button:aoe,list:nn(toe,e),item:nn(noe,e),groupTitle:roe,command:ooe,divider:ioe})),loe=Jre({baseStyle:soe}),{defineMultiStyleConfig:uoe,definePartsStyle:c2}=Lt(Qee.keys),coe={bg:"blackAlpha.600",zIndex:"modal"},foe=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},doe=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:ne("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:ne("lg","dark-lg")(e)}},poe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hoe={position:"absolute",top:"2",insetEnd:"3"},moe=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},goe={px:"6",py:"4"},voe=c2(e=>({overlay:coe,dialogContainer:nn(foe,e),dialog:nn(doe,e),header:poe,closeButton:hoe,body:nn(moe,e),footer:goe}));function xo(e){return c2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var yoe={xs:xo("xs"),sm:xo("sm"),md:xo("md"),lg:xo("lg"),xl:xo("xl"),"2xl":xo("2xl"),"3xl":xo("3xl"),"4xl":xo("4xl"),"5xl":xo("5xl"),"6xl":xo("6xl"),full:xo("full")},boe=uoe({baseStyle:voe,sizes:yoe,defaultProps:{size:"md"}}),xoe={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},JO=xoe,{defineMultiStyleConfig:Soe,definePartsStyle:eR}=Lt(Jee.keys),iw=Sr("number-input-stepper-width"),tR=Sr("number-input-input-padding"),woe=Mi(iw).add("0.5rem").toString(),Coe={[iw.variable]:"sizes.6",[tR.variable]:woe},_oe=e=>{var t;return((t=nn(it.baseStyle,e))==null?void 0:t.field)??{}},koe={width:[iw.reference]},Eoe=e=>({borderStart:"1px solid",borderStartColor:ne("inherit","whiteAlpha.300")(e),color:ne("inherit","whiteAlpha.800")(e),_active:{bg:ne("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Poe=eR(e=>({root:Coe,field:_oe,stepperGroup:koe,stepper:nn(Eoe,e)??{}}));function ch(e){var t,n;const r=(t=it.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((n=r.field)==null?void 0:n.fontSize)??"md",s=JO.fontSizes[i];return eR({field:{...r.field,paddingInlineEnd:tR.reference,verticalAlign:"top"},stepper:{fontSize:Mi(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Aoe={xs:ch("xs"),sm:ch("sm"),md:ch("md"),lg:ch("lg")},Toe=Soe({baseStyle:Poe,sizes:Aoe,variants:it.variants,defaultProps:it.defaultProps}),l3,Ioe={...(l3=it.baseStyle)==null?void 0:l3.field,textAlign:"center"},Ooe={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},u3,Roe={outline:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nn((t=it.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((u3=it.variants)==null?void 0:u3.unstyled.field)??{}},Moe={baseStyle:Ioe,sizes:Ooe,variants:Roe,defaultProps:it.defaultProps},{defineMultiStyleConfig:Noe,definePartsStyle:Loe}=Lt(ete.keys),sy=Sr("popper-bg"),Doe=Sr("popper-arrow-bg"),Foe=Sr("popper-arrow-shadow-color"),$oe={zIndex:10},Boe=e=>{const t=ne("white","gray.700")(e),n=ne("gray.200","whiteAlpha.300")(e);return{[sy.variable]:`colors.${t}`,bg:sy.reference,[Doe.variable]:sy.reference,[Foe.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},zoe={px:3,py:2,borderBottomWidth:"1px"},Voe={px:3,py:2},Woe={px:3,py:2,borderTopWidth:"1px"},joe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Uoe=Loe(e=>({popper:$oe,content:Boe(e),header:zoe,body:Voe,footer:Woe,closeButton:joe})),Hoe=Noe({baseStyle:Uoe}),{defineMultiStyleConfig:Goe,definePartsStyle:Oc}=Lt(tte.keys),qoe=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=ne(r3(),r3("1rem","rgba(0,0,0,0.1)"))(e),s=ne(`${t}.500`,`${t}.200`)(e),u=`linear-gradient(
|
|
to right,
|
|
transparent 0%,
|
|
${pn(n,s)} 50%,
|
|
transparent 100%
|
|
)`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},Koe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Yoe=e=>({bg:ne("gray.100","whiteAlpha.300")(e)}),Zoe=e=>({transitionProperty:"common",transitionDuration:"slow",...qoe(e)}),Xoe=Oc(e=>({label:Koe,filledTrack:Zoe(e),track:Yoe(e)})),Qoe={xs:Oc({track:{h:"1"}}),sm:Oc({track:{h:"2"}}),md:Oc({track:{h:"3"}}),lg:Oc({track:{h:"4"}})},Joe=Goe({sizes:Qoe,baseStyle:Xoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eie,definePartsStyle:Vh}=Lt(nte.keys),tie=e=>{var t;const n=(t=nn(q0.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"}}}},nie=Vh(e=>{var t,n,r,o;return{label:(n=(t=q0).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=q0).baseStyle)==null?void 0:o.call(r,e).container,control:tie(e)}}),rie={md:Vh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Vh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Vh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},oie=eie({baseStyle:nie,sizes:rie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:iie,definePartsStyle:aie}=Lt(rte.keys),sie=e=>{var t;return{...(t=it.baseStyle)==null?void 0:t.field,bg:ne("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ne("white","gray.700")(e)}}},lie={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},uie=aie(e=>({field:sie(e),icon:lie})),fh={paddingInlineEnd:"8"},c3,f3,d3,p3,h3,m3,g3,v3,cie={lg:{...(c3=it.sizes)==null?void 0:c3.lg,field:{...(f3=it.sizes)==null?void 0:f3.lg.field,...fh}},md:{...(d3=it.sizes)==null?void 0:d3.md,field:{...(p3=it.sizes)==null?void 0:p3.md.field,...fh}},sm:{...(h3=it.sizes)==null?void 0:h3.sm,field:{...(m3=it.sizes)==null?void 0:m3.sm.field,...fh}},xs:{...(g3=it.sizes)==null?void 0:g3.xs,field:{...(v3=it.sizes)==null?void 0:v3.sm.field,...fh},icon:{insetEnd:"1"}}},fie=iie({baseStyle:uie,sizes:cie,variants:it.variants,defaultProps:it.defaultProps}),die=Qa("skeleton-start-color"),pie=Qa("skeleton-end-color"),hie=e=>{const t=ne("gray.100","gray.800")(e),n=ne("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=pn(i,r),u=pn(i,o);return{[die.variable]:s,[pie.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},mie={baseStyle:hie},gie=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:ne("white","gray.700")(e)}}),vie={baseStyle:gie},{defineMultiStyleConfig:yie,definePartsStyle:dg}=Lt(ote.keys),Uf=Qa("slider-thumb-size"),Hf=Qa("slider-track-size"),bie=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...nw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xie=e=>({...nw({orientation:e.orientation,horizontal:{h:Hf.reference},vertical:{w:Hf.reference}}),overflow:"hidden",borderRadius:"sm",bg:ne("gray.200","whiteAlpha.200")(e),_disabled:{bg:ne("gray.300","whiteAlpha.300")(e)}}),Sie=e=>{const{orientation:t}=e;return{...nw({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:Uf.reference,h:Uf.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"}}},wie=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:ne(`${t}.500`,`${t}.200`)(e)}},Cie=dg(e=>({container:bie(e),track:xie(e),thumb:Sie(e),filledTrack:wie(e)})),_ie=dg({container:{[Uf.variable]:"sizes.4",[Hf.variable]:"sizes.1"}}),kie=dg({container:{[Uf.variable]:"sizes.3.5",[Hf.variable]:"sizes.1"}}),Eie=dg({container:{[Uf.variable]:"sizes.2.5",[Hf.variable]:"sizes.0.5"}}),Pie={lg:_ie,md:kie,sm:Eie},Aie=yie({baseStyle:Cie,sizes:Pie,defaultProps:{size:"md",colorScheme:"blue"}}),Ss=Sr("spinner-size"),Tie={width:[Ss.reference],height:[Ss.reference]},Iie={xs:{[Ss.variable]:"sizes.3"},sm:{[Ss.variable]:"sizes.4"},md:{[Ss.variable]:"sizes.6"},lg:{[Ss.variable]:"sizes.8"},xl:{[Ss.variable]:"sizes.12"}},Oie={baseStyle:Tie,sizes:Iie,defaultProps:{size:"md"}},{defineMultiStyleConfig:Rie,definePartsStyle:nR}=Lt(ite.keys),Mie={fontWeight:"medium"},Nie={opacity:.8,marginBottom:"2"},Lie={verticalAlign:"baseline",fontWeight:"semibold"},Die={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Fie=nR({container:{},label:Mie,helpText:Nie,number:Lie,icon:Die}),$ie={md:nR({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Bie=Rie({baseStyle:Fie,sizes:$ie,defaultProps:{size:"md"}}),{defineMultiStyleConfig:zie,definePartsStyle:Wh}=Lt(ate.keys),rf=Sr("switch-track-width"),Ms=Sr("switch-track-height"),ly=Sr("switch-track-diff"),Vie=Mi.subtract(rf,Ms),f2=Sr("switch-thumb-x"),Wie=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[rf.reference],height:[Ms.reference],transitionProperty:"common",transitionDuration:"fast",bg:ne("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ne(`${t}.500`,`${t}.200`)(e)}}},jie={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ms.reference],height:[Ms.reference],_checked:{transform:`translateX(${f2.reference})`}},Uie=Wh(e=>({container:{[ly.variable]:Vie,[f2.variable]:ly.reference,_rtl:{[f2.variable]:Mi(ly).negate().toString()}},track:Wie(e),thumb:jie})),Hie={sm:Wh({container:{[rf.variable]:"1.375rem",[Ms.variable]:"sizes.3"}}),md:Wh({container:{[rf.variable]:"1.875rem",[Ms.variable]:"sizes.4"}}),lg:Wh({container:{[rf.variable]:"2.875rem",[Ms.variable]:"sizes.6"}})},Gie=zie({baseStyle:Uie,sizes:Hie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:qie,definePartsStyle:iu}=Lt(ste.keys),Kie=iu({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),K0={"&[data-is-numeric=true]":{textAlign:"end"}},Yie=iu(e=>{const{colorScheme:t}=e;return{th:{color:ne("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},td:{borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},caption:{color:ne("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Zie=iu(e=>{const{colorScheme:t}=e;return{th:{color:ne("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},td:{borderBottom:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e),...K0},caption:{color:ne("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ne(`${t}.100`,`${t}.700`)(e)},td:{background:ne(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Xie={simple:Yie,striped:Zie,unstyled:{}},Qie={sm:iu({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:iu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:iu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Jie=qie({baseStyle:Kie,variants:Xie,sizes:Qie,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:eae,definePartsStyle:ri}=Lt(lte.keys),tae=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},nae=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},rae=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},oae={p:4},iae=ri(e=>({root:tae(e),tab:nae(e),tablist:rae(e),tabpanel:oae})),aae={sm:ri({tab:{py:1,px:4,fontSize:"sm"}}),md:ri({tab:{fontSize:"md",py:2,px:4}}),lg:ri({tab:{fontSize:"lg",py:3,px:4}})},sae=ri(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:ne("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),lae=ri(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:ne("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),uae=ri(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:ne("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ne("#fff","gray.800")(e),color:ne(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),cae=ri(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:pn(n,`${t}.700`),bg:pn(n,`${t}.100`)}}}}),fae=ri(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ne("gray.600","inherit")(e),_selected:{color:ne("#fff","gray.800")(e),bg:ne(`${t}.600`,`${t}.300`)(e)}}}}),dae=ri({}),pae={line:sae,enclosed:lae,"enclosed-colored":uae,"soft-rounded":cae,"solid-rounded":fae,unstyled:dae},hae=eae({baseStyle:iae,sizes:aae,variants:pae,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:mae,definePartsStyle:Ns}=Lt(ute.keys),gae={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},vae={lineHeight:1.2,overflow:"visible"},yae={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},bae=Ns({container:gae,label:vae,closeButton:yae}),xae={sm:Ns({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ns({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Ns({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Sae={subtle:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.subtle(e)}}),solid:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.solid(e)}}),outline:Ns(e=>{var t;return{container:(t=ef.variants)==null?void 0:t.outline(e)}})},wae=mae({variants:Sae,baseStyle:bae,sizes:xae,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),y3,Cae={...(y3=it.baseStyle)==null?void 0:y3.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},b3,_ae={outline:e=>{var t;return((t=it.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=it.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=it.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((b3=it.variants)==null?void 0:b3.unstyled.field)??{}},x3,S3,w3,C3,kae={xs:((x3=it.sizes)==null?void 0:x3.xs.field)??{},sm:((S3=it.sizes)==null?void 0:S3.sm.field)??{},md:((w3=it.sizes)==null?void 0:w3.md.field)??{},lg:((C3=it.sizes)==null?void 0:C3.lg.field)??{}},Eae={baseStyle:Cae,sizes:kae,variants:_ae,defaultProps:{size:"md",variant:"outline"}},uy=Sr("tooltip-bg"),_3=Sr("tooltip-fg"),Pae=Sr("popper-arrow-bg"),Aae=e=>{const t=ne("gray.700","gray.300")(e),n=ne("whiteAlpha.900","gray.900")(e);return{bg:uy.reference,color:_3.reference,[uy.variable]:`colors.${t}`,[_3.variable]:`colors.${n}`,[Pae.variable]:uy.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Tae={baseStyle:Aae},Iae={Accordion:Yte,Alert:rne,Avatar:hne,Badge:ef,Breadcrumb:_ne,Button:Mne,Checkbox:q0,CloseButton:jne,Code:qne,Container:Yne,Divider:ere,Drawer:fre,Editable:yre,Form:_re,FormError:Ire,FormLabel:Rre,Heading:Lre,Input:it,Kbd:Hre,Link:qre,List:Qre,Menu:loe,Modal:boe,NumberInput:Toe,PinInput:Moe,Popover:Hoe,Progress:Joe,Radio:oie,Select:fie,Skeleton:mie,SkipLink:vie,Slider:Aie,Spinner:Oie,Stat:Bie,Switch:Gie,Table:Jie,Tabs:hae,Tag:wae,Textarea:Eae,Tooltip:Tae},Oae={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Rae=Oae,Mae={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Nae=Mae,Lae={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Dae=Lae,Fae={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},$ae=Fae,Bae={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},zae=Bae,Vae={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Wae={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},jae={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Uae={property:Vae,easing:Wae,duration:jae},Hae=Uae,Gae={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},qae=Gae,Kae={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Yae=Kae,Zae={breakpoints:Nae,zIndices:qae,radii:$ae,blur:Yae,colors:Dae,...JO,sizes:ZO,shadows:zae,space:YO,borders:Rae,transition:Hae},Xae={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Qae={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}};function Jae(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var ese=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function tse(e){return Jae(e)?ese.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var nse="ltr",rse={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},rR={semanticTokens:Xae,direction:nse,...Zae,components:Iae,styles:Qae,config:rse};function ose(e,t){const n=Vn(e);C.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function d2(e,...t){return ise(e)?e(...t):e}var ise=e=>typeof e=="function";function ase(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var sse=(e,t)=>e.find(n=>n.id===t);function k3(e,t){const n=oR(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function oR(e,t){for(const[n,r]of Object.entries(e))if(sse(r,t))return n}function lse(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function use(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var cse={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ko=fse(cse);function fse(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(u=>u.id!=o)}))},notify:(o,i)=>{const s=dse(o,i),{position:u,id:c}=s;return r(f=>{const h=u.includes("top")?[s,...f[u]??[]]:[...f[u]??[],s];return{...f,[u]:h}}),c},update:(o,i)=>{!o||r(s=>{const u={...s},{position:c,index:f}=k3(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:iR(i)}),u})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=i[f].map(p=>({...p,requestClose:!0})),c),{...i}))},close:o=>{r(i=>{const s=oR(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(k3(Ko.getState(),o).position)}}var E3=0;function dse(e,t={}){E3+=1;const n=t.id??E3,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ko.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var pse=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:u,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return J.createElement(YT,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},S(XT,{children:c}),J.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&S(QT,{id:f?.title,children:o}),u&&S(ZT,{id:f?.description,display:"block",children:u})),i&&S(ag,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function iR(e={}){const{render:t,toastComponent:n=pse}=e;return o=>typeof t=="function"?t(o):S(n,{...o,...e})}function hse(e,t){const n=o=>({...t,...o,position:ase(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=iR(i);return Ko.notify(s,i)};return r.update=(o,i)=>{Ko.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(u=>r.update(s,{status:"success",duration:5e3,...d2(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...d2(i.error,u)}))},r.closeAll=Ko.closeAll,r.close=Ko.close,r.isActive=Ko.isActive,r}function mse(e){const{theme:t}=p6();return C.exports.useMemo(()=>hse(t.direction,e),[e,t.direction])}var gse={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},aR=C.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=gse,toastSpacing:p="0.5rem"}=e,[h,m]=C.exports.useState(u),v=VH();B0(()=>{v||r?.()},[v]),B0(()=>{m(u)},[u]);const y=()=>m(null),x=()=>m(u),E=()=>{v&&o()};C.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),ose(E,h);const w=C.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),b=C.exports.useMemo(()=>lse(s),[s]);return J.createElement(so.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:x,custom:{position:s},style:b},J.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w},d2(n,{id:t,onClose:E})))});aR.displayName="ToastComponent";var vse=e=>{const t=C.exports.useSyncExternalStore(Ko.subscribe,Ko.getState,Ko.getState),{children:n,motionVariants:r,component:o=aR,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return S("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:use(c),children:S(Xi,{initial:!1,children:f.map(p=>S(o,{motionVariants:r,...p},p.id))})},c)});return ee(Rn,{children:[n,S(Gs,{...i,children:u})]})};function yse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function bse(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var xse={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function wc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var p2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},h2=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Sse(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnEsc:i=!0,onOpen:s,onClose:u,placement:c,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:y,modifiers:x,isDisabled:E,gutter:w,offset:b,direction:_,...P}=e,{isOpen:I,onOpen:N,onClose:L}=LI({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:z,getPopperProps:K,getArrowInnerProps:W,getArrowProps:te}=NI({enabled:I,placement:c,arrowPadding:y,modifiers:x,gutter:w,offset:b,direction:_}),be=C.exports.useId(),ye=`tooltip-${f??be}`,Ce=C.exports.useRef(null),ae=C.exports.useRef(),ke=C.exports.useRef(),j=C.exports.useCallback(()=>{ke.current&&(clearTimeout(ke.current),ke.current=void 0),L()},[L]),Y=wse(Ce,j),q=C.exports.useCallback(()=>{if(!E&&!ae.current){Y();const fe=h2(Ce);ae.current=fe.setTimeout(N,t)}},[Y,E,N,t]),R=C.exports.useCallback(()=>{ae.current&&(clearTimeout(ae.current),ae.current=void 0);const fe=h2(Ce);ke.current=fe.setTimeout(j,n)},[n,j]),U=C.exports.useCallback(()=>{I&&r&&R()},[r,R,I]),se=C.exports.useCallback(()=>{I&&o&&R()},[o,R,I]),ue=C.exports.useCallback(fe=>{I&&fe.key==="Escape"&&R()},[I,R]);Kb(()=>p2(Ce),"keydown",i?ue:void 0),C.exports.useEffect(()=>()=>{clearTimeout(ae.current),clearTimeout(ke.current)},[]),Kb(()=>Ce.current,"mouseleave",R);const he=C.exports.useCallback((fe={},Se=null)=>({...fe,ref:sn(Ce,Se,z),onMouseEnter:wc(fe.onMouseEnter,q),onClick:wc(fe.onClick,U),onMouseDown:wc(fe.onMouseDown,se),onFocus:wc(fe.onFocus,q),onBlur:wc(fe.onBlur,R),"aria-describedby":I?ye:void 0}),[q,R,se,I,ye,U,z]),me=C.exports.useCallback((fe={},Se=null)=>K({...fe,style:{...fe.style,[on.arrowSize.var]:m?`${m}px`:void 0,[on.arrowShadowColor.var]:v}},Se),[K,m,v]),Pe=C.exports.useCallback((fe={},Se=null)=>{const Le={...fe.style,position:"relative",transformOrigin:on.transformOrigin.varRef};return{ref:Se,...P,...fe,id:ye,role:"tooltip",style:Le}},[P,ye]);return{isOpen:I,show:q,hide:R,getTriggerProps:he,getTooltipProps:Pe,getTooltipPositionerProps:me,getArrowProps:te,getArrowInnerProps:W}}var cy="chakra-ui:close-tooltip";function wse(e,t){return C.exports.useEffect(()=>{const n=p2(e);return n.addEventListener(cy,t),()=>n.removeEventListener(cy,t)},[t,e]),()=>{const n=p2(e),r=h2(e);n.dispatchEvent(new r.CustomEvent(cy))}}var Cse=ie(so.div),za=ce((e,t)=>{const n=rr("Tooltip",e),r=St(e),o=Wm(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:y,...x}=r,E=m??v??p??y;if(E){n.bg=E;const z=nV(o,"colors",E);n[on.arrowBg.var]=z}const w=Sse({...x,direction:o.direction}),b=typeof i=="string"||u;let _;if(b)_=J.createElement(ie.span,{tabIndex:0,...w.getTriggerProps()},i);else{const z=C.exports.Children.only(i);_=C.exports.cloneElement(z,w.getTriggerProps(z.props,z.ref))}const P=!!c,I=w.getTooltipProps({},t),N=P?yse(I,["role","id"]):I,L=bse(I,["role","id"]);return s?ee(Rn,{children:[_,S(Xi,{children:w.isOpen&&J.createElement(Gs,{...h},J.createElement(ie.div,{...w.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ee(Cse,{variants:xse,...N,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,P&&J.createElement(ie.span,{srOnly:!0,...L},c),f&&J.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},J.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):S(Rn,{children:i})});za.displayName="Tooltip";var _se=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=S(CI,{environment:s,children:t});return S(QW,{theme:i,cssVarsRoot:u,children:ee(OA,{colorModeManager:n,options:i.config,children:[o?S(OY,{}):S(IY,{}),S(ej,{}),r?S(DI,{zIndex:r,children:c}):c]})})};function kse({children:e,theme:t=rR,toastOptions:n,...r}){return ee(_se,{theme:t,...r,children:[e,S(vse,{...n})]})}function Ese(...e){let t=[...e],n=e[e.length-1];return tse(n)&&t.length>1?t=t.slice(0,t.length-1):n=rR,vW(...t.map(r=>o=>jl(r)?r(o):Pse(o,r)))(n)}function Pse(...e){return Ua({},...e,sR)}function sR(e,t,n,r){if((jl(e)||jl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=jl(e)?e(...o):e,s=jl(t)?t(...o):t;return Ua({},i,s,sR)}}function Eo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qa(e){return!!e&&!!e[Mt]}function Yi(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Dse}(e)||Array.isArray(e)||!!e[M3]||!!e.constructor[M3]||aw(e)||sw(e))}function Vs(e,t,n){n===void 0&&(n=!1),Mu(e)===0?(n?Object.keys:su)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Mu(e){var t=e[Mt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:aw(e)?2:sw(e)?3:0}function au(e,t){return Mu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ase(e,t){return Mu(e)===2?e.get(t):e[t]}function lR(e,t,n){var r=Mu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function uR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function aw(e){return Nse&&e instanceof Map}function sw(e){return Lse&&e instanceof Set}function ys(e){return e.o||e.t}function lw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=fR(e);delete t[Mt];for(var n=su(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function uw(e,t){return t===void 0&&(t=!1),cw(e)||qa(e)||!Yi(e)||(Mu(e)>1&&(e.set=e.add=e.clear=e.delete=Tse),Object.freeze(e),t&&Vs(e,function(n,r){return uw(r,!0)},!0)),e}function Tse(){Eo(2)}function cw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function oi(e){var t=y2[e];return t||Eo(18,e),t}function Ise(e,t){y2[e]||(y2[e]=t)}function m2(){return Gf}function fy(e,t){t&&(oi("Patches"),e.u=[],e.s=[],e.v=t)}function Y0(e){g2(e),e.p.forEach(Ose),e.p=null}function g2(e){e===Gf&&(Gf=e.l)}function P3(e){return Gf={p:[],l:Gf,h:e,m:!0,_:0}}function Ose(e){var t=e[Mt];t.i===0||t.i===1?t.j():t.O=!0}function dy(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||oi("ES5").S(t,e,r),r?(n[Mt].P&&(Y0(t),Eo(4)),Yi(e)&&(e=Z0(t,e),t.l||X0(t,e)),t.u&&oi("Patches").M(n[Mt].t,e,t.u,t.s)):e=Z0(t,n,[]),Y0(t),t.u&&t.v(t.u,t.s),e!==cR?e:void 0}function Z0(e,t,n){if(cw(t))return t;var r=t[Mt];if(!r)return Vs(t,function(i,s){return A3(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return X0(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=lw(r.k):r.o;Vs(r.i===3?new Set(o):o,function(i,s){return A3(e,r,o,i,s,n)}),X0(e,o,!1),n&&e.u&&oi("Patches").R(r,n,e.u,e.s)}return r.o}function A3(e,t,n,r,o,i){if(qa(o)){var s=Z0(e,o,i&&t&&t.i!==3&&!au(t.D,r)?i.concat(r):void 0);if(lR(n,r,s),!qa(s))return;e.m=!1}if(Yi(o)&&!cw(o)){if(!e.h.F&&e._<1)return;Z0(e,o),t&&t.A.l||X0(e,o)}}function X0(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&uw(t,n)}function py(e,t){var n=e[Mt];return(n?ys(n):e)[t]}function T3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ca(e){e.P||(e.P=!0,e.l&&Ca(e.l))}function hy(e){e.o||(e.o=lw(e.t))}function v2(e,t,n){var r=aw(t)?oi("MapSet").N(t,n):sw(t)?oi("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:m2(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=qf;s&&(c=[u],f=Rc);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):oi("ES5").J(t,n);return(n?n.A:m2()).p.push(r),r}function Rse(e){return qa(e)||Eo(22,e),function t(n){if(!Yi(n))return n;var r,o=n[Mt],i=Mu(n);if(o){if(!o.P&&(o.i<4||!oi("ES5").K(o)))return o.t;o.I=!0,r=I3(n,i),o.I=!1}else r=I3(n,i);return Vs(r,function(s,u){o&&Ase(o.t,s)===u||lR(r,s,t(u))}),i===3?new Set(r):r}(e)}function I3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return lw(e)}function Mse(){function e(i,s){var u=o[i];return u?u.enumerable=s:o[i]=u={configurable:!0,enumerable:s,get:function(){var c=this[Mt];return qf.get(c,i)},set:function(c){var f=this[Mt];qf.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][Mt];if(!u.P)switch(u.i){case 5:r(u)&&Ca(u);break;case 4:n(u)&&Ca(u)}}}function n(i){for(var s=i.t,u=i.k,c=su(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==Mt){var h=s[p];if(h===void 0&&!au(s,p))return!0;var m=u[p],v=m&&m[Mt];if(v?v.t!==h:!uR(m,h))return!0}}var y=!!s[Mt];return c.length!==su(s).length+(y?0:1)}function r(i){var s=i.k;if(s.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c<s.length;c++)if(!s.hasOwnProperty(c))return!0;return!1}var o={};Ise("ES5",{J:function(i,s){var u=Array.isArray(i),c=function(p,h){if(p){for(var m=Array(h.length),v=0;v<h.length;v++)Object.defineProperty(m,""+v,e(v,!0));return m}var y=fR(h);delete y[Mt];for(var x=su(y),E=0;E<x.length;E++){var w=x[E];y[w]=e(w,p||!!y[w].enumerable)}return Object.create(Object.getPrototypeOf(h),y)}(u,i),f={i:u?5:4,A:s?s.A:m2(),P:!1,I:!1,D:{},l:s,t:i,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,Mt,{value:f,writable:!0}),c},S:function(i,s,u){u?qa(s)&&s[Mt].A===i&&t(i.p):(i.u&&function c(f){if(f&&typeof f=="object"){var p=f[Mt];if(p){var h=p.t,m=p.k,v=p.D,y=p.i;if(y===4)Vs(m,function(_){_!==Mt&&(h[_]!==void 0||au(h,_)?v[_]||c(m[_]):(v[_]=!0,Ca(p)))}),Vs(h,function(_){m[_]!==void 0||au(m,_)||(v[_]=!1,Ca(p))});else if(y===5){if(r(p)&&(Ca(p),v.length=!0),m.length<h.length)for(var x=m.length;x<h.length;x++)v[x]=!1;else for(var E=h.length;E<m.length;E++)v[E]=!0;for(var w=Math.min(m.length,h.length),b=0;b<w;b++)m.hasOwnProperty(b)||(v[b]=!0),v[b]===void 0&&c(m[b])}}}}(i.p[0]),t(i.p))},K:function(i){return i.i===4?n(i):r(i)}})}var O3,Gf,fw=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nse=typeof Map<"u",Lse=typeof Set<"u",R3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cR=fw?Symbol.for("immer-nothing"):((O3={})["immer-nothing"]=!0,O3),M3=fw?Symbol.for("immer-draftable"):"__$immer_draftable",Mt=fw?Symbol.for("immer-state"):"__$immer_state",Dse=""+Object.prototype.constructor,su=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,fR=Object.getOwnPropertyDescriptors||function(e){var t={};return su(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},y2={},qf={get:function(e,t){if(t===Mt)return e;var n=ys(e);if(!au(n,t))return function(o,i,s){var u,c=T3(i,s);return c?"value"in c?c.value:(u=c.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Yi(r)?r:r===py(e.t,t)?(hy(e),e.o[t]=v2(e.A.h,r,e)):r},has:function(e,t){return t in ys(e)},ownKeys:function(e){return Reflect.ownKeys(ys(e))},set:function(e,t,n){var r=T3(ys(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=py(ys(e),t),i=o?.[Mt];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(uR(n,o)&&(n!==void 0||au(e.t,t)))return!0;hy(e),Ca(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return py(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,hy(e),Ca(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ys(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Eo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Eo(12)}},Rc={};Vs(qf,function(e,t){Rc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Rc.deleteProperty=function(e,t){return Rc.set.call(this,e,t,void 0)},Rc.set=function(e,t,n){return qf.set.call(this,e[0],t,n,e[0])};var Fse=function(){function e(n){var r=this;this.g=R3,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var c=r;return function(x){var E=this;x===void 0&&(x=u);for(var w=arguments.length,b=Array(w>1?w-1:0),_=1;_<w;_++)b[_-1]=arguments[_];return c.produce(x,function(P){var I;return(I=i).call.apply(I,[E,P].concat(b))})}}var f;if(typeof i!="function"&&Eo(6),s!==void 0&&typeof s!="function"&&Eo(7),Yi(o)){var p=P3(r),h=v2(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Y0(p):g2(p)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(x){return fy(p,s),dy(x,p)},function(x){throw Y0(p),x}):(fy(p,s),dy(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===cR&&(f=void 0),r.F&&uw(f,!0),s){var v=[],y=[];oi("Patches").M(o,f,v,y),s(v,y)}return f}Eo(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,u,c=r.produce(o,i,function(f,p){s=f,u=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(f){return[f,s,u]}):[c,s,u]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Yi(n)||Eo(8),qa(n)&&(n=Rse(n));var r=P3(this),o=v2(this,n,void 0);return o[Mt].C=!0,g2(r),o},t.finishDraft=function(n,r){var o=n&&n[Mt],i=o.A;return fy(i,r),dy(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!R3&&Eo(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=oi("Patches").$;return qa(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Fr=new Fse,dR=Fr.produce;Fr.produceWithPatches.bind(Fr);Fr.setAutoFreeze.bind(Fr);Fr.setUseProxies.bind(Fr);Fr.applyPatches.bind(Fr);Fr.createDraft.bind(Fr);Fr.finishDraft.bind(Fr);function N3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function L3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N3(Object(n),!0).forEach(function(r){YI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var D3=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),my=function(){return Math.random().toString(36).substring(7).split("").join(".")},Q0={INIT:"@@redux/INIT"+my(),REPLACE:"@@redux/REPLACE"+my(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+my()}};function $se(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function dw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Bn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Bn(1));return n(dw)(e,t)}if(typeof e!="function")throw new Error(Bn(2));var o=e,i=t,s=[],u=s,c=!1;function f(){u===s&&(u=s.slice())}function p(){if(c)throw new Error(Bn(3));return i}function h(x){if(typeof x!="function")throw new Error(Bn(4));if(c)throw new Error(Bn(5));var E=!0;return f(),u.push(x),function(){if(!!E){if(c)throw new Error(Bn(6));E=!1,f();var b=u.indexOf(x);u.splice(b,1),s=null}}}function m(x){if(!$se(x))throw new Error(Bn(7));if(typeof x.type>"u")throw new Error(Bn(8));if(c)throw new Error(Bn(9));try{c=!0,i=o(i,x)}finally{c=!1}for(var E=s=u,w=0;w<E.length;w++){var b=E[w];b()}return x}function v(x){if(typeof x!="function")throw new Error(Bn(10));o=x,m({type:Q0.REPLACE})}function y(){var x,E=h;return x={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Bn(11));function _(){b.next&&b.next(p())}_();var P=E(_);return{unsubscribe:P}}},x[D3]=function(){return this},x}return m({type:Q0.INIT}),r={dispatch:m,subscribe:h,getState:p,replaceReducer:v},r[D3]=y,r}function Bse(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Q0.INIT});if(typeof r>"u")throw new Error(Bn(12));if(typeof n(void 0,{type:Q0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bn(13))})}function pR(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),s;try{Bse(n)}catch(u){s=u}return function(c,f){if(c===void 0&&(c={}),s)throw s;for(var p=!1,h={},m=0;m<i.length;m++){var v=i[m],y=n[v],x=c[v],E=y(x,f);if(typeof E>"u")throw f&&f.type,new Error(Bn(14));h[v]=E,p=p||E!==x}return p=p||i.length!==Object.keys(c).length,p?h:c}}function J0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function zse(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),i=function(){throw new Error(Bn(15))},s={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},u=t.map(function(c){return c(s)});return i=J0.apply(void 0,u)(o.dispatch),L3(L3({},o),{},{dispatch:i})}}}var em="NOT_FOUND";function Vse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:em},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Wse(e,t){var n=[];function r(u){var c=n.findIndex(function(p){return t(u,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return em}function o(u,c){r(u)===em&&(n.unshift({key:u,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var jse=function(t,n){return t===n};function Use(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function Hse(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?jse:r,i=n.maxSize,s=i===void 0?1:i,u=n.resultEqualityCheck,c=Use(o),f=s===1?Vse(c):Wse(s,c);function p(){var h=f.get(arguments);if(h===em){if(h=e.apply(null,arguments),u){var m=f.getEntries(),v=m.find(function(y){return u(y.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function Gse(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function qse(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var f=0,p,h={memoizeOptions:void 0},m=u.pop();if(typeof m=="object"&&(h=m,m=u.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,y=v.memoizeOptions,x=y===void 0?n:y,E=Array.isArray(x)?x:[x],w=Gse(u),b=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(E)),_=e(function(){for(var I=[],N=w.length,L=0;L<N;L++)I.push(w[L].apply(null,arguments));return p=b.apply(null,I),p});return Object.assign(_,{resultFunc:m,memoizedResultFunc:b,dependencies:w,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),_};return o}var jt=qse(Hse);function hR(e){var t=function(r){var o=r.dispatch,i=r.getState;return function(s){return function(u){return typeof u=="function"?u(o,i,e):s(u)}}};return t}var mR=hR();mR.withExtraArgument=hR;const F3=mR;var Kse=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();globalThis&&globalThis.__generator;var tm=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Yse=Object.defineProperty,$3=Object.getOwnPropertySymbols,Zse=Object.prototype.hasOwnProperty,Xse=Object.prototype.propertyIsEnumerable,B3=function(e,t,n){return t in e?Yse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Kf=function(e,t){for(var n in t||(t={}))Zse.call(t,n)&&B3(e,n,t[n]);if($3)for(var r=0,o=$3(t);r<o.length;r++){var n=o[r];Xse.call(t,n)&&B3(e,n,t[n])}return e},Qse=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J0:J0.apply(null,arguments)};function Jse(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var ele=function(e){Kse(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,tm([void 0],n[0].concat(this)))):new(t.bind.apply(t,tm([void 0],n.concat(this))))},t}(Array);function b2(e){return Yi(e)?dR(e,function(){}):e}function tle(e){return typeof e=="boolean"}function nle(){return function(t){return rle(t)}}function rle(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new ele;return n&&(tle(n)?r.push(F3):r.push(F3.withExtraArgument(n.extraArgument))),r}var ole=!0;function ile(e){var t=nle(),n=e||{},r=n.reducer,o=r===void 0?void 0:r,i=n.middleware,s=i===void 0?t():i,u=n.devTools,c=u===void 0?!0:u,f=n.preloadedState,p=f===void 0?void 0:f,h=n.enhancers,m=h===void 0?void 0:h,v;if(typeof o=="function")v=o;else if(Jse(o))v=pR(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;typeof y=="function"&&(y=y(t));var x=zse.apply(void 0,y),E=J0;c&&(E=Qse(Kf({trace:!ole},typeof c=="object"&&c)));var w=[x];Array.isArray(m)?w=tm([x],m):typeof m=="function"&&(w=m(w));var b=E.apply(void 0,w);return dw(v,p,b)}function er(e,t){function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t){var i=t.apply(void 0,r);if(!i)throw new Error("prepareAction did not return an object");return Kf(Kf({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function gR(e){var t={},n=[],r,o={addCase:function(i,s){var u=typeof i=="string"?i:i.type;if(u in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[u]=s,o},addMatcher:function(i,s){return n.push({matcher:i,reducer:s}),o},addDefaultCase:function(i){return r=i,o}};return e(o),[t,n,r]}function ale(e){return typeof e=="function"}function sle(e,t,n,r){n===void 0&&(n=[]);var o=typeof t=="function"?gR(t):[t,n,r],i=o[0],s=o[1],u=o[2],c;if(ale(e))c=function(){return b2(e())};else{var f=b2(e);c=function(){return f}}function p(h,m){h===void 0&&(h=c());var v=tm([i[m.type]],s.filter(function(y){var x=y.matcher;return x(m)}).map(function(y){var x=y.reducer;return x}));return v.filter(function(y){return!!y}).length===0&&(v=[u]),v.reduce(function(y,x){if(x)if(qa(y)){var E=y,w=x(E,m);return w===void 0?y:w}else{if(Yi(y))return dR(y,function(b){return x(b,m)});var w=x(y,m);if(w===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return y},h)}return p.getInitialState=c,p}function lle(e,t){return e+"/"+t}function pw(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:b2(e.initialState),r=e.reducers||{},o=Object.keys(r),i={},s={},u={};o.forEach(function(p){var h=r[p],m=lle(t,p),v,y;"reducer"in h?(v=h.reducer,y=h.prepare):v=h,i[p]=v,s[m]=v,u[p]=y?er(m,y):er(m)});function c(){var p=typeof e.extraReducers=="function"?gR(e.extraReducers):[e.extraReducers],h=p[0],m=h===void 0?{}:h,v=p[1],y=v===void 0?[]:v,x=p[2],E=x===void 0?void 0:x,w=Kf(Kf({},m),s);return sle(n,w,y,E)}var f;return{name:t,reducer:function(p,h){return f||(f=c()),f(p,h)},actions:u,caseReducers:i,getInitialState:function(){return f||(f=c()),f.getInitialState()}}}var hw="listenerMiddleware";er(hw+"/add");er(hw+"/removeAll");er(hw+"/remove");Mse();var vR={exports:{}},yR={};/**
|
|
* @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 Cu=C.exports;function ule(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cle=typeof Object.is=="function"?Object.is:ule,fle=Cu.useState,dle=Cu.useEffect,ple=Cu.useLayoutEffect,hle=Cu.useDebugValue;function mle(e,t){var n=t(),r=fle({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ple(function(){o.value=n,o.getSnapshot=t,gy(o)&&i({inst:o})},[e,n,t]),dle(function(){return gy(o)&&i({inst:o}),e(function(){gy(o)&&i({inst:o})})},[e]),hle(n),n}function gy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cle(e,n)}catch{return!0}}function gle(e,t){return t()}var vle=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gle:mle;yR.useSyncExternalStore=Cu.useSyncExternalStore!==void 0?Cu.useSyncExternalStore:vle;(function(e){e.exports=yR})(vR);var bR={exports:{}},xR={};/**
|
|
* @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 pg=C.exports,yle=vR.exports;function ble(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xle=typeof Object.is=="function"?Object.is:ble,Sle=yle.useSyncExternalStore,wle=pg.useRef,Cle=pg.useEffect,_le=pg.useMemo,kle=pg.useDebugValue;xR.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=wle(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=_le(function(){function c(v){if(!f){if(f=!0,p=v,v=r(v),o!==void 0&&s.hasValue){var y=s.value;if(o(y,v))return h=y}return h=v}if(y=h,xle(p,v))return y;var x=r(v);return o!==void 0&&o(y,x)?y:(p=v,h=x)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var u=Sle(e,i[0],i[1]);return Cle(function(){s.hasValue=!0,s.value=u},[u]),kle(u),u};(function(e){e.exports=xR})(bR);function Ele(e){e()}let SR=Ele;const Ple=e=>SR=e,Ale=()=>SR,Ka=J.createContext(null);function wR(){return C.exports.useContext(Ka)}const Tle=()=>{throw new Error("uSES not initialized!")};let CR=Tle;const Ile=e=>{CR=e},Ole=(e,t)=>e===t;function Rle(e=Ka){const t=e===Ka?wR:()=>C.exports.useContext(e);return function(r,o=Ole){const{store:i,subscription:s,getServerState:u}=t(),c=CR(s.addNestedSub,i.getState,u||i.getState,r,o);return C.exports.useDebugValue(c),c}}const Mle=Rle();var Nle={exports:{}},vt={};/**
|
|
* @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 mw=Symbol.for("react.element"),gw=Symbol.for("react.portal"),hg=Symbol.for("react.fragment"),mg=Symbol.for("react.strict_mode"),gg=Symbol.for("react.profiler"),vg=Symbol.for("react.provider"),yg=Symbol.for("react.context"),Lle=Symbol.for("react.server_context"),bg=Symbol.for("react.forward_ref"),xg=Symbol.for("react.suspense"),Sg=Symbol.for("react.suspense_list"),wg=Symbol.for("react.memo"),Cg=Symbol.for("react.lazy"),Dle=Symbol.for("react.offscreen"),_R;_R=Symbol.for("react.module.reference");function uo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mw:switch(e=e.type,e){case hg:case gg:case mg:case xg:case Sg:return e;default:switch(e=e&&e.$$typeof,e){case Lle:case yg:case bg:case Cg:case wg:case vg:return e;default:return t}}case gw:return t}}}vt.ContextConsumer=yg;vt.ContextProvider=vg;vt.Element=mw;vt.ForwardRef=bg;vt.Fragment=hg;vt.Lazy=Cg;vt.Memo=wg;vt.Portal=gw;vt.Profiler=gg;vt.StrictMode=mg;vt.Suspense=xg;vt.SuspenseList=Sg;vt.isAsyncMode=function(){return!1};vt.isConcurrentMode=function(){return!1};vt.isContextConsumer=function(e){return uo(e)===yg};vt.isContextProvider=function(e){return uo(e)===vg};vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mw};vt.isForwardRef=function(e){return uo(e)===bg};vt.isFragment=function(e){return uo(e)===hg};vt.isLazy=function(e){return uo(e)===Cg};vt.isMemo=function(e){return uo(e)===wg};vt.isPortal=function(e){return uo(e)===gw};vt.isProfiler=function(e){return uo(e)===gg};vt.isStrictMode=function(e){return uo(e)===mg};vt.isSuspense=function(e){return uo(e)===xg};vt.isSuspenseList=function(e){return uo(e)===Sg};vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hg||e===gg||e===mg||e===xg||e===Sg||e===Dle||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===wg||e.$$typeof===vg||e.$$typeof===yg||e.$$typeof===bg||e.$$typeof===_R||e.getModuleId!==void 0)};vt.typeOf=uo;(function(e){e.exports=vt})(Nle);function Fle(){const e=Ale();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const z3={notify(){},get:()=>[]};function $le(e,t){let n,r=z3;function o(h){return c(),r.subscribe(h)}function i(){r.notify()}function s(){p.onStateChange&&p.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Fle())}function f(){n&&(n(),n=void 0,r.clear(),r=z3)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const Ble=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zle=Ble?C.exports.useLayoutEffect:C.exports.useEffect;function Vle({store:e,context:t,children:n,serverState:r}){const o=C.exports.useMemo(()=>{const u=$le(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=C.exports.useMemo(()=>e.getState(),[e]);return zle(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),S((t||Ka).Provider,{value:o,children:n})}function kR(e=Ka){const t=e===Ka?wR:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Wle=kR();function jle(e=Ka){const t=e===Ka?Wle:kR(e);return function(){return t().dispatch}}const Ule=jle();Ile(bR.exports.useSyncExternalStoreWithSelector);Ple(Qf.exports.unstable_batchedUpdates);var vw="persist:",ER="persist/FLUSH",yw="persist/REHYDRATE",PR="persist/PAUSE",AR="persist/PERSIST",TR="persist/PURGE",IR="persist/REGISTER",Hle=-1;function jh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jh=function(n){return typeof n}:jh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jh(e)}function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V3(n,!0).forEach(function(r){qle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V3(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kle(e,t,n,r){r.debug;var o=Gle({},n);return e&&jh(e)==="object"&&Object.keys(e).forEach(function(i){i!=="_persist"&&t[i]===n[i]&&(o[i]=e[i])}),o}function Yle(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:vw).concat(e.key),s=e.storage,u;e.serialize===!1?u=function(I){return I}:typeof e.serialize=="function"?u=e.serialize:u=Zle;var c=e.writeFailHandler||null,f={},p={},h=[],m=null,v=null,y=function(I){Object.keys(I).forEach(function(N){!w(N)||f[N]!==I[N]&&h.indexOf(N)===-1&&h.push(N)}),Object.keys(f).forEach(function(N){I[N]===void 0&&w(N)&&h.indexOf(N)===-1&&f[N]!==void 0&&h.push(N)}),m===null&&(m=setInterval(x,o)),f=I};function x(){if(h.length===0){m&&clearInterval(m),m=null;return}var P=h.shift(),I=r.reduce(function(N,L){return L.in(N,P,f)},f[P]);if(I!==void 0)try{p[P]=u(I)}catch(N){console.error("redux-persist/createPersistoid: error serializing state",N)}else delete p[P];h.length===0&&E()}function E(){Object.keys(p).forEach(function(P){f[P]===void 0&&delete p[P]}),v=s.setItem(i,u(p)).catch(b)}function w(P){return!(n&&n.indexOf(P)===-1&&P!=="_persist"||t&&t.indexOf(P)!==-1)}function b(P){c&&c(P)}var _=function(){for(;h.length!==0;)x();return v||Promise.resolve()};return{update:y,flush:_}}function Zle(e){return JSON.stringify(e)}function Xle(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:vw).concat(e.key),r=e.storage;e.debug;var o;return e.deserialize===!1?o=function(s){return s}:typeof e.deserialize=="function"?o=e.deserialize:o=Qle,r.getItem(n).then(function(i){if(i)try{var s={},u=o(i);return Object.keys(u).forEach(function(c){s[c]=t.reduceRight(function(f,p){return p.out(f,c,u)},o(u[c]))}),s}catch(c){throw c}else return})}function Qle(e){return JSON.parse(e)}function Jle(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:vw).concat(e.key);return t.removeItem(n,eue)}function eue(e){}function W3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W3(n,!0).forEach(function(r){tue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W3(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e,t){if(e==null)return{};var n=rue(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function rue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var oue=5e3;function OR(e,t){var n=e.version!==void 0?e.version:Hle;e.debug;var r=e.stateReconciler===void 0?Kle:e.stateReconciler,o=e.getStoredState||Xle,i=e.timeout!==void 0?e.timeout:oue,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},v=m._persist,y=nue(m,["_persist"]),x=y;if(h.type===AR){var E=!1,w=function(z,K){E||(h.rehydrate(e.key,z,K),E=!0)};if(i&&setTimeout(function(){!E&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=Yle(e)),v)return Pi({},t(x,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(L){var z=e.migrate||function(K,W){return Promise.resolve(K)};z(L,n).then(function(K){w(K)},function(K){w(void 0,K)})},function(L){w(void 0,L)}),Pi({},t(x,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===TR)return u=!0,h.result(Jle(e)),Pi({},t(x,h),{_persist:v});if(h.type===ER)return h.result(s&&s.flush()),Pi({},t(x,h),{_persist:v});if(h.type===PR)c=!0;else if(h.type===yw){if(u)return Pi({},x,{_persist:Pi({},v,{rehydrated:!0})});if(h.key===e.key){var b=t(x,h),_=h.payload,P=r!==!1&&_!==void 0?r(_,p,b,e):b,I=Pi({},P,{_persist:Pi({},v,{rehydrated:!0})});return f(I)}}}if(!v)return t(p,h);var N=t(x,h);return N===x?p:f(Pi({},N,{_persist:v}))}}function j3(e){return sue(e)||aue(e)||iue()}function iue(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aue(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sue(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function U3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function x2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U3(n,!0).forEach(function(r){lue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U3(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RR={registry:[],bootstrapped:!1},uue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RR,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case IR:return x2({},t,{registry:[].concat(j3(t.registry),[n.key])});case yw:var r=t.registry.indexOf(n.key),o=j3(t.registry);return o.splice(r,1),x2({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function cue(e,t,n){var r=n||!1,o=dw(uue,RR,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:IR,key:f})},s=function(f,p,h){var m={type:yw,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=x2({},o,{purge:function(){var f=[];return e.dispatch({type:TR,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:ER,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:PR})},persist:function(){e.dispatch({type:AR,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var bw={},xw={};xw.__esModule=!0;xw.default=pue;function Uh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uh=function(n){return typeof n}:Uh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uh(e)}function vy(){}var fue={getItem:vy,setItem:vy,removeItem:vy};function due(e){if((typeof self>"u"?"undefined":Uh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function pue(e){var t="".concat(e,"Storage");return due(t)?self[t]:fue}bw.__esModule=!0;bw.default=gue;var hue=mue(xw);function mue(e){return e&&e.__esModule?e:{default:e}}function gue(e){var t=(0,hue.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,s){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var Sw=void 0,vue=yue(bw);function yue(e){return e&&e.__esModule?e:{default:e}}var bue=(0,vue.default)("local");Sw=bue;const S2=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),xue=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>({seed:parseInt(o[0]),weight:parseFloat(o[1])}));return ww(r)?r:!1},ww=e=>Boolean(typeof e=="string"?xue(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),w2=e=>e.reduce((t,n,r,o)=>{const{seed:i,weight:s}=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""),Sue=e=>e.split(",").map(r=>r.split(":")).map(r=>[parseInt(r[0]),parseFloat(r[1])]),MR={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},wue=MR,NR=pw({name:"options",initialState:wue,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=S2(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,o={...e,[n]:r};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&r===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{type:n,postprocessing:r,sampler:o,prompt:i,seed:s,variations:u,steps:c,cfg_scale:f,threshold:p,perlin:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:w,mask_image_path:b}=t.payload.image;n==="img2img"?(w&&(e.initialImagePath=w),b&&(e.maskPath=b),x&&(e.img2imgStrength=x),typeof E=="boolean"&&(e.shouldFitToWidthHeight=E),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,u&&u.length>0?(e.seedWeights=w2(u),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1);let _=["gfpgan","esrgan"];r&&r.length>0&&r.forEach(P=>{if(P.type==="gfpgan"){const{strength:I}=P;I&&(e.gfpganStrength=I),e.shouldRunGFPGAN=!0,_=_.filter(N=>N!=="gfpgan")}if(P.type==="esrgan"){const{scale:I,strength:N}=P;I&&(e.upscalingLevel=I),N&&(e.upscalingStrength=N),e.shouldRunESRGAN=!0,_=_.filter(L=>L!=="esrgan")}}),_.forEach(P=>{P==="esrgan"&&(e.shouldRunESRGAN=!1),P==="gfpgan"&&(e.shouldRunGFPGAN=!1)}),i&&(e.prompt=S2(i)),o&&(e.sampler=o),c&&(e.steps=c),f&&(e.cfgScale=f),p&&(e.threshold=p),h&&(e.perlin=h),typeof m=="boolean"&&(e.seamless=m),v&&(e.width=v),y&&(e.height=y)},resetOptionsState:e=>({...e,...MR}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:LR,setIterations:Cue,setSteps:DR,setCfgScale:FR,setThreshold:_ue,setPerlin:kue,setHeight:$R,setWidth:C2,setSampler:BR,setSeed:Yf,setSeamless:Eue,setImg2imgStrength:zR,setGfpganStrength:_2,setUpscalingLevel:k2,setUpscalingStrength:E2,setShouldUseInitImage:Pue,setInitialImagePath:_g,setMaskPath:Cw,resetSeed:_pe,resetOptionsState:kpe,setShouldFitToWidthHeight:VR,setParameter:Epe,setShouldGenerateVariations:Aue,setSeedWeights:WR,setVariationAmount:Tue,setAllParameters:jR,setShouldRunGFPGAN:Iue,setShouldRunESRGAN:Oue,setShouldRandomizeSeed:Rue}=NR.actions,Mue=NR.reducer;var Yt={exports:{}};/**
|
|
* @license
|
|
* Lodash <https://lodash.com/>
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
* Released under MIT license <https://lodash.com/license>
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
*/(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,y=1,x=2,E=1,w=2,b=4,_=8,P=16,I=32,N=64,L=128,z=256,K=512,W=30,te="...",be=800,_e=16,ye=1,Ce=2,ae=3,ke=1/0,j=9007199254740991,Y=17976931348623157e292,q=0/0,R=4294967295,U=R-1,se=R>>>1,ue=[["ary",L],["bind",E],["bindKey",w],["curry",_],["curryRight",P],["flip",K],["partial",I],["partialRight",N],["rearg",z]],he="[object Arguments]",me="[object Array]",Pe="[object AsyncFunction]",fe="[object Boolean]",Se="[object Date]",Le="[object DOMException]",at="[object Error]",At="[object Function]",hn="[object GeneratorFunction]",ge="[object Map]",Ie="[object Number]",et="[object Null]",De="[object Object]",Dt="[object Promise]",mn="[object Proxy]",st="[object RegExp]",wt="[object Set]",Xt="[object String]",Ut="[object Symbol]",de="[object Undefined]",Ee="[object WeakMap]",ft="[object WeakSet]",lt="[object ArrayBuffer]",re="[object DataView]",He="[object Float32Array]",kt="[object Float64Array]",wn="[object Int8Array]",Mn="[object Int16Array]",wr="[object Int32Array]",Mo="[object Uint8Array]",ci="[object Uint8ClampedArray]",jn="[object Uint16Array]",Vr="[object Uint32Array]",es=/\b__p \+= '';/g,Zs=/\b(__p \+=) '' \+/g,Eg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lu=/&(?:amp|lt|gt|quot|#39);/g,Qi=/[&<>"']/g,Pg=RegExp(Lu.source),fi=RegExp(Qi.source),Ag=/<%-([\s\S]+?)%>/g,Tg=/<%([\s\S]+?)%>/g,wd=/<%=([\s\S]+?)%>/g,Ig=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/,co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Du=/[\\^$.*+?()[\]{}|]/g,Rg=RegExp(Du.source),Fu=/^\s+/,Mg=/\s/,Ng=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ji=/\{\n\/\* \[wrapped with (.+)\] \*/,Lg=/,? & /,Dg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fg=/[()=,{}\[\]\/\s]/,$g=/\\(\\)?/g,Bg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,di=/\w*$/,zg=/^[-+]0x[0-9a-f]+$/i,Vg=/^0b[01]+$/i,Wg=/^\[object .+?Constructor\]$/,jg=/^0o[0-7]+$/i,Ug=/^(?:0|[1-9]\d*)$/,Hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ea=/($^)/,Gg=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",$u="\\u0300-\\u036f",qg="\\ufe20-\\ufe2f",Xs="\\u20d0-\\u20ff",Bu=$u+qg+Xs,Cd="\\u2700-\\u27bf",_d="a-z\\xdf-\\xf6\\xf8-\\xff",Kg="\\xac\\xb1\\xd7\\xf7",kd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yg="\\u2000-\\u206f",Zg=" \\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",Ed="A-Z\\xc0-\\xd6\\xd8-\\xde",Pd="\\ufe0e\\ufe0f",Ad=Kg+kd+Yg+Zg,zu="['\u2019]",Xg="["+pi+"]",Td="["+Ad+"]",Qs="["+Bu+"]",Id="\\d+",Js="["+Cd+"]",el="["+_d+"]",Od="[^"+pi+Ad+Id+Cd+_d+Ed+"]",Vu="\\ud83c[\\udffb-\\udfff]",Rd="(?:"+Qs+"|"+Vu+")",Md="[^"+pi+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",ju="[\\ud800-\\udbff][\\udc00-\\udfff]",hi="["+Ed+"]",Nd="\\u200d",Ld="(?:"+el+"|"+Od+")",Qg="(?:"+hi+"|"+Od+")",tl="(?:"+zu+"(?:d|ll|m|re|s|t|ve))?",Dd="(?:"+zu+"(?:D|LL|M|RE|S|T|VE))?",Fd=Rd+"?",$d="["+Pd+"]?",nl="(?:"+Nd+"(?:"+[Md,Wu,ju].join("|")+")"+$d+Fd+")*",Uu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rl=$d+Fd+nl,Jg="(?:"+[Js,Wu,ju].join("|")+")"+rl,Bd="(?:"+[Md+Qs+"?",Qs,Wu,ju,Xg].join("|")+")",Gu=RegExp(zu,"g"),zd=RegExp(Qs,"g"),fo=RegExp(Vu+"(?="+Vu+")|"+Bd+rl,"g"),ts=RegExp([hi+"?"+el+"+"+tl+"(?="+[Td,hi,"$"].join("|")+")",Qg+"+"+Dd+"(?="+[Td,hi+Ld,"$"].join("|")+")",hi+"?"+Ld+"+"+tl,hi+"+"+Dd,Hu,Uu,Id,Jg].join("|"),"g"),ev=RegExp("["+Nd+pi+Bu+Pd+"]"),Vd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tv=["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"],Wd=-1,Ct={};Ct[He]=Ct[kt]=Ct[wn]=Ct[Mn]=Ct[wr]=Ct[Mo]=Ct[ci]=Ct[jn]=Ct[Vr]=!0,Ct[he]=Ct[me]=Ct[lt]=Ct[fe]=Ct[re]=Ct[Se]=Ct[at]=Ct[At]=Ct[ge]=Ct[Ie]=Ct[De]=Ct[st]=Ct[wt]=Ct[Xt]=Ct[Ee]=!1;var yt={};yt[he]=yt[me]=yt[lt]=yt[re]=yt[fe]=yt[Se]=yt[He]=yt[kt]=yt[wn]=yt[Mn]=yt[wr]=yt[ge]=yt[Ie]=yt[De]=yt[st]=yt[wt]=yt[Xt]=yt[Ut]=yt[Mo]=yt[ci]=yt[jn]=yt[Vr]=!0,yt[at]=yt[At]=yt[Ee]=!1;var jd={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},nv={"&":"&","<":"<",">":">",'"':""","'":"'"},O={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},H=parseFloat,ve=parseInt,Ge=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,dt=typeof self=="object"&&self&&self.Object===Object&&self,Be=Ge||dt||Function("return this")(),je=t&&!t.nodeType&&t,tt=je&&!0&&e&&!e.nodeType&&e,Un=tt&&tt.exports===je,Cn=Un&&Ge.process,gn=function(){try{var B=tt&&tt.require&&tt.require("util").types;return B||Cn&&Cn.binding&&Cn.binding("util")}catch{}}(),ol=gn&&gn.isArrayBuffer,il=gn&&gn.isDate,qu=gn&&gn.isMap,Pw=gn&&gn.isRegExp,Aw=gn&&gn.isSet,Tw=gn&&gn.isTypedArray;function Cr(B,Z,G){switch(G.length){case 0:return B.call(Z);case 1:return B.call(Z,G[0]);case 2:return B.call(Z,G[0],G[1]);case 3:return B.call(Z,G[0],G[1],G[2])}return B.apply(Z,G)}function O8(B,Z,G,xe){for(var Fe=-1,nt=B==null?0:B.length;++Fe<nt;){var un=B[Fe];Z(xe,un,G(un),B)}return xe}function Wr(B,Z){for(var G=-1,xe=B==null?0:B.length;++G<xe&&Z(B[G],G,B)!==!1;);return B}function R8(B,Z){for(var G=B==null?0:B.length;G--&&Z(B[G],G,B)!==!1;);return B}function Iw(B,Z){for(var G=-1,xe=B==null?0:B.length;++G<xe;)if(!Z(B[G],G,B))return!1;return!0}function ta(B,Z){for(var G=-1,xe=B==null?0:B.length,Fe=0,nt=[];++G<xe;){var un=B[G];Z(un,G,B)&&(nt[Fe++]=un)}return nt}function Ud(B,Z){var G=B==null?0:B.length;return!!G&&al(B,Z,0)>-1}function rv(B,Z,G){for(var xe=-1,Fe=B==null?0:B.length;++xe<Fe;)if(G(Z,B[xe]))return!0;return!1}function Rt(B,Z){for(var G=-1,xe=B==null?0:B.length,Fe=Array(xe);++G<xe;)Fe[G]=Z(B[G],G,B);return Fe}function na(B,Z){for(var G=-1,xe=Z.length,Fe=B.length;++G<xe;)B[Fe+G]=Z[G];return B}function ov(B,Z,G,xe){var Fe=-1,nt=B==null?0:B.length;for(xe&&nt&&(G=B[++Fe]);++Fe<nt;)G=Z(G,B[Fe],Fe,B);return G}function M8(B,Z,G,xe){var Fe=B==null?0:B.length;for(xe&&Fe&&(G=B[--Fe]);Fe--;)G=Z(G,B[Fe],Fe,B);return G}function iv(B,Z){for(var G=-1,xe=B==null?0:B.length;++G<xe;)if(Z(B[G],G,B))return!0;return!1}var N8=av("length");function L8(B){return B.split("")}function D8(B){return B.match(Dg)||[]}function Ow(B,Z,G){var xe;return G(B,function(Fe,nt,un){if(Z(Fe,nt,un))return xe=nt,!1}),xe}function Hd(B,Z,G,xe){for(var Fe=B.length,nt=G+(xe?1:-1);xe?nt--:++nt<Fe;)if(Z(B[nt],nt,B))return nt;return-1}function al(B,Z,G){return Z===Z?K8(B,Z,G):Hd(B,Rw,G)}function F8(B,Z,G,xe){for(var Fe=G-1,nt=B.length;++Fe<nt;)if(xe(B[Fe],Z))return Fe;return-1}function Rw(B){return B!==B}function Mw(B,Z){var G=B==null?0:B.length;return G?lv(B,Z)/G:q}function av(B){return function(Z){return Z==null?n:Z[B]}}function sv(B){return function(Z){return B==null?n:B[Z]}}function Nw(B,Z,G,xe,Fe){return Fe(B,function(nt,un,_t){G=xe?(xe=!1,nt):Z(G,nt,un,_t)}),G}function $8(B,Z){var G=B.length;for(B.sort(Z);G--;)B[G]=B[G].value;return B}function lv(B,Z){for(var G,xe=-1,Fe=B.length;++xe<Fe;){var nt=Z(B[xe]);nt!==n&&(G=G===n?nt:G+nt)}return G}function uv(B,Z){for(var G=-1,xe=Array(B);++G<B;)xe[G]=Z(G);return xe}function B8(B,Z){return Rt(Z,function(G){return[G,B[G]]})}function Lw(B){return B&&B.slice(0,Bw(B)+1).replace(Fu,"")}function _r(B){return function(Z){return B(Z)}}function cv(B,Z){return Rt(Z,function(G){return B[G]})}function Ku(B,Z){return B.has(Z)}function Dw(B,Z){for(var G=-1,xe=B.length;++G<xe&&al(Z,B[G],0)>-1;);return G}function Fw(B,Z){for(var G=B.length;G--&&al(Z,B[G],0)>-1;);return G}function z8(B,Z){for(var G=B.length,xe=0;G--;)B[G]===Z&&++xe;return xe}var V8=sv(jd),W8=sv(nv);function j8(B){return"\\"+F[B]}function U8(B,Z){return B==null?n:B[Z]}function sl(B){return ev.test(B)}function H8(B){return Vd.test(B)}function G8(B){for(var Z,G=[];!(Z=B.next()).done;)G.push(Z.value);return G}function fv(B){var Z=-1,G=Array(B.size);return B.forEach(function(xe,Fe){G[++Z]=[Fe,xe]}),G}function $w(B,Z){return function(G){return B(Z(G))}}function ra(B,Z){for(var G=-1,xe=B.length,Fe=0,nt=[];++G<xe;){var un=B[G];(un===Z||un===p)&&(B[G]=p,nt[Fe++]=G)}return nt}function Gd(B){var Z=-1,G=Array(B.size);return B.forEach(function(xe){G[++Z]=xe}),G}function q8(B){var Z=-1,G=Array(B.size);return B.forEach(function(xe){G[++Z]=[xe,xe]}),G}function K8(B,Z,G){for(var xe=G-1,Fe=B.length;++xe<Fe;)if(B[xe]===Z)return xe;return-1}function Y8(B,Z,G){for(var xe=G+1;xe--;)if(B[xe]===Z)return xe;return xe}function ll(B){return sl(B)?X8(B):N8(B)}function po(B){return sl(B)?Q8(B):L8(B)}function Bw(B){for(var Z=B.length;Z--&&Mg.test(B.charAt(Z)););return Z}var Z8=sv(O);function X8(B){for(var Z=fo.lastIndex=0;fo.test(B);)++Z;return Z}function Q8(B){return B.match(fo)||[]}function J8(B){return B.match(ts)||[]}var e9=function B(Z){Z=Z==null?Be:ul.defaults(Be.Object(),Z,ul.pick(Be,tv));var G=Z.Array,xe=Z.Date,Fe=Z.Error,nt=Z.Function,un=Z.Math,_t=Z.Object,dv=Z.RegExp,t9=Z.String,jr=Z.TypeError,qd=G.prototype,n9=nt.prototype,cl=_t.prototype,Kd=Z["__core-js_shared__"],Yd=n9.toString,pt=cl.hasOwnProperty,r9=0,zw=function(){var a=/[^.]+$/.exec(Kd&&Kd.keys&&Kd.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Zd=cl.toString,o9=Yd.call(_t),i9=Be._,a9=dv("^"+Yd.call(pt).replace(Du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xd=Un?Z.Buffer:n,oa=Z.Symbol,Qd=Z.Uint8Array,Vw=Xd?Xd.allocUnsafe:n,Jd=$w(_t.getPrototypeOf,_t),Ww=_t.create,jw=cl.propertyIsEnumerable,ep=qd.splice,Uw=oa?oa.isConcatSpreadable:n,Yu=oa?oa.iterator:n,ns=oa?oa.toStringTag:n,tp=function(){try{var a=ss(_t,"defineProperty");return a({},"",{}),a}catch{}}(),s9=Z.clearTimeout!==Be.clearTimeout&&Z.clearTimeout,l9=xe&&xe.now!==Be.Date.now&&xe.now,u9=Z.setTimeout!==Be.setTimeout&&Z.setTimeout,np=un.ceil,rp=un.floor,pv=_t.getOwnPropertySymbols,c9=Xd?Xd.isBuffer:n,Hw=Z.isFinite,f9=qd.join,d9=$w(_t.keys,_t),cn=un.max,Nn=un.min,p9=xe.now,h9=Z.parseInt,Gw=un.random,m9=qd.reverse,hv=ss(Z,"DataView"),Zu=ss(Z,"Map"),mv=ss(Z,"Promise"),fl=ss(Z,"Set"),Xu=ss(Z,"WeakMap"),Qu=ss(_t,"create"),op=Xu&&new Xu,dl={},g9=ls(hv),v9=ls(Zu),y9=ls(mv),b9=ls(fl),x9=ls(Xu),ip=oa?oa.prototype:n,Ju=ip?ip.valueOf:n,qw=ip?ip.toString:n;function A(a){if(Ht(a)&&!$e(a)&&!(a instanceof Ke)){if(a instanceof Ur)return a;if(pt.call(a,"__wrapped__"))return K5(a)}return new Ur(a)}var pl=function(){function a(){}return function(l){if(!Ft(l))return{};if(Ww)return Ww(l);a.prototype=l;var d=new a;return a.prototype=n,d}}();function ap(){}function Ur(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}A.templateSettings={escape:Ag,evaluate:Tg,interpolate:wd,variable:"",imports:{_:A}},A.prototype=ap.prototype,A.prototype.constructor=A,Ur.prototype=pl(ap.prototype),Ur.prototype.constructor=Ur;function Ke(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function S9(){var a=new Ke(this.__wrapped__);return a.__actions__=ir(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=ir(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=ir(this.__views__),a}function w9(){if(this.__filtered__){var a=new Ke(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function C9(){var a=this.__wrapped__.value(),l=this.__dir__,d=$e(a),g=l<0,k=d?a.length:0,T=L7(0,k,this.__views__),M=T.start,D=T.end,V=D-M,X=g?D:M-1,Q=this.__iteratees__,oe=Q.length,pe=0,Ae=Nn(V,this.__takeCount__);if(!d||!g&&k==V&&Ae==V)return v5(a,this.__actions__);var Re=[];e:for(;V--&&pe<Ae;){X+=l;for(var Ve=-1,Me=a[X];++Ve<oe;){var qe=Q[Ve],Ze=qe.iteratee,Pr=qe.type,qn=Ze(Me);if(Pr==Ce)Me=qn;else if(!qn){if(Pr==ye)continue e;break e}}Re[pe++]=Me}return Re}Ke.prototype=pl(ap.prototype),Ke.prototype.constructor=Ke;function rs(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function _9(){this.__data__=Qu?Qu(null):{},this.size=0}function k9(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function E9(a){var l=this.__data__;if(Qu){var d=l[a];return d===c?n:d}return pt.call(l,a)?l[a]:n}function P9(a){var l=this.__data__;return Qu?l[a]!==n:pt.call(l,a)}function A9(a,l){var d=this.__data__;return this.size+=this.has(a)?0:1,d[a]=Qu&&l===n?c:l,this}rs.prototype.clear=_9,rs.prototype.delete=k9,rs.prototype.get=E9,rs.prototype.has=P9,rs.prototype.set=A9;function mi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function T9(){this.__data__=[],this.size=0}function I9(a){var l=this.__data__,d=sp(l,a);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():ep.call(l,d,1),--this.size,!0}function O9(a){var l=this.__data__,d=sp(l,a);return d<0?n:l[d][1]}function R9(a){return sp(this.__data__,a)>-1}function M9(a,l){var d=this.__data__,g=sp(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}mi.prototype.clear=T9,mi.prototype.delete=I9,mi.prototype.get=O9,mi.prototype.has=R9,mi.prototype.set=M9;function gi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l<d;){var g=a[l];this.set(g[0],g[1])}}function N9(){this.size=0,this.__data__={hash:new rs,map:new(Zu||mi),string:new rs}}function L9(a){var l=bp(this,a).delete(a);return this.size-=l?1:0,l}function D9(a){return bp(this,a).get(a)}function F9(a){return bp(this,a).has(a)}function $9(a,l){var d=bp(this,a),g=d.size;return d.set(a,l),this.size+=d.size==g?0:1,this}gi.prototype.clear=N9,gi.prototype.delete=L9,gi.prototype.get=D9,gi.prototype.has=F9,gi.prototype.set=$9;function os(a){var l=-1,d=a==null?0:a.length;for(this.__data__=new gi;++l<d;)this.add(a[l])}function B9(a){return this.__data__.set(a,c),this}function z9(a){return this.__data__.has(a)}os.prototype.add=os.prototype.push=B9,os.prototype.has=z9;function ho(a){var l=this.__data__=new mi(a);this.size=l.size}function V9(){this.__data__=new mi,this.size=0}function W9(a){var l=this.__data__,d=l.delete(a);return this.size=l.size,d}function j9(a){return this.__data__.get(a)}function U9(a){return this.__data__.has(a)}function H9(a,l){var d=this.__data__;if(d instanceof mi){var g=d.__data__;if(!Zu||g.length<o-1)return g.push([a,l]),this.size=++d.size,this;d=this.__data__=new gi(g)}return d.set(a,l),this.size=d.size,this}ho.prototype.clear=V9,ho.prototype.delete=W9,ho.prototype.get=j9,ho.prototype.has=U9,ho.prototype.set=H9;function Kw(a,l){var d=$e(a),g=!d&&us(a),k=!d&&!g&&ua(a),T=!d&&!g&&!k&&vl(a),M=d||g||k||T,D=M?uv(a.length,t9):[],V=D.length;for(var X in a)(l||pt.call(a,X))&&!(M&&(X=="length"||k&&(X=="offset"||X=="parent")||T&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||xi(X,V)))&&D.push(X);return D}function Yw(a){var l=a.length;return l?a[Ev(0,l-1)]:n}function G9(a,l){return xp(ir(a),is(l,0,a.length))}function q9(a){return xp(ir(a))}function gv(a,l,d){(d!==n&&!mo(a[l],d)||d===n&&!(l in a))&&vi(a,l,d)}function ec(a,l,d){var g=a[l];(!(pt.call(a,l)&&mo(g,d))||d===n&&!(l in a))&&vi(a,l,d)}function sp(a,l){for(var d=a.length;d--;)if(mo(a[d][0],l))return d;return-1}function K9(a,l,d,g){return ia(a,function(k,T,M){l(g,k,d(k),M)}),g}function Zw(a,l){return a&&Lo(l,vn(l),a)}function Y9(a,l){return a&&Lo(l,sr(l),a)}function vi(a,l,d){l=="__proto__"&&tp?tp(a,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):a[l]=d}function vv(a,l){for(var d=-1,g=l.length,k=G(g),T=a==null;++d<g;)k[d]=T?n:Xv(a,l[d]);return k}function is(a,l,d){return a===a&&(d!==n&&(a=a<=d?a:d),l!==n&&(a=a>=l?a:l)),a}function Hr(a,l,d,g,k,T){var M,D=l&h,V=l&m,X=l&v;if(d&&(M=k?d(a,g,k,T):d(a)),M!==n)return M;if(!Ft(a))return a;var Q=$e(a);if(Q){if(M=F7(a),!D)return ir(a,M)}else{var oe=Ln(a),pe=oe==At||oe==hn;if(ua(a))return x5(a,D);if(oe==De||oe==he||pe&&!k){if(M=V||pe?{}:B5(a),!D)return V?E7(a,Y9(M,a)):k7(a,Zw(M,a))}else{if(!yt[oe])return k?a:{};M=$7(a,oe,D)}}T||(T=new ho);var Ae=T.get(a);if(Ae)return Ae;T.set(a,M),hC(a)?a.forEach(function(Me){M.add(Hr(Me,l,d,Me,a,T))}):dC(a)&&a.forEach(function(Me,qe){M.set(qe,Hr(Me,l,d,qe,a,T))});var Re=X?V?Fv:Dv:V?sr:vn,Ve=Q?n:Re(a);return Wr(Ve||a,function(Me,qe){Ve&&(qe=Me,Me=a[qe]),ec(M,qe,Hr(Me,l,d,qe,a,T))}),M}function Z9(a){var l=vn(a);return function(d){return Xw(d,a,l)}}function Xw(a,l,d){var g=d.length;if(a==null)return!g;for(a=_t(a);g--;){var k=d[g],T=l[k],M=a[k];if(M===n&&!(k in a)||!T(M))return!1}return!0}function Qw(a,l,d){if(typeof a!="function")throw new jr(s);return sc(function(){a.apply(n,d)},l)}function tc(a,l,d,g){var k=-1,T=Ud,M=!0,D=a.length,V=[],X=l.length;if(!D)return V;d&&(l=Rt(l,_r(d))),g?(T=rv,M=!1):l.length>=o&&(T=Ku,M=!1,l=new os(l));e:for(;++k<D;){var Q=a[k],oe=d==null?Q:d(Q);if(Q=g||Q!==0?Q:0,M&&oe===oe){for(var pe=X;pe--;)if(l[pe]===oe)continue e;V.push(Q)}else T(l,oe,g)||V.push(Q)}return V}var ia=k5(No),Jw=k5(bv,!0);function X9(a,l){var d=!0;return ia(a,function(g,k,T){return d=!!l(g,k,T),d}),d}function lp(a,l,d){for(var g=-1,k=a.length;++g<k;){var T=a[g],M=l(T);if(M!=null&&(D===n?M===M&&!Er(M):d(M,D)))var D=M,V=T}return V}function Q9(a,l,d,g){var k=a.length;for(d=ze(d),d<0&&(d=-d>k?0:k+d),g=g===n||g>k?k:ze(g),g<0&&(g+=k),g=d>g?0:gC(g);d<g;)a[d++]=l;return a}function e5(a,l){var d=[];return ia(a,function(g,k,T){l(g,k,T)&&d.push(g)}),d}function _n(a,l,d,g,k){var T=-1,M=a.length;for(d||(d=z7),k||(k=[]);++T<M;){var D=a[T];l>0&&d(D)?l>1?_n(D,l-1,d,g,k):na(k,D):g||(k[k.length]=D)}return k}var yv=E5(),t5=E5(!0);function No(a,l){return a&&yv(a,l,vn)}function bv(a,l){return a&&t5(a,l,vn)}function up(a,l){return ta(l,function(d){return Si(a[d])})}function as(a,l){l=sa(l,a);for(var d=0,g=l.length;a!=null&&d<g;)a=a[Do(l[d++])];return d&&d==g?a:n}function n5(a,l,d){var g=l(a);return $e(a)?g:na(g,d(a))}function Hn(a){return a==null?a===n?de:et:ns&&ns in _t(a)?N7(a):q7(a)}function xv(a,l){return a>l}function J9(a,l){return a!=null&&pt.call(a,l)}function e7(a,l){return a!=null&&l in _t(a)}function t7(a,l,d){return a>=Nn(l,d)&&a<cn(l,d)}function Sv(a,l,d){for(var g=d?rv:Ud,k=a[0].length,T=a.length,M=T,D=G(T),V=1/0,X=[];M--;){var Q=a[M];M&&l&&(Q=Rt(Q,_r(l))),V=Nn(Q.length,V),D[M]=!d&&(l||k>=120&&Q.length>=120)?new os(M&&Q):n}Q=a[0];var oe=-1,pe=D[0];e:for(;++oe<k&&X.length<V;){var Ae=Q[oe],Re=l?l(Ae):Ae;if(Ae=d||Ae!==0?Ae:0,!(pe?Ku(pe,Re):g(X,Re,d))){for(M=T;--M;){var Ve=D[M];if(!(Ve?Ku(Ve,Re):g(a[M],Re,d)))continue e}pe&&pe.push(Re),X.push(Ae)}}return X}function n7(a,l,d,g){return No(a,function(k,T,M){l(g,d(k),T,M)}),g}function nc(a,l,d){l=sa(l,a),a=j5(a,l);var g=a==null?a:a[Do(qr(l))];return g==null?n:Cr(g,a,d)}function r5(a){return Ht(a)&&Hn(a)==he}function r7(a){return Ht(a)&&Hn(a)==lt}function o7(a){return Ht(a)&&Hn(a)==Se}function rc(a,l,d,g,k){return a===l?!0:a==null||l==null||!Ht(a)&&!Ht(l)?a!==a&&l!==l:i7(a,l,d,g,rc,k)}function i7(a,l,d,g,k,T){var M=$e(a),D=$e(l),V=M?me:Ln(a),X=D?me:Ln(l);V=V==he?De:V,X=X==he?De:X;var Q=V==De,oe=X==De,pe=V==X;if(pe&&ua(a)){if(!ua(l))return!1;M=!0,Q=!1}if(pe&&!Q)return T||(T=new ho),M||vl(a)?D5(a,l,d,g,k,T):R7(a,l,V,d,g,k,T);if(!(d&y)){var Ae=Q&&pt.call(a,"__wrapped__"),Re=oe&&pt.call(l,"__wrapped__");if(Ae||Re){var Ve=Ae?a.value():a,Me=Re?l.value():l;return T||(T=new ho),k(Ve,Me,d,g,T)}}return pe?(T||(T=new ho),M7(a,l,d,g,k,T)):!1}function a7(a){return Ht(a)&&Ln(a)==ge}function wv(a,l,d,g){var k=d.length,T=k,M=!g;if(a==null)return!T;for(a=_t(a);k--;){var D=d[k];if(M&&D[2]?D[1]!==a[D[0]]:!(D[0]in a))return!1}for(;++k<T;){D=d[k];var V=D[0],X=a[V],Q=D[1];if(M&&D[2]){if(X===n&&!(V in a))return!1}else{var oe=new ho;if(g)var pe=g(X,Q,V,a,l,oe);if(!(pe===n?rc(Q,X,y|x,g,oe):pe))return!1}}return!0}function o5(a){if(!Ft(a)||W7(a))return!1;var l=Si(a)?a9:Wg;return l.test(ls(a))}function s7(a){return Ht(a)&&Hn(a)==st}function l7(a){return Ht(a)&&Ln(a)==wt}function u7(a){return Ht(a)&&Ep(a.length)&&!!Ct[Hn(a)]}function i5(a){return typeof a=="function"?a:a==null?lr:typeof a=="object"?$e(a)?l5(a[0],a[1]):s5(a):PC(a)}function Cv(a){if(!ac(a))return d9(a);var l=[];for(var d in _t(a))pt.call(a,d)&&d!="constructor"&&l.push(d);return l}function c7(a){if(!Ft(a))return G7(a);var l=ac(a),d=[];for(var g in a)g=="constructor"&&(l||!pt.call(a,g))||d.push(g);return d}function _v(a,l){return a<l}function a5(a,l){var d=-1,g=ar(a)?G(a.length):[];return ia(a,function(k,T,M){g[++d]=l(k,T,M)}),g}function s5(a){var l=Bv(a);return l.length==1&&l[0][2]?V5(l[0][0],l[0][1]):function(d){return d===a||wv(d,a,l)}}function l5(a,l){return Vv(a)&&z5(l)?V5(Do(a),l):function(d){var g=Xv(d,a);return g===n&&g===l?Qv(d,a):rc(l,g,y|x)}}function cp(a,l,d,g,k){a!==l&&yv(l,function(T,M){if(k||(k=new ho),Ft(T))f7(a,l,M,d,cp,g,k);else{var D=g?g(jv(a,M),T,M+"",a,l,k):n;D===n&&(D=T),gv(a,M,D)}},sr)}function f7(a,l,d,g,k,T,M){var D=jv(a,d),V=jv(l,d),X=M.get(V);if(X){gv(a,d,X);return}var Q=T?T(D,V,d+"",a,l,M):n,oe=Q===n;if(oe){var pe=$e(V),Ae=!pe&&ua(V),Re=!pe&&!Ae&&vl(V);Q=V,pe||Ae||Re?$e(D)?Q=D:Qt(D)?Q=ir(D):Ae?(oe=!1,Q=x5(V,!0)):Re?(oe=!1,Q=S5(V,!0)):Q=[]:lc(V)||us(V)?(Q=D,us(D)?Q=vC(D):(!Ft(D)||Si(D))&&(Q=B5(V))):oe=!1}oe&&(M.set(V,Q),k(Q,V,g,T,M),M.delete(V)),gv(a,d,Q)}function u5(a,l){var d=a.length;if(!!d)return l+=l<0?d:0,xi(l,d)?a[l]:n}function c5(a,l,d){l.length?l=Rt(l,function(T){return $e(T)?function(M){return as(M,T.length===1?T[0]:T)}:T}):l=[lr];var g=-1;l=Rt(l,_r(Oe()));var k=a5(a,function(T,M,D){var V=Rt(l,function(X){return X(T)});return{criteria:V,index:++g,value:T}});return $8(k,function(T,M){return _7(T,M,d)})}function d7(a,l){return f5(a,l,function(d,g){return Qv(a,g)})}function f5(a,l,d){for(var g=-1,k=l.length,T={};++g<k;){var M=l[g],D=as(a,M);d(D,M)&&oc(T,sa(M,a),D)}return T}function p7(a){return function(l){return as(l,a)}}function kv(a,l,d,g){var k=g?F8:al,T=-1,M=l.length,D=a;for(a===l&&(l=ir(l)),d&&(D=Rt(a,_r(d)));++T<M;)for(var V=0,X=l[T],Q=d?d(X):X;(V=k(D,Q,V,g))>-1;)D!==a&&ep.call(D,V,1),ep.call(a,V,1);return a}function d5(a,l){for(var d=a?l.length:0,g=d-1;d--;){var k=l[d];if(d==g||k!==T){var T=k;xi(k)?ep.call(a,k,1):Tv(a,k)}}return a}function Ev(a,l){return a+rp(Gw()*(l-a+1))}function h7(a,l,d,g){for(var k=-1,T=cn(np((l-a)/(d||1)),0),M=G(T);T--;)M[g?T:++k]=a,a+=d;return M}function Pv(a,l){var d="";if(!a||l<1||l>j)return d;do l%2&&(d+=a),l=rp(l/2),l&&(a+=a);while(l);return d}function Ue(a,l){return Uv(W5(a,l,lr),a+"")}function m7(a){return Yw(yl(a))}function g7(a,l){var d=yl(a);return xp(d,is(l,0,d.length))}function oc(a,l,d,g){if(!Ft(a))return a;l=sa(l,a);for(var k=-1,T=l.length,M=T-1,D=a;D!=null&&++k<T;){var V=Do(l[k]),X=d;if(V==="__proto__"||V==="constructor"||V==="prototype")return a;if(k!=M){var Q=D[V];X=g?g(Q,V,D):n,X===n&&(X=Ft(Q)?Q:xi(l[k+1])?[]:{})}ec(D,V,X),D=D[V]}return a}var p5=op?function(a,l){return op.set(a,l),a}:lr,v7=tp?function(a,l){return tp(a,"toString",{configurable:!0,enumerable:!1,value:e1(l),writable:!0})}:lr;function y7(a){return xp(yl(a))}function Gr(a,l,d){var g=-1,k=a.length;l<0&&(l=-l>k?0:k+l),d=d>k?k:d,d<0&&(d+=k),k=l>d?0:d-l>>>0,l>>>=0;for(var T=G(k);++g<k;)T[g]=a[g+l];return T}function b7(a,l){var d;return ia(a,function(g,k,T){return d=l(g,k,T),!d}),!!d}function fp(a,l,d){var g=0,k=a==null?g:a.length;if(typeof l=="number"&&l===l&&k<=se){for(;g<k;){var T=g+k>>>1,M=a[T];M!==null&&!Er(M)&&(d?M<=l:M<l)?g=T+1:k=T}return k}return Av(a,l,lr,d)}function Av(a,l,d,g){var k=0,T=a==null?0:a.length;if(T===0)return 0;l=d(l);for(var M=l!==l,D=l===null,V=Er(l),X=l===n;k<T;){var Q=rp((k+T)/2),oe=d(a[Q]),pe=oe!==n,Ae=oe===null,Re=oe===oe,Ve=Er(oe);if(M)var Me=g||Re;else X?Me=Re&&(g||pe):D?Me=Re&&pe&&(g||!Ae):V?Me=Re&&pe&&!Ae&&(g||!Ve):Ae||Ve?Me=!1:Me=g?oe<=l:oe<l;Me?k=Q+1:T=Q}return Nn(T,U)}function h5(a,l){for(var d=-1,g=a.length,k=0,T=[];++d<g;){var M=a[d],D=l?l(M):M;if(!d||!mo(D,V)){var V=D;T[k++]=M===0?0:M}}return T}function m5(a){return typeof a=="number"?a:Er(a)?q:+a}function kr(a){if(typeof a=="string")return a;if($e(a))return Rt(a,kr)+"";if(Er(a))return qw?qw.call(a):"";var l=a+"";return l=="0"&&1/a==-ke?"-0":l}function aa(a,l,d){var g=-1,k=Ud,T=a.length,M=!0,D=[],V=D;if(d)M=!1,k=rv;else if(T>=o){var X=l?null:I7(a);if(X)return Gd(X);M=!1,k=Ku,V=new os}else V=l?[]:D;e:for(;++g<T;){var Q=a[g],oe=l?l(Q):Q;if(Q=d||Q!==0?Q:0,M&&oe===oe){for(var pe=V.length;pe--;)if(V[pe]===oe)continue e;l&&V.push(oe),D.push(Q)}else k(V,oe,d)||(V!==D&&V.push(oe),D.push(Q))}return D}function Tv(a,l){return l=sa(l,a),a=j5(a,l),a==null||delete a[Do(qr(l))]}function g5(a,l,d,g){return oc(a,l,d(as(a,l)),g)}function dp(a,l,d,g){for(var k=a.length,T=g?k:-1;(g?T--:++T<k)&&l(a[T],T,a););return d?Gr(a,g?0:T,g?T+1:k):Gr(a,g?T+1:0,g?k:T)}function v5(a,l){var d=a;return d instanceof Ke&&(d=d.value()),ov(l,function(g,k){return k.func.apply(k.thisArg,na([g],k.args))},d)}function Iv(a,l,d){var g=a.length;if(g<2)return g?aa(a[0]):[];for(var k=-1,T=G(g);++k<g;)for(var M=a[k],D=-1;++D<g;)D!=k&&(T[k]=tc(T[k]||M,a[D],l,d));return aa(_n(T,1),l,d)}function y5(a,l,d){for(var g=-1,k=a.length,T=l.length,M={};++g<k;){var D=g<T?l[g]:n;d(M,a[g],D)}return M}function Ov(a){return Qt(a)?a:[]}function Rv(a){return typeof a=="function"?a:lr}function sa(a,l){return $e(a)?a:Vv(a,l)?[a]:q5(ut(a))}var x7=Ue;function la(a,l,d){var g=a.length;return d=d===n?g:d,!l&&d>=g?a:Gr(a,l,d)}var b5=s9||function(a){return Be.clearTimeout(a)};function x5(a,l){if(l)return a.slice();var d=a.length,g=Vw?Vw(d):new a.constructor(d);return a.copy(g),g}function Mv(a){var l=new a.constructor(a.byteLength);return new Qd(l).set(new Qd(a)),l}function S7(a,l){var d=l?Mv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function w7(a){var l=new a.constructor(a.source,di.exec(a));return l.lastIndex=a.lastIndex,l}function C7(a){return Ju?_t(Ju.call(a)):{}}function S5(a,l){var d=l?Mv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function w5(a,l){if(a!==l){var d=a!==n,g=a===null,k=a===a,T=Er(a),M=l!==n,D=l===null,V=l===l,X=Er(l);if(!D&&!X&&!T&&a>l||T&&M&&V&&!D&&!X||g&&M&&V||!d&&V||!k)return 1;if(!g&&!T&&!X&&a<l||X&&d&&k&&!g&&!T||D&&d&&k||!M&&k||!V)return-1}return 0}function _7(a,l,d){for(var g=-1,k=a.criteria,T=l.criteria,M=k.length,D=d.length;++g<M;){var V=w5(k[g],T[g]);if(V){if(g>=D)return V;var X=d[g];return V*(X=="desc"?-1:1)}}return a.index-l.index}function C5(a,l,d,g){for(var k=-1,T=a.length,M=d.length,D=-1,V=l.length,X=cn(T-M,0),Q=G(V+X),oe=!g;++D<V;)Q[D]=l[D];for(;++k<M;)(oe||k<T)&&(Q[d[k]]=a[k]);for(;X--;)Q[D++]=a[k++];return Q}function _5(a,l,d,g){for(var k=-1,T=a.length,M=-1,D=d.length,V=-1,X=l.length,Q=cn(T-D,0),oe=G(Q+X),pe=!g;++k<Q;)oe[k]=a[k];for(var Ae=k;++V<X;)oe[Ae+V]=l[V];for(;++M<D;)(pe||k<T)&&(oe[Ae+d[M]]=a[k++]);return oe}function ir(a,l){var d=-1,g=a.length;for(l||(l=G(g));++d<g;)l[d]=a[d];return l}function Lo(a,l,d,g){var k=!d;d||(d={});for(var T=-1,M=l.length;++T<M;){var D=l[T],V=g?g(d[D],a[D],D,d,a):n;V===n&&(V=a[D]),k?vi(d,D,V):ec(d,D,V)}return d}function k7(a,l){return Lo(a,zv(a),l)}function E7(a,l){return Lo(a,F5(a),l)}function pp(a,l){return function(d,g){var k=$e(d)?O8:K9,T=l?l():{};return k(d,a,Oe(g,2),T)}}function hl(a){return Ue(function(l,d){var g=-1,k=d.length,T=k>1?d[k-1]:n,M=k>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(k--,T):n,M&&Gn(d[0],d[1],M)&&(T=k<3?n:T,k=1),l=_t(l);++g<k;){var D=d[g];D&&a(l,D,g,T)}return l})}function k5(a,l){return function(d,g){if(d==null)return d;if(!ar(d))return a(d,g);for(var k=d.length,T=l?k:-1,M=_t(d);(l?T--:++T<k)&&g(M[T],T,M)!==!1;);return d}}function E5(a){return function(l,d,g){for(var k=-1,T=_t(l),M=g(l),D=M.length;D--;){var V=M[a?D:++k];if(d(T[V],V,T)===!1)break}return l}}function P7(a,l,d){var g=l&E,k=ic(a);function T(){var M=this&&this!==Be&&this instanceof T?k:a;return M.apply(g?d:this,arguments)}return T}function P5(a){return function(l){l=ut(l);var d=sl(l)?po(l):n,g=d?d[0]:l.charAt(0),k=d?la(d,1).join(""):l.slice(1);return g[a]()+k}}function ml(a){return function(l){return ov(kC(_C(l).replace(Gu,"")),a,"")}}function ic(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=pl(a.prototype),g=a.apply(d,l);return Ft(g)?g:d}}function A7(a,l,d){var g=ic(a);function k(){for(var T=arguments.length,M=G(T),D=T,V=gl(k);D--;)M[D]=arguments[D];var X=T<3&&M[0]!==V&&M[T-1]!==V?[]:ra(M,V);if(T-=X.length,T<d)return R5(a,l,hp,k.placeholder,n,M,X,n,n,d-T);var Q=this&&this!==Be&&this instanceof k?g:a;return Cr(Q,this,M)}return k}function A5(a){return function(l,d,g){var k=_t(l);if(!ar(l)){var T=Oe(d,3);l=vn(l),d=function(D){return T(k[D],D,k)}}var M=a(l,d,g);return M>-1?k[T?l[M]:M]:n}}function T5(a){return bi(function(l){var d=l.length,g=d,k=Ur.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new jr(s);if(k&&!M&&yp(T)=="wrapper")var M=new Ur([],!0)}for(g=M?g:d;++g<d;){T=l[g];var D=yp(T),V=D=="wrapper"?$v(T):n;V&&Wv(V[0])&&V[1]==(L|_|I|z)&&!V[4].length&&V[9]==1?M=M[yp(V[0])].apply(M,V[3]):M=T.length==1&&Wv(T)?M[D]():M.thru(T)}return function(){var X=arguments,Q=X[0];if(M&&X.length==1&&$e(Q))return M.plant(Q).value();for(var oe=0,pe=d?l[oe].apply(this,X):Q;++oe<d;)pe=l[oe].call(this,pe);return pe}})}function hp(a,l,d,g,k,T,M,D,V,X){var Q=l&L,oe=l&E,pe=l&w,Ae=l&(_|P),Re=l&K,Ve=pe?n:ic(a);function Me(){for(var qe=arguments.length,Ze=G(qe),Pr=qe;Pr--;)Ze[Pr]=arguments[Pr];if(Ae)var qn=gl(Me),Ar=z8(Ze,qn);if(g&&(Ze=C5(Ze,g,k,Ae)),T&&(Ze=_5(Ze,T,M,Ae)),qe-=Ar,Ae&&qe<X){var Jt=ra(Ze,qn);return R5(a,l,hp,Me.placeholder,d,Ze,Jt,D,V,X-qe)}var go=oe?d:this,Ci=pe?go[a]:a;return qe=Ze.length,D?Ze=K7(Ze,D):Re&&qe>1&&Ze.reverse(),Q&&V<qe&&(Ze.length=V),this&&this!==Be&&this instanceof Me&&(Ci=Ve||ic(Ci)),Ci.apply(go,Ze)}return Me}function I5(a,l){return function(d,g){return n7(d,a,l(g),{})}}function mp(a,l){return function(d,g){var k;if(d===n&&g===n)return l;if(d!==n&&(k=d),g!==n){if(k===n)return g;typeof d=="string"||typeof g=="string"?(d=kr(d),g=kr(g)):(d=m5(d),g=m5(g)),k=a(d,g)}return k}}function Nv(a){return bi(function(l){return l=Rt(l,_r(Oe())),Ue(function(d){var g=this;return a(l,function(k){return Cr(k,g,d)})})})}function gp(a,l){l=l===n?" ":kr(l);var d=l.length;if(d<2)return d?Pv(l,a):l;var g=Pv(l,np(a/ll(l)));return sl(l)?la(po(g),0,a).join(""):g.slice(0,a)}function T7(a,l,d,g){var k=l&E,T=ic(a);function M(){for(var D=-1,V=arguments.length,X=-1,Q=g.length,oe=G(Q+V),pe=this&&this!==Be&&this instanceof M?T:a;++X<Q;)oe[X]=g[X];for(;V--;)oe[X++]=arguments[++D];return Cr(pe,k?d:this,oe)}return M}function O5(a){return function(l,d,g){return g&&typeof g!="number"&&Gn(l,d,g)&&(d=g=n),l=wi(l),d===n?(d=l,l=0):d=wi(d),g=g===n?l<d?1:-1:wi(g),h7(l,d,g,a)}}function vp(a){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=Kr(l),d=Kr(d)),a(l,d)}}function R5(a,l,d,g,k,T,M,D,V,X){var Q=l&_,oe=Q?M:n,pe=Q?n:M,Ae=Q?T:n,Re=Q?n:T;l|=Q?I:N,l&=~(Q?N:I),l&b||(l&=~(E|w));var Ve=[a,l,k,Ae,oe,Re,pe,D,V,X],Me=d.apply(n,Ve);return Wv(a)&&U5(Me,Ve),Me.placeholder=g,H5(Me,a,l)}function Lv(a){var l=un[a];return function(d,g){if(d=Kr(d),g=g==null?0:Nn(ze(g),292),g&&Hw(d)){var k=(ut(d)+"e").split("e"),T=l(k[0]+"e"+(+k[1]+g));return k=(ut(T)+"e").split("e"),+(k[0]+"e"+(+k[1]-g))}return l(d)}}var I7=fl&&1/Gd(new fl([,-0]))[1]==ke?function(a){return new fl(a)}:r1;function M5(a){return function(l){var d=Ln(l);return d==ge?fv(l):d==wt?q8(l):B8(l,a(l))}}function yi(a,l,d,g,k,T,M,D){var V=l&w;if(!V&&typeof a!="function")throw new jr(s);var X=g?g.length:0;if(X||(l&=~(I|N),g=k=n),M=M===n?M:cn(ze(M),0),D=D===n?D:ze(D),X-=k?k.length:0,l&N){var Q=g,oe=k;g=k=n}var pe=V?n:$v(a),Ae=[a,l,d,g,k,Q,oe,T,M,D];if(pe&&H7(Ae,pe),a=Ae[0],l=Ae[1],d=Ae[2],g=Ae[3],k=Ae[4],D=Ae[9]=Ae[9]===n?V?0:a.length:cn(Ae[9]-X,0),!D&&l&(_|P)&&(l&=~(_|P)),!l||l==E)var Re=P7(a,l,d);else l==_||l==P?Re=A7(a,l,D):(l==I||l==(E|I))&&!k.length?Re=T7(a,l,d,g):Re=hp.apply(n,Ae);var Ve=pe?p5:U5;return H5(Ve(Re,Ae),a,l)}function N5(a,l,d,g){return a===n||mo(a,cl[d])&&!pt.call(g,d)?l:a}function L5(a,l,d,g,k,T){return Ft(a)&&Ft(l)&&(T.set(l,a),cp(a,l,n,L5,T),T.delete(l)),a}function O7(a){return lc(a)?n:a}function D5(a,l,d,g,k,T){var M=d&y,D=a.length,V=l.length;if(D!=V&&!(M&&V>D))return!1;var X=T.get(a),Q=T.get(l);if(X&&Q)return X==l&&Q==a;var oe=-1,pe=!0,Ae=d&x?new os:n;for(T.set(a,l),T.set(l,a);++oe<D;){var Re=a[oe],Ve=l[oe];if(g)var Me=M?g(Ve,Re,oe,l,a,T):g(Re,Ve,oe,a,l,T);if(Me!==n){if(Me)continue;pe=!1;break}if(Ae){if(!iv(l,function(qe,Ze){if(!Ku(Ae,Ze)&&(Re===qe||k(Re,qe,d,g,T)))return Ae.push(Ze)})){pe=!1;break}}else if(!(Re===Ve||k(Re,Ve,d,g,T))){pe=!1;break}}return T.delete(a),T.delete(l),pe}function R7(a,l,d,g,k,T,M){switch(d){case re:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case lt:return!(a.byteLength!=l.byteLength||!T(new Qd(a),new Qd(l)));case fe:case Se:case Ie:return mo(+a,+l);case at:return a.name==l.name&&a.message==l.message;case st:case Xt:return a==l+"";case ge:var D=fv;case wt:var V=g&y;if(D||(D=Gd),a.size!=l.size&&!V)return!1;var X=M.get(a);if(X)return X==l;g|=x,M.set(a,l);var Q=D5(D(a),D(l),g,k,T,M);return M.delete(a),Q;case Ut:if(Ju)return Ju.call(a)==Ju.call(l)}return!1}function M7(a,l,d,g,k,T){var M=d&y,D=Dv(a),V=D.length,X=Dv(l),Q=X.length;if(V!=Q&&!M)return!1;for(var oe=V;oe--;){var pe=D[oe];if(!(M?pe in l:pt.call(l,pe)))return!1}var Ae=T.get(a),Re=T.get(l);if(Ae&&Re)return Ae==l&&Re==a;var Ve=!0;T.set(a,l),T.set(l,a);for(var Me=M;++oe<V;){pe=D[oe];var qe=a[pe],Ze=l[pe];if(g)var Pr=M?g(Ze,qe,pe,l,a,T):g(qe,Ze,pe,a,l,T);if(!(Pr===n?qe===Ze||k(qe,Ze,d,g,T):Pr)){Ve=!1;break}Me||(Me=pe=="constructor")}if(Ve&&!Me){var qn=a.constructor,Ar=l.constructor;qn!=Ar&&"constructor"in a&&"constructor"in l&&!(typeof qn=="function"&&qn instanceof qn&&typeof Ar=="function"&&Ar instanceof Ar)&&(Ve=!1)}return T.delete(a),T.delete(l),Ve}function bi(a){return Uv(W5(a,n,X5),a+"")}function Dv(a){return n5(a,vn,zv)}function Fv(a){return n5(a,sr,F5)}var $v=op?function(a){return op.get(a)}:r1;function yp(a){for(var l=a.name+"",d=dl[l],g=pt.call(dl,l)?d.length:0;g--;){var k=d[g],T=k.func;if(T==null||T==a)return k.name}return l}function gl(a){var l=pt.call(A,"placeholder")?A:a;return l.placeholder}function Oe(){var a=A.iteratee||t1;return a=a===t1?i5:a,arguments.length?a(arguments[0],arguments[1]):a}function bp(a,l){var d=a.__data__;return V7(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Bv(a){for(var l=vn(a),d=l.length;d--;){var g=l[d],k=a[g];l[d]=[g,k,z5(k)]}return l}function ss(a,l){var d=U8(a,l);return o5(d)?d:n}function N7(a){var l=pt.call(a,ns),d=a[ns];try{a[ns]=n;var g=!0}catch{}var k=Zd.call(a);return g&&(l?a[ns]=d:delete a[ns]),k}var zv=pv?function(a){return a==null?[]:(a=_t(a),ta(pv(a),function(l){return jw.call(a,l)}))}:o1,F5=pv?function(a){for(var l=[];a;)na(l,zv(a)),a=Jd(a);return l}:o1,Ln=Hn;(hv&&Ln(new hv(new ArrayBuffer(1)))!=re||Zu&&Ln(new Zu)!=ge||mv&&Ln(mv.resolve())!=Dt||fl&&Ln(new fl)!=wt||Xu&&Ln(new Xu)!=Ee)&&(Ln=function(a){var l=Hn(a),d=l==De?a.constructor:n,g=d?ls(d):"";if(g)switch(g){case g9:return re;case v9:return ge;case y9:return Dt;case b9:return wt;case x9:return Ee}return l});function L7(a,l,d){for(var g=-1,k=d.length;++g<k;){var T=d[g],M=T.size;switch(T.type){case"drop":a+=M;break;case"dropRight":l-=M;break;case"take":l=Nn(l,a+M);break;case"takeRight":a=cn(a,l-M);break}}return{start:a,end:l}}function D7(a){var l=a.match(Ji);return l?l[1].split(Lg):[]}function $5(a,l,d){l=sa(l,a);for(var g=-1,k=l.length,T=!1;++g<k;){var M=Do(l[g]);if(!(T=a!=null&&d(a,M)))break;a=a[M]}return T||++g!=k?T:(k=a==null?0:a.length,!!k&&Ep(k)&&xi(M,k)&&($e(a)||us(a)))}function F7(a){var l=a.length,d=new a.constructor(l);return l&&typeof a[0]=="string"&&pt.call(a,"index")&&(d.index=a.index,d.input=a.input),d}function B5(a){return typeof a.constructor=="function"&&!ac(a)?pl(Jd(a)):{}}function $7(a,l,d){var g=a.constructor;switch(l){case lt:return Mv(a);case fe:case Se:return new g(+a);case re:return S7(a,d);case He:case kt:case wn:case Mn:case wr:case Mo:case ci:case jn:case Vr:return S5(a,d);case ge:return new g;case Ie:case Xt:return new g(a);case st:return w7(a);case wt:return new g;case Ut:return C7(a)}}function B7(a,l){var d=l.length;if(!d)return a;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(Ng,`{
|
|
/* [wrapped with `+l+`] */
|
|
`)}function z7(a){return $e(a)||us(a)||!!(Uw&&a&&a[Uw])}function xi(a,l){var d=typeof a;return l=l??j,!!l&&(d=="number"||d!="symbol"&&Ug.test(a))&&a>-1&&a%1==0&&a<l}function Gn(a,l,d){if(!Ft(d))return!1;var g=typeof l;return(g=="number"?ar(d)&&xi(l,d.length):g=="string"&&l in d)?mo(d[l],a):!1}function Vv(a,l){if($e(a))return!1;var d=typeof a;return d=="number"||d=="symbol"||d=="boolean"||a==null||Er(a)?!0:Og.test(a)||!Ig.test(a)||l!=null&&a in _t(l)}function V7(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Wv(a){var l=yp(a),d=A[l];if(typeof d!="function"||!(l in Ke.prototype))return!1;if(a===d)return!0;var g=$v(d);return!!g&&a===g[0]}function W7(a){return!!zw&&zw in a}var j7=Kd?Si:i1;function ac(a){var l=a&&a.constructor,d=typeof l=="function"&&l.prototype||cl;return a===d}function z5(a){return a===a&&!Ft(a)}function V5(a,l){return function(d){return d==null?!1:d[a]===l&&(l!==n||a in _t(d))}}function U7(a){var l=_p(a,function(g){return d.size===f&&d.clear(),g}),d=l.cache;return l}function H7(a,l){var d=a[1],g=l[1],k=d|g,T=k<(E|w|L),M=g==L&&d==_||g==L&&d==z&&a[7].length<=l[8]||g==(L|z)&&l[7].length<=l[8]&&d==_;if(!(T||M))return a;g&E&&(a[2]=l[2],k|=d&E?0:b);var D=l[3];if(D){var V=a[3];a[3]=V?C5(V,D,l[4]):D,a[4]=V?ra(a[3],p):l[4]}return D=l[5],D&&(V=a[5],a[5]=V?_5(V,D,l[6]):D,a[6]=V?ra(a[5],p):l[6]),D=l[7],D&&(a[7]=D),g&L&&(a[8]=a[8]==null?l[8]:Nn(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=k,a}function G7(a){var l=[];if(a!=null)for(var d in _t(a))l.push(d);return l}function q7(a){return Zd.call(a)}function W5(a,l,d){return l=cn(l===n?a.length-1:l,0),function(){for(var g=arguments,k=-1,T=cn(g.length-l,0),M=G(T);++k<T;)M[k]=g[l+k];k=-1;for(var D=G(l+1);++k<l;)D[k]=g[k];return D[l]=d(M),Cr(a,this,D)}}function j5(a,l){return l.length<2?a:as(a,Gr(l,0,-1))}function K7(a,l){for(var d=a.length,g=Nn(l.length,d),k=ir(a);g--;){var T=l[g];a[g]=xi(T,d)?k[T]:n}return a}function jv(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var U5=G5(p5),sc=u9||function(a,l){return Be.setTimeout(a,l)},Uv=G5(v7);function H5(a,l,d){var g=l+"";return Uv(a,B7(g,Y7(D7(g),d)))}function G5(a){var l=0,d=0;return function(){var g=p9(),k=_e-(g-d);if(d=g,k>0){if(++l>=be)return arguments[0]}else l=0;return a.apply(n,arguments)}}function xp(a,l){var d=-1,g=a.length,k=g-1;for(l=l===n?g:l;++d<l;){var T=Ev(d,k),M=a[T];a[T]=a[d],a[d]=M}return a.length=l,a}var q5=U7(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(co,function(d,g,k,T){l.push(k?T.replace($g,"$1"):g||d)}),l});function Do(a){if(typeof a=="string"||Er(a))return a;var l=a+"";return l=="0"&&1/a==-ke?"-0":l}function ls(a){if(a!=null){try{return Yd.call(a)}catch{}try{return a+""}catch{}}return""}function Y7(a,l){return Wr(ue,function(d){var g="_."+d[0];l&d[1]&&!Ud(a,g)&&a.push(g)}),a.sort()}function K5(a){if(a instanceof Ke)return a.clone();var l=new Ur(a.__wrapped__,a.__chain__);return l.__actions__=ir(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function Z7(a,l,d){(d?Gn(a,l,d):l===n)?l=1:l=cn(ze(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var k=0,T=0,M=G(np(g/l));k<g;)M[T++]=Gr(a,k,k+=l);return M}function X7(a){for(var l=-1,d=a==null?0:a.length,g=0,k=[];++l<d;){var T=a[l];T&&(k[g++]=T)}return k}function Q7(){var a=arguments.length;if(!a)return[];for(var l=G(a-1),d=arguments[0],g=a;g--;)l[g-1]=arguments[g];return na($e(d)?ir(d):[d],_n(l,1))}var J7=Ue(function(a,l){return Qt(a)?tc(a,_n(l,1,Qt,!0)):[]}),eM=Ue(function(a,l){var d=qr(l);return Qt(d)&&(d=n),Qt(a)?tc(a,_n(l,1,Qt,!0),Oe(d,2)):[]}),tM=Ue(function(a,l){var d=qr(l);return Qt(d)&&(d=n),Qt(a)?tc(a,_n(l,1,Qt,!0),n,d):[]});function nM(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:ze(l),Gr(a,l<0?0:l,g)):[]}function rM(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:ze(l),l=g-l,Gr(a,0,l<0?0:l)):[]}function oM(a,l){return a&&a.length?dp(a,Oe(l,3),!0,!0):[]}function iM(a,l){return a&&a.length?dp(a,Oe(l,3),!0):[]}function aM(a,l,d,g){var k=a==null?0:a.length;return k?(d&&typeof d!="number"&&Gn(a,l,d)&&(d=0,g=k),Q9(a,l,d,g)):[]}function Y5(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var k=d==null?0:ze(d);return k<0&&(k=cn(g+k,0)),Hd(a,Oe(l,3),k)}function Z5(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var k=g-1;return d!==n&&(k=ze(d),k=d<0?cn(g+k,0):Nn(k,g-1)),Hd(a,Oe(l,3),k,!0)}function X5(a){var l=a==null?0:a.length;return l?_n(a,1):[]}function sM(a){var l=a==null?0:a.length;return l?_n(a,ke):[]}function lM(a,l){var d=a==null?0:a.length;return d?(l=l===n?1:ze(l),_n(a,l)):[]}function uM(a){for(var l=-1,d=a==null?0:a.length,g={};++l<d;){var k=a[l];g[k[0]]=k[1]}return g}function Q5(a){return a&&a.length?a[0]:n}function cM(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var k=d==null?0:ze(d);return k<0&&(k=cn(g+k,0)),al(a,l,k)}function fM(a){var l=a==null?0:a.length;return l?Gr(a,0,-1):[]}var dM=Ue(function(a){var l=Rt(a,Ov);return l.length&&l[0]===a[0]?Sv(l):[]}),pM=Ue(function(a){var l=qr(a),d=Rt(a,Ov);return l===qr(d)?l=n:d.pop(),d.length&&d[0]===a[0]?Sv(d,Oe(l,2)):[]}),hM=Ue(function(a){var l=qr(a),d=Rt(a,Ov);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===a[0]?Sv(d,n,l):[]});function mM(a,l){return a==null?"":f9.call(a,l)}function qr(a){var l=a==null?0:a.length;return l?a[l-1]:n}function gM(a,l,d){var g=a==null?0:a.length;if(!g)return-1;var k=g;return d!==n&&(k=ze(d),k=k<0?cn(g+k,0):Nn(k,g-1)),l===l?Y8(a,l,k):Hd(a,Rw,k,!0)}function vM(a,l){return a&&a.length?u5(a,ze(l)):n}var yM=Ue(J5);function J5(a,l){return a&&a.length&&l&&l.length?kv(a,l):a}function bM(a,l,d){return a&&a.length&&l&&l.length?kv(a,l,Oe(d,2)):a}function xM(a,l,d){return a&&a.length&&l&&l.length?kv(a,l,n,d):a}var SM=bi(function(a,l){var d=a==null?0:a.length,g=vv(a,l);return d5(a,Rt(l,function(k){return xi(k,d)?+k:k}).sort(w5)),g});function wM(a,l){var d=[];if(!(a&&a.length))return d;var g=-1,k=[],T=a.length;for(l=Oe(l,3);++g<T;){var M=a[g];l(M,g,a)&&(d.push(M),k.push(g))}return d5(a,k),d}function Hv(a){return a==null?a:m9.call(a)}function CM(a,l,d){var g=a==null?0:a.length;return g?(d&&typeof d!="number"&&Gn(a,l,d)?(l=0,d=g):(l=l==null?0:ze(l),d=d===n?g:ze(d)),Gr(a,l,d)):[]}function _M(a,l){return fp(a,l)}function kM(a,l,d){return Av(a,l,Oe(d,2))}function EM(a,l){var d=a==null?0:a.length;if(d){var g=fp(a,l);if(g<d&&mo(a[g],l))return g}return-1}function PM(a,l){return fp(a,l,!0)}function AM(a,l,d){return Av(a,l,Oe(d,2),!0)}function TM(a,l){var d=a==null?0:a.length;if(d){var g=fp(a,l,!0)-1;if(mo(a[g],l))return g}return-1}function IM(a){return a&&a.length?h5(a):[]}function OM(a,l){return a&&a.length?h5(a,Oe(l,2)):[]}function RM(a){var l=a==null?0:a.length;return l?Gr(a,1,l):[]}function MM(a,l,d){return a&&a.length?(l=d||l===n?1:ze(l),Gr(a,0,l<0?0:l)):[]}function NM(a,l,d){var g=a==null?0:a.length;return g?(l=d||l===n?1:ze(l),l=g-l,Gr(a,l<0?0:l,g)):[]}function LM(a,l){return a&&a.length?dp(a,Oe(l,3),!1,!0):[]}function DM(a,l){return a&&a.length?dp(a,Oe(l,3)):[]}var FM=Ue(function(a){return aa(_n(a,1,Qt,!0))}),$M=Ue(function(a){var l=qr(a);return Qt(l)&&(l=n),aa(_n(a,1,Qt,!0),Oe(l,2))}),BM=Ue(function(a){var l=qr(a);return l=typeof l=="function"?l:n,aa(_n(a,1,Qt,!0),n,l)});function zM(a){return a&&a.length?aa(a):[]}function VM(a,l){return a&&a.length?aa(a,Oe(l,2)):[]}function WM(a,l){return l=typeof l=="function"?l:n,a&&a.length?aa(a,n,l):[]}function Gv(a){if(!(a&&a.length))return[];var l=0;return a=ta(a,function(d){if(Qt(d))return l=cn(d.length,l),!0}),uv(l,function(d){return Rt(a,av(d))})}function eC(a,l){if(!(a&&a.length))return[];var d=Gv(a);return l==null?d:Rt(d,function(g){return Cr(l,n,g)})}var jM=Ue(function(a,l){return Qt(a)?tc(a,l):[]}),UM=Ue(function(a){return Iv(ta(a,Qt))}),HM=Ue(function(a){var l=qr(a);return Qt(l)&&(l=n),Iv(ta(a,Qt),Oe(l,2))}),GM=Ue(function(a){var l=qr(a);return l=typeof l=="function"?l:n,Iv(ta(a,Qt),n,l)}),qM=Ue(Gv);function KM(a,l){return y5(a||[],l||[],ec)}function YM(a,l){return y5(a||[],l||[],oc)}var ZM=Ue(function(a){var l=a.length,d=l>1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,eC(a,d)});function tC(a){var l=A(a);return l.__chain__=!0,l}function XM(a,l){return l(a),a}function Sp(a,l){return l(a)}var QM=bi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,k=function(T){return vv(T,a)};return l>1||this.__actions__.length||!(g instanceof Ke)||!xi(d)?this.thru(k):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:Sp,args:[k],thisArg:n}),new Ur(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function JM(){return tC(this)}function eN(){return new Ur(this.value(),this.__chain__)}function tN(){this.__values__===n&&(this.__values__=mC(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function nN(){return this}function rN(a){for(var l,d=this;d instanceof ap;){var g=K5(d);g.__index__=0,g.__values__=n,l?k.__wrapped__=g:l=g;var k=g;d=d.__wrapped__}return k.__wrapped__=a,l}function oN(){var a=this.__wrapped__;if(a instanceof Ke){var l=a;return this.__actions__.length&&(l=new Ke(this)),l=l.reverse(),l.__actions__.push({func:Sp,args:[Hv],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Hv)}function iN(){return v5(this.__wrapped__,this.__actions__)}var aN=pp(function(a,l,d){pt.call(a,d)?++a[d]:vi(a,d,1)});function sN(a,l,d){var g=$e(a)?Iw:X9;return d&&Gn(a,l,d)&&(l=n),g(a,Oe(l,3))}function lN(a,l){var d=$e(a)?ta:e5;return d(a,Oe(l,3))}var uN=A5(Y5),cN=A5(Z5);function fN(a,l){return _n(wp(a,l),1)}function dN(a,l){return _n(wp(a,l),ke)}function pN(a,l,d){return d=d===n?1:ze(d),_n(wp(a,l),d)}function nC(a,l){var d=$e(a)?Wr:ia;return d(a,Oe(l,3))}function rC(a,l){var d=$e(a)?R8:Jw;return d(a,Oe(l,3))}var hN=pp(function(a,l,d){pt.call(a,d)?a[d].push(l):vi(a,d,[l])});function mN(a,l,d,g){a=ar(a)?a:yl(a),d=d&&!g?ze(d):0;var k=a.length;return d<0&&(d=cn(k+d,0)),Pp(a)?d<=k&&a.indexOf(l,d)>-1:!!k&&al(a,l,d)>-1}var gN=Ue(function(a,l,d){var g=-1,k=typeof l=="function",T=ar(a)?G(a.length):[];return ia(a,function(M){T[++g]=k?Cr(l,M,d):nc(M,l,d)}),T}),vN=pp(function(a,l,d){vi(a,d,l)});function wp(a,l){var d=$e(a)?Rt:a5;return d(a,Oe(l,3))}function yN(a,l,d,g){return a==null?[]:($e(l)||(l=l==null?[]:[l]),d=g?n:d,$e(d)||(d=d==null?[]:[d]),c5(a,l,d))}var bN=pp(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function xN(a,l,d){var g=$e(a)?ov:Nw,k=arguments.length<3;return g(a,Oe(l,4),d,k,ia)}function SN(a,l,d){var g=$e(a)?M8:Nw,k=arguments.length<3;return g(a,Oe(l,4),d,k,Jw)}function wN(a,l){var d=$e(a)?ta:e5;return d(a,kp(Oe(l,3)))}function CN(a){var l=$e(a)?Yw:m7;return l(a)}function _N(a,l,d){(d?Gn(a,l,d):l===n)?l=1:l=ze(l);var g=$e(a)?G9:g7;return g(a,l)}function kN(a){var l=$e(a)?q9:y7;return l(a)}function EN(a){if(a==null)return 0;if(ar(a))return Pp(a)?ll(a):a.length;var l=Ln(a);return l==ge||l==wt?a.size:Cv(a).length}function PN(a,l,d){var g=$e(a)?iv:b7;return d&&Gn(a,l,d)&&(l=n),g(a,Oe(l,3))}var AN=Ue(function(a,l){if(a==null)return[];var d=l.length;return d>1&&Gn(a,l[0],l[1])?l=[]:d>2&&Gn(l[0],l[1],l[2])&&(l=[l[0]]),c5(a,_n(l,1),[])}),Cp=l9||function(){return Be.Date.now()};function TN(a,l){if(typeof l!="function")throw new jr(s);return a=ze(a),function(){if(--a<1)return l.apply(this,arguments)}}function oC(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,yi(a,L,n,n,n,n,l)}function iC(a,l){var d;if(typeof l!="function")throw new jr(s);return a=ze(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var qv=Ue(function(a,l,d){var g=E;if(d.length){var k=ra(d,gl(qv));g|=I}return yi(a,g,l,d,k)}),aC=Ue(function(a,l,d){var g=E|w;if(d.length){var k=ra(d,gl(aC));g|=I}return yi(l,g,a,d,k)});function sC(a,l,d){l=d?n:l;var g=yi(a,_,n,n,n,n,n,l);return g.placeholder=sC.placeholder,g}function lC(a,l,d){l=d?n:l;var g=yi(a,P,n,n,n,n,n,l);return g.placeholder=lC.placeholder,g}function uC(a,l,d){var g,k,T,M,D,V,X=0,Q=!1,oe=!1,pe=!0;if(typeof a!="function")throw new jr(s);l=Kr(l)||0,Ft(d)&&(Q=!!d.leading,oe="maxWait"in d,T=oe?cn(Kr(d.maxWait)||0,l):T,pe="trailing"in d?!!d.trailing:pe);function Ae(Jt){var go=g,Ci=k;return g=k=n,X=Jt,M=a.apply(Ci,go),M}function Re(Jt){return X=Jt,D=sc(qe,l),Q?Ae(Jt):M}function Ve(Jt){var go=Jt-V,Ci=Jt-X,AC=l-go;return oe?Nn(AC,T-Ci):AC}function Me(Jt){var go=Jt-V,Ci=Jt-X;return V===n||go>=l||go<0||oe&&Ci>=T}function qe(){var Jt=Cp();if(Me(Jt))return Ze(Jt);D=sc(qe,Ve(Jt))}function Ze(Jt){return D=n,pe&&g?Ae(Jt):(g=k=n,M)}function Pr(){D!==n&&b5(D),X=0,g=V=k=D=n}function qn(){return D===n?M:Ze(Cp())}function Ar(){var Jt=Cp(),go=Me(Jt);if(g=arguments,k=this,V=Jt,go){if(D===n)return Re(V);if(oe)return b5(D),D=sc(qe,l),Ae(V)}return D===n&&(D=sc(qe,l)),M}return Ar.cancel=Pr,Ar.flush=qn,Ar}var IN=Ue(function(a,l){return Qw(a,1,l)}),ON=Ue(function(a,l,d){return Qw(a,Kr(l)||0,d)});function RN(a){return yi(a,K)}function _p(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new jr(s);var d=function(){var g=arguments,k=l?l.apply(this,g):g[0],T=d.cache;if(T.has(k))return T.get(k);var M=a.apply(this,g);return d.cache=T.set(k,M)||T,M};return d.cache=new(_p.Cache||gi),d}_p.Cache=gi;function kp(a){if(typeof a!="function")throw new jr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function MN(a){return iC(2,a)}var NN=x7(function(a,l){l=l.length==1&&$e(l[0])?Rt(l[0],_r(Oe())):Rt(_n(l,1),_r(Oe()));var d=l.length;return Ue(function(g){for(var k=-1,T=Nn(g.length,d);++k<T;)g[k]=l[k].call(this,g[k]);return Cr(a,this,g)})}),Kv=Ue(function(a,l){var d=ra(l,gl(Kv));return yi(a,I,n,l,d)}),cC=Ue(function(a,l){var d=ra(l,gl(cC));return yi(a,N,n,l,d)}),LN=bi(function(a,l){return yi(a,z,n,n,n,l)});function DN(a,l){if(typeof a!="function")throw new jr(s);return l=l===n?l:ze(l),Ue(a,l)}function FN(a,l){if(typeof a!="function")throw new jr(s);return l=l==null?0:cn(ze(l),0),Ue(function(d){var g=d[l],k=la(d,0,l);return g&&na(k,g),Cr(a,this,k)})}function $N(a,l,d){var g=!0,k=!0;if(typeof a!="function")throw new jr(s);return Ft(d)&&(g="leading"in d?!!d.leading:g,k="trailing"in d?!!d.trailing:k),uC(a,l,{leading:g,maxWait:l,trailing:k})}function BN(a){return oC(a,1)}function zN(a,l){return Kv(Rv(l),a)}function VN(){if(!arguments.length)return[];var a=arguments[0];return $e(a)?a:[a]}function WN(a){return Hr(a,v)}function jN(a,l){return l=typeof l=="function"?l:n,Hr(a,v,l)}function UN(a){return Hr(a,h|v)}function HN(a,l){return l=typeof l=="function"?l:n,Hr(a,h|v,l)}function GN(a,l){return l==null||Xw(a,l,vn(l))}function mo(a,l){return a===l||a!==a&&l!==l}var qN=vp(xv),KN=vp(function(a,l){return a>=l}),us=r5(function(){return arguments}())?r5:function(a){return Ht(a)&&pt.call(a,"callee")&&!jw.call(a,"callee")},$e=G.isArray,YN=ol?_r(ol):r7;function ar(a){return a!=null&&Ep(a.length)&&!Si(a)}function Qt(a){return Ht(a)&&ar(a)}function ZN(a){return a===!0||a===!1||Ht(a)&&Hn(a)==fe}var ua=c9||i1,XN=il?_r(il):o7;function QN(a){return Ht(a)&&a.nodeType===1&&!lc(a)}function JN(a){if(a==null)return!0;if(ar(a)&&($e(a)||typeof a=="string"||typeof a.splice=="function"||ua(a)||vl(a)||us(a)))return!a.length;var l=Ln(a);if(l==ge||l==wt)return!a.size;if(ac(a))return!Cv(a).length;for(var d in a)if(pt.call(a,d))return!1;return!0}function eL(a,l){return rc(a,l)}function tL(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?rc(a,l,n,d):!!g}function Yv(a){if(!Ht(a))return!1;var l=Hn(a);return l==at||l==Le||typeof a.message=="string"&&typeof a.name=="string"&&!lc(a)}function nL(a){return typeof a=="number"&&Hw(a)}function Si(a){if(!Ft(a))return!1;var l=Hn(a);return l==At||l==hn||l==Pe||l==mn}function fC(a){return typeof a=="number"&&a==ze(a)}function Ep(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Ft(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Ht(a){return a!=null&&typeof a=="object"}var dC=qu?_r(qu):a7;function rL(a,l){return a===l||wv(a,l,Bv(l))}function oL(a,l,d){return d=typeof d=="function"?d:n,wv(a,l,Bv(l),d)}function iL(a){return pC(a)&&a!=+a}function aL(a){if(j7(a))throw new Fe(i);return o5(a)}function sL(a){return a===null}function lL(a){return a==null}function pC(a){return typeof a=="number"||Ht(a)&&Hn(a)==Ie}function lc(a){if(!Ht(a)||Hn(a)!=De)return!1;var l=Jd(a);if(l===null)return!0;var d=pt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Yd.call(d)==o9}var Zv=Pw?_r(Pw):s7;function uL(a){return fC(a)&&a>=-j&&a<=j}var hC=Aw?_r(Aw):l7;function Pp(a){return typeof a=="string"||!$e(a)&&Ht(a)&&Hn(a)==Xt}function Er(a){return typeof a=="symbol"||Ht(a)&&Hn(a)==Ut}var vl=Tw?_r(Tw):u7;function cL(a){return a===n}function fL(a){return Ht(a)&&Ln(a)==Ee}function dL(a){return Ht(a)&&Hn(a)==ft}var pL=vp(_v),hL=vp(function(a,l){return a<=l});function mC(a){if(!a)return[];if(ar(a))return Pp(a)?po(a):ir(a);if(Yu&&a[Yu])return G8(a[Yu]());var l=Ln(a),d=l==ge?fv:l==wt?Gd:yl;return d(a)}function wi(a){if(!a)return a===0?a:0;if(a=Kr(a),a===ke||a===-ke){var l=a<0?-1:1;return l*Y}return a===a?a:0}function ze(a){var l=wi(a),d=l%1;return l===l?d?l-d:l:0}function gC(a){return a?is(ze(a),0,R):0}function Kr(a){if(typeof a=="number")return a;if(Er(a))return q;if(Ft(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=Lw(a);var d=Vg.test(a);return d||jg.test(a)?ve(a.slice(2),d?2:8):zg.test(a)?q:+a}function vC(a){return Lo(a,sr(a))}function mL(a){return a?is(ze(a),-j,j):a===0?a:0}function ut(a){return a==null?"":kr(a)}var gL=hl(function(a,l){if(ac(l)||ar(l)){Lo(l,vn(l),a);return}for(var d in l)pt.call(l,d)&&ec(a,d,l[d])}),yC=hl(function(a,l){Lo(l,sr(l),a)}),Ap=hl(function(a,l,d,g){Lo(l,sr(l),a,g)}),vL=hl(function(a,l,d,g){Lo(l,vn(l),a,g)}),yL=bi(vv);function bL(a,l){var d=pl(a);return l==null?d:Zw(d,l)}var xL=Ue(function(a,l){a=_t(a);var d=-1,g=l.length,k=g>2?l[2]:n;for(k&&Gn(l[0],l[1],k)&&(g=1);++d<g;)for(var T=l[d],M=sr(T),D=-1,V=M.length;++D<V;){var X=M[D],Q=a[X];(Q===n||mo(Q,cl[X])&&!pt.call(a,X))&&(a[X]=T[X])}return a}),SL=Ue(function(a){return a.push(n,L5),Cr(bC,n,a)});function wL(a,l){return Ow(a,Oe(l,3),No)}function CL(a,l){return Ow(a,Oe(l,3),bv)}function _L(a,l){return a==null?a:yv(a,Oe(l,3),sr)}function kL(a,l){return a==null?a:t5(a,Oe(l,3),sr)}function EL(a,l){return a&&No(a,Oe(l,3))}function PL(a,l){return a&&bv(a,Oe(l,3))}function AL(a){return a==null?[]:up(a,vn(a))}function TL(a){return a==null?[]:up(a,sr(a))}function Xv(a,l,d){var g=a==null?n:as(a,l);return g===n?d:g}function IL(a,l){return a!=null&&$5(a,l,J9)}function Qv(a,l){return a!=null&&$5(a,l,e7)}var OL=I5(function(a,l,d){l!=null&&typeof l.toString!="function"&&(l=Zd.call(l)),a[l]=d},e1(lr)),RL=I5(function(a,l,d){l!=null&&typeof l.toString!="function"&&(l=Zd.call(l)),pt.call(a,l)?a[l].push(d):a[l]=[d]},Oe),ML=Ue(nc);function vn(a){return ar(a)?Kw(a):Cv(a)}function sr(a){return ar(a)?Kw(a,!0):c7(a)}function NL(a,l){var d={};return l=Oe(l,3),No(a,function(g,k,T){vi(d,l(g,k,T),g)}),d}function LL(a,l){var d={};return l=Oe(l,3),No(a,function(g,k,T){vi(d,k,l(g,k,T))}),d}var DL=hl(function(a,l,d){cp(a,l,d)}),bC=hl(function(a,l,d,g){cp(a,l,d,g)}),FL=bi(function(a,l){var d={};if(a==null)return d;var g=!1;l=Rt(l,function(T){return T=sa(T,a),g||(g=T.length>1),T}),Lo(a,Fv(a),d),g&&(d=Hr(d,h|m|v,O7));for(var k=l.length;k--;)Tv(d,l[k]);return d});function $L(a,l){return xC(a,kp(Oe(l)))}var BL=bi(function(a,l){return a==null?{}:d7(a,l)});function xC(a,l){if(a==null)return{};var d=Rt(Fv(a),function(g){return[g]});return l=Oe(l),f5(a,d,function(g,k){return l(g,k[0])})}function zL(a,l,d){l=sa(l,a);var g=-1,k=l.length;for(k||(k=1,a=n);++g<k;){var T=a==null?n:a[Do(l[g])];T===n&&(g=k,T=d),a=Si(T)?T.call(a):T}return a}function VL(a,l,d){return a==null?a:oc(a,l,d)}function WL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:oc(a,l,d,g)}var SC=M5(vn),wC=M5(sr);function jL(a,l,d){var g=$e(a),k=g||ua(a)||vl(a);if(l=Oe(l,4),d==null){var T=a&&a.constructor;k?d=g?new T:[]:Ft(a)?d=Si(T)?pl(Jd(a)):{}:d={}}return(k?Wr:No)(a,function(M,D,V){return l(d,M,D,V)}),d}function UL(a,l){return a==null?!0:Tv(a,l)}function HL(a,l,d){return a==null?a:g5(a,l,Rv(d))}function GL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:g5(a,l,Rv(d),g)}function yl(a){return a==null?[]:cv(a,vn(a))}function qL(a){return a==null?[]:cv(a,sr(a))}function KL(a,l,d){return d===n&&(d=l,l=n),d!==n&&(d=Kr(d),d=d===d?d:0),l!==n&&(l=Kr(l),l=l===l?l:0),is(Kr(a),l,d)}function YL(a,l,d){return l=wi(l),d===n?(d=l,l=0):d=wi(d),a=Kr(a),t7(a,l,d)}function ZL(a,l,d){if(d&&typeof d!="boolean"&&Gn(a,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof a=="boolean"&&(d=a,a=n)),a===n&&l===n?(a=0,l=1):(a=wi(a),l===n?(l=a,a=0):l=wi(l)),a>l){var g=a;a=l,l=g}if(d||a%1||l%1){var k=Gw();return Nn(a+k*(l-a+H("1e-"+((k+"").length-1))),l)}return Ev(a,l)}var XL=ml(function(a,l,d){return l=l.toLowerCase(),a+(d?CC(l):l)});function CC(a){return Jv(ut(a).toLowerCase())}function _C(a){return a=ut(a),a&&a.replace(Hg,V8).replace(zd,"")}function QL(a,l,d){a=ut(a),l=kr(l);var g=a.length;d=d===n?g:is(ze(d),0,g);var k=d;return d-=l.length,d>=0&&a.slice(d,k)==l}function JL(a){return a=ut(a),a&&fi.test(a)?a.replace(Qi,W8):a}function eD(a){return a=ut(a),a&&Rg.test(a)?a.replace(Du,"\\$&"):a}var tD=ml(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),nD=ml(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),rD=P5("toLowerCase");function oD(a,l,d){a=ut(a),l=ze(l);var g=l?ll(a):0;if(!l||g>=l)return a;var k=(l-g)/2;return gp(rp(k),d)+a+gp(np(k),d)}function iD(a,l,d){a=ut(a),l=ze(l);var g=l?ll(a):0;return l&&g<l?a+gp(l-g,d):a}function aD(a,l,d){a=ut(a),l=ze(l);var g=l?ll(a):0;return l&&g<l?gp(l-g,d)+a:a}function sD(a,l,d){return d||l==null?l=0:l&&(l=+l),h9(ut(a).replace(Fu,""),l||0)}function lD(a,l,d){return(d?Gn(a,l,d):l===n)?l=1:l=ze(l),Pv(ut(a),l)}function uD(){var a=arguments,l=ut(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var cD=ml(function(a,l,d){return a+(d?"_":"")+l.toLowerCase()});function fD(a,l,d){return d&&typeof d!="number"&&Gn(a,l,d)&&(l=d=n),d=d===n?R:d>>>0,d?(a=ut(a),a&&(typeof l=="string"||l!=null&&!Zv(l))&&(l=kr(l),!l&&sl(a))?la(po(a),0,d):a.split(l,d)):[]}var dD=ml(function(a,l,d){return a+(d?" ":"")+Jv(l)});function pD(a,l,d){return a=ut(a),d=d==null?0:is(ze(d),0,a.length),l=kr(l),a.slice(d,d+l.length)==l}function hD(a,l,d){var g=A.templateSettings;d&&Gn(a,l,d)&&(l=n),a=ut(a),l=Ap({},l,g,N5);var k=Ap({},l.imports,g.imports,N5),T=vn(k),M=cv(k,T),D,V,X=0,Q=l.interpolate||ea,oe="__p += '",pe=dv((l.escape||ea).source+"|"+Q.source+"|"+(Q===wd?Bg:ea).source+"|"+(l.evaluate||ea).source+"|$","g"),Ae="//# sourceURL="+(pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wd+"]")+`
|
|
`;a.replace(pe,function(Me,qe,Ze,Pr,qn,Ar){return Ze||(Ze=Pr),oe+=a.slice(X,Ar).replace(Gg,j8),qe&&(D=!0,oe+=`' +
|
|
__e(`+qe+`) +
|
|
'`),qn&&(V=!0,oe+=`';
|
|
`+qn+`;
|
|
__p += '`),Ze&&(oe+=`' +
|
|
((__t = (`+Ze+`)) == null ? '' : __t) +
|
|
'`),X=Ar+Me.length,Me}),oe+=`';
|
|
`;var Re=pt.call(l,"variable")&&l.variable;if(!Re)oe=`with (obj) {
|
|
`+oe+`
|
|
}
|
|
`;else if(Fg.test(Re))throw new Fe(u);oe=(V?oe.replace(es,""):oe).replace(Zs,"$1").replace(Eg,"$1;"),oe="function("+(Re||"obj")+`) {
|
|
`+(Re?"":`obj || (obj = {});
|
|
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
|
|
function print() { __p += __j.call(arguments, '') }
|
|
`:`;
|
|
`)+oe+`return __p
|
|
}`;var Ve=EC(function(){return nt(T,Ae+"return "+oe).apply(n,M)});if(Ve.source=oe,Yv(Ve))throw Ve;return Ve}function mD(a){return ut(a).toLowerCase()}function gD(a){return ut(a).toUpperCase()}function vD(a,l,d){if(a=ut(a),a&&(d||l===n))return Lw(a);if(!a||!(l=kr(l)))return a;var g=po(a),k=po(l),T=Dw(g,k),M=Fw(g,k)+1;return la(g,T,M).join("")}function yD(a,l,d){if(a=ut(a),a&&(d||l===n))return a.slice(0,Bw(a)+1);if(!a||!(l=kr(l)))return a;var g=po(a),k=Fw(g,po(l))+1;return la(g,0,k).join("")}function bD(a,l,d){if(a=ut(a),a&&(d||l===n))return a.replace(Fu,"");if(!a||!(l=kr(l)))return a;var g=po(a),k=Dw(g,po(l));return la(g,k).join("")}function xD(a,l){var d=W,g=te;if(Ft(l)){var k="separator"in l?l.separator:k;d="length"in l?ze(l.length):d,g="omission"in l?kr(l.omission):g}a=ut(a);var T=a.length;if(sl(a)){var M=po(a);T=M.length}if(d>=T)return a;var D=d-ll(g);if(D<1)return g;var V=M?la(M,0,D).join(""):a.slice(0,D);if(k===n)return V+g;if(M&&(D+=V.length-D),Zv(k)){if(a.slice(D).search(k)){var X,Q=V;for(k.global||(k=dv(k.source,ut(di.exec(k))+"g")),k.lastIndex=0;X=k.exec(Q);)var oe=X.index;V=V.slice(0,oe===n?D:oe)}}else if(a.indexOf(kr(k),D)!=D){var pe=V.lastIndexOf(k);pe>-1&&(V=V.slice(0,pe))}return V+g}function SD(a){return a=ut(a),a&&Pg.test(a)?a.replace(Lu,Z8):a}var wD=ml(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),Jv=P5("toUpperCase");function kC(a,l,d){return a=ut(a),l=d?n:l,l===n?H8(a)?J8(a):D8(a):a.match(l)||[]}var EC=Ue(function(a,l){try{return Cr(a,n,l)}catch(d){return Yv(d)?d:new Fe(d)}}),CD=bi(function(a,l){return Wr(l,function(d){d=Do(d),vi(a,d,qv(a[d],a))}),a});function _D(a){var l=a==null?0:a.length,d=Oe();return a=l?Rt(a,function(g){if(typeof g[1]!="function")throw new jr(s);return[d(g[0]),g[1]]}):[],Ue(function(g){for(var k=-1;++k<l;){var T=a[k];if(Cr(T[0],this,g))return Cr(T[1],this,g)}})}function kD(a){return Z9(Hr(a,h))}function e1(a){return function(){return a}}function ED(a,l){return a==null||a!==a?l:a}var PD=T5(),AD=T5(!0);function lr(a){return a}function t1(a){return i5(typeof a=="function"?a:Hr(a,h))}function TD(a){return s5(Hr(a,h))}function ID(a,l){return l5(a,Hr(l,h))}var OD=Ue(function(a,l){return function(d){return nc(d,a,l)}}),RD=Ue(function(a,l){return function(d){return nc(a,d,l)}});function n1(a,l,d){var g=vn(l),k=up(l,g);d==null&&!(Ft(l)&&(k.length||!g.length))&&(d=l,l=a,a=this,k=up(l,vn(l)));var T=!(Ft(d)&&"chain"in d)||!!d.chain,M=Si(a);return Wr(k,function(D){var V=l[D];a[D]=V,M&&(a.prototype[D]=function(){var X=this.__chain__;if(T||X){var Q=a(this.__wrapped__),oe=Q.__actions__=ir(this.__actions__);return oe.push({func:V,args:arguments,thisArg:a}),Q.__chain__=X,Q}return V.apply(a,na([this.value()],arguments))})}),a}function MD(){return Be._===this&&(Be._=i9),this}function r1(){}function ND(a){return a=ze(a),Ue(function(l){return u5(l,a)})}var LD=Nv(Rt),DD=Nv(Iw),FD=Nv(iv);function PC(a){return Vv(a)?av(Do(a)):p7(a)}function $D(a){return function(l){return a==null?n:as(a,l)}}var BD=O5(),zD=O5(!0);function o1(){return[]}function i1(){return!1}function VD(){return{}}function WD(){return""}function jD(){return!0}function UD(a,l){if(a=ze(a),a<1||a>j)return[];var d=R,g=Nn(a,R);l=Oe(l),a-=R;for(var k=uv(g,l);++d<a;)l(d);return k}function HD(a){return $e(a)?Rt(a,Do):Er(a)?[a]:ir(q5(ut(a)))}function GD(a){var l=++r9;return ut(a)+l}var qD=mp(function(a,l){return a+l},0),KD=Lv("ceil"),YD=mp(function(a,l){return a/l},1),ZD=Lv("floor");function XD(a){return a&&a.length?lp(a,lr,xv):n}function QD(a,l){return a&&a.length?lp(a,Oe(l,2),xv):n}function JD(a){return Mw(a,lr)}function eF(a,l){return Mw(a,Oe(l,2))}function tF(a){return a&&a.length?lp(a,lr,_v):n}function nF(a,l){return a&&a.length?lp(a,Oe(l,2),_v):n}var rF=mp(function(a,l){return a*l},1),oF=Lv("round"),iF=mp(function(a,l){return a-l},0);function aF(a){return a&&a.length?lv(a,lr):0}function sF(a,l){return a&&a.length?lv(a,Oe(l,2)):0}return A.after=TN,A.ary=oC,A.assign=gL,A.assignIn=yC,A.assignInWith=Ap,A.assignWith=vL,A.at=yL,A.before=iC,A.bind=qv,A.bindAll=CD,A.bindKey=aC,A.castArray=VN,A.chain=tC,A.chunk=Z7,A.compact=X7,A.concat=Q7,A.cond=_D,A.conforms=kD,A.constant=e1,A.countBy=aN,A.create=bL,A.curry=sC,A.curryRight=lC,A.debounce=uC,A.defaults=xL,A.defaultsDeep=SL,A.defer=IN,A.delay=ON,A.difference=J7,A.differenceBy=eM,A.differenceWith=tM,A.drop=nM,A.dropRight=rM,A.dropRightWhile=oM,A.dropWhile=iM,A.fill=aM,A.filter=lN,A.flatMap=fN,A.flatMapDeep=dN,A.flatMapDepth=pN,A.flatten=X5,A.flattenDeep=sM,A.flattenDepth=lM,A.flip=RN,A.flow=PD,A.flowRight=AD,A.fromPairs=uM,A.functions=AL,A.functionsIn=TL,A.groupBy=hN,A.initial=fM,A.intersection=dM,A.intersectionBy=pM,A.intersectionWith=hM,A.invert=OL,A.invertBy=RL,A.invokeMap=gN,A.iteratee=t1,A.keyBy=vN,A.keys=vn,A.keysIn=sr,A.map=wp,A.mapKeys=NL,A.mapValues=LL,A.matches=TD,A.matchesProperty=ID,A.memoize=_p,A.merge=DL,A.mergeWith=bC,A.method=OD,A.methodOf=RD,A.mixin=n1,A.negate=kp,A.nthArg=ND,A.omit=FL,A.omitBy=$L,A.once=MN,A.orderBy=yN,A.over=LD,A.overArgs=NN,A.overEvery=DD,A.overSome=FD,A.partial=Kv,A.partialRight=cC,A.partition=bN,A.pick=BL,A.pickBy=xC,A.property=PC,A.propertyOf=$D,A.pull=yM,A.pullAll=J5,A.pullAllBy=bM,A.pullAllWith=xM,A.pullAt=SM,A.range=BD,A.rangeRight=zD,A.rearg=LN,A.reject=wN,A.remove=wM,A.rest=DN,A.reverse=Hv,A.sampleSize=_N,A.set=VL,A.setWith=WL,A.shuffle=kN,A.slice=CM,A.sortBy=AN,A.sortedUniq=IM,A.sortedUniqBy=OM,A.split=fD,A.spread=FN,A.tail=RM,A.take=MM,A.takeRight=NM,A.takeRightWhile=LM,A.takeWhile=DM,A.tap=XM,A.throttle=$N,A.thru=Sp,A.toArray=mC,A.toPairs=SC,A.toPairsIn=wC,A.toPath=HD,A.toPlainObject=vC,A.transform=jL,A.unary=BN,A.union=FM,A.unionBy=$M,A.unionWith=BM,A.uniq=zM,A.uniqBy=VM,A.uniqWith=WM,A.unset=UL,A.unzip=Gv,A.unzipWith=eC,A.update=HL,A.updateWith=GL,A.values=yl,A.valuesIn=qL,A.without=jM,A.words=kC,A.wrap=zN,A.xor=UM,A.xorBy=HM,A.xorWith=GM,A.zip=qM,A.zipObject=KM,A.zipObjectDeep=YM,A.zipWith=ZM,A.entries=SC,A.entriesIn=wC,A.extend=yC,A.extendWith=Ap,n1(A,A),A.add=qD,A.attempt=EC,A.camelCase=XL,A.capitalize=CC,A.ceil=KD,A.clamp=KL,A.clone=WN,A.cloneDeep=UN,A.cloneDeepWith=HN,A.cloneWith=jN,A.conformsTo=GN,A.deburr=_C,A.defaultTo=ED,A.divide=YD,A.endsWith=QL,A.eq=mo,A.escape=JL,A.escapeRegExp=eD,A.every=sN,A.find=uN,A.findIndex=Y5,A.findKey=wL,A.findLast=cN,A.findLastIndex=Z5,A.findLastKey=CL,A.floor=ZD,A.forEach=nC,A.forEachRight=rC,A.forIn=_L,A.forInRight=kL,A.forOwn=EL,A.forOwnRight=PL,A.get=Xv,A.gt=qN,A.gte=KN,A.has=IL,A.hasIn=Qv,A.head=Q5,A.identity=lr,A.includes=mN,A.indexOf=cM,A.inRange=YL,A.invoke=ML,A.isArguments=us,A.isArray=$e,A.isArrayBuffer=YN,A.isArrayLike=ar,A.isArrayLikeObject=Qt,A.isBoolean=ZN,A.isBuffer=ua,A.isDate=XN,A.isElement=QN,A.isEmpty=JN,A.isEqual=eL,A.isEqualWith=tL,A.isError=Yv,A.isFinite=nL,A.isFunction=Si,A.isInteger=fC,A.isLength=Ep,A.isMap=dC,A.isMatch=rL,A.isMatchWith=oL,A.isNaN=iL,A.isNative=aL,A.isNil=lL,A.isNull=sL,A.isNumber=pC,A.isObject=Ft,A.isObjectLike=Ht,A.isPlainObject=lc,A.isRegExp=Zv,A.isSafeInteger=uL,A.isSet=hC,A.isString=Pp,A.isSymbol=Er,A.isTypedArray=vl,A.isUndefined=cL,A.isWeakMap=fL,A.isWeakSet=dL,A.join=mM,A.kebabCase=tD,A.last=qr,A.lastIndexOf=gM,A.lowerCase=nD,A.lowerFirst=rD,A.lt=pL,A.lte=hL,A.max=XD,A.maxBy=QD,A.mean=JD,A.meanBy=eF,A.min=tF,A.minBy=nF,A.stubArray=o1,A.stubFalse=i1,A.stubObject=VD,A.stubString=WD,A.stubTrue=jD,A.multiply=rF,A.nth=vM,A.noConflict=MD,A.noop=r1,A.now=Cp,A.pad=oD,A.padEnd=iD,A.padStart=aD,A.parseInt=sD,A.random=ZL,A.reduce=xN,A.reduceRight=SN,A.repeat=lD,A.replace=uD,A.result=zL,A.round=oF,A.runInContext=B,A.sample=CN,A.size=EN,A.snakeCase=cD,A.some=PN,A.sortedIndex=_M,A.sortedIndexBy=kM,A.sortedIndexOf=EM,A.sortedLastIndex=PM,A.sortedLastIndexBy=AM,A.sortedLastIndexOf=TM,A.startCase=dD,A.startsWith=pD,A.subtract=iF,A.sum=aF,A.sumBy=sF,A.template=hD,A.times=UD,A.toFinite=wi,A.toInteger=ze,A.toLength=gC,A.toLower=mD,A.toNumber=Kr,A.toSafeInteger=mL,A.toString=ut,A.toUpper=gD,A.trim=vD,A.trimEnd=yD,A.trimStart=bD,A.truncate=xD,A.unescape=SD,A.uniqueId=GD,A.upperCase=wD,A.upperFirst=Jv,A.each=nC,A.eachRight=rC,A.first=Q5,n1(A,function(){var a={};return No(A,function(l,d){pt.call(A.prototype,d)||(a[d]=l)}),a}(),{chain:!1}),A.VERSION=r,Wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){A[a].placeholder=A}),Wr(["drop","take"],function(a,l){Ke.prototype[a]=function(d){d=d===n?1:cn(ze(d),0);var g=this.__filtered__&&!l?new Ke(this):this.clone();return g.__filtered__?g.__takeCount__=Nn(d,g.__takeCount__):g.__views__.push({size:Nn(d,R),type:a+(g.__dir__<0?"Right":"")}),g},Ke.prototype[a+"Right"]=function(d){return this.reverse()[a](d).reverse()}}),Wr(["filter","map","takeWhile"],function(a,l){var d=l+1,g=d==ye||d==ae;Ke.prototype[a]=function(k){var T=this.clone();return T.__iteratees__.push({iteratee:Oe(k,3),type:d}),T.__filtered__=T.__filtered__||g,T}}),Wr(["head","last"],function(a,l){var d="take"+(l?"Right":"");Ke.prototype[a]=function(){return this[d](1).value()[0]}}),Wr(["initial","tail"],function(a,l){var d="drop"+(l?"":"Right");Ke.prototype[a]=function(){return this.__filtered__?new Ke(this):this[d](1)}}),Ke.prototype.compact=function(){return this.filter(lr)},Ke.prototype.find=function(a){return this.filter(a).head()},Ke.prototype.findLast=function(a){return this.reverse().find(a)},Ke.prototype.invokeMap=Ue(function(a,l){return typeof a=="function"?new Ke(this):this.map(function(d){return nc(d,a,l)})}),Ke.prototype.reject=function(a){return this.filter(kp(Oe(a)))},Ke.prototype.slice=function(a,l){a=ze(a);var d=this;return d.__filtered__&&(a>0||l<0)?new Ke(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=ze(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ke.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ke.prototype.toArray=function(){return this.take(R)},No(Ke.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),k=A[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!k||(A.prototype[l]=function(){var M=this.__wrapped__,D=g?[1]:arguments,V=M instanceof Ke,X=D[0],Q=V||$e(M),oe=function(qe){var Ze=k.apply(A,na([qe],D));return g&&pe?Ze[0]:Ze};Q&&d&&typeof X=="function"&&X.length!=1&&(V=Q=!1);var pe=this.__chain__,Ae=!!this.__actions__.length,Re=T&&!pe,Ve=V&&!Ae;if(!T&&Q){M=Ve?M:new Ke(this);var Me=a.apply(M,D);return Me.__actions__.push({func:Sp,args:[oe],thisArg:n}),new Ur(Me,pe)}return Re&&Ve?a.apply(this,D):(Me=this.thru(oe),Re?g?Me.value()[0]:Me.value():Me)})}),Wr(["pop","push","shift","sort","splice","unshift"],function(a){var l=qd[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);A.prototype[a]=function(){var k=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply($e(T)?T:[],k)}return this[d](function(M){return l.apply($e(M)?M:[],k)})}}),No(Ke.prototype,function(a,l){var d=A[l];if(d){var g=d.name+"";pt.call(dl,g)||(dl[g]=[]),dl[g].push({name:l,func:d})}}),dl[hp(n,w).name]=[{name:"wrapper",func:n}],Ke.prototype.clone=S9,Ke.prototype.reverse=w9,Ke.prototype.value=C9,A.prototype.at=QM,A.prototype.chain=JM,A.prototype.commit=eN,A.prototype.next=tN,A.prototype.plant=rN,A.prototype.reverse=oN,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=iN,A.prototype.first=A.prototype.head,Yu&&(A.prototype[Yu]=nN),A},ul=e9();tt?((tt.exports=ul)._=ul,je._=ul):Be._=ul}).call(Ri)})(Yt,Yt.exports);const Nue={currentImageUuid:"",images:[],nextPage:1,offset:0},UR=pw({name:"gallery",initialState:Nue,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,r=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(s=>s.uuid===n),i=Yt.exports.clamp(o,0,r.length-1);e.currentImage=r.length?r[i]:void 0,e.currentImageUuid=r.length?r[i].uuid:""}e.images=r},addImage:(e,t)=>{e.images.unshift(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload,e.offset+=1},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},addGalleryImages:(e,t)=>{const{images:n,nextPage:r,offset:o}=t.payload;if(n.length){const i=n[0];e.images=e.images.concat(n).sort((s,u)=>u.mtime-s.mtime),e.currentImage=i,e.currentImageUuid=i.uuid,e.nextPage=r,e.offset=o}}}}),{addImage:dh,clearIntermediateImage:H3,removeImage:Lue,setCurrentImage:Due,addGalleryImages:Fue,setIntermediateImage:$ue}=UR.actions,Bue=UR.reducer,zue={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:""},Vue=zue,HR=pw({name:"system",initialState:Vue,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>{const n=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:n}},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:o}=t.payload,s={timestamp:n,message:r,level:o||"info"};e.log.push(s)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload}}}),{setShouldDisplayInProgress:Wue,setIsProcessing:Oi,addLogEntry:Yn,setShouldShowLogViewer:jue,setIsConnected:G3,setSocketId:Ppe,setShouldConfirmOnDelete:GR,setOpenAccordions:Uue,setSystemStatus:Hue,setCurrentStatus:q3,setSystemConfig:Gue,setShouldDisplayGuides:que}=HR.actions,Kue=HR.reducer,li=Object.create(null);li.open="0";li.close="1";li.ping="2";li.pong="3";li.message="4";li.upgrade="5";li.noop="6";const Hh=Object.create(null);Object.keys(li).forEach(e=>{Hh[li[e]]=e});const Yue={type:"error",data:"parser error"},Zue=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xue=typeof ArrayBuffer=="function",Que=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qR=({type:e,data:t},n,r)=>Zue&&t instanceof Blob?n?r(t):K3(t,r):Xue&&(t instanceof ArrayBuffer||Que(t))?n?r(t):K3(new Blob([t]),r):r(li[e]+(t||"")),K3=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},Y3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Y3.length;e++)Mc[Y3.charCodeAt(e)]=e;const Jue=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r<n;r+=4)i=Mc[e.charCodeAt(r)],s=Mc[e.charCodeAt(r+1)],u=Mc[e.charCodeAt(r+2)],c=Mc[e.charCodeAt(r+3)],p[o++]=i<<2|s>>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},ece=typeof ArrayBuffer=="function",KR=(e,t)=>{if(typeof e!="string")return{type:"message",data:YR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:tce(e.substring(1),t)}:Hh[n]?e.length>1?{type:Hh[n],data:e.substring(1)}:{type:Hh[n]}:Yue},tce=(e,t)=>{if(ece){const n=Jue(e);return YR(n,t)}else return{base64:!0,data:e}},YR=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},ZR=String.fromCharCode(30),nce=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{qR(i,!1,u=>{r[s]=u,++o===n&&t(r.join(ZR))})})},rce=(e,t)=>{const n=e.split(ZR),r=[];for(let o=0;o<n.length;o++){const i=KR(n[o],t);if(r.push(i),i.type==="error")break}return r},XR=4;function ln(e){if(e)return oce(e)}function oce(e){for(var t in ln.prototype)e[t]=ln.prototype[t];return e}ln.prototype.on=ln.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ln.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ln.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};ln.prototype.emitReserved=ln.prototype.emit;ln.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ln.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ia=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function QR(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const ice=setTimeout,ace=clearTimeout;function kg(e,t){t.useNativeTimers?(e.setTimeoutFn=ice.bind(Ia),e.clearTimeoutFn=ace.bind(Ia)):(e.setTimeoutFn=setTimeout.bind(Ia),e.clearTimeoutFn=clearTimeout.bind(Ia))}const sce=1.33;function lce(e){return typeof e=="string"?uce(e):Math.ceil((e.byteLength||e.size)*sce)}function uce(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class cce extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class JR extends ln{constructor(t){super(),this.writable=!1,kg(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new cce(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=KR(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const e8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),P2=64,fce={};let Z3=0,ph=0,X3;function Q3(e){let t="";do t=e8[e%P2]+t,e=Math.floor(e/P2);while(e>0);return t}function t8(){const e=Q3(+new Date);return e!==X3?(Z3=0,X3=e):e+"."+Q3(Z3++)}for(;ph<P2;ph++)fce[e8[ph]]=ph;function n8(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function dce(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let r8=!1;try{r8=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const pce=r8;function o8(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||pce))return new XMLHttpRequest}catch{}if(!t)try{return new Ia[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function hce(){}const mce=function(){return new o8({xdomain:!1}).responseType!=null}();class gce extends JR{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=mce&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};rce(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,nce(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=t8()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=n8(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new ii(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ii extends ln{constructor(t,n){super(),kg(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=QR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new o8(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=ii.requestsCount++,ii.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=hce,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ii.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ii.requestsCount=0;ii.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",J3);else if(typeof addEventListener=="function"){const e="onpagehide"in Ia?"pagehide":"unload";addEventListener(e,J3,!1)}}function J3(){for(let e in ii.requests)ii.requests.hasOwnProperty(e)&&ii.requests[e].abort()}const vce=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),hh=Ia.WebSocket||Ia.MozWebSocket,eE=!0,yce="arraybuffer",tE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class bce extends JR{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=tE?{}:QR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=eE&&!tE?n?new hh(t,n):new hh(t):new hh(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||yce,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;qR(r,this.supportsBinary,i=>{const s={};try{eE&&this.ws.send(i)}catch{}o&&vce(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=t8()),this.supportsBinary||(t.b64=1);const o=n8(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!hh}}const xce={websocket:bce,polling:gce},Sce=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wce=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function A2(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Sce.exec(e||""),i={},s=14;for(;s--;)i[wce[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Cce(i,i.path),i.queryKey=_ce(i,i.query),i}function Cce(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&r.splice(0,1),t.substr(t.length-1,1)=="/"&&r.splice(r.length-1,1),r}function _ce(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class _a extends ln{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=A2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=A2(n.host).host),kg(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=dce(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new xce[t](r)}open(){let t;if(this.opts.rememberUpgrade&&_a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;_a.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;_a.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){s("transport closed")}function c(){s("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",s),n.once("close",u),this.once("close",c),this.once("upgrading",f),n.open()}onOpen(){if(this.readyState="open",_a.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=lce(o)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){_a.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}_a.protocol=XR;function kce(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=A2(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const Ece=typeof ArrayBuffer=="function",Pce=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,i8=Object.prototype.toString,Ace=typeof Blob=="function"||typeof Blob<"u"&&i8.call(Blob)==="[object BlobConstructor]",Tce=typeof File=="function"||typeof File<"u"&&i8.call(File)==="[object FileConstructor]";function _w(e){return Ece&&(e instanceof ArrayBuffer||Pce(e))||Ace&&e instanceof Blob||Tce&&e instanceof File}function Gh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Gh(e[n]))return!0;return!1}if(_w(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Gh(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Gh(e[n]))return!0;return!1}function Ice(e){const t=[],n=e.data,r=e;return r.data=T2(n,t),r.attachments=t.length,{packet:r,buffers:t}}function T2(e,t){if(!e)return e;if(_w(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=T2(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=T2(e[r],t));return n}return e}function Oce(e,t){return e.data=I2(e.data,t),e.attachments=void 0,e}function I2(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=I2(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=I2(e[n],t));return e}const Rce=5;var Xe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Xe||(Xe={}));class Mce{constructor(t){this.replacer=t}encode(t){return(t.type===Xe.EVENT||t.type===Xe.ACK)&&Gh(t)?(t.type=t.type===Xe.EVENT?Xe.BINARY_EVENT:Xe.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Xe.BINARY_EVENT||t.type===Xe.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Ice(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class kw extends ln{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t),n.type===Xe.BINARY_EVENT||n.type===Xe.BINARY_ACK?(this.reconstructor=new Nce(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_w(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Xe[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Xe.BINARY_EVENT||r.type===Xe.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(kw.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Xe.CONNECT:return typeof n=="object";case Xe.DISCONNECT:return n===void 0;case Xe.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case Xe.EVENT:case Xe.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case Xe.ACK:case Xe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Nce{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Oce(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Lce=Object.freeze(Object.defineProperty({__proto__:null,protocol:Rce,get PacketType(){return Xe},Encoder:Mce,Decoder:kw},Symbol.toStringTag,{value:"Module"}));function _o(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Dce=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a8 extends ln{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_o(t,"open",this.onopen.bind(this)),_o(t,"packet",this.onpacket.bind(this)),_o(t,"error",this.onerror.bind(this)),_o(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(Dce.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Xe.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,u=n.pop();this._registerAckCallback(s,u),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===t&&this.sendBuffer.splice(i,1);n.call(this,new Error("operation has timed out"))},r);this.acks[t]=(...i)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Xe.CONNECT,data:t})}):this.packet({type:Xe.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Xe.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Xe.EVENT:case Xe.BINARY_EVENT:this.onevent(t);break;case Xe.ACK:case Xe.BINARY_ACK:this.onack(t);break;case Xe.DISCONNECT:this.ondisconnect();break;case Xe.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Xe.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Nu(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Nu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Nu.prototype.reset=function(){this.attempts=0};Nu.prototype.setMin=function(e){this.ms=e};Nu.prototype.setMax=function(e){this.max=e};Nu.prototype.setJitter=function(e){this.jitter=e};class O2 extends ln{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,kg(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Nu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Lce;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _a(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=_o(n,"open",function(){r.onopen(),t&&t()}),i=_o(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const u=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&u.unref(),this.subs.push(function(){clearTimeout(u)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_o(t,"ping",this.onping.bind(this)),_o(t,"data",this.ondata.bind(this)),_o(t,"error",this.onerror.bind(this)),_o(t,"close",this.onclose.bind(this)),_o(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new a8(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Cc={};function qh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=kce(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Cc[o]&&i in Cc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new O2(r,t):(Cc[o]||(Cc[o]=new O2(r,t)),c=Cc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(qh,{Manager:O2,Socket:a8,io:qh,connect:qh});let mh;const Fce=new Uint8Array(16);function $ce(){if(!mh&&(mh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mh(Fce)}const En=[];for(let e=0;e<256;++e)En.push((e+256).toString(16).slice(1));function Bce(e,t=0){return(En[e[t+0]]+En[e[t+1]]+En[e[t+2]]+En[e[t+3]]+"-"+En[e[t+4]]+En[e[t+5]]+"-"+En[e[t+6]]+En[e[t+7]]+"-"+En[e[t+8]]+En[e[t+9]]+"-"+En[e[t+10]]+En[e[t+11]]+En[e[t+12]]+En[e[t+13]]+En[e[t+14]]+En[e[t+15]]).toLowerCase()}const zce=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nE={randomUUID:zce};function _c(e,t,n){if(nE.randomUUID&&!t&&!e)return nE.randomUUID();e=e||{};const r=e.random||(e.rng||$ce)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return Bce(r)}var Vce=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Wce=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,jce=/[^-+\dA-Z]/g;function Zn(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(rE[t]||t||rE.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(r=!0));var i=function(){return n?"getUTC":"get"},s=function(){return e[i()+"Date"]()},u=function(){return e[i()+"Day"]()},c=function(){return e[i()+"Month"]()},f=function(){return e[i()+"FullYear"]()},p=function(){return e[i()+"Hours"]()},h=function(){return e[i()+"Minutes"]()},m=function(){return e[i()+"Seconds"]()},v=function(){return e[i()+"Milliseconds"]()},y=function(){return n?0:e.getTimezoneOffset()},x=function(){return Uce(e)},E=function(){return Hce(e)},w={d:function(){return s()},dd:function(){return Tr(s())},ddd:function(){return ur.dayNames[u()]},DDD:function(){return oE({y:f(),m:c(),d:s(),_:i(),dayName:ur.dayNames[u()],short:!0})},dddd:function(){return ur.dayNames[u()+7]},DDDD:function(){return oE({y:f(),m:c(),d:s(),_:i(),dayName:ur.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return Tr(c()+1)},mmm:function(){return ur.monthNames[c()]},mmmm:function(){return ur.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return Tr(f(),4)},h:function(){return p()%12||12},hh:function(){return Tr(p()%12||12)},H:function(){return p()},HH:function(){return Tr(p())},M:function(){return h()},MM:function(){return Tr(h())},s:function(){return m()},ss:function(){return Tr(m())},l:function(){return Tr(v(),3)},L:function(){return Tr(Math.floor(v()/10))},t:function(){return p()<12?ur.timeNames[0]:ur.timeNames[1]},tt:function(){return p()<12?ur.timeNames[2]:ur.timeNames[3]},T:function(){return p()<12?ur.timeNames[4]:ur.timeNames[5]},TT:function(){return p()<12?ur.timeNames[6]:ur.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":Gce(e)},o:function(){return(y()>0?"-":"+")+Tr(Math.floor(Math.abs(y())/60)*100+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+Tr(Math.floor(Math.abs(y())/60),2)+":"+Tr(Math.floor(Math.abs(y())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return x()},WW:function(){return Tr(x())},N:function(){return E()}};return t.replace(Vce,function(b){return b in w?w[b]():b.slice(1,b.length-1)})}var rE={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ur={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Tr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},oE=function(t){var n=t.y,r=t.m,o=t.d,i=t._,s=t.dayName,u=t.short,c=u===void 0?!1:u,f=new Date,p=new Date;p.setDate(p[i+"Date"]()-1);var h=new Date;h.setDate(h[i+"Date"]()+1);var m=function(){return f[i+"Date"]()},v=function(){return f[i+"Month"]()},y=function(){return f[i+"FullYear"]()},x=function(){return p[i+"Date"]()},E=function(){return p[i+"Month"]()},w=function(){return p[i+"FullYear"]()},b=function(){return h[i+"Date"]()},_=function(){return h[i+"Month"]()},P=function(){return h[i+"FullYear"]()};return y()===n&&v()===r&&m()===o?c?"Tdy":"Today":w()===n&&E()===r&&x()===o?c?"Ysd":"Yesterday":P()===n&&_()===r&&b()===o?c?"Tmw":"Tomorrow":s},Uce=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var o=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-o);var i=(n-r)/(864e5*7);return 1+Math.floor(i)},Hce=function(t){var n=t.getDay();return n===0&&(n=7),n},Gce=function(t){return(String(t).match(Wce)||[""]).pop().replace(jce,"").replace(/GMT\+0000/g,"UTC")};const s8=er("socketio/generateImage"),qce=er("socketio/runESRGAN"),Kce=er("socketio/runGFPGAN"),Yce=er("socketio/deleteImage"),Zce=er("socketio/requestImages"),Xce=er("socketio/requestNewImages"),Qce=er("socketio/cancelProcessing"),Jce=er("socketio/uploadInitialImage"),efe=er("socketio/uploadMaskImage"),tfe=er("socketio/requestSystemConfig"),nfe=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(G3(!0)),t(q3("Connected")),t(Xce())}catch(r){console.error(r)}},onDisconnect:()=>{try{t(G3(!1)),t(q3("Disconnected")),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{url:o,mtime:i,metadata:s}=r,u=_c();t(dh({uuid:u,url:o,mtime:i,metadata:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(Oi(!1))}catch(o){console.error(o)}},onIntermediateResult:r=>{try{const o=_c(),{url:i,metadata:s,mtime:u}=r;t($ue({uuid:o,url:i,mtime:u,metadata:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Intermediate image generated: ${i}`})),t(Oi(!1))}catch(o){console.error(o)}},onESRGANResult:r=>{try{const{url:o,metadata:i,mtime:s}=r;t(dh({uuid:_c(),url:o,mtime:s,metadata:i})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(Oi(!1))}catch(o){console.error(o)}},onGFPGANResult:r=>{try{const{url:o,metadata:i,mtime:s}=r;t(dh({uuid:_c(),url:o,mtime:s,metadata:i})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:r=>{try{t(Oi(!0)),t(Hue(r))}catch(o){console.error(o)}},onError:r=>{const{message:o,additionalData:i}=r;try{t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Oi(!1)),t(H3())}catch(s){console.error(s)}},onGalleryImages:r=>{const{images:o,nextPage:i,offset:s}=r,u=o.map(c=>{const{url:f,metadata:p,mtime:h}=c;return{uuid:_c(),url:f,mtime:h,metadata:p}});t(Fue({images:u,nextPage:i,offset:s})),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Oi(!1));const{intermediateImage:r}=n().gallery;r&&(t(dh(r)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(H3())),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:o,uuid:i}=r;t(Lue(i)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:r=>{const{url:o}=r;t(_g(o)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:r=>{const{url:o}=r;t(Cw(o)),t(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:r=>{t(Gue(r))}}},rfe=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_dpm_fast","k_dpm_adaptive","k_euler","k_euler_a","k_heun"],ofe=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],ife=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],afe=[{key:"2x",value:2},{key:"4x",value:4}],R2=0,M2=4294967295,l8=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),sfe=(e,t)=>{const{prompt:n,iterations:r,steps:o,cfgScale:i,threshold:s,perlin:u,height:c,width:f,sampler:p,seed:h,seamless:m,shouldUseInitImage:v,img2imgStrength:y,initialImagePath:x,maskPath:E,shouldFitToWidthHeight:w,shouldGenerateVariations:b,variationAmount:_,seedWeights:P,shouldRunESRGAN:I,upscalingLevel:N,upscalingStrength:L,shouldRunGFPGAN:z,gfpganStrength:K,shouldRandomizeSeed:W}=e,{shouldDisplayInProgress:te}=t,be={prompt:n,iterations:r,steps:o,cfg_scale:i,threshold:s,perlin:u,height:c,width:f,sampler_name:p,seed:h,seamless:m,progress_images:te};be.seed=W?l8(R2,M2):h,v&&(be.init_img=x,be.strength=y,be.fit=w,E&&(be.init_mask=E)),b?(be.variation_amount=_,P&&(be.with_variations=Sue(P))):be.variation_amount=0;let _e=!1,ye=!1;return I&&(_e={level:N,strength:L}),z&&(ye={strength:K}),{generationParameters:be,esrganParameters:_e,gfpganParameters:ye}},lfe=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:()=>{n(Oi(!0));const{generationParameters:o,esrganParameters:i,gfpganParameters:s}=sfe(r().options,r().system);t.emit("generateImage",o,i,s),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...i,...s})}`}))},emitRunESRGAN:o=>{n(Oi(!0));const{upscalingLevel:i,upscalingStrength:s}=r().options,u={upscale:[i,s]};t.emit("runESRGAN",o,u),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...u})}`}))},emitRunGFPGAN:o=>{n(Oi(!0));const{gfpganStrength:i}=r().options,s={gfpgan_strength:i};t.emit("runGFPGAN",o,s),n(Yn({timestamp:Zn(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...s})}`}))},emitDeleteImage:o=>{const{url:i,uuid:s}=o;t.emit("deleteImage",i,s)},emitRequestImages:()=>{const{nextPage:o,offset:i}=r().gallery;t.emit("requestImages",o,i)},emitRequestNewImages:()=>{const{nextPage:o,offset:i,images:s}=r().gallery;s.length>0?t.emit("requestImages",o,i,s[0].mtime):t.emit("requestImages",o,i)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},ufe=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=qh(`http://${e}:${t}`,{timeout:6e4});let r=!1;return i=>s=>u=>{const{onConnect:c,onDisconnect:f,onError:p,onESRGANResult:h,onGFPGANResult:m,onGenerationResult:v,onIntermediateResult:y,onProgressUpdate:x,onGalleryImages:E,onProcessingCanceled:w,onImageDeleted:b,onInitialImageUploaded:_,onMaskImageUploaded:P,onSystemConfig:I}=nfe(i),{emitGenerateImage:N,emitRunESRGAN:L,emitRunGFPGAN:z,emitDeleteImage:K,emitRequestImages:W,emitRequestNewImages:te,emitCancelProcessing:be,emitUploadInitialImage:_e,emitUploadMaskImage:ye,emitRequestSystemConfig:Ce}=lfe(i,n);switch(r||(n.on("connect",()=>c()),n.on("disconnect",()=>f()),n.on("error",ae=>p(ae)),n.on("generationResult",ae=>v(ae)),n.on("esrganResult",ae=>h(ae)),n.on("gfpganResult",ae=>m(ae)),n.on("intermediateResult",ae=>y(ae)),n.on("progressUpdate",ae=>x(ae)),n.on("galleryImages",ae=>E(ae)),n.on("processingCanceled",()=>{w()}),n.on("imageDeleted",ae=>{b(ae)}),n.on("initialImageUploaded",ae=>{_(ae)}),n.on("maskImageUploaded",ae=>{P(ae)}),n.on("systemConfig",ae=>{I(ae)}),r=!0),u.type){case"socketio/generateImage":{N();break}case"socketio/runESRGAN":{L(u.payload);break}case"socketio/runGFPGAN":{z(u.payload);break}case"socketio/deleteImage":{K(u.payload);break}case"socketio/requestImages":{W();break}case"socketio/requestNewImages":{te();break}case"socketio/cancelProcessing":{be();break}case"socketio/uploadInitialImage":{_e(u.payload);break}case"socketio/uploadMaskImage":{ye(u.payload);break}case"socketio/requestSystemConfig":{Ce();break}}s(u)}},cfe={key:"root",storage:Sw,blacklist:["gallery","system"]},ffe={key:"system",storage:Sw,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},dfe=pR({options:Mue,gallery:Bue,system:OR(ffe,Kue)}),pfe=OR(cfe,dfe),u8=ile({reducer:pfe,middleware:e=>e({serializableCheck:!1}).concat(ufe())}),Sn=Ule,xt=Mle;function Kh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kh=function(n){return typeof n}:Kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kh(e)}function hfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mfe(e,t,n){return t&&iE(e.prototype,t),n&&iE(e,n),e}function gfe(e,t){return t&&(Kh(t)==="object"||typeof t=="function")?t:Yh(e)}function N2(e){return N2=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},N2(e)}function Yh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L2(e,t)}function L2(e,t){return L2=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},L2(e,t)}function Zh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c8=function(e){vfe(t,e);function t(){var n,r;hfe(this,t);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=gfe(this,(n=N2(t)).call.apply(n,[this].concat(i))),Zh(Yh(r),"state",{bootstrapped:!1}),Zh(Yh(r),"_unsubscribe",void 0),Zh(Yh(r),"handlePersistorState",function(){var u=r.props.persistor,c=u.getState(),f=c.bootstrapped;f&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return mfe(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(C.exports.PureComponent);Zh(c8,"defaultProps",{children:null,loading:null});const aE=Ese({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}}),f8=()=>S(We,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:S(ng,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})});var sE={path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),S("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},d8=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Zt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??sE.viewBox;if(n&&typeof n!="string")return J.createElement(ie.svg,{as:n,...m,...f});const y=s??sE.path;return J.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});d8.displayName="Icon";function Te(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=C.exports.Children.toArray(e.path),s=ce((u,c)=>S(d8,{ref:c,viewBox:t,...o,...u,children:i.length?i:S("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}Te({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Te({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Te({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Te({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Te({displayName:"SunIcon",path:ee("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[S("circle",{cx:"12",cy:"12",r:"5"}),S("path",{d:"M12 1v2"}),S("path",{d:"M12 21v2"}),S("path",{d:"M4.22 4.22l1.42 1.42"}),S("path",{d:"M18.36 18.36l1.42 1.42"}),S("path",{d:"M1 12h2"}),S("path",{d:"M21 12h2"}),S("path",{d:"M4.22 19.78l1.42-1.42"}),S("path",{d:"M18.36 5.64l1.42-1.42"})]})});Te({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Te({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:S("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Te({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Te({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Te({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Te({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Te({displayName:"ViewIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),S("circle",{cx:"12",cy:"12",r:"2"})]})});Te({displayName:"ViewOffIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),S("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})});Te({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Te({displayName:"DeleteIcon",path:S("g",{fill:"currentColor",children:S("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});Te({displayName:"RepeatIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),S("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})});Te({displayName:"RepeatClockIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),S("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})});Te({displayName:"EditIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),S("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})});Te({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Te({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Te({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Te({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Te({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Te({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Te({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Te({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Te({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var p8=Te({displayName:"ExternalLinkIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),S("path",{d:"M15 3h6v6"}),S("path",{d:"M10 14L21 3"})]})});Te({displayName:"LinkIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),S("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})});Te({displayName:"PlusSquareIcon",path:ee("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[S("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),S("path",{d:"M12 8v8"}),S("path",{d:"M8 12h8"})]})});Te({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Te({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Te({displayName:"TimeIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),S("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})});Te({displayName:"ArrowRightIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),S("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});Te({displayName:"ArrowLeftIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),S("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})});Te({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Te({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Te({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Te({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Te({displayName:"EmailIcon",path:ee("g",{fill:"currentColor",children:[S("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),S("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"})]})});Te({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Te({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Te({displayName:"SpinnerIcon",path:ee(Rn,{children:[S("defs",{children:ee("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[S("stop",{stopColor:"currentColor",offset:"0%"}),S("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"})]})}),ee("g",{transform:"translate(2)",fill:"none",children:[S("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),S("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),S("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})]})]})});Te({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Te({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:S("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Te({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Te({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Te({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Te({displayName:"InfoOutlineIcon",path:ee("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[S("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),S("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),S("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})});Te({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Te({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"});Te({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Te({displayName:"QuestionOutlineIcon",path:ee("g",{stroke:"currentColor",strokeWidth:"1.5",children:[S("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),S("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),S("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});Te({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Te({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Te({viewBox:"0 0 14 14",path:S("g",{fill:"currentColor",children:S("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});Te({displayName:"MinusIcon",path:S("g",{fill:"currentColor",children:S("rect",{height:"4",width:"20",x:"2",y:"10"})})});Te({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var h8={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lE=J.createContext&&J.createContext(h8),Va=globalThis&&globalThis.__assign||function(){return Va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Va.apply(this,arguments)},yfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m8(e){return e&&e.map(function(t,n){return J.createElement(t.tag,Va({key:n},t.attr),m8(t.child))})}function or(e){return function(t){return S(bfe,{...Va({attr:Va({},e.attr)},t),children:m8(e.child)})}}function bfe(e){var t=function(n){var r=e.attr,o=e.size,i=e.title,s=yfe(e,["attr","size","title"]),u=o||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),ee("svg",{...Va({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:Va(Va({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),children:[i&&S("title",{children:i}),e.children]})};return lE!==void 0?S(lE.Consumer,{children:function(n){return t(n)}}):t(h8)}function g8(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}function xfe(e){return or({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(e)}function Sfe(e){return or({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}]})(e)}function wfe(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function Cfe(e){return or({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function _fe(e){return or({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function kfe(e){return or({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function Efe(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(e)}function Pfe(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function Afe(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(e)}function Tfe(e){return or({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function uE(e){return or({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function cE(e){return or({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}const en=({label:e,value:t,onClick:n,isLink:r})=>ee(We,{gap:2,children:[n&&S(za,{label:`Recall ${e}`,children:S(pr,{"aria-label":"Use this parameter",icon:S(g8,{}),size:"xs",variant:"ghost",fontSize:20,onClick:n})}),ee(Kt,{fontWeight:"semibold",whiteSpace:"nowrap",children:[e,":"]}),r?ee($f,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",S(p8,{mx:"2px"})]}):S(Kt,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:t.toString()})]}),Ife=(e,t)=>e.image.uuid===t.image.uuid,Ofe=C.exports.memo(({image:e})=>{const t=Sn(),n=Ba("blackAlpha.100","whiteAlpha.100"),r=e?.metadata?.image||{},{type:o,postprocessing:i,sampler:s,prompt:u,seed:c,variations:f,steps:p,cfg_scale:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:w,mask_image_path:b,orig_path:_,scale:P}=r,I=JSON.stringify(r,null,2);return ee(We,{gap:1,direction:"column",overflowY:"scroll",width:"100%",children:[ee(We,{gap:2,children:[S(Kt,{fontWeight:"semibold",children:"File:"}),ee($f,{href:e.url,isExternal:!0,children:[e.url,S(p8,{mx:"2px"})]})]}),Object.keys(r).length>0?ee(Rn,{children:[o&&S(en,{label:"Type",value:o}),["esrgan","gfpgan"].includes(o)&&S(en,{label:"Original image",value:_,isLink:!0}),o==="gfpgan"&&x&&S(en,{label:"Fix faces strength",value:x,onClick:()=>t(_2(x))}),o==="esrgan"&&P&&S(en,{label:"Upscaling scale",value:P,onClick:()=>t(k2(P))}),o==="esrgan"&&x&&S(en,{label:"Upscaling strength",value:x,onClick:()=>t(E2(x))}),u&&S(en,{label:"Prompt",value:S2(u),onClick:()=>t(LR(u))}),c&&S(en,{label:"Seed",value:c,onClick:()=>t(Yf(c))}),s&&S(en,{label:"Sampler",value:s,onClick:()=>t(BR(s))}),p&&S(en,{label:"Steps",value:p,onClick:()=>t(DR(p))}),h&&S(en,{label:"CFG scale",value:h,onClick:()=>t(FR(h))}),f&&f.length>0&&S(en,{label:"Seed-weight pairs",value:w2(f),onClick:()=>t(WR(w2(f)))}),m&&S(en,{label:"Seamless",value:m,onClick:()=>t(C2(m))}),v&&S(en,{label:"Width",value:v,onClick:()=>t(C2(v))}),y&&S(en,{label:"Height",value:y,onClick:()=>t($R(y))}),w&&S(en,{label:"Initial image",value:w,isLink:!0,onClick:()=>t(_g(w))}),b&&S(en,{label:"Mask image",value:b,isLink:!0,onClick:()=>t(Cw(b))}),o==="img2img"&&x&&S(en,{label:"Image to image strength",value:x,onClick:()=>t(zR(x))}),E&&S(en,{label:"Image to image fit",value:E,onClick:()=>t(VR(E))}),i&&i.length>0&&i.map(N=>{if(N.type==="esrgan"){const{scale:L,strength:z}=N;return ee(Rn,{children:[S(en,{label:"Upscaling scale",value:L,onClick:()=>t(k2(L))}),S(en,{label:"Upscaling strength",value:z,onClick:()=>t(E2(z))})]})}else if(N.type==="gfpgan"){const{strength:L}=N;return S(en,{label:"Fix faces strength",value:L,onClick:()=>t(_2(L))})}}),ee(We,{gap:2,direction:"column",children:[ee(We,{gap:2,children:[S(za,{label:"Copy metadata JSON",children:S(pr,{"aria-label":"Copy metadata JSON",icon:S(_fe,{}),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(I)})}),S(Kt,{fontWeight:"semibold",children:"Metadata JSON:"})]}),S(Io,{overflow:"scroll",flexGrow:3,wordBreak:"break-all",bgColor:n,padding:2,children:S("pre",{children:I})})]})]}):S(Ff,{width:"100%",pt:10,children:S(Kt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},Ife),Rfe=jt(e=>e.system,e=>e.shouldConfirmOnDelete),v8=C.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:o,onClose:i}=Zb(),s=Sn(),u=xt(Rfe),c=C.exports.useRef(null),f=m=>{m.stopPropagation(),u?o():p()},p=()=>{s(Yce(e)),i()},h=m=>s(GR(!m.target.checked));return ee(Rn,{children:[C.exports.cloneElement(t,{onClick:f,ref:n}),S(YJ,{isOpen:r,leastDestructiveRef:c,onClose:i,children:S(H0,{children:ee(ZJ,{children:[S(JS,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),S(j0,{children:ee(We,{direction:"column",gap:5,children:[S(Kt,{children:"Are you sure? You can't undo this action afterwards."}),S(Bi,{children:ee(We,{alignItems:"center",children:[S(zi,{mb:0,children:"Don't ask me again"}),S(Vi,{checked:!u,onChange:h})]})})]})}),ee(QS,{children:[S(Ro,{ref:c,onClick:i,children:"Cancel"}),S(Ro,{colorScheme:"red",onClick:p,ml:3,children:"Delete"})]})]})})})]})}),Ti=e=>{const{label:t,size:n="sm",...r}=e;return S(Ro,{size:n,...r,children:t})},Mfe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Nfe=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const r=Sn(),{intermediateImage:o}=xt(w=>w.gallery),{upscalingLevel:i,gfpganStrength:s}=xt(w=>w.options),{isProcessing:u,isConnected:c,isGFPGANAvailable:f,isESRGANAvailable:p}=xt(Mfe),h=()=>r(_g(e.url)),m=()=>r(jR(e.metadata)),v=()=>r(Yf(e.metadata.image.seed)),y=()=>r(qce(e)),x=()=>r(Kce(e)),E=()=>n(!t);return ee(We,{gap:2,children:[S(Ti,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:h}),S(Ti,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:m}),S(Ti,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e?.metadata?.image?.seed,onClick:v}),S(Ti,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p||Boolean(o)||!(c&&!u)||!i,onClick:y}),S(Ti,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!f||Boolean(o)||!(c&&!u)||!s,onClick:x}),S(Ti,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:E}),S(v8,{image:e,children:S(Ti,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)})})]})},Lfe="calc(100vh - 238px)",Dfe=()=>{const{currentImage:e,intermediateImage:t}=xt(s=>s.gallery),n=Ba("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[r,o]=C.exports.useState(!1),i=t||e;return i?ee(We,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[S(Nfe,{image:i,shouldShowImageDetails:r,setShouldShowImageDetails:o}),ee(Ff,{height:Lfe,position:"relative",children:[S(Df,{src:i.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),r&&S(We,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:S(Ofe,{image:i})})]})]}):S(Ff,{height:"100%",position:"relative",children:S(Kt,{size:"xl",children:"No image selected"})})},Ffe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,$fe=C.exports.memo(e=>{const[t,n]=C.exports.useState(!1),r=Sn(),o=Ba("green.600","green.300"),i=Ba("gray.200","gray.700"),s=Ba("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:u,isSelected:c}=e,{url:f,uuid:p,metadata:h}=u,m=()=>n(!0),v=()=>n(!1),y=w=>{w.stopPropagation(),r(jR(h))},x=w=>{w.stopPropagation(),r(Yf(u.metadata.image.seed))};return ee(Io,{position:"relative",children:[S(Df,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ee(We,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:c?s:void 0,onClick:()=>r(Due(u)),onMouseOver:m,onMouseOut:v,children:[c&&S(ao,{fill:o,width:"50%",height:"50%",as:wfe}),t&&ee(We,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[S(za,{label:"Delete image",children:S(v8,{image:u,children:S(pr,{colorScheme:"red","aria-label":"Delete image",icon:S(Tfe,{}),size:"xs",variant:"imageHoverIconButton",fontSize:14})})}),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&S(za,{label:"Use all parameters",children:S(pr,{"aria-label":"Use all parameters",icon:S(g8,{}),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:y})}),u?.metadata?.image?.seed&&S(za,{label:"Use seed",children:S(pr,{"aria-label":"Use seed",icon:S(Pfe,{}),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:x})})]})]})]},p)},Ffe),Bfe=()=>{const{images:e,currentImageUuid:t}=xt(o=>o.gallery),n=Sn(),r=()=>{n(Zce())};return e.length?ee(We,{direction:"column",gap:2,pb:2,children:[S(We,{gap:2,wrap:"wrap",children:e.map(o=>{const{uuid:i}=o;return S($fe,{image:o,isSelected:t===i},i)})}),S(Ro,{onClick:r,children:"Load more..."})]}):S(Ff,{height:"100%",position:"relative",children:S(Kt,{size:"xl",children:"No images in gallery"})})},zfe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Vfe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=xt(zfe),o=t?Math.round(t*100/n):0;return S(FO,{height:"10px",value:o,isIndeterminate:e&&!r})};function y8(e){return or({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function Wfe(e){return or({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}const jfe=jt(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:r}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:r}},{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Ufe=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Zb(),{isOpen:o,onOpen:i,onClose:s}=Zb(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c,shouldDisplayGuides:f}=xt(jfe),p=Sn(),h=()=>{I8.purge().then(()=>{r(),i()})};return ee(Rn,{children:[C.exports.cloneElement(e,{onClick:n}),ee(jf,{isOpen:t,onClose:r,children:[S(H0,{}),ee(U0,{children:[S(JS,{children:"Settings"}),S(CO,{}),S(j0,{children:ee(We,{gap:5,direction:"column",children:[S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Display in-progress images (slower)"}),S(Vi,{isChecked:u,onChange:m=>p(Wue(m.target.checked))})]})}),S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Confirm on delete"}),S(Vi,{isChecked:c,onChange:m=>p(GR(m.target.checked))})]})}),S(Bi,{children:ee(Xc,{children:[S(zi,{marginBottom:1,children:"Display help guides in configuration menus"}),S(Vi,{isChecked:f,onChange:m=>p(que(m.target.checked))})]})}),S(OS,{size:"md",children:"Reset Web UI"}),S(Kt,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."}),S(Kt,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."}),S(Ro,{colorScheme:"red",onClick:h,children:"Reset Web UI"})]})}),S(QS,{children:S(Ro,{onClick:r,children:"Close"})})]})]}),ee(jf,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[S(H0,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),S(U0,{children:S(j0,{pb:6,pt:6,children:S(We,{justifyContent:"center",children:S(Kt,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},Hfe=jt(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Gfe=()=>{const{colorMode:e,toggleColorMode:t}=_m(),{isConnected:n,isProcessing:r,currentIteration:o,totalIterations:i,currentStatus:s}=xt(Hfe),u=n?"green.500":"red.500",c=e=="light"?S(Efe,{}):S(Afe,{}),f=e=="light"?18:20;let p=s;return r&&i>1&&(p+=` [${o}/${i}]`),ee(We,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[S(OS,{size:"lg",children:"InvokeUI"}),S(vI,{}),S(Kt,{textColor:u,children:p}),S(Ufe,{children:S(pr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:S(Wfe,{})})}),S(pr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:S($f,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:S(y8,{})})}),S(pr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:S($f,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:S(xfe,{})})}),S(pr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:f,icon:c})]})},Zo=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return S(Bi,{isDisabled:n,width:i,isInvalid:s,children:ee(We,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&S(zi,{marginBottom:1,children:S(Kt,{fontSize:r,whiteSpace:"nowrap",children:t})}),ee(PO,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[S(TO,{fontSize:"md"}),ee(AO,{children:[S(RO,{}),S(OO,{})]})]})]})})},nm=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return S(Bi,{isDisabled:n,width:i,children:ee(We,{justifyContent:"space-between",alignItems:"center",children:[t&&S(zi,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),S(Vi,{size:o,...s})]})})},qfe=jt(e=>e.options,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Kfe=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=xt(qfe),s=Sn(),u=y=>s(Cue(Number(y))),c=y=>s(Rue(y.target.checked)),f=y=>s(Yf(Number(y))),p=()=>s(Yf(l8(R2,M2))),h=y=>s(Aue(y.target.checked)),m=y=>s(Tue(Number(y))),v=y=>s(WR(y.target.value));return ee(We,{gap:2,direction:"column",children:[S(Zo,{label:"Images to generate",step:1,min:1,precision:0,onChange:u,value:i}),S(nm,{label:"Randomize seed on generation",isChecked:r,onChange:c}),ee(We,{gap:2,children:[S(Zo,{label:"Seed",step:1,precision:0,flexGrow:1,min:R2,max:M2,isDisabled:r,isInvalid:o<0&&e,onChange:f,value:o}),S(Ro,{size:"sm",isDisabled:r,onClick:p,children:S(Kt,{pl:2,pr:2,children:"Shuffle"})})]}),S(nm,{label:"Generate variations",isChecked:e,width:"auto",onChange:h}),S(Zo,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:m}),S(Bi,{isInvalid:e&&!(ww(n)||n===""),flexGrow:1,children:ee(Xc,{children:[S(zi,{marginInlineEnd:0,marginBottom:1,children:S(Kt,{whiteSpace:"nowrap",children:"Seed Weights"})}),S(AS,{size:"sm",value:n,onChange:v})]})})]})},rm=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return S(Bi,{isDisabled:n,children:ee(We,{justifyContent:"space-between",alignItems:"center",children:[S(zi,{marginBottom:s,children:S(Kt,{fontSize:i,whiteSpace:u,children:t})}),S(BO,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?S("option",{value:f,children:f},f):S("option",{value:f.value,children:f.key},f.value))})]})})},Yfe=jt(e=>e.options,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Zfe=()=>{const e=Sn(),{steps:t,cfgScale:n,sampler:r,threshold:o,perlin:i}=xt(Yfe);return ee(We,{gap:2,direction:"column",children:[S(Zo,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(DR(Number(h))),value:t}),S(Zo,{label:"CFG scale",step:.5,onChange:h=>e(FR(Number(h))),value:n}),S(rm,{label:"Sampler",value:r,onChange:h=>e(BR(h.target.value)),validValues:rfe}),S(Zo,{label:"Threshold",min:0,step:.1,onChange:h=>e(_ue(Number(h))),value:o}),S(Zo,{label:"Perlin",min:0,max:1,step:.05,onChange:h=>e(kue(Number(h))),value:i})]})},Xfe=jt(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Qfe=jt(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Jfe=()=>{const e=Sn(),{upscalingLevel:t,upscalingStrength:n}=xt(Xfe),{isESRGANAvailable:r}=xt(Qfe);return ee(We,{direction:"column",gap:2,children:[S(rm,{isDisabled:!r,label:"Scale",value:t,onChange:s=>e(k2(Number(s.target.value))),validValues:afe}),S(Zo,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(E2(Number(s))),value:n})]})},ede=jt(e=>e.options,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),tde=jt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),nde=()=>{const e=Sn(),{gfpganStrength:t}=xt(ede),{isGFPGANAvailable:n}=xt(tde);return S(We,{direction:"column",gap:2,children:S(Zo,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(_2(Number(o))),value:t})})},rde=jt(e=>e.options,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),ode=()=>{const e=Sn(),{height:t,width:n,seamless:r}=xt(rde);return ee(We,{gap:2,direction:"column",children:[ee(We,{gap:2,children:[S(rm,{label:"Width",value:n,flexGrow:1,onChange:u=>e(C2(Number(u.target.value))),validValues:ofe}),S(rm,{label:"Height",value:t,flexGrow:1,onChange:u=>e($R(Number(u.target.value))),validValues:ife})]}),S(nm,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:u=>e(Eue(u.target.checked))})]})};var ide=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Sd(e,t){var n=ade(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function ade(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=ide.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var sde=[".DS_Store","Thumbs.db"];function lde(e){return Tu(this,void 0,void 0,function(){return Iu(this,function(t){return om(e)&&ude(e.dataTransfer)?[2,pde(e.dataTransfer,e.type)]:cde(e)?[2,fde(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,dde(e)]:[2,[]]})})}function ude(e){return om(e)}function cde(e){return om(e)&&om(e.target)}function om(e){return typeof e=="object"&&e!==null}function fde(e){return D2(e.target.files).map(function(t){return Sd(t)})}function dde(e){return Tu(this,void 0,void 0,function(){var t;return Iu(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Sd(r)})]}})})}function pde(e,t){return Tu(this,void 0,void 0,function(){var n,r;return Iu(this,function(o){switch(o.label){case 0:return e.items?(n=D2(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(hde))]):[3,2];case 1:return r=o.sent(),[2,fE(b8(r))];case 2:return[2,fE(D2(e.files).map(function(i){return Sd(i)}))]}})})}function fE(e){return e.filter(function(t){return sde.indexOf(t.name)===-1})}function D2(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function hde(e){if(typeof e.webkitGetAsEntry!="function")return dE(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?x8(t):dE(e)}function b8(e){return e.reduce(function(t,n){return Pb(Pb([],g4(t),!1),g4(Array.isArray(n)?b8(n):[n]),!1)},[])}function dE(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Sd(t);return Promise.resolve(n)}function mde(e){return Tu(this,void 0,void 0,function(){return Iu(this,function(t){return[2,e.isDirectory?x8(e):gde(e)]})})}function x8(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(u){return Tu(s,void 0,void 0,function(){var c,f,p;return Iu(this,function(h){switch(h.label){case 0:if(u.length)return[3,5];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return c=h.sent(),n(c),[3,4];case 3:return f=h.sent(),r(f),[3,4];case 4:return[3,6];case 5:p=Promise.all(u.map(mde)),o.push(p),i(),h.label=6;case 6:return[2]}})})},function(u){r(u)})}i()})}function gde(e){return Tu(this,void 0,void 0,function(){return Iu(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=Sd(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var vde=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var u=s.trim().toLowerCase();return u.charAt(0)==="."?r.toLowerCase().endsWith(u):u.endsWith("/*")?i===u.replace(/\/.*$/,""):o===u})}return!0};function pE(e){return xde(e)||bde(e)||w8(e)||yde()}function yde(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xde(e){if(Array.isArray(e))return F2(e)}function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hE(Object(n),!0).forEach(function(r){S8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zf(e,t){return Cde(e)||wde(e,t)||w8(e,t)||Sde()}function Sde(){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 w8(e,t){if(!!e){if(typeof e=="string")return F2(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 F2(e,t)}}function F2(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 wde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,u;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function Cde(e){if(Array.isArray(e))return e}var _de="file-invalid-type",kde="file-too-large",Ede="file-too-small",Pde="too-many-files",Ade=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:_de,message:"File type must be ".concat(n)}},gE=function(t){return{code:kde,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},vE=function(t){return{code:Ede,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Tde={code:Pde,message:"Too many files"};function C8(e,t){var n=e.type==="application/x-moz-file"||vde(e,t);return[n,n?null:Ade(t)]}function _8(e,t,n){if(ws(e.size))if(ws(t)&&ws(n)){if(e.size>n)return[!1,gE(n)];if(e.size<t)return[!1,vE(t)]}else{if(ws(t)&&e.size<t)return[!1,vE(t)];if(ws(n)&&e.size>n)return[!1,gE(n)]}return[!0,null]}function ws(e){return e!=null}function Ide(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,u=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(c){var f=C8(c,n),p=Zf(f,1),h=p[0],m=_8(c,r,o),v=Zf(m,1),y=v[0],x=u?u(c):null;return h&&y&&!x})}function im(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function gh(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 yE(e){e.preventDefault()}function Ode(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Rde(e){return e.indexOf("Edge/")!==-1}function Mde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ode(e)||Rde(e)}function Vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(u){return!im(r)&&u&&u.apply(void 0,[r].concat(i)),im(r)})}}function Nde(){return"showOpenFilePicker"in window}function Lde(e){if(ws(e)){var t=Object.entries(e).filter(function(n){var r=Zf(n,2),o=r[0],i=r[1],s=!0;return k8(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(E8))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Zf(r,2),i=o[0],s=o[1];return mE(mE({},n),{},S8({},i,s))},{});return[{accept:t}]}return e}function Dde(e){if(ws(e))return Object.entries(e).reduce(function(t,n){var r=Zf(n,2),o=r[0],i=r[1];return[].concat(pE(t),[o],pE(i))},[]).filter(function(t){return k8(t)||E8(t)}).join(",")}function Fde(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function $de(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function k8(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function E8(e){return/^.*\.[\w]+$/.test(e)}var Bde=["children"],zde=["open"],Vde=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Wde=["refKey","onChange","onClick"];function jde(e){return Gde(e)||Hde(e)||P8(e)||Ude()}function Ude(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gde(e){if(Array.isArray(e))return $2(e)}function yy(e,t){return Yde(e)||Kde(e,t)||P8(e,t)||qde()}function qde(){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 P8(e,t){if(!!e){if(typeof e=="string")return $2(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 $2(e,t)}}function $2(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 Kde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,u;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function Yde(e){if(Array.isArray(e))return e}function bE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bE(Object(n),!0).forEach(function(r){B2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function am(e,t){if(e==null)return{};var n=Zde(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Zde(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ew=C.exports.forwardRef(function(e,t){var n=e.children,r=am(e,Bde),o=T8(r),i=o.open,s=am(o,zde);return C.exports.useImperativeHandle(t,function(){return{open:i}},[i]),S(C.exports.Fragment,{children:n($t($t({},s),{},{open:i}))})});Ew.displayName="Dropzone";var A8={disabled:!1,getFilesFromEvent:lde,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};Ew.defaultProps=A8;Ew.propTypes={children:bt.exports.func,accept:bt.exports.objectOf(bt.exports.arrayOf(bt.exports.string)),multiple:bt.exports.bool,preventDropOnDocument:bt.exports.bool,noClick:bt.exports.bool,noKeyboard:bt.exports.bool,noDrag:bt.exports.bool,noDragEventsBubbling:bt.exports.bool,minSize:bt.exports.number,maxSize:bt.exports.number,maxFiles:bt.exports.number,disabled:bt.exports.bool,getFilesFromEvent:bt.exports.func,onFileDialogCancel:bt.exports.func,onFileDialogOpen:bt.exports.func,useFsAccessApi:bt.exports.bool,autoFocus:bt.exports.bool,onDragEnter:bt.exports.func,onDragLeave:bt.exports.func,onDragOver:bt.exports.func,onDrop:bt.exports.func,onDropAccepted:bt.exports.func,onDropRejected:bt.exports.func,onError:bt.exports.func,validator:bt.exports.func};var z2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function T8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=$t($t({},A8),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,u=t.multiple,c=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,w=t.useFsAccessApi,b=t.autoFocus,_=t.preventDropOnDocument,P=t.noClick,I=t.noKeyboard,N=t.noDrag,L=t.noDragEventsBubbling,z=t.onError,K=t.validator,W=C.exports.useMemo(function(){return Dde(n)},[n]),te=C.exports.useMemo(function(){return Lde(n)},[n]),be=C.exports.useMemo(function(){return typeof E=="function"?E:xE},[E]),_e=C.exports.useMemo(function(){return typeof x=="function"?x:xE},[x]),ye=C.exports.useRef(null),Ce=C.exports.useRef(null),ae=C.exports.useReducer(Xde,z2),ke=yy(ae,2),j=ke[0],Y=ke[1],q=j.isFocused,R=j.isFileDialogActive,U=C.exports.useRef(typeof window<"u"&&window.isSecureContext&&w&&Nde()),se=function(){!U.current&&R&&setTimeout(function(){if(Ce.current){var Ee=Ce.current.files;Ee.length||(Y({type:"closeDialog"}),_e())}},300)};C.exports.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[Ce,R,_e,U]);var ue=C.exports.useRef([]),he=function(Ee){ye.current&&ye.current.contains(Ee.target)||(Ee.preventDefault(),ue.current=[])};C.exports.useEffect(function(){return _&&(document.addEventListener("dragover",yE,!1),document.addEventListener("drop",he,!1)),function(){_&&(document.removeEventListener("dragover",yE),document.removeEventListener("drop",he))}},[ye,_]),C.exports.useEffect(function(){return!r&&b&&ye.current&&ye.current.focus(),function(){}},[ye,b,r]);var me=C.exports.useCallback(function(de){z?z(de):console.error(de)},[z]),Pe=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de),ue.current=[].concat(jde(ue.current),[de.target]),gh(de)&&Promise.resolve(o(de)).then(function(Ee){if(!(im(de)&&!L)){var ft=Ee.length,lt=ft>0&&Ide({files:Ee,accept:W,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:K}),re=ft>0&&!lt;Y({isDragAccept:lt,isDragReject:re,isDragActive:!0,type:"setDraggedFiles"}),f&&f(de)}}).catch(function(Ee){return me(Ee)})},[o,f,me,L,W,s,i,u,c,K]),fe=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de);var Ee=gh(de);if(Ee&&de.dataTransfer)try{de.dataTransfer.dropEffect="copy"}catch{}return Ee&&h&&h(de),!1},[h,L]),Se=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de);var Ee=ue.current.filter(function(lt){return ye.current&&ye.current.contains(lt)}),ft=Ee.indexOf(de.target);ft!==-1&&Ee.splice(ft,1),ue.current=Ee,!(Ee.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),gh(de)&&p&&p(de))},[ye,p,L]),Le=C.exports.useCallback(function(de,Ee){var ft=[],lt=[];de.forEach(function(re){var He=C8(re,W),kt=yy(He,2),wn=kt[0],Mn=kt[1],wr=_8(re,s,i),Mo=yy(wr,2),ci=Mo[0],jn=Mo[1],Vr=K?K(re):null;if(wn&&ci&&!Vr)ft.push(re);else{var es=[Mn,jn];Vr&&(es=es.concat(Vr)),lt.push({file:re,errors:es.filter(function(Zs){return Zs})})}}),(!u&&ft.length>1||u&&c>=1&&ft.length>c)&&(ft.forEach(function(re){lt.push({file:re,errors:[Tde]})}),ft.splice(0)),Y({acceptedFiles:ft,fileRejections:lt,type:"setFiles"}),m&&m(ft,lt,Ee),lt.length>0&&y&&y(lt,Ee),ft.length>0&&v&&v(ft,Ee)},[Y,u,W,s,i,c,m,v,y,K]),at=C.exports.useCallback(function(de){de.preventDefault(),de.persist(),st(de),ue.current=[],gh(de)&&Promise.resolve(o(de)).then(function(Ee){im(de)&&!L||Le(Ee,de)}).catch(function(Ee){return me(Ee)}),Y({type:"reset"})},[o,Le,me,L]),At=C.exports.useCallback(function(){if(U.current){Y({type:"openDialog"}),be();var de={multiple:u,types:te};window.showOpenFilePicker(de).then(function(Ee){return o(Ee)}).then(function(Ee){Le(Ee,null),Y({type:"closeDialog"})}).catch(function(Ee){Fde(Ee)?(_e(Ee),Y({type:"closeDialog"})):$de(Ee)?(U.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):me(Ee)});return}Ce.current&&(Y({type:"openDialog"}),be(),Ce.current.value=null,Ce.current.click())},[Y,be,_e,w,Le,me,te,u]),hn=C.exports.useCallback(function(de){!ye.current||!ye.current.isEqualNode(de.target)||(de.key===" "||de.key==="Enter"||de.keyCode===32||de.keyCode===13)&&(de.preventDefault(),At())},[ye,At]),ge=C.exports.useCallback(function(){Y({type:"focus"})},[]),Ie=C.exports.useCallback(function(){Y({type:"blur"})},[]),et=C.exports.useCallback(function(){P||(Mde()?setTimeout(At,0):At())},[P,At]),De=function(Ee){return r?null:Ee},Dt=function(Ee){return I?null:De(Ee)},mn=function(Ee){return N?null:De(Ee)},st=function(Ee){L&&Ee.stopPropagation()},wt=C.exports.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=de.refKey,ft=Ee===void 0?"ref":Ee,lt=de.role,re=de.onKeyDown,He=de.onFocus,kt=de.onBlur,wn=de.onClick,Mn=de.onDragEnter,wr=de.onDragOver,Mo=de.onDragLeave,ci=de.onDrop,jn=am(de,Vde);return $t($t(B2({onKeyDown:Dt(Vo(re,hn)),onFocus:Dt(Vo(He,ge)),onBlur:Dt(Vo(kt,Ie)),onClick:De(Vo(wn,et)),onDragEnter:mn(Vo(Mn,Pe)),onDragOver:mn(Vo(wr,fe)),onDragLeave:mn(Vo(Mo,Se)),onDrop:mn(Vo(ci,at)),role:typeof lt=="string"&<!==""?lt:"presentation"},ft,ye),!r&&!I?{tabIndex:0}:{}),jn)}},[ye,hn,ge,Ie,et,Pe,fe,Se,at,I,N,r]),Xt=C.exports.useCallback(function(de){de.stopPropagation()},[]),Ut=C.exports.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=de.refKey,ft=Ee===void 0?"ref":Ee,lt=de.onChange,re=de.onClick,He=am(de,Wde),kt=B2({accept:W,multiple:u,type:"file",style:{display:"none"},onChange:De(Vo(lt,at)),onClick:De(Vo(re,Xt)),tabIndex:-1},ft,Ce);return $t($t({},kt),He)}},[Ce,n,u,at,r]);return $t($t({},j),{},{isFocused:q&&!r,getRootProps:wt,getInputProps:Ut,rootRef:ye,inputRef:Ce,open:De(At)})}function Xde(e,t){switch(t.type){case"focus":return $t($t({},e),{},{isFocused:!0});case"blur":return $t($t({},e),{},{isFocused:!1});case"openDialog":return $t($t({},z2),{},{isFileDialogActive:!0});case"closeDialog":return $t($t({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return $t($t({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return $t($t({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return $t({},z2);default:return e}}function xE(){}const SE=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const r=C.exports.useCallback((c,f)=>{f.forEach(p=>{n(p)}),c.forEach(p=>{t(p)})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=T8({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ee(Io,{...o(),flexGrow:3,children:[S("input",{...i({multiple:!1})}),C.exports.cloneElement(e,{onClick:u})]})},Qde=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),Jde=({setShouldShowMask:e})=>{const t=Sn(),{initialImagePath:n,maskPath:r}=xt(Qde),o=mse(),i=y=>{y.stopPropagation(),t(_g(""))},s=y=>{y.stopPropagation(),t(Cw(""))},u=()=>e(!1),c=()=>e(!0),f=()=>e(!0),p=()=>e(!0),h=C.exports.useCallback(y=>t(Jce(y)),[t]),m=C.exports.useCallback(y=>t(efe(y)),[t]),v=C.exports.useCallback(y=>{const x=y.errors.reduce((E,w)=>E+`
|
|
`+w.message,"");o({title:"Upload failed",description:x,status:"error",isClosable:!0})},[o]);return ee(We,{gap:2,justifyContent:"space-between",width:"100%",children:[S(SE,{fileAcceptedCallback:h,fileRejectionCallback:v,children:S(Ro,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:S(cE,{}),width:"100%",children:"Image"})}),S(pr,{isDisabled:!n,size:"sm","aria-label":"Reset mask",onClick:i,icon:S(uE,{})}),S(SE,{fileAcceptedCallback:m,fileRejectionCallback:v,children:S(Ro,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:f,onMouseOut:p,leftIcon:S(cE,{}),width:"100%",children:"Mask"})}),S(pr,{isDisabled:!r,size:"sm","aria-label":"Reset mask",onClick:s,icon:S(uE,{})})]})},epe=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),tpe=()=>{const{initialImagePath:e,maskPath:t}=xt(epe),[n,r]=C.exports.useState(!1);return ee(We,{direction:"column",alignItems:"center",gap:2,children:[S(Jde,{setShouldShowMask:r}),e&&ee(We,{position:"relative",width:"100%",children:[S(Df,{fit:"contain",src:e,rounded:"md",className:"checkerboard"}),n&&t&&S(Df,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1})]})]})},npe=jt(e=>e.options,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),rpe=()=>{const e=Sn(),{img2imgStrength:t,shouldFitToWidthHeight:n}=xt(npe);return ee(We,{direction:"column",gap:2,children:[S(Zo,{label:"Strength",step:.01,min:0,max:1,onChange:i=>e(zR(Number(i))),value:t}),S(nm,{label:"Fit initial image to output size",isChecked:n,onChange:i=>e(VR(i.target.checked))}),S(tpe,{})]})};var bs=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OUTPUT=2]="OUTPUT",e[e.SEED_AND_VARIATION=3]="SEED_AND_VARIATION",e[e.ESRGAN=4]="ESRGAN",e[e.FACE_CORRECTION=5]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=6]="IMAGE_TO_IMAGE",e[e.SAMPLER=7]="SAMPLER",e))(bs||{});const ope={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. CLI Commands will not work in the prompt.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"The Height and Width of generations can be controlled here. If you experience errors, you may be generating an image too large for your system. The seamless option will more often result in repeating patterns in outputs.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process. Try a variation with an amount of between 0 and 1 to change the output image for that seed.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"The ESRGAN setting can be used to increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[5]:{text:"Using GFPGAN or CodeFormer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher values will apply a stronger corrective pressure on outputs.",href:"link/to/docs/feature2.html",guideImage:"asset/path.gif"},[6]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"This setting allows for different denoising samplers to be used, as well as the number of denoising steps used, which will change the resulting output.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}},ipe=jt(e=>e.system,e=>e.shouldDisplayGuides),ape=({children:e,feature:t})=>{const n=xt(ipe),{text:r}=ope[t];return n?ee(MO,{trigger:"hover",children:[S(DO,{children:S(Io,{children:e})}),ee(LO,{maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[S(NO,{}),S(We,{alignItems:"center",gap:2,p:4,children:r})]})]}):S(Rn,{})},Al=ce(({feature:e,icon:t=y8},n)=>S(ape,{feature:e,children:S(Io,{ref:n,children:S(ao,{as:t})})})),spe=jt(e=>e.options,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),lpe=jt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),upe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=xt(spe),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=xt(lpe),u=Sn(),c=m=>u(Uue(m)),f=m=>u(Oue(m.target.checked)),p=m=>u(Iue(m.target.checked)),h=m=>u(Pue(m.target.checked));return ee(qT,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:c,children:[ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Seed & Variation"}),S(Al,{feature:bs.SEED_AND_VARIATION}),S(ms,{})]})}),S(vs,{children:S(Kfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Sampler"}),S(Al,{feature:bs.SAMPLER}),S(ms,{})]})}),S(vs,{children:S(Zfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Upscale (ESRGAN)"}),S(Vi,{isDisabled:!i,isChecked:e,onChange:f})]}),S(Al,{feature:bs.ESRGAN}),S(ms,{})]})}),S(vs,{children:S(Jfe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Face Correction"}),S(Vi,{isDisabled:!o,isChecked:t,onChange:p})]}),S(Al,{feature:bs.FACE_CORRECTION}),S(ms,{})]})}),S(vs,{children:S(nde,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[ee(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[S(Kt,{children:"Image to Image"}),S(Vi,{isDisabled:!r,isChecked:n,onChange:h})]}),S(Al,{feature:bs.IMAGE_TO_IMAGE}),S(ms,{})]})}),S(vs,{children:S(rpe,{})})]}),ee(gs,{children:[S("h2",{children:ee(hs,{children:[S(Io,{flex:"1",textAlign:"left",children:"Output"}),S(Al,{feature:bs.OUTPUT}),S(ms,{})]})}),S(vs,{children:S(ode,{})})]})]})},cpe=jt(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),fpe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),dpe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=xt(cpe),{isProcessing:s,isConnected:u}=xt(fpe);return C.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(ww(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},ppe=jt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),hpe=()=>{const e=Sn(),{isProcessing:t,isConnected:n}=xt(ppe),r=dpe();return ee(We,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[S(Ti,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>e(s8())}),S(Ti,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(Qce())})]})},mpe=()=>{const{prompt:e}=xt(o=>o.options),t=Sn(),n=o=>t(LR(o.target.value)),r=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(s8()))};return S(VO,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:r,value:e,placeholder:"I'm dreaming of..."})},gpe=jt(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),vpe=jt(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Yt.exports.isEqual}}),ype=()=>{const e=Sn(),t=xt(gpe),{shouldShowLogViewer:n}=xt(vpe),r=Ba("gray.50","gray.900"),o=Ba("gray.500","gray.500"),i=Ba({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[s,u]=C.exports.useState(!0),c=C.exports.useRef(null);C.exports.useLayoutEffect(()=>{c.current!==null&&s&&(c.current.scrollTop=c.current.scrollHeight)},[s,t,n]);const f=()=>{e(jue(!n))};return ee(Rn,{children:[n&&S(We,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:r,ref:c,children:t.map((p,h)=>{const{timestamp:m,message:v,level:y}=p;return ee(We,{gap:2,textColor:i[y],children:[ee(Kt,{fontSize:"sm",fontWeight:"semibold",children:[m,":"]}),S(Kt,{fontSize:"sm",wordBreak:"break-all",children:v})]},h)})}),n&&S(za,{label:s?"Autoscroll on":"Autoscroll off",children:S(pr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:s?"blue":"gray",icon:S(Sfe,{}),onClick:()=>u(!s)})}),S(za,{label:n?"Hide logs":"Show logs",children:S(pr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?S(kfe,{}):S(Cfe,{}),onClick:f})})]})},bpe=()=>{const e=Sn(),[t,n]=C.exports.useState(!1);return C.exports.useEffect(()=>{e(tfe()),n(!0)},[e]),t?ee(Rn,{children:[ee(IS,{width:"100vw",height:"100vh",templateAreas:`
|
|
"header header header header"
|
|
"progressBar progressBar progressBar progressBar"
|
|
"menu prompt processButtons imageRoll"
|
|
"menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[S(va,{area:"header",pt:1,children:S(Gfe,{})}),S(va,{area:"progressBar",children:S(Vfe,{})}),S(va,{pl:"2",area:"menu",overflowY:"scroll",children:S(upe,{})}),S(va,{area:"prompt",children:S(mpe,{})}),S(va,{area:"processButtons",children:S(hpe,{})}),S(va,{area:"currentImage",children:S(Dfe,{})}),S(va,{pr:"2",area:"imageRoll",overflowY:"scroll",children:S(Bfe,{})})]}),S(ype,{})]}):S(f8,{})},I8=cue(u8);by.createRoot(document.getElementById("root")).render(S(J.StrictMode,{children:S(Vle,{store:u8,children:S(c8,{loading:S(f8,{}),persistor:I8,children:ee(kse,{theme:aE,children:[S(zB,{initialColorMode:aE.config.initialColorMode}),S(bpe,{})]})})})}));
|