mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
626 lines
1.4 MiB
JavaScript
626 lines
1.4 MiB
JavaScript
|
var bZ=Object.defineProperty;var SZ=(e,t,n)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var on=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n);function jRe(){import("data:text/javascript,")}function KI(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 fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k={exports:{}},Jt={};/**
|
||
|
* @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 C2=Symbol.for("react.element"),xZ=Symbol.for("react.portal"),wZ=Symbol.for("react.fragment"),CZ=Symbol.for("react.strict_mode"),_Z=Symbol.for("react.profiler"),kZ=Symbol.for("react.provider"),EZ=Symbol.for("react.context"),PZ=Symbol.for("react.forward_ref"),TZ=Symbol.for("react.suspense"),LZ=Symbol.for("react.memo"),AZ=Symbol.for("react.lazy"),DP=Symbol.iterator;function OZ(e){return e===null||typeof e!="object"?null:(e=DP&&e[DP]||e["@@iterator"],typeof e=="function"?e:null)}var XI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ZI=Object.assign,QI={};function R1(e,t,n){this.props=e,this.context=t,this.refs=QI,this.updater=n||XI}R1.prototype.isReactComponent={};R1.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")};R1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JI(){}JI.prototype=R1.prototype;function K9(e,t,n){this.props=e,this.context=t,this.refs=QI,this.updater=n||XI}var X9=K9.prototype=new JI;X9.constructor=K9;ZI(X9,R1.prototype);X9.isPureReactComponent=!0;var NP=Array.isArray,eD=Object.prototype.hasOwnProperty,Z9={current:null},tD={key:!0,ref:!0,__self:!0,__source:!0};function nD(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)eD.call(t,r)&&!tD.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:C2,type:e,key:o,ref:a,props:i,_owner:Z9.current}}function RZ(e,t){return{$$typeof:C2,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Q9(e){return typeof e=="object"&&e!==null&&e.$$typeof===C2}function MZ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var BP=/\/+/g;function Ux(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MZ(""+e.key):t.toString(36)}function r4(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 C2:case xZ:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Ux(a,0):r,NP(i)?(n="",e!=null&&(n=e.replace(BP,"$&/")+"/"),r4(i,t,n,"",function(u){return u})):i!=null&&(Q9(i)&&(i=RZ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(BP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",NP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Ux(o,s);a+=r4(o,t,n,l,i)}else if(l=OZ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Ux(o,s++),a+=r4(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 Vy(e,t,n){if(e==null)return e;var r=[],i=0;return r4(e,r,"","",function(o){return t.call(n,o,i++)}),r}function IZ(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 vo={current:null},i4={transition:null},DZ={ReactCurrentDispatcher:vo,ReactCurrentBatchConfig:i4,ReactCurrentOwner:Z9};Jt.Children={map:Vy,forEach:function(e,t,n){Vy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vy(e,function(){t++}),t},toArray:function(e){return Vy(e,function(t){return t})||[]},only:function(e){if(!Q9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Jt.Component=R1;Jt.Fragment=wZ;Jt.Profiler=_Z;Jt
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t(U,Q){var ue=U.length;U.push(Q);e:for(;0<ue;){var fe=ue-1>>>1,Te=U[fe];if(0<i(Te,Q))U[fe]=Q,U[ue]=Te,ue=fe;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Q=U[0],ue=U.pop();if(ue!==Q){U[0]=ue;e:for(var fe=0,Te=U.length,Oe=Te>>>1;fe<Oe;){var ve=2*(fe+1)-1,Ce=U[ve],Re=ve+1,Ye=U[Re];if(0>i(Ce,ue))Re<Te&&0>i(Ye,Ce)?(U[fe]=Ye,U[Re]=ue,fe=Re):(U[fe]=Ce,U[ve]=ue,fe=ve);else if(Re<Te&&0>i(Ye,ue))U[fe]=Ye,U[Re]=ue,fe=Re;else break e}}return Q}function i(U,Q){var ue=U.sortIndex-Q.sortIndex;return ue!==0?ue:U.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=[],f=1,p=null,m=3,v=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,C=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(U){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=U)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function A(U){if(x=!1,T(U),!y)if(n(l)!==null)y=!0,K(M);else{var Q=n(u);Q!==null&&Z(A,Q.startTime-U)}}function M(U,Q){y=!1,x&&(x=!1,_(B),B=-1),v=!0;var ue=m;try{for(T(Q),p=n(l);p!==null&&(!(p.expirationTime>Q)||U&&!Y());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,m=p.priorityLevel;var Te=fe(p.expirationTime<=Q);Q=e.unstable_now(),typeof Te=="function"?p.callback=Te:p===n(l)&&r(l),T(Q)}else r(l);p=n(l)}if(p!==null)var Oe=!0;else{var ve=n(u);ve!==null&&Z(A,ve.startTime-Q),Oe=!1}return Oe}finally{p=null,m=ue,v=!1}}var I=!1,D=null,B=-1,F=5,H=-1;function Y(){return!(e.unstable_now()-H<F)}function te(){if(D!==null){var U=e.unstable_now();H=U;var Q=!0;try{Q=D(!0,U)}finally{Q?G():(I=!1,D=null)}}else I=!1}var G;if(typeof C=="function")G=function(){C(te)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,W=z.port2;z.port1.onmessage=te,G=function(){W.postMessage(null)}}else G=function(){E(te,0)};function K(U){D=U,I||(I=!0,G())}function Z(U,Q){B=E(function(){U(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(U){U.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,K(M))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var Q=3;break;default:Q=m}var ue=m;m=Q;try{return U()}finally{m=ue}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ue=m;m=U;try{return Q()}finally{m=ue}},e.unstable_scheduleCallback=function(U,Q,ue){var fe=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?fe+ue:fe):ue=fe,U){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ue+Te,U={id:f++,callback:Q,priorityLevel:U,startTime:ue,expirationTime:Te,sortIndex:-1},ue>fe?(U.sortIndex=ue,t(u,U),n(l)===null&&U===n(u)&&(x?(_(B),B=-1):x=!0,Z(A,ue-fe))):(U.sortIndex=Te,t(l,U),y||v||(y=!0,K(M))),U},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(U){var Q=m;return function(){var ue=m;m=Q;try{return U.apply(this,arguments)}finally{m=ue}}}})(rD);(function(e){e.exports=rD})(N0);/**
|
||
|
* @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 iD=k.exports,Sa=N0.exports;function Ne(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 oD=new Set,Lv={};function Nh(e,t){c1(e,t),c1(e+"Capture",t)}function c1(e,t){for(Lv[e]=t,e=0;e<t.length;e++)oD.add(t[e])}var zu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G6=Object.prototype.hasOwnProperty,NZ=/^[: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]*$/,zP={},$P={};function BZ(e){return G6.call($P,e)?!0:G6.call(zP,e)?!1:NZ.test(e)?$P[e]=!0:(zP[e]=!0,!1)}function zZ(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 $Z(e,t,n,r){if(t===null||typeof t>"u"||zZ(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 yo(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 Bi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bi[e]=new yo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bi[t]=new yo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bi[e]=new yo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bi[e]=new yo(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){Bi[e]=new yo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bi[e]=new yo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bi[e]=new yo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bi[e]=new yo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bi[e]=new yo(e,5,!1,e.toLowerCase(),null,!1,!1)});var J9=/[\-:]([a-z])/g;function e8(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
|
||
|
`+jx+e}var Gx=!1;function qx(e,t){if(!e||Gx)return"";Gx=!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{Gx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Im(e):""}function FZ(e){switch(e.tag){case 5:return Im(e.type);case 16:return Im("Lazy");case 13:return Im("Suspense");case 19:return Im("SuspenseList");case 0:case 2:case 15:return e=qx(e.type,!1),e;case 11:return e=qx(e.type.render,!1),e;case 1:return e=qx(e.type,!0),e;default:return""}}function X6(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 m0:return"Fragment";case g0:return"Portal";case q6:return"Profiler";case n8:return"StrictMode";case Y6:return"Suspense";case K6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sD:return(e.displayName||"Context")+".Consumer";case aD:return(e._context.displayName||"Context")+".Provider";case r8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case i8:return t=e.displayName||null,t!==null?t:X6(e.type)||"Memo";case ed:t=e._payload,e=e._init;try{return X6(e(t))}catch(n){}}return null}function HZ(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 X6(t);case 8:return t===n8?"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 Ld(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VZ(e){var t=uD(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 Uy(e){e._valueTracker||(e._valueTracker=VZ(e))}function cD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function G4(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z6(e,t){var n=t.checked;return vr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function HP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ld(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 dD(e,t){t=t.checked,t!=null&&t8(e,"checked",t,!1)}function Q6(e,t){dD(e,t);var n=Ld(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")?J6(e,t.type,n):t.hasOwnProperty("defaultValue")&&J6(e,t.type,Ld(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VP(e,t,n){if(t.hasOwn
|
||
|
`).replace(QQ,"")}function Qy(e,t,n){if(t=dT(t),dT(e)!==t&&n)throw Error(Ne(425))}function e5(){}var hC=null,pC=null;function gC(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 mC=typeof setTimeout=="function"?setTimeout:void 0,JQ=typeof clearTimeout=="function"?clearTimeout:void 0,fT=typeof Promise=="function"?Promise:void 0,eJ=typeof queueMicrotask=="function"?queueMicrotask:typeof fT<"u"?function(e){return fT.resolve(null).then(e).catch(tJ)}:mC;function tJ(e){setTimeout(function(){throw e})}function aw(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),Iv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Iv(t)}function bd(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 hT(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 I1=Math.random().toString(36).slice(2),Pl="__reactFiber$"+I1,$v="__reactProps$"+I1,$u="__reactContainer$"+I1,vC="__reactEvents$"+I1,nJ="__reactListeners$"+I1,rJ="__reactHandles$"+I1;function ih(e){var t=e[Pl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$u]||n[Pl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hT(e);e!==null;){if(n=e[Pl])return n;e=hT(e)}return t}e=n,n=e.parentNode}return null}function E2(e){return e=e[Pl]||e[$u],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function S0(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ne(33))}function xb(e){return e[$v]||null}var yC=[],x0=-1;function $d(e){return{current:e}}function tr(e){0>x0||(e.current=yC[x0],yC[x0]=null,x0--)}function Zn(e,t){x0++,yC[x0]=e.current,e.current=t}var Ad={},Xi=$d(Ad),Fo=$d(!1),Eh=Ad;function d1(e,t){var n=e.type.contextTypes;if(!n)return Ad;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 Ho(e){return e=e.childContextTypes,e!=null}function t5(){tr(Fo),tr(Xi)}function pT(e,t,n){if(Xi.current!==Ad)throw Error(Ne(168));Zn(Xi,t),Zn(Fo,n)}function JD(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(Ne(108,HZ(e)||"Unknown",i));return vr({},n,r)}function n5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ad,Eh=Xi.current,Zn(Xi,e),Zn(Fo,Fo.current),!0}function gT(e,t,n){var r=e.stateNode;if(!r)throw Error(Ne(169));n?(e=JD(e,t,Eh),r.__reactInternalMemoizedMergedChildContext=e,tr(Fo),tr(Xi),Zn(Xi,e)):tr(Fo),Zn(Fo,n)}var Tu=null,wb=!1,sw=!1;function eN(e){Tu===null?Tu=[e]:Tu.push(e)}function iJ(e){wb=!0,eN(e)}function Fd(){if(!sw&&Tu!==null){sw=!0;var e=0,t=Mn;try{var n=Tu;for(Mn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tu=null,wb=!1}catch(i){throw Tu!==null&&(Tu=Tu.slice(e+1)),kD(a8,Fd),i}finally{Mn=t,sw=!1}}return null}var w0=[],C0=0,r5=null,i5=0,$a=[],Fa=0,Ph=null,Au=1,Ou="";function Yf(e,t){w0[C0++]=i5,w0[C0++]=r5,r5=e,i5=t}function tN(e,t,n){$a[Fa++]=Au,$a[Fa++]=Ou,$a[Fa++]=Ph,Ph=e;var r=Au;e=Ou;var i=32-Os(r)-1;r&=~(1<<i),n+=1;var o=32-Os(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Au=1<<32-Os(t)+i|n<<i|r,Ou=o+e}else Au=1<<o|n<<i|r,Ou=e}function g8(e){e.return!==null&&(Yf(e,1),tN(e,1,0))}function m8(e){for(;e===r5;)r5=w0[--C0],w0[C0]=null,i5=w0[--C0],w0[C0]=null;for(;e===Ph;)Ph=$a[--Fa],$a[Fa]=null,Ou=$a[--Fa],$a[Fa]=null,Au=$a[--Fa],$a[Fa]=null}var ma=null,ga=null,ar=!1,Ts=null;function nN(e,t){var n=Ua(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 fw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function _C(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hJ=typeof WeakMap=="function"?WeakMap:Map;function AN(e,t,n){n=Mu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){f5||(f5=!0,IC=r),_C(e,t)},n}function ON(e,t,n){n=Mu(-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(){_C(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){_C(e,t),typeof r!="function"&&(xd===null?xd=new Set([this]):xd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function kT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hJ;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=PJ.bind(null,e,t,n),t.then(e,e))}function ET(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 PT(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=Mu(-1,1),t.tag=2,Sd(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var pJ=Zu.ReactCurrentOwner,zo=!1;function uo(e,t,n,r){t.child=e===null?uN(t,null,n,r):h1(t,e.child,n,r)}function TT(e,t,n,r,i){n=n.render;var o=t.ref;return H0(t,i),r=P8(e,t,n,r,o,i),n=T8(),e!==null&&!zo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hu(e,t,i)):(ar&&n&&g8(t),t.flags|=1,uo(e,t,r,i),t.child)}function LT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!z8(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,RN(e,t,o,r,i)):(e=p4(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:Nv,n(a,r)&&e.ref===t.ref)return Hu(e,t,i)}return t.flags|=1,e=Cd(o,r),e.ref=t.ref,e.return=t,t.child=e}function RN(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Nv(o,r)&&e.ref===t.ref)if(zo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(zo=!0);else return t.lanes=e.lanes,Hu(e,t,i)}return kC(e,t,n,r,i)}function MN(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zn(E0,ha),ha|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Zn(E0,ha),ha|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Zn(E0,ha),ha|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Zn(E0,ha),ha|=r;return uo(e,t,i,n),t.child}function IN(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kC(e,t,n,r,i){var o=Ho(n)?Eh:Xi.current;return o=d1(t,o),H0(t,i),n=P8(e,t,n,r,o,i),r=T8(),e!==null&&!zo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hu(e,t,i)):(ar&&r&&g8(t),t.flags|=1,uo(e,t,n,i),t.child)}function AT(e,t,n,r,i){if(Ho(n)){var o=!0;n5(t)}else o=!1;if(H0(t,i),t.stateNode===null)d4(e,t),sN(t,n,r),CC(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=Ka(u):(u=Ho(n)?Eh:Xi.current,u=d1(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&xT(t,a,r,u),td=!1;var m=t.memoizedState;a.state=m,s5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Fo.current||td?(typeof f=="function"&&(wC(t,n,f,r),l=t.memoizedState),(s=td||ST(t,n,s,r,m,l,u))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componen
|
||
|
* @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 zJ=k.exports,$J=Symbol.for("react.element"),FJ=Symbol.for("react.fragment"),HJ=Object.prototype.hasOwnProperty,VJ=zJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,WJ={key:!0,ref:!0,__self:!0,__source:!0};function rB(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)HJ.call(t,r)&&!WJ.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:$J,type:e,key:o,ref:a,props:i,_owner:VJ.current}}Mb.Fragment=FJ;Mb.jsx=rB;Mb.jsxs=rB;(function(e){e.exports=Mb})(Rb);const In=Rb.exports.Fragment,b=Rb.exports.jsx,ee=Rb.exports.jsxs;var W8=k.exports.createContext({});W8.displayName="ColorModeContext";function T2(){const e=k.exports.useContext(W8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var a3={light:"chakra-ui-light",dark:"chakra-ui-dark"};function UJ(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==null||i()},setClassName(r){document.body.classList.add(r?a3.dark:a3.light),document.body.classList.remove(r?a3.light:a3.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o: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 jJ="chakra-ui-color-mode";function GJ(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set(t){try{localStorage.setItem(e,t)}catch(n){}}}}var qJ=GJ(jJ),UT=()=>{};function jT(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function iB(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=qJ}=e,s=i==="dark"?"dark":"light",[l,u]=k.exports.useState(()=>jT(a,s)),[f,p]=k.exports.useState(()=>jT(a)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:x}=k.exports.useMemo(()=>UJ({preventTransition:o}),[o]),E=i==="system"&&!l?f:l,_=k.exports.useCallback(A=>{const M=A==="system"?m():A;u(M),v(M==="dark"),y(M),a.set(M)},[a,m,v,y]);Ms(()=>{i==="system"&&p(m())},[]),k.exports.useEffect(()=>{const A=a.get();if(A){_(A);return}if(i==="system"){_("system");return}_(s)},[a,s,i,_]);const C=k.exports.useCallback(()=>{_(E==="dark"?"light":"dark")},[E,_]);k.exports.useEffect(()=>{if(!!r)return x(_)},[r,x,_]);const T=k.exports.useMemo(()=>({colorMode:t!=null?t:E,toggleColorMode:t?UT:C,setColorMode:t?UT:_,forced:t!==void 0}),[E,C,_,t]);return b(W8.Provider,{value:T,children:n})}iB.displayName="ColorModeProvider";var zC={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]",f="[object Boolean]",p="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",x="[object Map]",E="[object Number]",_="[object Null]",C="[object Object]",T="[object Proxy]",A="[object RegExp]",M="[object Set]",I="[object String]",D="[object Undefined]",B="[object WeakMap]",F="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",te="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",W="[object Int32Array]",K="[object Uint8Array]",Z="
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var wi=typeof Symbol=="function"&&Symbol.for,K8=wi?Symbol.for("react.element"):60103,X8=wi?Symbol.for("react.portal"):60106,$b=wi?Symbol.for("react.fragment"):60107,Fb=wi?Symbol.for("react.strict_mode"):60108,Hb=wi?Symbol.for("react.profiler"):60114,Vb=wi?Symbol.for("react.provider"):60109,Wb=wi?Symbol.for("react.context"):60110,Z8=wi?Symbol.for("react.async_mode"):60111,Ub=wi?Symbol.for("react.concurrent_mode"):60111,jb=wi?Symbol.for("react.forward_ref"):60112,Gb=wi?Symbol.for("react.suspense"):60113,zte=wi?Symbol.for("react.suspense_list"):60120,qb=wi?Symbol.for("react.memo"):60115,Yb=wi?Symbol.for("react.lazy"):60116,$te=wi?Symbol.for("react.block"):60121,Fte=wi?Symbol.for("react.fundamental"):60117,Hte=wi?Symbol.for("react.responder"):60118,Vte=wi?Symbol.for("react.scope"):60119;function ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case K8:switch(e=e.type,e){case Z8:case Ub:case $b:case Hb:case Fb:case Gb:return e;default:switch(e=e&&e.$$typeof,e){case Wb:case jb:case Yb:case qb:case Vb:return e;default:return t}}case X8:return t}}}function _B(e){return ka(e)===Ub}Nn.AsyncMode=Z8;Nn.ConcurrentMode=Ub;Nn.ContextConsumer=Wb;Nn.ContextProvider=Vb;Nn.Element=K8;Nn.ForwardRef=jb;Nn.Fragment=$b;Nn.Lazy=Yb;Nn.Memo=qb;Nn.Portal=X8;Nn.Profiler=Hb;Nn.StrictMode=Fb;Nn.Suspense=Gb;Nn.isAsyncMode=function(e){return _B(e)||ka(e)===Z8};Nn.isConcurrentMode=_B;Nn.isContextConsumer=function(e){return ka(e)===Wb};Nn.isContextProvider=function(e){return ka(e)===Vb};Nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===K8};Nn.isForwardRef=function(e){return ka(e)===jb};Nn.isFragment=function(e){return ka(e)===$b};Nn.isLazy=function(e){return ka(e)===Yb};Nn.isMemo=function(e){return ka(e)===qb};Nn.isPortal=function(e){return ka(e)===X8};Nn.isProfiler=function(e){return ka(e)===Hb};Nn.isStrictMode=function(e){return ka(e)===Fb};Nn.isSuspense=function(e){return ka(e)===Gb};Nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$b||e===Ub||e===Hb||e===Fb||e===Gb||e===zte||typeof e=="object"&&e!==null&&(e.$$typeof===Yb||e.$$typeof===qb||e.$$typeof===Vb||e.$$typeof===Wb||e.$$typeof===jb||e.$$typeof===Fte||e.$$typeof===Hte||e.$$typeof===Vte||e.$$typeof===$te)};Nn.typeOf=ka;(function(e){e.exports=Nn})(CB);var kB=CB.exports,Wte={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ute={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},EB={};EB[kB.ForwardRef]=Wte;EB[kB.Memo]=Ute;var jte=!0;function Gte(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var PB=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||jte===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},TB=function(t,n,r){PB(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 qte(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 Yte={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,stroke
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function bre(e){const t=HB().toHexString();return!e||mre(e)?t:e.string&&e.colors?xre(e.string,e.colors):e.string&&!e.colors?Sre(e.string):e.colors&&!e.string?wre(e.colors):t}function Sre(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 xre(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 wre(e){return e[Math.floor(Math.random()*e.length)]}function xt(e,t){return n=>n.colorMode==="dark"?t:e}function e_(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Cre(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function jB(e){return Cre(e)&&e.reference?e.reference:String(e)}var Zb=(e,...t)=>t.map(jB).join(` ${e} `).replace(/calc/g,""),mL=(...e)=>`calc(${Zb("+",...e)})`,vL=(...e)=>`calc(${Zb("-",...e)})`,ZC=(...e)=>`calc(${Zb("*",...e)})`,yL=(...e)=>`calc(${Zb("/",...e)})`,bL=e=>{const t=jB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ZC(t,-1)},Lu=Object.assign(e=>({add:(...t)=>Lu(mL(e,...t)),subtract:(...t)=>Lu(vL(e,...t)),multiply:(...t)=>Lu(ZC(e,...t)),divide:(...t)=>Lu(yL(e,...t)),negate:()=>Lu(bL(e)),toString:()=>e.toString()}),{add:mL,subtract:vL,multiply:ZC,divide:yL,negate:bL});function _re(e){return!Number.isInteger(parseFloat(e.toString()))}function kre(e,t="-"){return e.replace(/\s+/g,t)}function GB(e){const t=kre(e.toString());return t.includes("\\.")?e:_re(e)?t.replace(".","\\."):e}function Ere(e,t=""){return[t,GB(e)].filter(Boolean).join("-")}function Pre(e,t){return`var(${GB(e)}${t?`, ${t}`:""})`}function Tre(e,t=""){return`--${Ere(e,t)}`}function ci(e,t){const n=Tre(e,t==null?void 0:t.prefix);return{variable:n,reference:Pre(n,Lre(t==null?void 0:t.fallback))}}function Lre(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:Are,defineMultiStyleConfig:Ore}=nr(Pne.keys),Rre={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Mre={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Ire={pt:"2",px:"4",pb:"5"},Dre={fontSize:"1.25em"},Nre=Are({container:Rre,button:Mre,panel:Ire,icon:Dre}),Bre=Ore({baseStyle:Nre}),{definePartsStyle:O2,defineMultiStyleConfig:zre}=nr(Tne.keys),ya=Hn("alert-fg"),Vu=Hn("alert-bg"),$re=O2({container:{bg:Vu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ya.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ya.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function t_(e){const{theme:t,colorScheme:n}=e,r=y1(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Fre=O2(e=>{const{colorScheme:t}=e,n=t_(e);return{container:{[ya.variable]:`colors.${t}.500`,[Vu.variable]:n.light,_dark:{[ya.variable]:`colors.${t}.200`,[Vu.variable]:n.dark}}}}),Hre=O2(e=>{const{colorScheme:t}=e,n=t_(e);return{container:{[ya.variable]:`colors.${t}.500`,[Vu.variable]:n.light,_dark:{[ya.variable]:`colors.${t}.200`,[Vu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ya.reference}}}),Vre=O2(e=>{const{colorScheme:t}=e,n=t_(e);return{container:{[ya.variable]:`colors.${t}.500`,[Vu.variable]:n.light,_dark:{[ya.variable]:`colors.${t}.200`,[Vu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ya.reference}}}),Wre=O2(e=>{const{colorScheme:t}=e;return{container:{[ya.variable]:"colors.white",[Vu.variable]:`colors.${t}.500`,_dark:{[ya.variable]:"colors.gray.900",[Vu.variable]:`colors.${t}.200`},color:ya.reference}}}),Ure={subtle:Fre,"left-accent":Hre,"top-accent":Vre,solid:Wre},jre=zre({baseStyle:$re,variants:Ure,defaultProps:{variant:"subtle",colorScheme:"blue"}}),qB={px:"1px",.
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${ho(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Fae={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Hae=e=>({bg:xt("gray.100","whiteAlpha.300")(e)}),Vae=e=>({transitionProperty:"common",transitionDuration:"slow",...$ae(e)}),Wae=$m(e=>({label:Fae,filledTrack:Vae(e),track:Hae(e)})),Uae={xs:$m({track:{h:"1"}}),sm:$m({track:{h:"2"}}),md:$m({track:{h:"3"}}),lg:$m({track:{h:"4"}})},jae=zae({sizes:Uae,baseStyle:Wae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Gae,definePartsStyle:S4}=nr(Wne.keys),qae=e=>{var t;const n=(t=mo(S5.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Yae=S4(e=>{var t,n,r,i;return{label:(n=(t=S5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=S5).baseStyle)==null?void 0:i.call(r,e).container,control:qae(e)}}),Kae={md:S4({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:S4({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:S4({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Xae=Gae({baseStyle:Yae,sizes:Kae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zae,definePartsStyle:Qae}=nr(Une.keys),h3=Hn("select-bg"),_L,Jae={...(_L=xn.baseStyle)==null?void 0:_L.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:h3.reference,[h3.variable]:"colors.white",_dark:{[h3.variable]:"colors.gray.700"},"> option, > optgroup":{bg:h3.reference}},ese={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},tse=Qae({field:Jae,icon:ese}),p3={paddingInlineEnd:"8"},kL,EL,PL,TL,LL,AL,OL,RL,nse={lg:{...(kL=xn.sizes)==null?void 0:kL.lg,field:{...(EL=xn.sizes)==null?void 0:EL.lg.field,...p3}},md:{...(PL=xn.sizes)==null?void 0:PL.md,field:{...(TL=xn.sizes)==null?void 0:TL.md.field,...p3}},sm:{...(LL=xn.sizes)==null?void 0:LL.sm,field:{...(AL=xn.sizes)==null?void 0:AL.sm.field,...p3}},xs:{...(OL=xn.sizes)==null?void 0:OL.xs,field:{...(RL=xn.sizes)==null?void 0:RL.xs.field,...p3},icon:{insetEnd:"1"}}},rse=Zae({baseStyle:tse,sizes:nse,variants:xn.variants,defaultProps:xn.defaultProps}),Lw=Hn("skeleton-start-color"),Aw=Hn("skeleton-end-color"),ise={[Lw.variable]:"colors.gray.100",[Aw.variable]:"colors.gray.400",_dark:{[Lw.variable]:"colors.gray.800",[Aw.variable]:"colors.gray.600"},background:Lw.reference,borderColor:Aw.reference,opacity:.7,borderRadius:"sm"},ose={baseStyle:ise},Ow=Hn("skip-link-bg"),ase={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Ow.variable]:"colors.white",_dark:{[Ow.variable]:"colors.gray.700"},bg:Ow.reference}},sse={baseStyle:ase},{defineMultiStyleConfig:lse,definePartsStyle:Qb}=nr(jne.keys),Qv=Hn("slider-thumb-size"),Jv=Hn("slider-track-size"),od=Hn("slider-bg"),use=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...e_({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},cse=e=>({...e_({orientation:e.orientation,horizontal:{h:Jv.reference},vertical:{w:Jv.reference}}),overflow:"hidden",borderRadius:"sm",[od.variable]:"colors.gray.200",_dark:{[od.variable]:"colors.whiteAlpha.200"},_disabled:{[od.variable]:"colors.gray.300",_dark:{[od.variable]:"colors.whiteAlpha.300"}},bg:od.reference}),dse=e=>{const{orientation:t}=e;return{...e_({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:Qv.reference,h:Qv.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"}}},
|
||
|
[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]),b(Jhe,{isPresent:t,childRef:r,sizeRef:i,children:k.exports.cloneElement(e,{ref:r})})}const jw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=rS(tpe),l=k.exports.useId(),u=k.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:f=>{s.set(f,!0);for(const p of s.values())if(!p)return;r&&r()},register:f=>(s.set(f,!1),()=>s.delete(f))}),o?void 0:[n]);return k.exports.useMemo(()=>{s.forEach((f,p)=>s.set(p,!1))},[n]),k.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b(epe,{isPresent:n,children:e})),b(B1.Provider,{value:u,children:e})};function tpe(){return new Map}const f0=e=>e.key||"";function npe(e,t){e.forEach(n=>{const r=f0(n);t.set(r,n)})}function rpe(e){const t=[];return k.exports.Children.forEach(e,n=>{k.exports.isValidElement(n)&&t.push(n)}),t}const Vd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",r$(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Qhe();const l=k.exports.useContext(o_).forceRender;l&&(s=l);const u=O$(),f=rpe(e);let p=f;const m=new Set,v=k.exports.useRef(p),y=k.exports.useRef(new Map).current,x=k.exports.useRef(!0);if(C5(()=>{x.current=!1,npe(f,y),v.current=p}),p_(()=>{x.current=!0,y.clear(),m.clear()}),x.current)return b(In,{children:p.map(T=>b(jw,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},f0(T)))});p=[...p];const E=v.current.map(f0),_=f.map(f0),C=E.length;for(let T=0;T<C;T++){const A=E[T];_.indexOf(A)===-1&&m.add(A)}return a==="wait"&&m.size&&(p=[]),m.forEach(T=>{if(_.indexOf(T)!==-1)return;const A=y.get(T);if(!A)return;const M=E.indexOf(T),I=()=>{y.delete(T),m.delete(T);const D=v.current.findIndex(B=>B.key===T);if(v.current.splice(D,1),!m.size){if(v.current=f,u.current===!1)return;s(),r&&r()}};p.splice(M,0,b(jw,{isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:a,children:A},f0(A)))}),p=p.map(T=>{const A=T.key;return m.has(A)?T:b(jw,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},f0(T))}),n$!=="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.`),b(In,{children:m.size?p:p.map(T=>k.exports.cloneElement(T))})};var Tl=function(){return Tl=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},Tl.apply(this,arguments)};function R$(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 $1(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(f){try{u(r.next(f))}catch(p){a(p)}}function l(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function F1(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(f){return l([u,f])}}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 Ppe(e){cS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function fh(e){const{isOpen:t,isDisabled:n}=A_(),{reduceMotion:r}=O_(),i=B2("chakra-accordion__icon",e.className),o=dS(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return b(Ea,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:b("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}fh.displayName="AccordionIcon";var hh=Pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Cpe(t),l={...dS().container,overflowAnchor:"none"},u=k.exports.useMemo(()=>a,[a]);return oe.createElement(vpe,{value:u},oe.createElement(xe.div,{ref:n,...o,className:B2("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});hh.displayName="AccordionItem";var ph=Pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=O_(),{getPanelProps:s,isOpen:l}=A_(),u=s(o,n),f=B2("chakra-accordion__panel",r),p=dS();a||delete u.hidden;const m=oe.createElement(xe.div,{...u,__css:p.panel,className:f});return a?m:b(M$,{in:l,...i,children:m})});ph.displayName="AccordionPanel";var fS=Pe(function({children:t,reduceMotion:n,...r},i){const o=zi("Accordion",r),a=wn(r),{htmlProps:s,descendants:l,...u}=xpe(a),f=k.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return oe.createElement(ype,{value:l},oe.createElement(wpe,{value:f},oe.createElement(mpe,{value:o},oe.createElement(xe.div,{ref:i,...s,className:B2("chakra-accordion",r.className),__css:o.root},t))))});fS.displayName="Accordion";var Tpe=(...e)=>e.filter(Boolean).join(" "),Lpe=Hd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),z2=Pe((e,t)=>{const n=bo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=wn(e),u=Tpe("chakra-spinner",s),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Lpe} ${o} linear infinite`,...n};return oe.createElement(xe.div,{ref:t,__css:f,className:u,...l},r&&oe.createElement(xe.span,{srOnly:!0},r))});z2.displayName="Spinner";var hS=(...e)=>e.filter(Boolean).join(" ");function Ape(e){return b(Ea,{viewBox:"0 0 24 24",...e,children:b("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 Ope(e){return b(Ea,{viewBox:"0 0 24 24",...e,children:b("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 QA(e){return b(Ea,{viewBox:"0 0 24 24",...e,children:b("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[Rpe,Mpe]=Ln({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Ipe,R_]=Ln({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),B$={info:{icon:Ope,colorScheme:"blue"},warning:{icon:QA,colorScheme:"orange"},success:{icon:Ape,colorScheme:"green"},error:{icon:QA,colorScheme:"red"},loading:{icon:z2,colorScheme:"blue"}};function Dpe(e){return B$[e].colorScheme}function Npe(e){return B$[e].icon}var z$=Pe(function(t,n){var u;const{status:r="info",addRole:i=!0,...o}=wn(t),a=(u=t.colorScheme)!=null?u:Dpe(r),s=zi("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",positio
|
||
|
: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;
|
||
|
}
|
||
|
}
|
||
|
`,S0e=()=>b(Kb,{styles:Y$}),x0e=()=>b(Kb,{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;
|
||
|
}
|
||
|
|
||
|
${Y$}
|
||
|
`});function xh(e,t,n,r){const i=gr(n);return k.exports.useEffect(()=>{const o=typeof e=="function"?e():e!=null?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!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function w0e(e){return"current"in e}var K$=()=>typeof window<"u";function C0e(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var _0e=e=>K$()&&e.test(navigator.vendor),k0e=e=>K$()&&e.test(C0e()),E0e=()=>k0e(/mac|iphone|ipad|ipod/i),P0e=()=>E0e()&&_0e(/apple/i);function T0e(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a;var o;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};xh(i,"pointerdown",o=>{if(!P0e()||!r)return;const a=o.target,l=(n!=null?n:[t]).some(u=>{const f=w0e(u)?u.current:u;return(f==null?void 0:f.contains(a))||f===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var L0e=vne?k.exports.useLayoutEffect:k.exports.useEffect;function aO(e,t=[]){const n=k.exports.useRef(e);return L0e(()=>{n.current=e}),k.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function A0e(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function O0e(e,t){const n=k.exports.useId();return k.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function s2(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=aO(n),a=aO(t),[s,l]=k.exports.useState(e.defaultIsOpen||!1),[u,f]=A0e(r,s),p=O0e(i,"disclosure"),m=k.exports.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),v=k.exports.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),y=k.exports.useCallback(()=>{(f?m:v)()},[f,v,m]);return{isOpen:!!f,onOpen:v,onClose:m,onToggle:y,isControlled:u,getButtonProps:(x={})=>({...x,"aria-expanded":f,"aria-controls":p,onClick:yne(x.onClick,y)}),getDisclosureProps:(x={})=>({...x,hidden:!f,id:p})}}function z_(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var $_=Pe(function(t,n){const{htmlSize:r,...i}=t,o=zi("Input",i),a=wn(i),s=M_(a),l=Hr("chakra-input",t.className);return oe.createElement(xe.input,{size:r,...s,__css:o.field,ref:n,className:l})});$_.displayName="Input";$_.id="Input";var[R0e,X$]=Ln({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),M0e=Pe(function(t,n){const r=zi("Input",t),{children:i,className:o,...a}=wn(t),s=Hr("chakra-input__group",o),l={},u=gS(i),f=r.field;u.forEach(m=>{var v,y;!r||(f&&m.type.id==="InputLeftElement"&&(l.paddingStart=(v=f.height)!=null?v:f.h),f&&m.type.id==="InputRightElement"&&(l.paddingEnd=(y=f.height)!=null?y:f.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const p=u.map(m=>{var v,y;const x=z_({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((y=m.props)==null?void 0:y.variant)||t.variant});return m.type.id!=="Input"?k.exports.cloneElement(m,x):k.exports.cloneElement(m,Object.assign(x,l,m.props))});return oe.createElement(xe.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},b(R0e,{value:r,children:p}))});M0e.displayName="InputGroup";var I0e={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},D0e=xe("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),F_=Pe(function(t,n){var s;const{placement:r="left",...i}=t,o=(s=I0e[r])!=null?s:{},a=X$();return b(D0e,{ref:n,...i,__css:{...a.addon,...o}})});F_.displayName="InputAddon";var Z$=Pe(function(t,n){return b(F_,{ref:n,placement:"left",...t,className:Hr("chakra-input__left-addon",t.className)})});Z$.displayName="InputLeftAddon";Z$.id="InputLeftAddon";var Q$=Pe(function(t,n){return b(F_,{ref:n,placement:"right",...t,className:Hr("chakra-input__right-addon",t.className)})});Q$.displayName="InputRightAddon";Q$.id="InputRightAddon";var N0e=xe("
|
||
|
.`.concat(lve,` {
|
||
|
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(P4,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(T4,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(P4," .").concat(P4,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(T4," .").concat(T4,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(uve,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},xve=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=k.exports.useMemo(function(){return yve(i)},[i]);return b(bve,{styles:Sve(o,!t,i,n?"":"!important")})},z7=!1;if(typeof window<"u")try{var E3=Object.defineProperty({},"passive",{get:function(){return z7=!0,!0}});window.addEventListener("test",E3,E3),window.removeEventListener("test",E3,E3)}catch(e){z7=!1}var t0=z7?{passive:!1}:!1,wve=function(e){return e.tagName==="TEXTAREA"},vH=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wve(e)&&n[t]==="visible")},Cve=function(e){return vH(e,"overflowY")},_ve=function(e){return vH(e,"overflowX")},EO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=yH(e,n);if(r){var i=bH(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},kve=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Eve=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yH=function(e,t){return e==="v"?Cve(t):_ve(t)},bH=function(e,t){return e==="v"?kve(t):Eve(t)},Pve=function(e,t){return e==="h"&&t==="rtl"?-1:1},Tve=function(e,t,n,r,i){var o=Pve(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,f=a>0,p=0,m=0;do{var v=bH(e,s),y=v[0],x=v[1],E=v[2],_=x-E-o*y;(y||_)&&yH(e,s)&&(p+=_,m+=y),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(i&&p===0||!i&&a>p)||!f&&(i&&m===0||!i&&-a>m))&&(u=!0),u},P3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PO=function(e){return[e.deltaX,e.deltaY]},TO=function(e){return e&&"current"in e?e.current:e},Lve=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ave=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},Ove=0,n0=[];function Rve(e){var t=k.exports.useRef([]),n=k.exports.useRef([0,0]),r=k.exports.useRef(),i=k.exports.useState(Ove++)[0],o=k.exports.useState(function(){return mH()})[0],a=k.exports.useRef(e);k.exports.useEffect(function(){a.current=e},[e]),k.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=w7([e.lockRef.current],(e.shards||[]).map(TO),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.exports.useCallback(function(x,E){if("touches"in x&&x.touches.length===2)return!a.current.allowPinchZoom;var _=P3(x),C=n.current,T="deltaX"in x?x.deltaX:C[0]-_[0],A="deltaY"in x?x.deltaY:C[1]-_[1],M,I=x.target,D=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in x&&D==="h"&&I.type==="range")return!1;var B=EO(D,I);if(!B)return!0;if(B?M=D:(M=D==="v"?"h":"v",B=EO(D,I)),!B)return!1;if(!r.current&&"changedTouches"in x&&(T||A)&&(r.current=M),!M)return!0;var F=r.current||M;return Tve(F,E,x,F==="h"?T:A,!0)},[]),l=k.exports.useCallback(function(x){var E=x;if(!(!n0.length||n0[n0.length-1]!==o)){var _="deltaY"in E?PO(E):P3(E),C=t.current.filter(function(M){return M.name===E.type&&M.target===E.target&&Lve(M.delta,_)})[0];if(C&&C.should){E.cancelable&&E.preventDefault();return}if(!C){var T=(a.current.shards||[]).map(TO).filter(Boolean).filter(function(M){return M.contains(E.target)}),A=T.length>0?s(E,T[0]):!a.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),u=k.exports.useCallback(function(x,E,_,C){var T={name:x,delta:E,target:_,should:C};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),f=k.exports.useCallback(function(x){n.current=P3(x),r.current=void 0},[]),p=k.exports.useCallback(function(x){u(x.type,PO(x),x.target,s(x,e.lockRef.current))},[]),m=k.exports.useCallback(function(x){u(x.type,P3(x),x.target,s(x,e.lockRef.current))},[]);k.exports.useEffect(function(){return n0.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,t0),document.addEventListener("touchmove",l,t0),document.addEventListener("touchstart",f,t0),function(){n0=n0.filter(function(x){return x!==o}),document.removeEventListener("wheel",l,t0),document.removeEventListener("touchmove",l,t0),document.removeEventListener("touchstart",f,t0)}},[]);var v=e.removeScrollBar,y=e.inert;return ee(In,{children:[y?b(o,{styles:Ave(i)}):null,v?b(xve,{gapMode:"margin"}):null]})}const Mve=fme(gH,Rve);var SH=k.exports.forwardRef(function(e,t){return b(xS,{...Tl({},e,{ref:t,sideCar:Mve})})});SH.classNames=xS.classNames;const xH=SH;var Vh=(...e)=>e.filter(Boolean).join(" ");function Fm(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Ive=class{constructor(){on(this,"modals");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}},$7=new Ive;function Dve(e,t){k.exports.useEffect(()=>(t&&$7.add(e),()=>{$7.remove(e)}),[t,e])}function Nve(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=k.exports.useRef(null),f=k.exports.useRef(null),[p,m,v]=zve(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Bve(u,t&&a),Dve(u,t);const y=k.exports.useRef(null),x=k.exports.useCallback(B=>{y.current=B.target},[]),E=k.exports.useCallback(B=>{B.key==="Escape"&&(B.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[_,C]=k.exports.useState(!1),[T,A]=k.exports.useState(!1),M=k.exports.useCallback((B={},F=null)=>({role:"dialog",...B,ref:jn(F,u),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?m:void 0,"aria-describedby":T?v:void 0,onClick:Fm(B.onClick,H=>H.stopPropagation())}),[v,T,p,m,_]),I=k.exports.useCallback(B=>{B.stopPropagation(),y.c
|
||
|
|
||
|
`;if(!(0,e.isString)(z)||z.length<1)throw new Error(`${Z} Name (key) of reducer is required. ${U}`);if(!G||!G.length)return;const{duplicates:Q,subsets:ue}=(0,e.findDuplicatesAndSubsets)(G);if(Q.length>1)throw new Error(`${Z} Duplicated paths.
|
||
|
|
||
|
${JSON.stringify(Q)}
|
||
|
|
||
|
${U}`);if(ue.length>1)throw new Error(`${Z} You are trying to persist an entire property and also some of its subset.
|
||
|
|
||
|
${JSON.stringify(ue)}
|
||
|
|
||
|
${U}`)};e.singleTransformValidator=B;const F=function(G){if(!(0,e.isArray)(G))return;const z=(G==null?void 0:G.map(W=>W.deepPersistKey).filter(W=>W))||[];if(z.length){const W=z.filter((K,Z)=>z.indexOf(K)!==Z);if(W.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(W)}`)}};e.transformsValidator=F;const H=function({whitelist:G,blacklist:z}){if(G&&G.length&&z&&z.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(G){const{duplicates:W,subsets:K}=(0,e.findDuplicatesAndSubsets)(G);(0,e.throwError)({duplicates:W,subsets:K},"whitelist")}if(z){const{duplicates:W,subsets:K}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:W,subsets:K},"blacklist")}};e.configValidator=H;const Y=function({duplicates:G,subsets:z},W){if(G.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${W}.
|
||
|
|
||
|
${JSON.stringify(G)}`);if(z.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${W}. You must decide if you want to persist an entire path or its specific subset.
|
||
|
|
||
|
${JSON.stringify(z)}`)};e.throwError=Y;const te=function(G){return(0,e.isArray)(G)?G.filter(e.unique).reduce((z,W)=>{const K=W.split("."),Z=K[0],U=K.slice(1).join(".")||void 0,Q=z.filter(fe=>Object.keys(fe)[0]===Z)[0],ue=Q?Object.values(Q)[0]:void 0;return Q||z.push({[Z]:U?[U]:void 0}),Q&&!ue&&U&&(Q[Z]=[U]),Q&&ue&&U&&ue.push(U),z},[]):[]};e.getRootKeysGroup=te})(xV);(function(e){var t=fo&&fo.__rest||function(p,m){var v={};for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&m.indexOf(y)<0&&(v[y]=p[y]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(p);x<y.length;x++)m.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(p,y[x])&&(v[y[x]]=p[y[x]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=xV,r=Ih,i=Dk,o=function(p,m,v={}){const y=v.whitelist||null,x=v.blacklist||null;function E(_){return!!(y&&y.indexOf(_)===-1||x&&x.indexOf(_)!==-1)}return{in:(_,C,T)=>!E(C)&&p?p(_,C,T):_,out:(_,C,T)=>!E(C)&&m?m(_,C,T):_,deepPersistKey:y&&y[0]}},a=(p,m,v,{debug:y,whitelist:x,blacklist:E,transforms:_})=>{if(x||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)(_);const C=(0,n.cloneDeep)(v);let T=p;if(T&&(0,n.isObjectLike)(T)){const A=(0,n.difference)(m,v);(0,n.isEmpty)(A)||(T=(0,n.mergeDeep)(p,A,{preserveUndefined:!0}),y&&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(A)}`)),Object.keys(T).forEach(M=>{if(M!=="_persist"){if((0,n.isObjectLike)(C[M])){C[M]=(0,n.mergeDeep)(C[M],T[M]);return}C[M]=T[M]}})}return y&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),C};e.autoMergeDeep=a;const s=(p,m)=>((0,n.singleTransformValidator)(m,p,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let y=null,x;return m.forEach(E=>{const _=E.split(".");x=(0,n.path)(v,_),typeof x>"u"&&(0,n.isIntegerString)(_[_.length-1])&&(x=r.PLACEHOLDER_UNDEFINED);const C=(0,n.assocPath)(_,x),T=(0,n.isArray)(C)?[]:{};y=(0,n.mergeDeep)(y||T,C,{preservePlaceholder:!0})}),y||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 y=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(E=>E.split(".")).reduce((E,_)=>(0,n.dissocPath)(E,_),y)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[p]}));e.createBlacklist=l;const u=function(p,m){return m.map(v=>{const y=Object.keys(v)[0],x=v[y];return p===i.ConfigType.WHITELIST?(0,e.createWhitelist)(y,x):(0,e.createBlacklist)(y,x)})};e.getTransforms=u;const f=p=>{var{key:m,whitelist:v,blacklist:y,storage:x,transforms:E,rootReducer:_}=p,C=t(p,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:y});const T=(0,n.getRootKeysGroup)(v),A=(0,n.getRootKeysGroup)(y),M=Object.keys(_(void 0,{type:""})),I=T.map(te=>Object.keys(te)[0]),D=A.map(te=>Object.keys(te)[0]),B=M.filter(te=>I.indexOf(te)===-1&&D.indexOf(te)===-1),F=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),H=(0,e.getTransforms)(i.ConfigType.BLACKLIST,A),Y=(0,n.isArray)(v)?B.map(te=>(0,e.createBlacklist)(te)):[];return Object.assign(Object.assign({},C),{key:m,storage:x,transforms:[...F,...H,...Y,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=f})(SV);const M4=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),b4e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return Nk(r)?r:!1},Nk=e=>Boolean(typeof e=="string"?b4e(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,f="__lodash_placeholder__",p=1,m=2,v=4,y=1,x=2,E=1,_=2,C=4,T=8,A=16,M=32,I=64,D=128,B=256,F=512,H=30,Y="...",te=800,G=16,z=1,W=2,K=3,Z=1/0,U=9007199254740991,Q=17976931348623157e292,ue=0/0,fe=4294967295,Te=fe-1,Oe=fe>>>1,ve=[["ary",D],["bind",E],["bindKey",_],["curry",T],["curryRight",A],["flip",F],["partial",M],["partialRight",I],["rearg",B]],Ce="[object Arguments]",Re="[object Array]",Ye="[object AsyncFunction]",Ue="[object Boolean]",pt="[object Date]",wt="[object DOMException]",ut="[object Error]",ft="[object Function]",vt="[object GeneratorFunction]",ke="[object Map]",at="[object Number]",Rt="[object Null]",tt="[object Object]",yt="[object Promise]",dn="[object Proxy]",Pt="[object RegExp]",Yt="[object Set]",fn="[object String]",Cn="[object Symbol]",De="[object Undefined]",nt="[object WeakMap]",tn="[object WeakSet]",Zt="[object ArrayBuffer]",Ee="[object DataView]",Ct="[object Float32Array]",Wt="[object Float64Array]",$e="[object Int8Array]",ct="[object Int16Array]",hn="[object Int32Array]",Be="[object Uint8Array]",gt="[object Uint8ClampedArray]",rt="[object Uint16Array]",Bt="[object Uint32Array]",ln=/\b__p \+= '';/g,wr=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,Go=/[&<>"']/g,Q1=RegExp(Vr.source),Pa=RegExp(Go.source),Jh=/<%-([\s\S]+?)%>/g,J1=/<%([\s\S]+?)%>/g,oc=/<%=([\s\S]+?)%>/g,ep=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tp=/^\w*$/,qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tf=/[\\^$.*+?()[\]{}|]/g,eg=RegExp(tf.source),ac=/^\s+/,nf=/\s/,tg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,js=/\{\n\/\* \[wrapped with (.+)\] \*/,sc=/,? & /,ng=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rg=/[()=,{}\[\]\/\s]/,ig=/\\(\\)?/g,og=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,is=/\w*$/,ag=/^[-+]0x[0-9a-f]+$/i,sg=/^0b[01]+$/i,lg=/^\[object .+?Constructor\]$/,ug=/^0o[0-7]+$/i,cg=/^(?:0|[1-9]\d*)$/,dg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gs=/($^)/,fg=/['\n\r\u2028\u2029\\]/g,os="\\ud800-\\udfff",ru="\\u0300-\\u036f",iu="\\ufe20-\\ufe2f",qs="\\u20d0-\\u20ff",ou=ru+iu+qs,np="\\u2700-\\u27bf",lc="a-z\\xdf-\\xf6\\xf8-\\xff",Ys="\\xac\\xb1\\xd7\\xf7",Yo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",On="\\u2000-\\u206f",_n=" \\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",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Or="\\ufe0e\\ufe0f",Qr=Ys+Yo+On+_n,Xo="['\u2019]",Ks="["+os+"]",Jr="["+Qr+"]",as="["+ou+"]",rf="\\d+",au="["+np+"]",ss="["+lc+"]",of="[^"+os+Qr+rf+np+lc+Ko+"]",Ci="\\ud83c[\\udffb-\\udfff]",rp="(?:"+as+"|"+Ci+")",ip="[^"+os+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",Xs="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+Ko+"]",Zs="\\u200d",su="(?:"+ss+"|"+of+")",hg="(?:"+So+"|"+of+")",uc="(?:"+Xo+"(?:d|ll|m|re|s|t|ve))?",cc="(?:"+Xo+"(?:D|LL|M|RE|S|T|VE))?",sf=rp+"?",dc="["+Or+"]?",Ta="(?:"+Zs+"(?:"+[ip,af,Xs].join("|")+")"+dc+sf+")*",lf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ut=dc+sf+Ta,op="(?:"+[au,af,Xs].join("|")+")"+Ut,fc="(?:"+[ip+as+"?",as,af,Xs,Ks].join("|")+")",hc=RegExp(Xo,"g"),ap=RegExp(as,"g"),Zo=RegExp(Ci+"(?="+Ci+")|"+fc+Ut,"g"),qn=RegExp([So+"?"+ss+"+"+uc+"(?="+[Jr,So,"$"].join("|")+")",hg+"+"+cc+"(?="+[Jr,So+su,"$"].join("|")+")",So+"?"+su+"+"+uc,So+"+"+cc,lu,lf,rf,op].join("|"),"g"),uf=RegExp("["+Zs+os+ou+Or+"]"),sp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cf=["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"],lp=-1,pn={};pn
|
||
|
/* [wrapped with `+g+`] */
|
||
|
`)}function ZG(c){return Nt(c)||Hf(c)||!!(kg&&c&&c[kg])}function yu(c,g){var w=typeof c;return g=g==null?U:g,!!g&&(w=="number"||w!="symbol"&&cg.test(c))&&c>-1&&c%1==0&&c<g}function io(c,g,w){if(!dr(w))return!1;var O=typeof g;return(O=="number"?Lo(w)&&yu(g,w.length):O=="string"&&g in w)?vs(w[g],c):!1}function kx(c,g){if(Nt(c))return!1;var w=typeof c;return w=="number"||w=="symbol"||w=="boolean"||c==null||la(c)?!0:tp.test(c)||!ep.test(c)||g!=null&&c in gn(g)}function QG(c){var g=typeof c;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?c!=="__proto__":c===null}function Ex(c){var g=be(c),w=$[g];if(typeof w!="function"||!(g in Kt.prototype))return!1;if(c===w)return!0;var O=le(w);return!!O&&c===O[0]}function JG(c){return!!xc&&xc in c}var eq=rr?bu:Wx;function nm(c){var g=c&&c.constructor,w=typeof g=="function"&&g.prototype||kn;return c===w}function GE(c){return c===c&&!dr(c)}function qE(c,g){return function(w){return w==null?!1:w[c]===g&&(g!==n||c in gn(w))}}function tq(c){var g=By(c,function(O){return w.size===u&&w.clear(),O}),w=g.cache;return g}function nq(c,g){var w=c[1],O=g[1],N=w|O,V=N<(E|_|D),X=O==D&&w==T||O==D&&w==B&&c[7].length<=g[8]||O==(D|B)&&g[7].length<=g[8]&&w==T;if(!(V||X))return c;O&E&&(c[2]=g[2],N|=w&E?0:C);var ne=g[3];if(ne){var ce=c[3];c[3]=ce?Oy(ce,ne,g[4]):ne,c[4]=ce?ea(c[3],f):g[4]}return ne=g[5],ne&&(ce=c[5],c[5]=ce?Zg(ce,ne,g[6]):ne,c[6]=ce?ea(c[5],f):g[6]),ne=g[7],ne&&(c[7]=ne),O&D&&(c[8]=c[8]==null?g[8]:ni(c[8],g[8])),c[9]==null&&(c[9]=g[9]),c[0]=g[0],c[1]=N,c}function rq(c){var g=[];if(c!=null)for(var w in gn(c))g.push(w);return g}function iq(c){return mp.call(c)}function YE(c,g,w){return g=_r(g===n?c.length-1:g,0),function(){for(var O=arguments,N=-1,V=_r(O.length-g,0),X=me(V);++N<V;)X[N]=O[g+N];N=-1;for(var ne=me(g+1);++N<g;)ne[N]=O[N];return ne[g]=w(X),_i(c,this,ne)}}function KE(c,g){return g.length<2?c:il(c,Nr(g,0,-1))}function oq(c,g){for(var w=c.length,O=ni(g.length,w),N=Ai(c);O--;){var V=g[O];c[O]=yu(V,w)?N[V]:n}return c}function Px(c,g){if(!(g==="constructor"&&typeof c[g]=="function")&&g!="__proto__")return c[g]}var XE=QE(If),rm=_f||function(c,g){return St.setTimeout(c,g)},Tx=QE(Bp);function ZE(c,g,w){var O=g+"";return Tx(c,XG(O,aq(qG(O),w)))}function QE(c){var g=0,w=0;return function(){var O=Eg(),N=G-(O-w);if(w=O,N>0){if(++g>=te)return arguments[0]}else g=0;return c.apply(n,arguments)}}function My(c,g){var w=-1,O=c.length,N=O-1;for(g=g===n?O:g;++w<g;){var V=Rf(w,N),X=c[V];c[V]=c[w],c[w]=X}return c.length=g,c}var JE=tq(function(c){var g=[];return c.charCodeAt(0)===46&&g.push(""),c.replace(qo,function(w,O,N,V){g.push(N?V.replace(ig,"$1"):O||w)}),g});function pl(c){if(typeof c=="string"||la(c))return c;var g=c+"";return g=="0"&&1/c==-Z?"-0":g}function Ff(c){if(c!=null){try{return lr.call(c)}catch(g){}try{return c+""}catch(g){}}return""}function aq(c,g){return Yn(ve,function(w){var O="_."+w[0];g&w[1]&&!$i(c,O)&&c.push(O)}),c.sort()}function eP(c){if(c instanceof Kt)return c.clone();var g=new eo(c.__wrapped__,c.__chain__);return g.__actions__=Ai(c.__actions__),g.__index__=c.__index__,g.__values__=c.__values__,g}function sq(c,g,w){(w?io(c,g,w):g===n)?g=1:g=_r(zt(g),0);var O=c==null?0:c.length;if(!O||g<1)return[];for(var N=0,V=0,X=me(kf(O/g));N<O;)X[V++]=Nr(c,N,N+=g);return X}function lq(c){for(var g=-1,w=c==null?0:c.length,O=0,N=[];++g<w;){var V=c[g];V&&(N[O++]=V)}return N}function uq(){var c=arguments.length;if(!c)return[];for(var g=me(c-1),w=arguments[0],O=c;O--;)g[O-1]=arguments[O];return Aa(Nt(w)?Ai(w):[w],Ir(g,1))}var cq=Tt(function(c,g){return Br(c)?Dc(c,Ir(g,1,Br,!0)):[]}),dq=Tt(function(c,g){var w=Da(g);return Br(w)&&(w=n),Br(c)?Dc(c,Ir(g,1,Br,!0),Le(w,2)):[]}),fq=Tt(function(c,g){var w=Da(g);return Br(w)&&(w=n),Br(c)?Dc(c,Ir(g,1,Br,!0),n,w):[]});function hq(c,g,w){var O=c==null?0:c.length;return O?(g=w||g===n?1:zt(g),Nr(c,g<0?0:g,O)):[]}function pq(c,g,w){var O=c==null?0:c.length;return O?(g=w||g===n?1:zt(g),g=O-g,Nr(c,0,g<0?0:g)):[]}function gq(c,g){return c&&c.length?Vc(c,Le(g,3),!0,!0):[]}function mq(c,g){return c&&c.length?Vc(c,Le(g,3),!0):[]}function vq(c,g,w,O){var N=c==nul
|
||
|
`;c.replace(Ke,function(kt,Xt,rn,ua,oo,ca){return rn||(rn=ua),Ae+=c.slice(we,ca).replace(fg,el),Xt&&(ne=!0,Ae+=`' +
|
||
|
__e(`+Xt+`) +
|
||
|
'`),oo&&(ce=!0,Ae+=`';
|
||
|
`+oo+`;
|
||
|
__p += '`),rn&&(Ae+=`' +
|
||
|
((__t = (`+rn+`)) == null ? '' : __t) +
|
||
|
'`),we=ca+kt.length,kt}),Ae+=`';
|
||
|
`;var _t=an.call(g,"variable")&&g.variable;if(!_t)Ae=`with (obj) {
|
||
|
`+Ae+`
|
||
|
}
|
||
|
`;else if(rg.test(_t))throw new Lt(s);Ae=(ce?Ae.replace(ln,""):Ae).replace(wr,"$1").replace(sr,"$1;"),Ae="function("+(_t||"obj")+`) {
|
||
|
`+(_t?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Ae+`return __p
|
||
|
}`;var Vt=RP(function(){return nn(V,mt+"return "+Ae).apply(n,X)});if(Vt.source=Ae,Mx(Vt))throw Vt;return Vt}function EX(c){return En(c).toLowerCase()}function PX(c){return En(c).toUpperCase()}function TX(c,g,w){if(c=En(c),c&&(w||g===n))return Ji(c);if(!c||!(g=no(g)))return c;var O=Fi(c),N=Fi(g),V=Jo(O,N),X=ls(O,N)+1;return gs(O,V,X).join("")}function LX(c,g,w){if(c=En(c),c&&(w||g===n))return c.slice(0,Sg(c)+1);if(!c||!(g=no(g)))return c;var O=Fi(c),N=ls(O,Fi(g))+1;return gs(O,0,N).join("")}function AX(c,g,w){if(c=En(c),c&&(w||g===n))return c.replace(ac,"");if(!c||!(g=no(g)))return c;var O=Fi(c),N=Jo(O,Fi(g));return gs(O,N).join("")}function OX(c,g){var w=H,O=Y;if(dr(g)){var N="separator"in g?g.separator:N;w="length"in g?zt(g.length):w,O="omission"in g?no(g.omission):O}c=En(c);var V=c.length;if(cu(c)){var X=Fi(c);V=X.length}if(w>=V)return c;var ne=w-Oa(O);if(ne<1)return O;var ce=X?gs(X,0,ne).join(""):c.slice(0,ne);if(N===n)return ce+O;if(X&&(ne+=ce.length-ne),Ix(N)){if(c.slice(ne).search(N)){var we,_e=ce;for(N.global||(N=Sf(N.source,En(is.exec(N))+"g")),N.lastIndex=0;we=N.exec(_e);)var Ae=we.index;ce=ce.slice(0,Ae===n?ne:Ae)}}else if(c.indexOf(no(N),ne)!=ne){var Ke=ce.lastIndexOf(N);Ke>-1&&(ce=ce.slice(0,Ke))}return ce+O}function RX(c){return c=En(c),c&&Q1.test(c)?c.replace(Vr,uy):c}var MX=hl(function(c,g,w){return c+(w?" ":"")+g.toUpperCase()}),Bx=jp("toUpperCase");function OP(c,g,w){return c=En(c),g=w?n:g,g===n?hp(c)?bf(c):vg(c):c.match(g)||[]}var RP=Tt(function(c,g){try{return _i(c,n,g)}catch(w){return Mx(w)?w:new Lt(w)}}),IX=ir(function(c,g){return Yn(g,function(w){w=pl(w),ra(c,w,Ox(c[w],c))}),c});function DX(c){var g=c==null?0:c.length,w=Le();return c=g?Wn(c,function(O){if(typeof O[1]!="function")throw new ki(a);return[w(O[0]),O[1]]}):[],Tt(function(O){for(var N=-1;++N<g;){var V=c[N];if(_i(V[0],this,O))return _i(V[1],this,O)}})}function NX(c){return Cp(pi(c,p))}function zx(c){return function(){return c}}function BX(c,g){return c==null||c!==c?g:c}var zX=em(),$X=em(!0);function Oo(c){return c}function $x(c){return cr(typeof c=="function"?c:pi(c,p))}function FX(c){return $c(pi(c,p))}function HX(c,g){return al(c,pi(g,p))}var VX=Tt(function(c,g){return function(w){return hs(w,c,g)}}),WX=Tt(function(c,g){return function(w){return hs(c,w,g)}});function Fx(c,g,w){var O=yi(g),N=Pp(g,O);w==null&&!(dr(g)&&(N.length||!O.length))&&(w=g,g=c,c=this,N=Pp(g,yi(g)));var V=!(dr(w)&&"chain"in w)||!!w.chain,X=bu(c);return Yn(N,function(ne){var ce=g[ne];c[ne]=ce,X&&(c.prototype[ne]=function(){var we=this.__chain__;if(V||we){var _e=c(this.__wrapped__),Ae=_e.__actions__=Ai(this.__actions__);return Ae.push({func:ce,args:arguments,thisArg:c}),_e.__chain__=we,_e}return ce.apply(c,Aa([this.value()],arguments))})}),c}function UX(){return St._===this&&(St._=wg),this}function Hx(){}function jX(c){return c=zt(c),Tt(function(g){return Fc(g,c)})}var GX=tm(Wn),qX=tm(Vn),YX=tm(pc);function MP(c){return kx(c)?Js(pl(c)):ps(c)}function KX(c){return function(g){return c==null?n:il(c,g)}}var XX=S(),ZX=S(!0);function Vx(){return[]}function Wx(){return!1}function QX(){return{}}function JX(){return""}function eZ(){return!0}function tZ(c,g){if(c=zt(c),c<1||c>U)return[];var w=fe,O=ni(c,fe);g=Le(g),c-=fe;for(var N=mf(O,g);++w<c;)g(w);return N}function nZ(c){return Nt(c)?Wn(c,pl):la(c)?[c]:Ai(JE(En(c)))}function rZ(c){var g=++xf;return En(c)+g}var iZ=Gp(function(c,g){return c+g},0),oZ=R("ceil"),aZ=Gp(function(c,g){return c/g},1),sZ=R("floor");function lZ(c){return c&&c.length?Er(c,Oo,Tp):n}function uZ(c,g){return c&&c.length?Er(c,Le(g,2),Tp):n}function cZ(c){return hf(c,Oo)}function dZ(c,g){return hf(c,Le(g,2))}function fZ(c){return c&&c.length?Er(c,Oo,ol):n}function hZ(c,g){return c&&c.length?Er(c,Le(g,2),ol):n}var pZ=Gp(function(c,g){return c*g},1),gZ=R("round"),mZ=Gp(function(c,g){return c-g},0);function vZ(c){return c&&c.length?gf(c,Oo):0}function yZ(c,g){return c&&c.length?gf(c,Le(g,2)):0}return $.after=FY,$.ary=cP,$.assign=PK,$.assignIn=_P,$.assignInWith=Hy,$.assignWith=TK,$.at=LK,$.before=dP,$.bind=Ox,$.bindAll=IX,$.bindKey=fP,$.castArray=QY,$.chain=sP,$.c
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e5e(e){return X4e(e)||Z4e(e)||Q4e(e)||J4e()}function cR(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 dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){Yd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var t5e={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},n5e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};eu(this,e),this.init(t,n)}return tu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||t5e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,dR(dR({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Ml=new n5e,Dd=function(){function e(){eu(this,e),this.observers={}}return tu(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function wm(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function fR(e){return e==null?"":""+e}function r5e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Hk(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function hR(e,t,n){var r=Hk(e,t,Object),i=r.obj,o=r.k;i[o]=n}function i5e(e,t,n,r){var i=Hk(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function K5(e,t){var n=Hk(e,t),r=n.obj,i=n.k;if(!!r)return r[i]}function pR(e,t,n){var r=K5(e,n);return r!==void 0?r:K5(t,n)}function WV(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):WV(e[r],t[r],n):e[r]=t[r]);return e}function i0(e){return e.rep
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pbe(e,t){return Cbe(e)||_be(e,t)||kbe(e,t)||Ebe()}function UR(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 y6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UR(Object(n),!0).forEach(function(r){eW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Tbe=function(t,n){var r=k.exports.useRef();return k.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Ge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=k.exports.useContext(xbe)||{},i=r.i18n,o=r.defaultNS,a=n||i||vbe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new wbe),!a){i9("You will need to pass in an i18next instance by using initReactI18next");var s=function(F){return Array.isArray(F)?F[F.length-1]:F},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&i9("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=y6(y6(y6({},gbe()),a.options.react),t),f=u.useSuspense,p=u.keyPrefix,m=e||o||a.options&&a.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(m);var v=(a.isInitialized||a.initializedStoreOnce)&&m.every(function(B){return ube(B,a,u)});function y(){return a.getFixedT(null,u.nsMode==="fallback"?m:m[0],p)}var x=k.exports.useState(y),E=Pbe(x,2),_=E[0],C=E[1],T=m.join(),A=Tbe(T),M=k.exports.useRef(!0);k.exports.useEffect(function(){var B=u.bindI18n,F=u.bindI18nStore;M.current=!0,!v&&!f&&$R(a,m,function(){M.current&&C(y)}),v&&A&&A!==T&&M.current&&C(y);function H(){M.current&&C(y)}return B&&a&&a.on(B,H),F&&a&&a.store.on(F,H),function(){M.current=!1,B&&a&&B.split(" ").forEach(function(Y){return a.off(Y,H)}),F&&a&&F.split(" ").forEach(function(Y){return a.store.off(Y,H)})}},[a,T]);var I=k.exports.useRef(!0);k.exports.useEffect(function(){M.current&&!I.current&&C(y),I.current=!1},[a,p]);var D=[_,a,v];if(D.t=_,D.i18n=a,D.ready=v,v||!v&&!f)return D;throw new Promise(function(B){$R(a,m,function(){B()})})}qt.use(QV).use(qV).use(Sbe).init({fallbackLng:"en",debug:!1,ns:["common","options","unifiedcanvas","gallery","toast","hotkeys","settings"],backend:{loadPath:"/locales/{{ns}}/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const Lbe={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:qt.isInitialized?qt.t("common:statusDisconnected"):"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},infill_methods:[],hasError:!1,wasErrorSeen:!0,isCancelable:!0,saveIntermediatesInterval:5,enableImageDebugging:!1,toastQueue:[]},nW=TS({name:"system",initialState:Lbe,reducers:{setShouldDisplayInProgressType:(e,t)=>{e.shouldDisplayInProgressType=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=qt.t("common:statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?qt.t("common:statusConnected"):qt.t("common:statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,a={timestamp:n,message:r,level:i||"info"};e.lo
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==u0&&o!==void 0,l=a!==u0&&a!==void 0,u=this.padding(),f=o-u*2,p=a-u*2,m=0,v=this.wrap(),y=v!==TM,x=v!==Xwe&&y,E=this.ellipsis();this.textArr=[],A6().font=this._getContextFont();for(var _=E?this._getTextWidth(L6):0,C=0,T=t.length;C<T;++C){var A=t[C],M=this._getTextWidth(A);if(s&&M>f)for(;A.length>0;){for(var I=0,D=A.length,B="",F=0;I<D;){var H=I+D>>>1,Y=A.slice(0,H+1),te=this._getTextWidth(Y)+_;te<=f?(I=H+1,B=Y,F=te):D=H}if(B){if(x){var G,z=A[B.length],W=z===G3||z===EM;W&&F<=f?G=B.length:G=Math.max(B.lastIndexOf(G3),B.lastIndexOf(EM))+1,G>0&&(I=G,B=B.slice(0,I),F=this._getTextWidth(B))}B=B.trimRight(),this._addTextLine(B),r=Math.max(r,F),m+=i;var K=this._shouldHandleEllipsis(m);if(K){this._tryToAddEllipsisToLastLine();break}if(A=A.slice(I),A=A.trimLeft(),A.length>0&&(M=this._getTextWidth(A),M<=f)){this._addTextLine(A),m+=i,r=Math.max(r,M);break}}else break}else this._addTextLine(A),m+=i,r=Math.max(r,M),this._shouldHandleEllipsis(m)&&C<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!==u0&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==TM;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==u0&&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+L6)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+L6)}}getStrokeScaleEnabled(){return!0}}yr.prototype._fillFunc=Jwe;yr.prototype._strokeFunc=e6e;yr.prototype.className=Uwe;yr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];br(yr);J.overWriteSetter(yr,"width",Kk());J.overWriteSetter(yr,"height",Kk());J.addGetterSetter(yr,"fontFamily","Arial");J.addGetterSetter(yr,"fontSize",12,He());J.addGetterSetter(yr,"fontStyle",dU);J.addGetterSetter(yr,"fontVariant",dU);J.addGetterSetter(yr,"padding",0,He());J.addGetterSetter(yr,"align",cU);J.addGetterSetter(yr,"verticalAlign",jwe);J.addGetterSetter(yr,"lineHeight",1,He());J.addGetterSetter(yr,"wrap",Kwe);J.addGetterSetter(yr,"ellipsis",!1,Ws());J.addGetterSetter(yr,"letterSpacing",0,He());J.addGetterSetter(yr,"text","",q1());J.addGetterSetter(yr,"textDecoration","");var n6e="",hU="normal";function pU(e){e.fillText(this.partialText,0,0)}function gU(e){e.strokeText(this.partialText,0,0)}class di extends Me{constructor(t){super(t),this.dummyCanvas=de.createCanvasElement(),this.dataArray=[],this.dataArray=Fn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Fn.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 de.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.tex
|
||
|
* @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 T1=k.exports;function eCe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tCe=typeof Object.is=="function"?Object.is:eCe,nCe=T1.useState,rCe=T1.useEffect,iCe=T1.useLayoutEffect,oCe=T1.useDebugValue;function aCe(e,t){var n=t(),r=nCe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return iCe(function(){i.value=n,i.getSnapshot=t,R6(i)&&o({inst:i})},[e,n,t]),rCe(function(){return R6(i)&&o({inst:i}),e(function(){R6(i)&&o({inst:i})})},[e]),oCe(n),n}function R6(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tCe(e,n)}catch(r){return!0}}function sCe(e,t){return t()}var lCe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?sCe:aCe;_U.useSyncExternalStore=T1.useSyncExternalStore!==void 0?T1.useSyncExternalStore:lCe;(function(e){e.exports=_U})(CU);var kU={exports:{}},EU={};/**
|
||
|
* @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 zS=k.exports,uCe=CU.exports;function cCe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dCe=typeof Object.is=="function"?Object.is:cCe,fCe=uCe.useSyncExternalStore,hCe=zS.useRef,pCe=zS.useEffect,gCe=zS.useMemo,mCe=zS.useDebugValue;EU.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=hCe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=gCe(function(){function l(v){if(!u){if(u=!0,f=v,v=r(v),i!==void 0&&a.hasValue){var y=a.value;if(i(y,v))return p=y}return p=v}if(y=p,dCe(f,v))return y;var x=r(v);return i!==void 0&&i(y,x)?y:(f=v,p=x)}var u=!1,f,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=fCe(e,o[0],o[1]);return pCe(function(){a.hasValue=!0,a.value=s},[s]),mCe(s),s};(function(e){e.exports=EU})(kU);function vCe(e){e()}let PU=vCe;const yCe=e=>PU=e,bCe=()=>PU,Nd=k.exports.createContext(null);function TU(){return k.exports.useContext(Nd)}const SCe=()=>{throw new Error("uSES not initialized!")};let LU=SCe;const xCe=e=>{LU=e},wCe=(e,t)=>e===t;function CCe(e=Nd){const t=e===Nd?TU:()=>k.exports.useContext(e);return function(r,i=wCe){const{store:o,subscription:a,getServerState:s}=t(),l=LU(a.addNestedSub,o.getState,s||o.getState,r,i);return k.exports.useDebugValue(l),l}}const _Ce=CCe();var kCe={exports:{}},Bn={};/**
|
||
|
* @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 eE=Symbol.for("react.element"),tE=Symbol.for("react.portal"),$S=Symbol.for("react.fragment"),FS=Symbol.for("react.strict_mode"),HS=Symbol.for("react.profiler"),VS=Symbol.for("react.provider"),WS=Symbol.for("react.context"),ECe=Symbol.for("react.server_context"),US=Symbol.for("react.forward_ref"),jS=Symbol.for("react.suspense"),GS=Symbol.for("react.suspense_list"),qS=Symbol.for("react.memo"),YS=Symbol.for("react.lazy"),PCe=Symbol.for("react.offscreen"),AU;AU=Symbol.for("react.module.reference");function rs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eE:switch(e=e.type,e){case $S:case HS:case FS:case jS:case GS:return e;default:switch(e=e&&e.$$typeof,e){case ECe:case WS:case US:case YS:case qS:case VS:return e;default:return t}}case tE:return t}}}Bn.ContextConsumer=WS;Bn.ContextProvider=VS;Bn.Element=eE;Bn.ForwardRef=US;Bn.Fragment=$S;Bn.Lazy=YS;Bn.Memo=qS;Bn.Portal=tE;Bn.Profiler=HS;Bn.StrictMode=FS;Bn.Suspense=jS;Bn.SuspenseList=GS;Bn.isAsyncMode=function(){return!1};Bn.isConcurrentMode=function(){return!1};Bn.isContextConsumer=function(e){return rs(e)===WS};Bn.isContextProvider=function(e){return rs(e)===VS};Bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eE};Bn.isForwardRef=function(e){return rs(e)===US};Bn.isFragment=function(e){return rs(e)===$S};Bn.isLazy=function(e){return rs(e)===YS};Bn.isMemo=function(e){return rs(e)===qS};Bn.isPortal=function(e){return rs(e)===tE};Bn.isProfiler=function(e){return rs(e)===HS};Bn.isStrictMode=function(e){return rs(e)===FS};Bn.isSuspense=function(e){return rs(e)===jS};Bn.isSuspenseList=function(e){return rs(e)===GS};Bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$S||e===HS||e===FS||e===jS||e===GS||e===PCe||typeof e=="object"&&e!==null&&(e.$$typeof===YS||e.$$typeof===qS||e.$$typeof===VS||e.$$typeof===WS||e.$$typeof===US||e.$$typeof===AU||e.getModuleId!==void 0)};Bn.typeOf=rs;(function(e){e.exports=Bn})(kCe);function TCe(){const e=bCe();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 RM={notify(){},get:()=>[]};function LCe(e,t){let n,r=RM;function i(p){return l(),r.subscribe(p)}function o(){r.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=TCe())}function u(){n&&(n(),n=void 0,r.clear(),r=RM)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return f}const ACe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OCe=ACe?k.exports.useLayoutEffect:k.exports.useEffect;function RCe({store:e,context:t,children:n,serverState:r}){const i=k.exports.useMemo(()=>{const s=LCe(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=k.exports.useMemo(()=>e.getState(),[e]);return OCe(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),b((t||Nd).Provider,{value:i,children:n})}function OU(e=Nd){const t=e===Nd?TU:()=>k.exports.useContext(e);return function(){const{store:r}=t();return r}}const MCe=OU();function ICe(e=Nd){const t=e===Nd?MCe:OU(e);return function(){return t().dispatch}}const DCe=ICe();xCe(kU.exports.useSyncExternalStoreWithSelector);yCe(Zl.exports.unstable_batchedUpdates);function W4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W4=function(n){return typeof n}:W4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},W4(e)}function NCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MM(e,t){for(var n=0;n<t
|
||
|
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;
|
||
|
}
|
||
|
`,bI={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};PTe(TTe);var LTe=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=k.exports.useContext(pG).setComponents,u=k.exports.useRef(null),f=k.exports.useRef(null);return k.exports.useEffect(function(){var p=u.current,m=f.current;p!==null&&m!==null&&l&&l(p,m)},[]),b("div",{ref:u,className:"react-transform-wrapper "+bI.wrapper+" "+r,style:a,children:b("div",{ref:f,className:"react-transform-component "+bI.content+" "+o,style:s,children:t})})};function ATe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=k.exports.useState(0),[a,s]=k.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},f=()=>{s(!a)};return b(ETe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:p,zoomOut:m,resetTransform:v,centerView:y})=>ee(In,{children:[ee("div",{className:"lightbox-image-options",children:[b(Qe,{icon:b(B8e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>p(),fontSize:20}),b(Qe,{icon:b(z8e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),b(Qe,{icon:b(D8e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),b(Qe,{icon:b(N8e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),b(Qe,{icon:b(i_e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:f,fontSize:20}),b(Qe,{icon:b(fE,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),b(LTe,{wrapperStyle:{width:"100%",height:"100%"},children:b("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>y(1,0,"easeOut")})})]})})}function OTe(){const e=Ie(),t=ye(m=>m.options.isLightBoxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ye(Cj),[a,s]=k.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},f=()=>{e(Fk())},p=()=>{e($k())};return je("Esc",()=>{t&&e(Iu(!1))},[t]),ee("div",{className:"lightbox-container",children:[b(Qe,{icon:b(I8e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Iu(!1))},fontSize:20}),ee("div",{className:"lightbox-display-container",children:[ee("div",{className:"lightbox-preview-wrapper",children:[b(Sj,{}),!r&&ee("div",{className:"current-image-next-prev-buttons",children:[b("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&b(Qa,{"aria-label":"Previous image",icon:b(NU,{className:"next-prev-button"}),variant:"unstyled",onClick:f})}),b("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&b(Qa,{"aria-label":"Next image",icon:b(BU,{className:"next-prev-button"}),variant:"unstyled",onClick:p})})]}),n&&ee(In,{children:[b(ATe,{image:n.url,styleClass:"lightbox-image"}),r&&b(wj,{image:n})]})]}),b(tG,{})]})]})}const RTe=ot([sE],e=>{const{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=e;return{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),MTe=()=>{const e=Ie(),{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=ye(RTe),{t:o}=Ge();return ee(bt,{direction:"column",gap:"1rem",children:[b($o,{sliderMarkRightOffset:-6,label:o("options:seamSize"),min:1,max:256,sliderNumberInputProps:{max:512},value:t,onChange:a=>{e(rR(a))},handleReset:()=>e(rR(96)),withInput:!0,withSliderMarks:!0,withReset:!0}),b($o,{sliderMarkRightOffset:-4,label:o("options:seamBlur"),min:0,max:64,sliderNumberInputProps:{max:512},value:n,onChange:a=>{e(nR(a))},handleReset:()=>{e(nR(16))},withInput:!0,withSliderMarks:!0,withReset:!0}),b($o,{sliderMarkRightOffset:-7,label:o("options:seamStrength"),min:.01,max:.99,step:.01,value:r,onChange:a=>{e(oR(a))},handleReset:()=>{e(oR(.7))},withInput:!0,withSliderMarks:!0,withReset:!0}),b($o,{sliderMarkRightOffset:-4,label:o("options:seamSteps"),min:1,max:32,sliderNumberInputProps:{max:100},value:i,onChange:a=>{e(iR(a
|
||
|
* @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 VTe=function(t){var n={},r=k.exports,i=N0.exports,o=Object.assign;function a(d){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+d,S=1;S<arguments.length;S++)h+="&args[]="+encodeURIComponent(arguments[S]);return"Minified React error #"+d+"; visit "+h+" 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"),f=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator;function I(d){return d===null||typeof d!="object"?null:(d=M&&d[M]||d["@@iterator"],typeof d=="function"?d:null)}function D(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 f:return"Fragment";case u:return"Portal";case m:return"Profiler";case p:return"StrictMode";case E:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case y:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case x:var h=d.render;return d=d.displayName,d||(d=h.displayName||h.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case C:return h=d.displayName||null,h!==null?h:D(d.type)||"Memo";case T:h=d._payload,d=d._init;try{return D(d(h))}catch(S){}}return null}function B(d){var h=d.type;switch(d.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=h.render,d=d.displayName||d.name||"",h.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(h);case 8:return h===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 h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function F(d){var h=d,S=d;if(d.alternate)for(;h.return;)h=h.return;else{d=h;do h=d,(h.flags&4098)!==0&&(S=h.return),d=h.return;while(d)}return h.tag===3?S:null}function H(d){if(F(d)!==d)throw Error(a(188))}function Y(d){var h=d.alternate;if(!h){if(h=F(d),h===null)throw Error(a(188));return h!==d?null:d}for(var S=d,P=h;;){var L=S.return;if(L===null)break;var R=L.alternate;if(R===null){if(P=L.return,P!==null){S=P;continue}break}if(L.child===R.child){for(R=L.child;R;){if(R===S)return H(L),d;if(R===P)return H(L),h;R=R.sibling}throw Error(a(188))}if(S.return!==P.return)S=L,P=R;else{for(var j=!1,se=L.child;se;){if(se===S){j=!0,S=L,P=R;break}if(se===P){j=!0,P=L,S=R;break}se=se.sibling}if(!j){for(se=R.child;se;){if(se===S){j=!0,S=R,P=L;break}if(se===P){j=!0,P=R,S=L;break}se=se.sibling}if(!j)throw Error(a(189))}}if(S.alternate!==P)throw Error(a(190))}if(S.tag!==3)throw Error(a(188));return S.stateNode.current===S?d:h}function te(d){return d=Y(d),d!==null?G(d):null}function G(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var h=G(d);if(h!==null)return h;d=d.sibling}return null}function z(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var h=z(d);if(h!==null)return h}d=d.sibling}return null}var W=Array.isArray,K=t.getPublicInstance,Z=t.getRootHostContext,U=t.getChildHostContext,Q=t.prepareForCommit,ue=t.resetAfterCommit,fe=t.createInstance,Te=t.appendInitialChild,Oe=t.finalizeInitialChildren,ve=t.prepareUpdate,Ce=t.shouldSetTextContent,Re=t.createTextInstance,Ye=t.scheduleTimeout,Ue=t.cancelTimeout,pt=t.noTimeout,wt=t.isPrimaryRenderer,ut=t.supportsMutation,ft=t.supports
|
||
|
`+ru+d}var qs=!1;function ou(d,h){if(!d||qs)return"";qs=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(ze){var P=ze}Reflect.construct(d,[],h)}else{try{h.call()}catch(ze){P=ze}d.call(h.prototype)}else{try{throw Error()}catch(ze){P=ze}d()}}catch(ze){if(ze&&P&&typeof ze.stack=="string"){for(var L=ze.stack.split(`
|
||
|
`),R=P.stack.split(`
|
||
|
`),j=L.length-1,se=R.length-1;1<=j&&0<=se&&L[j]!==R[se];)se--;for(;1<=j&&0<=se;j--,se--)if(L[j]!==R[se]){if(j!==1||se!==1)do if(j--,se--,0>se||L[j]!==R[se]){var he=`
|
||
|
`+L[j].replace(" at new "," at ");return d.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",d.displayName)),he}while(1<=j&&0<=se);break}}}finally{qs=!1,Error.prepareStackTrace=S}return(d=d?d.displayName||d.name:"")?iu(d):""}var np=Object.prototype.hasOwnProperty,lc=[],Ys=-1;function Yo(d){return{current:d}}function On(d){0>Ys||(d.current=lc[Ys],lc[Ys]=null,Ys--)}function _n(d,h){Ys++,lc[Ys]=d.current,d.current=h}var Ko={},Or=Yo(Ko),Qr=Yo(!1),Xo=Ko;function Ks(d,h){var S=d.type.contextTypes;if(!S)return Ko;var P=d.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===h)return P.__reactInternalMemoizedMaskedChildContext;var L={},R;for(R in S)L[R]=h[R];return P&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=h,d.__reactInternalMemoizedMaskedChildContext=L),L}function Jr(d){return d=d.childContextTypes,d!=null}function as(){On(Qr),On(Or)}function rf(d,h,S){if(Or.current!==Ko)throw Error(a(168));_n(Or,h),_n(Qr,S)}function au(d,h,S){var P=d.stateNode;if(h=h.childContextTypes,typeof P.getChildContext!="function")return S;P=P.getChildContext();for(var L in P)if(!(L in h))throw Error(a(108,B(d)||"Unknown",L));return o({},S,P)}function ss(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Ko,Xo=Or.current,_n(Or,d),_n(Qr,Qr.current),!0}function of(d,h,S){var P=d.stateNode;if(!P)throw Error(a(169));S?(d=au(d,h,Xo),P.__reactInternalMemoizedMergedChildContext=d,On(Qr),On(Or),_n(Or,d)):On(Qr),_n(Qr,S)}var Ci=Math.clz32?Math.clz32:af,rp=Math.log,ip=Math.LN2;function af(d){return d>>>=0,d===0?32:31-(rp(d)/ip|0)|0}var Xs=64,So=4194304;function Zs(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 su(d,h){var S=d.pendingLanes;if(S===0)return 0;var P=0,L=d.suspendedLanes,R=d.pingedLanes,j=S&268435455;if(j!==0){var se=j&~L;se!==0?P=Zs(se):(R&=j,R!==0&&(P=Zs(R)))}else j=S&~L,j!==0?P=Zs(j):R!==0&&(P=Zs(R));if(P===0)return 0;if(h!==0&&h!==P&&(h&L)===0&&(L=P&-P,R=h&-h,L>=R||L===16&&(R&4194240)!==0))return h;if((P&4)!==0&&(P|=S&16),h=d.entangledLanes,h!==0)for(d=d.entanglements,h&=P;0<h;)S=31-Ci(h),L=1<<S,P|=d[S],h&=~L;return P}function hg(d,h){switch(d){case 1:case 2:case 4:return h+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 h+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 uc(d,h){for(var S=d.suspendedLanes,P=d.pingedLanes,L=d.expirationTimes,R=d.pendingLanes;0<R;){var j=31-Ci(R),se=1<<j,he=L[j];he===-1?((se&S)===0||(se&P)!==0)&&(L[j]=hg(se,h)):he<=h&&(d.expiredLanes|=se),R&=~se}}function cc(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function sf(){var d=Xs;return Xs<<=1,(Xs&4194240)===0&&(Xs=64),d}function dc(d){for(var h=[],S=0;31>S;S++)h.push(d);return h}function Ta(d,h,S){d.pendingLanes|=h,h!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,h=31-Ci(h),d[h]=S}function lf(d,h){var S=d.pendingLanes&~h;d.pendingLanes=h,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=h,d.mutableReadLanes&=h,d.entangledLanes&=h,h=d.entanglements;var P=d.eventTimes;for(d=d.expirationTimes;0<S;){var L=31-Ci(S),R=1<<L;h[L]=0,P[L]=-1,d[L]=-1,S&=~R}}function lu(d,h){var S=d.entangledLanes|=h;for(d=d.entanglements;S;){var P=31-Ci(S),L=1<<P;L&h|d[P]&h&&(d[P]|=h),S&=~L}}var Ut=0;function op(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var fc=i.unstable_scheduleCallback,hc
|
||
|
Error generating stack: `+R.message+`
|
||
|
`+R.stack}return{value:d,source:h,stack:L,digest:null}}function Ag(d,h,S){return{value:d,source:null,stack:S!=null?S:null,digest:h!=null?h:null}}function Rc(d,h){try{console.error(h.value)}catch(S){setTimeout(function(){throw S})}}var Pf=typeof WeakMap=="function"?WeakMap:Map;function Og(d,h,S){S=us(-1,S),S.tag=3,S.payload={element:null};var P=h.value;return S.callback=function(){Of||(Of=!0,Rf=P),Rc(d,h)},S}function $(d,h,S){S=us(-1,S),S.tag=3;var P=d.type.getDerivedStateFromError;if(typeof P=="function"){var L=h.value;S.payload=function(){return P(L)},S.callback=function(){Rc(d,h)}}var R=d.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(S.callback=function(){Rc(d,h),typeof P!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var j=h.stack;this.componentDidCatch(h.value,{componentStack:j!==null?j:""})}),S}function hu(d,h,S){var P=d.pingCache;if(P===null){P=d.pingCache=new Pf;var L=new Set;P.set(h,L)}else L=P.get(h),L===void 0&&(L=new Set,P.set(h,L));L.has(S)||(L.add(S),d=Ay.bind(null,d,h,S),h.then(d,d))}function Tf(d){do{var h;if((h=d.tag===13)&&(h=d.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return d;d=d.return}while(d!==null);return null}function eo(d,h,S,P,L){return(d.mode&1)===0?(d===h?d.flags|=65536:(d.flags|=128,S.flags|=131072,S.flags&=-52805,S.tag===1&&(S.alternate===null?S.tag=17:(h=us(-1,1),h.tag=2,el(S,h,1))),S.lanes|=1),d):(d.flags|=65536,d.lanes=L,d)}var Kt=s.ReactCurrentOwner,Hi=!1;function Pi(d,h,S,P){h.child=d===null?cy(h,null,S,P):bc(h,d.child,S,P)}function yy(d,h,S,P,L){S=S.render;var R=h.ref;return vc(h,L),P=Cg(d,h,S,P,R,L),S=wc(),d!==null&&!Hi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~L,ds(d,h,L)):(Vn&&S&&_i(h),h.flags|=1,Pi(d,h,P,L),h.child)}function nl(d,h,S,P,L){if(d===null){var R=S.type;return typeof R=="function"&&!Qg(R)&&R.defaultProps===void 0&&S.compare===null&&S.defaultProps===void 0?(h.tag=15,h.type=R,by(d,h,R,P,L)):(d=Nf(S.type,null,P,h,h.mode,L),d.ref=h.ref,d.return=h,h.child=d)}if(R=d.child,(d.lanes&L)===0){var j=R.memoizedProps;if(S=S.compare,S=S!==null?S:uu,S(j,P)&&d.ref===h.ref)return ds(d,h,L)}return h.flags|=1,d=ro(R,P),d.ref=h.ref,d.return=h,h.child=d}function by(d,h,S,P,L){if(d!==null){var R=d.memoizedProps;if(uu(R,P)&&d.ref===h.ref)if(Hi=!1,h.pendingProps=P=R,(d.lanes&L)!==0)(d.flags&131072)!==0&&(Hi=!0);else return h.lanes=d.lanes,ds(d,h,L)}return Rg(d,h,S,P,L)}function Sy(d,h,S){var P=h.pendingProps,L=P.children,R=d!==null?d.memoizedState:null;if(P.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},_n(ol,to),to|=S;else{if((S&1073741824)===0)return d=R!==null?R.baseLanes|S:S,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:d,cachePool:null,transitions:null},h.updateQueue=null,_n(ol,to),to|=d,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=R!==null?R.baseLanes:S,_n(ol,to),to|=P}else R!==null?(P=R.baseLanes|S,h.memoizedState=null):P=S,_n(ol,to),to|=P;return Pi(d,h,L,S),h.child}function xy(d,h){var S=h.ref;(d===null&&S!==null||d!==null&&d.ref!==S)&&(h.flags|=512,h.flags|=2097152)}function Rg(d,h,S,P,L){var R=Jr(S)?Xo:Or.current;return R=Ks(h,R),vc(h,L),S=Cg(d,h,S,P,R,L),P=wc(),d!==null&&!Hi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~L,ds(d,h,L)):(Vn&&P&&_i(h),h.flags|=1,Pi(d,h,S,L),h.child)}function wy(d,h,S,P,L){if(Jr(S)){var R=!0;ss(h)}else R=!1;if(vc(h,L),h.stateNode===null)Ma(d,h),sy(h,S,P),bg(h,S,P,L),P=!0;else if(d===null){var j=h.stateNode,se=h.memoizedProps;j.props=se;var he=j.context,ze=S.contextType;typeof ze=="object"&&ze!==null?ze=Ji(ze):(ze=Jr(S)?Xo:Or.current,ze=Ks(h,ze));var it=S.getDerivedStateFromProps,Mt=typeof it=="function"||typeof j.getSnapshotBeforeUpdate=="function";Mt||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(se!==P||he!==ze)&&ly(h,j,P,ze),ls=!1;var Ze=h.memoizedState;j.state=Ze,hp(h,P,j,L),he=h.memoizedState,se!==P||Ze!==he||Qr.current||ls?(typeof it=="function"&&(gp(h,S,it,P),he=h.memoizedState),(se=ls||yf(h,S,se,P,Ze,he,ze))?(Mt||typeof j.UNSAFE_componentWillMoun
|
||
|
`+(P.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 K(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:Gp,findFiberByHostInstance:d.findFiberByHostInstance||tm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(h.isDisabled||!h.supportsFiber)d=!0;else{try{pn=h.inject(d),jt=h}catch(S){}d=!!h.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,h,S,P){if(!Pt)throw Error(a(363));d=Wg(d,h);var L=Zt(d,S,P).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(d,h){var S=h._getVersion;S=S(h._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[h,S]:d.mutableSourceEagerHydrationData.push(h,S)},n.runWithPriority=function(d,h){var S=Ut;try{return Ut=d,h()}finally{Ut=S}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,h,S,P){var L=h.current,R=mi(),j=Nr(L);return S=Jg(S),h.context===null?h.context=S:h.pendingContext=S,h=us(R,j),h.payload={element:d},P=P===void 0?null:P,P!==null&&(h.callback=P),d=el(L,h,j),d!==null&&(Po(d,L,j,R),fp(d,L,j)),j},n};(function(e){e.exports=VTe})(mG);const WTe=Y9(mG.exports);var DE={exports:{}},Qh={};/**
|
||
|
* @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.
|
||
|
*/Qh.ConcurrentRoot=1;Qh.ContinuousEventPriority=4;Qh.DefaultEventPriority=16;Qh.DiscreteEventPriority=1;Qh.IdleEventPriority=536870912;Qh.LegacyRoot=0;(function(e){e.exports=Qh})(DE);const SI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let xI=!1,wI=!1;const NE=".react-konva-event",UTe=`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
|
||
|
`,jTe=`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
|
||
|
`,GTe={};function fx(e,t,n=GTe){if(!xI&&"zIndex"in t&&(console.warn(jTe),xI=!0),!wI&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(UTe),wI=!0)}for(var o in n)if(!SI[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 f=t._useStrictMode,p={},m=!1;const v={};for(var o in t)if(!SI[o]){var a=o.slice(0,2)==="on",y=n[o]!==t[o];if(a&&y){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]||f&&t[o]!==e.getAttr(o))&&(m=!0,p[o]=t[o])}m&&(e.setAttrs(p),ef(e));for(var l in v)e.on(l+NE,v[l])}function ef(e){if(!lt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const vG={},qTe={};Dh.Node.prototype._applyProps=fx;function YTe(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),ef(e)}function KTe(e,t,n){let r=Dh[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=Dh.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 fx(l,o),l}function XTe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function ZTe(e,t,n){return!1}function QTe(e){return e}function JTe(){return null}function eLe(){return null}function tLe(e,t,n,r){return qTe}function nLe(){}function rLe(e){}function iLe(e,t){return!1}function oLe(){return vG}function aLe(){return vG}const sLe=setTimeout,lLe=clearTimeout,uLe=-1;function cLe(e,t){return!1}const dLe=!1,fLe=!0,hLe=!0;function pLe(e,t){t.parent===e?t.moveToTop():e.add(t),ef(e)}function gLe(e,t){t.parent===e?t.moveToTop():e.add(t),ef(e)}function yG(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),ef(e)}function mLe(e,t,n){yG(e,t,n)}function vLe(e,t){t.destroy(),t.off(NE),ef(e)}function yLe(e,t){t.destroy(),t.off(NE),ef(e)}function bLe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function SLe(e,t,n){}function xLe(e,t,n,r,i){fx(e,i,r)}function wLe(e){e.hide(),ef(e)}function CLe(e){}function _Le(e,t){(t.visible==null||t.visible)&&e.show()}function kLe(e,t){}function ELe(e){}function PLe(){}const TLe=()=>DE.exports.DefaultEventPriority,LLe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:YTe,createInstance:KTe,createTextInstance:XTe,finalizeInitialChildren:ZTe,getPublicInstance:QTe,prepareForCommit:JTe,preparePortalMount:eLe,prepareUpdate:tLe,resetAfterCommit:nLe,resetTextContent:rLe,shouldDeprioritizeSubtree:iLe,getRootHostContext:oLe,getChildHostContext:aLe,scheduleTimeout:sLe,cancelTimeout:lLe,noTimeout:uLe,shouldSetTextContent:cLe,isPrimaryRenderer:dLe,warnsIfNotActing:fLe,supportsMutation:hLe,appendChild:pLe,appendChildToContainer:gLe,insertBefore:yG,insertInContainerBefore:mLe,removeChild:vLe,removeChildFromContainer:yLe,commitTextUpdate:bLe,commitMount:SLe,commitUpdate:xLe,hideInstance:wLe,hideTextInstance:CLe,unhideInstance:_Le,unhideTextInstance:kLe,clearContainer:ELe,detachDeletedInstance:PLe,getCurrentEventPriority:TLe,now:N0.exports.unstable_now,idlePriority:N0.exports.unstable_IdlePriority,run:N0.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var ALe=Object.defineProperty,OLe=Object.defineProperties,RLe=Object.getOwnPropertyDescriptors,CI=Object.getOwnPropertySymbols,MLe=Object.prototype.hasOwnProperty,ILe=Object.prototype.propertyIsEnumerable,_I=(e,t,n)=>t in e?ALe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kI=(e,t)=>{for(var n in t||(t={}))MLe.call(t,n)&&_I(e,n,t[n]);if(CI)
|
||
|
<!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),JLe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ye(QLe),[a,s]=k.exports.useState(null),[l,u]=k.exports.useState(0),f=k.exports.useRef(null),p=k.exports.useCallback(()=>{u(l+1),setTimeout(p,500)},[l]);return k.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=PI(n)},[a,n]),k.exports.useEffect(()=>{!a||(a.src=PI(n))},[a,n]),k.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),!a||!ai.exports.isNumber(r.x)||!ai.exports.isNumber(r.y)||!ai.exports.isNumber(o)||!ai.exports.isNumber(i.width)||!ai.exports.isNumber(i.height)?null:b(Xu,{ref:f,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:ai.exports.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},eAe=ot([en],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),tAe=e=>{const t=Ie(),{isMoveStageKeyHeld:n,stageScale:r}=ye(eAe);return k.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=We.clamp(r*Wbe**s,Ube,jbe),u={x:o.x-a.x*l,y:o.y-a.y*l};t(ySe(l)),t(xW(u))},[e,n,r,t])},$E=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:r.x,y:r.y}},wG=()=>{const e=Ie(),t=Fs(),n=SU();return{updateColorUnderCursor:()=>{if(!n||!t)return;const r=n.getPointerPosition();if(!r)return;const i=h0.pixelRatio,[o,a,s,l]=t.getContext().getImageData(r.x*i,r.y*i,1,1).data;e(fSe({r:o,g:a,b:s,a:l}))},commitColorUnderCursor:()=>{e(tSe())}}},nAe=ot([Sr,en,xr],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),rAe=e=>{const t=Ie(),{tool:n,isStaging:r}=ye(nAe),{commitColorUnderCursor:i}=wG();return k.exports.useCallback(o=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(tb(!0));return}if(n==="colorPicker"){i();return}const a=$E(e.current);!a||(o.evt.preventDefault(),t(fW(!0)),t(eSe([a.x,a.y])))},[e,n,r,t,i])},iAe=ot([Sr,en,xr],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),oAe=(e,t)=>{const n=Ie(),{tool:r,isDrawing:i,isStaging:o}=ye(iAe);return k.exports.useCallback(()=>{if(r==="move"||o){n(tb(!1));return}if(!t.current&&i&&e.current){const a=$E(e.current);if(!a)return;n(uW([a.x,a.y]))}else t.current=!1;n(fW(!1))},[t,n,i,o,e,r])},aAe=ot([Sr,en,xr],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),sAe=(e,t,n)=>{const r=Ie(),{isDrawing:i,tool:o,isStaging:a}=ye(aAe),{updateColorUnderCursor:s}=wG();return k.exports.useCallback(()=>{if(!e.current)return;const l=$E(e.current);if(!!l){if(r(hSe(l)),n.current=l,o==="colorPicker"){s();return}!i||o==="move"||a||(t.current=!0,r(uW([l.x,l.y])))}},[t,r,i,a,n,e,o,s])},lAe=()=>{const e=Ie();return k.exports.useCallback(()=>{e(iSe())},[e])},uAe=ot([en,xr],(e,t)=>{const{tool:n,isMovingBoundingBox:r}=e;return{tool:n,isStaging:t,isMovingBoundingBox:r}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),cAe=()=>{const e=Ie(),{tool:t,isStaging:n,isMovingBoundingBox:r}=ye(uAe);return{handleDragStart:k.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(tb(!0))},[e,r,n,t]),handleDragMove:k.exports.useCallback(i=>{if(!((t==="move"||n)&&!r))return;const o={x:i.target.x(),y:i.target.y()};e(xW(o))},[e,r,n,t]),handleDragEnd:k.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(tb(!1))},[e,r,n,t])}};var qf=k.exports,dAe=function(t,n,r){const i=qf.useRef("loading"),o=qf.useRef(),[a,s]=qf.useState(0),l=qf.useRef(),u=qf.useRef(),f=qf.useRef();return(l.current!==t||u.current!==n||f.current!==r)&&(i.current="
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oRe(e){if(Array.isArray(e))return U9(e)}function DI(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 NI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DI(Object(n),!0).forEach(function(r){NG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w2(e,t){return lRe(e)||sRe(e,t)||BG(e,t)||aRe()}function aRe(){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 BG(e,t){if(!!e){if(typeof e=="string")return U9(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 U9(e,t)}}function U9(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 sRe(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 lRe(e){if(Array.isArray(e))return e}var uRe="file-invalid-type",cRe="file-too-large",dRe="file-too-small",fRe="too-many-files",hRe=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:uRe,message:"File type must be ".concat(n)}},BI=function(t){return{code:cRe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},zI=function(t){return{code:dRe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},pRe={code:fRe,message:"Too many files"};function zG(e,t){var n=e.type==="application/x-moz-file"||nRe(e,t);return[n,n?null:hRe(t)]}function $G(e,t,n){if(rh(e.size))if(rh(t)&&rh(n)){if(e.size>n)return[!1,BI(n)];if(e.size<t)return[!1,zI(t)]}else{if(rh(t)&&e.size<t)return[!1,zI(t)];if(rh(n)&&e.size>n)return[!1,BI(n)]}return[!0,null]}function rh(e){return e!=null}function gRe(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=zG(l,n),f=w2(u,1),p=f[0],m=$G(l,r,i),v=w2(m,1),y=v[0],x=s?s(l):null;return p&&y&&!x})}function gb(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function n4(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 $I(e){e.preventDefault()}function mRe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function vRe(e){return e.indexOf("Edge/")!==-1}function yRe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mRe(e)||vRe(e)}function Sl(){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!gb(r)&&s&&s.apply(void 0,[r].concat(o)),gb(r)})}}function bRe(){return"showOpenFilePicker"in window}function SRe(e){if(rh(e)){var t=Object.entries(e).filter(function(n){var r=w2(n,2),i=r[0],o=r[1],a=!0;return FG(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(HG))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=w2(r,2),o=i[0],a=i[1];return NI(NI({},n),{},NG({},o,a))},{});return[{description:"Files",accept:t}]}return e}function xRe(e){if(rh(e))return Object.entries(e).reduce(function(t,n){var r=w2(n,2),i=r[0],o=r[1];return[].concat(II(t),[i],II(o))},[]).filter(function(t){return FG(t)||HG(t)}).join(",")}function wRe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function CRe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function FG(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function HG(e){return/^.*\.[\w]+$/.test(e)}var _Re=["children"],kRe=["open"],ERe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ARe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ORe(e){if(Array.isArray(e))return j9(e)}function W6(e,t){return IRe(e)||MRe(e,t)||VG(e,t)||RRe()}function RRe(){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 VG(e,t){if(!!e){if(typeof e=="string")return j9(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 j9(e,t)}}function j9(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 MRe(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 IRe(e){if(Array.isArray(e))return e}function FI(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 fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(r){G9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mb(e,t){if(e==null)return{};var n=DRe(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 DRe(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 WE=k.exports.forwardRef(function(e,t){var n=e.children,r=mb(e,_Re),i=UG(r),o=i.open,a=mb(i,kRe);return k.exports.useImperativeHandle(t,function(){return{open:o}},[o]),b(k.exports.Fragment,{children:n(fr(fr({},a),{},{open:o}))})});WE.displayName="Dropzone";var WG={disabled:!1,getFilesFromEvent:qOe,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};WE.defaultProps=WG;WE.propTypes={children:$n.exports.func,accept:$n.exports.objectOf($n.exports.arrayOf($n.exports.string)),multiple:$n.exports.bool,preventDropOnDocument:$n.exports.bool,noClick:$n.exports.bool,noKeyboard:$n.exports.bool,noDrag:$n.exports.bool,noDragEventsBubbling:$n.exports.bool,minSize:$n.exports.number,maxSize:$n.exports.number,maxFiles:$n.exports.number,disabled:$n.exports.bool,getFilesFromEvent:$n.exports.func,onFileDialogCancel:$n.exports.func,onFileDialogOpen:$n.exports.func,useFsAccessApi:$n.exports.bool,autoFocus:$n.exports.bool,onDragEnter:$n.exports.func,onDragLeave:$n.exports.func,onDragOver:$n.exports.func,onDrop:$n.exports.func,onDropAccepted:$n.exports.func,onDropRejected:$n.exports.func,onError:$n.exports.func,validator:$n.exports.func};var q9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function UG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},WG),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,f=t.onDragLeave,p=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,_=t.useFsAccessApi,C=t.autoFocus,T=t.preventDropOnDocument,A=t.noClick,M=t.noKeyboard,I=t.noDrag,D=t.noDragEventsBubbling,B=t.onError,F=t.validator,H=k.exports.useMemo(function(){return xRe(n)},[n]),Y=k.exports.useMemo(function(){return SRe(n)},[n]),te=k.exports.useMemo(function(){return typeof E=="function"?E:HI},[E]),G=k.exports.useMemo(function(){return typeof x=="function"?x:HI},[x]),z=k.exports.useRef(null),W=k.exports.useRef(null),K=k.export
|
||
|
`+I.message,"");i({title:o("toast:uploadFailed"),description:A,status:"error",isClosable:!0})},[o,i]),f=k.exports.useCallback(async T=>{n(VI({imageFile:T}))},[n]),p=k.exports.useCallback((T,A)=>{A.forEach(M=>{u(M)}),T.forEach(M=>{f(M)})},[f,u]),{getRootProps:m,getInputProps:v,isDragAccept:y,isDragReject:x,isDragActive:E,open:_}=UG({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:p,onDragOver:()=>s(!0),maxFiles:1});l(_),k.exports.useEffect(()=>{const T=A=>{var B;const M=(B=A.clipboardData)==null?void 0:B.items;if(!M)return;const I=[];for(const F of M)F.kind==="file"&&["image/png","image/jpg"].includes(F.type)&&I.push(F);if(!I.length)return;if(A.stopImmediatePropagation(),I.length>1){i({description:o("toast:uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const D=I[0].getAsFile();if(!D){i({description:o("toast:uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(VI({imageFile:D}))};return document.addEventListener("paste",T),()=>{document.removeEventListener("paste",T)}},[o,n,i,r]);const C=["img2img","unifiedCanvas"].includes(r)?` to ${Va[r].tooltip}`:"";return b(kE.Provider,{value:_,children:ee("div",{...m({style:{}}),onKeyDown:T=>{T.key},children:[b("input",{...v()}),t,E&&a&&b(BRe,{isDragAccept:y,isDragReject:x,overlaySecondaryText:C,setIsHandlingUpload:s})]})})},$Re=()=>{const e=Ie(),t=ye(w7e),n=j2();k.exports.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(Fbe())},[e,n,t])},jG=ot([e=>e.options,e=>e.gallery,Sr],(e,t,n)=>{const{shouldPinOptionsPanel:r,shouldShowOptionsPanel:i,shouldHoldOptionsPanelOpen:o,shouldUseCanvasBetaLayout:a}=e,{shouldShowGallery:s,shouldPinGallery:l,shouldHoldGalleryOpen:u}=t,f=a&&n==="unifiedCanvas",p=!f&&!(i||o&&!r)&&["txt2img","img2img","unifiedCanvas"].includes(n),m=!(s||u&&!l)&&["txt2img","img2img","unifiedCanvas"].includes(n);return{shouldPinOptionsPanel:r,shouldShowProcessButtons:!f&&(!r||!i),shouldShowOptionsPanelButton:p,shouldShowOptionsPanel:i,shouldShowGallery:s,shouldPinGallery:l,shouldShowGalleryButton:m}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),FRe=()=>{const e=Ie(),{shouldShowOptionsPanel:t,shouldShowOptionsPanelButton:n,shouldShowProcessButtons:r,shouldPinOptionsPanel:i,shouldShowGallery:o,shouldPinGallery:a}=ye(jG),s=()=>{e(Du(!0)),i&&setTimeout(()=>e(li(!0)),400)};return je("f",()=>{o||t?(e(Du(!1)),e(kd(!1))):(e(Du(!0)),e(kd(!0))),(a||i)&&setTimeout(()=>e(li(!0)),400)},[o,t]),n?ee("div",{className:"show-hide-button-options",children:[b(Qe,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:s,children:b(aE,{})}),r&&ee(In,{children:[b(bE,{iconButton:!0}),b(SE,{})]})]}):null},HRe=()=>{const e=Ie(),{shouldShowGallery:t,shouldShowGalleryButton:n,shouldPinGallery:r,shouldShowOptionsPanel:i,shouldPinOptionsPanel:o}=ye(jG),a=()=>{e(kd(!0)),r&&e(li(!0))};return je("f",()=>{t||i?(e(Du(!1)),e(kd(!1))):(e(Du(!0)),e(kd(!0))),(r||o)&&setTimeout(()=>e(li(!0)),400)},[t,i]),n?b(Qe,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:a,children:b(fj,{})}):null};C8e();const VRe=()=>($Re(),ee("div",{className:"App",children:[ee(zRe,{children:[b(HCe,{}),ee("div",{className:"app-content",children:[b(O7e,{}),b(WOe,{})]}),b("div",{className:"app-console",children:b(w8e,{})})]}),b(FRe,{}),b(HRe,{})]}));const WRe=wB({key:"invokeai-style-cache",prepend:!0});j6.createRoot(document.getElementById("root")).render(b(oe.StrictMode,{children:b(RCe,{store:wU,children:b(RU,{loading:b(IM,{}),persistor:MU,children:b(ene,{value:WRe,children:b(Zye,{children:b(oe.Suspense,{fallback:b(IM,{}),children:b(VRe,{})})})})})})}));export{jRe as __vite_legacy_guard};
|