easydiffusion/ui/frontend/dist/index.js

98 lines
300 KiB
JavaScript
Raw Normal View History

2022-09-19 21:52:51 +02:00
(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},b={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/var Zr=Symbol.for("react.element"),hh=Symbol.for("react.portal"),gh=Symbol.for("react.fragment"),vh=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),yh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),wh=Symbol.for("react.forward_ref"),kh=Symbol.for("react.suspense"),Oh=Symbol.for("react.memo"),xh=Symbol.for("react.lazy"),nu=Symbol.iterator;function _h(e){return e===null||typeof e!="object"?null:(e=nu&&e[nu]||e["@@iterator"],typeof e=="function"?e:null)}var mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yf=Object.assign,Sf={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Sf,this.updater=n||mf}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wf(){}wf.prototype=nr.prototype;function Ba(e,t,n){this.props=e,this.context=t,this.refs=Sf,this.updater=n||mf}var Qa=Ba.prototype=new wf;Qa.constructor=Ba;yf(Qa,nr.prototype);Qa.isPureReactComponent=!0;var ru=Array.isArray,kf=Object.prototype.hasOwnProperty,Va={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function xf(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)kf.call(t,r)&&!Of.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Zr,type:e,key:o,ref:s,props:i,_owner:Va.current}}function Ph(e,t){return{$$typeof:Zr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ha(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zr}function Ch(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iu=/\/+/g;function Jo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ch(""+e.key):t.toString(36)}function Ei(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Zr:case hh:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Jo(s,0):r,ru(i)?(n="",e!=null&&(n=e.replace(iu,"$&/")+"/"),Ei(i,t,n,"",function(u){return u})):i!=null&&(Ha(i)&&(i=Ph(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(iu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",ru(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Jo(o,a);s+=Ei(o,t,n,l,i)}else if(l=_h(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Jo(o,a++),s+=Ei(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 s}function si(e,t,n){if(e==null)return e;var r=[],i=0;return Ei(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Eh(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 Se={current:null},Ri={transition:null},Rh={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Ri,ReactCurrentOwner:Va};b.Children={map:si,forEach:function(e,t,n){si(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return si(e,function(){t++}),t},toArray:function(e){return si(e,function(t){return t})||[]},only:function(e){if(!Ha(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};b.Component=nr;b.Fragment=gh;b.Profiler=mh;b.Pure
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/(function(e){function t(I,T){var F=I.length;I.push(T);e:for(;0<F;){var $=F-1>>>1,J=I[$];if(0<i(J,T))I[$]=T,I[F]=J,F=$;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var T=I[0],F=I.pop();if(F!==T){I[0]=F;e:for(var $=0,J=I.length,wn=J>>>1;$<wn;){var Ne=2*($+1)-1,kn=I[Ne],Ie=Ne+1,vt=I[Ie];if(0>i(kn,F))Ie<J&&0>i(vt,kn)?(I[$]=vt,I[Ie]=F,$=Ie):(I[$]=kn,I[Ne]=F,$=Ne);else if(Ie<J&&0>i(vt,F))I[$]=vt,I[Ie]=F,$=Ie;else break e}}return T}function i(I,T){var F=I.sortIndex-T.sortIndex;return F!==0?F:I.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,v=!1,m=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(I){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=I)r(u),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(u)}}function y(I){if(S=!1,h(I),!m)if(n(l)!==null)m=!0,Nt(_);else{var T=n(u);T!==null&&gt(y,T.startTime-I)}}function _(I,T){m=!1,S&&(S=!1,g(O),O=-1),v=!0;var F=d;try{for(h(T),f=n(l);f!==null&&(!(f.expirationTime>T)||I&&!M());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var J=$(f.expirationTime<=T);T=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&r(l),h(T)}else r(l);f=n(l)}if(f!==null)var wn=!0;else{var Ne=n(u);Ne!==null&&gt(y,Ne.startTime-T),wn=!1}return wn}finally{f=null,d=F,v=!1}}var P=!1,x=null,O=-1,R=5,D=-1;function M(){return!(e.unstable_now()-D<R)}function ne(){if(x!==null){var I=e.unstable_now();D=I;var T=!0;try{T=x(!0,I)}finally{T?Re():(P=!1,x=null)}}else P=!1}var Re;if(typeof p=="function")Re=function(){p(ne)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,sr=Oe.port2;Oe.port1.onmessage=ne,Re=function(){sr.postMessage(null)}}else Re=function(){w(ne,0)};function Nt(I){x=I,P||(P=!0,Re())}function gt(I,T){O=w(function(){I(e.unstable_now())},T)}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(I){I.callback=null},e.unstable_continueExecution=function(){m||v||(m=!0,Nt(_))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var T=3;break;default:T=d}var F=d;d=T;try{return I()}finally{d=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,T){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var F=d;d=I;try{return T()}finally{d=F}},e.unstable_scheduleCallback=function(I,T,F){var $=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?$+F:$):F=$,I){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=F+J,I={id:c++,callback:T,priorityLevel:I,startTime:F,expirationTime:J,sortIndex:-1},F>$?(I.sortIndex=F,t(u,I),n(l)===null&&I===n(u)&&(S?(g(O),O=-1):S=!0,gt(y,F-$))):(I.sortIndex=J,t(l,I),m||v||(m=!0,Nt(_))),I},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(I){var T=d;return function(){var F=d;d=T;try{return I.apply(this,arguments)}finally{d=F}}}})(Ef);(function(e){e.exports=Ef})(Cf);/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/var Rf=E.exports,Te=Cf.exports;function C(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 Nf=new Set,Lr={};function mn(e,t){Vn(e,t),Vn(e+"Capture",t)}function Vn(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Nf.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=Object.prototype.hasOwnProperty,Nh=/^[: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]*$/,ou={},su={};function Ih(e){return js.call(su,e)?!0:js.call(ou,e)?!1:Nh.test(e)?su[e]=!0:(ou[e]=!0,!1)}function Lh(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 Dh(e,t,n,r){if(t===null||typeof t>"u"||Lh(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 we(e,t,n,r,i,o,s){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=s}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new we(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){ce[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ka=/[\-:]([a-z])/g;function qa(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-ad
2022-09-19 19:40:17 +02:00
`+Xo+e}var Zo=!1;function es(e,t){if(!e||Zo)return"";Zo=!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(`
2022-09-17 00:35:48 +02:00
`),o=r.stack.split(`
2022-09-19 03:57:17 +02:00
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
2022-09-19 21:52:51 +02:00
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mr(e):""}function jh(e){switch(e.tag){case 5:return mr(e.type);case 16:return mr("Lazy");case 13:return mr("Suspense");case 19:return mr("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function Ms(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 Cn:return"Fragment";case Pn:return"Portal";case Ts:return"Profiler";case Ga:return"StrictMode";case Fs:return"Suspense";case bs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lf:return(e.displayName||"Context")+".Consumer";case If:return(e._context.displayName||"Context")+".Provider";case Ya:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ja:return t=e.displayName||null,t!==null?t:Ms(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return Ms(e(t))}catch{}}return null}function Th(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 Ms(t);case 8:return t===Ga?"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 Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fh(e){var t=jf(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=Fh(e))}function Tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function As(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(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 Ff(e,t){t=t.checked,t!=null&&Wa(e,"checked",t,!1)}function Us(e,t){Ff(e,t);var n=Gt(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")?zs(e,t.type,n):t.hasOwnProperty("defaultValue")&&zs(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(e,t,n){if(t.hasOwnPropert
`).replace(Hg,"")}function vi(e,t,n){if(t=Du(t),Du(e)!==t&&n)throw Error(C(425))}function Gi(){}var ea=null,ta=null;function na(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 ra=typeof setTimeout=="function"?setTimeout:void 0,Kg=typeof clearTimeout=="function"?clearTimeout:void 0,ju=typeof Promise=="function"?Promise:void 0,qg=typeof queueMicrotask=="function"?queueMicrotask:typeof ju<"u"?function(e){return ju.resolve(null).then(e).catch(Wg)}:ra;function Wg(e){setTimeout(function(){throw e})}function ps(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),br(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);br(t)}function Bt(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 Tu(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 ir=Math.random().toString(36).slice(2),at="__reactFiber$"+ir,$r="__reactProps$"+ir,_t="__reactContainer$"+ir,ia="__reactEvents$"+ir,Gg="__reactListeners$"+ir,Yg="__reactHandles$"+ir;function on(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tu(e);e!==null;){if(n=e[at])return n;e=Tu(e)}return t}e=n,n=e.parentNode}return null}function ni(e){return e=e[at]||e[_t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function In(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Ro(e){return e[$r]||null}var oa=[],Ln=-1;function Zt(e){return{current:e}}function V(e){0>Ln||(e.current=oa[Ln],oa[Ln]=null,Ln--)}function B(e,t){Ln++,oa[Ln]=e.current,e.current=t}var Yt={},he=Zt(Yt),Pe=Zt(!1),fn=Yt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Yt;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 Ce(e){return e=e.childContextTypes,e!=null}function Yi(){V(Pe),V(he)}function Fu(e,t,n){if(he.current!==Yt)throw Error(C(168));B(he,t),B(Pe,n)}function xd(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(C(108,Th(e)||"Unknown",i));return W({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,fn=he.current,B(he,e),B(Pe,Pe.current),!0}function bu(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=xd(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,V(Pe),V(he),B(he,e)):V(Pe),B(Pe,n)}var yt=null,No=!1,hs=!1;function _d(e){yt===null?yt=[e]:yt.push(e)}function Jg(e){No=!0,_d(e)}function en(){if(!hs&&yt!==null){hs=!0;var e=0,t=z;try{var n=yt;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,No=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Gf(Za,en),i}finally{z=t,hs=!1}}return null}var Dn=[],jn=0,Xi=null,Zi=0,Ue=[],ze=0,dn=null,wt=1,kt="";function nn(e,t){Dn[jn++]=Zi,Dn[jn++]=Xi,Xi=e,Zi=t}function Pd(e,t,n){Ue[ze++]=wt,Ue[ze++]=kt,Ue[ze++]=dn,dn=e;var r=wt;e=kt;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var o=32-Xe(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,wt=1<<32-Xe(t)+i|n<<i|r,kt=o+e}else wt=1<<o|n<<i|r,kt=e}function ll(e){e.return!==null&&(nn(e,1),Pd(e,1,0))}function ul(e){for(;e===Xi;)Xi=Dn[--jn],Dn[jn]=null,Zi=Dn[--jn],Dn[jn]=null;for(;e===dn;)dn=Ue[--ze],Ue[ze]=null,kt=Ue[--ze],Ue[ze]=null,wt=Ue[--ze],Ue[ze]=null}var je=null,De=null,H=!1,Je=null;function Cd(e,t){var n=Be(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2022-09-17 00:35:48 +02:00
Error generating stack: `+o.message+`
2022-09-19 21:52:51 +02:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ss(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function fa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sv=typeof WeakMap=="function"?WeakMap:Map;function ep(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ao||(ao=!0,ka=r),fa(e,t)},n}function tp(e,t,n){n=Ot(-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(){fa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){fa(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sv;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=wv.bind(null,e,t,n),t.then(e,e))}function qu(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 Wu(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=Ot(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var av=Rt.ReactCurrentOwner,_e=!1;function ve(e,t,n,r){t.child=e===null?jd(t,null,n,r):qn(t,e.child,n,r)}function Gu(e,t,n,r,i){n=n.render;var o=t.ref;return Bn(t,i),r=wl(e,t,n,r,o,i),n=kl(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(H&&n&&ll(t),t.flags|=1,ve(e,t,r,i),t.child)}function Yu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ll(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,np(e,t,o,r,i)):(e=Ai(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ar,n(s,r)&&e.ref===t.ref)return Ct(e,t,i)}return t.flags|=1,e=Kt(o,r),e.ref=t.ref,e.return=t,t.child=e}function np(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ar(o,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Ct(e,t,i)}return da(e,t,n,r,i)}function rp(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},B(bn,Le),Le|=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,B(bn,Le),Le|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(bn,Le),Le|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(bn,Le),Le|=r;return ve(e,t,i,n),t.child}function ip(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function da(e,t,n,r,i){var o=Ce(n)?fn:he.current;return o=Hn(t,o),Bn(t,i),n=wl(e,t,n,r,o,i),r=kl(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(H&&r&&ll(t),t.flags|=1,ve(e,t,n,i),t.child)}function Ju(e,t,n,r,i){if(Ce(n)){var o=!0;Ji(t)}else o=!1;if(Bn(t,i),t.stateNode===null)Fi(e,t),Ld(t,n,r),ca(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ve(u):(u=Ce(n)?fn:he.current,u=Hn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Bu(t,s,r,u),jt=!1;var d=t.memoizedState;s.state=d,no(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Pe.current||jt?(typeof c=="function"&&(ua(t,n,c,r),l=t.memoizedState),(a=jt||$u(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillM
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/var Jn=E.exports;function Lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dv=typeof Object.is=="function"?Object.is:Lv,jv=Jn.useState,Tv=Jn.useEffect,Fv=Jn.useLayoutEffect,bv=Jn.useDebugValue;function Mv(e,t){var n=t(),r=jv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Fv(function(){i.value=n,i.getSnapshot=t,xs(i)&&o({inst:i})},[e,n,t]),Tv(function(){return xs(i)&&o({inst:i}),e(function(){xs(i)&&o({inst:i})})},[e]),bv(n),n}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dv(e,n)}catch{return!0}}function Av(e,t){return t()}var Uv=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Av:Mv;Ep.useSyncExternalStore=Jn.useSyncExternalStore!==void 0?Jn.useSyncExternalStore:Uv;(function(e){e.exports=Ep})(bl);var Uo={exports:{}},zo={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/var zv=E.exports,$v=Symbol.for("react.element"),Bv=Symbol.for("react.fragment"),Qv=Object.prototype.hasOwnProperty,Vv=zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hv={key:!0,ref:!0,__self:!0,__source:!0};function Rp(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Qv.call(t,r)&&!Hv.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:$v,type:e,key:o,ref:s,props:i,_owner:Vv.current}}zo.Fragment=Bv;zo.jsx=Rp;zo.jsxs=Rp;(function(e){e.exports=zo})(Uo);const Sn=Uo.exports.Fragment,k=Uo.exports.jsx,N=Uo.exports.jsxs;/**
2022-09-14 16:48:46 +02:00
* react-query
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-19 21:52:51 +02:00
*/class ii{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Wr=typeof window>"u";function Ae(){}function Kv(e,t){return typeof e=="function"?e(t):e}function Pa(e){return typeof e=="number"&&e>=0&&e!==1/0}function Np(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ui(e,t,n){return $o(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Tt(e,t,n){return $o(e)?[{...t,queryKey:e},n]:[e||{},t]}function fc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if($o(s)){if(r){if(t.queryHash!==Ml(s,t.options))return!1}else if(!fo(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function dc(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if($o(o)){if(!t.options.mutationKey)return!1;if(n){if(ln(t.options.mutationKey)!==ln(o))return!1}else if(!fo(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Ml(e,t){return((t==null?void 0:t.queryKeyHashFn)||ln)(e)}function ln(e){return JSON.stringify(e,(t,n)=>Ca(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fo(e,t){return Ip(e,t)}function Ip(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ip(e[n],t[n])):!1}function Lp(e,t){if(e===t)return e;const n=hc(e)&&hc(t);if(n||Ca(e)&&Ca(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const u=n?l:i[l];s[u]=Lp(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function pc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function hc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ca(e){if(!gc(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!gc(n)||!n.hasOwnProperty("isPrototypeOf"))}function gc(e){return Object.prototype.toString.call(e)==="[object Object]"}function $o(e){return Array.isArray(e)}function Dp(e){return new Promise(t=>{setTimeout(t,e)})}function vc(e){Dp(0).then(e)}function qv(){if(typeof AbortController=="function")return new AbortController}function Ea(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lp(e,t):t}class Wv extends ii{constructor(){super(),this.setup=t=>{if(!Wr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const po=new Wv;class Gv extends ii{constructor(){super(),this.setup=t=>{if(!Wr&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(
2022-09-14 16:48:46 +02:00
* react-query-devtools-noop
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-19 21:52:51 +02:00
*/function vm(){return null}function $e(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xn(e){return!!e&&!!e[U]}function Et(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Cm}(e)||Array.isArray(e)||!!e[Ec]||!!e.constructor[Ec]||$l(e)||Bl(e))}function Zn(e,t,n){n===void 0&&(n=!1),or(e)===0?(n?Object.keys:ql)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function or(e){var t=e[U];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$l(e)?2:Bl(e)?3:0}function Na(e,t){return or(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mm(e,t){return or(e)===2?e.get(t):e[t]}function Up(e,t,n){var r=or(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function ym(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function $l(e){return _m&&e instanceof Map}function Bl(e){return Pm&&e instanceof Set}function re(e){return e.o||e.t}function Ql(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Em(e);delete t[U];for(var n=ql(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Vl(e,t){return t===void 0&&(t=!1),Hl(e)||Xn(e)||!Et(e)||(or(e)>1&&(e.set=e.add=e.clear=e.delete=Sm),Object.freeze(e),t&&Zn(e,function(n,r){return Vl(r,!0)},!0)),e}function Sm(){$e(2)}function Hl(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function dt(e){var t=La[e];return t||$e(18,e),t}function wm(e,t){La[e]||(La[e]=t)}function go(){return Yr}function _s(e,t){t&&(dt("Patches"),e.u=[],e.s=[],e.v=t)}function vo(e){Ia(e),e.p.forEach(km),e.p=null}function Ia(e){e===Yr&&(Yr=e.l)}function kc(e){return Yr={p:[],l:Yr,h:e,m:!0,_:0}}function km(e){var t=e[U];t.i===0||t.i===1?t.j():t.O=!0}function Ps(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||dt("ES5").S(t,e,r),r?(n[U].P&&(vo(t),$e(4)),Et(e)&&(e=mo(t,e),t.l||yo(t,e)),t.u&&dt("Patches").M(n[U].t,e,t.u,t.s)):e=mo(t,n,[]),vo(t),t.u&&t.v(t.u,t.s),e!==zp?e:void 0}function mo(e,t,n){if(Hl(t))return t;var r=t[U];if(!r)return Zn(t,function(o,s){return Oc(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Ql(r.k):r.o;Zn(r.i===3?new Set(i):i,function(o,s){return Oc(e,r,i,o,s,n)}),yo(e,i,!1),n&&e.u&&dt("Patches").R(r,n,e.u,e.s)}return r.o}function Oc(e,t,n,r,i,o){if(Xn(i)){var s=mo(e,i,o&&t&&t.i!==3&&!Na(t.D,r)?o.concat(r):void 0);if(Up(n,r,s),!Xn(s))return;e.m=!1}if(Et(i)&&!Hl(i)){if(!e.h.F&&e._<1)return;mo(e,i),t&&t.A.l||yo(e,i)}}function yo(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Vl(t,n)}function Cs(e,t){var n=e[U];return(n?re(n):e)[t]}function xc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function St(e){e.P||(e.P=!0,e.l&&St(e.l))}function Es(e){e.o||(e.o=Ql(e.t))}function Gr(e,t,n){var r=$l(t)?dt("MapSet").N(t,n):Bl(t)?dt("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:go(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=Da;s&&(l=[a],u=kr);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):dt("ES5").J(t,n);return(n?n.A:go()).p.push(r),r}function Om(e){return Xn(e)||$e(22,e),function t(n){if(!Et(n))return n;var r,i=n[U],o=or(n);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,r=_c(n,o),i.I=!1}else r=_c(n,o);return Zn(r,function(s,a){i&&mm(i.t,s)===a||Up(r,s,t(a))}),o===3?new Set(r):r}(e)}function _c(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ql(e)}function xm(){function e(a,l){fun
2022-09-15 22:36:08 +02:00
* react-location
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-19 21:52:51 +02:00
*/function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(this,arguments)}function Fa(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}function Dm(e,t){var n,r,i,o="";for(n in e)if((i=e[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(t||"")+o}function Lc(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function jm(e){for(var t,n,r={},i=e.split("&");t=i.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],Lc(t.shift())):r[n]=Lc(t.shift());return r}const Tm=["children","location","__experimental__snapshot"],Fm=["location","__experimental__snapshot"],bm=["basepath","routes"],Bp=E.exports.createContext(null),Qp=E.exports.createContext(null),Vp=E.exports.createContext(null),Hp=Boolean(typeof window<"u"&&window.document&&window.document.createElement),ba=Hp?E.exports.useLayoutEffect:E.exports.useEffect,Mm=()=>Hp?Im():Lm();class Wl{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class Am extends Wl{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Mm(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Jm,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Ym,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(i=>{this.current=this.parseLocation(i.location,this.current),this.notify()})}buildNext(t,n){var r,i,o,s;t===void 0&&(t="/"),n===void 0&&(n={});const a=et({},this.current,n.from),l=Gm(t,a.pathname,""+((r=n.to)!=null?r:".")),u=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((m,S)=>S(m),a.search):a.search,c=n.search===!0?u:n.search?(o=Tc(n.search,u))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?u:{},f=Ma(a.search,c),d=this.stringifySearch(f);let v=n.hash===!0?a.hash:Tc(n.hash,a.hash);return v=v?"#"+v:"",{pathname:l,search:f,searchStr:d,hash:v,href:""+l+d+v,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const i=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:Ma(n==null?void 0:n.search,i),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function Kp(e){return k(Qp.Provider,{...e})}function Um(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=Fa(e,Tm);const o=E.exports.useRef(null);o.current||(o.current=new $m({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=E.exports.useReducer(()=>({}),{});return s.update(i),ba(()=>s.subscribe(()=>{l()}),[]),ba(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),E.exports.createElement(Bp.Provider,{value:{location:n}},E.exports.createElement(Vp.Provider,{value:{router:s}},k(zm,{}),k(Kp,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:k(Xp,{})})))}function zm(){const e=Gl(),t=Jp(),n=Vm();return ba(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class $m extends Wl{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=Fa(t,Fm);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:u}=a,c=Fa(a,bm);Object.assign(this,c),this.basepath=Qo("/"+(l!=null?l:"")),this.rout
2022-09-14 16:48:46 +02:00
* @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.
2022-09-19 21:52:51 +02:00
*/var Vo=E.exports,hy=bl.exports;function gy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vy=typeof Object.is=="function"?Object.is:gy,my=hy.useSyncExternalStore,yy=Vo.useRef,Sy=Vo.useEffect,wy=Vo.useMemo,ky=Vo.useDebugValue;rh.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=yy(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=wy(function(){function l(v){if(!u){if(u=!0,c=v,v=r(v),i!==void 0&&s.hasValue){var m=s.value;if(i(m,v))return f=m}return f=v}if(m=f,vy(c,v))return m;var S=r(v);return i!==void 0&&i(m,S)?m:(c=v,f=S)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var a=my(e,o[0],o[1]);return Sy(function(){s.hasValue=!0,s.value=a},[a]),ky(a),a};(function(e){e.exports=rh})(nh);const Oy=vf(nh.exports),{useSyncExternalStoreWithSelector:xy}=Oy;function _y(e,t=e.getState,n){const r=xy(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return E.exports.useDebugValue(r),r}const Ac=e=>{const t=typeof e=="function"?py(e):e,n=(r,i)=>_y(t,r,i);return Object.assign(n,t),n},Py=e=>e?Ac(e):Ac;var Yl=Py;const Cy=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,...a}=t;let l;try{l=(o!=null?o:({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const u=l.connect(a);let c=!0;i.setState=(v,m,S)=>{const w=n(v,m);return c&&u.send(S===void 0?{type:s||"anonymous"}:typeof S=="string"?{type:S}:S,r()),w};const f=(...v)=>{const m=c;c=!1,n(...v),c=m},d=e(i.setState,r,i);if(u.init(d),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let v=!1;const m=i.dispatch;i.dispatch=(...S)=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&S[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),m(...S)}}return u.subscribe(v=>{var m;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Ns(v.payload,S=>{if(S.type==="__setState"){f(S.state);return}!i.dispatchFromDevtools||typeof i.dispatch=="function"&&i.dispatch(S)});case"DISPATCH":switch(v.payload.type){case"RESET":return f(d),u.init(i.getState());case"COMMIT":return u.init(i.getState());case"ROLLBACK":return Ns(v.state,S=>{f(S),u.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ns(v.state,S=>{f(S)});case"IMPORT_STATE":{const{nextLiftedState:S}=v.payload,w=(m=S.computedStates.slice(-1)[0])==null?void 0:m.state;if(!w)return;f(w),u.send(null,S);return}case"PAUSE_RECORDING":return c=!c}return}}),d},Ey=Cy,Ns=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},ko=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return ko(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return ko(r)(n)}}}},Ry=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:w=>w,version:0,merge:(w,g)=>({...g,...w}),...t},s=!1;const a=new Set,l=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...w)},r,i);const c=ko(o.serialize),f=()=>{const w=o.partialize({...r()});let g;const p=c({state:w,version:o.version}).then(h=>u.setItem(o.name,h)).catch(h=>{g=h});if(g)throw g;return p},d=i.setState;i.setState=(w,g)=>{d(w,g),f()};const v=e((...w)=>{n(...w),f()},r,i);let m;const S=()=>{var w;if(!u)return;s=!1,a.forEach(p=>p(r()));const g=((w=o.onRehydrateStorage)==null?void 0:w.call(o,r()))||void 0;return ko(u.getItem.bind(u))(o.name).then(p=>{if(p)return o.deseria
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wy(e,t){return oh(e)||qy(e,t)||sh(e,t)||ah()}function Gc(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 Is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gc(Object(n),!0).forEach(function(r){ht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Gy=function(t,n){var r=E.exports.useRef();return E.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Jl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=E.exports.useContext(My)||{},i=r.i18n,o=r.defaultNS,s=n||i||By();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new zy),!s){za("You will need to pass in an i18next instance by using initReactI18next");var a=function(R){return Array.isArray(R)?R[R.length-1]:R},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&za("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Is(Is(Is({},Uy()),s.options.react),t),c=u.useSuspense,f=u.keyPrefix,d=e||o||s.options&&s.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);var v=(s.isInitialized||s.initializedStoreOnce)&&d.every(function(O){return Ky(O,s,u)});function m(){return s.getFixedT(null,u.nsMode==="fallback"?d:d[0],f)}var S=E.exports.useState(m),w=Wy(S,2),g=w[0],p=w[1],h=d.join(),y=Gy(h),_=E.exports.useRef(!0);E.exports.useEffect(function(){var O=u.bindI18n,R=u.bindI18nStore;_.current=!0,!v&&!c&&qc(s,d,function(){_.current&&p(m)}),v&&y&&y!==h&&_.current&&p(m);function D(){_.current&&p(m)}return O&&s&&s.on(O,D),R&&s&&s.store.on(R,D),function(){_.current=!1,O&&s&&O.split(" ").forEach(function(M){return s.off(M,D)}),R&&s&&R.split(" ").forEach(function(M){return s.store.off(M,D)})}},[s,h]);var P=E.exports.useRef(!0);E.exports.useEffect(function(){_.current&&!P.current&&p(m),P.current=!1},[s,f]);var x=[g,s,v];if(x.t=g,x.i18n=s,x.ready=v,v||!v&&!c)return x;throw new Promise(function(O){qc(s,d,function(){O()})})}var Yy="_1v2cc580";const Jy=()=>{const{i18n:e}=Jl(),[t,n]=E.exports.useState("id");return N("select",{onChange:i=>{const o=i.target.value;console.log(o),n(o),e.changeLanguage(o)},value:t,children:[k("option",{value:"en",children:"EN"}),k("option",{value:"es",children:"ES"})]})};function Xy(){const{t:e}=Jl(),{status:t,data:n}=vn([Aa],th),[r,i]=E.exports.useState("2.1.0"),[o,s]=E.exports.useState("");return E.exports.useEffect(()=>{if(t==="success"){const{update_branch:a}=n;i("v2.1"),s(a==="main"?"(stable)":"(beta)")}},[t,n,i,i]),N("div",{className:Yy,children:[N("h1",{children:[e("title")," ",r," ",o," "]}),k(Dy,{className:"status-display"}),k(Jy,{})]})}const Ke=Yl(Ny((e,t)=>({isOpenAdvancedSettings:!1,isOpenAdvImprovementSettings:!1,isOpenAdvPropertySettings:!1,isOpenAdvWorkflowSettings:!1,isOpenAdvGPUSettings:!1,isOpenImageModifier:!1,imageMofidiersMap:{},toggleAdvancedSettings:()=>{e(ie(n=>{n.isOpenAdvancedSettings=!n.isOpenAdvancedSettings}))},toggleAdvImprovementSettings:()=>{e(ie(n=>{n.isOpenAdvImprovementSettings=!n.isOpenAdvImprovementSettings}))},toggleAdvPropertySettings:()=>{e(ie(n=>{n.isOpenAdvPropertySettings=!n.isOpenAdvPropertySettings}))},toggleAdvWorkflowSettings:()=>{e(ie(n=>{n.isOpenAdvWorkflowSettings=!n.isOpenAdvWorkflowSettings}))},toggleAdvGPUSettings:()=>{e(ie(n=>{n.isOpenAdvGPUSettings=!n.isOpenAdvGPUSettings}))},toggleImageModifier:()=>{e(ie(n=>{n.isOpenImageModifier=!n.isOpenImageModifier}))}}),{name:"createUI"}));var lh="_1961rof0",me="_1961rof1";var gr="_11d5x3d1",Zy="_11d5x3d0",Ho="_11d5x3d2";function e0(){const e=j(c=>c.isUsingFaceCorrection()),t=j(c=>c.
2022-09-19 03:57:17 +02:00
Please feel free to join the discord community or file an issue if you have any problems or suggestions in using this interface.
Disclaimer: The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm,
spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
By using this software, you consent to the terms and conditions of the license.
2022-09-19 21:52:51 +02:00
`,G1={title:U1,description:z1,navbar:$1,"land-cre":{cp:"Create Profile","cp-place":"Profile name",pp:"Profile Picture","pp-disc":"",ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cre:"Create"},"land-pre":{user:"Username",add:"Add Profile"},home:B1,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:Q1,tags:V1,"preview-prompt":{part1:'Type a prompt and press the "Make Image" button.',part2:`You can set an "Initial Image" if you want to guide the AI.
2022-09-19 03:57:17 +02:00
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
2022-09-19 21:52:51 +02:00
`,part4:'Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.',part5:"Enjoy! :)"},"current-task":"Current task","recent-create":"Recently Created",popup:H1,history:K1,"advanced-settings":{sound:"Play sound on task completion","sound-disc":"Will play a sound so user can hear when image is done.",turbo:"Turbo mode","turbo-disc":"Generates images faster, but uses an additional 1 GB of GPU memory",cpu:"Use CPU instead of GPU","cpu-disc":"Warning: this will be *very* slow",beta:"Beta Features","beta-disc":`Get the latest features immediately (but could be less stable).
Please restart the program after changing this.`,save:"SAVE"},storage:q1,import:{"imp-btn":"IMPORT","exp-btn":"EXPORT",disc:"It is a good idea to leave the exported file as it is. Otherwise it may not import correctly","disc:2":"When importing, only profiles that are not already present on the will be added."},about:W1},Y1="Stable Diffusion UI en Espa\xF1ol",J1="",X1={},Z1={},eS={},tS={},nS={},rS={},iS={},oS="",sS={title:Y1,description:J1,navbar:X1,"land-cre":{},"land-pre":{},home:Z1,"in-paint":{},settings:eS,tags:tS,"preview-prompt":{},"current-task":"","recent-create":"",popup:nS,history:rS,"advanced-settings":{},storage:iS,import:{},about:oS},aS={en:{translation:G1},es:{translation:sS}};ke.use(Qy).init({lng:"en",interpolation:{escapeValue:!1},resources:aS});const lS=new Am;function uS(){const e=s1;return k(Um,{location:lS,routes:[{path:"/",element:k(i1,{className:e})},{path:"/settings",element:k(o1,{className:e})}]})}const cS=new sm({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:1/0,cacheTime:1/0}}});xm();Ds.createRoot(document.getElementById("root")).render(k(_f.StrictMode,{children:N(um,{client:cS,children:[k(uS,{}),k(vm,{initialIsOpen:!0})]})}));