2023-07-19 22:27:51 +00:00
import { t as Wg , r as iE , i as lE , a as hu , b as a4 , S as i4 , c as l4 , d as c4 , e as Vg , f as u4 , g as Ug , h as cE , j as uE , k as dE , l as fE , m as pE , n as hE , o as mE , p as gE , q as vE , s as f , u as tt , v as a , I as mo , w as cr , x as Wn , y as He , z as Ot , A as mu , B as mt , C as gu , D as ws , E as io , F as lo , G as wr , H as yE , J as bE , K as Ua , L as Wc , M as Ni , N as sn , O as Sa , P as Vp , Q as ev , R as Sl , T as tv , U as vu , _ as Qn , V as xE , W as N , X as d4 , Y as f4 , Z as zb , $ as p4 , a0 as Up , a1 as nv , a2 as Kl , a3 as wE , a4 as SE , a5 as CE , a6 as _E , a7 as h4 , a8 as m4 , a9 as Gp , aa as xf , ab as kE , ac as PE , ad as Hm , ae as Lb , af as jE , ag as g4 , ah as v4 , ai as Yl , aj as Bb , ak as Fb , al as IE , am as EE , an as OE , ao as RE , ap as ME , aq as Wm , ar as nl , as as Vm , at as DE , au as TE , av as AE , aw as rv , ax as qp , ay as wf , az as NE , aA as y4 , aB as b4 , aC as $E , aD as yu , aE as ov , aF as zE , aG as LE , aH as BE , aI as FE , aJ as HE , aK as WE , aL as VE , aM as Hb , aN as ze , aO as F , aP as aa , aQ as ve , aR as Mo , aS as ur , aT as te , aU as L , aV as Ql , aW as fe , aX as x4 , aY as w4 , aZ as Xl , a _ as Do , a$ as Ve , b0 as _n , b1 as Sf , b2 as UE , b3 as Ga , b4 as sv , b5 as Cf , b6 as S4 , b7 as av , b8 as Mt , b9 as iv , ba as GE , bb as qE , bc as KE , bd as rl , be as gs , bf as C4 , bg as YE , bh as QE , bi as bu , bj as it , bk as lv , bl as qa , bm as Wb , bn as XE , bo as JE , bp as ZE , bq as _d , br as kd , bs as Vc , bt as Uc , bu as Vb , bv as _f , bw as Ub , bx as kf , by as Gb , bz as Gg , bA as qb , bB as qg , bC as Kb , bD as Pf , bE as Yb , bF as Tl , bG as Qb , bH as Al , bI as Xb , bJ as jf , bK as e8 , bL as If , bM as _4 , bN as cv , bO as uv , bP as t8 , bQ as k4 , bR as n8 , bS as r8 , bT as Kp , bU as gl , bV as o8 , bW as ff , bX as je , bY as s8 , bZ as a8 , b _ as i8 , b$ as Ef , c0 as Jl , c1 as P4 , c2 as l8 , c3 as j4 , c4 as Jb , c5 as Zb , c6 as c8 , c7 as Ws , c8 as ex , c9 as St , ca as Of , cb as u8 , cc as I4 , cd as Jr , ce as d8 , cf as Xn , cg as Qt , ch as Kg , ci as Vs , cj as Ss , ck as vs , cl as E4 , cm as f8 , cn as O4 , co as tx , cp as p8 , cq as h8 , cr as m8 , cs as g8 , ct as yr , cu as R4 , cv as v8 , cw as y8 , cx as b8 , cy as x8 , cz as w8 , cA as dv , cB as Yo , cC as M4 , cD as D4 , cE as S8 , cF as nx , cG as C8 , cH as _8 , cI as k8 , cJ as P8 , cK as j8 , cL as I8 , cM as E8 , cN as T4 , cO as O8 , cP as R8 , cQ as M8 , cR as D8 , cS as T8 , cT as A8 , cU as $r , cV as A4 , cW as N8 , cX as rx , cY as $8 , cZ as z8 , c _ as L8 , c$ as B8 , d0 as F8 , d1 as H8 , d2 as W8 , d3 as V8 , d4 as N4 , d5 as yo , d6 as U8 , d7 as G8 , d8 as q8 , d9 as Yp , da as K8 , db as fv , dc as $4 , dd as Y8 , de as Q8 , df as X8 , dg as Xo , dh as J8 , di as ox , dj as sx , dk as Cl , dl as Z8 , dm as e7 , dn as t7 , dp as n7 , dq as r7 , dr as o7 , ds as s7 , dt as a7 , du as i7 , dv as l7 , dw as c7 , dx as pv , dy as hv , dz as u7 , dA as ax , dB as d7 , dC as ix , dD as Jo , dE as f7 , dF as p7 , dG as lx , dH as cx , dI as h7 , dJ as ux , dK as m7 , dL as g7 , dM as v7 , dN as y7 , dO as b7 , dP as x7 , dQ as z4 , dR as L4 , dS as B4 , dT as F4 , dU as H4 , dV as xu , dW as dx , dX as w7 , dY as ji , dZ as W4 , d _ as S7 , d$ as V4 , e0 as fx , e1 as C7 , e2 as cs , e3 as _7 , e4 as k7 , e5 as U4 , e6 as G4 , e7 as P7 , e8 as q4 , e9 as K4 , ea as rr , eb as or , ec as wu , ed as Y4 , ee as Q4 , ef as px , eg as j7 , eh as hx , ei as I7 , ej as X4 , ek as E7 , el as Qp , em as mx , en as J4 , eo as O7 , ep as gx , eq as Z4 , er as Qo , es as R7 , et as M7 , eu as e3 , ev as D7 , ew as T7 , ex as A7 , ey as N7 , ez as $7 , eA as z7 , eB as L7 , eC as B7 , eD as F7 , eE as H7 , eF as W7 , eG as V7 , eH as U7 , eI as G7 , eJ as q7 , eK as K7 , eL as Y7 , eM as Q7 , eN as X7 , eO as vx , eP as pf , eQ as J7 , eR as en , eS as Rf , eT as t3 , eU as eu , eV as Z7 , eW as eO , eX as Hs , eY as n3 , eZ as mv , e _ as Su , e$ as tO , f0 as nO , f1 as rO , f2 as ha , f3 as r3 , f4 as oO , f5 as sO , f6 as o3 , f7 as aO , f8 as iO , f9 as lO , fa as cO , fb as uO , fc as dO , fd as fO , fe as pO , ff as hO , fg as mO , fh as gO , fi as yx , fj as vO , fk as yO , fl as bO , fm as xO , fn as wO , fo as SO , fp as Um , fq as Bs , fr as Pd , fs as Gm , ft as qm , fu as jd , fv as bx , fw as Yg , fx as CO , fy as _O , fz as kO , fA as PO , fB as jO , fC as Mf , fD as s3 , fE as a3 , fF as IO , fG as EO , fH as i3 , fI as l3 , fJ as c3 , fK as u3 , fL as d3 , fM as f3 , fN as p3 , fO as h3 , fP as _l , fQ as kl , fR as m3 , fS as g3 , fT as OO , fU as v3 , fV as y3 , fW as b3 , fX as x3 , fY as w3 , fZ as S3 , f _ as C3 , f$ as gv , g0 as RO , g1 as MO , g2 as xx , g3 as DO , g4 as TO , g5 as Df , g6 as wx , g7 as Sx , g8 as Cx , g9 as _x , ga as AO , gb as NO , gc as $O , gd as zO , ge as LO , gf as BO , gg as FO , gh as HO , gi as WO , gj as VO } from "./index-9e78a66d.js" ; import { m
2023-07-19 21:49:27 +00:00
` })}function N9(e){gu({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Nc(e){const{isOpen:t,isDisabled:n}=bv(),{reduceMotion:r}=xv(),o=Ot("chakra-accordion__icon",e.className),s=Xp(),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(mo,{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"})})}Nc.displayName="AccordionIcon";var $ c=tt(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=M9(t),d={...Xp().container,overflowAnchor:"none"},p=f.useMemo(()=>i,[i]);return a.jsx(P9,{value:p,children:a.jsx(He.div,{ref:n,...s,className:Ot("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})}); $ c.displayName="AccordionItem";var bi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},kc={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 Xg(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return kc.slideRight;case"left":return kc.slideLeft;case"bottom":return kc.slideDown;case"top":return kc.slideUp;default:return kc.slideRight}}var wi={enter:{duration:.2,ease:bi.easeOut},exit:{duration:.1,ease:bi.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})}, $ 9=e=>e!=null&&parseInt(e.toString(),10)>0,Rx={exit:{height:{duration:.2,ease:bi.ease},opacity:{duration:.3,ease:bi.ease}},enter:{height:{duration:.3,ease:bi.ease},opacity:{duration:.4,ease:bi.ease}}},z9={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity: $ 9(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:us.exit(Rx.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(Rx.enter,o)}}},Jp=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,...m}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const k=setTimeout(()=>{b(!0)});return()=>clearTimeout(k)},[]),gu({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(ws,{initial:!1,custom:w,children:C&&a.jsx(io.div,{ref:t,...m,className:Ot("chakra-collapse",d),style:{overflow:"hidden",display:"block",...u},custom:w,variants:z9,initial:r?"exit":!1,animate:_,exit:"exit"})})});Jp.displayName="Collapse";var L9={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:us.enter(wi.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(wi.exit,n),transitionEnd:t==null?void 0:t.exi
. ` .concat( $ D, ` {
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(mf, ` {
right : ` ).concat(u,"px ").concat(r, ` ;
}
. ` ).concat(gf, ` {
margin - right : ` ).concat(u,"px ").concat(r, ` ;
}
. ` ).concat(mf," .").concat(mf, ` {
right : 0 ` ).concat(r, ` ;
}
. ` ).concat(gf," .").concat(gf, ` {
margin - right : 0 ` ).concat(r, ` ;
}
body {
` ).concat(zD,": ").concat(u, ` px ;
}
` )},QD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return qD(o)},[o]);return f.createElement(KD,{styles:YD(s,!t,o,n?"":"!important")})},l0=!1;if(typeof window<"u")try{var Od=Object.defineProperty({},"passive",{get:function(){return l0=!0,!0}});window.addEventListener("test",Od,Od),window.removeEventListener("test",Od,Od)}catch{l0=!1}var il=l0?{passive:!1}:!1,XD=function(e){return e.tagName==="TEXTAREA"},V6=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!XD(e)&&n[t]==="visible")},JD=function(e){return V6(e,"overflowY")},ZD=function(e){return V6(e,"overflowX")},Kx=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},eT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U6=function(e,t){return e==="v"?JD(t):ZD(t)},G6=function(e,t){return e==="v"?eT(t):tT(t)},nT=function(e,t){return e==="h"&&t==="rtl"?-1:1},rT=function(e,t,n,r,o){var s=nT(e,window.getComputedStyle(t).direction),i=s*r,u=n.target,d=t.contains(u),p=!1,h=i>0,m=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)&&(m+=_,v+=S),u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(h&&(o&&m===0||!o&&i>m)||!h&&(o&&v===0||!o&&-i>v))&&(p=!0),p},Rd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yx=function(e){return[e.deltaX,e.deltaY]},Qx=function(e){return e&&"current"in e?e.current:e},oT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sT=function(e){return `
. block - interactivity - ` .concat(e, ` { pointer - events : none ; }
. allow - interactivity - ` ).concat(e, ` { pointer - events : all ; }
` )},aT=0,ll=[];function iT(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(aT++)[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=n0([e.lockRef.current],(e.shards||[]).map(Qx),!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 _=Rd(w),k=n.current,j="deltaX"in w?w.deltaX:k[0]-_[0],E="deltaY"in w?w.deltaY:k[1]-_[1],I,O=w.target,R=Math.abs(j)>Math.abs(E)?"h":"v";if("touches"in w&&R==="h"&&O.type==="range")return!1;var T=Kx(R,O);if(!T)return!0;if(T?I=R:(I=R==="v"?"h":"v",T=Kx(R,O)),!T)return!1;if(!r.current&&"changedTouches"in w&&(j||E)&&(r.current=I),!I)return!0;var A=r.current||I;return rT(A,C,w,A==="h"?j:E,!0)},[]),d=f.useCallback(function(w){var C=w;if(!(!ll.length||ll[ll.length-1]!==s)){var _="deltaY"in C?Yx(C):Rd(C),k=t.current.filter(function(I){return I.name===C.type&&I.target===C.target&&oT(I.delta,_)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var j=(i.current.shards||[]).map(Qx).filter(Boolean).filter(function(I){return I.contains(C.target)}),E=j.length>0?u(C,j[0]):!i.current.noIsolation;E&&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(E){return E!==j})},1)},[]),h=f.useCallback(function(w){n.current=Rd(w),r.current=void 0},[]),m=f.useCallback(function(w){p(w.type,Yx(w),w.target,u(w,e.lockRef.current))},[]),v=f.useCallback(function(w){p(w.type,Rd(w),w.target,u(w,e.lockRef.current))},[]);f.useEffect(function(){return ll.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,il),document.addEventListener("touchmove",d,il),document.addEventListener("touchstart",h,il),function(){ll=ll.filter(function(w){return w!==s}),document.removeEventListener("wheel",d,il),document.removeEventListener("touchmove",d,il),document.removeEventListener("touchstart",h,il)}},[]);var b=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(s,{styles:sT(o)}):null,b?f.createElement(QD,{gapMode:e.gapMode}):null)}const lT=DR(H6,iT);var q6=f.forwardRef(function(e,t){return f.createElement(nh,Ls({},e,{ref:t,sideCar:lT}))});q6.classNames=nh.classNames;const cT=q6;function uT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:u,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:m}=Oi(),[v,b]=kE();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const S=B6(r,m);return a.jsx(k6,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:a.jsx(cT,{removeScrollBar:!p,allowPinchZoom:i,enabled:S===1&&s,forwardProps:!0,children:e.children})})}var su=tt((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:u,getDialogContainerProps:d}=Oi(),p=u(i,t),h=d(o),m=Ot("chakra-modal__content",n),v=nc(),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}=Oi();return a.jsx(uT,{children:a.jsx(He.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:S,children:a.jsx(L6,{preset:w,motionProps:s,className:m,...p,__css:b,children:r})})})});su.displayName="ModalContent";function Ou(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(ou,{...n,initialFocusRef:t})}var Ru=tt((e,t)=>a.jsx(su,{ref:t,role:"alertdialog",...e})),ma=tt((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"})]})})}u5.displayName="MiniMap";var hA=f.memo(u5),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 gA({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const vA={[ds.Dots]:"#91919a",[ds.Lines]:"#eee",[ds.Cross]:"#e2e2e2"},yA={[ds.Dots]:1,[ds.Lines]:1,[ds.Cross]:6},bA=e=>({transform:e.transform,patternId: ` pattern - $ { e . rfId } ` });function d5({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:m}=wf(bA,ov),v=i||vA[t],b=r||yA[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]:_,E=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:m+e,x:h[0]%_[0],y:h[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform: ` translate ( - $ { E [ 0 ] } , - $ { E [ 1 ] } ) ` ,children:S?a.jsx(gA,{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 ( # $ { m + e } ) ` })]})}d5.displayName="Background";var xA=f.memo(d5),Gc;(function(e){e.Line="line",e.Handle="handle"})(Gc||(Gc={}));function wA({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 f5={width:0,height:0,x:0,y:0},SA={...f5,pointerX:0,pointerY:0,aspectRatio:1};function CA({nodeId:e,position:t,variant:n=Gc.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:m=!1,shouldResize:v,onResizeStart:b,onResize:S,onResizeEnd:w}){const C=HE(),_=typeof e=="string"?e:C,k=y4(),j=f.useRef(null),E=f.useRef(SA),I=f.useRef(f5),O=WE(),R=n===Gc.Line?"right":"bottom-right",T=t??R;f.useEffect(()=>{if(!j.current||!_)return;const ee=b4(j.current),B=T.includes("right")||T.includes("left"),H=T.includes("bottom")||T.includes("top"),G=T.includes("left"),K=T.includes("top"),M=VE().on("start",U=>{const V=k.getState().nodeInternals.get(_),{xSnapped:J,ySnapped:ie}=O(U);I.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},E.current={...I.current,pointerX:J,pointerY:ie,aspectRatio:I.current.width/I.current.height},b==null||b(U,{...I.current})}).on("drag",U=>{const{nodeInternals:V,triggerNodeChanges:J}=k.getState(),{xSnapped:ie,ySnapped:xe}=O(U),he=V.get(_);if(he){const ae=[],{pointerX:Z,pointerY:W,width:re,height:pe,x:ne,y:ge,aspectRatio:ue}=E.current,{x:Ce,y:Me,width:me,height:_e}=I.current,We=Math.floor(B?ie-Z:0),Le=Math.floor(H?xe-W:0);let Ue=Hb(re+(G?-We:We),u,p),kt=Hb(pe+(K?-Le:Le),d,h);if(m){const Te=Ue/kt,It=B&&H,Ft=B&&!H,Wt=H&&!B;Ue=Te<=ue&&It||Wt?kt*ue:Ue,kt=Te>ue&&It||Ft?Ue/ue:kt,Ue>=p?(Ue=p,kt=p/ue):Ue<=u&&(Ue=u,kt=u/ue),kt>=h?(kt=h,Ue=h*ue):kt<=d&&(kt=d,Ue=d*ue)}const gt=Ue!==me,Pn=kt!==_e;if(G||K){const Te=G?ne-(Ue-re):ne,It=K?ge-(kt-pe):ge,Ft=Te!==Ce&>,Wt=It!==Me&&Pn;if(Ft||Wt){const Cn={id:he.id,type:"position",position:{x:Ft?Te:Ce,y:Wt?It:Me}};ae.push(Cn),I.current.x=Cn.position.x,I.current.y=Cn.position.y}}if(gt||Pn){const Te={id:_,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:Ue,height:kt}};ae.push(Te),I.current.width=Ue,I.current.height=kt}if(ae.length===0)return;const Pt=wA({width:I.current.width,prevWidth:me,height:I.current.height,prevHeight:_e,invertX:G,invertY:K}),yt={...I.current,direction:Pt};if((v==null?void 0:v(U,yt))===!1)return;S==null||S(U,yt),J(ae)}}).on("end",U=>{const V={id:_,type:"dimensions",resizing:!1};w==null||w(U,{...I.current}),k.getState().tri
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function LA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BA(e){if(Array.isArray(e))return p0(e)}function n2(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 r2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){m5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e,t){return WA(e)||HA(e,t)||g5(e,t)||FA()}function FA(){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 g5(e,t){if(e){if(typeof e=="string")return p0(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 p0(e,t)}}function p0(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 HA(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 WA(e){if(Array.isArray(e))return e}var VA="file-invalid-type",UA="file-too-large",GA="file-too-small",qA="too-many-files",KA=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:VA,message:"File type must be ".concat(n)}},o2=function(t){return{code:UA,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},s2=function(t){return{code:GA,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},YA={code:qA,message:"Too many files"};function v5(e,t){var n=e.type==="application/x-moz-file"|| $ A(e,t);return[n,n?null:KA(t)]}function y5(e,t,n){if(vi(e.size))if(vi(t)&&vi(n)){if(e.size>n)return[!1,o2(n)];if(e.size<t)return[!1,s2(t)]}else{if(vi(t)&&e.size<t)return[!1,s2(t)];if(vi(n)&&e.size>n)return[!1,o2(n)]}return[!0,null]}function vi(e){return e!=null}function QA(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=v5(d,n),h=au(p,1),m=h[0],v=y5(d,r,o),b=au(v,1),S=b[0],w=u?u(d):null;return m&&S&&!w})}function Bf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Md(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 a2(e){e.preventDefault()}function XA(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function JA(e){return e.indexOf("Edge/")!==-1}function ZA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return XA(e)||JA(e)}function As(){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 eN(){return"showOpenFilePicker"in window}function tN(e){if(vi(e)){var t=Object.entries(e).filter(function(n){var r=au(n,2),o=r[0],s=r[1],i=!0;return b5(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(x5))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=au(r,2),s=o[0],i=o[1];return r2(r2({},n),{},m5({},s,i))},{});return[{description:"Files",accept:t}]}return e}function nN(e){if(vi(e))return Object.entries(e).reduce(function(t,n){var r=au(n,2),o=r[0],s=r[1];return[].concat(t2(t),[o],t2(s))},[]).filter(function(t){return b5(t)||x5(t)}).join(",")}function rN(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function oN(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function b5(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/ \w + \/ [-+. \w ]+/g.test(e)}function x5(e){return/^.* \. [ \w ]+ $ /.test(e)}var sN=["children"],aN=["open"],iN=["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 dN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fN(e){if(Array.isArray(e))return h0(e)}function cg(e,t){return mN(e)||hN(e,t)||w5(e,t)||pN()}function pN(){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 w5(e,t){if(e){if(typeof e=="string")return h0(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 h0(e,t)}}function h0(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 hN(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 mN(e){if(Array.isArray(e))return e}function i2(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 er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i2(Object(n),!0).forEach(function(r){m0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m0(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=gN(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 gN(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 Wv=f.forwardRef(function(e,t){var n=e.children,r=Ff(e,sN),o=Vv(r),s=o.open,i=Ff(o,aN);return f.useImperativeHandle(t,function(){return{open:s}},[s]),N.createElement(f.Fragment,null,n(er(er({},i),{},{open:s})))});Wv.displayName="Dropzone";var S5={disabled:!1,getFilesFromEvent:IA,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};Wv.defaultProps=S5;Wv.propTypes={children:Tn.func,accept:Tn.objectOf(Tn.arrayOf(Tn.string)),multiple:Tn.bool,preventDropOnDocument:Tn.bool,noClick:Tn.bool,noKeyboard:Tn.bool,noDrag:Tn.bool,noDragEventsBubbling:Tn.bool,minSize:Tn.number,maxSize:Tn.number,maxFiles:Tn.number,disabled:Tn.bool,getFilesFromEvent:Tn.func,onFileDialogCancel:Tn.func,onFileDialogOpen:Tn.func,useFsAccessApi:Tn.bool,autoFocus:Tn.bool,onDragEnter:Tn.func,onDragLeave:Tn.func,onDragOver:Tn.func,onDrop:Tn.func,onDropAccepted:Tn.func,onDropRejected:Tn.func,onError:Tn.func,validator:Tn.func};var g0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Vv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=er(er({},S5),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,m=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,E=t.noClick,I=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,T=t.onError,A=t.validator,z=f.useMemo(function(){return nN(n)},[n]), $ =f.useMemo(function(){return tN(n)},[n]),ee=f.useMemo(function(){return typeof C=="function"?C:l2},[C]),B=f.useMemo(function(){return typeof w=="function"?w:l2},[w]),H=f.useRef(null),G=f.useRef(null),K=f.useReducer(vN,g0),M=cg(K,2),U=M[0],V=M[1],J=U.isFocused,ie=U.isFileDialogActive,xe=f.useRef(typeof window<"u"&&window.isSecureContext&&_&&eN()),he=function(){!xe.current&&ie&&setTimeout(function(){if(G.current){var Te=G.current.files;Te.length||(V({type:"closeDialog"}),B())}},300)};f.useEffect(funct
2023-07-19 22:27:51 +00:00
` ),status:"error"})},[i,s]),m=f.useCallback(async E=>{n(x4({file:E,image_category:"user",is_intermediate:!1,postUploadAction:{type:"TOAST_UPLOADED"}}))},[n]),v=f.useCallback((E,I)=>{if(I.length>1){s({title:i("toast.uploadFailed"),description:i("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}I.forEach(O=>{h(O)}),E.forEach(O=>{m(O)})},[i,s,m,h]),{getRootProps:b,getInputProps:S,isDragAccept:w,isDragReject:C,isDragActive:_,inputRef:k,open:j}=Vv({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>d(!0),disabled:r,multiple:!1});return f.useEffect(()=>{const E=async I=>{var O,R;k.current&&(O=I.clipboardData)!=null&&O.files&&(k.current.files=I.clipboardData.files,(R=k.current)==null||R.dispatchEvent(new Event("change",{bubbles:!0})))};return p(j),document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E),p(()=>{})}},[k,j,p]),a.jsxs(ze,{...b({style:{}}),onKeyDown:E=>{E.key},children:[a.jsx("input",{...S()}),t,_&&u&&a.jsx(RN,{isDragAccept:w,isDragReject:C,setIsHandlingUpload:d})]})},TN=f.memo(DN),AN=ZO(e=>{e(w4(!0))},300),vo=()=>(e,t)=>{ur(t())==="unifiedCanvas"&&AN(e)};var NN=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)}}(),br=globalThis&&globalThis.__assign||function(){return br=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},br.apply(this,arguments)},u2={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},d2={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Dd={width:"20px",height:"20px",position:"absolute"}, $ N={top:br(br({},u2),{top:"-5px"}),right:br(br({},d2),{left:void 0,right:"-5px"}),bottom:br(br({},u2),{top:void 0,bottom:"-5px"}),left:br(br({},d2),{left:"-5px"}),topRight:br(br({},Dd),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:br(br({},Dd),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:br(br({},Dd),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:br(br({},Dd),{left:"-10px",top:"-10px",cursor:"nw-resize"})},zN=function(e){NN(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:br(br({position:"absolute",userSelect:"none"}, $ N[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),LN=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)}}(),Ns=globalThis&&globalThis.__assign||function(){return Ns=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},Ns.apply(this,arguments)},BN={width:"auto",height:"auto"},Td=function(e,t,n){return Math.max(Math.min(e,n),t)},f2=function(e,t){return Math.round(e/t)*t},ul=function(e,t){return new RegExp(e,"i").test(t)},Ad=function(e){return!!(e.touches&&e.touches.length)},FN=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},p2=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(s,i,u){return Math.abs(i-e)<Math.abs(t[s]-e)?u:s},0),o=Math.abs(t[r]-e);return n===
2023-07-19 21:49:27 +00:00
* OverlayScrollbars
* Version : 2.2 . 1
*
* Copyright ( c ) Rene Haas | KingSora .
* https : //github.com/KingSora
*
* Released under the MIT license .
* /function gn(e,t){if(mh(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 Xr(e,t){const n=ri(t);if(bs(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?b2(e,s,t):t.reduce((i,u)=>(i[u]=b2(e,s,u),i),o)}return o}e&&gn(Ro(t),o=>tz(e,o,t[o]))}const is=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const u=(h,m)=>{const v=s,b=h,S=m||(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]]},Nu=()=>typeof window<"u",V5=Nu()&&Node.ELEMENT_NODE,{toString:B$,hasOwnProperty:pg}=Object.prototype,_a=e=>e===void 0,hh=e=>e===null,F$=e=>_a(e)||hh(e)?`${e}`:B$.call(e).replace(/ ^ \ [ object ( . + ) \ ] $ / , "$1" ) . toLowerCase ( ) , Ya = e => typeof e == "number" , ri = e => typeof e == "string" , Jv = e => typeof e == "boolean" , ys = e => typeof e == "function" , bs = e => Array . isArray ( e ) , iu = e => typeof e == "object" && ! bs ( e ) && ! hh ( e ) , mh = e => { const t = ! ! e && e . length , n = Ya ( t ) && t > - 1 && t % 1 == 0 ; return bs ( e ) || ! ys ( e ) && n ? t > 0 && iu ( e ) ? t - 1 in e : ! 0 : ! 1 } , y0 = e => { if ( ! e || ! iu ( e ) || F$ ( e ) !== "object" ) return ! 1 ; let t ; const n = "constructor" , r = e [ n ] , o = r && r . prototype , s = pg . call ( e , n ) , i = o && pg . call ( o , "isPrototypeOf" ) ; if ( r && ! s && ! i ) return ! 1 ; for ( t in e ) ; return _a ( t ) || pg . call ( e , t ) } , Hf = e => { const t = HTMLElement ; return e ? t ? e instanceof t : e . nodeType === V5 : ! 1 } , gh = e => { const t = Element ; return e ? t ? e instanceof t : e . nodeType === V5 : ! 1 } , Zv = ( e , t , n ) => e . indexOf ( t , n ) , In = ( e , t , n ) => ( ! n && ! ri ( t ) && mh ( t ) ? Array . prototype . push . apply ( e , t ) : e . push ( t ) , e ) , Ri = e => { const t = Array . from , n = [ ] ; return t && e ? t ( e ) : ( e instanceof Set ? e . forEach ( r => { In ( n , r ) } ) : gn ( e , r => { In ( n , r ) } ) , n ) } , e1 = e => ! ! e && e . length === 0 , Ys = ( e , t , n ) => { gn ( e , o => o && o . apply ( void 0 , t || [ ] ) ) , ! n && ( e . length = 0 ) } , vh = ( e , t ) => Object . prototype . hasOwnProperty . call ( e , t ) , Ro = e => e ? Object . keys ( e ) : [ ] , nr = ( e , t , n , r , o , s , i ) => { const u = [ t , n , r , o , s , i ] ; return ( typeof e != "object" || hh ( e ) ) && ! ys ( e ) && ( e = { } ) , gn ( u , d => { gn ( Ro ( d ) , p => { const h = d [ p ] ; if ( e === h ) return ! 0 ; const m = bs ( h ) ; if ( h && ( y0 ( h ) || m ) ) { const v = e [ p ] ; let b = v ; m && ! bs ( v ) ? b = [ ] : ! m && ! y0 ( v ) && ( b = { } ) , e [ p ] = nr ( b , h ) } else e [ p ] = h } ) } ) , e } , t1 = e => { for ( const t in e ) return ! 1 ; return ! 0 } , U5 = ( e , t , n , r ) => { if ( _a ( r ) ) return n ? n [ e ] : t ; n && ( ri ( r ) || Ya ( r ) ) && ( n [ e ] = r ) } , Qr = ( e , t , n ) => { if ( _a ( n ) ) return e ? e . getAttribute ( t ) : null ; e && e . setAttribute ( t , n ) } , ho = ( e , t ) => { e && e . removeAttribute ( t ) } , Si = ( e , t , n , r ) => { if ( n ) { const o = Qr ( e , t ) || "" , s = new Set ( o . split ( " " ) ) ; s [ r ? "add" : "delete" ] ( n ) ; const i = Ri ( s ) . join ( " " ) . trim ( ) ; Qr ( e , t , i ) } } , H$ = ( e , t , n ) => { const r = Qr ( e , t ) || "" ; return new Set ( r . split ( " " ) ) . has ( n ) } , fs = ( e , t ) => U5 ( "scrollLeft" , 0 , e , t ) , ca = ( e , t ) => U5 ( "scrollTop" , 0 , e , t ) , b0 = Nu ( ) && Element . prototype , G5 = ( e , t ) => { const n = [ ] , r = t ? gh ( t ) ? t : null : document ; return r ? In ( n , r . querySelectorAll ( e ) ) : n } , W$ = ( e , t ) => { const n = t ? gh ( t ) ? t : null : document ; return n ? n . querySelector ( e ) : null } , Wf = ( e , t ) => gh ( e ) ? ( b0 . matches || b0 . msMatchesSelector ) . call ( e , t ) : ! 1 , n1 = e => e ? Ri ( e . childNodes ) : [ ] , ba = e => e ? e . parentElement : null , yl = ( e , t ) => { if ( gh ( e ) ) { const n = b0 . closest ; if ( n ) return n . call ( e , t ) ; do { if ( Wf ( e , t ) ) return e ; e = ba ( e ) } while ( e ) } return null } , V$ = ( e , t , n ) => { const r = e && yl ( e , t ) , o = e && W$ ( n , r ) , s = yl ( o , t ) === r ; return r && o ? r === e || o === e || s && yl ( yl ( e , n ) , t ) !== r : ! 1 } , r1 = ( e , t , n ) => { if ( n && e ) { let r = t , o ; mh ( 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 ) } } , qo = ( e , t ) => { r1 ( e , null , t ) } , U$ = ( e , t ) => { r1 ( ba ( e ) , e , t ) } , g2 = ( e , t ) => { r1 ( ba ( e ) , e && e . nextSibling , t ) } , Us = e => { if ( mh ( e ) ) gn ( Ri ( e ) , t => Us ( t ) ) ; else if ( e ) { const t = ba ( e ) ; t && t . removeChild ( e ) } } , Ci = e => { const t = document . createElement ( "div" ) ; return e && Qr ( t , "class" , e ) , t } , q5 = e => { const t = Ci ( ) ; return t . innerHTML = e . trim ( ) , gn ( n1 ( t ) , n => Us ( n ) ) } , x0 = e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) , G$ = ( ) => Ci ( ) . style , q$ = [ "-webkit-" , "-moz-" , "-o-" , "-ms-" ] , K$ = [ "WebKit" , "Moz" , "O" , "MS" , "webkit" , "moz" , "o" , "ms" ] , hg = { } , mg = { } , Y$ = e => { let t = mg [ e ] ; if ( vh ( mg , e ) ) return t ; const n = x0 ( e ) , r = G$ ( ) ; return gn ( q$ , o => { const s = o . replace ( /-/g , "" ) ; return ! ( t = [ e , o + e , s + n , x0 ( s ) + n ] . find ( u => r [ u ] !== void 0 ) ) } ) , mg [ e ] = t || "" } , $u = e => { if ( Nu ( ) ) { let t = hg [ e ] || window [ e ] ; return vh ( hg , e ) || ( gn ( K$ , n => ( t = t || window [ n + x0 ( e ) ] , ! t ) ) , hg [ e ] = t ) , t } } , Q$ = $u ( "MutationObserver" ) , v2 = $u ( "IntersectionObserver" ) , bl = $u ( "ResizeObserver" ) , K5 = $u ( "cancelAnimationFrame" ) , Y
Please see https : //github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-07-19 22:27:51 +00:00
See https : //redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Fe,mutationThunk:ht,api:q,serializeQueryArgs:et,context:le}),Cr=Xt.buildInitiateQuery,Vn=Xt.buildInitiateMutation;return Dr(q.util,{getRunningOperationPromises:Xt.getRunningOperationPromises,getRunningOperationPromise:Xt.removalWarning,getRunningMutationThunk:Xt.getRunningMutationThunk,getRunningMutationsThunk:Xt.getRunningMutationsThunk,getRunningQueryThunk:Xt.getRunningQueryThunk,getRunningQueriesThunk:Xt.getRunningQueriesThunk}),{name:ts,injectEndpoint:function(vt,wn){var kn,Un=q;(kn=Un.endpoints)[vt]!=null||(kn[vt]={}),ne(wn)?Dr(Un.endpoints[vt],{name:vt,select:zt(vt,wn),initiate:Cr(vt,wn)},Gt(Fe,vt)):wn.type===W.mutation&&Dr(Un.endpoints[vt],{name:vt,select:tn(),initiate:Vn(vt)},Gt(ht,vt))}}}}},js=Ye(Xs())})(S_);w_.exports=S_;var Ko=w_.exports;const C_=f.memo(({board:e,isSelected:t})=>{const n=te(),{currentData:r}=gs(e.cover_image_name??Ko.skipToken),{colorMode:o}=Do(),{board_name:s,board_id:i}=e,{onClickDeleteBoardImages:u}=f.useContext(C4),d=f.useCallback(()=>{n(av(i))},[i,n]),[p,{isLoading:h}]=YE(),[m,{isLoading:v}]=QE(),b=k=>{p({board_id:i,changes:{board_name:k}})},S=f.useCallback(()=>{m(i)},[i,m]),w=f.useCallback(()=>{},[]),C=f.useCallback(()=>{u(e)},[e,u]),_=f.useMemo(()=>({id:i,actionType:"MOVE_BOARD",context:{boardId:i}}),[i]);return a.jsx(ze,{sx:{touchAction:"none",height:"full"},children:a.jsx(x_,{menuProps:{size:"sm",isLazy:!0},renderMenu:()=>a.jsxs(tc,{sx:{visibility:"visible !important"},children:[e.image_count>0&&a.jsxs(a.Fragment,{children:[a.jsx(jr,{isDisabled:!e.image_count,icon:a.jsx(z5,{}),onClickCapture:w,children:"Add Board to Batch"}),a.jsx(jr,{sx:{color:"error.600",_dark:{color:"error.300"}},icon:a.jsx(bo,{}),onClickCapture:C,children:"Delete Board and Images"})]}),a.jsx(jr,{sx:{color:"error.600",_dark:{color:"error.300"}},icon:a.jsx(bo,{}),onClickCapture:S,children:"Delete Board"})]}),children:k=>a.jsxs(F,{userSelect:"none",ref:k,sx:{flexDir:"column",justifyContent:"space-between",alignItems:"center",cursor:"pointer",w:"full",h:"full"},children:[a.jsxs(F,{onClick:d,sx:{position:"relative",justifyContent:"center",alignItems:"center",borderRadius:"base",w:"full",aspectRatio:"1/1",overflow:"hidden",shadow:t?"selected.light":void 0,_dark:{shadow:t?"selected.dark":void 0},flexShrink:0},children:[e.cover_image_name&&(r==null?void 0:r.image_url)&&a.jsx(bu,{src:r==null?void 0:r.image_url,draggable:!1}),!(e.cover_image_name&&(r!=null&&r.image_url))&&a.jsx(Li,{boxSize:8,icon:qc,sx:{border:"2px solid var(--invokeai-colors-base-200)",_dark:{border:"2px solid var(--invokeai-colors-base-800)"}}}),a.jsx(F,{sx:{position:"absolute",insetInlineEnd:0,top:0,p:1},children:a.jsx(Xa,{variant:"solid",children:e.image_count})}),a.jsx(h1,{data:_})]}),a.jsx(F,{sx:{width:"full",height:"full",justifyContent:"center",alignItems:"center"},children:a.jsxs(H3,{defaultValue:s,submitOnBlur:!1,onSubmit:j=>{b(j)},children:[a.jsx(L3,{sx:{color:t?ke("base.900","base.50")(o):ke("base.700","base.200")(o),fontWeight:t?600:void 0,fontSize:"xs",textAlign:"center",p:0},noOfLines:1}),a.jsx(z3,{sx:{color:ke("base.900","base.50")(o),fontSize:"xs",borderColor:ke("base.500","base.500")(o),p:0,outline:0}})]})})]},i)})})});C_.displayName="HoverableBoard";const xr=e=>{const t=L(i=>i.config.disabledTabs),n=L(i=>i.config.disabledFeatures),r=L(i=>i.config.disabledSDFeatures),o=f.useMemo(()=>n.includes(e)||r.includes(e)||t.includes(e),[n,r,t,e]),s=f.useMemo(()=>!(n.includes(e)||r.includes(e)||t.includes(e)),[n,r,t,e]);return{isFeatureDisabled:o,isFeatureEnabled:s}},mL=ve([Mt],({boards:e,gallery:t})=>{const{searchText:n}=e,{selectedBoardId:r}=t;return{selectedBoardId:r,searchText:n}},it),gL=e=>{const{isOpen:t}=e,n=te(),{selectedBoardId:r,searchText:o}=L(mL),{data:s}=lv(),i=xr("batches").isFeatureEnabled,u=o?s==null?void 0:s.filter(v=>v.board_name.toLowerCase().includes(o.toLowerCase())):s,[d,p]=f.useState(!1),h=v=>{p(v.length>0),n(Wb(v))},m=()=>{p(!1),n(Wb(""))};return a.jsx(Jp,{in:t,animateOpacity:!0,children:a.jsxs(F,{layerStyle
2023-07-19 21:49:27 +00:00
* @ 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 tte=function(t){var n={},r=f,o=pf,s=Object.assign;function i(l){for(var c="https:/ / reactjs . org / docs / error - decoder . html ? invariant = "+l,g=1;g<arguments.length;g++)c+=" & args [ ] = "+encodeURIComponent(arguments[g]);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 "),m=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 "),E=Symbol.for(" react . offscreen "),I=Symbol.iterator;function O(l){return l===null||typeof l!=" object "?null:(l=I&&l[I]||l[" @ @ iterator "],typeof l==" function "?l:null)}function R(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 m: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:R(l.type)||" Memo ";case j:c=l._payload,l=l._init;try{return R(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 R(c);case 8:return c===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 c==" function ")return c.displayName||c.name||null;if(typeof c==" string " ) return c } return null } function A ( l ) { var c = l , g = l ; if ( l . alternate ) for ( ; c . return ; ) c = c . return ; else { l = c ; do c = l , c . flags & 4098 && ( g = c . return ) , l = c . return ; while ( l ) } return c . tag === 3 ? g : null } function z ( l ) { if ( A ( l ) !== l ) throw Error ( i ( 188 ) ) } function $ ( l ) { var c = l . alternate ; if ( ! c ) { if ( c = A ( l ) , c === null ) throw Error ( i ( 188 ) ) ; return c !== l ? null : l } for ( var g = l , y = c ; ; ) { var x = g . return ; if ( x === null ) break ; var P = x . alternate ; if ( P === null ) { if ( y = x . return , y !== null ) { g = y ; continue } break } if ( x . child === P . child ) { for ( P = x . child ; P ; ) { if ( P === g ) return z ( x ) , l ; if ( P === y ) return z ( x ) , c ; P = P . sibling } throw Error ( i ( 188 ) ) } if ( g . return !== y . return ) g = x , y = P ; else { for ( var D = ! 1 , Y = x . child ; Y ; ) { if ( Y === g ) { D = ! 0 , g = x , y = P ; break } if ( Y === y ) { D = ! 0 , y = x , g = P ; break } Y = Y . sibling } if ( ! D ) { for ( Y = P . child ; Y ; ) { if ( Y === g ) { D = ! 0 , g = P , y = x ; break } if ( Y === y ) { D = ! 0 , y = P , g = x ; break } Y = Y . sibling } if ( ! D ) throw Error ( i ( 189 ) ) } } if ( g . alternate !== y ) throw Error ( i ( 190 ) ) } if ( g . tag !== 3 ) throw Error ( i ( 188 ) ) ; return g . stateNode . current === g ? l : c } function ee ( l ) { return l = $ ( l ) , l !== null ? B ( l ) : null } function B ( l ) { if ( l . tag === 5 || l . tag === 6 ) return l ; for ( l = l . child ; l !== null ; ) { var c = B ( l ) ; if ( c !== null ) return c ; l = l . sibling } return null } function H ( l ) { if ( l . tag === 5 || l . tag === 6 ) return l ; for ( l = l . child ; l !== null ; ) { if ( l . tag !== 4 ) { var c = H ( l ) ; if ( c !== null ) return c } l = l . sibling } return null } var G = Array . isArray , K = t . getPublicInstance , M = t . getRootHostContext , U = t . getChildHostContext , V = t . prepareForCommit , J = t . resetAfterCommit , ie = t . createInstance , xe = t . appendInitialChild , he = t . finalizeInitialChildren , ae = t . prepareUpdate , Z = t . shouldSetTextContent , W = t . createTextInstance , re = t . scheduleTimeout , pe = t . cancelTimeout , ne = t . noTimeout , ge = t . isPrimaryRenderer , ue = t . supportsMutation , Ce = t . supportsPersistence , Me = t . supportsHydration , me = t .
` +bt+l}var Lt=!1;function qt(l,c){if(!l||Lt)return"";Lt=!0;var g=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(Oe){var y=Oe}Reflect.construct(l,[],c)}else{try{c.call()}catch(Oe){y=Oe}l.call(c.prototype)}else{try{throw Error()}catch(Oe){y=Oe}l()}}catch(Oe){if(Oe&&y&&typeof Oe.stack=="string"){for(var x=Oe.stack.split( `
` ),P=y.stack.split( `
` ),D=x.length-1,Y=P.length-1;1<=D&&0<=Y&&x[D]!==P[Y];)Y--;for(;1<=D&&0<=Y;D--,Y--)if(x[D]!==P[Y]){if(D!==1||Y!==1)do if(D--,Y--,0>Y||x[D]!==P[Y]){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<=Y);break}}}finally{Lt=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?Et(l):""}var Gt=Object.prototype.hasOwnProperty, $ t=[],Re=-1;function ut(l){return{current:l}}function Ct(l){0>Re||(l.current= $ t[Re], $ t[Re]=null,Re--)}function Tt(l,c){Re++, $ t[Re]=l.current,l.current=c}var xn={},zt=ut(xn),tn=ut(!1),Xt=xn;function Cr(l,c){var g=l.type.contextTypes;if(!g)return xn;var y=l.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var x={},P;for(P in g)x[P]=c[P];return y&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=c,l.__reactInternalMemoizedMaskedChildContext=x),x}function Vn(l){return l=l.childContextTypes,l!=null}function vt(){Ct(tn),Ct(zt)}function wn(l,c,g){if(zt.current!==xn)throw Error(i(168));Tt(zt,c),Tt(tn,g)}function kn(l,c,g){var y=l.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return g;y=y.getChildContext();for(var x in y)if(!(x in c))throw Error(i(108,T(l)||"Unknown",x));return s({},g,y)}function Un(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||xn,Xt=zt.current,Tt(zt,l),Tt(tn,tn.current),!0}function ar(l,c,g){var y=l.stateNode;if(!y)throw Error(i(169));g?(l=kn(l,c,Xt),y.__reactInternalMemoizedMergedChildContext=l,Ct(tn),Ct(zt),Tt(zt,l)):Ct(tn),Tt(tn,g)}var On=Math.clz32?Math.clz32:pn,Rn=Math.log,nn=Math.LN2;function pn(l){return l>>>=0,l===0?32:31-(Rn(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 g=l.pendingLanes;if(g===0)return 0;var y=0,x=l.suspendedLanes,P=l.pingedLanes,D=g&268435455;if(D!==0){var Y=D&~x;Y!==0?y=un(Y):(P&=D,P!==0&&(y=un(P)))}else D=g&~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|=g&16),c=l.entangledLanes,c!==0)for(l=l.entanglements,c&=y;0<c;)g=31-On(c),x=1<<g,y|=l[g],c&=~x;return y}function xt(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 g=l.suspendedLanes,y=l.pingedLanes,x=l.expirationTimes,P=l.pendingLanes;0<P;){var D=31-On(P),Y=1<<D,se=x[D];se===-1?(!(Y&g)||Y&y)&&(x[D]=xt(Y,c)):se<=c&&(l.expiredLanes|=Y),P&=~Y}}function Xe(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=[],g=0;31>g;g++)c.push(l);return c}function lt(l,c,g){l.pendingLanes|=c,c!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,c=31-On(c),l[c]=g}function qe(l,c){var g=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<g;){var x=31-On(g),P=1<<x;c[x]=0,y[x]=-1,l[x]=-1,g&=~P}}function Pe(l,c){var g=l.entangledLanes|=c;for(l=l.entanglements;g;){var y=31-On(g),x=1<<y;x&c|l[y]&c&&(l[y]|=c),g&=~x}}var Se=0;function Ie(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Ae=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,_t=o.unsta
Error generating stack : ` +P.message+ `
2023-07-19 22:27:51 +00:00
` +P.stack}return{value:l,source:c,stack:x,digest:null}}function fm(l,c,g){return{value:l,source:null,stack:g??null,digest:c??null}}function pm(l,c){try{console.error(c.value)}catch(g){setTimeout(function(){throw g})}}var zI=typeof WeakMap=="function"?WeakMap:Map;function Ky(l,c,g){g=ea(-1,g),g.tag=3,g.payload={element:null};var y=c.value;return g.callback=function(){md||(md=!0,Dm=y),pm(l,c)},g}function Yy(l,c,g){g=ea(-1,g),g.tag=3;var y=l.type.getDerivedStateFromError;if(typeof y=="function"){var x=c.value;g.payload=function(){return y(x)},g.callback=function(){pm(l,c)}}var P=l.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(g.callback=function(){pm(l,c),typeof y!="function"&&(Ea===null?Ea=new Set([this]):Ea.add(this));var D=c.stack;this.componentDidCatch(c.value,{componentStack:D!==null?D:""})}),g}function Qy(l,c,g){var y=l.pingCache;if(y===null){y=l.pingCache=new zI;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(g)||(x.add(g),l=JI.bind(null,l,c,g),c.then(l,l))}function Xy(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 Jy(l,c,g,y,x){return l.mode&1?(l.flags|=65536,l.lanes=x,l):(l===c?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(c=ea(-1,1),c.tag=2,Ia(g,c,1))),g.lanes|=1),l)}var LI=u.ReactCurrentOwner,co=!1;function oo(l,c,g,y){c.child=l===null?ky(c,null,g,y):Yi(c,l.child,g,y)}function Zy(l,c,g,y,x){g=g.render;var P=c.ref;return Ki(c,x),y=am(l,c,g,y,P,x),g=im(),l!==null&&!co?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,ta(l,c,x)):(Gn&&g&&Fh(c),c.flags|=1,oo(l,c,y,x),c.child)}function eb(l,c,g,y,x){if(l===null){var P=g.type;return typeof P=="function"&&!Lm(P)&&P.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(c.tag=15,c.type=P,tb(l,c,P,y,x)):(l=wd(g.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(g=g.compare,g=g!==null?g:Wu,g(D,y)&&l.ref===c.ref)return ta(l,c,x)}return c.flags|=1,l=Da(P,y),l.ref=c.ref,l.return=c,c.child=l}function tb(l,c,g,y,x){if(l!==null){var P=l.memoizedProps;if(Wu(P,y)&&l.ref===c.ref)if(co=!1,c.pendingProps=y=P,(l.lanes&x)!==0)l.flags&131072&&(co=!0);else return c.lanes=l.lanes,ta(l,c,x)}return hm(l,c,g,y,x)}function nb(l,c,g){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(el,jo),jo|=g;else{if(!(g&1073741824))return l=P!==null?P.baseLanes|g:g,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:l,cachePool:null,transitions:null},c.updateQueue=null,Tt(el,jo),jo|=l,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=P!==null?P.baseLanes:g,Tt(el,jo),jo|=y}else P!==null?(y=P.baseLanes|g,c.memoizedState=null):y=g,Tt(el,jo),jo|=y;return oo(l,c,x,g),c.child}function rb(l,c){var g=c.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(c.flags|=512,c.flags|=2097152)}function hm(l,c,g,y,x){var P=Vn(g)?Xt:zt.current;return P=Cr(c,P),Ki(c,x),g=am(l,c,g,y,P,x),y=im(),l!==null&&!co?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,ta(l,c,x)):(Gn&&y&&Fh(c),c.flags|=1,oo(l,c,g,x),c.child)}function ob(l,c,g,y,x){if(Vn(g)){var P=!0;Un(c)}else P=!1;if(Ki(c,x),c.stateNode===null)rd(l,c),wy(c,g,y),Zh(c,g,y,x),y=!0;else if(l===null){var D=c.stateNode,Y=c.memoizedProps;D.props=Y;var se=D.context,Oe=g.contextType;typeof Oe=="object"&&Oe!==null?Oe=zo(Oe):(Oe=Vn(g)?Xt:zt.current,Oe=Cr(c,Oe));var ct=g.getDerivedStateFromProps,Vt=typeof ct=="function"||typeof D.getSnapshotBeforeUpdate=="function";Vt||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(Y!==y||se!==Oe)&&Sy(c,D,y,Oe),ja=!1;var Je=c.memoizedState;D.state=Je,qu(c,y,D,x),se=c.memoizedState,Y!==y||Je!==se||tn.current||ja?(typeof ct=="function"&&(Jh(c,g,ct,y),se=c.memoizedState),(Y=ja||xy(c,g,Y,y,Je,se,Oe))?(Vt||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMo
2023-07-19 21:49:27 +00:00
` +(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:oE,findFiberByHostInstance:l.findFiberByHostInstance||sE,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,g,y){if(!gt)throw Error(i(363));l=Im(l,c);var x=Ft(l,g,y).disconnect;return{disconnect:function(){x()}}},n.registerMutableSourceForHydration=function(l,c){var g=c._getVersion;g=g(c._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[c,g]:l.mutableSourceEagerHydrationData.push(c,g)},n.runWithPriority=function(l,c){var g=Se;try{return Se=l,c()}finally{Se=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,c,g,y){var x=c.current,P=Yr(),D=Ra(x);return g=Ab(g),c.context===null?c.context=g:c.pendingContext=g,c=ea(P,D),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Ia(x,c,D),l!==null&&(Fo(l,x,D,P),Gu(l,x,D)),D},n};dI.exports=tte;var nte=dI.exports;const rte=vu(nte);var fI={exports:{}},Ui={};/**
* @ 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 .
* / U i . C o n c u r r e n t R o o t = 1 ; U i . C o n t i n u o u s E v e n t P r i o r i t y = 4 ; U i . D e f a u l t E v e n t P r i o r i t y = 1 6 ; U i . D i s c r e t e E v e n t P r i o r i t y = 1 ; U i . I d l e E v e n t P r i o r i t y = 5 3 6 8 7 0 9 1 2 ; U i . L e g a c y R o o t = 0 ; f I . e x p o r t s = U i ; v a r p I = f I . e x p o r t s ; c o n s t K C = { c h i l d r e n : ! 0 , r e f : ! 0 , k e y : ! 0 , s t y l e : ! 0 , f o r w a r d e d R e f : ! 0 , u n s t a b l e _ a p p l y C a c h e : ! 0 , u n s t a b l e _ a p p l y D r a w H i t F r o m C a c h e : ! 0 } ; l e t Y C = ! 1 , Q C = ! 1 ; c o n s t a y = " . r e a c t - k o n v a - e v e n t " , o t e = ` R e a c t K o n v a : Y o u h a v e a K o n v a n o d e w i t h d r a g g a b l e = t r u e a n d p o s i t i o n d e f i n e d b u t n o o n D r a g M o v e o r o n D r a g E n d e v e n t s a r e h a n d l e d .
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
` ,ste= ` 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
` ,ate={};function Bh(e,t,n=ate){if(!YC&&"zIndex"in t&&(console.warn(ste),YC=!0),!QC&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(ote),QC=!0)}for(var s in n)if(!KC[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,m={},v=!1;const b={};for(var s in t)if(!KC[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,m[s]=t[s])}v&&(e.setAttrs(m),ai(e));for(var d in b)e.on(d+ay,b[d])}function ai(e){if(!J7.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const hI={},ite={};pu.Node.prototype._applyProps=Bh;function lte(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),ai(e)}function cte(e,t,n){let r=pu[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=pu.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 Bh(d,s),d}function ute(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: " $ { e } "`)}function dte(e,t,n){return!1}function fte(e){return e}function pte(){return null}function hte(){return null}function mte(e,t,n,r){return ite}function gte(){}function vte(e){}function yte(e,t){return!1}function bte(){return hI}function xte(){return hI}const wte=setTimeout,Ste=clearTimeout,Cte=-1;function _te(e,t){return!1}const kte=!1,Pte=!0,jte=!0;function Ite(e,t){t.parent===e?t.moveToTop():e.add(t),ai(e)}function Ete(e,t){t.parent===e?t.moveToTop():e.add(t),ai(e)}function mI(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),ai(e)}function Ote(e,t,n){mI(e,t,n)}function Rte(e,t){t.destroy(),t.off(ay),ai(e)}function Mte(e,t){t.destroy(),t.off(ay),ai(e)}function Dte(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: " $ { n } "`)}function Tte(e,t,n){}function Ate(e,t,n,r,o){Bh(e,o,r)}function Nte(e){e.hide(),ai(e)}function $te(e){}function zte(e,t){(t.visible==null||t.visible)&&e.show()}function Lte(e,t){}function Bte(e){}function Fte(){}const Hte=()=>pI.DefaultEventPriority,Wte=Object.freeze(Object.defineProperty({__proto__:null,appendChild:Ite,appendChildToContainer:Ete,appendInitialChild:lte,cancelTimeout:Ste,clearContainer:Bte,commitMount:Tte,commitTextUpdate:Dte,commitUpdate:Ate,createInstance:cte,createTextInstance:ute,detachDeletedInstance:Fte,finalizeInitialChildren:dte,getChildHostContext:xte,getCurrentEventPriority:Hte,getPublicInstance:fte,getRootHostContext:bte,hideInstance:Nte,hideTextInstance:$te,idlePriority:pf.unstable_IdlePriority,insertBefore:mI,insertInContainerBefore:Ote,isPrimaryRenderer:kte,noTimeout:Cte,now:pf.unstable_now,prepareForCommit:pte,preparePortalMount:hte,prepareUpdate:mte,removeChild:Rte,removeChildFromContainer:Mte,resetAfterCommit:gte,resetTextContent:vte,run:pf.unstable_runWithPriority,scheduleTimeout:wte,shouldDeprioritizeSubtree:yte,shouldSetTextContent:_te,supportsMutation:jte,unhideInstance:zte,unhideTextInstance:Lte,warnsIfNotActing:Pte},Symbol.toStringTag,{value:" Module " } ) ) ; var Vte = Object . defineProperty , Ute = Object . defineProperties , Gte = Object . getOwnPropertyDescriptors , XC = Object . getOwnPropertySymbols , qte = Object . prototype . hasOwnProperty , Kte = Object . prototype . propertyIsEnumerable , JC = ( e , t , n ) => t in e ? Vte ( e , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : n } ) : e [ t ] = n , ZC = ( e , t ) => { for ( var n in t || ( t = { } ) ) qte . call ( t , n ) && JC ( e , n , t [ n ] ) ; if ( XC ) for ( var n of XC ( t ) ) Kte . 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 >
2023-07-19 22:27:51 +00:00
< / s v g > ` . r e p l a c e A l l ( " b l a c k " , e ) , C n e = e = > { c o n s t { . . . t } = e , { m a s k C o l o r S t r i n g : n , s t a g e C o o r d i n a t e s : r , s t a g e D i m e n s i o n s : o , s t a g e S c a l e : s } = L ( S n e ) , [ i , u ] = f . u s e S t a t e ( n u l l ) , [ d , p ] = f . u s e S t a t e ( 0 ) , h = f . u s e R e f ( n u l l ) , m = f . u s e C a l l b a c k ( ( ) = > { p ( d + 1 ) , s e t T i m e o u t ( m , 5 0 0 ) } , [ d ] ) ; r e t u r n f . u s e E f f e c t ( ( ) = > { i f ( i ) r e t u r n ; c o n s t v = n e w I m a g e ; v . o n l o a d = ( ) = > { u ( v ) } , v . s r c = n 4 ( n ) } , [ i , n ] ) , f . u s e E f f e c t ( ( ) = > { i & & ( i . s r c = n 4 ( n ) ) } , [ i , n ] ) , f . u s e E f f e c t ( ( ) = > { c o n s t v = s e t I n t e r v a l ( ( ) = > p ( b = > ( b + 1 ) % 5 ) , 5 0 ) ; r e t u r n ( ) = > c l e a r I n t e r v a l ( v ) } , [ ] ) , ! i | | ! o l ( r . x ) | | ! o l ( r . y ) | | ! o l ( s ) | | ! o l ( o . w i d t h ) | | ! o l ( o . h e i g h t ) ? n u l l : a . j s x ( q s , { r e f : h , o f f s e t X : r . x / s , o f f s e t Y : r . y / s , h e i g h t : o . h e i g h t / s , w i d t h : o . w i d t h / s , f i l l P a t t e r n I m a g e : i , f i l l P a t t e r n O f f s e t Y : o l ( d ) ? d : 0 , f i l l P a t t e r n R e p e a t : " r e p e a t " , f i l l P a t t e r n S c a l e : { x : 1 / s , y : 1 / s } , l i s t e n i n g : ! 0 , g l o b a l C o m p o s i t e O p e r a t i o n : " s o u r c e - i n " , . . . t } ) } , _ n e = v e ( [ e n ] , e = > ( { o b j e c t s : e . l a y e r S t a t e . o b j e c t s } ) , { m e m o i z e O p t i o n s : { r e s u l t E q u a l i t y C h e c k : Q t } } ) , k n e = e = > { c o n s t { . . . t } = e , { o b j e c t s : n } = L ( _ n e ) ; r e t u r n a . j s x ( w a , { l i s t e n i n g : ! 1 , . . . t , c h i l d r e n : n . f i l t e r ( d O ) . m a p ( ( r , o ) = > a . j s x ( H p , { p o i n t s : r . p o i n t s , s t r o k e : " r g b ( 0 , 0 , 0 ) " , s t r o k e W i d t h : r . s t r o k e W i d t h * 2 , t e n s i o n : 0 , l i n e C a p : " r o u n d " , l i n e J o i n : " r o u n d " , s h a d o w F o r S t r o k e E n a b l e d : ! 1 , l i s t e n i n g : ! 1 , g l o b a l C o m p o s i t e O p e r a t i o n : r . t o o l = = = " b r u s h " ? " s o u r c e - o v e r " : " d e s t i n a t i o n - o u t " } , o ) ) } ) } ; v a r g i = f , P n e = f u n c t i o n ( t , n , r ) { c o n s t o = g i . u s e R e f ( " l o a d i n g " ) , s = g i . u s e R e f ( ) , [ i , u ] = g i . u s e S t a t e ( 0 ) , d = g i . u s e R e f ( ) , p = g i . u s e R e f ( ) , h = g i . u s e R e f ( ) ; r e t u r n ( d . c u r r e n t ! = = t | | p . c u r r e n t ! = = n | | h . c u r r e n t ! = = r ) & & ( o . c u r r e n t = " l o a d i n g " , s . c u r r e n t = v o i d 0 , d . c u r r e n t = t , p . c u r r e n t = n , h . c u r r e n t = r ) , g i . u s e L a y o u t E f f e c t ( f u n c t i o n ( ) { i f ( ! t ) r e t u r n ; v a r m = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; f u n c t i o n v ( ) { o . c u r r e n t = " l o a d e d " , s . c u r r e n t = m , u ( M a t h . r a n d o m ( ) ) } f u n c t i o n b ( ) { o . c u r r e n t = " f a i l e d " , s . c u r r e n t = v o i d 0 , u ( M a t h . r a n d o m ( ) ) } r e t u r n m . a d d E v e n t L i s t e n e r ( " l o a d " , v ) , m . a d d E v e n t L i s t e n e r ( " e r r o r " , b ) , n & & ( m . c r o s s O r i g i n = n ) , r & & ( m . r e f e r r e r P o l i c y = r ) , m . s r c = t , f u n c t i o n ( ) { m . r e m o v e E v e n t L i s t e n e r ( " l o a d " , v ) , m . r e m o v e E v e n t L i s t e n e r ( " e r r o r " , b ) } } , [ t , n , r ] ) , [ s . c u r r e n t , o . c u r r e n t ] } ; c o n s t j n e = v u ( P n e ) , w I = e = > { c o n s t { w i d t h : t , h e i g h t : n , x : r , y : o , i m a g e N a m e : s } = e . c a n v a s I m a g e , { c u r r e n t D a t a : i , i s E r r o r : u } = g s ( s ? ? K o . s k i p T o k e n ) , [ d ] = j n e ( ( i = = n u l l ? v o i d 0 : i . i m a g e _ u r l ) ? ? " " , f O . g e t ( ) ? " u s e - c r e d e n t i a l s " : " a n o n y m o u s " ) ; r e t u r n u ? a . j s x ( q s , { x : r , y : o , w i d t h : t , h e i g h t : n , f i l l : " r e d " } ) : a . j s x ( b I , { x : r , y : o , i m a g e : d , l i s t e n i n g : ! 1 } ) } , I n e = v e ( [ e n ] , e = > { c o n s t { l a y e r S t a t e : { o b j e c t s : t } } = e ; r e t u r n { o b j e c t s : t } } , { m e m o i z e O p t i o n s : { r e s u l t E q u a l i t y C h e c k : Q t } } ) , E n e = ( ) = > { c o n s t { o b j e c t s : e } = L ( I n e ) ; r e t u r n e ? a . j s x ( w a , { n a m e : " o u t p a i n t i n g - o b j e c t s " , l i s t e n i n g : ! 1 , c h i l d r e n : e . m a p ( ( t , n ) = > { i f ( p O ( t ) ) r e t u r n a . j s x ( w I , { c a n v a s I m a g e : t } , n ) ; i f ( h O ( t ) ) { c o n s t r = a . j s x ( H p , { p o i n t s : t . p o i n t s , s t r o k e : t . c o l o r ? P i ( t . c o l o r ) : " r g b ( 0 , 0 , 0 ) " , s t r o k e W i d t h : t . s t r o k e W i d t h * 2 , t e n s i o n : 0 , l i n e C a p : " r o u n d " , l i n e J o i n : " r o u n d " , s h a d o w F o r S t r o k e E n a b l e d : ! 1 , l i s t e n i n g : ! 1 , g l o b a l C o m p o s i t e O p e r a t i o n : t . t o o l = = = " b r u s h " ? " s o u r c e - o v e r " : " d e s t i n a t i o n - o u t " } , n ) ; r e t u r n t . c l i p ? a . j s x ( w a , { c l i p X : t . c l i p . x , c l i p Y : t . c l i p . y , c l i p W i d t h : t . c l i p . w i d t h , c l i p H e i g h t : t . c l i p . h e i g h t , c h i l d r e n : r } , n ) : r } e l s e { i f ( m O ( t ) ) r e t u r n a . j s x ( q s , { x : t . x , y : t . y , w i d t h : t . w i d t h , h e i g h t : t . h e i g h t , f i l l : P i ( t . c o l o r ) } , n ) ; i f ( g O ( t ) ) r e t u r n a . j s x ( q s , { x : t . x , y : t . y , w i d t h : t . w i d t h , h e i g h t : t . h e i g h t , f i l l : " r g b ( 2 5 5 , 2 5 5 , 2 5 5 ) " , g l o b a l C o m p o s i t e O p e r a t i o n : " d e s t i n a t i o n - o u t " } , n ) } } ) } ) : n u l l } , O n e = v e ( [ e n ] , e = > { c o n s t { l a y e r S t a t e : t , s h o u l d S h o w S t a g i n g I m a g e : n , s h o u l d S h o w S t a g i n g O u t l i n e : r , b o u n d i n g B o x C o o r d i n a t e s : { x : o , y : s } , b o u n d i n g B o x D i m e n s i o n s : { w i d t h : i , h e i g h t : u } } = e , { s e l e c t e d I m a g e I n d e x : d , i m a g e s : p } = t . s t a g i n g A r e a ; r e t u r n { c u r r e n t S t a g i n g A r e a I m a g e : p . l e n g t h > 0 & & d ! = = v o i d 0 ? p [ d ] : v o i d 0 , i s O n F i r s t I m a g e : d = = = 0 , i s O n L a s t I m a g e : d = = = p . l e n g t h - 1 , s h o u l d S h o w S t a g i n g I m a g e : n , s h o u l d S h o w S t a g i n g O u t l i n e : r , x : o , y : s , w i d t h : i , h e i g h t : u } } , { m e m o i z e O p t i o n s : { r e s u l t E q u a l i t y C h e c k : Q t } } ) , R n e = e = > { c o n s t { . . . t } = e , { c u r r e n t S t a g i n g A r e a I m a g e : n , s h o u l d S h o w S t a g i n g I m a g e : r , s h o u l d S h o w S t a g i n g O u t l i n e : o , x : s , y : i , w i d t h : u , h e i g h t : d } = L ( O n e ) ; r e t u r n a . j s x s ( w a , { . . . t , c h i l d r e n : [ r & & n & & a . j s x ( w I , { c a n v a s I m a g e : n } ) , o & & a . j s x s ( w a , { c h i l d r e n : [ a . j s x ( q s , { x : s , y : i , w i d t h : u , h e i g h t : d , s t r o k e W i d t h : 1 , s t r o k e : " w h i t e " , s t r o k e S c a l e E n a b l e d : ! 1 } ) , a . j s x ( q s , { x : s , y : i , w i d t h : u , h e i g h t : d , d a s h : [ 4 , 4 ] , s t r o k e W i d t h : 1 , s t r o k e : " b l a c k " , s t r o k e S c a l e E n a b l e d : ! 1 } ) ] } ) ] } ) } , M n e = v e ( [ e n ] , e = > { c o n s t { l a y e r S t a t e : { s t a g i n g A r e a : { i m a g e s : t , s e l e c t e d I m a g e I n d e x : n , s e s s i o n I d : r } } , s h o u l d S h o w S t a