mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
158 lines
1.4 MiB
JavaScript
158 lines
1.4 MiB
JavaScript
|
var fq=Object.defineProperty;var hq=(e,t,n)=>t in e?fq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q2=(e,t,n)=>(hq(e,typeof t!="symbol"?t+"":t,n),n),Y2=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var te=(e,t,n)=>(Y2(e,t,"read from private field"),n?n.call(e):t.get(e)),Gt=(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)},$i=(e,t,n,r)=>(Y2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var eh=(e,t,n,r)=>({set _(i){$i(e,t,i,n)},get _(){return te(e,t,r)}}),Go=(e,t,n)=>(Y2(e,t,"access private method"),n);function gO(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 He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pq(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 mO={exports:{}},Sb={},yO={exports:{}},Ke={};/**
|
||
|
* @license React
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var rm=Symbol.for("react.element"),gq=Symbol.for("react.portal"),mq=Symbol.for("react.fragment"),yq=Symbol.for("react.strict_mode"),vq=Symbol.for("react.profiler"),bq=Symbol.for("react.provider"),_q=Symbol.for("react.context"),Sq=Symbol.for("react.forward_ref"),xq=Symbol.for("react.suspense"),wq=Symbol.for("react.memo"),Cq=Symbol.for("react.lazy"),JA=Symbol.iterator;function Eq(e){return e===null||typeof e!="object"?null:(e=JA&&e[JA]||e["@@iterator"],typeof e=="function"?e:null)}var vO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bO=Object.assign,_O={};function Pf(e,t,n){this.props=e,this.context=t,this.refs=_O,this.updater=n||vO}Pf.prototype.isReactComponent={};Pf.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")};Pf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SO(){}SO.prototype=Pf.prototype;function t4(e,t,n){this.props=e,this.context=t,this.refs=_O,this.updater=n||vO}var n4=t4.prototype=new SO;n4.constructor=t4;bO(n4,Pf.prototype);n4.isPureReactComponent=!0;var eP=Array.isArray,xO=Object.prototype.hasOwnProperty,r4={current:null},wO={key:!0,ref:!0,__self:!0,__source:!0};function CO(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)xO.call(t,r)&&!wO.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:rm,type:e,key:o,ref:a,props:i,_owner:r4.current}}function Tq(e,t){return{$$typeof:rm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function i4(e){return typeof e=="object"&&e!==null&&e.$$typeof===rm}function Aq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tP=/\/+/g;function Z2(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Aq(""+e.key):t.toString(36)}function Ay(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 rm:case gq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Z2(a,0):r,eP(i)?(n="",e!=null&&(n=e.replace(tP,"$&/")+"/"),Ay(i,t,n,"",function(u){return u})):i!=null&&(i4(i)&&(i=Tq(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(tP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",eP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Z2(o,s);a+=Ay(o,t,n,l,i)}else if(l=Eq(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Z2(o,s++),a+=Ay(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 t0(e,t,n){if(e==null)return e;var r=[],i=0;return Ay(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Pq(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 Fr={current:null},Py={transition:null},kq={ReactCurrentDispatcher:Fr,ReactCurrentBatchConfig:Py,ReactCurrentOwner:r4};Ke.Children={map:t0,forEach:function(e,t,n){t0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return t0(e,function(){t++}),t},toArray:function(e){return t0(e,function(t){return t})||[]},only:function(e){if(!i4(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ke.Component=Pf;Ke.Fragment=mq;Ke.Profiler=vq;Ke
|
||
|
* @license React
|
||
|
* react-jsx-runtime.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var Iq=k,Mq=Symbol.for("react.element"),Rq=Symbol.for("react.fragment"),Oq=Object.prototype.hasOwnProperty,$q=Iq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nq={key:!0,ref:!0,__self:!0,__source:!0};function EO(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)Oq.call(t,r)&&!Nq.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:Mq,type:e,key:o,ref:a,props:i,_owner:$q.current}}Sb.Fragment=Rq;Sb.jsx=EO;Sb.jsxs=EO;mO.exports=Sb;var oe=mO.exports,aC={},TO={exports:{}},Ai={},AO={exports:{}},PO={};/**
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t($,L){var O=$.length;$.push(L);e:for(;0<O;){var B=O-1>>>1,U=$[B];if(0<i(U,L))$[B]=L,$[O]=U,O=B;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var L=$[0],O=$.pop();if(O!==L){$[0]=O;e:for(var B=0,U=$.length,j=U>>>1;B<j;){var q=2*(B+1)-1,Y=$[q],Z=q+1,V=$[Z];if(0>i(Y,O))Z<U&&0>i(V,Y)?($[B]=V,$[Z]=O,B=Z):($[B]=Y,$[q]=O,B=q);else if(Z<U&&0>i(V,O))$[B]=V,$[Z]=O,B=Z;else break e}}return L}function i($,L){var O=$.sortIndex-L.sortIndex;return O!==0?O:$.id-L.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,g=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m($){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=$)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function v($){if(g=!1,m($),!p)if(n(l)!==null)p=!0,R(S);else{var L=n(u);L!==null&&D(v,L.startTime-$)}}function S($,L){p=!1,g&&(g=!1,b(x),x=-1),h=!0;var O=f;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||$&&!I());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var U=B(d.expirationTime<=L);L=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var j=!0;else{var q=n(u);q!==null&&D(v,q.startTime-L),j=!1}return j}finally{d=null,f=O,h=!1}}var w=!1,C=null,x=-1,P=5,E=-1;function I(){return!(e.unstable_now()-E<P)}function N(){if(C!==null){var $=e.unstable_now();E=$;var L=!0;try{L=C(!0,$)}finally{L?M():(w=!1,C=null)}}else w=!1}var M;if(typeof y=="function")M=function(){y(N)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,A=T.port2;T.port1.onmessage=N,M=function(){A.postMessage(null)}}else M=function(){_(N,0)};function R($){C=$,w||(w=!0,M())}function D($,L){x=_(function(){$(e.unstable_now())},L)}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($){$.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,R(S))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var O=f;f=L;try{return $()}finally{f=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,L){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var O=f;f=$;try{return L()}finally{f=O}},e.unstable_scheduleCallback=function($,L,O){var B=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?B+O:B):O=B,$){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=O+U,$={id:c++,callback:L,priorityLevel:$,startTime:O,expirationTime:U,sortIndex:-1},O>B?($.sortIndex=O,t(u,$),n(l)===null&&$===n(u)&&(g?(b(x),x=-1):g=!0,D(v,O-B))):($.sortIndex=U,t(l,$),p||h||(p=!0,R(S))),$},e.unstable_shouldYield=I,e.unstable_wrapCallback=function($){var L=f;return function(){var O=f;f=L;try{return $.apply(this,arguments)}finally{f=O}}}})(PO);AO.exports=PO;var Dq=AO.exports;/**
|
||
|
* @license React
|
||
|
* react-dom.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var kO=k,wi=Dq;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var IO=new Set,Pp={};function uc(e,t){Jd(e,t),Jd(e+"Capture",t)}function Jd(e,t){for(Pp[e]=t,e=0;e<t.length;e++)IO.add(t[e])}var us=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sC=Object.prototype.hasOwnProperty,Lq=/^[: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]*$/,rP={},iP={};function Fq(e){return sC.call(iP,e)?!0:sC.call(rP,e)?!1:Lq.test(e)?iP[e]=!0:(rP[e]=!0,!1)}function Bq(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 zq(e,t,n,r){if(t===null||typeof t>"u"||Bq(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 Br(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 sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){sr[e]=new Br(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];sr[t]=new Br(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){sr[e]=new Br(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){sr[e]=new Br(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){sr[e]=new Br(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){sr[e]=new Br(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){sr[e]=new Br(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){sr[e]=new Br(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){sr[e]=new Br(e,5,!1,e.toLowerCase(),null,!1,!1)});var o4=/[\-:]([a-z])/g;function a4(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
|
||
|
`+J2+e}var ex=!1;function tx(e,t){if(!e||ex)return"";ex=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
|
`),o=r.stack.split(`
|
||
|
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
|
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ex=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nh(e):""}function Vq(e){switch(e.tag){case 5:return Nh(e.type);case 16:return Nh("Lazy");case 13:return Nh("Suspense");case 19:return Nh("SuspenseList");case 0:case 2:case 15:return e=tx(e.type,!1),e;case 11:return e=tx(e.type.render,!1),e;case 1:return e=tx(e.type,!0),e;default:return""}}function dC(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 Yc:return"Fragment";case Qc:return"Portal";case lC:return"Profiler";case l4:return"StrictMode";case uC:return"Suspense";case cC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RO:return(e.displayName||"Context")+".Consumer";case MO:return(e._context.displayName||"Context")+".Provider";case u4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case c4:return t=e.displayName||null,t!==null?t:dC(e.type)||"Memo";case Gs:t=e._payload,e=e._init;try{return dC(e(t))}catch{}}return null}function jq(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 dC(t);case 8:return t===l4?"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 wl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $O(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uq(e){var t=$O(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 r0(e){e._valueTracker||(e._valueTracker=Uq(e))}function NO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$O(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(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 fC(e,t){var n=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function aP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wl(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 DO(e,t){t=t.checked,t!=null&&s4(e,"checked",t,!1)}function hC(e,t){DO(e,t);var n=wl(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")?pC(e,t.type,n):t.hasOwnProperty("defaultValue")&&pC(e,t.type,wl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sP(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(JW,"")}function d0(e,t,n){if(t=IP(t),IP(e)!==t&&n)throw Error(ne(425))}function Pv(){}var PC=null,kC=null;function IC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var MC=typeof setTimeout=="function"?setTimeout:void 0,eK=typeof clearTimeout=="function"?clearTimeout:void 0,MP=typeof Promise=="function"?Promise:void 0,tK=typeof queueMicrotask=="function"?queueMicrotask:typeof MP<"u"?function(e){return MP.resolve(null).then(e).catch(nK)}:MC;function nK(e){setTimeout(function(){throw e})}function px(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),Op(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Op(t)}function dl(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 RP(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 If=Math.random().toString(36).slice(2),ra="__reactFiber$"+If,Fp="__reactProps$"+If,cs="__reactContainer$"+If,RC="__reactEvents$"+If,rK="__reactListeners$"+If,iK="__reactHandles$"+If;function Tu(e){var t=e[ra];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cs]||n[ra]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=RP(e);e!==null;){if(n=e[ra])return n;e=RP(e)}return t}e=n,n=e.parentNode}return null}function am(e){return e=e[ra]||e[cs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function td(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function Tb(e){return e[Fp]||null}var OC=[],nd=-1;function Vl(e){return{current:e}}function zt(e){0>nd||(e.current=OC[nd],OC[nd]=null,nd--)}function Mt(e,t){nd++,OC[nd]=e.current,e.current=t}var Cl={},br=Vl(Cl),Zr=Vl(!1),Xu=Cl;function ef(e,t){var n=e.type.contextTypes;if(!n)return Cl;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 Jr(e){return e=e.childContextTypes,e!=null}function kv(){zt(Zr),zt(br)}function OP(e,t,n){if(br.current!==Cl)throw Error(ne(168));Mt(br,t),Mt(Zr,n)}function C7(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ne(108,jq(e)||"Unknown",i));return en({},n,r)}function Iv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cl,Xu=br.current,Mt(br,e),Mt(Zr,Zr.current),!0}function $P(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=C7(e,t,Xu),r.__reactInternalMemoizedMergedChildContext=e,zt(Zr),zt(br),Mt(br,e)):zt(Zr),Mt(Zr,n)}var ja=null,Ab=!1,gx=!1;function E7(e){ja===null?ja=[e]:ja.push(e)}function oK(e){Ab=!0,E7(e)}function jl(){if(!gx&&ja!==null){gx=!0;var e=0,t=vt;try{var n=ja;for(vt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ja=null,Ab=!1}catch(i){throw ja!==null&&(ja=ja.slice(e+1)),QO(f4,jl),i}finally{vt=t,gx=!1}}return null}var rd=[],id=0,Mv=null,Rv=0,Gi=[],Hi=0,Qu=null,Qa=1,Ya="";function hu(e,t){rd[id++]=Rv,rd[id++]=Mv,Mv=e,Rv=t}function T7(e,t,n){Gi[Hi++]=Qa,Gi[Hi++]=Ya,Gi[Hi++]=Qu,Qu=e;var r=Qa;e=Ya;var i=32-To(r)-1;r&=~(1<<i),n+=1;var o=32-To(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qa=1<<32-To(t)+i|n<<i|r,Ya=o+e}else Qa=1<<o|n<<i|r,Ya=e}function S4(e){e.return!==null&&(hu(e,1),T7(e,1,0))}function x4(e){for(;e===Mv;)Mv=rd[--id],rd[id]=null,Rv=rd[--id],rd[id]=null;for(;e===Qu;)Qu=Gi[--Hi],Gi[Hi]=null,Ya=Gi[--Hi],Gi[Hi]=null,Qa=Gi[--Hi],Gi[Hi]=null}var _i=null,bi=null,qt=!1,_o=null;function A7(e,t){var n=Wi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function _x(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function BC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pK=typeof WeakMap=="function"?WeakMap:Map;function t$(e,t,n){n=ns(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zv||(zv=!0,XC=r),BC(e,t)},n}function n$(e,t,n){n=ns(-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(){BC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){BC(e,t),typeof r!="function"&&(hl===null?hl=new Set([this]):hl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function GP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pK;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=PK.bind(null,e,t,n),t.then(e,e))}function HP(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 qP(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=ns(-1,1),t.tag=2,fl(n,t,1))),n.lanes|=1),e)}var gK=Ss.ReactCurrentOwner,Xr=!1;function Mr(e,t,n,r){t.child=e===null?$7(t,null,n,r):nf(t,e.child,n,r)}function WP(e,t,n,r,i){n=n.render;var o=t.ref;return Cd(t,i),r=O4(e,t,n,r,o,i),n=$4(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fs(e,t,i)):(qt&&n&&S4(t),t.flags|=1,Mr(e,t,r,i),t.child)}function KP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!G4(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,r$(e,t,o,r,i)):(e=Fy(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:Np,n(a,r)&&e.ref===t.ref)return fs(e,t,i)}return t.flags|=1,e=gl(o,r),e.ref=t.ref,e.return=t,t.child=e}function r$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Np(o,r)&&e.ref===t.ref)if(Xr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Xr=!0);else return t.lanes=e.lanes,fs(e,t,i)}return zC(e,t,n,r,i)}function i$(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},Mt(sd,pi),pi|=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,Mt(sd,pi),pi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Mt(sd,pi),pi|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mt(sd,pi),pi|=r;return Mr(e,t,i,n),t.child}function o$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zC(e,t,n,r,i){var o=Jr(n)?Xu:br.current;return o=ef(t,o),Cd(t,i),n=O4(e,t,n,r,o,i),r=$4(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fs(e,t,i)):(qt&&r&&S4(t),t.flags|=1,Mr(e,t,n,i),t.child)}function XP(e,t,n,r,i){if(Jr(n)){var o=!0;Iv(t)}else o=!1;if(Cd(t,i),t.stateNode===null)Ny(e,t),R7(t,n,r),FC(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=Qi(u):(u=Jr(n)?Xu:br.current,u=ef(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)&&zP(t,a,r,u),Hs=!1;var f=t.memoizedState;a.state=f,Nv(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Zr.current||Hs?(typeof c=="function"&&(LC(t,n,c,r),l=t.memoizedState),(s=Hs||BP(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var v=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return m1(m1([],v(a)),v(s)).filter(Lx)}function p(v,S){return function(w){var C,x=o.endpointDefinitions[v],P=t({queryArgs:S,endpointDefinition:x,endpointName:v});return(C=a.get(w))==null?void 0:C[P]}}function g(v,S){return function(w){var C;return(C=s.get(w))==null?void 0:C[S]}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(Lx)}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(Lx)}}function y(v,S){var w=function(C,x){var P=x===void 0?{}:x,E=P.subscribe,I=E===void 0?!0:E,N=P.forceRefetch,M=P.subscriptionOptions,T=gg,A=P[T];return function(R,D){var $,L,O=t({queryArgs:C,endpointDefinition:S,endpointName:v}),B=n(($={type:"query",subscribe:I,forceRefetch:N,subscriptionOptions:M,endpointName:v,originalArgs:C,queryCacheKey:O},$[gg]=A,$)),U=i.endpoints[v].select(C),j=R(B),q=U(D()),Y=j.requestId,Z=j.abort,V=q.requestId!==Y,K=(L=a.get(R))==null?void 0:L[O],ee=function(){return U(D())},re=Object.assign(A?j.then(ee):V&&!K?Promise.resolve(q):Promise.all([K,j]).then(ee),{arg:C,requestId:Y,subscriptionOptions:M,queryCacheKey:O,abort:Z,unwrap:function(){return v1(this,null,function(){var Se;return g1(this,function(Me){switch(Me.label){case 0:return[4,re];case 1:if(Se=Me.sent(),Se.isError)throw Se.error;return[2,Se.data]}})})},refetch:function(){return R(w(C,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){I&&R(u({queryCacheKey:O,requestId:Y}))},updateSubscriptionOptions:function(Se){re.subscriptionOptions=Se,R(d({endpointName:v,requestId:Y,queryCacheKey:O,options:Se}))}});if(!K&&!V&&!A){var fe=a.get(R)||{};fe[O]=re,a.set(R,fe),re.then(function(){delete fe[O],Object.keys(fe).length||a.delete(R)})}return re}};return w}function m(v){return function(S,w){var C=w===void 0?{}:w,x=C.track,P=x===void 0?!0:x,E=C.fixedCacheKey;return function(I,N){var M=r({type:"mutation",endpointName:v,originalArgs:S,track:P,fixedCacheKey:E}),T=I(M),A=T.requestId,R=T.abort,D=T.unwrap,$=T.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),L=function(){I(c({requestId:A,fixedCacheKey:E}))},O=Object.assign($,{arg:T.arg,requestId:A,abort:R,unwrap:D,unsubscribe:L,reset:L}),B=s.get(I)||{};return s.set(I,B),B[A]=O,O.then(function(){delete B[A],Object.keys(B).length||s.delete(I)}),E&&(B[E]=O,O.then(function(){B[E]===O&&(delete B[E],Object.keys(B).length||s.delete(I))})),O}}}}function L6(e){return e}function Yae(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=e.assertTagType,l=function(v,S,w,C){return function(x,P){var E=i[v],I=o({queryArgs:S,endpointDefinition:E,endpointName:v});if(x(a.internalActions.queryResultPatched({queryCacheKey:I,patches:w})),!!C){var N=a.endpoints[v].select(S)(P()),M=VE(E.providesTags,N.data,void 0,S,{},s);x(a.internalActions.updateProvidedBy({queryCacheKey:I,providedTags:M}))}}},u=function(v,S,w,C){return C===void 0&&(C=!0),function(x,P){var E,I,N=a.endpoints[v],M=N.select(S)(P()),T={patches:[],inversePatches:[],undo:function(){return x(a.util.patchQueryData(v,S,T.inversePatches,C))}};if(M.status===Ht.uninitialized)return T;var A;if("data"in M)if(ti(M.data)){var R=nE(M.data,w),D=R[0],$=R[1],L=R[2];(E=T.patches).push.apply(E,$),(I=T.inversePatches).push.apply(I,L),A=D}else A=w(M.data),T.patches.push({op:"replace",path:[],value:A}),T.inversePatches.push({op:"replace",path:[],value:M.data});return x(a.util.patchQueryData(v,S,T.patches,C)),T}},c=function(v,S,w){return function(C){var x;return C(a.endpoints[v].initiate(S,(x={subscribe:!1,forceRefetch:!0},x[gg]=function(){return{data:w}},x)))}},d=function(v,S){return v1(t,[v,S],function(w,C){var x,P,E,I,N,M,T,A,R,D,$,L,O,B,U,j,q,Y,Z=C.signal,V=C.abort,K=C.rejectWithValue,ee=C.fulfillWithValue,re=C.dispatch,fe=C.getState,Se=C.extra;return g1(this,function(Me){switch(Me.label){case 0:x=i[w.endpointName],Me.label=1;case 1:re
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var pf=k;function pse(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gse=typeof Object.is=="function"?Object.is:pse,mse=pf.useState,yse=pf.useEffect,vse=pf.useLayoutEffect,bse=pf.useDebugValue;function _se(e,t){var n=t(),r=mse({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return vse(function(){i.value=n,i.getSnapshot=t,Fx(i)&&o({inst:i})},[e,n,t]),yse(function(){return Fx(i)&&o({inst:i}),e(function(){Fx(i)&&o({inst:i})})},[e]),bse(n),n}function Fx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gse(e,n)}catch{return!0}}function Sse(e,t){return t()}var xse=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Sse:_se;GL.useSyncExternalStore=pf.useSyncExternalStore!==void 0?pf.useSyncExternalStore:xse;UL.exports=GL;var wse=UL.exports,HL={exports:{}},qL={};/**
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim/with-selector.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var d_=k,Cse=wse;function Ese(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tse=typeof Object.is=="function"?Object.is:Ese,Ase=Cse.useSyncExternalStore,Pse=d_.useRef,kse=d_.useEffect,Ise=d_.useMemo,Mse=d_.useDebugValue;qL.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Pse(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Ise(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,Tse(c,h))return p;var g=r(h);return i!==void 0&&i(p,g)?p:(c=h,d=g)}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=Ase(e,o[0],o[1]);return kse(function(){a.hasValue=!0,a.value=s},[s]),Mse(s),s};HL.exports=qL;var WL=HL.exports;const Rse=Bl(WL);function Ose(e){e()}let KL=Ose;const $se=e=>KL=e,Nse=()=>KL,H6=Symbol.for("react-redux-context"),q6=typeof globalThis<"u"?globalThis:{};function Dse(){var e;if(!k.createContext)return{};const t=(e=q6[H6])!=null?e:q6[H6]=new Map;let n=t.get(k.createContext);return n||(n=k.createContext(null),t.set(k.createContext,n)),n}const Ml=Dse();function jE(e=Ml){return function(){return k.useContext(e)}}const XL=jE(),Lse=()=>{throw new Error("uSES not initialized!")};let QL=Lse;const Fse=e=>{QL=e},Bse=(e,t)=>e===t;function zse(e=Ml){const t=e===Ml?XL:jE(e);return function(r,i={}){const{equalityFn:o=Bse,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();k.useRef(!0);const h=k.useCallback({[r.name](g){return r(g)}}[r.name],[r,d,a]),p=QL(u.addNestedSub,l.getState,c||l.getState,h,o);return k.useDebugValue(p),p}}const YL=zse();function b1(){return b1=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},b1.apply(this,arguments)}var ZL={exports:{}},bt={};/** @license React v16.13.1
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var Wn=typeof Symbol=="function"&&Symbol.for,UE=Wn?Symbol.for("react.element"):60103,GE=Wn?Symbol.for("react.portal"):60106,f_=Wn?Symbol.for("react.fragment"):60107,h_=Wn?Symbol.for("react.strict_mode"):60108,p_=Wn?Symbol.for("react.profiler"):60114,g_=Wn?Symbol.for("react.provider"):60109,m_=Wn?Symbol.for("react.context"):60110,HE=Wn?Symbol.for("react.async_mode"):60111,y_=Wn?Symbol.for("react.concurrent_mode"):60111,v_=Wn?Symbol.for("react.forward_ref"):60112,b_=Wn?Symbol.for("react.suspense"):60113,Vse=Wn?Symbol.for("react.suspense_list"):60120,__=Wn?Symbol.for("react.memo"):60115,S_=Wn?Symbol.for("react.lazy"):60116,jse=Wn?Symbol.for("react.block"):60121,Use=Wn?Symbol.for("react.fundamental"):60117,Gse=Wn?Symbol.for("react.responder"):60118,Hse=Wn?Symbol.for("react.scope"):60119;function ki(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case UE:switch(e=e.type,e){case HE:case y_:case f_:case p_:case h_:case b_:return e;default:switch(e=e&&e.$$typeof,e){case m_:case v_:case S_:case __:case g_:return e;default:return t}}case GE:return t}}}function JL(e){return ki(e)===y_}bt.AsyncMode=HE;bt.ConcurrentMode=y_;bt.ContextConsumer=m_;bt.ContextProvider=g_;bt.Element=UE;bt.ForwardRef=v_;bt.Fragment=f_;bt.Lazy=S_;bt.Memo=__;bt.Portal=GE;bt.Profiler=p_;bt.StrictMode=h_;bt.Suspense=b_;bt.isAsyncMode=function(e){return JL(e)||ki(e)===HE};bt.isConcurrentMode=JL;bt.isContextConsumer=function(e){return ki(e)===m_};bt.isContextProvider=function(e){return ki(e)===g_};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===UE};bt.isForwardRef=function(e){return ki(e)===v_};bt.isFragment=function(e){return ki(e)===f_};bt.isLazy=function(e){return ki(e)===S_};bt.isMemo=function(e){return ki(e)===__};bt.isPortal=function(e){return ki(e)===GE};bt.isProfiler=function(e){return ki(e)===p_};bt.isStrictMode=function(e){return ki(e)===h_};bt.isSuspense=function(e){return ki(e)===b_};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===f_||e===y_||e===p_||e===h_||e===b_||e===Vse||typeof e=="object"&&e!==null&&(e.$$typeof===S_||e.$$typeof===__||e.$$typeof===g_||e.$$typeof===m_||e.$$typeof===v_||e.$$typeof===Use||e.$$typeof===Gse||e.$$typeof===Hse||e.$$typeof===jse)};bt.typeOf=ki;ZL.exports=bt;var qse=ZL.exports,eF=qse,Wse={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kse={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tF={};tF[eF.ForwardRef]=Wse;tF[eF.Memo]=Kse;var St={};/**
|
||
|
* @license React
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var qE=Symbol.for("react.element"),WE=Symbol.for("react.portal"),x_=Symbol.for("react.fragment"),w_=Symbol.for("react.strict_mode"),C_=Symbol.for("react.profiler"),E_=Symbol.for("react.provider"),T_=Symbol.for("react.context"),Xse=Symbol.for("react.server_context"),A_=Symbol.for("react.forward_ref"),P_=Symbol.for("react.suspense"),k_=Symbol.for("react.suspense_list"),I_=Symbol.for("react.memo"),M_=Symbol.for("react.lazy"),Qse=Symbol.for("react.offscreen"),nF;nF=Symbol.for("react.module.reference");function eo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qE:switch(e=e.type,e){case x_:case C_:case w_:case P_:case k_:return e;default:switch(e=e&&e.$$typeof,e){case Xse:case T_:case A_:case M_:case I_:case E_:return e;default:return t}}case WE:return t}}}St.ContextConsumer=T_;St.ContextProvider=E_;St.Element=qE;St.ForwardRef=A_;St.Fragment=x_;St.Lazy=M_;St.Memo=I_;St.Portal=WE;St.Profiler=C_;St.StrictMode=w_;St.Suspense=P_;St.SuspenseList=k_;St.isAsyncMode=function(){return!1};St.isConcurrentMode=function(){return!1};St.isContextConsumer=function(e){return eo(e)===T_};St.isContextProvider=function(e){return eo(e)===E_};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qE};St.isForwardRef=function(e){return eo(e)===A_};St.isFragment=function(e){return eo(e)===x_};St.isLazy=function(e){return eo(e)===M_};St.isMemo=function(e){return eo(e)===I_};St.isPortal=function(e){return eo(e)===WE};St.isProfiler=function(e){return eo(e)===C_};St.isStrictMode=function(e){return eo(e)===w_};St.isSuspense=function(e){return eo(e)===P_};St.isSuspenseList=function(e){return eo(e)===k_};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===x_||e===C_||e===w_||e===P_||e===k_||e===Qse||typeof e=="object"&&e!==null&&(e.$$typeof===M_||e.$$typeof===I_||e.$$typeof===E_||e.$$typeof===T_||e.$$typeof===A_||e.$$typeof===nF||e.getModuleId!==void 0)};St.typeOf=eo;function Yse(){const e=Nse();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 W6={notify(){},get:()=>[]};function Zse(e,t){let n,r=W6,i=0,o=!1;function a(g){c();const _=r.subscribe(g);let b=!1;return()=>{b||(b=!0,_(),d())}}function s(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Yse())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=W6)}function f(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const p={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>r};return p}const Jse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ele=Jse?k.useLayoutEffect:k.useEffect;function K6(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _1(e,t){if(K6(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])||!K6(e[n[i]],t[n[i]]))return!1;return!0}function tle({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=k.useMemo(()=>{const u=Zse(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=k.useMemo(()=>e.getState(),[e]);ele(()=>{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||Ml;return k.createElement(l.Provider,{value:a},n)}function rF(e=Ml){const t=e===Ml?XL:jE(e);return function(){const{store:r}=t();return r}}const iF=rF();function nle(e=Ml){const t=e===Ml?iF:rF(e);return function(){return t().dispatc
|
||
|
`&&(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,g=String(this.line).length;return c+=" at line "+this.line+" col "+p+`:
|
||
|
|
||
|
`,c+=f.map(function(b,y){return _(this.line-f.length+y+1,g)+" "+b},this).join(`
|
||
|
`),c+=`
|
||
|
`+_("",g+p)+`^
|
||
|
`,c}else return c+" at index "+(this.index-1);function _(b,y){var m=String(b);return Array(y-m.length+1).join(" ")+m}};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(C){var g=new r(this.grammar,this.current+1);this.table.push(g);var f=new Error(this.reportLexerError(C));throw f.offset=this.current,f.token=C.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,g=new r(this.grammar,p);this.table.push(g);for(var _=d.text!==void 0?d.text:d.value,b=c.constructor===o?d.value:d,y=h.scannable,m=y.length;m--;){var v=y[m],S=v.rule.symbols[v.dot];if(S.test?S.test(b):S.type?S.type===d.type:S.literal===_){var w=v.nextState({data:b,token:d,isToken:!0,reference:p-1});g.states.push(w)}}if(g.process(),g.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 g=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);g.forEach(function(_){var b=_[0],y=b.rule.symbols[b.dot],m=this.getSymbolDisplay(y);d.push("A "+m+" based on:"),this.displayStateStack(_,d)},this)}return d.push(""),d.join(`
|
||
|
`)},a.prototype.displayStateStack=function(u,c){for(var d,f=0,h=0;h<u.length;h++){var p=u[h],g=p.rule.toString(p.dot);g===d?f++:(f>0&&c.push(" ^ "+f+" more lines identical to this"),f=0,c.push(" "+g)),d=g}},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}})})(EF);var dce=EF.exports,ic={},TF={},Wl={};Wl.__esModule=void 0;Wl.__esModule=!0;var fce=typeof Object.setPrototypeOf=="function",hce=typeof Object.getPrototypeOf=="function",pce=typeof Object.defineProperty=="function",gce=typeof Object.create=="function",mce=typeof Object.prototype.hasOwnProperty=="function",yce=function(t,n){fce?Object.setPrototypeOf(t,n):t.__proto__=n};Wl.setPrototypeOf=yce;var vce=function(t){return hce?Object.getPrototypeOf(t):t.__proto__||t.prototype};Wl.getPrototypeOf=vce;var lI=!1,bce=function e(t,n,r){if(pce&&!lI)try{Object.defineProperty(t,n,r)}catch{lI=!0,e(t,n,r)}else t[n]=r.value};Wl.defineProperty=bce;var AF=function(t,n){return mce?t.hasOwnProperty(t,n):t[n]===void 0};Wl.hasOwnProperty=AF;var _ce=function(t,n){if(gce)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)AF(n,o)&&(i[o]=n[o].value);return i};Wl.objectCreate=_ce;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Wl,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 g=new Error(u);g.name=p.name,p.stack=g.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})(TF);var PF=He&&He.__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(
|
||
|
${$}`,B=`,
|
||
|
${$}`);const K=Math.min(L.length,C);let ee=0;for(;ee<K-1;ee++){const fe=x(String(ee),L,A,R,D,$);O+=fe!==void 0?fe:"null",O+=B}const re=x(String(ee),L,A,R,D,$);if(O+=re!==void 0?re:"null",L.length-1>C){const fe=L.length-C-1;O+=`${B}"... ${h(fe)} not stringified"`}return D!==""&&(O+=`
|
||
|
${U}`),A.pop(),`[${O}]`}let j=Object.keys(L);const q=j.length;if(q===0)return"{}";if(w<A.length+1)return'"[Object]"';let Y="",Z="";D!==""&&($+=D,B=`,
|
||
|
${$}`,Y=" ");const V=Math.min(q,C);S&&!l(L)&&(j=a(j)),A.push(L);for(let K=0;K<V;K++){const ee=j[K],re=x(ee,L,A,R,D,$);re!==void 0&&(O+=`${Z}${o(ee)}:${Y}${re}`,Z=B)}if(q>C){const K=q-C;O+=`${Z}"...":${Y}"${h(K)} not stringified"`,Z=B}return D!==""&&Z.length>1&&(O=`
|
||
|
${$}${O}
|
||
|
${U}`),A.pop(),`{${O}}`}case"number":return isFinite(L)?String(L):y?y(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(L);default:return y?y(L):void 0}}function P(M,T,A,R,D,$){switch(typeof T=="object"&&T!==null&&typeof T.toJSON=="function"&&(T=T.toJSON(M)),typeof T){case"string":return o(T);case"object":{if(T===null)return"null";if(A.indexOf(T)!==-1)return m;const L=$;let O="",B=",";if(Array.isArray(T)){if(T.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(T),D!==""&&($+=D,O+=`
|
||
|
${$}`,B=`,
|
||
|
${$}`);const q=Math.min(T.length,C);let Y=0;for(;Y<q-1;Y++){const V=P(String(Y),T[Y],A,R,D,$);O+=V!==void 0?V:"null",O+=B}const Z=P(String(Y),T[Y],A,R,D,$);if(O+=Z!==void 0?Z:"null",T.length-1>C){const V=T.length-C-1;O+=`${B}"... ${h(V)} not stringified"`}return D!==""&&(O+=`
|
||
|
${L}`),A.pop(),`[${O}]`}A.push(T);let U="";D!==""&&($+=D,B=`,
|
||
|
${$}`,U=" ");let j="";for(const q of R){const Y=P(q,T[q],A,R,D,$);Y!==void 0&&(O+=`${j}${o(q)}:${U}${Y}`,j=B)}return D!==""&&j.length>1&&(O=`
|
||
|
${$}${O}
|
||
|
${L}`),A.pop(),`{${O}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(T);default:return y?y(T):void 0}}function E(M,T,A,R,D){switch(typeof T){case"string":return o(T);case"object":{if(T===null)return"null";if(typeof T.toJSON=="function"){if(T=T.toJSON(M),typeof T!="object")return E(M,T,A,R,D);if(T===null)return"null"}if(A.indexOf(T)!==-1)return m;const $=D;if(Array.isArray(T)){if(T.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(T),D+=R;let Y=`
|
||
|
${D}`;const Z=`,
|
||
|
${D}`,V=Math.min(T.length,C);let K=0;for(;K<V-1;K++){const re=E(String(K),T[K],A,R,D);Y+=re!==void 0?re:"null",Y+=Z}const ee=E(String(K),T[K],A,R,D);if(Y+=ee!==void 0?ee:"null",T.length-1>C){const re=T.length-C-1;Y+=`${Z}"... ${h(re)} not stringified"`}return Y+=`
|
||
|
${$}`,A.pop(),`[${Y}]`}let L=Object.keys(T);const O=L.length;if(O===0)return"{}";if(w<A.length+1)return'"[Object]"';D+=R;const B=`,
|
||
|
${D}`;let U="",j="",q=Math.min(O,C);l(T)&&(U+=u(T,B,C),L=L.slice(T.length),q-=T.length,j=B),S&&(L=a(L)),A.push(T);for(let Y=0;Y<q;Y++){const Z=L[Y],V=E(Z,T[Z],A,R,D);V!==void 0&&(U+=`${j}${o(Z)}: ${V}`,j=B)}if(O>C){const Y=O-C;U+=`${j}"...": "${h(Y)} not stringified"`,j=B}return j!==""&&(U=`
|
||
|
${D}${U}
|
||
|
${$}`),A.pop(),`{${U}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(T);default:return y?y(T):void 0}}function I(M,T,A){switch(typeof T){case"string":return o(T);case"object":{if(T===null)return"null";if(typeof T.toJSON=="function"){if(T=T.toJSON(M),typeof T!="object")return I(M,T,A);if(T===null)return"null"}if(A.indexOf(T)!==-1)return m;let R="";if(Array.isArray(T)){if(T.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(T);const B=Math.min(T.length,C);let U=0;for(;U<B-1;U++){const q=I(String(U),T[U],A);R+=q!==void 0?q:"null",R+=","}const j=I(String(U),T[U],A);if(R+=j!==void 0?j:"null",T.length-1>C){const q=T.length-C-1;R+=`,"... ${h(q)} not stringified"`}return A.pop(),`[${R}]`}let D=Object.keys(T);const $=D.length;if($===0)return"{}";if(w<A.length+1)return'"[Object]"';let L="",O=Math.min($,C);l(T)&&(R+=u(T,",",C),D=D.slice(T.length),O-=T.length,L=","),S&&(D=a(D)),A.push(T);for(let B=0;B<O;B++){const U=D[B],j=I(U,T[U],A);j!==void 0&&(R+=`${L}${o(U)}:${j}`,L=",")}if($>C){const B=$-C;R+=`${L}"...":"${h(B)} not stringified"`}return A.pop(),`{${R}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(T);default:return y?y(T):void 0}}function N(M,T,A){if(arguments.length>1){let R="";if(typeof A=="number"?R=" ".repeat(Math.min(A,10)):typeof A=="string"&&(R=A.slice(0,10)),T!=null){if(typeof T=="function")return x("",{"":M},[],T,R,"");if(Array.isArray(T))return P("",M,[],p(T),R,"")}if(R.length!==0)return E("",M,[],R,"")}return I("",M,[])}return N}})(P5,P5.exports);var Hce=P5.exports;(function(e){var t=He&&He.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=oc,r=Nf,i=NF,o=W_,a=K_,s=DF,l=LF,u=t(Hce);let c=!1;const d=()=>globalThis.ROARR,f=()=>({messageContext:{},transforms:[]}),h=()=>{const v=d().asyncLocalStorage;if(!v)throw new Error("AsyncLocalContext is unavailable.");const S=v.getStore();return S||f()},p=()=>!!d().asyncLocalStorage,g=()=>{if(p()){const v=h();return(0,i.hasOwnProperty)(v,"sequenceRoot")&&(0,i.hasOwnProperty)(v,"sequence")&&typeof v.sequence=="number"?String(v.sequenceRoot)+"."+String(v.sequence++):String(d().sequence++)}return String(d().sequence++)},_=(v,S)=>(w,C,x,P,E,I,N,M,T,A)=>{v.child({logLevel:S})(w,C,x,P,E,I,N,M,T,A)},b=1e3,y=(v,S)=>(w,C,x,P,E,I,N,M,T,A)=>{const R=(0,u.default)({a:w,b:C,c:x,d:P,e:E,f:I,g:N,h:M,i:T,j:A,logLevel:S});if(!R)throw new Error("Expected key to be a string");const D=d().onceLog;D.has(R)||(D.add(R),D.size>b&&D.clear(),v.child({logLevel:S})(w,C,x,P,E,I,N,M,T,A))},m=(v,S={},w=[])=>{var C;if(!(0,o.isBrowser)()&&typeof process<"u"&&!(0,a.isTruthy)((C={}.ROARR_LOG)!==null&&C!==void 0?C:""))return(0,s.createMockLogger)(v,S);const x=(P,E,I,N,M,T,A,R,D,$)=>{const L=Date.now(),O=g();let B;p()?B=h():B=f();let U,j;if(typeof P=="string"?U={...B.messageContext,...S}:U={...B.messageContext,...S,...P},typeof P=="string"&&E===void 0)j=P;else if(typeof P=="string"){if(!P.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.");j=(0,l.printf)(P,E,I,N,M,T,A,R,D,$)}else{let Y=E;if(typeof E!="string")if(E===void 0)Y="";else throw new TypeError("Message must be a string. Received "+typeof E+".");j=(0,l.printf)(Y,I,N,M,T,A,R,D,$)}let q={context:U,message:j,sequence:O,time:L,version:n.ROARR_LOG_FORMAT_VERSION};for(const Y of[...B.transforms,...w])if(q=Y(q),typeof q!="object"||q===null)throw new Error("Message transform function must return a message object.");v(q)};return x.child=P=>{let E;return p()?E=h():E=f(),typeof P=="function"?(0,e.createLogger)(v,{...E.messageContext,...S,...P},[P,...w]):(0,e.createLogger)(v,{...E.messageContext
|
||
|
background-color: `.concat(_.backgroundColor,`;
|
||
|
color: `).concat(_.color,`;
|
||
|
font-weight: bold;
|
||
|
`),y=`
|
||
|
color: `.concat(tde[p].color,`;
|
||
|
`),m=`
|
||
|
color: inherit;
|
||
|
`;Object.keys(h).length>0?g("%c ".concat(p," %c").concat(f?" [".concat(String(f),"]:"):"","%c ").concat(u.message," %O"),b,y,m,h):g("%c ".concat(p," %c").concat(f?" [".concat(String(f),"]:"):"","%c ").concat(u.message),b,y,m)}}:function(l){var u=JSON.parse(l),c=u.context,d=c.logLevel,f=c.namespace,h=fI(c,["logLevel","namespace"]);if(!(s&&!(0,k5.test)(s,u))){var p=(0,hI.getLogLevelName)(Number(d)),g=a[p];Object.keys(h).length>0?g("".concat(p," ").concat(f?" [".concat(String(f),"]:"):""," ").concat(u.message),h):g("".concat(p," ").concat(f?" [".concat(String(f),"]:"):""," ").concat(u.message))}}};R_.createLogWriter=rde;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=R_;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(fF);Tm.ROARR.write=fF.createLogWriter();const FF={};Tm.Roarr.child(FF);const J_=Pa(Tm.Roarr.child(FF)),se=e=>J_.get().child({namespace:e}),Ize=["trace","debug","info","warn","error","fatal"],Mze={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},BF=Pa(),zF=F.enum(["Any","BoardField","boolean","BooleanCollection","BooleanPolymorphic","ClipField","Collection","CollectionItem","ColorCollection","ColorField","ColorPolymorphic","ConditioningCollection","ConditioningField","ConditioningPolymorphic","ControlCollection","ControlField","ControlNetModelField","ControlPolymorphic","DenoiseMaskField","enum","float","FloatCollection","FloatPolymorphic","ImageCollection","ImageField","ImagePolymorphic","integer","IntegerCollection","IntegerPolymorphic","IPAdapterCollection","IPAdapterField","IPAdapterModelField","IPAdapterPolymorphic","LatentsCollection","LatentsField","LatentsPolymorphic","LoRAModelField","MainModelField","MetadataField","MetadataCollection","MetadataItemField","MetadataItemCollection","MetadataItemPolymorphic","ONNXModelField","Scheduler","SDXLMainModelField","SDXLRefinerModelField","string","StringCollection","StringPolymorphic","T2IAdapterCollection","T2IAdapterField","T2IAdapterModelField","T2IAdapterPolymorphic","UNetField","VaeField","VaeModelField"]),ide=F.enum(["WorkflowField","IsIntermediate","MetadataField"]),gI=e=>zF.safeParse(e).success||ide.safeParse(e).success;F.enum(["connection","direct","any"]);const VF=F.object({id:F.string().trim().min(1),name:F.string().trim().min(1),type:zF}),ode=VF.extend({fieldKind:F.literal("output")}),Ae=VF.extend({fieldKind:F.literal("input"),label:F.string()}),Cs=F.object({model_name:F.string().trim().min(1),base_model:ql}),Df=F.object({image_name:F.string().trim().min(1)}),ade=F.object({board_id:F.string().trim().min(1)}),T1=F.object({latents_name:F.string().trim().min(1),seed:F.number().int().optional()}),A1=F.object({conditioning_name:F.string().trim().min(1)}),sde=F.object({mask_name:F.string().trim().min(1),masked_latents_name:F.string().trim().min(1).optional()}),lde=Ae.extend({type:F.literal("integer"),value:F.number().int().optional()}),ude=Ae.extend({type:F.literal("IntegerCollection"),value:F.array(F.number().int()).optional()}),cde=Ae.extend({type:F.literal("IntegerPolymorphic"),value:F.number().int().optional()}),dde=Ae.extend({type:F.literal("float"),value:F.number().optional()}),fde=Ae.extend({type:F.literal("FloatCollection"),value:F.array(F.number()).optional()}),hde=Ae.extend({type:F.literal("FloatPolymorphic"),value:F.number().optional()}),pde=Ae.extend({type:F.literal("string"),value:F.string().optional()}),gde=Ae.extend({type:F.literal("StringCollection"),value:F.array(F.string()).optional()}),mde=Ae.extend({type:F.literal("StringPolymorphic"),value:F.string().optional()}),yde=Ae.extend({type:F.literal("boolean"),value:F.boolean().optional()}),vde=Ae.extend({type:F.literal("BooleanCollection"),value:F.array(F.boolean()).optional()}),bde=Ae.extend({type:F.literal("BooleanPolymorphic"),value:F.boolean().optional()}),_de=Ae.extend({type:F.literal("enum"),value:F.string().optional()}),Sde=Ae.extend({type:F.literal("LatentsField"),value:T1.optional()}),xde=Ae.extend({type:F.literal("LatentsCollection"),value:F.array(T1).optional()}),wde=Ae.ex
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vve(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 jve(e){if(Array.isArray(e))return e}function sw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xz(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 Xz(e,t){if(e){if(typeof e=="string")return x8(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 x8(e,t)}}function x8(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 j1(e){"@babel/helpers - typeof";return j1=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},j1(e)}var w8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},C8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},Uve=function e(t,n){if(t===n)return!0;if(j1(t)!=="object"||j1(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(C8(t)&&C8(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=w8(t),a=w8(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=sw(t.entries()),l;try{for(s.s();!(l=s.n()).done;){var u=aw(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(x){s.e(x)}finally{s.f()}var d=sw(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=aw(f.value,2),p=h[0],g=h[1];if(!e(g,n.get(p)))return!1}}catch(x){d.e(x)}finally{d.f()}return!0}if(o==="Set"&&a==="Set"){if(t.size!==n.size)return!1;var _=sw(t.entries()),b;try{for(_.s();!(b=_.n()).done;){var y=aw(b.value,1),m=y[0];if(!n.has(m))return!1}}catch(x){_.e(x)}finally{_.f()}return!0}if(o==="Date"&&a==="Date")return+t==+n;var v=Object.keys(t);if(v.length!==Object.keys(n).length)return!1;for(var S=v.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,v[S]))return!1;for(var w=v.length;w--!==0;){var C=v[w];if(!e(t[C],n[C]))return!1}return o!=="Object"&&a!=="Object"?t===n:!0};const ST=Uve;function E8(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 Qz(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){E8(o,r,i,a,s,"next",l)}function s(l){E8(o,r,i,a,s,"throw",l)}a(void 0)})}}var Gve=function(){var e=Qz(function*(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;if(!ST(t,n))return o.setItem("".concat(i,"rootState"),a(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),Hve=function(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;return Promise.all(Object.keys(t).map(function(s){return ST(t[s],n[s])?Promise.resolve():o.setItem("".concat(i).concat(s),a(t[s],s))}))},qve=function(){var e=Qz(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?Gve:Hve;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 T8(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)}
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}var ZSe=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function JSe(e){const t=ZSe();return!e||KSe(e)?t:e.string&&e.colors?t2e(e.string,e.colors):e.string&&!e.colors?e2e(e.string):e.colors&&!e.string?n2e(e.colors):t}function e2e(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 t2e(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 n2e(e){return e[Math.floor(Math.random()*e.length)]}function W(e,t){return n=>n.colorMode==="dark"?t:e}function RT(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function zV(e){return ya(e)&&e.reference?e.reference:String(e)}var gS=(e,...t)=>t.map(zV).join(` ${e} `).replace(/calc/g,""),X8=(...e)=>`calc(${gS("+",...e)})`,Q8=(...e)=>`calc(${gS("-",...e)})`,u3=(...e)=>`calc(${gS("*",...e)})`,Y8=(...e)=>`calc(${gS("/",...e)})`,Z8=e=>{const t=zV(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:u3(t,-1)},Xa=Object.assign(e=>({add:(...t)=>Xa(X8(e,...t)),subtract:(...t)=>Xa(Q8(e,...t)),multiply:(...t)=>Xa(u3(e,...t)),divide:(...t)=>Xa(Y8(e,...t)),negate:()=>Xa(Z8(e)),toString:()=>e.toString()}),{add:X8,subtract:Q8,multiply:u3,divide:Y8,negate:Z8});function r2e(e){return!Number.isInteger(parseFloat(e.toString()))}function i2e(e,t="-"){return e.replace(/\s+/g,t)}function VV(e){const t=i2e(e.toString());return t.includes("\\.")?e:r2e(e)?t.replace(".","\\."):e}function o2e(e,t=""){return[t,VV(e)].filter(Boolean).join("-")}function a2e(e,t){return`var(${VV(e)}${t?`, ${t}`:""})`}function s2e(e,t=""){return`--${o2e(e,t)}`}function tn(e,t){const n=s2e(e,t==null?void 0:t.prefix);return{variable:n,reference:a2e(n,l2e(t==null?void 0:t.fallback))}}function l2e(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:u2e,definePartsStyle:tv}=Ve(FV.keys),mp=tn("switch-track-width"),Gu=tn("switch-track-height"),dw=tn("switch-track-diff"),c2e=Xa.subtract(mp,Gu),c3=tn("switch-thumb-x"),bh=tn("switch-bg"),d2e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[mp.reference],height:[Gu.reference],transitionProperty:"common",transitionDuration:"fast",[bh.variable]:"colors.gray.300",_dark:{[bh.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[bh.variable]:`colors.${t}.500`,_dark:{[bh.variable]:`colors.${t}.200`}},bg:bh.reference}},f2e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Gu.reference],height:[Gu.reference],_checked:{transform:`translateX(${c3.reference})`}},h2e=tv(e=>({container:{[dw.variable]:c2e,[c3.variable]:dw.reference,_rtl:{[c3.variable]:Xa(dw).negate().toString()}},track:d2e(e),thumb:f2e})),p2e={sm:tv({container:{[mp.variable]:"1.375rem",[Gu.variable]:"sizes.3"}}),md:tv({container:{[mp.variable]:"1.875rem",[Gu.variable]:"sizes.4"}}),lg:tv({container:{[mp.variable]:"2.875rem",[Gu.variable]:"sizes.6"}})},g2e=u2e({baseStyle:h2e,sizes:p2e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:m2e,definePartsStyle:Vd}=Ve(MSe.keys),y2e=Vd({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"}}),W1={"&[data-is-numeric=true]":{textAlign:"end"}},v2e=Vd(e=>{const{colorScheme:t}=e;return{th:{color:W("gray.600","gray.400")(e),borderBottom:"1px",borderColor:W(`${t}.100`,`${t}.700`)(e),...W1},td:{borderBottom:"1px",borderColor:W(`${t}.100`,`${t}.700`)(e),...W1},caption:{color:W("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),b2e=Vd(e=>{const{c
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${Or(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},pxe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},gxe=e=>({bg:W("gray.100","whiteAlpha.300")(e)}),mxe=e=>({transitionProperty:"common",transitionDuration:"slow",...hxe(e)}),yxe=Qh(e=>({label:pxe,filledTrack:mxe(e),track:gxe(e)})),vxe={xs:Qh({track:{h:"1"}}),sm:Qh({track:{h:"2"}}),md:Qh({track:{h:"3"}}),lg:Qh({track:{h:"4"}})},bxe=fxe({sizes:vxe,baseStyle:yxe,defaultProps:{size:"md",colorScheme:"blue"}}),_xe=e=>typeof e=="function";function Nr(e,...t){return _xe(e)?e(...t):e}var{definePartsStyle:av,defineMultiStyleConfig:Sxe}=Ve(PV.keys),vp=ke("checkbox-size"),xxe=e=>{const{colorScheme:t}=e;return{w:vp.reference,h:vp.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:W(`${t}.500`,`${t}.200`)(e),borderColor:W(`${t}.500`,`${t}.200`)(e),color:W("white","gray.900")(e),_hover:{bg:W(`${t}.600`,`${t}.300`)(e),borderColor:W(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:W("gray.200","transparent")(e),bg:W("gray.200","whiteAlpha.300")(e),color:W("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:W(`${t}.500`,`${t}.200`)(e),borderColor:W(`${t}.500`,`${t}.200`)(e),color:W("white","gray.900")(e)},_disabled:{bg:W("gray.100","whiteAlpha.100")(e),borderColor:W("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:W("red.500","red.300")(e)}}},wxe={_disabled:{cursor:"not-allowed"}},Cxe={userSelect:"none",_disabled:{opacity:.4}},Exe={transitionProperty:"transform",transitionDuration:"normal"},Txe=av(e=>({icon:Exe,container:wxe,control:Nr(xxe,e),label:Cxe})),Axe={sm:av({control:{[vp.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:av({control:{[vp.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:av({control:{[vp.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},K1=Sxe({baseStyle:Txe,sizes:Axe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Pxe,definePartsStyle:sv}=Ve(kSe.keys),kxe=e=>{var t;const n=(t=Nr(K1.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"}}}},Ixe=sv(e=>{var t,n,r,i;return{label:(n=(t=K1).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=K1).baseStyle)==null?void 0:i.call(r,e).container,control:kxe(e)}}),Mxe={md:sv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:sv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:sv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Rxe=Pxe({baseStyle:Ixe,sizes:Mxe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Oxe,definePartsStyle:$xe}=Ve(DV.keys),Y0=ke("select-bg"),f9,Nxe={...(f9=gt.baseStyle)==null?void 0:f9.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Y0.reference,[Y0.variable]:"colors.white",_dark:{[Y0.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Y0.reference}},Dxe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Lxe=$xe({field:Nxe,icon:Dxe}),Z0={paddingInlineEnd:"8"},h9,p9,g9,m9,y9,v9,b9,_9,Fxe={lg:{...(h9=gt.sizes)==null?void 0:h9.lg,field:{...(p9=gt.sizes)==null?void 0:p9.lg.field,...Z0}},md:{...(g9=gt.sizes)==null?void 0:g9.md,field:{...(m9=gt.sizes)==null?void 0:m9.md.field,...Z0}},sm:{...(y9=gt.sizes)==null?void 0:y9.sm,field:{...(v9=gt.sizes)==null?void 0:v9.sm.field,...Z0}},xs:{...(b9=gt.sizes)==null?void 0:b9.xs,field:{...(_9=gt.sizes)==null?void 0:_9.xs.field,...Z0},icon:{insetEnd:"1"}}},Bxe=Oxe({baseStyle:Lxe,sizes:Fxe,variants:gt.variants,defaultProps:gt.defaultProps}),pw=ke("skeleton-start-color"),gw=ke("skeleton-end-color"),zxe={[pw.variable]:"colors.gray.100",[gw.variable]:"colors.gray.400",_dark:{[pw.variable]:"colors.gray.800",[gw.variable]:"colors.gray.600"},background:pw.reference,borderColor:gw.reference,opacity:.7,borderRadius:"sm"},Vxe={baseStyle:zxe},mw=ke("sk
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${a}px !important;
|
||
|
top: ${s}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(u)}},[t]),k.createElement(WAe,{isPresent:t,childRef:r,sizeRef:i},k.cloneElement(e,{ref:r}))}const zw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=vj(XAe),l=k.useId(),u=k.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 k.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),k.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=k.createElement(KAe,{isPresent:n},e)),k.createElement(Nm.Provider,{value:u},e)};function XAe(){return new Map}function QAe(e){return k.useEffect(()=>()=>e(),[])}const Wc=e=>e.key||"";function YAe(e,t){e.forEach(n=>{const r=Wc(n);t.set(r,n)})}function ZAe(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const CU=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=k.useContext(BT).forceRender||qAe()[0],l=wU(),u=ZAe(e);let c=u;const d=k.useRef(new Map).current,f=k.useRef(c),h=k.useRef(new Map).current,p=k.useRef(!0);if(DT(()=>{p.current=!1,YAe(u,h),f.current=c}),QAe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return k.createElement(k.Fragment,null,c.map(y=>k.createElement(zw,{key:Wc(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));c=[...c];const g=f.current.map(Wc),_=u.map(Wc),b=g.length;for(let y=0;y<b;y++){const m=g[y];_.indexOf(m)===-1&&!d.has(m)&&d.set(m,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((y,m)=>{if(_.indexOf(m)!==-1)return;const v=h.get(m);if(!v)return;const S=g.indexOf(m);let w=y;if(!w){const C=()=>{h.delete(m),d.delete(m);const x=f.current.findIndex(P=>P.key===m);if(f.current.splice(x,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};w=k.createElement(zw,{key:Wc(v),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:o,mode:a},v),d.set(m,w)}c.splice(S,0,w)}),c=c.map(y=>{const m=y.key;return d.has(m)?y:k.createElement(zw,{key:Wc(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),k.createElement(k.Fragment,null,d.size?c:c.map(y=>k.cloneElement(y)))};var JAe={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]}}},EU=k.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=JAe,toastSpacing:c="0.5rem"}=e,[d,f]=k.useState(s),h=BTe();k9(()=>{h||r==null||r()},[h]),k9(()=>{f(s)},[s]);const p=()=>f(null),g=()=>f(s),_=()=>{h&&i()};k.useEffect(()=>{h&&o&&i()},[h,o,i]),D3e(_,d);const b=k.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=k.useMemo(()=>O3e(a),[a]);return oe.jsx(xU.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:g,custom:{position:a},style:y,children:oe.jsx(lr.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:ua(n,{id:t,onClose:_})})})});EU.displayName="ToastComponent";function ePe(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 $M={path:oe.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[oe.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"}),oe.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"}),oe.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},zm=Ii((e,t)=>{const{as:n,vi
|
||
|
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%,
|
||
|
var(--invokeai-colors-base-800) 100%)`}}},p:2}),g6e={variants:{invokeAI:p6e},defaultProps:{size:"md",variant:"invokeAI"}},m6e=tn("popper-arrow-bg"),y6e=e=>({borderRadius:"base",shadow:"dark-lg",bg:W("base.700","base.200")(e),[m6e.variable]:W("colors.base.700","colors.base.200")(e),pb:1.5}),v6e={baseStyle:y6e},BM={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},b6e={".react-flow__nodesselection-rect":{...BM,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":BM},_6e={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","*":{...$ke},...b6e})},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:wPe,components:{Button:$Pe,Input:ZPe,Editable:qPe,Textarea:g6e,Tabs:c6e,Progress:Oke,Accordion:MPe,FormLabel:KPe,Switch:n6e,NumberInput:Ske,Select:zke,Skeleton:jke,Slider:Qke,Popover:Ake,Modal:hke,Checkbox:BPe,Menu:nke,Text:h6e,Tooltip:v6e}},S6e={defaultOptions:{isClosable:!0}},{toast:wh}=yPe({theme:_6e,defaultOptions:S6e.defaultOptions}),x6e=()=>{pe({matcher:un.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;se("queue").debug({enqueueResult:pt(t)},"Batch enqueued"),wh.isActive("batch-queued")||wh({id:"batch-queued",title:X("queue.batchQueued"),description:X("queue.batchQueuedDesc",{count:t.enqueued,direction:n
|
||
|
${i.loc.join(".")}`,{length:128})})});else{let i="Unknown Error",o;t.status===403&&"body"in t?i=Vy(t,"body.detail","Unknown Error"):t.status===403&&"error"in t?i=Vy(t,"error.detail","Unknown Error"):t.status===403&&"data"in t&&(i=Vy(t,"data.detail","Unknown Error"),o=15e3),wh({title:X("queue.batchFailedToQueue"),status:"error",description:i,...o?{duration:o}:{}})}se("queue").error({batchConfig:pt(n),error:pt(t)},X("queue.batchFailedToQueue"))}})},Vm={memoizeOptions:{resultEqualityCheck:SE}},VU=(e,t)=>{var d;const{generation:n,canvas:r,nodes:i,controlAdapters:o}=e,a=((d=n.initialImage)==null?void 0:d.imageName)===t,s=r.layerState.objects.some(f=>f.kind==="image"&&f.imageName===t),l=i.nodes.filter(on).some(f=>Gc(f.data.inputs,h=>{var p;return h.type==="ImageField"&&((p=h.value)==null?void 0:p.image_name)===t})),u=Aa(o).some(f=>f.controlImage===t||gi(f)&&f.processedControlImage===t);return{isInitialImage:a,isCanvasImage:s,isNodesImage:l,isControlImage:u}},w6e=qn([e=>e],e=>{const{imagesToDelete:t}=e.deleteImageModal;return t.length?t.map(r=>VU(e,r.image_name)):[]},Vm),C6e=()=>{pe({matcher:ce.endpoints.deleteBoardAndImages.matchFulfilled,effect:async(e,{dispatch:t,getState:n})=>{const{deleted_images:r}=e.payload;let i=!1,o=!1,a=!1,s=!1;const l=n();r.forEach(u=>{const c=VU(l,u);c.isInitialImage&&!i&&(t(DE()),i=!0),c.isCanvasImage&&!o&&(t(KE()),o=!0),c.isNodesImage&&!a&&(t(cve()),a=!0),c.isControlImage&&!s&&(t(zie()),s=!0)})}})},E6e=()=>{pe({matcher:si(M1,M5),effect:async(e,{getState:t,dispatch:n,condition:r,cancelActiveListeners:i})=>{i();const o=t(),a=M1.match(e)?e.payload.boardId:o.gallery.selectedBoardId,l=(M5.match(e)?e.payload:o.gallery.galleryView)==="images"?Fn:Pr,u={board_id:a??"none",categories:l};if(await r(()=>ce.endpoints.listImages.select(u)(t()).isSuccess,5e3)){const{data:d}=ce.endpoints.listImages.select(u)(t());if(d){const f=bg.selectAll(d)[0],h=bg.selectById(d,e.payload.selectedImageName);n(pa(h||f||null))}else n(pa(null))}else n(pa(null))}})},T6e=ge("canvas/canvasSavedToGallery"),A6e=ge("canvas/canvasMaskSavedToGallery"),P6e=ge("canvas/canvasCopiedToClipboard"),k6e=ge("canvas/canvasDownloadedAsImage"),I6e=ge("canvas/canvasMerged"),M6e=ge("canvas/stagingAreaImageSaved"),R6e=ge("canvas/canvasMaskToControlAdapter"),O6e=ge("canvas/canvasImageToControlAdapter");let jU=null,UU=null;const OUe=e=>{jU=e},ES=()=>jU,$Ue=e=>{UU=e},$6e=()=>UU,N6e=async e=>new Promise((t,n)=>{e.toBlob(r=>{if(r){t(r);return}n("Unable to create Blob")})}),ab=async(e,t)=>await N6e(e.toCanvas(t)),TS=async(e,t=!1)=>{const n=ES();if(!n)throw new Error("Problem getting base layer blob");const{shouldCropToBoundingBoxOnSave:r,boundingBoxCoordinates:i,boundingBoxDimensions:o}=e.canvas,a=n.clone();a.scale({x:1,y:1});const s=a.getAbsolutePosition(),l=r||t?{x:i.x+s.x,y:i.y+s.y,width:o.width,height:o.height}:a.getClientRect();return ab(a,l)},D6e=(e,t="image/png")=>{navigator.clipboard.write([new ClipboardItem({[t]:e})])},L6e=()=>{pe({actionCreator:P6e,effect:async(e,{dispatch:t,getState:n})=>{const r=J_.get().child({namespace:"canvasCopiedToClipboardListener"}),i=n();try{const o=TS(i);D6e(o)}catch(o){r.error(String(o)),t(it({title:X("toast.problemCopyingCanvas"),description:X("toast.problemCopyingCanvasDesc"),status:"error"}));return}t(it({title:X("toast.canvasCopiedClipboard"),status:"success"}))}})},F6e=(e,t)=>{const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),r.remove()},B6e=()=>{pe({actionCreator:k6e,effect:async(e,{dispatch:t,getState:n})=>{const r=J_.get().child({namespace:"canvasSavedToGalleryListener"}),i=n();let o;try{o=await TS(i)}catch(a){r.error(String(a)),t(it({title:X("toast.problemDownloadingCanvas"),description:X("toast.problemDownloadingCanvasDesc"),status:"error"}));return}F6e(o,"canvas.png"),t(it({title:X("toast.canvasDownloaded"),status:"success"}))}})},z6e=()=>{pe({actionCreator:O6e,effect:async(e,{dispatch:t,getState:n})=>{const r=se("canvas"),i=n(),{id:o}=e.payload;let a;try{a=await TS(i,!0)}catch(c){r.error(String(c
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Vc&&o!==void 0,l=a!==Vc&&a!==void 0,u=this.padding(),c=o-u*2,d=a-u*2,f=0,h=this.wrap(),p=h!==rR,g=h!==O8e&&p,_=this.ellipsis();this.textArr=[],Ww().font=this._getContextFont();for(var b=_?this._getTextWidth(qw):0,y=0,m=t.length;y<m;++y){var v=t[y],S=this._getTextWidth(v);if(s&&S>c)for(;v.length>0;){for(var w=0,C=v.length,x="",P=0;w<C;){var E=w+C>>>1,I=v.slice(0,E+1),N=this._getTextWidth(I)+b;N<=c?(w=E+1,x=I,P=N):C=E}if(x){if(g){var M,T=v[x.length],A=T===gy||T===eR;A&&P<=c?M=x.length:M=Math.max(x.lastIndexOf(gy),x.lastIndexOf(eR))+1,M>0&&(w=M,x=x.slice(0,w),P=this._getTextWidth(x))}x=x.trimRight(),this._addTextLine(x),r=Math.max(r,P),f+=i;var R=this._shouldHandleEllipsis(f);if(R){this._tryToAddEllipsisToLastLine();break}if(v=v.slice(w),v=v.trimLeft(),v.length>0&&(S=this._getTextWidth(v),S<=c)){this._addTextLine(v),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(v),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&y<m-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!==Vc&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==rR;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Vc&&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+qw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+qw)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return t&&n?!0:super._useBufferCanvas()}}lc.Text=hn;hn.prototype._fillFunc=D8e;hn.prototype._strokeFunc=L8e;hn.prototype.className=A8e;hn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,x8e._registerNode)(hn);Sr.Factory.overWriteSetter(hn,"width",(0,Jl.getNumberOrAutoValidator)());Sr.Factory.overWriteSetter(hn,"height",(0,Jl.getNumberOrAutoValidator)());Sr.Factory.addGetterSetter(hn,"direction",fG);Sr.Factory.addGetterSetter(hn,"fontFamily","Arial");Sr.Factory.addGetterSetter(hn,"fontSize",12,(0,Jl.getNumberValidator)());Sr.Factory.addGetterSetter(hn,"fontStyle",pG);Sr.Factory.addGetterSetter(hn,"fontVariant",pG);Sr.Factory.addGetterSetter(hn,"padding",0,(0,Jl.getNumberValidator)());Sr.Factory.addGetterSetter(hn,"align",hG);Sr.Factory.addGetterSetter(hn,"verticalAlign",P8e);Sr.Factory.addGetterSetter(hn,"lineHeight",1,(0,Jl.getNumberValidator)());Sr.Factory.addGetterSetter(hn,"wrap",R8e);Sr.Factory.addGetterSetter(hn,"ellipsis",!1,(0,Jl.getBooleanValidator)());Sr.Factory.addGetterSetter(hn,"letterSpacing",0,(0,Jl.getNumberValidator)());Sr.Factory.addGetterSetter(hn,"text","",(0,Jl.getStringValidator)());Sr.Factory.addGetterSetter(hn,"textDecoration","");var KS={};Object.defineProperty(KS,"__esModule",{value:!0});KS.TextPath=void 0;const Kw=nn,Vo=je,B8e=On,Eh=jf,Xw=lc,mG=Te,z8e=Ge;var V8e="",yG="normal";function vG(e){e.fillText(this.partialText,0,0)}function bG(e){e.strokeText(this.partialText,0,0)}class $n extends B8e.Shape{constructor(t){super(t),this.dummyCanvas=Kw.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 Eh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:Eh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Eh.Path.parsePathData(this.attrs.data),this.pathLeng
|
||
|
`)===0?$.substr(1,$.length):$}).forEach(function($){var L=$.split(":"),O=L.shift().trim();if(O){var B=L.join(":").trim();R.append(O,B)}}),R}w.call(P.prototype);function N(A,R){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new g(R.headers),this.url=R.url||"",this._initBody(A)}w.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},N.error=function(){var A=new N(null,{status:0,statusText:""});return A.type="error",A};var M=[301,302,303,307,308];N.redirect=function(A,R){if(M.indexOf(R)===-1)throw new RangeError("Invalid status code");return new N(null,{status:R,headers:{location:A}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(R,D){this.message=R,this.name=D;var $=Error(R);this.stack=$.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function T(A,R){return new Promise(function(D,$){var L=new P(A,R);if(L.signal&&L.signal.aborted)return $(new a.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function B(){O.abort()}O.onload=function(){var j={status:O.status,statusText:O.statusText,headers:I(O.getAllResponseHeaders()||"")};j.url="responseURL"in O?O.responseURL:j.headers.get("X-Request-URL");var q="response"in O?O.response:O.responseText;setTimeout(function(){D(new N(q,j))},0)},O.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},O.onabort=function(){setTimeout(function(){$(new a.DOMException("Aborted","AbortError"))},0)};function U(j){try{return j===""&&s.location.href?s.location.href:j}catch{return j}}O.open(L.method,U(L.url),!0),L.credentials==="include"?O.withCredentials=!0:L.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(l.blob?O.responseType="blob":l.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(O.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof g)?Object.getOwnPropertyNames(R.headers).forEach(function(j){O.setRequestHeader(j,h(R.headers[j]))}):L.headers.forEach(function(j,q){O.setRequestHeader(q,j)}),L.signal&&(L.signal.addEventListener("abort",B),O.onreadystatechange=function(){O.readyState===4&&L.signal.removeEventListener("abort",B)}),O.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return T.polyfill=!0,s.fetch||(s.fetch=T,s.Headers=g,s.Request=P,s.Response=N),a.Headers=g,a.Request=P,a.Response=N,a.fetch=T,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Ey,Ey.exports)),Ey.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof yNe<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||vNe();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Q3,Q3.exports);var dH=Q3.exports;const fH=Bl(dH),KR=gO({__proto__:null,default:fH},[dH]);function pb(e){"@babel/helpers - typeof";return pb=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},pb(e)}var ls;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?ls=global.fetch:typeof window<"u"&&window.fetch?ls=window.fetch:ls=fetch);var Wg;cH()&&(typeof global<"u"&&global.XMLHttpRequest?Wg=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Wg=window.XMLHttpRequest));var gb;typeof ActiveXObject=="function"&&(
|
||
|
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.
|
||
|
`},FNe={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 BNe(e){let{announcements:t=FNe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=LNe}=e;const{announce:o,announcement:a}=$Ne(),s=P2("DndLiveRegion"),[l,u]=k.useState(!1);if(k.useEffect(()=>{u(!0)},[]),NNe(k.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=J.createElement(J.Fragment,null,J.createElement(RNe,{id:r,value:i.draggable}),J.createElement(ONe,{id:s,announcement:a}));return n?mi.createPortal(c,n):c}var kn;(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"})(kn||(kn={}));function bb(){}function JR(e,t){return k.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function zNe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Fo=Object.freeze({x:0,y:0});function VNe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function jNe(e,t){const n=Qg(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 UNe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function GNe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function HNe(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 qNe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function WNe(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 KNe=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=WNe(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(GNe)};function XNe(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 QNe=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&&XNe(r,s)){const u=HNe(s).reduce((d,f)=>d+VNe(r,f),0),c=Number((u/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(UNe)};function YNe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function vH(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Fo}function ZNe(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 JNe=ZNe(1);function bH(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 eDe(e,t,n){const r=bH(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),
|