mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
624 lines
1.3 MiB
JavaScript
624 lines
1.3 MiB
JavaScript
|
function mq(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 ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I9(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 zv=Symbol.for("react.element"),vq=Symbol.for("react.portal"),yq=Symbol.for("react.fragment"),Sq=Symbol.for("react.strict_mode"),bq=Symbol.for("react.profiler"),xq=Symbol.for("react.provider"),wq=Symbol.for("react.context"),Cq=Symbol.for("react.forward_ref"),_q=Symbol.for("react.suspense"),kq=Symbol.for("react.memo"),Eq=Symbol.for("react.lazy"),pE=Symbol.iterator;function Pq(e){return e===null||typeof e!="object"?null:(e=pE&&e[pE]||e["@@iterator"],typeof e=="function"?e:null)}var LO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MO=Object.assign,OO={};function Q0(e,t,n){this.props=e,this.context=t,this.refs=OO,this.updater=n||LO}Q0.prototype.isReactComponent={};Q0.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")};Q0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RO(){}RO.prototype=Q0.prototype;function N9(e,t,n){this.props=e,this.context=t,this.refs=OO,this.updater=n||LO}var D9=N9.prototype=new RO;D9.constructor=N9;MO(D9,Q0.prototype);D9.isPureReactComponent=!0;var gE=Array.isArray,IO=Object.prototype.hasOwnProperty,z9={current:null},NO={key:!0,ref:!0,__self:!0,__source:!0};function DO(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)IO.call(t,r)&&!NO.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),u=0;u<s;u++)l[u]=arguments[u+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:zv,type:e,key:o,ref:a,props:i,_owner:z9.current}}function Tq(e,t){return{$$typeof:zv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function F9(e){return typeof e=="object"&&e!==null&&e.$$typeof===zv}function Aq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var mE=/\/+/g;function jb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Aq(""+e.key):t.toString(36)}function p3(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 zv:case vq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+jb(a,0):r,gE(i)?(n="",e!=null&&(n=e.replace(mE,"$&/")+"/"),p3(i,t,n,"",function(u){return u})):i!=null&&(F9(i)&&(i=Tq(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(mE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",gE(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+jb(o,s);a+=p3(o,t,n,l,i)}else if(l=Pq(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+jb(o,s++),a+=p3(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 ty(e,t,n){if(e==null)return e;var r=[],i=0;return p3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Lq(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oo={current:null},g3={transition:null},Mq={ReactCurrentDispatcher:oo,ReactCurrentBatchConfig:g3,ReactCurrentOwner:z9};qt.Children={map:ty,forEach:function(e,t,n){ty(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ty(e,function(){t++}),t},toArray:function(e){return ty(e,function(t){return t})||[]},only:function(e){if(!F9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qt.Component=Q0;qt.Fragment=yq;qt.Profiler=bq;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,Q){var j=G.length;G.push(Q);e:for(;0<j;){var Z=j-1>>>1,me=G[Z];if(0<i(me,Q))G[Z]=Q,G[j]=me,j=Z;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Q=G[0],j=G.pop();if(j!==Q){G[0]=j;e:for(var Z=0,me=G.length,Se=me>>>1;Z<Se;){var xe=2*(Z+1)-1,Be=G[xe],We=xe+1,dt=G[We];if(0>i(Be,j))We<me&&0>i(dt,Be)?(G[Z]=dt,G[We]=j,Z=We):(G[Z]=Be,G[xe]=j,Z=xe);else if(We<me&&0>i(dt,j))G[Z]=dt,G[We]=j,Z=We;else break e}}return Q}function i(G,Q){var j=G.sortIndex-Q.sortIndex;return j!==0?j:G.id-Q.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=[],u=[],h=1,p=null,m=3,v=!1,S=!1,w=!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 T(G){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=G)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function M(G){if(w=!1,T(G),!S)if(n(l)!==null)S=!0,ee(R);else{var Q=n(u);Q!==null&&X(M,Q.startTime-G)}}function R(G,Q){S=!1,w&&(w=!1,P(z),z=-1),v=!0;var j=m;try{for(T(Q),p=n(l);p!==null&&(!(p.expirationTime>Q)||G&&!q());){var Z=p.callback;if(typeof Z=="function"){p.callback=null,m=p.priorityLevel;var me=Z(p.expirationTime<=Q);Q=e.unstable_now(),typeof me=="function"?p.callback=me:p===n(l)&&r(l),T(Q)}else r(l);p=n(l)}if(p!==null)var Se=!0;else{var xe=n(u);xe!==null&&X(M,xe.startTime-Q),Se=!1}return Se}finally{p=null,m=j,v=!1}}var I=!1,N=null,z=-1,$=5,H=-1;function q(){return!(e.unstable_now()-H<$)}function de(){if(N!==null){var G=e.unstable_now();H=G;var Q=!0;try{Q=N(!0,G)}finally{Q?V():(I=!1,N=null)}}else I=!1}var V;if(typeof k=="function")V=function(){k(de)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ie=J.port2;J.port1.onmessage=de,V=function(){ie.postMessage(null)}}else V=function(){E(de,0)};function ee(G){N=G,I||(I=!0,V())}function X(G,Q){z=E(function(){G(e.unstable_now())},Q)}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(){S||v||(S=!0,ee(R))},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"):$=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 Q=3;break;default:Q=m}var j=m;m=Q;try{return G()}finally{m=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Q){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var j=m;m=G;try{return Q()}finally{m=j}},e.unstable_scheduleCallback=function(G,Q,j){var Z=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?Z+j:Z):j=Z,G){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=j+me,G={id:h++,callback:Q,priorityLevel:G,startTime:j,expirationTime:me,sortIndex:-1},j>Z?(G.sortIndex=j,t(u,G),n(l)===null&&G===n(u)&&(w?(P(z),z=-1):w=!0,X(M,j-Z))):(G.sortIndex=me,t(l,G),S||v||(S=!0,ee(R))),G},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(G){var Q=m;return function(){var j=m;m=Q;try{return G.apply(this,arguments)}finally{m=j}}}})(zO);(function(e){e.exports=zO})(e0);/**
|
||
|
* @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 FO=C.exports,ca=e0.exports;function Re(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 BO=new Set,Ym={};function ih(e,t){A0(e,t),A0(e+"Capture",t)}function A0(e,t){for(Ym[e]=t,e=0;e<t.length;e++)BO.add(t[e])}var pu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bw=Object.prototype.hasOwnProperty,Oq=/^[: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]*$/,vE={},yE={};function Rq(e){return Bw.call(yE,e)?!0:Bw.call(vE,e)?!1:Oq.test(e)?yE[e]=!0:(vE[e]=!0,!1)}function Iq(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 Nq(e,t,n,r){if(t===null||typeof t>"u"||Iq(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ao(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Mi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mi[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mi[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mi[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mi[e]=new ao(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Mi[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mi[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mi[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mi[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mi[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var B9=/[\-:]([a-z])/g;function $9(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
|
||
|
`+Yb+e}var qb=!1;function Kb(e,t){if(!e||qb)return"";qb=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.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{qb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qg(e):""}function Dq(e){switch(e.tag){case 5:return Qg(e.type);case 16:return Qg("Lazy");case 13:return Qg("Suspense");case 19:return Qg("SuspenseList");case 0:case 2:case 15:return e=Kb(e.type,!1),e;case 11:return e=Kb(e.type.render,!1),e;case 1:return e=Kb(e.type,!0),e;default:return""}}function Vw(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 Np:return"Fragment";case Ip:return"Portal";case $w:return"Profiler";case W9:return"StrictMode";case Hw:return"Suspense";case Ww:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HO:return(e.displayName||"Context")+".Consumer";case $O:return(e._context.displayName||"Context")+".Provider";case V9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U9:return t=e.displayName||null,t!==null?t:Vw(e.type)||"Memo";case Ec:t=e._payload,e=e._init;try{return Vw(e(t))}catch{}}return null}function zq(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 Vw(t);case 8:return t===W9?"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 Jc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fq(e){var t=VO(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 ry(e){e._valueTracker||(e._valueTracker=Fq(e))}function UO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=VO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function r5(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 Uw(e,t){var n=t.checked;return fr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jc(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 GO(e,t){t=t.checked,t!=null&&H9(e,"checked",t,!1)}function Gw(e,t){GO(e,t);var n=Jc(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")?jw(e,t.type,n):t.hasOwnProperty("defaultValue")&&jw(e,t.type,Jc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xE(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(qK,"")}function dy(e,t,n){if(t=UE(t),UE(e)!==t&&n)throw Error(Re(425))}function d5(){}var a6=null,s6=null;function l6(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 u6=typeof setTimeout=="function"?setTimeout:void 0,KK=typeof clearTimeout=="function"?clearTimeout:void 0,GE=typeof Promise=="function"?Promise:void 0,XK=typeof queueMicrotask=="function"?queueMicrotask:typeof GE<"u"?function(e){return GE.resolve(null).then(e).catch(ZK)}:u6;function ZK(e){setTimeout(function(){throw e})}function lx(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),Qm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Qm(t)}function Uc(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 jE(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 e1=Math.random().toString(36).slice(2),hl="__reactFiber$"+e1,rv="__reactProps$"+e1,gu="__reactContainer$"+e1,c6="__reactEvents$"+e1,QK="__reactListeners$"+e1,JK="__reactHandles$"+e1;function Pf(e){var t=e[hl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gu]||n[hl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jE(e);e!==null;){if(n=e[hl])return n;e=jE(e)}return t}e=n,n=e.parentNode}return null}function $v(e){return e=e[hl]||e[gu],!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(Re(33))}function _4(e){return e[rv]||null}var d6=[],$p=-1;function ud(e){return{current:e}}function Zn(e){0>$p||(e.current=d6[$p],d6[$p]=null,$p--)}function jn(e,t){$p++,d6[$p]=e.current,e.current=t}var ed={},Wi=ud(ed),To=ud(!1),Yf=ed;function L0(e,t){var n=e.type.contextTypes;if(!n)return ed;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 Ao(e){return e=e.childContextTypes,e!=null}function f5(){Zn(To),Zn(Wi)}function YE(e,t,n){if(Wi.current!==ed)throw Error(Re(168));jn(Wi,t),jn(To,n)}function RR(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(Re(108,zq(e)||"Unknown",i));return fr({},n,r)}function h5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ed,Yf=Wi.current,jn(Wi,e),jn(To,To.current),!0}function qE(e,t,n){var r=e.stateNode;if(!r)throw Error(Re(169));n?(e=RR(e,t,Yf),r.__reactInternalMemoizedMergedChildContext=e,Zn(To),Zn(Wi),jn(Wi,e)):Zn(To),jn(To,n)}var su=null,k4=!1,ux=!1;function IR(e){su===null?su=[e]:su.push(e)}function eX(e){k4=!0,IR(e)}function cd(){if(!ux&&su!==null){ux=!0;var e=0,t=Pn;try{var n=su;for(Pn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}su=null,k4=!1}catch(i){throw su!==null&&(su=su.slice(e+1)),oR(j9,cd),i}finally{Pn=t,ux=!1}}return null}var Hp=[],Wp=0,p5=null,g5=0,La=[],Ma=0,qf=null,uu=1,cu="";function mf(e,t){Hp[Wp++]=g5,Hp[Wp++]=p5,p5=e,g5=t}function NR(e,t,n){La[Ma++]=uu,La[Ma++]=cu,La[Ma++]=qf,qf=e;var r=uu;e=cu;var i=32-ys(r)-1;r&=~(1<<i),n+=1;var o=32-ys(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,uu=1<<32-ys(t)+i|n<<i|r,cu=o+e}else uu=1<<o|n<<i|r,cu=e}function t7(e){e.return!==null&&(mf(e,1),NR(e,1,0))}function n7(e){for(;e===p5;)p5=Hp[--Wp],Hp[Wp]=null,g5=Hp[--Wp],Hp[Wp]=null;for(;e===qf;)qf=La[--Ma],La[Ma]=null,cu=La[--Ma],La[Ma]=null,uu=La[--Ma],La[Ma]=null}var aa=null,oa=null,nr=!1,gs=null;function DR(e,t){var n=Ia(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 px(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function v6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uX=typeof WeakMap=="function"?WeakMap:Map;function cI(e,t,n){n=fu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){C5||(C5=!0,P6=r),v6(e,t)},n}function dI(e,t,n){n=fu(-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(){v6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){v6(e,t),typeof r!="function"&&(jc===null?jc=new Set([this]):jc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function iP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uX;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=CX.bind(null,e,t,n),t.then(e,e))}function oP(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 aP(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=fu(-1,1),t.tag=2,Gc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var cX=ku.ReactCurrentOwner,Po=!1;function eo(e,t,n,r){t.child=e===null?VR(t,null,n,r):O0(t,e.child,n,r)}function sP(e,t,n,r,i){n=n.render;var o=t.ref;return o0(t,i),r=h7(e,t,n,r,o,i),n=p7(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vu(e,t,i)):(nr&&n&&t7(t),t.flags|=1,eo(e,t,r,i),t.child)}function lP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_7(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,fI(e,t,o,r,i)):(e=k3(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:ev,n(a,r)&&e.ref===t.ref)return vu(e,t,i)}return t.flags|=1,e=qc(o,r),e.ref=t.ref,e.return=t,t.child=e}function fI(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ev(o,r)&&e.ref===t.ref)if(Po=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Po=!0);else return t.lanes=e.lanes,vu(e,t,i)}return y6(e,t,n,r,i)}function hI(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},jn(Gp,ea),ea|=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,jn(Gp,ea),ea|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,jn(Gp,ea),ea|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,jn(Gp,ea),ea|=r;return eo(e,t,i,n),t.child}function pI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function y6(e,t,n,r,i){var o=Ao(n)?Yf:Wi.current;return o=L0(t,o),o0(t,i),n=h7(e,t,n,r,o,i),r=p7(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vu(e,t,i)):(nr&&r&&t7(t),t.flags|=1,eo(e,t,n,i),t.child)}function uP(e,t,n,r,i){if(Ao(n)){var o=!0;h5(t)}else o=!1;if(o0(t,i),t.stateNode===null)w3(e,t),HR(t,n,r),m6(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Fa(u):(u=Ao(n)?Yf:Wi.current,u=L0(t,u));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&eP(t,a,r,u),Pc=!1;var m=t.memoizedState;a.state=m,y5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||To.current||Pc?(typeof h=="function"&&(g6(t,n,h,r),l=t.memoizedState),(s=Pc||JE(t,n,s,r,m,l,u))?(p||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 IX=C.exports,NX=Symbol.for("react.element"),DX=Symbol.for("react.fragment"),zX=Object.prototype.hasOwnProperty,FX=IX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,BX={key:!0,ref:!0,__self:!0,__source:!0};function zI(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)zX.call(t,r)&&!BX.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:NX,type:e,key:o,ref:a,props:i,_owner:FX.current}}D4.Fragment=DX;D4.jsx=zI;D4.jsxs=zI;(function(e){e.exports=D4})(N4);const Tn=N4.exports.Fragment,x=N4.exports.jsx,re=N4.exports.jsxs;var A7=C.exports.createContext({});A7.displayName="ColorModeContext";function Wv(){const e=C.exports.useContext(A7);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Sy={light:"chakra-ui-light",dark:"chakra-ui-dark"};function $X(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?Sy.dark:Sy.light),document.body.classList.remove(r?Sy.light:Sy.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 HX="chakra-ui-color-mode";function WX(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 VX=WX(HX),CP=()=>{};function _P(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function FI(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=VX}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>_P(a,s)),[h,p]=C.exports.useState(()=>_P(a)),{getSystemTheme:m,setClassName:v,setDataset:S,addListener:w}=C.exports.useMemo(()=>$X({preventTransition:o}),[o]),E=i==="system"&&!l?h:l,P=C.exports.useCallback(M=>{const R=M==="system"?m():M;u(R),v(R==="dark"),S(R),a.set(R)},[a,m,v,S]);bs(()=>{i==="system"&&p(m())},[]),C.exports.useEffect(()=>{const M=a.get();if(M){P(M);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 w(P)},[r,w,P]);const T=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?CP:k,setColorMode:t?CP:P,forced:t!==void 0}),[E,k,P,t]);return x(A7.Provider,{value:T,children:n})}FI.displayName="ColorModeProvider";var M6={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",p="[object Date]",m="[object Error]",v="[object Function]",S="[object GeneratorFunction]",w="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",T="[object Proxy]",M="[object RegExp]",R="[object Set]",I="[object String]",N="[object Undefined]",z="[object WeakMap]",$="[object ArrayBuffer]",H="[object DataView]",q="[object Float32Array]",de="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",ie="[object Int32Array]",ee="[object Uint8Array]",X="[object Uint8ClampedArray]",G="[object Uint16Array]",Q=
|
||
|
* 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 hi=typeof Symbol=="function"&&Symbol.for,N7=hi?Symbol.for("react.element"):60103,D7=hi?Symbol.for("react.portal"):60106,W4=hi?Symbol.for("react.fragment"):60107,V4=hi?Symbol.for("react.strict_mode"):60108,U4=hi?Symbol.for("react.profiler"):60114,G4=hi?Symbol.for("react.provider"):60109,j4=hi?Symbol.for("react.context"):60110,z7=hi?Symbol.for("react.async_mode"):60111,Y4=hi?Symbol.for("react.concurrent_mode"):60111,q4=hi?Symbol.for("react.forward_ref"):60112,K4=hi?Symbol.for("react.suspense"):60113,IQ=hi?Symbol.for("react.suspense_list"):60120,X4=hi?Symbol.for("react.memo"):60115,Z4=hi?Symbol.for("react.lazy"):60116,NQ=hi?Symbol.for("react.block"):60121,DQ=hi?Symbol.for("react.fundamental"):60117,zQ=hi?Symbol.for("react.responder"):60118,FQ=hi?Symbol.for("react.scope"):60119;function ga(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N7:switch(e=e.type,e){case z7:case Y4:case W4:case U4:case V4:case K4:return e;default:switch(e=e&&e.$$typeof,e){case j4:case q4:case Z4:case X4:case G4:return e;default:return t}}case D7:return t}}}function iN(e){return ga(e)===Y4}Mn.AsyncMode=z7;Mn.ConcurrentMode=Y4;Mn.ContextConsumer=j4;Mn.ContextProvider=G4;Mn.Element=N7;Mn.ForwardRef=q4;Mn.Fragment=W4;Mn.Lazy=Z4;Mn.Memo=X4;Mn.Portal=D7;Mn.Profiler=U4;Mn.StrictMode=V4;Mn.Suspense=K4;Mn.isAsyncMode=function(e){return iN(e)||ga(e)===z7};Mn.isConcurrentMode=iN;Mn.isContextConsumer=function(e){return ga(e)===j4};Mn.isContextProvider=function(e){return ga(e)===G4};Mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N7};Mn.isForwardRef=function(e){return ga(e)===q4};Mn.isFragment=function(e){return ga(e)===W4};Mn.isLazy=function(e){return ga(e)===Z4};Mn.isMemo=function(e){return ga(e)===X4};Mn.isPortal=function(e){return ga(e)===D7};Mn.isProfiler=function(e){return ga(e)===U4};Mn.isStrictMode=function(e){return ga(e)===V4};Mn.isSuspense=function(e){return ga(e)===K4};Mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===W4||e===Y4||e===U4||e===V4||e===K4||e===IQ||typeof e=="object"&&e!==null&&(e.$$typeof===Z4||e.$$typeof===X4||e.$$typeof===G4||e.$$typeof===j4||e.$$typeof===q4||e.$$typeof===DQ||e.$$typeof===zQ||e.$$typeof===FQ||e.$$typeof===NQ)};Mn.typeOf=ga;(function(e){e.exports=Mn})(rN);var oN=rN.exports,BQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$Q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aN={};aN[oN.ForwardRef]=BQ;aN[oN.Memo]=$Q;var HQ=!0;function WQ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var sN=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||HQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},lN=function(t,n,r){sN(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 VQ(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 UQ={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function pee(e){const t=xN().toHexString();return!e||dee(e)?t:e.string&&e.colors?mee(e.string,e.colors):e.string&&!e.colors?gee(e.string):e.colors&&!e.string?vee(e.colors):t}function gee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function mee(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 vee(e){return e[Math.floor(Math.random()*e.length)]}function Ve(e,t){return n=>n.colorMode==="dark"?t:e}function $7(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function yee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function kN(e){return yee(e)&&e.reference?e.reference:String(e)}var eS=(e,...t)=>t.map(kN).join(` ${e} `).replace(/calc/g,""),KP=(...e)=>`calc(${eS("+",...e)})`,XP=(...e)=>`calc(${eS("-",...e)})`,U6=(...e)=>`calc(${eS("*",...e)})`,ZP=(...e)=>`calc(${eS("/",...e)})`,QP=e=>{const t=kN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:U6(t,-1)},lu=Object.assign(e=>({add:(...t)=>lu(KP(e,...t)),subtract:(...t)=>lu(XP(e,...t)),multiply:(...t)=>lu(U6(e,...t)),divide:(...t)=>lu(ZP(e,...t)),negate:()=>lu(QP(e)),toString:()=>e.toString()}),{add:KP,subtract:XP,multiply:U6,divide:ZP,negate:QP});function See(e){return!Number.isInteger(parseFloat(e.toString()))}function bee(e,t="-"){return e.replace(/\s+/g,t)}function EN(e){const t=bee(e.toString());return t.includes("\\.")?e:See(e)?t.replace(".","\\."):e}function xee(e,t=""){return[t,EN(e)].filter(Boolean).join("-")}function wee(e,t){return`var(${EN(e)}${t?`, ${t}`:""})`}function Cee(e,t=""){return`--${xee(e,t)}`}function Vi(e,t){const n=Cee(e,t?.prefix);return{variable:n,reference:wee(n,_ee(t?.fallback))}}function _ee(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:kee,defineMultiStyleConfig:Eee}=rr(CJ.keys),Pee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Tee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Aee={pt:"2",px:"4",pb:"5"},Lee={fontSize:"1.25em"},Mee=kee({container:Pee,button:Tee,panel:Aee,icon:Lee}),Oee=Eee({baseStyle:Mee}),{definePartsStyle:Gv,defineMultiStyleConfig:Ree}=rr(_J.keys),la=ei("alert-fg"),yu=ei("alert-bg"),Iee=Gv({container:{bg:yu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:la.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:la.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function H7(e){const{theme:t,colorScheme:n}=e,r=z0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Nee=Gv(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[la.variable]:`colors.${t}.500`,[yu.variable]:n.light,_dark:{[la.variable]:`colors.${t}.200`,[yu.variable]:n.dark}}}}),Dee=Gv(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[la.variable]:`colors.${t}.500`,[yu.variable]:n.light,_dark:{[la.variable]:`colors.${t}.200`,[yu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:la.reference}}}),zee=Gv(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[la.variable]:`colors.${t}.500`,[yu.variable]:n.light,_dark:{[la.variable]:`colors.${t}.200`,[yu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:la.reference}}}),Fee=Gv(e=>{const{colorScheme:t}=e;return{container:{[la.variable]:"colors.white",[yu.variable]:`colors.${t}.500`,_dark:{[la.variable]:"colors.gray.900",[yu.variable]:`colors.${t}.200`},color:la.reference}}}),Bee={subtle:Nee,"left-accent":Dee,"top-accent":zee,solid:Fee},$ee=Ree({baseStyle:Iee,variants:Bee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),PN={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${Ti(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Lre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Mre=e=>({bg:Ve("gray.100","whiteAlpha.300")(e)}),Ore=e=>({transitionProperty:"common",transitionDuration:"slow",...Are(e)}),Rre=rm(e=>({label:Lre,filledTrack:Ore(e),track:Mre(e)})),Ire={xs:rm({track:{h:"1"}}),sm:rm({track:{h:"2"}}),md:rm({track:{h:"3"}}),lg:rm({track:{h:"4"}})},Nre=Tre({sizes:Ire,baseStyle:Rre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Dre,definePartsStyle:M3}=rr(BJ.keys),zre=e=>{var t;const n=(t=fi(L5.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"}}}},Fre=M3(e=>{var t,n,r,i;return{label:(n=(t=L5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=L5).baseStyle)==null?void 0:i.call(r,e).container,control:zre(e)}}),Bre={md:M3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:M3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:M3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},$re=Dre({baseStyle:Fre,sizes:Bre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Hre,definePartsStyle:Wre}=rr($J.keys),Vre=e=>{var t;return{...(t=pn.baseStyle)==null?void 0:t.field,bg:Ve("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ve("white","gray.700")(e)}}},Ure={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Gre=Wre(e=>({field:Vre(e),icon:Ure})),Ey={paddingInlineEnd:"8"},rT,iT,oT,aT,sT,lT,uT,cT,jre={lg:{...(rT=pn.sizes)==null?void 0:rT.lg,field:{...(iT=pn.sizes)==null?void 0:iT.lg.field,...Ey}},md:{...(oT=pn.sizes)==null?void 0:oT.md,field:{...(aT=pn.sizes)==null?void 0:aT.md.field,...Ey}},sm:{...(sT=pn.sizes)==null?void 0:sT.sm,field:{...(lT=pn.sizes)==null?void 0:lT.sm.field,...Ey}},xs:{...(uT=pn.sizes)==null?void 0:uT.xs,field:{...(cT=pn.sizes)==null?void 0:cT.xs.field,...Ey},icon:{insetEnd:"1"}}},Yre=Hre({baseStyle:Gre,sizes:jre,variants:pn.variants,defaultProps:pn.defaultProps}),qre=ei("skeleton-start-color"),Kre=ei("skeleton-end-color"),Xre=e=>{const t=Ve("gray.100","gray.800")(e),n=Ve("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=Ti(o,r),s=Ti(o,i);return{[qre.variable]:a,[Kre.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},Zre={baseStyle:Xre},Ex=ei("skip-link-bg"),Qre={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Ex.variable]:"colors.white",_dark:{[Ex.variable]:"colors.gray.700"},bg:Ex.reference}},Jre={baseStyle:Qre},{defineMultiStyleConfig:eie,definePartsStyle:tS}=rr(HJ.keys),mv=ei("slider-thumb-size"),vv=ei("slider-track-size"),Mc=ei("slider-bg"),tie=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...$7({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},nie=e=>({...$7({orientation:e.orientation,horizontal:{h:vv.reference},vertical:{w:vv.reference}}),overflow:"hidden",borderRadius:"sm",[Mc.variable]:"colors.gray.200",_dark:{[Mc.variable]:"colors.whiteAlpha.200"},_disabled:{[Mc.variable]:"colors.gray.300",_dark:{[Mc.variable]:"colors.whiteAlpha.300"}},bg:Mc.reference}),rie=e=>{const{orientation:t}=e;return{...$7({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:mv.reference,h:mv.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"}}},iie=e=>{const{colorScheme:t}=e;return{wid
|
||
|
[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(u)}},[t]),x(Uce,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const $x=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=aS(jce),l=C.exports.useId(),u=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:h=>{s.set(h,!0);for(const p of s.values())if(!p)return;r&&r()},register:h=>(s.set(h,!1),()=>s.delete(h))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((h,p)=>s.set(p,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=x(Gce,{isPresent:n,children:e})),x(r1.Provider,{value:u,children:e})};function jce(){return new Map}const Op=e=>e.key||"";function Yce(e,t){e.forEach(n=>{const r=Op(n);t.set(r,n)})}function qce(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const fd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",zD(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Vce();const l=C.exports.useContext(G7).forceRender;l&&(s=l);const u=fz(),h=qce(e);let p=h;const m=new Set,v=C.exports.useRef(p),S=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(R5(()=>{w.current=!1,Yce(h,S),v.current=p}),e8(()=>{w.current=!0,S.clear(),m.clear()}),w.current)return x(Tn,{children:p.map(T=>x($x,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},Op(T)))});p=[...p];const E=v.current.map(Op),P=h.map(Op),k=E.length;for(let T=0;T<k;T++){const M=E[T];P.indexOf(M)===-1&&m.add(M)}return a==="wait"&&m.size&&(p=[]),m.forEach(T=>{if(P.indexOf(T)!==-1)return;const M=S.get(T);if(!M)return;const R=E.indexOf(T),I=()=>{S.delete(T),m.delete(T);const N=v.current.findIndex(z=>z.key===T);if(v.current.splice(N,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};p.splice(R,0,x($x,{isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:a,children:M},Op(M)))}),p=p.map(T=>{const M=T.key;return m.has(M)?T:x($x,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},Op(T))}),DD!=="production"&&a==="wait"&&p.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.`),x(Tn,{children:m.size?p:p.map(T=>C.exports.cloneElement(T))})};var pl=function(){return pl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},pl.apply(this,arguments)};function hz(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function i1(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(h){try{u(r.next(h))}catch(p){a(p)}}function l(h){try{u(r.throw(h))}catch(p){a(p)}}function u(h){h.done?o(h.value):i(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function o1(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
|
||
|
`})}function yde(e){hS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Nf(e){const{isOpen:t,isDisabled:n}=m8(),{reduceMotion:r}=v8(),i=Qv("chakra-accordion__icon",e.className),o=pS(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return x(ma,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:x("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Nf.displayName="AccordionIcon";var Df=Pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=pde(t),l={...pS().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return le.createElement(lde,{value:u},le.createElement(we.div,{ref:n,...o,className:Qv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Df.displayName="AccordionItem";var zf=Pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=v8(),{getPanelProps:s,isOpen:l}=m8(),u=s(o,n),h=Qv("chakra-accordion__panel",r),p=pS();a||delete u.hidden;const m=le.createElement(we.div,{...u,__css:p.panel,className:h});return a?m:x(pz,{in:l,...i,children:m})});zf.displayName="AccordionPanel";var gS=Pe(function({children:t,reduceMotion:n,...r},i){const o=Ri("Accordion",r),a=gn(r),{htmlProps:s,descendants:l,...u}=fde(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return le.createElement(ude,{value:l},le.createElement(hde,{value:h},le.createElement(sde,{value:o},le.createElement(we.div,{ref:i,...s,className:Qv("chakra-accordion",r.className),__css:o.root},t))))});gS.displayName="Accordion";var Sde=(...e)=>e.filter(Boolean).join(" "),bde=dd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Jv=Pe((e,t)=>{const n=so("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=gn(e),u=Sde("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${bde} ${o} linear infinite`,...n};return le.createElement(we.div,{ref:t,__css:h,className:u,...l},r&&le.createElement(we.span,{srOnly:!0},r))});Jv.displayName="Spinner";var mS=(...e)=>e.filter(Boolean).join(" ");function xde(e){return x(ma,{viewBox:"0 0 24 24",...e,children:x("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 wde(e){return x(ma,{viewBox:"0 0 24 24",...e,children:x("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 LA(e){return x(ma,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[Cde,_de]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[kde,y8]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),yz={info:{icon:wde,colorScheme:"blue"},warning:{icon:LA,colorScheme:"orange"},success:{icon:xde,colorScheme:"green"},error:{icon:LA,colorScheme:"red"},loading:{icon:Jv,colorScheme:"blue"}};function Ede(e){return yz[e].colorScheme}function Pde(e){return yz[e].icon}var Sz=Pe(function(t,n){const{status:r="info",addRole:i=!0,...o}=gn(t),a=t.colorScheme??Ede(r),s=Ri("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
|
||
|
:root {
|
||
|
--chakra-vh: 100vh;
|
||
|
}
|
||
|
|
||
|
@supports (height: -webkit-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -webkit-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: -moz-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -moz-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: 100dvh) {
|
||
|
:root {
|
||
|
--chakra-vh: 100dvh;
|
||
|
}
|
||
|
}
|
||
|
`,dfe=()=>x(Q4,{styles:Az}),ffe=()=>x(Q4,{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;
|
||
|
}
|
||
|
|
||
|
${Az}
|
||
|
`});function Vf(e,t,n,r){const i=cr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}function hfe(e){return"current"in e}var Lz=()=>typeof window<"u";function pfe(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var gfe=e=>Lz()&&e.test(navigator.vendor),mfe=e=>Lz()&&e.test(pfe()),vfe=()=>mfe(/mac|iphone|ipad|ipod/i),yfe=()=>vfe()&&gfe(/apple/i);function Sfe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Vf(i,"pointerdown",o=>{if(!yfe()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const h=hfe(u)?u.current:u;return h?.contains(a)||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var bfe=hJ?C.exports.useLayoutEffect:C.exports.useEffect;function FA(e,t=[]){const n=C.exports.useRef(e);return bfe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function xfe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function wfe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function kv(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=FA(n),a=FA(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=xfe(r,s),p=wfe(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a?.()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o?.()},[u,o]),S=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:S,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":p,onClick:pJ(w.onClick,S)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:p})}}function _8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var k8=Pe(function(t,n){const{htmlSize:r,...i}=t,o=Ri("Input",i),a=gn(i),s=S8(a),l=Rr("chakra-input",t.className);return le.createElement(we.input,{size:r,...s,__css:o.field,ref:n,className:l})});k8.displayName="Input";k8.id="Input";var[Cfe,Mz]=xn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),_fe=Pe(function(t,n){const r=Ri("Input",t),{children:i,className:o,...a}=gn(t),s=Rr("chakra-input__group",o),l={},u=yS(i),h=r.field;u.forEach(m=>{!r||(h&&m.type.id==="InputLeftElement"&&(l.paddingStart=h.height??h.h),h&&m.type.id==="InputRightElement"&&(l.paddingEnd=h.height??h.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const p=u.map(m=>{var v,S;const w=_8({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((S=m.props)==null?void 0:S.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m,Object.assign(w,l,m.props))});return le.createElement(we.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},x(Cfe,{value:r,children:p}))});_fe.displayName="InputGroup";var kfe={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Efe=we("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),E8=Pe(function(t,n){const{placement:r="left",...i}=t,o=kfe[r]??{},a=Mz();return x(Efe,{ref:n,...i,__css:{...a.addon,...o}})});E8.displayName="InputAddon";var Oz=Pe(function(t,n){return x(E8,{ref:n,placement:"left",...t,className:Rr("chakra-input__left-addon",t.className)})});Oz.displayName="InputLeftAddon";Oz.id="InputLeftAddon";var Rz=Pe(function(t,n){return x(E8,{ref:n,placement:"right",...t,className:Rr("chakra-input__right-addon",t.className)})});Rz.displayName="InputRightAddon";Rz.id="InputRightAddon";var Pfe=we("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),wS=Pe(function(t,n){const{placement:
|
||
|
.`.concat(Q0e,` {
|
||
|
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(F3,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(B3,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(F3," .").concat(F3,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(B3," .").concat(B3,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(J0e,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},d1e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return l1e(i)},[i]);return x(u1e,{styles:c1e(o,!t,i,n?"":"!important")})},MC=!1;if(typeof window<"u")try{var Fy=Object.defineProperty({},"passive",{get:function(){return MC=!0,!0}});window.addEventListener("test",Fy,Fy),window.removeEventListener("test",Fy,Fy)}catch{MC=!1}var wp=MC?{passive:!1}:!1,f1e=function(e){return e.tagName==="TEXTAREA"},QF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!f1e(e)&&n[t]==="visible")},h1e=function(e){return QF(e,"overflowY")},p1e=function(e){return QF(e,"overflowX")},iL=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=JF(e,n);if(r){var i=eB(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},g1e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m1e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},JF=function(e,t){return e==="v"?h1e(t):p1e(t)},eB=function(e,t){return e==="v"?g1e(t):m1e(t)},v1e=function(e,t){return e==="h"&&t==="rtl"?-1:1},y1e=function(e,t,n,r,i){var o=v1e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,h=a>0,p=0,m=0;do{var v=eB(e,s),S=v[0],w=v[1],E=v[2],P=w-E-o*S;(S||P)&&JF(e,s)&&(p+=P,m+=S),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&(i&&p===0||!i&&a>p)||!h&&(i&&m===0||!i&&-a>m))&&(u=!0),u},By=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oL=function(e){return[e.deltaX,e.deltaY]},aL=function(e){return e&&"current"in e?e.current:e},S1e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},b1e=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},x1e=0,Cp=[];function w1e(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(x1e++)[0],o=C.exports.useState(function(){return ZF()})[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 w=gC([e.lockRef.current],(e.shards||[]).map(aL),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,E){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var P=By(w),k=n.current,T="deltaX"in w?w.deltaX:k[0]-P[0],M="deltaY"in w?w.deltaY:k[1]-P[1],R,I=w.target,N=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in w&&N==="h"&&I.type==="range")return!1;var z=iL(N,I);if(!z)return!0;if(z?R=N:(R=N==="v"?"h":"v",z=iL(N,I)),!z)return!1;if(!r.current&&"changedTouches"in w&&(T||M)&&(r.current=R),!R)return!0;var $=r.current||R;return y1e($,E,w,$==="h"?T:M,!0)},[]),l=C.exports.useCallback(function(w){var E=w;if(!(!Cp.length||Cp[Cp.length-1]!==o)){var P="deltaY"in E?oL(E):By(E),k=t.current.filter(function(R){return R.name===E.type&&R.target===E.target&&S1e(R.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(aL).filter(Boolean).filter(function(R){return R.contains(E.target)}),M=T.length>0?s(E,T[0]):!a.current.noIsolation;M&&E.cancelable&&E.preventDefault()}}},[]),u=C.exports.useCallback(function(w,E,P,k){var T={name:w,delta:E,target:P,should:k};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),h=C.exports.useCallback(function(w){n.current=By(w),r.current=void 0},[]),p=C.exports.useCallback(function(w){u(w.type,oL(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,By(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Cp.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,wp),document.addEventListener("touchmove",l,wp),document.addEventListener("touchstart",h,wp),function(){Cp=Cp.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,wp),document.removeEventListener("touchmove",l,wp),document.removeEventListener("touchstart",h,wp)}},[]);var v=e.removeScrollBar,S=e.inert;return re(Tn,{children:[S?x(o,{styles:b1e(i)}):null,v?x(d1e,{gapMode:"margin"}):null]})}const C1e=n0e(XF,w1e);var tB=C.exports.forwardRef(function(e,t){return x(_S,{...pl({},e,{ref:t,sideCar:C1e})})});tB.classNames=_S.classNames;const nB=tB;var ch=(...e)=>e.filter(Boolean).join(" ");function im(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var _1e=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}},OC=new _1e;function k1e(e,t){C.exports.useEffect(()=>(t&&OC.add(e),()=>{OC.remove(e)}),[t,e])}function E1e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=C.exports.useRef(null),h=C.exports.useRef(null),[p,m,v]=T1e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");P1e(u,t&&a),k1e(u,t);const S=C.exports.useRef(null),w=C.exports.useCallback(z=>{S.current=z.target},[]),E=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[T,M]=C.exports.useState(!1),R=C.exports.useCallback((z={},$=null)=>({role:"dialog",...z,ref:Bn($,u),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":T?v:void 0,onClick:im(z.onClick,H=>H.stopPropagation())}),[v,T,p,m,P]),I=C.exports.useCallback(z=>{z.stopPropagation(),S.current===z.target&&(!OC.isTopModal(u)||(i&&n?.()
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var j0=C.exports;function Rve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ive=typeof Object.is=="function"?Object.is:Rve,Nve=j0.useState,Dve=j0.useEffect,zve=j0.useLayoutEffect,Fve=j0.useDebugValue;function Bve(e,t){var n=t(),r=Nve({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return zve(function(){i.value=n,i.getSnapshot=t,cw(i)&&o({inst:i})},[e,n,t]),Dve(function(){return cw(i)&&o({inst:i}),e(function(){cw(i)&&o({inst:i})})},[e]),Fve(n),n}function cw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ive(e,n)}catch{return!0}}function $ve(e,t){return t()}var Hve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$ve:Bve;KB.useSyncExternalStore=j0.useSyncExternalStore!==void 0?j0.useSyncExternalStore:Hve;(function(e){e.exports=KB})(qB);var XB={exports:{}},ZB={};/**
|
||
|
* @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 OS=C.exports,Wve=qB.exports;function Vve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uve=typeof Object.is=="function"?Object.is:Vve,Gve=Wve.useSyncExternalStore,jve=OS.useRef,Yve=OS.useEffect,qve=OS.useMemo,Kve=OS.useDebugValue;ZB.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=jve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=qve(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var S=a.value;if(i(S,v))return p=S}return p=v}if(S=p,Uve(h,v))return S;var w=r(v);return i!==void 0&&i(S,w)?S:(h=v,p=w)}var u=!1,h,p,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=Gve(e,o[0],o[1]);return Yve(function(){a.hasValue=!0,a.value=s},[s]),Kve(s),s};(function(e){e.exports=ZB})(XB);function Xve(e){e()}let QB=Xve;const Zve=e=>QB=e,Qve=()=>QB,od=C.exports.createContext(null);function JB(){return C.exports.useContext(od)}const Jve=()=>{throw new Error("uSES not initialized!")};let e$=Jve;const e2e=e=>{e$=e},t2e=(e,t)=>e===t;function n2e(e=od){const t=e===od?JB:()=>C.exports.useContext(e);return function(r,i=t2e){const{store:o,subscription:a,getServerState:s}=t(),l=e$(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const r2e=n2e();var i2e={exports:{}},On={};/**
|
||
|
* @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 m_=Symbol.for("react.element"),v_=Symbol.for("react.portal"),RS=Symbol.for("react.fragment"),IS=Symbol.for("react.strict_mode"),NS=Symbol.for("react.profiler"),DS=Symbol.for("react.provider"),zS=Symbol.for("react.context"),o2e=Symbol.for("react.server_context"),FS=Symbol.for("react.forward_ref"),BS=Symbol.for("react.suspense"),$S=Symbol.for("react.suspense_list"),HS=Symbol.for("react.memo"),WS=Symbol.for("react.lazy"),a2e=Symbol.for("react.offscreen"),t$;t$=Symbol.for("react.module.reference");function Ga(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case m_:switch(e=e.type,e){case RS:case NS:case IS:case BS:case $S:return e;default:switch(e=e&&e.$$typeof,e){case o2e:case zS:case FS:case WS:case HS:case DS:return e;default:return t}}case v_:return t}}}On.ContextConsumer=zS;On.ContextProvider=DS;On.Element=m_;On.ForwardRef=FS;On.Fragment=RS;On.Lazy=WS;On.Memo=HS;On.Portal=v_;On.Profiler=NS;On.StrictMode=IS;On.Suspense=BS;On.SuspenseList=$S;On.isAsyncMode=function(){return!1};On.isConcurrentMode=function(){return!1};On.isContextConsumer=function(e){return Ga(e)===zS};On.isContextProvider=function(e){return Ga(e)===DS};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m_};On.isForwardRef=function(e){return Ga(e)===FS};On.isFragment=function(e){return Ga(e)===RS};On.isLazy=function(e){return Ga(e)===WS};On.isMemo=function(e){return Ga(e)===HS};On.isPortal=function(e){return Ga(e)===v_};On.isProfiler=function(e){return Ga(e)===NS};On.isStrictMode=function(e){return Ga(e)===IS};On.isSuspense=function(e){return Ga(e)===BS};On.isSuspenseList=function(e){return Ga(e)===$S};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===RS||e===NS||e===IS||e===BS||e===$S||e===a2e||typeof e=="object"&&e!==null&&(e.$$typeof===WS||e.$$typeof===HS||e.$$typeof===DS||e.$$typeof===zS||e.$$typeof===FS||e.$$typeof===t$||e.getModuleId!==void 0)};On.typeOf=Ga;(function(e){e.exports=On})(i2e);function s2e(){const e=Qve();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 LL={notify(){},get:()=>[]};function l2e(e,t){let n,r=LL;function i(p){return l(),r.subscribe(p)}function o(){r.notify()}function a(){h.onStateChange&&h.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=s2e())}function u(){n&&(n(),n=void 0,r.clear(),r=LL)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const u2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",c2e=u2e?C.exports.useLayoutEffect:C.exports.useEffect;function d2e({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=l2e(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return c2e(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),x((t||od).Provider,{value:i,children:n})}function n$(e=od){const t=e===od?JB:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const f2e=n$();function h2e(e=od){const t=e===od?f2e:n$(e);return function(){return t().dispatch}}const p2e=h2e();e2e(XB.exports.useSyncExternalStoreWithSelector);Zve(Ol.exports.unstable_batchedUpdates);var y_="persist:",r$="persist/FLUSH",S_="persist/REHYDRATE",i$="persist/PAUSE",o$="persist/PERSIST",a$="persist/PURGE",s$="persist/REGISTER",g2e=-1;function W3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W3=function(n){return typeof n}:W3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
|
||
|
|
||
|
`;if(!(0,e.isString)(J)||J.length<1)throw new Error(`${X} Name (key) of reducer is required. ${G}`);if(!V||!V.length)return;const{duplicates:Q,subsets:j}=(0,e.findDuplicatesAndSubsets)(V);if(Q.length>1)throw new Error(`${X} Duplicated paths.
|
||
|
|
||
|
${JSON.stringify(Q)}
|
||
|
|
||
|
${G}`);if(j.length>1)throw new Error(`${X} You are trying to persist an entire property and also some of its subset.
|
||
|
|
||
|
${JSON.stringify(j)}
|
||
|
|
||
|
${G}`)};e.singleTransformValidator=z;const $=function(V){if(!(0,e.isArray)(V))return;const J=V?.map(ie=>ie.deepPersistKey).filter(ie=>ie)||[];if(J.length){const ie=J.filter((ee,X)=>J.indexOf(ee)!==X);if(ie.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
|
||
|
|
||
|
Duplicates: ${JSON.stringify(ie)}`)}};e.transformsValidator=$;const H=function({whitelist:V,blacklist:J}){if(V&&V.length&&J&&J.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(V){const{duplicates:ie,subsets:ee}=(0,e.findDuplicatesAndSubsets)(V);(0,e.throwError)({duplicates:ie,subsets:ee},"whitelist")}if(J){const{duplicates:ie,subsets:ee}=(0,e.findDuplicatesAndSubsets)(J);(0,e.throwError)({duplicates:ie,subsets:ee},"blacklist")}};e.configValidator=H;const q=function({duplicates:V,subsets:J},ie){if(V.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${ie}.
|
||
|
|
||
|
${JSON.stringify(V)}`);if(J.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${ie}. You must decide if you want to persist an entire path or its specific subset.
|
||
|
|
||
|
${JSON.stringify(J)}`)};e.throwError=q;const de=function(V){return(0,e.isArray)(V)?V.filter(e.unique).reduce((J,ie)=>{const ee=ie.split("."),X=ee[0],G=ee.slice(1).join(".")||void 0,Q=J.filter(Z=>Object.keys(Z)[0]===X)[0],j=Q?Object.values(Q)[0]:void 0;return Q||J.push({[X]:G?[G]:void 0}),Q&&!j&&G&&(Q[X]=[G]),Q&&j&&G&&j.push(G),J},[]):[]};e.getRootKeysGroup=de})(d$);(function(e){var t=ms&&ms.__rest||function(p,m){var v={};for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&m.indexOf(S)<0&&(v[S]=p[S]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,S=Object.getOwnPropertySymbols(p);w<S.length;w++)m.indexOf(S[w])<0&&Object.prototype.propertyIsEnumerable.call(p,S[w])&&(v[S[w]]=p[S[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=d$,r=th,i=w_,o=function(p,m,v={}){const S=v.whitelist||null,w=v.blacklist||null;function E(P){return!!(S&&S.indexOf(P)===-1||w&&w.indexOf(P)!==-1)}return{in:(P,k,T)=>!E(k)&&p?p(P,k,T):P,out:(P,k,T)=>!E(k)&&m?m(P,k,T):P,deepPersistKey:S&&S[0]}},a=(p,m,v,{debug:S,whitelist:w,blacklist:E,transforms:P})=>{if(w||E)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(P);const k=(0,n.cloneDeep)(v);let T=p;if(T&&(0,n.isObjectLike)(T)){const M=(0,n.difference)(m,v);(0,n.isEmpty)(M)||(T=(0,n.mergeDeep)(p,M,{preserveUndefined:!0}),S&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(M)}`)),Object.keys(T).forEach(R=>{if(R!=="_persist"){if((0,n.isObjectLike)(k[R])){k[R]=(0,n.mergeDeep)(k[R],T[R]);return}k[R]=T[R]}})}return S&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),k};e.autoMergeDeep=a;const s=(p,m)=>((0,n.singleTransformValidator)(m,p,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let S=null,w;return m.forEach(E=>{const P=E.split(".");w=(0,n.path)(v,P),typeof w>"u"&&(0,n.isIntegerString)(P[P.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(P,w),T=(0,n.isArray)(k)?[]:{};S=(0,n.mergeDeep)(S||T,k,{preservePlaceholder:!0})}),S||v},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.WHITELIST),{whitelist:[p]}));e.createWhitelist=s;const l=(p,m)=>((0,n.singleTransformValidator)(m,p,i.ConfigType.BLACKLIST),o(v=>{if(!m||!m.length)return;const S=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(E=>E.split(".")).reduce((E,P)=>(0,n.dissocPath)(E,P),S)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[p]}));e.createBlacklist=l;const u=function(p,m){return m.map(v=>{const S=Object.keys(v)[0],w=v[S];return p===i.ConfigType.WHITELIST?(0,e.createWhitelist)(S,w):(0,e.createBlacklist)(S,w)})};e.getTransforms=u;const h=p=>{var{key:m,whitelist:v,blacklist:S,storage:w,transforms:E,rootReducer:P}=p,k=t(p,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:S});const T=(0,n.getRootKeysGroup)(v),M=(0,n.getRootKeysGroup)(S),R=Object.keys(P(void 0,{type:""})),I=T.map(de=>Object.keys(de)[0]),N=M.map(de=>Object.keys(de)[0]),z=R.filter(de=>I.indexOf(de)===-1&&N.indexOf(de)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),H=(0,e.getTransforms)(i.ConfigType.BLACKLIST,M),q=(0,n.isArray)(v)?z.map(de=>(0,e.createBlacklist)(de)):[];return Object.assign(Object.assign({},k),{key:m,storage:w,transforms:[...$,...H,...q,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})(c$);const U3=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),G2e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return C_(r)?r:!1},C_=e=>Boolean(typeof e=="string"?G2e(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(),10))&&r>
|
||
|
* @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__",u=500,h="__lodash_placeholder__",p=1,m=2,v=4,S=1,w=2,E=1,P=2,k=4,T=8,M=16,R=32,I=64,N=128,z=256,$=512,H=30,q="...",de=800,V=16,J=1,ie=2,ee=3,X=1/0,G=9007199254740991,Q=17976931348623157e292,j=0/0,Z=4294967295,me=Z-1,Se=Z>>>1,xe=[["ary",N],["bind",E],["bindKey",P],["curry",T],["curryRight",M],["flip",$],["partial",R],["partialRight",I],["rearg",z]],Be="[object Arguments]",We="[object Array]",dt="[object AsyncFunction]",Ye="[object Boolean]",rt="[object Date]",Ze="[object DOMException]",Ke="[object Error]",Et="[object Function]",bt="[object GeneratorFunction]",Ae="[object Map]",it="[object Number]",Ot="[object Null]",lt="[object Object]",xt="[object Promise]",Cn="[object Proxy]",Pt="[object RegExp]",Kt="[object Set]",_n="[object String]",mn="[object Symbol]",Oe="[object Undefined]",Je="[object WeakMap]",Xt="[object WeakSet]",jt="[object ArrayBuffer]",ke="[object DataView]",Mt="[object Float32Array]",Ne="[object Float64Array]",at="[object Int8Array]",an="[object Int16Array]",Nn="[object Int32Array]",$e="[object Uint8Array]",ft="[object Uint8ClampedArray]",tt="[object Uint16Array]",Nt="[object Uint32Array]",Zt=/\b__p \+= '';/g,Qn=/\b(__p \+=) '' \+/g,lo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pi=/&(?:amp|lt|gt|quot|#39);/g,Ms=/[&<>"']/g,y1=RegExp(pi.source),va=RegExp(Ms.source),bh=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,Ru=/<%=([\s\S]+?)%>/g,xh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wh=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kd=/[\\^$.*+?()[\]{}|]/g,b1=RegExp(kd.source),Iu=/^\s+/,Ed=/\s/,x1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Os=/\{\n\/\* \[wrapped with (.+)\] \*/,Nu=/,? & /,w1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,C1=/[()=,{}\[\]\/\s]/,_1=/\\(\\)?/g,k1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ja=/\w*$/,E1=/^[-+]0x[0-9a-f]+$/i,P1=/^0b[01]+$/i,T1=/^\[object .+?Constructor\]$/,A1=/^0o[0-7]+$/i,L1=/^(?:0|[1-9]\d*)$/,M1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rs=/($^)/,O1=/['\n\r\u2028\u2029\\]/g,Ya="\\ud800-\\udfff",Dl="\\u0300-\\u036f",zl="\\ufe20-\\ufe2f",Is="\\u20d0-\\u20ff",Fl=Dl+zl+Is,Ch="\\u2700-\\u27bf",Du="a-z\\xdf-\\xf6\\xf8-\\xff",Ns="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kn="\\u2000-\\u206f",vn=" \\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",Do="A-Z\\xc0-\\xd6\\xd8-\\xde",Cr="\\ufe0e\\ufe0f",Ur=Ns+No+kn+vn,zo="['\u2019]",Ds="["+Ya+"]",Gr="["+Ur+"]",qa="["+Fl+"]",Pd="\\d+",Bl="["+Ch+"]",Ka="["+Du+"]",Td="[^"+Ya+Ur+Pd+Ch+Du+Do+"]",gi="\\ud83c[\\udffb-\\udfff]",_h="(?:"+qa+"|"+gi+")",kh="[^"+Ya+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",zs="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Do+"]",Fs="\\u200d",$l="(?:"+Ka+"|"+Td+")",R1="(?:"+uo+"|"+Td+")",zu="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",Fu="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",Ld=_h+"?",Bu="["+Cr+"]?",ya="(?:"+Fs+"(?:"+[kh,Ad,zs].join("|")+")"+Bu+Ld+")*",Md="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=Bu+Ld+ya,Eh="(?:"+[Bl,Ad,zs].join("|")+")"+Ht,$u="(?:"+[kh+qa+"?",qa,Ad,zs,Ds].join("|")+")",Hu=RegExp(zo,"g"),Ph=RegExp(qa,"g"),Fo=RegExp(gi+"(?="+gi+")|"+$u+Ht,"g"),Wn=RegExp([uo+"?"+Ka+"+"+zu+"(?="+[Gr,uo,"$"].join("|")+")",R1+"+"+Fu+"(?="+[Gr,uo+$l,"$"].join("|")+")",uo+"?"+$l+"+"+zu,uo+"+"+Fu,Hl,Md,Pd,Eh].join("|"),"g"),Od=RegExp("["+Fs+Ya+Fl+Cr+"]"),Th=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rd=["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"],Ah=-1,sn={};sn[M
|
||
|
/* [wrapped with `+g+`] */
|
||
|
`)}function qV(c){return It(c)||df(c)||!!(G1&&c&&c[G1])}function Zl(c,g){var b=typeof c;return g=g??G,!!g&&(b=="number"||b!="symbol"&&L1.test(c))&&c>-1&&c%1==0&&c<g}function Xi(c,g,b){if(!sr(b))return!1;var L=typeof g;return(L=="number"?So(b)&&Zl(g,b.length):L=="string"&&g in b)?os(b[g],c):!1}function Pb(c,g){if(It(c))return!1;var b=typeof c;return b=="number"||b=="symbol"||b=="boolean"||c==null||Ko(c)?!0:wh.test(c)||!xh.test(c)||g!=null&&c in ln(g)}function KV(c){var g=typeof c;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?c!=="__proto__":c===null}function Tb(c){var g=ye(c),b=F[g];if(typeof b!="function"||!(g in Ut.prototype))return!1;if(c===b)return!0;var L=ue(b);return!!L&&c===L[0]}function XV(c){return!!Ku&&Ku in c}var ZV=Jn?Ql:Gb;function wg(c){var g=c&&c.constructor,b=typeof g=="function"&&g.prototype||yn;return c===b}function kk(c){return c===c&&!sr(c)}function Ek(c,g){return function(b){return b==null?!1:b[c]===g&&(g!==n||c in ln(b))}}function QV(c){var g=X2(c,function(L){return b.size===u&&b.clear(),L}),b=g.cache;return g}function JV(c,g){var b=c[1],L=g[1],D=b|L,B=D<(E|P|N),Y=L==N&&b==T||L==N&&b==z&&c[7].length<=g[8]||L==(N|z)&&g[7].length<=g[8]&&b==T;if(!(B||Y))return c;L&E&&(c[2]=g[2],D|=b&E?0:k);var te=g[3];if(te){var ce=c[3];c[3]=ce?U2(ce,te,g[4]):te,c[4]=ce?Ho(c[3],h):g[4]}return te=g[5],te&&(ce=c[5],c[5]=ce?vg(ce,te,g[6]):te,c[6]=ce?Ho(c[5],h):g[6]),te=g[7],te&&(c[7]=te),L&N&&(c[8]=c[8]==null?g[8]:qr(c[8],g[8])),c[9]==null&&(c[9]=g[9]),c[0]=g[0],c[1]=D,c}function eU(c){var g=[];if(c!=null)for(var b in ln(c))g.push(b);return g}function tU(c){return zh.call(c)}function Pk(c,g,b){return g=mr(g===n?c.length-1:g,0),function(){for(var L=arguments,D=-1,B=mr(L.length-g,0),Y=ve(B);++D<B;)Y[D]=L[g+D];D=-1;for(var te=ve(g+1);++D<g;)te[D]=L[D];return te[g]=b(Y),mi(c,this,te)}}function Tk(c,g){return g.length<2?c:Gs(c,Tr(g,0,-1))}function nU(c,g){for(var b=c.length,L=qr(g.length,b),D=wi(c);L--;){var B=g[L];c[L]=Zl(B,b)?D[B]:n}return c}function Ab(c,g){if(!(g==="constructor"&&typeof c[g]=="function")&&g!="__proto__")return c[g]}var Ak=Mk(rf),Cg=Yd||function(c,g){return vt.setTimeout(c,g)},Lb=Mk(ip);function Lk(c,g,b){var L=g+"";return Lb(c,YV(L,rU(UV(L),b)))}function Mk(c){var g=0,b=0;return function(){var L=j1(),D=V-(L-b);if(b=L,D>0){if(++g>=de)return arguments[0]}else g=0;return c.apply(n,arguments)}}function j2(c,g){var b=-1,L=c.length,D=L-1;for(g=g===n?L:g;++b<g;){var B=tf(b,D),Y=c[B];c[B]=c[b],c[b]=Y}return c.length=g,c}var Ok=QV(function(c){var g=[];return c.charCodeAt(0)===46&&g.push(""),c.replace(Io,function(b,L,D,B){g.push(D?B.replace(_1,"$1"):L||b)}),g});function tl(c){if(typeof c=="string"||Ko(c))return c;var g=c+"";return g=="0"&&1/c==-X?"-0":g}function cf(c){if(c!=null){try{return ir.call(c)}catch{}try{return c+""}catch{}}return""}function rU(c,g){return Vn(xe,function(b){var L="_."+b[0];g&b[1]&&!Ii(c,L)&&c.push(L)}),c.sort()}function Rk(c){if(c instanceof Ut)return c.clone();var g=new ji(c.__wrapped__,c.__chain__);return g.__actions__=wi(c.__actions__),g.__index__=c.__index__,g.__values__=c.__values__,g}function iU(c,g,b){(b?Xi(c,g,b):g===n)?g=1:g=mr(Dt(g),0);var L=c==null?0:c.length;if(!L||g<1)return[];for(var D=0,B=0,Y=ve(qd(L/g));D<L;)Y[B++]=Tr(c,D,D+=g);return Y}function oU(c){for(var g=-1,b=c==null?0:c.length,L=0,D=[];++g<b;){var B=c[g];B&&(D[L++]=B)}return D}function aU(){var c=arguments.length;if(!c)return[];for(var g=ve(c-1),b=arguments[0],L=c;L--;)g[L-1]=arguments[L];return ba(It(b)?wi(b):[b],Er(g,1))}var sU=Ct(function(c,g){return Ar(c)?uc(c,Er(g,1,Ar,!0)):[]}),lU=Ct(function(c,g){var b=ka(g);return Ar(b)&&(b=n),Ar(c)?uc(c,Er(g,1,Ar,!0),Te(b,2)):[]}),uU=Ct(function(c,g){var b=ka(g);return Ar(b)&&(b=n),Ar(c)?uc(c,Er(g,1,Ar,!0),n,b):[]});function cU(c,g,b){var L=c==null?0:c.length;return L?(g=b||g===n?1:Dt(g),Tr(c,g<0?0:g,L)):[]}function dU(c,g,b){var L=c==null?0:c.length;return L?(g=b||g===n?1:Dt(g),g=L-g,Tr(c,0,g<0?0:g)):[]}function fU(c,g){return c&&c.length?mc(c,Te(g,3),!0,!0):[]}function hU(c,g){return c&&c.length?mc(c,Te(g,3),!0):[]}function pU(c,g,b,L){var D=c==null?0:c.length;
|
||
|
`;c.replace(Ue,function(St,Gt,Jt,Xo,Zi,Zo){return Jt||(Jt=Xo),Le+=c.slice(Ce,Zo).replace(O1,Hs),Gt&&(te=!0,Le+=`' +
|
||
|
__e(`+Gt+`) +
|
||
|
'`),Zi&&(ce=!0,Le+=`';
|
||
|
`+Zi+`;
|
||
|
__p += '`),Jt&&(Le+=`' +
|
||
|
((__t = (`+Jt+`)) == null ? '' : __t) +
|
||
|
'`),Ce=Zo+St.length,St}),Le+=`';
|
||
|
`;var yt=en.call(g,"variable")&&g.variable;if(!yt)Le=`with (obj) {
|
||
|
`+Le+`
|
||
|
}
|
||
|
`;else if(C1.test(yt))throw new _t(s);Le=(ce?Le.replace(Zt,""):Le).replace(Qn,"$1").replace(lo,"$1;"),Le="function("+(yt||"obj")+`) {
|
||
|
`+(yt?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Le+`return __p
|
||
|
}`;var $t=dE(function(){return Qt(B,ct+"return "+Le).apply(n,Y)});if($t.source=Le,Nb($t))throw $t;return $t}function CY(c){return Sn(c).toLowerCase()}function _Y(c){return Sn(c).toUpperCase()}function kY(c,g,b){if(c=Sn(c),c&&(b||g===n))return Gi(c);if(!c||!(g=qi(g)))return c;var L=Ni(c),D=Ni(g),B=$o(L,D),Y=Xa(L,D)+1;return rs(L,B,Y).join("")}function EY(c,g,b){if(c=Sn(c),c&&(b||g===n))return c.slice(0,$1(c)+1);if(!c||!(g=qi(g)))return c;var L=Ni(c),D=Xa(L,Ni(g))+1;return rs(L,0,D).join("")}function PY(c,g,b){if(c=Sn(c),c&&(b||g===n))return c.replace(Iu,"");if(!c||!(g=qi(g)))return c;var L=Ni(c),D=$o(L,Ni(g));return rs(L,D).join("")}function TY(c,g){var b=H,L=q;if(sr(g)){var D="separator"in g?g.separator:D;b="length"in g?Dt(g.length):b,L="omission"in g?qi(g.omission):L}c=Sn(c);var B=c.length;if(Vl(c)){var Y=Ni(c);B=Y.length}if(b>=B)return c;var te=b-xa(L);if(te<1)return L;var ce=Y?rs(Y,0,te).join(""):c.slice(0,te);if(D===n)return ce+L;if(Y&&(te+=ce.length-te),Db(D)){if(c.slice(te).search(D)){var Ce,_e=ce;for(D.global||(D=Vd(D.source,Sn(ja.exec(D))+"g")),D.lastIndex=0;Ce=D.exec(_e);)var Le=Ce.index;ce=ce.slice(0,Le===n?te:Le)}}else if(c.indexOf(qi(D),te)!=te){var Ue=ce.lastIndexOf(D);Ue>-1&&(ce=ce.slice(0,Ue))}return ce+L}function AY(c){return c=Sn(c),c&&y1.test(c)?c.replace(pi,w2):c}var LY=el(function(c,g,b){return c+(b?" ":"")+g.toUpperCase()}),Bb=fp("toUpperCase");function cE(c,g,b){return c=Sn(c),g=b?n:g,g===n?Ih(c)?Wd(c):z1(c):c.match(g)||[]}var dE=Ct(function(c,g){try{return mi(c,n,g)}catch(b){return Nb(b)?b:new _t(b)}}),MY=er(function(c,g){return Vn(g,function(b){b=tl(b),Uo(c,b,Rb(c[b],c))}),c});function OY(c){var g=c==null?0:c.length,b=Te();return c=g?zn(c,function(L){if(typeof L[1]!="function")throw new vi(a);return[b(L[0]),L[1]]}):[],Ct(function(L){for(var D=-1;++D<g;){var B=c[D];if(mi(B[0],this,L))return mi(B[1],this,L)}})}function RY(c){return Uh(ii(c,p))}function $b(c){return function(){return c}}function IY(c,g){return c==null||c!==c?g:c}var NY=bg(),DY=bg(!0);function xo(c){return c}function Hb(c){return ar(typeof c=="function"?c:ii(c,p))}function zY(c){return hc(ii(c,p))}function FY(c,g){return Ys(c,ii(g,p))}var BY=Ct(function(c,g){return function(b){return ts(b,c,g)}}),$Y=Ct(function(c,g){return function(b){return ts(c,b,g)}});function Wb(c,g,b){var L=li(g),D=qh(g,L);b==null&&!(sr(g)&&(D.length||!L.length))&&(b=g,g=c,c=this,D=qh(g,li(g)));var B=!(sr(b)&&"chain"in b)||!!b.chain,Y=Ql(c);return Vn(D,function(te){var ce=g[te];c[te]=ce,Y&&(c.prototype[te]=function(){var Ce=this.__chain__;if(B||Ce){var _e=c(this.__wrapped__),Le=_e.__actions__=wi(this.__actions__);return Le.push({func:ce,args:arguments,thisArg:c}),_e.__chain__=Ce,_e}return ce.apply(c,ba([this.value()],arguments))})}),c}function HY(){return vt._===this&&(vt._=W1),this}function Vb(){}function WY(c){return c=Dt(c),Ct(function(g){return pc(g,c)})}var VY=xg(zn),UY=xg(Dn),GY=xg(Wu);function fE(c){return Pb(c)?$s(tl(c)):ns(c)}function jY(c){return function(g){return c==null?n:Gs(c,g)}}var YY=y(),qY=y(!0);function Ub(){return[]}function Gb(){return!1}function KY(){return{}}function XY(){return""}function ZY(){return!0}function QY(c,g){if(c=Dt(c),c<1||c>G)return[];var b=Z,L=qr(c,Z);g=Te(g),c-=Z;for(var D=Bd(L,g);++b<c;)g(b);return D}function JY(c){return It(c)?zn(c,tl):Ko(c)?[c]:wi(Ok(Sn(c)))}function eq(c){var g=++Ud;return Sn(c)+g}var tq=hp(function(c,g){return c+g},0),nq=O("ceil"),rq=hp(function(c,g){return c/g},1),iq=O("floor");function oq(c){return c&&c.length?yr(c,xo,Kh):n}function aq(c,g){return c&&c.length?yr(c,Te(g,2),Kh):n}function sq(c){return Dd(c,xo)}function lq(c,g){return Dd(c,Te(g,2))}function uq(c){return c&&c.length?yr(c,xo,js):n}function cq(c,g){return c&&c.length?yr(c,Te(g,2),js):n}var dq=hp(function(c,g){return c*g},1),fq=O("round"),hq=hp(function(c,g){return c-g},0);function pq(c){return c&&c.length?Fd(c,xo):0}function gq(c,g){return c&&c.length?Fd(c,Te(g,2)):0}return F.after=zG,F.ary=Vk,F.assign=_j,F.assignIn=rE,F.assignInWith=ey,F.assignWith=kj,F.at=Ej,F.before=Uk,F.bind=Rb,F.bindAll=MY,F.bindKey=Gk,F.castArray=KG,F.chain=$k,F.chun
|
||
|
position: relative;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
overflow: hidden;
|
||
|
-webkit-touch-callout: none; /* iOS Safari */
|
||
|
-webkit-user-select: none; /* Safari */
|
||
|
-khtml-user-select: none; /* Konqueror HTML */
|
||
|
-moz-user-select: none; /* Firefox */
|
||
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
||
|
user-select: none;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh {
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
transform-origin: 0% 0%;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh img {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
`,EM={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};R6e(I6e);var N6e=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=C.exports.useContext(oW).setComponents,u=C.exports.useRef(null),h=C.exports.useRef(null);return C.exports.useEffect(function(){var p=u.current,m=h.current;p!==null&&m!==null&&l&&l(p,m)},[]),x("div",{ref:u,className:"react-transform-wrapper "+EM.wrapper+" "+r,style:a,children:x("div",{ref:h,className:"react-transform-component "+EM.content+" "+o,style:s,children:t})})};function D6e({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=C.exports.useState(0),[a,s]=C.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},h=()=>{s(!a)};return x(O6e,{centerOnInit:!0,minScale:.1,children:({zoomIn:p,zoomOut:m,resetTransform:v,centerView:S})=>re(Tn,{children:[re("div",{className:"lightbox-image-options",children:[x(gt,{icon:x(q3e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>p(),fontSize:20}),x(gt,{icon:x(K3e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),x(gt,{icon:x(j3e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),x(gt,{icon:x(Y3e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),x(gt,{icon:x(O5e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:h,fontSize:20}),x(gt,{icon:x(L_,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),x(N6e,{wrapperStyle:{width:"100%",height:"100%"},children:x("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||""})})]})})}function z6e(){const e=Xe(),t=Ee(m=>m.options.isLightBoxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=Ee(hH),[a,s]=C.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},h=()=>{e(Q_())},p=()=>{e(Z_())};return mt("Esc",()=>{t&&e(sd(!1))},[t]),re("div",{className:"lightbox-container",children:[x(gt,{icon:x(G3e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(sd(!1))},fontSize:20}),re("div",{className:"lightbox-display-container",children:[re("div",{className:"lightbox-preview-wrapper",children:[x(sH,{}),!r&&re("div",{className:"current-image-next-prev-buttons",children:[x("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&x(Ps,{"aria-label":"Previous image",icon:x(D$,{className:"next-prev-button"}),variant:"unstyled",onClick:h})}),x("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&x(Ps,{"aria-label":"Next image",icon:x(z$,{className:"next-prev-button"}),variant:"unstyled",onClick:p})})]}),n&&re(Tn,{children:[x(D6e,{image:n.url,styleClass:"lightbox-image"}),r&&x(fH,{image:n})]})]}),x(jH,{})]})]})}const F6e=pt($n,e=>{const{boundingBoxDimensions:t}=e;return{boundingBoxDimensions:t}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),B6e=()=>{const e=Xe(),{boundingBoxDimensions:t}=Ee(F6e),n=a=>{e(cm({...t,width:Math.floor(a)}))},r=a=>{e(cm({...t,height:Math.floor(a)}))},i=()=>{e(cm({...t,width:Math.floor(512)}))},o=()=>{e(cm({...t,height:Math.floor(512)}))};return re("div",{className:"inpainting-bounding-box-settings",children:[x("div",{className:"inpainting-bounding-box-header",children:x("p",{children:"Canvas Bounding Box"})}),re("div",{className:"inpainting-bounding-box-settings-items",children:[x(Y0,{label:"Width",min:64,max:1024,step:64,value:t.width,onChange:n,handleReset:i,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,withReset:!0}),x(Y0,{label:"Height",min:64,max:1024,step:64,value:t.height,onChange:r,handleReset:o,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,withReset:!0})]})]})},$6e=pt($n,e=>{const{inpaintReplace:t,shouldUseInpaintReplace:n}=e;return{inpaintReplace:t,shouldUseInpaintReplace:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}});function H6e(){const{inpaintReplac
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Mp&&o!==void 0,l=a!==Mp&&a!==void 0,u=this.padding(),h=o-u*2,p=a-u*2,m=0,v=this.wrap(),S=v!==GM,w=v!==c9e&&S,E=this.ellipsis();this.textArr=[],Rw().font=this._getContextFont();for(var P=E?this._getTextWidth(Ow):0,k=0,T=t.length;k<T;++k){var M=t[k],R=this._getTextWidth(M);if(s&&R>h)for(;M.length>0;){for(var I=0,N=M.length,z="",$=0;I<N;){var H=I+N>>>1,q=M.slice(0,H+1),de=this._getTextWidth(q)+P;de<=h?(I=H+1,z=q,$=de):N=H}if(z){if(w){var V,J=M[z.length],ie=J===i3||J===VM;ie&&$<=h?V=z.length:V=Math.max(z.lastIndexOf(i3),z.lastIndexOf(VM))+1,V>0&&(I=V,z=z.slice(0,I),$=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,$),m+=i;var ee=this._shouldHandleEllipsis(m);if(ee){this._tryToAddEllipsisToLastLine();break}if(M=M.slice(I),M=M.trimLeft(),M.length>0&&(R=this._getTextWidth(M),R<=h)){this._addTextLine(M),m+=i,r=Math.max(r,R);break}}else break}else this._addTextLine(M),m+=i,r=Math.max(r,R),this._shouldHandleEllipsis(m)&&k<T-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>p)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!==Mp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==GM;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Mp&&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+Ow)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Ow)}}getStrokeScaleEnabled(){return!0}}hr.prototype._fillFunc=h9e;hr.prototype._strokeFunc=p9e;hr.prototype.className=i9e;hr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];pr(hr);K.overWriteSetter(hr,"width",lk());K.overWriteSetter(hr,"height",lk());K.addGetterSetter(hr,"fontFamily","Arial");K.addGetterSetter(hr,"fontSize",12,ze());K.addGetterSetter(hr,"fontStyle",MW);K.addGetterSetter(hr,"fontVariant",MW);K.addGetterSetter(hr,"padding",0,ze());K.addGetterSetter(hr,"align",LW);K.addGetterSetter(hr,"verticalAlign",o9e);K.addGetterSetter(hr,"lineHeight",1,ze());K.addGetterSetter(hr,"wrap",u9e);K.addGetterSetter(hr,"ellipsis",!1,As());K.addGetterSetter(hr,"letterSpacing",0,ze());K.addGetterSetter(hr,"text","",g1());K.addGetterSetter(hr,"textDecoration","");var m9e="",RW="normal";function IW(e){e.fillText(this.partialText,0,0)}function NW(e){e.strokeText(this.partialText,0,0)}class ti extends Me{constructor(t){super(t),this.dummyCanvas=fe.createCanvasElement(),this.dataArray=[],this.dataArray=In.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=In.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return fe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this
|
||
|
* @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 n7e=function(t){var n={},r=C.exports,i=e0.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),R=Symbol.iterator;function I(d){return d===null||typeof d!="object"?null:(d=R&&d[R]||d["@@iterator"],typeof d=="function"?d:null)}function N(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case h:return"Fragment";case u:return"Portal";case m:return"Profiler";case p:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case S:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case w:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:N(d.type)||"Memo";case T:f=d._payload,d=d._init;try{return N(d(f))}catch{}}return null}function z(d){var f=d.type;switch(d.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return N(f);case 8:return f===p?"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 $(d){var f=d,y=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(y=f.return),d=f.return;while(d)}return f.tag===3?y:null}function H(d){if($(d)!==d)throw Error(a(188))}function q(d){var f=d.alternate;if(!f){if(f=$(d),f===null)throw Error(a(188));return f!==d?null:d}for(var y=d,_=f;;){var A=y.return;if(A===null)break;var O=A.alternate;if(O===null){if(_=A.return,_!==null){y=_;continue}break}if(A.child===O.child){for(O=A.child;O;){if(O===y)return H(A),d;if(O===_)return H(A),f;O=O.sibling}throw Error(a(188))}if(y.return!==_.return)y=A,_=O;else{for(var W=!1,se=A.child;se;){if(se===y){W=!0,y=A,_=O;break}if(se===_){W=!0,_=A,y=O;break}se=se.sibling}if(!W){for(se=O.child;se;){if(se===y){W=!0,y=O,_=A;break}if(se===_){W=!0,_=O,y=A;break}se=se.sibling}if(!W)throw Error(a(189))}}if(y.alternate!==_)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:f}function de(d){return d=q(d),d!==null?V(d):null}function V(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=V(d);if(f!==null)return f;d=d.sibling}return null}function J(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=J(d);if(f!==null)return f}d=d.sibling}return null}var ie=Array.isArray,ee=t.getPublicInstance,X=t.getRootHostContext,G=t.getChildHostContext,Q=t.prepareForCommit,j=t.resetAfterCommit,Z=t.createInstance,me=t.appendInitialChild,Se=t.finalizeInitialChildren,xe=t.prepareUpdate,Be=t.shouldSetTextContent,We=t.createTextInstance,dt=t.scheduleTimeout,Ye=t.cancelTimeout,rt=t.noTimeout,Ze=t.isPrimaryRenderer,Ke=t.supportsMutation,Et=t.supportsPer
|
||
|
`+Dl+d}var Is=!1;function Fl(d,f){if(!d||Is)return"";Is=!0;var y=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(Ie){var _=Ie}Reflect.construct(d,[],f)}else{try{f.call()}catch(Ie){_=Ie}d.call(f.prototype)}else{try{throw Error()}catch(Ie){_=Ie}d()}}catch(Ie){if(Ie&&_&&typeof Ie.stack=="string"){for(var A=Ie.stack.split(`
|
||
|
`),O=_.stack.split(`
|
||
|
`),W=A.length-1,se=O.length-1;1<=W&&0<=se&&A[W]!==O[se];)se--;for(;1<=W&&0<=se;W--,se--)if(A[W]!==O[se]){if(W!==1||se!==1)do if(W--,se--,0>se||A[W]!==O[se]){var he=`
|
||
|
`+A[W].replace(" at new "," at ");return d.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",d.displayName)),he}while(1<=W&&0<=se);break}}}finally{Is=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?zl(d):""}var Ch=Object.prototype.hasOwnProperty,Du=[],Ns=-1;function No(d){return{current:d}}function kn(d){0>Ns||(d.current=Du[Ns],Du[Ns]=null,Ns--)}function vn(d,f){Ns++,Du[Ns]=d.current,d.current=f}var Do={},Cr=No(Do),Ur=No(!1),zo=Do;function Ds(d,f){var y=d.type.contextTypes;if(!y)return Do;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var A={},O;for(O in y)A[O]=f[O];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=A),A}function Gr(d){return d=d.childContextTypes,d!=null}function qa(){kn(Ur),kn(Cr)}function Pd(d,f,y){if(Cr.current!==Do)throw Error(a(168));vn(Cr,f),vn(Ur,y)}function Bl(d,f,y){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var A in _)if(!(A in f))throw Error(a(108,z(d)||"Unknown",A));return o({},y,_)}function Ka(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Do,zo=Cr.current,vn(Cr,d),vn(Ur,Ur.current),!0}function Td(d,f,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=Bl(d,f,zo),_.__reactInternalMemoizedMergedChildContext=d,kn(Ur),kn(Cr),vn(Cr,d)):kn(Ur),vn(Ur,y)}var gi=Math.clz32?Math.clz32:Ad,_h=Math.log,kh=Math.LN2;function Ad(d){return d>>>=0,d===0?32:31-(_h(d)/kh|0)|0}var zs=64,uo=4194304;function Fs(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function $l(d,f){var y=d.pendingLanes;if(y===0)return 0;var _=0,A=d.suspendedLanes,O=d.pingedLanes,W=y&268435455;if(W!==0){var se=W&~A;se!==0?_=Fs(se):(O&=W,O!==0&&(_=Fs(O)))}else W=y&~A,W!==0?_=Fs(W):O!==0&&(_=Fs(O));if(_===0)return 0;if(f!==0&&f!==_&&(f&A)===0&&(A=_&-_,O=f&-f,A>=O||A===16&&(O&4194240)!==0))return f;if((_&4)!==0&&(_|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)y=31-gi(f),A=1<<y,_|=d[y],f&=~A;return _}function R1(d,f){switch(d){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zu(d,f){for(var y=d.suspendedLanes,_=d.pingedLanes,A=d.expirationTimes,O=d.pendingLanes;0<O;){var W=31-gi(O),se=1<<W,he=A[W];he===-1?((se&y)===0||(se&_)!==0)&&(A[W]=R1(se,f)):he<=f&&(d.expiredLanes|=se),O&=~se}}function Fu(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Ld(){var d=zs;return zs<<=1,(zs&4194240)===0&&(zs=64),d}function Bu(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function ya(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-gi(f),d[f]=y}function Md(d,f){var y=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<y;){var A=31-gi(y),O=1<<A;f[A]=0,_[A]=-1,d[A]=-1,y&=~O}}function Hl(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var _=31-gi(y),A=1<<_;A&f|d[_]&f&&(d[_]|=f),y&=~A}}var Ht=0;function Eh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var $u=i.unstable_scheduleCallback,Hu
|
||
|
Error generating stack: `+O.message+`
|
||
|
`+O.stack}return{value:d,source:f,stack:A,digest:null}}function X1(d,f,y){return{value:d,source:null,stack:y??null,digest:f??null}}function ac(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var Xd=typeof WeakMap=="function"?WeakMap:Map;function Z1(d,f,y){y=Za(-1,y),y.tag=3,y.payload={element:null};var _=f.value;return y.callback=function(){ef||(ef=!0,tf=_),ac(d,f)},y}function F(d,f,y){y=Za(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var A=f.value;y.payload=function(){return _(A)},y.callback=function(){ac(d,f)}}var O=d.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(y.callback=function(){ac(d,f),typeof _!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var W=f.stack;this.componentDidCatch(f.value,{componentStack:W!==null?W:""})}),y}function jl(d,f,y){var _=d.pingCache;if(_===null){_=d.pingCache=new Xd;var A=new Set;_.set(f,A)}else A=_.get(f),A===void 0&&(A=new Set,_.set(f,A));A.has(y)||(A.add(y),d=V2.bind(null,d,f,y),f.then(d,d))}function Zd(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function ji(d,f,y,_,A){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(f=Za(-1,1),f.tag=2,Hs(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=A,d)}var Ut=s.ReactCurrentOwner,Di=!1;function Si(d,f,y,_){f.child=d===null?C2(f,null,y,_):Yu(f,d.child,y,_)}function M2(d,f,y,_,A){y=y.render;var O=f.ref;return Gu(f,A),_=V1(d,f,y,_,O,A),y=Xu(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~A,Ja(d,f,A)):(Dn&&y&&mi(f),f.flags|=1,Si(d,f,_,A),f.child)}function Vs(d,f,y,_,A){if(d===null){var O=y.type;return typeof O=="function"&&!yg(O)&&O.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=O,O2(d,f,O,_,A)):(d=af(y.type,null,_,f,f.mode,A),d.ref=f.ref,d.return=f,f.child=d)}if(O=d.child,(d.lanes&A)===0){var W=O.memoizedProps;if(y=y.compare,y=y!==null?y:Wl,y(W,_)&&d.ref===f.ref)return Ja(d,f,A)}return f.flags|=1,d=Ki(O,_),d.ref=f.ref,d.return=f,f.child=d}function O2(d,f,y,_,A){if(d!==null){var O=d.memoizedProps;if(Wl(O,_)&&d.ref===f.ref)if(Di=!1,f.pendingProps=_=O,(d.lanes&A)!==0)(d.flags&131072)!==0&&(Di=!0);else return f.lanes=d.lanes,Ja(d,f,A)}return Q1(d,f,y,_,A)}function R2(d,f,y){var _=f.pendingProps,A=_.children,O=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},vn(js,Yi),Yi|=y;else{if((y&1073741824)===0)return d=O!==null?O.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,vn(js,Yi),Yi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=O!==null?O.baseLanes:y,vn(js,Yi),Yi|=_}else O!==null?(_=O.baseLanes|y,f.memoizedState=null):_=y,vn(js,Yi),Yi|=_;return Si(d,f,A,y),f.child}function I2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function Q1(d,f,y,_,A){var O=Gr(y)?zo:Cr.current;return O=Ds(f,O),Gu(f,A),y=V1(d,f,y,_,O,A),_=Xu(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~A,Ja(d,f,A)):(Dn&&_&&mi(f),f.flags|=1,Si(d,f,y,A),f.child)}function N2(d,f,y,_,A){if(Gr(y)){var O=!0;Ka(f)}else O=!1;if(Gu(f,A),f.stateNode===null)Ca(d,f),b2(f,y,_),B1(f,y,_,A),_=!0;else if(d===null){var W=f.stateNode,se=f.memoizedProps;W.props=se;var he=W.context,Ie=y.contextType;typeof Ie=="object"&&Ie!==null?Ie=Gi(Ie):(Ie=Gr(y)?zo:Cr.current,Ie=Ds(f,Ie));var et=y.getDerivedStateFromProps,At=typeof et=="function"||typeof W.getSnapshotBeforeUpdate=="function";At||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(se!==_||he!==Ie)&&x2(f,W,_,Ie),Xa=!1;var je=f.memoizedState;W.state=je,Ih(f,_,W,A),he=f.memoizedState,se!==_||je!==he||Ur.current||Xa?(typeof et=="function"&&(Dh(f,y,et,_),he=f.memoizedState),(se=Xa||Hd(f,y,se,_,je,he,Ie))?(At||typeof W.UNSAFE_componentWillMount!="function"&
|
||
|
`+(_.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return ee(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:hp,findFiberByHostInstance:d.findFiberByHostInstance||xg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{sn=f.inject(d),Wt=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,_){if(!Pt)throw Error(a(363));d=ug(d,f);var A=jt(d,y,_).disconnect;return{disconnect:function(){A()}}},n.registerMutableSourceForHydration=function(d,f){var y=f._getVersion;y=y(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,y]:d.mutableSourceEagerHydrationData.push(f,y)},n.runWithPriority=function(d,f){var y=Ht;try{return Ht=d,f()}finally{Ht=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,y,_){var A=f.current,O=ai(),W=Tr(A);return y=Sg(y),f.context===null?f.context=y:f.pendingContext=y,f=Za(O,W),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=Hs(A,f,W),d!==null&&(vo(d,A,W,O),Rh(d,A,W)),W},n};(function(e){e.exports=n7e})(FW);const r7e=I9(FW.exports);var hk={exports:{}},Sh={};/**
|
||
|
* @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.
|
||
|
*/Sh.ConcurrentRoot=1;Sh.ContinuousEventPriority=4;Sh.DefaultEventPriority=16;Sh.DiscreteEventPriority=1;Sh.IdleEventPriority=536870912;Sh.LegacyRoot=0;(function(e){e.exports=Sh})(hk);const KM={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let XM=!1,ZM=!1;const pk=".react-konva-event",i7e=`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
|
||
|
`,o7e=`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
|
||
|
`,a7e={};function cb(e,t,n=a7e){if(!XM&&"zIndex"in t&&(console.warn(o7e),XM=!0),!ZM&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(i7e),ZM=!0)}for(var o in n)if(!KM[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 u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var h=t._useStrictMode,p={},m=!1;const v={};for(var o in t)if(!KM[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)),t[o]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||h&&t[o]!==e.getAttr(o))&&(m=!0,p[o]=t[o])}m&&(e.setAttrs(p),_d(e));for(var l in v)e.on(l+pk,v[l])}function _d(e){if(!ot.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const BW={},s7e={};nh.Node.prototype._applyProps=cb;function l7e(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),_d(e)}function u7e(e,t,n){let r=nh[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=nh.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 cb(l,o),l}function c7e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function d7e(e,t,n){return!1}function f7e(e){return e}function h7e(){return null}function p7e(){return null}function g7e(e,t,n,r){return s7e}function m7e(){}function v7e(e){}function y7e(e,t){return!1}function S7e(){return BW}function b7e(){return BW}const x7e=setTimeout,w7e=clearTimeout,C7e=-1;function _7e(e,t){return!1}const k7e=!1,E7e=!0,P7e=!0;function T7e(e,t){t.parent===e?t.moveToTop():e.add(t),_d(e)}function A7e(e,t){t.parent===e?t.moveToTop():e.add(t),_d(e)}function $W(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),_d(e)}function L7e(e,t,n){$W(e,t,n)}function M7e(e,t){t.destroy(),t.off(pk),_d(e)}function O7e(e,t){t.destroy(),t.off(pk),_d(e)}function R7e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function I7e(e,t,n){}function N7e(e,t,n,r,i){cb(e,i,r)}function D7e(e){e.hide(),_d(e)}function z7e(e){}function F7e(e,t){(t.visible==null||t.visible)&&e.show()}function B7e(e,t){}function $7e(e){}function H7e(){}const W7e=()=>hk.exports.DefaultEventPriority,V7e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:l7e,createInstance:u7e,createTextInstance:c7e,finalizeInitialChildren:d7e,getPublicInstance:f7e,prepareForCommit:h7e,preparePortalMount:p7e,prepareUpdate:g7e,resetAfterCommit:m7e,resetTextContent:v7e,shouldDeprioritizeSubtree:y7e,getRootHostContext:S7e,getChildHostContext:b7e,scheduleTimeout:x7e,cancelTimeout:w7e,noTimeout:C7e,shouldSetTextContent:_7e,isPrimaryRenderer:k7e,warnsIfNotActing:E7e,supportsMutation:P7e,appendChild:T7e,appendChildToContainer:A7e,insertBefore:$W,insertInContainerBefore:L7e,removeChild:M7e,removeChildFromContainer:O7e,commitTextUpdate:R7e,commitMount:I7e,commitUpdate:N7e,hideInstance:D7e,hideTextInstance:z7e,unhideInstance:F7e,unhideTextInstance:B7e,clearContainer:$7e,detachDeletedInstance:H7e,getCurrentEventPriority:W7e,now:e0.exports.unstable_now,idlePriority:e0.exports.unstable_IdlePriority,run:e0.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var U7e=Object.defineProperty,G7e=Object.defineProperties,j7e=Object.getOwnPropertyDescriptors,QM=Object.getOwnPropertySymbols,Y7e=Object.prototype.hasOwnProperty,q7e=Object.prototype.propertyIsEnumerable,JM=(e,t,n)=>t in e?U7e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eO=(e,t)=>{for(var n in t||(t={}))Y7e.call(t,n)&&JM(e,n,t[n]);if(QM)
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
|
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,0)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
</svg>`.replaceAll("black",e),m8e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=Ee(g8e),[a,s]=C.exports.useState(null),[l,u]=C.exports.useState(0),h=C.exports.useRef(null),p=C.exports.useCallback(()=>{u(l+1),setTimeout(p,500)},[l]);return C.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=nO(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=nO(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),!a||!Zr.exports.isNumber(r.x)||!Zr.exports.isNumber(r.y)||!Zr.exports.isNumber(o)||!Zr.exports.isNumber(i.width)||!Zr.exports.isNumber(i.height)?null:x(P0,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Zr.exports.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},v8e=pt([$n],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),y8e=e=>{const t=Xe(),{isMoveStageKeyHeld:n,stageScale:r}=Ee(v8e);return C.exports.useCallback(i=>{if(!e.current||n)return;i.evt.preventDefault();const o=e.current.getPointerPosition();if(!o)return;const a={x:(o.x-e.current.x())/r,y:(o.y-e.current.y())/r};let s=i.evt.deltaY;i.evt.ctrlKey&&(s=-s);const l=st.clamp(r*N4e**s,D4e,z4e),u={x:o.x-a.x*l,y:o.y-a.y*l};t(dSe(l)),t(oH(u))},[e,n,r,t])},db=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:Math.floor(r.x),y:Math.floor(r.y)}},S8e=pt([Ir,$n,Pu],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),b8e=e=>{const t=Xe(),{tool:n,isStaging:r}=Ee(S8e);return C.exports.useCallback(i=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(a4(!0));return}const o=db(e.current);!o||(i.evt.preventDefault(),t(ZS(!0)),t(J$([o.x,o.y])))},[e,n,r,t])},x8e=pt([Ir,$n,Pu],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),w8e=(e,t)=>{const n=Xe(),{tool:r,isDrawing:i,isStaging:o}=Ee(x8e);return C.exports.useCallback(()=>{if(r==="move"||o){n(a4(!1));return}if(!t.current&&i&&e.current){const a=db(e.current);if(!a)return;n(eH([a.x,a.y]))}else t.current=!1;n(ZS(!1))},[t,n,i,o,e,r])},C8e=pt([Ir,$n,Pu],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),_8e=(e,t,n)=>{const r=Xe(),{isDrawing:i,tool:o,isStaging:a}=Ee(C8e);return C.exports.useCallback(()=>{if(!e.current)return;const s=db(e.current);!s||(r(iH(s)),n.current=s,!(!i||o==="move"||a)&&(t.current=!0,r(eH([s.x,s.y]))))},[t,r,i,a,n,e,o])},k8e=pt([Ir,$n,Pu],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),E8e=e=>{const t=Xe(),{tool:n,isStaging:r}=Ee(k8e);return C.exports.useCallback(i=>{if(i.evt.buttons!==1||!e.current)return;const o=db(e.current);!o||n==="move"||r||(t(ZS(!0)),t(J$([o.x,o.y])))},[e,n,r,t])},P8e=()=>{const e=Xe();return C.exports.useCallback(()=>{e(iH(null)),e(ZS(!1))},[e])},T8e=pt([$n,Pu],(e,t)=>{const{tool:n}=e;return{tool:n,isStaging:t}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),A8e=()=>{const e=Xe(),{tool:t,isStaging:n}=Ee(T8e);return{handleDragStart:C.exports.useCallback(()=>{!(t==="move"||n)||e(a4(!0))},[e,n,t]),handleDragMove:C.exports.useCallback(r=>{if(!(t==="move"||n))return;const i={x:r.target.x(),y:r.target.y()};e(oH(i))},[e,n,t]),handleDragEnd:C.exports.useCallback(()=>{!(t==="move"||n)||e(a4(!1))},[e,n,t])}};var gf=C.exports,L8e=function(t,n,r){const i=gf.useRef("loading"),o=gf.useRef(),[a,s]=gf.useState(0),l=gf.useRef(),u=gf.useRef(),h=gf.useRef();return(l.current!==t||u.current!==n||h.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,h.current=r),gf.useLayoutEffect(function(){if(!t)return;var p=document.cre
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HEe(e){if(Array.isArray(e))return L9(e)}function wO(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 CO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(n),!0).forEach(function(r){RV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RV(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 UEe(e)||VEe(e,t)||IV(e,t)||WEe()}function WEe(){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 IV(e,t){if(!!e){if(typeof e=="string")return L9(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 L9(e,t)}}function L9(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 VEe(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 UEe(e){if(Array.isArray(e))return e}var GEe="file-invalid-type",jEe="file-too-large",YEe="file-too-small",qEe="too-many-files",KEe=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:GEe,message:"File type must be ".concat(n)}},_O=function(t){return{code:jEe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},kO=function(t){return{code:YEe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},XEe={code:qEe,message:"Too many files"};function NV(e,t){var n=e.type==="application/x-moz-file"||FEe(e,t);return[n,n?null:KEe(t)]}function DV(e,t,n){if(Ef(e.size))if(Ef(t)&&Ef(n)){if(e.size>n)return[!1,_O(n)];if(e.size<t)return[!1,kO(t)]}else{if(Ef(t)&&e.size<t)return[!1,kO(t)];if(Ef(n)&&e.size>n)return[!1,_O(n)]}return[!0,null]}function Ef(e){return e!=null}function ZEe(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 u=NV(l,n),h=Dv(u,1),p=h[0],m=DV(l,r,i),v=Dv(m,1),S=v[0],w=s?s(l):null;return p&&S&&!w})}function y4(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function h3(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 EO(e){e.preventDefault()}function QEe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function JEe(e){return e.indexOf("Edge/")!==-1}function ePe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return QEe(e)||JEe(e)}function al(){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!y4(r)&&s&&s.apply(void 0,[r].concat(o)),y4(r)})}}function tPe(){return"showOpenFilePicker"in window}function nPe(e){if(Ef(e)){var t=Object.entries(e).filter(function(n){var r=Dv(n,2),i=r[0],o=r[1],a=!0;return zV(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(FV))&&(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 CO(CO({},n),{},RV({},o,a))},{});return[{description:"Files",accept:t}]}return e}function rPe(e){if(Ef(e))return Object.entries(e).reduce(function(t,n){var r=Dv(n,2),i=r[0],o=r[1];return[].concat(xO(t),[i],xO(o))},[]).filter(function(t){return zV(t)||FV(t)}).join(",")}function iPe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function oPe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function zV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function FV(e){return/^.*\.[\w]+$/.test(e)}var aPe=["children"],sPe=["open"],lPe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hPe(e){if(Array.isArray(e))return M9(e)}function Dw(e,t){return mPe(e)||gPe(e,t)||BV(e,t)||pPe()}function pPe(){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 BV(e,t){if(!!e){if(typeof e=="string")return M9(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 M9(e,t)}}function M9(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 gPe(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 mPe(e){if(Array.isArray(e))return e}function PO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(n),!0).forEach(function(r){O9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S4(e,t){if(e==null)return{};var n=vPe(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 vPe(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 wk=C.exports.forwardRef(function(e,t){var n=e.children,r=S4(e,aPe),i=HV(r),o=i.open,a=S4(i,sPe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),x(C.exports.Fragment,{children:n(lr(lr({},a),{},{open:o}))})});wk.displayName="Dropzone";var $V={disabled:!1,getFilesFromEvent:AEe,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};wk.defaultProps=$V;wk.propTypes={children:Rn.exports.func,accept:Rn.exports.objectOf(Rn.exports.arrayOf(Rn.exports.string)),multiple:Rn.exports.bool,preventDropOnDocument:Rn.exports.bool,noClick:Rn.exports.bool,noKeyboard:Rn.exports.bool,noDrag:Rn.exports.bool,noDragEventsBubbling:Rn.exports.bool,minSize:Rn.exports.number,maxSize:Rn.exports.number,maxFiles:Rn.exports.number,disabled:Rn.exports.bool,getFilesFromEvent:Rn.exports.func,onFileDialogCancel:Rn.exports.func,onFileDialogOpen:Rn.exports.func,useFsAccessApi:Rn.exports.bool,autoFocus:Rn.exports.bool,onDragEnter:Rn.exports.func,onDragLeave:Rn.exports.func,onDragOver:Rn.exports.func,onDrop:Rn.exports.func,onDropAccepted:Rn.exports.func,onDropRejected:Rn.exports.func,onError:Rn.exports.func,validator:Rn.exports.func};var R9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function HV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=lr(lr({},$V),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,p=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,S=t.onDropRejected,w=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,T=t.preventDropOnDocument,M=t.noClick,R=t.noKeyboard,I=t.noDrag,N=t.noDragEventsBubbling,z=t.onError,$=t.validator,H=C.exports.useMemo(function(){return rPe(n)},[n]),q=C.exports.useMemo(function(){return nPe(n)},[n]),de=C.exports.useMemo(function(){return typeof E=="function"?E:TO},[E]),V=C.exports.useMemo(function(){return typeof w=="function"?w:TO},[w]),J=C.exports.useRef(null),ie=C.exports.useRef(null),ee=C.expo
|
||
|
`+R.message,"");i({title:"Upload failed",description:T,status:"error",isClosable:!0})},[i]),u=C.exports.useCallback(async k=>{n(AO({imageFile:k}))},[n]),h=C.exports.useCallback((k,T)=>{T.forEach(M=>{l(M)}),k.forEach(M=>{u(M)})},[u,l]),{getRootProps:p,getInputProps:m,isDragAccept:v,isDragReject:S,isDragActive:w,open:E}=HV({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>a(!0),maxFiles:1});s(E),C.exports.useEffect(()=>{const k=T=>{const M=T.clipboardData?.items;if(!M)return;const R=[];for(const N of M)N.kind==="file"&&["image/png","image/jpg"].includes(N.type)&&R.push(N);if(!R.length)return;if(T.stopImmediatePropagation(),R.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const I=R[0].getAsFile();if(!I){i({description:"Unable to load file",status:"error",isClosable:!0});return}n(AO({imageFile:I}))};return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[n,i,r]);const P=["img2img","unifiedCanvas"].includes(r)?` to ${kf[r].tooltip}`:"";return x(X_.Provider,{value:E,children:re("div",{...p({style:{}}),onKeyDown:k=>{k.key},children:[x("input",{...m()}),t,w&&o&&x(SPe,{isDragAccept:v,isDragReject:S,overlaySecondaryText:P,setIsHandlingUpload:a})]})})},xPe=()=>{const e=Xe(),t=Ee(r=>r.gallery.shouldPinGallery);return x(gt,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:()=>{e(_0(!0)),t&&e(io(!0))},children:x(N$,{})})};function wPe(e){return ht({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 CPe=pt(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldPinOptionsPanel:t,shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),_Pe=()=>{const e=Xe(),{shouldShowProcessButtons:t,shouldPinOptionsPanel:n}=Ee(CPe);return re("div",{className:"show-hide-button-options",children:[x(gt,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:()=>{e(T0(!0)),n&&setTimeout(()=>e(io(!0)),400)},children:x(wPe,{})}),t&&re(Tn,{children:[x(U$,{iconButton:!0}),x(j$,{}),x(G$,{})]})]})},kPe=()=>{const e=Xe(),t=Ee(x_e),n=u1();C.exports.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(T5e())},[e,n,t])};kEe();const EPe=pt([e=>e.gallery,e=>e.options,e=>e.system,Ir],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:u}=t,h=st.reduce(n.model_list,(v,S,w)=>(S.status==="active"&&(v=w),v),""),p=!(i||o&&!a)&&["txt2img","img2img","unifiedCanvas"].includes(r),m=!(s||l&&!u)&&["txt2img","img2img","unifiedCanvas"].includes(r);return{modelStatusText:h,shouldShowGalleryButton:p,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:st.isEqual}}),PPe=()=>{const{shouldShowGalleryButton:e,shouldShowOptionsPanelButton:t}=Ee(EPe);return kPe(),x("div",{className:"App",children:re(bPe,{children:[x(sEe,{}),re("div",{className:"app-content",children:[x(xEe,{}),x(L_e,{})]}),x("div",{className:"app-console",children:x(_Ee,{})}),e&&x(xPe,{}),t&&x(_Pe,{})]})})};const WV=N2e(AV),TPe=nN({key:"invokeai-style-cache",prepend:!0});Fw.createRoot(document.getElementById("root")).render(x(le.StrictMode,{children:x(d2e,{store:AV,children:x(LV,{loading:x(oEe,
|