mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
639 lines
1.5 MiB
JavaScript
639 lines
1.5 MiB
JavaScript
|
var Iee=Object.defineProperty;var Ree=(e,t,n)=>t in e?Iee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>(Ree(e,typeof t!="symbol"?t+"":t,n),n);function yj(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 Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y={},Dee={get exports(){return y},set exports(e){y=e}},bS={},w={},Nee={get exports(){return w},set exports(e){w=e}},en={};/**
|
|||
|
* @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 dy=Symbol.for("react.element"),jee=Symbol.for("react.portal"),Bee=Symbol.for("react.fragment"),$ee=Symbol.for("react.strict_mode"),Fee=Symbol.for("react.profiler"),zee=Symbol.for("react.provider"),Hee=Symbol.for("react.context"),Vee=Symbol.for("react.forward_ref"),Wee=Symbol.for("react.suspense"),Uee=Symbol.for("react.memo"),Gee=Symbol.for("react.lazy"),CL=Symbol.iterator;function qee(e){return e===null||typeof e!="object"?null:(e=CL&&e[CL]||e["@@iterator"],typeof e=="function"?e:null)}var bj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sj=Object.assign,xj={};function h0(e,t,n){this.props=e,this.context=t,this.refs=xj,this.updater=n||bj}h0.prototype.isReactComponent={};h0.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")};h0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wj(){}wj.prototype=h0.prototype;function S8(e,t,n){this.props=e,this.context=t,this.refs=xj,this.updater=n||bj}var x8=S8.prototype=new wj;x8.constructor=S8;Sj(x8,h0.prototype);x8.isPureReactComponent=!0;var _L=Array.isArray,Cj=Object.prototype.hasOwnProperty,w8={current:null},_j={key:!0,ref:!0,__self:!0,__source:!0};function kj(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)Cj.call(t,r)&&!_j.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:dy,type:e,key:o,ref:a,props:i,_owner:w8.current}}function Yee(e,t){return{$$typeof:dy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function C8(e){return typeof e=="object"&&e!==null&&e.$$typeof===dy}function Kee(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kL=/\/+/g;function Yw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Kee(""+e.key):t.toString(36)}function r4(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 dy:case jee:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Yw(a,0):r,_L(i)?(n="",e!=null&&(n=e.replace(kL,"$&/")+"/"),r4(i,t,n,"",function(u){return u})):i!=null&&(C8(i)&&(i=Yee(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(kL,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",_L(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Yw(o,s);a+=r4(o,t,n,l,i)}else if(l=qee(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Yw(o,s++),a+=r4(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 $3(e,t,n){if(e==null)return e;var r=[],i=0;return r4(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Xee(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 Lo={current:null},i4={transition:null},Zee={ReactCurrentDispatcher:Lo,ReactCurrentBatchConfig:i4,ReactCurrentOwner:w8};en.Children={map:$3,forEach:function(e,t,n){$3(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $3(e,function(){t++}),t},toArray:function(e){return $3(e,function(t){return t})||[]},only:function(e){if(!C8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};en.Component=h0;en.Fragment=B
|
|||
|
* @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 Qee=w,Jee=Symbol.for("react.element"),ete=Symbol.for("react.fragment"),tte=Object.prototype.hasOwnProperty,nte=Qee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rte={key:!0,ref:!0,__self:!0,__source:!0};function Ej(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)tte.call(t,r)&&!rte.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:Jee,type:e,key:o,ref:a,props:i,_owner:nte.current}}bS.Fragment=ete;bS.jsx=Ej;bS.jsxs=Ej;(function(e){e.exports=bS})(Dee);var Ws=Boolean(globalThis==null?void 0:globalThis.document)?w.useLayoutEffect:w.useEffect,_8=w.createContext({});_8.displayName="ColorModeContext";function fy(){const e=w.useContext(_8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var F3={light:"chakra-ui-light",dark:"chakra-ui-dark"};function ite(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?F3.dark:F3.light),document.body.classList.remove(r?F3.light:F3.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??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 ote="chakra-ui-color-mode";function ate(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var ste=ate(ote),EL=()=>{};function PL(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Pj(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=ste}=e,s=i==="dark"?"dark":"light",[l,u]=w.useState(()=>PL(a,s)),[d,h]=w.useState(()=>PL(a)),{getSystemTheme:g,setClassName:v,setDataset:b,addListener:S}=w.useMemo(()=>ite({preventTransition:o}),[o]),E=i==="system"&&!l?d:l,_=w.useCallback(A=>{const M=A==="system"?g():A;u(M),v(M==="dark"),b(M),a.set(M)},[a,g,v,b]);Ws(()=>{i==="system"&&h(g())},[]),w.useEffect(()=>{const A=a.get();if(A){_(A);return}if(i==="system"){_("system");return}_(s)},[a,s,i,_]);const k=w.useCallback(()=>{_(E==="dark"?"light":"dark")},[E,_]);w.useEffect(()=>{if(r)return S(_)},[r,S,_]);const T=w.useMemo(()=>({colorMode:t??E,toggleColorMode:t?EL:k,setColorMode:t?EL:_,forced:t!==void 0}),[E,k,_,t]);return N.createElement(_8.Provider,{value:T},n)}Pj.displayName="ColorModeProvider";var W4={},lte={get exports(){return W4},set exports(e){W4=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]",d="[object Boolean]",h="[object Date]",g="[object Error]",v="[object Function]",b="[object GeneratorFunction]",S="[object Map]",E="[object Number]",_="[object Null]",k="[object Object]",T="[object Proxy]",A="[object RegExp]",M="[object Set]",R="[object String]",D="[object Undefined]",j="[object WeakMap]",F="[object ArrayBuffer]",H="[object DataView]",K="[object Float32Array]",te="[object Float64Array]",G="[object Int8Array]",$="[object Int16Array]",U="[object Int32Array]",X="[object Uint8Array]",Z="[object Uint8ClampedArray]",W="[
|
|||
|
* 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 Ai=typeof Symbol=="function"&&Symbol.for,A8=Ai?Symbol.for("react.element"):60103,O8=Ai?Symbol.for("react.portal"):60106,kS=Ai?Symbol.for("react.fragment"):60107,ES=Ai?Symbol.for("react.strict_mode"):60108,PS=Ai?Symbol.for("react.profiler"):60114,TS=Ai?Symbol.for("react.provider"):60109,LS=Ai?Symbol.for("react.context"):60110,M8=Ai?Symbol.for("react.async_mode"):60111,AS=Ai?Symbol.for("react.concurrent_mode"):60111,OS=Ai?Symbol.for("react.forward_ref"):60112,MS=Ai?Symbol.for("react.suspense"):60113,ere=Ai?Symbol.for("react.suspense_list"):60120,IS=Ai?Symbol.for("react.memo"):60115,RS=Ai?Symbol.for("react.lazy"):60116,tre=Ai?Symbol.for("react.block"):60121,nre=Ai?Symbol.for("react.fundamental"):60117,rre=Ai?Symbol.for("react.responder"):60118,ire=Ai?Symbol.for("react.scope"):60119;function Ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case A8:switch(e=e.type,e){case M8:case AS:case kS:case PS:case ES:case MS:return e;default:switch(e=e&&e.$$typeof,e){case LS:case OS:case RS:case IS:case TS:return e;default:return t}}case O8:return t}}}function Gj(e){return Ra(e)===AS}Fn.AsyncMode=M8;Fn.ConcurrentMode=AS;Fn.ContextConsumer=LS;Fn.ContextProvider=TS;Fn.Element=A8;Fn.ForwardRef=OS;Fn.Fragment=kS;Fn.Lazy=RS;Fn.Memo=IS;Fn.Portal=O8;Fn.Profiler=PS;Fn.StrictMode=ES;Fn.Suspense=MS;Fn.isAsyncMode=function(e){return Gj(e)||Ra(e)===M8};Fn.isConcurrentMode=Gj;Fn.isContextConsumer=function(e){return Ra(e)===LS};Fn.isContextProvider=function(e){return Ra(e)===TS};Fn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===A8};Fn.isForwardRef=function(e){return Ra(e)===OS};Fn.isFragment=function(e){return Ra(e)===kS};Fn.isLazy=function(e){return Ra(e)===RS};Fn.isMemo=function(e){return Ra(e)===IS};Fn.isPortal=function(e){return Ra(e)===O8};Fn.isProfiler=function(e){return Ra(e)===PS};Fn.isStrictMode=function(e){return Ra(e)===ES};Fn.isSuspense=function(e){return Ra(e)===MS};Fn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kS||e===AS||e===PS||e===ES||e===MS||e===ere||typeof e=="object"&&e!==null&&(e.$$typeof===RS||e.$$typeof===IS||e.$$typeof===TS||e.$$typeof===LS||e.$$typeof===OS||e.$$typeof===nre||e.$$typeof===rre||e.$$typeof===ire||e.$$typeof===tre)};Fn.typeOf=Ra;(function(e){e.exports=Fn})(Jne);var qj=d7,ore={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},are={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yj={};Yj[qj.ForwardRef]=ore;Yj[qj.Memo]=are;var sre=!0;function lre(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Kj=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||sre===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Xj=function(t,n,r){Kj(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 ure(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 cre={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
|
|||
|
45deg,
|
|||
|
${t} 25%,
|
|||
|
transparent 25%,
|
|||
|
transparent 50%,
|
|||
|
${t} 50%,
|
|||
|
${t} 75%,
|
|||
|
transparent 75%,
|
|||
|
transparent
|
|||
|
)`,backgroundSize:`${e} ${e}`}}function Die(e){const t=uB().toHexString();return!e||Mie(e)?t:e.string&&e.colors?jie(e.string,e.colors):e.string&&!e.colors?Nie(e.string):e.colors&&!e.string?Bie(e.colors):t}function Nie(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 jie(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 Bie(e){return e[Math.floor(Math.random()*e.length)]}function Et(e,t){return n=>n.colorMode==="dark"?t:e}function D8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function $ie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function hB(e){return $ie(e)&&e.reference?e.reference:String(e)}var jS=(e,...t)=>t.map(hB).join(` ${e} `).replace(/calc/g,""),QL=(...e)=>`calc(${jS("+",...e)})`,JL=(...e)=>`calc(${jS("-",...e)})`,g7=(...e)=>`calc(${jS("*",...e)})`,eA=(...e)=>`calc(${jS("/",...e)})`,tA=e=>{const t=hB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:g7(t,-1)},Wu=Object.assign(e=>({add:(...t)=>Wu(QL(e,...t)),subtract:(...t)=>Wu(JL(e,...t)),multiply:(...t)=>Wu(g7(e,...t)),divide:(...t)=>Wu(eA(e,...t)),negate:()=>Wu(tA(e)),toString:()=>e.toString()}),{add:QL,subtract:JL,multiply:g7,divide:eA,negate:tA});function Fie(e){return!Number.isInteger(parseFloat(e.toString()))}function zie(e,t="-"){return e.replace(/\s+/g,t)}function pB(e){const t=zie(e.toString());return t.includes("\\.")?e:Fie(e)?t.replace(".","\\."):e}function Hie(e,t=""){return[t,pB(e)].filter(Boolean).join("-")}function Vie(e,t){return`var(${pB(e)}${t?`, ${t}`:""})`}function Wie(e,t=""){return`--${Hie(e,t)}`}function yi(e,t){const n=Wie(e,t==null?void 0:t.prefix);return{variable:n,reference:Vie(n,Uie(t==null?void 0:t.fallback))}}function Uie(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:Gie,defineMultiStyleConfig:qie}=hr(Vre.keys),Yie={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Kie={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Xie={pt:"2",px:"4",pb:"5"},Zie={fontSize:"1.25em"},Qie=Gie({container:Yie,button:Kie,panel:Xie,icon:Zie}),Jie=qie({baseStyle:Qie}),{definePartsStyle:my,defineMultiStyleConfig:eoe}=hr(Wre.keys),Ta=Vn("alert-fg"),Ju=Vn("alert-bg"),toe=my({container:{bg:Ju.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function N8(e){const{theme:t,colorScheme:n}=e,r=Wg(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var noe=my(e=>{const{colorScheme:t}=e,n=N8(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark}}}}),roe=my(e=>{const{colorScheme:t}=e,n=N8(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ta.reference}}}),ioe=my(e=>{const{colorScheme:t}=e,n=N8(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ta.reference}}}),ooe=my(e=>{const{colorScheme:t}=e;return{container:{[Ta.variable]:"colors.white",[Ju.variable]:`colors.${t}.500`,_dark:{[Ta.variable]:"colors.gray.900",[Ju.variable]:`colors.${t}.200`},color:Ta.reference}}}),aoe={subtle:noe,"left-accent":roe,"top-accent":ioe,solid:ooe},soe=eoe({baseStyle:toe,variants:aoe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),mB={px:"1px",.
|
|||
|
to right,
|
|||
|
transparent 0%,
|
|||
|
${_o(n,a)} 50%,
|
|||
|
transparent 100%
|
|||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},nle={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},rle=e=>({bg:Et("gray.100","whiteAlpha.300")(e)}),ile=e=>({transitionProperty:"common",transitionDuration:"slow",...tle(e)}),ole=yv(e=>({label:nle,filledTrack:ile(e),track:rle(e)})),ale={xs:yv({track:{h:"1"}}),sm:yv({track:{h:"2"}}),md:yv({track:{h:"3"}}),lg:yv({track:{h:"4"}})},sle=ele({sizes:ale,baseStyle:ole,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lle,definePartsStyle:c4}=hr(oie.keys),ule=e=>{var t;const n=(t=Po(K4.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"}}}},cle=c4(e=>{var t,n,r,i;return{label:(n=(t=K4).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=K4).baseStyle)==null?void 0:i.call(r,e).container,control:ule(e)}}),dle={md:c4({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:c4({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:c4({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},fle=lle({baseStyle:cle,sizes:dle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hle,definePartsStyle:ple}=hr(aie.keys),q3=Vn("select-bg"),aA,mle={...(aA=En.baseStyle)==null?void 0:aA.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:q3.reference,[q3.variable]:"colors.white",_dark:{[q3.variable]:"colors.gray.700"},"> option, > optgroup":{bg:q3.reference}},gle={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},vle=ple({field:mle,icon:gle}),Y3={paddingInlineEnd:"8"},sA,lA,uA,cA,dA,fA,hA,pA,yle={lg:{...(sA=En.sizes)==null?void 0:sA.lg,field:{...(lA=En.sizes)==null?void 0:lA.lg.field,...Y3}},md:{...(uA=En.sizes)==null?void 0:uA.md,field:{...(cA=En.sizes)==null?void 0:cA.md.field,...Y3}},sm:{...(dA=En.sizes)==null?void 0:dA.sm,field:{...(fA=En.sizes)==null?void 0:fA.sm.field,...Y3}},xs:{...(hA=En.sizes)==null?void 0:hA.xs,field:{...(pA=En.sizes)==null?void 0:pA.xs.field,...Y3},icon:{insetEnd:"1"}}},ble=hle({baseStyle:vle,sizes:yle,variants:En.variants,defaultProps:En.defaultProps}),l6=Vn("skeleton-start-color"),u6=Vn("skeleton-end-color"),Sle={[l6.variable]:"colors.gray.100",[u6.variable]:"colors.gray.400",_dark:{[l6.variable]:"colors.gray.800",[u6.variable]:"colors.gray.600"},background:l6.reference,borderColor:u6.reference,opacity:.7,borderRadius:"sm"},xle={baseStyle:Sle},c6=Vn("skip-link-bg"),wle={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[c6.variable]:"colors.white",_dark:{[c6.variable]:"colors.gray.700"},bg:c6.reference}},Cle={baseStyle:wle},{defineMultiStyleConfig:_le,definePartsStyle:BS}=hr(sie.keys),x2=Vn("slider-thumb-size"),w2=Vn("slider-track-size"),yd=Vn("slider-bg"),kle=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...D8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Ele=e=>({...D8({orientation:e.orientation,horizontal:{h:w2.reference},vertical:{w:w2.reference}}),overflow:"hidden",borderRadius:"sm",[yd.variable]:"colors.gray.200",_dark:{[yd.variable]:"colors.whiteAlpha.200"},_disabled:{[yd.variable]:"colors.gray.300",_dark:{[yd.variable]:"colors.whiteAlpha.300"}},bg:yd.reference}),Ple=e=>{const{orientation:t}=e;return{...D8({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:x2.reference,h:x2.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"}}},
|
|||
|
[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]),w.createElement(mme,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const _6=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=VS(vme),l=w.useId(),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:d=>{s.set(d,!0);for(const h of s.values())if(!h)return;r&&r()},register:d=>(s.set(d,!1),()=>s.delete(d))}),o?void 0:[n]);return w.useMemo(()=>{s.forEach((d,h)=>s.set(h,!1))},[n]),w.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w.createElement(gme,{isPresent:n},e)),w.createElement(m0.Provider,{value:u},e)};function vme(){return new Map}const Fm=e=>e.key||"";function yme(e,t){e.forEach(n=>{const r=Fm(n);t.set(r,n)})}function bme(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const nf=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",_$(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=pme();const l=w.useContext(z8).forceRender;l&&(s=l);const u=Q$(),d=bme(e);let h=d;const g=new Set,v=w.useRef(h),b=w.useRef(new Map).current,S=w.useRef(!0);if(Q4(()=>{S.current=!1,yme(d,b),v.current=h}),X8(()=>{S.current=!0,b.clear(),g.clear()}),S.current)return w.createElement(w.Fragment,null,h.map(T=>w.createElement(_6,{key:Fm(T),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},T)));h=[...h];const E=v.current.map(Fm),_=d.map(Fm),k=E.length;for(let T=0;T<k;T++){const A=E[T];_.indexOf(A)===-1&&g.add(A)}return a==="wait"&&g.size&&(h=[]),g.forEach(T=>{if(_.indexOf(T)!==-1)return;const A=b.get(T);if(!A)return;const M=E.indexOf(T),R=()=>{b.delete(T),g.delete(T);const D=v.current.findIndex(j=>j.key===T);if(v.current.splice(D,1),!g.size){if(v.current=d,u.current===!1)return;s(),r&&r()}};h.splice(M,0,w.createElement(_6,{key:Fm(A),isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:o,mode:a},A))}),h=h.map(T=>{const A=T.key;return g.has(A)?T:w.createElement(_6,{key:Fm(T),isPresent:!0,presenceAffectsLayout:o,mode:a},T)}),C$!=="production"&&a==="wait"&&h.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.`),w.createElement(w.Fragment,null,g.size?h:h.map(T=>w.cloneElement(T)))};var zl=function(){return zl=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},zl.apply(this,arguments)};function J$(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 v0(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(d){try{u(r.next(d))}catch(h){a(h)}}function l(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?o(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function y0(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(d){return l([u,d])}}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 Vme(e){XS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function qm(e){const{isOpen:t,isDisabled:n}=fk(),{reduceMotion:r}=hk(),i=xy("chakra-accordion__icon",e.className),o=ZS(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return N.createElement(Da,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e},N.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))}qm.displayName="AccordionIcon";var Ym=Ee(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=$me(t),l={...ZS().container,overflowAnchor:"none"},u=w.useMemo(()=>a,[a]);return N.createElement(Ime,{value:u},N.createElement(Ce.div,{ref:n,...o,className:xy("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Ym.displayName="AccordionItem";var Km=Ee(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=hk(),{getPanelProps:s,isOpen:l}=fk(),u=s(o,n),d=xy("chakra-accordion__panel",r),h=ZS();a||delete u.hidden;const g=N.createElement(Ce.div,{...u,__css:h.panel,className:d});return a?g:N.createElement(eF,{in:l,...i},g)});Km.displayName="AccordionPanel";var pk=Ee(function({children:t,reduceMotion:n,...r},i){const o=Oi("Accordion",r),a=Sn(r),{htmlProps:s,descendants:l,...u}=jme(a),d=w.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return N.createElement(Rme,{value:l},N.createElement(Bme,{value:d},N.createElement(Mme,{value:o},N.createElement(Ce.div,{ref:i,...s,className:xy("chakra-accordion",r.className),__css:o.root},t))))});pk.displayName="Accordion";var Wme=(...e)=>e.filter(Boolean).join(" "),Ume=tf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wy=Ee((e,t)=>{const n=Ao("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Sn(e),u=Wme("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Ume} ${o} linear infinite`,...n};return N.createElement(Ce.div,{ref:t,__css:d,className:u,...l},r&&N.createElement(Ce.span,{srOnly:!0},r))});wy.displayName="Spinner";var QS=(...e)=>e.filter(Boolean).join(" ");function Gme(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.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 qme(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.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 RO(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.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[Yme,Kme]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Xme,mk]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),iF={info:{icon:qme,colorScheme:"blue"},warning:{icon:RO,colorScheme:"orange"},success:{icon:Gme,colorScheme:"green"},error:{icon:RO,colorScheme:"red"},loading:{icon:wy,colorScheme:"blue"}};function Zme(e){return iF[e].colorScheme}function Qme(e){return iF[e].icon}var oF=Ee(function(t,n){const{status:r="info",addRole:i=!0,...o}=Sn(t),a=t.colorScheme??Zme(r),s=Oi("Alert",{...t,colorScheme:a}),l={width:"100%",dis
|
|||
|
: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;
|
|||
|
}
|
|||
|
}
|
|||
|
`,Rge=()=>N.createElement(DS,{styles:mF}),Dge=()=>N.createElement(DS,{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;
|
|||
|
}
|
|||
|
|
|||
|
${mF}
|
|||
|
`});function Rh(e,t,n,r){const i=br(n);return w.useEffect(()=>{const o=typeof e=="function"?e():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??document;o==null||o.removeEventListener(t,i,r)}}function Nge(e){return"current"in e}var gF=()=>typeof window<"u";function jge(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}var Bge=e=>gF()&&e.test(navigator.vendor),$ge=e=>gF()&&e.test(jge()),Fge=()=>$ge(/mac|iphone|ipad|ipod/i),zge=()=>Fge()&&Bge(/apple/i);function Hge(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Rh(i,"pointerdown",o=>{if(!zge()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const d=Nge(u)?u.current:u;return(d==null?void 0:d.contains(a))||d===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Vge=Ire?w.useLayoutEffect:w.useEffect;function HO(e,t=[]){const n=w.useRef(e);return Vge(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Wge(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Uge(e,t){const n=w.useId();return w.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Wh(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=HO(n),a=HO(t),[s,l]=w.useState(e.defaultIsOpen||!1),[u,d]=Wge(r,s),h=Uge(i,"disclosure"),g=w.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),v=w.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),b=w.useCallback(()=>{(d?g:v)()},[d,v,g]);return{isOpen:!!d,onOpen:v,onClose:g,onToggle:b,isControlled:u,getButtonProps:(S={})=>({...S,"aria-expanded":d,"aria-controls":h,onClick:Rre(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!d,id:h})}}function xk(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var wk=Ee(function(t,n){const{htmlSize:r,...i}=t,o=Oi("Input",i),a=Sn(i),s=gk(a),l=Qr("chakra-input",t.className);return N.createElement(Ce.input,{size:r,...s,__css:o.field,ref:n,className:l})});wk.displayName="Input";wk.id="Input";var[Gge,vF]=xn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),qge=Ee(function(t,n){const r=Oi("Input",t),{children:i,className:o,...a}=Sn(t),s=Qr("chakra-input__group",o),l={},u=ex(i),d=r.field;u.forEach(g=>{r&&(d&&g.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&g.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),g.type.id==="InputRightAddon"&&(l.borderEndRadius=0),g.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const h=u.map(g=>{var v,b;const S=xk({size:((v=g.props)==null?void 0:v.size)||t.size,variant:((b=g.props)==null?void 0:b.variant)||t.variant});return g.type.id!=="Input"?w.cloneElement(g,S):w.cloneElement(g,Object.assign(S,l,g.props))});return N.createElement(Ce.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},N.createElement(Gge,{value:r},h))});qge.displayName="InputGroup";var Yge={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Kge=Ce("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Ck=Ee(function(t,n){const{placement:r="left",...i}=t,o=Yge[r]??{},a=vF();return N.createElement(Kge,{ref:n,...i,__css:{...a.addon,...o}})});Ck.displayName="InputAddon";var yF=Ee(function(t,n){return N.createElement(Ck,{ref:n,placement:"left",...t,className:Qr("chakra-input__left-addon",t.className)})});yF.displayName="InputLeftAddon";yF.id="InputLeftAddon";var bF=Ee(function(t,n){return N.createElement(Ck,{ref:n,placement:"right",...t,className:Qr("chakra-input__right-addon",t.className)})});bF.displayName="InputRightAddon";bF.id="InputRightAddon";var Xge=Ce("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),ix=Ee(function(t,n){const{placement:r="lef
|
|||
|
* @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(W,Q){var re=W.length;W.push(Q);e:for(;0<re;){var de=re-1>>>1,ve=W[de];if(0<i(ve,Q))W[de]=Q,W[re]=ve,re=de;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var Q=W[0],re=W.pop();if(re!==Q){W[0]=re;e:for(var de=0,ve=W.length,Pe=ve>>>1;de<Pe;){var be=2*(de+1)-1,He=W[be],Oe=be+1,ot=W[Oe];if(0>i(He,re))Oe<ve&&0>i(ot,He)?(W[de]=ot,W[Oe]=re,de=Oe):(W[de]=He,W[be]=re,de=be);else if(Oe<ve&&0>i(ot,re))W[de]=ot,W[Oe]=re,de=Oe;else break e}}return Q}function i(W,Q){var re=W.sortIndex-Q.sortIndex;return re!==0?re:W.id-Q.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=[],d=1,h=null,g=3,v=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(W){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=W)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function A(W){if(S=!1,T(W),!b)if(n(l)!==null)b=!0,X(M);else{var Q=n(u);Q!==null&&Z(A,Q.startTime-W)}}function M(W,Q){b=!1,S&&(S=!1,_(j),j=-1),v=!0;var re=g;try{for(T(Q),h=n(l);h!==null&&(!(h.expirationTime>Q)||W&&!K());){var de=h.callback;if(typeof de=="function"){h.callback=null,g=h.priorityLevel;var ve=de(h.expirationTime<=Q);Q=e.unstable_now(),typeof ve=="function"?h.callback=ve:h===n(l)&&r(l),T(Q)}else r(l);h=n(l)}if(h!==null)var Pe=!0;else{var be=n(u);be!==null&&Z(A,be.startTime-Q),Pe=!1}return Pe}finally{h=null,g=re,v=!1}}var R=!1,D=null,j=-1,F=5,H=-1;function K(){return!(e.unstable_now()-H<F)}function te(){if(D!==null){var W=e.unstable_now();H=W;var Q=!0;try{Q=D(!0,W)}finally{Q?G():(R=!1,D=null)}}else R=!1}var G;if(typeof k=="function")G=function(){k(te)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=te,G=function(){U.postMessage(null)}}else G=function(){E(te,0)};function X(W){D=W,R||(R=!0,G())}function Z(W,Q){j=E(function(){W(e.unstable_now())},Q)}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(W){W.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,X(M))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(W){switch(g){case 1:case 2:case 3:var Q=3;break;default:Q=g}var re=g;g=Q;try{return W()}finally{g=re}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,Q){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var re=g;g=W;try{return Q()}finally{g=re}},e.unstable_scheduleCallback=function(W,Q,re){var de=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?de+re:de):re=de,W){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=re+ve,W={id:d++,callback:Q,priorityLevel:W,startTime:re,expirationTime:ve,sortIndex:-1},re>de?(W.sortIndex=re,t(u,W),n(l)===null&&W===n(u)&&(S?(_(j),j=-1):S=!0,Z(A,re-de))):(W.sortIndex=ve,t(l,W),b||v||(b=!0,X(M))),W},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(W){var Q=g;return function(){var re=g;g=Q;try{return W.apply(this,arguments)}finally{g=re}}}})(sz);(function(e){e.exports=sz})(Ive);/**
|
|||
|
* @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 lz=w,Ma=Bh;function Fe(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 uz=new Set,M2={};function ap(e,t){Zg(e,t),Zg(e+"Capture",t)}function Zg(e,t){for(M2[e]=t,e=0;e<t.length;e++)uz.add(t[e])}var nc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e9=Object.prototype.hasOwnProperty,Rve=/^[: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]*$/,iM={},oM={};function Dve(e){return e9.call(oM,e)?!0:e9.call(iM,e)?!1:Rve.test(e)?oM[e]=!0:(iM[e]=!0,!1)}function Nve(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 jve(e,t,n,r){if(t===null||typeof t>"u"||Nve(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 Oo(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 Ki={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ki[e]=new Oo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ki[t]=new Oo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ki[e]=new Oo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ki[e]=new Oo(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){Ki[e]=new Oo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ki[e]=new Oo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ki[e]=new Oo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ki[e]=new Oo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ki[e]=new Oo(e,5,!1,e.toLowerCase(),null,!1,!1)});var jk=/[\-:]([a-z])/g;function Bk(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-
|
|||
|
`+A6+e}var O6=!1;function M6(e,t){if(!e||O6)return"";O6=!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{O6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bv(e):""}function Bve(e){switch(e.tag){case 5:return bv(e.type);case 16:return bv("Lazy");case 13:return bv("Suspense");case 19:return bv("SuspenseList");case 0:case 2:case 15:return e=M6(e.type,!1),e;case 11:return e=M6(e.type.render,!1),e;case 1:return e=M6(e.type,!0),e;default:return""}}function i9(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 Zm:return"Fragment";case Xm:return"Portal";case t9:return"Profiler";case Fk:return"StrictMode";case n9:return"Suspense";case r9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dz:return(e.displayName||"Context")+".Consumer";case cz:return(e._context.displayName||"Context")+".Provider";case zk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hk:return t=e.displayName||null,t!==null?t:i9(e.type)||"Memo";case md:t=e._payload,e=e._init;try{return i9(e(t))}catch{}}return null}function $ve(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 i9(t);case 8:return t===Fk?"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 Ud(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fve(e){var t=hz(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 ob(e){e._valueTracker||(e._valueTracker=Fve(e))}function pz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function p5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function o9(e,t){var n=t.checked;return Tr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sM(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ud(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 mz(e,t){t=t.checked,t!=null&&$k(e,"checked",t,!1)}function a9(e,t){mz(e,t);var n=Ud(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")?s9(e,t.type,n):t.hasOwnProperty("defaultValue")&&s9(e,t.type,Ud(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lM(e,t,n){if(t.hasOwnProperty(
|
|||
|
`).replace(X2e,"")}function hb(e,t,n){if(t=OM(t),OM(e)!==t&&n)throw Error(Fe(425))}function w5(){}var x9=null,w9=null;function C9(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 _9=typeof setTimeout=="function"?setTimeout:void 0,Z2e=typeof clearTimeout=="function"?clearTimeout:void 0,MM=typeof Promise=="function"?Promise:void 0,Q2e=typeof queueMicrotask=="function"?queueMicrotask:typeof MM<"u"?function(e){return MM.resolve(null).then(e).catch(J2e)}:_9;function J2e(e){setTimeout(function(){throw e})}function U6(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),j2(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);j2(t)}function Id(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 IM(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 w0=Math.random().toString(36).slice(2),Hl="__reactFiber$"+w0,H2="__reactProps$"+w0,rc="__reactContainer$"+w0,k9="__reactEvents$"+w0,eye="__reactListeners$"+w0,tye="__reactHandles$"+w0;function kh(e){var t=e[Hl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rc]||n[Hl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=IM(e);e!==null;){if(n=e[Hl])return n;e=IM(e)}return t}e=n,n=e.parentNode}return null}function Ay(e){return e=e[Hl]||e[rc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function tg(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Fe(33))}function cx(e){return e[H2]||null}var E9=[],ng=-1;function af(e){return{current:e}}function fr(e){0>ng||(e.current=E9[ng],E9[ng]=null,ng--)}function nr(e,t){ng++,E9[ng]=e.current,e.current=t}var Gd={},lo=af(Gd),Jo=af(!1),qh=Gd;function Qg(e,t){var n=e.type.contextTypes;if(!n)return Gd;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 ea(e){return e=e.childContextTypes,e!=null}function C5(){fr(Jo),fr(lo)}function RM(e,t,n){if(lo.current!==Gd)throw Error(Fe(168));nr(lo,t),nr(Jo,n)}function rH(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(Fe(108,$ve(e)||"Unknown",i));return Tr({},n,r)}function _5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gd,qh=lo.current,nr(lo,e),nr(Jo,Jo.current),!0}function DM(e,t,n){var r=e.stateNode;if(!r)throw Error(Fe(169));n?(e=rH(e,t,qh),r.__reactInternalMemoizedMergedChildContext=e,fr(Jo),fr(lo),nr(lo,e)):fr(Jo),nr(Jo,n)}var Vu=null,dx=!1,G6=!1;function iH(e){Vu===null?Vu=[e]:Vu.push(e)}function nye(e){dx=!0,iH(e)}function sf(){if(!G6&&Vu!==null){G6=!0;var e=0,t=$n;try{var n=Vu;for($n=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vu=null,dx=!1}catch(i){throw Vu!==null&&(Vu=Vu.slice(e+1)),Lz(Wk,sf),i}finally{$n=t,G6=!1}}return null}var rg=[],ig=0,k5=null,E5=0,Za=[],Qa=0,Yh=null,Gu=1,qu="";function dh(e,t){rg[ig++]=E5,rg[ig++]=k5,k5=e,E5=t}function oH(e,t,n){Za[Qa++]=Gu,Za[Qa++]=qu,Za[Qa++]=Yh,Yh=e;var r=Gu;e=qu;var i=32-Ys(r)-1;r&=~(1<<i),n+=1;var o=32-Ys(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gu=1<<32-Ys(t)+i|n<<i|r,qu=o+e}else Gu=1<<o|n<<i|r,qu=e}function Jk(e){e.return!==null&&(dh(e,1),oH(e,1,0))}function eE(e){for(;e===k5;)k5=rg[--ig],rg[ig]=null,E5=rg[--ig],rg[ig]=null;for(;e===Yh;)Yh=Za[--Qa],Za[Qa]=null,qu=Za[--Qa],Za[Qa]=null,Gu=Za[--Qa],Za[Qa]=null}var La=null,Ea=null,yr=!1,$s=null;function aH(e,t){var n=ns(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 Z6(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function M9(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dye=typeof WeakMap=="function"?WeakMap:Map;function RH(e,t,n){n=Yu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){R5||(R5=!0,H9=r),M9(e,t)},n}function DH(e,t,n){n=Yu(-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(){M9(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){M9(e,t),typeof r!="function"&&(Dd===null?Dd=new Set([this]):Dd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function UM(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dye;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=kye.bind(null,e,t,n),t.then(e,e))}function GM(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 qM(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=Yu(-1,1),t.tag=2,Rd(n,t,1))),n.lanes|=1),e)}var fye=cc.ReactCurrentOwner,Xo=!1;function wo(e,t,n,r){t.child=e===null?hH(t,null,n,r):e0(t,e.child,n,r)}function YM(e,t,n,r,i){n=n.render;var o=t.ref;return Ag(t,i),r=dE(e,t,n,r,o,i),n=fE(),e!==null&&!Xo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oc(e,t,i)):(yr&&n&&Jk(t),t.flags|=1,wo(e,t,r,i),t.child)}function KM(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!wE(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,NH(e,t,o,r,i)):(e=E4(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:$2,n(a,r)&&e.ref===t.ref)return oc(e,t,i)}return t.flags|=1,e=jd(o,r),e.ref=t.ref,e.return=t,t.child=e}function NH(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if($2(o,r)&&e.ref===t.ref)if(Xo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Xo=!0);else return t.lanes=e.lanes,oc(e,t,i)}return I9(e,t,n,r,i)}function jH(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},nr(sg,_a),_a|=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,nr(sg,_a),_a|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,nr(sg,_a),_a|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,nr(sg,_a),_a|=r;return wo(e,t,i,n),t.child}function BH(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function I9(e,t,n,r,i){var o=ea(n)?qh:lo.current;return o=Qg(t,o),Ag(t,i),n=dE(e,t,n,r,o,i),r=fE(),e!==null&&!Xo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oc(e,t,i)):(yr&&r&&Jk(t),t.flags|=1,wo(e,t,n,i),t.child)}function XM(e,t,n,r,i){if(ea(n)){var o=!0;_5(t)}else o=!1;if(Ag(t,i),t.stateNode===null)C4(e,t),dH(t,n,r),O9(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=cs(u):(u=ea(n)?qh:lo.current,u=Qg(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&zM(t,a,r,u),gd=!1;var g=t.memoizedState;a.state=g,L5(t,r,a,i),l=t.memoizedState,s!==r||g!==l||Jo.current||gd?(typeof d=="function"&&(A9(t,n,d,r),l=t.memoizedState),(s=gd||FM(t,n,s,r,g,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
|
|||
|
.`.concat(Q3e,` {
|
|||
|
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(P4,` {
|
|||
|
right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(T4,` {
|
|||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(P4," .").concat(P4,` {
|
|||
|
right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(T4," .").concat(T4,` {
|
|||
|
margin-right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
body {
|
|||
|
`).concat(J3e,": ").concat(s,`px;
|
|||
|
}
|
|||
|
`)},dbe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=w.useMemo(function(){return lbe(i)},[i]);return w.createElement(ube,{styles:cbe(o,!t,i,n?"":"!important")})},Z9=!1;if(typeof window<"u")try{var Cb=Object.defineProperty({},"passive",{get:function(){return Z9=!0,!0}});window.addEventListener("test",Cb,Cb),window.removeEventListener("test",Cb,Cb)}catch{Z9=!1}var Lm=Z9?{passive:!1}:!1,fbe=function(e){return e.tagName==="TEXTAREA"},GV=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fbe(e)&&n[t]==="visible")},hbe=function(e){return GV(e,"overflowY")},pbe=function(e){return GV(e,"overflowX")},pI=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=qV(e,n);if(r){var i=YV(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},mbe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},gbe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qV=function(e,t){return e==="v"?hbe(t):pbe(t)},YV=function(e,t){return e==="v"?mbe(t):gbe(t)},vbe=function(e,t){return e==="h"&&t==="rtl"?-1:1},ybe=function(e,t,n,r,i){var o=vbe(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,d=a>0,h=0,g=0;do{var v=YV(e,s),b=v[0],S=v[1],E=v[2],_=S-E-o*b;(b||_)&&qV(e,s)&&(h+=_,g+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(i&&h===0||!i&&a>h)||!d&&(i&&g===0||!i&&-a>g))&&(u=!0),u},_b=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mI=function(e){return[e.deltaX,e.deltaY]},gI=function(e){return e&&"current"in e?e.current:e},bbe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sbe=function(e){return`
|
|||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
`)},xbe=0,Am=[];function wbe(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(xbe++)[0],o=w.useState(function(){return UV()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=z7([e.lockRef.current],(e.shards||[]).map(gI),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(S,E){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var _=_b(S),k=n.current,T="deltaX"in S?S.deltaX:k[0]-_[0],A="deltaY"in S?S.deltaY:k[1]-_[1],M,R=S.target,D=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in S&&D==="h"&&R.type==="range")return!1;var j=pI(D,R);if(!j)return!0;if(j?M=D:(M=D==="v"?"h":"v",j=pI(D,R)),!j)return!1;if(!r.current&&"changedTouches"in S&&(T||A)&&(r.current=M),!M)return!0;var F=r.current||M;return ybe(F,E,S,F==="h"?T:A,!0)},[]),l=w.useCallback(function(S){var E=S;if(!(!Am.length||Am[Am.length-1]!==o)){var _="deltaY"in E?mI(E):_b(E),k=t.current.filter(function(M){return M.name===E.type&&M.target===E.target&&bbe(M.delta,_)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(gI).filter(Boolean).filter(function(M){return M.contains(E.target)}),A=T.length>0?s(E,T[0]):!a.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),u=w.useCallback(function(S,E,_,k){var T={name:S,delta:E,target:_,should:k};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),d=w.useCallback(function(S){n.current=_b(S),r.current=void 0},[]),h=w.useCallback(function(S){u(S.type,mI(S),S.target,s(S,e.lockRef.current))},[]),g=w.useCallback(function(S){u(S.type,_b(S),S.target,s(S,e.lockRef.current))},[]);w.useEffect(function(){return Am.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Lm),document.addEventListener("touchmove",l,Lm),document.addEventListener("touchstart",d,Lm),function(){Am=Am.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,Lm),document.removeEventListener("touchmove",l,Lm),document.removeEventListener("touchstart",d,Lm)}},[]);var v=e.removeScrollBar,b=e.inert;return w.createElement(w.Fragment,null,b?w.createElement(o,{styles:Sbe(i)}):null,v?w.createElement(dbe,{gapMode:"margin"}):null)}const Cbe=n3e(WV,wbe);var KV=w.forwardRef(function(e,t){return w.createElement(xx,zl({},e,{ref:t,sideCar:Cbe}))});KV.classNames=xx.classNames;const XV=KV;var up=(...e)=>e.filter(Boolean).join(" ");function Cv(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var _be=class{constructor(){an(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}},Q9=new _be;function kbe(e,t){w.useEffect(()=>(t&&Q9.add(e),()=>{Q9.remove(e)}),[t,e])}function Ebe(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=w.useRef(null),d=w.useRef(null),[h,g,v]=Tbe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Pbe(u,t&&a),kbe(u,t);const b=w.useRef(null),S=w.useCallback(j=>{b.current=j.target},[]),E=w.useCallback(j=>{j.key==="Escape"&&(j.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[_,k]=w.useState(!1),[T,A]=w.useState(!1),M=w.useCallback((j={},F=null)=>({role:"dialog",...j,ref:Mn(F,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?g:void 0,"aria-describedby":T?v:void 0,onClick:Cv(j.onClick,H=>H.stopPropagation())}),[v,T,h,g,_]),R=w.useCallback(j=>{j.stopPropagation(),b.current===j.target&&Q9.isTopModal(u)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),D=w.useCallback((j={},F=null)=>({...j,ref:Mn(F,d),onClick:Cv(j.onClick,R),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 o0=w;function V5e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var W5e=typeof Object.is=="function"?Object.is:V5e,U5e=o0.useState,G5e=o0.useEffect,q5e=o0.useLayoutEffect,Y5e=o0.useDebugValue;function K5e(e,t){var n=t(),r=U5e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return q5e(function(){i.value=n,i.getSnapshot=t,hC(i)&&o({inst:i})},[e,n,t]),G5e(function(){return hC(i)&&o({inst:i}),e(function(){hC(i)&&o({inst:i})})},[e]),Y5e(n),n}function hC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!W5e(e,n)}catch{return!0}}function X5e(e,t){return t()}var Z5e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X5e:K5e;MW.useSyncExternalStore=o0.useSyncExternalStore!==void 0?o0.useSyncExternalStore:Z5e;(function(e){e.exports=MW})(H5e);var a_={},Q5e={get exports(){return a_},set exports(e){a_=e}},IW={};/**
|
|||
|
* @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 Px=w,J5e=o_;function eSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tSe=typeof Object.is=="function"?Object.is:eSe,nSe=J5e.useSyncExternalStore,rSe=Px.useRef,iSe=Px.useEffect,oSe=Px.useMemo,aSe=Px.useDebugValue;IW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=rSe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=oSe(function(){function l(v){if(!u){if(u=!0,d=v,v=r(v),i!==void 0&&a.hasValue){var b=a.value;if(i(b,v))return h=b}return h=v}if(b=h,tSe(d,v))return b;var S=r(v);return i!==void 0&&i(b,S)?b:(d=v,h=S)}var u=!1,d,h,g=n===void 0?null:n;return[function(){return l(t())},g===null?void 0:function(){return l(g())}]},[t,n,r,i]);var s=nSe(e,o[0],o[1]);return iSe(function(){a.hasValue=!0,a.value=s},[s]),aSe(s),s};(function(e){e.exports=IW})(Q5e);function sSe(e){e()}let RW=sSe;const lSe=e=>RW=e,uSe=()=>RW,Xd=w.createContext(null);function DW(){return w.useContext(Xd)}const cSe=()=>{throw new Error("uSES not initialized!")};let NW=cSe;const dSe=e=>{NW=e},fSe=(e,t)=>e===t;function hSe(e=Xd){const t=e===Xd?DW:()=>w.useContext(e);return function(r,i=fSe){const{store:o,subscription:a,getServerState:s}=t(),l=NW(a.addNestedSub,o.getState,s||o.getState,r,i);return w.useDebugValue(l),l}}const pSe=hSe();var EI={},mSe={get exports(){return EI},set exports(e){EI=e}},zn={};/**
|
|||
|
* @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 JE=Symbol.for("react.element"),eP=Symbol.for("react.portal"),Tx=Symbol.for("react.fragment"),Lx=Symbol.for("react.strict_mode"),Ax=Symbol.for("react.profiler"),Ox=Symbol.for("react.provider"),Mx=Symbol.for("react.context"),gSe=Symbol.for("react.server_context"),Ix=Symbol.for("react.forward_ref"),Rx=Symbol.for("react.suspense"),Dx=Symbol.for("react.suspense_list"),Nx=Symbol.for("react.memo"),jx=Symbol.for("react.lazy"),vSe=Symbol.for("react.offscreen"),jW;jW=Symbol.for("react.module.reference");function ps(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JE:switch(e=e.type,e){case Tx:case Ax:case Lx:case Rx:case Dx:return e;default:switch(e=e&&e.$$typeof,e){case gSe:case Mx:case Ix:case jx:case Nx:case Ox:return e;default:return t}}case eP:return t}}}zn.ContextConsumer=Mx;zn.ContextProvider=Ox;zn.Element=JE;zn.ForwardRef=Ix;zn.Fragment=Tx;zn.Lazy=jx;zn.Memo=Nx;zn.Portal=eP;zn.Profiler=Ax;zn.StrictMode=Lx;zn.Suspense=Rx;zn.SuspenseList=Dx;zn.isAsyncMode=function(){return!1};zn.isConcurrentMode=function(){return!1};zn.isContextConsumer=function(e){return ps(e)===Mx};zn.isContextProvider=function(e){return ps(e)===Ox};zn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JE};zn.isForwardRef=function(e){return ps(e)===Ix};zn.isFragment=function(e){return ps(e)===Tx};zn.isLazy=function(e){return ps(e)===jx};zn.isMemo=function(e){return ps(e)===Nx};zn.isPortal=function(e){return ps(e)===eP};zn.isProfiler=function(e){return ps(e)===Ax};zn.isStrictMode=function(e){return ps(e)===Lx};zn.isSuspense=function(e){return ps(e)===Rx};zn.isSuspenseList=function(e){return ps(e)===Dx};zn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tx||e===Ax||e===Lx||e===Rx||e===Dx||e===vSe||typeof e=="object"&&e!==null&&(e.$$typeof===jx||e.$$typeof===Nx||e.$$typeof===Ox||e.$$typeof===Mx||e.$$typeof===Ix||e.$$typeof===jW||e.getModuleId!==void 0)};zn.typeOf=ps;(function(e){e.exports=zn})(mSe);function ySe(){const e=uSe();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 PI={notify(){},get:()=>[]};function bSe(e,t){let n,r=PI;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function a(){d.onStateChange&&d.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=ySe())}function u(){n&&(n(),n=void 0,r.clear(),r=PI)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return d}const SSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xSe=SSe?w.useLayoutEffect:w.useEffect;function wSe({store:e,context:t,children:n,serverState:r}){const i=w.useMemo(()=>{const s=bSe(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=w.useMemo(()=>e.getState(),[e]);xSe(()=>{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||Xd;return N.createElement(a.Provider,{value:i},n)}function BW(e=Xd){const t=e===Xd?DW:()=>w.useContext(e);return function(){const{store:r}=t();return r}}const CSe=BW();function _Se(e=Xd){const t=e===Xd?CSe:BW(e);return function(){return t().dispatch}}const kSe=_Se();dSe(a_.useSyncExternalStoreWithSelector);lSe(Qs.unstable_batchedUpdates);function O4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O4=function(n){return typeof n}:O4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},O4(e)}function ESe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enum
|
|||
|
|
|||
|
`;if(!(0,e.isString)($)||$.length<1)throw new Error(`${Z} Name (key) of reducer is required. ${W}`);if(!G||!G.length)return;const{duplicates:Q,subsets:re}=(0,e.findDuplicatesAndSubsets)(G);if(Q.length>1)throw new Error(`${Z} Duplicated paths.
|
|||
|
|
|||
|
${JSON.stringify(Q)}
|
|||
|
|
|||
|
${W}`);if(re.length>1)throw new Error(`${Z} You are trying to persist an entire property and also some of its subset.
|
|||
|
|
|||
|
${JSON.stringify(re)}
|
|||
|
|
|||
|
${W}`)};e.singleTransformValidator=j;const F=function(G){if(!(0,e.isArray)(G))return;const $=(G==null?void 0:G.map(U=>U.deepPersistKey).filter(U=>U))||[];if($.length){const U=$.filter((X,Z)=>$.indexOf(X)!==Z);if(U.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(U)}`)}};e.transformsValidator=F;const H=function({whitelist:G,blacklist:$}){if(G&&G.length&&$&&$.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(G){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)(G);(0,e.throwError)({duplicates:U,subsets:X},"whitelist")}if($){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)($);(0,e.throwError)({duplicates:U,subsets:X},"blacklist")}};e.configValidator=H;const K=function({duplicates:G,subsets:$},U){if(G.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${U}.
|
|||
|
|
|||
|
${JSON.stringify(G)}`);if($.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${U}. You must decide if you want to persist an entire path or its specific subset.
|
|||
|
|
|||
|
${JSON.stringify($)}`)};e.throwError=K;const te=function(G){return(0,e.isArray)(G)?G.filter(e.unique).reduce(($,U)=>{const X=U.split("."),Z=X[0],W=X.slice(1).join(".")||void 0,Q=$.filter(de=>Object.keys(de)[0]===Z)[0],re=Q?Object.values(Q)[0]:void 0;return Q||$.push({[Z]:W?[W]:void 0}),Q&&!re&&W&&(Q[Z]=[W]),Q&&re&&W&&re.push(W),$},[]):[]};e.getRootKeysGroup=te})(rU);(function(e){var t=Co&&Co.__rest||function(h,g){var v={};for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&g.indexOf(b)<0&&(v[b]=h[b]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,b=Object.getOwnPropertySymbols(h);S<b.length;S++)g.indexOf(b[S])<0&&Object.prototype.propertyIsEnumerable.call(h,b[S])&&(v[b[S]]=h[b[S]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=rU,r=ep,i=hP,o=function(h,g,v={}){const b=v.whitelist||null,S=v.blacklist||null;function E(_){return!!(b&&b.indexOf(_)===-1||S&&S.indexOf(_)!==-1)}return{in:(_,k,T)=>!E(k)&&h?h(_,k,T):_,out:(_,k,T)=>!E(k)&&g?g(_,k,T):_,deepPersistKey:b&&b[0]}},a=(h,g,v,{debug:b,whitelist:S,blacklist:E,transforms:_})=>{if(S||E)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)(_);const k=(0,n.cloneDeep)(v);let T=h;if(T&&(0,n.isObjectLike)(T)){const A=(0,n.difference)(g,v);(0,n.isEmpty)(A)||(T=(0,n.mergeDeep)(h,A,{preserveUndefined:!0}),b&&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(A)}`)),Object.keys(T).forEach(M=>{if(M!=="_persist"){if((0,n.isObjectLike)(k[M])){k[M]=(0,n.mergeDeep)(k[M],T[M]);return}k[M]=T[M]}})}return b&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),k};e.autoMergeDeep=a;const s=(h,g)=>((0,n.singleTransformValidator)(g,h,i.ConfigType.WHITELIST),o(v=>{if(!g||!g.length)return v;let b=null,S;return g.forEach(E=>{const _=E.split(".");S=(0,n.path)(v,_),typeof S>"u"&&(0,n.isIntegerString)(_[_.length-1])&&(S=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(_,S),T=(0,n.isArray)(k)?[]:{};b=(0,n.mergeDeep)(b||T,k,{preservePlaceholder:!0})}),b||v},v=>(0,n.preserveUndefined)(v,g,i.ConfigType.WHITELIST),{whitelist:[h]}));e.createWhitelist=s;const l=(h,g)=>((0,n.singleTransformValidator)(g,h,i.ConfigType.BLACKLIST),o(v=>{if(!g||!g.length)return;const b=(0,n.preserveUndefined)(v,g,i.ConfigType.BLACKLIST,!0);return g.map(E=>E.split(".")).reduce((E,_)=>(0,n.dissocPath)(E,_),b)},v=>(0,n.preserveUndefined)(v,g,i.ConfigType.BLACKLIST),{whitelist:[h]}));e.createBlacklist=l;const u=function(h,g){return g.map(v=>{const b=Object.keys(v)[0],S=v[b];return h===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,S):(0,e.createBlacklist)(b,S)})};e.getTransforms=u;const d=h=>{var{key:g,whitelist:v,blacklist:b,storage:S,transforms:E,rootReducer:_}=h,k=t(h,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:b});const T=(0,n.getRootKeysGroup)(v),A=(0,n.getRootKeysGroup)(b),M=Object.keys(_(void 0,{type:""})),R=T.map(te=>Object.keys(te)[0]),D=A.map(te=>Object.keys(te)[0]),j=M.filter(te=>R.indexOf(te)===-1&&D.indexOf(te)===-1),F=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),H=(0,e.getTransforms)(i.ConfigType.BLACKLIST,A),K=(0,n.isArray)(v)?j.map(te=>(0,e.createBlacklist)(te)):[];return Object.assign(Object.assign({},k),{key:g,storage:S,transforms:[...F,...H,...K,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=d})(nU);const Pd=(e,t)=>Math.floor(e/t)*t,ql=(e,t)=>Math.round(e/t)*t;var ke={},Zxe={get exports(){return ke},set exports(e){ke=e}};/**
|
|||
|
* @license
|
|||
|
* Lodash <https://lodash.com/>
|
|||
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|||
|
* Released under MIT license <https://lodash.com/license>
|
|||
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|||
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|||
|
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,g=2,v=4,b=1,S=2,E=1,_=2,k=4,T=8,A=16,M=32,R=64,D=128,j=256,F=512,H=30,K="...",te=800,G=16,$=1,U=2,X=3,Z=1/0,W=9007199254740991,Q=17976931348623157e292,re=0/0,de=4294967295,ve=de-1,Pe=de>>>1,be=[["ary",D],["bind",E],["bindKey",_],["curry",T],["curryRight",A],["flip",F],["partial",M],["partialRight",R],["rearg",j]],He="[object Arguments]",Oe="[object Array]",ot="[object AsyncFunction]",Ve="[object Boolean]",Be="[object Date]",wt="[object DOMException]",st="[object Error]",gt="[object Function]",St="[object GeneratorFunction]",Ae="[object Map]",lt="[object Number]",Mt="[object Null]",ut="[object Object]",_t="[object Promise]",ln="[object Proxy]",ae="[object RegExp]",De="[object Set]",Ye="[object String]",Ke="[object Symbol]",xe="[object Undefined]",Ne="[object WeakMap]",Ct="[object WeakSet]",Dt="[object ArrayBuffer]",Le="[object DataView]",At="[object Float32Array]",$e="[object Float64Array]",vt="[object Int8Array]",tn="[object Int16Array]",Dn="[object Int32Array]",Xe="[object Uint8Array]",xt="[object Uint8ClampedArray]",ht="[object Uint16Array]",Ht="[object Uint32Array]",nn=/\b__p \+= '';/g,pr=/\b(__p \+=) '' \+/g,Mo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,il=/[&<>"']/g,R0=RegExp(Mi.source),Ba=RegExp(il.source),Pp=/<%-([\s\S]+?)%>/g,D0=/<%([\s\S]+?)%>/g,bc=/<%=([\s\S]+?)%>/g,Tp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lp=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vf=/[\\^$.*+?()[\]{}|]/g,N0=RegExp(vf.source),Sc=/^\s+/,yf=/\s/,j0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,xc=/,? & /,B0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$0=/[()=,{}\[\]\/\s]/,F0=/\\(\\)?/g,z0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ms=/\w*$/,H0=/^[-+]0x[0-9a-f]+$/i,V0=/^0b[01]+$/i,W0=/^\[object .+?Constructor\]$/,U0=/^0o[0-7]+$/i,G0=/^(?:0|[1-9]\d*)$/,q0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,al=/($^)/,Y0=/['\n\r\u2028\u2029\\]/g,gs="\\ud800-\\udfff",yu="\\u0300-\\u036f",bu="\\ufe20-\\ufe2f",sl="\\u20d0-\\u20ff",Su=yu+bu+sl,Ap="\\u2700-\\u27bf",wc="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nn="\\u2000-\\u206f",Tn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",aa="A-Z\\xc0-\\xd6\\xd8-\\xde",Hr="\\ufe0e\\ufe0f",li=ll+oa+Nn+Tn,sa="['’]",ul="["+gs+"]",ui="["+li+"]",vs="["+Su+"]",bf="\\d+",xu="["+Ap+"]",ys="["+wc+"]",Sf="[^"+gs+li+bf+Ap+wc+aa+"]",Ii="\\ud83c[\\udffb-\\udfff]",Op="(?:"+vs+"|"+Ii+")",Mp="[^"+gs+"]",xf="(?:\\ud83c[\\udde6-\\uddff]){2}",cl="[\\ud800-\\udbff][\\udc00-\\udfff]",Io="["+aa+"]",dl="\\u200d",wu="(?:"+ys+"|"+Sf+")",K0="(?:"+Io+"|"+Sf+")",Cc="(?:"+sa+"(?:d|ll|m|re|s|t|ve))?",_c="(?:"+sa+"(?:D|LL|M|RE|S|T|VE))?",wf=Op+"?",kc="["+Hr+"]?",$a="(?:"+dl+"(?:"+[Mp,xf,cl].join("|")+")"+kc+wf+")*",Cf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yt=kc+wf+$a,Ip="(?:"+[xu,xf,cl].join("|")+")"+Yt,Ec="(?:"+[Mp+vs+"?",vs,xf,cl,ul].join("|")+")",Pc=RegExp(sa,"g"),Rp=RegExp(vs,"g"),la=RegExp(Ii+"(?="+Ii+")|"+Ec+Yt,"g"),Kn=RegExp([Io+"?"+ys+"+"+Cc+"(?="+[ui,Io,"$"].join("|")+")",K0+"+"+_c+"(?="+[ui,Io+wu,"$"].join("|")+")",Io+"?"+wu+"+"+Cc,Io+"+"+_c,Cu,Cf,bf,Ip].join("|"),"g"),_f=RegExp("["+dl+gs+Su+Hr+"]"),Dp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Np=-1,mn={};mn[At
|
|||
|
/* [wrapped with `+m+`] */
|
|||
|
`)}function dX(c){return Ft(c)||nh(c)||!!(s1&&c&&c[s1])}function Iu(c,m){var C=typeof c;return m=m??W,!!m&&(C=="number"||C!="symbol"&&G0.test(c))&&c>-1&&c%1==0&&c<m}function vo(c,m,C){if(!Cr(C))return!1;var O=typeof m;return(O=="number"?Ho(C)&&Iu(m,C.length):O=="string"&&m in C)?Ts(C[m],c):!1}function Lw(c,m){if(Ft(c))return!1;var C=typeof c;return C=="number"||C=="symbol"||C=="boolean"||c==null||ba(c)?!0:Lp.test(c)||!Tp.test(c)||m!=null&&c in gn(m)}function fX(c){var m=typeof c;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?c!=="__proto__":c===null}function Aw(c){var m=Se(c),C=z[m];if(typeof C!="function"||!(m in Zt.prototype))return!1;if(c===C)return!0;var O=ue(C);return!!O&&c===O[0]}function hX(c){return!!Dc&&Dc in c}var pX=mr?Ru:qw;function B1(c){var m=c&&c.constructor,C=typeof m=="function"&&m.prototype||Ln;return c===C}function RT(c){return c===c&&!Cr(c)}function DT(c,m){return function(C){return C==null?!1:C[c]===m&&(m!==n||c in gn(C))}}function mX(c){var m=R3(c,function(O){return C.size===u&&C.clear(),O}),C=m.cache;return m}function gX(c,m){var C=c[1],O=m[1],B=C|O,V=B<(E|_|D),J=O==D&&C==T||O==D&&C==j&&c[7].length<=m[8]||O==(D|j)&&m[7].length<=m[8]&&C==T;if(!(V||J))return c;O&E&&(c[2]=m[2],B|=C&E?0:k);var ne=m[3];if(ne){var ce=c[3];c[3]=ce?T3(ce,ne,m[4]):ne,c[4]=ce?da(c[3],d):m[4]}return ne=m[5],ne&&(ce=c[5],c[5]=ce?I1(ce,ne,m[6]):ne,c[6]=ce?da(c[5],d):m[6]),ne=m[7],ne&&(c[7]=ne),O&D&&(c[8]=c[8]==null?m[8]:fi(c[8],m[8])),c[9]==null&&(c[9]=m[9]),c[0]=m[0],c[1]=B,c}function vX(c){var m=[];if(c!=null)for(var C in gn(c))m.push(C);return m}function yX(c){return Wp.call(c)}function NT(c,m,C){return m=Rr(m===n?c.length-1:m,0),function(){for(var O=arguments,B=-1,V=Rr(O.length-m,0),J=ye(V);++B<V;)J[B]=O[m+B];B=-1;for(var ne=ye(m+1);++B<m;)ne[B]=O[B];return ne[m]=C(J),Ri(c,this,ne)}}function jT(c,m){return m.length<2?c:yl(c,qr(m,0,-1))}function bX(c,m){for(var C=c.length,O=fi(m.length,C),B=Fi(c);O--;){var V=m[O];c[O]=Iu(V,C)?B[V]:n}return c}function Ow(c,m){if(!(m==="constructor"&&typeof c[m]=="function")&&m!="__proto__")return c[m]}var BT=FT(Kf),$1=$f||function(c,m){return kt.setTimeout(c,m)},Mw=FT(dm);function $T(c,m,C){var O=m+"";return Mw(c,cX(O,SX(sX(O),C)))}function FT(c){var m=0,C=0;return function(){var O=l1(),B=G-(O-C);if(C=O,B>0){if(++m>=te)return arguments[0]}else m=0;return c.apply(n,arguments)}}function A3(c,m){var C=-1,O=c.length,B=O-1;for(m=m===n?O:m;++C<m;){var V=qf(C,B),J=c[V];c[V]=c[C],c[C]=J}return c.length=m,c}var zT=mX(function(c){var m=[];return c.charCodeAt(0)===46&&m.push(""),c.replace(ia,function(C,O,B,V){m.push(B?V.replace(F0,"$1"):O||C)}),m});function Tl(c){if(typeof c=="string"||ba(c))return c;var m=c+"";return m=="0"&&1/c==-Z?"-0":m}function th(c){if(c!=null){try{return Sr.call(c)}catch{}try{return c+""}catch{}}return""}function SX(c,m){return Xn(be,function(C){var O="_."+C[0];m&C[1]&&!Xi(c,O)&&c.push(O)}),c.sort()}function HT(c){if(c instanceof Zt)return c.clone();var m=new ho(c.__wrapped__,c.__chain__);return m.__actions__=Fi(c.__actions__),m.__index__=c.__index__,m.__values__=c.__values__,m}function xX(c,m,C){(C?vo(c,m,C):m===n)?m=1:m=Rr(Vt(m),0);var O=c==null?0:c.length;if(!O||m<1)return[];for(var B=0,V=0,J=ye(Ff(O/m));B<O;)J[V++]=qr(c,B,B+=m);return J}function wX(c){for(var m=-1,C=c==null?0:c.length,O=0,B=[];++m<C;){var V=c[m];V&&(B[O++]=V)}return B}function CX(){var c=arguments.length;if(!c)return[];for(var m=ye(c-1),C=arguments[0],O=c;O--;)m[O-1]=arguments[O];return za(Ft(C)?Fi(C):[C],Ur(m,1))}var _X=Ot(function(c,m){return Yr(c)?Kc(c,Ur(m,1,Yr,!0)):[]}),kX=Ot(function(c,m){var C=Ga(m);return Yr(C)&&(C=n),Yr(c)?Kc(c,Ur(m,1,Yr,!0),Me(C,2)):[]}),EX=Ot(function(c,m){var C=Ga(m);return Yr(C)&&(C=n),Yr(c)?Kc(c,Ur(m,1,Yr,!0),n,C):[]});function PX(c,m,C){var O=c==null?0:c.length;return O?(m=C||m===n?1:Vt(m),qr(c,m<0?0:m,O)):[]}function TX(c,m,C){var O=c==null?0:c.length;return O?(m=C||m===n?1:Vt(m),m=O-m,qr(c,0,m<0?0:m)):[]}function LX(c,m){return c&&c.length?nd(c,Me(m,3),!0,!0):[]}function AX(c,m){return c&&c.length?nd(c,Me(m,3),!0):[]}function OX(c,m,C,O){var B=c==null?0:c.length;
|
|||
|
`;c.replace(tt,function(Tt,Qt,on,Sa,yo,xa){return on||(on=Sa),Re+=c.slice(_e,xa).replace(Y0,pl),Qt&&(ne=!0,Re+=`' +
|
|||
|
__e(`+Qt+`) +
|
|||
|
'`),yo&&(ce=!0,Re+=`';
|
|||
|
`+yo+`;
|
|||
|
__p += '`),on&&(Re+=`' +
|
|||
|
((__t = (`+on+`)) == null ? '' : __t) +
|
|||
|
'`),_e=xa+Tt.length,Tt}),Re+=`';
|
|||
|
`;var Pt=un.call(m,"variable")&&m.variable;if(!Pt)Re=`with (obj) {
|
|||
|
`+Re+`
|
|||
|
}
|
|||
|
`;else if($0.test(Pt))throw new It(s);Re=(ce?Re.replace(nn,""):Re).replace(pr,"$1").replace(Mo,"$1;"),Re="function("+(Pt||"obj")+`) {
|
|||
|
`+(Pt?"":`obj || (obj = {});
|
|||
|
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|||
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
`:`;
|
|||
|
`)+Re+`return __p
|
|||
|
}`;var qt=SL(function(){return rn(V,bt+"return "+Re).apply(n,J)});if(qt.source=Re,jw(qt))throw qt;return qt}function FJ(c){return An(c).toLowerCase()}function zJ(c){return An(c).toUpperCase()}function HJ(c,m,C){if(c=An(c),c&&(C||m===n))return fo(c);if(!c||!(m=mo(m)))return c;var O=Zi(c),B=Zi(m),V=ca(O,B),J=bs(O,B)+1;return Es(O,V,J).join("")}function VJ(c,m,C){if(c=An(c),c&&(C||m===n))return c.slice(0,n1(c)+1);if(!c||!(m=mo(m)))return c;var O=Zi(c),B=bs(O,Zi(m))+1;return Es(O,0,B).join("")}function WJ(c,m,C){if(c=An(c),c&&(C||m===n))return c.replace(Sc,"");if(!c||!(m=mo(m)))return c;var O=Zi(c),B=ca(O,Zi(m));return Es(O,B).join("")}function UJ(c,m){var C=H,O=K;if(Cr(m)){var B="separator"in m?m.separator:B;C="length"in m?Vt(m.length):C,O="omission"in m?mo(m.omission):O}c=An(c);var V=c.length;if(ku(c)){var J=Zi(c);V=J.length}if(C>=V)return c;var ne=C-Ha(O);if(ne<1)return O;var ce=J?Es(J,0,ne).join(""):c.slice(0,ne);if(B===n)return ce+O;if(J&&(ne+=ce.length-ne),Bw(B)){if(c.slice(ne).search(B)){var _e,Te=ce;for(B.global||(B=Df(B.source,An(ms.exec(B))+"g")),B.lastIndex=0;_e=B.exec(Te);)var Re=_e.index;ce=ce.slice(0,Re===n?ne:Re)}}else if(c.indexOf(mo(B),ne)!=ne){var tt=ce.lastIndexOf(B);tt>-1&&(ce=ce.slice(0,tt))}return ce+O}function GJ(c){return c=An(c),c&&R0.test(c)?c.replace(Mi,a3):c}var qJ=Pl(function(c,m,C){return c+(C?" ":"")+m.toUpperCase()}),zw=bm("toUpperCase");function bL(c,m,C){return c=An(c),m=C?n:m,m===n?zp(c)?Rf(c):J0(c):c.match(m)||[]}var SL=Ot(function(c,m){try{return Ri(c,n,m)}catch(C){return jw(C)?C:new It(C)}}),YJ=gr(function(c,m){return Xn(m,function(C){C=Tl(C),pa(c,C,Dw(c[C],c))}),c});function KJ(c){var m=c==null?0:c.length,C=Me();return c=m?Un(c,function(O){if(typeof O[1]!="function")throw new Di(a);return[C(O[0]),O[1]]}):[],Ot(function(O){for(var B=-1;++B<m;){var V=c[B];if(Ri(V[0],this,O))return Ri(V[1],this,O)}})}function XJ(c){return Zp(wi(c,h))}function Hw(c){return function(){return c}}function ZJ(c,m){return c==null||c!==c?m:c}var QJ=N1(),JJ=N1(!0);function Wo(c){return c}function Vw(c){return wr(typeof c=="function"?c:wi(c,h))}function eee(c){return Jc(wi(c,h))}function tee(c,m){return Sl(c,wi(m,h))}var nee=Ot(function(c,m){return function(C){return _s(C,c,m)}}),ree=Ot(function(c,m){return function(C){return _s(c,C,m)}});function Ww(c,m,C){var O=Ei(m),B=tm(m,O);C==null&&!(Cr(m)&&(B.length||!O.length))&&(C=m,m=c,c=this,B=tm(m,Ei(m)));var V=!(Cr(C)&&"chain"in C)||!!C.chain,J=Ru(c);return Xn(B,function(ne){var ce=m[ne];c[ne]=ce,J&&(c.prototype[ne]=function(){var _e=this.__chain__;if(V||_e){var Te=c(this.__wrapped__),Re=Te.__actions__=Fi(this.__actions__);return Re.push({func:ce,args:arguments,thisArg:c}),Te.__chain__=_e,Te}return ce.apply(c,za([this.value()],arguments))})}),c}function iee(){return kt._===this&&(kt._=i1),this}function Uw(){}function oee(c){return c=Vt(c),Ot(function(m){return ed(m,c)})}var aee=j1(Un),see=j1(Wn),lee=j1(Tc);function xL(c){return Lw(c)?hl(Tl(c)):ks(c)}function uee(c){return function(m){return c==null?n:yl(c,m)}}var cee=x(),dee=x(!0);function Gw(){return[]}function qw(){return!1}function fee(){return{}}function hee(){return""}function pee(){return!0}function mee(c,m){if(c=Vt(c),c<1||c>W)return[];var C=de,O=fi(c,de);m=Me(m),c-=de;for(var B=Of(O,m);++C<c;)m(C);return B}function gee(c){return Ft(c)?Un(c,Tl):ba(c)?[c]:Fi(zT(An(c)))}function vee(c){var m=++Nf;return An(c)+m}var yee=Sm(function(c,m){return c+m},0),bee=I("ceil"),See=Sm(function(c,m){return c/m},1),xee=I("floor");function wee(c){return c&&c.length?Nr(c,Wo,nm):n}function Cee(c,m){return c&&c.length?Nr(c,Me(m,2),nm):n}function _ee(c){return Tf(c,Wo)}function kee(c,m){return Tf(c,Me(m,2))}function Eee(c){return c&&c.length?Nr(c,Wo,bl):n}function Pee(c,m){return c&&c.length?Nr(c,Me(m,2),bl):n}var Tee=Sm(function(c,m){return c*m},1),Lee=I("round"),Aee=Sm(function(c,m){return c-m},0);function Oee(c){return c&&c.length?Af(c,Wo):0}function Mee(c,m){return c&&c.length?Af(c,Me(m,2)):0}return z.after=eQ,z.ary=QT,z.assign=zQ,z.assignIn=fL,z.assignInWith=B3,z.assignWith=HQ,z.at=VQ,z.before=JT,z.bind=Dw,z.bindAll=YJ,z.bindKey
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s6e(e){return r6e(e)||i6e(e)||o6e(e)||a6e()}function aR(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 sR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(n),!0).forEach(function(r){cf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var l6e={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)}},u6e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pu(this,e),this.init(t,n)}return mu(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||l6e,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,sR(sR({},{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}(),Yl=new u6e,Qd=function(){function e(){pu(this,e),this.observers={}}return mu(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 ov(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function lR(e){return e==null?"":""+e}function c6e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function wP(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 uR(e,t,n){var r=wP(e,t,Object),i=r.obj,o=r.k;i[o]=n}function d6e(e,t,n,r){var i=wP(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 J5(e,t){var n=wP(e,t),r=n.obj,i=n.k;if(r)return r[i]}function cR(e,t,n){var r=J5(e,n);return r!==void 0?r:J5(t,n)}function qU(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]):qU(e[r],t[r],n):e[r]=t[r]);return e}function Rm(e){return e.replace
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NCe(e,t){return MCe(e)||ICe(e,t)||RCe(e,t)||DCe()}function FR(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 PC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(n),!0).forEach(function(r){iG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jCe=function(t,n){var r=w.useRef();return w.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function We(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=w.useContext(ACe)||{},i=r.i18n,o=r.defaultNS,a=n||i||ECe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new OCe),!a){__("You will need to pass in an i18next instance by using initReactI18next");var s=function(F){return Array.isArray(F)?F[F.length-1]:F},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&__("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=PC(PC(PC({},_Ce()),a.options.react),t),d=u.useSuspense,h=u.keyPrefix,g=e||o||a.options&&a.options.defaultNS;g=typeof g=="string"?[g]:g||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(g);var v=(a.isInitialized||a.initializedStoreOnce)&&g.every(function(j){return yCe(j,a,u)});function b(){return a.getFixedT(null,u.nsMode==="fallback"?g:g[0],h)}var S=w.useState(b),E=NCe(S,2),_=E[0],k=E[1],T=g.join(),A=jCe(T),M=w.useRef(!0);w.useEffect(function(){var j=u.bindI18n,F=u.bindI18nStore;M.current=!0,!v&&!d&&DR(a,g,function(){M.current&&k(b)}),v&&A&&A!==T&&M.current&&k(b);function H(){M.current&&k(b)}return j&&a&&a.on(j,H),F&&a&&a.store.on(F,H),function(){M.current=!1,j&&a&&j.split(" ").forEach(function(K){return a.off(K,H)}),F&&a&&F.split(" ").forEach(function(K){return a.store.off(K,H)})}},[a,T]);var R=w.useRef(!0);w.useEffect(function(){M.current&&!R.current&&k(b),R.current=!1},[a,h]);var D=[_,a,v];if(D.t=_,D.i18n=a,D.ready=v,v||!v&&!d)return D;throw new Promise(function(j){DR(a,g,function(){j()})})}zt.use(nG).use(ZU).use(LCe).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 BCe={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:zt.isInitialized?zt.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,cancelOptions:{cancelType:"immediate",cancelAfter:null}},aG=fp({name:"system",initialState:BCe,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=zt.t("common:statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?zt.t("common:statusConnected"):zt.t("common:statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,messa
|
|||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==jm&&o!==void 0,l=a!==jm&&a!==void 0,u=this.padding(),d=o-u*2,h=a-u*2,g=0,v=this.wrap(),b=v!==vD,S=v!==S_e&&b,E=this.ellipsis();this.textArr=[],jC().font=this._getContextFont();for(var _=E?this._getTextWidth(NC):0,k=0,T=t.length;k<T;++k){var A=t[k],M=this._getTextWidth(A);if(s&&M>d)for(;A.length>0;){for(var R=0,D=A.length,j="",F=0;R<D;){var H=R+D>>>1,K=A.slice(0,H+1),te=this._getTextWidth(K)+_;te<=d?(R=H+1,j=K,F=te):D=H}if(j){if(S){var G,$=A[j.length],U=$===Hb||$===mD;U&&F<=d?G=j.length:G=Math.max(j.lastIndexOf(Hb),j.lastIndexOf(mD))+1,G>0&&(R=G,j=j.slice(0,R),F=this._getTextWidth(j))}j=j.trimRight(),this._addTextLine(j),r=Math.max(r,F),g+=i;var X=this._shouldHandleEllipsis(g);if(X){this._tryToAddEllipsisToLastLine();break}if(A=A.slice(R),A=A.trimLeft(),A.length>0&&(M=this._getTextWidth(A),M<=d)){this._addTextLine(A),g+=i,r=Math.max(r,M);break}}else break}else this._addTextLine(A),g+=i,r=Math.max(r,M),this._shouldHandleEllipsis(g)&&k<T-1&&this._tryToAddEllipsisToLastLine();if(l&&g+i>h)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!==jm&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==vD;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==jm&&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+NC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+NC)}}getStrokeScaleEnabled(){return!0}}Lr.prototype._fillFunc=C_e;Lr.prototype._strokeFunc=__e;Lr.prototype.className=p_e;Lr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Ar(Lr);ee.overWriteSetter(Lr,"width",TP());ee.overWriteSetter(Lr,"height",TP());ee.addGetterSetter(Lr,"fontFamily","Arial");ee.addGetterSetter(Lr,"fontSize",12,qe());ee.addGetterSetter(Lr,"fontStyle",tq);ee.addGetterSetter(Lr,"fontVariant",tq);ee.addGetterSetter(Lr,"padding",0,qe());ee.addGetterSetter(Lr,"align",eq);ee.addGetterSetter(Lr,"verticalAlign",m_e);ee.addGetterSetter(Lr,"lineHeight",1,qe());ee.addGetterSetter(Lr,"wrap",b_e);ee.addGetterSetter(Lr,"ellipsis",!1,rl());ee.addGetterSetter(Lr,"letterSpacing",0,qe());ee.addGetterSetter(Lr,"text","",T0());ee.addGetterSetter(Lr,"textDecoration","");var E_e="",rq="normal";function iq(e){e.fillText(this.partialText,0,0)}function oq(e){e.strokeText(this.partialText,0,0)}class bi extends je{constructor(t){super(t),this.dummyCanvas=fe.createCanvasElement(),this.dataArray=[],this.dataArray=Hn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Hn.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 fe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line hei
|
|||
|
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 t8=function(e,t){return t8=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])},t8(e,t)};function uAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");t8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var iu=function(){return iu=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},iu.apply(this,arguments)};function oN(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 rs=function(e,t){return Number(e.toFixed(t))},cAe=function(e,t){return typeof e=="number"?e:t},Pi=function(e,t,n){n&&typeof n=="function"&&n(e,t)},dAe=function(e){return-Math.cos(e*Math.PI)/2+.5},fAe=function(e){return e},hAe=function(e){return e*e},pAe=function(e){return e*(2-e)},mAe=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},gAe=function(e){return e*e*e},vAe=function(e){return--e*e*e+1},yAe=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},bAe=function(e){return e*e*e*e},SAe=function(e){return 1- --e*e*e*e},xAe=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},wAe=function(e){return e*e*e*e*e},CAe=function(e){return 1+--e*e*e*e*e},_Ae=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},IY={easeOut:dAe,linear:fAe,easeInQuad:hAe,easeOutQuad:pAe,easeInOutQuad:mAe,easeInCubic:gAe,easeOutCubic:vAe,easeInOutCubic:yAe,easeInQuart:bAe,easeOutQuart:SAe,easeInOutQuart:xAe,easeInQuint:wAe,easeOutQuint:CAe,easeInOutQuint:_Ae},RY=function(e){typeof e=="number"&&cancelAnimationFrame(e)},Wl=function(e){e.mounted&&(RY(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function DY(e,t,n,r){if(e.mounted){var i=new Date().getTime(),o=1;Wl(e),e.animation=function(){if(!e.mounted)return RY(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 pf(e,t,n,r){var i=kAe(t);if(!(!e.mounted||!i)){var o=e.setTransformState,a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,d=t.scale-s,h=t.positionX-l,g=t.positionY-u;n===0?o(t.scale,t.positionX,t.positionY):DY(e,r,n,function(v){var b=s+d*v,S=l+h*v,E=u+g*v;o(b,S,E)})}}function kAe(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(isNaN(t)||isNaN(n)||isNaN(r))}function EAe(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,d=i-l;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:s,newDiffWidth:u,newContentHeight:l,newDiffHeight:d}}var PAe=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,d=s,h=r-i-l,g=l;return{minPositionX:u,maxPositionX:d,minPositionY:h,maxPositionY:g}},JP=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=EAe(n,r,t),a=o.wrapperWidth,s=o.wrapperHeight,l=o.newContentWidth,u=o.newDiffWidth,d=o.newContentHeight,h=o.newDiffHeight,g=PAe(a,l,u,s,d,h,Boolean(i));return g},u0=function(e,t){var n=JP(e,t);return e.bounds=n,n};function lw(e,t,n,r,i,o,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,d=n.maxPositionY,h=0,g=0;a&&(h=i,g=o);var v=n8(e,s-h,u+h,r),b=n8(t,l-g,d+g,r);return{x:v,y:b}}var n8=function(e,t,n,r){return r?e<t?rs(t,2):e>n?rs(n,2):rs(e,2):rs(e,2)};function uw(e,t,n,r,i,o){var a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,d=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 h=l-t*d,g=u-n*d,v=lw(h,g,i,o,0,0,null);return v}function qy(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 aN=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;
|
|||
|
}
|
|||
|
`,hN={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};vOe(yOe);var bOe=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=w.useContext(UY).setComponents,u=w.useRef(null),d=w.useRef(null);return w.useEffect(function(){var h=u.current,g=d.current;h!==null&&g!==null&&l&&l(h,g)},[]),N.createElement("div",{ref:u,className:"react-transform-wrapper "+hN.wrapper+" "+r,style:a},N.createElement("div",{ref:d,className:"react-transform-component "+hN.content+" "+o,style:s},t))};function SOe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=w.useState(0),[a,s]=w.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},d=()=>{s(!a)};return y.jsx(gOe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:h,zoomOut:g,resetTransform:v,centerView:b})=>y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"lightbox-image-options",children:[y.jsx(Ze,{icon:y.jsx(ske,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>h(),fontSize:20}),y.jsx(Ze,{icon:y.jsx(lke,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>g(),fontSize:20}),y.jsx(Ze,{icon:y.jsx(oke,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),y.jsx(Ze,{icon:y.jsx(ake,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),y.jsx(Ze,{icon:y.jsx($Pe,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:d,fontSize:20}),y.jsx(Ze,{icon:y.jsx(Yx,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),y.jsx(bOe,{wrapperStyle:{width:"100%",height:"100%"},children:y.jsx("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>b(1,0,"easeOut")})})]})})}function xOe(){const e=Ie(),t=he(g=>g.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=he(qq),[a,s]=w.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},d=()=>{e(yP())},h=()=>{e(vP())};return Je("Esc",()=>{t&&e(Fg(!1))},[t]),y.jsxs("div",{className:"lightbox-container",children:[y.jsx(Ze,{icon:y.jsx(ike,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Fg(!1))},fontSize:20}),y.jsxs("div",{className:"lightbox-display-container",children:[y.jsxs("div",{className:"lightbox-preview-wrapper",children:[y.jsx(Uq,{}),!r&&y.jsxs("div",{className:"current-image-next-prev-buttons",children:[y.jsx("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&y.jsx(ss,{"aria-label":"Previous image",icon:y.jsx(Rq,{className:"next-prev-button"}),variant:"unstyled",onClick:d})}),y.jsx("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&y.jsx(ss,{"aria-label":"Next image",icon:y.jsx(Dq,{className:"next-prev-button"}),variant:"unstyled",onClick:h})})]}),n&&y.jsxs(y.Fragment,{children:[y.jsx(SOe,{image:n.url,styleClass:"lightbox-image"}),r&&y.jsx(UP,{image:n})]})]}),y.jsx(MY,{})]})]})}function wOe(e){return dt({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 COe=at(Sp,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),_Oe=()=>{const{resultImages:e,userImages:t}=he(COe);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}},kOe=at([yp,qx,Or],(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:ke.isEqual}}),tT=e=>{const t=Ie(),{optionsPanel:n,children:r,styleClass:i}=e,{activeTabName:o,shouldShowDualDisplay:a,isLightboxOpen:s,shouldShowDualDisplayButton:l}=he(kOe),u=_Oe(),d=()=>{t(i7e(!a)),t(vi(!0))},h=g=>{const v=g.dataTransfer.getDa
|
|||
|
* @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 pMe=function(t){var n={},r=w,i=Bh,o=Object.assign;function a(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,x=1;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x]);return"Minified React error #"+f+"; visit "+p+" 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"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator;function R(f){return f===null||typeof f!="object"?null:(f=M&&f[M]||f["@@iterator"],typeof f=="function"?f:null)}function D(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case u:return"Portal";case g:return"Profiler";case h:return"StrictMode";case E:return"Suspense";case _:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case b:return(f.displayName||"Context")+".Consumer";case v:return(f._context.displayName||"Context")+".Provider";case S:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case k:return p=f.displayName||null,p!==null?p:D(f.type)||"Memo";case T:p=f._payload,f=f._init;try{return D(f(p))}catch{}}return null}function j(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(p);case 8:return p===h?"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 p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function F(f){var p=f,x=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,p.flags&4098&&(x=p.return),f=p.return;while(f)}return p.tag===3?x:null}function H(f){if(F(f)!==f)throw Error(a(188))}function K(f){var p=f.alternate;if(!p){if(p=F(f),p===null)throw Error(a(188));return p!==f?null:f}for(var x=f,P=p;;){var L=x.return;if(L===null)break;var I=L.alternate;if(I===null){if(P=L.return,P!==null){x=P;continue}break}if(L.child===I.child){for(I=L.child;I;){if(I===x)return H(L),f;if(I===P)return H(L),p;I=I.sibling}throw Error(a(188))}if(x.return!==P.return)x=L,P=I;else{for(var q=!1,le=L.child;le;){if(le===x){q=!0,x=L,P=I;break}if(le===P){q=!0,P=L,x=I;break}le=le.sibling}if(!q){for(le=I.child;le;){if(le===x){q=!0,x=I,P=L;break}if(le===P){q=!0,P=I,x=L;break}le=le.sibling}if(!q)throw Error(a(189))}}if(x.alternate!==P)throw Error(a(190))}if(x.tag!==3)throw Error(a(188));return x.stateNode.current===x?f:p}function te(f){return f=K(f),f!==null?G(f):null}function G(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var p=G(f);if(p!==null)return p;f=f.sibling}return null}function $(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){if(f.tag!==4){var p=$(f);if(p!==null)return p}f=f.sibling}return null}var U=Array.isArray,X=t.getPublicInstance,Z=t.getRootHostContext,W=t.getChildHostContext,Q=t.prepareForCommit,re=t.resetAfterCommit,de=t.createInstance,ve=t.appendInitialChild,Pe=t.finalizeInitialChildren,be=t.prepareUpdate,He=t.shouldSetTextContent,Oe=t.createTextInstance,ot=t.scheduleTimeout,Ve=t.cancelTimeout,Be=t.noTimeout,wt=t.isPrimaryRenderer,st=t.supportsMutation,gt=t.supportsPersistence,St=t.supports
|
|||
|
`+yu+f}var sl=!1;function Su(f,p){if(!f||sl)return"";sl=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(ze){var P=ze}Reflect.construct(f,[],p)}else{try{p.call()}catch(ze){P=ze}f.call(p.prototype)}else{try{throw Error()}catch(ze){P=ze}f()}}catch(ze){if(ze&&P&&typeof ze.stack=="string"){for(var L=ze.stack.split(`
|
|||
|
`),I=P.stack.split(`
|
|||
|
`),q=L.length-1,le=I.length-1;1<=q&&0<=le&&L[q]!==I[le];)le--;for(;1<=q&&0<=le;q--,le--)if(L[q]!==I[le]){if(q!==1||le!==1)do if(q--,le--,0>le||L[q]!==I[le]){var pe=`
|
|||
|
`+L[q].replace(" at new "," at ");return f.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",f.displayName)),pe}while(1<=q&&0<=le);break}}}finally{sl=!1,Error.prepareStackTrace=x}return(f=f?f.displayName||f.name:"")?bu(f):""}var Ap=Object.prototype.hasOwnProperty,wc=[],ll=-1;function oa(f){return{current:f}}function Nn(f){0>ll||(f.current=wc[ll],wc[ll]=null,ll--)}function Tn(f,p){ll++,wc[ll]=f.current,f.current=p}var aa={},Hr=oa(aa),li=oa(!1),sa=aa;function ul(f,p){var x=f.type.contextTypes;if(!x)return aa;var P=f.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===p)return P.__reactInternalMemoizedMaskedChildContext;var L={},I;for(I in x)L[I]=p[I];return P&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=L),L}function ui(f){return f=f.childContextTypes,f!=null}function vs(){Nn(li),Nn(Hr)}function bf(f,p,x){if(Hr.current!==aa)throw Error(a(168));Tn(Hr,p),Tn(li,x)}function xu(f,p,x){var P=f.stateNode;if(p=p.childContextTypes,typeof P.getChildContext!="function")return x;P=P.getChildContext();for(var L in P)if(!(L in p))throw Error(a(108,j(f)||"Unknown",L));return o({},x,P)}function ys(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||aa,sa=Hr.current,Tn(Hr,f),Tn(li,li.current),!0}function Sf(f,p,x){var P=f.stateNode;if(!P)throw Error(a(169));x?(f=xu(f,p,sa),P.__reactInternalMemoizedMergedChildContext=f,Nn(li),Nn(Hr),Tn(Hr,f)):Nn(li),Tn(li,x)}var Ii=Math.clz32?Math.clz32:xf,Op=Math.log,Mp=Math.LN2;function xf(f){return f>>>=0,f===0?32:31-(Op(f)/Mp|0)|0}var cl=64,Io=4194304;function dl(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function wu(f,p){var x=f.pendingLanes;if(x===0)return 0;var P=0,L=f.suspendedLanes,I=f.pingedLanes,q=x&268435455;if(q!==0){var le=q&~L;le!==0?P=dl(le):(I&=q,I!==0&&(P=dl(I)))}else q=x&~L,q!==0?P=dl(q):I!==0&&(P=dl(I));if(P===0)return 0;if(p!==0&&p!==P&&!(p&L)&&(L=P&-P,I=p&-p,L>=I||L===16&&(I&4194240)!==0))return p;if(P&4&&(P|=x&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=P;0<p;)x=31-Ii(p),L=1<<x,P|=f[x],p&=~L;return P}function K0(f,p){switch(f){case 1:case 2:case 4:return p+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 p+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 Cc(f,p){for(var x=f.suspendedLanes,P=f.pingedLanes,L=f.expirationTimes,I=f.pendingLanes;0<I;){var q=31-Ii(I),le=1<<q,pe=L[q];pe===-1?(!(le&x)||le&P)&&(L[q]=K0(le,p)):pe<=p&&(f.expiredLanes|=le),I&=~le}}function _c(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function wf(){var f=cl;return cl<<=1,!(cl&4194240)&&(cl=64),f}function kc(f){for(var p=[],x=0;31>x;x++)p.push(f);return p}function $a(f,p,x){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-Ii(p),f[p]=x}function Cf(f,p){var x=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var P=f.eventTimes;for(f=f.expirationTimes;0<x;){var L=31-Ii(x),I=1<<L;p[L]=0,P[L]=-1,f[L]=-1,x&=~I}}function Cu(f,p){var x=f.entangledLanes|=p;for(f=f.entanglements;x;){var P=31-Ii(x),L=1<<P;L&p|f[P]&p&&(f[P]|=p),x&=~L}}var Yt=0;function Ip(f){return f&=-f,1<f?4<f?f&268435455?16:536870912:4:1}var Ec=i.unstable_scheduleCallback,Pc=i.unstable_cancelCallback,
|
|||
|
Error generating stack: `+I.message+`
|
|||
|
`+I.stack}return{value:f,source:p,stack:L,digest:null}}function f1(f,p,x){return{value:f,source:null,stack:x??null,digest:p??null}}function Gc(f,p){try{console.error(p.value)}catch(x){setTimeout(function(){throw x})}}var Hf=typeof WeakMap=="function"?WeakMap:Map;function h1(f,p,x){x=Ss(-1,x),x.tag=3,x.payload={element:null};var P=p.value;return x.callback=function(){Gf||(Gf=!0,qf=P),Gc(f,p)},x}function z(f,p,x){x=Ss(-1,x),x.tag=3;var P=f.type.getDerivedStateFromError;if(typeof P=="function"){var L=p.value;x.payload=function(){return P(L)},x.callback=function(){Gc(f,p)}}var I=f.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(x.callback=function(){Gc(f,p),typeof P!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var q=p.stack;this.componentDidCatch(p.value,{componentStack:q!==null?q:""})}),x}function Tu(f,p,x){var P=f.pingCache;if(P===null){P=f.pingCache=new Hf;var L=new Set;P.set(p,L)}else L=P.get(p),L===void 0&&(L=new Set,P.set(p,L));L.has(x)||(L.add(x),f=P3.bind(null,f,p,x),p.then(f,f))}function Vf(f){do{var p;if((p=f.tag===13)&&(p=f.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return f;f=f.return}while(f!==null);return null}function ho(f,p,x,P,L){return f.mode&1?(f.flags|=65536,f.lanes=L,f):(f===p?f.flags|=65536:(f.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(p=Ss(-1,1),p.tag=2,pl(x,p,1))),x.lanes|=1),f)}var Zt=s.ReactCurrentOwner,Qi=!1;function ji(f,p,x,P){p.child=f===null?s3(p,null,x,P):Ic(p,f.child,x,P)}function m3(f,p,x,P,L){x=x.render;var I=p.ref;return Oc(p,L),P=o1(f,p,x,P,I,L),x=Nc(),f!==null&&!Qi?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~L,ws(f,p,L)):(Wn&&x&&Ri(p),p.flags|=1,ji(f,p,P,L),p.child)}function gl(f,p,x,P,L){if(f===null){var I=x.type;return typeof I=="function"&&!R1(I)&&I.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(p.tag=15,p.type=I,g3(f,p,I,P,L)):(f=Zf(x.type,null,P,p,p.mode,L),f.ref=p.ref,f.return=p,p.child=f)}if(I=f.child,!(f.lanes&L)){var q=I.memoizedProps;if(x=x.compare,x=x!==null?x:_u,x(q,P)&&f.ref===p.ref)return ws(f,p,L)}return p.flags|=1,f=go(I,P),f.ref=p.ref,f.return=p,p.child=f}function g3(f,p,x,P,L){if(f!==null){var I=f.memoizedProps;if(_u(I,P)&&f.ref===p.ref)if(Qi=!1,p.pendingProps=P=I,(f.lanes&L)!==0)f.flags&131072&&(Qi=!0);else return p.lanes=f.lanes,ws(f,p,L)}return p1(f,p,x,P,L)}function v3(f,p,x){var P=p.pendingProps,L=P.children,I=f!==null?f.memoizedState:null;if(P.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tn(bl,po),po|=x;else{if(!(x&1073741824))return f=I!==null?I.baseLanes|x:x,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,Tn(bl,po),po|=f,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=I!==null?I.baseLanes:x,Tn(bl,po),po|=P}else I!==null?(P=I.baseLanes|x,p.memoizedState=null):P=x,Tn(bl,po),po|=P;return ji(f,p,L,x),p.child}function y3(f,p){var x=p.ref;(f===null&&x!==null||f!==null&&f.ref!==x)&&(p.flags|=512,p.flags|=2097152)}function p1(f,p,x,P,L){var I=ui(x)?sa:Hr.current;return I=ul(p,I),Oc(p,L),x=o1(f,p,x,P,I,L),P=Nc(),f!==null&&!Qi?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~L,ws(f,p,L)):(Wn&&P&&Ri(p),p.flags|=1,ji(f,p,x,L),p.child)}function b3(f,p,x,P,L){if(ui(x)){var I=!0;ys(p)}else I=!1;if(Oc(p,L),p.stateNode===null)Wa(f,p),i3(p,x,P),t1(p,x,P,L),P=!0;else if(f===null){var q=p.stateNode,le=p.memoizedProps;q.props=le;var pe=q.context,ze=x.contextType;typeof ze=="object"&&ze!==null?ze=fo(ze):(ze=ui(x)?sa:Hr.current,ze=ul(p,ze));var ft=x.getDerivedStateFromProps,jt=typeof ft=="function"||typeof q.getSnapshotBeforeUpdate=="function";jt||typeof q.UNSAFE_componentWillReceiveProps!="function"&&typeof q.componentWillReceiveProps!="function"||(le!==P||pe!==ze)&&o3(p,q,P,ze),bs=!1;var rt=p.memoizedState;q.state=rt,zp(p,P,q,L),pe=p.memoizedState,le!==P||rt!==pe||li.current||bs?(typeof ft=="function"&&(Vp(p,x,ft,P),pe=p.memoizedState),(le=bs||If(p,x,le,P,rt,pe,ze))?(jt||typeof q.UNSAFE_componentWillMount!="function"&&typeof q.componentW
|
|||
|
`+(P.join(" > ")+`
|
|||
|
|
|||
|
No matching component was found for:
|
|||
|
`)+f.join(" > ")}return null},n.getPublicRootInstance=function(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return X(f.child.stateNode);default:return f.child.stateNode}},n.injectIntoDevTools=function(f){if(f={bundleType:f.bundleType,version:f.version,rendererPackageName:f.rendererPackageName,rendererConfig:f.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Sm,findFiberByHostInstance:f.findFiberByHostInstance||j1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")f=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)f=!0;else{try{mn=p.inject(f),Kt=p}catch{}f=!!p.checkDCE}}return f},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(f,p,x,P){if(!ae)throw Error(a(363));f=k1(f,p);var L=Dt(f,x,P).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(f,p){var x=p._getVersion;x=x(p._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[p,x]:f.mutableSourceEagerHydrationData.push(p,x)},n.runWithPriority=function(f,p){var x=Yt;try{return Yt=f,p()}finally{Yt=x}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(f,p,x,P){var L=p.current,I=_i(),q=qr(L);return x=D1(x),p.context===null?p.context=x:p.pendingContext=x,p=Ss(I,q),p.payload={element:f},P=P===void 0?null:P,P!==null&&(p.callback=P),f=pl(L,p,q),f!==null&&(Fo(f,L,q,I),Fp(f,L,q)),q},n};(function(e){e.exports=pMe})(hMe);const mMe=b8(r8);var fS={},gMe={get exports(){return fS},set exports(e){fS=e}},wp={};/**
|
|||
|
* @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.
|
|||
|
*/wp.ConcurrentRoot=1;wp.ContinuousEventPriority=4;wp.DefaultEventPriority=16;wp.DiscreteEventPriority=1;wp.IdleEventPriority=536870912;wp.LegacyRoot=0;(function(e){e.exports=wp})(gMe);const pN={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let mN=!1,gN=!1;const pT=".react-konva-event",vMe=`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
|
|||
|
`,yMe=`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
|
|||
|
`,bMe={};function dw(e,t,n=bMe){if(!mN&&"zIndex"in t&&(console.warn(yMe),mN=!0),!gN&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(vMe),gN=!0)}for(var o in n)if(!pN[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 d=t._useStrictMode,h={},g=!1;const v={};for(var o in t)if(!pN[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||d&&t[o]!==e.getAttr(o))&&(g=!0,h[o]=t[o])}g&&(e.setAttrs(h),mf(e));for(var l in v)e.on(l+pT,v[l])}function mf(e){if(!mt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const JY={},SMe={};tp.Node.prototype._applyProps=dw;function xMe(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),mf(e)}function wMe(e,t,n){let r=tp[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=tp.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 dw(l,o),l}function CMe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function _Me(e,t,n){return!1}function kMe(e){return e}function EMe(){return null}function PMe(){return null}function TMe(e,t,n,r){return SMe}function LMe(){}function AMe(e){}function OMe(e,t){return!1}function MMe(){return JY}function IMe(){return JY}const RMe=setTimeout,DMe=clearTimeout,NMe=-1;function jMe(e,t){return!1}const BMe=!1,$Me=!0,FMe=!0;function zMe(e,t){t.parent===e?t.moveToTop():e.add(t),mf(e)}function HMe(e,t){t.parent===e?t.moveToTop():e.add(t),mf(e)}function eK(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),mf(e)}function VMe(e,t,n){eK(e,t,n)}function WMe(e,t){t.destroy(),t.off(pT),mf(e)}function UMe(e,t){t.destroy(),t.off(pT),mf(e)}function GMe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function qMe(e,t,n){}function YMe(e,t,n,r,i){dw(e,i,r)}function KMe(e){e.hide(),mf(e)}function XMe(e){}function ZMe(e,t){(t.visible==null||t.visible)&&e.show()}function QMe(e,t){}function JMe(e){}function eIe(){}const tIe=()=>fS.DefaultEventPriority,nIe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:zMe,appendChildToContainer:HMe,appendInitialChild:xMe,cancelTimeout:DMe,clearContainer:JMe,commitMount:qMe,commitTextUpdate:GMe,commitUpdate:YMe,createInstance:wMe,createTextInstance:CMe,detachDeletedInstance:eIe,finalizeInitialChildren:_Me,getChildHostContext:IMe,getCurrentEventPriority:tIe,getPublicInstance:kMe,getRootHostContext:MMe,hideInstance:KMe,hideTextInstance:XMe,idlePriority:Bh.unstable_IdlePriority,insertBefore:eK,insertInContainerBefore:VMe,isPrimaryRenderer:BMe,noTimeout:NMe,now:Bh.unstable_now,prepareForCommit:EMe,preparePortalMount:PMe,prepareUpdate:TMe,removeChild:WMe,removeChildFromContainer:UMe,resetAfterCommit:LMe,resetTextContent:AMe,run:Bh.unstable_runWithPriority,scheduleTimeout:RMe,shouldDeprioritizeSubtree:OMe,shouldSetTextContent:jMe,supportsMutation:FMe,unhideInstance:ZMe,unhideTextInstance:QMe,warnsIfNotActing:$Me},Symbol.toStringTag,{value:"Module"}));var rIe=Object.defineProperty,iIe=Object.defineProperties,oIe=Object.getOwnPropertyDescriptors,vN=Object.getOwnPropertySymbols,aIe=Object.prototype.hasOwnProperty,sIe=Object.prototype.propertyIsEnumerable,yN=(e,t,n)=>t in e?rIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bN=(e,t)=>{for(var n in t||(t={}))aIe.call(t,n)&&yN(e,n,t[n]);if(vN)for(var n of vN(t))sIe.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),BIe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=he(jIe),[a,s]=w.useState(null),[l,u]=w.useState(0),d=w.useRef(null),h=w.useCallback(()=>{u(l+1),setTimeout(h,500)},[l]);return w.useEffect(()=>{if(a)return;const g=new Image;g.onload=()=>{s(g)},g.src=xN(n)},[a,n]),w.useEffect(()=>{a&&(a.src=xN(n))},[a,n]),w.useEffect(()=>{const g=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(g)},[]),!a||!ke.isNumber(r.x)||!ke.isNumber(r.y)||!ke.isNumber(o)||!ke.isNumber(i.width)||!ke.isNumber(i.height)?null:y.jsx(uc,{ref:d,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:ke.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},$Ie=at([sn],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:ke.isEqual}}),FIe=e=>{const{...t}=e,{objects:n}=he($Ie);return y.jsx(lc,{listening:!1,...t,children:n.filter(pP).map((r,i)=>y.jsx(hS,{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 lh=w,zIe=function(t,n,r){const i=lh.useRef("loading"),o=lh.useRef(),[a,s]=lh.useState(0),l=lh.useRef(),u=lh.useRef(),d=lh.useRef();return(l.current!==t||u.current!==n||d.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,d.current=r),lh.useLayoutEffect(function(){if(!t)return;var h=document.createElement("img");function g(){i.current="loaded",o.current=h,s(Math.random())}function v(){i.current="failed",o.current=void 0,s(Math.random())}return h.addEventListener("load",g),h.addEventListener("error",v),n&&(h.crossOrigin=n),r&&(h.referrerpolicy=r),h.src=t,function(){h.removeEventListener("load",g),h.removeEventListener("error",v)}},[t,n,r]),[o.current,i.current]};const oK=e=>{const{url:t,x:n,y:r}=e,[i]=zIe(t);return y.jsx(rK,{x:n,y:r,image:i,listening:!1})},HIe=at([sn],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:ke.isEqual}}),VIe=()=>{const{objects:e}=he(HIe);return e?y.jsx(lc,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(Y5(t))return y.jsx(oK,{x:t.x,y:t.y,url:t.image.url},n);if(rwe(t)){const r=y.jsx(hS,{points:t.points,stroke:t.color?Hh(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?y.jsx(lc,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(iwe(t))return y.jsx(uc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Hh(t.color)},n);if(owe(t))return y.jsx(uc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},WIe=at([sn],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:ke.isEqual}}),UIe=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=he(WIe);return y.jsxs(lc,{...t,children:[r&&n&&y.jsx(oK,{url:n.image.url,x:o,y:a}),i&&y.jsxs(lc,{children:[y.jsx(uc,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),y.jsx(uc,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},GIe=at([sn],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
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $De(e){if(Array.isArray(e))return l8(e)}function TN(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 LN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(n),!0).forEach(function(r){bK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sy(e,t){return HDe(e)||zDe(e,t)||SK(e,t)||FDe()}function FDe(){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 SK(e,t){if(e){if(typeof e=="string")return l8(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 l8(e,t)}}function l8(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 zDe(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 HDe(e){if(Array.isArray(e))return e}var VDe="file-invalid-type",WDe="file-too-large",UDe="file-too-small",GDe="too-many-files",qDe=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:VDe,message:"File type must be ".concat(n)}},AN=function(t){return{code:WDe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ON=function(t){return{code:UDe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},YDe={code:GDe,message:"Too many files"};function xK(e,t){var n=e.type==="application/x-moz-file"||NDe(e,t);return[n,n?null:qDe(t)]}function wK(e,t,n){if(Sh(e.size))if(Sh(t)&&Sh(n)){if(e.size>n)return[!1,AN(n)];if(e.size<t)return[!1,ON(t)]}else{if(Sh(t)&&e.size<t)return[!1,ON(t)];if(Sh(n)&&e.size>n)return[!1,AN(n)]}return[!0,null]}function Sh(e){return e!=null}function KDe(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=xK(l,n),d=sy(u,1),h=d[0],g=wK(l,r,i),v=sy(g,1),b=v[0],S=s?s(l):null;return h&&b&&!S})}function gS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Jb(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 MN(e){e.preventDefault()}function XDe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ZDe(e){return e.indexOf("Edge/")!==-1}function QDe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return XDe(e)||ZDe(e)}function Rl(){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!gS(r)&&s&&s.apply(void 0,[r].concat(o)),gS(r)})}}function JDe(){return"showOpenFilePicker"in window}function eNe(e){if(Sh(e)){var t=Object.entries(e).filter(function(n){var r=sy(n,2),i=r[0],o=r[1],a=!0;return CK(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(_K))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=sy(r,2),o=i[0],a=i[1];return LN(LN({},n),{},bK({},o,a))},{});return[{description:"Files",accept:t}]}return e}function tNe(e){if(Sh(e))return Object.entries(e).reduce(function(t,n){var r=sy(n,2),i=r[0],o=r[1];return[].concat(PN(t),[i],PN(o))},[]).filter(function(t){return CK(t)||_K(t)}).join(",")}function nNe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function rNe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function CK(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function _K(e){return/^.*\.[\w]+$/.test(e)}var iNe=["children"],oNe=["open"],aNe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dNe(e){if(Array.isArray(e))return u8(e)}function KC(e,t){return pNe(e)||hNe(e,t)||kK(e,t)||fNe()}function fNe(){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 kK(e,t){if(e){if(typeof e=="string")return u8(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 u8(e,t)}}function u8(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 hNe(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 pNe(e){if(Array.isArray(e))return e}function IN(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 _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IN(Object(n),!0).forEach(function(r){c8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vS(e,t){if(e==null)return{};var n=mNe(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 mNe(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 xT=w.forwardRef(function(e,t){var n=e.children,r=vS(e,iNe),i=PK(r),o=i.open,a=vS(i,oNe);return w.useImperativeHandle(t,function(){return{open:o}},[o]),N.createElement(w.Fragment,null,n(_r(_r({},a),{},{open:o})))});xT.displayName="Dropzone";var EK={disabled:!1,getFilesFromEvent:PDe,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};xT.defaultProps=EK;xT.propTypes={children:Bn.func,accept:Bn.objectOf(Bn.arrayOf(Bn.string)),multiple:Bn.bool,preventDropOnDocument:Bn.bool,noClick:Bn.bool,noKeyboard:Bn.bool,noDrag:Bn.bool,noDragEventsBubbling:Bn.bool,minSize:Bn.number,maxSize:Bn.number,maxFiles:Bn.number,disabled:Bn.bool,getFilesFromEvent:Bn.func,onFileDialogCancel:Bn.func,onFileDialogOpen:Bn.func,useFsAccessApi:Bn.bool,autoFocus:Bn.bool,onDragEnter:Bn.func,onDragLeave:Bn.func,onDragOver:Bn.func,onDrop:Bn.func,onDropAccepted:Bn.func,onDropRejected:Bn.func,onError:Bn.func,validator:Bn.func};var d8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function PK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_r(_r({},EK),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,d=t.onDragLeave,h=t.onDragOver,g=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,T=t.preventDropOnDocument,A=t.noClick,M=t.noKeyboard,R=t.noDrag,D=t.noDragEventsBubbling,j=t.onError,F=t.validator,H=w.useMemo(function(){return tNe(n)},[n]),K=w.useMemo(function(){return eNe(n)},[n]),te=w.useMemo(function(){return typeof E=="function"?E:RN},[E]),G=w.useMemo(function(){return typeof S=="function"?S:RN},[S]),$=w.useRef(null),U=w.useRef(null),X=w.useReducer(gNe,d8),Z=KC(X,2),W=Z[0],Q=Z[1],re=W.isFocused,de=W.isFileDialogActive,ve=w.useRef(typeof window<"u"&&window.isSecureContext&&_&&JDe()),Pe=function(){!ve.current&&de&&setTimeout(function(){if(U.current){var Ne=U.current.files;Ne.length||(Q({type:"closeDialog"}),G())}},300)};w.use
|
|||
|
${R.message}`,"");i({title:o("toast:uploadFailed"),description:A,status:"error",isClosable:!0})},[o,i]),d=w.useCallback(async T=>{n(PD({imageFile:T}))},[n]),h=w.useCallback((T,A)=>{A.forEach(M=>{u(M)}),T.forEach(M=>{d(M)})},[d,u]),{getRootProps:g,getInputProps:v,isDragAccept:b,isDragReject:S,isDragActive:E,open:_}=PK({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>s(!0),maxFiles:1});l(_),w.useEffect(()=>{const T=A=>{var j;const M=(j=A.clipboardData)==null?void 0:j.items;if(!M)return;const R=[];for(const F of M)F.kind==="file"&&["image/png","image/jpg"].includes(F.type)&&R.push(F);if(!R.length)return;if(A.stopImmediatePropagation(),R.length>1){i({description:o("toast:uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const D=R[0].getAsFile();if(!D){i({description:o("toast:uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(PD({imageFile:D}))};return document.addEventListener("paste",T),()=>{document.removeEventListener("paste",T)}},[o,n,i,r]);const k=["img2img","unifiedCanvas"].includes(r)?` to ${es[r].tooltip}`:"";return y.jsx(IP.Provider,{value:_,children:y.jsxs("div",{...g({style:{}}),onKeyDown:T=>{T.key},children:[y.jsx("input",{...v()}),t,E&&a&&y.jsx(vNe,{isDragAccept:b,isDragReject:S,overlaySecondaryText:k,setIsHandlingUpload:s})]})})},bNe=at(ir,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),SNe=at(ir,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:ke.isEqual}}),xNe=()=>{const e=Ie(),t=he(bNe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=he(SNe),[o,a]=w.useState(!0),s=w.useRef(null);w.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(lG()),e(TC(!n))};Je("`",()=>{e(TC(!n))},[n]),Je("esc",()=>{e(TC(!1))});const u=()=>{s.current&&o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)};return y.jsxs(y.Fragment,{children:[n&&y.jsx(Yq,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:y.jsx("div",{className:"console",ref:s,onScroll:u,children:t.map((d,h)=>{const{timestamp:g,message:v,level:b}=d;return y.jsxs("div",{className:`console-entry console-${b}-color`,children:[y.jsxs("p",{className:"console-timestamp",children:[g,":"]}),y.jsx("p",{className:"console-message",children:v})]},h)})})}),n&&y.jsx(uo,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:y.jsx(ss,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:y.jsx(GEe,{}),onClick:()=>a(!o)})}),y.jsx(uo,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:y.jsx(ss,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?y.jsx(sPe,{}):y.jsx(jq,{}),onClick:l})})]})},wNe=at(ir,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:ke.isEqual}}),CNe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=he(wNe),i=t?Math.round(t*100/n):0;return y.jsx(sW,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function _Ne(e){const{title:t,hotkey:n,description:r}=e;return y.jsxs("div",{className:"hotkey-modal-item",children:[y.jsxs("div",{className:"hotkey-info",children:[y.jsx("p",{className:"hotkey-title",children:t}),r&&y.jsx("p",{className:"hotkey-description",children:r})]}),y.jsx("div",{className:"hotkey-key",children:n})]})}function kNe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Wh(),{t:i}=We(),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:
|