InvokeAI/invokeai/frontend/web/dist/assets/index-285abe50.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

159 lines
1.4 MiB
JavaScript
Raw Normal View History

2023-10-04 07:28:05 +00:00
var GK=Object.defineProperty;var HK=(e,t,n)=>t in e?GK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _w=(e,t,n)=>(HK(e,typeof t!="symbol"?t+"":t,n),n),Sw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ae=(e,t,n)=>(Sw(e,t,"read from private field"),n?n.call(e):t.get(e)),Yn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},oa=(e,t,n,r)=>(Sw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Mp=(e,t,n,r)=>({set _(i){oa(e,t,i,n)},get _(){return ae(e,t,r)}}),ps=(e,t,n)=>(Sw(e,t,"access private method"),n);function BN(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 mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dS(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var zN={exports:{}},fS={},jN={exports:{}},Lt={};/**
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/var U0=Symbol.for("react.element"),qK=Symbol.for("react.portal"),WK=Symbol.for("react.fragment"),KK=Symbol.for("react.strict_mode"),QK=Symbol.for("react.profiler"),XK=Symbol.for("react.provider"),YK=Symbol.for("react.context"),ZK=Symbol.for("react.forward_ref"),JK=Symbol.for("react.suspense"),eQ=Symbol.for("react.memo"),tQ=Symbol.for("react.lazy"),FP=Symbol.iterator;function nQ(e){return e===null||typeof e!="object"?null:(e=FP&&e[FP]||e["@@iterator"],typeof e=="function"?e:null)}var UN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VN=Object.assign,GN={};function dp(e,t,n){this.props=e,this.context=t,this.refs=GN,this.updater=n||UN}dp.prototype.isReactComponent={};dp.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")};dp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HN(){}HN.prototype=dp.prototype;function H4(e,t,n){this.props=e,this.context=t,this.refs=GN,this.updater=n||UN}var q4=H4.prototype=new HN;q4.constructor=H4;VN(q4,dp.prototype);q4.isPureReactComponent=!0;var BP=Array.isArray,qN=Object.prototype.hasOwnProperty,W4={current:null},WN={key:!0,ref:!0,__self:!0,__source:!0};function KN(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)qN.call(t,r)&&!WN.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:U0,type:e,key:o,ref:a,props:i,_owner:W4.current}}function rQ(e,t){return{$$typeof:U0,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function K4(e){return typeof e=="object"&&e!==null&&e.$$typeof===U0}function iQ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zP=/\/+/g;function xw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?iQ(""+e.key):t.toString(36)}function v1(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 U0:case qK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+xw(a,0):r,BP(i)?(n="",e!=null&&(n=e.replace(zP,"$&/")+"/"),v1(i,t,n,"",function(u){return u})):i!=null&&(K4(i)&&(i=rQ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(zP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",BP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+xw(o,s);a+=v1(o,t,n,l,i)}else if(l=nQ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+xw(o,s++),a+=v1(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 v1(e,r,"","",function(o){return t.call(n,o,i++)}),r}function oQ(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 ao={current:null},b1={transition:null},aQ={ReactCurrentDispatcher:ao,ReactCurrentBatchConfig:b1,ReactCurrentOwner:W4};Lt.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(!K4(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Lt.Component=dp;Lt.Fragment=WK;Lt.Profiler=QK;Lt
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/var sQ=I,lQ=Symbol.for("react.element"),uQ=Symbol.for("react.fragment"),cQ=Object.prototype.hasOwnProperty,dQ=sQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fQ={key:!0,ref:!0,__self:!0,__source:!0};function QN(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)cQ.call(t,r)&&!fQ.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:lQ,type:e,key:o,ref:a,props:i,_owner:dQ.current}}fS.Fragment=uQ;fS.jsx=QN;fS.jsxs=QN;zN.exports=fS;var W=zN.exports,V5={},XN={exports:{}},ea={},YN={exports:{}},ZN={};/**
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/(function(e){function t(M,R){var N=M.length;M.push(R);e:for(;0<N;){var B=N-1>>>1,U=M[B];if(0<i(U,R))M[B]=R,M[N]=U,N=B;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var R=M[0],N=M.pop();if(N!==R){M[0]=N;e:for(var B=0,U=M.length,G=U>>>1;B<G;){var Y=2*(B+1)-1,ee=M[Y],J=Y+1,j=M[J];if(0>i(ee,N))J<U&&0>i(j,ee)?(M[B]=j,M[J]=N,B=J):(M[B]=ee,M[Y]=N,B=Y);else if(J<U&&0>i(j,N))M[B]=j,M[J]=N,B=J;else break e}}return R}function i(M,R){var N=M.sortIndex-R.sortIndex;return N!==0?N:M.id-R.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=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=M)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function y(M){if(m=!1,g(M),!p)if(n(l)!==null)p=!0,D(S);else{var R=n(u);R!==null&&L(y,R.startTime-M)}}function S(M,R){p=!1,m&&(m=!1,b(C),C=-1),h=!0;var N=f;try{for(g(R),d=n(l);d!==null&&(!(d.expirationTime>R)||M&&!P());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var U=B(d.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(R)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var Y=n(u);Y!==null&&L(y,Y.startTime-R),G=!1}return G}finally{d=null,f=N,h=!1}}var w=!1,x=null,C=-1,T=5,k=-1;function P(){return!(e.unstable_now()-k<T)}function $(){if(x!==null){var M=e.unstable_now();k=M;var R=!0;try{R=x(!0,M)}finally{R?O():(w=!1,x=null)}}else w=!1}var O;if(typeof v=="function")O=function(){v($)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,A=E.port2;E.port1.onmessage=$,O=function(){A.postMessage(null)}}else O=function(){_($,0)};function D(M){x=M,w||(w=!0,O())}function L(M,R){C=_(function(){M(e.unstable_now())},R)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,D(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var N=f;f=R;try{return M()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,R){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var N=f;f=M;try{return R()}finally{f=N}},e.unstable_scheduleCallback=function(M,R,N){var B=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?B+N:B):N=B,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=N+U,M={id:c++,callback:R,priorityLevel:M,startTime:N,expirationTime:U,sortIndex:-1},N>B?(M.sortIndex=N,t(u,M),n(l)===null&&M===n(u)&&(m?(b(C),C=-1):m=!0,L(y,N-B))):(M.sortIndex=U,t(l,M),p||h||(p=!0,D(S))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var R=f;return function(){var N=f;f=R;try{return M.apply(this,arguments)}finally{f=N}}}})(ZN);YN.exports=ZN;var hQ=YN.exports;/**
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/var JN=I,Xo=hQ;function le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e$=new Set,lm={};function Ld(e,t){Mh(e,t),Mh(e+"Capture",t)}function Mh(e,t){for(lm[e]=t,e=0;e<t.length;e++)e$.add(t[e])}var zl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G5=Object.prototype.hasOwnProperty,pQ=/^[: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]*$/,UP={},VP={};function gQ(e){return G5.call(VP,e)?!0:G5.call(UP,e)?!1:pQ.test(e)?VP[e]=!0:(UP[e]=!0,!1)}function mQ(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 yQ(e,t,n,r){if(t===null||typeof t>"u"||mQ(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 so(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 Ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ri[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ri[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ri[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ri[e]=new so(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){Ri[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ri[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ri[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ri[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ri[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q4=/[\-:]([a-z])/g;function X4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin
2023-10-02 23:31:35 +00:00
`+ww+e}var Cw=!1;function Ew(e,t){if(!e||Cw)return"";Cw=!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=`
2023-10-04 07:28:05 +00:00
`+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{Cw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fg(e):""}function vQ(e){switch(e.tag){case 5:return fg(e.type);case 16:return fg("Lazy");case 13:return fg("Suspense");case 19:return fg("SuspenseList");case 0:case 2:case 15:return e=Ew(e.type,!1),e;case 11:return e=Ew(e.type.render,!1),e;case 1:return e=Ew(e.type,!0),e;default:return""}}function K5(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 Pf:return"Fragment";case Af:return"Portal";case H5:return"Profiler";case Z4:return"StrictMode";case q5:return"Suspense";case W5:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n$:return(e.displayName||"Context")+".Consumer";case t$:return(e._context.displayName||"Context")+".Provider";case J4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ek:return t=e.displayName||null,t!==null?t:K5(e.type)||"Memo";case gu:t=e._payload,e=e._init;try{return K5(e(t))}catch{}}return null}function bQ(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 K5(t);case 8:return t===Z4?"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 Zu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _Q(e){var t=i$(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 Hy(e){e._valueTracker||(e._valueTracker=_Q(e))}function o$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function db(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 Q5(e,t){var n=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function HP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zu(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 a$(e,t){t=t.checked,t!=null&&Y4(e,"checked",t,!1)}function X5(e,t){a$(e,t);var n=Zu(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")?Y5(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y5(e,t.type,Zu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qP(e,t,n){if(t.hasOwnProperty("val
`).replace(IX,"")}function Jy(e,t,n){if(t=g6(t),g6(e)!==t&&n)throw Error(le(425))}function bb(){}var d3=null,f3=null;function h3(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 p3=typeof setTimeout=="function"?setTimeout:void 0,RX=typeof clearTimeout=="function"?clearTimeout:void 0,m6=typeof Promise=="function"?Promise:void 0,OX=typeof queueMicrotask=="function"?queueMicrotask:typeof m6<"u"?function(e){return m6.resolve(null).then(e).catch(MX)}:p3;function MX(e){setTimeout(function(){throw e})}function Fw(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),hm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hm(t)}function Bu(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 y6(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 hp=Math.random().toString(36).slice(2),As="__reactFiber$"+hp,vm="__reactProps$"+hp,jl="__reactContainer$"+hp,g3="__reactEvents$"+hp,NX="__reactListeners$"+hp,$X="__reactHandles$"+hp;function Xc(e){var t=e[As];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jl]||n[As]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=y6(e);e!==null;){if(n=e[As])return n;e=y6(e)}return t}e=n,n=e.parentNode}return null}function H0(e){return e=e[As]||e[jl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function yS(e){return e[vm]||null}var m3=[],Nf=-1;function mc(e){return{current:e}}function Kn(e){0>Nf||(e.current=m3[Nf],m3[Nf]=null,Nf--)}function Nn(e,t){Nf++,m3[Nf]=e.current,e.current=t}var Ju={},Wi=mc(Ju),Eo=mc(!1),_d=Ju;function Nh(e,t){var n=e.type.contextTypes;if(!n)return Ju;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 ko(e){return e=e.childContextTypes,e!=null}function _b(){Kn(Eo),Kn(Wi)}function v6(e,t,n){if(Wi.current!==Ju)throw Error(le(168));Nn(Wi,t),Nn(Eo,n)}function K$(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(le(108,bQ(e)||"Unknown",i));return cr({},n,r)}function Sb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ju,_d=Wi.current,Nn(Wi,e),Nn(Eo,Eo.current),!0}function b6(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=K$(e,t,_d),r.__reactInternalMemoizedMergedChildContext=e,Kn(Eo),Kn(Wi),Nn(Wi,e)):Kn(Eo),Nn(Eo,n)}var vl=null,vS=!1,Bw=!1;function Q$(e){vl===null?vl=[e]:vl.push(e)}function DX(e){vS=!0,Q$(e)}function yc(){if(!Bw&&vl!==null){Bw=!0;var e=0,t=mn;try{var n=vl;for(mn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vl=null,vS=!1}catch(i){throw vl!==null&&(vl=vl.slice(e+1)),_$(nk,yc),i}finally{mn=t,Bw=!1}}return null}var $f=[],Df=0,xb=null,wb=0,pa=[],ga=0,Sd=null,Al=1,Pl="";function Fc(e,t){$f[Df++]=wb,$f[Df++]=xb,xb=e,wb=t}function X$(e,t,n){pa[ga++]=Al,pa[ga++]=Pl,pa[ga++]=Sd,Sd=e;var r=Al;e=Pl;var i=32-Ja(r)-1;r&=~(1<<i),n+=1;var o=32-Ja(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Al=1<<32-Ja(t)+i|n<<i|r,Pl=o+e}else Al=1<<o|n<<i|r,Pl=e}function dk(e){e.return!==null&&(Fc(e,1),X$(e,1,0))}function fk(e){for(;e===xb;)xb=$f[--Df],$f[Df]=null,wb=$f[--Df],$f[Df]=null;for(;e===Sd;)Sd=pa[--ga],pa[ga]=null,Pl=pa[--ga],pa[ga]=null,Al=pa[--ga],pa[ga]=null}var Wo=null,Ho=null,tr=!1,Ha=null;function Y$(e,t){var n=va(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
2023-10-02 23:31:35 +00:00
Error generating stack: `+o.message+`
2023-10-04 07:28:05 +00:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Gw(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function x3(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HX=typeof WeakMap=="function"?WeakMap:Map;function ED(e,t,n){n=Ml(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rb||(Rb=!0,O3=r),x3(e,t)},n}function kD(e,t,n){n=Ml(-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(){x3(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){x3(e,t),typeof r!="function"&&(ju===null?ju=new Set([this]):ju.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function P6(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HX;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=oY.bind(null,e,t,n),t.then(e,e))}function I6(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 R6(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ml(-1,1),t.tag=2,zu(n,t,1))),n.lanes|=1),e)}var qX=Xl.ReactCurrentOwner,So=!1;function Ji(e,t,n,r){t.child=e===null?iD(t,null,n,r):Dh(t,e.child,n,r)}function O6(e,t,n,r,i){n=n.render;var o=t.ref;return nh(t,i),r=wk(e,t,n,r,o,i),n=Ck(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vl(e,t,i)):(tr&&n&&dk(t),t.flags|=1,Ji(e,t,r,i),t.child)}function M6(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Nk(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,TD(e,t,o,r,i)):(e=P1(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)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:gm,n(a,r)&&e.ref===t.ref)return Vl(e,t,i)}return t.flags|=1,e=Vu(o,r),e.ref=t.ref,e.return=t,t.child=e}function TD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(gm(o,r)&&e.ref===t.ref)if(So=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(So=!0);else return t.lanes=e.lanes,Vl(e,t,i)}return w3(e,t,n,r,i)}function AD(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nn(Bf,jo),jo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nn(Bf,jo),jo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Nn(Bf,jo),jo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Nn(Bf,jo),jo|=r;return Ji(e,t,i,n),t.child}function PD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function w3(e,t,n,r,i){var o=ko(n)?_d:Wi.current;return o=Nh(t,o),nh(t,i),n=wk(e,t,n,r,o,i),r=Ck(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vl(e,t,i)):(tr&&r&&dk(t),t.flags|=1,Ji(e,t,n,i),t.child)}function N6(e,t,n,r,i){if(ko(n)){var o=!0;Sb(t)}else o=!1;if(nh(t,i),t.stateNode===null)k1(e,t),nD(t,n,r),S3(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=Sa(u):(u=ko(n)?_d:Wi.current,u=Nh(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&E6(t,a,r,u),mu=!1;var f=t.memoizedState;a.state=f,kb(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Eo.current||mu?(typeof c=="function"&&(_3(t,n,c,r),l=t.memoizedState),(s=mu||C6(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
2023-10-02 23:31:35 +00:00
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-10-04 07:28:05 +00:00
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Se,mutationThunk:Ye,api:q,serializeQueryArgs:je,context:re}),po=Qn.buildInitiateQuery,La=Qn.buildInitiateMutation;return mi(q.util,{getRunningOperationPromises:Qn.getRunningOperationPromises,getRunningOperationPromise:Qn.removalWarning,getRunningMutationThunk:Qn.getRunningMutationThunk,getRunningMutationsThunk:Qn.getRunningMutationsThunk,getRunningQueryThunk:Qn.getRunningQueryThunk,getRunningQueriesThunk:Qn.getRunningQueriesThunk}),{name:ia,injectEndpoint:function(it,fn){var nn,ir=q;(nn=ir.endpoints)[it]!=null||(nn[it]={}),ne(fn)?mi(ir.endpoints[it],{name:it,select:_r(it,fn),initiate:po(it,fn)},wt(Se,it)):fn.type===J.mutation&&mi(ir.endpoints[it],{name:it,select:yi(),initiate:La(it)},wt(Ye,it))}}}}},sl=fo(ni())})(PB);AB.exports=PB;var yle=AB.exports;const ii=["general"],Mu=["control","mask","user","other"],vle=100,fv=20;let Yi=[],tl=(e,t)=>{let n=[],r={get(){return r.lc||r.listen(()=>{})(),r.value},l:t||0,lc:0,listen(i,o){return r.lc=n.push(i,o||r.l)/2,()=>{let a=n.indexOf(i);~a&&(n.splice(a,2),r.lc--,r.lc||r.off())}},notify(i){let o=!Yi.length;for(let a=0;a<n.length;a+=2)Yi.push(n[a],r.value,i,n[a+1]);if(o){for(let a=0;a<Yi.length;a+=4){let s=!1;for(let l=a+7;l<Yi.length;l+=4)if(Yi[l]<Yi[a+3]){s=!0;break}s?Yi.push(Yi[a],Yi[a+1],Yi[a+2],Yi[a+3]):Yi[a](Yi[a+1],Yi[a+2])}Yi.length=0}},off(){},set(i){r.value!==i&&(r.value=i,r.notify())},subscribe(i,o){let a=r.listen(i,o);return i(r.value),a},value:e};return r};const ble=5,hv=6,pv=10;let _le=(e,t,n,r)=>(e.events=e.events||{},e.events[n+pv]||(e.events[n+pv]=r(i=>{e.events[n].reduceRight((o,a)=>(a(o),o),{shared:{},...i})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let i=e.events[n],o=i.indexOf(t);i.splice(o,1),i.length||(delete e.events[n],e.events[n+pv](),delete e.events[n+pv])}),Sle=1e3,xle=(e,t)=>_le(e,r=>{let i=t(r);i&&e.events[hv].push(i)},ble,r=>{let i=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=!0,r()),i(...a));let o=e.off;return e.events[hv]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let a of e.events[hv])a();e.events[hv]=[]}},Sle)},()=>{e.listen=i,e.off=o}}),wle=(e,t)=>{Array.isArray(e)||(e=[e]);let n,r=()=>{let o=e.map(a=>a.get());(n===void 0||o.some((a,s)=>a!==n[s]))&&(n=o,i.set(t(...o)))},i=tl(void 0,Math.max(...e.map(o=>o.l))+1);return xle(i,()=>{let o=e.map(a=>a.listen(r,i.l));return r(),()=>{for(let a of o)a()}}),i};const IB=tl(),Cle={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class t_{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Cle,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new t_(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new t_(this.logger,t)}}var Ms=new t_;class YS{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];
2023-10-02 23:31:35 +00:00
`&&(this.line+=1,this.lastLineBreak=this.index),{value:u}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(u,c){var d=this.buffer;if(typeof d=="string"){var f=d.split(`
`).slice(Math.max(0,this.line-5),this.line),h=d.indexOf(`
`,this.index);h===-1&&(h=d.length);var p=this.index-this.lastLineBreak,m=String(this.line).length;return c+=" at line "+this.line+" col "+p+`:
`,c+=f.map(function(b,v){return _(this.line-f.length+v+1,m)+" "+b},this).join(`
`),c+=`
`+_("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function _(b,v){var g=String(b);return Array(v-g.length+1).join(" ")+g}};function a(u,c,d){if(u instanceof i)var f=u,d=c;else var f=i.fromCompiled(u,c);this.grammar=f,this.options={keepHistory:!1,lexer:f.lexer||new o};for(var h in d||{})this.options[h]=d[h];this.lexer=this.options.lexer,this.lexerState=void 0;var p=new r(f,0);this.table=[p],p.wants[f.start]=[],p.predict(f.start),p.process(),this.current=0}a.fail={},a.prototype.feed=function(u){var c=this.lexer;c.reset(u,this.lexerState);for(var d;;){try{if(d=c.next(),!d)break}catch(x){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(x));throw f.offset=this.current,f.token=x.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,m=new r(this.grammar,p);this.table.push(m);for(var _=d.text!==void 0?d.text:d.value,b=c.constructor===o?d.value:d,v=h.scannable,g=v.length;g--;){var y=v[g],S=y.rule.symbols[y.dot];if(S.test?S.test(b):S.type?S.type===d.type:S.literal===_){var w=y.nextState({data:b,token:d,isToken:!0,reference:p-1});m.states.push(w)}}if(m.process(),m.states.length===0){var f=new Error(this.reportError(d));throw f.offset=this.current,f.token=d,f}this.options.keepHistory&&(h.lexerState=c.save()),this.current++}return h&&(this.lexerState=c.save()),this.results=this.finish(),this},a.prototype.reportLexerError=function(u){var c,d,f=u.token;return f?(c="input "+JSON.stringify(f.text[0])+" (lexer error)",d=this.lexer.formatError(f,"Syntax error")):(c="input (lexer error)",d=u.message),this.reportErrorCommon(d,c)},a.prototype.reportError=function(u){var c=(u.type?u.type+" token: ":"")+JSON.stringify(u.value!==void 0?u.value:u),d=this.lexer.formatError(u,"Syntax error");return this.reportErrorCommon(d,c)},a.prototype.reportErrorCommon=function(u,c){var d=[];d.push(u);var f=this.table.length-2,h=this.table[f],p=h.states.filter(function(_){var b=_.rule.symbols[_.dot];return b&&typeof b!="string"});if(p.length===0)d.push("Unexpected "+c+`. I did not expect any more input. Here is the state of my parse table:
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+c+`. Instead, I was expecting to see one of the following:
`);var m=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);m.forEach(function(_){var b=_[0],v=b.rule.symbols[b.dot],g=this.getSymbolDisplay(v);d.push("A "+g+" based on:"),this.displayStateStack(_,d)},this)}return d.push(""),d.join(`
2023-10-04 07:28:05 +00:00
`)},a.prototype.displayStateStack=function(u,c){for(var d,f=0,h=0;h<u.length;h++){var p=u[h],m=p.rule.toString(p.dot);m===d?f++:(f>0&&c.push(" ^ "+f+" more lines identical to this"),f=0,c.push(" "+m)),d=m}},a.prototype.getSymbolDisplay=function(u){return s(u)},a.prototype.buildFirstStateStack=function(u,c){if(c.indexOf(u)!==-1)return null;if(u.wantedBy.length===0)return[u];var d=u.wantedBy[0],f=[u].concat(c),h=this.buildFirstStateStack(d,f);return h===null?null:[u].concat(h)},a.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},a.prototype.restore=function(u){var c=u.index;this.current=c,this.table[c]=u,this.table.splice(c+1),this.lexerState=u.lexerState,this.results=this.finish()},a.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},a.prototype.finish=function(){var u=[],c=this.grammar.start,d=this.table[this.table.length-1];return d.states.forEach(function(f){f.rule.name===c&&f.dot===f.rule.symbols.length&&f.reference===0&&f.data!==a.fail&&u.push(f)}),u.map(function(f){return f.data})};function s(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return"character matching "+u;if(u.type)return u.type+" token";if(u.test)return"token matching "+String(u.test);throw new Error("Unknown symbol type: "+u)}}function l(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return u.toString();if(u.type)return"%"+u.type;if(u.test)return"<"+String(u.test)+">";throw new Error("Unknown symbol type: "+u)}}return{Parser:a,Grammar:i,Rule:t}})})(Gz);var ipe=Gz.exports,Rd={},Hz={},_c={};_c.__esModule=void 0;_c.__esModule=!0;var ope=typeof Object.setPrototypeOf=="function",ape=typeof Object.getPrototypeOf=="function",spe=typeof Object.defineProperty=="function",lpe=typeof Object.create=="function",upe=typeof Object.prototype.hasOwnProperty=="function",cpe=function(t,n){ope?Object.setPrototypeOf(t,n):t.__proto__=n};_c.setPrototypeOf=cpe;var dpe=function(t){return ape?Object.getPrototypeOf(t):t.__proto__||t.prototype};_c.getPrototypeOf=dpe;var cR=!1,fpe=function e(t,n,r){if(spe&&!cR)try{Object.defineProperty(t,n,r)}catch{cR=!0,e(t,n,r)}else t[n]=r.value};_c.defineProperty=fpe;var qz=function(t,n){return upe?t.hasOwnProperty(t,n):t[n]===void 0};_c.hasOwnProperty=qz;var hpe=function(t,n){if(lpe)return Object.create(t,n);var r=function(){};r.prototype=t;var i=new r;if(typeof n>"u")return i;if(typeof n=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof n=="object")for(var o in n)qz(n,o)&&(i[o]=n[o].value);return i};_c.objectCreate=hpe;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=_c,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,a=new Error().toString()==="[object Error]",s="";function l(u){var c=this.constructor,d=c.name||function(){var _=c.toString().match(/^function\s*([^\s(]+)/);return _===null?s||"Error":_[1]}(),f=d==="Error",h=f?s:d,p=Error.apply(this,arguments);if(n(p,r(this)),!(p instanceof c)||!(p instanceof l)){var p=this;Error.apply(this,arguments),i(p,"message",{configurable:!0,enumerable:!1,value:u,writable:!0})}if(i(p,"name",{configurable:!0,enumerable:!1,value:h,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(p,f?l:c),p.stack===void 0){var m=new Error(u);m.name=p.name,p.stack=m.stack}return a&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}s=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(Hz);var Wz=mt&&mt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(
2023-10-02 23:31:35 +00:00
${M}`,B=`,
${M}`);const Q=Math.min(R.length,x);let ne=0;for(;ne<Q-1;ne++){const ve=C(String(ne),R,A,D,L,M);N+=ve!==void 0?ve:"null",N+=B}const se=C(String(ne),R,A,D,L,M);if(N+=se!==void 0?se:"null",R.length-1>x){const ve=R.length-x-1;N+=`${B}"... ${h(ve)} not stringified"`}return L!==""&&(N+=`
${U}`),A.pop(),`[${N}]`}let G=Object.keys(R);const Y=G.length;if(Y===0)return"{}";if(w<A.length+1)return'"[Object]"';let ee="",J="";L!==""&&(M+=L,B=`,
${M}`,ee=" ");const j=Math.min(Y,x);S&&!l(R)&&(G=a(G)),A.push(R);for(let Q=0;Q<j;Q++){const ne=G[Q],se=C(ne,R,A,D,L,M);se!==void 0&&(N+=`${J}${o(ne)}:${ee}${se}`,J=B)}if(Y>x){const Q=Y-x;N+=`${J}"...":${ee}"${h(Q)} not stringified"`,J=B}return L!==""&&J.length>1&&(N=`
${M}${N}
${U}`),A.pop(),`{${N}}`}case"number":return isFinite(R)?String(R):v?v(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(R);default:return v?v(R):void 0}}function T(O,E,A,D,L,M){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(O)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(A.indexOf(E)!==-1)return g;const R=M;let N="",B=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E),L!==""&&(M+=L,N+=`
${M}`,B=`,
${M}`);const Y=Math.min(E.length,x);let ee=0;for(;ee<Y-1;ee++){const j=T(String(ee),E[ee],A,D,L,M);N+=j!==void 0?j:"null",N+=B}const J=T(String(ee),E[ee],A,D,L,M);if(N+=J!==void 0?J:"null",E.length-1>x){const j=E.length-x-1;N+=`${B}"... ${h(j)} not stringified"`}return L!==""&&(N+=`
${R}`),A.pop(),`[${N}]`}A.push(E);let U="";L!==""&&(M+=L,B=`,
${M}`,U=" ");let G="";for(const Y of D){const ee=T(Y,E[Y],A,D,L,M);ee!==void 0&&(N+=`${G}${o(Y)}:${U}${ee}`,G=B)}return L!==""&&G.length>1&&(N=`
${M}${N}
${R}`),A.pop(),`{${N}}`}case"number":return isFinite(E)?String(E):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(E):void 0}}function k(O,E,A,D,L){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(O),typeof E!="object")return k(O,E,A,D,L);if(E===null)return"null"}if(A.indexOf(E)!==-1)return g;const M=L;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E),L+=D;let ee=`
${L}`;const J=`,
${L}`,j=Math.min(E.length,x);let Q=0;for(;Q<j-1;Q++){const se=k(String(Q),E[Q],A,D,L);ee+=se!==void 0?se:"null",ee+=J}const ne=k(String(Q),E[Q],A,D,L);if(ee+=ne!==void 0?ne:"null",E.length-1>x){const se=E.length-x-1;ee+=`${J}"... ${h(se)} not stringified"`}return ee+=`
${M}`,A.pop(),`[${ee}]`}let R=Object.keys(E);const N=R.length;if(N===0)return"{}";if(w<A.length+1)return'"[Object]"';L+=D;const B=`,
${L}`;let U="",G="",Y=Math.min(N,x);l(E)&&(U+=u(E,B,x),R=R.slice(E.length),Y-=E.length,G=B),S&&(R=a(R)),A.push(E);for(let ee=0;ee<Y;ee++){const J=R[ee],j=k(J,E[J],A,D,L);j!==void 0&&(U+=`${G}${o(J)}: ${j}`,G=B)}if(N>x){const ee=N-x;U+=`${G}"...": "${h(ee)} not stringified"`,G=B}return G!==""&&(U=`
${L}${U}
2023-10-04 07:28:05 +00:00
${M}`),A.pop(),`{${U}}`}case"number":return isFinite(E)?String(E):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(E):void 0}}function P(O,E,A){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(O),typeof E!="object")return P(O,E,A);if(E===null)return"null"}if(A.indexOf(E)!==-1)return g;let D="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E);const B=Math.min(E.length,x);let U=0;for(;U<B-1;U++){const Y=P(String(U),E[U],A);D+=Y!==void 0?Y:"null",D+=","}const G=P(String(U),E[U],A);if(D+=G!==void 0?G:"null",E.length-1>x){const Y=E.length-x-1;D+=`,"... ${h(Y)} not stringified"`}return A.pop(),`[${D}]`}let L=Object.keys(E);const M=L.length;if(M===0)return"{}";if(w<A.length+1)return'"[Object]"';let R="",N=Math.min(M,x);l(E)&&(D+=u(E,",",x),L=L.slice(E.length),N-=E.length,R=","),S&&(L=a(L)),A.push(E);for(let B=0;B<N;B++){const U=L[B],G=P(U,E[U],A);G!==void 0&&(D+=`${R}${o(U)}:${G}`,R=",")}if(M>x){const B=M-x;D+=`${R}"...":"${h(B)} not stringified"`}return A.pop(),`{${D}}`}case"number":return isFinite(E)?String(E):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(E):void 0}}function $(O,E,A){if(arguments.length>1){let D="";if(typeof A=="number"?D=" ".repeat(Math.min(A,10)):typeof A=="string"&&(D=A.slice(0,10)),E!=null){if(typeof E=="function")return C("",{"":O},[],E,D,"");if(Array.isArray(E))return T("",O,[],p(E),D,"")}if(D.length!==0)return k("",O,[],D,"")}return P("",O,[])}return $}})(gE,gE.exports);var Dpe=gE.exports;(function(e){var t=mt&&mt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Od,r=by,i=ej,o=tj,a=t(TT),s=t(Dpe);let l=!1;const u=(0,a.default)(),c=()=>u.ROARR,d=()=>({messageContext:{},transforms:[]}),f=()=>{const g=c().asyncLocalStorage;if(!g)throw new Error("AsyncLocalContext is unavailable.");const y=g.getStore();return y||d()},h=()=>!!c().asyncLocalStorage,p=()=>{if(h()){const g=f();return(0,i.hasOwnProperty)(g,"sequenceRoot")&&(0,i.hasOwnProperty)(g,"sequence")&&typeof g.sequence=="number"?String(g.sequenceRoot)+"."+String(g.sequence++):String(c().sequence++)}return String(c().sequence++)},m=(g,y)=>(S,w,x,C,T,k,P,$,O,E)=>{g.child({logLevel:y})(S,w,x,C,T,k,P,$,O,E)},_=1e3,b=(g,y)=>(S,w,x,C,T,k,P,$,O,E)=>{const A=(0,s.default)({a:S,b:w,c:x,d:C,e:T,f:k,g:P,h:$,i:O,j:E,logLevel:y});if(!A)throw new Error("Expected key to be a string");const D=c().onceLog;D.has(A)||(D.add(A),D.size>_&&D.clear(),g.child({logLevel:y})(S,w,x,C,T,k,P,$,O,E))},v=(g,y={},S=[])=>{const w=(x,C,T,k,P,$,O,E,A,D)=>{const L=Date.now(),M=p();let R;h()?R=f():R=d();let N,B;if(typeof x=="string"?N={...R.messageContext,...y}:N={...R.messageContext,...y,...x},typeof x=="string"&&C===void 0)B=x;else if(typeof x=="string"){if(!x.includes("%"))throw new Error("When a string parameter is followed by other arguments, then it is assumed that you are attempting to format a message using printf syntax. You either forgot to add printf bindings or if you meant to add context to the log message, pass them in an object as the first parameter.");B=(0,o.printf)(x,C,T,k,P,$,O,E,A,D)}else{let G=C;if(typeof C!="string")if(C===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof C+".");B=(0,o.printf)(G,T,k,P,$,O,E,A,D)}let U={context:N,message:B,sequence:M,time:L,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...R.transforms,...S])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let C;return h()?C=f():C=d(),typeof x=="function"?(0,e.createLogger)(g,{...C.messageContext,...y,...x},[x,...S]):(0,e.createLogger)(g,{...C.messageContext,...y,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...y}},w.adopt=async(x,C)=>{if(!h())return l===!1&&(l=!
2023-10-02 23:31:35 +00:00
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),_=`
2023-10-04 07:28:05 +00:00
color: `.concat(Kpe[f].color,`;
2023-10-02 23:31:35 +00:00
`),b=`
color: inherit;
2023-10-04 07:28:05 +00:00
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message," %O"),m,_,b,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message),m,_,b)}}};t2.createLogWriter=Xpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=t2;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(Rz);vy.ROARR.write=Rz.createLogWriter();const rj={};vy.Roarr.child(rj);const _2=tl(vy.Roarr.child(rj)),_e=e=>_2.get().child({namespace:e}),pGe=["trace","debug","info","warn","error","fatal"],gGe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Qt=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},Ype=async e=>{const t={},n=await e.arrayBuffer(),r=Vfe(n).text,i=ch(r,"invokeai_metadata");if(i){const a=zB.safeParse(JSON.parse(i));a.success?t.metadata=a.data:_e("system").error({error:Qt(a.error)},"Problem reading metadata from image")}const o=ch(r,"invokeai_workflow");if(o){const a=HB.safeParse(JSON.parse(o));a.success?t.workflow=a.data:_e("system").error({error:Qt(a.error)},"Problem reading workflow from image")}return t};var m_=globalThis&&globalThis.__generator||function(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(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;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[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},y_=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Zpe=Object.defineProperty,Jpe=Object.defineProperties,ege=Object.getOwnPropertyDescriptors,v_=Object.getOwnPropertySymbols,ij=Object.prototype.hasOwnProperty,oj=Object.prototype.propertyIsEnumerable,gR=function(e,t,n){return t in e?Zpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},wr=function(e,t){for(var n in t||(t={}))ij.call(t,n)&&gR(e,n,t[n]);if(v_)for(var r=0,i=v_(t);r<i.length;r++){var n=i[r];oj.call(t,n)&&gR(e,n,t[n])}return e},Ns=function(e,t){return Jpe(e,ege(t))},mR=function(e,t){var n={};for(var r in e)ij.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v_)for(var i=0,o=v_(e);i<o.length;i++){var r=o[i];t.indexOf(r)<0&&oj.call(e,r)&&(n[r]=e[r])}return n},b_=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(u){i(u)}},a=function(l){try{s(n.throw(l))}catch(u){i(u)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},er;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(er||(er={}));function tge(e){return{status:e,isUninitialized:e===er.uninitialized,isLoading:e===er.pending,isSuccess:e===er.fulfilled,isError:e===er.rejected}}function nge(e){return new RegExp("(^|:)//").test(e)}var rge=function(e){return e.replace(/\/$/,"")},ige=function(e){return e.replace(/^\//,"")};function oge(e,t){if(!e)return t;if(!t)return e;if(nge(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=rge(e),t=ige(t),""+e+n+t}var yR=function(e){return[].concat.apply([],e)};function age(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigat
2023-10-02 23:31:35 +00:00
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-10-04 07:28:05 +00:00
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var y=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return y_(y_([],y(a)),y(s)).filter(kC)}function p(y,S){return function(w){var x,C=o.endpointDefinitions[y],T=t({queryArgs:S,endpointDefinition:C,endpointName:y});return(x=a.get(w))==null?void 0:x[T]}}function m(y,S){return function(w){var x;return(x=s.get(w))==null?void 0:x[S]}}function _(){return function(y){return Object.values(a.get(y)||{}).filter(kC)}}function b(){return function(y){return Object.values(s.get(y)||{}).filter(kC)}}function v(y,S){var w=function(x,C){var T=C===void 0?{}:C,k=T.subscribe,P=k===void 0?!0:k,$=T.forceRefetch,O=T.subscriptionOptions,E=r0,A=T[E];return function(D,L){var M,R,N=t({queryArgs:x,endpointDefinition:S,endpointName:y}),B=n((M={type:"query",subscribe:P,forceRefetch:$,subscriptionOptions:O,endpointName:y,originalArgs:x,queryCacheKey:N},M[r0]=A,M)),U=i.endpoints[y].select(x),G=D(B),Y=U(L()),ee=G.requestId,J=G.abort,j=Y.requestId!==ee,Q=(R=a.get(D))==null?void 0:R[N],ne=function(){return U(L())},se=Object.assign(A?G.then(ne):j&&!Q?Promise.resolve(Y):Promise.all([Q,G]).then(ne),{arg:x,requestId:ee,subscriptionOptions:O,queryCacheKey:N,abort:J,unwrap:function(){return b_(this,null,function(){var ce;return m_(this,function(bt){switch(bt.label){case 0:return[4,se];case 1:if(ce=bt.sent(),ce.isError)throw ce.error;return[2,ce.data]}})})},refetch:function(){return D(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){P&&D(u({queryCacheKey:N,requestId:ee}))},updateSubscriptionOptions:function(ce){se.subscriptionOptions=ce,D(d({endpointName:y,requestId:ee,queryCacheKey:N,options:ce}))}});if(!Q&&!j&&!A){var ve=a.get(D)||{};ve[N]=se,a.set(D,ve),se.then(function(){delete ve[N],Object.keys(ve).length||a.delete(D)})}return se}};return w}function g(y){return function(S,w){var x=w===void 0?{}:w,C=x.track,T=C===void 0?!0:C,k=x.fixedCacheKey;return function(P,$){var O=r({type:"mutation",endpointName:y,originalArgs:S,track:T,fixedCacheKey:k}),E=P(O),A=E.requestId,D=E.abort,L=E.unwrap,M=E.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),R=function(){P(c({requestId:A,fixedCacheKey:k}))},N=Object.assign(M,{arg:E.arg,requestId:A,abort:D,unwrap:L,unsubscribe:R,reset:R}),B=s.get(P)||{};return s.set(P,B),B[A]=N,N.then(function(){delete B[A],Object.keys(B).length||s.delete(P)}),k&&(B[k]=N,N.then(function(){B[k]===N&&(delete B[k],Object.keys(B).length||s.delete(P))})),N}}}}function xR(e){return e}function pge(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(g,y,S){return function(w){var x=i[g];w(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:y,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,y,S){return function(w,x){var C,T,k=a.endpoints[g].select(y)(x()),P={patches:[],inversePatches:[],undo:function(){return w(a.util.patchQueryData(g,y,P.inversePatches))}};if(k.status===er.uninitialized)return P;if("data"in k)if(Ao(k.data)){var $=qk(k.data,S),O=$[1],E=$[2];(C=P.patches).push.apply(C,O),(T=P.inversePatches).push.apply(T,E)}else{var A=S(k.data);P.patches.push({op:"replace",path:[],value:A}),P.inversePatches.push({op:"replace",path:[],value:k.data})}return w(a.util.patchQueryData(g,y,P.patches)),P}},u=function(g,y,S){return function(w){var x;return w(a.endpoints[g].initiate(y,(x={subscribe:!1,forceRefetch:!0},x[r0]=function(){return{data:S}},x)))}},c=function(g,y){return b_(t,[g,y],function(S,w){var x,C,T,k,P,$,O,E,A,D,L,M,R,N,B,U,G,Y,ee=w.signal,J=w.abort,j=w.rejectWithValue,Q=w.fulfillWithValue,ne=w.dispatch,se=w.getState,ve=w.extra;return m_(this,function(ce){switch(ce.label){case 0:x=i[S.endpointName],ce.label=1;case 1:return ce.trys.push([1,8,,13]),C=xR,T=void 0,k={signal:ee,abort:J,dispatch:ne,getState:se,extra:ve,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,se()):void 0},P=S.type==="query"?S[r0]:void 0,P?(T=P(),[3,6])
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/var Zh=I;function Rge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oge=typeof Object.is=="function"?Object.is:Rge,Mge=Zh.useState,Nge=Zh.useEffect,$ge=Zh.useLayoutEffect,Dge=Zh.useDebugValue;function Lge(e,t){var n=t(),r=Mge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return $ge(function(){i.value=n,i.getSnapshot=t,TC(i)&&o({inst:i})},[e,n,t]),Nge(function(){return TC(i)&&o({inst:i}),e(function(){TC(i)&&o({inst:i})})},[e]),Dge(n),n}function TC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oge(e,n)}catch{return!0}}function Fge(e,t){return t()}var Bge=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fge:Lge;pj.useSyncExternalStore=Zh.useSyncExternalStore!==void 0?Zh.useSyncExternalStore:Bge;hj.exports=pj;var zge=hj.exports,gj={exports:{}},mj={};/**
2023-10-02 23:31:35 +00: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.
2023-10-04 07:28:05 +00:00
*/var S2=I,jge=zge;function Uge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vge=typeof Object.is=="function"?Object.is:Uge,Gge=jge.useSyncExternalStore,Hge=S2.useRef,qge=S2.useEffect,Wge=S2.useMemo,Kge=S2.useDebugValue;mj.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Hge(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Wge(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var p=a.value;if(i(p,h))return d=p}return d=h}if(p=d,Vge(c,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=Gge(e,o[0],o[1]);return qge(function(){a.hasValue=!0,a.value=s},[s]),Kge(s),s};gj.exports=mj;var yj=gj.exports;const Qge=pc(yj);function Xge(e){e()}let vj=Xge;const Yge=e=>vj=e,Zge=()=>vj,IR=Symbol.for("react-redux-context"),RR=typeof globalThis<"u"?globalThis:{};function Jge(){var e;if(!I.createContext)return{};const t=(e=RR[IR])!=null?e:RR[IR]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const ac=Jge();function OT(e=ac){return function(){return I.useContext(e)}}const bj=OT(),eme=()=>{throw new Error("uSES not initialized!")};let _j=eme;const tme=e=>{_j=e},nme=(e,t)=>e===t;function rme(e=ac){const t=e===ac?bj:OT(e);return function(r,i={}){const{equalityFn:o=nme,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();I.useRef(!0);const h=I.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,a]),p=_j(u.addNestedSub,l.getState,c||l.getState,h,o);return I.useDebugValue(p),p}}const Sj=rme();function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},__.apply(this,arguments)}var xj={exports:{}},yn={};/** @license React v16.13.1
2023-10-02 23:31:35 +00:00
* 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.
2023-10-04 07:28:05 +00:00
*/var fi=typeof Symbol=="function"&&Symbol.for,MT=fi?Symbol.for("react.element"):60103,NT=fi?Symbol.for("react.portal"):60106,x2=fi?Symbol.for("react.fragment"):60107,w2=fi?Symbol.for("react.strict_mode"):60108,C2=fi?Symbol.for("react.profiler"):60114,E2=fi?Symbol.for("react.provider"):60109,k2=fi?Symbol.for("react.context"):60110,$T=fi?Symbol.for("react.async_mode"):60111,T2=fi?Symbol.for("react.concurrent_mode"):60111,A2=fi?Symbol.for("react.forward_ref"):60112,P2=fi?Symbol.for("react.suspense"):60113,ime=fi?Symbol.for("react.suspense_list"):60120,I2=fi?Symbol.for("react.memo"):60115,R2=fi?Symbol.for("react.lazy"):60116,ome=fi?Symbol.for("react.block"):60121,ame=fi?Symbol.for("react.fundamental"):60117,sme=fi?Symbol.for("react.responder"):60118,lme=fi?Symbol.for("react.scope"):60119;function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case MT:switch(e=e.type,e){case $T:case T2:case x2:case C2:case w2:case P2:return e;default:switch(e=e&&e.$$typeof,e){case k2:case A2:case R2:case I2:case E2:return e;default:return t}}case NT:return t}}}function wj(e){return na(e)===T2}yn.AsyncMode=$T;yn.ConcurrentMode=T2;yn.ContextConsumer=k2;yn.ContextProvider=E2;yn.Element=MT;yn.ForwardRef=A2;yn.Fragment=x2;yn.Lazy=R2;yn.Memo=I2;yn.Portal=NT;yn.Profiler=C2;yn.StrictMode=w2;yn.Suspense=P2;yn.isAsyncMode=function(e){return wj(e)||na(e)===$T};yn.isConcurrentMode=wj;yn.isContextConsumer=function(e){return na(e)===k2};yn.isContextProvider=function(e){return na(e)===E2};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===MT};yn.isForwardRef=function(e){return na(e)===A2};yn.isFragment=function(e){return na(e)===x2};yn.isLazy=function(e){return na(e)===R2};yn.isMemo=function(e){return na(e)===I2};yn.isPortal=function(e){return na(e)===NT};yn.isProfiler=function(e){return na(e)===C2};yn.isStrictMode=function(e){return na(e)===w2};yn.isSuspense=function(e){return na(e)===P2};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===x2||e===T2||e===C2||e===w2||e===P2||e===ime||typeof e=="object"&&e!==null&&(e.$$typeof===R2||e.$$typeof===I2||e.$$typeof===E2||e.$$typeof===k2||e.$$typeof===A2||e.$$typeof===ame||e.$$typeof===sme||e.$$typeof===lme||e.$$typeof===ome)};yn.typeOf=na;xj.exports=yn;var ume=xj.exports,Cj=ume,cme={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dme={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ej={};Ej[Cj.ForwardRef]=cme;Ej[Cj.Memo]=dme;var kn={};/**
2023-10-02 23:31:35 +00:00
* @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.
2023-10-04 07:28:05 +00:00
*/var DT=Symbol.for("react.element"),LT=Symbol.for("react.portal"),O2=Symbol.for("react.fragment"),M2=Symbol.for("react.strict_mode"),N2=Symbol.for("react.profiler"),$2=Symbol.for("react.provider"),D2=Symbol.for("react.context"),fme=Symbol.for("react.server_context"),L2=Symbol.for("react.forward_ref"),F2=Symbol.for("react.suspense"),B2=Symbol.for("react.suspense_list"),z2=Symbol.for("react.memo"),j2=Symbol.for("react.lazy"),hme=Symbol.for("react.offscreen"),kj;kj=Symbol.for("react.module.reference");function ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case DT:switch(e=e.type,e){case O2:case N2:case M2:case F2:case B2:return e;default:switch(e=e&&e.$$typeof,e){case fme:case D2:case L2:case j2:case z2:case $2:return e;default:return t}}case LT:return t}}}kn.ContextConsumer=D2;kn.ContextProvider=$2;kn.Element=DT;kn.ForwardRef=L2;kn.Fragment=O2;kn.Lazy=j2;kn.Memo=z2;kn.Portal=LT;kn.Profiler=N2;kn.StrictMode=M2;kn.Suspense=F2;kn.SuspenseList=B2;kn.isAsyncMode=function(){return!1};kn.isConcurrentMode=function(){return!1};kn.isContextConsumer=function(e){return ka(e)===D2};kn.isContextProvider=function(e){return ka(e)===$2};kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===DT};kn.isForwardRef=function(e){return ka(e)===L2};kn.isFragment=function(e){return ka(e)===O2};kn.isLazy=function(e){return ka(e)===j2};kn.isMemo=function(e){return ka(e)===z2};kn.isPortal=function(e){return ka(e)===LT};kn.isProfiler=function(e){return ka(e)===N2};kn.isStrictMode=function(e){return ka(e)===M2};kn.isSuspense=function(e){return ka(e)===F2};kn.isSuspenseList=function(e){return ka(e)===B2};kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O2||e===N2||e===M2||e===F2||e===B2||e===hme||typeof e=="object"&&e!==null&&(e.$$typeof===j2||e.$$typeof===z2||e.$$typeof===$2||e.$$typeof===D2||e.$$typeof===L2||e.$$typeof===kj||e.getModuleId!==void 0)};kn.typeOf=ka;function pme(){const e=Zge();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 OR={notify(){},get:()=>[]};function gme(e,t){let n,r=OR;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=pme())}function u(){n&&(n(),n=void 0,r.clear(),r=OR)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const mme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yme=mme?I.useLayoutEffect:I.useEffect;function MR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function S_(e,t){if(MR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!MR(e[n[i]],t[n[i]]))return!1;return!0}function vme({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=I.useMemo(()=>{const u=gme(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=I.useMemo(()=>e.getState(),[e]);yme(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||ac;return I.createElement(l.Provider,{value:a},n)}function Tj(e=ac){const t=e===ac?bj:OT(e);return function(){const{store:r}=t();return r}}const Aj=Tj();function bme(e=ac){const t=e===ac?Aj:Tj(e);return function(){return t().dispatch}}const Pj=bme();tme(yj.useSyncExternalStoreWithSelector);Yge(Uo.unstable_batchedUpdates);var _me=globalThis&&global
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function N2e(e){if(Array.isArray(e))return e}function GC(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=lG(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function lG(e,t){if(e){if(typeof e=="string")return K9(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 K9(e,t)}}function K9(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 N_(e){"@babel/helpers - typeof";return N_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N_(e)}var Q9=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},X9=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},$2e=function e(t,n){if(t===n)return!0;if(N_(t)!=="object"||N_(n)!=="object"||t===null||t===void 0||n===null||n===void 0)return t!==t&&n!==n;if(t.constructor!==n.constructor)return!1;if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(var r=t.length;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(X9(t)&&X9(n)){if(t.byteLength!==n.byteLength)return!1;for(var i=t.byteLength;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}var o=Q9(t),a=Q9(n);if(o==="DataView"&&a==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&a==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&a==="Map"){if(t.size!==n.size)return!1;var s=GC(t.entries()),l;try{for(s.s();!(l=s.n()).done;){var u=VC(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){s.e(C)}finally{s.f()}var d=GC(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=VC(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(C){d.e(C)}finally{d.f()}return!0}if(o==="Set"&&a==="Set"){if(t.size!==n.size)return!1;var _=GC(t.entries()),b;try{for(_.s();!(b=_.n()).done;){var v=VC(b.value,1),g=v[0];if(!n.has(g))return!1}}catch(C){_.e(C)}finally{_.f()}return!0}if(o==="Date"&&a==="Date")return+t==+n;var y=Object.keys(t);if(y.length!==Object.keys(n).length)return!1;for(var S=y.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,y[S]))return!1;for(var w=y.length;w--!==0;){var x=y[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&a!=="Object"?t===n:!0};const mA=$2e;function Y9(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}function uG(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){Y9(o,r,i,a,s,"next",l)}function s(l){Y9(o,r,i,a,s,"throw",l)}a(void 0)})}}var D2e=function(){var e=uG(function*(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;if(!mA(t,n))return o.setItem("".concat(i,"rootState"),a(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),L2e=function(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;return Promise.all(Object.keys(t).map(function(s){return mA(t[s],n[s])?Promise.resolve():o.setItem("".concat(i).concat(s),a(t[s],s))}))},F2e=function(){var e=uG(function*(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=r.prefix,o=r.driver,a=r.persistWholeStore,s=r.serialize;try{var l=a?D2e:L2e;yield l(t,n,{prefix:i,driver:o,serialize:s})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function Z9(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==vf&&o!==void 0,l=a!==vf&&a!==void 0,u=this.padding(),c=o-u*2,d=a-u*2,f=0,h=this.wrap(),p=h!==yO,m=h!==MCe&&p,_=this.ellipsis();this.textArr=[],ZC().font=this._getContextFont();for(var b=_?this._getTextWidth(YC):0,v=0,g=t.length;v<g;++v){var y=t[v],S=this._getTextWidth(y);if(s&&S>c)for(;y.length>0;){for(var w=0,x=y.length,C="",T=0;w<x;){var k=w+x>>>1,P=y.slice(0,k+1),$=this._getTextWidth(P)+b;$<=c?(w=k+1,C=P,T=$):x=k}if(C){if(m){var O,E=y[C.length],A=E===jv||E===gO;A&&T<=c?O=C.length:O=Math.max(C.lastIndexOf(jv),C.lastIndexOf(gO))+1,O>0&&(w=O,C=C.slice(0,w),T=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,T),f+=i;var D=this._shouldHandleEllipsis(f);if(D){this._tryToAddEllipsisToLastLine();break}if(y=y.slice(w),y=y.trimLeft(),y.length>0&&(S=this._getTextWidth(y),S<=c)){this._addTextLine(y),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(y),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&v<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==vf&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==yO;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==vf&&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+YC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+YC)}}getStrokeScaleEnabled(){return!0}};Dd.Text=Tr;Tr.prototype._fillFunc=DCe;Tr.prototype._strokeFunc=LCe;Tr.prototype.className=TCe;Tr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,xCe._registerNode)(Tr);lo.Factory.overWriteSetter(Tr,"width",(0,Ec.getNumberOrAutoValidator)());lo.Factory.overWriteSetter(Tr,"height",(0,Ec.getNumberOrAutoValidator)());lo.Factory.addGetterSetter(Tr,"fontFamily","Arial");lo.Factory.addGetterSetter(Tr,"fontSize",12,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"fontStyle",BG);lo.Factory.addGetterSetter(Tr,"fontVariant",BG);lo.Factory.addGetterSetter(Tr,"padding",0,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"align",FG);lo.Factory.addGetterSetter(Tr,"verticalAlign",ACe);lo.Factory.addGetterSetter(Tr,"lineHeight",1,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"wrap",OCe);lo.Factory.addGetterSetter(Tr,"ellipsis",!1,(0,Ec.getBooleanValidator)());lo.Factory.addGetterSetter(Tr,"letterSpacing",0,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"text","",(0,Ec.getStringValidator)());lo.Factory.addGetterSetter(Tr,"textDecoration","");var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.TextPath=void 0;const JC=dr,fs=At,BCe=Yr,tg=Cp,e5=Dd,jG=Xe,zCe=Rt;var jCe="",UG="normal";function VG(e){e.fillText(this.partialText,0,0)}function GG(e){e.strokeText(this.partialText,0,0)}class Zr extends BCe.Shape{constructor(t){super(t),this.dummyCanvas=JC.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return tg.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:tg.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=tg.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_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=
2023-10-02 23:31:35 +00:00
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
2023-10-04 07:28:05 +00:00
)`,backgroundSize:`${e} ${e}`}}var p6e=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function g6e(e){const t=p6e();return!e||c6e(e)?t:e.string&&e.colors?y6e(e.string,e.colors):e.string&&!e.colors?m6e(e.string):e.colors&&!e.string?v6e(e.colors):t}function m6e(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 y6e(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 v6e(e){return e[Math.floor(Math.random()*e.length)]}function K(e,t){return n=>n.colorMode==="dark"?t:e}function QA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function eq(e){return Hs(e)&&e.reference?e.reference:String(e)}var iw=(e,...t)=>t.map(eq).join(` ${e} `).replace(/calc/g,""),mM=(...e)=>`calc(${iw("+",...e)})`,yM=(...e)=>`calc(${iw("-",...e)})`,h4=(...e)=>`calc(${iw("*",...e)})`,vM=(...e)=>`calc(${iw("/",...e)})`,bM=e=>{const t=eq(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:h4(t,-1)},Tl=Object.assign(e=>({add:(...t)=>Tl(mM(e,...t)),subtract:(...t)=>Tl(yM(e,...t)),multiply:(...t)=>Tl(h4(e,...t)),divide:(...t)=>Tl(vM(e,...t)),negate:()=>Tl(bM(e)),toString:()=>e.toString()}),{add:mM,subtract:yM,multiply:h4,divide:vM,negate:bM});function b6e(e){return!Number.isInteger(parseFloat(e.toString()))}function _6e(e,t="-"){return e.replace(/\s+/g,t)}function tq(e){const t=_6e(e.toString());return t.includes("\\.")?e:b6e(e)?t.replace(".","\\."):e}function S6e(e,t=""){return[t,tq(e)].filter(Boolean).join("-")}function x6e(e,t){return`var(${tq(e)}${t?`, ${t}`:""})`}function w6e(e,t=""){return`--${S6e(e,t)}`}function fr(e,t){const n=w6e(e,t==null?void 0:t.prefix);return{variable:n,reference:x6e(n,C6e(t==null?void 0:t.fallback))}}function C6e(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:E6e,definePartsStyle:Q1}=Pt(ZH.keys),Xg=fr("switch-track-width"),yd=fr("switch-track-height"),a5=fr("switch-track-diff"),k6e=Tl.subtract(Xg,yd),p4=fr("switch-thumb-x"),ag=fr("switch-bg"),T6e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xg.reference],height:[yd.reference],transitionProperty:"common",transitionDuration:"fast",[ag.variable]:"colors.gray.300",_dark:{[ag.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ag.variable]:`colors.${t}.500`,_dark:{[ag.variable]:`colors.${t}.200`}},bg:ag.reference}},A6e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[yd.reference],height:[yd.reference],_checked:{transform:`translateX(${p4.reference})`}},P6e=Q1(e=>({container:{[a5.variable]:k6e,[p4.variable]:a5.reference,_rtl:{[p4.variable]:Tl(a5).negate().toString()}},track:T6e(e),thumb:A6e})),I6e={sm:Q1({container:{[Xg.variable]:"1.375rem",[yd.variable]:"sizes.3"}}),md:Q1({container:{[Xg.variable]:"1.875rem",[yd.variable]:"sizes.4"}}),lg:Q1({container:{[Xg.variable]:"2.875rem",[yd.variable]:"sizes.6"}})},R6e=E6e({baseStyle:P6e,sizes:I6e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:O6e,definePartsStyle:xh}=Pt(WPe.keys),M6e=xh({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),H_={"&[data-is-numeric=true]":{textAlign:"end"}},N6e=xh(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...H_},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...H_},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),$6e=xh(e=>{const{c
2023-10-02 23:31:35 +00:00
to right,
transparent 0%,
${to(n,a)} 50%,
transparent 100%
2023-10-04 07:28:05 +00:00
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},I8e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},R8e=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),O8e=e=>({transitionProperty:"common",transitionDuration:"slow",...P8e(e)}),M8e=Pg(e=>({label:I8e,filledTrack:O8e(e),track:R8e(e)})),N8e={xs:Pg({track:{h:"1"}}),sm:Pg({track:{h:"2"}}),md:Pg({track:{h:"3"}}),lg:Pg({track:{h:"4"}})},$8e=A8e({sizes:N8e,baseStyle:M8e,defaultProps:{size:"md",colorScheme:"blue"}}),D8e=e=>typeof e=="function";function ro(e,...t){return D8e(e)?e(...t):e}var{definePartsStyle:eb,defineMultiStyleConfig:L8e}=Pt(UH.keys),Zg=nt("checkbox-size"),F8e=e=>{const{colorScheme:t}=e;return{w:Zg.reference,h:Zg.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},B8e={_disabled:{cursor:"not-allowed"}},z8e={userSelect:"none",_disabled:{opacity:.4}},j8e={transitionProperty:"transform",transitionDuration:"normal"},U8e=eb(e=>({icon:j8e,container:B8e,control:ro(F8e,e),label:z8e})),V8e={sm:eb({control:{[Zg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:eb({control:{[Zg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:eb({control:{[Zg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},q_=L8e({baseStyle:U8e,sizes:V8e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:G8e,definePartsStyle:tb}=Pt(HPe.keys),H8e=e=>{var t;const n=(t=ro(q_.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"}}}},q8e=tb(e=>{var t,n,r,i;return{label:(n=(t=q_).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=q_).baseStyle)==null?void 0:i.call(r,e).container,control:H8e(e)}}),W8e={md:tb({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:tb({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:tb({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},K8e=G8e({baseStyle:q8e,sizes:W8e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Q8e,definePartsStyle:X8e}=Pt(XH.keys),Yv=nt("select-bg"),MM,Y8e={...(MM=un.baseStyle)==null?void 0:MM.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Yv.reference,[Yv.variable]:"colors.white",_dark:{[Yv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Yv.reference}},Z8e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},J8e=X8e({field:Y8e,icon:Z8e}),Zv={paddingInlineEnd:"8"},NM,$M,DM,LM,FM,BM,zM,jM,eIe={lg:{...(NM=un.sizes)==null?void 0:NM.lg,field:{...($M=un.sizes)==null?void 0:$M.lg.field,...Zv}},md:{...(DM=un.sizes)==null?void 0:DM.md,field:{...(LM=un.sizes)==null?void 0:LM.md.field,...Zv}},sm:{...(FM=un.sizes)==null?void 0:FM.sm,field:{...(BM=un.sizes)==null?void 0:BM.sm.field,...Zv}},xs:{...(zM=un.sizes)==null?void 0:zM.xs,field:{...(jM=un.sizes)==null?void 0:jM.xs.field,...Zv},icon:{insetEnd:"1"}}},tIe=Q8e({baseStyle:J8e,sizes:eIe,variants:un.variants,defaultProps:un.defaultProps}),u5=nt("skeleton-start-color"),c5=nt("skeleton-end-color"),nIe={[u5.variable]:"colors.gray.100",[c5.variable]:"colors.gray.400",_dark:{[u5.variable]:"colors.gray.800",[c5.variable]:"colors.gray.600"},background:u5.reference,borderColor:c5.reference,opacity:.7,borderRadius:"sm"},rIe={baseStyle:nIe},d5=nt("sk
2023-10-02 23:31:35 +00:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
2023-10-04 07:28:05 +00:00
`),()=>{document.head.removeChild(u)}},[t]),I.createElement(cDe,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const $5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Oq(fDe),l=I.useId(),u=I.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return I.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),I.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=I.createElement(dDe,{isPresent:n},e)),I.createElement(My.Provider,{value:u},e)};function fDe(){return new Map}function hDe(e){return I.useEffect(()=>()=>e(),[])}const kf=e=>e.key||"";function pDe(e,t){e.forEach(n=>{const r=kf(n);t.set(r,n)})}function gDe(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const FW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=I.useContext(nP).forceRender||uDe()[0],l=LW(),u=gDe(e);let c=u;const d=I.useRef(new Map).current,f=I.useRef(c),h=I.useRef(new Map).current,p=I.useRef(!0);if(JA(()=>{p.current=!1,pDe(u,h),f.current=c}),hDe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,c.map(v=>I.createElement($5,{key:kf(v),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},v)));c=[...c];const m=f.current.map(kf),_=u.map(kf),b=m.length;for(let v=0;v<b;v++){const g=m[v];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((v,g)=>{if(_.indexOf(g)!==-1)return;const y=h.get(g);if(!y)return;const S=m.indexOf(g);let w=v;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(T=>T.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};w=I.createElement($5,{key:kf(y),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:a},y),d.set(g,w)}c.splice(S,0,w)}),c=c.map(v=>{const g=v.key;return d.has(g)?v:I.createElement($5,{key:kf(v),isPresent:!0,presenceAffectsLayout:o,mode:a},v)}),I.createElement(I.Fragment,null,d.size?c:c.map(v=>I.cloneElement(v)))};var mDe={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},BW=I.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=mDe,toastSpacing:c="0.5rem"}=e,[d,f]=I.useState(s),h=n$e();XM(()=>{h||r==null||r()},[h]),XM(()=>{f(s)},[s]);const p=()=>f(null),m=()=>f(s),_=()=>{h&&i()};I.useEffect(()=>{h&&o&&i()},[h,o,i]),JOe(_,d);const b=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),v=I.useMemo(()=>XOe(a),[a]);return W.jsx(DW.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:a},style:v,children:W.jsx(Oi.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:$s(n,{id:t,onClose:_})})})});BW.displayName="ToastComponent";function yDe(e,t){var n;const r=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var eN={path:W.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[W.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),W.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),W.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Fy=ra((e,t)=>{const{as:n,viewBox:
2023-10-02 23:31:35 +00:00
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`}},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
2023-10-04 07:28:05 +00:00
var(--invokeai-colors-base-800) 100%)`}}},p:2}),IFe={variants:{invokeAI:PFe},defaultProps:{size:"md",variant:"invokeAI"}},RFe=fr("popper-arrow-bg"),OFe=e=>({borderRadius:"base",shadow:"dark-lg",bg:K("base.700","base.200")(e),[RFe.variable]:K("colors.base.700","colors.base.200")(e),pb:1.5}),MFe={baseStyle:OFe},oN={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},NFe={".react-flow__nodesselection-rect":{...oN,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":oN},$Fe={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},third:{bg:"base.300",color:"base.900",".chakra-ui-dark &":{bg:"base.750",color:"base.100"}},nodeBody:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},nodeHeader:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}},nodeFooter:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...XLe},...NFe})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif",heading:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-400)",dark:"0 0 0 3px var(--invokeai-colors-accent-500)"},nodeHovered:{light:"0 0 0 2px var(--invokeai-colors-accent-500)",dark:"0 0 0 2px var(--invokeai-colors-accent-400)"},nodeHoveredSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-500)",dark:"0 0 0 3px var(--invokeai-colors-accent-400)"},nodeInProgress:{light:"0 0 0 2px var(--invokeai-colors-accent-500), 0 0 10px 2px var(--invokeai-colors-accent-600)",dark:"0 0 0 2px var(--invokeai-colors-yellow-400), 0 0 20px 2px var(--invokeai-colors-orange-700)"}},colors:BDe,components:{Button:XDe,Input:pLe,Editable:lLe,Textarea:IFe,Tabs:kFe,Progress:QLe,Accordion:WDe,FormLabel:cLe,Switch:vFe,NumberInput:LLe,Select:nFe,Skeleton:iFe,Slider:fFe,Popover:VLe,Modal:PLe,Checkbox:tLe,Menu:vLe,Text:AFe,Tooltip:MFe}},DFe={defaultOptions:{isClosable:!0}},{toast:cg}=MDe({theme:$Fe,defaultOptions:DFe.defaultOptions}),LFe=()=>{Fe({matcher:Qr.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;_e("queue").debug({enqueueResult:Qt(t)},"Batch enqueued"),cg.isActive("batch-queued")||cg({id:"batch-queued",title:Z("queue.batchQueued"),description:Z("queue.batchQueuedDesc",{item_count:t.enqueued,direct
${i.loc.join(".")}`,{length:128})})});else{let i="Unknown Error",o;t.status===403&&"body"in t?i=ch(t,"body.detail","Unknown Error"):t.status===403&&"error"in t?i=ch(t,"error.detail","Unknown Error"):t.status===403&&"data"in t&&(i=ch(t,"data.detail","Unknown Error"),o=15e3),cg({title:Z("queue.batchFailedToQueue"),status:"error",description:i,...o?{duration:o}:{}})}_e("queue").error({batchConfig:Qt(n),error:Qt(t)},Z("queue.batchFailedToQueue"))}})},eK=BL(),Fe=eK.startListening;LEe();FEe();VEe();AEe();PEe();IEe();REe();OEe();Cxe();DEe();BEe();zEe();dEe();EEe();mEe();bxe();LFe();H3e();j3e();zxe();U3e();Bxe();Lxe();G3e();fke();mxe();eke();tke();rke();ike();ake();Z4e();J4e();cke();dke();ske();uke();oke();lke();Q3e();W3e();kEe();TEe();NEe();$Ee();Exe();Y4e();Gke();MEe();GEe();xxe();qEe();_xe();yxe();Lke();pke();QEe();const FFe={canvas:hle,gallery:S0e,generation:tle,nodes:n2e,postprocessing:r2e,system:c2e,config:Mae,ui:b2e,hotkeys:v2e,controlNet:c0e,dynamicPrompts:_0e,deleteImageModal:h0e,changeBoardModal:gle,lora:C0e,modelmanager:y2e,sdxl:o2e,queue:g2e,[ls.reducerPath]:ls.reducer},BFe=pp(FFe),zFe=G2e(BFe),jFe=["canvas","gallery","generation","sdxl","nodes","postprocessing","system","ui","controlNet","dynamicPrompts","lora","modelmanager"],tK=bL({reducer:zFe,enhancers:e=>e.concat(H2e(window.localStorage,jFe,{persistDebounce:300,serialize:rxe,unserialize:oxe,prefix:q2e})).concat(jL()),middleware:e=>e({serializableCheck:!1,immutableCheck:!1}).concat(ls.middleware).concat(w2e).prepend(eK.middleware),devTools:{actionSanitizer:dxe,stateSanitizer:hxe,trace:!0,predicate:(e,t)=>!fxe.includes(t.type)}}),nK=e=>e;IB.set(tK);const UFe=e=>{const{socket:t,storeApi:n}=e,{dispatch:r}=n;t.on("connect",()=>{_e("socketio").debug("Connected"),r(Bj());const o=Ur.get();t.emit("subscribe_queue",{queue_id:o})}),t.on("connect_error",i=>{i&&i.message&&i.data==="ERR_UNAUTHENTICATED"&&r(Gt($d({title:i.message,status:"error",duration:1e4})))}),t.on("disconnect",()=>{r(zj())}),t.on("invocation_started",i=>{r(Uj({data:i}))}),t.on("generator_progress",i=>{r(qj({data:i}))}),t.on("invocation_error",i=>{r(Vj({data:i}))}),t.on("invocation_complete",i=>{r(UT({data:i}))}),t.on("graph_execution_state_complete",i=>{r(Gj({data:i}))}),t.on("model_load_started",i=>{r(Wj({data:i}))}),t.on("model_load_completed",i=>{r(Qj({data:i}))}),t.on("session_retrieval_error",i=>{r(Yj({data:i}))}),t.on("invocation_retrieval_error",i=>{r(Jj({data:i}))}),t.on("queue_item_status_changed",i=>{r(tU({data:i}))})},Ys=Object.create(null);Ys.open="0";Ys.close="1";Ys.ping="2";Ys.pong="3";Ys.message="4";Ys.upgrade="5";Ys.noop="6";const ab=Object.create(null);Object.keys(Ys).forEach(e=>{ab[Ys[e]]=e});const O4={type:"error",data:"parser error"},rK=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iK=typeof ArrayBuffer=="function",oK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,EP=({type:e,data:t},n,r)=>rK&&t instanceof Blob?n?r(t):aN(t,r):iK&&(t instanceof ArrayBuffer||oK(t))?n?r(t):aN(new Blob([t]),r):r(Ys[e]+(t||"")),aN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function sN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let D5;function VFe(e,t){if(rK&&e.data instanceof Blob)return e.data.arrayBuffer().then(sN).then(t);if(iK&&(e.data instanceof ArrayBuffer||oK(e.data)))return t(sN(e.data));EP(e,!1,n=>{D5||(D5=new TextEncoder),t(D5.encode(n))})}const lN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<lN.length;e++)Rg[lN.charCodeAt(e)]=e;const GFe=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=Rg[e.charCodeAt(r)],a=Rg[e.charCodeAt(r+1)],s=Rg[e.charCodeAt(r+2)],l=Rg[e.charCodeAt(r+3)],c[i++]=o<<2|a>>4,c[i++]=(a&15)<<4
2023-10-02 23:31:35 +00:00
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
2023-10-04 07:28:05 +00:00
`},lze={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function uze(e){let{announcements:t=lze,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=sze}=e;const{announce:o,announcement:a}=ize(),s=yw("DndLiveRegion"),[l,u]=I.useState(!1);if(I.useEffect(()=>{u(!0)},[]),oze(I.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const c=En.createElement(En.Fragment,null,En.createElement(tze,{id:r,value:i.draggable}),En.createElement(rze,{id:s,announcement:a}));return n?Uo.createPortal(c,n):c}var Hr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Hr||(Hr={}));function uS(){}function wN(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function cze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const us=Object.freeze({x:0,y:0});function dze(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function fze(e,t){const n=$0(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function hze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function pze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function gze(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function mze(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function yze(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=a*s,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const vze=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=yze(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(pze)};function bze(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const _ze=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:a}=o,s=n.get(a);if(s&&bze(r,s)){const u=gze(s).reduce((d,f)=>d+dze(r,f),0),c=Number((u/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(hze)};function Sze(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function EK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:us}function xze(e){return 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];return i.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const wze=xze(1);function kK(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Cze(e,t,n){const r=kK(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat