InvokeAI/invokeai/frontend/web/dist/assets/index-43f18910.js

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

126 lines
1.2 MiB
JavaScript
Raw Normal View History

2023-07-07 21:47:47 +00:00
function qk(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xj(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return 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 Kk={exports:{}},C0={},Yk={exports:{}},ze={};/**
* @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 zh=Symbol.for("react.element"),Qj=Symbol.for("react.portal"),Zj=Symbol.for("react.fragment"),Jj=Symbol.for("react.strict_mode"),eV=Symbol.for("react.profiler"),tV=Symbol.for("react.provider"),nV=Symbol.for("react.context"),rV=Symbol.for("react.forward_ref"),iV=Symbol.for("react.suspense"),oV=Symbol.for("react.memo"),sV=Symbol.for("react.lazy"),E4=Symbol.iterator;function aV(e){return e===null||typeof e!="object"?null:(e=E4&&e[E4]||e["@@iterator"],typeof e=="function"?e:null)}var Xk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qk=Object.assign,Zk={};function Fc(e,t,n){this.props=e,this.context=t,this.refs=Zk,this.updater=n||Xk}Fc.prototype.isReactComponent={};Fc.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")};Fc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jk(){}Jk.prototype=Fc.prototype;function $x(e,t,n){this.props=e,this.context=t,this.refs=Zk,this.updater=n||Xk}var Fx=$x.prototype=new Jk;Fx.constructor=$x;Qk(Fx,Fc.prototype);Fx.isPureReactComponent=!0;var P4=Array.isArray,eA=Object.prototype.hasOwnProperty,Bx={current:null},tA={key:!0,ref:!0,__self:!0,__source:!0};function nA(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)eA.call(t,r)&&!tA.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:zh,type:e,key:o,ref:s,props:i,_owner:Bx.current}}function lV(e,t){return{$$typeof:zh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jx(e){return typeof e=="object"&&e!==null&&e.$$typeof===zh}function uV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var k4=/\/+/g;function Gb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uV(""+e.key):t.toString(36)}function Hg(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zh:case Qj:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Gb(s,0):r,P4(i)?(n="",e!=null&&(n=e.replace(k4,"$&/")+"/"),Hg(i,t,n,"",function(u){return u})):i!=null&&(jx(i)&&(i=lV(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(k4,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",P4(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Gb(o,a);s+=Hg(o,t,n,l,i)}else if(l=aV(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Gb(o,a++),s+=Hg(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Hp(e,t,n){if(e==null)return e;var r=[],i=0;return Hg(e,r,"","",function(o){return t.call(n,o,i++)}),r}function cV(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 ur={current:null},Wg={transition:null},dV={ReactCurrentDispatcher:ur,ReactCurrentBatchConfig:Wg,ReactCurrentOwner:Bx};ze.Children={map:Hp,forEach:function(e,t,n){Hp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hp(e,function(){t++}),t},toArray:function(e){return Hp(e,function(t){return t})||[]},only:function(e){if(!jx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ze.Component=Fc;ze.Fragment=Zj;ze.Profiler=eV;ze
* @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 fV=E,hV=Symbol.for("react.element"),pV=Symbol.for("react.fragment"),gV=Object.prototype.hasOwnProperty,mV=fV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yV={key:!0,ref:!0,__self:!0,__source:!0};function rA(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)gV.call(t,r)&&!yV.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:hV,type:e,key:o,ref:s,props:i,_owner:mV.current}}C0.Fragment=pV;C0.jsx=rA;C0.jsxs=rA;Kk.exports=C0;var j=Kk.exports,z2={},iA={exports:{}},Gr={},oA={exports:{}},sA={};/**
* @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(R,D){var L=R.length;R.push(D);e:for(;0<L;){var V=L-1>>>1,z=R[V];if(0<i(z,D))R[V]=D,R[L]=z,L=V;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var D=R[0],L=R.pop();if(L!==D){R[0]=L;e:for(var V=0,z=R.length,U=z>>>1;V<U;){var K=2*(V+1)-1,W=R[K],X=K+1,B=R[X];if(0>i(W,L))X<z&&0>i(B,W)?(R[V]=B,R[X]=L,V=X):(R[V]=W,R[K]=L,V=K);else if(X<z&&0>i(B,L))R[V]=B,R[X]=L,V=X;else break e}}return D}function i(R,D){var L=R.sortIndex-D.sortIndex;return L!==0?L:R.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,v=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 g(R){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=R)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(R){if(m=!1,g(R),!p)if(n(l)!==null)p=!0,I(_);else{var D=n(u);D!==null&&N(b,D.startTime-R)}}function _(R,D){p=!1,m&&(m=!1,v(C),C=-1),h=!0;var L=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||R&&!k());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var z=V(d.expirationTime<=D);D=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var U=!0;else{var K=n(u);K!==null&&N(b,K.startTime-D),U=!1}return U}finally{d=null,f=L,h=!1}}var w=!1,x=null,C=-1,A=5,P=-1;function k(){return!(e.unstable_now()-P<A)}function $(){if(x!==null){var R=e.unstable_now();P=R;var D=!0;try{D=x(!0,R)}finally{D?M():(w=!1,x=null)}}else w=!1}var M;if(typeof y=="function")M=function(){y($)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,O=T.port2;T.port1.onmessage=$,M=function(){O.postMessage(null)}}else M=function(){S($,0)};function I(R){x=R,w||(w=!0,M())}function N(R,D){C=S(function(){R(e.unstable_now())},D)}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(R){R.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,I(_))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var L=f;f=D;try{return R()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,D){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var L=f;f=R;try{return D()}finally{f=L}},e.unstable_scheduleCallback=function(R,D,L){var V=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?V+L:V):L=V,R){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=L+z,R={id:c++,callback:D,priorityLevel:R,startTime:L,expirationTime:z,sortIndex:-1},L>V?(R.sortIndex=L,t(u,R),n(l)===null&&R===n(u)&&(m?(v(C),C=-1):m=!0,N(b,L-V))):(R.sortIndex=z,t(l,R),p||h||(p=!0,I(_))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var D=f;return function(){var L=f;f=D;try{return R.apply(this,arguments)}finally{f=L}}}})(sA);oA.exports=sA;var vV=oA.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 aA=E,Br=vV;function te(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 lA=new Set,_f={};function Al(e,t){lc(e,t),lc(e+"Capture",t)}function lc(e,t){for(_f[e]=t,e=0;e<t.length;e++)lA.add(t[e])}var ns=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),U2=Object.prototype.hasOwnProperty,bV=/^[: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]*$/,O4={},R4={};function SV(e){return U2.call(R4,e)?!0:U2.call(O4,e)?!1:bV.test(e)?R4[e]=!0:(O4[e]=!0,!1)}function _V(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 wV(e,t,n,r){if(t===null||typeof t>"u"||_V(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 cr(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vn[e]=new cr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vn[t]=new cr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vn[e]=new cr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vn[e]=new cr(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){Vn[e]=new cr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vn[e]=new cr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vn[e]=new cr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vn[e]=new cr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vn[e]=new cr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vx=/[\-:]([a-z])/g;function zx(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
`+Hb+e}var Wb=!1;function qb(e,t){if(!e||Wb)return"";Wb=!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(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Wb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fd(e):""}function xV(e){switch(e.tag){case 5:return Fd(e.type);case 16:return Fd("Lazy");case 13:return Fd("Suspense");case 19:return Fd("SuspenseList");case 0:case 2:case 15:return e=qb(e.type,!1),e;case 11:return e=qb(e.type.render,!1),e;case 1:return e=qb(e.type,!0),e;default:return""}}function q2(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 Su:return"Fragment";case bu:return"Portal";case G2:return"Profiler";case Gx:return"StrictMode";case H2:return"Suspense";case W2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cA:return(e.displayName||"Context")+".Consumer";case uA:return(e._context.displayName||"Context")+".Provider";case Hx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wx:return t=e.displayName||null,t!==null?t:q2(e.type)||"Memo";case Os:t=e._payload,e=e._init;try{return q2(e(t))}catch{}}return null}function CV(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 q2(t);case 8:return t===Gx?"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 oa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TV(e){var t=fA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qp(e){e._valueTracker||(e._valueTracker=TV(e))}function hA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nm(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 K2(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function N4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oa(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 pA(e,t){t=t.checked,t!=null&&Ux(e,"checked",t,!1)}function Y2(e,t){pA(e,t);var n=oa(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")?X2(e,t.type,n):t.hasOwnProperty("defaultValue")&&X2(e,t.type,oa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function M4(e,t,n){if(t.hasOwnProperty("val
`).replace(Dz,"")}function tg(e,t,n){if(t=rT(t),rT(e)!==t&&n)throw Error(te(425))}function Vm(){}var c_=null,d_=null;function f_(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 h_=typeof setTimeout=="function"?setTimeout:void 0,Lz=typeof clearTimeout=="function"?clearTimeout:void 0,iT=typeof Promise=="function"?Promise:void 0,$z=typeof queueMicrotask=="function"?queueMicrotask:typeof iT<"u"?function(e){return iT.resolve(null).then(e).catch(Fz)}:h_;function Fz(e){setTimeout(function(){throw e})}function sS(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),Ef(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ef(t)}function Ks(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 oT(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 jc=Math.random().toString(36).slice(2),Xi="__reactFiber$"+jc,Rf="__reactProps$"+jc,rs="__reactContainer$"+jc,p_="__reactEvents$"+jc,Bz="__reactListeners$"+jc,jz="__reactHandles$"+jc;function qa(e){var t=e[Xi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rs]||n[Xi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=oT(e);e!==null;){if(n=e[Xi])return n;e=oT(e)}return t}e=n,n=e.parentNode}return null}function Hh(e){return e=e[Xi]||e[rs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(te(33))}function A0(e){return e[Rf]||null}var g_=[],Tu=-1;function ba(e){return{current:e}}function St(e){0>Tu||(e.current=g_[Tu],g_[Tu]=null,Tu--)}function gt(e,t){Tu++,g_[Tu]=e.current,e.current=t}var sa={},Kn=ba(sa),_r=ba(!1),dl=sa;function uc(e,t){var n=e.type.contextTypes;if(!n)return sa;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 wr(e){return e=e.childContextTypes,e!=null}function zm(){St(_r),St(Kn)}function sT(e,t,n){if(Kn.current!==sa)throw Error(te(168));gt(Kn,t),gt(_r,n)}function nO(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(te(108,CV(e)||"Unknown",i));return jt({},n,r)}function Um(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sa,dl=Kn.current,gt(Kn,e),gt(_r,_r.current),!0}function aT(e,t,n){var r=e.stateNode;if(!r)throw Error(te(169));n?(e=nO(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,St(_r),St(Kn),gt(Kn,e)):St(_r),gt(_r,n)}var jo=null,O0=!1,aS=!1;function rO(e){jo===null?jo=[e]:jo.push(e)}function Vz(e){O0=!0,rO(e)}function Sa(){if(!aS&&jo!==null){aS=!0;var e=0,t=rt;try{var n=jo;for(rt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jo=null,O0=!1}catch(i){throw jo!==null&&(jo=jo.slice(e+1)),kA(Kx,Sa),i}finally{rt=t,aS=!1}}return null}var Eu=[],Pu=0,Gm=null,Hm=0,ti=[],ni=0,fl=null,Ho=1,Wo="";function Ba(e,t){Eu[Pu++]=Hm,Eu[Pu++]=Gm,Gm=e,Hm=t}function iO(e,t,n){ti[ni++]=Ho,ti[ni++]=Wo,ti[ni++]=fl,fl=e;var r=Ho;e=Wo;var i=32-ki(r)-1;r&=~(1<<i),n+=1;var o=32-ki(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ho=1<<32-ki(t)+i|n<<i|r,Wo=o+e}else Ho=1<<o|n<<i|r,Wo=e}function rC(e){e.return!==null&&(Ba(e,1),iO(e,1,0))}function iC(e){for(;e===Gm;)Gm=Eu[--Pu],Eu[Pu]=null,Hm=Eu[--Pu],Eu[Pu]=null;for(;e===fl;)fl=ti[--ni],ti[ni]=null,Wo=ti[--ni],ti[ni]=null,Ho=ti[--ni],ti[ni]=null}var Lr=null,Mr=null,Pt=!1,Ci=null;function oO(e,t){var n=oi(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 fS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function __(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xz=typeof WeakMap=="function"?WeakMap:Map;function NO(e,t,n){n=Xo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jm||(Jm=!0,R_=r),__(e,t)},n}function MO(e,t,n){n=Xo(-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(){__(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){__(e,t),typeof r!="function"&&(Xs===null?Xs=new Set([this]):Xs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function yT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xz;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=cU.bind(null,e,t,n),t.then(e,e))}function vT(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 bT(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=Xo(-1,1),t.tag=2,Ys(n,t,1))),n.lanes|=1),e)}var Qz=ds.ReactCurrentOwner,vr=!1;function ir(e,t,n,r){t.child=e===null?fO(t,null,n,r):dc(t,e.child,n,r)}function ST(e,t,n,r,i){n=n.render;var o=t.ref;return Vu(t,i),r=gC(e,t,n,r,o,i),n=mC(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,os(e,t,i)):(Pt&&n&&rC(t),t.flags|=1,ir(e,t,r,i),t.child)}function _T(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!EC(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,DO(e,t,o,r,i)):(e=nm(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:kf,n(s,r)&&e.ref===t.ref)return os(e,t,i)}return t.flags|=1,e=Zs(o,r),e.ref=t.ref,e.return=t,t.child=e}function DO(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(kf(o,r)&&e.ref===t.ref)if(vr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(vr=!0);else return t.lanes=e.lanes,os(e,t,i)}return w_(e,t,n,r,i)}function LO(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},gt(Ou,Ir),Ir|=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,gt(Ou,Ir),Ir|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,gt(Ou,Ir),Ir|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,gt(Ou,Ir),Ir|=r;return ir(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 w_(e,t,n,r,i){var o=wr(n)?dl:Kn.current;return o=uc(t,o),Vu(t,i),n=gC(e,t,n,r,o,i),r=mC(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,os(e,t,i)):(Pt&&r&&rC(t),t.flags|=1,ir(e,t,n,i),t.child)}function wT(e,t,n,r,i){if(wr(n)){var o=!0;Um(t)}else o=!1;if(Vu(t,i),t.stateNode===null)Jg(e,t),cO(t,n,r),S_(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=ci(u):(u=wr(n)?dl:Kn.current,u=uc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&hT(t,s,r,u),Rs=!1;var f=t.memoizedState;s.state=f,Km(t,r,s,i),l=t.memoizedState,a!==r||f!==l||_r.current||Rs?(typeof c=="function"&&(b_(t,n,c,r),l=t.memoizedState),(a=Rs||fT(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
* @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 gc=E;function xU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CU=typeof Object.is=="function"?Object.is:xU,TU=gc.useState,EU=gc.useEffect,PU=gc.useLayoutEffect,kU=gc.useDebugValue;function AU(e,t){var n=t(),r=TU({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return PU(function(){i.value=n,i.getSnapshot=t,mS(i)&&o({inst:i})},[e,n,t]),EU(function(){return mS(i)&&o({inst:i}),e(function(){mS(i)&&o({inst:i})})},[e]),kU(n),n}function mS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!CU(e,n)}catch{return!0}}function OU(e,t){return t()}var RU=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?OU:AU;uR.useSyncExternalStore=gc.useSyncExternalStore!==void 0?gc.useSyncExternalStore:RU;lR.exports=uR;var IU=lR.exports,cR={exports:{}},dR={};/**
* @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 j0=E,NU=IU;function MU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DU=typeof Object.is=="function"?Object.is:MU,LU=NU.useSyncExternalStore,$U=j0.useRef,FU=j0.useEffect,BU=j0.useMemo,jU=j0.useDebugValue;dR.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=$U(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=BU(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,DU(c,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=LU(e,o[0],o[1]);return FU(function(){s.hasValue=!0,s.value=a},[a]),jU(a),a};cR.exports=dR;var fR=cR.exports;const VU=kl(fR);function zU(e){e()}let hR=zU;const UU=e=>hR=e,GU=()=>hR,$T=Symbol.for(`react-redux-context-${E.version}`),FT=globalThis;function HU(){let e=FT[$T];return e||(e=E.createContext(null),FT[$T]=e),e}const aa=new Proxy({},new Proxy({},{get(e,t){const n=HU();return(r,...i)=>Reflect[t](n,...i)}}));function RC(e=aa){return function(){return E.useContext(e)}}const pR=RC(),WU=()=>{throw new Error("uSES not initialized!")};let gR=WU;const qU=e=>{gR=e},KU=(e,t)=>e===t;function YU(e=aa){const t=e===aa?pR:RC(e);return function(r,i={}){const{equalityFn:o=KU,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();E.useRef(!0);const h=E.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=gR(u.addNestedSub,l.getState,c||l.getState,h,o);return E.useDebugValue(p),p}}const mR=YU();function ry(){return ry=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},ry.apply(this,arguments)}var yR={exports:{}},it={};/** @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 kn=typeof Symbol=="function"&&Symbol.for,IC=kn?Symbol.for("react.element"):60103,NC=kn?Symbol.for("react.portal"):60106,V0=kn?Symbol.for("react.fragment"):60107,z0=kn?Symbol.for("react.strict_mode"):60108,U0=kn?Symbol.for("react.profiler"):60114,G0=kn?Symbol.for("react.provider"):60109,H0=kn?Symbol.for("react.context"):60110,MC=kn?Symbol.for("react.async_mode"):60111,W0=kn?Symbol.for("react.concurrent_mode"):60111,q0=kn?Symbol.for("react.forward_ref"):60112,K0=kn?Symbol.for("react.suspense"):60113,XU=kn?Symbol.for("react.suspense_list"):60120,Y0=kn?Symbol.for("react.memo"):60115,X0=kn?Symbol.for("react.lazy"):60116,QU=kn?Symbol.for("react.block"):60121,ZU=kn?Symbol.for("react.fundamental"):60117,JU=kn?Symbol.for("react.responder"):60118,eG=kn?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IC:switch(e=e.type,e){case MC:case W0:case V0:case U0:case z0:case K0:return e;default:switch(e=e&&e.$$typeof,e){case H0:case q0:case X0:case Y0:case G0:return e;default:return t}}case NC:return t}}}function vR(e){return Wr(e)===W0}it.AsyncMode=MC;it.ConcurrentMode=W0;it.ContextConsumer=H0;it.ContextProvider=G0;it.Element=IC;it.ForwardRef=q0;it.Fragment=V0;it.Lazy=X0;it.Memo=Y0;it.Portal=NC;it.Profiler=U0;it.StrictMode=z0;it.Suspense=K0;it.isAsyncMode=function(e){return vR(e)||Wr(e)===MC};it.isConcurrentMode=vR;it.isContextConsumer=function(e){return Wr(e)===H0};it.isContextProvider=function(e){return Wr(e)===G0};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IC};it.isForwardRef=function(e){return Wr(e)===q0};it.isFragment=function(e){return Wr(e)===V0};it.isLazy=function(e){return Wr(e)===X0};it.isMemo=function(e){return Wr(e)===Y0};it.isPortal=function(e){return Wr(e)===NC};it.isProfiler=function(e){return Wr(e)===U0};it.isStrictMode=function(e){return Wr(e)===z0};it.isSuspense=function(e){return Wr(e)===K0};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===V0||e===W0||e===U0||e===z0||e===K0||e===XU||typeof e=="object"&&e!==null&&(e.$$typeof===X0||e.$$typeof===Y0||e.$$typeof===G0||e.$$typeof===H0||e.$$typeof===q0||e.$$typeof===ZU||e.$$typeof===JU||e.$$typeof===eG||e.$$typeof===QU)};it.typeOf=Wr;yR.exports=it;var tG=yR.exports,bR=tG,nG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},SR={};SR[bR.ForwardRef]=nG;SR[bR.Memo]=rG;var at={};/**
* @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 DC=Symbol.for("react.element"),LC=Symbol.for("react.portal"),Q0=Symbol.for("react.fragment"),Z0=Symbol.for("react.strict_mode"),J0=Symbol.for("react.profiler"),ev=Symbol.for("react.provider"),tv=Symbol.for("react.context"),iG=Symbol.for("react.server_context"),nv=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),iv=Symbol.for("react.suspense_list"),ov=Symbol.for("react.memo"),sv=Symbol.for("react.lazy"),oG=Symbol.for("react.offscreen"),_R;_R=Symbol.for("react.module.reference");function gi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case DC:switch(e=e.type,e){case Q0:case J0:case Z0:case rv:case iv:return e;default:switch(e=e&&e.$$typeof,e){case iG:case tv:case nv:case sv:case ov:case ev:return e;default:return t}}case LC:return t}}}at.ContextConsumer=tv;at.ContextProvider=ev;at.Element=DC;at.ForwardRef=nv;at.Fragment=Q0;at.Lazy=sv;at.Memo=ov;at.Portal=LC;at.Profiler=J0;at.StrictMode=Z0;at.Suspense=rv;at.SuspenseList=iv;at.isAsyncMode=function(){return!1};at.isConcurrentMode=function(){return!1};at.isContextConsumer=function(e){return gi(e)===tv};at.isContextProvider=function(e){return gi(e)===ev};at.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===DC};at.isForwardRef=function(e){return gi(e)===nv};at.isFragment=function(e){return gi(e)===Q0};at.isLazy=function(e){return gi(e)===sv};at.isMemo=function(e){return gi(e)===ov};at.isPortal=function(e){return gi(e)===LC};at.isProfiler=function(e){return gi(e)===J0};at.isStrictMode=function(e){return gi(e)===Z0};at.isSuspense=function(e){return gi(e)===rv};at.isSuspenseList=function(e){return gi(e)===iv};at.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Q0||e===J0||e===Z0||e===rv||e===iv||e===oG||typeof e=="object"&&e!==null&&(e.$$typeof===sv||e.$$typeof===ov||e.$$typeof===ev||e.$$typeof===tv||e.$$typeof===nv||e.$$typeof===_R||e.getModuleId!==void 0)};at.typeOf=gi;function sG(){const e=GU();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 BT={notify(){},get:()=>[]};function aG(e,t){let n,r=BT;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function s(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=sG())}function u(){n&&(n(),n=void 0,r.clear(),r=BT)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const lG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uG=lG?E.useLayoutEffect:E.useEffect;function jT(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function iy(e,t){if(jT(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])||!jT(e[n[i]],t[n[i]]))return!1;return!0}function cG({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=E.useMemo(()=>{const u=aG(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=E.useMemo(()=>e.getState(),[e]);uG(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||aa;return Ve.createElement(l.Provider,{value:s},n)}function wR(e=aa){const t=e===aa?pR:RC(e);return function(){const{store:r}=t();return r}}const xR=wR();function dG(e=aa){const t=e===aa?xR:wR(e);return function(){return t().dispatch}}const CR=dG();qU(fR.useSyncExternalStoreWithSelector);UU(ii.unstable_batchedUpdates);function Tn(e){for(var t=arguments.length,n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],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)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function MH(e){if(Array.isArray(e))return e}function TS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g7(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,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function g7(e,t){if(e){if(typeof e=="string")return oE(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 oE(e,t)}}function oE(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 fy(e){"@babel/helpers - typeof";return fy=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},fy(e)}var sE=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},aE=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},DH=function e(t,n){if(t===n)return!0;if(fy(t)!=="object"||fy(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(aE(t)&&aE(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=sE(t),s=sE(n);if(o==="DataView"&&s==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&s==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&s==="Map"){if(t.size!==n.size)return!1;var a=TS(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=CS(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){a.e(C)}finally{a.f()}var d=TS(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=CS(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(C){d.e(C)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var S=TS(t.entries()),v;try{for(S.s();!(v=S.n()).done;){var y=CS(v.value,1),g=y[0];if(!n.has(g))return!1}}catch(C){S.e(C)}finally{S.f()}return!0}if(o==="Date"&&s==="Date")return+t==+n;var b=Object.keys(t);if(b.length!==Object.keys(n).length)return!1;for(var _=b.length;_--!==0;)if(!Object.prototype.hasOwnProperty.call(n,b[_]))return!1;for(var w=b.length;w--!==0;){var x=b[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const XC=DH;function lE(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}function m7(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){lE(o,r,i,s,a,"next",l)}function a(l){lE(o,r,i,s,a,"throw",l)}s(void 0)})}}var LH=function(){var e=m7(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!XC(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),$H=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return XC(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},FH=function(){var e=m7(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,s=r.persistWholeStore,a=r.serialize;try{var l=s?LH:$H;yield l(t,n,{prefix:i,driver:o,serialize:a})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function uE(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}functio
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 b=function(_){return Array.from(_.values()).flatMap(function(w){return w?Object.values(w):[]})};return yy(yy([],b(s)),b(a)).filter(RS)}function p(b,_){return function(w){var x,C=o.endpointDefinitions[b],A=t({queryArgs:_,endpointDefinition:C,endpointName:b});return(x=s.get(w))==null?void 0:x[A]}}function m(b,_){return function(w){var x;return(x=a.get(w))==null?void 0:x[_]}}function S(){return function(b){return Object.values(s.get(b)||{}).filter(RS)}}function v(){return function(b){return Object.values(a.get(b)||{}).filter(RS)}}function y(b,_){var w=function(x,C){var A=C===void 0?{}:C,P=A.subscribe,k=P===void 0?!0:P,$=A.forceRefetch,M=A.subscriptionOptions,T=Xf,O=A[T];return function(I,N){var R,D,L=t({queryArgs:x,endpointDefinition:_,endpointName:b}),V=n((R={type:"query",subscribe:k,forceRefetch:$,subscriptionOptions:M,endpointName:b,originalArgs:x,queryCacheKey:L},R[Xf]=O,R)),z=i.endpoints[b].select(x),U=I(V),K=z(N()),W=U.requestId,X=U.abort,B=K.requestId!==W,q=(D=s.get(I))==null?void 0:D[L],Q=function(){return z(N())},J=Object.assign(O?U.then(Q):B&&!q?Promise.resolve(K):Promise.all([q,U]).then(Q),{arg:x,requestId:W,subscriptionOptions:M,queryCacheKey:L,abort:X,unwrap:function(){return by(this,null,function(){var Z;return my(this,function(ge){switch(ge.label){case 0:return[4,J];case 1:if(Z=ge.sent(),Z.isError)throw Z.error;return[2,Z.data]}})})},refetch:function(){return I(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){k&&I(u({queryCacheKey:L,requestId:W}))},updateSubscriptionOptions:function(Z){J.subscriptionOptions=Z,I(d({endpointName:b,requestId:W,queryCacheKey:L,options:Z}))}});if(!q&&!B&&!O){var ne=s.get(I)||{};ne[L]=J,s.set(I,ne),J.then(function(){delete ne[L],Object.keys(ne).length||s.delete(I)})}return J}};return w}function g(b){return function(_,w){var x=w===void 0?{}:w,C=x.track,A=C===void 0?!0:C,P=x.fixedCacheKey;return function(k,$){var M=r({type:"mutation",endpointName:b,originalArgs:_,track:A,fixedCacheKey:P}),T=k(M),O=T.requestId,I=T.abort,N=T.unwrap,R=T.unwrap().then(function(z){return{data:z}}).catch(function(z){return{error:z}}),D=function(){k(c({requestId:O,fixedCacheKey:P}))},L=Object.assign(R,{arg:T.arg,requestId:O,abort:I,unwrap:N,unsubscribe:D,reset:D}),V=a.get(k)||{};return a.set(k,V),V[O]=L,L.then(function(){delete V[O],Object.keys(V).length||a.delete(k)}),P&&(V[P]=L,L.then(function(){V[P]===L&&(delete V[P],Object.keys(V).length||a.delete(k))})),L}}}}function ZE(e){return e}function ZZ(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,b,_){return function(w){var x=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:b,endpointDefinition:x,endpointName:g}),patches:_}))}},l=function(g,b,_){return function(w,x){var C,A,P=s.endpoints[g].select(b)(x()),k={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,b,k.inversePatches))}};if(P.status===Et.uninitialized)return k;if("data"in P)if(Er(P.data)){var $=GC(P.data,_),M=$[1],T=$[2];(C=k.patches).push.apply(C,M),(A=k.inversePatches).push.apply(A,T)}else{var O=_(P.data);k.patches.push({op:"replace",path:[],value:O}),k.inversePatches.push({op:"replace",path:[],value:P.data})}return w(s.util.patchQueryData(g,b,k.patches)),k}},u=function(g,b,_){return function(w){var x;return w(s.endpoints[g].initiate(b,(x={subscribe:!1,forceRefetch:!0},x[Xf]=function(){return{data:_}},x)))}},c=function(g,b){return by(t,[g,b],function(_,w){var x,C,A,P,k,$,M,T,O,I,N,R,D,L,V,z,U,K,W=w.signal,X=w.abort,B=w.rejectWithValue,q=w.fulfillWithValue,Q=w.dispatch,J=w.getState,ne=w.extra;return my(this,function(Z){switch(Z.label){case 0:x=i[_.endpointName],Z.label=1;case 1:return Z.trys.push([1,8,,13]),C=ZE,A=void 0,P={signal:W,abort:X,dispatch:Q,getState:J,extra:ne,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?d(_,J()):void 0},k=_.type==="query"?_[Xf]:void 0,k?(A=k(),[3,6]):[3,2];case 2:return x.query?[4,r(
${R}`,V=`,
${R}`);const q=Math.min(D.length,x);let Q=0;for(;Q<q-1;Q++){const ne=C(String(Q),D,O,I,N,R);L+=ne!==void 0?ne:"null",L+=V}const J=C(String(Q),D,O,I,N,R);if(L+=J!==void 0?J:"null",D.length-1>x){const ne=D.length-x-1;L+=`${V}"... ${h(ne)} not stringified"`}return N!==""&&(L+=`
${z}`),O.pop(),`[${L}]`}let U=Object.keys(D);const K=U.length;if(K===0)return"{}";if(w<O.length+1)return'"[Object]"';let W="",X="";N!==""&&(R+=N,V=`,
${R}`,W=" ");const B=Math.min(K,x);_&&!l(D)&&(U=s(U)),O.push(D);for(let q=0;q<B;q++){const Q=U[q],J=C(Q,D,O,I,N,R);J!==void 0&&(L+=`${X}${o(Q)}:${W}${J}`,X=V)}if(K>x){const q=K-x;L+=`${X}"...":${W}"${h(q)} not stringified"`,X=V}return N!==""&&X.length>1&&(L=`
${R}${L}
${z}`),O.pop(),`{${L}}`}case"number":return isFinite(D)?String(D):y?y(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(D);default:return y?y(D):void 0}}function A(M,T,O,I,N,R){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(O.indexOf(T)!==-1)return g;const D=R;let L="",V=",";if(Array.isArray(T)){if(T.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(T),N!==""&&(R+=N,L+=`
${R}`,V=`,
${R}`);const K=Math.min(T.length,x);let W=0;for(;W<K-1;W++){const B=A(String(W),T[W],O,I,N,R);L+=B!==void 0?B:"null",L+=V}const X=A(String(W),T[W],O,I,N,R);if(L+=X!==void 0?X:"null",T.length-1>x){const B=T.length-x-1;L+=`${V}"... ${h(B)} not stringified"`}return N!==""&&(L+=`
${D}`),O.pop(),`[${L}]`}O.push(T);let z="";N!==""&&(R+=N,V=`,
${R}`,z=" ");let U="";for(const K of I){const W=A(K,T[K],O,I,N,R);W!==void 0&&(L+=`${U}${o(K)}:${z}${W}`,U=V)}return N!==""&&U.length>1&&(L=`
${R}${L}
${D}`),O.pop(),`{${L}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(T);default:return y?y(T):void 0}}function P(M,T,O,I,N){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 P(M,T,O,I,N);if(T===null)return"null"}if(O.indexOf(T)!==-1)return g;const R=N;if(Array.isArray(T)){if(T.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(T),N+=I;let W=`
${N}`;const X=`,
${N}`,B=Math.min(T.length,x);let q=0;for(;q<B-1;q++){const J=P(String(q),T[q],O,I,N);W+=J!==void 0?J:"null",W+=X}const Q=P(String(q),T[q],O,I,N);if(W+=Q!==void 0?Q:"null",T.length-1>x){const J=T.length-x-1;W+=`${X}"... ${h(J)} not stringified"`}return W+=`
${R}`,O.pop(),`[${W}]`}let D=Object.keys(T);const L=D.length;if(L===0)return"{}";if(w<O.length+1)return'"[Object]"';N+=I;const V=`,
${N}`;let z="",U="",K=Math.min(L,x);l(T)&&(z+=u(T,V,x),D=D.slice(T.length),K-=T.length,U=V),_&&(D=s(D)),O.push(T);for(let W=0;W<K;W++){const X=D[W],B=P(X,T[X],O,I,N);B!==void 0&&(z+=`${U}${o(X)}: ${B}`,U=V)}if(L>x){const W=L-x;z+=`${U}"...": "${h(W)} not stringified"`,U=V}return U!==""&&(z=`
${N}${z}
${R}`),O.pop(),`{${z}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(T);default:return y?y(T):void 0}}function k(M,T,O){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 k(M,T,O);if(T===null)return"null"}if(O.indexOf(T)!==-1)return g;let I="";if(Array.isArray(T)){if(T.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(T);const V=Math.min(T.length,x);let z=0;for(;z<V-1;z++){const K=k(String(z),T[z],O);I+=K!==void 0?K:"null",I+=","}const U=k(String(z),T[z],O);if(I+=U!==void 0?U:"null",T.length-1>x){const K=T.length-x-1;I+=`,"... ${h(K)} not stringified"`}return O.pop(),`[${I}]`}let N=Object.keys(T);const R=N.length;if(R===0)return"{}";if(w<O.length+1)return'"[Object]"';let D="",L=Math.min(R,x);l(T)&&(I+=u(T,",",x),N=N.slice(T.length),L-=T.length,D=","),_&&(N=s(N)),O.push(T);for(let V=0;V<L;V++){const z=N[V],U=k(z,T[z],O);U!==void 0&&(I+=`${D}${o(z)}:${U}`,D=",")}if(R>x){const V=R-x;I+=`${D}"...":"${h(V)} not stringified"`}return O.pop(),`{${I}}`}case"number":return isFinite(T)?String(T):y?y(T):"null";case"boolean":return T===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(T);default:return y?y(T):void 0}}function $(M,T,O){if(arguments.length>1){let I="";if(typeof O=="number"?I=" ".repeat(Math.min(O,10)):typeof O=="string"&&(I=O.slice(0,10)),T!=null){if(typeof T=="function")return C("",{"":M},[],T,I,"");if(Array.isArray(T))return A("",M,[],p(T),I,"")}if(I.length!==0)return P("",M,[],I,"")}return k("",M,[])}return $}})(sw,sw.exports);var ite=sw.exports;(function(e){var t=Me&&Me.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=bl,r=lp,i=BI,o=jI,s=t(w5),a=t(ite);let l=!1;const u=(0,s.default)(),c=()=>u.ROARR,d=()=>({messageContext:{},transforms:[]}),f=()=>{const g=c().asyncLocalStorage;if(!g)throw new Error("AsyncLocalContext is unavailable.");const b=g.getStore();return b||d()},h=()=>!!c().asyncLocalStorage,p=()=>{if(h()){const g=f();return(0,i.hasOwnProperty)(g,"sequenceRoot")&&(0,i.hasOwnProperty)(g,"sequence")&&typeof g.sequence=="number"?String(g.sequenceRoot)+"."+String(g.sequence++):String(c().sequence++)}return String(c().sequence++)},m=(g,b)=>(_,w,x,C,A,P,k,$,M,T)=>{g.child({logLevel:b})(_,w,x,C,A,P,k,$,M,T)},S=1e3,v=(g,b)=>(_,w,x,C,A,P,k,$,M,T)=>{const O=(0,a.default)({a:_,b:w,c:x,d:C,e:A,f:P,g:k,h:$,i:M,j:T,logLevel:b});if(!O)throw new Error("Expected key to be a string");const I=c().onceLog;I.has(O)||(I.add(O),I.size>S&&I.clear(),g.child({logLevel:b})(_,w,x,C,A,P,k,$,M,T))},y=(g,b={},_=[])=>{const w=(x,C,A,P,k,$,M,T,O,I)=>{const N=Date.now(),R=p();let D;h()?D=f():D=d();let L,V;if(typeof x=="string"?L={...D.messageContext,...b}:L={...D.messageContext,...b,...x},typeof x=="string"&&C===void 0)V=x;else if(typeof x=="string"){if(!x.includes("%"))throw new Error("When a string parameter is followed by other arguments, then it is assumed that you are attempting to format a message using printf syntax. You either forgot to add printf bindings or if you meant to add context to the log message, pass them in an object as the first parameter.");V=(0,o.printf)(x,C,A,P,k,$,M,T,O,I)}else{let U=C;if(typeof C!="string")if(C===void 0)U="";else throw new TypeError("Message must be a string. Received "+typeof C+".");V=(0,o.printf)(U,A,P,k,$,M,T,O,I)}let z={context:L,message:V,sequence:R,time:N,version:n.ROARR_LOG_FORMAT_VERSION};for(const U of[...D.transforms,..._])if(z=U(z),typeof z!="object"||z===null)throw new Error("Message transform function must return a message object.");g(z)};return w.child=x=>{let C;return h()?C=f():C=d(),typeof x=="function"?(0,e.createLogger)(g,{...C.messageContext,...b,...x},[x,..._]):(0,e.createLogger)(g,{...C.messageContext,...b,...x},_)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...b}},w.adopt=async(x,C)=>{if(!h())return l===!1&&(l=!
`&&(this.line+=1,this.lastLineBreak=this.index),{value:u}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(u,c){var d=this.buffer;if(typeof d=="string"){var f=d.split(`
`).slice(Math.max(0,this.line-5),this.line),h=d.indexOf(`
`,this.index);h===-1&&(h=d.length);var p=this.index-this.lastLineBreak,m=String(this.line).length;return c+=" at line "+this.line+" col "+p+`:
`,c+=f.map(function(v,y){return S(this.line-f.length+y+1,m)+" "+v},this).join(`
`),c+=`
`+S("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function S(v,y){var g=String(v);return Array(y-g.length+1).join(" ")+g}};function s(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}s.fail={},s.prototype.feed=function(u){var c=this.lexer;c.reset(u,this.lexerState);for(var d;;){try{if(d=c.next(),!d)break}catch(x){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(x));throw f.offset=this.current,f.token=x.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,m=new r(this.grammar,p);this.table.push(m);for(var S=d.text!==void 0?d.text:d.value,v=c.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var b=y[g],_=b.rule.symbols[b.dot];if(_.test?_.test(v):_.type?_.type===d.type:_.literal===S){var w=b.nextState({data:v,token:d,isToken:!0,reference:p-1});m.states.push(w)}}if(m.process(),m.states.length===0){var f=new Error(this.reportError(d));throw f.offset=this.current,f.token=d,f}this.options.keepHistory&&(h.lexerState=c.save()),this.current++}return h&&(this.lexerState=c.save()),this.results=this.finish(),this},s.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)},s.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)},s.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(S){var v=S.rule.symbols[S.dot];return v&&typeof v!="string"});if(p.length===0)d.push("Unexpected "+c+`. I did not expect any more input. Here is the state of my parse table:
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+c+`. Instead, I was expecting to see one of the following:
`);var m=p.map(function(S){return this.buildFirstStateStack(S,[])||[S]},this);m.forEach(function(S){var v=S[0],y=v.rule.symbols[v.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(S,d)},this)}return d.push(""),d.join(`
`)},s.prototype.displayStateStack=function(u,c){for(var d,f=0,h=0;h<u.length;h++){var p=u[h],m=p.rule.toString(p.dot);m===d?f++:(f>0&&c.push(" ^ "+f+" more lines identical to this"),f=0,c.push(" "+m)),d=m}},s.prototype.getSymbolDisplay=function(u){return a(u)},s.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)},s.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},s.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()},s.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},s.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!==s.fail&&u.push(f)}),u.map(function(f){return f.data})};function a(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:s,Grammar:i,Rule:t}})})(JI);var Ate=JI.exports,Sl={},eN={},Ta={};Ta.__esModule=void 0;Ta.__esModule=!0;var Ote=typeof Object.setPrototypeOf=="function",Rte=typeof Object.getPrototypeOf=="function",Ite=typeof Object.defineProperty=="function",Nte=typeof Object.create=="function",Mte=typeof Object.prototype.hasOwnProperty=="function",Dte=function(t,n){Ote?Object.setPrototypeOf(t,n):t.__proto__=n};Ta.setPrototypeOf=Dte;var Lte=function(t){return Rte?Object.getPrototypeOf(t):t.__proto__||t.prototype};Ta.getPrototypeOf=Lte;var w6=!1,$te=function e(t,n,r){if(Ite&&!w6)try{Object.defineProperty(t,n,r)}catch{w6=!0,e(t,n,r)}else t[n]=r.value};Ta.defineProperty=$te;var tN=function(t,n){return Mte?t.hasOwnProperty(t,n):t[n]===void 0};Ta.hasOwnProperty=tN;var Fte=function(t,n){if(Nte)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)tN(n,o)&&(i[o]=n[o].value);return i};Ta.objectCreate=Fte;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Ta,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,s=new Error().toString()==="[object Error]",a="";function l(u){var c=this.constructor,d=c.name||function(){var S=c.toString().match(/^function\s*([^\s(]+)/);return S===null?a||"Error":S[1]}(),f=d==="Error",h=f?a:d,p=Error.apply(this,arguments);if(n(p,r(this)),!(p instanceof c)||!(p instanceof l)){var p=this;Error.apply(this,arguments),i(p,"message",{configurable:!0,enumerable:!1,value:u,writable:!0})}if(i(p,"name",{configurable:!0,enumerable:!1,value:h,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(p,f?l:c),p.stack===void 0){var m=new Error(u);m.name=p.name,p.stack=m.stack}return s&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}a=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(eN);var nN=Me&&Me.__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(
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),S=`
color: `.concat(lne[f].color,`;
`),v=`
color: inherit;
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message," %O"),m,S,v,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message),m,S,v)}}};Mv.createLogWriter=cne;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=Mv;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(x5);const uN={package:"@invoke-ai/invoke-ai-ui"};wc.ROARR.write=x5.createLogWriter();let _e=wc.Roarr.child(uN);const dne={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},eEe=["trace","debug","info","warn","error","fatal"],fne=wt(ap,e=>{const{app_version:t,consoleLogLevel:n,shouldLogToConsole:r}=e;return{version:t,consoleLogLevel:n,shouldLogToConsole:r}},{memoizeOptions:{resultEqualityCheck:op}}),tEe=()=>{const{version:e,consoleLogLevel:t,shouldLogToConsole:n}=_c(fne);return E.useEffect(()=>{n?(localStorage.setItem("ROARR_LOG","true"),localStorage.setItem("ROARR_FILTER",`context.logLevel:>=${dne[t]}`)):localStorage.setItem("ROARR_LOG","false"),wc.ROARR.write=x5.createLogWriter()},[t,n]),E.useEffect(()=>{const r={...uN};e&&(r.version=e),_e=wc.Roarr.child(r)},[e]),_e};_e.child({namespace:"session"});const ar=wo("api/sessionCreated",async(e,{rejectWithValue:t})=>{const{graph:n}=e,{post:r}=xo.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/",{body:n});return o?t({arg:e,error:o}):i}),hne=e=>Pn(e)&&"status"in e,hp=wo("api/sessionInvoked",async(e,{rejectWithValue:t})=>{const{session_id:n}=e,{put:r}=xo.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/{session_id}/invoke",{params:{query:{all:!0},path:{session_id:n}}});if(o)return hne(o)&&o.status===403?t({arg:e,error:o.body.detail}):t({arg:e,error:o})}),Nl=wo("api/sessionCanceled",async(e,{rejectWithValue:t})=>{const{session_id:n}=e,{del:r}=xo.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/{session_id}/invoke",{params:{path:{session_id:n}}});return o?t({arg:e,error:o}):i});wo("api/listSessions",async(e,{rejectWithValue:t})=>{const{params:n}=e,{get:r}=xo.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/",{params:n});return o?t({arg:e,error:o}):i});const cN=fs(ar.rejected,hp.rejected),dN=["euler","deis","ddim","ddpm","dpmpp_2s","dpmpp_2m","dpmpp_2m_sde","dpmpp_sde","heun","kdpm_2","lms","pndm","unipc","euler_k","dpmpp_2s_k","dpmpp_2m_k","dpmpp_2m_sde_k","dpmpp_sde_k","heun_k","lms_k","euler_a","kdpm_2_a"],pne="euler",nEe=[...dN],rEe={euler:"Euler",deis:"DEIS",ddim:"DDIM",ddpm:"DDPM",dpmpp_sde:"DPM++ SDE",dpmpp_2s:"DPM++ 2S",dpmpp_2m:"DPM++ 2M",dpmpp_2m_sde:"DPM++ 2M SDE",heun:"Heun",kdpm_2:"KDPM 2",lms:"LMS",pndm:"PNDM",unipc:"UniPC",euler_k:"Euler Karras",dpmpp_sde_k:"DPM++ SDE Karras",dpmpp_2s_k:"DPM++ 2S Karras",dpmpp_2m_k:"DPM++ 2M Karras",dpmpp_2m_sde_k:"DPM++ 2M SDE Karras",heun_k:"Heun Karras",lms_k:"LMS Karras",euler_a:"Euler Ancestral",kdpm_2_a:"KDPM 2 Ancestral"},iEe=[{label:"2x",value:"2"},{label:"4x",value:"4"}],oEe=0,gne=2147483647,sEe=["gfpgan","codeformer"],aEe=250,fN={shouldUpdateImagesOnConnect:!1,disabledTabs:[],disabledFeatures:[],disabledSDFeatures:[],canRestoreDeletedImagesFromBin:!0,sd:{disabledControlNetModels:[],disabledControlNetProcessors:[],iterations:{initial:1,min:1,sliderMax:20,inputMax:9999,fineStep:1,coarseStep:1},width:{initial:512,min:64,sliderMax:1536,inputMax:4096,fineStep:8,coarseStep:64},height:{initial:512,min:64,sliderMax:1536,inputMax:4096,fineStep:8,coarseStep:64},steps:{initial:30,min:1,sliderMax:100,inputMax:500,fineStep:1,coarseStep:1},guidance:{initial:7,min:1,sliderMax:20,inputMax:200,fineStep:.1,coarseStep:.5},img2imgStrength:{initial:.7,min:0,sliderMax:1,inputMax:1,fineStep:.01,coarseStep:.05},dynamicPrompts:{maxPrompts:{initial:100,min:1,sliderMax:1e3,inputMax:1e4}}}},hN=Lt({name:"config",initialState:fN,reducers:{configChanged:(e,t)=>{GQ(e,t.payload)}}}),{configChanged:mne}=hN.actions,yne=hN.reducer;function vne(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return do
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${s}px !important;
top: ${a}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),E.createElement(Iue,{isPresent:t,childRef:r,sizeRef:i},E.cloneElement(e,{ref:r}))}const t2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=sM(Mue),l=E.useId(),u=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return E.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),E.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=E.createElement(Nue,{isPresent:n},e)),E.createElement(yp.Provider,{value:u},e)};function Mue(){return new Map}function Due(e){return E.useEffect(()=>()=>e(),[])}const hu=e=>e.key||"";function Lue(e,t){e.forEach(n=>{const r=hu(n);t.set(r,n)})}function $ue(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const n3=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=E.useContext($5).forceRender||Rue()[0],l=cD(),u=$ue(e);let c=u;const d=E.useRef(new Map).current,f=E.useRef(c),h=E.useRef(new Map).current,p=E.useRef(!0);if(Ay(()=>{p.current=!1,Lue(u,h),f.current=c}),Due(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return E.createElement(E.Fragment,null,c.map(y=>E.createElement(t2,{key:hu(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(hu),S=u.map(hu),v=m.length;for(let y=0;y<v;y++){const g=m[y];S.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(S.indexOf(g)!==-1)return;const b=h.get(g);if(!b)return;const _=m.indexOf(g);let w=y;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(A=>A.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=E.createElement(t2,{key:hu(b),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:s},b),d.set(g,w)}c.splice(_,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:E.createElement(t2,{key:hu(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),E.createElement(E.Fragment,null,d.size?c:c.map(y=>E.cloneElement(y)))};var Fue={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]}}},dD=E.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Fue,toastSpacing:c="0.5rem"}=e,[d,f]=E.useState(a),h=Tle();ky(()=>{h||r==null||r()},[h]),ky(()=>{f(a)},[a]);const p=()=>f(null),m=()=>f(a),S=()=>{h&&i()};E.useEffect(()=>{h&&o&&i()},[h,o,i]),woe(S,d);const v=E.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=E.useMemo(()=>Soe(s),[s]);return j.jsx(t3.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:s},style:y,children:j.jsx(ke.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:no(n,{id:t,onClose:S})})})});dD.displayName="ToastComponent";function Bue(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 YP={path:j.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[j.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"}),j.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"}),j.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},$l=Qe((e,t)=>{const{as:n,viewBox:
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==du&&o!==void 0,l=s!==du&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==z9,m=h!==r2e&&p,S=this.ellipsis();this.textArr=[],P2().font=this._getContextFont();for(var v=S?this._getTextWidth(E2):0,y=0,g=t.length;y<g;++y){var b=t[y],_=this._getTextWidth(b);if(a&&_>c)for(;b.length>0;){for(var w=0,x=b.length,C="",A=0;w<x;){var P=w+x>>>1,k=b.slice(0,P+1),$=this._getTextWidth(k)+v;$<=c?(w=P+1,C=k,A=$):x=P}if(C){if(m){var M,T=b[C.length],O=T===$g||T===j9;O&&A<=c?M=C.length:M=Math.max(C.lastIndexOf($g),C.lastIndexOf(j9))+1,M>0&&(w=M,C=C.slice(0,w),A=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,A),f+=i;var I=this._shouldHandleEllipsis(f);if(I){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(_=this._getTextWidth(b),_<=c)){this._addTextLine(b),f+=i,r=Math.max(r,_);break}}else break}else this._addTextLine(b),f+=i,r=Math.max(r,_),this._shouldHandleEllipsis(f)&&y<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==du&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==z9;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==du&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(n){var a=this._getTextWidth(s.text+E2)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+E2)}}getStrokeScaleEnabled(){return!0}}Pl.Text=Qt;Qt.prototype._fillFunc=s2e;Qt.prototype._strokeFunc=a2e;Qt.prototype.className=QSe;Qt.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,WSe._registerNode)(Qt);dr.Factory.overWriteSetter(Qt,"width",(0,Ra.getNumberOrAutoValidator)());dr.Factory.overWriteSetter(Qt,"height",(0,Ra.getNumberOrAutoValidator)());dr.Factory.addGetterSetter(Qt,"fontFamily","Arial");dr.Factory.addGetterSetter(Qt,"fontSize",12,(0,Ra.getNumberValidator)());dr.Factory.addGetterSetter(Qt,"fontStyle",uB);dr.Factory.addGetterSetter(Qt,"fontVariant",uB);dr.Factory.addGetterSetter(Qt,"padding",0,(0,Ra.getNumberValidator)());dr.Factory.addGetterSetter(Qt,"align",lB);dr.Factory.addGetterSetter(Qt,"verticalAlign",ZSe);dr.Factory.addGetterSetter(Qt,"lineHeight",1,(0,Ra.getNumberValidator)());dr.Factory.addGetterSetter(Qt,"wrap",n2e);dr.Factory.addGetterSetter(Qt,"ellipsis",!1,(0,Ra.getBooleanValidator)());dr.Factory.addGetterSetter(Qt,"letterSpacing",0,(0,Ra.getNumberValidator)());dr.Factory.addGetterSetter(Qt,"text","",(0,Ra.getStringValidator)());dr.Factory.addGetterSetter(Qt,"textDecoration","");var W1={};Object.defineProperty(W1,"__esModule",{value:!0});W1.TextPath=void 0;const k2=Vt,ji=Re,u2e=mn,Md=ed,A2=Pl,dB=fe,c2e=De;var d2e="",fB="normal";function hB(e){e.fillText(this.partialText,0,0)}function pB(e){e.strokeText(this.partialText,0,0)}class yn extends u2e.Shape{constructor(t){super(t),this.dummyCanvas=k2.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 Md.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:Md.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Md.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=t
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.
`},E3e={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 P3e(e){let{announcements:t=E3e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=T3e}=e;const{announce:o,announcement:s}=w3e(),a=_b("DndLiveRegion"),[l,u]=E.useState(!1);if(E.useEffect(()=>{u(!0)},[]),x3e(E.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=Ve.createElement(Ve.Fragment,null,Ve.createElement(b3e,{id:r,value:i.draggable}),Ve.createElement(_3e,{id:a,announcement:s}));return n?ii.createPortal(c,n):c}var cn;(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"})(cn||(cn={}));function w0(){}function Lk(e,t){return E.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function k3e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return E.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Fi=Object.freeze({x:0,y:0});function A3e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function O3e(e,t){const n=Bh(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 R3e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function I3e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function N3e(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 M3e(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function D3e(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),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=s*a,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const L3e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=D3e(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(I3e)};function $3e(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 F3e=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:s}=o,a=n.get(s);if(a&&$3e(r,a)){const u=N3e(a).reduce((d,f)=>d+A3e(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(R3e)};function B3e(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function nj(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Fi}function j3e(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((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const V3e=j3e(1);function rj(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 z3e(e,t,n){const r=rj(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat