InvokeAI/invokeai/frontend/web/dist/assets/index-bad7ff83.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-28 22:21:05 +00:00
function R8(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 Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nF(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 O8={exports:{}},Sy={},M8={exports:{}},Oe={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2023-07-28 22:21:05 +00:00
*/var Jf=Symbol.for("react.element"),rF=Symbol.for("react.portal"),iF=Symbol.for("react.fragment"),oF=Symbol.for("react.strict_mode"),sF=Symbol.for("react.profiler"),aF=Symbol.for("react.provider"),lF=Symbol.for("react.context"),uF=Symbol.for("react.forward_ref"),cF=Symbol.for("react.suspense"),dF=Symbol.for("react.memo"),fF=Symbol.for("react.lazy"),N3=Symbol.iterator;function hF(e){return e===null||typeof e!="object"?null:(e=N3&&e[N3]||e["@@iterator"],typeof e=="function"?e:null)}var I8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N8=Object.assign,D8={};function dc(e,t,n){this.props=e,this.context=t,this.refs=D8,this.updater=n||I8}dc.prototype.isReactComponent={};dc.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")};dc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L8(){}L8.prototype=dc.prototype;function lw(e,t,n){this.props=e,this.context=t,this.refs=D8,this.updater=n||I8}var uw=lw.prototype=new L8;uw.constructor=lw;N8(uw,dc.prototype);uw.isPureReactComponent=!0;var D3=Array.isArray,$8=Object.prototype.hasOwnProperty,cw={current:null},F8={key:!0,ref:!0,__self:!0,__source:!0};function B8(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)$8.call(t,r)&&!F8.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:Jf,type:e,key:o,ref:s,props:i,_owner:cw.current}}function pF(e,t){return{$$typeof:Jf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jf}function gF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var L3=/\/+/g;function I1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gF(""+e.key):t.toString(36)}function Qp(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 Jf:case rF:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+I1(s,0):r,D3(i)?(n="",e!=null&&(n=e.replace(L3,"$&/")+"/"),Qp(i,t,n,"",function(u){return u})):i!=null&&(dw(i)&&(i=pF(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(L3,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",D3(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+I1(o,a);s+=Qp(o,t,n,l,i)}else if(l=hF(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+I1(o,a++),s+=Qp(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 Xh(e,t,n){if(e==null)return e;var r=[],i=0;return Qp(e,r,"","",function(o){return t.call(n,o,i++)}),r}function mF(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 nr={current:null},Zp={transition:null},yF={ReactCurrentDispatcher:nr,ReactCurrentBatchConfig:Zp,ReactCurrentOwner:cw};Oe.Children={map:Xh,forEach:function(e,t,n){Xh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xh(e,function(){t++}),t},toArray:function(e){return Xh(e,function(t){return t})||[]},only:function(e){if(!dw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oe.Component=dc;Oe.Fragment=iF;Oe.Profiler=sF;Oe
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2023-07-28 22:21:05 +00:00
*/var vF=k,bF=Symbol.for("react.element"),SF=Symbol.for("react.fragment"),_F=Object.prototype.hasOwnProperty,wF=vF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xF={key:!0,ref:!0,__self:!0,__source:!0};function j8(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)_F.call(t,r)&&!xF.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:bF,type:e,key:o,ref:s,props:i,_owner:wF.current}}Sy.Fragment=SF;Sy.jsx=j8;Sy.jsxs=j8;O8.exports=Sy;var K=O8.exports,xS={},V8={exports:{}},Ir={},z8={exports:{}},U8={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2023-07-28 22:21:05 +00:00
*/(function(e){function t(O,D){var L=O.length;O.push(D);e:for(;0<L;){var j=L-1>>>1,U=O[j];if(0<i(U,D))O[j]=D,O[L]=U,L=j;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var D=O[0],L=O.pop();if(L!==D){O[0]=L;e:for(var j=0,U=O.length,G=U>>>1;j<G;){var W=2*(j+1)-1,X=O[W],Y=W+1,B=O[Y];if(0>i(X,L))Y<U&&0>i(B,X)?(O[j]=B,O[Y]=L,j=Y):(O[j]=X,O[W]=L,j=W);else if(Y<U&&0>i(B,L))O[j]=B,O[Y]=L,j=Y;else break e}}return D}function i(O,D){var L=O.sortIndex-D.sortIndex;return L!==0?L:O.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(O){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=O)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(O){if(m=!1,g(O),!p)if(n(l)!==null)p=!0,M(_);else{var D=n(u);D!==null&&N(b,D.startTime-O)}}function _(O,D){p=!1,m&&(m=!1,v(T),T=-1),h=!0;var L=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||O&&!A());){var j=d.callback;if(typeof j=="function"){d.callback=null,f=d.priorityLevel;var U=j(d.expirationTime<=D);D=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var W=n(u);W!==null&&N(b,W.startTime-D),G=!1}return G}finally{d=null,f=L,h=!1}}var w=!1,x=null,T=-1,P=5,E=-1;function A(){return!(e.unstable_now()-E<P)}function $(){if(x!==null){var O=e.unstable_now();E=O;var D=!0;try{D=x(!0,O)}finally{D?I():(w=!1,x=null)}}else w=!1}var I;if(typeof y=="function")I=function(){y($)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,R=C.port2;C.port1.onmessage=$,I=function(){R.postMessage(null)}}else I=function(){S($,0)};function M(O){x=O,w||(w=!0,I())}function N(O,D){T=S(function(){O(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(O){O.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,M(_))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var L=f;f=D;try{return O()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,D){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=f;f=O;try{return D()}finally{f=L}},e.unstable_scheduleCallback=function(O,D,L){var j=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?j+L:j):L=j,O){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=L+U,O={id:c++,callback:D,priorityLevel:O,startTime:L,expirationTime:U,sortIndex:-1},L>j?(O.sortIndex=L,t(u,O),n(l)===null&&O===n(u)&&(m?(v(T),T=-1):m=!0,N(b,L-j))):(O.sortIndex=U,t(l,O),p||h||(p=!0,M(_))),O},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(O){var D=f;return function(){var L=f;f=D;try{return O.apply(this,arguments)}finally{f=L}}}})(U8);z8.exports=U8;var CF=z8.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.
2023-07-28 22:21:05 +00:00
*/var G8=k,kr=CF;function Z(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 H8=new Set,Fd={};function ll(e,t){Bu(e,t),Bu(e+"Capture",t)}function Bu(e,t){for(Fd[e]=t,e=0;e<t.length;e++)H8.add(t[e])}var Lo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),CS=Object.prototype.hasOwnProperty,TF=/^[: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]*$/,F3={},B3={};function EF(e){return CS.call(B3,e)?!0:CS.call(F3,e)?!1:TF.test(e)?B3[e]=!0:(F3[e]=!0,!1)}function PF(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 AF(e,t,n,r){if(t===null||typeof t>"u"||PF(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 rr(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 kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new rr(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){kn[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var fw=/[\-:]([a-z])/g;function hw(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-
`+N1+e}var D1=!1;function L1(e,t){if(!e||D1)return"";D1=!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=`
2023-07-28 22:21:05 +00:00
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{D1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ad(e):""}function kF(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=L1(e.type,!1),e;case 11:return e=L1(e.type.render,!1),e;case 1:return e=L1(e.type,!0),e;default:return""}}function AS(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 eu:return"Fragment";case Jl:return"Portal";case TS:return"Profiler";case gw:return"StrictMode";case ES:return"Suspense";case PS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W8:return(e.displayName||"Context")+".Consumer";case q8:return(e._context.displayName||"Context")+".Provider";case mw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yw:return t=e.displayName||null,t!==null?t:AS(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return AS(e(t))}catch{}}return null}function RF(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 AS(t);case 8:return t===gw?"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 Ls(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OF(e){var t=X8(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 Qh(e){e._valueTracker||(e._valueTracker=OF(e))}function Y8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ig(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 kS(e,t){var n=t.checked;return Rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function V3(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ls(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 Q8(e,t){t=t.checked,t!=null&&pw(e,"checked",t,!1)}function RS(e,t){Q8(e,t);var n=Ls(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")?OS(e,t.type,n):t.hasOwnProperty("defaultValue")&&OS(e,t.type,Ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function z3(e,t,n){if(t.hasOwnProperty("val
`).replace(VB,"")}function op(e,t,n){if(t=d5(t),d5(e)!==t&&n)throw Error(Z(425))}function Vg(){}var HS=null,qS=null;function WS(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 KS=typeof setTimeout=="function"?setTimeout:void 0,zB=typeof clearTimeout=="function"?clearTimeout:void 0,f5=typeof Promise=="function"?Promise:void 0,UB=typeof queueMicrotask=="function"?queueMicrotask:typeof f5<"u"?function(e){return f5.resolve(null).then(e).catch(GB)}:KS;function GB(e){setTimeout(function(){throw e})}function X1(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),Ud(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ud(t)}function Ts(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 h5(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 hc=Math.random().toString(36).slice(2),Vi="__reactFiber$"+hc,Kd="__reactProps$"+hc,$o="__reactContainer$"+hc,XS="__reactEvents$"+hc,HB="__reactListeners$"+hc,qB="__reactHandles$"+hc;function Aa(e){var t=e[Vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$o]||n[Vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=h5(e);e!==null;){if(n=e[Vi])return n;e=h5(e)}return t}e=n,n=e.parentNode}return null}function nh(e){return e=e[Vi]||e[$o],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function iu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Ty(e){return e[Kd]||null}var YS=[],ou=-1;function Qs(e){return{current:e}}function ht(e){0>ou||(e.current=YS[ou],YS[ou]=null,ou--)}function lt(e,t){ou++,YS[ou]=e.current,e.current=t}var $s={},Bn=Qs($s),pr=Qs(!1),Ha=$s;function ju(e,t){var n=e.type.contextTypes;if(!n)return $s;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 gr(e){return e=e.childContextTypes,e!=null}function zg(){ht(pr),ht(Bn)}function p5(e,t,n){if(Bn.current!==$s)throw Error(Z(168));lt(Bn,t),lt(pr,n)}function BA(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(Z(108,RF(e)||"Unknown",i));return Rt({},n,r)}function Ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,Ha=Bn.current,lt(Bn,e),lt(pr,pr.current),!0}function g5(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=BA(e,t,Ha),r.__reactInternalMemoizedMergedChildContext=e,ht(pr),ht(Bn),lt(Bn,e)):ht(pr),lt(pr,n)}var _o=null,Ey=!1,Y1=!1;function jA(e){_o===null?_o=[e]:_o.push(e)}function WB(e){Ey=!0,jA(e)}function Zs(){if(!Y1&&_o!==null){Y1=!0;var e=0,t=Ye;try{var n=_o;for(Ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_o=null,Ey=!1}catch(i){throw _o!==null&&(_o=_o.slice(e+1)),dA(bw,Zs),i}finally{Ye=t,Y1=!1}}return null}var su=[],au=0,Gg=null,Hg=0,Gr=[],Hr=0,qa=null,To=1,Eo="";function Sa(e,t){su[au++]=Hg,su[au++]=Gg,Gg=e,Hg=t}function VA(e,t,n){Gr[Hr++]=To,Gr[Hr++]=Eo,Gr[Hr++]=qa,qa=e;var r=To;e=Eo;var i=32-mi(r)-1;r&=~(1<<i),n+=1;var o=32-mi(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,To=1<<32-mi(t)+i|n<<i|r,Eo=o+e}else To=1<<o|n<<i|r,Eo=e}function Aw(e){e.return!==null&&(Sa(e,1),VA(e,1,0))}function kw(e){for(;e===Gg;)Gg=su[--au],su[au]=null,Hg=su[--au],su[au]=null;for(;e===qa;)qa=Gr[--Hr],Gr[Hr]=null,Eo=Gr[--Hr],Gr[Hr]=null,To=Gr[--Hr],Gr[Hr]=null}var Pr=null,Er=null,St=!1,ci=null;function zA(e,t){var n=Wr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
Error generating stack: `+o.message+`
2023-07-28 22:21:05 +00:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function tb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function n_(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nj=typeof WeakMap=="function"?WeakMap:Map;function m9(e,t,n){n=ko(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jg||(Jg=!0,f_=r),n_(e,t)},n}function y9(e,t,n){n=ko(-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(){n_(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){n_(e,t),typeof r!="function"&&(Ps===null?Ps=new Set([this]):Ps.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function T5(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nj;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=mj.bind(null,e,t,n),t.then(e,e))}function E5(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 P5(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=ko(-1,1),t.tag=2,Es(n,t,1))),n.lanes|=1),e)}var rj=Go.ReactCurrentOwner,dr=!1;function Yn(e,t,n,r){t.child=e===null?XA(t,null,n,r):zu(t,e.child,n,r)}function A5(e,t,n,r,i){n=n.render;var o=t.ref;return _u(t,i),r=jw(e,t,n,r,o,i),n=Vw(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(St&&n&&Aw(t),t.flags|=1,Yn(e,t,r,i),t.child)}function k5(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Qw(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,v9(e,t,o,r,i)):(e=lg(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:Hd,n(s,r)&&e.ref===t.ref)return Bo(e,t,i)}return t.flags|=1,e=ks(o,r),e.ref=t.ref,e.return=t,t.child=e}function v9(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Hd(o,r)&&e.ref===t.ref)if(dr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(dr=!0);else return t.lanes=e.lanes,Bo(e,t,i)}return r_(e,t,n,r,i)}function b9(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},lt(cu,Cr),Cr|=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,lt(cu,Cr),Cr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lt(cu,Cr),Cr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lt(cu,Cr),Cr|=r;return Yn(e,t,i,n),t.child}function S9(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function r_(e,t,n,r,i){var o=gr(n)?Ha:Bn.current;return o=ju(t,o),_u(t,i),n=jw(e,t,n,r,o,i),r=Vw(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(St&&r&&Aw(t),t.flags|=1,Yn(e,t,n,i),t.child)}function R5(e,t,n,r,i){if(gr(n)){var o=!0;Ug(t)}else o=!1;if(_u(t,i),t.stateNode===null)og(e,t),WA(t,n,r),t_(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=Yr(u):(u=gr(n)?Ha:Bn.current,u=ju(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)&&_5(t,s,r,u),us=!1;var f=t.memoizedState;s.state=f,Kg(t,r,s,i),l=t.memoizedState,a!==r||f!==l||pr.current||us?(typeof c=="function"&&(e_(t,n,c,r),l=t.memoizedState),(a=us||S5(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.
2023-07-28 22:21:05 +00:00
*/var qu=k;function kj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rj=typeof Object.is=="function"?Object.is:kj,Oj=qu.useState,Mj=qu.useEffect,Ij=qu.useLayoutEffect,Nj=qu.useDebugValue;function Dj(e,t){var n=t(),r=Oj({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Ij(function(){i.value=n,i.getSnapshot=t,ob(i)&&o({inst:i})},[e,n,t]),Mj(function(){return ob(i)&&o({inst:i}),e(function(){ob(i)&&o({inst:i})})},[e]),Nj(n),n}function ob(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rj(e,n)}catch{return!0}}function Lj(e,t){return t()}var $j=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lj:Dj;q9.useSyncExternalStore=qu.useSyncExternalStore!==void 0?qu.useSyncExternalStore:$j;H9.exports=q9;var Fj=H9.exports,W9={exports:{}},K9={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2023-07-27 04:37:23 +00:00
*/var Ly=k,Bj=Fj;function jj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vj=typeof Object.is=="function"?Object.is:jj,zj=Bj.useSyncExternalStore,Uj=Ly.useRef,Gj=Ly.useEffect,Hj=Ly.useMemo,qj=Ly.useDebugValue;K9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Uj(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Hj(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,Vj(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=zj(e,o[0],o[1]);return Gj(function(){s.hasValue=!0,s.value=a},[a]),qj(a),a};W9.exports=K9;var X9=W9.exports;const Wj=al(X9);function Kj(e){e()}let Y9=Kj;const Xj=e=>Y9=e,Yj=()=>Y9,H5=Symbol.for(`react-redux-context-${k.version}`),q5=globalThis;function Qj(){let e=q5[H5];return e||(e=k.createContext(null),q5[H5]=e),e}const Fs=new Proxy({},new Proxy({},{get(e,t){const n=Qj();return(r,...i)=>Reflect[t](n,...i)}}));function nx(e=Fs){return function(){return k.useContext(e)}}const Q9=nx(),Zj=()=>{throw new Error("uSES not initialized!")};let Z9=Zj;const Jj=e=>{Z9=e},eV=(e,t)=>e===t;function tV(e=Fs){const t=e===Fs?Q9:nx(e);return function(r,i={}){const{equalityFn:o=eV,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();k.useRef(!0);const h=k.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=Z9(u.addNestedSub,l.getState,c||l.getState,h,o);return k.useDebugValue(p),p}}const J9=tV();function rm(){return rm=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},rm.apply(this,arguments)}var ek={exports:{}},Qe={};/** @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.
2023-07-27 04:37:23 +00:00
*/var yn=typeof Symbol=="function"&&Symbol.for,rx=yn?Symbol.for("react.element"):60103,ix=yn?Symbol.for("react.portal"):60106,$y=yn?Symbol.for("react.fragment"):60107,Fy=yn?Symbol.for("react.strict_mode"):60108,By=yn?Symbol.for("react.profiler"):60114,jy=yn?Symbol.for("react.provider"):60109,Vy=yn?Symbol.for("react.context"):60110,ox=yn?Symbol.for("react.async_mode"):60111,zy=yn?Symbol.for("react.concurrent_mode"):60111,Uy=yn?Symbol.for("react.forward_ref"):60112,Gy=yn?Symbol.for("react.suspense"):60113,nV=yn?Symbol.for("react.suspense_list"):60120,Hy=yn?Symbol.for("react.memo"):60115,qy=yn?Symbol.for("react.lazy"):60116,rV=yn?Symbol.for("react.block"):60121,iV=yn?Symbol.for("react.fundamental"):60117,oV=yn?Symbol.for("react.responder"):60118,sV=yn?Symbol.for("react.scope"):60119;function Dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rx:switch(e=e.type,e){case ox:case zy:case $y:case By:case Fy:case Gy:return e;default:switch(e=e&&e.$$typeof,e){case Vy:case Uy:case qy:case Hy:case jy:return e;default:return t}}case ix:return t}}}function tk(e){return Dr(e)===zy}Qe.AsyncMode=ox;Qe.ConcurrentMode=zy;Qe.ContextConsumer=Vy;Qe.ContextProvider=jy;Qe.Element=rx;Qe.ForwardRef=Uy;Qe.Fragment=$y;Qe.Lazy=qy;Qe.Memo=Hy;Qe.Portal=ix;Qe.Profiler=By;Qe.StrictMode=Fy;Qe.Suspense=Gy;Qe.isAsyncMode=function(e){return tk(e)||Dr(e)===ox};Qe.isConcurrentMode=tk;Qe.isContextConsumer=function(e){return Dr(e)===Vy};Qe.isContextProvider=function(e){return Dr(e)===jy};Qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rx};Qe.isForwardRef=function(e){return Dr(e)===Uy};Qe.isFragment=function(e){return Dr(e)===$y};Qe.isLazy=function(e){return Dr(e)===qy};Qe.isMemo=function(e){return Dr(e)===Hy};Qe.isPortal=function(e){return Dr(e)===ix};Qe.isProfiler=function(e){return Dr(e)===By};Qe.isStrictMode=function(e){return Dr(e)===Fy};Qe.isSuspense=function(e){return Dr(e)===Gy};Qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$y||e===zy||e===By||e===Fy||e===Gy||e===nV||typeof e=="object"&&e!==null&&(e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===jy||e.$$typeof===Vy||e.$$typeof===Uy||e.$$typeof===iV||e.$$typeof===oV||e.$$typeof===sV||e.$$typeof===rV)};Qe.typeOf=Dr;ek.exports=Qe;var aV=ek.exports,nk=aV,lV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rk={};rk[nk.ForwardRef]=lV;rk[nk.Memo]=uV;var et={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2023-07-28 22:21:05 +00:00
*/var sx=Symbol.for("react.element"),ax=Symbol.for("react.portal"),Wy=Symbol.for("react.fragment"),Ky=Symbol.for("react.strict_mode"),Xy=Symbol.for("react.profiler"),Yy=Symbol.for("react.provider"),Qy=Symbol.for("react.context"),cV=Symbol.for("react.server_context"),Zy=Symbol.for("react.forward_ref"),Jy=Symbol.for("react.suspense"),e0=Symbol.for("react.suspense_list"),t0=Symbol.for("react.memo"),n0=Symbol.for("react.lazy"),dV=Symbol.for("react.offscreen"),ik;ik=Symbol.for("react.module.reference");function Jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sx:switch(e=e.type,e){case Wy:case Xy:case Ky:case Jy:case e0:return e;default:switch(e=e&&e.$$typeof,e){case cV:case Qy:case Zy:case n0:case t0:case Yy:return e;default:return t}}case ax:return t}}}et.ContextConsumer=Qy;et.ContextProvider=Yy;et.Element=sx;et.ForwardRef=Zy;et.Fragment=Wy;et.Lazy=n0;et.Memo=t0;et.Portal=ax;et.Profiler=Xy;et.StrictMode=Ky;et.Suspense=Jy;et.SuspenseList=e0;et.isAsyncMode=function(){return!1};et.isConcurrentMode=function(){return!1};et.isContextConsumer=function(e){return Jr(e)===Qy};et.isContextProvider=function(e){return Jr(e)===Yy};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sx};et.isForwardRef=function(e){return Jr(e)===Zy};et.isFragment=function(e){return Jr(e)===Wy};et.isLazy=function(e){return Jr(e)===n0};et.isMemo=function(e){return Jr(e)===t0};et.isPortal=function(e){return Jr(e)===ax};et.isProfiler=function(e){return Jr(e)===Xy};et.isStrictMode=function(e){return Jr(e)===Ky};et.isSuspense=function(e){return Jr(e)===Jy};et.isSuspenseList=function(e){return Jr(e)===e0};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wy||e===Xy||e===Ky||e===Jy||e===e0||e===dV||typeof e=="object"&&e!==null&&(e.$$typeof===n0||e.$$typeof===t0||e.$$typeof===Yy||e.$$typeof===Qy||e.$$typeof===Zy||e.$$typeof===ik||e.getModuleId!==void 0)};et.typeOf=Jr;function fV(){const e=Yj();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 W5={notify(){},get:()=>[]};function hV(e,t){let n,r=W5;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=fV())}function u(){n&&(n(),n=void 0,r.clear(),r=W5)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const pV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gV=pV?k.useLayoutEffect:k.useEffect;function K5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function im(e,t){if(K5(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])||!K5(e[n[i]],t[n[i]]))return!1;return!0}function mV({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=k.useMemo(()=>{const u=hV(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=k.useMemo(()=>e.getState(),[e]);gV(()=>{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||Fs;return Xe.createElement(l.Provider,{value:s},n)}function ok(e=Fs){const t=e===Fs?Q9:nx(e);return function(){const{store:r}=t();return r}}const sk=ok();function yV(e=Fs){const t=e===Fs?sk:ok(e);return function(){return t().dispatch}}const ak=yV();Jj(X9.useSyncExternalStoreWithSelector);Xj(zi.unstable_batchedUpdates);function pn(e){for(var t=arguments.length,n
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-07-28 22:21:05 +00:00
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var b=function(_){return Array.from(_.values()).flatMap(function(w){return w?Object.values(w):[]})};return Cm(Cm([],b(s)),b(a)).filter(yb)}function p(b,_){return function(w){var x,T=o.endpointDefinitions[b],P=t({queryArgs:_,endpointDefinition:T,endpointName:b});return(x=s.get(w))==null?void 0:x[P]}}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(yb)}}function v(){return function(b){return Object.values(a.get(b)||{}).filter(yb)}}function y(b,_){var w=function(x,T){var P=T===void 0?{}:T,E=P.subscribe,A=E===void 0?!0:E,$=P.forceRefetch,I=P.subscriptionOptions,C=Ef,R=P[C];return function(M,N){var O,D,L=t({queryArgs:x,endpointDefinition:_,endpointName:b}),j=n((O={type:"query",subscribe:A,forceRefetch:$,subscriptionOptions:I,endpointName:b,originalArgs:x,queryCacheKey:L},O[Ef]=R,O)),U=i.endpoints[b].select(x),G=M(j),W=U(N()),X=G.requestId,Y=G.abort,B=W.requestId!==X,H=(D=s.get(M))==null?void 0:D[L],Q=function(){return U(N())},J=Object.assign(R?G.then(Q):B&&!H?Promise.resolve(W):Promise.all([H,G]).then(Q),{arg:x,requestId:X,subscriptionOptions:I,queryCacheKey:L,abort:Y,unwrap:function(){return Em(this,null,function(){var te;return xm(this,function(xe){switch(xe.label){case 0:return[4,J];case 1:if(te=xe.sent(),te.isError)throw te.error;return[2,te.data]}})})},refetch:function(){return M(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){A&&M(u({queryCacheKey:L,requestId:X}))},updateSubscriptionOptions:function(te){J.subscriptionOptions=te,M(d({endpointName:b,requestId:X,queryCacheKey:L,options:te}))}});if(!H&&!B&&!R){var ne=s.get(M)||{};ne[L]=J,s.set(M,ne),J.then(function(){delete ne[L],Object.keys(ne).length||s.delete(M)})}return J}};return w}function g(b){return function(_,w){var x=w===void 0?{}:w,T=x.track,P=T===void 0?!0:T,E=x.fixedCacheKey;return function(A,$){var I=r({type:"mutation",endpointName:b,originalArgs:_,track:P,fixedCacheKey:E}),C=A(I),R=C.requestId,M=C.abort,N=C.unwrap,O=C.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),D=function(){A(c({requestId:R,fixedCacheKey:E}))},L=Object.assign(O,{arg:C.arg,requestId:R,abort:M,unwrap:N,unsubscribe:D,reset:D}),j=a.get(A)||{};return a.set(A,j),j[R]=L,L.then(function(){delete j[R],Object.keys(j).length||a.delete(A)}),E&&(j[E]=L,L.then(function(){j[E]===L&&(delete j[E],Object.keys(j).length||a.delete(A))})),L}}}}function aT(e){return e}function yZ(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 T,P,E=s.endpoints[g].select(b)(x()),A={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,b,A.inversePatches))}};if(E.status===vt.uninitialized)return A;if("data"in E)if(yr(E.data)){var $=gx(E.data,_),I=$[1],C=$[2];(T=A.patches).push.apply(T,I),(P=A.inversePatches).push.apply(P,C)}else{var R=_(E.data);A.patches.push({op:"replace",path:[],value:R}),A.inversePatches.push({op:"replace",path:[],value:E.data})}return w(s.util.patchQueryData(g,b,A.patches)),A}},u=function(g,b,_){return function(w){var x;return w(s.endpoints[g].initiate(b,(x={subscribe:!1,forceRefetch:!0},x[Ef]=function(){return{data:_}},x)))}},c=function(g,b){return Em(t,[g,b],function(_,w){var x,T,P,E,A,$,I,C,R,M,N,O,D,L,j,U,G,W,X=w.signal,Y=w.abort,B=w.rejectWithValue,H=w.fulfillWithValue,Q=w.dispatch,J=w.getState,ne=w.extra;return xm(this,function(te){switch(te.label){case 0:x=i[_.endpointName],te.label=1;case 1:return te.trys.push([1,8,,13]),T=aT,P=void 0,E={signal:X,abort:Y,dispatch:Q,getState:J,extra:ne,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?d(_,J()):void 0},A=_.type==="query"?_[Ef]:void 0,A?(P=A(),[3,6]):[3,2];case 2:return x
`&&(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(`
2023-07-28 22:21:05 +00:00
`)},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}})})(gI);var Zoe=gI.exports,rl={},mI={},na={};na.__esModule=void 0;na.__esModule=!0;var Joe=typeof Object.setPrototypeOf=="function",ese=typeof Object.getPrototypeOf=="function",tse=typeof Object.defineProperty=="function",nse=typeof Object.create=="function",rse=typeof Object.prototype.hasOwnProperty=="function",ise=function(t,n){Joe?Object.setPrototypeOf(t,n):t.__proto__=n};na.setPrototypeOf=ise;var ose=function(t){return ese?Object.getPrototypeOf(t):t.__proto__||t.prototype};na.getPrototypeOf=ose;var yE=!1,sse=function e(t,n,r){if(tse&&!yE)try{Object.defineProperty(t,n,r)}catch{yE=!0,e(t,n,r)}else t[n]=r.value};na.defineProperty=sse;var yI=function(t,n){return rse?t.hasOwnProperty(t,n):t[n]===void 0};na.hasOwnProperty=yI;var ase=function(t,n){if(nse)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)yI(n,o)&&(i[o]=n[o].value);return i};na.objectCreate=ase;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=na,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})(mI);var vI=Ee&&Ee.__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(
${O}`,j=`,
${O}`);const H=Math.min(D.length,x);let Q=0;for(;Q<H-1;Q++){const ne=T(String(Q),D,R,M,N,O);L+=ne!==void 0?ne:"null",L+=j}const J=T(String(Q),D,R,M,N,O);if(L+=J!==void 0?J:"null",D.length-1>x){const ne=D.length-x-1;L+=`${j}"... ${h(ne)} not stringified"`}return N!==""&&(L+=`
${U}`),R.pop(),`[${L}]`}let G=Object.keys(D);const W=G.length;if(W===0)return"{}";if(w<R.length+1)return'"[Object]"';let X="",Y="";N!==""&&(O+=N,j=`,
${O}`,X=" ");const B=Math.min(W,x);_&&!l(D)&&(G=s(G)),R.push(D);for(let H=0;H<B;H++){const Q=G[H],J=T(Q,D,R,M,N,O);J!==void 0&&(L+=`${Y}${o(Q)}:${X}${J}`,Y=j)}if(W>x){const H=W-x;L+=`${Y}"...":${X}"${h(H)} not stringified"`,Y=j}return N!==""&&Y.length>1&&(L=`
${O}${L}
${U}`),R.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 P(I,C,R,M,N,O){switch(typeof C=="object"&&C!==null&&typeof C.toJSON=="function"&&(C=C.toJSON(I)),typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(R.indexOf(C)!==-1)return g;const D=O;let L="",j=",";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<R.length+1)return'"[Array]"';R.push(C),N!==""&&(O+=N,L+=`
${O}`,j=`,
${O}`);const W=Math.min(C.length,x);let X=0;for(;X<W-1;X++){const B=P(String(X),C[X],R,M,N,O);L+=B!==void 0?B:"null",L+=j}const Y=P(String(X),C[X],R,M,N,O);if(L+=Y!==void 0?Y:"null",C.length-1>x){const B=C.length-x-1;L+=`${j}"... ${h(B)} not stringified"`}return N!==""&&(L+=`
${D}`),R.pop(),`[${L}]`}R.push(C);let U="";N!==""&&(O+=N,j=`,
${O}`,U=" ");let G="";for(const W of M){const X=P(W,C[W],R,M,N,O);X!==void 0&&(L+=`${G}${o(W)}:${U}${X}`,G=j)}return N!==""&&G.length>1&&(L=`
${O}${L}
${D}`),R.pop(),`{${L}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return y?y(C):void 0}}function E(I,C,R,M,N){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(I),typeof C!="object")return E(I,C,R,M,N);if(C===null)return"null"}if(R.indexOf(C)!==-1)return g;const O=N;if(Array.isArray(C)){if(C.length===0)return"[]";if(w<R.length+1)return'"[Array]"';R.push(C),N+=M;let X=`
${N}`;const Y=`,
2023-07-28 22:21:05 +00:00
${N}`,B=Math.min(C.length,x);let H=0;for(;H<B-1;H++){const J=E(String(H),C[H],R,M,N);X+=J!==void 0?J:"null",X+=Y}const Q=E(String(H),C[H],R,M,N);if(X+=Q!==void 0?Q:"null",C.length-1>x){const J=C.length-x-1;X+=`${Y}"... ${h(J)} not stringified"`}return X+=`
${O}`,R.pop(),`[${X}]`}let D=Object.keys(C);const L=D.length;if(L===0)return"{}";if(w<R.length+1)return'"[Object]"';N+=M;const j=`,
${N}`;let U="",G="",W=Math.min(L,x);l(C)&&(U+=u(C,j,x),D=D.slice(C.length),W-=C.length,G=j),_&&(D=s(D)),R.push(C);for(let X=0;X<W;X++){const Y=D[X],B=E(Y,C[Y],R,M,N);B!==void 0&&(U+=`${G}${o(Y)}: ${B}`,G=j)}if(L>x){const X=L-x;U+=`${G}"...": "${h(X)} not stringified"`,G=j}return G!==""&&(U=`
${N}${U}
2023-07-28 22:21:05 +00:00
${O}`),R.pop(),`{${U}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return y?y(C):void 0}}function A(I,C,R){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(I),typeof C!="object")return A(I,C,R);if(C===null)return"null"}if(R.indexOf(C)!==-1)return g;let M="";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<R.length+1)return'"[Array]"';R.push(C);const j=Math.min(C.length,x);let U=0;for(;U<j-1;U++){const W=A(String(U),C[U],R);M+=W!==void 0?W:"null",M+=","}const G=A(String(U),C[U],R);if(M+=G!==void 0?G:"null",C.length-1>x){const W=C.length-x-1;M+=`,"... ${h(W)} not stringified"`}return R.pop(),`[${M}]`}let N=Object.keys(C);const O=N.length;if(O===0)return"{}";if(w<R.length+1)return'"[Object]"';let D="",L=Math.min(O,x);l(C)&&(M+=u(C,",",x),N=N.slice(C.length),L-=C.length,D=","),_&&(N=s(N)),R.push(C);for(let j=0;j<L;j++){const U=N[j],G=A(U,C[U],R);G!==void 0&&(M+=`${D}${o(U)}:${G}`,D=",")}if(O>x){const j=O-x;M+=`${D}"...":"${h(j)} not stringified"`}return R.pop(),`{${M}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return y?y(C):void 0}}function $(I,C,R){if(arguments.length>1){let M="";if(typeof R=="number"?M=" ".repeat(Math.min(R,10)):typeof R=="string"&&(M=R.slice(0,10)),C!=null){if(typeof C=="function")return T("",{"":I},[],C,M,"");if(Array.isArray(C))return P("",I,[],p(C),M,"")}if(M.length!==0)return E("",I,[],M,"")}return A("",I,[])}return $}})(l2,l2.exports);var Rse=l2.exports;(function(e){var t=Ee&&Ee.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=il,r=Eh,i=TI,o=EI,s=t(lC),a=t(Rse);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,T,P,E,A,$,I,C)=>{g.child({logLevel:b})(_,w,x,T,P,E,A,$,I,C)},S=1e3,v=(g,b)=>(_,w,x,T,P,E,A,$,I,C)=>{const R=(0,a.default)({a:_,b:w,c:x,d:T,e:P,f:E,g:A,h:$,i:I,j:C,logLevel:b});if(!R)throw new Error("Expected key to be a string");const M=c().onceLog;M.has(R)||(M.add(R),M.size>S&&M.clear(),g.child({logLevel:b})(_,w,x,T,P,E,A,$,I,C))},y=(g,b={},_=[])=>{const w=(x,T,P,E,A,$,I,C,R,M)=>{const N=Date.now(),O=p();let D;h()?D=f():D=d();let L,j;if(typeof x=="string"?L={...D.messageContext,...b}:L={...D.messageContext,...b,...x},typeof x=="string"&&T===void 0)j=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.");j=(0,o.printf)(x,T,P,E,A,$,I,C,R,M)}else{let G=T;if(typeof T!="string")if(T===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof T+".");j=(0,o.printf)(G,P,E,A,$,I,C,R,M)}let U={context:L,message:j,sequence:O,time:N,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...D.transforms,..._])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let T;return h()?T=f():T=d(),typeof x=="function"?(0,e.createLogger)(g,{...T.messageContext,...b,...x},[x,..._]):(0,e.createLogger)(g,{...T.messageContext,...b,...x},_)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...b}},w.adopt=async(x,T)=>{if(!h())return l===!1&&(l=!
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),S=`
color: `.concat(zse[f].color,`;
`),v=`
color: inherit;
2023-07-28 22:21:05 +00:00
`;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)}}};I0.createLogWriter=Gse;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=I0;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(nI);Th.ROARR.write=nI.createLogWriter();const AI={};Th.Roarr.child(AI);const Z0=T0(Th.Roarr.child(AI)),fe=e=>Z0.get().child({namespace:e}),j3e=["trace","debug","info","warn","error","fatal"],V3e={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};function Hse(){const e=[];return function(t,n){if(typeof n!="object"||n===null)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}}const Df=Vs("nodes/receivedOpenAPISchema",async(e,{dispatch:t,rejectWithValue:n})=>{const r=fe("system");try{const o=await(await fetch("openapi.json")).json();return r.info({openAPISchema:o},"Received OpenAPI schema"),JSON.parse(JSON.stringify(o,Hse()))}catch(i){return n({error:i})}}),kI={nodes:[],edges:[],schema:null,invocationTemplates:{},connectionStartParams:null,shouldShowGraphOverlay:!1,shouldShowFieldTypeLegend:!1,shouldShowMinimapPanel:!0,editorInstance:void 0,progressNodeSize:{width:512,height:512}},RI=Pt({name:"nodes",initialState:kI,reducers:{nodesChanged:(e,t)=>{e.nodes=qM(t.payload,e.nodes)},nodeAdded:(e,t)=>{e.nodes.push(t.payload)},edgesChanged:(e,t)=>{e.edges=nie(t.payload,e.edges)},connectionStarted:(e,t)=>{e.connectionStartParams=t.payload},connectionMade:(e,t)=>{e.edges=bM(t.payload,e.edges)},connectionEnded:e=>{e.connectionStartParams=null},fieldValueChanged:(e,t)=>{const{nodeId:n,fieldName:r,value:i}=t.payload,o=e.nodes.findIndex(s=>s.id===n);o>-1&&(e.nodes[o].data.inputs[r].value=i)},imageCollectionFieldValueChanged:(e,t)=>{const{nodeId:n,fieldName:r,value:i}=t.payload,o=e.nodes.findIndex(a=>a.id===n);if(o===-1)return;const s=Ln(e.nodes[o].data.inputs[r].value);if(!s){e.nodes[o].data.inputs[r].value=i;return}e.nodes[o].data.inputs[r].value=nY(s.concat(i),"image_name")},shouldShowGraphOverlayChanged:(e,t)=>{e.shouldShowGraphOverlay=t.payload},shouldShowFieldTypeLegendChanged:(e,t)=>{e.shouldShowFieldTypeLegend=t.payload},shouldShowMinimapPanelChanged:(e,t)=>{e.shouldShowMinimapPanel=t.payload},nodeTemplatesBuilt:(e,t)=>{e.invocationTemplates=t.payload},nodeEditorReset:e=>{e.nodes=[],e.edges=[]},setEditorInstance:(e,t)=>{e.editorInstance=t.payload},loadFileNodes:(e,t)=>{e.nodes=t.payload},loadFileEdges:(e,t)=>{e.edges=t.payload},setProgressNodeSize:(e,t)=>{e.progressNodeSize=t.payload}},extraReducers:e=>{e.addCase(Df.fulfilled,(t,n)=>{t.schema=n.payload})}}),{nodesChanged:z3e,edgesChanged:U3e,nodeAdded:G3e,fieldValueChanged:u2,connectionMade:H3e,connectionStarted:q3e,connectionEnded:W3e,shouldShowGraphOverlayChanged:K3e,shouldShowFieldTypeLegendChanged:X3e,shouldShowMinimapPanelChanged:Y3e,nodeTemplatesBuilt:dC,nodeEditorReset:OI,imageCollectionFieldValueChanged:Q3e,setEditorInstance:Z3e,loadFileNodes:J3e,loadFileEdges:e5e,setProgressNodeSize:t5e}=RI.actions,qse=RI.reducer,MI={esrganModelName:"RealESRGAN_x4plus.pth"},II=Pt({name:"postprocessing",initialState:MI,reducers:{esrganModelNameChanged:(e,t)=>{e.esrganModelName=t.payload}}}),{esrganModelNameChanged:n5e}=II.actions,Wse=II.reducer,Kse={positiveStylePrompt:"",negativeStylePrompt:"",shouldConcatSDXLStylePrompt:!0,shouldUseSDXLRefiner:!1,sdxlImg2ImgDenoisingStrength:.7,refinerModel:null,refinerSteps:20,refinerCFGScale:7.5,refinerScheduler:"euler",refinerAestheticScore:6,refinerStart:.7},NI=Pt({name:"sdxl",initialState:Kse,reducers:{setPositiveStylePromptSDXL:(e,t)=>{e.positiveStylePrompt=t.payload},setNegativeStylePromptSDXL:(e,t)=>{e.negativeStylePrompt=t.payload},setShouldConcatSDXLStylePrompt:(e,t)=>{e.shouldConcatSDXLStylePrompt=t.payload},setShouldUseSDXLRefiner:(e,t)=>{e.shouldUseSDXLRefiner=t.payload},setSDXLImg2ImgDenoisingStrength:(e,t)=>{e.sdxlImg2ImgDenoisingStrength=t.pa
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fae(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 Bae(e){if(Array.isArray(e))return e}function Bb(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=GI(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 GI(e,t){if(e){if(typeof e=="string")return IE(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 IE(e,t)}}function IE(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 Wm(e){"@babel/helpers - typeof";return Wm=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},Wm(e)}var NE=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},DE=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},jae=function e(t,n){if(t===n)return!0;if(Wm(t)!=="object"||Wm(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(DE(t)&&DE(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=NE(t),s=NE(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=Bb(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=Fb(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(T){a.e(T)}finally{a.f()}var d=Bb(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=Fb(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(T){d.e(T)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var S=Bb(t.entries()),v;try{for(S.s();!(v=S.n()).done;){var y=Fb(v.value,1),g=y[0];if(!n.has(g))return!1}}catch(T){S.e(T)}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 pC=jae;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 HI(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 Vae=function(){var e=HI(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!pC(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),zae=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return pC(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},Uae=function(){var e=HI(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?Vae:zae;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 $E(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)}
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==Hl&&o!==void 0,l=s!==Hl&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==f6,m=h!==lfe&&p,S=this.ellipsis();this.textArr=[],Xb().font=this._getContextFont();for(var v=S?this._getTextWidth(Kb):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,T="",P=0;w<x;){var E=w+x>>>1,A=b.slice(0,E+1),$=this._getTextWidth(A)+v;$<=c?(w=E+1,T=A,P=$):x=E}if(T){if(m){var I,C=b[T.length],R=C===$p||C===c6;R&&P<=c?I=T.length:I=Math.max(T.lastIndexOf($p),T.lastIndexOf(c6))+1,I>0&&(w=I,T=T.slice(0,w),P=this._getTextWidth(T))}T=T.trimRight(),this._addTextLine(T),r=Math.max(r,P),f+=i;var M=this._shouldHandleEllipsis(f);if(M){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!==Hl&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==f6;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Hl&&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+Kb)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Kb)}}getStrokeScaleEnabled(){return!0}}ol.Text=Ut;Ut.prototype._fillFunc=dfe;Ut.prototype._strokeFunc=ffe;Ut.prototype.className=nfe;Ut.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,Qde._registerNode)(Ut);ir.Factory.overWriteSetter(Ut,"width",(0,aa.getNumberOrAutoValidator)());ir.Factory.overWriteSetter(Ut,"height",(0,aa.getNumberOrAutoValidator)());ir.Factory.addGetterSetter(Ut,"fontFamily","Arial");ir.Factory.addGetterSetter(Ut,"fontSize",12,(0,aa.getNumberValidator)());ir.Factory.addGetterSetter(Ut,"fontStyle",AN);ir.Factory.addGetterSetter(Ut,"fontVariant",AN);ir.Factory.addGetterSetter(Ut,"padding",0,(0,aa.getNumberValidator)());ir.Factory.addGetterSetter(Ut,"align",PN);ir.Factory.addGetterSetter(Ut,"verticalAlign",rfe);ir.Factory.addGetterSetter(Ut,"lineHeight",1,(0,aa.getNumberValidator)());ir.Factory.addGetterSetter(Ut,"wrap",afe);ir.Factory.addGetterSetter(Ut,"ellipsis",!1,(0,aa.getBooleanValidator)());ir.Factory.addGetterSetter(Ut,"letterSpacing",0,(0,aa.getNumberValidator)());ir.Factory.addGetterSetter(Ut,"text","",(0,aa.getStringValidator)());ir.Factory.addGetterSetter(Ut,"textDecoration","");var xv={};Object.defineProperty(xv,"__esModule",{value:!0});xv.TextPath=void 0;const Yb=Ot,Ai=Te,pfe=sn,ed=_c,Qb=ol,RN=de,gfe=Pe;var mfe="",ON="normal";function MN(e){e.fillText(this.partialText,0,0)}function IN(e){e.strokeText(this.partialText,0,0)}class an extends pfe.Shape{constructor(t){super(t),this.dummyCanvas=Yb.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 ed.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:ed.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ed.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
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${s}px !important;
top: ${a}px !important;
left: ${l}px !important;
}
2023-07-28 22:21:05 +00:00
`),()=>{document.head.removeChild(u)}},[t]),k.createElement(Bbe,{isPresent:t,childRef:r,sizeRef:i},k.cloneElement(e,{ref:r}))}const gS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=ID(Vbe),l=k.useId(),u=k.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 k.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),k.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=k.createElement(jbe,{isPresent:n},e)),k.createElement(Lh.Provider,{value:u},e)};function Vbe(){return new Map}function zbe(e){return k.useEffect(()=>()=>e(),[])}const Ql=e=>e.key||"";function Ube(e,t){e.forEach(n=>{const r=Ql(n);t.set(r,n)})}function Gbe(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Hbe=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=k.useContext(HC).forceRender||Fbe()[0],l=LL(),u=Gbe(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(iy(()=>{p.current=!1,Ube(u,h),f.current=c}),zbe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return k.createElement(k.Fragment,null,c.map(y=>k.createElement(gS,{key:Ql(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(Ql),S=u.map(Ql),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 T=f.current.findIndex(P=>P.key===g);if(f.current.splice(T,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=k.createElement(gS,{key:Ql(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:k.createElement(gS,{key:Ql(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),k.createElement(k.Fragment,null,d.size?c:c.map(y=>k.cloneElement(y)))};var qbe=Mge({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),$L=Tl((e,t)=>{const n=mD("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=fD(e),u=oD("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${qbe} ${o} linear infinite`,...n};return K.jsx(sl.div,{ref:t,__css:c,className:u,...l,children:r&&K.jsx(sl.span,{srOnly:!0,children:r})})});$L.displayName="Spinner";var W2=Tl(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return K.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});W2.displayName="NativeImage";function Wbe(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=k.useState("pending");k.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=k.useRef(),f=k.useCallback(()=>{if(!n)return;h();const p=new Image;p.src=n,s&&(p.crossOrigin=s),r&&(p.srcset=r),a&&(p.sizes=a),t&&(p.loading=t),p.onload=m=>{h(),c("loaded"),i==null||i(m)},p.onerror=m=>{h(),c("failed"),o==null||o(m)},d.current=p},[n,s,r,a,i,o,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ige(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var Kbe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function Xbe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var u3=Tl(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...p}=t,m=r!==void 0||i!==void 0,S=u!=null||c||!m,v=Wbe({...t,crossOrigin:d,ignoreFallback:S}),y=Kbe(v,f),g={ref:n,objectFit:l,objectPosition:a,...S?p:Xbe(p,["
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
2023-07-28 22:21:05 +00:00
`},k_e={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 R_e(e){let{announcements:t=k_e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=A_e}=e;const{announce:o,announcement:s}=T_e(),a=c1("DndLiveRegion"),[l,u]=k.useState(!1);if(k.useEffect(()=>{u(!0)},[]),E_e(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=Xe.createElement(Xe.Fragment,null,Xe.createElement(w_e,{id:r,value:i.draggable}),Xe.createElement(C_e,{id:a,announcement:s}));return n?zi.createPortal(c,n):c}var nn;(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"})(nn||(nn={}));function vy(){}function v8(e,t){return k.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function O_e(){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 Ei=Object.freeze({x:0,y:0});function M_e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function I_e(e,t){const n=Yf(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 N_e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function D_e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function L_e(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 $_e(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function F_e(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 B_e=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=F_e(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(D_e)};function j_e(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 V_e=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&&j_e(r,a)){const u=L_e(a).reduce((d,f)=>d+M_e(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(N_e)};function z_e(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function l$(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ei}function U_e(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 G_e=U_e(1);function u$(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 H_e(e,t,n){const r=u$(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat