mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
911 KiB
JavaScript
170 lines
911 KiB
JavaScript
|
var U0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Se=(e,t,n)=>(U0(e,t,"read from private field"),n?n.call(e):t.get(e)),en=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ro=(e,t,n,r)=>(U0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var bu=(e,t,n,r)=>({set _(o){ro(e,t,o,n)},get _(){return Se(e,t,r)}}),os=(e,t,n)=>(U0(e,t,"access private method"),n);import{a as bd,b as Pj,S as Ij,c as Ej,d as Mj,e as t1,f as Oj,i as n1,g as g7,k as v7,h as TC,j as Dj,t as b7,l as x7,m as y7,n as C7,o as w7,p as S7,q as k7,r as G0,s as _7,u as d,v as a,w as Rb,x as Vp,y as j7,z as P7,A as I7,B as E7,P as M7,C as Ab,D as O7,E as D7,F as R7,G as A7,H as Rj,I as Pe,J as N7,K as _e,L as et,M as Fe,N as xd,O as nr,Q as vn,R as Wn,T as Yt,U as Xi,V as Qa,W as at,X as po,Y as Zl,Z as ia,_ as fm,$ as Nb,a0 as Rc,a1 as rn,a2 as T7,a3 as H,a4 as $C,a5 as $7,a6 as Aj,a7 as r1,a8 as yd,a9 as L7,aa as Nj,ab as Tj,ac as ds,ad as z7,ae as ie,af as we,ag as _t,ah as L,ai as F7,aj as LC,ak as B7,al as H7,am as W7,an as Yi,ao as ee,ap as V7,aq as Tt,ar as Ft,as as Ie,at as $,au as io,av as xe,aw as wn,ax as $j,ay as U7,az as G7,aA as K7,aB as q7,aC as Fr,aD as Tb,aE as la,aF as Ir,aG as pm,aH as X7,aI as Y7,aJ as zC,aK as $b,aL as ye,aM as Br,aN as Q7,aO as Lj,aP as zj,aQ as FC,aR as Z7,aS as J7,aT as eD,aU as Qi,aV as Fj,aW as vt,aX as tD,aY as nD,aZ as rD,a_ as Bj,a$ as rr,b0 as hm,b1 as oD,b2 as BC,b3 as Hj,b4 as sD,b5 as aD,b6 as iD,b7 as lD,b8 as cD,b9 as uD,ba as dD,bb as fD,bc as Wj,bd as pD,be as hD,bf as mD,bg as gD,bh as vD,bi as Er,bj as bD,bk as xD,bl as yD,bm as HC,bn as CD,bo as wD,bp as Ba,bq as mm,br as Vj,bs as Uj,bt as Wr,bu as Gj,bv as SD,bw as Ni,bx as Mu,by as WC,bz as kD,bA as _D,bB as jD,bC as Gf,bD as Kf,bE as xu,bF as K0,bG as Lu,bH as zu,bI as Fu,bJ as Bu,bK as VC,bL as Up,bM as q0,bN as Gp,bO as UC,bP as o1,bQ as X0,bR as s1,bS as Y0,bT as Kp,bU as GC,bV as Ti,bW as KC,bX as $i,bY as qC,bZ as qp,b_ as Cd,b$ as PD,c0 as Kj,c1 as XC,c2 as gm,c3 as ID,c4 as qj,c5 as a1,c6 as i1,c7 as Xj,c8 as ED,c9 as l1,ca as MD,cb as c1,cc as OD,cd as u1,ce as Lb,cf as zb,cg as Fb,ch as Bb,ci as Hb,cj as vm,ck as Wb,cl as Aa,cm as Yj,cn as Qj,co as Vb,cp as Zj,cq as DD,cr as yu,cs as Li,ct as Jj,cu as e5,cv as YC,cw as RD,cx as AD,cy as ND,cz as Cn,cA as TD,cB as Pn,cC as wd,cD as bm,cE as $D,cF as LD,cG as zD,cH as FD,cI as BD,cJ as HD,cK as WD,cL as VD,cM as UD,cN as GD,cO as QC,cP as Ub,cQ as KD,cR as qD,cS as Sd,cT as XD,cU as YD,cV as xm,cW as QD,cX as ZD,cY as JD,cZ as Gb,c_ as eR,c$ as on,d0 as tR,d1 as nR,d2 as rR,d3 as oR,d4 as sR,d5 as aR,d6 as Yu,d7 as ZC,d8 as Bo,d9 as t5,da as iR,db as Kb,dc as lR,dd as JC,de as cR,df as uR,dg as dR,dh as n5,di as fR,dj as pR,dk as r5,dl as hR,dm as o5,dn as mR,dp as gR,dq as vR,dr as bR,ds as xR,dt as yR,du as CR,dv as wR,dw as s5,dx as a5,dy as SR,dz as kR,dA as _R,dB as jR,dC as PR,dD as No,dE as IR,dF as bo,dG as ER,dH as MR,dI as OR,dJ as DR,dK as RR,dL as AR,dM as NR,dN as TR,dO as $R,dP as LR,dQ as zR,dR as FR,dS as BR,dT as HR,dU as WR,dV as VR,dW as ew,dX as UR,dY as GR,dZ as KR,d_ as qR,d$ as XR,e0 as tw,e1 as YR,e2 as nw,e3 as QR,e4 as ZR,e5 as JR,e6 as eA,e7 as tA,e8 as nA,e9 as rw,ea as ow,eb as sw,ec as qb,ed as rA,ee as Do,ef as Qu,eg as fr,eh as oA,ei as sA,ej as i5,ek as l5,el as aA,em as aw,en as iA,eo as iw,ep as lw,eq as cw,er as lA,es as cA,et as uw,eu as dw,ev as uA,ew as dA,ex as Xp,ey as fA,ez as fw,eA as qf,eB as pw,eC as hw,eD as pA,eE as hA,eF as mA,eG as c5,eH as gA,eI as vA,eJ as mw,eK as bA,eL as gw,eM as xA,eN as u5,eO as d5,eP as kd,eQ as f5,eR as Ci,eS as p5,eT as vw,eU as yA,eV as CA,eW as h5,eX as wA,eY as SA,eZ as kA,e_ as _A,e$ as jA,f0 as Xb,f1 as d1,f2 as bw,f3 as Zi,f4 as PA,f5 as IA,f6 as m5,f7 as Us,f8 as Gs,f9 as g5,fa as v5,fb as Yb,fc as b5,fd as EA,fe as Ks,ff as MA,fg as x5,fh as OA,fi as DA,fj as RA,fk as AA,fl as NA,fm as TA,fn as $A,fo as Yp,fp as Ou,fq as Ul,fr as LA,fs as zA,ft as FA,fu as BA,fv as HA,fw as WA,fx as VA,fy as UA,fz as GA,fA
|
||
|
M${D.x},${D.y}h${D.width}v${D.height}h${-D.width}z`,fill:u,fillRule:"evenodd",stroke:p,strokeWidth:h,pointerEvents:"none"})]})})}I5.displayName="MiniMap";var rT=d.memo(I5),To;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(To||(To={}));function oT({color:e,dimensions:t,lineWidth:n}){return a.jsx("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function sT({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const aT={[To.Dots]:"#91919a",[To.Lines]:"#eee",[To.Cross]:"#e2e2e2"},iT={[To.Dots]:1,[To.Lines]:1,[To.Cross]:6},lT=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function E5({id:e,variant:t=To.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:l,className:u}){const p=d.useRef(null),{transform:h,patternId:m}=Vp(lT,Ab),v=i||aT[t],b=r||iT[t],y=t===To.Dots,x=t===To.Cross,w=Array.isArray(n)?n:[n,n],k=[w[0]*h[2]||1,w[1]*h[2]||1],_=b*h[2],j=x?[_,_]:k,I=y?[_/s,_/s]:[j[0]/s,j[1]/s];return a.jsxs("svg",{className:Rb(["react-flow__background",u]),style:{...l,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[a.jsx("pattern",{id:m+e,x:h[0]%k[0],y:h[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:y?a.jsx(sT,{color:v,radius:_/s}):a.jsx(oT,{dimensions:j,color:v,lineWidth:o})}),a.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${m+e})`})]})}E5.displayName="Background";var cT=d.memo(E5);const Mw=(e,t,n)=>{uT(n);const r=Rj(e,t);return M5[n].includes(r)},M5={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Ow=Object.keys(M5),uT=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Ow.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Ow.join("|")}`)};function dT(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var fT=dT();const O5=1/60*1e3,pT=typeof performance<"u"?()=>performance.now():()=>Date.now(),D5=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(pT()),O5);function hT(e){let t=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,l={schedule:(u,p=!1,h=!1)=>{const m=h&&o,v=m?t:n;return p&&i.add(u),v.indexOf(u)===-1&&(v.push(u),m&&o&&(r=t.length)),u},cancel:u=>{const p=n.indexOf(u);p!==-1&&n.splice(p,1),i.delete(u)},process:u=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let p=0;p<r;p++){const h=t[p];h(u),i.has(h)&&(l.schedule(h),e())}o=!1,s&&(s=!1,l.process(u))}};return l}const mT=40;let h1=!0,Zu=!1,m1=!1;const ec={delta:0,timestamp:0},jd=["read","update","preRender","render","postRender"],ym=jd.reduce((e,t)=>(e[t]=hT(()=>Zu=!0),e),{}),gT=jd.reduce((e,t)=>{const n=ym[t];return e[t]=(r,o=!1,s=!1)=>(Zu||xT(),n.schedule(r,o,s)),e},{}),vT=jd.reduce((e,t)=>(e[t]=ym[t].cancel,e),{});jd.reduce((e,t)=>(e[t]=()=>ym[t].process(ec),e),{});const bT=e=>ym[e].process(ec),R5=e=>{Zu=!1,ec.delta=h1?O5:Math.max(Math.min(e-ec.timestamp,mT),1),ec.timestamp=e,m1=!0,jd.forEach(bT),m1=!1,Zu&&(h1=!1,D5(R5))},xT=()=>{Zu=!0,h1=!0,m1||D5(R5)},Dw=()=>ec;function Pd(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,s=d.Children.toArray(e.path),i=Pe((l,u)=>a.jsx(Tn,{ref:u,viewBox:t,...o,...l,children:s.length?s:a.jsx("path",{fill:"currentColor",d:n})}));return i.displayName=r,i}function A5(e){const{theme:t}=N7(),n=SN();return d.useMemo(()=>kN(t.direction,{...n,...e}),[e,t.direction,n])}var yT=Object.defineProperty,CT=(e,t,n)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hn=(e,t,n)=>(CT(e,typeof t!="symbol"?t+"":t,n),n);function Rw(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var wT=e=>typeof e=="object"&&"nodeType"i
|
||
|
`})}function FT(e){xd({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function $l(e){const{isOpen:t,isDisabled:n}=Jb(),{reduceMotion:r}=ex(),o=et("chakra-accordion__icon",e.className),s=Cm(),i={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return a.jsx(Tn,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:i,...e,children:a.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}$l.displayName="AccordionIcon";var Ll=Pe(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=TT(t),u={...Cm().container,overflowAnchor:"none"},p=d.useMemo(()=>i,[i]);return a.jsx(MT,{value:p,children:a.jsx(_e.div,{ref:n,...s,className:et("chakra-accordion__item",o),__css:u,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})});Ll.displayName="AccordionItem";var Gl={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ki={enter:{duration:.2,ease:Gl.easeOut},exit:{duration:.1,ease:Gl.easeIn}},Xs={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},BT=e=>e!=null&&parseInt(e.toString(),10)>0,Tw={exit:{height:{duration:.2,ease:Gl.ease},opacity:{duration:.3,ease:Gl.ease}},enter:{height:{duration:.3,ease:Gl.ease},opacity:{duration:.4,ease:Gl.ease}}},HT={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:BT(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:Xs.exit(Tw.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(s=n==null?void 0:n.enter)!=null?s:Xs.enter(Tw.enter,o)}}},wm=d.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:i="auto",style:l,className:u,transition:p,transitionEnd:h,...m}=e,[v,b]=d.useState(!1);d.useEffect(()=>{const _=setTimeout(()=>{b(!0)});return()=>clearTimeout(_)},[]),xd({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(s.toString())>0,x={startingHeight:s,endingHeight:i,animateOpacity:o,transition:v?p:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:r?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:y?"block":"none"}}},w=r?n:!0,k=n||r?"enter":"exit";return a.jsx(nr,{initial:!1,custom:x,children:w&&a.jsx(vn.div,{ref:t,...m,className:et("chakra-collapse",u),style:{overflow:"hidden",display:"block",...l},custom:x,variants:HT,initial:r?"exit":!1,animate:k,exit:"exit"})})});wm.displayName="Collapse";var WT={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Xs.enter(ki.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Xs.exit(ki.exit,n),transitionEnd:t==null?void 0:t.exit}}},T5={initial:"exit",animate:"enter",exit:"exit",variants:WT},VT=d.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:s,transition:i,transitionEnd:l,delay:u,...p}=t,h=o||r?"enter":"exit",m=r?o&&r:!0,v={transition:i,transitionEnd:l,delay:u};return a.jsx(nr,{custom:v,children:m&&a.jsx(vn.div,{ref:n,className:et("chakra-fade",s),custom:v,...T5,animate:h,...p})})});VT.displayName="Fade";var UT={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(s=n==null?void 0:n.exit)!=null?s:Xs.exit(ki.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Xs.enter(ki.enter,n),transitionEnd:e==null?void 0:e.enter}}},$5={initial:"exit",animate
|
||
|
.`.concat(wB,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(l,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(o,`px;
|
||
|
padding-top: `).concat(s,`px;
|
||
|
padding-right: `).concat(i,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(l,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(Ap,` {
|
||
|
right: `).concat(l,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Np,` {
|
||
|
margin-right: `).concat(l,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Ap," .").concat(Ap,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Np," .").concat(Np,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(SB,": ").concat(l,`px;
|
||
|
}
|
||
|
`)},NB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=d.useMemo(function(){return DB(o)},[o]);return d.createElement(RB,{styles:AB(s,!t,o,n?"":"!important")})},R1=!1;if(typeof window<"u")try{var ep=Object.defineProperty({},"passive",{get:function(){return R1=!0,!0}});window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch{R1=!1}var El=R1?{passive:!1}:!1,TB=function(e){return e.tagName==="TEXTAREA"},pP=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!TB(e)&&n[t]==="visible")},$B=function(e){return pP(e,"overflowY")},LB=function(e){return pP(e,"overflowX")},dS=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=hP(e,r);if(o){var s=mP(e,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zB=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FB=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},hP=function(e,t){return e==="v"?$B(t):LB(t)},mP=function(e,t){return e==="v"?zB(t):FB(t)},BB=function(e,t){return e==="h"&&t==="rtl"?-1:1},HB=function(e,t,n,r,o){var s=BB(e,window.getComputedStyle(t).direction),i=s*r,l=n.target,u=t.contains(l),p=!1,h=i>0,m=0,v=0;do{var b=mP(e,l),y=b[0],x=b[1],w=b[2],k=x-w-s*y;(y||k)&&hP(e,l)&&(m+=k,v+=y),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(h&&(o&&m===0||!o&&i>m)||!h&&(o&&v===0||!o&&-i>v))&&(p=!0),p},tp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fS=function(e){return[e.deltaX,e.deltaY]},pS=function(e){return e&&"current"in e?e.current:e},WB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VB=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},UB=0,Ml=[];function GB(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(UB++)[0],s=d.useState(fP)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=k1([e.lockRef.current],(e.shards||[]).map(pS),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(x,w){if("touches"in x&&x.touches.length===2)return!i.current.allowPinchZoom;var k=tp(x),_=n.current,j="deltaX"in x?x.deltaX:_[0]-k[0],I="deltaY"in x?x.deltaY:_[1]-k[1],E,M=x.target,D=Math.abs(j)>Math.abs(I)?"h":"v";if("touches"in x&&D==="h"&&M.type==="range")return!1;var R=dS(D,M);if(!R)return!0;if(R?E=D:(E=D==="v"?"h":"v",R=dS(D,M)),!R)return!1;if(!r.current&&"changedTouches"in x&&(j||I)&&(r.current=E),!E)return!0;var A=r.current||E;return HB(A,w,x,A==="h"?j:I,!0)},[]),u=d.useCallback(function(x){var w=x;if(!(!Ml.length||Ml[Ml.length-1]!==s)){var k="deltaY"in w?fS(w):tp(w),_=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&WB(E.delta,k)})[0];if(_&&_.should){w.cancelable&&w.preventDefault();return}if(!_){var j=(i.current.shards||[]).map(pS).filter(Boolean).filter(function(E){return E.contains(w.target)}),I=j.length>0?l(w,j[0]):!i.current.noIsolation;I&&w.cancelable&&w.preventDefault()}}},[]),p=d.useCallback(function(x,w,k,_){var j={name:x,delta:w,target:k,should:_};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(I){return I!==j})},1)},[]),h=d.useCallback(function(x){n.current=tp(x),r.current=void 0},[]),m=d.useCallback(function(x){p(x.type,fS(x),x.target,l(x,e.lockRef.current))},[]),v=d.useCallback(function(x){p(x.type,tp(x),x.target,l(x,e.lockRef.current))},[]);d.useEffect(function(){return Ml.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",u,El),document.addEventListener("touchmove",u,El),document.addEventListener("touchstart",h,El),function(){Ml=Ml.filter(function(x){return x!==s}),document.removeEventListener("wheel",u,El),document.removeEventListener("touchmove",u,El),document.removeEventListener("touchstart",h,El)}},[]);var b=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(s,{styles:VB(o)}):null,b?d.createElement(NB,{gapMode:e.gapMode}):null)}const KB=U$(dP,GB);var gP=d.forwardRef(function(e,t){return d.createElement(Rm,us({},e,{ref:t,sideCar:KB}))});gP.classNames=Rm.classNames;const qB=gP;function XB(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:m}=Bi(),[v,b]=L7();d.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const y=cP(r,m);return a.jsx($3,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:l,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:h,children:a.jsx(qB,{removeScrollBar:!p,allowPinchZoom:i,enabled:y===1&&s,forwardProps:!0,children:e.children})})}var Wi=Pe((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:l,getDialogContainerProps:u}=Bi(),p=l(i,t),h=u(o),m=et("chakra-modal__content",n),v=Lc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:x}=Bi();return a.jsx(XB,{children:a.jsx(_e.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:a.jsx(lP,{preset:x,motionProps:s,className:m,...p,__css:b,children:r})})})});Wi.displayName="ModalContent";function $d(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(Hi,{...n,initialFocusRef:t})}var Ld=Pe((e,t)=>a.jsx(Wi,{ref:t,role:"alertdialog",...e})),gs=Pe((e,t)=>{const{className:
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JW(e){if(Array.isArray(e))return F1(e)}function wS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function SS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wS(Object(n),!0).forEach(function(r){HP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(e,t){return nV(e)||tV(e,t)||WP(e,t)||eV()}function eV(){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 WP(e,t){if(e){if(typeof e=="string")return F1(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 F1(e,t)}}function F1(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 tV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(u){s=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function nV(e){if(Array.isArray(e))return e}var rV="file-invalid-type",oV="file-too-large",sV="file-too-small",aV="too-many-files",iV=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:rV,message:"File type must be ".concat(n)}},kS=function(t){return{code:oV,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},_S=function(t){return{code:sV,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},lV={code:aV,message:"Too many files"};function VP(e,t){var n=e.type==="application/x-moz-file"||YW(e,t);return[n,n?null:iV(t)]}function UP(e,t,n){if(xi(e.size))if(xi(t)&&xi(n)){if(e.size>n)return[!1,kS(n)];if(e.size<t)return[!1,_S(t)]}else{if(xi(t)&&e.size<t)return[!1,_S(t)];if(xi(n)&&e.size>n)return[!1,kS(n)]}return[!0,null]}function xi(e){return e!=null}function cV(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,i=e.maxFiles,l=e.validator;return!s&&t.length>1||s&&i>=1&&t.length>i?!1:t.every(function(u){var p=VP(u,n),h=sd(p,1),m=h[0],v=UP(u,r,o),b=sd(v,1),y=b[0],x=l?l(u):null;return m&&y&&!x})}function ch(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function rp(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 jS(e){e.preventDefault()}function uV(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dV(e){return e.indexOf("Edge/")!==-1}function fV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return uV(e)||dV(e)}function ss(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return t.some(function(l){return!ch(r)&&l&&l.apply(void 0,[r].concat(s)),ch(r)})}}function pV(){return"showOpenFilePicker"in window}function hV(e){if(xi(e)){var t=Object.entries(e).filter(function(n){var r=sd(n,2),o=r[0],s=r[1],i=!0;return GP(o)||(console.warn('Skipped "'.concat(o,'" 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.')),i=!1),(!Array.isArray(s)||!s.every(KP))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=sd(r,2),s=o[0],i=o[1];return SS(SS({},n),{},HP({},s,i))},{});return[{description:"Files",accept:t}]}return e}function mV(e){if(xi(e))return Object.entries(e).reduce(function(t,n){var r=sd(n,2),o=r[0],s=r[1];return[].concat(CS(t),[o],CS(s))},[]).filter(function(t){return GP(t)||KP(t)}).join(",")}function gV(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function vV(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function GP(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function KP(e){return/^.*\.[\w]+$/.test(e)}var bV=["children"],xV=["open"],yV=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDr
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _V(e){if(Array.isArray(e))return B1(e)}function vv(e,t){return IV(e)||PV(e,t)||qP(e,t)||jV()}function jV(){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 qP(e,t){if(e){if(typeof e=="string")return B1(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 B1(e,t)}}function B1(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 PV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(u){s=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function IV(e){if(Array.isArray(e))return e}function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PS(Object(n),!0).forEach(function(r){H1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uh(e,t){if(e==null)return{};var n=EV(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EV(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Wx=d.forwardRef(function(e,t){var n=e.children,r=uh(e,bV),o=Vx(r),s=o.open,i=uh(o,xV);return d.useImperativeHandle(t,function(){return{open:s}},[s]),H.createElement(d.Fragment,null,n(un(un({},i),{},{open:s})))});Wx.displayName="Dropzone";var XP={disabled:!1,getFilesFromEvent:BW,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};Wx.defaultProps=XP;Wx.propTypes={children:Ht.func,accept:Ht.objectOf(Ht.arrayOf(Ht.string)),multiple:Ht.bool,preventDropOnDocument:Ht.bool,noClick:Ht.bool,noKeyboard:Ht.bool,noDrag:Ht.bool,noDragEventsBubbling:Ht.bool,minSize:Ht.number,maxSize:Ht.number,maxFiles:Ht.number,disabled:Ht.bool,getFilesFromEvent:Ht.func,onFileDialogCancel:Ht.func,onFileDialogOpen:Ht.func,useFsAccessApi:Ht.bool,autoFocus:Ht.bool,onDragEnter:Ht.func,onDragLeave:Ht.func,onDragOver:Ht.func,onDrop:Ht.func,onDropAccepted:Ht.func,onDropRejected:Ht.func,onError:Ht.func,validator:Ht.func};var W1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Vx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=un(un({},XP),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,i=t.minSize,l=t.multiple,u=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,k=t.useFsAccessApi,_=t.autoFocus,j=t.preventDropOnDocument,I=t.noClick,E=t.noKeyboard,M=t.noDrag,D=t.noDragEventsBubbling,R=t.onError,A=t.validator,O=d.useMemo(function(){return mV(n)},[n]),T=d.useMemo(function(){return hV(n)},[n]),K=d.useMemo(function(){return typeof w=="function"?w:IS},[w]),F=d.useMemo(function(){return typeof x=="function"?x:IS},[x]),V=d.useRef(null),X=d.useRef(null),W=d.useReducer(MV,W1),z=vv(W,2),Y=z[0],B=z[1],q=Y.isFocused,re=Y.isFileDialogActive,Q=d.useRef(typeof window<"u"&&window.isSecureContext&&k&&pV()),le=function(){!Q.current&&re&&setTimeout(function(){if(X.current){var Re=X.current.files;Re.length||(B({type:"closeDialog"}),F())}},300)};d.useEffect(function
|
||
|
`),status:"error"})},[i,s]),m=d.useCallback(async j=>{p({file:j,image_category:"user",is_intermediate:!1,postUploadAction:r,board_id:n==="none"?void 0:n})},[n,r,p]),v=d.useCallback((j,I)=>{if(I.length>1){s({title:i("toast.uploadFailed"),description:i("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}I.forEach(E=>{h(E)}),j.forEach(E=>{m(E)})},[i,s,m,h]),{getRootProps:b,getInputProps:y,isDragAccept:x,isDragReject:w,isDragActive:k,inputRef:_}=Vx({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>u(!0),disabled:o,multiple:!1});return d.useEffect(()=>{const j=async I=>{var E,M;_.current&&(E=I.clipboardData)!=null&&E.files&&(_.current.files=I.clipboardData.files,(M=_.current)==null||M.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",j),()=>{document.removeEventListener("paste",j)}},[_]),a.jsxs(Ie,{...b({style:{}}),onKeyDown:j=>{j.key},children:[a.jsx("input",{...y()}),t,a.jsx(nr,{children:k&&l&&a.jsx(vn.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:a.jsx(UV,{isDragAccept:x,isDragReject:w,setIsHandlingUpload:u})},"image-upload-overlay")})]})},qV=d.memo(KV),XV=Pe((e,t)=>{const{children:n,tooltip:r="",tooltipProps:{placement:o="top",hasArrow:s=!0,...i}={},isChecked:l,...u}=e;return a.jsx(Rt,{label:r,placement:o,hasArrow:s,...i,children:a.jsx(bc,{ref:t,colorScheme:l?"accent":"base",...u,children:n})})}),it=d.memo(XV);function YV(e){const t=d.createContext(null);return[({children:o,value:s})=>H.createElement(t.Provider,{value:s},o),()=>{const o=d.useContext(t);if(o===null)throw new Error(e);return o}]}function tI(e){return Array.isArray(e)?e:[e]}const QV=()=>{};function ZV(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||QV:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function nI({data:e}){const t=[],n=[],r=e.reduce((o,s,i)=>(s.group?o[s.group]?o[s.group].push(i):o[s.group]=[i]:n.push(i),o),{});return Object.keys(r).forEach(o=>{t.push(...r[o].map(s=>e[s]))}),t.push(...n.map(o=>e[o])),t}function rI(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==H.Fragment:!1}function oI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=oI(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sI(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=oI(t))&&(r&&(r+=" "),r+=n);return r}const JV={app:100,modal:200,popover:300,overlay:400,max:9999};function Gx(e){return JV[e]}function eU(e,t){const n=d.useRef();return(!n.current||t.length!==n.current.prevDeps.length||n.current.prevDeps.map((r,o)=>r===t[o]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}const tU=U7({key:"mantine",prepend:!0});function nU(){return j5()||tU}var rU=Object.defineProperty,MS=Object.getOwnPropertySymbols,oU=Object.prototype.hasOwnProperty,sU=Object.prototype.propertyIsEnumerable,OS=(e,t,n)=>t in e?rU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aU=(e,t)=>{for(var n in t||(t={}))oU.call(t,n)&&OS(e,n,t[n]);if(MS)for(var n of MS(t))sU.call(t,n)&&OS(e,n,t[n]);return e};const yv="ref";function iU(e){let t;if(e.length!==1)return{args:e,ref:t};const[n]=e;if(!(n instanceof Object))return{args:e,ref:t};if(!(yv in n))return{args:e,ref:t};t=n[yv];const r=aU({},n);return delete r[yv],{args:[r],ref:t}}const{cssFactory:lU}=(()=>{function e(n,r,o){const s=[],i=q7(n,s,o);return s.length<2?o:i+r(s)}function t(n){const{cache:r}=n,o=(...i)=>{const{ref:l,args:u}=iU(i),p=G7(u,r.registered);return K7(r,p,!1),`${r.key}-${p.name}${l===void 0?"":` ${l}`}`};return{css:o,cx:(...i)=>e(r.registered,o,sI(i))}}return{cssFactory:t}})();function aI(){const e=nU();return eU(()=>lU({cache:e}),[e])}function cU({cx:e,classes:t,context:n,classNames:r,name:o,cache:s}){const i=n.reduce((l,u)=>(Object.keys(u.classNames).forEach(p=>{typeof l[p]!="string"?l[p]=`${u.classNames[p]}`:l[p]=`${l[p]} ${u.classNam
|
||
|
* OverlayScrollbars
|
||
|
* Version: 2.2.1
|
||
|
*
|
||
|
* Copyright (c) Rene Haas | KingSora.
|
||
|
* https://github.com/KingSora
|
||
|
*
|
||
|
* Released under the MIT license.
|
||
|
*/function Dt(e,t){if(ag(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&Dt(Object.keys(e),n=>t(e[n],n,e));return e}function tr(e,t){const n=ni(t);if(Ko(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?zk(e,s,t):t.reduce((i,l)=>(i[l]=zk(e,s,l),i),o)}return o}e&&Dt(Gr(t),o=>GJ(e,o,t[o]))}const Ro=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const l=(h,m)=>{const v=s,b=h,y=m||(r?!r(v,b):v!==b);return(y||o)&&(s=b,i=v),[s,y,i]};return[t?h=>l(t(s,i),h):l,h=>[s,!!h,i]]},Gd=()=>typeof window<"u",GE=Gd()&&Node.ELEMENT_NODE,{toString:OJ,hasOwnProperty:Iv}=Object.prototype,pa=e=>e===void 0,sg=e=>e===null,DJ=e=>pa(e)||sg(e)?`${e}`:OJ.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Va=e=>typeof e=="number",ni=e=>typeof e=="string",iy=e=>typeof e=="boolean",Go=e=>typeof e=="function",Ko=e=>Array.isArray(e),ld=e=>typeof e=="object"&&!Ko(e)&&!sg(e),ag=e=>{const t=!!e&&e.length,n=Va(t)&&t>-1&&t%1==0;return Ko(e)||!Go(e)&&n?t>0&&ld(e)?t-1 in e:!0:!1},nb=e=>{if(!e||!ld(e)||DJ(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=Iv.call(e,n),i=o&&Iv.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(t in e);return pa(t)||Iv.call(e,t)},Yh=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===GE:!1},ig=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===GE:!1},ly=(e,t,n)=>e.indexOf(t,n),zt=(e,t,n)=>(!n&&!ni(t)&&ag(t)?Array.prototype.push.apply(e,t):e.push(t),e),Gi=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{zt(n,r)}):Dt(e,r=>{zt(n,r)}),n)},cy=e=>!!e&&e.length===0,js=(e,t,n)=>{Dt(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},lg=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Gr=e=>e?Object.keys(e):[],fn=(e,t,n,r,o,s,i)=>{const l=[t,n,r,o,s,i];return(typeof e!="object"||sg(e))&&!Go(e)&&(e={}),Dt(l,u=>{Dt(Gr(u),p=>{const h=u[p];if(e===h)return!0;const m=Ko(h);if(h&&(nb(h)||m)){const v=e[p];let b=v;m&&!Ko(v)?b=[]:!m&&!nb(v)&&(b={}),e[p]=fn(b,h)}else e[p]=h})}),e},uy=e=>{for(const t in e)return!1;return!0},KE=(e,t,n,r)=>{if(pa(r))return n?n[e]:t;n&&(ni(r)||Va(r))&&(n[e]=r)},er=(e,t,n)=>{if(pa(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},Cr=(e,t)=>{e&&e.removeAttribute(t)},Ei=(e,t,n,r)=>{if(n){const o=er(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const i=Gi(s).join(" ").trim();er(e,t,i)}},RJ=(e,t,n)=>{const r=er(e,t)||"";return new Set(r.split(" ")).has(n)},zo=(e,t)=>KE("scrollLeft",0,e,t),Zs=(e,t)=>KE("scrollTop",0,e,t),rb=Gd()&&Element.prototype,qE=(e,t)=>{const n=[],r=t?ig(t)?t:null:document;return r?zt(n,r.querySelectorAll(e)):n},AJ=(e,t)=>{const n=t?ig(t)?t:null:document;return n?n.querySelector(e):null},Qh=(e,t)=>ig(e)?(rb.matches||rb.msMatchesSelector).call(e,t):!1,dy=e=>e?Gi(e.childNodes):[],ra=e=>e?e.parentElement:null,ql=(e,t)=>{if(ig(e)){const n=rb.closest;if(n)return n.call(e,t);do{if(Qh(e,t))return e;e=ra(e)}while(e)}return null},NJ=(e,t,n)=>{const r=e&&ql(e,t),o=e&&AJ(n,r),s=ql(o,t)===r;return r&&o?r===e||o===e||s&&ql(ql(e,n),t)!==r:!1},fy=(e,t,n)=>{if(n&&e){let r=t,o;ag(n)?(o=document.createDocumentFragment(),Dt(n,s=>{s===r&&(r=s.previousSibling),o.appendChild(s)})):o=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(o,r||null)}},fo=(e,t)=>{fy(e,null,t)},TJ=(e,t)=>{fy(ra(e),e,t)},Tk=(e,t)=>{fy(ra(e),e&&e.nextSibling,t)},bs=e=>{if(ag(e))Dt(Gi(e),t=>bs(t));else if(e){const t=ra(e);t&&t.removeChild(e)}},Mi=e=>{const t=document.createElement("div");return e&&er(t,"class",e),t},XE=e=>{const t=Mi();return t.innerHTML=e.trim(),Dt(dy(t),n=>bs(n))},ob=e=>e.charAt(0).toUpperCase()+e.slice(1),$J=()=>Mi().style,LJ=["-webkit-","-moz-","-o-","-ms-"],zJ=["WebKit","Moz","O","MS","webkit","moz","o","ms"],Ev={},Mv={},FJ=e=>{let t=Mv[e];if(lg(Mv,e))return t;const n=ob(e),r=$J();return Dt(LJ,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,ob(s)+n].find(l=>r[l]!==void 0))}),Mv[e]=t||""},Kd=e=>{if(Gd()){let t=Ev[e]||window[e];return lg(Ev,e)||(Dt(zJ,n=>(t=t||window[n+ob(e)],!t)),Ev[e]=t),t}},BJ=Kd("MutationObserver"),$k=Kd("IntersectionObserver"),Xl=Kd("ResizeObserver"),YE=Kd("cancelAnimationFrame"),Q
|
||
|
* @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 _he=function(t){var n={},r=d,o=Dp,s=Object.assign;function i(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,g=1;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),E=Symbol.iterator;function M(c){return c===null||typeof c!="object"?null:(c=E&&c[E]||c["@@iterator"],typeof c=="function"?c:null)}function D(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case h:return"Fragment";case p:return"Portal";case v:return"Profiler";case m:return"StrictMode";case w:return"Suspense";case k:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case y:return(c.displayName||"Context")+".Consumer";case b:return(c._context.displayName||"Context")+".Provider";case x:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case _:return f=c.displayName||null,f!==null?f:D(c.type)||"Memo";case j:f=c._payload,c=c._init;try{return D(c(f))}catch{}}return null}function R(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(f);case 8:return f===m?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function A(c){var f=c,g=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,f.flags&4098&&(g=f.return),c=f.return;while(c)}return f.tag===3?g:null}function O(c){if(A(c)!==c)throw Error(i(188))}function T(c){var f=c.alternate;if(!f){if(f=A(c),f===null)throw Error(i(188));return f!==c?null:c}for(var g=c,C=f;;){var S=g.return;if(S===null)break;var P=S.alternate;if(P===null){if(C=S.return,C!==null){g=C;continue}break}if(S.child===P.child){for(P=S.child;P;){if(P===g)return O(S),c;if(P===C)return O(S),f;P=P.sibling}throw Error(i(188))}if(g.return!==C.return)g=S,C=P;else{for(var N=!1,J=S.child;J;){if(J===g){N=!0,g=S,C=P;break}if(J===C){N=!0,C=S,g=P;break}J=J.sibling}if(!N){for(J=P.child;J;){if(J===g){N=!0,g=P,C=S;break}if(J===C){N=!0,C=P,g=S;break}J=J.sibling}if(!N)throw Error(i(189))}}if(g.alternate!==C)throw Error(i(190))}if(g.tag!==3)throw Error(i(188));return g.stateNode.current===g?c:f}function K(c){return c=T(c),c!==null?F(c):null}function F(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=F(c);if(f!==null)return f;c=c.sibling}return null}function V(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=V(c);if(f!==null)return f}c=c.sibling}return null}var X=Array.isArray,W=t.getPublicInstance,z=t.getRootHostContext,Y=t.getChildHostContext,B=t.prepareForCommit,q=t.resetAfterCommit,re=t.createInstance,Q=t.appendInitialChild,le=t.finalizeInitialChildren,se=t.prepareUpdate,U=t.shouldSetTextContent,G=t.createTextInstance,te=t.scheduleTimeout,ae=t.cancelTimeout,oe=t.noTimeout,pe=t.isPrimaryRenderer,ue=t.supportsMutation,me=t.supportsPersistence,Ce=t.supportsHydration,ge=t.ge
|
||
|
`+Qc+c}var Zc=!1;function Jc(c,f){if(!c||Zc)return"";Zc=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Ee){var C=Ee}Reflect.construct(c,[],f)}else{try{f.call()}catch(Ee){C=Ee}c.call(f.prototype)}else{try{throw Error()}catch(Ee){C=Ee}c()}}catch(Ee){if(Ee&&C&&typeof Ee.stack=="string"){for(var S=Ee.stack.split(`
|
||
|
`),P=C.stack.split(`
|
||
|
`),N=S.length-1,J=P.length-1;1<=N&&0<=J&&S[N]!==P[J];)J--;for(;1<=N&&0<=J;N--,J--)if(S[N]!==P[J]){if(N!==1||J!==1)do if(N--,J--,0>J||S[N]!==P[J]){var de=`
|
||
|
`+S[N].replace(" at new "," at ");return c.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",c.displayName)),de}while(1<=N&&0<=J);break}}}finally{Zc=!1,Error.prepareStackTrace=g}return(c=c?c.displayName||c.name:"")?ai(c):""}var Tg=Object.prototype.hasOwnProperty,ba=[],Je=-1;function St(c){return{current:c}}function xt(c){0>Je||(c.current=ba[Je],ba[Je]=null,Je--)}function kt(c,f){Je++,ba[Je]=c.current,c.current=f}var qn={},Ut=St(qn),kn=St(!1),lr=qn;function fl(c,f){var g=c.type.contextTypes;if(!g)return qn;var C=c.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===f)return C.__reactInternalMemoizedMaskedChildContext;var S={},P;for(P in g)S[P]=f[P];return C&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=S),S}function gr(c){return c=c.childContextTypes,c!=null}function ef(){xt(kn),xt(Ut)}function e2(c,f,g){if(Ut.current!==qn)throw Error(i(168));kt(Ut,f),kt(kn,g)}function t2(c,f,g){var C=c.stateNode;if(f=f.childContextTypes,typeof C.getChildContext!="function")return g;C=C.getChildContext();for(var S in C)if(!(S in f))throw Error(i(108,R(c)||"Unknown",S));return s({},g,C)}function tf(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||qn,lr=Ut.current,kt(Ut,c),kt(kn,kn.current),!0}function n2(c,f,g){var C=c.stateNode;if(!C)throw Error(i(169));g?(c=t2(c,f,lr),C.__reactInternalMemoizedMergedChildContext=c,xt(kn),xt(Ut),kt(Ut,c)):xt(kn),kt(kn,g)}var So=Math.clz32?Math.clz32:P8,_8=Math.log,j8=Math.LN2;function P8(c){return c>>>=0,c===0?32:31-(_8(c)/j8|0)|0}var nf=64,rf=4194304;function eu(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function of(c,f){var g=c.pendingLanes;if(g===0)return 0;var C=0,S=c.suspendedLanes,P=c.pingedLanes,N=g&268435455;if(N!==0){var J=N&~S;J!==0?C=eu(J):(P&=N,P!==0&&(C=eu(P)))}else N=g&~S,N!==0?C=eu(N):P!==0&&(C=eu(P));if(C===0)return 0;if(f!==0&&f!==C&&!(f&S)&&(S=C&-C,P=f&-f,S>=P||S===16&&(P&4194240)!==0))return f;if(C&4&&(C|=g&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=C;0<f;)g=31-So(f),S=1<<g,C|=c[g],f&=~S;return C}function I8(c,f){switch(c){case 1:case 2:case 4:return f+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 f+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 E8(c,f){for(var g=c.suspendedLanes,C=c.pingedLanes,S=c.expirationTimes,P=c.pendingLanes;0<P;){var N=31-So(P),J=1<<N,de=S[N];de===-1?(!(J&g)||J&C)&&(S[N]=I8(J,f)):de<=f&&(c.expiredLanes|=J),P&=~J}}function $g(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function r2(){var c=nf;return nf<<=1,!(nf&4194240)&&(nf=64),c}function Lg(c){for(var f=[],g=0;31>g;g++)f.push(c);return f}function tu(c,f,g){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-So(f),c[f]=g}function M8(c,f){var g=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var C=c.eventTimes;for(c=c.expirationTimes;0<g;){var S=31-So(g),P=1<<S;f[S]=0,C[S]=-1,c[S]=-1,g&=~P}}function zg(c,f){var g=c.entangledLanes|=f;for(c=c.entanglements;g;){var C=31-So(g),S=1<<C;S&f|c[C]&f&&(c[C]|=f),g&=~S}}var Et=0;function o2(c){return c&=-c,1<c?4<c?c&268435455?16:536870912:4:1}var Fg=o.unstable_scheduleCallback,s2=o.unstable_cancelCallback,O8=o.unsta
|
||
|
Error generating stack: `+P.message+`
|
||
|
`+P.stack}return{value:c,source:f,stack:S,digest:null}}function m0(c,f,g){return{value:c,source:null,stack:g??null,digest:f??null}}function g0(c,f){try{console.error(f.value)}catch(g){setTimeout(function(){throw g})}}var K8=typeof WeakMap=="function"?WeakMap:Map;function G2(c,f,g){g=As(-1,g),g.tag=3,g.payload={element:null};var C=f.value;return g.callback=function(){$f||($f=!0,T0=C),g0(c,f)},g}function K2(c,f,g){g=As(-1,g),g.tag=3;var C=c.type.getDerivedStateFromError;if(typeof C=="function"){var S=f.value;g.payload=function(){return C(S)},g.callback=function(){g0(c,f)}}var P=c.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(g.callback=function(){g0(c,f),typeof C!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var N=f.stack;this.componentDidCatch(f.value,{componentStack:N!==null?N:""})}),g}function q2(c,f,g){var C=c.pingCache;if(C===null){C=c.pingCache=new K8;var S=new Set;C.set(f,S)}else S=C.get(f),S===void 0&&(S=new Set,C.set(f,S));S.has(g)||(S.add(g),c=i7.bind(null,c,f,g),f.then(c,c))}function X2(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function Y2(c,f,g,C,S){return c.mode&1?(c.flags|=65536,c.lanes=S,c):(c===f?c.flags|=65536:(c.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(f=As(-1,1),f.tag=2,ya(g,f,1))),g.lanes|=1),c)}var q8=l.ReactCurrentOwner,vr=!1;function cr(c,f,g,C){f.child=c===null?S2(f,null,g,C):bl(f,c.child,g,C)}function Q2(c,f,g,C,S){g=g.render;var P=f.ref;return vl(f,S),C=c0(c,f,g,C,P,S),g=u0(),c!==null&&!vr?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~S,Ns(c,f,S)):(Zt&&g&&Vg(f),f.flags|=1,cr(c,f,C,S),f.child)}function Z2(c,f,g,C,S){if(c===null){var P=g.type;return typeof P=="function"&&!H0(P)&&P.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(f.tag=15,f.type=P,J2(c,f,P,C,S)):(c=Wf(g.type,null,C,f,f.mode,S),c.ref=f.ref,c.return=f,f.child=c)}if(P=c.child,!(c.lanes&S)){var N=P.memoizedProps;if(g=g.compare,g=g!==null?g:df,g(N,C)&&c.ref===f.ref)return Ns(c,f,S)}return f.flags|=1,c=_a(P,C),c.ref=f.ref,c.return=f,f.child=c}function J2(c,f,g,C,S){if(c!==null){var P=c.memoizedProps;if(df(P,C)&&c.ref===f.ref)if(vr=!1,f.pendingProps=C=P,(c.lanes&S)!==0)c.flags&131072&&(vr=!0);else return f.lanes=c.lanes,Ns(c,f,S)}return v0(c,f,g,C,S)}function eC(c,f,g){var C=f.pendingProps,S=C.children,P=c!==null?c.memoizedState:null;if(C.mode==="hidden")if(!(f.mode&1))f.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(Sl,Tr),Tr|=g;else{if(!(g&1073741824))return c=P!==null?P.baseLanes|g:g,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,kt(Sl,Tr),Tr|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=P!==null?P.baseLanes:g,kt(Sl,Tr),Tr|=C}else P!==null?(C=P.baseLanes|g,f.memoizedState=null):C=g,kt(Sl,Tr),Tr|=C;return cr(c,f,S,g),f.child}function tC(c,f){var g=f.ref;(c===null&&g!==null||c!==null&&c.ref!==g)&&(f.flags|=512,f.flags|=2097152)}function v0(c,f,g,C,S){var P=gr(g)?lr:Ut.current;return P=fl(f,P),vl(f,S),g=c0(c,f,g,C,P,S),C=u0(),c!==null&&!vr?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~S,Ns(c,f,S)):(Zt&&C&&Vg(f),f.flags|=1,cr(c,f,g,S),f.child)}function nC(c,f,g,C,S){if(gr(g)){var P=!0;tf(f)}else P=!1;if(vl(f,S),f.stateNode===null)_f(c,f),x2(f,g,C),n0(f,g,C,S),C=!0;else if(c===null){var N=f.stateNode,J=f.memoizedProps;N.props=J;var de=N.context,Ee=g.contextType;typeof Ee=="object"&&Ee!==null?Ee=Zr(Ee):(Ee=gr(g)?lr:Ut.current,Ee=fl(f,Ee));var Ke=g.getDerivedStateFromProps,pt=typeof Ke=="function"||typeof N.getSnapshotBeforeUpdate=="function";pt||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(J!==C||de!==Ee)&&y2(f,N,C,Ee),xa=!1;var He=f.memoizedState;N.state=He,mf(f,C,N,S),de=f.memoizedState,J!==C||He!==de||kn.current||xa?(typeof Ke=="function"&&(t0(f,g,Ke,C),de=f.memoizedState),(J=xa||b2(f,g,J,C,He,de,Ee))?(pt||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMo
|
||
|
`+(C.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+c.join(" > ")}return null},n.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return W(c.child.stateNode);default:return c.child.stateNode}},n.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:p7,findFiberByHostInstance:c.findFiberByHostInstance||h7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)c=!0;else{try{sf=f.inject(c),Yo=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,g,C){if(!Ue)throw Error(i(363));c=O0(c,f);var S=mt(c,g,C).disconnect;return{disconnect:function(){S()}}},n.registerMutableSourceForHydration=function(c,f){var g=f._getVersion;g=g(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,g]:c.mutableSourceEagerHydrationData.push(f,g)},n.runWithPriority=function(c,f){var g=Et;try{return Et=c,f()}finally{Et=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,g,C){var S=f.current,P=Zn(),N=Sa(S);return g=RC(g),f.context===null?f.context=g:f.pendingContext=g,f=As(P,N),f.payload={element:c},C=C===void 0?null:C,C!==null&&(f.callback=C),c=ya(S,f,N),c!==null&&(to(c,S,N,P),hf(c,S,N)),N},n};p8.exports=_he;var jhe=p8.exports;const Phe=Rc(jhe);var h8={exports:{}},ll={};/**
|
||
|
* @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.
|
||
|
*/ll.ConcurrentRoot=1;ll.ContinuousEventPriority=4;ll.DefaultEventPriority=16;ll.DiscreteEventPriority=1;ll.IdleEventPriority=536870912;ll.LegacyRoot=0;h8.exports=ll;var m8=h8.exports;const mj={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let gj=!1,vj=!1;const Qy=".react-konva-event",Ihe=`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
|
||
|
`,Ehe=`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
|
||
|
`,Mhe={};function Rg(e,t,n=Mhe){if(!gj&&"zIndex"in t&&(console.warn(Ehe),gj=!0),!vj&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Ihe),vj=!0)}for(var s in n)if(!mj[s]){var i=s.slice(0,2)==="on",l=n[s]!==t[s];if(i&&l){var u=s.substr(2).toLowerCase();u.substr(0,7)==="content"&&(u="content"+u.substr(7,1).toUpperCase()+u.substr(8)),e.off(u,n[s])}var p=!t.hasOwnProperty(s);p&&e.setAttr(s,void 0)}var h=t._useStrictMode,m={},v=!1;const b={};for(var s in t)if(!mj[s]){var i=s.slice(0,2)==="on",y=n[s]!==t[s];if(i&&y){var u=s.substr(2).toLowerCase();u.substr(0,7)==="content"&&(u="content"+u.substr(7,1).toUpperCase()+u.substr(8)),t[s]&&(b[u]=t[s])}!i&&(t[s]!==n[s]||h&&t[s]!==e.getAttr(s))&&(v=!0,m[s]=t[s])}v&&(e.setAttrs(m),si(e));for(var u in b)e.on(u+Qy,b[u])}function si(e){if(!b9.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const g8={},Ohe={};pd.Node.prototype._applyProps=Rg;function Dhe(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),si(e)}function Rhe(e,t,n){let r=pd[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=pd.Group);const o={},s={};for(var i in t){var l=i.slice(0,2)==="on";l?s[i]=t[i]:o[i]=t[i]}const u=new r(o);return Rg(u,s),u}function Ahe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Nhe(e,t,n){return!1}function The(e){return e}function $he(){return null}function Lhe(){return null}function zhe(e,t,n,r){return Ohe}function Fhe(){}function Bhe(e){}function Hhe(e,t){return!1}function Whe(){return g8}function Vhe(){return g8}const Uhe=setTimeout,Ghe=clearTimeout,Khe=-1;function qhe(e,t){return!1}const Xhe=!1,Yhe=!0,Qhe=!0;function Zhe(e,t){t.parent===e?t.moveToTop():e.add(t),si(e)}function Jhe(e,t){t.parent===e?t.moveToTop():e.add(t),si(e)}function v8(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),si(e)}function eme(e,t,n){v8(e,t,n)}function tme(e,t){t.destroy(),t.off(Qy),si(e)}function nme(e,t){t.destroy(),t.off(Qy),si(e)}function rme(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function ome(e,t,n){}function sme(e,t,n,r,o){Rg(e,o,r)}function ame(e){e.hide(),si(e)}function ime(e){}function lme(e,t){(t.visible==null||t.visible)&&e.show()}function cme(e,t){}function ume(e){}function dme(){}const fme=()=>m8.DefaultEventPriority,pme=Object.freeze(Object.defineProperty({__proto__:null,appendChild:Zhe,appendChildToContainer:Jhe,appendInitialChild:Dhe,cancelTimeout:Ghe,clearContainer:ume,commitMount:ome,commitTextUpdate:rme,commitUpdate:sme,createInstance:Rhe,createTextInstance:Ahe,detachDeletedInstance:dme,finalizeInitialChildren:Nhe,getChildHostContext:Vhe,getCurrentEventPriority:fme,getPublicInstance:The,getRootHostContext:Whe,hideInstance:ame,hideTextInstance:ime,idlePriority:Dp.unstable_IdlePriority,insertBefore:v8,insertInContainerBefore:eme,isPrimaryRenderer:Xhe,noTimeout:Khe,now:Dp.unstable_now,prepareForCommit:$he,preparePortalMount:Lhe,prepareUpdate:zhe,removeChild:tme,removeChildFromContainer:nme,resetAfterCommit:Fhe,resetTextContent:Bhe,run:Dp.unstable_runWithPriority,scheduleTimeout:Uhe,shouldDeprioritizeSubtree:Hhe,shouldSetTextContent:qhe,supportsMutation:Qhe,unhideInstance:lme,unhideTextInstance:cme,warnsIfNotActing:Yhe},Symbol.toStringTag,{value:"Module"}));var hme=Object.defineProperty,mme=Object.defineProperties,gme=Object.getOwnPropertyDescriptors,bj=Object.getOwnPropertySymbols,vme=Object.prototype.hasOwnProperty,bme=Object.prototype.propertyIsEnumerable,xj=(e,t,n)=>t in e?hme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yj=(e,t)=>{for(var n in t||(t={}))vme.call(t,n)&&xj(e,n,t[n]);if(bj)for(var n of bj(t))bme.cal
|
||
|
<!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),Yme=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=L(Xme),[i,l]=d.useState(null),[u,p]=d.useState(0),h=d.useRef(null),m=d.useCallback(()=>{p(u+1),setTimeout(m,500)},[u]);return d.useEffect(()=>{if(i)return;const v=new Image;v.onload=()=>{l(v)},v.src=Sj(n)},[i,n]),d.useEffect(()=>{i&&(i.src=Sj(n))},[i,n]),d.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!i||!_l(r.x)||!_l(r.y)||!_l(s)||!_l(o.width)||!_l(o.height)?null:a.jsx(ks,{ref:h,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:i,fillPatternOffsetY:_l(u)?u:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},Qme=d.memo(Yme),Zme=ie([Lt],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:_t}}),Jme=e=>{const{...t}=e,{objects:n}=L(Zme);return a.jsx(aa,{listening:!1,...t,children:n.filter(O9).map((r,o)=>a.jsx(dm,{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"},o))})},ege=d.memo(Jme);var bi=d,tge=function(t,n,r){const o=bi.useRef("loading"),s=bi.useRef(),[i,l]=bi.useState(0),u=bi.useRef(),p=bi.useRef(),h=bi.useRef();return(u.current!==t||p.current!==n||h.current!==r)&&(o.current="loading",s.current=void 0,u.current=t,p.current=n,h.current=r),bi.useLayoutEffect(function(){if(!t)return;var m=document.createElement("img");function v(){o.current="loaded",s.current=m,l(Math.random())}function b(){o.current="failed",s.current=void 0,l(Math.random())}return m.addEventListener("load",v),m.addEventListener("error",b),n&&(m.crossOrigin=n),r&&(m.referrerPolicy=r),m.src=t,function(){m.removeEventListener("load",v),m.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const nge=Rc(tge),rge=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:i,isError:l}=Wr(s??Er.skipToken),[u]=nge((i==null?void 0:i.image_url)??"",D9.get()?"use-credentials":"anonymous");return l?a.jsx(ks,{x:r,y:o,width:t,height:n,fill:"red"}):a.jsx(C8,{x:r,y:o,image:u,listening:!1})},S8=d.memo(rge),oge=ie([Lt],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:_t}}),sge=()=>{const{objects:e}=L(oge);return e?a.jsx(aa,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(R9(t))return a.jsx(S8,{canvasImage:t},n);if(A9(t)){const r=a.jsx(dm,{points:t.points,stroke:t.color?Ai(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?a.jsx(aa,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(N9(t))return a.jsx(ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Ai(t.color)},n);if(T9(t))return a.jsx(ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},age=d.memo(sge),ige=ie([Lt],e=>{const{layerState:t,shouldShowStagingImage:n,shouldShowStagingOutline:r,boundingBoxCoordinates:{x:o,y:s},boundingBoxDimensions:{width:i,height:l}}=e,{selectedImageIndex:u,images:p}=t.stagingArea;return{currentStagingAreaImage:p.length>0&&u!==void 0?p[u]:void 0,isOnFirstImage:u===0,isOnLastImage:u===p.length-1,shouldShowStagingImage:n,shouldShowStagingOutline:r,x:o,y:s,width:i,height:l}},{memoizeOptions:{resultEqualityCheck:_t}}),lge=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:i,width:l,height:u}=L(ige);return a.jsxs(aa,{...t,children:[r&&n&&a.jsx(S8,{canvasImage:n}),o&&a.jsxs(aa,{children:[a.jsx(ks,{x:s,y:i,width:l,height:u,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),a.jsx(ks,{x:s,y:i,width:l,height:u,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},cge=d.memo(lge),uge=ie([Lt],e=>{const{la
|
||
|
${s}
|
||
|
\`\`\``),n({title:"Error Copied"})},[e,n]),o=d.useMemo(()=>g0e({user:"invoke-ai",repo:"InvokeAI",template:"BUG_REPORT.yml",title:`[bug]: ${e.name}: ${e.message}`}),[e.message,e.name]);return a.jsx($,{layerStyle:"body",sx:{w:"100vw",h:"100vh",alignItems:"center",justifyContent:"center",p:4},children:a.jsxs($,{layerStyle:"first",sx:{flexDir:"column",borderRadius:"base",justifyContent:"center",gap:8,p:16},children:[a.jsx(io,{children:"Something went wrong"}),a.jsx($,{layerStyle:"second",sx:{px:8,py:4,borderRadius:"base",gap:4,justifyContent:"space-between",alignItems:"center"},children:a.jsxs(ye,{sx:{fontWeight:600,color:"error.500",_dark:{color:"error.400"}},children:[e.name,": ",e.message]})}),a.jsxs($,{sx:{gap:4},children:[a.jsx(it,{leftIcon:a.jsx(lhe,{}),onClick:t,children:"Reset UI"}),a.jsx(it,{leftIcon:a.jsx(Wc,{}),onClick:r,children:"Copy Error"}),a.jsx(Mm,{href:o,isExternal:!0,children:a.jsx(it,{leftIcon:a.jsx(AE,{}),children:"Create Issue"})})]})]})})},b0e=d.memo(v0e),x0e=ie([xe],({hotkeys:e})=>{const{shift:t,ctrl:n,meta:r}=e;return{shift:t,ctrl:n,meta:r}},{memoizeOptions:{resultEqualityCheck:_t}}),y0e=()=>{const e=ee(),{shift:t,ctrl:n,meta:r}=L(x0e);return Ze("*",()=>{zp("shift")?!t&&e(Ir(!0)):t&&e(Ir(!1)),zp("ctrl")?!n&&e(kw(!0)):n&&e(kw(!1)),zp("meta")?!r&&e(_w(!0)):r&&e(_w(!1))},{keyup:!0,keydown:!0},[t,n,r]),Ze("1",()=>{e(Aa("txt2img"))}),Ze("2",()=>{e(Aa("img2img"))}),Ze("3",()=>{e(Aa("unifiedCanvas"))}),Ze("4",()=>{e(Aa("nodes"))}),Ze("5",()=>{e(Aa("modelManager"))}),null},C0e=d.memo(y0e),w0e={},S0e=({config:e=w0e,selectedImage:t})=>{const n=L(LP),r=zP("system"),o=ee(),{handlePreselectedImage:s}=m0e(),i=d.useCallback(()=>(localStorage.clear(),location.reload(),!1),[]);d.useEffect(()=>{vt.changeLanguage(n)},[n]),d.useEffect(()=>{s5(e)&&(r.info({config:e},"Received config"),o(yN(e)))},[o,e,r]),d.useEffect(()=>{o(CN())},[o]),d.useEffect(()=>{s(t)},[s,t]);const l=bg(wN);return a.jsxs(p0e,{onReset:i,FallbackComponent:b0e,children:[a.jsx(Ga,{w:"100vw",h:"100vh",position:"relative",overflow:"hidden",children:a.jsx(qV,{children:a.jsxs(Ga,{sx:{gap:4,p:4,gridAutoRows:"min-content auto",w:"full",h:"full"},children:[l||a.jsx(PJ,{}),a.jsx($,{sx:{gap:4,w:"full",h:"full"},children:a.jsx(d0e,{})})]})})}),a.jsx(fZ,{}),a.jsx(iZ,{}),a.jsx($W,{}),a.jsx(C0e,{})]})},D0e=d.memo(S0e);export{D0e as default};
|