mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
613 lines
1.5 MiB
JavaScript
613 lines
1.5 MiB
JavaScript
|
var dX=Object.defineProperty;var fX=(e,t,n)=>t in e?dX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kt=(e,t,n)=>(fX(e,typeof t!="symbol"?t+"":t,n),n);function VXe(){import.meta.url,import("_").catch(()=>1);async function*e(){}}function CD(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rg={},hX={get exports(){return rg},set exports(e){rg=e}},xb={},S={},pX={get exports(){return S},set exports(e){S=e}},xt={};/**
|
||
|
* @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 e1=Symbol.for("react.element"),mX=Symbol.for("react.portal"),gX=Symbol.for("react.fragment"),vX=Symbol.for("react.strict_mode"),yX=Symbol.for("react.profiler"),bX=Symbol.for("react.provider"),SX=Symbol.for("react.context"),wX=Symbol.for("react.forward_ref"),CX=Symbol.for("react.suspense"),xX=Symbol.for("react.memo"),_X=Symbol.for("react.lazy"),MP=Symbol.iterator;function kX(e){return e===null||typeof e!="object"?null:(e=MP&&e[MP]||e["@@iterator"],typeof e=="function"?e:null)}var xD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_D=Object.assign,kD={};function Ph(e,t,n){this.props=e,this.context=t,this.refs=kD,this.updater=n||xD}Ph.prototype.isReactComponent={};Ph.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")};Ph.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ED(){}ED.prototype=Ph.prototype;function I7(e,t,n){this.props=e,this.context=t,this.refs=kD,this.updater=n||xD}var R7=I7.prototype=new ED;R7.constructor=I7;_D(R7,Ph.prototype);R7.isPureReactComponent=!0;var IP=Array.isArray,PD=Object.prototype.hasOwnProperty,$7={current:null},TD={key:!0,ref:!0,__self:!0,__source:!0};function LD(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)PD.call(t,r)&&!TD.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:e1,type:e,key:o,ref:a,props:i,_owner:$7.current}}function EX(e,t){return{$$typeof:e1,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function D7(e){return typeof e=="object"&&e!==null&&e.$$typeof===e1}function PX(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var RP=/\/+/g;function tS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PX(""+e.key):t.toString(36)}function i2(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case e1:case mX:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+tS(a,0):r,IP(i)?(n="",e!=null&&(n=e.replace(RP,"$&/")+"/"),i2(i,t,n,"",function(u){return u})):i!=null&&(D7(i)&&(i=EX(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(RP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",IP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+tS(o,s);a+=i2(o,t,n,l,i)}else if(l=kX(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+tS(o,s++),a+=i2(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function F0(e,t,n){if(e==null)return e;var r=[],i=0;return i2(e,r,"","",function(o){return t.call(n,o,i++)}),r}function TX(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 mi={current:null},o2={transition:null},LX={ReactCurrentDispatcher:mi,ReactCurrentBatchConfig:o2,ReactCurrentOwner:$7};xt.Children={map:F0,forEach:function(e,t,n){F0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F0(e,function(){t++}),t},toArray:function(e){return F0(e,function(t){return t})||[]},only:function(e){if(!D7(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xt.Component=Ph;xt.Fragment=gX;xt.Profiler=yX;xt
|
||
|
* @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 AX=S,OX=Symbol.for("react.element"),MX=Symbol.for("react.fragment"),IX=Object.prototype.hasOwnProperty,RX=AX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$X={key:!0,ref:!0,__self:!0,__source:!0};function AD(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)IX.call(t,r)&&!$X.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:OX,type:e,key:o,ref:a,props:i,_owner:RX.current}}xb.Fragment=MX;xb.jsx=AD;xb.jsxs=AD;(function(e){e.exports=xb})(hX);const gn=rg.Fragment,b=rg.jsx,j=rg.jsxs;var ea=Boolean(globalThis==null?void 0:globalThis.document)?S.useLayoutEffect:S.useEffect,N7=S.createContext({});N7.displayName="ColorModeContext";function t1(){const e=S.useContext(N7);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var z0={light:"chakra-ui-light",dark:"chakra-ui-dark"};function DX(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?z0.dark:z0.light),document.body.classList.remove(r?z0.light:z0.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var NX="chakra-ui-color-mode";function BX(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set(t){try{localStorage.setItem(e,t)}catch(n){}}}}var FX=BX(NX),$P=()=>{};function DP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function OD(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=FX}=e,s=i==="dark"?"dark":"light",[l,u]=S.useState(()=>DP(a,s)),[c,f]=S.useState(()=>DP(a)),{getSystemTheme:p,setClassName:m,setDataset:g,addListener:v}=S.useMemo(()=>DX({preventTransition:o}),[o]),x=i==="system"&&!l?c:l,C=S.useCallback(P=>{const L=P==="system"?p():P;u(L),m(L==="dark"),g(L),a.set(L)},[a,p,m,g]);ea(()=>{i==="system"&&f(p())},[]),S.useEffect(()=>{const P=a.get();if(P){C(P);return}if(i==="system"){C("system");return}C(s)},[a,s,i,C]);const w=S.useCallback(()=>{C(x==="dark"?"light":"dark")},[x,C]);S.useEffect(()=>{if(r)return v(C)},[r,v,C]);const k=S.useMemo(()=>({colorMode:t!=null?t:x,toggleColorMode:t?$P:w,setColorMode:t?$P:C,forced:t!==void 0}),[x,w,C,t]);return M.createElement(N7.Provider,{value:k},n)}OD.displayName="ColorModeProvider";var K2={},zX={get exports(){return K2},set exports(e){K2=e}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",x="[object Number]",C="[object Null]",w="[object Object]",k="[object Proxy]",P="[object RegExp]",L="[object Set]",A="[object String]",O="[object Undefined]",I="[object WeakMap]",$="[object ArrayBuffer]",D="[object DataView]",V="[object Float32Array]",Y="[object Float64Array]",z="[object Int8Array]",R="[object Int16Array]",N="[object Int32Array]",U="[object
|
||
|
* 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 kr=typeof Symbol=="function"&&Symbol.for,V7=kr?Symbol.for("react.element"):60103,U7=kr?Symbol.for("react.portal"):60106,Lb=kr?Symbol.for("react.fragment"):60107,Ab=kr?Symbol.for("react.strict_mode"):60108,Ob=kr?Symbol.for("react.profiler"):60114,Mb=kr?Symbol.for("react.provider"):60109,Ib=kr?Symbol.for("react.context"):60110,W7=kr?Symbol.for("react.async_mode"):60111,Rb=kr?Symbol.for("react.concurrent_mode"):60111,$b=kr?Symbol.for("react.forward_ref"):60112,Db=kr?Symbol.for("react.suspense"):60113,MQ=kr?Symbol.for("react.suspense_list"):60120,Nb=kr?Symbol.for("react.memo"):60115,Bb=kr?Symbol.for("react.lazy"):60116,IQ=kr?Symbol.for("react.block"):60121,RQ=kr?Symbol.for("react.fundamental"):60117,$Q=kr?Symbol.for("react.responder"):60118,DQ=kr?Symbol.for("react.scope"):60119;function Zi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case V7:switch(e=e.type,e){case W7:case Rb:case Lb:case Ob:case Ab:case Db:return e;default:switch(e=e&&e.$$typeof,e){case Ib:case $b:case Bb:case Nb:case Mb:return e;default:return t}}case U7:return t}}}function XD(e){return Zi(e)===Rb}Qt.AsyncMode=W7;Qt.ConcurrentMode=Rb;Qt.ContextConsumer=Ib;Qt.ContextProvider=Mb;Qt.Element=V7;Qt.ForwardRef=$b;Qt.Fragment=Lb;Qt.Lazy=Bb;Qt.Memo=Nb;Qt.Portal=U7;Qt.Profiler=Ob;Qt.StrictMode=Ab;Qt.Suspense=Db;Qt.isAsyncMode=function(e){return XD(e)||Zi(e)===W7};Qt.isConcurrentMode=XD;Qt.isContextConsumer=function(e){return Zi(e)===Ib};Qt.isContextProvider=function(e){return Zi(e)===Mb};Qt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===V7};Qt.isForwardRef=function(e){return Zi(e)===$b};Qt.isFragment=function(e){return Zi(e)===Lb};Qt.isLazy=function(e){return Zi(e)===Bb};Qt.isMemo=function(e){return Zi(e)===Nb};Qt.isPortal=function(e){return Zi(e)===U7};Qt.isProfiler=function(e){return Zi(e)===Ob};Qt.isStrictMode=function(e){return Zi(e)===Ab};Qt.isSuspense=function(e){return Zi(e)===Db};Qt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lb||e===Rb||e===Ob||e===Ab||e===Db||e===MQ||typeof e=="object"&&e!==null&&(e.$$typeof===Bb||e.$$typeof===Nb||e.$$typeof===Mb||e.$$typeof===Ib||e.$$typeof===$b||e.$$typeof===RQ||e.$$typeof===$Q||e.$$typeof===DQ||e.$$typeof===IQ)};Qt.typeOf=Zi;(function(e){e.exports=Qt})(OQ);var ZD=C6,NQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},BQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QD={};QD[ZD.ForwardRef]=NQ;QD[ZD.Memo]=BQ;var FQ=!0;function zQ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var JD=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||FQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},eN=function(t,n,r){JD(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function jQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HQ={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VQ
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function hee(e){const t=hN().toHexString();return!e||cee(e)?t:e.string&&e.colors?mee(e.string,e.colors):e.string&&!e.colors?pee(e.string):e.colors&&!e.string?gee(e.colors):t}function pee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function mee(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function gee(e){return e[Math.floor(Math.random()*e.length)]}function it(e,t){return n=>n.colorMode==="dark"?t:e}function Y7(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function vee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vN(e){return vee(e)&&e.reference?e.reference:String(e)}var jb=(e,...t)=>t.map(vN).join(` ${e} `).replace(/calc/g,""),sT=(...e)=>`calc(${jb("+",...e)})`,lT=(...e)=>`calc(${jb("-",...e)})`,P6=(...e)=>`calc(${jb("*",...e)})`,uT=(...e)=>`calc(${jb("/",...e)})`,cT=e=>{const t=vN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:P6(t,-1)},Ts=Object.assign(e=>({add:(...t)=>Ts(sT(e,...t)),subtract:(...t)=>Ts(lT(e,...t)),multiply:(...t)=>Ts(P6(e,...t)),divide:(...t)=>Ts(uT(e,...t)),negate:()=>Ts(cT(e)),toString:()=>e.toString()}),{add:sT,subtract:lT,multiply:P6,divide:uT,negate:cT});function yee(e){return!Number.isInteger(parseFloat(e.toString()))}function bee(e,t="-"){return e.replace(/\s+/g,t)}function yN(e){const t=bee(e.toString());return t.includes("\\.")?e:yee(e)?t.replace(".","\\."):e}function See(e,t=""){return[t,yN(e)].filter(Boolean).join("-")}function wee(e,t){return`var(${yN(e)}${t?`, ${t}`:""})`}function Cee(e,t=""){return`--${See(e,t)}`}function pr(e,t){const n=Cee(e,t==null?void 0:t.prefix);return{variable:n,reference:wee(n,xee(t==null?void 0:t.fallback))}}function xee(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:_ee,defineMultiStyleConfig:kee}=Tn(wJ.keys),Eee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Pee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Tee={pt:"2",px:"4",pb:"5"},Lee={fontSize:"1.25em"},Aee=_ee({container:Eee,button:Pee,panel:Tee,icon:Lee}),Oee=kee({baseStyle:Aee}),{definePartsStyle:i1,defineMultiStyleConfig:Mee}=Tn(CJ.keys),Wi=rn("alert-fg"),Ns=rn("alert-bg"),Iee=i1({container:{bg:Ns.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Wi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Wi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function q7(e){const{theme:t,colorScheme:n}=e,r=nh(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Ree=i1(e=>{const{colorScheme:t}=e,n=q7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ns.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ns.variable]:n.dark}}}}),$ee=i1(e=>{const{colorScheme:t}=e,n=q7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ns.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ns.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Wi.reference}}}),Dee=i1(e=>{const{colorScheme:t}=e,n=q7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ns.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ns.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Wi.reference}}}),Nee=i1(e=>{const{colorScheme:t}=e;return{container:{[Wi.variable]:"colors.white",[Ns.variable]:`colors.${t}.500`,_dark:{[Wi.variable]:"colors.gray.900",[Ns.variable]:`colors.${t}.200`},color:Wi.reference}}}),Bee={subtle:Ree,"left-accent":$ee,"top-accent":Dee,solid:Nee},Fee=Mee({baseStyle:Iee,variants:Bee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),bN={px:"1px",.5:
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${ui(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Rre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},$re=e=>({bg:it("gray.100","whiteAlpha.300")(e)}),Dre=e=>({transitionProperty:"common",transitionDuration:"slow",...Ire(e)}),Nre=am(e=>({label:Rre,filledTrack:Dre(e),track:$re(e)})),Bre={xs:am({track:{h:"1"}}),sm:am({track:{h:"2"}}),md:am({track:{h:"3"}}),lg:am({track:{h:"4"}})},Fre=Mre({sizes:Bre,baseStyle:Nre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zre,definePartsStyle:d2}=Tn(NJ.keys),jre=e=>{var t;const n=(t=fi(Q2.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Hre=d2(e=>{var t,n,r,i;return{label:(n=(t=Q2).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=Q2).baseStyle)==null?void 0:i.call(r,e).container,control:jre(e)}}),Vre={md:d2({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:d2({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:d2({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Ure=zre({baseStyle:Hre,sizes:Vre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Wre,definePartsStyle:Gre}=Tn(BJ.keys),K0=rn("select-bg"),mT,Kre={...(mT=jt.baseStyle)==null?void 0:mT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:K0.reference,[K0.variable]:"colors.white",_dark:{[K0.variable]:"colors.gray.700"},"> option, > optgroup":{bg:K0.reference}},Yre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},qre=Gre({field:Kre,icon:Yre}),Y0={paddingInlineEnd:"8"},gT,vT,yT,bT,ST,wT,CT,xT,Xre={lg:{...(gT=jt.sizes)==null?void 0:gT.lg,field:{...(vT=jt.sizes)==null?void 0:vT.lg.field,...Y0}},md:{...(yT=jt.sizes)==null?void 0:yT.md,field:{...(bT=jt.sizes)==null?void 0:bT.md.field,...Y0}},sm:{...(ST=jt.sizes)==null?void 0:ST.sm,field:{...(wT=jt.sizes)==null?void 0:wT.sm.field,...Y0}},xs:{...(CT=jt.sizes)==null?void 0:CT.xs,field:{...(xT=jt.sizes)==null?void 0:xT.xs.field,...Y0},icon:{insetEnd:"1"}}},Zre=Wre({baseStyle:qre,sizes:Xre,variants:jt.variants,defaultProps:jt.defaultProps}),mS=rn("skeleton-start-color"),gS=rn("skeleton-end-color"),Qre={[mS.variable]:"colors.gray.100",[gS.variable]:"colors.gray.400",_dark:{[mS.variable]:"colors.gray.800",[gS.variable]:"colors.gray.600"},background:mS.reference,borderColor:gS.reference,opacity:.7,borderRadius:"sm"},Jre={baseStyle:Qre},vS=rn("skip-link-bg"),eie={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[vS.variable]:"colors.white",_dark:{[vS.variable]:"colors.gray.700"},bg:vS.reference}},tie={baseStyle:eie},{defineMultiStyleConfig:nie,definePartsStyle:Hb}=Tn(FJ.keys),cg=rn("slider-thumb-size"),dg=rn("slider-track-size"),Al=rn("slider-bg"),rie=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Y7({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},iie=e=>({...Y7({orientation:e.orientation,horizontal:{h:dg.reference},vertical:{w:dg.reference}}),overflow:"hidden",borderRadius:"sm",[Al.variable]:"colors.gray.200",_dark:{[Al.variable]:"colors.whiteAlpha.200"},_disabled:{[Al.variable]:"colors.gray.300",_dark:{[Al.variable]:"colors.whiteAlpha.300"}},bg:Al.reference}),oie=e=>{const{orientation:t}=e;return{...Y7({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:cg.reference,h:cg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},aie
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${a}px !important;
|
||
|
top: ${s}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(u)}},[t]),S.createElement(Kce,{isPresent:t,childRef:r,sizeRef:i},S.cloneElement(e,{ref:r}))}const OS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Kb(qce),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return S.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),S.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.createElement(Yce,{isPresent:n},e)),S.createElement(Ah.Provider,{value:u},e)};function qce(){return new Map}const Zd=e=>e.key||"";function Xce(e,t){e.forEach(n=>{const r=Zd(n);t.set(r,n)})}function Zce(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const mu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",LB(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Gce();const l=S.useContext(J7).forceRender;l&&(s=l);const u=rF(),c=Zce(e);let f=c;const p=new Set,m=S.useRef(f),g=S.useRef(new Map).current,v=S.useRef(!0);if(ty(()=>{v.current=!1,Xce(c,g),m.current=f}),l9(()=>{v.current=!0,g.clear(),p.clear()}),v.current)return S.createElement(S.Fragment,null,f.map(k=>S.createElement(OS,{key:Zd(k),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},k)));f=[...f];const x=m.current.map(Zd),C=c.map(Zd),w=x.length;for(let k=0;k<w;k++){const P=x[k];C.indexOf(P)===-1&&p.add(P)}return a==="wait"&&p.size&&(f=[]),p.forEach(k=>{if(C.indexOf(k)!==-1)return;const P=g.get(k);if(!P)return;const L=x.indexOf(k),A=()=>{g.delete(k),p.delete(k);const O=m.current.findIndex(I=>I.key===k);if(m.current.splice(O,1),!p.size){if(m.current=c,u.current===!1)return;s(),r&&r()}};f.splice(L,0,S.createElement(OS,{key:Zd(P),isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:o,mode:a},P))}),f=f.map(k=>{const P=k.key;return p.has(P)?k:S.createElement(OS,{key:Zd(k),isPresent:!0,presenceAffectsLayout:o,mode:a},k)}),TB!=="production"&&a==="wait"&&f.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.createElement(S.Fragment,null,p.size?f:f.map(k=>S.cloneElement(k)))};var Da=function(){return Da=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Da.apply(this,arguments)};function iF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Mh(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Ih(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){
|
||
|
`})}function wde(e){e3({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function of(e){const{isOpen:t,isDisabled:n}=_9(),{reduceMotion:r}=k9(),i=c1("chakra-accordion__icon",e.className),o=t3(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return M.createElement(Qi,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e},M.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))}of.displayName="AccordionIcon";var af=pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=vde(t),l={...t3().container,overflowAnchor:"none"},u=S.useMemo(()=>a,[a]);return M.createElement(dde,{value:u},M.createElement(de.div,{ref:n,...o,className:c1("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});af.displayName="AccordionItem";var sf=pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=k9(),{getPanelProps:s,isOpen:l}=_9(),u=s(o,n),c=c1("chakra-accordion__panel",r),f=t3();a||delete u.hidden;const p=M.createElement(de.div,{...u,__css:f.panel,className:c});return a?p:M.createElement(oF,{in:l,...i},p)});sf.displayName="AccordionPanel";var E9=pe(function({children:t,reduceMotion:n,...r},i){const o=Br("Accordion",r),a=Vt(r),{htmlProps:s,descendants:l,...u}=mde(a),c=S.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return M.createElement(fde,{value:l},M.createElement(gde,{value:c},M.createElement(cde,{value:o},M.createElement(de.div,{ref:i,...s,className:c1("chakra-accordion",r.className),__css:o.root},t))))});E9.displayName="Accordion";var Cde=(...e)=>e.filter(Boolean).join(" "),xde=pu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d1=pe((e,t)=>{const n=gi("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Vt(e),u=Cde("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${xde} ${o} linear infinite`,...n};return M.createElement(de.div,{ref:t,__css:c,className:u,...l},r&&M.createElement(de.span,{srOnly:!0},r))});d1.displayName="Spinner";var n3=(...e)=>e.filter(Boolean).join(" ");function _de(e){return M.createElement(Qi,{viewBox:"0 0 24 24",...e},M.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}))}function kde(e){return M.createElement(Qi,{viewBox:"0 0 24 24",...e},M.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}))}function VL(e){return M.createElement(Qi,{viewBox:"0 0 24 24",...e},M.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}var[Ede,Pde]=Kt({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Tde,P9]=Kt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),uF={info:{icon:kde,colorScheme:"blue"},warning:{icon:VL,colorScheme:"orange"},success:{icon:_de,colorScheme:"green"},error:{icon:VL,colorScheme:"red"},loading:{icon:d1,colorScheme:"blue"}};function Lde(e){return uF[e].colorScheme}function Ade(e){return uF[e].icon}var cF=pe(function(t,n){var u;const{status:r="info",addRole:i=!0,...o}=Vt(t),a=(u=t.colorScheme)!=null?u:Lde(r),s=Br("Alert",{...t,colorScheme:a}),l=
|
||
|
:root {
|
||
|
--chakra-vh: 100vh;
|
||
|
}
|
||
|
|
||
|
@supports (height: -webkit-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -webkit-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: -moz-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -moz-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: 100dvh) {
|
||
|
:root {
|
||
|
--chakra-vh: 100dvh;
|
||
|
}
|
||
|
}
|
||
|
`,ffe=()=>M.createElement(Fb,{styles:SF}),hfe=()=>M.createElement(Fb,{styles:`
|
||
|
html {
|
||
|
line-height: 1.5;
|
||
|
-webkit-text-size-adjust: 100%;
|
||
|
font-family: system-ui, sans-serif;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
touch-action: manipulation;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
position: relative;
|
||
|
min-height: 100%;
|
||
|
font-feature-settings: 'kern';
|
||
|
}
|
||
|
|
||
|
*,
|
||
|
*::before,
|
||
|
*::after {
|
||
|
border-width: 0;
|
||
|
border-style: solid;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
border-top-width: 1px;
|
||
|
box-sizing: content-box;
|
||
|
height: 0;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
pre,
|
||
|
code,
|
||
|
kbd,
|
||
|
samp {
|
||
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
background-color: transparent;
|
||
|
color: inherit;
|
||
|
text-decoration: inherit;
|
||
|
}
|
||
|
|
||
|
abbr[title] {
|
||
|
border-bottom: none;
|
||
|
text-decoration: underline;
|
||
|
-webkit-text-decoration: underline dotted;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
|
||
|
b,
|
||
|
strong {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
small {
|
||
|
font-size: 80%;
|
||
|
}
|
||
|
|
||
|
sub,
|
||
|
sup {
|
||
|
font-size: 75%;
|
||
|
line-height: 0;
|
||
|
position: relative;
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
sub {
|
||
|
bottom: -0.25em;
|
||
|
}
|
||
|
|
||
|
sup {
|
||
|
top: -0.5em;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
border-style: none;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
optgroup,
|
||
|
select,
|
||
|
textarea {
|
||
|
font-family: inherit;
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input {
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
select {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
button::-moz-focus-inner,
|
||
|
[type="button"]::-moz-focus-inner,
|
||
|
[type="reset"]::-moz-focus-inner,
|
||
|
[type="submit"]::-moz-focus-inner {
|
||
|
border-style: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
fieldset {
|
||
|
padding: 0.35em 0.75em 0.625em;
|
||
|
}
|
||
|
|
||
|
legend {
|
||
|
box-sizing: border-box;
|
||
|
color: inherit;
|
||
|
display: table;
|
||
|
max-width: 100%;
|
||
|
padding: 0;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
|
||
|
progress {
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
textarea {
|
||
|
overflow: auto;
|
||
|
}
|
||
|
|
||
|
[type="checkbox"],
|
||
|
[type="radio"] {
|
||
|
box-sizing: border-box;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
[type="number"]::-webkit-inner-spin-button,
|
||
|
[type="number"]::-webkit-outer-spin-button {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
input[type="number"] {
|
||
|
-moz-appearance: textfield;
|
||
|
}
|
||
|
|
||
|
[type="search"] {
|
||
|
-webkit-appearance: textfield;
|
||
|
outline-offset: -2px;
|
||
|
}
|
||
|
|
||
|
[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
::-webkit-file-upload-button {
|
||
|
-webkit-appearance: button;
|
||
|
font: inherit;
|
||
|
}
|
||
|
|
||
|
details {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
summary {
|
||
|
display: list-item;
|
||
|
}
|
||
|
|
||
|
template {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
[hidden] {
|
||
|
display: none !important;
|
||
|
}
|
||
|
|
||
|
body,
|
||
|
blockquote,
|
||
|
dl,
|
||
|
dd,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
hr,
|
||
|
figure,
|
||
|
p,
|
||
|
pre {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
background: transparent;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
fieldset {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
ol,
|
||
|
ul {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
textarea {
|
||
|
resize: vertical;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
[role="button"] {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
button::-moz-focus-inner {
|
||
|
border: 0 !important;
|
||
|
}
|
||
|
|
||
|
table {
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6 {
|
||
|
font-size: inherit;
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
optgroup,
|
||
|
select,
|
||
|
textarea {
|
||
|
padding: 0;
|
||
|
line-height: inherit;
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
img,
|
||
|
svg,
|
||
|
video,
|
||
|
canvas,
|
||
|
audio,
|
||
|
iframe,
|
||
|
embed,
|
||
|
object {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
img,
|
||
|
video {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
|
||
|
outline: none;
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
select::-ms-expand {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
${SF}
|
||
|
`});function Cc(e,t,n,r){const i=Fn(n);return S.useEffect(()=>{const o=typeof e=="function"?e():e!=null?e:document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function pfe(e){return"current"in e}var wF=()=>typeof window<"u";function mfe(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var gfe=e=>wF()&&e.test(navigator.vendor),vfe=e=>wF()&&e.test(mfe()),yfe=()=>vfe(/mac|iphone|ipad|ipod/i),bfe=()=>yfe()&&gfe(/apple/i);function Sfe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a;var o;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};Cc(i,"pointerdown",o=>{if(!bfe()||!r)return;const a=o.target,l=(n!=null?n:[t]).some(u=>{const c=pfe(u)?u.current:u;return(c==null?void 0:c.contains(a))||c===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var wfe=dJ?S.useLayoutEffect:S.useEffect;function ZL(e,t=[]){const n=S.useRef(e);return wfe(()=>{n.current=e}),S.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Cfe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function xfe(e,t){const n=S.useId();return S.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Mc(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=ZL(n),a=ZL(t),[s,l]=S.useState(e.defaultIsOpen||!1),[u,c]=Cfe(r,s),f=xfe(i,"disclosure"),p=S.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),m=S.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),g=S.useCallback(()=>{(c?p:m)()},[c,m,p]);return{isOpen:!!c,onOpen:m,onClose:p,onToggle:g,isControlled:u,getButtonProps:(v={})=>({...v,"aria-expanded":c,"aria-controls":f,onClick:fJ(v.onClick,g)}),getDisclosureProps:(v={})=>({...v,hidden:!c,id:f})}}function I9(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var R9=pe(function(t,n){const{htmlSize:r,...i}=t,o=Br("Input",i),a=Vt(i),s=T9(a),l=Jn("chakra-input",t.className);return M.createElement(de.input,{size:r,...s,__css:o.field,ref:n,className:l})});R9.displayName="Input";R9.id="Input";var[_fe,CF]=Kt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),kfe=pe(function(t,n){const r=Br("Input",t),{children:i,className:o,...a}=Vt(t),s=Jn("chakra-input__group",o),l={},u=i3(i),c=r.field;u.forEach(p=>{var m,g;r&&(c&&p.type.id==="InputLeftElement"&&(l.paddingStart=(m=c.height)!=null?m:c.h),c&&p.type.id==="InputRightElement"&&(l.paddingEnd=(g=c.height)!=null?g:c.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=u.map(p=>{var m,g;const v=I9({size:((m=p.props)==null?void 0:m.size)||t.size,variant:((g=p.props)==null?void 0:g.variant)||t.variant});return p.type.id!=="Input"?S.cloneElement(p,v):S.cloneElement(p,Object.assign(v,l,p.props))});return M.createElement(de.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},M.createElement(_fe,{value:r},f))});kfe.displayName="InputGroup";var Efe={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Pfe=de("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),$9=pe(function(t,n){var s;const{placement:r="left",...i}=t,o=(s=Efe[r])!=null?s:{},a=CF();return M.createElement(Pfe,{ref:n,...i,__css:{...a.addon,...o}})});$9.displayName="InputAddon";var xF=pe(function(t,n){return M.createElement($9,{ref:n,placement:"left",...t,className:Jn("chakra-input__left-addon",t.className)})});xF.displayName="InputLeftAddon";xF.id="InputLeftAddon";var _F=pe(function(t,n){return M.createElement($9,{ref:n,placement:"right",...t,className:Jn("chakra-input__right-addon",t.className)})});_F.displayName="InputRightAddon";_F.id="InputRightAddon";var Tfe=de("div",{baseStyle:{display:"flex",alignItems:"center",justifyCon
|
||
|
* @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(B,W){var X=B.length;B.push(W);e:for(;0<X;){var re=X-1>>>1,le=B[re];if(0<i(le,W))B[re]=W,B[X]=le,X=re;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var W=B[0],X=B.pop();if(X!==W){B[0]=X;e:for(var re=0,le=B.length,he=le>>>1;re<he;){var se=2*(re+1)-1,Ae=B[se],be=se+1,De=B[be];if(0>i(Ae,X))be<le&&0>i(De,Ae)?(B[re]=De,B[be]=X,re=be):(B[re]=Ae,B[se]=X,re=se);else if(be<le&&0>i(De,X))B[re]=De,B[be]=X,re=be;else break e}}return W}function i(B,W){var X=B.sortIndex-W.sortIndex;return X!==0?X:B.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,m=!1,g=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(B){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=B)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function P(B){if(v=!1,k(B),!g)if(n(l)!==null)g=!0,U(L);else{var W=n(u);W!==null&&G(P,W.startTime-B)}}function L(B,W){g=!1,v&&(v=!1,C(I),I=-1),m=!0;var X=p;try{for(k(W),f=n(l);f!==null&&(!(f.expirationTime>W)||B&&!V());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var le=re(f.expirationTime<=W);W=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(l)&&r(l),k(W)}else r(l);f=n(l)}if(f!==null)var he=!0;else{var se=n(u);se!==null&&G(P,se.startTime-W),he=!1}return he}finally{f=null,p=X,m=!1}}var A=!1,O=null,I=-1,$=5,D=-1;function V(){return!(e.unstable_now()-D<$)}function Y(){if(O!==null){var B=e.unstable_now();D=B;var W=!0;try{W=O(!0,B)}finally{W?z():(A=!1,O=null)}}else A=!1}var z;if(typeof w=="function")z=function(){w(Y)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,N=R.port2;R.port1.onmessage=Y,z=function(){N.postMessage(null)}}else z=function(){x(Y,0)};function U(B){O=B,A||(A=!0,z())}function G(B,W){I=x(function(){B(e.unstable_now())},W)}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(B){B.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,U(L))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(B){switch(p){case 1:case 2:case 3:var W=3;break;default:W=p}var X=p;p=W;try{return B()}finally{p=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var X=p;p=B;try{return W()}finally{p=X}},e.unstable_scheduleCallback=function(B,W,X){var re=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?re+X:re):X=re,B){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=X+le,B={id:c++,callback:W,priorityLevel:B,startTime:X,expirationTime:le,sortIndex:-1},X>re?(B.sortIndex=X,t(u,B),n(l)===null&&B===n(u)&&(v?(C(I),I=-1):v=!0,G(P,X-re))):(B.sortIndex=le,t(l,B),g||m||(g=!0,U(L))),B},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(B){var W=p;return function(){var X=p;p=W;try{return B.apply(this,arguments)}finally{p=X}}}})(rz);(function(e){e.exports=rz})(zpe);/**
|
||
|
* @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 iz=S,qi=Ec;function Se(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 oz=new Set,wg={};function Gc(e,t){uh(e,t),uh(e+"Capture",t)}function uh(e,t){for(wg[e]=t,e=0;e<t.length;e++)oz.add(t[e])}var zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uC=Object.prototype.hasOwnProperty,jpe=/^[: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]*$/,fA={},hA={};function Hpe(e){return uC.call(hA,e)?!0:uC.call(fA,e)?!1:jpe.test(e)?hA[e]=!0:(fA[e]=!0,!1)}function Vpe(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 Upe(e,t,n,r){if(t===null||typeof t>"u"||Vpe(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 vi(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new vi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new vi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new vi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new vi(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){Nr[e]=new vi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new vi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new vi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new vi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new vi(e,5,!1,e.toLowerCase(),null,!1,!1)});var W9=/[\-:]([a-z])/g;function G9(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-
|
||
|
`+DS+e}var NS=!1;function BS(e,t){if(!e||NS)return"";NS=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
|
`),o=r.stack.split(`
|
||
|
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
|
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{NS=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sm(e):""}function Wpe(e){switch(e.tag){case 5:return sm(e.type);case 16:return sm("Lazy");case 13:return sm("Suspense");case 19:return sm("SuspenseList");case 0:case 2:case 15:return e=BS(e.type,!1),e;case 11:return e=BS(e.type.render,!1),e;case 1:return e=BS(e.type,!0),e;default:return""}}function hC(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 uf:return"Fragment";case lf:return"Portal";case cC:return"Profiler";case Y9:return"StrictMode";case dC:return"Suspense";case fC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sz:return(e.displayName||"Context")+".Consumer";case az:return(e._context.displayName||"Context")+".Provider";case q9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X9:return t=e.displayName||null,t!==null?t:hC(e.type)||"Memo";case Pl:t=e._payload,e=e._init;try{return hC(e(t))}catch(n){}}return null}function Gpe(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 hC(t);case 8:return t===Y9?"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 iu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kpe(e){var t=uz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ov(e){e._valueTracker||(e._valueTracker=Kpe(e))}function cz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pC(e,t){var n=t.checked;return jn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function mA(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=iu(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 dz(e,t){t=t.checked,t!=null&&K9(e,"checked",t,!1)}function mC(e,t){dz(e,t);var n=iu(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")?gC(e,t.type,n):t.hasOwnProperty("defaultValue")&&gC(e,t.type,iu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gA(e,t,n){if(t.ha
|
||
|
`).replace(rge,"")}function hv(e,t,n){if(t=FA(t),FA(e)!==t&&n)throw Error(Se(425))}function _y(){}var AC=null,OC=null;function MC(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 IC=typeof setTimeout=="function"?setTimeout:void 0,ige=typeof clearTimeout=="function"?clearTimeout:void 0,zA=typeof Promise=="function"?Promise:void 0,oge=typeof queueMicrotask=="function"?queueMicrotask:typeof zA<"u"?function(e){return zA.resolve(null).then(e).catch(age)}:IC;function age(e){setTimeout(function(){throw e})}function ZS(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),Eg(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Eg(t)}function Wl(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 jA(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 Nh=Math.random().toString(36).slice(2),Na="__reactFiber$"+Nh,Og="__reactProps$"+Nh,js="__reactContainer$"+Nh,RC="__reactEvents$"+Nh,sge="__reactListeners$"+Nh,lge="__reactHandles$"+Nh;function hc(e){var t=e[Na];if(t)return t;for(var n=e.parentNode;n;){if(t=n[js]||n[Na]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jA(e);e!==null;){if(n=e[Na])return n;e=jA(e)}return t}e=n,n=e.parentNode}return null}function v1(e){return e=e[Na]||e[js],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Se(33))}function p3(e){return e[Og]||null}var $C=[],pf=-1;function yu(e){return{current:e}}function Pn(e){0>pf||(e.current=$C[pf],$C[pf]=null,pf--)}function pn(e,t){pf++,$C[pf]=e.current,e.current=t}var ou={},ni=yu(ou),Oi=yu(!1),Rc=ou;function ch(e,t){var n=e.type.contextTypes;if(!n)return ou;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 Mi(e){return e=e.childContextTypes,e!=null}function ky(){Pn(Oi),Pn(ni)}function HA(e,t,n){if(ni.current!==ou)throw Error(Se(168));pn(ni,t),pn(Oi,n)}function Jz(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(Se(108,Gpe(e)||"Unknown",i));return jn({},n,r)}function Ey(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,Rc=ni.current,pn(ni,e),pn(Oi,Oi.current),!0}function VA(e,t,n){var r=e.stateNode;if(!r)throw Error(Se(169));n?(e=Jz(e,t,Rc),r.__reactInternalMemoizedMergedChildContext=e,Pn(Oi),Pn(ni),pn(ni,e)):Pn(Oi),pn(Oi,n)}var Ps=null,m3=!1,QS=!1;function ej(e){Ps===null?Ps=[e]:Ps.push(e)}function uge(e){m3=!0,ej(e)}function bu(){if(!QS&&Ps!==null){QS=!0;var e=0,t=Zt;try{var n=Ps;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ps=null,m3=!1}catch(i){throw Ps!==null&&(Ps=Ps.slice(e+1)),kz(Q9,bu),i}finally{Zt=t,QS=!1}}return null}var mf=[],gf=0,Py=null,Ty=0,po=[],mo=0,$c=null,As=1,Os="";function Qu(e,t){mf[gf++]=Ty,mf[gf++]=Py,Py=e,Ty=t}function tj(e,t,n){po[mo++]=As,po[mo++]=Os,po[mo++]=$c,$c=e;var r=As;e=Os;var i=32-ia(r)-1;r&=~(1<<i),n+=1;var o=32-ia(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,As=1<<32-ia(t)+i|n<<i|r,Os=o+e}else As=1<<o|n<<i|r,Os=e}function s8(e){e.return!==null&&(Qu(e,1),tj(e,1,0))}function l8(e){for(;e===Py;)Py=mf[--gf],mf[gf]=null,Ty=mf[--gf],mf[gf]=null;for(;e===$c;)$c=po[--mo],po[mo]=null,Os=po[--mo],po[mo]=null,As=po[--mo],po[mo]=null}var Gi=null,Vi=null,In=!1,qo=null;function nj(e,t){var n=bo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function rw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function jC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yge=typeof WeakMap=="function"?WeakMap:Map;function Aj(e,t,n){n=Ms(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Dy||(Dy=!0,ZC=r),jC(e,t)},n}function Oj(e,t,n){n=Ms(-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(){jC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){jC(e,t),typeof r!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function JA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yge;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=Mge.bind(null,e,t,n),t.then(e,e))}function eO(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 tO(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=Ms(-1,1),t.tag=2,Gl(n,t,1))),n.lanes|=1),e)}var bge=Ys.ReactCurrentOwner,Ti=!1;function li(e,t,n,r){t.child=e===null?uj(t,null,n,r):fh(t,e.child,n,r)}function nO(e,t,n,r,i){n=n.render;var o=t.ref;return Hf(t,i),r=b8(e,t,n,r,o,i),n=S8(),e!==null&&!Ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i)):(In&&n&&s8(t),t.flags|=1,li(e,t,r,i),t.child)}function rO(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!A8(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Mj(e,t,o,r,i)):(e=P2(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tg,n(a,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,e=ql(o,r),e.ref=t.ref,e.return=t,t.child=e}function Mj(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tg(o,r)&&e.ref===t.ref)if(Ti=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ti=!0);else return t.lanes=e.lanes,Vs(e,t,i)}return HC(e,t,n,r,i)}function Ij(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},pn(bf,ji),ji|=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,pn(bf,ji),ji|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,pn(bf,ji),ji|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,pn(bf,ji),ji|=r;return li(e,t,i,n),t.child}function Rj(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function HC(e,t,n,r,i){var o=Mi(n)?Rc:ni.current;return o=ch(t,o),Hf(t,i),n=b8(e,t,n,r,o,i),r=S8(),e!==null&&!Ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i)):(In&&r&&s8(t),t.flags|=1,li(e,t,n,i),t.child)}function iO(e,t,n,r,i){if(Mi(n)){var o=!0;Ey(t)}else o=!1;if(Hf(t,i),t.stateNode===null)_2(e,t),sj(t,n,r),zC(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Po(u):(u=Mi(n)?Rc:ni.current,u=ch(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&qA(t,a,r,u),Tl=!1;var p=t.memoizedState;a.state=p,Oy(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Oi.current||Tl?(typeof c=="function"&&(FC(t,n,c,r),l=t.memoizedState),(s=Tl||YA(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="fun
|
||
|
.`.concat(o0e,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(i,`px;
|
||
|
padding-top: `).concat(o,`px;
|
||
|
padding-right: `).concat(a,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(T2,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(L2,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(T2," .").concat(T2,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(L2," .").concat(L2,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(a0e,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},y0e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=S.useMemo(function(){return m0e(i)},[i]);return S.createElement(g0e,{styles:v0e(o,!t,i,n?"":"!important")})},ax=!1;if(typeof window<"u")try{var xv=Object.defineProperty({},"passive",{get:function(){return ax=!0,!0}});window.addEventListener("test",xv,xv),window.removeEventListener("test",xv,xv)}catch(e){ax=!1}var Fd=ax?{passive:!1}:!1,b0e=function(e){return e.tagName==="TEXTAREA"},HH=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!b0e(e)&&n[t]==="visible")},S0e=function(e){return HH(e,"overflowY")},w0e=function(e){return HH(e,"overflowX")},CO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=VH(e,n);if(r){var i=UH(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},C0e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},x0e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},VH=function(e,t){return e==="v"?S0e(t):w0e(t)},UH=function(e,t){return e==="v"?C0e(t):x0e(t)},_0e=function(e,t){return e==="h"&&t==="rtl"?-1:1},k0e=function(e,t,n,r,i){var o=_0e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,f=0,p=0;do{var m=UH(e,s),g=m[0],v=m[1],x=m[2],C=v-x-o*g;(g||C)&&VH(e,s)&&(f+=C,p+=g),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&f===0||!i&&a>f)||!c&&(i&&p===0||!i&&-a>p))&&(u=!0),u},_v=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xO=function(e){return[e.deltaX,e.deltaY]},_O=function(e){return e&&"current"in e?e.current:e},E0e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},P0e=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},T0e=0,zd=[];function L0e(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(T0e++)[0],o=S.useState(function(){return jH()})[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Q6([e.lockRef.current],(e.shards||[]).map(_O),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var C=_v(v),w=n.current,k="deltaX"in v?v.deltaX:w[0]-C[0],P="deltaY"in v?v.deltaY:w[1]-C[1],L,A=v.target,O=Math.abs(k)>Math.abs(P)?"h":"v";if("touches"in v&&O==="h"&&A.type==="range")return!1;var I=CO(O,A);if(!I)return!0;if(I?L=O:(L=O==="v"?"h":"v",I=CO(O,A)),!I)return!1;if(!r.current&&"changedTouches"in v&&(k||P)&&(r.current=L),!L)return!0;var $=r.current||L;return k0e($,x,v,$==="h"?k:P,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!zd.length||zd[zd.length-1]!==o)){var C="deltaY"in x?xO(x):_v(x),w=t.current.filter(function(L){return L.name===x.type&&L.target===x.target&&E0e(L.delta,C)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var k=(a.current.shards||[]).map(_O).filter(Boolean).filter(function(L){return L.contains(x.target)}),P=k.length>0?s(x,k[0]):!a.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),u=S.useCallback(function(v,x,C,w){var k={name:v,delta:x,target:C,should:w};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(P){return P!==k})},1)},[]),c=S.useCallback(function(v){n.current=_v(v),r.current=void 0},[]),f=S.useCallback(function(v){u(v.type,xO(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){u(v.type,_v(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return zd.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Fd),document.addEventListener("touchmove",l,Fd),document.addEventListener("touchstart",c,Fd),function(){zd=zd.filter(function(v){return v!==o}),document.removeEventListener("wheel",l,Fd),document.removeEventListener("touchmove",l,Fd),document.removeEventListener("touchstart",c,Fd)}},[]);var m=e.removeScrollBar,g=e.inert;return S.createElement(S.Fragment,null,g?S.createElement(o,{styles:P0e(i)}):null,m?S.createElement(y0e,{gapMode:"margin"}):null)}const A0e=u1e(zH,L0e);var WH=S.forwardRef(function(e,t){return S.createElement(k3,Da({},e,{ref:t,sideCar:A0e}))});WH.classNames=k3.classNames;const GH=WH;var qc=(...e)=>e.filter(Boolean).join(" ");function dm(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var O0e=class{constructor(){kt(this,"modals");this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},sx=new O0e;function M0e(e,t){S.useEffect(()=>(t&&sx.add(e),()=>{sx.remove(e)}),[t,e])}function I0e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=S.useRef(null),c=S.useRef(null),[f,p,m]=$0e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");R0e(u,t&&a),M0e(u,t);const g=S.useRef(null),v=S.useCallback(I=>{g.current=I.target},[]),x=S.useCallback(I=>{I.key==="Escape"&&(I.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[C,w]=S.useState(!1),[k,P]=S.useState(!1),L=S.useCallback((I={},$=null)=>({role:"dialog",...I,ref:ln($,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":C?p:void 0,"aria-describedby":k?m:void 0,onClick:dm(I.onClick,D=>D.stopPropagation())}),[m,k,f,p,C]),A=S.useCallback(I=>{I.stopPropagation(),g.current===I.target&&sx.isTopModal(u)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),O=S.useCallback((I={},$=null)=>({...I,ref:ln($,c),onClick:dm(I.onClick,A),onKe
|
||
|
* @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 vh=S;function X2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z2e=typeof Object.is=="function"?Object.is:X2e,Q2e=vh.useState,J2e=vh.useEffect,eye=vh.useLayoutEffect,tye=vh.useDebugValue;function nye(e,t){var n=t(),r=Q2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return eye(function(){i.value=n,i.getSnapshot=t,bw(i)&&o({inst:i})},[e,n,t]),J2e(function(){return bw(i)&&o({inst:i}),e(function(){bw(i)&&o({inst:i})})},[e]),tye(n),n}function bw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Z2e(e,n)}catch(r){return!0}}function rye(e,t){return t()}var iye=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rye:nye;TV.useSyncExternalStore=vh.useSyncExternalStore!==void 0?vh.useSyncExternalStore:iye;(function(e){e.exports=TV})(q2e);var mx={},oye={get exports(){return mx},set exports(e){mx=e}},LV={};/**
|
||
|
* @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 O3=S,aye=px;function sye(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lye=typeof Object.is=="function"?Object.is:sye,uye=aye.useSyncExternalStore,cye=O3.useRef,dye=O3.useEffect,fye=O3.useMemo,hye=O3.useDebugValue;LV.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=cye(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=fye(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),i!==void 0&&a.hasValue){var g=a.value;if(i(g,m))return f=g}return f=m}if(g=f,lye(c,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(c=m,f=v)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=uye(e,o[0],o[1]);return dye(function(){a.hasValue=!0,a.value=s},[s]),hye(s),s};(function(e){e.exports=LV})(oye);function pye(e){e()}let AV=pye;const mye=e=>AV=e,gye=()=>AV,uu=S.createContext(null);function OV(){return S.useContext(uu)}const vye=()=>{throw new Error("uSES not initialized!")};let MV=vye;const yye=e=>{MV=e},bye=(e,t)=>e===t;function Sye(e=uu){const t=e===uu?OV:()=>S.useContext(e);return function(r,i=bye){const{store:o,subscription:a,getServerState:s}=t(),l=MV(a.addNestedSub,o.getState,s||o.getState,r,i);return S.useDebugValue(l),l}}const wye=Sye();var RO={},Cye={get exports(){return RO},set exports(e){RO=e}},Jt={};/**
|
||
|
* @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 s_=Symbol.for("react.element"),l_=Symbol.for("react.portal"),M3=Symbol.for("react.fragment"),I3=Symbol.for("react.strict_mode"),R3=Symbol.for("react.profiler"),$3=Symbol.for("react.provider"),D3=Symbol.for("react.context"),xye=Symbol.for("react.server_context"),N3=Symbol.for("react.forward_ref"),B3=Symbol.for("react.suspense"),F3=Symbol.for("react.suspense_list"),z3=Symbol.for("react.memo"),j3=Symbol.for("react.lazy"),_ye=Symbol.for("react.offscreen"),IV;IV=Symbol.for("react.module.reference");function Oo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s_:switch(e=e.type,e){case M3:case R3:case I3:case B3:case F3:return e;default:switch(e=e&&e.$$typeof,e){case xye:case D3:case N3:case j3:case z3:case $3:return e;default:return t}}case l_:return t}}}Jt.ContextConsumer=D3;Jt.ContextProvider=$3;Jt.Element=s_;Jt.ForwardRef=N3;Jt.Fragment=M3;Jt.Lazy=j3;Jt.Memo=z3;Jt.Portal=l_;Jt.Profiler=R3;Jt.StrictMode=I3;Jt.Suspense=B3;Jt.SuspenseList=F3;Jt.isAsyncMode=function(){return!1};Jt.isConcurrentMode=function(){return!1};Jt.isContextConsumer=function(e){return Oo(e)===D3};Jt.isContextProvider=function(e){return Oo(e)===$3};Jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s_};Jt.isForwardRef=function(e){return Oo(e)===N3};Jt.isFragment=function(e){return Oo(e)===M3};Jt.isLazy=function(e){return Oo(e)===j3};Jt.isMemo=function(e){return Oo(e)===z3};Jt.isPortal=function(e){return Oo(e)===l_};Jt.isProfiler=function(e){return Oo(e)===R3};Jt.isStrictMode=function(e){return Oo(e)===I3};Jt.isSuspense=function(e){return Oo(e)===B3};Jt.isSuspenseList=function(e){return Oo(e)===F3};Jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M3||e===R3||e===I3||e===B3||e===F3||e===_ye||typeof e=="object"&&e!==null&&(e.$$typeof===j3||e.$$typeof===z3||e.$$typeof===$3||e.$$typeof===D3||e.$$typeof===N3||e.$$typeof===IV||e.getModuleId!==void 0)};Jt.typeOf=Oo;(function(e){e.exports=Jt})(Cye);function kye(){const e=gye();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 $O={notify(){},get:()=>[]};function Eye(e,t){let n,r=$O;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=kye())}function u(){n&&(n(),n=void 0,r.clear(),r=$O)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Pye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tye=Pye?S.useLayoutEffect:S.useEffect;function Lye({store:e,context:t,children:n,serverState:r}){const i=S.useMemo(()=>{const s=Eye(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=S.useMemo(()=>e.getState(),[e]);Tye(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||uu;return M.createElement(a.Provider,{value:i},n)}function RV(e=uu){const t=e===uu?OV:()=>S.useContext(e);return function(){const{store:r}=t();return r}}const Aye=RV();function Oye(e=uu){const t=e===uu?Aye:RV(e);return function(){return t().dispatch}}const Mye=Oye();yye(mx.useSyncExternalStoreWithSelector);mye(la.unstable_batchedUpdates);function M2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M2=function(n){return typeof n}:M2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},M2(e)}function Iye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enum
|
||
|
|
||
|
`;if(!(0,e.isString)(R)||R.length<1)throw new Error(`${G} Name (key) of reducer is required. ${B}`);if(!z||!z.length)return;const{duplicates:W,subsets:X}=(0,e.findDuplicatesAndSubsets)(z);if(W.length>1)throw new Error(`${G} Duplicated paths.
|
||
|
|
||
|
${JSON.stringify(W)}
|
||
|
|
||
|
${B}`);if(X.length>1)throw new Error(`${G} You are trying to persist an entire property and also some of its subset.
|
||
|
|
||
|
${JSON.stringify(X)}
|
||
|
|
||
|
${B}`)};e.singleTransformValidator=I;const $=function(z){if(!(0,e.isArray)(z))return;const R=(z==null?void 0:z.map(N=>N.deepPersistKey).filter(N=>N))||[];if(R.length){const N=R.filter((U,G)=>R.indexOf(U)!==G);if(N.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
|
||
|
|
||
|
Duplicates: ${JSON.stringify(N)}`)}};e.transformsValidator=$;const D=function({whitelist:z,blacklist:R}){if(z&&z.length&&R&&R.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(z){const{duplicates:N,subsets:U}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:N,subsets:U},"whitelist")}if(R){const{duplicates:N,subsets:U}=(0,e.findDuplicatesAndSubsets)(R);(0,e.throwError)({duplicates:N,subsets:U},"blacklist")}};e.configValidator=D;const V=function({duplicates:z,subsets:R},N){if(z.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${N}.
|
||
|
|
||
|
${JSON.stringify(z)}`);if(R.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${N}. You must decide if you want to persist an entire path or its specific subset.
|
||
|
|
||
|
${JSON.stringify(R)}`)};e.throwError=V;const Y=function(z){return(0,e.isArray)(z)?z.filter(e.unique).reduce((R,N)=>{const U=N.split("."),G=U[0],B=U.slice(1).join(".")||void 0,W=R.filter(re=>Object.keys(re)[0]===G)[0],X=W?Object.values(W)[0]:void 0;return W||R.push({[G]:B?[B]:void 0}),W&&!X&&B&&(W[G]=[B]),W&&X&&B&&X.push(B),R},[]):[]};e.getRootKeysGroup=Y})(JV);(function(e){var t=Pi&&Pi.__rest||function(f,p){var m={};for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&p.indexOf(g)<0&&(m[g]=f[g]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,g=Object.getOwnPropertySymbols(f);v<g.length;v++)p.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(f,g[v])&&(m[g[v]]=f[g[v]]);return m};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=JV,r=jc,i=w_,o=function(f,p,m={}){const g=m.whitelist||null,v=m.blacklist||null;function x(C){return!!(g&&g.indexOf(C)===-1||v&&v.indexOf(C)!==-1)}return{in:(C,w,k)=>!x(w)&&f?f(C,w,k):C,out:(C,w,k)=>!x(w)&&p?p(C,w,k):C,deepPersistKey:g&&g[0]}},a=(f,p,m,{debug:g,whitelist:v,blacklist:x,transforms:C})=>{if(v||x)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(C);const w=(0,n.cloneDeep)(m);let k=f;if(k&&(0,n.isObjectLike)(k)){const P=(0,n.difference)(p,m);(0,n.isEmpty)(P)||(k=(0,n.mergeDeep)(f,P,{preserveUndefined:!0}),g&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(P)}`)),Object.keys(k).forEach(L=>{if(L!=="_persist"){if((0,n.isObjectLike)(w[L])){w[L]=(0,n.mergeDeep)(w[L],k[L]);return}w[L]=k[L]}})}return g&&k&&(0,n.isObjectLike)(k)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(k)}`),w};e.autoMergeDeep=a;const s=(f,p)=>((0,n.singleTransformValidator)(p,f,i.ConfigType.WHITELIST),o(m=>{if(!p||!p.length)return m;let g=null,v;return p.forEach(x=>{const C=x.split(".");v=(0,n.path)(m,C),typeof v>"u"&&(0,n.isIntegerString)(C[C.length-1])&&(v=r.PLACEHOLDER_UNDEFINED);const w=(0,n.assocPath)(C,v),k=(0,n.isArray)(w)?[]:{};g=(0,n.mergeDeep)(g||k,w,{preservePlaceholder:!0})}),g||m},m=>(0,n.preserveUndefined)(m,p,i.ConfigType.WHITELIST),{whitelist:[f]}));e.createWhitelist=s;const l=(f,p)=>((0,n.singleTransformValidator)(p,f,i.ConfigType.BLACKLIST),o(m=>{if(!p||!p.length)return;const g=(0,n.preserveUndefined)(m,p,i.ConfigType.BLACKLIST,!0);return p.map(x=>x.split(".")).reduce((x,C)=>(0,n.dissocPath)(x,C),g)},m=>(0,n.preserveUndefined)(m,p,i.ConfigType.BLACKLIST),{whitelist:[f]}));e.createBlacklist=l;const u=function(f,p){return p.map(m=>{const g=Object.keys(m)[0],v=m[g];return f===i.ConfigType.WHITELIST?(0,e.createWhitelist)(g,v):(0,e.createBlacklist)(g,v)})};e.getTransforms=u;const c=f=>{var{key:p,whitelist:m,blacklist:g,storage:v,transforms:x,rootReducer:C}=f,w=t(f,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:m,blacklist:g});const k=(0,n.getRootKeysGroup)(m),P=(0,n.getRootKeysGroup)(g),L=Object.keys(C(void 0,{type:""})),A=k.map(Y=>Object.keys(Y)[0]),O=P.map(Y=>Object.keys(Y)[0]),I=L.filter(Y=>A.indexOf(Y)===-1&&O.indexOf(Y)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,k),D=(0,e.getTransforms)(i.ConfigType.BLACKLIST,P),V=(0,n.isArray)(m)?I.map(Y=>(0,e.createBlacklist)(Y)):[];return Object.assign(Object.assign({},w),{key:p,storage:v,transforms:[...$,...D,...V,...x||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=c})(QV);const Fl=(e,t)=>Math.floor(e/t)*t,Ha=(e,t)=>Math.round(e/t)*t;function i3e(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var o3e=i3e,a3e=/\s/;function s3e(e){for(var t=e.length;t--&&a3e.test(e.charAt(t)););return t}var l3e=s3e,u3e=l3e,c3e=/^\s+/;function d3e(e){return e&&e.slice(0,u3e(e)+1).replace(c3e,"")}var f3e=d3e;function h3e(e){var t=typeof
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r8e(e){return J9e(e)||e8e(e)||t8e(e)||n8e()}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var i8e={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},o8e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cs(this,e),this.init(t,n)}return ds(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||i8e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,HM(HM({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Va=new o8e,du=function(){function e(){cs(this,e),this.observers={}}return ds(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value: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];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Kp(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function VM(e){return e==null?"":""+e}function a8e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function j_(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function UM(e,t,n){var r=j_(e,t,Object),i=r.obj,o=r.k;i[o]=n}function s8e(e,t,n,r){var i=j_(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function nb(e,t){var n=j_(e,t),r=n.obj,i=n.k;if(r)return r[i]}function WM(e,t,n){var r=nb(e,n);return r!==void 0?r:nb(t,n)}function dW(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):dW(e[r],t[r],n):e[r]=t[r]);return e}function Ud(e){return e.replace
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M_e(e,t){return T_e(e)||L_e(e,t)||A_e(e,t)||O_e()}function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(r){CW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I_e=function(t,n){var r=S.useRef();return S.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Ce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=S.useContext(E_e)||{},i=r.i18n,o=r.defaultNS,a=n||i||C_e();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new P_e),!a){Nx("You will need to pass in an i18next instance by using initReactI18next");var s=function($){return Array.isArray($)?$[$.length-1]:$},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&Nx("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=$w($w($w({},S_e()),a.options.react),t),c=u.useSuspense,f=u.keyPrefix,p=e||o||a.options&&a.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var m=(a.isInitialized||a.initializedStoreOnce)&&p.every(function(I){return p_e(I,a,u)});function g(){return a.getFixedT(null,u.nsMode==="fallback"?p:p[0],f)}var v=S.useState(g),x=M_e(v,2),C=x[0],w=x[1],k=p.join(),P=I_e(k),L=S.useRef(!0);S.useEffect(function(){var I=u.bindI18n,$=u.bindI18nStore;L.current=!0,!m&&!c&&gI(a,p,function(){L.current&&w(g)}),m&&P&&P!==k&&L.current&&w(g);function D(){L.current&&w(g)}return I&&a&&a.on(I,D),$&&a&&a.store.on($,D),function(){L.current=!1,I&&a&&I.split(" ").forEach(function(V){return a.off(V,D)}),$&&a&&$.split(" ").forEach(function(V){return a.store.off(V,D)})}},[a,k]);var A=S.useRef(!0);S.useEffect(function(){L.current&&!A.current&&w(g),A.current=!1},[a,f]);var O=[C,a,m];if(O.t=C,O.i18n=a,O.ready=m,m||!m&&!c)return O;throw new Promise(function(I){gI(a,p,function(){I()})})}ht.use(SW).use(mW).use(k_e).init({fallbackLng:"en",debug:!1,ns:["common","gallery","hotkeys","parameters","settings","modelmanager","toast","tooltip","unifiedcanvas"],backend:{loadPath:"/locales/{{ns}}/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const R_e={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:ht.isInitialized?ht.t("common:statusDisconnected"):"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},infill_methods:[],hasError:!1,wasErrorSeen:!0,isCancelable:!0,saveIntermediatesInterval:5,enableImageDebugging:!1,toastQueue:[],searchFolder:null,foundModels:null,openModel:null},_W=Qc({name:"system",initialState:R_e,reducers:{setShouldDisplayInProgressType:(e,t)=>{e.shouldDisplayInProgressType=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=ht.t("common:statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?ht.t("common:statusConnected"):ht.t("common:statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,a={timestamp:n,message:r,level:i
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Kd&&o!==void 0,l=a!==Kd&&a!==void 0,u=this.padding(),c=o-u*2,f=a-u*2,p=0,m=this.wrap(),g=m!==ZI,v=m!==gPe&&g,x=this.ellipsis();this.textArr=[],Uw().font=this._getContextFont();for(var C=x?this._getTextWidth(Vw):0,w=0,k=t.length;w<k;++w){var P=t[w],L=this._getTextWidth(P);if(s&&L>c)for(;P.length>0;){for(var A=0,O=P.length,I="",$=0;A<O;){var D=A+O>>>1,V=P.slice(0,D+1),Y=this._getTextWidth(V)+C;Y<=c?(A=D+1,I=V,$=Y):O=D}if(I){if(v){var z,R=P[I.length],N=R===Hv||R===qI;N&&$<=c?z=I.length:z=Math.max(I.lastIndexOf(Hv),I.lastIndexOf(qI))+1,z>0&&(A=z,I=I.slice(0,A),$=this._getTextWidth(I))}I=I.trimRight(),this._addTextLine(I),r=Math.max(r,$),p+=i;var U=this._shouldHandleEllipsis(p);if(U){this._tryToAddEllipsisToLastLine();break}if(P=P.slice(A),P=P.trimLeft(),P.length>0&&(L=this._getTextWidth(P),L<=c)){this._addTextLine(P),p+=i,r=Math.max(r,L);break}}else break}else this._addTextLine(P),p+=i,r=Math.max(r,L),this._shouldHandleEllipsis(p)&&w<k-1&&this._tryToAddEllipsisToLastLine();if(l&&p+i>f)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Kd&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==ZI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Kd&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+Vw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Vw)}}getStrokeScaleEnabled(){return!0}}Hn.prototype._fillFunc=bPe;Hn.prototype._strokeFunc=SPe;Hn.prototype.className=cPe;Hn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Vn(Hn);K.overWriteSetter(Hn,"width",K_());K.overWriteSetter(Hn,"height",K_());K.addGetterSetter(Hn,"fontFamily","Arial");K.addGetterSetter(Hn,"fontSize",12,Pe());K.addGetterSetter(Hn,"fontStyle",bG);K.addGetterSetter(Hn,"fontVariant",bG);K.addGetterSetter(Hn,"padding",0,Pe());K.addGetterSetter(Hn,"align",yG);K.addGetterSetter(Hn,"verticalAlign",dPe);K.addGetterSetter(Hn,"lineHeight",1,Pe());K.addGetterSetter(Hn,"wrap",mPe);K.addGetterSetter(Hn,"ellipsis",!1,ha());K.addGetterSetter(Hn,"letterSpacing",0,Pe());K.addGetterSetter(Hn,"text","",qh());K.addGetterSetter(Hn,"textDecoration","");var CPe="",wG="normal";function CG(e){e.fillText(this.partialText,0,0)}function xG(e){e.strokeText(this.partialText,0,0)}class mr extends ye{constructor(t){super(t),this.dummyCanvas=te.createCanvasElement(),this.dataArray=[],this.dataArray=nn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=nn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_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=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return te.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHe
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */var p7=function(e,t){return p7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},p7(e,t)};function _Ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");p7(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ja=function(){return Ja=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ja.apply(this,arguments)};function JR(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var So=function(e,t){return Number(e.toFixed(t))},kNe=function(e,t){return typeof e=="number"?e:t},Cr=function(e,t,n){n&&typeof n=="function"&&n(e,t)},ENe=function(e){return-Math.cos(e*Math.PI)/2+.5},PNe=function(e){return e},TNe=function(e){return e*e},LNe=function(e){return e*(2-e)},ANe=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},ONe=function(e){return e*e*e},MNe=function(e){return--e*e*e+1},INe=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},RNe=function(e){return e*e*e*e},$Ne=function(e){return 1- --e*e*e*e},DNe=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},NNe=function(e){return e*e*e*e*e},BNe=function(e){return 1+--e*e*e*e*e},FNe=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},iY={easeOut:ENe,linear:PNe,easeInQuad:TNe,easeOutQuad:LNe,easeInOutQuad:ANe,easeInCubic:ONe,easeOutCubic:MNe,easeInOutCubic:INe,easeInQuart:RNe,easeOutQuart:$Ne,easeInOutQuart:DNe,easeInQuint:NNe,easeOutQuint:BNe,easeInOutQuint:FNe},oY=function(e){typeof e=="number"&&cancelAnimationFrame(e)},Fa=function(e){e.mounted&&(oY(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function aY(e,t,n,r){if(e.mounted){var i=new Date().getTime(),o=1;Fa(e),e.animation=function(){if(!e.mounted)return oY(e.animation);var a=new Date().getTime()-i,s=a/n,l=iY[t],u=l(s);a>=n?(r(o),e.animation=null):e.animation&&(r(u),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function Pu(e,t,n,r){var i=zNe(t);if(!(!e.mounted||!i)){var o=e.setTransformState,a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=t.scale-s,f=t.positionX-l,p=t.positionY-u;n===0?o(t.scale,t.positionX,t.positionY):aY(e,r,n,function(m){var g=s+c*m,v=l+f*m,x=u+p*m;o(g,v,x)})}}function zNe(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(isNaN(t)||isNaN(n)||isNaN(r))}function jNe(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,o=t.offsetWidth,a=t.offsetHeight,s=o*n,l=a*n,u=r-s,c=i-l;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:s,newDiffWidth:u,newContentHeight:l,newDiffHeight:c}}var HNe=function(e,t,n,r,i,o,a){var s=e>t?n*(a?1:.5):0,l=r>i?o*(a?1:.5):0,u=e-t-s,c=s,f=r-i-l,p=l;return{minPositionX:u,maxPositionX:c,minPositionY:f,maxPositionY:p}},xk=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,i=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var o=jNe(n,r,t),a=o.wrapperWidth,s=o.wrapperHeight,l=o.newContentWidth,u=o.newDiffWidth,c=o.newContentHeight,f=o.newDiffHeight,p=HNe(a,l,u,s,c,f,Boolean(i));return p},xh=function(e,t){var n=xk(e,t);return e.bounds=n,n};function C4(e,t,n,r,i,o,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,f=0,p=0;a&&(f=i,p=o);var m=m7(e,s-f,u+f,r),g=m7(t,l-p,c+p,r);return{x:m,y:g}}var m7=function(e,t,n,r){return r?e<t?So(t,2):e>n?So(n,2):So(e,2):So(e,2)};function x4(e,t,n,r,i,o){var a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=r-s;if(typeof t!="number"||typeof n!="number")return console.error("Mouse X and Y position were not provided!"),{x:l,y:u};var f=l-t*c,p=u-n*c,m=C4(f,p,i,o,0,0,null);return m}function F1(e,t,n,r,i){var o=i?r:0,a=t-o;return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var e$=function(e,t){var n=e.setup.pann
|
||
|
position: relative;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
overflow: hidden;
|
||
|
-webkit-touch-callout: none; /* iOS Safari */
|
||
|
-webkit-user-select: none; /* Safari */
|
||
|
-khtml-user-select: none; /* Konqueror HTML */
|
||
|
-moz-user-select: none; /* Firefox */
|
||
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
||
|
user-select: none;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh {
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
transform-origin: 0% 0%;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh img {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
`,s$={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};MBe(IBe);var RBe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=S.useContext(gY).setComponents,u=S.useRef(null),c=S.useRef(null);return S.useEffect(function(){var f=u.current,p=c.current;f!==null&&p!==null&&l&&l(f,p)},[]),M.createElement("div",{ref:u,className:"react-transform-wrapper "+s$.wrapper+" "+r,style:a},M.createElement("div",{ref:c,className:"react-transform-component "+s$.content+" "+o,style:s},t))};function $Be({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=S.useState(0),[a,s]=S.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},c=()=>{s(!a)};return b(OBe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:f,zoomOut:p,resetTransform:m,centerView:g})=>j(gn,{children:[j("div",{className:"lightbox-image-options",children:[b(Ie,{icon:b(ZRe,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>f(),fontSize:20}),b(Ie,{icon:b(QRe,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>p(),fontSize:20}),b(Ie,{icon:b(qRe,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),b(Ie,{icon:b(XRe,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),b(Ie,{icon:b(n$e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:c,fontSize:20}),b(Ie,{icon:b(m4,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{m(),o(0),s(!1)},fontSize:20})]}),b(RBe,{wrapperStyle:{width:"100%",height:"100%"},children:b("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>g(1,0,"easeOut")})})]})})}function DBe(){const e=ge(),t=ne(p=>p.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ne(vK),[a,s]=S.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},c=()=>{e(N_())},f=()=>{e(D_())};return Re("Esc",()=>{t&&e(Qf(!1))},[t]),j("div",{className:"lightbox-container",children:[b(Ie,{icon:b(YRe,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Qf(!1))},fontSize:20}),j("div",{className:"lightbox-display-container",children:[j("div",{className:"lightbox-preview-wrapper",children:[b(mK,{}),!r&&j("div",{className:"current-image-next-prev-buttons",children:[b("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&b(_o,{"aria-label":"Previous image",icon:b(iK,{className:"next-prev-button"}),variant:"unstyled",onClick:c})}),b("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&b(_o,{"aria-label":"Next image",icon:b(oK,{className:"next-prev-button"}),variant:"unstyled",onClick:f})})]}),n&&j(gn,{children:[b($Be,{image:n.url,styleClass:"lightbox-image"}),r&&b(mk,{image:n})]})]}),b(rY,{})]})]})}function NBe(e){return We({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(e)}const BBe=Fe(sd,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),FBe=()=>{const{resultImages:e,userImages:t}=ne(BBe);return n=>{const r=e.find(o=>o.uuid===n);if(r)return r;const i=t.find(o=>o.uuid===n);if(i)return i}},zBe=Fe([od,o4,Un],(e,t,n)=>{const{shouldShowDualDisplay:r,shouldPinParametersPanel:i}=e,{isLightboxOpen:o}=t;return{shouldShowDualDisplay:r,shouldPinParametersPanel:i,isLightboxOpen:o,shouldShowDualDisplayButton:["inpainting"].includes(n),activeTabName:n}},{memoizeOptions:{resultEqualityCheck:Ue}}),kk=e=>{const t=ge(),{optionsPanel:n,children:r,styleClass:i}=e,{activeTabName:o,shouldShowDualDisplay:a,isLightboxOpen:s,shouldShowDualDisplayButton:l}=ne(zBe),u=FBe(),c=()=>{t(eke(!a)),t(hr(!0))},f=p=>{const m=p.dataTransfer.getData("invokeai/imageUuid"),g=u(m);g&&(o==="img2img"?t(Kh(g)):o==="unifiedCanvas"&&t(Z3(g)))};return b("div",{className:i?`workarea-wrapper ${i}`:"workarea-wrapper",child
|
||
|
* @license React
|
||
|
* react-reconciler.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 LFe=function(t){var n={},r=S,i=Ec,o=Object.assign;function a(d){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),L=Symbol.iterator;function A(d){return d===null||typeof d!="object"?null:(d=L&&d[L]||d["@@iterator"],typeof d=="function"?d:null)}function O(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case c:return"Fragment";case u:return"Portal";case p:return"Profiler";case f:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case g:return(d.displayName||"Context")+".Consumer";case m:return(d._context.displayName||"Context")+".Provider";case v:var h=d.render;return d=d.displayName,d||(d=h.displayName||h.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case w:return h=d.displayName||null,h!==null?h:O(d.type)||"Memo";case k:h=d._payload,d=d._init;try{return O(d(h))}catch(y){}}return null}function I(d){var h=d.type;switch(d.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=h.render,d=d.displayName||d.name||"",h.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return O(h);case 8:return h===f?"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 h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function $(d){var h=d,y=d;if(d.alternate)for(;h.return;)h=h.return;else{d=h;do h=d,h.flags&4098&&(y=h.return),d=h.return;while(d)}return h.tag===3?y:null}function D(d){if($(d)!==d)throw Error(a(188))}function V(d){var h=d.alternate;if(!h){if(h=$(d),h===null)throw Error(a(188));return h!==d?null:d}for(var y=d,_=h;;){var E=y.return;if(E===null)break;var T=E.alternate;if(T===null){if(_=E.return,_!==null){y=_;continue}break}if(E.child===T.child){for(T=E.child;T;){if(T===y)return D(E),d;if(T===_)return D(E),h;T=T.sibling}throw Error(a(188))}if(y.return!==_.return)y=E,_=T;else{for(var F=!1,Q=E.child;Q;){if(Q===y){F=!0,y=E,_=T;break}if(Q===_){F=!0,_=E,y=T;break}Q=Q.sibling}if(!F){for(Q=T.child;Q;){if(Q===y){F=!0,y=T,_=E;break}if(Q===_){F=!0,_=T,y=E;break}Q=Q.sibling}if(!F)throw Error(a(189))}}if(y.alternate!==_)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:h}function Y(d){return d=V(d),d!==null?z(d):null}function z(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var h=z(d);if(h!==null)return h;d=d.sibling}return null}function R(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var h=R(d);if(h!==null)return h}d=d.sibling}return null}var N=Array.isArray,U=t.getPublicInstance,G=t.getRootHostContext,B=t.getChildHostContext,W=t.prepareForCommit,X=t.resetAfterCommit,re=t.createInstance,le=t.appendInitialChild,he=t.finalizeInitialChildren,se=t.prepareUpdate,Ae=t.shouldSetTextContent,be=t.createTextInstance,De=t.scheduleTimeout,fe=t.cancelTimeout,Xe=t.noTimeout,rt=t.isPrimaryRenderer,Ze=t.supportsMutation,et=t.supportsPersistence,nt=t.supportsHydration,v
|
||
|
`+Au+d}var ol=!1;function gd(d,h){if(!d||ol)return"";ol=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(_e){var _=_e}Reflect.construct(d,[],h)}else{try{h.call()}catch(_e){_=_e}d.call(h.prototype)}else{try{throw Error()}catch(_e){_=_e}d()}}catch(_e){if(_e&&_&&typeof _e.stack=="string"){for(var E=_e.stack.split(`
|
||
|
`),T=_.stack.split(`
|
||
|
`),F=E.length-1,Q=T.length-1;1<=F&&0<=Q&&E[F]!==T[Q];)Q--;for(;1<=F&&0<=Q;F--,Q--)if(E[F]!==T[Q]){if(F!==1||Q!==1)do if(F--,Q--,0>Q||E[F]!==T[Q]){var ae=`
|
||
|
`+E[F].replace(" at new "," at ");return d.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",d.displayName)),ae}while(1<=F&&0<=Q);break}}}finally{ol=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Ou(d):""}var q4=Object.prototype.hasOwnProperty,op=[],al=-1;function Ro(d){return{current:d}}function on(d){0>al||(d.current=op[al],op[al]=null,al--)}function en(d,h){al++,op[al]=d.current,d.current=h}var ga={},gr=Ro(ga),Fr=Ro(!1),ps=ga;function sl(d,h){var y=d.type.contextTypes;if(!y)return ga;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===h)return _.__reactInternalMemoizedMaskedChildContext;var E={},T;for(T in y)E[T]=h[T];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=h,d.__reactInternalMemoizedMaskedChildContext=E),E}function zr(d){return d=d.childContextTypes,d!=null}function vd(){on(Fr),on(gr)}function Y1(d,h,y){if(gr.current!==ga)throw Error(a(168));en(gr,h),en(Fr,y)}function Mu(d,h,y){var _=d.stateNode;if(h=h.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var E in _)if(!(E in h))throw Error(a(108,I(d)||"Unknown",E));return o({},y,_)}function ll(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||ga,ps=gr.current,en(gr,d),en(Fr,Fr.current),!0}function q1(d,h,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=Mu(d,h,ps),_.__reactInternalMemoizedMergedChildContext=d,on(Fr),on(gr),en(gr,d)):on(Fr),en(Fr,y)}var Di=Math.clz32?Math.clz32:Z4,X1=Math.log,X4=Math.LN2;function Z4(d){return d>>>=0,d===0?32:31-(X1(d)/X4|0)|0}var yd=64,Iu=4194304;function Ru(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function bd(d,h){var y=d.pendingLanes;if(y===0)return 0;var _=0,E=d.suspendedLanes,T=d.pingedLanes,F=y&268435455;if(F!==0){var Q=F&~E;Q!==0?_=Ru(Q):(T&=F,T!==0&&(_=Ru(T)))}else F=y&~E,F!==0?_=Ru(F):T!==0&&(_=Ru(T));if(_===0)return 0;if(h!==0&&h!==_&&!(h&E)&&(E=_&-_,T=h&-h,E>=T||E===16&&(T&4194240)!==0))return h;if(_&4&&(_|=y&16),h=d.entangledLanes,h!==0)for(d=d.entanglements,h&=_;0<h;)y=31-Di(h),E=1<<y,_|=d[y],h&=~E;return _}function Q4(d,h){switch(d){case 1:case 2:case 4:return h+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ap(d,h){for(var y=d.suspendedLanes,_=d.pingedLanes,E=d.expirationTimes,T=d.pendingLanes;0<T;){var F=31-Di(T),Q=1<<F,ae=E[F];ae===-1?(!(Q&y)||Q&_)&&(E[F]=Q4(Q,h)):ae<=h&&(d.expiredLanes|=Q),T&=~Q}}function sp(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Z1(){var d=yd;return yd<<=1,!(yd&4194240)&&(yd=64),d}function lp(d){for(var h=[],y=0;31>y;y++)h.push(d);return h}function va(d,h,y){d.pendingLanes|=h,h!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,h=31-Di(h),d[h]=y}function up(d,h){var y=d.pendingLanes&~h;d.pendingLanes=h,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=h,d.mutableReadLanes&=h,d.entangledLanes&=h,h=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<y;){var E=31-Di(y),T=1<<E;h[E]=0,_[E]=-1,d[E]=-1,y&=~T}}function $u(d,h){var y=d.entangledLanes|=h;for(d=d.entanglements;y;){var _=31-Di(y),E=1<<_;E&h|d[_]&h&&(d[_]|=h),y&=~E}}var Ct=0;function Q1(d){return d&=-d,1<d?4<d?d&268435455?16:536870912:4:1}var Sd=i.unstable_scheduleCallback,wd=i.unstable_cancelCallback,J1=i.unsta
|
||
|
Error generating stack: `+T.message+`
|
||
|
`+T.stack}return{value:d,source:h,stack:E,digest:null}}function k5(d,h,y){return{value:d,source:null,stack:y!=null?y:null,digest:h!=null?h:null}}function E5(d,h){try{console.error(h.value)}catch(y){setTimeout(function(){throw y})}}var Hq=typeof WeakMap=="function"?WeakMap:Map;function HE(d,h,y){y=vs(-1,y),y.tag=3,y.payload={element:null};var _=h.value;return y.callback=function(){A0||(A0=!0,G5=_),E5(d,h)},y}function VE(d,h,y){y=vs(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var E=h.value;y.payload=function(){return _(E)},y.callback=function(){E5(d,h)}}var T=d.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(y.callback=function(){E5(d,h),typeof _!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var F=h.stack;this.componentDidCatch(h.value,{componentStack:F!==null?F:""})}),y}function UE(d,h,y){var _=d.pingCache;if(_===null){_=d.pingCache=new Hq;var E=new Set;_.set(h,E)}else E=_.get(h),E===void 0&&(E=new Set,_.set(h,E));E.has(y)||(E.add(y),d=nX.bind(null,d,h,y),h.then(d,d))}function WE(d){do{var h;if((h=d.tag===13)&&(h=d.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return d;d=d.return}while(d!==null);return null}function GE(d,h,y,_,E){return d.mode&1?(d.flags|=65536,d.lanes=E,d):(d===h?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(h=vs(-1,1),h.tag=2,cl(y,h,1))),y.lanes|=1),d)}var Vq=s.ReactCurrentOwner,yi=!1;function ii(d,h,y,_){h.child=d===null?bE(h,null,y,_):Ed(h,d.child,y,_)}function KE(d,h,y,_,E){y=y.render;var T=h.ref;return kd(h,E),_=b5(d,h,y,_,T,E),y=S5(),d!==null&&!yi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~E,ys(d,h,E)):(An&&y&&e5(h),h.flags|=1,ii(d,h,_,E),h.child)}function YE(d,h,y,_,E){if(d===null){var T=y.type;return typeof T=="function"&&!Q5(T)&&T.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(h.tag=15,h.type=T,qE(d,h,T,_,E)):(d=D0(y.type,null,_,h,h.mode,E),d.ref=h.ref,d.return=h,h.child=d)}if(T=d.child,!(d.lanes&E)){var F=T.memoizedProps;if(y=y.compare,y=y!==null?y:i0,y(F,_)&&d.ref===h.ref)return ys(d,h,E)}return h.flags|=1,d=ml(T,_),d.ref=h.ref,d.return=h,h.child=d}function qE(d,h,y,_,E){if(d!==null){var T=d.memoizedProps;if(i0(T,_)&&d.ref===h.ref)if(yi=!1,h.pendingProps=_=T,(d.lanes&E)!==0)d.flags&131072&&(yi=!0);else return h.lanes=d.lanes,ys(d,h,E)}return P5(d,h,y,_,E)}function XE(d,h,y){var _=h.pendingProps,E=_.children,T=d!==null?d.memoizedState:null;if(_.mode==="hidden")if(!(h.mode&1))h.memoizedState={baseLanes:0,cachePool:null,transitions:null},en(Od,Bi),Bi|=y;else{if(!(y&1073741824))return d=T!==null?T.baseLanes|y:y,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:d,cachePool:null,transitions:null},h.updateQueue=null,en(Od,Bi),Bi|=d,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=T!==null?T.baseLanes:y,en(Od,Bi),Bi|=_}else T!==null?(_=T.baseLanes|y,h.memoizedState=null):_=y,en(Od,Bi),Bi|=_;return ii(d,h,E,y),h.child}function ZE(d,h){var y=h.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(h.flags|=512,h.flags|=2097152)}function P5(d,h,y,_,E){var T=zr(y)?ps:gr.current;return T=sl(h,T),kd(h,E),y=b5(d,h,y,_,T,E),_=S5(),d!==null&&!yi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~E,ys(d,h,E)):(An&&_&&e5(h),h.flags|=1,ii(d,h,y,E),h.child)}function QE(d,h,y,_,E){if(zr(y)){var T=!0;ll(h)}else T=!1;if(kd(h,E),h.stateNode===null)y0(d,h),mE(h,y,_),f5(h,y,_,E),_=!0;else if(d===null){var F=h.stateNode,Q=h.memoizedProps;F.props=Q;var ae=F.context,_e=y.contextType;typeof _e=="object"&&_e!==null?_e=io(_e):(_e=zr(y)?ps:gr.current,_e=sl(h,_e));var Ke=y.getDerivedStateFromProps,dt=typeof Ke=="function"||typeof F.getSnapshotBeforeUpdate=="function";dt||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Q!==_||ae!==_e)&&gE(h,F,_,_e),ul=!1;var Be=h.memoizedState;F.state=Be,l0(h,_,F,E),ae=h.memoizedState,Q!==_||Be!==ae||Fr.current||ul?(typeof Ke=="function"&&(d5(h,y,Ke,_),ae=h.memoizedState),(Q=ul||pE(h,y,Q,_,Be,ae,_e))?(dt||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.c
|
||
|
`+(_.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return U(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:lX,findFiberByHostInstance:d.findFiberByHostInstance||uX,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(h.isDisabled||!h.supportsFiber)d=!0;else{try{Cd=h.inject(d),to=h}catch(y){}d=!!h.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,h,y,_){if(!J)throw Error(a(363));d=j5(d,h);var E=mt(d,y,_).disconnect;return{disconnect:function(){E()}}},n.registerMutableSourceForHydration=function(d,h){var y=h._getVersion;y=y(h._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[h,y]:d.mutableSourceEagerHydrationData.push(h,y)},n.runWithPriority=function(d,h){var y=Ct;try{return Ct=d,h()}finally{Ct=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,h,y,_){var E=h.current,T=Wr(),F=hl(E);return y=LP(y),h.context===null?h.context=y:h.pendingContext=y,h=vs(T,F),h.payload={element:d},_=_===void 0?null:_,_!==null&&(h.callback=_),d=cl(E,h,F),d!==null&&(so(d,E,F,T),s0(d,E,F)),F},n};(function(e){e.exports=LFe})(TFe);const AFe=M7(g7);var gb={},OFe={get exports(){return gb},set exports(e){gb=e}},ud={};/**
|
||
|
* @license React
|
||
|
* react-reconciler-constants.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.
|
||
|
*/ud.ConcurrentRoot=1;ud.ContinuousEventPriority=4;ud.DefaultEventPriority=16;ud.DiscreteEventPriority=1;ud.IdleEventPriority=536870912;ud.LegacyRoot=0;(function(e){e.exports=ud})(OFe);const l$={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let u$=!1,c$=!1;const Bk=".react-konva-event",MFe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
||
|
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
||
|
Consider to add onDragMove or onDragEnd events.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/256
|
||
|
`,IFe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
||
|
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/194
|
||
|
`,RFe={};function k4(e,t,n=RFe){if(!u$&&"zIndex"in t&&(console.warn(IFe),u$=!0),!c$&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(MFe),c$=!0)}for(var o in n)if(!l$[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var c=t._useStrictMode,f={},p=!1;const m={};for(var o in t)if(!l$[o]){var a=o.slice(0,2)==="on",g=n[o]!==t[o];if(a&&g){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(m[l]=t[o])}!a&&(t[o]!==n[o]||c&&t[o]!==e.getAttr(o))&&(p=!0,f[o]=t[o])}p&&(e.setAttrs(f),Tu(e));for(var l in m)e.on(l+Bk,m[l])}function Tu(e){if(!Ve.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const _Y={},$Fe={};Hc.Node.prototype._applyProps=k4;function DFe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Tu(e)}function NFe(e,t,n){let r=Hc[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=Hc.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return k4(l,o),l}function BFe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function FFe(e,t,n){return!1}function zFe(e){return e}function jFe(){return null}function HFe(){return null}function VFe(e,t,n,r){return $Fe}function UFe(){}function WFe(e){}function GFe(e,t){return!1}function KFe(){return _Y}function YFe(){return _Y}const qFe=setTimeout,XFe=clearTimeout,ZFe=-1;function QFe(e,t){return!1}const JFe=!1,eze=!0,tze=!0;function nze(e,t){t.parent===e?t.moveToTop():e.add(t),Tu(e)}function rze(e,t){t.parent===e?t.moveToTop():e.add(t),Tu(e)}function kY(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Tu(e)}function ize(e,t,n){kY(e,t,n)}function oze(e,t){t.destroy(),t.off(Bk),Tu(e)}function aze(e,t){t.destroy(),t.off(Bk),Tu(e)}function sze(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function lze(e,t,n){}function uze(e,t,n,r,i){k4(e,i,r)}function cze(e){e.hide(),Tu(e)}function dze(e){}function fze(e,t){(t.visible==null||t.visible)&&e.show()}function hze(e,t){}function pze(e){}function mze(){}const gze=()=>gb.DefaultEventPriority,vze=Object.freeze(Object.defineProperty({__proto__:null,appendChild:nze,appendChildToContainer:rze,appendInitialChild:DFe,cancelTimeout:XFe,clearContainer:pze,commitMount:lze,commitTextUpdate:sze,commitUpdate:uze,createInstance:NFe,createTextInstance:BFe,detachDeletedInstance:mze,finalizeInitialChildren:FFe,getChildHostContext:YFe,getCurrentEventPriority:gze,getPublicInstance:zFe,getRootHostContext:KFe,hideInstance:cze,hideTextInstance:dze,idlePriority:Ec.unstable_IdlePriority,insertBefore:kY,insertInContainerBefore:ize,isPrimaryRenderer:JFe,noTimeout:ZFe,now:Ec.unstable_now,prepareForCommit:jFe,preparePortalMount:HFe,prepareUpdate:VFe,removeChild:oze,removeChildFromContainer:aze,resetAfterCommit:UFe,resetTextContent:WFe,run:Ec.unstable_runWithPriority,scheduleTimeout:qFe,shouldDeprioritizeSubtree:GFe,shouldSetTextContent:QFe,supportsMutation:tze,unhideInstance:fze,unhideTextInstance:hze,warnsIfNotActing:eze},Symbol.toStringTag,{value:"Module"}));var yze=Object.defineProperty,bze=Object.defineProperties,Sze=Object.getOwnPropertyDescriptors,d$=Object.getOwnPropertySymbols,wze=Object.prototype.hasOwnProperty,Cze=Object.prototype.propertyIsEnumerable,f$=(e,t,n)=>t in e?yze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h$=(e,t)=>{for(var n in t||(t={}))wze.call(t,n)&&f$(e,n,t[n]);if(d$)for(var n of d$(t))Cze.call(t,n)
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
|
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,0)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
</svg>`.replaceAll("black",e),xje=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ne(Cje),[a,s]=S.useState(null),[l,u]=S.useState(0),c=S.useRef(null),f=S.useCallback(()=>{u(l+1),setTimeout(f,500)},[l]);return S.useEffect(()=>{if(a)return;const p=new Image;p.onload=()=>{s(p)},p.src=v$(n)},[a,n]),S.useEffect(()=>{a&&(a.src=v$(n))},[a,n]),S.useEffect(()=>{const p=setInterval(()=>u(m=>(m+1)%5),50);return()=>clearInterval(p)},[]),!a||!Xd(r.x)||!Xd(r.y)||!Xd(o)||!Xd(i.width)||!Xd(i.height)?null:b(Ks,{ref:c,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Xd(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},_je=Fe([Et],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Ue}}),kje=e=>{const{...t}=e,{objects:n}=ne(_je);return b(Gs,{listening:!1,...t,children:n.filter(I_).map((r,i)=>b(vb,{points:r.points,stroke:"rgb(0,0,0)",strokeWidth:r.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:r.tool==="brush"?"source-over":"destination-out"},i))})};var qu=S,Eje=function(t,n,r){const i=qu.useRef("loading"),o=qu.useRef(),[a,s]=qu.useState(0),l=qu.useRef(),u=qu.useRef(),c=qu.useRef();return(l.current!==t||u.current!==n||c.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,c.current=r),qu.useLayoutEffect(function(){if(!t)return;var f=document.createElement("img");function p(){i.current="loaded",o.current=f,s(Math.random())}function m(){i.current="failed",o.current=void 0,s(Math.random())}return f.addEventListener("load",p),f.addEventListener("error",m),n&&(f.crossOrigin=n),r&&(f.referrerpolicy=r),f.src=t,function(){f.removeEventListener("load",p),f.removeEventListener("error",m)}},[t,n,r]),[o.current,i.current]};const AY=e=>{const{url:t,x:n,y:r}=e,[i]=Eje(t);return b(TY,{x:n,y:r,image:i,listening:!1})},Pje=Fe([Et],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Ue}}),Tje=()=>{const{objects:e}=ne(Pje);return e?b(Gs,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(Zy(t))return b(AY,{x:t.x,y:t.y,url:t.image.url},n);if(J7e(t)){const r=b(vb,{points:t.points,stroke:t.color?Ac(t.color):"rgb(0,0,0)",strokeWidth:t.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:t.tool==="brush"?"source-over":"destination-out"},n);return t.clip?b(Gs,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(e9e(t))return b(Ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Ac(t.color)},n);if(t9e(t))return b(Ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},Lje=Fe([Et],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingImage:r,shouldShowStagingOutline:i,boundingBoxCoordinates:{x:o,y:a},boundingBoxDimensions:{width:s,height:l}}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}},{memoizeOptions:{resultEqualityCheck:Ue}}),Aje=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=ne(Lje);return j(Gs,{...t,children:[r&&n&&b(AY,{url:n.image.url,x:o,y:a}),i&&j(Gs,{children:[b(Ks,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),b(Ks,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},Oje=Fe([Et],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingOutline:r,shouldShowStagingImage:i}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:i,shouldShowStagingOutline:r}},{memoizeOptions:{resultEqualityCheck:Ue}}),Mje=()=>{const e=ge(),{isOn
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OVe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MVe(e){if(Array.isArray(e))return w7(e)}function k$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k$(Object(n),!0).forEach(function(r){WY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(e,t){return $Ve(e)||RVe(e,t)||GY(e,t)||IVe()}function IVe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GY(e,t){if(e){if(typeof e=="string")return w7(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 w7(e,t)}}function w7(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 RVe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function $Ve(e){if(Array.isArray(e))return e}var DVe="file-invalid-type",NVe="file-too-large",BVe="file-too-small",FVe="too-many-files",zVe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:DVe,message:"File type must be ".concat(n)}},P$=function(t){return{code:NVe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},T$=function(t){return{code:BVe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},jVe={code:FVe,message:"Too many files"};function KY(e,t){var n=e.type==="application/x-moz-file"||LVe(e,t);return[n,n?null:zVe(t)]}function YY(e,t,n){if(lc(e.size))if(lc(t)&&lc(n)){if(e.size>n)return[!1,P$(n)];if(e.size<t)return[!1,T$(t)]}else{if(lc(t)&&e.size<t)return[!1,T$(t)];if(lc(n)&&e.size>n)return[!1,P$(n)]}return[!0,null]}function lc(e){return e!=null}function HVe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=KY(l,n),c=Xg(u,1),f=c[0],p=YY(l,r,i),m=Xg(p,1),g=m[0],v=s?s(l):null;return f&&g&&!v})}function Sb(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function e2(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function L$(e){e.preventDefault()}function VVe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function UVe(e){return e.indexOf("Edge/")!==-1}function WVe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return VVe(e)||UVe(e)}function La(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!Sb(r)&&s&&s.apply(void 0,[r].concat(o)),Sb(r)})}}function GVe(){return"showOpenFilePicker"in window}function KVe(e){if(lc(e)){var t=Object.entries(e).filter(function(n){var r=Xg(n,2),i=r[0],o=r[1],a=!0;return qY(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(XY))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Xg(r,2),o=i[0],a=i[1];return E$(E$({},n),{},WY({},o,a))},{});return[{description:"Files",accept:t}]}return e}function YVe(e){if(lc(e))return Object.entries(e).reduce(function(t,n){var r=Xg(n,2),i=r[0],o=r[1];return[].concat(_$(t),[i],_$(o))},[]).filter(function(t){return qY(t)||XY(t)}).join(",")}function qVe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function XVe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function qY(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function XY(e){return/^.*\.[\w]+$/.test(e)}var ZVe=["children"],QVe=["open"],JVe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iUe(e){if(Array.isArray(e))return C7(e)}function a6(e,t){return sUe(e)||aUe(e,t)||ZY(e,t)||oUe()}function oUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZY(e,t){if(e){if(typeof e=="string")return C7(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 C7(e,t)}}function C7(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 aUe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function sUe(e){if(Array.isArray(e))return e}function A$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A$(Object(n),!0).forEach(function(r){x7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wb(e,t){if(e==null)return{};var n=lUe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wk=S.forwardRef(function(e,t){var n=e.children,r=wb(e,ZVe),i=JY(r),o=i.open,a=wb(i,QVe);return S.useImperativeHandle(t,function(){return{open:o}},[o]),M.createElement(S.Fragment,null,n(Dn(Dn({},a),{},{open:o})))});Wk.displayName="Dropzone";var QY={disabled:!1,getFilesFromEvent:SVe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Wk.defaultProps=QY;Wk.propTypes={children:Xt.func,accept:Xt.objectOf(Xt.arrayOf(Xt.string)),multiple:Xt.bool,preventDropOnDocument:Xt.bool,noClick:Xt.bool,noKeyboard:Xt.bool,noDrag:Xt.bool,noDragEventsBubbling:Xt.bool,minSize:Xt.number,maxSize:Xt.number,maxFiles:Xt.number,disabled:Xt.bool,getFilesFromEvent:Xt.func,onFileDialogCancel:Xt.func,onFileDialogOpen:Xt.func,useFsAccessApi:Xt.bool,autoFocus:Xt.bool,onDragEnter:Xt.func,onDragLeave:Xt.func,onDragOver:Xt.func,onDrop:Xt.func,onDropAccepted:Xt.func,onDropRejected:Xt.func,onError:Xt.func,validator:Xt.func};var _7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function JY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Dn(Dn({},QY),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,p=t.onDrop,m=t.onDropAccepted,g=t.onDropRejected,v=t.onFileDialogCancel,x=t.onFileDialogOpen,C=t.useFsAccessApi,w=t.autoFocus,k=t.preventDropOnDocument,P=t.noClick,L=t.noKeyboard,A=t.noDrag,O=t.noDragEventsBubbling,I=t.onError,$=t.validator,D=S.useMemo(function(){return YVe(n)},[n]),V=S.useMemo(function(){return KVe(n)},[n]),Y=S.useMemo(function(){return typeof x=="function"?x:O$},[x]),z=S.useMemo(function(){return typeof v=="function"?v:O$},[v]),R=S.useRef(null),N=S.useRef(null),U=S.useReducer(uUe,_7),G=a6(U,2),B=G[0],W=G[1],X=B.isFocused,re=B.isFileDialogActive,le=S.useRef(typeof window<"u"&&window.isSecureContext&&C&&GVe()),he=function(){!le.current&&re&&setTimeout(function(){if(N.current){var we=N.current.files;we.length||(W({type:"closeDialog"}),z())}},300)};S.useEf
|
||
|
${A.message}`,"");i({title:o("toast:uploadFailed"),description:P,status:"error",isClosable:!0})},[o,i]),c=S.useCallback(async k=>{n(yR({imageFile:k}))},[n]),f=S.useCallback((k,P)=>{P.forEach(L=>{u(L)}),k.forEach(L=>{c(L)})},[c,u]),{getRootProps:p,getInputProps:m,isDragAccept:g,isDragReject:v,isDragActive:x,open:C}=JY({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:f,onDragOver:()=>s(!0),maxFiles:1});l(C),S.useEffect(()=>{const k=P=>{var I;const L=(I=P.clipboardData)==null?void 0:I.items;if(!L)return;const A=[];for(const $ of L)$.kind==="file"&&["image/png","image/jpg"].includes($.type)&&A.push($);if(!A.length)return;if(P.stopImmediatePropagation(),A.length>1){i({description:o("toast:uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const O=A[0].getAsFile();if(!O){i({description:o("toast:uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(yR({imageFile:O}))};return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[o,n,i,r]);const w=["img2img","unifiedCanvas"].includes(r)?` to ${vo[r].tooltip}`:"";return b(Q_.Provider,{value:C,children:j("div",{...p({style:{}}),onKeyDown:k=>{k.key},children:[b("input",{...m()}),t,x&&a&&b(cUe,{isDragAccept:g,isDragReject:v,overlaySecondaryText:w,setIsHandlingUpload:s})]})})},fUe=Fe(vn,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),hUe=Fe(vn,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Ue}}),pUe=()=>{const e=ge(),t=ne(fUe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=ne(hUe),[o,a]=S.useState(!0),s=S.useRef(null);S.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(EW()),e(Dw(!n))};return Re("`",()=>{e(Dw(!n))},[n]),Re("esc",()=>{e(Dw(!1))}),j(gn,{children:[n&&b(yK,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:b("div",{className:"console",ref:s,onScroll:()=>{s.current&&o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)},children:t.map((c,f)=>{const{timestamp:p,message:m,level:g}=c;return j("div",{className:`console-entry console-${g}-color`,children:[j("p",{className:"console-timestamp",children:[p,":"]}),b("p",{className:"console-message",children:m})]},f)})})}),n&&b(ri,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:b(_o,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:b(oRe,{}),onClick:()=>a(!o)})}),b(ri,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:b(_o,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?b(SRe,{}):b(sK,{}),onClick:l})})]})},mUe=Fe(vn,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ue}}),gUe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=ne(mUe),i=t?Math.round(t*100/n):0;return b(rV,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function vUe(e){const{title:t,hotkey:n,description:r}=e;return j("div",{className:"hotkey-modal-item",children:[j("div",{className:"hotkey-info",children:[b("p",{className:"hotkey-title",children:t}),r&&b("p",{className:"hotkey-description",children:r})]}),b("div",{className:"hotkey-key",children:n})]})}function yUe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Mc(),{t:i}=Ce(),o=[{title:i("hotkeys:invoke.title"),desc:i("hotkeys:invoke.desc"),hotkey:"Ctrl+Enter"},{title:i("hotkeys:cancel.title"),desc:i("hotkeys:cancel.desc"),hotkey:"Shift+X"},{title:i("hotkeys:focusPrompt.title"),desc:i("hotkeys:focusPrompt.desc"),hotkey:"Alt+A"},{title:i("hotkeys:toggleOptions.title"),desc:i("hotkeys:toggleOptions.desc"),hotkey:"O"},{title:i("hotkeys:pinOptions.title"),desc:i("hotkeys:pinOptio
|