mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
822 KiB
JavaScript
170 lines
822 KiB
JavaScript
|
import{t as Gg,r as hE,i as mE,a as vu,b as l4,S as c4,c as u4,d as d4,e as qg,f as f4,g as Kg,h as gE,j as vE,k as yE,l as bE,m as xE,n as wE,o as SE,p as CE,q as _E,s as f,u as rt,v as a,I as ao,w as cr,x as Wn,y as He,z as Mt,A as yu,B as mt,C as bu,D as Ro,E as $r,F as uo,G as wr,H as kE,J as PE,K as qa,L as Gc,M as Li,N as sn,O as _a,P as Vp,Q as rv,R as Pl,T as ov,U as xu,_ as Xn,V as jE,W as N,X as p4,Y as h4,Z as Vb,$ as m4,a0 as Up,a1 as sv,a2 as Jl,a3 as IE,a4 as EE,a5 as OE,a6 as ME,a7 as g4,a8 as v4,a9 as Gp,aa as wf,ab as RE,ac as DE,ad as Vm,ae as Ub,af as TE,ag as y4,ah as b4,ai as Zl,aj as Gb,ak as qb,al as AE,am as NE,an as $E,ao as zE,ap as LE,aq as Um,ar as sl,as as Gm,at as BE,au as FE,av as HE,aw as av,ax as qp,ay as Sf,az as WE,aA as x4,aB as w4,aC as VE,aD as wu,aE as iv,aF as UE,aG as GE,aH as qE,aI as KE,aJ as QE,aK as YE,aL as XE,aM as Kb,aN as me,aO as JE,aP as Gt,aQ as Te,aR as B,aS as zs,aT as Ge,aU as z,aV as Sr,aW as ec,aX as ue,aY as S4,aZ as xo,a_ as C4,a$ as _4,b0 as tc,b1 as xs,b2 as Ze,b3 as lv,b4 as ZE,b5 as e8,b6 as t8,b7 as al,b8 as Cn,b9 as Cf,ba as $c,bb as n8,bc as gt,bd as r8,be as o8,bf as s8,bg as a8,bh as Pe,bi as te,bj as Qb,bk as Ka,bl as Qa,bm as cv,bn as _f,bo as k4,bp as uv,bq as Go,br as i8,bs as Su,bt as Kp,bu as P4,bv as l8,bw as c8,bx as u8,by as j4,bz as d8,bA as f8,bB as p8,bC as h8,bD as dv,bE as qo,bF as ws,bG as gs,bH as Ct,bI as kf,bJ as m8,bK as Bi,bL as g8,bM as v8,bN as Pd,bO as jd,bP as qc,bQ as Kc,bR as Yb,bS as Pf,bT as Xb,bU as jf,bV as Jb,bW as Qg,bX as Zb,bY as Yg,bZ as ex,b_ as If,b$ as tx,c0 as zl,c1 as nx,c2 as Ll,c3 as rx,c4 as Ef,c5 as fv,c6 as pv,c7 as I4,c8 as hv,c9 as mv,ca as y8,cb as b8,cc as Qp,cd as xl,ce as x8,cf as w8,cg as hf,ch as S8,ci as C8,cj as _8,ck as Of,cl as E4,cm as O4,cn as M4,co as Ws,cp as k8,cq as Xg,cr as Vs,cs as P8,ct as R4,cu as ox,cv as j8,cw as I8,cx as E8,cy as O8,cz as pr,cA as D4,cB as M8,cC as R8,cD as D8,cE as T8,cF as gv,cG as Bn,cH as T4,cI as A4,cJ as A8,cK as sx,cL as N8,cM as $8,cN as z8,cO as L8,cP as B8,cQ as F8,cR as N4,cS as H8,cT as W8,cU as V8,cV as U8,cW as G8,cX as q8,cY as K8,cZ as $4,c_ as Q8,c$ as Y8,d0 as X8,d1 as J8,d2 as Z8,d3 as eO,d4 as tO,d5 as nO,d6 as rO,d7 as oO,d8 as sO,d9 as z4,da as Qo,db as aO,dc as iO,dd as lO,de as Yp,df as cO,dg as vv,dh as L4,di as uO,dj as dO,dk as fO,dl as Yo,dm as pO,dn as ax,dp as ix,dq as jl,dr as hO,ds as mO,dt as gO,du as vO,dv as yO,dw as bO,dx as xO,dy as wO,dz as SO,dA as CO,dB as _O,dC as kO,dD as yv,dE as bv,dF as PO,dG as lx,dH as jO,dI as cx,dJ as IO,dK as EO,dL as ux,dM as dx,dN as OO,dO as fx,dP as MO,dQ as RO,dR as DO,dS as TO,dT as AO,dU as NO,dV as B4,dW as F4,dX as H4,dY as W4,dZ as V4,d_ as Cu,d$ as px,e0 as $O,e1 as zO,e2 as Vn,e3 as Ei,e4 as LO,e5 as U4,e6 as hx,e7 as BO,e8 as cs,e9 as FO,ea as HO,eb as G4,ec as q4,ed as WO,ee as K4,ef as Q4,eg as _u,eh as Y4,ei as X4,ej as mx,ek as VO,el as gx,em as UO,en as J4,eo as GO,ep as Xp,eq as vx,er as Z4,es as qO,et as yx,eu as e3,ev as Ko,ew as KO,ex as QO,ey as t3,ez as bx,eA as YO,eB as XO,eC as JO,eD as ZO,eE as e7,eF as t7,eG as n7,eH as r7,eI as o7,eJ as s7,eK as a7,eL as i7,eM as l7,eN as c7,eO as u7,eP as d7,eQ as f7,eR as p7,eS as h7,eT as m7,eU as g7,eV as xx,eW as mf,eX as v7,eY as Mf,eZ as n3,e_ as ru,e$ as y7,f0 as b7,f1 as Hs,f2 as r3,f3 as xv,f4 as ku,f5 as x7,f6 as w7,f7 as S7,f8 as ma,f9 as o3,fa as C7,fb as _7,fc as s3,fd as k7,fe as P7,ff as j7,fg as I7,fh as E7,fi as O7,fj as M7,fk as R7,fl as D7,fm as T7,fn as wx,fo as A7,fp as N7,fq as $7,fr as z7,fs as L7,ft as B7,fu as qm,fv as Bs,fw as Id,fx as Km,fy as Qm,fz as Ed,fA as Sx,fB as Jg,fC as F7,fD as H7,fE as W7,fF as V7,fG as Rf,fH as a3,fI as i3,fJ as U7,fK as G7,fL as l3,fM as c3,fN as u3,fO as d3,fP as f3,fQ as p3,fR as h3,fS as m3,fT as Il,fU as El,fV as g3,fW as v3,fX as q7,fY as y3,fZ as b3,f_ as x3,f$ as w3,g0 as S3,g1 as C3,g2 as wv,g3 as K7,g4 as Q7,g5 as Cx,g6 as Y7,g7 as X7,g8 as Df,g9 as _x,ga as kx,gb as Px,gc as jx,gd as J7,ge as Z7,gf as eM,gg as tM,gh as nM,gi as rM,gj as oM,gk as sM,gl as aM}from"./index-3a8
|
||
|
`})}function JM(e){bu({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Lc(e){const{isOpen:t,isDisabled:n}=kv(),{reduceMotion:r}=Pv(),o=Mt("chakra-accordion__icon",e.className),s=Jp(),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(ao,{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"})})}Lc.displayName="AccordionIcon";var Bc=rt(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=KM(t),d={...Jp().container,overflowAnchor:"none"},p=f.useMemo(()=>i,[i]);return a.jsx(HM,{value:p,children:a.jsx(He.div,{ref:n,...s,className:Mt("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})});Bc.displayName="AccordionItem";var wi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ic={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function e0(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Ic.slideRight;case"left":return Ic.slideLeft;case"bottom":return Ic.slideDown;case"top":return Ic.slideUp;default:return Ic.slideRight}}var Ci={enter:{duration:.2,ease:wi.easeOut},exit:{duration:.1,ease:wi.easeIn}},us={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})},ZM=e=>e!=null&&parseInt(e.toString(),10)>0,Tx={exit:{height:{duration:.2,ease:wi.ease},opacity:{duration:.3,ease:wi.ease}},enter:{height:{duration:.3,ease:wi.ease},opacity:{duration:.4,ease:wi.ease}}},eR={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:ZM(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:us.exit(Tx.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:us.enter(Tx.enter,o)}}},Zp=f.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:i="auto",style:u,className:d,transition:p,transitionEnd:h,...g}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const k=setTimeout(()=>{b(!0)});return()=>clearTimeout(k)},[]),bu({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const S=parseFloat(s.toString())>0,w={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:S?"block":"none"}}},C=r?n:!0,_=n||r?"enter":"exit";return a.jsx(Ro,{initial:!1,custom:w,children:C&&a.jsx($r.div,{ref:t,...g,className:Mt("chakra-collapse",d),style:{overflow:"hidden",display:"block",...u},custom:w,variants:eR,initial:r?"exit":!1,animate:_,exit:"exit"})})});Zp.displayName="Collapse";var tR={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:us.enter(Ci.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:us.exit(Ci.exit,n),transitionEnd:t==null?void 0:t.exi
|
||
|
.`.concat(ZD,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(u,"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(u,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(gf,` {
|
||
|
right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(vf,` {
|
||
|
margin-right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(gf," .").concat(gf,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(vf," .").concat(vf,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(eT,": ").concat(u,`px;
|
||
|
}
|
||
|
`)},fT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return cT(o)},[o]);return f.createElement(uT,{styles:dT(s,!t,o,n?"":"!important")})},d0=!1;if(typeof window<"u")try{var Rd=Object.defineProperty({},"passive",{get:function(){return d0=!0,!0}});window.addEventListener("test",Rd,Rd),window.removeEventListener("test",Rd,Rd)}catch{d0=!1}var ul=d0?{passive:!1}:!1,pT=function(e){return e.tagName==="TEXTAREA"},V6=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pT(e)&&n[t]==="visible")},hT=function(e){return V6(e,"overflowY")},mT=function(e){return V6(e,"overflowX")},Xx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=U6(e,r);if(o){var s=G6(e,r),i=s[1],u=s[2];if(i>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U6=function(e,t){return e==="v"?hT(t):mT(t)},G6=function(e,t){return e==="v"?gT(t):vT(t)},yT=function(e,t){return e==="h"&&t==="rtl"?-1:1},bT=function(e,t,n,r,o){var s=yT(e,window.getComputedStyle(t).direction),i=s*r,u=n.target,d=t.contains(u),p=!1,h=i>0,g=0,v=0;do{var b=G6(e,u),S=b[0],w=b[1],C=b[2],_=w-C-s*S;(S||_)&&U6(e,u)&&(g+=_,v+=S),u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(h&&(o&&g===0||!o&&i>g)||!h&&(o&&v===0||!o&&-i>v))&&(p=!0),p},Dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jx=function(e){return[e.deltaX,e.deltaY]},Zx=function(e){return e&&"current"in e?e.current:e},xT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wT=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},ST=0,dl=[];function CT(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(ST++)[0],s=f.useState(W6)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=s0([e.lockRef.current],(e.shards||[]).map(Zx),!0).filter(Boolean);return w.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(w,C){if("touches"in w&&w.touches.length===2)return!i.current.allowPinchZoom;var _=Dd(w),k=n.current,j="deltaX"in w?w.deltaX:k[0]-_[0],I="deltaY"in w?w.deltaY:k[1]-_[1],E,O=w.target,M=Math.abs(j)>Math.abs(I)?"h":"v";if("touches"in w&&M==="h"&&O.type==="range")return!1;var T=Xx(M,O);if(!T)return!0;if(T?E=M:(E=M==="v"?"h":"v",T=Xx(M,O)),!T)return!1;if(!r.current&&"changedTouches"in w&&(j||I)&&(r.current=E),!E)return!0;var A=r.current||E;return bT(A,C,w,A==="h"?j:I,!0)},[]),d=f.useCallback(function(w){var C=w;if(!(!dl.length||dl[dl.length-1]!==s)){var _="deltaY"in C?Jx(C):Dd(C),k=t.current.filter(function(E){return E.name===C.type&&E.target===C.target&&xT(E.delta,_)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var j=(i.current.shards||[]).map(Zx).filter(Boolean).filter(function(E){return E.contains(C.target)}),I=j.length>0?u(C,j[0]):!i.current.noIsolation;I&&C.cancelable&&C.preventDefault()}}},[]),p=f.useCallback(function(w,C,_,k){var j={name:w,delta:C,target:_,should:k};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(I){return I!==j})},1)},[]),h=f.useCallback(function(w){n.current=Dd(w),r.current=void 0},[]),g=f.useCallback(function(w){p(w.type,Jx(w),w.target,u(w,e.lockRef.current))},[]),v=f.useCallback(function(w){p(w.type,Dd(w),w.target,u(w,e.lockRef.current))},[]);f.useEffect(function(){return dl.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ul),document.addEventListener("touchmove",d,ul),document.addEventListener("touchstart",h,ul),function(){dl=dl.filter(function(w){return w!==s}),document.removeEventListener("wheel",d,ul),document.removeEventListener("touchmove",d,ul),document.removeEventListener("touchstart",h,ul)}},[]);var b=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(s,{styles:wT(o)}):null,b?f.createElement(fT,{gapMode:e.gapMode}):null)}const _T=QR(H6,CT);var q6=f.forwardRef(function(e,t){return f.createElement(nh,Ls({},e,{ref:t,sideCar:_T}))});q6.classNames=nh.classNames;const kT=q6;function PT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:u,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:g}=Ri(),[v,b]=RE();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const S=B6(r,g);return a.jsx(_6,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:a.jsx(kT,{removeScrollBar:!p,allowPinchZoom:i,enabled:S===1&&s,forwardProps:!0,children:e.children})})}var lu=rt((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:u,getDialogContainerProps:d}=Ri(),p=u(i,t),h=d(o),g=Mt("chakra-modal__content",n),v=sc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},S={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:w}=Ri();return a.jsx(PT,{children:a.jsx(He.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:S,children:a.jsx(L6,{preset:w,motionProps:s,className:g,...p,__css:b,children:r})})})});lu.displayName="ModalContent";function Du(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(iu,{...n,initialFocusRef:t})}var Tu=rt((e,t)=>a.jsx(lu,{ref:t,role:"alertdialog",...e})),va=rt((e,t)=>{const{className:
|
||
|
M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fill:d,fillRule:"evenodd",stroke:p,strokeWidth:h,pointerEvents:"none"})]})})}c5.displayName="MiniMap";var OA=f.memo(c5),ds;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ds||(ds={}));function MA({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 RA({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const DA={[ds.Dots]:"#91919a",[ds.Lines]:"#eee",[ds.Cross]:"#e2e2e2"},TA={[ds.Dots]:1,[ds.Lines]:1,[ds.Cross]:6},AA=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function u5({id:e,variant:t=ds.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:u,className:d}){const p=f.useRef(null),{transform:h,patternId:g}=Sf(AA,iv),v=i||DA[t],b=r||TA[t],S=t===ds.Dots,w=t===ds.Cross,C=Array.isArray(n)?n:[n,n],_=[C[0]*h[2]||1,C[1]*h[2]||1],k=b*h[2],j=w?[k,k]:_,I=S?[k/s,k/s]:[j[0]/s,j[1]/s];return a.jsxs("svg",{className:qp(["react-flow__background",d]),style:{...u,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[a.jsx("pattern",{id:g+e,x:h[0]%_[0],y:h[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:S?a.jsx(RA,{color:v,radius:k/s}):a.jsx(MA,{dimensions:j,color:v,lineWidth:o})}),a.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${g+e})`})]})}u5.displayName="Background";var NA=f.memo(u5),Qc;(function(e){e.Line="line",e.Handle="handle"})(Qc||(Qc={}));function $A({width:e,prevWidth:t,height:n,prevHeight:r,invertX:o,invertY:s}){const i=e-t,u=n-r,d=[i>0?1:i<0?-1:0,u>0?1:u<0?-1:0];return i&&o&&(d[0]=d[0]*-1),u&&s&&(d[1]=d[1]*-1),d}const d5={width:0,height:0,x:0,y:0},zA={...d5,pointerX:0,pointerY:0,aspectRatio:1};function LA({nodeId:e,position:t,variant:n=Qc.Handle,className:r,style:o={},children:s,color:i,minWidth:u=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:g=!1,shouldResize:v,onResizeStart:b,onResize:S,onResizeEnd:w}){const C=QE(),_=typeof e=="string"?e:C,k=x4(),j=f.useRef(null),I=f.useRef(zA),E=f.useRef(d5),O=YE(),M=n===Qc.Line?"right":"bottom-right",T=t??M;f.useEffect(()=>{if(!j.current||!_)return;const J=w4(j.current),F=T.includes("right")||T.includes("left"),$=T.includes("bottom")||T.includes("top"),G=T.includes("left"),K=T.includes("top"),R=XE().on("start",U=>{const V=k.getState().nodeInternals.get(_),{xSnapped:Z,ySnapped:ie}=O(U);E.current={width:(V==null?void 0:V.width)??0,height:(V==null?void 0:V.height)??0,x:(V==null?void 0:V.position.x)??0,y:(V==null?void 0:V.position.y)??0},I.current={...E.current,pointerX:Z,pointerY:ie,aspectRatio:E.current.width/E.current.height},b==null||b(U,{...E.current})}).on("drag",U=>{const{nodeInternals:V,triggerNodeChanges:Z}=k.getState(),{xSnapped:ie,ySnapped:xe}=O(U),he=V.get(_);if(he){const ae=[],{pointerX:ee,pointerY:H,width:re,height:pe,x:ne,y:ve,aspectRatio:de}=I.current,{x:Ce,y:Re,width:ge,height:_e}=E.current,We=Math.floor(F?ie-ee:0),Le=Math.floor($?xe-H:0);let Ve=Kb(re+(G?-We:We),u,p),Pt=Kb(pe+(K?-Le:Le),d,h);if(g){const Ae=Ve/Pt,Et=F&&$,Ft=F&&!$,Wt=$&&!F;Ve=Ae<=de&&Et||Wt?Pt*de:Ve,Pt=Ae>de&&Et||Ft?Ve/de:Pt,Ve>=p?(Ve=p,Pt=p/de):Ve<=u&&(Ve=u,Pt=u/de),Pt>=h?(Pt=h,Ve=h*de):Pt<=d&&(Pt=d,Ve=d*de)}const vt=Ve!==ge,Pn=Pt!==_e;if(G||K){const Ae=G?ne-(Ve-re):ne,Et=K?ve-(Pt-pe):ve,Ft=Ae!==Ce&&vt,Wt=Et!==Re&&Pn;if(Ft||Wt){const _n={id:he.id,type:"position",position:{x:Ft?Ae:Ce,y:Wt?Et:Re}};ae.push(_n),E.current.x=_n.position.x,E.current.y=_n.position.y}}if(vt||Pn){const Ae={id:_,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:Ve,height:Pt}};ae.push(Ae),E.current.width=Ve,E.current.height=Pt}if(ae.length===0)return;const jt=$A({width:E.current.width,prevWidth:ge,height:E.current.height,prevHeight:_e,invertX:G,invertY:K}),bt={...E.current,direction:jt};if((v==null?void 0:v(U,bt))===!1)return;S==null||S(U,bt),Z(ae)}}).on("end",U=>{const V={id:_,type:"dimensions",resizing:!1};w==null||w(U,{...E.current}),k.getState().tr
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rN(e){if(Array.isArray(e))return g0(e)}function o2(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 s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o2(Object(n),!0).forEach(function(r){h5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(e,t){return aN(e)||sN(e,t)||m5(e,t)||oN()}function oN(){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 m5(e,t){if(e){if(typeof e=="string")return g0(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 g0(e,t)}}function g0(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 sN(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,u;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,u=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw u}}return r}}function aN(e){if(Array.isArray(e))return e}var iN="file-invalid-type",lN="file-too-large",cN="file-too-small",uN="too-many-files",dN=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:iN,message:"File type must be ".concat(n)}},a2=function(t){return{code:lN,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},i2=function(t){return{code:cN,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fN={code:uN,message:"Too many files"};function g5(e,t){var n=e.type==="application/x-moz-file"||eN(e,t);return[n,n?null:dN(t)]}function v5(e,t,n){if(bi(e.size))if(bi(t)&&bi(n)){if(e.size>n)return[!1,a2(n)];if(e.size<t)return[!1,i2(t)]}else{if(bi(t)&&e.size<t)return[!1,i2(t)];if(bi(n)&&e.size>n)return[!1,a2(n)]}return[!0,null]}function bi(e){return e!=null}function pN(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,i=e.maxFiles,u=e.validator;return!s&&t.length>1||s&&i>=1&&t.length>i?!1:t.every(function(d){var p=g5(d,n),h=cu(p,1),g=h[0],v=v5(d,r,o),b=cu(v,1),S=b[0],w=u?u(d):null;return g&&S&&!w})}function Bf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Td(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 l2(e){e.preventDefault()}function hN(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mN(e){return e.indexOf("Edge/")!==-1}function gN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hN(e)||mN(e)}function Ts(){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(u){return!Bf(r)&&u&&u.apply(void 0,[r].concat(s)),Bf(r)})}}function vN(){return"showOpenFilePicker"in window}function yN(e){if(bi(e)){var t=Object.entries(e).filter(function(n){var r=cu(n,2),o=r[0],s=r[1],i=!0;return y5(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(b5))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=cu(r,2),s=o[0],i=o[1];return s2(s2({},n),{},h5({},s,i))},{});return[{description:"Files",accept:t}]}return e}function bN(e){if(bi(e))return Object.entries(e).reduce(function(t,n){var r=cu(n,2),o=r[0],s=r[1];return[].concat(r2(t),[o],r2(s))},[]).filter(function(t){return y5(t)||b5(t)}).join(",")}function xN(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function wN(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function y5(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function b5(e){return/^.*\.[\w]+$/.test(e)}var SN=["children"],CN=["open"],_N=["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 IN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EN(e){if(Array.isArray(e))return v0(e)}function dg(e,t){return RN(e)||MN(e,t)||x5(e,t)||ON()}function ON(){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 x5(e,t){if(e){if(typeof e=="string")return v0(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 v0(e,t)}}function v0(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 MN(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,u;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,u=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw u}}return r}}function RN(e){if(Array.isArray(e))return e}function c2(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 tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(n),!0).forEach(function(r){y0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(e,t){if(e==null)return{};var n=DN(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 DN(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 Yv=f.forwardRef(function(e,t){var n=e.children,r=Ff(e,SN),o=Xv(r),s=o.open,i=Ff(o,CN);return f.useImperativeHandle(t,function(){return{open:s}},[s]),N.createElement(f.Fragment,null,n(tr(tr({},i),{},{open:s})))});Yv.displayName="Dropzone";var w5={disabled:!1,getFilesFromEvent:UA,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};Yv.defaultProps=w5;Yv.propTypes={children:Dn.func,accept:Dn.objectOf(Dn.arrayOf(Dn.string)),multiple:Dn.bool,preventDropOnDocument:Dn.bool,noClick:Dn.bool,noKeyboard:Dn.bool,noDrag:Dn.bool,noDragEventsBubbling:Dn.bool,minSize:Dn.number,maxSize:Dn.number,maxFiles:Dn.number,disabled:Dn.bool,getFilesFromEvent:Dn.func,onFileDialogCancel:Dn.func,onFileDialogOpen:Dn.func,useFsAccessApi:Dn.bool,autoFocus:Dn.bool,onDragEnter:Dn.func,onDragLeave:Dn.func,onDragOver:Dn.func,onDrop:Dn.func,onDropAccepted:Dn.func,onDropRejected:Dn.func,onError:Dn.func,validator:Dn.func};var b0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Xv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=tr(tr({},w5),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,i=t.minSize,u=t.multiple,d=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,S=t.onDropRejected,w=t.onFileDialogCancel,C=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,j=t.preventDropOnDocument,I=t.noClick,E=t.noKeyboard,O=t.noDrag,M=t.noDragEventsBubbling,T=t.onError,A=t.validator,L=f.useMemo(function(){return bN(n)},[n]),W=f.useMemo(function(){return yN(n)},[n]),J=f.useMemo(function(){return typeof C=="function"?C:u2},[C]),F=f.useMemo(function(){return typeof w=="function"?w:u2},[w]),$=f.useRef(null),G=f.useRef(null),K=f.useReducer(TN,b0),R=dg(K,2),U=R[0],V=R[1],Z=U.isFocused,ie=U.isFileDialogActive,xe=f.useRef(typeof window<"u"&&window.isSecureContext&&_&&vN()),he=function(){!xe.current&&ie&&setTimeout(function(){if(G.current){var Ae=G.current.files;Ae.length||(V({type:"closeDialog"}),F())}},300)};f.useEffect(functi
|
||
|
`),status:"error"})},[s,o]),h=f.useCallback(async k=>{d({file:k,image_category:"user",is_intermediate:!1,postUploadAction:n})},[n,d]),g=f.useCallback((k,j)=>{if(j.length>1){o({title:s("toast.uploadFailed"),description:s("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}j.forEach(I=>{p(I)}),k.forEach(I=>{h(I)})},[s,o,h,p]),{getRootProps:v,getInputProps:b,isDragAccept:S,isDragReject:w,isDragActive:C,inputRef:_}=Xv({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:g,onDragOver:()=>u(!0),disabled:r,multiple:!1});return f.useEffect(()=>{const k=async j=>{var I,E;_.current&&(I=j.clipboardData)!=null&&I.files&&(_.current.files=j.clipboardData.files,(E=_.current)==null||E.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[_]),a.jsxs(Te,{...v({style:{}}),onKeyDown:k=>{k.key},children:[a.jsx("input",{...b()}),t,a.jsx(Ro,{children:C&&i&&a.jsx($r.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:a.jsx(KN,{isDragAccept:S,isDragReject:w,setIsHandlingUpload:u})},"image-upload-overlay")})]})},XN=f.memo(YN),en=e=>e.canvas,Jn=me([en,or,xo],(e,t,n)=>e.layerState.stagingArea.images.length>0||t==="unifiedCanvas"&&n.isProcessing),JN=e=>e.canvas.layerState.objects.find(C4),ZN=mM(e=>{e(_4(!0))},300),yo=()=>(e,t)=>{or(t())==="unifiedCanvas"&&ZN(e)};var e$=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vr=globalThis&&globalThis.__assign||function(){return vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vr.apply(this,arguments)},f2={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},p2={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ad={width:"20px",height:"20px",position:"absolute"},t$={top:vr(vr({},f2),{top:"-5px"}),right:vr(vr({},p2),{left:void 0,right:"-5px"}),bottom:vr(vr({},f2),{top:void 0,bottom:"-5px"}),left:vr(vr({},p2),{left:"-5px"}),topRight:vr(vr({},Ad),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:vr(vr({},Ad),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:vr(vr({},Ad),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:vr(vr({},Ad),{left:"-10px",top:"-10px",cursor:"nw-resize"})},n$=function(e){e$(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return f.createElement("div",{className:this.props.className||"",style:vr(vr({position:"absolute",userSelect:"none"},t$[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),r$=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),As=globalThis&&globalThis.__assign||function(){return As=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},As.apply(this,arguments)},o$={width:"auto",height:"auto"},Nd=function(e,t,n){return Math.max(Math.min(e,n),t)},h2=function(e,t){return Math.round(e/t)*t},pl=function(e,t){return new RegExp(e,"i")
|
||
|
* OverlayScrollbars
|
||
|
* Version: 2.2.1
|
||
|
*
|
||
|
* Copyright (c) Rene Haas | KingSora.
|
||
|
* https://github.com/KingSora
|
||
|
*
|
||
|
* Released under the MIT license.
|
||
|
*/function gn(e,t){if(hh(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&gn(Object.keys(e),n=>t(e[n],n,e));return e}function Jr(e,t){const n=oi(t);if(ys(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?x2(e,s,t):t.reduce((i,u)=>(i[u]=x2(e,s,u),i),o)}return o}e&&gn(Mo(t),o=>E$(e,o,t[o]))}const is=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const u=(h,g)=>{const v=s,b=h,S=g||(r?!r(v,b):v!==b);return(S||o)&&(s=b,i=v),[s,S,i]};return[t?h=>u(t(s,i),h):u,h=>[s,!!h,i]]},$u=()=>typeof window<"u",E5=$u()&&Node.ELEMENT_NODE,{toString:h$,hasOwnProperty:mg}=Object.prototype,Pa=e=>e===void 0,ph=e=>e===null,m$=e=>Pa(e)||ph(e)?`${e}`:h$.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Xa=e=>typeof e=="number",oi=e=>typeof e=="string",Jv=e=>typeof e=="boolean",vs=e=>typeof e=="function",ys=e=>Array.isArray(e),uu=e=>typeof e=="object"&&!ys(e)&&!ph(e),hh=e=>{const t=!!e&&e.length,n=Xa(t)&&t>-1&&t%1==0;return ys(e)||!vs(e)&&n?t>0&&uu(e)?t-1 in e:!0:!1},w0=e=>{if(!e||!uu(e)||m$(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=mg.call(e,n),i=o&&mg.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(t in e);return Pa(t)||mg.call(e,t)},Hf=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===E5:!1},mh=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===E5:!1},Zv=(e,t,n)=>e.indexOf(t,n),jn=(e,t,n)=>(!n&&!oi(t)&&hh(t)?Array.prototype.push.apply(e,t):e.push(t),e),Di=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{jn(n,r)}):gn(e,r=>{jn(n,r)}),n)},e1=e=>!!e&&e.length===0,Qs=(e,t,n)=>{gn(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},gh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Mo=e=>e?Object.keys(e):[],rr=(e,t,n,r,o,s,i)=>{const u=[t,n,r,o,s,i];return(typeof e!="object"||ph(e))&&!vs(e)&&(e={}),gn(u,d=>{gn(Mo(d),p=>{const h=d[p];if(e===h)return!0;const g=ys(h);if(h&&(w0(h)||g)){const v=e[p];let b=v;g&&!ys(v)?b=[]:!g&&!w0(v)&&(b={}),e[p]=rr(b,h)}else e[p]=h})}),e},t1=e=>{for(const t in e)return!1;return!0},O5=(e,t,n,r)=>{if(Pa(r))return n?n[e]:t;n&&(oi(r)||Xa(r))&&(n[e]=r)},Xr=(e,t,n)=>{if(Pa(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},go=(e,t)=>{e&&e.removeAttribute(t)},_i=(e,t,n,r)=>{if(n){const o=Xr(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const i=Di(s).join(" ").trim();Xr(e,t,i)}},g$=(e,t,n)=>{const r=Xr(e,t)||"";return new Set(r.split(" ")).has(n)},fs=(e,t)=>O5("scrollLeft",0,e,t),ua=(e,t)=>O5("scrollTop",0,e,t),S0=$u()&&Element.prototype,M5=(e,t)=>{const n=[],r=t?mh(t)?t:null:document;return r?jn(n,r.querySelectorAll(e)):n},v$=(e,t)=>{const n=t?mh(t)?t:null:document;return n?n.querySelector(e):null},Wf=(e,t)=>mh(e)?(S0.matches||S0.msMatchesSelector).call(e,t):!1,n1=e=>e?Di(e.childNodes):[],wa=e=>e?e.parentElement:null,Sl=(e,t)=>{if(mh(e)){const n=S0.closest;if(n)return n.call(e,t);do{if(Wf(e,t))return e;e=wa(e)}while(e)}return null},y$=(e,t,n)=>{const r=e&&Sl(e,t),o=e&&v$(n,r),s=Sl(o,t)===r;return r&&o?r===e||o===e||s&&Sl(Sl(e,n),t)!==r:!1},r1=(e,t,n)=>{if(n&&e){let r=t,o;hh(n)?(o=document.createDocumentFragment(),gn(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)}},Uo=(e,t)=>{r1(e,null,t)},b$=(e,t)=>{r1(wa(e),e,t)},v2=(e,t)=>{r1(wa(e),e&&e.nextSibling,t)},Us=e=>{if(hh(e))gn(Di(e),t=>Us(t));else if(e){const t=wa(e);t&&t.removeChild(e)}},ki=e=>{const t=document.createElement("div");return e&&Xr(t,"class",e),t},R5=e=>{const t=ki();return t.innerHTML=e.trim(),gn(n1(t),n=>Us(n))},C0=e=>e.charAt(0).toUpperCase()+e.slice(1),x$=()=>ki().style,w$=["-webkit-","-moz-","-o-","-ms-"],S$=["WebKit","Moz","O","MS","webkit","moz","o","ms"],gg={},vg={},C$=e=>{let t=vg[e];if(gh(vg,e))return t;const n=C0(e),r=x$();return gn(w$,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,C0(s)+n].find(u=>r[u]!==void 0))}),vg[e]=t||""},zu=e=>{if($u()){let t=gg[e]||window[e];return gh(gg,e)||(gn(S$,n=>(t=t||window[n+C0(e)],!t)),gg[e]=t),t}},_$=zu("MutationObserver"),y2=zu("IntersectionObserver"),Cl=zu("ResizeObserver"),D5=zu("cancelAnimationFrame"),T
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Fe,mutationThunk:ht,api:q,serializeQueryArgs:nt,context:le}),_r=Jt.buildInitiateQuery,Un=Jt.buildInitiateMutation;return Dr(q.util,{getRunningOperationPromises:Jt.getRunningOperationPromises,getRunningOperationPromise:Jt.removalWarning,getRunningMutationThunk:Jt.getRunningMutationThunk,getRunningMutationsThunk:Jt.getRunningMutationsThunk,getRunningQueryThunk:Jt.getRunningQueryThunk,getRunningQueriesThunk:Jt.getRunningQueriesThunk}),{name:ts,injectEndpoint:function(yt,wn){var kn,Gn=q;(kn=Gn.endpoints)[yt]!=null||(kn[yt]={}),ne(wn)?Dr(Gn.endpoints[yt],{name:yt,select:zt(yt,wn),initiate:_r(yt,wn)},qt(Fe,yt)):wn.type===H.mutation&&Dr(Gn.endpoints[yt],{name:yt,select:tn(),initiate:Un(yt)},qt(ht,yt))}}}}},Ps=Ye(Xs())})(x_);b_.exports=x_;var lo=b_.exports;const hL=rt((e,t)=>{const{children:n,tooltip:r="",tooltipProps:{placement:o="top",hasArrow:s=!0,...i}={},isChecked:u,...d}=e;return a.jsx(Cn,{label:r,placement:o,hasArrow:s,...i,children:a.jsx(Cf,{ref:t,colorScheme:u?"accent":"base",...d,children:n})})}),Xt=f.memo(hL),mL=e=>{const{imageUsage:t,topMessage:n="This image is currently in use in the following features:",bottomMessage:r="If you delete this image, those features will immediately be reset."}=e;return!t||!$c(t)?null:a.jsxs(a.Fragment,{children:[a.jsx(Ke,{children:n}),a.jsxs(Bv,{sx:{paddingInlineStart:6},children:[t.isInitialImage&&a.jsx(la,{children:"Image to Image"}),t.isCanvasImage&&a.jsx(la,{children:"Unified Canvas"}),t.isControlNetImage&&a.jsx(la,{children:"ControlNet"}),t.isNodesImage&&a.jsx(la,{children:"Node Editor"})]}),a.jsx(Ke,{children:r})]})},w_=f.memo(mL),gL=e=>{const{boardToDelete:t,setBoardToDelete:n}=e,{t:r}=ue(),o=z(k=>k.config.canRestoreDeletedImagesFromBin),{currentData:s,isFetching:i}=n8((t==null?void 0:t.board_id)??lo.skipToken),u=f.useMemo(()=>me([gt],k=>{const j=(s??[]).map(E=>r8(k,E));return{imageUsageSummary:{isInitialImage:$c(j,E=>E.isInitialImage),isCanvasImage:$c(j,E=>E.isCanvasImage),isNodesImage:$c(j,E=>E.isNodesImage),isControlNetImage:$c(j,E=>E.isControlNetImage)}}}),[s]),[d,{isLoading:p}]=o8(),[h,{isLoading:g}]=s8(),{imageUsageSummary:v}=z(u),b=f.useCallback(()=>{t&&(d(t.board_id),n(void 0))},[t,d,n]),S=f.useCallback(()=>{t&&(h(t.board_id),n(void 0))},[t,h,n]),w=f.useCallback(()=>{n(void 0)},[n]),C=f.useRef(null),_=f.useMemo(()=>g||p||i,[g,p,i]);return t?a.jsx(Du,{isOpen:!!t,onClose:w,leastDestructiveRef:C,isCentered:!0,children:a.jsx(ba,{children:a.jsxs(Tu,{children:[a.jsxs(ya,{fontSize:"lg",fontWeight:"bold",children:["Delete ",t.board_name]}),a.jsx(xa,{children:a.jsxs(B,{direction:"column",gap:3,children:[i?a.jsx(rh,{children:a.jsx(B,{sx:{w:"full",h:32}})}):a.jsx(w_,{imageUsage:v,topMessage:"This board contains images used in the following features:",bottomMessage:"Deleting this board and its images will reset any features currently using them."}),a.jsx(Ke,{children:"Deleted boards cannot be restored."}),a.jsx(Ke,{children:r(o?"gallery.deleteImageBin":"gallery.deleteImagePermanent")})]})}),a.jsx(va,{children:a.jsxs(B,{sx:{justifyContent:"space-between",width:"full",gap:2},children:[a.jsx(Xt,{ref:C,onClick:w,children:"Cancel"}),a.jsx(Xt,{colorScheme:"warning",isLoading:_,onClick:b,children:"Delete Board Only"}),a.jsx(Xt,{colorScheme:"error",isLoading:_,onClick:S,children:"Delete Board and Images"})]})})]})})}):null},vL=f.memo(gL),yL="My Board",bL=()=>{const[e,{isLoading:t}]=a8(),n=f.useCallback(()=>{e(yL)},[e]);return a.jsx(Pe,{icon:a.jsx(Hi,{}),isLoading:t,tooltip:"Add Board","aria-label":"Add Board",onClick:n,size:"sm"})};var S_=Pu({displayName:"ExternalLinkIcon",path:a.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[a.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),a.jsx("path",{d:"M15 3h6v6"}),a.jsx("path",{d:"M10 14L21 3"})]})}),b1=Pu({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),xL=Pu({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.8
|
||
|
* @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 Lte=function(t){var n={},r=f,o=mf,s=Object.assign;function i(l){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+l,m=1;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),E=Symbol.iterator;function O(l){return l===null||typeof l!="object"?null:(l=E&&l[E]||l["@@iterator"],typeof l=="function"?l:null)}function M(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case h:return"Fragment";case p:return"Portal";case v:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case S:return(l.displayName||"Context")+".Consumer";case b:return(l._context.displayName||"Context")+".Provider";case w:var c=l.render;return l=l.displayName,l||(l=c.displayName||c.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case k:return c=l.displayName||null,c!==null?c:M(l.type)||"Memo";case j:c=l._payload,l=l._init;try{return M(l(c))}catch{}}return null}function T(l){var c=l.type;switch(l.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=c.render,l=l.displayName||l.name||"",c.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return M(c);case 8:return c===g?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function A(l){var c=l,m=l;if(l.alternate)for(;c.return;)c=c.return;else{l=c;do c=l,c.flags&4098&&(m=c.return),l=c.return;while(l)}return c.tag===3?m:null}function L(l){if(A(l)!==l)throw Error(i(188))}function W(l){var c=l.alternate;if(!c){if(c=A(l),c===null)throw Error(i(188));return c!==l?null:l}for(var m=l,y=c;;){var x=m.return;if(x===null)break;var P=x.alternate;if(P===null){if(y=x.return,y!==null){m=y;continue}break}if(x.child===P.child){for(P=x.child;P;){if(P===m)return L(x),l;if(P===y)return L(x),c;P=P.sibling}throw Error(i(188))}if(m.return!==y.return)m=x,y=P;else{for(var D=!1,Q=x.child;Q;){if(Q===m){D=!0,m=x,y=P;break}if(Q===y){D=!0,y=x,m=P;break}Q=Q.sibling}if(!D){for(Q=P.child;Q;){if(Q===m){D=!0,m=P,y=x;break}if(Q===y){D=!0,y=P,m=x;break}Q=Q.sibling}if(!D)throw Error(i(189))}}if(m.alternate!==y)throw Error(i(190))}if(m.tag!==3)throw Error(i(188));return m.stateNode.current===m?l:c}function J(l){return l=W(l),l!==null?F(l):null}function F(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var c=F(l);if(c!==null)return c;l=l.sibling}return null}function $(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var c=$(l);if(c!==null)return c}l=l.sibling}return null}var G=Array.isArray,K=t.getPublicInstance,R=t.getRootHostContext,U=t.getChildHostContext,V=t.prepareForCommit,Z=t.resetAfterCommit,ie=t.createInstance,xe=t.appendInitialChild,he=t.finalizeInitialChildren,ae=t.prepareUpdate,ee=t.shouldSetTextContent,H=t.createTextInstance,re=t.scheduleTimeout,pe=t.cancelTimeout,ne=t.noTimeout,ve=t.isPrimaryRenderer,de=t.supportsMutation,Ce=t.supportsPersistence,Re=t.supportsHydration,ge=t.
|
||
|
`+xt+l}var Lt=!1;function Kt(l,c){if(!l||Lt)return"";Lt=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(Ee){var y=Ee}Reflect.construct(l,[],c)}else{try{c.call()}catch(Ee){y=Ee}l.call(c.prototype)}else{try{throw Error()}catch(Ee){y=Ee}l()}}catch(Ee){if(Ee&&y&&typeof Ee.stack=="string"){for(var x=Ee.stack.split(`
|
||
|
`),P=y.stack.split(`
|
||
|
`),D=x.length-1,Q=P.length-1;1<=D&&0<=Q&&x[D]!==P[Q];)Q--;for(;1<=D&&0<=Q;D--,Q--)if(x[D]!==P[Q]){if(D!==1||Q!==1)do if(D--,Q--,0>Q||x[D]!==P[Q]){var se=`
|
||
|
`+x[D].replace(" at new "," at ");return l.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",l.displayName)),se}while(1<=D&&0<=Q);break}}}finally{Lt=!1,Error.prepareStackTrace=m}return(l=l?l.displayName||l.name:"")?Ot(l):""}var qt=Object.prototype.hasOwnProperty,$t=[],Me=-1;function ut(l){return{current:l}}function _t(l){0>Me||(l.current=$t[Me],$t[Me]=null,Me--)}function Tt(l,c){Me++,$t[Me]=l.current,l.current=c}var xn={},zt=ut(xn),tn=ut(!1),Jt=xn;function _r(l,c){var m=l.type.contextTypes;if(!m)return xn;var y=l.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var x={},P;for(P in m)x[P]=c[P];return y&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=c,l.__reactInternalMemoizedMaskedChildContext=x),x}function Un(l){return l=l.childContextTypes,l!=null}function yt(){_t(tn),_t(zt)}function wn(l,c,m){if(zt.current!==xn)throw Error(i(168));Tt(zt,c),Tt(tn,m)}function kn(l,c,m){var y=l.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return m;y=y.getChildContext();for(var x in y)if(!(x in c))throw Error(i(108,T(l)||"Unknown",x));return s({},m,y)}function Gn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||xn,Jt=zt.current,Tt(zt,l),Tt(tn,tn.current),!0}function ar(l,c,m){var y=l.stateNode;if(!y)throw Error(i(169));m?(l=kn(l,c,Jt),y.__reactInternalMemoizedMergedChildContext=l,_t(tn),_t(zt),Tt(zt,l)):_t(tn),Tt(tn,m)}var En=Math.clz32?Math.clz32:pn,On=Math.log,nn=Math.LN2;function pn(l){return l>>>=0,l===0?32:31-(On(l)/nn|0)|0}var Sn=64,cn=4194304;function un(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Be(l,c){var m=l.pendingLanes;if(m===0)return 0;var y=0,x=l.suspendedLanes,P=l.pingedLanes,D=m&268435455;if(D!==0){var Q=D&~x;Q!==0?y=un(Q):(P&=D,P!==0&&(y=un(P)))}else D=m&~x,D!==0?y=un(D):P!==0&&(y=un(P));if(y===0)return 0;if(c!==0&&c!==y&&!(c&x)&&(x=y&-y,P=c&-c,x>=P||x===16&&(P&4194240)!==0))return c;if(y&4&&(y|=m&16),c=l.entangledLanes,c!==0)for(l=l.entanglements,c&=y;0<c;)m=31-En(c),x=1<<m,y|=l[m],c&=~x;return y}function wt(l,c){switch(l){case 1:case 2:case 4:return c+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 c+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 pt(l,c){for(var m=l.suspendedLanes,y=l.pingedLanes,x=l.expirationTimes,P=l.pendingLanes;0<P;){var D=31-En(P),Q=1<<D,se=x[D];se===-1?(!(Q&m)||Q&y)&&(x[D]=wt(Q,c)):se<=c&&(l.expiredLanes|=Q),P&=~Q}}function Je(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function ft(){var l=Sn;return Sn<<=1,!(Sn&4194240)&&(Sn=64),l}function Rt(l){for(var c=[],m=0;31>m;m++)c.push(l);return c}function lt(l,c,m){l.pendingLanes|=c,c!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,c=31-En(c),l[c]=m}function qe(l,c){var m=l.pendingLanes&~c;l.pendingLanes=c,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=c,l.mutableReadLanes&=c,l.entangledLanes&=c,c=l.entanglements;var y=l.eventTimes;for(l=l.expirationTimes;0<m;){var x=31-En(m),P=1<<x;c[x]=0,y[x]=-1,l[x]=-1,m&=~P}}function ke(l,c){var m=l.entangledLanes|=c;for(l=l.entanglements;m;){var y=31-En(m),x=1<<y;x&c|l[y]&c&&(l[y]|=c),m&=~x}}var Se=0;function je(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Ne=o.unstable_scheduleCallback,Ue=o.unstable_cancelCallback,kt=o.unsta
|
||
|
Error generating stack: `+P.message+`
|
||
|
`+P.stack}return{value:l,source:c,stack:x,digest:null}}function hm(l,c,m){return{value:l,source:null,stack:m??null,digest:c??null}}function mm(l,c){try{console.error(c.value)}catch(m){setTimeout(function(){throw m})}}var UI=typeof WeakMap=="function"?WeakMap:Map;function eb(l,c,m){m=ea(-1,m),m.tag=3,m.payload={element:null};var y=c.value;return m.callback=function(){vd||(vd=!0,Am=y),mm(l,c)},m}function tb(l,c,m){m=ea(-1,m),m.tag=3;var y=l.type.getDerivedStateFromError;if(typeof y=="function"){var x=c.value;m.payload=function(){return y(x)},m.callback=function(){mm(l,c)}}var P=l.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(m.callback=function(){mm(l,c),typeof y!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var D=c.stack;this.componentDidCatch(c.value,{componentStack:D!==null?D:""})}),m}function nb(l,c,m){var y=l.pingCache;if(y===null){y=l.pingCache=new UI;var x=new Set;y.set(c,x)}else x=y.get(c),x===void 0&&(x=new Set,y.set(c,x));x.has(m)||(x.add(m),l=sE.bind(null,l,c,m),c.then(l,l))}function rb(l){do{var c;if((c=l.tag===13)&&(c=l.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return l;l=l.return}while(l!==null);return null}function ob(l,c,m,y,x){return l.mode&1?(l.flags|=65536,l.lanes=x,l):(l===c?l.flags|=65536:(l.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(c=ea(-1,1),c.tag=2,Oa(m,c,1))),m.lanes|=1),l)}var GI=u.ReactCurrentOwner,fo=!1;function so(l,c,m,y){c.child=l===null?My(c,null,m,y):Ji(c,l.child,m,y)}function sb(l,c,m,y,x){m=m.render;var P=c.ref;return Xi(c,x),y=lm(l,c,m,y,P,x),m=cm(),l!==null&&!fo?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,ta(l,c,x)):(qn&&m&&Wh(c),c.flags|=1,so(l,c,y,x),c.child)}function ab(l,c,m,y,x){if(l===null){var P=m.type;return typeof P=="function"&&!Fm(P)&&P.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(c.tag=15,c.type=P,ib(l,c,P,y,x)):(l=Cd(m.type,null,y,c,c.mode,x),l.ref=c.ref,l.return=c,c.child=l)}if(P=l.child,!(l.lanes&x)){var D=P.memoizedProps;if(m=m.compare,m=m!==null?m:Uu,m(D,y)&&l.ref===c.ref)return ta(l,c,x)}return c.flags|=1,l=Aa(P,y),l.ref=c.ref,l.return=c,c.child=l}function ib(l,c,m,y,x){if(l!==null){var P=l.memoizedProps;if(Uu(P,y)&&l.ref===c.ref)if(fo=!1,c.pendingProps=y=P,(l.lanes&x)!==0)l.flags&131072&&(fo=!0);else return c.lanes=l.lanes,ta(l,c,x)}return gm(l,c,m,y,x)}function lb(l,c,m){var y=c.pendingProps,x=y.children,P=l!==null?l.memoizedState:null;if(y.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(rl,Io),Io|=m;else{if(!(m&1073741824))return l=P!==null?P.baseLanes|m:m,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:l,cachePool:null,transitions:null},c.updateQueue=null,Tt(rl,Io),Io|=l,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=P!==null?P.baseLanes:m,Tt(rl,Io),Io|=y}else P!==null?(y=P.baseLanes|m,c.memoizedState=null):y=m,Tt(rl,Io),Io|=y;return so(l,c,x,m),c.child}function cb(l,c){var m=c.ref;(l===null&&m!==null||l!==null&&l.ref!==m)&&(c.flags|=512,c.flags|=2097152)}function gm(l,c,m,y,x){var P=Un(m)?Jt:zt.current;return P=_r(c,P),Xi(c,x),m=lm(l,c,m,y,P,x),y=cm(),l!==null&&!fo?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,ta(l,c,x)):(qn&&y&&Wh(c),c.flags|=1,so(l,c,m,x),c.child)}function ub(l,c,m,y,x){if(Un(m)){var P=!0;Gn(c)}else P=!1;if(Xi(c,x),c.stateNode===null)sd(l,c),jy(c,m,y),tm(c,m,y,x),y=!0;else if(l===null){var D=c.stateNode,Q=c.memoizedProps;D.props=Q;var se=D.context,Ee=m.contextType;typeof Ee=="object"&&Ee!==null?Ee=No(Ee):(Ee=Un(m)?Jt:zt.current,Ee=_r(c,Ee));var ct=m.getDerivedStateFromProps,Vt=typeof ct=="function"||typeof D.getSnapshotBeforeUpdate=="function";Vt||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(Q!==y||se!==Ee)&&Iy(c,D,y,Ee),Ea=!1;var et=c.memoizedState;D.state=et,Qu(c,y,D,x),se=c.memoizedState,Q!==y||et!==se||tn.current||Ea?(typeof ct=="function"&&(em(c,m,ct,y),se=c.memoizedState),(Q=Ea||Py(c,m,Q,y,et,se,Ee))?(Vt||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMo
|
||
|
`+(y.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+l.join(" > ")}return null},n.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return K(l.child.stateNode);default:return l.child.stateNode}},n.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:u.ReactCurrentDispatcher,findHostInstanceByFiber:dE,findFiberByHostInstance:l.findFiberByHostInstance||fE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled||!c.supportsFiber)l=!0;else{try{Fn=c.inject(l),an=c}catch{}l=!!c.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,c,m,y){if(!vt)throw Error(i(363));l=Om(l,c);var x=Ft(l,m,y).disconnect;return{disconnect:function(){x()}}},n.registerMutableSourceForHydration=function(l,c){var m=c._getVersion;m=m(c._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[c,m]:l.mutableSourceEagerHydrationData.push(c,m)},n.runWithPriority=function(l,c){var m=Se;try{return Se=l,c()}finally{Se=m}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,c,m,y){var x=c.current,P=Qr(),D=Da(x);return m=Fb(m),c.context===null?c.context=m:c.pendingContext=m,c=ea(P,D),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Oa(x,c,D),l!==null&&(Lo(l,x,D,P),Ku(l,x,D)),D},n};yI.exports=Lte;var Bte=yI.exports;const Fte=xu(Bte);var bI={exports:{}},Ki={};/**
|
||
|
* @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.
|
||
|
*/Ki.ConcurrentRoot=1;Ki.ContinuousEventPriority=4;Ki.DefaultEventPriority=16;Ki.DiscreteEventPriority=1;Ki.IdleEventPriority=536870912;Ki.LegacyRoot=0;bI.exports=Ki;var xI=bI.exports;const YC={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let XC=!1,JC=!1;const fy=".react-konva-event",Hte=`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
|
||
|
`,Wte=`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
|
||
|
`,Vte={};function Hh(e,t,n=Vte){if(!XC&&"zIndex"in t&&(console.warn(Wte),XC=!0),!JC&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Hte),JC=!0)}for(var s in n)if(!YC[s]){var i=s.slice(0,2)==="on",u=n[s]!==t[s];if(i&&u){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),e.off(d,n[s])}var p=!t.hasOwnProperty(s);p&&e.setAttr(s,void 0)}var h=t._useStrictMode,g={},v=!1;const b={};for(var s in t)if(!YC[s]){var i=s.slice(0,2)==="on",S=n[s]!==t[s];if(i&&S){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),t[s]&&(b[d]=t[s])}!i&&(t[s]!==n[s]||h&&t[s]!==e.getAttr(s))&&(v=!0,g[s]=t[s])}v&&(e.setAttrs(g),li(e));for(var d in b)e.on(d+fy,b[d])}function li(e){if(!v7.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const wI={},Ute={};gu.Node.prototype._applyProps=Hh;function Gte(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),li(e)}function qte(e,t,n){let r=gu[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=gu.Group);const o={},s={};for(var i in t){var u=i.slice(0,2)==="on";u?s[i]=t[i]:o[i]=t[i]}const d=new r(o);return Hh(d,s),d}function Kte(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Qte(e,t,n){return!1}function Yte(e){return e}function Xte(){return null}function Jte(){return null}function Zte(e,t,n,r){return Ute}function ene(){}function tne(e){}function nne(e,t){return!1}function rne(){return wI}function one(){return wI}const sne=setTimeout,ane=clearTimeout,ine=-1;function lne(e,t){return!1}const cne=!1,une=!0,dne=!0;function fne(e,t){t.parent===e?t.moveToTop():e.add(t),li(e)}function pne(e,t){t.parent===e?t.moveToTop():e.add(t),li(e)}function SI(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),li(e)}function hne(e,t,n){SI(e,t,n)}function mne(e,t){t.destroy(),t.off(fy),li(e)}function gne(e,t){t.destroy(),t.off(fy),li(e)}function vne(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function yne(e,t,n){}function bne(e,t,n,r,o){Hh(e,o,r)}function xne(e){e.hide(),li(e)}function wne(e){}function Sne(e,t){(t.visible==null||t.visible)&&e.show()}function Cne(e,t){}function _ne(e){}function kne(){}const Pne=()=>xI.DefaultEventPriority,jne=Object.freeze(Object.defineProperty({__proto__:null,appendChild:fne,appendChildToContainer:pne,appendInitialChild:Gte,cancelTimeout:ane,clearContainer:_ne,commitMount:yne,commitTextUpdate:vne,commitUpdate:bne,createInstance:qte,createTextInstance:Kte,detachDeletedInstance:kne,finalizeInitialChildren:Qte,getChildHostContext:one,getCurrentEventPriority:Pne,getPublicInstance:Yte,getRootHostContext:rne,hideInstance:xne,hideTextInstance:wne,idlePriority:mf.unstable_IdlePriority,insertBefore:SI,insertInContainerBefore:hne,isPrimaryRenderer:cne,noTimeout:ine,now:mf.unstable_now,prepareForCommit:Xte,preparePortalMount:Jte,prepareUpdate:Zte,removeChild:mne,removeChildFromContainer:gne,resetAfterCommit:ene,resetTextContent:tne,run:mf.unstable_runWithPriority,scheduleTimeout:sne,shouldDeprioritizeSubtree:nne,shouldSetTextContent:lne,supportsMutation:dne,unhideInstance:Sne,unhideTextInstance:Cne,warnsIfNotActing:une},Symbol.toStringTag,{value:"Module"}));var Ine=Object.defineProperty,Ene=Object.defineProperties,One=Object.getOwnPropertyDescriptors,ZC=Object.getOwnPropertySymbols,Mne=Object.prototype.hasOwnProperty,Rne=Object.prototype.propertyIsEnumerable,e4=(e,t,n)=>t in e?Ine(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t4=(e,t)=>{for(var n in t||(t={}))Mne.call(t,n)&&e4(e,n,t[n]);if(ZC)for(var n of ZC(t))Rne.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),ire=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=z(are),[i,u]=f.useState(null),[d,p]=f.useState(0),h=f.useRef(null),g=f.useCallback(()=>{p(d+1),setTimeout(g,500)},[d]);return f.useEffect(()=>{if(i)return;const v=new Image;v.onload=()=>{u(v)},v.src=o4(n)},[i,n]),f.useEffect(()=>{i&&(i.src=o4(n))},[i,n]),f.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!i||!il(r.x)||!il(r.y)||!il(s)||!il(o.width)||!il(o.height)?null:a.jsx(qs,{ref:h,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:i,fillPatternOffsetY:il(d)?d:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},lre=me([en],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Gt}}),cre=e=>{const{...t}=e,{objects:n}=z(lre);return a.jsx(Ca,{listening:!1,...t,children:n.filter(O7).map((r,o)=>a.jsx(Hp,{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))})};var yi=f,ure=function(t,n,r){const o=yi.useRef("loading"),s=yi.useRef(),[i,u]=yi.useState(0),d=yi.useRef(),p=yi.useRef(),h=yi.useRef();return(d.current!==t||p.current!==n||h.current!==r)&&(o.current="loading",s.current=void 0,d.current=t,p.current=n,h.current=r),yi.useLayoutEffect(function(){if(!t)return;var g=document.createElement("img");function v(){o.current="loaded",s.current=g,u(Math.random())}function b(){o.current="failed",s.current=void 0,u(Math.random())}return g.addEventListener("load",v),g.addEventListener("error",b),n&&(g.crossOrigin=n),r&&(g.referrerPolicy=r),g.src=t,function(){g.removeEventListener("load",v),g.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const dre=xu(ure),II=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:i,isError:u}=Go(s??lo.skipToken),[d]=dre((i==null?void 0:i.image_url)??"",M7.get()?"use-credentials":"anonymous");return u?a.jsx(qs,{x:r,y:o,width:t,height:n,fill:"red"}):a.jsx(PI,{x:r,y:o,image:d,listening:!1})},fre=me([en],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Gt}}),pre=()=>{const{objects:e}=z(fre);return e?a.jsx(Ca,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(C4(t))return a.jsx(II,{canvasImage:t},n);if(R7(t)){const r=a.jsx(Hp,{points:t.points,stroke:t.color?Ii(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(Ca,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(D7(t))return a.jsx(qs,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Ii(t.color)},n);if(T7(t))return a.jsx(qs,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},hre=me([en],e=>{const{layerState:t,shouldShowStagingImage:n,shouldShowStagingOutline:r,boundingBoxCoordinates:{x:o,y:s},boundingBoxDimensions:{width:i,height:u}}=e,{selectedImageIndex:d,images:p}=t.stagingArea;return{currentStagingAreaImage:p.length>0&&d!==void 0?p[d]:void 0,isOnFirstImage:d===0,isOnLastImage:d===p.length-1,shouldShowStagingImage:n,shouldShowStagingOutline:r,x:o,y:s,width:i,height:u}},{memoizeOptions:{resultEqualityCheck:Gt}}),mre=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:i,width:u,height:d}=z(hre);return a.jsxs(Ca,{...t,children:[r&&n&&a.jsx(II,{canvasImage:n}),o&&a.jsxs(Ca,{children:[a.jsx(qs,{x:s,y:i,width:u,height:d,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),a.jsx(qs,{x:s,y:i,width:u,height:d,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},gre=me([en],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n,sessionId:r}},shouldShowSta
|