2023-07-27 14:49:43 +00:00
import { t as hv , r as eR , i as mv , a as Mc , b as g _ , S as v _ , c as b _ , d as y _ , e as gv , f as x _ , g as vv , h as tR , j as nR , k as rR , l as oR , m as w _ , n as sR , o as aR , p as iR , q as S _ , s as lR , u as cR , v as uR , w as dR , x as fR , y as pR , z as f , A as i , B as nm , C as Rp , D as hR , E as C _ , F as k _ , G as mR , P as ld , H as $1 , I as gR , J as vR , K as bR , L as yR , M as xR , N as wR , O as SR , Q as O2 , R as CR , T as Te , U as je , V as Ct , W as tt , X as cd , Y as Fo , Z as Yr , _ as Br , $ as qn , a0 as fl , a1 as ia , a2 as Ft , a3 as ns , a4 as ec , a5 as za , a6 as rm , a7 as z1 , a8 as ud , a9 as or , aa as kR , ab as F , ac as _ _ , ad as R2 , ae as P _ , af as bv , ag as Dc , ah as _R , ai as j _ , aj as I _ , ak as Tc , al as PR , am as fe , an as Ge , ao as Jt , ap as z , aq as jR , ar as M2 , as as IR , at as ER , au as D2 , av as te , aw as OR , ax as Dn , ay as Bn , az as Re , aA as H , aB as Xs , aC as Ye , aD as Kn , aE as E _ , aF as O _ , aG as R _ , aH as _i , aI as Ds , aJ as L1 , aK as RR , aL as MR , aM as DR , aN as Ml , aO as Su , aP as TR , aQ as AR , aR as NR , aS as $R , aT as zR , aU as T2 , aV as ui , aW as B1 , aX as Mp , aY as om , aZ as M _ , a _ as os , a$ as D _ , b0 as LR , b1 as Ac , b2 as T _ , b3 as A _ , b4 as Es , b5 as Po , b6 as Cu , b7 as BR , b8 as FR , b9 as HR , ba as WR , bb as F1 , bc as Dp , bd as VR , be as UR , bf as If , bg as Ef , bh as Du , bi as Tu , bj as A2 , bk as Tp , bl as N2 , bm as Ap , bn as $2 , bo as yv , bp as z2 , bq as xv , br as L2 , bs as Np , bt as B2 , bu as mc , bv as F2 , bw as gc , bx as H2 , by as $p , bz as H1 , bA as W1 , bB as N _ , bC as V1 , bD as U1 , bE as GR , bF as qR , bG as sm , bH as Kl , bI as KR , bJ as YR , bK as xp , bL as XR , bM as QR , bN as JR , bO as wv , bP as $ _ , bQ as ZR , bR as z _ , bS as L _ , bT as ss , bU as W2 , bV as La , bW as eM , bX as Sv , bY as tM , bZ as B _ , b _ as V2 , b$ as nM , c0 as rM , c1 as oM , c2 as sM , c3 as aM , c4 as iM , c5 as G1 , c6 as q1 , c7 as lM , c8 as Ln , c9 as U2 , ca as F _ , cb as cM , cc as uM , cd as dM , ce as fM , cf as pM , cg as hM , ch as mM , ci as gM , cj as vM , ck as H _ , cl as bM , cm as yM , cn as xM , co as wM , cp as SM , cq as CM , cr as kM , cs as _M , ct as PM , cu as jM , cv as so , cw as sr , cx as IM , cy as zp , cz as dd , cA as fd , cB as EM , cC as G2 , cD as OM , cE as q2 , cF as RM , cG as MM , cH as DM , cI as TM , cJ as K2 , cK as Y2 , cL as na , cM as K1 , cN as X2 , cO as Q2 , cP as am , cQ as AM , cR as NM , cS as $M , cT as zM , cU as J2 , cV as Z2 , cW as LM , cX as ew , cY as Lp , cZ as BM , c _ as W _ , c$ as tw , d0 as FM , d1 as HM , d2 as Ss , d3 as WM , d4 as VM , d5 as V _ , d6 as U _ , d7 as UM , d8 as nw , d9 as GM , da as qM , db as G _ , dc as KM , dd as YM , de as XM , df as QM , dg as JM , dh as ZM , di as e7 , dj as q _ , dk as t7 , dl as K _ , dm as rw , dn as Of , dp as n7 , dq as Y1 , dr as Y _ , ds as r7 , dt as o7 , du as s7 , dv as ls , dw as a7 , dx as i7 , dy as l7 , dz as c7 , dA as u7 , dB as d7 , dC as f7 , dD as p7 , dE as h7 , dF as m7 , dG as g7 , dH as v7 , dI as b7 , dJ as y7 , dK as ow , dL as sw , dM as x7 , dN as X _ , dO as Q _ , dP as pd , dQ as J _ , dR as Gi , dS as Z _ , dT as aw , dU as w7 , dV as S7 , dW as e3 , dX as C7 , dY as X1 , dZ as iw , d _ as t3 , d$ as k7 , e0 as lw , e1 as n3 , e2 as Ts , e3 as _7 , e4 as r3 , e5 as cw , e6 as P7 , e7 as j7 , e8 as I7 , e9 as E7 , ea as O7 , eb as R7 , ec as M7 , ed as D7 , ee as T7 , ef as A7 , eg as N7 , eh as $7 , ei as z7 , ej as L7 , ek as B7 , el as F7 , em as H7 , en as W7 , eo as V7 , ep as U7 , eq as uw , er as wp , es as G7 , et as Bp , eu as o3 , ev as Vu , ew as q7 , ex as K7 , ey as ea , ez as s3 , eA as Q1 , eB as hd , eC as Y7 , eD as X7 , eE as Q7 , eF as Ea , eG as a3 , eH as J7 , eI as Z7 , eJ as i3 , eK as eD , eL as tD , eM as nD , eN as rD , eO as oD , eP as sD , eQ as aD , eR as iD , eS as lD , eT as cD , eU as dw , eV as uD , eW as dD , eX as fD , eY as pD , eZ as hD , e _ as mD , e$ as gD , f0 as vD , f1 as d0 , f2 as Js , f3 as f0 , f4 as p0 , f5 as Rf , f6 as fw , f7 as Cv , f8 as bD , f9 as yD , fa as xD , fb as wD , fc as Fp , fd as l3 , fe as c3 , ff as SD , fg as CD , fh as u3 , fi as d3 , fj as f3 , fk as p3 , fl as h3 , fm as m3 , fn as g3 , fo as v3 , fp as tc , fq as nc , fr as b3 , fs as y3 , ft as kD , fu as x3 , fv as w3 , fw as S3 , fx as C3 , fy as k3 , fz as _3 , fA as J1 , fB as _D , fC as pw , fD as PD , fE as jD , fF as Hp , fG as hw , fH as mw , fI as gw , fJ as vw , fK as ID , fL as ED , fM as OD , fN as RD , fO as MD , fP as DD , fQ as TD , fR as AD , fS as ND } from "./index-b3976531.js" ; import { u as $D , c as zD , a as Rn , b as rr , I as no , d as Ba , P as Uu , C as LD , e as be , m as im , f as P3 , g as Fa , h as BD , r as Ue , i as FD , j as bw , k as Vt , l as Sr } from "./MantineProvider-7778b895.js" ; function HD ( e , t ) { if ( e == null ) return { } ; var n = { } , r = Object . keys ( e ) , o , s ; for ( s = 0 ; s < r . len
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"})]})})}I3.displayName="MiniMap";var _T=f.memo(I3),Cs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Cs||(Cs={}));function PT({color:e,dimensions:t,lineWidth:n}){return i.jsx("path",{stroke:e,strokeWidth:n,d: ` M$ { t [ 0 ] / 2 } 0 V$ { t [ 1 ] } M0 $ { t [ 1 ] / 2 } H$ { t [ 0 ] } ` })}function jT({color:e,radius:t}){return i.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const IT={[Cs.Dots]:"#91919a",[Cs.Lines]:"#eee",[Cs.Cross]:"#e2e2e2"},ET={[Cs.Dots]:1,[Cs.Lines]:1,[Cs.Cross]:6},OT=e=>({transform:e.transform,patternId: ` pattern - $ { e . rfId } ` });function E3({id:e,variant:t=Cs.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:a,style:c,className:d}){const p=f.useRef(null),{transform:h,patternId:m}=Rp(OT, $ 1),v=a||IT[t],b=r||ET[t],w=t===Cs.Dots,y=t===Cs.Cross,S=Array.isArray(n)?n:[n,n],k=[S[0]*h[2]||1,S[1]*h[2]||1],_=b*h[2],I=y?[_,_]:k,P=w?[_/s,_/s]:[I[0]/s,I[1]/s];return i.jsxs("svg",{className:nm(["react-flow__background",d]),style:{...c,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[i.jsx("pattern",{id:m+e,x:h[0]%k[0],y:h[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform: ` translate ( - $ { P [ 0 ] } , - $ { P [ 1 ] } ) ` ,children:w?i.jsx(jT,{color:v,radius:_/s}):i.jsx(PT,{dimensions:I,color:v,lineWidth:o})}),i.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill: ` url ( # $ { m + e } ) ` })]})}E3.displayName="Background";var RT=f.memo(E3),Au;(function(e){e.Line="line",e.Handle="handle"})(Au||(Au={}));function MT({width:e,prevWidth:t,height:n,prevHeight:r,invertX:o,invertY:s}){const a=e-t,c=n-r,d=[a>0?1:a<0?-1:0,c>0?1:c<0?-1:0];return a&&o&&(d[0]=d[0]*-1),c&&s&&(d[1]=d[1]*-1),d}const O3={width:0,height:0,x:0,y:0},DT={...O3,pointerX:0,pointerY:0,aspectRatio:1};function TT({nodeId:e,position:t,variant:n=Au.Handle,className:r,style:o={},children:s,color:a,minWidth:c=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:m=!1,shouldResize:v,onResizeStart:b,onResize:w,onResizeEnd:y}){const S=xR(),k=typeof e=="string"?e:S,_=C_(),I=f.useRef(null),P=f.useRef(DT),E=f.useRef(O3),O=wR(),R=n===Au.Line?"right":"bottom-right",M=t??R;f.useEffect(()=>{if(!I.current||!k)return;const Q=k_(I.current),B=M.includes("right")||M.includes("left"),V=M.includes("bottom")||M.includes("top"),q=M.includes("left"),G=M.includes("top"),D=SR().on("start",L=>{const W=_.getState().nodeInternals.get(k),{xSnapped:X,ySnapped:ae}=O(L);E.current={width:(W==null?void 0:W.width)??0,height:(W==null?void 0:W.height)??0,x:(W==null?void 0:W.position.x)??0,y:(W==null?void 0:W.position.y)??0},P.current={...E.current,pointerX:X,pointerY:ae,aspectRatio:E.current.width/E.current.height},b==null||b(L,{...E.current})}).on("drag",L=>{const{nodeInternals:W,triggerNodeChanges:X}=_.getState(),{xSnapped:ae,ySnapped:ye}=O(L),ce=W.get(k);if(ce){const Y=[],{pointerX:K,pointerY:U,width:se,height:re,x:oe,y:pe,aspectRatio:ie}=P.current,{x:ge,y:ke,width:xe,height:de}=E.current,Ae=Math.floor(B?ae-K:0),Ee=Math.floor(V?ye-U:0);let $ e=O2(se+(q?-Ae:Ae),c,p),kt=O2(re+(G?-Ee:Ee),d,h);if(m){const Me= $ e/kt,Pt=B&&V,At=B&&!V,we=V&&!B; $ e=Me<=ie&&Pt||we?kt*ie: $ e,kt=Me>ie&&Pt||At? $ e/ie:kt, $ e>=p?( $ e=p,kt=p/ie): $ e<=c&&( $ e=c,kt=c/ie),kt>=h?(kt=h, $ e=h*ie):kt<=d&&(kt=d, $ e=d*ie)}const ct= $ e!==xe,on=kt!==de;if(q||G){const Me=q?oe-( $ e-se):oe,Pt=G?pe-(kt-re):pe,At=Me!==ge&&ct,we=Pt!==ke&&on;if(At||we){const ht={id:ce.id,type:"position",position:{x:At?Me:ge,y:we?Pt:ke}};Y.push(ht),E.current.x=ht.position.x,E.current.y=ht.position.y}}if(ct||on){const Me={id:k,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width: $ e,height:kt}};Y.push(Me),E.current.width= $ e,E.current.height=kt}if(Y.length===0)return;const vt=MT({width:E.current.width,prevWidth:xe,height:E.current.height,prevHeight:de,invertX:q,invertY:G}),bt={...E.current,direction:vt};if((v==null?void 0:v(L,bt))===!1)return;w==null||w(L,bt),X(Y)}}).on("end",L=>{const W={id:k,type:"dimensions",resizing:!1};y==null||y(L,{...E.current}),_.getState().triggerNo
` })}function uA(e){cd({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function _u(e){const{isOpen:t,isDisabled:n}=tb(),{reduceMotion:r}=nb(),o=Ct("chakra-accordion__icon",e.className),s=cm(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return i.jsx(no,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:a,...e,children:i.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}_u.displayName="AccordionIcon";var Pu=Te(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...a}=aA(t),d={...cm().container,overflowAnchor:"none"},p=f.useMemo(()=>a,[a]);return i.jsx(eA,{value:p,children:i.jsx(je.div,{ref:n,...s,className:Ct("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});Pu.displayName="AccordionItem";var qi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},fu={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 jv(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return fu.slideRight;case"left":return fu.slideLeft;case"bottom":return fu.slideDown;case"top":return fu.slideUp;default:return fu.slideRight}}var Yi={enter:{duration:.2,ease:qi.easeOut},exit:{duration:.1,ease:qi.easeIn}},ks={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})},dA=e=>e!=null&&parseInt(e.toString(),10)>0,Pw={exit:{height:{duration:.2,ease:qi.ease},opacity:{duration:.3,ease:qi.ease}},enter:{height:{duration:.3,ease:qi.ease},opacity:{duration:.4,ease:qi.ease}}},fA={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:dA(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:ks.exit(Pw.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:ks.enter(Pw.enter,o)}}},um=f.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:a="auto",style:c,className:d,transition:p,transitionEnd:h,...m}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const _=setTimeout(()=>{b(!0)});return()=>clearTimeout(_)},[]),cd({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const w=parseFloat(s.toString())>0,y={startingHeight:s,endingHeight:a,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:w?"block":"none"}}},S=r?n:!0,k=n||r?"enter":"exit";return i.jsx(Fo,{initial:!1,custom:y,children:S&&i.jsx(Yr.div,{ref:t,...m,className:Ct("chakra-collapse",d),style:{overflow:"hidden",display:"block",...c},custom:y,variants:fA,initial:r?"exit":!1,animate:k,exit:"exit"})})});um.displayName="Collapse";var pA={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:ks.enter(Yi.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:ks.exit(Yi.exit,n),transitionEnd:t==null?void 0:t.exi
2023-07-27 13:55:28 +00:00
. ` .concat(Gz, ` {
overflow : hidden ` ).concat(r, ` ;
padding - right : ` ).concat(c,"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(a, ` px ;
margin - left : 0 ;
margin - top : 0 ;
margin - right : ` ).concat(c,"px ").concat(r, ` ;
` ),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""), `
}
. ` ).concat(Cp, ` {
right : ` ).concat(c,"px ").concat(r, ` ;
}
. ` ).concat(kp, ` {
margin - right : ` ).concat(c,"px ").concat(r, ` ;
}
. ` ).concat(Cp," .").concat(Cp, ` {
right : 0 ` ).concat(r, ` ;
}
. ` ).concat(kp," .").concat(kp, ` {
margin - right : 0 ` ).concat(r, ` ;
}
body {
` ).concat(qz,": ").concat(c, ` px ;
}
2023-07-27 14:49:43 +00:00
` )},sL=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return nL(o)},[o]);return f.createElement(rL,{styles:oL(s,!t,o,n?"":"!important")})},Vv=!1;if(typeof window<"u")try{var Af=Object.defineProperty({},"passive",{get:function(){return Vv=!0,!0}});window.addEventListener("test",Af,Af),window.removeEventListener("test",Af,Af)}catch{Vv=!1}var $ l=Vv?{passive:!1}:!1,aL=function(e){return e.tagName==="TEXTAREA"},g5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aL(e)&&n[t]==="visible")},iL=function(e){return g5(e,"overflowY")},lL=function(e){return g5(e,"overflowX")},nS=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=v5(e,r);if(o){var s=b5(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cL=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uL=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},v5=function(e,t){return e==="v"?iL(t):lL(t)},b5=function(e,t){return e==="v"?cL(t):uL(t)},dL=function(e,t){return e==="h"&&t==="rtl"?-1:1},fL=function(e,t,n,r,o){var s=dL(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),p=!1,h=a>0,m=0,v=0;do{var b=b5(e,c),w=b[0],y=b[1],S=b[2],k=y-S-s*w;(w||k)&&v5(e,c)&&(m+=k,v+=w),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(o&&m===0||!o&&a>m)||!h&&(o&&v===0||!o&&-a>v))&&(p=!0),p},Nf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rS=function(e){return[e.deltaX,e.deltaY]},oS=function(e){return e&&"current"in e?e.current:e},pL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hL=function(e){return `
2023-07-27 13:55:28 +00:00
. block - interactivity - ` .concat(e, ` { pointer - events : none ; }
. allow - interactivity - ` ).concat(e, ` { pointer - events : all ; }
2023-07-27 14:49:43 +00:00
` )},mL=0,zl=[];function gL(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(mL++)[0],s=f.useState(m5)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Av([e.lockRef.current],(e.shards||[]).map(oS),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(y,S){if("touches"in y&&y.touches.length===2)return!a.current.allowPinchZoom;var k=Nf(y),_=n.current,I="deltaX"in y?y.deltaX:_[0]-k[0],P="deltaY"in y?y.deltaY:_[1]-k[1],E,O=y.target,R=Math.abs(I)>Math.abs(P)?"h":"v";if("touches"in y&&R==="h"&&O.type==="range")return!1;var M=nS(R,O);if(!M)return!0;if(M?E=R:(E=R==="v"?"h":"v",M=nS(R,O)),!M)return!1;if(!r.current&&"changedTouches"in y&&(I||P)&&(r.current=E),!E)return!0;var T=r.current||E;return fL(T,S,y,T==="h"?I:P,!0)},[]),d=f.useCallback(function(y){var S=y;if(!(!zl.length||zl[zl.length-1]!==s)){var k="deltaY"in S?rS(S):Nf(S),_=t.current.filter(function(E){return E.name===S.type&&E.target===S.target&&pL(E.delta,k)})[0];if(_&&_.should){S.cancelable&&S.preventDefault();return}if(!_){var I=(a.current.shards||[]).map(oS).filter(Boolean).filter(function(E){return E.contains(S.target)}),P=I.length>0?c(S,I[0]):!a.current.noIsolation;P&&S.cancelable&&S.preventDefault()}}},[]),p=f.useCallback(function(y,S,k,_){var I={name:y,delta:S,target:k,should:_};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(P){return P!==I})},1)},[]),h=f.useCallback(function(y){n.current=Nf(y),r.current=void 0},[]),m=f.useCallback(function(y){p(y.type,rS(y),y.target,c(y,e.lockRef.current))},[]),v=f.useCallback(function(y){p(y.type,Nf(y),y.target,c(y,e.lockRef.current))},[]);f.useEffect(function(){return zl.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d, $ l),document.addEventListener("touchmove",d, $ l),document.addEventListener("touchstart",h, $ l),function(){zl=zl.filter(function(y){return y!==s}),document.removeEventListener("wheel",d, $ l),document.removeEventListener("touchmove",d, $ l),document.removeEventListener("touchstart",h, $ l)}},[]);var b=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:hL(o)}):null,b?f.createElement(sL,{gapMode:e.gapMode}):null)}const vL=v9(h5,gL);var y5=f.forwardRef(function(e,t){return f.createElement(hm,Qs({},e,{ref:t,sideCar:vL}))});y5.classNames=hm.classNames;const bL=y5;function yL(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:a,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:m}=al(),[v,b]=_R();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const w=f5(r,m);return i.jsx(BP,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:i.jsx(bL,{removeScrollBar:!p,allowPinchZoom:a,enabled:w===1&&s,forwardProps:!0,children:e.children})})}var Zu=Te((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...a}=e,{getDialogProps:c,getDialogContainerProps:d}=al(),p=c(a,t),h=d(o),m=Ct("chakra-modal__content",n),v=Fc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},w={display:"flex",width:"100vw",height:" $ 100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:y}=al();return i.jsx(yL,{children:i.jsx(je.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:i.jsx(d5,{preset:y,motionProps:s,className:m,...p,__css:b,children:r})})})});Zu.displayName="ModalContent";function _d(e){const{leastDestructiveRef:t,...n}=e;return i.jsx(Ju,{...n,initialFocusRef:t})}var Pd=Te((e,t)=>i.jsx(Zu,{ref:t,role:"alertdialog",...e})),Ra=Te((e,t)=>{const{className:
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function SF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CF(e){if(Array.isArray(e))return Xv(e)}function pS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pS(Object(n),!0).forEach(function(r){Y5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ed(e,t){return PF(e)||_F(e,t)||X5(e,t)||kF()}function kF(){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 Xv(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 Xv(e,t)}}function Xv(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 _F(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function PF(e){if(Array.isArray(e))return e}var jF="file-invalid-type",IF="file-too-large",EF="file-too-small",OF="too-many-files",RF=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:jF,message:"File type must be ".concat(n)}},mS=function(t){return{code:IF,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},gS=function(t){return{code:EF,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},MF={code:OF,message:"Too many files"};function Q5(e,t){var n=e.type==="application/x-moz-file"||xF(e,t);return[n,n?null:RF(t)]}function J5(e,t,n){if(Vi(e.size))if(Vi(t)&&Vi(n)){if(e.size>n)return[!1,mS(n)];if(e.size<t)return[!1,gS(t)]}else{if(Vi(t)&&e.size<t)return[!1,gS(t)];if(Vi(n)&&e.size>n)return[!1,mS(n)]}return[!0,null]}function Vi(e){return e!=null}function DF(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,a=e.maxFiles,c=e.validator;return!s&&t.length>1||s&&a>=1&&t.length>a?!1:t.every(function(d){var p=Q5(d,n),h=ed(p,1),m=h[0],v=J5(d,r,o),b=ed(v,1),w=b[0],y=c?c(d):null;return m&&w&&!y})}function Zp(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function zf(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 vS(e){e.preventDefault()}function TF(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function AF(e){return e.indexOf("Edge/")!==-1}function NF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return TF(e)||AF(e)}function Gs(){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),a=1;a<o;a++)s[a-1]=arguments[a];return t.some(function(c){return!Zp(r)&&c&&c.apply(void 0,[r].concat(s)),Zp(r)})}}function $ F(){return"showOpenFilePicker"in window}function zF(e){if(Vi(e)){var t=Object.entries(e).filter(function(n){var r=ed(n,2),o=r[0],s=r[1],a=!0;return Z5(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.')),a=!1),(!Array.isArray(s)||!s.every(e6))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=ed(r,2),s=o[0],a=o[1];return hS(hS({},n),{},Y5({},s,a))},{});return[{description:"Files",accept:t}]}return e}function LF(e){if(Vi(e))return Object.entries(e).reduce(function(t,n){var r=ed(n,2),o=r[0],s=r[1];return[].concat(fS(t),[o],fS(s))},[]).filter(function(t){return Z5(t)||e6(t)}).join(",")}function BF(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function FF(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Z5(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/ \w + \/ [-+. \w ]+/g.test(e)}function e6(e){return/^.* \. [ \w ]+ $ /.test(e)}var HF=["children"],WF=["open"],VF=["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 KF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YF(e){if(Array.isArray(e))return Qv(e)}function D0(e,t){return JF(e)||QF(e,t)||t6(e,t)||XF()}function XF(){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 t6(e,t){if(e){if(typeof e=="string")return Qv(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 Qv(e,t)}}function Qv(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 QF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function JF(e){if(Array.isArray(e))return e}function bS(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 fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bS(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e,t){if(e==null)return{};var n=ZF(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 ZF(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 Fb=f.forwardRef(function(e,t){var n=e.children,r=eh(e,HF),o=Hb(r),s=o.open,a=eh(o,WF);return f.useImperativeHandle(t,function(){return{open:s}},[s]),F.createElement(f.Fragment,null,n(fr(fr({},a),{},{open:s})))});Fb.displayName="Dropzone";var n6={disabled:!1,getFilesFromEvent:dF,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};Fb.defaultProps=n6;Fb.propTypes={children:zn.func,accept:zn.objectOf(zn.arrayOf(zn.string)),multiple:zn.bool,preventDropOnDocument:zn.bool,noClick:zn.bool,noKeyboard:zn.bool,noDrag:zn.bool,noDragEventsBubbling:zn.bool,minSize:zn.number,maxSize:zn.number,maxFiles:zn.number,disabled:zn.bool,getFilesFromEvent:zn.func,onFileDialogCancel:zn.func,onFileDialogOpen:zn.func,useFsAccessApi:zn.bool,autoFocus:zn.bool,onDragEnter:zn.func,onDragLeave:zn.func,onDragOver:zn.func,onDrop:zn.func,onDropAccepted:zn.func,onDropRejected:zn.func,onError:zn.func,validator:zn.func};var Zv={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Hb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},n6),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,c=t.multiple,d=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,y=t.onFileDialogCancel,S=t.onFileDialogOpen,k=t.useFsAccessApi,_=t.autoFocus,I=t.preventDropOnDocument,P=t.noClick,E=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,M=t.onError,T=t.validator,A=f.useMemo(function(){return LF(n)},[n]), $ =f.useMemo(function(){return zF(n)},[n]),Q=f.useMemo(function(){return typeof S=="function"?S:yS},[S]),B=f.useMemo(function(){return typeof y=="function"?y:yS},[y]),V=f.useRef(null),q=f.useRef(null),G=f.useReducer(eH,Zv),D=D0(G,2),L=D[0],W=D[1],X=L.isFocused,ae=L.isFileDialogActive,ye=f.useRef(typeof window<"u"&&window.isSecureContext&&k&& $ F()),ce=function(){!ye.current&&ae&&setTimeout(function(){if(q.current){var Me=q.current.files;Me.length||(W({type:"closeDialog"}),B())}},300)};f.useEffect(functi
` ),status:"error"})},[a,s]),m=f.useCallback(async I=>{p({file:I,image_category:"user",is_intermediate:!1,postUploadAction:r,board_id:n})},[n,r,p]),v=f.useCallback((I,P)=>{if(P.length>1){s({title:a("toast.uploadFailed"),description:a("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}P.forEach(E=>{h(E)}),I.forEach(E=>{m(E)})},[a,s,m,h]),{getRootProps:b,getInputProps:w,isDragAccept:y,isDragReject:S,isDragActive:k,inputRef:_}=Hb({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>d(!0),disabled:o,multiple:!1});return f.useEffect(()=>{const I=async P=>{var E,O;_.current&&(E=P.clipboardData)!=null&&E.files&&(_.current.files=P.clipboardData.files,(O=_.current)==null||O.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",I),()=>{document.removeEventListener("paste",I)}},[_]),i.jsxs(Re,{...b({style:{}}),onKeyDown:I=>{I.key},children:[i.jsx("input",{...w()}),t,i.jsx(Fo,{children:k&&c&&i.jsx(Yr.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:i.jsx(hH,{isDragAccept:y,isDragReject:S,setIsHandlingUpload:d})},"image-upload-overlay")})]})},vH=f.memo(gH),mn=e=>e.canvas,lr=fe([mn,Kn,go],(e,t,n)=>e.layerState.stagingArea.images.length>0||t==="unifiedCanvas"&&n.isProcessing),bH=e=>e.canvas.layerState.objects.find(O_),yH=KD(e=>{e(R_(!0))},300),Co=()=>(e,t)=>{Kn(t())==="unifiedCanvas"&&yH(e)};var xH=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)}}(),kr=globalThis&&globalThis.__assign||function(){return kr=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},kr.apply(this,arguments)},wS={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},SS={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Lf={width:"20px",height:"20px",position:"absolute"},wH={top:kr(kr({},wS),{top:"-5px"}),right:kr(kr({},SS),{left:void 0,right:"-5px"}),bottom:kr(kr({},wS),{top:void 0,bottom:"-5px"}),left:kr(kr({},SS),{left:"-5px"}),topRight:kr(kr({},Lf),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:kr(kr({},Lf),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:kr(kr({},Lf),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:kr(kr({},Lf),{left:"-10px",top:"-10px",cursor:"nw-resize"})},SH=function(e){xH(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:kr(kr({position:"absolute",userSelect:"none"},wH[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),CH=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)}}(),qs=globalThis&&globalThis.__assign||function(){return qs=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},qs.apply(this,arguments)},kH={width:"auto",height:"auto"},Bf=function(e,t,n){return Math.max(Math.min(e,n),t)},CS=function(e,t){return Math.round(e/t)*t},Bl=function(e,t){return new
2023-07-27 13:55:28 +00:00
* OverlayScrollbars
* Version : 2.2 . 1
*
* Copyright ( c ) Rene Haas | KingSora .
* https : //github.com/KingSora
*
* Released under the MIT license .
2023-07-27 14:49:43 +00:00
* /function _n(e,t){if(Mm(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&_n(Object.keys(e),n=>t(e[n],n,e));return e}function ro(e,t){const n=Ii(t);if(Rs(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?RS(e,s,t):t.reduce((a,c)=>(a[c]=RS(e,s,c),a),o)}return o}e&&_n(Bo(t),o=>NW(e,o,t[o]))}const xs=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,a;const c=(h,m)=>{const v=s,b=h,w=m||(r?!r(v,b):v!==b);return(w||o)&&(s=b,a=v),[s,w,a]};return[t?h=>c(t(s,a),h):c,h=>[s,!!h,a]]},Md=()=>typeof window<"u",_6=Md()&&Node.ELEMENT_NODE,{toString:wW,hasOwnProperty:z0}=Object.prototype,Ha=e=>e===void 0,Rm=e=>e===null,SW=e=>Ha(e)||Rm(e)?`${e}`:wW.call(e).replace(/ ^ \ [ object ( . + ) \ ] $ / , "$1" ) . toLowerCase ( ) , pi = e => typeof e == "number" , Ii = e => typeof e == "string" , Kb = e => typeof e == "boolean" , Os = e => typeof e == "function" , Rs = e => Array . isArray ( e ) , td = e => typeof e == "object" && ! Rs ( e ) && ! Rm ( e ) , Mm = e => { const t = ! ! e && e . length , n = pi ( t ) && t > - 1 && t % 1 == 0 ; return Rs ( e ) || ! Os ( e ) && n ? t > 0 && td ( e ) ? t - 1 in e : ! 0 : ! 1 } , t1 = e => { if ( ! e || ! td ( e ) || SW ( e ) !== "object" ) return ! 1 ; let t ; const n = "constructor" , r = e [ n ] , o = r && r . prototype , s = z0 . call ( e , n ) , a = o && z0 . call ( o , "isPrototypeOf" ) ; if ( r && ! s && ! a ) return ! 1 ; for ( t in e ) ; return Ha ( t ) || z0 . call ( e , t ) } , th = e => { const t = HTMLElement ; return e ? t ? e instanceof t : e . nodeType === _6 : ! 1 } , Dm = e => { const t = Element ; return e ? t ? e instanceof t : e . nodeType === _6 : ! 1 } , Yb = ( e , t , n ) => e . indexOf ( t , n ) , Mn = ( e , t , n ) => ( ! n && ! Ii ( t ) && Mm ( t ) ? Array . prototype . push . apply ( e , t ) : e . push ( t ) , e ) , ll = e => { const t = Array . from , n = [ ] ; return t && e ? t ( e ) : ( e instanceof Set ? e . forEach ( r => { Mn ( n , r ) } ) : _n ( e , r => { Mn ( n , r ) } ) , n ) } , Xb = e => ! ! e && e . length === 0 , ca = ( e , t , n ) => { _n ( e , o => o && o . apply ( void 0 , t || [ ] ) ) , ! n && ( e . length = 0 ) } , Tm = ( e , t ) => Object . prototype . hasOwnProperty . call ( e , t ) , Bo = e => e ? Object . keys ( e ) : [ ] , hr = ( e , t , n , r , o , s , a ) => { const c = [ t , n , r , o , s , a ] ; return ( typeof e != "object" || Rm ( e ) ) && ! Os ( e ) && ( e = { } ) , _n ( c , d => { _n ( Bo ( d ) , p => { const h = d [ p ] ; if ( e === h ) return ! 0 ; const m = Rs ( h ) ; if ( h && ( t1 ( h ) || m ) ) { const v = e [ p ] ; let b = v ; m && ! Rs ( v ) ? b = [ ] : ! m && ! t1 ( v ) && ( b = { } ) , e [ p ] = hr ( b , h ) } else e [ p ] = h } ) } ) , e } , Qb = e => { for ( const t in e ) return ! 1 ; return ! 0 } , P6 = ( e , t , n , r ) => { if ( Ha ( r ) ) return n ? n [ e ] : t ; n && ( Ii ( r ) || pi ( r ) ) && ( n [ e ] = r ) } , to = ( e , t , n ) => { if ( Ha ( n ) ) return e ? e . getAttribute ( t ) : null ; e && e . setAttribute ( t , n ) } , wo = ( e , t ) => { e && e . removeAttribute ( t ) } , Ji = ( e , t , n , r ) => { if ( n ) { const o = to ( e , t ) || "" , s = new Set ( o . split ( " " ) ) ; s [ r ? "add" : "delete" ] ( n ) ; const a = ll ( s ) . join ( " " ) . trim ( ) ; to ( e , t , a ) } } , CW = ( e , t , n ) => { const r = to ( e , t ) || "" ; return new Set ( r . split ( " " ) ) . has ( n ) } , _s = ( e , t ) => P6 ( "scrollLeft" , 0 , e , t ) , ka = ( e , t ) => P6 ( "scrollTop" , 0 , e , t ) , n1 = Md ( ) && Element . prototype , j6 = ( e , t ) => { const n = [ ] , r = t ? Dm ( t ) ? t : null : document ; return r ? Mn ( n , r . querySelectorAll ( e ) ) : n } , kW = ( e , t ) => { const n = t ? Dm ( t ) ? t : null : document ; return n ? n . querySelector ( e ) : null } , nh = ( e , t ) => Dm ( e ) ? ( n1 . matches || n1 . msMatchesSelector ) . call ( e , t ) : ! 1 , Jb = e => e ? ll ( e . childNodes ) : [ ] , Aa = e => e ? e . parentElement : null , Xl = ( e , t ) => { if ( Dm ( e ) ) { const n = n1 . closest ; if ( n ) return n . call ( e , t ) ; do { if ( nh ( e , t ) ) return e ; e = Aa ( e ) } while ( e ) } return null } , _W = ( e , t , n ) => { const r = e && Xl ( e , t ) , o = e && kW ( n , r ) , s = Xl ( o , t ) === r ; return r && o ? r === e || o === e || s && Xl ( Xl ( e , n ) , t ) !== r : ! 1 } , Zb = ( e , t , n ) => { if ( n && e ) { let r = t , o ; Mm ( n ) ? ( o = document . createDocumentFragment ( ) , _n ( 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 ) } } , ts = ( e , t ) => { Zb ( e , null , t ) } , PW = ( e , t ) => { Zb ( Aa ( e ) , e , t ) } , IS = ( e , t ) => { Zb ( Aa ( e ) , e && e . nextSibling , t ) } , oa = e => { if ( Mm ( e ) ) _n ( ll ( e ) , t => oa ( t ) ) ; else if ( e ) { const t = Aa ( e ) ; t && t . removeChild ( e ) } } , Zi = e => { const t = document . createElement ( "div" ) ; return e && to ( t , "class" , e ) , t } , I6 = e => { const t = Zi ( ) ; return t . innerHTML = e . trim ( ) , _n ( Jb ( t ) , n => oa ( n ) ) } , r1 = e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) , jW = ( ) => Zi ( ) . style , IW = [ "-webkit-" , "-moz-" , "-o-" , "-ms-" ] , EW = [ "WebKit" , "Moz" , "O" , "MS" , "webkit" , "moz" , "o" , "ms" ] , L0 = { } , B0 = { } , OW = e => { let t = B0 [ e ] ; if ( Tm ( B0 , e ) ) return t ; const n = r1 ( e ) , r = jW ( ) ; return _n ( IW , o => { const s = o . replace ( /-/g , "" ) ; return ! ( t = [ e , o + e , s + n , r1 ( s ) + n ] . find ( c => r [ c ] !== void 0 ) ) } ) , B0 [ e ] = t || "" } , Dd = e => { if ( Md ( ) ) { let t = L0 [ e ] || window [ e ] ; return Tm ( L0 , e ) || ( _n ( EW , n => ( t = t || window [ n + r1 ( e ) ] , ! t ) ) , L0 [ e ] = t ) , t } } , RW = Dd ( "MutationObserver" ) , ES = Dd ( "IntersectionObserver" ) , Ql = Dd ( "ResizeObserver" ) , E6 = Dd ( "cancelAnimationFrame" ) , O
2023-07-27 13:55:28 +00:00
Please see https : //github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-07-27 14:49:43 +00:00
See https : //redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Qe,mutationThunk:jt,api:J,serializeQueryArgs:ut,context:he}),Ir=sn.buildInitiateQuery,Qn=sn.buildInitiateMutation;return Nr(J.util,{getRunningOperationPromises:sn.getRunningOperationPromises,getRunningOperationPromise:sn.removalWarning,getRunningMutationThunk:sn.getRunningMutationThunk,getRunningMutationsThunk:sn.getRunningMutationsThunk,getRunningQueryThunk:sn.getRunningQueryThunk,getRunningQueriesThunk:sn.getRunningQueriesThunk}),{name:ps,injectEndpoint:function(It,In){var On,Jn=J;(On=Jn.endpoints)[It]!=null||(On[It]={}),oe(In)?Nr(Jn.endpoints[It],{name:It,select:Gt(It,In),initiate:Ir(It,In)},Zt(Qe,It)):In.type===U.mutation&&Nr(Jn.endpoints[It],{name:It,select:un(),initiate:Qn(It)},Zt(jt,It))}}}}},zs=Xe(da())})(tj);ej.exports=tj;var oo=ej.exports;const HV=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||!Su(t)?null:i.jsxs(i.Fragment,{children:[i.jsx(Je,{children:n}),i.jsxs(wb,{sx:{paddingInlineStart:6},children:[t.isInitialImage&&i.jsx(wa,{children:"Image to Image"}),t.isCanvasImage&&i.jsx(wa,{children:"Unified Canvas"}),t.isControlNetImage&&i.jsx(wa,{children:"ControlNet"}),t.isNodesImage&&i.jsx(wa,{children:"Node Editor"})]}),i.jsx(Je,{children:r})]})},nj=f.memo(HV),WV=e=>{const{boardToDelete:t,setBoardToDelete:n}=e,{t:r}=be(),o=z(_=>_.config.canRestoreDeletedImagesFromBin),{currentData:s,isFetching:a}=TR((t==null?void 0:t.board_id)??oo.skipToken),c=f.useMemo(()=>fe([Ye],_=>{const I=(s??[]).map(E=>AR(_,E));return{imageUsageSummary:{isInitialImage:Su(I,E=>E.isInitialImage),isCanvasImage:Su(I,E=>E.isCanvasImage),isNodesImage:Su(I,E=>E.isNodesImage),isControlNetImage:Su(I,E=>E.isControlNetImage)}}}),[s]),[d,{isLoading:p}]=NR(),[h,{isLoading:m}]=$R(),{imageUsageSummary:v}=z(c),b=f.useCallback(()=>{t&&(d(t.board_id),n(void 0))},[t,d,n]),w=f.useCallback(()=>{t&&(h(t.board_id),n(void 0))},[t,h,n]),y=f.useCallback(()=>{n(void 0)},[n]),S=f.useRef(null),k=f.useMemo(()=>m||p||a,[m,p,a]);return t?i.jsx(_d,{isOpen:!!t,onClose:y,leastDestructiveRef:S,isCentered:!0,children:i.jsx(Da,{children:i.jsxs(Pd,{children:[i.jsxs(Ma,{fontSize:"lg",fontWeight:"bold",children:["Delete ",t.board_name]}),i.jsx(Ta,{children:i.jsxs(H,{direction:"column",gap:3,children:[a?i.jsx(wm,{children:i.jsx(H,{sx:{w:"full",h:32}})}):i.jsx(nj,{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."}),i.jsx(Je,{children:"Deleted boards cannot be restored."}),i.jsx(Je,{children:r(o?"gallery.deleteImageBin":"gallery.deleteImagePermanent")})]})}),i.jsx(Ra,{children:i.jsxs(H,{sx:{justifyContent:"space-between",width:"full",gap:2},children:[i.jsx(nn,{ref:S,onClick:y,children:"Cancel"}),i.jsx(nn,{colorScheme:"warning",isLoading:k,onClick:b,children:"Delete Board Only"}),i.jsx(nn,{colorScheme:"error",isLoading:k,onClick:w,children:"Delete Board and Images"})]})})]})})}):null},VV=f.memo(WV),rj=Te((e,t)=>{const{role:n,tooltip:r="",tooltipProps:o,isChecked:s,...a}=e;return i.jsx(wn,{label:r,hasArrow:!0,...o,...o!=null&&o.placement?{placement:o.placement}:{placement:"top"},children:i.jsx(Ca,{ref:t,role:n,colorScheme:s?"accent":"base",...a})})});rj.displayName="IAIIconButton";const Fe=f.memo(rj),UV="My Board",GV=()=>{const[e,{isLoading:t}]=zR(),n=f.useCallback(()=>{e(UV)},[e]);return i.jsx(Fe,{icon:i.jsx(gl,{}),isLoading:t,tooltip:"Add Board","aria-label":"Add Board",onClick:n,size:"sm"})};var eC={path:i.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[i.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},o
2023-07-27 13:55:28 +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 .
2023-07-27 14:49:43 +00:00
* /var Eie=function(t){var n={},r=f,o=wp,s=Object.assign;function a(l){for(var u="https:/ / reactjs . org / docs / error - decoder . html ? invariant = "+l,g=1;g<arguments.length;g++)u+=" & args [ ] = "+encodeURIComponent(arguments[g]);return" Minified React error # "+l+" ; visit "+u+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}var c=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 "),w=Symbol.for(" react . context "),y=Symbol.for(" react . forward _ref "),S=Symbol.for(" react . suspense "),k=Symbol.for(" react . suspense _list "),_=Symbol.for(" react . memo "),I=Symbol.for(" react . lazy "),P=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 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 S:return" Suspense ";case k:return" SuspenseList "}if(typeof l==" object ")switch(l.$$typeof){case w:return(l.displayName||" Context ")+" . Consumer ";case b:return(l._context.displayName||" Context ")+" . Provider ";case y:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||" ",l=l!==" "?" ForwardRef ( "+l+" ) ":" ForwardRef "),l;case _:return u=l.displayName||null,u!==null?u:R(l.type)||" Memo ";case I:u=l._payload,l=l._init;try{return R(l(u))}catch{}}return null}function M(l){var u=l.type;switch(l.tag){case 24:return" Cache ";case 9:return(u.displayName||" Context ")+" . Consumer ";case 10:return(u._context.displayName||" Context ")+" . Provider ";case 18:return" DehydratedFragment ";case 11:return l=u.render,l=l.displayName||l.name||" ",u.displayName||(l!==" "?" ForwardRef ( "+l+" ) ":" ForwardRef ");case 7:return" Fragment ";case 5:return u;case 4:return" Portal ";case 3:return" Root ";case 6:return" Text ";case 16:return R(u);case 8:return u===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 u==" function ")return u.displayName||u.name||null;if(typeof u==" string " ) return u } return null } function T ( l ) { var u = l , g = l ; if ( l . alternate ) for ( ; u . return ; ) u = u . return ; else { l = u ; do u = l , u . flags & 4098 && ( g = u . return ) , l = u . return ; while ( l ) } return u . tag === 3 ? g : null } function A ( l ) { if ( T ( l ) !== l ) throw Error ( a ( 188 ) ) } function $ ( l ) { var u = l . alternate ; if ( ! u ) { if ( u = T ( l ) , u === null ) throw Error ( a ( 188 ) ) ; return u !== l ? null : l } for ( var g = l , x = u ; ; ) { var C = g . return ; if ( C === null ) break ; var j = C . alternate ; if ( j === null ) { if ( x = C . return , x !== null ) { g = x ; continue } break } if ( C . child === j . child ) { for ( j = C . child ; j ; ) { if ( j === g ) return A ( C ) , l ; if ( j === x ) return A ( C ) , u ; j = j . sibling } throw Error ( a ( 188 ) ) } if ( g . return !== x . return ) g = C , x = j ; else { for ( var N = ! 1 , Z = C . child ; Z ; ) { if ( Z === g ) { N = ! 0 , g = C , x = j ; break } if ( Z === x ) { N = ! 0 , x = C , g = j ; break } Z = Z . sibling } if ( ! N ) { for ( Z = j . child ; Z ; ) { if ( Z === g ) { N = ! 0 , g = j , x = C ; break } if ( Z === x ) { N = ! 0 , x = j , g = C ; break } Z = Z . sibling } if ( ! N ) throw Error ( a ( 189 ) ) } } if ( g . alternate !== x ) throw Error ( a ( 190 ) ) } if ( g . tag !== 3 ) throw Error ( a ( 188 ) ) ; return g . stateNode . current === g ? l : u } function Q ( 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 u = B ( l ) ; if ( u !== null ) return u ; l = l . sibling } return null } function V ( l ) { if ( l . tag === 5 || l . tag === 6 ) return l ; for ( l = l . child ; l !== null ; ) { if ( l . tag !== 4 ) { var u = V ( l ) ; if ( u !== null ) return u } l = l . sibling } return null } var q = Array . isArray , G = t . getPublicInstance , D = t . getRootHostContext , L = t . getChildHostContext , W = t . prepareForCommit , X = t . resetAfterCommit , ae = t . createInstance , ye = t . appendInitialChild , ce = t . finalizeInitialChildren , Y = t . prepareUpdate , K = t . shouldSetTextContent , U = t . createTextInstance , se = t . scheduleTimeout , re = t . cancelTimeout , oe = t . noTimeout , pe = t . isPrimaryRenderer , ie = t . supportsMutation , ge = t . supportsPersistence , ke = t . supportsHydration , xe = t . ge
2023-07-27 13:55:28 +00:00
` +Et+l}var qt=!1;function en(l,u){if(!l||qt)return"";qt=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Ne){var x=Ne}Reflect.construct(l,[],u)}else{try{u.call()}catch(Ne){x=Ne}l.call(u.prototype)}else{try{throw Error()}catch(Ne){x=Ne}l()}}catch(Ne){if(Ne&&x&&typeof Ne.stack=="string"){for(var C=Ne.stack.split( `
` ),j=x.stack.split( `
` ),N=C.length-1,Z=j.length-1;1<=N&&0<=Z&&C[N]!==j[Z];)Z--;for(;1<=N&&0<=Z;N--,Z--)if(C[N]!==j[Z]){if(N!==1||Z!==1)do if(N--,Z--,0>Z||C[N]!==j[Z]){var ue= `
2023-07-27 14:49:43 +00:00
` +C[N].replace(" at new "," at ");return l.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",l.displayName)),ue}while(1<=N&&0<=Z);break}}}finally{qt=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?Nt(l):""}var Zt=Object.prototype.hasOwnProperty,Ut=[],Le=-1;function yt(l){return{current:l}}function Mt(l){0>Le||(l.current=Ut[Le],Ut[Le]=null,Le--)}function Wt(l,u){Le++,Ut[Le]=l.current,l.current=u}var jn={},Gt=yt(jn),un=yt(!1),sn=jn;function Ir(l,u){var g=l.type.contextTypes;if(!g)return jn;var x=l.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===u)return x.__reactInternalMemoizedMaskedChildContext;var C={},j;for(j in g)C[j]=u[j];return x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=C),C}function Qn(l){return l=l.childContextTypes,l!=null}function It(){Mt(un),Mt(Gt)}function In(l,u,g){if(Gt.current!==jn)throw Error(a(168));Wt(Gt,u),Wt(un,g)}function On(l,u,g){var x=l.stateNode;if(u=u.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var C in x)if(!(C in u))throw Error(a(108,M(l)||"Unknown",C));return s({},g,x)}function Jn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||jn,sn=Gt.current,Wt(Gt,l),Wt(un,un.current),!0}function mr(l,u,g){var x=l.stateNode;if(!x)throw Error(a(169));g?(l=On(l,u,sn),x.__reactInternalMemoizedMergedChildContext=l,Mt(un),Mt(Gt),Wt(Gt,l)):Mt(un),Wt(un,g)}var Tn=Math.clz32?Math.clz32:Sn,An=Math.log,dn=Math.LN2;function Sn(l){return l>>>=0,l===0?32:31-(An(l)/dn|0)|0}var En=64,vn=4194304;function bn(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 Ke(l,u){var g=l.pendingLanes;if(g===0)return 0;var x=0,C=l.suspendedLanes,j=l.pingedLanes,N=g&268435455;if(N!==0){var Z=N&~C;Z!==0?x=bn(Z):(j&=N,j!==0&&(x=bn(j)))}else N=g&~C,N!==0?x=bn(N):j!==0&&(x=bn(j));if(x===0)return 0;if(u!==0&&u!==x&&!(u&C)&&(C=x&-x,j=u&-u,C>=j||C===16&&(j&4194240)!==0))return u;if(x&4&&(x|=g&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=x;0<u;)g=31-Tn(u),C=1<<g,x|=l[g],u&=~C;return x}function Ot(l,u){switch(l){case 1:case 2:case 4:return u+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 u+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 St(l,u){for(var g=l.suspendedLanes,x=l.pingedLanes,C=l.expirationTimes,j=l.pendingLanes;0<j;){var N=31-Tn(j),Z=1<<N,ue=C[N];ue===-1?(!(Z&g)||Z&x)&&(C[N]=Ot(Z,u)):ue<=u&&(l.expiredLanes|=Z),j&=~Z}}function at(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function wt(){var l=En;return En<<=1,!(En&4194240)&&(En=64),l}function Bt(l){for(var u=[],g=0;31>g;g++)u.push(l);return u}function mt(l,u,g){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Tn(u),l[u]=g}function ot(l,u){var g=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var x=l.eventTimes;for(l=l.expirationTimes;0<g;){var C=31-Tn(g),j=1<<C;u[C]=0,x[C]=-1,l[C]=-1,g&=~j}}function Oe(l,u){var g=l.entangledLanes|=u;for(l=l.entanglements;g;){var x=31-Tn(g),C=1<<x;C&u|l[x]&u&&(l[x]|=u),g&=~C}}var Ie=0;function De(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var We=o.unstable_scheduleCallback,et=o.unstable_cancelCallback,Dt=o.unsta
2023-07-27 13:55:28 +00:00
Error generating stack : ` +j.message+ `
2023-07-27 14:49:43 +00:00
` +j.stack}return{value:l,source:u,stack:C,digest:null}}function Ag(l,u,g){return{value:l,source:null,stack:g??null,digest:u??null}}function Ng(l,u){try{console.error(u.value)}catch(g){setTimeout(function(){throw g})}}var R8=typeof WeakMap=="function"?WeakMap:Map;function Bx(l,u,g){g=ha(-1,g),g.tag=3,g.payload={element:null};var x=u.value;return g.callback=function(){yf||(yf=!0,n0=x),Ng(l,u)},g}function Fx(l,u,g){g=ha(-1,g),g.tag=3;var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var C=u.value;g.payload=function(){return x(C)},g.callback=function(){Ng(l,u)}}var j=l.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(g.callback=function(){Ng(l,u),typeof x!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})}),g}function Hx(l,u,g){var x=l.pingCache;if(x===null){x=l.pingCache=new R8;var C=new Set;x.set(u,C)}else C=x.get(u),C===void 0&&(C=new Set,x.set(u,C));C.has(g)||(C.add(g),l=U8.bind(null,l,u,g),u.then(l,l))}function Wx(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function Vx(l,u,g,x,C){return l.mode&1?(l.flags|=65536,l.lanes=C,l):(l===u?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(u=ha(-1,1),u.tag=2,Ga(g,u,1))),g.lanes|=1),l)}var M8=c.ReactCurrentOwner,vo=!1;function fo(l,u,g,x){u.child=l===null?vx(u,null,g,x):_l(u,l.child,g,x)}function Ux(l,u,g,x,C){g=g.render;var j=u.ref;return kl(u,C),x=Eg(l,u,g,x,j,C),g=Og(),l!==null&&!vo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,ma(l,u,C)):(Zn&&g&&ug(u),u.flags|=1,fo(l,u,x,C),u.child)}function Gx(l,u,g,x,C){if(l===null){var j=g.type;return typeof j=="function"&&!l0(j)&&j.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(u.tag=15,u.type=j,qx(l,u,j,x,C)):(l=_f(g.type,null,x,u,u.mode,C),l.ref=u.ref,l.return=u,u.child=l)}if(j=l.child,!(l.lanes&C)){var N=j.memoizedProps;if(g=g.compare,g=g!==null?g:Gd,g(N,x)&&l.ref===u.ref)return ma(l,u,C)}return u.flags|=1,l=Qa(j,x),l.ref=u.ref,l.return=u,u.child=l}function qx(l,u,g,x,C){if(l!==null){var j=l.memoizedProps;if(Gd(j,x)&&l.ref===u.ref)if(vo=!1,u.pendingProps=x=j,(l.lanes&C)!==0)l.flags&131072&&(vo=!0);else return u.lanes=l.lanes,ma(l,u,C)}return $ g(l,u,g,x,C)}function Kx(l,u,g){var x=u.pendingProps,C=x.children,j=l!==null?l.memoizedState:null;if(x.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(Ol,Ao),Ao|=g;else{if(!(g&1073741824))return l=j!==null?j.baseLanes|g:g,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Wt(Ol,Ao),Ao|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=j!==null?j.baseLanes:g,Wt(Ol,Ao),Ao|=x}else j!==null?(x=j.baseLanes|g,u.memoizedState=null):x=g,Wt(Ol,Ao),Ao|=x;return fo(l,u,C,g),u.child}function Yx(l,u){var g=u.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(u.flags|=512,u.flags|=2097152)}function $ g(l,u,g,x,C){var j=Qn(g)?sn:Gt.current;return j=Ir(u,j),kl(u,C),g=Eg(l,u,g,x,j,C),x=Og(),l!==null&&!vo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,ma(l,u,C)):(Zn&&x&&ug(u),u.flags|=1,fo(l,u,g,C),u.child)}function Xx(l,u,g,x,C){if(Qn(g)){var j=!0;Jn(u)}else j=!1;if(kl(u,C),u.stateNode===null)af(l,u),px(u,g,x),Sg(u,g,x,C),x=!0;else if(l===null){var N=u.stateNode,Z=u.memoizedProps;N.props=Z;var ue=N.context,Ne=g.contextType;typeof Ne=="object"&&Ne!==null?Ne=Vo(Ne):(Ne=Qn(g)?sn:Gt.current,Ne=Ir(u,Ne));var gt=g.getDerivedStateFromProps,Xt=typeof gt=="function"||typeof N.getSnapshotBeforeUpdate=="function";Xt||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(Z!==x||ue!==Ne)&&hx(u,N,x,Ne),Ua=!1;var it=u.memoizedState;N.state=it,Xd(u,x,N,C),ue=u.memoizedState,Z!==x||it!==ue||un.current||Ua?(typeof gt=="function"&&(wg(u,g,gt,x),ue=u.memoizedState),(Z=Ua||fx(u,g,Z,x,it,ue,Ne))?(Xt||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMo
2023-07-27 13:55:28 +00:00
` +(x.join(" > ")+ `
No matching component was found for :
2023-07-27 14:49:43 +00:00
` )+l.join(" > ")}return null},n.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return G(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:c.ReactCurrentDispatcher,findHostInstanceByFiber:Q8,findFiberByHostInstance:l.findFiberByHostInstance||J8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{Yn=u.inject(l),gn=u}catch{}l=!!u.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,u,g,x){if(!ct)throw Error(a(363));l=Qg(l,u);var C=At(l,g,x).disconnect;return{disconnect:function(){C()}}},n.registerMutableSourceForHydration=function(l,u){var g=u._getVersion;g=g(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,g]:l.mutableSourceEagerHydrationData.push(u,g)},n.runWithPriority=function(l,u){var g=Ie;try{return Ie=l,u()}finally{Ie=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,u,g,x){var C=u.current,j=eo(),N=Ya(C);return g=j2(g),u.context===null?u.context=g:u.pendingContext=g,u=ha(j,N),u.payload={element:l},x=x===void 0?null:x,x!==null&&(u.callback=x),l=Ga(C,u,N),l!==null&&(qo(l,C,N,j),Yd(l,C,N)),N},n};o8.exports=Eie;var Oie=o8.exports;const Rie=ud(Oie);var s8={exports:{}},wl={};/**
2023-07-27 13:55:28 +00:00
* @ 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 .
2023-07-27 14:49:43 +00:00
* / w l . C o n c u r r e n t R o o t = 1 ; w l . C o n t i n u o u s E v e n t P r i o r i t y = 4 ; w l . D e f a u l t E v e n t P r i o r i t y = 1 6 ; w l . D i s c r e t e E v e n t P r i o r i t y = 1 ; w l . 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 ; w l . L e g a c y R o o t = 0 ; s 8 . e x p o r t s = w l ; v a r a 8 = s 8 . e x p o r t s ; c o n s t o _ = { 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 s _ = ! 1 , a _ = ! 1 ; c o n s t J y = " . r e a c t - k o n v a - e v e n t " , M i 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 .
2023-07-27 13:55:28 +00:00
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
2023-07-27 14:49:43 +00:00
` ,Die= ` ReactKonva : You are using "zIndex" attribute for a Konva node .
2023-07-27 13:55:28 +00:00
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
2023-07-27 14:49:43 +00:00
` ,Tie={};function cg(e,t,n=Tie){if(!s_&&"zIndex"in t&&(console.warn(Die),s_=!0),!a_&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Mie),a_=!0)}for(var s in n)if(!o_[s]){var a=s.slice(0,2)==="on",c=n[s]!==t[s];if(a&&c){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(!o_[s]){var a=s.slice(0,2)==="on",w=n[s]!==t[s];if(a&&w){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])}!a&&(t[s]!==n[s]||h&&t[s]!==e.getAttr(s))&&(v=!0,m[s]=t[s])}v&&(e.setAttrs(m),Di(e));for(var d in b)e.on(d+Jy,b[d])}function Di(e){if(!G7.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const i8={},Aie={};id.Node.prototype._applyProps=cg;function Nie(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),Di(e)}function $ ie(e,t,n){let r=id[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=id.Group);const o={},s={};for(var a in t){var c=a.slice(0,2)===" on ";c?s[a]=t[a]:o[a]=t[a]}const d=new r(o);return cg(d,s),d}function zie(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: " $ { e } "`)}function Lie(e,t,n){return!1}function Bie(e){return e}function Fie(){return null}function Hie(){return null}function Wie(e,t,n,r){return Aie}function Vie(){}function Uie(e){}function Gie(e,t){return!1}function qie(){return i8}function Kie(){return i8}const Yie=setTimeout,Xie=clearTimeout,Qie=-1;function Jie(e,t){return!1}const Zie=!1,ele=!0,tle=!0;function nle(e,t){t.parent===e?t.moveToTop():e.add(t),Di(e)}function rle(e,t){t.parent===e?t.moveToTop():e.add(t),Di(e)}function l8(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Di(e)}function ole(e,t,n){l8(e,t,n)}function sle(e,t){t.destroy(),t.off(Jy),Di(e)}function ale(e,t){t.destroy(),t.off(Jy),Di(e)}function ile(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: " $ { n } "`)}function lle(e,t,n){}function cle(e,t,n,r,o){cg(e,o,r)}function ule(e){e.hide(),Di(e)}function dle(e){}function fle(e,t){(t.visible==null||t.visible)&&e.show()}function ple(e,t){}function hle(e){}function mle(){}const gle=()=>a8.DefaultEventPriority,vle=Object.freeze(Object.defineProperty({__proto__:null,appendChild:nle,appendChildToContainer:rle,appendInitialChild:Nie,cancelTimeout:Xie,clearContainer:hle,commitMount:lle,commitTextUpdate:ile,commitUpdate:cle,createInstance:$ie,createTextInstance:zie,detachDeletedInstance:mle,finalizeInitialChildren:Lie,getChildHostContext:Kie,getCurrentEventPriority:gle,getPublicInstance:Bie,getRootHostContext:qie,hideInstance:ule,hideTextInstance:dle,idlePriority:wp.unstable_IdlePriority,insertBefore:l8,insertInContainerBefore:ole,isPrimaryRenderer:Zie,noTimeout:Qie,now:wp.unstable_now,prepareForCommit:Fie,preparePortalMount:Hie,prepareUpdate:Wie,removeChild:sle,removeChildFromContainer:ale,resetAfterCommit:Vie,resetTextContent:Uie,run:wp.unstable_runWithPriority,scheduleTimeout:Yie,shouldDeprioritizeSubtree:Gie,shouldSetTextContent:Jie,supportsMutation:tle,unhideInstance:fle,unhideTextInstance:ple,warnsIfNotActing:ele},Symbol.toStringTag,{value:" Module " } ) ) ; var ble = Object . defineProperty , yle = Object . defineProperties , xle = Object . getOwnPropertyDescriptors , i _ = Object . getOwnPropertySymbols , wle = Object . prototype . hasOwnProperty , Sle = Object . prototype . propertyIsEnumerable , l _ = ( e , t , n ) => t in e ? ble ( e , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : n } ) : e [ t ] = n , c _ = ( e , t ) => { for ( var n in t || ( t = { } ) ) wle . call ( t , n ) && l _ ( e , n , t [ n ] ) ; if ( i _ ) for ( var n of i _ ( t ) ) Sle . cal
2023-07-27 13:55:28 +00:00
< ! 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-27 14:49:43 +00:00
< / s v g > ` . r e p l a c e A l l ( " b l a c k " , e ) , Q l 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 } = z ( X l e ) , [ a , c ] = 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 ( a ) 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 = ( ) = > { c ( v ) } , v . s r c = f _ ( n ) } , [ a , n ] ) , f . u s e E f f e c t ( ( ) = > { a & & ( a . s r c = f _ ( n ) ) } , [ a , 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 ) } , [ ] ) , ! a | | ! D l ( r . x ) | | ! D l ( r . y ) | | ! D l ( s ) | | ! D l ( o . w i d t h ) | | ! D l ( o . h e i g h t ) ? n u l l : i . j s x ( a a , { 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 : a , f i l l P a t t e r n O f f s e t Y : D 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 } ) } , J l e = f e ( [ m 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 : J t } } ) , Z l e = e = > { c o n s t { . . . t } = e , { o b j e c t s : n } = z ( J l e ) ; r e t u r n i . j s x ( $ 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 ( s D ) . m a p ( ( r , o ) = > i . j s x ( e m , { 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 W i = f , e c e = f u n c t i o n ( t , n , r ) { c o n s t o = W i . u s e R e f ( " l o a d i n g " ) , s = W i . u s e R e f ( ) , [ a , c ] = W i . u s e S t a t e ( 0 ) , d = W i . u s e R e f ( ) , p = W i . u s e R e f ( ) , h = W 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 ) , W 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 , c ( 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 , c ( 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 t c e = u d ( e c e ) , h 8 = 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 : a , i s E r r o r : c } = o s ( s ? ? o o . s k i p T o k e n ) , [ d ] = t c e ( ( a = = n u l l ? v o i d 0 : a . i m a g e _ u r l ) ? ? " " , a D . 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 c ? i . j s x ( a a , { x : r , y : o , w i d t h : t , h e i g h t : n , f i l l : " r e d " } ) : i . j s x ( f 8 , { x : r , y : o , i m a g e : d , l i s t e n i n g : ! 1 } ) } , n c e = f e ( [ m 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 : J t } } ) , r c e = ( ) = > { c o n s t { o b j e c t s : e } = z ( n c e ) ; r e t u r n e ? i . j s x ( $ 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 ( O _ ( t ) ) r e t u r n i . j s x ( h 8 , { c a n v a s I m a g e : t } , n ) ; i f ( i D ( t ) ) { c o n s t r = i . j s x ( e m , { 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 ? n l ( 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 ? i . j s x ( $ 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 ( l D ( t ) ) r e t u r n i . j s x ( a a , { 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 : n l ( t . c o l o r ) } , n ) ; i f ( c D ( t ) ) r e t u r n i . j s x ( a a , { 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 c e = f e ( [ m 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 : a , h e i g h t : c } } = 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 : a , h e i g h t : c } } , { 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 : J t } } ) , s c 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 : a , w i d t h : c , h e i g h t : d } = z ( o c e ) ; r e t u r n i . j s x s ( $ a , { . . . t , c h i l d r e n : [ r & & n & & i . j s x ( h 8 , { c a n v a s I m a g e : n } ) , o & & i . j s x s ( $ a , { c h i l d r e n : [ i . j s x ( a a , { x : s , y : a , w i d t h : c , 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 } ) , i . j s x ( a a , { x : s , y : a , w i d t h : c , 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 } ) ] } ) ] } ) } , a c e = f e ( [ m 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