mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
518 lines
1.3 MiB
JavaScript
518 lines
1.3 MiB
JavaScript
|
function vq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Au=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Qt={};/**
|
||
|
* @license React
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var fv=Symbol.for("react.element"),yq=Symbol.for("react.portal"),bq=Symbol.for("react.fragment"),xq=Symbol.for("react.strict_mode"),Sq=Symbol.for("react.profiler"),wq=Symbol.for("react.provider"),Cq=Symbol.for("react.context"),_q=Symbol.for("react.forward_ref"),kq=Symbol.for("react.suspense"),Eq=Symbol.for("react.memo"),Pq=Symbol.for("react.lazy"),Dk=Symbol.iterator;function Tq(e){return e===null||typeof e!="object"?null:(e=Dk&&e[Dk]||e["@@iterator"],typeof e=="function"?e:null)}var nR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rR=Object.assign,iR={};function V0(e,t,n){this.props=e,this.context=t,this.refs=iR,this.updater=n||nR}V0.prototype.isReactComponent={};V0.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")};V0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oR(){}oR.prototype=V0.prototype;function m9(e,t,n){this.props=e,this.context=t,this.refs=iR,this.updater=n||nR}var v9=m9.prototype=new oR;v9.constructor=m9;rR(v9,V0.prototype);v9.isPureReactComponent=!0;var zk=Array.isArray,aR=Object.prototype.hasOwnProperty,y9={current:null},sR={key:!0,ref:!0,__self:!0,__source:!0};function lR(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)aR.call(t,r)&&!sR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:fv,type:e,key:o,ref:a,props:i,_owner:y9.current}}function Lq(e,t){return{$$typeof:fv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function b9(e){return typeof e=="object"&&e!==null&&e.$$typeof===fv}function Aq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $k=/\/+/g;function wx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Aq(""+e.key):t.toString(36)}function Vy(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case fv:case yq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+wx(a,0):r,zk(i)?(n="",e!=null&&(n=e.replace($k,"$&/")+"/"),Vy(i,t,n,"",function(d){return d})):i!=null&&(b9(i)&&(i=Lq(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace($k,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",zk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+wx(o,s);a+=Vy(o,t,n,l,i)}else if(l=Tq(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+wx(o,s++),a+=Vy(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function I2(e,t,n){if(e==null)return e;var r=[],i=0;return Vy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Iq(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 _o={current:null},Uy={transition:null},Rq={ReactCurrentDispatcher:_o,ReactCurrentBatchConfig:Uy,ReactCurrentOwner:y9};Qt.Children={map:I2,forEach:function(e,t,n){I2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I2(e,function(){t++}),t},toArray:function(e){return I2(e,function(t){return t})||[]},only:function(e){if(!b9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Qt.Component=V0;Qt.Fragment=bq;Qt.Profiler=Sq;Qt
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t(G,te){var Q=G.length;G.push(te);e:for(;0<Q;){var W=Q-1>>>1,se=G[W];if(0<i(se,te))G[W]=te,G[Q]=se,Q=W;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var te=G[0],Q=G.pop();if(Q!==te){G[0]=Q;e:for(var W=0,se=G.length,de=se>>>1;W<de;){var xe=2*(W+1)-1,ze=G[xe],Me=xe+1,Ue=G[Me];if(0>i(ze,Q))Me<se&&0>i(Ue,ze)?(G[W]=Ue,G[Me]=Q,W=Me):(G[W]=ze,G[xe]=Q,W=xe);else if(Me<se&&0>i(Ue,Q))G[W]=Ue,G[Me]=Q,W=Me;else break e}}return te}function i(G,te){var Q=G.sortIndex-te.sortIndex;return Q!==0?Q:G.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],d=[],p=1,g=null,m=3,y=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(G){for(var te=n(d);te!==null;){if(te.callback===null)r(d);else if(te.startTime<=G)r(d),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(d)}}function R(G){if(S=!1,L(G),!b)if(n(l)!==null)b=!0,we(N);else{var te=n(d);te!==null&&J(R,te.startTime-G)}}function N(G,te){b=!1,S&&(S=!1,P(F),F=-1),y=!0;var Q=m;try{for(L(te),g=n(l);g!==null&&(!(g.expirationTime>te)||G&&!Y());){var W=g.callback;if(typeof W=="function"){g.callback=null,m=g.priorityLevel;var se=W(g.expirationTime<=te);te=e.unstable_now(),typeof se=="function"?g.callback=se:g===n(l)&&r(l),L(te)}else r(l);g=n(l)}if(g!==null)var de=!0;else{var xe=n(d);xe!==null&&J(R,xe.startTime-te),de=!1}return de}finally{g=null,m=Q,y=!1}}var z=!1,$=null,F=-1,q=5,j=-1;function Y(){return!(e.unstable_now()-j<q)}function ve(){if($!==null){var G=e.unstable_now();j=G;var te=!0;try{te=$(!0,G)}finally{te?ge():(z=!1,$=null)}}else z=!1}var ge;if(typeof k=="function")ge=function(){k(ve)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,_e=Se.port2;Se.port1.onmessage=ve,ge=function(){_e.postMessage(null)}}else ge=function(){E(ve,0)};function we(G){$=G,z||(z=!0,ge())}function J(G,te){F=E(function(){G(e.unstable_now())},te)}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(G){G.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,we(N))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var Q=m;m=te;try{return G()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,te){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Q=m;m=G;try{return te()}finally{m=Q}},e.unstable_scheduleCallback=function(G,te,Q){var W=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?W+Q:W):Q=W,G){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Q+se,G={id:p++,callback:te,priorityLevel:G,startTime:Q,expirationTime:se,sortIndex:-1},Q>W?(G.sortIndex=Q,t(d,G),n(l)===null&&G===n(d)&&(S?(P(F),F=-1):S=!0,J(R,Q-W))):(G.sortIndex=se,t(l,G),b||y||(b=!0,we(N))),G},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(G){var te=m;return function(){var Q=m;m=te;try{return G.apply(this,arguments)}finally{m=Q}}}})(uR);(function(e){e.exports=uR})(Jp);/**
|
||
|
* @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 cR=C.exports,wa=Jp.exports;function $e(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 dR=new Set,vm={};function vh(e,t){w0(e,t),w0(e+"Capture",t)}function w0(e,t){for(vm[e]=t,e=0;e<t.length;e++)dR.add(t[e])}var Du=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fw=Object.prototype.hasOwnProperty,Mq=/^[: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]*$/,Fk={},Bk={};function Oq(e){return fw.call(Bk,e)?!0:fw.call(Fk,e)?!1:Mq.test(e)?Bk[e]=!0:(Fk[e]=!0,!1)}function Nq(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 Dq(e,t,n,r){if(t===null||typeof t>"u"||Nq(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 ko(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vi[e]=new ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vi[t]=new ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vi[e]=new ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vi[e]=new ko(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){Vi[e]=new ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vi[e]=new ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vi[e]=new ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vi[e]=new ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vi[e]=new ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var x9=/[\-:]([a-z])/g;function S9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-a
|
||
|
`+Cx+e}var _x=!1;function kx(e,t){if(!e||_x)return"";_x=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
|
||
|
`),o=r.stack.split(`
|
||
|
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
|
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{_x=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cg(e):""}function zq(e){switch(e.tag){case 5:return Cg(e.type);case 16:return Cg("Lazy");case 13:return Cg("Suspense");case 19:return Cg("SuspenseList");case 0:case 2:case 15:return e=kx(e.type,!1),e;case 11:return e=kx(e.type.render,!1),e;case 1:return e=kx(e.type,!0),e;default:return""}}function mw(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 Dp:return"Fragment";case Np:return"Portal";case hw:return"Profiler";case C9:return"StrictMode";case pw:return"Suspense";case gw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hR:return(e.displayName||"Context")+".Consumer";case fR:return(e._context.displayName||"Context")+".Provider";case _9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k9:return t=e.displayName||null,t!==null?t:mw(e.type)||"Memo";case Kc:t=e._payload,e=e._init;try{return mw(e(t))}catch{}}return null}function $q(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 mw(t);case 8:return t===C9?"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 vd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fq(e){var t=gR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function M2(e){e._valueTracker||(e._valueTracker=Fq(e))}function mR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function N5(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 vw(e,t){var n=t.checked;return xr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vd(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 vR(e,t){t=t.checked,t!=null&&w9(e,"checked",t,!1)}function yw(e,t){vR(e,t);var n=vd(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")?bw(e,t.type,n):t.hasOwnProperty("defaultValue")&&bw(e,t.type,vd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vk(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(YK,"")}function H2(e,t,n){if(t=fE(t),fE(e)!==t&&n)throw Error($e(425))}function V5(){}var Mw=null,Ow=null;function Nw(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 Dw=typeof setTimeout=="function"?setTimeout:void 0,ZK=typeof clearTimeout=="function"?clearTimeout:void 0,hE=typeof Promise=="function"?Promise:void 0,XK=typeof queueMicrotask=="function"?queueMicrotask:typeof hE<"u"?function(e){return hE.resolve(null).then(e).catch(QK)}:Dw;function QK(e){setTimeout(function(){throw e})}function $x(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wm(t)}function cd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var G0=Math.random().toString(36).slice(2),Pl="__reactFiber$"+G0,Pm="__reactProps$"+G0,zu="__reactContainer$"+G0,zw="__reactEvents$"+G0,JK="__reactListeners$"+G0,eY="__reactHandles$"+G0;function Gf(e){var t=e[Pl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zu]||n[Pl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pE(e);e!==null;){if(n=e[Pl])return n;e=pE(e)}return t}e=n,n=e.parentNode}return null}function gv(e){return e=e[Pl]||e[zu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($e(33))}function o4(e){return e[Pm]||null}var $w=[],Hp=-1;function Ed(e){return{current:e}}function nr(e){0>Hp||(e.current=$w[Hp],$w[Hp]=null,Hp--)}function Zn(e,t){Hp++,$w[Hp]=e.current,e.current=t}var yd={},ro=Ed(yd),Uo=Ed(!1),uh=yd;function C0(e,t){var n=e.type.contextTypes;if(!n)return yd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Go(e){return e=e.childContextTypes,e!=null}function U5(){nr(Uo),nr(ro)}function gE(e,t,n){if(ro.current!==yd)throw Error($e(168));Zn(ro,t),Zn(Uo,n)}function oM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error($e(108,$q(e)||"Unknown",i));return xr({},n,r)}function G5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yd,uh=ro.current,Zn(ro,e),Zn(Uo,Uo.current),!0}function mE(e,t,n){var r=e.stateNode;if(!r)throw Error($e(169));n?(e=oM(e,t,uh),r.__reactInternalMemoizedMergedChildContext=e,nr(Uo),nr(ro),Zn(ro,e)):nr(Uo),Zn(Uo,n)}var Lu=null,a4=!1,Fx=!1;function aM(e){Lu===null?Lu=[e]:Lu.push(e)}function tY(e){a4=!0,aM(e)}function Pd(){if(!Fx&&Lu!==null){Fx=!0;var e=0,t=In;try{var n=Lu;for(In=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Lu=null,a4=!1}catch(i){throw Lu!==null&&(Lu=Lu.slice(e+1)),IR(P9,Pd),i}finally{In=t,Fx=!1}}return null}var Wp=[],Vp=0,j5=null,q5=0,Ya=[],Za=0,ch=null,Ru=1,Mu="";function Df(e,t){Wp[Vp++]=q5,Wp[Vp++]=j5,j5=e,q5=t}function sM(e,t,n){Ya[Za++]=Ru,Ya[Za++]=Mu,Ya[Za++]=ch,ch=e;var r=Ru;e=Mu;var i=32-Fs(r)-1;r&=~(1<<i),n+=1;var o=32-Fs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ru=1<<32-Fs(t)+i|n<<i|r,Mu=o+e}else Ru=1<<o|n<<i|r,Mu=e}function D9(e){e.return!==null&&(Df(e,1),sM(e,1,0))}function z9(e){for(;e===j5;)j5=Wp[--Vp],Wp[Vp]=null,q5=Wp[--Vp],Wp[Vp]=null;for(;e===ch;)ch=Ya[--Za],Ya[Za]=null,Mu=Ya[--Za],Ya[Za]=null,Ru=Ya[--Za],Ya[Za]=null}var ba=null,va=null,lr=!1,zs=null;function lM(e,t){var n=Ja(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ux(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cY=typeof WeakMap=="function"?WeakMap:Map;function DM(e,t,n){n=Nu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){t3||(t3=!0,e6=r),Uw(e,t)},n}function zM(e,t,n){n=Nu(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Uw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Uw(e,t),typeof r!="function"&&(fd===null?fd=new Set([this]):fd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function EE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cY;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_Y.bind(null,e,t,n),t.then(e,e))}function PE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function TE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nu(-1,1),t.tag=2,dd(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var dY=Ku.ReactCurrentOwner,Vo=!1;function bo(e,t,n,r){t.child=e===null?gM(t,null,n,r):k0(t,e.child,n,r)}function LE(e,t,n,r,i){n=n.render;var o=t.ref;return i0(t,i),r=K9(e,t,n,r,o,i),n=Y9(),e!==null&&!Vo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fu(e,t,i)):(lr&&n&&D9(t),t.flags|=1,bo(e,t,r,i),t.child)}function AE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!o8(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$M(e,t,o,r,i)):(e=e5(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_m,n(a,r)&&e.ref===t.ref)return Fu(e,t,i)}return t.flags|=1,e=pd(o,r),e.ref=t.ref,e.return=t,t.child=e}function $M(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_m(o,r)&&e.ref===t.ref)if(Vo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Vo=!0);else return t.lanes=e.lanes,Fu(e,t,i)}return Gw(e,t,n,r,i)}function FM(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zn(jp,ga),ga|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Zn(jp,ga),ga|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Zn(jp,ga),ga|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Zn(jp,ga),ga|=r;return bo(e,t,i,n),t.child}function BM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Gw(e,t,n,r,i){var o=Go(n)?uh:ro.current;return o=C0(t,o),i0(t,i),n=K9(e,t,n,r,o,i),r=Y9(),e!==null&&!Vo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fu(e,t,i)):(lr&&r&&D9(t),t.flags|=1,bo(e,t,n,i),t.child)}function IE(e,t,n,r,i){if(Go(n)){var o=!0;G5(t)}else o=!1;if(i0(t,i),t.stateNode===null)Xy(e,t),hM(t,n,r),Vw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=rs(d):(d=Go(n)?uh:ro.current,d=C0(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==d)&&wE(t,a,r,d),Yc=!1;var m=t.memoizedState;a.state=m,Z5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Uo.current||Yc?(typeof p=="function"&&(Ww(t,n,p,r),l=t.memoizedState),(s=Yc||SE(t,n,s,r,m,l,d))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
|
||
|
* @license React
|
||
|
* react-jsx-runtime.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var NY=C.exports,DY=Symbol.for("react.element"),zY=Symbol.for("react.fragment"),$Y=Object.prototype.hasOwnProperty,FY=NY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,BY={key:!0,ref:!0,__self:!0,__source:!0};function uO(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)$Y.call(t,r)&&!BY.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:DY,type:e,key:o,ref:a,props:i,_owner:FY.current}}v4.Fragment=zY;v4.jsx=uO;v4.jsxs=uO;(function(e){e.exports=v4})(m4);const Un=m4.exports.Fragment,w=m4.exports.jsx,ne=m4.exports.jsxs;var c8=C.exports.createContext({});c8.displayName="ColorModeContext";function d8(){const e=C.exports.useContext(c8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Y2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function HY(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?Y2.dark:Y2.light),document.body.classList.remove(r?Y2.light:Y2.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var WY="chakra-ui-color-mode";function VY(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 UY=VY(WY),GE=()=>{};function jE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function cO(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=UY}=e,s=i==="dark"?"dark":"light",[l,d]=C.exports.useState(()=>jE(a,s)),[p,g]=C.exports.useState(()=>jE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=C.exports.useMemo(()=>HY({preventTransition:o}),[o]),E=i==="system"&&!l?p:l,P=C.exports.useCallback(R=>{const N=R==="system"?m():R;d(N),y(N==="dark"),b(N),a.set(N)},[a,m,y,b]);Ml(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const R=a.get();if(R){P(R);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const k=C.exports.useCallback(()=>{P(E==="dark"?"light":"dark")},[E,P]);C.exports.useEffect(()=>{if(!!r)return S(P)},[r,S,P]);const L=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?GE:k,setColorMode:t?GE:P}),[E,k,P,t]);return w(c8.Provider,{value:L,children:n})}cO.displayName="ColorModeProvider";var GY=new Set(["dark","light","system"]);function jY(e){let t=e;return GY.has(t)||(t="light"),t}function qY(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=jY(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catc
|
||
|
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
|
||
|
`;return`!${o?a:s}`.trim()}function KY(e={}){return w("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:qY(e)}})}var i6={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",S="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",L="[object Proxy]",R="[object RegExp]",N="[object Set]",z="[object String]",$="[object Undefined]",F="[object WeakMap]",q="[object ArrayBuffer]",j="[object DataView]",Y="[object Float32Array]",ve="[object Float64Array]",ge="[object Int8Array]",Se="[object Int16Array]",_e="[object Int32Array]",we="[object Uint8Array]",J="[object Uint8ClampedArray]",G="[object Uint16Array]",te="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,de={};de[Y]=de[ve]=de[ge]=de[Se]=de[_e]=de[we]=de[J]=de[G]=de[te]=!0,de[s]=de[l]=de[q]=de[p]=de[j]=de[g]=de[m]=de[y]=de[S]=de[E]=de[k]=de[R]=de[N]=de[z]=de[F]=!1;var xe=typeof Au=="object"&&Au&&Au.Object===Object&&Au,ze=typeof self=="object"&&self&&self.Object===Object&&self,Me=xe||ze||Function("return this")(),Ue=t&&!t.nodeType&&t,Ee=Ue&&!0&&e&&!e.nodeType&&e,Ve=Ee&&Ee.exports===Ue,ot=Ve&&xe.process,pt=function(){try{var I=Ee&&Ee.require&&Ee.require("util").types;return I||ot&&ot.binding&&ot.binding("util")}catch{}}(),Wt=pt&&pt.isTypedArray;function Dt(I,D,U){switch(U.length){case 0:return I.call(D);case 1:return I.call(D,U[0]);case 2:return I.call(D,U[0],U[1]);case 3:return I.call(D,U[0],U[1],U[2])}return I.apply(D,U)}function Oe(I,D){for(var U=-1,me=Array(I);++U<I;)me[U]=D(U);return me}function nt(I){return function(D){return I(D)}}function mt(I,D){return I?.[D]}function st(I,D){return function(U){return I(D(U))}}var vt=Array.prototype,yn=Function.prototype,yt=Object.prototype,Vt=Me["__core-js_shared__"],on=yn.toString,zt=yt.hasOwnProperty,Ne=function(){var I=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),tt=yt.toString,jt=on.call(Object),Ut=RegExp("^"+on.call(zt).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Ve?Me.Buffer:void 0,Pt=Me.Symbol,en=Me.Uint8Array,jn=Pe?Pe.allocUnsafe:void 0,je=st(Object.getPrototypeOf,Object),At=Object.create,Be=yt.propertyIsEnumerable,ct=vt.splice,qe=Pt?Pt.toStringTag:void 0,St=function(){try{var I=lo(Object,"defineProperty");return I({},"",{}),I}catch{}}(),tn=Pe?Pe.isBuffer:void 0,Qn=Math.max,Cr=Date.now,Gr=lo(Me,"Map"),Gi=lo(Object,"create"),zd=function(){function I(){}return function(D){if(!Or(D))return{};if(At)return At(D);I.prototype=D;var U=new I;return I.prototype=void 0,U}}();function jr(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var me=I[D];this.set(me[0],me[1])}}function nc(){this.__data__=Gi?Gi(null):{},this.size=0}function $d(I){var D=this.has(I)&&delete this.__data__[I];return this.size-=D?1:0,D}function js(I){var D=this.__data__;if(Gi){var U=D[I];return U===r?void 0:U}return zt.call(D,I)?D[I]:void 0}function rc(I){var D=this.__data__;return Gi?D[I]!==void 0:zt.call(D,I)}function ic(I,D){var U=this.__data__;return this.size+=this.has(I)?0:1,U[I]=Gi&&D===void 0?r:D,this}jr.prototype.clear=nc,jr.prototype.delete=$d,jr.prototype.get=js,jr.prototype.has=rc,jr.prototype.set=ic;function cr(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var me=I[D];this.set(me[0],me[1])}}function Zl(){this.__data__=[],this.size=0}function Fd(I){var D=this.__data__,U=ji(D,I);if(U<0)return!1;var me=D.length-1;return U==me?D.pop():ct.call(D,U,1),--this.size,!0}function qs(I){var D=this.__data__,U=ji(D,I);return U<0?void 0:D[U][1]}function Xl(I){return ji(this.__data__,I)>-1}function Bd(I,D){var U=this.__data__,me=ji(U,I);return me<0?(++this.size,U.push([I,D])):U[me][1]=D,this}cr.prototype.clear=Zl,cr.prototype.delete=Fd,cr.prototype.get=qs,cr.prototype.has=Xl,cr.prototype.set=Bd;function Ci(I){var D=-1,U=I==null?0:I.length;for(this.clear();+
|
||
|
* 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 wi=typeof Symbol=="function"&&Symbol.for,v8=wi?Symbol.for("react.element"):60103,y8=wi?Symbol.for("react.portal"):60106,C4=wi?Symbol.for("react.fragment"):60107,_4=wi?Symbol.for("react.strict_mode"):60108,k4=wi?Symbol.for("react.profiler"):60114,E4=wi?Symbol.for("react.provider"):60109,P4=wi?Symbol.for("react.context"):60110,b8=wi?Symbol.for("react.async_mode"):60111,T4=wi?Symbol.for("react.concurrent_mode"):60111,L4=wi?Symbol.for("react.forward_ref"):60112,A4=wi?Symbol.for("react.suspense"):60113,BX=wi?Symbol.for("react.suspense_list"):60120,I4=wi?Symbol.for("react.memo"):60115,R4=wi?Symbol.for("react.lazy"):60116,HX=wi?Symbol.for("react.block"):60121,WX=wi?Symbol.for("react.fundamental"):60117,VX=wi?Symbol.for("react.responder"):60118,UX=wi?Symbol.for("react.scope"):60119;function Ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case v8:switch(e=e.type,e){case b8:case T4:case C4:case k4:case _4:case A4:return e;default:switch(e=e&&e.$$typeof,e){case P4:case L4:case R4:case I4:case E4:return e;default:return t}}case y8:return t}}}function LO(e){return Ta(e)===T4}On.AsyncMode=b8;On.ConcurrentMode=T4;On.ContextConsumer=P4;On.ContextProvider=E4;On.Element=v8;On.ForwardRef=L4;On.Fragment=C4;On.Lazy=R4;On.Memo=I4;On.Portal=y8;On.Profiler=k4;On.StrictMode=_4;On.Suspense=A4;On.isAsyncMode=function(e){return LO(e)||Ta(e)===b8};On.isConcurrentMode=LO;On.isContextConsumer=function(e){return Ta(e)===P4};On.isContextProvider=function(e){return Ta(e)===E4};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===v8};On.isForwardRef=function(e){return Ta(e)===L4};On.isFragment=function(e){return Ta(e)===C4};On.isLazy=function(e){return Ta(e)===R4};On.isMemo=function(e){return Ta(e)===I4};On.isPortal=function(e){return Ta(e)===y8};On.isProfiler=function(e){return Ta(e)===k4};On.isStrictMode=function(e){return Ta(e)===_4};On.isSuspense=function(e){return Ta(e)===A4};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===C4||e===T4||e===k4||e===_4||e===A4||e===BX||typeof e=="object"&&e!==null&&(e.$$typeof===R4||e.$$typeof===I4||e.$$typeof===E4||e.$$typeof===P4||e.$$typeof===L4||e.$$typeof===WX||e.$$typeof===VX||e.$$typeof===UX||e.$$typeof===HX)};On.typeOf=Ta;(function(e){e.exports=On})(TO);var AO=TO.exports,GX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},IO={};IO[AO.ForwardRef]=GX;IO[AO.Memo]=jX;var qX=!0;function KX(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var RO=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||qX===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},MO=function(t,n,r){RO(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function YX(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZX={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${a}px !important;
|
||
|
top: ${s}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(d)}},[t]),w(hie,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const sS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=B4(gie),l=C.exports.useId(),d=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:p=>{s.set(p,!0);for(const g of s.values())if(!g)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((p,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w(pie,{isPresent:n,children:e})),w(K0.Provider,{value:d,children:e})};function gie(){return new Map}const Rp=e=>e.key||"";function mie(e,t){e.forEach(n=>{const r=Rp(n);t.set(r,n)})}function vie(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Yu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",QN(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=fie();const l=C.exports.useContext(k8).forceRender;l&&(s=l);const d=ED(),p=vie(e);let g=p;const m=new Set,y=C.exports.useRef(g),b=C.exports.useRef(new Map).current,S=C.exports.useRef(!0);if(c3(()=>{S.current=!1,mie(p,b),y.current=g}),M8(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return w(Un,{children:g.map(L=>w(sS,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},Rp(L)))});g=[...g];const E=y.current.map(Rp),P=p.map(Rp),k=E.length;for(let L=0;L<k;L++){const R=E[L];P.indexOf(R)===-1&&m.add(R)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(P.indexOf(L)!==-1)return;const R=b.get(L);if(!R)return;const N=E.indexOf(L),z=()=>{b.delete(L),m.delete(L);const $=y.current.findIndex(F=>F.key===L);if(y.current.splice($,1),!m.size){if(y.current=p,d.current===!1)return;s(),r&&r()}};g.splice(N,0,w(sS,{isPresent:!1,onExitComplete:z,custom:t,presenceAffectsLayout:o,mode:a,children:R},Rp(R)))}),g=g.map(L=>{const R=L.key;return m.has(R)?L:w(sS,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},Rp(L))}),XN!=="production"&&a==="wait"&&g.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),w(Un,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var Ev=(...e)=>e.filter(Boolean).join(" ");function yie(){return!1}var bie=e=>{const{condition:t,message:n}=e;t&&yie()&&console.warn(n)},Yf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},dg={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 z6(e){switch(e?.direction??"right"){case"right":return dg.slideRight;case"left":return dg.slideLeft;case"bottom":return dg.slideDown;case"top":return dg.slideUp;default:return dg.slideRight}}var ih={enter:{duration:.2,ease:Yf.easeOut},exit:{duration:.1,ease:Yf.easeIn}},Hs={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},xie=e=>e!=null&&parseInt(e.toString(),10)>0,wT={exit:{height:{duration:.2,ease:Yf.ease},opacity:{duration:.3,ease:Yf.ease}},enter:{height:{duration:.3,ease:Yf.ease},opacity:{duration:.4,ease:Yf.ease}}},Sie={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:xie(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??Hs.exit(wT.exit,i)}),enter:({animateOpacity:e,endingHei
|
||
|
`})}function Hie(e){K4({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Xf(e){const{isOpen:t,isDisabled:n}=Y8(),{reduceMotion:r}=Z8(),i=Pv("chakra-accordion__icon",e.className),o=Y4(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return w(JO,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Xf.displayName="AccordionIcon";var Qf=Le(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=zie(t),l={...Y4().container,overflowAnchor:"none"},d=C.exports.useMemo(()=>a,[a]);return re.createElement(Iie,{value:d},re.createElement(Ce.div,{ref:n,...o,className:Pv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Qf.displayName="AccordionItem";var Jf=Le(function(t,n){const{reduceMotion:r}=Z8(),{getPanelProps:i,isOpen:o}=Y8(),a=i(t,n),s=Pv("chakra-accordion__panel",t.className),l=Y4();r||delete a.hidden;const d=re.createElement(Ce.div,{...a,__css:l.panel,className:s});return r?d:w(PD,{in:o,children:d})});Jf.displayName="AccordionPanel";var Z4=Le(function({children:t,reduceMotion:n,...r},i){const o=Ui("Accordion",r),a=_n(r),{htmlProps:s,descendants:l,...d}=Nie(a),p=C.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return re.createElement(Rie,{value:l},re.createElement(Die,{value:p},re.createElement(Aie,{value:o},re.createElement(Ce.div,{ref:i,...s,className:Pv("chakra-accordion",r.className),__css:o.root},t))))});Z4.displayName="Accordion";var _T={path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},X4=Le((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:l,...d}=e,p=$n("chakra-icon",s),g={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l},m={ref:t,focusable:o,className:p,__css:g},y=r??_T.viewBox;if(n&&typeof n!="string")return re.createElement(Ce.svg,{as:n,...m,...d});const b=a??_T.path;return re.createElement(Ce.svg,{verticalAlign:"middle",viewBox:y,...m,...d},b)});X4.displayName="Icon";var Wie=(...e)=>e.filter(Boolean).join(" "),Vie=yv({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),X0=Le((e,t)=>{const n=Eo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=_n(e),d=Wie("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Vie} ${o} linear infinite`,...n};return re.createElement(Ce.div,{ref:t,__css:p,className:d,...l},r&&re.createElement(Ce.span,{srOnly:!0},r))});X0.displayName="Spinner";var Q4=(...e)=>e.filter(Boolean).join(" ");function Uie(e){return w(X4,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Gie(e){return w(X4,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function kT(e){return w(X4,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.
|
||
|
* @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 tb=(...e)=>e.filter(Boolean).join(" "),PT=e=>e?"":void 0,[loe,uoe]=Tn({strict:!1,name:"ButtonGroupContext"});function F6(e){const{children:t,className:n,...r}=e,i=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=tb("chakra-button__icon",n);return re.createElement(Ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o},i)}F6.displayName="ButtonIcon";function B6(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=w(X0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=tb("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return re.createElement(Ce.div,{className:l,...s,__css:p},i)}B6.displayName="ButtonSpinner";function coe(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}var ts=Le((e,t)=>{const n=uoe(),r=Eo("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:d,loadingText:p,iconSpacing:g="0.5rem",type:m,spinner:y,spinnerPlacement:b="start",className:S,as:E,...P}=_n(e),k=C.exports.useMemo(()=>{const z={...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:z}}},[r,n]),{ref:L,type:R}=coe(E),N={rightIcon:d,leftIcon:l,iconSpacing:g,children:s};return re.createElement(Ce.button,{disabled:i||o,ref:_J(t,L),as:E,type:m??R,"data-active":PT(a),"data-loading":PT(o),__css:k,className:tb("chakra-button",S),...P},o&&b==="start"&&w(B6,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:g,children:y}),o?p||re.createElement(Ce.span,{opacity:0},w(TT,{...N})):w(TT,{...N}),o&&b==="end"&&w(B6,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:g,children:y}))});ts.displayName="Button";function TT(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return ne(Un,{children:[t&&w(F6,{marginEnd:i,children:t}),r,n&&w(F6,{marginStart:i,children:n})]})}var FD=Le(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:d,...p}=t,g=tb("chakra-button__group",a),m=C.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let y={display:"inline-flex"};return l?y={...y,"> *: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}}:y={...y,"& > *:not(style) ~ *:not(style)":{marginStart:s}},re.createElement(loe,{value:m},re.createElement(Ce.div,{ref:n,role:"group",__css:y,className:g,"data-attached":l?"":void 0,...p}))});FD.displayName="ButtonGroup";var no=Le((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,s=n||r,l=C.exports.isValidElement(s)?C.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return w(ts,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});no.displayName="IconButton";var LT={path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},BD=Le((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:l,...d}=e,p=$n("chakra-icon",s),g={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l},m={ref:t,focusable:o,className:p,__css:g},y=r??LT.viewBox;if(n&&typeof n!="string")return re.createElement(Ce.svg,{as:n,...m,...d});const b=a??LT.path;return re.createElement(Ce.svg,{verticalAlign:"mi
|
||
|
: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;
|
||
|
}
|
||
|
}
|
||
|
`,Hoe=()=>w(M4,{styles:YD}),Woe=()=>w(M4,{styles:`
|
||
|
html {
|
||
|
line-height: 1.5;
|
||
|
-webkit-text-size-adjust: 100%;
|
||
|
font-family: system-ui, sans-serif;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
touch-action: manipulation;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
position: relative;
|
||
|
min-height: 100%;
|
||
|
font-feature-settings: 'kern';
|
||
|
}
|
||
|
|
||
|
*,
|
||
|
*::before,
|
||
|
*::after {
|
||
|
border-width: 0;
|
||
|
border-style: solid;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
border-top-width: 1px;
|
||
|
box-sizing: content-box;
|
||
|
height: 0;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
pre,
|
||
|
code,
|
||
|
kbd,
|
||
|
samp {
|
||
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
background-color: transparent;
|
||
|
color: inherit;
|
||
|
text-decoration: inherit;
|
||
|
}
|
||
|
|
||
|
abbr[title] {
|
||
|
border-bottom: none;
|
||
|
text-decoration: underline;
|
||
|
-webkit-text-decoration: underline dotted;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
|
||
|
b,
|
||
|
strong {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
small {
|
||
|
font-size: 80%;
|
||
|
}
|
||
|
|
||
|
sub,
|
||
|
sup {
|
||
|
font-size: 75%;
|
||
|
line-height: 0;
|
||
|
position: relative;
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
sub {
|
||
|
bottom: -0.25em;
|
||
|
}
|
||
|
|
||
|
sup {
|
||
|
top: -0.5em;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
border-style: none;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
optgroup,
|
||
|
select,
|
||
|
textarea {
|
||
|
font-family: inherit;
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input {
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
select {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
button::-moz-focus-inner,
|
||
|
[type="button"]::-moz-focus-inner,
|
||
|
[type="reset"]::-moz-focus-inner,
|
||
|
[type="submit"]::-moz-focus-inner {
|
||
|
border-style: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
fieldset {
|
||
|
padding: 0.35em 0.75em 0.625em;
|
||
|
}
|
||
|
|
||
|
legend {
|
||
|
box-sizing: border-box;
|
||
|
color: inherit;
|
||
|
display: table;
|
||
|
max-width: 100%;
|
||
|
padding: 0;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
|
||
|
progress {
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
textarea {
|
||
|
overflow: auto;
|
||
|
}
|
||
|
|
||
|
[type="checkbox"],
|
||
|
[type="radio"] {
|
||
|
box-sizing: border-box;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
[type="number"]::-webkit-inner-spin-button,
|
||
|
[type="number"]::-webkit-outer-spin-button {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
input[type="number"] {
|
||
|
-moz-appearance: textfield;
|
||
|
}
|
||
|
|
||
|
[type="search"] {
|
||
|
-webkit-appearance: textfield;
|
||
|
outline-offset: -2px;
|
||
|
}
|
||
|
|
||
|
[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
::-webkit-file-upload-button {
|
||
|
-webkit-appearance: button;
|
||
|
font: inherit;
|
||
|
}
|
||
|
|
||
|
details {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
summary {
|
||
|
display: list-item;
|
||
|
}
|
||
|
|
||
|
template {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
[hidden] {
|
||
|
display: none !important;
|
||
|
}
|
||
|
|
||
|
body,
|
||
|
blockquote,
|
||
|
dl,
|
||
|
dd,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
hr,
|
||
|
figure,
|
||
|
p,
|
||
|
pre {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
background: transparent;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
fieldset {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
ol,
|
||
|
ul {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
textarea {
|
||
|
resize: vertical;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
[role="button"] {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
button::-moz-focus-inner {
|
||
|
border: 0 !important;
|
||
|
}
|
||
|
|
||
|
table {
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6 {
|
||
|
font-size: inherit;
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
optgroup,
|
||
|
select,
|
||
|
textarea {
|
||
|
padding: 0;
|
||
|
line-height: inherit;
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
img,
|
||
|
svg,
|
||
|
video,
|
||
|
canvas,
|
||
|
audio,
|
||
|
iframe,
|
||
|
embed,
|
||
|
object {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
img,
|
||
|
video {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
|
||
|
outline: none;
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
select::-ms-expand {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
${YD}
|
||
|
`});function U6(e,t,n,r){const i=Ar(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}var Voe=xv?C.exports.useLayoutEffect:C.exports.useEffect;function G6(e,t=[]){const n=C.exports.useRef(e);return Voe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function r_(e,t,n,r){const i=G6(t);return C.exports.useEffect(()=>{const o=s3(n)??document;if(!!t)return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{(s3(n)??document).removeEventListener(e,i,r)}}function Uoe(e){const{isOpen:t,ref:n}=e,[r,i]=C.exports.useState(t),[o,a]=C.exports.useState(!1);return C.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),r_("animationend",()=>{i(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var l;const d=vQ(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(p)}}}function Goe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function joe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function _3(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=G6(n),a=G6(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[d,p]=Goe(r,s),g=joe(i,"disclosure"),m=C.exports.useCallback(()=>{d||l(!1),a?.()},[d,a]),y=C.exports.useCallback(()=>{d||l(!0),o?.()},[d,o]),b=C.exports.useCallback(()=>{(p?m:y)()},[p,y,m]);return{isOpen:!!p,onOpen:y,onClose:m,onToggle:b,isControlled:d,getButtonProps:(S={})=>({...S,"aria-expanded":p,"aria-controls":g,onClick:AQ(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:g})}}var ZD=(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 qoe(e){const t=e.current;if(!t)return!1;const n=xQ(t);return!n||C8(t,n)?!1:!!kQ(n)}function Koe(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;ZD(()=>{if(!o||qoe(e))return;const a=i?.current||e.current;a&&l3(a,{nextTick:!0})},[o,e,i])}function Yoe(e,t,n,r){return r_(YQ(t),VQ(n,t==="pointerdown"),e,r)}function Zoe(e){const{ref:t,elements:n,enabled:r}=e,i=XQ("Safari");Yoe(()=>bv(t.current),"pointerdown",a=>{if(!i||!r)return;const s=a.target,d=(n??[t]).some(p=>{const g=HO(p)?p.current:p;return C8(g,s)});!jO(s)&&d&&(a.preventDefault(),l3(s))})}var Xoe={preventScroll:!0,shouldFocus:!1};function Qoe(e,t=Xoe){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=HO(e)?e.current:e,s=i&&o,l=C.exports.useCallback(()=>{if(!(!a||!s)&&!C8(a,document.activeElement))if(n?.current)l3(n.current,{preventScroll:r,nextTick:!0});else{const d=LQ(a);d.length>0&&l3(d[0],{preventScroll:r,nextTick:!0})}},[s,r,a,n]);ZD(()=>{l()},[l]),r_("transitionend",l,a)}var DT={path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ib=Le((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:l,...d}=e,p=$n("chakra-icon",s),g={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l},m={ref:t,focusable:o,className:p,__css:g},y=r??DT.viewBox;if(n&&typeof n!="string")return re.createElement(Ce.svg,{as:n,...m,...d});const b=a??DT.path;return re.createElement(Ce.svg,{verticalAlign:"middle",viewBox:y,...m,...d},b)});ib.displayName="Icon";function e1(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=C.exports.Children.toArray(e.path),a=Le((s,l)=>w(ib,{ref:l,viewBox:t,...i,...s,children:o.length?o:w("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}fu
|
||
|
.`.concat(_ue,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(i,`px;
|
||
|
padding-top: `).concat(o,`px;
|
||
|
padding-right: `).concat(a,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(c5,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(d5,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(c5," .").concat(c5,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(d5," .").concat(d5,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(kue,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},zue=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return Oue(i)},[i]);return w(Nue,{styles:Due(o,!t,i,n?"":"!important")})},eC=!1;if(typeof window<"u")try{var uy=Object.defineProperty({},"passive",{get:function(){return eC=!0,!0}});window.addEventListener("test",uy,uy),window.removeEventListener("test",uy,uy)}catch{eC=!1}var _p=eC?{passive:!1}:!1,$ue=function(e){return e.tagName==="TEXTAREA"},d$=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$ue(e)&&n[t]==="visible")},Fue=function(e){return d$(e,"overflowY")},Bue=function(e){return d$(e,"overflowX")},rL=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=f$(e,n);if(r){var i=h$(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Hue=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Wue=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},f$=function(e,t){return e==="v"?Fue(t):Bue(t)},h$=function(e,t){return e==="v"?Hue(t):Wue(t)},Vue=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uue=function(e,t,n,r,i){var o=Vue(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),d=!1,p=a>0,g=0,m=0;do{var y=h$(e,s),b=y[0],S=y[1],E=y[2],P=S-E-o*b;(b||P)&&f$(e,s)&&(g+=P,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(d=!0),d},cy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iL=function(e){return[e.deltaX,e.deltaY]},oL=function(e){return e&&"current"in e?e.current:e},Gue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jue=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},que=0,kp=[];function Kue(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(que++)[0],o=C.exports.useState(function(){return c$()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=S6([e.lockRef.current],(e.shards||[]).map(oL),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(S,E){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var P=cy(S),k=n.current,L="deltaX"in S?S.deltaX:k[0]-P[0],R="deltaY"in S?S.deltaY:k[1]-P[1],N,z=S.target,$=Math.abs(L)>Math.abs(R)?"h":"v";if("touches"in S&&$==="h"&&z.type==="range")return!1;var F=rL($,z);if(!F)return!0;if(F?N=$:(N=$==="v"?"h":"v",F=rL($,z)),!F)return!1;if(!r.current&&"changedTouches"in S&&(L||R)&&(r.current=N),!N)return!0;var q=r.current||N;return Uue(q,E,S,q==="h"?L:R,!0)},[]),l=C.exports.useCallback(function(S){var E=S;if(!(!kp.length||kp[kp.length-1]!==o)){var P="deltaY"in E?iL(E):cy(E),k=t.current.filter(function(N){return N.name===E.type&&N.target===E.target&&Gue(N.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(oL).filter(Boolean).filter(function(N){return N.contains(E.target)}),R=L.length>0?s(E,L[0]):!a.current.noIsolation;R&&E.cancelable&&E.preventDefault()}}},[]),d=C.exports.useCallback(function(S,E,P,k){var L={name:S,delta:E,target:P,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(R){return R!==L})},1)},[]),p=C.exports.useCallback(function(S){n.current=cy(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){d(S.type,iL(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){d(S.type,cy(S),S.target,s(S,e.lockRef.current))},[]);C.exports.useEffect(function(){return kp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,_p),document.addEventListener("touchmove",l,_p),document.addEventListener("touchstart",p,_p),function(){kp=kp.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,_p),document.removeEventListener("touchmove",l,_p),document.removeEventListener("touchstart",p,_p)}},[]);var y=e.removeScrollBar,b=e.inert;return ne(Un,{children:[b?w(o,{styles:jue(i)}):null,y?w(zue,{gapMode:"margin"}):null]})}const Yue=Lle(u$,Kue);var p$=C.exports.forwardRef(function(e,t){return w(sb,{...Tl({},e,{ref:t,sideCar:Yue})})});p$.classNames=sb.classNames;const g$=p$;var Ch=(...e)=>e.filter(Boolean).join(" ");function Tg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Zue=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}},tC=new Zue;function Xue(e,t){C.exports.useEffect(()=>(t&&tC.add(e),()=>{tC.remove(e)}),[t,e])}function Que(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,d=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=ece(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Jue(d,t&&a),Xue(d,t);const b=C.exports.useRef(null),S=C.exports.useCallback(F=>{b.current=F.target},[]),E=C.exports.useCallback(F=>{F.key==="Escape"&&(F.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[L,R]=C.exports.useState(!1),N=C.exports.useCallback((F={},q=null)=>({role:"dialog",...F,ref:Vn(q,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":L?y:void 0,onClick:Tg(F.onClick,j=>j.stopPropagation())}),[y,L,g,m,P]),z=C.exports.useCallback(F=>{F.stopPropagation(),b.current===F.target&&(!tC.isTopModal(d)||(i&&n?.()
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function Mhe(e){const t=oF().toHexString();return!e||Ahe(e)?t:e.string&&e.colors?Nhe(e.string,e.colors):e.string&&!e.colors?Ohe(e.string):e.colors&&!e.string?Dhe(e.colors):t}function Ohe(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 Nhe(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 Dhe(e){return e[Math.floor(Math.random()*e.length)]}function Ae(e,t){return n=>n.colorMode==="dark"?t:e}function F_(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function zhe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function uF(e){return zhe(e)&&e.reference?e.reference:String(e)}var vb=(e,...t)=>t.map(uF).join(` ${e} `).replace(/calc/g,""),CL=(...e)=>`calc(${vb("+",...e)})`,_L=(...e)=>`calc(${vb("-",...e)})`,sC=(...e)=>`calc(${vb("*",...e)})`,kL=(...e)=>`calc(${vb("/",...e)})`,EL=e=>{const t=uF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:sC(t,-1)},Iu=Object.assign(e=>({add:(...t)=>Iu(CL(e,...t)),subtract:(...t)=>Iu(_L(e,...t)),multiply:(...t)=>Iu(sC(e,...t)),divide:(...t)=>Iu(kL(e,...t)),negate:()=>Iu(EL(e)),toString:()=>e.toString()}),{add:CL,subtract:_L,multiply:sC,divide:kL,negate:EL});function $he(e){return!Number.isInteger(parseFloat(e.toString()))}function Fhe(e,t="-"){return e.replace(/\s+/g,t)}function cF(e){const t=Fhe(e.toString());return t.includes("\\.")?e:$he(e)?t.replace(".","\\."):e}function Bhe(e,t=""){return[t,cF(e)].filter(Boolean).join("-")}function Hhe(e,t){return`var(${cF(e)}${t?`, ${t}`:""})`}function Whe(e,t=""){return`--${Bhe(e,t)}`}function Zo(e,t){const n=Whe(e,t?.prefix);return{variable:n,reference:Hhe(n,Vhe(t?.fallback))}}function Vhe(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Uhe,defineMultiStyleConfig:Ghe}=ur(efe.keys),jhe={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},qhe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Khe={pt:"2",px:"4",pb:"5"},Yhe={fontSize:"1.25em"},Zhe=Uhe({container:jhe,button:qhe,panel:Khe,icon:Yhe}),Xhe=Ghe({baseStyle:Zhe}),{definePartsStyle:Nv,defineMultiStyleConfig:Qhe}=ur(tfe.keys),Vu=Eh("alert-fg"),Dv=Eh("alert-bg"),Jhe=Nv({container:{bg:Dv.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Vu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Vu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function B_(e){const{theme:t,colorScheme:n}=e,r=si(t,`${n}.100`,n),i=$0(`${n}.200`,.16)(t);return Ae(r,i)(e)}var epe=Nv(e=>{const{colorScheme:t}=e,n=Ae(`${t}.500`,`${t}.200`)(e);return{container:{[Dv.variable]:B_(e),[Vu.variable]:`colors.${n}`}}}),tpe=Nv(e=>{const{colorScheme:t}=e,n=Ae(`${t}.500`,`${t}.200`)(e);return{container:{[Dv.variable]:B_(e),[Vu.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Vu.reference}}}),npe=Nv(e=>{const{colorScheme:t}=e,n=Ae(`${t}.500`,`${t}.200`)(e);return{container:{[Dv.variable]:B_(e),[Vu.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Vu.reference}}}),rpe=Nv(e=>{const{colorScheme:t}=e,n=Ae(`${t}.500`,`${t}.200`)(e),r=Ae("white","gray.900")(e);return{container:{[Dv.variable]:`colors.${n}`,[Vu.variable]:`colors.${r}`,color:Vu.reference}}}),ipe={subtle:epe,"left-accent":tpe,"top-accent":npe,solid:rpe},ope=Qhe({baseStyle:Jhe,variants:ipe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),dF={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"
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${si(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Z1e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},X1e=e=>({bg:Ae("gray.100","whiteAlpha.300")(e)}),Q1e=e=>({transitionProperty:"common",transitionDuration:"slow",...Y1e(e)}),J1e=Ag(e=>({label:Z1e,filledTrack:Q1e(e),track:X1e(e)})),ege={xs:Ag({track:{h:"1"}}),sm:Ag({track:{h:"2"}}),md:Ag({track:{h:"3"}}),lg:Ag({track:{h:"4"}})},tge=K1e({sizes:ege,baseStyle:J1e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nge,definePartsStyle:m5}=ur(mfe.keys),rge=e=>{var t;const n=(t=Ur(I3.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"}}}},ige=m5(e=>{var t,n,r,i;return{label:(n=(t=I3).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=I3).baseStyle)==null?void 0:i.call(r,e).container,control:rge(e)}}),oge={md:m5({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:m5({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:m5({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},age=nge({baseStyle:ige,sizes:oge,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:sge,definePartsStyle:lge}=ur(vfe.keys),uge=e=>{var t;return{...(t=Cn.baseStyle)==null?void 0:t.field,bg:Ae("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ae("white","gray.700")(e)}}},cge={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},dge=lge(e=>({field:uge(e),icon:cge})),my={paddingInlineEnd:"8"},LL,AL,IL,RL,ML,OL,NL,DL,fge={lg:{...(LL=Cn.sizes)==null?void 0:LL.lg,field:{...(AL=Cn.sizes)==null?void 0:AL.lg.field,...my}},md:{...(IL=Cn.sizes)==null?void 0:IL.md,field:{...(RL=Cn.sizes)==null?void 0:RL.md.field,...my}},sm:{...(ML=Cn.sizes)==null?void 0:ML.sm,field:{...(OL=Cn.sizes)==null?void 0:OL.sm.field,...my}},xs:{...(NL=Cn.sizes)==null?void 0:NL.xs,field:{...(DL=Cn.sizes)==null?void 0:DL.sm.field,...my},icon:{insetEnd:"1"}}},hge=sge({baseStyle:dge,sizes:fge,variants:Cn.variants,defaultProps:Cn.defaultProps}),pge=Eh("skeleton-start-color"),gge=Eh("skeleton-end-color"),mge=e=>{const t=Ae("gray.100","gray.800")(e),n=Ae("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=si(o,r),s=si(o,i);return{[pge.variable]:a,[gge.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},vge={baseStyle:mge},yge=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Ae("white","gray.700")(e)}}),bge={baseStyle:yge},{defineMultiStyleConfig:xge,definePartsStyle:yb}=ur(yfe.keys),tv=Eh("slider-thumb-size"),nv=Eh("slider-track-size"),Sge=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...F_({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},wge=e=>({...F_({orientation:e.orientation,horizontal:{h:nv.reference},vertical:{w:nv.reference}}),overflow:"hidden",borderRadius:"sm",bg:Ae("gray.200","whiteAlpha.200")(e),_disabled:{bg:Ae("gray.300","whiteAlpha.300")(e)}}),Cge=e=>{const{orientation:t}=e;return{...F_({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:tv.reference,h:tv.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"}}},_ge=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Ae(`${t}.500`,`${t}.200`)(e)}},kge=yb(e=>({container:Sge(e),track:wge(e),thumb:Cge(e),filledTrack:_ge(e)})),Ege=yb({container:{[tv.variable]:"sizes.4",[
|
||
|
* @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 F0=C.exports;function c2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var d2e=typeof Object.is=="function"?Object.is:c2e,f2e=F0.useState,h2e=F0.useEffect,p2e=F0.useLayoutEffect,g2e=F0.useDebugValue;function m2e(e,t){var n=t(),r=f2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return p2e(function(){i.value=n,i.getSnapshot=t,DS(i)&&o({inst:i})},[e,n,t]),h2e(function(){return DS(i)&&o({inst:i}),e(function(){DS(i)&&o({inst:i})})},[e]),g2e(n),n}function DS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!d2e(e,n)}catch{return!0}}function v2e(e,t){return t()}var y2e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v2e:m2e;OF.useSyncExternalStore=F0.useSyncExternalStore!==void 0?F0.useSyncExternalStore:y2e;(function(e){e.exports=OF})(MF);var NF={exports:{}},DF={};/**
|
||
|
* @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 xb=C.exports,b2e=MF.exports;function x2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S2e=typeof Object.is=="function"?Object.is:x2e,w2e=b2e.useSyncExternalStore,C2e=xb.useRef,_2e=xb.useEffect,k2e=xb.useMemo,E2e=xb.useDebugValue;DF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=C2e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=k2e(function(){function l(y){if(!d){if(d=!0,p=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return g=b}return g=y}if(b=g,S2e(p,y))return b;var S=r(y);return i!==void 0&&i(b,S)?b:(p=y,g=S)}var d=!1,p,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=w2e(e,o[0],o[1]);return _2e(function(){a.hasValue=!0,a.value=s},[s]),E2e(s),s};(function(e){e.exports=DF})(NF);function P2e(e){e()}let zF=P2e;const T2e=e=>zF=e,L2e=()=>zF,wd=re.createContext(null);function $F(){return C.exports.useContext(wd)}const A2e=()=>{throw new Error("uSES not initialized!")};let FF=A2e;const I2e=e=>{FF=e},R2e=(e,t)=>e===t;function M2e(e=wd){const t=e===wd?$F:()=>C.exports.useContext(e);return function(r,i=R2e){const{store:o,subscription:a,getServerState:s}=t(),l=FF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const O2e=M2e();var N2e={exports:{}},Nn={};/**
|
||
|
* @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 X_=Symbol.for("react.element"),Q_=Symbol.for("react.portal"),Sb=Symbol.for("react.fragment"),wb=Symbol.for("react.strict_mode"),Cb=Symbol.for("react.profiler"),_b=Symbol.for("react.provider"),kb=Symbol.for("react.context"),D2e=Symbol.for("react.server_context"),Eb=Symbol.for("react.forward_ref"),Pb=Symbol.for("react.suspense"),Tb=Symbol.for("react.suspense_list"),Lb=Symbol.for("react.memo"),Ab=Symbol.for("react.lazy"),z2e=Symbol.for("react.offscreen"),BF;BF=Symbol.for("react.module.reference");function cs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case X_:switch(e=e.type,e){case Sb:case Cb:case wb:case Pb:case Tb:return e;default:switch(e=e&&e.$$typeof,e){case D2e:case kb:case Eb:case Ab:case Lb:case _b:return e;default:return t}}case Q_:return t}}}Nn.ContextConsumer=kb;Nn.ContextProvider=_b;Nn.Element=X_;Nn.ForwardRef=Eb;Nn.Fragment=Sb;Nn.Lazy=Ab;Nn.Memo=Lb;Nn.Portal=Q_;Nn.Profiler=Cb;Nn.StrictMode=wb;Nn.Suspense=Pb;Nn.SuspenseList=Tb;Nn.isAsyncMode=function(){return!1};Nn.isConcurrentMode=function(){return!1};Nn.isContextConsumer=function(e){return cs(e)===kb};Nn.isContextProvider=function(e){return cs(e)===_b};Nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===X_};Nn.isForwardRef=function(e){return cs(e)===Eb};Nn.isFragment=function(e){return cs(e)===Sb};Nn.isLazy=function(e){return cs(e)===Ab};Nn.isMemo=function(e){return cs(e)===Lb};Nn.isPortal=function(e){return cs(e)===Q_};Nn.isProfiler=function(e){return cs(e)===Cb};Nn.isStrictMode=function(e){return cs(e)===wb};Nn.isSuspense=function(e){return cs(e)===Pb};Nn.isSuspenseList=function(e){return cs(e)===Tb};Nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sb||e===Cb||e===wb||e===Pb||e===Tb||e===z2e||typeof e=="object"&&e!==null&&(e.$$typeof===Ab||e.$$typeof===Lb||e.$$typeof===_b||e.$$typeof===kb||e.$$typeof===Eb||e.$$typeof===BF||e.getModuleId!==void 0)};Nn.typeOf=cs;(function(e){e.exports=Nn})(N2e);function $2e(){const e=L2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const oA={notify(){},get:()=>[]};function F2e(e,t){let n,r=oA;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){p.onStateChange&&p.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=$2e())}function d(){n&&(n(),n=void 0,r.clear(),r=oA)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:d,getListeners:()=>r};return p}const B2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",H2e=B2e?C.exports.useLayoutEffect:C.exports.useEffect;function W2e({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=F2e(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return H2e(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),w((t||wd).Provider,{value:i,children:n})}function HF(e=wd){const t=e===wd?$F:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const V2e=HF();function U2e(e=wd){const t=e===wd?V2e:HF(e);return function(){return t().dispatch}}const G2e=U2e();I2e(NF.exports.useSyncExternalStoreWithSelector);T2e(jl.exports.unstable_batchedUpdates);var J_="persist:",WF="persist/FLUSH",e7="persist/REHYDRATE",VF="persist/PAUSE",UF="persist/PERSIST",GF="persist/PURGE",jF="persist/REGISTER",j2e=-1;function y5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y5=function(n){return typeof n}:y5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
|
||
|
* @license
|
||
|
* Lodash <https://lodash.com/>
|
||
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
|
* Released under MIT license <https://lodash.com/license>
|
||
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
|
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,m=2,y=4,b=1,S=2,E=1,P=2,k=4,L=8,R=16,N=32,z=64,$=128,F=256,q=512,j=30,Y="...",ve=800,ge=16,Se=1,_e=2,we=3,J=1/0,G=9007199254740991,te=17976931348623157e292,Q=0/0,W=4294967295,se=W-1,de=W>>>1,xe=[["ary",$],["bind",E],["bindKey",P],["curry",L],["curryRight",R],["flip",q],["partial",N],["partialRight",z],["rearg",F]],ze="[object Arguments]",Me="[object Array]",Ue="[object AsyncFunction]",Ee="[object Boolean]",Ve="[object Date]",ot="[object DOMException]",pt="[object Error]",Wt="[object Function]",Dt="[object GeneratorFunction]",Oe="[object Map]",nt="[object Number]",mt="[object Null]",st="[object Object]",vt="[object Promise]",yn="[object Proxy]",yt="[object RegExp]",Vt="[object Set]",on="[object String]",zt="[object Symbol]",Ne="[object Undefined]",tt="[object WeakMap]",jt="[object WeakSet]",Ut="[object ArrayBuffer]",Pe="[object DataView]",Pt="[object Float32Array]",en="[object Float64Array]",jn="[object Int8Array]",je="[object Int16Array]",At="[object Int32Array]",Be="[object Uint8Array]",ct="[object Uint8ClampedArray]",qe="[object Uint16Array]",St="[object Uint32Array]",tn=/\b__p \+= '';/g,Qn=/\b(__p \+=) '' \+/g,Cr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gr=/&(?:amp|lt|gt|quot|#39);/g,Gi=/[&<>"']/g,zd=RegExp(Gr.source),jr=RegExp(Gi.source),nc=/<%-([\s\S]+?)%>/g,$d=/<%([\s\S]+?)%>/g,js=/<%=([\s\S]+?)%>/g,rc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ic=/^\w*$/,cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zl=/[\\^$.*+?()[\]{}|]/g,Fd=RegExp(Zl.source),qs=/^\s+/,Xl=/\s/,Bd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ci=/\{\n\/\* \[wrapped with (.+)\] \*/,Ks=/,? & /,Hd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wd=/[()=,{}\[\]\/\s]/,Vd=/\\(\\)?/g,Ud=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ci=/\w*$/,Gd=/^[-+]0x[0-9a-f]+$/i,jd=/^0b[01]+$/i,qd=/^\[object .+?Constructor\]$/,Kd=/^0o[0-7]+$/i,Yd=/^(?:0|[1-9]\d*)$/,Zd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Po=/($^)/,Xd=/['\n\r\u2028\u2029\\]/g,ji="\\ud800-\\udfff",Xo="\\u0300-\\u036f",fs="\\ufe20-\\ufe2f",oo="\\u20d0-\\u20ff",La=Xo+fs+oo,oc="\\u2700-\\u27bf",Ys="a-z\\xdf-\\xf6\\xf8-\\xff",Aa="\\xac\\xb1\\xd7\\xf7",qi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bn="\\u2000-\\u206f",hn=" \\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",ao="A-Z\\xc0-\\xd6\\xd8-\\xde",dr="\\ufe0e\\ufe0f",Rr=Aa+qi+bn+hn,so="['\u2019]",Ia="["+ji+"]",Mr="["+Rr+"]",Qo="["+La+"]",Ql="\\d+",To="["+oc+"]",lo="["+Ys+"]",Jl="[^"+ji+Rr+Ql+oc+Ys+ao+"]",ti="\\ud83c[\\udffb-\\udfff]",eu="(?:"+Qo+"|"+ti+")",ac="[^"+ji+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",_i="["+ao+"]",Ma="\\u200d",hs="(?:"+lo+"|"+Jl+")",Qd="(?:"+_i+"|"+Jl+")",Oa="(?:"+so+"(?:d|ll|m|re|s|t|ve))?",Zs="(?:"+so+"(?:D|LL|M|RE|S|T|VE))?",nu=eu+"?",Xs="["+dr+"]?",ki="(?:"+Ma+"(?:"+[ac,tu,Ra].join("|")+")"+Xs+nu+")*",ps="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",It=Xs+nu+ki,sc="(?:"+[To,tu,Ra].join("|")+")"+It,gs="(?:"+[ac+Qo+"?",Qo,tu,Ra,Ia].join("|")+")",Na=RegExp(so,"g"),ru=RegExp(Qo,"g"),Or=RegExp(ti+"(?="+ti+")|"+gs+It,"g"),pn=RegExp([_i+"?"+lo+"+"+Oa+"(?="+[Mr,_i,"$"].join("|")+")",Qd+"+"+Zs+"(?="+[Mr,_i+hs,"$"].join("|")+")",_i+"?"+hs+"+"+Oa,_i+"+"+Zs,Jo,ps,Ql,sc].join("|"),"g"),iu=RegExp("["+Ma+ji+La+dr+"]"),ou=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,au=["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"],su=-1,an={};a
|
||
|
/* [wrapped with `+h+`] */
|
||
|
`)}function YW(u){return Mt(u)||If(u)||!!(x1&&u&&u[x1])}function yu(u,h){var x=typeof u;return h=h??G,!!h&&(x=="number"||x!="symbol"&&Yd.test(u))&&u>-1&&u%1==0&&u<h}function go(u,h,x){if(!mr(x))return!1;var A=typeof h;return(A=="number"?Do(x)&&yu(h,x.length):A=="string"&&h in x)?ks(x[h],u):!1}function rx(u,h){if(Mt(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||ca(u)?!0:ic.test(u)||!rc.test(u)||h!=null&&u in gn(h)}function ZW(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function ix(u){var h=ye(u),x=B[h];if(typeof x!="function"||!(h in Gt.prototype))return!1;if(u===x)return!0;var A=le(x);return!!A&&u===A[0]}function XW(u){return!!gc&&gc in u}var QW=rr?bu:Sx;function X1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||kn;return u===x}function q7(u){return u===u&&!mr(u)}function K7(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in gn(x))}}function JW(u){var h=E2(u,function(A){return x.size===d&&x.clear(),A}),x=h.cache;return h}function eV(u,h){var x=u[1],A=h[1],O=x|A,H=O<(E|P|$),K=A==$&&x==L||A==$&&x==F&&u[7].length<=h[8]||A==($|F)&&h[7].length<=h[8]&&x==L;if(!(H||K))return u;A&E&&(u[2]=h[2],O|=x&E?0:k);var X=h[3];if(X){var ue=u[3];u[3]=ue?x2(ue,X,h[4]):X,u[4]=ue?na(u[3],p):h[4]}return X=h[5],X&&(ue=u[5],u[5]=ue?j1(ue,X,h[6]):X,u[6]=ue?na(u[5],p):h[6]),X=h[7],X&&(u[7]=X),A&$&&(u[8]=u[8]==null?h[8]:ri(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=O,u}function tV(u){var h=[];if(u!=null)for(var x in gn(u))h.push(x);return h}function nV(u){return Bh.call(u)}function Y7(u,h,x){return h=_r(h===n?u.length-1:h,0),function(){for(var A=arguments,O=-1,H=_r(A.length-h,0),K=pe(H);++O<H;)K[O]=A[h+O];O=-1;for(var X=pe(h+1);++O<h;)X[O]=A[O];return X[h]=x(K),Ei(u,this,X)}}function Z7(u,h){return h.length<2?u:il(u,Fr(h,0,-1))}function rV(u,h){for(var x=u.length,A=ri(h.length,x),O=Ri(u);A--;){var H=h[A];u[A]=yu(H,x)?O[H]:n}return u}function ox(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var X7=J7(_f),Q1=pf||function(u,h){return Ke.setTimeout(u,h)},ax=J7(sp);function Q7(u,h,x){var A=h+"";return ax(u,KW(A,iV(GW(A),x)))}function J7(u){var h=0,x=0;return function(){var A=S1(),O=ge-(A-x);if(x=A,O>0){if(++h>=ve)return arguments[0]}else h=0;return u.apply(n,arguments)}}function w2(u,h){var x=-1,A=u.length,O=A-1;for(h=h===n?A:h;++x<h;){var H=wf(x,O),K=u[H];u[H]=u[x],u[x]=K}return u.length=h,u}var ek=JW(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(cr,function(x,A,O,H){h.push(O?H.replace(Vd,"$1"):A||x)}),h});function pl(u){if(typeof u=="string"||ca(u))return u;var h=u+"";return h=="0"&&1/u==-J?"-0":h}function Af(u){if(u!=null){try{return hr.call(u)}catch{}try{return u+""}catch{}}return""}function iV(u,h){return qn(xe,function(x){var A="_."+x[0];h&x[1]&&!Ki(u,A)&&u.push(A)}),u.sort()}function tk(u){if(u instanceof Gt)return u.clone();var h=new co(u.__wrapped__,u.__chain__);return h.__actions__=Ri(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function oV(u,h,x){(x?go(u,h,x):h===n)?h=1:h=_r(Nt(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var O=0,H=0,K=pe(gf(A/h));O<A;)K[H++]=Fr(u,O,O+=h);return K}function aV(u){for(var h=-1,x=u==null?0:u.length,A=0,O=[];++h<x;){var H=u[h];H&&(O[A++]=H)}return O}function sV(){var u=arguments.length;if(!u)return[];for(var h=pe(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return za(Mt(x)?Ri(x):[x],zr(h,1))}var lV=_t(function(u,h){return Br(u)?Lc(u,zr(h,1,Br,!0)):[]}),uV=_t(function(u,h){var x=Wa(h);return Br(x)&&(x=n),Br(u)?Lc(u,zr(h,1,Br,!0),Ie(x,2)):[]}),cV=_t(function(u,h){var x=Wa(h);return Br(x)&&(x=n),Br(u)?Lc(u,zr(h,1,Br,!0),n,x):[]});function dV(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Nt(h),Fr(u,h<0?0:h,A)):[]}function fV(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Nt(h),h=A-h,Fr(u,0,h<0?0:h)):[]}function hV(u,h){return u&&u.length?Dc(u,Ie(h,3),!0,!0):[]}function pV(u,h){return u&&u.length?Dc(u,Ie(h,3),!0):[]}function gV(u,h,x,A){var O=u==null?0:u.length;return O?(x&&t
|
||
|
`;u.replace(Qe,function(xt,Kt,rn,da,mo,fa){return rn||(rn=da),Re+=u.slice(ke,fa).replace(Xd,el),Kt&&(X=!0,Re+=`' +
|
||
|
__e(`+Kt+`) +
|
||
|
'`),mo&&(ue=!0,Re+=`';
|
||
|
`+mo+`;
|
||
|
__p += '`),rn&&(Re+=`' +
|
||
|
((__t = (`+rn+`)) == null ? '' : __t) +
|
||
|
'`),ke=fa+xt.length,xt}),Re+=`';
|
||
|
`;var bt=sn.call(h,"variable")&&h.variable;if(!bt)Re=`with (obj) {
|
||
|
`+Re+`
|
||
|
}
|
||
|
`;else if(Wd.test(bt))throw new kt(s);Re=(ue?Re.replace(tn,""):Re).replace(Qn,"$1").replace(Cr,"$1;"),Re="function("+(bt||"obj")+`) {
|
||
|
`+(bt?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Re+`return __p
|
||
|
}`;var Bt=Mk(function(){return nn(H,dt+"return "+Re).apply(n,K)});if(Bt.source=Re,dx(Bt))throw Bt;return Bt}function _j(u){return En(u).toLowerCase()}function kj(u){return En(u).toUpperCase()}function Ej(u,h,x){if(u=En(u),u&&(x||h===n))return uo(u);if(!u||!(h=ho(h)))return u;var A=Yi(u),O=Yi(h),H=ta(A,O),K=ms(A,O)+1;return Cs(A,H,K).join("")}function Pj(u,h,x){if(u=En(u),u&&(x||h===n))return u.slice(0,g1(u)+1);if(!u||!(h=ho(h)))return u;var A=Yi(u),O=ms(A,Yi(h))+1;return Cs(A,0,O).join("")}function Tj(u,h,x){if(u=En(u),u&&(x||h===n))return u.replace(qs,"");if(!u||!(h=ho(h)))return u;var A=Yi(u),O=ta(A,Yi(h));return Cs(A,O).join("")}function Lj(u,h){var x=j,A=Y;if(mr(h)){var O="separator"in h?h.separator:O;x="length"in h?Nt(h.length):x,A="omission"in h?ho(h.omission):A}u=En(u);var H=u.length;if(cu(u)){var K=Yi(u);H=K.length}if(x>=H)return u;var X=x-$a(A);if(X<1)return A;var ue=K?Cs(K,0,X).join(""):u.slice(0,X);if(O===n)return ue+A;if(K&&(X+=ue.length-X),fx(O)){if(u.slice(X).search(O)){var ke,Te=ue;for(O.global||(O=cf(O.source,En(ci.exec(O))+"g")),O.lastIndex=0;ke=O.exec(Te);)var Re=ke.index;ue=ue.slice(0,Re===n?X:Re)}}else if(u.indexOf(ho(O),X)!=X){var Qe=ue.lastIndexOf(O);Qe>-1&&(ue=ue.slice(0,Qe))}return ue+A}function Aj(u){return u=En(u),u&&zd.test(u)?u.replace(Gr,Qv):u}var Ij=hl(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),gx=gp("toUpperCase");function Rk(u,h,x){return u=En(u),h=x?n:h,h===n?zh(u)?uf(u):f1(u):u.match(h)||[]}var Mk=_t(function(u,h){try{return Ei(u,n,h)}catch(x){return dx(x)?x:new kt(x)}}),Rj=ir(function(u,h){return qn(h,function(x){x=pl(x),oa(u,x,ux(u[x],u))}),u});function Mj(u){var h=u==null?0:u.length,x=Ie();return u=h?Bn(u,function(A){if(typeof A[1]!="function")throw new Pi(a);return[x(A[0]),A[1]]}):[],_t(function(A){for(var O=-1;++O<h;){var H=u[O];if(Ei(H[0],this,A))return Ei(H[1],this,A)}})}function Oj(u){return qh(gi(u,g))}function mx(u){return function(){return u}}function Nj(u,h){return u==null||u!==u?h:u}var Dj=Y1(),zj=Y1(!0);function $o(u){return u}function vx(u){return gr(typeof u=="function"?u:gi(u,g))}function $j(u){return Mc(gi(u,g))}function Fj(u,h){return al(u,gi(h,g))}var Bj=_t(function(u,h){return function(x){return Ss(x,u,h)}}),Hj=_t(function(u,h){return function(x){return Ss(u,x,h)}});function yx(u,h,x){var A=bi(h),O=Xh(h,A);x==null&&!(mr(h)&&(O.length||!A.length))&&(x=h,h=u,u=this,O=Xh(h,bi(h)));var H=!(mr(x)&&"chain"in x)||!!x.chain,K=bu(u);return qn(O,function(X){var ue=h[X];u[X]=ue,K&&(u.prototype[X]=function(){var ke=this.__chain__;if(H||ke){var Te=u(this.__wrapped__),Re=Te.__actions__=Ri(this.__actions__);return Re.push({func:ue,args:arguments,thisArg:u}),Te.__chain__=ke,Te}return ue.apply(u,za([this.value()],arguments))})}),u}function Wj(){return Ke._===this&&(Ke._=v1),this}function bx(){}function Vj(u){return u=Nt(u),_t(function(h){return Oc(h,u)})}var Uj=Z1(Bn),Gj=Z1(Fn),jj=Z1(lc);function Ok(u){return rx(u)?Js(pl(u)):ws(u)}function qj(u){return function(h){return u==null?n:il(u,h)}}var Kj=v(),Yj=v(!0);function xx(){return[]}function Sx(){return!1}function Zj(){return{}}function Xj(){return""}function Qj(){return!0}function Jj(u,h){if(u=Nt(u),u<1||u>G)return[];var x=W,A=ri(u,W);h=Ie(h),u-=W;for(var O=af(A,h);++x<u;)h(x);return O}function eq(u){return Mt(u)?Bn(u,pl):ca(u)?[u]:Ri(ek(En(u)))}function tq(u){var h=++df;return En(u)+h}var nq=mp(function(u,h){return u+h},0),rq=M("ceil"),iq=mp(function(u,h){return u/h},1),oq=M("floor");function aq(u){return u&&u.length?Er(u,$o,Qh):n}function sq(u,h){return u&&u.length?Er(u,Ie(h,2),Qh):n}function lq(u){return nf(u,$o)}function uq(u,h){return nf(u,Ie(h,2))}function cq(u){return u&&u.length?Er(u,$o,ol):n}function dq(u,h){return u&&u.length?Er(u,Ie(h,2),ol):n}var fq=mp(function(u,h){return u*h},1),hq=M("round"),pq=mp(function(u,h){return u-h},0);function gq(u){return u&&u.length?of(u,$o):0}function mq(u,h){return u&&u.length?of(u,Ie(h,2)):0}return B.after=$U,B.ary=dk,B.assign=kG,B.assignIn=kk,B.assignInWith=A2,B.assignWith=EG,B.at=PG,B.before=fk,B.bind=ux,B.bindAll=Rj,B.bindKey=hk,B.castArray=ZU,B.chain=lk,B.chunk=oV,B.compact
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Ip&&o!==void 0,l=a!==Ip&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==yI,S=y!==Ewe&&b,E=this.ellipsis();this.textArr=[],iw().font=this._getContextFont();for(var P=E?this._getTextWidth(rw):0,k=0,L=t.length;k<L;++k){var R=t[k],N=this._getTextWidth(R);if(s&&N>p)for(;R.length>0;){for(var z=0,$=R.length,F="",q=0;z<$;){var j=z+$>>>1,Y=R.slice(0,j+1),ve=this._getTextWidth(Y)+P;ve<=p?(z=j+1,F=Y,q=ve):$=j}if(F){if(S){var ge,Se=R[F.length],_e=Se===Ny||Se===mI;_e&&q<=p?ge=F.length:ge=Math.max(F.lastIndexOf(Ny),F.lastIndexOf(mI))+1,ge>0&&(z=ge,F=F.slice(0,z),q=this._getTextWidth(F))}F=F.trimRight(),this._addTextLine(F),r=Math.max(r,q),m+=i;var we=this._shouldHandleEllipsis(m);if(we){this._tryToAddEllipsisToLastLine();break}if(R=R.slice(z),R=R.trimLeft(),R.length>0&&(N=this._getTextWidth(R),N<=p)){this._addTextLine(R),m+=i,r=Math.max(r,N);break}}else break}else this._addTextLine(R),m+=i,r=Math.max(r,N),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Ip&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==yI;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Ip&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+rw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+rw)}}getStrokeScaleEnabled(){return!0}}Sr.prototype._fillFunc=Lwe;Sr.prototype._strokeFunc=Awe;Sr.prototype.className=xwe;Sr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];wr(Sr);Z.overWriteSetter(Sr,"width",A7());Z.overWriteSetter(Sr,"height",A7());Z.addGetterSetter(Sr,"fontFamily","Arial");Z.addGetterSetter(Sr,"fontSize",12,He());Z.addGetterSetter(Sr,"fontStyle",FH);Z.addGetterSetter(Sr,"fontVariant",FH);Z.addGetterSetter(Sr,"padding",0,He());Z.addGetterSetter(Sr,"align",$H);Z.addGetterSetter(Sr,"verticalAlign",Swe);Z.addGetterSetter(Sr,"lineHeight",1,He());Z.addGetterSetter(Sr,"wrap",kwe);Z.addGetterSetter(Sr,"ellipsis",!1,Us());Z.addGetterSetter(Sr,"letterSpacing",0,He());Z.addGetterSetter(Sr,"text","",s1());Z.addGetterSetter(Sr,"textDecoration","");var Rwe="",HH="normal";function WH(e){e.fillText(this.partialText,0,0)}function VH(e){e.strokeText(this.partialText,0,0)}class ui extends De{constructor(t){super(t),this.dummyCanvas=ce.createCanvasElement(),this.dataArray=[],this.dataArray=zn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=zn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return ce.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
|
||
|
* @license React
|
||
|
* react-reconciler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var y6e=function(t){var n={},r=C.exports,i=Jp.exports,o=Object.assign;function a(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=Symbol.iterator;function z(c){return c===null||typeof c!="object"?null:(c=N&&c[N]||c["@@iterator"],typeof c=="function"?c:null)}function $(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case b:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case S:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case k:return f=c.displayName||null,f!==null?f:$(c.type)||"Memo";case L:f=c._payload,c=c._init;try{return $(c(f))}catch{}}return null}function F(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(f);case 8:return f===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function q(c){var f=c,v=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(v=f.return),c=f.return;while(c)}return f.tag===3?v:null}function j(c){if(q(c)!==c)throw Error(a(188))}function Y(c){var f=c.alternate;if(!f){if(f=q(c),f===null)throw Error(a(188));return f!==c?null:c}for(var v=c,_=f;;){var T=v.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){v=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===v)return j(T),c;if(M===_)return j(T),f;M=M.sibling}throw Error(a(188))}if(v.return!==_.return)v=T,_=M;else{for(var V=!1,ae=T.child;ae;){if(ae===v){V=!0,v=T,_=M;break}if(ae===_){V=!0,_=T,v=M;break}ae=ae.sibling}if(!V){for(ae=M.child;ae;){if(ae===v){V=!0,v=M,_=T;break}if(ae===_){V=!0,_=M,v=T;break}ae=ae.sibling}if(!V)throw Error(a(189))}}if(v.alternate!==_)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?c:f}function ve(c){return c=Y(c),c!==null?ge(c):null}function ge(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=ge(c);if(f!==null)return f;c=c.sibling}return null}function Se(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=Se(c);if(f!==null)return f}c=c.sibling}return null}var _e=Array.isArray,we=t.getPublicInstance,J=t.getRootHostContext,G=t.getChildHostContext,te=t.prepareForCommit,Q=t.resetAfterCommit,W=t.createInstance,se=t.appendInitialChild,de=t.finalizeInitialChildren,xe=t.prepareUpdate,ze=t.shouldSetTextContent,Me=t.createTextInstance,Ue=t.scheduleTimeout,Ee=t.cancelTimeout,Ve=t.noTimeout,ot=t.isPrimaryRenderer,pt=t.supportsMutation,Wt=t.suppo
|
||
|
`+Xo+c}var oo=!1;function La(c,f){if(!c||oo)return"";oo=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Fe){var _=Fe}Reflect.construct(c,[],f)}else{try{f.call()}catch(Fe){_=Fe}c.call(f.prototype)}else{try{throw Error()}catch(Fe){_=Fe}c()}}catch(Fe){if(Fe&&_&&typeof Fe.stack=="string"){for(var T=Fe.stack.split(`
|
||
|
`),M=_.stack.split(`
|
||
|
`),V=T.length-1,ae=M.length-1;1<=V&&0<=ae&&T[V]!==M[ae];)ae--;for(;1<=V&&0<=ae;V--,ae--)if(T[V]!==M[ae]){if(V!==1||ae!==1)do if(V--,ae--,0>ae||T[V]!==M[ae]){var fe=`
|
||
|
`+T[V].replace(" at new "," at ");return c.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",c.displayName)),fe}while(1<=V&&0<=ae);break}}}finally{oo=!1,Error.prepareStackTrace=v}return(c=c?c.displayName||c.name:"")?fs(c):""}var oc=Object.prototype.hasOwnProperty,Ys=[],Aa=-1;function qi(c){return{current:c}}function bn(c){0>Aa||(c.current=Ys[Aa],Ys[Aa]=null,Aa--)}function hn(c,f){Aa++,Ys[Aa]=c.current,c.current=f}var ao={},dr=qi(ao),Rr=qi(!1),so=ao;function Ia(c,f){var v=c.type.contextTypes;if(!v)return ao;var _=c.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in v)T[M]=f[M];return _&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=T),T}function Mr(c){return c=c.childContextTypes,c!=null}function Qo(){bn(Rr),bn(dr)}function Ql(c,f,v){if(dr.current!==ao)throw Error(a(168));hn(dr,f),hn(Rr,v)}function To(c,f,v){var _=c.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,F(c)||"Unknown",T));return o({},v,_)}function lo(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||ao,so=dr.current,hn(dr,c),hn(Rr,Rr.current),!0}function Jl(c,f,v){var _=c.stateNode;if(!_)throw Error(a(169));v?(c=To(c,f,so),_.__reactInternalMemoizedMergedChildContext=c,bn(Rr),bn(dr),hn(dr,c)):bn(Rr),hn(Rr,v)}var ti=Math.clz32?Math.clz32:tu,eu=Math.log,ac=Math.LN2;function tu(c){return c>>>=0,c===0?32:31-(eu(c)/ac|0)|0}var Ra=64,_i=4194304;function Ma(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function hs(c,f){var v=c.pendingLanes;if(v===0)return 0;var _=0,T=c.suspendedLanes,M=c.pingedLanes,V=v&268435455;if(V!==0){var ae=V&~T;ae!==0?_=Ma(ae):(M&=V,M!==0&&(_=Ma(M)))}else V=v&~T,V!==0?_=Ma(V):M!==0&&(_=Ma(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=_;0<f;)v=31-ti(f),T=1<<v,_|=c[v],f&=~T;return _}function Qd(c,f){switch(c){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oa(c,f){for(var v=c.suspendedLanes,_=c.pingedLanes,T=c.expirationTimes,M=c.pendingLanes;0<M;){var V=31-ti(M),ae=1<<V,fe=T[V];fe===-1?((ae&v)===0||(ae&_)!==0)&&(T[V]=Qd(ae,f)):fe<=f&&(c.expiredLanes|=ae),M&=~ae}}function Zs(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function nu(){var c=Ra;return Ra<<=1,(Ra&4194240)===0&&(Ra=64),c}function Xs(c){for(var f=[],v=0;31>v;v++)f.push(c);return f}function ki(c,f,v){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-ti(f),c[f]=v}function ps(c,f){var v=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var _=c.eventTimes;for(c=c.expirationTimes;0<v;){var T=31-ti(v),M=1<<T;f[T]=0,_[T]=-1,c[T]=-1,v&=~M}}function Jo(c,f){var v=c.entangledLanes|=f;for(c=c.entanglements;v;){var _=31-ti(v),T=1<<_;T&f|c[_]&f&&(c[_]|=f),v&=~T}}var It=0;function sc(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var gs=i.unstable_scheduleCallback,Na
|
||
|
Error generating stack: `+M.message+`
|
||
|
`+M.stack}return{value:c,source:f,stack:T,digest:null}}function k1(c,f,v){return{value:c,source:null,stack:v??null,digest:f??null}}function Ec(c,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var vf=typeof WeakMap=="function"?WeakMap:Map;function E1(c,f,v){v=vs(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){Sf||(Sf=!0,wf=_),Ec(c,f)},v}function B(c,f,v){v=vs(-1,v),v.tag=3;var _=c.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;v.payload=function(){return _(T)},v.callback=function(){Ec(c,f)}}var M=c.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){Ec(c,f),typeof _!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var V=f.stack;this.componentDidCatch(f.value,{componentStack:V!==null?V:""})}),v}function hu(c,f,v){var _=c.pingCache;if(_===null){_=c.pingCache=new vf;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(v)||(T.add(v),c=b2.bind(null,c,f,v),f.then(c,c))}function yf(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function co(c,f,v,_,T){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=vs(-1,1),f.tag=2,el(v,f,1))),v.lanes|=1),c):(c.flags|=65536,c.lanes=T,c)}var Gt=s.ReactCurrentOwner,Zi=!1;function Li(c,f,v,_){f.child=c===null?Jv(f,null,v,_):hc(f,c.child,v,_)}function s2(c,f,v,_,T){v=v.render;var M=f.ref;return dc(f,T),_=y1(c,f,v,_,M,T),v=mc(),c!==null&&!Zi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,bs(c,f,T)):(Fn&&v&&Ei(f),f.flags|=1,Li(c,f,_,T),f.child)}function nl(c,f,v,_,T){if(c===null){var M=v.type;return typeof M=="function"&&!q1(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=M,l2(c,f,M,_,T)):(c=Ef(v.type,null,_,f,f.mode,T),c.ref=f.ref,c.return=f,f.child=c)}if(M=c.child,(c.lanes&T)===0){var V=M.memoizedProps;if(v=v.compare,v=v!==null?v:uu,v(V,_)&&c.ref===f.ref)return bs(c,f,T)}return f.flags|=1,c=po(M,_),c.ref=f.ref,c.return=f,f.child=c}function l2(c,f,v,_,T){if(c!==null){var M=c.memoizedProps;if(uu(M,_)&&c.ref===f.ref)if(Zi=!1,f.pendingProps=_=M,(c.lanes&T)!==0)(c.flags&131072)!==0&&(Zi=!0);else return f.lanes=c.lanes,bs(c,f,T)}return P1(c,f,v,_,T)}function u2(c,f,v){var _=f.pendingProps,T=_.children,M=c!==null?c.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(ol,fo),fo|=v;else{if((v&1073741824)===0)return c=M!==null?M.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,hn(ol,fo),fo|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,hn(ol,fo),fo|=_}else M!==null?(_=M.baseLanes|v,f.memoizedState=null):_=v,hn(ol,fo),fo|=_;return Li(c,f,T,v),f.child}function c2(c,f){var v=f.ref;(c===null&&v!==null||c!==null&&c.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function P1(c,f,v,_,T){var M=Mr(v)?so:dr.current;return M=Ia(f,M),dc(f,T),v=y1(c,f,v,_,M,T),_=mc(),c!==null&&!Zi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,bs(c,f,T)):(Fn&&_&&Ei(f),f.flags|=1,Li(c,f,v,T),f.child)}function d2(c,f,v,_,T){if(Mr(v)){var M=!0;lo(f)}else M=!1;if(dc(f,T),f.stateNode===null)Ba(c,f),Zv(f,v,_),p1(f,v,_,T),_=!0;else if(c===null){var V=f.stateNode,ae=f.memoizedProps;V.props=ae;var fe=V.context,Fe=v.contextType;typeof Fe=="object"&&Fe!==null?Fe=uo(Fe):(Fe=Mr(v)?so:dr.current,Fe=Ia(f,Fe));var it=v.getDerivedStateFromProps,Tt=typeof it=="function"||typeof V.getSnapshotBeforeUpdate=="function";Tt||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(ae!==_||fe!==Fe)&&Xv(f,V,_,Fe),ms=!1;var et=f.memoizedState;V.state=et,zh(f,_,V,T),fe=f.memoizedState,ae!==_||et!==fe||Rr.current||ms?(typeof it=="function"&&(Fh(f,v,it,_),fe=f.memoizedState),(ae=ms||lf(f,v,ae,_,et,fe,Fe))?(Tt||typeof V.UNSAFE_componentWillMount!="function"&
|
||
|
`+(_.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+c.join(" > ")}return null},n.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return we(c.child.stateNode);default:return c.child.stateNode}},n.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:mp,findFiberByHostInstance:c.findFiberByHostInstance||Z1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)c=!0;else{try{an=f.inject(c),Ot=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,v,_){if(!yt)throw Error(a(363));c=$1(c,f);var T=Ut(c,v,_).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(c,f){var v=f._getVersion;v=v(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,v]:c.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(c,f){var v=It;try{return It=c,f()}finally{It=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,v,_){var T=f.current,M=vi(),V=Fr(T);return v=K1(v),f.context===null?f.context=v:f.pendingContext=v,f=vs(M,V),f.payload={element:c},_=_===void 0?null:_,_!==null&&(f.callback=_),c=el(T,f,V),c!==null&&(Oo(c,T,V,M),Dh(c,T,V)),V},n};(function(e){e.exports=y6e})(jH);const b6e=g9(jH.exports);var N7={exports:{}},Mh={};/**
|
||
|
* @license React
|
||
|
* react-reconciler-constants.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/Mh.ConcurrentRoot=1;Mh.ContinuousEventPriority=4;Mh.DefaultEventPriority=16;Mh.DiscreteEventPriority=1;Mh.IdleEventPriority=536870912;Mh.LegacyRoot=0;(function(e){e.exports=Mh})(N7);const wI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let CI=!1,_I=!1;const D7=".react-konva-event",x6e=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
||
|
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
||
|
Consider to add onDragMove or onDragEnd events.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/256
|
||
|
`,S6e=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
||
|
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/194
|
||
|
`,w6e={};function Vb(e,t,n=w6e){if(!CI&&"zIndex"in t&&(console.warn(S6e),CI=!0),!_I&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(x6e),_I=!0)}for(var o in n)if(!wI[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var d=!t.hasOwnProperty(o);d&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!wI[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||p&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Dd(e));for(var l in y)e.on(l+D7,y[l])}function Dd(e){if(!lt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const qH={},C6e={};mh.Node.prototype._applyProps=Vb;function _6e(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Dd(e)}function k6e(e,t,n){let r=mh[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=mh.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return Vb(l,o),l}function E6e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function P6e(e,t,n){return!1}function T6e(e){return e}function L6e(){return null}function A6e(){return null}function I6e(e,t,n,r){return C6e}function R6e(){}function M6e(e){}function O6e(e,t){return!1}function N6e(){return qH}function D6e(){return qH}const z6e=setTimeout,$6e=clearTimeout,F6e=-1;function B6e(e,t){return!1}const H6e=!1,W6e=!0,V6e=!0;function U6e(e,t){t.parent===e?t.moveToTop():e.add(t),Dd(e)}function G6e(e,t){t.parent===e?t.moveToTop():e.add(t),Dd(e)}function KH(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Dd(e)}function j6e(e,t,n){KH(e,t,n)}function q6e(e,t){t.destroy(),t.off(D7),Dd(e)}function K6e(e,t){t.destroy(),t.off(D7),Dd(e)}function Y6e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Z6e(e,t,n){}function X6e(e,t,n,r,i){Vb(e,i,r)}function Q6e(e){e.hide(),Dd(e)}function J6e(e){}function eCe(e,t){(t.visible==null||t.visible)&&e.show()}function tCe(e,t){}function nCe(e){}function rCe(){}const iCe=()=>N7.exports.DefaultEventPriority,oCe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:_6e,createInstance:k6e,createTextInstance:E6e,finalizeInitialChildren:P6e,getPublicInstance:T6e,prepareForCommit:L6e,preparePortalMount:A6e,prepareUpdate:I6e,resetAfterCommit:R6e,resetTextContent:M6e,shouldDeprioritizeSubtree:O6e,getRootHostContext:N6e,getChildHostContext:D6e,scheduleTimeout:z6e,cancelTimeout:$6e,noTimeout:F6e,shouldSetTextContent:B6e,isPrimaryRenderer:H6e,warnsIfNotActing:W6e,supportsMutation:V6e,appendChild:U6e,appendChildToContainer:G6e,insertBefore:KH,insertInContainerBefore:j6e,removeChild:q6e,removeChildFromContainer:K6e,commitTextUpdate:Y6e,commitMount:Z6e,commitUpdate:X6e,hideInstance:Q6e,hideTextInstance:J6e,unhideInstance:eCe,unhideTextInstance:tCe,clearContainer:nCe,detachDeletedInstance:rCe,getCurrentEventPriority:iCe,now:Jp.exports.unstable_now,idlePriority:Jp.exports.unstable_IdlePriority,run:Jp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var aCe=Object.defineProperty,sCe=Object.defineProperties,lCe=Object.getOwnPropertyDescriptors,kI=Object.getOwnPropertySymbols,uCe=Object.prototype.hasOwnProperty,cCe=Object.prototype.propertyIsEnumerable,EI=(e,t,n)=>t in e?aCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PI=(e,t)=>{for(var n in t||(t={}))uCe.call(t,n)&&EI(e,n,t[n]);if(kI)
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x_e(e){if(Array.isArray(e))return d9(e)}function YI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YI(Object(n),!0).forEach(function(r){OW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dv(e,t){return C_e(e)||w_e(e,t)||NW(e,t)||S_e()}function S_e(){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 NW(e,t){if(!!e){if(typeof e=="string")return d9(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 d9(e,t)}}function d9(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 w_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function C_e(e){if(Array.isArray(e))return e}var __e="file-invalid-type",k_e="file-too-large",E_e="file-too-small",P_e="too-many-files",T_e=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:__e,message:"File type must be ".concat(n)}},XI=function(t){return{code:k_e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},QI=function(t){return{code:E_e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},L_e={code:P_e,message:"Too many files"};function DW(e,t){var n=e.type==="application/x-moz-file"||v_e(e,t);return[n,n?null:T_e(t)]}function zW(e,t,n){if(Uf(e.size))if(Uf(t)&&Uf(n)){if(e.size>n)return[!1,XI(n)];if(e.size<t)return[!1,QI(t)]}else{if(Uf(t)&&e.size<t)return[!1,QI(t)];if(Uf(n)&&e.size>n)return[!1,XI(n)]}return[!0,null]}function Uf(e){return e!=null}function A_e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var d=DW(l,n),p=dv(d,1),g=p[0],m=zW(l,r,i),y=dv(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function J3(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Wy(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 JI(e){e.preventDefault()}function I_e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function R_e(e){return e.indexOf("Edge/")!==-1}function M_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return I_e(e)||R_e(e)}function xl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!J3(r)&&s&&s.apply(void 0,[r].concat(o)),J3(r)})}}function O_e(){return"showOpenFilePicker"in window}function N_e(e){if(Uf(e)){var t=Object.entries(e).filter(function(n){var r=dv(n,2),i=r[0],o=r[1],a=!0;return $W(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(FW))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=dv(r,2),o=i[0],a=i[1];return ZI(ZI({},n),{},OW({},o,a))},{});return[{accept:t}]}return e}function D_e(e){if(Uf(e))return Object.entries(e).reduce(function(t,n){var r=dv(n,2),i=r[0],o=r[1];return[].concat(KI(t),[i],KI(o))},[]).filter(function(t){return $W(t)||FW(t)}).join(",")}function z_e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function $_e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function $W(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function FW(e){return/^.*\.[\w]+$/.test(e)}var F_e=["children"],B_e=["open"],H_e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLe
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j_e(e){if(Array.isArray(e))return f9(e)}function uw(e,t){return Y_e(e)||K_e(e,t)||BW(e,t)||q_e()}function q_e(){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 BW(e,t){if(!!e){if(typeof e=="string")return f9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f9(e,t)}}function f9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Y_e(e){if(Array.isArray(e))return e}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){h9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4(e,t){if(e==null)return{};var n=Z_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Z_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var U7=C.exports.forwardRef(function(e,t){var n=e.children,r=e4(e,F_e),i=WW(r),o=i.open,a=e4(i,B_e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),w(C.exports.Fragment,{children:n(vr(vr({},a),{},{open:o}))})});U7.displayName="Dropzone";var HW={disabled:!1,getFilesFromEvent:l_e,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};U7.defaultProps=HW;U7.propTypes={children:Dn.exports.func,accept:Dn.exports.objectOf(Dn.exports.arrayOf(Dn.exports.string)),multiple:Dn.exports.bool,preventDropOnDocument:Dn.exports.bool,noClick:Dn.exports.bool,noKeyboard:Dn.exports.bool,noDrag:Dn.exports.bool,noDragEventsBubbling:Dn.exports.bool,minSize:Dn.exports.number,maxSize:Dn.exports.number,maxFiles:Dn.exports.number,disabled:Dn.exports.bool,getFilesFromEvent:Dn.exports.func,onFileDialogCancel:Dn.exports.func,onFileDialogOpen:Dn.exports.func,useFsAccessApi:Dn.exports.bool,autoFocus:Dn.exports.bool,onDragEnter:Dn.exports.func,onDragLeave:Dn.exports.func,onDragOver:Dn.exports.func,onDrop:Dn.exports.func,onDropAccepted:Dn.exports.func,onDropRejected:Dn.exports.func,onError:Dn.exports.func,validator:Dn.exports.func};var p9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function WW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=vr(vr({},HW),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,R=t.noClick,N=t.noKeyboard,z=t.noDrag,$=t.noDragEventsBubbling,F=t.onError,q=t.validator,j=C.exports.useMemo(function(){return D_e(n)},[n]),Y=C.exports.useMemo(function(){return N_e(n)},[n]),ve=C.exports.useMemo(function(){return typeof E=="function"?E:tR},[E]),ge=C.exports.useMemo(function(){return typeof S=="function"?S:tR},[S]),Se=C.exports.useRef(null),_e=C.exports.useRef(null),we=C.ex
|
||
|
`+L.message,"");i({title:"Upload failed",description:P,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(E=>{a(!0);const P={file:E};["img2img","inpainting"].includes(r)&&(P.destination=r),n(xA(P))},[n,r]),d=C.exports.useCallback((E,P)=>{P.forEach(k=>{s(k)}),E.forEach(k=>{l(k)})},[l,s]),{getRootProps:p,getInputProps:g,isDragAccept:m,isDragReject:y,isDragActive:b,open:S}=WW({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:d,maxFiles:1});return C.exports.useEffect(()=>{const E=P=>{const k=P.clipboardData?.items;if(!k)return;const L=[];for(const z of k)z.kind==="file"&&["image/png","image/jpg"].includes(z.type)&&L.push(z);if(!L.length)return;if(P.stopImmediatePropagation(),L.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const R=L[0].getAsFile();if(!R){i({description:"Unable to load file",status:"error",isClosable:!0});return}const N={file:R};["img2img","inpainting"].includes(r)&&(N.destination=r),n(xA(N))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]),w(EB.Provider,{value:S,children:ne("div",{...p({style:{}}),children:[w("input",{...g()}),t,b&&ne("div",{className:"dropzone-container",children:[m&&w("div",{className:"dropzone-overlay is-drag-accept",children:w(oh,{size:"lg",children:"Drop Images"})}),y&&ne("div",{className:"dropzone-overlay is-drag-reject",children:[w(oh,{size:"lg",children:"Invalid Upload"}),w(oh,{size:"md",children:"Must be single JPEG or PNG image"})]}),o&&w("div",{className:"dropzone-overlay is-handling-upload",children:w(X0,{})})]})]})})},J_e=()=>{const e=gt();return w(vn,{tooltip:"Show Gallery (G)",tooltipPlacement:"top","aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(EC(!0))},children:w(cB,{})})};function e7e(e){return Ct({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const t7e=Jt(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Yt.isEqual}}),n7e=()=>{const e=gt(),{shouldShowProcessButtons:t}=Ze(t7e);return ne("div",{className:"show-hide-button-options",children:[w(vn,{tooltip:"Show Options Panel (O)",tooltipPlacement:"top","aria-label":"Show Options Panel",onClick:()=>{e(n9(!0))},children:w(e7e,{})}),t&&ne(Un,{children:[w(pB,{iconButton:!0}),w(mB,{}),w(gB,{})]})]})};i_e();const r7e=Jt([e=>e.gallery,e=>e.options,e=>e.system,ds],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:d}=t,p=Yt.reduce(n.model_list,(y,b,S)=>(b.status==="active"&&(y=S),y),""),g=!(i||o&&!a),m=!(s||l&&!d)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:p,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:Yt.isEqual}}),i7e=()=>{const e=gt(),[t,n]=C.exports.useState(!1),{shouldShowGalleryButton:r,shouldShowOptionsPanelButton:i}=Ze(r7e);return C.exports.useEffect(()=>{e(S3e()),n(!0)},[e]),t?w("div",{className:"App",children:ne(Q_e,{children:[w(V8e,{}),ne("div",{className:"app-content",children:[w(e_e,{}),w(a9e,{})]}),w("div",{className:"app-console",children:w(r_e,{})}),r&&w(J_e,{}),i&&w(n7e,{})]})}):w(IW,{})};const VW=dye(LW);dw.createRoot(document.getElementById("root")).render(w(re.StrictMode,{children:w(W2e,{st
|